hexsha
stringlengths 40
40
| size
int64 3
1.05M
| ext
stringclasses 163
values | lang
stringclasses 53
values | max_stars_repo_path
stringlengths 3
945
| max_stars_repo_name
stringlengths 4
112
| max_stars_repo_head_hexsha
stringlengths 40
78
| max_stars_repo_licenses
sequencelengths 1
10
| max_stars_count
float64 1
191k
⌀ | max_stars_repo_stars_event_min_datetime
stringlengths 24
24
⌀ | max_stars_repo_stars_event_max_datetime
stringlengths 24
24
⌀ | max_issues_repo_path
stringlengths 3
945
| max_issues_repo_name
stringlengths 4
113
| max_issues_repo_head_hexsha
stringlengths 40
78
| max_issues_repo_licenses
sequencelengths 1
10
| max_issues_count
float64 1
116k
⌀ | max_issues_repo_issues_event_min_datetime
stringlengths 24
24
⌀ | max_issues_repo_issues_event_max_datetime
stringlengths 24
24
⌀ | max_forks_repo_path
stringlengths 3
945
| max_forks_repo_name
stringlengths 4
113
| max_forks_repo_head_hexsha
stringlengths 40
78
| max_forks_repo_licenses
sequencelengths 1
10
| max_forks_count
float64 1
105k
⌀ | max_forks_repo_forks_event_min_datetime
stringlengths 24
24
⌀ | max_forks_repo_forks_event_max_datetime
stringlengths 24
24
⌀ | content
stringlengths 3
1.05M
| avg_line_length
float64 1
966k
| max_line_length
int64 1
977k
| alphanum_fraction
float64 0
1
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c7964f2b5a5d129f1c33d6a3f78c943c1b841328 | 3,662 | ads | Ada | source/amf/uml/amf-standard_profile_l2-specifications-hash.ads | svn2github/matreshka | 9d222b3ad9da508855fb1f5adbe5e8a4fad4c530 | [
"BSD-3-Clause"
] | 24 | 2016-11-29T06:59:41.000Z | 2021-08-30T11:55:16.000Z | source/amf/uml/amf-standard_profile_l2-specifications-hash.ads | svn2github/matreshka | 9d222b3ad9da508855fb1f5adbe5e8a4fad4c530 | [
"BSD-3-Clause"
] | 2 | 2019-01-16T05:15:20.000Z | 2019-02-03T10:03:32.000Z | source/amf/uml/amf-standard_profile_l2-specifications-hash.ads | svn2github/matreshka | 9d222b3ad9da508855fb1f5adbe5e8a4fad4c530 | [
"BSD-3-Clause"
] | 4 | 2017-07-18T07:11:05.000Z | 2020-06-21T03:02:25.000Z | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- Ada Modeling Framework --
-- --
-- Runtime Library Component --
-- --
------------------------------------------------------------------------------
-- --
-- Copyright © 2011-2012, Vadim Godunko <[email protected]> --
-- All rights reserved. --
-- --
-- Redistribution and use in source and binary forms, with or without --
-- modification, are permitted provided that the following conditions --
-- are met: --
-- --
-- * Redistributions of source code must retain the above copyright --
-- notice, this list of conditions and the following disclaimer. --
-- --
-- * Redistributions in binary form must reproduce the above copyright --
-- notice, this list of conditions and the following disclaimer in the --
-- documentation and/or other materials provided with the distribution. --
-- --
-- * Neither the name of the Vadim Godunko, IE nor the names of its --
-- contributors may be used to endorse or promote products derived from --
-- this software without specific prior written permission. --
-- --
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS --
-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT --
-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR --
-- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT --
-- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, --
-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED --
-- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR --
-- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF --
-- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING --
-- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS --
-- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --
-- --
------------------------------------------------------------------------------
-- $Revision$ $Date$
------------------------------------------------------------------------------
-- This file is generated, don't edit it.
------------------------------------------------------------------------------
with AMF.Elements.Generic_Hash;
function AMF.Standard_Profile_L2.Specifications.Hash is
new AMF.Elements.Generic_Hash (Standard_Profile_L2_Specification, Standard_Profile_L2_Specification_Access);
| 73.24 | 110 | 0.410705 |
5750fa46f24d75b429b810ee890ec27b86234411 | 277 | ads | Ada | generated/natools-static_maps-s_expressions-templates-dates-t.ads | faelys/natools | 947c004e6f69ca144942c6af40e102d089223cf8 | [
"0BSD"
] | null | null | null | generated/natools-static_maps-s_expressions-templates-dates-t.ads | faelys/natools | 947c004e6f69ca144942c6af40e102d089223cf8 | [
"0BSD"
] | null | null | null | generated/natools-static_maps-s_expressions-templates-dates-t.ads | faelys/natools | 947c004e6f69ca144942c6af40e102d089223cf8 | [
"0BSD"
] | null | null | null | -- Generated at 2015-06-24 18:19:13 +0000 by Natools.Static_Hash_Maps
-- from src/natools-s_expressions-templates-dates-maps.sx
function Natools.Static_Maps.S_Expressions.Templates.Dates.T
return Boolean;
pragma Pure (Natools.Static_Maps.S_Expressions.Templates.Dates.T);
| 39.571429 | 70 | 0.808664 |
41ba525ce4a8d38801803ac44475cfd5d694716f | 764 | adb | Ada | testsuite/tests/monitors/src/dummy_block_driver.adb | shakram02/Ada_Drivers_Library | a407ca7ddbc2d9756647016c2f8fd8ef24a239ff | [
"BSD-3-Clause"
] | 192 | 2016-06-01T18:32:04.000Z | 2022-03-26T22:52:31.000Z | testsuite/tests/monitors/src/dummy_block_driver.adb | shakram02/Ada_Drivers_Library | a407ca7ddbc2d9756647016c2f8fd8ef24a239ff | [
"BSD-3-Clause"
] | 239 | 2016-05-26T20:02:01.000Z | 2022-03-31T09:46:56.000Z | testsuite/tests/monitors/src/dummy_block_driver.adb | shakram02/Ada_Drivers_Library | a407ca7ddbc2d9756647016c2f8fd8ef24a239ff | [
"BSD-3-Clause"
] | 142 | 2016-06-05T08:12:20.000Z | 2022-03-24T17:37:17.000Z | package body Dummy_Block_Driver is
----------
-- Read --
----------
overriding function Read
(This : in out Dummy_BD;
Block_Number : UInt64;
Data : out Block)
return Boolean
is
pragma Unreferenced (Block_Number);
begin
if This.Should_Fail then
return False;
else
Data := (others => 16#DE#);
return True;
end if;
end Read;
-----------
-- Write --
-----------
overriding function Write
(This : in out Dummy_BD;
Block_Number : UInt64;
Data : Block)
return Boolean
is
pragma Unreferenced (Block_Number, Data);
begin
return not This.Should_Fail;
end Write;
end Dummy_Block_Driver;
| 19.589744 | 47 | 0.530105 |
41ba82b34b8a6ea98c2d04f2d1d3e722d7dda9be | 5,959 | ads | Ada | src/flyweights/basic_untracked_flyweights.ads | jhumphry/auto_counters | bc7dfabf82febd09facf90371c8c11a628a06266 | [
"0BSD"
] | 5 | 2016-02-22T10:29:26.000Z | 2021-12-18T08:20:12.000Z | src/flyweights/basic_untracked_flyweights.ads | jhumphry/auto_counters | bc7dfabf82febd09facf90371c8c11a628a06266 | [
"0BSD"
] | 1 | 2022-02-16T03:38:08.000Z | 2022-02-20T21:11:30.000Z | src/flyweights/basic_untracked_flyweights.ads | jhumphry/auto_counters | bc7dfabf82febd09facf90371c8c11a628a06266 | [
"0BSD"
] | null | null | null | -- basic_untracked_flyweights.ads
-- A package for ensuring resources are not duplicated in a manner similar
-- to the C++ Boost flyweight classes. This package provides a non-task-safe
-- implementation that does not track usage so does not release resources when
-- the last reference is released
-- Copyright (c) 2016, James Humphry
--
-- Permission to use, copy, modify, and/or distribute this software for any
-- purpose with or without fee is hereby granted, provided that the above
-- copyright notice and this permission notice appear in all copies.
--
-- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
-- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
-- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
-- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
-- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
-- OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
-- PERFORMANCE OF THIS SOFTWARE.
pragma Profile (No_Implementation_Extensions);
with Ada.Containers;
with Flyweights.Untracked_Lists;
with Flyweights.Basic_Hashtables;
with Flyweights.Untracked_Ptrs;
generic
type Element(<>) is limited private;
type Element_Access is access Element;
with function Hash (E : Element) return Ada.Containers.Hash_Type;
Capacity : Ada.Containers.Hash_Type := 256;
with function "=" (Left, Right : in Element) return Boolean is <>;
package Basic_Untracked_Flyweights is
package Lists is
new Flyweights.Untracked_Lists(Element => Element,
Element_Access => Element_Access,
"=" => "=");
package Hashtables is
new Flyweights.Basic_Hashtables(Element => Element,
Element_Access => Element_Access,
Hash => Hash,
Lists_Spec => Lists.Lists_Spec,
Capacity => Capacity);
package Ptrs is
new Flyweights.Untracked_Ptrs(Element => Element,
Element_Access => Element_Access,
Flyweight_Hashtables => Hashtables.Hashtables_Spec);
subtype Flyweight is Hashtables.Flyweight;
-- This Flyweight type is an implementation of the flyweight pattern, which
-- helps prevent the resource usage caused by the storage of duplicate
-- values. No reference counting is used so resources aren't released until
-- the program terminates. This implementation is not protected so it is not
-- safe to use if multiple tasks could attempt to add or remove resources
-- simultaneously.
subtype E_Ref is Ptrs.E_Ref;
-- This is a generic generalised reference type which is used to make
-- Element_Ptr easier to use and which should not be stored or reused.
subtype Element_Ptr is Ptrs.Untracked_Element_Ptr;
-- The Element_Ptr type points to a resource inside a Flyweight. It is not
-- reference-counted. The 'Get' function returns an access value to the
-- resource.
use type Ptrs.Untracked_Element_Ptr;
subtype Element_Ref is Ptrs.Untracked_Element_Ref;
-- The Element_Ref type points to a resource inside a Flyweight. It is not
-- reference-counted. The Element_Ref type can be implicitly derefenced to
-- return the resource.
use type Ptrs.Untracked_Element_Ref;
function P (P : Ptrs.Untracked_Element_Ptr) return E_Ref
renames Ptrs.P;
-- P returns an E_Ref which is a generalised reference to the stored value.
-- This is an alternative to calling the Get function and dereferencing the
-- access value returned with '.all'.
function Get (P : Ptrs.Untracked_Element_Ptr) return Element_Access
renames Ptrs.Get;
-- Get returns an access value that points to a resource inside a
-- Flyweight.
function Get (P : Ptrs.Untracked_Element_Ref) return Element_Access
renames Ptrs.Get;
-- Get returns an access value that points to a resource inside a
-- Flyweight
function Make_Ref (P : Ptrs.Untracked_Element_Ptr'Class)
return Ptrs.Untracked_Element_Ref
renames Ptrs.Make_Ref;
-- Make_Ref converts an Untracked_Element_Ptr into an Untracked_Element_Ref.
function Insert_Ptr (F : aliased in out Hashtables.Flyweight;
E : in out Element_Access)
return Ptrs.Untracked_Element_Ptr
renames Ptrs.Insert_Ptr;
-- Insert_Ptr looks to see if the Element pointed to by E already exists
-- inside the Flyweight F. If so, the Element pointed to by E is deallocated
-- and E is set to the existing copy. Otherwise, F stores E for future use.
-- An Untracked_Element_Ptr is returned.
function Make_Ptr (R : Ptrs.Untracked_Element_Ref'Class)
return Ptrs.Untracked_Element_Ptr
renames Ptrs.Make_Ptr;
-- Make_Ref converts an Untracked_Element_Ref into an Untracked_Element_Ptr.
function Insert_Ref (F : aliased in out Hashtables.Flyweight;
E : in out Element_Access)
return Ptrs.Untracked_Element_Ref
renames Ptrs.Insert_Ref;
-- Insert_Ref looks to see if the Element pointed to by E already exists
-- inside the Flyweight F. If so, the Element pointed to by E is deallocated
-- and E is set to the existing copy. Otherwise, F stores E for future use.
-- An Untracked_Element_Ref is returned.
-- Note - ideally Insert_Ptr and Insert_Ref could both be overloadings of
-- Insert. However this seems to cause problems for GNAT GPL 2015 so for now
-- the type is suffixed to the name.
end Basic_Untracked_Flyweights;
| 46.193798 | 87 | 0.682161 |
583ef5288c8b539a953cb8cf1c314bcc49c6c3df | 1,460 | ads | Ada | disorderly/binary_rank.ads | jscparker/math_packages | b112a90338014d5c2dfae3f7265ee30841fb6cfd | [
"ISC",
"MIT"
] | 30 | 2018-12-09T01:15:04.000Z | 2022-03-20T16:14:54.000Z | disorderly/binary_rank.ads | jscparker/math_packages | b112a90338014d5c2dfae3f7265ee30841fb6cfd | [
"ISC",
"MIT"
] | null | null | null | disorderly/binary_rank.ads | jscparker/math_packages | b112a90338014d5c2dfae3f7265ee30841fb6cfd | [
"ISC",
"MIT"
] | null | null | null |
generic
No_of_Bits_per_Segment : Integer;
Segments_per_Vector : Integer;
package Binary_Rank is
type Unsigned_64 is mod 2**64;
Bits_per_Segment : constant Integer := No_of_Bits_per_Segment;
Bits_per_Vector : constant Integer := Bits_per_Segment*Segments_per_Vector;
subtype Unsigned_Segment is Unsigned_64 range 0 .. 2**Bits_per_Segment-1;
subtype Matrix_Index is Integer range 1 .. Bits_per_Vector;
subtype Segments is Matrix_Index range 1 .. Segments_Per_Vector;
type Vector is array (Segments) of Unsigned_Segment;
type Binary_Matrix is array(Matrix_Index) of Vector;
procedure Get_Rank
(r : in out Binary_Matrix;
Max_Row : in Matrix_Index;
Max_Col : in Matrix_Index;
Rank : out Integer);
subtype Bit_Index is Integer range Matrix_Index'First .. Matrix_Index'First+63;
type Binary_Matrix_Block is array(Bit_Index) of Unsigned_64;
Bit_is_1_at : constant Binary_Matrix_Block :=
(2**00, 2**01, 2**02, 2**03, 2**04, 2**05, 2**06, 2**07, 2**08, 2**09,
2**10, 2**11, 2**12, 2**13, 2**14, 2**15, 2**16, 2**17, 2**18, 2**19,
2**20, 2**21, 2**22, 2**23, 2**24, 2**25, 2**26, 2**27, 2**28, 2**29,
2**30, 2**31, 2**32, 2**33, 2**34, 2**35, 2**36, 2**37, 2**38, 2**39,
2**40, 2**41, 2**42, 2**43, 2**44, 2**45, 2**46, 2**47, 2**48, 2**49,
2**50, 2**51, 2**52, 2**53, 2**54, 2**55, 2**56, 2**57, 2**58, 2**59,
2**60, 2**61, 2**62, 2**63);
end Binary_Rank;
| 33.181818 | 81 | 0.634932 |
5780e2812fa71f15874a4686fda195ed87759644 | 117 | adb | Ada | tests/nonsmoke/functional/CompileTests/experimental_ada_tests/procedure_call.adb | ucd-plse/rose | 17db6454e8baba0014e30a8ec23df1a11ac55a0c | [
"BSD-3-Clause"
] | 488 | 2015-01-09T08:54:48.000Z | 2022-03-30T07:15:46.000Z | tests/nonsmoke/functional/CompileTests/experimental_ada_tests/procedure_call.adb | ucd-plse/rose | 17db6454e8baba0014e30a8ec23df1a11ac55a0c | [
"BSD-3-Clause"
] | 174 | 2015-01-28T18:41:32.000Z | 2022-03-31T16:51:05.000Z | tests/nonsmoke/functional/CompileTests/experimental_ada_tests/tests/procedure_call.adb | passlab/rexompiler | 5494df3766ab606e230c5f1785b438a019c9e353 | [
"BSD-3-Clause"
] | 146 | 2015-04-27T02:48:34.000Z | 2022-03-04T07:32:53.000Z | procedure Procedure_Call is
procedure Do_It is
begin
null;
end;
begin
Do_It;
end Procedure_Call;
| 10.636364 | 27 | 0.683761 |
22b0c44b280bf884decbcd684773bf550698fa36 | 10,749 | adb | Ada | src/Internals/protypo-code_trees-interpreter-statements.adb | fintatarta/protypo | c0c2bca17bc766ab95acc99b7422485388a10cb4 | [
"MIT"
] | null | null | null | src/Internals/protypo-code_trees-interpreter-statements.adb | fintatarta/protypo | c0c2bca17bc766ab95acc99b7422485388a10cb4 | [
"MIT"
] | 4 | 2019-10-09T11:16:38.000Z | 2019-10-09T11:20:38.000Z | src/Internals/protypo-code_trees-interpreter-statements.adb | fintatarta/protypo | c0c2bca17bc766ab95acc99b7422485388a10cb4 | [
"MIT"
] | null | null | null | pragma Ada_2012;
with Protypo.Code_Trees.Interpreter.Compiled_Functions;
with Protypo.Code_Trees.Interpreter.Names;
with Protypo.Code_Trees.Interpreter.Expressions;
with Protypo.Api.Engine_Values.Handlers;
with Ada.Exceptions;
pragma Warnings (Off, "no entities of ""Ada.Text_IO"" are referenced");
with Ada.Text_Io; use Ada.Text_Io;
package body Protypo.Code_Trees.Interpreter.Statements is
use type Names.Name_Reference;
---------
-- Run --
---------
procedure Run (Status : Interpreter_Access;
Program : Node_Vectors.Vector)
is
begin
for Statement of Program loop
Run (Status, Statement);
if Status.Break.Breaking_Reason /= None then
return;
end if;
end loop;
end Run;
function Is_True (X : Engine_Value) return Boolean
is (if X.Class in Numeric_Classes then
(case Numeric_Classes (X.Class) is
when Int => Get_Integer (X) /= 0,
when Real => Get_Float (X) /= 0.0)
else
raise Run_Time_Error
with "Trying to convert non-numeric value ("
& X.Class'Image & ") to Boolean");
package Lhs_Vectors is
new Ada.Containers.Vectors (Index_Type => Positive,
Element_Type => Names.Name_Reference);
procedure Do_Procedure_Call (Status : Interpreter_Access;
Name : Unbounded_Id;
Params : Node_Vectors.Vector)
is
use Api.Symbols.Protypo_Tables;
use type Ada.Containers.Count_Type;
Position : constant Cursor :=
Status.Symbol_Table.Find (Id (To_String (Name)));
begin
if Position = No_Element then
raise Constraint_Error with
"Unknown function '" & To_String (Name) & "'";
end if;
declare
Proc_Handler : constant Engine_Value := Value (Position);
begin
if Proc_Handler.Class /= Function_Handler then
raise Constraint_Error;
end if;
declare
Funct : constant Protypo.Api.Engine_Values.Handlers.Function_Interface_Access :=
Handlers.Get_Function (Proc_Handler);
Parameters : constant Engine_Value_Vectors.Vector :=
Expressions.Eval_Vector (Status, Params);
Call_Ref : constant Names.Name_Reference :=
(Class => Names.Function_Call,
Function_Handler => Funct,
Parameters => Parameters);
Result : constant Engine_Value_Vectors.Vector :=
Expressions.Call_Function (Call_Ref);
begin
if Result.Length /= 0 then
raise Run_Time_Error with "Procedure call returns a value";
end if;
end;
end;
end Do_Procedure_Call;
---------
-- Run --
---------
procedure Run (Status : Interpreter_Access;
Program : not null Node_Access)
is
use Compiled_Functions;
subtype Lhs_Array is Lhs_Vectors.Vector;
type Continue_Or_Stop is (Continue, Stop);
function Run_Loop_Body (Status : Interpreter_Access;
Program : not null Node_Access)
return Continue_Or_Stop
with Pre => Program.Class in Loop_Block .. While_Block;
function Run_Loop_Body (Status : Interpreter_Access;
Program : not null Node_Access)
return Continue_Or_Stop
is
begin
Run (Status, Program.Loop_Body);
case Status.Break.Breaking_Reason is
when None =>
return Continue;
when Return_Statement =>
return Stop;
when Exit_Statement =>
if Status.Break.Loop_Label = Program.Labl
or Status.Break.Loop_Label = Null_Unbounded_String
then
Status.Break := No_Break;
end if;
return Stop;
end case;
end Run_Loop_Body;
begin
if Program.Class not in Statement_Classes then
raise Program_Error
with "Trying to execute a non-statment node ("
& Program.Class'Image & ")";
end if;
case Statement_Classes (Program.Class) is
when Statement_Sequence =>
Run (Status, Program.Statements);
when Defun =>
Status.Symbol_Table.Create
(Name =>
Id (To_String (Program.Definition_Name)),
Initial_Value =>
Handlers.Create (new Compiled_Function'(Function_Body => Program.Function_Body,
Parameters => Program.Parameters,
Status => Status)));
when Assignment =>
declare
use type Ada.Containers.Count_Type;
use type Names.Value_Name_Class;
Values : Engine_Value_Vectors.Vector;
Lhs : Lhs_Array;
begin
Values := Expressions.Eval_Vector (Status, Program.Rvalues);
if Program.Lhs.Length /= Values.Length then
raise Run_Time_Error
with "Assignment with "
& Program.Lhs.Length'Image & " LHS terms and "
& Values.Length'Image & " RHS terms";
end if;
-- Put_Line ("[" & Program.Lhs.First_Index'Image & Program.Lhs.Last_Index'Image);
for Name of Program.Lhs loop
--
-- We first evaluate all the names and only after we do all
-- the assignment because we could have something like
--
-- n := 3;
-- n, x(n) := 4, 7;
--
-- In this case, with the separation of name evaluation and
-- assignment, 7 is assigned to x(3), while if we did not
-- do this, 7 would be assigned to x(4).
--
-- To be honest, there is not anything deeply wrong with
-- second option (that assigns to x(4)), as long as
-- we know it. However, I think that the first one is
-- more intuitive: first all the left hand names are
-- evaluated, then the RHS expressions are computed
-- (with the variable values still unchanged) and finally
-- the assigment is done-
--
-- Put_Line ("@@@");
Lhs.Append (Names.Eval_Name (Status, Name));
-- Put_Line ("@@@ 1");
if Lhs.Last_Element.Class /= Names.Variable_Reference then
--
-- Only reference handlers (that allow for both reading
-- and writing) can be on the LHS
--
raise Run_Time_Error
with
"Found " & Lhs.Last_Element.Class'Image & " on LHS";
end if;
end loop;
-- Put_Line ("@@@ xx");
declare
Shift : constant Integer := Values.First_Index - Lhs.First_Index;
begin
for K in Lhs.First_Index .. Lhs.Last_Index loop
Lhs (K).Variable_Handler.Write (Values (K + Shift));
end loop;
-- Put_Line ("@@@ uu");
end;
end;
when Return_Statement =>
Status.Break :=
Break_Status'(Breaking_Reason => Return_Statement,
Result => Expressions.Eval_Vector (Status, Program.Return_Values));
return;
when Procedure_Call =>
Do_Procedure_Call (Status, Program.Name, Program.Params);
when Exit_Statement =>
Status.Break :=
Break_Status'(Breaking_Reason => Exit_Statement,
Loop_Label => Program.Loop_Label);
return;
when If_Block =>
for Branch of Program.Branches loop
if Is_True (Expressions.Eval_Scalar (Status, Branch.Condition)) then
Run (Status, Branch.Code);
return;
end if;
end loop;
if Program.Else_Branch /= null then
Run (Status, Program.Else_Branch);
end if;
when Loop_Block =>
loop
exit when Run_Loop_Body (Status, Program) = Stop;
end loop;
when For_Block =>
declare
use Api.Symbols;
Iterator_Ref : constant handlers.Iterator_Interface_Access :=
Expressions.Eval_Iterator (Status, Program.Iterator);
Variable : constant Id := Id (To_String (Program.Variable));
Position : Protypo_Tables.Cursor;
begin
Iterator_Ref.Reset;
Status.Symbol_Table.Open_Internal_Namespace;
Status.Symbol_Table.Create
(Name => Variable,
Initial_Value => Void_Value,
Position => Position);
loop
exit when Iterator_Ref.End_Of_Iteration;
Protypo_Tables.Update (Pos => Position,
New_Value => Iterator_Ref.Element);
exit when Run_Loop_Body (Status, Program) = Stop;
Iterator_Ref.Next;
end loop;
Status.Symbol_Table.Close_Namespace;
end;
when While_Block =>
loop
exit when not Is_True (Expressions.Eval_Scalar (Status, Program.Condition));
exit when Run_Loop_Body (Status, Program) = Stop;
end loop;
end case;
exception
when E : Bad_Iterator | Bad_Field =>
raise Run_Time_Error with Ada.Exceptions.Exception_Message (E)
& " at "
& Tokens.Image (Program.Source_Position, False);
when E : Run_Time_Error =>
raise Run_Time_Error with Ada.Exceptions.Exception_Message (E)
& ", "
& Tokens.Image (Program.Source_Position, False);
end Run;
end Protypo.Code_Trees.Interpreter.Statements;
| 33.908517 | 112 | 0.51549 |
58d7bd24e5a938554593342fea5db78fb611dfd3 | 5,141 | ads | Ada | src/gen/gstreamer-gst_low_level-gstreamer_0_10_gst_net_gstnettimeprovider_h.ads | persan/A-gst | 7a39693d105617adea52680424c862a1a08f7368 | [
"Apache-2.0"
] | 1 | 2018-01-18T00:51:00.000Z | 2018-01-18T00:51:00.000Z | src/gen/gstreamer-gst_low_level-gstreamer_0_10_gst_net_gstnettimeprovider_h.ads | persan/A-gst | 7a39693d105617adea52680424c862a1a08f7368 | [
"Apache-2.0"
] | null | null | null | src/gen/gstreamer-gst_low_level-gstreamer_0_10_gst_net_gstnettimeprovider_h.ads | persan/A-gst | 7a39693d105617adea52680424c862a1a08f7368 | [
"Apache-2.0"
] | null | null | null | pragma Ada_2005;
pragma Style_Checks (Off);
pragma Warnings (Off);
with Interfaces.C; use Interfaces.C;
with glib;
with glib.Values;
with System;
with GStreamer.GST_Low_Level.gstreamer_0_10_gst_gstobject_h;
-- limited -- with GStreamer.GST_Low_Level.glib_2_0_glib_gthread_h;
limited with GStreamer.GST_Low_Level.gstreamer_0_10_gst_gstclock_h;
with System;
with glib;
package GStreamer.GST_Low_Level.gstreamer_0_10_gst_net_gstnettimeprovider_h is
-- unsupported macro: GST_TYPE_NET_TIME_PROVIDER (gst_net_time_provider_get_type())
-- arg-macro: function GST_NET_TIME_PROVIDER (obj)
-- return G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_NET_TIME_PROVIDER,GstNetTimeProvider);
-- arg-macro: function GST_NET_TIME_PROVIDER_CLASS (klass)
-- return G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_NET_TIME_PROVIDER,GstNetTimeProviderClass);
-- arg-macro: function GST_IS_NET_TIME_PROVIDER (obj)
-- return G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_NET_TIME_PROVIDER);
-- arg-macro: function GST_IS_NET_TIME_PROVIDER_CLASS (klass)
-- return G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_NET_TIME_PROVIDER);
-- GStreamer
-- * Copyright (C) 2005 Andy Wingo <[email protected]>
-- * 2006 Joni Valtanen <[email protected]>
-- *
-- * This library is free software; you can redistribute it and/or
-- * modify it under the terms of the GNU Library General Public
-- * License as published by the Free Software Foundation; either
-- * version 2 of the License, or (at your option) any later version.
-- *
-- * This library is distributed in the hope that it will be useful,
-- * but WITHOUT ANY WARRANTY; without even the implied warranty of
-- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-- * Library General Public License for more details.
-- *
-- * You should have received a copy of the GNU Library General Public
-- * License along with this library; if not, write to the
-- * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
-- * Boston, MA 02111-1307, USA.
--
-- to determinate os
type GstNetTimeProvider;
type anon_333 (discr : unsigned := 0) is record
case discr is
when 0 =>
u_gst_reserved1 : System.Address; -- gst/net/gstnettimeprovider.h:87
when others =>
active : aliased GLIB.gint; -- gst/net/gstnettimeprovider.h:89
end case;
end record;
pragma Convention (C_Pass_By_Copy, anon_333);
pragma Unchecked_Union (anon_333);type u_GstNetTimeProvider_control_sock_array is array (0 .. 1) of aliased int;
type u_GstNetTimeProvider_u_gst_reserved_array is array (0 .. 1) of System.Address;
--subtype GstNetTimeProvider is u_GstNetTimeProvider; -- gst/net/gstnettimeprovider.h:62
type GstNetTimeProviderClass;
--subtype GstNetTimeProviderClass is u_GstNetTimeProviderClass; -- gst/net/gstnettimeprovider.h:63
-- skipped empty struct u_GstNetTimeProviderPrivate
-- skipped empty struct GstNetTimeProviderPrivate
--*
-- * GstNetTimeProvider:
-- *
-- * Opaque #GstNetTimeProvider structure.
--
type GstNetTimeProvider is record
parent : aliased GStreamer.GST_Low_Level.gstreamer_0_10_gst_gstobject_h.GstObject; -- gst/net/gstnettimeprovider.h:73
address : access GLIB.gchar; -- gst/net/gstnettimeprovider.h:76
port : aliased int; -- gst/net/gstnettimeprovider.h:77
sock : aliased int; -- gst/net/gstnettimeprovider.h:79
control_sock : aliased u_GstNetTimeProvider_control_sock_array; -- gst/net/gstnettimeprovider.h:80
thread : access GStreamer.GST_Low_Level.glib_2_0_glib_gthread_h.GThread; -- gst/net/gstnettimeprovider.h:82
clock : access GStreamer.GST_Low_Level.gstreamer_0_10_gst_gstclock_h.GstClock; -- gst/net/gstnettimeprovider.h:84
active : aliased anon_333; -- gst/net/gstnettimeprovider.h:90
priv : System.Address; -- gst/net/gstnettimeprovider.h:93
u_gst_reserved : u_GstNetTimeProvider_u_gst_reserved_array; -- gst/net/gstnettimeprovider.h:95
end record;
pragma Convention (C_Pass_By_Copy, GstNetTimeProvider); -- gst/net/gstnettimeprovider.h:72
--< private >
-- has to be a gint, we use atomic ops here
--< private >
type GstNetTimeProviderClass is record
parent_class : aliased GStreamer.GST_Low_Level.gstreamer_0_10_gst_gstobject_h.GstObjectClass; -- gst/net/gstnettimeprovider.h:99
end record;
pragma Convention (C_Pass_By_Copy, GstNetTimeProviderClass); -- gst/net/gstnettimeprovider.h:98
function gst_net_time_provider_get_type return GLIB.GType; -- gst/net/gstnettimeprovider.h:102
pragma Import (C, gst_net_time_provider_get_type, "gst_net_time_provider_get_type");
function gst_net_time_provider_new
(clock : access GStreamer.GST_Low_Level.gstreamer_0_10_gst_gstclock_h.GstClock;
address : access GLIB.gchar;
port : GLIB.gint) return access GstNetTimeProvider; -- gst/net/gstnettimeprovider.h:103
pragma Import (C, gst_net_time_provider_new, "gst_net_time_provider_new");
end GStreamer.GST_Low_Level.gstreamer_0_10_gst_net_gstnettimeprovider_h;
| 48.5 | 135 | 0.748687 |
58973790b059666d613464b8fb999c58b9db1f1f | 620 | adb | Ada | examples/arinc653-threads/hello1.adb | Ureir/pok | 1f9e357e3f66caf56354d186c5f96f296b158ba5 | [
"BSD-2-Clause"
] | null | null | null | examples/arinc653-threads/hello1.adb | Ureir/pok | 1f9e357e3f66caf56354d186c5f96f296b158ba5 | [
"BSD-2-Clause"
] | null | null | null | examples/arinc653-threads/hello1.adb | Ureir/pok | 1f9e357e3f66caf56354d186c5f96f296b158ba5 | [
"BSD-2-Clause"
] | null | null | null | -- POK header
--
-- The following file is a part of the POK project. Any modification should
-- be made according to the POK licence. You CANNOT use this file or a part
-- of a file for your own project.
--
-- For more information on the POK licence, please see our LICENCE FILE
--
-- Please follow the coding guidelines described in doc/CODING_GUIDELINES
--
-- Copyright (c) 2007-2022 POK team
with Ada.Text_IO;
use Ada.Text_IO;
package User is
procedure Hello_Part1 is
begin
Put_Line ("Hello from part1");
end Hello_Part1;
end User;
| 26.956522 | 75 | 0.648387 |
3163c1e32b9994759e443e658a2051fe1fa0e8c1 | 4,834 | ads | Ada | source/amf/mof/cmof/amf-cmof-classes-collections.ads | svn2github/matreshka | 9d222b3ad9da508855fb1f5adbe5e8a4fad4c530 | [
"BSD-3-Clause"
] | 24 | 2016-11-29T06:59:41.000Z | 2021-08-30T11:55:16.000Z | source/amf/mof/cmof/amf-cmof-classes-collections.ads | svn2github/matreshka | 9d222b3ad9da508855fb1f5adbe5e8a4fad4c530 | [
"BSD-3-Clause"
] | 2 | 2019-01-16T05:15:20.000Z | 2019-02-03T10:03:32.000Z | source/amf/mof/cmof/amf-cmof-classes-collections.ads | svn2github/matreshka | 9d222b3ad9da508855fb1f5adbe5e8a4fad4c530 | [
"BSD-3-Clause"
] | 4 | 2017-07-18T07:11:05.000Z | 2020-06-21T03:02:25.000Z | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- Ada Modeling Framework --
-- --
-- Runtime Library Component --
-- --
------------------------------------------------------------------------------
-- --
-- Copyright © 2011-2012, Vadim Godunko <[email protected]> --
-- All rights reserved. --
-- --
-- Redistribution and use in source and binary forms, with or without --
-- modification, are permitted provided that the following conditions --
-- are met: --
-- --
-- * Redistributions of source code must retain the above copyright --
-- notice, this list of conditions and the following disclaimer. --
-- --
-- * Redistributions in binary form must reproduce the above copyright --
-- notice, this list of conditions and the following disclaimer in the --
-- documentation and/or other materials provided with the distribution. --
-- --
-- * Neither the name of the Vadim Godunko, IE nor the names of its --
-- contributors may be used to endorse or promote products derived from --
-- this software without specific prior written permission. --
-- --
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS --
-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT --
-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR --
-- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT --
-- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, --
-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED --
-- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR --
-- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF --
-- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING --
-- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS --
-- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --
-- --
------------------------------------------------------------------------------
-- $Revision$ $Date$
------------------------------------------------------------------------------
-- This file is generated, don't edit it.
------------------------------------------------------------------------------
with AMF.Generic_Collections;
package AMF.CMOF.Classes.Collections is
pragma Preelaborate;
package CMOF_Class_Collections is
new AMF.Generic_Collections
(CMOF_Class,
CMOF_Class_Access);
type Set_Of_CMOF_Class is
new CMOF_Class_Collections.Set with null record;
Empty_Set_Of_CMOF_Class : constant Set_Of_CMOF_Class;
type Ordered_Set_Of_CMOF_Class is
new CMOF_Class_Collections.Ordered_Set with null record;
Empty_Ordered_Set_Of_CMOF_Class : constant Ordered_Set_Of_CMOF_Class;
type Bag_Of_CMOF_Class is
new CMOF_Class_Collections.Bag with null record;
Empty_Bag_Of_CMOF_Class : constant Bag_Of_CMOF_Class;
type Sequence_Of_CMOF_Class is
new CMOF_Class_Collections.Sequence with null record;
Empty_Sequence_Of_CMOF_Class : constant Sequence_Of_CMOF_Class;
private
Empty_Set_Of_CMOF_Class : constant Set_Of_CMOF_Class
:= (CMOF_Class_Collections.Set with null record);
Empty_Ordered_Set_Of_CMOF_Class : constant Ordered_Set_Of_CMOF_Class
:= (CMOF_Class_Collections.Ordered_Set with null record);
Empty_Bag_Of_CMOF_Class : constant Bag_Of_CMOF_Class
:= (CMOF_Class_Collections.Bag with null record);
Empty_Sequence_Of_CMOF_Class : constant Sequence_Of_CMOF_Class
:= (CMOF_Class_Collections.Sequence with null record);
end AMF.CMOF.Classes.Collections;
| 52.543478 | 78 | 0.499586 |
58fb2375b266a5d2a4335641ea07a08628921843 | 3,245 | adb | Ada | applet/aide/source/palettes/aide-palette-of_packages_subpackages.adb | charlie5/aIDE | fab406dbcd9b72a4cb215ffebb05166c788d6365 | [
"MIT"
] | 3 | 2017-04-29T14:25:22.000Z | 2017-09-29T10:15:28.000Z | applet/aide/source/palettes/aide-palette-of_packages_subpackages.adb | charlie5/aIDE | fab406dbcd9b72a4cb215ffebb05166c788d6365 | [
"MIT"
] | null | null | null | applet/aide/source/palettes/aide-palette-of_packages_subpackages.adb | charlie5/aIDE | fab406dbcd9b72a4cb215ffebb05166c788d6365 | [
"MIT"
] | null | null | null | with
-- AdaM.a_Package,
Glib,
Glib.Error,
Glib.Object,
Gtk.Builder,
Gtk.Handlers;
with Ada.Text_IO; use Ada.Text_IO;
package body aIDE.Palette.of_packages_subpackages
is
use Glib,
Glib.Error,
Glib.Object,
Gtk.Box,
Gtk.Builder,
Gtk.Button,
Gtk.Frame;
type button_Info is
record
the_Package : AdaM.a_Package.view;
package_Name : AdaM.Text;
packages_Palette : aIDE.Palette.of_packages.view;
end record;
procedure on_select_Button_clicked (the_Button : access Gtk_Button_Record'Class;
the_Info : in button_Info)
is
pragma Unreferenced (the_Button);
use AdaM;
begin
the_Info.packages_Palette.choice_is (+the_Info.package_Name, the_Info.the_Package);
end on_select_Button_clicked;
package Button_Callbacks is new Gtk.Handlers.User_Callback (Gtk_Button_Record,
button_Info);
-- Forge
--
function to_packages_Palette_package return View
is
Self : constant Palette.of_packages_subpackages.view := new Palette.of_packages_subpackages.item;
the_Builder : Gtk_Builder;
Error : aliased GError;
Result : Guint;
pragma Unreferenced (Result);
begin
Gtk_New (the_Builder);
Result := the_Builder.Add_From_File ("glade/palette/packages_palette-subpackages.glade", Error'Access);
if Error /= null
then
Put_Line ("Error: 'adam.Palette.of_packages_subpackages.to_packages_Palette_package' ~ " & Get_Message (Error));
Error_Free (Error);
end if;
Self.Top := gtk_Frame (the_Builder.get_Object ("top_Frame"));
Self.select_button_Box := gtk_Box (the_Builder.get_Object ("select_button_Box"));
Self.children_Notebook := gtk_Notebook (the_Builder.get_Object ("children_Notebook"));
return Self;
end to_packages_Palette_package;
function new_Button (for_Package : in AdaM.a_Package.view;
Named : in String;
packages_Palette : in palette.of_packages.view) return gtk_Button
is
use AdaM;
the_Button : gtk_Button;
begin
gtk_New (the_Button, Named);
Button_Callbacks.connect (the_Button,
"clicked",
on_select_Button_clicked'Access,
(for_Package,
+Named,
packages_Palette));
return the_Button;
end new_Button;
-- Attributes
--
procedure Parent_is (Self : in out Item; Now : in aIDE.Palette.of_packages.view)
is
begin
Self.Parent := Now;
end Parent_is;
function top_Widget (Self : in Item) return gtk.Widget.Gtk_Widget
is
begin
return gtk.Widget.Gtk_Widget (Self.Top);
end top_Widget;
function children_Notebook (Self : in Item) return gtk_Notebook
is
begin
return Self.children_Notebook;
end children_Notebook;
end aIDE.Palette.of_packages_subpackages;
| 25.351563 | 121 | 0.601541 |
22bbee9daeab7ae24e9aab76a08752ac02189e5f | 11,435 | adb | Ada | tools-src/gnu/gcc/gcc/ada/4vcalend.adb | modern-tomato/tomato | 96f09fab4929c6ddde5c9113f1b2476ad37133c4 | [
"FSFAP"
] | 80 | 2015-01-02T10:14:04.000Z | 2021-06-07T06:29:49.000Z | tools-src/gnu/gcc/gcc/ada/4vcalend.adb | modern-tomato/tomato | 96f09fab4929c6ddde5c9113f1b2476ad37133c4 | [
"FSFAP"
] | 9 | 2015-05-14T11:03:12.000Z | 2018-01-04T07:12:58.000Z | tools-src/gnu/gcc/gcc/ada/4vcalend.adb | modern-tomato/tomato | 96f09fab4929c6ddde5c9113f1b2476ad37133c4 | [
"FSFAP"
] | 69 | 2015-01-02T10:45:56.000Z | 2021-09-06T07:52:13.000Z | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- A D A . C A L E N D A R --
-- --
-- B o d y --
-- --
-- $Revision$
-- --
-- Copyright (C) 1992-2000 Free Software Foundation, Inc. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 2, or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License --
-- for more details. You should have received a copy of the GNU General --
-- Public License distributed with GNAT; see file COPYING. If not, write --
-- to the Free Software Foundation, 59 Temple Place - Suite 330, Boston, --
-- MA 02111-1307, USA. --
-- --
-- As a special exception, if other files instantiate generics from this --
-- unit, or you link this unit with other files to produce an executable, --
-- this unit does not by itself cause the resulting executable to be --
-- covered by the GNU General Public License. This exception does not --
-- however invalidate any other reasons why the executable file might be --
-- covered by the GNU Public License. --
-- --
-- GNAT was originally developed by the GNAT team at New York University. --
-- Extensive contributions were provided by Ada Core Technologies Inc. --
-- --
------------------------------------------------------------------------------
-- This is the Alpha/VMS version.
with System.Aux_DEC; use System.Aux_DEC;
package body Ada.Calendar is
------------------------------
-- Use of Pragma Unsuppress --
------------------------------
-- This implementation of Calendar takes advantage of the permission in
-- Ada 95 of using arithmetic overflow checks to check for out of bounds
-- time values. This means that we must catch the constraint error that
-- results from arithmetic overflow, so we use pragma Unsuppress to make
-- sure that overflow is enabled, using software overflow checking if
-- necessary. That way, compiling Calendar with options to suppress this
-- checking will not affect its correctness.
------------------------
-- Local Declarations --
------------------------
Ada_Year_Min : constant := 1901;
Ada_Year_Max : constant := 2099;
-- Some basic constants used throughout
Days_In_Month : constant array (Month_Number) of Day_Number :=
(31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31);
function To_Relative_Time (D : Duration) return Time;
function To_Relative_Time (D : Duration) return Time is
begin
return Time (Long_Integer'Integer_Value (D) / 100);
end To_Relative_Time;
---------
-- "+" --
---------
function "+" (Left : Time; Right : Duration) return Time is
pragma Unsuppress (Overflow_Check);
begin
return (Left + To_Relative_Time (Right));
exception
when Constraint_Error =>
raise Time_Error;
end "+";
function "+" (Left : Duration; Right : Time) return Time is
pragma Unsuppress (Overflow_Check);
begin
return (To_Relative_Time (Left) + Right);
exception
when Constraint_Error =>
raise Time_Error;
end "+";
---------
-- "-" --
---------
function "-" (Left : Time; Right : Duration) return Time is
pragma Unsuppress (Overflow_Check);
begin
return Left - To_Relative_Time (Right);
exception
when Constraint_Error =>
raise Time_Error;
end "-";
function "-" (Left : Time; Right : Time) return Duration is
pragma Unsuppress (Overflow_Check);
begin
return Duration'Fixed_Value
((Long_Integer (Left) - Long_Integer (Right)) * 100);
exception
when Constraint_Error =>
raise Time_Error;
end "-";
---------
-- "<" --
---------
function "<" (Left, Right : Time) return Boolean is
begin
return Long_Integer (Left) < Long_Integer (Right);
end "<";
----------
-- "<=" --
----------
function "<=" (Left, Right : Time) return Boolean is
begin
return Long_Integer (Left) <= Long_Integer (Right);
end "<=";
---------
-- ">" --
---------
function ">" (Left, Right : Time) return Boolean is
begin
return Long_Integer (Left) > Long_Integer (Right);
end ">";
----------
-- ">=" --
----------
function ">=" (Left, Right : Time) return Boolean is
begin
return Long_Integer (Left) >= Long_Integer (Right);
end ">=";
-----------
-- Clock --
-----------
-- The Ada.Calendar.Clock function gets the time.
-- Note that on other targets a soft-link is used to get a different clock
-- depending whether tasking is used or not. On VMS this isn't needed
-- since all clock calls end up using SYS$GETTIM, so call the
-- OS_Primitives version for efficiency.
function Clock return Time is
begin
return Time (OSP.OS_Clock);
end Clock;
---------
-- Day --
---------
function Day (Date : Time) return Day_Number is
DY : Year_Number;
DM : Month_Number;
DD : Day_Number;
DS : Day_Duration;
begin
Split (Date, DY, DM, DD, DS);
return DD;
end Day;
-----------
-- Month --
-----------
function Month (Date : Time) return Month_Number is
DY : Year_Number;
DM : Month_Number;
DD : Day_Number;
DS : Day_Duration;
begin
Split (Date, DY, DM, DD, DS);
return DM;
end Month;
-------------
-- Seconds --
-------------
function Seconds (Date : Time) return Day_Duration is
DY : Year_Number;
DM : Month_Number;
DD : Day_Number;
DS : Day_Duration;
begin
Split (Date, DY, DM, DD, DS);
return DS;
end Seconds;
-----------
-- Split --
-----------
procedure Split
(Date : Time;
Year : out Year_Number;
Month : out Month_Number;
Day : out Day_Number;
Seconds : out Day_Duration)
is
procedure Numtim (
Status : out Unsigned_Longword;
Timbuf : out Unsigned_Word_Array;
Timadr : in Time);
pragma Interface (External, Numtim);
pragma Import_Valued_Procedure (Numtim, "SYS$NUMTIM",
(Unsigned_Longword, Unsigned_Word_Array, Time),
(Value, Reference, Reference));
Status : Unsigned_Longword;
Timbuf : Unsigned_Word_Array (1 .. 7);
begin
Numtim (Status, Timbuf, Date);
if Status mod 2 /= 1
or else Timbuf (1) not in Ada_Year_Min .. Ada_Year_Max
then
raise Time_Error;
end if;
Seconds
:= Day_Duration (Timbuf (6) + 60 * (Timbuf (5) + 60 * Timbuf (4)))
+ Day_Duration (Timbuf (7)) / 100.0;
Day := Integer (Timbuf (3));
Month := Integer (Timbuf (2));
Year := Integer (Timbuf (1));
end Split;
-------------
-- Time_Of --
-------------
function Time_Of
(Year : Year_Number;
Month : Month_Number;
Day : Day_Number;
Seconds : Day_Duration := 0.0)
return Time
is
procedure Cvt_Vectim (
Status : out Unsigned_Longword;
Input_Time : in Unsigned_Word_Array;
Resultant_Time : out Time);
pragma Interface (External, Cvt_Vectim);
pragma Import_Valued_Procedure (Cvt_Vectim, "LIB$CVT_VECTIM",
(Unsigned_Longword, Unsigned_Word_Array, Time),
(Value, Reference, Reference));
Status : Unsigned_Longword;
Timbuf : Unsigned_Word_Array (1 .. 7);
Date : Time;
Int_Secs : Integer;
Day_Hack : Boolean := False;
begin
-- The following checks are redundant with respect to the constraint
-- error checks that should normally be made on parameters, but we
-- decide to raise Constraint_Error in any case if bad values come
-- in (as a result of checks being off in the caller, or for other
-- erroneous or bounded error cases).
if not Year 'Valid
or else not Month 'Valid
or else not Day 'Valid
or else not Seconds'Valid
then
raise Constraint_Error;
end if;
-- Truncate seconds value by subtracting 0.5 and rounding,
-- but be careful with 0.0 since that will give -1.0 unless
-- it is treated specially.
if Seconds > 0.0 then
Int_Secs := Integer (Seconds - 0.5);
else
Int_Secs := Integer (Seconds);
end if;
-- Cvt_Vectim barfs on the largest Day_Duration, so trick it by
-- setting it to zero and then adding the difference after conversion.
if Int_Secs = 86_400 then
Int_Secs := 0;
Day_Hack := True;
Timbuf (7) := 0;
else
Timbuf (7) := Unsigned_Word
(100.0 * Duration (Seconds - Day_Duration (Int_Secs)));
-- Cvt_Vectim accurate only to within .01 seconds
end if;
-- Similar hack needed for 86399 and 100/100ths, since that gets
-- treated as 86400 (largest Day_Duration). This can happen because
-- Duration has more accuracy than VMS system time conversion calls
-- can handle.
if Int_Secs = 86_399 and then Timbuf (7) = 100 then
Int_Secs := 0;
Day_Hack := True;
Timbuf (7) := 0;
end if;
Timbuf (6) := Unsigned_Word (Int_Secs mod 60);
Timbuf (5) := Unsigned_Word ((Int_Secs / 60) mod 60);
Timbuf (4) := Unsigned_Word (Int_Secs / 3600);
Timbuf (3) := Unsigned_Word (Day);
Timbuf (2) := Unsigned_Word (Month);
Timbuf (1) := Unsigned_Word (Year);
Cvt_Vectim (Status, Timbuf, Date);
if Status mod 2 /= 1 then
raise Time_Error;
end if;
if Day_Hack then
Date := Date + 10_000_000 * 86_400;
end if;
return Date;
end Time_Of;
----------
-- Year --
----------
function Year (Date : Time) return Year_Number is
DY : Year_Number;
DM : Month_Number;
DD : Day_Number;
DS : Day_Duration;
begin
Split (Date, DY, DM, DD, DS);
return DY;
end Year;
end Ada.Calendar;
| 30.574866 | 78 | 0.526891 |
5860ac7d71a55f5b2bc89201103000a2fb5a3b75 | 6,226 | ada | Ada | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c6/c64109e.ada | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | 7 | 2020-05-02T17:34:05.000Z | 2021-10-17T10:15:18.000Z | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c6/c64109e.ada | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | null | null | null | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c6/c64109e.ada | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | 2 | 2020-07-27T00:22:36.000Z | 2021-04-01T09:41:02.000Z | -- C64109E.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 ARRAYS THAT ARE COMPONENTS OF RECORDS ARE PASSED CORRECTLY
-- TO SUBPROGRAMS. SPECIFICALLY,
-- (E) CHECK THE CASE WHERE THE FORMAL IS UNCONSTRAINED, AND ARRAYS
-- WITH DIFFERENT BOUNDS ARE PASSED AS ACTUALS.
-- CPP 8/20/84
WITH REPORT; USE REPORT;
PROCEDURE C64109E IS
BEGIN
TEST ("C64109E", "CHECK THAT ARRAYS WHICH ARE COMPONENTS OF " &
"RECORDS ARE PASSED CORRECTLY TO SUBPROGRAMS - " &
"ARRAYS WITH DIFFERENT BOUNDS PASSED TO UNCONSTRAINED " &
"FORMAL");
DECLARE -- (E)
SUBTYPE SUBINT IS INTEGER RANGE 0..5;
TYPE ARRAY_TYPE IS ARRAY (SUBINT RANGE <>) OF BOOLEAN;
TYPE RECORD_TYPE IS
RECORD
A : ARRAY_TYPE (IDENT_INT(0)..IDENT_INT(2));
B : ARRAY_TYPE (1..3);
END RECORD;
REC : RECORD_TYPE := (A => (0..2 => IDENT_BOOL(TRUE)),
B => (1..3 => IDENT_BOOL(FALSE)));
BOOL : BOOLEAN;
PROCEDURE P1 (ARR : ARRAY_TYPE; ARR2 : ARRAY_TYPE) IS
BEGIN
IF ARR /= (TRUE, TRUE, TRUE) THEN
FAILED ("IN PARAM NOT PASSED CORRECTLY");
END IF;
IF ARR'FIRST /= IDENT_INT(0) OR ARR'LAST /= 2 THEN
FAILED ("WRONG IN PARAMETER BOUNDS - 1");
END IF;
IF ARR2 /= (FALSE, FALSE, FALSE) THEN
FAILED ("IN PARAM NOT PASSED CORRECTLY - 2");
END IF;
IF ARR2'FIRST /= 1 OR ARR2'LAST /= IDENT_INT(3) THEN
FAILED ("WRONG IN PARAMETER BOUNDS - 2");
END IF;
END P1;
FUNCTION F1 ( ARR : ARRAY_TYPE; ARR2 : ARRAY_TYPE)
RETURN BOOLEAN IS
BEGIN
IF ARR /= (TRUE, TRUE, TRUE) THEN
FAILED ("IN PARAM NOT PASSED CORRECTLY TO FN");
END IF;
IF ARR'FIRST /= IDENT_INT(0) OR ARR'LAST /= 2 THEN
FAILED ("WRONG IN PARAMETER BOUNDS FOR FN - 1");
END IF;
IF ARR2 /= (FALSE, FALSE, FALSE) THEN
FAILED ("IN PARAM NOT PASSED CORRECTLY TO FN");
END IF;
IF ARR2'FIRST /= 1 OR ARR2'LAST /= IDENT_INT(3) THEN
FAILED ("WRONG IN PARAMETER BOUNDS FOR FN - 2");
END IF;
RETURN TRUE;
END F1;
PROCEDURE P2 (ARR : IN OUT ARRAY_TYPE;
ARR2 : IN OUT ARRAY_TYPE) IS
BEGIN
IF ARR /= (TRUE, TRUE, TRUE) THEN
FAILED ("IN OUT PARAM NOT PASSED CORRECTLY");
END IF;
IF ARR'FIRST /= IDENT_INT(0) OR ARR'LAST /= 2 THEN
FAILED ("WRONG IN OUT PARAMETER BOUNDS - 1");
END IF;
IF ARR2 /= (FALSE, FALSE, FALSE) THEN
FAILED ("IN OUT PARAM NOT PASSED CORRECTLY");
END IF;
IF ARR2'FIRST /= 1 OR ARR2'LAST /= IDENT_INT(3) THEN
FAILED ("WRONG IN OUT PARAMETER BOUNDS - 2");
END IF;
ARR := (ARR'RANGE => FALSE);
ARR2 := (ARR2'RANGE => TRUE);
END P2;
PROCEDURE P3 (ARR : OUT ARRAY_TYPE; ARR2 : OUT ARRAY_TYPE) IS
BEGIN
IF ARR'FIRST /= IDENT_INT(0) OR ARR'LAST /= 2 THEN
FAILED ("WRONG OUT PARAMETER BOUNDS - 1");
END IF;
IF ARR2'FIRST /= 1 OR ARR2'LAST /= IDENT_INT(3) THEN
FAILED ("WRONG OUT PARAMETER BOUNDS - 2");
END IF;
ARR := (ARR'RANGE => FALSE);
ARR2 := (ARR2'RANGE => TRUE);
END P3;
BEGIN -- (E)
P1 (REC.A, REC.B);
IF REC.A /= (TRUE, TRUE, TRUE) THEN
FAILED ("IN PARAM CHANGED BY PROCEDURE");
END IF;
IF REC.B /= (FALSE, FALSE, FALSE) THEN
FAILED ("IN PARAM CHANGED BY PROCEDURE - 2");
END IF;
BOOL := F1 (REC.A, REC.B);
IF REC.A /= (TRUE, TRUE, TRUE) THEN
FAILED ("IN PARAM CHANGED BY FUNCTION");
END IF;
IF REC.B /= (FALSE, FALSE, FALSE) THEN
FAILED ("IN PARAM CHANGED BY FUNCTION - 2");
END IF;
P2 (REC.A, REC.B);
IF REC.A /= (FALSE, FALSE, FALSE) THEN
FAILED ("IN OUT PARAM RETURNED INCORRECTLY");
END IF;
IF REC.B /= (TRUE, TRUE, TRUE) THEN
FAILED ("IN OUT PARAM RETURNED INCORRECTLY - 2");
END IF;
P3 (REC.A, REC.B);
IF REC.A /= (FALSE, FALSE, FALSE) THEN
FAILED ("OUT PARAM RETURNED INCORRECTLY");
END IF;
IF REC.B /= (TRUE, TRUE, TRUE) THEN
FAILED ("OUT PARAM RETURNED INCORRECTLY - 2");
END IF;
END; -- (E)
RESULT;
END C64109E;
| 39.656051 | 79 | 0.518471 |
c7c924151281434127bfe331257218b2495b4ab4 | 1,903 | ads | Ada | tier-1/xcb/source/thin/xcb-xcb_change_pointer_control_request_t.ads | charlie5/cBound | 741be08197a61ad9c72553e3302f3b669902216d | [
"0BSD"
] | 2 | 2015-11-12T11:16:20.000Z | 2021-08-24T22:32:04.000Z | tier-1/xcb/source/thin/xcb-xcb_change_pointer_control_request_t.ads | charlie5/cBound | 741be08197a61ad9c72553e3302f3b669902216d | [
"0BSD"
] | 1 | 2018-06-05T05:19:35.000Z | 2021-11-20T01:13:23.000Z | tier-1/xcb/source/thin/xcb-xcb_change_pointer_control_request_t.ads | charlie5/cBound | 741be08197a61ad9c72553e3302f3b669902216d | [
"0BSD"
] | null | null | null | -- This file is generated by SWIG. Please do not modify by hand.
--
with Interfaces;
with Interfaces.C;
with Interfaces.C.Pointers;
package xcb.xcb_change_pointer_control_request_t is
-- Item
--
type Item is record
major_opcode : aliased Interfaces.Unsigned_8;
pad0 : aliased Interfaces.Unsigned_8;
length : aliased Interfaces.Unsigned_16;
acceleration_numerator : aliased Interfaces.Integer_16;
acceleration_denominator : aliased Interfaces.Integer_16;
threshold : aliased Interfaces.Integer_16;
do_acceleration : aliased Interfaces.Unsigned_8;
do_threshold : aliased Interfaces.Unsigned_8;
end record;
-- Item_Array
--
type Item_Array is
array
(Interfaces.C
.size_t range <>) of aliased xcb.xcb_change_pointer_control_request_t
.Item;
-- Pointer
--
package C_Pointers is new Interfaces.C.Pointers
(Index => Interfaces.C.size_t,
Element => xcb.xcb_change_pointer_control_request_t.Item,
Element_Array => xcb.xcb_change_pointer_control_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_change_pointer_control_request_t
.Pointer;
-- Pointer_Pointer
--
package C_Pointer_Pointers is new Interfaces.C.Pointers
(Index => Interfaces.C.size_t,
Element => xcb.xcb_change_pointer_control_request_t.Pointer,
Element_Array => xcb.xcb_change_pointer_control_request_t.Pointer_Array,
Default_Terminator => null);
subtype Pointer_Pointer is C_Pointer_Pointers.Pointer;
end xcb.xcb_change_pointer_control_request_t;
| 31.716667 | 79 | 0.668944 |
c79723974d2c7efcd598950b35de67a556e10ef8 | 470 | adb | Ada | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/trampoline4.adb | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | 7 | 2020-05-02T17:34:05.000Z | 2021-10-17T10:15:18.000Z | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/trampoline4.adb | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | null | null | null | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/trampoline4.adb | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | 2 | 2020-07-27T00:22:36.000Z | 2021-04-01T09:41:02.000Z | -- { dg-do compile { target *-*-linux* } }
-- { dg-options "-ftrampolines -gnatws" }
-- { dg-skip-if "standard descriptors" { hppa*-*-* ia64-*-* powerpc64-*-* } }
procedure Trampoline4 is
A : Integer;
type FuncPtr is access function (I : Integer) return Integer;
function F (I : Integer) return Integer is
begin
return A + I;
end F;
P : FuncPtr := F'Access;
I : Integer;
begin
I := P(0);
end;
-- { dg-final { scan-assembler "GNU-stack.*x" } }
| 19.583333 | 77 | 0.602128 |
222a1149421fb7f5fca17041355fd1c19bdfcbe4 | 2,957 | ads | Ada | Src/xmodem.ads | SMerrony/dashera | 74961f34a44cabae414e84537e8baae0ecb373c9 | [
"MIT"
] | 23 | 2021-12-12T15:20:22.000Z | 2022-03-19T19:55:06.000Z | Src/xmodem.ads | SMerrony/dashera | 74961f34a44cabae414e84537e8baae0ecb373c9 | [
"MIT"
] | 1 | 2022-03-10T00:09:35.000Z | 2022-03-15T08:16:00.000Z | Src/xmodem.ads | SMerrony/dashera | 74961f34a44cabae414e84537e8baae0ecb373c9 | [
"MIT"
] | 1 | 2022-03-11T19:42:02.000Z | 2022-03-11T19:42:02.000Z | -- Copyright ©2022 Steve Merrony
-- 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.Containers; use Ada.Containers;
with Ada.Containers.Vectors;
with Ada.Streams.Stream_IO; use Ada.Streams.Stream_IO;
with Ada.Unchecked_Conversion;
with Interfaces; use Interfaces;
package Xmodem is
type Packet_Size is (Short, Long);
for Packet_Size use (Short => 128, Long => 1024);
package Char_Vectors is new Ada.Containers.Vectors (Index_Type => Natural, Element_Type => Character);
use Char_Vectors;
task type Receiver is
entry Start (RX_Stream : Stream_Access);
entry Accept_Data (Char : in Character);
entry Done;
-- entry Stop;
end Receiver;
type Receiver_Acc is access Receiver;
Receiver_Task : Receiver_Acc;
procedure Receive (Filename : in String; Trace_Flag : in Boolean);
task type Sender is
entry Start (TX_Stream : in Stream_Access; Pkt_Len : in Packet_Size);
entry Accept_Data (Char : in Character);
entry Done;
end Sender;
type Sender_Acc is access Sender;
Sender_Task : Sender_Acc;
procedure Send (Filename : in String; Pkt_Len : in Packet_Size; Trace_Flag : in Boolean);
Already_Exists,
File_Does_Not_Exist,
File_Access_Error,
Protocol_Error,
Sender_Cancelled,
Timeout,
Too_Many_Retries : exception;
private
function Char_To_U8 is new Ada.Unchecked_Conversion(Character, Unsigned_8);
function Byte_To_Char is new Ada.Unchecked_Conversion(Unsigned_8, Character);
function CRC_16 (Data : in Vector) return Unsigned_16;
-- Calculate the CRC-16 value of the provided block of data
function CRC_16_Fixed_Len (Data : in Vector; FL : in Positive) return Unsigned_16;
-- Calculate the CRC-16 Constant for the provided block of data
procedure Send_Block (Data : in out Vector; Block_Num : in Natural; Block_Size : in Packet_Size);
Tracing : Boolean;
end Xmodem; | 36.060976 | 105 | 0.738925 |
58d7837aad2fb8139eab9116cc849724740eea3e | 3,227 | ads | Ada | Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/s-pack19.ads | djamal2727/Main-Bearing-Analytical-Model | 2f00c2219c71be0175c6f4f8f1d4cca231d97096 | [
"Apache-2.0"
] | null | null | null | Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/s-pack19.ads | djamal2727/Main-Bearing-Analytical-Model | 2f00c2219c71be0175c6f4f8f1d4cca231d97096 | [
"Apache-2.0"
] | null | null | null | Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/s-pack19.ads | djamal2727/Main-Bearing-Analytical-Model | 2f00c2219c71be0175c6f4f8f1d4cca231d97096 | [
"Apache-2.0"
] | null | null | null | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- S Y S T E M . P A C K _ 1 9 --
-- --
-- S p e c --
-- --
-- Copyright (C) 1992-2020, Free Software Foundation, Inc. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 3, or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. --
-- --
-- As a special exception under Section 7 of GPL version 3, you are granted --
-- additional permissions described in the GCC Runtime Library Exception, --
-- version 3.1, as published by the Free Software Foundation. --
-- --
-- You should have received a copy of the GNU General Public License and --
-- a copy of the GCC Runtime Library Exception along with this program; --
-- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
-- <http://www.gnu.org/licenses/>. --
-- --
-- GNAT was originally developed by the GNAT team at New York University. --
-- Extensive contributions were provided by Ada Core Technologies Inc. --
-- --
------------------------------------------------------------------------------
-- Handling of packed arrays with Component_Size = 19
package System.Pack_19 is
pragma Preelaborate;
Bits : constant := 19;
type Bits_19 is mod 2 ** Bits;
for Bits_19'Size use Bits;
-- In all subprograms below, Rev_SSO is set True if the array has the
-- non-default scalar storage order.
function Get_19
(Arr : System.Address;
N : Natural;
Rev_SSO : Boolean) return Bits_19 with Inline;
-- Arr is the address of the packed array, N is the zero-based
-- subscript. This element is extracted and returned.
procedure Set_19
(Arr : System.Address;
N : Natural;
E : Bits_19;
Rev_SSO : Boolean) with Inline;
-- Arr is the address of the packed array, N is the zero-based
-- subscript. This element is set to the given value.
end System.Pack_19;
| 52.901639 | 78 | 0.439727 |
3d89b90288f63a191535371a03c55a5dc68b3fe7 | 4,060 | ads | Ada | physical_memory/memory.ads | SMerrony/dgemua | 138b09f814c3576e45fe8d25303a6c2329999757 | [
"MIT"
] | 2 | 2021-03-26T08:25:38.000Z | 2021-06-08T03:10:12.000Z | physical_memory/memory.ads | SMerrony/dgemua | 138b09f814c3576e45fe8d25303a6c2329999757 | [
"MIT"
] | null | null | null | physical_memory/memory.ads | SMerrony/dgemua | 138b09f814c3576e45fe8d25303a6c2329999757 | [
"MIT"
] | null | null | null | -- MIT License
-- Copyright (c) 2021 Stephen Merrony
-- Permission is hereby granted, free of charge, to any person obtaining a copy
-- of this software and associated documentation files (the "Software"), to deal
-- in the Software without restriction, including without limitation the rights
-- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-- copies of the Software, and to permit persons to whom the Software is
-- furnished to do so, subject to the following conditions:
-- The above copyright notice and this permission notice shall be included in all
-- copies or substantial portions of the Software.
-- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-- SOFTWARE.
with Interfaces; use Interfaces;
with DG_Types; use DG_Types;
package Memory is
Mem_Size_Words : constant Integer := 33_554_432; -- 8_388_608;
Max_Phys_Addr : constant Phys_Addr_T := Phys_Addr_T(Mem_Size_Words - 1);
-- MemSizeLCPID is the code returned by the LCPID to indicate the size of RAM in half megabytes
Mem_Size_LCPID : constant Dword_T := 63;
-- MemSizeNCLID is the code returned by NCLID to indicate size of RAM in 32Kb increments
Mem_Size_NCLID : constant Word_T := Word_T(((Mem_Size_Words * 2) / (32 * 1024)) - 1);
-- Page 0 special locations for stacks
WSFH_Loc : constant Phys_Addr_T := 8#14#;
WFP_Loc : constant Phys_Addr_T := 8#20#;
WSP_Loc : constant Phys_Addr_T := 8#22#;
WSL_Loc : constant Phys_Addr_T := 8#24#;
WSB_Loc : constant Phys_Addr_T := 8#26#;
NSP_Loc : constant Phys_Addr_T := 8#40#;
NFP_Loc : constant Phys_Addr_T := 8#41#;
NSL_Loc : constant Phys_Addr_T := 8#42#;
NSF_Loc : constant Phys_Addr_T := 8#43#;
-- Wide Stack Fault codes
WSF_Overflow : constant Dword_T := 0;
WSF_Pending : constant Dword_T := 1;
WSF_Too_Many_Args : constant Dword_T := 2;
WSF_Underflow : constant Dword_T := 3;
WSF_Return_Overflow : constant Dword_T := 4;
subtype Legal_Addrs is Phys_Addr_T range 0 .. Max_Phys_Addr;
type RAM_Array is array (Legal_Addrs) of Word_T;
protected RAM is
procedure Init (Debug_Logging : in Boolean);
function Read_Byte (Word_Addr : in Phys_Addr_T; Low_Byte : in Boolean) return Byte_T;
function Read_Byte_BA (BA : in Dword_T) return Byte_T;
procedure Write_Byte (Word_Addr : in Phys_Addr_T; Low_Byte : in Boolean; Byt : in Byte_T);
procedure Write_Byte_BA (BA : in Dword_T; Datum : in Byte_T);
procedure Copy_Byte_BA (Src, Dest : in Dword_T);
function Read_Byte_Eclipse_BA (Segment : in Phys_Addr_T; BA_16 : in Word_T) return Byte_T;
procedure Write_Byte_Eclipse_BA (Segment : in Phys_Addr_T; BA_16 : in Word_T; Datum : in Byte_T);
function Read_Bytes_BA (BA : in Dword_T; Num : in Natural) return Byte_Arr_T;
function Read_Dword (Word_Addr : in Phys_Addr_T) return Dword_T;
function Read_Qword (Word_Addr : in Phys_Addr_T) return Qword_T;
procedure Write_Dword (Word_Addr : in Phys_Addr_T; Datum : Dword_T);
procedure Write_Qword (Word_Addr : in Phys_Addr_T; Datum : Qword_T);
function Read_Word (Word_Addr : in Phys_Addr_T) return Word_T with Inline;
procedure Write_Word (Word_Addr : in Phys_Addr_T; Datum : Word_T);
private
RAM : RAM_Array;
ATU_Enabled : Boolean;
Is_Logging : Boolean;
end RAM;
protected Narrow_Stack is
procedure Push (Segment : in Phys_Addr_T; Datum : in Word_T);
function Pop (Segment : in Phys_Addr_T) return Word_T;
end Narrow_Stack;
end Memory;
| 47.764706 | 105 | 0.705665 |
3d497319aaa5a858ecb015a8a739540c1cbaec40 | 7,253 | ads | Ada | source/nodes/program-nodes-package_instantiations.ads | reznikmm/gela | 20134f1d154fb763812e73860c6f4b04f353df79 | [
"MIT"
] | null | null | null | source/nodes/program-nodes-package_instantiations.ads | reznikmm/gela | 20134f1d154fb763812e73860c6f4b04f353df79 | [
"MIT"
] | null | null | null | source/nodes/program-nodes-package_instantiations.ads | reznikmm/gela | 20134f1d154fb763812e73860c6f4b04f353df79 | [
"MIT"
] | 1 | 2019-10-16T09:05:27.000Z | 2019-10-16T09:05:27.000Z | -- SPDX-FileCopyrightText: 2019 Max Reznik <[email protected]>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Program.Lexical_Elements;
with Program.Elements.Defining_Names;
with Program.Elements.Expressions;
with Program.Elements.Parameter_Associations;
with Program.Elements.Aspect_Specifications;
with Program.Elements.Package_Instantiations;
with Program.Element_Visitors;
package Program.Nodes.Package_Instantiations is
pragma Preelaborate;
type Package_Instantiation is
new Program.Nodes.Node
and Program.Elements.Package_Instantiations.Package_Instantiation
and Program.Elements.Package_Instantiations.Package_Instantiation_Text
with private;
function Create
(Package_Token : not null Program.Lexical_Elements
.Lexical_Element_Access;
Name : not null Program.Elements.Defining_Names
.Defining_Name_Access;
Is_Token : not null Program.Lexical_Elements
.Lexical_Element_Access;
New_Token : not null Program.Lexical_Elements
.Lexical_Element_Access;
Generic_Package_Name : not null Program.Elements.Expressions
.Expression_Access;
Left_Bracket_Token : Program.Lexical_Elements.Lexical_Element_Access;
Parameters : Program.Elements.Parameter_Associations
.Parameter_Association_Vector_Access;
Right_Bracket_Token : Program.Lexical_Elements.Lexical_Element_Access;
With_Token : Program.Lexical_Elements.Lexical_Element_Access;
Aspects : Program.Elements.Aspect_Specifications
.Aspect_Specification_Vector_Access;
Semicolon_Token : not null Program.Lexical_Elements
.Lexical_Element_Access)
return Package_Instantiation;
type Implicit_Package_Instantiation is
new Program.Nodes.Node
and Program.Elements.Package_Instantiations.Package_Instantiation
with private;
function Create
(Name : not null Program.Elements.Defining_Names
.Defining_Name_Access;
Generic_Package_Name : not null Program.Elements.Expressions
.Expression_Access;
Parameters : Program.Elements.Parameter_Associations
.Parameter_Association_Vector_Access;
Aspects : Program.Elements.Aspect_Specifications
.Aspect_Specification_Vector_Access;
Is_Part_Of_Implicit : Boolean := False;
Is_Part_Of_Inherited : Boolean := False;
Is_Part_Of_Instance : Boolean := False)
return Implicit_Package_Instantiation
with Pre =>
Is_Part_Of_Implicit or Is_Part_Of_Inherited or Is_Part_Of_Instance;
private
type Base_Package_Instantiation is
abstract new Program.Nodes.Node
and Program.Elements.Package_Instantiations.Package_Instantiation
with record
Name : not null Program.Elements.Defining_Names
.Defining_Name_Access;
Generic_Package_Name : not null Program.Elements.Expressions
.Expression_Access;
Parameters : Program.Elements.Parameter_Associations
.Parameter_Association_Vector_Access;
Aspects : Program.Elements.Aspect_Specifications
.Aspect_Specification_Vector_Access;
end record;
procedure Initialize (Self : in out Base_Package_Instantiation'Class);
overriding procedure Visit
(Self : not null access Base_Package_Instantiation;
Visitor : in out Program.Element_Visitors.Element_Visitor'Class);
overriding function Name
(Self : Base_Package_Instantiation)
return not null Program.Elements.Defining_Names.Defining_Name_Access;
overriding function Generic_Package_Name
(Self : Base_Package_Instantiation)
return not null Program.Elements.Expressions.Expression_Access;
overriding function Parameters
(Self : Base_Package_Instantiation)
return Program.Elements.Parameter_Associations
.Parameter_Association_Vector_Access;
overriding function Aspects
(Self : Base_Package_Instantiation)
return Program.Elements.Aspect_Specifications
.Aspect_Specification_Vector_Access;
overriding function Is_Package_Instantiation
(Self : Base_Package_Instantiation)
return Boolean;
overriding function Is_Declaration
(Self : Base_Package_Instantiation)
return Boolean;
type Package_Instantiation is
new Base_Package_Instantiation
and Program.Elements.Package_Instantiations.Package_Instantiation_Text
with record
Package_Token : not null Program.Lexical_Elements
.Lexical_Element_Access;
Is_Token : not null Program.Lexical_Elements
.Lexical_Element_Access;
New_Token : not null Program.Lexical_Elements
.Lexical_Element_Access;
Left_Bracket_Token : Program.Lexical_Elements.Lexical_Element_Access;
Right_Bracket_Token : Program.Lexical_Elements.Lexical_Element_Access;
With_Token : Program.Lexical_Elements.Lexical_Element_Access;
Semicolon_Token : not null Program.Lexical_Elements
.Lexical_Element_Access;
end record;
overriding function To_Package_Instantiation_Text
(Self : in out Package_Instantiation)
return Program.Elements.Package_Instantiations
.Package_Instantiation_Text_Access;
overriding function Package_Token
(Self : Package_Instantiation)
return not null Program.Lexical_Elements.Lexical_Element_Access;
overriding function Is_Token
(Self : Package_Instantiation)
return not null Program.Lexical_Elements.Lexical_Element_Access;
overriding function New_Token
(Self : Package_Instantiation)
return not null Program.Lexical_Elements.Lexical_Element_Access;
overriding function Left_Bracket_Token
(Self : Package_Instantiation)
return Program.Lexical_Elements.Lexical_Element_Access;
overriding function Right_Bracket_Token
(Self : Package_Instantiation)
return Program.Lexical_Elements.Lexical_Element_Access;
overriding function With_Token
(Self : Package_Instantiation)
return Program.Lexical_Elements.Lexical_Element_Access;
overriding function Semicolon_Token
(Self : Package_Instantiation)
return not null Program.Lexical_Elements.Lexical_Element_Access;
type Implicit_Package_Instantiation is
new Base_Package_Instantiation
with record
Is_Part_Of_Implicit : Boolean;
Is_Part_Of_Inherited : Boolean;
Is_Part_Of_Instance : Boolean;
end record;
overriding function To_Package_Instantiation_Text
(Self : in out Implicit_Package_Instantiation)
return Program.Elements.Package_Instantiations
.Package_Instantiation_Text_Access;
overriding function Is_Part_Of_Implicit
(Self : Implicit_Package_Instantiation)
return Boolean;
overriding function Is_Part_Of_Inherited
(Self : Implicit_Package_Instantiation)
return Boolean;
overriding function Is_Part_Of_Instance
(Self : Implicit_Package_Instantiation)
return Boolean;
end Program.Nodes.Package_Instantiations;
| 38.173684 | 79 | 0.738315 |
3d9c059d207b620bc645604926527c2ade63f8fa | 1,738 | ads | Ada | ada-wide_text_io-complex_io.ads | mgrojo/adalib | dc1355a5b65c2843e702ac76252addb2caf3c56b | [
"BSD-3-Clause"
] | 15 | 2018-07-08T07:09:19.000Z | 2021-11-21T09:58:55.000Z | ada-wide_text_io-complex_io.ads | mgrojo/adalib | dc1355a5b65c2843e702ac76252addb2caf3c56b | [
"BSD-3-Clause"
] | 4 | 2019-11-17T20:04:33.000Z | 2021-08-29T21:24:55.000Z | ada-wide_text_io-complex_io.ads | mgrojo/adalib | dc1355a5b65c2843e702ac76252addb2caf3c56b | [
"BSD-3-Clause"
] | 3 | 2020-04-23T11:17:11.000Z | 2021-08-29T19:31:09.000Z | -- Standard Ada library specification
-- Copyright (c) 2003-2018 Maxim Reznik <[email protected]>
-- Copyright (c) 2004-2016 AXE Consultants
-- Copyright (c) 2004, 2005, 2006 Ada-Europe
-- Copyright (c) 2000 The MITRE Corporation, Inc.
-- Copyright (c) 1992, 1993, 1994, 1995 Intermetrics, Inc.
-- SPDX-License-Identifier: BSD-3-Clause and LicenseRef-AdaReferenceManual
---------------------------------------------------------------------------
with Ada.Numerics.Generic_Complex_Types;
generic
with package Complex_Types is
new Ada.Numerics.Generic_Complex_Types (<>);
package Ada.Wide_Text_IO.Complex_IO is
use Complex_Types;
Default_Fore : Field := 2;
Default_Aft : Field := Real'Digits - 1;
Default_Exp : Field := 3;
procedure Get (File : in File_Type;
Item : out Complex;
Width : in Field := 0);
procedure Get (Item : out Complex;
Width : in Field := 0);
procedure Put (File : in File_Type;
Item : in Complex;
Fore : in Field := Default_Fore;
Aft : in Field := Default_Aft;
Exp : in Field := Default_Exp);
procedure Put (Item : in Complex;
Fore : in Field := Default_Fore;
Aft : in Field := Default_Aft;
Exp : in Field := Default_Exp);
procedure Get (From : in Wide_String;
Item : out Complex;
Last : out Positive);
procedure Put (To : out Wide_String;
Item : in Complex;
Aft : in Field := Default_Aft;
Exp : in Field := Default_Exp);
end Ada.Wide_Text_IO.Complex_IO;
| 34.078431 | 75 | 0.547181 |
c759f94aa7e6d190d7882af169a226f1db0bd8bc | 9,051 | adb | Ada | Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/s-pack42.adb | djamal2727/Main-Bearing-Analytical-Model | 2f00c2219c71be0175c6f4f8f1d4cca231d97096 | [
"Apache-2.0"
] | null | null | null | Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/s-pack42.adb | djamal2727/Main-Bearing-Analytical-Model | 2f00c2219c71be0175c6f4f8f1d4cca231d97096 | [
"Apache-2.0"
] | null | null | null | Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/s-pack42.adb | djamal2727/Main-Bearing-Analytical-Model | 2f00c2219c71be0175c6f4f8f1d4cca231d97096 | [
"Apache-2.0"
] | null | null | null | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- S Y S T E M . P A C K _ 4 2 --
-- --
-- B o d y --
-- --
-- Copyright (C) 1992-2020, Free Software Foundation, Inc. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 3, or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. --
-- --
-- As a special exception under Section 7 of GPL version 3, you are granted --
-- additional permissions described in the GCC Runtime Library Exception, --
-- version 3.1, as published by the Free Software Foundation. --
-- --
-- You should have received a copy of the GNU General Public License and --
-- a copy of the GCC Runtime Library Exception along with this program; --
-- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
-- <http://www.gnu.org/licenses/>. --
-- --
-- GNAT was originally developed by the GNAT team at New York University. --
-- Extensive contributions were provided by Ada Core Technologies Inc. --
-- --
------------------------------------------------------------------------------
with System.Storage_Elements;
with System.Unsigned_Types;
package body System.Pack_42 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_42;
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_42 or SetU_42 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_42 --
------------
function Get_42
(Arr : System.Address;
N : Natural;
Rev_SSO : Boolean) return Bits_42
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_42;
-------------
-- GetU_42 --
-------------
function GetU_42
(Arr : System.Address;
N : Natural;
Rev_SSO : Boolean) return Bits_42
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_42;
------------
-- Set_42 --
------------
procedure Set_42
(Arr : System.Address;
N : Natural;
E : Bits_42;
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_42;
-------------
-- SetU_42 --
-------------
procedure SetU_42
(Arr : System.Address;
N : Natural;
E : Bits_42;
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_42;
end System.Pack_42;
| 36.059761 | 78 | 0.467352 |
39beb6e2ade8a781d8a3c242e71e3935666488f3 | 1,282 | ads | Ada | tools/scitools/sample/mahjongg/display.ads | brucegua/moocos | 575c161cfa35e220f10d042e2e5ca18773691695 | [
"Apache-2.0"
] | 1 | 2020-01-20T21:26:46.000Z | 2020-01-20T21:26:46.000Z | tools/scitools/sample/mahjongg/display.ads | brucegua/moocos | 575c161cfa35e220f10d042e2e5ca18773691695 | [
"Apache-2.0"
] | null | null | null | tools/scitools/sample/mahjongg/display.ads | brucegua/moocos | 575c161cfa35e220f10d042e2e5ca18773691695 | [
"Apache-2.0"
] | null | null | null | --------------------------------------------------------------------
--| Package : DISPLAY Version : 1.0
--------------------------------------------------------------------
--| Abstract : Provides a display object for the Mahjongg game.
--| This package handles hardware dependent details of
--| displaying tiles on the screeen.
--------------------------------------------------------------------
--| Compiler/System : Alsys Ada
--| Author : John Dalbey Date : 1/93
--------------------------------------------------------------------
--| NOTES :
--| :
--| Version History :
--------------------------------------------------------------------
WITH TileADT; USE TileADT;
PACKAGE Display IS
PROCEDURE ShowTile(TheTile : Tile);
-- Assumes : TheTile has a position and a value.
-- Uses : TheTile.
-- Results : TheTile is displayed on the screen in its appropriate place.
PROCEDURE SayTile(TheTile:Tile);
-- For debugging, it just dumps the tile fields to the screen.
PROCEDURE ShowTilesLeft;
-- Assumes: A board has been loaded
-- Results: the current number of tiles remaining is displayed
END Display;
| 40.0625 | 74 | 0.433697 |
597ebfa2f86c556d3a9bcdc890c5f2852f52b63b | 1,356 | ads | Ada | firmware/coreboot/3rdparty/libhwbase/common/hw-pci-mmconf.ads | fabiojna02/OpenCellular | 45b6a202d6b2e2485c89955b9a6da920c4d56ddb | [
"CC-BY-4.0",
"BSD-3-Clause"
] | 1 | 2019-02-05T09:50:07.000Z | 2019-02-05T09:50:07.000Z | firmware/coreboot/3rdparty/libhwbase/common/hw-pci-mmconf.ads | aimin-wang/OpenCellular | 5308146bf7edf43cc81c0e4d15305b711117070a | [
"CC-BY-4.0",
"BSD-3-Clause"
] | 13 | 2018-10-12T21:29:09.000Z | 2018-10-25T20:06:51.000Z | firmware/coreboot/3rdparty/libhwbase/common/hw-pci-mmconf.ads | aimin-wang/OpenCellular | 5308146bf7edf43cc81c0e4d15305b711117070a | [
"CC-BY-4.0",
"BSD-3-Clause"
] | null | null | null | --
-- Copyright (C) 2017 Nico Huber <[email protected]>
--
-- This program is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation; either version 2 of the License, or
-- (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
--
with System;
with HW.MMIO_Range;
pragma Elaborate_All (HW.MMIO_Range);
generic
Dev : Address := (0, 0, 0);
package HW.PCI.MMConf
with
Abstract_State => (Address_State, (PCI_State with External)),
Initializes => Address_State
is
procedure Read8 (Value : out Word8; Offset : Index);
procedure Read16 (Value : out Word16; Offset : Index)
with
Pre => Offset mod 2 = 0;
procedure Read32 (Value : out Word32; Offset : Index)
with
Pre => Offset mod 4 = 0;
procedure Write8 (Offset : Index; Value : Word8);
procedure Write16 (Offset : Index; Value : Word16)
with
Pre => Offset mod 2 = 0;
procedure Write32 (Offset : Index; Value : Word32)
with
Pre => Offset mod 4 = 0;
procedure Set_Base_Address (Base : Word64);
end HW.PCI.MMConf;
| 28.851064 | 71 | 0.693215 |
2211cdda898589d112ddf10b951b799d605b8c0e | 5,791 | adb | Ada | software/hal/hpl/STM32/drivers/stm32-rng.adb | TUM-EI-RCS/StratoX | 5fdd04e01a25efef6052376f43ce85b5bc973392 | [
"BSD-3-Clause"
] | 12 | 2017-06-08T14:19:57.000Z | 2022-03-09T02:48:59.000Z | software/hal/hpl/STM32/drivers/stm32-rng.adb | TUM-EI-RCS/StratoX | 5fdd04e01a25efef6052376f43ce85b5bc973392 | [
"BSD-3-Clause"
] | 6 | 2017-06-08T13:13:50.000Z | 2020-05-15T09:32:43.000Z | software/hal/hpl/STM32/drivers/stm32-rng.adb | TUM-EI-RCS/StratoX | 5fdd04e01a25efef6052376f43ce85b5bc973392 | [
"BSD-3-Clause"
] | 3 | 2017-06-30T14:05:06.000Z | 2022-02-17T12:20:45.000Z | ------------------------------------------------------------------------------
-- --
-- Copyright (C) 2015, AdaCore --
-- --
-- Redistribution and use in source and binary forms, with or without --
-- modification, are permitted provided that the following conditions are --
-- met: --
-- 1. Redistributions of source code must retain the above copyright --
-- notice, this list of conditions and the following disclaimer. --
-- 2. Redistributions in binary form must reproduce the above copyright --
-- notice, this list of conditions and the following disclaimer in --
-- the documentation and/or other materials provided with the --
-- distribution. --
-- 3. Neither the name of STMicroelectronics nor the names of its --
-- contributors may be used to endorse or promote products derived --
-- from this software without specific prior written permission. --
-- --
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS --
-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT --
-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR --
-- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT --
-- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, --
-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT --
-- LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, --
-- DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY --
-- THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT --
-- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE --
-- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --
-- --
-- --
-- This file is based on: --
-- --
-- @file stm32f4xx_hal_rng.c --
-- @author MCD Application Team --
-- @version V1.1.0 --
-- @date 19-June-2014 --
-- @brief RNG HAL module driver. --
-- --
-- COPYRIGHT(c) 2014 STMicroelectronics --
------------------------------------------------------------------------------
with STM32_SVD.RCC; use STM32_SVD.RCC;
with STM32_SVD.RNG; use STM32_SVD.RNG;
package body STM32.RNG is
----------------------
-- Enable_RNG_Clock --
----------------------
procedure Enable_RNG_Clock is
begin
RCC_Periph.AHB2ENR.RNGEN := True;
end Enable_RNG_Clock;
----------------
-- Enable_RNG --
----------------
procedure Enable_RNG is
begin
RNG_Periph.CR.RNGEN := True;
end Enable_RNG;
-----------------
-- Disable_RNG --
-----------------
procedure Disable_RNG is
begin
RNG_Periph.CR.RNGEN := False;
end Disable_RNG;
---------------
-- Reset_RNG --
---------------
procedure Reset_RNG
is
begin
RCC_Periph.AHB2RSTR.RNGRST := True;
RCC_Periph.AHB2RSTR.RNGRST := False;
end Reset_RNG;
-----------------
-- RNG_Enabled --
-----------------
function RNG_Enabled return Boolean is
(RNG_Periph.CR.RNGEN);
--------------------------
-- Enable_RNG_Interrupt --
--------------------------
procedure Enable_RNG_Interrupt is
begin
RNG_Periph.CR.IE := True;
end Enable_RNG_Interrupt;
---------------------------
-- Disable_RNG_Interrupt --
---------------------------
procedure Disable_RNG_Interrupt is
begin
RNG_Periph.CR.IE := False;
end Disable_RNG_Interrupt;
---------------------------
-- RNG_Interrupt_Enabled --
---------------------------
function RNG_Interrupt_Enabled return Boolean is
(RNG_Periph.CR.IE);
--------------
-- RNG_Data --
--------------
function RNG_Data return Word
is (RNG_Periph.DR);
--------------------
-- RNG_Data_Ready --
--------------------
function RNG_Data_Ready return Boolean
is (RNG_Periph.SR.DRDY);
---------------------------
-- RNG_Seed_Error_Status --
---------------------------
function RNG_Seed_Error_Status return Boolean is
(RNG_Periph.SR.SECS);
----------------------------
-- RNG_Clock_Error_Status --
----------------------------
function RNG_Clock_Error_Status return Boolean is
(RNG_Periph.SR.CECS);
---------------------------------
-- Clear_RNG_Seed_Error_Status --
---------------------------------
procedure Clear_RNG_Seed_Error_Status
is
begin
RNG_Periph.SR.SECS := False;
end Clear_RNG_Seed_Error_Status;
----------------------------------
-- Clear_RNG_Clock_Error_Status --
----------------------------------
procedure Clear_RNG_Clock_Error_Status
is
begin
RNG_Periph.SR.CECS := False;
end Clear_RNG_Clock_Error_Status;
end STM32.RNG;
| 34.885542 | 78 | 0.454326 |
1d863aa578b284e8223ae1036cd183ac2eda112a | 4,009 | ads | Ada | bb-runtimes/arm/stm32/stm32f0xx/stm32f0x8/svd/a-intnam.ads | JCGobbi/Nucleo-STM32F334R8 | 2a0b1b4b2664c92773703ac5e95dcb71979d051c | [
"BSD-3-Clause"
] | null | null | null | bb-runtimes/arm/stm32/stm32f0xx/stm32f0x8/svd/a-intnam.ads | JCGobbi/Nucleo-STM32F334R8 | 2a0b1b4b2664c92773703ac5e95dcb71979d051c | [
"BSD-3-Clause"
] | null | null | null | bb-runtimes/arm/stm32/stm32f0xx/stm32f0x8/svd/a-intnam.ads | JCGobbi/Nucleo-STM32F334R8 | 2a0b1b4b2664c92773703ac5e95dcb71979d051c | [
"BSD-3-Clause"
] | null | null | null | --
-- Copyright (C) 2020, AdaCore
--
-- This spec has been automatically generated from STM32F0x8.svd
-- This is a version for the STM32F0x8 MCU
package Ada.Interrupts.Names is
-- All identifiers in this unit are implementation defined
pragma Implementation_Defined;
----------------
-- Interrupts --
----------------
-- System tick
Sys_Tick_Interrupt : constant Interrupt_ID := -1;
-- Window Watchdog interrupt
WWDG_Interrupt : constant Interrupt_ID := 0;
-- PVD and VDDIO2 supply comparator interrupt
PVD_Interrupt : constant Interrupt_ID := 1;
-- RTC interrupts
RTC_Interrupt : constant Interrupt_ID := 2;
-- Flash global interrupt
FLASH_Interrupt : constant Interrupt_ID := 3;
-- RCC and CRS global interrupts
RCC_CRS_Interrupt : constant Interrupt_ID := 4;
-- EXTI Line[1:0] interrupts
EXTI0_1_Interrupt : constant Interrupt_ID := 5;
-- EXTI Line[3:2] interrupts
EXTI2_3_Interrupt : constant Interrupt_ID := 6;
-- EXTI Line15 and EXTI4 interrupts
EXTI4_15_Interrupt : constant Interrupt_ID := 7;
-- Touch sensing interrupt
TSC_Interrupt : constant Interrupt_ID := 8;
-- DMA1 channel 1 interrupt
DMA1_CH1_Interrupt : constant Interrupt_ID := 9;
-- DMA1 channel 2 and 3 and DMA2 channel 1 and 2 interrupt
DMA1_CH2_3_DMA2_CH1_2_Interrupt : constant Interrupt_ID := 10;
-- DMA1 channel 4, 5, 6 and 7 and DMA2 channel 3, 4 and 5 interrupts
DMA1_CH4_5_6_7_DMA2_CH3_4_5_Interrupt : constant Interrupt_ID := 11;
-- ADC and comparator interrupts
ADC_COMP_Interrupt : constant Interrupt_ID := 12;
-- TIM1 break, update, trigger and commutation interrupt
TIM1_BRK_UP_TRG_COM_Interrupt : constant Interrupt_ID := 13;
-- TIM1 Capture Compare interrupt
TIM1_CC_Interrupt : constant Interrupt_ID := 14;
-- TIM2 global interrupt
TIM2_Interrupt : constant Interrupt_ID := 15;
-- TIM3 global interrupt
TIM3_Interrupt : constant Interrupt_ID := 16;
-- TIM6 global interrupt and DAC underrun interrupt
TIM6_DAC_Interrupt : constant Interrupt_ID := 17;
-- TIM7 global interrupt
TIM7_Interrupt : constant Interrupt_ID := 18;
-- TIM14 global interrupt
TIM14_Interrupt : constant Interrupt_ID := 19;
-- TIM15 global interrupt
TIM15_Interrupt : constant Interrupt_ID := 20;
-- TIM16 global interrupt
TIM16_Interrupt : constant Interrupt_ID := 21;
-- TIM17 global interrupt
TIM17_Interrupt : constant Interrupt_ID := 22;
-- I2C1 global interrupt
I2C1_Interrupt : constant Interrupt_ID := 23;
-- I2C2 global interrupt
I2C2_Interrupt : constant Interrupt_ID := 24;
-- SPI1_global_interrupt
SPI1_Interrupt : constant Interrupt_ID := 25;
-- SPI2 global interrupt
SPI2_Interrupt : constant Interrupt_ID := 26;
-- USART1 global interrupt
USART1_Interrupt : constant Interrupt_ID := 27;
-- USART2 global interrupt
USART2_Interrupt : constant Interrupt_ID := 28;
-- USART3, USART4, USART5, USART6, USART7, USART8 global interrupt
USART3_4_5_6_7_8_Interrupt : constant Interrupt_ID := 29;
-- CEC and CAN global interrupt
CEC_CAN_Interrupt : constant Interrupt_ID := 30;
-- USB global interrupt
USB_Interrupt : constant Interrupt_ID := 31;
end Ada.Interrupts.Names;
| 33.974576 | 72 | 0.584684 |
59d6e59cbb10e06ebb75ac47c65c4d3a34c23e4d | 91,775 | adb | Ada | networklayer/synthesis_results_HMB/ETH_inserter_hls_prj/ultrascale_plus/.autopilot/db/ethernet_header_inserter.adb | OCT-FPGA/network-demo | 76fba0d4315abf7bffe77959a2501c287f20ecec | [
"BSD-3-Clause"
] | null | null | null | networklayer/synthesis_results_HMB/ETH_inserter_hls_prj/ultrascale_plus/.autopilot/db/ethernet_header_inserter.adb | OCT-FPGA/network-demo | 76fba0d4315abf7bffe77959a2501c287f20ecec | [
"BSD-3-Clause"
] | null | null | null | networklayer/synthesis_results_HMB/ETH_inserter_hls_prj/ultrascale_plus/.autopilot/db/ethernet_header_inserter.adb | OCT-FPGA/network-demo | 76fba0d4315abf7bffe77959a2501c287f20ecec | [
"BSD-3-Clause"
] | null | null | null | <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE boost_serialization>
<boost_serialization signature="serialization::archive" version="17">
<syndb class_id="0" tracking_level="0" version="0">
<userIPLatency>-1</userIPLatency>
<userIPName/>
<cdfg class_id="1" tracking_level="1" version="0" object_id="_0">
<name>ethernet_header_inserter</name>
<module_structure>Dataflow</module_structure>
<ret_bitwidth>0</ret_bitwidth>
<ports class_id="2" tracking_level="0" version="0">
<count>13</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>dataIn_V_data_V</name>
<fileName/>
<fileDirectory/>
<lineNumber>0</lineNumber>
<contextFuncName/>
<contextNormFuncName/>
<inlineStackInfo class_id="6" tracking_level="0" version="0">
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>dataIn</originalName>
<rtlName/>
<control/>
<opType/>
<implIndex/>
<coreName/>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>639657324</coreId>
<rtlModuleName/>
</Obj>
<bitwidth>512</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>dataIn_V_keep_V</name>
<fileName/>
<fileDirectory/>
<lineNumber>0</lineNumber>
<contextFuncName/>
<contextNormFuncName/>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>dataIn</originalName>
<rtlName/>
<control/>
<opType/>
<implIndex/>
<coreName/>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>38</coreId>
<rtlModuleName/>
</Obj>
<bitwidth>64</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>dataIn_V_strb_V</name>
<fileName/>
<fileDirectory/>
<lineNumber>0</lineNumber>
<contextFuncName/>
<contextNormFuncName/>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>dataIn</originalName>
<rtlName/>
<control/>
<opType/>
<implIndex/>
<coreName/>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>36</coreId>
<rtlModuleName/>
</Obj>
<bitwidth>64</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>dataIn_V_last_V</name>
<fileName/>
<fileDirectory/>
<lineNumber>0</lineNumber>
<contextFuncName/>
<contextNormFuncName/>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>dataIn</originalName>
<rtlName/>
<control/>
<opType/>
<implIndex/>
<coreName/>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>0</coreId>
<rtlModuleName/>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<direction>0</direction>
<if_type>0</if_type>
<array_size>0</array_size>
<bit_vecs>
<count>0</count>
<item_version>0</item_version>
</bit_vecs>
</item>
<item class_id_reference="3" object_id="_5">
<Value>
<Obj>
<type>1</type>
<id>5</id>
<name>dataOut_V_data_V</name>
<fileName/>
<fileDirectory/>
<lineNumber>0</lineNumber>
<contextFuncName/>
<contextNormFuncName/>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>dataOut</originalName>
<rtlName/>
<control/>
<opType/>
<implIndex/>
<coreName/>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>1869833586</coreId>
<rtlModuleName/>
</Obj>
<bitwidth>512</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>dataOut_V_keep_V</name>
<fileName/>
<fileDirectory/>
<lineNumber>0</lineNumber>
<contextFuncName/>
<contextNormFuncName/>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>dataOut</originalName>
<rtlName/>
<control/>
<opType/>
<implIndex/>
<coreName/>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>32</coreId>
<rtlModuleName/>
</Obj>
<bitwidth>64</bitwidth>
</Value>
<direction>1</direction>
<if_type>0</if_type>
<array_size>0</array_size>
<bit_vecs>
<count>0</count>
<item_version>0</item_version>
</bit_vecs>
</item>
<item class_id_reference="3" object_id="_7">
<Value>
<Obj>
<type>1</type>
<id>7</id>
<name>dataOut_V_strb_V</name>
<fileName/>
<fileDirectory/>
<lineNumber>0</lineNumber>
<contextFuncName/>
<contextNormFuncName/>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>dataOut</originalName>
<rtlName/>
<control/>
<opType/>
<implIndex/>
<coreName/>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>2874644672</coreId>
<rtlModuleName/>
</Obj>
<bitwidth>64</bitwidth>
</Value>
<direction>1</direction>
<if_type>0</if_type>
<array_size>0</array_size>
<bit_vecs>
<count>0</count>
<item_version>0</item_version>
</bit_vecs>
</item>
<item class_id_reference="3" object_id="_8">
<Value>
<Obj>
<type>1</type>
<id>8</id>
<name>dataOut_V_last_V</name>
<fileName/>
<fileDirectory/>
<lineNumber>0</lineNumber>
<contextFuncName/>
<contextNormFuncName/>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>dataOut</originalName>
<rtlName/>
<control/>
<opType/>
<implIndex/>
<coreName/>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>30</coreId>
<rtlModuleName/>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<direction>1</direction>
<if_type>0</if_type>
<array_size>0</array_size>
<bit_vecs>
<count>0</count>
<item_version>0</item_version>
</bit_vecs>
</item>
<item class_id_reference="3" object_id="_9">
<Value>
<Obj>
<type>1</type>
<id>9</id>
<name>arpTableReplay_V</name>
<fileName/>
<fileDirectory/>
<lineNumber>0</lineNumber>
<contextFuncName/>
<contextNormFuncName/>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>arpTableReplay</originalName>
<rtlName/>
<control/>
<opType/>
<implIndex/>
<coreName/>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>2874956496</coreId>
<rtlModuleName/>
</Obj>
<bitwidth>128</bitwidth>
</Value>
<direction>0</direction>
<if_type>0</if_type>
<array_size>0</array_size>
<bit_vecs>
<count>0</count>
<item_version>0</item_version>
</bit_vecs>
</item>
<item class_id_reference="3" object_id="_10">
<Value>
<Obj>
<type>1</type>
<id>10</id>
<name>arpTableRequest_V</name>
<fileName/>
<fileDirectory/>
<lineNumber>0</lineNumber>
<contextFuncName/>
<contextNormFuncName/>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>arpTableRequest</originalName>
<rtlName/>
<control/>
<opType/>
<implIndex/>
<coreName/>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>2874683680</coreId>
<rtlModuleName/>
</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="_11">
<Value>
<Obj>
<type>1</type>
<id>11</id>
<name>myMacAddress</name>
<fileName/>
<fileDirectory/>
<lineNumber>0</lineNumber>
<contextFuncName/>
<contextNormFuncName/>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName/>
<rtlName/>
<control/>
<opType/>
<implIndex/>
<coreName/>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>2874962688</coreId>
<rtlModuleName/>
</Obj>
<bitwidth>48</bitwidth>
</Value>
<direction>0</direction>
<if_type>0</if_type>
<array_size>0</array_size>
<bit_vecs>
<count>0</count>
<item_version>0</item_version>
</bit_vecs>
</item>
<item class_id_reference="3" object_id="_12">
<Value>
<Obj>
<type>1</type>
<id>12</id>
<name>regSubNetMask</name>
<fileName/>
<fileDirectory/>
<lineNumber>0</lineNumber>
<contextFuncName/>
<contextNormFuncName/>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName/>
<rtlName/>
<control/>
<opType/>
<implIndex/>
<coreName/>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>10</coreId>
<rtlModuleName/>
</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="_13">
<Value>
<Obj>
<type>1</type>
<id>13</id>
<name>regDefaultGateway</name>
<fileName/>
<fileDirectory/>
<lineNumber>0</lineNumber>
<contextFuncName/>
<contextNormFuncName/>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName/>
<rtlName/>
<control/>
<opType/>
<implIndex/>
<coreName/>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>2874681152</coreId>
<rtlModuleName/>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<direction>0</direction>
<if_type>0</if_type>
<array_size>0</array_size>
<bit_vecs>
<count>0</count>
<item_version>0</item_version>
</bit_vecs>
</item>
</ports>
<nodes class_id="8" tracking_level="0" version="0">
<count>4</count>
<item_version>0</item_version>
<item class_id="9" tracking_level="1" version="0" object_id="_14">
<Value>
<Obj>
<type>0</type>
<id>50</id>
<name>_ln344</name>
<fileName>/home/ubuntu/xup_vitis_network_example/NetLayers/100G-fpga-network-stack-core/synthesis_results_HMB/..//hls/ethernet_inserter/ethernet_header_inserter.cpp</fileName>
<fileDirectory>..</fileDirectory>
<lineNumber>344</lineNumber>
<contextFuncName>ethernet_header_inserter</contextFuncName>
<contextNormFuncName>ethernet_header_inserter</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item class_id="10" tracking_level="0" version="0">
<first>/home/ubuntu/xup_vitis_network_example/NetLayers/100G-fpga-network-stack-core/synthesis_results_HMB</first>
<second class_id="11" tracking_level="0" version="0">
<count>1</count>
<item_version>0</item_version>
<item class_id="12" tracking_level="0" version="0">
<first class_id="13" tracking_level="0" version="0">
<first>/home/ubuntu/xup_vitis_network_example/NetLayers/100G-fpga-network-stack-core/synthesis_results_HMB/..//hls/ethernet_inserter/ethernet_header_inserter.cpp</first>
<second>ethernet_header_inserter</second>
</first>
<second>344</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName/>
<rtlName>broadcaster_and_mac_request_U0</rtlName>
<control/>
<opType/>
<implIndex/>
<coreName/>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>0</coreId>
<rtlModuleName/>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>11</count>
<item_version>0</item_version>
<item>56</item>
<item>57</item>
<item>58</item>
<item>59</item>
<item>60</item>
<item>61</item>
<item>62</item>
<item>63</item>
<item>74</item>
<item>75</item>
<item>76</item>
</oprand_edges>
<opcode>call</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>1</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_15">
<Value>
<Obj>
<type>0</type>
<id>51</id>
<name>_ln352</name>
<fileName>/home/ubuntu/xup_vitis_network_example/NetLayers/100G-fpga-network-stack-core/synthesis_results_HMB/..//hls/ethernet_inserter/ethernet_header_inserter.cpp</fileName>
<fileDirectory>..</fileDirectory>
<lineNumber>352</lineNumber>
<contextFuncName>ethernet_header_inserter</contextFuncName>
<contextNormFuncName>ethernet_header_inserter</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/ubuntu/xup_vitis_network_example/NetLayers/100G-fpga-network-stack-core/synthesis_results_HMB</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/home/ubuntu/xup_vitis_network_example/NetLayers/100G-fpga-network-stack-core/synthesis_results_HMB/..//hls/ethernet_inserter/ethernet_header_inserter.cpp</first>
<second>ethernet_header_inserter</second>
</first>
<second>352</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName/>
<rtlName>compute_and_insert_ip_checksum_U0</rtlName>
<control/>
<opType/>
<implIndex/>
<coreName/>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>0</coreId>
<rtlModuleName/>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>5</count>
<item_version>0</item_version>
<item>65</item>
<item>77</item>
<item>78</item>
<item>357</item>
<item>358</item>
</oprand_edges>
<opcode>call</opcode>
<m_Display>0</m_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="_16">
<Value>
<Obj>
<type>0</type>
<id>52</id>
<name>_ln356</name>
<fileName>/home/ubuntu/xup_vitis_network_example/NetLayers/100G-fpga-network-stack-core/synthesis_results_HMB/..//hls/ethernet_inserter/ethernet_header_inserter.cpp</fileName>
<fileDirectory>..</fileDirectory>
<lineNumber>356</lineNumber>
<contextFuncName>ethernet_header_inserter</contextFuncName>
<contextNormFuncName>ethernet_header_inserter</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/ubuntu/xup_vitis_network_example/NetLayers/100G-fpga-network-stack-core/synthesis_results_HMB</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/home/ubuntu/xup_vitis_network_example/NetLayers/100G-fpga-network-stack-core/synthesis_results_HMB/..//hls/ethernet_inserter/ethernet_header_inserter.cpp</first>
<second>ethernet_header_inserter</second>
</first>
<second>356</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName/>
<rtlName>handle_output_U0</rtlName>
<control/>
<opType/>
<implIndex/>
<coreName/>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>0</coreId>
<rtlModuleName/>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>14</count>
<item_version>0</item_version>
<item>67</item>
<item>68</item>
<item>69</item>
<item>70</item>
<item>71</item>
<item>72</item>
<item>73</item>
<item>79</item>
<item>80</item>
<item>81</item>
<item>82</item>
<item>83</item>
<item>356</item>
<item>359</item>
</oprand_edges>
<opcode>call</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.41</m_delay>
<m_topoIndex>3</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_17">
<Value>
<Obj>
<type>0</type>
<id>53</id>
<name>_ln362</name>
<fileName>/home/ubuntu/xup_vitis_network_example/NetLayers/100G-fpga-network-stack-core/synthesis_results_HMB/..//hls/ethernet_inserter/ethernet_header_inserter.cpp</fileName>
<fileDirectory>..</fileDirectory>
<lineNumber>362</lineNumber>
<contextFuncName>ethernet_header_inserter</contextFuncName>
<contextNormFuncName>ethernet_header_inserter</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/ubuntu/xup_vitis_network_example/NetLayers/100G-fpga-network-stack-core/synthesis_results_HMB</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/home/ubuntu/xup_vitis_network_example/NetLayers/100G-fpga-network-stack-core/synthesis_results_HMB/..//hls/ethernet_inserter/ethernet_header_inserter.cpp</first>
<second>ethernet_header_inserter</second>
</first>
<second>362</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName/>
<rtlName/>
<control/>
<opType/>
<implIndex/>
<coreName/>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>0</coreId>
<rtlModuleName/>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>0</count>
<item_version>0</item_version>
</oprand_edges>
<opcode>ret</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>4</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
</nodes>
<consts class_id="15" tracking_level="0" version="0">
<count>3</count>
<item_version>0</item_version>
<item class_id="16" tracking_level="1" version="0" object_id="_18">
<Value>
<Obj>
<type>2</type>
<id>55</id>
<name>broadcaster_and_mac_request</name>
<fileName/>
<fileDirectory/>
<lineNumber>0</lineNumber>
<contextFuncName/>
<contextNormFuncName/>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName/>
<rtlName/>
<control/>
<opType/>
<implIndex/>
<coreName/>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>2418584272</coreId>
<rtlModuleName/>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<const_type>6</const_type>
<content><constant:broadcaster_and_mac_request></content>
</item>
<item class_id_reference="16" object_id="_19">
<Value>
<Obj>
<type>2</type>
<id>64</id>
<name>compute_and_insert_ip_checksum</name>
<fileName/>
<fileDirectory/>
<lineNumber>0</lineNumber>
<contextFuncName/>
<contextNormFuncName/>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName/>
<rtlName/>
<control/>
<opType/>
<implIndex/>
<coreName/>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>1330007625</coreId>
<rtlModuleName/>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<const_type>6</const_type>
<content><constant:compute_and_insert_ip_checksum></content>
</item>
<item class_id_reference="16" object_id="_20">
<Value>
<Obj>
<type>2</type>
<id>66</id>
<name>handle_output</name>
<fileName/>
<fileDirectory/>
<lineNumber>0</lineNumber>
<contextFuncName/>
<contextNormFuncName/>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName/>
<rtlName/>
<control/>
<opType/>
<implIndex/>
<coreName/>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>2874621024</coreId>
<rtlModuleName/>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<const_type>6</const_type>
<content><constant:handle_output></content>
</item>
</consts>
<blocks class_id="17" tracking_level="0" version="0">
<count>1</count>
<item_version>0</item_version>
<item class_id="18" tracking_level="1" version="0" object_id="_21">
<Obj>
<type>3</type>
<id>54</id>
<name>ethernet_header_inserter</name>
<fileName/>
<fileDirectory/>
<lineNumber>0</lineNumber>
<contextFuncName/>
<contextNormFuncName/>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName/>
<rtlName/>
<control/>
<opType/>
<implIndex/>
<coreName/>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>774849101</coreId>
<rtlModuleName/>
</Obj>
<node_objs>
<count>4</count>
<item_version>0</item_version>
<item>50</item>
<item>51</item>
<item>52</item>
<item>53</item>
</node_objs>
</item>
</blocks>
<edges class_id="19" tracking_level="0" version="0">
<count>30</count>
<item_version>0</item_version>
<item class_id="20" tracking_level="1" version="0" object_id="_22">
<id>56</id>
<edge_type>1</edge_type>
<source_obj>55</source_obj>
<sink_obj>50</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_23">
<id>57</id>
<edge_type>1</edge_type>
<source_obj>1</source_obj>
<sink_obj>50</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_24">
<id>58</id>
<edge_type>1</edge_type>
<source_obj>2</source_obj>
<sink_obj>50</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_25">
<id>59</id>
<edge_type>1</edge_type>
<source_obj>3</source_obj>
<sink_obj>50</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_26">
<id>60</id>
<edge_type>1</edge_type>
<source_obj>4</source_obj>
<sink_obj>50</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_27">
<id>61</id>
<edge_type>1</edge_type>
<source_obj>10</source_obj>
<sink_obj>50</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_28">
<id>62</id>
<edge_type>1</edge_type>
<source_obj>12</source_obj>
<sink_obj>50</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_29">
<id>63</id>
<edge_type>1</edge_type>
<source_obj>13</source_obj>
<sink_obj>50</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_30">
<id>65</id>
<edge_type>1</edge_type>
<source_obj>64</source_obj>
<sink_obj>51</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_31">
<id>67</id>
<edge_type>1</edge_type>
<source_obj>66</source_obj>
<sink_obj>52</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_32">
<id>68</id>
<edge_type>1</edge_type>
<source_obj>9</source_obj>
<sink_obj>52</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_33">
<id>69</id>
<edge_type>1</edge_type>
<source_obj>11</source_obj>
<sink_obj>52</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_34">
<id>70</id>
<edge_type>1</edge_type>
<source_obj>5</source_obj>
<sink_obj>52</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_35">
<id>71</id>
<edge_type>1</edge_type>
<source_obj>6</source_obj>
<sink_obj>52</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_36">
<id>72</id>
<edge_type>1</edge_type>
<source_obj>7</source_obj>
<sink_obj>52</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_37">
<id>73</id>
<edge_type>1</edge_type>
<source_obj>8</source_obj>
<sink_obj>52</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_38">
<id>74</id>
<edge_type>1</edge_type>
<source_obj>14</source_obj>
<sink_obj>50</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_39">
<id>75</id>
<edge_type>1</edge_type>
<source_obj>15</source_obj>
<sink_obj>50</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_40">
<id>76</id>
<edge_type>1</edge_type>
<source_obj>16</source_obj>
<sink_obj>50</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_41">
<id>77</id>
<edge_type>1</edge_type>
<source_obj>15</source_obj>
<sink_obj>51</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_42">
<id>78</id>
<edge_type>1</edge_type>
<source_obj>17</source_obj>
<sink_obj>51</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_43">
<id>79</id>
<edge_type>1</edge_type>
<source_obj>18</source_obj>
<sink_obj>52</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_44">
<id>80</id>
<edge_type>1</edge_type>
<source_obj>19</source_obj>
<sink_obj>52</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_45">
<id>81</id>
<edge_type>1</edge_type>
<source_obj>20</source_obj>
<sink_obj>52</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_46">
<id>82</id>
<edge_type>1</edge_type>
<source_obj>17</source_obj>
<sink_obj>52</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_47">
<id>83</id>
<edge_type>1</edge_type>
<source_obj>16</source_obj>
<sink_obj>52</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_48">
<id>356</id>
<edge_type>4</edge_type>
<source_obj>51</source_obj>
<sink_obj>52</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_49">
<id>357</id>
<edge_type>4</edge_type>
<source_obj>50</source_obj>
<sink_obj>51</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_50">
<id>358</id>
<edge_type>4</edge_type>
<source_obj>50</source_obj>
<sink_obj>51</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_51">
<id>359</id>
<edge_type>4</edge_type>
<source_obj>51</source_obj>
<sink_obj>52</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
</edges>
</cdfg>
<cdfg_regions class_id="21" tracking_level="0" version="0">
<count>1</count>
<item_version>0</item_version>
<item class_id="22" tracking_level="1" version="0" object_id="_52">
<mId>1</mId>
<mTag>ethernet_header_inserter</mTag>
<mNormTag>ethernet_header_inserter</mNormTag>
<mType>0</mType>
<sub_regions>
<count>0</count>
<item_version>0</item_version>
</sub_regions>
<basic_blocks>
<count>1</count>
<item_version>0</item_version>
<item>54</item>
</basic_blocks>
<mII>-1</mII>
<mDepth>-1</mDepth>
<mMinTripCount>-1</mMinTripCount>
<mMaxTripCount>-1</mMaxTripCount>
<mMinLatency>9</mMinLatency>
<mMaxLatency>9</mMaxLatency>
<mIsDfPipe>1</mIsDfPipe>
<mDfPipe class_id="23" tracking_level="1" version="0" object_id="_53">
<port_list class_id="24" tracking_level="0" version="0">
<count>13</count>
<item_version>0</item_version>
<item class_id="25" tracking_level="1" version="0" object_id="_54">
<name>dataIn_V_data_V</name>
<dir>0</dir>
<type>3</type>
<need_hs>0</need_hs>
<top_port class_id="-1"/>
<chan class_id="-1"/>
</item>
<item class_id_reference="25" object_id="_55">
<name>dataIn_V_keep_V</name>
<dir>0</dir>
<type>3</type>
<need_hs>0</need_hs>
<top_port class_id="-1"/>
<chan class_id="-1"/>
</item>
<item class_id_reference="25" object_id="_56">
<name>dataIn_V_strb_V</name>
<dir>0</dir>
<type>3</type>
<need_hs>0</need_hs>
<top_port class_id="-1"/>
<chan class_id="-1"/>
</item>
<item class_id_reference="25" object_id="_57">
<name>dataIn_V_last_V</name>
<dir>0</dir>
<type>3</type>
<need_hs>0</need_hs>
<top_port class_id="-1"/>
<chan class_id="-1"/>
</item>
<item class_id_reference="25" object_id="_58">
<name>dataOut_V_data_V</name>
<dir>1</dir>
<type>3</type>
<need_hs>0</need_hs>
<top_port class_id="-1"/>
<chan class_id="-1"/>
</item>
<item class_id_reference="25" object_id="_59">
<name>dataOut_V_keep_V</name>
<dir>1</dir>
<type>3</type>
<need_hs>0</need_hs>
<top_port class_id="-1"/>
<chan class_id="-1"/>
</item>
<item class_id_reference="25" object_id="_60">
<name>dataOut_V_strb_V</name>
<dir>1</dir>
<type>3</type>
<need_hs>0</need_hs>
<top_port class_id="-1"/>
<chan class_id="-1"/>
</item>
<item class_id_reference="25" object_id="_61">
<name>dataOut_V_last_V</name>
<dir>1</dir>
<type>3</type>
<need_hs>0</need_hs>
<top_port class_id="-1"/>
<chan class_id="-1"/>
</item>
<item class_id_reference="25" object_id="_62">
<name>arpTableReplay_V</name>
<dir>0</dir>
<type>3</type>
<need_hs>0</need_hs>
<top_port class_id="-1"/>
<chan class_id="-1"/>
</item>
<item class_id_reference="25" object_id="_63">
<name>arpTableRequest_V</name>
<dir>1</dir>
<type>3</type>
<need_hs>0</need_hs>
<top_port class_id="-1"/>
<chan class_id="-1"/>
</item>
<item class_id_reference="25" object_id="_64">
<name>myMacAddress</name>
<dir>0</dir>
<type>3</type>
<need_hs>1</need_hs>
<top_port class_id="-1"/>
<chan class_id="-1"/>
</item>
<item class_id_reference="25" object_id="_65">
<name>regSubNetMask</name>
<dir>0</dir>
<type>3</type>
<need_hs>1</need_hs>
<top_port class_id="-1"/>
<chan class_id="-1"/>
</item>
<item class_id_reference="25" object_id="_66">
<name>regDefaultGateway</name>
<dir>0</dir>
<type>3</type>
<need_hs>1</need_hs>
<top_port class_id="-1"/>
<chan class_id="-1"/>
</item>
</port_list>
<process_list class_id="27" tracking_level="0" version="0">
<count>3</count>
<item_version>0</item_version>
<item class_id="28" tracking_level="1" version="0" object_id="_67">
<type>0</type>
<name>broadcaster_and_mac_request_U0</name>
<ssdmobj_id>50</ssdmobj_id>
<pins class_id="29" tracking_level="0" version="0">
<count>7</count>
<item_version>0</item_version>
<item class_id="30" tracking_level="1" version="0" object_id="_68">
<port class_id_reference="25" object_id="_69">
<name>dataIn_V_data_V</name>
<dir>0</dir>
<type>3</type>
<need_hs>0</need_hs>
<top_port class_id_reference="25" object_id_reference="_54"/>
<chan class_id="-1"/>
</port>
<inst class_id="31" tracking_level="1" version="0" object_id="_70">
<type>0</type>
<name>broadcaster_and_mac_request_U0</name>
<ssdmobj_id>50</ssdmobj_id>
</inst>
</item>
<item class_id_reference="30" object_id="_71">
<port class_id_reference="25" object_id="_72">
<name>dataIn_V_keep_V</name>
<dir>0</dir>
<type>3</type>
<need_hs>0</need_hs>
<top_port class_id_reference="25" object_id_reference="_55"/>
<chan class_id="-1"/>
</port>
<inst class_id_reference="31" object_id_reference="_70"/>
</item>
<item class_id_reference="30" object_id="_73">
<port class_id_reference="25" object_id="_74">
<name>dataIn_V_strb_V</name>
<dir>0</dir>
<type>3</type>
<need_hs>0</need_hs>
<top_port class_id_reference="25" object_id_reference="_56"/>
<chan class_id="-1"/>
</port>
<inst class_id_reference="31" object_id_reference="_70"/>
</item>
<item class_id_reference="30" object_id="_75">
<port class_id_reference="25" object_id="_76">
<name>dataIn_V_last_V</name>
<dir>0</dir>
<type>3</type>
<need_hs>0</need_hs>
<top_port class_id_reference="25" object_id_reference="_57"/>
<chan class_id="-1"/>
</port>
<inst class_id_reference="31" object_id_reference="_70"/>
</item>
<item class_id_reference="30" object_id="_77">
<port class_id_reference="25" object_id="_78">
<name>arpTableRequest_V</name>
<dir>1</dir>
<type>3</type>
<need_hs>0</need_hs>
<top_port class_id_reference="25" object_id_reference="_63"/>
<chan class_id="-1"/>
</port>
<inst class_id_reference="31" object_id_reference="_70"/>
</item>
<item class_id_reference="30" object_id="_79">
<port class_id_reference="25" object_id="_80">
<name>regSubNetMask</name>
<dir>0</dir>
<type>3</type>
<need_hs>1</need_hs>
<top_port class_id_reference="25" object_id_reference="_65"/>
<chan class_id="-1"/>
</port>
<inst class_id_reference="31" object_id_reference="_70"/>
</item>
<item class_id_reference="30" object_id="_81">
<port class_id_reference="25" object_id="_82">
<name>regDefaultGateway</name>
<dir>0</dir>
<type>3</type>
<need_hs>1</need_hs>
<top_port class_id_reference="25" object_id_reference="_66"/>
<chan class_id="-1"/>
</port>
<inst class_id_reference="31" object_id_reference="_70"/>
</item>
</pins>
<in_source_fork>1</in_source_fork>
<in_sink_join>0</in_sink_join>
<flag_in_gui>0</flag_in_gui>
</item>
<item class_id_reference="28" object_id="_83">
<type>0</type>
<name>compute_and_insert_ip_checksum_U0</name>
<ssdmobj_id>51</ssdmobj_id>
<pins>
<count>0</count>
<item_version>0</item_version>
</pins>
<in_source_fork>0</in_source_fork>
<in_sink_join>0</in_sink_join>
<flag_in_gui>0</flag_in_gui>
</item>
<item class_id_reference="28" object_id="_84">
<type>0</type>
<name>handle_output_U0</name>
<ssdmobj_id>52</ssdmobj_id>
<pins>
<count>6</count>
<item_version>0</item_version>
<item class_id_reference="30" object_id="_85">
<port class_id_reference="25" object_id="_86">
<name>arpTableReplay_V</name>
<dir>0</dir>
<type>3</type>
<need_hs>0</need_hs>
<top_port class_id_reference="25" object_id_reference="_62"/>
<chan class_id="-1"/>
</port>
<inst class_id_reference="31" object_id="_87">
<type>0</type>
<name>handle_output_U0</name>
<ssdmobj_id>52</ssdmobj_id>
</inst>
</item>
<item class_id_reference="30" object_id="_88">
<port class_id_reference="25" object_id="_89">
<name>myMacAddress</name>
<dir>0</dir>
<type>3</type>
<need_hs>1</need_hs>
<top_port class_id_reference="25" object_id_reference="_64"/>
<chan class_id="-1"/>
</port>
<inst class_id_reference="31" object_id_reference="_87"/>
</item>
<item class_id_reference="30" object_id="_90">
<port class_id_reference="25" object_id="_91">
<name>dataOut_V_data_V</name>
<dir>1</dir>
<type>3</type>
<need_hs>0</need_hs>
<top_port class_id_reference="25" object_id_reference="_58"/>
<chan class_id="-1"/>
</port>
<inst class_id_reference="31" object_id_reference="_87"/>
</item>
<item class_id_reference="30" object_id="_92">
<port class_id_reference="25" object_id="_93">
<name>dataOut_V_keep_V</name>
<dir>1</dir>
<type>3</type>
<need_hs>0</need_hs>
<top_port class_id_reference="25" object_id_reference="_59"/>
<chan class_id="-1"/>
</port>
<inst class_id_reference="31" object_id_reference="_87"/>
</item>
<item class_id_reference="30" object_id="_94">
<port class_id_reference="25" object_id="_95">
<name>dataOut_V_strb_V</name>
<dir>1</dir>
<type>3</type>
<need_hs>0</need_hs>
<top_port class_id_reference="25" object_id_reference="_60"/>
<chan class_id="-1"/>
</port>
<inst class_id_reference="31" object_id_reference="_87"/>
</item>
<item class_id_reference="30" object_id="_96">
<port class_id_reference="25" object_id="_97">
<name>dataOut_V_last_V</name>
<dir>1</dir>
<type>3</type>
<need_hs>0</need_hs>
<top_port class_id_reference="25" object_id_reference="_61"/>
<chan class_id="-1"/>
</port>
<inst class_id_reference="31" object_id_reference="_87"/>
</item>
</pins>
<in_source_fork>1</in_source_fork>
<in_sink_join>1</in_sink_join>
<flag_in_gui>1</flag_in_gui>
</item>
</process_list>
<channel_list class_id="32" tracking_level="0" version="0">
<count>3</count>
<item_version>0</item_version>
<item class_id="26" tracking_level="1" version="0" object_id="_98">
<type>1</type>
<name>ip_header_out</name>
<ssdmobj_id>15</ssdmobj_id>
<ctype>0</ctype>
<depth>16</depth>
<bitwidth>1024</bitwidth>
<suggested_type>0</suggested_type>
<suggested_depth>16</suggested_depth>
<source class_id_reference="30" object_id="_99">
<port class_id_reference="25" object_id="_100">
<name>in</name>
<dir>0</dir>
<type>3</type>
<need_hs>0</need_hs>
<top_port class_id="-1"/>
<chan class_id="-1"/>
</port>
<inst class_id_reference="31" object_id_reference="_70"/>
</source>
<sink class_id_reference="30" object_id="_101">
<port class_id_reference="25" object_id="_102">
<name>out</name>
<dir>1</dir>
<type>3</type>
<need_hs>0</need_hs>
<top_port class_id="-1"/>
<chan class_id="-1"/>
</port>
<inst class_id_reference="31" object_id="_103">
<type>0</type>
<name>compute_and_insert_ip_checksum_U0</name>
<ssdmobj_id>51</ssdmobj_id>
</inst>
</sink>
</item>
<item class_id_reference="26" object_id="_104">
<type>1</type>
<name>no_ip_header_out</name>
<ssdmobj_id>16</ssdmobj_id>
<ctype>0</ctype>
<depth>16</depth>
<bitwidth>1024</bitwidth>
<suggested_type>0</suggested_type>
<suggested_depth>16</suggested_depth>
<source class_id_reference="30" object_id="_105">
<port class_id_reference="25" object_id="_106">
<name>in</name>
<dir>0</dir>
<type>3</type>
<need_hs>0</need_hs>
<top_port class_id="-1"/>
<chan class_id="-1"/>
</port>
<inst class_id_reference="31" object_id_reference="_70"/>
</source>
<sink class_id_reference="30" object_id="_107">
<port class_id_reference="25" object_id="_108">
<name>out</name>
<dir>1</dir>
<type>3</type>
<need_hs>0</need_hs>
<top_port class_id="-1"/>
<chan class_id="-1"/>
</port>
<inst class_id_reference="31" object_id_reference="_87"/>
</sink>
</item>
<item class_id_reference="26" object_id="_109">
<type>1</type>
<name>ip_header_checksum</name>
<ssdmobj_id>17</ssdmobj_id>
<ctype>0</ctype>
<depth>16</depth>
<bitwidth>1024</bitwidth>
<suggested_type>0</suggested_type>
<suggested_depth>16</suggested_depth>
<source class_id_reference="30" object_id="_110">
<port class_id_reference="25" object_id="_111">
<name>in</name>
<dir>0</dir>
<type>3</type>
<need_hs>0</need_hs>
<top_port class_id="-1"/>
<chan class_id="-1"/>
</port>
<inst class_id_reference="31" object_id_reference="_103"/>
</source>
<sink class_id_reference="30" object_id="_112">
<port class_id_reference="25" object_id="_113">
<name>out</name>
<dir>1</dir>
<type>3</type>
<need_hs>0</need_hs>
<top_port class_id="-1"/>
<chan class_id="-1"/>
</port>
<inst class_id_reference="31" object_id_reference="_87"/>
</sink>
</item>
</channel_list>
<net_list class_id="33" tracking_level="0" version="0">
<count>0</count>
<item_version>0</item_version>
</net_list>
</mDfPipe>
</item>
</cdfg_regions>
<fsm class_id="34" tracking_level="1" version="0" object_id="_114">
<states class_id="35" tracking_level="0" version="0">
<count>13</count>
<item_version>0</item_version>
<item class_id="36" tracking_level="1" version="0" object_id="_115">
<id>1</id>
<operations class_id="37" tracking_level="0" version="0">
<count>0</count>
<item_version>0</item_version>
</operations>
</item>
<item class_id_reference="36" object_id="_116">
<id>2</id>
<operations>
<count>1</count>
<item_version>0</item_version>
<item class_id="38" tracking_level="1" version="0" object_id="_117">
<id>50</id>
<stage>3</stage>
<latency>3</latency>
</item>
</operations>
</item>
<item class_id_reference="36" object_id="_118">
<id>3</id>
<operations>
<count>1</count>
<item_version>0</item_version>
<item class_id_reference="38" object_id="_119">
<id>50</id>
<stage>2</stage>
<latency>3</latency>
</item>
</operations>
</item>
<item class_id_reference="36" object_id="_120">
<id>4</id>
<operations>
<count>1</count>
<item_version>0</item_version>
<item class_id_reference="38" object_id="_121">
<id>50</id>
<stage>1</stage>
<latency>3</latency>
</item>
</operations>
</item>
<item class_id_reference="36" object_id="_122">
<id>5</id>
<operations>
<count>1</count>
<item_version>0</item_version>
<item class_id_reference="38" object_id="_123">
<id>51</id>
<stage>5</stage>
<latency>5</latency>
</item>
</operations>
</item>
<item class_id_reference="36" object_id="_124">
<id>6</id>
<operations>
<count>1</count>
<item_version>0</item_version>
<item class_id_reference="38" object_id="_125">
<id>51</id>
<stage>4</stage>
<latency>5</latency>
</item>
</operations>
</item>
<item class_id_reference="36" object_id="_126">
<id>7</id>
<operations>
<count>1</count>
<item_version>0</item_version>
<item class_id_reference="38" object_id="_127">
<id>51</id>
<stage>3</stage>
<latency>5</latency>
</item>
</operations>
</item>
<item class_id_reference="36" object_id="_128">
<id>8</id>
<operations>
<count>1</count>
<item_version>0</item_version>
<item class_id_reference="38" object_id="_129">
<id>51</id>
<stage>2</stage>
<latency>5</latency>
</item>
</operations>
</item>
<item class_id_reference="36" object_id="_130">
<id>9</id>
<operations>
<count>1</count>
<item_version>0</item_version>
<item class_id_reference="38" object_id="_131">
<id>51</id>
<stage>1</stage>
<latency>5</latency>
</item>
</operations>
</item>
<item class_id_reference="36" object_id="_132">
<id>10</id>
<operations>
<count>1</count>
<item_version>0</item_version>
<item class_id_reference="38" object_id="_133">
<id>52</id>
<stage>3</stage>
<latency>3</latency>
</item>
</operations>
</item>
<item class_id_reference="36" object_id="_134">
<id>11</id>
<operations>
<count>1</count>
<item_version>0</item_version>
<item class_id_reference="38" object_id="_135">
<id>52</id>
<stage>2</stage>
<latency>3</latency>
</item>
</operations>
</item>
<item class_id_reference="36" object_id="_136">
<id>12</id>
<operations>
<count>1</count>
<item_version>0</item_version>
<item class_id_reference="38" object_id="_137">
<id>52</id>
<stage>1</stage>
<latency>3</latency>
</item>
</operations>
</item>
<item class_id_reference="36" object_id="_138">
<id>13</id>
<operations>
<count>30</count>
<item_version>0</item_version>
<item class_id_reference="38" object_id="_139">
<id>21</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_140">
<id>22</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_141">
<id>23</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_142">
<id>24</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_143">
<id>25</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_144">
<id>26</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_145">
<id>27</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_146">
<id>28</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_147">
<id>29</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_148">
<id>30</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_149">
<id>31</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_150">
<id>32</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_151">
<id>33</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_152">
<id>34</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_153">
<id>35</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_154">
<id>36</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_155">
<id>37</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_156">
<id>38</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_157">
<id>39</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_158">
<id>40</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_159">
<id>41</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_160">
<id>42</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_161">
<id>43</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_162">
<id>44</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_163">
<id>45</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_164">
<id>46</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_165">
<id>47</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_166">
<id>48</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_167">
<id>49</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_168">
<id>53</id>
<stage>1</stage>
<latency>1</latency>
</item>
</operations>
</item>
</states>
<transitions class_id="39" tracking_level="0" version="0">
<count>12</count>
<item_version>0</item_version>
<item class_id="40" tracking_level="1" version="0" object_id="_169">
<inState>1</inState>
<outState>2</outState>
<condition class_id="41" tracking_level="0" version="0">
<id>-1</id>
<sop class_id="42" tracking_level="0" version="0">
<count>1</count>
<item_version>0</item_version>
<item class_id="43" tracking_level="0" version="0">
<count>0</count>
<item_version>0</item_version>
</item>
</sop>
</condition>
</item>
<item class_id_reference="40" object_id="_170">
<inState>2</inState>
<outState>3</outState>
<condition>
<id>-1</id>
<sop>
<count>1</count>
<item_version>0</item_version>
<item>
<count>0</count>
<item_version>0</item_version>
</item>
</sop>
</condition>
</item>
<item class_id_reference="40" object_id="_171">
<inState>3</inState>
<outState>4</outState>
<condition>
<id>-1</id>
<sop>
<count>1</count>
<item_version>0</item_version>
<item>
<count>0</count>
<item_version>0</item_version>
</item>
</sop>
</condition>
</item>
<item class_id_reference="40" object_id="_172">
<inState>4</inState>
<outState>5</outState>
<condition>
<id>-1</id>
<sop>
<count>1</count>
<item_version>0</item_version>
<item>
<count>0</count>
<item_version>0</item_version>
</item>
</sop>
</condition>
</item>
<item class_id_reference="40" object_id="_173">
<inState>5</inState>
<outState>6</outState>
<condition>
<id>-1</id>
<sop>
<count>1</count>
<item_version>0</item_version>
<item>
<count>0</count>
<item_version>0</item_version>
</item>
</sop>
</condition>
</item>
<item class_id_reference="40" object_id="_174">
<inState>6</inState>
<outState>7</outState>
<condition>
<id>-1</id>
<sop>
<count>1</count>
<item_version>0</item_version>
<item>
<count>0</count>
<item_version>0</item_version>
</item>
</sop>
</condition>
</item>
<item class_id_reference="40" object_id="_175">
<inState>7</inState>
<outState>8</outState>
<condition>
<id>-1</id>
<sop>
<count>1</count>
<item_version>0</item_version>
<item>
<count>0</count>
<item_version>0</item_version>
</item>
</sop>
</condition>
</item>
<item class_id_reference="40" object_id="_176">
<inState>8</inState>
<outState>9</outState>
<condition>
<id>-1</id>
<sop>
<count>1</count>
<item_version>0</item_version>
<item>
<count>0</count>
<item_version>0</item_version>
</item>
</sop>
</condition>
</item>
<item class_id_reference="40" object_id="_177">
<inState>9</inState>
<outState>10</outState>
<condition>
<id>-1</id>
<sop>
<count>1</count>
<item_version>0</item_version>
<item>
<count>0</count>
<item_version>0</item_version>
</item>
</sop>
</condition>
</item>
<item class_id_reference="40" object_id="_178">
<inState>10</inState>
<outState>11</outState>
<condition>
<id>-1</id>
<sop>
<count>1</count>
<item_version>0</item_version>
<item>
<count>0</count>
<item_version>0</item_version>
</item>
</sop>
</condition>
</item>
<item class_id_reference="40" object_id="_179">
<inState>11</inState>
<outState>12</outState>
<condition>
<id>-1</id>
<sop>
<count>1</count>
<item_version>0</item_version>
<item>
<count>0</count>
<item_version>0</item_version>
</item>
</sop>
</condition>
</item>
<item class_id_reference="40" object_id="_180">
<inState>12</inState>
<outState>13</outState>
<condition>
<id>-1</id>
<sop>
<count>1</count>
<item_version>0</item_version>
<item>
<count>0</count>
<item_version>0</item_version>
</item>
</sop>
</condition>
</item>
</transitions>
</fsm>
<res class_id="44" tracking_level="1" version="0" object_id="_181">
<dp_component_resource class_id="45" tracking_level="0" version="0">
<count>4</count>
<item_version>0</item_version>
<item class_id="46" tracking_level="0" version="0">
<first>broadcaster_and_mac_request_U0 (broadcaster_and_mac_request)</first>
<second class_id="47" tracking_level="0" version="0">
<count>2</count>
<item_version>0</item_version>
<item class_id="48" tracking_level="0" version="0">
<first>FF</first>
<second>654</second>
</item>
<item>
<first>LUT</first>
<second>190</second>
</item>
</second>
</item>
<item>
<first>compute_and_insert_ip_checksum_U0 (compute_and_insert_ip_checksum)</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>FF</first>
<second>2859</second>
</item>
<item>
<first>LUT</first>
<second>2072</second>
</item>
</second>
</item>
<item>
<first>handle_output_U0 (handle_output)</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>FF</first>
<second>1171</second>
</item>
<item>
<first>LUT</first>
<second>247</second>
</item>
</second>
</item>
<item>
<first>start_for_compute_and_insert_ip_checksum_U0_U (start_for_compute_and_insert_ip_checksum_U0)</first>
<second>
<count>0</count>
<item_version>0</item_version>
</second>
</item>
</dp_component_resource>
<dp_expression_resource>
<count>0</count>
<item_version>0</item_version>
</dp_expression_resource>
<dp_fifo_resource>
<count>3</count>
<item_version>0</item_version>
<item>
<first>ip_header_checksum_U</first>
<second>
<count>6</count>
<item_version>0</item_version>
<item>
<first>(0Depth)</first>
<second>16</second>
</item>
<item>
<first>(1Bits)</first>
<second>1024</second>
</item>
<item>
<first>(2Size:D*B)</first>
<second>16384</second>
</item>
<item>
<first>BRAM</first>
<second>0</second>
</item>
<item>
<first>FF</first>
<second>3092</second>
</item>
<item>
<first>LUT</first>
<second>1657</second>
</item>
</second>
</item>
<item>
<first>ip_header_out_U</first>
<second>
<count>6</count>
<item_version>0</item_version>
<item>
<first>(0Depth)</first>
<second>16</second>
</item>
<item>
<first>(1Bits)</first>
<second>1024</second>
</item>
<item>
<first>(2Size:D*B)</first>
<second>16384</second>
</item>
<item>
<first>BRAM</first>
<second>0</second>
</item>
<item>
<first>FF</first>
<second>3092</second>
</item>
<item>
<first>LUT</first>
<second>1657</second>
</item>
</second>
</item>
<item>
<first>no_ip_header_out_U</first>
<second>
<count>6</count>
<item_version>0</item_version>
<item>
<first>(0Depth)</first>
<second>16</second>
</item>
<item>
<first>(1Bits)</first>
<second>1024</second>
</item>
<item>
<first>(2Size:D*B)</first>
<second>16384</second>
</item>
<item>
<first>BRAM</first>
<second>0</second>
</item>
<item>
<first>FF</first>
<second>3092</second>
</item>
<item>
<first>LUT</first>
<second>1657</second>
</item>
</second>
</item>
</dp_fifo_resource>
<dp_memory_resource>
<count>0</count>
<item_version>0</item_version>
</dp_memory_resource>
<dp_multiplexer_resource>
<count>0</count>
<item_version>0</item_version>
</dp_multiplexer_resource>
<dp_register_resource>
<count>0</count>
<item_version>0</item_version>
</dp_register_resource>
<dp_dsp_resource>
<count>4</count>
<item_version>0</item_version>
<item>
<first>broadcaster_and_mac_request_U0</first>
<second>
<count>0</count>
<item_version>0</item_version>
</second>
</item>
<item>
<first>compute_and_insert_ip_checksum_U0</first>
<second>
<count>0</count>
<item_version>0</item_version>
</second>
</item>
<item>
<first>handle_output_U0</first>
<second>
<count>0</count>
<item_version>0</item_version>
</second>
</item>
<item>
<first>start_for_compute_and_insert_ip_checksum_U0_U</first>
<second>
<count>0</count>
<item_version>0</item_version>
</second>
</item>
</dp_dsp_resource>
<dp_component_map class_id="49" tracking_level="0" version="0">
<count>3</count>
<item_version>0</item_version>
<item class_id="50" tracking_level="0" version="0">
<first>broadcaster_and_mac_request_U0 (broadcaster_and_mac_request)</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>50</item>
</second>
</item>
<item>
<first>compute_and_insert_ip_checksum_U0 (compute_and_insert_ip_checksum)</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>51</item>
</second>
</item>
<item>
<first>handle_output_U0 (handle_output)</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>52</item>
</second>
</item>
</dp_component_map>
<dp_expression_map>
<count>0</count>
<item_version>0</item_version>
</dp_expression_map>
<dp_fifo_map>
<count>3</count>
<item_version>0</item_version>
<item>
<first>ip_header_checksum_U</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>115</item>
</second>
</item>
<item>
<first>ip_header_out_U</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>95</item>
</second>
</item>
<item>
<first>no_ip_header_out_U</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>105</item>
</second>
</item>
</dp_fifo_map>
<dp_memory_map>
<count>0</count>
<item_version>0</item_version>
</dp_memory_map>
</res>
<node_label_latency class_id="51" tracking_level="0" version="0">
<count>4</count>
<item_version>0</item_version>
<item class_id="52" tracking_level="0" version="0">
<first>50</first>
<second class_id="53" tracking_level="0" version="0">
<first>1</first>
<second>2</second>
</second>
</item>
<item>
<first>51</first>
<second>
<first>4</first>
<second>4</second>
</second>
</item>
<item>
<first>52</first>
<second>
<first>9</first>
<second>2</second>
</second>
</item>
<item>
<first>53</first>
<second>
<first>12</first>
<second>0</second>
</second>
</item>
</node_label_latency>
<bblk_ent_exit class_id="54" tracking_level="0" version="0">
<count>1</count>
<item_version>0</item_version>
<item class_id="55" tracking_level="0" version="0">
<first>54</first>
<second class_id="56" tracking_level="0" version="0">
<first>0</first>
<second>12</second>
</second>
</item>
</bblk_ent_exit>
<regions class_id="57" tracking_level="0" version="0">
<count>1</count>
<item_version>0</item_version>
<item class_id="58" tracking_level="1" version="0" object_id="_182">
<region_name>ethernet_header_inserter</region_name>
<basic_blocks>
<count>1</count>
<item_version>0</item_version>
<item>54</item>
</basic_blocks>
<nodes>
<count>33</count>
<item_version>0</item_version>
<item>21</item>
<item>22</item>
<item>23</item>
<item>24</item>
<item>25</item>
<item>26</item>
<item>27</item>
<item>28</item>
<item>29</item>
<item>30</item>
<item>31</item>
<item>32</item>
<item>33</item>
<item>34</item>
<item>35</item>
<item>36</item>
<item>37</item>
<item>38</item>
<item>39</item>
<item>40</item>
<item>41</item>
<item>42</item>
<item>43</item>
<item>44</item>
<item>45</item>
<item>46</item>
<item>47</item>
<item>48</item>
<item>49</item>
<item>50</item>
<item>51</item>
<item>52</item>
<item>53</item>
</nodes>
<anchor_node>-1</anchor_node>
<region_type>16</region_type>
<interval>0</interval>
<pipe_depth>0</pipe_depth>
<mDBIIViolationVec class_id="59" tracking_level="0" version="0">
<count>0</count>
<item_version>0</item_version>
</mDBIIViolationVec>
</item>
</regions>
<dp_fu_nodes class_id="60" tracking_level="0" version="0">
<count>3</count>
<item_version>0</item_version>
<item class_id="61" tracking_level="0" version="0">
<first>86</first>
<second>
<count>3</count>
<item_version>0</item_version>
<item>50</item>
<item>50</item>
<item>50</item>
</second>
</item>
<item>
<first>110</first>
<second>
<count>5</count>
<item_version>0</item_version>
<item>51</item>
<item>51</item>
<item>51</item>
<item>51</item>
<item>51</item>
</second>
</item>
<item>
<first>118</first>
<second>
<count>3</count>
<item_version>0</item_version>
<item>52</item>
<item>52</item>
<item>52</item>
</second>
</item>
</dp_fu_nodes>
<dp_fu_nodes_expression class_id="63" tracking_level="0" version="0">
<count>0</count>
<item_version>0</item_version>
</dp_fu_nodes_expression>
<dp_fu_nodes_module>
<count>3</count>
<item_version>0</item_version>
<item class_id="64" tracking_level="0" version="0">
<first>grp_broadcaster_and_mac_request_fu_86</first>
<second>
<count>3</count>
<item_version>0</item_version>
<item>50</item>
<item>50</item>
<item>50</item>
</second>
</item>
<item>
<first>grp_compute_and_insert_ip_checksum_fu_110</first>
<second>
<count>5</count>
<item_version>0</item_version>
<item>51</item>
<item>51</item>
<item>51</item>
<item>51</item>
<item>51</item>
</second>
</item>
<item>
<first>grp_handle_output_fu_118</first>
<second>
<count>3</count>
<item_version>0</item_version>
<item>52</item>
<item>52</item>
<item>52</item>
</second>
</item>
</dp_fu_nodes_module>
<dp_fu_nodes_io>
<count>0</count>
<item_version>0</item_version>
</dp_fu_nodes_io>
<return_ports>
<count>0</count>
<item_version>0</item_version>
</return_ports>
<dp_mem_port_nodes class_id="65" 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="66" tracking_level="0" version="0">
<count>13</count>
<item_version>0</item_version>
<item class_id="67" tracking_level="0" version="0">
<first>arpTableReplay_V</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>call</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>52</item>
</second>
</item>
</second>
</item>
<item>
<first>arpTableRequest_V</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>call</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>50</item>
</second>
</item>
</second>
</item>
<item>
<first>dataIn_V_data_V</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>call</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>50</item>
</second>
</item>
</second>
</item>
<item>
<first>dataIn_V_keep_V</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>call</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>50</item>
</second>
</item>
</second>
</item>
<item>
<first>dataIn_V_last_V</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>call</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>50</item>
</second>
</item>
</second>
</item>
<item>
<first>dataIn_V_strb_V</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>call</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>50</item>
</second>
</item>
</second>
</item>
<item>
<first>dataOut_V_data_V</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>call</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>52</item>
</second>
</item>
</second>
</item>
<item>
<first>dataOut_V_keep_V</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>call</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>52</item>
</second>
</item>
</second>
</item>
<item>
<first>dataOut_V_last_V</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>call</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>52</item>
</second>
</item>
</second>
</item>
<item>
<first>dataOut_V_strb_V</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>call</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>52</item>
</second>
</item>
</second>
</item>
<item>
<first>myMacAddress</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>call</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>52</item>
</second>
</item>
</second>
</item>
<item>
<first>regDefaultGateway</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>call</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>50</item>
</second>
</item>
</second>
</item>
<item>
<first>regSubNetMask</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>call</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>50</item>
</second>
</item>
</second>
</item>
</dp_port_io_nodes>
<port2core>
<count>0</count>
<item_version>0</item_version>
</port2core>
<node2core>
<count>3</count>
<item_version>0</item_version>
<item>
<first>50</first>
<second>
<first>-1</first>
<second>-1</second>
</second>
</item>
<item>
<first>51</first>
<second>
<first>-1</first>
<second>-1</second>
</second>
</item>
<item>
<first>52</first>
<second>
<first>-1</first>
<second>-1</second>
</second>
</item>
</node2core>
</syndb>
</boost_serialization>
| 33.877815 | 193 | 0.471283 |
299b34408150c5f9376e21820b0f74beb1b81d7c | 91,179 | adb | Ada | honeybee_proj/HBH/.autopilot/db/lineIntersectsPlane.sched.adb | AnthonyKenny98/HoneyBee | 5b1859fe8c50cb5bd709f53780c4e5ce7160b987 | [
"MIT"
] | null | null | null | honeybee_proj/HBH/.autopilot/db/lineIntersectsPlane.sched.adb | AnthonyKenny98/HoneyBee | 5b1859fe8c50cb5bd709f53780c4e5ce7160b987 | [
"MIT"
] | null | null | null | honeybee_proj/HBH/.autopilot/db/lineIntersectsPlane.sched.adb | AnthonyKenny98/HoneyBee | 5b1859fe8c50cb5bd709f53780c4e5ce7160b987 | [
"MIT"
] | null | null | null | <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE boost_serialization>
<boost_serialization signature="serialization::archive" version="15">
<syndb class_id="0" tracking_level="0" version="0">
<userIPLatency>-1</userIPLatency>
<userIPName></userIPName>
<cdfg class_id="1" tracking_level="1" version="0" object_id="_0">
<name>lineIntersectsPlane</name>
<ret_bitwidth>96</ret_bitwidth>
<ports class_id="2" tracking_level="0" version="0">
<count>7</count>
<item_version>0</item_version>
<item class_id="3" tracking_level="1" version="0" object_id="_1">
<Value class_id="4" tracking_level="0" version="0">
<Obj class_id="5" tracking_level="0" version="0">
<type>1</type>
<id>1</id>
<name>edge_p1_x</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo class_id="6" tracking_level="0" version="0">
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<direction>0</direction>
<if_type>0</if_type>
<array_size>0</array_size>
<bit_vecs class_id="7" tracking_level="0" version="0">
<count>0</count>
<item_version>0</item_version>
</bit_vecs>
</item>
<item class_id_reference="3" object_id="_2">
<Value>
<Obj>
<type>1</type>
<id>2</id>
<name>edge_p1_y</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<direction>0</direction>
<if_type>0</if_type>
<array_size>0</array_size>
<bit_vecs>
<count>0</count>
<item_version>0</item_version>
</bit_vecs>
</item>
<item class_id_reference="3" object_id="_3">
<Value>
<Obj>
<type>1</type>
<id>3</id>
<name>edge_p1_z</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<direction>0</direction>
<if_type>0</if_type>
<array_size>0</array_size>
<bit_vecs>
<count>0</count>
<item_version>0</item_version>
</bit_vecs>
</item>
<item class_id_reference="3" object_id="_4">
<Value>
<Obj>
<type>1</type>
<id>4</id>
<name>edge_p2_x</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<direction>0</direction>
<if_type>0</if_type>
<array_size>0</array_size>
<bit_vecs>
<count>0</count>
<item_version>0</item_version>
</bit_vecs>
</item>
<item class_id_reference="3" object_id="_5">
<Value>
<Obj>
<type>1</type>
<id>5</id>
<name>edge_p2_y</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<direction>0</direction>
<if_type>0</if_type>
<array_size>0</array_size>
<bit_vecs>
<count>0</count>
<item_version>0</item_version>
</bit_vecs>
</item>
<item class_id_reference="3" object_id="_6">
<Value>
<Obj>
<type>1</type>
<id>6</id>
<name>edge_p2_z</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<direction>0</direction>
<if_type>0</if_type>
<array_size>0</array_size>
<bit_vecs>
<count>0</count>
<item_version>0</item_version>
</bit_vecs>
</item>
<item class_id_reference="3" object_id="_7">
<Value>
<Obj>
<type>1</type>
<id>7</id>
<name>plane</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>plane</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<direction>0</direction>
<if_type>0</if_type>
<array_size>0</array_size>
<bit_vecs>
<count>0</count>
<item_version>0</item_version>
</bit_vecs>
</item>
</ports>
<nodes class_id="8" tracking_level="0" version="0">
<count>39</count>
<item_version>0</item_version>
<item class_id="9" tracking_level="1" version="0" object_id="_8">
<Value>
<Obj>
<type>0</type>
<id>8</id>
<name>plane_read</name>
<fileName>src/honeybee.c</fileName>
<fileDirectory>/mnt/hgfs/Thesis/HoneyBee</fileDirectory>
<lineNumber>53</lineNumber>
<contextFuncName>lineIntersectsPlane</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item class_id="10" tracking_level="0" version="0">
<first>/mnt/hgfs/Thesis/HoneyBee</first>
<second class_id="11" tracking_level="0" version="0">
<count>1</count>
<item_version>0</item_version>
<item class_id="12" tracking_level="0" version="0">
<first class_id="13" tracking_level="0" version="0">
<first>src/honeybee.c</first>
<second>lineIntersectsPlane</second>
</first>
<second>53</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>plane</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>49</item>
<item>50</item>
</oprand_edges>
<opcode>read</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>1</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_9">
<Value>
<Obj>
<type>0</type>
<id>9</id>
<name>edge_p2_z_read</name>
<fileName>src/honeybee.c</fileName>
<fileDirectory>/mnt/hgfs/Thesis/HoneyBee</fileDirectory>
<lineNumber>53</lineNumber>
<contextFuncName>lineIntersectsPlane</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/mnt/hgfs/Thesis/HoneyBee</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>src/honeybee.c</first>
<second>lineIntersectsPlane</second>
</first>
<second>53</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>51</item>
<item>52</item>
</oprand_edges>
<opcode>read</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>2</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_10">
<Value>
<Obj>
<type>0</type>
<id>10</id>
<name>edge_p2_y_read</name>
<fileName>src/honeybee.c</fileName>
<fileDirectory>/mnt/hgfs/Thesis/HoneyBee</fileDirectory>
<lineNumber>53</lineNumber>
<contextFuncName>lineIntersectsPlane</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/mnt/hgfs/Thesis/HoneyBee</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>src/honeybee.c</first>
<second>lineIntersectsPlane</second>
</first>
<second>53</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>53</item>
<item>54</item>
</oprand_edges>
<opcode>read</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>3</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_11">
<Value>
<Obj>
<type>0</type>
<id>11</id>
<name>edge_p2_x_read</name>
<fileName>src/honeybee.c</fileName>
<fileDirectory>/mnt/hgfs/Thesis/HoneyBee</fileDirectory>
<lineNumber>53</lineNumber>
<contextFuncName>lineIntersectsPlane</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/mnt/hgfs/Thesis/HoneyBee</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>src/honeybee.c</first>
<second>lineIntersectsPlane</second>
</first>
<second>53</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>55</item>
<item>56</item>
</oprand_edges>
<opcode>read</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>4</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_12">
<Value>
<Obj>
<type>0</type>
<id>12</id>
<name>edge_p1_z_read</name>
<fileName>src/honeybee.c</fileName>
<fileDirectory>/mnt/hgfs/Thesis/HoneyBee</fileDirectory>
<lineNumber>53</lineNumber>
<contextFuncName>lineIntersectsPlane</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/mnt/hgfs/Thesis/HoneyBee</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>src/honeybee.c</first>
<second>lineIntersectsPlane</second>
</first>
<second>53</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>57</item>
<item>58</item>
</oprand_edges>
<opcode>read</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>5</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_13">
<Value>
<Obj>
<type>0</type>
<id>13</id>
<name>edge_p1_y_read</name>
<fileName>src/honeybee.c</fileName>
<fileDirectory>/mnt/hgfs/Thesis/HoneyBee</fileDirectory>
<lineNumber>53</lineNumber>
<contextFuncName>lineIntersectsPlane</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/mnt/hgfs/Thesis/HoneyBee</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>src/honeybee.c</first>
<second>lineIntersectsPlane</second>
</first>
<second>53</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>59</item>
<item>60</item>
</oprand_edges>
<opcode>read</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>6</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_14">
<Value>
<Obj>
<type>0</type>
<id>14</id>
<name>edge_p1_x_read</name>
<fileName>src/honeybee.c</fileName>
<fileDirectory>/mnt/hgfs/Thesis/HoneyBee</fileDirectory>
<lineNumber>53</lineNumber>
<contextFuncName>lineIntersectsPlane</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/mnt/hgfs/Thesis/HoneyBee</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>src/honeybee.c</first>
<second>lineIntersectsPlane</second>
</first>
<second>53</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>61</item>
<item>62</item>
</oprand_edges>
<opcode>read</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>7</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_15">
<Value>
<Obj>
<type>0</type>
<id>15</id>
<name>PR_z</name>
<fileName>src/honeybee.c</fileName>
<fileDirectory>/mnt/hgfs/Thesis/HoneyBee</fileDirectory>
<lineNumber>12</lineNumber>
<contextFuncName>vector</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/mnt/hgfs/Thesis/HoneyBee</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>
<first>src/honeybee.c</first>
<second>lineIntersectsPlane</second>
</first>
<second>61</second>
</item>
<item>
<first>
<first>src/honeybee.c</first>
<second>vector</second>
</first>
<second>12</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>agg.result.z</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>63</item>
<item>64</item>
</oprand_edges>
<opcode>fsub</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>8.58</m_delay>
<m_topoIndex>8</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_16">
<Value>
<Obj>
<type>0</type>
<id>16</id>
<name>tmp_i</name>
<fileName>src/honeybee.c</fileName>
<fileDirectory>/mnt/hgfs/Thesis/HoneyBee</fileDirectory>
<lineNumber>20</lineNumber>
<contextFuncName>crossProduct</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/mnt/hgfs/Thesis/HoneyBee</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>
<first>src/honeybee.c</first>
<second>crossProduct</second>
</first>
<second>20</second>
</item>
<item>
<first>
<first>src/honeybee.c</first>
<second>lineIntersectsPlane</second>
</first>
<second>65</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>65</item>
<item>67</item>
</oprand_edges>
<opcode>fmul</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>8.43</m_delay>
<m_topoIndex>9</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_17">
<Value>
<Obj>
<type>0</type>
<id>17</id>
<name>bitcast_ln20</name>
<fileName>src/honeybee.c</fileName>
<fileDirectory>/mnt/hgfs/Thesis/HoneyBee</fileDirectory>
<lineNumber>20</lineNumber>
<contextFuncName>crossProduct</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/mnt/hgfs/Thesis/HoneyBee</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>
<first>src/honeybee.c</first>
<second>crossProduct</second>
</first>
<second>20</second>
</item>
<item>
<first>
<first>src/honeybee.c</first>
<second>lineIntersectsPlane</second>
</first>
<second>65</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>68</item>
</oprand_edges>
<opcode>bitcast</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>10</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_18">
<Value>
<Obj>
<type>0</type>
<id>18</id>
<name>xor_ln20</name>
<fileName>src/honeybee.c</fileName>
<fileDirectory>/mnt/hgfs/Thesis/HoneyBee</fileDirectory>
<lineNumber>20</lineNumber>
<contextFuncName>crossProduct</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/mnt/hgfs/Thesis/HoneyBee</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>
<first>src/honeybee.c</first>
<second>crossProduct</second>
</first>
<second>20</second>
</item>
<item>
<first>
<first>src/honeybee.c</first>
<second>lineIntersectsPlane</second>
</first>
<second>65</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>69</item>
<item>71</item>
</oprand_edges>
<opcode>xor</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.80</m_delay>
<m_topoIndex>11</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_19">
<Value>
<Obj>
<type>0</type>
<id>19</id>
<name>bitcast_ln20_1</name>
<fileName>src/honeybee.c</fileName>
<fileDirectory>/mnt/hgfs/Thesis/HoneyBee</fileDirectory>
<lineNumber>20</lineNumber>
<contextFuncName>crossProduct</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/mnt/hgfs/Thesis/HoneyBee</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>
<first>src/honeybee.c</first>
<second>crossProduct</second>
</first>
<second>20</second>
</item>
<item>
<first>
<first>src/honeybee.c</first>
<second>lineIntersectsPlane</second>
</first>
<second>65</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>72</item>
</oprand_edges>
<opcode>bitcast</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>12</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_20">
<Value>
<Obj>
<type>0</type>
<id>20</id>
<name>norm_y</name>
<fileName>src/honeybee.c</fileName>
<fileDirectory>/mnt/hgfs/Thesis/HoneyBee</fileDirectory>
<lineNumber>20</lineNumber>
<contextFuncName>crossProduct</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/mnt/hgfs/Thesis/HoneyBee</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>
<first>src/honeybee.c</first>
<second>crossProduct</second>
</first>
<second>20</second>
</item>
<item>
<first>
<first>src/honeybee.c</first>
<second>lineIntersectsPlane</second>
</first>
<second>65</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>agg.result.x</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>73</item>
<item>74</item>
</oprand_edges>
<opcode>fsub</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>8.58</m_delay>
<m_topoIndex>13</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_21">
<Value>
<Obj>
<type>0</type>
<id>21</id>
<name>tmp_i9</name>
<fileName>src/honeybee.c</fileName>
<fileDirectory>/mnt/hgfs/Thesis/HoneyBee</fileDirectory>
<lineNumber>28</lineNumber>
<contextFuncName>dotProduct</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/mnt/hgfs/Thesis/HoneyBee</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>
<first>src/honeybee.c</first>
<second>dotProduct</second>
</first>
<second>28</second>
</item>
<item>
<first>
<first>src/honeybee.c</first>
<second>lineIntersectsPlane</second>
</first>
<second>68</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>75</item>
<item>76</item>
</oprand_edges>
<opcode>fmul</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>8.43</m_delay>
<m_topoIndex>14</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_22">
<Value>
<Obj>
<type>0</type>
<id>22</id>
<name>tmp_28_i</name>
<fileName>src/honeybee.c</fileName>
<fileDirectory>/mnt/hgfs/Thesis/HoneyBee</fileDirectory>
<lineNumber>28</lineNumber>
<contextFuncName>dotProduct</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/mnt/hgfs/Thesis/HoneyBee</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>
<first>src/honeybee.c</first>
<second>dotProduct</second>
</first>
<second>28</second>
</item>
<item>
<first>
<first>src/honeybee.c</first>
<second>lineIntersectsPlane</second>
</first>
<second>68</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>77</item>
<item>78</item>
</oprand_edges>
<opcode>fadd</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>8.58</m_delay>
<m_topoIndex>19</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_23">
<Value>
<Obj>
<type>0</type>
<id>23</id>
<name>dot</name>
<fileName>src/honeybee.c</fileName>
<fileDirectory>/mnt/hgfs/Thesis/HoneyBee</fileDirectory>
<lineNumber>28</lineNumber>
<contextFuncName>dotProduct</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/mnt/hgfs/Thesis/HoneyBee</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>
<first>src/honeybee.c</first>
<second>dotProduct</second>
</first>
<second>28</second>
</item>
<item>
<first>
<first>src/honeybee.c</first>
<second>lineIntersectsPlane</second>
</first>
<second>68</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>dot</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>79</item>
<item>80</item>
</oprand_edges>
<opcode>fadd</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>8.58</m_delay>
<m_topoIndex>23</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_24">
<Value>
<Obj>
<type>0</type>
<id>24</id>
<name>tmp_i1</name>
<fileName>src/honeybee.c</fileName>
<fileDirectory>/mnt/hgfs/Thesis/HoneyBee</fileDirectory>
<lineNumber>32</lineNumber>
<contextFuncName>paramT</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/mnt/hgfs/Thesis/HoneyBee</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>
<first>src/honeybee.c</first>
<second>lineIntersectsPlane</second>
</first>
<second>71</second>
</item>
<item>
<first>
<first>src/honeybee.c</first>
<second>paramT</second>
</first>
<second>32</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>81</item>
<item>82</item>
</oprand_edges>
<opcode>fmul</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>8.43</m_delay>
<m_topoIndex>15</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_25">
<Value>
<Obj>
<type>0</type>
<id>25</id>
<name>tmp_i1_6</name>
<fileName>src/honeybee.c</fileName>
<fileDirectory>/mnt/hgfs/Thesis/HoneyBee</fileDirectory>
<lineNumber>32</lineNumber>
<contextFuncName>paramT</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/mnt/hgfs/Thesis/HoneyBee</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>
<first>src/honeybee.c</first>
<second>lineIntersectsPlane</second>
</first>
<second>71</second>
</item>
<item>
<first>
<first>src/honeybee.c</first>
<second>paramT</second>
</first>
<second>32</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>83</item>
<item>84</item>
</oprand_edges>
<opcode>fmul</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>8.43</m_delay>
<m_topoIndex>16</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_26">
<Value>
<Obj>
<type>0</type>
<id>26</id>
<name>tmp_15_i</name>
<fileName>src/honeybee.c</fileName>
<fileDirectory>/mnt/hgfs/Thesis/HoneyBee</fileDirectory>
<lineNumber>32</lineNumber>
<contextFuncName>paramT</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/mnt/hgfs/Thesis/HoneyBee</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>
<first>src/honeybee.c</first>
<second>lineIntersectsPlane</second>
</first>
<second>71</second>
</item>
<item>
<first>
<first>src/honeybee.c</first>
<second>paramT</second>
</first>
<second>32</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>85</item>
<item>86</item>
</oprand_edges>
<opcode>fadd</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>8.58</m_delay>
<m_topoIndex>20</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_27">
<Value>
<Obj>
<type>0</type>
<id>27</id>
<name>tmp_17_i</name>
<fileName>src/honeybee.c</fileName>
<fileDirectory>/mnt/hgfs/Thesis/HoneyBee</fileDirectory>
<lineNumber>32</lineNumber>
<contextFuncName>paramT</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/mnt/hgfs/Thesis/HoneyBee</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>
<first>src/honeybee.c</first>
<second>lineIntersectsPlane</second>
</first>
<second>71</second>
</item>
<item>
<first>
<first>src/honeybee.c</first>
<second>paramT</second>
</first>
<second>32</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>87</item>
<item>88</item>
</oprand_edges>
<opcode>fadd</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>8.58</m_delay>
<m_topoIndex>24</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_28">
<Value>
<Obj>
<type>0</type>
<id>28</id>
<name>tmp_18_i</name>
<fileName>src/honeybee.c</fileName>
<fileDirectory>/mnt/hgfs/Thesis/HoneyBee</fileDirectory>
<lineNumber>32</lineNumber>
<contextFuncName>paramT</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/mnt/hgfs/Thesis/HoneyBee</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>
<first>src/honeybee.c</first>
<second>lineIntersectsPlane</second>
</first>
<second>71</second>
</item>
<item>
<first>
<first>src/honeybee.c</first>
<second>paramT</second>
</first>
<second>32</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>89</item>
<item>90</item>
</oprand_edges>
<opcode>fsub</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>8.58</m_delay>
<m_topoIndex>27</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_29">
<Value>
<Obj>
<type>0</type>
<id>29</id>
<name>tmp_19_i</name>
<fileName>src/honeybee.c</fileName>
<fileDirectory>/mnt/hgfs/Thesis/HoneyBee</fileDirectory>
<lineNumber>32</lineNumber>
<contextFuncName>paramT</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/mnt/hgfs/Thesis/HoneyBee</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>
<first>src/honeybee.c</first>
<second>lineIntersectsPlane</second>
</first>
<second>71</second>
</item>
<item>
<first>
<first>src/honeybee.c</first>
<second>paramT</second>
</first>
<second>32</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>91</item>
<item>92</item>
</oprand_edges>
<opcode>fsub</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>8.58</m_delay>
<m_topoIndex>17</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_30">
<Value>
<Obj>
<type>0</type>
<id>30</id>
<name>tmp_20_i</name>
<fileName>src/honeybee.c</fileName>
<fileDirectory>/mnt/hgfs/Thesis/HoneyBee</fileDirectory>
<lineNumber>32</lineNumber>
<contextFuncName>paramT</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/mnt/hgfs/Thesis/HoneyBee</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>
<first>src/honeybee.c</first>
<second>lineIntersectsPlane</second>
</first>
<second>71</second>
</item>
<item>
<first>
<first>src/honeybee.c</first>
<second>paramT</second>
</first>
<second>32</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>93</item>
<item>94</item>
</oprand_edges>
<opcode>fmul</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>8.43</m_delay>
<m_topoIndex>21</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_31">
<Value>
<Obj>
<type>0</type>
<id>31</id>
<name>tmp_21_i</name>
<fileName>src/honeybee.c</fileName>
<fileDirectory>/mnt/hgfs/Thesis/HoneyBee</fileDirectory>
<lineNumber>32</lineNumber>
<contextFuncName>paramT</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/mnt/hgfs/Thesis/HoneyBee</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>
<first>src/honeybee.c</first>
<second>lineIntersectsPlane</second>
</first>
<second>71</second>
</item>
<item>
<first>
<first>src/honeybee.c</first>
<second>paramT</second>
</first>
<second>32</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>95</item>
<item>96</item>
</oprand_edges>
<opcode>fsub</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>8.58</m_delay>
<m_topoIndex>18</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_32">
<Value>
<Obj>
<type>0</type>
<id>32</id>
<name>tmp_22_i</name>
<fileName>src/honeybee.c</fileName>
<fileDirectory>/mnt/hgfs/Thesis/HoneyBee</fileDirectory>
<lineNumber>32</lineNumber>
<contextFuncName>paramT</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/mnt/hgfs/Thesis/HoneyBee</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>
<first>src/honeybee.c</first>
<second>lineIntersectsPlane</second>
</first>
<second>71</second>
</item>
<item>
<first>
<first>src/honeybee.c</first>
<second>paramT</second>
</first>
<second>32</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>97</item>
<item>98</item>
</oprand_edges>
<opcode>fmul</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>8.43</m_delay>
<m_topoIndex>22</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_33">
<Value>
<Obj>
<type>0</type>
<id>33</id>
<name>tmp_23_i</name>
<fileName>src/honeybee.c</fileName>
<fileDirectory>/mnt/hgfs/Thesis/HoneyBee</fileDirectory>
<lineNumber>32</lineNumber>
<contextFuncName>paramT</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/mnt/hgfs/Thesis/HoneyBee</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>
<first>src/honeybee.c</first>
<second>lineIntersectsPlane</second>
</first>
<second>71</second>
</item>
<item>
<first>
<first>src/honeybee.c</first>
<second>paramT</second>
</first>
<second>32</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>99</item>
<item>100</item>
</oprand_edges>
<opcode>fadd</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>8.58</m_delay>
<m_topoIndex>25</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_34">
<Value>
<Obj>
<type>0</type>
<id>34</id>
<name>tmp_24_i</name>
<fileName>src/honeybee.c</fileName>
<fileDirectory>/mnt/hgfs/Thesis/HoneyBee</fileDirectory>
<lineNumber>32</lineNumber>
<contextFuncName>paramT</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/mnt/hgfs/Thesis/HoneyBee</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>
<first>src/honeybee.c</first>
<second>lineIntersectsPlane</second>
</first>
<second>71</second>
</item>
<item>
<first>
<first>src/honeybee.c</first>
<second>paramT</second>
</first>
<second>32</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>101</item>
<item>102</item>
</oprand_edges>
<opcode>fsub</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>8.58</m_delay>
<m_topoIndex>26</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_35">
<Value>
<Obj>
<type>0</type>
<id>35</id>
<name>tmp_26_i</name>
<fileName>src/honeybee.c</fileName>
<fileDirectory>/mnt/hgfs/Thesis/HoneyBee</fileDirectory>
<lineNumber>32</lineNumber>
<contextFuncName>paramT</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/mnt/hgfs/Thesis/HoneyBee</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>
<first>src/honeybee.c</first>
<second>lineIntersectsPlane</second>
</first>
<second>71</second>
</item>
<item>
<first>
<first>src/honeybee.c</first>
<second>paramT</second>
</first>
<second>32</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>103</item>
<item>104</item>
</oprand_edges>
<opcode>fadd</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>8.58</m_delay>
<m_topoIndex>28</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_36">
<Value>
<Obj>
<type>0</type>
<id>36</id>
<name>T</name>
<fileName>src/honeybee.c</fileName>
<fileDirectory>/mnt/hgfs/Thesis/HoneyBee</fileDirectory>
<lineNumber>32</lineNumber>
<contextFuncName>paramT</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/mnt/hgfs/Thesis/HoneyBee</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>
<first>src/honeybee.c</first>
<second>lineIntersectsPlane</second>
</first>
<second>71</second>
</item>
<item>
<first>
<first>src/honeybee.c</first>
<second>paramT</second>
</first>
<second>32</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>T</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>105</item>
<item>106</item>
</oprand_edges>
<opcode>fdiv</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>7.19</m_delay>
<m_topoIndex>29</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_37">
<Value>
<Obj>
<type>0</type>
<id>37</id>
<name>tmp_i2</name>
<fileName>src/honeybee.c</fileName>
<fileDirectory>/mnt/hgfs/Thesis/HoneyBee</fileDirectory>
<lineNumber>38</lineNumber>
<contextFuncName>pointOfIntersection</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/mnt/hgfs/Thesis/HoneyBee</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>
<first>src/honeybee.c</first>
<second>lineIntersectsPlane</second>
</first>
<second>74</second>
</item>
<item>
<first>
<first>src/honeybee.c</first>
<second>pointOfIntersection</second>
</first>
<second>38</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>107</item>
<item>108</item>
</oprand_edges>
<opcode>fmul</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>8.43</m_delay>
<m_topoIndex>30</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_38">
<Value>
<Obj>
<type>0</type>
<id>38</id>
<name>agg_result_x_write_a</name>
<fileName>src/honeybee.c</fileName>
<fileDirectory>/mnt/hgfs/Thesis/HoneyBee</fileDirectory>
<lineNumber>38</lineNumber>
<contextFuncName>pointOfIntersection</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/mnt/hgfs/Thesis/HoneyBee</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>
<first>src/honeybee.c</first>
<second>lineIntersectsPlane</second>
</first>
<second>74</second>
</item>
<item>
<first>
<first>src/honeybee.c</first>
<second>pointOfIntersection</second>
</first>
<second>38</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>agg.result.x</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>109</item>
<item>110</item>
</oprand_edges>
<opcode>fadd</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>8.58</m_delay>
<m_topoIndex>33</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_39">
<Value>
<Obj>
<type>0</type>
<id>39</id>
<name>tmp_12_i</name>
<fileName>src/honeybee.c</fileName>
<fileDirectory>/mnt/hgfs/Thesis/HoneyBee</fileDirectory>
<lineNumber>38</lineNumber>
<contextFuncName>pointOfIntersection</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/mnt/hgfs/Thesis/HoneyBee</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>
<first>src/honeybee.c</first>
<second>lineIntersectsPlane</second>
</first>
<second>74</second>
</item>
<item>
<first>
<first>src/honeybee.c</first>
<second>pointOfIntersection</second>
</first>
<second>38</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>111</item>
<item>112</item>
</oprand_edges>
<opcode>fmul</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>8.43</m_delay>
<m_topoIndex>31</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_40">
<Value>
<Obj>
<type>0</type>
<id>40</id>
<name>agg_result_y_write_a</name>
<fileName>src/honeybee.c</fileName>
<fileDirectory>/mnt/hgfs/Thesis/HoneyBee</fileDirectory>
<lineNumber>38</lineNumber>
<contextFuncName>pointOfIntersection</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/mnt/hgfs/Thesis/HoneyBee</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>
<first>src/honeybee.c</first>
<second>lineIntersectsPlane</second>
</first>
<second>74</second>
</item>
<item>
<first>
<first>src/honeybee.c</first>
<second>pointOfIntersection</second>
</first>
<second>38</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>agg.result.y</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>113</item>
<item>114</item>
</oprand_edges>
<opcode>fadd</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>8.58</m_delay>
<m_topoIndex>34</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_41">
<Value>
<Obj>
<type>0</type>
<id>41</id>
<name>tmp_14_i</name>
<fileName>src/honeybee.c</fileName>
<fileDirectory>/mnt/hgfs/Thesis/HoneyBee</fileDirectory>
<lineNumber>38</lineNumber>
<contextFuncName>pointOfIntersection</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/mnt/hgfs/Thesis/HoneyBee</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>
<first>src/honeybee.c</first>
<second>lineIntersectsPlane</second>
</first>
<second>74</second>
</item>
<item>
<first>
<first>src/honeybee.c</first>
<second>pointOfIntersection</second>
</first>
<second>38</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>115</item>
<item>116</item>
</oprand_edges>
<opcode>fmul</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>8.43</m_delay>
<m_topoIndex>32</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_42">
<Value>
<Obj>
<type>0</type>
<id>42</id>
<name>agg_result_z_write_a</name>
<fileName>src/honeybee.c</fileName>
<fileDirectory>/mnt/hgfs/Thesis/HoneyBee</fileDirectory>
<lineNumber>38</lineNumber>
<contextFuncName>pointOfIntersection</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/mnt/hgfs/Thesis/HoneyBee</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>
<first>src/honeybee.c</first>
<second>lineIntersectsPlane</second>
</first>
<second>74</second>
</item>
<item>
<first>
<first>src/honeybee.c</first>
<second>pointOfIntersection</second>
</first>
<second>38</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>agg.result.z</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>117</item>
<item>118</item>
</oprand_edges>
<opcode>fadd</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>8.58</m_delay>
<m_topoIndex>35</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_43">
<Value>
<Obj>
<type>0</type>
<id>43</id>
<name>mrv_i</name>
<fileName>src/honeybee.c</fileName>
<fileDirectory>/mnt/hgfs/Thesis/HoneyBee</fileDirectory>
<lineNumber>38</lineNumber>
<contextFuncName>pointOfIntersection</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/mnt/hgfs/Thesis/HoneyBee</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>
<first>src/honeybee.c</first>
<second>lineIntersectsPlane</second>
</first>
<second>74</second>
</item>
<item>
<first>
<first>src/honeybee.c</first>
<second>pointOfIntersection</second>
</first>
<second>38</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>96</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>120</item>
<item>121</item>
</oprand_edges>
<opcode>insertvalue</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>36</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_44">
<Value>
<Obj>
<type>0</type>
<id>44</id>
<name>mrv_1_i</name>
<fileName>src/honeybee.c</fileName>
<fileDirectory>/mnt/hgfs/Thesis/HoneyBee</fileDirectory>
<lineNumber>38</lineNumber>
<contextFuncName>pointOfIntersection</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/mnt/hgfs/Thesis/HoneyBee</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>
<first>src/honeybee.c</first>
<second>lineIntersectsPlane</second>
</first>
<second>74</second>
</item>
<item>
<first>
<first>src/honeybee.c</first>
<second>pointOfIntersection</second>
</first>
<second>38</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>96</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>122</item>
<item>123</item>
</oprand_edges>
<opcode>insertvalue</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>37</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_45">
<Value>
<Obj>
<type>0</type>
<id>45</id>
<name>mrv_2_i</name>
<fileName>src/honeybee.c</fileName>
<fileDirectory>/mnt/hgfs/Thesis/HoneyBee</fileDirectory>
<lineNumber>38</lineNumber>
<contextFuncName>pointOfIntersection</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/mnt/hgfs/Thesis/HoneyBee</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>
<first>src/honeybee.c</first>
<second>lineIntersectsPlane</second>
</first>
<second>74</second>
</item>
<item>
<first>
<first>src/honeybee.c</first>
<second>pointOfIntersection</second>
</first>
<second>38</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>96</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>124</item>
<item>125</item>
</oprand_edges>
<opcode>insertvalue</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>38</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_46">
<Value>
<Obj>
<type>0</type>
<id>46</id>
<name>_ln76</name>
<fileName>src/honeybee.c</fileName>
<fileDirectory>/mnt/hgfs/Thesis/HoneyBee</fileDirectory>
<lineNumber>76</lineNumber>
<contextFuncName>lineIntersectsPlane</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/mnt/hgfs/Thesis/HoneyBee</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>src/honeybee.c</first>
<second>lineIntersectsPlane</second>
</first>
<second>76</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>126</item>
</oprand_edges>
<opcode>ret</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>39</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
</nodes>
<consts class_id="15" tracking_level="0" version="0">
<count>3</count>
<item_version>0</item_version>
<item class_id="16" tracking_level="1" version="0" object_id="_47">
<Value>
<Obj>
<type>2</type>
<id>66</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<const_type>1</const_type>
<content>0</content>
</item>
<item class_id_reference="16" object_id="_48">
<Value>
<Obj>
<type>2</type>
<id>70</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<const_type>0</const_type>
<content>2147483648</content>
</item>
<item class_id_reference="16" object_id="_49">
<Value>
<Obj>
<type>2</type>
<id>119</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>96</bitwidth>
</Value>
<const_type>5</const_type>
<content><undef></content>
</item>
</consts>
<blocks class_id="17" tracking_level="0" version="0">
<count>1</count>
<item_version>0</item_version>
<item class_id="18" tracking_level="1" version="0" object_id="_50">
<Obj>
<type>3</type>
<id>47</id>
<name>lineIntersectsPlane</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<node_objs>
<count>39</count>
<item_version>0</item_version>
<item>8</item>
<item>9</item>
<item>10</item>
<item>11</item>
<item>12</item>
<item>13</item>
<item>14</item>
<item>15</item>
<item>16</item>
<item>17</item>
<item>18</item>
<item>19</item>
<item>20</item>
<item>21</item>
<item>22</item>
<item>23</item>
<item>24</item>
<item>25</item>
<item>26</item>
<item>27</item>
<item>28</item>
<item>29</item>
<item>30</item>
<item>31</item>
<item>32</item>
<item>33</item>
<item>34</item>
<item>35</item>
<item>36</item>
<item>37</item>
<item>38</item>
<item>39</item>
<item>40</item>
<item>41</item>
<item>42</item>
<item>43</item>
<item>44</item>
<item>45</item>
<item>46</item>
</node_objs>
</item>
</blocks>
<edges class_id="19" tracking_level="0" version="0">
<count>68</count>
<item_version>0</item_version>
<item class_id="20" tracking_level="1" version="0" object_id="_51">
<id>50</id>
<edge_type>1</edge_type>
<source_obj>7</source_obj>
<sink_obj>8</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_52">
<id>52</id>
<edge_type>1</edge_type>
<source_obj>6</source_obj>
<sink_obj>9</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_53">
<id>54</id>
<edge_type>1</edge_type>
<source_obj>5</source_obj>
<sink_obj>10</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_54">
<id>56</id>
<edge_type>1</edge_type>
<source_obj>4</source_obj>
<sink_obj>11</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_55">
<id>58</id>
<edge_type>1</edge_type>
<source_obj>3</source_obj>
<sink_obj>12</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_56">
<id>60</id>
<edge_type>1</edge_type>
<source_obj>2</source_obj>
<sink_obj>13</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_57">
<id>62</id>
<edge_type>1</edge_type>
<source_obj>1</source_obj>
<sink_obj>14</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_58">
<id>63</id>
<edge_type>1</edge_type>
<source_obj>8</source_obj>
<sink_obj>15</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_59">
<id>64</id>
<edge_type>1</edge_type>
<source_obj>8</source_obj>
<sink_obj>15</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_60">
<id>65</id>
<edge_type>1</edge_type>
<source_obj>15</source_obj>
<sink_obj>16</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_61">
<id>67</id>
<edge_type>1</edge_type>
<source_obj>66</source_obj>
<sink_obj>16</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_62">
<id>68</id>
<edge_type>1</edge_type>
<source_obj>15</source_obj>
<sink_obj>17</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_63">
<id>69</id>
<edge_type>1</edge_type>
<source_obj>17</source_obj>
<sink_obj>18</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_64">
<id>71</id>
<edge_type>1</edge_type>
<source_obj>70</source_obj>
<sink_obj>18</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_65">
<id>72</id>
<edge_type>1</edge_type>
<source_obj>18</source_obj>
<sink_obj>19</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_66">
<id>73</id>
<edge_type>1</edge_type>
<source_obj>16</source_obj>
<sink_obj>20</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_67">
<id>74</id>
<edge_type>1</edge_type>
<source_obj>19</source_obj>
<sink_obj>20</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_68">
<id>75</id>
<edge_type>1</edge_type>
<source_obj>20</source_obj>
<sink_obj>21</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_69">
<id>76</id>
<edge_type>1</edge_type>
<source_obj>66</source_obj>
<sink_obj>21</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_70">
<id>77</id>
<edge_type>1</edge_type>
<source_obj>21</source_obj>
<sink_obj>22</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_71">
<id>78</id>
<edge_type>1</edge_type>
<source_obj>21</source_obj>
<sink_obj>22</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_72">
<id>79</id>
<edge_type>1</edge_type>
<source_obj>22</source_obj>
<sink_obj>23</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_73">
<id>80</id>
<edge_type>1</edge_type>
<source_obj>8</source_obj>
<sink_obj>23</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_74">
<id>81</id>
<edge_type>1</edge_type>
<source_obj>20</source_obj>
<sink_obj>24</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_75">
<id>82</id>
<edge_type>1</edge_type>
<source_obj>14</source_obj>
<sink_obj>24</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_76">
<id>83</id>
<edge_type>1</edge_type>
<source_obj>20</source_obj>
<sink_obj>25</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_77">
<id>84</id>
<edge_type>1</edge_type>
<source_obj>13</source_obj>
<sink_obj>25</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_78">
<id>85</id>
<edge_type>1</edge_type>
<source_obj>24</source_obj>
<sink_obj>26</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_79">
<id>86</id>
<edge_type>1</edge_type>
<source_obj>25</source_obj>
<sink_obj>26</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_80">
<id>87</id>
<edge_type>1</edge_type>
<source_obj>26</source_obj>
<sink_obj>27</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_81">
<id>88</id>
<edge_type>1</edge_type>
<source_obj>12</source_obj>
<sink_obj>27</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_82">
<id>89</id>
<edge_type>1</edge_type>
<source_obj>23</source_obj>
<sink_obj>28</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_83">
<id>90</id>
<edge_type>1</edge_type>
<source_obj>27</source_obj>
<sink_obj>28</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_84">
<id>91</id>
<edge_type>1</edge_type>
<source_obj>11</source_obj>
<sink_obj>29</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_85">
<id>92</id>
<edge_type>1</edge_type>
<source_obj>14</source_obj>
<sink_obj>29</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_86">
<id>93</id>
<edge_type>1</edge_type>
<source_obj>29</source_obj>
<sink_obj>30</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_87">
<id>94</id>
<edge_type>1</edge_type>
<source_obj>20</source_obj>
<sink_obj>30</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_88">
<id>95</id>
<edge_type>1</edge_type>
<source_obj>10</source_obj>
<sink_obj>31</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_89">
<id>96</id>
<edge_type>1</edge_type>
<source_obj>13</source_obj>
<sink_obj>31</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_90">
<id>97</id>
<edge_type>1</edge_type>
<source_obj>31</source_obj>
<sink_obj>32</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_91">
<id>98</id>
<edge_type>1</edge_type>
<source_obj>20</source_obj>
<sink_obj>32</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_92">
<id>99</id>
<edge_type>1</edge_type>
<source_obj>30</source_obj>
<sink_obj>33</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_93">
<id>100</id>
<edge_type>1</edge_type>
<source_obj>32</source_obj>
<sink_obj>33</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_94">
<id>101</id>
<edge_type>1</edge_type>
<source_obj>9</source_obj>
<sink_obj>34</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_95">
<id>102</id>
<edge_type>1</edge_type>
<source_obj>12</source_obj>
<sink_obj>34</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_96">
<id>103</id>
<edge_type>1</edge_type>
<source_obj>33</source_obj>
<sink_obj>35</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_97">
<id>104</id>
<edge_type>1</edge_type>
<source_obj>34</source_obj>
<sink_obj>35</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_98">
<id>105</id>
<edge_type>1</edge_type>
<source_obj>28</source_obj>
<sink_obj>36</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_99">
<id>106</id>
<edge_type>1</edge_type>
<source_obj>35</source_obj>
<sink_obj>36</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_100">
<id>107</id>
<edge_type>1</edge_type>
<source_obj>29</source_obj>
<sink_obj>37</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_101">
<id>108</id>
<edge_type>1</edge_type>
<source_obj>36</source_obj>
<sink_obj>37</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_102">
<id>109</id>
<edge_type>1</edge_type>
<source_obj>37</source_obj>
<sink_obj>38</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_103">
<id>110</id>
<edge_type>1</edge_type>
<source_obj>14</source_obj>
<sink_obj>38</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_104">
<id>111</id>
<edge_type>1</edge_type>
<source_obj>31</source_obj>
<sink_obj>39</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_105">
<id>112</id>
<edge_type>1</edge_type>
<source_obj>36</source_obj>
<sink_obj>39</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_106">
<id>113</id>
<edge_type>1</edge_type>
<source_obj>39</source_obj>
<sink_obj>40</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_107">
<id>114</id>
<edge_type>1</edge_type>
<source_obj>13</source_obj>
<sink_obj>40</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_108">
<id>115</id>
<edge_type>1</edge_type>
<source_obj>34</source_obj>
<sink_obj>41</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_109">
<id>116</id>
<edge_type>1</edge_type>
<source_obj>36</source_obj>
<sink_obj>41</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_110">
<id>117</id>
<edge_type>1</edge_type>
<source_obj>41</source_obj>
<sink_obj>42</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_111">
<id>118</id>
<edge_type>1</edge_type>
<source_obj>12</source_obj>
<sink_obj>42</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_112">
<id>120</id>
<edge_type>1</edge_type>
<source_obj>119</source_obj>
<sink_obj>43</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_113">
<id>121</id>
<edge_type>1</edge_type>
<source_obj>38</source_obj>
<sink_obj>43</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_114">
<id>122</id>
<edge_type>1</edge_type>
<source_obj>43</source_obj>
<sink_obj>44</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_115">
<id>123</id>
<edge_type>1</edge_type>
<source_obj>40</source_obj>
<sink_obj>44</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_116">
<id>124</id>
<edge_type>1</edge_type>
<source_obj>44</source_obj>
<sink_obj>45</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_117">
<id>125</id>
<edge_type>1</edge_type>
<source_obj>42</source_obj>
<sink_obj>45</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_118">
<id>126</id>
<edge_type>1</edge_type>
<source_obj>45</source_obj>
<sink_obj>46</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
</edges>
</cdfg>
<cdfg_regions class_id="21" tracking_level="0" version="0">
<count>1</count>
<item_version>0</item_version>
<item class_id="22" tracking_level="1" version="0" object_id="_119">
<mId>1</mId>
<mTag>lineIntersectsPlane</mTag>
<mType>0</mType>
<sub_regions>
<count>0</count>
<item_version>0</item_version>
</sub_regions>
<basic_blocks>
<count>1</count>
<item_version>0</item_version>
<item>47</item>
</basic_blocks>
<mII>1</mII>
<mDepth>45</mDepth>
<mMinTripCount>-1</mMinTripCount>
<mMaxTripCount>-1</mMaxTripCount>
<mMinLatency>44</mMinLatency>
<mMaxLatency>44</mMaxLatency>
<mIsDfPipe>0</mIsDfPipe>
<mDfPipe class_id="-1"></mDfPipe>
</item>
</cdfg_regions>
<fsm class_id="-1"></fsm>
<res class_id="-1"></res>
<node_label_latency class_id="26" tracking_level="0" version="0">
<count>39</count>
<item_version>0</item_version>
<item class_id="27" tracking_level="0" version="0">
<first>8</first>
<second class_id="28" tracking_level="0" version="0">
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>9</first>
<second>
<first>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>
<item>
<first>14</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>15</first>
<second>
<first>0</first>
<second>3</second>
</second>
</item>
<item>
<first>16</first>
<second>
<first>4</first>
<second>2</second>
</second>
</item>
<item>
<first>17</first>
<second>
<first>6</first>
<second>0</second>
</second>
</item>
<item>
<first>18</first>
<second>
<first>6</first>
<second>0</second>
</second>
</item>
<item>
<first>19</first>
<second>
<first>7</first>
<second>0</second>
</second>
</item>
<item>
<first>20</first>
<second>
<first>7</first>
<second>3</second>
</second>
</item>
<item>
<first>21</first>
<second>
<first>11</first>
<second>2</second>
</second>
</item>
<item>
<first>22</first>
<second>
<first>14</first>
<second>3</second>
</second>
</item>
<item>
<first>23</first>
<second>
<first>18</first>
<second>3</second>
</second>
</item>
<item>
<first>24</first>
<second>
<first>11</first>
<second>2</second>
</second>
</item>
<item>
<first>25</first>
<second>
<first>11</first>
<second>2</second>
</second>
</item>
<item>
<first>26</first>
<second>
<first>14</first>
<second>3</second>
</second>
</item>
<item>
<first>27</first>
<second>
<first>18</first>
<second>3</second>
</second>
</item>
<item>
<first>28</first>
<second>
<first>22</first>
<second>3</second>
</second>
</item>
<item>
<first>29</first>
<second>
<first>11</first>
<second>3</second>
</second>
</item>
<item>
<first>30</first>
<second>
<first>15</first>
<second>2</second>
</second>
</item>
<item>
<first>31</first>
<second>
<first>11</first>
<second>3</second>
</second>
</item>
<item>
<first>32</first>
<second>
<first>15</first>
<second>2</second>
</second>
</item>
<item>
<first>33</first>
<second>
<first>18</first>
<second>3</second>
</second>
</item>
<item>
<first>34</first>
<second>
<first>18</first>
<second>3</second>
</second>
</item>
<item>
<first>35</first>
<second>
<first>22</first>
<second>3</second>
</second>
</item>
<item>
<first>36</first>
<second>
<first>26</first>
<second>11</second>
</second>
</item>
<item>
<first>37</first>
<second>
<first>38</first>
<second>2</second>
</second>
</item>
<item>
<first>38</first>
<second>
<first>41</first>
<second>3</second>
</second>
</item>
<item>
<first>39</first>
<second>
<first>38</first>
<second>2</second>
</second>
</item>
<item>
<first>40</first>
<second>
<first>41</first>
<second>3</second>
</second>
</item>
<item>
<first>41</first>
<second>
<first>38</first>
<second>2</second>
</second>
</item>
<item>
<first>42</first>
<second>
<first>41</first>
<second>3</second>
</second>
</item>
<item>
<first>43</first>
<second>
<first>44</first>
<second>0</second>
</second>
</item>
<item>
<first>44</first>
<second>
<first>44</first>
<second>0</second>
</second>
</item>
<item>
<first>45</first>
<second>
<first>44</first>
<second>0</second>
</second>
</item>
<item>
<first>46</first>
<second>
<first>44</first>
<second>0</second>
</second>
</item>
</node_label_latency>
<bblk_ent_exit class_id="29" tracking_level="0" version="0">
<count>1</count>
<item_version>0</item_version>
<item class_id="30" tracking_level="0" version="0">
<first>47</first>
<second class_id="31" tracking_level="0" version="0">
<first>0</first>
<second>44</second>
</second>
</item>
</bblk_ent_exit>
<regions class_id="32" tracking_level="0" version="0">
<count>1</count>
<item_version>0</item_version>
<item class_id="33" tracking_level="1" version="0" object_id="_120">
<region_name>lineIntersectsPlane</region_name>
<basic_blocks>
<count>1</count>
<item_version>0</item_version>
<item>47</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>45</pipe_depth>
</item>
</regions>
<dp_fu_nodes class_id="34" tracking_level="0" version="0">
<count>0</count>
<item_version>0</item_version>
</dp_fu_nodes>
<dp_fu_nodes_expression class_id="35" tracking_level="0" version="0">
<count>0</count>
<item_version>0</item_version>
</dp_fu_nodes_expression>
<dp_fu_nodes_module>
<count>0</count>
<item_version>0</item_version>
</dp_fu_nodes_module>
<dp_fu_nodes_io>
<count>0</count>
<item_version>0</item_version>
</dp_fu_nodes_io>
<return_ports>
<count>0</count>
<item_version>0</item_version>
</return_ports>
<dp_mem_port_nodes class_id="36" tracking_level="0" version="0">
<count>0</count>
<item_version>0</item_version>
</dp_mem_port_nodes>
<dp_reg_nodes>
<count>0</count>
<item_version>0</item_version>
</dp_reg_nodes>
<dp_regname_nodes>
<count>0</count>
<item_version>0</item_version>
</dp_regname_nodes>
<dp_reg_phi>
<count>0</count>
<item_version>0</item_version>
</dp_reg_phi>
<dp_regname_phi>
<count>0</count>
<item_version>0</item_version>
</dp_regname_phi>
<dp_port_io_nodes class_id="37" tracking_level="0" version="0">
<count>0</count>
<item_version>0</item_version>
</dp_port_io_nodes>
<port2core class_id="38" tracking_level="0" version="0">
<count>0</count>
<item_version>0</item_version>
</port2core>
<node2core>
<count>0</count>
<item_version>0</item_version>
</node2core>
</syndb>
</boost_serialization>
| 27.225739 | 70 | 0.590311 |
22953aa09978aa1bca6f592a0caffcb284f1db5e | 930 | adb | Ada | gdb/testsuite/gdb.ada/funcall_param/pck.adb | greyblue9/binutils-gdb | 05377632b124fe7600eea7f4ee0e9a35d1b0cbdc | [
"BSD-3-Clause"
] | 1 | 2020-10-14T03:24:35.000Z | 2020-10-14T03:24:35.000Z | gdb/testsuite/gdb.ada/funcall_param/pck.adb | greyblue9/binutils-gdb | 05377632b124fe7600eea7f4ee0e9a35d1b0cbdc | [
"BSD-3-Clause"
] | null | null | null | gdb/testsuite/gdb.ada/funcall_param/pck.adb | greyblue9/binutils-gdb | 05377632b124fe7600eea7f4ee0e9a35d1b0cbdc | [
"BSD-3-Clause"
] | null | null | null | -- Copyright 2008-2021 Free Software Foundation, Inc.
--
-- This program is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation; either version 3 of the License, or
-- (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program. If not, see <http://www.gnu.org/licenses/>.
package body Pck is
function Ident (P : Parameter) return Parameter is
begin
return P;
end Ident;
procedure Do_Nothing (P : in out Parameter) is
begin
null;
end Do_Nothing;
end Pck;
| 32.068966 | 73 | 0.71828 |
2218fc5ac9adb3f81ffa0c51898b3cf502dfe84d | 112 | adb | Ada | tests/syntax_examples/src/basic_declaration-subprogram_body_stub_name.adb | TNO/Dependency_Graph_Extractor-Ada | cfcc9132cf181e4db5139c14150f221efa69a6d6 | [
"BSD-3-Clause"
] | 1 | 2022-03-08T13:00:47.000Z | 2022-03-08T13:00:47.000Z | src/tools/Dependency_Graph_Extractor/tests/Syntax_Examples/src/basic_declaration-subprogram_body_stub_name.adb | selroc/Renaissance-Ada | 39230b34aced4a9d83831be346ca103136c53715 | [
"BSD-3-Clause"
] | null | null | null | src/tools/Dependency_Graph_Extractor/tests/Syntax_Examples/src/basic_declaration-subprogram_body_stub_name.adb | selroc/Renaissance-Ada | 39230b34aced4a9d83831be346ca103136c53715 | [
"BSD-3-Clause"
] | null | null | null | separate(Basic_Declaration)
procedure Subprogram_Body_Stub_Name is
begin
null;
end Subprogram_Body_Stub_Name;
| 18.666667 | 38 | 0.875 |
c748735b9c885d68a2c0ce943ba8f7460ff7c047 | 2,554 | ads | Ada | src/formatted_output-integer_output.ads | VitalijBondarenko/Formatted_Output_NG | 91fbdba8b2c720d9769a52f2b2152c14236adaa0 | [
"MIT"
] | null | null | null | src/formatted_output-integer_output.ads | VitalijBondarenko/Formatted_Output_NG | 91fbdba8b2c720d9769a52f2b2152c14236adaa0 | [
"MIT"
] | null | null | null | src/formatted_output-integer_output.ads | VitalijBondarenko/Formatted_Output_NG | 91fbdba8b2c720d9769a52f2b2152c14236adaa0 | [
"MIT"
] | null | null | null | ------------------------------------------------------------------------------
-- --
-- Copyright (c) 2016-2021 Vitalii Bondarenko <[email protected]> --
-- --
------------------------------------------------------------------------------
-- --
-- The MIT License (MIT) --
-- --
-- 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. --
------------------------------------------------------------------------------
generic
type Item_Type is range <>;
package Formatted_Output.Integer_Output is
function "&" (Fmt : Format_Type; Value : Item_Type) return Format_Type;
-- Replaces leftmost formatting sequence in Fmt with formatted Value image,
-- then returns Fmt. Raises exception Format_Error when invalid formatting
-- sequence is found or no formatting sequence found at all
end Formatted_Output.Integer_Output;
| 63.85 | 79 | 0.476507 |
572bd2f184f40838224b991ec746f09a26af33d9 | 16,325 | adb | Ada | tools/xml2ayacc/encoding/auto/encodings-maps-iso_8859_16.adb | faelys/gela-asis | 48a3bee90eda9f0c9d958b4e3c80a5a9b1c65253 | [
"BSD-3-Clause"
] | 4 | 2016-02-05T15:51:56.000Z | 2022-03-25T20:38:32.000Z | tools/xml2ayacc/encoding/auto/encodings-maps-iso_8859_16.adb | faelys/gela-asis | 48a3bee90eda9f0c9d958b4e3c80a5a9b1c65253 | [
"BSD-3-Clause"
] | null | null | null | tools/xml2ayacc/encoding/auto/encodings-maps-iso_8859_16.adb | faelys/gela-asis | 48a3bee90eda9f0c9d958b4e3c80a5a9b1c65253 | [
"BSD-3-Clause"
] | null | null | null | -- Auto generated file. Don't edit
-- Read copyright and license at the end of this file
package body Encodings.Maps.ISO_8859_16 is
Forward : Forward_Map (Character'Val(16#A1#) .. Character'Last) :=
(Wide_Character'Val( 16#104#),
Wide_Character'Val( 16#105#),
Wide_Character'Val( 16#141#),
Wide_Character'Val(16#20AC#),
Wide_Character'Val(16#201E#),
Wide_Character'Val( 16#160#),
Wide_Character'Val( 16#A7#),
Wide_Character'Val( 16#161#),
Wide_Character'Val( 16#A9#),
Wide_Character'Val( 16#218#),
Wide_Character'Val( 16#AB#),
Wide_Character'Val( 16#179#),
Wide_Character'Val( 16#AD#),
Wide_Character'Val( 16#17A#),
Wide_Character'Val( 16#17B#),
Wide_Character'Val( 16#B0#),
Wide_Character'Val( 16#B1#),
Wide_Character'Val( 16#10C#),
Wide_Character'Val( 16#142#),
Wide_Character'Val( 16#17D#),
Wide_Character'Val(16#201D#),
Wide_Character'Val( 16#B6#),
Wide_Character'Val( 16#B7#),
Wide_Character'Val( 16#17E#),
Wide_Character'Val( 16#10D#),
Wide_Character'Val( 16#219#),
Wide_Character'Val( 16#BB#),
Wide_Character'Val( 16#152#),
Wide_Character'Val( 16#153#),
Wide_Character'Val( 16#178#),
Wide_Character'Val( 16#17C#),
Wide_Character'Val( 16#C0#),
Wide_Character'Val( 16#C1#),
Wide_Character'Val( 16#C2#),
Wide_Character'Val( 16#102#),
Wide_Character'Val( 16#C4#),
Wide_Character'Val( 16#106#),
Wide_Character'Val( 16#C6#),
Wide_Character'Val( 16#C7#),
Wide_Character'Val( 16#C8#),
Wide_Character'Val( 16#C9#),
Wide_Character'Val( 16#CA#),
Wide_Character'Val( 16#CB#),
Wide_Character'Val( 16#CC#),
Wide_Character'Val( 16#CD#),
Wide_Character'Val( 16#CE#),
Wide_Character'Val( 16#CF#),
Wide_Character'Val( 16#110#),
Wide_Character'Val( 16#143#),
Wide_Character'Val( 16#D2#),
Wide_Character'Val( 16#D3#),
Wide_Character'Val( 16#D4#),
Wide_Character'Val( 16#150#),
Wide_Character'Val( 16#D6#),
Wide_Character'Val( 16#15A#),
Wide_Character'Val( 16#170#),
Wide_Character'Val( 16#D9#),
Wide_Character'Val( 16#DA#),
Wide_Character'Val( 16#DB#),
Wide_Character'Val( 16#DC#),
Wide_Character'Val( 16#118#),
Wide_Character'Val( 16#21A#),
Wide_Character'Val( 16#DF#),
Wide_Character'Val( 16#E0#),
Wide_Character'Val( 16#E1#),
Wide_Character'Val( 16#E2#),
Wide_Character'Val( 16#103#),
Wide_Character'Val( 16#E4#),
Wide_Character'Val( 16#107#),
Wide_Character'Val( 16#E6#),
Wide_Character'Val( 16#E7#),
Wide_Character'Val( 16#E8#),
Wide_Character'Val( 16#E9#),
Wide_Character'Val( 16#EA#),
Wide_Character'Val( 16#EB#),
Wide_Character'Val( 16#EC#),
Wide_Character'Val( 16#ED#),
Wide_Character'Val( 16#EE#),
Wide_Character'Val( 16#EF#),
Wide_Character'Val( 16#111#),
Wide_Character'Val( 16#144#),
Wide_Character'Val( 16#F2#),
Wide_Character'Val( 16#F3#),
Wide_Character'Val( 16#F4#),
Wide_Character'Val( 16#151#),
Wide_Character'Val( 16#F6#),
Wide_Character'Val( 16#15B#),
Wide_Character'Val( 16#171#),
Wide_Character'Val( 16#F9#),
Wide_Character'Val( 16#FA#),
Wide_Character'Val( 16#FB#),
Wide_Character'Val( 16#FC#),
Wide_Character'Val( 16#119#),
Wide_Character'Val( 16#21B#),
Wide_Character'Val( 16#FF#));
Ranges : Maps.Wide_Ranges (1 .. 34) :=
((Wide_Character'Val( 16#0#),Wide_Character'Val( 16#A0#), 1),
(Wide_Character'Val( 16#A7#),Wide_Character'Val( 16#A7#), 162),
(Wide_Character'Val( 16#A9#),Wide_Character'Val( 16#A9#), 163),
(Wide_Character'Val( 16#AB#),Wide_Character'Val( 16#AB#), 164),
(Wide_Character'Val( 16#AD#),Wide_Character'Val( 16#AD#), 165),
(Wide_Character'Val( 16#B0#),Wide_Character'Val( 16#B1#), 166),
(Wide_Character'Val( 16#B6#),Wide_Character'Val( 16#B7#), 168),
(Wide_Character'Val( 16#BB#),Wide_Character'Val( 16#BB#), 170),
(Wide_Character'Val( 16#C0#),Wide_Character'Val( 16#C2#), 171),
(Wide_Character'Val( 16#C4#),Wide_Character'Val( 16#C4#), 174),
(Wide_Character'Val( 16#C6#),Wide_Character'Val( 16#CF#), 175),
(Wide_Character'Val( 16#D2#),Wide_Character'Val( 16#D4#), 185),
(Wide_Character'Val( 16#D6#),Wide_Character'Val( 16#D6#), 188),
(Wide_Character'Val( 16#D9#),Wide_Character'Val( 16#DC#), 189),
(Wide_Character'Val( 16#DF#),Wide_Character'Val( 16#E2#), 193),
(Wide_Character'Val( 16#E4#),Wide_Character'Val( 16#E4#), 197),
(Wide_Character'Val( 16#E6#),Wide_Character'Val( 16#EF#), 198),
(Wide_Character'Val( 16#F2#),Wide_Character'Val( 16#F4#), 208),
(Wide_Character'Val( 16#F6#),Wide_Character'Val( 16#F6#), 211),
(Wide_Character'Val( 16#F9#),Wide_Character'Val( 16#FC#), 212),
(Wide_Character'Val( 16#FF#),Wide_Character'Val( 16#FF#), 216),
(Wide_Character'Val( 16#102#),Wide_Character'Val( 16#107#), 217),
(Wide_Character'Val( 16#10C#),Wide_Character'Val( 16#10D#), 223),
(Wide_Character'Val( 16#110#),Wide_Character'Val( 16#111#), 225),
(Wide_Character'Val( 16#118#),Wide_Character'Val( 16#119#), 227),
(Wide_Character'Val( 16#141#),Wide_Character'Val( 16#144#), 229),
(Wide_Character'Val( 16#150#),Wide_Character'Val( 16#153#), 233),
(Wide_Character'Val( 16#15A#),Wide_Character'Val( 16#15B#), 237),
(Wide_Character'Val( 16#160#),Wide_Character'Val( 16#161#), 239),
(Wide_Character'Val( 16#170#),Wide_Character'Val( 16#171#), 241),
(Wide_Character'Val( 16#178#),Wide_Character'Val( 16#17E#), 243),
(Wide_Character'Val( 16#218#),Wide_Character'Val( 16#21B#), 250),
(Wide_Character'Val(16#201D#),Wide_Character'Val(16#201E#), 254),
(Wide_Character'Val(16#20AC#),Wide_Character'Val(16#20AC#), 256));
Backward : Maps.Backward_Map (1 .. 256) :=
(Character'Val( 16#0#),
Character'Val( 16#1#),
Character'Val( 16#2#),
Character'Val( 16#3#),
Character'Val( 16#4#),
Character'Val( 16#5#),
Character'Val( 16#6#),
Character'Val( 16#7#),
Character'Val( 16#8#),
Character'Val( 16#9#),
Character'Val( 16#A#),
Character'Val( 16#B#),
Character'Val( 16#C#),
Character'Val( 16#D#),
Character'Val( 16#E#),
Character'Val( 16#F#),
Character'Val(16#10#),
Character'Val(16#11#),
Character'Val(16#12#),
Character'Val(16#13#),
Character'Val(16#14#),
Character'Val(16#15#),
Character'Val(16#16#),
Character'Val(16#17#),
Character'Val(16#18#),
Character'Val(16#19#),
Character'Val(16#1A#),
Character'Val(16#1B#),
Character'Val(16#1C#),
Character'Val(16#1D#),
Character'Val(16#1E#),
Character'Val(16#1F#),
Character'Val(16#20#),
Character'Val(16#21#),
Character'Val(16#22#),
Character'Val(16#23#),
Character'Val(16#24#),
Character'Val(16#25#),
Character'Val(16#26#),
Character'Val(16#27#),
Character'Val(16#28#),
Character'Val(16#29#),
Character'Val(16#2A#),
Character'Val(16#2B#),
Character'Val(16#2C#),
Character'Val(16#2D#),
Character'Val(16#2E#),
Character'Val(16#2F#),
Character'Val(16#30#),
Character'Val(16#31#),
Character'Val(16#32#),
Character'Val(16#33#),
Character'Val(16#34#),
Character'Val(16#35#),
Character'Val(16#36#),
Character'Val(16#37#),
Character'Val(16#38#),
Character'Val(16#39#),
Character'Val(16#3A#),
Character'Val(16#3B#),
Character'Val(16#3C#),
Character'Val(16#3D#),
Character'Val(16#3E#),
Character'Val(16#3F#),
Character'Val(16#40#),
Character'Val(16#41#),
Character'Val(16#42#),
Character'Val(16#43#),
Character'Val(16#44#),
Character'Val(16#45#),
Character'Val(16#46#),
Character'Val(16#47#),
Character'Val(16#48#),
Character'Val(16#49#),
Character'Val(16#4A#),
Character'Val(16#4B#),
Character'Val(16#4C#),
Character'Val(16#4D#),
Character'Val(16#4E#),
Character'Val(16#4F#),
Character'Val(16#50#),
Character'Val(16#51#),
Character'Val(16#52#),
Character'Val(16#53#),
Character'Val(16#54#),
Character'Val(16#55#),
Character'Val(16#56#),
Character'Val(16#57#),
Character'Val(16#58#),
Character'Val(16#59#),
Character'Val(16#5A#),
Character'Val(16#5B#),
Character'Val(16#5C#),
Character'Val(16#5D#),
Character'Val(16#5E#),
Character'Val(16#5F#),
Character'Val(16#60#),
Character'Val(16#61#),
Character'Val(16#62#),
Character'Val(16#63#),
Character'Val(16#64#),
Character'Val(16#65#),
Character'Val(16#66#),
Character'Val(16#67#),
Character'Val(16#68#),
Character'Val(16#69#),
Character'Val(16#6A#),
Character'Val(16#6B#),
Character'Val(16#6C#),
Character'Val(16#6D#),
Character'Val(16#6E#),
Character'Val(16#6F#),
Character'Val(16#70#),
Character'Val(16#71#),
Character'Val(16#72#),
Character'Val(16#73#),
Character'Val(16#74#),
Character'Val(16#75#),
Character'Val(16#76#),
Character'Val(16#77#),
Character'Val(16#78#),
Character'Val(16#79#),
Character'Val(16#7A#),
Character'Val(16#7B#),
Character'Val(16#7C#),
Character'Val(16#7D#),
Character'Val(16#7E#),
Character'Val(16#7F#),
Character'Val(16#80#),
Character'Val(16#81#),
Character'Val(16#82#),
Character'Val(16#83#),
Character'Val(16#84#),
Character'Val(16#85#),
Character'Val(16#86#),
Character'Val(16#87#),
Character'Val(16#88#),
Character'Val(16#89#),
Character'Val(16#8A#),
Character'Val(16#8B#),
Character'Val(16#8C#),
Character'Val(16#8D#),
Character'Val(16#8E#),
Character'Val(16#8F#),
Character'Val(16#90#),
Character'Val(16#91#),
Character'Val(16#92#),
Character'Val(16#93#),
Character'Val(16#94#),
Character'Val(16#95#),
Character'Val(16#96#),
Character'Val(16#97#),
Character'Val(16#98#),
Character'Val(16#99#),
Character'Val(16#9A#),
Character'Val(16#9B#),
Character'Val(16#9C#),
Character'Val(16#9D#),
Character'Val(16#9E#),
Character'Val(16#9F#),
Character'Val(16#A0#),
Character'Val(16#A7#),
Character'Val(16#A9#),
Character'Val(16#AB#),
Character'Val(16#AD#),
Character'Val(16#B0#),
Character'Val(16#B1#),
Character'Val(16#B6#),
Character'Val(16#B7#),
Character'Val(16#BB#),
Character'Val(16#C0#),
Character'Val(16#C1#),
Character'Val(16#C2#),
Character'Val(16#C4#),
Character'Val(16#C6#),
Character'Val(16#C7#),
Character'Val(16#C8#),
Character'Val(16#C9#),
Character'Val(16#CA#),
Character'Val(16#CB#),
Character'Val(16#CC#),
Character'Val(16#CD#),
Character'Val(16#CE#),
Character'Val(16#CF#),
Character'Val(16#D2#),
Character'Val(16#D3#),
Character'Val(16#D4#),
Character'Val(16#D6#),
Character'Val(16#D9#),
Character'Val(16#DA#),
Character'Val(16#DB#),
Character'Val(16#DC#),
Character'Val(16#DF#),
Character'Val(16#E0#),
Character'Val(16#E1#),
Character'Val(16#E2#),
Character'Val(16#E4#),
Character'Val(16#E6#),
Character'Val(16#E7#),
Character'Val(16#E8#),
Character'Val(16#E9#),
Character'Val(16#EA#),
Character'Val(16#EB#),
Character'Val(16#EC#),
Character'Val(16#ED#),
Character'Val(16#EE#),
Character'Val(16#EF#),
Character'Val(16#F2#),
Character'Val(16#F3#),
Character'Val(16#F4#),
Character'Val(16#F6#),
Character'Val(16#F9#),
Character'Val(16#FA#),
Character'Val(16#FB#),
Character'Val(16#FC#),
Character'Val(16#FF#),
Character'Val(16#C3#),
Character'Val(16#E3#),
Character'Val(16#A1#),
Character'Val(16#A2#),
Character'Val(16#C5#),
Character'Val(16#E5#),
Character'Val(16#B2#),
Character'Val(16#B9#),
Character'Val(16#D0#),
Character'Val(16#F0#),
Character'Val(16#DD#),
Character'Val(16#FD#),
Character'Val(16#A3#),
Character'Val(16#B3#),
Character'Val(16#D1#),
Character'Val(16#F1#),
Character'Val(16#D5#),
Character'Val(16#F5#),
Character'Val(16#BC#),
Character'Val(16#BD#),
Character'Val(16#D7#),
Character'Val(16#F7#),
Character'Val(16#A6#),
Character'Val(16#A8#),
Character'Val(16#D8#),
Character'Val(16#F8#),
Character'Val(16#BE#),
Character'Val(16#AC#),
Character'Val(16#AE#),
Character'Val(16#AF#),
Character'Val(16#BF#),
Character'Val(16#B4#),
Character'Val(16#B8#),
Character'Val(16#AA#),
Character'Val(16#BA#),
Character'Val(16#DE#),
Character'Val(16#FE#),
Character'Val(16#B5#),
Character'Val(16#A5#),
Character'Val(16#A4#));
function Decode (Char : Character) return Wide_Character is
begin
return Decode (Char, Forward);
end Decode;
procedure Decode
(Text : in Raw_String;
Text_Last : out Natural;
Result : out Wide_String;
Result_Last : out Natural;
Map : in Encoding := Encodings.ISO_8859_16)
is
begin
Decode (Text, Text_Last, Result, Result_Last, Forward);
end Decode;
procedure Encode
(Text : in Wide_String;
Text_Last : out Natural;
Result : out Raw_String;
Result_Last : out Natural;
Map : in Encoding := Encodings.ISO_8859_16)
is
begin
Encode (Text, Text_Last, Result, Result_Last,
Ranges, Backward);
end Encode;
begin
Encoder_List (Encodings.ISO_8859_16) := Encode'Access;
Decoder_List (Encodings.ISO_8859_16) := Decode'Access;
end Encodings.Maps.ISO_8859_16;
------------------------------------------------------------------------------
-- Copyright (c) 2006-2013, Maxim Reznik
-- All rights reserved.
--
-- Redistribution and use in source and binary forms, with or without
-- modification, are permitted provided that the following conditions are met:
--
-- * Redistributions of source code must retain the above copyright notice,
-- this list of conditions and the following disclaimer.
-- * Redistributions in binary form must reproduce the above copyright
-- notice, this list of conditions and the following disclaimer in the
-- documentation and/or other materials provided with the distribution.
-- * Neither the name of the Maxim Reznik, IE nor the names of its
-- contributors may be used to endorse or promote products derived from
-- this software without specific prior written permission.
--
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
-- AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-- ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
-- LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-- CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-- SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-- INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-- CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-- POSSIBILITY OF SUCH DAMAGE.
------------------------------------------------------------------------------
| 35.566449 | 79 | 0.592098 |
0b11a5697cdfd69ca79e2e4c4697518e58932e6c | 46,839 | adb | Ada | llvm-gcc-4.2-2.9/gcc/ada/xr_tabls.adb | vidkidz/crossbridge | ba0bf94aee0ce6cf7eb5be882382e52bc57ba396 | [
"MIT"
] | 1 | 2016-04-09T02:58:13.000Z | 2016-04-09T02:58:13.000Z | llvm-gcc-4.2-2.9/gcc/ada/xr_tabls.adb | vidkidz/crossbridge | ba0bf94aee0ce6cf7eb5be882382e52bc57ba396 | [
"MIT"
] | null | null | null | llvm-gcc-4.2-2.9/gcc/ada/xr_tabls.adb | vidkidz/crossbridge | ba0bf94aee0ce6cf7eb5be882382e52bc57ba396 | [
"MIT"
] | null | null | null | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- X R _ T A B L S --
-- --
-- B o d y --
-- --
-- Copyright (C) 1998-2006, Free Software Foundation, Inc. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 2, or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License --
-- for more details. You should have received a copy of the GNU General --
-- Public License distributed with GNAT; see file COPYING. If not, write --
-- to the Free Software Foundation, 51 Franklin Street, Fifth Floor, --
-- Boston, MA 02110-1301, USA. --
-- --
-- GNAT was originally developed by the GNAT team at New York University. --
-- Extensive contributions were provided by Ada Core Technologies Inc. --
-- --
------------------------------------------------------------------------------
with Types; use Types;
with Osint;
with Hostparm;
with Ada.Unchecked_Conversion;
with Ada.Unchecked_Deallocation;
with Ada.Strings.Fixed;
with Ada.Strings;
with Ada.Text_IO;
with Ada.Characters.Handling; use Ada.Characters.Handling;
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
with GNAT.OS_Lib; use GNAT.OS_Lib;
with GNAT.Directory_Operations; use GNAT.Directory_Operations;
with GNAT.HTable; use GNAT.HTable;
with GNAT.Heap_Sort_G;
package body Xr_Tabls is
type HTable_Headers is range 1 .. 10000;
procedure Set_Next (E : File_Reference; Next : File_Reference);
function Next (E : File_Reference) return File_Reference;
function Get_Key (E : File_Reference) return Cst_String_Access;
function Hash (F : Cst_String_Access) return HTable_Headers;
function Equal (F1, F2 : Cst_String_Access) return Boolean;
-- The five subprograms above are used to instanciate the static
-- htable to store the files that should be processed.
package File_HTable is new GNAT.HTable.Static_HTable
(Header_Num => HTable_Headers,
Element => File_Record,
Elmt_Ptr => File_Reference,
Null_Ptr => null,
Set_Next => Set_Next,
Next => Next,
Key => Cst_String_Access,
Get_Key => Get_Key,
Hash => Hash,
Equal => Equal);
-- A hash table to store all the files referenced in the
-- application. The keys in this htable are the name of the files
-- themselves, therefore it is assumed that the source path
-- doesn't contain twice the same source or ALI file name
type Unvisited_Files_Record;
type Unvisited_Files_Access is access Unvisited_Files_Record;
type Unvisited_Files_Record is record
File : File_Reference;
Next : Unvisited_Files_Access;
end record;
-- A special list, in addition to File_HTable, that only stores
-- the files that haven't been visited so far. Note that the File
-- list points to some data in File_HTable, and thus should never be freed.
function Next (E : Declaration_Reference) return Declaration_Reference;
procedure Set_Next (E, Next : Declaration_Reference);
function Get_Key (E : Declaration_Reference) return Cst_String_Access;
-- The subprograms above are used to instanciate the static
-- htable to store the entities that have been found in the application
package Entities_HTable is new GNAT.HTable.Static_HTable
(Header_Num => HTable_Headers,
Element => Declaration_Record,
Elmt_Ptr => Declaration_Reference,
Null_Ptr => null,
Set_Next => Set_Next,
Next => Next,
Key => Cst_String_Access,
Get_Key => Get_Key,
Hash => Hash,
Equal => Equal);
-- A hash table to store all the entities defined in the
-- application. For each entity, we store a list of its reference
-- locations as well.
-- The keys in this htable should be created with Key_From_Ref,
-- and are the file, line and column of the declaration, which are
-- unique for every entity.
Entities_Count : Natural := 0;
-- Number of entities in Entities_HTable. This is used in the end
-- when sorting the table.
Longest_File_Name_In_Table : Natural := 0;
Unvisited_Files : Unvisited_Files_Access := null;
Directories : Project_File_Ptr;
Default_Match : Boolean := False;
-- The above need commenting ???
function Parse_Gnatls_Src return String;
-- Return the standard source directories (taking into account the
-- ADA_INCLUDE_PATH environment variable, if Osint.Add_Default_Search_Dirs
-- was called first).
function Parse_Gnatls_Obj return String;
-- Return the standard object directories (taking into account the
-- ADA_OBJECTS_PATH environment variable).
function Key_From_Ref
(File_Ref : File_Reference;
Line : Natural;
Column : Natural)
return String;
-- Return a key for the symbol declared at File_Ref, Line,
-- Column. This key should be used for lookup in Entity_HTable
function Is_Less_Than (Decl1, Decl2 : Declaration_Reference) return Boolean;
-- Compare two declarations (the comparison is case-insensitive)
function Is_Less_Than (Ref1, Ref2 : Reference) return Boolean;
-- Compare two references
procedure Store_References
(Decl : Declaration_Reference;
Get_Writes : Boolean := False;
Get_Reads : Boolean := False;
Get_Bodies : Boolean := False;
Get_Declaration : Boolean := False;
Arr : in out Reference_Array;
Index : in out Natural);
-- Store in Arr, starting at Index, all the references to Decl. The Get_*
-- parameters can be used to indicate which references should be stored.
-- Constraint_Error will be raised if Arr is not big enough.
procedure Sort (Arr : in out Reference_Array);
-- Sort an array of references (Arr'First must be 1)
--------------
-- Set_Next --
--------------
procedure Set_Next (E : File_Reference; Next : File_Reference) is
begin
E.Next := Next;
end Set_Next;
procedure Set_Next
(E : Declaration_Reference; Next : Declaration_Reference) is
begin
E.Next := Next;
end Set_Next;
-------------
-- Get_Key --
-------------
function Get_Key (E : File_Reference) return Cst_String_Access is
begin
return E.File;
end Get_Key;
function Get_Key (E : Declaration_Reference) return Cst_String_Access is
begin
return E.Key;
end Get_Key;
----------
-- Hash --
----------
function Hash (F : Cst_String_Access) return HTable_Headers is
function H is new GNAT.HTable.Hash (HTable_Headers);
begin
return H (F.all);
end Hash;
-----------
-- Equal --
-----------
function Equal (F1, F2 : Cst_String_Access) return Boolean is
begin
return F1.all = F2.all;
end Equal;
------------------
-- Key_From_Ref --
------------------
function Key_From_Ref
(File_Ref : File_Reference;
Line : Natural;
Column : Natural)
return String
is
begin
return File_Ref.File.all & Natural'Image (Line) & Natural'Image (Column);
end Key_From_Ref;
---------------------
-- Add_Declaration --
---------------------
function Add_Declaration
(File_Ref : File_Reference;
Symbol : String;
Line : Natural;
Column : Natural;
Decl_Type : Character;
Remove_Only : Boolean := False;
Symbol_Match : Boolean := True)
return Declaration_Reference
is
procedure Unchecked_Free is new Ada.Unchecked_Deallocation
(Declaration_Record, Declaration_Reference);
Key : aliased constant String := Key_From_Ref (File_Ref, Line, Column);
New_Decl : Declaration_Reference :=
Entities_HTable.Get (Key'Unchecked_Access);
Is_Parameter : Boolean := False;
begin
-- Insert the Declaration in the table. There might already be a
-- declaration in the table if the entity is a parameter, so we
-- need to check that first.
if New_Decl /= null and then New_Decl.Symbol_Length = 0 then
Is_Parameter := New_Decl.Is_Parameter;
Entities_HTable.Remove (Key'Unrestricted_Access);
Entities_Count := Entities_Count - 1;
Free (New_Decl.Key);
Unchecked_Free (New_Decl);
New_Decl := null;
end if;
-- The declaration might also already be there for parent types. In
-- this case, we should keep the entry, since some other entries are
-- pointing to it.
if New_Decl = null
and then not Remove_Only
then
New_Decl :=
new Declaration_Record'
(Symbol_Length => Symbol'Length,
Symbol => Symbol,
Key => new String'(Key),
Decl => new Reference_Record'
(File => File_Ref,
Line => Line,
Column => Column,
Source_Line => null,
Next => null),
Is_Parameter => Is_Parameter,
Decl_Type => Decl_Type,
Body_Ref => null,
Ref_Ref => null,
Modif_Ref => null,
Match => Symbol_Match
and then
(Default_Match
or else Match (File_Ref, Line, Column)),
Par_Symbol => null,
Next => null);
Entities_HTable.Set (New_Decl);
Entities_Count := Entities_Count + 1;
if New_Decl.Match then
Longest_File_Name_In_Table :=
Natural'Max (File_Ref.File'Length, Longest_File_Name_In_Table);
end if;
elsif New_Decl /= null
and then not New_Decl.Match
then
New_Decl.Match := Default_Match
or else Match (File_Ref, Line, Column);
end if;
return New_Decl;
end Add_Declaration;
----------------------
-- Add_To_Xref_File --
----------------------
function Add_To_Xref_File
(File_Name : String;
Visited : Boolean := True;
Emit_Warning : Boolean := False;
Gnatchop_File : String := "";
Gnatchop_Offset : Integer := 0) return File_Reference
is
Base : aliased constant String := Base_Name (File_Name);
Dir : constant String := Dir_Name (File_Name);
Dir_Acc : GNAT.OS_Lib.String_Access := null;
Ref : File_Reference;
begin
-- Do we have a directory name as well?
if File_Name /= Base then
Dir_Acc := new String'(Dir);
end if;
Ref := File_HTable.Get (Base'Unchecked_Access);
if Ref = null then
Ref := new File_Record'
(File => new String'(Base),
Dir => Dir_Acc,
Lines => null,
Visited => Visited,
Emit_Warning => Emit_Warning,
Gnatchop_File => new String'(Gnatchop_File),
Gnatchop_Offset => Gnatchop_Offset,
Next => null);
File_HTable.Set (Ref);
if not Visited then
-- Keep a separate list for faster access
Set_Unvisited (Ref);
end if;
end if;
return Ref;
end Add_To_Xref_File;
--------------
-- Add_Line --
--------------
procedure Add_Line
(File : File_Reference;
Line : Natural;
Column : Natural)
is
begin
File.Lines := new Ref_In_File'(Line => Line,
Column => Column,
Next => File.Lines);
end Add_Line;
----------------
-- Add_Parent --
----------------
procedure Add_Parent
(Declaration : in out Declaration_Reference;
Symbol : String;
Line : Natural;
Column : Natural;
File_Ref : File_Reference)
is
begin
Declaration.Par_Symbol :=
Add_Declaration
(File_Ref, Symbol, Line, Column,
Decl_Type => ' ',
Symbol_Match => False);
end Add_Parent;
-------------------
-- Add_Reference --
-------------------
procedure Add_Reference
(Declaration : Declaration_Reference;
File_Ref : File_Reference;
Line : Natural;
Column : Natural;
Ref_Type : Character;
Labels_As_Ref : Boolean)
is
New_Ref : Reference;
begin
case Ref_Type is
when 'b' | 'c' | 'm' | 'r' | 'i' | ' ' | 'x' =>
null;
when 'l' | 'w' =>
if not Labels_As_Ref then
return;
end if;
when '=' | '<' | '>' | '^' =>
-- Create a dummy declaration in the table to report it as a
-- parameter. Note that the current declaration for the subprogram
-- comes before the declaration of the parameter.
declare
Key : constant String :=
Key_From_Ref (File_Ref, Line, Column);
New_Decl : Declaration_Reference;
begin
New_Decl := new Declaration_Record'
(Symbol_Length => 0,
Symbol => "",
Key => new String'(Key),
Decl => null,
Is_Parameter => True,
Decl_Type => ' ',
Body_Ref => null,
Ref_Ref => null,
Modif_Ref => null,
Match => False,
Par_Symbol => null,
Next => null);
Entities_HTable.Set (New_Decl);
Entities_Count := Entities_Count + 1;
end;
when 'e' | 'z' | 't' | 'p' | 'P' | 'k' | 'd' =>
return;
when others =>
Ada.Text_IO.Put_Line ("Unknown reference type: " & Ref_Type);
return;
end case;
New_Ref := new Reference_Record'
(File => File_Ref,
Line => Line,
Column => Column,
Source_Line => null,
Next => null);
-- We can insert the reference in the list directly, since all
-- the references will appear only once in the ALI file
-- corresponding to the file where they are referenced.
-- This saves a lot of time compared to checking the list to check
-- if it exists.
case Ref_Type is
when 'b' | 'c' =>
New_Ref.Next := Declaration.Body_Ref;
Declaration.Body_Ref := New_Ref;
when 'r' | 'i' | 'l' | ' ' | 'x' | 'w' =>
New_Ref.Next := Declaration.Ref_Ref;
Declaration.Ref_Ref := New_Ref;
when 'm' =>
New_Ref.Next := Declaration.Modif_Ref;
Declaration.Modif_Ref := New_Ref;
when others =>
null;
end case;
if not Declaration.Match then
Declaration.Match := Match (File_Ref, Line, Column);
end if;
if Declaration.Match then
Longest_File_Name_In_Table :=
Natural'Max (File_Ref.File'Length, Longest_File_Name_In_Table);
end if;
end Add_Reference;
-------------------
-- ALI_File_Name --
-------------------
function ALI_File_Name (Ada_File_Name : String) return String is
-- ??? Should ideally be based on the naming scheme defined in
-- project files.
Index : constant Natural :=
Ada.Strings.Fixed.Index
(Ada_File_Name, ".", Going => Ada.Strings.Backward);
begin
if Index /= 0 then
return Ada_File_Name (Ada_File_Name'First .. Index) & "ali";
else
return Ada_File_Name & ".ali";
end if;
end ALI_File_Name;
------------------
-- Is_Less_Than --
------------------
function Is_Less_Than (Ref1, Ref2 : Reference) return Boolean is
begin
if Ref1 = null then
return False;
elsif Ref2 = null then
return True;
end if;
if Ref1.File.File.all < Ref2.File.File.all then
return True;
elsif Ref1.File.File.all = Ref2.File.File.all then
return (Ref1.Line < Ref2.Line
or else (Ref1.Line = Ref2.Line
and then Ref1.Column < Ref2.Column));
end if;
return False;
end Is_Less_Than;
------------------
-- Is_Less_Than --
------------------
function Is_Less_Than (Decl1, Decl2 : Declaration_Reference) return Boolean
is
-- We cannot store the data case-insensitive in the table,
-- since we wouldn't be able to find the right casing for the
-- display later on.
S1 : constant String := To_Lower (Decl1.Symbol);
S2 : constant String := To_Lower (Decl2.Symbol);
begin
if S1 < S2 then
return True;
elsif S1 > S2 then
return False;
end if;
return Decl1.Key.all < Decl2.Key.all;
end Is_Less_Than;
-------------------------
-- Create_Project_File --
-------------------------
procedure Create_Project_File (Name : String) is
Obj_Dir : Unbounded_String := Null_Unbounded_String;
Src_Dir : Unbounded_String := Null_Unbounded_String;
Build_Dir : GNAT.OS_Lib.String_Access := new String'("");
F : File_Descriptor;
Len : Positive;
File_Name : aliased String := Name & ASCII.NUL;
begin
-- Read the size of the file
F := Open_Read (File_Name'Address, Text);
-- Project file not found
if F /= Invalid_FD then
Len := Positive (File_Length (F));
declare
Buffer : String (1 .. Len);
Index : Positive := Buffer'First;
Last : Positive;
begin
Len := Read (F, Buffer'Address, Len);
Close (F);
-- First, look for Build_Dir, since all the source and object
-- path are relative to it.
while Index <= Buffer'Last loop
-- Find the end of line
Last := Index;
while Last <= Buffer'Last
and then Buffer (Last) /= ASCII.LF
and then Buffer (Last) /= ASCII.CR
loop
Last := Last + 1;
end loop;
if Index <= Buffer'Last - 9
and then Buffer (Index .. Index + 9) = "build_dir="
then
Index := Index + 10;
while Index <= Last
and then (Buffer (Index) = ' '
or else Buffer (Index) = ASCII.HT)
loop
Index := Index + 1;
end loop;
Free (Build_Dir);
Build_Dir := new String'(Buffer (Index .. Last - 1));
end if;
Index := Last + 1;
-- In case we had a ASCII.CR/ASCII.LF end of line, skip the
-- remaining symbol
if Index <= Buffer'Last
and then Buffer (Index) = ASCII.LF
then
Index := Index + 1;
end if;
end loop;
-- Now parse the source and object paths
Index := Buffer'First;
while Index <= Buffer'Last loop
-- Find the end of line
Last := Index;
while Last <= Buffer'Last
and then Buffer (Last) /= ASCII.LF
and then Buffer (Last) /= ASCII.CR
loop
Last := Last + 1;
end loop;
if Index <= Buffer'Last - 7
and then Buffer (Index .. Index + 7) = "src_dir="
then
Append (Src_Dir, Normalize_Pathname
(Name => Ada.Strings.Fixed.Trim
(Buffer (Index + 8 .. Last - 1), Ada.Strings.Both),
Directory => Build_Dir.all) & Path_Separator);
elsif Index <= Buffer'Last - 7
and then Buffer (Index .. Index + 7) = "obj_dir="
then
Append (Obj_Dir, Normalize_Pathname
(Name => Ada.Strings.Fixed.Trim
(Buffer (Index + 8 .. Last - 1), Ada.Strings.Both),
Directory => Build_Dir.all) & Path_Separator);
end if;
-- In case we had a ASCII.CR/ASCII.LF end of line, skip the
-- remaining symbol
Index := Last + 1;
if Index <= Buffer'Last
and then Buffer (Index) = ASCII.LF
then
Index := Index + 1;
end if;
end loop;
end;
end if;
Osint.Add_Default_Search_Dirs;
declare
Src : constant String := Parse_Gnatls_Src;
Obj : constant String := Parse_Gnatls_Obj;
begin
Directories := new Project_File'
(Src_Dir_Length => Length (Src_Dir) + Src'Length,
Obj_Dir_Length => Length (Obj_Dir) + Obj'Length,
Src_Dir => To_String (Src_Dir) & Src,
Obj_Dir => To_String (Obj_Dir) & Obj,
Src_Dir_Index => 1,
Obj_Dir_Index => 1,
Last_Obj_Dir_Start => 0);
end;
Free (Build_Dir);
end Create_Project_File;
---------------------
-- Current_Obj_Dir --
---------------------
function Current_Obj_Dir return String is
begin
return Directories.Obj_Dir
(Directories.Last_Obj_Dir_Start .. Directories.Obj_Dir_Index - 2);
end Current_Obj_Dir;
----------------
-- Get_Column --
----------------
function Get_Column (Decl : Declaration_Reference) return String is
begin
return Ada.Strings.Fixed.Trim (Natural'Image (Decl.Decl.Column),
Ada.Strings.Left);
end Get_Column;
function Get_Column (Ref : Reference) return String is
begin
return Ada.Strings.Fixed.Trim (Natural'Image (Ref.Column),
Ada.Strings.Left);
end Get_Column;
---------------------
-- Get_Declaration --
---------------------
function Get_Declaration
(File_Ref : File_Reference;
Line : Natural;
Column : Natural)
return Declaration_Reference
is
Key : aliased constant String := Key_From_Ref (File_Ref, Line, Column);
begin
return Entities_HTable.Get (Key'Unchecked_Access);
end Get_Declaration;
----------------------
-- Get_Emit_Warning --
----------------------
function Get_Emit_Warning (File : File_Reference) return Boolean is
begin
return File.Emit_Warning;
end Get_Emit_Warning;
--------------
-- Get_File --
--------------
function Get_File
(Decl : Declaration_Reference;
With_Dir : Boolean := False) return String
is
begin
return Get_File (Decl.Decl.File, With_Dir);
end Get_File;
function Get_File
(Ref : Reference;
With_Dir : Boolean := False) return String
is
begin
return Get_File (Ref.File, With_Dir);
end Get_File;
function Get_File
(File : File_Reference;
With_Dir : Boolean := False;
Strip : Natural := 0) return String
is
Tmp : GNAT.OS_Lib.String_Access;
function Internal_Strip (Full_Name : String) return String;
-- Internal function to process the Strip parameter
--------------------
-- Internal_Strip --
--------------------
function Internal_Strip (Full_Name : String) return String is
Unit_End : Natural;
Extension_Start : Natural;
S : Natural;
begin
if Strip = 0 then
return Full_Name;
end if;
-- Isolate the file extension
Extension_Start := Full_Name'Last;
while Extension_Start >= Full_Name'First
and then Full_Name (Extension_Start) /= '.'
loop
Extension_Start := Extension_Start - 1;
end loop;
-- Strip the right number of subunit_names
S := Strip;
Unit_End := Extension_Start - 1;
while Unit_End >= Full_Name'First
and then S > 0
loop
if Full_Name (Unit_End) = '-' then
S := S - 1;
end if;
Unit_End := Unit_End - 1;
end loop;
if Unit_End < Full_Name'First then
return "";
else
return Full_Name (Full_Name'First .. Unit_End)
& Full_Name (Extension_Start .. Full_Name'Last);
end if;
end Internal_Strip;
-- Start of processing for Get_File;
begin
-- If we do not want the full path name
if not With_Dir then
return Internal_Strip (File.File.all);
end if;
if File.Dir = null then
if Ada.Strings.Fixed.Tail (File.File.all, 3) = "ali" then
Tmp := Locate_Regular_File
(Internal_Strip (File.File.all), Directories.Obj_Dir);
else
Tmp := Locate_Regular_File
(File.File.all, Directories.Src_Dir);
end if;
if Tmp = null then
File.Dir := new String'("");
else
File.Dir := new String'(Dir_Name (Tmp.all));
Free (Tmp);
end if;
end if;
return Internal_Strip (File.Dir.all & File.File.all);
end Get_File;
------------------
-- Get_File_Ref --
------------------
function Get_File_Ref (Ref : Reference) return File_Reference is
begin
return Ref.File;
end Get_File_Ref;
-----------------------
-- Get_Gnatchop_File --
-----------------------
function Get_Gnatchop_File
(File : File_Reference;
With_Dir : Boolean := False)
return String
is
begin
if File.Gnatchop_File.all = "" then
return Get_File (File, With_Dir);
else
return File.Gnatchop_File.all;
end if;
end Get_Gnatchop_File;
function Get_Gnatchop_File
(Ref : Reference;
With_Dir : Boolean := False)
return String
is
begin
return Get_Gnatchop_File (Ref.File, With_Dir);
end Get_Gnatchop_File;
function Get_Gnatchop_File
(Decl : Declaration_Reference;
With_Dir : Boolean := False)
return String
is
begin
return Get_Gnatchop_File (Decl.Decl.File, With_Dir);
end Get_Gnatchop_File;
--------------
-- Get_Line --
--------------
function Get_Line (Decl : Declaration_Reference) return String is
begin
return Ada.Strings.Fixed.Trim (Natural'Image (Decl.Decl.Line),
Ada.Strings.Left);
end Get_Line;
function Get_Line (Ref : Reference) return String is
begin
return Ada.Strings.Fixed.Trim (Natural'Image (Ref.Line),
Ada.Strings.Left);
end Get_Line;
----------------
-- Get_Parent --
----------------
function Get_Parent
(Decl : Declaration_Reference)
return Declaration_Reference
is
begin
return Decl.Par_Symbol;
end Get_Parent;
---------------------
-- Get_Source_Line --
---------------------
function Get_Source_Line (Ref : Reference) return String is
begin
if Ref.Source_Line /= null then
return Ref.Source_Line.all;
else
return "";
end if;
end Get_Source_Line;
function Get_Source_Line (Decl : Declaration_Reference) return String is
begin
if Decl.Decl.Source_Line /= null then
return Decl.Decl.Source_Line.all;
else
return "";
end if;
end Get_Source_Line;
----------------
-- Get_Symbol --
----------------
function Get_Symbol (Decl : Declaration_Reference) return String is
begin
return Decl.Symbol;
end Get_Symbol;
--------------
-- Get_Type --
--------------
function Get_Type (Decl : Declaration_Reference) return Character is
begin
return Decl.Decl_Type;
end Get_Type;
----------
-- Sort --
----------
procedure Sort (Arr : in out Reference_Array) is
Tmp : Reference;
function Lt (Op1, Op2 : Natural) return Boolean;
procedure Move (From, To : Natural);
-- See GNAT.Heap_Sort_G
--------
-- Lt --
--------
function Lt (Op1, Op2 : Natural) return Boolean is
begin
if Op1 = 0 then
return Is_Less_Than (Tmp, Arr (Op2));
elsif Op2 = 0 then
return Is_Less_Than (Arr (Op1), Tmp);
else
return Is_Less_Than (Arr (Op1), Arr (Op2));
end if;
end Lt;
----------
-- Move --
----------
procedure Move (From, To : Natural) is
begin
if To = 0 then
Tmp := Arr (From);
elsif From = 0 then
Arr (To) := Tmp;
else
Arr (To) := Arr (From);
end if;
end Move;
package Ref_Sort is new GNAT.Heap_Sort_G (Move, Lt);
-- Start of processing for Sort
begin
Ref_Sort.Sort (Arr'Last);
end Sort;
-----------------------
-- Grep_Source_Files --
-----------------------
procedure Grep_Source_Files is
Length : Natural := 0;
Decl : Declaration_Reference := Entities_HTable.Get_First;
Arr : Reference_Array_Access;
Index : Natural;
End_Index : Natural;
Current_File : File_Reference;
Current_Line : Cst_String_Access;
Buffer : GNAT.OS_Lib.String_Access;
Ref : Reference;
Line : Natural;
begin
-- Create a temporary array, where all references will be
-- sorted by files. This way, we only have to read the source
-- files once.
while Decl /= null loop
-- Add 1 for the declaration itself
Length := Length + References_Count (Decl, True, True, True) + 1;
Decl := Entities_HTable.Get_Next;
end loop;
Arr := new Reference_Array (1 .. Length);
Index := Arr'First;
Decl := Entities_HTable.Get_First;
while Decl /= null loop
Store_References (Decl, True, True, True, True, Arr.all, Index);
Decl := Entities_HTable.Get_Next;
end loop;
Sort (Arr.all);
-- Now traverse the whole array and find the appropriate source
-- lines.
for R in Arr'Range loop
Ref := Arr (R);
if Ref.File /= Current_File then
Free (Buffer);
begin
Read_File (Get_File (Ref.File, With_Dir => True), Buffer);
End_Index := Buffer'First - 1;
Line := 0;
exception
when Ada.Text_IO.Name_Error | Ada.Text_IO.End_Error =>
Line := Natural'Last;
end;
Current_File := Ref.File;
end if;
if Ref.Line > Line then
-- Do not free Current_Line, it is referenced by the last
-- Ref we processed.
loop
Index := End_Index + 1;
loop
End_Index := End_Index + 1;
exit when End_Index > Buffer'Last
or else Buffer (End_Index) = ASCII.LF;
end loop;
-- Skip spaces at beginning of line
while Index < End_Index and then
(Buffer (Index) = ' ' or else Buffer (Index) = ASCII.HT)
loop
Index := Index + 1;
end loop;
Line := Line + 1;
exit when Ref.Line = Line;
end loop;
Current_Line := new String'(Buffer (Index .. End_Index - 1));
end if;
Ref.Source_Line := Current_Line;
end loop;
Free (Buffer);
Free (Arr);
end Grep_Source_Files;
---------------
-- Read_File --
---------------
procedure Read_File
(File_Name : String;
Contents : out GNAT.OS_Lib.String_Access)
is
Name_0 : constant String := File_Name & ASCII.NUL;
FD : constant File_Descriptor := Open_Read (Name_0'Address, Binary);
Length : Natural;
begin
if FD = Invalid_FD then
raise Ada.Text_IO.Name_Error;
end if;
-- Include room for EOF char
Length := Natural (File_Length (FD));
declare
Buffer : String (1 .. Length + 1);
This_Read : Integer;
Read_Ptr : Natural := 1;
begin
loop
This_Read := Read (FD,
A => Buffer (Read_Ptr)'Address,
N => Length + 1 - Read_Ptr);
Read_Ptr := Read_Ptr + Integer'Max (This_Read, 0);
exit when This_Read <= 0;
end loop;
Buffer (Read_Ptr) := EOF;
Contents := new String'(Buffer (1 .. Read_Ptr));
-- Things are not simple on VMS due to the plethora of file types
-- and organizations. It seems clear that there shouldn't be more
-- bytes read than are contained in the file though.
if (Hostparm.OpenVMS and then Read_Ptr > Length + 1)
or else (not Hostparm.OpenVMS and then Read_Ptr /= Length + 1)
then
raise Ada.Text_IO.End_Error;
end if;
Close (FD);
end;
end Read_File;
-----------------------
-- Longest_File_Name --
-----------------------
function Longest_File_Name return Natural is
begin
return Longest_File_Name_In_Table;
end Longest_File_Name;
-----------
-- Match --
-----------
function Match
(File : File_Reference;
Line : Natural;
Column : Natural)
return Boolean
is
Ref : Ref_In_File_Ptr := File.Lines;
begin
while Ref /= null loop
if (Ref.Line = 0 or else Ref.Line = Line)
and then (Ref.Column = 0 or else Ref.Column = Column)
then
return True;
end if;
Ref := Ref.Next;
end loop;
return False;
end Match;
-----------
-- Match --
-----------
function Match (Decl : Declaration_Reference) return Boolean is
begin
return Decl.Match;
end Match;
----------
-- Next --
----------
function Next (E : File_Reference) return File_Reference is
begin
return E.Next;
end Next;
function Next (E : Declaration_Reference) return Declaration_Reference is
begin
return E.Next;
end Next;
------------------
-- Next_Obj_Dir --
------------------
function Next_Obj_Dir return String is
First : constant Integer := Directories.Obj_Dir_Index;
Last : Integer;
begin
Last := Directories.Obj_Dir_Index;
if Last > Directories.Obj_Dir_Length then
return String'(1 .. 0 => ' ');
end if;
while Directories.Obj_Dir (Last) /= Path_Separator loop
Last := Last + 1;
end loop;
Directories.Obj_Dir_Index := Last + 1;
Directories.Last_Obj_Dir_Start := First;
return Directories.Obj_Dir (First .. Last - 1);
end Next_Obj_Dir;
-------------------------
-- Next_Unvisited_File --
-------------------------
function Next_Unvisited_File return File_Reference is
procedure Unchecked_Free is new Ada.Unchecked_Deallocation
(Unvisited_Files_Record, Unvisited_Files_Access);
Ref : File_Reference;
Tmp : Unvisited_Files_Access;
begin
if Unvisited_Files = null then
return Empty_File;
else
Tmp := Unvisited_Files;
Ref := Unvisited_Files.File;
Unvisited_Files := Unvisited_Files.Next;
Unchecked_Free (Tmp);
return Ref;
end if;
end Next_Unvisited_File;
----------------------
-- Parse_Gnatls_Src --
----------------------
function Parse_Gnatls_Src return String is
Length : Natural;
begin
Length := 0;
for J in 1 .. Osint.Nb_Dir_In_Src_Search_Path loop
if Osint.Dir_In_Src_Search_Path (J)'Length = 0 then
Length := Length + 2;
else
Length := Length + Osint.Dir_In_Src_Search_Path (J)'Length + 1;
end if;
end loop;
declare
Result : String (1 .. Length);
L : Natural;
begin
L := Result'First;
for J in 1 .. Osint.Nb_Dir_In_Src_Search_Path loop
if Osint.Dir_In_Src_Search_Path (J)'Length = 0 then
Result (L .. L + 1) := "." & Path_Separator;
L := L + 2;
else
Result (L .. L + Osint.Dir_In_Src_Search_Path (J)'Length - 1) :=
Osint.Dir_In_Src_Search_Path (J).all;
L := L + Osint.Dir_In_Src_Search_Path (J)'Length;
Result (L) := Path_Separator;
L := L + 1;
end if;
end loop;
return Result;
end;
end Parse_Gnatls_Src;
----------------------
-- Parse_Gnatls_Obj --
----------------------
function Parse_Gnatls_Obj return String is
Length : Natural;
begin
Length := 0;
for J in 1 .. Osint.Nb_Dir_In_Obj_Search_Path loop
if Osint.Dir_In_Obj_Search_Path (J)'Length = 0 then
Length := Length + 2;
else
Length := Length + Osint.Dir_In_Obj_Search_Path (J)'Length + 1;
end if;
end loop;
declare
Result : String (1 .. Length);
L : Natural;
begin
L := Result'First;
for J in 1 .. Osint.Nb_Dir_In_Obj_Search_Path loop
if Osint.Dir_In_Obj_Search_Path (J)'Length = 0 then
Result (L .. L + 1) := "." & Path_Separator;
L := L + 2;
else
Result (L .. L + Osint.Dir_In_Obj_Search_Path (J)'Length - 1) :=
Osint.Dir_In_Obj_Search_Path (J).all;
L := L + Osint.Dir_In_Obj_Search_Path (J)'Length;
Result (L) := Path_Separator;
L := L + 1;
end if;
end loop;
return Result;
end;
end Parse_Gnatls_Obj;
-------------------
-- Reset_Obj_Dir --
-------------------
procedure Reset_Obj_Dir is
begin
Directories.Obj_Dir_Index := 1;
end Reset_Obj_Dir;
-----------------------
-- Set_Default_Match --
-----------------------
procedure Set_Default_Match (Value : Boolean) is
begin
Default_Match := Value;
end Set_Default_Match;
----------
-- Free --
----------
procedure Free (Str : in out Cst_String_Access) is
function Convert is new Ada.Unchecked_Conversion
(Cst_String_Access, GNAT.OS_Lib.String_Access);
S : GNAT.OS_Lib.String_Access := Convert (Str);
begin
Free (S);
Str := null;
end Free;
---------------------
-- Reset_Directory --
---------------------
procedure Reset_Directory (File : File_Reference) is
begin
Free (File.Dir);
end Reset_Directory;
-------------------
-- Set_Unvisited --
-------------------
procedure Set_Unvisited (File_Ref : File_Reference) is
F : constant String := Get_File (File_Ref, With_Dir => False);
begin
File_Ref.Visited := False;
-- ??? Do not add a source file to the list. This is true at
-- least for gnatxref, and probably for gnatfind as wel
if F'Length > 4
and then F (F'Last - 3 .. F'Last) = ".ali"
then
Unvisited_Files := new Unvisited_Files_Record'
(File => File_Ref,
Next => Unvisited_Files);
end if;
end Set_Unvisited;
----------------------
-- Get_Declarations --
----------------------
function Get_Declarations
(Sorted : Boolean := True)
return Declaration_Array_Access
is
Arr : constant Declaration_Array_Access :=
new Declaration_Array (1 .. Entities_Count);
Decl : Declaration_Reference := Entities_HTable.Get_First;
Index : Natural := Arr'First;
Tmp : Declaration_Reference;
procedure Move (From : Natural; To : Natural);
function Lt (Op1, Op2 : Natural) return Boolean;
-- See GNAT.Heap_Sort_G
--------
-- Lt --
--------
function Lt (Op1, Op2 : Natural) return Boolean is
begin
if Op1 = 0 then
return Is_Less_Than (Tmp, Arr (Op2));
elsif Op2 = 0 then
return Is_Less_Than (Arr (Op1), Tmp);
else
return Is_Less_Than (Arr (Op1), Arr (Op2));
end if;
end Lt;
----------
-- Move --
----------
procedure Move (From : Natural; To : Natural) is
begin
if To = 0 then
Tmp := Arr (From);
elsif From = 0 then
Arr (To) := Tmp;
else
Arr (To) := Arr (From);
end if;
end Move;
package Decl_Sort is new GNAT.Heap_Sort_G (Move, Lt);
-- Start of processing for Get_Declarations
begin
while Decl /= null loop
Arr (Index) := Decl;
Index := Index + 1;
Decl := Entities_HTable.Get_Next;
end loop;
if Sorted and then Arr'Length /= 0 then
Decl_Sort.Sort (Entities_Count);
end if;
return Arr;
end Get_Declarations;
----------------------
-- References_Count --
----------------------
function References_Count
(Decl : Declaration_Reference;
Get_Reads : Boolean := False;
Get_Writes : Boolean := False;
Get_Bodies : Boolean := False)
return Natural
is
function List_Length (E : Reference) return Natural;
-- Return the number of references in E
-----------------
-- List_Length --
-----------------
function List_Length (E : Reference) return Natural is
L : Natural := 0;
E1 : Reference := E;
begin
while E1 /= null loop
L := L + 1;
E1 := E1.Next;
end loop;
return L;
end List_Length;
Length : Natural := 0;
-- Start of processing for References_Count
begin
if Get_Reads then
Length := List_Length (Decl.Ref_Ref);
end if;
if Get_Writes then
Length := Length + List_Length (Decl.Modif_Ref);
end if;
if Get_Bodies then
Length := Length + List_Length (Decl.Body_Ref);
end if;
return Length;
end References_Count;
----------------------
-- Store_References --
----------------------
procedure Store_References
(Decl : Declaration_Reference;
Get_Writes : Boolean := False;
Get_Reads : Boolean := False;
Get_Bodies : Boolean := False;
Get_Declaration : Boolean := False;
Arr : in out Reference_Array;
Index : in out Natural)
is
procedure Add (List : Reference);
-- Add all the references in List to Arr
---------
-- Add --
---------
procedure Add (List : Reference) is
E : Reference := List;
begin
while E /= null loop
Arr (Index) := E;
Index := Index + 1;
E := E.Next;
end loop;
end Add;
-- Start of processing for Store_References
begin
if Get_Declaration then
Add (Decl.Decl);
end if;
if Get_Reads then
Add (Decl.Ref_Ref);
end if;
if Get_Writes then
Add (Decl.Modif_Ref);
end if;
if Get_Bodies then
Add (Decl.Body_Ref);
end if;
end Store_References;
--------------------
-- Get_References --
--------------------
function Get_References
(Decl : Declaration_Reference;
Get_Reads : Boolean := False;
Get_Writes : Boolean := False;
Get_Bodies : Boolean := False)
return Reference_Array_Access
is
Length : constant Natural :=
References_Count (Decl, Get_Reads, Get_Writes, Get_Bodies);
Arr : constant Reference_Array_Access :=
new Reference_Array (1 .. Length);
Index : Natural := Arr'First;
begin
Store_References
(Decl => Decl,
Get_Writes => Get_Writes,
Get_Reads => Get_Reads,
Get_Bodies => Get_Bodies,
Get_Declaration => False,
Arr => Arr.all,
Index => Index);
if Arr'Length /= 0 then
Sort (Arr.all);
end if;
return Arr;
end Get_References;
----------
-- Free --
----------
procedure Free (Arr : in out Reference_Array_Access) is
procedure Internal is new Ada.Unchecked_Deallocation
(Reference_Array, Reference_Array_Access);
begin
Internal (Arr);
end Free;
------------------
-- Is_Parameter --
------------------
function Is_Parameter (Decl : Declaration_Reference) return Boolean is
begin
return Decl.Is_Parameter;
end Is_Parameter;
end Xr_Tabls;
| 28.770885 | 79 | 0.522855 |
3d17ff0f34530e8bece032bd0b5decfbb3a361ce | 119 | adb | Ada | sampleprj/adalib/src/exemple.adb | astyl/AcrobatomaticBuildSystem | a8a4858d723a0673eeeb6f039af05dc86be638a9 | [
"BSD-2-Clause-FreeBSD"
] | 10 | 2019-01-07T20:17:05.000Z | 2022-03-07T20:46:58.000Z | sampleprj/adalib/src/exemple.adb | astyl/AcrobatomaticBuildSystem | a8a4858d723a0673eeeb6f039af05dc86be638a9 | [
"BSD-2-Clause-FreeBSD"
] | 1 | 2019-09-04T11:27:10.000Z | 2019-09-04T15:02:36.000Z | sampleprj/adalib/src/exemple.adb | astyl/AcrobatomaticBuildSystem | a8a4858d723a0673eeeb6f039af05dc86be638a9 | [
"BSD-2-Clause-FreeBSD"
] | 3 | 2019-08-30T10:01:55.000Z | 2022-01-27T21:06:39.000Z | package body Example is
function Hello(i: in Integer) return Integer is
begin
return i+1;
end Hello;
end Example;
| 17 | 48 | 0.747899 |
29280fd3702289185fa85fa2789b07d5a3a6e571 | 8,235 | ads | Ada | zfp-gba/gnat/system.ads | 98devin/ada-gba-dev | 6ebca014b7537117144d878db8d13db49aa00cee | [
"Zlib"
] | 7 | 2021-04-08T02:32:54.000Z | 2022-02-14T01:21:43.000Z | zfp-gba/gnat/system.ads | 98devin/ada-gba-dev | 6ebca014b7537117144d878db8d13db49aa00cee | [
"Zlib"
] | 15 | 2021-04-09T20:13:33.000Z | 2021-12-22T01:03:59.000Z | zfp-gba/gnat/system.ads | 98devin/ada-gba-dev | 6ebca014b7537117144d878db8d13db49aa00cee | [
"Zlib"
] | 1 | 2021-06-12T07:48:05.000Z | 2021-06-12T07:48:05.000Z | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- S Y S T E M --
-- --
-- S p e c --
-- (ARM Version) --
-- --
-- Copyright (C) 1992-2018, Free Software Foundation, Inc. --
-- --
-- This specification is derived from the Ada Reference Manual for use with --
-- GNAT. The copyright notice above, and the license provisions that follow --
-- apply solely to the contents of the part following the private keyword. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 3, or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. --
-- --
-- As a special exception under Section 7 of GPL version 3, you are granted --
-- additional permissions described in the GCC Runtime Library Exception, --
-- version 3.1, as published by the Free Software Foundation. --
-- --
-- You should have received a copy of the GNU General Public License and --
-- a copy of the GCC Runtime Library Exception along with this program; --
-- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
-- <http://www.gnu.org/licenses/>. --
-- --
-- GNAT was originally developed by the GNAT team at New York University. --
-- Extensive contributions were provided by Ada Core Technologies Inc. --
-- --
------------------------------------------------------------------------------
pragma Restrictions (No_Anonymous_Allocators);
pragma Restrictions (No_Exception_Propagation);
pragma Restrictions (No_Exception_Registration);
pragma Restrictions (No_Finalization);
pragma Restrictions (No_Floating_Point);
pragma Restrictions (No_IO);
pragma Restrictions (No_Multiple_Elaboration);
pragma Restrictions (No_Streams);
-- pragma Restrictions (No_Tagged_Type_Registration);
pragma Restrictions (No_Tasking);
pragma Restrictions (No_Unchecked_Deallocation);
pragma Restrictions (Static_Dispatch_Tables);
pragma Profile (Ravenscar);
pragma Discard_Names;
-- Disable explicitly the generation of names associated with entities in
-- order to reduce the amount of storage used. These names are not used anyway
-- (attributes such as 'Image and 'Value are not supported in this run time).
package System is
pragma Pure;
pragma Preelaborate;
-- Note that we take advantage of the implementation permission to make
-- this unit Pure instead of Preelaborable; see RM 13.7.1(15). In Ada
-- 2005, this is Pure in any case (AI-362).
pragma No_Elaboration_Code_All;
-- Allow the use of that restriction in units that WITH this unit
type Name is (SYSTEM_NAME_GNAT);
System_Name : constant Name := SYSTEM_NAME_GNAT;
Run_Time_Name : constant String := "GBA Runtime";
-- System-Dependent Named Numbers
Min_Int : constant := Long_Long_Integer'First;
Max_Int : constant := Long_Long_Integer'Last;
Max_Binary_Modulus : constant := 2 ** Long_Long_Integer'Size;
Max_Nonbinary_Modulus : constant := 2 ** Integer'Size - 1;
Max_Base_Digits : constant := Long_Long_Float'Digits;
Max_Digits : constant := Long_Long_Float'Digits;
Max_Mantissa : constant := 63;
Fine_Delta : constant := 2.0 ** (-Max_Mantissa);
Tick : constant := 0.0;
-- Storage-related Declarations
Storage_Unit : constant := 8;
Word_Size : constant := Standard'Word_Size;
Memory_Size : constant := 2 ** Word_Size;
type Word is mod 2 ** Word_Size;
type Byte is mod 2 ** Storage_Unit;
type Address is mod Memory_Size;
pragma Provide_Shift_Operators (Address);
Null_Address : constant Address := 0;
-- Address comparison
function "<" (Left, Right : Address) return Boolean;
function "<=" (Left, Right : Address) return Boolean;
function ">" (Left, Right : Address) return Boolean;
function ">=" (Left, Right : Address) return Boolean;
function "=" (Left, Right : Address) return Boolean;
pragma Import (Intrinsic, "<");
pragma Import (Intrinsic, "<=");
pragma Import (Intrinsic, ">");
pragma Import (Intrinsic, ">=");
pragma Import (Intrinsic, "=");
-- Other System-Dependent Declarations
type Bit_Order is (High_Order_First, Low_Order_First);
Default_Bit_Order : constant Bit_Order :=
Bit_Order'Val (Standard'Default_Bit_Order);
pragma Warnings (Off, Default_Bit_Order); -- kill constant condition warning
-- Priority-related Declarations (RM D.1)
Max_Priority : constant Positive := 30;
Max_Interrupt_Priority : constant Positive := 31;
subtype Any_Priority is Integer range 0 .. 31;
subtype Priority is Any_Priority range 0 .. 30;
subtype Interrupt_Priority is Any_Priority range 31 .. 31;
Default_Priority : constant Priority := 15;
private
--------------------------------------
-- System Implementation Parameters --
--------------------------------------
-- These parameters provide information about the target that is used
-- by the compiler. They are in the private part of System, where they
-- can be accessed using the special circuitry in the Targparm unit
-- whose source should be consulted for more detailed descriptions
-- of the individual switch values.
Atomic_Sync_Default : constant Boolean := False;
Backend_Divide_Checks : constant Boolean := False;
Backend_Overflow_Checks : constant Boolean := True;
Always_Compatible_Rep : constant Boolean := False;
Command_Line_Args : constant Boolean := False;
Configurable_Run_Time : constant Boolean := True;
Denorm : constant Boolean := True;
Duration_32_Bits : constant Boolean := True;
Exit_Status_Supported : constant Boolean := False;
Fractional_Fixed_Ops : constant Boolean := True;
Frontend_Exceptions : constant Boolean := False;
Frontend_Layout : constant Boolean := False;
Functions_Return_By_DSP : constant Boolean := False;
Machine_Overflows : constant Boolean := False;
Machine_Rounds : constant Boolean := True;
Preallocated_Stacks : constant Boolean := True;
Signed_Zeros : constant Boolean := False;
Stack_Check_Default : constant Boolean := False;
Stack_Check_Limits : constant Boolean := False;
Stack_Check_Probes : constant Boolean := False;
Support_Aggregates : constant Boolean := True;
Support_Composite_Assign : constant Boolean := True;
Support_Composite_Compare : constant Boolean := True;
Support_Long_Shifts : constant Boolean := True;
Suppress_Standard_Library : constant Boolean := True;
Use_Ada_Main_Program_Name : constant Boolean := False;
ZCX_By_Default : constant Boolean := True;
end System;
| 46.525424 | 79 | 0.578385 |
c78d51125ee53f95051598a705d6ec5b01af3517 | 2,858 | ads | Ada | support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/a-einuoc.ads | orb-zhuchen/Orb | 6da2404b949ac28bde786e08bf4debe4a27cd3a0 | [
"CNRI-Python-GPL-Compatible",
"MIT"
] | null | null | null | support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/a-einuoc.ads | orb-zhuchen/Orb | 6da2404b949ac28bde786e08bf4debe4a27cd3a0 | [
"CNRI-Python-GPL-Compatible",
"MIT"
] | null | null | null | support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/a-einuoc.ads | orb-zhuchen/Orb | 6da2404b949ac28bde786e08bf4debe4a27cd3a0 | [
"CNRI-Python-GPL-Compatible",
"MIT"
] | null | null | null | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- A D A . E X C E P T I O N S . I S _ N U L L _ O C C U R R E N C E --
-- --
-- S p e c --
-- --
-- Copyright (C) 2000-2019, Free Software Foundation, Inc. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 3, or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. --
-- --
-- As a special exception under Section 7 of GPL version 3, you are granted --
-- additional permissions described in the GCC Runtime Library Exception, --
-- version 3.1, as published by the Free Software Foundation. --
-- --
-- You should have received a copy of the GNU General Public License and --
-- a copy of the GCC Runtime Library Exception along with this program; --
-- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
-- <http://www.gnu.org/licenses/>. --
-- --
-- GNAT was originally developed by the GNAT team at New York University. --
-- Extensive contributions were provided by Ada Core Technologies Inc. --
-- --
------------------------------------------------------------------------------
-- This is a GNAT-specific child function of Ada.Exceptions. It provides
-- clearly missing functionality for its parent package, and most reasonably
-- would simply be an added function to that package, but this change cannot
-- be made in a conforming manner.
function Ada.Exceptions.Is_Null_Occurrence
(X : Exception_Occurrence) return Boolean;
pragma Preelaborate (Ada.Exceptions.Is_Null_Occurrence);
-- This function yields True if X is Null_Occurrence, and False otherwise
| 69.707317 | 78 | 0.443667 |
c73eec9a21772ea730ef0d4b1f870fbf747e3a55 | 956 | adb | Ada | generated/simple_webapps-commands-upload_servers-config.adb | faelys/simple-webapps | 32f4f567cddb54a1703c9b6a8232f01073c92a44 | [
"0BSD"
] | 1 | 2017-03-13T21:40:47.000Z | 2017-03-13T21:40:47.000Z | generated/simple_webapps-commands-upload_servers-config.adb | faelys/simple-webapps | 32f4f567cddb54a1703c9b6a8232f01073c92a44 | [
"0BSD"
] | null | null | null | generated/simple_webapps-commands-upload_servers-config.adb | faelys/simple-webapps | 32f4f567cddb54a1703c9b6a8232f01073c92a44 | [
"0BSD"
] | null | null | null | with Interfaces; use Interfaces;
package body Simple_Webapps.Commands.Upload_Servers.Config is
P : constant array (0 .. 1) of Natural :=
(1, 8);
T1 : constant array (0 .. 1) of Unsigned_8 :=
(19, 21);
T2 : constant array (0 .. 1) of Unsigned_8 :=
(21, 17);
G : constant array (0 .. 23) of Unsigned_8 :=
(0, 0, 0, 0, 6, 0, 5, 0, 6, 0, 0, 0, 4, 9, 0, 8, 0, 3, 0, 10, 0, 0, 7,
0);
function Hash (S : String) return Natural is
F : constant Natural := S'First - 1;
L : constant Natural := S'Length;
F1, F2 : Natural := 0;
J : Natural;
begin
for K in P'Range loop
exit when L < P (K);
J := Character'Pos (S (P (K) + F));
F1 := (F1 + Natural (T1 (K)) * J) mod 24;
F2 := (F2 + Natural (T2 (K)) * J) mod 24;
end loop;
return (Natural (G (F1)) + Natural (G (F2))) mod 11;
end Hash;
end Simple_Webapps.Commands.Upload_Servers.Config;
| 28.117647 | 75 | 0.531381 |
58c1c314bcd88af2b695de3c01daf1ec61f91a24 | 226 | ads | Ada | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/address_null_init.ads | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | 7 | 2020-05-02T17:34:05.000Z | 2021-10-17T10:15:18.000Z | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/address_null_init.ads | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | null | null | null | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/address_null_init.ads | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | 2 | 2020-07-27T00:22:36.000Z | 2021-04-01T09:41:02.000Z | package Address_Null_Init is
type Acc is access Integer;
A : Acc := new Integer'(123);
B : Acc; -- Variable must be set to null (and A overwritten by null)
for B'Address use A'Address;
end Address_Null_Init;
| 25.111111 | 72 | 0.685841 |
58d1e04a81573174a81bf91f29ab62f8c58a28fa | 929 | adb | Ada | stm32f1/stm32gd-usb.adb | ekoeppen/STM32_Generic_Ada_Drivers | 4ff29c3026c4b24280baf22a5b81ea9969375466 | [
"MIT"
] | 1 | 2021-04-06T07:57:56.000Z | 2021-04-06T07:57:56.000Z | stm32f1/stm32gd-usb.adb | ekoeppen/STM32_Generic_Ada_Drivers | 4ff29c3026c4b24280baf22a5b81ea9969375466 | [
"MIT"
] | null | null | null | stm32f1/stm32gd-usb.adb | ekoeppen/STM32_Generic_Ada_Drivers | 4ff29c3026c4b24280baf22a5b81ea9969375466 | [
"MIT"
] | 2 | 2018-05-29T13:59:31.000Z | 2019-02-03T19:48:08.000Z | package body STM32GD.USB is
function EP_Unused_Reset (BTable_Offset : Integer) return Integer is
begin
return BTable_Offset;
end EP_Unused_Reset;
procedure EP_Unused_Handler (Out_Transaction : Boolean) is
begin
null;
end EP_Unused_Handler;
procedure Set_TX_Status (EP : Endpoint_Range; Status : EP_Status) is
begin
USB_Endpoints (EP).STAT_TX := USB_Endpoints (EP).STAT_TX xor Status'Enum_Rep;
end Set_TX_Status;
procedure Set_RX_Status (EP : Endpoint_Range; Status : EP_Status) is
begin
USB_Endpoints (EP).STAT_RX := USB_Endpoints (EP).STAT_RX xor Status'Enum_Rep;
end Set_RX_Status;
procedure Set_TX_RX_Status (EP : Endpoint_Range; TX_Status : EP_Status; RX_Status : EP_Status) is
begin
USB_Endpoints (EP).STAT_TX := USB_Endpoints (EP).STAT_TX xor TX_Status'Enum_Rep;
USB_Endpoints (EP).STAT_RX := USB_Endpoints (EP).STAT_RX xor RX_Status'Enum_Rep;
end Set_TX_RX_Status;
end STM32GD.USB;
| 29.967742 | 100 | 0.775027 |
29760f6729097dfa71477d37c359f6066f71964a | 13,469 | adb | Ada | source/amf/uml/amf-internals-uml_any_receive_events.adb | svn2github/matreshka | 9d222b3ad9da508855fb1f5adbe5e8a4fad4c530 | [
"BSD-3-Clause"
] | 24 | 2016-11-29T06:59:41.000Z | 2021-08-30T11:55:16.000Z | source/amf/uml/amf-internals-uml_any_receive_events.adb | svn2github/matreshka | 9d222b3ad9da508855fb1f5adbe5e8a4fad4c530 | [
"BSD-3-Clause"
] | 2 | 2019-01-16T05:15:20.000Z | 2019-02-03T10:03:32.000Z | source/amf/uml/amf-internals-uml_any_receive_events.adb | svn2github/matreshka | 9d222b3ad9da508855fb1f5adbe5e8a4fad4c530 | [
"BSD-3-Clause"
] | 4 | 2017-07-18T07:11:05.000Z | 2020-06-21T03:02:25.000Z | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- Ada Modeling Framework --
-- --
-- Runtime Library Component --
-- --
------------------------------------------------------------------------------
-- --
-- Copyright © 2011-2012, Vadim Godunko <[email protected]> --
-- All rights reserved. --
-- --
-- Redistribution and use in source and binary forms, with or without --
-- modification, are permitted provided that the following conditions --
-- are met: --
-- --
-- * Redistributions of source code must retain the above copyright --
-- notice, this list of conditions and the following disclaimer. --
-- --
-- * Redistributions in binary form must reproduce the above copyright --
-- notice, this list of conditions and the following disclaimer in the --
-- documentation and/or other materials provided with the distribution. --
-- --
-- * Neither the name of the Vadim Godunko, IE nor the names of its --
-- contributors may be used to endorse or promote products derived from --
-- this software without specific prior written permission. --
-- --
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS --
-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT --
-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR --
-- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT --
-- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, --
-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED --
-- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR --
-- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF --
-- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING --
-- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS --
-- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --
-- --
------------------------------------------------------------------------------
-- $Revision$ $Date$
------------------------------------------------------------------------------
with AMF.Elements;
with AMF.Internals.Element_Collections;
with AMF.Internals.Helpers;
with AMF.Internals.Tables.UML_Attributes;
with AMF.Visitors.UML_Iterators;
with AMF.Visitors.UML_Visitors;
with League.Strings.Internals;
with Matreshka.Internals.Strings;
package body AMF.Internals.UML_Any_Receive_Events is
-------------------
-- Enter_Element --
-------------------
overriding procedure Enter_Element
(Self : not null access constant UML_Any_Receive_Event_Proxy;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Control : in out AMF.Visitors.Traverse_Control) is
begin
if Visitor in AMF.Visitors.UML_Visitors.UML_Visitor'Class then
AMF.Visitors.UML_Visitors.UML_Visitor'Class
(Visitor).Enter_Any_Receive_Event
(AMF.UML.Any_Receive_Events.UML_Any_Receive_Event_Access (Self),
Control);
end if;
end Enter_Element;
-------------------
-- Leave_Element --
-------------------
overriding procedure Leave_Element
(Self : not null access constant UML_Any_Receive_Event_Proxy;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Control : in out AMF.Visitors.Traverse_Control) is
begin
if Visitor in AMF.Visitors.UML_Visitors.UML_Visitor'Class then
AMF.Visitors.UML_Visitors.UML_Visitor'Class
(Visitor).Leave_Any_Receive_Event
(AMF.UML.Any_Receive_Events.UML_Any_Receive_Event_Access (Self),
Control);
end if;
end Leave_Element;
-------------------
-- Visit_Element --
-------------------
overriding procedure Visit_Element
(Self : not null access constant UML_Any_Receive_Event_Proxy;
Iterator : in out AMF.Visitors.Abstract_Iterator'Class;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Control : in out AMF.Visitors.Traverse_Control) is
begin
if Iterator in AMF.Visitors.UML_Iterators.UML_Iterator'Class then
AMF.Visitors.UML_Iterators.UML_Iterator'Class
(Iterator).Visit_Any_Receive_Event
(Visitor,
AMF.UML.Any_Receive_Events.UML_Any_Receive_Event_Access (Self),
Control);
end if;
end Visit_Element;
---------------------------
-- Get_Client_Dependency --
---------------------------
overriding function Get_Client_Dependency
(Self : not null access constant UML_Any_Receive_Event_Proxy)
return AMF.UML.Dependencies.Collections.Set_Of_UML_Dependency is
begin
return
AMF.UML.Dependencies.Collections.Wrap
(AMF.Internals.Element_Collections.Wrap
(AMF.Internals.Tables.UML_Attributes.Internal_Get_Client_Dependency
(Self.Element)));
end Get_Client_Dependency;
-------------------------
-- Get_Name_Expression --
-------------------------
overriding function Get_Name_Expression
(Self : not null access constant UML_Any_Receive_Event_Proxy)
return AMF.UML.String_Expressions.UML_String_Expression_Access is
begin
return
AMF.UML.String_Expressions.UML_String_Expression_Access
(AMF.Internals.Helpers.To_Element
(AMF.Internals.Tables.UML_Attributes.Internal_Get_Name_Expression
(Self.Element)));
end Get_Name_Expression;
-------------------------
-- Set_Name_Expression --
-------------------------
overriding procedure Set_Name_Expression
(Self : not null access UML_Any_Receive_Event_Proxy;
To : AMF.UML.String_Expressions.UML_String_Expression_Access) is
begin
AMF.Internals.Tables.UML_Attributes.Internal_Set_Name_Expression
(Self.Element,
AMF.Internals.Helpers.To_Element
(AMF.Elements.Element_Access (To)));
end Set_Name_Expression;
-------------------
-- Get_Namespace --
-------------------
overriding function Get_Namespace
(Self : not null access constant UML_Any_Receive_Event_Proxy)
return AMF.UML.Namespaces.UML_Namespace_Access is
begin
return
AMF.UML.Namespaces.UML_Namespace_Access
(AMF.Internals.Helpers.To_Element
(AMF.Internals.Tables.UML_Attributes.Internal_Get_Namespace
(Self.Element)));
end Get_Namespace;
------------------------
-- Get_Qualified_Name --
------------------------
overriding function Get_Qualified_Name
(Self : not null access constant UML_Any_Receive_Event_Proxy)
return AMF.Optional_String is
begin
declare
use type Matreshka.Internals.Strings.Shared_String_Access;
Aux : constant Matreshka.Internals.Strings.Shared_String_Access
:= AMF.Internals.Tables.UML_Attributes.Internal_Get_Qualified_Name (Self.Element);
begin
if Aux = null then
return (Is_Empty => True);
else
return (False, League.Strings.Internals.Create (Aux));
end if;
end;
end Get_Qualified_Name;
-----------------------------------
-- Get_Owning_Template_Parameter --
-----------------------------------
overriding function Get_Owning_Template_Parameter
(Self : not null access constant UML_Any_Receive_Event_Proxy)
return AMF.UML.Template_Parameters.UML_Template_Parameter_Access is
begin
return
AMF.UML.Template_Parameters.UML_Template_Parameter_Access
(AMF.Internals.Helpers.To_Element
(AMF.Internals.Tables.UML_Attributes.Internal_Get_Owning_Template_Parameter
(Self.Element)));
end Get_Owning_Template_Parameter;
-----------------------------------
-- Set_Owning_Template_Parameter --
-----------------------------------
overriding procedure Set_Owning_Template_Parameter
(Self : not null access UML_Any_Receive_Event_Proxy;
To : AMF.UML.Template_Parameters.UML_Template_Parameter_Access) is
begin
AMF.Internals.Tables.UML_Attributes.Internal_Set_Owning_Template_Parameter
(Self.Element,
AMF.Internals.Helpers.To_Element
(AMF.Elements.Element_Access (To)));
end Set_Owning_Template_Parameter;
----------------------------
-- Get_Template_Parameter --
----------------------------
overriding function Get_Template_Parameter
(Self : not null access constant UML_Any_Receive_Event_Proxy)
return AMF.UML.Template_Parameters.UML_Template_Parameter_Access is
begin
return
AMF.UML.Template_Parameters.UML_Template_Parameter_Access
(AMF.Internals.Helpers.To_Element
(AMF.Internals.Tables.UML_Attributes.Internal_Get_Template_Parameter
(Self.Element)));
end Get_Template_Parameter;
----------------------------
-- Set_Template_Parameter --
----------------------------
overriding procedure Set_Template_Parameter
(Self : not null access UML_Any_Receive_Event_Proxy;
To : AMF.UML.Template_Parameters.UML_Template_Parameter_Access) is
begin
AMF.Internals.Tables.UML_Attributes.Internal_Set_Template_Parameter
(Self.Element,
AMF.Internals.Helpers.To_Element
(AMF.Elements.Element_Access (To)));
end Set_Template_Parameter;
-------------------------
-- All_Owning_Packages --
-------------------------
overriding function All_Owning_Packages
(Self : not null access constant UML_Any_Receive_Event_Proxy)
return AMF.UML.Packages.Collections.Set_Of_UML_Package is
begin
-- Generated stub: replace with real body!
pragma Compile_Time_Warning (Standard.True, "All_Owning_Packages unimplemented");
raise Program_Error with "Unimplemented procedure UML_Any_Receive_Event_Proxy.All_Owning_Packages";
return All_Owning_Packages (Self);
end All_Owning_Packages;
-----------------------------
-- Is_Distinguishable_From --
-----------------------------
overriding function Is_Distinguishable_From
(Self : not null access constant UML_Any_Receive_Event_Proxy;
N : AMF.UML.Named_Elements.UML_Named_Element_Access;
Ns : AMF.UML.Namespaces.UML_Namespace_Access)
return Boolean is
begin
-- Generated stub: replace with real body!
pragma Compile_Time_Warning (Standard.True, "Is_Distinguishable_From unimplemented");
raise Program_Error with "Unimplemented procedure UML_Any_Receive_Event_Proxy.Is_Distinguishable_From";
return Is_Distinguishable_From (Self, N, Ns);
end Is_Distinguishable_From;
---------------
-- Namespace --
---------------
overriding function Namespace
(Self : not null access constant UML_Any_Receive_Event_Proxy)
return AMF.UML.Namespaces.UML_Namespace_Access is
begin
-- Generated stub: replace with real body!
pragma Compile_Time_Warning (Standard.True, "Namespace unimplemented");
raise Program_Error with "Unimplemented procedure UML_Any_Receive_Event_Proxy.Namespace";
return Namespace (Self);
end Namespace;
------------------------
-- Is_Compatible_With --
------------------------
overriding function Is_Compatible_With
(Self : not null access constant UML_Any_Receive_Event_Proxy;
P : AMF.UML.Parameterable_Elements.UML_Parameterable_Element_Access)
return Boolean is
begin
-- Generated stub: replace with real body!
pragma Compile_Time_Warning (Standard.True, "Is_Compatible_With unimplemented");
raise Program_Error with "Unimplemented procedure UML_Any_Receive_Event_Proxy.Is_Compatible_With";
return Is_Compatible_With (Self, P);
end Is_Compatible_With;
---------------------------
-- Is_Template_Parameter --
---------------------------
overriding function Is_Template_Parameter
(Self : not null access constant UML_Any_Receive_Event_Proxy)
return Boolean is
begin
-- Generated stub: replace with real body!
pragma Compile_Time_Warning (Standard.True, "Is_Template_Parameter unimplemented");
raise Program_Error with "Unimplemented procedure UML_Any_Receive_Event_Proxy.Is_Template_Parameter";
return Is_Template_Parameter (Self);
end Is_Template_Parameter;
end AMF.Internals.UML_Any_Receive_Events;
| 41.69969 | 109 | 0.598782 |
57fa5812c1d8b2736f42c26a08434bda03076fed | 2,581 | adb | Ada | llvm-gcc-4.2-2.9/gcc/ada/s-auxdec-empty.adb | vidkidz/crossbridge | ba0bf94aee0ce6cf7eb5be882382e52bc57ba396 | [
"MIT"
] | 1 | 2016-04-09T02:58:13.000Z | 2016-04-09T02:58:13.000Z | llvm-gcc-4.2-2.9/gcc/ada/s-auxdec-empty.adb | vidkidz/crossbridge | ba0bf94aee0ce6cf7eb5be882382e52bc57ba396 | [
"MIT"
] | null | null | null | llvm-gcc-4.2-2.9/gcc/ada/s-auxdec-empty.adb | vidkidz/crossbridge | ba0bf94aee0ce6cf7eb5be882382e52bc57ba396 | [
"MIT"
] | null | null | null | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- S Y S T E M . A U X _ D E C --
-- --
-- B o d y --
-- --
-- Copyright (C) 2005 Free Software Foundation, Inc. --
-- --
-- GNAT is free software; you can redistribute it and/Or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 2, Or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- Or FITNESS FOr A PARTICULAR PURPOSE. See the GNU General Public License --
-- fOr mOre details. You should have received a copy of the GNU General --
-- Public License distributed with GNAT; see file COPYING. If not, write --
-- to the Free Software Foundation, 51 Franklin Street, Fifth Floor, --
-- Boston, MA 02110-1301, USA. --
-- --
-- As a special exception, if other files instantiate generics from this --
-- unit, Or you link this unit with other files to produce an executable, --
-- this unit does not by itself cause the resulting executable to be --
-- covered by the GNU General Public License. This exception does not --
-- however invalidate any other reasons why the executable file might be --
-- covered by the GNU Public License. --
-- --
-- GNAT was originally developed by the GNAT team at New York University. --
-- Extensive contributions were provided by Ada Core Technologies Inc. --
-- --
------------------------------------------------------------------------------
package body System.Aux_DEC is
end System.Aux_DEC;
| 69.756757 | 78 | 0.414568 |
1d6f2a0e11dcc35a9e40929521c7b72519273d21 | 831 | adb | Ada | Read Only/gdb-6.8/gdb/testsuite/gdb.ada/tagged/pck.adb | samyvic/OS-Project | 1622bc1641876584964effd91d65ef02e92728e1 | [
"Apache-2.0"
] | null | null | null | Read Only/gdb-6.8/gdb/testsuite/gdb.ada/tagged/pck.adb | samyvic/OS-Project | 1622bc1641876584964effd91d65ef02e92728e1 | [
"Apache-2.0"
] | null | null | null | Read Only/gdb-6.8/gdb/testsuite/gdb.ada/tagged/pck.adb | samyvic/OS-Project | 1622bc1641876584964effd91d65ef02e92728e1 | [
"Apache-2.0"
] | null | null | null | -- Copyright 2008 Free Software Foundation, Inc.
--
-- This program is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation; either version 3 of the License, or
-- (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program. If not, see <http://www.gnu.org/licenses/>.
package body Pck is
procedure Do_Nothing (A : System.Address) is
begin
null;
end Do_Nothing;
end Pck;
| 31.961538 | 73 | 0.725632 |
5724bb5522b8a62cd7ab5bcdd34da3e39df82975 | 315 | ada | Ada | Task/Exceptions/Ada/exceptions-5.ada | mullikine/RosettaCodeData | 4f0027c6ce83daa36118ee8b67915a13cd23ab67 | [
"Info-ZIP"
] | 1 | 2018-11-09T22:08:38.000Z | 2018-11-09T22:08:38.000Z | Task/Exceptions/Ada/exceptions-5.ada | mullikine/RosettaCodeData | 4f0027c6ce83daa36118ee8b67915a13cd23ab67 | [
"Info-ZIP"
] | null | null | null | Task/Exceptions/Ada/exceptions-5.ada | mullikine/RosettaCodeData | 4f0027c6ce83daa36118ee8b67915a13cd23ab67 | [
"Info-ZIP"
] | 1 | 2018-11-09T22:08:40.000Z | 2018-11-09T22:08:40.000Z | with Ada.Exceptions; use Ada.Exceptions;
with Ada.Text_IO; use Ada.Text_IO;
procedure Main is
begin
...
Raise_Exception (Foo_Error'Identity, "This is the exception message");
..
exception
when Error : others =>
Put_Line ("Something is wrong here" & Exception_Information (Error));
end Main;
| 24.230769 | 75 | 0.704762 |
585a4b55a8a9e400a5b82932df79a92735b881bb | 3,796 | adb | Ada | src/servlet-streams.adb | jquorning/ada-servlet | 97db5fcdd59e01441c717b95a9e081aa7d6a7bbe | [
"Apache-2.0"
] | 6 | 2018-01-04T07:19:46.000Z | 2020-12-27T14:49:44.000Z | src/servlet-streams.adb | jquorning/ada-servlet | 97db5fcdd59e01441c717b95a9e081aa7d6a7bbe | [
"Apache-2.0"
] | 9 | 2020-12-20T15:29:18.000Z | 2022-02-04T20:13:58.000Z | src/servlet-streams.adb | jquorning/ada-servlet | 97db5fcdd59e01441c717b95a9e081aa7d6a7bbe | [
"Apache-2.0"
] | 2 | 2021-01-06T08:32:38.000Z | 2022-01-24T23:46:36.000Z | -----------------------------------------------------------------------
-- Servlet.Streams -- Print streams for servlets
-- Copyright (C) 2010, 2011, 2012, 2013, 2018, 2020 Stephane Carrez
-- Written by Stephane Carrez ([email protected])
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.
-----------------------------------------------------------------------
package body Servlet.Streams is
procedure Initialize (Stream : in out Print_Stream;
To : in Util.Streams.Texts.Print_Stream_Access) is
begin
Stream.Target := To;
end Initialize;
-- ------------------------------
-- Initialize the stream
-- ------------------------------
procedure Initialize (Stream : in out Print_Stream;
To : in Print_Stream'Class) is
begin
Stream.Target := To.Target;
end Initialize;
-- ------------------------------
-- Write an integer on the stream.
-- ------------------------------
procedure Write (Stream : in out Print_Stream;
Item : in Integer) is
begin
Stream.Target.Write (Item);
end Write;
-- ------------------------------
-- Write a string on the stream.
-- ------------------------------
procedure Write (Stream : in out Print_Stream;
Item : in Ada.Strings.Unbounded.Unbounded_String) is
begin
Stream.Target.Write (Item);
end Write;
-- ------------------------------
-- Write a string on the stream.
-- ------------------------------
procedure Write (Stream : in out Print_Stream;
Item : in Ada.Strings.Wide_Wide_Unbounded.Unbounded_Wide_Wide_String) is
begin
Stream.Target.Write (Item);
end Write;
-- ------------------------------
-- Write the object converted into a string on the stream.
-- ------------------------------
procedure Write (Stream : in out Print_Stream;
Item : in EL.Objects.Object) is
begin
Stream.Target.Write (EL.Objects.To_String (Item));
end Write;
-- ------------------------------
-- Write the buffer array to the output stream.
-- ------------------------------
procedure Write (Stream : in out Print_Stream;
Buffer : in Ada.Streams.Stream_Element_Array) is
begin
Stream.Target.Write (Buffer);
end Write;
-- ------------------------------
-- Flush the buffer by writing on the output stream.
-- Raises Data_Error if there is no output stream.
-- ------------------------------
procedure Flush (Stream : in out Print_Stream) is
begin
Stream.Target.Flush;
end Flush;
-- ------------------------------
-- Close the text stream.
-- ------------------------------
overriding
procedure Close (Stream : in out Print_Stream) is
begin
Stream.Target.Close;
end Close;
-- ------------------------------
-- Write into the text stream.
-- ------------------------------
procedure Write (Stream : in out Print_Stream;
Print : access procedure
(Into : in out Util.Streams.Texts.Print_Stream'Class)) is
begin
Print (Into => Stream.Target.all);
end Write;
end Servlet.Streams;
| 34.509091 | 94 | 0.511855 |
2903a6513b7d421dee1ae7f23ef99fc32b11f533 | 303 | adb | Ada | problems/091/a091.adb | melwyncarlo/ProjectEuler | c4d30ed528ae6de82232f3d2044d608c6e8f1c37 | [
"MIT"
] | null | null | null | problems/091/a091.adb | melwyncarlo/ProjectEuler | c4d30ed528ae6de82232f3d2044d608c6e8f1c37 | [
"MIT"
] | null | null | null | problems/091/a091.adb | melwyncarlo/ProjectEuler | c4d30ed528ae6de82232f3d2044d608c6e8f1c37 | [
"MIT"
] | null | null | null | with Ada.Text_IO;
with Ada.Integer_Text_IO;
-- Copyright 2021 Melwyn Francis Carlo
procedure A091 is
use Ada.Text_IO;
use Ada.Integer_Text_IO;
Str : constant String (1 .. 12) := "Hello World ";
Num : constant Integer := 2021;
begin
Put (Str);
Put (Num, Width => 0);
end A091;
| 14.428571 | 53 | 0.653465 |
588095ceafbb4b912d5bb2d6fd0756b5229ac75d | 19,308 | adb | Ada | unicode-ucd.adb | annexi-strayline/ASAP-Unicode | a34b52c41378c3cfe777e59bfee634caa64767d6 | [
"BSD-3-Clause"
] | 1 | 2021-11-08T01:20:55.000Z | 2021-11-08T01:20:55.000Z | unicode-ucd.adb | annexi-strayline/ASAP-Unicode | a34b52c41378c3cfe777e59bfee634caa64767d6 | [
"BSD-3-Clause"
] | null | null | null | unicode-ucd.adb | annexi-strayline/ASAP-Unicode | a34b52c41378c3cfe777e59bfee634caa64767d6 | [
"BSD-3-Clause"
] | null | null | null | ------------------------------------------------------------------------------
-- --
-- Unicode Utilities --
-- --
-- Unicode Character Database (UCD) Utilities --
-- --
-- ------------------------------------------------------------------------ --
-- --
-- Copyright (C) 2019, ANNEXI-STRAYLINE Trans-Human Ltd. --
-- All rights reserved. --
-- --
-- Original Contributors: --
-- * Richard Wai (ANNEXI-STRAYLINE) --
-- --
-- Redistribution and use in source and binary forms, with or without --
-- modification, are permitted provided that the following conditions are --
-- met: --
-- --
-- * Redistributions of source code must retain the above copyright --
-- notice, this list of conditions and the following disclaimer. --
-- --
-- * Redistributions in binary form must reproduce the above copyright --
-- notice, this list of conditions and the following disclaimer in --
-- the documentation and/or other materials provided with the --
-- distribution. --
-- --
-- * Neither the name of the copyright holder nor the names of its --
-- contributors may be used to endorse or promote products derived --
-- from this software without specific prior written permission. --
-- --
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS --
-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT --
-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A --
-- PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT --
-- OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, --
-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT --
-- LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, --
-- DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY --
-- THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT --
-- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE --
-- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --
-- --
------------------------------------------------------------------------------
with Ada.Exceptions; use Ada;
with Ada.IO_Exceptions;
with Ada.Characters.Conversions;
with Ada.Characters.Latin_1;
with Ada.Strings;
with Hex;
with Hex.Unsigned_24;
with Unicode.UTF8_Stream_Decoder;
package body Unicode.UCD is
use type Hex.Hex_Character;
----------------
-- Next_Entry --
----------------
function Next_Entry
(Stream: not null access Ada.Streams.Root_Stream_Type'Class)
return UCD_Entry
is
use type Ada.Streams.Root_Stream_Type;
subtype Root_Stream_Type is Ada.Streams.Root_Stream_Type;
function Next_Character
(UTF8_Stream: not null access Root_Stream_Type'Class
:= Stream)
return Wide_Wide_Character
renames Unicode.UTF8_Stream_Decoder.Decode_Next;
function Next_Character
(UTF8_Stream: not null access Root_Stream_Type'Class
:= Stream)
return Character
renames Unicode.UTF8_Stream_Decoder.Decode_Next;
CR: Character renames Ada.Characters.Latin_1.CR;
LF: Character renames Ada.Characters.Latin_1.LF;
WW_CR: constant Wide_Wide_Character
:= Wide_Wide_Character'Val (Character'Pos (CR));
WW_LF: constant Wide_Wide_Character
:= Wide_Wide_Character'Val (Character'Pos (LF));
WWC: Wide_Wide_Character;
C : Character;
-- Seek_Entry_Start --
----------------------
-- Attempts to seek to the first digit of the initial codepoint of the
-- next entry. If successful, C contains the first hex digit of the
-- entry, otherwise Bad_Data is raised.
procedure Seek_Entry_Start with Inline is
begin
-- We should be positioned at the start of a line.
-- The first thing we want to find is the value of the first
-- codepoint of a poential range. We expect to find spaces,
-- '#' or a hexidecimal digit, anything else and we bail.
-- if it's a '#', we then look for a single LF character before
-- trying again (on the next line).
loop
begin
C := Next_Character;
exception
-- Check for an end of file condition - this can happen when
-- the very last lines are comments. If we have an end error
-- here, we'll just propegate it
when IO_Exceptions.End_Error => raise;
-- Otherwise, it's probably a wide-wide character or bad utf-8,
-- either case, this shouldn't happen. yet
when e: others =>
raise Bad_Data with
"Exception while looking for codepoint range: " &
Ada.Exceptions.Exception_Information (e);
end;
exit when C in Hex.Hex_Character;
case C is
when '#' =>
-- Comment. Comments can be any UTF-8 character,
-- and we should discard those until we find a
-- single Line-feed or a Carriage-return followed
-- by a line-feed (why not, we'll place nice)
begin
loop
WWC := Next_Character;
exit when WWC = WW_LF;
if WWC = WW_CR then
WWC := Next_Character;
if WWC /= WW_LF then
raise Bad_Data with
"CR not followed by LF.";
end if;
end if;
end loop;
exception
when Bad_Data => raise;
when e: others =>
raise Bad_Data with
"Exception while looking for end of comment - " &
"where comment is before the first entry " &
" of the file: " &
Ada.Exceptions.Exception_Information (e);
end;
-- Leading whitespace is ignored
when CR =>
C := Next_Character;
if C /= LF then
raise Bad_Data with "CR not followed by LF.";
end if;
when LF | ' ' =>
-- This is fine, skip
null;
when others =>
-- We already left the loop if it was a valid hexadecimal
-- digit, so this must be something else entirely.
-- a ';' would definately be illegal since we really need to
-- know at least the first codepoint!
raise Bad_Data with
"Unexpected '" & C
& "' while looking for first codepoint.";
end case;
end loop;
exception
when Bad_Data | IO_Exceptions.End_Error => raise;
when e: others =>
raise Bad_Data with "Unexpected exception while seeking "
& "first codepoint: "
& Ada.Exceptions.Exception_Information (e);
end Seek_Entry_Start;
-- Parse_Codepoints --
----------------------
-- Following a call to Seek_Entry_Start, C is expected to cointain
-- a single Hex digit. This procedure attempts to parse the codepoint
-- range or singleton
procedure Parse_Codepoints (First, Last: out Wide_Wide_Character)
with Inline
is
use Hex.Unsigned_24;
Codepoint_Hex: String (1 .. 6);
Last_Digit: Natural;
Is_Range : Boolean;
procedure Load_Codepoint_String with Inline is
begin
-- First (most significant) digit is loaded "manually",
-- we are here to fill-out the rest
Is_Range := False;
for I in 2 .. Codepoint_Hex'Last + 1 loop
C := Next_Character;
case C is
when Hex.Hex_Character =>
if I > Codepoint_Hex'Last then
raise Bad_Data with
"Codepoint is longer than the allowed maximum";
else
Codepoint_Hex(I) := C;
end if;
when '.' =>
-- Next character *must* be '.' also.
if Next_Character /= Wide_Wide_Character'('.') then
raise Bad_Data
with "First codepoint incorrectly terminated.";
else
-- Nice, we're done with this one, and we have a
-- range!
Last_Digit := I - 1;
Is_Range := True;
exit;
end if;
when ';' =>
-- Singleton value
Last_Digit := I - 1;
exit;
when ' ' =>
-- Shall be a singleton value ("ABCD .. DEF0" is not
-- valid, only "ABCD..DEF0" is legal according to
-- Unicode. So spaces shall only exist when trailing a
-- property - and that means it needs to end with ';'
-- CR/LF is not legal - as the line is not complete
-- (same with comments)
while C = ' ' loop
C := Next_Character;
end loop;
if C /= ';' then
raise Bad_Data with "Invalid termination of first "
& "codepoint.";
end if;
Last_Digit := I - 1;
exit;
when others =>
-- Invalid!
raise Bad_Data with "Invalid character in "
& "first codepoint";
end case;
end loop;
end Load_Codepoint_String;
begin
Codepoint_Hex(1) := C;
Load_Codepoint_String;
-- If we made it here, we should have a proper string to convert
First := Wide_Wide_Character'Val
(Decode (Codepoint_Hex (1 .. Last_Digit)));
-- Next we check if it is a range, in which case we then need to
-- try to get the last character of that range.
if Is_Range then
-- A valid range means that there is no space or LF after the
-- "..", and therefore the next character had better be a
-- hex digit
C := Next_Character;
if C not in Hex.Hex_Character then
raise Bad_Data with "Invalid codepoint range";
end if;
Codepoint_Hex(1) := C;
Load_Codepoint_String;
-- This should not report another range!
if Is_Range then
raise Bad_Data with "Invalid codepoint range";
end if;
Last
:= Wide_Wide_Character'Val
(Decode (Codepoint_Hex (1 .. Last_Digit)));
else
-- Singleton codepoint
Last := First;
end if;
exception
when Bad_Data => raise;
when e: others =>
raise Bad_Data
with "Unexpected exception when parsing codepoint: "
& Ada.Exceptions.Exception_Information (e);
end Parse_Codepoints;
-- Parse_Properties --
----------------------
-- We've consumed the ';' delimiting the beginning of property 1.
-- Parse_Properties then loads each property until the end of the line,
-- except for any final comment
-- 1. Leading spaces (following the last ';') are insignificant
-- 2. Empty properties are signficiant
-- 3. Trailing spaces are insignificant (read: should be trimed)
-- 4. Every property must _begin_ with ';', but can end with either
-- LF (or CRLF), or '#' for a comment.
--
-- WWC will be left containing whichever character ended the sequence,
-- which will always be either LF (WW_LF) or '#'
procedure Parse_Properties (Properties: in out Property_Vector)
with Inline is
procedure Skip_Leading_Spaces with Inline is
begin
loop
WWC := Next_Character;
exit when WWC /= ' ';
end loop;
end Skip_Leading_Spaces;
procedure Load_Property with Inline is
use WWU;
use Ada.Strings;
Chunk: Wide_Wide_String (1 .. 80) := (others => ' ');
Chunk_Last: Natural := Chunk'First - 1;
-- Most properties will fit into a single chunk! This method makes
-- adding each bit to the unbounded string more efficient than if
-- we did it one character at a time!
Property: Unbounded_Wide_Wide_String;
begin
loop
if Chunk_Last = Chunk'Last then
-- Time to purge
Append (Source => Property,
New_Item => Chunk);
Chunk_Last := Chunk'First - 1;
end if;
case WWC is
when ';' | '#' | WW_LF =>
-- End of the road
exit;
when WW_CR =>
WWC := Next_Character;
if WWC /= WW_LF then
raise Bad_Data with "CR not followed with LF";
end if;
exit;
when others =>
Chunk_Last := Chunk_Last + 1;
Chunk(Chunk_Last) := WWC;
end case;
-- Skip_Leading_Spaces would have the first character
-- already loaded
WWC := Next_Character;
end loop;
-- Last purge
if Chunk_Last >= Chunk'First then
Append (Source => Property,
New_Item => Chunk(Chunk'First .. Chunk_Last));
end if;
-- Trim trailing spaces
Trim (Source => Property,
Side => Right);
-- Slap it on the end of the vector
Properties.Append (Property);
end Load_Property;
begin
loop
Skip_Leading_Spaces;
Load_Property;
exit when WWC /= ';';
end loop;
exception
when e: others =>
raise Bad_Data with "Properties malformed: " &
Ada.Exceptions.Exception_Information (e);
end Parse_Properties;
-- Load_Comment --
------------------
-- To be called only after reaching '#'. Loads everything following up
-- until LF or CRLF.
function Load_Comment return Unbounded_Wide_Wide_String
with Inline is
use WWU;
Chunk: Wide_Wide_String (1 .. 80) := (others => ' ');
Chunk_Last: Natural := Chunk'First - 1;
begin
return Comment: Unbounded_Wide_Wide_String do
loop
if Chunk_Last = Chunk'Last then
-- purge
Append (Source => Comment,
New_Item => Chunk);
Chunk_Last := Chunk'First - 1;
end if;
WWC := Next_Character;
exit when WWC in WW_CR | WW_LF;
Chunk_Last := Chunk_Last + 1;
Chunk(Chunk_Last) := WWC;
end loop;
if WWC = WW_CR then
WWC := Next_Character;
if WWC /= WW_LF then
raise Bad_Data with "CR not followed with LF";
end if;
end if;
-- Load last chunk
if Chunk_Last >= Chunk'First then
Append (Source => Comment,
New_Item => Chunk(Chunk'First .. Chunk_Last));
end if;
end return;
end Load_Comment;
-- Next_Entry Body ---------------------------------------------------------
begin
return E: UCD_Entry do
-- Initial conditions - reserving some space in the vector
-- prevents undue memory copying every time the vector is
-- expanded (as can be expected in some implementations)
E.Properties.Reserve_Capacity (20);
Seek_Entry_Start;
Parse_Codepoints (E.First, E.Last);
Parse_Properties (E.Properties);
-- WWC should now have either LF or '#'
case WWC is
when '#' =>
-- We also have a comment to load!
E.Comment := Load_Comment;
when WW_LF =>
-- That's it
null;
when others =>
raise Program_Error with
"Parse_Properties failed inappropriately.";
end case;
end return;
end Next_Entry;
end Unicode.UCD;
| 39.892562 | 79 | 0.454682 |
1db957c94c431ecfb366b55ee439c6277fcab1d3 | 19,781 | ads | Ada | src/camera/pixy/src/host/pantilt_in_ada/specs/stdio_h.ads | wowHollis/SmartCart | f377f34fc452f90866e9d4c8a4e031314e633adb | [
"MIT"
] | 1 | 2019-05-30T00:52:06.000Z | 2019-05-30T00:52:06.000Z | src/camera/pixy/src/host/pantilt_in_ada/specs/stdio_h.ads | wowHollis/SmartCart | f377f34fc452f90866e9d4c8a4e031314e633adb | [
"MIT"
] | 1 | 2015-05-11T19:51:54.000Z | 2015-05-11T19:51:54.000Z | src/camera/pixy/src/host/pantilt_in_ada/specs/stdio_h.ads | wowHollis/SmartCart | f377f34fc452f90866e9d4c8a4e031314e633adb | [
"MIT"
] | null | null | null | --
-- Copyright (c) 2015, John Leimon <[email protected]>
--
-- Permission to use, copy, modify, and/or distribute this software for any
-- purpose with or without fee is hereby granted, provided that the above copyright
-- notice and this permission notice appear in all copies.
--
-- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD
-- TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN
-- NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR
-- CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
-- PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
-- ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
--
pragma Ada_2005;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
with libio_h;
with stdarg_h;
with x86_64_linux_gnu_bits_types_h;
with uG_config_h;
with Interfaces.C.Strings;
with System;
with stddef_h;
package stdio_h is
-- unsupported macro: BUFSIZ _IO_BUFSIZ
-- unsupported macro: SEEK_SET 0
-- unsupported macro: SEEK_CUR 1
-- unsupported macro: SEEK_END 2
-- unsupported macro: SEEK_DATA 3
-- unsupported macro: SEEK_HOLE 4
-- unsupported macro: P_tmpdir "/tmp"
-- unsupported macro: stdin stdin
-- unsupported macro: stdout stdout
-- unsupported macro: stderr stderr
-- arg-macro: procedure getc (_fp)
-- _IO_getc (_fp)
-- arg-macro: procedure putc (_ch, _fp)
-- _IO_putc (_ch, _fp)
subtype FILE is libio_h.u_IO_FILE;
subtype uu_FILE is libio_h.u_IO_FILE;
subtype va_list is stdarg_h.uu_gnuc_va_list; -- /usr/include/stdio.h:79
subtype off_t is x86_64_linux_gnu_bits_types_h.uu_off_t; -- /usr/include/stdio.h:90
subtype off64_t is x86_64_linux_gnu_bits_types_h.uu_off64_t; -- /usr/include/stdio.h:97
subtype ssize_t is x86_64_linux_gnu_bits_types_h.uu_ssize_t; -- /usr/include/stdio.h:102
subtype fpos_t is uG_config_h.u_G_fpos_t;
subtype fpos64_t is uG_config_h.u_G_fpos64_t;
stdin : access libio_h.u_IO_FILE; -- /usr/include/stdio.h:168
pragma Import (C, stdin, "stdin");
stdout : access libio_h.u_IO_FILE; -- /usr/include/stdio.h:169
pragma Import (C, stdout, "stdout");
stderr : access libio_h.u_IO_FILE; -- /usr/include/stdio.h:170
pragma Import (C, stderr, "stderr");
function remove (uu_filename : Interfaces.C.Strings.chars_ptr) return int; -- /usr/include/stdio.h:178
pragma Import (C, remove, "remove");
function rename (uu_old : Interfaces.C.Strings.chars_ptr; uu_new : Interfaces.C.Strings.chars_ptr) return int; -- /usr/include/stdio.h:180
pragma Import (C, rename, "rename");
function renameat
(uu_oldfd : int;
uu_old : Interfaces.C.Strings.chars_ptr;
uu_newfd : int;
uu_new : Interfaces.C.Strings.chars_ptr) return int; -- /usr/include/stdio.h:185
pragma Import (C, renameat, "renameat");
function tmpfile return access FILE; -- /usr/include/stdio.h:195
pragma Import (C, tmpfile, "tmpfile");
function tmpfile64 return access FILE; -- /usr/include/stdio.h:205
pragma Import (C, tmpfile64, "tmpfile64");
function tmpnam (uu_s : Interfaces.C.Strings.chars_ptr) return Interfaces.C.Strings.chars_ptr; -- /usr/include/stdio.h:209
pragma Import (C, tmpnam, "tmpnam");
function tmpnam_r (uu_s : Interfaces.C.Strings.chars_ptr) return Interfaces.C.Strings.chars_ptr; -- /usr/include/stdio.h:215
pragma Import (C, tmpnam_r, "tmpnam_r");
function tempnam (uu_dir : Interfaces.C.Strings.chars_ptr; uu_pfx : Interfaces.C.Strings.chars_ptr) return Interfaces.C.Strings.chars_ptr; -- /usr/include/stdio.h:227
pragma Import (C, tempnam, "tempnam");
function fclose (uu_stream : access FILE) return int; -- /usr/include/stdio.h:237
pragma Import (C, fclose, "fclose");
function fflush (uu_stream : access FILE) return int; -- /usr/include/stdio.h:242
pragma Import (C, fflush, "fflush");
function fflush_unlocked (uu_stream : access FILE) return int; -- /usr/include/stdio.h:252
pragma Import (C, fflush_unlocked, "fflush_unlocked");
function fcloseall return int; -- /usr/include/stdio.h:262
pragma Import (C, fcloseall, "fcloseall");
function fopen (uu_filename : Interfaces.C.Strings.chars_ptr; uu_modes : Interfaces.C.Strings.chars_ptr) return access FILE; -- /usr/include/stdio.h:272
pragma Import (C, fopen, "fopen");
function freopen
(uu_filename : Interfaces.C.Strings.chars_ptr;
uu_modes : Interfaces.C.Strings.chars_ptr;
uu_stream : access FILE) return access FILE; -- /usr/include/stdio.h:278
pragma Import (C, freopen, "freopen");
function fopen64 (uu_filename : Interfaces.C.Strings.chars_ptr; uu_modes : Interfaces.C.Strings.chars_ptr) return access FILE; -- /usr/include/stdio.h:297
pragma Import (C, fopen64, "fopen64");
function freopen64
(uu_filename : Interfaces.C.Strings.chars_ptr;
uu_modes : Interfaces.C.Strings.chars_ptr;
uu_stream : access FILE) return access FILE; -- /usr/include/stdio.h:299
pragma Import (C, freopen64, "freopen64");
function fdopen (uu_fd : int; uu_modes : Interfaces.C.Strings.chars_ptr) return access FILE; -- /usr/include/stdio.h:306
pragma Import (C, fdopen, "fdopen");
function fopencookie
(uu_magic_cookie : System.Address;
uu_modes : Interfaces.C.Strings.chars_ptr;
uu_io_funcs : libio_h.u_IO_cookie_io_functions_t) return access FILE; -- /usr/include/stdio.h:312
pragma Import (C, fopencookie, "fopencookie");
function fmemopen
(uu_s : System.Address;
uu_len : stddef_h.size_t;
uu_modes : Interfaces.C.Strings.chars_ptr) return access FILE; -- /usr/include/stdio.h:319
pragma Import (C, fmemopen, "fmemopen");
function open_memstream (uu_bufloc : System.Address; uu_sizeloc : access stddef_h.size_t) return access FILE; -- /usr/include/stdio.h:325
pragma Import (C, open_memstream, "open_memstream");
procedure setbuf (uu_stream : access FILE; uu_buf : Interfaces.C.Strings.chars_ptr); -- /usr/include/stdio.h:332
pragma Import (C, setbuf, "setbuf");
function setvbuf
(uu_stream : access FILE;
uu_buf : Interfaces.C.Strings.chars_ptr;
uu_modes : int;
uu_n : stddef_h.size_t) return int; -- /usr/include/stdio.h:336
pragma Import (C, setvbuf, "setvbuf");
procedure setbuffer
(uu_stream : access FILE;
uu_buf : Interfaces.C.Strings.chars_ptr;
uu_size : stddef_h.size_t); -- /usr/include/stdio.h:343
pragma Import (C, setbuffer, "setbuffer");
procedure setlinebuf (uu_stream : access FILE); -- /usr/include/stdio.h:347
pragma Import (C, setlinebuf, "setlinebuf");
function fprintf (uu_stream : access FILE; uu_format : Interfaces.C.Strings.chars_ptr -- , ...
) return int; -- /usr/include/stdio.h:356
pragma Import (C, fprintf, "fprintf");
function printf (uu_format : Interfaces.C.Strings.chars_ptr -- , ...
) return int; -- /usr/include/stdio.h:362
pragma Import (C, printf, "printf");
function sprintf (uu_s : Interfaces.C.Strings.chars_ptr; uu_format : Interfaces.C.Strings.chars_ptr -- , ...
) return int; -- /usr/include/stdio.h:364
pragma Import (C, sprintf, "sprintf");
function vfprintf
(uu_s : access FILE;
uu_format : Interfaces.C.Strings.chars_ptr;
uu_arg : access System.Address) return int; -- /usr/include/stdio.h:371
pragma Import (C, vfprintf, "vfprintf");
function vprintf (uu_format : Interfaces.C.Strings.chars_ptr; uu_arg : access System.Address) return int; -- /usr/include/stdio.h:377
pragma Import (C, vprintf, "vprintf");
function vsprintf
(uu_s : Interfaces.C.Strings.chars_ptr;
uu_format : Interfaces.C.Strings.chars_ptr;
uu_arg : access System.Address) return int; -- /usr/include/stdio.h:379
pragma Import (C, vsprintf, "vsprintf");
function snprintf
(uu_s : Interfaces.C.Strings.chars_ptr;
uu_maxlen : stddef_h.size_t;
uu_format : Interfaces.C.Strings.chars_ptr -- , ...
) return int; -- /usr/include/stdio.h:386
pragma Import (C, snprintf, "snprintf");
function vsnprintf
(uu_s : Interfaces.C.Strings.chars_ptr;
uu_maxlen : stddef_h.size_t;
uu_format : Interfaces.C.Strings.chars_ptr;
uu_arg : access System.Address) return int; -- /usr/include/stdio.h:390
pragma Import (C, vsnprintf, "vsnprintf");
function vasprintf
(uu_ptr : System.Address;
uu_f : Interfaces.C.Strings.chars_ptr;
uu_arg : access System.Address) return int; -- /usr/include/stdio.h:399
pragma Import (C, vasprintf, "vasprintf");
function asprintf (uu_ptr : System.Address; uu_fmt : Interfaces.C.Strings.chars_ptr -- , ...
) return int; -- /usr/include/stdio.h:405
pragma Import (C, asprintf, "asprintf");
function vdprintf
(uu_fd : int;
uu_fmt : Interfaces.C.Strings.chars_ptr;
uu_arg : access System.Address) return int; -- /usr/include/stdio.h:412
pragma Import (C, vdprintf, "vdprintf");
function dprintf (uu_fd : int; uu_fmt : Interfaces.C.Strings.chars_ptr -- , ...
) return int; -- /usr/include/stdio.h:415
pragma Import (C, dprintf, "dprintf");
function fscanf (uu_stream : access FILE; uu_format : Interfaces.C.Strings.chars_ptr -- , ...
) return int; -- /usr/include/stdio.h:425
pragma Import (C, fscanf, "fscanf");
function scanf (uu_format : Interfaces.C.Strings.chars_ptr -- , ...
) return int; -- /usr/include/stdio.h:431
pragma Import (C, scanf, "scanf");
function sscanf (uu_s : Interfaces.C.Strings.chars_ptr; uu_format : Interfaces.C.Strings.chars_ptr -- , ...
) return int; -- /usr/include/stdio.h:433
pragma Import (C, sscanf, "sscanf");
function vfscanf
(uu_s : access FILE;
uu_format : Interfaces.C.Strings.chars_ptr;
uu_arg : access System.Address) return int; -- /usr/include/stdio.h:471
pragma Import (C, vfscanf, "vfscanf");
function vscanf (uu_format : Interfaces.C.Strings.chars_ptr; uu_arg : access System.Address) return int; -- /usr/include/stdio.h:479
pragma Import (C, vscanf, "vscanf");
function vsscanf
(uu_s : Interfaces.C.Strings.chars_ptr;
uu_format : Interfaces.C.Strings.chars_ptr;
uu_arg : access System.Address) return int; -- /usr/include/stdio.h:483
pragma Import (C, vsscanf, "vsscanf");
function fgetc (uu_stream : access FILE) return int; -- /usr/include/stdio.h:531
pragma Import (C, fgetc, "fgetc");
function getc (uu_stream : access FILE) return int; -- /usr/include/stdio.h:532
pragma Import (C, getc, "getc");
function getchar return int; -- /usr/include/stdio.h:538
pragma Import (C, getchar, "getchar");
function getc_unlocked (uu_stream : access FILE) return int; -- /usr/include/stdio.h:550
pragma Import (C, getc_unlocked, "getc_unlocked");
function getchar_unlocked return int; -- /usr/include/stdio.h:551
pragma Import (C, getchar_unlocked, "getchar_unlocked");
function fgetc_unlocked (uu_stream : access FILE) return int; -- /usr/include/stdio.h:561
pragma Import (C, fgetc_unlocked, "fgetc_unlocked");
function fputc (uu_c : int; uu_stream : access FILE) return int; -- /usr/include/stdio.h:573
pragma Import (C, fputc, "fputc");
function putc (uu_c : int; uu_stream : access FILE) return int; -- /usr/include/stdio.h:574
pragma Import (C, putc, "putc");
function putchar (uu_c : int) return int; -- /usr/include/stdio.h:580
pragma Import (C, putchar, "putchar");
function fputc_unlocked (uu_c : int; uu_stream : access FILE) return int; -- /usr/include/stdio.h:594
pragma Import (C, fputc_unlocked, "fputc_unlocked");
function putc_unlocked (uu_c : int; uu_stream : access FILE) return int; -- /usr/include/stdio.h:602
pragma Import (C, putc_unlocked, "putc_unlocked");
function putchar_unlocked (uu_c : int) return int; -- /usr/include/stdio.h:603
pragma Import (C, putchar_unlocked, "putchar_unlocked");
function getw (uu_stream : access FILE) return int; -- /usr/include/stdio.h:610
pragma Import (C, getw, "getw");
function putw (uu_w : int; uu_stream : access FILE) return int; -- /usr/include/stdio.h:613
pragma Import (C, putw, "putw");
function fgets
(uu_s : Interfaces.C.Strings.chars_ptr;
uu_n : int;
uu_stream : access FILE) return Interfaces.C.Strings.chars_ptr; -- /usr/include/stdio.h:622
pragma Import (C, fgets, "fgets");
function gets (uu_s : Interfaces.C.Strings.chars_ptr) return Interfaces.C.Strings.chars_ptr; -- /usr/include/stdio.h:638
pragma Import (C, gets, "gets");
function fgets_unlocked
(uu_s : Interfaces.C.Strings.chars_ptr;
uu_n : int;
uu_stream : access FILE) return Interfaces.C.Strings.chars_ptr; -- /usr/include/stdio.h:649
pragma Import (C, fgets_unlocked, "fgets_unlocked");
function getdelim
(uu_lineptr : System.Address;
uu_n : access stddef_h.size_t;
uu_delimiter : int;
uu_stream : access FILE) return x86_64_linux_gnu_bits_types_h.uu_ssize_t; -- /usr/include/stdio.h:668
pragma Import (C, getdelim, "getdelim");
function getline
(uu_lineptr : System.Address;
uu_n : access stddef_h.size_t;
uu_stream : access FILE) return x86_64_linux_gnu_bits_types_h.uu_ssize_t; -- /usr/include/stdio.h:678
pragma Import (C, getline, "getline");
function fputs (uu_s : Interfaces.C.Strings.chars_ptr; uu_stream : access FILE) return int; -- /usr/include/stdio.h:689
pragma Import (C, fputs, "fputs");
function puts (uu_s : Interfaces.C.Strings.chars_ptr) return int; -- /usr/include/stdio.h:695
pragma Import (C, puts, "puts");
function ungetc (uu_c : int; uu_stream : access FILE) return int; -- /usr/include/stdio.h:702
pragma Import (C, ungetc, "ungetc");
function fread
(uu_ptr : System.Address;
uu_size : stddef_h.size_t;
uu_n : stddef_h.size_t;
uu_stream : access FILE) return stddef_h.size_t; -- /usr/include/stdio.h:709
pragma Import (C, fread, "fread");
function fwrite
(uu_ptr : System.Address;
uu_size : stddef_h.size_t;
uu_n : stddef_h.size_t;
uu_s : access FILE) return stddef_h.size_t; -- /usr/include/stdio.h:715
pragma Import (C, fwrite, "fwrite");
function fputs_unlocked (uu_s : Interfaces.C.Strings.chars_ptr; uu_stream : access FILE) return int; -- /usr/include/stdio.h:726
pragma Import (C, fputs_unlocked, "fputs_unlocked");
function fread_unlocked
(uu_ptr : System.Address;
uu_size : stddef_h.size_t;
uu_n : stddef_h.size_t;
uu_stream : access FILE) return stddef_h.size_t; -- /usr/include/stdio.h:737
pragma Import (C, fread_unlocked, "fread_unlocked");
function fwrite_unlocked
(uu_ptr : System.Address;
uu_size : stddef_h.size_t;
uu_n : stddef_h.size_t;
uu_stream : access FILE) return stddef_h.size_t; -- /usr/include/stdio.h:739
pragma Import (C, fwrite_unlocked, "fwrite_unlocked");
function fseek
(uu_stream : access FILE;
uu_off : long;
uu_whence : int) return int; -- /usr/include/stdio.h:749
pragma Import (C, fseek, "fseek");
function ftell (uu_stream : access FILE) return long; -- /usr/include/stdio.h:754
pragma Import (C, ftell, "ftell");
procedure rewind (uu_stream : access FILE); -- /usr/include/stdio.h:759
pragma Import (C, rewind, "rewind");
function fseeko
(uu_stream : access FILE;
uu_off : x86_64_linux_gnu_bits_types_h.uu_off_t;
uu_whence : int) return int; -- /usr/include/stdio.h:773
pragma Import (C, fseeko, "fseeko");
function ftello (uu_stream : access FILE) return x86_64_linux_gnu_bits_types_h.uu_off_t; -- /usr/include/stdio.h:778
pragma Import (C, ftello, "ftello");
function fgetpos (uu_stream : access FILE; uu_pos : access fpos_t) return int; -- /usr/include/stdio.h:798
pragma Import (C, fgetpos, "fgetpos");
function fsetpos (uu_stream : access FILE; uu_pos : System.Address) return int; -- /usr/include/stdio.h:803
pragma Import (C, fsetpos, "fsetpos");
function fseeko64
(uu_stream : access FILE;
uu_off : x86_64_linux_gnu_bits_types_h.uu_off64_t;
uu_whence : int) return int; -- /usr/include/stdio.h:818
pragma Import (C, fseeko64, "fseeko64");
function ftello64 (uu_stream : access FILE) return x86_64_linux_gnu_bits_types_h.uu_off64_t; -- /usr/include/stdio.h:819
pragma Import (C, ftello64, "ftello64");
function fgetpos64 (uu_stream : access FILE; uu_pos : access fpos64_t) return int; -- /usr/include/stdio.h:820
pragma Import (C, fgetpos64, "fgetpos64");
function fsetpos64 (uu_stream : access FILE; uu_pos : System.Address) return int; -- /usr/include/stdio.h:821
pragma Import (C, fsetpos64, "fsetpos64");
procedure clearerr (uu_stream : access FILE); -- /usr/include/stdio.h:826
pragma Import (C, clearerr, "clearerr");
function feof (uu_stream : access FILE) return int; -- /usr/include/stdio.h:828
pragma Import (C, feof, "feof");
function ferror (uu_stream : access FILE) return int; -- /usr/include/stdio.h:830
pragma Import (C, ferror, "ferror");
procedure clearerr_unlocked (uu_stream : access FILE); -- /usr/include/stdio.h:835
pragma Import (C, clearerr_unlocked, "clearerr_unlocked");
function feof_unlocked (uu_stream : access FILE) return int; -- /usr/include/stdio.h:836
pragma Import (C, feof_unlocked, "feof_unlocked");
function ferror_unlocked (uu_stream : access FILE) return int; -- /usr/include/stdio.h:837
pragma Import (C, ferror_unlocked, "ferror_unlocked");
procedure perror (uu_s : Interfaces.C.Strings.chars_ptr); -- /usr/include/stdio.h:846
pragma Import (C, perror, "perror");
function fileno (uu_stream : access FILE) return int; -- /usr/include/stdio.h:858
pragma Import (C, fileno, "fileno");
function fileno_unlocked (uu_stream : access FILE) return int; -- /usr/include/stdio.h:863
pragma Import (C, fileno_unlocked, "fileno_unlocked");
function popen (uu_command : Interfaces.C.Strings.chars_ptr; uu_modes : Interfaces.C.Strings.chars_ptr) return access FILE; -- /usr/include/stdio.h:873
pragma Import (C, popen, "popen");
function pclose (uu_stream : access FILE) return int; -- /usr/include/stdio.h:879
pragma Import (C, pclose, "pclose");
function ctermid (uu_s : Interfaces.C.Strings.chars_ptr) return Interfaces.C.Strings.chars_ptr; -- /usr/include/stdio.h:885
pragma Import (C, ctermid, "ctermid");
function cuserid (uu_s : Interfaces.C.Strings.chars_ptr) return Interfaces.C.Strings.chars_ptr; -- /usr/include/stdio.h:891
pragma Import (C, cuserid, "cuserid");
-- skipped empty struct obstack
function obstack_printf (uu_obstack : System.Address; uu_format : Interfaces.C.Strings.chars_ptr -- , ...
) return int; -- /usr/include/stdio.h:899
pragma Import (C, obstack_printf, "obstack_printf");
function obstack_vprintf
(uu_obstack : System.Address;
uu_format : Interfaces.C.Strings.chars_ptr;
uu_args : access System.Address) return int; -- /usr/include/stdio.h:902
pragma Import (C, obstack_vprintf, "obstack_vprintf");
procedure flockfile (uu_stream : access FILE); -- /usr/include/stdio.h:913
pragma Import (C, flockfile, "flockfile");
function ftrylockfile (uu_stream : access FILE) return int; -- /usr/include/stdio.h:917
pragma Import (C, ftrylockfile, "ftrylockfile");
procedure funlockfile (uu_stream : access FILE); -- /usr/include/stdio.h:920
pragma Import (C, funlockfile, "funlockfile");
end stdio_h;
| 42.539785 | 170 | 0.696224 |
224a733a6365a704338c4a73538ac8d2a6e45dae | 3,265 | ads | Ada | tools-src/gnu/gcc/gcc/ada/s-pack03.ads | modern-tomato/tomato | 96f09fab4929c6ddde5c9113f1b2476ad37133c4 | [
"FSFAP"
] | 80 | 2015-01-02T10:14:04.000Z | 2021-06-07T06:29:49.000Z | tools-src/gnu/gcc/gcc/ada/s-pack03.ads | modern-tomato/tomato | 96f09fab4929c6ddde5c9113f1b2476ad37133c4 | [
"FSFAP"
] | 9 | 2015-05-14T11:03:12.000Z | 2018-01-04T07:12:58.000Z | tools-src/gnu/gcc/gcc/ada/s-pack03.ads | modern-tomato/tomato | 96f09fab4929c6ddde5c9113f1b2476ad37133c4 | [
"FSFAP"
] | 69 | 2015-01-02T10:45:56.000Z | 2021-09-06T07:52:13.000Z | ------------------------------------------------------------------------------
-- --
-- GNAT RUNTIME COMPONENTS --
-- --
-- S Y S T E M . P A C K _ 0 3 --
-- --
-- S p e c --
-- --
-- $Revision$
-- --
-- Copyright (C) 1992,1993,1994,1995,1996 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. --
-- --
------------------------------------------------------------------------------
-- Handing of packed arrays with Component_Size = 3
package System.Pack_03 is
pragma Preelaborate (Pack_03);
Bits : constant := 3;
type Bits_03 is mod 2 ** Bits;
for Bits_03'Size use Bits;
function Get_03 (Arr : System.Address; N : Natural) return Bits_03;
-- Arr is the address of the packed array, N is the zero-based
-- subscript. This element is extracted and returned.
procedure Set_03 (Arr : System.Address; N : Natural; E : Bits_03);
-- Arr is the address of the packed array, N is the zero-based
-- subscript. This element is set to the given value.
end System.Pack_03;
| 59.363636 | 78 | 0.452067 |
58d65ea1f9a1dacfab140f2f3d3055fe25120912 | 94,103 | ads | Ada | bindings/win32/ms_fmt/gl.ads | ForYouEyesOnly/Space-Convoy | be4904f6a02695f7c4c5c3c965f4871cd3250003 | [
"MIT"
] | 1 | 2019-09-21T09:40:34.000Z | 2019-09-21T09:40:34.000Z | bindings/win32/ms_fmt/gl.ads | ForYouEyesOnly/Space-Convoy | be4904f6a02695f7c4c5c3c965f4871cd3250003 | [
"MIT"
] | null | null | null | bindings/win32/ms_fmt/gl.ads | ForYouEyesOnly/Space-Convoy | be4904f6a02695f7c4c5c3c965f4871cd3250003 | [
"MIT"
] | 1 | 2019-09-25T12:29:27.000Z | 2019-09-25T12:29:27.000Z | --
-- GL.ads formatted for ObjectAda Special Edition (max 2000 lines)
-- File generated through Compact_GL.ads_for_OA_SE.bat command
-- from the GCC file. It is useless to edit the present file.
--
WITH INTERFACES.C;WITH ADA.UNCHECKED_CONVERSION;PACKAGE GL IS PACKAGE C RENAMES INTERFACES.C;MESA_MAJOR_VERSION:CONSTANT :=2;MESA_MINOR_VERSION:CONSTANT :=5;
VERSION_1_1:CONSTANT :=1;EXT_BLEND_COLOR:CONSTANT :=1;EXT_BLEND_LOGIC_OP:CONSTANT :=1;EXT_BLEND_MINMAX:CONSTANT :=1;EXT_BLEND_SUBTRACT:CONSTANT :=1;
EXT_POLYGON_OFFSET:CONSTANT :=1;EXT_VERTEX_ARRAY:CONSTANT :=1;EXT_TEXTURE_OBJECT:CONSTANT :=1;EXT_TEXTURE3D:CONSTANT :=1;EXT_PALETTED_TEXTURE:CONSTANT :=1;
EXT_SHARED_TEXTURE_PALETTE:CONSTANT :=1;EXT_POINT_PARAMETERS:CONSTANT :=1;MESA_WINDOW_POS:CONSTANT :=1;MESA_RESIZE_BUFFERS:CONSTANT :=1;CURRENT_BIT:CONSTANT :=16#00000001#;
POINT_BIT:CONSTANT :=16#00000002#;LINE_BIT:CONSTANT :=16#00000004#;POLYGON_BIT:CONSTANT :=16#00000008#;POLYGON_STIPPLE_BIT:CONSTANT :=16#00000010#;
PIXEL_MODE_BIT:CONSTANT :=16#00000020#;LIGHTING_BIT:CONSTANT :=16#00000040#;FOG_BIT:CONSTANT :=16#00000080#;DEPTH_BUFFER_BIT:CONSTANT :=16#00000100#;
ACCUM_BUFFER_BIT:CONSTANT :=16#00000200#;STENCIL_BUFFER_BIT:CONSTANT :=16#00000400#;VIEWPORT_BIT:CONSTANT :=16#00000800#;TRANSFORM_BIT:CONSTANT :=16#00001000#;
ENABLE_BIT:CONSTANT :=16#00002000#;COLOR_BUFFER_BIT:CONSTANT :=16#00004000#;HINT_BIT:CONSTANT :=16#00008000#;EVAL_BIT:CONSTANT :=16#00010000#;
LIST_BIT:CONSTANT :=16#00020000#;TEXTURE_BIT:CONSTANT :=16#00040000#;SCISSOR_BIT:CONSTANT :=16#00080000#;ALL_ATTRIB_BITS:CONSTANT :=16#000FFFFF#;
CLIENT_PIXEL_STORE_BIT:CONSTANT :=16#00000001#;CLIENT_VERTEX_ARRAY_BIT:CONSTANT :=16#00000002#;CLIENT_ALL_ATTRIB_BITS:CONSTANT :=16#0000FFFF#;
TYPE BITFIELD IS NEW C.UNSIGNED;TYPE GL_BOOLEAN IS NEW C.UNSIGNED_CHAR;TYPE BYTE IS NEW C.CHAR;TYPE SHORT IS NEW C.SHORT;TYPE INT IS NEW C.INT;
TYPE UBYTE IS NEW C.UNSIGNED_CHAR;TYPE USHORT IS NEW C.UNSIGNED_SHORT;TYPE UINT IS NEW C.UNSIGNED;TYPE SIZEI IS NEW C.INT;TYPE FLOAT IS NEW C.C_FLOAT;
TYPE CLAMPF IS NEW C.C_FLOAT;TYPE DOUBLE IS NEW C.DOUBLE;TYPE CLAMPD IS NEW C.DOUBLE;TYPE POSITIVE_UINT IS NEW GL.UINT RANGE 1 .. GL.UINT'LAST;
TYPE GL_BOOLEANPTR IS ACCESS ALL GL_BOOLEAN;TYPE BYTEPTR IS ACCESS ALL BYTE;TYPE SHORTPTR IS ACCESS ALL SHORT;TYPE INTPOINTER IS ACCESS ALL INT;
TYPE UBYTEPTR IS ACCESS ALL UBYTE;TYPE USHORTPTR IS ACCESS ALL USHORT;TYPE UINTPTR IS ACCESS ALL UINT;TYPE FLOATPTR IS ACCESS ALL GL.FLOAT;
TYPE CLAMPFPTR IS ACCESS ALL CLAMPF;TYPE DOUBLEPTR IS ACCESS ALL DOUBLE;SUBTYPE SIZEIPTR IS INTERFACES.C.PTRDIFF_T;SUBTYPE INTPTR IS INTERFACES.C.PTRDIFF_T;
TYPE POINTER IS ACCESS ALL UBYTE;TYPE LIGHT_FLOAT_VECTOR IS ARRAY (0 .. 3)OF ALIASED GL.FLOAT;TYPE MATERIAL_FLOAT_VECTOR IS ARRAY (0 .. 3)OF ALIASED GL.FLOAT;
TYPE DOUBLE_VECTOR_3D IS ARRAY (0 .. 2)OF ALIASED GL.DOUBLE;TYPE RGB_COLOR IS RECORD RED, GREEN, BLUE:GL.DOUBLE;END RECORD;TYPE RGBA_COLOR IS RECORD RED, GREEN, BLUE, ALPHA:GL.DOUBLE;END RECORD;
TYPE COLOR_ACCESS IS ACCESS ALL GL.RGB_COLOR;FUNCTION TO_POINTER IS NEW ADA.UNCHECKED_CONVERSION (COLOR_ACCESS, GL.POINTER);TYPE DOUBLE_ACCESS IS ACCESS ALL GL.DOUBLE;
FUNCTION TO_POINTER IS NEW ADA.UNCHECKED_CONVERSION (DOUBLE_ACCESS, GL.POINTER);TYPE NATURAL_ACCESS IS ACCESS ALL NATURAL;FUNCTION TO_POINTER IS NEW ADA.UNCHECKED_CONVERSION (NATURAL_ACCESS, GL.POINTER);
FUNCTION TO_POINTER IS NEW ADA.UNCHECKED_CONVERSION (UINTPTR, GL.POINTER);FUNCTION TO_POINTER IS NEW ADA.UNCHECKED_CONVERSION (USHORTPTR, GL.POINTER);
TYPE ENUM IS NEW C.UNSIGNED;GL_FALSE:CONSTANT GL_BOOLEAN :=GL_BOOLEAN'VAL (0);GL_TRUE:CONSTANT GL_BOOLEAN :=GL_BOOLEAN'VAL (1);TYPE GETPOINTERENM IS
(FEEDBACK_BUFFER_POINTER, VERTEX_ARRAY_POINTER, NORMAL_ARRAY_POINTER, COLOR_ARRAY_POINTER, INDEX_ARRAY_POINTER, TEXTURE_COORD_ARRAY_POINTER,
EDGE_FLAG_ARRAY_POINTER, SELECTION_BUFFER_POINTER);FOR GETPOINTERENM USE (FEEDBACK_BUFFER_POINTER =>16#0DF0#, VERTEX_ARRAY_POINTER =>16#808E#,
NORMAL_ARRAY_POINTER =>16#808F#, COLOR_ARRAY_POINTER =>16#8090#, INDEX_ARRAY_POINTER =>16#8091#, TEXTURE_COORD_ARRAY_POINTER =>16#8092#, EDGE_FLAG_ARRAY_POINTER =>16#8093#,
SELECTION_BUFFER_POINTER =>16#FFFF#);FOR GETPOINTERENM'SIZE USE GL.ENUM'SIZE;PROCEDURE GETPOINTERV (PNAME:GETPOINTERENM;PARAMS:GL.POINTER);
TYPE FUNCENM IS (NEVER, LESS, EQUAL, LEQUAL, GREATER, NOTEQUAL, GEQUAL, ALWAYS);FOR FUNCENM USE (NEVER =>16#0200#, LESS =>16#0201#, EQUAL =>16#0202#,
LEQUAL =>16#0203#, GREATER =>16#0204#, NOTEQUAL =>16#0205#, GEQUAL =>16#0206#, ALWAYS =>16#0207#);FOR FUNCENM'SIZE USE GL.ENUM'SIZE;PROCEDURE ALPHAFUNC (FUNC:FUNCENM;
REF:GL.CLAMPF);PROCEDURE DEPTHFUNC (FUNC:FUNCENM);PROCEDURE STENCILFUNC (FUNC:FUNCENM;REF:GL.INT;MASK:GL.UINT);TYPE STENCILOPENM IS (ZERO,
INVERT, KEEP, REPLACE, INCR, DECR);FOR STENCILOPENM USE (ZERO =>16#0000#, INVERT =>16#150A#, KEEP =>16#1E00#, REPLACE =>16#1E01#, INCR =>16#1E02#,
DECR =>16#1E03#);FOR STENCILOPENM'SIZE USE GL.ENUM'SIZE;PROCEDURE STENCILOP (FAIL:STENCILOPENM;ZFAIL:STENCILOPENM;ZPASS:STENCILOPENM);TYPE BLENDSRCENM IS
(ZERO, ONE, SRC_ALPHA, ONE_MINUS_SRC_ALPHA, DST_ALPHA, ONE_MINUS_DST_ALPHA, DST_COLOR, ONE_MINUS_DST_COLOR, SRC_ALPHA_SATURATE, CONSTANT_COLOR,
ONE_MINUS_CONSTANT_COLOR, CONSTANT_ALPHA, ONE_MINUS_CONSTANT_ALPHA);FOR BLENDSRCENM USE (ZERO =>16#0000#, ONE =>16#0001#, SRC_ALPHA =>16#0302#,
ONE_MINUS_SRC_ALPHA =>16#0303#, DST_ALPHA =>16#0304#, ONE_MINUS_DST_ALPHA =>16#0305#, DST_COLOR =>16#0306#, ONE_MINUS_DST_COLOR =>16#0307#, SRC_ALPHA_SATURATE =>16#0308#,
CONSTANT_COLOR =>16#8001#, ONE_MINUS_CONSTANT_COLOR =>16#8002#, CONSTANT_ALPHA =>16#8003#, ONE_MINUS_CONSTANT_ALPHA =>16#8004#);FOR BLENDSRCENM'SIZE USE GL.ENUM'SIZE;
TYPE BLENDDSTENM IS (ZERO, ONE, SRC_COLOR, ONE_MINUS_SRC_COLOR, SRC_ALPHA, ONE_MINUS_SRC_ALPHA, DST_ALPHA, ONE_MINUS_DST_ALPHA);FOR BLENDDSTENM USE
(ZERO =>16#0000#, ONE =>16#0001#, SRC_COLOR =>16#0300#, ONE_MINUS_SRC_COLOR =>16#0301#, SRC_ALPHA =>16#0302#, ONE_MINUS_SRC_ALPHA =>16#0303#, DST_ALPHA =>16#0304#,
ONE_MINUS_DST_ALPHA =>16#0305#);FOR BLENDDSTENM'SIZE USE GL.ENUM'SIZE;TYPE BLENDEQUATIONENM IS (LOGIC_OP, FUNC_ADD_EXT, MIN_EXT, MAX_EXT,
FUNC_SUBTRACT_EXT, FUNC_REVERSE_SUBTRACT_EXT);FOR BLENDEQUATIONENM USE (LOGIC_OP =>16#0BF1#, FUNC_ADD_EXT =>16#8006#, MIN_EXT =>16#8007#, MAX_EXT =>16#8008#,
FUNC_SUBTRACT_EXT =>16#800A#, FUNC_REVERSE_SUBTRACT_EXT =>16#800B#);FOR BLENDEQUATIONENM'SIZE USE GL.ENUM'SIZE;PROCEDURE BLENDFUNC (SFACTOR:BLENDSRCENM;
DFACTOR:BLENDDSTENM);PROCEDURE BLENDEQUATIONEXT (MODE:BLENDEQUATIONENM);PROCEDURE BLENDCOLOREXT (RED:GL.CLAMPF;GREEN:GL.CLAMPF;BLUE:GL.CLAMPF;
ALPHA:GL.CLAMPF);TYPE LOGICOPENM IS (CLEAR, GL_AND, AND_REVERSE, COPY, AND_INVERTED, NOOP, GL_XOR, GL_OR, NOR, EQUIV, INVERT, OR_REVERSE, COPY_INVERTED,
OR_INVERTED, NAND, SET);FOR LOGICOPENM USE (CLEAR =>16#1500#, GL_AND =>16#1501#, AND_REVERSE =>16#1502#, COPY =>16#1503#, AND_INVERTED =>16#1504#,
NOOP =>16#1505#, GL_XOR =>16#1506#, GL_OR =>16#1507#, NOR =>16#1508#, EQUIV =>16#1509#, INVERT =>16#150A#, OR_REVERSE =>16#150B#, COPY_INVERTED =>16#150C#,
OR_INVERTED =>16#150D#, NAND =>16#150E#, SET =>16#150F#);FOR LOGICOPENM'SIZE USE GL.ENUM'SIZE;PROCEDURE LOGICOP (OPCODE:LOGICOPENM);TYPE FACEENM IS
(FRONT, BACK, FRONT_AND_BACK);FOR FACEENM USE (FRONT =>16#0404#, BACK =>16#0405#, FRONT_AND_BACK =>16#0408#);FOR FACEENM'SIZE USE GL.ENUM'SIZE;
PROCEDURE CULLFACE (MODE:FACEENM);TYPE ORIENTATIONENM IS (CW, CCW);FOR ORIENTATIONENM USE (CW =>16#0900#, CCW =>16#0901#);FOR ORIENTATIONENM'SIZE USE GL.ENUM'SIZE;
PROCEDURE FRONTFACE (MODE:ORIENTATIONENM);TYPE POLYGONMODEENM IS (POINT, LINE, FILL);FOR POLYGONMODEENM USE (POINT =>16#1B00#, LINE =>16#1B01#,
FILL =>16#1B02#);FOR POLYGONMODEENM'SIZE USE GL.ENUM'SIZE;PROCEDURE POLYGONMODE (FACE:FACEENM;MODE:POLYGONMODEENM);TYPE CLIPPLANEENM IS
(CLIP_PLANE0, CLIP_PLANE1, CLIP_PLANE2, CLIP_PLANE3, CLIP_PLANE4, CLIP_PLANE5);FOR CLIPPLANEENM USE (CLIP_PLANE0 =>16#3000#, CLIP_PLANE1 =>16#3001#,
CLIP_PLANE2 =>16#3002#, CLIP_PLANE3 =>16#3003#, CLIP_PLANE4 =>16#3004#, CLIP_PLANE5 =>16#3005#);FOR CLIPPLANEENM'SIZE USE GL.ENUM'SIZE;PROCEDURE CLIPPLANE (PLANE:CLIPPLANEENM;
EQUATION:GL.DOUBLEPTR);PROCEDURE GETCLIPPLANE (PLANE:CLIPPLANEENM;EQUATION:GL.DOUBLEPTR);TYPE DRAWBUFFERENM IS (NONE, FRONT_LEFT, FRONT_RIGHT,
BACK_LEFT, BACK_RIGHT, FRONT, BACK, LEFT, RIGHT, FRONT_AND_BACK, AUX0, AUX1, AUX2, AUX3);FOR DRAWBUFFERENM USE (NONE =>16#0000#, FRONT_LEFT =>16#0400#,
FRONT_RIGHT =>16#0401#, BACK_LEFT =>16#0402#, BACK_RIGHT =>16#0403#, FRONT =>16#0404#, BACK =>16#0405#, LEFT =>16#0406#, RIGHT =>16#0407#, FRONT_AND_BACK =>16#0408#,
AUX0 =>16#0409#, AUX1 =>16#040A#, AUX2 =>16#040B#, AUX3 =>16#040C#);FOR DRAWBUFFERENM'SIZE USE GL.ENUM'SIZE;PROCEDURE DRAWBUFFER (MODE:DRAWBUFFERENM);
TYPE READBUFFERENM IS (FRONT_LEFT, FRONT_RIGHT, BACK_LEFT, BACK_RIGHT, FRONT, BACK, LEFT, RIGHT, AUX0, AUX1, AUX2, AUX3);FOR READBUFFERENM USE (
FRONT_LEFT =>16#0400#, FRONT_RIGHT =>16#0401#, BACK_LEFT =>16#0402#, BACK_RIGHT =>16#0403#, FRONT =>16#0404#, BACK =>16#0405#, LEFT =>16#0406#, RIGHT =>16#0407#,
AUX0 =>16#0409#, AUX1 =>16#040A#, AUX2 =>16#040B#, AUX3 =>16#040C#);FOR READBUFFERENM'SIZE USE GL.ENUM'SIZE;PROCEDURE READBUFFER (MODE:READBUFFERENM);
TYPE SERVERCAPABILITYENM IS (POINT_SMOOTH, LINE_SMOOTH, LINE_STIPPLE, POLYGON_SMOOTH, POLYGON_STIPPLE, CULL_FACE, LIGHTING, COLOR_MATERIAL, FOG,
DEPTH_TEST, STENCIL_TEST, NORMALIZE, ALPHA_TEST, DITHER, BLEND, INDEX_LOGIC_OP, COLOR_LOGIC_OP, SCISSOR_TEST, TEXTURE_GEN_S, TEXTURE_GEN_T, TEXTURE_GEN_R,
TEXTURE_GEN_Q, AUTO_NORMAL, MAP1_COLOR_4, MAP1_INDEX, MAP1_NORMAL, MAP1_TEXTURE_COORD_1, MAP1_TEXTURE_COORD_2, MAP1_TEXTURE_COORD_3, MAP1_TEXTURE_COORD_4,
MAP1_VERTEX_3, MAP1_VERTEX_4, MAP2_COLOR_4, MAP2_INDEX, MAP2_NORMAL, MAP2_TEXTURE_COORD_1, MAP2_TEXTURE_COORD_2, MAP2_TEXTURE_COORD_3, MAP2_TEXTURE_COORD_4,
MAP2_VERTEX_3, MAP2_VERTEX_4, TEXTURE_1D, TEXTURE_2D, POLYGON_OFFSET_POINT, POLYGON_OFFSET_LINE, CLIP_PLANE0, CLIP_PLANE1, CLIP_PLANE2, CLIP_PLANE3,
CLIP_PLANE4, CLIP_PLANE5, LIGHT0, LIGHT1, LIGHT2, LIGHT3, LIGHT4, LIGHT5, LIGHT6, LIGHT7, POLYGON_OFFSET_FILL, TEXTURE_3D_EXT, MULTISAMPLE_ARB, SAMPLE_ALPHA_TO_COVERAGE_ARB,
SAMPLE_ALPHA_TO_ONE_ARB, SAMPLE_COVERAGE_ARB, SAMPLE_BUFFERS_ARB, SAMPLES_ARB, SAMPLE_COVERAGE_VALUE_ARB, SAMPLE_COVERAGE_INVERT_ARB, MULTISAMPLE_BIT_ARB
);FOR SERVERCAPABILITYENM USE (POINT_SMOOTH =>16#0B10#, LINE_SMOOTH =>16#0B20#, LINE_STIPPLE =>16#0B24#, POLYGON_SMOOTH =>16#0B41#, POLYGON_STIPPLE =>16#0B42#,
CULL_FACE =>16#0B44#, LIGHTING =>16#0B50#, COLOR_MATERIAL =>16#0B57#, FOG =>16#0B60#, DEPTH_TEST =>16#0B71#, STENCIL_TEST =>16#0B90#, NORMALIZE =>16#0BA1#,
ALPHA_TEST =>16#0BC0#, DITHER =>16#0BD0#, BLEND =>16#0BE2#, INDEX_LOGIC_OP =>16#0BF1#, COLOR_LOGIC_OP =>16#0BF2#, SCISSOR_TEST =>16#0C11#, TEXTURE_GEN_S =>16#0C60#,
TEXTURE_GEN_T =>16#0C61#, TEXTURE_GEN_R =>16#0C62#, TEXTURE_GEN_Q =>16#0C63#, AUTO_NORMAL =>16#0D80#, MAP1_COLOR_4 =>16#0D90#, MAP1_INDEX =>16#0D91#,
MAP1_NORMAL =>16#0D92#, MAP1_TEXTURE_COORD_1 =>16#0D93#, MAP1_TEXTURE_COORD_2 =>16#0D94#, MAP1_TEXTURE_COORD_3 =>16#0D95#, MAP1_TEXTURE_COORD_4 =>16#0D96#,
MAP1_VERTEX_3 =>16#0D97#, MAP1_VERTEX_4 =>16#0D98#, MAP2_COLOR_4 =>16#0DB0#, MAP2_INDEX =>16#0DB1#, MAP2_NORMAL =>16#0DB2#, MAP2_TEXTURE_COORD_1 =>16#0DB3#,
MAP2_TEXTURE_COORD_2 =>16#0DB4#, MAP2_TEXTURE_COORD_3 =>16#0DB5#, MAP2_TEXTURE_COORD_4 =>16#0DB6#, MAP2_VERTEX_3 =>16#0DB7#, MAP2_VERTEX_4 =>16#0DB8#,
TEXTURE_1D =>16#0DE0#, TEXTURE_2D =>16#0DE1#, POLYGON_OFFSET_POINT =>16#2A01#, POLYGON_OFFSET_LINE =>16#2A02#, CLIP_PLANE0 =>16#3000#, CLIP_PLANE1 =>16#3001#,
CLIP_PLANE2 =>16#3002#, CLIP_PLANE3 =>16#3003#, CLIP_PLANE4 =>16#3004#, CLIP_PLANE5 =>16#3005#, LIGHT0 =>16#4000#, LIGHT1 =>16#4001#, LIGHT2 =>16#4002#,
LIGHT3 =>16#4003#, LIGHT4 =>16#4004#, LIGHT5 =>16#4005#, LIGHT6 =>16#4006#, LIGHT7 =>16#4007#, POLYGON_OFFSET_FILL =>16#8037#, TEXTURE_3D_EXT =>16#806F#,
MULTISAMPLE_ARB =>16#809D#, SAMPLE_ALPHA_TO_COVERAGE_ARB =>16#809E#, SAMPLE_ALPHA_TO_ONE_ARB =>16#809F#, SAMPLE_COVERAGE_ARB =>16#80A0#, SAMPLE_BUFFERS_ARB =>16#80A8#,
SAMPLES_ARB =>16#80A9#, SAMPLE_COVERAGE_VALUE_ARB =>16#80AA#, SAMPLE_COVERAGE_INVERT_ARB =>16#80AB#, MULTISAMPLE_BIT_ARB =>16#20000000#);FOR SERVERCAPABILITYENM'SIZE USE GL.ENUM'SIZE;
PROCEDURE ENABLE (CAP:SERVERCAPABILITYENM);PROCEDURE DISABLE (CAP:SERVERCAPABILITYENM);FUNCTION ISENABLED (CAP:SERVERCAPABILITYENM)RETURN GL_BOOLEAN;
TYPE CLIENTCAPABILITYENM IS (VERTEX_ARRAY, NORMAL_ARRAY, COLOR_ARRAY, INDEX_ARRAY, TEXTURE_COORD_ARRAY, EDGE_FLAG_ARRAY);FOR CLIENTCAPABILITYENM USE
(VERTEX_ARRAY =>16#8074#, NORMAL_ARRAY =>16#8075#, COLOR_ARRAY =>16#8076#, INDEX_ARRAY =>16#8077#, TEXTURE_COORD_ARRAY =>16#8078#, EDGE_FLAG_ARRAY =>16#8079#
);FOR CLIENTCAPABILITYENM'SIZE USE GL.ENUM'SIZE;PROCEDURE ENABLECLIENTSTATE (CAP:CLIENTCAPABILITYENM);PROCEDURE DISABLECLIENTSTATE (CAP:CLIENTCAPABILITYENM);
TYPE PARAMETERNAMEENM IS (CURRENT_COLOR, CURRENT_INDEX, CURRENT_NORMAL, CURRENT_TEXTURE_COORDS, CURRENT_RASTER_COLOR, CURRENT_RASTER_INDEX,
CURRENT_RASTER_TEXTURE_COORDS, CURRENT_RASTER_POSITION, CURRENT_RASTER_POSITION_VALID, CURRENT_RASTER_DISTANCE, POINT_SMOOTH, POINT_SIZE, POINT_SIZE_RANGE,
POINT_SIZE_GRANULARITY, LINE_SMOOTH, LINE_WIDTH, LINE_WIDTH_RANGE, LINE_WIDTH_GRANULARITY, LINE_STIPPLE, LINE_STIPPLE_PATTERN, LINE_STIPPLE_REPEAT,
LIST_MODE, MAX_LIST_NESTING, LIST_BASE, LIST_INDEX, POLYGON_MODE, POLYGON_SMOOTH, POLYGON_STIPPLE, EDGE_FLAG, CULL_FACE, CULL_FACE_MODE, FRONT_FACE,
LIGHTING, LIGHT_MODEL_LOCAL_VIEWER, LIGHT_MODEL_TWO_SIDE, LIGHT_MODEL_AMBIENT, SHADE_MODEL, COLOR_MATERIAL_FACE, COLOR_MATERIAL_PARAMETER, COLOR_MATERIAL,
FOG, FOG_INDEX, FOG_DENSITY, FOG_START, FOG_END, FOG_MODE, FOG_COLOR, DEPTH_RANGE, DEPTH_TEST, DEPTH_WRITEMASK, DEPTH_CLEAR_VALUE, DEPTH_FUNC, ACCUM_CLEAR_VALUE,
STENCIL_TEST, STENCIL_CLEAR_VALUE, STENCIL_FUNC, STENCIL_VALUE_MASK, STENCIL_FAIL, STENCIL_PASS_DEPTH_FAIL, STENCIL_PASS_DEPTH_PASS, STENCIL_REF,
STENCIL_WRITEMASK, MATRIX_MODE, NORMALIZE, VIEWPORT, MODELVIEW_STACK_DEPTH, PROJECTION_STACK_DEPTH, TEXTURE_STACK_DEPTH, MODELVIEW_MATRIX, PROJECTION_MATRIX,
TEXTURE_MATRIX, ATTRIB_STACK_DEPTH, CLIENT_ATTRIB_STACK_DEPTH, ALPHA_TEST, ALPHA_TEST_FUNC, ALPHA_TEST_REF, DITHER, BLEND_DST, BLEND_SRC, BLEND,
LOGIC_OP_MODE, INDEX_LOGIC_OP, COLOR_LOGIC_OP, AUX_BUFFERS, DRAW_BUFFER, READ_BUFFER, SCISSOR_BOX, SCISSOR_TEST, INDEX_CLEAR_VALUE, INDEX_WRITEMASK,
COLOR_CLEAR_VALUE, COLOR_WRITEMASK, INDEX_MODE, RGBA_MODE, DOUBLEBUFFER, STEREO, RENDER_MODE, PERSPECTIVE_CORRECTION_HINT, POINT_SMOOTH_HINT, LINE_SMOOTH_HINT,
POLYGON_SMOOTH_HINT, FOG_HINT, TEXTURE_GEN_S, TEXTURE_GEN_T, TEXTURE_GEN_R, TEXTURE_GEN_Q, PIXEL_MAP_I_TO_I_SIZE, PIXEL_MAP_S_TO_S_SIZE, PIXEL_MAP_I_TO_R_SIZE,
PIXEL_MAP_I_TO_G_SIZE, PIXEL_MAP_I_TO_B_SIZE, PIXEL_MAP_I_TO_A_SIZE, PIXEL_MAP_R_TO_R_SIZE, PIXEL_MAP_G_TO_G_SIZE, PIXEL_MAP_B_TO_B_SIZE, PIXEL_MAP_A_TO_A_SIZE,
UNPACK_SWAP_BYTES, UNPACK_LSB_FIRST, UNPACK_ROW_LENGTH, UNPACK_SKIP_ROWS, UNPACK_SKIP_PIXELS, UNPACK_ALIGNMENT, PACK_SWAP_BYTES, PACK_LSB_FIRST,
PACK_ROW_LENGTH, PACK_SKIP_ROWS, PACK_SKIP_PIXELS, PACK_ALIGNMENT, MAP_COLOR, MAP_STENCIL, INDEX_SHIFT, INDEX_OFFSET, RED_SCALE, RED_BIAS, ZOOM_X,
ZOOM_Y, GREEN_SCALE, GREEN_BIAS, BLUE_SCALE, BLUE_BIAS, ALPHA_SCALE, ALPHA_BIAS, DEPTH_SCALE, DEPTH_BIAS, MAX_EVAL_ORDER, MAX_LIGHTS, MAX_CLIP_PLANES,
MAX_TEXTURE_SIZE, MAX_PIXEL_MAP_TABLE, MAX_ATTRIB_STACK_DEPTH, MAX_MODELVIEW_STACK_DEPTH, MAX_NAME_STACK_DEPTH, MAX_PROJECTION_STACK_DEPTH,
MAX_TEXTURE_STACK_DEPTH, MAX_VIEWPORT_DIMS, MAX_CLIENT_ATTRIB_STACK_DEPTH, SUBPIXEL_BITS, INDEX_BITS, RED_BITS, GREEN_BITS, BLUE_BITS, ALPHA_BITS,
DEPTH_BITS, STENCIL_BITS, ACCUM_RED_BITS, ACCUM_GREEN_BITS, ACCUM_BLUE_BITS, ACCUM_ALPHA_BITS, NAME_STACK_DEPTH, AUTO_NORMAL, MAP1_COLOR_4, MAP1_INDEX,
MAP1_NORMAL, MAP1_TEXTURE_COORD_1, MAP1_TEXTURE_COORD_2, MAP1_TEXTURE_COORD_3, MAP1_TEXTURE_COORD_4, MAP1_VERTEX_3, MAP1_VERTEX_4, MAP2_COLOR_4,
MAP2_INDEX, MAP2_NORMAL, MAP2_TEXTURE_COORD_1, MAP2_TEXTURE_COORD_2, MAP2_TEXTURE_COORD_3, MAP2_TEXTURE_COORD_4, MAP2_VERTEX_3, MAP2_VERTEX_4,
MAP1_GRID_DOMAIN, MAP1_GRID_SEGMENTS, MAP2_GRID_DOMAIN, MAP2_GRID_SEGMENTS, TEXTURE_1D, TEXTURE_2D, POLYGON_OFFSET_UNITS, POLYGON_OFFSET_POINT,
POLYGON_OFFSET_LINE, POLYGON_OFFSET_FILL, POLYGON_OFFSET_FACTOR, TEXTURE_BINDING_1D, TEXTURE_BINDING_2D, VERTEX_ARRAY, NORMAL_ARRAY, COLOR_ARRAY,
INDEX_ARRAY, TEXTURE_COORD_ARRAY, EDGE_FLAG_ARRAY, VERTEX_ARRAY_SIZE, VERTEX_ARRAY_TYPE, VERTEX_ARRAY_STRIDE, NORMAL_ARRAY_TYPE, NORMAL_ARRAY_STRIDE,
COLOR_ARRAY_SIZE, COLOR_ARRAY_TYPE, COLOR_ARRAY_STRIDE, INDEX_ARRAY_TYPE, INDEX_ARRAY_STRIDE, TEXTURE_COORD_ARRAY_SIZE, TEXTURE_COORD_ARRAY_TYPE,
TEXTURE_COORD_ARRAY_STRIDE, EDGE_FLAG_ARRAY_STRIDE, SAMPLES);FOR PARAMETERNAMEENM USE (CURRENT_COLOR =>16#0B00#, CURRENT_INDEX =>16#0B01#,
CURRENT_NORMAL =>16#0B02#, CURRENT_TEXTURE_COORDS =>16#0B03#, CURRENT_RASTER_COLOR =>16#0B04#, CURRENT_RASTER_INDEX =>16#0B05#, CURRENT_RASTER_TEXTURE_COORDS =>16#0B06#,
CURRENT_RASTER_POSITION =>16#0B07#, CURRENT_RASTER_POSITION_VALID =>16#0B08#, CURRENT_RASTER_DISTANCE =>16#0B09#, POINT_SMOOTH =>16#0B10#, POINT_SIZE =>16#0B11#,
POINT_SIZE_RANGE =>16#0B12#, POINT_SIZE_GRANULARITY =>16#0B13#, LINE_SMOOTH =>16#0B20#, LINE_WIDTH =>16#0B21#, LINE_WIDTH_RANGE =>16#0B22#, LINE_WIDTH_GRANULARITY =>16#0B23#,
LINE_STIPPLE =>16#0B24#, LINE_STIPPLE_PATTERN =>16#0B25#, LINE_STIPPLE_REPEAT =>16#0B26#, LIST_MODE =>16#0B30#, MAX_LIST_NESTING =>16#0B31#, LIST_BASE =>16#0B32#,
LIST_INDEX =>16#0B33#, POLYGON_MODE =>16#0B40#, POLYGON_SMOOTH =>16#0B41#, POLYGON_STIPPLE =>16#0B42#, EDGE_FLAG =>16#0B43#, CULL_FACE =>16#0B44#,
CULL_FACE_MODE =>16#0B45#, FRONT_FACE =>16#0B46#, LIGHTING =>16#0B50#, LIGHT_MODEL_LOCAL_VIEWER =>16#0B51#, LIGHT_MODEL_TWO_SIDE =>16#0B52#, LIGHT_MODEL_AMBIENT =>16#0B53#,
SHADE_MODEL =>16#0B54#, COLOR_MATERIAL_FACE =>16#0B55#, COLOR_MATERIAL_PARAMETER =>16#0B56#, COLOR_MATERIAL =>16#0B57#, FOG =>16#0B60#, FOG_INDEX =>16#0B61#,
FOG_DENSITY =>16#0B62#, FOG_START =>16#0B63#, FOG_END =>16#0B64#, FOG_MODE =>16#0B65#, FOG_COLOR =>16#0B66#, DEPTH_RANGE =>16#0B70#, DEPTH_TEST =>16#0B71#,
DEPTH_WRITEMASK =>16#0B72#, DEPTH_CLEAR_VALUE =>16#0B73#, DEPTH_FUNC =>16#0B74#, ACCUM_CLEAR_VALUE =>16#0B80#, STENCIL_TEST =>16#0B90#, STENCIL_CLEAR_VALUE =>16#0B91#,
STENCIL_FUNC =>16#0B92#, STENCIL_VALUE_MASK =>16#0B93#, STENCIL_FAIL =>16#0B94#, STENCIL_PASS_DEPTH_FAIL =>16#0B95#, STENCIL_PASS_DEPTH_PASS =>16#0B96#,
STENCIL_REF =>16#0B97#, STENCIL_WRITEMASK =>16#0B98#, MATRIX_MODE =>16#0BA0#, NORMALIZE =>16#0BA1#, VIEWPORT =>16#0BA2#, MODELVIEW_STACK_DEPTH =>16#0BA3#,
PROJECTION_STACK_DEPTH =>16#0BA4#, TEXTURE_STACK_DEPTH =>16#0BA5#, MODELVIEW_MATRIX =>16#0BA6#, PROJECTION_MATRIX =>16#0BA7#, TEXTURE_MATRIX =>16#0BA8#,
ATTRIB_STACK_DEPTH =>16#0BB0#, CLIENT_ATTRIB_STACK_DEPTH =>16#0BB1#, ALPHA_TEST =>16#0BC0#, ALPHA_TEST_FUNC =>16#0BC1#, ALPHA_TEST_REF =>16#0BC2#,
DITHER =>16#0BD0#, BLEND_DST =>16#0BE0#, BLEND_SRC =>16#0BE1#, BLEND =>16#0BE2#, LOGIC_OP_MODE =>16#0BF0#, INDEX_LOGIC_OP =>16#0BF1#, COLOR_LOGIC_OP =>16#0BF2#,
AUX_BUFFERS =>16#0C00#, DRAW_BUFFER =>16#0C01#, READ_BUFFER =>16#0C02#, SCISSOR_BOX =>16#0C10#, SCISSOR_TEST =>16#0C11#, INDEX_CLEAR_VALUE =>16#0C20#,
INDEX_WRITEMASK =>16#0C21#, COLOR_CLEAR_VALUE =>16#0C22#, COLOR_WRITEMASK =>16#0C23#, INDEX_MODE =>16#0C30#, RGBA_MODE =>16#0C31#, DOUBLEBUFFER =>16#0C32#,
STEREO =>16#0C33#, RENDER_MODE =>16#0C40#, PERSPECTIVE_CORRECTION_HINT =>16#0C50#, POINT_SMOOTH_HINT =>16#0C51#, LINE_SMOOTH_HINT =>16#0C52#, POLYGON_SMOOTH_HINT =>16#0C53#,
FOG_HINT =>16#0C54#, TEXTURE_GEN_S =>16#0C60#, TEXTURE_GEN_T =>16#0C61#, TEXTURE_GEN_R =>16#0C62#, TEXTURE_GEN_Q =>16#0C63#, PIXEL_MAP_I_TO_I_SIZE =>16#0CB0#,
PIXEL_MAP_S_TO_S_SIZE =>16#0CB1#, PIXEL_MAP_I_TO_R_SIZE =>16#0CB2#, PIXEL_MAP_I_TO_G_SIZE =>16#0CB3#, PIXEL_MAP_I_TO_B_SIZE =>16#0CB4#, PIXEL_MAP_I_TO_A_SIZE =>16#0CB5#,
PIXEL_MAP_R_TO_R_SIZE =>16#0CB6#, PIXEL_MAP_G_TO_G_SIZE =>16#0CB7#, PIXEL_MAP_B_TO_B_SIZE =>16#0CB8#, PIXEL_MAP_A_TO_A_SIZE =>16#0CB9#, UNPACK_SWAP_BYTES =>16#0CF0#,
UNPACK_LSB_FIRST =>16#0CF1#, UNPACK_ROW_LENGTH =>16#0CF2#, UNPACK_SKIP_ROWS =>16#0CF3#, UNPACK_SKIP_PIXELS =>16#0CF4#, UNPACK_ALIGNMENT =>16#0CF5#,
PACK_SWAP_BYTES =>16#0D00#, PACK_LSB_FIRST =>16#0D01#, PACK_ROW_LENGTH =>16#0D02#, PACK_SKIP_ROWS =>16#0D03#, PACK_SKIP_PIXELS =>16#0D04#, PACK_ALIGNMENT =>16#0D05#,
MAP_COLOR =>16#0D10#, MAP_STENCIL =>16#0D11#, INDEX_SHIFT =>16#0D12#, INDEX_OFFSET =>16#0D13#, RED_SCALE =>16#0D14#, RED_BIAS =>16#0D15#, ZOOM_X =>16#0D16#,
ZOOM_Y =>16#0D17#, GREEN_SCALE =>16#0D18#, GREEN_BIAS =>16#0D19#, BLUE_SCALE =>16#0D1A#, BLUE_BIAS =>16#0D1B#, ALPHA_SCALE =>16#0D1C#, ALPHA_BIAS =>16#0D1D#,
DEPTH_SCALE =>16#0D1E#, DEPTH_BIAS =>16#0D1F#, MAX_EVAL_ORDER =>16#0D30#, MAX_LIGHTS =>16#0D31#, MAX_CLIP_PLANES =>16#0D32#, MAX_TEXTURE_SIZE =>16#0D33#,
MAX_PIXEL_MAP_TABLE =>16#0D34#, MAX_ATTRIB_STACK_DEPTH =>16#0D35#, MAX_MODELVIEW_STACK_DEPTH =>16#0D36#, MAX_NAME_STACK_DEPTH =>16#0D37#, MAX_PROJECTION_STACK_DEPTH =>16#0D38#,
MAX_TEXTURE_STACK_DEPTH =>16#0D39#, MAX_VIEWPORT_DIMS =>16#0D3A#, MAX_CLIENT_ATTRIB_STACK_DEPTH =>16#0D3B#, SUBPIXEL_BITS =>16#0D50#, INDEX_BITS =>16#0D51#,
RED_BITS =>16#0D52#, GREEN_BITS =>16#0D53#, BLUE_BITS =>16#0D54#, ALPHA_BITS =>16#0D55#, DEPTH_BITS =>16#0D56#, STENCIL_BITS =>16#0D57#, ACCUM_RED_BITS =>16#0D58#,
ACCUM_GREEN_BITS =>16#0D59#, ACCUM_BLUE_BITS =>16#0D5A#, ACCUM_ALPHA_BITS =>16#0D5B#, NAME_STACK_DEPTH =>16#0D70#, AUTO_NORMAL =>16#0D80#, MAP1_COLOR_4 =>16#0D90#,
MAP1_INDEX =>16#0D91#, MAP1_NORMAL =>16#0D92#, MAP1_TEXTURE_COORD_1 =>16#0D93#, MAP1_TEXTURE_COORD_2 =>16#0D94#, MAP1_TEXTURE_COORD_3 =>16#0D95#,
MAP1_TEXTURE_COORD_4 =>16#0D96#, MAP1_VERTEX_3 =>16#0D97#, MAP1_VERTEX_4 =>16#0D98#, MAP2_COLOR_4 =>16#0DB0#, MAP2_INDEX =>16#0DB1#, MAP2_NORMAL =>16#0DB2#,
MAP2_TEXTURE_COORD_1 =>16#0DB3#, MAP2_TEXTURE_COORD_2 =>16#0DB4#, MAP2_TEXTURE_COORD_3 =>16#0DB5#, MAP2_TEXTURE_COORD_4 =>16#0DB6#, MAP2_VERTEX_3 =>16#0DB7#,
MAP2_VERTEX_4 =>16#0DB8#, MAP1_GRID_DOMAIN =>16#0DD0#, MAP1_GRID_SEGMENTS =>16#0DD1#, MAP2_GRID_DOMAIN =>16#0DD2#, MAP2_GRID_SEGMENTS =>16#0DD3#,
TEXTURE_1D =>16#0DE0#, TEXTURE_2D =>16#0DE1#, POLYGON_OFFSET_UNITS =>16#2A00#, POLYGON_OFFSET_POINT =>16#2A01#, POLYGON_OFFSET_LINE =>16#2A02#,
POLYGON_OFFSET_FILL =>16#8037#, POLYGON_OFFSET_FACTOR =>16#8038#, TEXTURE_BINDING_1D =>16#8068#, TEXTURE_BINDING_2D =>16#8069#, VERTEX_ARRAY =>16#8074#,
NORMAL_ARRAY =>16#8075#, COLOR_ARRAY =>16#8076#, INDEX_ARRAY =>16#8077#, TEXTURE_COORD_ARRAY =>16#8078#, EDGE_FLAG_ARRAY =>16#8079#, VERTEX_ARRAY_SIZE =>16#807A#,
VERTEX_ARRAY_TYPE =>16#807B#, VERTEX_ARRAY_STRIDE =>16#807C#, NORMAL_ARRAY_TYPE =>16#807E#, NORMAL_ARRAY_STRIDE =>16#807F#, COLOR_ARRAY_SIZE =>16#8081#,
COLOR_ARRAY_TYPE =>16#8082#, COLOR_ARRAY_STRIDE =>16#8083#, INDEX_ARRAY_TYPE =>16#8085#, INDEX_ARRAY_STRIDE =>16#8086#, TEXTURE_COORD_ARRAY_SIZE =>16#8088#,
TEXTURE_COORD_ARRAY_TYPE =>16#8089#, TEXTURE_COORD_ARRAY_STRIDE =>16#808A#, EDGE_FLAG_ARRAY_STRIDE =>16#808C#, SAMPLES =>16#80A9#);FOR PARAMETERNAMEENM'SIZE USE GL.ENUM'SIZE;
PROCEDURE GETBOOLEANV (PNAME:PARAMETERNAMEENM;PARAMS:GL_BOOLEANPTR);PROCEDURE GET (PNAME:PARAMETERNAMEENM;PARAMS:GL.DOUBLEPTR);PROCEDURE GETFLOATV (PNAME:PARAMETERNAMEENM;
PARAMS:FLOATPTR);PROCEDURE GETINTEGERV (PNAME:PARAMETERNAMEENM;PARAMS:GL.INTPOINTER);TYPE RENDERMODEENM IS (RENDER, FEEDBACK, GL_SELECT);
FOR RENDERMODEENM USE (RENDER =>16#1C00#, FEEDBACK =>16#1C01#, GL_SELECT =>16#1C02#);FOR RENDERMODEENM'SIZE USE GL.ENUM'SIZE;FUNCTION RENDERMODE (MODE:RENDERMODEENM)
RETURN GL.INT;TYPE ERRORENM IS (NO_ERROR, INVALID_ENUM, INVALID_VALUE, INVALID_OPERATION, STACK_OVERFLOW, STACK_UNDERFLOW, OUT_OF_MEMORY);FOR ERRORENM USE
(NO_ERROR =>16#0000#, INVALID_ENUM =>16#0500#, INVALID_VALUE =>16#0501#, INVALID_OPERATION =>16#0502#, STACK_OVERFLOW =>16#0503#, STACK_UNDERFLOW =>16#0504#,
OUT_OF_MEMORY =>16#0505#);FOR ERRORENM'SIZE USE GL.ENUM'SIZE;FUNCTION GETERROR RETURN ERRORENM;TYPE STRINGENM IS (VENDOR, RENDERER, VERSION,
EXTENSIONS);FOR STRINGENM USE (VENDOR =>16#1F00#, RENDERER =>16#1F01#, VERSION =>16#1F02#, EXTENSIONS =>16#1F03#);FOR STRINGENM'SIZE USE GL.ENUM'SIZE;
FUNCTION GETSTRING (NAME:STRINGENM)RETURN UBYTEPTR;FUNCTION GETSTRING (NAME:STRINGENM)RETURN STRING;TYPE HINTENM IS (PERSPECTIVE_CORRECTION_HINT,
POINT_SMOOTH_HINT, LINE_SMOOTH_HINT, POLYGON_SMOOTH_HINT, FOG_HINT);FOR HINTENM USE (PERSPECTIVE_CORRECTION_HINT =>16#0C50#, POINT_SMOOTH_HINT =>16#0C51#,
LINE_SMOOTH_HINT =>16#0C52#, POLYGON_SMOOTH_HINT =>16#0C53#, FOG_HINT =>16#0C54#);FOR HINTENM'SIZE USE GL.ENUM'SIZE;TYPE HINTMODEENM IS (DONT_CARE,
FASTEST, NICEST);FOR HINTMODEENM USE (DONT_CARE =>16#1100#, FASTEST =>16#1101#, NICEST =>16#1102#);FOR HINTMODEENM'SIZE USE GL.ENUM'SIZE;PROCEDURE HINT (TARGET:HINTENM;
MODE:HINTMODEENM);TYPE ACCUMENM IS (ACCUM, LOAD, GL_RETURN, MULT, ADD);FOR ACCUMENM USE (ACCUM =>16#0100#, LOAD =>16#0101#, GL_RETURN =>16#0102#,
MULT =>16#0103#, ADD =>16#0104#);FOR ACCUMENM'SIZE USE GL.ENUM'SIZE;PROCEDURE ACCUM (OP:ACCUMENM;VALUE:GL.FLOAT);TYPE MATRIXMODEENM IS (MODELVIEW,
PROJECTION, TEXTURE);FOR MATRIXMODEENM USE (MODELVIEW =>16#1700#, PROJECTION =>16#1701#, TEXTURE =>16#1702#);FOR MATRIXMODEENM'SIZE USE GL.ENUM'SIZE;
PROCEDURE MATRIXMODE (MODE:MATRIXMODEENM);TYPE LISTMODEENM IS (COMPILE, COMPILE_AND_EXECUTE);FOR LISTMODEENM USE (COMPILE =>16#1300#, COMPILE_AND_EXECUTE =>16#1301#
);FOR LISTMODEENM'SIZE USE GL.ENUM'SIZE;TYPE OFFSETTYPEENM IS (GL_BYTE, GL_UNSIGNED_BYTE, GL_SHORT, GL_UNSIGNED_SHORT, GL_INT, GL_UNSIGNED_INT,
GL_FLOAT, GL_2_BYTES, GL_3_BYTES, GL_4_BYTES);FOR OFFSETTYPEENM USE (GL_BYTE =>16#1400#, GL_UNSIGNED_BYTE =>16#1401#, GL_SHORT =>16#1402#, GL_UNSIGNED_SHORT =>16#1403#,
GL_INT =>16#1404#, GL_UNSIGNED_INT =>16#1405#, GL_FLOAT =>16#1406#, GL_2_BYTES =>16#1407#, GL_3_BYTES =>16#1408#, GL_4_BYTES =>16#1409#);FOR OFFSETTYPEENM'SIZE USE GL.ENUM'SIZE;
FUNCTION ISLIST (LIST:GL.UINT)RETURN GL_BOOLEAN;PROCEDURE DELETELISTS (LIST:GL.UINT;C_RANGE:GL.SIZEI);FUNCTION GENLISTS (C_RANGE:GL.SIZEI)RETURN GL.UINT;
PROCEDURE NEWLIST (LIST:GL.UINT;MODE:LISTMODEENM);PROCEDURE ENDLIST;PROCEDURE CALLLIST (LIST:GL.UINT);PROCEDURE CALLLISTS (N:GL.SIZEI;C_TYPE:OFFSETTYPEENM;
LISTS:GL.POINTER);PROCEDURE LISTBASE (BASE:GL.UINT);TYPE OBJECTTYPEENM IS (POINTS, LINES, LINE_LOOP, LINE_STRIP, TRIANGLES, TRIANGLE_STRIP, TRIANGLE_FAN,
QUADS, QUAD_STRIP, POLYGON);FOR OBJECTTYPEENM USE (POINTS =>16#0000#, LINES =>16#0001#, LINE_LOOP =>16#0002#, LINE_STRIP =>16#0003#, TRIANGLES =>16#0004#,
TRIANGLE_STRIP =>16#0005#, TRIANGLE_FAN =>16#0006#, QUADS =>16#0007#, QUAD_STRIP =>16#0008#, POLYGON =>16#0009#);FOR OBJECTTYPEENM'SIZE USE GL.ENUM'SIZE;
PROCEDURE GL_BEGIN (MODE:OBJECTTYPEENM);PROCEDURE GL_END;TYPE VERTEXTYPEENM IS (GL_SHORT, GL_INT, GL_FLOAT, GL_DOUBLE);FOR VERTEXTYPEENM USE
(GL_SHORT =>16#1402#, GL_INT =>16#1404#, GL_FLOAT =>16#1406#, GL_DOUBLE =>16#140A#);FOR VERTEXTYPEENM'SIZE USE GL.ENUM'SIZE;TYPE NORMALTYPEENM IS
(GL_BYTE, GL_SHORT, GL_INT, GL_FLOAT, GL_DOUBLE);FOR NORMALTYPEENM USE (GL_BYTE =>16#1400#, GL_SHORT =>16#1402#, GL_INT =>16#1404#, GL_FLOAT =>16#1406#,
GL_DOUBLE =>16#140A#);FOR NORMALTYPEENM'SIZE USE GL.ENUM'SIZE;TYPE COLORTYPEENM IS (GL_BYTE, GL_UNSIGNED_BYTE, GL_SHORT, GL_UNSIGNED_SHORT,
GL_INT, GL_UNSIGNED_INT, GL_FLOAT, GL_DOUBLE);FOR COLORTYPEENM USE (GL_BYTE =>16#1400#, GL_UNSIGNED_BYTE =>16#1401#, GL_SHORT =>16#1402#, GL_UNSIGNED_SHORT =>16#1403#,
GL_INT =>16#1404#, GL_UNSIGNED_INT =>16#1405#, GL_FLOAT =>16#1406#, GL_DOUBLE =>16#140A#);FOR COLORTYPEENM'SIZE USE GL.ENUM'SIZE;TYPE INDEXTYPEENM IS
(GL_UNSIGNED_BYTE, GL_SHORT, GL_INT, GL_FLOAT, GL_DOUBLE);FOR INDEXTYPEENM USE (GL_UNSIGNED_BYTE =>16#1401#, GL_SHORT =>16#1402#, GL_INT =>16#1404#,
GL_FLOAT =>16#1406#, GL_DOUBLE =>16#140A#);FOR INDEXTYPEENM'SIZE USE GL.ENUM'SIZE;TYPE TEXCOORDTYPEENM IS (GL_SHORT, GL_INT, GL_FLOAT, GL_DOUBLE
);FOR TEXCOORDTYPEENM USE (GL_SHORT =>16#1402#, GL_INT =>16#1404#, GL_FLOAT =>16#1406#, GL_DOUBLE =>16#140A#);FOR TEXCOORDTYPEENM'SIZE USE GL.ENUM'SIZE;
TYPE ARRAYINDEXTYPEENM IS (UNSIGNED_BYTE, UNSIGNED_SHORT, UNSIGNED_INT);FOR ARRAYINDEXTYPEENM USE (UNSIGNED_BYTE =>16#1401#, UNSIGNED_SHORT =>16#1403#,
UNSIGNED_INT =>16#1405#);FOR ARRAYINDEXTYPEENM'SIZE USE GL.ENUM'SIZE;TYPE INTERLEAVEFORMATENM IS (V2F, V3F, C4UB_V2F, C4UB_V3F, C3F_V3F, N3F_V3F,
C4F_N3F_V3F, T2F_V3F, T4F_V4F, T2F_C4UB_V3F, T2F_C3F_V3F, T2F_N3F_V3F, T2F_C4F_N3F_V3F, T4F_C4F_N3F_V4F);FOR INTERLEAVEFORMATENM USE (V2F =>16#2A20#,
V3F =>16#2A21#, C4UB_V2F =>16#2A22#, C4UB_V3F =>16#2A23#, C3F_V3F =>16#2A24#, N3F_V3F =>16#2A25#, C4F_N3F_V3F =>16#2A26#, T2F_V3F =>16#2A27#, T4F_V4F =>16#2A28#,
T2F_C4UB_V3F =>16#2A29#, T2F_C3F_V3F =>16#2A2A#, T2F_N3F_V3F =>16#2A2B#, T2F_C4F_N3F_V3F =>16#2A2C#, T4F_C4F_N3F_V4F =>16#2A2D#);FOR INTERLEAVEFORMATENM'SIZE USE GL.ENUM'SIZE;
PROCEDURE VERTEXPOINTER (SIZE:GL.INT;C_TYPE:VERTEXTYPEENM;STRIDE:GL.SIZEI;PTR:GL.POINTER);PROCEDURE NORMALPOINTER (C_TYPE:NORMALTYPEENM;
STRIDE:GL.SIZEI;PTR:GL.POINTER);PROCEDURE COLORPOINTER (SIZE:GL.INT;C_TYPE:COLORTYPEENM;STRIDE:GL.SIZEI;PTR:GL.POINTER);PROCEDURE INDEXPOINTER (C_TYPE:INDEXTYPEENM;
STRIDE:GL.SIZEI;PTR:GL.POINTER);PROCEDURE TEXCOORDPOINTER (SIZE:GL.INT;C_TYPE:TEXCOORDTYPEENM;STRIDE:GL.SIZEI;PTR:GL.POINTER);PROCEDURE EDGEFLAGPOINTER (STRIDE:GL.SIZEI;
PTR:GL_BOOLEANPTR);PROCEDURE ARRAYELEMENT (I:GL.INT);PROCEDURE DRAWARRAYS (MODE:OBJECTTYPEENM;FIRST:GL.INT;COUNT:GL.SIZEI);PROCEDURE DRAWELEMENTS (MODE:OBJECTTYPEENM;
COUNT:GL.SIZEI;C_TYPE:ARRAYINDEXTYPEENM;INDICES:GL.POINTER);PROCEDURE INTERLEAVEDARRAYS (FORMAT:INTERLEAVEFORMATENM;STRIDE:GL.SIZEI;POINTER:GL.POINTER);
TYPE SHADEMODEENM IS (FLAT, SMOOTH);FOR SHADEMODEENM USE (FLAT =>16#1D00#, SMOOTH =>16#1D01#);FOR SHADEMODEENM'SIZE USE GL.ENUM'SIZE;PROCEDURE SHADEMODEL (MODE:SHADEMODEENM);
TYPE LIGHTIDENM IS (LIGHT0, LIGHT1, LIGHT2, LIGHT3, LIGHT4, LIGHT5, LIGHT6, LIGHT7);FOR LIGHTIDENM USE (LIGHT0 =>16#4000#, LIGHT1 =>16#4001#, LIGHT2 =>16#4002#,
LIGHT3 =>16#4003#, LIGHT4 =>16#4004#, LIGHT5 =>16#4005#, LIGHT6 =>16#4006#, LIGHT7 =>16#4007#);FOR LIGHTIDENM'SIZE USE GL.ENUM'SIZE;TYPE LIGHTPARAMETERENM IS
(SPOT_EXPONENT, SPOT_CUTOFF, CONSTANT_ATTENUATION, LINEAR_ATTENUATION, QUADRATIC_ATTENUATION);FOR LIGHTPARAMETERENM USE (SPOT_EXPONENT =>16#1205#,
SPOT_CUTOFF =>16#1206#, CONSTANT_ATTENUATION =>16#1207#, LINEAR_ATTENUATION =>16#1208#, QUADRATIC_ATTENUATION =>16#1209#);FOR LIGHTPARAMETERENM'SIZE USE GL.ENUM'SIZE;
TYPE LIGHTPARAMETERVENM IS (AMBIENT, DIFFUSE, SPECULAR, POSITION, SPOT_DIRECTION, SPOT_EXPONENT, SPOT_CUTOFF, CONSTANT_ATTENUATION, LINEAR_ATTENUATION,
QUADRATIC_ATTENUATION);FOR LIGHTPARAMETERVENM USE (AMBIENT =>16#1200#, DIFFUSE =>16#1201#, SPECULAR =>16#1202#, POSITION =>16#1203#, SPOT_DIRECTION =>16#1204#,
SPOT_EXPONENT =>16#1205#, SPOT_CUTOFF =>16#1206#, CONSTANT_ATTENUATION =>16#1207#, LINEAR_ATTENUATION =>16#1208#, QUADRATIC_ATTENUATION =>16#1209#
);FOR LIGHTPARAMETERVENM'SIZE USE GL.ENUM'SIZE;TYPE LIGHTMODELENM IS (LIGHT_MODEL_LOCAL_VIEWER, LIGHT_MODEL_TWO_SIDE);FOR LIGHTMODELENM USE
(LIGHT_MODEL_LOCAL_VIEWER =>16#0B51#, LIGHT_MODEL_TWO_SIDE =>16#0B52#);FOR LIGHTMODELENM'SIZE USE GL.ENUM'SIZE;TYPE LIGHTMODELVENM IS (LIGHT_MODEL_LOCAL_VIEWER,
LIGHT_MODEL_TWO_SIDE, LIGHT_MODEL_AMBIENT);FOR LIGHTMODELVENM USE (LIGHT_MODEL_LOCAL_VIEWER =>16#0B51#, LIGHT_MODEL_TWO_SIDE =>16#0B52#, LIGHT_MODEL_AMBIENT =>16#0B53#
);FOR LIGHTMODELVENM'SIZE USE GL.ENUM'SIZE;PROCEDURE LIGHT (LIGHT:LIGHTIDENM;PNAME:LIGHTPARAMETERENM;PARAM:GL.FLOAT);PROCEDURE LIGHTI (LIGHT:LIGHTIDENM;
PNAME:LIGHTPARAMETERENM;PARAM:GL.INT);PROCEDURE LIGHT (LIGHT:LIGHTIDENM;PNAME:LIGHTPARAMETERVENM;PARAMS:LIGHT_FLOAT_VECTOR);PROCEDURE LIGHTIV (LIGHT:LIGHTIDENM;
PNAME:LIGHTPARAMETERVENM;PARAMS:GL.INTPOINTER);PROCEDURE GETLIGHTFV (LIGHT:LIGHTIDENM;PNAME:LIGHTPARAMETERVENM;PARAMS:FLOATPTR);PROCEDURE GETLIGHTIV (LIGHT:LIGHTIDENM;
PNAME:LIGHTPARAMETERVENM;PARAMS:GL.INTPOINTER);PROCEDURE LIGHTMODELF (PNAME:LIGHTMODELENM;PARAM:GL.FLOAT);PROCEDURE LIGHTMODELI (PNAME:LIGHTMODELENM;
PARAM:GL.INT);PROCEDURE LIGHTMODELFV (PNAME:LIGHTMODELVENM;PARAMS:FLOATPTR);PROCEDURE LIGHTMODELIV (PNAME:LIGHTMODELVENM;PARAMS:GL.INTPOINTER);
TYPE MATERIALPARAMETERENM IS (SHININESS);FOR MATERIALPARAMETERENM USE (SHININESS =>16#1601#);FOR MATERIALPARAMETERENM'SIZE USE GL.ENUM'SIZE;
TYPE MATERIALPARAMETERVENM IS (AMBIENT, DIFFUSE, SPECULAR, EMISSION, SHININESS, AMBIENT_AND_DIFFUSE, COLOR_INDEXES);FOR MATERIALPARAMETERVENM USE
(AMBIENT =>16#1200#, DIFFUSE =>16#1201#, SPECULAR =>16#1202#, EMISSION =>16#1600#, SHININESS =>16#1601#, AMBIENT_AND_DIFFUSE =>16#1602#, COLOR_INDEXES =>16#1603#
);FOR MATERIALPARAMETERVENM'SIZE USE GL.ENUM'SIZE;TYPE GETMATERIALPARAMETERENM IS (AMBIENT, DIFFUSE, SPECULAR, EMISSION, SHININESS, COLOR_INDEXES
);FOR GETMATERIALPARAMETERENM USE (AMBIENT =>16#1200#, DIFFUSE =>16#1201#, SPECULAR =>16#1202#, EMISSION =>16#1600#, SHININESS =>16#1601#, COLOR_INDEXES =>16#1603#
);FOR GETMATERIALPARAMETERENM'SIZE USE GL.ENUM'SIZE;TYPE COLORMATERIALENM IS (AMBIENT, DIFFUSE, SPECULAR, EMISSION, AMBIENT_AND_DIFFUSE);
FOR COLORMATERIALENM USE (AMBIENT =>16#1200#, DIFFUSE =>16#1201#, SPECULAR =>16#1202#, EMISSION =>16#1600#, AMBIENT_AND_DIFFUSE =>16#1602#);FOR COLORMATERIALENM'SIZE USE GL.ENUM'SIZE;
PROCEDURE MATERIAL (FACE:FACEENM;PNAME:MATERIALPARAMETERENM;PARAM:GL.FLOAT);PROCEDURE MATERIALI (FACE:FACEENM;PNAME:MATERIALPARAMETERENM;
PARAM:GL.INT);PROCEDURE MATERIAL (FACE:FACEENM;PNAME:MATERIALPARAMETERVENM;PARAMS:MATERIAL_FLOAT_VECTOR);PROCEDURE MATERIALIV (FACE:FACEENM;
PNAME:MATERIALPARAMETERVENM;PARAMS:GL.INTPOINTER);PROCEDURE GETMATERIALFV (FACE:FACEENM;PNAME:GETMATERIALPARAMETERENM;PARAMS:FLOATPTR);
PROCEDURE GETMATERIALIV (FACE:FACEENM;PNAME:GETMATERIALPARAMETERENM;PARAMS:GL.INTPOINTER);PROCEDURE COLORMATERIAL (FACE:FACEENM;MODE:COLORMATERIALENM);
TYPE PIXELSTORAGEENM IS (UNPACK_SWAP_BYTES, UNPACK_LSB_FIRST, UNPACK_ROW_LENGTH, UNPACK_SKIP_ROWS, UNPACK_SKIP_PIXELS, UNPACK_ALIGNMENT, PACK_SWAP_BYTES,
PACK_LSB_FIRST, PACK_ROW_LENGTH, PACK_SKIP_ROWS, PACK_SKIP_PIXELS, PACK_ALIGNMENT);FOR PIXELSTORAGEENM USE (UNPACK_SWAP_BYTES =>16#0CF0#, UNPACK_LSB_FIRST =>16#0CF1#,
UNPACK_ROW_LENGTH =>16#0CF2#, UNPACK_SKIP_ROWS =>16#0CF3#, UNPACK_SKIP_PIXELS =>16#0CF4#, UNPACK_ALIGNMENT =>16#0CF5#, PACK_SWAP_BYTES =>16#0D00#,
PACK_LSB_FIRST =>16#0D01#, PACK_ROW_LENGTH =>16#0D02#, PACK_SKIP_ROWS =>16#0D03#, PACK_SKIP_PIXELS =>16#0D04#, PACK_ALIGNMENT =>16#0D05#);FOR PIXELSTORAGEENM'SIZE USE GL.ENUM'SIZE;
TYPE PIXELTRANSFERENM IS (MAP_COLOR, MAP_STENCIL, INDEX_SHIFT, INDEX_OFFSET, RED_SCALE, RED_BIAS, GREEN_SCALE, GREEN_BIAS, BLUE_SCALE, BLUE_BIAS,
ALPHA_SCALE, ALPHA_BIAS, DEPTH_SCALE, DEPTH_BIAS);FOR PIXELTRANSFERENM USE (MAP_COLOR =>16#0D10#, MAP_STENCIL =>16#0D11#, INDEX_SHIFT =>16#0D12#,
INDEX_OFFSET =>16#0D13#, RED_SCALE =>16#0D14#, RED_BIAS =>16#0D15#, GREEN_SCALE =>16#0D18#, GREEN_BIAS =>16#0D19#, BLUE_SCALE =>16#0D1A#, BLUE_BIAS =>16#0D1B#,
ALPHA_SCALE =>16#0D1C#, ALPHA_BIAS =>16#0D1D#, DEPTH_SCALE =>16#0D1E#, DEPTH_BIAS =>16#0D1F#);FOR PIXELTRANSFERENM'SIZE USE GL.ENUM'SIZE;TYPE PIXELMAPENM IS
(PIXEL_MAP_I_TO_I, PIXEL_MAP_S_TO_S, PIXEL_MAP_I_TO_R, PIXEL_MAP_I_TO_G, PIXEL_MAP_I_TO_B, PIXEL_MAP_I_TO_A, PIXEL_MAP_R_TO_R, PIXEL_MAP_G_TO_G,
PIXEL_MAP_B_TO_B, PIXEL_MAP_A_TO_A);FOR PIXELMAPENM USE (PIXEL_MAP_I_TO_I =>16#0C70#, PIXEL_MAP_S_TO_S =>16#0C71#, PIXEL_MAP_I_TO_R =>16#0C72#,
PIXEL_MAP_I_TO_G =>16#0C73#, PIXEL_MAP_I_TO_B =>16#0C74#, PIXEL_MAP_I_TO_A =>16#0C75#, PIXEL_MAP_R_TO_R =>16#0C76#, PIXEL_MAP_G_TO_G =>16#0C77#,
PIXEL_MAP_B_TO_B =>16#0C78#, PIXEL_MAP_A_TO_A =>16#0C79#);FOR PIXELMAPENM'SIZE USE GL.ENUM'SIZE;TYPE PIXELFORMATENM IS (COLOR_INDEX, STENCIL_INDEX,
DEPTH_COMPONENT, RED, GREEN, BLUE, ALPHA, RGB, RGBA, LUMINANCE, LUMINANCE_ALPHA, BGR, BGRA);FOR PIXELFORMATENM USE (COLOR_INDEX =>16#1900#, STENCIL_INDEX =>16#1901#,
DEPTH_COMPONENT =>16#1902#, RED =>16#1903#, GREEN =>16#1904#, BLUE =>16#1905#, ALPHA =>16#1906#, RGB =>16#1907#, RGBA =>16#1908#, LUMINANCE =>16#1909#,
LUMINANCE_ALPHA =>16#190A#, BGR =>16#80E0#, BGRA =>16#80E1#);FOR PIXELFORMATENM'SIZE USE GL.ENUM'SIZE;TYPE PIXELDATATYPEENM IS (GL_BYTE, GL_UNSIGNED_BYTE,
GL_SHORT, GL_UNSIGNED_SHORT, GL_INT, GL_UNSIGNED_INT, GL_FLOAT, GL_BITMAP);FOR PIXELDATATYPEENM USE (GL_BYTE =>16#1400#, GL_UNSIGNED_BYTE =>16#1401#,
GL_SHORT =>16#1402#, GL_UNSIGNED_SHORT =>16#1403#, GL_INT =>16#1404#, GL_UNSIGNED_INT =>16#1405#, GL_FLOAT =>16#1406#, GL_BITMAP =>16#1A00#);FOR PIXELDATATYPEENM'SIZE USE GL.ENUM'SIZE;
TYPE PIXELCOPYTYPEENM IS (COLOR, DEPTH, STENCIL);FOR PIXELCOPYTYPEENM USE (COLOR =>16#1800#, DEPTH =>16#1801#, STENCIL =>16#1802#);FOR PIXELCOPYTYPEENM'SIZE USE GL.ENUM'SIZE;
PROCEDURE PIXELZOOM (XFACTOR:GL.FLOAT;YFACTOR:GL.FLOAT);PROCEDURE PIXELSTOREF (PNAME:PIXELSTORAGEENM;PARAM:GL.FLOAT);PROCEDURE PIXELSTORE (PNAME:PIXELSTORAGEENM;
PARAM:GL.INT);PROCEDURE PIXELTRANSFERF (PNAME:PIXELTRANSFERENM;PARAM:GL.FLOAT);PROCEDURE PIXELTRANSFERI (PNAME:PIXELTRANSFERENM;PARAM:GL.INT);
PROCEDURE PIXELMAPFV (MAP:PIXELMAPENM;MAPSIZE:GL.INT;VALUES:FLOATPTR);PROCEDURE PIXELMAPUIV (MAP:PIXELMAPENM;MAPSIZE:GL.INT;VALUES:GL.UINTPTR);
PROCEDURE PIXELMAPUSV (MAP:PIXELMAPENM;MAPSIZE:GL.INT;VALUES:USHORTPTR);PROCEDURE GETPIXELMAPFV (MAP:PIXELMAPENM;VALUES:FLOATPTR);PROCEDURE GETPIXELMAPUIV (MAP:PIXELMAPENM;
VALUES:GL.UINTPTR);PROCEDURE GETPIXELMAPUSV (MAP:PIXELMAPENM;VALUES:USHORTPTR);PROCEDURE READPIXELS (X:GL.INT;Y:GL.INT;WIDTH:GL.SIZEI;HEIGHT:GL.SIZEI;
FORMAT:PIXELFORMATENM;C_TYPE:PIXELDATATYPEENM;PIXELS:GL.POINTER);PROCEDURE DRAWPIXELS (WIDTH:GL.SIZEI;HEIGHT:GL.SIZEI;FORMAT:PIXELFORMATENM;
C_TYPE:PIXELDATATYPEENM;PIXELS:GL.POINTER);PROCEDURE COPYPIXELS (X:GL.INT;Y:GL.INT;WIDTH:GL.SIZEI;HEIGHT:GL.SIZEI;C_TYPE:PIXELCOPYTYPEENM);
TYPE TEXCOORDENM IS (S, T, R, Q);FOR TEXCOORDENM USE (S =>16#2000#, T =>16#2001#, R =>16#2002#, Q =>16#2003#);FOR TEXCOORDENM'SIZE USE GL.ENUM'SIZE;
TYPE TEXPARAMETERENM IS (TEXTURE_GEN_MODE);FOR TEXPARAMETERENM USE (TEXTURE_GEN_MODE =>16#2500#);FOR TEXPARAMETERENM'SIZE USE GL.ENUM'SIZE;
TYPE TEXPARAMETERVENM IS (TEXTURE_GEN_MODE, OBJECT_PLANE, EYE_PLANE);FOR TEXPARAMETERVENM USE (TEXTURE_GEN_MODE =>16#2500#, OBJECT_PLANE =>16#2501#,
EYE_PLANE =>16#2502#);FOR TEXPARAMETERVENM'SIZE USE GL.ENUM'SIZE;TYPE TEXENVENM IS (TEXTURE_ENV);FOR TEXENVENM USE (TEXTURE_ENV =>16#2300#
);FOR TEXENVENM'SIZE USE GL.ENUM'SIZE;TYPE TEXENVPARAMETERENM IS (TEXTURE_ENV_MODE);FOR TEXENVPARAMETERENM USE (TEXTURE_ENV_MODE =>16#2200#
);FOR TEXENVPARAMETERENM'SIZE USE GL.ENUM'SIZE;TYPE TEXENVPARAMETERVENM IS (TEXTURE_ENV_MODE, TEXTURE_ENV_COLOR);FOR TEXENVPARAMETERVENM USE
(TEXTURE_ENV_MODE =>16#2200#, TEXTURE_ENV_COLOR =>16#2201#);FOR TEXENVPARAMETERVENM'SIZE USE GL.ENUM'SIZE;TYPE TARGETTEXENM IS (TEXTURE_1D,
TEXTURE_2D);FOR TARGETTEXENM USE (TEXTURE_1D =>16#0DE0#, TEXTURE_2D =>16#0DE1#);FOR TARGETTEXENM'SIZE USE GL.ENUM'SIZE;TYPE TEXPARAMENM IS
(TEXTURE_MAG_FILTER, TEXTURE_MIN_FILTER, TEXTURE_WRAP_S, TEXTURE_WRAP_T, TEXTURE_PRIORITY);FOR TEXPARAMENM USE (TEXTURE_MAG_FILTER =>16#2800#,
TEXTURE_MIN_FILTER =>16#2801#, TEXTURE_WRAP_S =>16#2802#, TEXTURE_WRAP_T =>16#2803#, TEXTURE_PRIORITY =>16#8066#);FOR TEXPARAMENM'SIZE USE GL.ENUM'SIZE;
TYPE TEXPARAMVENM IS (TEXTURE_BORDER_COLOR, TEXTURE_MAG_FILTER, TEXTURE_MIN_FILTER, TEXTURE_WRAP_S, TEXTURE_WRAP_T, TEXTURE_PRIORITY);FOR TEXPARAMVENM USE
(TEXTURE_BORDER_COLOR =>16#1004#, TEXTURE_MAG_FILTER =>16#2800#, TEXTURE_MIN_FILTER =>16#2801#, TEXTURE_WRAP_S =>16#2802#, TEXTURE_WRAP_T =>16#2803#,
TEXTURE_PRIORITY =>16#8066#);FOR TEXPARAMVENM'SIZE USE GL.ENUM'SIZE;TYPE GETTEXPARAMENM IS (TEXTURE_BORDER_COLOR, TEXTURE_MAG_FILTER, TEXTURE_MIN_FILTER,
TEXTURE_WRAP_S, TEXTURE_WRAP_T, TEXTURE_PRIORITY, TEXTURE_RESIDENT);FOR GETTEXPARAMENM USE (TEXTURE_BORDER_COLOR =>16#1004#, TEXTURE_MAG_FILTER =>16#2800#,
TEXTURE_MIN_FILTER =>16#2801#, TEXTURE_WRAP_S =>16#2802#, TEXTURE_WRAP_T =>16#2803#, TEXTURE_PRIORITY =>16#8066#, TEXTURE_RESIDENT =>16#8067#);
FOR GETTEXPARAMENM'SIZE USE GL.ENUM'SIZE;TYPE TARGETTEXLEVELENM IS (TEXTURE_1D, TEXTURE_2D, PROXY_TEXTURE_1D, PROXY_TEXTURE_2D);FOR TARGETTEXLEVELENM USE
(TEXTURE_1D =>16#0DE0#, TEXTURE_2D =>16#0DE1#, PROXY_TEXTURE_1D =>16#8063#, PROXY_TEXTURE_2D =>16#8064#);FOR TARGETTEXLEVELENM'SIZE USE GL.ENUM'SIZE;
TYPE TEXLEVELPARAMETERENM IS (TEXTURE_WIDTH, TEXTURE_HEIGHT, TEXTURE_COMPONENTS, TEXTURE_BORDER, TEXTURE_RED_SIZE, TEXTURE_GREEN_SIZE, TEXTURE_BLUE_SIZE,
TEXTURE_ALPHA_SIZE, TEXTURE_LUMINANCE_SIZE, TEXTURE_INTENSITY_SIZE, TEXTURE_INTERNAL_FORMAT);FOR TEXLEVELPARAMETERENM USE (TEXTURE_WIDTH =>16#1000#,
TEXTURE_HEIGHT =>16#1001#, TEXTURE_COMPONENTS =>16#1003#, TEXTURE_BORDER =>16#1005#, TEXTURE_RED_SIZE =>16#805C#, TEXTURE_GREEN_SIZE =>16#805D#,
TEXTURE_BLUE_SIZE =>16#805E#, TEXTURE_ALPHA_SIZE =>16#805F#, TEXTURE_LUMINANCE_SIZE =>16#8060#, TEXTURE_INTENSITY_SIZE =>16#8061#, TEXTURE_INTERNAL_FORMAT =>16#FFFF#
);FOR TEXLEVELPARAMETERENM'SIZE USE GL.ENUM'SIZE;TYPE TARGETTEX1DENM IS (TEXTURE_1D, PROXY_TEXTURE_1D);FOR TARGETTEX1DENM USE (TEXTURE_1D =>16#0DE0#,
PROXY_TEXTURE_1D =>16#8063#);FOR TARGETTEX1DENM'SIZE USE GL.ENUM'SIZE;TYPE TEXFORMATENM IS (ALPHA, RGB, RGBA, LUMINANCE, LUMINANCE_ALPHA, R3_G3_B2,
ALPHA4, ALPHA8, ALPHA12, ALPHA16, LUMINANCE4, LUMINANCE8, LUMINANCE12, LUMINANCE16, LUMINANCE4_ALPHA4, LUMINANCE6_ALPHA2, LUMINANCE8_ALPHA8, LUMINANCE12_ALPHA4,
LUMINANCE12_ALPHA12, LUMINANCE16_ALPHA16, INTENSITY, INTENSITY4, INTENSITY8, INTENSITY12, INTENSITY16, RGB4, RGB5, RGB8, RGB10, RGB12, RGB16, RGBA2,
RGBA4, RGB5_A1, RGBA8, RGB10_A2, RGBA12, RGBA16, BGR, BGRA);FOR TEXFORMATENM USE (ALPHA =>16#1906#, RGB =>16#1907#, RGBA =>16#1908#, LUMINANCE =>16#1909#,
LUMINANCE_ALPHA =>16#190A#, R3_G3_B2 =>16#2A10#, ALPHA4 =>16#803B#, ALPHA8 =>16#803C#, ALPHA12 =>16#803D#, ALPHA16 =>16#803E#, LUMINANCE4 =>16#803F#,
LUMINANCE8 =>16#8040#, LUMINANCE12 =>16#8041#, LUMINANCE16 =>16#8042#, LUMINANCE4_ALPHA4 =>16#8043#, LUMINANCE6_ALPHA2 =>16#8044#, LUMINANCE8_ALPHA8 =>16#8045#,
LUMINANCE12_ALPHA4 =>16#8046#, LUMINANCE12_ALPHA12 =>16#8047#, LUMINANCE16_ALPHA16 =>16#8048#, INTENSITY =>16#8049#, INTENSITY4 =>16#804A#, INTENSITY8 =>16#804B#,
INTENSITY12 =>16#804C#, INTENSITY16 =>16#804D#, RGB4 =>16#804F#, RGB5 =>16#8050#, RGB8 =>16#8051#, RGB10 =>16#8052#, RGB12 =>16#8053#, RGB16 =>16#8054#,
RGBA2 =>16#8055#, RGBA4 =>16#8056#, RGB5_A1 =>16#8057#, RGBA8 =>16#8058#, RGB10_A2 =>16#8059#, RGBA12 =>16#805A#, RGBA16 =>16#805B#, BGR =>16#80E0#, BGRA =>16#80E1#
);FOR TEXFORMATENM'SIZE USE GL.ENUM'SIZE;TYPE TEXPIXELFORMATENM IS (COLOR_INDEX, RED, GREEN, BLUE, ALPHA, RGB, RGBA, LUMINANCE, LUMINANCE_ALPHA
);FOR TEXPIXELFORMATENM USE (COLOR_INDEX =>16#1900#, RED =>16#1903#, GREEN =>16#1904#, BLUE =>16#1905#, ALPHA =>16#1906#, RGB =>16#1907#, RGBA =>16#1908#,
LUMINANCE =>16#1909#, LUMINANCE_ALPHA =>16#190A#);FOR TEXPIXELFORMATENM'SIZE USE GL.ENUM'SIZE;TYPE TARGETTEX2DENM IS (TEXTURE_2D, PROXY_TEXTURE_2D
);FOR TARGETTEX2DENM USE (TEXTURE_2D =>16#0DE1#, PROXY_TEXTURE_2D =>16#8064#);FOR TARGETTEX2DENM'SIZE USE GL.ENUM'SIZE;TYPE TEXIMAGEFORMATENM IS
(RED, GREEN, BLUE, ALPHA, RGB, RGBA, LUMINANCE, LUMINANCE_ALPHA);FOR TEXIMAGEFORMATENM USE (RED =>16#1903#, GREEN =>16#1904#, BLUE =>16#1905#, ALPHA =>16#1906#,
RGB =>16#1907#, RGBA =>16#1908#, LUMINANCE =>16#1909#, LUMINANCE_ALPHA =>16#190A#);FOR TEXIMAGEFORMATENM'SIZE USE GL.ENUM'SIZE;TYPE TARGETTEX1DONLYENM IS
(TEXTURE_1D);FOR TARGETTEX1DONLYENM USE (TEXTURE_1D =>16#0DE0#);FOR TARGETTEX1DONLYENM'SIZE USE GL.ENUM'SIZE;TYPE TARGETTEX2DONLYENM IS
(TEXTURE_2D);FOR TARGETTEX2DONLYENM USE (TEXTURE_2D =>16#0DE1#);FOR TARGETTEX2DONLYENM'SIZE USE GL.ENUM'SIZE;TYPE TARGETTEX3DENM IS (
TEXTURE_3D_EXT, PROXY_TEXTURE_3D_EXT);FOR TARGETTEX3DENM USE (TEXTURE_3D_EXT =>16#806F#, PROXY_TEXTURE_3D_EXT =>16#8070#);FOR TARGETTEX3DENM'SIZE USE GL.ENUM'SIZE;
TYPE TARGETTEX3DONLYENM IS (TEXTURE_3D_EXT);FOR TARGETTEX3DONLYENM USE (TEXTURE_3D_EXT =>16#806F#);FOR TARGETTEX3DONLYENM'SIZE USE GL.ENUM'SIZE;
OBJECT_LINEAR:CONSTANT :=16#2401#;EYE_LINEAR:CONSTANT :=16#2400#;SPHERE_MAP:CONSTANT :=16#2402#;NEAREST_MIPMAP_NEAREST:CONSTANT :=16#2700#;
NEAREST_MIPMAP_LINEAR:CONSTANT :=16#2702#;LINEAR_MIPMAP_NEAREST:CONSTANT :=16#2701#;LINEAR_MIPMAP_LINEAR:CONSTANT :=16#2703#;DECAL:CONSTANT :=16#2101#;
MODULATE:CONSTANT :=16#2100#;NEAREST:CONSTANT :=16#2600#;REPEAT:CONSTANT :=16#2901#;CLAMP:CONSTANT :=16#2900#;CLAMP_TO_EDGE:CONSTANT :=16#812F#;
CLAMP_TO_BORDER:CONSTANT :=16#812D#;PROCEDURE TEXGEND (COORD:TEXCOORDENM;PNAME:TEXPARAMETERENM;PARAM:GL.DOUBLE);PROCEDURE TEXGENF (COORD:TEXCOORDENM;
PNAME:TEXPARAMETERENM;PARAM:GL.FLOAT);PROCEDURE TEXGENI (COORD:TEXCOORDENM;PNAME:TEXPARAMETERENM;PARAM:GL.INT);PROCEDURE TEXGENDV (COORD:TEXCOORDENM;
PNAME:TEXPARAMETERVENM;PARAMS:GL.DOUBLEPTR);PROCEDURE TEXGENFV (COORD:TEXCOORDENM;PNAME:TEXPARAMETERVENM;PARAMS:FLOATPTR);PROCEDURE TEXGENIV (COORD:TEXCOORDENM;
PNAME:TEXPARAMETERVENM;PARAMS:GL.INTPOINTER);PROCEDURE GETTEXGENDV (COORD:TEXCOORDENM;PNAME:TEXPARAMETERVENM;PARAMS:GL.DOUBLEPTR);PROCEDURE GETTEXGENFV (COORD:TEXCOORDENM;
PNAME:TEXPARAMETERVENM;PARAMS:FLOATPTR);PROCEDURE GETTEXGENIV (COORD:TEXCOORDENM;PNAME:TEXPARAMETERVENM;PARAMS:GL.INTPOINTER);PROCEDURE TEXENVF (TARGET:TEXENVENM;
PNAME:TEXENVPARAMETERENM;PARAM:GL.FLOAT);PROCEDURE TEXENV (TARGET:TEXENVENM;PNAME:TEXENVPARAMETERENM;PARAM:GL.INT);PROCEDURE TEXENVFV (TARGET:TEXENVENM;
PNAME:TEXENVPARAMETERVENM;PARAMS:FLOATPTR);PROCEDURE TEXENVIV (TARGET:TEXENVENM;PNAME:TEXENVPARAMETERVENM;PARAMS:GL.INTPOINTER);PROCEDURE GETTEXENVFV (TARGET:TEXENVENM;
PNAME:TEXENVPARAMETERVENM;PARAMS:FLOATPTR);PROCEDURE GETTEXENVIV (TARGET:TEXENVENM;PNAME:TEXENVPARAMETERVENM;PARAMS:GL.INTPOINTER);PROCEDURE TEXPARAMETERF (TARGET:TARGETTEXENM;
PNAME:TEXPARAMENM;PARAM:GL.FLOAT);PROCEDURE TEXPARAMETER (TARGET:TARGETTEXENM;PNAME:TEXPARAMENM;PARAM:GL.INT);PROCEDURE TEXPARAMETERFV (TARGET:TARGETTEXENM;
PNAME:TEXPARAMVENM;PARAMS:FLOATPTR);PROCEDURE TEXPARAMETERIV (TARGET:TARGETTEXENM;PNAME:TEXPARAMVENM;PARAMS:GL.INTPOINTER);PROCEDURE GETTEXPARAMETERFV (TARGET:TARGETTEXENM;
PNAME:GETTEXPARAMENM;PARAMS:FLOATPTR);PROCEDURE GETTEXPARAMETERIV (TARGET:TARGETTEXENM;PNAME:GETTEXPARAMENM;PARAMS:GL.INTPOINTER);PROCEDURE GETTEXLEVELPARAMETERFV (TARGET:TARGETTEXLEVELENM;
LEVEL:GL.INT;PNAME:TEXLEVELPARAMETERENM;PARAMS:FLOATPTR);PROCEDURE GETTEXLEVELPARAMETERIV (TARGET:TARGETTEXLEVELENM;LEVEL:GL.INT;PNAME:TEXLEVELPARAMETERENM;
PARAMS:GL.INTPOINTER);PROCEDURE TEXIMAGE1D (TARGET:TARGETTEX1DENM;LEVEL:GL.INT;INTERNALFORMAT:TEXFORMATENM;WIDTH:GL.SIZEI;BORDER:GL.INT;
FORMAT:TEXPIXELFORMATENM;C_TYPE:PIXELDATATYPEENM;PIXELS:GL.POINTER);PROCEDURE TEXIMAGE2D (TARGET:TARGETTEX2DENM;LEVEL:GL.INT;INTERNALFORMAT:TEXFORMATENM;
WIDTH:GL.SIZEI;HEIGHT:GL.SIZEI;BORDER:GL.INT;FORMAT:TEXPIXELFORMATENM;C_TYPE:PIXELDATATYPEENM;PIXELS:GL.POINTER);PROCEDURE GETTEXIMAGE (TARGET:TARGETTEXENM;
LEVEL:GL.INT;FORMAT:TEXIMAGEFORMATENM;C_TYPE:PIXELDATATYPEENM;PIXELS:GL.POINTER);PROCEDURE GENTEXTURES (N:GL.SIZEI;TEXTURES:GL.UINTPTR);
PROCEDURE DELETETEXTURES (N:GL.SIZEI;TEXTURES:GL.UINTPTR);PROCEDURE BINDTEXTURE (TARGET:TARGETTEXENM;TEXTURE:GL.UINT);PROCEDURE PRIORITIZETEXTURES (N:GL.SIZEI;
TEXTURES:GL.UINTPTR;PRIORITIES:GL.CLAMPFPTR);FUNCTION ARETEXTURESRESIDENT (N:GL.SIZEI;TEXTURES:GL.UINTPTR;RESIDENCES:GL_BOOLEANPTR)RETURN GL_BOOLEAN;
FUNCTION ISTEXTURE (TEXTURE:GL.UINT)RETURN GL_BOOLEAN;PROCEDURE TEXSUBIMAGE1D (TARGET:TARGETTEX1DONLYENM;LEVEL:GL.INT;XOFFSET:GL.INT;WIDTH:GL.SIZEI;
FORMAT:TEXPIXELFORMATENM;C_TYPE:PIXELDATATYPEENM;PIXELS:GL.POINTER);PROCEDURE TEXSUBIMAGE2D (TARGET:TARGETTEX2DONLYENM;LEVEL:GL.INT;XOFFSET:GL.INT;
YOFFSET:GL.INT;WIDTH:GL.SIZEI;HEIGHT:GL.SIZEI;FORMAT:TEXPIXELFORMATENM;C_TYPE:PIXELDATATYPEENM;PIXELS:GL.POINTER);PROCEDURE COPYTEXIMAGE1D (TARGET:TARGETTEX1DONLYENM;
LEVEL:GL.INT;INTERNALFORMAT:TEXFORMATENM;X:GL.INT;Y:GL.INT;WIDTH:GL.SIZEI;BORDER:GL.INT);PROCEDURE COPYTEXIMAGE2D (TARGET:TARGETTEX2DONLYENM;
LEVEL:GL.INT;INTERNALFORMAT:TEXFORMATENM;X:GL.INT;Y:GL.INT;WIDTH:GL.SIZEI;HEIGHT:GL.SIZEI;BORDER:GL.INT);PROCEDURE COPYTEXSUBIMAGE1D (TARGET:TARGETTEX1DONLYENM;
LEVEL:GL.INT;XOFFSET:GL.INT;X:GL.INT;Y:GL.INT;WIDTH:GL.SIZEI);PROCEDURE COPYTEXSUBIMAGE2D (TARGET:TARGETTEX2DONLYENM;LEVEL:GL.INT;XOFFSET:GL.INT;
YOFFSET:GL.INT;X:GL.INT;Y:GL.INT;WIDTH:GL.SIZEI;HEIGHT:GL.SIZEI);PROCEDURE TEXIMAGE3DEXT (TARGET:TARGETTEX3DENM;LEVEL:GL.INT;INTERNALFORMAT:TEXPIXELFORMATENM;
WIDTH:GL.SIZEI;HEIGHT:GL.SIZEI;DEPTH:GL.SIZEI;BORDER:GL.INT;FORMAT:TEXPIXELFORMATENM;C_TYPE:PIXELDATATYPEENM;PIXELS:GL.POINTER);PROCEDURE TEXSUBIMAGE3DEXT (TARGET:TARGETTEX3DONLYENM;
LEVEL:GL.INT;XOFFSET:GL.INT;YOFFSET:GL.INT;ZOFFSET:GL.INT;WIDTH:GL.SIZEI;HEIGHT:GL.SIZEI;DEPTH:GL.SIZEI;FORMAT:TEXPIXELFORMATENM;C_TYPE:PIXELDATATYPEENM;
PIXELS:GL.POINTER);PROCEDURE COPYTEXSUBIMAGE3DEXT (TARGET:TARGETTEX3DONLYENM;LEVEL:GL.INT;XOFFSET:GL.INT;YOFFSET:GL.INT;ZOFFSET:GL.INT;
X:GL.INT;Y:GL.INT;WIDTH:GL.SIZEI;HEIGHT:GL.SIZEI);TYPE MAP1TARGETENM IS (MAP1_COLOR_4, MAP1_INDEX, MAP1_NORMAL, MAP1_TEXTURE_COORD_1, MAP1_TEXTURE_COORD_2,
MAP1_TEXTURE_COORD_3, MAP1_TEXTURE_COORD_4, MAP1_VERTEX_3, MAP1_VERTEX_4);FOR MAP1TARGETENM USE (MAP1_COLOR_4 =>16#0D90#, MAP1_INDEX =>16#0D91#,
MAP1_NORMAL =>16#0D92#, MAP1_TEXTURE_COORD_1 =>16#0D93#, MAP1_TEXTURE_COORD_2 =>16#0D94#, MAP1_TEXTURE_COORD_3 =>16#0D95#, MAP1_TEXTURE_COORD_4 =>16#0D96#,
MAP1_VERTEX_3 =>16#0D97#, MAP1_VERTEX_4 =>16#0D98#);FOR MAP1TARGETENM'SIZE USE GL.ENUM'SIZE;TYPE MAP2TARGETENM IS (MAP2_COLOR_4, MAP2_INDEX,
MAP2_NORMAL, MAP2_TEXTURE_COORD_1, MAP2_TEXTURE_COORD_2, MAP2_TEXTURE_COORD_3, MAP2_TEXTURE_COORD_4, MAP2_VERTEX_3, MAP2_VERTEX_4);FOR MAP2TARGETENM USE
(MAP2_COLOR_4 =>16#0DB0#, MAP2_INDEX =>16#0DB1#, MAP2_NORMAL =>16#0DB2#, MAP2_TEXTURE_COORD_1 =>16#0DB3#, MAP2_TEXTURE_COORD_2 =>16#0DB4#, MAP2_TEXTURE_COORD_3 =>16#0DB5#,
MAP2_TEXTURE_COORD_4 =>16#0DB6#, MAP2_VERTEX_3 =>16#0DB7#, MAP2_VERTEX_4 =>16#0DB8#);FOR MAP2TARGETENM'SIZE USE GL.ENUM'SIZE;TYPE MAPTARGETENM IS
(MAP1_COLOR_4, MAP1_INDEX, MAP1_NORMAL, MAP1_TEXTURE_COORD_1, MAP1_TEXTURE_COORD_2, MAP1_TEXTURE_COORD_3, MAP1_TEXTURE_COORD_4, MAP1_VERTEX_3,
MAP1_VERTEX_4, MAP2_COLOR_4, MAP2_INDEX, MAP2_NORMAL, MAP2_TEXTURE_COORD_1, MAP2_TEXTURE_COORD_2, MAP2_TEXTURE_COORD_3, MAP2_TEXTURE_COORD_4,
MAP2_VERTEX_3, MAP2_VERTEX_4);FOR MAPTARGETENM USE (MAP1_COLOR_4 =>16#0D90#, MAP1_INDEX =>16#0D91#, MAP1_NORMAL =>16#0D92#, MAP1_TEXTURE_COORD_1 =>16#0D93#,
MAP1_TEXTURE_COORD_2 =>16#0D94#, MAP1_TEXTURE_COORD_3 =>16#0D95#, MAP1_TEXTURE_COORD_4 =>16#0D96#, MAP1_VERTEX_3 =>16#0D97#, MAP1_VERTEX_4 =>16#0D98#,
MAP2_COLOR_4 =>16#0DB0#, MAP2_INDEX =>16#0DB1#, MAP2_NORMAL =>16#0DB2#, MAP2_TEXTURE_COORD_1 =>16#0DB3#, MAP2_TEXTURE_COORD_2 =>16#0DB4#, MAP2_TEXTURE_COORD_3 =>16#0DB5#,
MAP2_TEXTURE_COORD_4 =>16#0DB6#, MAP2_VERTEX_3 =>16#0DB7#, MAP2_VERTEX_4 =>16#0DB8#);FOR MAPTARGETENM'SIZE USE GL.ENUM'SIZE;TYPE MAPQUERYENM IS
(COEFF, ORDER, DOMAIN);FOR MAPQUERYENM USE (COEFF =>16#0A00#, ORDER =>16#0A01#, DOMAIN =>16#0A02#);FOR MAPQUERYENM'SIZE USE GL.ENUM'SIZE;TYPE MESH1MODEENM IS
(POINT, LINE);FOR MESH1MODEENM USE (POINT =>16#1B00#, LINE =>16#1B01#);FOR MESH1MODEENM'SIZE USE GL.ENUM'SIZE;TYPE MESH2MODEENM IS (POINT,
LINE, FILL);FOR MESH2MODEENM USE (POINT =>16#1B00#, LINE =>16#1B01#, FILL =>16#1B02#);FOR MESH2MODEENM'SIZE USE GL.ENUM'SIZE;PROCEDURE MAP1D (TARGET:MAP1TARGETENM;
U1:GL.DOUBLE;U2:GL.DOUBLE;STRIDE:GL.INT;ORDER:GL.INT;POINTS:GL.DOUBLEPTR);PROCEDURE MAP1F (TARGET:MAP1TARGETENM;U1:GL.FLOAT;U2:GL.FLOAT;
STRIDE:GL.INT;ORDER:GL.INT;POINTS:FLOATPTR);PROCEDURE MAP2D (TARGET:MAP2TARGETENM;U1:GL.DOUBLE;U2:GL.DOUBLE;USTRIDE:GL.INT;UORDER:GL.INT;
V1:GL.DOUBLE;V2:GL.DOUBLE;VSTRIDE:GL.INT;VORDER:GL.INT;POINTS:GL.DOUBLEPTR);PROCEDURE MAP2F (TARGET:MAP2TARGETENM;U1:GL.FLOAT;U2:GL.FLOAT;
USTRIDE:GL.INT;UORDER:GL.INT;V1:GL.FLOAT;V2:GL.FLOAT;VSTRIDE:GL.INT;VORDER:GL.INT;POINTS:FLOATPTR);PROCEDURE GETMAPDV (TARGET:MAPTARGETENM;
QUERY:MAPQUERYENM;V:GL.DOUBLEPTR);PROCEDURE GETMAPFV (TARGET:MAPTARGETENM;QUERY:MAPQUERYENM;V:FLOATPTR);PROCEDURE GETMAPIV (TARGET:MAPTARGETENM;
QUERY:MAPQUERYENM;V:GL.INTPOINTER);PROCEDURE EVALPOINT1 (I:GL.INT);PROCEDURE EVALPOINT2 (I:GL.INT;J:GL.INT);PROCEDURE EVALMESH1 (MODE:MESH1MODEENM;
I1:GL.INT;I2:GL.INT);PROCEDURE EVALMESH2 (MODE:MESH2MODEENM;I1:GL.INT;I2:GL.INT;J1:GL.INT;J2:GL.INT);PROCEDURE EVALCOORD1D (U:GL.DOUBLE);
PROCEDURE EVALCOORD1F (U:GL.FLOAT);PROCEDURE EVALCOORD1DV (U:GL.DOUBLEPTR);PROCEDURE EVALCOORD1FV (U:FLOATPTR);PROCEDURE EVALCOORD2D (U:GL.DOUBLE;
V:GL.DOUBLE);PROCEDURE EVALCOORD2F (U:GL.FLOAT;V:GL.FLOAT);PROCEDURE EVALCOORD2DV (U:GL.DOUBLEPTR);PROCEDURE EVALCOORD2FV (U:FLOATPTR);PROCEDURE MAPGRID1D (UN:GL.INT;
U1:GL.DOUBLE;U2:GL.DOUBLE);PROCEDURE MAPGRID1F (UN:GL.INT;U1:GL.FLOAT;U2:GL.FLOAT);PROCEDURE MAPGRID2D (UN:GL.INT;U1:GL.DOUBLE;U2:GL.DOUBLE;
VN:GL.INT;V1:GL.DOUBLE;V2:GL.DOUBLE);PROCEDURE MAPGRID2F (UN:GL.INT;U1:GL.FLOAT;U2:GL.FLOAT;VN:GL.INT;V1:GL.FLOAT;V2:GL.FLOAT);TYPE FOGPARAMETERENM IS
(FOG_INDEX, FOG_DENSITY, FOG_START, FOG_END, FOG_MODE);FOR FOGPARAMETERENM USE (FOG_INDEX =>16#0B61#, FOG_DENSITY =>16#0B62#, FOG_START =>16#0B63#,
FOG_END =>16#0B64#, FOG_MODE =>16#0B65#);FOR FOGPARAMETERENM'SIZE USE GL.ENUM'SIZE;TYPE FOGPARAMETERVENM IS (FOG_INDEX, FOG_DENSITY, FOG_START,
FOG_END, FOG_MODE, FOG_COLOR);FOR FOGPARAMETERVENM USE (FOG_INDEX =>16#0B61#, FOG_DENSITY =>16#0B62#, FOG_START =>16#0B63#, FOG_END =>16#0B64#,
FOG_MODE =>16#0B65#, FOG_COLOR =>16#0B66#);FOR FOGPARAMETERVENM'SIZE USE GL.ENUM'SIZE;LINEAR:CONSTANT :=16#2601#;EXP1:CONSTANT :=16#0800#;
EXP2:CONSTANT :=16#0801#;PROCEDURE FOGF (PNAME:FOGPARAMETERENM;PARAM:GL.FLOAT);PROCEDURE FOGI (PNAME:FOGPARAMETERENM;PARAM:GL.INT);PROCEDURE FOGFV (PNAME:FOGPARAMETERVENM;
PARAMS:FLOATPTR);PROCEDURE FOGIV (PNAME:FOGPARAMETERVENM;PARAMS:GL.INTPOINTER);TYPE FEEDBACKMODEENM IS (GL_2D, GL_3D, GL_3D_COLOR, GL_3D_COLOR_TEXTURE,
GL_4D_COLOR_TEXTURE);FOR FEEDBACKMODEENM USE (GL_2D =>16#0600#, GL_3D =>16#0601#, GL_3D_COLOR =>16#0602#, GL_3D_COLOR_TEXTURE =>16#0603#, GL_4D_COLOR_TEXTURE =>16#0604#
);FOR FEEDBACKMODEENM'SIZE USE GL.ENUM'SIZE;POINT_TOKEN:CONSTANT :=16#0701#;LINE_TOKEN:CONSTANT :=16#0702#;LINE_RESET_TOKEN:CONSTANT :=16#0707#;
POLYGON_TOKEN:CONSTANT :=16#0703#;BITMAP_TOKEN:CONSTANT :=16#0704#;DRAW_PIXEL_TOKEN:CONSTANT :=16#0705#;COPY_PIXEL_TOKEN:CONSTANT :=16#0706#;
PASS_THROUGH_TOKEN:CONSTANT :=16#0700#;FEEDBACK_BUFFER_SIZE:CONSTANT :=16#0DF1#;FEEDBACK_BUFFER_TYPE:CONSTANT :=16#0DF2#;PROCEDURE FEEDBACKBUFFER (SIZE:GL.SIZEI;
C_TYPE:FEEDBACKMODEENM;BUFFER:FLOATPTR);PROCEDURE PASSTHROUGH (TOKEN:GL.FLOAT);TYPE COLORTABLETARGETENM IS (TEXTURE_1D, TEXTURE_2D, PROXY_TEXTURE_1D,
PROXY_TEXTURE_2D, TEXTURE_3D_EXT, PROXY_TEXTURE_3D_EXT, SHARED_TEXTURE_PALETTE_EXT);FOR COLORTABLETARGETENM USE (TEXTURE_1D =>16#0DE0#, TEXTURE_2D =>16#0DE1#,
PROXY_TEXTURE_1D =>16#8063#, PROXY_TEXTURE_2D =>16#8064#, TEXTURE_3D_EXT =>16#806F#, PROXY_TEXTURE_3D_EXT =>16#8070#, SHARED_TEXTURE_PALETTE_EXT =>16#81FB#
);FOR COLORTABLETARGETENM'SIZE USE GL.ENUM'SIZE;TYPE GETCOLORTABLETARGETENM IS (TEXTURE_1D, TEXTURE_2D, TEXTURE_3D_EXT, SHARED_TEXTURE_PALETTE_EXT
);FOR GETCOLORTABLETARGETENM USE (TEXTURE_1D =>16#0DE0#, TEXTURE_2D =>16#0DE1#, TEXTURE_3D_EXT =>16#806F#, SHARED_TEXTURE_PALETTE_EXT =>16#81FB#
);FOR GETCOLORTABLETARGETENM'SIZE USE GL.ENUM'SIZE;TYPE COLORTABLEPARAMETERENM IS (COLOR_TABLE_FORMAT_EXT, COLOR_TABLE_WIDTH_EXT, COLOR_TABLE_RED_SIZE_EXT,
COLOR_TABLE_GREEN_SIZE_EXT, COLOR_TABLE_BLUE_SIZE_EXT, COLOR_TABLE_ALPHA_SIZE_EXT, COLOR_TABLE_LUMINANCE_SIZE_EXT, COLOR_TABLE_INTENSITY_SIZE_EXT
);FOR COLORTABLEPARAMETERENM USE (COLOR_TABLE_FORMAT_EXT =>16#80D8#, COLOR_TABLE_WIDTH_EXT =>16#80D9#, COLOR_TABLE_RED_SIZE_EXT =>16#80DA#,
COLOR_TABLE_GREEN_SIZE_EXT =>16#80DB#, COLOR_TABLE_BLUE_SIZE_EXT =>16#80DC#, COLOR_TABLE_ALPHA_SIZE_EXT =>16#80DD#, COLOR_TABLE_LUMINANCE_SIZE_EXT =>16#80DE#,
COLOR_TABLE_INTENSITY_SIZE_EXT =>16#80DF#);FOR COLORTABLEPARAMETERENM'SIZE USE GL.ENUM'SIZE;PROCEDURE COLORTABLEEXT (TARGET:COLORTABLETARGETENM;
INTERNALFORMAT:TEXFORMATENM;WIDTH:GL.SIZEI;FORMAT:TEXPIXELFORMATENM;C_TYPE:PIXELDATATYPEENM;TABLE:GL.POINTER);PROCEDURE COLORSUBTABLEEXT (TARGET:COLORTABLETARGETENM;
START:GL.SIZEI;COUNT:GL.SIZEI;FORMAT:TEXPIXELFORMATENM;C_TYPE:PIXELDATATYPEENM;DATA:GL.POINTER);PROCEDURE GETCOLORTABLEEXT (TARGET:GETCOLORTABLETARGETENM;
FORMAT:TEXPIXELFORMATENM;C_TYPE:PIXELDATATYPEENM;TABLE:GL.POINTER);PROCEDURE GETCOLORTABLEPARAMETERFVEXT (TARGET:GETCOLORTABLETARGETENM;
PNAME:COLORTABLEPARAMETERENM;PARAMS:FLOATPTR);PROCEDURE GETCOLORTABLEPARAMETERIVEXT (TARGET:GETCOLORTABLETARGETENM;PNAME:COLORTABLEPARAMETERENM;
PARAMS:GL.INTPOINTER);TYPE POINTPARAMETERENM IS (POINT_SIZE_MIN_EXT, POINT_SIZE_MAX_EXT, POINT_FADE_THRESHOLD_SIZE_EXT);FOR POINTPARAMETERENM USE
(POINT_SIZE_MIN_EXT =>16#8126#, POINT_SIZE_MAX_EXT =>16#8127#, POINT_FADE_THRESHOLD_SIZE_EXT =>16#8128#);FOR POINTPARAMETERENM'SIZE USE GL.ENUM'SIZE;
TYPE POINTPARAMETERVENM IS (POINT_SIZE_MIN_EXT, POINT_SIZE_MAX_EXT, POINT_FADE_THRESHOLD_SIZE_EXT, DISTANCE_ATTENUATION_EXT);FOR POINTPARAMETERVENM USE
(POINT_SIZE_MIN_EXT =>16#8126#, POINT_SIZE_MAX_EXT =>16#8127#, POINT_FADE_THRESHOLD_SIZE_EXT =>16#8128#, DISTANCE_ATTENUATION_EXT =>16#8129#);
FOR POINTPARAMETERVENM'SIZE USE GL.ENUM'SIZE;PROCEDURE POINTPARAMETERFEXT (PNAME:POINTPARAMETERENM;PARAM:GL.FLOAT);PROCEDURE POINTPARAMETERFVEXT (PNAME:POINTPARAMETERVENM;
PARAMS:FLOATPTR);PROCEDURE CLEARINDEX (C:GL.FLOAT);PROCEDURE CLEARCOLOR (RED:GL.CLAMPF;GREEN:GL.CLAMPF;BLUE:GL.CLAMPF;ALPHA:GL.CLAMPF);PROCEDURE CLEAR (MASK:BITFIELD);
PROCEDURE CLEARDEPTH (DEPTH:GL.CLAMPD);PROCEDURE CLEARACCUM (RED:GL.FLOAT;GREEN:GL.FLOAT;BLUE:GL.FLOAT;ALPHA:GL.FLOAT);PROCEDURE INDEXMASK (MASK:GL.UINT);
PROCEDURE COLORMASK (RED:GL_BOOLEAN;GREEN:GL_BOOLEAN;BLUE:GL_BOOLEAN;ALPHA:GL_BOOLEAN);PROCEDURE POINTSIZE (SIZE:GL.FLOAT);PROCEDURE LINEWIDTH (WIDTH:GL.FLOAT);
PROCEDURE LINESTIPPLE (FACTOR:GL.INT;PATTERN:GL.USHORT);PROCEDURE POLYGONOFFSET (FACTOR:GL.FLOAT;UNITS:GL.FLOAT);PROCEDURE POLYGONSTIPPLE (MASK:UBYTEPTR);
PROCEDURE GETPOLYGONSTIPPLE (MASK:UBYTEPTR);PROCEDURE EDGEFLAG (FLAG:GL_BOOLEAN);PROCEDURE EDGEFLAGV (FLAG:GL_BOOLEANPTR);PROCEDURE SCISSOR (X:GL.INT;
Y:GL.INT;WIDTH:GL.SIZEI;HEIGHT:GL.SIZEI);PROCEDURE PUSHATTRIB (MASK:BITFIELD);PROCEDURE POPATTRIB;PROCEDURE PUSHCLIENTATTRIB (MASK:BITFIELD);
PROCEDURE POPCLIENTATTRIB;PROCEDURE FINISH;PROCEDURE FLUSH;PROCEDURE DEPTHMASK (FLAG:GL_BOOLEAN);PROCEDURE DEPTHRANGE (NEAR_VAL:GL.CLAMPD;
FAR_VAL:GL.CLAMPD);PROCEDURE ORTHO (LEFT:GL.DOUBLE;RIGHT:GL.DOUBLE;BOTTOM:GL.DOUBLE;TOP:GL.DOUBLE;NEAR_VAL:GL.DOUBLE;FAR_VAL:GL.DOUBLE);
PROCEDURE FRUSTUM (LEFT:GL.DOUBLE;RIGHT:GL.DOUBLE;BOTTOM:GL.DOUBLE;TOP:GL.DOUBLE;NEAR_VAL:GL.DOUBLE;FAR_VAL:GL.DOUBLE);PROCEDURE VIEWPORT (X:GL.INT;
Y:GL.INT;WIDTH:GL.SIZEI;HEIGHT:GL.SIZEI);PROCEDURE PUSHMATRIX;PROCEDURE POPMATRIX;PROCEDURE LOADIDENTITY;PROCEDURE LOADMATRIXD (M:GL.DOUBLEPTR);
PROCEDURE LOADMATRIXF (M:FLOATPTR);PROCEDURE MULTMATRIXD (M:GL.DOUBLEPTR);PROCEDURE MULTMATRIXF (M:FLOATPTR);PROCEDURE ROTATE (ANGLE:GL.DOUBLE;
X:GL.DOUBLE;Y:GL.DOUBLE;Z:GL.DOUBLE);PROCEDURE ROTATE_F (ANGLE:GL.FLOAT;X:GL.FLOAT;Y:GL.FLOAT;Z:GL.FLOAT);PROCEDURE SCALE (X, Y, Z:GL.DOUBLE);
PROCEDURE SCALE_F (X, Y, Z:GL.FLOAT);PROCEDURE TRANSLATE (X, Y, Z:GL.DOUBLE);PROCEDURE TRANSLATE_F (X, Y, Z:GL.FLOAT);PROCEDURE TRANSLATE (V:DOUBLE_VECTOR_3D);
PRAGMA INLINE (TRANSLATE);PROCEDURE VERTEX (X, Y:GL.DOUBLE);PROCEDURE VERTEX_F (X, Y:GL.FLOAT);PROCEDURE VERTEX (X, Y:GL.INT);PROCEDURE VERTEX_S (X, Y:GL.SHORT);
PROCEDURE VERTEX (X, Y, Z:GL.DOUBLE);PROCEDURE VERTEX_F (X, Y, Z:GL.FLOAT);PROCEDURE VERTEX (X, Y, Z:GL.INT);PROCEDURE VERTEX_S (X, Y, Z:GL.SHORT);
PROCEDURE VERTEX (X, Y, Z, W:GL.DOUBLE);PROCEDURE VERTEX_F (X, Y, Z, W:GL.FLOAT);PROCEDURE VERTEX (X, Y, Z, W:GL.INT);PROCEDURE VERTEX_S (X, Y, Z, W:GL.SHORT);
PROCEDURE VERTEX (V:DOUBLE_VECTOR_3D);PRAGMA INLINE (VERTEX);PROCEDURE VERTEX2DV (V:GL.DOUBLEPTR);PROCEDURE VERTEX2FV (V:FLOATPTR);PROCEDURE VERTEX2IV (V:GL.INTPOINTER);
PROCEDURE VERTEX2SV (V:GL.SHORTPTR);PROCEDURE VERTEX3DV (V:GL.DOUBLEPTR);PROCEDURE VERTEX3FV (V:FLOATPTR);PROCEDURE VERTEX3IV (V:GL.INTPOINTER);
PROCEDURE VERTEX3SV (V:GL.SHORTPTR);PROCEDURE VERTEX4DV (V:GL.DOUBLEPTR);PROCEDURE VERTEX4FV (V:FLOATPTR);PROCEDURE VERTEX4IV (V:GL.INTPOINTER);
PROCEDURE VERTEX4SV (V:GL.SHORTPTR);PROCEDURE NORMAL (X, Y, Z:GL.DOUBLE);PROCEDURE NORMAL_F (X, Y, Z:GL.FLOAT);PROCEDURE NORMAL (X, Y, Z:GL.INT);
PROCEDURE NORMAL_B (X, Y, Z:GL.BYTE);PROCEDURE NORMAL_S (X, Y, Z:GL.SHORT);PROCEDURE NORMAL (V:DOUBLE_VECTOR_3D);PRAGMA INLINE (NORMAL);PROCEDURE NORMAL3BV (V:GL.BYTEPTR);
PROCEDURE NORMAL3DV (V:GL.DOUBLEPTR);PROCEDURE NORMAL3FV (V:FLOATPTR);PROCEDURE NORMAL3IV (V:GL.INTPOINTER);PROCEDURE NORMAL3SV (V:GL.SHORTPTR);
PROCEDURE INDEXD (C:GL.DOUBLE);PROCEDURE INDEXF (C:GL.FLOAT);PROCEDURE INDEXI (C:GL.INT);PROCEDURE INDEXS (C:GL.SHORT);PROCEDURE INDEXUB (C:GL.UBYTE);
PROCEDURE INDEXDV (C:GL.DOUBLEPTR);PROCEDURE INDEXFV (C:FLOATPTR);PROCEDURE INDEXIV (C:GL.INTPOINTER);PROCEDURE INDEXSV (C:GL.SHORTPTR);PROCEDURE INDEXUBV (C:UBYTEPTR);
PROCEDURE COLOR3B (RED:GL.BYTE;GREEN:GL.BYTE;BLUE:GL.BYTE);PROCEDURE COLOR (RED, GREEN, BLUE:GL.DOUBLE);PROCEDURE COLOR_F (RED, GREEN, BLUE:GL.FLOAT);
PROCEDURE COLOR (RED, GREEN, BLUE:GL.INT);PROCEDURE COLOR_S (RED, GREEN, BLUE:GL.SHORT);PROCEDURE COLOR3UB (RED:GL.UBYTE;GREEN:GL.UBYTE;BLUE:GL.UBYTE);
PROCEDURE COLOR3UI (RED:GL.UINT;GREEN:GL.UINT;BLUE:GL.UINT);PROCEDURE COLOR3US (RED:GL.USHORT;GREEN:GL.USHORT;BLUE:GL.USHORT);PROCEDURE COLOR4B (RED:GL.BYTE;
GREEN:GL.BYTE;BLUE:GL.BYTE;ALPHA:GL.BYTE);PROCEDURE COLOR (RED, GREEN, BLUE, ALPHA:GL.DOUBLE);PROCEDURE COLOR_F (RED, GREEN, BLUE, ALPHA:GL.FLOAT);
PROCEDURE COLOR (RED, GREEN, BLUE, ALPHA:GL.INT);PROCEDURE COLOR_S (RED, GREEN, BLUE, ALPHA:GL.SHORT);PROCEDURE COLOR4UB (RED:GL.UBYTE;GREEN:GL.UBYTE;
BLUE:GL.UBYTE;ALPHA:GL.UBYTE);PROCEDURE COLOR4UI (RED:GL.UINT;GREEN:GL.UINT;BLUE:GL.UINT;ALPHA:GL.UINT);PROCEDURE COLOR4US (RED:GL.USHORT;
GREEN:GL.USHORT;BLUE:GL.USHORT;ALPHA:GL.USHORT);PROCEDURE COLOR3BV (V:GL.BYTEPTR);PROCEDURE COLOR3DV (V:GL.DOUBLEPTR);PROCEDURE COLOR (V:RGB_COLOR);
PROCEDURE COLOR3FV (V:GL.FLOATPTR);PROCEDURE COLOR3IV (V:GL.INTPOINTER);PROCEDURE COLOR3SV (V:GL.SHORTPTR);PROCEDURE COLOR3UBV (V:GL.UBYTEPTR);
PROCEDURE COLOR3UIV (V:GL.UINTPTR);PROCEDURE COLOR3USV (V:GL.USHORTPTR);PROCEDURE COLOR4BV (V:GL.BYTEPTR);PROCEDURE COLOR4DV (V:GL.DOUBLEPTR);
PROCEDURE COLOR (V:RGBA_COLOR);PROCEDURE COLOR4FV (V:GL.FLOATPTR);PROCEDURE COLOR4IV (V:GL.INTPOINTER);PROCEDURE COLOR4SV (V:GL.SHORTPTR);
PROCEDURE COLOR4UBV (V:GL.UBYTEPTR);PROCEDURE COLOR4UIV (V:GL.UINTPTR);PROCEDURE COLOR4USV (V:GL.USHORTPTR);PROCEDURE TEXCOORD1D (S:GL.DOUBLE);
PROCEDURE TEXCOORD1F (S:GL.FLOAT);PROCEDURE TEXCOORD1I (S:GL.INT);PROCEDURE TEXCOORD1S (S:GL.SHORT);PROCEDURE TEXCOORD (S:GL.DOUBLE;T:GL.DOUBLE);
PROCEDURE TEXCOORDF (S:GL.FLOAT;T:GL.FLOAT);PROCEDURE TEXCOORD2I (S:GL.INT;T:GL.INT);PROCEDURE TEXCOORD2S (S:GL.SHORT;T:GL.SHORT);PROCEDURE TEXCOORD3D (S:GL.DOUBLE;
T:GL.DOUBLE;R:GL.DOUBLE);PROCEDURE TEXCOORD3F (S:GL.FLOAT;T:GL.FLOAT;R:GL.FLOAT);PROCEDURE TEXCOORD3I (S:GL.INT;T:GL.INT;R:GL.INT);PROCEDURE TEXCOORD3S (S:GL.SHORT;
T:GL.SHORT;R:GL.SHORT);PROCEDURE TEXCOORD4D (S:GL.DOUBLE;T:GL.DOUBLE;R:GL.DOUBLE;Q:GL.DOUBLE);PROCEDURE TEXCOORD4F (S:GL.FLOAT;T:GL.FLOAT;
R:GL.FLOAT;Q:GL.FLOAT);PROCEDURE TEXCOORD4I (S:GL.INT;T:GL.INT;R:GL.INT;Q:GL.INT);PROCEDURE TEXCOORD4S (S:GL.SHORT;T:GL.SHORT;R:GL.SHORT;
Q:GL.SHORT);PROCEDURE TEXCOORD1DV (V:GL.DOUBLEPTR);PROCEDURE TEXCOORD1FV (V:FLOATPTR);PROCEDURE TEXCOORD1IV (V:GL.INTPOINTER);PROCEDURE TEXCOORD1SV (V:GL.SHORTPTR);
PROCEDURE TEXCOORD2DV (V:GL.DOUBLEPTR);PROCEDURE TEXCOORD2FV (V:FLOATPTR);PROCEDURE TEXCOORD2IV (V:GL.INTPOINTER);PROCEDURE TEXCOORD2SV (V:GL.SHORTPTR);
PROCEDURE TEXCOORD3DV (V:GL.DOUBLEPTR);PROCEDURE TEXCOORD3FV (V:FLOATPTR);PROCEDURE TEXCOORD3IV (V:GL.INTPOINTER);PROCEDURE TEXCOORD3SV (V:GL.SHORTPTR);
PROCEDURE TEXCOORD4DV (V:GL.DOUBLEPTR);PROCEDURE TEXCOORD4FV (V:FLOATPTR);PROCEDURE TEXCOORD4IV (V:GL.INTPOINTER);PROCEDURE TEXCOORD4SV (V:GL.SHORTPTR);
PROCEDURE RASTERPOS2D (X:GL.DOUBLE;Y:GL.DOUBLE);PROCEDURE RASTERPOS2F (X:GL.FLOAT;Y:GL.FLOAT);PROCEDURE RASTERPOS (X, Y:GL.INT);PROCEDURE RASTERPOS2S (X:GL.SHORT;
Y:GL.SHORT);PROCEDURE RASTERPOS3D (X:GL.DOUBLE;Y:GL.DOUBLE;Z:GL.DOUBLE);PROCEDURE RASTERPOS3F (X:GL.FLOAT;Y:GL.FLOAT;Z:GL.FLOAT);PROCEDURE RASTERPOS3I (X:GL.INT;
Y:GL.INT;Z:GL.INT);PROCEDURE RASTERPOS3S (X:GL.SHORT;Y:GL.SHORT;Z:GL.SHORT);PROCEDURE RASTERPOS4D (X:GL.DOUBLE;Y:GL.DOUBLE;Z:GL.DOUBLE;W:GL.DOUBLE);
PROCEDURE RASTERPOS4F (X:GL.FLOAT;Y:GL.FLOAT;Z:GL.FLOAT;W:GL.FLOAT);PROCEDURE RASTERPOS4I (X:GL.INT;Y:GL.INT;Z:GL.INT;W:GL.INT);PROCEDURE RASTERPOS4S (X:GL.SHORT;
Y:GL.SHORT;Z:GL.SHORT;W:GL.SHORT);PROCEDURE RASTERPOS2DV (V:GL.DOUBLEPTR);PROCEDURE RASTERPOS2FV (V:FLOATPTR);PROCEDURE RASTERPOS2IV (V:GL.INTPOINTER);
PROCEDURE RASTERPOS2SV (V:GL.SHORTPTR);PROCEDURE RASTERPOS3DV (V:GL.DOUBLEPTR);PROCEDURE RASTERPOS3FV (V:FLOATPTR);PROCEDURE RASTERPOS3IV (V:GL.INTPOINTER);
PROCEDURE RASTERPOS3SV (V:GL.SHORTPTR);PROCEDURE RASTERPOS4DV (V:GL.DOUBLEPTR);PROCEDURE RASTERPOS4FV (V:FLOATPTR);PROCEDURE RASTERPOS4IV (V:GL.INTPOINTER);
PROCEDURE RASTERPOS4SV (V:GL.SHORTPTR);PROCEDURE RECTD (X1:GL.DOUBLE;Y1:GL.DOUBLE;X2:GL.DOUBLE;Y2:GL.DOUBLE);PROCEDURE RECTF (X1:GL.FLOAT;
Y1:GL.FLOAT;X2:GL.FLOAT;Y2:GL.FLOAT);PROCEDURE RECTI (X1:GL.INT;Y1:GL.INT;X2:GL.INT;Y2:GL.INT);PROCEDURE RECTS (X1:GL.SHORT;Y1:GL.SHORT;
X2:GL.SHORT;Y2:GL.SHORT);PROCEDURE RECTDV (V1:GL.DOUBLEPTR;V2:GL.DOUBLEPTR);PROCEDURE RECTFV (V1:FLOATPTR;V2:FLOATPTR);PROCEDURE RECTIV (V1:GL.INTPOINTER;
V2:GL.INTPOINTER);PROCEDURE RECTSV (V1:GL.SHORTPTR;V2:GL.SHORTPTR);PROCEDURE BITMAP (WIDTH:GL.SIZEI;HEIGHT:GL.SIZEI;XORIG:GL.FLOAT;YORIG:GL.FLOAT;
XMOVE:GL.FLOAT;YMOVE:GL.FLOAT;BITMAP:UBYTEPTR);PROCEDURE STENCILMASK (MASK:GL.UINT);PROCEDURE CLEARSTENCIL (S:GL.INT);PROCEDURE SELECTBUFFER (SIZE:GL.SIZEI;
BUFFER:GL.UINTPTR);PROCEDURE INITNAMES;PROCEDURE LOADNAME (NAME:GL.UINT);PROCEDURE PUSHNAME (NAME:GL.UINT);PROCEDURE POPNAME;PROCEDURE WINDOWPOS2IMESA (X:GL.INT;
Y:GL.INT);PROCEDURE WINDOWPOS2SMESA (X:GL.SHORT;Y:GL.SHORT);PROCEDURE WINDOWPOS2FMESA (X:GL.FLOAT;Y:GL.FLOAT);PROCEDURE WINDOWPOS2DMESA (X:GL.DOUBLE;
Y:GL.DOUBLE);PROCEDURE WINDOWPOS2IVMESA (P:GL.INTPOINTER);PROCEDURE WINDOWPOS2SVMESA (P:GL.SHORTPTR);PROCEDURE WINDOWPOS2FVMESA (P:FLOATPTR);
PROCEDURE WINDOWPOS2DVMESA (P:GL.DOUBLEPTR);PROCEDURE WINDOWPOS3IMESA (X:GL.INT;Y:GL.INT;Z:GL.INT);PROCEDURE WINDOWPOS3SMESA (X:GL.SHORT;
Y:GL.SHORT;Z:GL.SHORT);PROCEDURE WINDOWPOS3FMESA (X:GL.FLOAT;Y:GL.FLOAT;Z:GL.FLOAT);PROCEDURE WINDOWPOS3DMESA (X:GL.DOUBLE;Y:GL.DOUBLE;Z:GL.DOUBLE);
PROCEDURE WINDOWPOS3IVMESA (P:GL.INTPOINTER);PROCEDURE WINDOWPOS3SVMESA (P:GL.SHORTPTR);PROCEDURE WINDOWPOS3FVMESA (P:FLOATPTR);PROCEDURE WINDOWPOS3DVMESA (P:GL.DOUBLEPTR);
PROCEDURE WINDOWPOS4IMESA (X:GL.INT;Y:GL.INT;Z:GL.INT;W:GL.INT);PROCEDURE WINDOWPOS4SMESA (X:GL.SHORT;Y:GL.SHORT;Z:GL.SHORT;W:GL.SHORT);
PROCEDURE WINDOWPOS4FMESA (X:GL.FLOAT;Y:GL.FLOAT;Z:GL.FLOAT;W:GL.FLOAT);PROCEDURE WINDOWPOS4DMESA (X:GL.DOUBLE;Y:GL.DOUBLE;Z:GL.DOUBLE;W:GL.DOUBLE);
PROCEDURE WINDOWPOS4IVMESA (P:GL.INTPOINTER);PROCEDURE WINDOWPOS4SVMESA (P:GL.SHORTPTR);PROCEDURE WINDOWPOS4FVMESA (P:FLOATPTR);PROCEDURE WINDOWPOS4DVMESA (P:GL.DOUBLEPTR);
PROCEDURE RESIZEBUFFERSMESA;PROCEDURE GENBUFFERS (N:IN GL.SIZEI;BUFFERS:IN GL.UINTPTR);PROCEDURE DELETEBUFFERS (N:IN GL.SIZEI;BUFFERS:IN GL.UINTPTR);
TYPE VBO_TARGET IS (ARRAY_BUFFER, ELEMENT_ARRAY_BUFFER, PIXEL_PACK_BUFFER, PIXEL_UNPACK_BUFFER);FOR VBO_TARGET USE (ARRAY_BUFFER =>16#8892#,
ELEMENT_ARRAY_BUFFER =>16#8893#, PIXEL_PACK_BUFFER =>16#88EB#, PIXEL_UNPACK_BUFFER =>16#88EC#);PROCEDURE BINDBUFFER (TARGET:IN VBO_TARGET;BUFFER:IN GL.UINT);
TYPE VBO_USAGE IS (STREAM_DRAW, STREAM_READ, STREAM_COPY, STATIC_DRAW, STATIC_READ, STATIC_COPY, DYNAMIC_DRAW, DYNAMIC_READ, DYNAMIC_COPY);FOR VBO_USAGE USE
(STREAM_DRAW =>16#88E0#, STREAM_READ =>16#88E1#, STREAM_COPY =>16#88E2#, STATIC_DRAW =>16#88E4#, STATIC_READ =>16#88E5#, STATIC_COPY =>16#88E6#, DYNAMIC_DRAW =>16#88E8#,
DYNAMIC_READ =>16#88E9#, DYNAMIC_COPY =>16#88EA#);PROCEDURE BUFFERDATA (TARGET:IN GL.VBO_TARGET;SIZE:IN GL.SIZEIPTR;DATA:IN GL.POINTER;USAGE:IN GL.VBO_USAGE);
PROCEDURE BUFFERSUBDATA (TARGET:IN GL.VBO_TARGET;OFFSET:IN GL.INTPTR;SIZE:IN GL.SIZEIPTR;DATA:IN GL.POINTER);TYPE ACCESS_POLICY IS (READ_ONLY,
WRITE_ONLY, READ_WRITE);FOR ACCESS_POLICY USE (READ_ONLY =>16#88B8#, WRITE_ONLY =>16#88B9#, READ_WRITE =>16#88BA#);FUNCTION MAPBUFFER (TARGET:IN GL.VBO_TARGET;
POLICY:IN GL.ACCESS_POLICY)RETURN GL.POINTER;FUNCTION UNMAPBUFFER (TARGET:IN GL.VBO_TARGET)RETURN GL_BOOLEAN;TYPE BUFFER_PARAMETER IS (
BUFFER_SIZE, BUFFER_USAGE, BUFFER_ACCESS, BUFFER_MAPPED);FOR BUFFER_PARAMETER USE (BUFFER_SIZE =>16#8764#, BUFFER_USAGE =>16#8765#, BUFFER_ACCESS =>16#88BB#,
BUFFER_MAPPED =>16#88BC#);PROCEDURE GETBUFFERPARAMETER (TARGET:IN GL.VBO_TARGET;VALUE:IN BUFFER_PARAMETER;DATA:IN INTPOINTER);PRIVATE FUNCTION GLGETSTRING (NAME:STRINGENM)RETURN UBYTEPTR;
FUNCTION GETSTRING (NAME:STRINGENM)RETURN UBYTEPTR RENAMES GLGETSTRING;PROCEDURE COLOR3D (RED, GREEN, BLUE:GL.DOUBLE);PROCEDURE COLOR (RED, GREEN, BLUE:GL.DOUBLE)RENAMES COLOR3D;
PROCEDURE COLOR3F (RED, GREEN, BLUE:GL.FLOAT);PROCEDURE COLOR_F (RED, GREEN, BLUE:GL.FLOAT)RENAMES COLOR3F;PROCEDURE COLOR3I (RED, GREEN, BLUE:GL.INT);
PROCEDURE COLOR (RED, GREEN, BLUE:GL.INT)RENAMES COLOR3I;PROCEDURE COLOR3S (RED, GREEN, BLUE:GL.SHORT);PROCEDURE COLOR_S (RED, GREEN, BLUE:GL.SHORT)RENAMES COLOR3S;
PROCEDURE COLOR4D (RED, GREEN, BLUE, ALPHA:GL.DOUBLE);PROCEDURE COLOR (RED, GREEN, BLUE, ALPHA:GL.DOUBLE)RENAMES COLOR4D;PROCEDURE COLOR4F (RED, GREEN, BLUE, ALPHA:GL.FLOAT);
PROCEDURE COLOR_F (RED, GREEN, BLUE, ALPHA:GL.FLOAT)RENAMES COLOR4F;PROCEDURE COLOR4I (RED, GREEN, BLUE, ALPHA:GL.INT);PROCEDURE COLOR (RED, GREEN, BLUE, ALPHA:GL.INT)RENAMES COLOR4I;
PROCEDURE COLOR4S (RED, GREEN, BLUE, ALPHA:GL.SHORT);PROCEDURE COLOR_S (RED, GREEN, BLUE, ALPHA:GL.SHORT)RENAMES COLOR4S;PROCEDURE GETDOUBLEV (PNAME:PARAMETERNAMEENM;
PARAMS:GL.DOUBLEPTR);PROCEDURE GET (PNAME:PARAMETERNAMEENM;PARAMS:GL.DOUBLEPTR)RENAMES GETDOUBLEV;PROCEDURE LIGHTF (LIGHT:LIGHTIDENM;PNAME:LIGHTPARAMETERENM;
PARAM:GL.FLOAT);PROCEDURE LIGHT (LIGHT:LIGHTIDENM;PNAME:LIGHTPARAMETERENM;PARAM:GL.FLOAT)RENAMES LIGHTF;PROCEDURE LIGHTFV (LIGHT:LIGHTIDENM;
PNAME:LIGHTPARAMETERVENM;PARAMS:FLOATPTR);PROCEDURE MATERIALF (FACE:FACEENM;PNAME:MATERIALPARAMETERENM;PARAM:GL.FLOAT);PROCEDURE MATERIAL (FACE:FACEENM;
PNAME:MATERIALPARAMETERENM;PARAM:GL.FLOAT)RENAMES MATERIALF;PROCEDURE MATERIALFV (FACE:FACEENM;PNAME:MATERIALPARAMETERVENM;PARAMS:FLOATPTR);
PROCEDURE NORMAL3D (X, Y, Z:GL.DOUBLE);PROCEDURE NORMAL (X, Y, Z:GL.DOUBLE)RENAMES NORMAL3D;PROCEDURE NORMAL3F (X, Y, Z:GL.FLOAT);PROCEDURE NORMAL_F (X, Y, Z:GL.FLOAT)RENAMES NORMAL3F;
PROCEDURE NORMAL3I (X, Y, Z:GL.INT);PROCEDURE NORMAL (X, Y, Z:GL.INT)RENAMES NORMAL3I;PROCEDURE NORMAL3B (X, Y, Z:GL.BYTE);PROCEDURE NORMAL_B (X, Y, Z:GL.BYTE)RENAMES NORMAL3B;
PROCEDURE NORMAL3S (X, Y, Z:GL.SHORT);PROCEDURE NORMAL_S (X, Y, Z:GL.SHORT)RENAMES NORMAL3S;PROCEDURE PIXELSTOREI (PNAME:PIXELSTORAGEENM;PARAM:GL.INT);
PROCEDURE PIXELSTORE (PNAME:PIXELSTORAGEENM;PARAM:GL.INT)RENAMES PIXELSTOREI;PROCEDURE RASTERPOS2I (X:GL.INT;Y:GL.INT);PROCEDURE RASTERPOS (X, Y:GL.INT)RENAMES RASTERPOS2I;
PROCEDURE ROTATED (ANGLE:GL.DOUBLE;X:GL.DOUBLE;Y:GL.DOUBLE;Z:GL.DOUBLE);PROCEDURE ROTATE (ANGLE:GL.DOUBLE;X:GL.DOUBLE;Y:GL.DOUBLE;Z:GL.DOUBLE)RENAMES ROTATED;
PROCEDURE ROTATEF (ANGLE:GL.FLOAT;X:GL.FLOAT;Y:GL.FLOAT;Z:GL.FLOAT);PROCEDURE ROTATE_F (ANGLE:GL.FLOAT;X:GL.FLOAT;Y:GL.FLOAT;Z:GL.FLOAT)RENAMES ROTATEF;
PROCEDURE SCALED (X, Y, Z:GL.DOUBLE);PROCEDURE SCALE (X, Y, Z:GL.DOUBLE)RENAMES SCALED;PROCEDURE SCALEF (X, Y, Z:GL.FLOAT);PROCEDURE SCALE_F (X, Y, Z:GL.FLOAT)RENAMES SCALEF;
PROCEDURE TEXCOORD2D (S:GL.DOUBLE;T:GL.DOUBLE);PROCEDURE TEXCOORD (S:GL.DOUBLE;T:GL.DOUBLE)RENAMES TEXCOORD2D;PROCEDURE TEXCOORD2F (S:GL.FLOAT;
T:GL.FLOAT);PROCEDURE TEXCOORDF (S:GL.FLOAT;T:GL.FLOAT)RENAMES TEXCOORD2F;PROCEDURE TEXENVI (TARGET:TEXENVENM;PNAME:TEXENVPARAMETERENM;PARAM:GL.INT);
PROCEDURE TEXENV (TARGET:TEXENVENM;PNAME:TEXENVPARAMETERENM;PARAM:GL.INT)RENAMES TEXENVI;PROCEDURE TEXPARAMETERI (TARGET:TARGETTEXENM;PNAME:TEXPARAMENM;
PARAM:GL.INT);PROCEDURE TEXPARAMETER (TARGET:TARGETTEXENM;PNAME:TEXPARAMENM;PARAM:GL.INT)RENAMES TEXPARAMETERI;PROCEDURE TRANSLATED (X, Y, Z:GL.DOUBLE);
PROCEDURE TRANSLATE (X, Y, Z:GL.DOUBLE)RENAMES TRANSLATED;PROCEDURE TRANSLATEF (X, Y, Z:GL.FLOAT);PROCEDURE TRANSLATE_F (X, Y, Z:GL.FLOAT)RENAMES TRANSLATEF;
PROCEDURE VERTEX2D (X, Y:GL.DOUBLE);PROCEDURE VERTEX (X, Y:GL.DOUBLE)RENAMES VERTEX2D;PROCEDURE VERTEX2F (X, Y:GL.FLOAT);PROCEDURE VERTEX_F (X, Y:GL.FLOAT)RENAMES VERTEX2F;
PROCEDURE VERTEX2I (X, Y:GL.INT);PROCEDURE VERTEX (X, Y:GL.INT)RENAMES VERTEX2I;PROCEDURE VERTEX2S (X, Y:GL.SHORT);PROCEDURE VERTEX_S (X, Y:GL.SHORT)RENAMES VERTEX2S;
PROCEDURE VERTEX3D (X, Y, Z:GL.DOUBLE);PROCEDURE VERTEX (X, Y, Z:GL.DOUBLE)RENAMES VERTEX3D;PROCEDURE VERTEX3F (X, Y, Z:GL.FLOAT);PROCEDURE VERTEX_F (X, Y, Z:GL.FLOAT)RENAMES VERTEX3F;
PROCEDURE VERTEX3I (X, Y, Z:GL.INT);PROCEDURE VERTEX (X, Y, Z:GL.INT)RENAMES VERTEX3I;PROCEDURE VERTEX3S (X, Y, Z:GL.SHORT);PROCEDURE VERTEX_S (X, Y, Z:GL.SHORT)RENAMES VERTEX3S;
PROCEDURE VERTEX4D (X, Y, Z, W:GL.DOUBLE);PROCEDURE VERTEX (X, Y, Z, W:GL.DOUBLE)RENAMES VERTEX4D;PROCEDURE VERTEX4F (X, Y, Z, W:GL.FLOAT);PROCEDURE VERTEX_F (X, Y, Z, W:GL.FLOAT)RENAMES VERTEX4F;
PROCEDURE VERTEX4I (X, Y, Z, W:GL.INT);PROCEDURE VERTEX (X, Y, Z, W:GL.INT)RENAMES VERTEX4I;PROCEDURE VERTEX4S (X, Y, Z, W:GL.SHORT);PROCEDURE VERTEX_S (X, Y, Z, W:GL.SHORT)RENAMES VERTEX4S;
PROCEDURE GLACCUM (OP:ACCUMENM;VALUE:GL.FLOAT);PROCEDURE ACCUM (OP:ACCUMENM;VALUE:GL.FLOAT)RENAMES GLACCUM;PROCEDURE GLCLEAR (MASK:BITFIELD);
PROCEDURE CLEAR (MASK:BITFIELD)RENAMES GLCLEAR;PROCEDURE GLVIEWPORT (X:GL.INT;Y:GL.INT;WIDTH:GL.SIZEI;HEIGHT:GL.SIZEI);PROCEDURE VIEWPORT (X:GL.INT;
Y:GL.INT;WIDTH:GL.SIZEI;HEIGHT:GL.SIZEI)RENAMES GLVIEWPORT;PRAGMA IMPORT (STDCALL, CLEARINDEX, "glClearIndex");PRAGMA IMPORT (STDCALL, CLEARCOLOR, "glClearColor");
PRAGMA IMPORT (STDCALL, GLCLEAR, "glClear");PRAGMA IMPORT (STDCALL, INDEXMASK, "glIndexMask");PRAGMA IMPORT (STDCALL, COLORMASK, "glColorMask");
PRAGMA IMPORT (STDCALL, ALPHAFUNC, "glAlphaFunc");PRAGMA IMPORT (STDCALL, BLENDFUNC, "glBlendFunc");PRAGMA IMPORT (STDCALL, LOGICOP, "glLogicOp");
PRAGMA IMPORT (STDCALL, CULLFACE, "glCullFace");PRAGMA IMPORT (STDCALL, FRONTFACE, "glFrontFace");PRAGMA IMPORT (STDCALL, POINTSIZE, "glPointSize");
PRAGMA IMPORT (STDCALL, LINEWIDTH, "glLineWidth");PRAGMA IMPORT (STDCALL, LINESTIPPLE, "glLineStipple");PRAGMA IMPORT (STDCALL, POLYGONMODE, "glPolygonMode");
PRAGMA IMPORT (STDCALL, POLYGONOFFSET, "glPolygonOffset");PRAGMA IMPORT (STDCALL, POLYGONSTIPPLE, "glPolygonStipple");PRAGMA IMPORT (STDCALL, GETPOLYGONSTIPPLE, "glGetPolygonStipple");
PRAGMA IMPORT (STDCALL, EDGEFLAG, "glEdgeFlag");PRAGMA IMPORT (STDCALL, EDGEFLAGV, "glEdgeFlagv");PRAGMA IMPORT (STDCALL, SCISSOR, "glScissor");
PRAGMA IMPORT (STDCALL, CLIPPLANE, "glClipPlane");PRAGMA IMPORT (STDCALL, GETCLIPPLANE, "glGetClipPlane");PRAGMA IMPORT (STDCALL, DRAWBUFFER, "glDrawBuffer");
PRAGMA IMPORT (STDCALL, READBUFFER, "glReadBuffer");PRAGMA IMPORT (STDCALL, ENABLE, "glEnable");PRAGMA IMPORT (STDCALL, DISABLE, "glDisable");PRAGMA IMPORT (STDCALL, ISENABLED, "glIsEnabled");
PRAGMA IMPORT (STDCALL, ENABLECLIENTSTATE, "glEnableClientState");PRAGMA IMPORT (STDCALL, DISABLECLIENTSTATE, "glDisableClientState");PRAGMA IMPORT (STDCALL, GETBOOLEANV, "glGetBooleanv");
PRAGMA IMPORT (STDCALL, GETDOUBLEV, "glGetDoublev");PRAGMA IMPORT (STDCALL, GETFLOATV, "glGetFloatv");PRAGMA IMPORT (STDCALL, GETINTEGERV, "glGetIntegerv");
PRAGMA IMPORT (STDCALL, PUSHATTRIB, "glPushAttrib");PRAGMA IMPORT (STDCALL, POPATTRIB, "glPopAttrib");PRAGMA IMPORT (STDCALL, PUSHCLIENTATTRIB, "glPushClientAttrib");
PRAGMA IMPORT (STDCALL, POPCLIENTATTRIB, "glPopClientAttrib");PRAGMA IMPORT (STDCALL, RENDERMODE, "glRenderMode");PRAGMA IMPORT (STDCALL, GETERROR, "glGetError");
PRAGMA IMPORT (STDCALL, GLGETSTRING, "glGetString");PRAGMA IMPORT (STDCALL, FINISH, "glFinish");PRAGMA IMPORT (STDCALL, FLUSH, "glFlush");PRAGMA IMPORT (STDCALL, HINT, "glHint");
PRAGMA IMPORT (STDCALL, CLEARDEPTH, "glClearDepth");PRAGMA IMPORT (STDCALL, DEPTHFUNC, "glDepthFunc");PRAGMA IMPORT (STDCALL, DEPTHMASK, "glDepthMask");
PRAGMA IMPORT (STDCALL, DEPTHRANGE, "glDepthRange");PRAGMA IMPORT (STDCALL, CLEARACCUM, "glClearAccum");PRAGMA IMPORT (STDCALL, GLACCUM, "glAccum");
PRAGMA IMPORT (STDCALL, MATRIXMODE, "glMatrixMode");PRAGMA IMPORT (STDCALL, ORTHO, "glOrtho");PRAGMA IMPORT (STDCALL, FRUSTUM, "glFrustum");PRAGMA IMPORT (STDCALL, GLVIEWPORT, "glViewport");
PRAGMA IMPORT (STDCALL, PUSHMATRIX, "glPushMatrix");PRAGMA IMPORT (STDCALL, POPMATRIX, "glPopMatrix");PRAGMA IMPORT (STDCALL, LOADIDENTITY, "glLoadIdentity");
PRAGMA IMPORT (STDCALL, LOADMATRIXD, "glLoadMatrixd");PRAGMA IMPORT (STDCALL, LOADMATRIXF, "glLoadMatrixf");PRAGMA IMPORT (STDCALL, MULTMATRIXD, "glMultMatrixd");
PRAGMA IMPORT (STDCALL, MULTMATRIXF, "glMultMatrixf");PRAGMA IMPORT (STDCALL, ROTATED, "glRotated");PRAGMA IMPORT (STDCALL, ROTATEF, "glRotatef");
PRAGMA IMPORT (STDCALL, SCALED, "glScaled");PRAGMA IMPORT (STDCALL, SCALEF, "glScalef");PRAGMA IMPORT (STDCALL, TRANSLATED, "glTranslated");PRAGMA IMPORT (STDCALL, TRANSLATEF, "glTranslatef");
PRAGMA IMPORT (STDCALL, ISLIST, "glIsList");PRAGMA IMPORT (STDCALL, DELETELISTS, "glDeleteLists");PRAGMA IMPORT (STDCALL, GENLISTS, "glGenLists");
PRAGMA IMPORT (STDCALL, NEWLIST, "glNewList");PRAGMA IMPORT (STDCALL, ENDLIST, "glEndList");PRAGMA IMPORT (STDCALL, CALLLIST, "glCallList");PRAGMA IMPORT (STDCALL, CALLLISTS, "glCallLists");
PRAGMA IMPORT (STDCALL, LISTBASE, "glListBase");PRAGMA IMPORT (STDCALL, GL_BEGIN, "glBegin");PRAGMA IMPORT (STDCALL, GL_END, "glEnd");PRAGMA IMPORT (STDCALL, VERTEX2D, "glVertex2d");
PRAGMA IMPORT (STDCALL, VERTEX2F, "glVertex2f");PRAGMA IMPORT (STDCALL, VERTEX2I, "glVertex2i");PRAGMA IMPORT (STDCALL, VERTEX2S, "glVertex2s");
PRAGMA IMPORT (STDCALL, VERTEX3D, "glVertex3d");PRAGMA IMPORT (STDCALL, VERTEX3F, "glVertex3f");PRAGMA IMPORT (STDCALL, VERTEX3I, "glVertex3i");
PRAGMA IMPORT (STDCALL, VERTEX3S, "glVertex3s");PRAGMA IMPORT (STDCALL, VERTEX4D, "glVertex4d");PRAGMA IMPORT (STDCALL, VERTEX4F, "glVertex4f");
PRAGMA IMPORT (STDCALL, VERTEX4I, "glVertex4i");PRAGMA IMPORT (STDCALL, VERTEX4S, "glVertex4s");PRAGMA IMPORT (STDCALL, VERTEX2DV, "glVertex2dv");
PRAGMA IMPORT (STDCALL, VERTEX2FV, "glVertex2fv");PRAGMA IMPORT (STDCALL, VERTEX2IV, "glVertex2iv");PRAGMA IMPORT (STDCALL, VERTEX2SV, "glVertex2sv");
PRAGMA IMPORT (STDCALL, VERTEX3DV, "glVertex3dv");PRAGMA IMPORT (STDCALL, VERTEX3FV, "glVertex3fv");PRAGMA IMPORT (STDCALL, VERTEX3IV, "glVertex3iv");
PRAGMA IMPORT (STDCALL, VERTEX3SV, "glVertex3sv");PRAGMA IMPORT (STDCALL, VERTEX4DV, "glVertex4dv");PRAGMA IMPORT (STDCALL, VERTEX4FV, "glVertex4fv");
PRAGMA IMPORT (STDCALL, VERTEX4IV, "glVertex4iv");PRAGMA IMPORT (STDCALL, VERTEX4SV, "glVertex4sv");PRAGMA IMPORT (STDCALL, NORMAL3B, "glNormal3b");
PRAGMA IMPORT (STDCALL, NORMAL3D, "glNormal3d");PRAGMA IMPORT (STDCALL, NORMAL3F, "glNormal3f");PRAGMA IMPORT (STDCALL, NORMAL3I, "glNormal3i");
PRAGMA IMPORT (STDCALL, NORMAL3S, "glNormal3s");PRAGMA IMPORT (STDCALL, NORMAL3BV, "glNormal3bv");PRAGMA IMPORT (STDCALL, NORMAL3DV, "glNormal3dv");
PRAGMA IMPORT (STDCALL, NORMAL3FV, "glNormal3fv");PRAGMA IMPORT (STDCALL, NORMAL3IV, "glNormal3iv");PRAGMA IMPORT (STDCALL, NORMAL3SV, "glNormal3sv");
PRAGMA IMPORT (STDCALL, INDEXD, "glIndexd");PRAGMA IMPORT (STDCALL, INDEXF, "glIndexf");PRAGMA IMPORT (STDCALL, INDEXI, "glIndexi");PRAGMA IMPORT (STDCALL, INDEXS, "glIndexs");
PRAGMA IMPORT (STDCALL, INDEXUB, "glIndexub");PRAGMA IMPORT (STDCALL, INDEXDV, "glIndexdv");PRAGMA IMPORT (STDCALL, INDEXFV, "glIndexfv");PRAGMA IMPORT (STDCALL, INDEXIV, "glIndexiv");
PRAGMA IMPORT (STDCALL, INDEXSV, "glIndexsv");PRAGMA IMPORT (STDCALL, INDEXUBV, "glIndexubv");PRAGMA IMPORT (STDCALL, COLOR3B, "glColor3b");PRAGMA IMPORT (STDCALL, COLOR3D, "glColor3d");
PRAGMA IMPORT (STDCALL, COLOR3F, "glColor3f");PRAGMA IMPORT (STDCALL, COLOR3I, "glColor3i");PRAGMA IMPORT (STDCALL, COLOR3S, "glColor3s");PRAGMA IMPORT (STDCALL, COLOR3UB, "glColor3ub");
PRAGMA IMPORT (STDCALL, COLOR3UI, "glColor3ui");PRAGMA IMPORT (STDCALL, COLOR3US, "glColor3us");PRAGMA IMPORT (STDCALL, COLOR4B, "glColor4b");PRAGMA IMPORT (STDCALL, COLOR4D, "glColor4d");
PRAGMA IMPORT (STDCALL, COLOR4F, "glColor4f");PRAGMA IMPORT (STDCALL, COLOR4I, "glColor4i");PRAGMA IMPORT (STDCALL, COLOR4S, "glColor4s");PRAGMA IMPORT (STDCALL, COLOR4UB, "glColor4ub");
PRAGMA IMPORT (STDCALL, COLOR4UI, "glColor4ui");PRAGMA IMPORT (STDCALL, COLOR4US, "glColor4us");PRAGMA IMPORT (STDCALL, COLOR3BV, "glColor3bv");
PRAGMA IMPORT (STDCALL, COLOR3DV, "glColor3dv");PRAGMA IMPORT (STDCALL, COLOR3FV, "glColor3fv");PRAGMA IMPORT (STDCALL, COLOR3IV, "glColor3iv");
PRAGMA IMPORT (STDCALL, COLOR3SV, "glColor3sv");PRAGMA IMPORT (STDCALL, COLOR3UBV, "glColor3ubv");PRAGMA IMPORT (STDCALL, COLOR3UIV, "glColor3uiv");
PRAGMA IMPORT (STDCALL, COLOR3USV, "glColor3usv");PRAGMA IMPORT (STDCALL, COLOR4BV, "glColor4bv");PRAGMA IMPORT (STDCALL, COLOR4DV, "glColor4dv");
PRAGMA IMPORT (STDCALL, COLOR4FV, "glColor4fv");PRAGMA IMPORT (STDCALL, COLOR4IV, "glColor4iv");PRAGMA IMPORT (STDCALL, COLOR4SV, "glColor4sv");
PRAGMA IMPORT (STDCALL, COLOR4UBV, "glColor4ubv");PRAGMA IMPORT (STDCALL, COLOR4UIV, "glColor4uiv");PRAGMA IMPORT (STDCALL, COLOR4USV, "glColor4usv");
PRAGMA IMPORT (STDCALL, TEXCOORD1D, "glTexCoord1d");PRAGMA IMPORT (STDCALL, TEXCOORD1F, "glTexCoord1f");PRAGMA IMPORT (STDCALL, TEXCOORD1I, "glTexCoord1i");
PRAGMA IMPORT (STDCALL, TEXCOORD1S, "glTexCoord1s");PRAGMA IMPORT (STDCALL, TEXCOORD2D, "glTexCoord2d");PRAGMA IMPORT (STDCALL, TEXCOORD2F, "glTexCoord2f");
PRAGMA IMPORT (STDCALL, TEXCOORD2I, "glTexCoord2i");PRAGMA IMPORT (STDCALL, TEXCOORD2S, "glTexCoord2s");PRAGMA IMPORT (STDCALL, TEXCOORD3D, "glTexCoord3d");
PRAGMA IMPORT (STDCALL, TEXCOORD3F, "glTexCoord3f");PRAGMA IMPORT (STDCALL, TEXCOORD3I, "glTexCoord3i");PRAGMA IMPORT (STDCALL, TEXCOORD3S, "glTexCoord3s");
PRAGMA IMPORT (STDCALL, TEXCOORD4D, "glTexCoord4d");PRAGMA IMPORT (STDCALL, TEXCOORD4F, "glTexCoord4f");PRAGMA IMPORT (STDCALL, TEXCOORD4I, "glTexCoord4i");
PRAGMA IMPORT (STDCALL, TEXCOORD4S, "glTexCoord4s");PRAGMA IMPORT (STDCALL, TEXCOORD1DV, "glTexCoord1dv");PRAGMA IMPORT (STDCALL, TEXCOORD1FV, "glTexCoord1fv");
PRAGMA IMPORT (STDCALL, TEXCOORD1IV, "glTexCoord1iv");PRAGMA IMPORT (STDCALL, TEXCOORD1SV, "glTexCoord1sv");PRAGMA IMPORT (STDCALL, TEXCOORD2DV, "glTexCoord2dv");
PRAGMA IMPORT (STDCALL, TEXCOORD2FV, "glTexCoord2fv");PRAGMA IMPORT (STDCALL, TEXCOORD2IV, "glTexCoord2iv");PRAGMA IMPORT (STDCALL, TEXCOORD2SV, "glTexCoord2sv");
PRAGMA IMPORT (STDCALL, TEXCOORD3DV, "glTexCoord3dv");PRAGMA IMPORT (STDCALL, TEXCOORD3FV, "glTexCoord3fv");PRAGMA IMPORT (STDCALL, TEXCOORD3IV, "glTexCoord3iv");
PRAGMA IMPORT (STDCALL, TEXCOORD3SV, "glTexCoord3sv");PRAGMA IMPORT (STDCALL, TEXCOORD4DV, "glTexCoord4dv");PRAGMA IMPORT (STDCALL, TEXCOORD4FV, "glTexCoord4fv");
PRAGMA IMPORT (STDCALL, TEXCOORD4IV, "glTexCoord4iv");PRAGMA IMPORT (STDCALL, TEXCOORD4SV, "glTexCoord4sv");PRAGMA IMPORT (STDCALL, RASTERPOS2D, "glRasterPos2d");
PRAGMA IMPORT (STDCALL, RASTERPOS2F, "glRasterPos2f");PRAGMA IMPORT (STDCALL, RASTERPOS2I, "glRasterPos2i");PRAGMA IMPORT (STDCALL, RASTERPOS2S, "glRasterPos2s");
PRAGMA IMPORT (STDCALL, RASTERPOS3D, "glRasterPos3d");PRAGMA IMPORT (STDCALL, RASTERPOS3F, "glRasterPos3f");PRAGMA IMPORT (STDCALL, RASTERPOS3I, "glRasterPos3i");
PRAGMA IMPORT (STDCALL, RASTERPOS3S, "glRasterPos3s");PRAGMA IMPORT (STDCALL, RASTERPOS4D, "glRasterPos4d");PRAGMA IMPORT (STDCALL, RASTERPOS4F, "glRasterPos4f");
PRAGMA IMPORT (STDCALL, RASTERPOS4I, "glRasterPos4i");PRAGMA IMPORT (STDCALL, RASTERPOS4S, "glRasterPos4s");PRAGMA IMPORT (STDCALL, RASTERPOS2DV, "glRasterPos2dv");
PRAGMA IMPORT (STDCALL, RASTERPOS2FV, "glRasterPos2fv");PRAGMA IMPORT (STDCALL, RASTERPOS2IV, "glRasterPos2iv");PRAGMA IMPORT (STDCALL, RASTERPOS2SV, "glRasterPos2sv");
PRAGMA IMPORT (STDCALL, RASTERPOS3DV, "glRasterPos3dv");PRAGMA IMPORT (STDCALL, RASTERPOS3FV, "glRasterPos3fv");PRAGMA IMPORT (STDCALL, RASTERPOS3IV, "glRasterPos3iv");
PRAGMA IMPORT (STDCALL, RASTERPOS3SV, "glRasterPos3sv");PRAGMA IMPORT (STDCALL, RASTERPOS4DV, "glRasterPos4dv");PRAGMA IMPORT (STDCALL, RASTERPOS4FV, "glRasterPos4fv");
PRAGMA IMPORT (STDCALL, RASTERPOS4IV, "glRasterPos4iv");PRAGMA IMPORT (STDCALL, RASTERPOS4SV, "glRasterPos4sv");PRAGMA IMPORT (STDCALL, RECTD, "glRectd");
PRAGMA IMPORT (STDCALL, RECTF, "glRectf");PRAGMA IMPORT (STDCALL, RECTI, "glRecti");PRAGMA IMPORT (STDCALL, RECTS, "glRects");PRAGMA IMPORT (STDCALL, RECTDV, "glRectdv");
PRAGMA IMPORT (STDCALL, RECTFV, "glRectfv");PRAGMA IMPORT (STDCALL, RECTIV, "glRectiv");PRAGMA IMPORT (STDCALL, RECTSV, "glRectsv");PRAGMA IMPORT (STDCALL, VERTEXPOINTER, "glVertexPointer");
PRAGMA IMPORT (STDCALL, NORMALPOINTER, "glNormalPointer");PRAGMA IMPORT (STDCALL, COLORPOINTER, "glColorPointer");PRAGMA IMPORT (STDCALL, INDEXPOINTER, "glIndexPointer");
PRAGMA IMPORT (STDCALL, TEXCOORDPOINTER, "glTexCoordPointer");PRAGMA IMPORT (STDCALL, EDGEFLAGPOINTER, "glEdgeFlagPointer");PRAGMA IMPORT (STDCALL, GETPOINTERV, "glGetPointerv");
PRAGMA IMPORT (STDCALL, ARRAYELEMENT, "glArrayElement");PRAGMA IMPORT (STDCALL, DRAWARRAYS, "glDrawArrays");PRAGMA IMPORT (STDCALL, DRAWELEMENTS, "glDrawElements");
PRAGMA IMPORT (STDCALL, INTERLEAVEDARRAYS, "GL.interleavedArrays");PRAGMA IMPORT (STDCALL, SHADEMODEL, "glShadeModel");PRAGMA IMPORT (STDCALL, LIGHTF, "glLightf");
PRAGMA IMPORT (STDCALL, LIGHTI, "glLighti");PRAGMA IMPORT (STDCALL, LIGHTFV, "glLightfv");PRAGMA IMPORT (STDCALL, LIGHTIV, "glLightiv");PRAGMA IMPORT (STDCALL, GETLIGHTFV, "glGetLightfv");
PRAGMA IMPORT (STDCALL, GETLIGHTIV, "glGetLightiv");PRAGMA IMPORT (STDCALL, LIGHTMODELF, "glLightModelf");PRAGMA IMPORT (STDCALL, LIGHTMODELI, "glLightModeli");
PRAGMA IMPORT (STDCALL, LIGHTMODELFV, "glLightModelfv");PRAGMA IMPORT (STDCALL, LIGHTMODELIV, "glLightModeliv");PRAGMA IMPORT (STDCALL, MATERIALF, "glMaterialf");
PRAGMA IMPORT (STDCALL, MATERIALI, "glMateriali");PRAGMA IMPORT (STDCALL, MATERIALFV, "glMaterialfv");PRAGMA IMPORT (STDCALL, MATERIALIV, "glMaterialiv");
PRAGMA IMPORT (STDCALL, GETMATERIALFV, "glGetMaterialfv");PRAGMA IMPORT (STDCALL, GETMATERIALIV, "glGetMaterialiv");PRAGMA IMPORT (STDCALL, COLORMATERIAL, "glColorMaterial");
PRAGMA IMPORT (STDCALL, PIXELZOOM, "glPixelZoom");PRAGMA IMPORT (STDCALL, PIXELSTOREF, "glPixelStoref");PRAGMA IMPORT (STDCALL, PIXELSTOREI, "glPixelStorei");
PRAGMA IMPORT (STDCALL, PIXELTRANSFERF, "glPixelTransferf");PRAGMA IMPORT (STDCALL, PIXELTRANSFERI, "glPixelTransferi");PRAGMA IMPORT (STDCALL, PIXELMAPFV, "glPixelMapfv");
PRAGMA IMPORT (STDCALL, PIXELMAPUIV, "glPixelMapuiv");PRAGMA IMPORT (STDCALL, PIXELMAPUSV, "glPixelMapusv");PRAGMA IMPORT (STDCALL, GETPIXELMAPFV, "glGetPixelMapfv");
PRAGMA IMPORT (STDCALL, GETPIXELMAPUIV, "glGetPixelMapuiv");PRAGMA IMPORT (STDCALL, GETPIXELMAPUSV, "glGetPixelMapusv");PRAGMA IMPORT (STDCALL, BITMAP, "glBitmap");
PRAGMA IMPORT (STDCALL, READPIXELS, "glReadPixels");PRAGMA IMPORT (STDCALL, DRAWPIXELS, "glDrawPixels");PRAGMA IMPORT (STDCALL, COPYPIXELS, "glCopyPixels");
PRAGMA IMPORT (STDCALL, STENCILFUNC, "glStencilFunc");PRAGMA IMPORT (STDCALL, STENCILMASK, "glStencilMask");PRAGMA IMPORT (STDCALL, STENCILOP, "glStencilOp");
PRAGMA IMPORT (STDCALL, CLEARSTENCIL, "glClearStencil");PRAGMA IMPORT (STDCALL, TEXGEND, "glTexGend");PRAGMA IMPORT (STDCALL, TEXGENF, "glTexGenf");
PRAGMA IMPORT (STDCALL, TEXGENI, "glTexGeni");PRAGMA IMPORT (STDCALL, TEXGENDV, "glTexGendv");PRAGMA IMPORT (STDCALL, TEXGENFV, "glTexGenfv");PRAGMA IMPORT (STDCALL, TEXGENIV, "glTexGeniv");
PRAGMA IMPORT (STDCALL, GETTEXGENDV, "glGetTexGendv");PRAGMA IMPORT (STDCALL, GETTEXGENFV, "glGetTexGenfv");PRAGMA IMPORT (STDCALL, GETTEXGENIV, "glGetTexGeniv");
PRAGMA IMPORT (STDCALL, TEXENVF, "glTexEnvf");PRAGMA IMPORT (STDCALL, TEXENVI, "glTexEnvi");PRAGMA IMPORT (STDCALL, TEXENVFV, "glTexEnvfv");PRAGMA IMPORT (STDCALL, TEXENVIV, "glTexEnviv");
PRAGMA IMPORT (STDCALL, GETTEXENVFV, "glGetTexEnvfv");PRAGMA IMPORT (STDCALL, GETTEXENVIV, "glGetTexEnviv");PRAGMA IMPORT (STDCALL, TEXPARAMETERF, "glTexParameterf");
PRAGMA IMPORT (STDCALL, TEXPARAMETERI, "glTexParameteri");PRAGMA IMPORT (STDCALL, TEXPARAMETERFV, "glTexParameterfv");PRAGMA IMPORT (STDCALL, TEXPARAMETERIV, "glTexParameteriv");
PRAGMA IMPORT (STDCALL, GETTEXPARAMETERFV, "glGetTexParameterfv");PRAGMA IMPORT (STDCALL, GETTEXPARAMETERIV, "glGetTexParameteriv");PRAGMA IMPORT (STDCALL, GETTEXLEVELPARAMETERFV, "glGetTexLevelParameterfv");
PRAGMA IMPORT (STDCALL, GETTEXLEVELPARAMETERIV, "glGetTexLevelParameteriv");PRAGMA IMPORT (STDCALL, TEXIMAGE1D, "glTexImage1D");PRAGMA IMPORT (STDCALL, TEXIMAGE2D, "glTexImage2D");
PRAGMA IMPORT (STDCALL, GETTEXIMAGE, "glGetTexImage");PRAGMA IMPORT (STDCALL, GENTEXTURES, "glGenTextures");PRAGMA IMPORT (STDCALL, DELETETEXTURES, "glDeleteTextures");
PRAGMA IMPORT (STDCALL, BINDTEXTURE, "glBindTexture");PRAGMA IMPORT (STDCALL, PRIORITIZETEXTURES, "glPrioritizeTextures");PRAGMA IMPORT (STDCALL, ARETEXTURESRESIDENT, "glAreTexturesResident");
PRAGMA IMPORT (STDCALL, ISTEXTURE, "glIsTexture");PRAGMA IMPORT (STDCALL, TEXSUBIMAGE1D, "glTexSubImage1D");PRAGMA IMPORT (STDCALL, TEXSUBIMAGE2D, "glTexSubImage2D");
PRAGMA IMPORT (STDCALL, COPYTEXIMAGE1D, "glCopyTexImage1D");PRAGMA IMPORT (STDCALL, COPYTEXIMAGE2D, "glCopyTexImage2D");PRAGMA IMPORT (STDCALL, COPYTEXSUBIMAGE1D, "glCopyTexSubImage1D");
PRAGMA IMPORT (STDCALL, COPYTEXSUBIMAGE2D, "glCopyTexSubImage2D");PRAGMA IMPORT (STDCALL, MAP1D, "glMap1d");PRAGMA IMPORT (STDCALL, MAP1F, "glMap1f");
PRAGMA IMPORT (STDCALL, MAP2D, "glMap2d");PRAGMA IMPORT (STDCALL, MAP2F, "glMap2f");PRAGMA IMPORT (STDCALL, GETMAPDV, "glGetMapdv");PRAGMA IMPORT (STDCALL, GETMAPFV, "glGetMapfv");
PRAGMA IMPORT (STDCALL, GETMAPIV, "glGetMapiv");PRAGMA IMPORT (STDCALL, EVALCOORD1D, "glEvalCoord1d");PRAGMA IMPORT (STDCALL, EVALCOORD1F, "glEvalCoord1f");
PRAGMA IMPORT (STDCALL, EVALCOORD1DV, "glEvalCoord1dv");PRAGMA IMPORT (STDCALL, EVALCOORD1FV, "glEvalCoord1fv");PRAGMA IMPORT (STDCALL, EVALCOORD2D, "glEvalCoord2d");
PRAGMA IMPORT (STDCALL, EVALCOORD2F, "glEvalCoord2f");PRAGMA IMPORT (STDCALL, EVALCOORD2DV, "glEvalCoord2dv");PRAGMA IMPORT (STDCALL, EVALCOORD2FV, "glEvalCoord2fv");
PRAGMA IMPORT (STDCALL, MAPGRID1D, "glMapGrid1d");PRAGMA IMPORT (STDCALL, MAPGRID1F, "glMapGrid1f");PRAGMA IMPORT (STDCALL, MAPGRID2D, "glMapGrid2d");
PRAGMA IMPORT (STDCALL, MAPGRID2F, "glMapGrid2f");PRAGMA IMPORT (STDCALL, EVALPOINT1, "glEvalPoint1");PRAGMA IMPORT (STDCALL, EVALPOINT2, "glEvalPoint2");
PRAGMA IMPORT (STDCALL, EVALMESH1, "glEvalMesh1");PRAGMA IMPORT (STDCALL, EVALMESH2, "glEvalMesh2");PRAGMA IMPORT (STDCALL, FOGF, "glFogf");PRAGMA IMPORT (STDCALL, FOGI, "glFogi");
PRAGMA IMPORT (STDCALL, FOGFV, "glFogfv");PRAGMA IMPORT (STDCALL, FOGIV, "glFogiv");PRAGMA IMPORT (STDCALL, FEEDBACKBUFFER, "glFeedbackBuffer");
PRAGMA IMPORT (STDCALL, PASSTHROUGH, "glPassThrough");PRAGMA IMPORT (STDCALL, SELECTBUFFER, "glSelectBuffer");PRAGMA IMPORT (STDCALL, INITNAMES, "glInitNames");
PRAGMA IMPORT (STDCALL, LOADNAME, "glLoadName");PRAGMA IMPORT (STDCALL, PUSHNAME, "glPushName");PRAGMA IMPORT (STDCALL, POPNAME, "glPopName");PRAGMA IMPORT (STDCALL, BLENDEQUATIONEXT, "glBlendEquationEXT");
PRAGMA IMPORT (STDCALL, BLENDCOLOREXT, "glBlendColorEXT");PRAGMA IMPORT (STDCALL, TEXIMAGE3DEXT, "glTexImage3DEXT");PRAGMA IMPORT (STDCALL, TEXSUBIMAGE3DEXT, "glTexSubImage3DEXT");
PRAGMA IMPORT (STDCALL, COPYTEXSUBIMAGE3DEXT, "glCopyTexSubImage3DEXT");PRAGMA IMPORT (STDCALL, COLORTABLEEXT, "glColorTableEXT");PRAGMA IMPORT (STDCALL, COLORSUBTABLEEXT, "glColorSubTableEXT");
PRAGMA IMPORT (STDCALL, GETCOLORTABLEEXT, "glGetColorTableEXT");PRAGMA IMPORT (STDCALL, GETCOLORTABLEPARAMETERFVEXT, "glGetColorTableParameterfvEXT");
PRAGMA IMPORT (STDCALL, GETCOLORTABLEPARAMETERIVEXT, "glGetColorTableParameterivEXT");PRAGMA IMPORT (STDCALL, POINTPARAMETERFEXT, "glPointParameterfEXT");
PRAGMA IMPORT (STDCALL, POINTPARAMETERFVEXT, "glPointParameterfvEXT");PRAGMA IMPORT (STDCALL, WINDOWPOS2IMESA, "glWindowPos2iMESA");PRAGMA IMPORT (STDCALL, WINDOWPOS2SMESA, "glWindowPos2sMESA");
PRAGMA IMPORT (STDCALL, WINDOWPOS2FMESA, "glWindowPos2fMESA");PRAGMA IMPORT (STDCALL, WINDOWPOS2DMESA, "glWindowPos2dMESA");PRAGMA IMPORT (STDCALL, WINDOWPOS2IVMESA, "glWindowPos2ivMESA");
PRAGMA IMPORT (STDCALL, WINDOWPOS2SVMESA, "glWindowPos2svMESA");PRAGMA IMPORT (STDCALL, WINDOWPOS2FVMESA, "glWindowPos2fvMESA");PRAGMA IMPORT (STDCALL, WINDOWPOS2DVMESA, "glWindowPos2dvMESA");
PRAGMA IMPORT (STDCALL, WINDOWPOS3IMESA, "glWindowPos3iMESA");PRAGMA IMPORT (STDCALL, WINDOWPOS3SMESA, "glWindowPos3sMESA");PRAGMA IMPORT (STDCALL, WINDOWPOS3FMESA, "glWindowPos3fMESA");
PRAGMA IMPORT (STDCALL, WINDOWPOS3DMESA, "glWindowPos3dMESA");PRAGMA IMPORT (STDCALL, WINDOWPOS3IVMESA, "glWindowPos3ivMESA");PRAGMA IMPORT (STDCALL, WINDOWPOS3SVMESA, "glWindowPos3svMESA");
PRAGMA IMPORT (STDCALL, WINDOWPOS3FVMESA, "glWindowPos3fvMESA");PRAGMA IMPORT (STDCALL, WINDOWPOS3DVMESA, "glWindowPos3dvMESA");PRAGMA IMPORT (STDCALL, WINDOWPOS4IMESA, "glWindowPos4iMESA");
PRAGMA IMPORT (STDCALL, WINDOWPOS4SMESA, "glWindowPos4sMESA");PRAGMA IMPORT (STDCALL, WINDOWPOS4FMESA, "glWindowPos4fMESA");PRAGMA IMPORT (STDCALL, WINDOWPOS4DMESA, "glWindowPos4dMESA");
PRAGMA IMPORT (STDCALL, WINDOWPOS4IVMESA, "glWindowPos4ivMESA");PRAGMA IMPORT (STDCALL, WINDOWPOS4SVMESA, "glWindowPos4svMESA");PRAGMA IMPORT (STDCALL, WINDOWPOS4FVMESA, "glWindowPos4fvMESA");
PRAGMA IMPORT (STDCALL, WINDOWPOS4DVMESA, "glWindowPos4dvMESA");PRAGMA IMPORT (STDCALL, RESIZEBUFFERSMESA, "glResizeBuffersMESA");PRAGMA CONVENTION (STDCALL, GENBUFFERS);
PRAGMA CONVENTION (STDCALL, DELETEBUFFERS);PRAGMA CONVENTION (STDCALL, BINDBUFFER);PRAGMA CONVENTION (STDCALL, BUFFERDATA);PRAGMA CONVENTION (STDCALL, BUFFERSUBDATA);
PRAGMA CONVENTION (STDCALL, MAPBUFFER);PRAGMA CONVENTION (STDCALL, UNMAPBUFFER);PRAGMA CONVENTION (STDCALL, GETBUFFERPARAMETER);END GL;
| 156.577371 | 209 | 0.78973 |
3d368b136429af59489703c802b845f1b70807cf | 8,222 | ads | Ada | src/http/util-http.ads | Letractively/ada-util | e4c63b93635dc07c46e95f12ba02d18903b307b3 | [
"Apache-2.0"
] | null | null | null | src/http/util-http.ads | Letractively/ada-util | e4c63b93635dc07c46e95f12ba02d18903b307b3 | [
"Apache-2.0"
] | null | null | null | src/http/util-http.ads | Letractively/ada-util | e4c63b93635dc07c46e95f12ba02d18903b307b3 | [
"Apache-2.0"
] | null | null | null | -----------------------------------------------------------------------
-- util-http -- HTTP Utility Library
-- Copyright (C) 2012 Stephane Carrez
-- Written by Stephane Carrez ([email protected])
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.
-----------------------------------------------------------------------
with Ada.Calendar;
-- == Introduction ==
-- The <tt>Util.Http</tt> package provides a set of APIs that allows applications to use
-- the HTTP protocol.
--
-- @include util-http-clients.ads
package Util.Http is
-- Standard codes returned in HTTP responses.
SC_CONTINUE : constant Natural := 100;
SC_SWITCHING_PROTOCOLS : constant Natural := 101;
SC_OK : constant Natural := 200;
SC_CREATED : constant Natural := 201;
SC_ACCEPTED : constant Natural := 202;
SC_NON_AUTHORITATIVE_INFORMATION : constant Natural := 203;
SC_NO_CONTENT : constant Natural := 204;
SC_RESET_CONTENT : constant Natural := 205;
SC_PARTIAL_CONTENT : constant Natural := 206;
SC_MULTIPLE_CHOICES : constant Natural := 300;
SC_MOVED_PERMANENTLY : constant Natural := 301;
SC_MOVED_TEMPORARILY : constant Natural := 302;
SC_FOUND : constant Natural := 302;
SC_SEE_OTHER : constant Natural := 303;
SC_NOT_MODIFIED : constant Natural := 304;
SC_USE_PROXY : constant Natural := 305;
SC_TEMPORARY_REDIRECT : constant Natural := 307;
SC_BAD_REQUEST : constant Natural := 400;
SC_UNAUTHORIZED : constant Natural := 401;
SC_PAYMENT_REQUIRED : constant Natural := 402;
SC_FORBIDDEN : constant Natural := 403;
SC_NOT_FOUND : constant Natural := 404;
SC_METHOD_NOT_ALLOWED : constant Natural := 405;
SC_NOT_ACCEPTABLE : constant Natural := 406;
SC_PROXY_AUTHENTICATION_REQUIRED : constant Natural := 407;
SC_REQUEST_TIMEOUT : constant Natural := 408;
SC_CONFLICT : constant Natural := 409;
SC_GONE : constant Natural := 410;
SC_LENGTH_REQUIRED : constant Natural := 411;
SC_PRECONDITION_FAILED : constant Natural := 412;
SC_REQUEST_ENTITY_TOO_LARGE : constant Natural := 413;
SC_REQUEST_URI_TOO_LONG : constant Natural := 414;
SC_UNSUPPORTED_MEDIA_TYPE : constant Natural := 415;
SC_REQUESTED_RANGE_NOT_SATISFIABLE : constant Natural := 416;
SC_EXPECTATION_FAILED : constant Natural := 417;
SC_INTERNAL_SERVER_ERROR : constant Natural := 500;
SC_NOT_IMPLEMENTED : constant Natural := 501;
SC_BAD_GATEWAY : constant Natural := 502;
SC_SERVICE_UNAVAILABLE : constant Natural := 503;
SC_GATEWAY_TIMEOUT : constant Natural := 504;
SC_HTTP_VERSION_NOT_SUPPORTED : constant Natural := 505;
-- ------------------------------
-- Abstract Message
-- ------------------------------
-- The <b>Abstract_Message</b> interface describe an HTTP message representing either
-- a request or a response.
type Abstract_Message is limited interface;
-- Returns a boolean indicating whether the named message header has already
-- been set.
function Contains_Header (Message : in Abstract_Message;
Name : in String) return Boolean is abstract;
-- Returns the value of the specified message header as a String. If the message
-- did not include a header of the specified name, this method returns null.
-- If there are multiple headers with the same name, this method returns the
-- first head in the request. The header name is case insensitive. You can use
-- this method with any message header.
function Get_Header (Message : in Abstract_Message;
Name : in String) return String is abstract;
-- Sets a message header with the given name and value. If the header had already
-- been set, the new value overwrites the previous one. The containsHeader
-- method can be used to test for the presence of a header before setting its value.
procedure Set_Header (Message : in out Abstract_Message;
Name : in String;
Value : in String) is abstract;
-- Adds a request header with the given name and value.
-- This method allows request headers to have multiple values.
procedure Add_Header (Message : in out Abstract_Message;
Name : in String;
Value : in String) is abstract;
-- Iterate over the message headers and executes the <b>Process</b> procedure.
procedure Iterate_Headers (Message : in Abstract_Message;
Process : not null access
procedure (Name : in String;
Value : in String)) is abstract;
-- Sets a header with the given name and date-value.
-- The date is specified in terms of milliseconds since the epoch.
-- If the header had already been set, the new value overwrites the previous one.
-- The containsHeader method can be used to test for the presence of a header
-- before setting its value.
procedure Set_Date_Header (Request : in out Abstract_Message'Class;
Name : in String;
Date : in Ada.Calendar.Time);
-- Adds a header with the given name and date-value. The date is specified
-- in terms of milliseconds since the epoch. This method allows response headers
-- to have multiple values.
procedure Add_Date_Header (Request : in out Abstract_Message'Class;
Name : in String;
Date : in Ada.Calendar.Time);
-- Sets a header with the given name and integer value.
-- If the header had already been set, the new value overwrites the previous one.
-- The containsHeader method can be used to test for the presence of a header
-- before setting its value.
procedure Set_Int_Header (Request : in out Abstract_Message'Class;
Name : in String;
Value : in Integer);
-- Adds a header with the given name and integer value. This method
-- allows headers to have multiple values.
procedure Add_Int_Header (Request : in out Abstract_Message'Class;
Name : in String;
Value : in Integer);
-- ------------------------------
-- Abstract Request
-- ------------------------------
type Abstract_Request is limited interface and Abstract_Message;
type Abstract_Request_Access is access all Abstract_Request'Class;
-- ------------------------------
-- Abstract Response
-- ------------------------------
type Abstract_Response is limited interface and Abstract_Message;
type Abstract_Response_Access is access all Abstract_Response'Class;
-- Get the response status code.
function Get_Status (Response : in Abstract_Response) return Natural is abstract;
-- Get the response body as a string.
function Get_Body (Response : in Abstract_Response) return String is abstract;
end Util.Http;
| 51.710692 | 89 | 0.594989 |
224008cc90b91f5fc1f3a33db764822608c1df3f | 2,882 | ads | Ada | Validation/pyFrame3DD-master/gcc-master/gcc/ada/sem_intr.ads | djamal2727/Main-Bearing-Analytical-Model | 2f00c2219c71be0175c6f4f8f1d4cca231d97096 | [
"Apache-2.0"
] | null | null | null | Validation/pyFrame3DD-master/gcc-master/gcc/ada/sem_intr.ads | djamal2727/Main-Bearing-Analytical-Model | 2f00c2219c71be0175c6f4f8f1d4cca231d97096 | [
"Apache-2.0"
] | null | null | null | Validation/pyFrame3DD-master/gcc-master/gcc/ada/sem_intr.ads | djamal2727/Main-Bearing-Analytical-Model | 2f00c2219c71be0175c6f4f8f1d4cca231d97096 | [
"Apache-2.0"
] | null | null | null | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- S E M _ I N T R --
-- --
-- S p e c --
-- --
-- Copyright (C) 1992-2020, Free Software Foundation, Inc. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 3, or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License --
-- for more details. You should have received a copy of the GNU General --
-- Public License distributed with GNAT; see file COPYING3. If not, go to --
-- http://www.gnu.org/licenses for a complete copy of the license. --
-- --
-- GNAT was originally developed by the GNAT team at New York University. --
-- Extensive contributions were provided by Ada Core Technologies Inc. --
-- --
------------------------------------------------------------------------------
-- Processing for intrinsic subprogram declarations
with Types; use Types;
package Sem_Intr is
procedure Check_Intrinsic_Call (N : Node_Id);
-- Perform legality check for intrinsic call N (which is either function
-- call or a procedure call node). All the normal semantic checks have
-- been performed already. Check_Intrinsic_Call applies any additional
-- checks required by the fact that an intrinsic subprogram is involved.
procedure Check_Intrinsic_Subprogram (E : Entity_Id; N : Node_Id);
-- Special processing for pragma Import or pragma Interface when the
-- convention is Intrinsic. E is the Entity_Id of the spec of the
-- subprogram, and N is the second (subprogram) argument of the pragma.
-- Check_Intrinsic_Subprogram checks that the referenced subprogram is
-- known as an intrinsic and has an appropriate profile. If so the flag
-- Is_Intrinsic_Subprogram is set, otherwise an error message is posted.
end Sem_Intr;
| 61.319149 | 78 | 0.498612 |
57c2dbd1933d7b58b78277ac2b6c6056ab885dc7 | 1,391 | ads | Ada | tier-1/xcb/source/thin/xcb-xcb_glx_bad_context_tag_error_t.ads | charlie5/cBound | 741be08197a61ad9c72553e3302f3b669902216d | [
"0BSD"
] | 2 | 2015-11-12T11:16:20.000Z | 2021-08-24T22:32:04.000Z | tier-1/xcb/source/thin/xcb-xcb_glx_bad_context_tag_error_t.ads | charlie5/cBound | 741be08197a61ad9c72553e3302f3b669902216d | [
"0BSD"
] | 1 | 2018-06-05T05:19:35.000Z | 2021-11-20T01:13:23.000Z | tier-1/xcb/source/thin/xcb-xcb_glx_bad_context_tag_error_t.ads | charlie5/cBound | 741be08197a61ad9c72553e3302f3b669902216d | [
"0BSD"
] | null | null | null | -- This file is generated by SWIG. Please do not modify by hand.
--
with xcb.xcb_glx_generic_error_t;
with Interfaces.C;
with Interfaces.C.Pointers;
package xcb.xcb_glx_bad_context_tag_error_t is
-- Item
--
subtype Item is xcb.xcb_glx_generic_error_t.Item;
-- Item_Array
--
type Item_Array is
array
(Interfaces.C
.size_t range <>) of aliased xcb.xcb_glx_bad_context_tag_error_t
.Item;
-- Pointer
--
package C_Pointers is new Interfaces.C.Pointers
(Index => Interfaces.C.size_t,
Element => xcb.xcb_glx_bad_context_tag_error_t.Item,
Element_Array => xcb.xcb_glx_bad_context_tag_error_t.Item_Array,
Default_Terminator => (others => <>));
subtype Pointer is C_Pointers.Pointer;
-- Pointer_Array
--
type Pointer_Array is
array
(Interfaces.C
.size_t range <>) of aliased xcb.xcb_glx_bad_context_tag_error_t
.Pointer;
-- Pointer_Pointer
--
package C_Pointer_Pointers is new Interfaces.C.Pointers
(Index => Interfaces.C.size_t,
Element => xcb.xcb_glx_bad_context_tag_error_t.Pointer,
Element_Array => xcb.xcb_glx_bad_context_tag_error_t.Pointer_Array,
Default_Terminator => null);
subtype Pointer_Pointer is C_Pointer_Pointers.Pointer;
end xcb.xcb_glx_bad_context_tag_error_t;
| 27.82 | 78 | 0.680086 |
c7ea6cd28bc938adef753fe9e4ad4f037b4800a8 | 928 | ads | Ada | gdb/testsuite/gdb.ada/scoped_watch/pck.ads | greyblue9/binutils-gdb | 05377632b124fe7600eea7f4ee0e9a35d1b0cbdc | [
"BSD-3-Clause"
] | 1 | 2020-10-14T03:24:35.000Z | 2020-10-14T03:24:35.000Z | gdb/testsuite/gdb.ada/scoped_watch/pck.ads | greyblue9/binutils-gdb | 05377632b124fe7600eea7f4ee0e9a35d1b0cbdc | [
"BSD-3-Clause"
] | null | null | null | gdb/testsuite/gdb.ada/scoped_watch/pck.ads | greyblue9/binutils-gdb | 05377632b124fe7600eea7f4ee0e9a35d1b0cbdc | [
"BSD-3-Clause"
] | null | null | null | -- Copyright 2017-2021 Free Software Foundation, Inc.
--
-- This program is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation; either version 3 of the License, or
-- (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program. If not, see <http://www.gnu.org/licenses/>.
package Pck is
function Get_Val (Seed: Integer; Off_By_One: Boolean) return Integer;
procedure Do_Nothing (Val: in out Integer);
procedure Call_Me;
procedure Increment (Val : in out Integer);
end Pck;
| 42.181818 | 73 | 0.738147 |
3d6e45bcf6d465de391f115d29834b07885b3b5f | 2,566 | adb | Ada | gcc-gcc-7_3_0-release/gcc/ada/a-finali.adb | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | 7 | 2020-05-02T17:34:05.000Z | 2021-10-17T10:15:18.000Z | gcc-gcc-7_3_0-release/gcc/ada/a-finali.adb | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | null | null | null | gcc-gcc-7_3_0-release/gcc/ada/a-finali.adb | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | 2 | 2020-07-27T00:22:36.000Z | 2021-04-01T09:41:02.000Z | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- A D A . F I N A L I Z A T I O N --
-- --
-- B o d y --
-- --
-- Copyright (C) 1992-2015, 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 does not require a body. We provide a dummy file containing a
-- No_Body pragma so that previous versions of the body (which did exist) will
-- not interfere.
pragma No_Body;
| 69.351351 | 79 | 0.394778 |
c7fafd8ca3c23bdac12021fe2954d2bf766b020c | 531 | ads | Ada | src/fltk-images-rgb-jpeg.ads | micahwelf/FLTK-Ada | 83e0c58ea98e5ede2cbbb158b42eae44196c3ba7 | [
"Unlicense"
] | 1 | 2020-12-18T15:20:13.000Z | 2020-12-18T15:20:13.000Z | src/fltk-images-rgb-jpeg.ads | micahwelf/FLTK-Ada | 83e0c58ea98e5ede2cbbb158b42eae44196c3ba7 | [
"Unlicense"
] | null | null | null | src/fltk-images-rgb-jpeg.ads | micahwelf/FLTK-Ada | 83e0c58ea98e5ede2cbbb158b42eae44196c3ba7 | [
"Unlicense"
] | null | null | null |
package FLTK.Images.RGB.JPEG is
type JPEG_Image is new RGB_Image with private;
type JPEG_Image_Reference (Data : not null access JPEG_Image'Class) is
limited null record with Implicit_Dereference => Data;
package Forge is
function Create
(Filename : in String)
return JPEG_Image;
end Forge;
private
type JPEG_Image is new RGB_Image with null record;
overriding procedure Finalize
(This : in out JPEG_Image);
end FLTK.Images.RGB.JPEG;
| 15.617647 | 74 | 0.661017 |
c740137b3838538a878cbe653dcde85088194338 | 11,411 | ads | Ada | src/babel-files.ads | stcarrez/babel | 727461babd0305344427bf8a56cdae2b68d08caf | [
"Apache-2.0"
] | 1 | 2015-08-05T14:26:52.000Z | 2015-08-05T14:26:52.000Z | src/babel-files.ads | stcarrez/babel | 727461babd0305344427bf8a56cdae2b68d08caf | [
"Apache-2.0"
] | null | null | null | src/babel-files.ads | stcarrez/babel | 727461babd0305344427bf8a56cdae2b68d08caf | [
"Apache-2.0"
] | null | null | null | -----------------------------------------------------------------------
-- bkp-files -- File and directories
-- Copyright (C) 2014 Stephane.Carrez
-- Written by Stephane.Carrez ([email protected])
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.
-----------------------------------------------------------------------
with Ada.Calendar;
with Ada.Strings.Unbounded;
with Ada.Containers.Vectors;
with Ada.Containers.Hashed_Maps;
with Util.Strings;
with Util.Systems.Types;
with Util.Encoders.SHA1;
with ADO;
package Babel.Files is
NO_IDENTIFIER : constant ADO.Identifier := ADO.NO_IDENTIFIER;
subtype File_Identifier is ADO.Identifier;
subtype Directory_Identifier is ADO.Identifier;
subtype File_Size is Long_Long_Integer;
subtype File_Mode is Util.Systems.Types.mode_t;
-- type File_Mode is mod 2**16;
type File_Type is private;
type File_Type_Array is array (Positive range <>) of File_Type;
type File_Type_Array_Access is access all File_Type_Array;
type Directory_Type is private;
type Directory_Type_Array is array (Positive range <>) of Directory_Type;
type Directory_Type_Array_Access is access all Directory_Type_Array;
NO_DIRECTORY : constant Directory_Type;
NO_FILE : constant File_Type;
type Status_Type is mod 2**16;
-- The file was modified.
FILE_MODIFIED : constant Status_Type := 16#0001#;
-- There was some error while processing this file.
FILE_ERROR : constant Status_Type := 16#8000#;
-- The SHA1 signature for the file is known and valid.
FILE_HAS_SHA1 : constant Status_Type := 16#0002#;
-- Allocate a File_Type entry with the given name for the directory.
function Allocate (Name : in String;
Dir : in Directory_Type) return File_Type;
-- Allocate a Directory_Type entry with the given name for the directory.
function Allocate (Name : in String;
Dir : in Directory_Type) return Directory_Type;
type File (Len : Positive) is record
Id : File_Identifier := NO_IDENTIFIER;
Size : File_Size := 0;
Dir : Directory_Type := NO_DIRECTORY;
Mode : File_Mode := 8#644#;
User : Uid_Type := 0;
Group : Gid_Type := 0;
Status : Status_Type := 0;
Date : Ada.Calendar.Time;
SHA1 : Util.Encoders.SHA1.Hash_Array;
Name : aliased String (1 .. Len);
end record;
-- Compare two files on their name and directory.
function "<" (Left, Right : in File_Type) return Boolean;
-- Return true if the file was modified and need a backup.
function Is_Modified (Element : in File_Type) return Boolean;
-- Return true if the file is a new file.
function Is_New (Element : in File_Type) return Boolean;
-- Set the file as modified.
procedure Set_Modified (Element : in File_Type);
-- Set the SHA1 signature that was computed for this file.
-- If the computed signature is different from the current signature,
-- the FILE_MODIFIED flag is set on the file. The FILE_HAS_SHA1 flag
-- is set on the file.
procedure Set_Signature (Element : in File_Type;
Signature : in Util.Encoders.SHA1.Hash_Array);
-- Set the file size. If the new size is different, the FILE_MODIFIED
-- flag is set on the file.
procedure Set_Size (Element : in File_Type;
Size : in File_Size);
-- Set the owner and group of the file.
procedure Set_Owner (Element : in File_Type;
User : in Uid_Type;
Group : in Gid_Type);
-- Set the file modification date.
procedure Set_Date (Element : in File_Type;
Date : in Util.Systems.Types.Timespec);
procedure Set_Date (Element : in File_Type;
Date : in Ada.Calendar.Time);
-- Return the path for the file.
function Get_Path (Element : in File_Type) return String;
-- Return the path for the directory.
function Get_Path (Element : in Directory_Type) return String;
-- Return the SHA1 signature computed for the file.
function Get_SHA1 (Element : in File_Type) return String;
-- Return the file size.
function Get_Size (Element : in File_Type) return File_Size;
-- Return the file modification date.
function Get_Date (Element : in File_Type) return Ada.Calendar.Time;
-- Return the user uid.
function Get_User (Element : in File_Type) return Uid_Type;
-- Return the group gid.
function Get_Group (Element : in File_Type) return Gid_Type;
-- Return the file unix mode.
function Get_Mode (Element : in File_Type) return File_Mode;
type File_Container is limited interface;
-- Add the file with the given name in the container.
procedure Add_File (Into : in out File_Container;
Element : in File_Type) is abstract;
-- Add the directory with the given name in the container.
procedure Add_Directory (Into : in out File_Container;
Element : in Directory_Type) is abstract;
-- Create a new file instance with the given name in the container.
function Create (Into : in File_Container;
Name : in String) return File_Type is abstract;
-- Create a new directory instance with the given name in the container.
function Create (Into : in File_Container;
Name : in String) return Directory_Type is abstract;
-- Find the file with the given name in this file container.
-- Returns NO_FILE if the file was not found.
function Find (From : in File_Container;
Name : in String) return File_Type is abstract;
-- Find the directory with the given name in this file container.
-- Returns NO_DIRECTORY if the directory was not found.
function Find (From : in File_Container;
Name : in String) return Directory_Type is abstract;
-- Set the directory object associated with the container.
procedure Set_Directory (Into : in out File_Container;
Directory : in Directory_Type) is abstract;
-- Execute the Process procedure on each directory found in the container.
procedure Each_Directory (Container : in File_Container;
Process : not null access
procedure (Dir : in Directory_Type)) is abstract;
-- Execute the Process procedure on each file found in the container.
procedure Each_File (Container : in File_Container;
Process : not null access
procedure (F : in File_Type)) is abstract;
type Default_Container is new File_Container with private;
-- Add the file with the given name in the container.
overriding
procedure Add_File (Into : in out Default_Container;
Element : in File_Type);
-- Add the directory with the given name in the container.
overriding
procedure Add_Directory (Into : in out Default_Container;
Element : in Directory_Type);
-- Create a new file instance with the given name in the container.
overriding
function Create (Into : in Default_Container;
Name : in String) return File_Type;
-- Create a new directory instance with the given name in the container.
overriding
function Create (Into : in Default_Container;
Name : in String) return Directory_Type;
-- Find the file with the given name in this file container.
-- Returns NO_FILE if the file was not found.
overriding
function Find (From : in Default_Container;
Name : in String) return File_Type;
-- Find the directory with the given name in this file container.
-- Returns NO_DIRECTORY if the directory was not found.
overriding
function Find (From : in Default_Container;
Name : in String) return Directory_Type;
-- Set the directory object associated with the container.
overriding
procedure Set_Directory (Into : in out Default_Container;
Directory : in Directory_Type);
-- Execute the Process procedure on each directory found in the container.
overriding
procedure Each_Directory (Container : in Default_Container;
Process : not null access
procedure (Dir : in Directory_Type));
-- Execute the Process procedure on each file found in the container.
overriding
procedure Each_File (Container : in Default_Container;
Process : not null access
procedure (F : in File_Type));
private
type Directory;
type String_Access is access all String;
type File_Type is access all File;
type Directory_Type is access all Directory;
package File_Maps is new
Ada.Containers.Hashed_Maps (Key_Type => Util.Strings.Name_Access,
Element_Type => File_Type,
Hash => Util.Strings.Hash,
Equivalent_Keys => Util.Strings.Equivalent_Keys,
"=" => "=");
package Directory_Maps is new
Ada.Containers.Hashed_Maps (Key_Type => Util.Strings.Name_Access,
Element_Type => Directory_Type,
Hash => Util.Strings.Hash,
Equivalent_Keys => Util.Strings.Equivalent_Keys,
"=" => "=");
type Directory is record
Id : Directory_Identifier := NO_IDENTIFIER;
Parent : Directory_Type;
Mode : File_Mode := 8#755#;
User : Uid_Type := 0;
Group : Gid_Type := 0;
Files : File_Maps.Map;
Children : Directory_Maps.Map;
-- Children : Directory_Type_Array_Access;
Name_Pos : Natural := 0;
Name : String_Access;
end record;
package File_Vectors is new
Ada.Containers.Vectors (Index_Type => Positive,
Element_Type => File_Type,
"=" => "=");
package Directory_Vectors is new
Ada.Containers.Vectors (Index_Type => Positive,
Element_Type => Directory_Type,
"=" => "=");
subtype Directory_Vector is Directory_Vectors.Vector;
type Default_Container is new Babel.Files.File_Container with record
Current : Directory_Type;
Files : File_Vectors.Vector;
Dirs : Directory_Vectors.Vector;
end record;
NO_DIRECTORY : constant Directory_Type := null;
NO_FILE : constant File_Type := null;
end Babel.Files;
| 39.621528 | 81 | 0.629831 |
2f219c1238e3272cec88e4cf4ecca36f7e933f1a | 11,743 | ads | Ada | src/dnscatcher/dns/dnscatcher-dns.ads | DNSCatcher/DNSCatcher | e3865fde5ae4bd5f833210150a9d30668a051d40 | [
"MIT"
] | 4 | 2019-09-23T23:55:34.000Z | 2020-05-02T07:25:32.000Z | src/dnscatcher/dns/dnscatcher-dns.ads | DNSCatcher/DNSCatcher | e3865fde5ae4bd5f833210150a9d30668a051d40 | [
"MIT"
] | null | null | null | src/dnscatcher/dns/dnscatcher-dns.ads | DNSCatcher/DNSCatcher | e3865fde5ae4bd5f833210150a9d30668a051d40 | [
"MIT"
] | null | null | null | -- Copyright 2019 Michael Casadevall <[email protected]>
--
-- Permission is hereby granted, free of charge, to any person obtaining a copy
-- of this software and associated documentation files (the "Software"), to
-- deal in the Software without restriction, including without limitation the
-- rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
-- sell copies of the Software, and to permit persons to whom the Software is
-- furnished to do so, subject to the following conditions:
--
-- The above copyright notice and this permission notice shall be included in
-- all copies or substantial portions of the Software.
--
-- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
-- THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
-- FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
-- DEALINGS IN THE SOFTWARE.
-- @summary
-- The DNS subpackage covers all basic functionality in regards to handling the
-- DNS wire protocol.
--
-- @description
-- Included in this package are the following bits of information:
--
-- - Mapping of RRTypes and Classes to/from Integers - DNS client
-- implementation - DNS server implementation - RData processor and encoder -
-- Packet processor (including handling DNS compression) - Other constants and
-- constraints included by DNS
--
package DNSCatcher.DNS is
-- IANA defined RRTypes.
type RR_Types is
(A, -- An IPv4 Address
NS, -- Reference to another nameserver (encoded as a domain name)
MD, -- Mail Destination - Obsolete (RFC 973)
MF, -- Mail Forwarder - Obsolete
CNAME, -- Canonical Name Record - Alias of of domain name to another
SOA, -- Start of Authority - Defines the authoritative information of a DNS zone
MB, -- Mailbox Domain Name - Obsolete (RFC883)
MG, -- Mail Group Member - Obsolete (RFC883)
MR, -- Mail Rename Domain - Obsolete (RFC883)
DNS_NULL, -- NULL RRType - Called DNS_NULL due to keyword conflict in Ada
WKS, -- Well Known Service - Obsolete
PTR, -- Reverse lookup Information for a zone
HINFO, -- Host Information
MINFO, -- Mailbox or Mailing List Information
MX, -- Mail eXchange
TXT, -- Text Record
RP, -- Responsible Person - RFC1183
AFSDB, -- AFS Database Location
X25, -- X.25 PSDN address
ISDN, -- ISDN address
RT, -- Route Through (RFC1183)
NSAP, -- for NSAP address, NSAP style A record
NSAP_PTR, -- for domain name pointer, NSAP style
SIG, -- security signature
KEY, -- security key
PX, -- X.400 mail mapping information
GPOS, -- Geographical Position
AAAA, -- IPv6 location
LOC, -- Location Information
NXT, -- Next Domain (Obsolete)
EID, -- Endpoint Identifier
NIMLOC, -- Nimrod Locator
SRV, -- Server/Service Selection
ATMA, -- ATM Address
NAPTR, -- Naming Authority Pointer
KX, -- Kex Exchanger
CERT, -- Certificate Record
A6, -- Old-style IPv6 Record
DNAME, -- DNAME
SINK, -- Kitchen Sink
OPT, -- EDNS Special Record
APL, -- APL
DS, -- Delegation Signer
SSHFP, -- SSH Key Fingerprint
IPSECKEY, -- IPSEC Key
RRSIG, -- Resource Record SIGnature
NSEC, -- Next SECure
DNSKEY, -- DNSSEC Public Key
DHCID, -- DHCID
NSEC3, -- Next SECure Version 3
NSEC3PARAM, -- NSEC3 Parameters
TLSA, -- DANE Record Implementation
SMIMEA, -- S/MIME Certificate Assoication
HIP, -- Host Identity Protocol
NINFO, -- NINFO
RKEY, -- RKEY
TALINK, -- Trust Anchor Link
CDS, -- Child DS
CDNSKEY, -- DNSKEY(s) child wants in parent DS
OPENPGPKEY, -- OpenPGP Key
CSYNC, -- Child-To-Parent Sync
ZONEMD, -- Message Digest for DNS Zone
SPF, -- SPF (RFC7208)
UINFO, -- User Info (Reserved)
UID, -- User Identifier (Reversed)
GID, -- Group Info (Reserved)
UNSPEC, -- Reversed
NID, -- RFC6742
L32, -- RFC6742
L64, -- RFC6742
LP, -- RFC6742
EUI48, -- EUI-48 Address
EUI64, -- EUI-64 Address
TKEY, -- Transaction Key
TSIG, -- Transaction Signature
IXFR, -- Incremental Zone Transfer
AXFR, -- Zone Transfer
MAILB, -- Request for mailbox related records (MB/MG/MR)
MAILA, -- Request for mail agent RRs (MD/MF)
WILDCARD, -- Request for all records ("*")
URI, -- URI
CAA, -- Certificate Authority Restriction
AVC, -- Application Visibility and Control
DOA, -- Digital Object Architecture
AMTRELAY, -- Automatic Multicast Tunneling Relay
TA, -- DNSSEC Trust Authorities
DLV -- DNSSEC Lookaside Validation
);
--!pp off
for RR_Types use (A => 1,
NS => 2,
MD => 3,
MF => 4,
CNAME => 5,
SOA => 6,
MB => 7,
MG => 8,
MR => 9,
DNS_NULL => 10,
WKS => 11,
PTR => 12,
HINFO => 13,
MINFO => 14,
MX => 15,
TXT => 16,
RP => 17,
AFSDB => 18,
X25 => 19,
ISDN => 20,
RT => 21,
NSAP => 22,
NSAP_PTR => 23,
SIG => 24,
KEY => 25,
PX => 26,
GPOS => 27,
AAAA => 28,
LOC => 29,
NXT => 30,
EID => 31,
NIMLOC => 32,
SRV => 33,
ATMA => 34,
NAPTR => 35,
KX => 36,
CERT => 37,
A6 => 38,
DNAME => 39,
SINK => 40,
OPT => 41,
APL => 42,
DS => 43,
SSHFP => 44,
IPSECKEY => 45,
RRSIG => 46,
NSEC => 47,
DNSKEY => 48,
DHCID => 49,
NSEC3 => 50,
NSEC3PARAM => 51,
TLSA => 52,
SMIMEA => 53,
HIP => 55,
NINFO => 56,
RKEY => 57,
TALINK => 58,
CDS => 59,
CDNSKEY => 60,
OPENPGPKEY => 61,
CSYNC => 62,
ZONEMD => 63,
SPF => 99,
UINFO => 100,
UID => 101,
GID => 102,
UNSPEC => 103,
NID => 104,
L32 => 105,
L64 => 106,
LP => 107,
EUI48 => 108,
EUI64 => 109,
TKEY => 249,
TSIG => 250,
IXFR => 251,
AXFR => 252,
MAILB => 253,
MAILA => 254,
WILDCARD => 255,
URI => 256,
CAA => 257,
AVC => 258,
DOA => 259,
AMTRELAY => 260,
TA => 32768,
DLV => 32769);
--!pp on
-- Helper function to convert RR_Type to string
--
-- @value RR_Type RR_Type to convert
function To_String
(RR_Type : RR_Types)
return String;
type Classes is
(INternet, -- INternet Class
CS, -- CSNet Class
CH, -- ChaosNet Class
HS, -- Hesiod
QCLASS_NONE, -- QCLASS None
QCLASS_ANY -- QClass (Any)
);
--!pp off
for Classes use (INternet => 1,
CS => 2,
CH => 3,
HS => 4,
QCLASS_NONE => 254,
QCLASS_ANY => 255);
--!pp on
-- Helper function to convert DNS_Classes to String
--
-- @value DNS_Class Class to convert
function To_String
(DNS_Class : Classes)
return String;
-- DNS Return Codes
type RCodes is
(NoError, -- No Error
FormErr, -- Format Error
ServFail, -- Server Failure
NXDomain, -- Non-Existent Domain
NotImp, -- Not Implemented
Refused, -- Query Refused
YXDomain, -- Name Exists when it shouldn't
YXRRSet, -- RRSet Exists when it shouldn't
NXRRSet, -- RRSet doesn't exist and it should
NotAuth, -- Server is not authoritive for zone
NotZone, -- Not authorized
BADVERS, -- Bad OPT version
-- 16 can also be BADSIG but that's not trivial to represent
BADKEY, -- Key not recognized
BADTIME, -- Signature out of time window
BADMODE, -- Bad TKEY Mode
BADNAME, -- Duplicate key name
BADALG, -- Algorithm not supported
BADTRUNC, -- Bad truncation
BADCOOKIE -- Bad/missing server cookie
);
--!pp off
for RCodes use (NoError => 0,
FormErr => 1,
ServFail => 2,
NXDomain => 3,
NotImp => 4,
Refused => 5,
YXDomain => 6,
YXRRSet => 7,
NXRRSet => 8,
NotAuth => 9,
NotZone => 10,
BADVERS => 16,
BADKEY => 17,
BADTIME => 18,
BADMODE => 19,
BADNAME => 20,
BADALG => 21,
BADTRUNC => 22,
BADCOOKIE => 23);
--!pp on
-- Casing and spelling comes directly from IANA reserved list
type EDNS0_Option_Codes is
(LLQ, -- Reserved (on hold)
UL, -- Reserved (on hold)
NSID, -- Standard (RFC5001)
DAU, -- Standard (RFC6975)
DHU, -- Standard (RFC6975)
N3U, -- Standard (RFC6975)
edns_client_subnet, -- Optional (RFC7314)
EDNS_EXPIRE, -- Optional (RFC7314)
COOKIE, -- Standard (RFC7873)
edns_tcp_keepalive, -- Standard (RFC7828)
Padding, -- Standard (RFC7830)
CHAIN, -- Standard (RFC7901)
edns_key_tag, -- Optional (RFC8145)
EDNS_Client_Tag, -- Optional (draft)
EDNS_Server_Tag, -- Optional (draft)
DeviceID -- Optional (draft)
);
--!pp off
for EDNS0_Option_Codes use (LLQ => 1,
UL => 2,
NSID => 3,
DAU => 5,
DHU => 6,
N3U => 7,
edns_client_subnet => 8,
EDNS_EXPIRE => 9,
COOKIE => 10,
edns_tcp_keepalive => 11,
Padding => 12,
CHAIN => 13,
edns_key_tag => 14,
EDNS_Client_Tag => 16,
EDNS_Server_Tag => 17,
DeviceID => 26946);
--!pp on
end DNSCatcher.DNS;
| 35.264264 | 86 | 0.480286 |
58beb00d5721e49291b659e3dbd81812bc188517 | 14,417 | adb | Ada | src/gnat/elists.adb | Letractively/ada-gen | d06d03821057f9177f2350e32dd09e467df08612 | [
"Apache-2.0"
] | null | null | null | src/gnat/elists.adb | Letractively/ada-gen | d06d03821057f9177f2350e32dd09e467df08612 | [
"Apache-2.0"
] | null | null | null | src/gnat/elists.adb | Letractively/ada-gen | d06d03821057f9177f2350e32dd09e467df08612 | [
"Apache-2.0"
] | null | null | null | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- E L I S T S --
-- --
-- B o d y --
-- --
-- Copyright (C) 1992-2010, 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. --
-- --
------------------------------------------------------------------------------
-- WARNING: There is a C version of this package. Any changes to this
-- source file must be properly reflected in the C header a-elists.h.
with Alloc;
with Debug; use Debug;
with Output; use Output;
with Table;
package body Elists is
-------------------------------------
-- Implementation of Element Lists --
-------------------------------------
-- Element lists are composed of three types of entities. The element
-- list header, which references the first and last elements of the
-- list, the elements themselves which are singly linked and also
-- reference the nodes on the list, and finally the nodes themselves.
-- The following diagram shows how an element list is represented:
-- +----------------------------------------------------+
-- | +------------------------------------------+ |
-- | | | |
-- V | V |
-- +-----|--+ +-------+ +-------+ +-------+ |
-- | Elmt | | 1st | | 2nd | | Last | |
-- | List |--->| Elmt |--->| Elmt ---...-->| Elmt ---+
-- | Header | | | | | | | | | |
-- +--------+ +---|---+ +---|---+ +---|---+
-- | | |
-- V V V
-- +-------+ +-------+ +-------+
-- | | | | | |
-- | Node1 | | Node2 | | Node3 |
-- | | | | | |
-- +-------+ +-------+ +-------+
-- The list header is an entry in the Elists table. The values used for
-- the type Elist_Id are subscripts into this table. The First_Elmt field
-- (Lfield1) points to the first element on the list, or to No_Elmt in the
-- case of an empty list. Similarly the Last_Elmt field (Lfield2) points to
-- the last element on the list or to No_Elmt in the case of an empty list.
-- The elements themselves are entries in the Elmts table. The Next field
-- of each entry points to the next element, or to the Elist header if this
-- is the last item in the list. The Node field points to the node which
-- is referenced by the corresponding list entry.
-------------------------
-- Element List Tables --
-------------------------
type Elist_Header is record
First : Elmt_Id;
Last : Elmt_Id;
end record;
package Elists is new Table.Table (
Table_Component_Type => Elist_Header,
Table_Index_Type => Elist_Id'Base,
Table_Low_Bound => First_Elist_Id,
Table_Initial => Alloc.Elists_Initial,
Table_Increment => Alloc.Elists_Increment,
Table_Name => "Elists");
type Elmt_Item is record
Node : Node_Or_Entity_Id;
Next : Union_Id;
end record;
package Elmts is new Table.Table (
Table_Component_Type => Elmt_Item,
Table_Index_Type => Elmt_Id'Base,
Table_Low_Bound => First_Elmt_Id,
Table_Initial => Alloc.Elmts_Initial,
Table_Increment => Alloc.Elmts_Increment,
Table_Name => "Elmts");
-----------------
-- Append_Elmt --
-----------------
procedure Append_Elmt (N : Node_Or_Entity_Id; To : Elist_Id) is
L : constant Elmt_Id := Elists.Table (To).Last;
begin
Elmts.Increment_Last;
Elmts.Table (Elmts.Last).Node := N;
Elmts.Table (Elmts.Last).Next := Union_Id (To);
if L = No_Elmt then
Elists.Table (To).First := Elmts.Last;
else
Elmts.Table (L).Next := Union_Id (Elmts.Last);
end if;
Elists.Table (To).Last := Elmts.Last;
if Debug_Flag_N then
Write_Str ("Append new element Elmt_Id = ");
Write_Int (Int (Elmts.Last));
Write_Str (" to list Elist_Id = ");
Write_Int (Int (To));
Write_Str (" referencing Node_Or_Entity_Id = ");
Write_Int (Int (N));
Write_Eol;
end if;
end Append_Elmt;
------------------------
-- Append_Unique_Elmt --
------------------------
procedure Append_Unique_Elmt (N : Node_Or_Entity_Id; To : Elist_Id) is
Elmt : Elmt_Id;
begin
Elmt := First_Elmt (To);
loop
if No (Elmt) then
Append_Elmt (N, To);
return;
elsif Node (Elmt) = N then
return;
else
Next_Elmt (Elmt);
end if;
end loop;
end Append_Unique_Elmt;
--------------------
-- Elists_Address --
--------------------
function Elists_Address return System.Address is
begin
return Elists.Table (First_Elist_Id)'Address;
end Elists_Address;
-------------------
-- Elmts_Address --
-------------------
function Elmts_Address return System.Address is
begin
return Elmts.Table (First_Elmt_Id)'Address;
end Elmts_Address;
----------------
-- First_Elmt --
----------------
function First_Elmt (List : Elist_Id) return Elmt_Id is
begin
pragma Assert (List > Elist_Low_Bound);
return Elists.Table (List).First;
end First_Elmt;
----------------
-- Initialize --
----------------
procedure Initialize is
begin
Elists.Init;
Elmts.Init;
end Initialize;
-----------------------
-- Insert_Elmt_After --
-----------------------
procedure Insert_Elmt_After (N : Node_Or_Entity_Id; Elmt : Elmt_Id) is
Nxt : constant Union_Id := Elmts.Table (Elmt).Next;
begin
pragma Assert (Elmt /= No_Elmt);
Elmts.Increment_Last;
Elmts.Table (Elmts.Last).Node := N;
Elmts.Table (Elmts.Last).Next := Nxt;
Elmts.Table (Elmt).Next := Union_Id (Elmts.Last);
if Nxt in Elist_Range then
Elists.Table (Elist_Id (Nxt)).Last := Elmts.Last;
end if;
end Insert_Elmt_After;
------------------------
-- Is_Empty_Elmt_List --
------------------------
function Is_Empty_Elmt_List (List : Elist_Id) return Boolean is
begin
return Elists.Table (List).First = No_Elmt;
end Is_Empty_Elmt_List;
-------------------
-- Last_Elist_Id --
-------------------
function Last_Elist_Id return Elist_Id is
begin
return Elists.Last;
end Last_Elist_Id;
---------------
-- Last_Elmt --
---------------
function Last_Elmt (List : Elist_Id) return Elmt_Id is
begin
return Elists.Table (List).Last;
end Last_Elmt;
------------------
-- Last_Elmt_Id --
------------------
function Last_Elmt_Id return Elmt_Id is
begin
return Elmts.Last;
end Last_Elmt_Id;
----------
-- Lock --
----------
procedure Lock is
begin
Elists.Locked := True;
Elmts.Locked := True;
Elists.Release;
Elmts.Release;
end Lock;
-------------------
-- New_Elmt_List --
-------------------
function New_Elmt_List return Elist_Id is
begin
Elists.Increment_Last;
Elists.Table (Elists.Last).First := No_Elmt;
Elists.Table (Elists.Last).Last := No_Elmt;
if Debug_Flag_N then
Write_Str ("Allocate new element list, returned ID = ");
Write_Int (Int (Elists.Last));
Write_Eol;
end if;
return Elists.Last;
end New_Elmt_List;
---------------
-- Next_Elmt --
---------------
function Next_Elmt (Elmt : Elmt_Id) return Elmt_Id is
N : constant Union_Id := Elmts.Table (Elmt).Next;
begin
if N in Elist_Range then
return No_Elmt;
else
return Elmt_Id (N);
end if;
end Next_Elmt;
procedure Next_Elmt (Elmt : in out Elmt_Id) is
begin
Elmt := Next_Elmt (Elmt);
end Next_Elmt;
--------
-- No --
--------
function No (List : Elist_Id) return Boolean is
begin
return List = No_Elist;
end No;
function No (Elmt : Elmt_Id) return Boolean is
begin
return Elmt = No_Elmt;
end No;
----------
-- Node --
----------
function Node (Elmt : Elmt_Id) return Node_Or_Entity_Id is
begin
if Elmt = No_Elmt then
return Empty;
else
return Elmts.Table (Elmt).Node;
end if;
end Node;
----------------
-- Num_Elists --
----------------
function Num_Elists return Nat is
begin
return Int (Elmts.Last) - Int (Elmts.First) + 1;
end Num_Elists;
------------------
-- Prepend_Elmt --
------------------
procedure Prepend_Elmt (N : Node_Or_Entity_Id; To : Elist_Id) is
F : constant Elmt_Id := Elists.Table (To).First;
begin
Elmts.Increment_Last;
Elmts.Table (Elmts.Last).Node := N;
if F = No_Elmt then
Elists.Table (To).Last := Elmts.Last;
Elmts.Table (Elmts.Last).Next := Union_Id (To);
else
Elmts.Table (Elmts.Last).Next := Union_Id (F);
end if;
Elists.Table (To).First := Elmts.Last;
end Prepend_Elmt;
-------------
-- Present --
-------------
function Present (List : Elist_Id) return Boolean is
begin
return List /= No_Elist;
end Present;
function Present (Elmt : Elmt_Id) return Boolean is
begin
return Elmt /= No_Elmt;
end Present;
-----------------
-- Remove_Elmt --
-----------------
procedure Remove_Elmt (List : Elist_Id; Elmt : Elmt_Id) is
Nxt : Elmt_Id;
Prv : Elmt_Id;
begin
Nxt := Elists.Table (List).First;
-- Case of removing only element in the list
if Elmts.Table (Nxt).Next in Elist_Range then
pragma Assert (Nxt = Elmt);
Elists.Table (List).First := No_Elmt;
Elists.Table (List).Last := No_Elmt;
-- Case of removing the first element in the list
elsif Nxt = Elmt then
Elists.Table (List).First := Elmt_Id (Elmts.Table (Nxt).Next);
-- Case of removing second or later element in the list
else
loop
Prv := Nxt;
Nxt := Elmt_Id (Elmts.Table (Prv).Next);
exit when Nxt = Elmt
or else Elmts.Table (Nxt).Next in Elist_Range;
end loop;
pragma Assert (Nxt = Elmt);
Elmts.Table (Prv).Next := Elmts.Table (Nxt).Next;
if Elmts.Table (Prv).Next in Elist_Range then
Elists.Table (List).Last := Prv;
end if;
end if;
end Remove_Elmt;
----------------------
-- Remove_Last_Elmt --
----------------------
procedure Remove_Last_Elmt (List : Elist_Id) is
Nxt : Elmt_Id;
Prv : Elmt_Id;
begin
Nxt := Elists.Table (List).First;
-- Case of removing only element in the list
if Elmts.Table (Nxt).Next in Elist_Range then
Elists.Table (List).First := No_Elmt;
Elists.Table (List).Last := No_Elmt;
-- Case of at least two elements in list
else
loop
Prv := Nxt;
Nxt := Elmt_Id (Elmts.Table (Prv).Next);
exit when Elmts.Table (Nxt).Next in Elist_Range;
end loop;
Elmts.Table (Prv).Next := Elmts.Table (Nxt).Next;
Elists.Table (List).Last := Prv;
end if;
end Remove_Last_Elmt;
------------------
-- Replace_Elmt --
------------------
procedure Replace_Elmt (Elmt : Elmt_Id; New_Node : Node_Or_Entity_Id) is
begin
Elmts.Table (Elmt).Node := New_Node;
end Replace_Elmt;
---------------
-- Tree_Read --
---------------
procedure Tree_Read is
begin
Elists.Tree_Read;
Elmts.Tree_Read;
end Tree_Read;
----------------
-- Tree_Write --
----------------
procedure Tree_Write is
begin
Elists.Tree_Write;
Elmts.Tree_Write;
end Tree_Write;
------------
-- Unlock --
------------
procedure Unlock is
begin
Elists.Locked := False;
Elmts.Locked := False;
end Unlock;
end Elists;
| 29.243408 | 79 | 0.486648 |
fbb9c378c43fac0bf5e509fe362d9f42b1183e6e | 7,641 | adb | Ada | src/skill-field_declarations.adb | skill-lang/adaCommon | b27bccb8fa1c8b299ab98a82741a648183e41d3c | [
"BSD-3-Clause"
] | null | null | null | src/skill-field_declarations.adb | skill-lang/adaCommon | b27bccb8fa1c8b299ab98a82741a648183e41d3c | [
"BSD-3-Clause"
] | null | null | null | src/skill-field_declarations.adb | skill-lang/adaCommon | b27bccb8fa1c8b299ab98a82741a648183e41d3c | [
"BSD-3-Clause"
] | null | null | null | -- ___ _ ___ _ _ --
-- / __| |/ (_) | | Common SKilL implementation --
-- \__ \ ' <| | | |__ field handling in skill --
-- |___/_|\_\_|_|____| by: Timm Felden --
-- --
pragma Ada_2012;
with Skill.Errors;
with Skill.Field_Types;
with Skill.Internal.Parts;
with Skill.Iterators.Type_Order;
with Interfaces;
with Skill.Types.Pools;
with Ada.Unchecked_Conversion;
with Ada.Unchecked_Deallocation;
package body Skill.Field_Declarations is
procedure Delete_Chunk (This : Chunk_Entry) is
procedure Delete is new Ada.Unchecked_Deallocation
(Chunk_Entry_T,
Chunk_Entry);
D : Chunk_Entry := This;
begin
This.C.Free;
This.Input.Free;
Delete (D);
end Delete_Chunk;
function Name
(This : access Field_Declaration_T'Class) return Types.String_Access is
(This.Name);
function Owner
(This : access Field_Declaration_T'Class) return Skill.Types.Pools.Pool
is
function Convert is new Ada.Unchecked_Conversion
(Owner_T,
Skill.Types.Pools.Pool);
begin
return Convert (This.Owner);
end Owner;
function Check (This : access Field_Declaration_T) return Boolean is
Iter : aliased Skill.Iterators.Type_Order.Iterator;
RC : Skill.Field_Restrictions.Checkable;
begin
if This.Restrictions.Is_Empty then
return True;
end if;
for R of This.Restrictions loop
if R.all in Skill.Field_Restrictions.Checkable_T'Class then
RC := Skill.Field_Restrictions.Checkable (R);
Iter.Init (This.Owner.To_Pool);
while Iter.Has_Next loop
if not RC.Check
(Iter.Next.Dynamic.Reflective_Get
(Skill.Field_Declarations.Field_Declaration (This)))
then
return False;
end if;
end loop;
end if;
end loop;
return True;
end Check;
function Check (This : access Lazy_Field_T) return Boolean is
Iter : aliased Skill.Iterators.Type_Order.Iterator;
RC : Skill.Field_Restrictions.Checkable;
begin
if This.Restrictions.Is_Empty then
return True;
end if;
This.Ensure_Is_Loaded;
for R of This.Restrictions loop
if R.all in Skill.Field_Restrictions.Checkable_T'Class then
RC := Skill.Field_Restrictions.Checkable (R);
Iter.Init (This.Owner.To_Pool);
while Iter.Has_Next loop
if not RC.Check (This.Data.Element (Iter.Next)) then
return False;
end if;
end loop;
end if;
end loop;
return True;
end Check;
function Hash
(This : Field_Declaration) return Ada.Containers.Hash_Type is
(Ada.Containers.Hash_Type
(37 * This.Index + 31337 * This.Owner.Pool_Offset));
function Field_ID
(This : access Field_Declaration_T'Class) return Natural is
(This.Index);
procedure Add_Chunk
(This : access Field_Declaration_T'Class;
C : Skill.Internal.Parts.Chunk)
is
begin
This.Data_Chunks.Append (new Chunk_Entry_T'(C, null));
end Add_Chunk;
function Add_Offset_To_Last_Chunk
(This : access Field_Declaration_T'Class;
Input : Skill.Streams.Reader.Input_Stream;
File_Offset : Types.v64) return Types.v64
is
CE : Chunk_Entry := This.Data_Chunks.Last_Element;
C : Skill.Internal.Parts.Chunk := CE.C;
use type Interfaces.Integer_64;
begin
C.First := C.First + File_Offset;
C.Last := C.Last + File_Offset;
CE.Input := Input.Map (0, C.First, C.Last);
return C.Last;
end Add_Offset_To_Last_Chunk;
function Make_Lazy_Field
(Owner : Owner_T;
ID : Natural;
T : Field_Types.Field_Type;
Name : Skill.Types.String_Access;
Restrictions : Field_Restrictions.Vector) return Lazy_Field
is
begin
return new Lazy_Field_T'
(Data_Chunks => Chunk_List_P.Empty_Vector,
T => T,
Name => Name,
Index => ID,
Owner => Owner,
Future_Offset => 0,
Restrictions => Restrictions,
Data => Data_P.Empty_Map,
Parts => Part_P.Empty_Vector);
end Make_Lazy_Field;
procedure Ensure_Is_Loaded (This : access Lazy_Field_T) is
begin
if not This.Is_Loaded then
This.Load;
end if;
end Ensure_Is_Loaded;
procedure Read (This : access Lazy_Field_T; CE : Chunk_Entry) is
begin
This.Parts.Append (CE);
end Read;
procedure Offset (This : access Lazy_Field_T) is
use type Skill.Types.v64;
use type Skill.Types.Uv64;
Rang : constant Skill.Internal.Parts.Block :=
This.Owner.Blocks.Last_Element;
Data : constant Skill.Types.Annotation_Array := This.Owner.Base.Data;
Result : Skill.Types.v64 := 0;
Low : constant Natural := Natural (Rang.BPO);
High : constant Natural := Natural (Rang.BPO + Rang.Dynamic_Count);
begin
This.Ensure_Is_Loaded;
for I in Low + 1 .. High loop
Result := Result + This.T.Offset_Box (This.Data.Element (Data (I)));
end loop;
This.Future_Offset := Result;
end Offset;
procedure Write
(This : access Lazy_Field_T;
Output : Streams.Writer.Sub_Stream)
is
Rang : constant Skill.Internal.Parts.Block :=
This.Owner.Blocks.Last_Element;
Data : constant Skill.Types.Annotation_Array := This.Owner.Base.Data;
Low : constant Natural := Natural (Rang.BPO);
High : constant Natural := Natural (Rang.BPO + Rang.Dynamic_Count);
begin
for I in Low + 1 .. High loop
This.T.Write_Box (Output, This.Data (Data (I)));
end loop;
end Write;
procedure Free (This : access Lazy_Field_T) is
type T is access all Lazy_Field_T;
procedure Delete is new Ada.Unchecked_Deallocation (Lazy_Field_T, T);
D : T := T (This);
begin
This.Data_Chunks.Foreach (Delete_Chunk'Access);
This.Data_Chunks.Free;
Delete (D);
end Free;
procedure Load (This : access Lazy_Field_T'Class) is
D : Types.Annotation_Array := This.Owner.Base.Data;
B : Internal.Parts.Block;
begin
for Ce of This.Parts loop
if Ce.C.all in Skill.Internal.Parts.Simple_Chunk then
for I in
Skill.Internal.Parts.Simple_Chunk_X (Ce.C).BPO + 1 ..
Skill.Internal.Parts.Simple_Chunk_X (Ce.C).BPO + Ce.C.Count
loop
This.Data.Include (D (I), This.T.Read_Box (Ce.Input.To));
end loop;
else
--case bci : BulkChunk ⇒
for I in
0 .. Skill.Internal.Parts.Bulk_Chunk_X (Ce.C).Block_Count - 1
loop
B := This.Owner.Blocks.Element (I);
for I in B.BPO + 1 .. B.BPO + B.Dynamic_Count loop
This.Data.Include (D (I), This.T.Read_Box (Ce.Input.To));
end loop;
end loop;
end if;
end loop;
This.Parts.Clear;
exception
when E : others =>
raise Skill.Errors.Skill_Error with "failed to parse lazy field";
end Load;
end Skill.Field_Declarations;
| 33.221739 | 80 | 0.584217 |
3dfe4d81985be9704f7ab0df1482c796a4a286b3 | 4,773 | ads | Ada | source/tasking/machine-pc-freebsd/s-synobj.ads | ytomino/drake | 4e4bdcd8b8e23a11a29b31d3a8861fdf60090ea2 | [
"MIT"
] | 33 | 2015-04-04T09:19:36.000Z | 2021-11-10T05:33:34.000Z | source/tasking/machine-pc-freebsd/s-synobj.ads | ytomino/drake | 4e4bdcd8b8e23a11a29b31d3a8861fdf60090ea2 | [
"MIT"
] | 8 | 2017-11-14T13:05:07.000Z | 2018-08-09T15:28:49.000Z | source/tasking/machine-pc-linux-gnu/s-synobj.ads | ytomino/drake | 4e4bdcd8b8e23a11a29b31d3a8861fdf60090ea2 | [
"MIT"
] | 9 | 2015-02-03T17:09:53.000Z | 2021-11-12T01:16:05.000Z | pragma License (Unrestricted);
-- implementation unit specialized for POSIX (Darwin, FreeBSD, or Linux)
private with C.pthread;
package System.Synchronous_Objects is
pragma Preelaborate;
-- mutex
type Mutex is limited private;
procedure Initialize (Object : in out Mutex);
procedure Finalize (Object : in out Mutex);
procedure Enter (Object : in out Mutex);
procedure Leave (Object : in out Mutex);
-- condition variable (pthread only)
type Condition_Variable is limited private;
procedure Initialize (Object : in out Condition_Variable);
procedure Finalize (Object : in out Condition_Variable);
procedure Notify_All (Object : in out Condition_Variable);
procedure Wait (
Object : in out Condition_Variable;
Mutex : in out Synchronous_Objects.Mutex);
-- queue
type Mutex_Access is access all Mutex;
for Mutex_Access'Storage_Size use 0;
type Queue_Node is limited private;
type Queue_Node_Access is access all Queue_Node;
type Queue_Filter is access function (
Item : not null Queue_Node_Access;
Params : Address)
return Boolean;
type Queue is limited private;
procedure Initialize (
Object : in out Queue;
Mutex : not null Mutex_Access);
procedure Finalize (Object : in out Queue);
function Count (
Object : Queue;
Params : Address;
Filter : Queue_Filter)
return Natural;
function Unsynchronized_Count (
Object : Queue;
Params : Address;
Filter : Queue_Filter)
return Natural;
function Canceled (Object : Queue) return Boolean;
procedure Cancel (
Object : in out Queue;
Cancel_Node : access procedure (X : in out Queue_Node_Access));
procedure Unsynchronized_Prepend (
Object : in out Queue;
Item : not null Queue_Node_Access;
Canceled : out Boolean);
procedure Add (
Object : in out Queue;
Item : not null Queue_Node_Access;
Canceled : out Boolean);
procedure Take (
Object : in out Queue;
Item : out Queue_Node_Access;
Params : Address;
Filter : Queue_Filter);
-- no waiting
procedure Unsynchronized_Take (
Object : in out Queue;
Item : out Queue_Node_Access;
Params : Address;
Filter : Queue_Filter);
pragma Inline (Canceled);
-- event
type Event is limited private;
procedure Initialize (Object : in out Event);
procedure Finalize (Object : in out Event);
function Get (Object : Event) return Boolean;
procedure Set (Object : in out Event);
procedure Reset (Object : in out Event);
procedure Wait (
Object : in out Event);
procedure Wait (
Object : in out Event;
Timeout : Duration;
Value : out Boolean);
-- multi-read/exclusive-write lock for protected
type RW_Lock is limited private;
procedure Initialize (Object : in out RW_Lock);
procedure Finalize (Object : in out RW_Lock);
procedure Enter_Reading (Object : in out RW_Lock);
procedure Enter_Writing (Object : in out RW_Lock);
procedure Leave (Object : in out RW_Lock); -- leave reading or writing
private
type Mutex is limited record
Handle : aliased C.pthread.pthread_mutex_t;
end record;
pragma Suppress_Initialization (Mutex);
type Condition_Variable is limited record
Handle : aliased C.pthread.pthread_cond_t;
end record;
pragma Suppress_Initialization (Condition_Variable);
type Queue is limited record
Mutex : not null Mutex_Access;
Pipe : Synchronous_Objects.Event; -- count bytes in the pipe
Head : aliased Queue_Node_Access;
Tail : Queue_Node_Access;
Params : Address;
Filter : Queue_Filter;
Waiting : Boolean;
Canceled : Boolean;
end record;
pragma Suppress_Initialization (Queue);
type Queue_Node is limited record
Next : aliased Queue_Node_Access;
end record;
pragma Suppress_Initialization (Queue_Node);
procedure Take_No_Sync (
Object : in out Queue;
Item : out Queue_Node_Access;
Params : Address;
Filter : Queue_Filter;
Previous : in out Queue_Node_Access;
Current : in out Queue_Node_Access);
procedure Notify_All (
Object : in out Queue;
Item : not null Queue_Node_Access);
-- awake Abortable.Take
type Event is limited record
Reading_Pipe : C.signed_int;
Writing_Pipe : C.signed_int;
end record;
pragma Suppress_Initialization (Event);
procedure Read_1 (Reading_Pipe : C.signed_int);
procedure Write_1 (Writing_Pipe : C.signed_int);
type RW_Lock is limited record
Handle : aliased C.pthread.pthread_rwlock_t;
end record;
pragma Suppress_Initialization (RW_Lock);
end System.Synchronous_Objects;
| 29.282209 | 73 | 0.688456 |
c735174c0ca70eea957a458c38c9e319b582cb7f | 1,441 | ads | Ada | regtests/keystore-properties-tests.ads | My-Colaborations/ada-keystore | 6ab222c2df81f32309c5a7b4f94a475214ef5ce3 | [
"Apache-2.0"
] | 25 | 2019-05-07T20:35:50.000Z | 2021-11-30T10:35:47.000Z | regtests/keystore-properties-tests.ads | My-Colaborations/ada-keystore | 6ab222c2df81f32309c5a7b4f94a475214ef5ce3 | [
"Apache-2.0"
] | 12 | 2019-12-16T23:30:00.000Z | 2021-09-26T18:52:41.000Z | regtests/keystore-properties-tests.ads | My-Colaborations/ada-keystore | 6ab222c2df81f32309c5a7b4f94a475214ef5ce3 | [
"Apache-2.0"
] | 3 | 2019-12-18T21:30:04.000Z | 2021-01-06T08:30:36.000Z | -----------------------------------------------------------------------
-- keystore-properties-tests -- Tests for Keystore.Properties
-- Copyright (C) 2020 Stephane Carrez
-- Written by Stephane Carrez ([email protected])
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.
-----------------------------------------------------------------------
with Util.Properties;
with Util.Tests;
package Keystore.Properties.Tests is
procedure Add_Tests (Suite : in Util.Tests.Access_Test_Suite);
type Test is new Util.Tests.Test with null record;
procedure Test_Properties (T : in out Test;
Props : in out Util.Properties.Manager'Class);
-- Test the accessing the keystore through property manager.
procedure Test_Properties (T : in out Test);
-- Test iterating over the property manager.
procedure Test_Iterate (T : in out Test);
end Keystore.Properties.Tests;
| 38.945946 | 76 | 0.650243 |
5857113e30bed6410ec95975920261c158f53418 | 2,740 | adb | Ada | problems/020/a020.adb | melwyncarlo/ProjectEuler | c4d30ed528ae6de82232f3d2044d608c6e8f1c37 | [
"MIT"
] | null | null | null | problems/020/a020.adb | melwyncarlo/ProjectEuler | c4d30ed528ae6de82232f3d2044d608c6e8f1c37 | [
"MIT"
] | null | null | null | problems/020/a020.adb | melwyncarlo/ProjectEuler | c4d30ed528ae6de82232f3d2044d608c6e8f1c37 | [
"MIT"
] | null | null | null | with Ada.Strings.Fixed;
with Ada.Integer_Text_IO;
-- Copyright 2021 Melwyn Francis Carlo
procedure A020 is
use Ada.Strings.Fixed;
use Ada.Integer_Text_IO;
N_Str : array (Integer range 1 .. 500) of Character :=
('1', others => '0');
Products_Array : array (Integer range 1 .. 500,
Integer range 1 .. 500) of Character;
Temp_Product : String (1 .. 3);
Temp_Sum_Str : String (1 .. 2);
Sum_Of_Digits : Integer := 0;
Str_Length : Integer := 1;
Temp_Sum, Temp_Len : Integer;
begin
for I in 2 .. 100 loop
for J in reverse 1 .. Str_Length loop
Temp_Sum := I * (Character'Pos (N_Str (J))
- Character'Pos ('0'));
Temp_Product := "000";
if (Temp_Sum > 0) then
Temp_Len := Trim (Integer'Image (Temp_Sum),
Ada.Strings.Both)'Length;
Temp_Product ((4 - Temp_Len) .. 3) := Trim (Integer'Image (
Temp_Sum), Ada.Strings.Both);
end if;
for K1 in 1 .. J loop
Products_Array (J, K1) := '0';
end loop;
for K2 in (J + 1) .. (J + 3) loop
Products_Array (J, K2) := Temp_Product (K2 - J);
end loop;
for K3 in (J + 4) .. (Str_Length + 4) loop
Products_Array (J, K3) := '0';
end loop;
end loop;
N_Str := (others => '0');
for K in reverse 2 .. (Str_Length + 3 - 1) loop
Temp_Sum := 0;
for J in 1 .. Str_Length loop
Temp_Sum := Temp_Sum
+ Character'Pos (Products_Array (J, K + 1))
- Character'Pos ('0');
end loop;
Temp_Sum := Temp_Sum
+ Character'Pos (N_Str (K))
- Character'Pos ('0');
Temp_Len := Trim (Integer'Image (Temp_Sum),
Ada.Strings.Both)'Length;
Temp_Sum_Str := "00";
if Temp_Len = 1 then
Temp_Sum_Str (2) := Trim (Integer'Image (Temp_Sum),
Ada.Strings.Both) (1);
else
Temp_Sum_Str := Trim (Integer'Image (Temp_Sum),
Ada.Strings.Both) (1 .. 2);
end if;
N_Str (K) := Temp_Sum_Str (2);
N_Str (K - 1) := Temp_Sum_Str (1);
end loop;
Str_Length := Str_Length + 2;
end loop;
for I in 1 .. Str_Length loop
Sum_Of_Digits := Sum_Of_Digits
+ Character'Pos (N_Str (I))
- Character'Pos ('0');
end loop;
Put (Sum_Of_Digits, Width => 0);
end A020;
| 25.37037 | 79 | 0.468248 |
31ce36c918ee62d3e0a6d221ed475efa34456660 | 128,295 | adb | Ada | apps/hls_examples/camera_ready_synthesis/app_files/big_apps_8_shifts/conv2d_b2b/conv2d_b2b/hls_target/.autopilot/db/call_Loop_LB2D_buf_p_1.adb | dillonhuff/Halide-HLS | e9f4c3ac7915e5a52f211ce65004ae17890515a0 | [
"MIT"
] | 1 | 2020-06-18T16:51:39.000Z | 2020-06-18T16:51:39.000Z | apps/hls_examples/camera_ready_synthesis/app_files/big_apps_8_shifts/conv2d_b2b/conv2d_b2b/hls_target/.autopilot/db/call_Loop_LB2D_buf_p_1.adb | dillonhuff/Halide-HLS | e9f4c3ac7915e5a52f211ce65004ae17890515a0 | [
"MIT"
] | null | null | null | apps/hls_examples/camera_ready_synthesis/app_files/big_apps_8_shifts/conv2d_b2b/conv2d_b2b/hls_target/.autopilot/db/call_Loop_LB2D_buf_p_1.adb | dillonhuff/Halide-HLS | e9f4c3ac7915e5a52f211ce65004ae17890515a0 | [
"MIT"
] | 1 | 2020-03-18T00:43:22.000Z | 2020-03-18T00:43:22.000Z | <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE boost_serialization>
<boost_serialization signature="serialization::archive" version="14">
<syndb class_id="0" tracking_level="0" version="0">
<userIPLatency>-1</userIPLatency>
<userIPName/>
<cdfg class_id="1" tracking_level="1" version="0" object_id="_0">
<name>call_Loop_LB2D_buf_p_1</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>in_stream_V_value_V</name>
<fileName/>
<fileDirectory/>
<lineNumber>0</lineNumber>
<contextFuncName/>
<inlineStackInfo class_id="6" tracking_level="0" version="0">
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>stream&lt;PackedStencil&lt;int, 1, 1, 1, 1&gt; &gt;.V.value.V</originalName>
<rtlName/>
<coreName>FIFO_SRL</coreName>
</Obj>
<bitwidth>32</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>slice_stream_V_value_V</name>
<fileName/>
<fileDirectory/>
<lineNumber>0</lineNumber>
<contextFuncName/>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName/>
<rtlName/>
<coreName>FIFO_SRL</coreName>
</Obj>
<bitwidth>64</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>25</count>
<item_version>0</item_version>
<item class_id="9" tracking_level="1" version="0" object_id="_3">
<Value>
<Obj>
<type>0</type>
<id>7</id>
<name>buffer_0_value_V</name>
<fileName>../../../lib_files/Linebuffer.h</fileName>
<fileDirectory>..</fileDirectory>
<lineNumber>168</lineNumber>
<contextFuncName>call</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item class_id="10" tracking_level="0" version="0">
<first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_8_shifts/conv2d_b2b</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>../../../lib_files/Linebuffer.h</first>
<second>call</second>
</first>
<second>168</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>buffer[0].value.V</originalName>
<rtlName>buffer_0_value_V_U</rtlName>
<coreName>RAM</coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>50</item>
</oprand_edges>
<opcode>alloca</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_4">
<Value>
<Obj>
<type>0</type>
<id>8</id>
<name/>
<fileName/>
<fileDirectory/>
<lineNumber>0</lineNumber>
<contextFuncName/>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName/>
<rtlName/>
<coreName/>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>51</item>
</oprand_edges>
<opcode>br</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_5">
<Value>
<Obj>
<type>0</type>
<id>10</id>
<name>row</name>
<fileName/>
<fileDirectory/>
<lineNumber>0</lineNumber>
<contextFuncName/>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>row</originalName>
<rtlName/>
<coreName/>
</Obj>
<bitwidth>11</bitwidth>
</Value>
<oprand_edges>
<count>4</count>
<item_version>0</item_version>
<item>53</item>
<item>54</item>
<item>55</item>
<item>56</item>
</oprand_edges>
<opcode>phi</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_6">
<Value>
<Obj>
<type>0</type>
<id>11</id>
<name>tmp</name>
<fileName>../../../lib_files/Linebuffer.h</fileName>
<fileDirectory>..</fileDirectory>
<lineNumber>177</lineNumber>
<contextFuncName>call</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_8_shifts/conv2d_b2b</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>../../../lib_files/Linebuffer.h</first>
<second>call</second>
</first>
<second>177</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName/>
<rtlName>tmp_fu_120_p2</rtlName>
<coreName/>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>57</item>
<item>59</item>
</oprand_edges>
<opcode>icmp</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_7">
<Value>
<Obj>
<type>0</type>
<id>13</id>
<name>row_1</name>
<fileName>../../../lib_files/Linebuffer.h</fileName>
<fileDirectory>..</fileDirectory>
<lineNumber>177</lineNumber>
<contextFuncName>call</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_8_shifts/conv2d_b2b</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>../../../lib_files/Linebuffer.h</first>
<second>call</second>
</first>
<second>177</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>row</originalName>
<rtlName>row_1_fu_126_p2</rtlName>
<coreName/>
</Obj>
<bitwidth>11</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>60</item>
<item>62</item>
</oprand_edges>
<opcode>add</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_8">
<Value>
<Obj>
<type>0</type>
<id>14</id>
<name/>
<fileName>../../../lib_files/Linebuffer.h</fileName>
<fileDirectory>..</fileDirectory>
<lineNumber>177</lineNumber>
<contextFuncName>call</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_8_shifts/conv2d_b2b</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>../../../lib_files/Linebuffer.h</first>
<second>call</second>
</first>
<second>177</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName/>
<rtlName/>
<coreName/>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>63</item>
<item>64</item>
<item>65</item>
</oprand_edges>
<opcode>br</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_9">
<Value>
<Obj>
<type>0</type>
<id>18</id>
<name>tmp_s</name>
<fileName>../../../lib_files/Linebuffer.h</fileName>
<fileDirectory>..</fileDirectory>
<lineNumber>187</lineNumber>
<contextFuncName>call</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_8_shifts/conv2d_b2b</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>../../../lib_files/Linebuffer.h</first>
<second>call</second>
</first>
<second>187</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName/>
<rtlName>tmp_s_fu_132_p2</rtlName>
<coreName/>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>79</item>
<item>80</item>
</oprand_edges>
<opcode>icmp</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_10">
<Value>
<Obj>
<type>0</type>
<id>19</id>
<name/>
<fileName>../../../lib_files/Linebuffer.h</fileName>
<fileDirectory>..</fileDirectory>
<lineNumber>179</lineNumber>
<contextFuncName>call</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_8_shifts/conv2d_b2b</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>../../../lib_files/Linebuffer.h</first>
<second>call</second>
</first>
<second>179</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName/>
<rtlName/>
<coreName/>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>81</item>
</oprand_edges>
<opcode>br</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_11">
<Value>
<Obj>
<type>0</type>
<id>21</id>
<name>col</name>
<fileName/>
<fileDirectory/>
<lineNumber>0</lineNumber>
<contextFuncName/>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>col</originalName>
<rtlName/>
<coreName/>
</Obj>
<bitwidth>11</bitwidth>
</Value>
<oprand_edges>
<count>4</count>
<item_version>0</item_version>
<item>67</item>
<item>68</item>
<item>69</item>
<item>70</item>
</oprand_edges>
<opcode>phi</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_12">
<Value>
<Obj>
<type>0</type>
<id>22</id>
<name>tmp_7</name>
<fileName>../../../lib_files/Linebuffer.h</fileName>
<fileDirectory>..</fileDirectory>
<lineNumber>179</lineNumber>
<contextFuncName>call</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_8_shifts/conv2d_b2b</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>../../../lib_files/Linebuffer.h</first>
<second>call</second>
</first>
<second>179</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName/>
<rtlName>tmp_7_fu_138_p2</rtlName>
<coreName/>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>71</item>
<item>73</item>
</oprand_edges>
<opcode>icmp</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_13">
<Value>
<Obj>
<type>0</type>
<id>23</id>
<name>col_1</name>
<fileName>../../../lib_files/Linebuffer.h</fileName>
<fileDirectory>..</fileDirectory>
<lineNumber>179</lineNumber>
<contextFuncName>call</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_8_shifts/conv2d_b2b</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>../../../lib_files/Linebuffer.h</first>
<second>call</second>
</first>
<second>179</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>col</originalName>
<rtlName>col_1_fu_144_p2</rtlName>
<coreName/>
</Obj>
<bitwidth>11</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>
</item>
<item class_id_reference="9" object_id="_14">
<Value>
<Obj>
<type>0</type>
<id>24</id>
<name/>
<fileName>../../../lib_files/Linebuffer.h</fileName>
<fileDirectory>..</fileDirectory>
<lineNumber>179</lineNumber>
<contextFuncName>call</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_8_shifts/conv2d_b2b</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>../../../lib_files/Linebuffer.h</first>
<second>call</second>
</first>
<second>179</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName/>
<rtlName/>
<coreName/>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>76</item>
<item>77</item>
<item>78</item>
</oprand_edges>
<opcode>br</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_15">
<Value>
<Obj>
<type>0</type>
<id>26</id>
<name>col_cast</name>
<fileName>../../../lib_files/Linebuffer.h</fileName>
<fileDirectory>..</fileDirectory>
<lineNumber>179</lineNumber>
<contextFuncName>call</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_8_shifts/conv2d_b2b</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>../../../lib_files/Linebuffer.h</first>
<second>call</second>
</first>
<second>179</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName/>
<rtlName>col_cast_fu_150_p1</rtlName>
<coreName/>
</Obj>
<bitwidth>64</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>89</item>
</oprand_edges>
<opcode>zext</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_16">
<Value>
<Obj>
<type>0</type>
<id>30</id>
<name>tmp_value_V_3</name>
<fileName>../../../lib_files/Linebuffer.h</fileName>
<fileDirectory>..</fileDirectory>
<lineNumber>186</lineNumber>
<contextFuncName>call</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_8_shifts/conv2d_b2b</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>../../../lib_files/Linebuffer.h</first>
<second>call</second>
</first>
<second>186</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>tmp.value.V</originalName>
<rtlName/>
<coreName/>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>91</item>
<item>92</item>
</oprand_edges>
<opcode>read</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_17">
<Value>
<Obj>
<type>0</type>
<id>31</id>
<name/>
<fileName>../../../lib_files/Linebuffer.h</fileName>
<fileDirectory>..</fileDirectory>
<lineNumber>187</lineNumber>
<contextFuncName>call</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_8_shifts/conv2d_b2b</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>../../../lib_files/Linebuffer.h</first>
<second>call</second>
</first>
<second>187</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName/>
<rtlName/>
<coreName/>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>93</item>
<item>94</item>
<item>95</item>
</oprand_edges>
<opcode>br</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_18">
<Value>
<Obj>
<type>0</type>
<id>33</id>
<name>buffer_0_value_V_ad_1</name>
<fileName>../../../lib_files/Linebuffer.h</fileName>
<fileDirectory>..</fileDirectory>
<lineNumber>198</lineNumber>
<contextFuncName>call</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_8_shifts/conv2d_b2b</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>../../../lib_files/Linebuffer.h</first>
<second>call</second>
</first>
<second>198</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName/>
<rtlName/>
<coreName/>
</Obj>
<bitwidth>11</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>96</item>
<item>97</item>
<item>98</item>
</oprand_edges>
<opcode>getelementptr</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_19">
<Value>
<Obj>
<type>0</type>
<id>34</id>
<name>p_Val2_s</name>
<fileName>../../../lib_files/Linebuffer.h</fileName>
<fileDirectory>..</fileDirectory>
<lineNumber>198</lineNumber>
<contextFuncName>call</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_8_shifts/conv2d_b2b</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>../../../lib_files/Linebuffer.h</first>
<second>call</second>
</first>
<second>198</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>__Val2__</originalName>
<rtlName/>
<coreName/>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>99</item>
</oprand_edges>
<opcode>load</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_20">
<Value>
<Obj>
<type>0</type>
<id>35</id>
<name>p_Result_s</name>
<fileName>../../../lib_files/Linebuffer.h</fileName>
<fileDirectory>..</fileDirectory>
<lineNumber>206</lineNumber>
<contextFuncName>call</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_8_shifts/conv2d_b2b</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>../../../lib_files/Linebuffer.h</first>
<second>call</second>
</first>
<second>206</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>__Result__</originalName>
<rtlName>slice_stream_V_value_V_din</rtlName>
<coreName/>
</Obj>
<bitwidth>64</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>101</item>
<item>102</item>
<item>103</item>
</oprand_edges>
<opcode>bitconcatenate</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_21">
<Value>
<Obj>
<type>0</type>
<id>36</id>
<name/>
<fileName>../../../lib_files/Linebuffer.h</fileName>
<fileDirectory>..</fileDirectory>
<lineNumber>207</lineNumber>
<contextFuncName>call</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_8_shifts/conv2d_b2b</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>../../../lib_files/Linebuffer.h</first>
<second>call</second>
</first>
<second>207</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName/>
<rtlName/>
<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>write</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_22">
<Value>
<Obj>
<type>0</type>
<id>37</id>
<name/>
<fileName>../../../lib_files/Linebuffer.h</fileName>
<fileDirectory>..</fileDirectory>
<lineNumber>208</lineNumber>
<contextFuncName>call</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_8_shifts/conv2d_b2b</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>../../../lib_files/Linebuffer.h</first>
<second>call</second>
</first>
<second>208</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName/>
<rtlName/>
<coreName/>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>108</item>
</oprand_edges>
<opcode>br</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_23">
<Value>
<Obj>
<type>0</type>
<id>39</id>
<name>buffer_0_value_V_ad</name>
<fileName>../../../lib_files/Stencil.h</fileName>
<fileDirectory>..</fileDirectory>
<lineNumber>75</lineNumber>
<contextFuncName>operator=</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_8_shifts/conv2d_b2b</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>
<first>../../../lib_files/Linebuffer.h</first>
<second>call</second>
</first>
<second>209</second>
</item>
<item>
<first>
<first>../../../lib_files/Stencil.h</first>
<second>operator=</second>
</first>
<second>75</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName/>
<rtlName/>
<coreName/>
</Obj>
<bitwidth>11</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>82</item>
<item>84</item>
<item>85</item>
</oprand_edges>
<opcode>getelementptr</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_24">
<Value>
<Obj>
<type>0</type>
<id>40</id>
<name/>
<fileName>../../../lib_files/Stencil.h</fileName>
<fileDirectory>..</fileDirectory>
<lineNumber>75</lineNumber>
<contextFuncName>operator=</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_8_shifts/conv2d_b2b</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>
<first>../../../lib_files/Linebuffer.h</first>
<second>call</second>
</first>
<second>209</second>
</item>
<item>
<first>
<first>../../../lib_files/Stencil.h</first>
<second>operator=</second>
</first>
<second>75</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName/>
<rtlName/>
<coreName/>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>86</item>
<item>87</item>
<item>221</item>
</oprand_edges>
<opcode>store</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_25">
<Value>
<Obj>
<type>0</type>
<id>42</id>
<name/>
<fileName>../../../lib_files/Linebuffer.h</fileName>
<fileDirectory>..</fileDirectory>
<lineNumber>179</lineNumber>
<contextFuncName>call</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_8_shifts/conv2d_b2b</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>../../../lib_files/Linebuffer.h</first>
<second>call</second>
</first>
<second>179</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName/>
<rtlName/>
<coreName/>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>88</item>
</oprand_edges>
<opcode>br</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_26">
<Value>
<Obj>
<type>0</type>
<id>45</id>
<name/>
<fileName>../../../lib_files/Linebuffer.h</fileName>
<fileDirectory>..</fileDirectory>
<lineNumber>177</lineNumber>
<contextFuncName>call</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_8_shifts/conv2d_b2b</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>../../../lib_files/Linebuffer.h</first>
<second>call</second>
</first>
<second>177</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName/>
<rtlName/>
<coreName/>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>66</item>
</oprand_edges>
<opcode>br</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_27">
<Value>
<Obj>
<type>0</type>
<id>47</id>
<name/>
<fileName/>
<fileDirectory/>
<lineNumber>0</lineNumber>
<contextFuncName/>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName/>
<rtlName/>
<coreName/>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>0</count>
<item_version>0</item_version>
</oprand_edges>
<opcode>ret</opcode>
<m_Display>0</m_Display>
</item>
</nodes>
<consts class_id="15" tracking_level="0" version="0">
<count>6</count>
<item_version>0</item_version>
<item class_id="16" tracking_level="1" version="0" object_id="_28">
<Value>
<Obj>
<type>2</type>
<id>49</id>
<name>empty</name>
<fileName/>
<fileDirectory/>
<lineNumber>0</lineNumber>
<contextFuncName/>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName/>
<rtlName/>
<coreName/>
</Obj>
<bitwidth>64</bitwidth>
</Value>
<const_type>0</const_type>
<content>1</content>
</item>
<item class_id_reference="16" object_id="_29">
<Value>
<Obj>
<type>2</type>
<id>52</id>
<name>empty</name>
<fileName/>
<fileDirectory/>
<lineNumber>0</lineNumber>
<contextFuncName/>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName/>
<rtlName/>
<coreName/>
</Obj>
<bitwidth>11</bitwidth>
</Value>
<const_type>0</const_type>
<content>0</content>
</item>
<item class_id_reference="16" object_id="_30">
<Value>
<Obj>
<type>2</type>
<id>58</id>
<name>empty</name>
<fileName/>
<fileDirectory/>
<lineNumber>0</lineNumber>
<contextFuncName/>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName/>
<rtlName/>
<coreName/>
</Obj>
<bitwidth>11</bitwidth>
</Value>
<const_type>0</const_type>
<content>1078</content>
</item>
<item class_id_reference="16" object_id="_31">
<Value>
<Obj>
<type>2</type>
<id>61</id>
<name>empty</name>
<fileName/>
<fileDirectory/>
<lineNumber>0</lineNumber>
<contextFuncName/>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName/>
<rtlName/>
<coreName/>
</Obj>
<bitwidth>11</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>72</id>
<name>empty</name>
<fileName/>
<fileDirectory/>
<lineNumber>0</lineNumber>
<contextFuncName/>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName/>
<rtlName/>
<coreName/>
</Obj>
<bitwidth>11</bitwidth>
</Value>
<const_type>0</const_type>
<content>1918</content>
</item>
<item class_id_reference="16" object_id="_33">
<Value>
<Obj>
<type>2</type>
<id>83</id>
<name>empty</name>
<fileName/>
<fileDirectory/>
<lineNumber>0</lineNumber>
<contextFuncName/>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName/>
<rtlName/>
<coreName/>
</Obj>
<bitwidth>64</bitwidth>
</Value>
<const_type>0</const_type>
<content>0</content>
</item>
</consts>
<blocks class_id="17" tracking_level="0" version="0">
<count>9</count>
<item_version>0</item_version>
<item class_id="18" tracking_level="1" version="0" object_id="_34">
<Obj>
<type>3</type>
<id>9</id>
<name>newFuncRoot</name>
<fileName/>
<fileDirectory/>
<lineNumber>0</lineNumber>
<contextFuncName/>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName/>
<rtlName/>
<coreName/>
</Obj>
<node_objs>
<count>2</count>
<item_version>0</item_version>
<item>7</item>
<item>8</item>
</node_objs>
</item>
<item class_id_reference="18" object_id="_35">
<Obj>
<type>3</type>
<id>15</id>
<name/>
<fileName/>
<fileDirectory/>
<lineNumber>0</lineNumber>
<contextFuncName/>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName/>
<rtlName/>
<coreName/>
</Obj>
<node_objs>
<count>4</count>
<item_version>0</item_version>
<item>10</item>
<item>11</item>
<item>13</item>
<item>14</item>
</node_objs>
</item>
<item class_id_reference="18" object_id="_36">
<Obj>
<type>3</type>
<id>20</id>
<name/>
<fileName/>
<fileDirectory/>
<lineNumber>0</lineNumber>
<contextFuncName/>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName/>
<rtlName/>
<coreName/>
</Obj>
<node_objs>
<count>2</count>
<item_version>0</item_version>
<item>18</item>
<item>19</item>
</node_objs>
</item>
<item class_id_reference="18" object_id="_37">
<Obj>
<type>3</type>
<id>25</id>
<name/>
<fileName/>
<fileDirectory/>
<lineNumber>0</lineNumber>
<contextFuncName/>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName/>
<rtlName/>
<coreName/>
</Obj>
<node_objs>
<count>4</count>
<item_version>0</item_version>
<item>21</item>
<item>22</item>
<item>23</item>
<item>24</item>
</node_objs>
</item>
<item class_id_reference="18" object_id="_38">
<Obj>
<type>3</type>
<id>32</id>
<name/>
<fileName/>
<fileDirectory/>
<lineNumber>0</lineNumber>
<contextFuncName/>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName/>
<rtlName/>
<coreName/>
</Obj>
<node_objs>
<count>3</count>
<item_version>0</item_version>
<item>26</item>
<item>30</item>
<item>31</item>
</node_objs>
</item>
<item class_id_reference="18" object_id="_39">
<Obj>
<type>3</type>
<id>38</id>
<name>.preheader57</name>
<fileName/>
<fileDirectory/>
<lineNumber>0</lineNumber>
<contextFuncName/>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName/>
<rtlName/>
<coreName/>
</Obj>
<node_objs>
<count>5</count>
<item_version>0</item_version>
<item>33</item>
<item>34</item>
<item>35</item>
<item>36</item>
<item>37</item>
</node_objs>
</item>
<item class_id_reference="18" object_id="_40">
<Obj>
<type>3</type>
<id>43</id>
<name>._crit_edge</name>
<fileName/>
<fileDirectory/>
<lineNumber>0</lineNumber>
<contextFuncName/>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName/>
<rtlName/>
<coreName/>
</Obj>
<node_objs>
<count>3</count>
<item_version>0</item_version>
<item>39</item>
<item>40</item>
<item>42</item>
</node_objs>
</item>
<item class_id_reference="18" object_id="_41">
<Obj>
<type>3</type>
<id>46</id>
<name/>
<fileName/>
<fileDirectory/>
<lineNumber>0</lineNumber>
<contextFuncName/>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName/>
<rtlName/>
<coreName/>
</Obj>
<node_objs>
<count>1</count>
<item_version>0</item_version>
<item>45</item>
</node_objs>
</item>
<item class_id_reference="18" object_id="_42">
<Obj>
<type>3</type>
<id>48</id>
<name>.preheader.exitStub</name>
<fileName/>
<fileDirectory/>
<lineNumber>0</lineNumber>
<contextFuncName/>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName/>
<rtlName/>
<coreName/>
</Obj>
<node_objs>
<count>1</count>
<item_version>0</item_version>
<item>47</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>50</id>
<edge_type>1</edge_type>
<source_obj>49</source_obj>
<sink_obj>7</sink_obj>
</item>
<item class_id_reference="20" object_id="_44">
<id>51</id>
<edge_type>2</edge_type>
<source_obj>15</source_obj>
<sink_obj>8</sink_obj>
</item>
<item class_id_reference="20" object_id="_45">
<id>53</id>
<edge_type>1</edge_type>
<source_obj>52</source_obj>
<sink_obj>10</sink_obj>
</item>
<item class_id_reference="20" object_id="_46">
<id>54</id>
<edge_type>2</edge_type>
<source_obj>9</source_obj>
<sink_obj>10</sink_obj>
</item>
<item class_id_reference="20" object_id="_47">
<id>55</id>
<edge_type>1</edge_type>
<source_obj>13</source_obj>
<sink_obj>10</sink_obj>
</item>
<item class_id_reference="20" object_id="_48">
<id>56</id>
<edge_type>2</edge_type>
<source_obj>46</source_obj>
<sink_obj>10</sink_obj>
</item>
<item class_id_reference="20" object_id="_49">
<id>57</id>
<edge_type>1</edge_type>
<source_obj>10</source_obj>
<sink_obj>11</sink_obj>
</item>
<item class_id_reference="20" object_id="_50">
<id>59</id>
<edge_type>1</edge_type>
<source_obj>58</source_obj>
<sink_obj>11</sink_obj>
</item>
<item class_id_reference="20" object_id="_51">
<id>60</id>
<edge_type>1</edge_type>
<source_obj>10</source_obj>
<sink_obj>13</sink_obj>
</item>
<item class_id_reference="20" object_id="_52">
<id>62</id>
<edge_type>1</edge_type>
<source_obj>61</source_obj>
<sink_obj>13</sink_obj>
</item>
<item class_id_reference="20" object_id="_53">
<id>63</id>
<edge_type>1</edge_type>
<source_obj>11</source_obj>
<sink_obj>14</sink_obj>
</item>
<item class_id_reference="20" object_id="_54">
<id>64</id>
<edge_type>2</edge_type>
<source_obj>20</source_obj>
<sink_obj>14</sink_obj>
</item>
<item class_id_reference="20" object_id="_55">
<id>65</id>
<edge_type>2</edge_type>
<source_obj>48</source_obj>
<sink_obj>14</sink_obj>
</item>
<item class_id_reference="20" object_id="_56">
<id>66</id>
<edge_type>2</edge_type>
<source_obj>15</source_obj>
<sink_obj>45</sink_obj>
</item>
<item class_id_reference="20" object_id="_57">
<id>67</id>
<edge_type>1</edge_type>
<source_obj>52</source_obj>
<sink_obj>21</sink_obj>
</item>
<item class_id_reference="20" object_id="_58">
<id>68</id>
<edge_type>2</edge_type>
<source_obj>20</source_obj>
<sink_obj>21</sink_obj>
</item>
<item class_id_reference="20" object_id="_59">
<id>69</id>
<edge_type>1</edge_type>
<source_obj>23</source_obj>
<sink_obj>21</sink_obj>
</item>
<item class_id_reference="20" object_id="_60">
<id>70</id>
<edge_type>2</edge_type>
<source_obj>43</source_obj>
<sink_obj>21</sink_obj>
</item>
<item class_id_reference="20" object_id="_61">
<id>71</id>
<edge_type>1</edge_type>
<source_obj>21</source_obj>
<sink_obj>22</sink_obj>
</item>
<item class_id_reference="20" object_id="_62">
<id>73</id>
<edge_type>1</edge_type>
<source_obj>72</source_obj>
<sink_obj>22</sink_obj>
</item>
<item class_id_reference="20" object_id="_63">
<id>74</id>
<edge_type>1</edge_type>
<source_obj>21</source_obj>
<sink_obj>23</sink_obj>
</item>
<item class_id_reference="20" object_id="_64">
<id>75</id>
<edge_type>1</edge_type>
<source_obj>61</source_obj>
<sink_obj>23</sink_obj>
</item>
<item class_id_reference="20" object_id="_65">
<id>76</id>
<edge_type>1</edge_type>
<source_obj>22</source_obj>
<sink_obj>24</sink_obj>
</item>
<item class_id_reference="20" object_id="_66">
<id>77</id>
<edge_type>2</edge_type>
<source_obj>32</source_obj>
<sink_obj>24</sink_obj>
</item>
<item class_id_reference="20" object_id="_67">
<id>78</id>
<edge_type>2</edge_type>
<source_obj>46</source_obj>
<sink_obj>24</sink_obj>
</item>
<item class_id_reference="20" object_id="_68">
<id>79</id>
<edge_type>1</edge_type>
<source_obj>10</source_obj>
<sink_obj>18</sink_obj>
</item>
<item class_id_reference="20" object_id="_69">
<id>80</id>
<edge_type>1</edge_type>
<source_obj>52</source_obj>
<sink_obj>18</sink_obj>
</item>
<item class_id_reference="20" object_id="_70">
<id>81</id>
<edge_type>2</edge_type>
<source_obj>25</source_obj>
<sink_obj>19</sink_obj>
</item>
<item class_id_reference="20" object_id="_71">
<id>82</id>
<edge_type>1</edge_type>
<source_obj>7</source_obj>
<sink_obj>39</sink_obj>
</item>
<item class_id_reference="20" object_id="_72">
<id>84</id>
<edge_type>1</edge_type>
<source_obj>83</source_obj>
<sink_obj>39</sink_obj>
</item>
<item class_id_reference="20" object_id="_73">
<id>85</id>
<edge_type>1</edge_type>
<source_obj>26</source_obj>
<sink_obj>39</sink_obj>
</item>
<item class_id_reference="20" object_id="_74">
<id>86</id>
<edge_type>1</edge_type>
<source_obj>30</source_obj>
<sink_obj>40</sink_obj>
</item>
<item class_id_reference="20" object_id="_75">
<id>87</id>
<edge_type>1</edge_type>
<source_obj>39</source_obj>
<sink_obj>40</sink_obj>
</item>
<item class_id_reference="20" object_id="_76">
<id>88</id>
<edge_type>2</edge_type>
<source_obj>25</source_obj>
<sink_obj>42</sink_obj>
</item>
<item class_id_reference="20" object_id="_77">
<id>89</id>
<edge_type>1</edge_type>
<source_obj>21</source_obj>
<sink_obj>26</sink_obj>
</item>
<item class_id_reference="20" object_id="_78">
<id>92</id>
<edge_type>1</edge_type>
<source_obj>1</source_obj>
<sink_obj>30</sink_obj>
</item>
<item class_id_reference="20" object_id="_79">
<id>93</id>
<edge_type>1</edge_type>
<source_obj>18</source_obj>
<sink_obj>31</sink_obj>
</item>
<item class_id_reference="20" object_id="_80">
<id>94</id>
<edge_type>2</edge_type>
<source_obj>38</source_obj>
<sink_obj>31</sink_obj>
</item>
<item class_id_reference="20" object_id="_81">
<id>95</id>
<edge_type>2</edge_type>
<source_obj>43</source_obj>
<sink_obj>31</sink_obj>
</item>
<item class_id_reference="20" object_id="_82">
<id>96</id>
<edge_type>1</edge_type>
<source_obj>7</source_obj>
<sink_obj>33</sink_obj>
</item>
<item class_id_reference="20" object_id="_83">
<id>97</id>
<edge_type>1</edge_type>
<source_obj>83</source_obj>
<sink_obj>33</sink_obj>
</item>
<item class_id_reference="20" object_id="_84">
<id>98</id>
<edge_type>1</edge_type>
<source_obj>26</source_obj>
<sink_obj>33</sink_obj>
</item>
<item class_id_reference="20" object_id="_85">
<id>99</id>
<edge_type>1</edge_type>
<source_obj>33</source_obj>
<sink_obj>34</sink_obj>
</item>
<item class_id_reference="20" object_id="_86">
<id>102</id>
<edge_type>1</edge_type>
<source_obj>30</source_obj>
<sink_obj>35</sink_obj>
</item>
<item class_id_reference="20" object_id="_87">
<id>103</id>
<edge_type>1</edge_type>
<source_obj>34</source_obj>
<sink_obj>35</sink_obj>
</item>
<item class_id_reference="20" object_id="_88">
<id>106</id>
<edge_type>1</edge_type>
<source_obj>2</source_obj>
<sink_obj>36</sink_obj>
</item>
<item class_id_reference="20" object_id="_89">
<id>107</id>
<edge_type>1</edge_type>
<source_obj>35</source_obj>
<sink_obj>36</sink_obj>
</item>
<item class_id_reference="20" object_id="_90">
<id>108</id>
<edge_type>2</edge_type>
<source_obj>43</source_obj>
<sink_obj>37</sink_obj>
</item>
<item class_id_reference="20" object_id="_91">
<id>210</id>
<edge_type>2</edge_type>
<source_obj>9</source_obj>
<sink_obj>15</sink_obj>
</item>
<item class_id_reference="20" object_id="_92">
<id>211</id>
<edge_type>2</edge_type>
<source_obj>15</source_obj>
<sink_obj>48</sink_obj>
</item>
<item class_id_reference="20" object_id="_93">
<id>212</id>
<edge_type>2</edge_type>
<source_obj>15</source_obj>
<sink_obj>20</sink_obj>
</item>
<item class_id_reference="20" object_id="_94">
<id>213</id>
<edge_type>2</edge_type>
<source_obj>20</source_obj>
<sink_obj>25</sink_obj>
</item>
<item class_id_reference="20" object_id="_95">
<id>214</id>
<edge_type>2</edge_type>
<source_obj>25</source_obj>
<sink_obj>46</sink_obj>
</item>
<item class_id_reference="20" object_id="_96">
<id>215</id>
<edge_type>2</edge_type>
<source_obj>25</source_obj>
<sink_obj>32</sink_obj>
</item>
<item class_id_reference="20" object_id="_97">
<id>216</id>
<edge_type>2</edge_type>
<source_obj>32</source_obj>
<sink_obj>43</sink_obj>
</item>
<item class_id_reference="20" object_id="_98">
<id>217</id>
<edge_type>2</edge_type>
<source_obj>32</source_obj>
<sink_obj>38</sink_obj>
</item>
<item class_id_reference="20" object_id="_99">
<id>218</id>
<edge_type>2</edge_type>
<source_obj>38</source_obj>
<sink_obj>43</sink_obj>
</item>
<item class_id_reference="20" object_id="_100">
<id>219</id>
<edge_type>2</edge_type>
<source_obj>43</source_obj>
<sink_obj>25</sink_obj>
</item>
<item class_id_reference="20" object_id="_101">
<id>220</id>
<edge_type>2</edge_type>
<source_obj>46</source_obj>
<sink_obj>15</sink_obj>
</item>
<item class_id_reference="20" object_id="_102">
<id>221</id>
<edge_type>4</edge_type>
<source_obj>34</source_obj>
<sink_obj>40</sink_obj>
</item>
</edges>
</cdfg>
<cdfg_regions class_id="21" tracking_level="0" version="0">
<count>7</count>
<item_version>0</item_version>
<item class_id="22" tracking_level="1" version="0" object_id="_103">
<mId>1</mId>
<mTag>call_Loop_LB2D_buf_p.1</mTag>
<mType>0</mType>
<sub_regions>
<count>3</count>
<item_version>0</item_version>
<item>2</item>
<item>3</item>
<item>7</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>2071917</mMinLatency>
<mMaxLatency>-1</mMaxLatency>
<mIsDfPipe>0</mIsDfPipe>
<mDfPipe class_id="-1"/>
</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>9</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"/>
</item>
<item class_id_reference="22" object_id="_105">
<mId>3</mId>
<mTag>LB2D_buf</mTag>
<mType>1</mType>
<sub_regions>
<count>3</count>
<item_version>0</item_version>
<item>4</item>
<item>5</item>
<item>6</item>
</sub_regions>
<basic_blocks>
<count>0</count>
<item_version>0</item_version>
</basic_blocks>
<mII>-1</mII>
<mDepth>-1</mDepth>
<mMinTripCount>1078</mMinTripCount>
<mMaxTripCount>1078</mMaxTripCount>
<mMinLatency>2071916</mMinLatency>
<mMaxLatency>-1</mMaxLatency>
<mIsDfPipe>0</mIsDfPipe>
<mDfPipe class_id="-1"/>
</item>
<item class_id_reference="22" object_id="_106">
<mId>4</mId>
<mTag>Region 1</mTag>
<mType>0</mType>
<sub_regions>
<count>0</count>
<item_version>0</item_version>
</sub_regions>
<basic_blocks>
<count>2</count>
<item_version>0</item_version>
<item>15</item>
<item>20</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"/>
</item>
<item class_id_reference="22" object_id="_107">
<mId>5</mId>
<mTag>LB2D_buf.1</mTag>
<mType>1</mType>
<sub_regions>
<count>0</count>
<item_version>0</item_version>
</sub_regions>
<basic_blocks>
<count>4</count>
<item_version>0</item_version>
<item>25</item>
<item>32</item>
<item>38</item>
<item>43</item>
</basic_blocks>
<mII>1</mII>
<mDepth>3</mDepth>
<mMinTripCount>1918</mMinTripCount>
<mMaxTripCount>1918</mMaxTripCount>
<mMinLatency>1919</mMinLatency>
<mMaxLatency>-1</mMaxLatency>
<mIsDfPipe>0</mIsDfPipe>
<mDfPipe class_id="-1"/>
</item>
<item class_id_reference="22" object_id="_108">
<mId>6</mId>
<mTag>Region 2</mTag>
<mType>0</mType>
<sub_regions>
<count>0</count>
<item_version>0</item_version>
</sub_regions>
<basic_blocks>
<count>1</count>
<item_version>0</item_version>
<item>46</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"/>
</item>
<item class_id_reference="22" object_id="_109">
<mId>7</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>48</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"/>
</item>
</cdfg_regions>
<fsm class_id="24" tracking_level="1" version="0" object_id="_110">
<states class_id="25" tracking_level="0" version="0">
<count>6</count>
<item_version>0</item_version>
<item class_id="26" tracking_level="1" version="0" object_id="_111">
<id>1</id>
<operations class_id="27" tracking_level="0" version="0">
<count>6</count>
<item_version>0</item_version>
<item class_id="28" tracking_level="1" version="0" object_id="_112">
<id>3</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_113">
<id>4</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_114">
<id>5</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_115">
<id>6</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_116">
<id>7</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_117">
<id>8</id>
<stage>1</stage>
<latency>1</latency>
</item>
</operations>
</item>
<item class_id_reference="26" object_id="_118">
<id>2</id>
<operations>
<count>10</count>
<item_version>0</item_version>
<item class_id_reference="28" object_id="_119">
<id>10</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_120">
<id>11</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_121">
<id>12</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_122">
<id>13</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_123">
<id>14</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_124">
<id>16</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_125">
<id>17</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_126">
<id>18</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_127">
<id>19</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_128">
<id>47</id>
<stage>1</stage>
<latency>1</latency>
</item>
</operations>
</item>
<item class_id_reference="26" object_id="_129">
<id>3</id>
<operations>
<count>8</count>
<item_version>0</item_version>
<item class_id_reference="28" object_id="_130">
<id>21</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_131">
<id>22</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_132">
<id>23</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_133">
<id>24</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_134">
<id>26</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_135">
<id>31</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_136">
<id>33</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_137">
<id>34</id>
<stage>2</stage>
<latency>2</latency>
</item>
</operations>
</item>
<item class_id_reference="26" object_id="_138">
<id>4</id>
<operations>
<count>2</count>
<item_version>0</item_version>
<item class_id_reference="28" object_id="_139">
<id>30</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_140">
<id>34</id>
<stage>1</stage>
<latency>2</latency>
</item>
</operations>
</item>
<item class_id_reference="26" object_id="_141">
<id>5</id>
<operations>
<count>10</count>
<item_version>0</item_version>
<item class_id_reference="28" object_id="_142">
<id>27</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_143">
<id>28</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_144">
<id>29</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_145">
<id>35</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_146">
<id>36</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_147">
<id>37</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_148">
<id>39</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_149">
<id>40</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_150">
<id>41</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_151">
<id>42</id>
<stage>1</stage>
<latency>1</latency>
</item>
</operations>
</item>
<item class_id_reference="26" object_id="_152">
<id>6</id>
<operations>
<count>2</count>
<item_version>0</item_version>
<item class_id_reference="28" object_id="_153">
<id>44</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_154">
<id>45</id>
<stage>1</stage>
<latency>1</latency>
</item>
</operations>
</item>
</states>
<transitions class_id="29" tracking_level="0" version="0">
<count>7</count>
<item_version>0</item_version>
<item class_id="30" tracking_level="1" version="0" object_id="_155">
<inState>1</inState>
<outState>2</outState>
<condition class_id="31" tracking_level="0" version="0">
<id>31</id>
<sop class_id="32" tracking_level="0" version="0">
<count>1</count>
<item_version>0</item_version>
<item class_id="33" tracking_level="0" version="0">
<count>0</count>
<item_version>0</item_version>
</item>
</sop>
</condition>
</item>
<item class_id_reference="30" object_id="_156">
<inState>2</inState>
<outState>3</outState>
<condition>
<id>33</id>
<sop>
<count>1</count>
<item_version>0</item_version>
<item>
<count>1</count>
<item_version>0</item_version>
<item class_id="34" tracking_level="0" version="0">
<first class_id="35" tracking_level="0" version="0">
<first>11</first>
<second>0</second>
</first>
<second>1</second>
</item>
</item>
</sop>
</condition>
</item>
<item class_id_reference="30" object_id="_157">
<inState>6</inState>
<outState>2</outState>
<condition>
<id>44</id>
<sop>
<count>1</count>
<item_version>0</item_version>
<item>
<count>0</count>
<item_version>0</item_version>
</item>
</sop>
</condition>
</item>
<item class_id_reference="30" object_id="_158">
<inState>4</inState>
<outState>5</outState>
<condition>
<id>46</id>
<sop>
<count>1</count>
<item_version>0</item_version>
<item>
<count>0</count>
<item_version>0</item_version>
</item>
</sop>
</condition>
</item>
<item class_id_reference="30" object_id="_159">
<inState>5</inState>
<outState>3</outState>
<condition>
<id>47</id>
<sop>
<count>1</count>
<item_version>0</item_version>
<item>
<count>0</count>
<item_version>0</item_version>
</item>
</sop>
</condition>
</item>
<item class_id_reference="30" object_id="_160">
<inState>3</inState>
<outState>6</outState>
<condition>
<id>45</id>
<sop>
<count>1</count>
<item_version>0</item_version>
<item>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>22</first>
<second>0</second>
</first>
<second>0</second>
</item>
</item>
</sop>
</condition>
</item>
<item class_id_reference="30" object_id="_161">
<inState>3</inState>
<outState>4</outState>
<condition>
<id>48</id>
<sop>
<count>1</count>
<item_version>0</item_version>
<item>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>22</first>
<second>0</second>
</first>
<second>1</second>
</item>
</item>
</sop>
</condition>
</item>
</transitions>
</fsm>
<res class_id="36" tracking_level="1" version="0" object_id="_162">
<dp_component_resource class_id="37" tracking_level="0" version="0">
<count>0</count>
<item_version>0</item_version>
</dp_component_resource>
<dp_expression_resource>
<count>15</count>
<item_version>0</item_version>
<item class_id="38" tracking_level="0" version="0">
<first>ap_block_pp0_stage0_flag00001001 ( or ) </first>
<second class_id="39" tracking_level="0" version="0">
<count>4</count>
<item_version>0</item_version>
<item class_id="40" tracking_level="0" version="0">
<first>(0P0)</first>
<second>1</second>
</item>
<item>
<first>(1P1)</first>
<second>1</second>
</item>
<item>
<first>FF</first>
<second>0</second>
</item>
<item>
<first>LUT</first>
<second>2</second>
</item>
</second>
</item>
<item>
<first>ap_block_state1 ( or ) </first>
<second>
<count>4</count>
<item_version>0</item_version>
<item>
<first>(0P0)</first>
<second>1</second>
</item>
<item>
<first>(1P1)</first>
<second>1</second>
</item>
<item>
<first>FF</first>
<second>0</second>
</item>
<item>
<first>LUT</first>
<second>2</second>
</item>
</second>
</item>
<item>
<first>ap_block_state5_pp0_stage0_iter2 ( and ) </first>
<second>
<count>4</count>
<item_version>0</item_version>
<item>
<first>(0P0)</first>
<second>1</second>
</item>
<item>
<first>(1P1)</first>
<second>1</second>
</item>
<item>
<first>FF</first>
<second>0</second>
</item>
<item>
<first>LUT</first>
<second>2</second>
</item>
</second>
</item>
<item>
<first>ap_enable_pp0 ( xor ) </first>
<second>
<count>4</count>
<item_version>0</item_version>
<item>
<first>(0P0)</first>
<second>1</second>
</item>
<item>
<first>(1P1)</first>
<second>2</second>
</item>
<item>
<first>FF</first>
<second>0</second>
</item>
<item>
<first>LUT</first>
<second>2</second>
</item>
</second>
</item>
<item>
<first>ap_enable_reg_pp0_iter1 ( xor ) </first>
<second>
<count>4</count>
<item_version>0</item_version>
<item>
<first>(0P0)</first>
<second>1</second>
</item>
<item>
<first>(1P1)</first>
<second>2</second>
</item>
<item>
<first>FF</first>
<second>0</second>
</item>
<item>
<first>LUT</first>
<second>2</second>
</item>
</second>
</item>
<item>
<first>ap_enable_state3_pp0_iter0_stage0 ( and ) </first>
<second>
<count>4</count>
<item_version>0</item_version>
<item>
<first>(0P0)</first>
<second>1</second>
</item>
<item>
<first>(1P1)</first>
<second>1</second>
</item>
<item>
<first>FF</first>
<second>0</second>
</item>
<item>
<first>LUT</first>
<second>2</second>
</item>
</second>
</item>
<item>
<first>ap_enable_state4_pp0_iter1_stage0 ( and ) </first>
<second>
<count>4</count>
<item_version>0</item_version>
<item>
<first>(0P0)</first>
<second>1</second>
</item>
<item>
<first>(1P1)</first>
<second>1</second>
</item>
<item>
<first>FF</first>
<second>0</second>
</item>
<item>
<first>LUT</first>
<second>2</second>
</item>
</second>
</item>
<item>
<first>ap_enable_state5_pp0_iter2_stage0 ( and ) </first>
<second>
<count>4</count>
<item_version>0</item_version>
<item>
<first>(0P0)</first>
<second>1</second>
</item>
<item>
<first>(1P1)</first>
<second>1</second>
</item>
<item>
<first>FF</first>
<second>0</second>
</item>
<item>
<first>LUT</first>
<second>2</second>
</item>
</second>
</item>
<item>
<first>ap_predicate_op30_load_state3 ( and ) </first>
<second>
<count>4</count>
<item_version>0</item_version>
<item>
<first>(0P0)</first>
<second>1</second>
</item>
<item>
<first>(1P1)</first>
<second>1</second>
</item>
<item>
<first>FF</first>
<second>0</second>
</item>
<item>
<first>LUT</first>
<second>2</second>
</item>
</second>
</item>
<item>
<first>col_1_fu_144_p2 ( + ) </first>
<second>
<count>4</count>
<item_version>0</item_version>
<item>
<first>(0P0)</first>
<second>11</second>
</item>
<item>
<first>(1P1)</first>
<second>1</second>
</item>
<item>
<first>FF</first>
<second>38</second>
</item>
<item>
<first>LUT</first>
<second>16</second>
</item>
</second>
</item>
<item>
<first>row_1_fu_126_p2 ( + ) </first>
<second>
<count>4</count>
<item_version>0</item_version>
<item>
<first>(0P0)</first>
<second>11</second>
</item>
<item>
<first>(1P1)</first>
<second>1</second>
</item>
<item>
<first>FF</first>
<second>38</second>
</item>
<item>
<first>LUT</first>
<second>16</second>
</item>
</second>
</item>
<item>
<first>start_write ( and ) </first>
<second>
<count>4</count>
<item_version>0</item_version>
<item>
<first>(0P0)</first>
<second>1</second>
</item>
<item>
<first>(1P1)</first>
<second>1</second>
</item>
<item>
<first>FF</first>
<second>0</second>
</item>
<item>
<first>LUT</first>
<second>2</second>
</item>
</second>
</item>
<item>
<first>tmp_7_fu_138_p2 ( icmp ) </first>
<second>
<count>4</count>
<item_version>0</item_version>
<item>
<first>(0P0)</first>
<second>11</second>
</item>
<item>
<first>(1P1)</first>
<second>9</second>
</item>
<item>
<first>FF</first>
<second>0</second>
</item>
<item>
<first>LUT</first>
<second>6</second>
</item>
</second>
</item>
<item>
<first>tmp_fu_120_p2 ( icmp ) </first>
<second>
<count>4</count>
<item_version>0</item_version>
<item>
<first>(0P0)</first>
<second>11</second>
</item>
<item>
<first>(1P1)</first>
<second>11</second>
</item>
<item>
<first>FF</first>
<second>0</second>
</item>
<item>
<first>LUT</first>
<second>6</second>
</item>
</second>
</item>
<item>
<first>tmp_s_fu_132_p2 ( icmp ) </first>
<second>
<count>4</count>
<item_version>0</item_version>
<item>
<first>(0P0)</first>
<second>11</second>
</item>
<item>
<first>(1P1)</first>
<second>1</second>
</item>
<item>
<first>FF</first>
<second>0</second>
</item>
<item>
<first>LUT</first>
<second>6</second>
</item>
</second>
</item>
</dp_expression_resource>
<dp_fifo_resource>
<count>0</count>
<item_version>0</item_version>
</dp_fifo_resource>
<dp_memory_resource>
<count>1</count>
<item_version>0</item_version>
<item>
<first>buffer_0_value_V_U</first>
<second>
<count>7</count>
<item_version>0</item_version>
<item>
<first>(0Words)</first>
<second>1918</second>
</item>
<item>
<first>(1Bits)</first>
<second>32</second>
</item>
<item>
<first>(2Banks)</first>
<second>1</second>
</item>
<item>
<first>(3W*Bits*Banks)</first>
<second>61376</second>
</item>
<item>
<first>BRAM</first>
<second>4</second>
</item>
<item>
<first>FF</first>
<second>0</second>
</item>
<item>
<first>LUT</first>
<second>0</second>
</item>
</second>
</item>
</dp_memory_resource>
<dp_multiplexer_resource>
<count>9</count>
<item_version>0</item_version>
<item>
<first>ap_NS_fsm</first>
<second>
<count>4</count>
<item_version>0</item_version>
<item>
<first>(0Size)</first>
<second>5</second>
</item>
<item>
<first>(1Bits)</first>
<second>1</second>
</item>
<item>
<first>(2Count)</first>
<second>5</second>
</item>
<item>
<first>LUT</first>
<second>27</second>
</item>
</second>
</item>
<item>
<first>ap_done</first>
<second>
<count>4</count>
<item_version>0</item_version>
<item>
<first>(0Size)</first>
<second>2</second>
</item>
<item>
<first>(1Bits)</first>
<second>1</second>
</item>
<item>
<first>(2Count)</first>
<second>2</second>
</item>
<item>
<first>LUT</first>
<second>9</second>
</item>
</second>
</item>
<item>
<first>ap_enable_reg_pp0_iter1</first>
<second>
<count>4</count>
<item_version>0</item_version>
<item>
<first>(0Size)</first>
<second>2</second>
</item>
<item>
<first>(1Bits)</first>
<second>1</second>
</item>
<item>
<first>(2Count)</first>
<second>2</second>
</item>
<item>
<first>LUT</first>
<second>9</second>
</item>
</second>
</item>
<item>
<first>ap_enable_reg_pp0_iter2</first>
<second>
<count>4</count>
<item_version>0</item_version>
<item>
<first>(0Size)</first>
<second>2</second>
</item>
<item>
<first>(1Bits)</first>
<second>1</second>
</item>
<item>
<first>(2Count)</first>
<second>2</second>
</item>
<item>
<first>LUT</first>
<second>9</second>
</item>
</second>
</item>
<item>
<first>col_reg_109</first>
<second>
<count>4</count>
<item_version>0</item_version>
<item>
<first>(0Size)</first>
<second>2</second>
</item>
<item>
<first>(1Bits)</first>
<second>11</second>
</item>
<item>
<first>(2Count)</first>
<second>22</second>
</item>
<item>
<first>LUT</first>
<second>9</second>
</item>
</second>
</item>
<item>
<first>in_stream_V_value_V_blk_n</first>
<second>
<count>4</count>
<item_version>0</item_version>
<item>
<first>(0Size)</first>
<second>2</second>
</item>
<item>
<first>(1Bits)</first>
<second>1</second>
</item>
<item>
<first>(2Count)</first>
<second>2</second>
</item>
<item>
<first>LUT</first>
<second>9</second>
</item>
</second>
</item>
<item>
<first>real_start</first>
<second>
<count>4</count>
<item_version>0</item_version>
<item>
<first>(0Size)</first>
<second>2</second>
</item>
<item>
<first>(1Bits)</first>
<second>1</second>
</item>
<item>
<first>(2Count)</first>
<second>2</second>
</item>
<item>
<first>LUT</first>
<second>9</second>
</item>
</second>
</item>
<item>
<first>row_reg_98</first>
<second>
<count>4</count>
<item_version>0</item_version>
<item>
<first>(0Size)</first>
<second>2</second>
</item>
<item>
<first>(1Bits)</first>
<second>11</second>
</item>
<item>
<first>(2Count)</first>
<second>22</second>
</item>
<item>
<first>LUT</first>
<second>9</second>
</item>
</second>
</item>
<item>
<first>slice_stream_V_value_V_blk_n</first>
<second>
<count>4</count>
<item_version>0</item_version>
<item>
<first>(0Size)</first>
<second>2</second>
</item>
<item>
<first>(1Bits)</first>
<second>1</second>
</item>
<item>
<first>(2Count)</first>
<second>2</second>
</item>
<item>
<first>LUT</first>
<second>9</second>
</item>
</second>
</item>
</dp_multiplexer_resource>
<dp_register_resource>
<count>18</count>
<item_version>0</item_version>
<item>
<first>ap_CS_fsm</first>
<second>
<count>3</count>
<item_version>0</item_version>
<item>
<first>(Bits)</first>
<second>4</second>
</item>
<item>
<first>(Consts)</first>
<second>0</second>
</item>
<item>
<first>FF</first>
<second>4</second>
</item>
</second>
</item>
<item>
<first>ap_done_reg</first>
<second>
<count>3</count>
<item_version>0</item_version>
<item>
<first>(Bits)</first>
<second>1</second>
</item>
<item>
<first>(Consts)</first>
<second>0</second>
</item>
<item>
<first>FF</first>
<second>1</second>
</item>
</second>
</item>
<item>
<first>ap_enable_reg_pp0_iter0</first>
<second>
<count>3</count>
<item_version>0</item_version>
<item>
<first>(Bits)</first>
<second>1</second>
</item>
<item>
<first>(Consts)</first>
<second>0</second>
</item>
<item>
<first>FF</first>
<second>1</second>
</item>
</second>
</item>
<item>
<first>ap_enable_reg_pp0_iter1</first>
<second>
<count>3</count>
<item_version>0</item_version>
<item>
<first>(Bits)</first>
<second>1</second>
</item>
<item>
<first>(Consts)</first>
<second>0</second>
</item>
<item>
<first>FF</first>
<second>1</second>
</item>
</second>
</item>
<item>
<first>ap_enable_reg_pp0_iter2</first>
<second>
<count>3</count>
<item_version>0</item_version>
<item>
<first>(Bits)</first>
<second>1</second>
</item>
<item>
<first>(Consts)</first>
<second>0</second>
</item>
<item>
<first>FF</first>
<second>1</second>
</item>
</second>
</item>
<item>
<first>ap_reg_pp0_iter1_col_cast_reg_184</first>
<second>
<count>3</count>
<item_version>0</item_version>
<item>
<first>(Bits)</first>
<second>64</second>
</item>
<item>
<first>(Consts)</first>
<second>53</second>
</item>
<item>
<first>FF</first>
<second>11</second>
</item>
</second>
</item>
<item>
<first>ap_reg_pp0_iter1_tmp_7_reg_175</first>
<second>
<count>3</count>
<item_version>0</item_version>
<item>
<first>(Bits)</first>
<second>1</second>
</item>
<item>
<first>(Consts)</first>
<second>0</second>
</item>
<item>
<first>FF</first>
<second>1</second>
</item>
</second>
</item>
<item>
<first>col_cast_reg_184</first>
<second>
<count>3</count>
<item_version>0</item_version>
<item>
<first>(Bits)</first>
<second>64</second>
</item>
<item>
<first>(Consts)</first>
<second>53</second>
</item>
<item>
<first>FF</first>
<second>11</second>
</item>
</second>
</item>
<item>
<first>col_reg_109</first>
<second>
<count>3</count>
<item_version>0</item_version>
<item>
<first>(Bits)</first>
<second>11</second>
</item>
<item>
<first>(Consts)</first>
<second>0</second>
</item>
<item>
<first>FF</first>
<second>11</second>
</item>
</second>
</item>
<item>
<first>p_Val2_s_reg_200</first>
<second>
<count>3</count>
<item_version>0</item_version>
<item>
<first>(Bits)</first>
<second>32</second>
</item>
<item>
<first>(Consts)</first>
<second>0</second>
</item>
<item>
<first>FF</first>
<second>32</second>
</item>
</second>
</item>
<item>
<first>real_start_status_reg</first>
<second>
<count>3</count>
<item_version>0</item_version>
<item>
<first>(Bits)</first>
<second>1</second>
</item>
<item>
<first>(Consts)</first>
<second>0</second>
</item>
<item>
<first>FF</first>
<second>1</second>
</item>
</second>
</item>
<item>
<first>row_1_reg_166</first>
<second>
<count>3</count>
<item_version>0</item_version>
<item>
<first>(Bits)</first>
<second>11</second>
</item>
<item>
<first>(Consts)</first>
<second>0</second>
</item>
<item>
<first>FF</first>
<second>11</second>
</item>
</second>
</item>
<item>
<first>row_reg_98</first>
<second>
<count>3</count>
<item_version>0</item_version>
<item>
<first>(Bits)</first>
<second>11</second>
</item>
<item>
<first>(Consts)</first>
<second>0</second>
</item>
<item>
<first>FF</first>
<second>11</second>
</item>
</second>
</item>
<item>
<first>start_control_reg</first>
<second>
<count>3</count>
<item_version>0</item_version>
<item>
<first>(Bits)</first>
<second>1</second>
</item>
<item>
<first>(Consts)</first>
<second>0</second>
</item>
<item>
<first>FF</first>
<second>1</second>
</item>
</second>
</item>
<item>
<first>start_once_reg</first>
<second>
<count>3</count>
<item_version>0</item_version>
<item>
<first>(Bits)</first>
<second>1</second>
</item>
<item>
<first>(Consts)</first>
<second>0</second>
</item>
<item>
<first>FF</first>
<second>1</second>
</item>
</second>
</item>
<item>
<first>tmp_7_reg_175</first>
<second>
<count>3</count>
<item_version>0</item_version>
<item>
<first>(Bits)</first>
<second>1</second>
</item>
<item>
<first>(Consts)</first>
<second>0</second>
</item>
<item>
<first>FF</first>
<second>1</second>
</item>
</second>
</item>
<item>
<first>tmp_s_reg_171</first>
<second>
<count>3</count>
<item_version>0</item_version>
<item>
<first>(Bits)</first>
<second>1</second>
</item>
<item>
<first>(Consts)</first>
<second>0</second>
</item>
<item>
<first>FF</first>
<second>1</second>
</item>
</second>
</item>
<item>
<first>tmp_value_V_3_reg_194</first>
<second>
<count>3</count>
<item_version>0</item_version>
<item>
<first>(Bits)</first>
<second>32</second>
</item>
<item>
<first>(Consts)</first>
<second>0</second>
</item>
<item>
<first>FF</first>
<second>32</second>
</item>
</second>
</item>
</dp_register_resource>
<dp_component_map class_id="41" tracking_level="0" version="0">
<count>0</count>
<item_version>0</item_version>
</dp_component_map>
<dp_expression_map>
<count>5</count>
<item_version>0</item_version>
<item class_id="42" tracking_level="0" version="0">
<first>col_1_fu_144_p2 ( + ) </first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>23</item>
</second>
</item>
<item>
<first>row_1_fu_126_p2 ( + ) </first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>13</item>
</second>
</item>
<item>
<first>tmp_7_fu_138_p2 ( icmp ) </first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>22</item>
</second>
</item>
<item>
<first>tmp_fu_120_p2 ( icmp ) </first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>11</item>
</second>
</item>
<item>
<first>tmp_s_fu_132_p2 ( icmp ) </first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>18</item>
</second>
</item>
</dp_expression_map>
<dp_fifo_map>
<count>0</count>
<item_version>0</item_version>
</dp_fifo_map>
<dp_memory_map>
<count>1</count>
<item_version>0</item_version>
<item>
<first>buffer_0_value_V_U</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>141</item>
</second>
</item>
</dp_memory_map>
</res>
<node_label_latency class_id="43" tracking_level="0" version="0">
<count>25</count>
<item_version>0</item_version>
<item class_id="44" tracking_level="0" version="0">
<first>7</first>
<second class_id="45" 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>10</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>11</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>13</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>14</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>18</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>19</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>21</first>
<second>
<first>2</first>
<second>0</second>
</second>
</item>
<item>
<first>22</first>
<second>
<first>2</first>
<second>0</second>
</second>
</item>
<item>
<first>23</first>
<second>
<first>2</first>
<second>0</second>
</second>
</item>
<item>
<first>24</first>
<second>
<first>2</first>
<second>0</second>
</second>
</item>
<item>
<first>26</first>
<second>
<first>2</first>
<second>0</second>
</second>
</item>
<item>
<first>30</first>
<second>
<first>3</first>
<second>0</second>
</second>
</item>
<item>
<first>31</first>
<second>
<first>2</first>
<second>0</second>
</second>
</item>
<item>
<first>33</first>
<second>
<first>2</first>
<second>0</second>
</second>
</item>
<item>
<first>34</first>
<second>
<first>2</first>
<second>1</second>
</second>
</item>
<item>
<first>35</first>
<second>
<first>4</first>
<second>0</second>
</second>
</item>
<item>
<first>36</first>
<second>
<first>4</first>
<second>0</second>
</second>
</item>
<item>
<first>37</first>
<second>
<first>4</first>
<second>0</second>
</second>
</item>
<item>
<first>39</first>
<second>
<first>4</first>
<second>0</second>
</second>
</item>
<item>
<first>40</first>
<second>
<first>4</first>
<second>0</second>
</second>
</item>
<item>
<first>42</first>
<second>
<first>4</first>
<second>0</second>
</second>
</item>
<item>
<first>45</first>
<second>
<first>3</first>
<second>0</second>
</second>
</item>
<item>
<first>47</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
</node_label_latency>
<bblk_ent_exit class_id="46" tracking_level="0" version="0">
<count>9</count>
<item_version>0</item_version>
<item class_id="47" tracking_level="0" version="0">
<first>9</first>
<second class_id="48" tracking_level="0" version="0">
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>15</first>
<second>
<first>1</first>
<second>1</second>
</second>
</item>
<item>
<first>20</first>
<second>
<first>1</first>
<second>1</second>
</second>
</item>
<item>
<first>25</first>
<second>
<first>2</first>
<second>2</second>
</second>
</item>
<item>
<first>32</first>
<second>
<first>2</first>
<second>4</second>
</second>
</item>
<item>
<first>38</first>
<second>
<first>2</first>
<second>4</second>
</second>
</item>
<item>
<first>43</first>
<second>
<first>4</first>
<second>4</second>
</second>
</item>
<item>
<first>46</first>
<second>
<first>3</first>
<second>3</second>
</second>
</item>
<item>
<first>48</first>
<second>
<first>1</first>
<second>1</second>
</second>
</item>
</bblk_ent_exit>
<regions class_id="49" tracking_level="0" version="0">
<count>1</count>
<item_version>0</item_version>
<item class_id="50" tracking_level="1" version="0" object_id="_163">
<region_name>LB2D_buf.1</region_name>
<basic_blocks>
<count>4</count>
<item_version>0</item_version>
<item>25</item>
<item>32</item>
<item>38</item>
<item>43</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="51" tracking_level="0" version="0">
<count>15</count>
<item_version>0</item_version>
<item class_id="52" tracking_level="0" version="0">
<first>60</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>7</item>
</second>
</item>
<item>
<first>64</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>30</item>
</second>
</item>
<item>
<first>70</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>36</item>
</second>
</item>
<item>
<first>77</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>33</item>
</second>
</item>
<item>
<first>83</first>
<second>
<count>3</count>
<item_version>0</item_version>
<item>34</item>
<item>34</item>
<item>40</item>
</second>
</item>
<item>
<first>88</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>39</item>
</second>
</item>
<item>
<first>102</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>10</item>
</second>
</item>
<item>
<first>113</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>21</item>
</second>
</item>
<item>
<first>120</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>11</item>
</second>
</item>
<item>
<first>126</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>13</item>
</second>
</item>
<item>
<first>132</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>18</item>
</second>
</item>
<item>
<first>138</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>22</item>
</second>
</item>
<item>
<first>144</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>23</item>
</second>
</item>
<item>
<first>150</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>26</item>
</second>
</item>
<item>
<first>155</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>35</item>
</second>
</item>
</dp_fu_nodes>
<dp_fu_nodes_expression class_id="54" tracking_level="0" version="0">
<count>12</count>
<item_version>0</item_version>
<item class_id="55" tracking_level="0" version="0">
<first>buffer_0_value_V_ad_1_gep_fu_77</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>33</item>
</second>
</item>
<item>
<first>buffer_0_value_V_ad_gep_fu_88</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>39</item>
</second>
</item>
<item>
<first>buffer_0_value_V_alloca_fu_60</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>7</item>
</second>
</item>
<item>
<first>col_1_fu_144</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>23</item>
</second>
</item>
<item>
<first>col_cast_fu_150</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>26</item>
</second>
</item>
<item>
<first>col_phi_fu_113</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>21</item>
</second>
</item>
<item>
<first>p_Result_s_fu_155</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>35</item>
</second>
</item>
<item>
<first>row_1_fu_126</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>13</item>
</second>
</item>
<item>
<first>row_phi_fu_102</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>10</item>
</second>
</item>
<item>
<first>tmp_7_fu_138</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>22</item>
</second>
</item>
<item>
<first>tmp_fu_120</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>11</item>
</second>
</item>
<item>
<first>tmp_s_fu_132</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>18</item>
</second>
</item>
</dp_fu_nodes_expression>
<dp_fu_nodes_module>
<count>0</count>
<item_version>0</item_version>
</dp_fu_nodes_module>
<dp_fu_nodes_io>
<count>2</count>
<item_version>0</item_version>
<item>
<first>StgValue_37_write_fu_70</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>36</item>
</second>
</item>
<item>
<first>tmp_value_V_3_read_fu_64</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>30</item>
</second>
</item>
</dp_fu_nodes_io>
<return_ports>
<count>0</count>
<item_version>0</item_version>
</return_ports>
<dp_mem_port_nodes class_id="56" tracking_level="0" version="0">
<count>2</count>
<item_version>0</item_version>
<item class_id="57" tracking_level="0" version="0">
<first class_id="58" tracking_level="0" version="0">
<first>buffer_0_value_V</first>
<second>0</second>
</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>34</item>
<item>34</item>
</second>
</item>
<item>
<first>
<first>buffer_0_value_V</first>
<second>1</second>
</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>40</item>
</second>
</item>
</dp_mem_port_nodes>
<dp_reg_nodes>
<count>11</count>
<item_version>0</item_version>
<item>
<first>98</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>10</item>
</second>
</item>
<item>
<first>109</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>21</item>
</second>
</item>
<item>
<first>162</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>11</item>
</second>
</item>
<item>
<first>166</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>13</item>
</second>
</item>
<item>
<first>171</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>18</item>
</second>
</item>
<item>
<first>175</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>22</item>
</second>
</item>
<item>
<first>179</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>23</item>
</second>
</item>
<item>
<first>184</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>26</item>
</second>
</item>
<item>
<first>189</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>33</item>
</second>
</item>
<item>
<first>194</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>30</item>
</second>
</item>
<item>
<first>200</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>34</item>
</second>
</item>
</dp_reg_nodes>
<dp_regname_nodes>
<count>11</count>
<item_version>0</item_version>
<item>
<first>buffer_0_value_V_ad_1_reg_189</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>33</item>
</second>
</item>
<item>
<first>col_1_reg_179</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>23</item>
</second>
</item>
<item>
<first>col_cast_reg_184</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>26</item>
</second>
</item>
<item>
<first>col_reg_109</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>21</item>
</second>
</item>
<item>
<first>p_Val2_s_reg_200</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>34</item>
</second>
</item>
<item>
<first>row_1_reg_166</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>13</item>
</second>
</item>
<item>
<first>row_reg_98</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>10</item>
</second>
</item>
<item>
<first>tmp_7_reg_175</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>22</item>
</second>
</item>
<item>
<first>tmp_reg_162</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>11</item>
</second>
</item>
<item>
<first>tmp_s_reg_171</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>18</item>
</second>
</item>
<item>
<first>tmp_value_V_3_reg_194</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>30</item>
</second>
</item>
</dp_regname_nodes>
<dp_reg_phi>
<count>2</count>
<item_version>0</item_version>
<item>
<first>98</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>10</item>
</second>
</item>
<item>
<first>109</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>21</item>
</second>
</item>
</dp_reg_phi>
<dp_regname_phi>
<count>2</count>
<item_version>0</item_version>
<item>
<first>col_reg_109</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>21</item>
</second>
</item>
<item>
<first>row_reg_98</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>10</item>
</second>
</item>
</dp_regname_phi>
<dp_port_io_nodes class_id="59" tracking_level="0" version="0">
<count>2</count>
<item_version>0</item_version>
<item class_id="60" tracking_level="0" version="0">
<first>in_stream_V_value_V</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>read</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>30</item>
</second>
</item>
</second>
</item>
<item>
<first>slice_stream_V_value_V</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>write</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>36</item>
</second>
</item>
</second>
</item>
</dp_port_io_nodes>
<port2core class_id="61" tracking_level="0" version="0">
<count>2</count>
<item_version>0</item_version>
<item class_id="62" tracking_level="0" version="0">
<first>1</first>
<second>FIFO_SRL</second>
</item>
<item>
<first>2</first>
<second>FIFO_SRL</second>
</item>
</port2core>
<node2core>
<count>1</count>
<item_version>0</item_version>
<item>
<first>7</first>
<second>RAM</second>
</item>
</node2core>
</syndb>
</boost_serialization>
| 30.358495 | 135 | 0.440555 |
22e6c9e01b7d791576a9dd9fea452da074425a52 | 208 | adb | Ada | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/string_comparison.adb | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | 7 | 2020-05-02T17:34:05.000Z | 2021-10-17T10:15:18.000Z | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/string_comparison.adb | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | null | null | null | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/string_comparison.adb | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | 2 | 2020-07-27T00:22:36.000Z | 2021-04-01T09:41:02.000Z | -- { dg-do compile }
with Ada.Text_IO; use Ada.Text_IO;
procedure String_Comparison is
package Bool_IO is new Enumeration_IO (Boolean);
use Bool_IO;
begin
Put (Boolean'Image (True) = "True");
end;
| 18.909091 | 51 | 0.706731 |
582ea84a41e60570cf995363c462ad5dd3a8cdcf | 5,063 | ads | Ada | source/amf/mof/amf-visitors.ads | svn2github/matreshka | 9d222b3ad9da508855fb1f5adbe5e8a4fad4c530 | [
"BSD-3-Clause"
] | 24 | 2016-11-29T06:59:41.000Z | 2021-08-30T11:55:16.000Z | source/amf/mof/amf-visitors.ads | svn2github/matreshka | 9d222b3ad9da508855fb1f5adbe5e8a4fad4c530 | [
"BSD-3-Clause"
] | 2 | 2019-01-16T05:15:20.000Z | 2019-02-03T10:03:32.000Z | source/amf/mof/amf-visitors.ads | svn2github/matreshka | 9d222b3ad9da508855fb1f5adbe5e8a4fad4c530 | [
"BSD-3-Clause"
] | 4 | 2017-07-18T07:11:05.000Z | 2020-06-21T03:02:25.000Z | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- Ada Modeling Framework --
-- --
-- Runtime Library Component --
-- --
------------------------------------------------------------------------------
-- --
-- Copyright © 2011-2012, Vadim Godunko <[email protected]> --
-- All rights reserved. --
-- --
-- Redistribution and use in source and binary forms, with or without --
-- modification, are permitted provided that the following conditions --
-- are met: --
-- --
-- * Redistributions of source code must retain the above copyright --
-- notice, this list of conditions and the following disclaimer. --
-- --
-- * Redistributions in binary form must reproduce the above copyright --
-- notice, this list of conditions and the following disclaimer in the --
-- documentation and/or other materials provided with the distribution. --
-- --
-- * Neither the name of the Vadim Godunko, IE nor the names of its --
-- contributors may be used to endorse or promote products derived from --
-- this software without specific prior written permission. --
-- --
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS --
-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT --
-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR --
-- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT --
-- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, --
-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED --
-- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR --
-- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF --
-- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING --
-- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS --
-- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --
-- --
------------------------------------------------------------------------------
-- $Revision$ $Date$
------------------------------------------------------------------------------
-- Root package of visitor pattern implementation. It provides two interface
-- types:
--
-- - Abstract_Visitor - root interface type for metamodel specific visitors.
-- Derived types provides pair of operations for each non-abstract class of
-- elements: Enter_<Class> and Leave_<Class>. They are called by iterator
-- when it enter or leave element;
--
-- - Abstract_Iterator - root interface type for metamodel specific
-- iterators. Derived types provides one operation for each non-abstract
-- class of elements: Visit_<Class>. It is responsible to call
-- Enter_<Class> and Leave_<Class> operations of visitor as well as to
-- control iteration.
------------------------------------------------------------------------------
with AMF.Elements;
package AMF.Visitors is
pragma Preelaborate;
type Traverse_Control is
(Continue,
Abandon_Children,
Abandon_Sibling,
Terminate_Immediately);
type Abstract_Visitor is limited interface;
-- Root interface type for metamodel specific visitors.
type Abstract_Iterator is limited interface;
-- Root interface type for metamodel specific iterators.
procedure Visit
(Self : in out Abstract_Iterator'Class;
Visitor : in out Abstract_Visitor'Class;
Element : not null AMF.Elements.Element_Access;
Control : in out Traverse_Control);
-- Visit specified element by calling:
--
-- - Enter_<Class> operation on visitor;
--
-- - Visit_<Class> operation on iterator;
--
-- - Leave_<Class> operation on visitor.
--
-- Internal double dispatching mechanism is used by implementation, so it
-- works on elements of any metamodel.
end AMF.Visitors;
| 54.44086 | 79 | 0.487656 |
29606b07e11b09580abb5c7c570f424f80702d31 | 6,330 | adb | Ada | source/nodes/program-nodes-element_iterator_specifications.adb | reznikmm/gela | 20134f1d154fb763812e73860c6f4b04f353df79 | [
"MIT"
] | null | null | null | source/nodes/program-nodes-element_iterator_specifications.adb | reznikmm/gela | 20134f1d154fb763812e73860c6f4b04f353df79 | [
"MIT"
] | null | null | null | source/nodes/program-nodes-element_iterator_specifications.adb | reznikmm/gela | 20134f1d154fb763812e73860c6f4b04f353df79 | [
"MIT"
] | 1 | 2019-10-16T09:05:27.000Z | 2019-10-16T09:05:27.000Z | -- SPDX-FileCopyrightText: 2019 Max Reznik <[email protected]>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
package body Program.Nodes.Element_Iterator_Specifications is
function Create
(Name : not null Program.Elements.Defining_Identifiers
.Defining_Identifier_Access;
Colon_Token : not null Program.Lexical_Elements
.Lexical_Element_Access;
Subtype_Indication : not null Program.Elements.Subtype_Indications
.Subtype_Indication_Access;
Of_Token : not null Program.Lexical_Elements
.Lexical_Element_Access;
Reverse_Token : Program.Lexical_Elements.Lexical_Element_Access;
Iterable_Name : not null Program.Elements.Expressions
.Expression_Access)
return Element_Iterator_Specification is
begin
return Result : Element_Iterator_Specification :=
(Name => Name, Colon_Token => Colon_Token,
Subtype_Indication => Subtype_Indication, Of_Token => Of_Token,
Reverse_Token => Reverse_Token, Iterable_Name => Iterable_Name,
Enclosing_Element => null)
do
Initialize (Result);
end return;
end Create;
function Create
(Name : not null Program.Elements.Defining_Identifiers
.Defining_Identifier_Access;
Subtype_Indication : not null Program.Elements.Subtype_Indications
.Subtype_Indication_Access;
Iterable_Name : not null Program.Elements.Expressions
.Expression_Access;
Is_Part_Of_Implicit : Boolean := False;
Is_Part_Of_Inherited : Boolean := False;
Is_Part_Of_Instance : Boolean := False;
Has_Reverse : Boolean := False)
return Implicit_Element_Iterator_Specification is
begin
return Result : Implicit_Element_Iterator_Specification :=
(Name => Name, Subtype_Indication => Subtype_Indication,
Iterable_Name => Iterable_Name,
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_Reverse => Has_Reverse, Enclosing_Element => null)
do
Initialize (Result);
end return;
end Create;
overriding function Name
(Self : Base_Element_Iterator_Specification)
return not null Program.Elements.Defining_Identifiers
.Defining_Identifier_Access is
begin
return Self.Name;
end Name;
overriding function Subtype_Indication
(Self : Base_Element_Iterator_Specification)
return not null Program.Elements.Subtype_Indications
.Subtype_Indication_Access is
begin
return Self.Subtype_Indication;
end Subtype_Indication;
overriding function Iterable_Name
(Self : Base_Element_Iterator_Specification)
return not null Program.Elements.Expressions.Expression_Access is
begin
return Self.Iterable_Name;
end Iterable_Name;
overriding function Colon_Token
(Self : Element_Iterator_Specification)
return not null Program.Lexical_Elements.Lexical_Element_Access is
begin
return Self.Colon_Token;
end Colon_Token;
overriding function Of_Token
(Self : Element_Iterator_Specification)
return not null Program.Lexical_Elements.Lexical_Element_Access is
begin
return Self.Of_Token;
end Of_Token;
overriding function Reverse_Token
(Self : Element_Iterator_Specification)
return Program.Lexical_Elements.Lexical_Element_Access is
begin
return Self.Reverse_Token;
end Reverse_Token;
overriding function Has_Reverse
(Self : Element_Iterator_Specification)
return Boolean is
begin
return Self.Reverse_Token.Assigned;
end Has_Reverse;
overriding function Is_Part_Of_Implicit
(Self : Implicit_Element_Iterator_Specification)
return Boolean is
begin
return Self.Is_Part_Of_Implicit;
end Is_Part_Of_Implicit;
overriding function Is_Part_Of_Inherited
(Self : Implicit_Element_Iterator_Specification)
return Boolean is
begin
return Self.Is_Part_Of_Inherited;
end Is_Part_Of_Inherited;
overriding function Is_Part_Of_Instance
(Self : Implicit_Element_Iterator_Specification)
return Boolean is
begin
return Self.Is_Part_Of_Instance;
end Is_Part_Of_Instance;
overriding function Has_Reverse
(Self : Implicit_Element_Iterator_Specification)
return Boolean is
begin
return Self.Has_Reverse;
end Has_Reverse;
procedure Initialize
(Self : in out Base_Element_Iterator_Specification'Class) is
begin
Set_Enclosing_Element (Self.Name, Self'Unchecked_Access);
Set_Enclosing_Element (Self.Subtype_Indication, Self'Unchecked_Access);
Set_Enclosing_Element (Self.Iterable_Name, Self'Unchecked_Access);
null;
end Initialize;
overriding function Is_Element_Iterator_Specification
(Self : Base_Element_Iterator_Specification)
return Boolean is
pragma Unreferenced (Self);
begin
return True;
end Is_Element_Iterator_Specification;
overriding function Is_Declaration
(Self : Base_Element_Iterator_Specification)
return Boolean is
pragma Unreferenced (Self);
begin
return True;
end Is_Declaration;
overriding procedure Visit
(Self : not null access Base_Element_Iterator_Specification;
Visitor : in out Program.Element_Visitors.Element_Visitor'Class) is
begin
Visitor.Element_Iterator_Specification (Self);
end Visit;
overriding function To_Element_Iterator_Specification_Text
(Self : in out Element_Iterator_Specification)
return Program.Elements.Element_Iterator_Specifications
.Element_Iterator_Specification_Text_Access is
begin
return Self'Unchecked_Access;
end To_Element_Iterator_Specification_Text;
overriding function To_Element_Iterator_Specification_Text
(Self : in out Implicit_Element_Iterator_Specification)
return Program.Elements.Element_Iterator_Specifications
.Element_Iterator_Specification_Text_Access is
pragma Unreferenced (Self);
begin
return null;
end To_Element_Iterator_Specification_Text;
end Program.Nodes.Element_Iterator_Specifications;
| 34.032258 | 77 | 0.729858 |
3dac5c75a19651b4bd7c5cd8fb4bb17ceaf29f19 | 4,712 | ada | Ada | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c7/c74402a.ada | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | 7 | 2020-05-02T17:34:05.000Z | 2021-10-17T10:15:18.000Z | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c7/c74402a.ada | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | null | null | null | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c7/c74402a.ada | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | 2 | 2020-07-27T00:22:36.000Z | 2021-04-01T09:41:02.000Z | -- C74402A.ADA
-- Grant of Unlimited Rights
--
-- Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687,
-- F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained
-- unlimited rights in the software and documentation contained herein.
-- Unlimited rights are defined in DFAR 252.227-7013(a)(19). By making
-- this public release, the Government intends to confer upon all
-- recipients unlimited rights equal to those held by the Government.
-- These rights include rights to use, duplicate, release or disclose the
-- released technical data and computer software in whole or in part, in
-- any manner and for any purpose whatsoever, and to have or permit others
-- to do so.
--
-- DISCLAIMER
--
-- ALL MATERIALS OR INFORMATION HEREIN RELEASED, MADE AVAILABLE OR
-- DISCLOSED ARE AS IS. THE GOVERNMENT MAKES NO EXPRESS OR IMPLIED
-- WARRANTY AS TO ANY MATTER WHATSOEVER, INCLUDING THE CONDITIONS OF THE
-- SOFTWARE, DOCUMENTATION OR OTHER INFORMATION RELEASED, MADE AVAILABLE
-- OR DISCLOSED, OR THE OWNERSHIP, MERCHANTABILITY, OR FITNESS FOR A
-- PARTICULAR PURPOSE OF SAID MATERIAL.
--*
-- CHECK THAT A SUBPROGRAM PARAMETER OF A LIMITED TYPE MAY HAVE A
-- DEFAULT EXPRESSION, EVEN IF THE SUBPROGRAM IS DECLARED OUTSIDE
-- THE PACKAGE THAT DECLARES THE LIMITED TYPE.
-- (SEE ALSO 6.4.2/T1 FOR TESTS OF OTHER LIMITED TYPES.)
-- DSJ 5/6/83
-- SPS 10/24/83
WITH REPORT;
PROCEDURE C74402A IS
USE REPORT;
BEGIN
TEST("C74402A", "CHECK THAT A SUBPROGRAM PARAMETER OF A LIMITED " &
"TYPE MAY HAVE A DEFAULT EXPRESSION, EVEN IF " &
"THE SUBPROGRAM IS DECLARED OUTSIDE THE PACKAGE " &
"THAT DECLARES THE LIMITED TYPE");
DECLARE
PACKAGE PACK1 IS
TYPE LP1 IS LIMITED PRIVATE;
TYPE LP2 IS ARRAY (1 .. 2) OF LP1;
TYPE LP3 IS
RECORD
C1, C2 : LP2;
END RECORD;
FUNCTION F1 RETURN LP1;
FUNCTION F2 RETURN LP2;
FUNCTION F3 RETURN LP3;
PROCEDURE G1 (X : LP1 := F1); -- LEGAL
PROCEDURE G2 (X : LP2 := F2); -- LEGAL
PROCEDURE G3 (X : LP3 := F3); -- LEGAL
PRIVATE
TYPE LP1 IS NEW INTEGER;
END PACK1;
PACKAGE BODY PACK1 IS
FUNCTION F1 RETURN LP1 IS
BEGIN
RETURN LP1'(1);
END F1;
FUNCTION F2 RETURN LP2 IS
BEGIN
RETURN LP2'(2,3);
END F2;
FUNCTION F3 RETURN LP3 IS
BEGIN
RETURN LP3'((4,5),(6,7));
END F3;
PROCEDURE G1 (X : LP1 := F1) IS
BEGIN
IF X /= LP1'(1) THEN
FAILED("WRONG DEFAULT VALUE - LP1");
END IF;
END G1;
PROCEDURE G2 (X : LP2 := F2) IS
BEGIN
IF X /= LP2'(2,3) THEN
FAILED("WRONG DEFAULT VALUE - LP2");
END IF;
END G2;
PROCEDURE G3 (X : LP3 := F3) IS
BEGIN
IF X /= LP3'((4,5),(6,7)) THEN
FAILED("WRONG DEFAULT VALUE - LP3");
END IF;
END G3;
BEGIN
G1; -- LEGAL, DEFAULT USED
G2; -- LEGAL, DEFAULT USED
G3; -- LEGAL, DEFAULT USED
G1(F1); -- LEGAL
G2(F2); -- LEGAL
G3(F3); -- LEGAL
END PACK1;
USE PACK1;
PROCEDURE G4 (X : LP1 := F1) IS
BEGIN
G1; -- LEGAL, DEFAULT USED
G1(X);
END G4;
PROCEDURE G5 (X : LP2 := F2) IS
BEGIN
G2; -- LEGAL, DEFAULT USED
G2(X);
END G5;
PROCEDURE G6 (X : LP3 := F3) IS
BEGIN
G3; -- DEFAULT USED
G3(X);
END G6;
BEGIN
G4; -- LEGAL, DEFAULT USED
G5; -- LEGAL, DEFAULT USED
G6; -- LEGAL, DEFAULT USED
G4(F1); -- LEGAL
G5(F2); -- LEGAL
G6(F3); -- LEGAL
END;
RESULT;
END C74402A;
| 30.4 | 79 | 0.468591 |
296edae10629cbaa3f3c5d4b20b6f712c4912d77 | 5,884 | ads | Ada | source/league/ucd/matreshka-internals-unicode-ucd-core_0012.ads | svn2github/matreshka | 9d222b3ad9da508855fb1f5adbe5e8a4fad4c530 | [
"BSD-3-Clause"
] | 24 | 2016-11-29T06:59:41.000Z | 2021-08-30T11:55:16.000Z | source/league/ucd/matreshka-internals-unicode-ucd-core_0012.ads | svn2github/matreshka | 9d222b3ad9da508855fb1f5adbe5e8a4fad4c530 | [
"BSD-3-Clause"
] | 2 | 2019-01-16T05:15:20.000Z | 2019-02-03T10:03:32.000Z | source/league/ucd/matreshka-internals-unicode-ucd-core_0012.ads | svn2github/matreshka | 9d222b3ad9da508855fb1f5adbe5e8a4fad4c530 | [
"BSD-3-Clause"
] | 4 | 2017-07-18T07:11:05.000Z | 2020-06-21T03:02:25.000Z | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- Localization, Internationalization, Globalization for Ada --
-- --
-- Runtime Library Component --
-- --
------------------------------------------------------------------------------
-- --
-- Copyright © 2012-2015, Vadim Godunko <[email protected]> --
-- All rights reserved. --
-- --
-- Redistribution and use in source and binary forms, with or without --
-- modification, are permitted provided that the following conditions --
-- are met: --
-- --
-- * Redistributions of source code must retain the above copyright --
-- notice, this list of conditions and the following disclaimer. --
-- --
-- * Redistributions in binary form must reproduce the above copyright --
-- notice, this list of conditions and the following disclaimer in the --
-- documentation and/or other materials provided with the distribution. --
-- --
-- * Neither the name of the Vadim Godunko, IE nor the names of its --
-- contributors may be used to endorse or promote products derived from --
-- this software without specific prior written permission. --
-- --
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS --
-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT --
-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR --
-- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT --
-- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, --
-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED --
-- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR --
-- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF --
-- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING --
-- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS --
-- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --
-- --
------------------------------------------------------------------------------
-- $Revision$ $Date$
------------------------------------------------------------------------------
pragma Restrictions (No_Elaboration_Code);
-- GNAT: enforce generation of preinitialized data section instead of
-- generation of elaboration code.
package Matreshka.Internals.Unicode.Ucd.Core_0012 is
pragma Preelaborate;
Group_0012 : aliased constant Core_Second_Stage
:= (16#49# => -- 1249
(Unassigned, Neutral,
Other, Other, Other, Unknown,
(others => False)),
16#4E# .. 16#4F# => -- 124E .. 124F
(Unassigned, Neutral,
Other, Other, Other, Unknown,
(others => False)),
16#57# => -- 1257
(Unassigned, Neutral,
Other, Other, Other, Unknown,
(others => False)),
16#59# => -- 1259
(Unassigned, Neutral,
Other, Other, Other, Unknown,
(others => False)),
16#5E# .. 16#5F# => -- 125E .. 125F
(Unassigned, Neutral,
Other, Other, Other, Unknown,
(others => False)),
16#89# => -- 1289
(Unassigned, Neutral,
Other, Other, Other, Unknown,
(others => False)),
16#8E# .. 16#8F# => -- 128E .. 128F
(Unassigned, Neutral,
Other, Other, Other, Unknown,
(others => False)),
16#B1# => -- 12B1
(Unassigned, Neutral,
Other, Other, Other, Unknown,
(others => False)),
16#B6# .. 16#B7# => -- 12B6 .. 12B7
(Unassigned, Neutral,
Other, Other, Other, Unknown,
(others => False)),
16#BF# => -- 12BF
(Unassigned, Neutral,
Other, Other, Other, Unknown,
(others => False)),
16#C1# => -- 12C1
(Unassigned, Neutral,
Other, Other, Other, Unknown,
(others => False)),
16#C6# .. 16#C7# => -- 12C6 .. 12C7
(Unassigned, Neutral,
Other, Other, Other, Unknown,
(others => False)),
16#D7# => -- 12D7
(Unassigned, Neutral,
Other, Other, Other, Unknown,
(others => False)),
others =>
(Other_Letter, Neutral,
Other, A_Letter, O_Letter, Alphabetic,
(Alphabetic
| Grapheme_Base
| ID_Continue
| ID_Start
| XID_Continue
| XID_Start => True,
others => False)));
end Matreshka.Internals.Unicode.Ucd.Core_0012;
| 49.864407 | 78 | 0.42913 |
22b941b3c82d3346ce5c67c43bf6c8ff6a6c0ba9 | 4,376 | ads | Ada | source/nodes/program-nodes-floating_point_types.ads | optikos/oasis | 9f64d46d26d964790d69f9db681c874cfb3bf96d | [
"MIT"
] | null | null | null | source/nodes/program-nodes-floating_point_types.ads | optikos/oasis | 9f64d46d26d964790d69f9db681c874cfb3bf96d | [
"MIT"
] | null | null | null | source/nodes/program-nodes-floating_point_types.ads | optikos/oasis | 9f64d46d26d964790d69f9db681c874cfb3bf96d | [
"MIT"
] | 2 | 2019-09-14T23:18:50.000Z | 2019-10-02T10:11:40.000Z | -- Copyright (c) 2019 Maxim Reznik <[email protected]>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Program.Lexical_Elements;
with Program.Elements.Expressions;
with Program.Elements.Real_Range_Specifications;
with Program.Elements.Floating_Point_Types;
with Program.Element_Visitors;
package Program.Nodes.Floating_Point_Types is
pragma Preelaborate;
type Floating_Point_Type is
new Program.Nodes.Node
and Program.Elements.Floating_Point_Types.Floating_Point_Type
and Program.Elements.Floating_Point_Types.Floating_Point_Type_Text
with private;
function Create
(Digits_Token : not null Program.Lexical_Elements
.Lexical_Element_Access;
Digits_Expression : not null Program.Elements.Expressions
.Expression_Access;
Real_Range : Program.Elements.Real_Range_Specifications
.Real_Range_Specification_Access)
return Floating_Point_Type;
type Implicit_Floating_Point_Type is
new Program.Nodes.Node
and Program.Elements.Floating_Point_Types.Floating_Point_Type
with private;
function Create
(Digits_Expression : not null Program.Elements.Expressions
.Expression_Access;
Real_Range : Program.Elements.Real_Range_Specifications
.Real_Range_Specification_Access;
Is_Part_Of_Implicit : Boolean := False;
Is_Part_Of_Inherited : Boolean := False;
Is_Part_Of_Instance : Boolean := False)
return Implicit_Floating_Point_Type
with Pre =>
Is_Part_Of_Implicit or Is_Part_Of_Inherited or Is_Part_Of_Instance;
private
type Base_Floating_Point_Type is
abstract new Program.Nodes.Node
and Program.Elements.Floating_Point_Types.Floating_Point_Type
with record
Digits_Expression : not null Program.Elements.Expressions
.Expression_Access;
Real_Range : Program.Elements.Real_Range_Specifications
.Real_Range_Specification_Access;
end record;
procedure Initialize (Self : aliased in out Base_Floating_Point_Type'Class);
overriding procedure Visit
(Self : not null access Base_Floating_Point_Type;
Visitor : in out Program.Element_Visitors.Element_Visitor'Class);
overriding function Digits_Expression
(Self : Base_Floating_Point_Type)
return not null Program.Elements.Expressions.Expression_Access;
overriding function Real_Range
(Self : Base_Floating_Point_Type)
return Program.Elements.Real_Range_Specifications
.Real_Range_Specification_Access;
overriding function Is_Floating_Point_Type_Element
(Self : Base_Floating_Point_Type)
return Boolean;
overriding function Is_Type_Definition_Element
(Self : Base_Floating_Point_Type)
return Boolean;
overriding function Is_Definition_Element
(Self : Base_Floating_Point_Type)
return Boolean;
type Floating_Point_Type is
new Base_Floating_Point_Type
and Program.Elements.Floating_Point_Types.Floating_Point_Type_Text
with record
Digits_Token : not null Program.Lexical_Elements
.Lexical_Element_Access;
end record;
overriding function To_Floating_Point_Type_Text
(Self : aliased in out Floating_Point_Type)
return Program.Elements.Floating_Point_Types
.Floating_Point_Type_Text_Access;
overriding function Digits_Token
(Self : Floating_Point_Type)
return not null Program.Lexical_Elements.Lexical_Element_Access;
type Implicit_Floating_Point_Type is
new Base_Floating_Point_Type
with record
Is_Part_Of_Implicit : Boolean;
Is_Part_Of_Inherited : Boolean;
Is_Part_Of_Instance : Boolean;
end record;
overriding function To_Floating_Point_Type_Text
(Self : aliased in out Implicit_Floating_Point_Type)
return Program.Elements.Floating_Point_Types
.Floating_Point_Type_Text_Access;
overriding function Is_Part_Of_Implicit
(Self : Implicit_Floating_Point_Type)
return Boolean;
overriding function Is_Part_Of_Inherited
(Self : Implicit_Floating_Point_Type)
return Boolean;
overriding function Is_Part_Of_Instance
(Self : Implicit_Floating_Point_Type)
return Boolean;
end Program.Nodes.Floating_Point_Types;
| 33.661538 | 79 | 0.744516 |
5716ca64a6ba20e891da42054f1f7b6100d00393 | 19,480 | ads | Ada | src/devices/SAMD51/ATSAMD51G18A/sam-functions.ads | Fabien-Chouteau/samd51-hal | 54d4b29df100502d8b3e3b4680a198640faa5f4d | [
"BSD-3-Clause"
] | 1 | 2020-02-24T23:19:03.000Z | 2020-02-24T23:19:03.000Z | src/devices/SAMD51/ATSAMD51G19A/sam-functions.ads | Fabien-Chouteau/samd51-hal | 54d4b29df100502d8b3e3b4680a198640faa5f4d | [
"BSD-3-Clause"
] | null | null | null | src/devices/SAMD51/ATSAMD51G19A/sam-functions.ads | Fabien-Chouteau/samd51-hal | 54d4b29df100502d8b3e3b4680a198640faa5f4d | [
"BSD-3-Clause"
] | null | null | null |
-- Generated by a script from an "avr tools device file" (atdf)
with SAM.Port; use SAM.Port;
package SAM.Functions is
PA04_AC_AIN0 : constant Peripheral_Function := B;
PA05_AC_AIN1 : constant Peripheral_Function := B;
PA06_AC_AIN2 : constant Peripheral_Function := B;
PA07_AC_AIN3 : constant Peripheral_Function := B;
PA12_AC_CMP0 : constant Peripheral_Function := M;
PA18_AC_CMP0 : constant Peripheral_Function := M;
PA13_AC_CMP1 : constant Peripheral_Function := M;
PA19_AC_CMP1 : constant Peripheral_Function := M;
PA02_ADC0_AIN0 : constant Peripheral_Function := B;
PA03_ADC0_AIN1 : constant Peripheral_Function := B;
PB08_ADC0_AIN2 : constant Peripheral_Function := B;
PB09_ADC0_AIN3 : constant Peripheral_Function := B;
PA04_ADC0_AIN4 : constant Peripheral_Function := B;
PA05_ADC0_AIN5 : constant Peripheral_Function := B;
PA06_ADC0_AIN6 : constant Peripheral_Function := B;
PA07_ADC0_AIN7 : constant Peripheral_Function := B;
PA08_ADC0_AIN8 : constant Peripheral_Function := B;
PA09_ADC0_AIN9 : constant Peripheral_Function := B;
PA10_ADC0_AIN10 : constant Peripheral_Function := B;
PA11_ADC0_AIN11 : constant Peripheral_Function := B;
PB02_ADC0_AIN14 : constant Peripheral_Function := B;
PB03_ADC0_AIN15 : constant Peripheral_Function := B;
PA03_ADC0_X0 : constant Peripheral_Function := B;
PA03_ADC0_Y0 : constant Peripheral_Function := B;
PB08_ADC0_X1 : constant Peripheral_Function := B;
PB08_ADC0_Y1 : constant Peripheral_Function := B;
PB09_ADC0_X2 : constant Peripheral_Function := B;
PB09_ADC0_Y2 : constant Peripheral_Function := B;
PA04_ADC0_X3 : constant Peripheral_Function := B;
PA04_ADC0_Y3 : constant Peripheral_Function := B;
PA06_ADC0_X4 : constant Peripheral_Function := B;
PA06_ADC0_Y4 : constant Peripheral_Function := B;
PA07_ADC0_X5 : constant Peripheral_Function := B;
PA07_ADC0_Y5 : constant Peripheral_Function := B;
PA08_ADC0_X6 : constant Peripheral_Function := B;
PA08_ADC0_Y6 : constant Peripheral_Function := B;
PA09_ADC0_X7 : constant Peripheral_Function := B;
PA09_ADC0_Y7 : constant Peripheral_Function := B;
PA10_ADC0_X8 : constant Peripheral_Function := B;
PA10_ADC0_Y8 : constant Peripheral_Function := B;
PA11_ADC0_X9 : constant Peripheral_Function := B;
PA11_ADC0_Y9 : constant Peripheral_Function := B;
PA16_ADC0_X10 : constant Peripheral_Function := B;
PA16_ADC0_Y10 : constant Peripheral_Function := B;
PA17_ADC0_X11 : constant Peripheral_Function := B;
PA17_ADC0_Y11 : constant Peripheral_Function := B;
PA18_ADC0_X12 : constant Peripheral_Function := B;
PA18_ADC0_Y12 : constant Peripheral_Function := B;
PA19_ADC0_X13 : constant Peripheral_Function := B;
PA19_ADC0_Y13 : constant Peripheral_Function := B;
PA20_ADC0_X14 : constant Peripheral_Function := B;
PA20_ADC0_Y14 : constant Peripheral_Function := B;
PA21_ADC0_X15 : constant Peripheral_Function := B;
PA21_ADC0_Y15 : constant Peripheral_Function := B;
PA22_ADC0_X16 : constant Peripheral_Function := B;
PA22_ADC0_Y16 : constant Peripheral_Function := B;
PA23_ADC0_X17 : constant Peripheral_Function := B;
PA23_ADC0_Y17 : constant Peripheral_Function := B;
PA27_ADC0_X18 : constant Peripheral_Function := B;
PA27_ADC0_Y18 : constant Peripheral_Function := B;
PA30_ADC0_X19 : constant Peripheral_Function := B;
PA30_ADC0_Y19 : constant Peripheral_Function := B;
PB02_ADC0_X20 : constant Peripheral_Function := B;
PB02_ADC0_Y20 : constant Peripheral_Function := B;
PB03_ADC0_X21 : constant Peripheral_Function := B;
PB03_ADC0_Y21 : constant Peripheral_Function := B;
PB08_ADC1_AIN0 : constant Peripheral_Function := B;
PB09_ADC1_AIN1 : constant Peripheral_Function := B;
PA08_ADC1_AIN2 : constant Peripheral_Function := B;
PA09_ADC1_AIN3 : constant Peripheral_Function := B;
PA04_CCL_IN0 : constant Peripheral_Function := N;
PA16_CCL_IN0 : constant Peripheral_Function := N;
PB22_CCL_IN0 : constant Peripheral_Function := N;
PA05_CCL_IN1 : constant Peripheral_Function := N;
PA17_CCL_IN1 : constant Peripheral_Function := N;
PA06_CCL_IN2 : constant Peripheral_Function := N;
PA18_CCL_IN2 : constant Peripheral_Function := N;
PA08_CCL_IN3 : constant Peripheral_Function := N;
PA30_CCL_IN3 : constant Peripheral_Function := N;
PA09_CCL_IN4 : constant Peripheral_Function := N;
PA10_CCL_IN5 : constant Peripheral_Function := N;
PA22_CCL_IN6 : constant Peripheral_Function := N;
PA23_CCL_IN7 : constant Peripheral_Function := N;
PA24_CCL_IN8 : constant Peripheral_Function := N;
PB08_CCL_IN8 : constant Peripheral_Function := N;
PB10_CCL_IN11 : constant Peripheral_Function := N;
PA07_CCL_OUT0 : constant Peripheral_Function := N;
PA19_CCL_OUT0 : constant Peripheral_Function := N;
PB02_CCL_OUT0 : constant Peripheral_Function := N;
PB23_CCL_OUT0 : constant Peripheral_Function := N;
PA11_CCL_OUT1 : constant Peripheral_Function := N;
PA31_CCL_OUT1 : constant Peripheral_Function := N;
PB11_CCL_OUT1 : constant Peripheral_Function := N;
PA25_CCL_OUT2 : constant Peripheral_Function := N;
PB09_CCL_OUT2 : constant Peripheral_Function := N;
PA02_DAC_VOUT0 : constant Peripheral_Function := B;
PA05_DAC_VOUT1 : constant Peripheral_Function := B;
PA00_EIC_EXTINT0 : constant Peripheral_Function := A;
PA16_EIC_EXTINT0 : constant Peripheral_Function := A;
PA01_EIC_EXTINT1 : constant Peripheral_Function := A;
PA17_EIC_EXTINT1 : constant Peripheral_Function := A;
PA02_EIC_EXTINT2 : constant Peripheral_Function := A;
PA18_EIC_EXTINT2 : constant Peripheral_Function := A;
PB02_EIC_EXTINT2 : constant Peripheral_Function := A;
PA03_EIC_EXTINT3 : constant Peripheral_Function := A;
PA19_EIC_EXTINT3 : constant Peripheral_Function := A;
PB03_EIC_EXTINT3 : constant Peripheral_Function := A;
PA04_EIC_EXTINT4 : constant Peripheral_Function := A;
PA20_EIC_EXTINT4 : constant Peripheral_Function := A;
PA05_EIC_EXTINT5 : constant Peripheral_Function := A;
PA21_EIC_EXTINT5 : constant Peripheral_Function := A;
PA06_EIC_EXTINT6 : constant Peripheral_Function := A;
PA22_EIC_EXTINT6 : constant Peripheral_Function := A;
PB22_EIC_EXTINT6 : constant Peripheral_Function := A;
PA07_EIC_EXTINT7 : constant Peripheral_Function := A;
PA23_EIC_EXTINT7 : constant Peripheral_Function := A;
PB23_EIC_EXTINT7 : constant Peripheral_Function := A;
PA24_EIC_EXTINT8 : constant Peripheral_Function := A;
PB08_EIC_EXTINT8 : constant Peripheral_Function := A;
PA09_EIC_EXTINT9 : constant Peripheral_Function := A;
PA25_EIC_EXTINT9 : constant Peripheral_Function := A;
PB09_EIC_EXTINT9 : constant Peripheral_Function := A;
PA10_EIC_EXTINT10 : constant Peripheral_Function := A;
PB10_EIC_EXTINT10 : constant Peripheral_Function := A;
PA11_EIC_EXTINT11 : constant Peripheral_Function := A;
PA27_EIC_EXTINT11 : constant Peripheral_Function := A;
PB11_EIC_EXTINT11 : constant Peripheral_Function := A;
PA12_EIC_EXTINT12 : constant Peripheral_Function := A;
PA13_EIC_EXTINT13 : constant Peripheral_Function := A;
PA30_EIC_EXTINT14 : constant Peripheral_Function := A;
PA14_EIC_EXTINT14 : constant Peripheral_Function := A;
PA15_EIC_EXTINT15 : constant Peripheral_Function := A;
PA31_EIC_EXTINT15 : constant Peripheral_Function := A;
PA08_EIC_NMI : constant Peripheral_Function := A;
PA30_GCLK_IO0 : constant Peripheral_Function := M;
PA14_GCLK_IO0 : constant Peripheral_Function := M;
PB22_GCLK_IO0 : constant Peripheral_Function := M;
PA15_GCLK_IO1 : constant Peripheral_Function := M;
PB23_GCLK_IO1 : constant Peripheral_Function := M;
PA27_GCLK_IO1 : constant Peripheral_Function := M;
PA16_GCLK_IO2 : constant Peripheral_Function := M;
PA17_GCLK_IO3 : constant Peripheral_Function := M;
PA10_GCLK_IO4 : constant Peripheral_Function := M;
PB10_GCLK_IO4 : constant Peripheral_Function := M;
PA11_GCLK_IO5 : constant Peripheral_Function := M;
PB11_GCLK_IO5 : constant Peripheral_Function := M;
PA14_PCC_CLK : constant Peripheral_Function := K;
PA16_PCC_DATA0 : constant Peripheral_Function := K;
PA17_PCC_DATA1 : constant Peripheral_Function := K;
PA18_PCC_DATA2 : constant Peripheral_Function := K;
PA19_PCC_DATA3 : constant Peripheral_Function := K;
PA20_PCC_DATA4 : constant Peripheral_Function := K;
PA21_PCC_DATA5 : constant Peripheral_Function := K;
PA22_PCC_DATA6 : constant Peripheral_Function := K;
PA23_PCC_DATA7 : constant Peripheral_Function := K;
PA12_PCC_DEN1 : constant Peripheral_Function := K;
PA13_PCC_DEN2 : constant Peripheral_Function := K;
PB23_PDEC_QDI0 : constant Peripheral_Function := G;
PA24_PDEC_QDI0 : constant Peripheral_Function := G;
PA25_PDEC_QDI1 : constant Peripheral_Function := G;
PB22_PDEC_QDI2 : constant Peripheral_Function := G;
PB11_QSPI_CS : constant Peripheral_Function := H;
PA08_QSPI_DATA0 : constant Peripheral_Function := H;
PA09_QSPI_DATA1 : constant Peripheral_Function := H;
PA10_QSPI_DATA2 : constant Peripheral_Function := H;
PA11_QSPI_DATA3 : constant Peripheral_Function := H;
PB10_QSPI_SCK : constant Peripheral_Function := H;
PA06_SDHC0_SDCD : constant Peripheral_Function := I;
PA12_SDHC0_SDCD : constant Peripheral_Function := I;
PB11_SDHC0_SDCK : constant Peripheral_Function := I;
PA08_SDHC0_SDCMD : constant Peripheral_Function := I;
PA09_SDHC0_SDDAT0 : constant Peripheral_Function := I;
PA10_SDHC0_SDDAT1 : constant Peripheral_Function := I;
PA11_SDHC0_SDDAT2 : constant Peripheral_Function := I;
PB10_SDHC0_SDDAT3 : constant Peripheral_Function := I;
PA07_SDHC0_SDWP : constant Peripheral_Function := I;
PA13_SDHC0_SDWP : constant Peripheral_Function := I;
PA04_SERCOM0_PAD0 : constant Peripheral_Function := D;
PA08_SERCOM0_PAD0 : constant Peripheral_Function := C;
PA05_SERCOM0_PAD1 : constant Peripheral_Function := D;
PA09_SERCOM0_PAD1 : constant Peripheral_Function := C;
PA06_SERCOM0_PAD2 : constant Peripheral_Function := D;
PA10_SERCOM0_PAD2 : constant Peripheral_Function := C;
PA07_SERCOM0_PAD3 : constant Peripheral_Function := D;
PA11_SERCOM0_PAD3 : constant Peripheral_Function := C;
PA00_SERCOM1_PAD0 : constant Peripheral_Function := D;
PA16_SERCOM1_PAD0 : constant Peripheral_Function := C;
PA01_SERCOM1_PAD1 : constant Peripheral_Function := D;
PA17_SERCOM1_PAD1 : constant Peripheral_Function := C;
PA30_SERCOM1_PAD2 : constant Peripheral_Function := D;
PA18_SERCOM1_PAD2 : constant Peripheral_Function := C;
PB22_SERCOM1_PAD2 : constant Peripheral_Function := C;
PA31_SERCOM1_PAD3 : constant Peripheral_Function := D;
PA19_SERCOM1_PAD3 : constant Peripheral_Function := C;
PB23_SERCOM1_PAD3 : constant Peripheral_Function := C;
PA09_SERCOM2_PAD0 : constant Peripheral_Function := D;
PA12_SERCOM2_PAD0 : constant Peripheral_Function := C;
PA08_SERCOM2_PAD1 : constant Peripheral_Function := D;
PA13_SERCOM2_PAD1 : constant Peripheral_Function := C;
PA10_SERCOM2_PAD2 : constant Peripheral_Function := D;
PA14_SERCOM2_PAD2 : constant Peripheral_Function := C;
PA11_SERCOM2_PAD3 : constant Peripheral_Function := D;
PA15_SERCOM2_PAD3 : constant Peripheral_Function := C;
PA17_SERCOM3_PAD0 : constant Peripheral_Function := D;
PA22_SERCOM3_PAD0 : constant Peripheral_Function := C;
PA16_SERCOM3_PAD1 : constant Peripheral_Function := D;
PA23_SERCOM3_PAD1 : constant Peripheral_Function := C;
PA18_SERCOM3_PAD2 : constant Peripheral_Function := D;
PA20_SERCOM3_PAD2 : constant Peripheral_Function := D;
PA24_SERCOM3_PAD2 : constant Peripheral_Function := C;
PA19_SERCOM3_PAD3 : constant Peripheral_Function := D;
PA21_SERCOM3_PAD3 : constant Peripheral_Function := D;
PA25_SERCOM3_PAD3 : constant Peripheral_Function := C;
PA13_SERCOM4_PAD0 : constant Peripheral_Function := D;
PB08_SERCOM4_PAD0 : constant Peripheral_Function := D;
PA12_SERCOM4_PAD1 : constant Peripheral_Function := D;
PB09_SERCOM4_PAD1 : constant Peripheral_Function := D;
PA14_SERCOM4_PAD2 : constant Peripheral_Function := D;
PB10_SERCOM4_PAD2 : constant Peripheral_Function := D;
PB11_SERCOM4_PAD3 : constant Peripheral_Function := D;
PA15_SERCOM4_PAD3 : constant Peripheral_Function := D;
PA23_SERCOM5_PAD0 : constant Peripheral_Function := D;
PB02_SERCOM5_PAD0 : constant Peripheral_Function := D;
PA22_SERCOM5_PAD1 : constant Peripheral_Function := D;
PB03_SERCOM5_PAD1 : constant Peripheral_Function := D;
PA24_SERCOM5_PAD2 : constant Peripheral_Function := D;
PB22_SERCOM5_PAD2 : constant Peripheral_Function := D;
PA20_SERCOM5_PAD2 : constant Peripheral_Function := C;
PA25_SERCOM5_PAD3 : constant Peripheral_Function := D;
PB23_SERCOM5_PAD3 : constant Peripheral_Function := D;
PA21_SERCOM5_PAD3 : constant Peripheral_Function := C;
PA04_TC0_WO0 : constant Peripheral_Function := E;
PA08_TC0_WO0 : constant Peripheral_Function := E;
PA05_TC0_WO1 : constant Peripheral_Function := E;
PA09_TC0_WO1 : constant Peripheral_Function := E;
PA06_TC1_WO0 : constant Peripheral_Function := E;
PA10_TC1_WO0 : constant Peripheral_Function := E;
PA07_TC1_WO1 : constant Peripheral_Function := E;
PA11_TC1_WO1 : constant Peripheral_Function := E;
PA12_TC2_WO0 : constant Peripheral_Function := E;
PA16_TC2_WO0 : constant Peripheral_Function := E;
PA00_TC2_WO0 : constant Peripheral_Function := E;
PA01_TC2_WO1 : constant Peripheral_Function := E;
PA13_TC2_WO1 : constant Peripheral_Function := E;
PA17_TC2_WO1 : constant Peripheral_Function := E;
PA18_TC3_WO0 : constant Peripheral_Function := E;
PA14_TC3_WO0 : constant Peripheral_Function := E;
PA15_TC3_WO1 : constant Peripheral_Function := E;
PA19_TC3_WO1 : constant Peripheral_Function := E;
PA20_TCC0_WO0 : constant Peripheral_Function := G;
PA08_TCC0_WO0 : constant Peripheral_Function := F;
PA21_TCC0_WO1 : constant Peripheral_Function := G;
PA09_TCC0_WO1 : constant Peripheral_Function := F;
PA22_TCC0_WO2 : constant Peripheral_Function := G;
PA10_TCC0_WO2 : constant Peripheral_Function := F;
PA23_TCC0_WO3 : constant Peripheral_Function := G;
PA11_TCC0_WO3 : constant Peripheral_Function := F;
PA16_TCC0_WO4 : constant Peripheral_Function := G;
PB10_TCC0_WO4 : constant Peripheral_Function := F;
PA17_TCC0_WO5 : constant Peripheral_Function := G;
PB11_TCC0_WO5 : constant Peripheral_Function := F;
PA18_TCC0_WO6 : constant Peripheral_Function := G;
PA12_TCC0_WO6 : constant Peripheral_Function := F;
PA19_TCC0_WO7 : constant Peripheral_Function := G;
PA13_TCC0_WO7 : constant Peripheral_Function := F;
PB10_TCC1_WO0 : constant Peripheral_Function := G;
PA16_TCC1_WO0 : constant Peripheral_Function := F;
PB11_TCC1_WO1 : constant Peripheral_Function := G;
PA17_TCC1_WO1 : constant Peripheral_Function := F;
PA12_TCC1_WO2 : constant Peripheral_Function := G;
PA14_TCC1_WO2 : constant Peripheral_Function := G;
PA18_TCC1_WO2 : constant Peripheral_Function := F;
PA13_TCC1_WO3 : constant Peripheral_Function := G;
PA15_TCC1_WO3 : constant Peripheral_Function := G;
PA19_TCC1_WO3 : constant Peripheral_Function := F;
PA08_TCC1_WO4 : constant Peripheral_Function := G;
PA20_TCC1_WO4 : constant Peripheral_Function := F;
PA09_TCC1_WO5 : constant Peripheral_Function := G;
PA21_TCC1_WO5 : constant Peripheral_Function := F;
PA10_TCC1_WO6 : constant Peripheral_Function := G;
PA22_TCC1_WO6 : constant Peripheral_Function := F;
PA11_TCC1_WO7 : constant Peripheral_Function := G;
PA23_TCC1_WO7 : constant Peripheral_Function := F;
PA14_TCC2_WO0 : constant Peripheral_Function := F;
PA30_TCC2_WO0 : constant Peripheral_Function := F;
PA15_TCC2_WO1 : constant Peripheral_Function := F;
PA31_TCC2_WO1 : constant Peripheral_Function := F;
PA24_TCC2_WO2 : constant Peripheral_Function := F;
PB02_TCC2_WO2 : constant Peripheral_Function := F;
PA24_USB_DM : constant Peripheral_Function := H;
PA25_USB_DP : constant Peripheral_Function := H;
PA23_USB_SOF_1KHZ : constant Peripheral_Function := H;
PB22_USB_SOF_1KHZ : constant Peripheral_Function := H;
end SAM.Functions;
| 64.503311 | 65 | 0.639836 |
06b5befd977eae36ac201c32d9a37f4676762539 | 11,578 | adb | Ada | src/dnscatcher/dns/transaction_manager/dnscatcher-dns-transaction_manager.adb | DNSCatcher/DNSCatcher | e3865fde5ae4bd5f833210150a9d30668a051d40 | [
"MIT"
] | 4 | 2019-09-23T23:55:34.000Z | 2020-05-02T07:25:32.000Z | src/dnscatcher/dns/transaction_manager/dnscatcher-dns-transaction_manager.adb | DNSCatcher/DNSCatcher | e3865fde5ae4bd5f833210150a9d30668a051d40 | [
"MIT"
] | null | null | null | src/dnscatcher/dns/transaction_manager/dnscatcher-dns-transaction_manager.adb | DNSCatcher/DNSCatcher | e3865fde5ae4bd5f833210150a9d30668a051d40 | [
"MIT"
] | null | null | null | -- Copyright 2019 Michael Casadevall <[email protected]>
--
-- Permission is hereby granted, free of charge, to any person obtaining a copy
-- of this software and associated documentation files (the "Software"), to
-- deal in the Software without restriction, including without limitation the
-- rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
-- sell copies of the Software, and to permit persons to whom the Software is
-- furnished to do so, subject to the following conditions:
--
-- The above copyright notice and this permission notice shall be included in
-- all copies or substantial portions of the Software.
--
-- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
-- THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
-- FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
-- DEALINGS IN THE SOFTWARE.
with Ada.Unchecked_Conversion;
with Ada.Unchecked_Deallocation;
with Ada.Exceptions; use Ada.Exceptions;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
with Ada.Strings.Hash;
with DNSCatcher.Utils; use DNSCatcher.Utils;
with DNSCatcher.Utils.Logger; use DNSCatcher.Utils.Logger;
with DNSCatcher.DNS.Processor.Packet; use DNSCatcher.DNS.Processor.Packet;
package body DNSCatcher.DNS.Transaction_Manager is
-- Handle the map for tracking transactions to/from source
task body DNS_Transaction_Manager_Task is
Outbound_Packet_Queue : DNS_Raw_Packet_Queue_Ptr;
Hashmap_Key : IP_Transaction_Key;
Hashmap_Cursor : DNS_Transaction_Maps.Cursor;
Outbound_Packet : Raw_Packet_Record;
Transaction_Hashmap : DNS_Transaction_Maps.Map;
Transaction : DNS_Transaction_Ptr;
Running : Boolean := False;
Logger_Packet : Logger_Message_Packet_Ptr;
Parsed_Packet : Parsed_DNS_Packet_Ptr;
begin
loop
Logger_Packet := null;
while Running = False
loop
Transaction := null;
select
accept Set_Packet_Queue (Queue : in DNS_Raw_Packet_Queue_Ptr) do
Outbound_Packet_Queue := Queue;
end Set_Packet_Queue;
or
accept Start do
if Outbound_Packet_Queue /= null
then
Logger_Packet := new Logger_Message_Packet;
Logger_Packet.Push_Component ("Transaction Manager");
Running := True;
Logger_Packet.Log_Message
(INFO, "Transaction Manager Started!");
Logger_Queue.Add_Packet (Logger_Packet);
end if;
end Start;
or
accept Stop do
null;
end Stop;
or
terminate;
end select;
end loop;
while Running
loop
Logger_Packet := new Logger_Message_Packet;
Logger_Packet.Push_Component ("Transaction Manager");
select
accept From_Client_Resolver_Packet
(Packet : Raw_Packet_Record_Ptr;
Local : Boolean) do
declare
Log_String : Unbounded_String;
Transaction_String : String (1 .. 8);
begin
Log_String :=
To_Unbounded_String ("Downstream DNS Transaction ID: ");
Put
(Transaction_String,
Integer (Packet.Raw_Data.Header.Identifier),
Base => 16);
Log_String :=
Log_String & To_Unbounded_String (Transaction_String);
Logger_Packet.Log_Message (DEBUG, To_String (Log_String));
end;
Hashmap_Key :=
IP_Transaction_Key
(Packet.To_Address & Packet.To_Port'Image &
Packet.Raw_Data.Header.Identifier'Image);
-- Create the key if necessary
Hashmap_Cursor := Transaction_Hashmap.Find (Hashmap_Key);
if Hashmap_Cursor = DNS_Transaction_Maps.No_Element
then
Transaction := new DNS_Transaction;
Transaction.Client_Resolver_Address :=
Packet.From_Address;
Transaction.Client_Resolver_Port := Packet.From_Port;
Transaction.Server_Resolver_Address := Packet.To_Address;
Transaction.Server_Resolver_Port := Packet.To_Port;
Transaction.DNS_Transaction_Id :=
Packet.Raw_Data.Header.Identifier;
Transaction.Local_Request := Local;
Transaction_Hashmap.Insert (Hashmap_Key, Transaction);
end if;
-- Save the packet
Transaction := Transaction_Hashmap (Hashmap_Key);
Transaction.From_Client_Resolver_Packet := Packet;
-- Try to parse the packet
Parsed_Packet := Packet_Parser (Logger_Packet, Packet);
Free_Parsed_DNS_Packet (Parsed_Packet);
-- Rewrite the DNS Packet and send it on it's way
Outbound_Packet_Queue.Put (Packet.all);
exception
when Exp_Error : others =>
begin
Logger_Packet.Log_Message
(ERROR,
"Transaction error: " &
Exception_Information (Exp_Error));
end;
end From_Client_Resolver_Packet;
or
accept From_Upstream_Resolver_Packet
(Packet : Raw_Packet_Record_Ptr) do
declare
Log_String : Unbounded_String;
Transaction_String : String (1 .. 8);
begin
Log_String :=
To_Unbounded_String ("Upstream DNS Transaction ID: ");
Put
(Transaction_String,
Integer (Packet.Raw_Data.Header.Identifier),
Base => 16);
Log_String :=
Log_String & To_Unbounded_String (Transaction_String);
Logger_Packet.Log_Message (DEBUG, To_String (Log_String));
end;
Hashmap_Key :=
IP_Transaction_Key
(Packet.From_Address & Packet.From_Port'Image &
Packet.Raw_Data.Header.Identifier'Image);
-- Create the key if necessary
Hashmap_Cursor := Transaction_Hashmap.Find (Hashmap_Key);
if Hashmap_Cursor = DNS_Transaction_Maps.No_Element
then
Transaction := new DNS_Transaction;
Transaction.Client_Resolver_Address := Packet.To_Address;
Transaction.Client_Resolver_Port := Packet.To_Port;
Transaction.Server_Resolver_Address :=
Packet.From_Address;
Transaction.Server_Resolver_Port := Packet.From_Port;
Transaction.DNS_Transaction_Id :=
Packet.Raw_Data.Header.Identifier;
Transaction_Hashmap.Insert (Hashmap_Key, Transaction);
end if;
-- Save the packet
Transaction := Transaction_Hashmap (Hashmap_Key);
Transaction.From_Upstream_Resolver_Packet := Packet;
-- Try to parse the packet
Parsed_Packet := Packet_Parser (Logger_Packet, Packet);
Logger_Packet.Log_Message
(INFO,
To_String (Transaction.Server_Resolver_Address) & " -> " &
To_String (Transaction.Client_Resolver_Address));
for I of Parsed_Packet.Answer
loop
Logger_Packet.Log_Message (INFO, " " & I.Print_Packet);
end loop;
Free_Parsed_DNS_Packet (Parsed_Packet);
-- If we're a local response, we don't resend it
if Transaction.Local_Request /= True
then
-- Flip the packet around so it goes to the right place
Outbound_Packet := Packet.all;
Outbound_Packet.To_Address :=
Transaction.Client_Resolver_Address;
Outbound_Packet.To_Port :=
Transaction.Client_Resolver_Port;
Outbound_Packet_Queue.Put (Outbound_Packet);
end if;
exception
when Exp_Error : others =>
begin
Logger_Packet.Log_Message
(ERROR,
"Transaction error: " &
Exception_Information (Exp_Error));
end;
end From_Upstream_Resolver_Packet;
or
accept Stop do
begin
Transaction_Hashmap.Iterate (Free_Hash_Map_Entry'Access);
end;
Running := False;
end Stop;
or
delay 0.1;
end select;
if Logger_Packet /= null
then
Logger_Queue.Add_Packet (Logger_Packet);
end if;
end loop;
end loop;
end DNS_Transaction_Manager_Task;
-- Clean up the pool and get rid of everything we don't need
procedure Free_Hash_Map_Entry (c : DNS_Transaction_Maps.Cursor) is
procedure Free_Transaction is new Ada.Unchecked_Deallocation
(Object => DNS_Transaction, Name => DNS_Transaction_Ptr);
procedure Free_Packet is new Ada.Unchecked_Deallocation
(Object => Raw_Packet_Record, Name => Raw_Packet_Record_Ptr);
P : DNS_Transaction_Ptr;
begin
P := Element (c);
if P.From_Client_Resolver_Packet /= null
then
if P.From_Client_Resolver_Packet.Raw_Data.Data /= null
then
Free_Stream_Element_Array_Ptr
(P.From_Client_Resolver_Packet.Raw_Data.Data);
end if;
Free_Packet (P.From_Client_Resolver_Packet);
end if;
if P.From_Upstream_Resolver_Packet /= null
then
if P.From_Upstream_Resolver_Packet.Raw_Data.Data /= null
then
Free_Stream_Element_Array_Ptr
(P.From_Upstream_Resolver_Packet.Raw_Data.Data);
end if;
Free_Packet (P.From_Upstream_Resolver_Packet);
end if;
Free_Transaction (P);
end Free_Hash_Map_Entry;
function IP_Transaction_Key_HashID
(id : IP_Transaction_Key)
return Hash_Type
is
begin
return Ada.Strings.Hash (To_String (id));
end IP_Transaction_Key_HashID;
end DNSCatcher.DNS.Transaction_Manager;
| 41.797834 | 79 | 0.5564 |
22fadbebb1bc919f3c8f4e090a4c42b3c0c05829 | 3,653 | adb | Ada | source/league/matreshka-internals-unicode.adb | svn2github/matreshka | 9d222b3ad9da508855fb1f5adbe5e8a4fad4c530 | [
"BSD-3-Clause"
] | 24 | 2016-11-29T06:59:41.000Z | 2021-08-30T11:55:16.000Z | source/league/matreshka-internals-unicode.adb | svn2github/matreshka | 9d222b3ad9da508855fb1f5adbe5e8a4fad4c530 | [
"BSD-3-Clause"
] | 2 | 2019-01-16T05:15:20.000Z | 2019-02-03T10:03:32.000Z | source/league/matreshka-internals-unicode.adb | svn2github/matreshka | 9d222b3ad9da508855fb1f5adbe5e8a4fad4c530 | [
"BSD-3-Clause"
] | 4 | 2017-07-18T07:11:05.000Z | 2020-06-21T03:02:25.000Z | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- Localization, Internationalization, Globalization for Ada --
-- --
-- Runtime Library Component --
-- --
------------------------------------------------------------------------------
-- --
-- Copyright © 2010, Vadim Godunko <[email protected]> --
-- All rights reserved. --
-- --
-- Redistribution and use in source and binary forms, with or without --
-- modification, are permitted provided that the following conditions --
-- are met: --
-- --
-- * Redistributions of source code must retain the above copyright --
-- notice, this list of conditions and the following disclaimer. --
-- --
-- * Redistributions in binary form must reproduce the above copyright --
-- notice, this list of conditions and the following disclaimer in the --
-- documentation and/or other materials provided with the distribution. --
-- --
-- * Neither the name of the Vadim Godunko, IE nor the names of its --
-- contributors may be used to endorse or promote products derived from --
-- this software without specific prior written permission. --
-- --
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS --
-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT --
-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR --
-- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT --
-- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, --
-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED --
-- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR --
-- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF --
-- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING --
-- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS --
-- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --
-- --
------------------------------------------------------------------------------
-- $Revision$ $Date$
------------------------------------------------------------------------------
package body Matreshka.Internals.Unicode is
--------------
-- Is_Valid --
--------------
function Is_Valid (Code : Code_Unit_32) return Boolean is
begin
return
Code in Code_Point and Code not in Surrogate_First .. Surrogate_Last;
end Is_Valid;
end Matreshka.Internals.Unicode;
| 62.982759 | 78 | 0.417739 |
128a30d176bb3f4dcb4a3e99c71f76daffb05f39 | 7,941 | ads | Ada | tools/scitools/conf/understand/ada/ada12/a-ztedit.ads | brucegua/moocos | 575c161cfa35e220f10d042e2e5ca18773691695 | [
"Apache-2.0"
] | 1 | 2020-01-20T21:26:46.000Z | 2020-01-20T21:26:46.000Z | tools/scitools/conf/understand/ada/ada12/a-ztedit.ads | brucegua/moocos | 575c161cfa35e220f10d042e2e5ca18773691695 | [
"Apache-2.0"
] | null | null | null | tools/scitools/conf/understand/ada/ada12/a-ztedit.ads | brucegua/moocos | 575c161cfa35e220f10d042e2e5ca18773691695 | [
"Apache-2.0"
] | null | null | null | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- A D A . W I D E _ W I D E _ T E X T _ I O . E D I T I N G --
-- --
-- S p e c --
-- --
-- Copyright (C) 1992-2009, 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. --
-- --
------------------------------------------------------------------------------
package Ada.Wide_Wide_Text_IO.Editing is
type Picture is private;
function Valid
(Pic_String : String;
Blank_When_Zero : Boolean := False) return Boolean;
function To_Picture
(Pic_String : String;
Blank_When_Zero : Boolean := False) return Picture;
function Pic_String (Pic : Picture) return String;
function Blank_When_Zero (Pic : Picture) return Boolean;
Max_Picture_Length : constant := 64;
Picture_Error : exception;
Default_Currency : constant Wide_Wide_String := "$";
Default_Fill : constant Wide_Wide_Character := ' ';
Default_Separator : constant Wide_Wide_Character := ',';
Default_Radix_Mark : constant Wide_Wide_Character := '.';
generic
type Num is delta <> digits <>;
Default_Currency : Wide_Wide_String :=
Wide_Wide_Text_IO.Editing.Default_Currency;
Default_Fill : Wide_Wide_Character :=
Wide_Wide_Text_IO.Editing.Default_Fill;
Default_Separator : Wide_Wide_Character :=
Wide_Wide_Text_IO.Editing.Default_Separator;
Default_Radix_Mark : Wide_Wide_Character :=
Wide_Wide_Text_IO.Editing.Default_Radix_Mark;
package Decimal_Output is
function Length
(Pic : Picture;
Currency : Wide_Wide_String := Default_Currency) return Natural;
function Valid
(Item : Num;
Pic : Picture;
Currency : Wide_Wide_String := Default_Currency) return Boolean;
function Image
(Item : Num;
Pic : Picture;
Currency : Wide_Wide_String := Default_Currency;
Fill : Wide_Wide_Character := Default_Fill;
Separator : Wide_Wide_Character := Default_Separator;
Radix_Mark : Wide_Wide_Character := Default_Radix_Mark)
return Wide_Wide_String;
procedure Put
(File : File_Type;
Item : Num;
Pic : Picture;
Currency : Wide_Wide_String := Default_Currency;
Fill : Wide_Wide_Character := Default_Fill;
Separator : Wide_Wide_Character := Default_Separator;
Radix_Mark : Wide_Wide_Character := Default_Radix_Mark);
procedure Put
(Item : Num;
Pic : Picture;
Currency : Wide_Wide_String := Default_Currency;
Fill : Wide_Wide_Character := Default_Fill;
Separator : Wide_Wide_Character := Default_Separator;
Radix_Mark : Wide_Wide_Character := Default_Radix_Mark);
procedure Put
(To : out Wide_Wide_String;
Item : Num;
Pic : Picture;
Currency : Wide_Wide_String := Default_Currency;
Fill : Wide_Wide_Character := Default_Fill;
Separator : Wide_Wide_Character := Default_Separator;
Radix_Mark : Wide_Wide_Character := Default_Radix_Mark);
end Decimal_Output;
private
MAX_PICSIZE : constant := 50;
MAX_MONEYSIZE : constant := 10;
Invalid_Position : constant := -1;
subtype Pic_Index is Natural range 0 .. MAX_PICSIZE;
type Picture_Record (Length : Pic_Index := 0) is record
Expanded : String (1 .. Length);
end record;
type Format_Record is record
Picture : Picture_Record;
-- Read only
Blank_When_Zero : Boolean;
-- Read/write
Original_BWZ : Boolean;
-- The following components get written
Star_Fill : Boolean := False;
Radix_Position : Integer := Invalid_Position;
Sign_Position,
Second_Sign : Integer := Invalid_Position;
Start_Float,
End_Float : Integer := Invalid_Position;
Start_Currency,
End_Currency : Integer := Invalid_Position;
Max_Leading_Digits : Integer := 0;
Max_Trailing_Digits : Integer := 0;
Max_Currency_Digits : Integer := 0;
Floater : Wide_Wide_Character := '!';
-- Initialized to illegal value
end record;
type Picture is record
Contents : Format_Record;
end record;
type Number_Attributes is record
Negative : Boolean := False;
Has_Fraction : Boolean := False;
Start_Of_Int,
End_Of_Int,
Start_Of_Fraction,
End_Of_Fraction : Integer := Invalid_Position; -- invalid value
end record;
function Parse_Number_String (Str : String) return Number_Attributes;
-- Assumed format is 'IMAGE or Fixed_IO.Put format (depends on no
-- trailing blanks...)
procedure Precalculate (Pic : in out Format_Record);
-- Precalculates fields from the user supplied data
function Format_Number
(Pic : Format_Record;
Number : String;
Currency_Symbol : Wide_Wide_String;
Fill_Character : Wide_Wide_Character;
Separator_Character : Wide_Wide_Character;
Radix_Point : Wide_Wide_Character) return Wide_Wide_String;
-- Formats number according to Pic
function Expand (Picture : String) return String;
end Ada.Wide_Wide_Text_IO.Editing;
| 39.904523 | 78 | 0.522226 |
226d14fca68c80e117f263ec471b60924879e880 | 3,689 | adb | Ada | source/libgela/gela-character_class_buffers.adb | faelys/gela-asis | 48a3bee90eda9f0c9d958b4e3c80a5a9b1c65253 | [
"BSD-3-Clause"
] | 4 | 2016-02-05T15:51:56.000Z | 2022-03-25T20:38:32.000Z | source/libgela/gela-character_class_buffers.adb | faelys/gela-asis | 48a3bee90eda9f0c9d958b4e3c80a5a9b1c65253 | [
"BSD-3-Clause"
] | null | null | null | source/libgela/gela-character_class_buffers.adb | faelys/gela-asis | 48a3bee90eda9f0c9d958b4e3c80a5a9b1c65253 | [
"BSD-3-Clause"
] | null | null | null | ------------------------------------------------------------------------------
-- G E L A A S I S --
-- ASIS implementation for Gela project, a portable Ada compiler --
-- http://gela.ada-ru.org --
-- - - - - - - - - - - - - - - - --
-- Read copyright and license at the end of this file --
------------------------------------------------------------------------------
-- $Revision: 209 $ $Date: 2013-11-30 21:03:24 +0200 (Сб., 30 нояб. 2013) $
package body Gela.Character_Class_Buffers is
---------
-- Put --
---------
procedure Put
(Object : in out Character_Class_Buffer;
Item : in Character_Class;
Full : in out Boolean)
is
begin
Object.Data (Object.Free) := Item;
Object.Free := Object.Free + 1;
Full := Full or
(Object.Free <= Array_Index'Last / 2) /=
(Object.Index <= Array_Index'Last / 2);
if Full then
Object.Data (Object.Free) := End_Of_Buffer;
end if;
end Put;
---------
-- Get --
---------
procedure Get
(Object : in out Character_Class_Buffer;
Item : out Character_Class)
is
begin
Object.Index := Object.Index + 1;
Item := Object.Data (Object.Index);
if Item = End_Of_Buffer then
Object.Index := Object.Index - 1;
end if;
end Get;
----------
-- Mark --
----------
procedure Mark (Object : in out Character_Class_Buffer) is
begin
Object.Mark := Object.Index;
end Mark;
------------------
-- Back_To_Mark --
------------------
procedure Back_To_Mark (Object : in out Character_Class_Buffer) is
begin
Object.Index := Object.Mark;
end Back_To_Mark;
end Gela.Character_Class_Buffers;
------------------------------------------------------------------------------
-- Copyright (c) 2008, Maxim Reznik
-- All rights reserved.
--
-- Redistribution and use in source and binary forms, with or without
-- modification, are permitted provided that the following conditions are met:
--
-- * Redistributions of source code must retain the above copyright notice,
-- this list of conditions and the following disclaimer.
-- * Redistributions in binary form must reproduce the above copyright
-- notice, this list of conditions and the following disclaimer in the
-- documentation and/or other materials provided with the distribution.
-- * Neither the name of the Maxim Reznik, IE nor the names of its
-- contributors may be used to endorse or promote products derived from
-- this software without specific prior written permission.
--
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
-- AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-- ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
-- LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-- CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-- SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-- INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-- CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-- POSSIBILITY OF SUCH DAMAGE.
--
------------------------------------------------------------------------------
| 38.030928 | 79 | 0.560586 |
2238516953aea5321aa05f9e8015fe9db88ff7c3 | 2,609 | ads | Ada | tools/scitools/conf/understand/ada/ada05/s-pack37.ads | brucegua/moocos | 575c161cfa35e220f10d042e2e5ca18773691695 | [
"Apache-2.0"
] | 1 | 2020-01-20T21:26:46.000Z | 2020-01-20T21:26:46.000Z | tools/scitools/conf/understand/ada/ada05/s-pack37.ads | brucegua/moocos | 575c161cfa35e220f10d042e2e5ca18773691695 | [
"Apache-2.0"
] | null | null | null | tools/scitools/conf/understand/ada/ada05/s-pack37.ads | brucegua/moocos | 575c161cfa35e220f10d042e2e5ca18773691695 | [
"Apache-2.0"
] | null | null | null | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- S Y S T E M . P A C K _ 3 7 --
-- --
-- S p e c --
-- --
-- Copyright (C) 1992-2005, Free Software Foundation, Inc. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 2, or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License --
-- for more details. You should have received a copy of the GNU General --
-- Public License distributed with GNAT; see file COPYING. If not, write --
-- to the Free Software Foundation, 51 Franklin Street, Fifth Floor, --
-- Boston, MA 02110-1301, USA. --
-- --
--
--
--
--
--
--
--
-- GNAT was originally developed by the GNAT team at New York University. --
-- Extensive contributions were provided by Ada Core Technologies Inc. --
-- --
------------------------------------------------------------------------------
-- Handling of packed arrays with Component_Size = 37
package System.Pack_37 is
pragma Preelaborate;
Bits : constant := 37;
type Bits_37 is mod 2 ** Bits;
for Bits_37'Size use Bits;
function Get_37 (Arr : System.Address; N : Natural) return Bits_37;
-- Arr is the address of the packed array, N is the zero-based
-- subscript. This element is extracted and returned.
procedure Set_37 (Arr : System.Address; N : Natural; E : Bits_37);
-- Arr is the address of the packed array, N is the zero-based
-- subscript. This element is set to the given value.
end System.Pack_37;
| 49.226415 | 78 | 0.439632 |
c75206111b861746ae7435c34ae8792fab986c52 | 2,098 | ads | Ada | .emacs.d/elpa/ada-mode-7.0.1/gpr_re2c_c.ads | caqg/linux-home | eed631aae6f5e59e4f46e14f1dff443abca5fa28 | [
"Linux-OpenIB"
] | null | null | null | .emacs.d/elpa/ada-mode-7.0.1/gpr_re2c_c.ads | caqg/linux-home | eed631aae6f5e59e4f46e14f1dff443abca5fa28 | [
"Linux-OpenIB"
] | null | null | null | .emacs.d/elpa/ada-mode-7.0.1/gpr_re2c_c.ads | caqg/linux-home | eed631aae6f5e59e4f46e14f1dff443abca5fa28 | [
"Linux-OpenIB"
] | null | null | null | -- generated parser support file.
-- command line: wisitoken-bnf-generate.exe --generate LR1 Ada_Emacs re2c PROCESS gpr.wy
--
-- Copyright (C) 2013 - 2019 Free Software Foundation, Inc.
-- This program is free software; you can redistribute it and/or
-- modify it under the terms of the GNU General Public License as
-- published by the Free Software Foundation; either version 3, or (at
-- your option) any later version.
--
-- This software 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 GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
with Interfaces.C;
with WisiToken;
with System;
package gpr_re2c_c is
function New_Lexer
(Buffer : in System.Address;
Length : in Interfaces.C.size_t;
Verbosity : in Interfaces.C.int)
return System.Address
with Import => True,
Convention => C,
External_Name => "gpr_new_lexer";
-- Create the lexer object, passing it the full text to process.
procedure Free_Lexer (Lexer : in out System.Address)
with Import => True,
Convention => C,
External_Name => "gpr_free_lexer";
-- Free the lexer object
procedure Reset_Lexer (Lexer : in System.Address)
with Import => True,
Convention => C,
External_Name => "gpr_reset_lexer";
function Next_Token
(Lexer : in System.Address;
ID : out WisiToken.Token_ID;
Byte_Position : out Interfaces.C.size_t;
Byte_Length : out Interfaces.C.size_t;
Char_Position : out Interfaces.C.size_t;
Char_Length : out Interfaces.C.size_t;
Line_Start : out Interfaces.C.int)
return Interfaces.C.int
with Import => True,
Convention => C,
External_Name => "gpr_next_token";
end gpr_re2c_c;
| 34.966667 | 90 | 0.657769 |
06ecef6853ef2b66dc86c1fce5f2768ecab4c45e | 8,605 | ads | Ada | src/sys/serialize/util-serialize-io-json.ads | RREE/ada-util | 58d1a4ba9cd69f2f19ca8fbdecd6c3df78ba7a27 | [
"Apache-2.0"
] | null | null | null | src/sys/serialize/util-serialize-io-json.ads | RREE/ada-util | 58d1a4ba9cd69f2f19ca8fbdecd6c3df78ba7a27 | [
"Apache-2.0"
] | null | null | null | src/sys/serialize/util-serialize-io-json.ads | RREE/ada-util | 58d1a4ba9cd69f2f19ca8fbdecd6c3df78ba7a27 | [
"Apache-2.0"
] | null | null | null | -----------------------------------------------------------------------
-- util-serialize-io-json -- JSON Serialization Driver
-- Copyright (C) 2010, 2011, 2012, 2016, 2017, 2020, 2021 Stephane Carrez
-- Written by Stephane Carrez ([email protected])
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.
-----------------------------------------------------------------------
with Ada.Strings.Unbounded;
with Ada.Streams;
with Util.Streams.Texts;
with Util.Stacks;
with Util.Beans.Objects;
package Util.Serialize.IO.JSON is
-- ------------------------------
-- JSON Output Stream
-- ------------------------------
-- The <b>Output_Stream</b> provides methods for creating a JSON output stream.
-- The stream object takes care of the JSON escape rules.
type Output_Stream is limited new Util.Serialize.IO.Output_Stream with private;
-- Set the target output stream.
procedure Initialize (Stream : in out Output_Stream;
Output : in Util.Streams.Texts.Print_Stream_Access);
-- Flush the buffer (if any) to the sink.
overriding
procedure Flush (Stream : in out Output_Stream);
-- Close the sink.
overriding
procedure Close (Stream : in out Output_Stream);
-- Write the buffer array to the output stream.
overriding
procedure Write (Stream : in out Output_Stream;
Buffer : in Ada.Streams.Stream_Element_Array);
-- Write a wide character on the stream doing some conversion if necessary.
-- The default implementation translates the wide character to a UTF-8 sequence.
procedure Write_Wide (Stream : in out Output_Stream;
Item : in Wide_Wide_Character);
-- Start a JSON document. This operation writes the initial JSON marker ('{').
overriding
procedure Start_Document (Stream : in out Output_Stream);
-- Finish a JSON document by writing the final JSON marker ('}').
overriding
procedure End_Document (Stream : in out Output_Stream);
-- Write the value as a JSON string. Special characters are escaped using the JSON
-- escape rules.
procedure Write_String (Stream : in out Output_Stream;
Value : in String);
-- Write the value as a JSON string. Special characters are escaped using the JSON
-- escape rules.
procedure Write_Wide_String (Stream : in out Output_Stream;
Value : in Wide_Wide_String);
-- Start a new JSON object. If the name is not empty, write it as a string
-- followed by the ':' (colon). The JSON object starts with '{' (curly brace).
-- Example: "list": {
procedure Start_Entity (Stream : in out Output_Stream;
Name : in String);
-- Terminates the current JSON object.
procedure End_Entity (Stream : in out Output_Stream;
Name : in String);
-- Write the attribute name/value pair.
overriding
procedure Write_Attribute (Stream : in out Output_Stream;
Name : in String;
Value : in String);
overriding
procedure Write_Wide_Attribute (Stream : in out Output_Stream;
Name : in String;
Value : in Wide_Wide_String);
overriding
procedure Write_Attribute (Stream : in out Output_Stream;
Name : in String;
Value : in Integer);
overriding
procedure Write_Attribute (Stream : in out Output_Stream;
Name : in String;
Value : in Boolean);
-- Write a JSON name/value pair. The value is written according to its type
-- Example: "name": null
-- "name": false
-- "name": 12
-- "name": "value"
procedure Write_Attribute (Stream : in out Output_Stream;
Name : in String;
Value : in Util.Beans.Objects.Object);
-- Write the attribute with a null value.
overriding
procedure Write_Null_Attribute (Stream : in out Output_Stream;
Name : in String);
-- Write a JSON name/value pair (see Write_Attribute).
procedure Write_Entity (Stream : in out Output_Stream;
Name : in String;
Value : in Util.Beans.Objects.Object);
-- Write a JSON name/value pair (see Write_Attribute).
overriding
procedure Write_Entity (Stream : in out Output_Stream;
Name : in String;
Value : in String);
overriding
procedure Write_Wide_Entity (Stream : in out Output_Stream;
Name : in String;
Value : in Wide_Wide_String);
overriding
procedure Write_Entity (Stream : in out Output_Stream;
Name : in String;
Value : in Boolean);
overriding
procedure Write_Entity (Stream : in out Output_Stream;
Name : in String;
Value : in Integer);
overriding
procedure Write_Entity (Stream : in out Output_Stream;
Name : in String;
Value : in Ada.Calendar.Time);
overriding
procedure Write_Long_Entity (Stream : in out Output_Stream;
Name : in String;
Value : in Long_Long_Integer);
overriding
procedure Write_Enum_Entity (Stream : in out Output_Stream;
Name : in String;
Value : in String);
-- Write an entity with a null value.
overriding
procedure Write_Null_Entity (Stream : in out Output_Stream;
Name : in String);
-- Starts a JSON array.
-- Example: "list": [
overriding
procedure Start_Array (Stream : in out Output_Stream;
Name : in String);
-- Terminates a JSON array.
overriding
procedure End_Array (Stream : in out Output_Stream;
Name : in String);
type Parser is new Serialize.IO.Parser with private;
-- Parse the stream using the JSON parser.
procedure Parse (Handler : in out Parser;
Stream : in out Util.Streams.Buffered.Input_Buffer_Stream'Class;
Sink : in out Reader'Class);
-- Get the current location (file and line) to report an error message.
function Get_Location (Handler : in Parser) return String;
-- Read a JSON file and return an object.
function Read (Path : in String) return Util.Beans.Objects.Object;
private
type Node_Info is record
Is_Array : Boolean := False;
Is_Root : Boolean := False;
Has_Fields : Boolean := False;
end record;
type Node_Info_Access is access all Node_Info;
package Node_Info_Stack is new Util.Stacks (Element_Type => Node_Info,
Element_Type_Access => Node_Info_Access);
type Output_Stream is limited new Util.Serialize.IO.Output_Stream with record
Stack : Node_Info_Stack.Stack;
Stream : Util.Streams.Texts.Print_Stream_Access;
end record;
procedure Write_Field_Name (Stream : in out Output_Stream;
Name : in String);
type Token_Type is (T_EOF, T_LEFT_BRACE, T_RIGHT_BRACE, T_LEFT_BRACKET,
T_RIGHT_BRACKET, T_COLON, T_COMMA, T_TRUE, T_FALSE,
T_STRING, T_FLOAT, T_NUMBER, T_BOOLEAN, T_UNKNOWN, T_NULL);
type Parser is new Util.Serialize.IO.Parser with record
Token : Ada.Strings.Unbounded.Unbounded_String;
Pending_Token : Token_Type := T_EOF;
Line_Number : Natural := 1;
Has_Pending_Char : Boolean := False;
Pending_Char : Character;
end record;
end Util.Serialize.IO.JSON;
| 39.113636 | 88 | 0.588263 |
c731e2b5954351a33b91c77f285048fd30442e1d | 964 | ads | Ada | source/resolver/program-interpretations-symbols.ads | reznikmm/gela | 20134f1d154fb763812e73860c6f4b04f353df79 | [
"MIT"
] | null | null | null | source/resolver/program-interpretations-symbols.ads | reznikmm/gela | 20134f1d154fb763812e73860c6f4b04f353df79 | [
"MIT"
] | null | null | null | source/resolver/program-interpretations-symbols.ads | reznikmm/gela | 20134f1d154fb763812e73860c6f4b04f353df79 | [
"MIT"
] | 1 | 2019-10-16T09:05:27.000Z | 2019-10-16T09:05:27.000Z | -- SPDX-FileCopyrightText: 2021 Max Reznik <[email protected]>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Ada.Iterator_Interfaces;
package Program.Interpretations.Symbols is
pragma Preelaborate;
type Cursor is record
Index : Natural;
Symbol : Program.Symbols.Symbol;
end record;
function Has_Element (Self : Cursor) return Boolean is (Self.Index > 0);
package Iterators is new Ada.Iterator_Interfaces (Cursor, Has_Element);
type Iterator is new Iterators.Forward_Iterator with private;
function Each (Set : Interpretation_Set) return Iterator;
private
type Iterator is new Iterators.Forward_Iterator with record
Set : Interpretation_Set;
end record;
overriding function First (Self : Iterator) return Cursor;
overriding function Next
(Self : Iterator;
Position : Cursor) return Cursor;
end Program.Interpretations.Symbols;
| 26.054054 | 75 | 0.687759 |
dfc0d5ea53d48950546fce26c14eda4890f1a695 | 4,192 | ads | Ada | src/notcurses-visual.ads | JeremyGrosser/notcursesada | 01c895ffe6b27069aaeca842bd6d01b27aead011 | [
"Apache-2.0"
] | 5 | 2021-05-14T10:02:36.000Z | 2021-11-03T18:53:58.000Z | src/notcurses-visual.ads | JeremyGrosser/notcursesada | 01c895ffe6b27069aaeca842bd6d01b27aead011 | [
"Apache-2.0"
] | null | null | null | src/notcurses-visual.ads | JeremyGrosser/notcursesada | 01c895ffe6b27069aaeca842bd6d01b27aead011 | [
"Apache-2.0"
] | null | null | null | package Notcurses.Visual is
type Notcurses_Visual is private;
type Scale_Mode is (None, Scale, Stretch, None_Hires, None_Scale_Hires);
type Blitter is (Blit_Default, Blit_1x1, Blit_2x1, Blit_2x2, Blit_3x2, Blit_Braille, Blit_Pixel, Blit_4x1, Blit_8x1);
type Visual_Flags is record
No_Degrade : Boolean := False; -- fail rather than degrade
Blend : Boolean := False; -- use NCALPHA_BLEND with visual
Horizontal_Aligned : Boolean := False; -- Position.X is an alignment, not absolute
Vertical_Aligned : Boolean := False; -- Position.Y is an alignment, not absolute
Add_Alpha : Boolean := False; -- transcolor is in effect
Child_Plane : Boolean := False; -- interpret n as parent
No_Interpolate : Boolean := False; -- non-interpolative scaling
end record
with Size => 64;
for Visual_Flags use record
No_Degrade at 0 range 0 .. 0;
Blend at 0 range 1 .. 1;
Horizontal_Aligned at 0 range 2 .. 2;
Vertical_Aligned at 0 range 3 .. 3;
Add_Alpha at 0 range 4 .. 4;
Child_Plane at 0 range 5 .. 5;
No_Interpolate at 0 range 6 .. 6;
end record;
type Visual_Options is record
Plane : Notcurses_Plane;
Scaling : Scale_Mode := None; -- ignored if Plane is provided
Position : Coordinate := (0, 0); -- Offset the visual from the origin of Plane (or Standard_Plane if Plane is null)
Origin : Coordinate := (0, 0); -- Mask the visual starting at Origin
Size : Coordinate := (0, 0); -- Size of the Mask, or (0, 0) if no mask should be applied
Blit : Blitter := Blit_Default; -- Glyph set to use. Default selects the best available for your terminal
Flags : Visual_Flags := (others => False);
Transparent_Color : Interfaces.Unsigned_32; -- if Flags.Add_Alpha, treat this color as transparent
end record;
type Decode_Status is (Ok, End_Of_File, Error);
type RGBA is record
R, G, B, A : Interfaces.Unsigned_8;
end record
with Size => 32;
type RGBA_Bitmap is array (Integer range <>, Integer range <>) of RGBA
with Component_Size => 32, Alignment => 4;
function From_Bitmap
(Bitmap : RGBA_Bitmap)
return Notcurses_Visual;
function From_File
(Filename : Wide_Wide_String)
return Notcurses_Visual;
function Dimensions
(Context : Notcurses_Context;
Visual : Notcurses_Visual;
Options : Visual_Options)
return Coordinate;
function Scale
(Context : Notcurses_Context;
Visual : Notcurses_Visual;
Options : Visual_Options)
return Coordinate;
function From_Plane
(Plane : Notcurses_Plane;
Blit : Blitter;
Position : Coordinate := (0, 0);
Size : Coordinate := (-1, -1))
return Notcurses_Visual;
function Media_Default_Blitter
(Context : Notcurses_Context;
Scale : Scale_Mode)
return Blitter;
procedure Set
(Visual : Notcurses_Visual;
Position : Coordinate;
Color : RGBA);
function Get
(Visual : Notcurses_Visual;
Position : Coordinate)
return RGBA;
procedure Render
(Context : Notcurses_Context;
Visual : Notcurses_Visual;
Options : Visual_Options;
Plane : out Notcurses_Plane);
function Decode
(Visual : Notcurses_Visual)
return Decode_Status;
procedure Destroy
(This : Notcurses_Visual);
private
type Notcurses_Visual is access all Thin.ncvisual;
function To_UInt64 is new Ada.Unchecked_Conversion
(Source => Visual_Flags,
Target => Interfaces.Unsigned_64);
function To_C
(O : Visual_Options)
return Thin.ncvisual_options;
function To_C is new Ada.Unchecked_Conversion
(Source => RGBA,
Target => Interfaces.Unsigned_32);
function To_Ada is new Ada.Unchecked_Conversion
(Source => Interfaces.Unsigned_32,
Target => RGBA);
end Notcurses.Visual;
| 33.806452 | 134 | 0.625477 |
587294da47132fe05a4fca47c740db744db6c8ca | 2,611 | adb | Ada | support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/s-stache.adb | orb-zhuchen/Orb | 6da2404b949ac28bde786e08bf4debe4a27cd3a0 | [
"CNRI-Python-GPL-Compatible",
"MIT"
] | null | null | null | support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/s-stache.adb | orb-zhuchen/Orb | 6da2404b949ac28bde786e08bf4debe4a27cd3a0 | [
"CNRI-Python-GPL-Compatible",
"MIT"
] | null | null | null | support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/s-stache.adb | orb-zhuchen/Orb | 6da2404b949ac28bde786e08bf4debe4a27cd3a0 | [
"CNRI-Python-GPL-Compatible",
"MIT"
] | null | null | null | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- S Y S T E M . S T A C K _ C H E C K I N G --
-- --
-- B o d y --
-- --
-- Copyright (C) 1999-2019, 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. --
-- --
------------------------------------------------------------------------------
pragma Compiler_Unit_Warning;
-- As noted in the spec, this dummy body is present because otherwise we
-- have bootstrapping path problems (there used to be a real body).
package body System.Stack_Checking is
end System.Stack_Checking;
| 66.948718 | 78 | 0.410188 |
418659bea40a38353dd8e2bb24e725d45f945b82 | 2,779 | ads | Ada | bb-runtimes/runtimes/ravenscar-full-stm32f3x4/gnat/s-mantis.ads | JCGobbi/Nucleo-STM32F334R8 | 2a0b1b4b2664c92773703ac5e95dcb71979d051c | [
"BSD-3-Clause"
] | null | null | null | bb-runtimes/runtimes/ravenscar-full-stm32f3x4/gnat/s-mantis.ads | JCGobbi/Nucleo-STM32F334R8 | 2a0b1b4b2664c92773703ac5e95dcb71979d051c | [
"BSD-3-Clause"
] | null | null | null | bb-runtimes/runtimes/ravenscar-full-stm32f3x4/gnat/s-mantis.ads | JCGobbi/Nucleo-STM32F334R8 | 2a0b1b4b2664c92773703ac5e95dcb71979d051c | [
"BSD-3-Clause"
] | null | null | null | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- S Y S T E M . M A N T I S S A --
-- --
-- S p e c --
-- --
-- Copyright (C) 1996-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 routine used for typ'Mantissa where typ is a
-- fixed-point type with non-static bounds.
package System.Mantissa is
pragma Pure;
function Mantissa_Value (First, Last : Integer) return Natural;
-- Compute Mantissa value from the given arguments, which are the First
-- and Last value of the fixed-point type, in Integer'Integer_Value form.
end System.Mantissa;
| 64.627907 | 78 | 0.361641 |
59c88f208c17b7730754dd68468b68bf1a5a917b | 6,945 | ads | Ada | ada_lexical_parser.ads | annexi-strayline/AURA | fbbc4bc963ee82872a67e088b68f0565ba5b50a7 | [
"BSD-3-Clause"
] | 13 | 2021-09-28T18:14:32.000Z | 2022-02-09T17:48:53.000Z | ada_lexical_parser.ads | annexi-strayline/AURA | fbbc4bc963ee82872a67e088b68f0565ba5b50a7 | [
"BSD-3-Clause"
] | 9 | 2021-09-28T19:18:25.000Z | 2022-01-14T22:54:06.000Z | ada_lexical_parser.ads | annexi-strayline/AURA | fbbc4bc963ee82872a67e088b68f0565ba5b50a7 | [
"BSD-3-Clause"
] | 1 | 2021-10-21T21:19:08.000Z | 2021-10-21T21:19:08.000Z | ------------------------------------------------------------------------------
-- --
-- Ada User Repository Annex (AURA) --
-- ANNEXI-STRAYLINE Reference Implementation --
-- --
-- Command Line Interface --
-- --
-- ------------------------------------------------------------------------ --
-- --
-- Copyright (C) 2019, ANNEXI-STRAYLINE Trans-Human Ltd. --
-- All rights reserved. --
-- --
-- Original Contributors: --
-- * Richard Wai (ANNEXI-STRAYLINE) --
-- --
-- Redistribution and use in source and binary forms, with or without --
-- modification, are permitted provided that the following conditions are --
-- met: --
-- --
-- * Redistributions of source code must retain the above copyright --
-- notice, this list of conditions and the following disclaimer. --
-- --
-- * Redistributions in binary form must reproduce the above copyright --
-- notice, this list of conditions and the following disclaimer in --
-- the documentation and/or other materials provided with the --
-- distribution. --
-- --
-- * Neither the name of the copyright holder nor the names of its --
-- contributors may be used to endorse or promote products derived --
-- from this software without specific prior written permission. --
-- --
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS --
-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT --
-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A --
-- PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT --
-- OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, --
-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT --
-- LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, --
-- DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY --
-- THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT --
-- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE --
-- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --
-- --
------------------------------------------------------------------------------
-- This package implements an extremely simply Ada (and gpr) lexical parser,
-- which utilized by the various other subsystems of the AURA CLI
--
-- This parser only handles parsing and categorizing each of the 7 types of
-- "lexical elements" defined by the Ada Reference Manual.
--
-- Obviously this parser should be invoked from the start of the Ada source.
with Ada.Streams;
with Ada.Strings.Wide_Wide_Unbounded;
package Ada_Lexical_Parser is
Invalid_Ada: exception;
type Lexical_Category is
(Delimiter,
Identifier,
Reserved_Word,
Numeric_Literal,
Character_Literal,
String_Literal,
Comment);
package WWU renames Ada.Strings.Wide_Wide_Unbounded;
type Lexical_Element is
record
Category: Lexical_Category;
Content : WWU.Unbounded_Wide_Wide_String;
end record;
-- Note that Character and String literals will be stripped of the
-- enclosing ''' or '"', respectivly
type Source_Position is
record
Absolute_Position: Positive := 1; -- Characters from start of stream
Line : Positive := 1;
Column : Positive := 1;
end record;
type Source_Buffer
(Stream: not null access Ada.Streams.Root_Stream_Type'Class)
is private;
-- The source buffer is used to permit look-ahead capabilities
-- when identifying compound delimiters
------------------
-- Next_Element --
------------------
function Next_Element (Source: in out Source_Buffer)
return Lexical_Element;
-- Returns the next lexical element in the Source_File.
--
-- -- Explicit Raises --
-- * Invalid_Ada: an illegal condition in the source was found.
-- Position (Source) will reveal to position of the
-- offending character
-------------------
-- Last_Position --
-------------------
function Last_Position (Source: Source_Buffer) return Source_Position;
-- Returns the position at of the first character of the last element
-- retrieved, or the last character to indicate invalid Ada
-- (Invalid_Ada raised during a call to Next_Element)
private
subtype Buffer_Count is Natural range 0 .. 10;
subtype Buffer_Index is Buffer_Count range 1 .. 10;
type Stream_Buffer is array (Buffer_Index) of Wide_Wide_Character;
type Line_Column_History is array (Buffer_Index) of Positive;
type Source_Buffer
(Stream: not null access Ada.Streams.Root_Stream_Type'Class)
is record
Content : Stream_Buffer;
Level : Buffer_Count := 0;
Next_Pos : Source_Position;
Last_Pos : Source_Position;
Line_History: Line_Column_History := (others => 1);
Last_Line : Buffer_Index := 1;
-- We track the last column of each previous line for the
-- maximum length of the buffer, so that we can backtrack the
-- column position when going "up" a line
--
-- Line_History takes the form of a circular buffer. This should be
-- fine, since it should mean the backtracking can never actually
-- cause the buffer to circle back ahead of itself
end record;
function Last_Position (Source: Source_Buffer) return Source_Position
is (Source.Last_Pos);
end Ada_Lexical_Parser;
| 46.3 | 78 | 0.513607 |
22e77186e024ebd06e46af2ddc483211c02e3234 | 5,032 | ads | Ada | bb-runtimes/runtimes/ravenscar-sfp-stm32f3x4/gnarl/s-bbinte.ads | JCGobbi/Nucleo-STM32F334R8 | 2a0b1b4b2664c92773703ac5e95dcb71979d051c | [
"BSD-3-Clause"
] | null | null | null | bb-runtimes/runtimes/ravenscar-sfp-stm32f3x4/gnarl/s-bbinte.ads | JCGobbi/Nucleo-STM32F334R8 | 2a0b1b4b2664c92773703ac5e95dcb71979d051c | [
"BSD-3-Clause"
] | null | null | null | bb-runtimes/runtimes/ravenscar-sfp-stm32f3x4/gnarl/s-bbinte.ads | JCGobbi/Nucleo-STM32F334R8 | 2a0b1b4b2664c92773703ac5e95dcb71979d051c | [
"BSD-3-Clause"
] | null | null | null | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- S Y S T E M . B B . I N T E R R U P T S --
-- --
-- S p e c --
-- --
-- Copyright (C) 1999-2002 Universidad Politecnica de Madrid --
-- Copyright (C) 2003-2004 The European Space Agency --
-- Copyright (C) 2003-2021, AdaCore --
-- --
-- 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. GNARL 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/>. --
-- --
-- GNARL was developed by the GNARL team at Florida State University. --
-- Extensive contributions were provided by Ada Core Technologies, Inc. --
-- --
-- The port of GNARL to bare board targets was initially developed by the --
-- Real-Time Systems Group at the Technical University of Madrid. --
-- --
------------------------------------------------------------------------------
-- Package in charge of implementing the basic routines for interrupt
-- management.
pragma Restrictions (No_Elaboration_Code);
with System;
with System.BB.Parameters;
package System.BB.Interrupts is
pragma Preelaborate;
subtype Interrupt_ID is System.BB.Parameters.Interrupt_Range;
-- Interrupt identifiers.
subtype Any_Interrupt_ID is Integer
range Interrupt_ID'First .. Interrupt_ID'Last + 1;
No_Interrupt : constant Any_Interrupt_ID := Any_Interrupt_ID'Last;
-- Special value indicating no interrupt
type Interrupt_Handler is access procedure (Id : Interrupt_ID);
-- Prototype of procedures used as low level handlers
procedure Initialize_Interrupts;
-- Initialize table containing the pointers to the different interrupt
-- stacks. Should be called before any other subprograms in this package.
procedure Interrupt_Wrapper (Id : Interrupt_ID);
-- This wrapper procedure is in charge of setting the appropriate
-- software priorities before calling the user-defined handler. It is
-- called directly by the Board_Support.
procedure Attach_Handler
(Handler : not null Interrupt_Handler;
Id : Interrupt_ID;
Prio : Interrupt_Priority);
pragma Inline (Attach_Handler);
-- Attach the procedure Handler as handler of the interrupt Id. Prio is
-- the priority of the associated protected object. This priority could be
-- used to program the hardware priority of the interrupt.
function Current_Interrupt return Any_Interrupt_ID;
-- Function that returns the hardware interrupt currently being handled on
-- the current CPU (if any). If no hardware interrupt is being handled the
-- returned value is No_Interrupt.
function Within_Interrupt_Stack
(Stack_Address : System.Address) return Boolean;
pragma Inline (Within_Interrupt_Stack);
-- Function that tells whether the Address passed as argument belongs to
-- the interrupt stack that is currently being used on current CPU (if
-- any). It returns True if Stack_Address is within the range of the
-- interrupt stack being used. False in case Stack_Address is not within
-- the interrupt stack (or no interrupt is being handled).
end System.BB.Interrupts;
| 54.107527 | 78 | 0.515501 |
c77c31ed180c391b9119ad8e41ff196dd6445397 | 1,054 | adb | Ada | build_gnu/binutils/gdb/testsuite/gdb.ada/mi_dyn_arr/pck.adb | jed-frey/e200-gcc | df1421b421a8ec8729d70791129f5283dee5f9ea | [
"BSD-3-Clause"
] | 1 | 2017-05-31T21:42:12.000Z | 2017-05-31T21:42:12.000Z | build_gnu/binutils/gdb/testsuite/gdb.ada/mi_dyn_arr/pck.adb | jed-frey/e200-gcc | df1421b421a8ec8729d70791129f5283dee5f9ea | [
"BSD-3-Clause"
] | null | null | null | build_gnu/binutils/gdb/testsuite/gdb.ada/mi_dyn_arr/pck.adb | jed-frey/e200-gcc | df1421b421a8ec8729d70791129f5283dee5f9ea | [
"BSD-3-Clause"
] | 1 | 2019-12-17T22:04:07.000Z | 2019-12-17T22:04:07.000Z | -- Copyright 2014 Free Software Foundation, Inc.
--
-- This program is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation; either version 3 of the License, or
-- (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program. If not, see <http://www.gnu.org/licenses/>.
package body Pck is
function New_Bounded (Low, High : Integer) return Bounded is
Result : Bounded (Low .. High);
begin
for J in Low .. High loop
Result (J) := J;
end loop;
return Result;
end New_Bounded;
procedure Do_Nothing (A : System.Address) is
begin
null;
end Do_Nothing;
end Pck;
| 34 | 73 | 0.696395 |
3d0da83e8e2a59f96ba443b39844ba4c45212eb3 | 1,062 | ads | Ada | src/css-core-refs.ads | stcarrez/ada-css | f7c337306094993186c507540701d04a4753b724 | [
"Apache-2.0"
] | 3 | 2017-01-03T22:18:22.000Z | 2017-01-10T07:58:17.000Z | src/css-core-refs.ads | stcarrez/ada-css | f7c337306094993186c507540701d04a4753b724 | [
"Apache-2.0"
] | null | null | null | src/css-core-refs.ads | stcarrez/ada-css | f7c337306094993186c507540701d04a4753b724 | [
"Apache-2.0"
] | null | null | null | -----------------------------------------------------------------------
-- css-core-refs -- References of CSS rules
-- Copyright (C) 2017 Stephane Carrez
-- Written by Stephane Carrez ([email protected])
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.
-----------------------------------------------------------------------
with Util.Refs;
package CSS.Core.Refs is
new Util.Refs.Indefinite_References (Element_Type => CSS.Core.CSSRule'Class,
Element_Access => CSS.Core.CSSRule_Access);
| 46.173913 | 83 | 0.612053 |
22f3189d90a33c0c8adc2abc151a5ae4a73de034 | 1,043 | ads | Ada | src/stopwatch.ads | mosteo/stopwatch | 86e7302d29f360f98f568b6015755229949b2194 | [
"MIT"
] | null | null | null | src/stopwatch.ads | mosteo/stopwatch | 86e7302d29f360f98f568b6015755229949b2194 | [
"MIT"
] | null | null | null | src/stopwatch.ads | mosteo/stopwatch | 86e7302d29f360f98f568b6015755229949b2194 | [
"MIT"
] | null | null | null | private with Ada.Calendar;
package Stopwatch is
type Instance is tagged private;
procedure Reset (This : in out Instance);
function Elapsed (This : Instance) return Duration;
procedure Hold (This : in out Instance; Enable : Boolean := True);
-- Stop counting time, or re-start if not Enable
procedure Release (This : in out Instance);
-- Equivalent to Hold (Enable => False)
function Is_Held (This : Instance) return Boolean;
function Image (This : Instance; Decimals : Natural := 2) return String;
-- Elapsed time in seconds, without leading space, without units
function Image (Elapsed : Duration; Decimals : Natural := 2) return String;
-- Convenience to format durations even without a stopwatch
private
use Ada.Calendar;
type Instance is tagged record
Start : Time := Clock;
-- Last moment the timer was released/started
Held : Boolean := False;
Elapsed : Duration := 0.0;
-- Track elapsed time when held
end record;
end Stopwatch;
| 26.075 | 78 | 0.676894 |
2f700a00138b1c8b25e5c753d1b1fb9cea6c4736 | 26,627 | ads | Ada | src/gen/gstreamer-gst_low_level-gstreamer_0_10_gst_interfaces_photography_h.ads | persan/A-gst | 7a39693d105617adea52680424c862a1a08f7368 | [
"Apache-2.0"
] | 1 | 2018-01-18T00:51:00.000Z | 2018-01-18T00:51:00.000Z | src/gen/gstreamer-gst_low_level-gstreamer_0_10_gst_interfaces_photography_h.ads | persan/A-gst | 7a39693d105617adea52680424c862a1a08f7368 | [
"Apache-2.0"
] | null | null | null | src/gen/gstreamer-gst_low_level-gstreamer_0_10_gst_interfaces_photography_h.ads | persan/A-gst | 7a39693d105617adea52680424c862a1a08f7368 | [
"Apache-2.0"
] | null | null | null | pragma Ada_2005;
pragma Style_Checks (Off);
pragma Warnings (Off);
with Interfaces.C; use Interfaces.C;
with GLIB; -- with GStreamer.GST_Low_Level.glibconfig_h;
with glib;
with glib.Values;
with System;
limited with GStreamer.GST_Low_Level.gstreamer_0_10_gst_gstcaps_h;
with glib;
with System;
package GStreamer.GST_Low_Level.gstreamer_0_10_gst_interfaces_photography_h is
-- unsupported macro: GST_TYPE_PHOTOGRAPHY (gst_photography_get_type ())
-- arg-macro: function GST_PHOTOGRAPHY (obj)
-- return GST_IMPLEMENTS_INTERFACE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_PHOTOGRAPHY, GstPhotography);
-- arg-macro: function GST_IS_PHOTOGRAPHY (obj)
-- return GST_IMPLEMENTS_INTERFACE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_PHOTOGRAPHY);
-- arg-macro: function GST_PHOTOGRAPHY_GET_IFACE (inst)
-- return G_TYPE_INSTANCE_GET_INTERFACE ((inst), GST_TYPE_PHOTOGRAPHY, GstPhotographyInterface);
GST_PHOTOGRAPHY_AUTOFOCUS_DONE : aliased constant String := "autofocus-done" & ASCII.NUL; -- gst/interfaces/photography.h:49
GST_PHOTOGRAPHY_SHAKE_RISK : aliased constant String := "shake-risk" & ASCII.NUL; -- gst/interfaces/photography.h:52
GST_PHOTOGRAPHY_PROP_WB_MODE : aliased constant String := "white-balance-mode" & ASCII.NUL; -- gst/interfaces/photography.h:55
GST_PHOTOGRAPHY_PROP_COLOUR_TONE : aliased constant String := "colour-tone-mode" & ASCII.NUL; -- gst/interfaces/photography.h:56
GST_PHOTOGRAPHY_PROP_SCENE_MODE : aliased constant String := "scene-mode" & ASCII.NUL; -- gst/interfaces/photography.h:57
GST_PHOTOGRAPHY_PROP_FLASH_MODE : aliased constant String := "flash-mode" & ASCII.NUL; -- gst/interfaces/photography.h:58
GST_PHOTOGRAPHY_PROP_NOISE_REDUCTION : aliased constant String := "noise-reduction" & ASCII.NUL; -- gst/interfaces/photography.h:59
GST_PHOTOGRAPHY_PROP_FOCUS_STATUS : aliased constant String := "focus-status" & ASCII.NUL; -- gst/interfaces/photography.h:60
GST_PHOTOGRAPHY_PROP_CAPABILITIES : aliased constant String := "capabilities" & ASCII.NUL; -- gst/interfaces/photography.h:61
GST_PHOTOGRAPHY_PROP_SHAKE_RISK : aliased constant String := "shake-risk" & ASCII.NUL; -- gst/interfaces/photography.h:62
GST_PHOTOGRAPHY_PROP_EV_COMP : aliased constant String := "ev-compensation" & ASCII.NUL; -- gst/interfaces/photography.h:63
GST_PHOTOGRAPHY_PROP_ISO_SPEED : aliased constant String := "iso-speed" & ASCII.NUL; -- gst/interfaces/photography.h:64
GST_PHOTOGRAPHY_PROP_APERTURE : aliased constant String := "aperture" & ASCII.NUL; -- gst/interfaces/photography.h:65
GST_PHOTOGRAPHY_PROP_EXPOSURE : aliased constant String := "exposure" & ASCII.NUL; -- gst/interfaces/photography.h:66
GST_PHOTOGRAPHY_PROP_IMAGE_CAPTURE_SUPPORTED_CAPS : aliased constant String := "image-capture-supported-caps" & ASCII.NUL; -- gst/interfaces/photography.h:67
GST_PHOTOGRAPHY_PROP_IMAGE_PREVIEW_SUPPORTED_CAPS : aliased constant String := "image-preview-supported-caps" & ASCII.NUL; -- gst/interfaces/photography.h:69
GST_PHOTOGRAPHY_PROP_FLICKER_MODE : aliased constant String := "flicker-mode" & ASCII.NUL; -- gst/interfaces/photography.h:71
GST_PHOTOGRAPHY_PROP_FOCUS_MODE : aliased constant String := "focus-mode" & ASCII.NUL; -- gst/interfaces/photography.h:72
GST_PHOTOGRAPHY_PROP_ZOOM : aliased constant String := "zoom" & ASCII.NUL; -- gst/interfaces/photography.h:73
-- GStreamer
-- *
-- * Copyright (C) 2008 Nokia Corporation <[email protected]>
-- *
-- * photography.h: photography interface for digital imaging
-- *
-- *
-- * 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.
--
-- Custom GstMessage name that will be sent to GstBus when autofocusing
-- is complete
-- Custom GstMessage name that will be sent to GstBus when shake risk changes
-- Interface property names
--*
-- * GstPhotography:
-- *
-- * Opaque #GstPhotography data structure.
--
-- skipped empty struct u_GstPhotography
-- skipped empty struct GstPhotography
--*
-- * GstPhotographyNoiseReduction:
-- * @GST_PHOTOGRAPHY_NOISE_REDUCTION_BAYER: Adaptive noise reduction on Bayer
-- * format
-- * @GST_PHOTOGRAPHY_NOISE_REDUCTION_YCC: reduces the noise on Y and 2-chroma
-- * images.
-- * @GST_PHOTOGRAPHY_NOISE_REDUCTION_TEMPORAL: Multi-frame adaptive NR,
-- * provided for the video mode
-- * @GST_PHOTOGRAPHY_NOISE_REDUCTION_FPN: Fixed Pattern Noise refers to noise
-- * that does not change between frames. The noise is removed from the sensor
-- * image, by subtracting a previously-captured black image in memory.
-- * @GST_PHOTOGRAPHY_NOISE_REDUCTION_EXTRA: Extra Noise Reduction. In the case
-- * of high-ISO capturing, some noise remains after YCC NR. XNR reduces this
-- * remaining noise.
-- *
-- * Noise Reduction features of a photography capture or filter element.
-- *
-- * Since: 0.10.21
--
subtype GstPhotographyNoiseReduction is unsigned;
GST_PHOTOGRAPHY_NOISE_REDUCTION_BAYER : constant GstPhotographyNoiseReduction := 1;
GST_PHOTOGRAPHY_NOISE_REDUCTION_YCC : constant GstPhotographyNoiseReduction := 2;
GST_PHOTOGRAPHY_NOISE_REDUCTION_TEMPORAL : constant GstPhotographyNoiseReduction := 4;
GST_PHOTOGRAPHY_NOISE_REDUCTION_FIXED : constant GstPhotographyNoiseReduction := 8;
GST_PHOTOGRAPHY_NOISE_REDUCTION_EXTRA : constant GstPhotographyNoiseReduction := 16; -- gst/interfaces/photography.h:108
type GstWhiteBalanceMode is
(GST_PHOTOGRAPHY_WB_MODE_AUTO,
GST_PHOTOGRAPHY_WB_MODE_DAYLIGHT,
GST_PHOTOGRAPHY_WB_MODE_CLOUDY,
GST_PHOTOGRAPHY_WB_MODE_SUNSET,
GST_PHOTOGRAPHY_WB_MODE_TUNGSTEN,
GST_PHOTOGRAPHY_WB_MODE_FLUORESCENT);
pragma Convention (C, GstWhiteBalanceMode); -- gst/interfaces/photography.h:118
type GstColourToneMode is
(GST_PHOTOGRAPHY_COLOUR_TONE_MODE_NORMAL,
GST_PHOTOGRAPHY_COLOUR_TONE_MODE_SEPIA,
GST_PHOTOGRAPHY_COLOUR_TONE_MODE_NEGATIVE,
GST_PHOTOGRAPHY_COLOUR_TONE_MODE_GRAYSCALE,
GST_PHOTOGRAPHY_COLOUR_TONE_MODE_NATURAL,
GST_PHOTOGRAPHY_COLOUR_TONE_MODE_VIVID,
GST_PHOTOGRAPHY_COLOUR_TONE_MODE_COLORSWAP,
GST_PHOTOGRAPHY_COLOUR_TONE_MODE_SOLARIZE,
GST_PHOTOGRAPHY_COLOUR_TONE_MODE_OUT_OF_FOCUS,
GST_PHOTOGRAPHY_COLOUR_TONE_MODE_SKY_BLUE,
GST_PHOTOGRAPHY_COLOUR_TONE_MODE_GRASS_GREEN,
GST_PHOTOGRAPHY_COLOUR_TONE_MODE_SKIN_WHITEN);
pragma Convention (C, GstColourToneMode); -- gst/interfaces/photography.h:134
type GstSceneMode is
(GST_PHOTOGRAPHY_SCENE_MODE_MANUAL,
GST_PHOTOGRAPHY_SCENE_MODE_CLOSEUP,
GST_PHOTOGRAPHY_SCENE_MODE_PORTRAIT,
GST_PHOTOGRAPHY_SCENE_MODE_LANDSCAPE,
GST_PHOTOGRAPHY_SCENE_MODE_SPORT,
GST_PHOTOGRAPHY_SCENE_MODE_NIGHT,
GST_PHOTOGRAPHY_SCENE_MODE_AUTO);
pragma Convention (C, GstSceneMode); -- gst/interfaces/photography.h:145
type GstFlashMode is
(GST_PHOTOGRAPHY_FLASH_MODE_AUTO,
GST_PHOTOGRAPHY_FLASH_MODE_OFF,
GST_PHOTOGRAPHY_FLASH_MODE_ON,
GST_PHOTOGRAPHY_FLASH_MODE_FILL_IN,
GST_PHOTOGRAPHY_FLASH_MODE_RED_EYE);
pragma Convention (C, GstFlashMode); -- gst/interfaces/photography.h:154
type GstFocusStatus is
(GST_PHOTOGRAPHY_FOCUS_STATUS_NONE,
GST_PHOTOGRAPHY_FOCUS_STATUS_RUNNING,
GST_PHOTOGRAPHY_FOCUS_STATUS_FAIL,
GST_PHOTOGRAPHY_FOCUS_STATUS_SUCCESS);
pragma Convention (C, GstFocusStatus); -- gst/interfaces/photography.h:162
subtype GstPhotoCaps is int;
GST_PHOTOGRAPHY_CAPS_NONE : constant GstPhotoCaps := 0;
GST_PHOTOGRAPHY_CAPS_EV_COMP : constant GstPhotoCaps := 1;
GST_PHOTOGRAPHY_CAPS_ISO_SPEED : constant GstPhotoCaps := 2;
GST_PHOTOGRAPHY_CAPS_WB_MODE : constant GstPhotoCaps := 4;
GST_PHOTOGRAPHY_CAPS_TONE : constant GstPhotoCaps := 8;
GST_PHOTOGRAPHY_CAPS_SCENE : constant GstPhotoCaps := 16;
GST_PHOTOGRAPHY_CAPS_FLASH : constant GstPhotoCaps := 32;
GST_PHOTOGRAPHY_CAPS_ZOOM : constant GstPhotoCaps := 64;
GST_PHOTOGRAPHY_CAPS_FOCUS : constant GstPhotoCaps := 128;
GST_PHOTOGRAPHY_CAPS_APERTURE : constant GstPhotoCaps := 256;
GST_PHOTOGRAPHY_CAPS_EXPOSURE : constant GstPhotoCaps := 512;
GST_PHOTOGRAPHY_CAPS_SHAKE : constant GstPhotoCaps := 1024;
GST_PHOTOGRAPHY_CAPS_NOISE_REDUCTION : constant GstPhotoCaps := 2048;
GST_PHOTOGRAPHY_CAPS_FLICKER_REDUCTION : constant GstPhotoCaps := 4096;
GST_PHOTOGRAPHY_CAPS_ALL : constant GstPhotoCaps := -1; -- gst/interfaces/photography.h:181
type GstPhotoShakeRisk is
(GST_PHOTOGRAPHY_SHAKE_RISK_LOW,
GST_PHOTOGRAPHY_SHAKE_RISK_MEDIUM,
GST_PHOTOGRAPHY_SHAKE_RISK_HIGH);
pragma Convention (C, GstPhotoShakeRisk); -- gst/interfaces/photography.h:188
type GstFlickerReductionMode is
(GST_PHOTOGRAPHY_FLICKER_REDUCTION_OFF,
GST_PHOTOGRAPHY_FLICKER_REDUCTION_50HZ,
GST_PHOTOGRAPHY_FLICKER_REDUCTION_60HZ,
GST_PHOTOGRAPHY_FLICKER_REDUCTION_AUTO);
pragma Convention (C, GstFlickerReductionMode); -- gst/interfaces/photography.h:196
type GstFocusMode is
(GST_PHOTOGRAPHY_FOCUS_MODE_AUTO,
GST_PHOTOGRAPHY_FOCUS_MODE_MACRO,
GST_PHOTOGRAPHY_FOCUS_MODE_PORTRAIT,
GST_PHOTOGRAPHY_FOCUS_MODE_INFINITY,
GST_PHOTOGRAPHY_FOCUS_MODE_HYPERFOCAL,
GST_PHOTOGRAPHY_FOCUS_MODE_EXTENDED,
GST_PHOTOGRAPHY_FOCUS_MODE_CONTINUOUS_NORMAL,
GST_PHOTOGRAPHY_FOCUS_MODE_CONTINUOUS_EXTENDED);
pragma Convention (C, GstFocusMode); -- gst/interfaces/photography.h:207
type GstPhotoSettings is record
wb_mode : aliased GstWhiteBalanceMode; -- gst/interfaces/photography.h:211
tone_mode : aliased GstColourToneMode; -- gst/interfaces/photography.h:212
scene_mode : aliased GstSceneMode; -- gst/interfaces/photography.h:213
flash_mode : aliased GstFlashMode; -- gst/interfaces/photography.h:214
exposure : aliased GLIB.guint32; -- gst/interfaces/photography.h:215
aperture : aliased GLIB.guint; -- gst/interfaces/photography.h:216
ev_compensation : aliased GLIB.gfloat; -- gst/interfaces/photography.h:217
iso_speed : aliased GLIB.guint; -- gst/interfaces/photography.h:218
zoom : aliased GLIB.gfloat; -- gst/interfaces/photography.h:219
flicker_mode : aliased GstFlickerReductionMode; -- gst/interfaces/photography.h:220
focus_mode : aliased GstFocusMode; -- gst/interfaces/photography.h:221
noise_reduction : aliased GstPhotographyNoiseReduction; -- gst/interfaces/photography.h:222
end record;
pragma Convention (C_Pass_By_Copy, GstPhotoSettings); -- gst/interfaces/photography.h:223
-- skipped anonymous struct anon_387
--*
-- * GstPhotoCapturePrepared:
-- * @data: user data that has been given, when registering the callback
-- * @configured_caps: #GstCaps defining the configured capture format.
-- * Ownership of these caps stays in the element.
-- *
-- * This callback will be called when the element has finished preparations
-- * for photo capture.
--
type GstPhotoCapturePrepared is access procedure (arg1 : System.Address; arg2 : access constant GStreamer.GST_Low_Level.gstreamer_0_10_gst_gstcaps_h.GstCaps);
pragma Convention (C, GstPhotoCapturePrepared); -- gst/interfaces/photography.h:234
--*
-- * GstPhotographyInterface:
-- * @parent: parent interface type.
-- * @get_ev_compensation: vmethod to get ev exposure compensation value
-- * @get_iso_speed: vmethod to get iso speed (light sensitivity) value
-- * @get_aperture: vmethod to get aperture value
-- * @get_exposure: vmethod to get exposure time value
-- * @get_white_balance_mode: vmethod to get white balance mode value
-- * @get_colour_tone_mode: vmethod to get colour tone mode value
-- * @get_scene_mode: vmethod to get scene mode value
-- * @get_flash_mode: vmethod to get flash mode value
-- * @get_noise_reduction: vmethod to get noise reduction mode value
-- * @get_zoom: vmethod to get zoom factor value
-- * @set_ev_compensation: vmethod to set ev exposure compensation value
-- * @set_iso_speed: vmethod to set iso speed (light sensitivity) value
-- * @set_aperture: vmethod to set aperture value
-- * @set_exposure: vmethod to set exposure time value
-- * @set_white_balance_mode: vmethod to set white balance mode value
-- * @set_colour_tone_mode: vmethod to set colour tone mode value
-- * @set_scene_mode: vmethod to set scene mode value
-- * @set_flash_mode: vmethod to set flash mode value
-- * @set_noise_reduction: vmethod to set noise reduction mode value
-- * @set_zoom: vmethod to set zoom factor value
-- * @get_capabilities: vmethod to get supported capabilities of the interface
-- * @prepare_for_capture: vmethod to tell the element to prepare for capturing
-- * @set_autofocus: vmethod to set autofocus on/off
-- * @set_config: vmethod to set all configuration parameters at once
-- * @get_config: vmethod to get all configuration parameters at once
-- * @get_image_capture_supported_caps: vmethod to get caps describing supported image capture formats
-- *
-- * #GstPhotographyInterface interface.
--
type u_GstPhotographyInterface_u_gst_reserved_array is array (0 .. 3) of System.Address;
type GstPhotographyInterface is record
parent : aliased GStreamer.GST_Low_Level.glib_2_0_gobject_gtype_h.GTypeInterface; -- gst/interfaces/photography.h:271
get_ev_compensation : access function (arg1 : System.Address; arg2 : access GLIB.gfloat) return GLIB.gboolean; -- gst/interfaces/photography.h:274
get_iso_speed : access function (arg1 : System.Address; arg2 : access GLIB.guint) return GLIB.gboolean; -- gst/interfaces/photography.h:275
get_aperture : access function (arg1 : System.Address; arg2 : access GLIB.guint) return GLIB.gboolean; -- gst/interfaces/photography.h:276
get_exposure : access function (arg1 : System.Address; arg2 : access GLIB.guint32) return GLIB.gboolean; -- gst/interfaces/photography.h:277
get_white_balance_mode : access function (arg1 : System.Address; arg2 : access GstWhiteBalanceMode) return GLIB.gboolean; -- gst/interfaces/photography.h:279
get_colour_tone_mode : access function (arg1 : System.Address; arg2 : access GstColourToneMode) return GLIB.gboolean; -- gst/interfaces/photography.h:281
get_scene_mode : access function (arg1 : System.Address; arg2 : access GstSceneMode) return GLIB.gboolean; -- gst/interfaces/photography.h:283
get_flash_mode : access function (arg1 : System.Address; arg2 : access GstFlashMode) return GLIB.gboolean; -- gst/interfaces/photography.h:285
get_zoom : access function (arg1 : System.Address; arg2 : access GLIB.gfloat) return GLIB.gboolean; -- gst/interfaces/photography.h:286
get_flicker_mode : access function (arg1 : System.Address; arg2 : access GstFlickerReductionMode) return GLIB.gboolean; -- gst/interfaces/photography.h:288
get_focus_mode : access function (arg1 : System.Address; arg2 : access GstFocusMode) return GLIB.gboolean; -- gst/interfaces/photography.h:290
set_ev_compensation : access function (arg1 : System.Address; arg2 : GLIB.gfloat) return GLIB.gboolean; -- gst/interfaces/photography.h:292
set_iso_speed : access function (arg1 : System.Address; arg2 : GLIB.guint) return GLIB.gboolean; -- gst/interfaces/photography.h:293
set_aperture : access function (arg1 : System.Address; arg2 : GLIB.guint) return GLIB.gboolean; -- gst/interfaces/photography.h:294
set_exposure : access function (arg1 : System.Address; arg2 : GLIB.guint32) return GLIB.gboolean; -- gst/interfaces/photography.h:295
set_white_balance_mode : access function (arg1 : System.Address; arg2 : GstWhiteBalanceMode) return GLIB.gboolean; -- gst/interfaces/photography.h:297
set_colour_tone_mode : access function (arg1 : System.Address; arg2 : GstColourToneMode) return GLIB.gboolean; -- gst/interfaces/photography.h:299
set_scene_mode : access function (arg1 : System.Address; arg2 : GstSceneMode) return GLIB.gboolean; -- gst/interfaces/photography.h:301
set_flash_mode : access function (arg1 : System.Address; arg2 : GstFlashMode) return GLIB.gboolean; -- gst/interfaces/photography.h:303
set_zoom : access function (arg1 : System.Address; arg2 : GLIB.gfloat) return GLIB.gboolean; -- gst/interfaces/photography.h:304
set_flicker_mode : access function (arg1 : System.Address; arg2 : GstFlickerReductionMode) return GLIB.gboolean; -- gst/interfaces/photography.h:306
set_focus_mode : access function (arg1 : System.Address; arg2 : GstFocusMode) return GLIB.gboolean; -- gst/interfaces/photography.h:308
get_capabilities : access function (arg1 : System.Address) return GstPhotoCaps; -- gst/interfaces/photography.h:310
prepare_for_capture : access function
(arg1 : System.Address;
arg2 : GstPhotoCapturePrepared;
arg3 : access GStreamer.GST_Low_Level.gstreamer_0_10_gst_gstcaps_h.GstCaps;
arg4 : System.Address) return GLIB.gboolean; -- gst/interfaces/photography.h:312
set_autofocus : access procedure (arg1 : System.Address; arg2 : GLIB.gboolean); -- gst/interfaces/photography.h:313
set_config : access function (arg1 : System.Address; arg2 : access GstPhotoSettings) return GLIB.gboolean; -- gst/interfaces/photography.h:314
get_config : access function (arg1 : System.Address; arg2 : access GstPhotoSettings) return GLIB.gboolean; -- gst/interfaces/photography.h:315
get_noise_reduction : access function (arg1 : System.Address; arg2 : access GstPhotographyNoiseReduction) return GLIB.gboolean; -- gst/interfaces/photography.h:318
set_noise_reduction : access function (arg1 : System.Address; arg2 : GstPhotographyNoiseReduction) return GLIB.gboolean; -- gst/interfaces/photography.h:320
u_gst_reserved : u_GstPhotographyInterface_u_gst_reserved_array; -- gst/interfaces/photography.h:323
end record;
pragma Convention (C_Pass_By_Copy, GstPhotographyInterface); -- gst/interfaces/photography.h:269
-- virtual functions
--< private >
--subtype GstPhotographyInterface is u_GstPhotographyInterface; -- gst/interfaces/photography.h:324
function gst_photography_get_type return GLIB.GType; -- gst/interfaces/photography.h:326
pragma Import (C, gst_photography_get_type, "gst_photography_get_type");
-- virtual class function wrappers
function gst_photography_get_ev_compensation (photo : System.Address; ev_comp : access GLIB.gfloat) return GLIB.gboolean; -- gst/interfaces/photography.h:329
pragma Import (C, gst_photography_get_ev_compensation, "gst_photography_get_ev_compensation");
function gst_photography_get_iso_speed (photo : System.Address; iso_speed : access GLIB.guint) return GLIB.gboolean; -- gst/interfaces/photography.h:331
pragma Import (C, gst_photography_get_iso_speed, "gst_photography_get_iso_speed");
function gst_photography_get_aperture (photo : System.Address; aperture : access GLIB.guint) return GLIB.gboolean; -- gst/interfaces/photography.h:333
pragma Import (C, gst_photography_get_aperture, "gst_photography_get_aperture");
function gst_photography_get_exposure (photo : System.Address; exposure : access GLIB.guint32) return GLIB.gboolean; -- gst/interfaces/photography.h:335
pragma Import (C, gst_photography_get_exposure, "gst_photography_get_exposure");
function gst_photography_get_white_balance_mode (photo : System.Address; wb_mode : access GstWhiteBalanceMode) return GLIB.gboolean; -- gst/interfaces/photography.h:337
pragma Import (C, gst_photography_get_white_balance_mode, "gst_photography_get_white_balance_mode");
function gst_photography_get_colour_tone_mode (photo : System.Address; tone_mode : access GstColourToneMode) return GLIB.gboolean; -- gst/interfaces/photography.h:339
pragma Import (C, gst_photography_get_colour_tone_mode, "gst_photography_get_colour_tone_mode");
function gst_photography_get_scene_mode (photo : System.Address; scene_mode : access GstSceneMode) return GLIB.gboolean; -- gst/interfaces/photography.h:341
pragma Import (C, gst_photography_get_scene_mode, "gst_photography_get_scene_mode");
function gst_photography_get_flash_mode (photo : System.Address; flash_mode : access GstFlashMode) return GLIB.gboolean; -- gst/interfaces/photography.h:343
pragma Import (C, gst_photography_get_flash_mode, "gst_photography_get_flash_mode");
function gst_photography_get_noise_reduction (photo : System.Address; noise_reduction : access GstPhotographyNoiseReduction) return GLIB.gboolean; -- gst/interfaces/photography.h:345
pragma Import (C, gst_photography_get_noise_reduction, "gst_photography_get_noise_reduction");
function gst_photography_get_zoom (photo : System.Address; zoom : access GLIB.gfloat) return GLIB.gboolean; -- gst/interfaces/photography.h:347
pragma Import (C, gst_photography_get_zoom, "gst_photography_get_zoom");
function gst_photography_get_flicker_mode (photo : System.Address; mode : access GstFlickerReductionMode) return GLIB.gboolean; -- gst/interfaces/photography.h:348
pragma Import (C, gst_photography_get_flicker_mode, "gst_photography_get_flicker_mode");
function gst_photography_get_focus_mode (photo : System.Address; mode : access GstFocusMode) return GLIB.gboolean; -- gst/interfaces/photography.h:350
pragma Import (C, gst_photography_get_focus_mode, "gst_photography_get_focus_mode");
function gst_photography_set_ev_compensation (photo : System.Address; ev_comp : GLIB.gfloat) return GLIB.gboolean; -- gst/interfaces/photography.h:353
pragma Import (C, gst_photography_set_ev_compensation, "gst_photography_set_ev_compensation");
function gst_photography_set_iso_speed (photo : System.Address; iso_speed : GLIB.guint) return GLIB.gboolean; -- gst/interfaces/photography.h:355
pragma Import (C, gst_photography_set_iso_speed, "gst_photography_set_iso_speed");
function gst_photography_set_aperture (photo : System.Address; aperture : GLIB.guint) return GLIB.gboolean; -- gst/interfaces/photography.h:357
pragma Import (C, gst_photography_set_aperture, "gst_photography_set_aperture");
function gst_photography_set_exposure (photo : System.Address; exposure : GLIB.guint) return GLIB.gboolean; -- gst/interfaces/photography.h:358
pragma Import (C, gst_photography_set_exposure, "gst_photography_set_exposure");
function gst_photography_set_white_balance_mode (photo : System.Address; wb_mode : GstWhiteBalanceMode) return GLIB.gboolean; -- gst/interfaces/photography.h:359
pragma Import (C, gst_photography_set_white_balance_mode, "gst_photography_set_white_balance_mode");
function gst_photography_set_colour_tone_mode (photo : System.Address; tone_mode : GstColourToneMode) return GLIB.gboolean; -- gst/interfaces/photography.h:361
pragma Import (C, gst_photography_set_colour_tone_mode, "gst_photography_set_colour_tone_mode");
function gst_photography_set_scene_mode (photo : System.Address; scene_mode : GstSceneMode) return GLIB.gboolean; -- gst/interfaces/photography.h:363
pragma Import (C, gst_photography_set_scene_mode, "gst_photography_set_scene_mode");
function gst_photography_set_flash_mode (photo : System.Address; flash_mode : GstFlashMode) return GLIB.gboolean; -- gst/interfaces/photography.h:365
pragma Import (C, gst_photography_set_flash_mode, "gst_photography_set_flash_mode");
function gst_photography_set_noise_reduction (photo : System.Address; noise_reduction : GstPhotographyNoiseReduction) return GLIB.gboolean; -- gst/interfaces/photography.h:367
pragma Import (C, gst_photography_set_noise_reduction, "gst_photography_set_noise_reduction");
function gst_photography_set_zoom (photo : System.Address; zoom : GLIB.gfloat) return GLIB.gboolean; -- gst/interfaces/photography.h:369
pragma Import (C, gst_photography_set_zoom, "gst_photography_set_zoom");
function gst_photography_set_flicker_mode (photo : System.Address; mode : GstFlickerReductionMode) return GLIB.gboolean; -- gst/interfaces/photography.h:370
pragma Import (C, gst_photography_set_flicker_mode, "gst_photography_set_flicker_mode");
function gst_photography_set_focus_mode (photo : System.Address; mode : GstFocusMode) return GLIB.gboolean; -- gst/interfaces/photography.h:372
pragma Import (C, gst_photography_set_focus_mode, "gst_photography_set_focus_mode");
function gst_photography_get_capabilities (photo : System.Address) return GstPhotoCaps; -- gst/interfaces/photography.h:375
pragma Import (C, gst_photography_get_capabilities, "gst_photography_get_capabilities");
function gst_photography_prepare_for_capture
(photo : System.Address;
func : GstPhotoCapturePrepared;
capture_caps : access GStreamer.GST_Low_Level.gstreamer_0_10_gst_gstcaps_h.GstCaps;
user_data : System.Address) return GLIB.gboolean; -- gst/interfaces/photography.h:377
pragma Import (C, gst_photography_prepare_for_capture, "gst_photography_prepare_for_capture");
procedure gst_photography_set_autofocus (photo : System.Address; on : GLIB.gboolean); -- gst/interfaces/photography.h:380
pragma Import (C, gst_photography_set_autofocus, "gst_photography_set_autofocus");
function gst_photography_set_config (photo : System.Address; config : access GstPhotoSettings) return GLIB.gboolean; -- gst/interfaces/photography.h:382
pragma Import (C, gst_photography_set_config, "gst_photography_set_config");
function gst_photography_get_config (photo : System.Address; config : access GstPhotoSettings) return GLIB.gboolean; -- gst/interfaces/photography.h:384
pragma Import (C, gst_photography_get_config, "gst_photography_get_config");
end GStreamer.GST_Low_Level.gstreamer_0_10_gst_interfaces_photography_h;
| 65.583744 | 186 | 0.77151 |
c7a51e23756e534436592804b51645944d6990f3 | 5,210 | ads | Ada | linear_algebra/peters_eigen.ads | jscparker/math_packages | b112a90338014d5c2dfae3f7265ee30841fb6cfd | [
"ISC",
"MIT"
] | 30 | 2018-12-09T01:15:04.000Z | 2022-03-20T16:14:54.000Z | linear_algebra/peters_eigen.ads | jscparker/math_packages | b112a90338014d5c2dfae3f7265ee30841fb6cfd | [
"ISC",
"MIT"
] | null | null | null | linear_algebra/peters_eigen.ads | jscparker/math_packages | b112a90338014d5c2dfae3f7265ee30841fb6cfd | [
"ISC",
"MIT"
] | null | null | null |
----------------------------------------------------------------------
-- package Peters_Eigen, eigendecomposition
-- Copyright (C) 2008-2018 Jonathan S. Parker.
--
-- Permission to use, copy, modify, and/or distribute this software for any
-- purpose with or without fee is hereby granted, provided that the above
-- copyright notice and this permission notice appear in all copies.
-- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
-- WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
-- MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
-- ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
-- WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
-- ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
-- OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
---------------------------------------------------------------------------
-- PACKAGE Peters_Eigen
--
-- Performs an eigen-decomposition on general square real matrices. All
-- arithmetic is real. The set of (potentially) complex eigenvalues is
-- returned as a pair of vectors W_r, W_i. (If the Matrix is symmetric,
-- then the eigenvalues should be real valued.)
--
-- Peters_Eigen is based on the original Eispack hqr2.f [1] routine with
-- several changes. The Hessenberg reduction was replaced with one based
-- on Givens rotations. The Eispack QR algorithm is retained with small
-- changes (guards to prevent floating point problems that occur with near-
-- zero numbers, and slightly modified inner loops to improve accuracy).
--
-- Eigenvalue error can be estimated if you have a higher precision floating
-- point available. Most Intel CPUs provide 18 digit floating point, so
-- instantiate Peters_Eigen with
--
-- "type Real is digits 18".
--
-- 1. Peters and Wilkinson, Num. Math. 16, 181-204 (1970)
--
-- 2. J G F Francis, "The QR Transformation, I", The Computer Journal,
-- vol. 4, no. 3, pages 265-271 (1961)
--
-- 3. Vera N Kublanovskaya, "On some algorithms for the solution of the
-- complete eigenvalue problem," USSR Computational Mathematics and
-- Mathematical Physics, vol. 1, no. 3, pages 637657
generic
type Real is digits <>;
type Index is range <>;
type Matrix is array (Index, Index) of Real;
package Peters_Eigen is
type Col_Vector is array(Index) of Real;
type Balance_Code is (Disabled, Partial, Full);
-- The default disables balancing. Balancing isn't recommended for general use.
-- If balancing is enabled, then eigenvectors are not orthogonal in general.
procedure Decompose
(A : in out Matrix;
Z_r, Z_i : out Matrix;
W_r, W_i : out Col_Vector;
Id_of_Failed_Eig : out Integer;
Starting_Col : in Index := Index'First;
Final_Col : in Index := Index'Last;
Eigenvectors_Desired : in Boolean := True;
Balance_Policy : in Balance_Code := Disabled);
--
-- If you set "Eigenvectors_Desired := False" then only Eigenvalues are
-- calculated.
--
-- Decomposition is performed on arbitrary diagonal blocks of matrix A.
--
-- A is destroyed (overwritten) by procedure Decompose.
--
-- Upper left corner of the diagonal block is (r,c) = (Starting_Col,Starting_Col)
-- Lower right corner of the diagonal block is (r,c) = (Final_Col, Final_Col)
--
-- Convergence is judged to be OK in range: Id_of_Failed_Eig+1 .. Final_Col.
--
-- If Eigenvectors_Desired = True, then
--
-- Real parts of eigvecs are returned as columns of Z_r.
-- Imaginary parts of eigvecs are returned as columns of Z_i.
--
-- Eigenvectors are normalized.
-- Computes right eigenvectors z: A*z = lambda*z
--
-- If Eigenvectors_Desired = False, then
--
-- Z_i is *not* initialized, (which frees up space if matrices are large).
--
-- Balancing is disabled by default.
--
-- The Q matrices won't be orthogonal if the matrix is balanced.
-- Sometimes balancing improves eigenvalue accuracy, sometimes it
-- degrades accuracy.
procedure Sort_Eigs_And_Vecs
(Z_r, Z_i : in out Matrix; -- eigvecs are columns of Z
W_r, W_i : in out Col_Vector;
Starting_Col : in Index := Index'First;
Final_Col : in Index := Index'Last);
--
-- Sorted according to size of: Sqrt (W_r**2 + W_i**2), largest first.
--
-- Notice that the eigvectors (Z_r, Z_i) are in out, so must be initialized.
--
-- Largest Eigs and their associated vectors are placed at:
-- Index'First, Index'First+1, ...
-- Notice that Sqrt (W_r**2 + W_i**2) is used, so numerical noise may mean
-- that the eigs are not sorted by magnitude of W_r**2 + W_i**2 alone.
function Norm
(V_r, V_i : in Col_Vector;
Starting_Col : in Index := Index'First;
Final_Col : in Index := Index'Last)
return Real;
--
-- Norm of complex vector V with components V(j) = (V_r(j), V_i(j))
end Peters_Eigen;
| 41.349206 | 86 | 0.64952 |
58eefe78a8a8f99120936ab54de24aca12f8ddd1 | 80,410 | adb | Ada | SDSoC_Workspace/bitirme_v4/Release/_sds/vhls/sobel_accel/solution/.autopilot/db/Sobel.bind.adb | ykpgrr/Lane-Detection-on-FPGA-SW-part-with-SDSoC | 6f2ed805ad74cee995162458d516a921bf2b434b | [
"Apache-2.0"
] | 1 | 2020-03-06T07:41:37.000Z | 2020-03-06T07:41:37.000Z | SDSoC_Workspace/bitirme_v4/Release/_sds/vhls/sobel_accel/solution/.autopilot/db/Sobel.bind.adb | ykpgrr/Lane-Detection-on-FPGA-SW-part-with-SDSoC | 6f2ed805ad74cee995162458d516a921bf2b434b | [
"Apache-2.0"
] | null | null | null | SDSoC_Workspace/bitirme_v4/Release/_sds/vhls/sobel_accel/solution/.autopilot/db/Sobel.bind.adb | ykpgrr/Lane-Detection-on-FPGA-SW-part-with-SDSoC | 6f2ed805ad74cee995162458d516a921bf2b434b | [
"Apache-2.0"
] | 2 | 2020-10-05T11:06:37.000Z | 2021-05-09T08:15:38.000Z | <?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>Sobel</name>
<ret_bitwidth>0</ret_bitwidth>
<ports class_id="2" tracking_level="0" version="0">
<count>8</count>
<item_version>0</item_version>
<item class_id="3" tracking_level="1" version="0" object_id="_1">
<Value class_id="4" tracking_level="0" version="0">
<Obj class_id="5" tracking_level="0" version="0">
<type>1</type>
<id>1</id>
<name>p_src_mat_rows_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>_src_mat.rows</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_src_mat_cols_read</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>_src_mat.cols</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_src_mat_data_V</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>_src_mat.data.V</originalName>
<rtlName></rtlName>
<coreName>RAM</coreName>
</Obj>
<bitwidth>8</bitwidth>
</Value>
<direction>0</direction>
<if_type>1</if_type>
<array_size>307200</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>p_dst_matx_rows_read</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>_dst_matx.rows</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<direction>0</direction>
<if_type>0</if_type>
<array_size>0</array_size>
<bit_vecs>
<count>0</count>
<item_version>0</item_version>
</bit_vecs>
</item>
<item class_id_reference="3" object_id="_5">
<Value>
<Obj>
<type>1</type>
<id>5</id>
<name>p_dst_matx_cols_read</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>_dst_matx.cols</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<direction>0</direction>
<if_type>0</if_type>
<array_size>0</array_size>
<bit_vecs>
<count>0</count>
<item_version>0</item_version>
</bit_vecs>
</item>
<item class_id_reference="3" object_id="_6">
<Value>
<Obj>
<type>1</type>
<id>6</id>
<name>p_dst_matx_data_V</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>_dst_matx.data.V</originalName>
<rtlName></rtlName>
<coreName>RAM</coreName>
</Obj>
<bitwidth>8</bitwidth>
</Value>
<direction>1</direction>
<if_type>1</if_type>
<array_size>307200</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>p_dst_maty_cols_read</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>_dst_maty.cols</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="_8">
<Value>
<Obj>
<type>1</type>
<id>8</id>
<name>p_dst_maty_data_V</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>_dst_maty.data.V</originalName>
<rtlName></rtlName>
<coreName>RAM</coreName>
</Obj>
<bitwidth>8</bitwidth>
</Value>
<direction>1</direction>
<if_type>1</if_type>
<array_size>307200</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>17</count>
<item_version>0</item_version>
<item class_id="9" tracking_level="1" version="0" object_id="_9">
<Value>
<Obj>
<type>0</type>
<id>9</id>
<name>p_dst_maty_cols_read_3</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>_dst_maty.cols</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>45</item>
<item>46</item>
</oprand_edges>
<opcode>read</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_delay>0.00</m_delay>
</item>
<item class_id_reference="9" object_id="_10">
<Value>
<Obj>
<type>0</type>
<id>10</id>
<name>p_dst_matx_cols_read_3</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>_dst_matx.cols</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>47</item>
<item>48</item>
</oprand_edges>
<opcode>read</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_delay>0.00</m_delay>
</item>
<item class_id_reference="9" object_id="_11">
<Value>
<Obj>
<type>0</type>
<id>11</id>
<name>p_dst_matx_rows_read_3</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>_dst_matx.rows</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>49</item>
<item>50</item>
</oprand_edges>
<opcode>read</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_delay>0.00</m_delay>
</item>
<item class_id_reference="9" object_id="_12">
<Value>
<Obj>
<type>0</type>
<id>12</id>
<name>p_src_mat_cols_read_3</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>_src_mat.cols</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>51</item>
<item>52</item>
</oprand_edges>
<opcode>read</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_delay>0.00</m_delay>
</item>
<item class_id_reference="9" object_id="_13">
<Value>
<Obj>
<type>0</type>
<id>13</id>
<name>p_src_mat_rows_read_3</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>_src_mat.rows</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>53</item>
<item>54</item>
</oprand_edges>
<opcode>read</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_delay>0.00</m_delay>
</item>
<item class_id_reference="9" object_id="_14">
<Value>
<Obj>
<type>0</type>
<id>14</id>
<name>p_dst_maty_cols_read_s</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>FIFO</coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>56</item>
</oprand_edges>
<opcode>alloca</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_delay>0.00</m_delay>
</item>
<item class_id_reference="9" object_id="_15">
<Value>
<Obj>
<type>0</type>
<id>15</id>
<name>p_dst_matx_cols_read_s</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>FIFO</coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>57</item>
</oprand_edges>
<opcode>alloca</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_delay>0.00</m_delay>
</item>
<item class_id_reference="9" object_id="_16">
<Value>
<Obj>
<type>0</type>
<id>16</id>
<name>p_dst_matx_rows_read_s</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>FIFO</coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>58</item>
</oprand_edges>
<opcode>alloca</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_delay>0.00</m_delay>
</item>
<item class_id_reference="9" object_id="_17">
<Value>
<Obj>
<type>0</type>
<id>17</id>
<name>p_src_mat_cols_read_c</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>FIFO</coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>59</item>
</oprand_edges>
<opcode>alloca</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_delay>0.00</m_delay>
</item>
<item class_id_reference="9" object_id="_18">
<Value>
<Obj>
<type>0</type>
<id>18</id>
<name>p_src_mat_rows_read_c</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>FIFO</coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>60</item>
</oprand_edges>
<opcode>alloca</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_delay>0.00</m_delay>
</item>
<item class_id_reference="9" object_id="_19">
<Value>
<Obj>
<type>0</type>
<id>20</id>
<name>p_src_V_V</name>
<fileName>C:/xfopencv/include\imgproc/xf_sobel.hpp</fileName>
<fileDirectory>C:/Users/yakup/workspace/bitirme_v4/Release</fileDirectory>
<lineNumber>1454</lineNumber>
<contextFuncName>Sobel&lt;0, 3, 0, 0, 480, 640, 1&gt;</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item class_id="11" tracking_level="0" version="0">
<first>C:/Users/yakup/workspace/bitirme_v4/Release</first>
<second class_id="12" tracking_level="0" version="0">
<count>1</count>
<item_version>0</item_version>
<item class_id="13" tracking_level="0" version="0">
<first class_id="14" tracking_level="0" version="0">
<first>C:/xfopencv/include\imgproc/xf_sobel.hpp</first>
<second>Sobel&lt;0, 3, 0, 0, 480, 640, 1&gt;</second>
</first>
<second>1454</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>_src.V.V</originalName>
<rtlName></rtlName>
<coreName>FIFO</coreName>
</Obj>
<bitwidth>8</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>61</item>
</oprand_edges>
<opcode>alloca</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_delay>0.00</m_delay>
</item>
<item class_id_reference="9" object_id="_20">
<Value>
<Obj>
<type>0</type>
<id>23</id>
<name>p_dstx_V_V</name>
<fileName>C:/xfopencv/include\imgproc/xf_sobel.hpp</fileName>
<fileDirectory>C:/Users/yakup/workspace/bitirme_v4/Release</fileDirectory>
<lineNumber>1455</lineNumber>
<contextFuncName>Sobel&lt;0, 3, 0, 0, 480, 640, 1&gt;</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:/Users/yakup/workspace/bitirme_v4/Release</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>C:/xfopencv/include\imgproc/xf_sobel.hpp</first>
<second>Sobel&lt;0, 3, 0, 0, 480, 640, 1&gt;</second>
</first>
<second>1455</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>_dstx.V.V</originalName>
<rtlName></rtlName>
<coreName>FIFO</coreName>
</Obj>
<bitwidth>8</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>62</item>
</oprand_edges>
<opcode>alloca</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_delay>0.00</m_delay>
</item>
<item class_id_reference="9" object_id="_21">
<Value>
<Obj>
<type>0</type>
<id>26</id>
<name>p_dsty_V_V</name>
<fileName>C:/xfopencv/include\imgproc/xf_sobel.hpp</fileName>
<fileDirectory>C:/Users/yakup/workspace/bitirme_v4/Release</fileDirectory>
<lineNumber>1456</lineNumber>
<contextFuncName>Sobel&lt;0, 3, 0, 0, 480, 640, 1&gt;</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:/Users/yakup/workspace/bitirme_v4/Release</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>C:/xfopencv/include\imgproc/xf_sobel.hpp</first>
<second>Sobel&lt;0, 3, 0, 0, 480, 640, 1&gt;</second>
</first>
<second>1456</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>_dsty.V.V</originalName>
<rtlName></rtlName>
<coreName>FIFO</coreName>
</Obj>
<bitwidth>8</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>63</item>
</oprand_edges>
<opcode>alloca</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_delay>0.00</m_delay>
</item>
<item class_id_reference="9" object_id="_22">
<Value>
<Obj>
<type>0</type>
<id>39</id>
<name></name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>13</count>
<item_version>0</item_version>
<item>65</item>
<item>66</item>
<item>67</item>
<item>68</item>
<item>69</item>
<item>70</item>
<item>71</item>
<item>72</item>
<item>73</item>
<item>74</item>
<item>75</item>
<item>76</item>
<item>77</item>
</oprand_edges>
<opcode>call</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_delay>3.63</m_delay>
</item>
<item class_id_reference="9" object_id="_23">
<Value>
<Obj>
<type>0</type>
<id>40</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>8</count>
<item_version>0</item_version>
<item>79</item>
<item>80</item>
<item>81</item>
<item>82</item>
<item>83</item>
<item>84</item>
<item>325</item>
<item>326</item>
</oprand_edges>
<opcode>call</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_delay>0.00</m_delay>
</item>
<item class_id_reference="9" object_id="_24">
<Value>
<Obj>
<type>0</type>
<id>41</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>11</count>
<item_version>0</item_version>
<item>86</item>
<item>87</item>
<item>88</item>
<item>89</item>
<item>90</item>
<item>91</item>
<item>92</item>
<item>93</item>
<item>323</item>
<item>324</item>
<item>327</item>
</oprand_edges>
<opcode>call</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_delay>0.00</m_delay>
</item>
<item class_id_reference="9" object_id="_25">
<Value>
<Obj>
<type>0</type>
<id>42</id>
<name></name>
<fileName>C:/xfopencv/include\imgproc/xf_sobel.hpp</fileName>
<fileDirectory>C:/Users/yakup/workspace/bitirme_v4/Release</fileDirectory>
<lineNumber>1490</lineNumber>
<contextFuncName>Sobel&lt;0, 3, 0, 0, 480, 640, 1&gt;</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:/Users/yakup/workspace/bitirme_v4/Release</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>C:/xfopencv/include\imgproc/xf_sobel.hpp</first>
<second>Sobel&lt;0, 3, 0, 0, 480, 640, 1&gt;</second>
</first>
<second>1490</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_delay>0.00</m_delay>
</item>
</nodes>
<consts class_id="15" tracking_level="0" version="0">
<count>4</count>
<item_version>0</item_version>
<item class_id="16" tracking_level="1" version="0" object_id="_26">
<Value>
<Obj>
<type>2</type>
<id>55</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<const_type>0</const_type>
<content>1</content>
</item>
<item class_id_reference="16" object_id="_27">
<Value>
<Obj>
<type>2</type>
<id>64</id>
<name>Sobel_Loop_1_proc374</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<const_type>6</const_type>
<content><constant:Sobel_Loop_1_proc374></content>
</item>
<item class_id_reference="16" object_id="_28">
<Value>
<Obj>
<type>2</type>
<id>78</id>
<name>xFSobelFilter3x3</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<const_type>6</const_type>
<content><constant:xFSobelFilter3x3></content>
</item>
<item class_id_reference="16" object_id="_29">
<Value>
<Obj>
<type>2</type>
<id>85</id>
<name>Sobel_Loop_2_proc38</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<const_type>6</const_type>
<content><constant:Sobel_Loop_2_proc38></content>
</item>
</consts>
<blocks class_id="17" tracking_level="0" version="0">
<count>1</count>
<item_version>0</item_version>
<item class_id="18" tracking_level="1" version="0" object_id="_30">
<Obj>
<type>3</type>
<id>43</id>
<name>Sobel</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>17</count>
<item_version>0</item_version>
<item>9</item>
<item>10</item>
<item>11</item>
<item>12</item>
<item>13</item>
<item>14</item>
<item>15</item>
<item>16</item>
<item>17</item>
<item>18</item>
<item>20</item>
<item>23</item>
<item>26</item>
<item>39</item>
<item>40</item>
<item>41</item>
<item>42</item>
</node_objs>
</item>
</blocks>
<edges class_id="19" tracking_level="0" version="0">
<count>45</count>
<item_version>0</item_version>
<item class_id="20" tracking_level="1" version="0" object_id="_31">
<id>46</id>
<edge_type>1</edge_type>
<source_obj>7</source_obj>
<sink_obj>9</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_32">
<id>48</id>
<edge_type>1</edge_type>
<source_obj>5</source_obj>
<sink_obj>10</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_33">
<id>50</id>
<edge_type>1</edge_type>
<source_obj>4</source_obj>
<sink_obj>11</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_34">
<id>52</id>
<edge_type>1</edge_type>
<source_obj>2</source_obj>
<sink_obj>12</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_35">
<id>54</id>
<edge_type>1</edge_type>
<source_obj>1</source_obj>
<sink_obj>13</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_36">
<id>56</id>
<edge_type>1</edge_type>
<source_obj>55</source_obj>
<sink_obj>14</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_37">
<id>57</id>
<edge_type>1</edge_type>
<source_obj>55</source_obj>
<sink_obj>15</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_38">
<id>58</id>
<edge_type>1</edge_type>
<source_obj>55</source_obj>
<sink_obj>16</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_39">
<id>59</id>
<edge_type>1</edge_type>
<source_obj>55</source_obj>
<sink_obj>17</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_40">
<id>60</id>
<edge_type>1</edge_type>
<source_obj>55</source_obj>
<sink_obj>18</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_41">
<id>61</id>
<edge_type>1</edge_type>
<source_obj>55</source_obj>
<sink_obj>20</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_42">
<id>62</id>
<edge_type>1</edge_type>
<source_obj>55</source_obj>
<sink_obj>23</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_43">
<id>63</id>
<edge_type>1</edge_type>
<source_obj>55</source_obj>
<sink_obj>26</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_44">
<id>65</id>
<edge_type>1</edge_type>
<source_obj>64</source_obj>
<sink_obj>39</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_45">
<id>66</id>
<edge_type>1</edge_type>
<source_obj>13</source_obj>
<sink_obj>39</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_46">
<id>67</id>
<edge_type>1</edge_type>
<source_obj>12</source_obj>
<sink_obj>39</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_47">
<id>68</id>
<edge_type>1</edge_type>
<source_obj>3</source_obj>
<sink_obj>39</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_48">
<id>69</id>
<edge_type>1</edge_type>
<source_obj>20</source_obj>
<sink_obj>39</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_49">
<id>70</id>
<edge_type>1</edge_type>
<source_obj>11</source_obj>
<sink_obj>39</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_50">
<id>71</id>
<edge_type>1</edge_type>
<source_obj>10</source_obj>
<sink_obj>39</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_51">
<id>72</id>
<edge_type>1</edge_type>
<source_obj>9</source_obj>
<sink_obj>39</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_52">
<id>73</id>
<edge_type>1</edge_type>
<source_obj>18</source_obj>
<sink_obj>39</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_53">
<id>74</id>
<edge_type>1</edge_type>
<source_obj>17</source_obj>
<sink_obj>39</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_54">
<id>75</id>
<edge_type>1</edge_type>
<source_obj>16</source_obj>
<sink_obj>39</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_55">
<id>76</id>
<edge_type>1</edge_type>
<source_obj>15</source_obj>
<sink_obj>39</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_56">
<id>77</id>
<edge_type>1</edge_type>
<source_obj>14</source_obj>
<sink_obj>39</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_57">
<id>79</id>
<edge_type>1</edge_type>
<source_obj>78</source_obj>
<sink_obj>40</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_58">
<id>80</id>
<edge_type>1</edge_type>
<source_obj>20</source_obj>
<sink_obj>40</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_59">
<id>81</id>
<edge_type>1</edge_type>
<source_obj>23</source_obj>
<sink_obj>40</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_60">
<id>82</id>
<edge_type>1</edge_type>
<source_obj>26</source_obj>
<sink_obj>40</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_61">
<id>83</id>
<edge_type>1</edge_type>
<source_obj>18</source_obj>
<sink_obj>40</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_62">
<id>84</id>
<edge_type>1</edge_type>
<source_obj>17</source_obj>
<sink_obj>40</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_63">
<id>86</id>
<edge_type>1</edge_type>
<source_obj>85</source_obj>
<sink_obj>41</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_64">
<id>87</id>
<edge_type>1</edge_type>
<source_obj>16</source_obj>
<sink_obj>41</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_65">
<id>88</id>
<edge_type>1</edge_type>
<source_obj>15</source_obj>
<sink_obj>41</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_66">
<id>89</id>
<edge_type>1</edge_type>
<source_obj>23</source_obj>
<sink_obj>41</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_67">
<id>90</id>
<edge_type>1</edge_type>
<source_obj>6</source_obj>
<sink_obj>41</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_68">
<id>91</id>
<edge_type>1</edge_type>
<source_obj>14</source_obj>
<sink_obj>41</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_69">
<id>92</id>
<edge_type>1</edge_type>
<source_obj>26</source_obj>
<sink_obj>41</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_70">
<id>93</id>
<edge_type>1</edge_type>
<source_obj>8</source_obj>
<sink_obj>41</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_71">
<id>323</id>
<edge_type>4</edge_type>
<source_obj>39</source_obj>
<sink_obj>41</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_72">
<id>324</id>
<edge_type>4</edge_type>
<source_obj>40</source_obj>
<sink_obj>41</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_73">
<id>325</id>
<edge_type>4</edge_type>
<source_obj>39</source_obj>
<sink_obj>40</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_74">
<id>326</id>
<edge_type>4</edge_type>
<source_obj>39</source_obj>
<sink_obj>40</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_75">
<id>327</id>
<edge_type>4</edge_type>
<source_obj>40</source_obj>
<sink_obj>41</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
</edges>
</cdfg>
<cdfg_regions class_id="21" tracking_level="0" version="0">
<count>1</count>
<item_version>0</item_version>
<item class_id="22" tracking_level="1" version="0" object_id="_76">
<mId>1</mId>
<mTag>Sobel</mTag>
<mType>0</mType>
<sub_regions>
<count>0</count>
<item_version>0</item_version>
</sub_regions>
<basic_blocks>
<count>1</count>
<item_version>0</item_version>
<item>43</item>
</basic_blocks>
<mII>-1</mII>
<mDepth>-1</mDepth>
<mMinTripCount>-1</mMinTripCount>
<mMaxTripCount>-1</mMaxTripCount>
<mMinLatency>312165</mMinLatency>
<mMaxLatency>-1</mMaxLatency>
<mIsDfPipe>1</mIsDfPipe>
<mDfPipe class_id="23" tracking_level="1" version="0" object_id="_77">
<port_list class_id="24" tracking_level="0" version="0">
<count>0</count>
<item_version>0</item_version>
</port_list>
<process_list class_id="25" tracking_level="0" version="0">
<count>3</count>
<item_version>0</item_version>
<item class_id="26" tracking_level="1" version="0" object_id="_78">
<type>0</type>
<name>Sobel_Loop_1_proc374_U0</name>
<ssdmobj_id>39</ssdmobj_id>
<pins class_id="27" tracking_level="0" version="0">
<count>12</count>
<item_version>0</item_version>
<item class_id="28" tracking_level="1" version="0" object_id="_79">
<port class_id="29" tracking_level="1" version="0" object_id="_80">
<name>p_src_mat_rows_read</name>
<dir>3</dir>
<type>0</type>
</port>
<inst class_id="30" tracking_level="1" version="0" object_id="_81">
<type>0</type>
<name>Sobel_Loop_1_proc374_U0</name>
<ssdmobj_id>39</ssdmobj_id>
</inst>
</item>
<item class_id_reference="28" object_id="_82">
<port class_id_reference="29" object_id="_83">
<name>p_src_mat_cols_read</name>
<dir>3</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_81"></inst>
</item>
<item class_id_reference="28" object_id="_84">
<port class_id_reference="29" object_id="_85">
<name>p_src_mat_data_V</name>
<dir>2</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_81"></inst>
</item>
<item class_id_reference="28" object_id="_86">
<port class_id_reference="29" object_id="_87">
<name>p_src_V_V</name>
<dir>0</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_81"></inst>
</item>
<item class_id_reference="28" object_id="_88">
<port class_id_reference="29" object_id="_89">
<name>p_dst_matx_rows_read</name>
<dir>3</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_81"></inst>
</item>
<item class_id_reference="28" object_id="_90">
<port class_id_reference="29" object_id="_91">
<name>p_dst_matx_cols_read</name>
<dir>3</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_81"></inst>
</item>
<item class_id_reference="28" object_id="_92">
<port class_id_reference="29" object_id="_93">
<name>p_dst_maty_cols_read</name>
<dir>3</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_81"></inst>
</item>
<item class_id_reference="28" object_id="_94">
<port class_id_reference="29" object_id="_95">
<name>p_src_mat_rows_read_out</name>
<dir>0</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_81"></inst>
</item>
<item class_id_reference="28" object_id="_96">
<port class_id_reference="29" object_id="_97">
<name>p_src_mat_cols_read_out</name>
<dir>0</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_81"></inst>
</item>
<item class_id_reference="28" object_id="_98">
<port class_id_reference="29" object_id="_99">
<name>p_dst_matx_rows_read_out</name>
<dir>0</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_81"></inst>
</item>
<item class_id_reference="28" object_id="_100">
<port class_id_reference="29" object_id="_101">
<name>p_dst_matx_cols_read_out</name>
<dir>0</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_81"></inst>
</item>
<item class_id_reference="28" object_id="_102">
<port class_id_reference="29" object_id="_103">
<name>p_dst_maty_cols_read_out</name>
<dir>0</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_81"></inst>
</item>
</pins>
</item>
<item class_id_reference="26" object_id="_104">
<type>0</type>
<name>xFSobelFilter3x3_U0</name>
<ssdmobj_id>40</ssdmobj_id>
<pins>
<count>5</count>
<item_version>0</item_version>
<item class_id_reference="28" object_id="_105">
<port class_id_reference="29" object_id="_106">
<name>p_src_mat_V_V</name>
<dir>0</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id="_107">
<type>0</type>
<name>xFSobelFilter3x3_U0</name>
<ssdmobj_id>40</ssdmobj_id>
</inst>
</item>
<item class_id_reference="28" object_id="_108">
<port class_id_reference="29" object_id="_109">
<name>p_gradx_mat_V_V</name>
<dir>0</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_107"></inst>
</item>
<item class_id_reference="28" object_id="_110">
<port class_id_reference="29" object_id="_111">
<name>p_grady_mat_V_V</name>
<dir>0</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_107"></inst>
</item>
<item class_id_reference="28" object_id="_112">
<port class_id_reference="29" object_id="_113">
<name>p_src_mat_rows_read</name>
<dir>0</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_107"></inst>
</item>
<item class_id_reference="28" object_id="_114">
<port class_id_reference="29" object_id="_115">
<name>p_src_mat_cols_read</name>
<dir>0</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_107"></inst>
</item>
</pins>
</item>
<item class_id_reference="26" object_id="_116">
<type>0</type>
<name>Sobel_Loop_2_proc38_U0</name>
<ssdmobj_id>41</ssdmobj_id>
<pins>
<count>7</count>
<item_version>0</item_version>
<item class_id_reference="28" object_id="_117">
<port class_id_reference="29" object_id="_118">
<name>p_dst_matx_rows_read</name>
<dir>0</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id="_119">
<type>0</type>
<name>Sobel_Loop_2_proc38_U0</name>
<ssdmobj_id>41</ssdmobj_id>
</inst>
</item>
<item class_id_reference="28" object_id="_120">
<port class_id_reference="29" object_id="_121">
<name>p_dst_matx_cols_read</name>
<dir>0</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_119"></inst>
</item>
<item class_id_reference="28" object_id="_122">
<port class_id_reference="29" object_id="_123">
<name>p_dstx_V_V</name>
<dir>0</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_119"></inst>
</item>
<item class_id_reference="28" object_id="_124">
<port class_id_reference="29" object_id="_125">
<name>p_dst_matx_data_V</name>
<dir>2</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_119"></inst>
</item>
<item class_id_reference="28" object_id="_126">
<port class_id_reference="29" object_id="_127">
<name>p_dst_maty_cols_read</name>
<dir>0</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_119"></inst>
</item>
<item class_id_reference="28" object_id="_128">
<port class_id_reference="29" object_id="_129">
<name>p_dsty_V_V</name>
<dir>0</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_119"></inst>
</item>
<item class_id_reference="28" object_id="_130">
<port class_id_reference="29" object_id="_131">
<name>p_dst_maty_data_V</name>
<dir>2</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_119"></inst>
</item>
</pins>
</item>
</process_list>
<channel_list class_id="31" tracking_level="0" version="0">
<count>8</count>
<item_version>0</item_version>
<item class_id="32" tracking_level="1" version="0" object_id="_132">
<type>1</type>
<name>p_src_V_V</name>
<ssdmobj_id>20</ssdmobj_id>
<ctype>0</ctype>
<depth>2</depth>
<bitwidth>8</bitwidth>
<source class_id_reference="28" object_id="_133">
<port class_id_reference="29" object_id="_134">
<name>in</name>
<dir>3</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_81"></inst>
</source>
<sink class_id_reference="28" object_id="_135">
<port class_id_reference="29" object_id="_136">
<name>out</name>
<dir>3</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_107"></inst>
</sink>
</item>
<item class_id_reference="32" object_id="_137">
<type>1</type>
<name>p_src_mat_rows_read_c</name>
<ssdmobj_id>18</ssdmobj_id>
<ctype>0</ctype>
<depth>2</depth>
<bitwidth>32</bitwidth>
<source class_id_reference="28" object_id="_138">
<port class_id_reference="29" object_id="_139">
<name>in</name>
<dir>3</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_81"></inst>
</source>
<sink class_id_reference="28" object_id="_140">
<port class_id_reference="29" object_id="_141">
<name>out</name>
<dir>3</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_107"></inst>
</sink>
</item>
<item class_id_reference="32" object_id="_142">
<type>1</type>
<name>p_src_mat_cols_read_c</name>
<ssdmobj_id>17</ssdmobj_id>
<ctype>0</ctype>
<depth>2</depth>
<bitwidth>32</bitwidth>
<source class_id_reference="28" object_id="_143">
<port class_id_reference="29" object_id="_144">
<name>in</name>
<dir>3</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_81"></inst>
</source>
<sink class_id_reference="28" object_id="_145">
<port class_id_reference="29" object_id="_146">
<name>out</name>
<dir>3</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_107"></inst>
</sink>
</item>
<item class_id_reference="32" object_id="_147">
<type>1</type>
<name>p_dst_matx_rows_read_s</name>
<ssdmobj_id>16</ssdmobj_id>
<ctype>0</ctype>
<depth>3</depth>
<bitwidth>32</bitwidth>
<source class_id_reference="28" object_id="_148">
<port class_id_reference="29" object_id="_149">
<name>in</name>
<dir>3</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_81"></inst>
</source>
<sink class_id_reference="28" object_id="_150">
<port class_id_reference="29" object_id="_151">
<name>out</name>
<dir>3</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_119"></inst>
</sink>
</item>
<item class_id_reference="32" object_id="_152">
<type>1</type>
<name>p_dst_matx_cols_read_s</name>
<ssdmobj_id>15</ssdmobj_id>
<ctype>0</ctype>
<depth>3</depth>
<bitwidth>32</bitwidth>
<source class_id_reference="28" object_id="_153">
<port class_id_reference="29" object_id="_154">
<name>in</name>
<dir>3</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_81"></inst>
</source>
<sink class_id_reference="28" object_id="_155">
<port class_id_reference="29" object_id="_156">
<name>out</name>
<dir>3</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_119"></inst>
</sink>
</item>
<item class_id_reference="32" object_id="_157">
<type>1</type>
<name>p_dst_maty_cols_read_s</name>
<ssdmobj_id>14</ssdmobj_id>
<ctype>0</ctype>
<depth>3</depth>
<bitwidth>32</bitwidth>
<source class_id_reference="28" object_id="_158">
<port class_id_reference="29" object_id="_159">
<name>in</name>
<dir>3</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_81"></inst>
</source>
<sink class_id_reference="28" object_id="_160">
<port class_id_reference="29" object_id="_161">
<name>out</name>
<dir>3</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_119"></inst>
</sink>
</item>
<item class_id_reference="32" object_id="_162">
<type>1</type>
<name>p_dstx_V_V</name>
<ssdmobj_id>23</ssdmobj_id>
<ctype>0</ctype>
<depth>2</depth>
<bitwidth>8</bitwidth>
<source class_id_reference="28" object_id="_163">
<port class_id_reference="29" object_id="_164">
<name>in</name>
<dir>3</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_107"></inst>
</source>
<sink class_id_reference="28" object_id="_165">
<port class_id_reference="29" object_id="_166">
<name>out</name>
<dir>3</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_119"></inst>
</sink>
</item>
<item class_id_reference="32" object_id="_167">
<type>1</type>
<name>p_dsty_V_V</name>
<ssdmobj_id>26</ssdmobj_id>
<ctype>0</ctype>
<depth>2</depth>
<bitwidth>8</bitwidth>
<source class_id_reference="28" object_id="_168">
<port class_id_reference="29" object_id="_169">
<name>in</name>
<dir>3</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_107"></inst>
</source>
<sink class_id_reference="28" object_id="_170">
<port class_id_reference="29" object_id="_171">
<name>out</name>
<dir>3</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_119"></inst>
</sink>
</item>
</channel_list>
<net_list class_id="33" tracking_level="0" version="0">
<count>0</count>
<item_version>0</item_version>
</net_list>
</mDfPipe>
</item>
</cdfg_regions>
<fsm class_id="34" tracking_level="1" version="0" object_id="_172">
<states class_id="35" tracking_level="0" version="0">
<count>6</count>
<item_version>0</item_version>
<item class_id="36" tracking_level="1" version="0" object_id="_173">
<id>1</id>
<operations class_id="37" tracking_level="0" version="0">
<count>14</count>
<item_version>0</item_version>
<item class_id="38" tracking_level="1" version="0" object_id="_174">
<id>9</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_175">
<id>10</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_176">
<id>11</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_177">
<id>12</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_178">
<id>13</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_179">
<id>14</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_180">
<id>15</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_181">
<id>16</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_182">
<id>17</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_183">
<id>18</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_184">
<id>20</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_185">
<id>23</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_186">
<id>26</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_187">
<id>39</id>
<stage>2</stage>
<latency>2</latency>
</item>
</operations>
</item>
<item class_id_reference="36" object_id="_188">
<id>2</id>
<operations>
<count>1</count>
<item_version>0</item_version>
<item class_id_reference="38" object_id="_189">
<id>39</id>
<stage>1</stage>
<latency>2</latency>
</item>
</operations>
</item>
<item class_id_reference="36" object_id="_190">
<id>3</id>
<operations>
<count>1</count>
<item_version>0</item_version>
<item class_id_reference="38" object_id="_191">
<id>40</id>
<stage>2</stage>
<latency>2</latency>
</item>
</operations>
</item>
<item class_id_reference="36" object_id="_192">
<id>4</id>
<operations>
<count>1</count>
<item_version>0</item_version>
<item class_id_reference="38" object_id="_193">
<id>40</id>
<stage>1</stage>
<latency>2</latency>
</item>
</operations>
</item>
<item class_id_reference="36" object_id="_194">
<id>5</id>
<operations>
<count>1</count>
<item_version>0</item_version>
<item class_id_reference="38" object_id="_195">
<id>41</id>
<stage>2</stage>
<latency>2</latency>
</item>
</operations>
</item>
<item class_id_reference="36" object_id="_196">
<id>6</id>
<operations>
<count>19</count>
<item_version>0</item_version>
<item class_id_reference="38" object_id="_197">
<id>19</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_198">
<id>21</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_199">
<id>22</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_200">
<id>24</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_201">
<id>25</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_202">
<id>27</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_203">
<id>28</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_204">
<id>29</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_205">
<id>30</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_206">
<id>31</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_207">
<id>32</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_208">
<id>33</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_209">
<id>34</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_210">
<id>35</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_211">
<id>36</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_212">
<id>37</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_213">
<id>38</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_214">
<id>41</id>
<stage>1</stage>
<latency>2</latency>
</item>
<item class_id_reference="38" object_id="_215">
<id>42</id>
<stage>1</stage>
<latency>1</latency>
</item>
</operations>
</item>
</states>
<transitions class_id="39" tracking_level="0" version="0">
<count>5</count>
<item_version>0</item_version>
<item class_id="40" tracking_level="1" version="0" object_id="_216">
<inState>1</inState>
<outState>2</outState>
<condition class_id="41" tracking_level="0" version="0">
<id>0</id>
<sop class_id="42" tracking_level="0" version="0">
<count>1</count>
<item_version>0</item_version>
<item class_id="43" tracking_level="0" version="0">
<count>0</count>
<item_version>0</item_version>
</item>
</sop>
</condition>
</item>
<item class_id_reference="40" object_id="_217">
<inState>2</inState>
<outState>3</outState>
<condition>
<id>1</id>
<sop>
<count>1</count>
<item_version>0</item_version>
<item>
<count>0</count>
<item_version>0</item_version>
</item>
</sop>
</condition>
</item>
<item class_id_reference="40" object_id="_218">
<inState>3</inState>
<outState>4</outState>
<condition>
<id>2</id>
<sop>
<count>1</count>
<item_version>0</item_version>
<item>
<count>0</count>
<item_version>0</item_version>
</item>
</sop>
</condition>
</item>
<item class_id_reference="40" object_id="_219">
<inState>4</inState>
<outState>5</outState>
<condition>
<id>3</id>
<sop>
<count>1</count>
<item_version>0</item_version>
<item>
<count>0</count>
<item_version>0</item_version>
</item>
</sop>
</condition>
</item>
<item class_id_reference="40" object_id="_220">
<inState>5</inState>
<outState>6</outState>
<condition>
<id>4</id>
<sop>
<count>1</count>
<item_version>0</item_version>
<item>
<count>0</count>
<item_version>0</item_version>
</item>
</sop>
</condition>
</item>
</transitions>
</fsm>
<res class_id="-1"></res>
<node_label_latency class_id="45" tracking_level="0" version="0">
<count>17</count>
<item_version>0</item_version>
<item class_id="46" tracking_level="0" version="0">
<first>9</first>
<second class_id="47" tracking_level="0" version="0">
<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>
<item>
<first>14</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>15</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>16</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>17</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>18</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>20</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>23</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>26</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>39</first>
<second>
<first>0</first>
<second>1</second>
</second>
</item>
<item>
<first>40</first>
<second>
<first>2</first>
<second>1</second>
</second>
</item>
<item>
<first>41</first>
<second>
<first>4</first>
<second>1</second>
</second>
</item>
<item>
<first>42</first>
<second>
<first>5</first>
<second>0</second>
</second>
</item>
</node_label_latency>
<bblk_ent_exit class_id="48" tracking_level="0" version="0">
<count>1</count>
<item_version>0</item_version>
<item class_id="49" tracking_level="0" version="0">
<first>43</first>
<second class_id="50" tracking_level="0" version="0">
<first>0</first>
<second>5</second>
</second>
</item>
</bblk_ent_exit>
<regions class_id="51" tracking_level="0" version="0">
<count>1</count>
<item_version>0</item_version>
<item class_id="52" tracking_level="1" version="0" object_id="_221">
<region_name>Sobel</region_name>
<basic_blocks>
<count>1</count>
<item_version>0</item_version>
<item>43</item>
</basic_blocks>
<nodes>
<count>34</count>
<item_version>0</item_version>
<item>9</item>
<item>10</item>
<item>11</item>
<item>12</item>
<item>13</item>
<item>14</item>
<item>15</item>
<item>16</item>
<item>17</item>
<item>18</item>
<item>19</item>
<item>20</item>
<item>21</item>
<item>22</item>
<item>23</item>
<item>24</item>
<item>25</item>
<item>26</item>
<item>27</item>
<item>28</item>
<item>29</item>
<item>30</item>
<item>31</item>
<item>32</item>
<item>33</item>
<item>34</item>
<item>35</item>
<item>36</item>
<item>37</item>
<item>38</item>
<item>39</item>
<item>40</item>
<item>41</item>
<item>42</item>
</nodes>
<anchor_node>-1</anchor_node>
<region_type>16</region_type>
<interval>0</interval>
<pipe_depth>0</pipe_depth>
</item>
</regions>
<dp_fu_nodes class_id="53" tracking_level="0" version="0">
<count>16</count>
<item_version>0</item_version>
<item class_id="54" tracking_level="0" version="0">
<first>62</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>14</item>
</second>
</item>
<item>
<first>66</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>15</item>
</second>
</item>
<item>
<first>70</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>16</item>
</second>
</item>
<item>
<first>74</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>17</item>
</second>
</item>
<item>
<first>78</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>18</item>
</second>
</item>
<item>
<first>82</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>20</item>
</second>
</item>
<item>
<first>86</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>23</item>
</second>
</item>
<item>
<first>90</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>26</item>
</second>
</item>
<item>
<first>94</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>9</item>
</second>
</item>
<item>
<first>100</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>10</item>
</second>
</item>
<item>
<first>106</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>11</item>
</second>
</item>
<item>
<first>112</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>12</item>
</second>
</item>
<item>
<first>118</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>13</item>
</second>
</item>
<item>
<first>124</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>40</item>
<item>40</item>
</second>
</item>
<item>
<first>133</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>41</item>
<item>41</item>
</second>
</item>
<item>
<first>146</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>39</item>
<item>39</item>
</second>
</item>
</dp_fu_nodes>
<dp_fu_nodes_expression class_id="56" tracking_level="0" version="0">
<count>8</count>
<item_version>0</item_version>
<item class_id="57" tracking_level="0" version="0">
<first>p_dst_matx_cols_read_s_fu_66</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>15</item>
</second>
</item>
<item>
<first>p_dst_matx_rows_read_s_fu_70</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>16</item>
</second>
</item>
<item>
<first>p_dst_maty_cols_read_s_fu_62</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>14</item>
</second>
</item>
<item>
<first>p_dstx_V_V_fu_86</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>23</item>
</second>
</item>
<item>
<first>p_dsty_V_V_fu_90</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>26</item>
</second>
</item>
<item>
<first>p_src_V_V_fu_82</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>20</item>
</second>
</item>
<item>
<first>p_src_mat_cols_read_c_fu_74</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>17</item>
</second>
</item>
<item>
<first>p_src_mat_rows_read_c_fu_78</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>18</item>
</second>
</item>
</dp_fu_nodes_expression>
<dp_fu_nodes_module>
<count>3</count>
<item_version>0</item_version>
<item>
<first>grp_Sobel_Loop_1_proc374_fu_146</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>39</item>
<item>39</item>
</second>
</item>
<item>
<first>grp_Sobel_Loop_2_proc38_fu_133</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>41</item>
<item>41</item>
</second>
</item>
<item>
<first>grp_xFSobelFilter3x3_fu_124</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>40</item>
<item>40</item>
</second>
</item>
</dp_fu_nodes_module>
<dp_fu_nodes_io>
<count>5</count>
<item_version>0</item_version>
<item>
<first>p_dst_matx_cols_read_3_read_fu_100</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>10</item>
</second>
</item>
<item>
<first>p_dst_matx_rows_read_3_read_fu_106</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>11</item>
</second>
</item>
<item>
<first>p_dst_maty_cols_read_3_read_fu_94</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>9</item>
</second>
</item>
<item>
<first>p_src_mat_cols_read_3_read_fu_112</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>12</item>
</second>
</item>
<item>
<first>p_src_mat_rows_read_3_read_fu_118</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>13</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="58" tracking_level="0" version="0">
<count>0</count>
<item_version>0</item_version>
</dp_mem_port_nodes>
<dp_reg_nodes>
<count>13</count>
<item_version>0</item_version>
<item>
<first>168</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>9</item>
</second>
</item>
<item>
<first>173</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>10</item>
</second>
</item>
<item>
<first>178</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>11</item>
</second>
</item>
<item>
<first>183</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>12</item>
</second>
</item>
<item>
<first>188</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>13</item>
</second>
</item>
<item>
<first>193</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>14</item>
</second>
</item>
<item>
<first>199</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>15</item>
</second>
</item>
<item>
<first>205</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>16</item>
</second>
</item>
<item>
<first>211</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>17</item>
</second>
</item>
<item>
<first>217</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>18</item>
</second>
</item>
<item>
<first>223</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>20</item>
</second>
</item>
<item>
<first>229</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>23</item>
</second>
</item>
<item>
<first>235</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>26</item>
</second>
</item>
</dp_reg_nodes>
<dp_regname_nodes>
<count>13</count>
<item_version>0</item_version>
<item>
<first>p_dst_matx_cols_read_3_reg_173</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>10</item>
</second>
</item>
<item>
<first>p_dst_matx_cols_read_s_reg_199</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>15</item>
</second>
</item>
<item>
<first>p_dst_matx_rows_read_3_reg_178</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>11</item>
</second>
</item>
<item>
<first>p_dst_matx_rows_read_s_reg_205</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>16</item>
</second>
</item>
<item>
<first>p_dst_maty_cols_read_3_reg_168</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>9</item>
</second>
</item>
<item>
<first>p_dst_maty_cols_read_s_reg_193</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>14</item>
</second>
</item>
<item>
<first>p_dstx_V_V_reg_229</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>23</item>
</second>
</item>
<item>
<first>p_dsty_V_V_reg_235</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>26</item>
</second>
</item>
<item>
<first>p_src_V_V_reg_223</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>20</item>
</second>
</item>
<item>
<first>p_src_mat_cols_read_3_reg_183</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>12</item>
</second>
</item>
<item>
<first>p_src_mat_cols_read_c_reg_211</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>17</item>
</second>
</item>
<item>
<first>p_src_mat_rows_read_3_reg_188</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>13</item>
</second>
</item>
<item>
<first>p_src_mat_rows_read_c_reg_217</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>18</item>
</second>
</item>
</dp_regname_nodes>
<dp_reg_phi>
<count>0</count>
<item_version>0</item_version>
</dp_reg_phi>
<dp_regname_phi>
<count>0</count>
<item_version>0</item_version>
</dp_regname_phi>
<dp_port_io_nodes class_id="59" tracking_level="0" version="0">
<count>5</count>
<item_version>0</item_version>
<item class_id="60" tracking_level="0" version="0">
<first>p_dst_matx_cols_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>10</item>
</second>
</item>
</second>
</item>
<item>
<first>p_dst_matx_rows_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>11</item>
</second>
</item>
</second>
</item>
<item>
<first>p_dst_maty_cols_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_src_mat_cols_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>12</item>
</second>
</item>
</second>
</item>
<item>
<first>p_src_mat_rows_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>13</item>
</second>
</item>
</second>
</item>
</dp_port_io_nodes>
<port2core class_id="61" tracking_level="0" version="0">
<count>3</count>
<item_version>0</item_version>
<item class_id="62" tracking_level="0" version="0">
<first>3</first>
<second>RAM</second>
</item>
<item>
<first>6</first>
<second>RAM</second>
</item>
<item>
<first>8</first>
<second>RAM</second>
</item>
</port2core>
<node2core>
<count>8</count>
<item_version>0</item_version>
<item>
<first>14</first>
<second>FIFO</second>
</item>
<item>
<first>15</first>
<second>FIFO</second>
</item>
<item>
<first>16</first>
<second>FIFO</second>
</item>
<item>
<first>17</first>
<second>FIFO</second>
</item>
<item>
<first>18</first>
<second>FIFO</second>
</item>
<item>
<first>20</first>
<second>FIFO</second>
</item>
<item>
<first>23</first>
<second>FIFO</second>
</item>
<item>
<first>26</first>
<second>FIFO</second>
</item>
</node2core>
</syndb>
</boost_serialization>
| 27.62281 | 86 | 0.574506 |
c78f7355d6b0caa3db04033dfcea2e85a610b68a | 2,562 | adb | Ada | tests/ships-repairs-test_data-tests.adb | thindil/steamsky | d5d7fea622f7994c91017c4cd7ba5e188153556c | [
"TCL",
"MIT"
] | 80 | 2017-04-08T23:14:07.000Z | 2022-02-10T22:30:51.000Z | tests/ships-repairs-test_data-tests.adb | thindil/steamsky | d5d7fea622f7994c91017c4cd7ba5e188153556c | [
"TCL",
"MIT"
] | 89 | 2017-06-24T08:18:26.000Z | 2021-11-12T04:37:36.000Z | tests/ships-repairs-test_data-tests.adb | thindil/steamsky | d5d7fea622f7994c91017c4cd7ba5e188153556c | [
"TCL",
"MIT"
] | 9 | 2018-04-14T16:37:25.000Z | 2020-03-21T14:33:49.000Z | -- This package has been generated automatically by GNATtest.
-- You are allowed to add your code to the bodies of test routines.
-- Such changes will be kept during further regeneration of this file.
-- All code placed outside of test routine bodies will be lost. The
-- code intended to set up and tear down the test environment should be
-- placed into Ships.Repairs.Test_Data.
with AUnit.Assertions; use AUnit.Assertions;
with System.Assertions;
-- begin read only
-- id:2.2/00/
--
-- This section can be used to add with clauses if necessary.
--
-- end read only
with Config; use Config;
with Ships.Crew; use Ships.Crew;
-- begin read only
-- end read only
package body Ships.Repairs.Test_Data.Tests is
-- begin read only
-- id:2.2/01/
--
-- This section can be used to add global variables and other elements.
--
-- end read only
-- begin read only
-- end read only
-- begin read only
procedure Wrap_Test_RepairShip_41c4af_831bda(Minutes: Positive) is
begin
GNATtest_Generated.GNATtest_Standard.Ships.Repairs.RepairShip(Minutes);
end Wrap_Test_RepairShip_41c4af_831bda;
-- end read only
-- begin read only
procedure Test_RepairShip_test_repairship(Gnattest_T: in out Test);
procedure Test_RepairShip_41c4af_831bda(Gnattest_T: in out Test) renames
Test_RepairShip_test_repairship;
-- id:2.2/41c4af333c446830/RepairShip/1/0/test_repairship/
procedure Test_RepairShip_test_repairship(Gnattest_T: in out Test) is
procedure RepairShip(Minutes: Positive) renames
Wrap_Test_RepairShip_41c4af_831bda;
-- end read only
pragma Unreferenced(Gnattest_T);
Durability: constant Positive := Player_Ship.Modules(1).Durability;
begin
Player_Ship.Cargo.Swap(5, 12);
Player_Ship.Cargo(10).Amount := 1;
Player_Ship.Modules(1).Durability := Durability - 1;
GiveOrders(Player_Ship, 4, Repair, 0, False);
RepairShip(15);
Assert
(Player_Ship.Modules(1).Durability = Durability,
"Failed to repair ship.");
New_Game_Settings.Player_Faction := To_Unbounded_String("POLEIS");
New_Game_Settings.Player_Career := To_Unbounded_String("general");
New_Game_Settings.Starting_Base := To_Unbounded_String("1");
New_Game;
-- begin read only
end Test_RepairShip_test_repairship;
-- end read only
-- begin read only
-- id:2.2/02/
--
-- This section can be used to add elaboration code for the global state.
--
begin
-- end read only
null;
-- begin read only
-- end read only
end Ships.Repairs.Test_Data.Tests;
| 30.5 | 77 | 0.725995 |
222679effe1de905a4519fed1db81d3a9ac6fc6e | 4,689 | adb | Ada | Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/s-diflio.adb | djamal2727/Main-Bearing-Analytical-Model | 2f00c2219c71be0175c6f4f8f1d4cca231d97096 | [
"Apache-2.0"
] | null | null | null | Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/s-diflio.adb | djamal2727/Main-Bearing-Analytical-Model | 2f00c2219c71be0175c6f4f8f1d4cca231d97096 | [
"Apache-2.0"
] | null | null | null | Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/s-diflio.adb | djamal2727/Main-Bearing-Analytical-Model | 2f00c2219c71be0175c6f4f8f1d4cca231d97096 | [
"Apache-2.0"
] | null | null | null | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- S Y S T E M . D I M . F L O A T _ I O --
-- --
-- B o d y --
-- --
-- Copyright (C) 2011-2020, Free Software Foundation, Inc. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 3, or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. --
-- --
-- As a special exception under Section 7 of GPL version 3, you are granted --
-- additional permissions described in the GCC Runtime Library Exception, --
-- version 3.1, as published by the Free Software Foundation. --
-- --
-- You should have received a copy of the GNU General Public License and --
-- a copy of the GCC Runtime Library Exception along with this program; --
-- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
-- <http://www.gnu.org/licenses/>. --
-- --
-- GNAT was originally developed by the GNAT team at New York University. --
-- Extensive contributions were provided by Ada Core Technologies Inc. --
-- --
------------------------------------------------------------------------------
package body System.Dim.Float_IO is
package Num_Dim_Float_IO is new Ada.Text_IO.Float_IO (Num_Dim_Float);
---------
-- Put --
---------
procedure Put
(File : File_Type;
Item : Num_Dim_Float;
Fore : Field := Default_Fore;
Aft : Field := Default_Aft;
Exp : Field := Default_Exp;
Symbol : String := "")
is
begin
Num_Dim_Float_IO.Put (File, Item, Fore, Aft, Exp);
Ada.Text_IO.Put (File, Symbol);
end Put;
procedure Put
(Item : Num_Dim_Float;
Fore : Field := Default_Fore;
Aft : Field := Default_Aft;
Exp : Field := Default_Exp;
Symbol : String := "")
is
begin
Num_Dim_Float_IO.Put (Item, Fore, Aft, Exp);
Ada.Text_IO.Put (Symbol);
end Put;
procedure Put
(To : out String;
Item : Num_Dim_Float;
Aft : Field := Default_Aft;
Exp : Field := Default_Exp;
Symbol : String := "")
is
Ptr : constant Natural := Symbol'Length;
begin
Num_Dim_Float_IO.Put (To (To'First .. To'Last - Ptr), Item, Aft, Exp);
To (To'Last - Ptr + 1 .. To'Last) := Symbol;
end Put;
----------------
-- Put_Dim_Of --
----------------
pragma Warnings (Off);
-- kill warnings on unreferenced formals
procedure Put_Dim_Of
(File : File_Type;
Item : Num_Dim_Float;
Symbol : String := "")
is
begin
Ada.Text_IO.Put (File, Symbol);
end Put_Dim_Of;
procedure Put_Dim_Of
(Item : Num_Dim_Float;
Symbol : String := "")
is
begin
Ada.Text_IO.Put (Symbol);
end Put_Dim_Of;
procedure Put_Dim_Of
(To : out String;
Item : Num_Dim_Float;
Symbol : String := "")
is
begin
To (1 .. Symbol'Length) := Symbol;
end Put_Dim_Of;
-----------
-- Image --
-----------
function Image
(Item : Num_Dim_Float;
Aft : Field := Default_Aft;
Exp : Field := Default_Exp;
Symbol : String := "") return String
is
Buffer : String (1 .. 50);
begin
Put (Buffer, Item, Aft, Exp);
for I in Buffer'Range loop
if Buffer (I) /= ' ' then
return Buffer (I .. Buffer'Last) & Symbol;
end if;
end loop;
end Image;
end System.Dim.Float_IO;
| 35.255639 | 78 | 0.44935 |
1a07c763449030160c4ec75cf30057ee16df210e | 2,303 | ads | Ada | driver.ads | fsivan58/str-distracciones | c8201b1394f8952ead590cf4bb102ac13a2a2943 | [
"MIT"
] | null | null | null | driver.ads | fsivan58/str-distracciones | c8201b1394f8952ead590cf4bb102ac13a2a2943 | [
"MIT"
] | null | null | null | driver.ads | fsivan58/str-distracciones | c8201b1394f8952ead590cf4bb102ac13a2a2943 | [
"MIT"
] | null | null | null | -- Gonzalo Martin Rodriguez
-- Ivan Fernandez Samaniego
with Priorities; use Priorities;
with devices; use devices;
with ada.strings.unbounded; use ada.strings.unbounded;
with ada.strings.unbounded.text_io; use ada.strings.unbounded.text_io;
package Driver is
task Distance is
pragma Priority (Distance_Priority);
end Distance;
task Steering is
pragma Priority (Steering_Priority);
end Steering;
task Head is
pragma Priority (Head_Priority);
end Head;
protected Symptoms is
pragma Priority (Head_Priority);
procedure Write_Head_Symptom (Value: in Boolean);
procedure Read_Head_Symptom (Value: out Boolean);
procedure Write_Distancia_Insegura (Value: in Boolean);
procedure Read_Distancia_Insegura (Value: out Boolean);
procedure Write_Distancia_Imprudente (Value: in Boolean);
procedure Read_Distancia_Imprudente (Value: out Boolean);
procedure Write_Peligro_Colision (Value: in Boolean);
procedure Read_Peligro_Colision (Value: out Boolean);
procedure Write_Steering_Symptom (Value: in Boolean);
procedure Read_Steering_Symptom (Value: out Boolean);
procedure Write_HeadPosition;
procedure Read_HeadPosition (Value: out HeadPosition_Samples_Type);
procedure Write_Steering;
procedure Read_Steering (Value: out Steering_Samples_Type);
procedure Display_Symptom (Symptom: in Unbounded_String);
procedure Show_Symptoms;
private
Head_Symptom: Boolean := False;
Steering_Symptom: Boolean := False;
Distancia_Insegura: Boolean := False;
Distancia_Imprudente: Boolean := False;
Peligro_Colision: Boolean := False;
HeadPosition: HeadPosition_Samples_Type := (+2, -2);
Steering: Steering_Samples_Type := 0;
end Symptoms;
protected Measures is
pragma Priority (Risk_Priority);
procedure Read_Distance (Value: out Distance_Samples_Type);
procedure Write_Distance;
procedure Show_Distance;
procedure Read_Speed (Value: out Speed_Samples_Type);
procedure Write_Speed;
procedure Show_Speed;
private
Distance: Distance_Samples_Type;
Speed: Speed_Samples_Type;
end Measures;
end Driver;
| 35.430769 | 75 | 0.708641 |
595805139047e8554258caf7ea460c0821456330 | 18,845 | ads | Ada | src/asf-components-base.ads | jquorning/ada-asf | ddc697c5dfa4e22c57c6958f4cff27e14d02ce98 | [
"Apache-2.0"
] | 12 | 2015-01-18T23:02:20.000Z | 2022-03-25T15:30:30.000Z | src/asf-components-base.ads | jquorning/ada-asf | ddc697c5dfa4e22c57c6958f4cff27e14d02ce98 | [
"Apache-2.0"
] | 3 | 2021-01-06T09:44:02.000Z | 2022-02-04T20:20:53.000Z | src/asf-components-base.ads | jquorning/ada-asf | ddc697c5dfa4e22c57c6958f4cff27e14d02ce98 | [
"Apache-2.0"
] | 4 | 2016-04-12T05:29:00.000Z | 2022-01-24T23:53:59.000Z | -----------------------------------------------------------------------
-- components -- Component tree
-- Copyright (C) 2009, 2010, 2011, 2012, 2013, 2018, 2020 Stephane Carrez
-- Written by Stephane Carrez ([email protected])
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.
-----------------------------------------------------------------------
-- The <bASF.Components</b> describes the components that form the
-- tree view. Each component has attributes and children. Children
-- represent sub-components and attributes control the rendering and
-- behavior of the component.
--
-- The component tree is created from the <b>ASF.Views</b> tag nodes
-- for each request. Unlike tag nodes, the component tree is not shared.
with Ada.Finalization;
with Ada.Strings.Hash;
with Ada.Containers.Indefinite_Hashed_Maps;
with EL.Objects;
with Util.Beans.Objects;
with EL.Expressions;
with ASF.Contexts.Faces;
with ASF.Utils;
limited with ASF.Events.Faces;
package ASF.Components.Base is
use ASF.Contexts.Faces;
type UIComponent_List is private;
-- ------------------------------
-- Attribute of a component
-- ------------------------------
-- type UIComponent is new Ada.Finalization.Controlled with private;
type UIComponent is new Ada.Finalization.Limited_Controlled with private;
type UIComponent_Access is access all UIComponent'Class;
-- Get the parent component.
-- Returns null if the node is the root element.
function Get_Parent (UI : UIComponent) return UIComponent_Access;
-- Return a client-side identifier for this component, generating
-- one if necessary.
function Get_Client_Id (UI : UIComponent) return Unbounded_String;
-- Returns True if the client-side identifier was generated automatically.
function Is_Generated_Id (UI : in UIComponent) return Boolean;
-- Returns True if the component has a client-side identifier matching the given name.
function Is_Client_Id (UI : in UIComponent;
Id : in String) return Boolean;
-- Get the list of children.
function Get_Children (UI : UIComponent) return UIComponent_List;
-- Get the number of children.
function Get_Children_Count (UI : UIComponent) return Natural;
-- Get the first child component.
-- Returns null if the component has no children.
function Get_First_Child (UI : UIComponent) return UIComponent_Access;
-- Get the tag node that created this component.
function Get_Tag (UI : in UIComponent'Class) return access ASF.Views.Nodes.Tag_Node'Class;
-- Initialize the component when restoring the view.
-- The default initialization gets the client ID and allocates it if necessary.
procedure Initialize (UI : in out UIComponent;
Context : in out Faces_Context'Class);
procedure Append (UI : in UIComponent_Access;
Child : in UIComponent_Access;
Tag : access ASF.Views.Nodes.Tag_Node'Class);
-- Search for and return the {@link UIComponent} with an <code>id</code>
-- that matches the specified search expression (if any), according to
-- the algorithm described below.
-- o look first in the sub-tree representing the parent node.
-- o if not found, move to the parent's node
-- Returns null if the component was not found in the view.
function Find (UI : in UIComponent;
Id : in String) return UIComponent_Access;
-- Search within the component tree for the {@link UIComponent} with
-- an <code>id</code> that matches the specified search expression.
function Find_Child (UI : in UIComponent'Class;
Id : in String) return UIComponent_Access;
-- Get the number of facets that this component contains.
function Get_Facet_Count (UI : in UIComponent'Class) return Natural;
-- Get the facet identified by the given name.
-- Returns null if there is no such facet.
function Get_Facet (UI : in UIComponent'Class;
Name : in String) return UIComponent_Access;
-- Add the facet represented by the root component <b>Facet</b> under the name <b>Name</b>.
-- The facet component is added to the facet map and it get be retrieved later on by
-- using the <b>Get_Facet</b> operation. The facet component will be destroyed when this
-- component is deleted.
procedure Add_Facet (UI : in out UIComponent'Class;
Name : in String;
Facet : in UIComponent_Access;
Tag : access ASF.Views.Nodes.Tag_Node'Class);
-- Check whether the component and its children must be rendered.
function Is_Rendered (UI : UIComponent;
Context : Faces_Context'Class) return Boolean;
-- Set whether the component is rendered.
procedure Set_Rendered (UI : in out UIComponent;
Rendered : in Boolean);
function Get_Attribute (UI : UIComponent;
Context : Faces_Context'Class;
Name : String) return EL.Objects.Object;
-- Get the attribute tag
function Get_Attribute (UI : UIComponent;
Name : String) return access ASF.Views.Nodes.Tag_Attribute;
-- Get the attribute value as a boolean.
-- If the attribute does not exist, returns the default.
function Get_Attribute (UI : in UIComponent;
Name : in String;
Context : in Faces_Context'Class;
Default : in Boolean := False) return Boolean;
-- Get the attribute value as an integer.
-- If the attribute does not exist, returns the default.
function Get_Attribute (UI : in UIComponent;
Name : in String;
Context : in Faces_Context'Class;
Default : in Integer := 0) return Integer;
-- Get the attribute value as a string.
-- If the attribute does not exist, returns the default.
function Get_Attribute (UI : in UIComponent;
Name : in String;
Context : in Faces_Context'Class;
Default : in String := "") return String;
procedure Set_Attribute (UI : in out UIComponent;
Name : in String;
Value : in EL.Objects.Object);
procedure Set_Attribute (UI : in out UIComponent;
Def : access ASF.Views.Nodes.Tag_Attribute;
Value : in EL.Expressions.Expression);
procedure Set_Attribute (UI : in out UIComponent;
Def : access ASF.Views.Nodes.Tag_Attribute;
Value : in EL.Objects.Object);
-- Get the <b>label</b> attribute from the component. If the attribute is
-- empty, returns the client id.
function Get_Label (UI : in UIComponent'Class;
Context : in Faces_Context'Class) return Util.Beans.Objects.Object;
-- Get the expression
function Get_Expression (UI : in UIComponent;
Name : in String) return EL.Expressions.Expression;
-- Get the value expression
function Get_Value_Expression (UI : in UIComponent;
Name : in String) return EL.Expressions.Value_Expression;
-- Get the method expression
-- Raise an Invalid_Expression if the method expression is invalid.
function Get_Method_Expression (UI : in UIComponent;
Name : in String) return EL.Expressions.Method_Expression;
-- Add a message for the component. Look for the message attribute identified
-- by <b>Name</b> on the <b>UI</b> component. Add this message in the faces context
-- and associated with the component client id. Otherwise, add the default
-- message whose bundle key is identified by <b>default</b>.
procedure Add_Message (UI : in UIComponent'Class;
Name : in String;
Default : in String;
Context : in out Faces_Context'Class);
-- Add a message for the component. Look for the message attribute identified
-- by <b>Name</b> on the <b>UI</b> component. Add this message in the faces context
-- and associated with the component client id. Otherwise, add the default
-- message whose bundle key is identified by <b>default</b>.
procedure Add_Message (UI : in UIComponent'Class;
Name : in String;
Default : in String;
Arg1 : in Util.Beans.Objects.Object;
Context : in out Faces_Context'Class);
-- Add a message for the component. Look for the message attribute identified
-- by <b>Name</b> on the <b>UI</b> component. Add this message in the faces context
-- and associated with the component client id. Otherwise, add the default
-- message whose bundle key is identified by <b>default</b>.
procedure Add_Message (UI : in UIComponent'Class;
Name : in String;
Default : in String;
Arg1 : in Util.Beans.Objects.Object;
Arg2 : in Util.Beans.Objects.Object;
Context : in out Faces_Context'Class);
-- Add a message for the component. Look for the message attribute identified
-- by <b>Name</b> on the <b>UI</b> component. Add this message in the faces context
-- and associated with the component client id. Otherwise, use the default
-- message whose bundle key is identified by <b>default</b>. The message is
-- formatted with the arguments passed in <b>Args</b>.
procedure Add_Message (UI : in UIComponent'Class;
Name : in String;
Default : in String;
Args : in ASF.Utils.Object_Array;
Context : in out Faces_Context'Class);
procedure Encode_Begin (UI : in UIComponent;
Context : in out Faces_Context'Class);
procedure Encode_Children (UI : in UIComponent;
Context : in out Faces_Context'Class);
-- Encode the children components in a local buffer and after the rendering execute
-- the <b>Process</b> procedure with the generated content.
-- If this component is not rendered, do nothing.
procedure Wrap_Encode_Children (UI : in UIComponent;
Context : in out ASF.Contexts.Faces.Faces_Context'Class;
Process : not null
access procedure (Content : in Unbounded_String));
procedure Wrap_Encode_Children (UI : in UIComponent;
Context : in out ASF.Contexts.Faces.Faces_Context'Class;
Process : not null access procedure (Content : in String));
procedure Encode_End (UI : in UIComponent;
Context : in out Faces_Context'Class);
procedure Encode_All (UI : in UIComponent'Class;
Context : in out Faces_Context'Class);
procedure Decode (UI : in out UIComponent;
Context : in out Faces_Context'Class);
procedure Decode_Children (UI : in UIComponent'Class;
Context : in out Faces_Context'Class);
-- Decode any new state of the specified component from the request contained
-- in the specified context and store that state on the component.
--
-- During decoding, events may be enqueued for later processing
-- (by event listeners that have registered an interest), by calling
-- the <b>Queue_Event</b> on the associated component.
procedure Process_Decodes (UI : in out UIComponent;
Context : in out Faces_Context'Class);
-- Perform the component tree processing required by the <b>Process Validations</b>
-- phase of the request processing lifecycle for all facets of this component,
-- all children of this component, and this component itself, as follows:
-- <ul>
-- <li>If this component <b>rendered</b> property is false, skip further processing.
-- <li>Call the <b>Process_Validators</b> of all facets and children.
-- <ul>
procedure Process_Validators (UI : in out UIComponent;
Context : in out Faces_Context'Class);
-- Perform the component tree processing required by the <b>Update Model Values</b>
-- phase of the request processing lifecycle for all facets of this component,
-- all children of this component, and this component itself, as follows.
-- <ul>
-- <li>If this component <b>rendered</b> property is false, skip further processing.
-- <li>Call the <b>Process_Updates/b> of all facets and children.
-- <ul>
procedure Process_Updates (UI : in out UIComponent;
Context : in out Faces_Context'Class);
-- Queue an event for broadcast at the end of the current request
-- processing lifecycle phase. The default implementation in
-- delegates this call to the parent component. The <b>UIViewRoot</b>
-- component is in charge of queueing events. The event object
-- will be freed after being dispatched.
procedure Queue_Event (UI : in out UIComponent;
Event : not null access ASF.Events.Faces.Faces_Event'Class);
-- Broadcast the event to the event listeners installed on this component.
-- Listeners are called in the order in which they were added.
procedure Broadcast (UI : in out UIComponent;
Event : not null access ASF.Events.Faces.Faces_Event'Class;
Context : in out Faces_Context'Class);
-- Finalize the object.
overriding
procedure Finalize (UI : in out UIComponent);
type UIComponent_Array is array (Natural range <>) of UIComponent_Access;
type UIComponent_Array_Access is access UIComponent_Array;
-- type UIOutput is new UIComponent;
function Get_Context (UI : in UIComponent)
return ASF.Contexts.Faces.Faces_Context_Access;
-- Get the attribute value.
function Get_Value (Attr : UIAttribute;
UI : UIComponent'Class) return EL.Objects.Object;
-- Iterate over the children of the component and execute
-- the <b>Process</b> procedure.
generic
with procedure Process (Child : in UIComponent_Access);
procedure Iterate (UI : in UIComponent'Class);
-- Iterate over the attributes defined on the component and
-- execute the <b>Process</b> procedure.
generic
with procedure Process (Name : in String;
Attr : in UIAttribute);
procedure Iterate_Attributes (UI : in UIComponent'Class);
-- Report an error message in the logs caused by an invalid configuration or
-- setting on the component.
procedure Log_Error (UI : in UIComponent'Class;
Message : in String;
Arg1 : in String := "";
Arg2 : in String := "";
Arg3 : in String := "");
-- Get the root component from the <b>UI</b> component tree.
-- After the operation, the <b>UI</b> component tree will contain no
-- nodes.
-- If the <b>Root</b> pointer is not null, first deletes recursively
-- the component tree.
procedure Steal_Root_Component (UI : in out UIComponent'Class;
Root : in out UIComponent_Access);
-- ------------------------------
-- Iterator over the component children
-- ------------------------------
type Cursor is private;
-- Get an iterator to scan the component children.
function First (UI : in UIComponent'Class) return Cursor;
-- Returns True if the iterator points to a valid child.
function Has_Element (Pos : in Cursor) return Boolean;
-- Get the child component pointed to by the iterator.
function Element (Pos : in Cursor) return UIComponent_Access;
-- Move to the next child.
procedure Next (Pos : in out Cursor);
private
type UIComponent_List is record
Child : UIComponent_Access := null;
end record;
-- The facet map maintains a mapping between a facet name and a component tree.
-- The component tree is not directly visible (ie, it does not participate in the
-- JSF component traversal by default). To be taken into account, the component has
-- to retrieve the facet and deal with it.
--
-- The facet map is not created by default and it is allocated only when a facet is
-- added to the component. By doing this, we avoid the cost of holding a Hashed_Map
-- instance (even empty) in each UIComponent.F
package Component_Maps is
new Ada.Containers.Indefinite_Hashed_Maps (Key_Type => String,
Element_Type => UIComponent_Access,
Hash => Ada.Strings.Hash,
Equivalent_Keys => "=",
"=" => "=");
type Component_Map_Access is access Component_Maps.Map;
type UIComponent is new Ada.Finalization.Limited_Controlled with record
Id : Unbounded_String;
Id_Generated : Boolean := False;
Tag : access ASF.Views.Nodes.Tag_Node'Class;
Parent : UIComponent_Access := null;
First_Child : UIComponent_Access := null;
Last_Child : UIComponent_Access := null;
Next : UIComponent_Access := null;
Attributes : UIAttribute_Access := null;
Facets : Component_Map_Access := null;
end record;
type Cursor is record
Child : UIComponent_Access := null;
end record;
end ASF.Components.Base;
| 46.878109 | 95 | 0.616981 |
0bf0a13843d24d22541cb4f6c9019d92142ab05d | 16,375 | adb | Ada | arch/ARM/STM32/drivers/dma2d/stm32-dma2d.adb | shakram02/Ada_Drivers_Library | a407ca7ddbc2d9756647016c2f8fd8ef24a239ff | [
"BSD-3-Clause"
] | 192 | 2016-06-01T18:32:04.000Z | 2022-03-26T22:52:31.000Z | arch/ARM/STM32/drivers/dma2d/stm32-dma2d.adb | morbos/Ada_Drivers_Library | a4ab26799be60997c38735f4056160c4af597ef7 | [
"BSD-3-Clause"
] | 239 | 2016-05-26T20:02:01.000Z | 2022-03-31T09:46:56.000Z | arch/ARM/STM32/drivers/dma2d/stm32-dma2d.adb | morbos/Ada_Drivers_Library | a4ab26799be60997c38735f4056160c4af597ef7 | [
"BSD-3-Clause"
] | 142 | 2016-06-05T08:12:20.000Z | 2022-03-24T17:37:17.000Z | ------------------------------------------------------------------------------
-- --
-- Copyright (C) 2015-2016, AdaCore --
-- --
-- Redistribution and use in source and binary forms, with or without --
-- modification, are permitted provided that the following conditions are --
-- met: --
-- 1. Redistributions of source code must retain the above copyright --
-- notice, this list of conditions and the following disclaimer. --
-- 2. Redistributions in binary form must reproduce the above copyright --
-- notice, this list of conditions and the following disclaimer in --
-- the documentation and/or other materials provided with the --
-- distribution. --
-- 3. Neither the name of the copyright holder nor the names of its --
-- contributors may be used to endorse or promote products derived --
-- from this software without specific prior written permission. --
-- --
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS --
-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT --
-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR --
-- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT --
-- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, --
-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT --
-- LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, --
-- DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY --
-- THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT --
-- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE --
-- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --
-- --
------------------------------------------------------------------------------
-- with STM32.RCC; use STM32.RCC;
with STM32_SVD.DMA2D; use STM32_SVD.DMA2D;
with STM32_SVD.RCC; use STM32_SVD.RCC;
package body STM32.DMA2D is
use type System.Address;
function To_Word is new Ada.Unchecked_Conversion (System.Address, UInt32);
function Offset (Buffer : DMA2D_Buffer;
X, Y : Integer) return UInt32 with Inline_Always;
DMA2D_Init_Transfer_Int : DMA2D_Sync_Procedure := null;
DMA2D_Wait_Transfer_Int : DMA2D_Sync_Procedure := null;
------------------
-- DMA2D_DeInit --
------------------
procedure DMA2D_DeInit is
begin
RCC_Periph.AHB1ENR.DMA2DEN := False;
DMA2D_Init_Transfer_Int := null;
DMA2D_Wait_Transfer_Int := null;
end DMA2D_DeInit;
----------------
-- DMA2D_Init --
----------------
procedure DMA2D_Init
(Init : DMA2D_Sync_Procedure;
Wait : DMA2D_Sync_Procedure)
is
begin
if DMA2D_Init_Transfer_Int = Init then
return;
end if;
DMA2D_DeInit;
DMA2D_Init_Transfer_Int := Init;
DMA2D_Wait_Transfer_Int := Wait;
RCC_Periph.AHB1ENR.DMA2DEN := True;
RCC_Periph.AHB1RSTR.DMA2DRST := True;
RCC_Periph.AHB1RSTR.DMA2DRST := False;
end DMA2D_Init;
------------
-- Offset --
------------
function Offset (Buffer : DMA2D_Buffer;
X, Y : Integer) return UInt32
is
Off : constant UInt32 := UInt32 (X + Buffer.Width * Y);
begin
case Buffer.Color_Mode is
when ARGB8888 =>
return 4 * Off;
when RGB888 =>
return 3 * Off;
when ARGB1555 | ARGB4444 | RGB565 | AL88 =>
return 2 * Off;
when L8 | AL44 | A8 =>
return Off;
when L4 | A4 =>
return Off / 2;
end case;
end Offset;
----------------
-- DMA2D_Fill --
----------------
procedure DMA2D_Fill
(Buffer : DMA2D_Buffer;
Color : UInt32;
Synchronous : Boolean := False)
is
function Conv is new Ada.Unchecked_Conversion (UInt32, OCOLR_Register);
begin
DMA2D_Wait_Transfer_Int.all;
DMA2D_Periph.CR.MODE := DMA2D_MODE'Enum_Rep (R2M);
DMA2D_Periph.OPFCCR.CM := As_UInt3 (Buffer.Color_Mode);
DMA2D_Periph.OCOLR := Conv (Color);
DMA2D_Periph.OMAR := To_Word (Buffer.Addr);
DMA2D_Periph.OOR := (LO => 0, others => <>);
DMA2D_Periph.NLR := (NL => UInt16 (Buffer.Height),
PL => UInt14 (Buffer.Width),
others => <>);
DMA2D_Init_Transfer_Int.all;
if Synchronous then
DMA2D_Wait_Transfer_Int.all;
end if;
end DMA2D_Fill;
---------------------
-- DMA2D_Fill_Rect --
---------------------
procedure DMA2D_Fill_Rect
(Buffer : DMA2D_Buffer;
Color : UInt32;
X : Integer;
Y : Integer;
Width : Integer;
Height : Integer;
Synchronous : Boolean := False)
is
function Conv is new Ada.Unchecked_Conversion (UInt32, OCOLR_Register);
Off : constant UInt32 := Offset (Buffer, X, Y);
begin
DMA2D_Wait_Transfer_Int.all;
DMA2D_Periph.CR.MODE := DMA2D_MODE'Enum_Rep (R2M);
DMA2D_Periph.OPFCCR :=
(CM => DMA2D_Color_Mode'Enum_Rep (Buffer.Color_Mode),
others => <>);
DMA2D_Periph.OCOLR := Conv (Color);
DMA2D_Periph.OMAR := To_Word (Buffer.Addr) + Off;
DMA2D_Periph.OOR.LO := UInt14 (Buffer.Width - Width);
DMA2D_Periph.NLR :=
(NL => UInt16 (Height), PL => UInt14 (Width), others => <>);
DMA2D_Init_Transfer_Int.all;
if Synchronous then
DMA2D_Wait_Transfer_Int.all;
end if;
end DMA2D_Fill_Rect;
---------------------
-- DMA2D_Draw_Rect --
---------------------
procedure DMA2D_Draw_Rect
(Buffer : DMA2D_Buffer;
Color : UInt32;
X : Integer;
Y : Integer;
Width : Integer;
Height : Integer)
is
begin
DMA2D_Draw_Horizontal_Line (Buffer, Color, X, Y, Width);
DMA2D_Draw_Horizontal_Line (Buffer, Color, X, Y + Height - 1, Width);
DMA2D_Draw_Vertical_Line (Buffer, Color, X, Y, Height);
DMA2D_Draw_Vertical_Line (Buffer, Color, X + Width - 1, Y, Height, True);
end DMA2D_Draw_Rect;
---------------------
-- DMA2D_Copy_Rect --
---------------------
procedure DMA2D_Copy_Rect
(Src_Buffer : DMA2D_Buffer;
X_Src : Natural;
Y_Src : Natural;
Dst_Buffer : DMA2D_Buffer;
X_Dst : Natural;
Y_Dst : Natural;
Bg_Buffer : DMA2D_Buffer;
X_Bg : Natural;
Y_Bg : Natural;
Width : Natural;
Height : Natural;
Synchronous : Boolean := False)
is
Src_Off : constant UInt32 := Offset (Src_Buffer, X_Src, Y_Src);
Dst_Off : constant UInt32 := Offset (Dst_Buffer, X_Dst, Y_Dst);
begin
DMA2D_Wait_Transfer_Int.all;
if Bg_Buffer /= Null_Buffer then
-- PFC and blending
DMA2D_Periph.CR.MODE := DMA2D_MODE'Enum_Rep (M2M_BLEND);
elsif Src_Buffer.Color_Mode = Dst_Buffer.Color_Mode then
-- Direct memory transfer
DMA2D_Periph.CR.MODE := DMA2D_MODE'Enum_Rep (M2M);
else
DMA2D_Periph.CR.MODE := DMA2D_MODE'Enum_Rep (M2M_PFC);
end if;
-- SOURCE CONFIGURATION
DMA2D_Periph.FGPFCCR :=
(CM => DMA2D_Color_Mode'Enum_Rep (Src_Buffer.Color_Mode),
AM => DMA2D_AM'Enum_Rep (NO_MODIF),
ALPHA => 255,
others => <>);
if Src_Buffer.Color_Mode = L8 or else Src_Buffer.Color_Mode = L4 then
if Src_Buffer.CLUT_Addr = System.Null_Address then
raise Program_Error with "Source CLUT address required";
end if;
DMA2D_Periph.FGCMAR := To_Word (Src_Buffer.CLUT_Addr);
DMA2D_Periph.FGCMAR := To_Word (Src_Buffer.CLUT_Addr);
DMA2D_Periph.FGPFCCR.CS := (case Src_Buffer.Color_Mode is
when L8 => 2**8 - 1,
when L4 => 2**4 - 1,
when others => 0);
-- Set CLUT mode to RGB888
DMA2D_Periph.FGPFCCR.CCM := Src_Buffer.CLUT_Color_Mode = RGB888;
-- Start loading the CLUT
DMA2D_Periph.FGPFCCR.START := True;
while DMA2D_Periph.FGPFCCR.START loop
-- Wait for CLUT loading...
null;
end loop;
end if;
DMA2D_Periph.FGOR := (LO => UInt14 (Src_Buffer.Width - Width),
others => <>);
DMA2D_Periph.FGMAR := To_Word (Src_Buffer.Addr) + Src_Off;
if Bg_Buffer /= Null_Buffer then
declare
Bg_Off : constant UInt32 := Offset (Bg_Buffer, X_Bg, Y_Bg);
begin
DMA2D_Periph.BGPFCCR.CM :=
DMA2D_Color_Mode'Enum_Rep (Bg_Buffer.Color_Mode);
DMA2D_Periph.BGMAR := To_Word (Bg_Buffer.Addr) + Bg_Off;
DMA2D_Periph.BGPFCCR.CS := 0;
DMA2D_Periph.BGPFCCR.START := False;
DMA2D_Periph.BGOR :=
(LO => UInt14 (Bg_Buffer.Width - Width), others => <>);
if Bg_Buffer.Color_Mode = L8 or else Bg_Buffer.Color_Mode = L4 then
if Bg_Buffer.CLUT_Addr = System.Null_Address then
raise Program_Error with "Background CLUT address required";
end if;
DMA2D_Periph.BGCMAR := To_Word (Bg_Buffer.CLUT_Addr);
DMA2D_Periph.BGPFCCR.CS := (case Bg_Buffer.Color_Mode is
when L8 => 2**8 - 1,
when L4 => 2**4 - 1,
when others => 0);
-- Set CLUT mode to RGB888
DMA2D_Periph.BGPFCCR.CCM := Bg_Buffer.CLUT_Color_Mode = RGB888;
-- Start loading the CLUT
DMA2D_Periph.BGPFCCR.START := True;
while DMA2D_Periph.BGPFCCR.START loop
-- Wait for CLUT loading...
null;
end loop;
end if;
end;
end if;
-- DST CONFIGURATION
DMA2D_Periph.OPFCCR.CM :=
DMA2D_Color_Mode'Enum_Rep (Dst_Buffer.Color_Mode);
DMA2D_Periph.OMAR := To_Word (Dst_Buffer.Addr) + Dst_Off;
DMA2D_Periph.OOR := (LO => UInt14 (Dst_Buffer.Width - Width),
others => <>);
DMA2D_Periph.NLR := (NL => UInt16 (Height),
PL => UInt14 (Width),
others => <>);
DMA2D_Init_Transfer_Int.all;
if Synchronous then
DMA2D_Wait_Transfer_Int.all;
end if;
end DMA2D_Copy_Rect;
------------------------------
-- DMA2D_Draw_Vertical_Line --
------------------------------
procedure DMA2D_Draw_Vertical_Line
(Buffer : DMA2D_Buffer;
Color : UInt32;
X : Integer;
Y : Integer;
Height : Integer;
Synchronous : Boolean := False)
is
NY, NH : Integer;
begin
if Y >= Buffer.Height
or else X not in 0 .. Buffer.Width - 1
then
return;
end if;
if Y < 0 then
NY := 0;
NH := Height + Y;
else
NY := Y;
NH := Height;
end if;
NH := Integer'Min (NH, Buffer.Height - NY - 1);
DMA2D_Fill_Rect (Buffer, Color, X, NY, 1, NH, Synchronous);
end DMA2D_Draw_Vertical_Line;
--------------------------------
-- DMA2D_Draw_Horizontal_Line --
--------------------------------
procedure DMA2D_Draw_Horizontal_Line
(Buffer : DMA2D_Buffer;
Color : UInt32;
X : Integer;
Y : Integer;
Width : Integer;
Synchronous : Boolean := False)
is
NX, NW : Integer;
begin
if X >= Buffer.Width
or else Y not in 0 .. Buffer.Height - 1
then
return;
end if;
if X < 0 then
NX := 0;
NW := Width + X;
else
NX := X;
NW := Width;
end if;
NW := Integer'Min (NW, Buffer.Width - NX - 1);
DMA2D_Fill_Rect (Buffer, Color, NX, Y, NW, 1, Synchronous);
end DMA2D_Draw_Horizontal_Line;
---------------------
-- DMA2D_Set_Pixel --
---------------------
procedure DMA2D_Set_Pixel
(Buffer : DMA2D_Buffer;
X, Y : Integer;
Color : UInt32;
Synchronous : Boolean := False)
is
function Conv is new Ada.Unchecked_Conversion (UInt32, OCOLR_Register);
Off : constant UInt32 := Offset (Buffer, X, Y);
Dead : Boolean := False with Unreferenced;
begin
if X < 0 or else Y < 0
or else X >= Buffer.Width or else Y >= Buffer.Height
then
return;
end if;
DMA2D_Wait_Transfer_Int.all;
DMA2D_Periph.CR.MODE := DMA2D_MODE'Enum_Rep (R2M);
DMA2D_Periph.OPFCCR.CM := As_UInt3 (Buffer.Color_Mode);
DMA2D_Periph.OCOLR := Conv (Color);
DMA2D_Periph.OMAR := To_Word (Buffer.Addr) + Off;
DMA2D_Periph.OOR := (LO => 1, others => <>);
DMA2D_Periph.NLR := (NL => 1, PL => 1, others => <>);
DMA2D_Init_Transfer_Int.all;
if Synchronous then
DMA2D_Wait_Transfer_Int.all;
end if;
end DMA2D_Set_Pixel;
---------------------------
-- DMA2D_Set_Pixel_Blend --
---------------------------
procedure DMA2D_Set_Pixel_Blend
(Buffer : DMA2D_Buffer;
X, Y : Integer;
Color : DMA2D_Color;
Synchronous : Boolean := False)
is
Off : constant UInt32 := Offset (Buffer, X, Y);
Dead : Boolean := False with Unreferenced;
begin
if X < 0 or else Y < 0
or else X >= Buffer.Width or else Y >= Buffer.Height
then
return;
end if;
DMA2D_Wait_Transfer_Int.all;
-- PFC and blending
DMA2D_Periph.CR.MODE := DMA2D_MODE'Enum_Rep (M2M_BLEND);
-- SOURCE CONFIGURATION
DMA2D_Periph.FGPFCCR.CM := ARGB8888'Enum_Rep;
DMA2D_Periph.FGMAR := To_Word (Color'Address);
DMA2D_Periph.FGPFCCR.AM := DMA2D_AM'Enum_Rep (NO_MODIF);
DMA2D_Periph.FGPFCCR.ALPHA := 255;
DMA2D_Periph.FGPFCCR.CS := 0;
DMA2D_Periph.FGPFCCR.START := False;
DMA2D_Periph.FGOR := (LO => 0, others => <>);
DMA2D_Periph.FGPFCCR.CCM := False; -- Disable CLUT color mode
-- Setup the Background buffer to the destination buffer
DMA2D_Periph.BGPFCCR.CM :=
DMA2D_Color_Mode'Enum_Rep (Buffer.Color_Mode);
DMA2D_Periph.BGMAR := To_Word (Buffer.Addr) + Off;
DMA2D_Periph.BGPFCCR.CS := 0;
DMA2D_Periph.BGPFCCR.START := False;
DMA2D_Periph.BGOR := (LO => UInt14 (Buffer.Width - 1),
others => <>);
DMA2D_Periph.BGPFCCR.CCM := False; -- Disable CLUT color mode
-- DST CONFIGURATION
DMA2D_Periph.OPFCCR.CM :=
DMA2D_Color_Mode'Enum_Rep (Buffer.Color_Mode);
DMA2D_Periph.OMAR := To_Word (Buffer.Addr) + Off;
DMA2D_Periph.OOR := (LO => UInt14 (Buffer.Width - 1),
others => <>);
DMA2D_Periph.NLR := (NL => 1,
PL => 1,
others => <>);
DMA2D_Init_Transfer_Int.all;
if Synchronous then
DMA2D_Wait_Transfer_Int.all;
end if;
end DMA2D_Set_Pixel_Blend;
-------------------------
-- DMA2D_Wait_Transfer --
-------------------------
procedure DMA2D_Wait_Transfer is
begin
DMA2D_Wait_Transfer_Int.all;
end DMA2D_Wait_Transfer;
end STM32.DMA2D;
| 33.762887 | 79 | 0.528244 |
c71e38c2cc3f1f2b1c4e624c9875e03ad32e37a3 | 5,525 | ads | Ada | source/amf/uml/amf-standard_profile_l2-instantiates-collections.ads | svn2github/matreshka | 9d222b3ad9da508855fb1f5adbe5e8a4fad4c530 | [
"BSD-3-Clause"
] | 24 | 2016-11-29T06:59:41.000Z | 2021-08-30T11:55:16.000Z | source/amf/uml/amf-standard_profile_l2-instantiates-collections.ads | svn2github/matreshka | 9d222b3ad9da508855fb1f5adbe5e8a4fad4c530 | [
"BSD-3-Clause"
] | 2 | 2019-01-16T05:15:20.000Z | 2019-02-03T10:03:32.000Z | source/amf/uml/amf-standard_profile_l2-instantiates-collections.ads | svn2github/matreshka | 9d222b3ad9da508855fb1f5adbe5e8a4fad4c530 | [
"BSD-3-Clause"
] | 4 | 2017-07-18T07:11:05.000Z | 2020-06-21T03:02:25.000Z | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- Ada Modeling Framework --
-- --
-- Runtime Library Component --
-- --
------------------------------------------------------------------------------
-- --
-- Copyright © 2011-2012, Vadim Godunko <[email protected]> --
-- All rights reserved. --
-- --
-- Redistribution and use in source and binary forms, with or without --
-- modification, are permitted provided that the following conditions --
-- are met: --
-- --
-- * Redistributions of source code must retain the above copyright --
-- notice, this list of conditions and the following disclaimer. --
-- --
-- * Redistributions in binary form must reproduce the above copyright --
-- notice, this list of conditions and the following disclaimer in the --
-- documentation and/or other materials provided with the distribution. --
-- --
-- * Neither the name of the Vadim Godunko, IE nor the names of its --
-- contributors may be used to endorse or promote products derived from --
-- this software without specific prior written permission. --
-- --
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS --
-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT --
-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR --
-- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT --
-- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, --
-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED --
-- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR --
-- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF --
-- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING --
-- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS --
-- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --
-- --
------------------------------------------------------------------------------
-- $Revision$ $Date$
------------------------------------------------------------------------------
-- This file is generated, don't edit it.
------------------------------------------------------------------------------
with AMF.Generic_Collections;
package AMF.Standard_Profile_L2.Instantiates.Collections is
pragma Preelaborate;
package Standard_Profile_L2_Instantiate_Collections is
new AMF.Generic_Collections
(Standard_Profile_L2_Instantiate,
Standard_Profile_L2_Instantiate_Access);
type Set_Of_Standard_Profile_L2_Instantiate is
new Standard_Profile_L2_Instantiate_Collections.Set with null record;
Empty_Set_Of_Standard_Profile_L2_Instantiate : constant Set_Of_Standard_Profile_L2_Instantiate;
type Ordered_Set_Of_Standard_Profile_L2_Instantiate is
new Standard_Profile_L2_Instantiate_Collections.Ordered_Set with null record;
Empty_Ordered_Set_Of_Standard_Profile_L2_Instantiate : constant Ordered_Set_Of_Standard_Profile_L2_Instantiate;
type Bag_Of_Standard_Profile_L2_Instantiate is
new Standard_Profile_L2_Instantiate_Collections.Bag with null record;
Empty_Bag_Of_Standard_Profile_L2_Instantiate : constant Bag_Of_Standard_Profile_L2_Instantiate;
type Sequence_Of_Standard_Profile_L2_Instantiate is
new Standard_Profile_L2_Instantiate_Collections.Sequence with null record;
Empty_Sequence_Of_Standard_Profile_L2_Instantiate : constant Sequence_Of_Standard_Profile_L2_Instantiate;
private
Empty_Set_Of_Standard_Profile_L2_Instantiate : constant Set_Of_Standard_Profile_L2_Instantiate
:= (Standard_Profile_L2_Instantiate_Collections.Set with null record);
Empty_Ordered_Set_Of_Standard_Profile_L2_Instantiate : constant Ordered_Set_Of_Standard_Profile_L2_Instantiate
:= (Standard_Profile_L2_Instantiate_Collections.Ordered_Set with null record);
Empty_Bag_Of_Standard_Profile_L2_Instantiate : constant Bag_Of_Standard_Profile_L2_Instantiate
:= (Standard_Profile_L2_Instantiate_Collections.Bag with null record);
Empty_Sequence_Of_Standard_Profile_L2_Instantiate : constant Sequence_Of_Standard_Profile_L2_Instantiate
:= (Standard_Profile_L2_Instantiate_Collections.Sequence with null record);
end AMF.Standard_Profile_L2.Instantiates.Collections;
| 60.054348 | 114 | 0.562172 |
c75d78205f2fa2098647d5ac0b0a85263a619473 | 1,119 | adb | Ada | contrib/gnu/gdb/dist/gdb/testsuite/gdb.ada/py_range/foo.adb | TheSledgeHammer/2.11BSD | fe61f0b9aaa273783cd027c7b5ec77e95ead2153 | [
"BSD-3-Clause"
] | 3 | 2021-05-04T17:09:06.000Z | 2021-10-04T07:19:26.000Z | contrib/gnu/gdb/dist/gdb/testsuite/gdb.ada/py_range/foo.adb | TheSledgeHammer/2.11BSD | fe61f0b9aaa273783cd027c7b5ec77e95ead2153 | [
"BSD-3-Clause"
] | null | null | null | contrib/gnu/gdb/dist/gdb/testsuite/gdb.ada/py_range/foo.adb | TheSledgeHammer/2.11BSD | fe61f0b9aaa273783cd027c7b5ec77e95ead2153 | [
"BSD-3-Clause"
] | null | null | null | -- Copyright 2013-2020 Free Software Foundation, Inc.
--
-- This program is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation; either version 3 of the License, or
-- (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program. If not, see <http://www.gnu.org/licenses/>.
with Pck; use Pck;
procedure Foo is
type Small is range -128 .. 127;
SR : Small := 48;
type Small_Integer is range -2 ** 31 .. 2 ** 31 - 1;
SI : Small_Integer := 740804;
type Integer4_T is range -2 ** 31 .. 2 ** 31 - 1;
for Integer4_T'Size use 32;
IR : Integer4_T := 974;
begin
Do_Nothing (SR'Address); -- STOP
Do_Nothing (SI'Address);
Do_Nothing (IR'Address);
end Foo;
| 33.909091 | 73 | 0.692583 |
c764a6b971515f59db26ba10dfc17d7d5c230636 | 13,298 | adb | Ada | middleware/src/bitmap/memory_mapped_bitmap.adb | shakram02/Ada_Drivers_Library | a407ca7ddbc2d9756647016c2f8fd8ef24a239ff | [
"BSD-3-Clause"
] | 192 | 2016-06-01T18:32:04.000Z | 2022-03-26T22:52:31.000Z | middleware/src/bitmap/memory_mapped_bitmap.adb | shakram02/Ada_Drivers_Library | a407ca7ddbc2d9756647016c2f8fd8ef24a239ff | [
"BSD-3-Clause"
] | 239 | 2016-05-26T20:02:01.000Z | 2022-03-31T09:46:56.000Z | middleware/src/bitmap/memory_mapped_bitmap.adb | shakram02/Ada_Drivers_Library | a407ca7ddbc2d9756647016c2f8fd8ef24a239ff | [
"BSD-3-Clause"
] | 142 | 2016-06-05T08:12:20.000Z | 2022-03-24T17:37:17.000Z | ------------------------------------------------------------------------------
-- --
-- Copyright (C) 2015-2017, AdaCore --
-- --
-- Redistribution and use in source and binary forms, with or without --
-- modification, are permitted provided that the following conditions are --
-- met: --
-- 1. Redistributions of source code must retain the above copyright --
-- notice, this list of conditions and the following disclaimer. --
-- 2. Redistributions in binary form must reproduce the above copyright --
-- notice, this list of conditions and the following disclaimer in --
-- the documentation and/or other materials provided with the --
-- distribution. --
-- 3. Neither the name of the copyright holder nor the names of its --
-- contributors may be used to endorse or promote products derived --
-- from this software without specific prior written permission. --
-- --
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS --
-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT --
-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR --
-- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT --
-- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, --
-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT --
-- LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, --
-- DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY --
-- THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT --
-- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE --
-- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --
-- --
------------------------------------------------------------------------------
with System.Storage_Elements; use System.Storage_Elements;
with Bitmap_Color_Conversion;
package body Memory_Mapped_Bitmap is
procedure Handle_Swap
(Buffer : Memory_Mapped_Bitmap_Buffer'Class;
X : in out Natural;
Y : in out Natural);
-----------------
-- Handle_Swap --
-----------------
procedure Handle_Swap
(Buffer : Memory_Mapped_Bitmap_Buffer'Class;
X : in out Natural;
Y : in out Natural)
is
Tmp : Natural;
begin
if not Buffer.Currently_Swapped then
return;
end if;
Tmp := X;
X := Y;
Y := Buffer.Actual_Width - Tmp - 1;
end Handle_Swap;
----------------
-- Set_Source --
----------------
overriding
procedure Set_Source (Buffer : in out Memory_Mapped_Bitmap_Buffer;
ARGB : Bitmap_Color)
is
begin
Buffer.Native_Source := Bitmap_Color_Conversion.Bitmap_Color_To_Word
(Buffer.Actual_Color_Mode, ARGB);
end Set_Source;
----------------
-- Set_Source --
----------------
overriding
procedure Set_Source (Buffer : in out Memory_Mapped_Bitmap_Buffer;
Native : UInt32)
is
begin
Buffer.Native_Source := Native;
end Set_Source;
------------
-- Source --
------------
overriding
function Source
(Buffer : Memory_Mapped_Bitmap_Buffer)
return Bitmap_Color
is
begin
return Bitmap_Color_Conversion.Word_To_Bitmap_Color
(Buffer.Actual_Color_Mode, Buffer.Native_Source);
end Source;
------------
-- Source --
------------
overriding
function Source (Buffer : Memory_Mapped_Bitmap_Buffer)
return UInt32
is (Buffer.Native_Source);
---------------
-- Set_Pixel --
---------------
overriding
procedure Set_Pixel
(Buffer : in out Memory_Mapped_Bitmap_Buffer;
Pt : Point)
is
X0 : Natural := Pt.X;
Y0 : Natural := Pt.Y;
Offset : Natural;
Value : constant UInt32 := Buffer.Native_Source;
begin
if Pt.X >= Buffer.Width
or else Pt.Y >= Buffer.Height
then
return;
end if;
if Buffer.Swapped then
Handle_Swap (Buffer, X0, Y0);
Offset := X0 + Y0 * Buffer.Actual_Height;
else
Offset := Pt.X + Pt.Y * Buffer.Actual_Width;
end if;
case Buffer.Color_Mode is
when ARGB_8888 =>
declare
Pixel : aliased UInt32
with Import,
Address => Buffer.Addr + Storage_Offset (Offset * 4);
begin
Pixel := Value;
end;
when RGB_888 =>
declare
Pixel_B : aliased UInt8
with Import,
Address => Buffer.Addr + Storage_Offset (Offset * 3);
Pixel_G : aliased UInt8
with Import,
Address => Buffer.Addr + Storage_Offset (Offset * 3 + 1);
Pixel_R : aliased UInt8
with Import,
Address => Buffer.Addr + Storage_Offset (Offset * 3 + 2);
R : constant UInt8 :=
UInt8 (Shift_Right (Value and 16#FF0000#, 16));
G : constant UInt8 :=
UInt8 (Shift_Right (Value and 16#FF00#, 8));
B : constant UInt8 := UInt8 (Value and 16#FF#);
begin
Pixel_B := B;
Pixel_G := G;
Pixel_R := R;
end;
when ARGB_1555 | ARGB_4444 | RGB_565 | AL_88 =>
declare
Pixel : aliased UInt16
with Import,
Address => Buffer.Addr + Storage_Offset (Offset * 2);
begin
Pixel := UInt16 (Value and 16#FF_FF#);
end;
when L_8 | AL_44 | A_8 =>
declare
Pixel : aliased UInt8
with Import,
Address => Buffer.Addr + Storage_Offset (Offset);
begin
Pixel := UInt8 (Value and 16#FF#);
end;
when L_4 | A_4 =>
declare
Pixel : aliased UInt8
with Import,
Address => Buffer.Addr + Storage_Offset (Offset / 2);
begin
if Offset mod 2 = 0 then
Pixel :=
(Pixel and 16#0F#) or
Shift_Left (UInt8 (Value and 16#0F#), 4);
else
Pixel := (Pixel and 16#F0#) or UInt8 (Value and 16#0F#);
end if;
end;
when M_1 =>
declare
type Mono_BM is array (Natural range <>) of Bit with Pack;
BM : aliased Mono_BM (0 .. (Buffer.Height * Buffer.Width) - 1)
with Import, Address => Buffer.Addr;
begin
BM (Offset) := (if Value /= 0 then 1 else 0);
end;
end case;
end Set_Pixel;
---------------
-- Set_Pixel --
---------------
overriding
procedure Set_Pixel
(Buffer : in out Memory_Mapped_Bitmap_Buffer;
Pt : Point;
Color : Bitmap_Color)
is
begin
Buffer.Native_Source := Bitmap_Color_Conversion.Bitmap_Color_To_Word
(Buffer.Actual_Color_Mode, Color);
Set_Pixel (Buffer, Pt);
end Set_Pixel;
---------------
-- Set_Pixel --
---------------
overriding
procedure Set_Pixel
(Buffer : in out Memory_Mapped_Bitmap_Buffer;
Pt : Point;
Raw : UInt32)
is
begin
Buffer.Native_Source := Raw;
Set_Pixel (Buffer, Pt);
end Set_Pixel;
---------------------
-- Set_Pixel_Blend --
---------------------
overriding
procedure Set_Pixel_Blend
(Buffer : in out Memory_Mapped_Bitmap_Buffer;
Pt : Point)
is
Col : Bitmap_Color;
FgA, FgR, FgG, FgB : Float;
BgA, BgR, BgG, BgB : Float;
RA, RR, RG, RB : Float;
Value : constant Bitmap_Color :=
Bitmap_Color_Conversion.Word_To_Bitmap_Color (Buffer.Actual_Color_Mode,
Buffer.Native_Source);
begin
if Value.Alpha = 255 then
Set_Pixel (Memory_Mapped_Bitmap_Buffer'Class (Buffer), Pt);
else
Col := Pixel (Bitmap_Buffer'Class (Buffer), Pt);
BgA := Float (Col.Alpha) / 255.0;
BgR := Float (Col.Red) / 255.0;
BgG := Float (Col.Green) / 255.0;
BgB := Float (Col.Blue) / 255.0;
FgA := Float (Value.Alpha) / 255.0;
FgR := Float (Value.Red) / 255.0;
FgG := Float (Value.Green) / 255.0;
FgB := Float (Value.Blue) / 255.0;
RA := 1.0 - (1.0 - FgA) * (1.0 - FgB);
RR := FgR * FgA / RA + BgR * BgA * (1.0 - FgA) / RA;
RG := FgG * FgA / RA + BgG * BgA * (1.0 - FgA) / RA;
RB := FgB * FgA / RA + BgB * BgA * (1.0 - FgA) / RA;
Col := (Alpha => UInt8 (RA * 255.0),
Red => UInt8 (RR * 255.0),
Green => UInt8 (RG * 255.0),
Blue => UInt8 (RB * 255.0));
Set_Source (Buffer, Col);
Set_Pixel (Buffer, Pt);
end if;
-- Restore source color value
Set_Source (Buffer, Value);
end Set_Pixel_Blend;
-----------
-- Pixel --
-----------
overriding
function Pixel
(Buffer : Memory_Mapped_Bitmap_Buffer;
Pt : Point)
return UInt32
is
X0 : Natural := Pt.X;
Y0 : Natural := Pt.Y;
Offset : Natural;
Native_Color : UInt32;
begin
if Buffer.Currently_Swapped then
Handle_Swap (Buffer, X0, Y0);
Offset := X0 + Y0 * Buffer.Actual_Height;
else
Offset := Pt.X + Pt.Y * Buffer.Actual_Width;
end if;
case Buffer.Color_Mode is
when ARGB_8888 =>
declare
Pixel : aliased UInt32
with Import,
Address => Buffer.Addr + Storage_Offset (Offset * 4);
begin
Native_Color := Pixel;
end;
when RGB_888 =>
declare
Pixel_B : aliased UInt8
with Import,
Address => Buffer.Addr + Storage_Offset (Offset * 3);
Pixel_G : aliased UInt8
with Import,
Address => Buffer.Addr + Storage_Offset (Offset * 3 + 1);
Pixel_R : aliased UInt8
with Import,
Address => Buffer.Addr + Storage_Offset (Offset * 3 + 2);
begin
Native_Color := Shift_Left (UInt32 (Pixel_R), 16)
or Shift_Left (UInt32 (Pixel_G), 8) or UInt32 (Pixel_B);
end;
when ARGB_1555 | ARGB_4444 | RGB_565 | AL_88 =>
declare
Pixel : aliased UInt16
with Import,
Address => Buffer.Addr + Storage_Offset (Offset * 2);
begin
Native_Color := UInt32 (Pixel);
end;
when L_8 | AL_44 | A_8 =>
declare
Pixel : aliased UInt8
with Import,
Address => Buffer.Addr + Storage_Offset (Offset);
begin
Native_Color := UInt32 (Pixel);
end;
when L_4 | A_4 =>
declare
Pixel : aliased UInt8
with Import,
Address => Buffer.Addr + Storage_Offset (Offset / 2);
begin
if Offset mod 2 = 0 then
Native_Color := UInt32 (Shift_Right (Pixel and 16#F0#, 4));
else
Native_Color := UInt32 (Pixel and 16#0F#);
end if;
end;
when M_1 =>
declare
type Mono_BM is array (Natural range <>) of Bit with Pack;
BM : aliased Mono_BM (0 .. (Buffer.Height * Buffer.Width) - 1)
with Import, Address => Buffer.Addr;
begin
Native_Color := UInt32 (BM (Offset));
end;
end case;
return Native_Color;
end Pixel;
-----------
-- Pixel --
-----------
overriding
function Pixel
(Buffer : Memory_Mapped_Bitmap_Buffer;
Pt : Point)
return Bitmap_Color
is
begin
return Bitmap_Color_Conversion.Word_To_Bitmap_Color
(Buffer.Actual_Color_Mode,
Pixel (Buffer, Pt));
end Pixel;
-----------------
-- Buffer_Size --
-----------------
overriding
function Buffer_Size (Buffer : Memory_Mapped_Bitmap_Buffer) return Natural
is
begin
return Bits_Per_Pixel (Buffer.Color_Mode) *
Buffer.Width * Buffer.Height / 8;
end Buffer_Size;
end Memory_Mapped_Bitmap;
| 31.813397 | 79 | 0.492179 |
58ac36a71aa843c6d8868ebe4643d1849ada321a | 4,157 | ads | Ada | source/amf/utp/amf-utp-time_outs.ads | svn2github/matreshka | 9d222b3ad9da508855fb1f5adbe5e8a4fad4c530 | [
"BSD-3-Clause"
] | 24 | 2016-11-29T06:59:41.000Z | 2021-08-30T11:55:16.000Z | source/amf/utp/amf-utp-time_outs.ads | svn2github/matreshka | 9d222b3ad9da508855fb1f5adbe5e8a4fad4c530 | [
"BSD-3-Clause"
] | 2 | 2019-01-16T05:15:20.000Z | 2019-02-03T10:03:32.000Z | source/amf/utp/amf-utp-time_outs.ads | svn2github/matreshka | 9d222b3ad9da508855fb1f5adbe5e8a4fad4c530 | [
"BSD-3-Clause"
] | 4 | 2017-07-18T07:11:05.000Z | 2020-06-21T03:02:25.000Z | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- Ada Modeling Framework --
-- --
-- Runtime Library Component --
-- --
------------------------------------------------------------------------------
-- --
-- Copyright © 2012, Vadim Godunko <[email protected]> --
-- All rights reserved. --
-- --
-- Redistribution and use in source and binary forms, with or without --
-- modification, are permitted provided that the following conditions --
-- are met: --
-- --
-- * Redistributions of source code must retain the above copyright --
-- notice, this list of conditions and the following disclaimer. --
-- --
-- * Redistributions in binary form must reproduce the above copyright --
-- notice, this list of conditions and the following disclaimer in the --
-- documentation and/or other materials provided with the distribution. --
-- --
-- * Neither the name of the Vadim Godunko, IE nor the names of its --
-- contributors may be used to endorse or promote products derived from --
-- this software without specific prior written permission. --
-- --
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS --
-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT --
-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR --
-- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT --
-- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, --
-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED --
-- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR --
-- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF --
-- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING --
-- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS --
-- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --
-- --
------------------------------------------------------------------------------
-- $Revision$ $Date$
------------------------------------------------------------------------------
-- This file is generated, don't edit it.
------------------------------------------------------------------------------
limited with AMF.UML.Time_Events;
package AMF.Utp.Time_Outs is
pragma Preelaborate;
type Utp_Time_Out is limited interface;
type Utp_Time_Out_Access is
access all Utp_Time_Out'Class;
for Utp_Time_Out_Access'Storage_Size use 0;
not overriding function Get_Base_Time_Event
(Self : not null access constant Utp_Time_Out)
return AMF.UML.Time_Events.UML_Time_Event_Access is abstract;
-- Getter of TimeOut::base_TimeEvent.
--
not overriding procedure Set_Base_Time_Event
(Self : not null access Utp_Time_Out;
To : AMF.UML.Time_Events.UML_Time_Event_Access) is abstract;
-- Setter of TimeOut::base_TimeEvent.
--
end AMF.Utp.Time_Outs;
| 58.549296 | 78 | 0.443589 |
c7aff6f7b67249369262641e2ccb43b1a392b0d3 | 4,062 | ads | Ada | bb-runtimes/src/s-bbpara__p55.ads | JCGobbi/Nucleo-STM32F334R8 | 2a0b1b4b2664c92773703ac5e95dcb71979d051c | [
"BSD-3-Clause"
] | null | null | null | bb-runtimes/src/s-bbpara__p55.ads | JCGobbi/Nucleo-STM32F334R8 | 2a0b1b4b2664c92773703ac5e95dcb71979d051c | [
"BSD-3-Clause"
] | null | null | null | bb-runtimes/src/s-bbpara__p55.ads | JCGobbi/Nucleo-STM32F334R8 | 2a0b1b4b2664c92773703ac5e95dcb71979d051c | [
"BSD-3-Clause"
] | null | null | null | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- S Y S T E M . B B . P A R A M E T E R S --
-- --
-- S p e c --
-- --
-- Copyright (C) 1999-2002 Universidad Politecnica de Madrid --
-- Copyright (C) 2003-2005 The European Space Agency --
-- Copyright (C) 2003-2016, AdaCore --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 3, or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. --
-- --
-- As a special exception under Section 7 of GPL version 3, you are granted --
-- additional permissions described in the GCC Runtime Library Exception, --
-- version 3.1, as published by the Free Software Foundation. --
-- --
-- You should have received a copy of the GNU General Public License and --
-- a copy of the GCC Runtime Library Exception along with this program; --
-- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
-- <http://www.gnu.org/licenses/>. --
-- --
-- GNAT was originally developed by the GNAT team at New York University. --
-- Extensive contributions were provided by Ada Core Technologies Inc. --
-- --
-- The port of GNARL to bare board targets was initially developed by the --
-- Real-Time Systems Group at the Technical University of Madrid. --
-- --
------------------------------------------------------------------------------
-- This package defines basic parameters used by the low level tasking system
with System.BB.Board_Parameters;
package System.BB.Parameters is
pragma Pure;
--------------------
-- Hardware clock --
--------------------
Ticks_Per_Second : constant := Board_Parameters.Clock_Frequency;
-- Frequency of the system clock
----------------
-- Interrupts --
----------------
-- These definitions are in this package in order to isolate target
-- dependencies.
subtype Interrupt_Range is Natural range 0 .. 330;
-- Number of interrupts (for both the interrupt controller and core
-- interrupts such as the decrementer). MPC5566 has really a large
-- number of interrupts. This range is used to declare a type, and the
-- handler table.
------------
-- Stacks --
------------
Interrupt_Stack_Size : constant := 8 * 1024;
-- Size of each of the interrupt stacks in bytes
Interrupt_Sec_Stack_Size : constant := 1024;
-- Size of the secondary stack for interrupt handlers
----------
-- CPUS --
----------
Max_Number_Of_CPUs : constant := 1;
-- Maximum number of CPUs
Multiprocessor : constant Boolean := Max_Number_Of_CPUs /= 1;
-- Are we on a multiprocessor board?
end System.BB.Parameters;
| 47.788235 | 78 | 0.460364 |
2275669c2594c3b8a81ed05edac8925b088164a9 | 3,281 | ads | Ada | support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/s-dsaser.ads | orb-zhuchen/Orb | 6da2404b949ac28bde786e08bf4debe4a27cd3a0 | [
"CNRI-Python-GPL-Compatible",
"MIT"
] | null | null | null | support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/s-dsaser.ads | orb-zhuchen/Orb | 6da2404b949ac28bde786e08bf4debe4a27cd3a0 | [
"CNRI-Python-GPL-Compatible",
"MIT"
] | null | null | null | support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/s-dsaser.ads | orb-zhuchen/Orb | 6da2404b949ac28bde786e08bf4debe4a27cd3a0 | [
"CNRI-Python-GPL-Compatible",
"MIT"
] | null | null | null | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- S Y S T E M . D S A _ S E R V I C E S --
-- --
-- S p e c --
-- --
-- Copyright (C) 2006-2019, 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/>. --
-- --
-- GNAT was originally developed by the GNAT team at New York University. --
-- Extensive contributions were provided by Ada Core Technologies Inc. --
-- --
------------------------------------------------------------------------------
-- This package is for distributed system annex services, which require the
-- partition communication sub-system to be initialized before they are used.
with System.Partition_Interface;
with System.RPC;
package System.DSA_Services is
function Get_Active_Partition_ID
(Name : Partition_Interface.Unit_Name) return RPC.Partition_ID
renames Partition_Interface.Get_Active_Partition_ID;
-- Return the partition ID of the partition in which unit Name resides
function Get_Local_Partition_ID return RPC.Partition_ID
renames Partition_Interface.Get_Local_Partition_ID;
-- Return the Partition_ID of the current partition
function Get_Passive_Partition_ID
(Name : Partition_Interface.Unit_Name) return RPC.Partition_ID
renames Partition_Interface.Get_Passive_Partition_ID;
-- Return the Partition_ID of the given shared passive partition
end System.DSA_Services;
| 59.654545 | 78 | 0.488266 |
58c96d99ad19e72847d2d5c98e762da35cb54eaf | 4,999 | ads | Ada | source/amf/utp/amf-utp-literal_anies-collections.ads | svn2github/matreshka | 9d222b3ad9da508855fb1f5adbe5e8a4fad4c530 | [
"BSD-3-Clause"
] | 24 | 2016-11-29T06:59:41.000Z | 2021-08-30T11:55:16.000Z | source/amf/utp/amf-utp-literal_anies-collections.ads | svn2github/matreshka | 9d222b3ad9da508855fb1f5adbe5e8a4fad4c530 | [
"BSD-3-Clause"
] | 2 | 2019-01-16T05:15:20.000Z | 2019-02-03T10:03:32.000Z | source/amf/utp/amf-utp-literal_anies-collections.ads | svn2github/matreshka | 9d222b3ad9da508855fb1f5adbe5e8a4fad4c530 | [
"BSD-3-Clause"
] | 4 | 2017-07-18T07:11:05.000Z | 2020-06-21T03:02:25.000Z | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- Ada Modeling Framework --
-- --
-- Runtime Library Component --
-- --
------------------------------------------------------------------------------
-- --
-- Copyright © 2012, Vadim Godunko <[email protected]> --
-- All rights reserved. --
-- --
-- Redistribution and use in source and binary forms, with or without --
-- modification, are permitted provided that the following conditions --
-- are met: --
-- --
-- * Redistributions of source code must retain the above copyright --
-- notice, this list of conditions and the following disclaimer. --
-- --
-- * Redistributions in binary form must reproduce the above copyright --
-- notice, this list of conditions and the following disclaimer in the --
-- documentation and/or other materials provided with the distribution. --
-- --
-- * Neither the name of the Vadim Godunko, IE nor the names of its --
-- contributors may be used to endorse or promote products derived from --
-- this software without specific prior written permission. --
-- --
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS --
-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT --
-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR --
-- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT --
-- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, --
-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED --
-- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR --
-- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF --
-- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING --
-- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS --
-- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --
-- --
------------------------------------------------------------------------------
-- $Revision$ $Date$
------------------------------------------------------------------------------
-- This file is generated, don't edit it.
------------------------------------------------------------------------------
with AMF.Generic_Collections;
package AMF.Utp.Literal_Anies.Collections is
pragma Preelaborate;
package Utp_Literal_Any_Collections is
new AMF.Generic_Collections
(Utp_Literal_Any,
Utp_Literal_Any_Access);
type Set_Of_Utp_Literal_Any is
new Utp_Literal_Any_Collections.Set with null record;
Empty_Set_Of_Utp_Literal_Any : constant Set_Of_Utp_Literal_Any;
type Ordered_Set_Of_Utp_Literal_Any is
new Utp_Literal_Any_Collections.Ordered_Set with null record;
Empty_Ordered_Set_Of_Utp_Literal_Any : constant Ordered_Set_Of_Utp_Literal_Any;
type Bag_Of_Utp_Literal_Any is
new Utp_Literal_Any_Collections.Bag with null record;
Empty_Bag_Of_Utp_Literal_Any : constant Bag_Of_Utp_Literal_Any;
type Sequence_Of_Utp_Literal_Any is
new Utp_Literal_Any_Collections.Sequence with null record;
Empty_Sequence_Of_Utp_Literal_Any : constant Sequence_Of_Utp_Literal_Any;
private
Empty_Set_Of_Utp_Literal_Any : constant Set_Of_Utp_Literal_Any
:= (Utp_Literal_Any_Collections.Set with null record);
Empty_Ordered_Set_Of_Utp_Literal_Any : constant Ordered_Set_Of_Utp_Literal_Any
:= (Utp_Literal_Any_Collections.Ordered_Set with null record);
Empty_Bag_Of_Utp_Literal_Any : constant Bag_Of_Utp_Literal_Any
:= (Utp_Literal_Any_Collections.Bag with null record);
Empty_Sequence_Of_Utp_Literal_Any : constant Sequence_Of_Utp_Literal_Any
:= (Utp_Literal_Any_Collections.Sequence with null record);
end AMF.Utp.Literal_Anies.Collections;
| 54.336957 | 82 | 0.515303 |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.