CombinedText stringlengths 4 3.42M |
|---|
-- Stnd Binary Rank Test.
with text_io; use text_io;
with Binary_Rank;
with Disorderly.Random; use Disorderly.Random;
with Disorderly.Random.Clock_Entropy;
with Ada.Numerics.Discrete_Random;
with Chi_Gaussian_CDF;
procedure rank_tst_demo_1 is
type Real is digits 15;
Bits_per_Random_Word : constant := 32;
pragma Assert (Bits_per_Random_Word > 31 and Bits_per_Random_Word < 62);
-- 32 bits for general tests. (Test parameters below were designed for > 30 bits.)
package Rank_Matrix is new Binary_Rank
(No_of_Bits_per_Segment => Bits_per_Random_Word,
Segments_per_Vector => 1); -- can't change from 1
use Rank_Matrix;
r : Binary_Matrix;
Max_Row, Max_Col : constant Matrix_Index := Matrix_Index'Last;
-- Matrix_Index goes from 1 .. Bits_per_Vector.
-- all array start at 1, since that's the way Marsaglia's diehard does it.
-- Notice that we can do sub blocks of the full matrix by changing above.
-- Variables for chi-square test:
package chi_cdf is new Chi_Gaussian_CDF (Real);
Sample_Size : constant := 2**12; -- for quick demo, 2**12 is min. acceptable.
--Sample_Size : constant := 2**27; -- 2**27 is good for strong test.
-- Usually, the best way to make the Chi-Square as strong as possible is
-- to make the Sample_Size as large as possible.
x : Random_Int;
Stream_1 : State;
Rank : Integer;
Outcome_id : Matrix_Index;
ave_chi, ave_p, ave_normalized_var_of_p : Real := 0.0;
True_Degrees_of_Freedom : constant := 3;
subtype Range_of_Possible_Outcomes is
Matrix_Index range Max_Col-True_Degrees_of_Freedom .. Max_Col;
type Statistical_Data is array (Range_of_Possible_Outcomes) of Real;
Observed_Count : Statistical_Data := (others => 0.0);
Expected_Count : Statistical_Data := (others => 0.0);
Expected_Frequency : constant Statistical_Data :=
-- FOR 31 bits and greater:
-- True_Degrees_of_Freedom : constant := 2;
--(0.13363571467, 0.57757619017, 0.28878809515);
-- True_Degrees_of_Freedom : constant := 3;
(0.00528545025, 0.12835026442, 0.57757619017, 0.28878809515);
-- True_Degrees_of_Freedom : constant := 4;
--(4.66639518324E-05, 0.0052387863054, 0.1283502644829,
-- 0.577576190173205, 0.2887880950866);
-- True_Degrees_of_Freedom : constant := 5;
-- (9.6962450869E-08, 4.65669893816E-05, 0.0052387863054,
-- 0.12835026448293, 0.577576190173205, 0.2887880950866);
-- from known analytical distribution (true asymptotically also):
-- expected rank_freq
-- rank probability
-- <=29 0.00528545025
-- 30 0.12835026442
-- 31 0.57757619017
-- 32 0.28878809515
--
-- 58 4.66639518324322E-05
-- 59 5.23878630542589E-03
-- 60 1.28350264482934E-01
-- 61 5.77576190173205E-01
-- 62 2.88788095086602E-01
-- 57 9.69624508687517E-08
-- 58 4.65669893815635E-05
-- 59 5.23878630542589E-03
-- 60 1.28350264482934E-01
-- 61 5.77576190173205E-01
-- 62 2.88788095086602E-01
-- 61 bits:
--
-- 56 9.69624508687517E-08
-- 57 4.65669893815635E-05
-- 58 5.23878630542589E-03
-- 59 1.28350264482934E-01
-- 60 5.77576190173205E-01
-- 61 2.88788095086602E-01
--
-- 57 4.66639518324322E-05 and all < 57
-- 58 5.23878630542589E-03
-- 59 1.28350264482934E-01
-- 60 5.77576190173205E-01
-- 61 2.88788095086602E-01
--25 6.05558642701658E-15
--26 4.88352774683776E-11
--27 9.69136088580580E-08
--28 4.65669892297724E-05
--29 5.23878629810739E-03
--30 1.28350264423167E-01
--31 5.77576190173205E-01
--32 2.88788095153841E-01
--------------------
-- Get_Random_Stnd -
--------------------
-- Compiler's native random number generator.
type Unsigned_Stnd is mod 2**Bits_per_Random_Word;
package rnd is new Ada.Numerics.Discrete_Random (Unsigned_Stnd);
Stream_Stnd : rnd.Generator;
procedure Get_Random_Stnd(X : out Random_Int; S : in rnd.Generator)
is
begin
X := Random_Int (rnd.Random (S));
end Get_Random_Stnd;
pragma Inline (Get_Random_Stnd);
begin
for i in Range_of_Possible_Outcomes loop
Expected_Count (i) := Expected_Frequency (i) * Real(Sample_Size);
end loop;
-- Init array of expected counts: same really for 31 bit to 64 bit nums.
-- True_Degrees_of_Freedom : constant := 3; These 4 sum to 1.0
rnd.Reset (Stream_Stnd);
-- compiler's PRNG; Initialize the stream even if you don't use it.
Clock_Entropy.Reset (Stream_1);
-- Init Stream_1 for calls to Get_Random(x, Stream_1);
-- do 1 chi-sqr test per Chi_Test_id value:
for Chi_Test_id in Long_Integer range 1..2**28 loop -- forever really
Observed_Count := (others => 0.0);
for Draw_id in Long_Integer range 1 .. Sample_Size loop
for Col_id in Matrix_Index range Matrix_Index'First .. Max_Col loop
for Seg_id in Segments loop
--Get_Random_Stnd (X, Stream_Stnd);
Get_Random(X, Stream_1);
r(Col_id)(Seg_id) := Unsigned_Segment(X mod 2**Bits_per_Random_Word);
end loop;
end loop;
Get_Rank(r, Max_Row, Max_Col, Rank);
--text_io.put(integer'Image(Max_Col - Rank));
if Matrix_Index(Rank) > Range_of_Possible_Outcomes'First then
Outcome_id := Matrix_Index(Rank);
else
Outcome_id := Range_of_Possible_Outcomes'First;
end if;
Observed_Count(Outcome_id) := Observed_Count(Outcome_id) + 1.0;
end loop;
declare
chi, e, s, normalized_variance_of_p, p_val : Real;
Degrees_of_Freedom : constant Real := Real (True_Degrees_of_Freedom);
begin
chi := 0.0;
for Outcome in Range_of_Possible_Outcomes loop
e := Expected_Count(Outcome);
s := (Observed_Count(Outcome) - e)**2 / e;
chi := chi + s;
end loop;
p_val := chi_cdf.Chi_Squared_CDF (Degrees_of_Freedom, chi);
normalized_variance_of_p := (p_val - 0.5)**2 / (0.25/3.0);
ave_chi := ave_chi + chi;
ave_p := ave_p + p_val;
ave_normalized_var_of_p := ave_normalized_var_of_p + normalized_variance_of_p;
end;
new_line(1);
Put ("p-val average (should be 0.5, after 1000's of iterations):");
put (Real'Image (ave_p / Real (Chi_Test_id)));
new_line;
Put ("p-val variance (should be 1.0, after 1000's of iterations):");
put (Real'Image (ave_normalized_var_of_p / (Real (Chi_Test_id))));
new_line;
end loop;
end;
|
with Memory.Container; use Memory.Container;
package Memory.Prefetch is
type Prefetch_Type is new Container_Type with private;
type Prefetch_Pointer is access all Prefetch_Type'Class;
function Create_Prefetch(mem : access Memory_Type'Class;
stride : Address_Type := 1)
return Prefetch_Pointer;
function Random_Prefetch(next : access Memory_Type'Class;
generator : Distribution_Type;
max_cost : Cost_Type)
return Memory_Pointer;
overriding
function Clone(mem : Prefetch_Type) return Memory_Pointer;
overriding
procedure Permute(mem : in out Prefetch_Type;
generator : in Distribution_Type;
max_cost : in Cost_Type);
overriding
procedure Reset(mem : in out Prefetch_Type;
context : in Natural);
overriding
procedure Read(mem : in out Prefetch_Type;
address : in Address_Type;
size : in Positive);
overriding
procedure Write(mem : in out Prefetch_Type;
address : in Address_Type;
size : in Positive);
overriding
procedure Idle(mem : in out Prefetch_Type;
cycles : in Time_Type);
overriding
function Get_Time(mem : Prefetch_Type) return Time_Type;
overriding
function To_String(mem : Prefetch_Type) return Unbounded_String;
overriding
function Get_Cost(mem : Prefetch_Type) return Cost_Type;
overriding
procedure Generate(mem : in Prefetch_Type;
sigs : in out Unbounded_String;
code : in out Unbounded_String);
private
type Prefetch_Type is new Container_Type with record
pending : Time_Type := 0;
stride : Address_Type := 1;
end record;
end Memory.Prefetch;
|
-------------------------------------------------------------------------------
-- This file is part of libsparkcrypto.
--
-- @author Alexander Senier
-- @date 2019-01-21
--
-- Copyright (C) 2018 Componolit GmbH
-- All rights reserved.
--
-- Redistribution and use in source and binary forms, with or without
-- modification, are permitted provided that the following conditions are met:
--
-- * Redistributions of source code must retain the above copyright notice,
-- this list of conditions and the following disclaimer.
--
-- * Redistributions in binary form must reproduce the above copyright
-- notice, this list of conditions and the following disclaimer in the
-- documentation and/or other materials provided with the distribution.
--
-- * Neither the name of the nor the names of its contributors may be used
-- to endorse or promote products derived from this software without
-- specific prior written permission.
--
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
-- AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-- ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS
-- BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-- CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-- SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-- INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-- CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-- POSSIBILITY OF SUCH DAMAGE.
-------------------------------------------------------------------------------
with AUnit; use AUnit;
with AUnit.Test_Cases; use AUnit.Test_Cases;
-- @summary Tests SHA-2
package LSC_Test_SHA2 is
type Test_Case is new Test_Cases.Test_Case with null record;
procedure Register_Tests (T : in out Test_Case);
-- Register routines to be run
function Name (T : Test_Case) return Message_String;
-- Provide name identifying the test case
end LSC_Test_SHA2;
|
-- C83F03D0M.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.
--*
-- MAIN PROGRAM REQUIRING A SEPARATELY COMPILED PACKAGE BODY SUBUNIT
-- ( C83F03D1.ADA )
-- CHECK THAT IF A PACKAGE BODY IS NESTED INSIDE A SEPARATELY COMPILED
-- PACKAGE BODY
-- THE INNER PACKAGE BODY CAN CONTAIN A LABEL IDENTIFIER IDENTICAL
-- TO A LABEL IDENTIFIER IN THE OUTER PACKAGE BODY OR TO AN IDENTI-
-- FIER DECLARED IN THE OUTER PACKAGE BODY OR IN ITS SPECIFICATION
-- OR IN ITS ENVIRONMENT.
-- CASE 2: PACKAGE BODY IS A COMPILATION SUBUNIT
-- RM 08 SEPTEMBER 1980
-- JRK 14 NOVEMBER 1980
WITH REPORT;
PROCEDURE C83F03D0M IS
USE REPORT ;
X1 : INTEGER := 17 ;
TYPE T1 IS ( A, B, C ) ;
Z : T1 := A ;
FLOW_INDEX : INTEGER := 0 ;
PACKAGE C83F03D1 IS
Y3 : INTEGER := 100 ;
TYPE T3 IS ( D , E , F ) ;
PACKAGE P IS
AA : BOOLEAN := FALSE ;
END P ;
END C83F03D1 ;
Y1 : INTEGER := 100 ;
PACKAGE BODY C83F03D1 IS SEPARATE ;
BEGIN
TEST( "C83F03D" , "CHECK THE RECOGNITION OF LABELS IN NESTED" &
" PACKAGES SEPARATELY COMPILED AS SUBUNITS" );
<< LABEL_IN_MAIN >>
IF FLOW_INDEX /= 10
THEN FAILED( "INCORRECT FLOW OF CONTROL" );
END IF;
RESULT; -- POSS. ERROR DURING ELABORATION OF P
END C83F03D0M;
|
-- ---------------------------------------------------------------- --
-- This file contains some improvements to the gl Ada binding --
-- in order to allow a better programming style. --
-- The prototypes below follow the Implementation advice from --
-- ARM Annex B (B.3). --
-- ---------------------------------------------------------------- --
-- ----------------------------------------------------------------- --
-- Copyright (C) 2001 A.M.F.Vargas --
-- Antonio M. F. Vargas --
-- Ponta Delgada - Azores - Portugal --
-- http://www.adapower.net/~avargas --
-- E-mail: avargas@adapower.net --
-- ----------------------------------------------------------------- --
-- --
-- This library 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 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 --
-- General Public License for more details. --
-- --
-- You should have received a copy of the GNU 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. --
-- --
-- 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. --
-- ----------------------------------------------------------------- --
with gl_h; use gl_h;
package AdaGL is
function glGetString (Chars_Ref : GLenum) return String;
type Three_GLfloat_Vector is array (0 .. 2) of GLfloat;
pragma Convention (C, Three_GLFloat_Vector);
type Four_GLfloat_Vector is array (0 .. 3) of GLfloat;
pragma Convention (C, Four_GLFloat_Vector);
type Three_GLint_Vector is array (0 .. 2) of GLint;
pragma Convention (C, Three_GLint_Vector);
type Four_GLint_Vector is array (0 .. 3) of GLint;
pragma Convention (C, Four_GLint_Vector);
procedure glVertex3fv (v : Three_GLFloat_Vector);
pragma Import (C, glVertex3fv, "glVertex3fv");
procedure glColor3fv (v : Three_GLFloat_Vector);
pragma Import (C, glColor3fv, "glColor3fv");
-- To be used with pname receiving one of:
-- GL_AMBIENT, GL_DIFFUSE, GL_SPECULAR, GL_POSITION
procedure glLightfv (light : GLenum;
pname : GLenum;
params : Three_GLFloat_Vector);
-- To be used with pname receiving GL_SPOT_DIRECTION:
procedure glLightfv (light : GLenum;
pname : GLenum;
params : Four_GLFloat_Vector);
-- To be used with pname receiving:
-- GL_SPOT_EXPONENT, GL_SPOT_CUTOFF, GL_CONSTANT_ATTENUATION,
-- GL_LINEAR_ATTENUATION, GL_QUADRATIC_ATTENUATION
procedure glLightfv (light : GLenum;
pname : GLenum;
params : in out GLFloat); -- pseudo in
pragma Import (C, glLightfv, "glLightfv");
-- To be used with pname receiving one of:
-- GL_AMBIENT, GL_DIFFUSE, GL_SPECULAR, GL_POSITION
procedure glLightiv (light : GLenum;
pname : GLenum;
params : Three_GLint_Vector);
-- To be used with pname receiving GL_SPOT_DIRECTION:
procedure glLightiv (light : GLenum;
pname : GLenum;
params : Four_GLint_Vector);
-- To be used with pname receiving:
-- GL_SPOT_EXPONENT, GL_SPOT_CUTOFF, GL_CONSTANT_ATTENUATION,
-- GL_LINEAR_ATTENUATION, GL_QUADRATIC_ATTENUATION
procedure glLightiv (light : GLenum;
pname : GLenum;
params : in out GLint); -- pseudo in
pragma Import (C, glLightiv, "glLightiv");
-- To be used with pname receiving:
-- GL_AMBIENT, GL_DIFFUSE, GL_SPECULAR, GL_EMISSION
-- GL_AMBIENT_AND_DIFFUSE
procedure glMaterialfv (face : GLenum;
pname : GLenum;
params : Four_GLfloat_Vector);
-- To be used with pname receiving:
-- GL_COLOR_INDEXES
procedure glMaterialfv (face : GLenum;
pname : GLenum;
params : Three_GLfloat_Vector);
-- To be used with pname receiving:
-- GL_SHININESS
procedure glMaterialfv (face : GLenum;
pname : GLenum;
params : in out GLfloat); -- pseudo in
pragma Import (C, glMaterialfv, "glMaterialfv");
-- To be used with pname receiving:
-- GL_AMBIENT, GL_DIFFUSE, GL_SPECULAR, GL_EMISSION
-- GL_AMBIENT_AND_DIFFUSE
procedure glMaterialiv (face : GLenum;
pname : GLenum;
params : Four_GLint_Vector);
-- To be used with pname receiving:
-- GL_COLOR_INDEXES
procedure glMaterialiv (face : GLenum;
pname : GLenum;
params : Three_GLint_Vector);
-- To be used with pname receiving:
-- GL_SHININESS
procedure glMaterialiv (face : GLenum;
pname : GLenum;
params : in out GLint); -- pseudo in
pragma Import (C, glMaterialiv, "glMaterialiv");
type GLubyte_Array is array (Integer range <>) of GLubyte;
-- type_Id = GL_UNSIGNED_BYTE
procedure glTexImage1D (target : GLenum;
level : GLint;
internalFormat : GLint;
width : GLsizei;
border : GLint;
format : GLenum;
type_Id : GLenum;
pixels : GLubyte_Array);
type GLbyte_Array is array (Integer range <>) of GLbyte;
-- type_Id = GL_BYTE
procedure glTexImage1D (target : GLenum;
level : GLint;
internalFormat : GLint;
width : GLsizei;
border : GLint;
format : GLenum;
type_Id : GLenum;
pixels : GLbyte_Array);
type GLushort_Array is array (Integer range <>) of GLushort;
-- type_Id = GL_UNSIGNED_SHORT
procedure glTexImage1D (target : GLenum;
level : GLint;
internalFormat : GLint;
width : GLsizei;
border : GLint;
format : GLenum;
type_Id : GLenum;
pixels : GLushort_Array);
type GLshort_Array is array (Integer range <>) of GLshort;
-- type_Id = GL_SHORT
procedure glTexImage1D (target : GLenum;
level : GLint;
internalFormat : GLint;
width : GLsizei;
border : GLint;
format : GLenum;
type_Id : GLenum;
pixels : GLshort_Array);
type GLuint_Array is array (Integer range <>) of GLuint;
-- type_Id = GL_UNSIGNED_INT
procedure glTexImage1D (target : GLenum;
level : GLint;
internalFormat : GLint;
width : GLsizei;
border : GLint;
format : GLenum;
type_Id : GLenum;
pixels : GLuint_Array);
type GLint_Array is array (Integer range <>) of GLint;
-- type_Id = GL_INT;
procedure glTexImage1D (target : GLenum;
level : GLint;
internalFormat : GLint;
width : GLsizei;
border : GLint;
format : GLenum;
type_Id : GLenum;
pixels : GLint_Array);
type GLfloat_Array is array (Integer range <>) of GLfloat;
-- type_Id = GL_FLOAT
procedure glTexImage1D (target : GLenum;
level : GLint;
internalFormat : GLint;
width : GLsizei;
border : GLint;
format : GLenum;
type_Id : GLenum;
pixels : GLfloat_Array);
pragma Import (C, glTexImage1D, "glTexImage1D");
-- type_Id = GL_UNSIGNED_BYTE
procedure glTexImage2D (target : GLenum;
level : GLint;
internalFormat : GLint;
width : GLsizei;
height : GLsizei;
border : GLint;
format : GLenum;
type_Id : GLenum;
pixels : GLubyte_Array);
-- type_Id = GL_BYTE
procedure glTexImage2D (target : GLenum;
level : GLint;
internalFormat : GLint;
width : GLsizei;
height : GLsizei;
border : GLint;
format : GLenum;
type_Id : GLenum;
pixels : GLbyte_Array);
-- type_Id = GL_UNSIGNED_SHORT
procedure glTexImage2D (target : GLenum;
level : GLint;
internalFormat : GLint;
width : GLsizei;
height : GLsizei;
border : GLint;
format : GLenum;
type_Id : GLenum;
pixels : GLushort_Array);
-- type_Id = GL_SHORT
procedure glTexImage2D (target : GLenum;
level : GLint;
internalFormat : GLint;
width : GLsizei;
height : GLsizei;
border : GLint;
format : GLenum;
type_Id : GLenum;
pixels : GLshort_Array);
-- type_Id = GL_UNSIGNED_INT
procedure glTexImage2D (target : GLenum;
level : GLint;
internalFormat : GLint;
width : GLsizei;
height : GLsizei;
border : GLint;
format : GLenum;
type_Id : GLenum;
pixels : GLuint_Array);
-- type_Id = GL_INT
procedure glTexImage2D (target : GLenum;
level : GLint;
internalFormat : GLint;
width : GLsizei;
height : GLsizei;
border : GLint;
format : GLenum;
type_Id : GLenum;
pixels : GLint_Array);
-- type_Id = GL_FLOAT
procedure glTexImage2D (target : GLenum;
level : GLint;
internalFormat : GLint;
width : GLsizei;
height : GLsizei;
border : GLint;
format : GLenum;
type_Id : GLenum;
pixels : GLfloat_Array);
pragma Import (C, glTexImage2D, "glTexImage2D");
-- type_Id = GL_UNSIGNED_BYTE
procedure glDrawPixels (width : GLsizei;
height : GLsizei;
format : GLenum;
type_Id : GLenum;
pixels : GLubyte_Array);
-- type_Id = GL_BYTE
procedure glDrawPixels (width : GLsizei;
height : GLsizei;
format : GLenum;
type_Id : GLenum;
pixels : GLbyte_Array);
-- type_Id = GL_UNSIGNED_SHORT
procedure glDrawPixels (width : GLsizei;
height : GLsizei;
format : GLenum;
type_Id : GLenum;
pixels : GLushort_Array);
-- type_Id = GL_SHORT
procedure glDrawPixels (width : GLsizei;
height : GLsizei;
format : GLenum;
type_Id : GLenum;
pixels : GLshort_Array);
-- type_Id = GL_UNSIGNED_INT
procedure glDrawPixels (width : GLsizei;
height : GLsizei;
format : GLenum;
type_Id : GLenum;
pixels : GLuint_Array);
-- type_Id = GL_INT
procedure glDrawPixels (width : GLsizei;
height : GLsizei;
format : GLenum;
type_Id : GLenum;
pixels : GLint_Array);
-- type_Id = GL_FLOAT
procedure glDrawPixels (width : GLsizei;
height : GLsizei;
format : GLenum;
type_Id : GLenum;
pixels : GLfloat_Array);
pragma Import (C, glDrawPixels, "glDrawPixels");
end AdaGL;
|
with ObjectPack, AbstractStrategyCombinatorPackage, IntrospectorPackage, StrategyPackage;
use ObjectPack, AbstractStrategyCombinatorPackage, IntrospectorPackage, StrategyPackage;
package NoStrategy is
ARG : constant Integer := 0;
type No is new AbstractStrategyCombinator and Object with null record;
----------------------------------------------------------------------------
-- Object implementation
----------------------------------------------------------------------------
function toString(n: No) return String;
----------------------------------------------------------------------------
-- Strategy implementation
----------------------------------------------------------------------------
function visitLight(str:access No; any: ObjectPtr; i: access Introspector'Class) return ObjectPtr;
function visit(str: access No; i: access Introspector'Class) return Integer;
----------------------------------------------------------------------------
procedure makeNo(n : in out No; v : StrategyPtr);
function newNo(v : StrategyPtr) return StrategyPtr;
----------------------------------------------------------------------------
end NoStrategy;
|
with Memory.RAM;
with Util; use Util;
separate (Parser)
procedure Parse_RAM(parser : in out Parser_Type;
result : out Memory_Pointer) is
latency : Time_Type := 1;
burst : Time_Type := 0;
word_size : Positive := 8;
word_count : Natural := 0;
begin
while Get_Type(parser) = Open loop
Match(parser, Open);
declare
name : constant String := Get_Value(parser);
begin
Match(parser, Literal);
declare
value : constant String := Get_Value(parser);
begin
Match(parser, Literal);
if name = "latency" then
latency := Time_Type'Value(value);
elsif name = "burst" then
burst := Time_Type'Value(value);
elsif name = "word_size" then
word_size := Positive'Value(value);
elsif name = "word_count" then
word_count := Natural'Value(value);
else
Raise_Error(parser, "invalid ram attribute: " & name);
end if;
end;
end;
Match(parser, Close);
end loop;
result := Memory_Pointer(RAM.Create_RAM(latency, burst,
word_size, word_count));
exception
when Data_Error | Constraint_Error =>
Raise_Error(parser, "invalid value in ram");
end Parse_RAM;
|
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- S Y S T E M . O S _ I N T E R F A C E --
-- --
-- S p e c --
-- --
-- Copyright (C) 1991-1994, Florida State University --
-- Copyright (C) 1995-2006, 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 2, 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. See the GNU General Public License --
-- for more details. You should have received a copy of the GNU General --
-- Public License distributed with GNARL; 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. --
-- --
-- GNARL was developed by the GNARL team at Florida State University. --
-- Extensive contributions were provided by Ada Core Technologies, Inc. --
-- --
------------------------------------------------------------------------------
-- This is Darwin pthreads version of this package.
-- This package includes all direct interfaces to OS services
-- that are needed by children of System.
-- PLEASE DO NOT add any with-clauses to this package
-- or remove the pragma Elaborate_Body.
-- It is designed to be a bottom-level (leaf) package.
with Interfaces.C;
package System.OS_Interface is
pragma Preelaborate;
subtype int is Interfaces.C.int;
subtype short is Interfaces.C.short;
subtype long is Interfaces.C.long;
subtype unsigned is Interfaces.C.unsigned;
subtype unsigned_short is Interfaces.C.unsigned_short;
subtype unsigned_long is Interfaces.C.unsigned_long;
subtype unsigned_char is Interfaces.C.unsigned_char;
subtype plain_char is Interfaces.C.plain_char;
subtype size_t is Interfaces.C.size_t;
-----------
-- Errno --
-----------
function errno return int;
pragma Import (C, errno, "__get_errno");
EINTR : constant := 4;
ENOMEM : constant := 12;
EINVAL : constant := 22;
EAGAIN : constant := 35;
ETIMEDOUT : constant := 60;
-------------
-- Signals --
-------------
Max_Interrupt : constant := 31;
type Signal is new int range 0 .. Max_Interrupt;
for Signal'Size use int'Size;
SIGHUP : constant := 1; -- hangup
SIGINT : constant := 2; -- interrupt (rubout)
SIGQUIT : constant := 3; -- quit (ASCD FS)
SIGILL : constant := 4; -- illegal instruction (not reset)
SIGTRAP : constant := 5; -- trace trap (not reset)
SIGIOT : constant := 6; -- IOT instruction
SIGABRT : constant := 6; -- used by abort, replace SIGIOT in the future
SIGEMT : constant := 7; -- EMT instruction
SIGFPE : constant := 8; -- floating point exception
SIGKILL : constant := 9; -- kill (cannot be caught or ignored)
SIGBUS : constant := 10; -- bus error
SIGSEGV : constant := 11; -- segmentation violation
SIGSYS : constant := 12; -- bad argument to system call
SIGPIPE : constant := 13; -- write on a pipe with no one to read it
SIGALRM : constant := 14; -- alarm clock
SIGTERM : constant := 15; -- software termination signal from kill
SIGURG : constant := 16; -- urgent condition on IO channel
SIGSTOP : constant := 17; -- stop (cannot be caught or ignored)
SIGTSTP : constant := 18; -- user stop requested from tty
SIGCONT : constant := 19; -- stopped process has been continued
SIGCHLD : constant := 20; -- child status change
SIGTTIN : constant := 21; -- background tty read attempted
SIGTTOU : constant := 22; -- background tty write attempted
SIGIO : constant := 23; -- I/O possible (Solaris SIGPOLL alias)
SIGXCPU : constant := 24; -- CPU time limit exceeded
SIGXFSZ : constant := 25; -- filesize limit exceeded
SIGVTALRM : constant := 26; -- virtual timer expired
SIGPROF : constant := 27; -- profiling timer expired
SIGWINCH : constant := 28; -- window size change
SIGINFO : constant := 29; -- information request
SIGUSR1 : constant := 30; -- user defined signal 1
SIGUSR2 : constant := 31; -- user defined signal 2
SIGADAABORT : constant := SIGTERM;
-- Change this if you want to use another signal for task abort.
-- SIGTERM might be a good one.
type Signal_Set is array (Natural range <>) of Signal;
Unmasked : constant Signal_Set :=
(SIGTTIN, SIGTTOU, SIGSTOP, SIGTSTP);
Reserved : constant Signal_Set :=
(SIGKILL, SIGSTOP);
type sigset_t is private;
function sigaddset (set : access sigset_t; sig : Signal) return int;
pragma Import (C, sigaddset, "sigaddset");
function sigdelset (set : access sigset_t; sig : Signal) return int;
pragma Import (C, sigdelset, "sigdelset");
function sigfillset (set : access sigset_t) return int;
pragma Import (C, sigfillset, "sigfillset");
function sigismember (set : access sigset_t; sig : Signal) return int;
pragma Import (C, sigismember, "sigismember");
function sigemptyset (set : access sigset_t) return int;
pragma Import (C, sigemptyset, "sigemptyset");
type siginfo_t is private;
type ucontext_t is private;
type Signal_Handler is access procedure
(signo : Signal;
info : access siginfo_t;
context : access ucontext_t);
type struct_sigaction is record
sa_handler : System.Address;
sa_mask : sigset_t;
sa_flags : int;
end record;
pragma Convention (C, struct_sigaction);
type struct_sigaction_ptr is access all struct_sigaction;
SIG_BLOCK : constant := 1;
SIG_UNBLOCK : constant := 2;
SIG_SETMASK : constant := 3;
SIG_DFL : constant := 0;
SIG_IGN : constant := 1;
SA_SIGINFO : constant := 16#0040#;
function sigaction
(sig : Signal;
act : struct_sigaction_ptr;
oact : struct_sigaction_ptr) return int;
pragma Import (C, sigaction, "sigaction");
----------
-- Time --
----------
Time_Slice_Supported : constant Boolean := True;
-- Indicates wether time slicing is supported.
type timespec is private;
type clockid_t is private;
CLOCK_REALTIME : constant clockid_t;
function clock_gettime
(clock_id : clockid_t;
tp : access timespec) return int;
function To_Duration (TS : timespec) return Duration;
pragma Inline (To_Duration);
function To_Timespec (D : Duration) return timespec;
pragma Inline (To_Timespec);
type struct_timeval is private;
function To_Duration (TV : struct_timeval) return Duration;
pragma Inline (To_Duration);
function To_Timeval (D : Duration) return struct_timeval;
pragma Inline (To_Timeval);
-------------------------
-- Priority Scheduling --
-------------------------
SCHED_OTHER : constant := 1;
SCHED_RR : constant := 2;
SCHED_FIFO : constant := 4;
-------------
-- Process --
-------------
type pid_t is private;
function kill (pid : pid_t; sig : Signal) return int;
pragma Import (C, kill, "kill");
function getpid return pid_t;
pragma Import (C, getpid, "getpid");
---------
-- LWP --
---------
function lwp_self return System.Address;
-- lwp_self does not exist on this thread library, revert to pthread_self
-- which is the closest approximation (with getpid). This function is
-- needed to share 7staprop.adb across POSIX-like targets.
pragma Import (C, lwp_self, "pthread_self");
-------------
-- Threads --
-------------
type Thread_Body is access
function (arg : System.Address) return System.Address;
type pthread_t is private;
subtype Thread_Id is pthread_t;
type pthread_mutex_t is limited private;
type pthread_cond_t is limited private;
type pthread_attr_t is limited private;
type pthread_mutexattr_t is limited private;
type pthread_condattr_t is limited private;
type pthread_key_t is private;
type pthread_mutex_ptr is access all pthread_mutex_t;
type pthread_cond_ptr is access all pthread_cond_t;
PTHREAD_CREATE_DETACHED : constant := 2;
-----------
-- Stack --
-----------
Stack_Base_Available : constant Boolean := False;
-- Indicates wether the stack base is available on this target.
-- This allows us to share s-osinte.adb between all the FSU run time.
-- Note that this value can only be true if pthread_t has a complete
-- definition that corresponds exactly to the C header files.
function Get_Stack_Base (thread : pthread_t) return System.Address;
pragma Inline (Get_Stack_Base);
-- returns the stack base of the specified thread.
-- Only call this function when Stack_Base_Available is True.
function Get_Page_Size return size_t;
function Get_Page_Size return System.Address;
pragma Import (C, Get_Page_Size, "getpagesize");
-- returns the size of a page, or 0 if this is not relevant on this
-- target
PROT_NONE : constant := 0;
PROT_READ : constant := 1;
PROT_WRITE : constant := 2;
PROT_EXEC : constant := 4;
PROT_ALL : constant := PROT_READ + PROT_WRITE + PROT_EXEC;
PROT_ON : constant := PROT_NONE;
PROT_OFF : constant := PROT_ALL;
function mprotect (addr : System.Address;
len : size_t;
prot : int) return int;
pragma Import (C, mprotect);
---------------------------------------
-- Nonstandard Thread Initialization --
---------------------------------------
procedure pthread_init;
-------------------------
-- POSIX.1c Section 3 --
-------------------------
function sigwait (set : access sigset_t; sig : access Signal) return int;
pragma Import (C, sigwait, "sigwait");
function pthread_kill (thread : pthread_t; sig : Signal) return int;
pragma Import (C, pthread_kill, "pthread_kill");
function pthread_sigmask
(how : int;
set : access sigset_t;
oset : access sigset_t) return int;
pragma Import (C, pthread_sigmask, "pthread_sigmask");
--------------------------
-- POSIX.1c Section 11 --
--------------------------
function pthread_mutexattr_init
(attr : access pthread_mutexattr_t) return int;
pragma Import (C, pthread_mutexattr_init, "pthread_mutexattr_init");
function pthread_mutexattr_destroy
(attr : access pthread_mutexattr_t) return int;
pragma Import (C, pthread_mutexattr_destroy, "pthread_mutexattr_destroy");
function pthread_mutex_init
(mutex : access pthread_mutex_t;
attr : access pthread_mutexattr_t) return int;
pragma Import (C, pthread_mutex_init, "pthread_mutex_init");
function pthread_mutex_destroy (mutex : access pthread_mutex_t) return int;
pragma Import (C, pthread_mutex_destroy, "pthread_mutex_destroy");
function pthread_mutex_lock (mutex : access pthread_mutex_t) return int;
pragma Import (C, pthread_mutex_lock, "pthread_mutex_lock");
function pthread_mutex_unlock (mutex : access pthread_mutex_t) return int;
pragma Import (C, pthread_mutex_unlock, "pthread_mutex_unlock");
function pthread_condattr_init
(attr : access pthread_condattr_t) return int;
pragma Import (C, pthread_condattr_init, "pthread_condattr_init");
function pthread_condattr_destroy
(attr : access pthread_condattr_t) return int;
pragma Import (C, pthread_condattr_destroy, "pthread_condattr_destroy");
function pthread_cond_init
(cond : access pthread_cond_t;
attr : access pthread_condattr_t) return int;
pragma Import (C, pthread_cond_init, "pthread_cond_init");
function pthread_cond_destroy (cond : access pthread_cond_t) return int;
pragma Import (C, pthread_cond_destroy, "pthread_cond_destroy");
function pthread_cond_signal (cond : access pthread_cond_t) return int;
pragma Import (C, pthread_cond_signal, "pthread_cond_signal");
function pthread_cond_wait
(cond : access pthread_cond_t;
mutex : access pthread_mutex_t) return int;
pragma Import (C, pthread_cond_wait, "pthread_cond_wait");
function pthread_cond_timedwait
(cond : access pthread_cond_t;
mutex : access pthread_mutex_t;
abstime : access timespec) return int;
pragma Import (C, pthread_cond_timedwait, "pthread_cond_timedwait");
Relative_Timed_Wait : constant Boolean := False;
-- pthread_cond_timedwait requires an absolute delay time
--------------------------
-- POSIX.1c Section 13 --
--------------------------
PTHREAD_PRIO_NONE : constant := 0;
PTHREAD_PRIO_INHERIT : constant := 1;
PTHREAD_PRIO_PROTECT : constant := 2;
function pthread_mutexattr_setprotocol
(attr : access pthread_mutexattr_t;
protocol : int) return int;
pragma Import
(C, pthread_mutexattr_setprotocol, "pthread_mutexattr_setprotocol");
function pthread_mutexattr_setprioceiling
(attr : access pthread_mutexattr_t;
prioceiling : int) return int;
pragma Import
(C, pthread_mutexattr_setprioceiling,
"pthread_mutexattr_setprioceiling");
type padding is array (int range <>) of Interfaces.C.char;
type struct_sched_param is record
sched_priority : int; -- scheduling priority
opaque : padding (1 .. 4);
end record;
pragma Convention (C, struct_sched_param);
function pthread_setschedparam
(thread : pthread_t;
policy : int;
param : access struct_sched_param) return int;
pragma Import (C, pthread_setschedparam, "pthread_setschedparam");
function pthread_attr_setscope
(attr : access pthread_attr_t;
contentionscope : int) return int;
pragma Import (C, pthread_attr_setscope, "pthread_attr_setscope");
function pthread_attr_setinheritsched
(attr : access pthread_attr_t;
inheritsched : int) return int;
pragma Import
(C, pthread_attr_setinheritsched, "pthread_attr_setinheritsched");
function pthread_attr_setschedpolicy
(attr : access pthread_attr_t;
policy : int) return int;
pragma Import (C, pthread_attr_setschedpolicy, "pthread_attr_setsched");
function sched_yield return int;
---------------------------
-- P1003.1c - Section 16 --
---------------------------
function pthread_attr_init (attributes : access pthread_attr_t) return int;
pragma Import (C, pthread_attr_init, "pthread_attr_init");
function pthread_attr_destroy
(attributes : access pthread_attr_t) return int;
pragma Import (C, pthread_attr_destroy, "pthread_attr_destroy");
function pthread_attr_setdetachstate
(attr : access pthread_attr_t;
detachstate : int) return int;
pragma Import
(C, pthread_attr_setdetachstate, "pthread_attr_setdetachstate");
function pthread_attr_setstacksize
(attr : access pthread_attr_t;
stacksize : size_t) return int;
pragma Import
(C, pthread_attr_setstacksize, "pthread_attr_setstacksize");
function pthread_create
(thread : access pthread_t;
attributes : access pthread_attr_t;
start_routine : Thread_Body;
arg : System.Address) return int;
pragma Import (C, pthread_create, "pthread_create");
procedure pthread_exit (status : System.Address);
pragma Import (C, pthread_exit, "pthread_exit");
function pthread_self return pthread_t;
pragma Import (C, pthread_self, "pthread_self");
--------------------------
-- POSIX.1c Section 17 --
--------------------------
function pthread_setspecific
(key : pthread_key_t;
value : System.Address) return int;
pragma Import (C, pthread_setspecific, "pthread_setspecific");
function pthread_getspecific (key : pthread_key_t) return System.Address;
pragma Import (C, pthread_getspecific, "pthread_getspecific");
type destructor_pointer is access procedure (arg : System.Address);
function pthread_key_create
(key : access pthread_key_t;
destructor : destructor_pointer) return int;
pragma Import (C, pthread_key_create, "pthread_key_create");
private
type sigset_t is new unsigned;
type int32_t is new int;
type pid_t is new int32_t;
type time_t is new long;
type timespec is record
tv_sec : time_t;
tv_nsec : int32_t;
end record;
pragma Convention (C, timespec);
type clockid_t is new int;
CLOCK_REALTIME : constant clockid_t := 0;
type struct_timeval is record
tv_sec : int32_t;
tv_usec : int32_t;
end record;
pragma Convention (C, struct_timeval);
--
-- Darwin specific signal implementation
--
type Pad_Type is array (1 .. 7) of unsigned;
type siginfo_t is record
si_signo : int; -- signal number
si_errno : int; -- errno association
si_code : int; -- signal code
si_pid : int; -- sending process
si_uid : unsigned; -- sender's ruid
si_status : int; -- exit value
si_addr : System.Address; -- faulting instruction
si_value : System.Address; -- signal value
si_band : long; -- band event for SIGPOLL
pad : Pad_Type; -- RFU
end record;
pragma Convention (C, siginfo_t);
type stack_t is record
ss_sp : System.Address;
ss_size : int;
ss_flags : int;
end record;
pragma Convention (C, stack_t);
type mcontext_t is new System.Address;
type ucontext_t is record
uc_onstack : int;
uc_sigmask : sigset_t; -- Signal Mask Used By This Context
uc_stack : stack_t; -- Stack Used By This Context
uc_link : System.Address; -- Pointer To Resuming Context
uc_mcsize : size_t; -- Size of The Machine Context
uc_mcontext : mcontext_t; -- Machine Specific Context
end record;
pragma Convention (C, ucontext_t);
--
-- Darwin specific pthread implementation
--
type pthread_t is new System.Address;
type pthread_lock_t is new long;
type pthread_attr_t is record
sig : long;
opaque : padding (1 .. 36);
end record;
pragma Convention (C, pthread_attr_t);
type pthread_mutexattr_t is record
sig : long;
opaque : padding (1 .. 8);
end record;
pragma Convention (C, pthread_mutexattr_t);
type pthread_mutex_t is record
sig : long;
opaque : padding (1 .. 40);
end record;
pragma Convention (C, pthread_mutex_t);
type pthread_condattr_t is record
sig : long;
opaque : padding (1 .. 4);
end record;
pragma Convention (C, pthread_condattr_t);
type pthread_cond_t is record
sig : long;
opaque : padding (1 .. 24);
end record;
pragma Convention (C, pthread_cond_t);
type pthread_once_t is record
sig : long;
opaque : padding (1 .. 4);
end record;
pragma Convention (C, pthread_once_t);
type pthread_key_t is new unsigned_long;
end System.OS_Interface;
|
------------------------------------------------------------------------------
-- --
-- GNAT EXAMPLE --
-- --
-- Copyright (C) 2013, Free Software Foundation, Inc. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 3, or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. --
-- --
-- As a special exception under Section 7 of GPL version 3, you are granted --
-- additional permissions described in the GCC Runtime Library Exception, --
-- version 3.1, as published by the Free Software Foundation. --
-- --
-- You should have received a copy of the GNU General Public License and --
-- a copy of the GCC Runtime Library Exception along with this program; --
-- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
-- <http://www.gnu.org/licenses/>. --
-- --
-- GNAT was originally developed by the GNAT team at New York University. --
-- Extensive contributions were provided by Ada Core Technologies Inc. --
-- --
------------------------------------------------------------------------------
with Ada.Interrupts.Names;
package body Mphone is
protected Input is
pragma Interrupt_Priority;
procedure Init;
entry Wait_Spd_Sample (N : out Natural);
private
procedure Handler;
pragma Attach_Handler (Handler, Ada.Interrupts.Names.SPI2_Interrupt);
-- Interrupt handler
Ready : Boolean := False;
Last_Spd : Natural;
Spd : Natural;
Spd_Count : Natural := 0;
end Input;
Sample_Spd : constant array (Sample_Type) of Natural :=
(0 => 16 * 16, 1 => 15 * 15, 2 => 14 * 14, 3 => 13 * 13,
4 => 12 * 12, 5 => 11 * 11, 6 => 10 * 10, 7 => 9 * 9,
8 => 8 * 8, 9 => 7 * 7, 10 => 6 * 6, 11 => 5 * 5,
12 => 4 * 4, 13 => 3 * 3, 14 => 2 * 2, 15 => 1 * 1,
16 => 0 * 0,
17 => 1 * 1, 18 => 2 * 2, 19 => 3 * 3, 20 => 4 * 4,
21 => 5 * 5, 22 => 6 * 6, 23 => 7 * 7, 24 => 8 * 8,
25 => 9 * 9, 26 => 10 * 10, 27 => 11 * 11, 28 => 12 * 12,
29 => 13 * 13, 30 => 14 * 14, 31 => 15 * 15, 32 => 16 * 16);
Spd_Divisor : constant := 160 * 16;
protected body Input is
procedure Init is
begin
SPI2.I2SCFGR := SPI2.I2SCFGR or SPI_I2SCFGR.I2SE;
SPI2.CR2 := SPI_CR2.RXNEIE or SPI_CR2.ERRIE;
end Init;
entry Wait_Spd_Sample (N : out Natural) when Ready is
begin
N := Last_Spd;
Ready := False;
end Wait_Spd_Sample;
procedure Handler is
SR : constant Word := SPI2.SR;
V : Word;
Sample : Sample_Type;
pragma Volatile (Sample);
begin
if (SR and SPI_SR.RXNE) /= 0 then
-- Read two word (32 bits), LSB first
V := SPI2.DR;
V := V + SPI2.DR * 2**16;
-- Sum by packets of 1 bit
V := ((V / 2**1) and 16#5555_5555#) + (V and 16#5555_5555#);
-- Sum by packets of 2 bits
V := ((V / 2**2) and 16#3333_3333#) + (V and 16#3333_3333#);
-- Sum by packets of 4 bits
V := ((V / 2**4) and 16#0f0f_0f0f#) + (V and 16#0f0f_0f0f#);
-- Sum by packets of 8 bits
V := ((V / 2**8) and 16#00ff_00ff#) + (V and 16#00ff_00ff#);
-- Sum by packets of 16 bits
V := ((V / 2**16) and 16#0000_ffff#) + (V and 16#0000_ffff#);
Sample := Sample_Type (V);
Spd := Spd + Sample_Spd (Sample);
Spd_Count := Spd_Count + 1;
if Spd_Count = Spd_Divisor - 1 then
Spd_Count := 0;
Last_Spd := Spd / (Spd_Divisor / 64);
Spd := 0;
Ready := True;
else
Spd_Count := Spd_Count + 1;
end if;
end if;
end Handler;
end Input;
function Get_Spd_Sample return Natural is
Res : Natural;
begin
Input.Wait_Spd_Sample (Res);
return Res;
end Get_Spd_Sample;
begin
-- Enable clock for GPIO-B (clk) and GPIO-C (pdm)
RCC.AHB1ENR := RCC.AHB1ENR or RCC_AHB1ENR_GPIOB or RCC_AHB1ENR_GPIOC;
-- Configure PC3 and PB10
declare
use GPIO;
V : Bits_8x4;
begin
GPIOB.MODER (10) := Mode_AF;
V := GPIOB.AFRH;
V (10 - 8) := 5; -- I2S2_CLK (cf p61)
GPIOB.AFRH := V;
GPIOB.OTYPER (10) := Type_PP;
GPIOB.OSPEEDR (10) := Speed_50MHz;
GPIOB.PUPDR (10) := No_Pull;
GPIOC.MODER (3) := Mode_AF;
GPIOC.AFRL (3) := 5; -- I2S2_SD (cf p62)
GPIOC.OTYPER (3) := Type_PP;
GPIOC.OSPEEDR (3) := Speed_50MHz;
GPIOC.PUPDR (3) := No_Pull;
end;
-- Enable SPI clock
RCC.APB1ENR := RCC.APB1ENR or RCC_APB1ENR_SPI2;
-- Init PLLI2S clock
declare
-- HSE = 8 Mhz, PLL_M = 8
PLLI2S_N : constant := 192;
PLLI2S_R : constant := 3;
-- I2SCLK = HSE / PLL_M * PLLI2S_N / PLLI2S_R
-- I2SCLK = 8 / 8 * 192 / 3 = 64 Mhz
begin
-- Select PLLI2S clock source
RCC.CFGR := RCC.CFGR and not RCC_CFGR.I2SSRC_PCKIN;
-- Configure
RCC.PLLI2SCFGR := PLLI2S_R * 2**28 or PLLI2S_N * 2**6;
-- Enable
RCC.CR := RCC.CR or RCC_CR.PLLI2SON;
-- Wait until ready
loop
exit when (RCC.CR and RCC_CR.PLLI2SRDY) /= 0;
end loop;
end;
-- Init SPI
SPI2.I2SCFGR := SPI_I2SCFGR.I2SMOD or SPI_I2SCFGR.I2SCFG_MasterRx
or SPI_I2SCFGR.I2SSTD_LSB or SPI_I2SCFGR.CKPOL
or SPI_I2SCFGR.DATLEN_32;
-- Divisor = 62 -- 125
SPI2.I2SPR := 62 or SPI_I2SPR.ODD;
Input.Init;
end Mphone;
|
With Ada.Integer_Text_IO;
use Ada.Integer_Text_IO;
WITH P_StructuralTypes;
USE P_StructuralTypes;
with Ada.Streams;
use Ada.Streams;
with Ada.Sequential_IO;
with Ada.Text_IO;
use Ada.Text_IO;
WITH P_StepHandler.InputHandler;
USE P_StepHandler.InputHandler;
WITH P_StepHandler.IPHandler;
USE P_StepHandler.IPHandler;
WITH P_StepHandler.KeyHandler;
USE P_StepHandler.KeyHandler;
WITH P_StepHandler.FeistelHandler;
USE P_StepHandler.FeistelHandler;
WITH P_StepHandler.ReverseIPHandler;
USE P_StepHandler.ReverseIPHandler;
WITH P_StepHandler.OutputHandler;
USE P_StepHandler.OutputHandler;
WITH Ada.Strings;
USE Ada.Strings;
with Ada.Strings.Unbounded;
use Ada.Strings.Unbounded;
package P_deshandler is
type DesHandler is tagged private;
--- CONSTRUCTOR ---
procedure Process (Self : in out DesHandler);
procedure Handle (Self : in out DesHandler);
private
procedure Create_Binary_Data_Container (Self : in out DesHandler);
procedure Process_Request (Self : in out DesHandler);
procedure Set_Handlers_Order (Self : in out DesHandler);
procedure Set_Handlers_Container (Self : in out DesHandler);
type DesHandler is tagged record
Input_Name : Unbounded_String;
Output_Name : Unbounded_String;
Mode : Character;
Ptr_Container : BinaryContainer_Access;
Ptr_Key : Key_Access := new T_Key;
Ptr_SubKey_Array : BinarySubKeyArray_Access
:= new T_BinarySubKeyArray;
InputLink : aliased InputHandler;
IPLink : aliased IPHandler;
KeyGenLink : aliased KeyHandler;
FeistelLink : aliased FeistelHandler;
ReverseIPLink : aliased ReverseIPHandler;
OutputLink : aliased OutputHandler;
end record;
end P_deshandler;
|
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- Copyright (C) 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. --
-- --
------------------------------------------------------------------------------
with Interfaces;
private with Interfaces.SF2.MMUART;
package System.SF2.UART is
pragma Preelaborate;
pragma No_Elaboration_Code_All;
type MSS_UART_Baud_Rate is
(Baud_110,
Baud_300,
Baud_1200,
Baud_2400,
Baud_4800,
Baud_9600,
Baud_19200,
Baud_38400,
Baud_57600,
Baud_115200,
Baud_230400,
Baud_460800,
Baud_921600);
type MSS_UART_Data_Bits is
(Data_5_Bits,
Data_6_Bits,
Data_7_Bits,
Data_8_Bits)
with Size => 2;
type MSS_UART_Parity is
(No_Parity,
Odd_Parity,
Even_Parity,
Stick_Parity_0,
Stick_Parity_1);
type MSS_UART_Word_Length is
(
Length_5_Bits,
Length_6_Bits,
Length_7_Bits,
Length_8_Bits);
-- Number of stop bits (STB)
type MSS_UART_Stop_Bits is
(
-- 1 stop bit
Stop_Bit_1,
-- 1 1/2 stop bits when WLS=00. The number of stop bits is 2 for all
-- other cases not described above (STB=1 and WLS=01, 10, or 11).
Stop_Bit_1_AND_HALF);
-- Even parity select
type MSS_UART_Polarity is
(Odd,
Even);
type MSS_UART_Line_Configuration is record
-- Word length select
Word_Length : MSS_UART_Word_Length := Length_5_Bits;
-- Number of stop bits (STB)
Stop_Bits : MSS_UART_Stop_Bits := Stop_Bit_1;
-- Parity enable
Parity_Enable : Boolean := False;
-- Even parity select
Even_Parity_Enable : MSS_UART_Polarity := Odd;
-- Stick parity. When stick parity is enabled, the parity is set
-- according to bits [4:3] as follows: 11: 0 will be sent as a parity
-- bit and checked when receiving. 01: 1 will be sent as a parity bit
-- and checked when receiving.
Stick_Parity : Boolean := False;
-- Set break. Enabling this bit sets MMUART_x_TXD to 0. This does not
-- have any effect on transmitter logic.
Set_Break : Boolean := False;
-- Divisor latch access bit. Enables access to the divisor latch
-- registers during read or write operation to address 0 and 1.
Divisor_Latch_Access_Bit : Boolean := False;
end record;
type MSS_UART is limited private;
procedure Configure
(This : in out MSS_UART;
Baud_Rate : MSS_UART_Baud_Rate;
Line_Config : MSS_UART_Line_Configuration;
Status : out Boolean);
type UART_Data is array (Natural range <>) of Interfaces.Unsigned_8;
procedure Send
(This : in out MSS_UART;
Data : UART_Data);
procedure Send
(This : in out MSS_UART;
Data : String);
private
for MSS_UART_Baud_Rate use
(Baud_110 => 110,
Baud_300 => 300,
Baud_1200 => 1_200,
Baud_2400 => 2_400,
Baud_4800 => 4_800,
Baud_9600 => 9_600,
Baud_19200 => 19_200,
Baud_38400 => 38_400,
Baud_57600 => 57_600,
Baud_115200 => 115_200,
Baud_230400 => 230_400,
Baud_460800 => 460_800,
Baud_921600 => 921_600);
type MSS_UART is limited record
Regs : Interfaces.SF2.MMUART.MMUART_Peripheral;
end record;
end System.SF2.UART;
|
-- This package is intended to set up and tear down the test environment.
-- Once created by GNATtest, this package will never be overwritten
-- automatically. Contents of this package can be modified in any way
-- except for sections surrounded by a 'read only' marker.
with AUnit.Test_Fixtures;
with GNATtest_Generated;
package Crew.Mob_Record_Test_Data is
type Mob_Record_Access is
access all GNATtest_Generated.GNATtest_Standard.Crew.Mob_Record'Class;
-- begin read only
type Test_Mob_Record is abstract new AUnit.Test_Fixtures.Test_Fixture
-- end read only
with
record
Fixture: Mob_Record_Access;
end record;
end Crew.Mob_Record_Test_Data;
|
-- Copyright 2008 Free Software Foundation, Inc.
--
-- This program is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation; either version 3 of the License, or
-- (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program. If not, see <http://www.gnu.org/licenses/>.
with Homonym;
procedure Homonym_Main is
begin
Homonym.Start_Test;
end Homonym_Main;
|
-- AoC 2019, Day 6
with Ada.Text_IO;
with Ada.Containers.Indefinite_Hashed_Maps;
with Ada.Containers.Ordered_Sets;
with Ada.Strings.Hash;
with Ada.Strings.Fixed; use Ada.Strings.Fixed;
-- with GNAT.String_Split;
-- with Ada.Characters.Latin_1;
package body Day is
package TIO renames Ada.Text_IO;
package Orbit_Element_Set is new Ada.Containers.Ordered_Sets
(Element_Type => Unbounded_String);
type Orbit is record
Name : Unbounded_String := Null_Unbounded_String;
Parent : Unbounded_String := Null_Unbounded_String;
Children : Orbit_Element_Set.Set := Orbit_Element_Set.Empty_Set;
Depth : Natural := 0;
end record;
pragma Warnings (Off, "procedure ""Put"" is not referenced");
procedure Put(value : in Orbit) is
pragma Warnings (On, "procedure ""Put"" is not referenced");
begin
TIO.Put("Orbit: " & to_string(value.Name) & ", Parent: " & to_string(value.Parent) & ", Depth: " & Natural'IMAGE(value.Depth));
TIO.New_Line;
TIO.Put(" Children: ");
for c of value.Children loop
TIO.Put(to_string(c) & " ");
end loop;
end Put;
package Orbit_Hashed_Maps is new Ada.Containers.Indefinite_Hashed_Maps
(Key_Type => String,
Element_Type => Orbit,
Hash => Ada.Strings.Hash,
Equivalent_Keys => "=");
procedure parse_line(line : in String; orbits : in out Orbit_List.Vector) is
idx : constant Natural := index(line, ")");
left : constant String := line(line'first .. idx-1);
right : constant String := line(idx+1 .. line'last);
curr : constant Orbit_Entry := Orbit_Entry'(left => to_unbounded_string(left), right => to_unbounded_string(right));
begin
orbits.append(curr);
end parse_line;
function load_orbits(filename : in String) return Orbit_List.Vector is
file : TIO.File_Type;
orbits : Orbit_List.Vector;
begin
TIO.open(File => file, Mode => TIO.In_File, Name => filename);
while not TIO.end_of_file(file) loop
parse_line(TIO.get_line(file), orbits);
end loop;
TIO.close(file);
return orbits;
end load_orbits;
-- function load_orbits_from_string(str : in String) return Orbit_List.Vector is
-- use GNAT;
-- use Ada.Characters;
-- orbits : Orbit_List.Vector := Orbit_List.Empty_Vector;
-- subs : String_Split.Slice_Set;
-- seps : constant String := Latin_1.LF & Latin_1.CR;
-- begin
-- String_Split.Create(S => subs, From => str, Separators => seps, Mode => String_Split.Multiple);
-- for i in 1 .. String_Split.Slice_Count(subs) loop
-- declare
-- line : constant String := String_Split.Slice(subs, i);
-- begin
-- parse_line(line, orbits);
-- end;
-- end loop;
-- return orbits;
-- end load_orbits_from_string;
procedure add_orbit(name : in Unbounded_String; parent : in Unbounded_String; orbits : in out Orbit_Hashed_Maps.Map) is
begin
orbits.include(to_string(name), Orbit'(
Name => name,
Parent => parent,
Children => Orbit_Element_Set.Empty_Set,
Depth => 0));
end add_orbit;
procedure propogate_depth(name : in String; depth : in Integer; orbits : in out Orbit_Hashed_Maps.Map) is
curr : Orbit := orbits(name);
begin
curr.Depth := depth;
orbits(name) := curr;
for c of curr.Children loop
propogate_depth(to_string(c), depth + 1, orbits);
end loop;
end propogate_depth;
function build_map(ol : in Orbit_List.Vector) return Orbit_Hashed_Maps.Map is
orbits : Orbit_Hashed_Maps.Map := Orbit_Hashed_Maps.Empty_Map;
begin
for curr of ol loop
if not orbits.contains(to_string(curr.left)) then
add_orbit(curr.left, Null_Unbounded_String, orbits);
end if;
if not orbits.contains(to_string(curr.right)) then
add_orbit(curr.right, curr.left, orbits);
end if;
orbits(to_string(curr.left)).Children.insert(curr.right);
end loop;
propogate_depth("COM", 0, orbits);
return orbits;
end build_map;
function orbit_count_checksum(ol : in Orbit_List.Vector) return Orbit_Checksum is
orbits : constant Orbit_Hashed_Maps.Map := build_map(ol);
total : Natural := 0;
begin
for c in orbits.Iterate loop
total := total + orbits(c).Depth;
-- Put(orbits(c));
-- TIO.New_Line;
end loop;
return Orbit_Checksum(total);
end orbit_count_checksum;
end Day;
|
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- S Y S T E M . P A C K _ 4 7 --
-- --
-- B o d y --
-- --
-- Copyright (C) 1992-2019, Free Software Foundation, Inc. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 3, or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. --
-- --
-- As a special exception under Section 7 of GPL version 3, you are granted --
-- additional permissions described in the GCC Runtime Library Exception, --
-- version 3.1, as published by the Free Software Foundation. --
-- --
-- You should have received a copy of the GNU General Public License and --
-- a copy of the GCC Runtime Library Exception along with this program; --
-- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
-- <http://www.gnu.org/licenses/>. --
-- --
-- GNAT was originally developed by the GNAT team at New York University. --
-- Extensive contributions were provided by Ada Core Technologies Inc. --
-- --
------------------------------------------------------------------------------
with System.Storage_Elements;
with System.Unsigned_Types;
package body System.Pack_47 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_47;
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;
------------
-- Get_47 --
------------
function Get_47
(Arr : System.Address;
N : Natural;
Rev_SSO : Boolean) return Bits_47
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_47;
------------
-- Set_47 --
------------
procedure Set_47
(Arr : System.Address;
N : Natural;
E : Bits_47;
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_47;
end System.Pack_47;
|
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- A D A . S T R I N G S . W I D E _ S U P E R B O U N D E D --
-- --
-- S p e c --
-- --
-- Copyright (C) 2003-2012, Free Software Foundation, Inc. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 3, or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. --
-- --
-- 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 non generic package contains most of the implementation of the
-- generic package Ada.Strings.Wide_Bounded.Generic_Bounded_Length.
-- It defines type Super_String as a discriminated record with the maximum
-- length as the discriminant. Individual instantiations of the package
-- Strings.Wide_Bounded.Generic_Bounded_Length use this type with
-- an appropriate discriminant value set.
with Ada.Strings.Wide_Maps;
package Ada.Strings.Wide_Superbounded is
pragma Preelaborate;
Wide_NUL : constant Wide_Character := Wide_Character'Val (0);
-- Ada.Strings.Wide_Bounded.Generic_Bounded_Length.Wide_Bounded_String is
-- derived from Super_String, with the constraint of the maximum length.
type Super_String (Max_Length : Positive) is record
Current_Length : Natural := 0;
Data : Wide_String (1 .. Max_Length);
-- A previous version had a default initial value for Data, which is
-- no longer necessary, because we now special-case this type in the
-- compiler, so "=" composes properly for descendants of this type.
-- Leaving it out is more efficient.
end record;
-- The subprograms defined for Super_String are similar to those defined
-- for Bounded_Wide_String, except that they have different names, so that
-- they can be renamed in Ada.Strings.Wide_Bounded.Generic_Bounded_Length.
function Super_Length (Source : Super_String) return Natural;
--------------------------------------------------------
-- Conversion, Concatenation, and Selection Functions --
--------------------------------------------------------
function To_Super_String
(Source : Wide_String;
Max_Length : Natural;
Drop : Truncation := Error) return Super_String;
-- Note the additional parameter Max_Length, which specifies the maximum
-- length setting of the resulting Super_String value.
-- The following procedures have declarations (and semantics) that are
-- exactly analogous to those declared in Ada.Strings.Wide_Bounded.
function Super_To_String (Source : Super_String) return Wide_String;
procedure Set_Super_String
(Target : out Super_String;
Source : Wide_String;
Drop : Truncation := Error);
function Super_Append
(Left : Super_String;
Right : Super_String;
Drop : Truncation := Error) return Super_String;
function Super_Append
(Left : Super_String;
Right : Wide_String;
Drop : Truncation := Error) return Super_String;
function Super_Append
(Left : Wide_String;
Right : Super_String;
Drop : Truncation := Error) return Super_String;
function Super_Append
(Left : Super_String;
Right : Wide_Character;
Drop : Truncation := Error) return Super_String;
function Super_Append
(Left : Wide_Character;
Right : Super_String;
Drop : Truncation := Error) return Super_String;
procedure Super_Append
(Source : in out Super_String;
New_Item : Super_String;
Drop : Truncation := Error);
procedure Super_Append
(Source : in out Super_String;
New_Item : Wide_String;
Drop : Truncation := Error);
procedure Super_Append
(Source : in out Super_String;
New_Item : Wide_Character;
Drop : Truncation := Error);
function Concat
(Left : Super_String;
Right : Super_String) return Super_String;
function Concat
(Left : Super_String;
Right : Wide_String) return Super_String;
function Concat
(Left : Wide_String;
Right : Super_String) return Super_String;
function Concat
(Left : Super_String;
Right : Wide_Character) return Super_String;
function Concat
(Left : Wide_Character;
Right : Super_String) return Super_String;
function Super_Element
(Source : Super_String;
Index : Positive) return Wide_Character;
procedure Super_Replace_Element
(Source : in out Super_String;
Index : Positive;
By : Wide_Character);
function Super_Slice
(Source : Super_String;
Low : Positive;
High : Natural) return Wide_String;
function Super_Slice
(Source : Super_String;
Low : Positive;
High : Natural) return Super_String;
procedure Super_Slice
(Source : Super_String;
Target : out Super_String;
Low : Positive;
High : Natural);
function "="
(Left : Super_String;
Right : Super_String) return Boolean;
function Equal
(Left : Super_String;
Right : Super_String) return Boolean renames "=";
function Equal
(Left : Super_String;
Right : Wide_String) return Boolean;
function Equal
(Left : Wide_String;
Right : Super_String) return Boolean;
function Less
(Left : Super_String;
Right : Super_String) return Boolean;
function Less
(Left : Super_String;
Right : Wide_String) return Boolean;
function Less
(Left : Wide_String;
Right : Super_String) return Boolean;
function Less_Or_Equal
(Left : Super_String;
Right : Super_String) return Boolean;
function Less_Or_Equal
(Left : Super_String;
Right : Wide_String) return Boolean;
function Less_Or_Equal
(Left : Wide_String;
Right : Super_String) return Boolean;
function Greater
(Left : Super_String;
Right : Super_String) return Boolean;
function Greater
(Left : Super_String;
Right : Wide_String) return Boolean;
function Greater
(Left : Wide_String;
Right : Super_String) return Boolean;
function Greater_Or_Equal
(Left : Super_String;
Right : Super_String) return Boolean;
function Greater_Or_Equal
(Left : Super_String;
Right : Wide_String) return Boolean;
function Greater_Or_Equal
(Left : Wide_String;
Right : Super_String) return Boolean;
----------------------
-- Search Functions --
----------------------
function Super_Index
(Source : Super_String;
Pattern : Wide_String;
Going : Direction := Forward;
Mapping : Wide_Maps.Wide_Character_Mapping := Wide_Maps.Identity)
return Natural;
function Super_Index
(Source : Super_String;
Pattern : Wide_String;
Going : Direction := Forward;
Mapping : Wide_Maps.Wide_Character_Mapping_Function) return Natural;
function Super_Index
(Source : Super_String;
Set : Wide_Maps.Wide_Character_Set;
Test : Membership := Inside;
Going : Direction := Forward) return Natural;
function Super_Index
(Source : Super_String;
Pattern : Wide_String;
From : Positive;
Going : Direction := Forward;
Mapping : Wide_Maps.Wide_Character_Mapping := Wide_Maps.Identity)
return Natural;
function Super_Index
(Source : Super_String;
Pattern : Wide_String;
From : Positive;
Going : Direction := Forward;
Mapping : Wide_Maps.Wide_Character_Mapping_Function) return Natural;
function Super_Index
(Source : Super_String;
Set : Wide_Maps.Wide_Character_Set;
From : Positive;
Test : Membership := Inside;
Going : Direction := Forward) return Natural;
function Super_Index_Non_Blank
(Source : Super_String;
Going : Direction := Forward) return Natural;
function Super_Index_Non_Blank
(Source : Super_String;
From : Positive;
Going : Direction := Forward) return Natural;
function Super_Count
(Source : Super_String;
Pattern : Wide_String;
Mapping : Wide_Maps.Wide_Character_Mapping := Wide_Maps.Identity)
return Natural;
function Super_Count
(Source : Super_String;
Pattern : Wide_String;
Mapping : Wide_Maps.Wide_Character_Mapping_Function) return Natural;
function Super_Count
(Source : Super_String;
Set : Wide_Maps.Wide_Character_Set) return Natural;
procedure Super_Find_Token
(Source : Super_String;
Set : Wide_Maps.Wide_Character_Set;
From : Positive;
Test : Membership;
First : out Positive;
Last : out Natural);
procedure Super_Find_Token
(Source : Super_String;
Set : Wide_Maps.Wide_Character_Set;
Test : Membership;
First : out Positive;
Last : out Natural);
------------------------------------
-- String Translation Subprograms --
------------------------------------
function Super_Translate
(Source : Super_String;
Mapping : Wide_Maps.Wide_Character_Mapping) return Super_String;
procedure Super_Translate
(Source : in out Super_String;
Mapping : Wide_Maps.Wide_Character_Mapping);
function Super_Translate
(Source : Super_String;
Mapping : Wide_Maps.Wide_Character_Mapping_Function) return Super_String;
procedure Super_Translate
(Source : in out Super_String;
Mapping : Wide_Maps.Wide_Character_Mapping_Function);
---------------------------------------
-- String Transformation Subprograms --
---------------------------------------
function Super_Replace_Slice
(Source : Super_String;
Low : Positive;
High : Natural;
By : Wide_String;
Drop : Truncation := Error) return Super_String;
procedure Super_Replace_Slice
(Source : in out Super_String;
Low : Positive;
High : Natural;
By : Wide_String;
Drop : Truncation := Error);
function Super_Insert
(Source : Super_String;
Before : Positive;
New_Item : Wide_String;
Drop : Truncation := Error) return Super_String;
procedure Super_Insert
(Source : in out Super_String;
Before : Positive;
New_Item : Wide_String;
Drop : Truncation := Error);
function Super_Overwrite
(Source : Super_String;
Position : Positive;
New_Item : Wide_String;
Drop : Truncation := Error) return Super_String;
procedure Super_Overwrite
(Source : in out Super_String;
Position : Positive;
New_Item : Wide_String;
Drop : Truncation := Error);
function Super_Delete
(Source : Super_String;
From : Positive;
Through : Natural) return Super_String;
procedure Super_Delete
(Source : in out Super_String;
From : Positive;
Through : Natural);
---------------------------------
-- String Selector Subprograms --
---------------------------------
function Super_Trim
(Source : Super_String;
Side : Trim_End) return Super_String;
procedure Super_Trim
(Source : in out Super_String;
Side : Trim_End);
function Super_Trim
(Source : Super_String;
Left : Wide_Maps.Wide_Character_Set;
Right : Wide_Maps.Wide_Character_Set) return Super_String;
procedure Super_Trim
(Source : in out Super_String;
Left : Wide_Maps.Wide_Character_Set;
Right : Wide_Maps.Wide_Character_Set);
function Super_Head
(Source : Super_String;
Count : Natural;
Pad : Wide_Character := Wide_Space;
Drop : Truncation := Error) return Super_String;
procedure Super_Head
(Source : in out Super_String;
Count : Natural;
Pad : Wide_Character := Wide_Space;
Drop : Truncation := Error);
function Super_Tail
(Source : Super_String;
Count : Natural;
Pad : Wide_Character := Wide_Space;
Drop : Truncation := Error) return Super_String;
procedure Super_Tail
(Source : in out Super_String;
Count : Natural;
Pad : Wide_Character := Wide_Space;
Drop : Truncation := Error);
------------------------------------
-- String Constructor Subprograms --
------------------------------------
-- Note: in some of the following routines, there is an extra parameter
-- Max_Length which specifies the value of the maximum length for the
-- resulting Super_String value.
function Times
(Left : Natural;
Right : Wide_Character;
Max_Length : Positive) return Super_String;
-- Note the additional parameter Max_Length
function Times
(Left : Natural;
Right : Wide_String;
Max_Length : Positive) return Super_String;
-- Note the additional parameter Max_Length
function Times
(Left : Natural;
Right : Super_String) return Super_String;
function Super_Replicate
(Count : Natural;
Item : Wide_Character;
Drop : Truncation := Error;
Max_Length : Positive) return Super_String;
-- Note the additional parameter Max_Length
function Super_Replicate
(Count : Natural;
Item : Wide_String;
Drop : Truncation := Error;
Max_Length : Positive) return Super_String;
-- Note the additional parameter Max_Length
function Super_Replicate
(Count : Natural;
Item : Super_String;
Drop : Truncation := Error) return Super_String;
private
-- Pragma Inline declarations
pragma Inline ("=");
pragma Inline (Less);
pragma Inline (Less_Or_Equal);
pragma Inline (Greater);
pragma Inline (Greater_Or_Equal);
pragma Inline (Concat);
pragma Inline (Super_Count);
pragma Inline (Super_Element);
pragma Inline (Super_Find_Token);
pragma Inline (Super_Index);
pragma Inline (Super_Index_Non_Blank);
pragma Inline (Super_Length);
pragma Inline (Super_Replace_Element);
pragma Inline (Super_Slice);
pragma Inline (Super_To_String);
end Ada.Strings.Wide_Superbounded;
|
<Diagramm>
<AdditionalSQLCode>
<SQLCode>
<AdditionalSQLCodePostChanging></AdditionalSQLCodePostChanging>
<AdditionalSQLCodePostReducing></AdditionalSQLCodePostReducing>
<AdditionalSQLCodePreChanging></AdditionalSQLCodePreChanging>
<AdditionalSQLCodePreExtending></AdditionalSQLCodePreExtending>
</SQLCode>
</AdditionalSQLCode>
<Colors>
<Anzahl>23</Anzahl>
<Color0>
<B>255</B>
<G>0</G>
<Name>blau</Name>
<R>0</R>
</Color0>
<Color1>
<B>221</B>
<G>212</G>
<Name>blaugrau</Name>
<R>175</R>
</Color1>
<Color10>
<B>192</B>
<G>192</G>
<Name>hellgrau</Name>
<R>192</R>
</Color10>
<Color11>
<B>255</B>
<G>0</G>
<Name>kamesinrot</Name>
<R>255</R>
</Color11>
<Color12>
<B>0</B>
<G>200</G>
<Name>orange</Name>
<R>255</R>
</Color12>
<Color13>
<B>255</B>
<G>247</G>
<Name>pastell-blau</Name>
<R>211</R>
</Color13>
<Color14>
<B>186</B>
<G>245</G>
<Name>pastell-gelb</Name>
<R>255</R>
</Color14>
<Color15>
<B>234</B>
<G>255</G>
<Name>pastell-gr&uuml;n</Name>
<R>211</R>
</Color15>
<Color16>
<B>255</B>
<G>211</G>
<Name>pastell-lila</Name>
<R>244</R>
</Color16>
<Color17>
<B>191</B>
<G>165</G>
<Name>pastell-rot</Name>
<R>244</R>
</Color17>
<Color18>
<B>175</B>
<G>175</G>
<Name>pink</Name>
<R>255</R>
</Color18>
<Color19>
<B>0</B>
<G>0</G>
<Name>rot</Name>
<R>255</R>
</Color19>
<Color2>
<B>61</B>
<G>125</G>
<Name>braun</Name>
<R>170</R>
</Color2>
<Color20>
<B>0</B>
<G>0</G>
<Name>schwarz</Name>
<R>0</R>
</Color20>
<Color21>
<B>255</B>
<G>255</G>
<Name>t&uuml;rkis</Name>
<R>0</R>
</Color21>
<Color22>
<B>255</B>
<G>255</G>
<Name>wei&szlig;</Name>
<R>255</R>
</Color22>
<Color3>
<B>64</B>
<G>64</G>
<Name>dunkelgrau</Name>
<R>64</R>
</Color3>
<Color4>
<B>84</B>
<G>132</G>
<Name>dunkelgr&uuml;n</Name>
<R>94</R>
</Color4>
<Color5>
<B>0</B>
<G>255</G>
<Name>gelb</Name>
<R>255</R>
</Color5>
<Color6>
<B>0</B>
<G>225</G>
<Name>goldgelb</Name>
<R>255</R>
</Color6>
<Color7>
<B>128</B>
<G>128</G>
<Name>grau</Name>
<R>128</R>
</Color7>
<Color8>
<B>0</B>
<G>255</G>
<Name>gr&uuml;n</Name>
<R>0</R>
</Color8>
<Color9>
<B>255</B>
<G>212</G>
<Name>hellblau</Name>
<R>191</R>
</Color9>
</Colors>
<ComplexIndices>
<Index0>
<Column0>
<Name>AuthorId</Name>
</Column0>
<Column1>
<Name>Name</Name>
</Column1>
<ColumnCount>2</ColumnCount>
<Name>TestComplexIndex</Name>
<Table>
<Name>Author</Name>
</Table>
</Index0>
<IndexCount>1</IndexCount>
</ComplexIndices>
<DataSource>
<Import>
<DBName></DBName>
<Description></Description>
<Domains>false</Domains>
<Driver></Driver>
<Name></Name>
<Referenzen>false</Referenzen>
<User></User>
</Import>
</DataSource>
<DatabaseConnections>
<Count>2</Count>
<DatabaseConnection0>
<DBExecMode>POSTGRESQL</DBExecMode>
<Driver>org.postgresql.Driver</Driver>
<Name>Test-DB (Postgre)</Name>
<Quote>"</Quote>
<SetDomains>false</SetDomains>
<SetNotNull>true</SetNotNull>
<SetReferences>true</SetReferences>
<URL>jdbc:postgresql://mykene/TEST_OLI_ISIS_2</URL>
<UserName>op1</UserName>
</DatabaseConnection0>
<DatabaseConnection1>
<DBExecMode>HSQL</DBExecMode>
<Driver>org.hsqldb.jdbcDriver</Driver>
<Name>Test-DB (HSQL)</Name>
<Quote>"</Quote>
<SetDomains>false</SetDomains>
<SetNotNull>true</SetNotNull>
<SetReferences>true</SetReferences>
<URL>jdbc:hsqldb:unittests/db/tst</URL>
<UserName>sa</UserName>
</DatabaseConnection1>
</DatabaseConnections>
<DefaultComment>
<Anzahl>0</Anzahl>
</DefaultComment>
<Domains>
<Anzahl>5</Anzahl>
<Domain0>
<Datatype>4</Datatype>
<History></History>
<Initialwert>NULL</Initialwert>
<Kommentar></Kommentar>
<Length>0</Length>
<NKS>0</NKS>
<Name>Boolean</Name>
<Parameters></Parameters>
</Domain0>
<Domain1>
<Datatype>-5</Datatype>
<History></History>
<Initialwert>NULL</Initialwert>
<Kommentar></Kommentar>
<Length>0</Length>
<NKS>0</NKS>
<Name>Ident</Name>
<Parameters></Parameters>
</Domain1>
<Domain2>
<Datatype>12</Datatype>
<History></History>
<Initialwert>NULL</Initialwert>
<Kommentar></Kommentar>
<Length>500</Length>
<NKS>0</NKS>
<Name>LongName</Name>
<Parameters></Parameters>
</Domain2>
<Domain3>
<Datatype>12</Datatype>
<History></History>
<Initialwert>NULL</Initialwert>
<Kommentar></Kommentar>
<Length>200</Length>
<NKS>0</NKS>
<Name>Name</Name>
<Parameters></Parameters>
</Domain3>
<Domain4>
<Datatype>2</Datatype>
<History></History>
<Initialwert>NULL</Initialwert>
<Kommentar></Kommentar>
<Length>8</Length>
<NKS>2</NKS>
<Name>Price</Name>
<Parameters></Parameters>
</Domain4>
</Domains>
<Factories>
<Object>archimedes.legacy.scheme.DefaultObjectFactory</Object>
</Factories>
<Pages>
<PerColumn>5</PerColumn>
<PerRow>10</PerRow>
</Pages>
<Parameter>
<AdditionalSQLScriptListener></AdditionalSQLScriptListener>
<Applicationname></Applicationname>
<AufgehobeneAusblenden>false</AufgehobeneAusblenden>
<Autor>&lt;null&gt;</Autor>
<Basepackagename></Basepackagename>
<CodeFactoryClassName></CodeFactoryClassName>
<Codebasispfad>.\</Codebasispfad>
<DBVersionDBVersionColumn></DBVersionDBVersionColumn>
<DBVersionDescriptionColumn></DBVersionDescriptionColumn>
<DBVersionTablename></DBVersionTablename>
<History></History>
<Kommentar>&lt;null&gt;</Kommentar>
<Name>TST</Name>
<Optionen>
<Anzahl>0</Anzahl>
</Optionen>
<PflichtfelderMarkieren>false</PflichtfelderMarkieren>
<ReferenzierteSpaltenAnzeigen>true</ReferenzierteSpaltenAnzeigen>
<RelationColorExternalTables>hellgrau</RelationColorExternalTables>
<RelationColorRegular>schwarz</RelationColorRegular>
<SchemaName>TST</SchemaName>
<Schriftgroessen>
<Tabelleninhalte>12</Tabelleninhalte>
<Ueberschriften>24</Ueberschriften>
<Untertitel>12</Untertitel>
</Schriftgroessen>
<Scripte>
<AfterWrite>&lt;null&gt;</AfterWrite>
</Scripte>
<TechnischeFelderAusgrauen>false</TechnischeFelderAusgrauen>
<TransienteFelderAusgrauen>false</TransienteFelderAusgrauen>
<UdschebtiBaseClassName></UdschebtiBaseClassName>
<Version>1</Version>
<Versionsdatum>08.12.2015</Versionsdatum>
<Versionskommentar>&lt;null&gt;</Versionskommentar>
</Parameter>
<Sequences>
<Count>0</Count>
</Sequences>
<Stereotype>
<Anzahl>0</Anzahl>
</Stereotype>
<Tabellen>
<Anzahl>1</Anzahl>
<Tabelle0>
<Aufgehoben>false</Aufgehoben>
<Codegenerator>
<AuswahlMembers>
<Anzahl>0</Anzahl>
</AuswahlMembers>
<CompareMembers>
<Anzahl>0</Anzahl>
</CompareMembers>
<Equalsmembers>
<Anzahl>0</Anzahl>
</Equalsmembers>
<HashCodeMembers>
<Anzahl>0</Anzahl>
</HashCodeMembers>
<NReferenzen>
<Anzahl>0</Anzahl>
</NReferenzen>
<OrderMembers>
<Anzahl>0</Anzahl>
</OrderMembers>
<ToComboStringMembers>
<Anzahl>0</Anzahl>
</ToComboStringMembers>
<ToStringMembers>
<Anzahl>0</Anzahl>
</ToStringMembers>
</Codegenerator>
<ExternalTable>false</ExternalTable>
<Farben>
<Hintergrund>wei&szlig;</Hintergrund>
<Schrift>schwarz</Schrift>
</Farben>
<FirstGenerationDone>false</FirstGenerationDone>
<History>@changed OLI - Added.$BR$@changed OLI - Added column: Id.</History>
<InDevelopment>false</InDevelopment>
<Kommentar></Kommentar>
<NMRelation>false</NMRelation>
<Name>Author</Name>
<Options>
<Count>0</Count>
</Options>
<Panels>
<Anzahl>1</Anzahl>
<Panel0>
<PanelClass></PanelClass>
<PanelNumber>0</PanelNumber>
<TabMnemonic>1</TabMnemonic>
<TabTitle>1.Daten</TabTitle>
<TabToolTipText>Hier können Sie die Daten des Objekt warten</TabToolTipText>
</Panel0>
</Panels>
<Spalten>
<Anzahl>4</Anzahl>
<Codegenerator>
<ActiveInApplication>false</ActiveInApplication>
<AdditionalCreateConstraints></AdditionalCreateConstraints>
<Codegeneratoroptionen></Codegeneratoroptionen>
<Codeverzeichnis>.</Codeverzeichnis>
<Codieren>true</Codieren>
<DynamicCode>true</DynamicCode>
<Inherited>false</Inherited>
<Kontextname></Kontextname>
<UniqueFormula></UniqueFormula>
</Codegenerator>
<Spalte0>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>true</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Ident</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText></ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History>@changed OLI - Added.</History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Author</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>true</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<SuppressForeignKeyConstraints>false</SuppressForeignKeyConstraints>
<TechnicalField>false</TechnicalField>
<Transient>false</Transient>
<Unique>false</Unique>
</Spalte0>
<Spalte1>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Name</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText></ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History>@changed OLI - Added.</History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue>'n/a'</IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Address</Name>
<NotNull>true</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<SuppressForeignKeyConstraints>false</SuppressForeignKeyConstraints>
<TechnicalField>false</TechnicalField>
<Transient>false</Transient>
<Unique>false</Unique>
</Spalte1>
<Spalte2>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Ident</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText></ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History>@changed OLI - Added.</History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>AuthorId</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<SuppressForeignKeyConstraints>false</SuppressForeignKeyConstraints>
<TechnicalField>false</TechnicalField>
<Transient>false</Transient>
<Unique>true</Unique>
</Spalte2>
<Spalte3>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Name</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText></ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History>@changed OLI - Added.</History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Name</Name>
<NotNull>true</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<SuppressForeignKeyConstraints>false</SuppressForeignKeyConstraints>
<TechnicalField>false</TechnicalField>
<Transient>false</Transient>
<Unique>false</Unique>
</Spalte3>
</Spalten>
<Stereotype>
<Anzahl>0</Anzahl>
</Stereotype>
<Views>
<Anzahl>1</Anzahl>
<View0>
<Name>Main</Name>
<X>150</X>
<Y>150</Y>
</View0>
</Views>
</Tabelle0>
</Tabellen>
<Views>
<Anzahl>1</Anzahl>
<View0>
<Beschreibung>Diese Sicht beinhaltet alle Tabellen des Schemas</Beschreibung>
<Name>Main</Name>
<ReferenzierteSpaltenAnzeigen>true</ReferenzierteSpaltenAnzeigen>
<Tabelle0>Author</Tabelle0>
<Tabellenanzahl>1</Tabellenanzahl>
<TechnischeSpaltenVerstecken>false</TechnischeSpaltenVerstecken>
</View0>
</Views>
</Diagramm>
|
------------------------------------------------------------------------------
-- --
-- GNAT LIBRARY COMPONENTS --
-- --
-- G N A T . S E C U R E _ H A S H E S . S H A 2 _ C O M M O N --
-- --
-- S p e c --
-- --
-- Copyright (C) 2009, Free Software Foundation, Inc. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 3, or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. --
-- --
-- As a special exception under Section 7 of GPL version 3, you are granted --
-- additional permissions described in the GCC Runtime Library Exception, --
-- version 3.1, as published by the Free Software Foundation. --
-- --
-- You should have received a copy of the GNU General Public License and --
-- a copy of the GCC Runtime Library Exception along with this program; --
-- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
-- <http://www.gnu.org/licenses/>. --
-- --
-- GNAT was originally developed by the GNAT team at New York University. --
-- Extensive contributions were provided by Ada Core Technologies Inc. --
-- --
------------------------------------------------------------------------------
-- This package provides supporting code for implementation of the following
-- secure hash functions described in FIPS PUB 180-3: SHA-224, SHA-256,
-- SHA-384, SHA-512. It contains the generic transform operation that is
-- common to the above four functions. The complete text of FIPS PUB 180-3
-- can be found at:
-- http://csrc.nist.gov/publications/fips/fips180-3/fips180-3_final.pdf
-- This is an internal unit and should not be used directly in applications.
-- Use GNAT.SHA* instead.
package GNAT.Secure_Hashes.SHA2_Common is
Block_Words : constant := 16;
-- All functions operate on blocks of 16 words
generic
with package Hash_State is new Hash_Function_State (<>);
Rounds : Natural;
-- Number of transformation rounds
K : Hash_State.State;
-- Constants used in the transform operation
with function Sigma0 (X : Hash_State.Word) return Hash_State.Word is <>;
with function Sigma1 (X : Hash_State.Word) return Hash_State.Word is <>;
with function S0 (X : Hash_State.Word) return Hash_State.Word is <>;
with function S1 (X : Hash_State.Word) return Hash_State.Word is <>;
-- FIPS PUB 180-3 elementary functions
procedure Transform
(H_St : in out Hash_State.State;
M_St : in out Message_State);
end GNAT.Secure_Hashes.SHA2_Common;
|
------------------------------------------------------------------------------
-- --
-- GNU ADA RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- S Y S T E M . O S _ I N T E R F A C E --
-- --
-- S p e c --
-- --
-- $Revision$
-- --
-- Copyright (C) 1992-2001, 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 2, 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. See the GNU General Public License --
-- for more details. You should have received a copy of the GNU General --
-- Public License distributed with GNARL; 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. --
-- --
-- GNARL was developed by the GNARL team at Florida State University. --
-- Extensive contributions were provided by Ada Core Technologies Inc. --
-- --
------------------------------------------------------------------------------
-- This is a DOS/DJGPPv2 (FSU THREAD) version of this package.
-- This package encapsulates all direct interfaces to OS services
-- that are needed by children of System.
-- PLEASE DO NOT add any with-clauses to this package
-- or remove the pragma Elaborate_Body.
-- It is designed to be a bottom-level (leaf) package.
with Interfaces.C;
package System.OS_Interface is
pragma Preelaborate;
--
-- A short name for libgthreads.a to keep Mike Feldman happy.
--
pragma Linker_Options ("-lgthre");
subtype int is Interfaces.C.int;
subtype short is Interfaces.C.short;
subtype long is Interfaces.C.long;
subtype unsigned is Interfaces.C.unsigned;
subtype unsigned_short is Interfaces.C.unsigned_short;
subtype unsigned_long is Interfaces.C.unsigned_long;
subtype unsigned_char is Interfaces.C.unsigned_char;
subtype plain_char is Interfaces.C.plain_char;
subtype size_t is Interfaces.C.size_t;
-----------
-- Errno --
-----------
function errno return int;
pragma Import (C, errno, "__get_errno");
EAGAIN : constant := 5;
EINTR : constant := 13;
EINVAL : constant := 14;
ENOMEM : constant := 25;
-------------
-- Signals --
-------------
Max_Interrupt : constant := 319;
type Signal is new int range 0 .. Max_Interrupt;
SIGHUP : constant := 294; -- hangup
SIGINT : constant := 295; -- interrupt (rubout)
SIGQUIT : constant := 298; -- quit (ASCD FS)
SIGILL : constant := 290; -- illegal instruction (not reset)
SIGABRT : constant := 288; -- used by abort
SIGFPE : constant := 289; -- floating point exception
SIGKILL : constant := 296; -- kill (cannot be caught or ignored)
SIGSEGV : constant := 291; -- segmentation violation
SIGPIPE : constant := 297; -- write on a pipe with no one to read it
SIGALRM : constant := 293; -- alarm clock
SIGTERM : constant := 292; -- software termination signal from kill
SIGUSR1 : constant := 299; -- user defined signal 1
SIGUSR2 : constant := 300; -- user defined signal 2
SIGBUS : constant := 0;
SIGADAABORT : constant := SIGABRT;
type Signal_Set is array (Natural range <>) of Signal;
Unmasked : constant Signal_Set := (SIGTRAP, SIGALRM);
Reserved : constant Signal_Set := (0 .. 0 => SIGSTOP);
type sigset_t is private;
function sigaddset (set : access sigset_t; sig : Signal) return int;
pragma Import (C, sigaddset, "sigaddset");
function sigdelset (set : access sigset_t; sig : Signal) return int;
pragma Import (C, sigdelset, "sigdelset");
function sigfillset (set : access sigset_t) return int;
pragma Import (C, sigfillset, "sigfillset");
function sigismember (set : access sigset_t; sig : Signal) return int;
pragma Import (C, sigismember, "sigismember");
function sigemptyset (set : access sigset_t) return int;
pragma Import (C, sigemptyset, "sigemptyset");
type struct_sigaction is record
sa_flags : int;
sa_handler : System.Address;
sa_mask : sigset_t;
end record;
pragma Convention (C, struct_sigaction);
type struct_sigaction_ptr is access all struct_sigaction;
SIG_BLOCK : constant := 1;
SIG_UNBLOCK : constant := 3;
SIG_SETMASK : constant := 2;
SIG_DFL : constant := 0;
SIG_IGN : constant := -1;
function sigaction
(sig : Signal;
act : struct_sigaction_ptr;
oact : struct_sigaction_ptr) return int;
pragma Import (C, sigaction, "sigaction");
----------
-- Time --
----------
Time_Slice_Supported : constant Boolean := False;
-- Indicates wether time slicing is supported (i.e FSU threads have been
-- compiled with DEF_RR)
type timespec is private;
function nanosleep (rqtp, rmtp : access timespec) return int;
-- FSU_THREADS has nonstandard nanosleep
type clockid_t is private;
CLOCK_REALTIME : constant clockid_t;
function clock_gettime
(clock_id : clockid_t;
tp : access timespec) return int;
pragma Import (C, clock_gettime, "clock_gettime");
function To_Duration (TS : timespec) return Duration;
pragma Inline (To_Duration);
function To_Timespec (D : Duration) return timespec;
pragma Inline (To_Timespec);
type struct_timeval is private;
function To_Duration (TV : struct_timeval) return Duration;
pragma Inline (To_Duration);
function To_Timeval (D : Duration) return struct_timeval;
pragma Inline (To_Timeval);
-------------------------
-- Priority Scheduling --
-------------------------
SCHED_FIFO : constant := 0;
SCHED_RR : constant := 1;
SCHED_OTHER : constant := 2;
-------------
-- Process --
-------------
type pid_t is private;
function kill (pid : pid_t; sig : Signal) return int;
pragma Import (C, kill, "kill");
function getpid return pid_t;
pragma Import (C, getpid, "getpid");
---------
-- LWP --
---------
function lwp_self return System.Address;
-- lwp_self does not exist on this thread library, revert to pthread_self
-- which is the closest approximation (with getpid). This function is
-- needed to share 7staprop.adb across POSIX-like targets.
pragma Import (C, lwp_self, "pthread_self");
-------------
-- Threads --
-------------
type Thread_Body is access
function (arg : System.Address) return System.Address;
type pthread_t is private;
subtype Thread_Id is pthread_t;
type pthread_mutex_t is limited private;
type pthread_cond_t is limited private;
type pthread_attr_t is limited private;
type pthread_mutexattr_t is limited private;
type pthread_condattr_t is limited private;
type pthread_key_t is private;
PTHREAD_CREATE_DETACHED : constant := 1;
-----------
-- Stack --
-----------
Stack_Base_Available : constant Boolean := False;
-- Indicates wether the stack base is available on this target.
-- This allows us to share s-osinte.adb between all the FSU run time.
-- Note that this value can only be true if pthread_t has a complete
-- definition that corresponds exactly to the C header files.
function Get_Stack_Base (thread : pthread_t) return Address;
pragma Inline (Get_Stack_Base);
-- returns the stack base of the specified thread.
-- Only call this function when Stack_Base_Available is True.
function Get_Page_Size return size_t;
function Get_Page_Size return Address;
pragma Import (C, Get_Page_Size, "getpagesize");
-- returns the size of a page, or 0 if this is not relevant on this
-- target
PROT_NONE : constant := 0;
PROT_READ : constant := 1;
PROT_WRITE : constant := 2;
PROT_EXEC : constant := 4;
PROT_ALL : constant := PROT_READ + PROT_WRITE + PROT_EXEC;
PROT_ON : constant := PROT_NONE;
PROT_OFF : constant := PROT_ALL;
function mprotect
(addr : Address; len : size_t; prot : int) return int;
pragma Import (C, mprotect);
---------------------------------------
-- Nonstandard Thread Initialization --
---------------------------------------
procedure pthread_init;
-- FSU_THREADS requires pthread_init, which is nonstandard
-- and this should be invoked during the elaboration of s-taprop.adb
pragma Import (C, pthread_init, "pthread_init");
-------------------------
-- POSIX.1c Section 3 --
-------------------------
function sigwait (set : access sigset_t; sig : access Signal) return int;
-- FSU_THREADS has a nonstandard sigwait
function pthread_kill (thread : pthread_t; sig : Signal) return int;
pragma Import (C, pthread_kill, "pthread_kill");
type sigset_t_ptr is access all sigset_t;
function pthread_sigmask
(how : int;
set : sigset_t_ptr;
oset : sigset_t_ptr) return int;
pragma Import (C, pthread_sigmask, "sigprocmask");
--------------------------
-- POSIX.1c Section 11 --
--------------------------
function pthread_mutexattr_init
(attr : access pthread_mutexattr_t) return int;
pragma Import (C, pthread_mutexattr_init, "pthread_mutexattr_init");
function pthread_mutexattr_destroy
(attr : access pthread_mutexattr_t) return int;
pragma Import (C, pthread_mutexattr_destroy, "pthread_mutexattr_destroy");
function pthread_mutex_init
(mutex : access pthread_mutex_t;
attr : access pthread_mutexattr_t) return int;
pragma Import (C, pthread_mutex_init, "pthread_mutex_init");
function pthread_mutex_destroy (mutex : access pthread_mutex_t) return int;
pragma Import (C, pthread_mutex_destroy, "pthread_mutex_destroy");
function pthread_mutex_lock (mutex : access pthread_mutex_t) return int;
-- FSU_THREADS has nonstandard pthread_mutex_lock
function pthread_mutex_unlock (mutex : access pthread_mutex_t) return int;
-- FSU_THREADS has nonstandard pthread_mutex_lock
function pthread_condattr_init
(attr : access pthread_condattr_t) return int;
pragma Import (C, pthread_condattr_init, "pthread_condattr_init");
function pthread_condattr_destroy
(attr : access pthread_condattr_t) return int;
pragma Import (C, pthread_condattr_destroy, "pthread_condattr_destroy");
function pthread_cond_init
(cond : access pthread_cond_t;
attr : access pthread_condattr_t) return int;
pragma Import (C, pthread_cond_init, "pthread_cond_init");
function pthread_cond_destroy (cond : access pthread_cond_t) return int;
pragma Import (C, pthread_cond_destroy, "pthread_cond_destroy");
function pthread_cond_signal (cond : access pthread_cond_t) return int;
pragma Import (C, pthread_cond_signal, "pthread_cond_signal");
function pthread_cond_wait
(cond : access pthread_cond_t;
mutex : access pthread_mutex_t) return int;
-- FSU_THREADS has a nonstandard pthread_cond_wait
function pthread_cond_timedwait
(cond : access pthread_cond_t;
mutex : access pthread_mutex_t;
abstime : access timespec) return int;
-- FSU_THREADS has a nonstandard pthread_cond_timedwait
Relative_Timed_Wait : constant Boolean := False;
-- pthread_cond_timedwait requires an absolute delay time
--------------------------
-- POSIX.1c Section 13 --
--------------------------
PTHREAD_PRIO_NONE : constant := 0;
PTHREAD_PRIO_PROTECT : constant := 2;
PTHREAD_PRIO_INHERIT : constant := 1;
function pthread_mutexattr_setprotocol
(attr : access pthread_mutexattr_t;
protocol : int) return int;
pragma Import (C, pthread_mutexattr_setprotocol);
function pthread_mutexattr_setprioceiling
(attr : access pthread_mutexattr_t;
prioceiling : int) return int;
pragma Import (C, pthread_mutexattr_setprioceiling);
type struct_sched_param is record
sched_priority : int; -- scheduling priority
end record;
function pthread_setschedparam
(thread : pthread_t;
policy : int;
param : access struct_sched_param) return int;
-- FSU_THREADS does not have pthread_setschedparam
function pthread_attr_setscope
(attr : access pthread_attr_t;
contentionscope : int) return int;
pragma Import (C, pthread_attr_setscope, "pthread_attr_setscope");
function pthread_attr_setinheritsched
(attr : access pthread_attr_t;
inheritsched : int) return int;
pragma Import (C, pthread_attr_setinheritsched);
function pthread_attr_setschedpolicy
(attr : access pthread_attr_t;
policy : int) return int;
pragma Import (C, pthread_attr_setschedpolicy, "pthread_attr_setsched");
function sched_yield return int;
-- FSU_THREADS does not have sched_yield;
---------------------------
-- P1003.1c - Section 16 --
---------------------------
function pthread_attr_init (attributes : access pthread_attr_t) return int;
pragma Import (C, pthread_attr_init);
function pthread_attr_destroy
(attributes : access pthread_attr_t) return int;
pragma Import (C, pthread_attr_destroy);
function pthread_attr_setdetachstate
(attr : access pthread_attr_t;
detachstate : int) return int;
-- FSU_THREADS has a nonstandard pthread_attr_setdetachstate
function pthread_attr_setstacksize
(attr : access pthread_attr_t;
stacksize : size_t) return int;
pragma Import (C, pthread_attr_setstacksize);
function pthread_create
(thread : access pthread_t;
attributes : access pthread_attr_t;
start_routine : Thread_Body;
arg : System.Address) return int;
pragma Import (C, pthread_create);
procedure pthread_exit (status : System.Address);
pragma Import (C, pthread_exit, "pthread_exit");
function pthread_self return pthread_t;
pragma Import (C, pthread_self, "pthread_self");
--------------------------
-- POSIX.1c Section 17 --
--------------------------
function pthread_setspecific
(key : pthread_key_t;
value : System.Address) return int;
pragma Import (C, pthread_setspecific, "pthread_setspecific");
function pthread_getspecific (key : pthread_key_t) return System.Address;
-- FSU_THREADS has a nonstandard pthread_getspecific
type destructor_pointer is access procedure (arg : System.Address);
function pthread_key_create
(key : access pthread_key_t;
destructor : destructor_pointer) return int;
pragma Import (C, pthread_key_create, "pthread_key_create");
private
type bits_arr_t is array (Integer range 1 .. 10) of long;
type sigset_t is record
bits : bits_arr_t;
end record;
type pid_t is new int;
type time_t is new long;
type timespec is record
tv_sec : time_t;
tv_nsec : long;
end record;
pragma Convention (C, timespec);
type clockid_t is new int;
CLOCK_REALTIME : constant clockid_t := 0;
type struct_timeval is record
tv_sec : long;
tv_usec : long;
end record;
pragma Convention (C, struct_timeval);
type pthread_attr_t is record
flags : int;
stacksize : int;
contentionscope : int;
inheritsched : int;
detachstate : int;
sched : int;
prio : int;
starttime : timespec;
deadline : timespec;
period : timespec;
end record;
pragma Convention (C, pthread_attr_t);
type pthread_condattr_t is record
flags : int;
end record;
pragma Convention (C, pthread_condattr_t);
type pthread_mutexattr_t is record
flags : int;
prio_ceiling : int;
protocol : int;
end record;
pragma Convention (C, pthread_mutexattr_t);
type sigjmp_buf is array (Integer range 0 .. 43) of int;
type pthread_t_struct is record
context : sigjmp_buf;
pbody : sigjmp_buf;
errno : int;
ret : int;
stack_base : System.Address;
end record;
pragma Convention (C, pthread_t_struct);
type pthread_t is access all pthread_t_struct;
type queue_t is record
head : System.Address;
tail : System.Address;
end record;
pragma Convention (C, queue_t);
type pthread_mutex_t is record
queue : queue_t;
lock : plain_char;
owner : System.Address;
flags : int;
prio_ceiling : int;
protocol : int;
prev_max_ceiling_prio : int;
end record;
pragma Convention (C, pthread_mutex_t);
type pthread_cond_t is record
queue : queue_t;
flags : int;
waiters : int;
mutex : System.Address;
end record;
pragma Convention (C, pthread_cond_t);
type pthread_key_t is new int;
end System.OS_Interface;
|
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- E X P _ C H 7 --
-- --
-- S p e c --
-- --
-- $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. --
-- --
-- GNAT was originally developed by the GNAT team at New York University. --
-- Extensive contributions were provided by Ada Core Technologies Inc. --
-- --
------------------------------------------------------------------------------
with Types; use Types;
package Exp_Ch7 is
procedure Expand_N_Package_Body (N : Node_Id);
procedure Expand_N_Package_Declaration (N : Node_Id);
------------------------------
-- Finalization Management --
------------------------------
function In_Finalization_Root (E : Entity_Id) return Boolean;
-- True if current scope is in package System.Finalization_Root. Used
-- to avoid certain expansions that would involve circularity in the
-- Rtsfind mechanism.
procedure Build_Final_List (N : Node_Id; Typ : Entity_Id);
-- Build finalization list for anonymous access types, and for access
-- types that are frozen before their designated types are known to
-- be controlled.
procedure Build_Controlling_Procs (Typ : Entity_Id);
-- Typ is a record, and array type having controlled components.
-- Create the procedures Deep_Initialize, Deep_Adjust and Deep_Finalize
-- that take care of finalization management at run-time.
function Controller_Component (Typ : Entity_Id) return Entity_Id;
-- Returns the entity of the component whose name is 'Name_uController'
function Controlled_Type (T : Entity_Id) return Boolean;
-- True if T potentially needs finalization actions
function Find_Final_List
(E : Entity_Id;
Ref : Node_Id := Empty)
return Node_Id;
-- E is an entity representing a controlled object, a controlled type
-- or a scope. If Ref is not empty, it is a reference to a controlled
-- record, the closest Final list is in the controller component of
-- the record containing Ref otherwise this function returns a
-- reference to the final list attached to the closest dynamic scope
-- (that can be E itself) creating this final list if necessary.
function Has_New_Controlled_Component (E : Entity_Id) return Boolean;
-- E is a type entity. Give the same resul as Has_Controlled_Component
-- except for tagged extensions where the result is True only if the
-- latest extension contains a controlled component.
function Make_Attach_Call
(Obj_Ref : Node_Id;
Flist_Ref : Node_Id;
With_Attach : Node_Id)
return Node_Id;
-- Attach the referenced object to the referenced Final Chain
-- 'Flist_Ref' With_Attach is an expression of type Short_Short_Integer
-- which can be either '0' to signify no attachment, '1' for
-- attachement to a simply linked list or '2' for attachement to a
-- doubly linked list.
function Make_Init_Call
(Ref : Node_Id;
Typ : Entity_Id;
Flist_Ref : Node_Id;
With_Attach : Node_Id)
return List_Id;
-- Ref is an expression (with no-side effect and is not required to
-- have been previously analyzed) that references the object to be
-- initialized. Typ is the expected type of Ref, which is a controlled
-- type (Is_Controlled) or a type with controlled components
-- (Has_Controlled). 'Dynamic_Case' controls the way the object is
-- attached which is different whether the object is dynamically
-- allocated or not.
--
-- This function will generate the appropriate calls to make
-- sure that the objects referenced by Ref are initialized. The
-- generate code is quite different depending on the fact the type
-- IS_Controlled or HAS_Controlled but this is not the problem of the
-- caller, the details are in the body.
function Make_Adjust_Call
(Ref : Node_Id;
Typ : Entity_Id;
Flist_Ref : Node_Id;
With_Attach : Node_Id)
return List_Id;
-- Ref is an expression (with no-side effect and is not required to
-- have been previously analyzed) that references the object to be
-- adjusted. Typ is the expected type of Ref, which is a controlled
-- type (Is_Controlled) or a type with controlled components
-- (Has_Controlled).
--
-- This function will generate the appropriate calls to make
-- sure that the objects referenced by Ref are adjusted. The generated
-- code is quite different depending on the fact the type IS_Controlled
-- or HAS_Controlled but this is not the problem of the caller, the
-- details are in the body. If the parameter With_Attach is set to
-- True, the finalizable objects involved are attached to the proper
-- finalization chain. The objects must be attached when the adjust
-- takes place after an initialization expression but not when it takes
-- place after a regular assignment.
--
-- The description of With_Attach is completely obsolete ???
function Make_Final_Call
(Ref : Node_Id;
Typ : Entity_Id;
With_Detach : Node_Id)
return List_Id;
-- Ref is an expression (with no-side effect and is not required to
-- have been previously analyzed) that references the object
-- to be Finalized. Typ is the expected type of Ref, which is a
-- controlled type (Is_Controlled) or a type with controlled
-- components (Has_Controlled).
--
-- This function will generate the appropriate calls to make
-- sure that the objects referenced by Ref are finalized. The generated
-- code is quite different depending on the fact the type IS_Controlled
-- or HAS_Controlled but this is not the problem of the caller, the
-- details are in the body. If the parameter With_Detach is set to
-- True, the finalizable objects involved are detached from the proper
-- finalization chain. The objects must be detached when finalizing an
-- unchecked deallocated object but not when finalizing the target of
-- an assignment, it is not necessary either on scope exit.
procedure Expand_Ctrl_Function_Call (N : Node_Id);
-- Expand a call to a function returning a controlled value. That is to
-- say attach the result of the call to the current finalization list,
-- which is the one of the transient scope created for such constructs.
--------------------------------
-- Transient Scope Management --
--------------------------------
procedure Expand_Cleanup_Actions (N : Node_Id);
-- Expand the necessary stuff into a scope to enable finalization of local
-- objects and deallocation of transient data when exiting the scope. N is
-- a "scope node" that is to say one of the following: N_Block_Statement,
-- N_Subprogram_Body, N_Task_Body, N_Entry_Body.
procedure Establish_Transient_Scope (N : Node_Id; Sec_Stack : Boolean);
-- Push a new transient scope on the scope stack. N is the node responsible
-- for the need of a transient scope. If Sec_Stack is True then the
-- secondary stack is brought in, otherwise it isn't.
function Node_To_Be_Wrapped return Node_Id;
-- return the node to be wrapped if the current scope is transient.
procedure Store_Before_Actions_In_Scope (L : List_Id);
-- Append the list L of actions to the end of the before-actions store
-- in the top of the scope stack
procedure Store_After_Actions_In_Scope (L : List_Id);
-- Append the list L of actions to the beginning of the after-actions
-- store in the top of the scope stack
procedure Wrap_Transient_Declaration (N : Node_Id);
-- N is an object declaration. Expand the finalization calls after the
-- declaration and make the outer scope beeing the transient one.
procedure Wrap_Transient_Expression (N : Node_Id);
-- N is a sub-expression. Expand a transient block around an expression
procedure Wrap_Transient_Statement (N : Node_Id);
-- N is a statement. Expand a transient block around an instruction
end Exp_Ch7;
|
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- Ada Modeling Framework --
-- --
-- Runtime Library Component --
-- --
------------------------------------------------------------------------------
-- --
-- Copyright © 2010-2017, Vadim Godunko <vgodunko@gmail.com> --
-- All rights reserved. --
-- --
-- Redistribution and use in source and binary forms, with or without --
-- modification, are permitted provided that the following conditions --
-- are met: --
-- --
-- * Redistributions of source code must retain the above copyright --
-- notice, this list of conditions and the following disclaimer. --
-- --
-- * Redistributions in binary form must reproduce the above copyright --
-- notice, this list of conditions and the following disclaimer in the --
-- documentation and/or other materials provided with the distribution. --
-- --
-- * Neither the name of the Vadim Godunko, IE nor the names of its --
-- contributors may be used to endorse or promote products derived from --
-- this software without specific prior written permission. --
-- --
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS --
-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT --
-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR --
-- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT --
-- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, --
-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED --
-- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR --
-- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF --
-- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING --
-- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS --
-- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --
-- --
------------------------------------------------------------------------------
-- $Revision$ $Date$
------------------------------------------------------------------------------
-- This file is generated, don't edit it.
------------------------------------------------------------------------------
with Matreshka.Internals.Strings;
package AMF.Internals.Tables.UML_String_Data_08 is
-- "Specifies the transitions departing from this vertex."
MS_0800 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 55,
Unused => 53,
Length => 53,
Value =>
(16#0053#, 16#0070#, 16#0065#, 16#0063#,
16#0069#, 16#0066#, 16#0069#, 16#0065#,
16#0073#, 16#0020#, 16#0074#, 16#0068#,
16#0065#, 16#0020#, 16#0074#, 16#0072#,
16#0061#, 16#006E#, 16#0073#, 16#0069#,
16#0074#, 16#0069#, 16#006F#, 16#006E#,
16#0073#, 16#0020#, 16#0064#, 16#0065#,
16#0070#, 16#0061#, 16#0072#, 16#0074#,
16#0069#, 16#006E#, 16#0067#, 16#0020#,
16#0066#, 16#0072#, 16#006F#, 16#006D#,
16#0020#, 16#0074#, 16#0068#, 16#0069#,
16#0073#, 16#0020#, 16#0076#, 16#0065#,
16#0072#, 16#0074#, 16#0065#, 16#0078#,
16#002E#,
others => 16#0000#),
others => <>);
-- "A_preCondition_protocolTransition"
MS_0801 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 39,
Unused => 33,
Length => 33,
Value =>
(16#0041#, 16#005F#, 16#0070#, 16#0072#,
16#0065#, 16#0043#, 16#006F#, 16#006E#,
16#0064#, 16#0069#, 16#0074#, 16#0069#,
16#006F#, 16#006E#, 16#005F#, 16#0070#,
16#0072#, 16#006F#, 16#0074#, 16#006F#,
16#0063#, 16#006F#, 16#006C#, 16#0054#,
16#0072#, 16#0061#, 16#006E#, 16#0073#,
16#0069#, 16#0074#, 16#0069#, 16#006F#,
16#006E#,
others => 16#0000#),
others => <>);
-- "Extend"
MS_0802 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 7,
Unused => 6,
Length => 6,
Value =>
(16#0045#, 16#0078#, 16#0074#, 16#0065#,
16#006E#, 16#0064#,
others => 16#0000#),
others => <>);
-- "asynchSignal"
MS_0803 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 15,
Unused => 12,
Length => 12,
Value =>
(16#0061#, 16#0073#, 16#0079#, 16#006E#,
16#0063#, 16#0068#, 16#0053#, 16#0069#,
16#0067#, 16#006E#, 16#0061#, 16#006C#,
others => 16#0000#),
others => <>);
-- "References the packaged elements that are Packages."
MS_0804 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 55,
Unused => 51,
Length => 51,
Value =>
(16#0052#, 16#0065#, 16#0066#, 16#0065#,
16#0072#, 16#0065#, 16#006E#, 16#0063#,
16#0065#, 16#0073#, 16#0020#, 16#0074#,
16#0068#, 16#0065#, 16#0020#, 16#0070#,
16#0061#, 16#0063#, 16#006B#, 16#0061#,
16#0067#, 16#0065#, 16#0064#, 16#0020#,
16#0065#, 16#006C#, 16#0065#, 16#006D#,
16#0065#, 16#006E#, 16#0074#, 16#0073#,
16#0020#, 16#0074#, 16#0068#, 16#0061#,
16#0074#, 16#0020#, 16#0061#, 16#0072#,
16#0065#, 16#0020#, 16#0050#, 16#0061#,
16#0063#, 16#006B#, 16#0061#, 16#0067#,
16#0065#, 16#0073#, 16#002E#,
others => 16#0000#),
others => <>);
-- "An expression is a structured tree of symbols that denotes a (possibly empty) set of values when evaluated in a context."
MS_0805 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 127,
Unused => 120,
Length => 120,
Value =>
(16#0041#, 16#006E#, 16#0020#, 16#0065#,
16#0078#, 16#0070#, 16#0072#, 16#0065#,
16#0073#, 16#0073#, 16#0069#, 16#006F#,
16#006E#, 16#0020#, 16#0069#, 16#0073#,
16#0020#, 16#0061#, 16#0020#, 16#0073#,
16#0074#, 16#0072#, 16#0075#, 16#0063#,
16#0074#, 16#0075#, 16#0072#, 16#0065#,
16#0064#, 16#0020#, 16#0074#, 16#0072#,
16#0065#, 16#0065#, 16#0020#, 16#006F#,
16#0066#, 16#0020#, 16#0073#, 16#0079#,
16#006D#, 16#0062#, 16#006F#, 16#006C#,
16#0073#, 16#0020#, 16#0074#, 16#0068#,
16#0061#, 16#0074#, 16#0020#, 16#0064#,
16#0065#, 16#006E#, 16#006F#, 16#0074#,
16#0065#, 16#0073#, 16#0020#, 16#0061#,
16#0020#, 16#0028#, 16#0070#, 16#006F#,
16#0073#, 16#0073#, 16#0069#, 16#0062#,
16#006C#, 16#0079#, 16#0020#, 16#0065#,
16#006D#, 16#0070#, 16#0074#, 16#0079#,
16#0029#, 16#0020#, 16#0073#, 16#0065#,
16#0074#, 16#0020#, 16#006F#, 16#0066#,
16#0020#, 16#0076#, 16#0061#, 16#006C#,
16#0075#, 16#0065#, 16#0073#, 16#0020#,
16#0077#, 16#0068#, 16#0065#, 16#006E#,
16#0020#, 16#0065#, 16#0076#, 16#0061#,
16#006C#, 16#0075#, 16#0061#, 16#0074#,
16#0065#, 16#0064#, 16#0020#, 16#0069#,
16#006E#, 16#0020#, 16#0061#, 16#0020#,
16#0063#, 16#006F#, 16#006E#, 16#0074#,
16#0065#, 16#0078#, 16#0074#, 16#002E#,
others => 16#0000#),
others => <>);
-- "activityNode"
MS_0806 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 15,
Unused => 12,
Length => 12,
Value =>
(16#0061#, 16#0063#, 16#0074#, 16#0069#,
16#0076#, 16#0069#, 16#0074#, 16#0079#,
16#004E#, 16#006F#, 16#0064#, 16#0065#,
others => 16#0000#),
others => <>);
-- "A_qualifier_qualifierValue"
MS_0807 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 31,
Unused => 26,
Length => 26,
Value =>
(16#0041#, 16#005F#, 16#0071#, 16#0075#,
16#0061#, 16#006C#, 16#0069#, 16#0066#,
16#0069#, 16#0065#, 16#0072#, 16#005F#,
16#0071#, 16#0075#, 16#0061#, 16#006C#,
16#0069#, 16#0066#, 16#0069#, 16#0065#,
16#0072#, 16#0056#, 16#0061#, 16#006C#,
16#0075#, 16#0065#,
others => 16#0000#),
others => <>);
-- "A protocol transition always belongs to a protocol state machine."
MS_0808 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 71,
Unused => 65,
Length => 65,
Value =>
(16#0041#, 16#0020#, 16#0070#, 16#0072#,
16#006F#, 16#0074#, 16#006F#, 16#0063#,
16#006F#, 16#006C#, 16#0020#, 16#0074#,
16#0072#, 16#0061#, 16#006E#, 16#0073#,
16#0069#, 16#0074#, 16#0069#, 16#006F#,
16#006E#, 16#0020#, 16#0061#, 16#006C#,
16#0077#, 16#0061#, 16#0079#, 16#0073#,
16#0020#, 16#0062#, 16#0065#, 16#006C#,
16#006F#, 16#006E#, 16#0067#, 16#0073#,
16#0020#, 16#0074#, 16#006F#, 16#0020#,
16#0061#, 16#0020#, 16#0070#, 16#0072#,
16#006F#, 16#0074#, 16#006F#, 16#0063#,
16#006F#, 16#006C#, 16#0020#, 16#0073#,
16#0074#, 16#0061#, 16#0074#, 16#0065#,
16#0020#, 16#006D#, 16#0061#, 16#0063#,
16#0068#, 16#0069#, 16#006E#, 16#0065#,
16#002E#,
others => 16#0000#),
others => <>);
-- "A_event_timeObservation"
MS_0809 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 31,
Unused => 23,
Length => 23,
Value =>
(16#0041#, 16#005F#, 16#0065#, 16#0076#,
16#0065#, 16#006E#, 16#0074#, 16#005F#,
16#0074#, 16#0069#, 16#006D#, 16#0065#,
16#004F#, 16#0062#, 16#0073#, 16#0065#,
16#0072#, 16#0076#, 16#0061#, 16#0074#,
16#0069#, 16#006F#, 16#006E#,
others => 16#0000#),
others => <>);
-- "Assume that within Interaction X, Lifeline L is of class C and decomposed to D. Within X there is a sequence of constructs along L (such constructs are CombinedFragments, InteractionUse and (plain) OccurrenceSpecifications). Then a corresponding sequence of constructs must appear within D, matched one-to-one in the same order. i) CombinedFragment covering L are matched with an extra-global CombinedFragment in D ii) An InteractionUse covering L are matched with a global (i.e. covering all Lifelines) InteractionUse in D. iii) A plain OccurrenceSpecification on L is considered an actualGate that must be matched by a formalGate of D"
MS_080A : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 655,
Unused => 636,
Length => 636,
Value =>
(16#0041#, 16#0073#, 16#0073#, 16#0075#,
16#006D#, 16#0065#, 16#0020#, 16#0074#,
16#0068#, 16#0061#, 16#0074#, 16#0020#,
16#0077#, 16#0069#, 16#0074#, 16#0068#,
16#0069#, 16#006E#, 16#0020#, 16#0049#,
16#006E#, 16#0074#, 16#0065#, 16#0072#,
16#0061#, 16#0063#, 16#0074#, 16#0069#,
16#006F#, 16#006E#, 16#0020#, 16#0058#,
16#002C#, 16#0020#, 16#004C#, 16#0069#,
16#0066#, 16#0065#, 16#006C#, 16#0069#,
16#006E#, 16#0065#, 16#0020#, 16#004C#,
16#0020#, 16#0069#, 16#0073#, 16#0020#,
16#006F#, 16#0066#, 16#0020#, 16#0063#,
16#006C#, 16#0061#, 16#0073#, 16#0073#,
16#0020#, 16#0043#, 16#0020#, 16#0061#,
16#006E#, 16#0064#, 16#0020#, 16#0064#,
16#0065#, 16#0063#, 16#006F#, 16#006D#,
16#0070#, 16#006F#, 16#0073#, 16#0065#,
16#0064#, 16#0020#, 16#0074#, 16#006F#,
16#0020#, 16#0044#, 16#002E#, 16#0020#,
16#0057#, 16#0069#, 16#0074#, 16#0068#,
16#0069#, 16#006E#, 16#0020#, 16#0058#,
16#0020#, 16#0074#, 16#0068#, 16#0065#,
16#0072#, 16#0065#, 16#0020#, 16#0069#,
16#0073#, 16#0020#, 16#0061#, 16#0020#,
16#0073#, 16#0065#, 16#0071#, 16#0075#,
16#0065#, 16#006E#, 16#0063#, 16#0065#,
16#0020#, 16#006F#, 16#0066#, 16#0020#,
16#0063#, 16#006F#, 16#006E#, 16#0073#,
16#0074#, 16#0072#, 16#0075#, 16#0063#,
16#0074#, 16#0073#, 16#0020#, 16#0061#,
16#006C#, 16#006F#, 16#006E#, 16#0067#,
16#0020#, 16#004C#, 16#0020#, 16#0028#,
16#0073#, 16#0075#, 16#0063#, 16#0068#,
16#0020#, 16#0063#, 16#006F#, 16#006E#,
16#0073#, 16#0074#, 16#0072#, 16#0075#,
16#0063#, 16#0074#, 16#0073#, 16#0020#,
16#0061#, 16#0072#, 16#0065#, 16#0020#,
16#0043#, 16#006F#, 16#006D#, 16#0062#,
16#0069#, 16#006E#, 16#0065#, 16#0064#,
16#0046#, 16#0072#, 16#0061#, 16#0067#,
16#006D#, 16#0065#, 16#006E#, 16#0074#,
16#0073#, 16#002C#, 16#0020#, 16#0049#,
16#006E#, 16#0074#, 16#0065#, 16#0072#,
16#0061#, 16#0063#, 16#0074#, 16#0069#,
16#006F#, 16#006E#, 16#0055#, 16#0073#,
16#0065#, 16#0020#, 16#0061#, 16#006E#,
16#0064#, 16#0020#, 16#0028#, 16#0070#,
16#006C#, 16#0061#, 16#0069#, 16#006E#,
16#0029#, 16#0020#, 16#004F#, 16#0063#,
16#0063#, 16#0075#, 16#0072#, 16#0072#,
16#0065#, 16#006E#, 16#0063#, 16#0065#,
16#0053#, 16#0070#, 16#0065#, 16#0063#,
16#0069#, 16#0066#, 16#0069#, 16#0063#,
16#0061#, 16#0074#, 16#0069#, 16#006F#,
16#006E#, 16#0073#, 16#0029#, 16#002E#,
16#0020#, 16#0054#, 16#0068#, 16#0065#,
16#006E#, 16#0020#, 16#0061#, 16#0020#,
16#0063#, 16#006F#, 16#0072#, 16#0072#,
16#0065#, 16#0073#, 16#0070#, 16#006F#,
16#006E#, 16#0064#, 16#0069#, 16#006E#,
16#0067#, 16#0020#, 16#0073#, 16#0065#,
16#0071#, 16#0075#, 16#0065#, 16#006E#,
16#0063#, 16#0065#, 16#0020#, 16#006F#,
16#0066#, 16#0020#, 16#0063#, 16#006F#,
16#006E#, 16#0073#, 16#0074#, 16#0072#,
16#0075#, 16#0063#, 16#0074#, 16#0073#,
16#0020#, 16#006D#, 16#0075#, 16#0073#,
16#0074#, 16#0020#, 16#0061#, 16#0070#,
16#0070#, 16#0065#, 16#0061#, 16#0072#,
16#0020#, 16#0077#, 16#0069#, 16#0074#,
16#0068#, 16#0069#, 16#006E#, 16#0020#,
16#0044#, 16#002C#, 16#0020#, 16#006D#,
16#0061#, 16#0074#, 16#0063#, 16#0068#,
16#0065#, 16#0064#, 16#0020#, 16#006F#,
16#006E#, 16#0065#, 16#002D#, 16#0074#,
16#006F#, 16#002D#, 16#006F#, 16#006E#,
16#0065#, 16#0020#, 16#0069#, 16#006E#,
16#0020#, 16#0074#, 16#0068#, 16#0065#,
16#0020#, 16#0073#, 16#0061#, 16#006D#,
16#0065#, 16#0020#, 16#006F#, 16#0072#,
16#0064#, 16#0065#, 16#0072#, 16#002E#,
16#0020#, 16#0069#, 16#0029#, 16#0020#,
16#0043#, 16#006F#, 16#006D#, 16#0062#,
16#0069#, 16#006E#, 16#0065#, 16#0064#,
16#0046#, 16#0072#, 16#0061#, 16#0067#,
16#006D#, 16#0065#, 16#006E#, 16#0074#,
16#0020#, 16#0063#, 16#006F#, 16#0076#,
16#0065#, 16#0072#, 16#0069#, 16#006E#,
16#0067#, 16#0020#, 16#004C#, 16#0020#,
16#0061#, 16#0072#, 16#0065#, 16#0020#,
16#006D#, 16#0061#, 16#0074#, 16#0063#,
16#0068#, 16#0065#, 16#0064#, 16#0020#,
16#0077#, 16#0069#, 16#0074#, 16#0068#,
16#0020#, 16#0061#, 16#006E#, 16#0020#,
16#0065#, 16#0078#, 16#0074#, 16#0072#,
16#0061#, 16#002D#, 16#0067#, 16#006C#,
16#006F#, 16#0062#, 16#0061#, 16#006C#,
16#0020#, 16#0043#, 16#006F#, 16#006D#,
16#0062#, 16#0069#, 16#006E#, 16#0065#,
16#0064#, 16#0046#, 16#0072#, 16#0061#,
16#0067#, 16#006D#, 16#0065#, 16#006E#,
16#0074#, 16#0020#, 16#0069#, 16#006E#,
16#0020#, 16#0044#, 16#0020#, 16#0069#,
16#0069#, 16#0029#, 16#0020#, 16#0041#,
16#006E#, 16#0020#, 16#0049#, 16#006E#,
16#0074#, 16#0065#, 16#0072#, 16#0061#,
16#0063#, 16#0074#, 16#0069#, 16#006F#,
16#006E#, 16#0055#, 16#0073#, 16#0065#,
16#0020#, 16#0063#, 16#006F#, 16#0076#,
16#0065#, 16#0072#, 16#0069#, 16#006E#,
16#0067#, 16#0020#, 16#004C#, 16#0020#,
16#0061#, 16#0072#, 16#0065#, 16#0020#,
16#006D#, 16#0061#, 16#0074#, 16#0063#,
16#0068#, 16#0065#, 16#0064#, 16#0020#,
16#0077#, 16#0069#, 16#0074#, 16#0068#,
16#0020#, 16#0061#, 16#0020#, 16#0067#,
16#006C#, 16#006F#, 16#0062#, 16#0061#,
16#006C#, 16#0020#, 16#0028#, 16#0069#,
16#002E#, 16#0065#, 16#002E#, 16#0020#,
16#0063#, 16#006F#, 16#0076#, 16#0065#,
16#0072#, 16#0069#, 16#006E#, 16#0067#,
16#0020#, 16#0061#, 16#006C#, 16#006C#,
16#0020#, 16#004C#, 16#0069#, 16#0066#,
16#0065#, 16#006C#, 16#0069#, 16#006E#,
16#0065#, 16#0073#, 16#0029#, 16#0020#,
16#0049#, 16#006E#, 16#0074#, 16#0065#,
16#0072#, 16#0061#, 16#0063#, 16#0074#,
16#0069#, 16#006F#, 16#006E#, 16#0055#,
16#0073#, 16#0065#, 16#0020#, 16#0069#,
16#006E#, 16#0020#, 16#0044#, 16#002E#,
16#0020#, 16#0069#, 16#0069#, 16#0069#,
16#0029#, 16#0020#, 16#0041#, 16#0020#,
16#0070#, 16#006C#, 16#0061#, 16#0069#,
16#006E#, 16#0020#, 16#004F#, 16#0063#,
16#0063#, 16#0075#, 16#0072#, 16#0072#,
16#0065#, 16#006E#, 16#0063#, 16#0065#,
16#0053#, 16#0070#, 16#0065#, 16#0063#,
16#0069#, 16#0066#, 16#0069#, 16#0063#,
16#0061#, 16#0074#, 16#0069#, 16#006F#,
16#006E#, 16#0020#, 16#006F#, 16#006E#,
16#0020#, 16#004C#, 16#0020#, 16#0069#,
16#0073#, 16#0020#, 16#0063#, 16#006F#,
16#006E#, 16#0073#, 16#0069#, 16#0064#,
16#0065#, 16#0072#, 16#0065#, 16#0064#,
16#0020#, 16#0061#, 16#006E#, 16#0020#,
16#0061#, 16#0063#, 16#0074#, 16#0075#,
16#0061#, 16#006C#, 16#0047#, 16#0061#,
16#0074#, 16#0065#, 16#0020#, 16#0074#,
16#0068#, 16#0061#, 16#0074#, 16#0020#,
16#006D#, 16#0075#, 16#0073#, 16#0074#,
16#0020#, 16#0062#, 16#0065#, 16#0020#,
16#006D#, 16#0061#, 16#0074#, 16#0063#,
16#0068#, 16#0065#, 16#0064#, 16#0020#,
16#0062#, 16#0079#, 16#0020#, 16#0061#,
16#0020#, 16#0066#, 16#006F#, 16#0072#,
16#006D#, 16#0061#, 16#006C#, 16#0047#,
16#0061#, 16#0074#, 16#0065#, 16#0020#,
16#006F#, 16#0066#, 16#0020#, 16#0044#,
others => 16#0000#),
others => <>);
-- "nestedNode"
MS_080B : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 15,
Unused => 10,
Length => 10,
Value =>
(16#006E#, 16#0065#, 16#0073#, 16#0074#,
16#0065#, 16#0064#, 16#004E#, 16#006F#,
16#0064#, 16#0065#,
others => 16#0000#),
others => <>);
-- "The Operations defined for the Artifact. The association is a specialization of the ownedMember association."
MS_080C : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 111,
Unused => 108,
Length => 108,
Value =>
(16#0054#, 16#0068#, 16#0065#, 16#0020#,
16#004F#, 16#0070#, 16#0065#, 16#0072#,
16#0061#, 16#0074#, 16#0069#, 16#006F#,
16#006E#, 16#0073#, 16#0020#, 16#0064#,
16#0065#, 16#0066#, 16#0069#, 16#006E#,
16#0065#, 16#0064#, 16#0020#, 16#0066#,
16#006F#, 16#0072#, 16#0020#, 16#0074#,
16#0068#, 16#0065#, 16#0020#, 16#0041#,
16#0072#, 16#0074#, 16#0069#, 16#0066#,
16#0061#, 16#0063#, 16#0074#, 16#002E#,
16#0020#, 16#0054#, 16#0068#, 16#0065#,
16#0020#, 16#0061#, 16#0073#, 16#0073#,
16#006F#, 16#0063#, 16#0069#, 16#0061#,
16#0074#, 16#0069#, 16#006F#, 16#006E#,
16#0020#, 16#0069#, 16#0073#, 16#0020#,
16#0061#, 16#0020#, 16#0073#, 16#0070#,
16#0065#, 16#0063#, 16#0069#, 16#0061#,
16#006C#, 16#0069#, 16#007A#, 16#0061#,
16#0074#, 16#0069#, 16#006F#, 16#006E#,
16#0020#, 16#006F#, 16#0066#, 16#0020#,
16#0074#, 16#0068#, 16#0065#, 16#0020#,
16#006F#, 16#0077#, 16#006E#, 16#0065#,
16#0064#, 16#004D#, 16#0065#, 16#006D#,
16#0062#, 16#0065#, 16#0072#, 16#0020#,
16#0061#, 16#0073#, 16#0073#, 16#006F#,
16#0063#, 16#0069#, 16#0061#, 16#0074#,
16#0069#, 16#006F#, 16#006E#, 16#002E#,
others => 16#0000#),
others => <>);
-- "Refers to the ValueSpecification denoting the minimum value of the range."
MS_080D : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 79,
Unused => 73,
Length => 73,
Value =>
(16#0052#, 16#0065#, 16#0066#, 16#0065#,
16#0072#, 16#0073#, 16#0020#, 16#0074#,
16#006F#, 16#0020#, 16#0074#, 16#0068#,
16#0065#, 16#0020#, 16#0056#, 16#0061#,
16#006C#, 16#0075#, 16#0065#, 16#0053#,
16#0070#, 16#0065#, 16#0063#, 16#0069#,
16#0066#, 16#0069#, 16#0063#, 16#0061#,
16#0074#, 16#0069#, 16#006F#, 16#006E#,
16#0020#, 16#0064#, 16#0065#, 16#006E#,
16#006F#, 16#0074#, 16#0069#, 16#006E#,
16#0067#, 16#0020#, 16#0074#, 16#0068#,
16#0065#, 16#0020#, 16#006D#, 16#0069#,
16#006E#, 16#0069#, 16#006D#, 16#0075#,
16#006D#, 16#0020#, 16#0076#, 16#0061#,
16#006C#, 16#0075#, 16#0065#, 16#0020#,
16#006F#, 16#0066#, 16#0020#, 16#0074#,
16#0068#, 16#0065#, 16#0020#, 16#0072#,
16#0061#, 16#006E#, 16#0067#, 16#0065#,
16#002E#,
others => 16#0000#),
others => <>);
-- "intervalConstraint"
MS_080E : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 23,
Unused => 18,
Length => 18,
Value =>
(16#0069#, 16#006E#, 16#0074#, 16#0065#,
16#0072#, 16#0076#, 16#0061#, 16#006C#,
16#0043#, 16#006F#, 16#006E#, 16#0073#,
16#0074#, 16#0072#, 16#0061#, 16#0069#,
16#006E#, 16#0074#,
others => 16#0000#),
others => <>);
-- "transitions_outgoing"
MS_080F : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 23,
Unused => 20,
Length => 20,
Value =>
(16#0074#, 16#0072#, 16#0061#, 16#006E#,
16#0073#, 16#0069#, 16#0074#, 16#0069#,
16#006F#, 16#006E#, 16#0073#, 16#005F#,
16#006F#, 16#0075#, 16#0074#, 16#0067#,
16#006F#, 16#0069#, 16#006E#, 16#0067#,
others => 16#0000#),
others => <>);
-- "A_selection_objectFlow"
MS_0810 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 23,
Unused => 22,
Length => 22,
Value =>
(16#0041#, 16#005F#, 16#0073#, 16#0065#,
16#006C#, 16#0065#, 16#0063#, 16#0074#,
16#0069#, 16#006F#, 16#006E#, 16#005F#,
16#006F#, 16#0062#, 16#006A#, 16#0065#,
16#0063#, 16#0074#, 16#0046#, 16#006C#,
16#006F#, 16#0077#,
others => 16#0000#),
others => <>);
-- "The element that owns this template signature."
MS_0811 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 47,
Unused => 46,
Length => 46,
Value =>
(16#0054#, 16#0068#, 16#0065#, 16#0020#,
16#0065#, 16#006C#, 16#0065#, 16#006D#,
16#0065#, 16#006E#, 16#0074#, 16#0020#,
16#0074#, 16#0068#, 16#0061#, 16#0074#,
16#0020#, 16#006F#, 16#0077#, 16#006E#,
16#0073#, 16#0020#, 16#0074#, 16#0068#,
16#0069#, 16#0073#, 16#0020#, 16#0074#,
16#0065#, 16#006D#, 16#0070#, 16#006C#,
16#0061#, 16#0074#, 16#0065#, 16#0020#,
16#0073#, 16#0069#, 16#0067#, 16#006E#,
16#0061#, 16#0074#, 16#0075#, 16#0072#,
16#0065#, 16#002E#,
others => 16#0000#),
others => <>);
-- "ignore"
MS_0812 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 7,
Unused => 6,
Length => 6,
Value =>
(16#0069#, 16#0067#, 16#006E#, 16#006F#,
16#0072#, 16#0065#,
others => 16#0000#),
others => <>);
-- "Gives the input pin from which the link object is obtained."
MS_0813 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 63,
Unused => 59,
Length => 59,
Value =>
(16#0047#, 16#0069#, 16#0076#, 16#0065#,
16#0073#, 16#0020#, 16#0074#, 16#0068#,
16#0065#, 16#0020#, 16#0069#, 16#006E#,
16#0070#, 16#0075#, 16#0074#, 16#0020#,
16#0070#, 16#0069#, 16#006E#, 16#0020#,
16#0066#, 16#0072#, 16#006F#, 16#006D#,
16#0020#, 16#0077#, 16#0068#, 16#0069#,
16#0063#, 16#0068#, 16#0020#, 16#0074#,
16#0068#, 16#0065#, 16#0020#, 16#006C#,
16#0069#, 16#006E#, 16#006B#, 16#0020#,
16#006F#, 16#0062#, 16#006A#, 16#0065#,
16#0063#, 16#0074#, 16#0020#, 16#0069#,
16#0073#, 16#0020#, 16#006F#, 16#0062#,
16#0074#, 16#0061#, 16#0069#, 16#006E#,
16#0065#, 16#0064#, 16#002E#,
others => 16#0000#),
others => <>);
-- "isIndirectlyInstantiated : Boolean {default = true} The kind of instantiation that applies to a Component. If false, the component is instantiated as an addressable object. If true, the Component is defined at design-time, but at run-time (or execution-time) an object specified by the Component does not exist, that is, the component is instantiated indirectly, through the instantiation of its realizing classifiers or parts. Several standard stereotypes use this meta attribute (e.g., «specification», «focus», «subsystem»)."
MS_0814 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 543,
Unused => 527,
Length => 527,
Value =>
(16#0069#, 16#0073#, 16#0049#, 16#006E#,
16#0064#, 16#0069#, 16#0072#, 16#0065#,
16#0063#, 16#0074#, 16#006C#, 16#0079#,
16#0049#, 16#006E#, 16#0073#, 16#0074#,
16#0061#, 16#006E#, 16#0074#, 16#0069#,
16#0061#, 16#0074#, 16#0065#, 16#0064#,
16#0020#, 16#003A#, 16#0020#, 16#0042#,
16#006F#, 16#006F#, 16#006C#, 16#0065#,
16#0061#, 16#006E#, 16#0020#, 16#007B#,
16#0064#, 16#0065#, 16#0066#, 16#0061#,
16#0075#, 16#006C#, 16#0074#, 16#0020#,
16#003D#, 16#0020#, 16#0074#, 16#0072#,
16#0075#, 16#0065#, 16#007D#, 16#0020#,
16#0054#, 16#0068#, 16#0065#, 16#0020#,
16#006B#, 16#0069#, 16#006E#, 16#0064#,
16#0020#, 16#006F#, 16#0066#, 16#0020#,
16#0069#, 16#006E#, 16#0073#, 16#0074#,
16#0061#, 16#006E#, 16#0074#, 16#0069#,
16#0061#, 16#0074#, 16#0069#, 16#006F#,
16#006E#, 16#0020#, 16#0074#, 16#0068#,
16#0061#, 16#0074#, 16#0020#, 16#0061#,
16#0070#, 16#0070#, 16#006C#, 16#0069#,
16#0065#, 16#0073#, 16#0020#, 16#0074#,
16#006F#, 16#0020#, 16#0061#, 16#0020#,
16#0043#, 16#006F#, 16#006D#, 16#0070#,
16#006F#, 16#006E#, 16#0065#, 16#006E#,
16#0074#, 16#002E#, 16#0020#, 16#0049#,
16#0066#, 16#0020#, 16#0066#, 16#0061#,
16#006C#, 16#0073#, 16#0065#, 16#002C#,
16#0020#, 16#0074#, 16#0068#, 16#0065#,
16#0020#, 16#0063#, 16#006F#, 16#006D#,
16#0070#, 16#006F#, 16#006E#, 16#0065#,
16#006E#, 16#0074#, 16#0020#, 16#0069#,
16#0073#, 16#0020#, 16#0069#, 16#006E#,
16#0073#, 16#0074#, 16#0061#, 16#006E#,
16#0074#, 16#0069#, 16#0061#, 16#0074#,
16#0065#, 16#0064#, 16#0020#, 16#0061#,
16#0073#, 16#0020#, 16#0061#, 16#006E#,
16#0020#, 16#0061#, 16#0064#, 16#0064#,
16#0072#, 16#0065#, 16#0073#, 16#0073#,
16#0061#, 16#0062#, 16#006C#, 16#0065#,
16#0020#, 16#006F#, 16#0062#, 16#006A#,
16#0065#, 16#0063#, 16#0074#, 16#002E#,
16#0020#, 16#0049#, 16#0066#, 16#0020#,
16#0074#, 16#0072#, 16#0075#, 16#0065#,
16#002C#, 16#0020#, 16#0074#, 16#0068#,
16#0065#, 16#0020#, 16#0043#, 16#006F#,
16#006D#, 16#0070#, 16#006F#, 16#006E#,
16#0065#, 16#006E#, 16#0074#, 16#0020#,
16#0069#, 16#0073#, 16#0020#, 16#0064#,
16#0065#, 16#0066#, 16#0069#, 16#006E#,
16#0065#, 16#0064#, 16#0020#, 16#0061#,
16#0074#, 16#0020#, 16#0064#, 16#0065#,
16#0073#, 16#0069#, 16#0067#, 16#006E#,
16#002D#, 16#0074#, 16#0069#, 16#006D#,
16#0065#, 16#002C#, 16#0020#, 16#0062#,
16#0075#, 16#0074#, 16#0020#, 16#0061#,
16#0074#, 16#0020#, 16#0072#, 16#0075#,
16#006E#, 16#002D#, 16#0074#, 16#0069#,
16#006D#, 16#0065#, 16#0020#, 16#0028#,
16#006F#, 16#0072#, 16#0020#, 16#0065#,
16#0078#, 16#0065#, 16#0063#, 16#0075#,
16#0074#, 16#0069#, 16#006F#, 16#006E#,
16#002D#, 16#0074#, 16#0069#, 16#006D#,
16#0065#, 16#0029#, 16#0020#, 16#0061#,
16#006E#, 16#0020#, 16#006F#, 16#0062#,
16#006A#, 16#0065#, 16#0063#, 16#0074#,
16#0020#, 16#0073#, 16#0070#, 16#0065#,
16#0063#, 16#0069#, 16#0066#, 16#0069#,
16#0065#, 16#0064#, 16#0020#, 16#0062#,
16#0079#, 16#0020#, 16#0074#, 16#0068#,
16#0065#, 16#0020#, 16#0043#, 16#006F#,
16#006D#, 16#0070#, 16#006F#, 16#006E#,
16#0065#, 16#006E#, 16#0074#, 16#0020#,
16#0064#, 16#006F#, 16#0065#, 16#0073#,
16#0020#, 16#006E#, 16#006F#, 16#0074#,
16#0020#, 16#0065#, 16#0078#, 16#0069#,
16#0073#, 16#0074#, 16#002C#, 16#0020#,
16#0074#, 16#0068#, 16#0061#, 16#0074#,
16#0020#, 16#0069#, 16#0073#, 16#002C#,
16#0020#, 16#0074#, 16#0068#, 16#0065#,
16#0020#, 16#0063#, 16#006F#, 16#006D#,
16#0070#, 16#006F#, 16#006E#, 16#0065#,
16#006E#, 16#0074#, 16#0020#, 16#0069#,
16#0073#, 16#0020#, 16#0069#, 16#006E#,
16#0073#, 16#0074#, 16#0061#, 16#006E#,
16#0074#, 16#0069#, 16#0061#, 16#0074#,
16#0065#, 16#0064#, 16#0020#, 16#0069#,
16#006E#, 16#0064#, 16#0069#, 16#0072#,
16#0065#, 16#0063#, 16#0074#, 16#006C#,
16#0079#, 16#002C#, 16#0020#, 16#0074#,
16#0068#, 16#0072#, 16#006F#, 16#0075#,
16#0067#, 16#0068#, 16#0020#, 16#0074#,
16#0068#, 16#0065#, 16#0020#, 16#0069#,
16#006E#, 16#0073#, 16#0074#, 16#0061#,
16#006E#, 16#0074#, 16#0069#, 16#0061#,
16#0074#, 16#0069#, 16#006F#, 16#006E#,
16#0020#, 16#006F#, 16#0066#, 16#0020#,
16#0069#, 16#0074#, 16#0073#, 16#0020#,
16#0072#, 16#0065#, 16#0061#, 16#006C#,
16#0069#, 16#007A#, 16#0069#, 16#006E#,
16#0067#, 16#0020#, 16#0063#, 16#006C#,
16#0061#, 16#0073#, 16#0073#, 16#0069#,
16#0066#, 16#0069#, 16#0065#, 16#0072#,
16#0073#, 16#0020#, 16#006F#, 16#0072#,
16#0020#, 16#0070#, 16#0061#, 16#0072#,
16#0074#, 16#0073#, 16#002E#, 16#0020#,
16#0053#, 16#0065#, 16#0076#, 16#0065#,
16#0072#, 16#0061#, 16#006C#, 16#0020#,
16#0073#, 16#0074#, 16#0061#, 16#006E#,
16#0064#, 16#0061#, 16#0072#, 16#0064#,
16#0020#, 16#0073#, 16#0074#, 16#0065#,
16#0072#, 16#0065#, 16#006F#, 16#0074#,
16#0079#, 16#0070#, 16#0065#, 16#0073#,
16#0020#, 16#0075#, 16#0073#, 16#0065#,
16#0020#, 16#0074#, 16#0068#, 16#0069#,
16#0073#, 16#0020#, 16#006D#, 16#0065#,
16#0074#, 16#0061#, 16#0020#, 16#0061#,
16#0074#, 16#0074#, 16#0072#, 16#0069#,
16#0062#, 16#0075#, 16#0074#, 16#0065#,
16#0020#, 16#0028#, 16#0065#, 16#002E#,
16#0067#, 16#002E#, 16#002C#, 16#0020#,
16#00AB#, 16#0073#, 16#0070#, 16#0065#,
16#0063#, 16#0069#, 16#0066#, 16#0069#,
16#0063#, 16#0061#, 16#0074#, 16#0069#,
16#006F#, 16#006E#, 16#00BB#, 16#002C#,
16#0020#, 16#00AB#, 16#0066#, 16#006F#,
16#0063#, 16#0075#, 16#0073#, 16#00BB#,
16#002C#, 16#0020#, 16#00AB#, 16#0073#,
16#0075#, 16#0062#, 16#0073#, 16#0079#,
16#0073#, 16#0074#, 16#0065#, 16#006D#,
16#00BB#, 16#0029#, 16#002E#,
others => 16#0000#),
others => <>);
-- "The query inherit() defines how to inherit a set of elements. Here the operation is defined to inherit them all. It is intended to be redefined in circumstances where inheritance is affected by redefinition."
MS_0815 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 215,
Unused => 207,
Length => 207,
Value =>
(16#0054#, 16#0068#, 16#0065#, 16#0020#,
16#0071#, 16#0075#, 16#0065#, 16#0072#,
16#0079#, 16#0020#, 16#0069#, 16#006E#,
16#0068#, 16#0065#, 16#0072#, 16#0069#,
16#0074#, 16#0028#, 16#0029#, 16#0020#,
16#0064#, 16#0065#, 16#0066#, 16#0069#,
16#006E#, 16#0065#, 16#0073#, 16#0020#,
16#0068#, 16#006F#, 16#0077#, 16#0020#,
16#0074#, 16#006F#, 16#0020#, 16#0069#,
16#006E#, 16#0068#, 16#0065#, 16#0072#,
16#0069#, 16#0074#, 16#0020#, 16#0061#,
16#0020#, 16#0073#, 16#0065#, 16#0074#,
16#0020#, 16#006F#, 16#0066#, 16#0020#,
16#0065#, 16#006C#, 16#0065#, 16#006D#,
16#0065#, 16#006E#, 16#0074#, 16#0073#,
16#002E#, 16#0020#, 16#0048#, 16#0065#,
16#0072#, 16#0065#, 16#0020#, 16#0074#,
16#0068#, 16#0065#, 16#0020#, 16#006F#,
16#0070#, 16#0065#, 16#0072#, 16#0061#,
16#0074#, 16#0069#, 16#006F#, 16#006E#,
16#0020#, 16#0069#, 16#0073#, 16#0020#,
16#0064#, 16#0065#, 16#0066#, 16#0069#,
16#006E#, 16#0065#, 16#0064#, 16#0020#,
16#0074#, 16#006F#, 16#0020#, 16#0069#,
16#006E#, 16#0068#, 16#0065#, 16#0072#,
16#0069#, 16#0074#, 16#0020#, 16#0074#,
16#0068#, 16#0065#, 16#006D#, 16#0020#,
16#0061#, 16#006C#, 16#006C#, 16#002E#,
16#0020#, 16#0049#, 16#0074#, 16#0020#,
16#0069#, 16#0073#, 16#0020#, 16#0069#,
16#006E#, 16#0074#, 16#0065#, 16#006E#,
16#0064#, 16#0065#, 16#0064#, 16#0020#,
16#0074#, 16#006F#, 16#0020#, 16#0062#,
16#0065#, 16#0020#, 16#0072#, 16#0065#,
16#0064#, 16#0065#, 16#0066#, 16#0069#,
16#006E#, 16#0065#, 16#0064#, 16#0020#,
16#0069#, 16#006E#, 16#0020#, 16#0063#,
16#0069#, 16#0072#, 16#0063#, 16#0075#,
16#006D#, 16#0073#, 16#0074#, 16#0061#,
16#006E#, 16#0063#, 16#0065#, 16#0073#,
16#0020#, 16#0077#, 16#0068#, 16#0065#,
16#0072#, 16#0065#, 16#0020#, 16#0069#,
16#006E#, 16#0068#, 16#0065#, 16#0072#,
16#0069#, 16#0074#, 16#0061#, 16#006E#,
16#0063#, 16#0065#, 16#0020#, 16#0069#,
16#0073#, 16#0020#, 16#0061#, 16#0066#,
16#0066#, 16#0065#, 16#0063#, 16#0074#,
16#0065#, 16#0064#, 16#0020#, 16#0062#,
16#0079#, 16#0020#, 16#0072#, 16#0065#,
16#0064#, 16#0065#, 16#0066#, 16#0069#,
16#006E#, 16#0069#, 16#0074#, 16#0069#,
16#006F#, 16#006E#, 16#002E#,
others => 16#0000#),
others => <>);
-- "el"
MS_0816 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 7,
Unused => 2,
Length => 2,
Value =>
(16#0065#, 16#006C#,
others => 16#0000#),
others => <>);
-- "An optional set of Constraints specifying what must be fulfilled when the behavior is invoked."
MS_0817 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 103,
Unused => 94,
Length => 94,
Value =>
(16#0041#, 16#006E#, 16#0020#, 16#006F#,
16#0070#, 16#0074#, 16#0069#, 16#006F#,
16#006E#, 16#0061#, 16#006C#, 16#0020#,
16#0073#, 16#0065#, 16#0074#, 16#0020#,
16#006F#, 16#0066#, 16#0020#, 16#0043#,
16#006F#, 16#006E#, 16#0073#, 16#0074#,
16#0072#, 16#0061#, 16#0069#, 16#006E#,
16#0074#, 16#0073#, 16#0020#, 16#0073#,
16#0070#, 16#0065#, 16#0063#, 16#0069#,
16#0066#, 16#0079#, 16#0069#, 16#006E#,
16#0067#, 16#0020#, 16#0077#, 16#0068#,
16#0061#, 16#0074#, 16#0020#, 16#006D#,
16#0075#, 16#0073#, 16#0074#, 16#0020#,
16#0062#, 16#0065#, 16#0020#, 16#0066#,
16#0075#, 16#006C#, 16#0066#, 16#0069#,
16#006C#, 16#006C#, 16#0065#, 16#0064#,
16#0020#, 16#0077#, 16#0068#, 16#0065#,
16#006E#, 16#0020#, 16#0074#, 16#0068#,
16#0065#, 16#0020#, 16#0062#, 16#0065#,
16#0068#, 16#0061#, 16#0076#, 16#0069#,
16#006F#, 16#0072#, 16#0020#, 16#0069#,
16#0073#, 16#0020#, 16#0069#, 16#006E#,
16#0076#, 16#006F#, 16#006B#, 16#0065#,
16#0064#, 16#002E#,
others => 16#0000#),
others => <>);
-- "A_exception_raiseExceptionAction"
MS_0818 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 39,
Unused => 32,
Length => 32,
Value =>
(16#0041#, 16#005F#, 16#0065#, 16#0078#,
16#0063#, 16#0065#, 16#0070#, 16#0074#,
16#0069#, 16#006F#, 16#006E#, 16#005F#,
16#0072#, 16#0061#, 16#0069#, 16#0073#,
16#0065#, 16#0045#, 16#0078#, 16#0063#,
16#0065#, 16#0070#, 16#0074#, 16#0069#,
16#006F#, 16#006E#, 16#0041#, 16#0063#,
16#0074#, 16#0069#, 16#006F#, 16#006E#,
others => 16#0000#),
others => <>);
-- "Subsetting may only occur when the context of the subsetting property conforms to the context of the subsetted property."
MS_0819 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 127,
Unused => 120,
Length => 120,
Value =>
(16#0053#, 16#0075#, 16#0062#, 16#0073#,
16#0065#, 16#0074#, 16#0074#, 16#0069#,
16#006E#, 16#0067#, 16#0020#, 16#006D#,
16#0061#, 16#0079#, 16#0020#, 16#006F#,
16#006E#, 16#006C#, 16#0079#, 16#0020#,
16#006F#, 16#0063#, 16#0063#, 16#0075#,
16#0072#, 16#0020#, 16#0077#, 16#0068#,
16#0065#, 16#006E#, 16#0020#, 16#0074#,
16#0068#, 16#0065#, 16#0020#, 16#0063#,
16#006F#, 16#006E#, 16#0074#, 16#0065#,
16#0078#, 16#0074#, 16#0020#, 16#006F#,
16#0066#, 16#0020#, 16#0074#, 16#0068#,
16#0065#, 16#0020#, 16#0073#, 16#0075#,
16#0062#, 16#0073#, 16#0065#, 16#0074#,
16#0074#, 16#0069#, 16#006E#, 16#0067#,
16#0020#, 16#0070#, 16#0072#, 16#006F#,
16#0070#, 16#0065#, 16#0072#, 16#0074#,
16#0079#, 16#0020#, 16#0063#, 16#006F#,
16#006E#, 16#0066#, 16#006F#, 16#0072#,
16#006D#, 16#0073#, 16#0020#, 16#0074#,
16#006F#, 16#0020#, 16#0074#, 16#0068#,
16#0065#, 16#0020#, 16#0063#, 16#006F#,
16#006E#, 16#0074#, 16#0065#, 16#0078#,
16#0074#, 16#0020#, 16#006F#, 16#0066#,
16#0020#, 16#0074#, 16#0068#, 16#0065#,
16#0020#, 16#0073#, 16#0075#, 16#0062#,
16#0073#, 16#0065#, 16#0074#, 16#0074#,
16#0065#, 16#0064#, 16#0020#, 16#0070#,
16#0072#, 16#006F#, 16#0070#, 16#0065#,
16#0072#, 16#0074#, 16#0079#, 16#002E#,
others => 16#0000#),
others => <>);
-- "An InstanceSpecification can be a DeployedArtifact if it is the instance specification of an Artifact."
MS_081A : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 111,
Unused => 102,
Length => 102,
Value =>
(16#0041#, 16#006E#, 16#0020#, 16#0049#,
16#006E#, 16#0073#, 16#0074#, 16#0061#,
16#006E#, 16#0063#, 16#0065#, 16#0053#,
16#0070#, 16#0065#, 16#0063#, 16#0069#,
16#0066#, 16#0069#, 16#0063#, 16#0061#,
16#0074#, 16#0069#, 16#006F#, 16#006E#,
16#0020#, 16#0063#, 16#0061#, 16#006E#,
16#0020#, 16#0062#, 16#0065#, 16#0020#,
16#0061#, 16#0020#, 16#0044#, 16#0065#,
16#0070#, 16#006C#, 16#006F#, 16#0079#,
16#0065#, 16#0064#, 16#0041#, 16#0072#,
16#0074#, 16#0069#, 16#0066#, 16#0061#,
16#0063#, 16#0074#, 16#0020#, 16#0069#,
16#0066#, 16#0020#, 16#0069#, 16#0074#,
16#0020#, 16#0069#, 16#0073#, 16#0020#,
16#0074#, 16#0068#, 16#0065#, 16#0020#,
16#0069#, 16#006E#, 16#0073#, 16#0074#,
16#0061#, 16#006E#, 16#0063#, 16#0065#,
16#0020#, 16#0073#, 16#0070#, 16#0065#,
16#0063#, 16#0069#, 16#0066#, 16#0069#,
16#0063#, 16#0061#, 16#0074#, 16#0069#,
16#006F#, 16#006E#, 16#0020#, 16#006F#,
16#0066#, 16#0020#, 16#0061#, 16#006E#,
16#0020#, 16#0041#, 16#0072#, 16#0074#,
16#0069#, 16#0066#, 16#0061#, 16#0063#,
16#0074#, 16#002E#,
others => 16#0000#),
others => <>);
-- "References the Receiving of the Message"
MS_081B : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 47,
Unused => 39,
Length => 39,
Value =>
(16#0052#, 16#0065#, 16#0066#, 16#0065#,
16#0072#, 16#0065#, 16#006E#, 16#0063#,
16#0065#, 16#0073#, 16#0020#, 16#0074#,
16#0068#, 16#0065#, 16#0020#, 16#0052#,
16#0065#, 16#0063#, 16#0065#, 16#0069#,
16#0076#, 16#0069#, 16#006E#, 16#0067#,
16#0020#, 16#006F#, 16#0066#, 16#0020#,
16#0074#, 16#0068#, 16#0065#, 16#0020#,
16#004D#, 16#0065#, 16#0073#, 16#0073#,
16#0061#, 16#0067#, 16#0065#,
others => 16#0000#),
others => <>);
-- "state_is_local"
MS_081C : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 15,
Unused => 14,
Length => 14,
Value =>
(16#0073#, 16#0074#, 16#0061#, 16#0074#,
16#0065#, 16#005F#, 16#0069#, 16#0073#,
16#005F#, 16#006C#, 16#006F#, 16#0063#,
16#0061#, 16#006C#,
others => 16#0000#),
others => <>);
-- "isMultivalued"
MS_081D : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 15,
Unused => 13,
Length => 13,
Value =>
(16#0069#, 16#0073#, 16#004D#, 16#0075#,
16#006C#, 16#0074#, 16#0069#, 16#0076#,
16#0061#, 16#006C#, 16#0075#, 16#0065#,
16#0064#,
others => 16#0000#),
others => <>);
-- "owningSlot"
MS_081E : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 15,
Unused => 10,
Length => 10,
Value =>
(16#006F#, 16#0077#, 16#006E#, 16#0069#,
16#006E#, 16#0067#, 16#0053#, 16#006C#,
16#006F#, 16#0074#,
others => 16#0000#),
others => <>);
-- "A_default_templateParameter"
MS_081F : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 31,
Unused => 27,
Length => 27,
Value =>
(16#0041#, 16#005F#, 16#0064#, 16#0065#,
16#0066#, 16#0061#, 16#0075#, 16#006C#,
16#0074#, 16#005F#, 16#0074#, 16#0065#,
16#006D#, 16#0070#, 16#006C#, 16#0061#,
16#0074#, 16#0065#, 16#0050#, 16#0061#,
16#0072#, 16#0061#, 16#006D#, 16#0065#,
16#0074#, 16#0065#, 16#0072#,
others => 16#0000#),
others => <>);
-- "isCompatibleWith"
MS_0820 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 23,
Unused => 16,
Length => 16,
Value =>
(16#0069#, 16#0073#, 16#0043#, 16#006F#,
16#006D#, 16#0070#, 16#0061#, 16#0074#,
16#0069#, 16#0062#, 16#006C#, 16#0065#,
16#0057#, 16#0069#, 16#0074#, 16#0068#,
others => 16#0000#),
others => <>);
-- "multiplicity_of_object"
MS_0821 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 23,
Unused => 22,
Length => 22,
Value =>
(16#006D#, 16#0075#, 16#006C#, 16#0074#,
16#0069#, 16#0070#, 16#006C#, 16#0069#,
16#0063#, 16#0069#, 16#0074#, 16#0079#,
16#005F#, 16#006F#, 16#0066#, 16#005F#,
16#006F#, 16#0062#, 16#006A#, 16#0065#,
16#0063#, 16#0074#,
others => 16#0000#),
others => <>);
-- "only_body_for_query"
MS_0822 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 23,
Unused => 19,
Length => 19,
Value =>
(16#006F#, 16#006E#, 16#006C#, 16#0079#,
16#005F#, 16#0062#, 16#006F#, 16#0064#,
16#0079#, 16#005F#, 16#0066#, 16#006F#,
16#0072#, 16#005F#, 16#0071#, 16#0075#,
16#0065#, 16#0072#, 16#0079#,
others => 16#0000#),
others => <>);
-- "maps_to_generalization_set"
MS_0823 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 31,
Unused => 26,
Length => 26,
Value =>
(16#006D#, 16#0061#, 16#0070#, 16#0073#,
16#005F#, 16#0074#, 16#006F#, 16#005F#,
16#0067#, 16#0065#, 16#006E#, 16#0065#,
16#0072#, 16#0061#, 16#006C#, 16#0069#,
16#007A#, 16#0061#, 16#0074#, 16#0069#,
16#006F#, 16#006E#, 16#005F#, 16#0073#,
16#0065#, 16#0074#,
others => 16#0000#),
others => <>);
-- "false"
MS_0824 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 7,
Unused => 5,
Length => 5,
Value =>
(16#0066#, 16#0061#, 16#006C#, 16#0073#,
16#0065#,
others => 16#0000#),
others => <>);
-- "cannot_be_defined"
MS_0825 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 23,
Unused => 17,
Length => 17,
Value =>
(16#0063#, 16#0061#, 16#006E#, 16#006E#,
16#006F#, 16#0074#, 16#005F#, 16#0062#,
16#0065#, 16#005F#, 16#0064#, 16#0065#,
16#0066#, 16#0069#, 16#006E#, 16#0065#,
16#0064#,
others => 16#0000#),
others => <>);
-- "If a non-literal ValueSpecification is used for the lower or upper bound, then that specification must be a constant expression."
MS_0826 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 135,
Unused => 128,
Length => 128,
Value =>
(16#0049#, 16#0066#, 16#0020#, 16#0061#,
16#0020#, 16#006E#, 16#006F#, 16#006E#,
16#002D#, 16#006C#, 16#0069#, 16#0074#,
16#0065#, 16#0072#, 16#0061#, 16#006C#,
16#0020#, 16#0056#, 16#0061#, 16#006C#,
16#0075#, 16#0065#, 16#0053#, 16#0070#,
16#0065#, 16#0063#, 16#0069#, 16#0066#,
16#0069#, 16#0063#, 16#0061#, 16#0074#,
16#0069#, 16#006F#, 16#006E#, 16#0020#,
16#0069#, 16#0073#, 16#0020#, 16#0075#,
16#0073#, 16#0065#, 16#0064#, 16#0020#,
16#0066#, 16#006F#, 16#0072#, 16#0020#,
16#0074#, 16#0068#, 16#0065#, 16#0020#,
16#006C#, 16#006F#, 16#0077#, 16#0065#,
16#0072#, 16#0020#, 16#006F#, 16#0072#,
16#0020#, 16#0075#, 16#0070#, 16#0070#,
16#0065#, 16#0072#, 16#0020#, 16#0062#,
16#006F#, 16#0075#, 16#006E#, 16#0064#,
16#002C#, 16#0020#, 16#0074#, 16#0068#,
16#0065#, 16#006E#, 16#0020#, 16#0074#,
16#0068#, 16#0061#, 16#0074#, 16#0020#,
16#0073#, 16#0070#, 16#0065#, 16#0063#,
16#0069#, 16#0066#, 16#0069#, 16#0063#,
16#0061#, 16#0074#, 16#0069#, 16#006F#,
16#006E#, 16#0020#, 16#006D#, 16#0075#,
16#0073#, 16#0074#, 16#0020#, 16#0062#,
16#0065#, 16#0020#, 16#0061#, 16#0020#,
16#0063#, 16#006F#, 16#006E#, 16#0073#,
16#0074#, 16#0061#, 16#006E#, 16#0074#,
16#0020#, 16#0065#, 16#0078#, 16#0070#,
16#0072#, 16#0065#, 16#0073#, 16#0073#,
16#0069#, 16#006F#, 16#006E#, 16#002E#,
others => 16#0000#),
others => <>);
-- "References the interfaces specifying the set of operations and receptions that the classifier expects its environment to handle via this port. This association is derived according to the value of isConjugated. If isConjugated is false, required is derived as the union of the sets of interfaces used by the type of the port and its supertypes. If isConjugated is true, it is derived as the union of the sets of interfaces realized by the type of the port and its supertypes, or directly from the type of the port if the port is typed by an interface."
MS_0827 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 575,
Unused => 551,
Length => 551,
Value =>
(16#0052#, 16#0065#, 16#0066#, 16#0065#,
16#0072#, 16#0065#, 16#006E#, 16#0063#,
16#0065#, 16#0073#, 16#0020#, 16#0074#,
16#0068#, 16#0065#, 16#0020#, 16#0069#,
16#006E#, 16#0074#, 16#0065#, 16#0072#,
16#0066#, 16#0061#, 16#0063#, 16#0065#,
16#0073#, 16#0020#, 16#0073#, 16#0070#,
16#0065#, 16#0063#, 16#0069#, 16#0066#,
16#0079#, 16#0069#, 16#006E#, 16#0067#,
16#0020#, 16#0074#, 16#0068#, 16#0065#,
16#0020#, 16#0073#, 16#0065#, 16#0074#,
16#0020#, 16#006F#, 16#0066#, 16#0020#,
16#006F#, 16#0070#, 16#0065#, 16#0072#,
16#0061#, 16#0074#, 16#0069#, 16#006F#,
16#006E#, 16#0073#, 16#0020#, 16#0061#,
16#006E#, 16#0064#, 16#0020#, 16#0072#,
16#0065#, 16#0063#, 16#0065#, 16#0070#,
16#0074#, 16#0069#, 16#006F#, 16#006E#,
16#0073#, 16#0020#, 16#0074#, 16#0068#,
16#0061#, 16#0074#, 16#0020#, 16#0074#,
16#0068#, 16#0065#, 16#0020#, 16#0063#,
16#006C#, 16#0061#, 16#0073#, 16#0073#,
16#0069#, 16#0066#, 16#0069#, 16#0065#,
16#0072#, 16#0020#, 16#0065#, 16#0078#,
16#0070#, 16#0065#, 16#0063#, 16#0074#,
16#0073#, 16#0020#, 16#0069#, 16#0074#,
16#0073#, 16#0020#, 16#0065#, 16#006E#,
16#0076#, 16#0069#, 16#0072#, 16#006F#,
16#006E#, 16#006D#, 16#0065#, 16#006E#,
16#0074#, 16#0020#, 16#0074#, 16#006F#,
16#0020#, 16#0068#, 16#0061#, 16#006E#,
16#0064#, 16#006C#, 16#0065#, 16#0020#,
16#0076#, 16#0069#, 16#0061#, 16#0020#,
16#0074#, 16#0068#, 16#0069#, 16#0073#,
16#0020#, 16#0070#, 16#006F#, 16#0072#,
16#0074#, 16#002E#, 16#0020#, 16#0054#,
16#0068#, 16#0069#, 16#0073#, 16#0020#,
16#0061#, 16#0073#, 16#0073#, 16#006F#,
16#0063#, 16#0069#, 16#0061#, 16#0074#,
16#0069#, 16#006F#, 16#006E#, 16#0020#,
16#0069#, 16#0073#, 16#0020#, 16#0064#,
16#0065#, 16#0072#, 16#0069#, 16#0076#,
16#0065#, 16#0064#, 16#0020#, 16#0061#,
16#0063#, 16#0063#, 16#006F#, 16#0072#,
16#0064#, 16#0069#, 16#006E#, 16#0067#,
16#0020#, 16#0074#, 16#006F#, 16#0020#,
16#0074#, 16#0068#, 16#0065#, 16#0020#,
16#0076#, 16#0061#, 16#006C#, 16#0075#,
16#0065#, 16#0020#, 16#006F#, 16#0066#,
16#0020#, 16#0069#, 16#0073#, 16#0043#,
16#006F#, 16#006E#, 16#006A#, 16#0075#,
16#0067#, 16#0061#, 16#0074#, 16#0065#,
16#0064#, 16#002E#, 16#0020#, 16#0049#,
16#0066#, 16#0020#, 16#0069#, 16#0073#,
16#0043#, 16#006F#, 16#006E#, 16#006A#,
16#0075#, 16#0067#, 16#0061#, 16#0074#,
16#0065#, 16#0064#, 16#0020#, 16#0069#,
16#0073#, 16#0020#, 16#0066#, 16#0061#,
16#006C#, 16#0073#, 16#0065#, 16#002C#,
16#0020#, 16#0072#, 16#0065#, 16#0071#,
16#0075#, 16#0069#, 16#0072#, 16#0065#,
16#0064#, 16#0020#, 16#0069#, 16#0073#,
16#0020#, 16#0064#, 16#0065#, 16#0072#,
16#0069#, 16#0076#, 16#0065#, 16#0064#,
16#0020#, 16#0061#, 16#0073#, 16#0020#,
16#0074#, 16#0068#, 16#0065#, 16#0020#,
16#0075#, 16#006E#, 16#0069#, 16#006F#,
16#006E#, 16#0020#, 16#006F#, 16#0066#,
16#0020#, 16#0074#, 16#0068#, 16#0065#,
16#0020#, 16#0073#, 16#0065#, 16#0074#,
16#0073#, 16#0020#, 16#006F#, 16#0066#,
16#0020#, 16#0069#, 16#006E#, 16#0074#,
16#0065#, 16#0072#, 16#0066#, 16#0061#,
16#0063#, 16#0065#, 16#0073#, 16#0020#,
16#0075#, 16#0073#, 16#0065#, 16#0064#,
16#0020#, 16#0062#, 16#0079#, 16#0020#,
16#0074#, 16#0068#, 16#0065#, 16#0020#,
16#0074#, 16#0079#, 16#0070#, 16#0065#,
16#0020#, 16#006F#, 16#0066#, 16#0020#,
16#0074#, 16#0068#, 16#0065#, 16#0020#,
16#0070#, 16#006F#, 16#0072#, 16#0074#,
16#0020#, 16#0061#, 16#006E#, 16#0064#,
16#0020#, 16#0069#, 16#0074#, 16#0073#,
16#0020#, 16#0073#, 16#0075#, 16#0070#,
16#0065#, 16#0072#, 16#0074#, 16#0079#,
16#0070#, 16#0065#, 16#0073#, 16#002E#,
16#0020#, 16#0049#, 16#0066#, 16#0020#,
16#0069#, 16#0073#, 16#0043#, 16#006F#,
16#006E#, 16#006A#, 16#0075#, 16#0067#,
16#0061#, 16#0074#, 16#0065#, 16#0064#,
16#0020#, 16#0069#, 16#0073#, 16#0020#,
16#0074#, 16#0072#, 16#0075#, 16#0065#,
16#002C#, 16#0020#, 16#0069#, 16#0074#,
16#0020#, 16#0069#, 16#0073#, 16#0020#,
16#0064#, 16#0065#, 16#0072#, 16#0069#,
16#0076#, 16#0065#, 16#0064#, 16#0020#,
16#0061#, 16#0073#, 16#0020#, 16#0074#,
16#0068#, 16#0065#, 16#0020#, 16#0075#,
16#006E#, 16#0069#, 16#006F#, 16#006E#,
16#0020#, 16#006F#, 16#0066#, 16#0020#,
16#0074#, 16#0068#, 16#0065#, 16#0020#,
16#0073#, 16#0065#, 16#0074#, 16#0073#,
16#0020#, 16#006F#, 16#0066#, 16#0020#,
16#0069#, 16#006E#, 16#0074#, 16#0065#,
16#0072#, 16#0066#, 16#0061#, 16#0063#,
16#0065#, 16#0073#, 16#0020#, 16#0072#,
16#0065#, 16#0061#, 16#006C#, 16#0069#,
16#007A#, 16#0065#, 16#0064#, 16#0020#,
16#0062#, 16#0079#, 16#0020#, 16#0074#,
16#0068#, 16#0065#, 16#0020#, 16#0074#,
16#0079#, 16#0070#, 16#0065#, 16#0020#,
16#006F#, 16#0066#, 16#0020#, 16#0074#,
16#0068#, 16#0065#, 16#0020#, 16#0070#,
16#006F#, 16#0072#, 16#0074#, 16#0020#,
16#0061#, 16#006E#, 16#0064#, 16#0020#,
16#0069#, 16#0074#, 16#0073#, 16#0020#,
16#0073#, 16#0075#, 16#0070#, 16#0065#,
16#0072#, 16#0074#, 16#0079#, 16#0070#,
16#0065#, 16#0073#, 16#002C#, 16#0020#,
16#006F#, 16#0072#, 16#0020#, 16#0064#,
16#0069#, 16#0072#, 16#0065#, 16#0063#,
16#0074#, 16#006C#, 16#0079#, 16#0020#,
16#0066#, 16#0072#, 16#006F#, 16#006D#,
16#0020#, 16#0074#, 16#0068#, 16#0065#,
16#0020#, 16#0074#, 16#0079#, 16#0070#,
16#0065#, 16#0020#, 16#006F#, 16#0066#,
16#0020#, 16#0074#, 16#0068#, 16#0065#,
16#0020#, 16#0070#, 16#006F#, 16#0072#,
16#0074#, 16#0020#, 16#0069#, 16#0066#,
16#0020#, 16#0074#, 16#0068#, 16#0065#,
16#0020#, 16#0070#, 16#006F#, 16#0072#,
16#0074#, 16#0020#, 16#0069#, 16#0073#,
16#0020#, 16#0074#, 16#0079#, 16#0070#,
16#0065#, 16#0064#, 16#0020#, 16#0062#,
16#0079#, 16#0020#, 16#0061#, 16#006E#,
16#0020#, 16#0069#, 16#006E#, 16#0074#,
16#0065#, 16#0072#, 16#0066#, 16#0061#,
16#0063#, 16#0065#, 16#002E#,
others => 16#0000#),
others => <>);
-- "two_input_parameters"
MS_0828 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 23,
Unused => 20,
Length => 20,
Value =>
(16#0074#, 16#0077#, 16#006F#, 16#005F#,
16#0069#, 16#006E#, 16#0070#, 16#0075#,
16#0074#, 16#005F#, 16#0070#, 16#0061#,
16#0072#, 16#0061#, 16#006D#, 16#0065#,
16#0074#, 16#0065#, 16#0072#, 16#0073#,
others => 16#0000#),
others => <>);
-- "A_icon_stereotype"
MS_0829 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 23,
Unused => 17,
Length => 17,
Value =>
(16#0041#, 16#005F#, 16#0069#, 16#0063#,
16#006F#, 16#006E#, 16#005F#, 16#0073#,
16#0074#, 16#0065#, 16#0072#, 16#0065#,
16#006F#, 16#0074#, 16#0079#, 16#0070#,
16#0065#,
others => 16#0000#),
others => <>);
-- "The transition that is redefined by this transition."
MS_082A : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 55,
Unused => 52,
Length => 52,
Value =>
(16#0054#, 16#0068#, 16#0065#, 16#0020#,
16#0074#, 16#0072#, 16#0061#, 16#006E#,
16#0073#, 16#0069#, 16#0074#, 16#0069#,
16#006F#, 16#006E#, 16#0020#, 16#0074#,
16#0068#, 16#0061#, 16#0074#, 16#0020#,
16#0069#, 16#0073#, 16#0020#, 16#0072#,
16#0065#, 16#0064#, 16#0065#, 16#0066#,
16#0069#, 16#006E#, 16#0065#, 16#0064#,
16#0020#, 16#0062#, 16#0079#, 16#0020#,
16#0074#, 16#0068#, 16#0069#, 16#0073#,
16#0020#, 16#0074#, 16#0072#, 16#0061#,
16#006E#, 16#0073#, 16#0069#, 16#0074#,
16#0069#, 16#006F#, 16#006E#, 16#002E#,
others => 16#0000#),
others => <>);
-- "Data identifying one end of a link by the objects on its ends and qualifiers."
MS_082B : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 79,
Unused => 77,
Length => 77,
Value =>
(16#0044#, 16#0061#, 16#0074#, 16#0061#,
16#0020#, 16#0069#, 16#0064#, 16#0065#,
16#006E#, 16#0074#, 16#0069#, 16#0066#,
16#0079#, 16#0069#, 16#006E#, 16#0067#,
16#0020#, 16#006F#, 16#006E#, 16#0065#,
16#0020#, 16#0065#, 16#006E#, 16#0064#,
16#0020#, 16#006F#, 16#0066#, 16#0020#,
16#0061#, 16#0020#, 16#006C#, 16#0069#,
16#006E#, 16#006B#, 16#0020#, 16#0062#,
16#0079#, 16#0020#, 16#0074#, 16#0068#,
16#0065#, 16#0020#, 16#006F#, 16#0062#,
16#006A#, 16#0065#, 16#0063#, 16#0074#,
16#0073#, 16#0020#, 16#006F#, 16#006E#,
16#0020#, 16#0069#, 16#0074#, 16#0073#,
16#0020#, 16#0065#, 16#006E#, 16#0064#,
16#0073#, 16#0020#, 16#0061#, 16#006E#,
16#0064#, 16#0020#, 16#0071#, 16#0075#,
16#0061#, 16#006C#, 16#0069#, 16#0066#,
16#0069#, 16#0065#, 16#0072#, 16#0073#,
16#002E#,
others => 16#0000#),
others => <>);
-- "A_operation_callOperationAction"
MS_082C : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 39,
Unused => 31,
Length => 31,
Value =>
(16#0041#, 16#005F#, 16#006F#, 16#0070#,
16#0065#, 16#0072#, 16#0061#, 16#0074#,
16#0069#, 16#006F#, 16#006E#, 16#005F#,
16#0063#, 16#0061#, 16#006C#, 16#006C#,
16#004F#, 16#0070#, 16#0065#, 16#0072#,
16#0061#, 16#0074#, 16#0069#, 16#006F#,
16#006E#, 16#0041#, 16#0063#, 16#0074#,
16#0069#, 16#006F#, 16#006E#,
others => 16#0000#),
others => <>);
-- "A_ownedAttribute_class"
MS_082D : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 23,
Unused => 22,
Length => 22,
Value =>
(16#0041#, 16#005F#, 16#006F#, 16#0077#,
16#006E#, 16#0065#, 16#0064#, 16#0041#,
16#0074#, 16#0074#, 16#0072#, 16#0069#,
16#0062#, 16#0075#, 16#0074#, 16#0065#,
16#005F#, 16#0063#, 16#006C#, 16#0061#,
16#0073#, 16#0073#,
others => 16#0000#),
others => <>);
-- "enumerationLiteral"
MS_082E : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 23,
Unused => 18,
Length => 18,
Value =>
(16#0065#, 16#006E#, 16#0075#, 16#006D#,
16#0065#, 16#0072#, 16#0061#, 16#0074#,
16#0069#, 16#006F#, 16#006E#, 16#004C#,
16#0069#, 16#0074#, 16#0065#, 16#0072#,
16#0061#, 16#006C#,
others => 16#0000#),
others => <>);
-- "An ExtensionPoint must have a name."
MS_082F : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 39,
Unused => 35,
Length => 35,
Value =>
(16#0041#, 16#006E#, 16#0020#, 16#0045#,
16#0078#, 16#0074#, 16#0065#, 16#006E#,
16#0073#, 16#0069#, 16#006F#, 16#006E#,
16#0050#, 16#006F#, 16#0069#, 16#006E#,
16#0074#, 16#0020#, 16#006D#, 16#0075#,
16#0073#, 16#0074#, 16#0020#, 16#0068#,
16#0061#, 16#0076#, 16#0065#, 16#0020#,
16#0061#, 16#0020#, 16#006E#, 16#0061#,
16#006D#, 16#0065#, 16#002E#,
others => 16#0000#),
others => <>);
-- "parents"
MS_0830 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 15,
Unused => 7,
Length => 7,
Value =>
(16#0070#, 16#0061#, 16#0072#, 16#0065#,
16#006E#, 16#0074#, 16#0073#,
others => 16#0000#),
others => <>);
-- "The query isRedefinitionContextValid() specifies whether the redefinition contexts of a region are properly related to the redefinition contexts of the specified region to allow this element to redefine the other. The containing statemachine/state of a redefining region must redefine the containing statemachine/state of the redefined region."
MS_0831 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 359,
Unused => 343,
Length => 343,
Value =>
(16#0054#, 16#0068#, 16#0065#, 16#0020#,
16#0071#, 16#0075#, 16#0065#, 16#0072#,
16#0079#, 16#0020#, 16#0069#, 16#0073#,
16#0052#, 16#0065#, 16#0064#, 16#0065#,
16#0066#, 16#0069#, 16#006E#, 16#0069#,
16#0074#, 16#0069#, 16#006F#, 16#006E#,
16#0043#, 16#006F#, 16#006E#, 16#0074#,
16#0065#, 16#0078#, 16#0074#, 16#0056#,
16#0061#, 16#006C#, 16#0069#, 16#0064#,
16#0028#, 16#0029#, 16#0020#, 16#0073#,
16#0070#, 16#0065#, 16#0063#, 16#0069#,
16#0066#, 16#0069#, 16#0065#, 16#0073#,
16#0020#, 16#0077#, 16#0068#, 16#0065#,
16#0074#, 16#0068#, 16#0065#, 16#0072#,
16#0020#, 16#0074#, 16#0068#, 16#0065#,
16#0020#, 16#0072#, 16#0065#, 16#0064#,
16#0065#, 16#0066#, 16#0069#, 16#006E#,
16#0069#, 16#0074#, 16#0069#, 16#006F#,
16#006E#, 16#0020#, 16#0063#, 16#006F#,
16#006E#, 16#0074#, 16#0065#, 16#0078#,
16#0074#, 16#0073#, 16#0020#, 16#006F#,
16#0066#, 16#0020#, 16#0061#, 16#0020#,
16#0072#, 16#0065#, 16#0067#, 16#0069#,
16#006F#, 16#006E#, 16#0020#, 16#0061#,
16#0072#, 16#0065#, 16#0020#, 16#0070#,
16#0072#, 16#006F#, 16#0070#, 16#0065#,
16#0072#, 16#006C#, 16#0079#, 16#0020#,
16#0072#, 16#0065#, 16#006C#, 16#0061#,
16#0074#, 16#0065#, 16#0064#, 16#0020#,
16#0074#, 16#006F#, 16#0020#, 16#0074#,
16#0068#, 16#0065#, 16#0020#, 16#0072#,
16#0065#, 16#0064#, 16#0065#, 16#0066#,
16#0069#, 16#006E#, 16#0069#, 16#0074#,
16#0069#, 16#006F#, 16#006E#, 16#0020#,
16#0063#, 16#006F#, 16#006E#, 16#0074#,
16#0065#, 16#0078#, 16#0074#, 16#0073#,
16#0020#, 16#006F#, 16#0066#, 16#0020#,
16#0074#, 16#0068#, 16#0065#, 16#0020#,
16#0073#, 16#0070#, 16#0065#, 16#0063#,
16#0069#, 16#0066#, 16#0069#, 16#0065#,
16#0064#, 16#0020#, 16#0072#, 16#0065#,
16#0067#, 16#0069#, 16#006F#, 16#006E#,
16#0020#, 16#0074#, 16#006F#, 16#0020#,
16#0061#, 16#006C#, 16#006C#, 16#006F#,
16#0077#, 16#0020#, 16#0074#, 16#0068#,
16#0069#, 16#0073#, 16#0020#, 16#0065#,
16#006C#, 16#0065#, 16#006D#, 16#0065#,
16#006E#, 16#0074#, 16#0020#, 16#0074#,
16#006F#, 16#0020#, 16#0072#, 16#0065#,
16#0064#, 16#0065#, 16#0066#, 16#0069#,
16#006E#, 16#0065#, 16#0020#, 16#0074#,
16#0068#, 16#0065#, 16#0020#, 16#006F#,
16#0074#, 16#0068#, 16#0065#, 16#0072#,
16#002E#, 16#0020#, 16#0054#, 16#0068#,
16#0065#, 16#0020#, 16#0063#, 16#006F#,
16#006E#, 16#0074#, 16#0061#, 16#0069#,
16#006E#, 16#0069#, 16#006E#, 16#0067#,
16#0020#, 16#0073#, 16#0074#, 16#0061#,
16#0074#, 16#0065#, 16#006D#, 16#0061#,
16#0063#, 16#0068#, 16#0069#, 16#006E#,
16#0065#, 16#002F#, 16#0073#, 16#0074#,
16#0061#, 16#0074#, 16#0065#, 16#0020#,
16#006F#, 16#0066#, 16#0020#, 16#0061#,
16#0020#, 16#0072#, 16#0065#, 16#0064#,
16#0065#, 16#0066#, 16#0069#, 16#006E#,
16#0069#, 16#006E#, 16#0067#, 16#0020#,
16#0072#, 16#0065#, 16#0067#, 16#0069#,
16#006F#, 16#006E#, 16#0020#, 16#006D#,
16#0075#, 16#0073#, 16#0074#, 16#0020#,
16#0072#, 16#0065#, 16#0064#, 16#0065#,
16#0066#, 16#0069#, 16#006E#, 16#0065#,
16#0020#, 16#0074#, 16#0068#, 16#0065#,
16#0020#, 16#0063#, 16#006F#, 16#006E#,
16#0074#, 16#0061#, 16#0069#, 16#006E#,
16#0069#, 16#006E#, 16#0067#, 16#0020#,
16#0073#, 16#0074#, 16#0061#, 16#0074#,
16#0065#, 16#006D#, 16#0061#, 16#0063#,
16#0068#, 16#0069#, 16#006E#, 16#0065#,
16#002F#, 16#0073#, 16#0074#, 16#0061#,
16#0074#, 16#0065#, 16#0020#, 16#006F#,
16#0066#, 16#0020#, 16#0074#, 16#0068#,
16#0065#, 16#0020#, 16#0072#, 16#0065#,
16#0064#, 16#0065#, 16#0066#, 16#0069#,
16#006E#, 16#0065#, 16#0064#, 16#0020#,
16#0072#, 16#0065#, 16#0067#, 16#0069#,
16#006F#, 16#006E#, 16#002E#,
others => 16#0000#),
others => <>);
-- "break"
MS_0832 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 7,
Unused => 5,
Length => 5,
Value =>
(16#0062#, 16#0072#, 16#0065#, 16#0061#,
16#006B#,
others => 16#0000#),
others => <>);
-- "A destruction event models the destruction of an object."
MS_0833 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 63,
Unused => 56,
Length => 56,
Value =>
(16#0041#, 16#0020#, 16#0064#, 16#0065#,
16#0073#, 16#0074#, 16#0072#, 16#0075#,
16#0063#, 16#0074#, 16#0069#, 16#006F#,
16#006E#, 16#0020#, 16#0065#, 16#0076#,
16#0065#, 16#006E#, 16#0074#, 16#0020#,
16#006D#, 16#006F#, 16#0064#, 16#0065#,
16#006C#, 16#0073#, 16#0020#, 16#0074#,
16#0068#, 16#0065#, 16#0020#, 16#0064#,
16#0065#, 16#0073#, 16#0074#, 16#0072#,
16#0075#, 16#0063#, 16#0074#, 16#0069#,
16#006F#, 16#006E#, 16#0020#, 16#006F#,
16#0066#, 16#0020#, 16#0061#, 16#006E#,
16#0020#, 16#006F#, 16#0062#, 16#006A#,
16#0065#, 16#0063#, 16#0074#, 16#002E#,
others => 16#0000#),
others => <>);
-- "The StateMachine in which this Pseudostate is defined. This only applies to Pseudostates of the kind entryPoint or exitPoint."
MS_0834 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 135,
Unused => 125,
Length => 125,
Value =>
(16#0054#, 16#0068#, 16#0065#, 16#0020#,
16#0053#, 16#0074#, 16#0061#, 16#0074#,
16#0065#, 16#004D#, 16#0061#, 16#0063#,
16#0068#, 16#0069#, 16#006E#, 16#0065#,
16#0020#, 16#0069#, 16#006E#, 16#0020#,
16#0077#, 16#0068#, 16#0069#, 16#0063#,
16#0068#, 16#0020#, 16#0074#, 16#0068#,
16#0069#, 16#0073#, 16#0020#, 16#0050#,
16#0073#, 16#0065#, 16#0075#, 16#0064#,
16#006F#, 16#0073#, 16#0074#, 16#0061#,
16#0074#, 16#0065#, 16#0020#, 16#0069#,
16#0073#, 16#0020#, 16#0064#, 16#0065#,
16#0066#, 16#0069#, 16#006E#, 16#0065#,
16#0064#, 16#002E#, 16#0020#, 16#0054#,
16#0068#, 16#0069#, 16#0073#, 16#0020#,
16#006F#, 16#006E#, 16#006C#, 16#0079#,
16#0020#, 16#0061#, 16#0070#, 16#0070#,
16#006C#, 16#0069#, 16#0065#, 16#0073#,
16#0020#, 16#0074#, 16#006F#, 16#0020#,
16#0050#, 16#0073#, 16#0065#, 16#0075#,
16#0064#, 16#006F#, 16#0073#, 16#0074#,
16#0061#, 16#0074#, 16#0065#, 16#0073#,
16#0020#, 16#006F#, 16#0066#, 16#0020#,
16#0074#, 16#0068#, 16#0065#, 16#0020#,
16#006B#, 16#0069#, 16#006E#, 16#0064#,
16#0020#, 16#0065#, 16#006E#, 16#0074#,
16#0072#, 16#0079#, 16#0050#, 16#006F#,
16#0069#, 16#006E#, 16#0074#, 16#0020#,
16#006F#, 16#0072#, 16#0020#, 16#0065#,
16#0078#, 16#0069#, 16#0074#, 16#0050#,
16#006F#, 16#0069#, 16#006E#, 16#0074#,
16#002E#,
others => 16#0000#),
others => <>);
-- "The state machines of which this is an extension."
MS_0835 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 55,
Unused => 49,
Length => 49,
Value =>
(16#0054#, 16#0068#, 16#0065#, 16#0020#,
16#0073#, 16#0074#, 16#0061#, 16#0074#,
16#0065#, 16#0020#, 16#006D#, 16#0061#,
16#0063#, 16#0068#, 16#0069#, 16#006E#,
16#0065#, 16#0073#, 16#0020#, 16#006F#,
16#0066#, 16#0020#, 16#0077#, 16#0068#,
16#0069#, 16#0063#, 16#0068#, 16#0020#,
16#0074#, 16#0068#, 16#0069#, 16#0073#,
16#0020#, 16#0069#, 16#0073#, 16#0020#,
16#0061#, 16#006E#, 16#0020#, 16#0065#,
16#0078#, 16#0074#, 16#0065#, 16#006E#,
16#0073#, 16#0069#, 16#006F#, 16#006E#,
16#002E#,
others => 16#0000#),
others => <>);
-- "decisionNode"
MS_0836 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 15,
Unused => 12,
Length => 12,
Value =>
(16#0064#, 16#0065#, 16#0063#, 16#0069#,
16#0073#, 16#0069#, 16#006F#, 16#006E#,
16#004E#, 16#006F#, 16#0064#, 16#0065#,
others => 16#0000#),
others => <>);
-- "fromAction"
MS_0837 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 15,
Unused => 10,
Length => 10,
Value =>
(16#0066#, 16#0072#, 16#006F#, 16#006D#,
16#0041#, 16#0063#, 16#0074#, 16#0069#,
16#006F#, 16#006E#,
others => 16#0000#),
others => <>);
-- "multiplicity_of_qualifier"
MS_0838 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 31,
Unused => 25,
Length => 25,
Value =>
(16#006D#, 16#0075#, 16#006C#, 16#0074#,
16#0069#, 16#0070#, 16#006C#, 16#0069#,
16#0063#, 16#0069#, 16#0074#, 16#0079#,
16#005F#, 16#006F#, 16#0066#, 16#005F#,
16#0071#, 16#0075#, 16#0061#, 16#006C#,
16#0069#, 16#0066#, 16#0069#, 16#0065#,
16#0072#,
others => 16#0000#),
others => <>);
-- "ends_of_association"
MS_0839 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 23,
Unused => 19,
Length => 19,
Value =>
(16#0065#, 16#006E#, 16#0064#, 16#0073#,
16#005F#, 16#006F#, 16#0066#, 16#005F#,
16#0061#, 16#0073#, 16#0073#, 16#006F#,
16#0063#, 16#0069#, 16#0061#, 16#0074#,
16#0069#, 16#006F#, 16#006E#,
others => 16#0000#),
others => <>);
-- "Designates a set in which instances of Generalization is considered members."
MS_083A : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 79,
Unused => 76,
Length => 76,
Value =>
(16#0044#, 16#0065#, 16#0073#, 16#0069#,
16#0067#, 16#006E#, 16#0061#, 16#0074#,
16#0065#, 16#0073#, 16#0020#, 16#0061#,
16#0020#, 16#0073#, 16#0065#, 16#0074#,
16#0020#, 16#0069#, 16#006E#, 16#0020#,
16#0077#, 16#0068#, 16#0069#, 16#0063#,
16#0068#, 16#0020#, 16#0069#, 16#006E#,
16#0073#, 16#0074#, 16#0061#, 16#006E#,
16#0063#, 16#0065#, 16#0073#, 16#0020#,
16#006F#, 16#0066#, 16#0020#, 16#0047#,
16#0065#, 16#006E#, 16#0065#, 16#0072#,
16#0061#, 16#006C#, 16#0069#, 16#007A#,
16#0061#, 16#0074#, 16#0069#, 16#006F#,
16#006E#, 16#0020#, 16#0069#, 16#0073#,
16#0020#, 16#0063#, 16#006F#, 16#006E#,
16#0073#, 16#0069#, 16#0064#, 16#0065#,
16#0072#, 16#0065#, 16#0064#, 16#0020#,
16#006D#, 16#0065#, 16#006D#, 16#0062#,
16#0065#, 16#0072#, 16#0073#, 16#002E#,
others => 16#0000#),
others => <>);
-- "Specifies the position of an existing value to remove in ordered nonunique variables. The type of the pin is UnlimitedNatural, but the value cannot be zero or unlimited."
MS_083B : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 175,
Unused => 169,
Length => 169,
Value =>
(16#0053#, 16#0070#, 16#0065#, 16#0063#,
16#0069#, 16#0066#, 16#0069#, 16#0065#,
16#0073#, 16#0020#, 16#0074#, 16#0068#,
16#0065#, 16#0020#, 16#0070#, 16#006F#,
16#0073#, 16#0069#, 16#0074#, 16#0069#,
16#006F#, 16#006E#, 16#0020#, 16#006F#,
16#0066#, 16#0020#, 16#0061#, 16#006E#,
16#0020#, 16#0065#, 16#0078#, 16#0069#,
16#0073#, 16#0074#, 16#0069#, 16#006E#,
16#0067#, 16#0020#, 16#0076#, 16#0061#,
16#006C#, 16#0075#, 16#0065#, 16#0020#,
16#0074#, 16#006F#, 16#0020#, 16#0072#,
16#0065#, 16#006D#, 16#006F#, 16#0076#,
16#0065#, 16#0020#, 16#0069#, 16#006E#,
16#0020#, 16#006F#, 16#0072#, 16#0064#,
16#0065#, 16#0072#, 16#0065#, 16#0064#,
16#0020#, 16#006E#, 16#006F#, 16#006E#,
16#0075#, 16#006E#, 16#0069#, 16#0071#,
16#0075#, 16#0065#, 16#0020#, 16#0076#,
16#0061#, 16#0072#, 16#0069#, 16#0061#,
16#0062#, 16#006C#, 16#0065#, 16#0073#,
16#002E#, 16#0020#, 16#0054#, 16#0068#,
16#0065#, 16#0020#, 16#0074#, 16#0079#,
16#0070#, 16#0065#, 16#0020#, 16#006F#,
16#0066#, 16#0020#, 16#0074#, 16#0068#,
16#0065#, 16#0020#, 16#0070#, 16#0069#,
16#006E#, 16#0020#, 16#0069#, 16#0073#,
16#0020#, 16#0055#, 16#006E#, 16#006C#,
16#0069#, 16#006D#, 16#0069#, 16#0074#,
16#0065#, 16#0064#, 16#004E#, 16#0061#,
16#0074#, 16#0075#, 16#0072#, 16#0061#,
16#006C#, 16#002C#, 16#0020#, 16#0062#,
16#0075#, 16#0074#, 16#0020#, 16#0074#,
16#0068#, 16#0065#, 16#0020#, 16#0076#,
16#0061#, 16#006C#, 16#0075#, 16#0065#,
16#0020#, 16#0063#, 16#0061#, 16#006E#,
16#006E#, 16#006F#, 16#0074#, 16#0020#,
16#0062#, 16#0065#, 16#0020#, 16#007A#,
16#0065#, 16#0072#, 16#006F#, 16#0020#,
16#006F#, 16#0072#, 16#0020#, 16#0075#,
16#006E#, 16#006C#, 16#0069#, 16#006D#,
16#0069#, 16#0074#, 16#0065#, 16#0064#,
16#002E#,
others => 16#0000#),
others => <>);
-- "The fragments of the operand."
MS_083C : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 31,
Unused => 29,
Length => 29,
Value =>
(16#0054#, 16#0068#, 16#0065#, 16#0020#,
16#0066#, 16#0072#, 16#0061#, 16#0067#,
16#006D#, 16#0065#, 16#006E#, 16#0074#,
16#0073#, 16#0020#, 16#006F#, 16#0066#,
16#0020#, 16#0074#, 16#0068#, 16#0065#,
16#0020#, 16#006F#, 16#0070#, 16#0065#,
16#0072#, 16#0061#, 16#006E#, 16#0064#,
16#002E#,
others => 16#0000#),
others => <>);
-- "ElementImport"
MS_083D : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 15,
Unused => 13,
Length => 13,
Value =>
(16#0045#, 16#006C#, 16#0065#, 16#006D#,
16#0065#, 16#006E#, 16#0074#, 16#0049#,
16#006D#, 16#0070#, 16#006F#, 16#0072#,
16#0074#,
others => 16#0000#),
others => <>);
-- "parameterSubstitution"
MS_083E : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 23,
Unused => 21,
Length => 21,
Value =>
(16#0070#, 16#0061#, 16#0072#, 16#0061#,
16#006D#, 16#0065#, 16#0074#, 16#0065#,
16#0072#, 16#0053#, 16#0075#, 16#0062#,
16#0073#, 16#0074#, 16#0069#, 16#0074#,
16#0075#, 16#0074#, 16#0069#, 16#006F#,
16#006E#,
others => 16#0000#),
others => <>);
-- "number_order_results"
MS_083F : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 23,
Unused => 20,
Length => 20,
Value =>
(16#006E#, 16#0075#, 16#006D#, 16#0062#,
16#0065#, 16#0072#, 16#005F#, 16#006F#,
16#0072#, 16#0064#, 16#0065#, 16#0072#,
16#005F#, 16#0072#, 16#0065#, 16#0073#,
16#0075#, 16#006C#, 16#0074#, 16#0073#,
others => 16#0000#),
others => <>);
-- "directedRelationship"
MS_0840 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 23,
Unused => 20,
Length => 20,
Value =>
(16#0064#, 16#0069#, 16#0072#, 16#0065#,
16#0063#, 16#0074#, 16#0065#, 16#0064#,
16#0052#, 16#0065#, 16#006C#, 16#0061#,
16#0074#, 16#0069#, 16#006F#, 16#006E#,
16#0073#, 16#0068#, 16#0069#, 16#0070#,
others => 16#0000#),
others => <>);
-- "dynamic_variables"
MS_0841 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 23,
Unused => 17,
Length => 17,
Value =>
(16#0064#, 16#0079#, 16#006E#, 16#0061#,
16#006D#, 16#0069#, 16#0063#, 16#005F#,
16#0076#, 16#0061#, 16#0072#, 16#0069#,
16#0061#, 16#0062#, 16#006C#, 16#0065#,
16#0073#,
others => 16#0000#),
others => <>);
-- "DeepHistory represents the most recent active configuration of the composite state that directly contains this pseudostate; e.g. the state configuration that was active when the composite state was last exited. A composite state can have at most one deep history vertex. At most one transition may originate from the history connector to the default deep history state. This transition is taken in case the composite state had never been active before. Entry actions of states entered on the path to the state represented by a deep history are performed."
MS_0842 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 575,
Unused => 554,
Length => 554,
Value =>
(16#0044#, 16#0065#, 16#0065#, 16#0070#,
16#0048#, 16#0069#, 16#0073#, 16#0074#,
16#006F#, 16#0072#, 16#0079#, 16#0020#,
16#0072#, 16#0065#, 16#0070#, 16#0072#,
16#0065#, 16#0073#, 16#0065#, 16#006E#,
16#0074#, 16#0073#, 16#0020#, 16#0074#,
16#0068#, 16#0065#, 16#0020#, 16#006D#,
16#006F#, 16#0073#, 16#0074#, 16#0020#,
16#0072#, 16#0065#, 16#0063#, 16#0065#,
16#006E#, 16#0074#, 16#0020#, 16#0061#,
16#0063#, 16#0074#, 16#0069#, 16#0076#,
16#0065#, 16#0020#, 16#0063#, 16#006F#,
16#006E#, 16#0066#, 16#0069#, 16#0067#,
16#0075#, 16#0072#, 16#0061#, 16#0074#,
16#0069#, 16#006F#, 16#006E#, 16#0020#,
16#006F#, 16#0066#, 16#0020#, 16#0074#,
16#0068#, 16#0065#, 16#0020#, 16#0063#,
16#006F#, 16#006D#, 16#0070#, 16#006F#,
16#0073#, 16#0069#, 16#0074#, 16#0065#,
16#0020#, 16#0073#, 16#0074#, 16#0061#,
16#0074#, 16#0065#, 16#0020#, 16#0074#,
16#0068#, 16#0061#, 16#0074#, 16#0020#,
16#0064#, 16#0069#, 16#0072#, 16#0065#,
16#0063#, 16#0074#, 16#006C#, 16#0079#,
16#0020#, 16#0063#, 16#006F#, 16#006E#,
16#0074#, 16#0061#, 16#0069#, 16#006E#,
16#0073#, 16#0020#, 16#0074#, 16#0068#,
16#0069#, 16#0073#, 16#0020#, 16#0070#,
16#0073#, 16#0065#, 16#0075#, 16#0064#,
16#006F#, 16#0073#, 16#0074#, 16#0061#,
16#0074#, 16#0065#, 16#003B#, 16#0020#,
16#0065#, 16#002E#, 16#0067#, 16#002E#,
16#0020#, 16#0074#, 16#0068#, 16#0065#,
16#0020#, 16#0073#, 16#0074#, 16#0061#,
16#0074#, 16#0065#, 16#0020#, 16#0063#,
16#006F#, 16#006E#, 16#0066#, 16#0069#,
16#0067#, 16#0075#, 16#0072#, 16#0061#,
16#0074#, 16#0069#, 16#006F#, 16#006E#,
16#0020#, 16#0074#, 16#0068#, 16#0061#,
16#0074#, 16#0020#, 16#0077#, 16#0061#,
16#0073#, 16#0020#, 16#0061#, 16#0063#,
16#0074#, 16#0069#, 16#0076#, 16#0065#,
16#0020#, 16#0077#, 16#0068#, 16#0065#,
16#006E#, 16#0020#, 16#0074#, 16#0068#,
16#0065#, 16#0020#, 16#0063#, 16#006F#,
16#006D#, 16#0070#, 16#006F#, 16#0073#,
16#0069#, 16#0074#, 16#0065#, 16#0020#,
16#0073#, 16#0074#, 16#0061#, 16#0074#,
16#0065#, 16#0020#, 16#0077#, 16#0061#,
16#0073#, 16#0020#, 16#006C#, 16#0061#,
16#0073#, 16#0074#, 16#0020#, 16#0065#,
16#0078#, 16#0069#, 16#0074#, 16#0065#,
16#0064#, 16#002E#, 16#0020#, 16#0041#,
16#0020#, 16#0063#, 16#006F#, 16#006D#,
16#0070#, 16#006F#, 16#0073#, 16#0069#,
16#0074#, 16#0065#, 16#0020#, 16#0073#,
16#0074#, 16#0061#, 16#0074#, 16#0065#,
16#0020#, 16#0063#, 16#0061#, 16#006E#,
16#0020#, 16#0068#, 16#0061#, 16#0076#,
16#0065#, 16#0020#, 16#0061#, 16#0074#,
16#0020#, 16#006D#, 16#006F#, 16#0073#,
16#0074#, 16#0020#, 16#006F#, 16#006E#,
16#0065#, 16#0020#, 16#0064#, 16#0065#,
16#0065#, 16#0070#, 16#0020#, 16#0068#,
16#0069#, 16#0073#, 16#0074#, 16#006F#,
16#0072#, 16#0079#, 16#0020#, 16#0076#,
16#0065#, 16#0072#, 16#0074#, 16#0065#,
16#0078#, 16#002E#, 16#0020#, 16#0041#,
16#0074#, 16#0020#, 16#006D#, 16#006F#,
16#0073#, 16#0074#, 16#0020#, 16#006F#,
16#006E#, 16#0065#, 16#0020#, 16#0074#,
16#0072#, 16#0061#, 16#006E#, 16#0073#,
16#0069#, 16#0074#, 16#0069#, 16#006F#,
16#006E#, 16#0020#, 16#006D#, 16#0061#,
16#0079#, 16#0020#, 16#006F#, 16#0072#,
16#0069#, 16#0067#, 16#0069#, 16#006E#,
16#0061#, 16#0074#, 16#0065#, 16#0020#,
16#0066#, 16#0072#, 16#006F#, 16#006D#,
16#0020#, 16#0074#, 16#0068#, 16#0065#,
16#0020#, 16#0068#, 16#0069#, 16#0073#,
16#0074#, 16#006F#, 16#0072#, 16#0079#,
16#0020#, 16#0063#, 16#006F#, 16#006E#,
16#006E#, 16#0065#, 16#0063#, 16#0074#,
16#006F#, 16#0072#, 16#0020#, 16#0074#,
16#006F#, 16#0020#, 16#0074#, 16#0068#,
16#0065#, 16#0020#, 16#0064#, 16#0065#,
16#0066#, 16#0061#, 16#0075#, 16#006C#,
16#0074#, 16#0020#, 16#0064#, 16#0065#,
16#0065#, 16#0070#, 16#0020#, 16#0068#,
16#0069#, 16#0073#, 16#0074#, 16#006F#,
16#0072#, 16#0079#, 16#0020#, 16#0073#,
16#0074#, 16#0061#, 16#0074#, 16#0065#,
16#002E#, 16#0020#, 16#0054#, 16#0068#,
16#0069#, 16#0073#, 16#0020#, 16#0074#,
16#0072#, 16#0061#, 16#006E#, 16#0073#,
16#0069#, 16#0074#, 16#0069#, 16#006F#,
16#006E#, 16#0020#, 16#0069#, 16#0073#,
16#0020#, 16#0074#, 16#0061#, 16#006B#,
16#0065#, 16#006E#, 16#0020#, 16#0069#,
16#006E#, 16#0020#, 16#0063#, 16#0061#,
16#0073#, 16#0065#, 16#0020#, 16#0074#,
16#0068#, 16#0065#, 16#0020#, 16#0063#,
16#006F#, 16#006D#, 16#0070#, 16#006F#,
16#0073#, 16#0069#, 16#0074#, 16#0065#,
16#0020#, 16#0073#, 16#0074#, 16#0061#,
16#0074#, 16#0065#, 16#0020#, 16#0068#,
16#0061#, 16#0064#, 16#0020#, 16#006E#,
16#0065#, 16#0076#, 16#0065#, 16#0072#,
16#0020#, 16#0062#, 16#0065#, 16#0065#,
16#006E#, 16#0020#, 16#0061#, 16#0063#,
16#0074#, 16#0069#, 16#0076#, 16#0065#,
16#0020#, 16#0062#, 16#0065#, 16#0066#,
16#006F#, 16#0072#, 16#0065#, 16#002E#,
16#0020#, 16#0045#, 16#006E#, 16#0074#,
16#0072#, 16#0079#, 16#0020#, 16#0061#,
16#0063#, 16#0074#, 16#0069#, 16#006F#,
16#006E#, 16#0073#, 16#0020#, 16#006F#,
16#0066#, 16#0020#, 16#0073#, 16#0074#,
16#0061#, 16#0074#, 16#0065#, 16#0073#,
16#0020#, 16#0065#, 16#006E#, 16#0074#,
16#0065#, 16#0072#, 16#0065#, 16#0064#,
16#0020#, 16#006F#, 16#006E#, 16#0020#,
16#0074#, 16#0068#, 16#0065#, 16#0020#,
16#0070#, 16#0061#, 16#0074#, 16#0068#,
16#0020#, 16#0074#, 16#006F#, 16#0020#,
16#0074#, 16#0068#, 16#0065#, 16#0020#,
16#0073#, 16#0074#, 16#0061#, 16#0074#,
16#0065#, 16#0020#, 16#0072#, 16#0065#,
16#0070#, 16#0072#, 16#0065#, 16#0073#,
16#0065#, 16#006E#, 16#0074#, 16#0065#,
16#0064#, 16#0020#, 16#0062#, 16#0079#,
16#0020#, 16#0061#, 16#0020#, 16#0064#,
16#0065#, 16#0065#, 16#0070#, 16#0020#,
16#0068#, 16#0069#, 16#0073#, 16#0074#,
16#006F#, 16#0072#, 16#0079#, 16#0020#,
16#0061#, 16#0072#, 16#0065#, 16#0020#,
16#0070#, 16#0065#, 16#0072#, 16#0066#,
16#006F#, 16#0072#, 16#006D#, 16#0065#,
16#0064#, 16#002E#,
others => 16#0000#),
others => <>);
-- "critical"
MS_0843 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 15,
Unused => 8,
Length => 8,
Value =>
(16#0063#, 16#0072#, 16#0069#, 16#0074#,
16#0069#, 16#0063#, 16#0061#, 16#006C#,
others => 16#0000#),
others => <>);
-- "one_parameter_substitution"
MS_0844 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 31,
Unused => 26,
Length => 26,
Value =>
(16#006F#, 16#006E#, 16#0065#, 16#005F#,
16#0070#, 16#0061#, 16#0072#, 16#0061#,
16#006D#, 16#0065#, 16#0074#, 16#0065#,
16#0072#, 16#005F#, 16#0073#, 16#0075#,
16#0062#, 16#0073#, 16#0074#, 16#0069#,
16#0074#, 16#0075#, 16#0074#, 16#0069#,
16#006F#, 16#006E#,
others => 16#0000#),
others => <>);
-- "Missing derivation for NamedElement::/namespace : Namespace"
MS_0845 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 63,
Unused => 59,
Length => 59,
Value =>
(16#004D#, 16#0069#, 16#0073#, 16#0073#,
16#0069#, 16#006E#, 16#0067#, 16#0020#,
16#0064#, 16#0065#, 16#0072#, 16#0069#,
16#0076#, 16#0061#, 16#0074#, 16#0069#,
16#006F#, 16#006E#, 16#0020#, 16#0066#,
16#006F#, 16#0072#, 16#0020#, 16#004E#,
16#0061#, 16#006D#, 16#0065#, 16#0064#,
16#0045#, 16#006C#, 16#0065#, 16#006D#,
16#0065#, 16#006E#, 16#0074#, 16#003A#,
16#003A#, 16#002F#, 16#006E#, 16#0061#,
16#006D#, 16#0065#, 16#0073#, 16#0070#,
16#0061#, 16#0063#, 16#0065#, 16#0020#,
16#003A#, 16#0020#, 16#004E#, 16#0061#,
16#006D#, 16#0065#, 16#0073#, 16#0070#,
16#0061#, 16#0063#, 16#0065#,
others => 16#0000#),
others => <>);
-- "The query subsettingContext() gives the context for subsetting a property. It consists, in the case of an attribute, of the corresponding classifier, and in the case of an association end, all of the classifiers at the other ends."
MS_0846 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 239,
Unused => 230,
Length => 230,
Value =>
(16#0054#, 16#0068#, 16#0065#, 16#0020#,
16#0071#, 16#0075#, 16#0065#, 16#0072#,
16#0079#, 16#0020#, 16#0073#, 16#0075#,
16#0062#, 16#0073#, 16#0065#, 16#0074#,
16#0074#, 16#0069#, 16#006E#, 16#0067#,
16#0043#, 16#006F#, 16#006E#, 16#0074#,
16#0065#, 16#0078#, 16#0074#, 16#0028#,
16#0029#, 16#0020#, 16#0067#, 16#0069#,
16#0076#, 16#0065#, 16#0073#, 16#0020#,
16#0074#, 16#0068#, 16#0065#, 16#0020#,
16#0063#, 16#006F#, 16#006E#, 16#0074#,
16#0065#, 16#0078#, 16#0074#, 16#0020#,
16#0066#, 16#006F#, 16#0072#, 16#0020#,
16#0073#, 16#0075#, 16#0062#, 16#0073#,
16#0065#, 16#0074#, 16#0074#, 16#0069#,
16#006E#, 16#0067#, 16#0020#, 16#0061#,
16#0020#, 16#0070#, 16#0072#, 16#006F#,
16#0070#, 16#0065#, 16#0072#, 16#0074#,
16#0079#, 16#002E#, 16#0020#, 16#0049#,
16#0074#, 16#0020#, 16#0063#, 16#006F#,
16#006E#, 16#0073#, 16#0069#, 16#0073#,
16#0074#, 16#0073#, 16#002C#, 16#0020#,
16#0069#, 16#006E#, 16#0020#, 16#0074#,
16#0068#, 16#0065#, 16#0020#, 16#0063#,
16#0061#, 16#0073#, 16#0065#, 16#0020#,
16#006F#, 16#0066#, 16#0020#, 16#0061#,
16#006E#, 16#0020#, 16#0061#, 16#0074#,
16#0074#, 16#0072#, 16#0069#, 16#0062#,
16#0075#, 16#0074#, 16#0065#, 16#002C#,
16#0020#, 16#006F#, 16#0066#, 16#0020#,
16#0074#, 16#0068#, 16#0065#, 16#0020#,
16#0063#, 16#006F#, 16#0072#, 16#0072#,
16#0065#, 16#0073#, 16#0070#, 16#006F#,
16#006E#, 16#0064#, 16#0069#, 16#006E#,
16#0067#, 16#0020#, 16#0063#, 16#006C#,
16#0061#, 16#0073#, 16#0073#, 16#0069#,
16#0066#, 16#0069#, 16#0065#, 16#0072#,
16#002C#, 16#0020#, 16#0061#, 16#006E#,
16#0064#, 16#0020#, 16#0069#, 16#006E#,
16#0020#, 16#0074#, 16#0068#, 16#0065#,
16#0020#, 16#0063#, 16#0061#, 16#0073#,
16#0065#, 16#0020#, 16#006F#, 16#0066#,
16#0020#, 16#0061#, 16#006E#, 16#0020#,
16#0061#, 16#0073#, 16#0073#, 16#006F#,
16#0063#, 16#0069#, 16#0061#, 16#0074#,
16#0069#, 16#006F#, 16#006E#, 16#0020#,
16#0065#, 16#006E#, 16#0064#, 16#002C#,
16#0020#, 16#0061#, 16#006C#, 16#006C#,
16#0020#, 16#006F#, 16#0066#, 16#0020#,
16#0074#, 16#0068#, 16#0065#, 16#0020#,
16#0063#, 16#006C#, 16#0061#, 16#0073#,
16#0073#, 16#0069#, 16#0066#, 16#0069#,
16#0065#, 16#0072#, 16#0073#, 16#0020#,
16#0061#, 16#0074#, 16#0020#, 16#0074#,
16#0068#, 16#0065#, 16#0020#, 16#006F#,
16#0074#, 16#0068#, 16#0065#, 16#0072#,
16#0020#, 16#0065#, 16#006E#, 16#0064#,
16#0073#, 16#002E#,
others => 16#0000#),
others => <>);
-- "The type of the result output pin is the host classifier."
MS_0847 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 63,
Unused => 57,
Length => 57,
Value =>
(16#0054#, 16#0068#, 16#0065#, 16#0020#,
16#0074#, 16#0079#, 16#0070#, 16#0065#,
16#0020#, 16#006F#, 16#0066#, 16#0020#,
16#0074#, 16#0068#, 16#0065#, 16#0020#,
16#0072#, 16#0065#, 16#0073#, 16#0075#,
16#006C#, 16#0074#, 16#0020#, 16#006F#,
16#0075#, 16#0074#, 16#0070#, 16#0075#,
16#0074#, 16#0020#, 16#0070#, 16#0069#,
16#006E#, 16#0020#, 16#0069#, 16#0073#,
16#0020#, 16#0074#, 16#0068#, 16#0065#,
16#0020#, 16#0068#, 16#006F#, 16#0073#,
16#0074#, 16#0020#, 16#0063#, 16#006C#,
16#0061#, 16#0073#, 16#0073#, 16#0069#,
16#0066#, 16#0069#, 16#0065#, 16#0072#,
16#002E#,
others => 16#0000#),
others => <>);
-- "ownedParameterSet"
MS_0848 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 23,
Unused => 17,
Length => 17,
Value =>
(16#006F#, 16#0077#, 16#006E#, 16#0065#,
16#0064#, 16#0050#, 16#0061#, 16#0072#,
16#0061#, 16#006D#, 16#0065#, 16#0074#,
16#0065#, 16#0072#, 16#0053#, 16#0065#,
16#0074#,
others => 16#0000#),
others => <>);
-- "usedInterfaces"
MS_0849 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 15,
Unused => 14,
Length => 14,
Value =>
(16#0075#, 16#0073#, 16#0065#, 16#0064#,
16#0049#, 16#006E#, 16#0074#, 16#0065#,
16#0072#, 16#0066#, 16#0061#, 16#0063#,
16#0065#, 16#0073#,
others => 16#0000#),
others => <>);
-- "raiseExceptionAction"
MS_084A : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 23,
Unused => 20,
Length => 20,
Value =>
(16#0072#, 16#0061#, 16#0069#, 16#0073#,
16#0065#, 16#0045#, 16#0078#, 16#0063#,
16#0065#, 16#0070#, 16#0074#, 16#0069#,
16#006F#, 16#006E#, 16#0041#, 16#0063#,
16#0074#, 16#0069#, 16#006F#, 16#006E#,
others => 16#0000#),
others => <>);
-- "In addition to targeting an object, invocation actions can also invoke behavioral features on ports from where the invocation requests are routed onwards on links deriving from attached connectors. Invocation actions may also be sent to a target via a given port, either on the sending object or on another object."
MS_084B : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 327,
Unused => 314,
Length => 314,
Value =>
(16#0049#, 16#006E#, 16#0020#, 16#0061#,
16#0064#, 16#0064#, 16#0069#, 16#0074#,
16#0069#, 16#006F#, 16#006E#, 16#0020#,
16#0074#, 16#006F#, 16#0020#, 16#0074#,
16#0061#, 16#0072#, 16#0067#, 16#0065#,
16#0074#, 16#0069#, 16#006E#, 16#0067#,
16#0020#, 16#0061#, 16#006E#, 16#0020#,
16#006F#, 16#0062#, 16#006A#, 16#0065#,
16#0063#, 16#0074#, 16#002C#, 16#0020#,
16#0069#, 16#006E#, 16#0076#, 16#006F#,
16#0063#, 16#0061#, 16#0074#, 16#0069#,
16#006F#, 16#006E#, 16#0020#, 16#0061#,
16#0063#, 16#0074#, 16#0069#, 16#006F#,
16#006E#, 16#0073#, 16#0020#, 16#0063#,
16#0061#, 16#006E#, 16#0020#, 16#0061#,
16#006C#, 16#0073#, 16#006F#, 16#0020#,
16#0069#, 16#006E#, 16#0076#, 16#006F#,
16#006B#, 16#0065#, 16#0020#, 16#0062#,
16#0065#, 16#0068#, 16#0061#, 16#0076#,
16#0069#, 16#006F#, 16#0072#, 16#0061#,
16#006C#, 16#0020#, 16#0066#, 16#0065#,
16#0061#, 16#0074#, 16#0075#, 16#0072#,
16#0065#, 16#0073#, 16#0020#, 16#006F#,
16#006E#, 16#0020#, 16#0070#, 16#006F#,
16#0072#, 16#0074#, 16#0073#, 16#0020#,
16#0066#, 16#0072#, 16#006F#, 16#006D#,
16#0020#, 16#0077#, 16#0068#, 16#0065#,
16#0072#, 16#0065#, 16#0020#, 16#0074#,
16#0068#, 16#0065#, 16#0020#, 16#0069#,
16#006E#, 16#0076#, 16#006F#, 16#0063#,
16#0061#, 16#0074#, 16#0069#, 16#006F#,
16#006E#, 16#0020#, 16#0072#, 16#0065#,
16#0071#, 16#0075#, 16#0065#, 16#0073#,
16#0074#, 16#0073#, 16#0020#, 16#0061#,
16#0072#, 16#0065#, 16#0020#, 16#0072#,
16#006F#, 16#0075#, 16#0074#, 16#0065#,
16#0064#, 16#0020#, 16#006F#, 16#006E#,
16#0077#, 16#0061#, 16#0072#, 16#0064#,
16#0073#, 16#0020#, 16#006F#, 16#006E#,
16#0020#, 16#006C#, 16#0069#, 16#006E#,
16#006B#, 16#0073#, 16#0020#, 16#0064#,
16#0065#, 16#0072#, 16#0069#, 16#0076#,
16#0069#, 16#006E#, 16#0067#, 16#0020#,
16#0066#, 16#0072#, 16#006F#, 16#006D#,
16#0020#, 16#0061#, 16#0074#, 16#0074#,
16#0061#, 16#0063#, 16#0068#, 16#0065#,
16#0064#, 16#0020#, 16#0063#, 16#006F#,
16#006E#, 16#006E#, 16#0065#, 16#0063#,
16#0074#, 16#006F#, 16#0072#, 16#0073#,
16#002E#, 16#0020#, 16#0049#, 16#006E#,
16#0076#, 16#006F#, 16#0063#, 16#0061#,
16#0074#, 16#0069#, 16#006F#, 16#006E#,
16#0020#, 16#0061#, 16#0063#, 16#0074#,
16#0069#, 16#006F#, 16#006E#, 16#0073#,
16#0020#, 16#006D#, 16#0061#, 16#0079#,
16#0020#, 16#0061#, 16#006C#, 16#0073#,
16#006F#, 16#0020#, 16#0062#, 16#0065#,
16#0020#, 16#0073#, 16#0065#, 16#006E#,
16#0074#, 16#0020#, 16#0074#, 16#006F#,
16#0020#, 16#0061#, 16#0020#, 16#0074#,
16#0061#, 16#0072#, 16#0067#, 16#0065#,
16#0074#, 16#0020#, 16#0076#, 16#0069#,
16#0061#, 16#0020#, 16#0061#, 16#0020#,
16#0067#, 16#0069#, 16#0076#, 16#0065#,
16#006E#, 16#0020#, 16#0070#, 16#006F#,
16#0072#, 16#0074#, 16#002C#, 16#0020#,
16#0065#, 16#0069#, 16#0074#, 16#0068#,
16#0065#, 16#0072#, 16#0020#, 16#006F#,
16#006E#, 16#0020#, 16#0074#, 16#0068#,
16#0065#, 16#0020#, 16#0073#, 16#0065#,
16#006E#, 16#0064#, 16#0069#, 16#006E#,
16#0067#, 16#0020#, 16#006F#, 16#0062#,
16#006A#, 16#0065#, 16#0063#, 16#0074#,
16#0020#, 16#006F#, 16#0072#, 16#0020#,
16#006F#, 16#006E#, 16#0020#, 16#0061#,
16#006E#, 16#006F#, 16#0074#, 16#0068#,
16#0065#, 16#0072#, 16#0020#, 16#006F#,
16#0062#, 16#006A#, 16#0065#, 16#0063#,
16#0074#, 16#002E#,
others => 16#0000#),
others => <>);
-- "References the use case that owns this extension point."
MS_084C : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 63,
Unused => 55,
Length => 55,
Value =>
(16#0052#, 16#0065#, 16#0066#, 16#0065#,
16#0072#, 16#0065#, 16#006E#, 16#0063#,
16#0065#, 16#0073#, 16#0020#, 16#0074#,
16#0068#, 16#0065#, 16#0020#, 16#0075#,
16#0073#, 16#0065#, 16#0020#, 16#0063#,
16#0061#, 16#0073#, 16#0065#, 16#0020#,
16#0074#, 16#0068#, 16#0061#, 16#0074#,
16#0020#, 16#006F#, 16#0077#, 16#006E#,
16#0073#, 16#0020#, 16#0074#, 16#0068#,
16#0069#, 16#0073#, 16#0020#, 16#0065#,
16#0078#, 16#0074#, 16#0065#, 16#006E#,
16#0073#, 16#0069#, 16#006F#, 16#006E#,
16#0020#, 16#0070#, 16#006F#, 16#0069#,
16#006E#, 16#0074#, 16#002E#,
others => 16#0000#),
others => <>);
-- "nestedPackage"
MS_084D : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 15,
Unused => 13,
Length => 13,
Value =>
(16#006E#, 16#0065#, 16#0073#, 16#0074#,
16#0065#, 16#0064#, 16#0050#, 16#0061#,
16#0063#, 16#006B#, 16#0061#, 16#0067#,
16#0065#,
others => 16#0000#),
others => <>);
-- "startClassifierBehaviorAction"
MS_084E : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 31,
Unused => 29,
Length => 29,
Value =>
(16#0073#, 16#0074#, 16#0061#, 16#0072#,
16#0074#, 16#0043#, 16#006C#, 16#0061#,
16#0073#, 16#0073#, 16#0069#, 16#0066#,
16#0069#, 16#0065#, 16#0072#, 16#0042#,
16#0065#, 16#0068#, 16#0061#, 16#0076#,
16#0069#, 16#006F#, 16#0072#, 16#0041#,
16#0063#, 16#0074#, 16#0069#, 16#006F#,
16#006E#,
others => 16#0000#),
others => <>);
-- "References the submachine(s) in case of a submachine state. Multiple machines are referenced in case of a concurrent state."
MS_084F : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 127,
Unused => 123,
Length => 123,
Value =>
(16#0052#, 16#0065#, 16#0066#, 16#0065#,
16#0072#, 16#0065#, 16#006E#, 16#0063#,
16#0065#, 16#0073#, 16#0020#, 16#0074#,
16#0068#, 16#0065#, 16#0020#, 16#0073#,
16#0075#, 16#0062#, 16#006D#, 16#0061#,
16#0063#, 16#0068#, 16#0069#, 16#006E#,
16#0065#, 16#0028#, 16#0073#, 16#0029#,
16#0020#, 16#0069#, 16#006E#, 16#0020#,
16#0063#, 16#0061#, 16#0073#, 16#0065#,
16#0020#, 16#006F#, 16#0066#, 16#0020#,
16#0061#, 16#0020#, 16#0073#, 16#0075#,
16#0062#, 16#006D#, 16#0061#, 16#0063#,
16#0068#, 16#0069#, 16#006E#, 16#0065#,
16#0020#, 16#0073#, 16#0074#, 16#0061#,
16#0074#, 16#0065#, 16#002E#, 16#0020#,
16#004D#, 16#0075#, 16#006C#, 16#0074#,
16#0069#, 16#0070#, 16#006C#, 16#0065#,
16#0020#, 16#006D#, 16#0061#, 16#0063#,
16#0068#, 16#0069#, 16#006E#, 16#0065#,
16#0073#, 16#0020#, 16#0061#, 16#0072#,
16#0065#, 16#0020#, 16#0072#, 16#0065#,
16#0066#, 16#0065#, 16#0072#, 16#0065#,
16#006E#, 16#0063#, 16#0065#, 16#0064#,
16#0020#, 16#0069#, 16#006E#, 16#0020#,
16#0063#, 16#0061#, 16#0073#, 16#0065#,
16#0020#, 16#006F#, 16#0066#, 16#0020#,
16#0061#, 16#0020#, 16#0063#, 16#006F#,
16#006E#, 16#0063#, 16#0075#, 16#0072#,
16#0072#, 16#0065#, 16#006E#, 16#0074#,
16#0020#, 16#0073#, 16#0074#, 16#0061#,
16#0074#, 16#0065#, 16#002E#,
others => 16#0000#),
others => <>);
-- "isSimple"
MS_0850 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 15,
Unused => 8,
Length => 8,
Value =>
(16#0069#, 16#0073#, 16#0053#, 16#0069#,
16#006D#, 16#0070#, 16#006C#, 16#0065#,
others => 16#0000#),
others => <>);
-- "A_redefinedElement_redefinableElement"
MS_0851 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 39,
Unused => 37,
Length => 37,
Value =>
(16#0041#, 16#005F#, 16#0072#, 16#0065#,
16#0064#, 16#0065#, 16#0066#, 16#0069#,
16#006E#, 16#0065#, 16#0064#, 16#0045#,
16#006C#, 16#0065#, 16#006D#, 16#0065#,
16#006E#, 16#0074#, 16#005F#, 16#0072#,
16#0065#, 16#0064#, 16#0065#, 16#0066#,
16#0069#, 16#006E#, 16#0061#, 16#0062#,
16#006C#, 16#0065#, 16#0045#, 16#006C#,
16#0065#, 16#006D#, 16#0065#, 16#006E#,
16#0074#,
others => 16#0000#),
others => <>);
-- "passive_class"
MS_0852 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 15,
Unused => 13,
Length => 13,
Value =>
(16#0070#, 16#0061#, 16#0073#, 16#0073#,
16#0069#, 16#0076#, 16#0065#, 16#005F#,
16#0063#, 16#006C#, 16#0061#, 16#0073#,
16#0073#,
others => 16#0000#),
others => <>);
-- "result_pins"
MS_0853 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 15,
Unused => 11,
Length => 11,
Value =>
(16#0072#, 16#0065#, 16#0073#, 16#0075#,
16#006C#, 16#0074#, 16#005F#, 16#0070#,
16#0069#, 16#006E#, 16#0073#,
others => 16#0000#),
others => <>);
-- "interaction"
MS_0854 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 15,
Unused => 11,
Length => 11,
Value =>
(16#0069#, 16#006E#, 16#0074#, 16#0065#,
16#0072#, 16#0061#, 16#0063#, 16#0074#,
16#0069#, 16#006F#, 16#006E#,
others => 16#0000#),
others => <>);
-- "A_connection_state"
MS_0855 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 23,
Unused => 18,
Length => 18,
Value =>
(16#0041#, 16#005F#, 16#0063#, 16#006F#,
16#006E#, 16#006E#, 16#0065#, 16#0063#,
16#0074#, 16#0069#, 16#006F#, 16#006E#,
16#005F#, 16#0073#, 16#0074#, 16#0061#,
16#0074#, 16#0065#,
others => 16#0000#),
others => <>);
-- "A time interval defines the range between two time expressions."
MS_0856 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 71,
Unused => 63,
Length => 63,
Value =>
(16#0041#, 16#0020#, 16#0074#, 16#0069#,
16#006D#, 16#0065#, 16#0020#, 16#0069#,
16#006E#, 16#0074#, 16#0065#, 16#0072#,
16#0076#, 16#0061#, 16#006C#, 16#0020#,
16#0064#, 16#0065#, 16#0066#, 16#0069#,
16#006E#, 16#0065#, 16#0073#, 16#0020#,
16#0074#, 16#0068#, 16#0065#, 16#0020#,
16#0072#, 16#0061#, 16#006E#, 16#0067#,
16#0065#, 16#0020#, 16#0062#, 16#0065#,
16#0074#, 16#0077#, 16#0065#, 16#0065#,
16#006E#, 16#0020#, 16#0074#, 16#0077#,
16#006F#, 16#0020#, 16#0074#, 16#0069#,
16#006D#, 16#0065#, 16#0020#, 16#0065#,
16#0078#, 16#0070#, 16#0072#, 16#0065#,
16#0073#, 16#0073#, 16#0069#, 16#006F#,
16#006E#, 16#0073#, 16#002E#,
others => 16#0000#),
others => <>);
-- "A structured activity node is an executable activity node that may have an expansion into subordinate nodes as an activity group. The subordinate nodes must belong to only one structured activity node, although they may be nested."
MS_0857 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 239,
Unused => 230,
Length => 230,
Value =>
(16#0041#, 16#0020#, 16#0073#, 16#0074#,
16#0072#, 16#0075#, 16#0063#, 16#0074#,
16#0075#, 16#0072#, 16#0065#, 16#0064#,
16#0020#, 16#0061#, 16#0063#, 16#0074#,
16#0069#, 16#0076#, 16#0069#, 16#0074#,
16#0079#, 16#0020#, 16#006E#, 16#006F#,
16#0064#, 16#0065#, 16#0020#, 16#0069#,
16#0073#, 16#0020#, 16#0061#, 16#006E#,
16#0020#, 16#0065#, 16#0078#, 16#0065#,
16#0063#, 16#0075#, 16#0074#, 16#0061#,
16#0062#, 16#006C#, 16#0065#, 16#0020#,
16#0061#, 16#0063#, 16#0074#, 16#0069#,
16#0076#, 16#0069#, 16#0074#, 16#0079#,
16#0020#, 16#006E#, 16#006F#, 16#0064#,
16#0065#, 16#0020#, 16#0074#, 16#0068#,
16#0061#, 16#0074#, 16#0020#, 16#006D#,
16#0061#, 16#0079#, 16#0020#, 16#0068#,
16#0061#, 16#0076#, 16#0065#, 16#0020#,
16#0061#, 16#006E#, 16#0020#, 16#0065#,
16#0078#, 16#0070#, 16#0061#, 16#006E#,
16#0073#, 16#0069#, 16#006F#, 16#006E#,
16#0020#, 16#0069#, 16#006E#, 16#0074#,
16#006F#, 16#0020#, 16#0073#, 16#0075#,
16#0062#, 16#006F#, 16#0072#, 16#0064#,
16#0069#, 16#006E#, 16#0061#, 16#0074#,
16#0065#, 16#0020#, 16#006E#, 16#006F#,
16#0064#, 16#0065#, 16#0073#, 16#0020#,
16#0061#, 16#0073#, 16#0020#, 16#0061#,
16#006E#, 16#0020#, 16#0061#, 16#0063#,
16#0074#, 16#0069#, 16#0076#, 16#0069#,
16#0074#, 16#0079#, 16#0020#, 16#0067#,
16#0072#, 16#006F#, 16#0075#, 16#0070#,
16#002E#, 16#0020#, 16#0054#, 16#0068#,
16#0065#, 16#0020#, 16#0073#, 16#0075#,
16#0062#, 16#006F#, 16#0072#, 16#0064#,
16#0069#, 16#006E#, 16#0061#, 16#0074#,
16#0065#, 16#0020#, 16#006E#, 16#006F#,
16#0064#, 16#0065#, 16#0073#, 16#0020#,
16#006D#, 16#0075#, 16#0073#, 16#0074#,
16#0020#, 16#0062#, 16#0065#, 16#006C#,
16#006F#, 16#006E#, 16#0067#, 16#0020#,
16#0074#, 16#006F#, 16#0020#, 16#006F#,
16#006E#, 16#006C#, 16#0079#, 16#0020#,
16#006F#, 16#006E#, 16#0065#, 16#0020#,
16#0073#, 16#0074#, 16#0072#, 16#0075#,
16#0063#, 16#0074#, 16#0075#, 16#0072#,
16#0065#, 16#0064#, 16#0020#, 16#0061#,
16#0063#, 16#0074#, 16#0069#, 16#0076#,
16#0069#, 16#0074#, 16#0079#, 16#0020#,
16#006E#, 16#006F#, 16#0064#, 16#0065#,
16#002C#, 16#0020#, 16#0061#, 16#006C#,
16#0074#, 16#0068#, 16#006F#, 16#0075#,
16#0067#, 16#0068#, 16#0020#, 16#0074#,
16#0068#, 16#0065#, 16#0079#, 16#0020#,
16#006D#, 16#0061#, 16#0079#, 16#0020#,
16#0062#, 16#0065#, 16#0020#, 16#006E#,
16#0065#, 16#0073#, 16#0074#, 16#0065#,
16#0064#, 16#002E#,
others => 16#0000#),
others => <>);
-- "The formal template parameters that are owned by this template signature."
MS_0858 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 79,
Unused => 73,
Length => 73,
Value =>
(16#0054#, 16#0068#, 16#0065#, 16#0020#,
16#0066#, 16#006F#, 16#0072#, 16#006D#,
16#0061#, 16#006C#, 16#0020#, 16#0074#,
16#0065#, 16#006D#, 16#0070#, 16#006C#,
16#0061#, 16#0074#, 16#0065#, 16#0020#,
16#0070#, 16#0061#, 16#0072#, 16#0061#,
16#006D#, 16#0065#, 16#0074#, 16#0065#,
16#0072#, 16#0073#, 16#0020#, 16#0074#,
16#0068#, 16#0061#, 16#0074#, 16#0020#,
16#0061#, 16#0072#, 16#0065#, 16#0020#,
16#006F#, 16#0077#, 16#006E#, 16#0065#,
16#0064#, 16#0020#, 16#0062#, 16#0079#,
16#0020#, 16#0074#, 16#0068#, 16#0069#,
16#0073#, 16#0020#, 16#0074#, 16#0065#,
16#006D#, 16#0070#, 16#006C#, 16#0061#,
16#0074#, 16#0065#, 16#0020#, 16#0073#,
16#0069#, 16#0067#, 16#006E#, 16#0061#,
16#0074#, 16#0075#, 16#0072#, 16#0065#,
16#002E#,
others => 16#0000#),
others => <>);
-- "The minimum number of iterations of a loop"
MS_0859 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 47,
Unused => 42,
Length => 42,
Value =>
(16#0054#, 16#0068#, 16#0065#, 16#0020#,
16#006D#, 16#0069#, 16#006E#, 16#0069#,
16#006D#, 16#0075#, 16#006D#, 16#0020#,
16#006E#, 16#0075#, 16#006D#, 16#0062#,
16#0065#, 16#0072#, 16#0020#, 16#006F#,
16#0066#, 16#0020#, 16#0069#, 16#0074#,
16#0065#, 16#0072#, 16#0061#, 16#0074#,
16#0069#, 16#006F#, 16#006E#, 16#0073#,
16#0020#, 16#006F#, 16#0066#, 16#0020#,
16#0061#, 16#0020#, 16#006C#, 16#006F#,
16#006F#, 16#0070#,
others => 16#0000#),
others => <>);
-- "Specifies the Package whose members are imported into a Namespace."
MS_085A : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 71,
Unused => 66,
Length => 66,
Value =>
(16#0053#, 16#0070#, 16#0065#, 16#0063#,
16#0069#, 16#0066#, 16#0069#, 16#0065#,
16#0073#, 16#0020#, 16#0074#, 16#0068#,
16#0065#, 16#0020#, 16#0050#, 16#0061#,
16#0063#, 16#006B#, 16#0061#, 16#0067#,
16#0065#, 16#0020#, 16#0077#, 16#0068#,
16#006F#, 16#0073#, 16#0065#, 16#0020#,
16#006D#, 16#0065#, 16#006D#, 16#0062#,
16#0065#, 16#0072#, 16#0073#, 16#0020#,
16#0061#, 16#0072#, 16#0065#, 16#0020#,
16#0069#, 16#006D#, 16#0070#, 16#006F#,
16#0072#, 16#0074#, 16#0065#, 16#0064#,
16#0020#, 16#0069#, 16#006E#, 16#0074#,
16#006F#, 16#0020#, 16#0061#, 16#0020#,
16#004E#, 16#0061#, 16#006D#, 16#0065#,
16#0073#, 16#0070#, 16#0061#, 16#0063#,
16#0065#, 16#002E#,
others => 16#0000#),
others => <>);
-- "A_endData_linkAction"
MS_085B : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 23,
Unused => 20,
Length => 20,
Value =>
(16#0041#, 16#005F#, 16#0065#, 16#006E#,
16#0064#, 16#0044#, 16#0061#, 16#0074#,
16#0061#, 16#005F#, 16#006C#, 16#0069#,
16#006E#, 16#006B#, 16#0041#, 16#0063#,
16#0074#, 16#0069#, 16#006F#, 16#006E#,
others => 16#0000#),
others => <>);
-- "A_guard_interactionOperand"
MS_085C : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 31,
Unused => 26,
Length => 26,
Value =>
(16#0041#, 16#005F#, 16#0067#, 16#0075#,
16#0061#, 16#0072#, 16#0064#, 16#005F#,
16#0069#, 16#006E#, 16#0074#, 16#0065#,
16#0072#, 16#0061#, 16#0063#, 16#0074#,
16#0069#, 16#006F#, 16#006E#, 16#004F#,
16#0070#, 16#0065#, 16#0072#, 16#0061#,
16#006E#, 16#0064#,
others => 16#0000#),
others => <>);
-- "deployed_elements"
MS_085D : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 23,
Unused => 17,
Length => 17,
Value =>
(16#0064#, 16#0065#, 16#0070#, 16#006C#,
16#006F#, 16#0079#, 16#0065#, 16#0064#,
16#005F#, 16#0065#, 16#006C#, 16#0065#,
16#006D#, 16#0065#, 16#006E#, 16#0074#,
16#0073#,
others => 16#0000#),
others => <>);
-- "composite"
MS_085E : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 15,
Unused => 9,
Length => 9,
Value =>
(16#0063#, 16#006F#, 16#006D#, 16#0070#,
16#006F#, 16#0073#, 16#0069#, 16#0074#,
16#0065#,
others => 16#0000#),
others => <>);
-- "StructuralFeatureAction is an abstract class for all structural feature actions."
MS_085F : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 87,
Unused => 80,
Length => 80,
Value =>
(16#0053#, 16#0074#, 16#0072#, 16#0075#,
16#0063#, 16#0074#, 16#0075#, 16#0072#,
16#0061#, 16#006C#, 16#0046#, 16#0065#,
16#0061#, 16#0074#, 16#0075#, 16#0072#,
16#0065#, 16#0041#, 16#0063#, 16#0074#,
16#0069#, 16#006F#, 16#006E#, 16#0020#,
16#0069#, 16#0073#, 16#0020#, 16#0061#,
16#006E#, 16#0020#, 16#0061#, 16#0062#,
16#0073#, 16#0074#, 16#0072#, 16#0061#,
16#0063#, 16#0074#, 16#0020#, 16#0063#,
16#006C#, 16#0061#, 16#0073#, 16#0073#,
16#0020#, 16#0066#, 16#006F#, 16#0072#,
16#0020#, 16#0061#, 16#006C#, 16#006C#,
16#0020#, 16#0073#, 16#0074#, 16#0072#,
16#0075#, 16#0063#, 16#0074#, 16#0075#,
16#0072#, 16#0061#, 16#006C#, 16#0020#,
16#0066#, 16#0065#, 16#0061#, 16#0074#,
16#0075#, 16#0072#, 16#0065#, 16#0020#,
16#0061#, 16#0063#, 16#0074#, 16#0069#,
16#006F#, 16#006E#, 16#0073#, 16#002E#,
others => 16#0000#),
others => <>);
-- "maximum_one_parameter_node"
MS_0860 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 31,
Unused => 26,
Length => 26,
Value =>
(16#006D#, 16#0061#, 16#0078#, 16#0069#,
16#006D#, 16#0075#, 16#006D#, 16#005F#,
16#006F#, 16#006E#, 16#0065#, 16#005F#,
16#0070#, 16#0061#, 16#0072#, 16#0061#,
16#006D#, 16#0065#, 16#0074#, 16#0065#,
16#0072#, 16#005F#, 16#006E#, 16#006F#,
16#0064#, 16#0065#,
others => 16#0000#),
others => <>);
-- "References the Lifelines that the InteractionFragment involves."
MS_0861 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 71,
Unused => 63,
Length => 63,
Value =>
(16#0052#, 16#0065#, 16#0066#, 16#0065#,
16#0072#, 16#0065#, 16#006E#, 16#0063#,
16#0065#, 16#0073#, 16#0020#, 16#0074#,
16#0068#, 16#0065#, 16#0020#, 16#004C#,
16#0069#, 16#0066#, 16#0065#, 16#006C#,
16#0069#, 16#006E#, 16#0065#, 16#0073#,
16#0020#, 16#0074#, 16#0068#, 16#0061#,
16#0074#, 16#0020#, 16#0074#, 16#0068#,
16#0065#, 16#0020#, 16#0049#, 16#006E#,
16#0074#, 16#0065#, 16#0072#, 16#0061#,
16#0063#, 16#0074#, 16#0069#, 16#006F#,
16#006E#, 16#0046#, 16#0072#, 16#0061#,
16#0067#, 16#006D#, 16#0065#, 16#006E#,
16#0074#, 16#0020#, 16#0069#, 16#006E#,
16#0076#, 16#006F#, 16#006C#, 16#0076#,
16#0065#, 16#0073#, 16#002E#,
others => 16#0000#),
others => <>);
-- "A_ownedPort_encapsulatedClassifier"
MS_0862 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 39,
Unused => 34,
Length => 34,
Value =>
(16#0041#, 16#005F#, 16#006F#, 16#0077#,
16#006E#, 16#0065#, 16#0064#, 16#0050#,
16#006F#, 16#0072#, 16#0074#, 16#005F#,
16#0065#, 16#006E#, 16#0063#, 16#0061#,
16#0070#, 16#0073#, 16#0075#, 16#006C#,
16#0061#, 16#0074#, 16#0065#, 16#0064#,
16#0043#, 16#006C#, 16#0061#, 16#0073#,
16#0073#, 16#0069#, 16#0066#, 16#0069#,
16#0065#, 16#0072#,
others => 16#0000#),
others => <>);
-- "The query isConsistentWith() specifies that a redefining state machine is consistent with a redefined state machine provided that the redefining state machine is an extension of the redefined state machine: Regions are inherited and regions can be added, inherited regions can be redefined. In case of multiple redefining state machines, extension implies that the redefining state machine gets orthogonal regions for each of the redefined state machines."
MS_0863 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 471,
Unused => 455,
Length => 455,
Value =>
(16#0054#, 16#0068#, 16#0065#, 16#0020#,
16#0071#, 16#0075#, 16#0065#, 16#0072#,
16#0079#, 16#0020#, 16#0069#, 16#0073#,
16#0043#, 16#006F#, 16#006E#, 16#0073#,
16#0069#, 16#0073#, 16#0074#, 16#0065#,
16#006E#, 16#0074#, 16#0057#, 16#0069#,
16#0074#, 16#0068#, 16#0028#, 16#0029#,
16#0020#, 16#0073#, 16#0070#, 16#0065#,
16#0063#, 16#0069#, 16#0066#, 16#0069#,
16#0065#, 16#0073#, 16#0020#, 16#0074#,
16#0068#, 16#0061#, 16#0074#, 16#0020#,
16#0061#, 16#0020#, 16#0072#, 16#0065#,
16#0064#, 16#0065#, 16#0066#, 16#0069#,
16#006E#, 16#0069#, 16#006E#, 16#0067#,
16#0020#, 16#0073#, 16#0074#, 16#0061#,
16#0074#, 16#0065#, 16#0020#, 16#006D#,
16#0061#, 16#0063#, 16#0068#, 16#0069#,
16#006E#, 16#0065#, 16#0020#, 16#0069#,
16#0073#, 16#0020#, 16#0063#, 16#006F#,
16#006E#, 16#0073#, 16#0069#, 16#0073#,
16#0074#, 16#0065#, 16#006E#, 16#0074#,
16#0020#, 16#0077#, 16#0069#, 16#0074#,
16#0068#, 16#0020#, 16#0061#, 16#0020#,
16#0072#, 16#0065#, 16#0064#, 16#0065#,
16#0066#, 16#0069#, 16#006E#, 16#0065#,
16#0064#, 16#0020#, 16#0073#, 16#0074#,
16#0061#, 16#0074#, 16#0065#, 16#0020#,
16#006D#, 16#0061#, 16#0063#, 16#0068#,
16#0069#, 16#006E#, 16#0065#, 16#0020#,
16#0070#, 16#0072#, 16#006F#, 16#0076#,
16#0069#, 16#0064#, 16#0065#, 16#0064#,
16#0020#, 16#0074#, 16#0068#, 16#0061#,
16#0074#, 16#0020#, 16#0074#, 16#0068#,
16#0065#, 16#0020#, 16#0072#, 16#0065#,
16#0064#, 16#0065#, 16#0066#, 16#0069#,
16#006E#, 16#0069#, 16#006E#, 16#0067#,
16#0020#, 16#0073#, 16#0074#, 16#0061#,
16#0074#, 16#0065#, 16#0020#, 16#006D#,
16#0061#, 16#0063#, 16#0068#, 16#0069#,
16#006E#, 16#0065#, 16#0020#, 16#0069#,
16#0073#, 16#0020#, 16#0061#, 16#006E#,
16#0020#, 16#0065#, 16#0078#, 16#0074#,
16#0065#, 16#006E#, 16#0073#, 16#0069#,
16#006F#, 16#006E#, 16#0020#, 16#006F#,
16#0066#, 16#0020#, 16#0074#, 16#0068#,
16#0065#, 16#0020#, 16#0072#, 16#0065#,
16#0064#, 16#0065#, 16#0066#, 16#0069#,
16#006E#, 16#0065#, 16#0064#, 16#0020#,
16#0073#, 16#0074#, 16#0061#, 16#0074#,
16#0065#, 16#0020#, 16#006D#, 16#0061#,
16#0063#, 16#0068#, 16#0069#, 16#006E#,
16#0065#, 16#003A#, 16#0020#, 16#0052#,
16#0065#, 16#0067#, 16#0069#, 16#006F#,
16#006E#, 16#0073#, 16#0020#, 16#0061#,
16#0072#, 16#0065#, 16#0020#, 16#0069#,
16#006E#, 16#0068#, 16#0065#, 16#0072#,
16#0069#, 16#0074#, 16#0065#, 16#0064#,
16#0020#, 16#0061#, 16#006E#, 16#0064#,
16#0020#, 16#0072#, 16#0065#, 16#0067#,
16#0069#, 16#006F#, 16#006E#, 16#0073#,
16#0020#, 16#0063#, 16#0061#, 16#006E#,
16#0020#, 16#0062#, 16#0065#, 16#0020#,
16#0061#, 16#0064#, 16#0064#, 16#0065#,
16#0064#, 16#002C#, 16#0020#, 16#0069#,
16#006E#, 16#0068#, 16#0065#, 16#0072#,
16#0069#, 16#0074#, 16#0065#, 16#0064#,
16#0020#, 16#0072#, 16#0065#, 16#0067#,
16#0069#, 16#006F#, 16#006E#, 16#0073#,
16#0020#, 16#0063#, 16#0061#, 16#006E#,
16#0020#, 16#0062#, 16#0065#, 16#0020#,
16#0072#, 16#0065#, 16#0064#, 16#0065#,
16#0066#, 16#0069#, 16#006E#, 16#0065#,
16#0064#, 16#002E#, 16#0020#, 16#0049#,
16#006E#, 16#0020#, 16#0063#, 16#0061#,
16#0073#, 16#0065#, 16#0020#, 16#006F#,
16#0066#, 16#0020#, 16#006D#, 16#0075#,
16#006C#, 16#0074#, 16#0069#, 16#0070#,
16#006C#, 16#0065#, 16#0020#, 16#0072#,
16#0065#, 16#0064#, 16#0065#, 16#0066#,
16#0069#, 16#006E#, 16#0069#, 16#006E#,
16#0067#, 16#0020#, 16#0073#, 16#0074#,
16#0061#, 16#0074#, 16#0065#, 16#0020#,
16#006D#, 16#0061#, 16#0063#, 16#0068#,
16#0069#, 16#006E#, 16#0065#, 16#0073#,
16#002C#, 16#0020#, 16#0065#, 16#0078#,
16#0074#, 16#0065#, 16#006E#, 16#0073#,
16#0069#, 16#006F#, 16#006E#, 16#0020#,
16#0069#, 16#006D#, 16#0070#, 16#006C#,
16#0069#, 16#0065#, 16#0073#, 16#0020#,
16#0074#, 16#0068#, 16#0061#, 16#0074#,
16#0020#, 16#0074#, 16#0068#, 16#0065#,
16#0020#, 16#0072#, 16#0065#, 16#0064#,
16#0065#, 16#0066#, 16#0069#, 16#006E#,
16#0069#, 16#006E#, 16#0067#, 16#0020#,
16#0073#, 16#0074#, 16#0061#, 16#0074#,
16#0065#, 16#0020#, 16#006D#, 16#0061#,
16#0063#, 16#0068#, 16#0069#, 16#006E#,
16#0065#, 16#0020#, 16#0067#, 16#0065#,
16#0074#, 16#0073#, 16#0020#, 16#006F#,
16#0072#, 16#0074#, 16#0068#, 16#006F#,
16#0067#, 16#006F#, 16#006E#, 16#0061#,
16#006C#, 16#0020#, 16#0072#, 16#0065#,
16#0067#, 16#0069#, 16#006F#, 16#006E#,
16#0073#, 16#0020#, 16#0066#, 16#006F#,
16#0072#, 16#0020#, 16#0065#, 16#0061#,
16#0063#, 16#0068#, 16#0020#, 16#006F#,
16#0066#, 16#0020#, 16#0074#, 16#0068#,
16#0065#, 16#0020#, 16#0072#, 16#0065#,
16#0064#, 16#0065#, 16#0066#, 16#0069#,
16#006E#, 16#0065#, 16#0064#, 16#0020#,
16#0073#, 16#0074#, 16#0061#, 16#0074#,
16#0065#, 16#0020#, 16#006D#, 16#0061#,
16#0063#, 16#0068#, 16#0069#, 16#006E#,
16#0065#, 16#0073#, 16#002E#,
others => 16#0000#),
others => <>);
-- "no_input_pins"
MS_0864 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 15,
Unused => 13,
Length => 13,
Value =>
(16#006E#, 16#006F#, 16#005F#, 16#0069#,
16#006E#, 16#0070#, 16#0075#, 16#0074#,
16#005F#, 16#0070#, 16#0069#, 16#006E#,
16#0073#,
others => 16#0000#),
others => <>);
-- "sequenceNode"
MS_0865 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 15,
Unused => 12,
Length => 12,
Value =>
(16#0073#, 16#0065#, 16#0071#, 16#0075#,
16#0065#, 16#006E#, 16#0063#, 16#0065#,
16#004E#, 16#006F#, 16#0064#, 16#0065#,
others => 16#0000#),
others => <>);
-- "ownedStereotype"
MS_0866 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 23,
Unused => 15,
Length => 15,
Value =>
(16#006F#, 16#0077#, 16#006E#, 16#0065#,
16#0064#, 16#0053#, 16#0074#, 16#0065#,
16#0072#, 16#0065#, 16#006F#, 16#0074#,
16#0079#, 16#0070#, 16#0065#,
others => 16#0000#),
others => <>);
-- "A_type_collaborationUse"
MS_0867 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 31,
Unused => 23,
Length => 23,
Value =>
(16#0041#, 16#005F#, 16#0074#, 16#0079#,
16#0070#, 16#0065#, 16#005F#, 16#0063#,
16#006F#, 16#006C#, 16#006C#, 16#0061#,
16#0062#, 16#006F#, 16#0072#, 16#0061#,
16#0074#, 16#0069#, 16#006F#, 16#006E#,
16#0055#, 16#0073#, 16#0065#,
others => 16#0000#),
others => <>);
-- "A_extension_metaclass"
MS_0868 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 23,
Unused => 21,
Length => 21,
Value =>
(16#0041#, 16#005F#, 16#0065#, 16#0078#,
16#0074#, 16#0065#, 16#006E#, 16#0073#,
16#0069#, 16#006F#, 16#006E#, 16#005F#,
16#006D#, 16#0065#, 16#0074#, 16#0061#,
16#0063#, 16#006C#, 16#0061#, 16#0073#,
16#0073#,
others => 16#0000#),
others => <>);
-- "represents_part"
MS_0869 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 23,
Unused => 15,
Length => 15,
Value =>
(16#0072#, 16#0065#, 16#0070#, 16#0072#,
16#0065#, 16#0073#, 16#0065#, 16#006E#,
16#0074#, 16#0073#, 16#005F#, 16#0070#,
16#0061#, 16#0072#, 16#0074#,
others => 16#0000#),
others => <>);
-- "A clear association action is an action that destroys all links of an association in which a particular object participates."
MS_086A : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 127,
Unused => 124,
Length => 124,
Value =>
(16#0041#, 16#0020#, 16#0063#, 16#006C#,
16#0065#, 16#0061#, 16#0072#, 16#0020#,
16#0061#, 16#0073#, 16#0073#, 16#006F#,
16#0063#, 16#0069#, 16#0061#, 16#0074#,
16#0069#, 16#006F#, 16#006E#, 16#0020#,
16#0061#, 16#0063#, 16#0074#, 16#0069#,
16#006F#, 16#006E#, 16#0020#, 16#0069#,
16#0073#, 16#0020#, 16#0061#, 16#006E#,
16#0020#, 16#0061#, 16#0063#, 16#0074#,
16#0069#, 16#006F#, 16#006E#, 16#0020#,
16#0074#, 16#0068#, 16#0061#, 16#0074#,
16#0020#, 16#0064#, 16#0065#, 16#0073#,
16#0074#, 16#0072#, 16#006F#, 16#0079#,
16#0073#, 16#0020#, 16#0061#, 16#006C#,
16#006C#, 16#0020#, 16#006C#, 16#0069#,
16#006E#, 16#006B#, 16#0073#, 16#0020#,
16#006F#, 16#0066#, 16#0020#, 16#0061#,
16#006E#, 16#0020#, 16#0061#, 16#0073#,
16#0073#, 16#006F#, 16#0063#, 16#0069#,
16#0061#, 16#0074#, 16#0069#, 16#006F#,
16#006E#, 16#0020#, 16#0069#, 16#006E#,
16#0020#, 16#0077#, 16#0068#, 16#0069#,
16#0063#, 16#0068#, 16#0020#, 16#0061#,
16#0020#, 16#0070#, 16#0061#, 16#0072#,
16#0074#, 16#0069#, 16#0063#, 16#0075#,
16#006C#, 16#0061#, 16#0072#, 16#0020#,
16#006F#, 16#0062#, 16#006A#, 16#0065#,
16#0063#, 16#0074#, 16#0020#, 16#0070#,
16#0061#, 16#0072#, 16#0074#, 16#0069#,
16#0063#, 16#0069#, 16#0070#, 16#0061#,
16#0074#, 16#0065#, 16#0073#, 16#002E#,
others => 16#0000#),
others => <>);
-- "TypedElement"
MS_086B : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 15,
Unused => 12,
Length => 12,
Value =>
(16#0054#, 16#0079#, 16#0070#, 16#0065#,
16#0064#, 16#0045#, 16#006C#, 16#0065#,
16#006D#, 16#0065#, 16#006E#, 16#0074#,
others => 16#0000#),
others => <>);
-- "ownedTemplateSignature"
MS_086C : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 23,
Unused => 22,
Length => 22,
Value =>
(16#006F#, 16#0077#, 16#006E#, 16#0065#,
16#0064#, 16#0054#, 16#0065#, 16#006D#,
16#0070#, 16#006C#, 16#0061#, 16#0074#,
16#0065#, 16#0053#, 16#0069#, 16#0067#,
16#006E#, 16#0061#, 16#0074#, 16#0075#,
16#0072#, 16#0065#,
others => 16#0000#),
others => <>);
-- "ActionExecutionSpecification"
MS_086D : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 31,
Unused => 28,
Length => 28,
Value =>
(16#0041#, 16#0063#, 16#0074#, 16#0069#,
16#006F#, 16#006E#, 16#0045#, 16#0078#,
16#0065#, 16#0063#, 16#0075#, 16#0074#,
16#0069#, 16#006F#, 16#006E#, 16#0053#,
16#0070#, 16#0065#, 16#0063#, 16#0069#,
16#0066#, 16#0069#, 16#0063#, 16#0061#,
16#0074#, 16#0069#, 16#006F#, 16#006E#,
others => 16#0000#),
others => <>);
-- "makesVisible"
MS_086E : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 15,
Unused => 12,
Length => 12,
Value =>
(16#006D#, 16#0061#, 16#006B#, 16#0065#,
16#0073#, 16#0056#, 16#0069#, 16#0073#,
16#0069#, 16#0062#, 16#006C#, 16#0065#,
others => 16#0000#),
others => <>);
-- "The DataType that owns this Operation."
MS_086F : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 39,
Unused => 38,
Length => 38,
Value =>
(16#0054#, 16#0068#, 16#0065#, 16#0020#,
16#0044#, 16#0061#, 16#0074#, 16#0061#,
16#0054#, 16#0079#, 16#0070#, 16#0065#,
16#0020#, 16#0074#, 16#0068#, 16#0061#,
16#0074#, 16#0020#, 16#006F#, 16#0077#,
16#006E#, 16#0073#, 16#0020#, 16#0074#,
16#0068#, 16#0069#, 16#0073#, 16#0020#,
16#004F#, 16#0070#, 16#0065#, 16#0072#,
16#0061#, 16#0074#, 16#0069#, 16#006F#,
16#006E#, 16#002E#,
others => 16#0000#),
others => <>);
-- "MergeNode"
MS_0870 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 15,
Unused => 9,
Length => 9,
Value =>
(16#004D#, 16#0065#, 16#0072#, 16#0067#,
16#0065#, 16#004E#, 16#006F#, 16#0064#,
16#0065#,
others => 16#0000#),
others => <>);
-- "An behavior with implementation-specific semantics."
MS_0871 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 55,
Unused => 51,
Length => 51,
Value =>
(16#0041#, 16#006E#, 16#0020#, 16#0062#,
16#0065#, 16#0068#, 16#0061#, 16#0076#,
16#0069#, 16#006F#, 16#0072#, 16#0020#,
16#0077#, 16#0069#, 16#0074#, 16#0068#,
16#0020#, 16#0069#, 16#006D#, 16#0070#,
16#006C#, 16#0065#, 16#006D#, 16#0065#,
16#006E#, 16#0074#, 16#0061#, 16#0074#,
16#0069#, 16#006F#, 16#006E#, 16#002D#,
16#0073#, 16#0070#, 16#0065#, 16#0063#,
16#0069#, 16#0066#, 16#0069#, 16#0063#,
16#0020#, 16#0073#, 16#0065#, 16#006D#,
16#0061#, 16#006E#, 16#0074#, 16#0069#,
16#0063#, 16#0073#, 16#002E#,
others => 16#0000#),
others => <>);
-- "A_ownedDefault_templateParameter"
MS_0872 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 39,
Unused => 32,
Length => 32,
Value =>
(16#0041#, 16#005F#, 16#006F#, 16#0077#,
16#006E#, 16#0065#, 16#0064#, 16#0044#,
16#0065#, 16#0066#, 16#0061#, 16#0075#,
16#006C#, 16#0074#, 16#005F#, 16#0074#,
16#0065#, 16#006D#, 16#0070#, 16#006C#,
16#0061#, 16#0074#, 16#0065#, 16#0050#,
16#0061#, 16#0072#, 16#0061#, 16#006D#,
16#0065#, 16#0074#, 16#0065#, 16#0072#,
others => 16#0000#),
others => <>);
-- "unmarshall"
MS_0873 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 15,
Unused => 10,
Length => 10,
Value =>
(16#0075#, 16#006E#, 16#006D#, 16#0061#,
16#0072#, 16#0073#, 16#0068#, 16#0061#,
16#006C#, 16#006C#,
others => 16#0000#),
others => <>);
-- "Pins taking end objects and qualifier values as input."
MS_0874 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 55,
Unused => 54,
Length => 54,
Value =>
(16#0050#, 16#0069#, 16#006E#, 16#0073#,
16#0020#, 16#0074#, 16#0061#, 16#006B#,
16#0069#, 16#006E#, 16#0067#, 16#0020#,
16#0065#, 16#006E#, 16#0064#, 16#0020#,
16#006F#, 16#0062#, 16#006A#, 16#0065#,
16#0063#, 16#0074#, 16#0073#, 16#0020#,
16#0061#, 16#006E#, 16#0064#, 16#0020#,
16#0071#, 16#0075#, 16#0061#, 16#006C#,
16#0069#, 16#0066#, 16#0069#, 16#0065#,
16#0072#, 16#0020#, 16#0076#, 16#0061#,
16#006C#, 16#0075#, 16#0065#, 16#0073#,
16#0020#, 16#0061#, 16#0073#, 16#0020#,
16#0069#, 16#006E#, 16#0070#, 16#0075#,
16#0074#, 16#002E#,
others => 16#0000#),
others => <>);
-- "Indicates that the property has no aggregation."
MS_0875 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 55,
Unused => 47,
Length => 47,
Value =>
(16#0049#, 16#006E#, 16#0064#, 16#0069#,
16#0063#, 16#0061#, 16#0074#, 16#0065#,
16#0073#, 16#0020#, 16#0074#, 16#0068#,
16#0061#, 16#0074#, 16#0020#, 16#0074#,
16#0068#, 16#0065#, 16#0020#, 16#0070#,
16#0072#, 16#006F#, 16#0070#, 16#0065#,
16#0072#, 16#0074#, 16#0079#, 16#0020#,
16#0068#, 16#0061#, 16#0073#, 16#0020#,
16#006E#, 16#006F#, 16#0020#, 16#0061#,
16#0067#, 16#0067#, 16#0072#, 16#0065#,
16#0067#, 16#0061#, 16#0074#, 16#0069#,
16#006F#, 16#006E#, 16#002E#,
others => 16#0000#),
others => <>);
-- "pins_match_parameter"
MS_0876 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 23,
Unused => 20,
Length => 20,
Value =>
(16#0070#, 16#0069#, 16#006E#, 16#0073#,
16#005F#, 16#006D#, 16#0061#, 16#0074#,
16#0063#, 16#0068#, 16#005F#, 16#0070#,
16#0061#, 16#0072#, 16#0061#, 16#006D#,
16#0065#, 16#0074#, 16#0065#, 16#0072#,
others => 16#0000#),
others => <>);
-- "callAction"
MS_0877 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 15,
Unused => 10,
Length => 10,
Value =>
(16#0063#, 16#0061#, 16#006C#, 16#006C#,
16#0041#, 16#0063#, 16#0074#, 16#0069#,
16#006F#, 16#006E#,
others => 16#0000#),
others => <>);
-- "has_owner"
MS_0878 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 15,
Unused => 9,
Length => 9,
Value =>
(16#0068#, 16#0061#, 16#0073#, 16#005F#,
16#006F#, 16#0077#, 16#006E#, 16#0065#,
16#0072#,
others => 16#0000#),
others => <>);
-- "The message leading to/from an actualGate of an InteractionUse must correspond to the message leading from/to the formalGate with the same name of the Interaction referenced by the InteractionUse."
MS_0879 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 207,
Unused => 196,
Length => 196,
Value =>
(16#0054#, 16#0068#, 16#0065#, 16#0020#,
16#006D#, 16#0065#, 16#0073#, 16#0073#,
16#0061#, 16#0067#, 16#0065#, 16#0020#,
16#006C#, 16#0065#, 16#0061#, 16#0064#,
16#0069#, 16#006E#, 16#0067#, 16#0020#,
16#0074#, 16#006F#, 16#002F#, 16#0066#,
16#0072#, 16#006F#, 16#006D#, 16#0020#,
16#0061#, 16#006E#, 16#0020#, 16#0061#,
16#0063#, 16#0074#, 16#0075#, 16#0061#,
16#006C#, 16#0047#, 16#0061#, 16#0074#,
16#0065#, 16#0020#, 16#006F#, 16#0066#,
16#0020#, 16#0061#, 16#006E#, 16#0020#,
16#0049#, 16#006E#, 16#0074#, 16#0065#,
16#0072#, 16#0061#, 16#0063#, 16#0074#,
16#0069#, 16#006F#, 16#006E#, 16#0055#,
16#0073#, 16#0065#, 16#0020#, 16#006D#,
16#0075#, 16#0073#, 16#0074#, 16#0020#,
16#0063#, 16#006F#, 16#0072#, 16#0072#,
16#0065#, 16#0073#, 16#0070#, 16#006F#,
16#006E#, 16#0064#, 16#0020#, 16#0074#,
16#006F#, 16#0020#, 16#0074#, 16#0068#,
16#0065#, 16#0020#, 16#006D#, 16#0065#,
16#0073#, 16#0073#, 16#0061#, 16#0067#,
16#0065#, 16#0020#, 16#006C#, 16#0065#,
16#0061#, 16#0064#, 16#0069#, 16#006E#,
16#0067#, 16#0020#, 16#0066#, 16#0072#,
16#006F#, 16#006D#, 16#002F#, 16#0074#,
16#006F#, 16#0020#, 16#0074#, 16#0068#,
16#0065#, 16#0020#, 16#0066#, 16#006F#,
16#0072#, 16#006D#, 16#0061#, 16#006C#,
16#0047#, 16#0061#, 16#0074#, 16#0065#,
16#0020#, 16#0077#, 16#0069#, 16#0074#,
16#0068#, 16#0020#, 16#0074#, 16#0068#,
16#0065#, 16#0020#, 16#0073#, 16#0061#,
16#006D#, 16#0065#, 16#0020#, 16#006E#,
16#0061#, 16#006D#, 16#0065#, 16#0020#,
16#006F#, 16#0066#, 16#0020#, 16#0074#,
16#0068#, 16#0065#, 16#0020#, 16#0049#,
16#006E#, 16#0074#, 16#0065#, 16#0072#,
16#0061#, 16#0063#, 16#0074#, 16#0069#,
16#006F#, 16#006E#, 16#0020#, 16#0072#,
16#0065#, 16#0066#, 16#0065#, 16#0072#,
16#0065#, 16#006E#, 16#0063#, 16#0065#,
16#0064#, 16#0020#, 16#0062#, 16#0079#,
16#0020#, 16#0074#, 16#0068#, 16#0065#,
16#0020#, 16#0049#, 16#006E#, 16#0074#,
16#0065#, 16#0072#, 16#0061#, 16#0063#,
16#0074#, 16#0069#, 16#006F#, 16#006E#,
16#0055#, 16#0073#, 16#0065#, 16#002E#,
others => 16#0000#),
others => <>);
-- "inheritableMembers"
MS_087A : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 23,
Unused => 18,
Length => 18,
Value =>
(16#0069#, 16#006E#, 16#0068#, 16#0065#,
16#0072#, 16#0069#, 16#0074#, 16#0061#,
16#0062#, 16#006C#, 16#0065#, 16#004D#,
16#0065#, 16#006D#, 16#0062#, 16#0065#,
16#0072#, 16#0073#,
others => 16#0000#),
others => <>);
-- "Elements that must be owned must have an owner."
MS_087B : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 55,
Unused => 47,
Length => 47,
Value =>
(16#0045#, 16#006C#, 16#0065#, 16#006D#,
16#0065#, 16#006E#, 16#0074#, 16#0073#,
16#0020#, 16#0074#, 16#0068#, 16#0061#,
16#0074#, 16#0020#, 16#006D#, 16#0075#,
16#0073#, 16#0074#, 16#0020#, 16#0062#,
16#0065#, 16#0020#, 16#006F#, 16#0077#,
16#006E#, 16#0065#, 16#0064#, 16#0020#,
16#006D#, 16#0075#, 16#0073#, 16#0074#,
16#0020#, 16#0068#, 16#0061#, 16#0076#,
16#0065#, 16#0020#, 16#0061#, 16#006E#,
16#0020#, 16#006F#, 16#0077#, 16#006E#,
16#0065#, 16#0072#, 16#002E#,
others => 16#0000#),
others => <>);
-- "A_structuredNode_activity"
MS_087C : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 31,
Unused => 25,
Length => 25,
Value =>
(16#0041#, 16#005F#, 16#0073#, 16#0074#,
16#0072#, 16#0075#, 16#0063#, 16#0074#,
16#0075#, 16#0072#, 16#0065#, 16#0064#,
16#004E#, 16#006F#, 16#0064#, 16#0065#,
16#005F#, 16#0061#, 16#0063#, 16#0074#,
16#0069#, 16#0076#, 16#0069#, 16#0074#,
16#0079#,
others => 16#0000#),
others => <>);
-- "The edges coming into and out of a fork node must be either all object flows or all control flows."
MS_087D : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 103,
Unused => 98,
Length => 98,
Value =>
(16#0054#, 16#0068#, 16#0065#, 16#0020#,
16#0065#, 16#0064#, 16#0067#, 16#0065#,
16#0073#, 16#0020#, 16#0063#, 16#006F#,
16#006D#, 16#0069#, 16#006E#, 16#0067#,
16#0020#, 16#0069#, 16#006E#, 16#0074#,
16#006F#, 16#0020#, 16#0061#, 16#006E#,
16#0064#, 16#0020#, 16#006F#, 16#0075#,
16#0074#, 16#0020#, 16#006F#, 16#0066#,
16#0020#, 16#0061#, 16#0020#, 16#0066#,
16#006F#, 16#0072#, 16#006B#, 16#0020#,
16#006E#, 16#006F#, 16#0064#, 16#0065#,
16#0020#, 16#006D#, 16#0075#, 16#0073#,
16#0074#, 16#0020#, 16#0062#, 16#0065#,
16#0020#, 16#0065#, 16#0069#, 16#0074#,
16#0068#, 16#0065#, 16#0072#, 16#0020#,
16#0061#, 16#006C#, 16#006C#, 16#0020#,
16#006F#, 16#0062#, 16#006A#, 16#0065#,
16#0063#, 16#0074#, 16#0020#, 16#0066#,
16#006C#, 16#006F#, 16#0077#, 16#0073#,
16#0020#, 16#006F#, 16#0072#, 16#0020#,
16#0061#, 16#006C#, 16#006C#, 16#0020#,
16#0063#, 16#006F#, 16#006E#, 16#0074#,
16#0072#, 16#006F#, 16#006C#, 16#0020#,
16#0066#, 16#006C#, 16#006F#, 16#0077#,
16#0073#, 16#002E#,
others => 16#0000#),
others => <>);
-- "FunctionBehavior"
MS_087E : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 23,
Unused => 16,
Length => 16,
Value =>
(16#0046#, 16#0075#, 16#006E#, 16#0063#,
16#0074#, 16#0069#, 16#006F#, 16#006E#,
16#0042#, 16#0065#, 16#0068#, 16#0061#,
16#0076#, 16#0069#, 16#006F#, 16#0072#,
others => 16#0000#),
others => <>);
-- "Constraint"
MS_087F : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 15,
Unused => 10,
Length => 10,
Value =>
(16#0043#, 16#006F#, 16#006E#, 16#0073#,
16#0074#, 16#0072#, 16#0061#, 16#0069#,
16#006E#, 16#0074#,
others => 16#0000#),
others => <>);
-- "oldClassifier"
MS_0880 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 15,
Unused => 13,
Length => 13,
Value =>
(16#006F#, 16#006C#, 16#0064#, 16#0043#,
16#006C#, 16#0061#, 16#0073#, 16#0073#,
16#0069#, 16#0066#, 16#0069#, 16#0065#,
16#0072#,
others => 16#0000#),
others => <>);
-- "Restricts an opaque expression to return exactly one return result. When the invocation of the opaque expression completes, a single set of values is returned to its owner. This association is derived from the single return result parameter of the associated behavior."
MS_0881 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 279,
Unused => 268,
Length => 268,
Value =>
(16#0052#, 16#0065#, 16#0073#, 16#0074#,
16#0072#, 16#0069#, 16#0063#, 16#0074#,
16#0073#, 16#0020#, 16#0061#, 16#006E#,
16#0020#, 16#006F#, 16#0070#, 16#0061#,
16#0071#, 16#0075#, 16#0065#, 16#0020#,
16#0065#, 16#0078#, 16#0070#, 16#0072#,
16#0065#, 16#0073#, 16#0073#, 16#0069#,
16#006F#, 16#006E#, 16#0020#, 16#0074#,
16#006F#, 16#0020#, 16#0072#, 16#0065#,
16#0074#, 16#0075#, 16#0072#, 16#006E#,
16#0020#, 16#0065#, 16#0078#, 16#0061#,
16#0063#, 16#0074#, 16#006C#, 16#0079#,
16#0020#, 16#006F#, 16#006E#, 16#0065#,
16#0020#, 16#0072#, 16#0065#, 16#0074#,
16#0075#, 16#0072#, 16#006E#, 16#0020#,
16#0072#, 16#0065#, 16#0073#, 16#0075#,
16#006C#, 16#0074#, 16#002E#, 16#0020#,
16#0057#, 16#0068#, 16#0065#, 16#006E#,
16#0020#, 16#0074#, 16#0068#, 16#0065#,
16#0020#, 16#0069#, 16#006E#, 16#0076#,
16#006F#, 16#0063#, 16#0061#, 16#0074#,
16#0069#, 16#006F#, 16#006E#, 16#0020#,
16#006F#, 16#0066#, 16#0020#, 16#0074#,
16#0068#, 16#0065#, 16#0020#, 16#006F#,
16#0070#, 16#0061#, 16#0071#, 16#0075#,
16#0065#, 16#0020#, 16#0065#, 16#0078#,
16#0070#, 16#0072#, 16#0065#, 16#0073#,
16#0073#, 16#0069#, 16#006F#, 16#006E#,
16#0020#, 16#0063#, 16#006F#, 16#006D#,
16#0070#, 16#006C#, 16#0065#, 16#0074#,
16#0065#, 16#0073#, 16#002C#, 16#0020#,
16#0061#, 16#0020#, 16#0073#, 16#0069#,
16#006E#, 16#0067#, 16#006C#, 16#0065#,
16#0020#, 16#0073#, 16#0065#, 16#0074#,
16#0020#, 16#006F#, 16#0066#, 16#0020#,
16#0076#, 16#0061#, 16#006C#, 16#0075#,
16#0065#, 16#0073#, 16#0020#, 16#0069#,
16#0073#, 16#0020#, 16#0072#, 16#0065#,
16#0074#, 16#0075#, 16#0072#, 16#006E#,
16#0065#, 16#0064#, 16#0020#, 16#0074#,
16#006F#, 16#0020#, 16#0069#, 16#0074#,
16#0073#, 16#0020#, 16#006F#, 16#0077#,
16#006E#, 16#0065#, 16#0072#, 16#002E#,
16#0020#, 16#0054#, 16#0068#, 16#0069#,
16#0073#, 16#0020#, 16#0061#, 16#0073#,
16#0073#, 16#006F#, 16#0063#, 16#0069#,
16#0061#, 16#0074#, 16#0069#, 16#006F#,
16#006E#, 16#0020#, 16#0069#, 16#0073#,
16#0020#, 16#0064#, 16#0065#, 16#0072#,
16#0069#, 16#0076#, 16#0065#, 16#0064#,
16#0020#, 16#0066#, 16#0072#, 16#006F#,
16#006D#, 16#0020#, 16#0074#, 16#0068#,
16#0065#, 16#0020#, 16#0073#, 16#0069#,
16#006E#, 16#0067#, 16#006C#, 16#0065#,
16#0020#, 16#0072#, 16#0065#, 16#0074#,
16#0075#, 16#0072#, 16#006E#, 16#0020#,
16#0072#, 16#0065#, 16#0073#, 16#0075#,
16#006C#, 16#0074#, 16#0020#, 16#0070#,
16#0061#, 16#0072#, 16#0061#, 16#006D#,
16#0065#, 16#0074#, 16#0065#, 16#0072#,
16#0020#, 16#006F#, 16#0066#, 16#0020#,
16#0074#, 16#0068#, 16#0065#, 16#0020#,
16#0061#, 16#0073#, 16#0073#, 16#006F#,
16#0063#, 16#0069#, 16#0061#, 16#0074#,
16#0065#, 16#0064#, 16#0020#, 16#0062#,
16#0065#, 16#0068#, 16#0061#, 16#0076#,
16#0069#, 16#006F#, 16#0072#, 16#002E#,
others => 16#0000#),
others => <>);
-- "Indicates whether or not the set of specific Classifiers in a Generalization relationship have instance in common. If isDisjoint is true, the specific Classifiers for a particular GeneralizationSet have no members in common; that is, their intersection is empty. If isDisjoint is false, the specific Classifiers in a particular GeneralizationSet have one or more members in common; that is, their intersection is not empty. For example, Person could have two Generalization relationships, each with the different specific Classifier: Manager or Staff. This would be disjoint because every instance of Person must either be a Manager or Staff. In contrast, Person could have two Generalization relationships involving two specific (and non-covering) Classifiers: Sales Person and Manager. This GeneralizationSet would not be disjoint because there are instances of Person which can be a Sales Person and a Manager."
MS_0882 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 943,
Unused => 913,
Length => 913,
Value =>
(16#0049#, 16#006E#, 16#0064#, 16#0069#,
16#0063#, 16#0061#, 16#0074#, 16#0065#,
16#0073#, 16#0020#, 16#0077#, 16#0068#,
16#0065#, 16#0074#, 16#0068#, 16#0065#,
16#0072#, 16#0020#, 16#006F#, 16#0072#,
16#0020#, 16#006E#, 16#006F#, 16#0074#,
16#0020#, 16#0074#, 16#0068#, 16#0065#,
16#0020#, 16#0073#, 16#0065#, 16#0074#,
16#0020#, 16#006F#, 16#0066#, 16#0020#,
16#0073#, 16#0070#, 16#0065#, 16#0063#,
16#0069#, 16#0066#, 16#0069#, 16#0063#,
16#0020#, 16#0043#, 16#006C#, 16#0061#,
16#0073#, 16#0073#, 16#0069#, 16#0066#,
16#0069#, 16#0065#, 16#0072#, 16#0073#,
16#0020#, 16#0069#, 16#006E#, 16#0020#,
16#0061#, 16#0020#, 16#0047#, 16#0065#,
16#006E#, 16#0065#, 16#0072#, 16#0061#,
16#006C#, 16#0069#, 16#007A#, 16#0061#,
16#0074#, 16#0069#, 16#006F#, 16#006E#,
16#0020#, 16#0072#, 16#0065#, 16#006C#,
16#0061#, 16#0074#, 16#0069#, 16#006F#,
16#006E#, 16#0073#, 16#0068#, 16#0069#,
16#0070#, 16#0020#, 16#0068#, 16#0061#,
16#0076#, 16#0065#, 16#0020#, 16#0069#,
16#006E#, 16#0073#, 16#0074#, 16#0061#,
16#006E#, 16#0063#, 16#0065#, 16#0020#,
16#0069#, 16#006E#, 16#0020#, 16#0063#,
16#006F#, 16#006D#, 16#006D#, 16#006F#,
16#006E#, 16#002E#, 16#0020#, 16#0049#,
16#0066#, 16#0020#, 16#0069#, 16#0073#,
16#0044#, 16#0069#, 16#0073#, 16#006A#,
16#006F#, 16#0069#, 16#006E#, 16#0074#,
16#0020#, 16#0069#, 16#0073#, 16#0020#,
16#0074#, 16#0072#, 16#0075#, 16#0065#,
16#002C#, 16#0020#, 16#0074#, 16#0068#,
16#0065#, 16#0020#, 16#0073#, 16#0070#,
16#0065#, 16#0063#, 16#0069#, 16#0066#,
16#0069#, 16#0063#, 16#0020#, 16#0043#,
16#006C#, 16#0061#, 16#0073#, 16#0073#,
16#0069#, 16#0066#, 16#0069#, 16#0065#,
16#0072#, 16#0073#, 16#0020#, 16#0066#,
16#006F#, 16#0072#, 16#0020#, 16#0061#,
16#0020#, 16#0070#, 16#0061#, 16#0072#,
16#0074#, 16#0069#, 16#0063#, 16#0075#,
16#006C#, 16#0061#, 16#0072#, 16#0020#,
16#0047#, 16#0065#, 16#006E#, 16#0065#,
16#0072#, 16#0061#, 16#006C#, 16#0069#,
16#007A#, 16#0061#, 16#0074#, 16#0069#,
16#006F#, 16#006E#, 16#0053#, 16#0065#,
16#0074#, 16#0020#, 16#0068#, 16#0061#,
16#0076#, 16#0065#, 16#0020#, 16#006E#,
16#006F#, 16#0020#, 16#006D#, 16#0065#,
16#006D#, 16#0062#, 16#0065#, 16#0072#,
16#0073#, 16#0020#, 16#0069#, 16#006E#,
16#0020#, 16#0063#, 16#006F#, 16#006D#,
16#006D#, 16#006F#, 16#006E#, 16#003B#,
16#0020#, 16#0074#, 16#0068#, 16#0061#,
16#0074#, 16#0020#, 16#0069#, 16#0073#,
16#002C#, 16#0020#, 16#0074#, 16#0068#,
16#0065#, 16#0069#, 16#0072#, 16#0020#,
16#0069#, 16#006E#, 16#0074#, 16#0065#,
16#0072#, 16#0073#, 16#0065#, 16#0063#,
16#0074#, 16#0069#, 16#006F#, 16#006E#,
16#0020#, 16#0069#, 16#0073#, 16#0020#,
16#0065#, 16#006D#, 16#0070#, 16#0074#,
16#0079#, 16#002E#, 16#0020#, 16#0049#,
16#0066#, 16#0020#, 16#0069#, 16#0073#,
16#0044#, 16#0069#, 16#0073#, 16#006A#,
16#006F#, 16#0069#, 16#006E#, 16#0074#,
16#0020#, 16#0069#, 16#0073#, 16#0020#,
16#0066#, 16#0061#, 16#006C#, 16#0073#,
16#0065#, 16#002C#, 16#0020#, 16#0074#,
16#0068#, 16#0065#, 16#0020#, 16#0073#,
16#0070#, 16#0065#, 16#0063#, 16#0069#,
16#0066#, 16#0069#, 16#0063#, 16#0020#,
16#0043#, 16#006C#, 16#0061#, 16#0073#,
16#0073#, 16#0069#, 16#0066#, 16#0069#,
16#0065#, 16#0072#, 16#0073#, 16#0020#,
16#0069#, 16#006E#, 16#0020#, 16#0061#,
16#0020#, 16#0070#, 16#0061#, 16#0072#,
16#0074#, 16#0069#, 16#0063#, 16#0075#,
16#006C#, 16#0061#, 16#0072#, 16#0020#,
16#0047#, 16#0065#, 16#006E#, 16#0065#,
16#0072#, 16#0061#, 16#006C#, 16#0069#,
16#007A#, 16#0061#, 16#0074#, 16#0069#,
16#006F#, 16#006E#, 16#0053#, 16#0065#,
16#0074#, 16#0020#, 16#0068#, 16#0061#,
16#0076#, 16#0065#, 16#0020#, 16#006F#,
16#006E#, 16#0065#, 16#0020#, 16#006F#,
16#0072#, 16#0020#, 16#006D#, 16#006F#,
16#0072#, 16#0065#, 16#0020#, 16#006D#,
16#0065#, 16#006D#, 16#0062#, 16#0065#,
16#0072#, 16#0073#, 16#0020#, 16#0069#,
16#006E#, 16#0020#, 16#0063#, 16#006F#,
16#006D#, 16#006D#, 16#006F#, 16#006E#,
16#003B#, 16#0020#, 16#0074#, 16#0068#,
16#0061#, 16#0074#, 16#0020#, 16#0069#,
16#0073#, 16#002C#, 16#0020#, 16#0074#,
16#0068#, 16#0065#, 16#0069#, 16#0072#,
16#0020#, 16#0069#, 16#006E#, 16#0074#,
16#0065#, 16#0072#, 16#0073#, 16#0065#,
16#0063#, 16#0074#, 16#0069#, 16#006F#,
16#006E#, 16#0020#, 16#0069#, 16#0073#,
16#0020#, 16#006E#, 16#006F#, 16#0074#,
16#0020#, 16#0065#, 16#006D#, 16#0070#,
16#0074#, 16#0079#, 16#002E#, 16#0020#,
16#0046#, 16#006F#, 16#0072#, 16#0020#,
16#0065#, 16#0078#, 16#0061#, 16#006D#,
16#0070#, 16#006C#, 16#0065#, 16#002C#,
16#0020#, 16#0050#, 16#0065#, 16#0072#,
16#0073#, 16#006F#, 16#006E#, 16#0020#,
16#0063#, 16#006F#, 16#0075#, 16#006C#,
16#0064#, 16#0020#, 16#0068#, 16#0061#,
16#0076#, 16#0065#, 16#0020#, 16#0074#,
16#0077#, 16#006F#, 16#0020#, 16#0047#,
16#0065#, 16#006E#, 16#0065#, 16#0072#,
16#0061#, 16#006C#, 16#0069#, 16#007A#,
16#0061#, 16#0074#, 16#0069#, 16#006F#,
16#006E#, 16#0020#, 16#0072#, 16#0065#,
16#006C#, 16#0061#, 16#0074#, 16#0069#,
16#006F#, 16#006E#, 16#0073#, 16#0068#,
16#0069#, 16#0070#, 16#0073#, 16#002C#,
16#0020#, 16#0065#, 16#0061#, 16#0063#,
16#0068#, 16#0020#, 16#0077#, 16#0069#,
16#0074#, 16#0068#, 16#0020#, 16#0074#,
16#0068#, 16#0065#, 16#0020#, 16#0064#,
16#0069#, 16#0066#, 16#0066#, 16#0065#,
16#0072#, 16#0065#, 16#006E#, 16#0074#,
16#0020#, 16#0073#, 16#0070#, 16#0065#,
16#0063#, 16#0069#, 16#0066#, 16#0069#,
16#0063#, 16#0020#, 16#0043#, 16#006C#,
16#0061#, 16#0073#, 16#0073#, 16#0069#,
16#0066#, 16#0069#, 16#0065#, 16#0072#,
16#003A#, 16#0020#, 16#004D#, 16#0061#,
16#006E#, 16#0061#, 16#0067#, 16#0065#,
16#0072#, 16#0020#, 16#006F#, 16#0072#,
16#0020#, 16#0053#, 16#0074#, 16#0061#,
16#0066#, 16#0066#, 16#002E#, 16#0020#,
16#0054#, 16#0068#, 16#0069#, 16#0073#,
16#0020#, 16#0077#, 16#006F#, 16#0075#,
16#006C#, 16#0064#, 16#0020#, 16#0062#,
16#0065#, 16#0020#, 16#0064#, 16#0069#,
16#0073#, 16#006A#, 16#006F#, 16#0069#,
16#006E#, 16#0074#, 16#0020#, 16#0062#,
16#0065#, 16#0063#, 16#0061#, 16#0075#,
16#0073#, 16#0065#, 16#0020#, 16#0065#,
16#0076#, 16#0065#, 16#0072#, 16#0079#,
16#0020#, 16#0069#, 16#006E#, 16#0073#,
16#0074#, 16#0061#, 16#006E#, 16#0063#,
16#0065#, 16#0020#, 16#006F#, 16#0066#,
16#0020#, 16#0050#, 16#0065#, 16#0072#,
16#0073#, 16#006F#, 16#006E#, 16#0020#,
16#006D#, 16#0075#, 16#0073#, 16#0074#,
16#0020#, 16#0065#, 16#0069#, 16#0074#,
16#0068#, 16#0065#, 16#0072#, 16#0020#,
16#0062#, 16#0065#, 16#0020#, 16#0061#,
16#0020#, 16#004D#, 16#0061#, 16#006E#,
16#0061#, 16#0067#, 16#0065#, 16#0072#,
16#0020#, 16#006F#, 16#0072#, 16#0020#,
16#0053#, 16#0074#, 16#0061#, 16#0066#,
16#0066#, 16#002E#, 16#0020#, 16#0049#,
16#006E#, 16#0020#, 16#0063#, 16#006F#,
16#006E#, 16#0074#, 16#0072#, 16#0061#,
16#0073#, 16#0074#, 16#002C#, 16#0020#,
16#0050#, 16#0065#, 16#0072#, 16#0073#,
16#006F#, 16#006E#, 16#0020#, 16#0063#,
16#006F#, 16#0075#, 16#006C#, 16#0064#,
16#0020#, 16#0068#, 16#0061#, 16#0076#,
16#0065#, 16#0020#, 16#0074#, 16#0077#,
16#006F#, 16#0020#, 16#0047#, 16#0065#,
16#006E#, 16#0065#, 16#0072#, 16#0061#,
16#006C#, 16#0069#, 16#007A#, 16#0061#,
16#0074#, 16#0069#, 16#006F#, 16#006E#,
16#0020#, 16#0072#, 16#0065#, 16#006C#,
16#0061#, 16#0074#, 16#0069#, 16#006F#,
16#006E#, 16#0073#, 16#0068#, 16#0069#,
16#0070#, 16#0073#, 16#0020#, 16#0069#,
16#006E#, 16#0076#, 16#006F#, 16#006C#,
16#0076#, 16#0069#, 16#006E#, 16#0067#,
16#0020#, 16#0074#, 16#0077#, 16#006F#,
16#0020#, 16#0073#, 16#0070#, 16#0065#,
16#0063#, 16#0069#, 16#0066#, 16#0069#,
16#0063#, 16#0020#, 16#0028#, 16#0061#,
16#006E#, 16#0064#, 16#0020#, 16#006E#,
16#006F#, 16#006E#, 16#002D#, 16#0063#,
16#006F#, 16#0076#, 16#0065#, 16#0072#,
16#0069#, 16#006E#, 16#0067#, 16#0029#,
16#0020#, 16#0043#, 16#006C#, 16#0061#,
16#0073#, 16#0073#, 16#0069#, 16#0066#,
16#0069#, 16#0065#, 16#0072#, 16#0073#,
16#003A#, 16#0020#, 16#0053#, 16#0061#,
16#006C#, 16#0065#, 16#0073#, 16#0020#,
16#0050#, 16#0065#, 16#0072#, 16#0073#,
16#006F#, 16#006E#, 16#0020#, 16#0061#,
16#006E#, 16#0064#, 16#0020#, 16#004D#,
16#0061#, 16#006E#, 16#0061#, 16#0067#,
16#0065#, 16#0072#, 16#002E#, 16#0020#,
16#0054#, 16#0068#, 16#0069#, 16#0073#,
16#0020#, 16#0047#, 16#0065#, 16#006E#,
16#0065#, 16#0072#, 16#0061#, 16#006C#,
16#0069#, 16#007A#, 16#0061#, 16#0074#,
16#0069#, 16#006F#, 16#006E#, 16#0053#,
16#0065#, 16#0074#, 16#0020#, 16#0077#,
16#006F#, 16#0075#, 16#006C#, 16#0064#,
16#0020#, 16#006E#, 16#006F#, 16#0074#,
16#0020#, 16#0062#, 16#0065#, 16#0020#,
16#0064#, 16#0069#, 16#0073#, 16#006A#,
16#006F#, 16#0069#, 16#006E#, 16#0074#,
16#0020#, 16#0062#, 16#0065#, 16#0063#,
16#0061#, 16#0075#, 16#0073#, 16#0065#,
16#0020#, 16#0074#, 16#0068#, 16#0065#,
16#0072#, 16#0065#, 16#0020#, 16#0061#,
16#0072#, 16#0065#, 16#0020#, 16#0069#,
16#006E#, 16#0073#, 16#0074#, 16#0061#,
16#006E#, 16#0063#, 16#0065#, 16#0073#,
16#0020#, 16#006F#, 16#0066#, 16#0020#,
16#0050#, 16#0065#, 16#0072#, 16#0073#,
16#006F#, 16#006E#, 16#0020#, 16#0077#,
16#0068#, 16#0069#, 16#0063#, 16#0068#,
16#0020#, 16#0063#, 16#0061#, 16#006E#,
16#0020#, 16#0062#, 16#0065#, 16#0020#,
16#0061#, 16#0020#, 16#0053#, 16#0061#,
16#006C#, 16#0065#, 16#0073#, 16#0020#,
16#0050#, 16#0065#, 16#0072#, 16#0073#,
16#006F#, 16#006E#, 16#0020#, 16#0061#,
16#006E#, 16#0064#, 16#0020#, 16#0061#,
16#0020#, 16#004D#, 16#0061#, 16#006E#,
16#0061#, 16#0067#, 16#0065#, 16#0072#,
16#002E#,
others => 16#0000#),
others => <>);
-- "References the Class that is extended through an Extension. The property is derived from the type of the memberEnd that is not the ownedEnd."
MS_0883 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 151,
Unused => 140,
Length => 140,
Value =>
(16#0052#, 16#0065#, 16#0066#, 16#0065#,
16#0072#, 16#0065#, 16#006E#, 16#0063#,
16#0065#, 16#0073#, 16#0020#, 16#0074#,
16#0068#, 16#0065#, 16#0020#, 16#0043#,
16#006C#, 16#0061#, 16#0073#, 16#0073#,
16#0020#, 16#0074#, 16#0068#, 16#0061#,
16#0074#, 16#0020#, 16#0069#, 16#0073#,
16#0020#, 16#0065#, 16#0078#, 16#0074#,
16#0065#, 16#006E#, 16#0064#, 16#0065#,
16#0064#, 16#0020#, 16#0074#, 16#0068#,
16#0072#, 16#006F#, 16#0075#, 16#0067#,
16#0068#, 16#0020#, 16#0061#, 16#006E#,
16#0020#, 16#0045#, 16#0078#, 16#0074#,
16#0065#, 16#006E#, 16#0073#, 16#0069#,
16#006F#, 16#006E#, 16#002E#, 16#0020#,
16#0054#, 16#0068#, 16#0065#, 16#0020#,
16#0070#, 16#0072#, 16#006F#, 16#0070#,
16#0065#, 16#0072#, 16#0074#, 16#0079#,
16#0020#, 16#0069#, 16#0073#, 16#0020#,
16#0064#, 16#0065#, 16#0072#, 16#0069#,
16#0076#, 16#0065#, 16#0064#, 16#0020#,
16#0066#, 16#0072#, 16#006F#, 16#006D#,
16#0020#, 16#0074#, 16#0068#, 16#0065#,
16#0020#, 16#0074#, 16#0079#, 16#0070#,
16#0065#, 16#0020#, 16#006F#, 16#0066#,
16#0020#, 16#0074#, 16#0068#, 16#0065#,
16#0020#, 16#006D#, 16#0065#, 16#006D#,
16#0062#, 16#0065#, 16#0072#, 16#0045#,
16#006E#, 16#0064#, 16#0020#, 16#0074#,
16#0068#, 16#0061#, 16#0074#, 16#0020#,
16#0069#, 16#0073#, 16#0020#, 16#006E#,
16#006F#, 16#0074#, 16#0020#, 16#0074#,
16#0068#, 16#0065#, 16#0020#, 16#006F#,
16#0077#, 16#006E#, 16#0065#, 16#0064#,
16#0045#, 16#006E#, 16#0064#, 16#002E#,
others => 16#0000#),
others => <>);
-- "The set of Behaviors that specify the valid interaction patterns across the connector."
MS_0884 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 95,
Unused => 86,
Length => 86,
Value =>
(16#0054#, 16#0068#, 16#0065#, 16#0020#,
16#0073#, 16#0065#, 16#0074#, 16#0020#,
16#006F#, 16#0066#, 16#0020#, 16#0042#,
16#0065#, 16#0068#, 16#0061#, 16#0076#,
16#0069#, 16#006F#, 16#0072#, 16#0073#,
16#0020#, 16#0074#, 16#0068#, 16#0061#,
16#0074#, 16#0020#, 16#0073#, 16#0070#,
16#0065#, 16#0063#, 16#0069#, 16#0066#,
16#0079#, 16#0020#, 16#0074#, 16#0068#,
16#0065#, 16#0020#, 16#0076#, 16#0061#,
16#006C#, 16#0069#, 16#0064#, 16#0020#,
16#0069#, 16#006E#, 16#0074#, 16#0065#,
16#0072#, 16#0061#, 16#0063#, 16#0074#,
16#0069#, 16#006F#, 16#006E#, 16#0020#,
16#0070#, 16#0061#, 16#0074#, 16#0074#,
16#0065#, 16#0072#, 16#006E#, 16#0073#,
16#0020#, 16#0061#, 16#0063#, 16#0072#,
16#006F#, 16#0073#, 16#0073#, 16#0020#,
16#0074#, 16#0068#, 16#0065#, 16#0020#,
16#0063#, 16#006F#, 16#006E#, 16#006E#,
16#0065#, 16#0063#, 16#0074#, 16#006F#,
16#0072#, 16#002E#,
others => 16#0000#),
others => <>);
-- "Specification evaluated at runtime to determine if the edge can be traversed."
MS_0885 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 79,
Unused => 77,
Length => 77,
Value =>
(16#0053#, 16#0070#, 16#0065#, 16#0063#,
16#0069#, 16#0066#, 16#0069#, 16#0063#,
16#0061#, 16#0074#, 16#0069#, 16#006F#,
16#006E#, 16#0020#, 16#0065#, 16#0076#,
16#0061#, 16#006C#, 16#0075#, 16#0061#,
16#0074#, 16#0065#, 16#0064#, 16#0020#,
16#0061#, 16#0074#, 16#0020#, 16#0072#,
16#0075#, 16#006E#, 16#0074#, 16#0069#,
16#006D#, 16#0065#, 16#0020#, 16#0074#,
16#006F#, 16#0020#, 16#0064#, 16#0065#,
16#0074#, 16#0065#, 16#0072#, 16#006D#,
16#0069#, 16#006E#, 16#0065#, 16#0020#,
16#0069#, 16#0066#, 16#0020#, 16#0074#,
16#0068#, 16#0065#, 16#0020#, 16#0065#,
16#0064#, 16#0067#, 16#0065#, 16#0020#,
16#0063#, 16#0061#, 16#006E#, 16#0020#,
16#0062#, 16#0065#, 16#0020#, 16#0074#,
16#0072#, 16#0061#, 16#0076#, 16#0065#,
16#0072#, 16#0073#, 16#0065#, 16#0064#,
16#002E#,
others => 16#0000#),
others => <>);
-- "A_minint_interactionConstraint"
MS_0886 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 31,
Unused => 30,
Length => 30,
Value =>
(16#0041#, 16#005F#, 16#006D#, 16#0069#,
16#006E#, 16#0069#, 16#006E#, 16#0074#,
16#005F#, 16#0069#, 16#006E#, 16#0074#,
16#0065#, 16#0072#, 16#0061#, 16#0063#,
16#0074#, 16#0069#, 16#006F#, 16#006E#,
16#0043#, 16#006F#, 16#006E#, 16#0073#,
16#0074#, 16#0072#, 16#0061#, 16#0069#,
16#006E#, 16#0074#,
others => 16#0000#),
others => <>);
-- "A_object_clearAssociationAction"
MS_0887 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 39,
Unused => 31,
Length => 31,
Value =>
(16#0041#, 16#005F#, 16#006F#, 16#0062#,
16#006A#, 16#0065#, 16#0063#, 16#0074#,
16#005F#, 16#0063#, 16#006C#, 16#0065#,
16#0061#, 16#0072#, 16#0041#, 16#0073#,
16#0073#, 16#006F#, 16#0063#, 16#0069#,
16#0061#, 16#0074#, 16#0069#, 16#006F#,
16#006E#, 16#0041#, 16#0063#, 16#0074#,
16#0069#, 16#006F#, 16#006E#,
others => 16#0000#),
others => <>);
-- "contained"
MS_0888 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 15,
Unused => 9,
Length => 9,
Value =>
(16#0063#, 16#006F#, 16#006E#, 16#0074#,
16#0061#, 16#0069#, 16#006E#, 16#0065#,
16#0064#,
others => 16#0000#),
others => <>);
-- "sendEvent and receiveEvent are present"
MS_0889 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 39,
Unused => 38,
Length => 38,
Value =>
(16#0073#, 16#0065#, 16#006E#, 16#0064#,
16#0045#, 16#0076#, 16#0065#, 16#006E#,
16#0074#, 16#0020#, 16#0061#, 16#006E#,
16#0064#, 16#0020#, 16#0072#, 16#0065#,
16#0063#, 16#0065#, 16#0069#, 16#0076#,
16#0065#, 16#0045#, 16#0076#, 16#0065#,
16#006E#, 16#0074#, 16#0020#, 16#0061#,
16#0072#, 16#0065#, 16#0020#, 16#0070#,
16#0072#, 16#0065#, 16#0073#, 16#0065#,
16#006E#, 16#0074#,
others => 16#0000#),
others => <>);
-- "An activity parameter node is an object node for inputs and outputs to activities."
MS_088A : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 87,
Unused => 82,
Length => 82,
Value =>
(16#0041#, 16#006E#, 16#0020#, 16#0061#,
16#0063#, 16#0074#, 16#0069#, 16#0076#,
16#0069#, 16#0074#, 16#0079#, 16#0020#,
16#0070#, 16#0061#, 16#0072#, 16#0061#,
16#006D#, 16#0065#, 16#0074#, 16#0065#,
16#0072#, 16#0020#, 16#006E#, 16#006F#,
16#0064#, 16#0065#, 16#0020#, 16#0069#,
16#0073#, 16#0020#, 16#0061#, 16#006E#,
16#0020#, 16#006F#, 16#0062#, 16#006A#,
16#0065#, 16#0063#, 16#0074#, 16#0020#,
16#006E#, 16#006F#, 16#0064#, 16#0065#,
16#0020#, 16#0066#, 16#006F#, 16#0072#,
16#0020#, 16#0069#, 16#006E#, 16#0070#,
16#0075#, 16#0074#, 16#0073#, 16#0020#,
16#0061#, 16#006E#, 16#0064#, 16#0020#,
16#006F#, 16#0075#, 16#0074#, 16#0070#,
16#0075#, 16#0074#, 16#0073#, 16#0020#,
16#0074#, 16#006F#, 16#0020#, 16#0061#,
16#0063#, 16#0074#, 16#0069#, 16#0076#,
16#0069#, 16#0074#, 16#0069#, 16#0065#,
16#0073#, 16#002E#,
others => 16#0000#),
others => <>);
-- "A_deployment_location"
MS_088B : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 23,
Unused => 21,
Length => 21,
Value =>
(16#0041#, 16#005F#, 16#0064#, 16#0065#,
16#0070#, 16#006C#, 16#006F#, 16#0079#,
16#006D#, 16#0065#, 16#006E#, 16#0074#,
16#005F#, 16#006C#, 16#006F#, 16#0063#,
16#0061#, 16#0074#, 16#0069#, 16#006F#,
16#006E#,
others => 16#0000#),
others => <>);
-- "InteractionOperand"
MS_088C : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 23,
Unused => 18,
Length => 18,
Value =>
(16#0049#, 16#006E#, 16#0074#, 16#0065#,
16#0072#, 16#0061#, 16#0063#, 16#0074#,
16#0069#, 16#006F#, 16#006E#, 16#004F#,
16#0070#, 16#0065#, 16#0072#, 16#0061#,
16#006E#, 16#0064#,
others => 16#0000#),
others => <>);
-- "isNavigable"
MS_088D : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 15,
Unused => 11,
Length => 11,
Value =>
(16#0069#, 16#0073#, 16#004E#, 16#0061#,
16#0076#, 16#0069#, 16#0067#, 16#0061#,
16#0062#, 16#006C#, 16#0065#,
others => 16#0000#),
others => <>);
-- "An output pin within the test fragment the value of which is examined after execution of the test to determine whether the body should be executed."
MS_088E : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 151,
Unused => 147,
Length => 147,
Value =>
(16#0041#, 16#006E#, 16#0020#, 16#006F#,
16#0075#, 16#0074#, 16#0070#, 16#0075#,
16#0074#, 16#0020#, 16#0070#, 16#0069#,
16#006E#, 16#0020#, 16#0077#, 16#0069#,
16#0074#, 16#0068#, 16#0069#, 16#006E#,
16#0020#, 16#0074#, 16#0068#, 16#0065#,
16#0020#, 16#0074#, 16#0065#, 16#0073#,
16#0074#, 16#0020#, 16#0066#, 16#0072#,
16#0061#, 16#0067#, 16#006D#, 16#0065#,
16#006E#, 16#0074#, 16#0020#, 16#0074#,
16#0068#, 16#0065#, 16#0020#, 16#0076#,
16#0061#, 16#006C#, 16#0075#, 16#0065#,
16#0020#, 16#006F#, 16#0066#, 16#0020#,
16#0077#, 16#0068#, 16#0069#, 16#0063#,
16#0068#, 16#0020#, 16#0069#, 16#0073#,
16#0020#, 16#0065#, 16#0078#, 16#0061#,
16#006D#, 16#0069#, 16#006E#, 16#0065#,
16#0064#, 16#0020#, 16#0061#, 16#0066#,
16#0074#, 16#0065#, 16#0072#, 16#0020#,
16#0065#, 16#0078#, 16#0065#, 16#0063#,
16#0075#, 16#0074#, 16#0069#, 16#006F#,
16#006E#, 16#0020#, 16#006F#, 16#0066#,
16#0020#, 16#0074#, 16#0068#, 16#0065#,
16#0020#, 16#0074#, 16#0065#, 16#0073#,
16#0074#, 16#0020#, 16#0074#, 16#006F#,
16#0020#, 16#0064#, 16#0065#, 16#0074#,
16#0065#, 16#0072#, 16#006D#, 16#0069#,
16#006E#, 16#0065#, 16#0020#, 16#0077#,
16#0068#, 16#0065#, 16#0074#, 16#0068#,
16#0065#, 16#0072#, 16#0020#, 16#0074#,
16#0068#, 16#0065#, 16#0020#, 16#0062#,
16#006F#, 16#0064#, 16#0079#, 16#0020#,
16#0073#, 16#0068#, 16#006F#, 16#0075#,
16#006C#, 16#0064#, 16#0020#, 16#0062#,
16#0065#, 16#0020#, 16#0065#, 16#0078#,
16#0065#, 16#0063#, 16#0075#, 16#0074#,
16#0065#, 16#0064#, 16#002E#,
others => 16#0000#),
others => <>);
-- "A behavioral feature owns zero or more parameter sets."
MS_088F : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 55,
Unused => 54,
Length => 54,
Value =>
(16#0041#, 16#0020#, 16#0062#, 16#0065#,
16#0068#, 16#0061#, 16#0076#, 16#0069#,
16#006F#, 16#0072#, 16#0061#, 16#006C#,
16#0020#, 16#0066#, 16#0065#, 16#0061#,
16#0074#, 16#0075#, 16#0072#, 16#0065#,
16#0020#, 16#006F#, 16#0077#, 16#006E#,
16#0073#, 16#0020#, 16#007A#, 16#0065#,
16#0072#, 16#006F#, 16#0020#, 16#006F#,
16#0072#, 16#0020#, 16#006D#, 16#006F#,
16#0072#, 16#0065#, 16#0020#, 16#0070#,
16#0061#, 16#0072#, 16#0061#, 16#006D#,
16#0065#, 16#0074#, 16#0065#, 16#0072#,
16#0020#, 16#0073#, 16#0065#, 16#0074#,
16#0073#, 16#002E#,
others => 16#0000#),
others => <>);
-- "A_returnInformation_replyAction"
MS_0890 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 39,
Unused => 31,
Length => 31,
Value =>
(16#0041#, 16#005F#, 16#0072#, 16#0065#,
16#0074#, 16#0075#, 16#0072#, 16#006E#,
16#0049#, 16#006E#, 16#0066#, 16#006F#,
16#0072#, 16#006D#, 16#0061#, 16#0074#,
16#0069#, 16#006F#, 16#006E#, 16#005F#,
16#0072#, 16#0065#, 16#0070#, 16#006C#,
16#0079#, 16#0041#, 16#0063#, 16#0074#,
16#0069#, 16#006F#, 16#006E#,
others => 16#0000#),
others => <>);
-- "unmarshallType_is_classifier"
MS_0891 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 31,
Unused => 28,
Length => 28,
Value =>
(16#0075#, 16#006E#, 16#006D#, 16#0061#,
16#0072#, 16#0073#, 16#0068#, 16#0061#,
16#006C#, 16#006C#, 16#0054#, 16#0079#,
16#0070#, 16#0065#, 16#005F#, 16#0069#,
16#0073#, 16#005F#, 16#0063#, 16#006C#,
16#0061#, 16#0073#, 16#0073#, 16#0069#,
16#0066#, 16#0069#, 16#0065#, 16#0072#,
others => 16#0000#),
others => <>);
-- "A classifier has the ability to own ports as specific and type checked interaction points."
MS_0892 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 95,
Unused => 90,
Length => 90,
Value =>
(16#0041#, 16#0020#, 16#0063#, 16#006C#,
16#0061#, 16#0073#, 16#0073#, 16#0069#,
16#0066#, 16#0069#, 16#0065#, 16#0072#,
16#0020#, 16#0068#, 16#0061#, 16#0073#,
16#0020#, 16#0074#, 16#0068#, 16#0065#,
16#0020#, 16#0061#, 16#0062#, 16#0069#,
16#006C#, 16#0069#, 16#0074#, 16#0079#,
16#0020#, 16#0074#, 16#006F#, 16#0020#,
16#006F#, 16#0077#, 16#006E#, 16#0020#,
16#0070#, 16#006F#, 16#0072#, 16#0074#,
16#0073#, 16#0020#, 16#0061#, 16#0073#,
16#0020#, 16#0073#, 16#0070#, 16#0065#,
16#0063#, 16#0069#, 16#0066#, 16#0069#,
16#0063#, 16#0020#, 16#0061#, 16#006E#,
16#0064#, 16#0020#, 16#0074#, 16#0079#,
16#0070#, 16#0065#, 16#0020#, 16#0063#,
16#0068#, 16#0065#, 16#0063#, 16#006B#,
16#0065#, 16#0064#, 16#0020#, 16#0069#,
16#006E#, 16#0074#, 16#0065#, 16#0072#,
16#0061#, 16#0063#, 16#0074#, 16#0069#,
16#006F#, 16#006E#, 16#0020#, 16#0070#,
16#006F#, 16#0069#, 16#006E#, 16#0074#,
16#0073#, 16#002E#,
others => 16#0000#),
others => <>);
-- "method"
MS_0893 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 7,
Unused => 6,
Length => 6,
Value =>
(16#006D#, 16#0065#, 16#0074#, 16#0068#,
16#006F#, 16#0064#,
others => 16#0000#),
others => <>);
-- "The interactionOperator par designates that the CombinedFragment represents a parallel merge between the behaviors of the operands. The OccurrenceSpecifications of the different operands can be interleaved in any way as long as the ordering imposed by each operand as such is preserved."
MS_0894 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 295,
Unused => 286,
Length => 286,
Value =>
(16#0054#, 16#0068#, 16#0065#, 16#0020#,
16#0069#, 16#006E#, 16#0074#, 16#0065#,
16#0072#, 16#0061#, 16#0063#, 16#0074#,
16#0069#, 16#006F#, 16#006E#, 16#004F#,
16#0070#, 16#0065#, 16#0072#, 16#0061#,
16#0074#, 16#006F#, 16#0072#, 16#0020#,
16#0070#, 16#0061#, 16#0072#, 16#0020#,
16#0064#, 16#0065#, 16#0073#, 16#0069#,
16#0067#, 16#006E#, 16#0061#, 16#0074#,
16#0065#, 16#0073#, 16#0020#, 16#0074#,
16#0068#, 16#0061#, 16#0074#, 16#0020#,
16#0074#, 16#0068#, 16#0065#, 16#0020#,
16#0043#, 16#006F#, 16#006D#, 16#0062#,
16#0069#, 16#006E#, 16#0065#, 16#0064#,
16#0046#, 16#0072#, 16#0061#, 16#0067#,
16#006D#, 16#0065#, 16#006E#, 16#0074#,
16#0020#, 16#0072#, 16#0065#, 16#0070#,
16#0072#, 16#0065#, 16#0073#, 16#0065#,
16#006E#, 16#0074#, 16#0073#, 16#0020#,
16#0061#, 16#0020#, 16#0070#, 16#0061#,
16#0072#, 16#0061#, 16#006C#, 16#006C#,
16#0065#, 16#006C#, 16#0020#, 16#006D#,
16#0065#, 16#0072#, 16#0067#, 16#0065#,
16#0020#, 16#0062#, 16#0065#, 16#0074#,
16#0077#, 16#0065#, 16#0065#, 16#006E#,
16#0020#, 16#0074#, 16#0068#, 16#0065#,
16#0020#, 16#0062#, 16#0065#, 16#0068#,
16#0061#, 16#0076#, 16#0069#, 16#006F#,
16#0072#, 16#0073#, 16#0020#, 16#006F#,
16#0066#, 16#0020#, 16#0074#, 16#0068#,
16#0065#, 16#0020#, 16#006F#, 16#0070#,
16#0065#, 16#0072#, 16#0061#, 16#006E#,
16#0064#, 16#0073#, 16#002E#, 16#0020#,
16#0054#, 16#0068#, 16#0065#, 16#0020#,
16#004F#, 16#0063#, 16#0063#, 16#0075#,
16#0072#, 16#0072#, 16#0065#, 16#006E#,
16#0063#, 16#0065#, 16#0053#, 16#0070#,
16#0065#, 16#0063#, 16#0069#, 16#0066#,
16#0069#, 16#0063#, 16#0061#, 16#0074#,
16#0069#, 16#006F#, 16#006E#, 16#0073#,
16#0020#, 16#006F#, 16#0066#, 16#0020#,
16#0074#, 16#0068#, 16#0065#, 16#0020#,
16#0064#, 16#0069#, 16#0066#, 16#0066#,
16#0065#, 16#0072#, 16#0065#, 16#006E#,
16#0074#, 16#0020#, 16#006F#, 16#0070#,
16#0065#, 16#0072#, 16#0061#, 16#006E#,
16#0064#, 16#0073#, 16#0020#, 16#0063#,
16#0061#, 16#006E#, 16#0020#, 16#0062#,
16#0065#, 16#0020#, 16#0069#, 16#006E#,
16#0074#, 16#0065#, 16#0072#, 16#006C#,
16#0065#, 16#0061#, 16#0076#, 16#0065#,
16#0064#, 16#0020#, 16#0069#, 16#006E#,
16#0020#, 16#0061#, 16#006E#, 16#0079#,
16#0020#, 16#0077#, 16#0061#, 16#0079#,
16#0020#, 16#0061#, 16#0073#, 16#0020#,
16#006C#, 16#006F#, 16#006E#, 16#0067#,
16#0020#, 16#0061#, 16#0073#, 16#0020#,
16#0074#, 16#0068#, 16#0065#, 16#0020#,
16#006F#, 16#0072#, 16#0064#, 16#0065#,
16#0072#, 16#0069#, 16#006E#, 16#0067#,
16#0020#, 16#0069#, 16#006D#, 16#0070#,
16#006F#, 16#0073#, 16#0065#, 16#0064#,
16#0020#, 16#0062#, 16#0079#, 16#0020#,
16#0065#, 16#0061#, 16#0063#, 16#0068#,
16#0020#, 16#006F#, 16#0070#, 16#0065#,
16#0072#, 16#0061#, 16#006E#, 16#0064#,
16#0020#, 16#0061#, 16#0073#, 16#0020#,
16#0073#, 16#0075#, 16#0063#, 16#0068#,
16#0020#, 16#0069#, 16#0073#, 16#0020#,
16#0070#, 16#0072#, 16#0065#, 16#0073#,
16#0065#, 16#0072#, 16#0076#, 16#0065#,
16#0064#, 16#002E#,
others => 16#0000#),
others => <>);
-- "Tells whether the partition groups other partitions along a dimension."
MS_0895 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 79,
Unused => 70,
Length => 70,
Value =>
(16#0054#, 16#0065#, 16#006C#, 16#006C#,
16#0073#, 16#0020#, 16#0077#, 16#0068#,
16#0065#, 16#0074#, 16#0068#, 16#0065#,
16#0072#, 16#0020#, 16#0074#, 16#0068#,
16#0065#, 16#0020#, 16#0070#, 16#0061#,
16#0072#, 16#0074#, 16#0069#, 16#0074#,
16#0069#, 16#006F#, 16#006E#, 16#0020#,
16#0067#, 16#0072#, 16#006F#, 16#0075#,
16#0070#, 16#0073#, 16#0020#, 16#006F#,
16#0074#, 16#0068#, 16#0065#, 16#0072#,
16#0020#, 16#0070#, 16#0061#, 16#0072#,
16#0074#, 16#0069#, 16#0074#, 16#0069#,
16#006F#, 16#006E#, 16#0073#, 16#0020#,
16#0061#, 16#006C#, 16#006F#, 16#006E#,
16#0067#, 16#0020#, 16#0061#, 16#0020#,
16#0064#, 16#0069#, 16#006D#, 16#0065#,
16#006E#, 16#0073#, 16#0069#, 16#006F#,
16#006E#, 16#002E#,
others => 16#0000#),
others => <>);
-- "Specifies a sequence of operands."
MS_0896 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 39,
Unused => 33,
Length => 33,
Value =>
(16#0053#, 16#0070#, 16#0065#, 16#0063#,
16#0069#, 16#0066#, 16#0069#, 16#0065#,
16#0073#, 16#0020#, 16#0061#, 16#0020#,
16#0073#, 16#0065#, 16#0071#, 16#0075#,
16#0065#, 16#006E#, 16#0063#, 16#0065#,
16#0020#, 16#006F#, 16#0066#, 16#0020#,
16#006F#, 16#0070#, 16#0065#, 16#0072#,
16#0061#, 16#006E#, 16#0064#, 16#0073#,
16#002E#,
others => 16#0000#),
others => <>);
-- "Holds the object whose classification is to be tested."
MS_0897 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 55,
Unused => 54,
Length => 54,
Value =>
(16#0048#, 16#006F#, 16#006C#, 16#0064#,
16#0073#, 16#0020#, 16#0074#, 16#0068#,
16#0065#, 16#0020#, 16#006F#, 16#0062#,
16#006A#, 16#0065#, 16#0063#, 16#0074#,
16#0020#, 16#0077#, 16#0068#, 16#006F#,
16#0073#, 16#0065#, 16#0020#, 16#0063#,
16#006C#, 16#0061#, 16#0073#, 16#0073#,
16#0069#, 16#0066#, 16#0069#, 16#0063#,
16#0061#, 16#0074#, 16#0069#, 16#006F#,
16#006E#, 16#0020#, 16#0069#, 16#0073#,
16#0020#, 16#0074#, 16#006F#, 16#0020#,
16#0062#, 16#0065#, 16#0020#, 16#0074#,
16#0065#, 16#0073#, 16#0074#, 16#0065#,
16#0064#, 16#002E#,
others => 16#0000#),
others => <>);
-- "protocol"
MS_0898 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 15,
Unused => 8,
Length => 8,
Value =>
(16#0070#, 16#0072#, 16#006F#, 16#0074#,
16#006F#, 16#0063#, 16#006F#, 16#006C#,
others => 16#0000#),
others => <>);
-- "A_ownedParameter_signature"
MS_0899 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 31,
Unused => 26,
Length => 26,
Value =>
(16#0041#, 16#005F#, 16#006F#, 16#0077#,
16#006E#, 16#0065#, 16#0064#, 16#0050#,
16#0061#, 16#0072#, 16#0061#, 16#006D#,
16#0065#, 16#0074#, 16#0065#, 16#0072#,
16#005F#, 16#0073#, 16#0069#, 16#0067#,
16#006E#, 16#0061#, 16#0074#, 16#0075#,
16#0072#, 16#0065#,
others => 16#0000#),
others => <>);
-- "bodyContext"
MS_089A : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 15,
Unused => 11,
Length => 11,
Value =>
(16#0062#, 16#006F#, 16#0064#, 16#0079#,
16#0043#, 16#006F#, 16#006E#, 16#0074#,
16#0065#, 16#0078#, 16#0074#,
others => 16#0000#),
others => <>);
-- "A type constrains the values represented by a typed element."
MS_089B : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 63,
Unused => 60,
Length => 60,
Value =>
(16#0041#, 16#0020#, 16#0074#, 16#0079#,
16#0070#, 16#0065#, 16#0020#, 16#0063#,
16#006F#, 16#006E#, 16#0073#, 16#0074#,
16#0072#, 16#0061#, 16#0069#, 16#006E#,
16#0073#, 16#0020#, 16#0074#, 16#0068#,
16#0065#, 16#0020#, 16#0076#, 16#0061#,
16#006C#, 16#0075#, 16#0065#, 16#0073#,
16#0020#, 16#0072#, 16#0065#, 16#0070#,
16#0072#, 16#0065#, 16#0073#, 16#0065#,
16#006E#, 16#0074#, 16#0065#, 16#0064#,
16#0020#, 16#0062#, 16#0079#, 16#0020#,
16#0061#, 16#0020#, 16#0074#, 16#0079#,
16#0070#, 16#0065#, 16#0064#, 16#0020#,
16#0065#, 16#006C#, 16#0065#, 16#006D#,
16#0065#, 16#006E#, 16#0074#, 16#002E#,
others => 16#0000#),
others => <>);
-- "Interface"
MS_089C : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 15,
Unused => 9,
Length => 9,
Value =>
(16#0049#, 16#006E#, 16#0074#, 16#0065#,
16#0072#, 16#0066#, 16#0061#, 16#0063#,
16#0065#,
others => 16#0000#),
others => <>);
-- "junction"
MS_089D : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 15,
Unused => 8,
Length => 8,
Value =>
(16#006A#, 16#0075#, 16#006E#, 16#0063#,
16#0074#, 16#0069#, 16#006F#, 16#006E#,
others => 16#0000#),
others => <>);
-- "first_event_multiplicity"
MS_089E : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 31,
Unused => 24,
Length => 24,
Value =>
(16#0066#, 16#0069#, 16#0072#, 16#0073#,
16#0074#, 16#005F#, 16#0065#, 16#0076#,
16#0065#, 16#006E#, 16#0074#, 16#005F#,
16#006D#, 16#0075#, 16#006C#, 16#0074#,
16#0069#, 16#0070#, 16#006C#, 16#0069#,
16#0063#, 16#0069#, 16#0074#, 16#0079#,
others => 16#0000#),
others => <>);
-- "This is a derived value, indicating whether the aggregation of the Property is composite or not."
MS_089F : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 103,
Unused => 96,
Length => 96,
Value =>
(16#0054#, 16#0068#, 16#0069#, 16#0073#,
16#0020#, 16#0069#, 16#0073#, 16#0020#,
16#0061#, 16#0020#, 16#0064#, 16#0065#,
16#0072#, 16#0069#, 16#0076#, 16#0065#,
16#0064#, 16#0020#, 16#0076#, 16#0061#,
16#006C#, 16#0075#, 16#0065#, 16#002C#,
16#0020#, 16#0069#, 16#006E#, 16#0064#,
16#0069#, 16#0063#, 16#0061#, 16#0074#,
16#0069#, 16#006E#, 16#0067#, 16#0020#,
16#0077#, 16#0068#, 16#0065#, 16#0074#,
16#0068#, 16#0065#, 16#0072#, 16#0020#,
16#0074#, 16#0068#, 16#0065#, 16#0020#,
16#0061#, 16#0067#, 16#0067#, 16#0072#,
16#0065#, 16#0067#, 16#0061#, 16#0074#,
16#0069#, 16#006F#, 16#006E#, 16#0020#,
16#006F#, 16#0066#, 16#0020#, 16#0074#,
16#0068#, 16#0065#, 16#0020#, 16#0050#,
16#0072#, 16#006F#, 16#0070#, 16#0065#,
16#0072#, 16#0074#, 16#0079#, 16#0020#,
16#0069#, 16#0073#, 16#0020#, 16#0063#,
16#006F#, 16#006D#, 16#0070#, 16#006F#,
16#0073#, 16#0069#, 16#0074#, 16#0065#,
16#0020#, 16#006F#, 16#0072#, 16#0020#,
16#006E#, 16#006F#, 16#0074#, 16#002E#,
others => 16#0000#),
others => <>);
-- "DataType"
MS_08A0 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 15,
Unused => 8,
Length => 8,
Value =>
(16#0044#, 16#0061#, 16#0074#, 16#0061#,
16#0054#, 16#0079#, 16#0070#, 16#0065#,
others => 16#0000#),
others => <>);
-- "An interval defines the range between two value specifications."
MS_08A1 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 71,
Unused => 63,
Length => 63,
Value =>
(16#0041#, 16#006E#, 16#0020#, 16#0069#,
16#006E#, 16#0074#, 16#0065#, 16#0072#,
16#0076#, 16#0061#, 16#006C#, 16#0020#,
16#0064#, 16#0065#, 16#0066#, 16#0069#,
16#006E#, 16#0065#, 16#0073#, 16#0020#,
16#0074#, 16#0068#, 16#0065#, 16#0020#,
16#0072#, 16#0061#, 16#006E#, 16#0067#,
16#0065#, 16#0020#, 16#0062#, 16#0065#,
16#0074#, 16#0077#, 16#0065#, 16#0065#,
16#006E#, 16#0020#, 16#0074#, 16#0077#,
16#006F#, 16#0020#, 16#0076#, 16#0061#,
16#006C#, 16#0075#, 16#0065#, 16#0020#,
16#0073#, 16#0070#, 16#0065#, 16#0063#,
16#0069#, 16#0066#, 16#0069#, 16#0063#,
16#0061#, 16#0074#, 16#0069#, 16#006F#,
16#006E#, 16#0073#, 16#002E#,
others => 16#0000#),
others => <>);
-- "deployedArtifact"
MS_08A2 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 23,
Unused => 16,
Length => 16,
Value =>
(16#0064#, 16#0065#, 16#0070#, 16#006C#,
16#006F#, 16#0079#, 16#0065#, 16#0064#,
16#0041#, 16#0072#, 16#0074#, 16#0069#,
16#0066#, 16#0061#, 16#0063#, 16#0074#,
others => 16#0000#),
others => <>);
-- "types"
MS_08A3 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 7,
Unused => 5,
Length => 5,
Value =>
(16#0074#, 16#0079#, 16#0070#, 16#0065#,
16#0073#,
others => 16#0000#),
others => <>);
-- "A pin is a typed element and multiplicity element that provides values to actions and accept result values from them."
MS_08A4 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 127,
Unused => 117,
Length => 117,
Value =>
(16#0041#, 16#0020#, 16#0070#, 16#0069#,
16#006E#, 16#0020#, 16#0069#, 16#0073#,
16#0020#, 16#0061#, 16#0020#, 16#0074#,
16#0079#, 16#0070#, 16#0065#, 16#0064#,
16#0020#, 16#0065#, 16#006C#, 16#0065#,
16#006D#, 16#0065#, 16#006E#, 16#0074#,
16#0020#, 16#0061#, 16#006E#, 16#0064#,
16#0020#, 16#006D#, 16#0075#, 16#006C#,
16#0074#, 16#0069#, 16#0070#, 16#006C#,
16#0069#, 16#0063#, 16#0069#, 16#0074#,
16#0079#, 16#0020#, 16#0065#, 16#006C#,
16#0065#, 16#006D#, 16#0065#, 16#006E#,
16#0074#, 16#0020#, 16#0074#, 16#0068#,
16#0061#, 16#0074#, 16#0020#, 16#0070#,
16#0072#, 16#006F#, 16#0076#, 16#0069#,
16#0064#, 16#0065#, 16#0073#, 16#0020#,
16#0076#, 16#0061#, 16#006C#, 16#0075#,
16#0065#, 16#0073#, 16#0020#, 16#0074#,
16#006F#, 16#0020#, 16#0061#, 16#0063#,
16#0074#, 16#0069#, 16#006F#, 16#006E#,
16#0073#, 16#0020#, 16#0061#, 16#006E#,
16#0064#, 16#0020#, 16#0061#, 16#0063#,
16#0063#, 16#0065#, 16#0070#, 16#0074#,
16#0020#, 16#0072#, 16#0065#, 16#0073#,
16#0075#, 16#006C#, 16#0074#, 16#0020#,
16#0076#, 16#0061#, 16#006C#, 16#0075#,
16#0065#, 16#0073#, 16#0020#, 16#0066#,
16#0072#, 16#006F#, 16#006D#, 16#0020#,
16#0074#, 16#0068#, 16#0065#, 16#006D#,
16#002E#,
others => 16#0000#),
others => <>);
-- "Behavior whose execution is occurring."
MS_08A5 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 39,
Unused => 38,
Length => 38,
Value =>
(16#0042#, 16#0065#, 16#0068#, 16#0061#,
16#0076#, 16#0069#, 16#006F#, 16#0072#,
16#0020#, 16#0077#, 16#0068#, 16#006F#,
16#0073#, 16#0065#, 16#0020#, 16#0065#,
16#0078#, 16#0065#, 16#0063#, 16#0075#,
16#0074#, 16#0069#, 16#006F#, 16#006E#,
16#0020#, 16#0069#, 16#0073#, 16#0020#,
16#006F#, 16#0063#, 16#0063#, 16#0075#,
16#0072#, 16#0072#, 16#0069#, 16#006E#,
16#0067#, 16#002E#,
others => 16#0000#),
others => <>);
-- "isAbstract"
MS_08A6 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 15,
Unused => 10,
Length => 10,
Value =>
(16#0069#, 16#0073#, 16#0041#, 16#0062#,
16#0073#, 16#0074#, 16#0072#, 16#0061#,
16#0063#, 16#0074#,
others => 16#0000#),
others => <>);
-- "Only synchronous call actions can have result pins."
MS_08A7 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 55,
Unused => 51,
Length => 51,
Value =>
(16#004F#, 16#006E#, 16#006C#, 16#0079#,
16#0020#, 16#0073#, 16#0079#, 16#006E#,
16#0063#, 16#0068#, 16#0072#, 16#006F#,
16#006E#, 16#006F#, 16#0075#, 16#0073#,
16#0020#, 16#0063#, 16#0061#, 16#006C#,
16#006C#, 16#0020#, 16#0061#, 16#0063#,
16#0074#, 16#0069#, 16#006F#, 16#006E#,
16#0073#, 16#0020#, 16#0063#, 16#0061#,
16#006E#, 16#0020#, 16#0068#, 16#0061#,
16#0076#, 16#0065#, 16#0020#, 16#0072#,
16#0065#, 16#0073#, 16#0075#, 16#006C#,
16#0074#, 16#0020#, 16#0070#, 16#0069#,
16#006E#, 16#0073#, 16#002E#,
others => 16#0000#),
others => <>);
-- "A create link action is a write link action for creating links."
MS_08A8 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 71,
Unused => 63,
Length => 63,
Value =>
(16#0041#, 16#0020#, 16#0063#, 16#0072#,
16#0065#, 16#0061#, 16#0074#, 16#0065#,
16#0020#, 16#006C#, 16#0069#, 16#006E#,
16#006B#, 16#0020#, 16#0061#, 16#0063#,
16#0074#, 16#0069#, 16#006F#, 16#006E#,
16#0020#, 16#0069#, 16#0073#, 16#0020#,
16#0061#, 16#0020#, 16#0077#, 16#0072#,
16#0069#, 16#0074#, 16#0065#, 16#0020#,
16#006C#, 16#0069#, 16#006E#, 16#006B#,
16#0020#, 16#0061#, 16#0063#, 16#0074#,
16#0069#, 16#006F#, 16#006E#, 16#0020#,
16#0066#, 16#006F#, 16#0072#, 16#0020#,
16#0063#, 16#0072#, 16#0065#, 16#0061#,
16#0074#, 16#0069#, 16#006E#, 16#0067#,
16#0020#, 16#006C#, 16#0069#, 16#006E#,
16#006B#, 16#0073#, 16#002E#,
others => 16#0000#),
others => <>);
-- "RedefinableTemplateSignature"
MS_08A9 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 31,
Unused => 28,
Length => 28,
Value =>
(16#0052#, 16#0065#, 16#0064#, 16#0065#,
16#0066#, 16#0069#, 16#006E#, 16#0061#,
16#0062#, 16#006C#, 16#0065#, 16#0054#,
16#0065#, 16#006D#, 16#0070#, 16#006C#,
16#0061#, 16#0074#, 16#0065#, 16#0053#,
16#0069#, 16#0067#, 16#006E#, 16#0061#,
16#0074#, 16#0075#, 16#0072#, 16#0065#,
others => 16#0000#),
others => <>);
-- "destroyLinkAction"
MS_08AA : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 23,
Unused => 17,
Length => 17,
Value =>
(16#0064#, 16#0065#, 16#0073#, 16#0074#,
16#0072#, 16#006F#, 16#0079#, 16#004C#,
16#0069#, 16#006E#, 16#006B#, 16#0041#,
16#0063#, 16#0074#, 16#0069#, 16#006F#,
16#006E#,
others => 16#0000#),
others => <>);
-- "If this operation has a return parameter, lower equals the value of lower for that parameter. Otherwise lower is not defined."
MS_08AB : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 135,
Unused => 125,
Length => 125,
Value =>
(16#0049#, 16#0066#, 16#0020#, 16#0074#,
16#0068#, 16#0069#, 16#0073#, 16#0020#,
16#006F#, 16#0070#, 16#0065#, 16#0072#,
16#0061#, 16#0074#, 16#0069#, 16#006F#,
16#006E#, 16#0020#, 16#0068#, 16#0061#,
16#0073#, 16#0020#, 16#0061#, 16#0020#,
16#0072#, 16#0065#, 16#0074#, 16#0075#,
16#0072#, 16#006E#, 16#0020#, 16#0070#,
16#0061#, 16#0072#, 16#0061#, 16#006D#,
16#0065#, 16#0074#, 16#0065#, 16#0072#,
16#002C#, 16#0020#, 16#006C#, 16#006F#,
16#0077#, 16#0065#, 16#0072#, 16#0020#,
16#0065#, 16#0071#, 16#0075#, 16#0061#,
16#006C#, 16#0073#, 16#0020#, 16#0074#,
16#0068#, 16#0065#, 16#0020#, 16#0076#,
16#0061#, 16#006C#, 16#0075#, 16#0065#,
16#0020#, 16#006F#, 16#0066#, 16#0020#,
16#006C#, 16#006F#, 16#0077#, 16#0065#,
16#0072#, 16#0020#, 16#0066#, 16#006F#,
16#0072#, 16#0020#, 16#0074#, 16#0068#,
16#0061#, 16#0074#, 16#0020#, 16#0070#,
16#0061#, 16#0072#, 16#0061#, 16#006D#,
16#0065#, 16#0074#, 16#0065#, 16#0072#,
16#002E#, 16#0020#, 16#004F#, 16#0074#,
16#0068#, 16#0065#, 16#0072#, 16#0077#,
16#0069#, 16#0073#, 16#0065#, 16#0020#,
16#006C#, 16#006F#, 16#0077#, 16#0065#,
16#0072#, 16#0020#, 16#0069#, 16#0073#,
16#0020#, 16#006E#, 16#006F#, 16#0074#,
16#0020#, 16#0064#, 16#0065#, 16#0066#,
16#0069#, 16#006E#, 16#0065#, 16#0064#,
16#002E#,
others => 16#0000#),
others => <>);
-- "The Element that owns this element."
MS_08AC : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 39,
Unused => 35,
Length => 35,
Value =>
(16#0054#, 16#0068#, 16#0065#, 16#0020#,
16#0045#, 16#006C#, 16#0065#, 16#006D#,
16#0065#, 16#006E#, 16#0074#, 16#0020#,
16#0074#, 16#0068#, 16#0061#, 16#0074#,
16#0020#, 16#006F#, 16#0077#, 16#006E#,
16#0073#, 16#0020#, 16#0074#, 16#0068#,
16#0069#, 16#0073#, 16#0020#, 16#0065#,
16#006C#, 16#0065#, 16#006D#, 16#0065#,
16#006E#, 16#0074#, 16#002E#,
others => 16#0000#),
others => <>);
-- "A final state has no exit behavior."
MS_08AD : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 39,
Unused => 35,
Length => 35,
Value =>
(16#0041#, 16#0020#, 16#0066#, 16#0069#,
16#006E#, 16#0061#, 16#006C#, 16#0020#,
16#0073#, 16#0074#, 16#0061#, 16#0074#,
16#0065#, 16#0020#, 16#0068#, 16#0061#,
16#0073#, 16#0020#, 16#006E#, 16#006F#,
16#0020#, 16#0065#, 16#0078#, 16#0069#,
16#0074#, 16#0020#, 16#0062#, 16#0065#,
16#0068#, 16#0061#, 16#0076#, 16#0069#,
16#006F#, 16#0072#, 16#002E#,
others => 16#0000#),
others => <>);
-- "isConsistentWith"
MS_08AE : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 23,
Unused => 16,
Length => 16,
Value =>
(16#0069#, 16#0073#, 16#0043#, 16#006F#,
16#006E#, 16#0073#, 16#0069#, 16#0073#,
16#0074#, 16#0065#, 16#006E#, 16#0074#,
16#0057#, 16#0069#, 16#0074#, 16#0068#,
others => 16#0000#),
others => <>);
-- "Missing derivation for StructuredClassifier::/part : Property"
MS_08AF : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 63,
Unused => 61,
Length => 61,
Value =>
(16#004D#, 16#0069#, 16#0073#, 16#0073#,
16#0069#, 16#006E#, 16#0067#, 16#0020#,
16#0064#, 16#0065#, 16#0072#, 16#0069#,
16#0076#, 16#0061#, 16#0074#, 16#0069#,
16#006F#, 16#006E#, 16#0020#, 16#0066#,
16#006F#, 16#0072#, 16#0020#, 16#0053#,
16#0074#, 16#0072#, 16#0075#, 16#0063#,
16#0074#, 16#0075#, 16#0072#, 16#0065#,
16#0064#, 16#0043#, 16#006C#, 16#0061#,
16#0073#, 16#0073#, 16#0069#, 16#0066#,
16#0069#, 16#0065#, 16#0072#, 16#003A#,
16#003A#, 16#002F#, 16#0070#, 16#0061#,
16#0072#, 16#0074#, 16#0020#, 16#003A#,
16#0020#, 16#0050#, 16#0072#, 16#006F#,
16#0070#, 16#0065#, 16#0072#, 16#0074#,
16#0079#,
others => 16#0000#),
others => <>);
-- "OpaqueExpression"
MS_08B0 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 23,
Unused => 16,
Length => 16,
Value =>
(16#004F#, 16#0070#, 16#0061#, 16#0071#,
16#0075#, 16#0065#, 16#0045#, 16#0078#,
16#0070#, 16#0072#, 16#0065#, 16#0073#,
16#0073#, 16#0069#, 16#006F#, 16#006E#,
others => 16#0000#),
others => <>);
-- "redefinedConnector"
MS_08B1 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 23,
Unused => 18,
Length => 18,
Value =>
(16#0072#, 16#0065#, 16#0064#, 16#0065#,
16#0066#, 16#0069#, 16#006E#, 16#0065#,
16#0064#, 16#0043#, 16#006F#, 16#006E#,
16#006E#, 16#0065#, 16#0063#, 16#0074#,
16#006F#, 16#0072#,
others => 16#0000#),
others => <>);
-- "valuePin"
MS_08B2 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 15,
Unused => 8,
Length => 8,
Value =>
(16#0076#, 16#0061#, 16#006C#, 16#0075#,
16#0065#, 16#0050#, 16#0069#, 16#006E#,
others => 16#0000#),
others => <>);
-- "A_bodyPart_loopNode"
MS_08B3 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 23,
Unused => 19,
Length => 19,
Value =>
(16#0041#, 16#005F#, 16#0062#, 16#006F#,
16#0064#, 16#0079#, 16#0050#, 16#0061#,
16#0072#, 16#0074#, 16#005F#, 16#006C#,
16#006F#, 16#006F#, 16#0070#, 16#004E#,
16#006F#, 16#0064#, 16#0065#,
others => 16#0000#),
others => <>);
-- "A reclassify object action is an action that changes which classifiers classify an object."
MS_08B4 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 95,
Unused => 90,
Length => 90,
Value =>
(16#0041#, 16#0020#, 16#0072#, 16#0065#,
16#0063#, 16#006C#, 16#0061#, 16#0073#,
16#0073#, 16#0069#, 16#0066#, 16#0079#,
16#0020#, 16#006F#, 16#0062#, 16#006A#,
16#0065#, 16#0063#, 16#0074#, 16#0020#,
16#0061#, 16#0063#, 16#0074#, 16#0069#,
16#006F#, 16#006E#, 16#0020#, 16#0069#,
16#0073#, 16#0020#, 16#0061#, 16#006E#,
16#0020#, 16#0061#, 16#0063#, 16#0074#,
16#0069#, 16#006F#, 16#006E#, 16#0020#,
16#0074#, 16#0068#, 16#0061#, 16#0074#,
16#0020#, 16#0063#, 16#0068#, 16#0061#,
16#006E#, 16#0067#, 16#0065#, 16#0073#,
16#0020#, 16#0077#, 16#0068#, 16#0069#,
16#0063#, 16#0068#, 16#0020#, 16#0063#,
16#006C#, 16#0061#, 16#0073#, 16#0073#,
16#0069#, 16#0066#, 16#0069#, 16#0065#,
16#0072#, 16#0073#, 16#0020#, 16#0063#,
16#006C#, 16#0061#, 16#0073#, 16#0073#,
16#0069#, 16#0066#, 16#0079#, 16#0020#,
16#0061#, 16#006E#, 16#0020#, 16#006F#,
16#0062#, 16#006A#, 16#0065#, 16#0063#,
16#0074#, 16#002E#,
others => 16#0000#),
others => <>);
-- "A_ownedTemplateSignature_template"
MS_08B5 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 39,
Unused => 33,
Length => 33,
Value =>
(16#0041#, 16#005F#, 16#006F#, 16#0077#,
16#006E#, 16#0065#, 16#0064#, 16#0054#,
16#0065#, 16#006D#, 16#0070#, 16#006C#,
16#0061#, 16#0074#, 16#0065#, 16#0053#,
16#0069#, 16#0067#, 16#006E#, 16#0061#,
16#0074#, 16#0075#, 16#0072#, 16#0065#,
16#005F#, 16#0074#, 16#0065#, 16#006D#,
16#0070#, 16#006C#, 16#0061#, 16#0074#,
16#0065#,
others => 16#0000#),
others => <>);
-- "A_redefinitionContext_region"
MS_08B6 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 31,
Unused => 28,
Length => 28,
Value =>
(16#0041#, 16#005F#, 16#0072#, 16#0065#,
16#0064#, 16#0065#, 16#0066#, 16#0069#,
16#006E#, 16#0069#, 16#0074#, 16#0069#,
16#006F#, 16#006E#, 16#0043#, 16#006F#,
16#006E#, 16#0074#, 16#0065#, 16#0078#,
16#0074#, 16#005F#, 16#0072#, 16#0065#,
16#0067#, 16#0069#, 16#006F#, 16#006E#,
others => 16#0000#),
others => <>);
-- "DirectedRelationship"
MS_08B7 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 23,
Unused => 20,
Length => 20,
Value =>
(16#0044#, 16#0069#, 16#0072#, 16#0065#,
16#0063#, 16#0074#, 16#0065#, 16#0064#,
16#0052#, 16#0065#, 16#006C#, 16#0061#,
16#0074#, 16#0069#, 16#006F#, 16#006E#,
16#0073#, 16#0068#, 16#0069#, 16#0070#,
others => 16#0000#),
others => <>);
-- "broadcastSignalAction"
MS_08B8 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 23,
Unused => 21,
Length => 21,
Value =>
(16#0062#, 16#0072#, 16#006F#, 16#0061#,
16#0064#, 16#0063#, 16#0061#, 16#0073#,
16#0074#, 16#0053#, 16#0069#, 16#0067#,
16#006E#, 16#0061#, 16#006C#, 16#0041#,
16#0063#, 16#0074#, 16#0069#, 16#006F#,
16#006E#,
others => 16#0000#),
others => <>);
-- "A property represents a set of instances that are owned by a containing classifier instance."
MS_08B9 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 95,
Unused => 92,
Length => 92,
Value =>
(16#0041#, 16#0020#, 16#0070#, 16#0072#,
16#006F#, 16#0070#, 16#0065#, 16#0072#,
16#0074#, 16#0079#, 16#0020#, 16#0072#,
16#0065#, 16#0070#, 16#0072#, 16#0065#,
16#0073#, 16#0065#, 16#006E#, 16#0074#,
16#0073#, 16#0020#, 16#0061#, 16#0020#,
16#0073#, 16#0065#, 16#0074#, 16#0020#,
16#006F#, 16#0066#, 16#0020#, 16#0069#,
16#006E#, 16#0073#, 16#0074#, 16#0061#,
16#006E#, 16#0063#, 16#0065#, 16#0073#,
16#0020#, 16#0074#, 16#0068#, 16#0061#,
16#0074#, 16#0020#, 16#0061#, 16#0072#,
16#0065#, 16#0020#, 16#006F#, 16#0077#,
16#006E#, 16#0065#, 16#0064#, 16#0020#,
16#0062#, 16#0079#, 16#0020#, 16#0061#,
16#0020#, 16#0063#, 16#006F#, 16#006E#,
16#0074#, 16#0061#, 16#0069#, 16#006E#,
16#0069#, 16#006E#, 16#0067#, 16#0020#,
16#0063#, 16#006C#, 16#0061#, 16#0073#,
16#0073#, 16#0069#, 16#0066#, 16#0069#,
16#0065#, 16#0072#, 16#0020#, 16#0069#,
16#006E#, 16#0073#, 16#0074#, 16#0061#,
16#006E#, 16#0063#, 16#0065#, 16#002E#,
others => 16#0000#),
others => <>);
-- "A classifier may only specialize classifiers of a valid type."
MS_08BA : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 63,
Unused => 61,
Length => 61,
Value =>
(16#0041#, 16#0020#, 16#0063#, 16#006C#,
16#0061#, 16#0073#, 16#0073#, 16#0069#,
16#0066#, 16#0069#, 16#0065#, 16#0072#,
16#0020#, 16#006D#, 16#0061#, 16#0079#,
16#0020#, 16#006F#, 16#006E#, 16#006C#,
16#0079#, 16#0020#, 16#0073#, 16#0070#,
16#0065#, 16#0063#, 16#0069#, 16#0061#,
16#006C#, 16#0069#, 16#007A#, 16#0065#,
16#0020#, 16#0063#, 16#006C#, 16#0061#,
16#0073#, 16#0073#, 16#0069#, 16#0066#,
16#0069#, 16#0065#, 16#0072#, 16#0073#,
16#0020#, 16#006F#, 16#0066#, 16#0020#,
16#0061#, 16#0020#, 16#0076#, 16#0061#,
16#006C#, 16#0069#, 16#0064#, 16#0020#,
16#0074#, 16#0079#, 16#0070#, 16#0065#,
16#002E#,
others => 16#0000#),
others => <>);
-- "non_owned_end"
MS_08BB : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 15,
Unused => 13,
Length => 13,
Value =>
(16#006E#, 16#006F#, 16#006E#, 16#005F#,
16#006F#, 16#0077#, 16#006E#, 16#0065#,
16#0064#, 16#005F#, 16#0065#, 16#006E#,
16#0064#,
others => 16#0000#),
others => <>);
-- "messageKind"
MS_08BC : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 15,
Unused => 11,
Length => 11,
Value =>
(16#006D#, 16#0065#, 16#0073#, 16#0073#,
16#0061#, 16#0067#, 16#0065#, 16#004B#,
16#0069#, 16#006E#, 16#0064#,
others => 16#0000#),
others => <>);
-- "The type of an activity parameter node is the same as the type of its parameter."
MS_08BD : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 87,
Unused => 80,
Length => 80,
Value =>
(16#0054#, 16#0068#, 16#0065#, 16#0020#,
16#0074#, 16#0079#, 16#0070#, 16#0065#,
16#0020#, 16#006F#, 16#0066#, 16#0020#,
16#0061#, 16#006E#, 16#0020#, 16#0061#,
16#0063#, 16#0074#, 16#0069#, 16#0076#,
16#0069#, 16#0074#, 16#0079#, 16#0020#,
16#0070#, 16#0061#, 16#0072#, 16#0061#,
16#006D#, 16#0065#, 16#0074#, 16#0065#,
16#0072#, 16#0020#, 16#006E#, 16#006F#,
16#0064#, 16#0065#, 16#0020#, 16#0069#,
16#0073#, 16#0020#, 16#0074#, 16#0068#,
16#0065#, 16#0020#, 16#0073#, 16#0061#,
16#006D#, 16#0065#, 16#0020#, 16#0061#,
16#0073#, 16#0020#, 16#0074#, 16#0068#,
16#0065#, 16#0020#, 16#0074#, 16#0079#,
16#0070#, 16#0065#, 16#0020#, 16#006F#,
16#0066#, 16#0020#, 16#0069#, 16#0074#,
16#0073#, 16#0020#, 16#0070#, 16#0061#,
16#0072#, 16#0061#, 16#006D#, 16#0065#,
16#0074#, 16#0065#, 16#0072#, 16#002E#,
others => 16#0000#),
others => <>);
-- "informationFlow"
MS_08BE : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 23,
Unused => 15,
Length => 15,
Value =>
(16#0069#, 16#006E#, 16#0066#, 16#006F#,
16#0072#, 16#006D#, 16#0061#, 16#0074#,
16#0069#, 16#006F#, 16#006E#, 16#0046#,
16#006C#, 16#006F#, 16#0077#,
others => 16#0000#),
others => <>);
-- "structuredNodeInput"
MS_08BF : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 23,
Unused => 19,
Length => 19,
Value =>
(16#0073#, 16#0074#, 16#0072#, 16#0075#,
16#0063#, 16#0074#, 16#0075#, 16#0072#,
16#0065#, 16#0064#, 16#004E#, 16#006F#,
16#0064#, 16#0065#, 16#0049#, 16#006E#,
16#0070#, 16#0075#, 16#0074#,
others => 16#0000#),
others => <>);
-- "A change event models a change in the system configuration that makes a condition true."
MS_08C0 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 95,
Unused => 87,
Length => 87,
Value =>
(16#0041#, 16#0020#, 16#0063#, 16#0068#,
16#0061#, 16#006E#, 16#0067#, 16#0065#,
16#0020#, 16#0065#, 16#0076#, 16#0065#,
16#006E#, 16#0074#, 16#0020#, 16#006D#,
16#006F#, 16#0064#, 16#0065#, 16#006C#,
16#0073#, 16#0020#, 16#0061#, 16#0020#,
16#0063#, 16#0068#, 16#0061#, 16#006E#,
16#0067#, 16#0065#, 16#0020#, 16#0069#,
16#006E#, 16#0020#, 16#0074#, 16#0068#,
16#0065#, 16#0020#, 16#0073#, 16#0079#,
16#0073#, 16#0074#, 16#0065#, 16#006D#,
16#0020#, 16#0063#, 16#006F#, 16#006E#,
16#0066#, 16#0069#, 16#0067#, 16#0075#,
16#0072#, 16#0061#, 16#0074#, 16#0069#,
16#006F#, 16#006E#, 16#0020#, 16#0074#,
16#0068#, 16#0061#, 16#0074#, 16#0020#,
16#006D#, 16#0061#, 16#006B#, 16#0065#,
16#0073#, 16#0020#, 16#0061#, 16#0020#,
16#0063#, 16#006F#, 16#006E#, 16#0064#,
16#0069#, 16#0074#, 16#0069#, 16#006F#,
16#006E#, 16#0020#, 16#0074#, 16#0072#,
16#0075#, 16#0065#, 16#002E#,
others => 16#0000#),
others => <>);
-- "element"
MS_08C1 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 15,
Unused => 7,
Length => 7,
Value =>
(16#0065#, 16#006C#, 16#0065#, 16#006D#,
16#0065#, 16#006E#, 16#0074#,
others => 16#0000#),
others => <>);
-- "Generalization"
MS_08C2 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 15,
Unused => 14,
Length => 14,
Value =>
(16#0047#, 16#0065#, 16#006E#, 16#0065#,
16#0072#, 16#0061#, 16#006C#, 16#0069#,
16#007A#, 16#0061#, 16#0074#, 16#0069#,
16#006F#, 16#006E#,
others => 16#0000#),
others => <>);
-- "isUnique"
MS_08C3 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 15,
Unused => 8,
Length => 8,
Value =>
(16#0069#, 16#0073#, 16#0055#, 16#006E#,
16#0069#, 16#0071#, 16#0075#, 16#0065#,
others => 16#0000#),
others => <>);
-- "StructuralFeature"
MS_08C4 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 23,
Unused => 17,
Length => 17,
Value =>
(16#0053#, 16#0074#, 16#0072#, 16#0075#,
16#0063#, 16#0074#, 16#0075#, 16#0072#,
16#0061#, 16#006C#, 16#0046#, 16#0065#,
16#0061#, 16#0074#, 16#0075#, 16#0072#,
16#0065#,
others => 16#0000#),
others => <>);
-- "A_extensionPoint_useCase"
MS_08C5 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 31,
Unused => 24,
Length => 24,
Value =>
(16#0041#, 16#005F#, 16#0065#, 16#0078#,
16#0074#, 16#0065#, 16#006E#, 16#0073#,
16#0069#, 16#006F#, 16#006E#, 16#0050#,
16#006F#, 16#0069#, 16#006E#, 16#0074#,
16#005F#, 16#0075#, 16#0073#, 16#0065#,
16#0043#, 16#0061#, 16#0073#, 16#0065#,
others => 16#0000#),
others => <>);
-- "InteractionUse"
MS_08C6 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 15,
Unused => 14,
Length => 14,
Value =>
(16#0049#, 16#006E#, 16#0074#, 16#0065#,
16#0072#, 16#0061#, 16#0063#, 16#0074#,
16#0069#, 16#006F#, 16#006E#, 16#0055#,
16#0073#, 16#0065#,
others => 16#0000#),
others => <>);
-- "excludeCollisions"
MS_08C7 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 23,
Unused => 17,
Length => 17,
Value =>
(16#0065#, 16#0078#, 16#0063#, 16#006C#,
16#0075#, 16#0064#, 16#0065#, 16#0043#,
16#006F#, 16#006C#, 16#006C#, 16#0069#,
16#0073#, 16#0069#, 16#006F#, 16#006E#,
16#0073#,
others => 16#0000#),
others => <>);
-- "constrainedElement"
MS_08C8 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 23,
Unused => 18,
Length => 18,
Value =>
(16#0063#, 16#006F#, 16#006E#, 16#0073#,
16#0074#, 16#0072#, 16#0061#, 16#0069#,
16#006E#, 16#0065#, 16#0064#, 16#0045#,
16#006C#, 16#0065#, 16#006D#, 16#0065#,
16#006E#, 16#0074#,
others => 16#0000#),
others => <>);
-- "A_mapping_abstraction"
MS_08C9 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 23,
Unused => 21,
Length => 21,
Value =>
(16#0041#, 16#005F#, 16#006D#, 16#0061#,
16#0070#, 16#0070#, 16#0069#, 16#006E#,
16#0067#, 16#005F#, 16#0061#, 16#0062#,
16#0073#, 16#0074#, 16#0072#, 16#0061#,
16#0063#, 16#0074#, 16#0069#, 16#006F#,
16#006E#,
others => 16#0000#),
others => <>);
-- "If the decision node has a decision input flow and an incoming control flow, then a decision input behavior has one input parameter whose type is the same as or a supertype of the type of object tokens offered on the decision input flow."
MS_08CA : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 247,
Unused => 237,
Length => 237,
Value =>
(16#0049#, 16#0066#, 16#0020#, 16#0074#,
16#0068#, 16#0065#, 16#0020#, 16#0064#,
16#0065#, 16#0063#, 16#0069#, 16#0073#,
16#0069#, 16#006F#, 16#006E#, 16#0020#,
16#006E#, 16#006F#, 16#0064#, 16#0065#,
16#0020#, 16#0068#, 16#0061#, 16#0073#,
16#0020#, 16#0061#, 16#0020#, 16#0064#,
16#0065#, 16#0063#, 16#0069#, 16#0073#,
16#0069#, 16#006F#, 16#006E#, 16#0020#,
16#0069#, 16#006E#, 16#0070#, 16#0075#,
16#0074#, 16#0020#, 16#0066#, 16#006C#,
16#006F#, 16#0077#, 16#0020#, 16#0061#,
16#006E#, 16#0064#, 16#0020#, 16#0061#,
16#006E#, 16#0020#, 16#0069#, 16#006E#,
16#0063#, 16#006F#, 16#006D#, 16#0069#,
16#006E#, 16#0067#, 16#0020#, 16#0063#,
16#006F#, 16#006E#, 16#0074#, 16#0072#,
16#006F#, 16#006C#, 16#0020#, 16#0066#,
16#006C#, 16#006F#, 16#0077#, 16#002C#,
16#0020#, 16#0074#, 16#0068#, 16#0065#,
16#006E#, 16#0020#, 16#0061#, 16#0020#,
16#0064#, 16#0065#, 16#0063#, 16#0069#,
16#0073#, 16#0069#, 16#006F#, 16#006E#,
16#0020#, 16#0069#, 16#006E#, 16#0070#,
16#0075#, 16#0074#, 16#0020#, 16#0062#,
16#0065#, 16#0068#, 16#0061#, 16#0076#,
16#0069#, 16#006F#, 16#0072#, 16#0020#,
16#0068#, 16#0061#, 16#0073#, 16#0020#,
16#006F#, 16#006E#, 16#0065#, 16#0020#,
16#0069#, 16#006E#, 16#0070#, 16#0075#,
16#0074#, 16#0020#, 16#0070#, 16#0061#,
16#0072#, 16#0061#, 16#006D#, 16#0065#,
16#0074#, 16#0065#, 16#0072#, 16#0020#,
16#0077#, 16#0068#, 16#006F#, 16#0073#,
16#0065#, 16#0020#, 16#0074#, 16#0079#,
16#0070#, 16#0065#, 16#0020#, 16#0069#,
16#0073#, 16#0020#, 16#0074#, 16#0068#,
16#0065#, 16#0020#, 16#0073#, 16#0061#,
16#006D#, 16#0065#, 16#0020#, 16#0061#,
16#0073#, 16#0020#, 16#006F#, 16#0072#,
16#0020#, 16#0061#, 16#0020#, 16#0073#,
16#0075#, 16#0070#, 16#0065#, 16#0072#,
16#0074#, 16#0079#, 16#0070#, 16#0065#,
16#0020#, 16#006F#, 16#0066#, 16#0020#,
16#0074#, 16#0068#, 16#0065#, 16#0020#,
16#0074#, 16#0079#, 16#0070#, 16#0065#,
16#0020#, 16#006F#, 16#0066#, 16#0020#,
16#006F#, 16#0062#, 16#006A#, 16#0065#,
16#0063#, 16#0074#, 16#0020#, 16#0074#,
16#006F#, 16#006B#, 16#0065#, 16#006E#,
16#0073#, 16#0020#, 16#006F#, 16#0066#,
16#0066#, 16#0065#, 16#0072#, 16#0065#,
16#0064#, 16#0020#, 16#006F#, 16#006E#,
16#0020#, 16#0074#, 16#0068#, 16#0065#,
16#0020#, 16#0064#, 16#0065#, 16#0063#,
16#0069#, 16#0073#, 16#0069#, 16#006F#,
16#006E#, 16#0020#, 16#0069#, 16#006E#,
16#0070#, 16#0075#, 16#0074#, 16#0020#,
16#0066#, 16#006C#, 16#006F#, 16#0077#,
16#002E#,
others => 16#0000#),
others => <>);
-- "A_incoming_target_vertex"
MS_08CB : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 31,
Unused => 24,
Length => 24,
Value =>
(16#0041#, 16#005F#, 16#0069#, 16#006E#,
16#0063#, 16#006F#, 16#006D#, 16#0069#,
16#006E#, 16#0067#, 16#005F#, 16#0074#,
16#0061#, 16#0072#, 16#0067#, 16#0065#,
16#0074#, 16#005F#, 16#0076#, 16#0065#,
16#0072#, 16#0074#, 16#0065#, 16#0078#,
others => 16#0000#),
others => <>);
-- "predecessorClause"
MS_08CC : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 23,
Unused => 17,
Length => 17,
Value =>
(16#0070#, 16#0072#, 16#0065#, 16#0064#,
16#0065#, 16#0063#, 16#0065#, 16#0073#,
16#0073#, 16#006F#, 16#0072#, 16#0043#,
16#006C#, 16#0061#, 16#0075#, 16#0073#,
16#0065#,
others => 16#0000#),
others => <>);
-- "signalEvent"
MS_08CD : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 15,
Unused => 11,
Length => 11,
Value =>
(16#0073#, 16#0069#, 16#0067#, 16#006E#,
16#0061#, 16#006C#, 16#0045#, 16#0076#,
16#0065#, 16#006E#, 16#0074#,
others => 16#0000#),
others => <>);
-- "visibility_public_or_private"
MS_08CE : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 31,
Unused => 28,
Length => 28,
Value =>
(16#0076#, 16#0069#, 16#0073#, 16#0069#,
16#0062#, 16#0069#, 16#006C#, 16#0069#,
16#0074#, 16#0079#, 16#005F#, 16#0070#,
16#0075#, 16#0062#, 16#006C#, 16#0069#,
16#0063#, 16#005F#, 16#006F#, 16#0072#,
16#005F#, 16#0070#, 16#0072#, 16#0069#,
16#0076#, 16#0061#, 16#0074#, 16#0065#,
others => 16#0000#),
others => <>);
-- "A_referred_protocolTransition"
MS_08CF : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 31,
Unused => 29,
Length => 29,
Value =>
(16#0041#, 16#005F#, 16#0072#, 16#0065#,
16#0066#, 16#0065#, 16#0072#, 16#0072#,
16#0065#, 16#0064#, 16#005F#, 16#0070#,
16#0072#, 16#006F#, 16#0074#, 16#006F#,
16#0063#, 16#006F#, 16#006C#, 16#0054#,
16#0072#, 16#0061#, 16#006E#, 16#0073#,
16#0069#, 16#0074#, 16#0069#, 16#006F#,
16#006E#,
others => 16#0000#),
others => <>);
-- "event"
MS_08D0 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 7,
Unused => 5,
Length => 5,
Value =>
(16#0065#, 16#0076#, 16#0065#, 16#006E#,
16#0074#,
others => 16#0000#),
others => <>);
-- "ForkNode"
MS_08D1 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 15,
Unused => 8,
Length => 8,
Value =>
(16#0046#, 16#006F#, 16#0072#, 16#006B#,
16#004E#, 16#006F#, 16#0064#, 16#0065#,
others => 16#0000#),
others => <>);
-- "Inherited edges replaced by this edge in a specialization of the activity."
MS_08D2 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 79,
Unused => 74,
Length => 74,
Value =>
(16#0049#, 16#006E#, 16#0068#, 16#0065#,
16#0072#, 16#0069#, 16#0074#, 16#0065#,
16#0064#, 16#0020#, 16#0065#, 16#0064#,
16#0067#, 16#0065#, 16#0073#, 16#0020#,
16#0072#, 16#0065#, 16#0070#, 16#006C#,
16#0061#, 16#0063#, 16#0065#, 16#0064#,
16#0020#, 16#0062#, 16#0079#, 16#0020#,
16#0074#, 16#0068#, 16#0069#, 16#0073#,
16#0020#, 16#0065#, 16#0064#, 16#0067#,
16#0065#, 16#0020#, 16#0069#, 16#006E#,
16#0020#, 16#0061#, 16#0020#, 16#0073#,
16#0070#, 16#0065#, 16#0063#, 16#0069#,
16#0061#, 16#006C#, 16#0069#, 16#007A#,
16#0061#, 16#0074#, 16#0069#, 16#006F#,
16#006E#, 16#0020#, 16#006F#, 16#0066#,
16#0020#, 16#0074#, 16#0068#, 16#0065#,
16#0020#, 16#0061#, 16#0063#, 16#0074#,
16#0069#, 16#0076#, 16#0069#, 16#0074#,
16#0079#, 16#002E#,
others => 16#0000#),
others => <>);
-- "multiplicity_of_composite"
MS_08D3 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 31,
Unused => 25,
Length => 25,
Value =>
(16#006D#, 16#0075#, 16#006C#, 16#0074#,
16#0069#, 16#0070#, 16#006C#, 16#0069#,
16#0063#, 16#0069#, 16#0074#, 16#0079#,
16#005F#, 16#006F#, 16#0066#, 16#005F#,
16#0063#, 16#006F#, 16#006D#, 16#0070#,
16#006F#, 16#0073#, 16#0069#, 16#0074#,
16#0065#,
others => 16#0000#),
others => <>);
-- "isCombineDuplicate"
MS_08D4 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 23,
Unused => 18,
Length => 18,
Value =>
(16#0069#, 16#0073#, 16#0043#, 16#006F#,
16#006D#, 16#0062#, 16#0069#, 16#006E#,
16#0065#, 16#0044#, 16#0075#, 16#0070#,
16#006C#, 16#0069#, 16#0063#, 16#0061#,
16#0074#, 16#0065#,
others => 16#0000#),
others => <>);
-- "returnResult"
MS_08D5 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 15,
Unused => 12,
Length => 12,
Value =>
(16#0072#, 16#0065#, 16#0074#, 16#0075#,
16#0072#, 16#006E#, 16#0052#, 16#0065#,
16#0073#, 16#0075#, 16#006C#, 16#0074#,
others => 16#0000#),
others => <>);
-- "The types of parameters are all data types, which may not nest anything but other datatypes."
MS_08D6 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 95,
Unused => 92,
Length => 92,
Value =>
(16#0054#, 16#0068#, 16#0065#, 16#0020#,
16#0074#, 16#0079#, 16#0070#, 16#0065#,
16#0073#, 16#0020#, 16#006F#, 16#0066#,
16#0020#, 16#0070#, 16#0061#, 16#0072#,
16#0061#, 16#006D#, 16#0065#, 16#0074#,
16#0065#, 16#0072#, 16#0073#, 16#0020#,
16#0061#, 16#0072#, 16#0065#, 16#0020#,
16#0061#, 16#006C#, 16#006C#, 16#0020#,
16#0064#, 16#0061#, 16#0074#, 16#0061#,
16#0020#, 16#0074#, 16#0079#, 16#0070#,
16#0065#, 16#0073#, 16#002C#, 16#0020#,
16#0077#, 16#0068#, 16#0069#, 16#0063#,
16#0068#, 16#0020#, 16#006D#, 16#0061#,
16#0079#, 16#0020#, 16#006E#, 16#006F#,
16#0074#, 16#0020#, 16#006E#, 16#0065#,
16#0073#, 16#0074#, 16#0020#, 16#0061#,
16#006E#, 16#0079#, 16#0074#, 16#0068#,
16#0069#, 16#006E#, 16#0067#, 16#0020#,
16#0062#, 16#0075#, 16#0074#, 16#0020#,
16#006F#, 16#0074#, 16#0068#, 16#0065#,
16#0072#, 16#0020#, 16#0064#, 16#0061#,
16#0074#, 16#0061#, 16#0074#, 16#0079#,
16#0070#, 16#0065#, 16#0073#, 16#002E#,
others => 16#0000#),
others => <>);
-- "Selects tokens for outgoing edges."
MS_08D7 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 39,
Unused => 34,
Length => 34,
Value =>
(16#0053#, 16#0065#, 16#006C#, 16#0065#,
16#0063#, 16#0074#, 16#0073#, 16#0020#,
16#0074#, 16#006F#, 16#006B#, 16#0065#,
16#006E#, 16#0073#, 16#0020#, 16#0066#,
16#006F#, 16#0072#, 16#0020#, 16#006F#,
16#0075#, 16#0074#, 16#0067#, 16#006F#,
16#0069#, 16#006E#, 16#0067#, 16#0020#,
16#0065#, 16#0064#, 16#0067#, 16#0065#,
16#0073#, 16#002E#,
others => 16#0000#),
others => <>);
-- "no_association_to_use_case"
MS_08D8 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 31,
Unused => 26,
Length => 26,
Value =>
(16#006E#, 16#006F#, 16#005F#, 16#0061#,
16#0073#, 16#0073#, 16#006F#, 16#0063#,
16#0069#, 16#0061#, 16#0074#, 16#0069#,
16#006F#, 16#006E#, 16#005F#, 16#0074#,
16#006F#, 16#005F#, 16#0075#, 16#0073#,
16#0065#, 16#005F#, 16#0063#, 16#0061#,
16#0073#, 16#0065#,
others => 16#0000#),
others => <>);
-- "reception"
MS_08D9 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 15,
Unused => 9,
Length => 9,
Value =>
(16#0072#, 16#0065#, 16#0063#, 16#0065#,
16#0070#, 16#0074#, 16#0069#, 16#006F#,
16#006E#,
others => 16#0000#),
others => <>);
-- "A_importedPackage_packageImport"
MS_08DA : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 39,
Unused => 31,
Length => 31,
Value =>
(16#0041#, 16#005F#, 16#0069#, 16#006D#,
16#0070#, 16#006F#, 16#0072#, 16#0074#,
16#0065#, 16#0064#, 16#0050#, 16#0061#,
16#0063#, 16#006B#, 16#0061#, 16#0067#,
16#0065#, 16#005F#, 16#0070#, 16#0061#,
16#0063#, 16#006B#, 16#0061#, 16#0067#,
16#0065#, 16#0049#, 16#006D#, 16#0070#,
16#006F#, 16#0072#, 16#0074#,
others => 16#0000#),
others => <>);
-- "Specifies the return result of the operation, if present."
MS_08DB : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 63,
Unused => 57,
Length => 57,
Value =>
(16#0053#, 16#0070#, 16#0065#, 16#0063#,
16#0069#, 16#0066#, 16#0069#, 16#0065#,
16#0073#, 16#0020#, 16#0074#, 16#0068#,
16#0065#, 16#0020#, 16#0072#, 16#0065#,
16#0074#, 16#0075#, 16#0072#, 16#006E#,
16#0020#, 16#0072#, 16#0065#, 16#0073#,
16#0075#, 16#006C#, 16#0074#, 16#0020#,
16#006F#, 16#0066#, 16#0020#, 16#0074#,
16#0068#, 16#0065#, 16#0020#, 16#006F#,
16#0070#, 16#0065#, 16#0072#, 16#0061#,
16#0074#, 16#0069#, 16#006F#, 16#006E#,
16#002C#, 16#0020#, 16#0069#, 16#0066#,
16#0020#, 16#0070#, 16#0072#, 16#0065#,
16#0073#, 16#0065#, 16#006E#, 16#0074#,
16#002E#,
others => 16#0000#),
others => <>);
-- "bodyPart"
MS_08DC : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 15,
Unused => 8,
Length => 8,
Value =>
(16#0062#, 16#006F#, 16#0064#, 16#0079#,
16#0050#, 16#0061#, 16#0072#, 16#0074#,
others => 16#0000#),
others => <>);
-- "The region of which this region is an extension."
MS_08DD : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 55,
Unused => 48,
Length => 48,
Value =>
(16#0054#, 16#0068#, 16#0065#, 16#0020#,
16#0072#, 16#0065#, 16#0067#, 16#0069#,
16#006F#, 16#006E#, 16#0020#, 16#006F#,
16#0066#, 16#0020#, 16#0077#, 16#0068#,
16#0069#, 16#0063#, 16#0068#, 16#0020#,
16#0074#, 16#0068#, 16#0069#, 16#0073#,
16#0020#, 16#0072#, 16#0065#, 16#0067#,
16#0069#, 16#006F#, 16#006E#, 16#0020#,
16#0069#, 16#0073#, 16#0020#, 16#0061#,
16#006E#, 16#0020#, 16#0065#, 16#0078#,
16#0074#, 16#0065#, 16#006E#, 16#0073#,
16#0069#, 16#006F#, 16#006E#, 16#002E#,
others => 16#0000#),
others => <>);
-- "A_max_durationInterval"
MS_08DE : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 23,
Unused => 22,
Length => 22,
Value =>
(16#0041#, 16#005F#, 16#006D#, 16#0061#,
16#0078#, 16#005F#, 16#0064#, 16#0075#,
16#0072#, 16#0061#, 16#0074#, 16#0069#,
16#006F#, 16#006E#, 16#0049#, 16#006E#,
16#0074#, 16#0065#, 16#0072#, 16#0076#,
16#0061#, 16#006C#,
others => 16#0000#),
others => <>);
-- "read"
MS_08DF : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 7,
Unused => 4,
Length => 4,
Value =>
(16#0072#, 16#0065#, 16#0061#, 16#0064#,
others => 16#0000#),
others => <>);
-- "A_object_reclassifyObjectAction"
MS_08E0 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 39,
Unused => 31,
Length => 31,
Value =>
(16#0041#, 16#005F#, 16#006F#, 16#0062#,
16#006A#, 16#0065#, 16#0063#, 16#0074#,
16#005F#, 16#0072#, 16#0065#, 16#0063#,
16#006C#, 16#0061#, 16#0073#, 16#0073#,
16#0069#, 16#0066#, 16#0079#, 16#004F#,
16#0062#, 16#006A#, 16#0065#, 16#0063#,
16#0074#, 16#0041#, 16#0063#, 16#0074#,
16#0069#, 16#006F#, 16#006E#,
others => 16#0000#),
others => <>);
-- "A_postCondition_owningTransition"
MS_08E1 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 39,
Unused => 32,
Length => 32,
Value =>
(16#0041#, 16#005F#, 16#0070#, 16#006F#,
16#0073#, 16#0074#, 16#0043#, 16#006F#,
16#006E#, 16#0064#, 16#0069#, 16#0074#,
16#0069#, 16#006F#, 16#006E#, 16#005F#,
16#006F#, 16#0077#, 16#006E#, 16#0069#,
16#006E#, 16#0067#, 16#0054#, 16#0072#,
16#0061#, 16#006E#, 16#0073#, 16#0069#,
16#0074#, 16#0069#, 16#006F#, 16#006E#,
others => 16#0000#),
others => <>);
-- "A_returnValue_interactionUse"
MS_08E2 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 31,
Unused => 28,
Length => 28,
Value =>
(16#0041#, 16#005F#, 16#0072#, 16#0065#,
16#0074#, 16#0075#, 16#0072#, 16#006E#,
16#0056#, 16#0061#, 16#006C#, 16#0075#,
16#0065#, 16#005F#, 16#0069#, 16#006E#,
16#0074#, 16#0065#, 16#0072#, 16#0061#,
16#0063#, 16#0074#, 16#0069#, 16#006F#,
16#006E#, 16#0055#, 16#0073#, 16#0065#,
others => 16#0000#),
others => <>);
-- "Gives the position at which to insert a new value or move an existing value in ordered structural features. The type of the pin is UnlimitedNatural, but the value cannot be zero. This pin is omitted for unordered structural features."
MS_08E3 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 247,
Unused => 233,
Length => 233,
Value =>
(16#0047#, 16#0069#, 16#0076#, 16#0065#,
16#0073#, 16#0020#, 16#0074#, 16#0068#,
16#0065#, 16#0020#, 16#0070#, 16#006F#,
16#0073#, 16#0069#, 16#0074#, 16#0069#,
16#006F#, 16#006E#, 16#0020#, 16#0061#,
16#0074#, 16#0020#, 16#0077#, 16#0068#,
16#0069#, 16#0063#, 16#0068#, 16#0020#,
16#0074#, 16#006F#, 16#0020#, 16#0069#,
16#006E#, 16#0073#, 16#0065#, 16#0072#,
16#0074#, 16#0020#, 16#0061#, 16#0020#,
16#006E#, 16#0065#, 16#0077#, 16#0020#,
16#0076#, 16#0061#, 16#006C#, 16#0075#,
16#0065#, 16#0020#, 16#006F#, 16#0072#,
16#0020#, 16#006D#, 16#006F#, 16#0076#,
16#0065#, 16#0020#, 16#0061#, 16#006E#,
16#0020#, 16#0065#, 16#0078#, 16#0069#,
16#0073#, 16#0074#, 16#0069#, 16#006E#,
16#0067#, 16#0020#, 16#0076#, 16#0061#,
16#006C#, 16#0075#, 16#0065#, 16#0020#,
16#0069#, 16#006E#, 16#0020#, 16#006F#,
16#0072#, 16#0064#, 16#0065#, 16#0072#,
16#0065#, 16#0064#, 16#0020#, 16#0073#,
16#0074#, 16#0072#, 16#0075#, 16#0063#,
16#0074#, 16#0075#, 16#0072#, 16#0061#,
16#006C#, 16#0020#, 16#0066#, 16#0065#,
16#0061#, 16#0074#, 16#0075#, 16#0072#,
16#0065#, 16#0073#, 16#002E#, 16#0020#,
16#0054#, 16#0068#, 16#0065#, 16#0020#,
16#0074#, 16#0079#, 16#0070#, 16#0065#,
16#0020#, 16#006F#, 16#0066#, 16#0020#,
16#0074#, 16#0068#, 16#0065#, 16#0020#,
16#0070#, 16#0069#, 16#006E#, 16#0020#,
16#0069#, 16#0073#, 16#0020#, 16#0055#,
16#006E#, 16#006C#, 16#0069#, 16#006D#,
16#0069#, 16#0074#, 16#0065#, 16#0064#,
16#004E#, 16#0061#, 16#0074#, 16#0075#,
16#0072#, 16#0061#, 16#006C#, 16#002C#,
16#0020#, 16#0062#, 16#0075#, 16#0074#,
16#0020#, 16#0074#, 16#0068#, 16#0065#,
16#0020#, 16#0076#, 16#0061#, 16#006C#,
16#0075#, 16#0065#, 16#0020#, 16#0063#,
16#0061#, 16#006E#, 16#006E#, 16#006F#,
16#0074#, 16#0020#, 16#0062#, 16#0065#,
16#0020#, 16#007A#, 16#0065#, 16#0072#,
16#006F#, 16#002E#, 16#0020#, 16#0054#,
16#0068#, 16#0069#, 16#0073#, 16#0020#,
16#0070#, 16#0069#, 16#006E#, 16#0020#,
16#0069#, 16#0073#, 16#0020#, 16#006F#,
16#006D#, 16#0069#, 16#0074#, 16#0074#,
16#0065#, 16#0064#, 16#0020#, 16#0066#,
16#006F#, 16#0072#, 16#0020#, 16#0075#,
16#006E#, 16#006F#, 16#0072#, 16#0064#,
16#0065#, 16#0072#, 16#0065#, 16#0064#,
16#0020#, 16#0073#, 16#0074#, 16#0072#,
16#0075#, 16#0063#, 16#0074#, 16#0075#,
16#0072#, 16#0061#, 16#006C#, 16#0020#,
16#0066#, 16#0065#, 16#0061#, 16#0074#,
16#0075#, 16#0072#, 16#0065#, 16#0073#,
16#002E#,
others => 16#0000#),
others => <>);
-- "All transitions outgoing a fork vertex must target states in different regions of an orthogonal state."
MS_08E4 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 111,
Unused => 102,
Length => 102,
Value =>
(16#0041#, 16#006C#, 16#006C#, 16#0020#,
16#0074#, 16#0072#, 16#0061#, 16#006E#,
16#0073#, 16#0069#, 16#0074#, 16#0069#,
16#006F#, 16#006E#, 16#0073#, 16#0020#,
16#006F#, 16#0075#, 16#0074#, 16#0067#,
16#006F#, 16#0069#, 16#006E#, 16#0067#,
16#0020#, 16#0061#, 16#0020#, 16#0066#,
16#006F#, 16#0072#, 16#006B#, 16#0020#,
16#0076#, 16#0065#, 16#0072#, 16#0074#,
16#0065#, 16#0078#, 16#0020#, 16#006D#,
16#0075#, 16#0073#, 16#0074#, 16#0020#,
16#0074#, 16#0061#, 16#0072#, 16#0067#,
16#0065#, 16#0074#, 16#0020#, 16#0073#,
16#0074#, 16#0061#, 16#0074#, 16#0065#,
16#0073#, 16#0020#, 16#0069#, 16#006E#,
16#0020#, 16#0064#, 16#0069#, 16#0066#,
16#0066#, 16#0065#, 16#0072#, 16#0065#,
16#006E#, 16#0074#, 16#0020#, 16#0072#,
16#0065#, 16#0067#, 16#0069#, 16#006F#,
16#006E#, 16#0073#, 16#0020#, 16#006F#,
16#0066#, 16#0020#, 16#0061#, 16#006E#,
16#0020#, 16#006F#, 16#0072#, 16#0074#,
16#0068#, 16#006F#, 16#0067#, 16#006F#,
16#006E#, 16#0061#, 16#006C#, 16#0020#,
16#0073#, 16#0074#, 16#0061#, 16#0074#,
16#0065#, 16#002E#,
others => 16#0000#),
others => <>);
-- "Specifies the gates that form the interface between this CombinedFragment and its surroundings"
MS_08E5 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 103,
Unused => 94,
Length => 94,
Value =>
(16#0053#, 16#0070#, 16#0065#, 16#0063#,
16#0069#, 16#0066#, 16#0069#, 16#0065#,
16#0073#, 16#0020#, 16#0074#, 16#0068#,
16#0065#, 16#0020#, 16#0067#, 16#0061#,
16#0074#, 16#0065#, 16#0073#, 16#0020#,
16#0074#, 16#0068#, 16#0061#, 16#0074#,
16#0020#, 16#0066#, 16#006F#, 16#0072#,
16#006D#, 16#0020#, 16#0074#, 16#0068#,
16#0065#, 16#0020#, 16#0069#, 16#006E#,
16#0074#, 16#0065#, 16#0072#, 16#0066#,
16#0061#, 16#0063#, 16#0065#, 16#0020#,
16#0062#, 16#0065#, 16#0074#, 16#0077#,
16#0065#, 16#0065#, 16#006E#, 16#0020#,
16#0074#, 16#0068#, 16#0069#, 16#0073#,
16#0020#, 16#0043#, 16#006F#, 16#006D#,
16#0062#, 16#0069#, 16#006E#, 16#0065#,
16#0064#, 16#0046#, 16#0072#, 16#0061#,
16#0067#, 16#006D#, 16#0065#, 16#006E#,
16#0074#, 16#0020#, 16#0061#, 16#006E#,
16#0064#, 16#0020#, 16#0069#, 16#0074#,
16#0073#, 16#0020#, 16#0073#, 16#0075#,
16#0072#, 16#0072#, 16#006F#, 16#0075#,
16#006E#, 16#0064#, 16#0069#, 16#006E#,
16#0067#, 16#0073#,
others => 16#0000#),
others => <>);
-- "ActivityNode"
MS_08E6 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 15,
Unused => 12,
Length => 12,
Value =>
(16#0041#, 16#0063#, 16#0074#, 16#0069#,
16#0076#, 16#0069#, 16#0074#, 16#0079#,
16#004E#, 16#006F#, 16#0064#, 16#0065#,
others => 16#0000#),
others => <>);
-- "Tells whether an input parameter may accept values while its behavior is executing, or whether an output parameter post values while the behavior is executing."
MS_08E7 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 167,
Unused => 159,
Length => 159,
Value =>
(16#0054#, 16#0065#, 16#006C#, 16#006C#,
16#0073#, 16#0020#, 16#0077#, 16#0068#,
16#0065#, 16#0074#, 16#0068#, 16#0065#,
16#0072#, 16#0020#, 16#0061#, 16#006E#,
16#0020#, 16#0069#, 16#006E#, 16#0070#,
16#0075#, 16#0074#, 16#0020#, 16#0070#,
16#0061#, 16#0072#, 16#0061#, 16#006D#,
16#0065#, 16#0074#, 16#0065#, 16#0072#,
16#0020#, 16#006D#, 16#0061#, 16#0079#,
16#0020#, 16#0061#, 16#0063#, 16#0063#,
16#0065#, 16#0070#, 16#0074#, 16#0020#,
16#0076#, 16#0061#, 16#006C#, 16#0075#,
16#0065#, 16#0073#, 16#0020#, 16#0077#,
16#0068#, 16#0069#, 16#006C#, 16#0065#,
16#0020#, 16#0069#, 16#0074#, 16#0073#,
16#0020#, 16#0062#, 16#0065#, 16#0068#,
16#0061#, 16#0076#, 16#0069#, 16#006F#,
16#0072#, 16#0020#, 16#0069#, 16#0073#,
16#0020#, 16#0065#, 16#0078#, 16#0065#,
16#0063#, 16#0075#, 16#0074#, 16#0069#,
16#006E#, 16#0067#, 16#002C#, 16#0020#,
16#006F#, 16#0072#, 16#0020#, 16#0077#,
16#0068#, 16#0065#, 16#0074#, 16#0068#,
16#0065#, 16#0072#, 16#0020#, 16#0061#,
16#006E#, 16#0020#, 16#006F#, 16#0075#,
16#0074#, 16#0070#, 16#0075#, 16#0074#,
16#0020#, 16#0070#, 16#0061#, 16#0072#,
16#0061#, 16#006D#, 16#0065#, 16#0074#,
16#0065#, 16#0072#, 16#0020#, 16#0070#,
16#006F#, 16#0073#, 16#0074#, 16#0020#,
16#0076#, 16#0061#, 16#006C#, 16#0075#,
16#0065#, 16#0073#, 16#0020#, 16#0077#,
16#0068#, 16#0069#, 16#006C#, 16#0065#,
16#0020#, 16#0074#, 16#0068#, 16#0065#,
16#0020#, 16#0062#, 16#0065#, 16#0068#,
16#0061#, 16#0076#, 16#0069#, 16#006F#,
16#0072#, 16#0020#, 16#0069#, 16#0073#,
16#0020#, 16#0065#, 16#0078#, 16#0065#,
16#0063#, 16#0075#, 16#0074#, 16#0069#,
16#006E#, 16#0067#, 16#002E#,
others => 16#0000#),
others => <>);
-- "A_value_qualifierValue"
MS_08E8 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 23,
Unused => 22,
Length => 22,
Value =>
(16#0041#, 16#005F#, 16#0076#, 16#0061#,
16#006C#, 16#0075#, 16#0065#, 16#005F#,
16#0071#, 16#0075#, 16#0061#, 16#006C#,
16#0069#, 16#0066#, 16#0069#, 16#0065#,
16#0072#, 16#0056#, 16#0061#, 16#006C#,
16#0075#, 16#0065#,
others => 16#0000#),
others => <>);
-- "Activity containing the edge."
MS_08E9 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 31,
Unused => 29,
Length => 29,
Value =>
(16#0041#, 16#0063#, 16#0074#, 16#0069#,
16#0076#, 16#0069#, 16#0074#, 16#0079#,
16#0020#, 16#0063#, 16#006F#, 16#006E#,
16#0074#, 16#0061#, 16#0069#, 16#006E#,
16#0069#, 16#006E#, 16#0067#, 16#0020#,
16#0074#, 16#0068#, 16#0065#, 16#0020#,
16#0065#, 16#0064#, 16#0067#, 16#0065#,
16#002E#,
others => 16#0000#),
others => <>);
-- "decider_output"
MS_08EA : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 15,
Unused => 14,
Length => 14,
Value =>
(16#0064#, 16#0065#, 16#0063#, 16#0069#,
16#0064#, 16#0065#, 16#0072#, 16#005F#,
16#006F#, 16#0075#, 16#0074#, 16#0070#,
16#0075#, 16#0074#,
others => 16#0000#),
others => <>);
-- "If maxint is specified, then minint must be specified and the evaluation of maxint must be >= the evaluation of minint"
MS_08EB : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 127,
Unused => 118,
Length => 118,
Value =>
(16#0049#, 16#0066#, 16#0020#, 16#006D#,
16#0061#, 16#0078#, 16#0069#, 16#006E#,
16#0074#, 16#0020#, 16#0069#, 16#0073#,
16#0020#, 16#0073#, 16#0070#, 16#0065#,
16#0063#, 16#0069#, 16#0066#, 16#0069#,
16#0065#, 16#0064#, 16#002C#, 16#0020#,
16#0074#, 16#0068#, 16#0065#, 16#006E#,
16#0020#, 16#006D#, 16#0069#, 16#006E#,
16#0069#, 16#006E#, 16#0074#, 16#0020#,
16#006D#, 16#0075#, 16#0073#, 16#0074#,
16#0020#, 16#0062#, 16#0065#, 16#0020#,
16#0073#, 16#0070#, 16#0065#, 16#0063#,
16#0069#, 16#0066#, 16#0069#, 16#0065#,
16#0064#, 16#0020#, 16#0061#, 16#006E#,
16#0064#, 16#0020#, 16#0074#, 16#0068#,
16#0065#, 16#0020#, 16#0065#, 16#0076#,
16#0061#, 16#006C#, 16#0075#, 16#0061#,
16#0074#, 16#0069#, 16#006F#, 16#006E#,
16#0020#, 16#006F#, 16#0066#, 16#0020#,
16#006D#, 16#0061#, 16#0078#, 16#0069#,
16#006E#, 16#0074#, 16#0020#, 16#006D#,
16#0075#, 16#0073#, 16#0074#, 16#0020#,
16#0062#, 16#0065#, 16#0020#, 16#003E#,
16#003D#, 16#0020#, 16#0074#, 16#0068#,
16#0065#, 16#0020#, 16#0065#, 16#0076#,
16#0061#, 16#006C#, 16#0075#, 16#0061#,
16#0074#, 16#0069#, 16#006F#, 16#006E#,
16#0020#, 16#006F#, 16#0066#, 16#0020#,
16#006D#, 16#0069#, 16#006E#, 16#0069#,
16#006E#, 16#0074#,
others => 16#0000#),
others => <>);
-- "The redefinable element that is being redefined by this element."
MS_08EC : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 71,
Unused => 64,
Length => 64,
Value =>
(16#0054#, 16#0068#, 16#0065#, 16#0020#,
16#0072#, 16#0065#, 16#0064#, 16#0065#,
16#0066#, 16#0069#, 16#006E#, 16#0061#,
16#0062#, 16#006C#, 16#0065#, 16#0020#,
16#0065#, 16#006C#, 16#0065#, 16#006D#,
16#0065#, 16#006E#, 16#0074#, 16#0020#,
16#0074#, 16#0068#, 16#0061#, 16#0074#,
16#0020#, 16#0069#, 16#0073#, 16#0020#,
16#0062#, 16#0065#, 16#0069#, 16#006E#,
16#0067#, 16#0020#, 16#0072#, 16#0065#,
16#0064#, 16#0065#, 16#0066#, 16#0069#,
16#006E#, 16#0065#, 16#0064#, 16#0020#,
16#0062#, 16#0079#, 16#0020#, 16#0074#,
16#0068#, 16#0069#, 16#0073#, 16#0020#,
16#0065#, 16#006C#, 16#0065#, 16#006D#,
16#0065#, 16#006E#, 16#0074#, 16#002E#,
others => 16#0000#),
others => <>);
-- "The starting time for a relative time event may only be omitted for a time event that is the trigger of a state machine."
MS_08ED : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 127,
Unused => 120,
Length => 120,
Value =>
(16#0054#, 16#0068#, 16#0065#, 16#0020#,
16#0073#, 16#0074#, 16#0061#, 16#0072#,
16#0074#, 16#0069#, 16#006E#, 16#0067#,
16#0020#, 16#0074#, 16#0069#, 16#006D#,
16#0065#, 16#0020#, 16#0066#, 16#006F#,
16#0072#, 16#0020#, 16#0061#, 16#0020#,
16#0072#, 16#0065#, 16#006C#, 16#0061#,
16#0074#, 16#0069#, 16#0076#, 16#0065#,
16#0020#, 16#0074#, 16#0069#, 16#006D#,
16#0065#, 16#0020#, 16#0065#, 16#0076#,
16#0065#, 16#006E#, 16#0074#, 16#0020#,
16#006D#, 16#0061#, 16#0079#, 16#0020#,
16#006F#, 16#006E#, 16#006C#, 16#0079#,
16#0020#, 16#0062#, 16#0065#, 16#0020#,
16#006F#, 16#006D#, 16#0069#, 16#0074#,
16#0074#, 16#0065#, 16#0064#, 16#0020#,
16#0066#, 16#006F#, 16#0072#, 16#0020#,
16#0061#, 16#0020#, 16#0074#, 16#0069#,
16#006D#, 16#0065#, 16#0020#, 16#0065#,
16#0076#, 16#0065#, 16#006E#, 16#0074#,
16#0020#, 16#0074#, 16#0068#, 16#0061#,
16#0074#, 16#0020#, 16#0069#, 16#0073#,
16#0020#, 16#0074#, 16#0068#, 16#0065#,
16#0020#, 16#0074#, 16#0072#, 16#0069#,
16#0067#, 16#0067#, 16#0065#, 16#0072#,
16#0020#, 16#006F#, 16#0066#, 16#0020#,
16#0061#, 16#0020#, 16#0073#, 16#0074#,
16#0061#, 16#0074#, 16#0065#, 16#0020#,
16#006D#, 16#0061#, 16#0063#, 16#0068#,
16#0069#, 16#006E#, 16#0065#, 16#002E#,
others => 16#0000#),
others => <>);
-- "An object flow may have a selection behavior only if has an object node as a source."
MS_08EE : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 87,
Unused => 84,
Length => 84,
Value =>
(16#0041#, 16#006E#, 16#0020#, 16#006F#,
16#0062#, 16#006A#, 16#0065#, 16#0063#,
16#0074#, 16#0020#, 16#0066#, 16#006C#,
16#006F#, 16#0077#, 16#0020#, 16#006D#,
16#0061#, 16#0079#, 16#0020#, 16#0068#,
16#0061#, 16#0076#, 16#0065#, 16#0020#,
16#0061#, 16#0020#, 16#0073#, 16#0065#,
16#006C#, 16#0065#, 16#0063#, 16#0074#,
16#0069#, 16#006F#, 16#006E#, 16#0020#,
16#0062#, 16#0065#, 16#0068#, 16#0061#,
16#0076#, 16#0069#, 16#006F#, 16#0072#,
16#0020#, 16#006F#, 16#006E#, 16#006C#,
16#0079#, 16#0020#, 16#0069#, 16#0066#,
16#0020#, 16#0068#, 16#0061#, 16#0073#,
16#0020#, 16#0061#, 16#006E#, 16#0020#,
16#006F#, 16#0062#, 16#006A#, 16#0065#,
16#0063#, 16#0074#, 16#0020#, 16#006E#,
16#006F#, 16#0064#, 16#0065#, 16#0020#,
16#0061#, 16#0073#, 16#0020#, 16#0061#,
16#0020#, 16#0073#, 16#006F#, 16#0075#,
16#0072#, 16#0063#, 16#0065#, 16#002E#,
others => 16#0000#),
others => <>);
-- "A_ownedMember_namespace"
MS_08EF : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 31,
Unused => 23,
Length => 23,
Value =>
(16#0041#, 16#005F#, 16#006F#, 16#0077#,
16#006E#, 16#0065#, 16#0064#, 16#004D#,
16#0065#, 16#006D#, 16#0062#, 16#0065#,
16#0072#, 16#005F#, 16#006E#, 16#0061#,
16#006D#, 16#0065#, 16#0073#, 16#0070#,
16#0061#, 16#0063#, 16#0065#,
others => 16#0000#),
others => <>);
-- "global"
MS_08F0 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 7,
Unused => 6,
Length => 6,
Value =>
(16#0067#, 16#006C#, 16#006F#, 16#0062#,
16#0061#, 16#006C#,
others => 16#0000#),
others => <>);
-- "A_result_createLinkObjectAction"
MS_08F1 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 39,
Unused => 31,
Length => 31,
Value =>
(16#0041#, 16#005F#, 16#0072#, 16#0065#,
16#0073#, 16#0075#, 16#006C#, 16#0074#,
16#005F#, 16#0063#, 16#0072#, 16#0065#,
16#0061#, 16#0074#, 16#0065#, 16#004C#,
16#0069#, 16#006E#, 16#006B#, 16#004F#,
16#0062#, 16#006A#, 16#0065#, 16#0063#,
16#0074#, 16#0041#, 16#0063#, 16#0074#,
16#0069#, 16#006F#, 16#006E#,
others => 16#0000#),
others => <>);
-- "subpartition"
MS_08F2 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 15,
Unused => 12,
Length => 12,
Value =>
(16#0073#, 16#0075#, 16#0062#, 16#0070#,
16#0061#, 16#0072#, 16#0074#, 16#0069#,
16#0074#, 16#0069#, 16#006F#, 16#006E#,
others => 16#0000#),
others => <>);
-- "A_exceptionInput_exceptionHandler"
MS_08F3 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 39,
Unused => 33,
Length => 33,
Value =>
(16#0041#, 16#005F#, 16#0065#, 16#0078#,
16#0063#, 16#0065#, 16#0070#, 16#0074#,
16#0069#, 16#006F#, 16#006E#, 16#0049#,
16#006E#, 16#0070#, 16#0075#, 16#0074#,
16#005F#, 16#0065#, 16#0078#, 16#0063#,
16#0065#, 16#0070#, 16#0074#, 16#0069#,
16#006F#, 16#006E#, 16#0048#, 16#0061#,
16#006E#, 16#0064#, 16#006C#, 16#0065#,
16#0072#,
others => 16#0000#),
others => <>);
-- "insertAt"
MS_08F4 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 15,
Unused => 8,
Length => 8,
Value =>
(16#0069#, 16#006E#, 16#0073#, 16#0065#,
16#0072#, 16#0074#, 16#0041#, 16#0074#,
others => 16#0000#),
others => <>);
-- "A_region_stateMachine"
MS_08F5 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 23,
Unused => 21,
Length => 21,
Value =>
(16#0041#, 16#005F#, 16#0072#, 16#0065#,
16#0067#, 16#0069#, 16#006F#, 16#006E#,
16#005F#, 16#0073#, 16#0074#, 16#0061#,
16#0074#, 16#0065#, 16#004D#, 16#0061#,
16#0063#, 16#0068#, 16#0069#, 16#006E#,
16#0065#,
others => 16#0000#),
others => <>);
-- "relationship"
MS_08F6 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 15,
Unused => 12,
Length => 12,
Value =>
(16#0072#, 16#0065#, 16#006C#, 16#0061#,
16#0074#, 16#0069#, 16#006F#, 16#006E#,
16#0073#, 16#0068#, 16#0069#, 16#0070#,
others => 16#0000#),
others => <>);
-- "not_apply_to_self"
MS_08F7 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 23,
Unused => 17,
Length => 17,
Value =>
(16#006E#, 16#006F#, 16#0074#, 16#005F#,
16#0061#, 16#0070#, 16#0070#, 16#006C#,
16#0079#, 16#005F#, 16#0074#, 16#006F#,
16#005F#, 16#0073#, 16#0065#, 16#006C#,
16#0066#,
others => 16#0000#),
others => <>);
-- "True when a class is abstract."
MS_08F8 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 31,
Unused => 30,
Length => 30,
Value =>
(16#0054#, 16#0072#, 16#0075#, 16#0065#,
16#0020#, 16#0077#, 16#0068#, 16#0065#,
16#006E#, 16#0020#, 16#0061#, 16#0020#,
16#0063#, 16#006C#, 16#0061#, 16#0073#,
16#0073#, 16#0020#, 16#0069#, 16#0073#,
16#0020#, 16#0061#, 16#0062#, 16#0073#,
16#0074#, 16#0072#, 16#0061#, 16#0063#,
16#0074#, 16#002E#,
others => 16#0000#),
others => <>);
-- "connectors"
MS_08F9 : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 15,
Unused => 10,
Length => 10,
Value =>
(16#0063#, 16#006F#, 16#006E#, 16#006E#,
16#0065#, 16#0063#, 16#0074#, 16#006F#,
16#0072#, 16#0073#,
others => 16#0000#),
others => <>);
-- "An importedElement has either public visibility or no visibility at all."
MS_08FA : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 79,
Unused => 72,
Length => 72,
Value =>
(16#0041#, 16#006E#, 16#0020#, 16#0069#,
16#006D#, 16#0070#, 16#006F#, 16#0072#,
16#0074#, 16#0065#, 16#0064#, 16#0045#,
16#006C#, 16#0065#, 16#006D#, 16#0065#,
16#006E#, 16#0074#, 16#0020#, 16#0068#,
16#0061#, 16#0073#, 16#0020#, 16#0065#,
16#0069#, 16#0074#, 16#0068#, 16#0065#,
16#0072#, 16#0020#, 16#0070#, 16#0075#,
16#0062#, 16#006C#, 16#0069#, 16#0063#,
16#0020#, 16#0076#, 16#0069#, 16#0073#,
16#0069#, 16#0062#, 16#0069#, 16#006C#,
16#0069#, 16#0074#, 16#0079#, 16#0020#,
16#006F#, 16#0072#, 16#0020#, 16#006E#,
16#006F#, 16#0020#, 16#0076#, 16#0069#,
16#0073#, 16#0069#, 16#0062#, 16#0069#,
16#006C#, 16#0069#, 16#0074#, 16#0079#,
16#0020#, 16#0061#, 16#0074#, 16#0020#,
16#0061#, 16#006C#, 16#006C#, 16#002E#,
others => 16#0000#),
others => <>);
-- "ValueSpecification specializes ParameterableElement to specify that a value specification can be exposed as a formal template parameter, and provided as an actual parameter in a binding of a template."
MS_08FB : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 207,
Unused => 200,
Length => 200,
Value =>
(16#0056#, 16#0061#, 16#006C#, 16#0075#,
16#0065#, 16#0053#, 16#0070#, 16#0065#,
16#0063#, 16#0069#, 16#0066#, 16#0069#,
16#0063#, 16#0061#, 16#0074#, 16#0069#,
16#006F#, 16#006E#, 16#0020#, 16#0073#,
16#0070#, 16#0065#, 16#0063#, 16#0069#,
16#0061#, 16#006C#, 16#0069#, 16#007A#,
16#0065#, 16#0073#, 16#0020#, 16#0050#,
16#0061#, 16#0072#, 16#0061#, 16#006D#,
16#0065#, 16#0074#, 16#0065#, 16#0072#,
16#0061#, 16#0062#, 16#006C#, 16#0065#,
16#0045#, 16#006C#, 16#0065#, 16#006D#,
16#0065#, 16#006E#, 16#0074#, 16#0020#,
16#0074#, 16#006F#, 16#0020#, 16#0073#,
16#0070#, 16#0065#, 16#0063#, 16#0069#,
16#0066#, 16#0079#, 16#0020#, 16#0074#,
16#0068#, 16#0061#, 16#0074#, 16#0020#,
16#0061#, 16#0020#, 16#0076#, 16#0061#,
16#006C#, 16#0075#, 16#0065#, 16#0020#,
16#0073#, 16#0070#, 16#0065#, 16#0063#,
16#0069#, 16#0066#, 16#0069#, 16#0063#,
16#0061#, 16#0074#, 16#0069#, 16#006F#,
16#006E#, 16#0020#, 16#0063#, 16#0061#,
16#006E#, 16#0020#, 16#0062#, 16#0065#,
16#0020#, 16#0065#, 16#0078#, 16#0070#,
16#006F#, 16#0073#, 16#0065#, 16#0064#,
16#0020#, 16#0061#, 16#0073#, 16#0020#,
16#0061#, 16#0020#, 16#0066#, 16#006F#,
16#0072#, 16#006D#, 16#0061#, 16#006C#,
16#0020#, 16#0074#, 16#0065#, 16#006D#,
16#0070#, 16#006C#, 16#0061#, 16#0074#,
16#0065#, 16#0020#, 16#0070#, 16#0061#,
16#0072#, 16#0061#, 16#006D#, 16#0065#,
16#0074#, 16#0065#, 16#0072#, 16#002C#,
16#0020#, 16#0061#, 16#006E#, 16#0064#,
16#0020#, 16#0070#, 16#0072#, 16#006F#,
16#0076#, 16#0069#, 16#0064#, 16#0065#,
16#0064#, 16#0020#, 16#0061#, 16#0073#,
16#0020#, 16#0061#, 16#006E#, 16#0020#,
16#0061#, 16#0063#, 16#0074#, 16#0075#,
16#0061#, 16#006C#, 16#0020#, 16#0070#,
16#0061#, 16#0072#, 16#0061#, 16#006D#,
16#0065#, 16#0074#, 16#0065#, 16#0072#,
16#0020#, 16#0069#, 16#006E#, 16#0020#,
16#0061#, 16#0020#, 16#0062#, 16#0069#,
16#006E#, 16#0064#, 16#0069#, 16#006E#,
16#0067#, 16#0020#, 16#006F#, 16#0066#,
16#0020#, 16#0061#, 16#0020#, 16#0074#,
16#0065#, 16#006D#, 16#0070#, 16#006C#,
16#0061#, 16#0074#, 16#0065#, 16#002E#,
others => 16#0000#),
others => <>);
-- "A stereotype must be contained, directly or indirectly, in a profile."
MS_08FC : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 71,
Unused => 69,
Length => 69,
Value =>
(16#0041#, 16#0020#, 16#0073#, 16#0074#,
16#0065#, 16#0072#, 16#0065#, 16#006F#,
16#0074#, 16#0079#, 16#0070#, 16#0065#,
16#0020#, 16#006D#, 16#0075#, 16#0073#,
16#0074#, 16#0020#, 16#0062#, 16#0065#,
16#0020#, 16#0063#, 16#006F#, 16#006E#,
16#0074#, 16#0061#, 16#0069#, 16#006E#,
16#0065#, 16#0064#, 16#002C#, 16#0020#,
16#0064#, 16#0069#, 16#0072#, 16#0065#,
16#0063#, 16#0074#, 16#006C#, 16#0079#,
16#0020#, 16#006F#, 16#0072#, 16#0020#,
16#0069#, 16#006E#, 16#0064#, 16#0069#,
16#0072#, 16#0065#, 16#0063#, 16#0074#,
16#006C#, 16#0079#, 16#002C#, 16#0020#,
16#0069#, 16#006E#, 16#0020#, 16#0061#,
16#0020#, 16#0070#, 16#0072#, 16#006F#,
16#0066#, 16#0069#, 16#006C#, 16#0065#,
16#002E#,
others => 16#0000#),
others => <>);
-- "PseudostateKind"
MS_08FD : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 23,
Unused => 15,
Length => 15,
Value =>
(16#0050#, 16#0073#, 16#0065#, 16#0075#,
16#0064#, 16#006F#, 16#0073#, 16#0074#,
16#0061#, 16#0074#, 16#0065#, 16#004B#,
16#0069#, 16#006E#, 16#0064#,
others => 16#0000#),
others => <>);
-- "The NamedElements must be of a type of element that identifies a message (e.g., an Operation, Reception, or a Signal)."
MS_08FE : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 127,
Unused => 118,
Length => 118,
Value =>
(16#0054#, 16#0068#, 16#0065#, 16#0020#,
16#004E#, 16#0061#, 16#006D#, 16#0065#,
16#0064#, 16#0045#, 16#006C#, 16#0065#,
16#006D#, 16#0065#, 16#006E#, 16#0074#,
16#0073#, 16#0020#, 16#006D#, 16#0075#,
16#0073#, 16#0074#, 16#0020#, 16#0062#,
16#0065#, 16#0020#, 16#006F#, 16#0066#,
16#0020#, 16#0061#, 16#0020#, 16#0074#,
16#0079#, 16#0070#, 16#0065#, 16#0020#,
16#006F#, 16#0066#, 16#0020#, 16#0065#,
16#006C#, 16#0065#, 16#006D#, 16#0065#,
16#006E#, 16#0074#, 16#0020#, 16#0074#,
16#0068#, 16#0061#, 16#0074#, 16#0020#,
16#0069#, 16#0064#, 16#0065#, 16#006E#,
16#0074#, 16#0069#, 16#0066#, 16#0069#,
16#0065#, 16#0073#, 16#0020#, 16#0061#,
16#0020#, 16#006D#, 16#0065#, 16#0073#,
16#0073#, 16#0061#, 16#0067#, 16#0065#,
16#0020#, 16#0028#, 16#0065#, 16#002E#,
16#0067#, 16#002E#, 16#002C#, 16#0020#,
16#0061#, 16#006E#, 16#0020#, 16#004F#,
16#0070#, 16#0065#, 16#0072#, 16#0061#,
16#0074#, 16#0069#, 16#006F#, 16#006E#,
16#002C#, 16#0020#, 16#0052#, 16#0065#,
16#0063#, 16#0065#, 16#0070#, 16#0074#,
16#0069#, 16#006F#, 16#006E#, 16#002C#,
16#0020#, 16#006F#, 16#0072#, 16#0020#,
16#0061#, 16#0020#, 16#0053#, 16#0069#,
16#0067#, 16#006E#, 16#0061#, 16#006C#,
16#0029#, 16#002E#,
others => 16#0000#),
others => <>);
-- "selection_behaviour"
MS_08FF : aliased Matreshka.Internals.Strings.Shared_String
:= (Capacity => 23,
Unused => 19,
Length => 19,
Value =>
(16#0073#, 16#0065#, 16#006C#, 16#0065#,
16#0063#, 16#0074#, 16#0069#, 16#006F#,
16#006E#, 16#005F#, 16#0062#, 16#0065#,
16#0068#, 16#0061#, 16#0076#, 16#0069#,
16#006F#, 16#0075#, 16#0072#,
others => 16#0000#),
others => <>);
end AMF.Internals.Tables.UML_String_Data_08;
|
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE boost_serialization>
<boost_serialization signature="serialization::archive" version="14">
<syndb class_id="0" tracking_level="0" version="0">
<userIPLatency>-1</userIPLatency>
<userIPName></userIPName>
<cdfg class_id="1" tracking_level="1" version="0" object_id="_0">
<name>Mem2Stream</name>
<ret_bitwidth>0</ret_bitwidth>
<ports class_id="2" tracking_level="0" version="0">
<count>4</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_V</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo class_id="6" tracking_level="0" version="0">
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>in.V</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>64</bitwidth>
</Value>
<direction>0</direction>
<if_type>4</if_type>
<array_size>0</array_size>
<bit_vecs class_id="7" tracking_level="0" version="0">
<count>0</count>
<item_version>0</item_version>
</bit_vecs>
</item>
<item class_id_reference="3" object_id="_2">
<Value>
<Obj>
<type>1</type>
<id>2</id>
<name>in_V1</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>61</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>tmp_8</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>out_V_V</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>out.V.V</originalName>
<rtlName></rtlName>
<coreName></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>17</count>
<item_version>0</item_version>
<item class_id="9" tracking_level="1" version="0" object_id="_5">
<Value>
<Obj>
<type>0</type>
<id>5</id>
<name>tmp_8_read</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>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>33</item>
<item>34</item>
</oprand_edges>
<opcode>read</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_6">
<Value>
<Obj>
<type>0</type>
<id>6</id>
<name>in_V1_read</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>61</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>36</item>
<item>37</item>
</oprand_edges>
<opcode>read</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_7">
<Value>
<Obj>
<type>0</type>
<id>9</id>
<name>tmp_cast8</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>62</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>38</item>
</oprand_edges>
<opcode>zext</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_8">
<Value>
<Obj>
<type>0</type>
<id>10</id>
<name>in_V1_cast9</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>62</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>39</item>
</oprand_edges>
<opcode>zext</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_9">
<Value>
<Obj>
<type>0</type>
<id>11</id>
<name>sum1</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>62</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>40</item>
<item>41</item>
</oprand_edges>
<opcode>add</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_10">
<Value>
<Obj>
<type>0</type>
<id>12</id>
<name>sum1_cast</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>64</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>42</item>
</oprand_edges>
<opcode>zext</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_11">
<Value>
<Obj>
<type>0</type>
<id>13</id>
<name>in_V_addr</name>
<fileName>/home/jf2715/BNN-PYNQ/bnn/src//library/finn-hlslib/dma.h</fileName>
<fileDirectory>/home/jf2715/BNN-PYNQ/bnn/src/network/output/hls-syn</fileDirectory>
<lineNumber>142</lineNumber>
<contextFuncName>Mem2Stream&lt;64, 104&gt;</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item class_id="11" tracking_level="0" version="0">
<first>/home/jf2715/BNN-PYNQ/bnn/src/network/output/hls-syn</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>/home/jf2715/BNN-PYNQ/bnn/src//library/finn-hlslib/dma.h</first>
<second>Mem2Stream&lt;64, 104&gt;</second>
</first>
<second>142</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>64</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>43</item>
<item>44</item>
</oprand_edges>
<opcode>getelementptr</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_12">
<Value>
<Obj>
<type>0</type>
<id>14</id>
<name>in_V_addr_rd_req</name>
<fileName>/home/jf2715/BNN-PYNQ/bnn/src//library/finn-hlslib/dma.h</fileName>
<fileDirectory>/home/jf2715/BNN-PYNQ/bnn/src/network/output/hls-syn</fileDirectory>
<lineNumber>142</lineNumber>
<contextFuncName>Mem2Stream&lt;64, 104&gt;</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/jf2715/BNN-PYNQ/bnn/src/network/output/hls-syn</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/home/jf2715/BNN-PYNQ/bnn/src//library/finn-hlslib/dma.h</first>
<second>Mem2Stream&lt;64, 104&gt;</second>
</first>
<second>142</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>46</item>
<item>47</item>
<item>49</item>
</oprand_edges>
<opcode>readreq</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_13">
<Value>
<Obj>
<type>0</type>
<id>15</id>
<name></name>
<fileName>/home/jf2715/BNN-PYNQ/bnn/src//library/finn-hlslib/dma.h</fileName>
<fileDirectory>/home/jf2715/BNN-PYNQ/bnn/src/network/output/hls-syn</fileDirectory>
<lineNumber>140</lineNumber>
<contextFuncName>Mem2Stream&lt;64, 104&gt;</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/jf2715/BNN-PYNQ/bnn/src/network/output/hls-syn</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/home/jf2715/BNN-PYNQ/bnn/src//library/finn-hlslib/dma.h</first>
<second>Mem2Stream&lt;64, 104&gt;</second>
</first>
<second>140</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>50</item>
</oprand_edges>
<opcode>br</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_14">
<Value>
<Obj>
<type>0</type>
<id>17</id>
<name>i</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>i</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>4</bitwidth>
</Value>
<oprand_edges>
<count>4</count>
<item_version>0</item_version>
<item>52</item>
<item>53</item>
<item>54</item>
<item>55</item>
</oprand_edges>
<opcode>phi</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_15">
<Value>
<Obj>
<type>0</type>
<id>18</id>
<name>tmp</name>
<fileName>/home/jf2715/BNN-PYNQ/bnn/src//library/finn-hlslib/dma.h</fileName>
<fileDirectory>/home/jf2715/BNN-PYNQ/bnn/src/network/output/hls-syn</fileDirectory>
<lineNumber>140</lineNumber>
<contextFuncName>Mem2Stream&lt;64, 104&gt;</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/jf2715/BNN-PYNQ/bnn/src/network/output/hls-syn</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/home/jf2715/BNN-PYNQ/bnn/src//library/finn-hlslib/dma.h</first>
<second>Mem2Stream&lt;64, 104&gt;</second>
</first>
<second>140</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>56</item>
<item>58</item>
</oprand_edges>
<opcode>icmp</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_16">
<Value>
<Obj>
<type>0</type>
<id>19</id>
<name>i_3</name>
<fileName>/home/jf2715/BNN-PYNQ/bnn/src//library/finn-hlslib/dma.h</fileName>
<fileDirectory>/home/jf2715/BNN-PYNQ/bnn/src/network/output/hls-syn</fileDirectory>
<lineNumber>140</lineNumber>
<contextFuncName>Mem2Stream&lt;64, 104&gt;</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/jf2715/BNN-PYNQ/bnn/src/network/output/hls-syn</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/home/jf2715/BNN-PYNQ/bnn/src//library/finn-hlslib/dma.h</first>
<second>Mem2Stream&lt;64, 104&gt;</second>
</first>
<second>140</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>i</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>4</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>59</item>
<item>61</item>
</oprand_edges>
<opcode>add</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_17">
<Value>
<Obj>
<type>0</type>
<id>20</id>
<name></name>
<fileName>/home/jf2715/BNN-PYNQ/bnn/src//library/finn-hlslib/dma.h</fileName>
<fileDirectory>/home/jf2715/BNN-PYNQ/bnn/src/network/output/hls-syn</fileDirectory>
<lineNumber>140</lineNumber>
<contextFuncName>Mem2Stream&lt;64, 104&gt;</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/jf2715/BNN-PYNQ/bnn/src/network/output/hls-syn</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/home/jf2715/BNN-PYNQ/bnn/src//library/finn-hlslib/dma.h</first>
<second>Mem2Stream&lt;64, 104&gt;</second>
</first>
<second>140</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>62</item>
<item>63</item>
<item>64</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>25</id>
<name>e_V</name>
<fileName>/home/jf2715/BNN-PYNQ/bnn/src//library/finn-hlslib/dma.h</fileName>
<fileDirectory>/home/jf2715/BNN-PYNQ/bnn/src/network/output/hls-syn</fileDirectory>
<lineNumber>142</lineNumber>
<contextFuncName>Mem2Stream&lt;64, 104&gt;</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/jf2715/BNN-PYNQ/bnn/src/network/output/hls-syn</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/home/jf2715/BNN-PYNQ/bnn/src//library/finn-hlslib/dma.h</first>
<second>Mem2Stream&lt;64, 104&gt;</second>
</first>
<second>142</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>e.V</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>64</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>66</item>
<item>67</item>
<item>144</item>
</oprand_edges>
<opcode>read</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_19">
<Value>
<Obj>
<type>0</type>
<id>26</id>
<name></name>
<fileName>/home/jf2715/BNN-PYNQ/bnn/src//library/finn-hlslib/dma.h</fileName>
<fileDirectory>/home/jf2715/BNN-PYNQ/bnn/src/network/output/hls-syn</fileDirectory>
<lineNumber>143</lineNumber>
<contextFuncName>Mem2Stream&lt;64, 104&gt;</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/jf2715/BNN-PYNQ/bnn/src/network/output/hls-syn</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/home/jf2715/BNN-PYNQ/bnn/src//library/finn-hlslib/dma.h</first>
<second>Mem2Stream&lt;64, 104&gt;</second>
</first>
<second>143</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>69</item>
<item>70</item>
<item>71</item>
</oprand_edges>
<opcode>write</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_20">
<Value>
<Obj>
<type>0</type>
<id>28</id>
<name></name>
<fileName>/home/jf2715/BNN-PYNQ/bnn/src//library/finn-hlslib/dma.h</fileName>
<fileDirectory>/home/jf2715/BNN-PYNQ/bnn/src/network/output/hls-syn</fileDirectory>
<lineNumber>140</lineNumber>
<contextFuncName>Mem2Stream&lt;64, 104&gt;</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/jf2715/BNN-PYNQ/bnn/src/network/output/hls-syn</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/home/jf2715/BNN-PYNQ/bnn/src//library/finn-hlslib/dma.h</first>
<second>Mem2Stream&lt;64, 104&gt;</second>
</first>
<second>140</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>72</item>
</oprand_edges>
<opcode>br</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_21">
<Value>
<Obj>
<type>0</type>
<id>30</id>
<name></name>
<fileName>/home/jf2715/BNN-PYNQ/bnn/src//library/finn-hlslib/dma.h</fileName>
<fileDirectory>/home/jf2715/BNN-PYNQ/bnn/src/network/output/hls-syn</fileDirectory>
<lineNumber>145</lineNumber>
<contextFuncName>Mem2Stream&lt;64, 104&gt;</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/jf2715/BNN-PYNQ/bnn/src/network/output/hls-syn</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>/home/jf2715/BNN-PYNQ/bnn/src//library/finn-hlslib/dma.h</first>
<second>Mem2Stream&lt;64, 104&gt;</second>
</first>
<second>145</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>0</count>
<item_version>0</item_version>
</oprand_edges>
<opcode>ret</opcode>
<m_Display>0</m_Display>
</item>
</nodes>
<consts class_id="15" tracking_level="0" version="0">
<count>4</count>
<item_version>0</item_version>
<item class_id="16" tracking_level="1" version="0" object_id="_22">
<Value>
<Obj>
<type>2</type>
<id>48</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>13</content>
</item>
<item class_id_reference="16" object_id="_23">
<Value>
<Obj>
<type>2</type>
<id>51</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>4</bitwidth>
</Value>
<const_type>0</const_type>
<content>0</content>
</item>
<item class_id_reference="16" object_id="_24">
<Value>
<Obj>
<type>2</type>
<id>57</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>4</bitwidth>
</Value>
<const_type>0</const_type>
<content>13</content>
</item>
<item class_id_reference="16" object_id="_25">
<Value>
<Obj>
<type>2</type>
<id>60</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>4</bitwidth>
</Value>
<const_type>0</const_type>
<content>1</content>
</item>
</consts>
<blocks class_id="17" tracking_level="0" version="0">
<count>4</count>
<item_version>0</item_version>
<item class_id="18" tracking_level="1" version="0" object_id="_26">
<Obj>
<type>3</type>
<id>16</id>
<name></name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<node_objs>
<count>9</count>
<item_version>0</item_version>
<item>5</item>
<item>6</item>
<item>9</item>
<item>10</item>
<item>11</item>
<item>12</item>
<item>13</item>
<item>14</item>
<item>15</item>
</node_objs>
</item>
<item class_id_reference="18" object_id="_27">
<Obj>
<type>3</type>
<id>21</id>
<name></name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<node_objs>
<count>4</count>
<item_version>0</item_version>
<item>17</item>
<item>18</item>
<item>19</item>
<item>20</item>
</node_objs>
</item>
<item class_id_reference="18" object_id="_28">
<Obj>
<type>3</type>
<id>29</id>
<name></name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<node_objs>
<count>3</count>
<item_version>0</item_version>
<item>25</item>
<item>26</item>
<item>28</item>
</node_objs>
</item>
<item class_id_reference="18" object_id="_29">
<Obj>
<type>3</type>
<id>31</id>
<name></name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<node_objs>
<count>1</count>
<item_version>0</item_version>
<item>30</item>
</node_objs>
</item>
</blocks>
<edges class_id="19" tracking_level="0" version="0">
<count>32</count>
<item_version>0</item_version>
<item class_id="20" tracking_level="1" version="0" object_id="_30">
<id>34</id>
<edge_type>1</edge_type>
<source_obj>3</source_obj>
<sink_obj>5</sink_obj>
</item>
<item class_id_reference="20" object_id="_31">
<id>37</id>
<edge_type>1</edge_type>
<source_obj>2</source_obj>
<sink_obj>6</sink_obj>
</item>
<item class_id_reference="20" object_id="_32">
<id>38</id>
<edge_type>1</edge_type>
<source_obj>5</source_obj>
<sink_obj>9</sink_obj>
</item>
<item class_id_reference="20" object_id="_33">
<id>39</id>
<edge_type>1</edge_type>
<source_obj>6</source_obj>
<sink_obj>10</sink_obj>
</item>
<item class_id_reference="20" object_id="_34">
<id>40</id>
<edge_type>1</edge_type>
<source_obj>10</source_obj>
<sink_obj>11</sink_obj>
</item>
<item class_id_reference="20" object_id="_35">
<id>41</id>
<edge_type>1</edge_type>
<source_obj>9</source_obj>
<sink_obj>11</sink_obj>
</item>
<item class_id_reference="20" object_id="_36">
<id>42</id>
<edge_type>1</edge_type>
<source_obj>11</source_obj>
<sink_obj>12</sink_obj>
</item>
<item class_id_reference="20" object_id="_37">
<id>43</id>
<edge_type>1</edge_type>
<source_obj>1</source_obj>
<sink_obj>13</sink_obj>
</item>
<item class_id_reference="20" object_id="_38">
<id>44</id>
<edge_type>1</edge_type>
<source_obj>12</source_obj>
<sink_obj>13</sink_obj>
</item>
<item class_id_reference="20" object_id="_39">
<id>47</id>
<edge_type>1</edge_type>
<source_obj>13</source_obj>
<sink_obj>14</sink_obj>
</item>
<item class_id_reference="20" object_id="_40">
<id>49</id>
<edge_type>1</edge_type>
<source_obj>48</source_obj>
<sink_obj>14</sink_obj>
</item>
<item class_id_reference="20" object_id="_41">
<id>50</id>
<edge_type>2</edge_type>
<source_obj>21</source_obj>
<sink_obj>15</sink_obj>
</item>
<item class_id_reference="20" object_id="_42">
<id>52</id>
<edge_type>1</edge_type>
<source_obj>51</source_obj>
<sink_obj>17</sink_obj>
</item>
<item class_id_reference="20" object_id="_43">
<id>53</id>
<edge_type>2</edge_type>
<source_obj>16</source_obj>
<sink_obj>17</sink_obj>
</item>
<item class_id_reference="20" object_id="_44">
<id>54</id>
<edge_type>1</edge_type>
<source_obj>19</source_obj>
<sink_obj>17</sink_obj>
</item>
<item class_id_reference="20" object_id="_45">
<id>55</id>
<edge_type>2</edge_type>
<source_obj>29</source_obj>
<sink_obj>17</sink_obj>
</item>
<item class_id_reference="20" object_id="_46">
<id>56</id>
<edge_type>1</edge_type>
<source_obj>17</source_obj>
<sink_obj>18</sink_obj>
</item>
<item class_id_reference="20" object_id="_47">
<id>58</id>
<edge_type>1</edge_type>
<source_obj>57</source_obj>
<sink_obj>18</sink_obj>
</item>
<item class_id_reference="20" object_id="_48">
<id>59</id>
<edge_type>1</edge_type>
<source_obj>17</source_obj>
<sink_obj>19</sink_obj>
</item>
<item class_id_reference="20" object_id="_49">
<id>61</id>
<edge_type>1</edge_type>
<source_obj>60</source_obj>
<sink_obj>19</sink_obj>
</item>
<item class_id_reference="20" object_id="_50">
<id>62</id>
<edge_type>1</edge_type>
<source_obj>18</source_obj>
<sink_obj>20</sink_obj>
</item>
<item class_id_reference="20" object_id="_51">
<id>63</id>
<edge_type>2</edge_type>
<source_obj>29</source_obj>
<sink_obj>20</sink_obj>
</item>
<item class_id_reference="20" object_id="_52">
<id>64</id>
<edge_type>2</edge_type>
<source_obj>31</source_obj>
<sink_obj>20</sink_obj>
</item>
<item class_id_reference="20" object_id="_53">
<id>67</id>
<edge_type>1</edge_type>
<source_obj>13</source_obj>
<sink_obj>25</sink_obj>
</item>
<item class_id_reference="20" object_id="_54">
<id>70</id>
<edge_type>1</edge_type>
<source_obj>4</source_obj>
<sink_obj>26</sink_obj>
</item>
<item class_id_reference="20" object_id="_55">
<id>71</id>
<edge_type>1</edge_type>
<source_obj>25</source_obj>
<sink_obj>26</sink_obj>
</item>
<item class_id_reference="20" object_id="_56">
<id>72</id>
<edge_type>2</edge_type>
<source_obj>21</source_obj>
<sink_obj>28</sink_obj>
</item>
<item class_id_reference="20" object_id="_57">
<id>140</id>
<edge_type>2</edge_type>
<source_obj>16</source_obj>
<sink_obj>21</sink_obj>
</item>
<item class_id_reference="20" object_id="_58">
<id>141</id>
<edge_type>2</edge_type>
<source_obj>21</source_obj>
<sink_obj>31</sink_obj>
</item>
<item class_id_reference="20" object_id="_59">
<id>142</id>
<edge_type>2</edge_type>
<source_obj>21</source_obj>
<sink_obj>29</sink_obj>
</item>
<item class_id_reference="20" object_id="_60">
<id>143</id>
<edge_type>2</edge_type>
<source_obj>29</source_obj>
<sink_obj>21</sink_obj>
</item>
<item class_id_reference="20" object_id="_61">
<id>144</id>
<edge_type>4</edge_type>
<source_obj>14</source_obj>
<sink_obj>25</sink_obj>
</item>
</edges>
</cdfg>
<cdfg_regions class_id="21" tracking_level="0" version="0">
<count>4</count>
<item_version>0</item_version>
<item class_id="22" tracking_level="1" version="0" object_id="_62">
<mId>1</mId>
<mTag>Mem2Stream</mTag>
<mType>0</mType>
<sub_regions>
<count>3</count>
<item_version>0</item_version>
<item>2</item>
<item>3</item>
<item>4</item>
</sub_regions>
<basic_blocks>
<count>0</count>
<item_version>0</item_version>
</basic_blocks>
<mII>-1</mII>
<mDepth>-1</mDepth>
<mMinTripCount>-1</mMinTripCount>
<mMaxTripCount>-1</mMaxTripCount>
<mMinLatency>23</mMinLatency>
<mMaxLatency>-1</mMaxLatency>
<mIsDfPipe>0</mIsDfPipe>
<mDfPipe class_id="-1"></mDfPipe>
</item>
<item class_id_reference="22" object_id="_63">
<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>16</item>
</basic_blocks>
<mII>-1</mII>
<mDepth>-1</mDepth>
<mMinTripCount>-1</mMinTripCount>
<mMaxTripCount>-1</mMaxTripCount>
<mMinLatency>7</mMinLatency>
<mMaxLatency>-1</mMaxLatency>
<mIsDfPipe>0</mIsDfPipe>
<mDfPipe class_id="-1"></mDfPipe>
</item>
<item class_id_reference="22" object_id="_64">
<mId>3</mId>
<mTag>Loop 1</mTag>
<mType>1</mType>
<sub_regions>
<count>0</count>
<item_version>0</item_version>
</sub_regions>
<basic_blocks>
<count>2</count>
<item_version>0</item_version>
<item>21</item>
<item>29</item>
</basic_blocks>
<mII>1</mII>
<mDepth>3</mDepth>
<mMinTripCount>13</mMinTripCount>
<mMaxTripCount>13</mMaxTripCount>
<mMinLatency>14</mMinLatency>
<mMaxLatency>-1</mMaxLatency>
<mIsDfPipe>0</mIsDfPipe>
<mDfPipe class_id="-1"></mDfPipe>
</item>
<item class_id_reference="22" object_id="_65">
<mId>4</mId>
<mTag>Return</mTag>
<mType>0</mType>
<sub_regions>
<count>0</count>
<item_version>0</item_version>
</sub_regions>
<basic_blocks>
<count>1</count>
<item_version>0</item_version>
<item>31</item>
</basic_blocks>
<mII>-1</mII>
<mDepth>-1</mDepth>
<mMinTripCount>-1</mMinTripCount>
<mMaxTripCount>-1</mMaxTripCount>
<mMinLatency>0</mMinLatency>
<mMaxLatency>-1</mMaxLatency>
<mIsDfPipe>0</mIsDfPipe>
<mDfPipe class_id="-1"></mDfPipe>
</item>
</cdfg_regions>
<fsm class_id="-1"></fsm>
<res class_id="-1"></res>
<node_label_latency class_id="26" tracking_level="0" version="0">
<count>17</count>
<item_version>0</item_version>
<item class_id="27" tracking_level="0" version="0">
<first>5</first>
<second class_id="28" tracking_level="0" version="0">
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>6</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>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>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>6</second>
</second>
</item>
<item>
<first>15</first>
<second>
<first>7</first>
<second>0</second>
</second>
</item>
<item>
<first>17</first>
<second>
<first>8</first>
<second>0</second>
</second>
</item>
<item>
<first>18</first>
<second>
<first>8</first>
<second>0</second>
</second>
</item>
<item>
<first>19</first>
<second>
<first>8</first>
<second>0</second>
</second>
</item>
<item>
<first>20</first>
<second>
<first>8</first>
<second>0</second>
</second>
</item>
<item>
<first>25</first>
<second>
<first>9</first>
<second>0</second>
</second>
</item>
<item>
<first>26</first>
<second>
<first>10</first>
<second>0</second>
</second>
</item>
<item>
<first>28</first>
<second>
<first>10</first>
<second>0</second>
</second>
</item>
<item>
<first>30</first>
<second>
<first>9</first>
<second>0</second>
</second>
</item>
</node_label_latency>
<bblk_ent_exit class_id="29" tracking_level="0" version="0">
<count>4</count>
<item_version>0</item_version>
<item class_id="30" tracking_level="0" version="0">
<first>16</first>
<second class_id="31" tracking_level="0" version="0">
<first>0</first>
<second>7</second>
</second>
</item>
<item>
<first>21</first>
<second>
<first>8</first>
<second>8</second>
</second>
</item>
<item>
<first>29</first>
<second>
<first>9</first>
<second>10</second>
</second>
</item>
<item>
<first>31</first>
<second>
<first>9</first>
<second>9</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="_66">
<region_name>Loop 1</region_name>
<basic_blocks>
<count>2</count>
<item_version>0</item_version>
<item>21</item>
<item>29</item>
</basic_blocks>
<nodes>
<count>0</count>
<item_version>0</item_version>
</nodes>
<anchor_node>-1</anchor_node>
<region_type>8</region_type>
<interval>1</interval>
<pipe_depth>3</pipe_depth>
</item>
</regions>
<dp_fu_nodes class_id="34" tracking_level="0" version="0">
<count>0</count>
<item_version>0</item_version>
</dp_fu_nodes>
<dp_fu_nodes_expression class_id="35" tracking_level="0" version="0">
<count>0</count>
<item_version>0</item_version>
</dp_fu_nodes_expression>
<dp_fu_nodes_module>
<count>0</count>
<item_version>0</item_version>
</dp_fu_nodes_module>
<dp_fu_nodes_io>
<count>0</count>
<item_version>0</item_version>
</dp_fu_nodes_io>
<return_ports>
<count>0</count>
<item_version>0</item_version>
</return_ports>
<dp_mem_port_nodes class_id="36" tracking_level="0" version="0">
<count>0</count>
<item_version>0</item_version>
</dp_mem_port_nodes>
<dp_reg_nodes>
<count>0</count>
<item_version>0</item_version>
</dp_reg_nodes>
<dp_regname_nodes>
<count>0</count>
<item_version>0</item_version>
</dp_regname_nodes>
<dp_reg_phi>
<count>0</count>
<item_version>0</item_version>
</dp_reg_phi>
<dp_regname_phi>
<count>0</count>
<item_version>0</item_version>
</dp_regname_phi>
<dp_port_io_nodes class_id="37" tracking_level="0" version="0">
<count>0</count>
<item_version>0</item_version>
</dp_port_io_nodes>
<port2core class_id="38" tracking_level="0" version="0">
<count>0</count>
<item_version>0</item_version>
</port2core>
<node2core>
<count>0</count>
<item_version>0</item_version>
</node2core>
</syndb>
</boost_serialization>
|
with Ada.text_IO;
-- testing attributes 'Value and 'Image as applied to Integer
procedure tloops1 is
A,B,C : Integer;
subtype Alphabet is Character range 'A' .. 'Z';
begin
for X in Alphabet loop
Ada.Text_IO.Put(Alphabet'Image(X) & " ");
end loop;
A := Integer'Value ( Ada.text_IO.Get_Line);
B := Integer'Value ( Ada.text_IO.Get_Line);
C := A + B ;
if c = 0 then
Ada.text_IO.Put_Line ("Result is 0 ");
elsif C > 0 then
Ada.text_IO.Put_Line ("Positive Result : " & Integer'Image(C));
else
Ada.text_IO.Put_Line ("negative Result : " & Integer'Image(C));
end if;
end tloops1;
|
with
openGL.Geometry.lit_colored_textured,
openGL.Texture,
openGL.IO,
openGL.Primitive.indexed;
package body openGL.Model.capsule.lit_colored_textured
is
---------
--- Forge
--
function new_Capsule (Radius : in Real;
Height : in Real;
Color : in lucid_Color;
Image : in asset_Name := null_Asset) return View
is
Self : constant View := new Item;
begin
Self.Radius := Radius;
Self.Height := Height;
Self.Color := Color;
Self.Image := Image;
return Self;
end new_Capsule;
--------------
--- Attributes
--
type Geometry_view is access all Geometry.lit_colored_textured.item'Class;
overriding
function to_GL_Geometries (Self : access Item; Textures : access Texture.name_Map_of_texture'Class;
Fonts : in Font.font_id_Map_of_font) return Geometry.views
is
pragma unreferenced (Textures, Fonts);
use Geometry,
Geometry.lit_colored_textured,
real_Functions;
Length : constant Real := Self.Height;
Radius : constant Real := Self.Radius;
quality_Level : constant Index_t := 4;
sides_Count : constant Index_t := Index_t (quality_Level * 4); -- Number of sides to the cylinder (divisible by 4):
type Edge is -- A 'shaft' edge.
record
Fore : Site;
Aft : Site;
end record;
type Edges is array (Index_t range 1 .. sides_Count) of Edge;
type arch_Edges is array (Index_t range 1 .. quality_Level) of Sites (1 .. sides_Count);
tmp,
nx, ny, nz,
start_nx,
start_ny : Real;
a : constant Real := Pi * 2.0 / Real (sides_Count);
ca : constant Real := Cos (a);
sa : constant Real := Sin (a);
L : constant Real := Length * 0.5;
the_Edges : Edges;
the_shaft_Geometry : constant Geometry_view
:= Geometry_view (Geometry.lit_colored_textured.new_Geometry (texture_is_Alpha => False));
cap_1_Geometry : Geometry_view;
cap_2_Geometry : Geometry_view;
begin
-- Define capsule shaft,
--
declare
vertex_Count : constant Index_t := Index_t (sides_Count * 2 + 2); -- 2 triangles per side plus 2 since we cannot share the first and last edge.
indices_Count : constant long_Index_t := long_Index_t (sides_Count * 2 * 3); -- 2 triangles per side with 3 vertices per triangle.
the_Vertices : aliased Geometry.lit_colored_textured.Vertex_array := (1 .. vertex_Count => <>);
the_Indices : aliased Indices := (1 .. indices_Count => <>);
begin
ny := 1.0;
nz := 0.0; -- Normal vector = (0.0, ny, nz)
-- Set vertices.
--
declare
use linear_Algebra;
S : Real := 0.0;
S_delta : constant Real := 1.0 / Real (sides_Count);
i : Index_t := 1;
begin
for Each in 1 .. Index_t (Edges'Length)
loop
the_Edges (Each).Fore (1) := ny * Radius;
the_Edges (Each).Fore (2) := nz * Radius;
the_Edges (Each).Fore (3) := L;
the_Edges (Each).Aft (1) := ny * Radius;
the_Edges (Each).Aft (2) := nz * Radius;
the_Edges (Each).Aft (3) := -L;
-- Rotate ny, nz.
--
tmp := ca * ny - sa * nz;
nz := sa * ny + ca * nz;
ny := tmp;
the_Vertices (i).Site := the_Edges (Each).Fore;
the_Vertices (i).Normal := Normalised ((the_Vertices (i).Site (1),
the_Vertices (i).Site (2),
0.0));
the_Vertices (i).Color := Self.Color;
the_Vertices (i).Coords := (s => S,
t => 1.0);
i := i + 1;
the_Vertices (i).Site := the_Edges (Each).Aft;
the_Vertices (i).Normal := the_Vertices (i - 1).Normal;
the_Vertices (i).Color := Self.Color;
the_Vertices (i).Coords := (s => S,
t => 0.0);
i := i + 1;
S := S + S_delta;
end loop;
the_Vertices (i).Site := the_Edges (1).Fore;
the_Vertices (i).Normal := Normalised ((the_Vertices (i).Site (1),
the_Vertices (i).Site (2),
0.0));
the_Vertices (i).Color := Self.Color;
the_Vertices (i).Coords := (s => S,
t => 1.0);
i := i + 1;
the_Vertices (i).Site := the_Edges (1).Aft;
the_Vertices (i).Normal := the_Vertices (i - 1).Normal;
the_Vertices (i).Color := Self.Color;
the_Vertices (i).Coords := (s => S,
t => 0.0);
end;
-- Set indices.
--
declare
i : long_Index_t := 1;
Start : Index_t := 1;
begin
for Each in 1 .. long_Index_t (sides_Count)
loop
the_Indices (i) := Start; i := i + 1;
the_Indices (i) := Start + 1; i := i + 1;
the_Indices (i) := Start + 2; i := i + 1;
the_Indices (i) := Start + 1; i := i + 1;
the_Indices (i) := Start + 3; i := i + 1;
the_Indices (i) := Start + 2; i := i + 1;
Start := Start + 2;
end loop;
end;
if Self.Image /= null_Asset
then
set_Texture:
declare
use Texture;
the_Image : constant Image := IO.to_Image (Self.Image);
the_Texture : constant Texture.object := Forge.to_Texture (the_Image);
begin
the_shaft_Geometry.Texture_is (the_Texture);
end set_Texture;
end if;
Vertices_are (the_shaft_Geometry.all, the_Vertices);
declare
the_Primitive : constant Primitive.indexed.view
:= Primitive.indexed.new_Primitive (primitive.Triangles,
the_Indices);
begin
the_shaft_Geometry.add (Primitive.view (the_Primitive));
end;
end;
declare
function new_Cap (is_Fore : Boolean) return Geometry_view
is
use linear_Algebra;
cap_Geometry : constant Geometry_view
:= Geometry.lit_colored_textured.new_Geometry (texture_is_Alpha => False);
hoop_Count : constant Index_t := quality_Level;
vertex_Count : constant Index_t := Index_t (Edges'Length * hoop_Count + 1); -- A vertex for each edge of each hoop, + 1 for the pole.
indices_Count : constant long_Index_t := long_Index_t ( (hoop_count - 1) * sides_Count * 2 * 3 -- For each hoop, 2 triangles per side with 3 vertices per triangle
+ sides_Count * 3); -- plus the extra indices for the pole triangles.
the_Vertices : aliased Geometry.lit_colored_textured.Vertex_array := (1 .. vertex_Count => <>);
the_Indices : aliased Indices := (1 .. indices_Count => <>);
the_arch_Edges : arch_Edges;
i : Index_t := 1;
pole_Site : constant Site := (if is_Fore then (0.0, 0.0, L + Radius)
else (0.0, 0.0, -L - Radius));
Degrees_90 : constant := Pi / 2.0;
Degrees_360 : constant := Pi * 2.0;
latitude_Count : constant := hoop_Count + 1;
longitude_Count : constant := Edges'Length;
latitude_Spacing : constant Real := Degrees_90 / Real (latitude_Count - 1);
longitude_Spacing : constant Real := Degrees_360 / Real (longitude_Count);
a, b : Real := 0.0; -- Angular 'cursors' used to track lat/long for texture coords.
begin
if not is_Fore
then
a := Degrees_360;
end if;
-- Set the vertices.
--
start_nx := 0.0;
start_ny := 1.0;
for each_Hoop in 1 .. quality_Level
loop
-- Get n=start_n.
--
nx := start_nx;
ny := start_ny;
nz := 0.0;
for Each in 1 .. sides_Count
loop
the_arch_Edges (each_Hoop) (Each) (1) := ny * Radius;
the_arch_Edges (each_Hoop) (Each) (2) := nz * Radius;
the_arch_Edges (each_Hoop) (Each) (3) := (if is_Fore then nx * Radius + L
else nx * Radius - L);
-- Rotate ny, nz.
--
tmp := ca * ny - sa * nz;
nz := sa * ny + ca * nz;
ny := tmp;
the_Vertices (i).Site := the_arch_Edges (each_Hoop) (Each);
the_Vertices (i).Normal := Normalised ((the_Vertices (i).Site (1),
the_Vertices (i).Site (2),
(if is_Fore then the_Vertices (i).Site (3) - L
else the_Vertices (i).Site (3) + L)));
the_Vertices (i).Color := Self.Color;
the_Vertices (i).Coords := (s => a / Degrees_360,
t => b / Degrees_90);
i := i + 1;
a := (if is_Fore then a + longitude_Spacing
else a - longitude_Spacing);
end loop;
declare
tmp : constant Real := start_nx;
begin
if is_Fore
then
start_nx := ca * start_nx + sa * start_ny;
start_ny := -sa * tmp + ca * start_ny;
else
start_nx := ca * start_nx - sa * start_ny;
start_ny := sa * tmp + ca * start_ny;
end if;
end;
a := (if is_Fore then 0.0
else Degrees_360);
b := b + latitude_Spacing;
end loop;
-- Add pole vertex.
--
the_Vertices (i).Site := pole_Site;
the_Vertices (i).Normal := Normalised (pole_Site);
the_Vertices (i).Color := Self.Color;
the_Vertices (i).Coords := (s => 0.5,
t => 1.0);
-- Set indices.
--
declare
i : long_Index_t := 1;
Start : Index_t := 1;
hoop_Start : Index_t := 1;
pole_Index : constant Index_t := vertex_Count;
begin
for each_Hoop in 1 .. quality_Level
loop
for Each in 1 .. sides_Count
loop
declare
function next_hoop_Vertex return Index_t
is
begin
if Each = sides_Count then return hoop_Start;
else return Start + 1;
end if;
end next_hoop_Vertex;
begin
if each_Hoop = quality_Level
then
if is_Fore
then
the_Indices (i) := Start; i := i + 1;
the_Indices (i) := next_hoop_Vertex; i := i + 1;
the_Indices (i) := pole_Index; i := i + 1;
else
the_Indices (i) := Start; i := i + 1;
the_Indices (i) := pole_Index; i := i + 1;
the_Indices (i) := next_hoop_Vertex; i := i + 1;
end if;
else
declare
v1 : constant Index_t := Start;
v2 : constant Index_t := next_hoop_Vertex;
v3 : constant Index_t := v1 + sides_Count;
v4 : constant Index_t := v2 + sides_Count;
begin
if is_Fore
then
the_Indices (i) := v1; i := i + 1;
the_Indices (i) := v2; i := i + 1;
the_Indices (i) := v3; i := i + 1;
the_Indices (i) := v2; i := i + 1;
the_Indices (i) := v4; i := i + 1;
the_Indices (i) := v3; i := i + 1;
else
the_Indices (i) := v1; i := i + 1;
the_Indices (i) := v3; i := i + 1;
the_Indices (i) := v2; i := i + 1;
the_Indices (i) := v2; i := i + 1;
the_Indices (i) := v3; i := i + 1;
the_Indices (i) := v4; i := i + 1;
end if;
end;
end if;
Start := Start + 1;
end;
end loop;
hoop_Start := hoop_Start + sides_Count;
end loop;
if Self.Image /= null_Asset
then
set_the_Texture:
declare
use Texture;
the_Image : constant Image := IO.to_Image (Self.Image);
the_Texture : constant Texture.object := Forge.to_Texture (the_Image);
begin
cap_Geometry.Texture_is (the_Texture);
end set_the_Texture;
end if;
Vertices_are (cap_Geometry.all, the_Vertices);
declare
the_Primitive : constant Primitive.indexed.view
:= Primitive.indexed.new_Primitive (Primitive.Triangles,
the_Indices);
begin
cap_Geometry.add (Primitive.view (the_Primitive));
end;
end;
return cap_Geometry;
end new_Cap;
begin
cap_1_Geometry := new_Cap (is_Fore => True);
cap_2_Geometry := new_Cap (is_Fore => False);
end;
return (1 => the_shaft_Geometry.all'Access,
2 => cap_1_Geometry.all'Access,
3 => cap_2_Geometry.all'Access);
end to_GL_Geometries;
end openGL.Model.capsule.lit_colored_textured;
|
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- A D A . E X C E P T I O N S . E X C E P T I O N _ P R O P A G A T I O N --
-- --
-- B o d y --
-- --
-- Copyright (C) 1992-2012, Free Software Foundation, Inc. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 3, or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. --
-- --
-- As a special exception under Section 7 of GPL version 3, you are granted --
-- additional permissions described in the GCC Runtime Library Exception, --
-- version 3.1, as published by the Free Software Foundation. --
-- --
-- You should have received a copy of the GNU General Public License and --
-- a copy of the GCC Runtime Library Exception along with this program; --
-- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
-- <http://www.gnu.org/licenses/>. --
-- --
-- GNAT was originally developed by the GNAT team at New York University. --
-- Extensive contributions were provided by Ada Core Technologies Inc. --
-- --
------------------------------------------------------------------------------
-- This is the default version, using the __builtin_setjmp/longjmp EH
-- mechanism.
with Ada.Unchecked_Conversion;
separate (Ada.Exceptions)
package body Exception_Propagation is
-- Common binding to __builtin_longjmp for sjlj variants.
procedure builtin_longjmp (buffer : System.Address; Flag : Integer);
pragma No_Return (builtin_longjmp);
pragma Import (Intrinsic, builtin_longjmp, "__builtin_longjmp");
procedure Propagate_Continue (E : Exception_Id);
pragma No_Return (Propagate_Continue);
pragma Export (C, Propagate_Continue, "__gnat_raise_nodefer_with_msg");
-- A call to this procedure is inserted automatically by GIGI, in order
-- to continue the propagation when the exception was not handled.
-- The linkage name is historical.
-------------------------
-- Allocate_Occurrence --
-------------------------
function Allocate_Occurrence return EOA is
begin
return Get_Current_Excep.all;
end Allocate_Occurrence;
-------------------------
-- Propagate_Exception --
-------------------------
procedure Propagate_Exception (Excep : EOA) is
Jumpbuf_Ptr : constant Address := Get_Jmpbuf_Address.all;
begin
-- If the jump buffer pointer is non-null, transfer control using
-- it. Otherwise announce an unhandled exception (note that this
-- means that we have no finalizations to do other than at the outer
-- level). Perform the necessary notification tasks in both cases.
if Jumpbuf_Ptr /= Null_Address then
if not Excep.Exception_Raised then
Excep.Exception_Raised := True;
Exception_Traces.Notify_Handled_Exception (Excep);
end if;
builtin_longjmp (Jumpbuf_Ptr, 1);
else
Exception_Traces.Notify_Unhandled_Exception (Excep);
Exception_Traces.Unhandled_Exception_Terminate (Excep);
end if;
end Propagate_Exception;
------------------------
-- Propagate_Continue --
------------------------
procedure Propagate_Continue (E : Exception_Id) is
pragma Unreferenced (E);
begin
Propagate_Exception (Get_Current_Excep.all);
end Propagate_Continue;
end Exception_Propagation;
|
-- Copyright 2016-2019 NXP
-- All rights reserved.SPDX-License-Identifier: BSD-3-Clause
-- This spec has been automatically generated from LPC55S6x_mod2.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with HAL;
with System;
package NXP_SVD.IOCON is
pragma Preelaborate;
---------------
-- Registers --
---------------
---------------------------
-- P cluster's Registers --
---------------------------
-----------------------------
-- PIO cluster's Registers --
-----------------------------
-- Selects pin function.
type CTL_FUNC_Field is
(-- Alternative connection 0.
Alt0,
-- Alternative connection 1.
Alt1,
-- Alternative connection 2.
Alt2,
-- Alternative connection 3.
Alt3,
-- Alternative connection 4.
Alt4,
-- Alternative connection 5.
Alt5,
-- Alternative connection 6.
Alt6,
-- Alternative connection 7.
Alt7)
with Size => 4;
for CTL_FUNC_Field use
(Alt0 => 0,
Alt1 => 1,
Alt2 => 2,
Alt3 => 3,
Alt4 => 4,
Alt5 => 5,
Alt6 => 6,
Alt7 => 7);
-- Selects function mode (on-chip pull-up/pull-down resistor control).
type CTL_MODE_Field is
(-- Inactive. Inactive (no pull-down/pull-up resistor enabled).
Inactive,
-- Pull-down. Pull-down resistor enabled.
Pull_Down,
-- Pull-up. Pull-up resistor enabled.
Pull_Up,
-- Repeater. Repeater mode.
Repeater)
with Size => 2;
for CTL_MODE_Field use
(Inactive => 0,
Pull_Down => 1,
Pull_Up => 2,
Repeater => 3);
-- Driver slew rate.
type CTL_SLEW_Field is
(-- Standard-mode, output slew rate is slower. More outputs can be switched
-- simultaneously.
Standard_Mode,
-- Fast-mode, output slew rate is faster. Refer to the appropriate specific
-- device data sheet for details.
Fast_Mode)
with Size => 1;
for CTL_SLEW_Field use
(Standard_Mode => 0,
Fast_Mode => 1);
-- Input polarity.
type CTL_INVERT_Field is
(-- Disabled. Input function is not inverted.
Disabled,
-- Enabled. Input is function inverted.
Enabled)
with Size => 1;
for CTL_INVERT_Field use
(Disabled => 0,
Enabled => 1);
-- Select Digital mode.
type CTL_DIGIMODE_Field is
(-- Disable digital mode. Digital input set to 0.
Analog,
-- Enable Digital mode. Digital input is enabled.
Digital)
with Size => 1;
for CTL_DIGIMODE_Field use
(Analog => 0,
Digital => 1);
-- Controls open-drain mode.
type CTL_OD_Field is
(-- Normal. Normal push-pull output
Normal,
-- Open-drain. Simulated open-drain output (high drive disabled).
Open_Drain)
with Size => 1;
for CTL_OD_Field use
(Normal => 0,
Open_Drain => 1);
-- Analog switch input control.
type CTL_ASW_Field is
(-- For pins PIO0_9, PIO0_11, PIO0_12, PIO0_15, PIO0_18, PIO0_31, PIO1_0 and
-- PIO1_9, analog switch is closed (enabled). For the other pins, analog
-- switch is open (disabled).
Value0,
-- For all pins except PIO0_9, PIO0_11, PIO0_12, PIO0_15, PIO0_18, PIO0_31,
-- PIO1_0 and PIO1_9 analog switch is closed (enabled)
Value1)
with Size => 1;
for CTL_ASW_Field use
(Value0 => 0,
Value1 => 1);
type CTL_PIO_Register is record
-- Selects pin function.
FUNC : HAL.UInt4 := 0;
-- Selects function mode (on-chip pull-up/pull-down resistor control).
MODE : CTL_MODE_Field := NXP_SVD.IOCON.Inactive;
-- Driver slew rate.
SLEW : CTL_SLEW_Field := NXP_SVD.IOCON.Standard_Mode;
-- Input polarity.
INVERT : CTL_INVERT_Field := NXP_SVD.IOCON.Disabled;
-- Select Digital mode.
DIGIMODE : CTL_DIGIMODE_Field := NXP_SVD.IOCON.Analog;
-- Controls open-drain mode.
OD : CTL_OD_Field := NXP_SVD.IOCON.Normal;
-- Analog switch input control.
ASW : CTL_ASW_Field := NXP_SVD.IOCON.Value0;
-- unspecified
Reserved_11_31 : HAL.UInt21 := 16#0#;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
for CTL_PIO_Register use record
FUNC at 0 range 0 .. 3;
MODE at 0 range 4 .. 5;
SLEW at 0 range 6 .. 6;
INVERT at 0 range 7 .. 7;
DIGIMODE at 0 range 8 .. 8;
OD at 0 range 9 .. 9;
ASW at 0 range 10 .. 10;
Reserved_11_31 at 0 range 11 .. 31;
end record;
type PIO_Cluster is record
CTL : aliased CTL_PIO_Register;
end record
with Size => 32;
for PIO_Cluster use record
CTL at 0 range 0 .. 31;
end record;
type PIO_Clusters is array (0 .. 31) of PIO_Cluster;
-- Digital I/O control for ports
type P_Cluster is record
PIO : aliased PIO_Clusters;
end record
with Size => 1024;
for P_Cluster use record
PIO at 0 range 0 .. 1023;
end record;
-- Digital I/O control for ports
type P_Clusters is array (0 .. 1) of P_Cluster;
-----------------
-- Peripherals --
-----------------
-- I/O pin configuration (IOCON)
type IOCON_Peripheral is record
-- Digital I/O control for ports
P : aliased P_Clusters;
end record
with Volatile;
for IOCON_Peripheral use record
P at 0 range 0 .. 2047;
end record;
-- I/O pin configuration (IOCON)
IOCON_Periph : aliased IOCON_Peripheral
with Import, Address => IOCON_Base;
end NXP_SVD.IOCON;
|
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- Ada Modeling Framework --
-- --
-- Runtime Library Component --
-- --
------------------------------------------------------------------------------
-- --
-- Copyright © 2011-2012, Vadim Godunko <vgodunko@gmail.com> --
-- All rights reserved. --
-- --
-- Redistribution and use in source and binary forms, with or without --
-- modification, are permitted provided that the following conditions --
-- are met: --
-- --
-- * Redistributions of source code must retain the above copyright --
-- notice, this list of conditions and the following disclaimer. --
-- --
-- * Redistributions in binary form must reproduce the above copyright --
-- notice, this list of conditions and the following disclaimer in the --
-- documentation and/or other materials provided with the distribution. --
-- --
-- * Neither the name of the Vadim Godunko, IE nor the names of its --
-- contributors may be used to endorse or promote products derived from --
-- this software without specific prior written permission. --
-- --
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS --
-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT --
-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR --
-- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT --
-- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, --
-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED --
-- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR --
-- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF --
-- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING --
-- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS --
-- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --
-- --
------------------------------------------------------------------------------
-- $Revision$ $Date$
------------------------------------------------------------------------------
-- This file is generated, don't edit it.
------------------------------------------------------------------------------
with AMF.Elements.Generic_Hash;
function AMF.Standard_Profile_L2.Calls.Hash is
new AMF.Elements.Generic_Hash (Standard_Profile_L2_Call, Standard_Profile_L2_Call_Access);
|
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- Ada Modeling Framework --
-- --
-- Runtime Library Component --
-- --
------------------------------------------------------------------------------
-- --
-- Copyright © 2012, Vadim Godunko <vgodunko@gmail.com> --
-- All rights reserved. --
-- --
-- Redistribution and use in source and binary forms, with or without --
-- modification, are permitted provided that the following conditions --
-- are met: --
-- --
-- * Redistributions of source code must retain the above copyright --
-- notice, this list of conditions and the following disclaimer. --
-- --
-- * Redistributions in binary form must reproduce the above copyright --
-- notice, this list of conditions and the following disclaimer in the --
-- documentation and/or other materials provided with the distribution. --
-- --
-- * Neither the name of the Vadim Godunko, IE nor the names of its --
-- contributors may be used to endorse or promote products derived from --
-- this software without specific prior written permission. --
-- --
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS --
-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT --
-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR --
-- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT --
-- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, --
-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED --
-- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR --
-- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF --
-- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING --
-- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS --
-- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --
-- --
------------------------------------------------------------------------------
-- $Revision$ $Date$
------------------------------------------------------------------------------
-- This file is generated, don't edit it.
------------------------------------------------------------------------------
-- RadialGradient is a kind of gradient that fills a graphical element by
-- smoothly changing color values in a circle.
------------------------------------------------------------------------------
with AMF.DG.Gradients;
package AMF.DG.Radial_Gradients is
pragma Preelaborate;
type DG_Radial_Gradient is limited interface
and AMF.DG.Gradients.DG_Gradient;
type DG_Radial_Gradient_Access is
access all DG_Radial_Gradient'Class;
for DG_Radial_Gradient_Access'Storage_Size use 0;
not overriding function Get_Center_X
(Self : not null access constant DG_Radial_Gradient)
return AMF.Real is abstract;
-- Getter of RadialGradient::centerX.
--
-- a real number (>=0 and >=1) representing a ratio of the graphical
-- element's width that is the x center point of the gradient.
not overriding procedure Set_Center_X
(Self : not null access DG_Radial_Gradient;
To : AMF.Real) is abstract;
-- Setter of RadialGradient::centerX.
--
-- a real number (>=0 and >=1) representing a ratio of the graphical
-- element's width that is the x center point of the gradient.
not overriding function Get_Center_Y
(Self : not null access constant DG_Radial_Gradient)
return AMF.Real is abstract;
-- Getter of RadialGradient::centerY.
--
-- a real number (>=0 and >=1) representing a ratio of the graphical
-- element's width that is the y center point of the gradient.
not overriding procedure Set_Center_Y
(Self : not null access DG_Radial_Gradient;
To : AMF.Real) is abstract;
-- Setter of RadialGradient::centerY.
--
-- a real number (>=0 and >=1) representing a ratio of the graphical
-- element's width that is the y center point of the gradient.
not overriding function Get_Radius
(Self : not null access constant DG_Radial_Gradient)
return AMF.Real is abstract;
-- Getter of RadialGradient::radius.
--
-- a real number (>=0 and >=1) representing a ratio of the graphical
-- element's size that is the radius of the gradient.
not overriding procedure Set_Radius
(Self : not null access DG_Radial_Gradient;
To : AMF.Real) is abstract;
-- Setter of RadialGradient::radius.
--
-- a real number (>=0 and >=1) representing a ratio of the graphical
-- element's size that is the radius of the gradient.
not overriding function Get_Focus_X
(Self : not null access constant DG_Radial_Gradient)
return AMF.Real is abstract;
-- Getter of RadialGradient::focusX.
--
-- a real number (>=0 and >=1) representing a ratio of the graphical
-- element's width that is the x focus point of the gradient.
not overriding procedure Set_Focus_X
(Self : not null access DG_Radial_Gradient;
To : AMF.Real) is abstract;
-- Setter of RadialGradient::focusX.
--
-- a real number (>=0 and >=1) representing a ratio of the graphical
-- element's width that is the x focus point of the gradient.
not overriding function Get_Focus_Y
(Self : not null access constant DG_Radial_Gradient)
return AMF.Real is abstract;
-- Getter of RadialGradient::focusY.
--
-- a real number (>=0 and >=1) representing a ratio of the graphical
-- element's width that is the y focus point of the gradient.
not overriding procedure Set_Focus_Y
(Self : not null access DG_Radial_Gradient;
To : AMF.Real) is abstract;
-- Setter of RadialGradient::focusY.
--
-- a real number (>=0 and >=1) representing a ratio of the graphical
-- element's width that is the y focus point of the gradient.
end AMF.DG.Radial_Gradients;
|
------------------------------------------------------------------------------
-- --
-- GNAT RUNTIME COMPONENTS --
-- --
-- A D A . W I D E _ T E X T _ I O . I N T E G E R _ I O --
-- --
-- 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. --
-- --
------------------------------------------------------------------------------
with Ada.Wide_Text_IO.Integer_Aux;
with System.WCh_Con; use System.WCh_Con;
with System.WCh_WtS; use System.WCh_WtS;
package body Ada.Wide_Text_IO.Integer_IO is
Need_LLI : constant Boolean := Num'Base'Size > Integer'Size;
-- Throughout this generic body, we distinguish between the case
-- where type Integer is acceptable, and where a Long_Long_Integer
-- is needed. This constant Boolean is used to test for these cases
-- and since it is a constant, only the code for the relevant case
-- will be included in the instance.
subtype TFT is Ada.Wide_Text_IO.File_Type;
-- File type required for calls to routines in Aux
package Aux renames Ada.Wide_Text_IO.Integer_Aux;
---------
-- Get --
---------
procedure Get
(File : in File_Type;
Item : out Num;
Width : in Field := 0)
is
begin
if Need_LLI then
Aux.Get_LLI (TFT (File), Long_Long_Integer (Item), Width);
else
Aux.Get_Int (TFT (File), Integer (Item), Width);
end if;
exception
when Constraint_Error => raise Data_Error;
end Get;
procedure Get
(Item : out Num;
Width : in Field := 0)
is
begin
Get (Current_Input, Item, Width);
end Get;
procedure Get
(From : in Wide_String;
Item : out Num;
Last : out Positive)
is
S : constant String := Wide_String_To_String (From, WCEM_Upper);
-- String on which we do the actual conversion. Note that the method
-- used for wide character encoding is irrelevant, since if there is
-- a character outside the Standard.Character range then the call to
-- Aux.Gets will raise Data_Error in any case.
begin
if Need_LLI then
Aux.Gets_LLI (S, Long_Long_Integer (Item), Last);
else
Aux.Gets_Int (S, Integer (Item), Last);
end if;
exception
when Constraint_Error => raise Data_Error;
end Get;
---------
-- Put --
---------
procedure Put
(File : in File_Type;
Item : in Num;
Width : in Field := Default_Width;
Base : in Number_Base := Default_Base)
is
begin
if Need_LLI then
Aux.Put_LLI (TFT (File), Long_Long_Integer (Item), Width, Base);
else
Aux.Put_Int (TFT (File), Integer (Item), Width, Base);
end if;
end Put;
procedure Put
(Item : in Num;
Width : in Field := Default_Width;
Base : in Number_Base := Default_Base)
is
begin
Put (Current_Output, Item, Width, Base);
end Put;
procedure Put
(To : out Wide_String;
Item : in Num;
Base : in Number_Base := Default_Base)
is
S : String (To'First .. To'Last);
begin
if Need_LLI then
Aux.Puts_LLI (S, Long_Long_Integer (Item), Base);
else
Aux.Puts_Int (S, Integer (Item), Base);
end if;
for J in S'Range loop
To (J) := Wide_Character'Val (Character'Pos (S (J)));
end loop;
end Put;
end Ada.Wide_Text_IO.Integer_IO;
|
with Interfaces.C; use Interfaces.C;
with Interfaces.C.Strings;
-- with Interfaces.C.Extensions;
with System;
package Sqlite3_H is
pragma Preelaborate;
pragma Warnings (Off);
pragma Warnings (Off, "*style*");
-- unsupported macro: SQLITE_EXTERN extern
SQLITE_VERSION : aliased constant String := "3.6.22" & ASCII.NUL; -- /usr/include/sqlite3.h:110
SQLITE_VERSION_NUMBER : constant := 3006022; -- /usr/include/sqlite3.h:111
SQLITE_SOURCE_ID : aliased constant String := "2010-01-05 15:30:36 28d0d7710761114a44a1a3a425a6883c661f06e7" & ASCII.NUL; -- /usr/include/sqlite3.h:112
SQLITE_OK : constant := 0; -- /usr/include/sqlite3.h:353
SQLITE_ERROR : constant := 1; -- /usr/include/sqlite3.h:355
SQLITE_INTERNAL : constant := 2; -- /usr/include/sqlite3.h:356
SQLITE_PERM : constant := 3; -- /usr/include/sqlite3.h:357
SQLITE_ABORT : constant := 4; -- /usr/include/sqlite3.h:358
SQLITE_BUSY : constant := 5; -- /usr/include/sqlite3.h:359
SQLITE_LOCKED : constant := 6; -- /usr/include/sqlite3.h:360
SQLITE_NOMEM : constant := 7; -- /usr/include/sqlite3.h:361
SQLITE_READONLY : constant := 8; -- /usr/include/sqlite3.h:362
SQLITE_INTERRUPT : constant := 9; -- /usr/include/sqlite3.h:363
SQLITE_IOERR : constant := 10; -- /usr/include/sqlite3.h:364
SQLITE_CORRUPT : constant := 11; -- /usr/include/sqlite3.h:365
SQLITE_NOTFOUND : constant := 12; -- /usr/include/sqlite3.h:366
SQLITE_FULL : constant := 13; -- /usr/include/sqlite3.h:367
SQLITE_CANTOPEN : constant := 14; -- /usr/include/sqlite3.h:368
SQLITE_PROTOCOL : constant := 15; -- /usr/include/sqlite3.h:369
SQLITE_EMPTY : constant := 16; -- /usr/include/sqlite3.h:370
SQLITE_SCHEMA : constant := 17; -- /usr/include/sqlite3.h:371
SQLITE_TOOBIG : constant := 18; -- /usr/include/sqlite3.h:372
SQLITE_CONSTRAINT : constant := 19; -- /usr/include/sqlite3.h:373
SQLITE_MISMATCH : constant := 20; -- /usr/include/sqlite3.h:374
SQLITE_MISUSE : constant := 21; -- /usr/include/sqlite3.h:375
SQLITE_NOLFS : constant := 22; -- /usr/include/sqlite3.h:376
SQLITE_AUTH : constant := 23; -- /usr/include/sqlite3.h:377
SQLITE_FORMAT : constant := 24; -- /usr/include/sqlite3.h:378
SQLITE_RANGE : constant := 25; -- /usr/include/sqlite3.h:379
SQLITE_NOTADB : constant := 26; -- /usr/include/sqlite3.h:380
SQLITE_ROW : constant := 100; -- /usr/include/sqlite3.h:381
SQLITE_DONE : constant := 101; -- /usr/include/sqlite3.h:382
-- unsupported macro: SQLITE_IOERR_READ (SQLITE_IOERR | (1<<8))
-- unsupported macro: SQLITE_IOERR_SHORT_READ (SQLITE_IOERR | (2<<8))
-- unsupported macro: SQLITE_IOERR_WRITE (SQLITE_IOERR | (3<<8))
-- unsupported macro: SQLITE_IOERR_FSYNC (SQLITE_IOERR | (4<<8))
-- unsupported macro: SQLITE_IOERR_DIR_FSYNC (SQLITE_IOERR | (5<<8))
-- unsupported macro: SQLITE_IOERR_TRUNCATE (SQLITE_IOERR | (6<<8))
-- unsupported macro: SQLITE_IOERR_FSTAT (SQLITE_IOERR | (7<<8))
-- unsupported macro: SQLITE_IOERR_UNLOCK (SQLITE_IOERR | (8<<8))
-- unsupported macro: SQLITE_IOERR_RDLOCK (SQLITE_IOERR | (9<<8))
-- unsupported macro: SQLITE_IOERR_DELETE (SQLITE_IOERR | (10<<8))
-- unsupported macro: SQLITE_IOERR_BLOCKED (SQLITE_IOERR | (11<<8))
-- unsupported macro: SQLITE_IOERR_NOMEM (SQLITE_IOERR | (12<<8))
-- unsupported macro: SQLITE_IOERR_ACCESS (SQLITE_IOERR | (13<<8))
-- unsupported macro: SQLITE_IOERR_CHECKRESERVEDLOCK (SQLITE_IOERR | (14<<8))
-- unsupported macro: SQLITE_IOERR_LOCK (SQLITE_IOERR | (15<<8))
-- unsupported macro: SQLITE_IOERR_CLOSE (SQLITE_IOERR | (16<<8))
-- unsupported macro: SQLITE_IOERR_DIR_CLOSE (SQLITE_IOERR | (17<<8))
-- unsupported macro: SQLITE_LOCKED_SHAREDCACHE (SQLITE_LOCKED | (1<<8) )
SQLITE_OPEN_READONLY : constant := 16#00000001#; -- /usr/include/sqlite3.h:435
SQLITE_OPEN_READWRITE : constant := 16#00000002#; -- /usr/include/sqlite3.h:436
SQLITE_OPEN_CREATE : constant := 16#00000004#; -- /usr/include/sqlite3.h:437
SQLITE_OPEN_DELETEONCLOSE : constant := 16#00000008#; -- /usr/include/sqlite3.h:438
SQLITE_OPEN_EXCLUSIVE : constant := 16#00000010#; -- /usr/include/sqlite3.h:439
SQLITE_OPEN_MAIN_DB : constant := 16#00000100#; -- /usr/include/sqlite3.h:440
SQLITE_OPEN_TEMP_DB : constant := 16#00000200#; -- /usr/include/sqlite3.h:441
SQLITE_OPEN_TRANSIENT_DB : constant := 16#00000400#; -- /usr/include/sqlite3.h:442
SQLITE_OPEN_MAIN_JOURNAL : constant := 16#00000800#; -- /usr/include/sqlite3.h:443
SQLITE_OPEN_TEMP_JOURNAL : constant := 16#00001000#; -- /usr/include/sqlite3.h:444
SQLITE_OPEN_SUBJOURNAL : constant := 16#00002000#; -- /usr/include/sqlite3.h:445
SQLITE_OPEN_MASTER_JOURNAL : constant := 16#00004000#; -- /usr/include/sqlite3.h:446
SQLITE_OPEN_NOMUTEX : constant := 16#00008000#; -- /usr/include/sqlite3.h:447
SQLITE_OPEN_FULLMUTEX : constant := 16#00010000#; -- /usr/include/sqlite3.h:448
SQLITE_OPEN_SHAREDCACHE : constant := 16#00020000#; -- /usr/include/sqlite3.h:449
SQLITE_OPEN_PRIVATECACHE : constant := 16#00040000#; -- /usr/include/sqlite3.h:450
SQLITE_IOCAP_ATOMIC : constant := 16#00000001#; -- /usr/include/sqlite3.h:472
SQLITE_IOCAP_ATOMIC512 : constant := 16#00000002#; -- /usr/include/sqlite3.h:473
SQLITE_IOCAP_ATOMIC1K : constant := 16#00000004#; -- /usr/include/sqlite3.h:474
SQLITE_IOCAP_ATOMIC2K : constant := 16#00000008#; -- /usr/include/sqlite3.h:475
SQLITE_IOCAP_ATOMIC4K : constant := 16#00000010#; -- /usr/include/sqlite3.h:476
SQLITE_IOCAP_ATOMIC8K : constant := 16#00000020#; -- /usr/include/sqlite3.h:477
SQLITE_IOCAP_ATOMIC16K : constant := 16#00000040#; -- /usr/include/sqlite3.h:478
SQLITE_IOCAP_ATOMIC32K : constant := 16#00000080#; -- /usr/include/sqlite3.h:479
SQLITE_IOCAP_ATOMIC64K : constant := 16#00000100#; -- /usr/include/sqlite3.h:480
SQLITE_IOCAP_SAFE_APPEND : constant := 16#00000200#; -- /usr/include/sqlite3.h:481
SQLITE_IOCAP_SEQUENTIAL : constant := 16#00000400#; -- /usr/include/sqlite3.h:482
SQLITE_LOCK_NONE : constant := 0; -- /usr/include/sqlite3.h:491
SQLITE_LOCK_SHARED : constant := 1; -- /usr/include/sqlite3.h:492
SQLITE_LOCK_RESERVED : constant := 2; -- /usr/include/sqlite3.h:493
SQLITE_LOCK_PENDING : constant := 3; -- /usr/include/sqlite3.h:494
SQLITE_LOCK_EXCLUSIVE : constant := 4; -- /usr/include/sqlite3.h:495
SQLITE_SYNC_NORMAL : constant := 16#00002#; -- /usr/include/sqlite3.h:511
SQLITE_SYNC_FULL : constant := 16#00003#; -- /usr/include/sqlite3.h:512
SQLITE_SYNC_DATAONLY : constant := 16#00010#; -- /usr/include/sqlite3.h:513
SQLITE_FCNTL_LOCKSTATE : constant := 1; -- /usr/include/sqlite3.h:651
SQLITE_GET_LOCKPROXYFILE : constant := 2; -- /usr/include/sqlite3.h:652
SQLITE_SET_LOCKPROXYFILE : constant := 3; -- /usr/include/sqlite3.h:653
SQLITE_LAST_ERRNO : constant := 4; -- /usr/include/sqlite3.h:654
SQLITE_ACCESS_EXISTS : constant := 0; -- /usr/include/sqlite3.h:835
SQLITE_ACCESS_READWRITE : constant := 1; -- /usr/include/sqlite3.h:836
SQLITE_ACCESS_READ : constant := 2; -- /usr/include/sqlite3.h:837
SQLITE_CONFIG_SINGLETHREAD : constant := 1; -- /usr/include/sqlite3.h:1247
SQLITE_CONFIG_MULTITHREAD : constant := 2; -- /usr/include/sqlite3.h:1248
SQLITE_CONFIG_SERIALIZED : constant := 3; -- /usr/include/sqlite3.h:1249
SQLITE_CONFIG_MALLOC : constant := 4; -- /usr/include/sqlite3.h:1250
SQLITE_CONFIG_GETMALLOC : constant := 5; -- /usr/include/sqlite3.h:1251
SQLITE_CONFIG_SCRATCH : constant := 6; -- /usr/include/sqlite3.h:1252
SQLITE_CONFIG_PAGECACHE : constant := 7; -- /usr/include/sqlite3.h:1253
SQLITE_CONFIG_HEAP : constant := 8; -- /usr/include/sqlite3.h:1254
SQLITE_CONFIG_MEMSTATUS : constant := 9; -- /usr/include/sqlite3.h:1255
SQLITE_CONFIG_MUTEX : constant := 10; -- /usr/include/sqlite3.h:1256
SQLITE_CONFIG_GETMUTEX : constant := 11; -- /usr/include/sqlite3.h:1257
SQLITE_CONFIG_LOOKASIDE : constant := 13; -- /usr/include/sqlite3.h:1259
SQLITE_CONFIG_PCACHE : constant := 14; -- /usr/include/sqlite3.h:1260
SQLITE_CONFIG_GETPCACHE : constant := 15; -- /usr/include/sqlite3.h:1261
SQLITE_DBCONFIG_LOOKASIDE : constant := 1001; -- /usr/include/sqlite3.h:1296
SQLITE_DENY : constant := 1; -- /usr/include/sqlite3.h:1982
SQLITE_IGNORE : constant := 2; -- /usr/include/sqlite3.h:1983
SQLITE_CREATE_INDEX : constant := 1; -- /usr/include/sqlite3.h:2005
SQLITE_CREATE_TABLE : constant := 2; -- /usr/include/sqlite3.h:2006
SQLITE_CREATE_TEMP_INDEX : constant := 3; -- /usr/include/sqlite3.h:2007
SQLITE_CREATE_TEMP_TABLE : constant := 4; -- /usr/include/sqlite3.h:2008
SQLITE_CREATE_TEMP_TRIGGER : constant := 5; -- /usr/include/sqlite3.h:2009
SQLITE_CREATE_TEMP_VIEW : constant := 6; -- /usr/include/sqlite3.h:2010
SQLITE_CREATE_TRIGGER : constant := 7; -- /usr/include/sqlite3.h:2011
SQLITE_CREATE_VIEW : constant := 8; -- /usr/include/sqlite3.h:2012
SQLITE_DELETE : constant := 9; -- /usr/include/sqlite3.h:2013
SQLITE_DROP_INDEX : constant := 10; -- /usr/include/sqlite3.h:2014
SQLITE_DROP_TABLE : constant := 11; -- /usr/include/sqlite3.h:2015
SQLITE_DROP_TEMP_INDEX : constant := 12; -- /usr/include/sqlite3.h:2016
SQLITE_DROP_TEMP_TABLE : constant := 13; -- /usr/include/sqlite3.h:2017
SQLITE_DROP_TEMP_TRIGGER : constant := 14; -- /usr/include/sqlite3.h:2018
SQLITE_DROP_TEMP_VIEW : constant := 15; -- /usr/include/sqlite3.h:2019
SQLITE_DROP_TRIGGER : constant := 16; -- /usr/include/sqlite3.h:2020
SQLITE_DROP_VIEW : constant := 17; -- /usr/include/sqlite3.h:2021
SQLITE_INSERT : constant := 18; -- /usr/include/sqlite3.h:2022
SQLITE_PRAGMA : constant := 19; -- /usr/include/sqlite3.h:2023
SQLITE_READ : constant := 20; -- /usr/include/sqlite3.h:2024
SQLITE_SELECT : constant := 21; -- /usr/include/sqlite3.h:2025
SQLITE_TRANSACTION : constant := 22; -- /usr/include/sqlite3.h:2026
SQLITE_UPDATE : constant := 23; -- /usr/include/sqlite3.h:2027
SQLITE_ATTACH : constant := 24; -- /usr/include/sqlite3.h:2028
SQLITE_DETACH : constant := 25; -- /usr/include/sqlite3.h:2029
SQLITE_ALTER_TABLE : constant := 26; -- /usr/include/sqlite3.h:2030
SQLITE_REINDEX : constant := 27; -- /usr/include/sqlite3.h:2031
SQLITE_ANALYZE : constant := 28; -- /usr/include/sqlite3.h:2032
SQLITE_CREATE_VTABLE : constant := 29; -- /usr/include/sqlite3.h:2033
SQLITE_DROP_VTABLE : constant := 30; -- /usr/include/sqlite3.h:2034
SQLITE_FUNCTION : constant := 31; -- /usr/include/sqlite3.h:2035
SQLITE_SAVEPOINT : constant := 32; -- /usr/include/sqlite3.h:2036
SQLITE_COPY : constant := 0; -- /usr/include/sqlite3.h:2037
SQLITE_LIMIT_LENGTH : constant := 0; -- /usr/include/sqlite3.h:2337
SQLITE_LIMIT_SQL_LENGTH : constant := 1; -- /usr/include/sqlite3.h:2338
SQLITE_LIMIT_COLUMN : constant := 2; -- /usr/include/sqlite3.h:2339
SQLITE_LIMIT_EXPR_DEPTH : constant := 3; -- /usr/include/sqlite3.h:2340
SQLITE_LIMIT_COMPOUND_SELECT : constant := 4; -- /usr/include/sqlite3.h:2341
SQLITE_LIMIT_VDBE_OP : constant := 5; -- /usr/include/sqlite3.h:2342
SQLITE_LIMIT_FUNCTION_ARG : constant := 6; -- /usr/include/sqlite3.h:2343
SQLITE_LIMIT_ATTACHED : constant := 7; -- /usr/include/sqlite3.h:2344
SQLITE_LIMIT_LIKE_PATTERN_LENGTH : constant := 8; -- /usr/include/sqlite3.h:2345
SQLITE_LIMIT_VARIABLE_NUMBER : constant := 9; -- /usr/include/sqlite3.h:2346
SQLITE_LIMIT_TRIGGER_DEPTH : constant := 10; -- /usr/include/sqlite3.h:2347
SQLITE_INTEGER : constant := 1; -- /usr/include/sqlite3.h:2895
SQLITE_FLOAT : constant := 2; -- /usr/include/sqlite3.h:2896
SQLITE_BLOB : constant := 4; -- /usr/include/sqlite3.h:2897
SQLITE_NULL : constant := 5; -- /usr/include/sqlite3.h:2898
SQLITE_TEXT : constant := 3; -- /usr/include/sqlite3.h:2902
SQLITE3_TEXT : constant := 3; -- /usr/include/sqlite3.h:2904
SQLITE_UTF8 : constant := 1; -- /usr/include/sqlite3.h:3222
SQLITE_UTF16LE : constant := 2; -- /usr/include/sqlite3.h:3223
SQLITE_UTF16BE : constant := 3; -- /usr/include/sqlite3.h:3224
SQLITE_UTF16 : constant := 4; -- /usr/include/sqlite3.h:3225
SQLITE_ANY : constant := 5; -- /usr/include/sqlite3.h:3226
SQLITE_UTF16_ALIGNED : constant := 8; -- /usr/include/sqlite3.h:3227
-- unsupported macro: SQLITE_STATIC ((sqlite3_destructor_type)0)
-- unsupported macro: SQLITE_TRANSIENT ((sqlite3_destructor_type)-1)
SQLITE_INDEX_CONSTRAINT_EQ : constant := 2; -- /usr/include/sqlite3.h:4255
SQLITE_INDEX_CONSTRAINT_GT : constant := 4; -- /usr/include/sqlite3.h:4256
SQLITE_INDEX_CONSTRAINT_LE : constant := 8; -- /usr/include/sqlite3.h:4257
SQLITE_INDEX_CONSTRAINT_LT : constant := 16; -- /usr/include/sqlite3.h:4258
SQLITE_INDEX_CONSTRAINT_GE : constant := 32; -- /usr/include/sqlite3.h:4259
SQLITE_INDEX_CONSTRAINT_MATCH : constant := 64; -- /usr/include/sqlite3.h:4260
SQLITE_MUTEX_FAST : constant := 0; -- /usr/include/sqlite3.h:4852
SQLITE_MUTEX_RECURSIVE : constant := 1; -- /usr/include/sqlite3.h:4853
SQLITE_MUTEX_STATIC_MASTER : constant := 2; -- /usr/include/sqlite3.h:4854
SQLITE_MUTEX_STATIC_MEM : constant := 3; -- /usr/include/sqlite3.h:4855
SQLITE_MUTEX_STATIC_MEM2 : constant := 4; -- /usr/include/sqlite3.h:4856
SQLITE_MUTEX_STATIC_OPEN : constant := 4; -- /usr/include/sqlite3.h:4857
SQLITE_MUTEX_STATIC_PRNG : constant := 5; -- /usr/include/sqlite3.h:4858
SQLITE_MUTEX_STATIC_LRU : constant := 6; -- /usr/include/sqlite3.h:4859
SQLITE_MUTEX_STATIC_LRU2 : constant := 7; -- /usr/include/sqlite3.h:4860
SQLITE_TESTCTRL_FIRST : constant := 5; -- /usr/include/sqlite3.h:4931
SQLITE_TESTCTRL_PRNG_SAVE : constant := 5; -- /usr/include/sqlite3.h:4932
SQLITE_TESTCTRL_PRNG_RESTORE : constant := 6; -- /usr/include/sqlite3.h:4933
SQLITE_TESTCTRL_PRNG_RESET : constant := 7; -- /usr/include/sqlite3.h:4934
SQLITE_TESTCTRL_BITVEC_TEST : constant := 8; -- /usr/include/sqlite3.h:4935
SQLITE_TESTCTRL_FAULT_INSTALL : constant := 9; -- /usr/include/sqlite3.h:4936
SQLITE_TESTCTRL_BENIGN_MALLOC_HOOKS : constant := 10; -- /usr/include/sqlite3.h:4937
SQLITE_TESTCTRL_PENDING_BYTE : constant := 11; -- /usr/include/sqlite3.h:4938
SQLITE_TESTCTRL_ASSERT : constant := 12; -- /usr/include/sqlite3.h:4939
SQLITE_TESTCTRL_ALWAYS : constant := 13; -- /usr/include/sqlite3.h:4940
SQLITE_TESTCTRL_RESERVE : constant := 14; -- /usr/include/sqlite3.h:4941
SQLITE_TESTCTRL_OPTIMIZATIONS : constant := 15; -- /usr/include/sqlite3.h:4942
SQLITE_TESTCTRL_ISKEYWORD : constant := 16; -- /usr/include/sqlite3.h:4943
SQLITE_TESTCTRL_LAST : constant := 16; -- /usr/include/sqlite3.h:4944
SQLITE_STATUS_MEMORY_USED : constant := 0; -- /usr/include/sqlite3.h:5056
SQLITE_STATUS_PAGECACHE_USED : constant := 1; -- /usr/include/sqlite3.h:5057
SQLITE_STATUS_PAGECACHE_OVERFLOW : constant := 2; -- /usr/include/sqlite3.h:5058
SQLITE_STATUS_SCRATCH_USED : constant := 3; -- /usr/include/sqlite3.h:5059
SQLITE_STATUS_SCRATCH_OVERFLOW : constant := 4; -- /usr/include/sqlite3.h:5060
SQLITE_STATUS_MALLOC_SIZE : constant := 5; -- /usr/include/sqlite3.h:5061
SQLITE_STATUS_PARSER_STACK : constant := 6; -- /usr/include/sqlite3.h:5062
SQLITE_STATUS_PAGECACHE_SIZE : constant := 7; -- /usr/include/sqlite3.h:5063
SQLITE_STATUS_SCRATCH_SIZE : constant := 8; -- /usr/include/sqlite3.h:5064
SQLITE_DBSTATUS_LOOKASIDE_USED : constant := 0; -- /usr/include/sqlite3.h:5105
SQLITE_STMTSTATUS_FULLSCAN_STEP : constant := 1; -- /usr/include/sqlite3.h:5156
SQLITE_STMTSTATUS_SORT : constant := 2; -- /usr/include/sqlite3.h:5157
--** 2001 September 15
--**
--** The author disclaims copyright to this source code. In place of
--** a legal notice, here is a blessing:
--**
--** May you do good and not evil.
--** May you find forgiveness for yourself and forgive others.
--** May you share freely, never taking more than you give.
--**
--*************************************************************************
--** This header file defines the interface that the SQLite library
--** presents to client programs. If a C-function, structure, datatype,
--** or constant definition does not appear in this file, then it is
--** not a published API of SQLite, is subject to change without
--** notice, and should not be referenced by programs that use SQLite.
--**
--** Some of the definitions that are in this file are marked as
--** "experimental". Experimental interfaces are normally new
--** features recently added to SQLite. We do not anticipate changes
--** to experimental interfaces but reserve the right to make minor changes
--** if experience from use "in the wild" suggest such changes are prudent.
--**
--** The official C-language API documentation for SQLite is derived
--** from comments in this file. This file is the authoritative source
--** on how SQLite interfaces are suppose to operate.
--**
--** The name of this file under configuration management is "sqlite.h.in".
--** The makefile makes some minor changes to this file (such as inserting
--** the version number) and changes its name to "sqlite3.h" as
--** part of the build process.
--
-- Needed for the definition of va_list
--** Make sure we can call this stuff from C++.
--
--** Add the ability to override 'extern'
--
--** These no-op macros are used in front of interfaces to mark those
--** interfaces as either deprecated or experimental. New applications
--** should not use deprecated interfaces - they are support for backwards
--** compatibility only. Application writers should be aware that
--** experimental interfaces are subject to change in point releases.
--**
--** These macros used to resolve to various kinds of compiler magic that
--** would generate warning messages when they were used. But that
--** compiler magic ended up generating such a flurry of bug reports
--** that we have taken it all out and gone back to using simple
--** noop macros.
--
--** Ensure these symbols were not defined by some previous header file.
--
--** CAPI3REF: Compile-Time Library Version Numbers
--**
--** ^(The [SQLITE_VERSION] C preprocessor macro in the sqlite3.h header
--** evaluates to a string literal that is the SQLite version in the
--** format "X.Y.Z" where X is the major version number (always 3 for
--** SQLite3) and Y is the minor version number and Z is the release number.)^
--** ^(The [SQLITE_VERSION_NUMBER] C preprocessor macro resolves to an integer
--** with the value (X*1000000 + Y*1000 + Z) where X, Y, and Z are the same
--** numbers used in [SQLITE_VERSION].)^
--** The SQLITE_VERSION_NUMBER for any given release of SQLite will also
--** be larger than the release from which it is derived. Either Y will
--** be held constant and Z will be incremented or else Y will be incremented
--** and Z will be reset to zero.
--**
--** Since version 3.6.18, SQLite source code has been stored in the
--** <a href="http://www.fossil-scm.org/">Fossil configuration management
--** system</a>. ^The SQLITE_SOURCE_ID macro evalutes to
--** a string which identifies a particular check-in of SQLite
--** within its configuration management system. ^The SQLITE_SOURCE_ID
--** string contains the date and time of the check-in (UTC) and an SHA1
--** hash of the entire source tree.
--**
--** See also: [sqlite3_libversion()],
--** [sqlite3_libversion_number()], [sqlite3_sourceid()],
--** [sqlite_version()] and [sqlite_source_id()].
--
--** CAPI3REF: Run-Time Library Version Numbers
--** KEYWORDS: sqlite3_version
--**
--** These interfaces provide the same information as the [SQLITE_VERSION],
--** [SQLITE_VERSION_NUMBER], and [SQLITE_SOURCE_ID] C preprocessor macros
--** but are associated with the library instead of the header file. ^(Cautious
--** programmers might include assert() statements in their application to
--** verify that values returned by these interfaces match the macros in
--** the header, and thus insure that the application is
--** compiled with matching library and header files.
--**
--** <blockquote><pre>
--** assert( sqlite3_libversion_number()==SQLITE_VERSION_NUMBER );
--** assert( strcmp(sqlite3_sourceid(),SQLITE_SOURCE_ID)==0 );
--** assert( strcmp(sqlite3_libversion(),SQLITE_VERSION)==0 );
--** </pre></blockquote>)^
--**
--** ^The sqlite3_version[] string constant contains the text of [SQLITE_VERSION]
--** macro. ^The sqlite3_libversion() function returns a pointer to the
--** to the sqlite3_version[] string constant. The sqlite3_libversion()
--** function is provided for use in DLLs since DLL users usually do not have
--** direct access to string constants within the DLL. ^The
--** sqlite3_libversion_number() function returns an integer equal to
--** [SQLITE_VERSION_NUMBER]. ^The sqlite3_sourceid() function a pointer
--** to a string constant whose value is the same as the [SQLITE_SOURCE_ID]
--** C preprocessor macro.
--**
--** See also: [sqlite_version()] and [sqlite_source_id()].
--
sqlite3_version : aliased array (0 .. int'Last) of aliased char; -- /usr/include/sqlite3.h:144:37
pragma Import (C, sqlite3_version, "sqlite3_version");
function sqlite3_libversion return Interfaces.C.Strings.chars_ptr; -- /usr/include/sqlite3.h:145:24
pragma Import (C, sqlite3_libversion, "sqlite3_libversion");
function sqlite3_sourceid return Interfaces.C.Strings.chars_ptr; -- /usr/include/sqlite3.h:146:24
pragma Import (C, sqlite3_sourceid, "sqlite3_sourceid");
function sqlite3_libversion_number return int; -- /usr/include/sqlite3.h:147:16
pragma Import (C, sqlite3_libversion_number, "sqlite3_libversion_number");
--** CAPI3REF: Test To See If The Library Is Threadsafe
--**
--** ^The sqlite3_threadsafe() function returns zero if and only if
--** SQLite was compiled mutexing code omitted due to the
--** [SQLITE_THREADSAFE] compile-time option being set to 0.
--**
--** SQLite can be compiled with or without mutexes. When
--** the [SQLITE_THREADSAFE] C preprocessor macro is 1 or 2, mutexes
--** are enabled and SQLite is threadsafe. When the
--** [SQLITE_THREADSAFE] macro is 0,
--** the mutexes are omitted. Without the mutexes, it is not safe
--** to use SQLite concurrently from more than one thread.
--**
--** Enabling mutexes incurs a measurable performance penalty.
--** So if speed is of utmost importance, it makes sense to disable
--** the mutexes. But for maximum safety, mutexes should be enabled.
--** ^The default behavior is for mutexes to be enabled.
--**
--** This interface can be used by an application to make sure that the
--** version of SQLite that it is linking against was compiled with
--** the desired setting of the [SQLITE_THREADSAFE] macro.
--**
--** This interface only reports on the compile-time mutex setting
--** of the [SQLITE_THREADSAFE] flag. If SQLite is compiled with
--** SQLITE_THREADSAFE=1 or =2 then mutexes are enabled by default but
--** can be fully or partially disabled using a call to [sqlite3_config()]
--** with the verbs [SQLITE_CONFIG_SINGLETHREAD], [SQLITE_CONFIG_MULTITHREAD],
--** or [SQLITE_CONFIG_MUTEX]. ^(The return value of the
--** sqlite3_threadsafe() function shows only the compile-time setting of
--** thread safety, not any run-time changes to that setting made by
--** sqlite3_config(). In other words, the return value from sqlite3_threadsafe()
--** is unchanged by calls to sqlite3_config().)^
--**
--** See the [threading mode] documentation for additional information.
--
function sqlite3_threadsafe return int; -- /usr/include/sqlite3.h:185:16
pragma Import (C, sqlite3_threadsafe, "sqlite3_threadsafe");
--** CAPI3REF: Database Connection Handle
--** KEYWORDS: {database connection} {database connections}
--**
--** Each open SQLite database is represented by a pointer to an instance of
--** the opaque structure named "sqlite3". It is useful to think of an sqlite3
--** pointer as an object. The [sqlite3_open()], [sqlite3_open16()], and
--** [sqlite3_open_v2()] interfaces are its constructors, and [sqlite3_close()]
--** is its destructor. There are many other interfaces (such as
--** [sqlite3_prepare_v2()], [sqlite3_create_function()], and
--** [sqlite3_busy_timeout()] to name but three) that are methods on an
--** sqlite3 object.
--
-- skipped empty struct sqlite3
--** CAPI3REF: 64-Bit Integer Types
--** KEYWORDS: sqlite_int64 sqlite_uint64
--**
--** Because there is no cross-platform way to specify 64-bit integer types
--** SQLite includes typedefs for 64-bit signed and unsigned integers.
--**
--** The sqlite3_int64 and sqlite3_uint64 are the preferred type definitions.
--** The sqlite_int64 and sqlite_uint64 types are supported for backwards
--** compatibility only.
--**
--** ^The sqlite3_int64 and sqlite_int64 types can store integer values
--** between -9223372036854775808 and +9223372036854775807 inclusive. ^The
--** sqlite3_uint64 and sqlite_uint64 types can store integer values
--** between 0 and +18446744073709551615 inclusive.
--
subtype sqlite_int64 is Long_Long_Integer; -- /usr/include/sqlite3.h:225:25
-- subtype sqlite_uint64 is Extensions.unsigned_long_long; -- /usr/include/sqlite3.h:226:34
subtype sqlite_uint64 is Long_Long_Integer;
subtype sqlite3_int64 is sqlite_int64; -- /usr/include/sqlite3.h:228:22
subtype sqlite3_uint64 is sqlite_uint64; -- /usr/include/sqlite3.h:229:23
--** If compiling for a processor that lacks floating point support,
--** substitute integer for floating-point.
--
--** CAPI3REF: Closing A Database Connection
--**
--** ^The sqlite3_close() routine is the destructor for the [sqlite3] object.
--** ^Calls to sqlite3_close() return SQLITE_OK if the [sqlite3] object is
--** successfullly destroyed and all associated resources are deallocated.
--**
--** Applications must [sqlite3_finalize | finalize] all [prepared statements]
--** and [sqlite3_blob_close | close] all [BLOB handles] associated with
--** the [sqlite3] object prior to attempting to close the object. ^If
--** sqlite3_close() is called on a [database connection] that still has
--** outstanding [prepared statements] or [BLOB handles], then it returns
--** SQLITE_BUSY.
--**
--** ^If [sqlite3_close()] is invoked while a transaction is open,
--** the transaction is automatically rolled back.
--**
--** The C parameter to [sqlite3_close(C)] must be either a NULL
--** pointer or an [sqlite3] object pointer obtained
--** from [sqlite3_open()], [sqlite3_open16()], or
--** [sqlite3_open_v2()], and not previously closed.
--** ^Calling sqlite3_close() with a NULL pointer argument is a
--** harmless no-op.
--
function sqlite3_close (arg1 : System.Address) return int; -- /usr/include/sqlite3.h:263:16
pragma Import (C, sqlite3_close, "sqlite3_close");
--** The type for a callback function.
--** This is legacy and deprecated. It is included for historical
--** compatibility and is not documented.
--
type sqlite3_callback is access function
(arg1 : System.Address;
arg2 : int;
arg3 : System.Address;
arg4 : System.Address) return int; -- /usr/include/sqlite3.h:270:15
--** CAPI3REF: One-Step Query Execution Interface
--**
--** The sqlite3_exec() interface is a convenience wrapper around
--** [sqlite3_prepare_v2()], [sqlite3_step()], and [sqlite3_finalize()],
--** that allows an application to run multiple statements of SQL
--** without having to use a lot of C code.
--**
--** ^The sqlite3_exec() interface runs zero or more UTF-8 encoded,
--** semicolon-separate SQL statements passed into its 2nd argument,
--** in the context of the [database connection] passed in as its 1st
--** argument. ^If the callback function of the 3rd argument to
--** sqlite3_exec() is not NULL, then it is invoked for each result row
--** coming out of the evaluated SQL statements. ^The 4th argument to
--** to sqlite3_exec() is relayed through to the 1st argument of each
--** callback invocation. ^If the callback pointer to sqlite3_exec()
--** is NULL, then no callback is ever invoked and result rows are
--** ignored.
--**
--** ^If an error occurs while evaluating the SQL statements passed into
--** sqlite3_exec(), then execution of the current statement stops and
--** subsequent statements are skipped. ^If the 5th parameter to sqlite3_exec()
--** is not NULL then any error message is written into memory obtained
--** from [sqlite3_malloc()] and passed back through the 5th parameter.
--** To avoid memory leaks, the application should invoke [sqlite3_free()]
--** on error message strings returned through the 5th parameter of
--** of sqlite3_exec() after the error message string is no longer needed.
--** ^If the 5th parameter to sqlite3_exec() is not NULL and no errors
--** occur, then sqlite3_exec() sets the pointer in its 5th parameter to
--** NULL before returning.
--**
--** ^If an sqlite3_exec() callback returns non-zero, the sqlite3_exec()
--** routine returns SQLITE_ABORT without invoking the callback again and
--** without running any subsequent SQL statements.
--**
--** ^The 2nd argument to the sqlite3_exec() callback function is the
--** number of columns in the result. ^The 3rd argument to the sqlite3_exec()
--** callback is an array of pointers to strings obtained as if from
--** [sqlite3_column_text()], one for each column. ^If an element of a
--** result row is NULL then the corresponding string pointer for the
--** sqlite3_exec() callback is a NULL pointer. ^The 4th argument to the
--** sqlite3_exec() callback is an array of pointers to strings where each
--** entry represents the name of corresponding result column as obtained
--** from [sqlite3_column_name()].
--**
--** ^If the 2nd parameter to sqlite3_exec() is a NULL pointer, a pointer
--** to an empty string, or a pointer that contains only whitespace and/or
--** SQL comments, then no SQL statements are evaluated and the database
--** is not changed.
--**
--** Restrictions:
--**
--** <ul>
--** <li> The application must insure that the 1st parameter to sqlite3_exec()
--** is a valid and open [database connection].
--** <li> The application must not close [database connection] specified by
--** the 1st parameter to sqlite3_exec() while sqlite3_exec() is running.
--** <li> The application must not modify the SQL statement text passed into
--** the 2nd parameter of sqlite3_exec() while sqlite3_exec() is running.
--** </ul>
--
function sqlite3_exec
(arg1 : System.Address;
arg2 : Interfaces.C.Strings.chars_ptr;
arg3 : access function
(arg1 : System.Address;
arg2 : int;
arg3 : System.Address;
arg4 : System.Address) return int;
arg4 : System.Address;
arg5 : System.Address) return int; -- /usr/include/sqlite3.h:333:16
pragma Import (C, sqlite3_exec, "sqlite3_exec");
-- An open database
-- SQL to be evaluated
-- Callback function
-- 1st argument to callback
-- Error msg written here
--** CAPI3REF: Result Codes
--** KEYWORDS: SQLITE_OK {error code} {error codes}
--** KEYWORDS: {result code} {result codes}
--**
--** Many SQLite functions return an integer result code from the set shown
--** here in order to indicates success or failure.
--**
--** New error codes may be added in future versions of SQLite.
--**
--** See also: [SQLITE_IOERR_READ | extended result codes]
--
-- beginning-of-error-codes
-- end-of-error-codes
--** CAPI3REF: Extended Result Codes
--** KEYWORDS: {extended error code} {extended error codes}
--** KEYWORDS: {extended result code} {extended result codes}
--**
--** In its default configuration, SQLite API routines return one of 26 integer
--** [SQLITE_OK | result codes]. However, experience has shown that many of
--** these result codes are too coarse-grained. They do not provide as
--** much information about problems as programmers might like. In an effort to
--** address this, newer versions of SQLite (version 3.3.8 and later) include
--** support for additional result codes that provide more detailed information
--** about errors. The extended result codes are enabled or disabled
--** on a per database connection basis using the
--** [sqlite3_extended_result_codes()] API.
--**
--** Some of the available extended result codes are listed here.
--** One may expect the number of extended result codes will be expand
--** over time. Software that uses extended result codes should expect
--** to see new result codes in future releases of SQLite.
--**
--** The SQLITE_OK result code will never be extended. It will always
--** be exactly zero.
--
--** CAPI3REF: Flags For File Open Operations
--**
--** These bit values are intended for use in the
--** 3rd parameter to the [sqlite3_open_v2()] interface and
--** in the 4th parameter to the xOpen method of the
--** [sqlite3_vfs] object.
--
--** CAPI3REF: Device Characteristics
--**
--** The xDeviceCapabilities method of the [sqlite3_io_methods]
--** object returns an integer which is a vector of the these
--** bit values expressing I/O characteristics of the mass storage
--** device that holds the file that the [sqlite3_io_methods]
--** refers to.
--**
--** The SQLITE_IOCAP_ATOMIC property means that all writes of
--** any size are atomic. The SQLITE_IOCAP_ATOMICnnn values
--** mean that writes of blocks that are nnn bytes in size and
--** are aligned to an address which is an integer multiple of
--** nnn are atomic. The SQLITE_IOCAP_SAFE_APPEND value means
--** that when data is appended to a file, the data is appended
--** first then the size of the file is extended, never the other
--** way around. The SQLITE_IOCAP_SEQUENTIAL property means that
--** information is written to disk in the same order as calls
--** to xWrite().
--
--** CAPI3REF: File Locking Levels
--**
--** SQLite uses one of these integer values as the second
--** argument to calls it makes to the xLock() and xUnlock() methods
--** of an [sqlite3_io_methods] object.
--
--** CAPI3REF: Synchronization Type Flags
--**
--** When SQLite invokes the xSync() method of an
--** [sqlite3_io_methods] object it uses a combination of
--** these integer values as the second argument.
--**
--** When the SQLITE_SYNC_DATAONLY flag is used, it means that the
--** sync operation only needs to flush data to mass storage. Inode
--** information need not be flushed. If the lower four bits of the flag
--** equal SQLITE_SYNC_NORMAL, that means to use normal fsync() semantics.
--** If the lower four bits equal SQLITE_SYNC_FULL, that means
--** to use Mac OS X style fullsync instead of fsync().
--
--** CAPI3REF: OS Interface Open File Handle
--**
--** An [sqlite3_file] object represents an open file in the
--** [sqlite3_vfs | OS interface layer]. Individual OS interface
--** implementations will
--** want to subclass this object by appending additional fields
--** for their own use. The pMethods entry is a pointer to an
--** [sqlite3_io_methods] object that defines methods for performing
--** I/O operations on the open file.
--
-- Methods for an open file
type sqlite3_file is record
pMethods : System.Address; -- /usr/include/sqlite3.h:528:36
end record;
pragma Convention (C, sqlite3_file); -- /usr/include/sqlite3.h:526:16
--** CAPI3REF: OS Interface File Virtual Methods Object
--**
--** Every file opened by the [sqlite3_vfs] xOpen method populates an
--** [sqlite3_file] object (or, more commonly, a subclass of the
--** [sqlite3_file] object) with a pointer to an instance of this object.
--** This object defines the methods used to perform various operations
--** against the open file represented by the [sqlite3_file] object.
--**
--** If the xOpen method sets the sqlite3_file.pMethods element
--** to a non-NULL pointer, then the sqlite3_io_methods.xClose method
--** may be invoked even if the xOpen reported that it failed. The
--** only way to prevent a call to xClose following a failed xOpen
--** is for the xOpen to set the sqlite3_file.pMethods element to NULL.
--**
--** The flags argument to xSync may be one of [SQLITE_SYNC_NORMAL] or
--** [SQLITE_SYNC_FULL]. The first choice is the normal fsync().
--** The second choice is a Mac OS X style fullsync. The [SQLITE_SYNC_DATAONLY]
--** flag may be ORed in to indicate that only the data of the file
--** and not its inode needs to be synced.
--**
--** The integer values to xLock() and xUnlock() are one of
--** <ul>
--** <li> [SQLITE_LOCK_NONE],
--** <li> [SQLITE_LOCK_SHARED],
--** <li> [SQLITE_LOCK_RESERVED],
--** <li> [SQLITE_LOCK_PENDING], or
--** <li> [SQLITE_LOCK_EXCLUSIVE].
--** </ul>
--** xLock() increases the lock. xUnlock() decreases the lock.
--** The xCheckReservedLock() method checks whether any database connection,
--** either in this process or in some other process, is holding a RESERVED,
--** PENDING, or EXCLUSIVE lock on the file. It returns true
--** if such a lock exists and false otherwise.
--**
--** The xFileControl() method is a generic interface that allows custom
--** VFS implementations to directly control an open file using the
--** [sqlite3_file_control()] interface. The second "op" argument is an
--** integer opcode. The third argument is a generic pointer intended to
--** point to a structure that may contain arguments or space in which to
--** write return values. Potential uses for xFileControl() might be
--** functions to enable blocking locks with timeouts, to change the
--** locking strategy (for example to use dot-file locks), to inquire
--** about the status of a lock, or to break stale locks. The SQLite
--** core reserves all opcodes less than 100 for its own use.
--** A [SQLITE_FCNTL_LOCKSTATE | list of opcodes] less than 100 is available.
--** Applications that define a custom xFileControl method should use opcodes
--** greater than 100 to avoid conflicts.
--**
--** The xSectorSize() method returns the sector size of the
--** device that underlies the file. The sector size is the
--** minimum write that can be performed without disturbing
--** other bytes in the file. The xDeviceCharacteristics()
--** method returns a bit vector describing behaviors of the
--** underlying device:
--**
--** <ul>
--** <li> [SQLITE_IOCAP_ATOMIC]
--** <li> [SQLITE_IOCAP_ATOMIC512]
--** <li> [SQLITE_IOCAP_ATOMIC1K]
--** <li> [SQLITE_IOCAP_ATOMIC2K]
--** <li> [SQLITE_IOCAP_ATOMIC4K]
--** <li> [SQLITE_IOCAP_ATOMIC8K]
--** <li> [SQLITE_IOCAP_ATOMIC16K]
--** <li> [SQLITE_IOCAP_ATOMIC32K]
--** <li> [SQLITE_IOCAP_ATOMIC64K]
--** <li> [SQLITE_IOCAP_SAFE_APPEND]
--** <li> [SQLITE_IOCAP_SEQUENTIAL]
--** </ul>
--**
--** The SQLITE_IOCAP_ATOMIC property means that all writes of
--** any size are atomic. The SQLITE_IOCAP_ATOMICnnn values
--** mean that writes of blocks that are nnn bytes in size and
--** are aligned to an address which is an integer multiple of
--** nnn are atomic. The SQLITE_IOCAP_SAFE_APPEND value means
--** that when data is appended to a file, the data is appended
--** first then the size of the file is extended, never the other
--** way around. The SQLITE_IOCAP_SEQUENTIAL property means that
--** information is written to disk in the same order as calls
--** to xWrite().
--**
--** If xRead() returns SQLITE_IOERR_SHORT_READ it must also fill
--** in the unread portions of the buffer with zeros. A VFS that
--** fails to zero-fill short reads might seem to work. However,
--** failure to zero-fill short reads will eventually lead to
--** database corruption.
--
type sqlite3_io_methods is record
iVersion : aliased int; -- /usr/include/sqlite3.h:620:7
xClose : access function (arg1 : access sqlite3_file) return int; -- /usr/include/sqlite3.h:621:9
xRead : access function
(arg1 : access sqlite3_file;
arg2 : System.Address;
arg3 : int;
arg4 : sqlite3_int64) return int; -- /usr/include/sqlite3.h:622:9
xWrite : access function
(arg1 : access sqlite3_file;
arg2 : System.Address;
arg3 : int;
arg4 : sqlite3_int64) return int; -- /usr/include/sqlite3.h:623:9
xTruncate : access function (arg1 : access sqlite3_file; arg2 : sqlite3_int64) return int; -- /usr/include/sqlite3.h:624:9
xSync : access function (arg1 : access sqlite3_file; arg2 : int) return int; -- /usr/include/sqlite3.h:625:9
xFileSize : access function (arg1 : access sqlite3_file; arg2 : access sqlite3_int64) return int; -- /usr/include/sqlite3.h:626:9
xLock : access function (arg1 : access sqlite3_file; arg2 : int) return int; -- /usr/include/sqlite3.h:627:9
xUnlock : access function (arg1 : access sqlite3_file; arg2 : int) return int; -- /usr/include/sqlite3.h:628:9
xCheckReservedLock : access function (arg1 : access sqlite3_file; arg2 : access int) return int; -- /usr/include/sqlite3.h:629:9
xFileControl : access function
(arg1 : access sqlite3_file;
arg2 : int;
arg3 : System.Address) return int; -- /usr/include/sqlite3.h:630:9
xSectorSize : access function (arg1 : access sqlite3_file) return int; -- /usr/include/sqlite3.h:631:9
xDeviceCharacteristics : access function (arg1 : access sqlite3_file) return int; -- /usr/include/sqlite3.h:632:9
end record;
pragma Convention (C, sqlite3_io_methods); -- /usr/include/sqlite3.h:528:16
-- Additional methods may be added in future releases
--** CAPI3REF: Standard File Control Opcodes
--**
--** These integer constants are opcodes for the xFileControl method
--** of the [sqlite3_io_methods] object and for the [sqlite3_file_control()]
--** interface.
--**
--** The [SQLITE_FCNTL_LOCKSTATE] opcode is used for debugging. This
--** opcode causes the xFileControl method to write the current state of
--** the lock (one of [SQLITE_LOCK_NONE], [SQLITE_LOCK_SHARED],
--** [SQLITE_LOCK_RESERVED], [SQLITE_LOCK_PENDING], or [SQLITE_LOCK_EXCLUSIVE])
--** into an integer that the pArg argument points to. This capability
--** is used during testing and only needs to be supported when SQLITE_TEST
--** is defined.
--
--** CAPI3REF: Mutex Handle
--**
--** The mutex module within SQLite defines [sqlite3_mutex] to be an
--** abstract type for a mutex object. The SQLite core never looks
--** at the internal representation of an [sqlite3_mutex]. It only
--** deals with pointers to the [sqlite3_mutex] object.
--**
--** Mutexes are created using [sqlite3_mutex_alloc()].
--
-- skipped empty struct sqlite3_mutex
--** CAPI3REF: OS Interface Object
--**
--** An instance of the sqlite3_vfs object defines the interface between
--** the SQLite core and the underlying operating system. The "vfs"
--** in the name of the object stands for "virtual file system".
--**
--** The value of the iVersion field is initially 1 but may be larger in
--** future versions of SQLite. Additional fields may be appended to this
--** object when the iVersion value is increased. Note that the structure
--** of the sqlite3_vfs object changes in the transaction between
--** SQLite version 3.5.9 and 3.6.0 and yet the iVersion field was not
--** modified.
--**
--** The szOsFile field is the size of the subclassed [sqlite3_file]
--** structure used by this VFS. mxPathname is the maximum length of
--** a pathname in this VFS.
--**
--** Registered sqlite3_vfs objects are kept on a linked list formed by
--** the pNext pointer. The [sqlite3_vfs_register()]
--** and [sqlite3_vfs_unregister()] interfaces manage this list
--** in a thread-safe way. The [sqlite3_vfs_find()] interface
--** searches the list. Neither the application code nor the VFS
--** implementation should use the pNext pointer.
--**
--** The pNext field is the only field in the sqlite3_vfs
--** structure that SQLite will ever modify. SQLite will only access
--** or modify this field while holding a particular static mutex.
--** The application should never modify anything within the sqlite3_vfs
--** object once the object has been registered.
--**
--** The zName field holds the name of the VFS module. The name must
--** be unique across all VFS modules.
--**
--** SQLite will guarantee that the zFilename parameter to xOpen
--** is either a NULL pointer or string obtained
--** from xFullPathname(). SQLite further guarantees that
--** the string will be valid and unchanged until xClose() is
--** called. Because of the previous sentence,
--** the [sqlite3_file] can safely store a pointer to the
--** filename if it needs to remember the filename for some reason.
--** If the zFilename parameter is xOpen is a NULL pointer then xOpen
--** must invent its own temporary name for the file. Whenever the
--** xFilename parameter is NULL it will also be the case that the
--** flags parameter will include [SQLITE_OPEN_DELETEONCLOSE].
--**
--** The flags argument to xOpen() includes all bits set in
--** the flags argument to [sqlite3_open_v2()]. Or if [sqlite3_open()]
--** or [sqlite3_open16()] is used, then flags includes at least
--** [SQLITE_OPEN_READWRITE] | [SQLITE_OPEN_CREATE].
--** If xOpen() opens a file read-only then it sets *pOutFlags to
--** include [SQLITE_OPEN_READONLY]. Other bits in *pOutFlags may be set.
--**
--** SQLite will also add one of the following flags to the xOpen()
--** call, depending on the object being opened:
--**
--** <ul>
--** <li> [SQLITE_OPEN_MAIN_DB]
--** <li> [SQLITE_OPEN_MAIN_JOURNAL]
--** <li> [SQLITE_OPEN_TEMP_DB]
--** <li> [SQLITE_OPEN_TEMP_JOURNAL]
--** <li> [SQLITE_OPEN_TRANSIENT_DB]
--** <li> [SQLITE_OPEN_SUBJOURNAL]
--** <li> [SQLITE_OPEN_MASTER_JOURNAL]
--** </ul>
--**
--** The file I/O implementation can use the object type flags to
--** change the way it deals with files. For example, an application
--** that does not care about crash recovery or rollback might make
--** the open of a journal file a no-op. Writes to this journal would
--** also be no-ops, and any attempt to read the journal would return
--** SQLITE_IOERR. Or the implementation might recognize that a database
--** file will be doing page-aligned sector reads and writes in a random
--** order and set up its I/O subsystem accordingly.
--**
--** SQLite might also add one of the following flags to the xOpen method:
--**
--** <ul>
--** <li> [SQLITE_OPEN_DELETEONCLOSE]
--** <li> [SQLITE_OPEN_EXCLUSIVE]
--** </ul>
--**
--** The [SQLITE_OPEN_DELETEONCLOSE] flag means the file should be
--** deleted when it is closed. The [SQLITE_OPEN_DELETEONCLOSE]
--** will be set for TEMP databases, journals and for subjournals.
--**
--** The [SQLITE_OPEN_EXCLUSIVE] flag is always used in conjunction
--** with the [SQLITE_OPEN_CREATE] flag, which are both directly
--** analogous to the O_EXCL and O_CREAT flags of the POSIX open()
--** API. The SQLITE_OPEN_EXCLUSIVE flag, when paired with the
--** SQLITE_OPEN_CREATE, is used to indicate that file should always
--** be created, and that it is an error if it already exists.
--** It is <i>not</i> used to indicate the file should be opened
--** for exclusive access.
--**
--** At least szOsFile bytes of memory are allocated by SQLite
--** to hold the [sqlite3_file] structure passed as the third
--** argument to xOpen. The xOpen method does not have to
--** allocate the structure; it should just fill it in. Note that
--** the xOpen method must set the sqlite3_file.pMethods to either
--** a valid [sqlite3_io_methods] object or to NULL. xOpen must do
--** this even if the open fails. SQLite expects that the sqlite3_file.pMethods
--** element will be valid after xOpen returns regardless of the success
--** or failure of the xOpen call.
--**
--** The flags argument to xAccess() may be [SQLITE_ACCESS_EXISTS]
--** to test for the existence of a file, or [SQLITE_ACCESS_READWRITE] to
--** test whether a file is readable and writable, or [SQLITE_ACCESS_READ]
--** to test whether a file is at least readable. The file can be a
--** directory.
--**
--** SQLite will always allocate at least mxPathname+1 bytes for the
--** output buffer xFullPathname. The exact size of the output buffer
--** is also passed as a parameter to both methods. If the output buffer
--** is not large enough, [SQLITE_CANTOPEN] should be returned. Since this is
--** handled as a fatal error by SQLite, vfs implementations should endeavor
--** to prevent this by setting mxPathname to a sufficiently large value.
--**
--** The xRandomness(), xSleep(), and xCurrentTime() interfaces
--** are not strictly a part of the filesystem, but they are
--** included in the VFS structure for completeness.
--** The xRandomness() function attempts to return nBytes bytes
--** of good-quality randomness into zOut. The return value is
--** the actual number of bytes of randomness obtained.
--** The xSleep() method causes the calling thread to sleep for at
--** least the number of microseconds given. The xCurrentTime()
--** method returns a Julian Day Number for the current date and time.
--**
--
-- Structure version number
type sqlite3_vfs is record
iVersion : aliased int; -- /usr/include/sqlite3.h:799:7
szOsFile : aliased int; -- /usr/include/sqlite3.h:800:7
mxPathname : aliased int; -- /usr/include/sqlite3.h:801:7
pNext : access sqlite3_vfs; -- /usr/include/sqlite3.h:802:16
zName : Interfaces.C.Strings.chars_ptr; -- /usr/include/sqlite3.h:803:15
pAppData : System.Address; -- /usr/include/sqlite3.h:804:9
xOpen : access function
(arg1 : access sqlite3_vfs;
arg2 : Interfaces.C.Strings.chars_ptr;
arg3 : access sqlite3_file;
arg4 : int;
arg5 : access int) return int; -- /usr/include/sqlite3.h:805:9
xDelete : access function
(arg1 : access sqlite3_vfs;
arg2 : Interfaces.C.Strings.chars_ptr;
arg3 : int) return int; -- /usr/include/sqlite3.h:807:9
xAccess : access function
(arg1 : access sqlite3_vfs;
arg2 : Interfaces.C.Strings.chars_ptr;
arg3 : int;
arg4 : access int) return int; -- /usr/include/sqlite3.h:808:9
xFullPathname : access function
(arg1 : access sqlite3_vfs;
arg2 : Interfaces.C.Strings.chars_ptr;
arg3 : int;
arg4 : Interfaces.C.Strings.chars_ptr) return int; -- /usr/include/sqlite3.h:809:9
xDlOpen : access function (arg1 : access sqlite3_vfs; arg2 : Interfaces.C.Strings.chars_ptr) return System.Address; -- /usr/include/sqlite3.h:810:11
xDlError : access procedure
(arg1 : access sqlite3_vfs;
arg2 : int;
arg3 : Interfaces.C.Strings.chars_ptr); -- /usr/include/sqlite3.h:811:10
xDlSym : access function
(arg1 : access sqlite3_vfs;
arg2 : System.Address;
arg3 : Interfaces.C.Strings.chars_ptr) return access procedure; -- /usr/include/sqlite3.h:812:12
xDlClose : access procedure (arg1 : access sqlite3_vfs; arg2 : System.Address); -- /usr/include/sqlite3.h:813:10
xRandomness : access function
(arg1 : access sqlite3_vfs;
arg2 : int;
arg3 : Interfaces.C.Strings.chars_ptr) return int; -- /usr/include/sqlite3.h:814:9
xSleep : access function (arg1 : access sqlite3_vfs; arg2 : int) return int; -- /usr/include/sqlite3.h:815:9
xCurrentTime : access function (arg1 : access sqlite3_vfs; arg2 : access double) return int; -- /usr/include/sqlite3.h:816:9
xGetLastError : access function
(arg1 : access sqlite3_vfs;
arg2 : int;
arg3 : Interfaces.C.Strings.chars_ptr) return int; -- /usr/include/sqlite3.h:817:9
end record;
pragma Convention (C, sqlite3_vfs); -- /usr/include/sqlite3.h:797:16
-- Size of subclassed sqlite3_file
-- Maximum file pathname length
-- Next registered VFS
-- Name of this virtual file system
-- Pointer to application-specific data
-- New fields may be appended in figure versions. The iVersion
-- ** value will increment whenever this happens.
--** CAPI3REF: Flags for the xAccess VFS method
--**
--** These integer constants can be used as the third parameter to
--** the xAccess method of an [sqlite3_vfs] object. They determine
--** what kind of permissions the xAccess method is looking for.
--** With SQLITE_ACCESS_EXISTS, the xAccess method
--** simply checks whether the file exists.
--** With SQLITE_ACCESS_READWRITE, the xAccess method
--** checks whether the file is both readable and writable.
--** With SQLITE_ACCESS_READ, the xAccess method
--** checks whether the file is readable.
--
--** CAPI3REF: Initialize The SQLite Library
--**
--** ^The sqlite3_initialize() routine initializes the
--** SQLite library. ^The sqlite3_shutdown() routine
--** deallocates any resources that were allocated by sqlite3_initialize().
--** These routines are designed to aid in process initialization and
--** shutdown on embedded systems. Workstation applications using
--** SQLite normally do not need to invoke either of these routines.
--**
--** A call to sqlite3_initialize() is an "effective" call if it is
--** the first time sqlite3_initialize() is invoked during the lifetime of
--** the process, or if it is the first time sqlite3_initialize() is invoked
--** following a call to sqlite3_shutdown(). ^(Only an effective call
--** of sqlite3_initialize() does any initialization. All other calls
--** are harmless no-ops.)^
--**
--** A call to sqlite3_shutdown() is an "effective" call if it is the first
--** call to sqlite3_shutdown() since the last sqlite3_initialize(). ^(Only
--** an effective call to sqlite3_shutdown() does any deinitialization.
--** All other valid calls to sqlite3_shutdown() are harmless no-ops.)^
--**
--** The sqlite3_initialize() interface is threadsafe, but sqlite3_shutdown()
--** is not. The sqlite3_shutdown() interface must only be called from a
--** single thread. All open [database connections] must be closed and all
--** other SQLite resources must be deallocated prior to invoking
--** sqlite3_shutdown().
--**
--** Among other things, ^sqlite3_initialize() will invoke
--** sqlite3_os_init(). Similarly, ^sqlite3_shutdown()
--** will invoke sqlite3_os_end().
--**
--** ^The sqlite3_initialize() routine returns [SQLITE_OK] on success.
--** ^If for some reason, sqlite3_initialize() is unable to initialize
--** the library (perhaps it is unable to allocate a needed resource such
--** as a mutex) it returns an [error code] other than [SQLITE_OK].
--**
--** ^The sqlite3_initialize() routine is called internally by many other
--** SQLite interfaces so that an application usually does not need to
--** invoke sqlite3_initialize() directly. For example, [sqlite3_open()]
--** calls sqlite3_initialize() so the SQLite library will be automatically
--** initialized when [sqlite3_open()] is called if it has not be initialized
--** already. ^However, if SQLite is compiled with the [SQLITE_OMIT_AUTOINIT]
--** compile-time option, then the automatic calls to sqlite3_initialize()
--** are omitted and the application must call sqlite3_initialize() directly
--** prior to using any other SQLite interface. For maximum portability,
--** it is recommended that applications always invoke sqlite3_initialize()
--** directly prior to using any other SQLite interface. Future releases
--** of SQLite may require this. In other words, the behavior exhibited
--** when SQLite is compiled with [SQLITE_OMIT_AUTOINIT] might become the
--** default behavior in some future release of SQLite.
--**
--** The sqlite3_os_init() routine does operating-system specific
--** initialization of the SQLite library. The sqlite3_os_end()
--** routine undoes the effect of sqlite3_os_init(). Typical tasks
--** performed by these routines include allocation or deallocation
--** of static resources, initialization of global variables,
--** setting up a default [sqlite3_vfs] module, or setting up
--** a default configuration using [sqlite3_config()].
--**
--** The application should never invoke either sqlite3_os_init()
--** or sqlite3_os_end() directly. The application should only invoke
--** sqlite3_initialize() and sqlite3_shutdown(). The sqlite3_os_init()
--** interface is called automatically by sqlite3_initialize() and
--** sqlite3_os_end() is called by sqlite3_shutdown(). Appropriate
--** implementations for sqlite3_os_init() and sqlite3_os_end()
--** are built into SQLite when it is compiled for Unix, Windows, or OS/2.
--** When [custom builds | built for other platforms]
--** (using the [SQLITE_OS_OTHER=1] compile-time
--** option) the application must supply a suitable implementation for
--** sqlite3_os_init() and sqlite3_os_end(). An application-supplied
--** implementation of sqlite3_os_init() or sqlite3_os_end()
--** must return [SQLITE_OK] on success and some other [error code] upon
--** failure.
--
function sqlite3_initialize return int; -- /usr/include/sqlite3.h:914:16
pragma Import (C, sqlite3_initialize, "sqlite3_initialize");
function sqlite3_shutdown return int; -- /usr/include/sqlite3.h:915:16
pragma Import (C, sqlite3_shutdown, "sqlite3_shutdown");
function sqlite3_os_init return int; -- /usr/include/sqlite3.h:916:16
pragma Import (C, sqlite3_os_init, "sqlite3_os_init");
function sqlite3_os_end return int; -- /usr/include/sqlite3.h:917:16
pragma Import (C, sqlite3_os_end, "sqlite3_os_end");
--** CAPI3REF: Configuring The SQLite Library
--** EXPERIMENTAL
--**
--** The sqlite3_config() interface is used to make global configuration
--** changes to SQLite in order to tune SQLite to the specific needs of
--** the application. The default configuration is recommended for most
--** applications and so this routine is usually not necessary. It is
--** provided to support rare applications with unusual needs.
--**
--** The sqlite3_config() interface is not threadsafe. The application
--** must insure that no other SQLite interfaces are invoked by other
--** threads while sqlite3_config() is running. Furthermore, sqlite3_config()
--** may only be invoked prior to library initialization using
--** [sqlite3_initialize()] or after shutdown by [sqlite3_shutdown()].
--** ^If sqlite3_config() is called after [sqlite3_initialize()] and before
--** [sqlite3_shutdown()] then it will return SQLITE_MISUSE.
--** Note, however, that ^sqlite3_config() can be called as part of the
--** implementation of an application-defined [sqlite3_os_init()].
--**
--** The first argument to sqlite3_config() is an integer
--** [SQLITE_CONFIG_SINGLETHREAD | configuration option] that determines
--** what property of SQLite is to be configured. Subsequent arguments
--** vary depending on the [SQLITE_CONFIG_SINGLETHREAD | configuration option]
--** in the first argument.
--**
--** ^When a configuration option is set, sqlite3_config() returns [SQLITE_OK].
--** ^If the option is unknown or SQLite is unable to set the option
--** then this routine returns a non-zero [error code].
--
function sqlite3_config (arg1 : int -- , ...
) return int; -- /usr/include/sqlite3.h:949:36
pragma Import (C, sqlite3_config, "sqlite3_config");
--** CAPI3REF: Configure database connections
--** EXPERIMENTAL
--**
--** The sqlite3_db_config() interface is used to make configuration
--** changes to a [database connection]. The interface is similar to
--** [sqlite3_config()] except that the changes apply to a single
--** [database connection] (specified in the first argument). The
--** sqlite3_db_config() interface should only be used immediately after
--** the database connection is created using [sqlite3_open()],
--** [sqlite3_open16()], or [sqlite3_open_v2()].
--**
--** The second argument to sqlite3_db_config(D,V,...) is the
--** configuration verb - an integer code that indicates what
--** aspect of the [database connection] is being configured.
--** The only choice for this value is [SQLITE_DBCONFIG_LOOKASIDE].
--** New verbs are likely to be added in future releases of SQLite.
--** Additional arguments depend on the verb.
--**
--** ^Calls to sqlite3_db_config() return SQLITE_OK if and only if
--** the call is considered successful.
--
function sqlite3_db_config (arg1 : System.Address; arg2 : int -- , ...
) return int; -- /usr/include/sqlite3.h:973:36
pragma Import (C, sqlite3_db_config, "sqlite3_db_config");
--** CAPI3REF: Memory Allocation Routines
--** EXPERIMENTAL
--**
--** An instance of this object defines the interface between SQLite
--** and low-level memory allocation routines.
--**
--** This object is used in only one place in the SQLite interface.
--** A pointer to an instance of this object is the argument to
--** [sqlite3_config()] when the configuration option is
--** [SQLITE_CONFIG_MALLOC] or [SQLITE_CONFIG_GETMALLOC].
--** By creating an instance of this object
--** and passing it to [sqlite3_config]([SQLITE_CONFIG_MALLOC])
--** during configuration, an application can specify an alternative
--** memory allocation subsystem for SQLite to use for all of its
--** dynamic memory needs.
--**
--** Note that SQLite comes with several [built-in memory allocators]
--** that are perfectly adequate for the overwhelming majority of applications
--** and that this object is only useful to a tiny minority of applications
--** with specialized memory allocation requirements. This object is
--** also used during testing of SQLite in order to specify an alternative
--** memory allocator that simulates memory out-of-memory conditions in
--** order to verify that SQLite recovers gracefully from such
--** conditions.
--**
--** The xMalloc and xFree methods must work like the
--** malloc() and free() functions from the standard C library.
--** The xRealloc method must work like realloc() from the standard C library
--** with the exception that if the second argument to xRealloc is zero,
--** xRealloc must be a no-op - it must not perform any allocation or
--** deallocation. ^SQLite guarantees that the second argument to
--** xRealloc is always a value returned by a prior call to xRoundup.
--** And so in cases where xRoundup always returns a positive number,
--** xRealloc can perform exactly as the standard library realloc() and
--** still be in compliance with this specification.
--**
--** xSize should return the allocated size of a memory allocation
--** previously obtained from xMalloc or xRealloc. The allocated size
--** is always at least as big as the requested size but may be larger.
--**
--** The xRoundup method returns what would be the allocated size of
--** a memory allocation given a particular requested size. Most memory
--** allocators round up memory allocations at least to the next multiple
--** of 8. Some allocators round up to a larger multiple or to a power of 2.
--** Every memory allocation request coming in through [sqlite3_malloc()]
--** or [sqlite3_realloc()] first calls xRoundup. If xRoundup returns 0,
--** that causes the corresponding memory allocation to fail.
--**
--** The xInit method initializes the memory allocator. (For example,
--** it might allocate any require mutexes or initialize internal data
--** structures. The xShutdown method is invoked (indirectly) by
--** [sqlite3_shutdown()] and should deallocate any resources acquired
--** by xInit. The pAppData pointer is used as the only parameter to
--** xInit and xShutdown.
--**
--** SQLite holds the [SQLITE_MUTEX_STATIC_MASTER] mutex when it invokes
--** the xInit method, so the xInit method need not be threadsafe. The
--** xShutdown method is only called from [sqlite3_shutdown()] so it does
--** not need to be threadsafe either. For all other methods, SQLite
--** holds the [SQLITE_MUTEX_STATIC_MEM] mutex as long as the
--** [SQLITE_CONFIG_MEMSTATUS] configuration option is turned on (which
--** it is by default) and so the methods are automatically serialized.
--** However, if [SQLITE_CONFIG_MEMSTATUS] is disabled, then the other
--** methods must be threadsafe or else make their own arrangements for
--** serialization.
--**
--** SQLite will never invoke xInit() more than once without an intervening
--** call to xShutdown().
--
-- Memory allocation function
type sqlite3_mem_methods is record
xMalloc : access function (arg1 : int) return System.Address; -- /usr/include/sqlite3.h:1047:11
xFree : access procedure (arg1 : System.Address); -- /usr/include/sqlite3.h:1048:10
xRealloc : access function (arg1 : System.Address; arg2 : int) return System.Address; -- /usr/include/sqlite3.h:1049:11
xSize : access function (arg1 : System.Address) return int; -- /usr/include/sqlite3.h:1050:9
xRoundup : access function (arg1 : int) return int; -- /usr/include/sqlite3.h:1051:9
xInit : access function (arg1 : System.Address) return int; -- /usr/include/sqlite3.h:1052:9
xShutdown : access procedure (arg1 : System.Address); -- /usr/include/sqlite3.h:1053:10
pAppData : System.Address; -- /usr/include/sqlite3.h:1054:9
end record;
pragma Convention (C, sqlite3_mem_methods); -- /usr/include/sqlite3.h:1045:16
-- Free a prior allocation
-- Resize an allocation
-- Return the size of an allocation
-- Round up request size to allocation size
-- Initialize the memory allocator
-- Deinitialize the memory allocator
-- Argument to xInit() and xShutdown()
--** CAPI3REF: Configuration Options
--** EXPERIMENTAL
--**
--** These constants are the available integer configuration options that
--** can be passed as the first argument to the [sqlite3_config()] interface.
--**
--** New configuration options may be added in future releases of SQLite.
--** Existing configuration options might be discontinued. Applications
--** should check the return code from [sqlite3_config()] to make sure that
--** the call worked. The [sqlite3_config()] interface will return a
--** non-zero [error code] if a discontinued or unsupported configuration option
--** is invoked.
--**
--** <dl>
--** <dt>SQLITE_CONFIG_SINGLETHREAD</dt>
--** <dd>There are no arguments to this option. ^This option sets the
--** [threading mode] to Single-thread. In other words, it disables
--** all mutexing and puts SQLite into a mode where it can only be used
--** by a single thread. ^If SQLite is compiled with
--** the [SQLITE_THREADSAFE | SQLITE_THREADSAFE=0] compile-time option then
--** it is not possible to change the [threading mode] from its default
--** value of Single-thread and so [sqlite3_config()] will return
--** [SQLITE_ERROR] if called with the SQLITE_CONFIG_SINGLETHREAD
--** configuration option.</dd>
--**
--** <dt>SQLITE_CONFIG_MULTITHREAD</dt>
--** <dd>There are no arguments to this option. ^This option sets the
--** [threading mode] to Multi-thread. In other words, it disables
--** mutexing on [database connection] and [prepared statement] objects.
--** The application is responsible for serializing access to
--** [database connections] and [prepared statements]. But other mutexes
--** are enabled so that SQLite will be safe to use in a multi-threaded
--** environment as long as no two threads attempt to use the same
--** [database connection] at the same time. ^If SQLite is compiled with
--** the [SQLITE_THREADSAFE | SQLITE_THREADSAFE=0] compile-time option then
--** it is not possible to set the Multi-thread [threading mode] and
--** [sqlite3_config()] will return [SQLITE_ERROR] if called with the
--** SQLITE_CONFIG_MULTITHREAD configuration option.</dd>
--**
--** <dt>SQLITE_CONFIG_SERIALIZED</dt>
--** <dd>There are no arguments to this option. ^This option sets the
--** [threading mode] to Serialized. In other words, this option enables
--** all mutexes including the recursive
--** mutexes on [database connection] and [prepared statement] objects.
--** In this mode (which is the default when SQLite is compiled with
--** [SQLITE_THREADSAFE=1]) the SQLite library will itself serialize access
--** to [database connections] and [prepared statements] so that the
--** application is free to use the same [database connection] or the
--** same [prepared statement] in different threads at the same time.
--** ^If SQLite is compiled with
--** the [SQLITE_THREADSAFE | SQLITE_THREADSAFE=0] compile-time option then
--** it is not possible to set the Serialized [threading mode] and
--** [sqlite3_config()] will return [SQLITE_ERROR] if called with the
--** SQLITE_CONFIG_SERIALIZED configuration option.</dd>
--**
--** <dt>SQLITE_CONFIG_MALLOC</dt>
--** <dd> ^(This option takes a single argument which is a pointer to an
--** instance of the [sqlite3_mem_methods] structure. The argument specifies
--** alternative low-level memory allocation routines to be used in place of
--** the memory allocation routines built into SQLite.)^ ^SQLite makes
--** its own private copy of the content of the [sqlite3_mem_methods] structure
--** before the [sqlite3_config()] call returns.</dd>
--**
--** <dt>SQLITE_CONFIG_GETMALLOC</dt>
--** <dd> ^(This option takes a single argument which is a pointer to an
--** instance of the [sqlite3_mem_methods] structure. The [sqlite3_mem_methods]
--** structure is filled with the currently defined memory allocation routines.)^
--** This option can be used to overload the default memory allocation
--** routines with a wrapper that simulations memory allocation failure or
--** tracks memory usage, for example. </dd>
--**
--** <dt>SQLITE_CONFIG_MEMSTATUS</dt>
--** <dd> ^This option takes single argument of type int, interpreted as a
--** boolean, which enables or disables the collection of memory allocation
--** statistics. ^(When memory allocation statistics are disabled, the
--** following SQLite interfaces become non-operational:
--** <ul>
--** <li> [sqlite3_memory_used()]
--** <li> [sqlite3_memory_highwater()]
--** <li> [sqlite3_soft_heap_limit()]
--** <li> [sqlite3_status()]
--** </ul>)^
--** ^Memory allocation statistics are enabled by default unless SQLite is
--** compiled with [SQLITE_DEFAULT_MEMSTATUS]=0 in which case memory
--** allocation statistics are disabled by default.
--** </dd>
--**
--** <dt>SQLITE_CONFIG_SCRATCH</dt>
--** <dd> ^This option specifies a static memory buffer that SQLite can use for
--** scratch memory. There are three arguments: A pointer an 8-byte
--** aligned memory buffer from which the scrach allocations will be
--** drawn, the size of each scratch allocation (sz),
--** and the maximum number of scratch allocations (N). The sz
--** argument must be a multiple of 16. The sz parameter should be a few bytes
--** larger than the actual scratch space required due to internal overhead.
--** The first argument must be a pointer to an 8-byte aligned buffer
--** of at least sz*N bytes of memory.
--** ^SQLite will use no more than one scratch buffer per thread. So
--** N should be set to the expected maximum number of threads. ^SQLite will
--** never require a scratch buffer that is more than 6 times the database
--** page size. ^If SQLite needs needs additional scratch memory beyond
--** what is provided by this configuration option, then
--** [sqlite3_malloc()] will be used to obtain the memory needed.</dd>
--**
--** <dt>SQLITE_CONFIG_PAGECACHE</dt>
--** <dd> ^This option specifies a static memory buffer that SQLite can use for
--** the database page cache with the default page cache implemenation.
--** This configuration should not be used if an application-define page
--** cache implementation is loaded using the SQLITE_CONFIG_PCACHE option.
--** There are three arguments to this option: A pointer to 8-byte aligned
--** memory, the size of each page buffer (sz), and the number of pages (N).
--** The sz argument should be the size of the largest database page
--** (a power of two between 512 and 32768) plus a little extra for each
--** page header. ^The page header size is 20 to 40 bytes depending on
--** the host architecture. ^It is harmless, apart from the wasted memory,
--** to make sz a little too large. The first
--** argument should point to an allocation of at least sz*N bytes of memory.
--** ^SQLite will use the memory provided by the first argument to satisfy its
--** memory needs for the first N pages that it adds to cache. ^If additional
--** page cache memory is needed beyond what is provided by this option, then
--** SQLite goes to [sqlite3_malloc()] for the additional storage space.
--** ^The implementation might use one or more of the N buffers to hold
--** memory accounting information. The pointer in the first argument must
--** be aligned to an 8-byte boundary or subsequent behavior of SQLite
--** will be undefined.</dd>
--**
--** <dt>SQLITE_CONFIG_HEAP</dt>
--** <dd> ^This option specifies a static memory buffer that SQLite will use
--** for all of its dynamic memory allocation needs beyond those provided
--** for by [SQLITE_CONFIG_SCRATCH] and [SQLITE_CONFIG_PAGECACHE].
--** There are three arguments: An 8-byte aligned pointer to the memory,
--** the number of bytes in the memory buffer, and the minimum allocation size.
--** ^If the first pointer (the memory pointer) is NULL, then SQLite reverts
--** to using its default memory allocator (the system malloc() implementation),
--** undoing any prior invocation of [SQLITE_CONFIG_MALLOC]. ^If the
--** memory pointer is not NULL and either [SQLITE_ENABLE_MEMSYS3] or
--** [SQLITE_ENABLE_MEMSYS5] are defined, then the alternative memory
--** allocator is engaged to handle all of SQLites memory allocation needs.
--** The first pointer (the memory pointer) must be aligned to an 8-byte
--** boundary or subsequent behavior of SQLite will be undefined.</dd>
--**
--** <dt>SQLITE_CONFIG_MUTEX</dt>
--** <dd> ^(This option takes a single argument which is a pointer to an
--** instance of the [sqlite3_mutex_methods] structure. The argument specifies
--** alternative low-level mutex routines to be used in place
--** the mutex routines built into SQLite.)^ ^SQLite makes a copy of the
--** content of the [sqlite3_mutex_methods] structure before the call to
--** [sqlite3_config()] returns. ^If SQLite is compiled with
--** the [SQLITE_THREADSAFE | SQLITE_THREADSAFE=0] compile-time option then
--** the entire mutexing subsystem is omitted from the build and hence calls to
--** [sqlite3_config()] with the SQLITE_CONFIG_MUTEX configuration option will
--** return [SQLITE_ERROR].</dd>
--**
--** <dt>SQLITE_CONFIG_GETMUTEX</dt>
--** <dd> ^(This option takes a single argument which is a pointer to an
--** instance of the [sqlite3_mutex_methods] structure. The
--** [sqlite3_mutex_methods]
--** structure is filled with the currently defined mutex routines.)^
--** This option can be used to overload the default mutex allocation
--** routines with a wrapper used to track mutex usage for performance
--** profiling or testing, for example. ^If SQLite is compiled with
--** the [SQLITE_THREADSAFE | SQLITE_THREADSAFE=0] compile-time option then
--** the entire mutexing subsystem is omitted from the build and hence calls to
--** [sqlite3_config()] with the SQLITE_CONFIG_GETMUTEX configuration option will
--** return [SQLITE_ERROR].</dd>
--**
--** <dt>SQLITE_CONFIG_LOOKASIDE</dt>
--** <dd> ^(This option takes two arguments that determine the default
--** memory allocation for the lookaside memory allocator on each
--** [database connection]. The first argument is the
--** size of each lookaside buffer slot and the second is the number of
--** slots allocated to each database connection.)^ ^(This option sets the
--** <i>default</i> lookaside size. The [SQLITE_DBCONFIG_LOOKASIDE]
--** verb to [sqlite3_db_config()] can be used to change the lookaside
--** configuration on individual connections.)^ </dd>
--**
--** <dt>SQLITE_CONFIG_PCACHE</dt>
--** <dd> ^(This option takes a single argument which is a pointer to
--** an [sqlite3_pcache_methods] object. This object specifies the interface
--** to a custom page cache implementation.)^ ^SQLite makes a copy of the
--** object and uses it for page cache memory allocations.</dd>
--**
--** <dt>SQLITE_CONFIG_GETPCACHE</dt>
--** <dd> ^(This option takes a single argument which is a pointer to an
--** [sqlite3_pcache_methods] object. SQLite copies of the current
--** page cache implementation into that object.)^ </dd>
--**
--** </dl>
--
-- previously SQLITE_CONFIG_CHUNKALLOC 12 which is now unused.
--** CAPI3REF: Configuration Options
--** EXPERIMENTAL
--**
--** These constants are the available integer configuration options that
--** can be passed as the second argument to the [sqlite3_db_config()] interface.
--**
--** New configuration options may be added in future releases of SQLite.
--** Existing configuration options might be discontinued. Applications
--** should check the return code from [sqlite3_db_config()] to make sure that
--** the call worked. ^The [sqlite3_db_config()] interface will return a
--** non-zero [error code] if a discontinued or unsupported configuration option
--** is invoked.
--**
--** <dl>
--** <dt>SQLITE_DBCONFIG_LOOKASIDE</dt>
--** <dd> ^This option takes three additional arguments that determine the
--** [lookaside memory allocator] configuration for the [database connection].
--** ^The first argument (the third parameter to [sqlite3_db_config()] is a
--** pointer to an memory buffer to use for lookaside memory.
--** ^The first argument after the SQLITE_DBCONFIG_LOOKASIDE verb
--** may be NULL in which case SQLite will allocate the
--** lookaside buffer itself using [sqlite3_malloc()]. ^The second argument is the
--** size of each lookaside buffer slot. ^The third argument is the number of
--** slots. The size of the buffer in the first argument must be greater than
--** or equal to the product of the second and third arguments. The buffer
--** must be aligned to an 8-byte boundary. ^If the second argument to
--** SQLITE_DBCONFIG_LOOKASIDE is not a multiple of 8, it is internally
--** rounded down to the next smaller
--** multiple of 8. See also: [SQLITE_CONFIG_LOOKASIDE]</dd>
--**
--** </dl>
--
--** CAPI3REF: Enable Or Disable Extended Result Codes
--**
--** ^The sqlite3_extended_result_codes() routine enables or disables the
--** [extended result codes] feature of SQLite. ^The extended result
--** codes are disabled by default for historical compatibility.
--
function sqlite3_extended_result_codes (arg1 : System.Address; arg2 : int) return int; -- /usr/include/sqlite3.h:1306:16
pragma Import (C, sqlite3_extended_result_codes, "sqlite3_extended_result_codes");
--** CAPI3REF: Last Insert Rowid
--**
--** ^Each entry in an SQLite table has a unique 64-bit signed
--** integer key called the [ROWID | "rowid"]. ^The rowid is always available
--** as an undeclared column named ROWID, OID, or _ROWID_ as long as those
--** names are not also used by explicitly declared columns. ^If
--** the table has a column of type [INTEGER PRIMARY KEY] then that column
--** is another alias for the rowid.
--**
--** ^This routine returns the [rowid] of the most recent
--** successful [INSERT] into the database from the [database connection]
--** in the first argument. ^If no successful [INSERT]s
--** have ever occurred on that database connection, zero is returned.
--**
--** ^(If an [INSERT] occurs within a trigger, then the [rowid] of the inserted
--** row is returned by this routine as long as the trigger is running.
--** But once the trigger terminates, the value returned by this routine
--** reverts to the last value inserted before the trigger fired.)^
--**
--** ^An [INSERT] that fails due to a constraint violation is not a
--** successful [INSERT] and does not change the value returned by this
--** routine. ^Thus INSERT OR FAIL, INSERT OR IGNORE, INSERT OR ROLLBACK,
--** and INSERT OR ABORT make no changes to the return value of this
--** routine when their insertion fails. ^(When INSERT OR REPLACE
--** encounters a constraint violation, it does not fail. The
--** INSERT continues to completion after deleting rows that caused
--** the constraint problem so INSERT OR REPLACE will always change
--** the return value of this interface.)^
--**
--** ^For the purposes of this routine, an [INSERT] is considered to
--** be successful even if it is subsequently rolled back.
--**
--** This function is accessible to SQL statements via the
--** [last_insert_rowid() SQL function].
--**
--** If a separate thread performs a new [INSERT] on the same
--** database connection while the [sqlite3_last_insert_rowid()]
--** function is running and thus changes the last insert [rowid],
--** then the value returned by [sqlite3_last_insert_rowid()] is
--** unpredictable and might not equal either the old or the new
--** last insert [rowid].
--
function sqlite3_last_insert_rowid (arg1 : System.Address) return sqlite3_int64; -- /usr/include/sqlite3.h:1351:26
pragma Import (C, sqlite3_last_insert_rowid, "sqlite3_last_insert_rowid");
--** CAPI3REF: Count The Number Of Rows Modified
--**
--** ^This function returns the number of database rows that were changed
--** or inserted or deleted by the most recently completed SQL statement
--** on the [database connection] specified by the first parameter.
--** ^(Only changes that are directly specified by the [INSERT], [UPDATE],
--** or [DELETE] statement are counted. Auxiliary changes caused by
--** triggers or [foreign key actions] are not counted.)^ Use the
--** [sqlite3_total_changes()] function to find the total number of changes
--** including changes caused by triggers and foreign key actions.
--**
--** ^Changes to a view that are simulated by an [INSTEAD OF trigger]
--** are not counted. Only real table changes are counted.
--**
--** ^(A "row change" is a change to a single row of a single table
--** caused by an INSERT, DELETE, or UPDATE statement. Rows that
--** are changed as side effects of [REPLACE] constraint resolution,
--** rollback, ABORT processing, [DROP TABLE], or by any other
--** mechanisms do not count as direct row changes.)^
--**
--** A "trigger context" is a scope of execution that begins and
--** ends with the script of a [CREATE TRIGGER | trigger].
--** Most SQL statements are
--** evaluated outside of any trigger. This is the "top level"
--** trigger context. If a trigger fires from the top level, a
--** new trigger context is entered for the duration of that one
--** trigger. Subtriggers create subcontexts for their duration.
--**
--** ^Calling [sqlite3_exec()] or [sqlite3_step()] recursively does
--** not create a new trigger context.
--**
--** ^This function returns the number of direct row changes in the
--** most recent INSERT, UPDATE, or DELETE statement within the same
--** trigger context.
--**
--** ^Thus, when called from the top level, this function returns the
--** number of changes in the most recent INSERT, UPDATE, or DELETE
--** that also occurred at the top level. ^(Within the body of a trigger,
--** the sqlite3_changes() interface can be called to find the number of
--** changes in the most recently completed INSERT, UPDATE, or DELETE
--** statement within the body of the same trigger.
--** However, the number returned does not include changes
--** caused by subtriggers since those have their own context.)^
--**
--** See also the [sqlite3_total_changes()] interface, the
--** [count_changes pragma], and the [changes() SQL function].
--**
--** If a separate thread makes changes on the same database connection
--** while [sqlite3_changes()] is running then the value returned
--** is unpredictable and not meaningful.
--
function sqlite3_changes (arg1 : System.Address) return int; -- /usr/include/sqlite3.h:1405:16
pragma Import (C, sqlite3_changes, "sqlite3_changes");
--** CAPI3REF: Total Number Of Rows Modified
--**
--** ^This function returns the number of row changes caused by [INSERT],
--** [UPDATE] or [DELETE] statements since the [database connection] was opened.
--** ^(The count returned by sqlite3_total_changes() includes all changes
--** from all [CREATE TRIGGER | trigger] contexts and changes made by
--** [foreign key actions]. However,
--** the count does not include changes used to implement [REPLACE] constraints,
--** do rollbacks or ABORT processing, or [DROP TABLE] processing. The
--** count does not include rows of views that fire an [INSTEAD OF trigger],
--** though if the INSTEAD OF trigger makes changes of its own, those changes
--** are counted.)^
--** ^The sqlite3_total_changes() function counts the changes as soon as
--** the statement that makes them is completed (when the statement handle
--** is passed to [sqlite3_reset()] or [sqlite3_finalize()]).
--**
--** See also the [sqlite3_changes()] interface, the
--** [count_changes pragma], and the [total_changes() SQL function].
--**
--** If a separate thread makes changes on the same database connection
--** while [sqlite3_total_changes()] is running then the value
--** returned is unpredictable and not meaningful.
--
function sqlite3_total_changes (arg1 : System.Address) return int; -- /usr/include/sqlite3.h:1431:16
pragma Import (C, sqlite3_total_changes, "sqlite3_total_changes");
--** CAPI3REF: Interrupt A Long-Running Query
--**
--** ^This function causes any pending database operation to abort and
--** return at its earliest opportunity. This routine is typically
--** called in response to a user action such as pressing "Cancel"
--** or Ctrl-C where the user wants a long query operation to halt
--** immediately.
--**
--** ^It is safe to call this routine from a thread different from the
--** thread that is currently running the database operation. But it
--** is not safe to call this routine with a [database connection] that
--** is closed or might close before sqlite3_interrupt() returns.
--**
--** ^If an SQL operation is very nearly finished at the time when
--** sqlite3_interrupt() is called, then it might not have an opportunity
--** to be interrupted and might continue to completion.
--**
--** ^An SQL operation that is interrupted will return [SQLITE_INTERRUPT].
--** ^If the interrupted SQL operation is an INSERT, UPDATE, or DELETE
--** that is inside an explicit transaction, then the entire transaction
--** will be rolled back automatically.
--**
--** ^The sqlite3_interrupt(D) call is in effect until all currently running
--** SQL statements on [database connection] D complete. ^Any new SQL statements
--** that are started after the sqlite3_interrupt() call and before the
--** running statements reaches zero are interrupted as if they had been
--** running prior to the sqlite3_interrupt() call. ^New SQL statements
--** that are started after the running statement count reaches zero are
--** not effected by the sqlite3_interrupt().
--** ^A call to sqlite3_interrupt(D) that occurs when there are no running
--** SQL statements is a no-op and has no effect on SQL statements
--** that are started after the sqlite3_interrupt() call returns.
--**
--** If the database connection closes while [sqlite3_interrupt()]
--** is running then bad things will likely happen.
--
procedure sqlite3_interrupt (arg1 : System.Address); -- /usr/include/sqlite3.h:1470:17
pragma Import (C, sqlite3_interrupt, "sqlite3_interrupt");
--** CAPI3REF: Determine If An SQL Statement Is Complete
--**
--** These routines are useful during command-line input to determine if the
--** currently entered text seems to form a complete SQL statement or
--** if additional input is needed before sending the text into
--** SQLite for parsing. ^These routines return 1 if the input string
--** appears to be a complete SQL statement. ^A statement is judged to be
--** complete if it ends with a semicolon token and is not a prefix of a
--** well-formed CREATE TRIGGER statement. ^Semicolons that are embedded within
--** string literals or quoted identifier names or comments are not
--** independent tokens (they are part of the token in which they are
--** embedded) and thus do not count as a statement terminator. ^Whitespace
--** and comments that follow the final semicolon are ignored.
--**
--** ^These routines return 0 if the statement is incomplete. ^If a
--** memory allocation fails, then SQLITE_NOMEM is returned.
--**
--** ^These routines do not parse the SQL statements thus
--** will not detect syntactically incorrect SQL.
--**
--** ^(If SQLite has not been initialized using [sqlite3_initialize()] prior
--** to invoking sqlite3_complete16() then sqlite3_initialize() is invoked
--** automatically by sqlite3_complete16(). If that initialization fails,
--** then the return value from sqlite3_complete16() will be non-zero
--** regardless of whether or not the input SQL is complete.)^
--**
--** The input to [sqlite3_complete()] must be a zero-terminated
--** UTF-8 string.
--**
--** The input to [sqlite3_complete16()] must be a zero-terminated
--** UTF-16 string in native byte order.
--
function sqlite3_complete (arg1 : Interfaces.C.Strings.chars_ptr) return int; -- /usr/include/sqlite3.h:1505:16
pragma Import (C, sqlite3_complete, "sqlite3_complete");
function sqlite3_complete16 (arg1 : System.Address) return int; -- /usr/include/sqlite3.h:1506:16
pragma Import (C, sqlite3_complete16, "sqlite3_complete16");
--** CAPI3REF: Register A Callback To Handle SQLITE_BUSY Errors
--**
--** ^This routine sets a callback function that might be invoked whenever
--** an attempt is made to open a database table that another thread
--** or process has locked.
--**
--** ^If the busy callback is NULL, then [SQLITE_BUSY] or [SQLITE_IOERR_BLOCKED]
--** is returned immediately upon encountering the lock. ^If the busy callback
--** is not NULL, then the callback might be invoked with two arguments.
--**
--** ^The first argument to the busy handler is a copy of the void* pointer which
--** is the third argument to sqlite3_busy_handler(). ^The second argument to
--** the busy handler callback is the number of times that the busy handler has
--** been invoked for this locking event. ^If the
--** busy callback returns 0, then no additional attempts are made to
--** access the database and [SQLITE_BUSY] or [SQLITE_IOERR_BLOCKED] is returned.
--** ^If the callback returns non-zero, then another attempt
--** is made to open the database for reading and the cycle repeats.
--**
--** The presence of a busy handler does not guarantee that it will be invoked
--** when there is lock contention. ^If SQLite determines that invoking the busy
--** handler could result in a deadlock, it will go ahead and return [SQLITE_BUSY]
--** or [SQLITE_IOERR_BLOCKED] instead of invoking the busy handler.
--** Consider a scenario where one process is holding a read lock that
--** it is trying to promote to a reserved lock and
--** a second process is holding a reserved lock that it is trying
--** to promote to an exclusive lock. The first process cannot proceed
--** because it is blocked by the second and the second process cannot
--** proceed because it is blocked by the first. If both processes
--** invoke the busy handlers, neither will make any progress. Therefore,
--** SQLite returns [SQLITE_BUSY] for the first process, hoping that this
--** will induce the first process to release its read lock and allow
--** the second process to proceed.
--**
--** ^The default busy callback is NULL.
--**
--** ^The [SQLITE_BUSY] error is converted to [SQLITE_IOERR_BLOCKED]
--** when SQLite is in the middle of a large transaction where all the
--** changes will not fit into the in-memory cache. SQLite will
--** already hold a RESERVED lock on the database file, but it needs
--** to promote this lock to EXCLUSIVE so that it can spill cache
--** pages into the database file without harm to concurrent
--** readers. ^If it is unable to promote the lock, then the in-memory
--** cache will be left in an inconsistent state and so the error
--** code is promoted from the relatively benign [SQLITE_BUSY] to
--** the more severe [SQLITE_IOERR_BLOCKED]. ^This error code promotion
--** forces an automatic rollback of the changes. See the
--** <a href="/cvstrac/wiki?p=CorruptionFollowingBusyError">
--** CorruptionFollowingBusyError</a> wiki page for a discussion of why
--** this is important.
--**
--** ^(There can only be a single busy handler defined for each
--** [database connection]. Setting a new busy handler clears any
--** previously set handler.)^ ^Note that calling [sqlite3_busy_timeout()]
--** will also set or clear the busy handler.
--**
--** The busy callback should not take any actions which modify the
--** database connection that invoked the busy handler. Any such actions
--** result in undefined behavior.
--**
--** A busy handler must not close the database connection
--** or [prepared statement] that invoked the busy handler.
--
function sqlite3_busy_handler
(arg1 : System.Address;
arg2 : access function (arg1 : System.Address; arg2 : int) return int;
arg3 : System.Address) return int; -- /usr/include/sqlite3.h:1572:16
pragma Import (C, sqlite3_busy_handler, "sqlite3_busy_handler");
--** CAPI3REF: Set A Busy Timeout
--**
--** ^This routine sets a [sqlite3_busy_handler | busy handler] that sleeps
--** for a specified amount of time when a table is locked. ^The handler
--** will sleep multiple times until at least "ms" milliseconds of sleeping
--** have accumulated. ^After at least "ms" milliseconds of sleeping,
--** the handler returns 0 which causes [sqlite3_step()] to return
--** [SQLITE_BUSY] or [SQLITE_IOERR_BLOCKED].
--**
--** ^Calling this routine with an argument less than or equal to zero
--** turns off all busy handlers.
--**
--** ^(There can only be a single busy handler for a particular
--** [database connection] any any given moment. If another busy handler
--** was defined (using [sqlite3_busy_handler()]) prior to calling
--** this routine, that other busy handler is cleared.)^
--
function sqlite3_busy_timeout (arg1 : System.Address; arg2 : int) return int; -- /usr/include/sqlite3.h:1592:16
pragma Import (C, sqlite3_busy_timeout, "sqlite3_busy_timeout");
--** CAPI3REF: Convenience Routines For Running Queries
--**
--** Definition: A <b>result table</b> is memory data structure created by the
--** [sqlite3_get_table()] interface. A result table records the
--** complete query results from one or more queries.
--**
--** The table conceptually has a number of rows and columns. But
--** these numbers are not part of the result table itself. These
--** numbers are obtained separately. Let N be the number of rows
--** and M be the number of columns.
--**
--** A result table is an array of pointers to zero-terminated UTF-8 strings.
--** There are (N+1)*M elements in the array. The first M pointers point
--** to zero-terminated strings that contain the names of the columns.
--** The remaining entries all point to query results. NULL values result
--** in NULL pointers. All other values are in their UTF-8 zero-terminated
--** string representation as returned by [sqlite3_column_text()].
--**
--** A result table might consist of one or more memory allocations.
--** It is not safe to pass a result table directly to [sqlite3_free()].
--** A result table should be deallocated using [sqlite3_free_table()].
--**
--** As an example of the result table format, suppose a query result
--** is as follows:
--**
--** <blockquote><pre>
--** Name | Age
--** -----------------------
--** Alice | 43
--** Bob | 28
--** Cindy | 21
--** </pre></blockquote>
--**
--** There are two column (M==2) and three rows (N==3). Thus the
--** result table has 8 entries. Suppose the result table is stored
--** in an array names azResult. Then azResult holds this content:
--**
--** <blockquote><pre>
--** azResult[0] = "Name";
--** azResult[1] = "Age";
--** azResult[2] = "Alice";
--** azResult[3] = "43";
--** azResult[4] = "Bob";
--** azResult[5] = "28";
--** azResult[6] = "Cindy";
--** azResult[7] = "21";
--** </pre></blockquote>
--**
--** ^The sqlite3_get_table() function evaluates one or more
--** semicolon-separated SQL statements in the zero-terminated UTF-8
--** string of its 2nd parameter and returns a result table to the
--** pointer given in its 3rd parameter.
--**
--** After the application has finished with the result from sqlite3_get_table(),
--** it should pass the result table pointer to sqlite3_free_table() in order to
--** release the memory that was malloced. Because of the way the
--** [sqlite3_malloc()] happens within sqlite3_get_table(), the calling
--** function must not try to call [sqlite3_free()] directly. Only
--** [sqlite3_free_table()] is able to release the memory properly and safely.
--**
--** ^(The sqlite3_get_table() interface is implemented as a wrapper around
--** [sqlite3_exec()]. The sqlite3_get_table() routine does not have access
--** to any internal data structures of SQLite. It uses only the public
--** interface defined here. As a consequence, errors that occur in the
--** wrapper layer outside of the internal [sqlite3_exec()] call are not
--** reflected in subsequent calls to [sqlite3_errcode()] or
--** [sqlite3_errmsg()].)^
--
function sqlite3_get_table
(arg1 : System.Address;
arg2 : Interfaces.C.Strings.chars_ptr;
arg3 : System.Address;
arg4 : access int;
arg5 : access int;
arg6 : System.Address) return int; -- /usr/include/sqlite3.h:1663:16
pragma Import (C, sqlite3_get_table, "sqlite3_get_table");
-- An open database
-- SQL to be evaluated
-- Results of the query
-- Number of result rows written here
-- Number of result columns written here
-- Error msg written here
procedure sqlite3_free_table (arg1 : System.Address); -- /usr/include/sqlite3.h:1671:17
pragma Import (C, sqlite3_free_table, "sqlite3_free_table");
--** CAPI3REF: Formatted String Printing Functions
--**
--** These routines are work-alikes of the "printf()" family of functions
--** from the standard C library.
--**
--** ^The sqlite3_mprintf() and sqlite3_vmprintf() routines write their
--** results into memory obtained from [sqlite3_malloc()].
--** The strings returned by these two routines should be
--** released by [sqlite3_free()]. ^Both routines return a
--** NULL pointer if [sqlite3_malloc()] is unable to allocate enough
--** memory to hold the resulting string.
--**
--** ^(In sqlite3_snprintf() routine is similar to "snprintf()" from
--** the standard C library. The result is written into the
--** buffer supplied as the second parameter whose size is given by
--** the first parameter. Note that the order of the
--** first two parameters is reversed from snprintf().)^ This is an
--** historical accident that cannot be fixed without breaking
--** backwards compatibility. ^(Note also that sqlite3_snprintf()
--** returns a pointer to its buffer instead of the number of
--** characters actually written into the buffer.)^ We admit that
--** the number of characters written would be a more useful return
--** value but we cannot change the implementation of sqlite3_snprintf()
--** now without breaking compatibility.
--**
--** ^As long as the buffer size is greater than zero, sqlite3_snprintf()
--** guarantees that the buffer is always zero-terminated. ^The first
--** parameter "n" is the total size of the buffer, including space for
--** the zero terminator. So the longest string that can be completely
--** written will be n-1 characters.
--**
--** These routines all implement some additional formatting
--** options that are useful for constructing SQL statements.
--** All of the usual printf() formatting options apply. In addition, there
--** is are "%q", "%Q", and "%z" options.
--**
--** ^(The %q option works like %s in that it substitutes a null-terminated
--** string from the argument list. But %q also doubles every '\'' character.
--** %q is designed for use inside a string literal.)^ By doubling each '\''
--** character it escapes that character and allows it to be inserted into
--** the string.
--**
--** For example, assume the string variable zText contains text as follows:
--**
--** <blockquote><pre>
--** char *zText = "It's a happy day!";
--** </pre></blockquote>
--**
--** One can use this text in an SQL statement as follows:
--**
--** <blockquote><pre>
--** char *zSQL = sqlite3_mprintf("INSERT INTO table VALUES('%q')", zText);
--** sqlite3_exec(db, zSQL, 0, 0, 0);
--** sqlite3_free(zSQL);
--** </pre></blockquote>
--**
--** Because the %q format string is used, the '\'' character in zText
--** is escaped and the SQL generated is as follows:
--**
--** <blockquote><pre>
--** INSERT INTO table1 VALUES('It''s a happy day!')
--** </pre></blockquote>
--**
--** This is correct. Had we used %s instead of %q, the generated SQL
--** would have looked like this:
--**
--** <blockquote><pre>
--** INSERT INTO table1 VALUES('It's a happy day!');
--** </pre></blockquote>
--**
--** This second example is an SQL syntax error. As a general rule you should
--** always use %q instead of %s when inserting text into a string literal.
--**
--** ^(The %Q option works like %q except it also adds single quotes around
--** the outside of the total string. Additionally, if the parameter in the
--** argument list is a NULL pointer, %Q substitutes the text "NULL" (without
--** single quotes).)^ So, for example, one could say:
--**
--** <blockquote><pre>
--** char *zSQL = sqlite3_mprintf("INSERT INTO table VALUES(%Q)", zText);
--** sqlite3_exec(db, zSQL, 0, 0, 0);
--** sqlite3_free(zSQL);
--** </pre></blockquote>
--**
--** The code above will render a correct SQL statement in the zSQL
--** variable even if the zText variable is a NULL pointer.
--**
--** ^(The "%z" formatting option works like "%s" but with the
--** addition that after the string has been read and copied into
--** the result, [sqlite3_free()] is called on the input string.)^
--
function sqlite3_mprintf (arg1 : Interfaces.C.Strings.chars_ptr -- , ...
) return Interfaces.C.Strings.chars_ptr; -- /usr/include/sqlite3.h:1765:18
pragma Import (C, sqlite3_mprintf, "sqlite3_mprintf");
--
-- function sqlite3_vmprintf (arg1 : Interfaces.C.Strings.chars_ptr; arg2 : stdarg_h.va_list) return Interfaces.C.Strings.chars_ptr; -- /usr/include/sqlite3.h:1766:18
-- pragma Import (C, sqlite3_vmprintf, "sqlite3_vmprintf");
--
-- function sqlite3_snprintf
-- (arg1 : int;
-- arg2 : Interfaces.C.Strings.chars_ptr;
-- arg3 : Interfaces.C.Strings.chars_ptr -- , ...
-- ) return Interfaces.C.Strings.chars_ptr; -- /usr/include/sqlite3.h:1767:18
-- pragma Import (C, sqlite3_snprintf, "sqlite3_snprintf");
--** CAPI3REF: Memory Allocation Subsystem
--**
--** The SQLite core uses these three routines for all of its own
--** internal memory allocation needs. "Core" in the previous sentence
--** does not include operating-system specific VFS implementation. The
--** Windows VFS uses native malloc() and free() for some operations.
--**
--** ^The sqlite3_malloc() routine returns a pointer to a block
--** of memory at least N bytes in length, where N is the parameter.
--** ^If sqlite3_malloc() is unable to obtain sufficient free
--** memory, it returns a NULL pointer. ^If the parameter N to
--** sqlite3_malloc() is zero or negative then sqlite3_malloc() returns
--** a NULL pointer.
--**
--** ^Calling sqlite3_free() with a pointer previously returned
--** by sqlite3_malloc() or sqlite3_realloc() releases that memory so
--** that it might be reused. ^The sqlite3_free() routine is
--** a no-op if is called with a NULL pointer. Passing a NULL pointer
--** to sqlite3_free() is harmless. After being freed, memory
--** should neither be read nor written. Even reading previously freed
--** memory might result in a segmentation fault or other severe error.
--** Memory corruption, a segmentation fault, or other severe error
--** might result if sqlite3_free() is called with a non-NULL pointer that
--** was not obtained from sqlite3_malloc() or sqlite3_realloc().
--**
--** ^(The sqlite3_realloc() interface attempts to resize a
--** prior memory allocation to be at least N bytes, where N is the
--** second parameter. The memory allocation to be resized is the first
--** parameter.)^ ^ If the first parameter to sqlite3_realloc()
--** is a NULL pointer then its behavior is identical to calling
--** sqlite3_malloc(N) where N is the second parameter to sqlite3_realloc().
--** ^If the second parameter to sqlite3_realloc() is zero or
--** negative then the behavior is exactly the same as calling
--** sqlite3_free(P) where P is the first parameter to sqlite3_realloc().
--** ^sqlite3_realloc() returns a pointer to a memory allocation
--** of at least N bytes in size or NULL if sufficient memory is unavailable.
--** ^If M is the size of the prior allocation, then min(N,M) bytes
--** of the prior allocation are copied into the beginning of buffer returned
--** by sqlite3_realloc() and the prior allocation is freed.
--** ^If sqlite3_realloc() returns NULL, then the prior allocation
--** is not freed.
--**
--** ^The memory returned by sqlite3_malloc() and sqlite3_realloc()
--** is always aligned to at least an 8 byte boundary.
--**
--** In SQLite version 3.5.0 and 3.5.1, it was possible to define
--** the SQLITE_OMIT_MEMORY_ALLOCATION which would cause the built-in
--** implementation of these routines to be omitted. That capability
--** is no longer provided. Only built-in memory allocators can be used.
--**
--** The Windows OS interface layer calls
--** the system malloc() and free() directly when converting
--** filenames between the UTF-8 encoding used by SQLite
--** and whatever filename encoding is used by the particular Windows
--** installation. Memory allocation errors are detected, but
--** they are reported back as [SQLITE_CANTOPEN] or
--** [SQLITE_IOERR] rather than [SQLITE_NOMEM].
--**
--** The pointer arguments to [sqlite3_free()] and [sqlite3_realloc()]
--** must be either NULL or else pointers obtained from a prior
--** invocation of [sqlite3_malloc()] or [sqlite3_realloc()] that have
--** not yet been released.
--**
--** The application must not read or write any part of
--** a block of memory after it has been released using
--** [sqlite3_free()] or [sqlite3_realloc()].
--
function sqlite3_malloc (arg1 : int) return System.Address; -- /usr/include/sqlite3.h:1837:18
pragma Import (C, sqlite3_malloc, "sqlite3_malloc");
function sqlite3_realloc (arg1 : System.Address; arg2 : int) return System.Address; -- /usr/include/sqlite3.h:1838:18
pragma Import (C, sqlite3_realloc, "sqlite3_realloc");
procedure sqlite3_free (arg1 : System.Address); -- /usr/include/sqlite3.h:1839:17
pragma Import (C, sqlite3_free, "sqlite3_free");
--** CAPI3REF: Memory Allocator Statistics
--**
--** SQLite provides these two interfaces for reporting on the status
--** of the [sqlite3_malloc()], [sqlite3_free()], and [sqlite3_realloc()]
--** routines, which form the built-in memory allocation subsystem.
--**
--** ^The [sqlite3_memory_used()] routine returns the number of bytes
--** of memory currently outstanding (malloced but not freed).
--** ^The [sqlite3_memory_highwater()] routine returns the maximum
--** value of [sqlite3_memory_used()] since the high-water mark
--** was last reset. ^The values returned by [sqlite3_memory_used()] and
--** [sqlite3_memory_highwater()] include any overhead
--** added by SQLite in its implementation of [sqlite3_malloc()],
--** but not overhead added by the any underlying system library
--** routines that [sqlite3_malloc()] may call.
--**
--** ^The memory high-water mark is reset to the current value of
--** [sqlite3_memory_used()] if and only if the parameter to
--** [sqlite3_memory_highwater()] is true. ^The value returned
--** by [sqlite3_memory_highwater(1)] is the high-water mark
--** prior to the reset.
--
function sqlite3_memory_used return sqlite3_int64; -- /usr/include/sqlite3.h:1864:26
pragma Import (C, sqlite3_memory_used, "sqlite3_memory_used");
function sqlite3_memory_highwater (arg1 : int) return sqlite3_int64; -- /usr/include/sqlite3.h:1865:26
pragma Import (C, sqlite3_memory_highwater, "sqlite3_memory_highwater");
--** CAPI3REF: Pseudo-Random Number Generator
--**
--** SQLite contains a high-quality pseudo-random number generator (PRNG) used to
--** select random [ROWID | ROWIDs] when inserting new records into a table that
--** already uses the largest possible [ROWID]. The PRNG is also used for
--** the build-in random() and randomblob() SQL functions. This interface allows
--** applications to access the same PRNG for other purposes.
--**
--** ^A call to this routine stores N bytes of randomness into buffer P.
--**
--** ^The first time this routine is invoked (either internally or by
--** the application) the PRNG is seeded using randomness obtained
--** from the xRandomness method of the default [sqlite3_vfs] object.
--** ^On all subsequent invocations, the pseudo-randomness is generated
--** internally and without recourse to the [sqlite3_vfs] xRandomness
--** method.
--
procedure sqlite3_randomness (arg1 : int; arg2 : System.Address); -- /usr/include/sqlite3.h:1885:17
pragma Import (C, sqlite3_randomness, "sqlite3_randomness");
--** CAPI3REF: Compile-Time Authorization Callbacks
--**
--** ^This routine registers a authorizer callback with a particular
--** [database connection], supplied in the first argument.
--** ^The authorizer callback is invoked as SQL statements are being compiled
--** by [sqlite3_prepare()] or its variants [sqlite3_prepare_v2()],
--** [sqlite3_prepare16()] and [sqlite3_prepare16_v2()]. ^At various
--** points during the compilation process, as logic is being created
--** to perform various actions, the authorizer callback is invoked to
--** see if those actions are allowed. ^The authorizer callback should
--** return [SQLITE_OK] to allow the action, [SQLITE_IGNORE] to disallow the
--** specific action but allow the SQL statement to continue to be
--** compiled, or [SQLITE_DENY] to cause the entire SQL statement to be
--** rejected with an error. ^If the authorizer callback returns
--** any value other than [SQLITE_IGNORE], [SQLITE_OK], or [SQLITE_DENY]
--** then the [sqlite3_prepare_v2()] or equivalent call that triggered
--** the authorizer will fail with an error message.
--**
--** When the callback returns [SQLITE_OK], that means the operation
--** requested is ok. ^When the callback returns [SQLITE_DENY], the
--** [sqlite3_prepare_v2()] or equivalent call that triggered the
--** authorizer will fail with an error message explaining that
--** access is denied.
--**
--** ^The first parameter to the authorizer callback is a copy of the third
--** parameter to the sqlite3_set_authorizer() interface. ^The second parameter
--** to the callback is an integer [SQLITE_COPY | action code] that specifies
--** the particular action to be authorized. ^The third through sixth parameters
--** to the callback are zero-terminated strings that contain additional
--** details about the action to be authorized.
--**
--** ^If the action code is [SQLITE_READ]
--** and the callback returns [SQLITE_IGNORE] then the
--** [prepared statement] statement is constructed to substitute
--** a NULL value in place of the table column that would have
--** been read if [SQLITE_OK] had been returned. The [SQLITE_IGNORE]
--** return can be used to deny an untrusted user access to individual
--** columns of a table.
--** ^If the action code is [SQLITE_DELETE] and the callback returns
--** [SQLITE_IGNORE] then the [DELETE] operation proceeds but the
--** [truncate optimization] is disabled and all rows are deleted individually.
--**
--** An authorizer is used when [sqlite3_prepare | preparing]
--** SQL statements from an untrusted source, to ensure that the SQL statements
--** do not try to access data they are not allowed to see, or that they do not
--** try to execute malicious statements that damage the database. For
--** example, an application may allow a user to enter arbitrary
--** SQL queries for evaluation by a database. But the application does
--** not want the user to be able to make arbitrary changes to the
--** database. An authorizer could then be put in place while the
--** user-entered SQL is being [sqlite3_prepare | prepared] that
--** disallows everything except [SELECT] statements.
--**
--** Applications that need to process SQL from untrusted sources
--** might also consider lowering resource limits using [sqlite3_limit()]
--** and limiting database size using the [max_page_count] [PRAGMA]
--** in addition to using an authorizer.
--**
--** ^(Only a single authorizer can be in place on a database connection
--** at a time. Each call to sqlite3_set_authorizer overrides the
--** previous call.)^ ^Disable the authorizer by installing a NULL callback.
--** The authorizer is disabled by default.
--**
--** The authorizer callback must not do anything that will modify
--** the database connection that invoked the authorizer callback.
--** Note that [sqlite3_prepare_v2()] and [sqlite3_step()] both modify their
--** database connections for the meaning of "modify" in this paragraph.
--**
--** ^When [sqlite3_prepare_v2()] is used to prepare a statement, the
--** statement might be re-prepared during [sqlite3_step()] due to a
--** schema change. Hence, the application should ensure that the
--** correct authorizer callback remains in place during the [sqlite3_step()].
--**
--** ^Note that the authorizer callback is invoked only during
--** [sqlite3_prepare()] or its variants. Authorization is not
--** performed during statement evaluation in [sqlite3_step()], unless
--** as stated in the previous paragraph, sqlite3_step() invokes
--** sqlite3_prepare_v2() to reprepare a statement after a schema change.
--
function sqlite3_set_authorizer
(arg1 : System.Address;
arg2 : access function
(arg1 : System.Address;
arg2 : int;
arg3 : Interfaces.C.Strings.chars_ptr;
arg4 : Interfaces.C.Strings.chars_ptr;
arg5 : Interfaces.C.Strings.chars_ptr;
arg6 : Interfaces.C.Strings.chars_ptr) return int;
arg3 : System.Address) return int; -- /usr/include/sqlite3.h:1967:16
pragma Import (C, sqlite3_set_authorizer, "sqlite3_set_authorizer");
--** CAPI3REF: Authorizer Return Codes
--**
--** The [sqlite3_set_authorizer | authorizer callback function] must
--** return either [SQLITE_OK] or one of these two constants in order
--** to signal SQLite whether or not the action is permitted. See the
--** [sqlite3_set_authorizer | authorizer documentation] for additional
--** information.
--
--** CAPI3REF: Authorizer Action Codes
--**
--** The [sqlite3_set_authorizer()] interface registers a callback function
--** that is invoked to authorize certain SQL statement actions. The
--** second parameter to the callback is an integer code that specifies
--** what action is being authorized. These are the integer action codes that
--** the authorizer callback may be passed.
--**
--** These action code values signify what kind of operation is to be
--** authorized. The 3rd and 4th parameters to the authorization
--** callback function will be parameters or NULL depending on which of these
--** codes is used as the second parameter. ^(The 5th parameter to the
--** authorizer callback is the name of the database ("main", "temp",
--** etc.) if applicable.)^ ^The 6th parameter to the authorizer callback
--** is the name of the inner-most trigger or view that is responsible for
--** the access attempt or NULL if this access attempt is directly from
--** top-level SQL code.
--
--****************************************** 3rd ************ 4th **********
--** CAPI3REF: Tracing And Profiling Functions
--** EXPERIMENTAL
--**
--** These routines register callback functions that can be used for
--** tracing and profiling the execution of SQL statements.
--**
--** ^The callback function registered by sqlite3_trace() is invoked at
--** various times when an SQL statement is being run by [sqlite3_step()].
--** ^The sqlite3_trace() callback is invoked with a UTF-8 rendering of the
--** SQL statement text as the statement first begins executing.
--** ^(Additional sqlite3_trace() callbacks might occur
--** as each triggered subprogram is entered. The callbacks for triggers
--** contain a UTF-8 SQL comment that identifies the trigger.)^
--**
--** ^The callback function registered by sqlite3_profile() is invoked
--** as each SQL statement finishes. ^The profile callback contains
--** the original statement text and an estimate of wall-clock time
--** of how long that statement took to run.
--
function sqlite3_trace
(arg1 : System.Address;
arg2 : access procedure (arg1 : System.Address; arg2 : Interfaces.C.Strings.chars_ptr);
arg3 : System.Address) return System.Address; -- /usr/include/sqlite3.h:2059:38
pragma Import (C, sqlite3_trace, "sqlite3_trace");
function sqlite3_profile
(arg1 : System.Address;
arg2 : access procedure
(arg1 : System.Address;
arg2 : Interfaces.C.Strings.chars_ptr;
arg3 : sqlite3_uint64);
arg3 : System.Address) return System.Address; -- /usr/include/sqlite3.h:2060:38
pragma Import (C, sqlite3_profile, "sqlite3_profile");
--** CAPI3REF: Query Progress Callbacks
--**
--** ^This routine configures a callback function - the
--** progress callback - that is invoked periodically during long
--** running calls to [sqlite3_exec()], [sqlite3_step()] and
--** [sqlite3_get_table()]. An example use for this
--** interface is to keep a GUI updated during a large query.
--**
--** ^If the progress callback returns non-zero, the operation is
--** interrupted. This feature can be used to implement a
--** "Cancel" button on a GUI progress dialog box.
--**
--** The progress handler must not do anything that will modify
--** the database connection that invoked the progress handler.
--** Note that [sqlite3_prepare_v2()] and [sqlite3_step()] both modify their
--** database connections for the meaning of "modify" in this paragraph.
--**
--
procedure sqlite3_progress_handler
(arg1 : System.Address;
arg2 : int;
arg3 : access function (arg1 : System.Address) return int;
arg4 : System.Address); -- /usr/include/sqlite3.h:2082:17
pragma Import (C, sqlite3_progress_handler, "sqlite3_progress_handler");
--** CAPI3REF: Opening A New Database Connection
--**
--** ^These routines open an SQLite database file whose name is given by the
--** filename argument. ^The filename argument is interpreted as UTF-8 for
--** sqlite3_open() and sqlite3_open_v2() and as UTF-16 in the native byte
--** order for sqlite3_open16(). ^(A [database connection] handle is usually
--** returned in *ppDb, even if an error occurs. The only exception is that
--** if SQLite is unable to allocate memory to hold the [sqlite3] object,
--** a NULL will be written into *ppDb instead of a pointer to the [sqlite3]
--** object.)^ ^(If the database is opened (and/or created) successfully, then
--** [SQLITE_OK] is returned. Otherwise an [error code] is returned.)^ ^The
--** [sqlite3_errmsg()] or [sqlite3_errmsg16()] routines can be used to obtain
--** an English language description of the error following a failure of any
--** of the sqlite3_open() routines.
--**
--** ^The default encoding for the database will be UTF-8 if
--** sqlite3_open() or sqlite3_open_v2() is called and
--** UTF-16 in the native byte order if sqlite3_open16() is used.
--**
--** Whether or not an error occurs when it is opened, resources
--** associated with the [database connection] handle should be released by
--** passing it to [sqlite3_close()] when it is no longer required.
--**
--** The sqlite3_open_v2() interface works like sqlite3_open()
--** except that it accepts two additional parameters for additional control
--** over the new database connection. ^(The flags parameter to
--** sqlite3_open_v2() can take one of
--** the following three values, optionally combined with the
--** [SQLITE_OPEN_NOMUTEX], [SQLITE_OPEN_FULLMUTEX], [SQLITE_OPEN_SHAREDCACHE],
--** and/or [SQLITE_OPEN_PRIVATECACHE] flags:)^
--**
--** <dl>
--** ^(<dt>[SQLITE_OPEN_READONLY]</dt>
--** <dd>The database is opened in read-only mode. If the database does not
--** already exist, an error is returned.</dd>)^
--**
--** ^(<dt>[SQLITE_OPEN_READWRITE]</dt>
--** <dd>The database is opened for reading and writing if possible, or reading
--** only if the file is write protected by the operating system. In either
--** case the database must already exist, otherwise an error is returned.</dd>)^
--**
--** ^(<dt>[SQLITE_OPEN_READWRITE] | [SQLITE_OPEN_CREATE]</dt>
--** <dd>The database is opened for reading and writing, and is creates it if
--** it does not already exist. This is the behavior that is always used for
--** sqlite3_open() and sqlite3_open16().</dd>)^
--** </dl>
--**
--** If the 3rd parameter to sqlite3_open_v2() is not one of the
--** combinations shown above or one of the combinations shown above combined
--** with the [SQLITE_OPEN_NOMUTEX], [SQLITE_OPEN_FULLMUTEX],
--** [SQLITE_OPEN_SHAREDCACHE] and/or [SQLITE_OPEN_SHAREDCACHE] flags,
--** then the behavior is undefined.
--**
--** ^If the [SQLITE_OPEN_NOMUTEX] flag is set, then the database connection
--** opens in the multi-thread [threading mode] as long as the single-thread
--** mode has not been set at compile-time or start-time. ^If the
--** [SQLITE_OPEN_FULLMUTEX] flag is set then the database connection opens
--** in the serialized [threading mode] unless single-thread was
--** previously selected at compile-time or start-time.
--** ^The [SQLITE_OPEN_SHAREDCACHE] flag causes the database connection to be
--** eligible to use [shared cache mode], regardless of whether or not shared
--** cache is enabled using [sqlite3_enable_shared_cache()]. ^The
--** [SQLITE_OPEN_PRIVATECACHE] flag causes the database connection to not
--** participate in [shared cache mode] even if it is enabled.
--**
--** ^If the filename is ":memory:", then a private, temporary in-memory database
--** is created for the connection. ^This in-memory database will vanish when
--** the database connection is closed. Future versions of SQLite might
--** make use of additional special filenames that begin with the ":" character.
--** It is recommended that when a database filename actually does begin with
--** a ":" character you should prefix the filename with a pathname such as
--** "./" to avoid ambiguity.
--**
--** ^If the filename is an empty string, then a private, temporary
--** on-disk database will be created. ^This private database will be
--** automatically deleted as soon as the database connection is closed.
--**
--** ^The fourth parameter to sqlite3_open_v2() is the name of the
--** [sqlite3_vfs] object that defines the operating system interface that
--** the new database connection should use. ^If the fourth parameter is
--** a NULL pointer then the default [sqlite3_vfs] object is used.
--**
--** <b>Note to Windows users:</b> The encoding used for the filename argument
--** of sqlite3_open() and sqlite3_open_v2() must be UTF-8, not whatever
--** codepage is currently defined. Filenames containing international
--** characters must be converted to UTF-8 prior to passing them into
--** sqlite3_open() or sqlite3_open_v2().
--
function sqlite3_open (arg1 : Interfaces.C.Strings.chars_ptr; arg2 : access System.Address) return int; -- /usr/include/sqlite3.h:2173:16
pragma Import (C, sqlite3_open, "sqlite3_open");
-- Database filename (UTF-8)
-- OUT: SQLite db handle
function sqlite3_open16 (arg1 : System.Address; arg2 : System.Address) return int; -- /usr/include/sqlite3.h:2177:16
pragma Import (C, sqlite3_open16, "sqlite3_open16");
-- Database filename (UTF-16)
-- OUT: SQLite db handle
function sqlite3_open_v2
(arg1 : Interfaces.C.Strings.chars_ptr;
arg2 : access System.Address;
arg3 : int;
arg4 : Interfaces.C.Strings.chars_ptr) return int; -- /usr/include/sqlite3.h:2181:16
pragma Import (C, sqlite3_open_v2, "sqlite3_open_v2");
-- Database filename (UTF-8)
-- OUT: SQLite db handle
-- Flags
-- Name of VFS module to use
--** CAPI3REF: Error Codes And Messages
--**
--** ^The sqlite3_errcode() interface returns the numeric [result code] or
--** [extended result code] for the most recent failed sqlite3_* API call
--** associated with a [database connection]. If a prior API call failed
--** but the most recent API call succeeded, the return value from
--** sqlite3_errcode() is undefined. ^The sqlite3_extended_errcode()
--** interface is the same except that it always returns the
--** [extended result code] even when extended result codes are
--** disabled.
--**
--** ^The sqlite3_errmsg() and sqlite3_errmsg16() return English-language
--** text that describes the error, as either UTF-8 or UTF-16 respectively.
--** ^(Memory to hold the error message string is managed internally.
--** The application does not need to worry about freeing the result.
--** However, the error string might be overwritten or deallocated by
--** subsequent calls to other SQLite interface functions.)^
--**
--** When the serialized [threading mode] is in use, it might be the
--** case that a second error occurs on a separate thread in between
--** the time of the first error and the call to these interfaces.
--** When that happens, the second error will be reported since these
--** interfaces always report the most recent result. To avoid
--** this, each thread can obtain exclusive use of the [database connection] D
--** by invoking [sqlite3_mutex_enter]([sqlite3_db_mutex](D)) before beginning
--** to use D and invoking [sqlite3_mutex_leave]([sqlite3_db_mutex](D)) after
--** all calls to the interfaces listed here are completed.
--**
--** If an interface fails with SQLITE_MISUSE, that means the interface
--** was invoked incorrectly by the application. In that case, the
--** error code and message may or may not be set.
--
function sqlite3_errcode (arg1 : System.Address) return int; -- /usr/include/sqlite3.h:2221:16
pragma Import (C, sqlite3_errcode, "sqlite3_errcode");
function sqlite3_extended_errcode (arg1 : System.Address) return int; -- /usr/include/sqlite3.h:2222:16
pragma Import (C, sqlite3_extended_errcode, "sqlite3_extended_errcode");
function sqlite3_errmsg (arg1 : System.Address) return Interfaces.C.Strings.chars_ptr; -- /usr/include/sqlite3.h:2223:24
pragma Import (C, sqlite3_errmsg, "sqlite3_errmsg");
function sqlite3_errmsg16 (arg1 : System.Address) return System.Address; -- /usr/include/sqlite3.h:2224:24
pragma Import (C, sqlite3_errmsg16, "sqlite3_errmsg16");
--** CAPI3REF: SQL Statement Object
--** KEYWORDS: {prepared statement} {prepared statements}
--**
--** An instance of this object represents a single SQL statement.
--** This object is variously known as a "prepared statement" or a
--** "compiled SQL statement" or simply as a "statement".
--**
--** The life of a statement object goes something like this:
--**
--** <ol>
--** <li> Create the object using [sqlite3_prepare_v2()] or a related
--** function.
--** <li> Bind values to [host parameters] using the sqlite3_bind_*()
--** interfaces.
--** <li> Run the SQL by calling [sqlite3_step()] one or more times.
--** <li> Reset the statement using [sqlite3_reset()] then go back
--** to step 2. Do this zero or more times.
--** <li> Destroy the object using [sqlite3_finalize()].
--** </ol>
--**
--** Refer to documentation on individual methods above for additional
--** information.
--
-- skipped empty struct sqlite3_stmt
--** CAPI3REF: Run-time Limits
--**
--** ^(This interface allows the size of various constructs to be limited
--** on a connection by connection basis. The first parameter is the
--** [database connection] whose limit is to be set or queried. The
--** second parameter is one of the [limit categories] that define a
--** class of constructs to be size limited. The third parameter is the
--** new limit for that construct. The function returns the old limit.)^
--**
--** ^If the new limit is a negative number, the limit is unchanged.
--** ^(For the limit category of SQLITE_LIMIT_XYZ there is a
--** [limits | hard upper bound]
--** set by a compile-time C preprocessor macro named
--** [limits | SQLITE_MAX_XYZ].
--** (The "_LIMIT_" in the name is changed to "_MAX_".))^
--** ^Attempts to increase a limit above its hard upper bound are
--** silently truncated to the hard upper bound.
--**
--** Run-time limits are intended for use in applications that manage
--** both their own internal database and also databases that are controlled
--** by untrusted external sources. An example application might be a
--** web browser that has its own databases for storing history and
--** separate databases controlled by JavaScript applications downloaded
--** off the Internet. The internal databases can be given the
--** large, default limits. Databases managed by external sources can
--** be given much smaller limits designed to prevent a denial of service
--** attack. Developers might also want to use the [sqlite3_set_authorizer()]
--** interface to further control untrusted SQL. The size of the database
--** created by an untrusted script can be contained using the
--** [max_page_count] [PRAGMA].
--**
--** New run-time limit categories may be added in future releases.
--
function sqlite3_limit
(arg1 : System.Address;
arg2 : int;
arg3 : int) return int; -- /usr/include/sqlite3.h:2286:16
pragma Import (C, sqlite3_limit, "sqlite3_limit");
--** CAPI3REF: Run-Time Limit Categories
--** KEYWORDS: {limit category} {*limit categories}
--**
--** These constants define various performance limits
--** that can be lowered at run-time using [sqlite3_limit()].
--** The synopsis of the meanings of the various limits is shown below.
--** Additional information is available at [limits | Limits in SQLite].
--**
--** <dl>
--** ^(<dt>SQLITE_LIMIT_LENGTH</dt>
--** <dd>The maximum size of any string or BLOB or table row.<dd>)^
--**
--** ^(<dt>SQLITE_LIMIT_SQL_LENGTH</dt>
--** <dd>The maximum length of an SQL statement, in bytes.</dd>)^
--**
--** ^(<dt>SQLITE_LIMIT_COLUMN</dt>
--** <dd>The maximum number of columns in a table definition or in the
--** result set of a [SELECT] or the maximum number of columns in an index
--** or in an ORDER BY or GROUP BY clause.</dd>)^
--**
--** ^(<dt>SQLITE_LIMIT_EXPR_DEPTH</dt>
--** <dd>The maximum depth of the parse tree on any expression.</dd>)^
--**
--** ^(<dt>SQLITE_LIMIT_COMPOUND_SELECT</dt>
--** <dd>The maximum number of terms in a compound SELECT statement.</dd>)^
--**
--** ^(<dt>SQLITE_LIMIT_VDBE_OP</dt>
--** <dd>The maximum number of instructions in a virtual machine program
--** used to implement an SQL statement.</dd>)^
--**
--** ^(<dt>SQLITE_LIMIT_FUNCTION_ARG</dt>
--** <dd>The maximum number of arguments on a function.</dd>)^
--**
--** ^(<dt>SQLITE_LIMIT_ATTACHED</dt>
--** <dd>The maximum number of [ATTACH | attached databases].)^</dd>
--**
--** ^(<dt>SQLITE_LIMIT_LIKE_PATTERN_LENGTH</dt>
--** <dd>The maximum length of the pattern argument to the [LIKE] or
--** [GLOB] operators.</dd>)^
--**
--** ^(<dt>SQLITE_LIMIT_VARIABLE_NUMBER</dt>
--** <dd>The maximum number of variables in an SQL statement that can
--** be bound.</dd>)^
--**
--** ^(<dt>SQLITE_LIMIT_TRIGGER_DEPTH</dt>
--** <dd>The maximum depth of recursion for triggers.</dd>)^
--** </dl>
--
--** CAPI3REF: Compiling An SQL Statement
--** KEYWORDS: {SQL statement compiler}
--**
--** To execute an SQL query, it must first be compiled into a byte-code
--** program using one of these routines.
--**
--** The first argument, "db", is a [database connection] obtained from a
--** prior successful call to [sqlite3_open()], [sqlite3_open_v2()] or
--** [sqlite3_open16()]. The database connection must not have been closed.
--**
--** The second argument, "zSql", is the statement to be compiled, encoded
--** as either UTF-8 or UTF-16. The sqlite3_prepare() and sqlite3_prepare_v2()
--** interfaces use UTF-8, and sqlite3_prepare16() and sqlite3_prepare16_v2()
--** use UTF-16.
--**
--** ^If the nByte argument is less than zero, then zSql is read up to the
--** first zero terminator. ^If nByte is non-negative, then it is the maximum
--** number of bytes read from zSql. ^When nByte is non-negative, the
--** zSql string ends at either the first '\000' or '\u0000' character or
--** the nByte-th byte, whichever comes first. If the caller knows
--** that the supplied string is nul-terminated, then there is a small
--** performance advantage to be gained by passing an nByte parameter that
--** is equal to the number of bytes in the input string <i>including</i>
--** the nul-terminator bytes.
--**
--** ^If pzTail is not NULL then *pzTail is made to point to the first byte
--** past the end of the first SQL statement in zSql. These routines only
--** compile the first statement in zSql, so *pzTail is left pointing to
--** what remains uncompiled.
--**
--** ^*ppStmt is left pointing to a compiled [prepared statement] that can be
--** executed using [sqlite3_step()]. ^If there is an error, *ppStmt is set
--** to NULL. ^If the input text contains no SQL (if the input is an empty
--** string or a comment) then *ppStmt is set to NULL.
--** The calling procedure is responsible for deleting the compiled
--** SQL statement using [sqlite3_finalize()] after it has finished with it.
--** ppStmt may not be NULL.
--**
--** ^On success, the sqlite3_prepare() family of routines return [SQLITE_OK];
--** otherwise an [error code] is returned.
--**
--** The sqlite3_prepare_v2() and sqlite3_prepare16_v2() interfaces are
--** recommended for all new programs. The two older interfaces are retained
--** for backwards compatibility, but their use is discouraged.
--** ^In the "v2" interfaces, the prepared statement
--** that is returned (the [sqlite3_stmt] object) contains a copy of the
--** original SQL text. This causes the [sqlite3_step()] interface to
--** behave differently in three ways:
--**
--** <ol>
--** <li>
--** ^If the database schema changes, instead of returning [SQLITE_SCHEMA] as it
--** always used to do, [sqlite3_step()] will automatically recompile the SQL
--** statement and try to run it again. ^If the schema has changed in
--** a way that makes the statement no longer valid, [sqlite3_step()] will still
--** return [SQLITE_SCHEMA]. But unlike the legacy behavior, [SQLITE_SCHEMA] is
--** now a fatal error. Calling [sqlite3_prepare_v2()] again will not make the
--** error go away. Note: use [sqlite3_errmsg()] to find the text
--** of the parsing error that results in an [SQLITE_SCHEMA] return.
--** </li>
--**
--** <li>
--** ^When an error occurs, [sqlite3_step()] will return one of the detailed
--** [error codes] or [extended error codes]. ^The legacy behavior was that
--** [sqlite3_step()] would only return a generic [SQLITE_ERROR] result code
--** and the application would have to make a second call to [sqlite3_reset()]
--** in order to find the underlying cause of the problem. With the "v2" prepare
--** interfaces, the underlying reason for the error is returned immediately.
--** </li>
--**
--** <li>
--** ^If the value of a [parameter | host parameter] in the WHERE clause might
--** change the query plan for a statement, then the statement may be
--** automatically recompiled (as if there had been a schema change) on the first
--** [sqlite3_step()] call following any change to the
--** [sqlite3_bind_text | bindings] of the [parameter].
--** </li>
--** </ol>
--
function sqlite3_prepare
(arg1 : System.Address;
arg2 : Interfaces.C.Strings.chars_ptr;
arg3 : int;
arg4 : System.Address;
arg5 : System.Address) return int; -- /usr/include/sqlite3.h:2429:16
pragma Import (C, sqlite3_prepare, "sqlite3_prepare");
-- Database handle
-- SQL statement, UTF-8 encoded
-- Maximum length of zSql in bytes.
-- OUT: Statement handle
-- OUT: Pointer to unused portion of zSql
function sqlite3_prepare_v2
(db : System.Address;
zSql : Interfaces.C.Strings.chars_ptr;
nByte : int;
ppStmt : System.Address;
pzTail : System.Address) return int; -- /usr/include/sqlite3.h:2436:16
pragma Import (C, sqlite3_prepare_v2, "sqlite3_prepare_v2");
-- Database handle
-- SQL statement, UTF-8 encoded
-- Maximum length of zSql in bytes.
-- OUT: Statement handle
-- OUT: Pointer to unused portion of zSql
function sqlite3_prepare16
(arg1 : System.Address;
arg2 : System.Address;
arg3 : int;
arg4 : System.Address;
arg5 : System.Address) return int; -- /usr/include/sqlite3.h:2443:16
pragma Import (C, sqlite3_prepare16, "sqlite3_prepare16");
-- Database handle
-- SQL statement, UTF-16 encoded
-- Maximum length of zSql in bytes.
-- OUT: Statement handle
-- OUT: Pointer to unused portion of zSql
function sqlite3_prepare16_v2
(arg1 : System.Address;
arg2 : System.Address;
arg3 : int;
arg4 : System.Address;
arg5 : System.Address) return int; -- /usr/include/sqlite3.h:2450:16
pragma Import (C, sqlite3_prepare16_v2, "sqlite3_prepare16_v2");
-- Database handle
-- SQL statement, UTF-16 encoded
-- Maximum length of zSql in bytes.
-- OUT: Statement handle
-- OUT: Pointer to unused portion of zSql
--** CAPI3REF: Retrieving Statement SQL
--**
--** ^This interface can be used to retrieve a saved copy of the original
--** SQL text used to create a [prepared statement] if that statement was
--** compiled using either [sqlite3_prepare_v2()] or [sqlite3_prepare16_v2()].
--
function sqlite3_sql (arg1 : System.Address) return Interfaces.C.Strings.chars_ptr; -- /usr/include/sqlite3.h:2465:24
pragma Import (C, sqlite3_sql, "sqlite3_sql");
--** CAPI3REF: Dynamically Typed Value Object
--** KEYWORDS: {protected sqlite3_value} {unprotected sqlite3_value}
--**
--** SQLite uses the sqlite3_value object to represent all values
--** that can be stored in a database table. SQLite uses dynamic typing
--** for the values it stores. ^Values stored in sqlite3_value objects
--** can be integers, floating point values, strings, BLOBs, or NULL.
--**
--** An sqlite3_value object may be either "protected" or "unprotected".
--** Some interfaces require a protected sqlite3_value. Other interfaces
--** will accept either a protected or an unprotected sqlite3_value.
--** Every interface that accepts sqlite3_value arguments specifies
--** whether or not it requires a protected sqlite3_value.
--**
--** The terms "protected" and "unprotected" refer to whether or not
--** a mutex is held. A internal mutex is held for a protected
--** sqlite3_value object but no mutex is held for an unprotected
--** sqlite3_value object. If SQLite is compiled to be single-threaded
--** (with [SQLITE_THREADSAFE=0] and with [sqlite3_threadsafe()] returning 0)
--** or if SQLite is run in one of reduced mutex modes
--** [SQLITE_CONFIG_SINGLETHREAD] or [SQLITE_CONFIG_MULTITHREAD]
--** then there is no distinction between protected and unprotected
--** sqlite3_value objects and they can be used interchangeably. However,
--** for maximum code portability it is recommended that applications
--** still make the distinction between between protected and unprotected
--** sqlite3_value objects even when not strictly required.
--**
--** ^The sqlite3_value objects that are passed as parameters into the
--** implementation of [application-defined SQL functions] are protected.
--** ^The sqlite3_value object returned by
--** [sqlite3_column_value()] is unprotected.
--** Unprotected sqlite3_value objects may only be used with
--** [sqlite3_result_value()] and [sqlite3_bind_value()].
--** The [sqlite3_value_blob | sqlite3_value_type()] family of
--** interfaces require protected sqlite3_value objects.
--
-- skipped empty struct Mem
-- skipped empty struct sqlite3_value
--** CAPI3REF: SQL Function Context Object
--**
--** The context in which an SQL function executes is stored in an
--** sqlite3_context object. ^A pointer to an sqlite3_context object
--** is always first parameter to [application-defined SQL functions].
--** The application-defined SQL function implementation will pass this
--** pointer through into calls to [sqlite3_result_int | sqlite3_result()],
--** [sqlite3_aggregate_context()], [sqlite3_user_data()],
--** [sqlite3_context_db_handle()], [sqlite3_get_auxdata()],
--** and/or [sqlite3_set_auxdata()].
--
-- skipped empty struct sqlite3_context
--** CAPI3REF: Binding Values To Prepared Statements
--** KEYWORDS: {host parameter} {host parameters} {host parameter name}
--** KEYWORDS: {SQL parameter} {SQL parameters} {parameter binding}
--**
--** ^(In the SQL statement text input to [sqlite3_prepare_v2()] and its variants,
--** literals may be replaced by a [parameter] that matches one of following
--** templates:
--**
--** <ul>
--** <li> ?
--** <li> ?NNN
--** <li> :VVV
--** <li> @VVV
--** <li> $VVV
--** </ul>
--**
--** In the templates above, NNN represents an integer literal,
--** and VVV represents an alphanumeric identifer.)^ ^The values of these
--** parameters (also called "host parameter names" or "SQL parameters")
--** can be set using the sqlite3_bind_*() routines defined here.
--**
--** ^The first argument to the sqlite3_bind_*() routines is always
--** a pointer to the [sqlite3_stmt] object returned from
--** [sqlite3_prepare_v2()] or its variants.
--**
--** ^The second argument is the index of the SQL parameter to be set.
--** ^The leftmost SQL parameter has an index of 1. ^When the same named
--** SQL parameter is used more than once, second and subsequent
--** occurrences have the same index as the first occurrence.
--** ^The index for named parameters can be looked up using the
--** [sqlite3_bind_parameter_index()] API if desired. ^The index
--** for "?NNN" parameters is the value of NNN.
--** ^The NNN value must be between 1 and the [sqlite3_limit()]
--** parameter [SQLITE_LIMIT_VARIABLE_NUMBER] (default value: 999).
--**
--** ^The third argument is the value to bind to the parameter.
--**
--** ^(In those routines that have a fourth argument, its value is the
--** number of bytes in the parameter. To be clear: the value is the
--** number of <u>bytes</u> in the value, not the number of characters.)^
--** ^If the fourth parameter is negative, the length of the string is
--** the number of bytes up to the first zero terminator.
--**
--** ^The fifth argument to sqlite3_bind_blob(), sqlite3_bind_text(), and
--** sqlite3_bind_text16() is a destructor used to dispose of the BLOB or
--** string after SQLite has finished with it. ^If the fifth argument is
--** the special value [SQLITE_STATIC], then SQLite assumes that the
--** information is in static, unmanaged space and does not need to be freed.
--** ^If the fifth argument has the value [SQLITE_TRANSIENT], then
--** SQLite makes its own private copy of the data immediately, before
--** the sqlite3_bind_*() routine returns.
--**
--** ^The sqlite3_bind_zeroblob() routine binds a BLOB of length N that
--** is filled with zeroes. ^A zeroblob uses a fixed amount of memory
--** (just an integer to hold its size) while it is being processed.
--** Zeroblobs are intended to serve as placeholders for BLOBs whose
--** content is later written using
--** [sqlite3_blob_open | incremental BLOB I/O] routines.
--** ^A negative value for the zeroblob results in a zero-length BLOB.
--**
--** ^If any of the sqlite3_bind_*() routines are called with a NULL pointer
--** for the [prepared statement] or with a prepared statement for which
--** [sqlite3_step()] has been called more recently than [sqlite3_reset()],
--** then the call will return [SQLITE_MISUSE]. If any sqlite3_bind_()
--** routine is passed a [prepared statement] that has been finalized, the
--** result is undefined and probably harmful.
--**
--** ^Bindings are not cleared by the [sqlite3_reset()] routine.
--** ^Unbound parameters are interpreted as NULL.
--**
--** ^The sqlite3_bind_* routines return [SQLITE_OK] on success or an
--** [error code] if anything goes wrong.
--** ^[SQLITE_RANGE] is returned if the parameter
--** index is out of range. ^[SQLITE_NOMEM] is returned if malloc() fails.
--**
--** See also: [sqlite3_bind_parameter_count()],
--** [sqlite3_bind_parameter_name()], and [sqlite3_bind_parameter_index()].
--
function sqlite3_bind_blob
(arg1 : System.Address;
arg2 : int;
arg3 : System.Address;
arg4 : int;
arg5 : access procedure (arg1 : System.Address)) return int; -- /usr/include/sqlite3.h:2599:16
pragma Import (C, sqlite3_bind_blob, "sqlite3_bind_blob");
function sqlite3_bind_double
(arg1 : System.Address;
arg2 : int;
arg3 : double) return int; -- /usr/include/sqlite3.h:2600:16
pragma Import (C, sqlite3_bind_double, "sqlite3_bind_double");
function sqlite3_bind_int
(arg1 : System.Address;
arg2 : int;
arg3 : int) return int; -- /usr/include/sqlite3.h:2601:16
pragma Import (C, sqlite3_bind_int, "sqlite3_bind_int");
function sqlite3_bind_int64
(arg1 : System.Address;
arg2 : int;
arg3 : sqlite3_int64) return int; -- /usr/include/sqlite3.h:2602:16
pragma Import (C, sqlite3_bind_int64, "sqlite3_bind_int64");
function sqlite3_bind_null (arg1 : System.Address; arg2 : int) return int; -- /usr/include/sqlite3.h:2603:16
pragma Import (C, sqlite3_bind_null, "sqlite3_bind_null");
function sqlite3_bind_text
(arg1 : System.Address;
arg2 : int;
arg3 : Interfaces.C.Strings.chars_ptr;
arg4 : int;
arg5 : access procedure (arg1 : System.Address)) return int; -- /usr/include/sqlite3.h:2604:16
pragma Import (C, sqlite3_bind_text, "sqlite3_bind_text");
function sqlite3_bind_text16
(arg1 : System.Address;
arg2 : int;
arg3 : System.Address;
arg4 : int;
arg5 : access procedure (arg1 : System.Address)) return int; -- /usr/include/sqlite3.h:2605:16
pragma Import (C, sqlite3_bind_text16, "sqlite3_bind_text16");
function sqlite3_bind_value
(arg1 : System.Address;
arg2 : int;
arg3 : System.Address) return int; -- /usr/include/sqlite3.h:2606:16
pragma Import (C, sqlite3_bind_value, "sqlite3_bind_value");
function sqlite3_bind_zeroblob
(arg1 : System.Address;
arg2 : int;
arg3 : int) return int; -- /usr/include/sqlite3.h:2607:16
pragma Import (C, sqlite3_bind_zeroblob, "sqlite3_bind_zeroblob");
--** CAPI3REF: Number Of SQL Parameters
--**
--** ^This routine can be used to find the number of [SQL parameters]
--** in a [prepared statement]. SQL parameters are tokens of the
--** form "?", "?NNN", ":AAA", "$AAA", or "@AAA" that serve as
--** placeholders for values that are [sqlite3_bind_blob | bound]
--** to the parameters at a later time.
--**
--** ^(This routine actually returns the index of the largest (rightmost)
--** parameter. For all forms except ?NNN, this will correspond to the
--** number of unique parameters. If parameters of the ?NNN form are used,
--** there may be gaps in the list.)^
--**
--** See also: [sqlite3_bind_blob|sqlite3_bind()],
--** [sqlite3_bind_parameter_name()], and
--** [sqlite3_bind_parameter_index()].
--
function sqlite3_bind_parameter_count (arg1 : System.Address) return int; -- /usr/include/sqlite3.h:2627:16
pragma Import (C, sqlite3_bind_parameter_count, "sqlite3_bind_parameter_count");
--** CAPI3REF: Name Of A Host Parameter
--**
--** ^The sqlite3_bind_parameter_name(P,N) interface returns
--** the name of the N-th [SQL parameter] in the [prepared statement] P.
--** ^(SQL parameters of the form "?NNN" or ":AAA" or "@AAA" or "$AAA"
--** have a name which is the string "?NNN" or ":AAA" or "@AAA" or "$AAA"
--** respectively.
--** In other words, the initial ":" or "$" or "@" or "?"
--** is included as part of the name.)^
--** ^Parameters of the form "?" without a following integer have no name
--** and are referred to as "nameless" or "anonymous parameters".
--**
--** ^The first host parameter has an index of 1, not 0.
--**
--** ^If the value N is out of range or if the N-th parameter is
--** nameless, then NULL is returned. ^The returned string is
--** always in UTF-8 encoding even if the named parameter was
--** originally specified as UTF-16 in [sqlite3_prepare16()] or
--** [sqlite3_prepare16_v2()].
--**
--** See also: [sqlite3_bind_blob|sqlite3_bind()],
--** [sqlite3_bind_parameter_count()], and
--** [sqlite3_bind_parameter_index()].
--
function sqlite3_bind_parameter_name (arg1 : System.Address; arg2 : int) return Interfaces.C.Strings.chars_ptr; -- /usr/include/sqlite3.h:2654:24
pragma Import (C, sqlite3_bind_parameter_name, "sqlite3_bind_parameter_name");
--** CAPI3REF: Index Of A Parameter With A Given Name
--**
--** ^Return the index of an SQL parameter given its name. ^The
--** index value returned is suitable for use as the second
--** parameter to [sqlite3_bind_blob|sqlite3_bind()]. ^A zero
--** is returned if no matching parameter is found. ^The parameter
--** name must be given in UTF-8 even if the original statement
--** was prepared from UTF-16 text using [sqlite3_prepare16_v2()].
--**
--** See also: [sqlite3_bind_blob|sqlite3_bind()],
--** [sqlite3_bind_parameter_count()], and
--** [sqlite3_bind_parameter_index()].
--
function sqlite3_bind_parameter_index (arg1 : System.Address; arg2 : Interfaces.C.Strings.chars_ptr) return int; -- /usr/include/sqlite3.h:2670:16
pragma Import (C, sqlite3_bind_parameter_index, "sqlite3_bind_parameter_index");
--** CAPI3REF: Reset All Bindings On A Prepared Statement
--**
--** ^Contrary to the intuition of many, [sqlite3_reset()] does not reset
--** the [sqlite3_bind_blob | bindings] on a [prepared statement].
--** ^Use this routine to reset all host parameters to NULL.
--
function sqlite3_clear_bindings (arg1 : System.Address) return int; -- /usr/include/sqlite3.h:2679:16
pragma Import (C, sqlite3_clear_bindings, "sqlite3_clear_bindings");
--** CAPI3REF: Number Of Columns In A Result Set
--**
--** ^Return the number of columns in the result set returned by the
--** [prepared statement]. ^This routine returns 0 if pStmt is an SQL
--** statement that does not return data (for example an [UPDATE]).
--
function sqlite3_column_count (arg1 : System.Address) return int; -- /usr/include/sqlite3.h:2688:16
pragma Import (C, sqlite3_column_count, "sqlite3_column_count");
--** CAPI3REF: Column Names In A Result Set
--**
--** ^These routines return the name assigned to a particular column
--** in the result set of a [SELECT] statement. ^The sqlite3_column_name()
--** interface returns a pointer to a zero-terminated UTF-8 string
--** and sqlite3_column_name16() returns a pointer to a zero-terminated
--** UTF-16 string. ^The first parameter is the [prepared statement]
--** that implements the [SELECT] statement. ^The second parameter is the
--** column number. ^The leftmost column is number 0.
--**
--** ^The returned string pointer is valid until either the [prepared statement]
--** is destroyed by [sqlite3_finalize()] or until the next call to
--** sqlite3_column_name() or sqlite3_column_name16() on the same column.
--**
--** ^If sqlite3_malloc() fails during the processing of either routine
--** (for example during a conversion from UTF-8 to UTF-16) then a
--** NULL pointer is returned.
--**
--** ^The name of a result column is the value of the "AS" clause for
--** that column, if there is an AS clause. If there is no AS clause
--** then the name of the column is unspecified and may change from
--** one release of SQLite to the next.
--
function sqlite3_column_name (arg1 : System.Address; arg2 : int) return Interfaces.C.Strings.chars_ptr; -- /usr/include/sqlite3.h:2714:24
pragma Import (C, sqlite3_column_name, "sqlite3_column_name");
function sqlite3_column_name16 (arg1 : System.Address; arg2 : int) return System.Address; -- /usr/include/sqlite3.h:2715:24
pragma Import (C, sqlite3_column_name16, "sqlite3_column_name16");
--** CAPI3REF: Source Of Data In A Query Result
--**
--** ^These routines provide a means to determine the database, table, and
--** table column that is the origin of a particular result column in
--** [SELECT] statement.
--** ^The name of the database or table or column can be returned as
--** either a UTF-8 or UTF-16 string. ^The _database_ routines return
--** the database name, the _table_ routines return the table name, and
--** the origin_ routines return the column name.
--** ^The returned string is valid until the [prepared statement] is destroyed
--** using [sqlite3_finalize()] or until the same information is requested
--** again in a different encoding.
--**
--** ^The names returned are the original un-aliased names of the
--** database, table, and column.
--**
--** ^The first argument to these interfaces is a [prepared statement].
--** ^These functions return information about the Nth result column returned by
--** the statement, where N is the second function argument.
--** ^The left-most column is column 0 for these routines.
--**
--** ^If the Nth column returned by the statement is an expression or
--** subquery and is not a column value, then all of these functions return
--** NULL. ^These routine might also return NULL if a memory allocation error
--** occurs. ^Otherwise, they return the name of the attached database, table,
--** or column that query result column was extracted from.
--**
--** ^As with all other SQLite APIs, those whose names end with "16" return
--** UTF-16 encoded strings and the other functions return UTF-8.
--**
--** ^These APIs are only available if the library was compiled with the
--** [SQLITE_ENABLE_COLUMN_METADATA] C-preprocessor symbol.
--**
--** If two or more threads call one or more of these routines against the same
--** prepared statement and column at the same time then the results are
--** undefined.
--**
--** If two or more threads call one or more
--** [sqlite3_column_database_name | column metadata interfaces]
--** for the same [prepared statement] and result column
--** at the same time then the results are undefined.
--
function sqlite3_column_database_name (arg1 : System.Address; arg2 : int) return Interfaces.C.Strings.chars_ptr; -- /usr/include/sqlite3.h:2760:24
pragma Import (C, sqlite3_column_database_name, "sqlite3_column_database_name");
function sqlite3_column_database_name16 (arg1 : System.Address; arg2 : int) return System.Address; -- /usr/include/sqlite3.h:2761:24
pragma Import (C, sqlite3_column_database_name16, "sqlite3_column_database_name16");
function sqlite3_column_table_name (arg1 : System.Address; arg2 : int) return Interfaces.C.Strings.chars_ptr; -- /usr/include/sqlite3.h:2762:24
pragma Import (C, sqlite3_column_table_name, "sqlite3_column_table_name");
function sqlite3_column_table_name16 (arg1 : System.Address; arg2 : int) return System.Address; -- /usr/include/sqlite3.h:2763:24
pragma Import (C, sqlite3_column_table_name16, "sqlite3_column_table_name16");
function sqlite3_column_origin_name (arg1 : System.Address; arg2 : int) return Interfaces.C.Strings.chars_ptr; -- /usr/include/sqlite3.h:2764:24
pragma Import (C, sqlite3_column_origin_name, "sqlite3_column_origin_name");
function sqlite3_column_origin_name16 (arg1 : System.Address; arg2 : int) return System.Address; -- /usr/include/sqlite3.h:2765:24
pragma Import (C, sqlite3_column_origin_name16, "sqlite3_column_origin_name16");
--** CAPI3REF: Declared Datatype Of A Query Result
--**
--** ^(The first parameter is a [prepared statement].
--** If this statement is a [SELECT] statement and the Nth column of the
--** returned result set of that [SELECT] is a table column (not an
--** expression or subquery) then the declared type of the table
--** column is returned.)^ ^If the Nth column of the result set is an
--** expression or subquery, then a NULL pointer is returned.
--** ^The returned string is always UTF-8 encoded.
--**
--** ^(For example, given the database schema:
--**
--** CREATE TABLE t1(c1 VARIANT);
--**
--** and the following statement to be compiled:
--**
--** SELECT c1 + 1, c1 FROM t1;
--**
--** this routine would return the string "VARIANT" for the second result
--** column (i==1), and a NULL pointer for the first result column (i==0).)^
--**
--** ^SQLite uses dynamic run-time typing. ^So just because a column
--** is declared to contain a particular type does not mean that the
--** data stored in that column is of the declared type. SQLite is
--** strongly typed, but the typing is dynamic not static. ^Type
--** is associated with individual values, not with the containers
--** used to hold those values.
--
function sqlite3_column_decltype (arg1 : System.Address; arg2 : int) return Interfaces.C.Strings.chars_ptr; -- /usr/include/sqlite3.h:2796:24
pragma Import (C, sqlite3_column_decltype, "sqlite3_column_decltype");
function sqlite3_column_decltype16 (arg1 : System.Address; arg2 : int) return System.Address; -- /usr/include/sqlite3.h:2797:24
pragma Import (C, sqlite3_column_decltype16, "sqlite3_column_decltype16");
--** CAPI3REF: Evaluate An SQL Statement
--**
--** After a [prepared statement] has been prepared using either
--** [sqlite3_prepare_v2()] or [sqlite3_prepare16_v2()] or one of the legacy
--** interfaces [sqlite3_prepare()] or [sqlite3_prepare16()], this function
--** must be called one or more times to evaluate the statement.
--**
--** The details of the behavior of the sqlite3_step() interface depend
--** on whether the statement was prepared using the newer "v2" interface
--** [sqlite3_prepare_v2()] and [sqlite3_prepare16_v2()] or the older legacy
--** interface [sqlite3_prepare()] and [sqlite3_prepare16()]. The use of the
--** new "v2" interface is recommended for new applications but the legacy
--** interface will continue to be supported.
--**
--** ^In the legacy interface, the return value will be either [SQLITE_BUSY],
--** [SQLITE_DONE], [SQLITE_ROW], [SQLITE_ERROR], or [SQLITE_MISUSE].
--** ^With the "v2" interface, any of the other [result codes] or
--** [extended result codes] might be returned as well.
--**
--** ^[SQLITE_BUSY] means that the database engine was unable to acquire the
--** database locks it needs to do its job. ^If the statement is a [COMMIT]
--** or occurs outside of an explicit transaction, then you can retry the
--** statement. If the statement is not a [COMMIT] and occurs within a
--** explicit transaction then you should rollback the transaction before
--** continuing.
--**
--** ^[SQLITE_DONE] means that the statement has finished executing
--** successfully. sqlite3_step() should not be called again on this virtual
--** machine without first calling [sqlite3_reset()] to reset the virtual
--** machine back to its initial state.
--**
--** ^If the SQL statement being executed returns any data, then [SQLITE_ROW]
--** is returned each time a new row of data is ready for processing by the
--** caller. The values may be accessed using the [column access functions].
--** sqlite3_step() is called again to retrieve the next row of data.
--**
--** ^[SQLITE_ERROR] means that a run-time error (such as a constraint
--** violation) has occurred. sqlite3_step() should not be called again on
--** the VM. More information may be found by calling [sqlite3_errmsg()].
--** ^With the legacy interface, a more specific error code (for example,
--** [SQLITE_INTERRUPT], [SQLITE_SCHEMA], [SQLITE_CORRUPT], and so forth)
--** can be obtained by calling [sqlite3_reset()] on the
--** [prepared statement]. ^In the "v2" interface,
--** the more specific error code is returned directly by sqlite3_step().
--**
--** [SQLITE_MISUSE] means that the this routine was called inappropriately.
--** Perhaps it was called on a [prepared statement] that has
--** already been [sqlite3_finalize | finalized] or on one that had
--** previously returned [SQLITE_ERROR] or [SQLITE_DONE]. Or it could
--** be the case that the same database connection is being used by two or
--** more threads at the same moment in time.
--**
--** <b>Goofy Interface Alert:</b> In the legacy interface, the sqlite3_step()
--** API always returns a generic error code, [SQLITE_ERROR], following any
--** error other than [SQLITE_BUSY] and [SQLITE_MISUSE]. You must call
--** [sqlite3_reset()] or [sqlite3_finalize()] in order to find one of the
--** specific [error codes] that better describes the error.
--** We admit that this is a goofy design. The problem has been fixed
--** with the "v2" interface. If you prepare all of your SQL statements
--** using either [sqlite3_prepare_v2()] or [sqlite3_prepare16_v2()] instead
--** of the legacy [sqlite3_prepare()] and [sqlite3_prepare16()] interfaces,
--** then the more specific [error codes] are returned directly
--** by sqlite3_step(). The use of the "v2" interface is recommended.
--
function sqlite3_step (arg1 : System.Address) return int; -- /usr/include/sqlite3.h:2864:16
pragma Import (C, sqlite3_step, "sqlite3_step");
--** CAPI3REF: Number of columns in a result set
--**
--** ^The sqlite3_data_count(P) the number of columns in the
--** of the result set of [prepared statement] P.
--
function sqlite3_data_count (arg1 : System.Address) return int; -- /usr/include/sqlite3.h:2872:16
pragma Import (C, sqlite3_data_count, "sqlite3_data_count");
--** CAPI3REF: Fundamental Datatypes
--** KEYWORDS: SQLITE_TEXT
--**
--** ^(Every value in SQLite has one of five fundamental datatypes:
--**
--** <ul>
--** <li> 64-bit signed integer
--** <li> 64-bit IEEE floating point number
--** <li> string
--** <li> BLOB
--** <li> NULL
--** </ul>)^
--**
--** These constants are codes for each of those types.
--**
--** Note that the SQLITE_TEXT constant was also used in SQLite version 2
--** for a completely different meaning. Software that links against both
--** SQLite version 2 and SQLite version 3 should use SQLITE3_TEXT, not
--** SQLITE_TEXT.
--
--** CAPI3REF: Result Values From A Query
--** KEYWORDS: {column access functions}
--**
--** These routines form the "result set" interface.
--**
--** ^These routines return information about a single column of the current
--** result row of a query. ^In every case the first argument is a pointer
--** to the [prepared statement] that is being evaluated (the [sqlite3_stmt*]
--** that was returned from [sqlite3_prepare_v2()] or one of its variants)
--** and the second argument is the index of the column for which information
--** should be returned. ^The leftmost column of the result set has the index 0.
--** ^The number of columns in the result can be determined using
--** [sqlite3_column_count()].
--**
--** If the SQL statement does not currently point to a valid row, or if the
--** column index is out of range, the result is undefined.
--** These routines may only be called when the most recent call to
--** [sqlite3_step()] has returned [SQLITE_ROW] and neither
--** [sqlite3_reset()] nor [sqlite3_finalize()] have been called subsequently.
--** If any of these routines are called after [sqlite3_reset()] or
--** [sqlite3_finalize()] or after [sqlite3_step()] has returned
--** something other than [SQLITE_ROW], the results are undefined.
--** If [sqlite3_step()] or [sqlite3_reset()] or [sqlite3_finalize()]
--** are called from a different thread while any of these routines
--** are pending, then the results are undefined.
--**
--** ^The sqlite3_column_type() routine returns the
--** [SQLITE_INTEGER | datatype code] for the initial data type
--** of the result column. ^The returned value is one of [SQLITE_INTEGER],
--** [SQLITE_FLOAT], [SQLITE_TEXT], [SQLITE_BLOB], or [SQLITE_NULL]. The value
--** returned by sqlite3_column_type() is only meaningful if no type
--** conversions have occurred as described below. After a type conversion,
--** the value returned by sqlite3_column_type() is undefined. Future
--** versions of SQLite may change the behavior of sqlite3_column_type()
--** following a type conversion.
--**
--** ^If the result is a BLOB or UTF-8 string then the sqlite3_column_bytes()
--** routine returns the number of bytes in that BLOB or string.
--** ^If the result is a UTF-16 string, then sqlite3_column_bytes() converts
--** the string to UTF-8 and then returns the number of bytes.
--** ^If the result is a numeric value then sqlite3_column_bytes() uses
--** [sqlite3_snprintf()] to convert that value to a UTF-8 string and returns
--** the number of bytes in that string.
--** ^The value returned does not include the zero terminator at the end
--** of the string. ^For clarity: the value returned is the number of
--** bytes in the string, not the number of characters.
--**
--** ^Strings returned by sqlite3_column_text() and sqlite3_column_text16(),
--** even empty strings, are always zero terminated. ^The return
--** value from sqlite3_column_blob() for a zero-length BLOB is an arbitrary
--** pointer, possibly even a NULL pointer.
--**
--** ^The sqlite3_column_bytes16() routine is similar to sqlite3_column_bytes()
--** but leaves the result in UTF-16 in native byte order instead of UTF-8.
--** ^The zero terminator is not included in this count.
--**
--** ^The object returned by [sqlite3_column_value()] is an
--** [unprotected sqlite3_value] object. An unprotected sqlite3_value object
--** may only be used with [sqlite3_bind_value()] and [sqlite3_result_value()].
--** If the [unprotected sqlite3_value] object returned by
--** [sqlite3_column_value()] is used in any other way, including calls
--** to routines like [sqlite3_value_int()], [sqlite3_value_text()],
--** or [sqlite3_value_bytes()], then the behavior is undefined.
--**
--** These routines attempt to convert the value where appropriate. ^For
--** example, if the internal representation is FLOAT and a text result
--** is requested, [sqlite3_snprintf()] is used internally to perform the
--** conversion automatically. ^(The following table details the conversions
--** that are applied:
--**
--** <blockquote>
--** <table border="1">
--** <tr><th> Internal<br>Type <th> Requested<br>Type <th> Conversion
--**
--** <tr><td> NULL <td> INTEGER <td> Result is 0
--** <tr><td> NULL <td> FLOAT <td> Result is 0.0
--** <tr><td> NULL <td> TEXT <td> Result is NULL pointer
--** <tr><td> NULL <td> BLOB <td> Result is NULL pointer
--** <tr><td> INTEGER <td> FLOAT <td> Convert from integer to float
--** <tr><td> INTEGER <td> TEXT <td> ASCII rendering of the integer
--** <tr><td> INTEGER <td> BLOB <td> Same as INTEGER->TEXT
--** <tr><td> FLOAT <td> INTEGER <td> Convert from float to integer
--** <tr><td> FLOAT <td> TEXT <td> ASCII rendering of the float
--** <tr><td> FLOAT <td> BLOB <td> Same as FLOAT->TEXT
--** <tr><td> TEXT <td> INTEGER <td> Use atoi()
--** <tr><td> TEXT <td> FLOAT <td> Use atof()
--** <tr><td> TEXT <td> BLOB <td> No change
--** <tr><td> BLOB <td> INTEGER <td> Convert to TEXT then use atoi()
--** <tr><td> BLOB <td> FLOAT <td> Convert to TEXT then use atof()
--** <tr><td> BLOB <td> TEXT <td> Add a zero terminator if needed
--** </table>
--** </blockquote>)^
--**
--** The table above makes reference to standard C library functions atoi()
--** and atof(). SQLite does not really use these functions. It has its
--** own equivalent internal routines. The atoi() and atof() names are
--** used in the table for brevity and because they are familiar to most
--** C programmers.
--**
--** ^Note that when type conversions occur, pointers returned by prior
--** calls to sqlite3_column_blob(), sqlite3_column_text(), and/or
--** sqlite3_column_text16() may be invalidated.
--** ^(Type conversions and pointer invalidations might occur
--** in the following cases:
--**
--** <ul>
--** <li> The initial content is a BLOB and sqlite3_column_text() or
--** sqlite3_column_text16() is called. A zero-terminator might
--** need to be added to the string.</li>
--** <li> The initial content is UTF-8 text and sqlite3_column_bytes16() or
--** sqlite3_column_text16() is called. The content must be converted
--** to UTF-16.</li>
--** <li> The initial content is UTF-16 text and sqlite3_column_bytes() or
--** sqlite3_column_text() is called. The content must be converted
--** to UTF-8.</li>
--** </ul>)^
--**
--** ^Conversions between UTF-16be and UTF-16le are always done in place and do
--** not invalidate a prior pointer, though of course the content of the buffer
--** that the prior pointer points to will have been modified. Other kinds
--** of conversion are done in place when it is possible, but sometimes they
--** are not possible and in those cases prior pointers are invalidated.
--**
--** ^(The safest and easiest to remember policy is to invoke these routines
--** in one of the following ways:
--**
--** <ul>
--** <li>sqlite3_column_text() followed by sqlite3_column_bytes()</li>
--** <li>sqlite3_column_blob() followed by sqlite3_column_bytes()</li>
--** <li>sqlite3_column_text16() followed by sqlite3_column_bytes16()</li>
--** </ul>)^
--**
--** In other words, you should call sqlite3_column_text(),
--** sqlite3_column_blob(), or sqlite3_column_text16() first to force the result
--** into the desired format, then invoke sqlite3_column_bytes() or
--** sqlite3_column_bytes16() to find the size of the result. Do not mix calls
--** to sqlite3_column_text() or sqlite3_column_blob() with calls to
--** sqlite3_column_bytes16(), and do not mix calls to sqlite3_column_text16()
--** with calls to sqlite3_column_bytes().
--**
--** ^The pointers returned are valid until a type conversion occurs as
--** described above, or until [sqlite3_step()] or [sqlite3_reset()] or
--** [sqlite3_finalize()] is called. ^The memory space used to hold strings
--** and BLOBs is freed automatically. Do <b>not</b> pass the pointers returned
--** [sqlite3_column_blob()], [sqlite3_column_text()], etc. into
--** [sqlite3_free()].
--**
--** ^(If a memory allocation error occurs during the evaluation of any
--** of these routines, a default value is returned. The default value
--** is either the integer 0, the floating point number 0.0, or a NULL
--** pointer. Subsequent calls to [sqlite3_errcode()] will return
--** [SQLITE_NOMEM].)^
--
function sqlite3_column_blob (arg1 : System.Address; arg2 : int) return System.Address; -- /usr/include/sqlite3.h:3060:24
pragma Import (C, sqlite3_column_blob, "sqlite3_column_blob");
function sqlite3_column_bytes (arg1 : System.Address; arg2 : int) return int; -- /usr/include/sqlite3.h:3061:16
pragma Import (C, sqlite3_column_bytes, "sqlite3_column_bytes");
function sqlite3_column_bytes16 (arg1 : System.Address; arg2 : int) return int; -- /usr/include/sqlite3.h:3062:16
pragma Import (C, sqlite3_column_bytes16, "sqlite3_column_bytes16");
function sqlite3_column_double (arg1 : System.Address; arg2 : int) return double; -- /usr/include/sqlite3.h:3063:19
pragma Import (C, sqlite3_column_double, "sqlite3_column_double");
function sqlite3_column_int (arg1 : System.Address; arg2 : int) return int; -- /usr/include/sqlite3.h:3064:16
pragma Import (C, sqlite3_column_int, "sqlite3_column_int");
function sqlite3_column_int64 (arg1 : System.Address; arg2 : int) return sqlite3_int64; -- /usr/include/sqlite3.h:3065:26
pragma Import (C, sqlite3_column_int64, "sqlite3_column_int64");
function sqlite3_column_text (arg1 : System.Address; arg2 : int) return Interfaces.C.Strings.chars_ptr; -- /usr/include/sqlite3.h:3066:33
pragma Import (C, sqlite3_column_text, "sqlite3_column_text");
function sqlite3_column_text16 (arg1 : System.Address; arg2 : int) return Interfaces.C.Strings.chars_ptr; -- /usr/include/sqlite3.h:3067:24
pragma Import (C, sqlite3_column_text16, "sqlite3_column_text16");
function sqlite3_column_type (arg1 : System.Address; arg2 : int) return int; -- /usr/include/sqlite3.h:3068:16
pragma Import (C, sqlite3_column_type, "sqlite3_column_type");
function sqlite3_column_value (arg1 : System.Address; arg2 : int) return System.Address; -- /usr/include/sqlite3.h:3069:27
pragma Import (C, sqlite3_column_value, "sqlite3_column_value");
--** CAPI3REF: Destroy A Prepared Statement Object
--**
--** ^The sqlite3_finalize() function is called to delete a [prepared statement].
--** ^If the statement was executed successfully or not executed at all, then
--** SQLITE_OK is returned. ^If execution of the statement failed then an
--** [error code] or [extended error code] is returned.
--**
--** ^This routine can be called at any point during the execution of the
--** [prepared statement]. ^If the virtual machine has not
--** completed execution when this routine is called, that is like
--** encountering an error or an [sqlite3_interrupt | interrupt].
--** ^Incomplete updates may be rolled back and transactions canceled,
--** depending on the circumstances, and the
--** [error code] returned will be [SQLITE_ABORT].
--
function sqlite3_finalize (arg1 : System.Address) return int; -- /usr/include/sqlite3.h:3087:16
pragma Import (C, sqlite3_finalize, "sqlite3_finalize");
--** CAPI3REF: Reset A Prepared Statement Object
--**
--** The sqlite3_reset() function is called to reset a [prepared statement]
--** object back to its initial state, ready to be re-executed.
--** ^Any SQL statement variables that had values bound to them using
--** the [sqlite3_bind_blob | sqlite3_bind_*() API] retain their values.
--** Use [sqlite3_clear_bindings()] to reset the bindings.
--**
--** ^The [sqlite3_reset(S)] interface resets the [prepared statement] S
--** back to the beginning of its program.
--**
--** ^If the most recent call to [sqlite3_step(S)] for the
--** [prepared statement] S returned [SQLITE_ROW] or [SQLITE_DONE],
--** or if [sqlite3_step(S)] has never before been called on S,
--** then [sqlite3_reset(S)] returns [SQLITE_OK].
--**
--** ^If the most recent call to [sqlite3_step(S)] for the
--** [prepared statement] S indicated an error, then
--** [sqlite3_reset(S)] returns an appropriate [error code].
--**
--** ^The [sqlite3_reset(S)] interface does not change the values
--** of any [sqlite3_bind_blob|bindings] on the [prepared statement] S.
--
function sqlite3_reset (arg1 : System.Address) return int; -- /usr/include/sqlite3.h:3113:16
pragma Import (C, sqlite3_reset, "sqlite3_reset");
--** CAPI3REF: Create Or Redefine SQL Functions
--** KEYWORDS: {function creation routines}
--** KEYWORDS: {application-defined SQL function}
--** KEYWORDS: {application-defined SQL functions}
--**
--** ^These two functions (collectively known as "function creation routines")
--** are used to add SQL functions or aggregates or to redefine the behavior
--** of existing SQL functions or aggregates. The only difference between the
--** two is that the second parameter, the name of the (scalar) function or
--** aggregate, is encoded in UTF-8 for sqlite3_create_function() and UTF-16
--** for sqlite3_create_function16().
--**
--** ^The first parameter is the [database connection] to which the SQL
--** function is to be added. ^If an application uses more than one database
--** connection then application-defined SQL functions must be added
--** to each database connection separately.
--**
--** The second parameter is the name of the SQL function to be created or
--** redefined. ^The length of the name is limited to 255 bytes, exclusive of
--** the zero-terminator. Note that the name length limit is in bytes, not
--** characters. ^Any attempt to create a function with a longer name
--** will result in [SQLITE_ERROR] being returned.
--**
--** ^The third parameter (nArg)
--** is the number of arguments that the SQL function or
--** aggregate takes. ^If this parameter is -1, then the SQL function or
--** aggregate may take any number of arguments between 0 and the limit
--** set by [sqlite3_limit]([SQLITE_LIMIT_FUNCTION_ARG]). If the third
--** parameter is less than -1 or greater than 127 then the behavior is
--** undefined.
--**
--** The fourth parameter, eTextRep, specifies what
--** [SQLITE_UTF8 | text encoding] this SQL function prefers for
--** its parameters. Any SQL function implementation should be able to work
--** work with UTF-8, UTF-16le, or UTF-16be. But some implementations may be
--** more efficient with one encoding than another. ^An application may
--** invoke sqlite3_create_function() or sqlite3_create_function16() multiple
--** times with the same function but with different values of eTextRep.
--** ^When multiple implementations of the same function are available, SQLite
--** will pick the one that involves the least amount of data conversion.
--** If there is only a single implementation which does not care what text
--** encoding is used, then the fourth argument should be [SQLITE_ANY].
--**
--** ^(The fifth parameter is an arbitrary pointer. The implementation of the
--** function can gain access to this pointer using [sqlite3_user_data()].)^
--**
--** The seventh, eighth and ninth parameters, xFunc, xStep and xFinal, are
--** pointers to C-language functions that implement the SQL function or
--** aggregate. ^A scalar SQL function requires an implementation of the xFunc
--** callback only; NULL pointers should be passed as the xStep and xFinal
--** parameters. ^An aggregate SQL function requires an implementation of xStep
--** and xFinal and NULL should be passed for xFunc. ^To delete an existing
--** SQL function or aggregate, pass NULL for all three function callbacks.
--**
--** ^It is permitted to register multiple implementations of the same
--** functions with the same name but with either differing numbers of
--** arguments or differing preferred text encodings. ^SQLite will use
--** the implementation that most closely matches the way in which the
--** SQL function is used. ^A function implementation with a non-negative
--** nArg parameter is a better match than a function implementation with
--** a negative nArg. ^A function where the preferred text encoding
--** matches the database encoding is a better
--** match than a function where the encoding is different.
--** ^A function where the encoding difference is between UTF16le and UTF16be
--** is a closer match than a function where the encoding difference is
--** between UTF8 and UTF16.
--**
--** ^Built-in functions may be overloaded by new application-defined functions.
--** ^The first application-defined function with a given name overrides all
--** built-in functions in the same [database connection] with the same name.
--** ^Subsequent application-defined functions of the same name only override
--** prior application-defined functions that are an exact match for the
--** number of parameters and preferred encoding.
--**
--** ^An application-defined function is permitted to call other
--** SQLite interfaces. However, such calls must not
--** close the database connection nor finalize or reset the prepared
--** statement in which the function is running.
--
function sqlite3_create_function
(arg1 : System.Address;
arg2 : Interfaces.C.Strings.chars_ptr;
arg3 : int;
arg4 : int;
arg5 : System.Address;
arg6 : access procedure
(arg1 : System.Address;
arg2 : int;
arg3 : System.Address);
arg7 : access procedure
(arg1 : System.Address;
arg2 : int;
arg3 : System.Address);
arg8 : access procedure (arg1 : System.Address)) return int; -- /usr/include/sqlite3.h:3195:16
pragma Import (C, sqlite3_create_function, "sqlite3_create_function");
function sqlite3_create_function16
(arg1 : System.Address;
arg2 : System.Address;
arg3 : int;
arg4 : int;
arg5 : System.Address;
arg6 : access procedure
(arg1 : System.Address;
arg2 : int;
arg3 : System.Address);
arg7 : access procedure
(arg1 : System.Address;
arg2 : int;
arg3 : System.Address);
arg8 : access procedure (arg1 : System.Address)) return int; -- /usr/include/sqlite3.h:3205:16
pragma Import (C, sqlite3_create_function16, "sqlite3_create_function16");
--** CAPI3REF: Text Encodings
--**
--** These constant define integer codes that represent the various
--** text encodings supported by SQLite.
--
--** CAPI3REF: Deprecated Functions
--** DEPRECATED
--**
--** These functions are [deprecated]. In order to maintain
--** backwards compatibility with older code, these functions continue
--** to be supported. However, new applications should avoid
--** the use of these functions. To help encourage people to avoid
--** using these functions, we are not going to tell you what they do.
--
function sqlite3_aggregate_count (arg1 : System.Address) return int; -- /usr/include/sqlite3.h:3240:34
pragma Import (C, sqlite3_aggregate_count, "sqlite3_aggregate_count");
function sqlite3_expired (arg1 : System.Address) return int; -- /usr/include/sqlite3.h:3241:34
pragma Import (C, sqlite3_expired, "sqlite3_expired");
function sqlite3_transfer_bindings (arg1 : System.Address; arg2 : System.Address) return int; -- /usr/include/sqlite3.h:3242:34
pragma Import (C, sqlite3_transfer_bindings, "sqlite3_transfer_bindings");
function sqlite3_global_recover return int; -- /usr/include/sqlite3.h:3243:34
pragma Import (C, sqlite3_global_recover, "sqlite3_global_recover");
procedure sqlite3_thread_cleanup; -- /usr/include/sqlite3.h:3244:35
pragma Import (C, sqlite3_thread_cleanup, "sqlite3_thread_cleanup");
function sqlite3_memory_alarm
(arg1 : access procedure
(arg1 : System.Address;
arg2 : sqlite3_int64;
arg3 : int);
arg2 : System.Address;
arg3 : sqlite3_int64) return int; -- /usr/include/sqlite3.h:3245:34
pragma Import (C, sqlite3_memory_alarm, "sqlite3_memory_alarm");
--** CAPI3REF: Obtaining SQL Function Parameter Values
--**
--** The C-language implementation of SQL functions and aggregates uses
--** this set of interface routines to access the parameter values on
--** the function or aggregate.
--**
--** The xFunc (for scalar functions) or xStep (for aggregates) parameters
--** to [sqlite3_create_function()] and [sqlite3_create_function16()]
--** define callbacks that implement the SQL functions and aggregates.
--** The 4th parameter to these callbacks is an array of pointers to
--** [protected sqlite3_value] objects. There is one [sqlite3_value] object for
--** each parameter to the SQL function. These routines are used to
--** extract values from the [sqlite3_value] objects.
--**
--** These routines work only with [protected sqlite3_value] objects.
--** Any attempt to use these routines on an [unprotected sqlite3_value]
--** object results in undefined behavior.
--**
--** ^These routines work just like the corresponding [column access functions]
--** except that these routines take a single [protected sqlite3_value] object
--** pointer instead of a [sqlite3_stmt*] pointer and an integer column number.
--**
--** ^The sqlite3_value_text16() interface extracts a UTF-16 string
--** in the native byte-order of the host machine. ^The
--** sqlite3_value_text16be() and sqlite3_value_text16le() interfaces
--** extract UTF-16 strings as big-endian and little-endian respectively.
--**
--** ^(The sqlite3_value_numeric_type() interface attempts to apply
--** numeric affinity to the value. This means that an attempt is
--** made to convert the value to an integer or floating point. If
--** such a conversion is possible without loss of information (in other
--** words, if the value is a string that looks like a number)
--** then the conversion is performed. Otherwise no conversion occurs.
--** The [SQLITE_INTEGER | datatype] after conversion is returned.)^
--**
--** Please pay particular attention to the fact that the pointer returned
--** from [sqlite3_value_blob()], [sqlite3_value_text()], or
--** [sqlite3_value_text16()] can be invalidated by a subsequent call to
--** [sqlite3_value_bytes()], [sqlite3_value_bytes16()], [sqlite3_value_text()],
--** or [sqlite3_value_text16()].
--**
--** These routines must be called from the same thread as
--** the SQL function that supplied the [sqlite3_value*] parameters.
--
function sqlite3_value_blob (arg1 : System.Address) return System.Address; -- /usr/include/sqlite3.h:3293:24
pragma Import (C, sqlite3_value_blob, "sqlite3_value_blob");
function sqlite3_value_bytes (arg1 : System.Address) return int; -- /usr/include/sqlite3.h:3294:16
pragma Import (C, sqlite3_value_bytes, "sqlite3_value_bytes");
function sqlite3_value_bytes16 (arg1 : System.Address) return int; -- /usr/include/sqlite3.h:3295:16
pragma Import (C, sqlite3_value_bytes16, "sqlite3_value_bytes16");
function sqlite3_value_double (arg1 : System.Address) return double; -- /usr/include/sqlite3.h:3296:19
pragma Import (C, sqlite3_value_double, "sqlite3_value_double");
function sqlite3_value_int (arg1 : System.Address) return int; -- /usr/include/sqlite3.h:3297:16
pragma Import (C, sqlite3_value_int, "sqlite3_value_int");
function sqlite3_value_int64 (arg1 : System.Address) return sqlite3_int64; -- /usr/include/sqlite3.h:3298:26
pragma Import (C, sqlite3_value_int64, "sqlite3_value_int64");
function sqlite3_value_text (arg1 : System.Address) return access unsigned_char; -- /usr/include/sqlite3.h:3299:33
pragma Import (C, sqlite3_value_text, "sqlite3_value_text");
function sqlite3_value_text16 (arg1 : System.Address) return System.Address; -- /usr/include/sqlite3.h:3300:24
pragma Import (C, sqlite3_value_text16, "sqlite3_value_text16");
function sqlite3_value_text16le (arg1 : System.Address) return System.Address; -- /usr/include/sqlite3.h:3301:24
pragma Import (C, sqlite3_value_text16le, "sqlite3_value_text16le");
function sqlite3_value_text16be (arg1 : System.Address) return System.Address; -- /usr/include/sqlite3.h:3302:24
pragma Import (C, sqlite3_value_text16be, "sqlite3_value_text16be");
function sqlite3_value_type (arg1 : System.Address) return int; -- /usr/include/sqlite3.h:3303:16
pragma Import (C, sqlite3_value_type, "sqlite3_value_type");
function sqlite3_value_numeric_type (arg1 : System.Address) return int; -- /usr/include/sqlite3.h:3304:16
pragma Import (C, sqlite3_value_numeric_type, "sqlite3_value_numeric_type");
--** CAPI3REF: Obtain Aggregate Function Context
--**
--** Implementions of aggregate SQL functions use this
--** routine to allocate memory for storing their state.
--**
--** ^The first time the sqlite3_aggregate_context(C,N) routine is called
--** for a particular aggregate function, SQLite
--** allocates N of memory, zeroes out that memory, and returns a pointer
--** to the new memory. ^On second and subsequent calls to
--** sqlite3_aggregate_context() for the same aggregate function instance,
--** the same buffer is returned. Sqlite3_aggregate_context() is normally
--** called once for each invocation of the xStep callback and then one
--** last time when the xFinal callback is invoked. ^(When no rows match
--** an aggregate query, the xStep() callback of the aggregate function
--** implementation is never called and xFinal() is called exactly once.
--** In those cases, sqlite3_aggregate_context() might be called for the
--** first time from within xFinal().)^
--**
--** ^The sqlite3_aggregate_context(C,N) routine returns a NULL pointer if N is
--** less than or equal to zero or if a memory allocate error occurs.
--**
--** ^(The amount of space allocated by sqlite3_aggregate_context(C,N) is
--** determined by the N parameter on first successful call. Changing the
--** value of N in subsequent call to sqlite3_aggregate_context() within
--** the same aggregate function instance will not resize the memory
--** allocation.)^
--**
--** ^SQLite automatically frees the memory allocated by
--** sqlite3_aggregate_context() when the aggregate query concludes.
--**
--** The first parameter must be a copy of the
--** [sqlite3_context | SQL function context] that is the first parameter
--** to the xStep or xFinal callback routine that implements the aggregate
--** function.
--**
--** This routine must be called from the same thread in which
--** the aggregate SQL function is running.
--
function sqlite3_aggregate_context (arg1 : System.Address; arg2 : int) return System.Address; -- /usr/include/sqlite3.h:3345:18
pragma Import (C, sqlite3_aggregate_context, "sqlite3_aggregate_context");
--** CAPI3REF: User Data For Functions
--**
--** ^The sqlite3_user_data() interface returns a copy of
--** the pointer that was the pUserData parameter (the 5th parameter)
--** of the [sqlite3_create_function()]
--** and [sqlite3_create_function16()] routines that originally
--** registered the application defined function.
--**
--** This routine must be called from the same thread in which
--** the application-defined function is running.
--
function sqlite3_user_data (arg1 : System.Address) return System.Address; -- /usr/include/sqlite3.h:3359:18
pragma Import (C, sqlite3_user_data, "sqlite3_user_data");
--** CAPI3REF: Database Connection For Functions
--**
--** ^The sqlite3_context_db_handle() interface returns a copy of
--** the pointer to the [database connection] (the 1st parameter)
--** of the [sqlite3_create_function()]
--** and [sqlite3_create_function16()] routines that originally
--** registered the application defined function.
--
function sqlite3_context_db_handle (arg1 : System.Address) return System.Address; -- /usr/include/sqlite3.h:3370:21
pragma Import (C, sqlite3_context_db_handle, "sqlite3_context_db_handle");
--** CAPI3REF: Function Auxiliary Data
--**
--** The following two functions may be used by scalar SQL functions to
--** associate metadata with argument values. If the same value is passed to
--** multiple invocations of the same SQL function during query execution, under
--** some circumstances the associated metadata may be preserved. This may
--** be used, for example, to add a regular-expression matching scalar
--** function. The compiled version of the regular expression is stored as
--** metadata associated with the SQL value passed as the regular expression
--** pattern. The compiled regular expression can be reused on multiple
--** invocations of the same function so that the original pattern string
--** does not need to be recompiled on each invocation.
--**
--** ^The sqlite3_get_auxdata() interface returns a pointer to the metadata
--** associated by the sqlite3_set_auxdata() function with the Nth argument
--** value to the application-defined function. ^If no metadata has been ever
--** been set for the Nth argument of the function, or if the corresponding
--** function parameter has changed since the meta-data was set,
--** then sqlite3_get_auxdata() returns a NULL pointer.
--**
--** ^The sqlite3_set_auxdata() interface saves the metadata
--** pointed to by its 3rd parameter as the metadata for the N-th
--** argument of the application-defined function. Subsequent
--** calls to sqlite3_get_auxdata() might return this data, if it has
--** not been destroyed.
--** ^If it is not NULL, SQLite will invoke the destructor
--** function given by the 4th parameter to sqlite3_set_auxdata() on
--** the metadata when the corresponding function parameter changes
--** or when the SQL statement completes, whichever comes first.
--**
--** SQLite is free to call the destructor and drop metadata on any
--** parameter of any function at any time. ^The only guarantee is that
--** the destructor will be called before the metadata is dropped.
--**
--** ^(In practice, metadata is preserved between function calls for
--** expressions that are constant at compile time. This includes literal
--** values and [parameters].)^
--**
--** These routines must be called from the same thread in which
--** the SQL function is running.
--
function sqlite3_get_auxdata (arg1 : System.Address; arg2 : int) return System.Address; -- /usr/include/sqlite3.h:3414:18
pragma Import (C, sqlite3_get_auxdata, "sqlite3_get_auxdata");
procedure sqlite3_set_auxdata
(arg1 : System.Address;
arg2 : int;
arg3 : System.Address;
arg4 : access procedure (arg1 : System.Address)); -- /usr/include/sqlite3.h:3415:17
pragma Import (C, sqlite3_set_auxdata, "sqlite3_set_auxdata");
--** CAPI3REF: Constants Defining Special Destructor Behavior
--**
--** These are special values for the destructor that is passed in as the
--** final argument to routines like [sqlite3_result_blob()]. ^If the destructor
--** argument is SQLITE_STATIC, it means that the content pointer is constant
--** and will never change. It does not need to be destroyed. ^The
--** SQLITE_TRANSIENT value means that the content will likely change in
--** the near future and that SQLite should make its own private copy of
--** the content before returning.
--**
--** The typedef is necessary to work around problems in certain
--** C++ compilers. See ticket #2191.
--
type sqlite3_destructor_type is access procedure (arg1 : System.Address); -- /usr/include/sqlite3.h:3432:16
--** CAPI3REF: Setting The Result Of An SQL Function
--**
--** These routines are used by the xFunc or xFinal callbacks that
--** implement SQL functions and aggregates. See
--** [sqlite3_create_function()] and [sqlite3_create_function16()]
--** for additional information.
--**
--** These functions work very much like the [parameter binding] family of
--** functions used to bind values to host parameters in prepared statements.
--** Refer to the [SQL parameter] documentation for additional information.
--**
--** ^The sqlite3_result_blob() interface sets the result from
--** an application-defined function to be the BLOB whose content is pointed
--** to by the second parameter and which is N bytes long where N is the
--** third parameter.
--**
--** ^The sqlite3_result_zeroblob() interfaces set the result of
--** the application-defined function to be a BLOB containing all zero
--** bytes and N bytes in size, where N is the value of the 2nd parameter.
--**
--** ^The sqlite3_result_double() interface sets the result from
--** an application-defined function to be a floating point value specified
--** by its 2nd argument.
--**
--** ^The sqlite3_result_error() and sqlite3_result_error16() functions
--** cause the implemented SQL function to throw an exception.
--** ^SQLite uses the string pointed to by the
--** 2nd parameter of sqlite3_result_error() or sqlite3_result_error16()
--** as the text of an error message. ^SQLite interprets the error
--** message string from sqlite3_result_error() as UTF-8. ^SQLite
--** interprets the string from sqlite3_result_error16() as UTF-16 in native
--** byte order. ^If the third parameter to sqlite3_result_error()
--** or sqlite3_result_error16() is negative then SQLite takes as the error
--** message all text up through the first zero character.
--** ^If the third parameter to sqlite3_result_error() or
--** sqlite3_result_error16() is non-negative then SQLite takes that many
--** bytes (not characters) from the 2nd parameter as the error message.
--** ^The sqlite3_result_error() and sqlite3_result_error16()
--** routines make a private copy of the error message text before
--** they return. Hence, the calling function can deallocate or
--** modify the text after they return without harm.
--** ^The sqlite3_result_error_code() function changes the error code
--** returned by SQLite as a result of an error in a function. ^By default,
--** the error code is SQLITE_ERROR. ^A subsequent call to sqlite3_result_error()
--** or sqlite3_result_error16() resets the error code to SQLITE_ERROR.
--**
--** ^The sqlite3_result_toobig() interface causes SQLite to throw an error
--** indicating that a string or BLOB is too long to represent.
--**
--** ^The sqlite3_result_nomem() interface causes SQLite to throw an error
--** indicating that a memory allocation failed.
--**
--** ^The sqlite3_result_int() interface sets the return value
--** of the application-defined function to be the 32-bit signed integer
--** value given in the 2nd argument.
--** ^The sqlite3_result_int64() interface sets the return value
--** of the application-defined function to be the 64-bit signed integer
--** value given in the 2nd argument.
--**
--** ^The sqlite3_result_null() interface sets the return value
--** of the application-defined function to be NULL.
--**
--** ^The sqlite3_result_text(), sqlite3_result_text16(),
--** sqlite3_result_text16le(), and sqlite3_result_text16be() interfaces
--** set the return value of the application-defined function to be
--** a text string which is represented as UTF-8, UTF-16 native byte order,
--** UTF-16 little endian, or UTF-16 big endian, respectively.
--** ^SQLite takes the text result from the application from
--** the 2nd parameter of the sqlite3_result_text* interfaces.
--** ^If the 3rd parameter to the sqlite3_result_text* interfaces
--** is negative, then SQLite takes result text from the 2nd parameter
--** through the first zero character.
--** ^If the 3rd parameter to the sqlite3_result_text* interfaces
--** is non-negative, then as many bytes (not characters) of the text
--** pointed to by the 2nd parameter are taken as the application-defined
--** function result.
--** ^If the 4th parameter to the sqlite3_result_text* interfaces
--** or sqlite3_result_blob is a non-NULL pointer, then SQLite calls that
--** function as the destructor on the text or BLOB result when it has
--** finished using that result.
--** ^If the 4th parameter to the sqlite3_result_text* interfaces or to
--** sqlite3_result_blob is the special constant SQLITE_STATIC, then SQLite
--** assumes that the text or BLOB result is in constant space and does not
--** copy the content of the parameter nor call a destructor on the content
--** when it has finished using that result.
--** ^If the 4th parameter to the sqlite3_result_text* interfaces
--** or sqlite3_result_blob is the special constant SQLITE_TRANSIENT
--** then SQLite makes a copy of the result into space obtained from
--** from [sqlite3_malloc()] before it returns.
--**
--** ^The sqlite3_result_value() interface sets the result of
--** the application-defined function to be a copy the
--** [unprotected sqlite3_value] object specified by the 2nd parameter. ^The
--** sqlite3_result_value() interface makes a copy of the [sqlite3_value]
--** so that the [sqlite3_value] specified in the parameter may change or
--** be deallocated after sqlite3_result_value() returns without harm.
--** ^A [protected sqlite3_value] object may always be used where an
--** [unprotected sqlite3_value] object is required, so either
--** kind of [sqlite3_value] object can be used with this interface.
--**
--** If these routines are called from within the different thread
--** than the one containing the application-defined function that received
--** the [sqlite3_context] pointer, the results are undefined.
--
procedure sqlite3_result_blob
(arg1 : System.Address;
arg2 : System.Address;
arg3 : int;
arg4 : access procedure (arg1 : System.Address)); -- /usr/include/sqlite3.h:3541:17
pragma Import (C, sqlite3_result_blob, "sqlite3_result_blob");
procedure sqlite3_result_double (arg1 : System.Address; arg2 : double); -- /usr/include/sqlite3.h:3542:17
pragma Import (C, sqlite3_result_double, "sqlite3_result_double");
procedure sqlite3_result_error
(arg1 : System.Address;
arg2 : Interfaces.C.Strings.chars_ptr;
arg3 : int); -- /usr/include/sqlite3.h:3543:17
pragma Import (C, sqlite3_result_error, "sqlite3_result_error");
procedure sqlite3_result_error16
(arg1 : System.Address;
arg2 : System.Address;
arg3 : int); -- /usr/include/sqlite3.h:3544:17
pragma Import (C, sqlite3_result_error16, "sqlite3_result_error16");
procedure sqlite3_result_error_toobig (arg1 : System.Address); -- /usr/include/sqlite3.h:3545:17
pragma Import (C, sqlite3_result_error_toobig, "sqlite3_result_error_toobig");
procedure sqlite3_result_error_nomem (arg1 : System.Address); -- /usr/include/sqlite3.h:3546:17
pragma Import (C, sqlite3_result_error_nomem, "sqlite3_result_error_nomem");
procedure sqlite3_result_error_code (arg1 : System.Address; arg2 : int); -- /usr/include/sqlite3.h:3547:17
pragma Import (C, sqlite3_result_error_code, "sqlite3_result_error_code");
procedure sqlite3_result_int (arg1 : System.Address; arg2 : int); -- /usr/include/sqlite3.h:3548:17
pragma Import (C, sqlite3_result_int, "sqlite3_result_int");
procedure sqlite3_result_int64 (arg1 : System.Address; arg2 : sqlite3_int64); -- /usr/include/sqlite3.h:3549:17
pragma Import (C, sqlite3_result_int64, "sqlite3_result_int64");
procedure sqlite3_result_null (arg1 : System.Address); -- /usr/include/sqlite3.h:3550:17
pragma Import (C, sqlite3_result_null, "sqlite3_result_null");
procedure sqlite3_result_text
(arg1 : System.Address;
arg2 : Interfaces.C.Strings.chars_ptr;
arg3 : int;
arg4 : access procedure (arg1 : System.Address)); -- /usr/include/sqlite3.h:3551:17
pragma Import (C, sqlite3_result_text, "sqlite3_result_text");
procedure sqlite3_result_text16
(arg1 : System.Address;
arg2 : System.Address;
arg3 : int;
arg4 : access procedure (arg1 : System.Address)); -- /usr/include/sqlite3.h:3552:17
pragma Import (C, sqlite3_result_text16, "sqlite3_result_text16");
procedure sqlite3_result_text16le
(arg1 : System.Address;
arg2 : System.Address;
arg3 : int;
arg4 : access procedure (arg1 : System.Address)); -- /usr/include/sqlite3.h:3553:17
pragma Import (C, sqlite3_result_text16le, "sqlite3_result_text16le");
procedure sqlite3_result_text16be
(arg1 : System.Address;
arg2 : System.Address;
arg3 : int;
arg4 : access procedure (arg1 : System.Address)); -- /usr/include/sqlite3.h:3554:17
pragma Import (C, sqlite3_result_text16be, "sqlite3_result_text16be");
procedure sqlite3_result_value (arg1 : System.Address; arg2 : System.Address); -- /usr/include/sqlite3.h:3555:17
pragma Import (C, sqlite3_result_value, "sqlite3_result_value");
procedure sqlite3_result_zeroblob (arg1 : System.Address; arg2 : int); -- /usr/include/sqlite3.h:3556:17
pragma Import (C, sqlite3_result_zeroblob, "sqlite3_result_zeroblob");
--** CAPI3REF: Define New Collating Sequences
--**
--** These functions are used to add new collation sequences to the
--** [database connection] specified as the first argument.
--**
--** ^The name of the new collation sequence is specified as a UTF-8 string
--** for sqlite3_create_collation() and sqlite3_create_collation_v2()
--** and a UTF-16 string for sqlite3_create_collation16(). ^In all cases
--** the name is passed as the second function argument.
--**
--** ^The third argument may be one of the constants [SQLITE_UTF8],
--** [SQLITE_UTF16LE], or [SQLITE_UTF16BE], indicating that the user-supplied
--** routine expects to be passed pointers to strings encoded using UTF-8,
--** UTF-16 little-endian, or UTF-16 big-endian, respectively. ^The
--** third argument might also be [SQLITE_UTF16] to indicate that the routine
--** expects pointers to be UTF-16 strings in the native byte order, or the
--** argument can be [SQLITE_UTF16_ALIGNED] if the
--** the routine expects pointers to 16-bit word aligned strings
--** of UTF-16 in the native byte order.
--**
--** A pointer to the user supplied routine must be passed as the fifth
--** argument. ^If it is NULL, this is the same as deleting the collation
--** sequence (so that SQLite cannot call it anymore).
--** ^Each time the application supplied function is invoked, it is passed
--** as its first parameter a copy of the void* passed as the fourth argument
--** to sqlite3_create_collation() or sqlite3_create_collation16().
--**
--** ^The remaining arguments to the application-supplied routine are two strings,
--** each represented by a (length, data) pair and encoded in the encoding
--** that was passed as the third argument when the collation sequence was
--** registered. The application defined collation routine should
--** return negative, zero or positive if the first string is less than,
--** equal to, or greater than the second string. i.e. (STRING1 - STRING2).
--**
--** ^The sqlite3_create_collation_v2() works like sqlite3_create_collation()
--** except that it takes an extra argument which is a destructor for
--** the collation. ^The destructor is called when the collation is
--** destroyed and is passed a copy of the fourth parameter void* pointer
--** of the sqlite3_create_collation_v2().
--** ^Collations are destroyed when they are overridden by later calls to the
--** collation creation functions or when the [database connection] is closed
--** using [sqlite3_close()].
--**
--** See also: [sqlite3_collation_needed()] and [sqlite3_collation_needed16()].
--
function sqlite3_create_collation
(arg1 : System.Address;
arg2 : Interfaces.C.Strings.chars_ptr;
arg3 : int;
arg4 : System.Address;
arg5 : access function
(arg1 : System.Address;
arg2 : int;
arg3 : System.Address;
arg4 : int;
arg5 : System.Address) return int) return int; -- /usr/include/sqlite3.h:3604:16
pragma Import (C, sqlite3_create_collation, "sqlite3_create_collation");
function sqlite3_create_collation_v2
(arg1 : System.Address;
arg2 : Interfaces.C.Strings.chars_ptr;
arg3 : int;
arg4 : System.Address;
arg5 : access function
(arg1 : System.Address;
arg2 : int;
arg3 : System.Address;
arg4 : int;
arg5 : System.Address) return int;
arg6 : access procedure (arg1 : System.Address)) return int; -- /usr/include/sqlite3.h:3611:16
pragma Import (C, sqlite3_create_collation_v2, "sqlite3_create_collation_v2");
function sqlite3_create_collation16
(arg1 : System.Address;
arg2 : System.Address;
arg3 : int;
arg4 : System.Address;
arg5 : access function
(arg1 : System.Address;
arg2 : int;
arg3 : System.Address;
arg4 : int;
arg5 : System.Address) return int) return int; -- /usr/include/sqlite3.h:3619:16
pragma Import (C, sqlite3_create_collation16, "sqlite3_create_collation16");
--** CAPI3REF: Collation Needed Callbacks
--**
--** ^To avoid having to register all collation sequences before a database
--** can be used, a single callback function may be registered with the
--** [database connection] to be invoked whenever an undefined collation
--** sequence is required.
--**
--** ^If the function is registered using the sqlite3_collation_needed() API,
--** then it is passed the names of undefined collation sequences as strings
--** encoded in UTF-8. ^If sqlite3_collation_needed16() is used,
--** the names are passed as UTF-16 in machine native byte order.
--** ^A call to either function replaces the existing collation-needed callback.
--**
--** ^(When the callback is invoked, the first argument passed is a copy
--** of the second argument to sqlite3_collation_needed() or
--** sqlite3_collation_needed16(). The second argument is the database
--** connection. The third argument is one of [SQLITE_UTF8], [SQLITE_UTF16BE],
--** or [SQLITE_UTF16LE], indicating the most desirable form of the collation
--** sequence function required. The fourth parameter is the name of the
--** required collation sequence.)^
--**
--** The callback function should register the desired collation using
--** [sqlite3_create_collation()], [sqlite3_create_collation16()], or
--** [sqlite3_create_collation_v2()].
--
function sqlite3_collation_needed
(arg1 : System.Address;
arg2 : System.Address;
arg3 : access procedure
(arg1 : System.Address;
arg2 : System.Address;
arg3 : int;
arg4 : Interfaces.C.Strings.chars_ptr)) return int; -- /usr/include/sqlite3.h:3653:16
pragma Import (C, sqlite3_collation_needed, "sqlite3_collation_needed");
function sqlite3_collation_needed16
(arg1 : System.Address;
arg2 : System.Address;
arg3 : access procedure
(arg1 : System.Address;
arg2 : System.Address;
arg3 : int;
arg4 : System.Address)) return int; -- /usr/include/sqlite3.h:3658:16
pragma Import (C, sqlite3_collation_needed16, "sqlite3_collation_needed16");
--** Specify the key for an encrypted database. This routine should be
--** called right after sqlite3_open().
--**
--** The code to implement this API is not available in the public release
--** of SQLite.
--
function sqlite3_key
(arg1 : System.Address;
arg2 : System.Address;
arg3 : int) return int; -- /usr/include/sqlite3.h:3671:16
pragma Import (C, sqlite3_key, "sqlite3_key");
-- Database to be rekeyed
-- The key
--** Change the key on an open database. If the current database is not
--** encrypted, this routine will encrypt it. If pNew==0 or nNew==0, the
--** database is decrypted.
--**
--** The code to implement this API is not available in the public release
--** of SQLite.
--
function sqlite3_rekey
(arg1 : System.Address;
arg2 : System.Address;
arg3 : int) return int; -- /usr/include/sqlite3.h:3684:16
pragma Import (C, sqlite3_rekey, "sqlite3_rekey");
-- Database to be rekeyed
-- The new key
--** CAPI3REF: Suspend Execution For A Short Time
--**
--** ^The sqlite3_sleep() function causes the current thread to suspend execution
--** for at least a number of milliseconds specified in its parameter.
--**
--** ^If the operating system does not support sleep requests with
--** millisecond time resolution, then the time will be rounded up to
--** the nearest second. ^The number of milliseconds of sleep actually
--** requested from the operating system is returned.
--**
--** ^SQLite implements this interface by calling the xSleep()
--** method of the default [sqlite3_vfs] object.
--
function sqlite3_sleep (arg1 : int) return int; -- /usr/include/sqlite3.h:3703:16
pragma Import (C, sqlite3_sleep, "sqlite3_sleep");
--** CAPI3REF: Name Of The Folder Holding Temporary Files
--**
--** ^(If this global variable is made to point to a string which is
--** the name of a folder (a.k.a. directory), then all temporary files
--** created by SQLite when using a built-in [sqlite3_vfs | VFS]
--** will be placed in that directory.)^ ^If this variable
--** is a NULL pointer, then SQLite performs a search for an appropriate
--** temporary file directory.
--**
--** It is not safe to read or modify this variable in more than one
--** thread at a time. It is not safe to read or modify this variable
--** if a [database connection] is being used at the same time in a separate
--** thread.
--** It is intended that this variable be set once
--** as part of process initialization and before any SQLite interface
--** routines have been called and that this variable remain unchanged
--** thereafter.
--**
--** ^The [temp_store_directory pragma] may modify this variable and cause
--** it to point to memory obtained from [sqlite3_malloc]. ^Furthermore,
--** the [temp_store_directory pragma] always assumes that any string
--** that this variable points to is held in memory obtained from
--** [sqlite3_malloc] and the pragma may attempt to free that memory
--** using [sqlite3_free].
--** Hence, if this variable is modified directly, either it should be
--** made NULL or made to point to memory obtained from [sqlite3_malloc]
--** or else the use of the [temp_store_directory pragma] should be avoided.
--
sqlite3_temp_directory : Interfaces.C.Strings.chars_ptr; -- /usr/include/sqlite3.h:3734:32
pragma Import (C, sqlite3_temp_directory, "sqlite3_temp_directory");
--** CAPI3REF: Test For Auto-Commit Mode
--** KEYWORDS: {autocommit mode}
--**
--** ^The sqlite3_get_autocommit() interface returns non-zero or
--** zero if the given database connection is or is not in autocommit mode,
--** respectively. ^Autocommit mode is on by default.
--** ^Autocommit mode is disabled by a [BEGIN] statement.
--** ^Autocommit mode is re-enabled by a [COMMIT] or [ROLLBACK].
--**
--** If certain kinds of errors occur on a statement within a multi-statement
--** transaction (errors including [SQLITE_FULL], [SQLITE_IOERR],
--** [SQLITE_NOMEM], [SQLITE_BUSY], and [SQLITE_INTERRUPT]) then the
--** transaction might be rolled back automatically. The only way to
--** find out whether SQLite automatically rolled back the transaction after
--** an error is to use this function.
--**
--** If another thread changes the autocommit status of the database
--** connection while this routine is running, then the return value
--** is undefined.
--
function sqlite3_get_autocommit (arg1 : System.Address) return int; -- /usr/include/sqlite3.h:3757:16
pragma Import (C, sqlite3_get_autocommit, "sqlite3_get_autocommit");
--** CAPI3REF: Find The Database Handle Of A Prepared Statement
--**
--** ^The sqlite3_db_handle interface returns the [database connection] handle
--** to which a [prepared statement] belongs. ^The [database connection]
--** returned by sqlite3_db_handle is the same [database connection]
--** that was the first argument
--** to the [sqlite3_prepare_v2()] call (or its variants) that was used to
--** create the statement in the first place.
--
function sqlite3_db_handle (arg1 : System.Address) return System.Address; -- /usr/include/sqlite3.h:3769:21
pragma Import (C, sqlite3_db_handle, "sqlite3_db_handle");
--** CAPI3REF: Find the next prepared statement
--**
--** ^This interface returns a pointer to the next [prepared statement] after
--** pStmt associated with the [database connection] pDb. ^If pStmt is NULL
--** then this interface returns a pointer to the first prepared statement
--** associated with the database connection pDb. ^If no prepared statement
--** satisfies the conditions of this routine, it returns NULL.
--**
--** The [database connection] pointer D in a call to
--** [sqlite3_next_stmt(D,S)] must refer to an open database
--** connection and in particular must not be a NULL pointer.
--
function sqlite3_next_stmt (arg1 : System.Address; arg2 : System.Address) return System.Address; -- /usr/include/sqlite3.h:3784:26
pragma Import (C, sqlite3_next_stmt, "sqlite3_next_stmt");
--** CAPI3REF: Commit And Rollback Notification Callbacks
--**
--** ^The sqlite3_commit_hook() interface registers a callback
--** function to be invoked whenever a transaction is [COMMIT | committed].
--** ^Any callback set by a previous call to sqlite3_commit_hook()
--** for the same database connection is overridden.
--** ^The sqlite3_rollback_hook() interface registers a callback
--** function to be invoked whenever a transaction is [ROLLBACK | rolled back].
--** ^Any callback set by a previous call to sqlite3_rollback_hook()
--** for the same database connection is overridden.
--** ^The pArg argument is passed through to the callback.
--** ^If the callback on a commit hook function returns non-zero,
--** then the commit is converted into a rollback.
--**
--** ^The sqlite3_commit_hook(D,C,P) and sqlite3_rollback_hook(D,C,P) functions
--** return the P argument from the previous call of the same function
--** on the same [database connection] D, or NULL for
--** the first call for each function on D.
--**
--** The callback implementation must not do anything that will modify
--** the database connection that invoked the callback. Any actions
--** to modify the database connection must be deferred until after the
--** completion of the [sqlite3_step()] call that triggered the commit
--** or rollback hook in the first place.
--** Note that [sqlite3_prepare_v2()] and [sqlite3_step()] both modify their
--** database connections for the meaning of "modify" in this paragraph.
--**
--** ^Registering a NULL function disables the callback.
--**
--** ^When the commit hook callback routine returns zero, the [COMMIT]
--** operation is allowed to continue normally. ^If the commit hook
--** returns non-zero, then the [COMMIT] is converted into a [ROLLBACK].
--** ^The rollback hook is invoked on a rollback that results from a commit
--** hook returning non-zero, just as it would be with any other rollback.
--**
--** ^For the purposes of this API, a transaction is said to have been
--** rolled back if an explicit "ROLLBACK" statement is executed, or
--** an error or constraint causes an implicit rollback to occur.
--** ^The rollback callback is not invoked if a transaction is
--** automatically rolled back because the database connection is closed.
--** ^The rollback callback is not invoked if a transaction is
--** rolled back because a commit callback returned non-zero.
--**
--** See also the [sqlite3_update_hook()] interface.
--
function sqlite3_commit_hook
(arg1 : System.Address;
arg2 : access function (arg1 : System.Address) return int;
arg3 : System.Address) return System.Address; -- /usr/include/sqlite3.h:3832:18
pragma Import (C, sqlite3_commit_hook, "sqlite3_commit_hook");
function sqlite3_rollback_hook
(arg1 : System.Address;
arg2 : access procedure (arg1 : System.Address);
arg3 : System.Address) return System.Address; -- /usr/include/sqlite3.h:3833:18
pragma Import (C, sqlite3_rollback_hook, "sqlite3_rollback_hook");
--** CAPI3REF: Data Change Notification Callbacks
--**
--** ^The sqlite3_update_hook() interface registers a callback function
--** with the [database connection] identified by the first argument
--** to be invoked whenever a row is updated, inserted or deleted.
--** ^Any callback set by a previous call to this function
--** for the same database connection is overridden.
--**
--** ^The second argument is a pointer to the function to invoke when a
--** row is updated, inserted or deleted.
--** ^The first argument to the callback is a copy of the third argument
--** to sqlite3_update_hook().
--** ^The second callback argument is one of [SQLITE_INSERT], [SQLITE_DELETE],
--** or [SQLITE_UPDATE], depending on the operation that caused the callback
--** to be invoked.
--** ^The third and fourth arguments to the callback contain pointers to the
--** database and table name containing the affected row.
--** ^The final callback parameter is the [rowid] of the row.
--** ^In the case of an update, this is the [rowid] after the update takes place.
--**
--** ^(The update hook is not invoked when internal system tables are
--** modified (i.e. sqlite_master and sqlite_sequence).)^
--**
--** ^In the current implementation, the update hook
--** is not invoked when duplication rows are deleted because of an
--** [ON CONFLICT | ON CONFLICT REPLACE] clause. ^Nor is the update hook
--** invoked when rows are deleted using the [truncate optimization].
--** The exceptions defined in this paragraph might change in a future
--** release of SQLite.
--**
--** The update hook implementation must not do anything that will modify
--** the database connection that invoked the update hook. Any actions
--** to modify the database connection must be deferred until after the
--** completion of the [sqlite3_step()] call that triggered the update hook.
--** Note that [sqlite3_prepare_v2()] and [sqlite3_step()] both modify their
--** database connections for the meaning of "modify" in this paragraph.
--**
--** ^The sqlite3_update_hook(D,C,P) function
--** returns the P argument from the previous call
--** on the same [database connection] D, or NULL for
--** the first call on D.
--**
--** See also the [sqlite3_commit_hook()] and [sqlite3_rollback_hook()]
--** interfaces.
--
function sqlite3_update_hook
(arg1 : System.Address;
arg2 : access procedure
(arg1 : System.Address;
arg2 : int;
arg3 : Interfaces.C.Strings.chars_ptr;
arg4 : Interfaces.C.Strings.chars_ptr;
arg5 : sqlite3_int64);
arg3 : System.Address) return System.Address; -- /usr/include/sqlite3.h:3881:18
pragma Import (C, sqlite3_update_hook, "sqlite3_update_hook");
--** CAPI3REF: Enable Or Disable Shared Pager Cache
--** KEYWORDS: {shared cache}
--**
--** ^(This routine enables or disables the sharing of the database cache
--** and schema data structures between [database connection | connections]
--** to the same database. Sharing is enabled if the argument is true
--** and disabled if the argument is false.)^
--**
--** ^Cache sharing is enabled and disabled for an entire process.
--** This is a change as of SQLite version 3.5.0. In prior versions of SQLite,
--** sharing was enabled or disabled for each thread separately.
--**
--** ^(The cache sharing mode set by this interface effects all subsequent
--** calls to [sqlite3_open()], [sqlite3_open_v2()], and [sqlite3_open16()].
--** Existing database connections continue use the sharing mode
--** that was in effect at the time they were opened.)^
--**
--** ^(This routine returns [SQLITE_OK] if shared cache was enabled or disabled
--** successfully. An [error code] is returned otherwise.)^
--**
--** ^Shared cache is disabled by default. But this might change in
--** future releases of SQLite. Applications that care about shared
--** cache setting should set it explicitly.
--**
--** See Also: [SQLite Shared-Cache Mode]
--
function sqlite3_enable_shared_cache (arg1 : int) return int; -- /usr/include/sqlite3.h:3914:16
pragma Import (C, sqlite3_enable_shared_cache, "sqlite3_enable_shared_cache");
--** CAPI3REF: Attempt To Free Heap Memory
--**
--** ^The sqlite3_release_memory() interface attempts to free N bytes
--** of heap memory by deallocating non-essential memory allocations
--** held by the database library. Memory used to cache database
--** pages to improve performance is an example of non-essential memory.
--** ^sqlite3_release_memory() returns the number of bytes actually freed,
--** which might be more or less than the amount requested.
--
function sqlite3_release_memory (arg1 : int) return int; -- /usr/include/sqlite3.h:3926:16
pragma Import (C, sqlite3_release_memory, "sqlite3_release_memory");
--** CAPI3REF: Impose A Limit On Heap Size
--**
--** ^The sqlite3_soft_heap_limit() interface places a "soft" limit
--** on the amount of heap memory that may be allocated by SQLite.
--** ^If an internal allocation is requested that would exceed the
--** soft heap limit, [sqlite3_release_memory()] is invoked one or
--** more times to free up some space before the allocation is performed.
--**
--** ^The limit is called "soft" because if [sqlite3_release_memory()]
--** cannot free sufficient memory to prevent the limit from being exceeded,
--** the memory is allocated anyway and the current operation proceeds.
--**
--** ^A negative or zero value for N means that there is no soft heap limit and
--** [sqlite3_release_memory()] will only be called when memory is exhausted.
--** ^The default value for the soft heap limit is zero.
--**
--** ^(SQLite makes a best effort to honor the soft heap limit.
--** But if the soft heap limit cannot be honored, execution will
--** continue without error or notification.)^ This is why the limit is
--** called a "soft" limit. It is advisory only.
--**
--** Prior to SQLite version 3.5.0, this routine only constrained the memory
--** allocated by a single thread - the same thread in which this routine
--** runs. Beginning with SQLite version 3.5.0, the soft heap limit is
--** applied to all threads. The value specified for the soft heap limit
--** is an upper bound on the total memory allocation for all threads. In
--** version 3.5.0 there is no mechanism for limiting the heap usage for
--** individual threads.
--
procedure sqlite3_soft_heap_limit (arg1 : int); -- /usr/include/sqlite3.h:3958:17
pragma Import (C, sqlite3_soft_heap_limit, "sqlite3_soft_heap_limit");
--** CAPI3REF: Extract Metadata About A Column Of A Table
--**
--** ^This routine returns metadata about a specific column of a specific
--** database table accessible using the [database connection] handle
--** passed as the first function argument.
--**
--** ^The column is identified by the second, third and fourth parameters to
--** this function. ^The second parameter is either the name of the database
--** (i.e. "main", "temp", or an attached database) containing the specified
--** table or NULL. ^If it is NULL, then all attached databases are searched
--** for the table using the same algorithm used by the database engine to
--** resolve unqualified table references.
--**
--** ^The third and fourth parameters to this function are the table and column
--** name of the desired column, respectively. Neither of these parameters
--** may be NULL.
--**
--** ^Metadata is returned by writing to the memory locations passed as the 5th
--** and subsequent parameters to this function. ^Any of these arguments may be
--** NULL, in which case the corresponding element of metadata is omitted.
--**
--** ^(<blockquote>
--** <table border="1">
--** <tr><th> Parameter <th> Output<br>Type <th> Description
--**
--** <tr><td> 5th <td> const char* <td> Data type
--** <tr><td> 6th <td> const char* <td> Name of default collation sequence
--** <tr><td> 7th <td> int <td> True if column has a NOT NULL constraint
--** <tr><td> 8th <td> int <td> True if column is part of the PRIMARY KEY
--** <tr><td> 9th <td> int <td> True if column is [AUTOINCREMENT]
--** </table>
--** </blockquote>)^
--**
--** ^The memory pointed to by the character pointers returned for the
--** declaration type and collation sequence is valid only until the next
--** call to any SQLite API function.
--**
--** ^If the specified table is actually a view, an [error code] is returned.
--**
--** ^If the specified column is "rowid", "oid" or "_rowid_" and an
--** [INTEGER PRIMARY KEY] column has been explicitly declared, then the output
--** parameters are set for the explicitly declared column. ^(If there is no
--** explicitly declared [INTEGER PRIMARY KEY] column, then the output
--** parameters are set as follows:
--**
--** <pre>
--** data type: "INTEGER"
--** collation sequence: "BINARY"
--** not null: 0
--** primary key: 1
--** auto increment: 0
--** </pre>)^
--**
--** ^(This function may load one or more schemas from database files. If an
--** error occurs during this process, or if the requested table or column
--** cannot be found, an [error code] is returned and an error message left
--** in the [database connection] (to be retrieved using sqlite3_errmsg()).)^
--**
--** ^This API is only available if the library was compiled with the
--** [SQLITE_ENABLE_COLUMN_METADATA] C-preprocessor symbol defined.
--
function sqlite3_table_column_metadata
(arg1 : System.Address;
arg2 : Interfaces.C.Strings.chars_ptr;
arg3 : Interfaces.C.Strings.chars_ptr;
arg4 : Interfaces.C.Strings.chars_ptr;
arg5 : System.Address;
arg6 : System.Address;
arg7 : access int;
arg8 : access int;
arg9 : access int) return int; -- /usr/include/sqlite3.h:4022:16
pragma Import (C, sqlite3_table_column_metadata, "sqlite3_table_column_metadata");
-- Connection handle
-- Database name or NULL
-- Table name
-- Column name
-- OUTPUT: Declared data type
-- OUTPUT: Collation sequence name
-- OUTPUT: True if NOT NULL constraint exists
-- OUTPUT: True if column part of PK
-- OUTPUT: True if column is auto-increment
--** CAPI3REF: Load An Extension
--**
--** ^This interface loads an SQLite extension library from the named file.
--**
--** ^The sqlite3_load_extension() interface attempts to load an
--** SQLite extension library contained in the file zFile.
--**
--** ^The entry point is zProc.
--** ^zProc may be 0, in which case the name of the entry point
--** defaults to "sqlite3_extension_init".
--** ^The sqlite3_load_extension() interface returns
--** [SQLITE_OK] on success and [SQLITE_ERROR] if something goes wrong.
--** ^If an error occurs and pzErrMsg is not 0, then the
--** [sqlite3_load_extension()] interface shall attempt to
--** fill *pzErrMsg with error message text stored in memory
--** obtained from [sqlite3_malloc()]. The calling function
--** should free this memory by calling [sqlite3_free()].
--**
--** ^Extension loading must be enabled using
--** [sqlite3_enable_load_extension()] prior to calling this API,
--** otherwise an error will be returned.
--**
--** See also the [load_extension() SQL function].
--
function sqlite3_load_extension
(arg1 : System.Address;
arg2 : Interfaces.C.Strings.chars_ptr;
arg3 : Interfaces.C.Strings.chars_ptr;
arg4 : System.Address) return int; -- /usr/include/sqlite3.h:4059:16
pragma Import (C, sqlite3_load_extension, "sqlite3_load_extension");
-- Load the extension into this database connection
-- Name of the shared library containing extension
-- Entry point. Derived from zFile if 0
-- Put error message here if not 0
--** CAPI3REF: Enable Or Disable Extension Loading
--**
--** ^So as not to open security holes in older applications that are
--** unprepared to deal with extension loading, and as a means of disabling
--** extension loading while evaluating user-entered SQL, the following API
--** is provided to turn the [sqlite3_load_extension()] mechanism on and off.
--**
--** ^Extension loading is off by default. See ticket #1863.
--** ^Call the sqlite3_enable_load_extension() routine with onoff==1
--** to turn extension loading on and call it with onoff==0 to turn
--** it back off again.
--
function sqlite3_enable_load_extension (arg1 : System.Address; arg2 : int) return int; -- /usr/include/sqlite3.h:4079:16
pragma Import (C, sqlite3_enable_load_extension, "sqlite3_enable_load_extension");
--** CAPI3REF: Automatically Load An Extensions
--**
--** ^This API can be invoked at program startup in order to register
--** one or more statically linked extensions that will be available
--** to all new [database connections].
--**
--** ^(This routine stores a pointer to the extension entry point
--** in an array that is obtained from [sqlite3_malloc()]. That memory
--** is deallocated by [sqlite3_reset_auto_extension()].)^
--**
--** ^This function registers an extension entry point that is
--** automatically invoked whenever a new [database connection]
--** is opened using [sqlite3_open()], [sqlite3_open16()],
--** or [sqlite3_open_v2()].
--** ^Duplicate extensions are detected so calling this routine
--** multiple times with the same extension is harmless.
--** ^Automatic extensions apply across all threads.
--
function sqlite3_auto_extension (arg1 : access procedure) return int; -- /usr/include/sqlite3.h:4100:16
pragma Import (C, sqlite3_auto_extension, "sqlite3_auto_extension");
--** CAPI3REF: Reset Automatic Extension Loading
--**
--** ^(This function disables all previously registered automatic
--** extensions. It undoes the effect of all prior
--** [sqlite3_auto_extension()] calls.)^
--**
--** ^This function disables automatic extensions in all threads.
--
procedure sqlite3_reset_auto_extension; -- /usr/include/sqlite3.h:4111:17
pragma Import (C, sqlite3_reset_auto_extension, "sqlite3_reset_auto_extension");
--** CAPI3REF: A Handle To An Open BLOB
--** KEYWORDS: {BLOB handle} {BLOB handles}
--**
--** An instance of this object represents an open BLOB on which
--** [sqlite3_blob_open | incremental BLOB I/O] can be performed.
--** ^Objects of this type are created by [sqlite3_blob_open()]
--** and destroyed by [sqlite3_blob_close()].
--** ^The [sqlite3_blob_read()] and [sqlite3_blob_write()] interfaces
--** can be used to read or write small subsections of the BLOB.
--** ^The [sqlite3_blob_bytes()] interface returns the size of the BLOB in bytes.
--
-- skipped empty struct sqlite3_blob
--** CAPI3REF: Open A BLOB For Incremental I/O
--**
--** ^(This interfaces opens a [BLOB handle | handle] to the BLOB located
--** in row iRow, column zColumn, table zTable in database zDb;
--** in other words, the same BLOB that would be selected by:
--**
--** <pre>
--** SELECT zColumn FROM zDb.zTable WHERE [rowid] = iRow;
--** </pre>)^
--**
--** ^If the flags parameter is non-zero, then the BLOB is opened for read
--** and write access. ^If it is zero, the BLOB is opened for read access.
--** ^It is not possible to open a column that is part of an index or primary
--** key for writing. ^If [foreign key constraints] are enabled, it is
--** not possible to open a column that is part of a [child key] for writing.
--**
--** ^Note that the database name is not the filename that contains
--** the database but rather the symbolic name of the database that
--** appears after the AS keyword when the database is connected using [ATTACH].
--** ^For the main database file, the database name is "main".
--** ^For TEMP tables, the database name is "temp".
--**
--** ^(On success, [SQLITE_OK] is returned and the new [BLOB handle] is written
--** to *ppBlob. Otherwise an [error code] is returned and *ppBlob is set
--** to be a null pointer.)^
--** ^This function sets the [database connection] error code and message
--** accessible via [sqlite3_errcode()] and [sqlite3_errmsg()] and related
--** functions. ^Note that the *ppBlob variable is always initialized in a
--** way that makes it safe to invoke [sqlite3_blob_close()] on *ppBlob
--** regardless of the success or failure of this routine.
--**
--** ^(If the row that a BLOB handle points to is modified by an
--** [UPDATE], [DELETE], or by [ON CONFLICT] side-effects
--** then the BLOB handle is marked as "expired".
--** This is true if any column of the row is changed, even a column
--** other than the one the BLOB handle is open on.)^
--** ^Calls to [sqlite3_blob_read()] and [sqlite3_blob_write()] for
--** a expired BLOB handle fail with an return code of [SQLITE_ABORT].
--** ^(Changes written into a BLOB prior to the BLOB expiring are not
--** rolled back by the expiration of the BLOB. Such changes will eventually
--** commit if the transaction continues to completion.)^
--**
--** ^Use the [sqlite3_blob_bytes()] interface to determine the size of
--** the opened blob. ^The size of a blob may not be changed by this
--** interface. Use the [UPDATE] SQL command to change the size of a
--** blob.
--**
--** ^The [sqlite3_bind_zeroblob()] and [sqlite3_result_zeroblob()] interfaces
--** and the built-in [zeroblob] SQL function can be used, if desired,
--** to create an empty, zero-filled blob in which to read or write using
--** this interface.
--**
--** To avoid a resource leak, every open [BLOB handle] should eventually
--** be released by a call to [sqlite3_blob_close()].
--
function sqlite3_blob_open
(arg1 : System.Address;
arg2 : Interfaces.C.Strings.chars_ptr;
arg3 : Interfaces.C.Strings.chars_ptr;
arg4 : Interfaces.C.Strings.chars_ptr;
arg5 : sqlite3_int64;
arg6 : int;
arg7 : System.Address) return int; -- /usr/include/sqlite3.h:4461:16
pragma Import (C, sqlite3_blob_open, "sqlite3_blob_open");
--** CAPI3REF: Close A BLOB Handle
--**
--** ^Closes an open [BLOB handle].
--**
--** ^Closing a BLOB shall cause the current transaction to commit
--** if there are no other BLOBs, no pending prepared statements, and the
--** database connection is in [autocommit mode].
--** ^If any writes were made to the BLOB, they might be held in cache
--** until the close operation if they will fit.
--**
--** ^(Closing the BLOB often forces the changes
--** out to disk and so if any I/O errors occur, they will likely occur
--** at the time when the BLOB is closed. Any errors that occur during
--** closing are reported as a non-zero return value.)^
--**
--** ^(The BLOB is closed unconditionally. Even if this routine returns
--** an error code, the BLOB is still closed.)^
--**
--** ^Calling this routine with a null pointer (such as would be returned
--** by a failed call to [sqlite3_blob_open()]) is a harmless no-op.
--
function sqlite3_blob_close (arg1 : System.Address) return int; -- /usr/include/sqlite3.h:4493:16
pragma Import (C, sqlite3_blob_close, "sqlite3_blob_close");
--** CAPI3REF: Return The Size Of An Open BLOB
--**
--** ^Returns the size in bytes of the BLOB accessible via the
--** successfully opened [BLOB handle] in its only argument. ^The
--** incremental blob I/O routines can only read or overwriting existing
--** blob content; they cannot change the size of a blob.
--**
--** This routine only works on a [BLOB handle] which has been created
--** by a prior successful call to [sqlite3_blob_open()] and which has not
--** been closed by [sqlite3_blob_close()]. Passing any other pointer in
--** to this routine results in undefined and probably undesirable behavior.
--
function sqlite3_blob_bytes (arg1 : System.Address) return int; -- /usr/include/sqlite3.h:4508:16
pragma Import (C, sqlite3_blob_bytes, "sqlite3_blob_bytes");
--** CAPI3REF: Read Data From A BLOB Incrementally
--**
--** ^(This function is used to read data from an open [BLOB handle] into a
--** caller-supplied buffer. N bytes of data are copied into buffer Z
--** from the open BLOB, starting at offset iOffset.)^
--**
--** ^If offset iOffset is less than N bytes from the end of the BLOB,
--** [SQLITE_ERROR] is returned and no data is read. ^If N or iOffset is
--** less than zero, [SQLITE_ERROR] is returned and no data is read.
--** ^The size of the blob (and hence the maximum value of N+iOffset)
--** can be determined using the [sqlite3_blob_bytes()] interface.
--**
--** ^An attempt to read from an expired [BLOB handle] fails with an
--** error code of [SQLITE_ABORT].
--**
--** ^(On success, sqlite3_blob_read() returns SQLITE_OK.
--** Otherwise, an [error code] or an [extended error code] is returned.)^
--**
--** This routine only works on a [BLOB handle] which has been created
--** by a prior successful call to [sqlite3_blob_open()] and which has not
--** been closed by [sqlite3_blob_close()]. Passing any other pointer in
--** to this routine results in undefined and probably undesirable behavior.
--**
--** See also: [sqlite3_blob_write()].
--
function sqlite3_blob_read
(arg1 : System.Address;
arg2 : System.Address;
arg3 : int;
arg4 : int) return int; -- /usr/include/sqlite3.h:4536:16
pragma Import (C, sqlite3_blob_read, "sqlite3_blob_read");
--** CAPI3REF: Write Data Into A BLOB Incrementally
--**
--** ^This function is used to write data into an open [BLOB handle] from a
--** caller-supplied buffer. ^N bytes of data are copied from the buffer Z
--** into the open BLOB, starting at offset iOffset.
--**
--** ^If the [BLOB handle] passed as the first argument was not opened for
--** writing (the flags parameter to [sqlite3_blob_open()] was zero),
--** this function returns [SQLITE_READONLY].
--**
--** ^This function may only modify the contents of the BLOB; it is
--** not possible to increase the size of a BLOB using this API.
--** ^If offset iOffset is less than N bytes from the end of the BLOB,
--** [SQLITE_ERROR] is returned and no data is written. ^If N is
--** less than zero [SQLITE_ERROR] is returned and no data is written.
--** The size of the BLOB (and hence the maximum value of N+iOffset)
--** can be determined using the [sqlite3_blob_bytes()] interface.
--**
--** ^An attempt to write to an expired [BLOB handle] fails with an
--** error code of [SQLITE_ABORT]. ^Writes to the BLOB that occurred
--** before the [BLOB handle] expired are not rolled back by the
--** expiration of the handle, though of course those changes might
--** have been overwritten by the statement that expired the BLOB handle
--** or by other independent statements.
--**
--** ^(On success, sqlite3_blob_write() returns SQLITE_OK.
--** Otherwise, an [error code] or an [extended error code] is returned.)^
--**
--** This routine only works on a [BLOB handle] which has been created
--** by a prior successful call to [sqlite3_blob_open()] and which has not
--** been closed by [sqlite3_blob_close()]. Passing any other pointer in
--** to this routine results in undefined and probably undesirable behavior.
--**
--** See also: [sqlite3_blob_read()].
--
function sqlite3_blob_write
(arg1 : System.Address;
arg2 : System.Address;
arg3 : int;
arg4 : int) return int; -- /usr/include/sqlite3.h:4574:16
pragma Import (C, sqlite3_blob_write, "sqlite3_blob_write");
--** CAPI3REF: Virtual File System Objects
--**
--** A virtual filesystem (VFS) is an [sqlite3_vfs] object
--** that SQLite uses to interact
--** with the underlying operating system. Most SQLite builds come with a
--** single default VFS that is appropriate for the host computer.
--** New VFSes can be registered and existing VFSes can be unregistered.
--** The following interfaces are provided.
--**
--** ^The sqlite3_vfs_find() interface returns a pointer to a VFS given its name.
--** ^Names are case sensitive.
--** ^Names are zero-terminated UTF-8 strings.
--** ^If there is no match, a NULL pointer is returned.
--** ^If zVfsName is NULL then the default VFS is returned.
--**
--** ^New VFSes are registered with sqlite3_vfs_register().
--** ^Each new VFS becomes the default VFS if the makeDflt flag is set.
--** ^The same VFS can be registered multiple times without injury.
--** ^To make an existing VFS into the default VFS, register it again
--** with the makeDflt flag set. If two different VFSes with the
--** same name are registered, the behavior is undefined. If a
--** VFS is registered with a name that is NULL or an empty string,
--** then the behavior is undefined.
--**
--** ^Unregister a VFS with the sqlite3_vfs_unregister() interface.
--** ^(If the default VFS is unregistered, another VFS is chosen as
--** the default. The choice for the new VFS is arbitrary.)^
--
function sqlite3_vfs_find (arg1 : Interfaces.C.Strings.chars_ptr) return access sqlite3_vfs; -- /usr/include/sqlite3.h:4605:25
pragma Import (C, sqlite3_vfs_find, "sqlite3_vfs_find");
function sqlite3_vfs_register (arg1 : access sqlite3_vfs; arg2 : int) return int; -- /usr/include/sqlite3.h:4606:16
pragma Import (C, sqlite3_vfs_register, "sqlite3_vfs_register");
function sqlite3_vfs_unregister (arg1 : access sqlite3_vfs) return int; -- /usr/include/sqlite3.h:4607:16
pragma Import (C, sqlite3_vfs_unregister, "sqlite3_vfs_unregister");
--** CAPI3REF: Mutexes
--**
--** The SQLite core uses these routines for thread
--** synchronization. Though they are intended for internal
--** use by SQLite, code that links against SQLite is
--** permitted to use any of these routines.
--**
--** The SQLite source code contains multiple implementations
--** of these mutex routines. An appropriate implementation
--** is selected automatically at compile-time. ^(The following
--** implementations are available in the SQLite core:
--**
--** <ul>
--** <li> SQLITE_MUTEX_OS2
--** <li> SQLITE_MUTEX_PTHREAD
--** <li> SQLITE_MUTEX_W32
--** <li> SQLITE_MUTEX_NOOP
--** </ul>)^
--**
--** ^The SQLITE_MUTEX_NOOP implementation is a set of routines
--** that does no real locking and is appropriate for use in
--** a single-threaded application. ^The SQLITE_MUTEX_OS2,
--** SQLITE_MUTEX_PTHREAD, and SQLITE_MUTEX_W32 implementations
--** are appropriate for use on OS/2, Unix, and Windows.
--**
--** ^(If SQLite is compiled with the SQLITE_MUTEX_APPDEF preprocessor
--** macro defined (with "-DSQLITE_MUTEX_APPDEF=1"), then no mutex
--** implementation is included with the library. In this case the
--** application must supply a custom mutex implementation using the
--** [SQLITE_CONFIG_MUTEX] option of the sqlite3_config() function
--** before calling sqlite3_initialize() or any other public sqlite3_
--** function that calls sqlite3_initialize().)^
--**
--** ^The sqlite3_mutex_alloc() routine allocates a new
--** mutex and returns a pointer to it. ^If it returns NULL
--** that means that a mutex could not be allocated. ^SQLite
--** will unwind its stack and return an error. ^(The argument
--** to sqlite3_mutex_alloc() is one of these integer constants:
--**
--** <ul>
--** <li> SQLITE_MUTEX_FAST
--** <li> SQLITE_MUTEX_RECURSIVE
--** <li> SQLITE_MUTEX_STATIC_MASTER
--** <li> SQLITE_MUTEX_STATIC_MEM
--** <li> SQLITE_MUTEX_STATIC_MEM2
--** <li> SQLITE_MUTEX_STATIC_PRNG
--** <li> SQLITE_MUTEX_STATIC_LRU
--** <li> SQLITE_MUTEX_STATIC_LRU2
--** </ul>)^
--**
--** ^The first two constants (SQLITE_MUTEX_FAST and SQLITE_MUTEX_RECURSIVE)
--** cause sqlite3_mutex_alloc() to create
--** a new mutex. ^The new mutex is recursive when SQLITE_MUTEX_RECURSIVE
--** is used but not necessarily so when SQLITE_MUTEX_FAST is used.
--** The mutex implementation does not need to make a distinction
--** between SQLITE_MUTEX_RECURSIVE and SQLITE_MUTEX_FAST if it does
--** not want to. ^SQLite will only request a recursive mutex in
--** cases where it really needs one. ^If a faster non-recursive mutex
--** implementation is available on the host platform, the mutex subsystem
--** might return such a mutex in response to SQLITE_MUTEX_FAST.
--**
--** ^The other allowed parameters to sqlite3_mutex_alloc() (anything other
--** than SQLITE_MUTEX_FAST and SQLITE_MUTEX_RECURSIVE) each return
--** a pointer to a static preexisting mutex. ^Six static mutexes are
--** used by the current version of SQLite. Future versions of SQLite
--** may add additional static mutexes. Static mutexes are for internal
--** use by SQLite only. Applications that use SQLite mutexes should
--** use only the dynamic mutexes returned by SQLITE_MUTEX_FAST or
--** SQLITE_MUTEX_RECURSIVE.
--**
--** ^Note that if one of the dynamic mutex parameters (SQLITE_MUTEX_FAST
--** or SQLITE_MUTEX_RECURSIVE) is used then sqlite3_mutex_alloc()
--** returns a different mutex on every call. ^But for the static
--** mutex types, the same mutex is returned on every call that has
--** the same type number.
--**
--** ^The sqlite3_mutex_free() routine deallocates a previously
--** allocated dynamic mutex. ^SQLite is careful to deallocate every
--** dynamic mutex that it allocates. The dynamic mutexes must not be in
--** use when they are deallocated. Attempting to deallocate a static
--** mutex results in undefined behavior. ^SQLite never deallocates
--** a static mutex.
--**
--** ^The sqlite3_mutex_enter() and sqlite3_mutex_try() routines attempt
--** to enter a mutex. ^If another thread is already within the mutex,
--** sqlite3_mutex_enter() will block and sqlite3_mutex_try() will return
--** SQLITE_BUSY. ^The sqlite3_mutex_try() interface returns [SQLITE_OK]
--** upon successful entry. ^(Mutexes created using
--** SQLITE_MUTEX_RECURSIVE can be entered multiple times by the same thread.
--** In such cases the,
--** mutex must be exited an equal number of times before another thread
--** can enter.)^ ^(If the same thread tries to enter any other
--** kind of mutex more than once, the behavior is undefined.
--** SQLite will never exhibit
--** such behavior in its own use of mutexes.)^
--**
--** ^(Some systems (for example, Windows 95) do not support the operation
--** implemented by sqlite3_mutex_try(). On those systems, sqlite3_mutex_try()
--** will always return SQLITE_BUSY. The SQLite core only ever uses
--** sqlite3_mutex_try() as an optimization so this is acceptable behavior.)^
--**
--** ^The sqlite3_mutex_leave() routine exits a mutex that was
--** previously entered by the same thread. ^(The behavior
--** is undefined if the mutex is not currently entered by the
--** calling thread or is not currently allocated. SQLite will
--** never do either.)^
--**
--** ^If the argument to sqlite3_mutex_enter(), sqlite3_mutex_try(), or
--** sqlite3_mutex_leave() is a NULL pointer, then all three routines
--** behave as no-ops.
--**
--** See also: [sqlite3_mutex_held()] and [sqlite3_mutex_notheld()].
--
function sqlite3_mutex_alloc (arg1 : int) return System.Address; -- /usr/include/sqlite3.h:4723:27
pragma Import (C, sqlite3_mutex_alloc, "sqlite3_mutex_alloc");
procedure sqlite3_mutex_free (arg1 : System.Address); -- /usr/include/sqlite3.h:4724:17
pragma Import (C, sqlite3_mutex_free, "sqlite3_mutex_free");
procedure sqlite3_mutex_enter (arg1 : System.Address); -- /usr/include/sqlite3.h:4725:17
pragma Import (C, sqlite3_mutex_enter, "sqlite3_mutex_enter");
function sqlite3_mutex_try (arg1 : System.Address) return int; -- /usr/include/sqlite3.h:4726:16
pragma Import (C, sqlite3_mutex_try, "sqlite3_mutex_try");
procedure sqlite3_mutex_leave (arg1 : System.Address); -- /usr/include/sqlite3.h:4727:17
pragma Import (C, sqlite3_mutex_leave, "sqlite3_mutex_leave");
--** CAPI3REF: Mutex Methods Object
--** EXPERIMENTAL
--**
--** An instance of this structure defines the low-level routines
--** used to allocate and use mutexes.
--**
--** Usually, the default mutex implementations provided by SQLite are
--** sufficient, however the user has the option of substituting a custom
--** implementation for specialized deployments or systems for which SQLite
--** does not provide a suitable implementation. In this case, the user
--** creates and populates an instance of this structure to pass
--** to sqlite3_config() along with the [SQLITE_CONFIG_MUTEX] option.
--** Additionally, an instance of this structure can be used as an
--** output variable when querying the system for the current mutex
--** implementation, using the [SQLITE_CONFIG_GETMUTEX] option.
--**
--** ^The xMutexInit method defined by this structure is invoked as
--** part of system initialization by the sqlite3_initialize() function.
--** ^The xMutexInit routine is calle by SQLite exactly once for each
--** effective call to [sqlite3_initialize()].
--**
--** ^The xMutexEnd method defined by this structure is invoked as
--** part of system shutdown by the sqlite3_shutdown() function. The
--** implementation of this method is expected to release all outstanding
--** resources obtained by the mutex methods implementation, especially
--** those obtained by the xMutexInit method. ^The xMutexEnd()
--** interface is invoked exactly once for each call to [sqlite3_shutdown()].
--**
--** ^(The remaining seven methods defined by this structure (xMutexAlloc,
--** xMutexFree, xMutexEnter, xMutexTry, xMutexLeave, xMutexHeld and
--** xMutexNotheld) implement the following interfaces (respectively):
--**
--** <ul>
--** <li> [sqlite3_mutex_alloc()] </li>
--** <li> [sqlite3_mutex_free()] </li>
--** <li> [sqlite3_mutex_enter()] </li>
--** <li> [sqlite3_mutex_try()] </li>
--** <li> [sqlite3_mutex_leave()] </li>
--** <li> [sqlite3_mutex_held()] </li>
--** <li> [sqlite3_mutex_notheld()] </li>
--** </ul>)^
--**
--** The only difference is that the public sqlite3_XXX functions enumerated
--** above silently ignore any invocations that pass a NULL pointer instead
--** of a valid mutex handle. The implementations of the methods defined
--** by this structure are not required to handle this case, the results
--** of passing a NULL pointer instead of a valid mutex handle are undefined
--** (i.e. it is acceptable to provide an implementation that segfaults if
--** it is passed a NULL pointer).
--**
--** The xMutexInit() method must be threadsafe. ^It must be harmless to
--** invoke xMutexInit() mutiple times within the same process and without
--** intervening calls to xMutexEnd(). Second and subsequent calls to
--** xMutexInit() must be no-ops.
--**
--** ^xMutexInit() must not use SQLite memory allocation ([sqlite3_malloc()]
--** and its associates). ^Similarly, xMutexAlloc() must not use SQLite memory
--** allocation for a static mutex. ^However xMutexAlloc() may use SQLite
--** memory allocation for a fast or recursive mutex.
--**
--** ^SQLite will invoke the xMutexEnd() method when [sqlite3_shutdown()] is
--** called, but only if the prior call to xMutexInit returned SQLITE_OK.
--** If xMutexInit fails in any way, it is expected to clean up after itself
--** prior to returning.
--
type sqlite3_mutex_methods is record
xMutexInit : access function return int; -- /usr/include/sqlite3.h:4797:9
xMutexEnd : access function return int; -- /usr/include/sqlite3.h:4798:9
xMutexAlloc : access function (arg1 : int) return System.Address; -- /usr/include/sqlite3.h:4799:20
xMutexFree : access procedure (arg1 : System.Address); -- /usr/include/sqlite3.h:4800:10
xMutexEnter : access procedure (arg1 : System.Address); -- /usr/include/sqlite3.h:4801:10
xMutexTry : access function (arg1 : System.Address) return int; -- /usr/include/sqlite3.h:4802:9
xMutexLeave : access procedure (arg1 : System.Address); -- /usr/include/sqlite3.h:4803:10
xMutexHeld : access function (arg1 : System.Address) return int; -- /usr/include/sqlite3.h:4804:9
xMutexNotheld : access function (arg1 : System.Address) return int; -- /usr/include/sqlite3.h:4805:9
end record;
pragma Convention (C, sqlite3_mutex_methods); -- /usr/include/sqlite3.h:4795:16
--** CAPI3REF: Mutex Verification Routines
--**
--** The sqlite3_mutex_held() and sqlite3_mutex_notheld() routines
--** are intended for use inside assert() statements. ^The SQLite core
--** never uses these routines except inside an assert() and applications
--** are advised to follow the lead of the core. ^The SQLite core only
--** provides implementations for these routines when it is compiled
--** with the SQLITE_DEBUG flag. ^External mutex implementations
--** are only required to provide these routines if SQLITE_DEBUG is
--** defined and if NDEBUG is not defined.
--**
--** ^These routines should return true if the mutex in their argument
--** is held or not held, respectively, by the calling thread.
--**
--** ^The implementation is not required to provided versions of these
--** routines that actually work. If the implementation does not provide working
--** versions of these routines, it should at least provide stubs that always
--** return true so that one does not get spurious assertion failures.
--**
--** ^If the argument to sqlite3_mutex_held() is a NULL pointer then
--** the routine should return 1. This seems counter-intuitive since
--** clearly the mutex cannot be held if it does not exist. But the
--** the reason the mutex does not exist is because the build is not
--** using mutexes. And we do not want the assert() containing the
--** call to sqlite3_mutex_held() to fail, so a non-zero return is
--** the appropriate thing to do. ^The sqlite3_mutex_notheld()
--** interface should also return 1 when given a NULL pointer.
--
function sqlite3_mutex_held (arg1 : System.Address) return int; -- /usr/include/sqlite3.h:4838:16
pragma Import (C, sqlite3_mutex_held, "sqlite3_mutex_held");
function sqlite3_mutex_notheld (arg1 : System.Address) return int; -- /usr/include/sqlite3.h:4839:16
pragma Import (C, sqlite3_mutex_notheld, "sqlite3_mutex_notheld");
--** CAPI3REF: Mutex Types
--**
--** The [sqlite3_mutex_alloc()] interface takes a single argument
--** which is one of these integer constants.
--**
--** The set of static mutexes may change from one SQLite release to the
--** next. Applications that override the built-in mutex logic must be
--** prepared to accommodate additional static mutexes.
--
--** CAPI3REF: Retrieve the mutex for a database connection
--**
--** ^This interface returns a pointer the [sqlite3_mutex] object that
--** serializes access to the [database connection] given in the argument
--** when the [threading mode] is Serialized.
--** ^If the [threading mode] is Single-thread or Multi-thread then this
--** routine returns a NULL pointer.
--
function sqlite3_db_mutex (arg1 : System.Address) return System.Address; -- /usr/include/sqlite3.h:4871:27
pragma Import (C, sqlite3_db_mutex, "sqlite3_db_mutex");
--** CAPI3REF: Low-Level Control Of Database Files
--**
--** ^The [sqlite3_file_control()] interface makes a direct call to the
--** xFileControl method for the [sqlite3_io_methods] object associated
--** with a particular database identified by the second argument. ^The
--** name of the database "main" for the main database or "temp" for the
--** TEMP database, or the name that appears after the AS keyword for
--** databases that are added using the [ATTACH] SQL command.
--** ^A NULL pointer can be used in place of "main" to refer to the
--** main database file.
--** ^The third and fourth parameters to this routine
--** are passed directly through to the second and third parameters of
--** the xFileControl method. ^The return value of the xFileControl
--** method becomes the return value of this routine.
--**
--** ^If the second parameter (zDbName) does not match the name of any
--** open database file, then SQLITE_ERROR is returned. ^This error
--** code is not remembered and will not be recalled by [sqlite3_errcode()]
--** or [sqlite3_errmsg()]. The underlying xFileControl method might
--** also return SQLITE_ERROR. There is no way to distinguish between
--** an incorrect zDbName and an SQLITE_ERROR return from the underlying
--** xFileControl method.
--**
--** See also: [SQLITE_FCNTL_LOCKSTATE]
--
function sqlite3_file_control
(arg1 : System.Address;
arg2 : Interfaces.C.Strings.chars_ptr;
arg3 : int;
arg4 : System.Address) return int; -- /usr/include/sqlite3.h:4899:16
pragma Import (C, sqlite3_file_control, "sqlite3_file_control");
--** CAPI3REF: Testing Interface
--**
--** ^The sqlite3_test_control() interface is used to read out internal
--** state of SQLite and to inject faults into SQLite for testing
--** purposes. ^The first parameter is an operation code that determines
--** the number, meaning, and operation of all subsequent parameters.
--**
--** This interface is not for use by applications. It exists solely
--** for verifying the correct operation of the SQLite library. Depending
--** on how the SQLite library is compiled, this interface might not exist.
--**
--** The details of the operation codes, their meanings, the parameters
--** they take, and what they do are all subject to change without notice.
--** Unlike most of the SQLite API, this function is not guaranteed to
--** operate consistently from one release to the next.
--
function sqlite3_test_control (arg1 : int -- , ...
) return int; -- /usr/include/sqlite3.h:4918:16
pragma Import (C, sqlite3_test_control, "sqlite3_test_control");
--** CAPI3REF: Testing Interface Operation Codes
--**
--** These constants are the valid operation code parameters used
--** as the first argument to [sqlite3_test_control()].
--**
--** These parameters and their meanings are subject to change
--** without notice. These values are for testing purposes only.
--** Applications should not use any of these parameters or the
--** [sqlite3_test_control()] interface.
--
--** CAPI3REF: SQLite Runtime Status
--** EXPERIMENTAL
--**
--** ^This interface is used to retrieve runtime status information
--** about the preformance of SQLite, and optionally to reset various
--** highwater marks. ^The first argument is an integer code for
--** the specific parameter to measure. ^(Recognized integer codes
--** are of the form [SQLITE_STATUS_MEMORY_USED | SQLITE_STATUS_...].)^
--** ^The current value of the parameter is returned into *pCurrent.
--** ^The highest recorded value is returned in *pHighwater. ^If the
--** resetFlag is true, then the highest record value is reset after
--** *pHighwater is written. ^(Some parameters do not record the highest
--** value. For those parameters
--** nothing is written into *pHighwater and the resetFlag is ignored.)^
--** ^(Other parameters record only the highwater mark and not the current
--** value. For these latter parameters nothing is written into *pCurrent.)^
--**
--** ^The sqlite3_db_status() routine returns SQLITE_OK on success and a
--** non-zero [error code] on failure.
--**
--** This routine is threadsafe but is not atomic. This routine can be
--** called while other threads are running the same or different SQLite
--** interfaces. However the values returned in *pCurrent and
--** *pHighwater reflect the status of SQLite at different points in time
--** and it is possible that another thread might change the parameter
--** in between the times when *pCurrent and *pHighwater are written.
--**
--** See also: [sqlite3_db_status()]
--
function sqlite3_status
(arg1 : int;
arg2 : access int;
arg3 : access int;
arg4 : int) return int; -- /usr/include/sqlite3.h:4976:36
pragma Import (C, sqlite3_status, "sqlite3_status");
--** CAPI3REF: Status Parameters
--** EXPERIMENTAL
--**
--** These integer constants designate various run-time status parameters
--** that can be returned by [sqlite3_status()].
--**
--** <dl>
--** ^(<dt>SQLITE_STATUS_MEMORY_USED</dt>
--** <dd>This parameter is the current amount of memory checked out
--** using [sqlite3_malloc()], either directly or indirectly. The
--** figure includes calls made to [sqlite3_malloc()] by the application
--** and internal memory usage by the SQLite library. Scratch memory
--** controlled by [SQLITE_CONFIG_SCRATCH] and auxiliary page-cache
--** memory controlled by [SQLITE_CONFIG_PAGECACHE] is not included in
--** this parameter. The amount returned is the sum of the allocation
--** sizes as reported by the xSize method in [sqlite3_mem_methods].</dd>)^
--**
--** ^(<dt>SQLITE_STATUS_MALLOC_SIZE</dt>
--** <dd>This parameter records the largest memory allocation request
--** handed to [sqlite3_malloc()] or [sqlite3_realloc()] (or their
--** internal equivalents). Only the value returned in the
--** *pHighwater parameter to [sqlite3_status()] is of interest.
--** The value written into the *pCurrent parameter is undefined.</dd>)^
--**
--** ^(<dt>SQLITE_STATUS_PAGECACHE_USED</dt>
--** <dd>This parameter returns the number of pages used out of the
--** [pagecache memory allocator] that was configured using
--** [SQLITE_CONFIG_PAGECACHE]. The
--** value returned is in pages, not in bytes.</dd>)^
--**
--** ^(<dt>SQLITE_STATUS_PAGECACHE_OVERFLOW</dt>
--** <dd>This parameter returns the number of bytes of page cache
--** allocation which could not be statisfied by the [SQLITE_CONFIG_PAGECACHE]
--** buffer and where forced to overflow to [sqlite3_malloc()]. The
--** returned value includes allocations that overflowed because they
--** where too large (they were larger than the "sz" parameter to
--** [SQLITE_CONFIG_PAGECACHE]) and allocations that overflowed because
--** no space was left in the page cache.</dd>)^
--**
--** ^(<dt>SQLITE_STATUS_PAGECACHE_SIZE</dt>
--** <dd>This parameter records the largest memory allocation request
--** handed to [pagecache memory allocator]. Only the value returned in the
--** *pHighwater parameter to [sqlite3_status()] is of interest.
--** The value written into the *pCurrent parameter is undefined.</dd>)^
--**
--** ^(<dt>SQLITE_STATUS_SCRATCH_USED</dt>
--** <dd>This parameter returns the number of allocations used out of the
--** [scratch memory allocator] configured using
--** [SQLITE_CONFIG_SCRATCH]. The value returned is in allocations, not
--** in bytes. Since a single thread may only have one scratch allocation
--** outstanding at time, this parameter also reports the number of threads
--** using scratch memory at the same time.</dd>)^
--**
--** ^(<dt>SQLITE_STATUS_SCRATCH_OVERFLOW</dt>
--** <dd>This parameter returns the number of bytes of scratch memory
--** allocation which could not be statisfied by the [SQLITE_CONFIG_SCRATCH]
--** buffer and where forced to overflow to [sqlite3_malloc()]. The values
--** returned include overflows because the requested allocation was too
--** larger (that is, because the requested allocation was larger than the
--** "sz" parameter to [SQLITE_CONFIG_SCRATCH]) and because no scratch buffer
--** slots were available.
--** </dd>)^
--**
--** ^(<dt>SQLITE_STATUS_SCRATCH_SIZE</dt>
--** <dd>This parameter records the largest memory allocation request
--** handed to [scratch memory allocator]. Only the value returned in the
--** *pHighwater parameter to [sqlite3_status()] is of interest.
--** The value written into the *pCurrent parameter is undefined.</dd>)^
--**
--** ^(<dt>SQLITE_STATUS_PARSER_STACK</dt>
--** <dd>This parameter records the deepest parser stack. It is only
--** meaningful if SQLite is compiled with [YYTRACKMAXSTACKDEPTH].</dd>)^
--** </dl>
--**
--** New status parameters may be added from time to time.
--
--** CAPI3REF: Database Connection Status
--** EXPERIMENTAL
--**
--** ^This interface is used to retrieve runtime status information
--** about a single [database connection]. ^The first argument is the
--** database connection object to be interrogated. ^The second argument
--** is the parameter to interrogate. ^Currently, the only allowed value
--** for the second parameter is [SQLITE_DBSTATUS_LOOKASIDE_USED].
--** Additional options will likely appear in future releases of SQLite.
--**
--** ^The current value of the requested parameter is written into *pCur
--** and the highest instantaneous value is written into *pHiwtr. ^If
--** the resetFlg is true, then the highest instantaneous value is
--** reset back down to the current value.
--**
--** See also: [sqlite3_status()] and [sqlite3_stmt_status()].
--
function sqlite3_db_status
(arg1 : System.Address;
arg2 : int;
arg3 : access int;
arg4 : access int;
arg5 : int) return int; -- /usr/include/sqlite3.h:5084:36
pragma Import (C, sqlite3_db_status, "sqlite3_db_status");
--** CAPI3REF: Status Parameters for database connections
--** EXPERIMENTAL
--**
--** These constants are the available integer "verbs" that can be passed as
--** the second argument to the [sqlite3_db_status()] interface.
--**
--** New verbs may be added in future releases of SQLite. Existing verbs
--** might be discontinued. Applications should check the return code from
--** [sqlite3_db_status()] to make sure that the call worked.
--** The [sqlite3_db_status()] interface will return a non-zero error code
--** if a discontinued or unsupported verb is invoked.
--**
--** <dl>
--** ^(<dt>SQLITE_DBSTATUS_LOOKASIDE_USED</dt>
--** <dd>This parameter returns the number of lookaside memory slots currently
--** checked out.</dd>)^
--** </dl>
--
--** CAPI3REF: Prepared Statement Status
--** EXPERIMENTAL
--**
--** ^(Each prepared statement maintains various
--** [SQLITE_STMTSTATUS_SORT | counters] that measure the number
--** of times it has performed specific operations.)^ These counters can
--** be used to monitor the performance characteristics of the prepared
--** statements. For example, if the number of table steps greatly exceeds
--** the number of table searches or result rows, that would tend to indicate
--** that the prepared statement is using a full table scan rather than
--** an index.
--**
--** ^(This interface is used to retrieve and reset counter values from
--** a [prepared statement]. The first argument is the prepared statement
--** object to be interrogated. The second argument
--** is an integer code for a specific [SQLITE_STMTSTATUS_SORT | counter]
--** to be interrogated.)^
--** ^The current value of the requested counter is returned.
--** ^If the resetFlg is true, then the counter is reset to zero after this
--** interface call returns.
--**
--** See also: [sqlite3_status()] and [sqlite3_db_status()].
--
function sqlite3_stmt_status
(arg1 : System.Address;
arg2 : int;
arg3 : int) return int; -- /usr/include/sqlite3.h:5132:36
pragma Import (C, sqlite3_stmt_status, "sqlite3_stmt_status");
--** CAPI3REF: Status Parameters for prepared statements
--** EXPERIMENTAL
--**
--** These preprocessor macros define integer codes that name counter
--** values associated with the [sqlite3_stmt_status()] interface.
--** The meanings of the various counters are as follows:
--**
--** <dl>
--** <dt>SQLITE_STMTSTATUS_FULLSCAN_STEP</dt>
--** <dd>^This is the number of times that SQLite has stepped forward in
--** a table as part of a full table scan. Large numbers for this counter
--** may indicate opportunities for performance improvement through
--** careful use of indices.</dd>
--**
--** <dt>SQLITE_STMTSTATUS_SORT</dt>
--** <dd>^This is the number of sort operations that have occurred.
--** A non-zero value in this counter may indicate an opportunity to
--** improvement performance through careful use of indices.</dd>
--**
--** </dl>
--
--** CAPI3REF: Custom Page Cache Object
--** EXPERIMENTAL
--**
--** The sqlite3_pcache type is opaque. It is implemented by
--** the pluggable module. The SQLite core has no knowledge of
--** its size or internal structure and never deals with the
--** sqlite3_pcache object except by holding and passing pointers
--** to the object.
--**
--** See [sqlite3_pcache_methods] for additional information.
--
-- skipped empty struct sqlite3_pcache
--** CAPI3REF: Application Defined Page Cache.
--** KEYWORDS: {page cache}
--** EXPERIMENTAL
--**
--** ^(The [sqlite3_config]([SQLITE_CONFIG_PCACHE], ...) interface can
--** register an alternative page cache implementation by passing in an
--** instance of the sqlite3_pcache_methods structure.)^ The majority of the
--** heap memory used by SQLite is used by the page cache to cache data read
--** from, or ready to be written to, the database file. By implementing a
--** custom page cache using this API, an application can control more
--** precisely the amount of memory consumed by SQLite, the way in which
--** that memory is allocated and released, and the policies used to
--** determine exactly which parts of a database file are cached and for
--** how long.
--**
--** ^(The contents of the sqlite3_pcache_methods structure are copied to an
--** internal buffer by SQLite within the call to [sqlite3_config]. Hence
--** the application may discard the parameter after the call to
--** [sqlite3_config()] returns.)^
--**
--** ^The xInit() method is called once for each call to [sqlite3_initialize()]
--** (usually only once during the lifetime of the process). ^(The xInit()
--** method is passed a copy of the sqlite3_pcache_methods.pArg value.)^
--** ^The xInit() method can set up up global structures and/or any mutexes
--** required by the custom page cache implementation.
--**
--** ^The xShutdown() method is called from within [sqlite3_shutdown()],
--** if the application invokes this API. It can be used to clean up
--** any outstanding resources before process shutdown, if required.
--**
--** ^SQLite holds a [SQLITE_MUTEX_RECURSIVE] mutex when it invokes
--** the xInit method, so the xInit method need not be threadsafe. ^The
--** xShutdown method is only called from [sqlite3_shutdown()] so it does
--** not need to be threadsafe either. All other methods must be threadsafe
--** in multithreaded applications.
--**
--** ^SQLite will never invoke xInit() more than once without an intervening
--** call to xShutdown().
--**
--** ^The xCreate() method is used to construct a new cache instance. SQLite
--** will typically create one cache instance for each open database file,
--** though this is not guaranteed. ^The
--** first parameter, szPage, is the size in bytes of the pages that must
--** be allocated by the cache. ^szPage will not be a power of two. ^szPage
--** will the page size of the database file that is to be cached plus an
--** increment (here called "R") of about 100 or 200. ^SQLite will use the
--** extra R bytes on each page to store metadata about the underlying
--** database page on disk. The value of R depends
--** on the SQLite version, the target platform, and how SQLite was compiled.
--** ^R is constant for a particular build of SQLite. ^The second argument to
--** xCreate(), bPurgeable, is true if the cache being created will
--** be used to cache database pages of a file stored on disk, or
--** false if it is used for an in-memory database. ^The cache implementation
--** does not have to do anything special based with the value of bPurgeable;
--** it is purely advisory. ^On a cache where bPurgeable is false, SQLite will
--** never invoke xUnpin() except to deliberately delete a page.
--** ^In other words, a cache created with bPurgeable set to false will
--** never contain any unpinned pages.
--**
--** ^(The xCachesize() method may be called at any time by SQLite to set the
--** suggested maximum cache-size (number of pages stored by) the cache
--** instance passed as the first argument. This is the value configured using
--** the SQLite "[PRAGMA cache_size]" command.)^ ^As with the bPurgeable
--** parameter, the implementation is not required to do anything with this
--** value; it is advisory only.
--**
--** ^The xPagecount() method should return the number of pages currently
--** stored in the cache.
--**
--** ^The xFetch() method is used to fetch a page and return a pointer to it.
--** ^A 'page', in this context, is a buffer of szPage bytes aligned at an
--** 8-byte boundary. ^The page to be fetched is determined by the key. ^The
--** mimimum key value is 1. After it has been retrieved using xFetch, the page
--** is considered to be "pinned".
--**
--** ^If the requested page is already in the page cache, then the page cache
--** implementation must return a pointer to the page buffer with its content
--** intact. ^(If the requested page is not already in the cache, then the
--** behavior of the cache implementation is determined by the value of the
--** createFlag parameter passed to xFetch, according to the following table:
--**
--** <table border=1 width=85% align=center>
--** <tr><th> createFlag <th> Behaviour when page is not already in cache
--** <tr><td> 0 <td> Do not allocate a new page. Return NULL.
--** <tr><td> 1 <td> Allocate a new page if it easy and convenient to do so.
--** Otherwise return NULL.
--** <tr><td> 2 <td> Make every effort to allocate a new page. Only return
--** NULL if allocating a new page is effectively impossible.
--** </table>)^
--**
--** SQLite will normally invoke xFetch() with a createFlag of 0 or 1. If
--** a call to xFetch() with createFlag==1 returns NULL, then SQLite will
--** attempt to unpin one or more cache pages by spilling the content of
--** pinned pages to disk and synching the operating system disk cache. After
--** attempting to unpin pages, the xFetch() method will be invoked again with
--** a createFlag of 2.
--**
--** ^xUnpin() is called by SQLite with a pointer to a currently pinned page
--** as its second argument. ^(If the third parameter, discard, is non-zero,
--** then the page should be evicted from the cache. In this case SQLite
--** assumes that the next time the page is retrieved from the cache using
--** the xFetch() method, it will be zeroed.)^ ^If the discard parameter is
--** zero, then the page is considered to be unpinned. ^The cache implementation
--** may choose to evict unpinned pages at any time.
--**
--** ^(The cache is not required to perform any reference counting. A single
--** call to xUnpin() unpins the page regardless of the number of prior calls
--** to xFetch().)^
--**
--** ^The xRekey() method is used to change the key value associated with the
--** page passed as the second argument from oldKey to newKey. ^If the cache
--** previously contains an entry associated with newKey, it should be
--** discarded. ^Any prior cache entry associated with newKey is guaranteed not
--** to be pinned.
--**
--** ^When SQLite calls the xTruncate() method, the cache must discard all
--** existing cache entries with page numbers (keys) greater than or equal
--** to the value of the iLimit parameter passed to xTruncate(). ^If any
--** of these pages are pinned, they are implicitly unpinned, meaning that
--** they can be safely discarded.
--**
--** ^The xDestroy() method is used to delete a cache allocated by xCreate().
--** All resources associated with the specified cache should be freed. ^After
--** calling the xDestroy() method, SQLite considers the [sqlite3_pcache*]
--** handle invalid, and will not use it with any other sqlite3_pcache_methods
--** functions.
--
type sqlite3_pcache_methods is record
pArg : System.Address; -- /usr/include/sqlite3.h:5303:9
xInit : access function (arg1 : System.Address) return int; -- /usr/include/sqlite3.h:5304:9
xShutdown : access procedure (arg1 : System.Address); -- /usr/include/sqlite3.h:5305:10
xCreate : access function (arg1 : int; arg2 : int) return System.Address; -- /usr/include/sqlite3.h:5306:21
xCachesize : access procedure (arg1 : System.Address; arg2 : int); -- /usr/include/sqlite3.h:5307:10
xPagecount : access function (arg1 : System.Address) return int; -- /usr/include/sqlite3.h:5308:9
xFetch : access function
(arg1 : System.Address;
arg2 : unsigned;
arg3 : int) return System.Address; -- /usr/include/sqlite3.h:5309:11
xUnpin : access procedure
(arg1 : System.Address;
arg2 : System.Address;
arg3 : int); -- /usr/include/sqlite3.h:5310:10
xRekey : access procedure
(arg1 : System.Address;
arg2 : System.Address;
arg3 : unsigned;
arg4 : unsigned); -- /usr/include/sqlite3.h:5311:10
xTruncate : access procedure (arg1 : System.Address; arg2 : unsigned); -- /usr/include/sqlite3.h:5312:10
xDestroy : access procedure (arg1 : System.Address); -- /usr/include/sqlite3.h:5313:10
end record;
pragma Convention (C, sqlite3_pcache_methods); -- /usr/include/sqlite3.h:5301:16
--** CAPI3REF: Online Backup Object
--** EXPERIMENTAL
--**
--** The sqlite3_backup object records state information about an ongoing
--** online backup operation. ^The sqlite3_backup object is created by
--** a call to [sqlite3_backup_init()] and is destroyed by a call to
--** [sqlite3_backup_finish()].
--**
--** See Also: [Using the SQLite Online Backup API]
--
-- skipped empty struct sqlite3_backup
--** CAPI3REF: Online Backup API.
--** EXPERIMENTAL
--**
--** The backup API copies the content of one database into another.
--** It is useful either for creating backups of databases or
--** for copying in-memory databases to or from persistent files.
--**
--** See Also: [Using the SQLite Online Backup API]
--**
--** ^Exclusive access is required to the destination database for the
--** duration of the operation. ^However the source database is only
--** read-locked while it is actually being read; it is not locked
--** continuously for the entire backup operation. ^Thus, the backup may be
--** performed on a live source database without preventing other users from
--** reading or writing to the source database while the backup is underway.
--**
--** ^(To perform a backup operation:
--** <ol>
--** <li><b>sqlite3_backup_init()</b> is called once to initialize the
--** backup,
--** <li><b>sqlite3_backup_step()</b> is called one or more times to transfer
--** the data between the two databases, and finally
--** <li><b>sqlite3_backup_finish()</b> is called to release all resources
--** associated with the backup operation.
--** </ol>)^
--** There should be exactly one call to sqlite3_backup_finish() for each
--** successful call to sqlite3_backup_init().
--**
--** <b>sqlite3_backup_init()</b>
--**
--** ^The D and N arguments to sqlite3_backup_init(D,N,S,M) are the
--** [database connection] associated with the destination database
--** and the database name, respectively.
--** ^The database name is "main" for the main database, "temp" for the
--** temporary database, or the name specified after the AS keyword in
--** an [ATTACH] statement for an attached database.
--** ^The S and M arguments passed to
--** sqlite3_backup_init(D,N,S,M) identify the [database connection]
--** and database name of the source database, respectively.
--** ^The source and destination [database connections] (parameters S and D)
--** must be different or else sqlite3_backup_init(D,N,S,M) will file with
--** an error.
--**
--** ^If an error occurs within sqlite3_backup_init(D,N,S,M), then NULL is
--** returned and an error code and error message are store3d in the
--** destination [database connection] D.
--** ^The error code and message for the failed call to sqlite3_backup_init()
--** can be retrieved using the [sqlite3_errcode()], [sqlite3_errmsg()], and/or
--** [sqlite3_errmsg16()] functions.
--** ^A successful call to sqlite3_backup_init() returns a pointer to an
--** [sqlite3_backup] object.
--** ^The [sqlite3_backup] object may be used with the sqlite3_backup_step() and
--** sqlite3_backup_finish() functions to perform the specified backup
--** operation.
--**
--** <b>sqlite3_backup_step()</b>
--**
--** ^Function sqlite3_backup_step(B,N) will copy up to N pages between
--** the source and destination databases specified by [sqlite3_backup] object B.
--** ^If N is negative, all remaining source pages are copied.
--** ^If sqlite3_backup_step(B,N) successfully copies N pages and there
--** are still more pages to be copied, then the function resturns [SQLITE_OK].
--** ^If sqlite3_backup_step(B,N) successfully finishes copying all pages
--** from source to destination, then it returns [SQLITE_DONE].
--** ^If an error occurs while running sqlite3_backup_step(B,N),
--** then an [error code] is returned. ^As well as [SQLITE_OK] and
--** [SQLITE_DONE], a call to sqlite3_backup_step() may return [SQLITE_READONLY],
--** [SQLITE_NOMEM], [SQLITE_BUSY], [SQLITE_LOCKED], or an
--** [SQLITE_IOERR_ACCESS | SQLITE_IOERR_XXX] extended error code.
--**
--** ^The sqlite3_backup_step() might return [SQLITE_READONLY] if the destination
--** database was opened read-only or if
--** the destination is an in-memory database with a different page size
--** from the source database.
--**
--** ^If sqlite3_backup_step() cannot obtain a required file-system lock, then
--** the [sqlite3_busy_handler | busy-handler function]
--** is invoked (if one is specified). ^If the
--** busy-handler returns non-zero before the lock is available, then
--** [SQLITE_BUSY] is returned to the caller. ^In this case the call to
--** sqlite3_backup_step() can be retried later. ^If the source
--** [database connection]
--** is being used to write to the source database when sqlite3_backup_step()
--** is called, then [SQLITE_LOCKED] is returned immediately. ^Again, in this
--** case the call to sqlite3_backup_step() can be retried later on. ^(If
--** [SQLITE_IOERR_ACCESS | SQLITE_IOERR_XXX], [SQLITE_NOMEM], or
--** [SQLITE_READONLY] is returned, then
--** there is no point in retrying the call to sqlite3_backup_step(). These
--** errors are considered fatal.)^ The application must accept
--** that the backup operation has failed and pass the backup operation handle
--** to the sqlite3_backup_finish() to release associated resources.
--**
--** ^The first call to sqlite3_backup_step() obtains an exclusive lock
--** on the destination file. ^The exclusive lock is not released until either
--** sqlite3_backup_finish() is called or the backup operation is complete
--** and sqlite3_backup_step() returns [SQLITE_DONE]. ^Every call to
--** sqlite3_backup_step() obtains a [shared lock] on the source database that
--** lasts for the duration of the sqlite3_backup_step() call.
--** ^Because the source database is not locked between calls to
--** sqlite3_backup_step(), the source database may be modified mid-way
--** through the backup process. ^If the source database is modified by an
--** external process or via a database connection other than the one being
--** used by the backup operation, then the backup will be automatically
--** restarted by the next call to sqlite3_backup_step(). ^If the source
--** database is modified by the using the same database connection as is used
--** by the backup operation, then the backup database is automatically
--** updated at the same time.
--**
--** <b>sqlite3_backup_finish()</b>
--**
--** When sqlite3_backup_step() has returned [SQLITE_DONE], or when the
--** application wishes to abandon the backup operation, the application
--** should destroy the [sqlite3_backup] by passing it to sqlite3_backup_finish().
--** ^The sqlite3_backup_finish() interfaces releases all
--** resources associated with the [sqlite3_backup] object.
--** ^If sqlite3_backup_step() has not yet returned [SQLITE_DONE], then any
--** active write-transaction on the destination database is rolled back.
--** The [sqlite3_backup] object is invalid
--** and may not be used following a call to sqlite3_backup_finish().
--**
--** ^The value returned by sqlite3_backup_finish is [SQLITE_OK] if no
--** sqlite3_backup_step() errors occurred, regardless or whether or not
--** sqlite3_backup_step() completed.
--** ^If an out-of-memory condition or IO error occurred during any prior
--** sqlite3_backup_step() call on the same [sqlite3_backup] object, then
--** sqlite3_backup_finish() returns the corresponding [error code].
--**
--** ^A return of [SQLITE_BUSY] or [SQLITE_LOCKED] from sqlite3_backup_step()
--** is not a permanent error and does not affect the return value of
--** sqlite3_backup_finish().
--**
--** <b>sqlite3_backup_remaining(), sqlite3_backup_pagecount()</b>
--**
--** ^Each call to sqlite3_backup_step() sets two values inside
--** the [sqlite3_backup] object: the number of pages still to be backed
--** up and the total number of pages in the source databae file.
--** The sqlite3_backup_remaining() and sqlite3_backup_pagecount() interfaces
--** retrieve these two values, respectively.
--**
--** ^The values returned by these functions are only updated by
--** sqlite3_backup_step(). ^If the source database is modified during a backup
--** operation, then the values are not updated to account for any extra
--** pages that need to be updated or the size of the source database file
--** changing.
--**
--** <b>Concurrent Usage of Database Handles</b>
--**
--** ^The source [database connection] may be used by the application for other
--** purposes while a backup operation is underway or being initialized.
--** ^If SQLite is compiled and configured to support threadsafe database
--** connections, then the source database connection may be used concurrently
--** from within other threads.
--**
--** However, the application must guarantee that the destination
--** [database connection] is not passed to any other API (by any thread) after
--** sqlite3_backup_init() is called and before the corresponding call to
--** sqlite3_backup_finish(). SQLite does not currently check to see
--** if the application incorrectly accesses the destination [database connection]
--** and so no error code is reported, but the operations may malfunction
--** nevertheless. Use of the destination database connection while a
--** backup is in progress might also also cause a mutex deadlock.
--**
--** If running in [shared cache mode], the application must
--** guarantee that the shared cache used by the destination database
--** is not accessed while the backup is running. In practice this means
--** that the application must guarantee that the disk file being
--** backed up to is not accessed by any connection within the process,
--** not just the specific connection that was passed to sqlite3_backup_init().
--**
--** The [sqlite3_backup] object itself is partially threadsafe. Multiple
--** threads may safely make multiple concurrent calls to sqlite3_backup_step().
--** However, the sqlite3_backup_remaining() and sqlite3_backup_pagecount()
--** APIs are not strictly speaking threadsafe. If they are invoked at the
--** same time as another thread is invoking sqlite3_backup_step() it is
--** possible that they return invalid values.
--
function sqlite3_backup_init
(arg1 : System.Address;
arg2 : Interfaces.C.Strings.chars_ptr;
arg3 : System.Address;
arg4 : Interfaces.C.Strings.chars_ptr) return System.Address; -- /usr/include/sqlite3.h:5506:28
pragma Import (C, sqlite3_backup_init, "sqlite3_backup_init");
-- Destination database handle
-- Destination database name
-- Source database handle
-- Source database name
function sqlite3_backup_step (arg1 : System.Address; arg2 : int) return int; -- /usr/include/sqlite3.h:5512:16
pragma Import (C, sqlite3_backup_step, "sqlite3_backup_step");
function sqlite3_backup_finish (arg1 : System.Address) return int; -- /usr/include/sqlite3.h:5513:16
pragma Import (C, sqlite3_backup_finish, "sqlite3_backup_finish");
function sqlite3_backup_remaining (arg1 : System.Address) return int; -- /usr/include/sqlite3.h:5514:16
pragma Import (C, sqlite3_backup_remaining, "sqlite3_backup_remaining");
function sqlite3_backup_pagecount (arg1 : System.Address) return int; -- /usr/include/sqlite3.h:5515:16
pragma Import (C, sqlite3_backup_pagecount, "sqlite3_backup_pagecount");
--** CAPI3REF: Unlock Notification
--** EXPERIMENTAL
--**
--** ^When running in shared-cache mode, a database operation may fail with
--** an [SQLITE_LOCKED] error if the required locks on the shared-cache or
--** individual tables within the shared-cache cannot be obtained. See
--** [SQLite Shared-Cache Mode] for a description of shared-cache locking.
--** ^This API may be used to register a callback that SQLite will invoke
--** when the connection currently holding the required lock relinquishes it.
--** ^This API is only available if the library was compiled with the
--** [SQLITE_ENABLE_UNLOCK_NOTIFY] C-preprocessor symbol defined.
--**
--** See Also: [Using the SQLite Unlock Notification Feature].
--**
--** ^Shared-cache locks are released when a database connection concludes
--** its current transaction, either by committing it or rolling it back.
--**
--** ^When a connection (known as the blocked connection) fails to obtain a
--** shared-cache lock and SQLITE_LOCKED is returned to the caller, the
--** identity of the database connection (the blocking connection) that
--** has locked the required resource is stored internally. ^After an
--** application receives an SQLITE_LOCKED error, it may call the
--** sqlite3_unlock_notify() method with the blocked connection handle as
--** the first argument to register for a callback that will be invoked
--** when the blocking connections current transaction is concluded. ^The
--** callback is invoked from within the [sqlite3_step] or [sqlite3_close]
--** call that concludes the blocking connections transaction.
--**
--** ^(If sqlite3_unlock_notify() is called in a multi-threaded application,
--** there is a chance that the blocking connection will have already
--** concluded its transaction by the time sqlite3_unlock_notify() is invoked.
--** If this happens, then the specified callback is invoked immediately,
--** from within the call to sqlite3_unlock_notify().)^
--**
--** ^If the blocked connection is attempting to obtain a write-lock on a
--** shared-cache table, and more than one other connection currently holds
--** a read-lock on the same table, then SQLite arbitrarily selects one of
--** the other connections to use as the blocking connection.
--**
--** ^(There may be at most one unlock-notify callback registered by a
--** blocked connection. If sqlite3_unlock_notify() is called when the
--** blocked connection already has a registered unlock-notify callback,
--** then the new callback replaces the old.)^ ^If sqlite3_unlock_notify() is
--** called with a NULL pointer as its second argument, then any existing
--** unlock-notify callback is cancelled. ^The blocked connections
--** unlock-notify callback may also be canceled by closing the blocked
--** connection using [sqlite3_close()].
--**
--** The unlock-notify callback is not reentrant. If an application invokes
--** any sqlite3_xxx API functions from within an unlock-notify callback, a
--** crash or deadlock may be the result.
--**
--** ^Unless deadlock is detected (see below), sqlite3_unlock_notify() always
--** returns SQLITE_OK.
--**
--** <b>Callback Invocation Details</b>
--**
--** When an unlock-notify callback is registered, the application provides a
--** single void* pointer that is passed to the callback when it is invoked.
--** However, the signature of the callback function allows SQLite to pass
--** it an array of void* context pointers. The first argument passed to
--** an unlock-notify callback is a pointer to an array of void* pointers,
--** and the second is the number of entries in the array.
--**
--** When a blocking connections transaction is concluded, there may be
--** more than one blocked connection that has registered for an unlock-notify
--** callback. ^If two or more such blocked connections have specified the
--** same callback function, then instead of invoking the callback function
--** multiple times, it is invoked once with the set of void* context pointers
--** specified by the blocked connections bundled together into an array.
--** This gives the application an opportunity to prioritize any actions
--** related to the set of unblocked database connections.
--**
--** <b>Deadlock Detection</b>
--**
--** Assuming that after registering for an unlock-notify callback a
--** database waits for the callback to be issued before taking any further
--** action (a reasonable assumption), then using this API may cause the
--** application to deadlock. For example, if connection X is waiting for
--** connection Y's transaction to be concluded, and similarly connection
--** Y is waiting on connection X's transaction, then neither connection
--** will proceed and the system may remain deadlocked indefinitely.
--**
--** To avoid this scenario, the sqlite3_unlock_notify() performs deadlock
--** detection. ^If a given call to sqlite3_unlock_notify() would put the
--** system in a deadlocked state, then SQLITE_LOCKED is returned and no
--** unlock-notify callback is registered. The system is said to be in
--** a deadlocked state if connection A has registered for an unlock-notify
--** callback on the conclusion of connection B's transaction, and connection
--** B has itself registered for an unlock-notify callback when connection
--** A's transaction is concluded. ^Indirect deadlock is also detected, so
--** the system is also considered to be deadlocked if connection B has
--** registered for an unlock-notify callback on the conclusion of connection
--** C's transaction, where connection C is waiting on connection A. ^Any
--** number of levels of indirection are allowed.
--**
--** <b>The "DROP TABLE" Exception</b>
--**
--** When a call to [sqlite3_step()] returns SQLITE_LOCKED, it is almost
--** always appropriate to call sqlite3_unlock_notify(). There is however,
--** one exception. When executing a "DROP TABLE" or "DROP INDEX" statement,
--** SQLite checks if there are any currently executing SELECT statements
--** that belong to the same connection. If there are, SQLITE_LOCKED is
--** returned. In this case there is no "blocking connection", so invoking
--** sqlite3_unlock_notify() results in the unlock-notify callback being
--** invoked immediately. If the application then re-attempts the "DROP TABLE"
--** or "DROP INDEX" query, an infinite loop might be the result.
--**
--** One way around this problem is to check the extended error code returned
--** by an sqlite3_step() call. ^(If there is a blocking connection, then the
--** extended error code is set to SQLITE_LOCKED_SHAREDCACHE. Otherwise, in
--** the special "DROP TABLE/INDEX" case, the extended error code is just
--** SQLITE_LOCKED.)^
--
function sqlite3_unlock_notify
(arg1 : System.Address;
arg2 : access procedure (arg1 : System.Address; arg2 : int);
arg3 : System.Address) return int; -- /usr/include/sqlite3.h:5632:16
pragma Import (C, sqlite3_unlock_notify, "sqlite3_unlock_notify");
-- Waiting connection
-- Callback function to invoke
-- Argument to pass to xNotify
--** CAPI3REF: String Comparison
--** EXPERIMENTAL
--**
--** ^The [sqlite3_strnicmp()] API allows applications and extensions to
--** compare the contents of two buffers containing UTF-8 strings in a
--** case-indendent fashion, using the same definition of case independence
--** that SQLite uses internally when comparing identifiers.
--
function sqlite3_strnicmp
(arg1 : Interfaces.C.Strings.chars_ptr;
arg2 : Interfaces.C.Strings.chars_ptr;
arg3 : int) return int; -- /usr/include/sqlite3.h:5648:16
pragma Import (C, sqlite3_strnicmp, "sqlite3_strnicmp");
--** Undo the hack that converts floating point types to integer for
--** builds on processors without floating point support.
--
-- End of the 'extern "C"' block
end Sqlite3_H;
|
--
-- Copyright (C) 2016 secunet Security Networks AG
--
-- This program is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation; either version 2 of the License, or
-- (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
--
package HW.GFX.GMA.GMCH.HDMI
is
procedure On (Port_Cfg : in Port_Config;
Pipe : in Pipe_Index)
with
Pre => Port_Cfg.Port in GMCH_HDMI_Port;
procedure Off (Port : GMCH_HDMI_Port);
procedure All_Off;
end HW.GFX.GMA.GMCH.HDMI;
|
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- S Y S T E M . M M A P . O S _ I N T E R F A C E --
-- --
-- S p e c --
-- --
-- Copyright (C) 2007-2019, AdaCore --
-- --
-- This library is free software; you can redistribute it and/or modify it --
-- under terms of the GNU General Public License as published by the Free --
-- Software Foundation; either version 3, or (at your option) any later --
-- version. This library is distributed in the hope that it will be useful, --
-- but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHAN- --
-- TABILITY or FITNESS FOR A PARTICULAR PURPOSE. --
-- --
-- As a special exception under Section 7 of GPL version 3, you are granted --
-- additional permissions described in the GCC Runtime Library Exception, --
-- version 3.1, as published by the Free Software Foundation. --
-- --
-- You should have received a copy of the GNU General Public License and --
-- a copy of the GCC Runtime Library Exception along with this program; --
-- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
-- <http://www.gnu.org/licenses/>. --
-- --
-- GNAT was originally developed by the GNAT team at New York University. --
-- Extensive contributions were provided by Ada Core Technologies Inc. --
-- --
------------------------------------------------------------------------------
-- OS pecularities abstraction package for Win32 systems.
package System.Mmap.OS_Interface is
-- The Win package contains copy of definition found in recent System.Win32
-- unit provided with the GNAT compiler. The copy is needed to be able to
-- compile this unit with older compilers. Note that this internal Win
-- package can be removed when GNAT 6.1.0 is not supported anymore.
package Win is
subtype PVOID is Standard.System.Address;
type HANDLE is new Interfaces.C.ptrdiff_t;
type WORD is new Interfaces.C.unsigned_short;
type DWORD is new Interfaces.C.unsigned_long;
type LONG is new Interfaces.C.long;
type SIZE_T is new Interfaces.C.size_t;
type BOOL is new Interfaces.C.int;
for BOOL'Size use Interfaces.C.int'Size;
FALSE : constant := 0;
GENERIC_READ : constant := 16#80000000#;
GENERIC_WRITE : constant := 16#40000000#;
OPEN_EXISTING : constant := 3;
type OVERLAPPED is record
Internal : DWORD;
InternalHigh : DWORD;
Offset : DWORD;
OffsetHigh : DWORD;
hEvent : HANDLE;
end record;
type SECURITY_ATTRIBUTES is record
nLength : DWORD;
pSecurityDescriptor : PVOID;
bInheritHandle : BOOL;
end record;
type SYSTEM_INFO is record
dwOemId : DWORD;
dwPageSize : DWORD;
lpMinimumApplicationAddress : PVOID;
lpMaximumApplicationAddress : PVOID;
dwActiveProcessorMask : PVOID;
dwNumberOfProcessors : DWORD;
dwProcessorType : DWORD;
dwAllocationGranularity : DWORD;
wProcessorLevel : WORD;
wProcessorRevision : WORD;
end record;
type LP_SYSTEM_INFO is access all SYSTEM_INFO;
INVALID_HANDLE_VALUE : constant HANDLE := -1;
FILE_BEGIN : constant := 0;
FILE_SHARE_READ : constant := 16#00000001#;
FILE_ATTRIBUTE_NORMAL : constant := 16#00000080#;
FILE_MAP_COPY : constant := 1;
FILE_MAP_READ : constant := 4;
FILE_MAP_WRITE : constant := 2;
PAGE_READONLY : constant := 16#0002#;
PAGE_READWRITE : constant := 16#0004#;
INVALID_FILE_SIZE : constant := 16#FFFFFFFF#;
function CreateFile
(lpFileName : Standard.System.Address;
dwDesiredAccess : DWORD;
dwShareMode : DWORD;
lpSecurityAttributes : access SECURITY_ATTRIBUTES;
dwCreationDisposition : DWORD;
dwFlagsAndAttributes : DWORD;
hTemplateFile : HANDLE) return HANDLE;
pragma Import (Stdcall, CreateFile, "CreateFileW");
function WriteFile
(hFile : HANDLE;
lpBuffer : Standard.System.Address;
nNumberOfBytesToWrite : DWORD;
lpNumberOfBytesWritten : access DWORD;
lpOverlapped : access OVERLAPPED) return BOOL;
pragma Import (Stdcall, WriteFile, "WriteFile");
function ReadFile
(hFile : HANDLE;
lpBuffer : Standard.System.Address;
nNumberOfBytesToRead : DWORD;
lpNumberOfBytesRead : access DWORD;
lpOverlapped : access OVERLAPPED) return BOOL;
pragma Import (Stdcall, ReadFile, "ReadFile");
function CloseHandle (hObject : HANDLE) return BOOL;
pragma Import (Stdcall, CloseHandle, "CloseHandle");
function GetFileSize
(hFile : HANDLE; lpFileSizeHigh : access DWORD) return DWORD;
pragma Import (Stdcall, GetFileSize, "GetFileSize");
function SetFilePointer
(hFile : HANDLE;
lDistanceToMove : LONG;
lpDistanceToMoveHigh : access LONG;
dwMoveMethod : DWORD) return DWORD;
pragma Import (Stdcall, SetFilePointer, "SetFilePointer");
function CreateFileMapping
(hFile : HANDLE;
lpSecurityAttributes : access SECURITY_ATTRIBUTES;
flProtect : DWORD;
dwMaximumSizeHigh : DWORD;
dwMaximumSizeLow : DWORD;
lpName : Standard.System.Address) return HANDLE;
pragma Import (Stdcall, CreateFileMapping, "CreateFileMappingW");
function MapViewOfFile
(hFileMappingObject : HANDLE;
dwDesiredAccess : DWORD;
dwFileOffsetHigh : DWORD;
dwFileOffsetLow : DWORD;
dwNumberOfBytesToMap : SIZE_T) return Standard.System.Address;
pragma Import (Stdcall, MapViewOfFile, "MapViewOfFile");
function UnmapViewOfFile
(lpBaseAddress : Standard.System.Address) return BOOL;
pragma Import (Stdcall, UnmapViewOfFile, "UnmapViewOfFile");
procedure GetSystemInfo (lpSystemInfo : LP_SYSTEM_INFO);
pragma Import (Stdcall, GetSystemInfo, "GetSystemInfo");
end Win;
type System_File is record
Handle : Win.HANDLE;
Mapped : Boolean;
-- Whether mapping is requested by the user and available on the system
Mapping_Handle : Win.HANDLE;
Write : Boolean;
-- Whether this file can be written to
Length : File_Size;
-- Length of the file. Used to know what can be mapped in the file
end record;
type System_Mapping is record
Address : Standard.System.Address;
Length : File_Size;
end record;
Invalid_System_File : constant System_File :=
(Win.INVALID_HANDLE_VALUE, False, Win.INVALID_HANDLE_VALUE, False, 0);
Invalid_System_Mapping : constant System_Mapping :=
(Standard.System.Null_Address, 0);
function Open_Read
(Filename : String;
Use_Mmap_If_Available : Boolean := True) return System_File;
-- Open a file for reading and return the corresponding System_File. Return
-- Invalid_System_File if unsuccessful.
function Open_Write
(Filename : String;
Use_Mmap_If_Available : Boolean := True) return System_File;
-- Likewise for writing to a file
procedure Close (File : in out System_File);
-- Close a system file
function Read_From_Disk
(File : System_File;
Offset, Length : File_Size) return System.Strings.String_Access;
-- Read a fragment of a file. It is up to the caller to free the result
-- when done with it.
procedure Write_To_Disk
(File : System_File;
Offset, Length : File_Size;
Buffer : System.Strings.String_Access);
-- Write some content to a fragment of a file
procedure Create_Mapping
(File : System_File;
Offset, Length : in out File_Size;
Mutable : Boolean;
Mapping : out System_Mapping);
-- Create a memory mapping for the given File, for the area starting at
-- Offset and containing Length bytes. Store it to Mapping.
-- Note that Offset and Length may be modified according to the system
-- needs (for boudaries, for instance). The caller must cope with actually
-- wider mapped areas.
procedure Dispose_Mapping
(Mapping : in out System_Mapping);
-- Unmap a previously-created mapping
function Get_Page_Size return File_Size;
-- Return the number of bytes in a system page.
end System.Mmap.OS_Interface;
|
-- Copyright 2015-2017 Free Software Foundation, Inc.
--
-- This program is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation; either version 3 of the License, or
-- (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program. If not, see <http://www.gnu.org/licenses/>.
package body Aux_Pck is
procedure Ambiguous_Func is
begin
null;
end Ambiguous_Func;
procedure Ambiguous_Proc is
begin
null;
end Ambiguous_Proc;
end Aux_Pck;
|
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2015, AdaCore --
-- --
-- Redistribution and use in source and binary forms, with or without --
-- modification, are permitted provided that the following conditions are --
-- met: --
-- 1. Redistributions of source code must retain the above copyright --
-- notice, this list of conditions and the following disclaimer. --
-- 2. Redistributions in binary form must reproduce the above copyright --
-- notice, this list of conditions and the following disclaimer in --
-- the documentation and/or other materials provided with the --
-- distribution. --
-- 3. Neither the name of STMicroelectronics nor the names of its --
-- contributors may be used to endorse or promote products derived --
-- from this software without specific prior written permission. --
-- --
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS --
-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT --
-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR --
-- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT --
-- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, --
-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT --
-- LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, --
-- DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY --
-- THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT --
-- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE --
-- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --
-- --
-- --
-- This file is based on: --
-- --
-- @file stm32f4xx_hal_dac.c and stm32f4xx_hal_dac_ex.c --
-- @author MCD Application Team --
-- @version V1.3.1 --
-- @date 25-March-2015 --
-- @brief Header file of DAC HAL module. --
-- --
-- COPYRIGHT(c) 2014 STMicroelectronics --
------------------------------------------------------------------------------
with Ada.Unchecked_Conversion;
with STM32_SVD.DAC; use STM32_SVD.DAC;
package body STM32.DAC is
------------
-- Enable --
------------
procedure Enable
(This : in out Digital_To_Analog_Converter;
Channel : DAC_Channel)
is
begin
case Channel is
when Channel_1 =>
This.CR.EN1 := True;
when Channel_2 =>
This.CR.EN2 := True;
end case;
end Enable;
-------------
-- Disable --
-------------
procedure Disable
(This : in out Digital_To_Analog_Converter;
Channel : DAC_Channel)
is
begin
case Channel is
when Channel_1 =>
This.CR.EN1 := False;
when Channel_2 =>
This.CR.EN2 := False;
end case;
end Disable;
-------------
-- Enabled --
-------------
function Enabled
(This : Digital_To_Analog_Converter;
Channel : DAC_Channel)
return Boolean is
begin
case Channel is
when Channel_1 =>
return This.CR.EN1;
when Channel_2 =>
return This.CR.EN2;
end case;
end Enabled;
----------------
-- Set_Output --
----------------
procedure Set_Output
(This : in out Digital_To_Analog_Converter;
Channel : DAC_Channel;
Value : UInt32;
Resolution : DAC_Resolution;
Alignment : Data_Alignment)
is
begin
case Channel is
when Channel_1 =>
case Resolution is
when DAC_Resolution_12_Bits =>
case Alignment is
when Left_Aligned =>
This.DHR12L1.DACC1DHR :=
UInt12 (Value and Max_12bit_Resolution);
when Right_Aligned =>
This.DHR12R1.DACC1DHR :=
UInt12 (Value and Max_12bit_Resolution);
end case;
when DAC_Resolution_8_Bits =>
This.DHR8R1.DACC1DHR := UInt8 (Value and Max_8bit_Resolution);
end case;
when Channel_2 =>
case Resolution is
when DAC_Resolution_12_Bits =>
case Alignment is
when Left_Aligned =>
This.DHR12L2.DACC2DHR :=
UInt12 (Value and Max_12bit_Resolution);
when Right_Aligned =>
This.DHR12R2.DACC2DHR :=
UInt12 (Value and Max_12bit_Resolution);
end case;
when DAC_Resolution_8_Bits =>
This.DHR8R2.DACC2DHR := UInt8 (Value and Max_8bit_Resolution);
end case;
end case;
end Set_Output;
------------------------------------
-- Trigger_Conversion_By_Software --
------------------------------------
procedure Trigger_Conversion_By_Software
(This : in out Digital_To_Analog_Converter;
Channel : DAC_Channel)
is
begin
case Channel is
when Channel_1 =>
This.SWTRIGR.SWTRIG.Arr (1) := True; -- cleared by hardware
when Channel_2 =>
This.SWTRIGR.SWTRIG.Arr (2) := True; -- cleared by hardware
end case;
end Trigger_Conversion_By_Software;
----------------------------
-- Converted_Output_Value --
----------------------------
function Converted_Output_Value
(This : Digital_To_Analog_Converter;
Channel : DAC_Channel)
return UInt32
is
begin
case Channel is
when Channel_1 =>
return UInt32 (This.DOR1.DACC1DOR);
when Channel_2 =>
return UInt32 (This.DOR2.DACC2DOR);
end case;
end Converted_Output_Value;
------------------------------
-- Set_Dual_Output_Voltages --
------------------------------
procedure Set_Dual_Output_Voltages
(This : in out Digital_To_Analog_Converter;
Channel_1_Value : UInt32;
Channel_2_Value : UInt32;
Resolution : DAC_Resolution;
Alignment : Data_Alignment)
is
begin
case Resolution is
when DAC_Resolution_12_Bits =>
case Alignment is
when Left_Aligned =>
This.DHR12LD.DACC1DHR :=
UInt12 (Channel_1_Value and Max_12bit_Resolution);
This.DHR12LD.DACC2DHR :=
UInt12 (Channel_2_Value and Max_12bit_Resolution);
when Right_Aligned =>
This.DHR12RD.DACC1DHR :=
UInt12 (Channel_1_Value and Max_12bit_Resolution);
This.DHR12RD.DACC2DHR :=
UInt12 (Channel_2_Value and Max_12bit_Resolution);
end case;
when DAC_Resolution_8_Bits =>
This.DHR8RD.DACC1DHR :=
UInt8 (Channel_1_Value and Max_8bit_Resolution);
This.DHR8RD.DACC2DHR :=
UInt8 (Channel_2_Value and Max_8bit_Resolution);
end case;
end Set_Dual_Output_Voltages;
---------------------------------
-- Converted_Dual_Output_Value --
---------------------------------
function Converted_Dual_Output_Value (This : Digital_To_Analog_Converter)
return Dual_Channel_Output
is
Result : Dual_Channel_Output;
begin
Result.Channel_1_Data := UInt16 (This.DOR1.DACC1DOR);
Result.Channel_2_Data := UInt16 (This.DOR2.DACC2DOR);
return Result;
end Converted_Dual_Output_Value;
--------------------------
-- Enable_Output_Buffer --
--------------------------
procedure Enable_Output_Buffer
(This : in out Digital_To_Analog_Converter;
Channel : DAC_Channel)
is
begin
case Channel is
when Channel_1 =>
This.CR.BOFF1 := True;
when Channel_2 =>
This.CR.BOFF2 := True;
end case;
end Enable_Output_Buffer;
---------------------------
-- Disable_Output_Buffer --
---------------------------
procedure Disable_Output_Buffer
(This : in out Digital_To_Analog_Converter;
Channel : DAC_Channel)
is
begin
case Channel is
when Channel_1 =>
This.CR.BOFF1 := False;
when Channel_2 =>
This.CR.BOFF2 := False;
end case;
end Disable_Output_Buffer;
---------------------------
-- Output_Buffer_Enabled --
---------------------------
function Output_Buffer_Enabled
(This : Digital_To_Analog_Converter;
Channel : DAC_Channel)
return Boolean
is
begin
case Channel is
when Channel_1 =>
return This.CR.BOFF1;
when Channel_2 =>
return This.CR.BOFF2;
end case;
end Output_Buffer_Enabled;
--------------------
-- Select_Trigger --
--------------------
procedure Select_Trigger
(This : in out Digital_To_Analog_Converter;
Channel : DAC_Channel;
Trigger : External_Event_Trigger_Selection)
is
begin
case Channel is
when Channel_1 =>
This.CR.TSEL1 :=
External_Event_Trigger_Selection'Enum_Rep (Trigger);
when Channel_2 =>
This.CR.TSEL2 :=
External_Event_Trigger_Selection'Enum_Rep (Trigger);
end case;
end Select_Trigger;
-----------------------
-- Trigger_Selection --
-----------------------
function Trigger_Selection
(This : Digital_To_Analog_Converter;
Channel : DAC_Channel)
return External_Event_Trigger_Selection
is
begin
case Channel is
when Channel_1 =>
return External_Event_Trigger_Selection'Val (This.CR.TSEL1);
when Channel_2 =>
return External_Event_Trigger_Selection'Val (This.CR.TSEL2);
end case;
end Trigger_Selection;
--------------------
-- Enable_Trigger --
--------------------
procedure Enable_Trigger
(This : in out Digital_To_Analog_Converter;
Channel : DAC_Channel)
is
begin
case Channel is
when Channel_1 =>
This.CR.TEN1 := True;
when Channel_2 =>
This.CR.TEN2 := True;
end case;
end Enable_Trigger;
---------------------
-- Disable_Trigger --
---------------------
procedure Disable_Trigger
(This : in out Digital_To_Analog_Converter;
Channel : DAC_Channel)
is
begin
case Channel is
when Channel_1 =>
This.CR.TEN1 := False;
when Channel_2 =>
This.CR.TEN2 := False;
end case;
end Disable_Trigger;
---------------------
-- Trigger_Enabled --
---------------------
function Trigger_Enabled
(This : Digital_To_Analog_Converter;
Channel : DAC_Channel)
return Boolean
is
begin
case Channel is
when Channel_1 =>
return This.CR.TEN1;
when Channel_2 =>
return This.CR.TEN2;
end case;
end Trigger_Enabled;
----------------
-- Enable_DMA --
----------------
procedure Enable_DMA
(This : in out Digital_To_Analog_Converter;
Channel : DAC_Channel)
is
begin
case Channel is
when Channel_1 =>
This.CR.DMAEN1 := True;
when Channel_2 =>
This.CR.DMAEN2 := True;
end case;
end Enable_DMA;
-----------------
-- Disable_DMA --
-----------------
procedure Disable_DMA
(This : in out Digital_To_Analog_Converter;
Channel : DAC_Channel)
is
begin
case Channel is
when Channel_1 =>
This.CR.DMAEN1 := False;
when Channel_2 =>
This.CR.DMAEN2 := False;
end case;
end Disable_DMA;
-----------------
-- DMA_Enabled --
-----------------
function DMA_Enabled
(This : Digital_To_Analog_Converter;
Channel : DAC_Channel)
return Boolean
is
begin
case Channel is
when Channel_1 =>
return This.CR.DMAEN1;
when Channel_2 =>
return This.CR.DMAEN2;
end case;
end DMA_Enabled;
------------
-- Status --
------------
function Status
(This : Digital_To_Analog_Converter;
Flag : DAC_Status_Flag)
return Boolean
is
begin
case Flag is
when DMA_Underrun_Channel_1 =>
return This.SR.DMAUDR1;
when DMA_Underrun_Channel_2 =>
return This.SR.DMAUDR2;
end case;
end Status;
------------------
-- Clear_Status --
------------------
procedure Clear_Status
(This : in out Digital_To_Analog_Converter;
Flag : DAC_Status_Flag)
is
begin
case Flag is
when DMA_Underrun_Channel_1 =>
This.SR.DMAUDR1 := True; -- set to 1 to clear
when DMA_Underrun_Channel_2 =>
This.SR.DMAUDR2 := True; -- set to 1 to clear
end case;
end Clear_Status;
-----------------------
-- Enable_Interrupts --
-----------------------
procedure Enable_Interrupts
(This : in out Digital_To_Analog_Converter;
Source : DAC_Interrupts)
is
begin
case Source is
when DMA_Underrun_Channel_1 =>
This.CR.DMAUDRIE1 := True;
when DMA_Underrun_Channel_2 =>
This.CR.DMAUDRIE2 := True;
end case;
end Enable_Interrupts;
------------------------
-- Disable_Interrupts --
------------------------
procedure Disable_Interrupts
(This : in out Digital_To_Analog_Converter;
Source : DAC_Interrupts)
is
begin
case Source is
when DMA_Underrun_Channel_1 =>
This.CR.DMAUDRIE1 := False;
when DMA_Underrun_Channel_2 =>
This.CR.DMAUDRIE2 := False;
end case;
end Disable_Interrupts;
-----------------------
-- Interrupt_Enabled --
-----------------------
function Interrupt_Enabled
(This : Digital_To_Analog_Converter;
Source : DAC_Interrupts)
return Boolean
is
begin
case Source is
when DMA_Underrun_Channel_1 =>
return This.CR.DMAUDRIE1;
when DMA_Underrun_Channel_2 =>
return This.CR.DMAUDRIE2;
end case;
end Interrupt_Enabled;
----------------------
-- Interrupt_Source --
----------------------
function Interrupt_Source
(This : Digital_To_Analog_Converter)
return DAC_Interrupts
is
begin
if This.CR.DMAUDRIE1 then
return DMA_Underrun_Channel_1;
else
return DMA_Underrun_Channel_2;
end if;
end Interrupt_Source;
-----------------------------
-- Clear_Interrupt_Pending --
-----------------------------
procedure Clear_Interrupt_Pending
(This : in out Digital_To_Analog_Converter;
Channel : DAC_Channel)
is
begin
case Channel is
when Channel_1 =>
This.SR.DMAUDR1 := False;
when Channel_2 =>
This.SR.DMAUDR2 := False;
end case;
end Clear_Interrupt_Pending;
----------------------------
-- Select_Wave_Generation --
----------------------------
procedure Select_Wave_Generation
(This : in out Digital_To_Analog_Converter;
Channel : DAC_Channel;
Selection : Wave_Generation)
is
function As_UInt4 is new Ada.Unchecked_Conversion
(Source => Noise_Wave_Mask_Selection, Target => UInt4);
function As_UInt4 is new Ada.Unchecked_Conversion
(Source => Triangle_Wave_Amplitude_Selection, Target => UInt4);
begin
case Channel is
when Channel_1 =>
This.CR.WAVE1 :=
Wave_Generation_Selection'Enum_Rep (Selection.Kind);
when Channel_2 =>
This.CR.WAVE2 :=
Wave_Generation_Selection'Enum_Rep (Selection.Kind);
end case;
case Selection.Kind is
when No_Wave_Generation =>
null;
when Noise_Wave =>
case Channel is
when Channel_1 =>
This.CR.MAMP1 := As_UInt4 (Selection.Mask);
when Channel_2 =>
This.CR.MAMP2 := As_UInt4 (Selection.Mask);
end case;
when Triangle_Wave =>
case Channel is
when Channel_1 =>
This.CR.MAMP1 := As_UInt4 (Selection.Amplitude);
when Channel_2 =>
This.CR.MAMP2 := As_UInt4 (Selection.Amplitude);
end case;
end case;
end Select_Wave_Generation;
------------------------------
-- Selected_Wave_Generation --
------------------------------
function Selected_Wave_Generation
(This : Digital_To_Analog_Converter;
Channel : DAC_Channel)
return Wave_Generation
is
Kind : Wave_Generation_Selection;
function As_Mask is new Ada.Unchecked_Conversion
(Target => Noise_Wave_Mask_Selection, Source => UInt4);
function As_Amplitude is new Ada.Unchecked_Conversion
(Target => Triangle_Wave_Amplitude_Selection, Source => UInt4);
begin
case Channel is
when Channel_1 =>
Kind := Wave_Generation_Selection'Val (This.CR.WAVE1);
when Channel_2 =>
Kind := Wave_Generation_Selection'Val (This.CR.WAVE2);
end case;
declare
Result : Wave_Generation (Kind);
begin
case Kind is
when No_Wave_Generation =>
null;
when Noise_Wave =>
case Channel is
when Channel_1 =>
Result.Mask := As_Mask (This.CR.MAMP1);
when Channel_2 =>
Result.Mask := As_Mask (This.CR.MAMP2);
end case;
when Triangle_Wave =>
case Channel is
when Channel_1 =>
Result.Amplitude := As_Amplitude (This.CR.MAMP1);
when Channel_2 =>
Result.Amplitude := As_Amplitude (This.CR.MAMP2);
end case;
end case;
return Result;
end;
end Selected_Wave_Generation;
------------------
-- Data_Address --
------------------
function Data_Address
(This : Digital_To_Analog_Converter;
Channel : DAC_Channel;
Resolution : DAC_Resolution;
Alignment : Data_Alignment)
return Address
is
Result : Address;
begin
case Channel is
when Channel_1 =>
case Resolution is
when DAC_Resolution_12_Bits =>
case Alignment is
when Left_Aligned =>
Result := This.DHR12L1'Address;
when Right_Aligned =>
Result := This.DHR12R1'Address;
end case;
when DAC_Resolution_8_Bits =>
Result := This.DHR8R1'Address;
end case;
when Channel_2 =>
case Resolution is
when DAC_Resolution_12_Bits =>
case Alignment is
when Left_Aligned =>
Result := This.DHR12L2'Address;
when Right_Aligned =>
Result := This.DHR12R2'Address;
end case;
when DAC_Resolution_8_Bits =>
Result := This.DHR8R2'Address;
end case;
end case;
return Result;
end Data_Address;
end STM32.DAC;
|
with STM32GD.Timer;
with STM32GD.Timer.Peripheral;
with STM32_SVD.Interrupts;
package Peripherals is
package Timer is new STM32GD.Timer.Peripheral;
end Peripherals;
|
------------------------------------------------------------------------------
-- --
-- GNAT RUNTIME COMPONENTS --
-- --
-- A D A . S H O R T _ I N T E G E R _ W I D E _ T E X T _ I O --
-- --
-- S p e c --
-- --
-- $Revision: 2 $ --
-- --
-- This specification is adapted from the Ada Reference Manual for use with --
-- GNAT. In accordance with the copyright of that document, you can freely --
-- copy and modify this specification, provided that if you redistribute a --
-- modified version, any changes that you have made are clearly indicated. --
-- --
------------------------------------------------------------------------------
with Ada.Wide_Text_IO;
package Ada.Short_Integer_Wide_Text_IO is
new Ada.Wide_Text_IO.Integer_IO (Short_Integer);
|
with DDS.Request_Reply.Tests.Simple.String_Replier;
with DDS.Request_Reply.Tests.Simple.Octets_Replier;
procedure DDS.Request_Reply.Tests.Simple.Server.Main is
Listner : aliased Ref;
Octets_Replier : Simple.Octets_Replier.Ref_Access := Simple.Octets_Replier.Create
(Participant => Participant,
Service_Name => Service_Name_Octets,
Library_Name => Qos_Library,
Profile_Name => Qos_Profile,
A_Listner => Listner'Unchecked_Access,
Mask => DDS.STATUS_MASK_ALL);
String_Replier : Simple.String_Replier.Ref_Access := Simple.String_Replier.Create
(Participant => Participant,
Service_Name => Service_Name,
Library_Name => Qos_Library,
Profile_Name => Qos_Profile,
A_Listner => Listner'Unchecked_Access,
Mask => DDS.STATUS_MASK_ALL);
Service_Time : constant Duration := 60 * 60.0; -- one hour
begin
delay Service_Time;
Simple.String_Replier.Delete (String_Replier);
Simple.Octets_Replier.Delete (Octets_Replier);
end DDS.Request_Reply.Tests.Simple.Server.Main;
|
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- I N T E R F A C E S . C O B O L --
-- --
-- S p e c --
-- (ASCII Version) --
-- --
-- $Revision$
-- --
-- Copyright (C) 1993-2000 Free Software Foundation, Inc. --
-- --
-- This specification is derived from the Ada Reference Manual for use with --
-- GNAT. The copyright notice above, and the license provisions that follow --
-- apply solely to the contents of the part following the private keyword. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 2, or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License --
-- for more details. You should have received a copy of the GNU General --
-- Public License distributed with GNAT; see file COPYING. If not, write --
-- to the Free Software Foundation, 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 version of the COBOL interfaces package assumes that the COBOL
-- compiler uses ASCII as its internal representation of characters, i.e.
-- that the type COBOL_Character has the same representation as the Ada
-- type Standard.Character.
package Interfaces.COBOL is
------------------------------------------------------------
-- Types And Operations For Internal Data Representations --
------------------------------------------------------------
type Floating is new Float;
type Long_Floating is new Long_Float;
type Binary is new Integer;
type Long_Binary is new Long_Long_Integer;
Max_Digits_Binary : constant := 9;
Max_Digits_Long_Binary : constant := 18;
type Decimal_Element is mod 16;
type Packed_Decimal is array (Positive range <>) of Decimal_Element;
pragma Pack (Packed_Decimal);
type COBOL_Character is new Character;
Ada_To_COBOL : array (Standard.Character) of COBOL_Character := (
COBOL_Character'Val (000), COBOL_Character'Val (001),
COBOL_Character'Val (002), COBOL_Character'Val (003),
COBOL_Character'Val (004), COBOL_Character'Val (005),
COBOL_Character'Val (006), COBOL_Character'Val (007),
COBOL_Character'Val (008), COBOL_Character'Val (009),
COBOL_Character'Val (010), COBOL_Character'Val (011),
COBOL_Character'Val (012), COBOL_Character'Val (013),
COBOL_Character'Val (014), COBOL_Character'Val (015),
COBOL_Character'Val (016), COBOL_Character'Val (017),
COBOL_Character'Val (018), COBOL_Character'Val (019),
COBOL_Character'Val (020), COBOL_Character'Val (021),
COBOL_Character'Val (022), COBOL_Character'Val (023),
COBOL_Character'Val (024), COBOL_Character'Val (025),
COBOL_Character'Val (026), COBOL_Character'Val (027),
COBOL_Character'Val (028), COBOL_Character'Val (029),
COBOL_Character'Val (030), COBOL_Character'Val (031),
COBOL_Character'Val (032), COBOL_Character'Val (033),
COBOL_Character'Val (034), COBOL_Character'Val (035),
COBOL_Character'Val (036), COBOL_Character'Val (037),
COBOL_Character'Val (038), COBOL_Character'Val (039),
COBOL_Character'Val (040), COBOL_Character'Val (041),
COBOL_Character'Val (042), COBOL_Character'Val (043),
COBOL_Character'Val (044), COBOL_Character'Val (045),
COBOL_Character'Val (046), COBOL_Character'Val (047),
COBOL_Character'Val (048), COBOL_Character'Val (049),
COBOL_Character'Val (050), COBOL_Character'Val (051),
COBOL_Character'Val (052), COBOL_Character'Val (053),
COBOL_Character'Val (054), COBOL_Character'Val (055),
COBOL_Character'Val (056), COBOL_Character'Val (057),
COBOL_Character'Val (058), COBOL_Character'Val (059),
COBOL_Character'Val (060), COBOL_Character'Val (061),
COBOL_Character'Val (062), COBOL_Character'Val (063),
COBOL_Character'Val (064), COBOL_Character'Val (065),
COBOL_Character'Val (066), COBOL_Character'Val (067),
COBOL_Character'Val (068), COBOL_Character'Val (069),
COBOL_Character'Val (070), COBOL_Character'Val (071),
COBOL_Character'Val (072), COBOL_Character'Val (073),
COBOL_Character'Val (074), COBOL_Character'Val (075),
COBOL_Character'Val (076), COBOL_Character'Val (077),
COBOL_Character'Val (078), COBOL_Character'Val (079),
COBOL_Character'Val (080), COBOL_Character'Val (081),
COBOL_Character'Val (082), COBOL_Character'Val (083),
COBOL_Character'Val (084), COBOL_Character'Val (085),
COBOL_Character'Val (086), COBOL_Character'Val (087),
COBOL_Character'Val (088), COBOL_Character'Val (089),
COBOL_Character'Val (090), COBOL_Character'Val (091),
COBOL_Character'Val (092), COBOL_Character'Val (093),
COBOL_Character'Val (094), COBOL_Character'Val (095),
COBOL_Character'Val (096), COBOL_Character'Val (097),
COBOL_Character'Val (098), COBOL_Character'Val (099),
COBOL_Character'Val (100), COBOL_Character'Val (101),
COBOL_Character'Val (102), COBOL_Character'Val (103),
COBOL_Character'Val (104), COBOL_Character'Val (105),
COBOL_Character'Val (106), COBOL_Character'Val (107),
COBOL_Character'Val (108), COBOL_Character'Val (109),
COBOL_Character'Val (110), COBOL_Character'Val (111),
COBOL_Character'Val (112), COBOL_Character'Val (113),
COBOL_Character'Val (114), COBOL_Character'Val (115),
COBOL_Character'Val (116), COBOL_Character'Val (117),
COBOL_Character'Val (118), COBOL_Character'Val (119),
COBOL_Character'Val (120), COBOL_Character'Val (121),
COBOL_Character'Val (122), COBOL_Character'Val (123),
COBOL_Character'Val (124), COBOL_Character'Val (125),
COBOL_Character'Val (126), COBOL_Character'Val (127),
COBOL_Character'Val (128), COBOL_Character'Val (129),
COBOL_Character'Val (130), COBOL_Character'Val (131),
COBOL_Character'Val (132), COBOL_Character'Val (133),
COBOL_Character'Val (134), COBOL_Character'Val (135),
COBOL_Character'Val (136), COBOL_Character'Val (137),
COBOL_Character'Val (138), COBOL_Character'Val (139),
COBOL_Character'Val (140), COBOL_Character'Val (141),
COBOL_Character'Val (142), COBOL_Character'Val (143),
COBOL_Character'Val (144), COBOL_Character'Val (145),
COBOL_Character'Val (146), COBOL_Character'Val (147),
COBOL_Character'Val (148), COBOL_Character'Val (149),
COBOL_Character'Val (150), COBOL_Character'Val (151),
COBOL_Character'Val (152), COBOL_Character'Val (153),
COBOL_Character'Val (154), COBOL_Character'Val (155),
COBOL_Character'Val (156), COBOL_Character'Val (157),
COBOL_Character'Val (158), COBOL_Character'Val (159),
COBOL_Character'Val (160), COBOL_Character'Val (161),
COBOL_Character'Val (162), COBOL_Character'Val (163),
COBOL_Character'Val (164), COBOL_Character'Val (165),
COBOL_Character'Val (166), COBOL_Character'Val (167),
COBOL_Character'Val (168), COBOL_Character'Val (169),
COBOL_Character'Val (170), COBOL_Character'Val (171),
COBOL_Character'Val (172), COBOL_Character'Val (173),
COBOL_Character'Val (174), COBOL_Character'Val (175),
COBOL_Character'Val (176), COBOL_Character'Val (177),
COBOL_Character'Val (178), COBOL_Character'Val (179),
COBOL_Character'Val (180), COBOL_Character'Val (181),
COBOL_Character'Val (182), COBOL_Character'Val (183),
COBOL_Character'Val (184), COBOL_Character'Val (185),
COBOL_Character'Val (186), COBOL_Character'Val (187),
COBOL_Character'Val (188), COBOL_Character'Val (189),
COBOL_Character'Val (190), COBOL_Character'Val (191),
COBOL_Character'Val (192), COBOL_Character'Val (193),
COBOL_Character'Val (194), COBOL_Character'Val (195),
COBOL_Character'Val (196), COBOL_Character'Val (197),
COBOL_Character'Val (198), COBOL_Character'Val (199),
COBOL_Character'Val (200), COBOL_Character'Val (201),
COBOL_Character'Val (202), COBOL_Character'Val (203),
COBOL_Character'Val (204), COBOL_Character'Val (205),
COBOL_Character'Val (206), COBOL_Character'Val (207),
COBOL_Character'Val (208), COBOL_Character'Val (209),
COBOL_Character'Val (210), COBOL_Character'Val (211),
COBOL_Character'Val (212), COBOL_Character'Val (213),
COBOL_Character'Val (214), COBOL_Character'Val (215),
COBOL_Character'Val (216), COBOL_Character'Val (217),
COBOL_Character'Val (218), COBOL_Character'Val (219),
COBOL_Character'Val (220), COBOL_Character'Val (221),
COBOL_Character'Val (222), COBOL_Character'Val (223),
COBOL_Character'Val (224), COBOL_Character'Val (225),
COBOL_Character'Val (226), COBOL_Character'Val (227),
COBOL_Character'Val (228), COBOL_Character'Val (229),
COBOL_Character'Val (230), COBOL_Character'Val (231),
COBOL_Character'Val (232), COBOL_Character'Val (233),
COBOL_Character'Val (234), COBOL_Character'Val (235),
COBOL_Character'Val (236), COBOL_Character'Val (237),
COBOL_Character'Val (238), COBOL_Character'Val (239),
COBOL_Character'Val (240), COBOL_Character'Val (241),
COBOL_Character'Val (242), COBOL_Character'Val (243),
COBOL_Character'Val (244), COBOL_Character'Val (245),
COBOL_Character'Val (246), COBOL_Character'Val (247),
COBOL_Character'Val (248), COBOL_Character'Val (249),
COBOL_Character'Val (250), COBOL_Character'Val (251),
COBOL_Character'Val (252), COBOL_Character'Val (253),
COBOL_Character'Val (254), COBOL_Character'Val (255));
COBOL_To_Ada : array (COBOL_Character) of Standard.Character := (
Standard.Character'Val (000), Standard.Character'Val (001),
Standard.Character'Val (002), Standard.Character'Val (003),
Standard.Character'Val (004), Standard.Character'Val (005),
Standard.Character'Val (006), Standard.Character'Val (007),
Standard.Character'Val (008), Standard.Character'Val (009),
Standard.Character'Val (010), Standard.Character'Val (011),
Standard.Character'Val (012), Standard.Character'Val (013),
Standard.Character'Val (014), Standard.Character'Val (015),
Standard.Character'Val (016), Standard.Character'Val (017),
Standard.Character'Val (018), Standard.Character'Val (019),
Standard.Character'Val (020), Standard.Character'Val (021),
Standard.Character'Val (022), Standard.Character'Val (023),
Standard.Character'Val (024), Standard.Character'Val (025),
Standard.Character'Val (026), Standard.Character'Val (027),
Standard.Character'Val (028), Standard.Character'Val (029),
Standard.Character'Val (030), Standard.Character'Val (031),
Standard.Character'Val (032), Standard.Character'Val (033),
Standard.Character'Val (034), Standard.Character'Val (035),
Standard.Character'Val (036), Standard.Character'Val (037),
Standard.Character'Val (038), Standard.Character'Val (039),
Standard.Character'Val (040), Standard.Character'Val (041),
Standard.Character'Val (042), Standard.Character'Val (043),
Standard.Character'Val (044), Standard.Character'Val (045),
Standard.Character'Val (046), Standard.Character'Val (047),
Standard.Character'Val (048), Standard.Character'Val (049),
Standard.Character'Val (050), Standard.Character'Val (051),
Standard.Character'Val (052), Standard.Character'Val (053),
Standard.Character'Val (054), Standard.Character'Val (055),
Standard.Character'Val (056), Standard.Character'Val (057),
Standard.Character'Val (058), Standard.Character'Val (059),
Standard.Character'Val (060), Standard.Character'Val (061),
Standard.Character'Val (062), Standard.Character'Val (063),
Standard.Character'Val (064), Standard.Character'Val (065),
Standard.Character'Val (066), Standard.Character'Val (067),
Standard.Character'Val (068), Standard.Character'Val (069),
Standard.Character'Val (070), Standard.Character'Val (071),
Standard.Character'Val (072), Standard.Character'Val (073),
Standard.Character'Val (074), Standard.Character'Val (075),
Standard.Character'Val (076), Standard.Character'Val (077),
Standard.Character'Val (078), Standard.Character'Val (079),
Standard.Character'Val (080), Standard.Character'Val (081),
Standard.Character'Val (082), Standard.Character'Val (083),
Standard.Character'Val (084), Standard.Character'Val (085),
Standard.Character'Val (086), Standard.Character'Val (087),
Standard.Character'Val (088), Standard.Character'Val (089),
Standard.Character'Val (090), Standard.Character'Val (091),
Standard.Character'Val (092), Standard.Character'Val (093),
Standard.Character'Val (094), Standard.Character'Val (095),
Standard.Character'Val (096), Standard.Character'Val (097),
Standard.Character'Val (098), Standard.Character'Val (099),
Standard.Character'Val (100), Standard.Character'Val (101),
Standard.Character'Val (102), Standard.Character'Val (103),
Standard.Character'Val (104), Standard.Character'Val (105),
Standard.Character'Val (106), Standard.Character'Val (107),
Standard.Character'Val (108), Standard.Character'Val (109),
Standard.Character'Val (110), Standard.Character'Val (111),
Standard.Character'Val (112), Standard.Character'Val (113),
Standard.Character'Val (114), Standard.Character'Val (115),
Standard.Character'Val (116), Standard.Character'Val (117),
Standard.Character'Val (118), Standard.Character'Val (119),
Standard.Character'Val (120), Standard.Character'Val (121),
Standard.Character'Val (122), Standard.Character'Val (123),
Standard.Character'Val (124), Standard.Character'Val (125),
Standard.Character'Val (126), Standard.Character'Val (127),
Standard.Character'Val (128), Standard.Character'Val (129),
Standard.Character'Val (130), Standard.Character'Val (131),
Standard.Character'Val (132), Standard.Character'Val (133),
Standard.Character'Val (134), Standard.Character'Val (135),
Standard.Character'Val (136), Standard.Character'Val (137),
Standard.Character'Val (138), Standard.Character'Val (139),
Standard.Character'Val (140), Standard.Character'Val (141),
Standard.Character'Val (142), Standard.Character'Val (143),
Standard.Character'Val (144), Standard.Character'Val (145),
Standard.Character'Val (146), Standard.Character'Val (147),
Standard.Character'Val (148), Standard.Character'Val (149),
Standard.Character'Val (150), Standard.Character'Val (151),
Standard.Character'Val (152), Standard.Character'Val (153),
Standard.Character'Val (154), Standard.Character'Val (155),
Standard.Character'Val (156), Standard.Character'Val (157),
Standard.Character'Val (158), Standard.Character'Val (159),
Standard.Character'Val (160), Standard.Character'Val (161),
Standard.Character'Val (162), Standard.Character'Val (163),
Standard.Character'Val (164), Standard.Character'Val (165),
Standard.Character'Val (166), Standard.Character'Val (167),
Standard.Character'Val (168), Standard.Character'Val (169),
Standard.Character'Val (170), Standard.Character'Val (171),
Standard.Character'Val (172), Standard.Character'Val (173),
Standard.Character'Val (174), Standard.Character'Val (175),
Standard.Character'Val (176), Standard.Character'Val (177),
Standard.Character'Val (178), Standard.Character'Val (179),
Standard.Character'Val (180), Standard.Character'Val (181),
Standard.Character'Val (182), Standard.Character'Val (183),
Standard.Character'Val (184), Standard.Character'Val (185),
Standard.Character'Val (186), Standard.Character'Val (187),
Standard.Character'Val (188), Standard.Character'Val (189),
Standard.Character'Val (190), Standard.Character'Val (191),
Standard.Character'Val (192), Standard.Character'Val (193),
Standard.Character'Val (194), Standard.Character'Val (195),
Standard.Character'Val (196), Standard.Character'Val (197),
Standard.Character'Val (198), Standard.Character'Val (199),
Standard.Character'Val (200), Standard.Character'Val (201),
Standard.Character'Val (202), Standard.Character'Val (203),
Standard.Character'Val (204), Standard.Character'Val (205),
Standard.Character'Val (206), Standard.Character'Val (207),
Standard.Character'Val (208), Standard.Character'Val (209),
Standard.Character'Val (210), Standard.Character'Val (211),
Standard.Character'Val (212), Standard.Character'Val (213),
Standard.Character'Val (214), Standard.Character'Val (215),
Standard.Character'Val (216), Standard.Character'Val (217),
Standard.Character'Val (218), Standard.Character'Val (219),
Standard.Character'Val (220), Standard.Character'Val (221),
Standard.Character'Val (222), Standard.Character'Val (223),
Standard.Character'Val (224), Standard.Character'Val (225),
Standard.Character'Val (226), Standard.Character'Val (227),
Standard.Character'Val (228), Standard.Character'Val (229),
Standard.Character'Val (230), Standard.Character'Val (231),
Standard.Character'Val (232), Standard.Character'Val (233),
Standard.Character'Val (234), Standard.Character'Val (235),
Standard.Character'Val (236), Standard.Character'Val (237),
Standard.Character'Val (238), Standard.Character'Val (239),
Standard.Character'Val (240), Standard.Character'Val (241),
Standard.Character'Val (242), Standard.Character'Val (243),
Standard.Character'Val (244), Standard.Character'Val (245),
Standard.Character'Val (246), Standard.Character'Val (247),
Standard.Character'Val (248), Standard.Character'Val (249),
Standard.Character'Val (250), Standard.Character'Val (251),
Standard.Character'Val (252), Standard.Character'Val (253),
Standard.Character'Val (254), Standard.Character'Val (255));
type Alphanumeric is array (Positive range <>) of COBOL_Character;
-- pragma Pack (Alphanumeric);
function To_COBOL (Item : String) return Alphanumeric;
function To_Ada (Item : Alphanumeric) return String;
procedure To_COBOL
(Item : String;
Target : out Alphanumeric;
Last : out Natural);
procedure To_Ada
(Item : Alphanumeric;
Target : out String;
Last : out Natural);
type Numeric is array (Positive range <>) of COBOL_Character;
-- pragma Pack (Numeric);
--------------------------------------------
-- Formats For COBOL Data Representations --
--------------------------------------------
type Display_Format is private;
Unsigned : constant Display_Format;
Leading_Separate : constant Display_Format;
Trailing_Separate : constant Display_Format;
Leading_Nonseparate : constant Display_Format;
Trailing_Nonseparate : constant Display_Format;
type Binary_Format is private;
High_Order_First : constant Binary_Format;
Low_Order_First : constant Binary_Format;
Native_Binary : constant Binary_Format;
High_Order_First_Unsigned : constant Binary_Format;
Low_Order_First_Unsigned : constant Binary_Format;
Native_Binary_Unsigned : constant Binary_Format;
type Packed_Format is private;
Packed_Unsigned : constant Packed_Format;
Packed_Signed : constant Packed_Format;
------------------------------------------------------------
-- Types For External Representation Of COBOL Binary Data --
------------------------------------------------------------
type Byte is mod 2 ** COBOL_Character'Size;
type Byte_Array is array (Positive range <>) of Byte;
-- pragma Pack (Byte_Array);
Conversion_Error : exception;
generic
type Num is delta <> digits <>;
package Decimal_Conversions is
-- Display Formats: data values are represented as Numeric
function Valid
(Item : Numeric;
Format : Display_Format)
return Boolean;
function Length
(Format : Display_Format)
return Natural;
function To_Decimal
(Item : Numeric;
Format : Display_Format)
return Num;
function To_Display
(Item : Num;
Format : Display_Format)
return Numeric;
-- Packed Formats: data values are represented as Packed_Decimal
function Valid
(Item : Packed_Decimal;
Format : Packed_Format)
return Boolean;
function Length
(Format : Packed_Format)
return Natural;
function To_Decimal
(Item : Packed_Decimal;
Format : Packed_Format)
return Num;
function To_Packed
(Item : Num;
Format : Packed_Format)
return Packed_Decimal;
-- Binary Formats: external data values are represented as Byte_Array
function Valid
(Item : Byte_Array;
Format : Binary_Format)
return Boolean;
function Length
(Format : Binary_Format)
return Natural;
function To_Decimal
(Item : Byte_Array;
Format : Binary_Format) return Num;
function To_Binary
(Item : Num;
Format : Binary_Format)
return Byte_Array;
-- Internal Binary formats: data values are of type Binary/Long_Binary
function To_Decimal (Item : Binary) return Num;
function To_Decimal (Item : Long_Binary) return Num;
function To_Binary (Item : Num) return Binary;
function To_Long_Binary (Item : Num) return Long_Binary;
private
pragma Inline (Length);
pragma Inline (To_Binary);
pragma Inline (To_Decimal);
pragma Inline (To_Display);
pragma Inline (To_Decimal);
pragma Inline (To_Long_Binary);
pragma Inline (Valid);
end Decimal_Conversions;
------------------------------------------
-- Implementation Dependent Definitions --
------------------------------------------
-- The implementation dependent definitions are wholly contained in the
-- private part of this spec (the body is implementation independent)
private
-------------------
-- Binary Format --
-------------------
type Binary_Format is (H, L, N, HU, LU, NU);
subtype Binary_Unsigned_Format is Binary_Format range HU .. NU;
High_Order_First : constant Binary_Format := H;
Low_Order_First : constant Binary_Format := L;
Native_Binary : constant Binary_Format := N;
High_Order_First_Unsigned : constant Binary_Format := HU;
Low_Order_First_Unsigned : constant Binary_Format := LU;
Native_Binary_Unsigned : constant Binary_Format := NU;
---------------------------
-- Packed Decimal Format --
---------------------------
-- Packed decimal numbers use the IBM mainframe format:
-- dd dd ... dd dd ds
-- where d are the Digits, in natural left to right order, and s is
-- the sign digit. If the number of Digits os even, then the high
-- order (leftmost) Digits is always a 0. For example, a six digit
-- number has the format:
-- 0d dd dd ds
-- The sign digit has the possible values
-- 16#0A# non-standard plus sign
-- 16#0B# non-standard minus sign
-- 16#0C# standard plus sign
-- 16#0D# standard minus sign
-- 16#0E# non-standard plus sign
-- 16#0F# standard unsigned sign
-- The non-standard signs are recognized on input, but never generated
-- for output numbers. The 16#0F# distinguishes unsigned numbers from
-- signed positive numbers, but is treated as positive for computational
-- purposes. This format provides distinguished positive and negative
-- zero values, which behave the same in all operations.
type Packed_Format is (U, S);
Packed_Unsigned : constant Packed_Format := U;
Packed_Signed : constant Packed_Format := S;
type Packed_Representation_Type is (IBM);
-- Indicator for format used for packed decimal
Packed_Representation : constant Packed_Representation_Type := IBM;
-- This version of the spec uses IBM internal format, as described above.
-----------------------------
-- Display Decimal Formats --
-----------------------------
-- Display numbers are stored in standard ASCII format, as ASCII strings.
-- For the embedded signs, the following codes are used:
-- 0-9 positive: 16#30# .. 16#39# (i.e. natural ASCII digit code)
-- 0-9 negative: 16#20# .. 16#29# (ASCII digit code - 16#10#)
type Display_Format is (U, LS, TS, LN, TN);
Unsigned : constant Display_Format := U;
Leading_Separate : constant Display_Format := LS;
Trailing_Separate : constant Display_Format := TS;
Leading_Nonseparate : constant Display_Format := LN;
Trailing_Nonseparate : constant Display_Format := TN;
subtype COBOL_Digits is COBOL_Character range '0' .. '9';
-- Digit values in display decimal
COBOL_Space : constant COBOL_Character := ' ';
COBOL_Plus : constant COBOL_Character := '+';
COBOL_Minus : constant COBOL_Character := '-';
-- Sign values for Leading_Separate and Trailing_Separate formats
subtype COBOL_Plus_Digits is COBOL_Character
range COBOL_Character'Val (16#30#) .. COBOL_Character'Val (16#39#);
-- Values used for embedded plus signs in nonseparate formats
subtype COBOL_Minus_Digits is COBOL_Character
range COBOL_Character'Val (16#20#) .. COBOL_Character'Val (16#29#);
-- Values used for embedded minus signs in nonseparate formats
end Interfaces.COBOL;
|
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ADA.NUMERICS.GENERIC_COMPLEX_ELEMENTARY_FUNCTIONS --
-- --
-- B o d y --
-- --
-- Copyright (C) 1992-2019, Free Software Foundation, Inc. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 3, or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. --
-- --
-- As a special exception under Section 7 of GPL version 3, you are granted --
-- additional permissions described in the GCC Runtime Library Exception, --
-- version 3.1, as published by the Free Software Foundation. --
-- --
-- You should have received a copy of the GNU General Public License and --
-- a copy of the GCC Runtime Library Exception along with this program; --
-- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
-- <http://www.gnu.org/licenses/>. --
-- --
-- GNAT was originally developed by the GNAT team at New York University. --
-- Extensive contributions were provided by Ada Core Technologies Inc. --
-- --
------------------------------------------------------------------------------
with Ada.Numerics.Generic_Elementary_Functions;
package body Ada.Numerics.Generic_Complex_Elementary_Functions is
package Elementary_Functions is new
Ada.Numerics.Generic_Elementary_Functions (Real'Base);
use Elementary_Functions;
PI : constant := 3.14159_26535_89793_23846_26433_83279_50288_41971;
PI_2 : constant := PI / 2.0;
Sqrt_Two : constant := 1.41421_35623_73095_04880_16887_24209_69807_85696;
Log_Two : constant := 0.69314_71805_59945_30941_72321_21458_17656_80755;
subtype T is Real'Base;
Epsilon : constant T := 2.0 ** (1 - T'Model_Mantissa);
Square_Root_Epsilon : constant T := Sqrt_Two ** (1 - T'Model_Mantissa);
Inv_Square_Root_Epsilon : constant T := Sqrt_Two ** (T'Model_Mantissa - 1);
Root_Root_Epsilon : constant T := Sqrt_Two **
((1 - T'Model_Mantissa) / 2);
Log_Inverse_Epsilon_2 : constant T := T (T'Model_Mantissa - 1) / 2.0;
Complex_Zero : constant Complex := (0.0, 0.0);
Complex_One : constant Complex := (1.0, 0.0);
Complex_I : constant Complex := (0.0, 1.0);
Half_Pi : constant Complex := (PI_2, 0.0);
--------
-- ** --
--------
function "**" (Left : Complex; Right : Complex) return Complex is
begin
if Re (Right) = 0.0
and then Im (Right) = 0.0
and then Re (Left) = 0.0
and then Im (Left) = 0.0
then
raise Argument_Error;
elsif Re (Left) = 0.0
and then Im (Left) = 0.0
and then Re (Right) < 0.0
then
raise Constraint_Error;
elsif Re (Left) = 0.0 and then Im (Left) = 0.0 then
return Left;
elsif Right = (0.0, 0.0) then
return Complex_One;
elsif Re (Right) = 0.0 and then Im (Right) = 0.0 then
return 1.0 + Right;
elsif Re (Right) = 1.0 and then Im (Right) = 0.0 then
return Left;
else
return Exp (Right * Log (Left));
end if;
end "**";
function "**" (Left : Real'Base; Right : Complex) return Complex is
begin
if Re (Right) = 0.0 and then Im (Right) = 0.0 and then Left = 0.0 then
raise Argument_Error;
elsif Left = 0.0 and then Re (Right) < 0.0 then
raise Constraint_Error;
elsif Left = 0.0 then
return Compose_From_Cartesian (Left, 0.0);
elsif Re (Right) = 0.0 and then Im (Right) = 0.0 then
return Complex_One;
elsif Re (Right) = 1.0 and then Im (Right) = 0.0 then
return Compose_From_Cartesian (Left, 0.0);
else
return Exp (Log (Left) * Right);
end if;
end "**";
function "**" (Left : Complex; Right : Real'Base) return Complex is
begin
if Right = 0.0
and then Re (Left) = 0.0
and then Im (Left) = 0.0
then
raise Argument_Error;
elsif Re (Left) = 0.0
and then Im (Left) = 0.0
and then Right < 0.0
then
raise Constraint_Error;
elsif Re (Left) = 0.0 and then Im (Left) = 0.0 then
return Left;
elsif Right = 0.0 then
return Complex_One;
elsif Right = 1.0 then
return Left;
else
return Exp (Right * Log (Left));
end if;
end "**";
------------
-- Arccos --
------------
function Arccos (X : Complex) return Complex is
Result : Complex;
begin
if X = Complex_One then
return Complex_Zero;
elsif abs Re (X) < Square_Root_Epsilon and then
abs Im (X) < Square_Root_Epsilon
then
return Half_Pi - X;
elsif abs Re (X) > Inv_Square_Root_Epsilon or else
abs Im (X) > Inv_Square_Root_Epsilon
then
return -2.0 * Complex_I * Log (Sqrt ((1.0 + X) / 2.0) +
Complex_I * Sqrt ((1.0 - X) / 2.0));
end if;
Result := -Complex_I * Log (X + Complex_I * Sqrt (1.0 - X * X));
if Im (X) = 0.0
and then abs Re (X) <= 1.00
then
Set_Im (Result, Im (X));
end if;
return Result;
end Arccos;
-------------
-- Arccosh --
-------------
function Arccosh (X : Complex) return Complex is
Result : Complex;
begin
if X = Complex_One then
return Complex_Zero;
elsif abs Re (X) < Square_Root_Epsilon and then
abs Im (X) < Square_Root_Epsilon
then
Result := Compose_From_Cartesian (-Im (X), -PI_2 + Re (X));
elsif abs Re (X) > Inv_Square_Root_Epsilon or else
abs Im (X) > Inv_Square_Root_Epsilon
then
Result := Log_Two + Log (X);
else
Result := 2.0 * Log (Sqrt ((1.0 + X) / 2.0) +
Sqrt ((X - 1.0) / 2.0));
end if;
if Re (Result) <= 0.0 then
Result := -Result;
end if;
return Result;
end Arccosh;
------------
-- Arccot --
------------
function Arccot (X : Complex) return Complex is
Xt : Complex;
begin
if abs Re (X) < Square_Root_Epsilon and then
abs Im (X) < Square_Root_Epsilon
then
return Half_Pi - X;
elsif abs Re (X) > 1.0 / Epsilon or else
abs Im (X) > 1.0 / Epsilon
then
Xt := Complex_One / X;
if Re (X) < 0.0 then
Set_Re (Xt, PI - Re (Xt));
return Xt;
else
return Xt;
end if;
end if;
Xt := Complex_I * Log ((X - Complex_I) / (X + Complex_I)) / 2.0;
if Re (Xt) < 0.0 then
Xt := PI + Xt;
end if;
return Xt;
end Arccot;
--------------
-- Arccoth --
--------------
function Arccoth (X : Complex) return Complex is
R : Complex;
begin
if X = (0.0, 0.0) then
return Compose_From_Cartesian (0.0, PI_2);
elsif abs Re (X) < Square_Root_Epsilon
and then abs Im (X) < Square_Root_Epsilon
then
return PI_2 * Complex_I + X;
elsif abs Re (X) > 1.0 / Epsilon or else
abs Im (X) > 1.0 / Epsilon
then
if Im (X) > 0.0 then
return (0.0, 0.0);
else
return PI * Complex_I;
end if;
elsif Im (X) = 0.0 and then Re (X) = 1.0 then
raise Constraint_Error;
elsif Im (X) = 0.0 and then Re (X) = -1.0 then
raise Constraint_Error;
end if;
begin
R := Log ((1.0 + X) / (X - 1.0)) / 2.0;
exception
when Constraint_Error =>
R := (Log (1.0 + X) - Log (X - 1.0)) / 2.0;
end;
if Im (R) < 0.0 then
Set_Im (R, PI + Im (R));
end if;
if Re (X) = 0.0 then
Set_Re (R, Re (X));
end if;
return R;
end Arccoth;
------------
-- Arcsin --
------------
function Arcsin (X : Complex) return Complex is
Result : Complex;
begin
-- For very small argument, sin (x) = x
if abs Re (X) < Square_Root_Epsilon and then
abs Im (X) < Square_Root_Epsilon
then
return X;
elsif abs Re (X) > Inv_Square_Root_Epsilon or else
abs Im (X) > Inv_Square_Root_Epsilon
then
Result := -Complex_I * (Log (Complex_I * X) + Log (2.0 * Complex_I));
if Im (Result) > PI_2 then
Set_Im (Result, PI - Im (X));
elsif Im (Result) < -PI_2 then
Set_Im (Result, -(PI + Im (X)));
end if;
return Result;
end if;
Result := -Complex_I * Log (Complex_I * X + Sqrt (1.0 - X * X));
if Re (X) = 0.0 then
Set_Re (Result, Re (X));
elsif Im (X) = 0.0
and then abs Re (X) <= 1.00
then
Set_Im (Result, Im (X));
end if;
return Result;
end Arcsin;
-------------
-- Arcsinh --
-------------
function Arcsinh (X : Complex) return Complex is
Result : Complex;
begin
if abs Re (X) < Square_Root_Epsilon and then
abs Im (X) < Square_Root_Epsilon
then
return X;
elsif abs Re (X) > Inv_Square_Root_Epsilon or else
abs Im (X) > Inv_Square_Root_Epsilon
then
Result := Log_Two + Log (X); -- may have wrong sign
if (Re (X) < 0.0 and then Re (Result) > 0.0)
or else (Re (X) > 0.0 and then Re (Result) < 0.0)
then
Set_Re (Result, -Re (Result));
end if;
return Result;
end if;
Result := Log (X + Sqrt (1.0 + X * X));
if Re (X) = 0.0 then
Set_Re (Result, Re (X));
elsif Im (X) = 0.0 then
Set_Im (Result, Im (X));
end if;
return Result;
end Arcsinh;
------------
-- Arctan --
------------
function Arctan (X : Complex) return Complex is
begin
if abs Re (X) < Square_Root_Epsilon and then
abs Im (X) < Square_Root_Epsilon
then
return X;
else
return -Complex_I * (Log (1.0 + Complex_I * X)
- Log (1.0 - Complex_I * X)) / 2.0;
end if;
end Arctan;
-------------
-- Arctanh --
-------------
function Arctanh (X : Complex) return Complex is
begin
if abs Re (X) < Square_Root_Epsilon and then
abs Im (X) < Square_Root_Epsilon
then
return X;
else
return (Log (1.0 + X) - Log (1.0 - X)) / 2.0;
end if;
end Arctanh;
---------
-- Cos --
---------
function Cos (X : Complex) return Complex is
begin
return
Compose_From_Cartesian
(Cos (Re (X)) * Cosh (Im (X)),
-(Sin (Re (X)) * Sinh (Im (X))));
end Cos;
----------
-- Cosh --
----------
function Cosh (X : Complex) return Complex is
begin
return
Compose_From_Cartesian
(Cosh (Re (X)) * Cos (Im (X)),
Sinh (Re (X)) * Sin (Im (X)));
end Cosh;
---------
-- Cot --
---------
function Cot (X : Complex) return Complex is
begin
if abs Re (X) < Square_Root_Epsilon and then
abs Im (X) < Square_Root_Epsilon
then
return Complex_One / X;
elsif Im (X) > Log_Inverse_Epsilon_2 then
return -Complex_I;
elsif Im (X) < -Log_Inverse_Epsilon_2 then
return Complex_I;
end if;
return Cos (X) / Sin (X);
end Cot;
----------
-- Coth --
----------
function Coth (X : Complex) return Complex is
begin
if abs Re (X) < Square_Root_Epsilon and then
abs Im (X) < Square_Root_Epsilon
then
return Complex_One / X;
elsif Re (X) > Log_Inverse_Epsilon_2 then
return Complex_One;
elsif Re (X) < -Log_Inverse_Epsilon_2 then
return -Complex_One;
else
return Cosh (X) / Sinh (X);
end if;
end Coth;
---------
-- Exp --
---------
function Exp (X : Complex) return Complex is
EXP_RE_X : constant Real'Base := Exp (Re (X));
begin
return Compose_From_Cartesian (EXP_RE_X * Cos (Im (X)),
EXP_RE_X * Sin (Im (X)));
end Exp;
function Exp (X : Imaginary) return Complex is
ImX : constant Real'Base := Im (X);
begin
return Compose_From_Cartesian (Cos (ImX), Sin (ImX));
end Exp;
---------
-- Log --
---------
function Log (X : Complex) return Complex is
ReX : Real'Base;
ImX : Real'Base;
Z : Complex;
begin
if Re (X) = 0.0 and then Im (X) = 0.0 then
raise Constraint_Error;
elsif abs (1.0 - Re (X)) < Root_Root_Epsilon
and then abs Im (X) < Root_Root_Epsilon
then
Z := X;
Set_Re (Z, Re (Z) - 1.0);
return (1.0 - (1.0 / 2.0 -
(1.0 / 3.0 - (1.0 / 4.0) * Z) * Z) * Z) * Z;
end if;
begin
ReX := Log (Modulus (X));
exception
when Constraint_Error =>
ReX := Log (Modulus (X / 2.0)) - Log_Two;
end;
ImX := Arctan (Im (X), Re (X));
if ImX > PI then
ImX := ImX - 2.0 * PI;
end if;
return Compose_From_Cartesian (ReX, ImX);
end Log;
---------
-- Sin --
---------
function Sin (X : Complex) return Complex is
begin
if abs Re (X) < Square_Root_Epsilon
and then
abs Im (X) < Square_Root_Epsilon
then
return X;
end if;
return
Compose_From_Cartesian
(Sin (Re (X)) * Cosh (Im (X)),
Cos (Re (X)) * Sinh (Im (X)));
end Sin;
----------
-- Sinh --
----------
function Sinh (X : Complex) return Complex is
begin
if abs Re (X) < Square_Root_Epsilon and then
abs Im (X) < Square_Root_Epsilon
then
return X;
else
return Compose_From_Cartesian (Sinh (Re (X)) * Cos (Im (X)),
Cosh (Re (X)) * Sin (Im (X)));
end if;
end Sinh;
----------
-- Sqrt --
----------
function Sqrt (X : Complex) return Complex is
ReX : constant Real'Base := Re (X);
ImX : constant Real'Base := Im (X);
XR : constant Real'Base := abs Re (X);
YR : constant Real'Base := abs Im (X);
R : Real'Base;
R_X : Real'Base;
R_Y : Real'Base;
begin
-- Deal with pure real case, see (RM G.1.2(39))
if ImX = 0.0 then
if ReX > 0.0 then
return
Compose_From_Cartesian
(Sqrt (ReX), 0.0);
elsif ReX = 0.0 then
return X;
else
return
Compose_From_Cartesian
(0.0, Real'Copy_Sign (Sqrt (-ReX), ImX));
end if;
elsif ReX = 0.0 then
R_X := Sqrt (YR / 2.0);
if ImX > 0.0 then
return Compose_From_Cartesian (R_X, R_X);
else
return Compose_From_Cartesian (R_X, -R_X);
end if;
else
R := Sqrt (XR ** 2 + YR ** 2);
-- If the square of the modulus overflows, try rescaling the
-- real and imaginary parts. We cannot depend on an exception
-- being raised on all targets.
if R > Real'Base'Last then
raise Constraint_Error;
end if;
-- We are solving the system
-- XR = R_X ** 2 - Y_R ** 2 (1)
-- YR = 2.0 * R_X * R_Y (2)
--
-- The symmetric solution involves square roots for both R_X and
-- R_Y, but it is more accurate to use the square root with the
-- larger argument for either R_X or R_Y, and equation (2) for the
-- other.
if ReX < 0.0 then
R_Y := Sqrt (0.5 * (R - ReX));
R_X := YR / (2.0 * R_Y);
else
R_X := Sqrt (0.5 * (R + ReX));
R_Y := YR / (2.0 * R_X);
end if;
end if;
if Im (X) < 0.0 then -- halve angle, Sqrt of magnitude
R_Y := -R_Y;
end if;
return Compose_From_Cartesian (R_X, R_Y);
exception
when Constraint_Error =>
-- Rescale and try again
R := Modulus (Compose_From_Cartesian (Re (X / 4.0), Im (X / 4.0)));
R_X := 2.0 * Sqrt (0.5 * R + 0.5 * Re (X / 4.0));
R_Y := 2.0 * Sqrt (0.5 * R - 0.5 * Re (X / 4.0));
if Im (X) < 0.0 then -- halve angle, Sqrt of magnitude
R_Y := -R_Y;
end if;
return Compose_From_Cartesian (R_X, R_Y);
end Sqrt;
---------
-- Tan --
---------
function Tan (X : Complex) return Complex is
begin
if abs Re (X) < Square_Root_Epsilon and then
abs Im (X) < Square_Root_Epsilon
then
return X;
elsif Im (X) > Log_Inverse_Epsilon_2 then
return Complex_I;
elsif Im (X) < -Log_Inverse_Epsilon_2 then
return -Complex_I;
else
return Sin (X) / Cos (X);
end if;
end Tan;
----------
-- Tanh --
----------
function Tanh (X : Complex) return Complex is
begin
if abs Re (X) < Square_Root_Epsilon and then
abs Im (X) < Square_Root_Epsilon
then
return X;
elsif Re (X) > Log_Inverse_Epsilon_2 then
return Complex_One;
elsif Re (X) < -Log_Inverse_Epsilon_2 then
return -Complex_One;
else
return Sinh (X) / Cosh (X);
end if;
end Tanh;
end Ada.Numerics.Generic_Complex_Elementary_Functions;
|
-- C41306B.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 IF F IS A FUNCTION RETURNING AN ACCESS VALUE DESIGNATING
-- A TASK OF A TYPE HAVING
-- AN ENTRY E , AN ENTRY CALL OF THE FORM
--
-- F.ALL.E
--
-- IS PERMITTED.
-- RM 02/02/82
-- ABW 07/16/82
-- EG 05/28/85
WITH REPORT; USE REPORT;
PROCEDURE C41306B IS
BEGIN
TEST ( "C41306B" , "CHECK THAT IF F IS A FUNCTION RETURNING" &
" AN ACCESS VALUE DESIGNATING" &
" A TASK OF A TYPE HAVING AN ENTRY E , AN" &
" ENTRY CALL OF THE FORM F.ALL.E IS" &
" PERMITTED" );
-------------------------------------------------------------------
DECLARE
X : INTEGER := 0 ;
TASK TYPE T IS
ENTRY E ;
END T ;
TYPE A_T IS ACCESS T ;
TASK BODY T IS
BEGIN
ACCEPT E DO
X := IDENT_INT(17) ;
END E ;
END T ;
FUNCTION F1 RETURN A_T IS
A_T_VAR1 : A_T := NEW T ;
BEGIN
RETURN A_T_VAR1 ;
END F1 ;
FUNCTION F2 (A, B : BOOLEAN) RETURN A_T IS
A_T_VAR2 : A_T := NEW T;
BEGIN
IF A AND B THEN
NULL;
END IF;
RETURN A_T_VAR2;
END F2;
BEGIN
F1.ALL.E ; -- THE ELABOR. OF F1 (BODY) ACTIVATES THE TASK,
-- WHICH PROCEEDS TO WAIT FOR ENTRY E TO
-- BE CALLED.
-- THE CALLED ENTRY CAUSES X TO BE SET TO 17 .
IF X /= 17
THEN
FAILED( "WRONG VALUE FOR GLOBAL VARIABLE (1)" );
END IF;
X := 0;
F2(TRUE, TRUE).ALL.E; -- THE ELABORATION OF F2 (BODY)
-- ACTIVATES THE TASK, WHICH
-- PROCEEDS TO WAIT FOR THE
-- ENTRY E TO BE CALLED.
-- THE CALLED ENTRY CAUSES X TO BE
-- SET TO 17.
IF X /= 17 THEN
FAILED ("WRONG VALUE FOR GLOBAL VARIABLE (2)");
END IF;
END ;
-------------------------------------------------------------------
DECLARE
X : INTEGER := 0 ;
TASK TYPE T IS
ENTRY E ;
END T ;
TYPE A_T IS ACCESS T ;
TASK BODY T IS
BEGIN
ACCEPT E DO
X := IDENT_INT(17) ;
END E ;
END T ;
FUNCTION F3 RETURN A_T IS
BEGIN
RETURN NEW T ;
END F3;
FUNCTION F4 (C, D : BOOLEAN) RETURN A_T IS
BEGIN
IF C AND D THEN
NULL;
END IF;
RETURN NEW T;
END F4;
BEGIN
F3.ALL.E ; -- THE ELABOR. OF F3 (BODY) ACTIVATES THE TASK,
-- WHICH PROCEEDS TO WAIT FOR ENTRY E TO
-- BE CALLED.
-- THE CALLED ENTRY CAUSES X TO BE SET TO 17 .
IF X /= 17
THEN
FAILED( "WRONG VALUE FOR GLOBAL VARIABLE (3)" );
END IF;
X := 0;
F4(TRUE, TRUE).ALL.E; -- THE ELABORATION OF F4 (BODY)
-- ACTIVATES THE TASK, WHICH
-- PROCEEDS TO WAIT FOR THE
-- ENTRY E TO BE CALLED.
-- THE CALLED ENTRY CAUSES X TO BE
-- SET TO 17.
IF X /= 17 THEN
FAILED ("WRONG VALUE FOR GLOBAL VARIABLE (4)");
END IF;
END ;
-------------------------------------------------------------------
DECLARE
X : INTEGER := 0 ;
TASK TYPE T IS
ENTRY E ;
END T ;
TYPE A_T IS ACCESS T ;
TASK BODY T IS
BEGIN
ACCEPT E DO
X := IDENT_INT(17) ;
END E ;
END T ;
BEGIN
DECLARE
F3 : A_T := NEW T;
BEGIN
F3.ALL.E;
-- THE CALLED ENTRY CAUSES X TO BE SET TO 17 .
IF X /= 17 THEN
FAILED( "WRONG VALUE FOR GLOBAL VARIABLE (5)" );
END IF;
END;
END ;
-------------------------------------------------------------------
RESULT;
END C41306B;
|
with Text_Io,sequential_io,Direct_io;
with Ada.strings.unbounded;
use text_io;
use Ada.strings.unbounded;
procedure practica5 is
Type TDatos is record
Palabra:string(1..15);-- Este el tipo de dato que tiene el fichero de acceso directo
numero:Natural;
end record;
package ficheroSec is new Sequential_Io(positive);-- Declaro los ficheros indice y secuencial y de que estructuras
package ficheroInd is new Direct_io(TDatos);-- se componen ambos ficheros
use FicheroSec,ficheroInd;
-- declaro las variables que voy a utilizar--
Nombre_dat,nombre_ind,Nombre_txt:string(1..50);
Lon_dat,lon_Ind,lon_txt:Natural;
Fichero_dat:FicheroInd.File_type;
fichero_Ind:FicheroSec.File_type;
fichero_Txt:Text_io.File_type;
Dato:Tdatos;
N:Natural;
Linea:unbounded_string:=null_unbounded_string;
begin
-- Pido los nombres de los ficheros por pantalla
put_line("Deme el Nombre del fichero con extencion .ind");
get_line(Nombre_ind,Lon_ind);
put_line("Deme el Nombre del Fichero con extencion .dat");
get_line(Nombre_dat,Lon_dat);
Put_line("Deme el nombre del fichero de texto destino");
get_line(Nombre_txt,Lon_txt);
-- Abro el fichero secuencial y el de acceso directo
open(Fichero_Dat,in_file,Nombre_dat(1..lon_Dat));
open(Fichero_Ind,in_file,Nombre_Ind(1..Lon_ind));
Create(fichero_Txt,out_file,Nombre_Txt(1..lon_Txt));
loop
read(fichero_ind,N);
-- leo en el fichero la posicion
Read(fichero_dat,Dato,Ficheroind.positive_count(N));
-- leo el dato en la posicion que marac el fichero anterior
if index(to_unbounded_string(Dato.Palabra(1..dato.Numero)),".")= dato.Numero then
-- si la palabra tiene el punto al final lo concateno a linea y lo escribo en el fichero
Linea:=Linea & to_unbounded_string(Dato.Palabra(1..dato.Numero));
put_line(Fichero_txt,To_string(Linea));
linea:=null_unbounded_string;
else
--si no entoces lo concateno con un espacio a linea
Linea:=Linea & to_unbounded_string(Dato.Palabra(1..dato.Numero)) & " ";
end if;
exit when end_of_File(fichero_ind);
end loop;
If Length(Linea)/=0 then-- si al final no hay punto entoces le quito el espacio y
--lo escribo en el fichero
Linea:=to_unbounded_string(slice(linea,1,Length(Linea)-1));
put_line(Fichero_txt,To_string(Linea));
end if;
close(Fichero_ind);
Close(Fichero_Dat);--Cierro los ficheros
Close(Fichero_Txt);
exception
when ficheroInd.Name_Error | FicheroSec.name_Error =>
put_line("El nombre del archivo no existe");
when ficheroInd.End_Error | FicheroSec.End_Error =>
put_line("No ha escrito la ruta del archivo");
When FicheroInd.Device_Error | FicheroSec.Device_Error =>
Put_line("No puede Escribir en el dispositivo");
when Others =>
Put_line("Error desconocido");
end Practica5;
|
pragma Assertion_Policy (Check);
with Ada.Text_IO; use Ada.Text_IO;
with Littlefs; use Littlefs;
with RAM_BD;
with Interfaces; use Interfaces;
with Interfaces.C; use Interfaces.C;
with System.Storage_Elements; use System.Storage_Elements;
procedure Tests is
FS : aliased LFS_T;
Block : constant access constant LFS_Config := RAM_BD.Create (2048 * 200);
procedure Create_File (Path : String);
procedure Read_File (Path : String);
procedure Tree (Path : String);
-----------------
-- Create_File --
-----------------
procedure Create_File (Path : String) is
FD : aliased LFS_File;
Data : Storage_Array (1 .. 42);
begin
pragma Assert (Open (FS, FD, Path, LFS_O_CREAT + LFS_O_RDWR) = 0);
Data := (others => 42);
pragma Assert (Write (FS, FD, Data (Data'First)'Address,
Data'Length) = Data'Length);
pragma Assert (Close (FS, FD) = 0);
end Create_File;
---------------
-- Read_File --
---------------
procedure Read_File (Path : String) is
FD : aliased LFS_File;
Data : Storage_Array (1 .. 42);
begin
pragma Assert (Open (FS, FD, Path, LFS_O_RDONLY) = 0);
pragma Assert (Read (FS, FD, Data (Data'First)'Address,
Data'Length + 20) = Data'Length);
for Elt of Data loop
pragma Assert (Elt = 42);
end loop;
pragma Assert (Close (FS, FD) = 0);
end Read_File;
----------
-- Tree --
----------
procedure Tree (Path : String) is
Dir : aliased LFS_Dir;
Err : int;
Info : aliased Entry_Info;
begin
Err := Open (FS, Dir, Path);
if Err = 0 then
while Read (FS, Dir, Info) > 0 loop
declare
Name : constant String := Littlefs.Name (Info);
Sub : constant String := (if Path = "/"
then "/" & Name
else Path & "/" & Name);
begin
if Name /= "." and then Name /= ".." then
Put_Line (Sub);
if Kind (Info) = Directory then
Tree (Sub);
end if;
end if;
end;
end loop;
Err := Close (FS, Dir);
end if;
end Tree;
begin
pragma Assert (Format (FS, Block.all) = 0);
pragma Assert (Mount (FS, Block.all) = 0);
pragma Assert (Mkdir (FS, "/dir1") = 0);
pragma Assert (Mkdir (FS, "/dir2") = 0);
pragma Assert (Mkdir (FS, "/dir1/sub1") = 0);
pragma Assert (Mkdir (FS, "/dir1/sub2") = 0);
pragma Assert (Mkdir (FS, "/dir1/sub2/subsub1") = 0);
Create_File ("/test1.txt");
Create_File ("/test2.txt");
Create_File ("/test3.txt");
Create_File ("/dir1/test1.txt");
Create_File ("/dir1/sub2/subsub1/test1.txt");
Read_File ("/test1.txt");
Read_File ("/test2.txt");
Read_File ("/test3.txt");
Read_File ("/dir1/test1.txt");
Read_File ("/dir1/sub2/subsub1/test1.txt");
declare
FD : aliased LFS_File;
begin
pragma Assert
(Open (FS, FD, "/doesnt_exists", LFS_O_RDONLY) = LFS_ERR_NOENT);
pragma Assert
(Open (FS, FD, "/dir1/doesnt_exists", LFS_O_RDONLY) = LFS_ERR_NOENT);
end;
Tree ("/");
end Tests;
|
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- Web Framework --
-- --
-- Runtime Library Component --
-- --
------------------------------------------------------------------------------
-- --
-- Copyright © 2013, Vadim Godunko <vgodunko@gmail.com> --
-- All rights reserved. --
-- --
-- Redistribution and use in source and binary forms, with or without --
-- modification, are permitted provided that the following conditions --
-- are met: --
-- --
-- * Redistributions of source code must retain the above copyright --
-- notice, this list of conditions and the following disclaimer. --
-- --
-- * Redistributions in binary form must reproduce the above copyright --
-- notice, this list of conditions and the following disclaimer in the --
-- documentation and/or other materials provided with the distribution. --
-- --
-- * Neither the name of the Vadim Godunko, IE nor the names of its --
-- contributors may be used to endorse or promote products derived from --
-- this software without specific prior written permission. --
-- --
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS --
-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT --
-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR --
-- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT --
-- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, --
-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED --
-- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR --
-- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF --
-- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING --
-- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS --
-- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --
-- --
------------------------------------------------------------------------------
-- $Revision$ $Date$
------------------------------------------------------------------------------
with League.Strings;
with League.Text_Codecs;
with Matreshka.Internals.Unicode.Characters.Latin;
with Matreshka.FastCGI.Protocol;
package body Matreshka.FastCGI.Descriptors is
use Matreshka.Internals.Unicode.Characters.Latin;
use type Ada.Streams.Stream_Element_Offset;
ASCII_Codec : constant League.Text_Codecs.Text_Codec
:= League.Text_Codecs.Codec
-- (League.Strings.To_Universal_String ("ASCII"));
(League.Strings.To_Universal_String ("ISO-8859-1"));
ISO88591_Codec : constant League.Text_Codecs.Text_Codec
:= League.Text_Codecs.Codec
(League.Strings.To_Universal_String ("ISO-8859-1"));
Field_Separator : constant Ada.Streams.Stream_Element_Array (0 .. 0)
:= (0 => Colon);
End_Mark : constant Ada.Streams.Stream_Element_Array (0 .. 1)
:= (Carriage_Return, Line_Feed);
procedure Send_FCGI_Header
(Self : in out Abstract_Descriptor'Class;
Packet_Type : Matreshka.FastCGI.Protocol.FCGI_Packet_Type;
Content_Length : Matreshka.FastCGI.Protocol.FCGI_Content_Length;
Padding_Length : Matreshka.FastCGI.Protocol.FCGI_Padding_Length);
-- Send FCGI Header.
procedure Send_FCGI_Packet
(Self : in out Abstract_Descriptor'Class;
Packet_Type : Matreshka.FastCGI.Protocol.FCGI_Packet_Type;
Content : Ada.Streams.Stream_Element_Array);
-- Send FCGI packet of specified type and content.
function Compute_Padding_Length
(Content_Length : Matreshka.FastCGI.Protocol.FCGI_Content_Length)
return Matreshka.FastCGI.Protocol.FCGI_Padding_Length;
-- Compute padding length.
----------------------------
-- Compute_Padding_Length --
----------------------------
function Compute_Padding_Length
(Content_Length : Matreshka.FastCGI.Protocol.FCGI_Content_Length)
return Matreshka.FastCGI.Protocol.FCGI_Padding_Length is
begin
return
(if Content_Length mod 8 = 0 then 0 else 8 - Content_Length mod 8);
end Compute_Padding_Length;
----------------------------
-- Internal_Begin_Request --
----------------------------
not overriding procedure Internal_Begin_Request
(Self : in out Abstract_Descriptor;
Socket : GNAT.Sockets.Socket_Type;
Request_Id : Matreshka.FastCGI.FCGI_Request_Identifier) is
begin
Self.Socket := Socket;
Self.Request_Id := Request_Id;
Self.Params_Done := False;
Self.Headers_Done := False;
Self.Stdout_Data.Clear;
Self.Stderr_Data.Clear;
end Internal_Begin_Request;
--------------------------
-- Internal_End_Headers --
--------------------------
procedure Internal_End_Headers
(Self : in out Abstract_Descriptor'Class) is
begin
Self.Headers_Done := True;
Self.Send_FCGI_Packet (Matreshka.FastCGI.Protocol.FCGI_Stdout, End_Mark);
if Self.Params_Done then
-- Flush accumulated data.
Self.Send_FCGI_Packet
(Matreshka.FastCGI.Protocol.FCGI_Stderr,
Self.Stderr_Data.To_Stream_Element_Array);
Self.Stderr_Data.Clear;
Self.Send_FCGI_Packet
(Matreshka.FastCGI.Protocol.FCGI_Stdout,
Self.Stdout_Data.To_Stream_Element_Array);
Self.Stdout_Data.Clear;
end if;
end Internal_End_Headers;
---------------------
-- Internal_Header --
---------------------
procedure Internal_Header
(Self : in out Abstract_Descriptor'Class;
Name : Standard.FastCGI.Field_Names.Field_Name;
Value : Standard.FastCGI.Field_Values.Field_Value)
is
Encoded_Name : constant
League.Stream_Element_Vectors.Stream_Element_Vector
:= ASCII_Codec.Encode (Name.To_Universal_String);
Encoded_Value : constant
League.Stream_Element_Vectors.Stream_Element_Vector
:= ISO88591_Codec.Encode (Value.To_Universal_String);
Content_Length : constant Matreshka.FastCGI.Protocol.FCGI_Content_Length
:= Encoded_Name.Length
+ Field_Separator'Length
+ Encoded_Value.Length
+ End_Mark'Length;
Padding_Length : constant Matreshka.FastCGI.Protocol.FCGI_Padding_Length
:= Compute_Padding_Length (Content_Length);
Padding : constant
Ada.Streams.Stream_Element_Array (1 .. Padding_Length)
:= (others => 0);
Last : Ada.Streams.Stream_Element_Offset;
begin
-- Send FCGI header.
Self.Send_FCGI_Header
(Matreshka.FastCGI.Protocol.FCGI_Stdout,
Content_Length,
Padding_Length);
-- Send HTTP message-header.
GNAT.Sockets.Send_Socket
(Self.Socket, Encoded_Name.To_Stream_Element_Array, Last);
if Last /= Encoded_Name.To_Stream_Element_Array'Last then
raise Program_Error;
end if;
GNAT.Sockets.Send_Socket (Self.Socket, Field_Separator, Last);
if Last /= Field_Separator'Last then
raise Program_Error;
end if;
GNAT.Sockets.Send_Socket
(Self.Socket, Encoded_Value.To_Stream_Element_Array, Last);
if Last /= Encoded_Value.To_Stream_Element_Array'Last then
raise Program_Error;
end if;
GNAT.Sockets.Send_Socket (Self.Socket, End_Mark, Last);
if Last /= End_Mark'Last then
raise Program_Error;
end if;
-- Send FCGI padding.
GNAT.Sockets.Send_Socket (Self.Socket, Padding, Last);
if Last /= Padding'Last then
raise Program_Error;
end if;
end Internal_Header;
---------------------
-- Internal_Params --
---------------------
procedure Internal_Params
(Self : in out Abstract_Descriptor'Class;
Buffer : Ada.Streams.Stream_Element_Array)
is
procedure Decode_Length
(First : in out Ada.Streams.Stream_Element_Offset;
Length : out Ada.Streams.Stream_Element_Offset);
-------------------
-- Decode_Length --
-------------------
procedure Decode_Length
(First : in out Ada.Streams.Stream_Element_Offset;
Length : out Ada.Streams.Stream_Element_Offset)
is
use type Ada.Streams.Stream_Element;
begin
if (Buffer (First) and 16#80#) = 0 then
Length := Ada.Streams.Stream_Element_Offset (Buffer (First));
First := First + 1;
else
Length :=
Ada.Streams.Stream_Element_Offset (Buffer (First) and 16#7F#)
* 2 ** 24
+ Ada.Streams.Stream_Element_Offset (Buffer (First + 1))
* 2 ** 16
+ Ada.Streams.Stream_Element_Offset (Buffer (First + 2))
* 2 ** 8
+ Ada.Streams.Stream_Element_Offset (Buffer (First + 3));
First := First + 4;
end if;
end Decode_Length;
First : Ada.Streams.Stream_Element_Offset := Buffer'First;
Name_Length : Ada.Streams.Stream_Element_Offset;
Value_Length : Ada.Streams.Stream_Element_Offset;
begin
if Buffer'Length = 0 then
Self.Params_Done := True;
-- Flush accumulated stderr data.
if not Self.Stderr_Data.Is_Empty then
Self.Send_FCGI_Packet
(Matreshka.FastCGI.Protocol.FCGI_Stderr,
Self.Stderr_Data.To_Stream_Element_Array);
Self.Stderr_Data.Clear;
end if;
-- Dispatch event.
Self.Internal_End_Params;
else
while First < Buffer'Last loop
Decode_Length (First, Name_Length);
Decode_Length (First, Value_Length);
Self.Internal_Param
(Standard.FastCGI.Field_Names.To_Field_Name
(ASCII_Codec.Decode
(Buffer (First .. First + Name_Length - 1))),
Standard.FastCGI.Field_Values.To_Field_Value
(ISO88591_Codec.Decode
(Buffer
(First + Name_Length
.. First + Name_Length + Value_Length - 1))));
First := First + Name_Length + Value_Length;
end loop;
end if;
end Internal_Params;
---------------------
-- Internal_Stderr --
---------------------
procedure Internal_Stderr
(Self : in out Abstract_Descriptor'Class;
Data : Ada.Streams.Stream_Element_Array) is
begin
if not Self.Params_Done then
Self.Stderr_Data.Append (Data);
else
Self.Send_FCGI_Packet (Matreshka.FastCGI.Protocol.FCGI_Stderr, Data);
end if;
end Internal_Stderr;
---------------------
-- Internal_Stdout --
---------------------
procedure Internal_Stdout
(Self : in out Abstract_Descriptor'Class;
Data : Ada.Streams.Stream_Element_Array) is
begin
if not Self.Params_Done
or not Self.Headers_Done
then
Self.Stdout_Data.Append (Data);
else
Self.Send_FCGI_Packet (Matreshka.FastCGI.Protocol.FCGI_Stdout, Data);
end if;
end Internal_Stdout;
----------------------
-- Send_FCGI_Header --
----------------------
procedure Send_FCGI_Header
(Self : in out Abstract_Descriptor'Class;
Packet_Type : Matreshka.FastCGI.Protocol.FCGI_Packet_Type;
Content_Length : Matreshka.FastCGI.Protocol.FCGI_Content_Length;
Padding_Length : Matreshka.FastCGI.Protocol.FCGI_Padding_Length)
is
Header : Matreshka.FastCGI.Protocol.FCGI_Header;
Raw_Header : Matreshka.FastCGI.Protocol.Raw_FCGI_Header;
for Raw_Header'Address use Header'Address;
pragma Import (Ada, Raw_Header);
Last : Ada.Streams.Stream_Element_Offset;
begin
Matreshka.FastCGI.Protocol.Initialize
(Header, Packet_Type, Self.Request_Id, Content_Length, Padding_Length);
GNAT.Sockets.Send_Socket (Self.Socket, Raw_Header, Last);
if Last /= Raw_Header'Last then
raise Program_Error;
end if;
end Send_FCGI_Header;
----------------------
-- Send_FCGI_Packet --
----------------------
procedure Send_FCGI_Packet
(Self : in out Abstract_Descriptor'Class;
Packet_Type : Matreshka.FastCGI.Protocol.FCGI_Packet_Type;
Content : Ada.Streams.Stream_Element_Array)
is
Padding_Length : constant Matreshka.FastCGI.Protocol.FCGI_Padding_Length
:= Compute_Padding_Length (Content'Length);
Padding : constant
Ada.Streams.Stream_Element_Array (1 .. Padding_Length)
:= (others => 0);
Last : Ada.Streams.Stream_Element_Offset;
begin
Self.Send_FCGI_Header (Packet_Type, Content'Length, Padding_Length);
GNAT.Sockets.Send_Socket (Self.Socket, Content, Last);
if Last /= Content'Last then
raise Program_Error;
end if;
GNAT.Sockets.Send_Socket (Self.Socket, Padding, Last);
if Last /= Padding'Last then
raise Program_Error;
end if;
end Send_FCGI_Packet;
end Matreshka.FastCGI.Descriptors;
|
-- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2018 - 2019 Joakim Strandberg <joakim@mequinox.se>
--
-- 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.Characters.Handling;
with Ada.Characters.Latin_1;
package body Xml_Parser_Utils is
use Ada.Characters.Handling;
package L1 renames Ada.Characters.Latin_1;
use all type Ada.Strings.Unbounded.Unbounded_String;
use all type Wayland_XML.Arg_Tag;
use all type Wayland_XML.Event_Tag;
use all type Wayland_XML.Request_Tag;
use all type Wayland_XML.Interface_Tag;
use all type Wayland_XML.Protocol_Tag;
use all type Wayland_XML.Arg_Type_Attribute;
use all type Wayland_XML.Event_Child_Kind_Id;
use all type Wayland_XML.Request_Child_Kind_Id;
use all type Wayland_XML.Interface_Child_Kind_Id;
use all type Wayland_XML.Protocol_Child_Kind_Id;
use type Ada.Containers.Count_Type;
-- This procedure strips away the first few characters if they
-- are "wl_", "wp_", or "zwp_".
procedure Remove_Prefix
(Name : in out Ada.Strings.Unbounded.Unbounded_String) is
begin
if Name = "Wl_" or Name = "Wp_" or Name = "Zwp_" or Name = "Zxdg_" then
Set_Unbounded_String (Name, "");
end if;
end Remove_Prefix;
function Adaify_Variable_Name (Old_Name : String) return String is
Result : constant String := Adaify_Name (Old_Name);
begin
if Result = "Interface" then
return Result & "_V";
else
return Result;
end if;
end Adaify_Variable_Name;
function Adaify_Name (Old_Name : String) return String is
New_Name : Ada.Strings.Unbounded.Unbounded_String;
P : Integer := Old_Name'First;
CP : Character := L1.NUL;
Is_Previous_Lowercase : Boolean := False;
Is_Previous_A_Number : Boolean := False;
Is_Previous_An_Undercase : Boolean := False;
Is_Previous_V : Boolean := False;
begin
CP := Old_Name (P);
P := P + 1;
Append (New_Name, To_Upper (CP));
while P <= Old_Name'Last loop
CP := Old_Name (P);
P := P + 1;
if CP = '_' then
Append (New_Name, "_");
Remove_Prefix (New_Name);
Is_Previous_An_Undercase := True;
else
if Is_Digit (CP) then
if Is_Previous_A_Number then
Append (New_Name, CP);
elsif Is_Previous_An_Undercase then
Append (New_Name, CP);
elsif Is_Previous_V then
Append (New_Name, CP);
Is_Previous_V := False;
else
Append (New_Name, "_");
Remove_Prefix (New_Name);
Append (New_Name, CP);
end if;
Is_Previous_A_Number := True;
else
if Is_Upper (CP) then
if Is_Previous_An_Undercase then
Append (New_Name, CP);
Is_Previous_Lowercase := False;
elsif Is_Previous_Lowercase then
Append (New_Name, "_");
Remove_Prefix (New_Name);
Append (New_Name, CP);
Is_Previous_Lowercase := False;
else
Append (New_Name, To_Lower (CP));
end if;
else
if Is_Previous_An_Undercase then
Append (New_Name, To_Upper (CP));
Is_Previous_V := CP = 'v';
else
Append (New_Name, CP);
end if;
Is_Previous_Lowercase := True;
end if;
Is_Previous_A_Number := False;
end if;
Is_Previous_An_Undercase := False;
end if;
end loop;
if To_String (New_Name) = "Class_" then
Set_Unbounded_String (New_Name, "Class_V");
-- To handle the following case:
-- <request name="set_class">
-- ...
-- <arg name="class_" type="string" summary="surface class"/>
-- </request>
-- Identifiers in Ada cannot end with underscore "_".
end if;
if To_String (New_Name) = "Delay" then
Set_Unbounded_String (New_Name, "Delay_V");
-- To handle:
-- <arg name="delay" type="int" summary="delay in ..."/>
-- "delay" is a reserved word in Ada.
end if;
return To_String (New_Name);
end Adaify_Name;
function Arg_Type_As_String (Arg_Tag : Wayland_XML.Arg_Tag) return String is
N : Ada.Strings.Unbounded.Unbounded_String;
begin
case Type_Attribute (Arg_Tag) is
when Type_Integer =>
Set_Unbounded_String (N, "Integer");
when Type_Unsigned_Integer =>
Set_Unbounded_String (N, "Unsigned_32");
when Type_String =>
Set_Unbounded_String (N, "chars_ptr");
when Type_FD =>
Set_Unbounded_String (N, "File_Descriptor");
when Type_New_Id | Type_Object =>
if Exists_Interface_Attribute (Arg_Tag) then
Set_Unbounded_String
(N, Adaify_Name (Interface_Attribute (Arg_Tag)) & "_Ptr");
else
Set_Unbounded_String (N, "Void_Ptr");
end if;
when Type_Fixed =>
Set_Unbounded_String (N, "Fixed");
when Type_Array =>
Set_Unbounded_String (N, "Wayland_Array");
end case;
return To_String (N);
end Arg_Type_As_String;
function Number_Of_Args
(Request_Tag : aliased Wayland_XML.Request_Tag) return Natural is
N : Natural := 0;
begin
for Child of Children (Request_Tag) loop
if Child.Kind_Id = Child_Arg then
N := N + 1;
end if;
end loop;
return N;
end Number_Of_Args;
function Is_New_Id_Argument_Present
(Request_Tag : aliased Wayland_XML.Request_Tag) return Boolean is
begin
for Child of Children (Request_Tag) loop
if Child.Kind_Id = Child_Arg
and then Exists_Type_Attribute (Child.Arg_Tag.all)
and then Type_Attribute (Child.Arg_Tag.all) = Type_New_Id
then
return True;
end if;
end loop;
return False;
end Is_New_Id_Argument_Present;
function Is_Interface_Specified
(Request_Tag : aliased Wayland_XML.Request_Tag) return Boolean is
begin
for Child of Children (Request_Tag) loop
if Child.Kind_Id = Child_Arg
and then Exists_Type_Attribute (Child.Arg_Tag.all)
and then Type_Attribute (Child.Arg_Tag.all) = Type_New_Id
and then Exists_Interface_Attribute (Child.Arg_Tag.all)
then
return True;
end if;
end loop;
return False;
end Is_Interface_Specified;
function Find_Specified_Interface
(Request_Tag : aliased Wayland_XML.Request_Tag) return String is
begin
for Child of Children (Request_Tag) loop
if Child.Kind_Id = Child_Arg
and then Exists_Type_Attribute (Child.Arg_Tag.all)
and then Type_Attribute (Child.Arg_Tag.all) = Type_New_Id
and then Exists_Interface_Attribute (Child.Arg_Tag.all)
then
return Interface_Attribute (Child.Arg_Tag.all);
end if;
end loop;
raise Interface_Not_Found_Exception;
end Find_Specified_Interface;
function Is_Request_Destructor
(Request_Tag : aliased Wayland_XML.Request_Tag) return Boolean
is
Result : Boolean := False;
V : Wayland_XML.Request_Child_Vectors.Vector;
begin
for Child of Children (Request_Tag) loop
if Child.Kind_Id = Child_Arg then
V.Append (Child);
end if;
end loop;
if Exists_Type_Attribute (Request_Tag)
and then Type_Attribute (Request_Tag) = "destructor"
then
pragma Assert (V.Length = 0);
Result := True;
end if;
return Result;
end Is_Request_Destructor;
function Get_Destructor
(Interface_Tag : aliased Wayland_XML.Interface_Tag) return String is
begin
for Child of Children (Interface_Tag) loop
case Child.Kind_Id is
when Child_Dummy =>
null;
when Child_Description =>
null;
when Child_Request =>
if Is_Request_Destructor (Child.Request_Tag.all) then
return Name (Child.Request_Tag.all);
end if;
when Child_Event =>
null;
when Child_Enum =>
null;
end case;
end loop;
return "";
end Get_Destructor;
function Exists_Any_Event_Tag
(Interface_Tag : aliased Wayland_XML.Interface_Tag) return Boolean
is
Result : Boolean := False;
begin
for Child of Children (Interface_Tag) loop
case Child.Kind_Id is
when Child_Dummy =>
null;
when Child_Description =>
null;
when Child_Request =>
null;
when Child_Event =>
Result := True;
exit;
when Child_Enum =>
null;
end case;
end loop;
return Result;
end Exists_Any_Event_Tag;
function Make (Text : String) return Interval_Identifier is
Interval : Xml_Parser_Utils.Interval := (First => 1, Last => 0);
P : Integer := Text'First;
Prev_P : Integer := P;
Prev_Prev_P : Integer;
CP : Character;
Is_Previous_New_Line : Boolean := False;
begin
return This : Interval_Identifier do
while
P in Text'Range
loop
Prev_Prev_P := Prev_P;
Prev_P := P;
CP := Text (P);
P := P + 1;
if CP = L1.LF then
if Prev_P > Text'First then
if not Is_Previous_New_Line then
Interval.Last := Prev_Prev_P;
This.My_Intervals.Append (Interval);
else
Interval := (First => 1, Last => 0);
This.My_Intervals.Append (Interval);
end if;
end if;
Is_Previous_New_Line := True;
elsif CP = L1.CR then
Is_Previous_New_Line := True;
else
if Is_Previous_New_Line then
Interval.First := Prev_P;
end if;
Is_Previous_New_Line := False;
end if;
end loop;
end return;
end Make;
function Remove_Tabs (Text : String) return String is
S : Ada.Strings.Unbounded.Unbounded_String;
P : Integer := Text'First;
CP : Character;
begin
while P in Text'Range loop
CP := Text (P);
P := P + 1;
if CP /= L1.HT then
Ada.Strings.Unbounded.Append (S, CP);
else
Ada.Strings.Unbounded.Append (S, " ");
end if;
end loop;
return To_String (S);
end Remove_Tabs;
end Xml_Parser_Utils;
|
-----------------------------------------------------------------------
-- util-serialize-io-xml -- XML Serialization Driver
-- Copyright (C) 2011, 2012, 2013, 2016, 2017, 2020, 2021 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.
-----------------------------------------------------------------------
with Ada.Characters.Conversions;
with Unicode;
with Unicode.CES.Utf8;
with Util.Log.Loggers;
with Util.Strings;
with Util.Dates.ISO8601;
with Util.Streams.Texts.TR;
with Util.Streams.Texts.WTR;
with Util.Beans.Objects.Maps;
package body Util.Serialize.IO.XML is
use Sax.Readers;
use Sax.Exceptions;
use Sax.Locators;
use Sax.Attributes;
use Unicode;
use Unicode.CES;
use Ada.Strings.Unbounded;
-- The logger
Log : constant Util.Log.Loggers.Logger := Util.Log.Loggers.Create ("Util.Serialize.IO.XML");
-- Return the location where the exception was raised.
function Get_Location (Except : Sax.Exceptions.Sax_Parse_Exception'Class)
return String is separate;
-- ------------------------------
-- Warning
-- ------------------------------
overriding
procedure Warning (Handler : in out Xhtml_Reader;
Except : Sax.Exceptions.Sax_Parse_Exception'Class) is
pragma Warnings (Off, Handler);
begin
Log.Warn ("{0}", Get_Message (Except));
end Warning;
-- ------------------------------
-- Error
-- ------------------------------
overriding
procedure Error (Handler : in out Xhtml_Reader;
Except : in Sax.Exceptions.Sax_Parse_Exception'Class) is
Msg : constant String := Get_Message (Except);
Pos : constant Natural := Util.Strings.Index (Msg, ' ');
begin
-- The SAX error message contains the line+file name. Remove it because this part
-- will be added by the <b>Error</b> procedure.
if Pos > Msg'First and then Msg (Pos - 1) = ':' then
Handler.Handler.Error (Msg (Pos + 1 .. Msg'Last));
else
Handler.Handler.Error (Msg);
end if;
end Error;
-- ------------------------------
-- Fatal_Error
-- ------------------------------
overriding
procedure Fatal_Error (Handler : in out Xhtml_Reader;
Except : in Sax.Exceptions.Sax_Parse_Exception'Class) is
begin
Handler.Error (Except);
end Fatal_Error;
-- ------------------------------
-- Set_Document_Locator
-- ------------------------------
overriding
procedure Set_Document_Locator (Handler : in out Xhtml_Reader;
Loc : in out Sax.Locators.Locator) is
begin
Handler.Handler.Locator := Loc;
end Set_Document_Locator;
-- ------------------------------
-- Start_Document
-- ------------------------------
overriding
procedure Start_Document (Handler : in out Xhtml_Reader) is
begin
null;
end Start_Document;
-- ------------------------------
-- End_Document
-- ------------------------------
overriding
procedure End_Document (Handler : in out Xhtml_Reader) is
begin
null;
end End_Document;
-- ------------------------------
-- Start_Prefix_Mapping
-- ------------------------------
overriding
procedure Start_Prefix_Mapping (Handler : in out Xhtml_Reader;
Prefix : in Unicode.CES.Byte_Sequence;
URI : in Unicode.CES.Byte_Sequence) is
begin
null;
end Start_Prefix_Mapping;
-- ------------------------------
-- End_Prefix_Mapping
-- ------------------------------
overriding
procedure End_Prefix_Mapping (Handler : in out Xhtml_Reader;
Prefix : in Unicode.CES.Byte_Sequence) is
begin
null;
end End_Prefix_Mapping;
-- ------------------------------
-- Start_Element
-- ------------------------------
overriding
procedure Start_Element (Handler : in out Xhtml_Reader;
Namespace_URI : in Unicode.CES.Byte_Sequence := "";
Local_Name : in Unicode.CES.Byte_Sequence := "";
Qname : in Unicode.CES.Byte_Sequence := "";
Atts : in Sax.Attributes.Attributes'Class) is
pragma Unreferenced (Namespace_URI, Qname);
Attr_Count : Natural;
begin
Log.Debug ("Start object {0}", Local_Name);
Handler.Sink.Start_Object (Local_Name, Handler.Handler.all);
Attr_Count := Get_Length (Atts);
for I in 0 .. Attr_Count - 1 loop
declare
Name : constant String := Get_Qname (Atts, I);
Value : constant String := Get_Value (Atts, I);
begin
Handler.Sink.Set_Member (Name => Name,
Value => Util.Beans.Objects.To_Object (Value),
Logger => Handler.Handler.all,
Attribute => True);
end;
end loop;
end Start_Element;
-- ------------------------------
-- End_Element
-- ------------------------------
overriding
procedure End_Element (Handler : in out Xhtml_Reader;
Namespace_URI : in Unicode.CES.Byte_Sequence := "";
Local_Name : in Unicode.CES.Byte_Sequence := "";
Qname : in Unicode.CES.Byte_Sequence := "") is
pragma Unreferenced (Namespace_URI, Qname);
Len : constant Natural := Length (Handler.Text);
begin
Handler.Sink.Finish_Object (Local_Name, Handler.Handler.all);
if Len > 0 then
-- Add debug message only when it is active (saves the To_String conversion).
if Log.Get_Level >= Util.Log.DEBUG_LEVEL then
Log.Debug ("Close object {0} -> {1}", Local_Name, To_String (Handler.Text));
end if;
Handler.Sink.Set_Member (Local_Name, Util.Beans.Objects.To_Object (Handler.Text),
Handler.Handler.all);
-- Clear the string using Delete so that the buffer is kept.
Ada.Strings.Unbounded.Delete (Source => Handler.Text, From => 1, Through => Len);
else
Log.Debug ("Close object {0}", Local_Name);
Handler.Sink.Set_Member (Local_Name, Util.Beans.Objects.To_Object (Handler.Text),
Handler.Handler.all);
end if;
end End_Element;
procedure Collect_Text (Handler : in out Xhtml_Reader;
Content : Unicode.CES.Byte_Sequence) is
begin
Append (Handler.Text, Content);
end Collect_Text;
-- ------------------------------
-- Characters
-- ------------------------------
overriding
procedure Characters (Handler : in out Xhtml_Reader;
Ch : in Unicode.CES.Byte_Sequence) is
begin
Collect_Text (Handler, Ch);
end Characters;
-- ------------------------------
-- Ignorable_Whitespace
-- ------------------------------
overriding
procedure Ignorable_Whitespace (Handler : in out Xhtml_Reader;
Ch : in Unicode.CES.Byte_Sequence) is
begin
if not Handler.Ignore_White_Spaces then
Collect_Text (Handler, Ch);
end if;
end Ignorable_Whitespace;
-- ------------------------------
-- Processing_Instruction
-- ------------------------------
overriding
procedure Processing_Instruction (Handler : in out Xhtml_Reader;
Target : in Unicode.CES.Byte_Sequence;
Data : in Unicode.CES.Byte_Sequence) is
pragma Unreferenced (Handler);
begin
Log.Error ("Processing instruction: {0}: {1}", Target, Data);
end Processing_Instruction;
-- ------------------------------
-- Skipped_Entity
-- ------------------------------
overriding
procedure Skipped_Entity (Handler : in out Xhtml_Reader;
Name : in Unicode.CES.Byte_Sequence) is
pragma Unmodified (Handler);
begin
null;
end Skipped_Entity;
-- ------------------------------
-- Start_Cdata
-- ------------------------------
overriding
procedure Start_Cdata (Handler : in out Xhtml_Reader) is
pragma Unmodified (Handler);
pragma Unreferenced (Handler);
begin
Log.Info ("Start CDATA");
end Start_Cdata;
-- ------------------------------
-- End_Cdata
-- ------------------------------
overriding
procedure End_Cdata (Handler : in out Xhtml_Reader) is
pragma Unmodified (Handler);
pragma Unreferenced (Handler);
begin
Log.Info ("End CDATA");
end End_Cdata;
-- ------------------------------
-- Resolve_Entity
-- ------------------------------
overriding
function Resolve_Entity (Handler : Xhtml_Reader;
Public_Id : Unicode.CES.Byte_Sequence;
System_Id : Unicode.CES.Byte_Sequence)
return Input_Sources.Input_Source_Access is
pragma Unreferenced (Handler);
begin
Log.Error ("Cannot resolve entity {0} - {1}", Public_Id, System_Id);
return null;
end Resolve_Entity;
overriding
procedure Start_DTD (Handler : in out Xhtml_Reader;
Name : Unicode.CES.Byte_Sequence;
Public_Id : Unicode.CES.Byte_Sequence := "";
System_Id : Unicode.CES.Byte_Sequence := "") is
begin
null;
end Start_DTD;
-- ------------------------------
-- Set the XHTML reader to ignore or not the white spaces.
-- When set to True, the ignorable white spaces will not be kept.
-- ------------------------------
procedure Set_Ignore_White_Spaces (Reader : in out Parser;
Value : in Boolean) is
begin
Reader.Ignore_White_Spaces := Value;
end Set_Ignore_White_Spaces;
-- ------------------------------
-- Set the XHTML reader to ignore empty lines.
-- ------------------------------
procedure Set_Ignore_Empty_Lines (Reader : in out Parser;
Value : in Boolean) is
begin
Reader.Ignore_Empty_Lines := Value;
end Set_Ignore_Empty_Lines;
-- ------------------------------
-- Get the current location (file and line) to report an error message.
-- ------------------------------
function Get_Location (Handler : in Parser) return String is
File : constant String := Util.Serialize.IO.Parser (Handler).Get_Location;
begin
if Handler.Locator = Sax.Locators.No_Locator then
return File;
else
return File & Sax.Locators.To_String (Handler.Locator);
end if;
end Get_Location;
-- ------------------------------
-- Parse an XML stream, and calls the appropriate SAX callbacks for each
-- event.
-- This is not re-entrant: you can not call Parse with the same Parser
-- argument in one of the SAX callbacks. This has undefined behavior.
-- ------------------------------
-- 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) is
Buffer_Size : constant Positive := 256;
type String_Access is access all String (1 .. Buffer_Size);
type Stream_Input is new Input_Sources.Input_Source with record
Index : Natural;
Last : Natural;
Encoding : Unicode.CES.Encoding_Scheme;
Buffer : String_Access;
end record;
-- Return the next character in the string.
procedure Next_Char (From : in out Stream_Input;
C : out Unicode.Unicode_Char);
-- True if From is past the last character in the string.
function Eof (From : in Stream_Input) return Boolean;
procedure Fill (From : in out Stream_Input'Class);
procedure Fill (From : in out Stream_Input'Class) is
Last : Natural := From.Last;
begin
-- Move to the buffer start
if Last > From.Index and From.Index > From.Buffer'First then
From.Buffer (From.Buffer'First .. Last - 1 - From.Index + From.Buffer'First) :=
From.Buffer (From.Index .. Last - 1);
Last := Last - From.Index + From.Buffer'First;
From.Index := From.Buffer'First;
end if;
if From.Index > From.Last then
From.Index := From.Buffer'First;
end if;
begin
while not Stream.Is_Eof loop
Stream.Read (From.Buffer (Last));
Last := Last + 1;
exit when Last > From.Buffer'Last;
end loop;
exception
when others =>
null;
end;
From.Last := Last;
end Fill;
-- Return the next character in the string.
procedure Next_Char (From : in out Stream_Input;
C : out Unicode.Unicode_Char) is
begin
if From.Index + 6 >= From.Last then
Fill (From);
end if;
From.Encoding.Read (From.Buffer.all, From.Index, C);
end Next_Char;
-- True if From is past the last character in the string.
function Eof (From : in Stream_Input) return Boolean is
begin
if From.Index < From.Last then
return False;
end if;
return Stream.Is_Eof;
end Eof;
Input : Stream_Input;
Xml_Parser : Xhtml_Reader;
Buf : aliased String (1 .. Buffer_Size);
begin
Input.Buffer := Buf'Access;
Input.Index := Buf'First + 1;
Input.Last := Buf'First;
Input.Set_Encoding (Unicode.CES.Utf8.Utf8_Encoding);
Input.Encoding := Unicode.CES.Utf8.Utf8_Encoding;
Xml_Parser.Handler := Handler'Unchecked_Access;
Xml_Parser.Ignore_White_Spaces := Handler.Ignore_White_Spaces;
Xml_Parser.Ignore_Empty_Lines := Handler.Ignore_Empty_Lines;
Xml_Parser.Sink := Sink'Unchecked_Access;
Sax.Readers.Reader (Xml_Parser).Parse (Input);
Handler.Locator := Sax.Locators.No_Locator;
-- Ignore the Program_Error exception that SAX could raise if we know that the
-- error was reported.
exception
when Program_Error =>
Handler.Locator := Sax.Locators.No_Locator;
if not Handler.Has_Error then
raise;
end if;
when others =>
Handler.Locator := Sax.Locators.No_Locator;
raise;
end Parse;
-- Close the current XML entity if an entity was started
procedure Close_Current (Stream : in out Output_Stream'Class);
-- ------------------------------
-- Close the current XML entity if an entity was started
-- ------------------------------
procedure Close_Current (Stream : in out Output_Stream'Class) is
begin
if Stream.Close_Start then
Stream.Write ('>');
Stream.Close_Start := False;
end if;
end Close_Current;
-- -----------------------
-- Set the target output stream.
-- -----------------------
procedure Initialize (Stream : in out Output_Stream;
Output : in Util.Streams.Texts.Print_Stream_Access) is
begin
Stream.Stream := Output;
end Initialize;
-- -----------------------
-- Flush the buffer (if any) to the sink.
-- -----------------------
overriding
procedure Flush (Stream : in out Output_Stream) is
begin
Stream.Stream.Flush;
end Flush;
-- -----------------------
-- Close the sink.
-- -----------------------
overriding
procedure Close (Stream : in out Output_Stream) is
begin
Stream.Stream.Close;
end Close;
-- -----------------------
-- Write the buffer array to the output stream.
-- -----------------------
overriding
procedure Write (Stream : in out Output_Stream;
Buffer : in Ada.Streams.Stream_Element_Array) is
begin
Stream.Stream.Write (Buffer);
end Write;
-- ------------------------------
-- Write a character on the response stream and escape that character as necessary.
-- ------------------------------
procedure Write_Escape (Stream : in out Output_Stream'Class;
Char : in Wide_Wide_Character) is
type Unicode_Char is mod 2**32;
Code : constant Unicode_Char := Wide_Wide_Character'Pos (Char);
begin
-- If "?" or over, no escaping is needed (this covers
-- most of the Latin alphabet)
if Code >= 16#80# then
Stream.Write_Wide (Char);
elsif Code > 16#3F# or Code <= 16#20# then
Stream.Write (Character'Val (Code));
elsif Char = '<' then
Stream.Write ("<");
elsif Char = '>' then
Stream.Write (">");
elsif Char = '&' then
Stream.Write ("&");
else
Stream.Write (Character'Val (Code));
end if;
end Write_Escape;
-- ------------------------------
-- Write the value as a XML string. Special characters are escaped using the XML
-- escape rules.
-- ------------------------------
procedure Write_String (Stream : in out Output_Stream;
Value : in String) is
begin
Close_Current (Stream);
for I in Value'Range loop
Stream.Write_Escape (Ada.Characters.Conversions.To_Wide_Wide_Character (Value (I)));
end loop;
end Write_String;
-- ------------------------------
-- Write the value as a XML string. Special characters are escaped using the XML
-- escape rules.
-- ------------------------------
procedure Write_Wide_String (Stream : in out Output_Stream;
Value : in Wide_Wide_String) is
begin
Close_Current (Stream);
for I in Value'Range loop
Stream.Write_Escape (Value (I));
end loop;
end Write_Wide_String;
-- ------------------------------
-- Write the value as a XML string. Special characters are escaped using the XML
-- escape rules.
-- ------------------------------
procedure Write_String (Stream : in out Output_Stream;
Value : in Util.Beans.Objects.Object) is
use Util.Beans.Objects;
begin
Close_Current (Stream);
case Util.Beans.Objects.Get_Type (Value) is
when TYPE_NULL =>
null;
when TYPE_BOOLEAN =>
if Util.Beans.Objects.To_Boolean (Value) then
Stream.Write ("true");
else
Stream.Write ("false");
end if;
when TYPE_INTEGER =>
Stream.Stream.Write (Util.Beans.Objects.To_Long_Long_Integer (Value));
when others =>
Stream.Write_String (Util.Beans.Objects.To_String (Value));
end case;
end Write_String;
-- ------------------------------
-- Start a new XML object.
-- ------------------------------
procedure Start_Entity (Stream : in out Output_Stream;
Name : in String) is
begin
Close_Current (Stream);
Stream.Close_Start := True;
Stream.Write ('<');
Stream.Write (Name);
end Start_Entity;
-- ------------------------------
-- Terminates the current XML object.
-- ------------------------------
procedure End_Entity (Stream : in out Output_Stream;
Name : in String) is
begin
Close_Current (Stream);
Stream.Write ("</");
Stream.Write (Name);
Stream.Write ('>');
end End_Entity;
-- ------------------------------
-- Write the attribute name/value pair.
-- ------------------------------
overriding
procedure Write_Attribute (Stream : in out Output_Stream;
Name : in String;
Value : in String) is
begin
Stream.Write (' ');
Stream.Write (Name);
Stream.Write ("=""");
Util.Streams.Texts.TR.Escape_Xml (Content => Value, Into => Stream.Stream.all);
Stream.Write ('"');
end Write_Attribute;
overriding
procedure Write_Wide_Attribute (Stream : in out Output_Stream;
Name : in String;
Value : in Wide_Wide_String) is
begin
Stream.Write (' ');
Stream.Write (Name);
Stream.Write ("=""");
Util.Streams.Texts.WTR.Escape_Xml (Content => Value, Into => Stream.Stream.all);
Stream.Write ('"');
end Write_Wide_Attribute;
overriding
procedure Write_Attribute (Stream : in out Output_Stream;
Name : in String;
Value : in Integer) is
begin
Stream.Write (' ');
Stream.Write (Name);
Stream.Write ("=""");
Stream.Stream.Write (Value);
Stream.Write ('"');
end Write_Attribute;
overriding
procedure Write_Attribute (Stream : in out Output_Stream;
Name : in String;
Value : in Boolean) is
begin
Stream.Write (' ');
Stream.Write (Name);
if Value then
Stream.Write ("=""true""");
else
Stream.Write ("=""false""");
end if;
end Write_Attribute;
-- ------------------------------
-- Write a XML name/value attribute.
-- ------------------------------
procedure Write_Attribute (Stream : in out Output_Stream;
Name : in String;
Value : in Util.Beans.Objects.Object) is
use Util.Beans.Objects;
begin
Stream.Write (' ');
Stream.Write (Name);
Stream.Write ("=""");
case Util.Beans.Objects.Get_Type (Value) is
when TYPE_NULL =>
null;
when TYPE_BOOLEAN =>
if Util.Beans.Objects.To_Boolean (Value) then
Stream.Write ("true");
else
Stream.Write ("false");
end if;
when TYPE_INTEGER =>
Stream.Stream.Write (Util.Beans.Objects.To_Long_Long_Integer (Value));
when others =>
Stream.Write (Util.Beans.Objects.To_String (Value));
end case;
Stream.Write ('"');
end Write_Attribute;
-- ------------------------------
-- Write the attribute with a null value.
-- ------------------------------
overriding
procedure Write_Null_Attribute (Stream : in out Output_Stream;
Name : in String) is
begin
null;
end Write_Null_Attribute;
-- ------------------------------
-- Write the entity value.
-- ------------------------------
overriding
procedure Write_Entity (Stream : in out Output_Stream;
Name : in String;
Value : in String) is
begin
Close_Current (Stream);
Stream.Write ('<');
Stream.Write (Name);
Stream.Close_Start := True;
Stream.Write_String (Value);
Stream.Write ("</");
Stream.Write (Name);
Stream.Write ('>');
end Write_Entity;
overriding
procedure Write_Wide_Entity (Stream : in out Output_Stream;
Name : in String;
Value : in Wide_Wide_String) is
begin
Close_Current (Stream);
Stream.Write ('<');
Stream.Write (Name);
Stream.Close_Start := True;
Stream.Write_Wide_String (Value);
Stream.Write ("</");
Stream.Write (Name);
Stream.Write ('>');
end Write_Wide_Entity;
overriding
procedure Write_Entity (Stream : in out Output_Stream;
Name : in String;
Value : in Boolean) is
begin
Close_Current (Stream);
Stream.Write ('<');
Stream.Write (Name);
if Value then
Stream.Write (">true</");
else
Stream.Write (">false</");
end if;
Stream.Write (Name);
Stream.Write ('>');
end Write_Entity;
overriding
procedure Write_Entity (Stream : in out Output_Stream;
Name : in String;
Value : in Integer) is
begin
Close_Current (Stream);
Stream.Write ('<');
Stream.Write (Name);
Stream.Write ('>');
Stream.Stream.Write (Value);
Stream.Write ("</");
Stream.Write (Name);
Stream.Write ('>');
end Write_Entity;
overriding
procedure Write_Entity (Stream : in out Output_Stream;
Name : in String;
Value : in Ada.Calendar.Time) is
begin
Stream.Write_Entity (Name, Util.Dates.ISO8601.Image (Value, Util.Dates.ISO8601.SUBSECOND));
end Write_Entity;
overriding
procedure Write_Long_Entity (Stream : in out Output_Stream;
Name : in String;
Value : in Long_Long_Integer) is
begin
Close_Current (Stream);
Stream.Write ('<');
Stream.Write (Name);
Stream.Write ('>');
Stream.Stream.Write (Value);
Stream.Write ("</");
Stream.Write (Name);
Stream.Write ('>');
end Write_Long_Entity;
overriding
procedure Write_Enum_Entity (Stream : in out Output_Stream;
Name : in String;
Value : in String) is
begin
Stream.Write_Entity (Name, Value);
end Write_Enum_Entity;
-- ------------------------------
-- Write a XML name/value entity (see Write_Attribute).
-- ------------------------------
procedure Write_Entity (Stream : in out Output_Stream;
Name : in String;
Value : in Util.Beans.Objects.Object) is
use Util.Beans.Objects;
begin
Close_Current (Stream);
Stream.Write ('<');
Stream.Write (Name);
Stream.Close_Start := True;
case Util.Beans.Objects.Get_Type (Value) is
when TYPE_NULL =>
Stream.Write ("null");
when TYPE_BOOLEAN =>
if Util.Beans.Objects.To_Boolean (Value) then
Stream.Write ("true");
else
Stream.Write ("false");
end if;
when TYPE_INTEGER =>
Stream.Stream.Write (Util.Beans.Objects.To_Long_Long_Integer (Value));
when TYPE_BEAN | TYPE_ARRAY =>
if Is_Array (Value) then
declare
Count : constant Natural := Util.Beans.Objects.Get_Count (Value);
begin
for I in 1 .. Count loop
Stream.Write_Entity (Name, Util.Beans.Objects.Get_Value (Value, I));
end loop;
end;
else
declare
procedure Process (Name : in String; Item : in Object);
procedure Process (Name : in String; Item : in Object) is
begin
Stream.Write_Entity (Name, Item);
end Process;
begin
Util.Beans.Objects.Maps.Iterate (Value, Process'Access);
end;
end if;
when others =>
Stream.Write_String (Util.Beans.Objects.To_String (Value));
end case;
Stream.Write ("</");
Stream.Write (Name);
Stream.Write ('>');
end Write_Entity;
-- ------------------------------
-- Write an entity with a null value.
-- ------------------------------
overriding
procedure Write_Null_Entity (Stream : in out Output_Stream;
Name : in String) is
begin
null;
end Write_Null_Entity;
-- ------------------------------
-- Starts a XML array.
-- ------------------------------
overriding
procedure Start_Array (Stream : in out Output_Stream;
Name : in String) is
pragma Unreferenced (Stream, Name);
begin
null;
end Start_Array;
-- ------------------------------
-- Terminates a XML array.
-- ------------------------------
overriding
procedure End_Array (Stream : in out Output_Stream;
Name : in String) is
begin
null;
end End_Array;
end Util.Serialize.IO.XML;
|
-- Copyright 2016-2019 NXP
-- All rights reserved.SPDX-License-Identifier: BSD-3-Clause
-- This spec has been automatically generated from LPC55S6x.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with HAL;
with System;
package NXP_SVD.SPI is
pragma Preelaborate;
---------------
-- Registers --
---------------
-- SPI enable.
type CFG_ENABLE_Field is
(
-- Disabled. The SPI is disabled and the internal state machine and
-- counters are reset.
Disabled,
-- Enabled. The SPI is enabled for operation.
Enabled)
with Size => 1;
for CFG_ENABLE_Field use
(Disabled => 0,
Enabled => 1);
-- Master mode select.
type CFG_MASTER_Field is
(
-- Slave mode. The SPI will operate in slave mode. SCK, MOSI, and the
-- SSEL signals are inputs, MISO is an output.
Slave_Mode,
-- Master mode. The SPI will operate in master mode. SCK, MOSI, and the
-- SSEL signals are outputs, MISO is an input.
Master_Mode)
with Size => 1;
for CFG_MASTER_Field use
(Slave_Mode => 0,
Master_Mode => 1);
-- LSB First mode enable.
type CFG_LSBF_Field is
(
-- Standard. Data is transmitted and received in standard MSB first
-- order.
Standard,
-- Reverse. Data is transmitted and received in reverse order (LSB
-- first).
Reverse_k)
with Size => 1;
for CFG_LSBF_Field use
(Standard => 0,
Reverse_k => 1);
-- Clock Phase select.
type CFG_CPHA_Field is
(
-- Change. The SPI captures serial data on the first clock transition of
-- the transfer (when the clock changes away from the rest state). Data
-- is changed on the following edge.
Change,
-- Capture. The SPI changes serial data on the first clock transition of
-- the transfer (when the clock changes away from the rest state). Data
-- is captured on the following edge.
Capture)
with Size => 1;
for CFG_CPHA_Field use
(Change => 0,
Capture => 1);
-- Clock Polarity select.
type CFG_CPOL_Field is
(
-- Low. The rest state of the clock (between transfers) is low.
Low,
-- High. The rest state of the clock (between transfers) is high.
High)
with Size => 1;
for CFG_CPOL_Field use
(Low => 0,
High => 1);
-- Loopback mode enable. Loopback mode applies only to Master mode, and
-- connects transmit and receive data connected together to allow simple
-- software testing.
type CFG_LOOP_Field is
(
-- Disabled.
Disabled,
-- Enabled.
Enabled)
with Size => 1;
for CFG_LOOP_Field use
(Disabled => 0,
Enabled => 1);
-- SSEL0 Polarity select.
type CFG_SPOL0_Field is
(
-- Low. The SSEL0 pin is active low.
Low,
-- High. The SSEL0 pin is active high.
High)
with Size => 1;
for CFG_SPOL0_Field use
(Low => 0,
High => 1);
-- SSEL1 Polarity select.
type CFG_SPOL1_Field is
(
-- Low. The SSEL1 pin is active low.
Low,
-- High. The SSEL1 pin is active high.
High)
with Size => 1;
for CFG_SPOL1_Field use
(Low => 0,
High => 1);
-- SSEL2 Polarity select.
type CFG_SPOL2_Field is
(
-- Low. The SSEL2 pin is active low.
Low,
-- High. The SSEL2 pin is active high.
High)
with Size => 1;
for CFG_SPOL2_Field use
(Low => 0,
High => 1);
-- SSEL3 Polarity select.
type CFG_SPOL3_Field is
(
-- Low. The SSEL3 pin is active low.
Low,
-- High. The SSEL3 pin is active high.
High)
with Size => 1;
for CFG_SPOL3_Field use
(Low => 0,
High => 1);
-- SPI Configuration register
type CFG_Register is record
-- SPI enable.
ENABLE : CFG_ENABLE_Field := NXP_SVD.SPI.Disabled;
-- unspecified
Reserved_1_1 : HAL.Bit := 16#0#;
-- Master mode select.
MASTER : CFG_MASTER_Field := NXP_SVD.SPI.Slave_Mode;
-- LSB First mode enable.
LSBF : CFG_LSBF_Field := NXP_SVD.SPI.Standard;
-- Clock Phase select.
CPHA : CFG_CPHA_Field := NXP_SVD.SPI.Change;
-- Clock Polarity select.
CPOL : CFG_CPOL_Field := NXP_SVD.SPI.Low;
-- unspecified
Reserved_6_6 : HAL.Bit := 16#0#;
-- Loopback mode enable. Loopback mode applies only to Master mode, and
-- connects transmit and receive data connected together to allow simple
-- software testing.
LOOP_k : CFG_LOOP_Field := NXP_SVD.SPI.Disabled;
-- SSEL0 Polarity select.
SPOL0 : CFG_SPOL0_Field := NXP_SVD.SPI.Low;
-- SSEL1 Polarity select.
SPOL1 : CFG_SPOL1_Field := NXP_SVD.SPI.Low;
-- SSEL2 Polarity select.
SPOL2 : CFG_SPOL2_Field := NXP_SVD.SPI.Low;
-- SSEL3 Polarity select.
SPOL3 : CFG_SPOL3_Field := NXP_SVD.SPI.Low;
-- unspecified
Reserved_12_31 : HAL.UInt20 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for CFG_Register use record
ENABLE at 0 range 0 .. 0;
Reserved_1_1 at 0 range 1 .. 1;
MASTER at 0 range 2 .. 2;
LSBF at 0 range 3 .. 3;
CPHA at 0 range 4 .. 4;
CPOL at 0 range 5 .. 5;
Reserved_6_6 at 0 range 6 .. 6;
LOOP_k at 0 range 7 .. 7;
SPOL0 at 0 range 8 .. 8;
SPOL1 at 0 range 9 .. 9;
SPOL2 at 0 range 10 .. 10;
SPOL3 at 0 range 11 .. 11;
Reserved_12_31 at 0 range 12 .. 31;
end record;
subtype DLY_PRE_DELAY_Field is HAL.UInt4;
subtype DLY_POST_DELAY_Field is HAL.UInt4;
subtype DLY_FRAME_DELAY_Field is HAL.UInt4;
subtype DLY_TRANSFER_DELAY_Field is HAL.UInt4;
-- SPI Delay register
type DLY_Register is record
-- Controls the amount of time between SSEL assertion and the beginning
-- of a data transfer. There is always one SPI clock time between SSEL
-- assertion and the first clock edge. This is not considered part of
-- the pre-delay. 0x0 = No additional time is inserted. 0x1 = 1 SPI
-- clock time is inserted. 0x2 = 2 SPI clock times are inserted. 0xF =
-- 15 SPI clock times are inserted.
PRE_DELAY : DLY_PRE_DELAY_Field := 16#0#;
-- Controls the amount of time between the end of a data transfer and
-- SSEL deassertion. 0x0 = No additional time is inserted. 0x1 = 1 SPI
-- clock time is inserted. 0x2 = 2 SPI clock times are inserted. 0xF =
-- 15 SPI clock times are inserted.
POST_DELAY : DLY_POST_DELAY_Field := 16#0#;
-- If the EOF flag is set, controls the minimum amount of time between
-- the current frame and the next frame (or SSEL deassertion if EOT).
-- 0x0 = No additional time is inserted. 0x1 = 1 SPI clock time is
-- inserted. 0x2 = 2 SPI clock times are inserted. 0xF = 15 SPI clock
-- times are inserted.
FRAME_DELAY : DLY_FRAME_DELAY_Field := 16#0#;
-- Controls the minimum amount of time that the SSEL is deasserted
-- between transfers. 0x0 = The minimum time that SSEL is deasserted is
-- 1 SPI clock time. (Zero added time.) 0x1 = The minimum time that SSEL
-- is deasserted is 2 SPI clock times. 0x2 = The minimum time that SSEL
-- is deasserted is 3 SPI clock times. 0xF = The minimum time that SSEL
-- is deasserted is 16 SPI clock times.
TRANSFER_DELAY : DLY_TRANSFER_DELAY_Field := 16#0#;
-- unspecified
Reserved_16_31 : HAL.UInt16 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for DLY_Register use record
PRE_DELAY at 0 range 0 .. 3;
POST_DELAY at 0 range 4 .. 7;
FRAME_DELAY at 0 range 8 .. 11;
TRANSFER_DELAY at 0 range 12 .. 15;
Reserved_16_31 at 0 range 16 .. 31;
end record;
-- SPI Status. Some status flags can be cleared by writing a 1 to that bit
-- position.
type STAT_Register is record
-- unspecified
Reserved_0_3 : HAL.UInt4 := 16#0#;
-- Write-only. Slave Select Assert. This flag is set whenever any slave
-- select transitions from deasserted to asserted, in both master and
-- slave modes. This allows determining when the SPI transmit/receive
-- functions become busy, and allows waking up the device from reduced
-- power modes when a slave mode access begins. This flag is cleared by
-- software.
SSA : Boolean := False;
-- Write-only. Slave Select Deassert. This flag is set whenever any
-- asserted slave selects transition to deasserted, in both master and
-- slave modes. This allows determining when the SPI transmit/receive
-- functions become idle. This flag is cleared by software.
SSD : Boolean := False;
-- Read-only. Stalled status flag. This indicates whether the SPI is
-- currently in a stall condition.
STALLED : Boolean := False;
-- End Transfer control bit. Software can set this bit to force an end
-- to the current transfer when the transmitter finishes any activity
-- already in progress, as if the EOT flag had been set prior to the
-- last transmission. This capability is included to support cases where
-- it is not known when transmit data is written that it will be the end
-- of a transfer. The bit is cleared when the transmitter becomes idle
-- as the transfer comes to an end. Forcing an end of transfer in this
-- manner causes any specified FRAME_DELAY and TRANSFER_DELAY to be
-- inserted.
ENDTRANSFER : Boolean := False;
-- Read-only. Master idle status flag. This bit is 1 whenever the SPI
-- master function is fully idle. This means that the transmit holding
-- register is empty and the transmitter is not in the process of
-- sending data.
MSTIDLE : Boolean := True;
-- unspecified
Reserved_9_31 : HAL.UInt23 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for STAT_Register use record
Reserved_0_3 at 0 range 0 .. 3;
SSA at 0 range 4 .. 4;
SSD at 0 range 5 .. 5;
STALLED at 0 range 6 .. 6;
ENDTRANSFER at 0 range 7 .. 7;
MSTIDLE at 0 range 8 .. 8;
Reserved_9_31 at 0 range 9 .. 31;
end record;
-- Slave select assert interrupt enable. Determines whether an interrupt
-- occurs when the Slave Select is asserted.
type INTENSET_SSAEN_Field is
(
-- Disabled. No interrupt will be generated when any Slave Select
-- transitions from deasserted to asserted.
Disabled,
-- Enabled. An interrupt will be generated when any Slave Select
-- transitions from deasserted to asserted.
Enabled)
with Size => 1;
for INTENSET_SSAEN_Field use
(Disabled => 0,
Enabled => 1);
-- Slave select deassert interrupt enable. Determines whether an interrupt
-- occurs when the Slave Select is deasserted.
type INTENSET_SSDEN_Field is
(
-- Disabled. No interrupt will be generated when all asserted Slave
-- Selects transition to deasserted.
Disabled,
-- Enabled. An interrupt will be generated when all asserted Slave
-- Selects transition to deasserted.
Enabled)
with Size => 1;
for INTENSET_SSDEN_Field use
(Disabled => 0,
Enabled => 1);
-- Master idle interrupt enable.
type INTENSET_MSTIDLEEN_Field is
(
-- No interrupt will be generated when the SPI master function is idle.
Disabled,
-- An interrupt will be generated when the SPI master function is fully
-- idle.
Enabled)
with Size => 1;
for INTENSET_MSTIDLEEN_Field use
(Disabled => 0,
Enabled => 1);
-- SPI Interrupt Enable read and Set. A complete value may be read from
-- this register. Writing a 1 to any implemented bit position causes that
-- bit to be set.
type INTENSET_Register is record
-- unspecified
Reserved_0_3 : HAL.UInt4 := 16#0#;
-- Slave select assert interrupt enable. Determines whether an interrupt
-- occurs when the Slave Select is asserted.
SSAEN : INTENSET_SSAEN_Field := NXP_SVD.SPI.Disabled;
-- Slave select deassert interrupt enable. Determines whether an
-- interrupt occurs when the Slave Select is deasserted.
SSDEN : INTENSET_SSDEN_Field := NXP_SVD.SPI.Disabled;
-- unspecified
Reserved_6_7 : HAL.UInt2 := 16#0#;
-- Master idle interrupt enable.
MSTIDLEEN : INTENSET_MSTIDLEEN_Field := NXP_SVD.SPI.Disabled;
-- unspecified
Reserved_9_31 : HAL.UInt23 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for INTENSET_Register use record
Reserved_0_3 at 0 range 0 .. 3;
SSAEN at 0 range 4 .. 4;
SSDEN at 0 range 5 .. 5;
Reserved_6_7 at 0 range 6 .. 7;
MSTIDLEEN at 0 range 8 .. 8;
Reserved_9_31 at 0 range 9 .. 31;
end record;
-- SPI Interrupt Enable Clear. Writing a 1 to any implemented bit position
-- causes the corresponding bit in INTENSET to be cleared.
type INTENCLR_Register is record
-- unspecified
Reserved_0_3 : HAL.UInt4 := 16#0#;
-- Write-only. Writing 1 clears the corresponding bit in the INTENSET
-- register.
SSAEN : Boolean := False;
-- Write-only. Writing 1 clears the corresponding bit in the INTENSET
-- register.
SSDEN : Boolean := False;
-- unspecified
Reserved_6_7 : HAL.UInt2 := 16#0#;
-- Write-only. Writing 1 clears the corresponding bit in the INTENSET
-- register.
MSTIDLE : Boolean := False;
-- unspecified
Reserved_9_31 : HAL.UInt23 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for INTENCLR_Register use record
Reserved_0_3 at 0 range 0 .. 3;
SSAEN at 0 range 4 .. 4;
SSDEN at 0 range 5 .. 5;
Reserved_6_7 at 0 range 6 .. 7;
MSTIDLE at 0 range 8 .. 8;
Reserved_9_31 at 0 range 9 .. 31;
end record;
subtype DIV_DIVVAL_Field is HAL.UInt16;
-- SPI clock Divider
type DIV_Register is record
-- Rate divider value. Specifies how the Flexcomm clock (FCLK) is
-- divided to produce the SPI clock rate in master mode. DIVVAL is -1
-- encoded such that the value 0 results in FCLK/1, the value 1 results
-- in FCLK/2, up to the maximum possible divide value of 0xFFFF, which
-- results in FCLK/65536.
DIVVAL : DIV_DIVVAL_Field := 16#0#;
-- unspecified
Reserved_16_31 : HAL.UInt16 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for DIV_Register use record
DIVVAL at 0 range 0 .. 15;
Reserved_16_31 at 0 range 16 .. 31;
end record;
-- SPI Interrupt Status
type INTSTAT_Register is record
-- unspecified
Reserved_0_3 : HAL.UInt4;
-- Read-only. Slave Select Assert.
SSA : Boolean;
-- Read-only. Slave Select Deassert.
SSD : Boolean;
-- unspecified
Reserved_6_7 : HAL.UInt2;
-- Read-only. Master Idle status flag.
MSTIDLE : Boolean;
-- unspecified
Reserved_9_31 : HAL.UInt23;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for INTSTAT_Register use record
Reserved_0_3 at 0 range 0 .. 3;
SSA at 0 range 4 .. 4;
SSD at 0 range 5 .. 5;
Reserved_6_7 at 0 range 6 .. 7;
MSTIDLE at 0 range 8 .. 8;
Reserved_9_31 at 0 range 9 .. 31;
end record;
-- Enable the transmit FIFO.
type FIFOCFG_ENABLETX_Field is
(
-- The transmit FIFO is not enabled.
Disabled,
-- The transmit FIFO is enabled.
Enabled)
with Size => 1;
for FIFOCFG_ENABLETX_Field use
(Disabled => 0,
Enabled => 1);
-- Enable the receive FIFO.
type FIFOCFG_ENABLERX_Field is
(
-- The receive FIFO is not enabled.
Disabled,
-- The receive FIFO is enabled.
Enabled)
with Size => 1;
for FIFOCFG_ENABLERX_Field use
(Disabled => 0,
Enabled => 1);
subtype FIFOCFG_SIZE_Field is HAL.UInt2;
-- DMA configuration for transmit.
type FIFOCFG_DMATX_Field is
(
-- DMA is not used for the transmit function.
Disabled,
-- Trigger DMA for the transmit function if the FIFO is not full.
-- Generally, data interrupts would be disabled if DMA is enabled.
Enabled)
with Size => 1;
for FIFOCFG_DMATX_Field use
(Disabled => 0,
Enabled => 1);
-- DMA configuration for receive.
type FIFOCFG_DMARX_Field is
(
-- DMA is not used for the receive function.
Disabled,
-- Trigger DMA for the receive function if the FIFO is not empty.
-- Generally, data interrupts would be disabled if DMA is enabled.
Enabled)
with Size => 1;
for FIFOCFG_DMARX_Field use
(Disabled => 0,
Enabled => 1);
-- Wake-up for transmit FIFO level. This allows the device to be woken from
-- reduced power modes (up to power-down, as long as the peripheral
-- function works in that power mode) without enabling the TXLVL interrupt.
-- Only DMA wakes up, processes data, and goes back to sleep. The CPU will
-- remain stopped until woken by another cause, such as DMA completion. See
-- Hardware Wake-up control register.
type FIFOCFG_WAKETX_Field is
(
-- Only enabled interrupts will wake up the device form reduced power
-- modes.
Disabled,
-- A device wake-up for DMA will occur if the transmit FIFO level
-- reaches the value specified by TXLVL in FIFOTRIG, even when the TXLVL
-- interrupt is not enabled.
Enabled)
with Size => 1;
for FIFOCFG_WAKETX_Field use
(Disabled => 0,
Enabled => 1);
-- Wake-up for receive FIFO level. This allows the device to be woken from
-- reduced power modes (up to power-down, as long as the peripheral
-- function works in that power mode) without enabling the TXLVL interrupt.
-- Only DMA wakes up, processes data, and goes back to sleep. The CPU will
-- remain stopped until woken by another cause, such as DMA completion. See
-- Hardware Wake-up control register.
type FIFOCFG_WAKERX_Field is
(
-- Only enabled interrupts will wake up the device form reduced power
-- modes.
Disabled,
-- A device wake-up for DMA will occur if the receive FIFO level reaches
-- the value specified by RXLVL in FIFOTRIG, even when the RXLVL
-- interrupt is not enabled.
Enabled)
with Size => 1;
for FIFOCFG_WAKERX_Field use
(Disabled => 0,
Enabled => 1);
-- FIFO configuration and enable register.
type FIFOCFG_Register is record
-- Enable the transmit FIFO.
ENABLETX : FIFOCFG_ENABLETX_Field := NXP_SVD.SPI.Disabled;
-- Enable the receive FIFO.
ENABLERX : FIFOCFG_ENABLERX_Field := NXP_SVD.SPI.Disabled;
-- unspecified
Reserved_2_3 : HAL.UInt2 := 16#0#;
-- Read-only. FIFO size configuration. This is a read-only field. 0x0 =
-- FIFO is configured as 16 entries of 8 bits. 0x1, 0x2, 0x3 = not
-- applicable to USART.
SIZE : FIFOCFG_SIZE_Field := 16#0#;
-- unspecified
Reserved_6_11 : HAL.UInt6 := 16#0#;
-- DMA configuration for transmit.
DMATX : FIFOCFG_DMATX_Field := NXP_SVD.SPI.Disabled;
-- DMA configuration for receive.
DMARX : FIFOCFG_DMARX_Field := NXP_SVD.SPI.Disabled;
-- Wake-up for transmit FIFO level. This allows the device to be woken
-- from reduced power modes (up to power-down, as long as the peripheral
-- function works in that power mode) without enabling the TXLVL
-- interrupt. Only DMA wakes up, processes data, and goes back to sleep.
-- The CPU will remain stopped until woken by another cause, such as DMA
-- completion. See Hardware Wake-up control register.
WAKETX : FIFOCFG_WAKETX_Field := NXP_SVD.SPI.Disabled;
-- Wake-up for receive FIFO level. This allows the device to be woken
-- from reduced power modes (up to power-down, as long as the peripheral
-- function works in that power mode) without enabling the TXLVL
-- interrupt. Only DMA wakes up, processes data, and goes back to sleep.
-- The CPU will remain stopped until woken by another cause, such as DMA
-- completion. See Hardware Wake-up control register.
WAKERX : FIFOCFG_WAKERX_Field := NXP_SVD.SPI.Disabled;
-- Empty command for the transmit FIFO. When a 1 is written to this bit,
-- the TX FIFO is emptied.
EMPTYTX : Boolean := False;
-- Empty command for the receive FIFO. When a 1 is written to this bit,
-- the RX FIFO is emptied.
EMPTYRX : Boolean := False;
-- unspecified
Reserved_18_31 : HAL.UInt14 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for FIFOCFG_Register use record
ENABLETX at 0 range 0 .. 0;
ENABLERX at 0 range 1 .. 1;
Reserved_2_3 at 0 range 2 .. 3;
SIZE at 0 range 4 .. 5;
Reserved_6_11 at 0 range 6 .. 11;
DMATX at 0 range 12 .. 12;
DMARX at 0 range 13 .. 13;
WAKETX at 0 range 14 .. 14;
WAKERX at 0 range 15 .. 15;
EMPTYTX at 0 range 16 .. 16;
EMPTYRX at 0 range 17 .. 17;
Reserved_18_31 at 0 range 18 .. 31;
end record;
subtype FIFOSTAT_TXLVL_Field is HAL.UInt5;
subtype FIFOSTAT_RXLVL_Field is HAL.UInt5;
-- FIFO status register.
type FIFOSTAT_Register is record
-- TX FIFO error. Will be set if a transmit FIFO error occurs. This
-- could be an overflow caused by pushing data into a full FIFO, or by
-- an underflow if the FIFO is empty when data is needed. Cleared by
-- writing a 1 to this bit.
TXERR : Boolean := False;
-- RX FIFO error. Will be set if a receive FIFO overflow occurs, caused
-- by software or DMA not emptying the FIFO fast enough. Cleared by
-- writing a 1 to this bit.
RXERR : Boolean := False;
-- unspecified
Reserved_2_2 : HAL.Bit := 16#0#;
-- Read-only. Peripheral interrupt. When 1, this indicates that the
-- peripheral function has asserted an interrupt. The details can be
-- found by reading the peripheral's STAT register.
PERINT : Boolean := False;
-- Read-only. Transmit FIFO empty. When 1, the transmit FIFO is empty.
-- The peripheral may still be processing the last piece of data.
TXEMPTY : Boolean := True;
-- Read-only. Transmit FIFO not full. When 1, the transmit FIFO is not
-- full, so more data can be written. When 0, the transmit FIFO is full
-- and another write would cause it to overflow.
TXNOTFULL : Boolean := True;
-- Read-only. Receive FIFO not empty. When 1, the receive FIFO is not
-- empty, so data can be read. When 0, the receive FIFO is empty.
RXNOTEMPTY : Boolean := False;
-- Read-only. Receive FIFO full. When 1, the receive FIFO is full. Data
-- needs to be read out to prevent the peripheral from causing an
-- overflow.
RXFULL : Boolean := False;
-- Read-only. Transmit FIFO current level. A 0 means the TX FIFO is
-- currently empty, and the TXEMPTY and TXNOTFULL flags will be 1. Other
-- values tell how much data is actually in the TX FIFO at the point
-- where the read occurs. If the TX FIFO is full, the TXEMPTY and
-- TXNOTFULL flags will be 0.
TXLVL : FIFOSTAT_TXLVL_Field := 16#0#;
-- unspecified
Reserved_13_15 : HAL.UInt3 := 16#0#;
-- Read-only. Receive FIFO current level. A 0 means the RX FIFO is
-- currently empty, and the RXFULL and RXNOTEMPTY flags will be 0. Other
-- values tell how much data is actually in the RX FIFO at the point
-- where the read occurs. If the RX FIFO is full, the RXFULL and
-- RXNOTEMPTY flags will be 1.
RXLVL : FIFOSTAT_RXLVL_Field := 16#0#;
-- unspecified
Reserved_21_31 : HAL.UInt11 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for FIFOSTAT_Register use record
TXERR at 0 range 0 .. 0;
RXERR at 0 range 1 .. 1;
Reserved_2_2 at 0 range 2 .. 2;
PERINT at 0 range 3 .. 3;
TXEMPTY at 0 range 4 .. 4;
TXNOTFULL at 0 range 5 .. 5;
RXNOTEMPTY at 0 range 6 .. 6;
RXFULL at 0 range 7 .. 7;
TXLVL at 0 range 8 .. 12;
Reserved_13_15 at 0 range 13 .. 15;
RXLVL at 0 range 16 .. 20;
Reserved_21_31 at 0 range 21 .. 31;
end record;
-- Transmit FIFO level trigger enable. This trigger will become an
-- interrupt if enabled in FIFOINTENSET, or a DMA trigger if DMATX in
-- FIFOCFG is set.
type FIFOTRIG_TXLVLENA_Field is
(
-- Transmit FIFO level does not generate a FIFO level trigger.
Disabled,
-- An trigger will be generated if the transmit FIFO level reaches the
-- value specified by the TXLVL field in this register.
Enabled)
with Size => 1;
for FIFOTRIG_TXLVLENA_Field use
(Disabled => 0,
Enabled => 1);
-- Receive FIFO level trigger enable. This trigger will become an interrupt
-- if enabled in FIFOINTENSET, or a DMA trigger if DMARX in FIFOCFG is set.
type FIFOTRIG_RXLVLENA_Field is
(
-- Receive FIFO level does not generate a FIFO level trigger.
Disabled,
-- An trigger will be generated if the receive FIFO level reaches the
-- value specified by the RXLVL field in this register.
Enabled)
with Size => 1;
for FIFOTRIG_RXLVLENA_Field use
(Disabled => 0,
Enabled => 1);
subtype FIFOTRIG_TXLVL_Field is HAL.UInt4;
subtype FIFOTRIG_RXLVL_Field is HAL.UInt4;
-- FIFO trigger settings for interrupt and DMA request.
type FIFOTRIG_Register is record
-- Transmit FIFO level trigger enable. This trigger will become an
-- interrupt if enabled in FIFOINTENSET, or a DMA trigger if DMATX in
-- FIFOCFG is set.
TXLVLENA : FIFOTRIG_TXLVLENA_Field := NXP_SVD.SPI.Disabled;
-- Receive FIFO level trigger enable. This trigger will become an
-- interrupt if enabled in FIFOINTENSET, or a DMA trigger if DMARX in
-- FIFOCFG is set.
RXLVLENA : FIFOTRIG_RXLVLENA_Field := NXP_SVD.SPI.Disabled;
-- unspecified
Reserved_2_7 : HAL.UInt6 := 16#0#;
-- Transmit FIFO level trigger point. This field is used only when
-- TXLVLENA = 1. If enabled to do so, the FIFO level can wake up the
-- device just enough to perform DMA, then return to the reduced power
-- mode. See Hardware Wake-up control register. 0 = trigger when the TX
-- FIFO becomes empty. 1 = trigger when the TX FIFO level decreases to
-- one entry. 15 = trigger when the TX FIFO level decreases to 15
-- entries (is no longer full).
TXLVL : FIFOTRIG_TXLVL_Field := 16#0#;
-- unspecified
Reserved_12_15 : HAL.UInt4 := 16#0#;
-- Receive FIFO level trigger point. The RX FIFO level is checked when a
-- new piece of data is received. This field is used only when RXLVLENA
-- = 1. If enabled to do so, the FIFO level can wake up the device just
-- enough to perform DMA, then return to the reduced power mode. See
-- Hardware Wake-up control register. 0 = trigger when the RX FIFO has
-- received one entry (is no longer empty). 1 = trigger when the RX FIFO
-- has received two entries. 15 = trigger when the RX FIFO has received
-- 16 entries (has become full).
RXLVL : FIFOTRIG_RXLVL_Field := 16#0#;
-- unspecified
Reserved_20_31 : HAL.UInt12 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for FIFOTRIG_Register use record
TXLVLENA at 0 range 0 .. 0;
RXLVLENA at 0 range 1 .. 1;
Reserved_2_7 at 0 range 2 .. 7;
TXLVL at 0 range 8 .. 11;
Reserved_12_15 at 0 range 12 .. 15;
RXLVL at 0 range 16 .. 19;
Reserved_20_31 at 0 range 20 .. 31;
end record;
-- Determines whether an interrupt occurs when a transmit error occurs,
-- based on the TXERR flag in the FIFOSTAT register.
type FIFOINTENSET_TXERR_Field is
(
-- No interrupt will be generated for a transmit error.
Disabled,
-- An interrupt will be generated when a transmit error occurs.
Enabled)
with Size => 1;
for FIFOINTENSET_TXERR_Field use
(Disabled => 0,
Enabled => 1);
-- Determines whether an interrupt occurs when a receive error occurs,
-- based on the RXERR flag in the FIFOSTAT register.
type FIFOINTENSET_RXERR_Field is
(
-- No interrupt will be generated for a receive error.
Disabled,
-- An interrupt will be generated when a receive error occurs.
Enabled)
with Size => 1;
for FIFOINTENSET_RXERR_Field use
(Disabled => 0,
Enabled => 1);
-- Determines whether an interrupt occurs when a the transmit FIFO reaches
-- the level specified by the TXLVL field in the FIFOTRIG register.
type FIFOINTENSET_TXLVL_Field is
(
-- No interrupt will be generated based on the TX FIFO level.
Disabled,
-- If TXLVLENA in the FIFOTRIG register = 1, an interrupt will be
-- generated when the TX FIFO level decreases to the level specified by
-- TXLVL in the FIFOTRIG register.
Enabled)
with Size => 1;
for FIFOINTENSET_TXLVL_Field use
(Disabled => 0,
Enabled => 1);
-- Determines whether an interrupt occurs when a the receive FIFO reaches
-- the level specified by the TXLVL field in the FIFOTRIG register.
type FIFOINTENSET_RXLVL_Field is
(
-- No interrupt will be generated based on the RX FIFO level.
Disabled,
-- If RXLVLENA in the FIFOTRIG register = 1, an interrupt will be
-- generated when the when the RX FIFO level increases to the level
-- specified by RXLVL in the FIFOTRIG register.
Enabled)
with Size => 1;
for FIFOINTENSET_RXLVL_Field use
(Disabled => 0,
Enabled => 1);
-- FIFO interrupt enable set (enable) and read register.
type FIFOINTENSET_Register is record
-- Determines whether an interrupt occurs when a transmit error occurs,
-- based on the TXERR flag in the FIFOSTAT register.
TXERR : FIFOINTENSET_TXERR_Field := NXP_SVD.SPI.Disabled;
-- Determines whether an interrupt occurs when a receive error occurs,
-- based on the RXERR flag in the FIFOSTAT register.
RXERR : FIFOINTENSET_RXERR_Field := NXP_SVD.SPI.Disabled;
-- Determines whether an interrupt occurs when a the transmit FIFO
-- reaches the level specified by the TXLVL field in the FIFOTRIG
-- register.
TXLVL : FIFOINTENSET_TXLVL_Field := NXP_SVD.SPI.Disabled;
-- Determines whether an interrupt occurs when a the receive FIFO
-- reaches the level specified by the TXLVL field in the FIFOTRIG
-- register.
RXLVL : FIFOINTENSET_RXLVL_Field := NXP_SVD.SPI.Disabled;
-- unspecified
Reserved_4_31 : HAL.UInt28 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for FIFOINTENSET_Register use record
TXERR at 0 range 0 .. 0;
RXERR at 0 range 1 .. 1;
TXLVL at 0 range 2 .. 2;
RXLVL at 0 range 3 .. 3;
Reserved_4_31 at 0 range 4 .. 31;
end record;
-- FIFO interrupt enable clear (disable) and read register.
type FIFOINTENCLR_Register is record
-- Writing one clears the corresponding bits in the FIFOINTENSET
-- register.
TXERR : Boolean := False;
-- Writing one clears the corresponding bits in the FIFOINTENSET
-- register.
RXERR : Boolean := False;
-- Writing one clears the corresponding bits in the FIFOINTENSET
-- register.
TXLVL : Boolean := False;
-- Writing one clears the corresponding bits in the FIFOINTENSET
-- register.
RXLVL : Boolean := False;
-- unspecified
Reserved_4_31 : HAL.UInt28 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for FIFOINTENCLR_Register use record
TXERR at 0 range 0 .. 0;
RXERR at 0 range 1 .. 1;
TXLVL at 0 range 2 .. 2;
RXLVL at 0 range 3 .. 3;
Reserved_4_31 at 0 range 4 .. 31;
end record;
-- FIFO interrupt status register.
type FIFOINTSTAT_Register is record
-- Read-only. TX FIFO error.
TXERR : Boolean;
-- Read-only. RX FIFO error.
RXERR : Boolean;
-- Read-only. Transmit FIFO level interrupt.
TXLVL : Boolean;
-- Read-only. Receive FIFO level interrupt.
RXLVL : Boolean;
-- Read-only. Peripheral interrupt.
PERINT : Boolean;
-- unspecified
Reserved_5_31 : HAL.UInt27;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for FIFOINTSTAT_Register use record
TXERR at 0 range 0 .. 0;
RXERR at 0 range 1 .. 1;
TXLVL at 0 range 2 .. 2;
RXLVL at 0 range 3 .. 3;
PERINT at 0 range 4 .. 4;
Reserved_5_31 at 0 range 5 .. 31;
end record;
subtype FIFOWR_TXDATA_Field is HAL.UInt16;
-- Transmit slave select. This field asserts SSEL0 in master mode. The
-- output on the pin is active LOW by default.
type FIFOWR_TXSSEL0_N_Field is
(
-- SSEL0 asserted.
Asserted,
-- SSEL0 not asserted.
Not_Asserted)
with Size => 1;
for FIFOWR_TXSSEL0_N_Field use
(Asserted => 0,
Not_Asserted => 1);
-- Transmit slave select. This field asserts SSEL1 in master mode. The
-- output on the pin is active LOW by default.
type FIFOWR_TXSSEL1_N_Field is
(
-- SSEL1 asserted.
Asserted,
-- SSEL1 not asserted.
Not_Asserted)
with Size => 1;
for FIFOWR_TXSSEL1_N_Field use
(Asserted => 0,
Not_Asserted => 1);
-- Transmit slave select. This field asserts SSEL2 in master mode. The
-- output on the pin is active LOW by default.
type FIFOWR_TXSSEL2_N_Field is
(
-- SSEL2 asserted.
Asserted,
-- SSEL2 not asserted.
Not_Asserted)
with Size => 1;
for FIFOWR_TXSSEL2_N_Field use
(Asserted => 0,
Not_Asserted => 1);
-- Transmit slave select. This field asserts SSEL3 in master mode. The
-- output on the pin is active LOW by default.
type FIFOWR_TXSSEL3_N_Field is
(
-- SSEL3 asserted.
Asserted,
-- SSEL3 not asserted.
Not_Asserted)
with Size => 1;
for FIFOWR_TXSSEL3_N_Field use
(Asserted => 0,
Not_Asserted => 1);
-- End of transfer. The asserted SSEL will be deasserted at the end of a
-- transfer and remain so far at least the time specified by the
-- Transfer_delay value in the DLY register.
type FIFOWR_EOT_Field is
(
-- SSEL not deasserted. This piece of data is not treated as the end of
-- a transfer. SSEL will not be deasserted at the end of this data.
Not_Deasserted,
-- SSEL deasserted. This piece of data is treated as the end of a
-- transfer. SSEL will be deasserted at the end of this piece of data.
Deasserted)
with Size => 1;
for FIFOWR_EOT_Field use
(Not_Deasserted => 0,
Deasserted => 1);
-- End of frame. Between frames, a delay may be inserted, as defined by the
-- Frame_delay value in the DLY register. The end of a frame may not be
-- particularly meaningful if the Frame_delay value = 0. This control can
-- be used as part of the support for frame lengths greater than 16 bits.
type FIFOWR_EOF_Field is
(
-- Data not EOF. This piece of data transmitted is not treated as the
-- end of a frame.
Not_Eof,
-- Data EOF. This piece of data is treated as the end of a frame,
-- causing the Frame_delay time to be inserted before subsequent data is
-- transmitted.
Eof)
with Size => 1;
for FIFOWR_EOF_Field use
(Not_Eof => 0,
Eof => 1);
-- Receive Ignore. This allows data to be transmitted using the SPI without
-- the need to read unneeded data from the receiver. Setting this bit
-- simplifies the transmit process and can be used with the DMA.
type FIFOWR_RXIGNORE_Field is
(
-- Read received data. Received data must be read in order to allow
-- transmission to progress. SPI transmit will halt when the receive
-- data FIFO is full. In slave mode, an overrun error will occur if
-- received data is not read before new data is received.
Read,
-- Ignore received data. Received data is ignored, allowing transmission
-- without reading unneeded received data. No receiver flags are
-- generated.
Ignore)
with Size => 1;
for FIFOWR_RXIGNORE_Field use
(Read => 0,
Ignore => 1);
subtype FIFOWR_LEN_Field is HAL.UInt4;
-- FIFO write data.
type FIFOWR_Register is record
-- Write-only. Transmit data to the FIFO.
TXDATA : FIFOWR_TXDATA_Field := 16#0#;
-- Write-only. Transmit slave select. This field asserts SSEL0 in master
-- mode. The output on the pin is active LOW by default.
TXSSEL0_N : FIFOWR_TXSSEL0_N_Field := NXP_SVD.SPI.Asserted;
-- Write-only. Transmit slave select. This field asserts SSEL1 in master
-- mode. The output on the pin is active LOW by default.
TXSSEL1_N : FIFOWR_TXSSEL1_N_Field := NXP_SVD.SPI.Asserted;
-- Write-only. Transmit slave select. This field asserts SSEL2 in master
-- mode. The output on the pin is active LOW by default.
TXSSEL2_N : FIFOWR_TXSSEL2_N_Field := NXP_SVD.SPI.Asserted;
-- Write-only. Transmit slave select. This field asserts SSEL3 in master
-- mode. The output on the pin is active LOW by default.
TXSSEL3_N : FIFOWR_TXSSEL3_N_Field := NXP_SVD.SPI.Asserted;
-- Write-only. End of transfer. The asserted SSEL will be deasserted at
-- the end of a transfer and remain so far at least the time specified
-- by the Transfer_delay value in the DLY register.
EOT : FIFOWR_EOT_Field := NXP_SVD.SPI.Not_Deasserted;
-- Write-only. End of frame. Between frames, a delay may be inserted, as
-- defined by the Frame_delay value in the DLY register. The end of a
-- frame may not be particularly meaningful if the Frame_delay value =
-- 0. This control can be used as part of the support for frame lengths
-- greater than 16 bits.
EOF : FIFOWR_EOF_Field := NXP_SVD.SPI.Not_Eof;
-- Write-only. Receive Ignore. This allows data to be transmitted using
-- the SPI without the need to read unneeded data from the receiver.
-- Setting this bit simplifies the transmit process and can be used with
-- the DMA.
RXIGNORE : FIFOWR_RXIGNORE_Field := NXP_SVD.SPI.Read;
-- unspecified
Reserved_23_23 : HAL.Bit := 16#0#;
-- Write-only. Data Length. Specifies the data length from 4 to 16 bits.
-- Note that transfer lengths greater than 16 bits are supported by
-- implementing multiple sequential transmits. 0x0-2 = Reserved. 0x3 =
-- Data transfer is 4 bits in length. 0x4 = Data transfer is 5 bits in
-- length. 0xF = Data transfer is 16 bits in length.
LEN : FIFOWR_LEN_Field := 16#0#;
-- unspecified
Reserved_28_31 : HAL.UInt4 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for FIFOWR_Register use record
TXDATA at 0 range 0 .. 15;
TXSSEL0_N at 0 range 16 .. 16;
TXSSEL1_N at 0 range 17 .. 17;
TXSSEL2_N at 0 range 18 .. 18;
TXSSEL3_N at 0 range 19 .. 19;
EOT at 0 range 20 .. 20;
EOF at 0 range 21 .. 21;
RXIGNORE at 0 range 22 .. 22;
Reserved_23_23 at 0 range 23 .. 23;
LEN at 0 range 24 .. 27;
Reserved_28_31 at 0 range 28 .. 31;
end record;
subtype FIFORD_RXDATA_Field is HAL.UInt16;
-- FIFO read data.
type FIFORD_Register is record
-- Read-only. Received data from the FIFO.
RXDATA : FIFORD_RXDATA_Field;
-- Read-only. Slave Select for receive. This field allows the state of
-- the SSEL0 pin to be saved along with received data. The value will
-- reflect the SSEL0 pin for both master and slave operation. A zero
-- indicates that a slave select is active. The actual polarity of each
-- slave select pin is configured by the related SPOL bit in CFG.
RXSSEL0_N : Boolean;
-- Read-only. Slave Select for receive. This field allows the state of
-- the SSEL1 pin to be saved along with received data. The value will
-- reflect the SSEL1 pin for both master and slave operation. A zero
-- indicates that a slave select is active. The actual polarity of each
-- slave select pin is configured by the related SPOL bit in CFG.
RXSSEL1_N : Boolean;
-- Read-only. Slave Select for receive. This field allows the state of
-- the SSEL2 pin to be saved along with received data. The value will
-- reflect the SSEL2 pin for both master and slave operation. A zero
-- indicates that a slave select is active. The actual polarity of each
-- slave select pin is configured by the related SPOL bit in CFG.
RXSSEL2_N : Boolean;
-- Read-only. Slave Select for receive. This field allows the state of
-- the SSEL3 pin to be saved along with received data. The value will
-- reflect the SSEL3 pin for both master and slave operation. A zero
-- indicates that a slave select is active. The actual polarity of each
-- slave select pin is configured by the related SPOL bit in CFG.
RXSSEL3_N : Boolean;
-- Read-only. Start of Transfer flag. This flag will be 1 if this is the
-- first data after the SSELs went from deasserted to asserted (i.e.,
-- any previous transfer has ended). This information can be used to
-- identify the first piece of data in cases where the transfer length
-- is greater than 16 bits.
SOT : Boolean;
-- unspecified
Reserved_21_31 : HAL.UInt11;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for FIFORD_Register use record
RXDATA at 0 range 0 .. 15;
RXSSEL0_N at 0 range 16 .. 16;
RXSSEL1_N at 0 range 17 .. 17;
RXSSEL2_N at 0 range 18 .. 18;
RXSSEL3_N at 0 range 19 .. 19;
SOT at 0 range 20 .. 20;
Reserved_21_31 at 0 range 21 .. 31;
end record;
subtype FIFORDNOPOP_RXDATA_Field is HAL.UInt16;
-- FIFO data read with no FIFO pop.
type FIFORDNOPOP_Register is record
-- Read-only. Received data from the FIFO.
RXDATA : FIFORDNOPOP_RXDATA_Field;
-- Read-only. Slave Select for receive.
RXSSEL0_N : Boolean;
-- Read-only. Slave Select for receive.
RXSSEL1_N : Boolean;
-- Read-only. Slave Select for receive.
RXSSEL2_N : Boolean;
-- Read-only. Slave Select for receive.
RXSSEL3_N : Boolean;
-- Read-only. Start of transfer flag.
SOT : Boolean;
-- unspecified
Reserved_21_31 : HAL.UInt11;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for FIFORDNOPOP_Register use record
RXDATA at 0 range 0 .. 15;
RXSSEL0_N at 0 range 16 .. 16;
RXSSEL1_N at 0 range 17 .. 17;
RXSSEL2_N at 0 range 18 .. 18;
RXSSEL3_N at 0 range 19 .. 19;
SOT at 0 range 20 .. 20;
Reserved_21_31 at 0 range 21 .. 31;
end record;
subtype ID_APERTURE_Field is HAL.UInt8;
subtype ID_MINOR_REV_Field is HAL.UInt4;
subtype ID_MAJOR_REV_Field is HAL.UInt4;
subtype ID_ID_Field is HAL.UInt16;
-- Peripheral identification register.
type ID_Register is record
-- Read-only. Aperture: encoded as (aperture size/4K) -1, so 0x00 means
-- a 4K aperture.
APERTURE : ID_APERTURE_Field;
-- Read-only. Minor revision of module implementation.
MINOR_REV : ID_MINOR_REV_Field;
-- Read-only. Major revision of module implementation.
MAJOR_REV : ID_MAJOR_REV_Field;
-- Read-only. Module identifier for the selected function.
ID : ID_ID_Field;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for ID_Register use record
APERTURE at 0 range 0 .. 7;
MINOR_REV at 0 range 8 .. 11;
MAJOR_REV at 0 range 12 .. 15;
ID at 0 range 16 .. 31;
end record;
-----------------
-- Peripherals --
-----------------
-- Serial Peripheral Interfaces (SPI)
type SPI_Peripheral is record
-- SPI Configuration register
CFG : aliased CFG_Register;
-- SPI Delay register
DLY : aliased DLY_Register;
-- SPI Status. Some status flags can be cleared by writing a 1 to that
-- bit position.
STAT : aliased STAT_Register;
-- SPI Interrupt Enable read and Set. A complete value may be read from
-- this register. Writing a 1 to any implemented bit position causes
-- that bit to be set.
INTENSET : aliased INTENSET_Register;
-- SPI Interrupt Enable Clear. Writing a 1 to any implemented bit
-- position causes the corresponding bit in INTENSET to be cleared.
INTENCLR : aliased INTENCLR_Register;
-- SPI clock Divider
DIV : aliased DIV_Register;
-- SPI Interrupt Status
INTSTAT : aliased INTSTAT_Register;
-- FIFO configuration and enable register.
FIFOCFG : aliased FIFOCFG_Register;
-- FIFO status register.
FIFOSTAT : aliased FIFOSTAT_Register;
-- FIFO trigger settings for interrupt and DMA request.
FIFOTRIG : aliased FIFOTRIG_Register;
-- FIFO interrupt enable set (enable) and read register.
FIFOINTENSET : aliased FIFOINTENSET_Register;
-- FIFO interrupt enable clear (disable) and read register.
FIFOINTENCLR : aliased FIFOINTENCLR_Register;
-- FIFO interrupt status register.
FIFOINTSTAT : aliased FIFOINTSTAT_Register;
-- FIFO write data.
FIFOWR : aliased FIFOWR_Register;
-- FIFO read data.
FIFORD : aliased FIFORD_Register;
-- FIFO data read with no FIFO pop.
FIFORDNOPOP : aliased FIFORDNOPOP_Register;
-- Peripheral identification register.
ID : aliased ID_Register;
end record
with Volatile;
for SPI_Peripheral use record
CFG at 16#400# range 0 .. 31;
DLY at 16#404# range 0 .. 31;
STAT at 16#408# range 0 .. 31;
INTENSET at 16#40C# range 0 .. 31;
INTENCLR at 16#410# range 0 .. 31;
DIV at 16#424# range 0 .. 31;
INTSTAT at 16#428# range 0 .. 31;
FIFOCFG at 16#E00# range 0 .. 31;
FIFOSTAT at 16#E04# range 0 .. 31;
FIFOTRIG at 16#E08# range 0 .. 31;
FIFOINTENSET at 16#E10# range 0 .. 31;
FIFOINTENCLR at 16#E14# range 0 .. 31;
FIFOINTSTAT at 16#E18# range 0 .. 31;
FIFOWR at 16#E20# range 0 .. 31;
FIFORD at 16#E30# range 0 .. 31;
FIFORDNOPOP at 16#E40# range 0 .. 31;
ID at 16#FFC# range 0 .. 31;
end record;
-- Serial Peripheral Interfaces (SPI)
SPI0_Periph : aliased SPI_Peripheral
with Import, Address => System'To_Address (16#40086000#);
-- Serial Peripheral Interfaces (SPI)
SPI1_Periph : aliased SPI_Peripheral
with Import, Address => System'To_Address (16#40087000#);
-- Serial Peripheral Interfaces (SPI)
SPI2_Periph : aliased SPI_Peripheral
with Import, Address => System'To_Address (16#40088000#);
-- Serial Peripheral Interfaces (SPI)
SPI3_Periph : aliased SPI_Peripheral
with Import, Address => System'To_Address (16#40089000#);
-- Serial Peripheral Interfaces (SPI)
SPI4_Periph : aliased SPI_Peripheral
with Import, Address => System'To_Address (16#4008A000#);
-- Serial Peripheral Interfaces (SPI)
SPI5_Periph : aliased SPI_Peripheral
with Import, Address => System'To_Address (16#40096000#);
-- Serial Peripheral Interfaces (SPI)
SPI6_Periph : aliased SPI_Peripheral
with Import, Address => System'To_Address (16#40097000#);
-- Serial Peripheral Interfaces (SPI)
SPI7_Periph : aliased SPI_Peripheral
with Import, Address => System'To_Address (16#40098000#);
-- Serial Peripheral Interfaces (SPI)
SPI8_Periph : aliased SPI_Peripheral
with Import, Address => System'To_Address (16#4009F000#);
end NXP_SVD.SPI;
|
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- Web Framework --
-- --
-- Runtime Library Component --
-- --
------------------------------------------------------------------------------
-- --
-- Copyright © 2012, Vadim Godunko <vgodunko@gmail.com> --
-- All rights reserved. --
-- --
-- Redistribution and use in source and binary forms, with or without --
-- modification, are permitted provided that the following conditions --
-- are met: --
-- --
-- * Redistributions of source code must retain the above copyright --
-- notice, this list of conditions and the following disclaimer. --
-- --
-- * Redistributions in binary form must reproduce the above copyright --
-- notice, this list of conditions and the following disclaimer in the --
-- documentation and/or other materials provided with the distribution. --
-- --
-- * Neither the name of the Vadim Godunko, IE nor the names of its --
-- contributors may be used to endorse or promote products derived from --
-- this software without specific prior written permission. --
-- --
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS --
-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT --
-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR --
-- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT --
-- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, --
-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED --
-- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR --
-- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF --
-- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING --
-- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS --
-- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --
-- --
------------------------------------------------------------------------------
-- $Revision$ $Date$
------------------------------------------------------------------------------
with League.Stream_Element_Vectors;
with League.Strings;
with Web_Services.SOAP.Messages;
with Web_Services.SOAP.Payloads;
package Web_Services.SOAP.Clients is
type Abstract_Transport is abstract tagged limited null record;
not overriding procedure Post_Request
(Self : in out Abstract_Transport;
Content_Type : League.Stream_Element_Vectors.Stream_Element_Vector;
Request_Data : League.Stream_Element_Vectors.Stream_Element_Vector;
Response_Data : out League.Stream_Element_Vectors.Stream_Element_Vector)
is abstract;
-- Send given request and return reply.
not overriding function Is_Multipart_Content
(Self : in out Abstract_Transport) return Boolean is abstract;
-- If server return multipart replies
not overriding procedure Next_Response
(Self : in out Abstract_Transport;
Response_Data : out League.Stream_Element_Vectors.Stream_Element_Vector)
is abstract;
-- Get next responce. Only if server return multipart replies
not overriding procedure Finalyze (Self : in out Abstract_Transport)
is abstract;
-- Clean up internal data before transport deallocation
type SOAP_Client (Transport : access Abstract_Transport'Class) is
tagged limited private;
not overriding procedure Call
(Self : in out SOAP_Client;
Request : Web_Services.SOAP.Payloads.SOAP_Payload_Access;
Response : out Web_Services.SOAP.Payloads.SOAP_Payload_Access;
User : League.Strings.Universal_String :=
League.Strings.Empty_Universal_String;
Password : League.Strings.Universal_String :=
League.Strings.Empty_Universal_String;
Action : League.Strings.Universal_String :=
League.Strings.Empty_Universal_String);
-- Call server
not overriding procedure Next_Response
(Self : in out SOAP_Client;
Response : out Web_Services.SOAP.Payloads.SOAP_Payload_Access);
private
type SOAP_Client (Transport : access Abstract_Transport'Class) is
tagged limited null record;
procedure Call
(Self : in out SOAP_Client;
Input : Web_Services.SOAP.Messages.SOAP_Message_Access;
Response : out Web_Services.SOAP.Payloads.SOAP_Payload_Access);
end Web_Services.SOAP.Clients;
|
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ADA.STRINGS.TEXT_BUFFERS --
-- --
-- S p e c --
-- --
-- This specification is derived from the Ada Reference Manual for use with --
-- GNAT. In accordance with the copyright of that document, you can freely --
-- copy and modify this specification, provided that if you redistribute a --
-- modified version, any changes that you have made are clearly indicated. --
-- --
------------------------------------------------------------------------------
with Ada.Strings.UTF_Encoding;
package Ada.Strings.Text_Buffers with
Pure
is
type Text_Buffer_Count is range 0 .. Integer'Last;
New_Line_Count : constant Text_Buffer_Count := 1;
-- There is no support for two-character CR/LF line endings.
type Root_Buffer_Type is abstract tagged limited private with
Default_Initial_Condition => Current_Indent (Root_Buffer_Type) = 0;
procedure Put (Buffer : in out Root_Buffer_Type; Item : String) is abstract;
procedure Wide_Put
(Buffer : in out Root_Buffer_Type; Item : Wide_String) is abstract;
procedure Wide_Wide_Put
(Buffer : in out Root_Buffer_Type; Item : Wide_Wide_String) is abstract;
procedure Put_UTF_8
(Buffer : in out Root_Buffer_Type;
Item : UTF_Encoding.UTF_8_String) is abstract;
procedure Wide_Put_UTF_16
(Buffer : in out Root_Buffer_Type;
Item : UTF_Encoding.UTF_16_Wide_String) is abstract;
procedure New_Line (Buffer : in out Root_Buffer_Type) is abstract;
Standard_Indent : constant Text_Buffer_Count := 3;
function Current_Indent
(Buffer : Root_Buffer_Type) return Text_Buffer_Count;
procedure Increase_Indent
(Buffer : in out Root_Buffer_Type;
Amount : Text_Buffer_Count := Standard_Indent) with
Post'Class => Current_Indent (Buffer) =
Current_Indent (Buffer)'Old + Amount;
procedure Decrease_Indent
(Buffer : in out Root_Buffer_Type;
Amount : Text_Buffer_Count := Standard_Indent) with
Pre'Class => Current_Indent (Buffer) >= Amount
-- or else raise Constraint_Error,
or else Boolean'Val (Current_Indent (Buffer) - Amount),
Post'Class => Current_Indent (Buffer) =
Current_Indent (Buffer)'Old - Amount;
private
type Root_Buffer_Type is abstract tagged limited record
Indentation : Natural := 0;
-- Current indentation
Indent_Pending : Boolean := True;
-- Set by calls to New_Line, cleared when indentation emitted.
UTF_8_Length : Natural := 0;
-- Count of UTF_8 characters in the buffer
UTF_8_Column : Positive := 1;
-- Column in which next character will be written.
-- Calling New_Line resets to 1.
All_7_Bits : Boolean := True;
-- True if all characters seen so far fit in 7 bits
All_8_Bits : Boolean := True;
-- True if all characters seen so far fit in 8 bits
end record;
generic
-- This generic allows a client to extend Root_Buffer_Type without
-- having to implement any of the abstract subprograms other than
-- Put_UTF_8 (i.e., Put, Wide_Put, Wide_Wide_Put, Wide_Put_UTF_16,
-- and New_Line). Without this generic, each client would have to
-- duplicate the implementations of those 5 subprograms.
-- This generic also takes care of handling indentation, thereby
-- avoiding further code duplication. The name "Output_Mapping" isn't
-- wonderful, but it refers to the idea that this package knows how
-- to implement all the other output operations in terms of
-- just Put_UTF_8.
--
-- The classwide parameter type here is somewhat tricky;
-- there are no dispatching calls associated with this parameter.
-- It would be more accurate to say that the parameter is of type
-- Output_Mapping.Buffer_Type'Class, but that type hasn't been declared
-- yet. Instantiators will typically declare a non-abstract extension,
-- B2, of the buffer type, B1, declared in their instantiation. The
-- actual Put_UTF_8_Implementation parameter may then have a
-- precondition "Buffer in B2'Class" and that subprogram can safely
-- access components declared as part of the declaration of B2.
with procedure Put_UTF_8_Implementation
(Buffer : in out Root_Buffer_Type'Class;
Item : UTF_Encoding.UTF_8_String);
package Output_Mapping is
type Buffer_Type is abstract new Root_Buffer_Type with null record;
overriding procedure Put (Buffer : in out Buffer_Type; Item : String);
overriding procedure Wide_Put
(Buffer : in out Buffer_Type; Item : Wide_String);
overriding procedure Wide_Wide_Put
(Buffer : in out Buffer_Type; Item : Wide_Wide_String);
overriding procedure Put_UTF_8
(Buffer : in out Buffer_Type;
Item : UTF_Encoding.UTF_8_String);
overriding procedure Wide_Put_UTF_16
(Buffer : in out Buffer_Type; Item : UTF_Encoding.UTF_16_Wide_String);
overriding procedure New_Line (Buffer : in out Buffer_Type);
end Output_Mapping;
end Ada.Strings.Text_Buffers;
|
-- { dg-do compile }
-- { dg-options "-flto" { target lto } }
with Lto12_Pkg; use Lto12_Pkg;
package Lto12 is
C : constant R := F;
end Lto12;
|
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- R E P I N F O --
-- --
-- B o d y --
-- --
-- Copyright (C) 1999-2014, Free Software Foundation, Inc. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 3, or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. --
-- --
-- As a special exception under Section 7 of GPL version 3, you are granted --
-- additional permissions described in the GCC Runtime Library Exception, --
-- version 3.1, as published by the Free Software Foundation. --
-- --
-- You should have received a copy of the GNU General Public License and --
-- a copy of the GCC Runtime Library Exception along with this program; --
-- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
-- <http://www.gnu.org/licenses/>. --
-- --
-- GNAT was originally developed by the GNAT team at New York University. --
-- Extensive contributions were provided by Ada Core Technologies Inc. --
-- --
------------------------------------------------------------------------------
with Alloc; use Alloc;
with Atree; use Atree;
with Casing; use Casing;
with Debug; use Debug;
with Einfo; use Einfo;
with Lib; use Lib;
with Namet; use Namet;
with Nlists; use Nlists;
with Opt; use Opt;
with Output; use Output;
with Sem_Aux; use Sem_Aux;
with Sinfo; use Sinfo;
with Sinput; use Sinput;
with Snames; use Snames;
with Stand; use Stand;
with Stringt; use Stringt;
with Table; use Table;
with Uname; use Uname;
with Urealp; use Urealp;
with Ada.Unchecked_Conversion;
package body Repinfo is
SSU : constant := 8;
-- Value for Storage_Unit, we do not want to get this from TTypes, since
-- this introduces problematic dependencies in ASIS, and in any case this
-- value is assumed to be 8 for the implementation of the DDA.
-- This is wrong for AAMP???
---------------------------------------
-- Representation of gcc Expressions --
---------------------------------------
-- This table is used only if Frontend_Layout_On_Target is False, so gigi
-- lays out dynamic size/offset fields using encoded gcc expressions.
-- A table internal to this unit is used to hold the values of back
-- annotated expressions. This table is written out by -gnatt and read
-- back in for ASIS processing.
-- Node values are stored as Uint values using the negative of the node
-- index in this table. Constants appear as non-negative Uint values.
type Exp_Node is record
Expr : TCode;
Op1 : Node_Ref_Or_Val;
Op2 : Node_Ref_Or_Val;
Op3 : Node_Ref_Or_Val;
end record;
-- The following representation clause ensures that the above record
-- has no holes. We do this so that when instances of this record are
-- written by Tree_Gen, we do not write uninitialized values to the file.
for Exp_Node use record
Expr at 0 range 0 .. 31;
Op1 at 4 range 0 .. 31;
Op2 at 8 range 0 .. 31;
Op3 at 12 range 0 .. 31;
end record;
for Exp_Node'Size use 16 * 8;
-- This ensures that we did not leave out any fields
package Rep_Table is new Table.Table (
Table_Component_Type => Exp_Node,
Table_Index_Type => Nat,
Table_Low_Bound => 1,
Table_Initial => Alloc.Rep_Table_Initial,
Table_Increment => Alloc.Rep_Table_Increment,
Table_Name => "BE_Rep_Table");
--------------------------------------------------------------
-- Representation of Front-End Dynamic Size/Offset Entities --
--------------------------------------------------------------
package Dynamic_SO_Entity_Table is new Table.Table (
Table_Component_Type => Entity_Id,
Table_Index_Type => Nat,
Table_Low_Bound => 1,
Table_Initial => Alloc.Rep_Table_Initial,
Table_Increment => Alloc.Rep_Table_Increment,
Table_Name => "FE_Rep_Table");
Unit_Casing : Casing_Type;
-- Identifier casing for current unit. This is set by List_Rep_Info for
-- each unit, before calling subprograms which may read it.
Need_Blank_Line : Boolean;
-- Set True if a blank line is needed before outputting any information for
-- the current entity. Set True when a new entity is processed, and false
-- when the blank line is output.
-----------------------
-- Local Subprograms --
-----------------------
function Back_End_Layout return Boolean;
-- Test for layout mode, True = back end, False = front end. This function
-- is used rather than checking the configuration parameter because we do
-- not want Repinfo to depend on Targparm (for ASIS)
procedure Blank_Line;
-- Called before outputting anything for an entity. Ensures that
-- a blank line precedes the output for a particular entity.
procedure List_Entities (Ent : Entity_Id; Bytes_Big_Endian : Boolean);
-- This procedure lists the entities associated with the entity E, starting
-- with the First_Entity and using the Next_Entity link. If a nested
-- package is found, entities within the package are recursively processed.
procedure List_Name (Ent : Entity_Id);
-- List name of entity Ent in appropriate case. The name is listed with
-- full qualification up to but not including the compilation unit name.
procedure List_Array_Info (Ent : Entity_Id; Bytes_Big_Endian : Boolean);
-- List representation info for array type Ent
procedure List_Linker_Section (Ent : Entity_Id);
-- List linker section for Ent (caller has checked that Ent is an entity
-- for which the Linker_Section_Pragma field is defined).
procedure List_Mechanisms (Ent : Entity_Id);
-- List mechanism information for parameters of Ent, which is subprogram,
-- subprogram type, or an entry or entry family.
procedure List_Object_Info (Ent : Entity_Id);
-- List representation info for object Ent
procedure List_Record_Info (Ent : Entity_Id; Bytes_Big_Endian : Boolean);
-- List representation info for record type Ent
procedure List_Scalar_Storage_Order
(Ent : Entity_Id;
Bytes_Big_Endian : Boolean);
-- List scalar storage order information for record or array type Ent.
-- Also includes bit order information for record types, if necessary.
procedure List_Type_Info (Ent : Entity_Id);
-- List type info for type Ent
function Rep_Not_Constant (Val : Node_Ref_Or_Val) return Boolean;
-- Returns True if Val represents a variable value, and False if it
-- represents a value that is fixed at compile time.
procedure Spaces (N : Natural);
-- Output given number of spaces
procedure Write_Info_Line (S : String);
-- Routine to write a line to Repinfo output file. This routine is passed
-- as a special output procedure to Output.Set_Special_Output. Note that
-- Write_Info_Line is called with an EOL character at the end of each line,
-- as per the Output spec, but the internal call to the appropriate routine
-- in Osint requires that the end of line sequence be stripped off.
procedure Write_Mechanism (M : Mechanism_Type);
-- Writes symbolic string for mechanism represented by M
procedure Write_Val (Val : Node_Ref_Or_Val; Paren : Boolean := False);
-- Given a representation value, write it out. No_Uint values or values
-- dependent on discriminants are written as two question marks. If the
-- flag Paren is set, then the output is surrounded in parentheses if it is
-- other than a simple value.
---------------------
-- Back_End_Layout --
---------------------
function Back_End_Layout return Boolean is
begin
-- We have back end layout if the back end has made any entries in the
-- table of GCC expressions, otherwise we have front end layout.
return Rep_Table.Last > 0;
end Back_End_Layout;
----------------
-- Blank_Line --
----------------
procedure Blank_Line is
begin
if Need_Blank_Line then
Write_Eol;
Need_Blank_Line := False;
end if;
end Blank_Line;
------------------------
-- Create_Discrim_Ref --
------------------------
function Create_Discrim_Ref (Discr : Entity_Id) return Node_Ref is
begin
return Create_Node
(Expr => Discrim_Val,
Op1 => Discriminant_Number (Discr));
end Create_Discrim_Ref;
---------------------------
-- Create_Dynamic_SO_Ref --
---------------------------
function Create_Dynamic_SO_Ref (E : Entity_Id) return Dynamic_SO_Ref is
begin
Dynamic_SO_Entity_Table.Append (E);
return UI_From_Int (-Dynamic_SO_Entity_Table.Last);
end Create_Dynamic_SO_Ref;
-----------------
-- Create_Node --
-----------------
function Create_Node
(Expr : TCode;
Op1 : Node_Ref_Or_Val;
Op2 : Node_Ref_Or_Val := No_Uint;
Op3 : Node_Ref_Or_Val := No_Uint) return Node_Ref
is
begin
Rep_Table.Append (
(Expr => Expr,
Op1 => Op1,
Op2 => Op2,
Op3 => Op3));
return UI_From_Int (-Rep_Table.Last);
end Create_Node;
---------------------------
-- Get_Dynamic_SO_Entity --
---------------------------
function Get_Dynamic_SO_Entity (U : Dynamic_SO_Ref) return Entity_Id is
begin
return Dynamic_SO_Entity_Table.Table (-UI_To_Int (U));
end Get_Dynamic_SO_Entity;
-----------------------
-- Is_Dynamic_SO_Ref --
-----------------------
function Is_Dynamic_SO_Ref (U : SO_Ref) return Boolean is
begin
return U < Uint_0;
end Is_Dynamic_SO_Ref;
----------------------
-- Is_Static_SO_Ref --
----------------------
function Is_Static_SO_Ref (U : SO_Ref) return Boolean is
begin
return U >= Uint_0;
end Is_Static_SO_Ref;
---------
-- lgx --
---------
procedure lgx (U : Node_Ref_Or_Val) is
begin
List_GCC_Expression (U);
Write_Eol;
end lgx;
----------------------
-- List_Array_Info --
----------------------
procedure List_Array_Info (Ent : Entity_Id; Bytes_Big_Endian : Boolean) is
begin
List_Type_Info (Ent);
Write_Str ("for ");
List_Name (Ent);
Write_Str ("'Component_Size use ");
Write_Val (Component_Size (Ent));
Write_Line (";");
List_Scalar_Storage_Order (Ent, Bytes_Big_Endian);
end List_Array_Info;
-------------------
-- List_Entities --
-------------------
procedure List_Entities (Ent : Entity_Id; Bytes_Big_Endian : Boolean) is
Body_E : Entity_Id;
E : Entity_Id;
function Find_Declaration (E : Entity_Id) return Node_Id;
-- Utility to retrieve declaration node for entity in the
-- case of package bodies and subprograms.
----------------------
-- Find_Declaration --
----------------------
function Find_Declaration (E : Entity_Id) return Node_Id is
Decl : Node_Id;
begin
Decl := Parent (E);
while Present (Decl)
and then Nkind (Decl) /= N_Package_Body
and then Nkind (Decl) /= N_Subprogram_Declaration
and then Nkind (Decl) /= N_Subprogram_Body
loop
Decl := Parent (Decl);
end loop;
return Decl;
end Find_Declaration;
-- Start of processing for List_Entities
begin
-- List entity if we have one, and it is not a renaming declaration.
-- For renamings, we don't get proper information, and really it makes
-- sense to restrict the output to the renamed entity.
if Present (Ent)
and then Nkind (Declaration_Node (Ent)) not in N_Renaming_Declaration
then
-- If entity is a subprogram and we are listing mechanisms,
-- then we need to list mechanisms for this entity.
if List_Representation_Info_Mechanisms
and then (Is_Subprogram (Ent)
or else Ekind (Ent) = E_Entry
or else Ekind (Ent) = E_Entry_Family)
then
Need_Blank_Line := True;
List_Mechanisms (Ent);
end if;
E := First_Entity (Ent);
while Present (E) loop
Need_Blank_Line := True;
-- We list entities that come from source (excluding private or
-- incomplete types or deferred constants, where we will list the
-- info for the full view). If debug flag A is set, then all
-- entities are listed
if (Comes_From_Source (E)
and then not Is_Incomplete_Or_Private_Type (E)
and then not (Ekind (E) = E_Constant
and then Present (Full_View (E))))
or else Debug_Flag_AA
then
if Is_Subprogram (E) then
List_Linker_Section (E);
if List_Representation_Info_Mechanisms then
List_Mechanisms (E);
end if;
elsif Ekind_In (E, E_Entry,
E_Entry_Family,
E_Subprogram_Type)
then
if List_Representation_Info_Mechanisms then
List_Mechanisms (E);
end if;
elsif Is_Record_Type (E) then
if List_Representation_Info >= 1 then
List_Record_Info (E, Bytes_Big_Endian);
end if;
List_Linker_Section (E);
elsif Is_Array_Type (E) then
if List_Representation_Info >= 1 then
List_Array_Info (E, Bytes_Big_Endian);
end if;
List_Linker_Section (E);
elsif Is_Type (E) then
if List_Representation_Info >= 2 then
List_Type_Info (E);
List_Linker_Section (E);
end if;
elsif Ekind_In (E, E_Variable, E_Constant) then
if List_Representation_Info >= 2 then
List_Object_Info (E);
List_Linker_Section (E);
end if;
elsif Ekind (E) = E_Loop_Parameter or else Is_Formal (E) then
if List_Representation_Info >= 2 then
List_Object_Info (E);
end if;
end if;
-- Recurse into nested package, but not if they are package
-- renamings (in particular renamings of the enclosing package,
-- as for some Java bindings and for generic instances).
if Ekind (E) = E_Package then
if No (Renamed_Object (E)) then
List_Entities (E, Bytes_Big_Endian);
end if;
-- Recurse into bodies
elsif Ekind_In (E, E_Protected_Type,
E_Task_Type,
E_Subprogram_Body,
E_Package_Body,
E_Task_Body,
E_Protected_Body)
then
List_Entities (E, Bytes_Big_Endian);
-- Recurse into blocks
elsif Ekind (E) = E_Block then
List_Entities (E, Bytes_Big_Endian);
end if;
end if;
E := Next_Entity (E);
end loop;
-- For a package body, the entities of the visible subprograms are
-- declared in the corresponding spec. Iterate over its entities in
-- order to handle properly the subprogram bodies. Skip bodies in
-- subunits, which are listed independently.
if Ekind (Ent) = E_Package_Body
and then Present (Corresponding_Spec (Find_Declaration (Ent)))
then
E := First_Entity (Corresponding_Spec (Find_Declaration (Ent)));
while Present (E) loop
if Is_Subprogram (E)
and then
Nkind (Find_Declaration (E)) = N_Subprogram_Declaration
then
Body_E := Corresponding_Body (Find_Declaration (E));
if Present (Body_E)
and then
Nkind (Parent (Find_Declaration (Body_E))) /= N_Subunit
then
List_Entities (Body_E, Bytes_Big_Endian);
end if;
end if;
Next_Entity (E);
end loop;
end if;
end if;
end List_Entities;
-------------------------
-- List_GCC_Expression --
-------------------------
procedure List_GCC_Expression (U : Node_Ref_Or_Val) is
procedure Print_Expr (Val : Node_Ref_Or_Val);
-- Internal recursive procedure to print expression
----------------
-- Print_Expr --
----------------
procedure Print_Expr (Val : Node_Ref_Or_Val) is
begin
if Val >= 0 then
UI_Write (Val, Decimal);
else
declare
Node : Exp_Node renames Rep_Table.Table (-UI_To_Int (Val));
procedure Binop (S : String);
-- Output text for binary operator with S being operator name
-----------
-- Binop --
-----------
procedure Binop (S : String) is
begin
Write_Char ('(');
Print_Expr (Node.Op1);
Write_Str (S);
Print_Expr (Node.Op2);
Write_Char (')');
end Binop;
-- Start of processing for Print_Expr
begin
case Node.Expr is
when Cond_Expr =>
Write_Str ("(if ");
Print_Expr (Node.Op1);
Write_Str (" then ");
Print_Expr (Node.Op2);
Write_Str (" else ");
Print_Expr (Node.Op3);
Write_Str (" end)");
when Plus_Expr =>
Binop (" + ");
when Minus_Expr =>
Binop (" - ");
when Mult_Expr =>
Binop (" * ");
when Trunc_Div_Expr =>
Binop (" /t ");
when Ceil_Div_Expr =>
Binop (" /c ");
when Floor_Div_Expr =>
Binop (" /f ");
when Trunc_Mod_Expr =>
Binop (" modt ");
when Floor_Mod_Expr =>
Binop (" modf ");
when Ceil_Mod_Expr =>
Binop (" modc ");
when Exact_Div_Expr =>
Binop (" /e ");
when Negate_Expr =>
Write_Char ('-');
Print_Expr (Node.Op1);
when Min_Expr =>
Binop (" min ");
when Max_Expr =>
Binop (" max ");
when Abs_Expr =>
Write_Str ("abs ");
Print_Expr (Node.Op1);
when Truth_Andif_Expr =>
Binop (" and if ");
when Truth_Orif_Expr =>
Binop (" or if ");
when Truth_And_Expr =>
Binop (" and ");
when Truth_Or_Expr =>
Binop (" or ");
when Truth_Xor_Expr =>
Binop (" xor ");
when Truth_Not_Expr =>
Write_Str ("not ");
Print_Expr (Node.Op1);
when Bit_And_Expr =>
Binop (" & ");
when Lt_Expr =>
Binop (" < ");
when Le_Expr =>
Binop (" <= ");
when Gt_Expr =>
Binop (" > ");
when Ge_Expr =>
Binop (" >= ");
when Eq_Expr =>
Binop (" == ");
when Ne_Expr =>
Binop (" != ");
when Discrim_Val =>
Write_Char ('#');
UI_Write (Node.Op1);
end case;
end;
end if;
end Print_Expr;
-- Start of processing for List_GCC_Expression
begin
if U = No_Uint then
Write_Str ("??");
else
Print_Expr (U);
end if;
end List_GCC_Expression;
-------------------------
-- List_Linker_Section --
-------------------------
procedure List_Linker_Section (Ent : Entity_Id) is
Arg : Node_Id;
begin
if Present (Linker_Section_Pragma (Ent)) then
Write_Str ("pragma Linker_Section (");
List_Name (Ent);
Write_Str (", """);
Arg :=
Last (Pragma_Argument_Associations (Linker_Section_Pragma (Ent)));
if Nkind (Arg) = N_Pragma_Argument_Association then
Arg := Expression (Arg);
end if;
pragma Assert (Nkind (Arg) = N_String_Literal);
String_To_Name_Buffer (Strval (Arg));
Write_Str (Name_Buffer (1 .. Name_Len));
Write_Str (""");");
Write_Eol;
end if;
end List_Linker_Section;
---------------------
-- List_Mechanisms --
---------------------
procedure List_Mechanisms (Ent : Entity_Id) is
Plen : Natural;
Form : Entity_Id;
begin
Blank_Line;
case Ekind (Ent) is
when E_Function =>
Write_Str ("function ");
when E_Operator =>
Write_Str ("operator ");
when E_Procedure =>
Write_Str ("procedure ");
when E_Subprogram_Type =>
Write_Str ("type ");
when E_Entry | E_Entry_Family =>
Write_Str ("entry ");
when others =>
raise Program_Error;
end case;
Get_Unqualified_Decoded_Name_String (Chars (Ent));
Write_Str (Name_Buffer (1 .. Name_Len));
Write_Str (" declared at ");
Write_Location (Sloc (Ent));
Write_Eol;
Write_Str (" convention : ");
case Convention (Ent) is
when Convention_Ada =>
Write_Line ("Ada");
when Convention_Ada_Pass_By_Copy =>
Write_Line ("Ada_Pass_By_Copy");
when Convention_Ada_Pass_By_Reference =>
Write_Line ("Ada_Pass_By_Reference");
when Convention_Intrinsic =>
Write_Line ("Intrinsic");
when Convention_Entry =>
Write_Line ("Entry");
when Convention_Protected =>
Write_Line ("Protected");
when Convention_Assembler =>
Write_Line ("Assembler");
when Convention_C =>
Write_Line ("C");
when Convention_CIL =>
Write_Line ("CIL");
when Convention_COBOL =>
Write_Line ("COBOL");
when Convention_CPP =>
Write_Line ("C++");
when Convention_Fortran =>
Write_Line ("Fortran");
when Convention_Java =>
Write_Line ("Java");
when Convention_Stdcall =>
Write_Line ("Stdcall");
when Convention_Stubbed =>
Write_Line ("Stubbed");
end case;
-- Find max length of formal name
Plen := 0;
Form := First_Formal (Ent);
while Present (Form) loop
Get_Unqualified_Decoded_Name_String (Chars (Form));
if Name_Len > Plen then
Plen := Name_Len;
end if;
Next_Formal (Form);
end loop;
-- Output formals and mechanisms
Form := First_Formal (Ent);
while Present (Form) loop
Get_Unqualified_Decoded_Name_String (Chars (Form));
while Name_Len <= Plen loop
Name_Len := Name_Len + 1;
Name_Buffer (Name_Len) := ' ';
end loop;
Write_Str (" ");
Write_Str (Name_Buffer (1 .. Plen + 1));
Write_Str (": passed by ");
Write_Mechanism (Mechanism (Form));
Write_Eol;
Next_Formal (Form);
end loop;
if Etype (Ent) /= Standard_Void_Type then
Write_Str (" returns by ");
Write_Mechanism (Mechanism (Ent));
Write_Eol;
end if;
end List_Mechanisms;
---------------
-- List_Name --
---------------
procedure List_Name (Ent : Entity_Id) is
begin
if not Is_Compilation_Unit (Scope (Ent)) then
List_Name (Scope (Ent));
Write_Char ('.');
end if;
Get_Unqualified_Decoded_Name_String (Chars (Ent));
Set_Casing (Unit_Casing);
Write_Str (Name_Buffer (1 .. Name_Len));
end List_Name;
---------------------
-- List_Object_Info --
---------------------
procedure List_Object_Info (Ent : Entity_Id) is
begin
Blank_Line;
Write_Str ("for ");
List_Name (Ent);
Write_Str ("'Size use ");
Write_Val (Esize (Ent));
Write_Line (";");
Write_Str ("for ");
List_Name (Ent);
Write_Str ("'Alignment use ");
Write_Val (Alignment (Ent));
Write_Line (";");
end List_Object_Info;
----------------------
-- List_Record_Info --
----------------------
procedure List_Record_Info (Ent : Entity_Id; Bytes_Big_Endian : Boolean) is
Comp : Entity_Id;
Cfbit : Uint;
Sunit : Uint;
Max_Name_Length : Natural;
Max_Suni_Length : Natural;
begin
Blank_Line;
List_Type_Info (Ent);
Write_Str ("for ");
List_Name (Ent);
Write_Line (" use record");
-- First loop finds out max line length and max starting position
-- length, for the purpose of lining things up nicely.
Max_Name_Length := 0;
Max_Suni_Length := 0;
Comp := First_Component_Or_Discriminant (Ent);
while Present (Comp) loop
-- Skip discriminant in unchecked union (since it is not there!)
if Ekind (Comp) = E_Discriminant
and then Is_Unchecked_Union (Ent)
then
null;
-- All other cases
else
Get_Decoded_Name_String (Chars (Comp));
Max_Name_Length := Natural'Max (Max_Name_Length, Name_Len);
Cfbit := Component_Bit_Offset (Comp);
if Rep_Not_Constant (Cfbit) then
UI_Image_Length := 2;
else
-- Complete annotation in case not done
Set_Normalized_Position (Comp, Cfbit / SSU);
Set_Normalized_First_Bit (Comp, Cfbit mod SSU);
Sunit := Cfbit / SSU;
UI_Image (Sunit);
end if;
-- If the record is not packed, then we know that all fields
-- whose position is not specified have a starting normalized
-- bit position of zero.
if Unknown_Normalized_First_Bit (Comp)
and then not Is_Packed (Ent)
then
Set_Normalized_First_Bit (Comp, Uint_0);
end if;
Max_Suni_Length :=
Natural'Max (Max_Suni_Length, UI_Image_Length);
end if;
Next_Component_Or_Discriminant (Comp);
end loop;
-- Second loop does actual output based on those values
Comp := First_Component_Or_Discriminant (Ent);
while Present (Comp) loop
-- Skip discriminant in unchecked union (since it is not there!)
if Ekind (Comp) = E_Discriminant
and then Is_Unchecked_Union (Ent)
then
goto Continue;
end if;
-- All other cases
declare
Esiz : constant Uint := Esize (Comp);
Bofs : constant Uint := Component_Bit_Offset (Comp);
Npos : constant Uint := Normalized_Position (Comp);
Fbit : constant Uint := Normalized_First_Bit (Comp);
Lbit : Uint;
begin
Write_Str (" ");
Get_Decoded_Name_String (Chars (Comp));
Set_Casing (Unit_Casing);
Write_Str (Name_Buffer (1 .. Name_Len));
for J in 1 .. Max_Name_Length - Name_Len loop
Write_Char (' ');
end loop;
Write_Str (" at ");
if Known_Static_Normalized_Position (Comp) then
UI_Image (Npos);
Spaces (Max_Suni_Length - UI_Image_Length);
Write_Str (UI_Image_Buffer (1 .. UI_Image_Length));
elsif Known_Component_Bit_Offset (Comp)
and then List_Representation_Info = 3
then
Spaces (Max_Suni_Length - 2);
Write_Str ("bit offset");
Write_Val (Bofs, Paren => True);
Write_Str (" size in bits = ");
Write_Val (Esiz, Paren => True);
Write_Eol;
goto Continue;
elsif Known_Normalized_Position (Comp)
and then List_Representation_Info = 3
then
Spaces (Max_Suni_Length - 2);
Write_Val (Npos);
else
-- For the packed case, we don't know the bit positions if we
-- don't know the starting position.
if Is_Packed (Ent) then
Write_Line ("?? range ? .. ??;");
goto Continue;
-- Otherwise we can continue
else
Write_Str ("??");
end if;
end if;
Write_Str (" range ");
UI_Write (Fbit);
Write_Str (" .. ");
-- Allowing Uint_0 here is an annoying special case. Really this
-- should be a fine Esize value but currently it means unknown,
-- except that we know after gigi has back annotated that a size
-- of zero is real, since otherwise gigi back annotates using
-- No_Uint as the value to indicate unknown).
if (Esize (Comp) = Uint_0 or else Known_Static_Esize (Comp))
and then Known_Static_Normalized_First_Bit (Comp)
then
Lbit := Fbit + Esiz - 1;
if Lbit < 10 then
Write_Char (' ');
end if;
UI_Write (Lbit);
-- The test for Esize (Comp) not Uint_0 here is an annoying
-- special case. Officially a value of zero for Esize means
-- unknown, but here we use the fact that we know that gigi
-- annotates Esize with No_Uint, not Uint_0. Really everyone
-- should use No_Uint???
elsif List_Representation_Info < 3
or else (Esize (Comp) /= Uint_0 and then Unknown_Esize (Comp))
then
Write_Str ("??");
-- List_Representation >= 3 and Known_Esize (Comp)
else
Write_Val (Esiz, Paren => True);
-- If in front end layout mode, then dynamic size is stored
-- in storage units, so renormalize for output
if not Back_End_Layout then
Write_Str (" * ");
Write_Int (SSU);
end if;
-- Add appropriate first bit offset
if Fbit = 0 then
Write_Str (" - 1");
elsif Fbit = 1 then
null;
else
Write_Str (" + ");
Write_Int (UI_To_Int (Fbit) - 1);
end if;
end if;
Write_Line (";");
end;
<<Continue>>
Next_Component_Or_Discriminant (Comp);
end loop;
Write_Line ("end record;");
List_Scalar_Storage_Order (Ent, Bytes_Big_Endian);
end List_Record_Info;
-------------------
-- List_Rep_Info --
-------------------
procedure List_Rep_Info (Bytes_Big_Endian : Boolean) is
Col : Nat;
begin
if List_Representation_Info /= 0
or else List_Representation_Info_Mechanisms
then
for U in Main_Unit .. Last_Unit loop
if In_Extended_Main_Source_Unit (Cunit_Entity (U)) then
Unit_Casing := Identifier_Casing (Source_Index (U));
-- Normal case, list to standard output
if not List_Representation_Info_To_File then
Write_Eol;
Write_Str ("Representation information for unit ");
Write_Unit_Name (Unit_Name (U));
Col := Column;
Write_Eol;
for J in 1 .. Col - 1 loop
Write_Char ('-');
end loop;
Write_Eol;
List_Entities (Cunit_Entity (U), Bytes_Big_Endian);
-- List representation information to file
else
Create_Repinfo_File_Access.all
(Get_Name_String (File_Name (Source_Index (U))));
Set_Special_Output (Write_Info_Line'Access);
List_Entities (Cunit_Entity (U), Bytes_Big_Endian);
Set_Special_Output (null);
Close_Repinfo_File_Access.all;
end if;
end if;
end loop;
end if;
end List_Rep_Info;
-------------------------------
-- List_Scalar_Storage_Order --
-------------------------------
procedure List_Scalar_Storage_Order
(Ent : Entity_Id;
Bytes_Big_Endian : Boolean)
is
procedure List_Attr (Attr_Name : String; Is_Reversed : Boolean);
-- Show attribute definition clause for Attr_Name (an endianness
-- attribute), depending on whether or not the endianness is reversed
-- compared to native endianness.
---------------
-- List_Attr --
---------------
procedure List_Attr (Attr_Name : String; Is_Reversed : Boolean) is
begin
Write_Str ("for ");
List_Name (Ent);
Write_Str ("'" & Attr_Name & " use System.");
if Bytes_Big_Endian xor Is_Reversed then
Write_Str ("High");
else
Write_Str ("Low");
end if;
Write_Line ("_Order_First;");
end List_Attr;
List_SSO : constant Boolean :=
Has_Rep_Item (Ent, Name_Scalar_Storage_Order)
or else SSO_Set_Low_By_Default (Ent)
or else SSO_Set_High_By_Default (Ent);
-- Scalar_Storage_Order is displayed if specified explicitly
-- or set by Default_Scalar_Storage_Order.
-- Start of processing for List_Scalar_Storage_Order
begin
-- For record types, list Bit_Order if not default, or if SSO is shown
if Is_Record_Type (Ent)
and then (List_SSO or else Reverse_Bit_Order (Ent))
then
List_Attr ("Bit_Order", Reverse_Bit_Order (Ent));
end if;
-- List SSO if required. If not, then storage is supposed to be in
-- native order.
if List_SSO then
List_Attr ("Scalar_Storage_Order", Reverse_Storage_Order (Ent));
else
pragma Assert (not Reverse_Storage_Order (Ent));
null;
end if;
end List_Scalar_Storage_Order;
--------------------
-- List_Type_Info --
--------------------
procedure List_Type_Info (Ent : Entity_Id) is
begin
Blank_Line;
-- Do not list size info for unconstrained arrays, not meaningful
if Is_Array_Type (Ent) and then not Is_Constrained (Ent) then
null;
else
-- If Esize and RM_Size are the same and known, list as Size. This
-- is a common case, which we may as well list in simple form.
if Esize (Ent) = RM_Size (Ent) then
Write_Str ("for ");
List_Name (Ent);
Write_Str ("'Size use ");
Write_Val (Esize (Ent));
Write_Line (";");
-- For now, temporary case, to be removed when gigi properly back
-- annotates RM_Size, if RM_Size is not set, then list Esize as Size.
-- This avoids odd Object_Size output till we fix things???
elsif Unknown_RM_Size (Ent) then
Write_Str ("for ");
List_Name (Ent);
Write_Str ("'Size use ");
Write_Val (Esize (Ent));
Write_Line (";");
-- Otherwise list size values separately if they are set
else
Write_Str ("for ");
List_Name (Ent);
Write_Str ("'Object_Size use ");
Write_Val (Esize (Ent));
Write_Line (";");
-- Note on following check: The RM_Size of a discrete type can
-- legitimately be set to zero, so a special check is needed.
Write_Str ("for ");
List_Name (Ent);
Write_Str ("'Value_Size use ");
Write_Val (RM_Size (Ent));
Write_Line (";");
end if;
end if;
Write_Str ("for ");
List_Name (Ent);
Write_Str ("'Alignment use ");
Write_Val (Alignment (Ent));
Write_Line (";");
-- Special stuff for fixed-point
if Is_Fixed_Point_Type (Ent) then
-- Write small (always a static constant)
Write_Str ("for ");
List_Name (Ent);
Write_Str ("'Small use ");
UR_Write (Small_Value (Ent));
Write_Line (";");
-- Write range if static
declare
R : constant Node_Id := Scalar_Range (Ent);
begin
if Nkind (Low_Bound (R)) = N_Real_Literal
and then
Nkind (High_Bound (R)) = N_Real_Literal
then
Write_Str ("for ");
List_Name (Ent);
Write_Str ("'Range use ");
UR_Write (Realval (Low_Bound (R)));
Write_Str (" .. ");
UR_Write (Realval (High_Bound (R)));
Write_Line (";");
end if;
end;
end if;
end List_Type_Info;
----------------------
-- Rep_Not_Constant --
----------------------
function Rep_Not_Constant (Val : Node_Ref_Or_Val) return Boolean is
begin
if Val = No_Uint or else Val < 0 then
return True;
else
return False;
end if;
end Rep_Not_Constant;
---------------
-- Rep_Value --
---------------
function Rep_Value
(Val : Node_Ref_Or_Val;
D : Discrim_List) return Uint
is
function B (Val : Boolean) return Uint;
-- Returns Uint_0 for False, Uint_1 for True
function T (Val : Node_Ref_Or_Val) return Boolean;
-- Returns True for 0, False for any non-zero (i.e. True)
function V (Val : Node_Ref_Or_Val) return Uint;
-- Internal recursive routine to evaluate tree
function W (Val : Uint) return Word;
-- Convert Val to Word, assuming Val is always in the Int range. This
-- is a helper function for the evaluation of bitwise expressions like
-- Bit_And_Expr, for which there is no direct support in uintp. Uint
-- values out of the Int range are expected to be seen in such
-- expressions only with overflowing byte sizes around, introducing
-- inherent unreliabilities in computations anyway.
-------
-- B --
-------
function B (Val : Boolean) return Uint is
begin
if Val then
return Uint_1;
else
return Uint_0;
end if;
end B;
-------
-- T --
-------
function T (Val : Node_Ref_Or_Val) return Boolean is
begin
if V (Val) = 0 then
return False;
else
return True;
end if;
end T;
-------
-- V --
-------
function V (Val : Node_Ref_Or_Val) return Uint is
L, R, Q : Uint;
begin
if Val >= 0 then
return Val;
else
declare
Node : Exp_Node renames Rep_Table.Table (-UI_To_Int (Val));
begin
case Node.Expr is
when Cond_Expr =>
if T (Node.Op1) then
return V (Node.Op2);
else
return V (Node.Op3);
end if;
when Plus_Expr =>
return V (Node.Op1) + V (Node.Op2);
when Minus_Expr =>
return V (Node.Op1) - V (Node.Op2);
when Mult_Expr =>
return V (Node.Op1) * V (Node.Op2);
when Trunc_Div_Expr =>
return V (Node.Op1) / V (Node.Op2);
when Ceil_Div_Expr =>
return
UR_Ceiling
(V (Node.Op1) / UR_From_Uint (V (Node.Op2)));
when Floor_Div_Expr =>
return
UR_Floor
(V (Node.Op1) / UR_From_Uint (V (Node.Op2)));
when Trunc_Mod_Expr =>
return V (Node.Op1) rem V (Node.Op2);
when Floor_Mod_Expr =>
return V (Node.Op1) mod V (Node.Op2);
when Ceil_Mod_Expr =>
L := V (Node.Op1);
R := V (Node.Op2);
Q := UR_Ceiling (L / UR_From_Uint (R));
return L - R * Q;
when Exact_Div_Expr =>
return V (Node.Op1) / V (Node.Op2);
when Negate_Expr =>
return -V (Node.Op1);
when Min_Expr =>
return UI_Min (V (Node.Op1), V (Node.Op2));
when Max_Expr =>
return UI_Max (V (Node.Op1), V (Node.Op2));
when Abs_Expr =>
return UI_Abs (V (Node.Op1));
when Truth_Andif_Expr =>
return B (T (Node.Op1) and then T (Node.Op2));
when Truth_Orif_Expr =>
return B (T (Node.Op1) or else T (Node.Op2));
when Truth_And_Expr =>
return B (T (Node.Op1) and then T (Node.Op2));
when Truth_Or_Expr =>
return B (T (Node.Op1) or else T (Node.Op2));
when Truth_Xor_Expr =>
return B (T (Node.Op1) xor T (Node.Op2));
when Truth_Not_Expr =>
return B (not T (Node.Op1));
when Bit_And_Expr =>
L := V (Node.Op1);
R := V (Node.Op2);
return UI_From_Int (Int (W (L) and W (R)));
when Lt_Expr =>
return B (V (Node.Op1) < V (Node.Op2));
when Le_Expr =>
return B (V (Node.Op1) <= V (Node.Op2));
when Gt_Expr =>
return B (V (Node.Op1) > V (Node.Op2));
when Ge_Expr =>
return B (V (Node.Op1) >= V (Node.Op2));
when Eq_Expr =>
return B (V (Node.Op1) = V (Node.Op2));
when Ne_Expr =>
return B (V (Node.Op1) /= V (Node.Op2));
when Discrim_Val =>
declare
Sub : constant Int := UI_To_Int (Node.Op1);
begin
pragma Assert (Sub in D'Range);
return D (Sub);
end;
end case;
end;
end if;
end V;
-------
-- W --
-------
-- We use an unchecked conversion to map Int values to their Word
-- bitwise equivalent, which we could not achieve with a normal type
-- conversion for negative Ints. We want bitwise equivalents because W
-- is used as a helper for bit operators like Bit_And_Expr, and can be
-- called for negative Ints in the context of aligning expressions like
-- X+Align & -Align.
function W (Val : Uint) return Word is
function To_Word is new Ada.Unchecked_Conversion (Int, Word);
begin
return To_Word (UI_To_Int (Val));
end W;
-- Start of processing for Rep_Value
begin
if Val = No_Uint then
return No_Uint;
else
return V (Val);
end if;
end Rep_Value;
------------
-- Spaces --
------------
procedure Spaces (N : Natural) is
begin
for J in 1 .. N loop
Write_Char (' ');
end loop;
end Spaces;
---------------
-- Tree_Read --
---------------
procedure Tree_Read is
begin
Rep_Table.Tree_Read;
end Tree_Read;
----------------
-- Tree_Write --
----------------
procedure Tree_Write is
begin
Rep_Table.Tree_Write;
end Tree_Write;
---------------------
-- Write_Info_Line --
---------------------
procedure Write_Info_Line (S : String) is
begin
Write_Repinfo_Line_Access.all (S (S'First .. S'Last - 1));
end Write_Info_Line;
---------------------
-- Write_Mechanism --
---------------------
procedure Write_Mechanism (M : Mechanism_Type) is
begin
case M is
when 0 =>
Write_Str ("default");
when -1 =>
Write_Str ("copy");
when -2 =>
Write_Str ("reference");
when others =>
raise Program_Error;
end case;
end Write_Mechanism;
---------------
-- Write_Val --
---------------
procedure Write_Val (Val : Node_Ref_Or_Val; Paren : Boolean := False) is
begin
if Rep_Not_Constant (Val) then
if List_Representation_Info < 3 or else Val = No_Uint then
Write_Str ("??");
else
if Back_End_Layout then
Write_Char (' ');
if Paren then
Write_Char ('(');
List_GCC_Expression (Val);
Write_Char (')');
else
List_GCC_Expression (Val);
end if;
Write_Char (' ');
else
if Paren then
Write_Char ('(');
Write_Name_Decoded (Chars (Get_Dynamic_SO_Entity (Val)));
Write_Char (')');
else
Write_Name_Decoded (Chars (Get_Dynamic_SO_Entity (Val)));
end if;
end if;
end if;
else
UI_Write (Val);
end if;
end Write_Val;
end Repinfo;
|
--
-- Copyright 2018 The wookey project team <wookey@ssi.gouv.fr>
-- - Ryad Benadjila
-- - Arnauld Michelizza
-- - Mathieu Renard
-- - Philippe Thierry
-- - Philippe Trebuchet
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.
--
--
package body soc.syscfg
with spark_mode => off
is
function get_exti_port
(pin : soc.gpio.t_gpio_pin_index)
return soc.gpio.t_gpio_port_index
is
begin
case pin is
when 0 .. 3 =>
return SYSCFG.EXTICR1.exti(pin);
when 4 .. 7 =>
return SYSCFG.EXTICR2.exti(pin);
when 8 .. 11 =>
return SYSCFG.EXTICR3.exti(pin);
when 12 .. 15 =>
return SYSCFG.EXTICR4.exti(pin);
end case;
end get_exti_port;
procedure set_exti_port
(pin : in soc.gpio.t_gpio_pin_index;
port : in soc.gpio.t_gpio_port_index)
is
begin
case pin is
when 0 .. 3 =>
SYSCFG.EXTICR1.exti(pin) := port;
when 4 .. 7 =>
SYSCFG.EXTICR2.exti(pin) := port;
when 8 .. 11 =>
SYSCFG.EXTICR3.exti(pin) := port;
when 12 .. 15 =>
SYSCFG.EXTICR4.exti(pin) := port;
end case;
end set_exti_port;
end soc.syscfg;
|
------------------------------------------------------------------------------
-- --
-- GNU ADA RUNTIME LIBRARY (GNARL) COMPONENTS --
-- --
-- S Y S T E M . S T R _ E Q U A L --
-- --
-- S p e c --
-- --
-- $Revision: 2 $ --
-- --
-- Copyright (c) 1992,1993,1994 NYU, All Rights Reserved --
-- --
-- The GNAT library is free software; you can redistribute it and/or modify --
-- it under terms of the GNU Library General Public License as published by --
-- the Free Software Foundation; either version 2, or (at your option) any --
-- later version. The GNAT 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 --
-- the GNAT library; see the file COPYING.LIB. If not, write to the Free --
-- Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. --
-- --
------------------------------------------------------------------------------
-- Runtime function used to compare two strings (i.e. Standard."=")
function System.Str_Equal (A, B : String) return Boolean;
|
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- S E M _ S C I L --
-- --
-- S p e c --
-- --
-- Copyright (C) 2009-2020, Free Software Foundation, Inc. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 3, or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License --
-- for more details. You should have received a copy of the GNU General --
-- Public License distributed with GNAT; see file COPYING3. If not, go to --
-- http://www.gnu.org/licenses for a complete copy of the license. --
-- --
-- GNAT was originally developed by the GNAT team at New York University. --
-- Extensive contributions were provided by Ada Core Technologies Inc. --
-- --
------------------------------------------------------------------------------
-- This package contains routines involved in the frontend addition and
-- verification of SCIL nodes.
with Atree; use Atree;
with Types; use Types;
package Sem_SCIL is
-- SCIL (Statically Checkable Intermediate Language) is produced by the
-- CodePeer back end (aka gnat2scil). For some constructs (tagged type
-- declarations, dispatching calls, classwide membership tests), the
-- CodePeer back end needs to locate certain nodes in the tree. To allow
-- CodePeer to do this without introducing unwanted dependencies on the
-- details of the FE's expansion strategies, SCIL_Nodes are generated.
-- For example, a dispatching call in the Ada source will, if CodePeer mode
-- is enabled, result in the FE's generation of an N_Scil_Dispatching_Call
-- node decorated with semantic attributes which identify the call itself,
-- the primitive operation being called, the tagged type to which the
-- operation belongs, and the controlling tag value of the call. If the FE
-- implements some new expansion strategy for dispatching calls but this
-- interface is preserved, the CodePeer back end should be unaffected.
function Check_SCIL_Node (N : Node_Id) return Traverse_Result;
-- Process a single node during the tree traversal. Done to verify that
-- SCIL nodes decoration fulfill the requirements of the SCIL backend.
procedure Check_SCIL_Nodes is new Traverse_Proc (Check_SCIL_Node);
-- The traversal procedure itself
function First_Non_SCIL_Node (L : List_Id) return Node_Id;
-- Returns the first non-SCIL node of list L
function Next_Non_SCIL_Node (N : Node_Id) return Node_Id;
-- N must be a member of a list. Returns the next non SCIL node in the list
-- containing N, or Empty if this is the last non SCIL node in the list.
end Sem_SCIL;
|
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- Ada Modeling Framework --
-- --
-- Runtime Library Component --
-- --
------------------------------------------------------------------------------
-- --
-- Copyright © 2011, Vadim Godunko <vgodunko@gmail.com> --
-- All rights reserved. --
-- --
-- Redistribution and use in source and binary forms, with or without --
-- modification, are permitted provided that the following conditions --
-- are met: --
-- --
-- * Redistributions of source code must retain the above copyright --
-- notice, this list of conditions and the following disclaimer. --
-- --
-- * Redistributions in binary form must reproduce the above copyright --
-- notice, this list of conditions and the following disclaimer in the --
-- documentation and/or other materials provided with the distribution. --
-- --
-- * Neither the name of the Vadim Godunko, IE nor the names of its --
-- contributors may be used to endorse or promote products derived from --
-- this software without specific prior written permission. --
-- --
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS --
-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT --
-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR --
-- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT --
-- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, --
-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED --
-- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR --
-- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF --
-- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING --
-- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS --
-- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --
-- --
------------------------------------------------------------------------------
-- $Revision$ $Date$
------------------------------------------------------------------------------
-- This file is generated, don't edit it.
------------------------------------------------------------------------------
-- A value specification is the specification of a (possibly empty) set of
-- instances, including both objects and data values.
------------------------------------------------------------------------------
with AMF.CMOF.Packageable_Elements;
with AMF.CMOF.Typed_Elements;
with League.Strings;
package AMF.CMOF.Value_Specifications is
pragma Preelaborate;
type CMOF_Value_Specification is limited interface
and AMF.CMOF.Typed_Elements.CMOF_Typed_Element
and AMF.CMOF.Packageable_Elements.CMOF_Packageable_Element;
type CMOF_Value_Specification_Access is
access all CMOF_Value_Specification'Class;
for CMOF_Value_Specification_Access'Storage_Size use 0;
not overriding function Is_Computable
(Self : not null access constant CMOF_Value_Specification)
return Boolean is abstract;
-- Operation ValueSpecification::isComputable.
--
-- The query isComputable() determines whether a value specification can
-- be computed in a model. This operation cannot be fully defined in OCL.
-- A conforming implementation is expected to deliver true for this
-- operation for all value specifications that it can compute, and to
-- compute all of those for which the operation is true. A conforming
-- implementation is expected to be able to compute the value of all
-- literals.
not overriding function Integer_Value
(Self : not null access constant CMOF_Value_Specification)
return Integer is abstract;
-- Operation ValueSpecification::integerValue.
--
-- The query integerValue() gives a single Integer value when one can be
-- computed.
not overriding function Boolean_Value
(Self : not null access constant CMOF_Value_Specification)
return Boolean is abstract;
-- Operation ValueSpecification::booleanValue.
--
-- The query booleanValue() gives a single Boolean value when one can be
-- computed.
not overriding function String_Value
(Self : not null access constant CMOF_Value_Specification)
return League.Strings.Universal_String is abstract;
-- Operation ValueSpecification::stringValue.
--
-- The query stringValue() gives a single String value when one can be
-- computed.
not overriding function Unlimited_Value
(Self : not null access constant CMOF_Value_Specification)
return AMF.Unlimited_Natural is abstract;
-- Operation ValueSpecification::unlimitedValue.
--
-- The query unlimitedValue() gives a single UnlimitedNatural value when
-- one can be computed.
not overriding function Is_Null
(Self : not null access constant CMOF_Value_Specification)
return Boolean is abstract;
-- Operation ValueSpecification::isNull.
--
-- The query isNull() returns true when it can be computed that the value
-- is null.
end AMF.CMOF.Value_Specifications;
|
------------------------------------------------------------------------------
-- --
-- GNAT LIBRARY COMPONENTS --
-- --
-- A D A . C O N T A I N E R S . R E D _ B L A C K _ T R E E S --
-- --
-- S p e c --
-- --
-- Copyright (C) 2004-2005, Free Software Foundation, Inc. --
-- --
-- This specification is derived from the Ada Reference Manual for use with --
-- GNAT. The copyright notice above, and the license provisions that follow --
-- apply solely to the contents of the part following the private keyword. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 2, or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License --
-- for more details. You should have received a copy of the GNU General --
-- Public License distributed with GNAT; see file COPYING. If not, write --
-- to the Free Software Foundation, 51 Franklin Street, Fifth Floor, --
-- Boston, MA 02110-1301, USA. --
-- --
-- As a special exception, if other files instantiate generics from this --
-- unit, or you link this unit with other files to produce an executable, --
-- this unit does not by itself cause the resulting executable to be --
-- covered by the GNU General Public License. This exception does not --
-- however invalidate any other reasons why the executable file might be --
-- covered by the GNU Public License. --
-- --
-- This unit was originally developed by Matthew J Heaney. --
------------------------------------------------------------------------------
package Ada.Containers.Red_Black_Trees is
pragma Pure;
type Color_Type is (Red, Black);
generic
type Node_Type (<>) is limited private;
type Node_Access is access Node_Type;
package Generic_Tree_Types is
type Tree_Type is tagged record
First : Node_Access;
Last : Node_Access;
Root : Node_Access;
Length : Count_Type := 0;
Busy : Natural := 0;
Lock : Natural := 0;
end record;
end Generic_Tree_Types;
end Ada.Containers.Red_Black_Trees;
|
-- Copyright 2015-2019 Free Software Foundation, Inc.
--
-- This program is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation; either version 3 of the License, or
-- (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program. If not, see <http://www.gnu.org/licenses/>.
with System;
package Pck is
subtype Small_Type is Integer range 0 .. 10;
type Record_Type (I : Small_Type := 0) is record
S : String (1 .. I);
end record;
function Ident (R : Record_Type) return Record_Type;
type Array_Type is array (Integer range <>) of Record_Type;
procedure Do_Nothing (A : System.Address);
A1 : Array_Type := (1 => (I => 0, S => <>),
2 => (I => 1, S => "A"),
3 => (I => 2, S => "AB"));
A2 : Array_Type := (1 => (I => 2, S => "AB"),
2 => (I => 1, S => "A"),
3 => (I => 0, S => <>));
end Pck;
|
<?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_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>in_stream.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>out_stream_V_value_V</name>
<fileName/>
<fileDirectory/>
<lineNumber>0</lineNumber>
<contextFuncName/>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>out_stream.V.value.V</originalName>
<rtlName/>
<coreName>FIFO_SRL</coreName>
</Obj>
<bitwidth>128</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>4</count>
<item_version>0</item_version>
<item class_id="9" tracking_level="1" version="0" object_id="_3">
<Value>
<Obj>
<type>0</type>
<id>8</id>
<name>slice_stream_V_value</name>
<fileName>../../../lib_files/Linebuffer.h</fileName>
<fileDirectory>..</fileDirectory>
<lineNumber>172</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>172</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>slice_stream.V.value.V</originalName>
<rtlName>slice_stream_V_value_U</rtlName>
<coreName>FIFO_SRL</coreName>
</Obj>
<bitwidth>64</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>17</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>12</id>
<name/>
<fileName/>
<fileDirectory/>
<lineNumber>0</lineNumber>
<contextFuncName/>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName/>
<rtlName>call_Loop_LB2D_buf_p_1_U0</rtlName>
<coreName/>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>19</item>
<item>20</item>
<item>21</item>
</oprand_edges>
<opcode>call</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_5">
<Value>
<Obj>
<type>0</type>
<id>13</id>
<name/>
<fileName/>
<fileDirectory/>
<lineNumber>0</lineNumber>
<contextFuncName/>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName/>
<rtlName>call_Loop_LB2D_shift_1_U0</rtlName>
<coreName/>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>5</count>
<item_version>0</item_version>
<item>23</item>
<item>24</item>
<item>25</item>
<item>135</item>
<item>136</item>
</oprand_edges>
<opcode>call</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_6">
<Value>
<Obj>
<type>0</type>
<id>14</id>
<name/>
<fileName>../../../lib_files/Linebuffer.h</fileName>
<fileDirectory>..</fileDirectory>
<lineNumber>219</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>219</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName/>
<rtlName/>
<coreName/>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>0</count>
<item_version>0</item_version>
</oprand_edges>
<opcode>ret</opcode>
<m_Display>0</m_Display>
</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="_7">
<Value>
<Obj>
<type>2</type>
<id>16</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="_8">
<Value>
<Obj>
<type>2</type>
<id>18</id>
<name>call_Loop_LB2D_buf_p_1</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>
<const_type>6</const_type>
<content><constant:call_Loop_LB2D_buf_p.1></content>
</item>
<item class_id_reference="16" object_id="_9">
<Value>
<Obj>
<type>2</type>
<id>22</id>
<name>call_Loop_LB2D_shift_1</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>
<const_type>6</const_type>
<content><constant:call_Loop_LB2D_shift.1></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="_10">
<Obj>
<type>3</type>
<id>15</id>
<name>call.1</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>8</item>
<item>12</item>
<item>13</item>
<item>14</item>
</node_objs>
</item>
</blocks>
<edges class_id="19" tracking_level="0" version="0">
<count>9</count>
<item_version>0</item_version>
<item class_id="20" tracking_level="1" version="0" object_id="_11">
<id>17</id>
<edge_type>1</edge_type>
<source_obj>16</source_obj>
<sink_obj>8</sink_obj>
</item>
<item class_id_reference="20" object_id="_12">
<id>19</id>
<edge_type>1</edge_type>
<source_obj>18</source_obj>
<sink_obj>12</sink_obj>
</item>
<item class_id_reference="20" object_id="_13">
<id>20</id>
<edge_type>1</edge_type>
<source_obj>1</source_obj>
<sink_obj>12</sink_obj>
</item>
<item class_id_reference="20" object_id="_14">
<id>21</id>
<edge_type>1</edge_type>
<source_obj>8</source_obj>
<sink_obj>12</sink_obj>
</item>
<item class_id_reference="20" object_id="_15">
<id>23</id>
<edge_type>1</edge_type>
<source_obj>22</source_obj>
<sink_obj>13</sink_obj>
</item>
<item class_id_reference="20" object_id="_16">
<id>24</id>
<edge_type>1</edge_type>
<source_obj>8</source_obj>
<sink_obj>13</sink_obj>
</item>
<item class_id_reference="20" object_id="_17">
<id>25</id>
<edge_type>1</edge_type>
<source_obj>2</source_obj>
<sink_obj>13</sink_obj>
</item>
<item class_id_reference="20" object_id="_18">
<id>135</id>
<edge_type>4</edge_type>
<source_obj>12</source_obj>
<sink_obj>13</sink_obj>
</item>
<item class_id_reference="20" object_id="_19">
<id>136</id>
<edge_type>4</edge_type>
<source_obj>12</source_obj>
<sink_obj>13</sink_obj>
</item>
</edges>
</cdfg>
<cdfg_regions class_id="21" tracking_level="0" version="0">
<count>1</count>
<item_version>0</item_version>
<item class_id="22" tracking_level="1" version="0" object_id="_20">
<mId>1</mId>
<mTag>call.1</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>15</item>
</basic_blocks>
<mII>-1</mII>
<mDepth>-1</mDepth>
<mMinTripCount>-1</mMinTripCount>
<mMaxTripCount>-1</mMaxTripCount>
<mMinLatency>2071917</mMinLatency>
<mMaxLatency>-1</mMaxLatency>
<mIsDfPipe>1</mIsDfPipe>
<mDfPipe class_id="23" tracking_level="1" version="0" object_id="_21">
<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>2</count>
<item_version>0</item_version>
<item class_id="26" tracking_level="1" version="0" object_id="_22">
<type>0</type>
<name>call_Loop_LB2D_buf_p_1_U0</name>
<ssdmobj_id>12</ssdmobj_id>
<pins class_id="27" tracking_level="0" version="0">
<count>2</count>
<item_version>0</item_version>
<item class_id="28" tracking_level="1" version="0" object_id="_23">
<port class_id="29" tracking_level="1" version="0" object_id="_24">
<name>in_stream_V_value_V</name>
<dir>0</dir>
<type>0</type>
</port>
<inst class_id="30" tracking_level="1" version="0" object_id="_25">
<type>0</type>
<name>call_Loop_LB2D_buf_p_1_U0</name>
<ssdmobj_id>12</ssdmobj_id>
</inst>
</item>
<item class_id_reference="28" object_id="_26">
<port class_id_reference="29" object_id="_27">
<name>slice_stream_V_value_V</name>
<dir>0</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_25"/>
</item>
</pins>
</item>
<item class_id_reference="26" object_id="_28">
<type>0</type>
<name>call_Loop_LB2D_shift_1_U0</name>
<ssdmobj_id>13</ssdmobj_id>
<pins>
<count>2</count>
<item_version>0</item_version>
<item class_id_reference="28" object_id="_29">
<port class_id_reference="29" object_id="_30">
<name>slice_stream_V_value_V</name>
<dir>0</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id="_31">
<type>0</type>
<name>call_Loop_LB2D_shift_1_U0</name>
<ssdmobj_id>13</ssdmobj_id>
</inst>
</item>
<item class_id_reference="28" object_id="_32">
<port class_id_reference="29" object_id="_33">
<name>out_stream_V_value_V</name>
<dir>0</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_31"/>
</item>
</pins>
</item>
</process_list>
<channel_list class_id="31" tracking_level="0" version="0">
<count>1</count>
<item_version>0</item_version>
<item class_id="32" tracking_level="1" version="0" object_id="_34">
<type>1</type>
<name>slice_stream_V_value</name>
<ssdmobj_id>8</ssdmobj_id>
<ctype>0</ctype>
<depth>1</depth>
<bitwidth>64</bitwidth>
<source class_id_reference="28" object_id="_35">
<port class_id_reference="29" object_id="_36">
<name>in</name>
<dir>3</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_25"/>
</source>
<sink class_id_reference="28" object_id="_37">
<port class_id_reference="29" object_id="_38">
<name>out</name>
<dir>3</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_31"/>
</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="_39">
<states class_id="35" tracking_level="0" version="0">
<count>4</count>
<item_version>0</item_version>
<item class_id="36" tracking_level="1" version="0" object_id="_40">
<id>1</id>
<operations class_id="37" tracking_level="0" version="0">
<count>2</count>
<item_version>0</item_version>
<item class_id="38" tracking_level="1" version="0" object_id="_41">
<id>8</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_42">
<id>12</id>
<stage>2</stage>
<latency>2</latency>
</item>
</operations>
</item>
<item class_id_reference="36" object_id="_43">
<id>2</id>
<operations>
<count>1</count>
<item_version>0</item_version>
<item class_id_reference="38" object_id="_44">
<id>12</id>
<stage>1</stage>
<latency>2</latency>
</item>
</operations>
</item>
<item class_id_reference="36" object_id="_45">
<id>3</id>
<operations>
<count>1</count>
<item_version>0</item_version>
<item class_id_reference="38" object_id="_46">
<id>13</id>
<stage>2</stage>
<latency>2</latency>
</item>
</operations>
</item>
<item class_id_reference="36" object_id="_47">
<id>4</id>
<operations>
<count>10</count>
<item_version>0</item_version>
<item class_id_reference="38" object_id="_48">
<id>3</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_49">
<id>4</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_50">
<id>5</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_51">
<id>6</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_52">
<id>7</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_53">
<id>9</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_54">
<id>10</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_55">
<id>11</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="38" object_id="_56">
<id>13</id>
<stage>1</stage>
<latency>2</latency>
</item>
<item class_id_reference="38" object_id="_57">
<id>14</id>
<stage>1</stage>
<latency>1</latency>
</item>
</operations>
</item>
</states>
<transitions class_id="39" tracking_level="0" version="0">
<count>3</count>
<item_version>0</item_version>
<item class_id="40" tracking_level="1" version="0" object_id="_58">
<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="_59">
<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="_60">
<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>
</transitions>
</fsm>
<res class_id="44" tracking_level="1" version="0" object_id="_61">
<dp_component_resource class_id="45" tracking_level="0" version="0">
<count>3</count>
<item_version>0</item_version>
<item class_id="46" tracking_level="0" version="0">
<first>call_Loop_LB2D_buf_p_1_U0 (call_Loop_LB2D_buf_p_1)</first>
<second class_id="47" tracking_level="0" version="0">
<count>3</count>
<item_version>0</item_version>
<item class_id="48" tracking_level="0" version="0">
<first>BRAM</first>
<second>4</second>
</item>
<item>
<first>FF</first>
<second>209</second>
</item>
<item>
<first>LUT</first>
<second>169</second>
</item>
</second>
</item>
<item>
<first>call_Loop_LB2D_shift_1_U0 (call_Loop_LB2D_shift_1)</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>FF</first>
<second>182</second>
</item>
<item>
<first>LUT</first>
<second>147</second>
</item>
</second>
</item>
<item>
<first>start_for_call_Log8j_U (start_for_call_Log8j)</first>
<second>
<count>0</count>
<item_version>0</item_version>
</second>
</item>
</dp_component_resource>
<dp_expression_resource>
<count>2</count>
<item_version>0</item_version>
<item>
<first>ap_idle ( 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>call_Loop_LB2D_buf_p_1_U0_start_full_n ( 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>
</dp_expression_resource>
<dp_fifo_resource>
<count>1</count>
<item_version>0</item_version>
<item>
<first>slice_stream_V_value_U</first>
<second>
<count>5</count>
<item_version>0</item_version>
<item>
<first>(0Depth)</first>
<second>1</second>
</item>
<item>
<first>(1Bits)</first>
<second>64</second>
</item>
<item>
<first>(2Size:D*B)</first>
<second>64</second>
</item>
<item>
<first>FF</first>
<second>0</second>
</item>
<item>
<first>LUT</first>
<second>1</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_component_map class_id="49" tracking_level="0" version="0">
<count>2</count>
<item_version>0</item_version>
<item class_id="50" tracking_level="0" version="0">
<first>call_Loop_LB2D_buf_p_1_U0 (call_Loop_LB2D_buf_p_1)</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>12</item>
</second>
</item>
<item>
<first>call_Loop_LB2D_shift_1_U0 (call_Loop_LB2D_shift_1)</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>13</item>
</second>
</item>
</dp_component_map>
<dp_expression_map>
<count>0</count>
<item_version>0</item_version>
</dp_expression_map>
<dp_fifo_map>
<count>1</count>
<item_version>0</item_version>
<item>
<first>slice_stream_V_value_U</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>43</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>8</first>
<second class_id="53" tracking_level="0" version="0">
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>12</first>
<second>
<first>0</first>
<second>1</second>
</second>
</item>
<item>
<first>13</first>
<second>
<first>2</first>
<second>1</second>
</second>
</item>
<item>
<first>14</first>
<second>
<first>3</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>15</first>
<second class_id="56" tracking_level="0" version="0">
<first>0</first>
<second>3</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="_62">
<region_name>call.1</region_name>
<basic_blocks>
<count>1</count>
<item_version>0</item_version>
<item>15</item>
</basic_blocks>
<nodes>
<count>12</count>
<item_version>0</item_version>
<item>3</item>
<item>4</item>
<item>5</item>
<item>6</item>
<item>7</item>
<item>8</item>
<item>9</item>
<item>10</item>
<item>11</item>
<item>12</item>
<item>13</item>
<item>14</item>
</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="59" tracking_level="0" version="0">
<count>3</count>
<item_version>0</item_version>
<item class_id="60" tracking_level="0" version="0">
<first>36</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>8</item>
</second>
</item>
<item>
<first>40</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>12</item>
<item>12</item>
</second>
</item>
<item>
<first>47</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>13</item>
<item>13</item>
</second>
</item>
</dp_fu_nodes>
<dp_fu_nodes_expression class_id="62" tracking_level="0" version="0">
<count>1</count>
<item_version>0</item_version>
<item class_id="63" tracking_level="0" version="0">
<first>slice_stream_V_value_fu_36</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>8</item>
</second>
</item>
</dp_fu_nodes_expression>
<dp_fu_nodes_module>
<count>2</count>
<item_version>0</item_version>
<item>
<first>grp_call_Loop_LB2D_buf_p_1_fu_40</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>12</item>
<item>12</item>
</second>
</item>
<item>
<first>grp_call_Loop_LB2D_shift_1_fu_47</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>13</item>
<item>13</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="64" tracking_level="0" version="0">
<count>0</count>
<item_version>0</item_version>
</dp_mem_port_nodes>
<dp_reg_nodes>
<count>1</count>
<item_version>0</item_version>
<item>
<first>54</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>8</item>
</second>
</item>
</dp_reg_nodes>
<dp_regname_nodes>
<count>1</count>
<item_version>0</item_version>
<item>
<first>slice_stream_V_value_reg_54</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>8</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="65" tracking_level="0" version="0">
<count>2</count>
<item_version>0</item_version>
<item class_id="66" tracking_level="0" version="0">
<first>in_stream_V_value_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>12</item>
</second>
</item>
</second>
</item>
<item>
<first>out_stream_V_value_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>13</item>
</second>
</item>
</second>
</item>
</dp_port_io_nodes>
<port2core class_id="67" tracking_level="0" version="0">
<count>2</count>
<item_version>0</item_version>
<item class_id="68" 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>8</first>
<second>FIFO_SRL</second>
</item>
</node2core>
</syndb>
</boost_serialization>
|
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE boost_serialization>
<boost_serialization signature="serialization::archive" version="14">
<syndb class_id="0" tracking_level="0" version="0">
<userIPLatency>-1</userIPLatency>
<userIPName></userIPName>
<cdfg class_id="1" tracking_level="1" version="0" object_id="_0">
<name>call</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></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>in_stream.V.value.V</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>8</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>out_stream_V_value_V</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>out_stream.V.value.V</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>72</bitwidth>
</Value>
<direction>1</direction>
<if_type>3</if_type>
<array_size>0</array_size>
<bit_vecs>
<count>0</count>
<item_version>0</item_version>
</bit_vecs>
</item>
</ports>
<nodes class_id="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="_3">
<Value>
<Obj>
<type>0</type>
<id>8</id>
<name>slice_stream_V_value</name>
<fileName>../../../lib_files/Linebuffer.h</fileName>
<fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_8_shifts/conv2d_b2b</fileDirectory>
<lineNumber>172</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>172</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>slice_stream.V.value.V</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>24</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>17</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>12</id>
<name></name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>19</item>
<item>20</item>
<item>21</item>
</oprand_edges>
<opcode>call</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_5">
<Value>
<Obj>
<type>0</type>
<id>13</id>
<name></name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>5</count>
<item_version>0</item_version>
<item>23</item>
<item>24</item>
<item>25</item>
<item>135</item>
<item>136</item>
</oprand_edges>
<opcode>call</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_6">
<Value>
<Obj>
<type>0</type>
<id>14</id>
<name></name>
<fileName>../../../lib_files/Linebuffer.h</fileName>
<fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_8_shifts/conv2d_b2b</fileDirectory>
<lineNumber>219</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>219</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>0</count>
<item_version>0</item_version>
</oprand_edges>
<opcode>ret</opcode>
<m_Display>0</m_Display>
</item>
</nodes>
<consts class_id="15" tracking_level="0" version="0">
<count>3</count>
<item_version>0</item_version>
<item class_id="16" tracking_level="1" version="0" object_id="_7">
<Value>
<Obj>
<type>2</type>
<id>16</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>64</bitwidth>
</Value>
<const_type>0</const_type>
<content>1</content>
</item>
<item class_id_reference="16" object_id="_8">
<Value>
<Obj>
<type>2</type>
<id>18</id>
<name>call_Loop_LB2D_buf_p</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:call_Loop_LB2D_buf_p></content>
</item>
<item class_id_reference="16" object_id="_9">
<Value>
<Obj>
<type>2</type>
<id>22</id>
<name>call_Loop_LB2D_shift</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:call_Loop_LB2D_shift></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="_10">
<Obj>
<type>3</type>
<id>15</id>
<name>call</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<node_objs>
<count>4</count>
<item_version>0</item_version>
<item>8</item>
<item>12</item>
<item>13</item>
<item>14</item>
</node_objs>
</item>
</blocks>
<edges class_id="19" tracking_level="0" version="0">
<count>9</count>
<item_version>0</item_version>
<item class_id="20" tracking_level="1" version="0" object_id="_11">
<id>17</id>
<edge_type>1</edge_type>
<source_obj>16</source_obj>
<sink_obj>8</sink_obj>
</item>
<item class_id_reference="20" object_id="_12">
<id>19</id>
<edge_type>1</edge_type>
<source_obj>18</source_obj>
<sink_obj>12</sink_obj>
</item>
<item class_id_reference="20" object_id="_13">
<id>20</id>
<edge_type>1</edge_type>
<source_obj>1</source_obj>
<sink_obj>12</sink_obj>
</item>
<item class_id_reference="20" object_id="_14">
<id>21</id>
<edge_type>1</edge_type>
<source_obj>8</source_obj>
<sink_obj>12</sink_obj>
</item>
<item class_id_reference="20" object_id="_15">
<id>23</id>
<edge_type>1</edge_type>
<source_obj>22</source_obj>
<sink_obj>13</sink_obj>
</item>
<item class_id_reference="20" object_id="_16">
<id>24</id>
<edge_type>1</edge_type>
<source_obj>8</source_obj>
<sink_obj>13</sink_obj>
</item>
<item class_id_reference="20" object_id="_17">
<id>25</id>
<edge_type>1</edge_type>
<source_obj>2</source_obj>
<sink_obj>13</sink_obj>
</item>
<item class_id_reference="20" object_id="_18">
<id>135</id>
<edge_type>4</edge_type>
<source_obj>12</source_obj>
<sink_obj>13</sink_obj>
</item>
<item class_id_reference="20" object_id="_19">
<id>136</id>
<edge_type>4</edge_type>
<source_obj>12</source_obj>
<sink_obj>13</sink_obj>
</item>
</edges>
</cdfg>
<cdfg_regions class_id="21" tracking_level="0" version="0">
<count>1</count>
<item_version>0</item_version>
<item class_id="22" tracking_level="1" version="0" object_id="_20">
<mId>1</mId>
<mTag>call</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>15</item>
</basic_blocks>
<mII>-1</mII>
<mDepth>-1</mDepth>
<mMinTripCount>-1</mMinTripCount>
<mMaxTripCount>-1</mMaxTripCount>
<mMinLatency>2077921</mMinLatency>
<mMaxLatency>-1</mMaxLatency>
<mIsDfPipe>1</mIsDfPipe>
<mDfPipe class_id="23" tracking_level="1" version="0" object_id="_21">
<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>2</count>
<item_version>0</item_version>
<item class_id="26" tracking_level="1" version="0" object_id="_22">
<type>0</type>
<name>call_Loop_LB2D_buf_p_U0</name>
<ssdmobj_id>12</ssdmobj_id>
<pins class_id="27" tracking_level="0" version="0">
<count>2</count>
<item_version>0</item_version>
<item class_id="28" tracking_level="1" version="0" object_id="_23">
<port class_id="29" tracking_level="1" version="0" object_id="_24">
<name>in_stream_V_value_V</name>
<dir>0</dir>
<type>0</type>
</port>
<inst class_id="30" tracking_level="1" version="0" object_id="_25">
<type>0</type>
<name>call_Loop_LB2D_buf_p_U0</name>
<ssdmobj_id>12</ssdmobj_id>
</inst>
</item>
<item class_id_reference="28" object_id="_26">
<port class_id_reference="29" object_id="_27">
<name>slice_stream_V_value_V</name>
<dir>0</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_25"></inst>
</item>
</pins>
</item>
<item class_id_reference="26" object_id="_28">
<type>0</type>
<name>call_Loop_LB2D_shift_U0</name>
<ssdmobj_id>13</ssdmobj_id>
<pins>
<count>2</count>
<item_version>0</item_version>
<item class_id_reference="28" object_id="_29">
<port class_id_reference="29" object_id="_30">
<name>slice_stream_V_value_V</name>
<dir>0</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id="_31">
<type>0</type>
<name>call_Loop_LB2D_shift_U0</name>
<ssdmobj_id>13</ssdmobj_id>
</inst>
</item>
<item class_id_reference="28" object_id="_32">
<port class_id_reference="29" object_id="_33">
<name>out_stream_V_value_V</name>
<dir>0</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_31"></inst>
</item>
</pins>
</item>
</process_list>
<channel_list class_id="31" tracking_level="0" version="0">
<count>1</count>
<item_version>0</item_version>
<item class_id="32" tracking_level="1" version="0" object_id="_34">
<type>1</type>
<name>slice_stream_V_value</name>
<ssdmobj_id>8</ssdmobj_id>
<ctype>0</ctype>
<depth>1</depth>
<bitwidth>24</bitwidth>
<source class_id_reference="28" object_id="_35">
<port class_id_reference="29" object_id="_36">
<name>in</name>
<dir>3</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_25"></inst>
</source>
<sink class_id_reference="28" object_id="_37">
<port class_id_reference="29" object_id="_38">
<name>out</name>
<dir>3</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_31"></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="-1"></fsm>
<res class_id="-1"></res>
<node_label_latency class_id="36" tracking_level="0" version="0">
<count>4</count>
<item_version>0</item_version>
<item class_id="37" tracking_level="0" version="0">
<first>8</first>
<second class_id="38" tracking_level="0" version="0">
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>12</first>
<second>
<first>0</first>
<second>1</second>
</second>
</item>
<item>
<first>13</first>
<second>
<first>2</first>
<second>1</second>
</second>
</item>
<item>
<first>14</first>
<second>
<first>3</first>
<second>0</second>
</second>
</item>
</node_label_latency>
<bblk_ent_exit class_id="39" tracking_level="0" version="0">
<count>1</count>
<item_version>0</item_version>
<item class_id="40" tracking_level="0" version="0">
<first>15</first>
<second class_id="41" tracking_level="0" version="0">
<first>0</first>
<second>3</second>
</second>
</item>
</bblk_ent_exit>
<regions class_id="42" tracking_level="0" version="0">
<count>1</count>
<item_version>0</item_version>
<item class_id="43" tracking_level="1" version="0" object_id="_39">
<region_name>call</region_name>
<basic_blocks>
<count>1</count>
<item_version>0</item_version>
<item>15</item>
</basic_blocks>
<nodes>
<count>12</count>
<item_version>0</item_version>
<item>3</item>
<item>4</item>
<item>5</item>
<item>6</item>
<item>7</item>
<item>8</item>
<item>9</item>
<item>10</item>
<item>11</item>
<item>12</item>
<item>13</item>
<item>14</item>
</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="44" tracking_level="0" version="0">
<count>0</count>
<item_version>0</item_version>
</dp_fu_nodes>
<dp_fu_nodes_expression class_id="45" 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="46" 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="47" tracking_level="0" version="0">
<count>0</count>
<item_version>0</item_version>
</dp_port_io_nodes>
<port2core class_id="48" 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>
|
with Ada.Text_IO; use Ada.Text_IO;
-- Demander confirmation par 'o' ou 'n'.
procedure Demander_Confirmation is
Reponse: Character; -- la réponse de l'utilisateur
begin
-- Demander la réponse
Put("Confirmation (o/n) ? ");
Get(Reponse);
while Reponse /= 'o' and Reponse /= 'n' loop
Put_Line("Merci de répondre par 'o' (oui) ou 'n' (non).");
Put("Confirmation (o/n) ?");
Get(Reponse);
end loop;
-- Afficher la réponse
Put (Reponse);
end Demander_Confirmation;
|
-- C83022A.ADA
-- Grant of Unlimited Rights
--
-- Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687,
-- F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained
-- unlimited rights in the software and documentation contained herein.
-- Unlimited rights are defined in DFAR 252.227-7013(a)(19). By making
-- this public release, the Government intends to confer upon all
-- recipients unlimited rights equal to those held by the Government.
-- These rights include rights to use, duplicate, release or disclose the
-- released technical data and computer software in whole or in part, in
-- any manner and for any purpose whatsoever, and to have or permit others
-- to do so.
--
-- DISCLAIMER
--
-- ALL MATERIALS OR INFORMATION HEREIN RELEASED, MADE AVAILABLE OR
-- DISCLOSED ARE AS IS. THE GOVERNMENT MAKES NO EXPRESS OR IMPLIED
-- WARRANTY AS TO ANY MATTER WHATSOEVER, INCLUDING THE CONDITIONS OF THE
-- SOFTWARE, DOCUMENTATION OR OTHER INFORMATION RELEASED, MADE AVAILABLE
-- OR DISCLOSED, OR THE OWNERSHIP, MERCHANTABILITY, OR FITNESS FOR A
-- PARTICULAR PURPOSE OF SAID MATERIAL.
--*
-- OBJECTIVE:
-- CHECK THAT A DECLARATION IN A SUBPROGRAM FORMAL PART OR BODY
-- HIDES AN OUTER DECLARATION OF A HOMOGRAPH. ALSO CHECK THAT THE
-- OUTER DECLARATION IS DIRECTLY VISIBLE IN BOTH DECLARATIVE
-- REGIONS BEFORE THE DECLARATION OF THE INNER HOMOGRAPH AND THE
-- OUTER DECLARATION IS VISIBLE BY SELECTION AFTER THE INNER
-- HOMOGRAH DECLARATION.
-- HISTORY:
-- TBN 08/01/88 CREATED ORIGINAL TEST.
WITH REPORT; USE REPORT;
PROCEDURE C83022A IS
GENERIC
TYPE T IS PRIVATE;
X : T;
FUNCTION GEN_FUN RETURN T;
FUNCTION GEN_FUN RETURN T IS
BEGIN
RETURN X;
END GEN_FUN;
BEGIN
TEST ("C83022A", "CHECK THAT A DECLARATION IN A SUBPROGRAM " &
"FORMAL PART OR BODY HIDES AN OUTER " &
"DECLARATION OF A HOMOGRAPH");
ONE:
DECLARE -- SUBPROGRAM DECLARATIVE REGION.
A : INTEGER := IDENT_INT(2);
B : INTEGER := A;
PROCEDURE INNER (X : IN OUT INTEGER) IS
C : INTEGER := A;
A : INTEGER := IDENT_INT(3);
BEGIN
IF A /= IDENT_INT(3) THEN
FAILED ("INCORRECT VALUE FOR INNER HOMOGRAPH - 1");
END IF;
IF ONE.A /= IDENT_INT(2) THEN
FAILED ("INCORRECT VALUE FOR OUTER HOMOGRAPH - 2");
END IF;
IF ONE.B /= IDENT_INT(2) THEN
FAILED ("INCORRECT VALUE FOR OUTER VARIABLE - 3");
END IF;
IF C /= IDENT_INT(2) THEN
FAILED ("INCORRECT VALUE FOR INNER VARIABLE - 4");
END IF;
IF X /= IDENT_INT(2) THEN
FAILED ("INCORRECT VALUE PASSED IN - 5");
END IF;
IF EQUAL(1,1) THEN
X := A;
ELSE
X := ONE.A;
END IF;
END INNER;
BEGIN -- ONE
INNER (A);
IF A /= IDENT_INT(3) THEN
FAILED ("INCORRECT VALUE PASSED OUT - 6");
END IF;
END ONE;
TWO:
DECLARE -- FORMAL PARAMETER OF SUBPROGRAM.
A : INTEGER := IDENT_INT(2);
B : INTEGER := A;
OBJ : INTEGER := IDENT_INT(3);
PROCEDURE INNER (X : IN INTEGER := A;
A : IN OUT INTEGER) IS
C : INTEGER := A;
BEGIN
IF A /= IDENT_INT(3) THEN
FAILED ("INCORRECT VALUE FOR INNER HOMOGRAPH -10");
END IF;
IF TWO.A /= IDENT_INT(2) THEN
FAILED ("INCORRECT VALUE FOR OUTER HOMOGRAPH - 11");
END IF;
IF TWO.B /= IDENT_INT(2) THEN
FAILED ("INCORRECT VALUE FOR OUTER VARIABLE - 12");
END IF;
IF C /= IDENT_INT(3) THEN
FAILED ("INCORRECT VALUE FOR INNER VARIABLE - 13");
END IF;
IF X /= IDENT_INT(2) THEN
FAILED ("INCORRECT VALUE PASSED IN - 14");
END IF;
IF EQUAL(1,1) THEN
A := IDENT_INT(4);
ELSE
A := 1;
END IF;
END INNER;
BEGIN -- TWO
INNER (A => OBJ);
IF OBJ /= IDENT_INT(4) THEN
FAILED ("INCORRECT VALUE PASSED OUT - 15");
END IF;
END TWO;
THREE:
DECLARE -- AFTER THE SPECIFICATION OF SUBPROGRAM.
A : INTEGER := IDENT_INT(2);
FUNCTION INNER (X : INTEGER) RETURN INTEGER;
B : INTEGER := A;
FUNCTION INNER (X : INTEGER) RETURN INTEGER IS
C : INTEGER := A;
A : INTEGER := IDENT_INT(3);
BEGIN
IF A /= IDENT_INT(3) THEN
FAILED ("INCORRECT VALUE FOR INNER HOMOGRAPH - 20");
END IF;
IF THREE.A /= IDENT_INT(2) THEN
FAILED ("INCORRECT VALUE FOR OUTER HOMOGRAPH - 21");
END IF;
IF THREE.B /= IDENT_INT(2) THEN
FAILED ("INCORRECT VALUE FOR OUTER VARIABLE - 22");
END IF;
IF C /= IDENT_INT(2) THEN
FAILED ("INCORRECT VALUE FOR INNER VARIABLE - 23");
END IF;
IF X /= IDENT_INT(2) THEN
FAILED ("INCORRECT VALUE PASSED IN - 24");
END IF;
IF EQUAL(1,1) THEN
RETURN A;
ELSE
RETURN X;
END IF;
END INNER;
BEGIN -- THREE
IF INNER(A) /= IDENT_INT(3) THEN
FAILED ("INCORRECT VALUE PASSED OUT - 25");
END IF;
END THREE;
FOUR:
DECLARE -- RENAMING DECLARATION.
A : INTEGER := IDENT_INT(2);
PROCEDURE TEMPLATE (X : IN INTEGER := A;
Y : IN OUT INTEGER);
PROCEDURE INNER (Z : IN INTEGER := A;
A : IN OUT INTEGER) RENAMES TEMPLATE;
B : INTEGER := A;
OBJ : INTEGER := 5;
PROCEDURE TEMPLATE (X : IN INTEGER := A;
Y : IN OUT INTEGER) IS
BEGIN -- TEMPLATE
IF X /= IDENT_INT(2) THEN
FAILED ("INCORRECT RESULTS FOR VARIABLE - 30");
END IF;
IF Y /= IDENT_INT(5) THEN
FAILED ("INCORRECT RESULTS FOR VARIABLE - 31");
END IF;
Y := IDENT_INT(2 * X);
IF FOUR.A /= IDENT_INT(2) THEN
FAILED ("INCORRECT RESULTS FOR OUTER HOMOGRAPH - " &
"32");
END IF;
END TEMPLATE;
BEGIN -- FOUR
IF B /= IDENT_INT(2) THEN
FAILED ("INCORRECT VALUE FOR OUTER VARIABLE - 32");
END IF;
INNER (A => OBJ);
IF OBJ /= IDENT_INT(4) THEN
FAILED ("INCORRECT VALUE PASSED OUT - 33");
END IF;
END FOUR;
FIVE:
DECLARE -- GENERIC FORMAL SUBPROGRAM.
A : INTEGER := IDENT_INT(2);
B : INTEGER := A;
PROCEDURE INNER (X : IN OUT INTEGER);
GENERIC
WITH PROCEDURE SUBPR (Y : IN OUT INTEGER) IS <>;
PACKAGE P IS
PAC_VAR : INTEGER := 1;
END P;
PROCEDURE INNER (X : IN OUT INTEGER) IS
C : INTEGER := A;
A : INTEGER := IDENT_INT(3);
BEGIN
IF A /= IDENT_INT(3) THEN
FAILED ("INCORRECT VALUE FOR INNER HOMOGRAPH - 41");
END IF;
IF FIVE.A /= IDENT_INT(2) THEN
FAILED ("INCORRECT VALUE FOR OUTER HOMOGRAPH - 42");
END IF;
IF FIVE.B /= IDENT_INT(2) THEN
FAILED ("INCORRECT VALUE FOR OUTER VARIABLE - 43");
END IF;
IF C /= IDENT_INT(2) THEN
FAILED ("INCORRECT VALUE FOR INNER VARIABLE - 44");
END IF;
IF X /= IDENT_INT(2) THEN
FAILED ("INCORRECT VALUE PASSED IN - 45");
END IF;
IF EQUAL(1,1) THEN
X := A;
ELSE
X := FIVE.A;
END IF;
END INNER;
PACKAGE BODY P IS
BEGIN
SUBPR (A);
IF A /= IDENT_INT(3) THEN
FAILED ("INCORRECT VALUE PASSED OUT - 46");
END IF;
IF PAC_VAR /= IDENT_INT(1) THEN
FAILED ("INCORRECT VALUE FOR PAC_VAR - 47");
END IF;
END P;
PACKAGE NEW_P IS NEW P (INNER);
BEGIN -- FIVE
NULL;
END FIVE;
SIX:
DECLARE -- GENERIC INSTANTIATION.
A : INTEGER := IDENT_INT(2);
B : INTEGER := A;
OBJ : INTEGER := IDENT_INT(3);
GENERIC
PROCEDURE INNER (X : IN INTEGER := A;
A : IN OUT INTEGER);
PROCEDURE INNER (X : IN INTEGER := SIX.A;
A : IN OUT INTEGER) IS
C : INTEGER := A;
BEGIN
IF A /= IDENT_INT(3) THEN
FAILED ("INCORRECT VALUE FOR INNER HOMOGRAPH -50");
END IF;
IF SIX.A /= IDENT_INT(2) THEN
FAILED ("INCORRECT VALUE FOR OUTER HOMOGRAPH - 51");
END IF;
IF SIX.B /= IDENT_INT(2) THEN
FAILED ("INCORRECT VALUE FOR OUTER VARIABLE - 52");
END IF;
IF C /= IDENT_INT(3) THEN
FAILED ("INCORRECT VALUE FOR INNER VARIABLE - 53");
END IF;
IF X /= IDENT_INT(2) THEN
FAILED ("INCORRECT VALUE PASSED IN - 54");
END IF;
IF EQUAL(1,1) THEN
A := IDENT_INT(4);
ELSE
A := 1;
END IF;
END INNER;
PROCEDURE SUBPR IS NEW INNER;
BEGIN -- SIX
SUBPR (A => OBJ);
IF OBJ /= IDENT_INT(4) THEN
FAILED ("INCORRECT VALUE PASSED OUT - 55");
END IF;
END SIX;
SEVEN:
DECLARE -- OVERLOADING OF FUNCTIONS.
OBJ : INTEGER := 1;
FLO : FLOAT := 5.0;
FUNCTION F IS NEW GEN_FUN (INTEGER, OBJ);
PROCEDURE INNER (X : IN OUT INTEGER; F : IN FLOAT);
FUNCTION F IS NEW GEN_FUN (FLOAT, FLO);
PROCEDURE INNER (X : IN OUT INTEGER; F : IN FLOAT) IS
BEGIN
X := INTEGER(F);
END INNER;
BEGIN
FLO := 6.25;
INNER (OBJ, FLO);
IF OBJ /= IDENT_INT(6) THEN
FAILED ("INCORRECT VALUE RETURNED FROM FUNCTION - 60");
END IF;
END SEVEN;
RESULT;
END C83022A;
|
with
openGL.Geometry,
openGL.Texture;
package openGL.Model.billboard.textured
--
-- Models a textured billboard.
--
is
type Item (Lucid : Boolean) is new Model.billboard.item with private;
type View is access all Item'Class;
type Image_view is access Image;
type lucid_Image_view is access lucid_Image;
---------
--- Forge
--
package Forge
is
function new_Billboard (Size : in Size_t := default_Size;
Plane : in billboard.Plane;
Texture : in asset_Name;
Lucid : in Boolean := False) return View;
end Forge;
--------------
--- Attributes
--
overriding
function to_GL_Geometries (Self : access Item; Textures : access Texture.name_Map_of_texture'Class;
Fonts : in Font.font_id_Map_of_font) return Geometry.views;
procedure Texture_is (Self : in out Item; Now : in Texture.Object);
function Texture (Self : in Item) return Texture.Object;
procedure Texture_Coords_are (Self : in out Item; Now : in Coordinates);
procedure Size_is (Self : in out Item; Now : in Size_t);
procedure Image_is (Self : in out Item; Now : in Image);
procedure Image_is (Self : in out Item; Now : in lucid_Image);
private
type Item (Lucid : Boolean) is new Model.billboard.item with
record
texture_Name : asset_Name := null_Asset;
Texture : openGL.Texture.Object := openGL.Texture.null_Object; -- The texture to be applied to the billboard face.
texture_Coords : Coordinates := ((0.0, 0.0), (1.0, 0.0), (1.0, 1.0), (0.0, 1.0)); -- TODO: Should be constant/static ?
case Lucid is
when True => lucid_Image : lucid_Image_view;
when False => Image : Image_view;
end case;
end record;
end openGL.Model.billboard.textured;
|
-- Standard Ada library specification
-- 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
---------------------------------------------------------------------------
package Ada.Strings.UTF_Encoding is
pragma Pure (UTF_Encoding);
-- Declarations common to the string encoding packages
type Encoding_Scheme is (UTF_8, UTF_16BE, UTF_16LE);
subtype UTF_String is String;
subtype UTF_8_String is String;
subtype UTF_16_Wide_String is Wide_String;
Encoding_Error : exception;
BOM_8 : constant UTF_8_String :=
Character'Val(16#EF#) &
Character'Val(16#BB#) &
Character'Val(16#BF#);
BOM_16BE : constant UTF_String :=
Character'Val(16#FE#) &
Character'Val(16#FF#);
BOM_16LE : constant UTF_String :=
Character'Val(16#FF#) &
Character'Val(16#FE#);
BOM_16 : constant UTF_16_Wide_String :=
(1 => Wide_Character'Val(16#FEFF#));
function Encoding (Item : UTF_String;
Default : Encoding_Scheme := UTF_8)
return Encoding_Scheme;
end Ada.Strings.UTF_Encoding;
|
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- S Y S T E M . P O O L _ S I Z E --
-- --
-- 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. --
-- --
------------------------------------------------------------------------------
with System.Storage_Pools;
with System.Storage_Elements;
package System.Pool_Size is
pragma Elaborate_Body;
-- Needed to ensure that library routines can execute allocators
------------------------
-- Stack_Bounded_Pool --
------------------------
-- Allocation strategy:
-- Pool is a regular stack array, no use of malloc
-- user specified size
-- Space of pool is globally reclaimed by normal stack management
-- Used in the compiler for access types with 'STORAGE_SIZE rep. clause
-- Only used for allocating objects of the same type.
type Stack_Bounded_Pool
(Pool_Size : System.Storage_Elements.Storage_Count;
Elmt_Size : System.Storage_Elements.Storage_Count;
Alignment : System.Storage_Elements.Storage_Count)
is
new System.Storage_Pools.Root_Storage_Pool with record
First_Free : System.Storage_Elements.Storage_Count;
First_Empty : System.Storage_Elements.Storage_Count;
Aligned_Elmt_Size : System.Storage_Elements.Storage_Count;
The_Pool : System.Storage_Elements.Storage_Array
(1 .. Pool_Size);
end record;
overriding function Storage_Size
(Pool : Stack_Bounded_Pool) return System.Storage_Elements.Storage_Count;
overriding procedure Allocate
(Pool : in out Stack_Bounded_Pool;
Address : out System.Address;
Storage_Size : System.Storage_Elements.Storage_Count;
Alignment : System.Storage_Elements.Storage_Count);
overriding procedure Deallocate
(Pool : in out Stack_Bounded_Pool;
Address : System.Address;
Storage_Size : System.Storage_Elements.Storage_Count;
Alignment : System.Storage_Elements.Storage_Count);
overriding procedure Initialize (Pool : in out Stack_Bounded_Pool);
end System.Pool_Size;
|
pragma License (Unrestricted);
with System.Tasking;
package System.Task_Primitives.Operations is
pragma Preelaborate;
procedure Abort_Task (T : System.Tasking.Task_Id);
end System.Task_Primitives.Operations;
|
procedure AdaM.Assist.Query.find_All.Driver;
|
pragma SPARK_Mode;
with Pwm;
with Sparkduino; use Sparkduino;
package body Zumo_Motors is
PWM_L : constant := 10;
PWM_R : constant := 9;
DIR_L : constant := 8;
DIR_R : constant := 7;
procedure Init
is
begin
Initd := True;
SetPinMode (Pin => PWM_L,
Mode => PinMode'Pos (OUTPUT));
SetPinMode (Pin => PWM_R,
Mode => PinMode'Pos (OUTPUT));
SetPinMode (Pin => DIR_L,
Mode => PinMode'Pos (OUTPUT));
SetPinMode (Pin => DIR_R,
Mode => PinMode'Pos (OUTPUT));
Pwm.Configure_Timers;
end Init;
procedure FlipLeftMotor (Flip : Boolean)
is
begin
FlipLeft := Flip;
end FlipLeftMotor;
procedure FlipRightMotor (Flip : Boolean)
is
begin
FlipRight := Flip;
end FlipRightMotor;
procedure SetLeftSpeed (Velocity : Motor_Speed)
is
Rev : Boolean := False;
Speed : Motor_Speed := Velocity;
begin
if Speed < 0 then
Rev := True;
Speed := abs Speed;
end if;
Pwm.SetRate (Index => Pwm.Left,
Value => Word (Speed));
if Rev xor FlipLeft then
DigitalWrite (Pin => DIR_L,
Val => DigPinValue'Pos (HIGH));
else
DigitalWrite (Pin => DIR_L,
Val => DigPinValue'Pos (LOW));
end if;
end SetLeftSpeed;
procedure SetRightSpeed (Velocity : Motor_Speed)
is
Rev : Boolean := False;
Speed : Motor_Speed := Velocity;
begin
if Speed < 0 then
Rev := True;
Speed := abs Speed;
end if;
Pwm.SetRate (Index => Pwm.Right,
Value => Word (Speed));
if Rev xor FlipRight then
DigitalWrite (Pin => DIR_R,
Val => DigPinValue'Pos (HIGH));
else
DigitalWrite (Pin => DIR_R,
Val => DigPinValue'Pos (LOW));
end if;
end SetRightSpeed;
procedure SetSpeed (LeftVelocity : Motor_Speed;
RightVelocity : Motor_Speed)
is
begin
SetLeftSpeed (Velocity => LeftVelocity);
SetRightSpeed (Velocity => RightVelocity);
end SetSpeed;
end Zumo_Motors;
|
----------------------------------------------------------------
-- ZLib for Ada thick binding. --
-- --
-- Copyright (C) 2002-2004 Dmitriy Anisimkov --
-- --
-- Open source license information is in the zlib.ads file. --
----------------------------------------------------------------
--
-- $Id: buffer_demo.adb,v 1.1 2008/12/19 14:44:49 dkf Exp $
-- This demo program provided by Dr Steve Sangwine <sjs@essex.ac.uk>
--
-- Demonstration of a problem with Zlib-Ada (already fixed) when a buffer
-- of exactly the correct size is used for decompressed data, and the last
-- few bytes passed in to Zlib are checksum bytes.
-- This program compresses a string of text, and then decompresses the
-- compressed text into a buffer of the same size as the original text.
with Ada.Streams; use Ada.Streams;
with Ada.Text_IO;
with ZLib; use ZLib;
procedure Buffer_Demo is
EOL : Character renames ASCII.LF;
Text : constant String
:= "Four score and seven years ago our fathers brought forth," & EOL &
"upon this continent, a new nation, conceived in liberty," & EOL &
"and dedicated to the proposition that `all men are created equal'.";
Source : Stream_Element_Array (1 .. Text'Length);
for Source'Address use Text'Address;
begin
Ada.Text_IO.Put (Text);
Ada.Text_IO.New_Line;
Ada.Text_IO.Put_Line
("Uncompressed size : " & Positive'Image (Text'Length) & " bytes");
declare
Compressed_Data : Stream_Element_Array (1 .. Text'Length);
L : Stream_Element_Offset;
begin
Compress : declare
Compressor : Filter_Type;
I : Stream_Element_Offset;
begin
Deflate_Init (Compressor);
-- Compress the whole of T at once.
Translate (Compressor, Source, I, Compressed_Data, L, Finish);
pragma Assert (I = Source'Last);
Close (Compressor);
Ada.Text_IO.Put_Line
("Compressed size : "
& Stream_Element_Offset'Image (L) & " bytes");
end Compress;
-- Now we decompress the data, passing short blocks of data to Zlib
-- (because this demonstrates the problem - the last block passed will
-- contain checksum information and there will be no output, only a
-- check inside Zlib that the checksum is correct).
Decompress : declare
Decompressor : Filter_Type;
Uncompressed_Data : Stream_Element_Array (1 .. Text'Length);
Block_Size : constant := 4;
-- This makes sure that the last block contains
-- only Adler checksum data.
P : Stream_Element_Offset := Compressed_Data'First - 1;
O : Stream_Element_Offset;
begin
Inflate_Init (Decompressor);
loop
Translate
(Decompressor,
Compressed_Data
(P + 1 .. Stream_Element_Offset'Min (P + Block_Size, L)),
P,
Uncompressed_Data
(Total_Out (Decompressor) + 1 .. Uncompressed_Data'Last),
O,
No_Flush);
Ada.Text_IO.Put_Line
("Total in : " & Count'Image (Total_In (Decompressor)) &
", out : " & Count'Image (Total_Out (Decompressor)));
exit when P = L;
end loop;
Ada.Text_IO.New_Line;
Ada.Text_IO.Put_Line
("Decompressed text matches original text : "
& Boolean'Image (Uncompressed_Data = Source));
end Decompress;
end;
end Buffer_Demo;
|
package body Test_Utils.Abstract_Encoder.COBS_Stream is
-------------
-- Receive --
-------------
overriding
procedure Receive (This : in out Instance; Data : Storage_Element)
is
begin
This.Encoder.Push (Data);
end Receive;
------------------
-- End_Of_Frame --
------------------
overriding
procedure End_Of_Frame (This : in out Instance) is
begin
This.Encoder.End_Frame;
for Elt of This.Encoder.Output loop
This.Push_To_Frame (Elt);
end loop;
This.Encoder.Output.Clear;
end End_Of_Frame;
------------
-- Update --
------------
overriding
procedure Update (This : in out Instance) is
begin
null;
end Update;
-----------------
-- End_Of_Test --
-----------------
overriding
procedure End_Of_Test (This : in out Instance) is
begin
This.Save_Frame;
end End_Of_Test;
-----------
-- Flush --
-----------
overriding
procedure Flush (This : in out Test_Instance; Data : Storage_Array) is
begin
for Elt of Data loop
This.Output.Append (Elt);
end loop;
end Flush;
end Test_Utils.Abstract_Encoder.COBS_Stream;
|
-- Copyright 2011-2019 Free Software Foundation, Inc.
--
-- This program is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation; either version 3 of the License, or
-- (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program. If not, see <http://www.gnu.org/licenses/>.
with Pck; use Pck;
procedure Foo is
begin
Hello;
There;
end Foo;
|
-------------------------------------------------------------------------------
-- This file is part of libsparkcrypto.
--
-- Copyright (C) 2011, Adrian-Ken Rueegsegger
-- All rights reserved.
--
-- Redistribution and use in source and binary forms, with or without
-- modification, are permitted provided that the following conditions are met:
--
-- * Redistributions of source code must retain the above copyright notice,
-- this list of conditions and the following disclaimer.
--
-- * Redistributions in binary form must reproduce the above copyright
-- notice, this list of conditions and the following disclaimer in the
-- documentation and/or other materials provided with the distribution.
--
-- * Neither the name of the nor the names of its contributors may be used
-- to endorse or promote products derived from this software without
-- specific prior written permission.
--
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
-- AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-- ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS
-- BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-- CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-- SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-- INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-- CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-- POSSIBILITY OF SUCH DAMAGE.
-------------------------------------------------------------------------------
with LSC.Internal.SHA1, LSC.Internal.Types;
use type LSC.Internal.Types.Word32;
use type LSC.Internal.Types.Word64;
-------------------------------------------------------------------------------
-- The HMAC-SHA-1 message authentication
--
-- <ul>
-- <li>
-- <a href="http://www.faqs.org/rfcs/rfc2202.html">
-- P. Cheng, Test Cases for HMAC-MD5 and HMAC-SHA-1, RFC 2202,
-- September 1997. </a>
-- </li>
-- </ul>
-------------------------------------------------------------------------------
package LSC.Internal.HMAC_SHA1 is
pragma Pure;
-- HMAC-SHA-1 context
type Context_Type is private;
-- Initialize HMAC-SHA-1 context using @Key@.
function Context_Init (Key : SHA1.Block_Type) return Context_Type;
-- Update HMAC-SHA-1 @Context@ with message block @Block@.
procedure Context_Update
(Context : in out Context_Type;
Block : in SHA1.Block_Type)
with Depends => (Context =>+ Block);
pragma Inline (Context_Update);
-- Finalize HMAC-SHA-1 @Context@ using @Length@ bits of final message
-- block @Block@.
procedure Context_Finalize
(Context : in out Context_Type;
Block : in SHA1.Block_Type;
Length : in SHA1.Block_Length_Type)
with Depends => (Context =>+ (Block, Length));
pragma Inline (Context_Finalize);
-- Get authentication value from @Context@
function Get_Auth (Context : in Context_Type) return SHA1.Hash_Type;
-- Perform authentication of @Length@ bits of @Message@ using @Key@ and
-- return the authentication value.
function Authenticate
(Key : SHA1.Block_Type;
Message : SHA1.Message_Type;
Length : Types.Word64) return SHA1.Hash_Type
with
Pre =>
Message'First <= Message'Last and
Length / SHA1.Block_Size +
(if Length mod SHA1.Block_Size = 0 then 0 else 1) <= Message'Length;
private
type Context_Type is record
SHA1_Context : SHA1.Context_Type;
Key : SHA1.Block_Type;
end record;
end LSC.Internal.HMAC_SHA1;
|
--
-- Copyright 2018 The wookey project team <wookey@ssi.gouv.fr>
-- - Ryad Benadjila
-- - Arnauld Michelizza
-- - Mathieu Renard
-- - Philippe Thierry
-- - Philippe Trebuchet
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.
--
--
package soc.dma.interfaces
with spark_mode => off
is
type t_dma_interrupts is
(FIFO_ERROR, DIRECT_MODE_ERROR, TRANSFER_ERROR,
HALF_COMPLETE, TRANSFER_COMPLETE);
type t_config_mask is record
handlers : boolean;
buffer_in : boolean;
buffer_out : boolean;
buffer_size : boolean;
mode : boolean;
priority : boolean;
direction : boolean;
end record;
for t_config_mask use record
handlers at 0 range 0 .. 0;
buffer_in at 0 range 1 .. 1;
buffer_out at 0 range 2 .. 2;
buffer_size at 0 range 3 .. 3;
mode at 0 range 4 .. 4;
priority at 0 range 5 .. 5;
direction at 0 range 6 .. 6;
end record;
type t_mode is (DIRECT_MODE, FIFO_MODE, CIRCULAR_MODE);
type t_transfer_dir is
(PERIPHERAL_TO_MEMORY, MEMORY_TO_PERIPHERAL, MEMORY_TO_MEMORY);
type t_priority_level is (LOW, MEDIUM, HIGH, VERY_HIGH);
type t_data_size is (TRANSFER_BYTE, TRANSFER_HALF_WORD, TRANSFER_WORD);
type t_burst_size is
(SINGLE_TRANSFER, INCR_4_BEATS, INCR_8_BEATS, INCR_16_BEATS);
type t_flow_controller is (DMA_FLOW_CONTROLLER, PERIPH_FLOW_CONTROLLER);
type t_dma_config is record
dma_id : soc.dma.t_dma_periph_index;
stream : soc.dma.t_stream_index;
channel : soc.dma.t_channel_index;
bytes : unsigned_16;
in_addr : system_address;
in_priority : t_priority_level;
in_handler : system_address; -- ISR
out_addr : system_address;
out_priority : t_priority_level;
out_handler : system_address; -- ISR
flow_controller : t_flow_controller;
transfer_dir : t_transfer_dir;
mode : t_mode;
data_size : t_data_size;
memory_inc : boolean;
periph_inc : boolean;
mem_burst_size : t_burst_size;
periph_burst_size : t_burst_size;
end record;
procedure enable_stream
(dma_id : in soc.dma.t_dma_periph_index;
stream : in soc.dma.t_stream_index);
procedure disable_stream
(dma_id : in soc.dma.t_dma_periph_index;
stream : in soc.dma.t_stream_index);
procedure clear_interrupt
(dma_id : in soc.dma.t_dma_periph_index;
stream : in soc.dma.t_stream_index;
interrupt : in t_dma_interrupts);
procedure clear_all_interrupts
(dma_id : in soc.dma.t_dma_periph_index;
stream : in soc.dma.t_stream_index);
function get_interrupt_status
(dma_id : in soc.dma.t_dma_periph_index;
stream : in soc.dma.t_stream_index)
return t_dma_stream_int_status;
procedure configure_stream
(dma_id : in soc.dma.t_dma_periph_index;
stream : in soc.dma.t_stream_index;
user_config : in t_dma_config);
procedure reconfigure_stream
(dma_id : in soc.dma.t_dma_periph_index;
stream : in soc.dma.t_stream_index;
user_config : in t_dma_config;
to_configure: in t_config_mask);
procedure reset_stream
(dma_id : in soc.dma.t_dma_periph_index;
stream : in soc.dma.t_stream_index);
end soc.dma.interfaces;
|
package CSS.Analysis.Parser.Parser_Tokens is
subtype yystype is CSS.Analysis.Parser.YYstype;
YYLVal, YYVal : YYSType;
type Token is
(END_OF_INPUT, ERROR, R_PROPERTY, R_DEF_NAME,
R_IDENT, R_NAME, R_DEFINE,
R_FOLLOW, R_ANY, R_NUM,
'(', ')', '{',
'}', '[', ']',
'=', '|', '!',
'?', '#', '+',
'*', ',', '/',
S);
Syntax_Error : exception;
end CSS.Analysis.Parser.Parser_Tokens;
|
-- Standard Ada library specification
-- Copyright (c) 2003-2018 Maxim Reznik <reznikmm@gmail.com>
-- 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
---------------------------------------------------------------------------
package Ada.Numerics is
pragma Pure (Numerics);
Argument_Error : exception;
Pi : constant :=
3.14159_26535_89793_23846_26433_83279_50288_41971_69399_37511;
π : constant := Pi;
e : constant :=
2.71828_18284_59045_23536_02874_71352_66249_77572_47093_69996;
end Ada.Numerics;
|
with
AdaM.a_Type.ordinary_fixed_point_type,
gtk.Widget;
private
with
gtk.gEntry,
gtk.Box,
gtk.Label,
gtk.Spin_Button,
gtk.Button;
package aIDE.Editor.of_fixed_type
is
type Item is new Editor.item with private;
type View is access all Item'Class;
package Forge
is
function to_Editor (the_Target : in AdaM.a_Type.ordinary_fixed_point_type.view) return View;
end Forge;
overriding
function top_Widget (Self : in Item) return gtk.Widget.Gtk_Widget;
private
use gtk.Button,
gtk.gEntry,
gtk.Spin_Button,
gtk.Label,
gtk.Box;
type Item is new Editor.item with
record
Target : AdaM.a_Type.ordinary_fixed_point_type.view;
top_Box : gtk_Box;
name_Entry : Gtk_Entry;
delta_Entry : Gtk_Entry;
first_Entry : Gtk_Entry;
last_Entry : Gtk_Entry;
rid_Button : gtk_Button;
end record;
overriding
procedure freshen (Self : in out Item);
end aIDE.Editor.of_fixed_type;
|
-----------------------------------------------------------------------
-- AWA.Tags.Models -- AWA.Tags.Models
-----------------------------------------------------------------------
-- File generated by ada-gen DO NOT MODIFY
-- Template used: templates/model/package-spec.xhtml
-- Ada Generator: https://ada-gen.googlecode.com/svn/trunk Revision 1095
-----------------------------------------------------------------------
-- Copyright (C) 2020 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.
-----------------------------------------------------------------------
pragma Warnings (Off);
with ADO.Sessions;
with ADO.Objects;
with ADO.Statements;
with ADO.SQL;
with ADO.Schemas;
with ADO.Queries;
with ADO.Queries.Loaders;
with Ada.Containers.Vectors;
with Ada.Strings.Unbounded;
with Util.Beans.Objects;
with Util.Beans.Basic.Lists;
pragma Warnings (On);
package AWA.Tags.Models is
pragma Style_Checks ("-mr");
type Tag_Ref is new ADO.Objects.Object_Ref with null record;
type Tagged_Entity_Ref is new ADO.Objects.Object_Ref with null record;
-- --------------------
-- The tag definition.
-- --------------------
-- Create an object key for Tag.
function Tag_Key (Id : in ADO.Identifier) return ADO.Objects.Object_Key;
-- Create an object key for Tag from a string.
-- Raises Constraint_Error if the string cannot be converted into the object key.
function Tag_Key (Id : in String) return ADO.Objects.Object_Key;
Null_Tag : constant Tag_Ref;
function "=" (Left, Right : Tag_Ref'Class) return Boolean;
-- Set the tag identifier
procedure Set_Id (Object : in out Tag_Ref;
Value : in ADO.Identifier);
-- Get the tag identifier
function Get_Id (Object : in Tag_Ref)
return ADO.Identifier;
-- Set the tag name
procedure Set_Name (Object : in out Tag_Ref;
Value : in Ada.Strings.Unbounded.Unbounded_String);
procedure Set_Name (Object : in out Tag_Ref;
Value : in String);
-- Get the tag name
function Get_Name (Object : in Tag_Ref)
return Ada.Strings.Unbounded.Unbounded_String;
function Get_Name (Object : in Tag_Ref)
return String;
-- Load the entity identified by 'Id'.
-- Raises the NOT_FOUND exception if it does not exist.
procedure Load (Object : in out Tag_Ref;
Session : in out ADO.Sessions.Session'Class;
Id : in ADO.Identifier);
-- Load the entity identified by 'Id'.
-- Returns True in <b>Found</b> if the object was found and False if it does not exist.
procedure Load (Object : in out Tag_Ref;
Session : in out ADO.Sessions.Session'Class;
Id : in ADO.Identifier;
Found : out Boolean);
-- Find and load the entity.
overriding
procedure Find (Object : in out Tag_Ref;
Session : in out ADO.Sessions.Session'Class;
Query : in ADO.SQL.Query'Class;
Found : out Boolean);
-- Save the entity. If the entity does not have an identifier, an identifier is allocated
-- and it is inserted in the table. Otherwise, only data fields which have been changed
-- are updated.
overriding
procedure Save (Object : in out Tag_Ref;
Session : in out ADO.Sessions.Master_Session'Class);
-- Delete the entity.
overriding
procedure Delete (Object : in out Tag_Ref;
Session : in out ADO.Sessions.Master_Session'Class);
overriding
function Get_Value (From : in Tag_Ref;
Name : in String) return Util.Beans.Objects.Object;
-- Table definition
TAG_TABLE : constant ADO.Schemas.Class_Mapping_Access;
-- Internal method to allocate the Object_Record instance
overriding
procedure Allocate (Object : in out Tag_Ref);
-- Copy of the object.
procedure Copy (Object : in Tag_Ref;
Into : in out Tag_Ref);
package Tag_Vectors is
new Ada.Containers.Vectors (Index_Type => Positive,
Element_Type => Tag_Ref,
"=" => "=");
subtype Tag_Vector is Tag_Vectors.Vector;
procedure List (Object : in out Tag_Vector;
Session : in out ADO.Sessions.Session'Class;
Query : in ADO.SQL.Query'Class);
-- Create an object key for Tagged_Entity.
function Tagged_Entity_Key (Id : in ADO.Identifier) return ADO.Objects.Object_Key;
-- Create an object key for Tagged_Entity from a string.
-- Raises Constraint_Error if the string cannot be converted into the object key.
function Tagged_Entity_Key (Id : in String) return ADO.Objects.Object_Key;
Null_Tagged_Entity : constant Tagged_Entity_Ref;
function "=" (Left, Right : Tagged_Entity_Ref'Class) return Boolean;
-- Set the tag entity identifier
procedure Set_Id (Object : in out Tagged_Entity_Ref;
Value : in ADO.Identifier);
-- Get the tag entity identifier
function Get_Id (Object : in Tagged_Entity_Ref)
return ADO.Identifier;
-- Set Title: Tag model
-- Date: 2013-02-23the database entity to which the tag is associated
procedure Set_For_Entity_Id (Object : in out Tagged_Entity_Ref;
Value : in ADO.Identifier);
-- Get Title: Tag model
-- Date: 2013-02-23the database entity to which the tag is associated
function Get_For_Entity_Id (Object : in Tagged_Entity_Ref)
return ADO.Identifier;
-- Set the entity type
procedure Set_Entity_Type (Object : in out Tagged_Entity_Ref;
Value : in ADO.Entity_Type);
-- Get the entity type
function Get_Entity_Type (Object : in Tagged_Entity_Ref)
return ADO.Entity_Type;
--
procedure Set_Tag (Object : in out Tagged_Entity_Ref;
Value : in AWA.Tags.Models.Tag_Ref'Class);
--
function Get_Tag (Object : in Tagged_Entity_Ref)
return AWA.Tags.Models.Tag_Ref'Class;
-- Load the entity identified by 'Id'.
-- Raises the NOT_FOUND exception if it does not exist.
procedure Load (Object : in out Tagged_Entity_Ref;
Session : in out ADO.Sessions.Session'Class;
Id : in ADO.Identifier);
-- Load the entity identified by 'Id'.
-- Returns True in <b>Found</b> if the object was found and False if it does not exist.
procedure Load (Object : in out Tagged_Entity_Ref;
Session : in out ADO.Sessions.Session'Class;
Id : in ADO.Identifier;
Found : out Boolean);
-- Find and load the entity.
overriding
procedure Find (Object : in out Tagged_Entity_Ref;
Session : in out ADO.Sessions.Session'Class;
Query : in ADO.SQL.Query'Class;
Found : out Boolean);
-- Save the entity. If the entity does not have an identifier, an identifier is allocated
-- and it is inserted in the table. Otherwise, only data fields which have been changed
-- are updated.
overriding
procedure Save (Object : in out Tagged_Entity_Ref;
Session : in out ADO.Sessions.Master_Session'Class);
-- Delete the entity.
overriding
procedure Delete (Object : in out Tagged_Entity_Ref;
Session : in out ADO.Sessions.Master_Session'Class);
overriding
function Get_Value (From : in Tagged_Entity_Ref;
Name : in String) return Util.Beans.Objects.Object;
-- Table definition
TAGGED_ENTITY_TABLE : constant ADO.Schemas.Class_Mapping_Access;
-- Internal method to allocate the Object_Record instance
overriding
procedure Allocate (Object : in out Tagged_Entity_Ref);
-- Copy of the object.
procedure Copy (Object : in Tagged_Entity_Ref;
Into : in out Tagged_Entity_Ref);
package Tagged_Entity_Vectors is
new Ada.Containers.Vectors (Index_Type => Positive,
Element_Type => Tagged_Entity_Ref,
"=" => "=");
subtype Tagged_Entity_Vector is Tagged_Entity_Vectors.Vector;
procedure List (Object : in out Tagged_Entity_Vector;
Session : in out ADO.Sessions.Session'Class;
Query : in ADO.SQL.Query'Class);
-- --------------------
-- The tag information.
-- --------------------
type Tag_Info is
new Util.Beans.Basic.Bean with record
-- the tag name.
Tag : Ada.Strings.Unbounded.Unbounded_String;
-- the number of references for the tag.
Count : Natural;
end record;
-- Get the bean attribute identified by the name.
overriding
function Get_Value (From : in Tag_Info;
Name : in String) return Util.Beans.Objects.Object;
-- Set the bean attribute identified by the name.
overriding
procedure Set_Value (Item : in out Tag_Info;
Name : in String;
Value : in Util.Beans.Objects.Object);
package Tag_Info_Beans is
new Util.Beans.Basic.Lists (Element_Type => Tag_Info);
package Tag_Info_Vectors renames Tag_Info_Beans.Vectors;
subtype Tag_Info_List_Bean is Tag_Info_Beans.List_Bean;
type Tag_Info_List_Bean_Access is access all Tag_Info_List_Bean;
-- Run the query controlled by <b>Context</b> and append the list in <b>Object</b>.
procedure List (Object : in out Tag_Info_List_Bean'Class;
Session : in out ADO.Sessions.Session'Class;
Context : in out ADO.Queries.Context'Class);
subtype Tag_Info_Vector is Tag_Info_Vectors.Vector;
-- Run the query controlled by <b>Context</b> and append the list in <b>Object</b>.
procedure List (Object : in out Tag_Info_Vector;
Session : in out ADO.Sessions.Session'Class;
Context : in out ADO.Queries.Context'Class);
Query_Check_Tag : constant ADO.Queries.Query_Definition_Access;
Query_Tag_List : constant ADO.Queries.Query_Definition_Access;
Query_Tag_Search : constant ADO.Queries.Query_Definition_Access;
Query_Tag_List_All : constant ADO.Queries.Query_Definition_Access;
Query_Tag_List_For_Entities : constant ADO.Queries.Query_Definition_Access;
private
TAG_NAME : aliased constant String := "awa_tag";
COL_0_1_NAME : aliased constant String := "id";
COL_1_1_NAME : aliased constant String := "name";
TAG_DEF : aliased constant ADO.Schemas.Class_Mapping :=
(Count => 2,
Table => TAG_NAME'Access,
Members => (
1 => COL_0_1_NAME'Access,
2 => COL_1_1_NAME'Access)
);
TAG_TABLE : constant ADO.Schemas.Class_Mapping_Access
:= TAG_DEF'Access;
Null_Tag : constant Tag_Ref
:= Tag_Ref'(ADO.Objects.Object_Ref with null record);
type Tag_Impl is
new ADO.Objects.Object_Record (Key_Type => ADO.Objects.KEY_INTEGER,
Of_Class => TAG_DEF'Access)
with record
Name : Ada.Strings.Unbounded.Unbounded_String;
end record;
type Tag_Access is access all Tag_Impl;
overriding
procedure Destroy (Object : access Tag_Impl);
overriding
procedure Find (Object : in out Tag_Impl;
Session : in out ADO.Sessions.Session'Class;
Query : in ADO.SQL.Query'Class;
Found : out Boolean);
overriding
procedure Load (Object : in out Tag_Impl;
Session : in out ADO.Sessions.Session'Class);
procedure Load (Object : in out Tag_Impl;
Stmt : in out ADO.Statements.Query_Statement'Class;
Session : in out ADO.Sessions.Session'Class);
overriding
procedure Save (Object : in out Tag_Impl;
Session : in out ADO.Sessions.Master_Session'Class);
procedure Create (Object : in out Tag_Impl;
Session : in out ADO.Sessions.Master_Session'Class);
overriding
procedure Delete (Object : in out Tag_Impl;
Session : in out ADO.Sessions.Master_Session'Class);
procedure Set_Field (Object : in out Tag_Ref'Class;
Impl : out Tag_Access);
TAGGED_ENTITY_NAME : aliased constant String := "awa_tagged_entity";
COL_0_2_NAME : aliased constant String := "id";
COL_1_2_NAME : aliased constant String := "for_entity_id";
COL_2_2_NAME : aliased constant String := "entity_type";
COL_3_2_NAME : aliased constant String := "tag_id";
TAGGED_ENTITY_DEF : aliased constant ADO.Schemas.Class_Mapping :=
(Count => 4,
Table => TAGGED_ENTITY_NAME'Access,
Members => (
1 => COL_0_2_NAME'Access,
2 => COL_1_2_NAME'Access,
3 => COL_2_2_NAME'Access,
4 => COL_3_2_NAME'Access)
);
TAGGED_ENTITY_TABLE : constant ADO.Schemas.Class_Mapping_Access
:= TAGGED_ENTITY_DEF'Access;
Null_Tagged_Entity : constant Tagged_Entity_Ref
:= Tagged_Entity_Ref'(ADO.Objects.Object_Ref with null record);
type Tagged_Entity_Impl is
new ADO.Objects.Object_Record (Key_Type => ADO.Objects.KEY_INTEGER,
Of_Class => TAGGED_ENTITY_DEF'Access)
with record
For_Entity_Id : ADO.Identifier;
Entity_Type : ADO.Entity_Type;
Tag : AWA.Tags.Models.Tag_Ref;
end record;
type Tagged_Entity_Access is access all Tagged_Entity_Impl;
overriding
procedure Destroy (Object : access Tagged_Entity_Impl);
overriding
procedure Find (Object : in out Tagged_Entity_Impl;
Session : in out ADO.Sessions.Session'Class;
Query : in ADO.SQL.Query'Class;
Found : out Boolean);
overriding
procedure Load (Object : in out Tagged_Entity_Impl;
Session : in out ADO.Sessions.Session'Class);
procedure Load (Object : in out Tagged_Entity_Impl;
Stmt : in out ADO.Statements.Query_Statement'Class;
Session : in out ADO.Sessions.Session'Class);
overriding
procedure Save (Object : in out Tagged_Entity_Impl;
Session : in out ADO.Sessions.Master_Session'Class);
procedure Create (Object : in out Tagged_Entity_Impl;
Session : in out ADO.Sessions.Master_Session'Class);
overriding
procedure Delete (Object : in out Tagged_Entity_Impl;
Session : in out ADO.Sessions.Master_Session'Class);
procedure Set_Field (Object : in out Tagged_Entity_Ref'Class;
Impl : out Tagged_Entity_Access);
package File_1 is
new ADO.Queries.Loaders.File (Path => "tag-queries.xml",
Sha1 => "BFA439EF20901C425F86DB33AD8870BADB46FBEB");
package Def_Taginfo_Check_Tag is
new ADO.Queries.Loaders.Query (Name => "check-tag",
File => File_1.File'Access);
Query_Check_Tag : constant ADO.Queries.Query_Definition_Access
:= Def_Taginfo_Check_Tag.Query'Access;
package Def_Taginfo_Tag_List is
new ADO.Queries.Loaders.Query (Name => "tag-list",
File => File_1.File'Access);
Query_Tag_List : constant ADO.Queries.Query_Definition_Access
:= Def_Taginfo_Tag_List.Query'Access;
package Def_Taginfo_Tag_Search is
new ADO.Queries.Loaders.Query (Name => "tag-search",
File => File_1.File'Access);
Query_Tag_Search : constant ADO.Queries.Query_Definition_Access
:= Def_Taginfo_Tag_Search.Query'Access;
package Def_Taginfo_Tag_List_All is
new ADO.Queries.Loaders.Query (Name => "tag-list-all",
File => File_1.File'Access);
Query_Tag_List_All : constant ADO.Queries.Query_Definition_Access
:= Def_Taginfo_Tag_List_All.Query'Access;
package Def_Taginfo_Tag_List_For_Entities is
new ADO.Queries.Loaders.Query (Name => "tag-list-for-entities",
File => File_1.File'Access);
Query_Tag_List_For_Entities : constant ADO.Queries.Query_Definition_Access
:= Def_Taginfo_Tag_List_For_Entities.Query'Access;
end AWA.Tags.Models;
|
--
-- Copyright 2018 The wookey project team <wookey@ssi.gouv.fr>
-- - Ryad Benadjila
-- - Arnauld Michelizza
-- - Mathieu Renard
-- - Philippe Thierry
-- - Philippe Trebuchet
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.
--
--
pragma Restrictions (No_Elaboration_Code);
with ada.unchecked_conversion;
package m4.cpu
with spark_mode => on
is
-------------
-- Globals --
-------------
EXC_THREAD_MODE : constant unsigned_32 := 16#FFFF_FFFD#;
EXC_KERN_MODE : constant unsigned_32 := 16#FFFF_FFF9#;
EXC_HANDLER_MODE : constant unsigned_32 := 16#FFFF_FFF1#;
---------------
-- Registers --
---------------
--
-- CONTROL register
--
type t_SPSEL is (MSP, PSP) with size => 1;
for t_SPSEL use (MSP => 0, PSP => 1);
type t_PRIV is (PRIVILEGED, UNPRIVILEGED) with size => 1;
for t_PRIV use (PRIVILEGED => 0, UNPRIVILEGED => 1);
type t_control_register is record
nPRIV : t_PRIV; -- Thread mode is privileged (0), unprivileged (1)
SPSEL : t_SPSEL; -- Current stack pointer
end record
with size => 32;
for t_control_register use record
nPRIV at 0 range 0 .. 0;
SPSEL at 0 range 1 .. 1;
end record;
--
-- PSR register that aggregates (A)(I)(E)PSR registers
--
type t_PSR_register is record
ISR_NUMBER : unsigned_8;
ICI_IT_lo : bits_6;
GE : bits_4;
Thumb : bit;
ICI_IT_hi : bits_2;
DSP_overflow : bit; -- Q
Overflow : bit; -- V
Carry : bit;
Zero : bit;
Negative : bit;
end record
with size => 32;
for t_PSR_register use record
ISR_NUMBER at 0 range 0 .. 7;
ICI_IT_lo at 0 range 10 .. 15;
GE at 0 range 16 .. 19;
Thumb at 0 range 24 .. 24;
ICI_IT_hi at 0 range 25 .. 26;
DSP_overflow at 0 range 27 .. 27;
Overflow at 0 range 28 .. 28;
Carry at 0 range 29 .. 29;
Zero at 0 range 30 .. 30;
Negative at 0 range 31 .. 31;
end record;
function to_unsigned_32 is new ada.unchecked_conversion
(t_PSR_register, unsigned_32);
--
-- APSR register
--
type t_APSR_register is record
GE : bits_4;
DSP_overflow : bit;
Overflow : bit;
Carry : bit;
Zero : bit;
Negative : bit;
end record
with size => 32;
for t_APSR_register use record
GE at 0 range 16 .. 19;
DSP_overflow at 0 range 27 .. 27;
Overflow at 0 range 28 .. 28;
Carry at 0 range 29 .. 29;
Zero at 0 range 30 .. 30;
Negative at 0 range 31 .. 31;
end record;
function to_PSR_register is new ada.unchecked_conversion
(t_APSR_register, t_PSR_register);
--
-- IPSR register
--
type t_IPSR_register is record
ISR_NUMBER : unsigned_8;
end record
with size => 32;
function to_PSR_register is new ada.unchecked_conversion
(t_IPSR_register, t_PSR_register);
--
-- EPSR register
--
type t_EPSR_register is record
ICI_IT_lo : bits_6;
Thumb : bit;
ICI_IT_hi : bits_2;
end record
with size => 32;
for t_EPSR_register use record
ICI_IT_lo at 0 range 10 .. 15;
Thumb at 0 range 24 .. 24;
ICI_IT_hi at 0 range 25 .. 26;
end record;
function to_PSR_register is new ada.unchecked_conversion
(t_EPSR_register, t_PSR_register);
---------------
-- Functions --
---------------
-- Enable IRQs by clearing the I-bit in the CPSR.
-- (privileged mode)
procedure enable_irq
with inline;
-- Disable IRQs by setting the I-bit in the CPSR.
-- (privileged mode)
procedure disable_irq
with inline;
-- Get the Control register.
function get_control_register return t_control_register
with inline;
-- Set the Control register.
procedure set_control_register (cr : in t_control_register)
with inline;
-- Get the IPSR register.
function get_ipsr_register return t_IPSR_register
with inline;
-- Get the APSR register.
function get_apsr_register return t_APSR_register
with inline;
-- Get the EPSR register.
function get_epsr_register return t_EPSR_register
with inline;
-- Get the LR register
function get_lr_register return unsigned_32
with inline;
-- Get the process stack pointer (PSP)
function get_psp_register return system_address
with inline;
-- Set the process stack pointer (PSP)
procedure set_psp_register (addr : in system_address)
with inline;
-- Get the main stack pointer (MSP)
function get_msp_register return system_address
with inline;
-- Set the main stack pointer (MSP)
procedure set_msp_register (addr : system_address)
with inline;
-- Get the priority mask value
function get_primask_register return unsigned_32
with inline;
-- Set the priority mask value
procedure set_primask_register (mask : in unsigned_32)
with inline;
end m4.cpu;
|
with System.Storage_Elements;
package GC is
pragma Preelaborate;
pragma Linker_Options ("-lgc");
function Version return String;
function Heap_Size return System.Storage_Elements.Storage_Count;
procedure Collect;
end GC;
|
-- Test LU decomposition on a real valued square matrix.
with Ada.Numerics.Generic_elementary_functions;
with Crout_LU;
with Text_IO; use Text_IO;
with Test_Matrices;
procedure crout_lu_tst_2 is
type Real is digits 15;
subtype Index is Integer range 0..50;
Starting_Index : constant Index := Index'First + 0;
Final_Index : Index := Index'Last - 0;
type Matrix is array(Index, Index) of Real;
package math is new Ada.Numerics.Generic_elementary_functions(Real);
use math; --for sqrt
package lu is new crout_lu (Real, Index, Matrix);
use lu;
package rio is new Float_IO(Real);
use rio;
package iio is new Integer_IO(Integer);
use iio;
package Make_Square_Matrix is new Test_Matrices (Real, Index, Matrix);
use Make_Square_Matrix;
Zero : constant Real := +0.0;
One : constant Real := +1.0;
Two : constant Real := +2.0;
Min_Allowed_Real : constant Real := Two**(Real'Machine_Emin / 4);
Zero_Vector : constant Row_Vector := (others => Zero);
A, B, Err : Matrix := (others => (others => Zero));
Identity, B_inv : Matrix := (others => (others => Zero));
Relative_Err, Max_Error : Real;
IO_Final_Index : Integer := 4;
Scale_the_Matrix : constant Boolean := True;
Scale : Scale_Vectors;
-----------
-- Pause --
-----------
procedure Pause (s1,s2,s3,s4,s5,s6,s7,s8 : string := "") is
Continue : Character := ' ';
begin
New_Line;
if S1 /= "" then put_line (S1); end if;
if S2 /= "" then put_line (S2); end if;
if S3 /= "" then put_line (S3); end if;
if S4 /= "" then put_line (S4); end if;
if S5 /= "" then put_line (S5); end if;
if S6 /= "" then put_line (S6); end if;
if S7 /= "" then put_line (S7); end if;
if S8 /= "" then put_line (S8); end if;
new_line;
begin
put ("Enter a character to continue: ");
get_immediate (Continue);
new_line;
exception
when others => null;
end;
end pause;
-----------------------------------
-- Transpose_of_Left_Times_Right --
-----------------------------------
function Transpose_of_Left_Times_Right
(A, B : in Matrix;
Final_Row : in Index := Final_Index;
Final_Col : in Index := Final_Index;
Starting_Row : in Index := Starting_Index;
Starting_Col : in Index := Starting_Index)
return Matrix
is
Sum : Real := Zero;
Result : Matrix := (others => (others => Zero));
begin
for Row in Starting_Row .. Final_Row loop
for Col in Starting_Col .. Final_Col loop
Sum := Zero;
for k in Starting_Col .. Final_Col loop
Sum := Sum + A(k, Row) * B(k, Col);
end loop;
Result(Row, Col) := Sum;
end loop;
end loop;
return Result;
end Transpose_of_Left_Times_Right;
-------------
-- Product --
-------------
function Product
(A, B : in Matrix;
Final_Row : in Index := Final_Index;
Final_Col : in Index := Final_Index;
Starting_Row : in Index := Starting_Index;
Starting_Col : in Index := Starting_Index)
return Matrix
is
Sum : Real := Zero;
Result : Matrix := (others => (others => Zero));
begin
for Row in Starting_Row .. Final_Row loop
for Col in Starting_Col .. Final_Col loop
Sum := Zero;
for k in Starting_Col .. Final_Col loop
Sum := Sum + A(Row, k) * B(k, Col);
end loop;
Result(Row, Col) := Sum;
end loop;
end loop;
return Result;
end Product;
--------------------
-- Frobenius_Norm --
--------------------
function Frobenius_Norm
(A : in Matrix;
Final_Row : in Index := Final_Index;
Final_Col : in Index := Final_Index;
Starting_Row : in Index := Starting_Index;
Starting_Col : in Index := Starting_Index)
return Real
is
Max_A_Val : Real := Zero;
Sum, Scaling, tmp : Real := Zero;
begin
Max_A_Val := Zero;
for Row in Starting_Row .. Final_Row loop
for Col in Starting_Col .. Final_Col loop
if Max_A_Val < Abs A(Row, Col) then Max_A_Val := Abs A(Row, Col); end if;
end loop;
end loop;
Scaling := One / (Max_A_Val + Min_Allowed_Real);
Sum := Zero;
for Row in Starting_Row .. Final_Row loop
for Col in Starting_Col .. Final_Col loop
tmp := Scaling * A(Row, Col);
Sum := Sum + tmp * tmp;
end loop;
end loop;
return Sqrt (Sum) * Max_A_Val;
end Frobenius_Norm;
------------
-- Invert --
------------
-- Get Inverse of the Matrix:
procedure Invert
(M : in Matrix;
M_Inv : out Matrix;
Max_Error : out Real)
--Final_Index : in Index;
--Starting_Index : in Index)
is
Solution_Vector : Row_Vector;
Unit_Vector : Row_Vector := (others => 0.0);
Error : Col_Vector := (others => 0.0);
Scale : Scale_Vectors;
Permute : Rearrangement;
M_LU : Matrix := M;
begin
Max_Error := 0.0;
LU_decompose
(A => M_LU,
Scalings => Scale,
Row_Permutation => Permute,
Final_Index => Final_Index,
Starting_Index => Starting_Index,
Scaling_Desired => Scale_the_Matrix);
for I in Starting_Index..Final_Index loop
if I > Starting_Index then
Unit_Vector(I-1) := 0.0;
end if;
Unit_Vector(I) := 1.0;
-- Solve A*X = B:
LU_Solve
(X => Solution_Vector,
B => Unit_Vector,
A_LU => M_LU,
Scalings => Scale,
Row_Permutation => Permute,
Final_Index => Final_Index,
Starting_Index => Starting_Index);
-- Solve M*Solution_Vector = Unit_Vector (for Solution_Vector).
Error := Unit_Vector - Product (M, Solution_Vector,Final_Index,Starting_Index);
for I in Starting_Index..Final_Index loop
if Abs(Error(I)) > Max_Error then
Max_Error := Abs(Error(I));
end if;
end loop;
-- Solution vector is the I-th column of M_Inverse:
for J in Starting_Index..Final_Index loop
M_Inv (J, I) := Solution_Vector(J);
end loop;
end loop;
end Invert;
begin
for Col in Index loop
Identity(Col, Col) := One;
end loop;
put("Maximum matrix size is "&
Integer'Image (Zero_Vector'length-(Integer(Starting_Index)-Integer(Index'First))));
new_Line;
put("Input Size Of Matrix To Invert (enter an Integer)"); new_Line;
get(IO_Final_Index);
Final_Index := Starting_Index + Index (IO_Final_Index-1);
Pause(
"Test 1: LU Decomposition of matrix A = P*L*U is usually successful, but if A is",
"singular of ill-conditioned then the P*L*U is likely to be useless.",
"If A is singular or ill-conditioned then it's better to solve the normal equations,",
"in other words solve A'*A * X = A'*b instead of A * X = b, (where A' = Transpose(A)).",
"A'*A may still be ill-conditioned, but adding 'epsilon*I' to A'*A reliably removes the",
"singularity. Sometimes iterative refinement is used to get better solutions to A*X = b,",
"but in this test no iterative refinement is performed."
);
Pause(
"Final remark: if you work with the normal equations, A'*A * X = A'*b, then",
"Choleski decomposition is more appropriate, but the idea here is to test the",
"LU decomposition, LU_solve.",
"The matrices used in the following test are mostly ill-conditioned, so in most cases",
"the error does not approach machine precision (1.0e-16).",
" ",
"Equation solving is done with matrix B = A'*A + epsilon*I."
);
new_line;
for Chosen_Matrix in Matrix_id loop
put("For matrix originally of type ");
put(Matrix_id'Image(Chosen_Matrix)); Put(":");
new_line;
-- Get a non-singular B = A'*A + epsilon*I:
Init_Matrix (A, Chosen_Matrix, Starting_Index, Final_Index);
Scale_Cols_Then_Rows
(A => A,
Scalings => Scale,
Final_Index => Final_Index,
Starting_Index => Starting_Index);
B := Transpose_of_Left_Times_Right (A, A); -- get B = A'*A
-- Now B's eig vals are all >= 0. Add Eps*Identity to B: this
-- shifts all eigs plus Eps = Two**(-28), so all eigs >= Two**(-28):
for Col in Index loop
B(Col, Col) := Two**(-20) + B(Col, Col);
end loop;
-- Get A_inverse
Invert (B, B_inv, Max_Error);
for Row in Starting_Index .. Final_Index loop
for Col in Starting_Index .. Final_Index loop
Err (Row, Col) := Identity(Row, Col) - Product (B, B_inv)(Row, Col);
end loop;
end loop;
--Err := Transpose_of_Left_Times_Right (A, Err);
Relative_Err := Frobenius_Norm (Err) / (Frobenius_Norm (Identity));
put(" Err in I - B*B_inverse is ~ ||I - B*B_inverse|| / ||I|| =");
put(Relative_Err);
new_line;
for Row in Starting_Index .. Final_Index loop
for Col in Starting_Index .. Final_Index loop
Err (Row, Col) := Identity(Row, Col) - Product (B_inv, B)(Row, Col);
end loop;
end loop;
Relative_Err := Frobenius_Norm (Err) / (Frobenius_Norm (Identity));
put(" Err in I - B_inverse*B is ~ ||I - B_inverse*B|| / ||I|| =");
put(Relative_Err);
new_line;
end loop; -- Matrix_id
end;
|
-- This spec has been automatically generated from STM32F7x9.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with HAL;
with System;
package STM32_SVD.PWR is
pragma Preelaborate;
---------------
-- Registers --
---------------
subtype CR1_PLS_Field is HAL.UInt3;
subtype CR1_VOS_Field is HAL.UInt2;
subtype CR1_UDEN_Field is HAL.UInt2;
-- power control register
type CR1_Register is record
-- Low-power deep sleep
LPDS : Boolean := False;
-- Power down deepsleep
PDDS : Boolean := False;
-- unspecified
Reserved_2_2 : HAL.Bit := 16#0#;
-- Clear standby flag
CSBF : Boolean := False;
-- Power voltage detector enable
PVDE : Boolean := False;
-- PVD level selection
PLS : CR1_PLS_Field := 16#0#;
-- Disable backup domain write protection
DBP : Boolean := False;
-- Flash power down in Stop mode
FPDS : Boolean := False;
-- Low-power regulator in deepsleep under-drive mode
LPUDS : Boolean := False;
-- Main regulator in deepsleep under-drive mode
MRUDS : Boolean := False;
-- unspecified
Reserved_12_12 : HAL.Bit := 16#0#;
-- ADCDC1
ADCDC1 : Boolean := False;
-- Regulator voltage scaling output selection
VOS : CR1_VOS_Field := 16#3#;
-- Over-drive enable
ODEN : Boolean := False;
-- Over-drive switching enabled
ODSWEN : Boolean := False;
-- Under-drive enable in stop mode
UDEN : CR1_UDEN_Field := 16#0#;
-- unspecified
Reserved_20_31 : HAL.UInt12 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for CR1_Register use record
LPDS at 0 range 0 .. 0;
PDDS at 0 range 1 .. 1;
Reserved_2_2 at 0 range 2 .. 2;
CSBF at 0 range 3 .. 3;
PVDE at 0 range 4 .. 4;
PLS at 0 range 5 .. 7;
DBP at 0 range 8 .. 8;
FPDS at 0 range 9 .. 9;
LPUDS at 0 range 10 .. 10;
MRUDS at 0 range 11 .. 11;
Reserved_12_12 at 0 range 12 .. 12;
ADCDC1 at 0 range 13 .. 13;
VOS at 0 range 14 .. 15;
ODEN at 0 range 16 .. 16;
ODSWEN at 0 range 17 .. 17;
UDEN at 0 range 18 .. 19;
Reserved_20_31 at 0 range 20 .. 31;
end record;
subtype CSR1_UDRDY_Field is HAL.UInt2;
-- power control/status register
type CSR1_Register is record
-- Read-only. Wakeup internal flag
WUIF : Boolean := False;
-- Read-only. Standby flag
SBF : Boolean := False;
-- Read-only. PVD output
PVDO : Boolean := False;
-- Read-only. Backup regulator ready
BRR : Boolean := False;
-- unspecified
Reserved_4_8 : HAL.UInt5 := 16#0#;
-- Backup regulator enable
BRE : Boolean := False;
-- unspecified
Reserved_10_13 : HAL.UInt4 := 16#0#;
-- Regulator voltage scaling output selection ready bit
VOSRDY : Boolean := False;
-- unspecified
Reserved_15_15 : HAL.Bit := 16#0#;
-- Over-drive mode ready
ODRDY : Boolean := False;
-- Over-drive mode switching ready
ODSWRDY : Boolean := False;
-- Under-drive ready flag
UDRDY : CSR1_UDRDY_Field := 16#0#;
-- unspecified
Reserved_20_31 : HAL.UInt12 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for CSR1_Register use record
WUIF at 0 range 0 .. 0;
SBF at 0 range 1 .. 1;
PVDO at 0 range 2 .. 2;
BRR at 0 range 3 .. 3;
Reserved_4_8 at 0 range 4 .. 8;
BRE at 0 range 9 .. 9;
Reserved_10_13 at 0 range 10 .. 13;
VOSRDY at 0 range 14 .. 14;
Reserved_15_15 at 0 range 15 .. 15;
ODRDY at 0 range 16 .. 16;
ODSWRDY at 0 range 17 .. 17;
UDRDY at 0 range 18 .. 19;
Reserved_20_31 at 0 range 20 .. 31;
end record;
-- CR2_CWUPF array
type CR2_CWUPF_Field_Array is array (1 .. 6) of Boolean
with Component_Size => 1, Size => 6;
-- Type definition for CR2_CWUPF
type CR2_CWUPF_Field
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
-- CWUPF as a value
Val : HAL.UInt6;
when True =>
-- CWUPF as an array
Arr : CR2_CWUPF_Field_Array;
end case;
end record
with Unchecked_Union, Size => 6;
for CR2_CWUPF_Field use record
Val at 0 range 0 .. 5;
Arr at 0 range 0 .. 5;
end record;
-- CR2_WUPP array
type CR2_WUPP_Field_Array is array (1 .. 6) of Boolean
with Component_Size => 1, Size => 6;
-- Type definition for CR2_WUPP
type CR2_WUPP_Field
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
-- WUPP as a value
Val : HAL.UInt6;
when True =>
-- WUPP as an array
Arr : CR2_WUPP_Field_Array;
end case;
end record
with Unchecked_Union, Size => 6;
for CR2_WUPP_Field use record
Val at 0 range 0 .. 5;
Arr at 0 range 0 .. 5;
end record;
-- power control register
type CR2_Register is record
-- Read-only. Clear Wakeup Pin flag for PA0
CWUPF : CR2_CWUPF_Field := (As_Array => False, Val => 16#0#);
-- unspecified
Reserved_6_7 : HAL.UInt2 := 16#0#;
-- Wakeup pin polarity bit for PA0
WUPP : CR2_WUPP_Field := (As_Array => False, Val => 16#0#);
-- unspecified
Reserved_14_31 : HAL.UInt18 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for CR2_Register use record
CWUPF at 0 range 0 .. 5;
Reserved_6_7 at 0 range 6 .. 7;
WUPP at 0 range 8 .. 13;
Reserved_14_31 at 0 range 14 .. 31;
end record;
-- CSR2_WUPF array
type CSR2_WUPF_Field_Array is array (1 .. 6) of Boolean
with Component_Size => 1, Size => 6;
-- Type definition for CSR2_WUPF
type CSR2_WUPF_Field
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
-- WUPF as a value
Val : HAL.UInt6;
when True =>
-- WUPF as an array
Arr : CSR2_WUPF_Field_Array;
end case;
end record
with Unchecked_Union, Size => 6;
for CSR2_WUPF_Field use record
Val at 0 range 0 .. 5;
Arr at 0 range 0 .. 5;
end record;
-- CSR2_EWUP array
type CSR2_EWUP_Field_Array is array (1 .. 6) of Boolean
with Component_Size => 1, Size => 6;
-- Type definition for CSR2_EWUP
type CSR2_EWUP_Field
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
-- EWUP as a value
Val : HAL.UInt6;
when True =>
-- EWUP as an array
Arr : CSR2_EWUP_Field_Array;
end case;
end record
with Unchecked_Union, Size => 6;
for CSR2_EWUP_Field use record
Val at 0 range 0 .. 5;
Arr at 0 range 0 .. 5;
end record;
-- power control/status register
type CSR2_Register is record
-- Read-only. Wakeup Pin flag for PA0
WUPF : CSR2_WUPF_Field := (As_Array => False, Val => 16#0#);
-- unspecified
Reserved_6_7 : HAL.UInt2 := 16#0#;
-- Enable Wakeup pin for PA0
EWUP : CSR2_EWUP_Field := (As_Array => False, Val => 16#0#);
-- unspecified
Reserved_14_31 : HAL.UInt18 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for CSR2_Register use record
WUPF at 0 range 0 .. 5;
Reserved_6_7 at 0 range 6 .. 7;
EWUP at 0 range 8 .. 13;
Reserved_14_31 at 0 range 14 .. 31;
end record;
-----------------
-- Peripherals --
-----------------
-- Power control
type PWR_Peripheral is record
-- power control register
CR1 : aliased CR1_Register;
-- power control/status register
CSR1 : aliased CSR1_Register;
-- power control register
CR2 : aliased CR2_Register;
-- power control/status register
CSR2 : aliased CSR2_Register;
end record
with Volatile;
for PWR_Peripheral use record
CR1 at 16#0# range 0 .. 31;
CSR1 at 16#4# range 0 .. 31;
CR2 at 16#8# range 0 .. 31;
CSR2 at 16#C# range 0 .. 31;
end record;
-- Power control
PWR_Periph : aliased PWR_Peripheral
with Import, Address => System'To_Address (16#40007000#);
end STM32_SVD.PWR;
|
A : array (1..N) of T := (others => V);
|
--
-- Copyright 2018 The wookey project team <wookey@ssi.gouv.fr>
-- - Ryad Benadjila
-- - Arnauld Michelizza
-- - Mathieu Renard
-- - Philippe Thierry
-- - Philippe Trebuchet
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.
--
--
with soc.exti; use soc.exti;
with soc.nvic;
with soc.syscfg;
with soc.gpio;
with ewok.exported.gpios; use ewok.exported.gpios;
with ewok.exti.handler;
package body ewok.exti
with spark_mode => off
is
procedure init
is
begin
ewok.exti.handler.init;
soc.exti.init;
end init;
procedure enable
(ref : in ewok.exported.gpios.t_gpio_ref)
is
line : soc.exti.t_exti_line_index;
begin
line := soc.exti.t_exti_line_index'val
(soc.gpio.t_gpio_pin_index'pos (ref.pin));
soc.exti.enable (line);
case ref.pin is
when 0 => soc.nvic.enable_irq (soc.nvic.EXTI_Line_0);
when 1 => soc.nvic.enable_irq (soc.nvic.EXTI_Line_1);
when 2 => soc.nvic.enable_irq (soc.nvic.EXTI_Line_2);
when 3 => soc.nvic.enable_irq (soc.nvic.EXTI_Line_3);
when 4 => soc.nvic.enable_irq (soc.nvic.EXTI_Line_4);
when 5 .. 9 => soc.nvic.enable_irq (soc.nvic.EXTI_Line_5_9);
when 10 .. 15 => soc.nvic.enable_irq (soc.nvic.EXTI_Line_10_15);
end case;
end enable;
procedure disable
(ref : in ewok.exported.gpios.t_gpio_ref)
is
line : soc.exti.t_exti_line_index;
begin
line := soc.exti.t_exti_line_index'val
(soc.gpio.t_gpio_pin_index'pos (ref.pin));
soc.exti.disable (line);
end disable;
function is_used
(ref : ewok.exported.gpios.t_gpio_ref)
return boolean
is
line : constant soc.exti.t_exti_line_index :=
soc.exti.t_exti_line_index'val
(soc.gpio.t_gpio_pin_index'pos (ref.pin));
begin
return exti_line_registered (line) or
soc.exti.is_enabled (line);
end is_used;
procedure register
(conf : in ewok.exported.gpios.t_gpio_config_access;
success : out boolean)
is
line : constant soc.exti.t_exti_line_index :=
soc.exti.t_exti_line_index'val
(soc.gpio.t_gpio_pin_index'pos (conf.all.kref.pin));
begin
-- Is EXTI setting required?
if not conf.all.settings.set_exti then
success := true;
return;
end if;
-- Is EXTI line already registered?
if exti_line_registered (line) then
success := false;
return;
end if;
-- If the line is already set, thus it's already used.
-- We return in error.
if soc.exti.is_enabled (line) then
success := false;
return;
end if;
-- Configuring the triggers
case conf.all.exti_trigger is
when GPIO_EXTI_TRIGGER_NONE =>
success := true;
return;
when GPIO_EXTI_TRIGGER_RISE =>
soc.exti.EXTI.RTSR.line(line) := TRIGGER_ENABLED;
when GPIO_EXTI_TRIGGER_FALL =>
soc.exti.EXTI.FTSR.line(line) := TRIGGER_ENABLED;
when GPIO_EXTI_TRIGGER_BOTH =>
soc.exti.EXTI.RTSR.line(line) := TRIGGER_ENABLED;
soc.exti.EXTI.FTSR.line(line) := TRIGGER_ENABLED;
end case;
-- Configuring the SYSCFG register
soc.syscfg.set_exti_port (conf.all.kref.pin, conf.all.kref.port);
exti_line_registered (line) := true;
success := true;
end register;
procedure release
(conf : in ewok.exported.gpios.t_gpio_config_access)
is
line : constant soc.exti.t_exti_line_index :=
soc.exti.t_exti_line_index'val
(soc.gpio.t_gpio_pin_index'pos (conf.all.kref.pin));
begin
if not conf.all.settings.set_exti then
return;
end if;
if not exti_line_registered (line) then
return;
end if;
if not soc.exti.is_enabled (line) then
return;
end if;
if conf.all.exti_trigger = GPIO_EXTI_TRIGGER_NONE then
return;
end if;
soc.exti.disable (line);
exti_line_registered (line) := false;
end release;
end ewok.exti;
|
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE boost_serialization>
<boost_serialization signature="serialization::archive" version="14">
<syndb class_id="0" tracking_level="0" version="0">
<userIPLatency>-1</userIPLatency>
<userIPName></userIPName>
<cdfg class_id="1" tracking_level="1" version="0" object_id="_0">
<name>read_data</name>
<ret_bitwidth>0</ret_bitwidth>
<ports class_id="2" tracking_level="0" version="0">
<count>9</count>
<item_version>0</item_version>
<item class_id="3" tracking_level="1" version="0" object_id="_1">
<Value class_id="4" tracking_level="0" version="0">
<Obj class_id="5" tracking_level="0" version="0">
<type>1</type>
<id>1</id>
<name>input_r</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo class_id="6" tracking_level="0" version="0">
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>input</originalName>
<rtlName></rtlName>
<coreName>RAM</coreName>
</Obj>
<bitwidth>16</bitwidth>
</Value>
<direction>0</direction>
<if_type>1</if_type>
<array_size>64</array_size>
<bit_vecs class_id="7" tracking_level="0" version="0">
<count>0</count>
<item_version>0</item_version>
</bit_vecs>
</item>
<item class_id_reference="3" object_id="_2">
<Value>
<Obj>
<type>1</type>
<id>2</id>
<name>buf_0</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>buf[0]</originalName>
<rtlName></rtlName>
<coreName>RAM</coreName>
</Obj>
<bitwidth>16</bitwidth>
</Value>
<direction>1</direction>
<if_type>1</if_type>
<array_size>8</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>buf_1</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>buf[1]</originalName>
<rtlName></rtlName>
<coreName>RAM</coreName>
</Obj>
<bitwidth>16</bitwidth>
</Value>
<direction>1</direction>
<if_type>1</if_type>
<array_size>8</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>buf_2</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>buf[2]</originalName>
<rtlName></rtlName>
<coreName>RAM</coreName>
</Obj>
<bitwidth>16</bitwidth>
</Value>
<direction>1</direction>
<if_type>1</if_type>
<array_size>8</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>buf_3</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>buf[3]</originalName>
<rtlName></rtlName>
<coreName>RAM</coreName>
</Obj>
<bitwidth>16</bitwidth>
</Value>
<direction>1</direction>
<if_type>1</if_type>
<array_size>8</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>buf_4</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>buf[4]</originalName>
<rtlName></rtlName>
<coreName>RAM</coreName>
</Obj>
<bitwidth>16</bitwidth>
</Value>
<direction>1</direction>
<if_type>1</if_type>
<array_size>8</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>buf_5</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>buf[5]</originalName>
<rtlName></rtlName>
<coreName>RAM</coreName>
</Obj>
<bitwidth>16</bitwidth>
</Value>
<direction>1</direction>
<if_type>1</if_type>
<array_size>8</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>buf_6</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>buf[6]</originalName>
<rtlName></rtlName>
<coreName>RAM</coreName>
</Obj>
<bitwidth>16</bitwidth>
</Value>
<direction>1</direction>
<if_type>1</if_type>
<array_size>8</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>buf_7</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>buf[7]</originalName>
<rtlName></rtlName>
<coreName>RAM</coreName>
</Obj>
<bitwidth>16</bitwidth>
</Value>
<direction>1</direction>
<if_type>1</if_type>
<array_size>8</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>48</count>
<item_version>0</item_version>
<item class_id="9" tracking_level="1" version="0" object_id="_10">
<Value>
<Obj>
<type>0</type>
<id>10</id>
<name></name>
<fileName>dct.c</fileName>
<fileDirectory>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</fileDirectory>
<lineNumber>59</lineNumber>
<contextFuncName>read_data</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item class_id="10" tracking_level="0" version="0">
<first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</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>dct.c</first>
<second>read_data</second>
</first>
<second>59</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>77</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>12</id>
<name>indvar_flatten</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>7</bitwidth>
</Value>
<oprand_edges>
<count>4</count>
<item_version>0</item_version>
<item>79</item>
<item>80</item>
<item>81</item>
<item>82</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>13</id>
<name>r</name>
<fileName>dct.c</fileName>
<fileDirectory>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</fileDirectory>
<lineNumber>62</lineNumber>
<contextFuncName>read_data</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>dct.c</first>
<second>read_data</second>
</first>
<second>62</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>4</bitwidth>
</Value>
<oprand_edges>
<count>4</count>
<item_version>0</item_version>
<item>84</item>
<item>85</item>
<item>86</item>
<item>87</item>
</oprand_edges>
<opcode>phi</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_13">
<Value>
<Obj>
<type>0</type>
<id>14</id>
<name>c</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>c</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>4</bitwidth>
</Value>
<oprand_edges>
<count>4</count>
<item_version>0</item_version>
<item>88</item>
<item>89</item>
<item>90</item>
<item>91</item>
</oprand_edges>
<opcode>phi</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_14">
<Value>
<Obj>
<type>0</type>
<id>15</id>
<name>exitcond_flatten</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>92</item>
<item>94</item>
</oprand_edges>
<opcode>icmp</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_15">
<Value>
<Obj>
<type>0</type>
<id>16</id>
<name>indvar_flatten_next</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>7</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>95</item>
<item>97</item>
</oprand_edges>
<opcode>add</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_16">
<Value>
<Obj>
<type>0</type>
<id>17</id>
<name></name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>98</item>
<item>99</item>
<item>100</item>
</oprand_edges>
<opcode>br</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_17">
<Value>
<Obj>
<type>0</type>
<id>19</id>
<name>r_2</name>
<fileName>dct.c</fileName>
<fileDirectory>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</fileDirectory>
<lineNumber>59</lineNumber>
<contextFuncName>read_data</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>dct.c</first>
<second>read_data</second>
</first>
<second>59</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>r</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>4</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>105</item>
<item>106</item>
</oprand_edges>
<opcode>add</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_18">
<Value>
<Obj>
<type>0</type>
<id>22</id>
<name>exitcond</name>
<fileName>dct.c</fileName>
<fileDirectory>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</fileDirectory>
<lineNumber>61</lineNumber>
<contextFuncName>read_data</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>dct.c</first>
<second>read_data</second>
</first>
<second>61</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>107</item>
<item>109</item>
</oprand_edges>
<opcode>icmp</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_19">
<Value>
<Obj>
<type>0</type>
<id>23</id>
<name>c_mid2</name>
<fileName>dct.c</fileName>
<fileDirectory>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</fileDirectory>
<lineNumber>61</lineNumber>
<contextFuncName>read_data</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>dct.c</first>
<second>read_data</second>
</first>
<second>61</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>4</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>110</item>
<item>111</item>
<item>112</item>
</oprand_edges>
<opcode>select</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_20">
<Value>
<Obj>
<type>0</type>
<id>24</id>
<name>tmp_mid2_v_v</name>
<fileName>dct.c</fileName>
<fileDirectory>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</fileDirectory>
<lineNumber>62</lineNumber>
<contextFuncName>read_data</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>dct.c</first>
<second>read_data</second>
</first>
<second>62</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>4</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>113</item>
<item>114</item>
<item>115</item>
</oprand_edges>
<opcode>select</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_21">
<Value>
<Obj>
<type>0</type>
<id>25</id>
<name>tmp</name>
<fileName>dct.c</fileName>
<fileDirectory>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</fileDirectory>
<lineNumber>62</lineNumber>
<contextFuncName>read_data</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>dct.c</first>
<second>read_data</second>
</first>
<second>62</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>3</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>116</item>
</oprand_edges>
<opcode>trunc</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_22">
<Value>
<Obj>
<type>0</type>
<id>26</id>
<name>tmp_mid2</name>
<fileName>dct.c</fileName>
<fileDirectory>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</fileDirectory>
<lineNumber>62</lineNumber>
<contextFuncName>read_data</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>dct.c</first>
<second>read_data</second>
</first>
<second>62</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>6</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>118</item>
<item>119</item>
<item>121</item>
</oprand_edges>
<opcode>bitconcatenate</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_23">
<Value>
<Obj>
<type>0</type>
<id>27</id>
<name>tmp_7_mid2</name>
<fileName>dct.c</fileName>
<fileDirectory>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</fileDirectory>
<lineNumber>62</lineNumber>
<contextFuncName>read_data</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>dct.c</first>
<second>read_data</second>
</first>
<second>62</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>64</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>122</item>
</oprand_edges>
<opcode>zext</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_24">
<Value>
<Obj>
<type>0</type>
<id>28</id>
<name>c_cast</name>
<fileName>dct.c</fileName>
<fileDirectory>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</fileDirectory>
<lineNumber>61</lineNumber>
<contextFuncName>read_data</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>dct.c</first>
<second>read_data</second>
</first>
<second>61</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>6</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>123</item>
</oprand_edges>
<opcode>zext</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_25">
<Value>
<Obj>
<type>0</type>
<id>32</id>
<name>tmp_9</name>
<fileName>dct.c</fileName>
<fileDirectory>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</fileDirectory>
<lineNumber>62</lineNumber>
<contextFuncName>read_data</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>dct.c</first>
<second>read_data</second>
</first>
<second>62</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>6</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>124</item>
<item>125</item>
</oprand_edges>
<opcode>add</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_26">
<Value>
<Obj>
<type>0</type>
<id>33</id>
<name>tmp_s</name>
<fileName>dct.c</fileName>
<fileDirectory>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</fileDirectory>
<lineNumber>62</lineNumber>
<contextFuncName>read_data</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>dct.c</first>
<second>read_data</second>
</first>
<second>62</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>64</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>126</item>
</oprand_edges>
<opcode>zext</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_27">
<Value>
<Obj>
<type>0</type>
<id>34</id>
<name>input_addr</name>
<fileName>dct.c</fileName>
<fileDirectory>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</fileDirectory>
<lineNumber>62</lineNumber>
<contextFuncName>read_data</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>dct.c</first>
<second>read_data</second>
</first>
<second>62</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>6</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>127</item>
<item>129</item>
<item>130</item>
</oprand_edges>
<opcode>getelementptr</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_28">
<Value>
<Obj>
<type>0</type>
<id>35</id>
<name>input_load</name>
<fileName>dct.c</fileName>
<fileDirectory>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</fileDirectory>
<lineNumber>62</lineNumber>
<contextFuncName>read_data</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>dct.c</first>
<second>read_data</second>
</first>
<second>62</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>16</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>131</item>
</oprand_edges>
<opcode>load</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_29">
<Value>
<Obj>
<type>0</type>
<id>36</id>
<name>tmp_2</name>
<fileName>dct.c</fileName>
<fileDirectory>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</fileDirectory>
<lineNumber>61</lineNumber>
<contextFuncName>read_data</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>dct.c</first>
<second>read_data</second>
</first>
<second>61</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>3</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>132</item>
</oprand_edges>
<opcode>trunc</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_30">
<Value>
<Obj>
<type>0</type>
<id>37</id>
<name></name>
<fileName>dct.c</fileName>
<fileDirectory>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</fileDirectory>
<lineNumber>62</lineNumber>
<contextFuncName>read_data</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>dct.c</first>
<second>read_data</second>
</first>
<second>62</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>16</count>
<item_version>0</item_version>
<item>133</item>
<item>134</item>
<item>135</item>
<item>136</item>
<item>138</item>
<item>139</item>
<item>141</item>
<item>142</item>
<item>144</item>
<item>145</item>
<item>147</item>
<item>148</item>
<item>150</item>
<item>151</item>
<item>153</item>
<item>154</item>
</oprand_edges>
<opcode>switch</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_31">
<Value>
<Obj>
<type>0</type>
<id>39</id>
<name>buf_6_addr</name>
<fileName>dct.c</fileName>
<fileDirectory>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</fileDirectory>
<lineNumber>62</lineNumber>
<contextFuncName>read_data</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>dct.c</first>
<second>read_data</second>
</first>
<second>62</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>3</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>191</item>
<item>192</item>
<item>193</item>
</oprand_edges>
<opcode>getelementptr</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_32">
<Value>
<Obj>
<type>0</type>
<id>40</id>
<name></name>
<fileName>dct.c</fileName>
<fileDirectory>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</fileDirectory>
<lineNumber>62</lineNumber>
<contextFuncName>read_data</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>dct.c</first>
<second>read_data</second>
</first>
<second>62</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>194</item>
<item>195</item>
</oprand_edges>
<opcode>store</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_33">
<Value>
<Obj>
<type>0</type>
<id>41</id>
<name></name>
<fileName>dct.c</fileName>
<fileDirectory>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</fileDirectory>
<lineNumber>62</lineNumber>
<contextFuncName>read_data</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>dct.c</first>
<second>read_data</second>
</first>
<second>62</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>196</item>
</oprand_edges>
<opcode>br</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_34">
<Value>
<Obj>
<type>0</type>
<id>43</id>
<name>buf_5_addr</name>
<fileName>dct.c</fileName>
<fileDirectory>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</fileDirectory>
<lineNumber>62</lineNumber>
<contextFuncName>read_data</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>dct.c</first>
<second>read_data</second>
</first>
<second>62</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>3</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>185</item>
<item>186</item>
<item>187</item>
</oprand_edges>
<opcode>getelementptr</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_35">
<Value>
<Obj>
<type>0</type>
<id>44</id>
<name></name>
<fileName>dct.c</fileName>
<fileDirectory>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</fileDirectory>
<lineNumber>62</lineNumber>
<contextFuncName>read_data</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>dct.c</first>
<second>read_data</second>
</first>
<second>62</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>188</item>
<item>189</item>
</oprand_edges>
<opcode>store</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_36">
<Value>
<Obj>
<type>0</type>
<id>45</id>
<name></name>
<fileName>dct.c</fileName>
<fileDirectory>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</fileDirectory>
<lineNumber>62</lineNumber>
<contextFuncName>read_data</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>dct.c</first>
<second>read_data</second>
</first>
<second>62</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>190</item>
</oprand_edges>
<opcode>br</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_37">
<Value>
<Obj>
<type>0</type>
<id>47</id>
<name>buf_4_addr</name>
<fileName>dct.c</fileName>
<fileDirectory>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</fileDirectory>
<lineNumber>62</lineNumber>
<contextFuncName>read_data</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>dct.c</first>
<second>read_data</second>
</first>
<second>62</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>3</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>179</item>
<item>180</item>
<item>181</item>
</oprand_edges>
<opcode>getelementptr</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_38">
<Value>
<Obj>
<type>0</type>
<id>48</id>
<name></name>
<fileName>dct.c</fileName>
<fileDirectory>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</fileDirectory>
<lineNumber>62</lineNumber>
<contextFuncName>read_data</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>dct.c</first>
<second>read_data</second>
</first>
<second>62</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>182</item>
<item>183</item>
</oprand_edges>
<opcode>store</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_39">
<Value>
<Obj>
<type>0</type>
<id>49</id>
<name></name>
<fileName>dct.c</fileName>
<fileDirectory>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</fileDirectory>
<lineNumber>62</lineNumber>
<contextFuncName>read_data</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>dct.c</first>
<second>read_data</second>
</first>
<second>62</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>184</item>
</oprand_edges>
<opcode>br</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_40">
<Value>
<Obj>
<type>0</type>
<id>51</id>
<name>buf_3_addr</name>
<fileName>dct.c</fileName>
<fileDirectory>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</fileDirectory>
<lineNumber>62</lineNumber>
<contextFuncName>read_data</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>dct.c</first>
<second>read_data</second>
</first>
<second>62</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>3</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>173</item>
<item>174</item>
<item>175</item>
</oprand_edges>
<opcode>getelementptr</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_41">
<Value>
<Obj>
<type>0</type>
<id>52</id>
<name></name>
<fileName>dct.c</fileName>
<fileDirectory>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</fileDirectory>
<lineNumber>62</lineNumber>
<contextFuncName>read_data</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>dct.c</first>
<second>read_data</second>
</first>
<second>62</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>176</item>
<item>177</item>
</oprand_edges>
<opcode>store</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_42">
<Value>
<Obj>
<type>0</type>
<id>53</id>
<name></name>
<fileName>dct.c</fileName>
<fileDirectory>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</fileDirectory>
<lineNumber>62</lineNumber>
<contextFuncName>read_data</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>dct.c</first>
<second>read_data</second>
</first>
<second>62</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>178</item>
</oprand_edges>
<opcode>br</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_43">
<Value>
<Obj>
<type>0</type>
<id>55</id>
<name>buf_2_addr</name>
<fileName>dct.c</fileName>
<fileDirectory>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</fileDirectory>
<lineNumber>62</lineNumber>
<contextFuncName>read_data</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>dct.c</first>
<second>read_data</second>
</first>
<second>62</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>3</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>167</item>
<item>168</item>
<item>169</item>
</oprand_edges>
<opcode>getelementptr</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_44">
<Value>
<Obj>
<type>0</type>
<id>56</id>
<name></name>
<fileName>dct.c</fileName>
<fileDirectory>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</fileDirectory>
<lineNumber>62</lineNumber>
<contextFuncName>read_data</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>dct.c</first>
<second>read_data</second>
</first>
<second>62</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>170</item>
<item>171</item>
</oprand_edges>
<opcode>store</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_45">
<Value>
<Obj>
<type>0</type>
<id>57</id>
<name></name>
<fileName>dct.c</fileName>
<fileDirectory>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</fileDirectory>
<lineNumber>62</lineNumber>
<contextFuncName>read_data</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>dct.c</first>
<second>read_data</second>
</first>
<second>62</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>172</item>
</oprand_edges>
<opcode>br</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_46">
<Value>
<Obj>
<type>0</type>
<id>59</id>
<name>buf_1_addr</name>
<fileName>dct.c</fileName>
<fileDirectory>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</fileDirectory>
<lineNumber>62</lineNumber>
<contextFuncName>read_data</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>dct.c</first>
<second>read_data</second>
</first>
<second>62</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>3</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>161</item>
<item>162</item>
<item>163</item>
</oprand_edges>
<opcode>getelementptr</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_47">
<Value>
<Obj>
<type>0</type>
<id>60</id>
<name></name>
<fileName>dct.c</fileName>
<fileDirectory>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</fileDirectory>
<lineNumber>62</lineNumber>
<contextFuncName>read_data</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>dct.c</first>
<second>read_data</second>
</first>
<second>62</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>164</item>
<item>165</item>
</oprand_edges>
<opcode>store</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_48">
<Value>
<Obj>
<type>0</type>
<id>61</id>
<name></name>
<fileName>dct.c</fileName>
<fileDirectory>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</fileDirectory>
<lineNumber>62</lineNumber>
<contextFuncName>read_data</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>dct.c</first>
<second>read_data</second>
</first>
<second>62</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>166</item>
</oprand_edges>
<opcode>br</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_49">
<Value>
<Obj>
<type>0</type>
<id>63</id>
<name>buf_0_addr</name>
<fileName>dct.c</fileName>
<fileDirectory>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</fileDirectory>
<lineNumber>62</lineNumber>
<contextFuncName>read_data</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>dct.c</first>
<second>read_data</second>
</first>
<second>62</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>3</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>155</item>
<item>156</item>
<item>157</item>
</oprand_edges>
<opcode>getelementptr</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_50">
<Value>
<Obj>
<type>0</type>
<id>64</id>
<name></name>
<fileName>dct.c</fileName>
<fileDirectory>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</fileDirectory>
<lineNumber>62</lineNumber>
<contextFuncName>read_data</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>dct.c</first>
<second>read_data</second>
</first>
<second>62</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>158</item>
<item>159</item>
</oprand_edges>
<opcode>store</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_51">
<Value>
<Obj>
<type>0</type>
<id>65</id>
<name></name>
<fileName>dct.c</fileName>
<fileDirectory>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</fileDirectory>
<lineNumber>62</lineNumber>
<contextFuncName>read_data</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>dct.c</first>
<second>read_data</second>
</first>
<second>62</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>160</item>
</oprand_edges>
<opcode>br</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_52">
<Value>
<Obj>
<type>0</type>
<id>67</id>
<name>buf_7_addr</name>
<fileName>dct.c</fileName>
<fileDirectory>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</fileDirectory>
<lineNumber>62</lineNumber>
<contextFuncName>read_data</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>dct.c</first>
<second>read_data</second>
</first>
<second>62</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>3</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>197</item>
<item>198</item>
<item>199</item>
</oprand_edges>
<opcode>getelementptr</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_53">
<Value>
<Obj>
<type>0</type>
<id>68</id>
<name></name>
<fileName>dct.c</fileName>
<fileDirectory>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</fileDirectory>
<lineNumber>62</lineNumber>
<contextFuncName>read_data</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>dct.c</first>
<second>read_data</second>
</first>
<second>62</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>200</item>
<item>201</item>
</oprand_edges>
<opcode>store</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_54">
<Value>
<Obj>
<type>0</type>
<id>69</id>
<name></name>
<fileName>dct.c</fileName>
<fileDirectory>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</fileDirectory>
<lineNumber>62</lineNumber>
<contextFuncName>read_data</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>dct.c</first>
<second>read_data</second>
</first>
<second>62</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>202</item>
</oprand_edges>
<opcode>br</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_55">
<Value>
<Obj>
<type>0</type>
<id>72</id>
<name>c_2</name>
<fileName>dct.c</fileName>
<fileDirectory>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</fileDirectory>
<lineNumber>61</lineNumber>
<contextFuncName>read_data</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>dct.c</first>
<second>read_data</second>
</first>
<second>61</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>c</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>4</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>101</item>
<item>103</item>
</oprand_edges>
<opcode>add</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_56">
<Value>
<Obj>
<type>0</type>
<id>73</id>
<name></name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>104</item>
</oprand_edges>
<opcode>br</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_57">
<Value>
<Obj>
<type>0</type>
<id>75</id>
<name></name>
<fileName>dct.c</fileName>
<fileDirectory>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</fileDirectory>
<lineNumber>64</lineNumber>
<contextFuncName>read_data</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/lfvelez/Documentos/ISPR/HLS/labsource/labs/lab3</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>dct.c</first>
<second>read_data</second>
</first>
<second>64</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>0</count>
<item_version>0</item_version>
</oprand_edges>
<opcode>ret</opcode>
<m_Display>0</m_Display>
</item>
</nodes>
<consts class_id="15" tracking_level="0" version="0">
<count>14</count>
<item_version>0</item_version>
<item class_id="16" tracking_level="1" version="0" object_id="_58">
<Value>
<Obj>
<type>2</type>
<id>78</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>7</bitwidth>
</Value>
<const_type>0</const_type>
<content>0</content>
</item>
<item class_id_reference="16" object_id="_59">
<Value>
<Obj>
<type>2</type>
<id>83</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>4</bitwidth>
</Value>
<const_type>0</const_type>
<content>0</content>
</item>
<item class_id_reference="16" object_id="_60">
<Value>
<Obj>
<type>2</type>
<id>93</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>7</bitwidth>
</Value>
<const_type>0</const_type>
<content>64</content>
</item>
<item class_id_reference="16" object_id="_61">
<Value>
<Obj>
<type>2</type>
<id>96</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>7</bitwidth>
</Value>
<const_type>0</const_type>
<content>1</content>
</item>
<item class_id_reference="16" object_id="_62">
<Value>
<Obj>
<type>2</type>
<id>102</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>4</bitwidth>
</Value>
<const_type>0</const_type>
<content>1</content>
</item>
<item class_id_reference="16" object_id="_63">
<Value>
<Obj>
<type>2</type>
<id>108</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>4</bitwidth>
</Value>
<const_type>0</const_type>
<content>8</content>
</item>
<item class_id_reference="16" object_id="_64">
<Value>
<Obj>
<type>2</type>
<id>120</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>3</bitwidth>
</Value>
<const_type>0</const_type>
<content>0</content>
</item>
<item class_id_reference="16" object_id="_65">
<Value>
<Obj>
<type>2</type>
<id>128</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>64</bitwidth>
</Value>
<const_type>0</const_type>
<content>0</content>
</item>
<item class_id_reference="16" object_id="_66">
<Value>
<Obj>
<type>2</type>
<id>137</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>3</bitwidth>
</Value>
<const_type>0</const_type>
<content>1</content>
</item>
<item class_id_reference="16" object_id="_67">
<Value>
<Obj>
<type>2</type>
<id>140</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>3</bitwidth>
</Value>
<const_type>0</const_type>
<content>2</content>
</item>
<item class_id_reference="16" object_id="_68">
<Value>
<Obj>
<type>2</type>
<id>143</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>3</bitwidth>
</Value>
<const_type>0</const_type>
<content>3</content>
</item>
<item class_id_reference="16" object_id="_69">
<Value>
<Obj>
<type>2</type>
<id>146</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>3</bitwidth>
</Value>
<const_type>0</const_type>
<content>4</content>
</item>
<item class_id_reference="16" object_id="_70">
<Value>
<Obj>
<type>2</type>
<id>149</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>3</bitwidth>
</Value>
<const_type>0</const_type>
<content>5</content>
</item>
<item class_id_reference="16" object_id="_71">
<Value>
<Obj>
<type>2</type>
<id>152</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>3</bitwidth>
</Value>
<const_type>0</const_type>
<content>6</content>
</item>
</consts>
<blocks class_id="17" tracking_level="0" version="0">
<count>13</count>
<item_version>0</item_version>
<item class_id="18" tracking_level="1" version="0" object_id="_72">
<Obj>
<type>3</type>
<id>11</id>
<name></name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<node_objs>
<count>1</count>
<item_version>0</item_version>
<item>10</item>
</node_objs>
</item>
<item class_id_reference="18" object_id="_73">
<Obj>
<type>3</type>
<id>18</id>
<name></name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<node_objs>
<count>6</count>
<item_version>0</item_version>
<item>12</item>
<item>13</item>
<item>14</item>
<item>15</item>
<item>16</item>
<item>17</item>
</node_objs>
</item>
<item class_id_reference="18" object_id="_74">
<Obj>
<type>3</type>
<id>38</id>
<name>.reset</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>14</count>
<item_version>0</item_version>
<item>19</item>
<item>22</item>
<item>23</item>
<item>24</item>
<item>25</item>
<item>26</item>
<item>27</item>
<item>28</item>
<item>32</item>
<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="_75">
<Obj>
<type>3</type>
<id>42</id>
<name>branch6</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<node_objs>
<count>3</count>
<item_version>0</item_version>
<item>39</item>
<item>40</item>
<item>41</item>
</node_objs>
</item>
<item class_id_reference="18" object_id="_76">
<Obj>
<type>3</type>
<id>46</id>
<name>branch5</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<node_objs>
<count>3</count>
<item_version>0</item_version>
<item>43</item>
<item>44</item>
<item>45</item>
</node_objs>
</item>
<item class_id_reference="18" object_id="_77">
<Obj>
<type>3</type>
<id>50</id>
<name>branch4</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<node_objs>
<count>3</count>
<item_version>0</item_version>
<item>47</item>
<item>48</item>
<item>49</item>
</node_objs>
</item>
<item class_id_reference="18" object_id="_78">
<Obj>
<type>3</type>
<id>54</id>
<name>branch3</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<node_objs>
<count>3</count>
<item_version>0</item_version>
<item>51</item>
<item>52</item>
<item>53</item>
</node_objs>
</item>
<item class_id_reference="18" object_id="_79">
<Obj>
<type>3</type>
<id>58</id>
<name>branch2</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<node_objs>
<count>3</count>
<item_version>0</item_version>
<item>55</item>
<item>56</item>
<item>57</item>
</node_objs>
</item>
<item class_id_reference="18" object_id="_80">
<Obj>
<type>3</type>
<id>62</id>
<name>branch1</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<node_objs>
<count>3</count>
<item_version>0</item_version>
<item>59</item>
<item>60</item>
<item>61</item>
</node_objs>
</item>
<item class_id_reference="18" object_id="_81">
<Obj>
<type>3</type>
<id>66</id>
<name>branch0</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<node_objs>
<count>3</count>
<item_version>0</item_version>
<item>63</item>
<item>64</item>
<item>65</item>
</node_objs>
</item>
<item class_id_reference="18" object_id="_82">
<Obj>
<type>3</type>
<id>70</id>
<name>branch7</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<node_objs>
<count>3</count>
<item_version>0</item_version>
<item>67</item>
<item>68</item>
<item>69</item>
</node_objs>
</item>
<item class_id_reference="18" object_id="_83">
<Obj>
<type>3</type>
<id>74</id>
<name>ifBlock</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<node_objs>
<count>2</count>
<item_version>0</item_version>
<item>72</item>
<item>73</item>
</node_objs>
</item>
<item class_id_reference="18" object_id="_84">
<Obj>
<type>3</type>
<id>76</id>
<name></name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<node_objs>
<count>1</count>
<item_version>0</item_version>
<item>75</item>
</node_objs>
</item>
</blocks>
<edges class_id="19" tracking_level="0" version="0">
<count>130</count>
<item_version>0</item_version>
<item class_id="20" tracking_level="1" version="0" object_id="_85">
<id>77</id>
<edge_type>2</edge_type>
<source_obj>18</source_obj>
<sink_obj>10</sink_obj>
</item>
<item class_id_reference="20" object_id="_86">
<id>79</id>
<edge_type>1</edge_type>
<source_obj>78</source_obj>
<sink_obj>12</sink_obj>
</item>
<item class_id_reference="20" object_id="_87">
<id>80</id>
<edge_type>2</edge_type>
<source_obj>11</source_obj>
<sink_obj>12</sink_obj>
</item>
<item class_id_reference="20" object_id="_88">
<id>81</id>
<edge_type>1</edge_type>
<source_obj>16</source_obj>
<sink_obj>12</sink_obj>
</item>
<item class_id_reference="20" object_id="_89">
<id>82</id>
<edge_type>2</edge_type>
<source_obj>74</source_obj>
<sink_obj>12</sink_obj>
</item>
<item class_id_reference="20" object_id="_90">
<id>84</id>
<edge_type>1</edge_type>
<source_obj>83</source_obj>
<sink_obj>13</sink_obj>
</item>
<item class_id_reference="20" object_id="_91">
<id>85</id>
<edge_type>2</edge_type>
<source_obj>11</source_obj>
<sink_obj>13</sink_obj>
</item>
<item class_id_reference="20" object_id="_92">
<id>86</id>
<edge_type>1</edge_type>
<source_obj>24</source_obj>
<sink_obj>13</sink_obj>
</item>
<item class_id_reference="20" object_id="_93">
<id>87</id>
<edge_type>2</edge_type>
<source_obj>74</source_obj>
<sink_obj>13</sink_obj>
</item>
<item class_id_reference="20" object_id="_94">
<id>88</id>
<edge_type>1</edge_type>
<source_obj>83</source_obj>
<sink_obj>14</sink_obj>
</item>
<item class_id_reference="20" object_id="_95">
<id>89</id>
<edge_type>2</edge_type>
<source_obj>11</source_obj>
<sink_obj>14</sink_obj>
</item>
<item class_id_reference="20" object_id="_96">
<id>90</id>
<edge_type>1</edge_type>
<source_obj>72</source_obj>
<sink_obj>14</sink_obj>
</item>
<item class_id_reference="20" object_id="_97">
<id>91</id>
<edge_type>2</edge_type>
<source_obj>74</source_obj>
<sink_obj>14</sink_obj>
</item>
<item class_id_reference="20" object_id="_98">
<id>92</id>
<edge_type>1</edge_type>
<source_obj>12</source_obj>
<sink_obj>15</sink_obj>
</item>
<item class_id_reference="20" object_id="_99">
<id>94</id>
<edge_type>1</edge_type>
<source_obj>93</source_obj>
<sink_obj>15</sink_obj>
</item>
<item class_id_reference="20" object_id="_100">
<id>95</id>
<edge_type>1</edge_type>
<source_obj>12</source_obj>
<sink_obj>16</sink_obj>
</item>
<item class_id_reference="20" object_id="_101">
<id>97</id>
<edge_type>1</edge_type>
<source_obj>96</source_obj>
<sink_obj>16</sink_obj>
</item>
<item class_id_reference="20" object_id="_102">
<id>98</id>
<edge_type>1</edge_type>
<source_obj>15</source_obj>
<sink_obj>17</sink_obj>
</item>
<item class_id_reference="20" object_id="_103">
<id>99</id>
<edge_type>2</edge_type>
<source_obj>38</source_obj>
<sink_obj>17</sink_obj>
</item>
<item class_id_reference="20" object_id="_104">
<id>100</id>
<edge_type>2</edge_type>
<source_obj>76</source_obj>
<sink_obj>17</sink_obj>
</item>
<item class_id_reference="20" object_id="_105">
<id>101</id>
<edge_type>1</edge_type>
<source_obj>23</source_obj>
<sink_obj>72</sink_obj>
</item>
<item class_id_reference="20" object_id="_106">
<id>103</id>
<edge_type>1</edge_type>
<source_obj>102</source_obj>
<sink_obj>72</sink_obj>
</item>
<item class_id_reference="20" object_id="_107">
<id>104</id>
<edge_type>2</edge_type>
<source_obj>18</source_obj>
<sink_obj>73</sink_obj>
</item>
<item class_id_reference="20" object_id="_108">
<id>105</id>
<edge_type>1</edge_type>
<source_obj>102</source_obj>
<sink_obj>19</sink_obj>
</item>
<item class_id_reference="20" object_id="_109">
<id>106</id>
<edge_type>1</edge_type>
<source_obj>13</source_obj>
<sink_obj>19</sink_obj>
</item>
<item class_id_reference="20" object_id="_110">
<id>107</id>
<edge_type>1</edge_type>
<source_obj>14</source_obj>
<sink_obj>22</sink_obj>
</item>
<item class_id_reference="20" object_id="_111">
<id>109</id>
<edge_type>1</edge_type>
<source_obj>108</source_obj>
<sink_obj>22</sink_obj>
</item>
<item class_id_reference="20" object_id="_112">
<id>110</id>
<edge_type>1</edge_type>
<source_obj>22</source_obj>
<sink_obj>23</sink_obj>
</item>
<item class_id_reference="20" object_id="_113">
<id>111</id>
<edge_type>1</edge_type>
<source_obj>83</source_obj>
<sink_obj>23</sink_obj>
</item>
<item class_id_reference="20" object_id="_114">
<id>112</id>
<edge_type>1</edge_type>
<source_obj>14</source_obj>
<sink_obj>23</sink_obj>
</item>
<item class_id_reference="20" object_id="_115">
<id>113</id>
<edge_type>1</edge_type>
<source_obj>22</source_obj>
<sink_obj>24</sink_obj>
</item>
<item class_id_reference="20" object_id="_116">
<id>114</id>
<edge_type>1</edge_type>
<source_obj>19</source_obj>
<sink_obj>24</sink_obj>
</item>
<item class_id_reference="20" object_id="_117">
<id>115</id>
<edge_type>1</edge_type>
<source_obj>13</source_obj>
<sink_obj>24</sink_obj>
</item>
<item class_id_reference="20" object_id="_118">
<id>116</id>
<edge_type>1</edge_type>
<source_obj>24</source_obj>
<sink_obj>25</sink_obj>
</item>
<item class_id_reference="20" object_id="_119">
<id>119</id>
<edge_type>1</edge_type>
<source_obj>25</source_obj>
<sink_obj>26</sink_obj>
</item>
<item class_id_reference="20" object_id="_120">
<id>121</id>
<edge_type>1</edge_type>
<source_obj>120</source_obj>
<sink_obj>26</sink_obj>
</item>
<item class_id_reference="20" object_id="_121">
<id>122</id>
<edge_type>1</edge_type>
<source_obj>24</source_obj>
<sink_obj>27</sink_obj>
</item>
<item class_id_reference="20" object_id="_122">
<id>123</id>
<edge_type>1</edge_type>
<source_obj>23</source_obj>
<sink_obj>28</sink_obj>
</item>
<item class_id_reference="20" object_id="_123">
<id>124</id>
<edge_type>1</edge_type>
<source_obj>28</source_obj>
<sink_obj>32</sink_obj>
</item>
<item class_id_reference="20" object_id="_124">
<id>125</id>
<edge_type>1</edge_type>
<source_obj>26</source_obj>
<sink_obj>32</sink_obj>
</item>
<item class_id_reference="20" object_id="_125">
<id>126</id>
<edge_type>1</edge_type>
<source_obj>32</source_obj>
<sink_obj>33</sink_obj>
</item>
<item class_id_reference="20" object_id="_126">
<id>127</id>
<edge_type>1</edge_type>
<source_obj>1</source_obj>
<sink_obj>34</sink_obj>
</item>
<item class_id_reference="20" object_id="_127">
<id>129</id>
<edge_type>1</edge_type>
<source_obj>128</source_obj>
<sink_obj>34</sink_obj>
</item>
<item class_id_reference="20" object_id="_128">
<id>130</id>
<edge_type>1</edge_type>
<source_obj>33</source_obj>
<sink_obj>34</sink_obj>
</item>
<item class_id_reference="20" object_id="_129">
<id>131</id>
<edge_type>1</edge_type>
<source_obj>34</source_obj>
<sink_obj>35</sink_obj>
</item>
<item class_id_reference="20" object_id="_130">
<id>132</id>
<edge_type>1</edge_type>
<source_obj>23</source_obj>
<sink_obj>36</sink_obj>
</item>
<item class_id_reference="20" object_id="_131">
<id>133</id>
<edge_type>1</edge_type>
<source_obj>36</source_obj>
<sink_obj>37</sink_obj>
</item>
<item class_id_reference="20" object_id="_132">
<id>134</id>
<edge_type>2</edge_type>
<source_obj>70</source_obj>
<sink_obj>37</sink_obj>
</item>
<item class_id_reference="20" object_id="_133">
<id>135</id>
<edge_type>1</edge_type>
<source_obj>120</source_obj>
<sink_obj>37</sink_obj>
</item>
<item class_id_reference="20" object_id="_134">
<id>136</id>
<edge_type>2</edge_type>
<source_obj>66</source_obj>
<sink_obj>37</sink_obj>
</item>
<item class_id_reference="20" object_id="_135">
<id>138</id>
<edge_type>1</edge_type>
<source_obj>137</source_obj>
<sink_obj>37</sink_obj>
</item>
<item class_id_reference="20" object_id="_136">
<id>139</id>
<edge_type>2</edge_type>
<source_obj>62</source_obj>
<sink_obj>37</sink_obj>
</item>
<item class_id_reference="20" object_id="_137">
<id>141</id>
<edge_type>1</edge_type>
<source_obj>140</source_obj>
<sink_obj>37</sink_obj>
</item>
<item class_id_reference="20" object_id="_138">
<id>142</id>
<edge_type>2</edge_type>
<source_obj>58</source_obj>
<sink_obj>37</sink_obj>
</item>
<item class_id_reference="20" object_id="_139">
<id>144</id>
<edge_type>1</edge_type>
<source_obj>143</source_obj>
<sink_obj>37</sink_obj>
</item>
<item class_id_reference="20" object_id="_140">
<id>145</id>
<edge_type>2</edge_type>
<source_obj>54</source_obj>
<sink_obj>37</sink_obj>
</item>
<item class_id_reference="20" object_id="_141">
<id>147</id>
<edge_type>1</edge_type>
<source_obj>146</source_obj>
<sink_obj>37</sink_obj>
</item>
<item class_id_reference="20" object_id="_142">
<id>148</id>
<edge_type>2</edge_type>
<source_obj>50</source_obj>
<sink_obj>37</sink_obj>
</item>
<item class_id_reference="20" object_id="_143">
<id>150</id>
<edge_type>1</edge_type>
<source_obj>149</source_obj>
<sink_obj>37</sink_obj>
</item>
<item class_id_reference="20" object_id="_144">
<id>151</id>
<edge_type>2</edge_type>
<source_obj>46</source_obj>
<sink_obj>37</sink_obj>
</item>
<item class_id_reference="20" object_id="_145">
<id>153</id>
<edge_type>1</edge_type>
<source_obj>152</source_obj>
<sink_obj>37</sink_obj>
</item>
<item class_id_reference="20" object_id="_146">
<id>154</id>
<edge_type>2</edge_type>
<source_obj>42</source_obj>
<sink_obj>37</sink_obj>
</item>
<item class_id_reference="20" object_id="_147">
<id>155</id>
<edge_type>1</edge_type>
<source_obj>2</source_obj>
<sink_obj>63</sink_obj>
</item>
<item class_id_reference="20" object_id="_148">
<id>156</id>
<edge_type>1</edge_type>
<source_obj>128</source_obj>
<sink_obj>63</sink_obj>
</item>
<item class_id_reference="20" object_id="_149">
<id>157</id>
<edge_type>1</edge_type>
<source_obj>27</source_obj>
<sink_obj>63</sink_obj>
</item>
<item class_id_reference="20" object_id="_150">
<id>158</id>
<edge_type>1</edge_type>
<source_obj>35</source_obj>
<sink_obj>64</sink_obj>
</item>
<item class_id_reference="20" object_id="_151">
<id>159</id>
<edge_type>1</edge_type>
<source_obj>63</source_obj>
<sink_obj>64</sink_obj>
</item>
<item class_id_reference="20" object_id="_152">
<id>160</id>
<edge_type>2</edge_type>
<source_obj>74</source_obj>
<sink_obj>65</sink_obj>
</item>
<item class_id_reference="20" object_id="_153">
<id>161</id>
<edge_type>1</edge_type>
<source_obj>3</source_obj>
<sink_obj>59</sink_obj>
</item>
<item class_id_reference="20" object_id="_154">
<id>162</id>
<edge_type>1</edge_type>
<source_obj>128</source_obj>
<sink_obj>59</sink_obj>
</item>
<item class_id_reference="20" object_id="_155">
<id>163</id>
<edge_type>1</edge_type>
<source_obj>27</source_obj>
<sink_obj>59</sink_obj>
</item>
<item class_id_reference="20" object_id="_156">
<id>164</id>
<edge_type>1</edge_type>
<source_obj>35</source_obj>
<sink_obj>60</sink_obj>
</item>
<item class_id_reference="20" object_id="_157">
<id>165</id>
<edge_type>1</edge_type>
<source_obj>59</source_obj>
<sink_obj>60</sink_obj>
</item>
<item class_id_reference="20" object_id="_158">
<id>166</id>
<edge_type>2</edge_type>
<source_obj>74</source_obj>
<sink_obj>61</sink_obj>
</item>
<item class_id_reference="20" object_id="_159">
<id>167</id>
<edge_type>1</edge_type>
<source_obj>4</source_obj>
<sink_obj>55</sink_obj>
</item>
<item class_id_reference="20" object_id="_160">
<id>168</id>
<edge_type>1</edge_type>
<source_obj>128</source_obj>
<sink_obj>55</sink_obj>
</item>
<item class_id_reference="20" object_id="_161">
<id>169</id>
<edge_type>1</edge_type>
<source_obj>27</source_obj>
<sink_obj>55</sink_obj>
</item>
<item class_id_reference="20" object_id="_162">
<id>170</id>
<edge_type>1</edge_type>
<source_obj>35</source_obj>
<sink_obj>56</sink_obj>
</item>
<item class_id_reference="20" object_id="_163">
<id>171</id>
<edge_type>1</edge_type>
<source_obj>55</source_obj>
<sink_obj>56</sink_obj>
</item>
<item class_id_reference="20" object_id="_164">
<id>172</id>
<edge_type>2</edge_type>
<source_obj>74</source_obj>
<sink_obj>57</sink_obj>
</item>
<item class_id_reference="20" object_id="_165">
<id>173</id>
<edge_type>1</edge_type>
<source_obj>5</source_obj>
<sink_obj>51</sink_obj>
</item>
<item class_id_reference="20" object_id="_166">
<id>174</id>
<edge_type>1</edge_type>
<source_obj>128</source_obj>
<sink_obj>51</sink_obj>
</item>
<item class_id_reference="20" object_id="_167">
<id>175</id>
<edge_type>1</edge_type>
<source_obj>27</source_obj>
<sink_obj>51</sink_obj>
</item>
<item class_id_reference="20" object_id="_168">
<id>176</id>
<edge_type>1</edge_type>
<source_obj>35</source_obj>
<sink_obj>52</sink_obj>
</item>
<item class_id_reference="20" object_id="_169">
<id>177</id>
<edge_type>1</edge_type>
<source_obj>51</source_obj>
<sink_obj>52</sink_obj>
</item>
<item class_id_reference="20" object_id="_170">
<id>178</id>
<edge_type>2</edge_type>
<source_obj>74</source_obj>
<sink_obj>53</sink_obj>
</item>
<item class_id_reference="20" object_id="_171">
<id>179</id>
<edge_type>1</edge_type>
<source_obj>6</source_obj>
<sink_obj>47</sink_obj>
</item>
<item class_id_reference="20" object_id="_172">
<id>180</id>
<edge_type>1</edge_type>
<source_obj>128</source_obj>
<sink_obj>47</sink_obj>
</item>
<item class_id_reference="20" object_id="_173">
<id>181</id>
<edge_type>1</edge_type>
<source_obj>27</source_obj>
<sink_obj>47</sink_obj>
</item>
<item class_id_reference="20" object_id="_174">
<id>182</id>
<edge_type>1</edge_type>
<source_obj>35</source_obj>
<sink_obj>48</sink_obj>
</item>
<item class_id_reference="20" object_id="_175">
<id>183</id>
<edge_type>1</edge_type>
<source_obj>47</source_obj>
<sink_obj>48</sink_obj>
</item>
<item class_id_reference="20" object_id="_176">
<id>184</id>
<edge_type>2</edge_type>
<source_obj>74</source_obj>
<sink_obj>49</sink_obj>
</item>
<item class_id_reference="20" object_id="_177">
<id>185</id>
<edge_type>1</edge_type>
<source_obj>7</source_obj>
<sink_obj>43</sink_obj>
</item>
<item class_id_reference="20" object_id="_178">
<id>186</id>
<edge_type>1</edge_type>
<source_obj>128</source_obj>
<sink_obj>43</sink_obj>
</item>
<item class_id_reference="20" object_id="_179">
<id>187</id>
<edge_type>1</edge_type>
<source_obj>27</source_obj>
<sink_obj>43</sink_obj>
</item>
<item class_id_reference="20" object_id="_180">
<id>188</id>
<edge_type>1</edge_type>
<source_obj>35</source_obj>
<sink_obj>44</sink_obj>
</item>
<item class_id_reference="20" object_id="_181">
<id>189</id>
<edge_type>1</edge_type>
<source_obj>43</source_obj>
<sink_obj>44</sink_obj>
</item>
<item class_id_reference="20" object_id="_182">
<id>190</id>
<edge_type>2</edge_type>
<source_obj>74</source_obj>
<sink_obj>45</sink_obj>
</item>
<item class_id_reference="20" object_id="_183">
<id>191</id>
<edge_type>1</edge_type>
<source_obj>8</source_obj>
<sink_obj>39</sink_obj>
</item>
<item class_id_reference="20" object_id="_184">
<id>192</id>
<edge_type>1</edge_type>
<source_obj>128</source_obj>
<sink_obj>39</sink_obj>
</item>
<item class_id_reference="20" object_id="_185">
<id>193</id>
<edge_type>1</edge_type>
<source_obj>27</source_obj>
<sink_obj>39</sink_obj>
</item>
<item class_id_reference="20" object_id="_186">
<id>194</id>
<edge_type>1</edge_type>
<source_obj>35</source_obj>
<sink_obj>40</sink_obj>
</item>
<item class_id_reference="20" object_id="_187">
<id>195</id>
<edge_type>1</edge_type>
<source_obj>39</source_obj>
<sink_obj>40</sink_obj>
</item>
<item class_id_reference="20" object_id="_188">
<id>196</id>
<edge_type>2</edge_type>
<source_obj>74</source_obj>
<sink_obj>41</sink_obj>
</item>
<item class_id_reference="20" object_id="_189">
<id>197</id>
<edge_type>1</edge_type>
<source_obj>9</source_obj>
<sink_obj>67</sink_obj>
</item>
<item class_id_reference="20" object_id="_190">
<id>198</id>
<edge_type>1</edge_type>
<source_obj>128</source_obj>
<sink_obj>67</sink_obj>
</item>
<item class_id_reference="20" object_id="_191">
<id>199</id>
<edge_type>1</edge_type>
<source_obj>27</source_obj>
<sink_obj>67</sink_obj>
</item>
<item class_id_reference="20" object_id="_192">
<id>200</id>
<edge_type>1</edge_type>
<source_obj>35</source_obj>
<sink_obj>68</sink_obj>
</item>
<item class_id_reference="20" object_id="_193">
<id>201</id>
<edge_type>1</edge_type>
<source_obj>67</source_obj>
<sink_obj>68</sink_obj>
</item>
<item class_id_reference="20" object_id="_194">
<id>202</id>
<edge_type>2</edge_type>
<source_obj>74</source_obj>
<sink_obj>69</sink_obj>
</item>
<item class_id_reference="20" object_id="_195">
<id>234</id>
<edge_type>2</edge_type>
<source_obj>11</source_obj>
<sink_obj>18</sink_obj>
</item>
<item class_id_reference="20" object_id="_196">
<id>235</id>
<edge_type>2</edge_type>
<source_obj>18</source_obj>
<sink_obj>76</sink_obj>
</item>
<item class_id_reference="20" object_id="_197">
<id>236</id>
<edge_type>2</edge_type>
<source_obj>18</source_obj>
<sink_obj>38</sink_obj>
</item>
<item class_id_reference="20" object_id="_198">
<id>237</id>
<edge_type>2</edge_type>
<source_obj>38</source_obj>
<sink_obj>70</sink_obj>
</item>
<item class_id_reference="20" object_id="_199">
<id>238</id>
<edge_type>2</edge_type>
<source_obj>38</source_obj>
<sink_obj>66</sink_obj>
</item>
<item class_id_reference="20" object_id="_200">
<id>239</id>
<edge_type>2</edge_type>
<source_obj>38</source_obj>
<sink_obj>62</sink_obj>
</item>
<item class_id_reference="20" object_id="_201">
<id>240</id>
<edge_type>2</edge_type>
<source_obj>38</source_obj>
<sink_obj>58</sink_obj>
</item>
<item class_id_reference="20" object_id="_202">
<id>241</id>
<edge_type>2</edge_type>
<source_obj>38</source_obj>
<sink_obj>54</sink_obj>
</item>
<item class_id_reference="20" object_id="_203">
<id>242</id>
<edge_type>2</edge_type>
<source_obj>38</source_obj>
<sink_obj>50</sink_obj>
</item>
<item class_id_reference="20" object_id="_204">
<id>243</id>
<edge_type>2</edge_type>
<source_obj>38</source_obj>
<sink_obj>46</sink_obj>
</item>
<item class_id_reference="20" object_id="_205">
<id>244</id>
<edge_type>2</edge_type>
<source_obj>38</source_obj>
<sink_obj>42</sink_obj>
</item>
<item class_id_reference="20" object_id="_206">
<id>245</id>
<edge_type>2</edge_type>
<source_obj>42</source_obj>
<sink_obj>74</sink_obj>
</item>
<item class_id_reference="20" object_id="_207">
<id>246</id>
<edge_type>2</edge_type>
<source_obj>46</source_obj>
<sink_obj>74</sink_obj>
</item>
<item class_id_reference="20" object_id="_208">
<id>247</id>
<edge_type>2</edge_type>
<source_obj>50</source_obj>
<sink_obj>74</sink_obj>
</item>
<item class_id_reference="20" object_id="_209">
<id>248</id>
<edge_type>2</edge_type>
<source_obj>54</source_obj>
<sink_obj>74</sink_obj>
</item>
<item class_id_reference="20" object_id="_210">
<id>249</id>
<edge_type>2</edge_type>
<source_obj>58</source_obj>
<sink_obj>74</sink_obj>
</item>
<item class_id_reference="20" object_id="_211">
<id>250</id>
<edge_type>2</edge_type>
<source_obj>62</source_obj>
<sink_obj>74</sink_obj>
</item>
<item class_id_reference="20" object_id="_212">
<id>251</id>
<edge_type>2</edge_type>
<source_obj>66</source_obj>
<sink_obj>74</sink_obj>
</item>
<item class_id_reference="20" object_id="_213">
<id>252</id>
<edge_type>2</edge_type>
<source_obj>70</source_obj>
<sink_obj>74</sink_obj>
</item>
<item class_id_reference="20" object_id="_214">
<id>253</id>
<edge_type>2</edge_type>
<source_obj>74</source_obj>
<sink_obj>18</sink_obj>
</item>
</edges>
</cdfg>
<cdfg_regions class_id="21" tracking_level="0" version="0">
<count>4</count>
<item_version>0</item_version>
<item class_id="22" tracking_level="1" version="0" object_id="_215">
<mId>1</mId>
<mTag>read_data</mTag>
<mType>0</mType>
<sub_regions>
<count>3</count>
<item_version>0</item_version>
<item>2</item>
<item>3</item>
<item>4</item>
</sub_regions>
<basic_blocks>
<count>0</count>
<item_version>0</item_version>
</basic_blocks>
<mII>-1</mII>
<mDepth>-1</mDepth>
<mMinTripCount>-1</mMinTripCount>
<mMaxTripCount>-1</mMaxTripCount>
<mMinLatency>67</mMinLatency>
<mMaxLatency>-1</mMaxLatency>
<mIsDfPipe>0</mIsDfPipe>
<mDfPipe class_id="-1"></mDfPipe>
</item>
<item class_id_reference="22" object_id="_216">
<mId>2</mId>
<mTag>Entry</mTag>
<mType>0</mType>
<sub_regions>
<count>0</count>
<item_version>0</item_version>
</sub_regions>
<basic_blocks>
<count>1</count>
<item_version>0</item_version>
<item>11</item>
</basic_blocks>
<mII>-1</mII>
<mDepth>-1</mDepth>
<mMinTripCount>-1</mMinTripCount>
<mMaxTripCount>-1</mMaxTripCount>
<mMinLatency>0</mMinLatency>
<mMaxLatency>-1</mMaxLatency>
<mIsDfPipe>0</mIsDfPipe>
<mDfPipe class_id="-1"></mDfPipe>
</item>
<item class_id_reference="22" object_id="_217">
<mId>3</mId>
<mTag>RD_Loop_Row_RD_Loop_Col</mTag>
<mType>1</mType>
<sub_regions>
<count>0</count>
<item_version>0</item_version>
</sub_regions>
<basic_blocks>
<count>11</count>
<item_version>0</item_version>
<item>18</item>
<item>38</item>
<item>42</item>
<item>46</item>
<item>50</item>
<item>54</item>
<item>58</item>
<item>62</item>
<item>66</item>
<item>70</item>
<item>74</item>
</basic_blocks>
<mII>1</mII>
<mDepth>3</mDepth>
<mMinTripCount>64</mMinTripCount>
<mMaxTripCount>64</mMaxTripCount>
<mMinLatency>65</mMinLatency>
<mMaxLatency>-1</mMaxLatency>
<mIsDfPipe>0</mIsDfPipe>
<mDfPipe class_id="-1"></mDfPipe>
</item>
<item class_id_reference="22" object_id="_218">
<mId>4</mId>
<mTag>Return</mTag>
<mType>0</mType>
<sub_regions>
<count>0</count>
<item_version>0</item_version>
</sub_regions>
<basic_blocks>
<count>1</count>
<item_version>0</item_version>
<item>76</item>
</basic_blocks>
<mII>-1</mII>
<mDepth>-1</mDepth>
<mMinTripCount>-1</mMinTripCount>
<mMaxTripCount>-1</mMaxTripCount>
<mMinLatency>0</mMinLatency>
<mMaxLatency>-1</mMaxLatency>
<mIsDfPipe>0</mIsDfPipe>
<mDfPipe class_id="-1"></mDfPipe>
</item>
</cdfg_regions>
<fsm class_id="24" tracking_level="1" version="0" object_id="_219">
<states class_id="25" tracking_level="0" version="0">
<count>5</count>
<item_version>0</item_version>
<item class_id="26" tracking_level="1" version="0" object_id="_220">
<id>1</id>
<operations class_id="27" tracking_level="0" version="0">
<count>1</count>
<item_version>0</item_version>
<item class_id="28" tracking_level="1" version="0" object_id="_221">
<id>10</id>
<stage>1</stage>
<latency>1</latency>
</item>
</operations>
</item>
<item class_id_reference="26" object_id="_222">
<id>2</id>
<operations>
<count>20</count>
<item_version>0</item_version>
<item class_id_reference="28" object_id="_223">
<id>12</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_224">
<id>13</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_225">
<id>14</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_226">
<id>15</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_227">
<id>16</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_228">
<id>17</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_229">
<id>19</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_230">
<id>22</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_231">
<id>23</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_232">
<id>24</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_233">
<id>25</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_234">
<id>36</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_235">
<id>41</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_236">
<id>45</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_237">
<id>49</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_238">
<id>53</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_239">
<id>57</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_240">
<id>61</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_241">
<id>65</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_242">
<id>69</id>
<stage>1</stage>
<latency>1</latency>
</item>
</operations>
</item>
<item class_id_reference="26" object_id="_243">
<id>3</id>
<operations>
<count>8</count>
<item_version>0</item_version>
<item class_id_reference="28" object_id="_244">
<id>26</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_245">
<id>28</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_246">
<id>32</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_247">
<id>33</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_248">
<id>34</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_249">
<id>35</id>
<stage>2</stage>
<latency>2</latency>
</item>
<item class_id_reference="28" object_id="_250">
<id>37</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_251">
<id>72</id>
<stage>1</stage>
<latency>1</latency>
</item>
</operations>
</item>
<item class_id_reference="26" object_id="_252">
<id>4</id>
<operations>
<count>25</count>
<item_version>0</item_version>
<item class_id_reference="28" object_id="_253">
<id>20</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_254">
<id>21</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_255">
<id>27</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_256">
<id>29</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_257">
<id>30</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_258">
<id>31</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_259">
<id>35</id>
<stage>1</stage>
<latency>2</latency>
</item>
<item class_id_reference="28" object_id="_260">
<id>39</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_261">
<id>40</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_262">
<id>43</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_263">
<id>44</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_264">
<id>47</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_265">
<id>48</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_266">
<id>51</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_267">
<id>52</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_268">
<id>55</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_269">
<id>56</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_270">
<id>59</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_271">
<id>60</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_272">
<id>63</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_273">
<id>64</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_274">
<id>67</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_275">
<id>68</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_276">
<id>71</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_277">
<id>73</id>
<stage>1</stage>
<latency>1</latency>
</item>
</operations>
</item>
<item class_id_reference="26" object_id="_278">
<id>5</id>
<operations>
<count>1</count>
<item_version>0</item_version>
<item class_id_reference="28" object_id="_279">
<id>75</id>
<stage>1</stage>
<latency>1</latency>
</item>
</operations>
</item>
</states>
<transitions class_id="29" tracking_level="0" version="0">
<count>5</count>
<item_version>0</item_version>
<item class_id="30" tracking_level="1" version="0" object_id="_280">
<inState>1</inState>
<outState>2</outState>
<condition class_id="31" tracking_level="0" version="0">
<id>85</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="_281">
<inState>3</inState>
<outState>4</outState>
<condition>
<id>111</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="_282">
<inState>4</inState>
<outState>2</outState>
<condition>
<id>112</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="_283">
<inState>2</inState>
<outState>5</outState>
<condition>
<id>110</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>15</first>
<second>0</second>
</first>
<second>0</second>
</item>
</item>
</sop>
</condition>
</item>
<item class_id_reference="30" object_id="_284">
<inState>2</inState>
<outState>3</outState>
<condition>
<id>113</id>
<sop>
<count>1</count>
<item_version>0</item_version>
<item>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>15</first>
<second>0</second>
</first>
<second>1</second>
</item>
</item>
</sop>
</condition>
</item>
</transitions>
</fsm>
<res class_id="-1"></res>
<node_label_latency class_id="37" tracking_level="0" version="0">
<count>48</count>
<item_version>0</item_version>
<item class_id="38" tracking_level="0" version="0">
<first>10</first>
<second class_id="39" tracking_level="0" version="0">
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>12</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>13</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>14</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>15</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>16</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>17</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>19</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>22</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>23</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>24</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>25</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>26</first>
<second>
<first>2</first>
<second>0</second>
</second>
</item>
<item>
<first>27</first>
<second>
<first>3</first>
<second>0</second>
</second>
</item>
<item>
<first>28</first>
<second>
<first>2</first>
<second>0</second>
</second>
</item>
<item>
<first>32</first>
<second>
<first>2</first>
<second>0</second>
</second>
</item>
<item>
<first>33</first>
<second>
<first>2</first>
<second>0</second>
</second>
</item>
<item>
<first>34</first>
<second>
<first>2</first>
<second>0</second>
</second>
</item>
<item>
<first>35</first>
<second>
<first>2</first>
<second>1</second>
</second>
</item>
<item>
<first>36</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>37</first>
<second>
<first>2</first>
<second>0</second>
</second>
</item>
<item>
<first>39</first>
<second>
<first>3</first>
<second>0</second>
</second>
</item>
<item>
<first>40</first>
<second>
<first>3</first>
<second>0</second>
</second>
</item>
<item>
<first>41</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>43</first>
<second>
<first>3</first>
<second>0</second>
</second>
</item>
<item>
<first>44</first>
<second>
<first>3</first>
<second>0</second>
</second>
</item>
<item>
<first>45</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>47</first>
<second>
<first>3</first>
<second>0</second>
</second>
</item>
<item>
<first>48</first>
<second>
<first>3</first>
<second>0</second>
</second>
</item>
<item>
<first>49</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>51</first>
<second>
<first>3</first>
<second>0</second>
</second>
</item>
<item>
<first>52</first>
<second>
<first>3</first>
<second>0</second>
</second>
</item>
<item>
<first>53</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>55</first>
<second>
<first>3</first>
<second>0</second>
</second>
</item>
<item>
<first>56</first>
<second>
<first>3</first>
<second>0</second>
</second>
</item>
<item>
<first>57</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>59</first>
<second>
<first>3</first>
<second>0</second>
</second>
</item>
<item>
<first>60</first>
<second>
<first>3</first>
<second>0</second>
</second>
</item>
<item>
<first>61</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>63</first>
<second>
<first>3</first>
<second>0</second>
</second>
</item>
<item>
<first>64</first>
<second>
<first>3</first>
<second>0</second>
</second>
</item>
<item>
<first>65</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>67</first>
<second>
<first>3</first>
<second>0</second>
</second>
</item>
<item>
<first>68</first>
<second>
<first>3</first>
<second>0</second>
</second>
</item>
<item>
<first>69</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>72</first>
<second>
<first>2</first>
<second>0</second>
</second>
</item>
<item>
<first>73</first>
<second>
<first>3</first>
<second>0</second>
</second>
</item>
<item>
<first>75</first>
<second>
<first>2</first>
<second>0</second>
</second>
</item>
</node_label_latency>
<bblk_ent_exit class_id="40" tracking_level="0" version="0">
<count>13</count>
<item_version>0</item_version>
<item class_id="41" tracking_level="0" version="0">
<first>11</first>
<second class_id="42" tracking_level="0" version="0">
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>18</first>
<second>
<first>1</first>
<second>1</second>
</second>
</item>
<item>
<first>38</first>
<second>
<first>1</first>
<second>3</second>
</second>
</item>
<item>
<first>42</first>
<second>
<first>1</first>
<second>3</second>
</second>
</item>
<item>
<first>46</first>
<second>
<first>1</first>
<second>3</second>
</second>
</item>
<item>
<first>50</first>
<second>
<first>1</first>
<second>3</second>
</second>
</item>
<item>
<first>54</first>
<second>
<first>1</first>
<second>3</second>
</second>
</item>
<item>
<first>58</first>
<second>
<first>1</first>
<second>3</second>
</second>
</item>
<item>
<first>62</first>
<second>
<first>1</first>
<second>3</second>
</second>
</item>
<item>
<first>66</first>
<second>
<first>1</first>
<second>3</second>
</second>
</item>
<item>
<first>70</first>
<second>
<first>1</first>
<second>3</second>
</second>
</item>
<item>
<first>74</first>
<second>
<first>2</first>
<second>3</second>
</second>
</item>
<item>
<first>76</first>
<second>
<first>2</first>
<second>2</second>
</second>
</item>
</bblk_ent_exit>
<regions class_id="43" tracking_level="0" version="0">
<count>1</count>
<item_version>0</item_version>
<item class_id="44" tracking_level="1" version="0" object_id="_285">
<region_name>RD_Loop_Row_RD_Loop_Col</region_name>
<basic_blocks>
<count>11</count>
<item_version>0</item_version>
<item>18</item>
<item>38</item>
<item>42</item>
<item>46</item>
<item>50</item>
<item>54</item>
<item>58</item>
<item>62</item>
<item>66</item>
<item>70</item>
<item>74</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="45" tracking_level="0" version="0">
<count>35</count>
<item_version>0</item_version>
<item class_id="46" tracking_level="0" version="0">
<first>72</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>34</item>
</second>
</item>
<item>
<first>79</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>35</item>
<item>35</item>
</second>
</item>
<item>
<first>84</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>39</item>
</second>
</item>
<item>
<first>91</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>40</item>
</second>
</item>
<item>
<first>97</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>43</item>
</second>
</item>
<item>
<first>104</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>44</item>
</second>
</item>
<item>
<first>110</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>47</item>
</second>
</item>
<item>
<first>117</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>48</item>
</second>
</item>
<item>
<first>123</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>51</item>
</second>
</item>
<item>
<first>130</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>52</item>
</second>
</item>
<item>
<first>136</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>55</item>
</second>
</item>
<item>
<first>143</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>56</item>
</second>
</item>
<item>
<first>149</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>59</item>
</second>
</item>
<item>
<first>156</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>60</item>
</second>
</item>
<item>
<first>162</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>63</item>
</second>
</item>
<item>
<first>169</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>64</item>
</second>
</item>
<item>
<first>175</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>67</item>
</second>
</item>
<item>
<first>182</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>68</item>
</second>
</item>
<item>
<first>192</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>12</item>
</second>
</item>
<item>
<first>203</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>13</item>
</second>
</item>
<item>
<first>214</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>14</item>
</second>
</item>
<item>
<first>221</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>15</item>
</second>
</item>
<item>
<first>227</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>16</item>
</second>
</item>
<item>
<first>233</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>19</item>
</second>
</item>
<item>
<first>239</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>22</item>
</second>
</item>
<item>
<first>245</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>23</item>
</second>
</item>
<item>
<first>253</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>24</item>
</second>
</item>
<item>
<first>261</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>25</item>
</second>
</item>
<item>
<first>265</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>36</item>
</second>
</item>
<item>
<first>269</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>26</item>
</second>
</item>
<item>
<first>276</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>28</item>
</second>
</item>
<item>
<first>279</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>32</item>
</second>
</item>
<item>
<first>285</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>33</item>
</second>
</item>
<item>
<first>290</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>72</item>
</second>
</item>
<item>
<first>295</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>27</item>
</second>
</item>
</dp_fu_nodes>
<dp_fu_nodes_expression class_id="48" tracking_level="0" version="0">
<count>26</count>
<item_version>0</item_version>
<item class_id="49" tracking_level="0" version="0">
<first>buf_0_addr_gep_fu_162</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>63</item>
</second>
</item>
<item>
<first>buf_1_addr_gep_fu_149</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>59</item>
</second>
</item>
<item>
<first>buf_2_addr_gep_fu_136</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>55</item>
</second>
</item>
<item>
<first>buf_3_addr_gep_fu_123</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>51</item>
</second>
</item>
<item>
<first>buf_4_addr_gep_fu_110</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>47</item>
</second>
</item>
<item>
<first>buf_5_addr_gep_fu_97</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>43</item>
</second>
</item>
<item>
<first>buf_6_addr_gep_fu_84</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>39</item>
</second>
</item>
<item>
<first>buf_7_addr_gep_fu_175</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>67</item>
</second>
</item>
<item>
<first>c_2_fu_290</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>72</item>
</second>
</item>
<item>
<first>c_cast_fu_276</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>28</item>
</second>
</item>
<item>
<first>c_mid2_fu_245</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>23</item>
</second>
</item>
<item>
<first>c_phi_fu_214</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>14</item>
</second>
</item>
<item>
<first>exitcond_flatten_fu_221</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>15</item>
</second>
</item>
<item>
<first>exitcond_fu_239</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>22</item>
</second>
</item>
<item>
<first>indvar_flatten_next_fu_227</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>16</item>
</second>
</item>
<item>
<first>indvar_flatten_phi_fu_192</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>12</item>
</second>
</item>
<item>
<first>input_addr_gep_fu_72</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>34</item>
</second>
</item>
<item>
<first>r_2_fu_233</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>19</item>
</second>
</item>
<item>
<first>r_phi_fu_203</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>13</item>
</second>
</item>
<item>
<first>tmp_2_fu_265</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>36</item>
</second>
</item>
<item>
<first>tmp_7_mid2_fu_295</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>27</item>
</second>
</item>
<item>
<first>tmp_9_fu_279</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>32</item>
</second>
</item>
<item>
<first>tmp_fu_261</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>25</item>
</second>
</item>
<item>
<first>tmp_mid2_fu_269</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>26</item>
</second>
</item>
<item>
<first>tmp_mid2_v_v_fu_253</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>24</item>
</second>
</item>
<item>
<first>tmp_s_fu_285</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>33</item>
</second>
</item>
</dp_fu_nodes_expression>
<dp_fu_nodes_module>
<count>0</count>
<item_version>0</item_version>
</dp_fu_nodes_module>
<dp_fu_nodes_io>
<count>0</count>
<item_version>0</item_version>
</dp_fu_nodes_io>
<return_ports>
<count>0</count>
<item_version>0</item_version>
</return_ports>
<dp_mem_port_nodes class_id="50" tracking_level="0" version="0">
<count>9</count>
<item_version>0</item_version>
<item class_id="51" tracking_level="0" version="0">
<first class_id="52" tracking_level="0" version="0">
<first>buf_0</first>
<second>0</second>
</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>64</item>
</second>
</item>
<item>
<first>
<first>buf_1</first>
<second>0</second>
</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>60</item>
</second>
</item>
<item>
<first>
<first>buf_2</first>
<second>0</second>
</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>56</item>
</second>
</item>
<item>
<first>
<first>buf_3</first>
<second>0</second>
</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>52</item>
</second>
</item>
<item>
<first>
<first>buf_4</first>
<second>0</second>
</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>48</item>
</second>
</item>
<item>
<first>
<first>buf_5</first>
<second>0</second>
</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>44</item>
</second>
</item>
<item>
<first>
<first>buf_6</first>
<second>0</second>
</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>40</item>
</second>
</item>
<item>
<first>
<first>buf_7</first>
<second>0</second>
</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>68</item>
</second>
</item>
<item>
<first>
<first>input_r</first>
<second>0</second>
</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>35</item>
<item>35</item>
</second>
</item>
</dp_mem_port_nodes>
<dp_reg_nodes>
<count>11</count>
<item_version>0</item_version>
<item>
<first>188</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>12</item>
</second>
</item>
<item>
<first>199</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>13</item>
</second>
</item>
<item>
<first>210</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>14</item>
</second>
</item>
<item>
<first>306</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>15</item>
</second>
</item>
<item>
<first>310</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>16</item>
</second>
</item>
<item>
<first>315</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>23</item>
</second>
</item>
<item>
<first>321</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>24</item>
</second>
</item>
<item>
<first>327</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>25</item>
</second>
</item>
<item>
<first>332</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>36</item>
</second>
</item>
<item>
<first>336</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>34</item>
</second>
</item>
<item>
<first>341</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>72</item>
</second>
</item>
</dp_reg_nodes>
<dp_regname_nodes>
<count>11</count>
<item_version>0</item_version>
<item>
<first>c_2_reg_341</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>72</item>
</second>
</item>
<item>
<first>c_mid2_reg_315</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>23</item>
</second>
</item>
<item>
<first>c_reg_210</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>14</item>
</second>
</item>
<item>
<first>exitcond_flatten_reg_306</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>15</item>
</second>
</item>
<item>
<first>indvar_flatten_next_reg_310</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>16</item>
</second>
</item>
<item>
<first>indvar_flatten_reg_188</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>12</item>
</second>
</item>
<item>
<first>input_addr_reg_336</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>34</item>
</second>
</item>
<item>
<first>r_reg_199</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>13</item>
</second>
</item>
<item>
<first>tmp_2_reg_332</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>36</item>
</second>
</item>
<item>
<first>tmp_mid2_v_v_reg_321</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>24</item>
</second>
</item>
<item>
<first>tmp_reg_327</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>25</item>
</second>
</item>
</dp_regname_nodes>
<dp_reg_phi>
<count>3</count>
<item_version>0</item_version>
<item>
<first>188</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>12</item>
</second>
</item>
<item>
<first>199</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>13</item>
</second>
</item>
<item>
<first>210</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>14</item>
</second>
</item>
</dp_reg_phi>
<dp_regname_phi>
<count>3</count>
<item_version>0</item_version>
<item>
<first>c_reg_210</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>14</item>
</second>
</item>
<item>
<first>indvar_flatten_reg_188</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>12</item>
</second>
</item>
<item>
<first>r_reg_199</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>13</item>
</second>
</item>
</dp_regname_phi>
<dp_port_io_nodes class_id="53" tracking_level="0" version="0">
<count>9</count>
<item_version>0</item_version>
<item class_id="54" tracking_level="0" version="0">
<first>buf_0(p0)</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>store</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>64</item>
</second>
</item>
</second>
</item>
<item>
<first>buf_1(p0)</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>store</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>60</item>
</second>
</item>
</second>
</item>
<item>
<first>buf_2(p0)</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>store</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>56</item>
</second>
</item>
</second>
</item>
<item>
<first>buf_3(p0)</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>store</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>52</item>
</second>
</item>
</second>
</item>
<item>
<first>buf_4(p0)</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>store</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>48</item>
</second>
</item>
</second>
</item>
<item>
<first>buf_5(p0)</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>store</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>44</item>
</second>
</item>
</second>
</item>
<item>
<first>buf_6(p0)</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>store</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>40</item>
</second>
</item>
</second>
</item>
<item>
<first>buf_7(p0)</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>store</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>68</item>
</second>
</item>
</second>
</item>
<item>
<first>input_r(p0)</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>load</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>35</item>
<item>35</item>
</second>
</item>
</second>
</item>
</dp_port_io_nodes>
<port2core class_id="55" tracking_level="0" version="0">
<count>9</count>
<item_version>0</item_version>
<item class_id="56" tracking_level="0" version="0">
<first>1</first>
<second>RAM</second>
</item>
<item>
<first>2</first>
<second>RAM</second>
</item>
<item>
<first>3</first>
<second>RAM</second>
</item>
<item>
<first>4</first>
<second>RAM</second>
</item>
<item>
<first>5</first>
<second>RAM</second>
</item>
<item>
<first>6</first>
<second>RAM</second>
</item>
<item>
<first>7</first>
<second>RAM</second>
</item>
<item>
<first>8</first>
<second>RAM</second>
</item>
<item>
<first>9</first>
<second>RAM</second>
</item>
</port2core>
<node2core>
<count>0</count>
<item_version>0</item_version>
</node2core>
</syndb>
</boost_serialization>
|
--PRÁCTICA 3: CÉSAR BORAO MORATINOS (Chat_Messages.adb)
with Ada.Text_IO;
with Lower_Layer_UDP;
with Ada.Strings.Unbounded;
package body Chat_Messages is
package ATI renames Ada.Text_IO;
use Ada.Strings.Unbounded;
procedure Init_Message (Server_EP: LLU.End_Point_Type;
Client_EP_Receive: LLU.End_Point_Type;
Client_EP_Handler: LLU.End_Point_Type;
Nick: ASU.Unbounded_String;
O_Buffer: Access LLU.Buffer_Type) is
begin
Message_Type'Output(O_Buffer, Init);
LLU.End_Point_Type'Output(O_Buffer, Client_EP_Receive);
LLU.End_Point_Type'Output(O_Buffer, Client_EP_Handler);
ASU.Unbounded_String'Output(O_Buffer, Nick);
LLU.Send(Server_EP, O_Buffer);
LLU.Reset(O_Buffer.all);
end Init_Message;
procedure Welcome_Message (Client_EP_Handler: LLU.End_Point_Type;
Accepted: Boolean;
O_Buffer: Access LLU.Buffer_Type) is
begin
Message_Type'Output(O_Buffer, Welcome);
Boolean'Output(O_Buffer, Accepted);
LLU.Send (Client_EP_Handler, O_Buffer);
LLU.Reset (O_Buffer.all);
end Welcome_Message;
procedure Server_Message (Client_EP_Handler: LLU.End_Point_Type;
Nick: ASU.Unbounded_String;
Comment: ASU.Unbounded_String;
O_Buffer: Access LLU.Buffer_Type) is
begin
Message_Type'Output (O_Buffer,Server);
ASU.Unbounded_String'Output (O_Buffer,Nick);
ASU.Unbounded_String'Output (O_Buffer,Comment);
LLU.Send(Client_EP_Handler, O_Buffer);
LLU.Reset (O_Buffer.all);
end Server_Message;
procedure Writer_Message (Server_EP: LLU.End_Point_Type;
Client_EP_Handler: LLU.End_Point_Type;
Nick: ASU.Unbounded_String;
Comment: ASU.Unbounded_String;
O_Buffer: Access LLU.Buffer_Type) is
begin
Message_Type'Output(O_Buffer, Writer);
LLU.End_Point_Type'Output(O_Buffer, Client_EP_Handler);
ASU.Unbounded_String'Output(O_Buffer, Nick);
ASU.Unbounded_String'Output(O_Buffer, Comment);
LLU.Send(Server_EP, O_Buffer);
LLU.Reset(O_Buffer.all);
end Writer_Message;
procedure Logout_Message (Server_EP: LLU.End_Point_Type;
Client_EP_Handler: LLU.End_Point_Type;
Nick: ASU.Unbounded_String;
O_Buffer: Access LLU.Buffer_Type) is
begin
Message_Type'Output(O_Buffer, Logout);
LLU.End_Point_Type'Output(O_Buffer, Client_EP_Handler);
ASU.Unbounded_String'Output(O_Buffer, Nick);
LLU.Send(Server_EP, O_Buffer);
LLU.Reset(O_Buffer.all);
end Logout_Message;
end Chat_Messages;
|
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- SQL Database Access --
-- --
-- Runtime Library Component --
-- --
------------------------------------------------------------------------------
-- --
-- Copyright © 2011, Vadim Godunko <vgodunko@gmail.com> --
-- All rights reserved. --
-- --
-- Redistribution and use in source and binary forms, with or without --
-- modification, are permitted provided that the following conditions --
-- are met: --
-- --
-- * Redistributions of source code must retain the above copyright --
-- notice, this list of conditions and the following disclaimer. --
-- --
-- * Redistributions in binary form must reproduce the above copyright --
-- notice, this list of conditions and the following disclaimer in the --
-- documentation and/or other materials provided with the distribution. --
-- --
-- * Neither the name of the Vadim Godunko, IE nor the names of its --
-- contributors may be used to endorse or promote products derived from --
-- this software without specific prior written permission. --
-- --
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS --
-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT --
-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR --
-- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT --
-- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, --
-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED --
-- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR --
-- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF --
-- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING --
-- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS --
-- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --
-- --
------------------------------------------------------------------------------
-- $Revision$ $Date$
------------------------------------------------------------------------------
package body Matreshka.Internals.SQL_Parameter_Sets is
-----------
-- Alias --
-----------
procedure Alias
(Self : in out Parameter_Set;
Name : League.Strings.Universal_String) is
begin
raise Program_Error;
end Alias;
------------
-- Append --
------------
procedure Append
(Self : in out Parameter_Set;
Name : League.Strings.Universal_String)
is
Value : League.Holders.Holder;
begin
Self.Names.Insert (Integer (Self.Names.Length) + 1, Name);
Self.Values.Insert (Name, Value);
end Append;
-----------
-- Clear --
-----------
procedure Clear (Self : in out Parameter_Set) is
begin
null;
end Clear;
-------------------
-- Has_Parameter --
-------------------
function Has_Parameter
(Self : Parameter_Set;
Name : League.Strings.Universal_String) return Boolean is
begin
return Self.Values.Contains (Name);
end Has_Parameter;
----------
-- Hash --
----------
function Hash (Item : Positive) return Ada.Containers.Hash_Type is
begin
return Ada.Containers.Hash_Type (Item);
end Hash;
-----------
-- Index --
-----------
function Index
(Self : Parameter_Set;
Name : League.Strings.Universal_String) return Integer
is
use type League.Strings.Universal_String;
Position : Integer_Maps.Cursor := Self.Names.First;
begin
while Integer_Maps.Has_Element (Position) loop
if Integer_Maps.Element (Position) = Name then
return Integer_Maps.Key (Position);
end if;
Integer_Maps.Next (Position);
end loop;
raise Program_Error;
end Index;
---------------------
-- Number_Of_Named --
---------------------
function Number_Of_Named (Self : Parameter_Set) return Natural is
begin
return Natural (Self.Values.Length);
end Number_Of_Named;
--------------------------
-- Number_Of_Positional --
--------------------------
function Number_Of_Positional (Self : Parameter_Set) return Natural is
begin
return Natural (Self.Names.Length);
end Number_Of_Positional;
---------------
-- Set_Value --
---------------
procedure Set_Value
(Self : in out Parameter_Set;
Name : League.Strings.Universal_String;
Value : League.Holders.Holder) is
begin
if Self.Values.Contains (Name) then
Self.Values.Replace (Name, Value);
end if;
end Set_Value;
-----------
-- Value --
-----------
function Value
(Self : Parameter_Set; Index : Positive) return League.Holders.Holder is
begin
return Self.Values.Element (Self.Names.Element (Index));
end Value;
end Matreshka.Internals.SQL_Parameter_Sets;
|
-- CZ1101A.ADA
--
-- Grant of Unlimited Rights
--
-- Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687,
-- F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained
-- unlimited rights in the software and documentation contained herein.
-- Unlimited rights are defined in DFAR 252.227-7013(a)(19). By making
-- this public release, the Government intends to confer upon all
-- recipients unlimited rights equal to those held by the Government.
-- These rights include rights to use, duplicate, release or disclose the
-- released technical data and computer software in whole or in part, in
-- any manner and for any purpose whatsoever, and to have or permit others
-- to do so.
--
-- DISCLAIMER
--
-- ALL MATERIALS OR INFORMATION HEREIN RELEASED, MADE AVAILABLE OR
-- DISCLOSED ARE AS IS. THE GOVERNMENT MAKES NO EXPRESS OR IMPLIED
-- WARRANTY AS TO ANY MATTER WHATSOEVER, INCLUDING THE CONDITIONS OF THE
-- SOFTWARE, DOCUMENTATION OR OTHER INFORMATION RELEASED, MADE AVAILABLE
-- OR DISCLOSED, OR THE OWNERSHIP, MERCHANTABILITY, OR FITNESS FOR A
-- PARTICULAR PURPOSE OF SAID MATERIAL.
--*
--
-- OBJECTIVE:
-- CHECK THAT THE REPORT ROUTINES OF THE REPORT PACKAGE WORK
-- CORRECTLY.
--
-- PASS/FAIL CRITERIA:
-- THIS TEST PASSES IF THE OUTPUT MATCHES THAT SUPPLIED IN THE
-- APPLICABLE VERSION OF THE ACVC USERS' GUIDE. THE EXPECTED
-- TEST RESULT IS "TENTATIVELY PASSED."
-- HISTORY:
-- JRK 08/07/81 CREATED ORIGINAL TEST.
-- JRK 10/27/82
-- JRK 06/01/84
-- JET 01/13/88 ADDED TESTS OF SPECIAL_ACTION AND UPDATED HEADER.
-- PWB 06/24/88 CORRECTED LENGTH OF ONE OUTPUT STRING AND ADDED
-- PASS/FAIL CRITERIA.
-- BCB 05/17/90 CORRECTED LENGTH OF 'MAX_LEN LONG' OUTPUT STRING.
-- ADDED CODE TO CREATE REPFILE.
-- LDC 05/17/90 REMOVED DIRECT_IO REFERENCES.
-- PWN 12/03/94 REMOVED ADA 9X INCOMPATIBILITIES.
WITH REPORT;
USE REPORT;
PROCEDURE CZ1101A IS
DATE_AND_TIME : STRING(1..17);
DATE, TIME : STRING(1..7);
BEGIN
COMMENT ("(CZ1101A) CHECK REPORT ROUTINES");
COMMENT (" INITIAL VALUES SHOULD BE 'NO_NAME' AND 'FAILED'");
RESULT;
TEST ("PASS_TEST", "CHECKING 'TEST' AND 'RESULT' FOR 'PASSED'");
COMMENT ("THIS LINE IS EXACTLY 'MAX_LEN' LONG. " &
"...5...60....5...70");
COMMENT ("THIS COMMENT HAS A WORD THAT SPANS THE FOLD " &
"POINT. THIS COMMENT FITS EXACTLY ON TWO LINES. " &
"..5...60....5...70");
COMMENT ("THIS_COMMENT_IS_ONE_VERY_LONG_WORD_AND_SO_" &
"IT_SHOULD_BE_SPLIT_AT_THE_FOLD_POINT");
RESULT;
COMMENT ("CHECK THAT 'RESULT' RESETS VALUES TO 'NO_NAME' " &
"AND 'FAILED'");
RESULT;
TEST ("FAIL_TEST", "CHECKING 'FAILED' AND 'RESULT' FOR 'FAILED'");
FAILED ("'RESULT' SHOULD NOW BE 'FAILED'");
RESULT;
TEST ("NA_TEST", "CHECKING 'NOT-APPLICABLE'");
NOT_APPLICABLE ("'RESULT' SHOULD NOW BE 'NOT-APPLICABLE'");
RESULT;
TEST ("FAIL_NA_TEST", "CHECKING 'NOT_APPLICABLE', 'FAILED', " &
"'NOT_APPLICABLE'");
NOT_APPLICABLE ("'RESULT' BECOMES 'NOT-APPLICABLE'");
FAILED ("'RESULT' BECOMES 'FAILED'");
NOT_APPLICABLE ("CALLING 'NOT_APPLICABLE' DOESN'T CHANGE " &
"'RESULT'");
RESULT;
TEST ("SPEC_NA_TEST", "CHECKING 'SPEC_ACT', 'NOT_APPLICABLE', " &
"'SPEC_ACT'");
SPECIAL_ACTION("'RESULT' BECOMES 'TENTATIVELY PASSED'");
NOT_APPLICABLE ("'RESULT' BECOMES 'NOT APPLICABLE'");
SPECIAL_ACTION("CALLING 'SPECIAL_ACTION' DOESN'T CHANGE 'RESULT'");
RESULT;
TEST ("SPEC_FAIL_TEST", "CHECKING 'SPEC_ACT', 'FAILED', " &
"'SPEC_ACT'");
SPECIAL_ACTION("'RESULT' BECOMES 'TENTATIVELY PASSED'");
FAILED ("'RESULT' BECOMES 'FAILED'");
SPECIAL_ACTION("CALLING 'SPECIAL_ACTION' DOESN'T CHANGE 'RESULT'");
RESULT;
TEST ("CZ1101A", "CHECKING 'SPECIAL_ACTION' ALONE");
SPECIAL_ACTION("'RESULT' BECOMES 'TENTATIVELY PASSED'");
RESULT;
END CZ1101A;
|
-----------------------------------------------------------------------
-- mat-expressions-parser_io -- Input IO for Lex parser
-- Copyright (C) 2014, 2015 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.
-----------------------------------------------------------------------
with MAT.Expressions.Lexer_dfa;
with Ada.Text_IO;
package MAT.Expressions.Parser_IO is
use MAT.Expressions.Lexer_dfa;
user_output_file : Ada.Text_IO.File_Type;
NULL_IN_INPUT : exception;
AFLEX_INTERNAL_ERROR : exception;
UNEXPECTED_LAST_MATCH : exception;
PUSHBACK_OVERFLOW : exception;
AFLEX_SCANNER_JAMMED : exception;
type eob_action_type is (EOB_ACT_RESTART_SCAN,
EOB_ACT_END_OF_FILE,
EOB_ACT_LAST_MATCH);
YY_END_OF_BUFFER_CHAR : constant Character := ASCII.NUL;
-- number of characters read into yy_ch_buf
yy_n_chars : Integer;
-- true when we've seen an EOF for the current input file
yy_eof_has_been_seen : Boolean;
procedure Set_Input (Content : in String);
procedure YY_INPUT (Buf : out MAT.Expressions.Lexer_dfa.unbounded_character_array;
Result : out Integer;
Max_Size : in Integer);
function yy_get_next_buffer return eob_action_type;
function Input_Line return Ada.Text_IO.Count;
function yywrap return Boolean;
procedure Open_Input (Fname : in String);
end MAT.Expressions.Parser_IO;
|
-------------------------------------------------------------------------------
-- --
-- 0MQ Ada-binding --
-- --
-- Z M Q . P O L L S E T S --
-- --
-- S p e c --
-- --
-- Copyright (C) 2020-2030, per.s.sandberg@bahnhof.se --
-- --
-- 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. --
-------------------------------------------------------------------------------
package body ZMQ.Pollsets is
------------
-- append --
------------
procedure Append (This : in out Pollset; Item : Pollitem'Class) is
pragma Unreferenced (This, Item);
begin
-- Generated stub: replace with real body!
pragma Compile_Time_Warning (Standard.True, "append unimplemented");
raise Program_Error with "Unimplemented procedure append";
end Append;
------------
-- remove --
------------
procedure Remove (This : in out Pollset; Item : Pollitem'Class) is
pragma Unreferenced (This, Item);
begin
-- Generated stub: replace with real body!
pragma Compile_Time_Warning (Standard.True, "remove unimplemented");
raise Program_Error with "Unimplemented procedure remove";
end Remove;
----------
-- poll --
----------
procedure Poll
(This : in out Pollset;
Timeout : Duration)
is
pragma Unreferenced (This, Timeout);
begin
-- Generated stub: replace with real body!
pragma Compile_Time_Warning (Standard.True, "poll unimplemented");
raise Program_Error with "Unimplemented procedure poll";
end Poll;
end ZMQ.Pollsets;
|
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- U R E A L P --
-- --
-- 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. --
-- --
------------------------------------------------------------------------------
-- Support for universal real arithmetic
-- WARNING: There is a C version of this package. Any changes to this
-- source file must be properly reflected in the C header file urealp.h
with Types; use Types;
with Uintp; use Uintp;
package Urealp is
---------------------------------------
-- Representation of Universal Reals --
---------------------------------------
-- A universal real value is represented by a single value (which is
-- an index into an internal table). These values are not hashed, so
-- the equality operator should not be used on Ureal values (instead
-- use the UR_Eq function).
-- A Ureal value represents an arbitrary precision universal real value,
-- stored internally using four components:
-- the numerator (Uint, always non-negative)
-- the denominator (Uint, always non-zero, always positive if base = 0)
-- a real base (Nat, either zero, or in the range 2 .. 16)
-- a sign flag (Boolean), set if negative
-- Negative numbers are represented by the sign flag being True.
-- If the base is zero, then the absolute value of the Ureal is simply
-- numerator/denominator, where denominator is positive. If the base is
-- non-zero, then the absolute value is numerator / (base ** denominator).
-- In that case, since base is positive, (base ** denominator) is also
-- positive, even when denominator is negative or null.
-- A normalized Ureal value has base = 0, and numerator/denominator
-- reduced to lowest terms, with zero itself being represented as 0/1.
-- This is a canonical format, so that for normalized Ureal values it
-- is the case that two equal values always have the same denominator
-- and numerator values.
-- Note: a value of minus zero is legitimate, and the operations in
-- Urealp preserve the handling of signed zeroes in accordance with
-- the rules of IEEE P754 ("IEEE floating point").
------------------------------
-- Types for Urealp Package --
------------------------------
type Ureal is private;
-- Type used for representation of universal reals
No_Ureal : constant Ureal;
-- Constant used to indicate missing or unset Ureal value
---------------------
-- Ureal Constants --
---------------------
function Ureal_0 return Ureal;
-- Returns value 0.0
function Ureal_M_0 return Ureal;
-- Returns value -0.0
function Ureal_Tenth return Ureal;
-- Returns value 0.1
function Ureal_Half return Ureal;
-- Returns value 0.5
function Ureal_1 return Ureal;
-- Returns value 1.0
function Ureal_2 return Ureal;
-- Returns value 2.0
function Ureal_10 return Ureal;
-- Returns value 10.0
function Ureal_100 return Ureal;
-- Returns value 100.0
function Ureal_2_80 return Ureal;
-- Returns value 2.0 ** 80
function Ureal_2_M_80 return Ureal;
-- Returns value 2.0 ** (-80)
function Ureal_2_128 return Ureal;
-- Returns value 2.0 ** 128
function Ureal_2_M_128 return Ureal;
-- Returns value 2.0 ** (-128)
function Ureal_10_36 return Ureal;
-- Returns value 10.0 ** 36
function Ureal_M_10_36 return Ureal;
-- Returns value -10.0 ** 36
-----------------
-- Subprograms --
-----------------
procedure Initialize;
-- Initialize Ureal tables. Note that there is no Lock routine in this
-- unit. These tables are among the few tables that can be expanded
-- during Gigi processing.
function Rbase (Real : Ureal) return Nat;
-- Return the base of the universal real
function Denominator (Real : Ureal) return Uint;
-- Return the denominator of the universal real
function Numerator (Real : Ureal) return Uint;
-- Return the numerator of the universal real
function Norm_Den (Real : Ureal) return Uint;
-- Return the denominator of the universal real after a normalization
function Norm_Num (Real : Ureal) return Uint;
-- Return the numerator of the universal real after a normalization
function UR_From_Uint (UI : Uint) return Ureal;
-- Returns real corresponding to universal integer value
function UR_To_Uint (Real : Ureal) return Uint;
-- Return integer value obtained by accurate rounding of real value.
-- The rounding of values half way between two integers is away from
-- zero, as required by normal Ada 95 rounding semantics.
function UR_Trunc (Real : Ureal) return Uint;
-- Return integer value obtained by a truncation of real towards zero
function UR_Ceiling (Real : Ureal) return Uint;
-- Return value of smallest integer not less than the given value
function UR_Floor (Real : Ureal) return Uint;
-- Return value of smallest integer not greater than the given value
-- Conversion table for above four functions
-- Input To_Uint Trunc Ceiling Floor
-- 1.0 1 1 1 1
-- 1.2 1 1 2 1
-- 1.5 2 1 2 1
-- 1.7 2 1 2 1
-- 2.0 2 2 2 2
-- -1.0 -1 -1 -1 -1
-- -1.2 -1 -1 -1 -2
-- -1.5 -2 -1 -1 -2
-- -1.7 -2 -1 -1 -2
-- -2.0 -2 -2 -2 -2
function UR_From_Components
(Num : Uint;
Den : Uint;
Rbase : Nat := 0;
Negative : Boolean := False)
return Ureal;
-- Builds real value from given numerator, denominator and base. The
-- value is negative if Negative is set to true, and otherwise is
-- non-negative.
function UR_Add (Left : Ureal; Right : Ureal) return Ureal;
function UR_Add (Left : Ureal; Right : Uint) return Ureal;
function UR_Add (Left : Uint; Right : Ureal) return Ureal;
-- Returns real sum of operands
function UR_Div (Left : Ureal; Right : Ureal) return Ureal;
function UR_Div (Left : Uint; Right : Ureal) return Ureal;
function UR_Div (Left : Ureal; Right : Uint) return Ureal;
-- Returns real quotient of operands. Fatal error if Right is zero
function UR_Mul (Left : Ureal; Right : Ureal) return Ureal;
function UR_Mul (Left : Uint; Right : Ureal) return Ureal;
function UR_Mul (Left : Ureal; Right : Uint) return Ureal;
-- Returns real product of operands
function UR_Sub (Left : Ureal; Right : Ureal) return Ureal;
function UR_Sub (Left : Uint; Right : Ureal) return Ureal;
function UR_Sub (Left : Ureal; Right : Uint) return Ureal;
-- Returns real difference of operands
function UR_Exponentiate (Real : Ureal; N : Uint) return Ureal;
-- Returns result of raising Ureal to Uint power.
-- Fatal error if Left is 0 and Right is negative.
function UR_Abs (Real : Ureal) return Ureal;
-- Returns abs function of real
function UR_Negate (Real : Ureal) return Ureal;
-- Returns negative of real
function UR_Eq (Left, Right : Ureal) return Boolean;
-- Compares reals for equality
function UR_Max (Left, Right : Ureal) return Ureal;
-- Returns the maximum of two reals
function UR_Min (Left, Right : Ureal) return Ureal;
-- Returns the minimum of two reals
function UR_Ne (Left, Right : Ureal) return Boolean;
-- Compares reals for inequality
function UR_Lt (Left, Right : Ureal) return Boolean;
-- Compares reals for less than
function UR_Le (Left, Right : Ureal) return Boolean;
-- Compares reals for less than or equal
function UR_Gt (Left, Right : Ureal) return Boolean;
-- Compares reals for greater than
function UR_Ge (Left, Right : Ureal) return Boolean;
-- Compares reals for greater than or equal
function UR_Is_Zero (Real : Ureal) return Boolean;
-- Tests if real value is zero
function UR_Is_Negative (Real : Ureal) return Boolean;
-- Tests if real value is negative, note that negative zero gives true
function UR_Is_Positive (Real : Ureal) return Boolean;
-- Test if real value is greater than zero
procedure UR_Write (Real : Ureal; Brackets : Boolean := False);
-- Writes value of Real to standard output. Used for debugging and
-- tree/source output, and also for -gnatR representation output. If the
-- result is easily representable as a standard Ada literal, it will be
-- given that way, but as a result of evaluation of static expressions, it
-- is possible to generate constants (e.g. 1/13) which have no such
-- representation. In such cases (and in cases where it is too much work to
-- figure out the Ada literal), the string that is output is of the form
-- of some expression such as integer/integer, or integer*integer**integer.
-- In the case where an expression is output, if Brackets is set to True,
-- the expression is surrounded by square brackets.
procedure pr (Real : Ureal);
pragma Export (Ada, pr);
-- Writes value of Real to standard output with a terminating line return,
-- using UR_Write as described above. This is for use from the debugger.
------------------------
-- Operator Renamings --
------------------------
function "+" (Left : Ureal; Right : Ureal) return Ureal renames UR_Add;
function "+" (Left : Uint; Right : Ureal) return Ureal renames UR_Add;
function "+" (Left : Ureal; Right : Uint) return Ureal renames UR_Add;
function "/" (Left : Ureal; Right : Ureal) return Ureal renames UR_Div;
function "/" (Left : Uint; Right : Ureal) return Ureal renames UR_Div;
function "/" (Left : Ureal; Right : Uint) return Ureal renames UR_Div;
function "*" (Left : Ureal; Right : Ureal) return Ureal renames UR_Mul;
function "*" (Left : Uint; Right : Ureal) return Ureal renames UR_Mul;
function "*" (Left : Ureal; Right : Uint) return Ureal renames UR_Mul;
function "-" (Left : Ureal; Right : Ureal) return Ureal renames UR_Sub;
function "-" (Left : Uint; Right : Ureal) return Ureal renames UR_Sub;
function "-" (Left : Ureal; Right : Uint) return Ureal renames UR_Sub;
function "**" (Real : Ureal; N : Uint) return Ureal
renames UR_Exponentiate;
function "abs" (Real : Ureal) return Ureal renames UR_Abs;
function "-" (Real : Ureal) return Ureal renames UR_Negate;
function "=" (Left, Right : Ureal) return Boolean renames UR_Eq;
function "<" (Left, Right : Ureal) return Boolean renames UR_Lt;
function "<=" (Left, Right : Ureal) return Boolean renames UR_Le;
function ">=" (Left, Right : Ureal) return Boolean renames UR_Ge;
function ">" (Left, Right : Ureal) return Boolean renames UR_Gt;
-----------------------------
-- Mark/Release Processing --
-----------------------------
-- The space used by Ureal data is not automatically reclaimed. However,
-- a mark-release regime is implemented which allows storage to be
-- released back to a previously noted mark. This is used for example
-- when doing comparisons, where only intermediate results get stored
-- that do not need to be saved for future use.
type Save_Mark is private;
function Mark return Save_Mark;
-- Note mark point for future release
procedure Release (M : Save_Mark);
-- Release storage allocated since mark was noted
------------------------------------
-- Representation of Ureal Values --
------------------------------------
private
type Ureal is new Int range Ureal_Low_Bound .. Ureal_High_Bound;
for Ureal'Size use 32;
No_Ureal : constant Ureal := Ureal'First;
type Save_Mark is new Int;
pragma Inline (Denominator);
pragma Inline (Mark);
pragma Inline (Norm_Num);
pragma Inline (Norm_Den);
pragma Inline (Numerator);
pragma Inline (Rbase);
pragma Inline (Release);
pragma Inline (Ureal_0);
pragma Inline (Ureal_M_0);
pragma Inline (Ureal_Tenth);
pragma Inline (Ureal_Half);
pragma Inline (Ureal_1);
pragma Inline (Ureal_2);
pragma Inline (Ureal_10);
pragma Inline (UR_From_Components);
end Urealp;
|
-- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2017 onox <denkpadje@gmail.com>
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.
with System;
with Ada.Exceptions;
with Ada.Unchecked_Deallocation;
with GL.Low_Level.Enums;
with GL.Pixels.Extensions;
with GL.Types.Pointers;
with Orka.Jobs;
with Orka.KTX;
with Orka.Logging;
with Orka.OS;
with Orka.Strings;
package body Orka.Resources.Textures.KTX is
use all type Orka.Logging.Source;
use all type Orka.Logging.Severity;
package Messages is new Orka.Logging.Messages (Resource_Loader);
function Trim_Image (Value : Integer) return String is
(Orka.Strings.Trim (Integer'Image (Value)));
type KTX_Load_Job is new Jobs.Abstract_Job and Jobs.GPU_Job with record
Data : Loaders.Resource_Data;
Manager : Managers.Manager_Ptr;
end record;
overriding
procedure Execute
(Object : KTX_Load_Job;
Context : Jobs.Execution_Context'Class);
-----------------------------------------------------------------------------
function Read_Texture
(Bytes : Byte_Array_Pointers.Constant_Reference;
Path : String;
Start : Time) return GL.Objects.Textures.Texture
is
T1 : Time renames Start;
T2 : constant Time := Orka.OS.Monotonic_Clock;
use Ada.Streams;
use GL.Low_Level.Enums;
use type GL.Types.Size;
use type Time;
T3, T4, T5, T6 : Time;
begin
if not Orka.KTX.Valid_Identifier (Bytes) then
raise Texture_Load_Error with Path & " is not a KTX file";
end if;
declare
Header : constant Orka.KTX.Header := Orka.KTX.Get_Header (Bytes);
Levels : constant GL.Types.Size := GL.Types.Size'Max (1, Header.Mipmap_Levels);
Texture : GL.Objects.Textures.Texture (Header.Kind);
Width : constant GL.Types.Size := Header.Width;
Height : GL.Types.Size := Header.Height;
Depth : GL.Types.Size := Header.Depth;
begin
T3 := Orka.OS.Monotonic_Clock;
if not Header.Compressed
and then Header.Data_Type in GL.Pixels.Extensions.Packed_Data_Type
then
raise GL.Feature_Not_Supported_Exception with
"Packed data type " & Header.Data_Type'Image & " is not supported yet";
end if;
-- Allocate storage
case Header.Kind is
when Texture_2D_Array =>
Depth := Header.Array_Elements;
when Texture_1D_Array =>
Height := Header.Array_Elements;
pragma Assert (Depth = 0);
when Texture_Cube_Map_Array =>
-- For a cube map array, depth is the number of layer-faces
Depth := Header.Array_Elements * 6;
when Texture_3D =>
null;
when Texture_2D | Texture_Cube_Map =>
pragma Assert (Depth = 0);
when Texture_1D =>
if Header.Compressed then
raise Texture_Load_Error with Path & " has unknown 1D compressed format";
end if;
pragma Assert (Height = 0);
pragma Assert (Depth = 0);
when others =>
raise Program_Error;
end case;
if Header.Compressed then
Texture.Allocate_Storage (Levels, 1, Header.Compressed_Format,
Width, Height, Depth);
else
Texture.Allocate_Storage (Levels, 1, Header.Internal_Format,
Width, Height, Depth);
end if;
case Header.Kind is
when Texture_1D =>
Height := 1;
Depth := 1;
when Texture_1D_Array | Texture_2D =>
Depth := 1;
when Texture_2D_Array | Texture_3D =>
null;
when Texture_Cube_Map | Texture_Cube_Map_Array =>
-- Texture_Cube_Map uses 2D storage, but 3D load operation
-- according to table 8.15 of the OpenGL specification
-- For a cube map, depth is the number of faces, for
-- a cube map array, depth is the number of layer-faces
Depth := GL.Types.Size'Max (1, Header.Array_Elements) * 6;
when others =>
raise Program_Error;
end case;
T4 := Orka.OS.Monotonic_Clock;
-- TODO Handle KTXorientation key value pair
declare
procedure Iterate (Position : Orka.KTX.String_Maps.Cursor) is
begin
Messages.Log (Warning, "Metadata: " & Orka.KTX.String_Maps.Key (Position) &
" = " & Orka.KTX.String_Maps.Element (Position));
end Iterate;
begin
Orka.KTX.Get_Key_Value_Map (Bytes, Header.Bytes_Key_Value).Iterate (Iterate'Access);
end;
-- Upload texture data
declare
Image_Size_Index : Stream_Element_Offset
:= Orka.KTX.Get_Data_Offset (Bytes, Header.Bytes_Key_Value);
Cube_Map : constant Boolean := Header.Kind = Texture_Cube_Map;
begin
for Level in 0 .. Levels - 1 loop
declare
Face_Size : constant Natural := Orka.KTX.Get_Length (Bytes, Image_Size_Index);
-- If not Cube_Map, then Face_Size is the size of the whole level
Cube_Padding : constant Natural := 3 - ((Face_Size + 3) mod 4);
Image_Size : constant Natural
:= (if Cube_Map then (Face_Size + Cube_Padding) * 6 else Face_Size);
-- If Cube_Map then Levels = 1 so no need to add it to the expression
-- Compute size of the whole mipmap level
Mip_Padding : constant Natural := 3 - ((Image_Size + 3) mod 4);
Mipmap_Size : constant Natural := 4 + Image_Size + Mip_Padding;
Offset : constant Stream_Element_Offset := Image_Size_Index + 4;
pragma Assert
(Offset + Stream_Element_Offset (Image_Size) - 1 <= Bytes.Value'Last);
Image_Data : constant System.Address := Bytes (Offset)'Address;
Level_Width : constant GL.Types.Size := Texture.Width (Level);
Level_Height : constant GL.Types.Size := Texture.Height (Level);
Level_Depth : constant GL.Types.Size :=
(if Cube_Map then 6 else Texture.Depth (Level));
begin
if Header.Compressed then
Texture.Load_From_Data
(Level, 0, 0, 0, Level_Width, Level_Height, Level_Depth,
Header.Compressed_Format, GL.Types.Int (Image_Size), Image_Data);
else
declare
Original_Alignment : constant GL.Pixels.Alignment :=
GL.Pixels.Unpack_Alignment;
begin
GL.Pixels.Set_Unpack_Alignment (GL.Pixels.Words);
Texture.Load_From_Data (Level, 0, 0, 0,
Level_Width, Level_Height, Level_Depth,
Header.Format, Header.Data_Type, Image_Data);
GL.Pixels.Set_Unpack_Alignment (Original_Alignment);
end;
end if;
Image_Size_Index := Image_Size_Index + Stream_Element_Offset (Mipmap_Size);
end;
end loop;
end;
T5 := Orka.OS.Monotonic_Clock;
-- Generate a full mipmap pyramid if Mipmap_Levels = 0
if Header.Mipmap_Levels = 0 then
Texture.Generate_Mipmap;
end if;
T6 := Orka.OS.Monotonic_Clock;
Messages.Log (Info, "Loaded texture " & Path & " in " &
Logging.Trim (Logging.Image (T6 - T1)));
Messages.Log (Info, " dims: " &
Logging.Trim (Width'Image) & " × " &
Logging.Trim (Height'Image) & " × " &
Logging.Trim (Depth'Image) &
", mipmap levels:" & Levels'Image);
Messages.Log (Info, " size: " & Trim_Image (Bytes.Value'Length) & " bytes");
Messages.Log (Info, " kind: " & Header.Kind'Image);
if Header.Compressed then
Messages.Log (Info, " format: " & Header.Compressed_Format'Image);
else
Messages.Log (Info, " format: " & Header.Internal_Format'Image &
" (" & Trim_Image (Integer (GL.Pixels.Extensions.Components (Header.Format))) &
"x " & Header.Data_Type'Image & ")");
end if;
Messages.Log (Info, " statistics:");
Messages.Log (Info, " reading file: " & Logging.Image (T2 - T1));
Messages.Log (Info, " parsing header: " & Logging.Image (T3 - T2));
Messages.Log (Info, " storage: " & Logging.Image (T4 - T3));
Messages.Log (Info, " buffers: " & Logging.Image (T5 - T4));
if Header.Mipmap_Levels = 0 then
Messages.Log (Info, " generating mipmap:" & Logging.Image (T6 - T5));
end if;
return Texture;
end;
exception
when Error : Orka.KTX.Invalid_Enum_Error =>
declare
Message : constant String := Ada.Exceptions.Exception_Message (Error);
begin
raise Texture_Load_Error with Path & " has " & Message;
end;
end Read_Texture;
function Read_Texture
(Location : Locations.Location_Ptr;
Path : String) return GL.Objects.Textures.Texture
is
Start_Time : constant Time := Orka.OS.Monotonic_Clock;
begin
return Read_Texture (Location.Read_Data (Path).Get, Path, Start_Time);
end Read_Texture;
overriding
procedure Execute
(Object : KTX_Load_Job;
Context : Jobs.Execution_Context'Class)
is
Bytes : Byte_Array_Pointers.Constant_Reference := Object.Data.Bytes.Get;
Path : String renames SU.To_String (Object.Data.Path);
Resource : constant Texture_Ptr := new Texture'(others => <>);
begin
Resource.Texture.Replace_Element (Read_Texture (Bytes, Path, Object.Data.Start_Time));
-- Register resource at the resource manager
Object.Manager.Add_Resource (Path, Resource_Ptr (Resource));
end Execute;
-----------------------------------------------------------------------------
-- Loader --
-----------------------------------------------------------------------------
type KTX_Loader is limited new Loaders.Loader with record
Manager : Managers.Manager_Ptr;
end record;
overriding
function Extension (Object : KTX_Loader) return Loaders.Extension_String is ("ktx");
overriding
procedure Load
(Object : KTX_Loader;
Data : Loaders.Resource_Data;
Enqueue : not null access procedure (Element : Jobs.Job_Ptr);
Location : Locations.Location_Ptr)
is
Job : constant Jobs.Job_Ptr := new KTX_Load_Job'
(Jobs.Abstract_Job with
Data => Data,
Manager => Object.Manager);
begin
Enqueue (Job);
end Load;
function Create_Loader
(Manager : Managers.Manager_Ptr) return Loaders.Loader_Ptr
is (new KTX_Loader'(Manager => Manager));
-----------------------------------------------------------------------------
-- Writer --
-----------------------------------------------------------------------------
package Pointers is new GL.Objects.Textures.Texture_Pointers (Byte_Pointers);
procedure Write_Texture
(Texture : GL.Objects.Textures.Texture;
Location : Locations.Writable_Location_Ptr;
Path : String)
is
package Textures renames GL.Objects.Textures;
Format : GL.Pixels.Format := GL.Pixels.RGBA;
Data_Type : GL.Pixels.Data_Type := GL.Pixels.Float;
-- Note: unused if texture is compressed
Base_Level : constant := 0;
use Ada.Streams;
use all type GL.Low_Level.Enums.Texture_Kind;
use type GL.Types.Size;
Compressed : constant Boolean := Texture.Compressed;
Header : Orka.KTX.Header (Compressed);
function Convert
(Bytes : in out GL.Types.Pointers.UByte_Array_Access) return Byte_Array_Pointers.Pointer
is
Pointer : Byte_Array_Pointers.Pointer;
Result : constant Byte_Array_Access := new Byte_Array (1 .. Bytes'Length);
procedure Free is new Ada.Unchecked_Deallocation
(Object => GL.Types.UByte_Array, Name => GL.Types.Pointers.UByte_Array_Access);
begin
for Index in Bytes'Range loop
declare
Target_Index : constant Stream_Element_Offset
:= Stream_Element_Offset (Index - Bytes'First + 1);
begin
Result (Target_Index) := Stream_Element (Bytes (Index));
end;
end loop;
Free (Bytes);
Pointer.Set (Result);
return Pointer;
end Convert;
function Convert
(Bytes : in out Pointers.Element_Array_Access) return Byte_Array_Pointers.Pointer
is
Pointer : Byte_Array_Pointers.Pointer;
Result : constant Byte_Array_Access := new Byte_Array (1 .. Bytes'Length);
begin
Result.all := Bytes.all;
Pointers.Free (Bytes);
Pointer.Set (Result);
return Pointer;
end Convert;
function Get_Data
(Level : Textures.Mipmap_Level) return Byte_Array_Pointers.Pointer
is
Data : Pointers.Element_Array_Access;
begin
Data := Pointers.Get_Data (Texture, Level, 0, 0, 0,
Texture.Width (Level), Texture.Height (Level), Texture.Depth (Level),
Format, Data_Type);
return Convert (Data);
end Get_Data;
function Get_Compressed_Data
(Level : Textures.Mipmap_Level) return Byte_Array_Pointers.Pointer
is
Data : GL.Types.Pointers.UByte_Array_Access;
begin
Data := Textures.Get_Compressed_Data (Texture, Level, 0, 0, 0,
Texture.Width (Level), Texture.Height (Level), Texture.Depth (Level),
Texture.Compressed_Format);
return Convert (Data);
end Get_Compressed_Data;
T1, T2, T3, T4 : Duration;
begin
T1 := Orka.OS.Monotonic_Clock;
Header.Kind := Texture.Kind;
Header.Width := Texture.Width (Base_Level);
case Texture.Kind is
when Texture_3D =>
Header.Height := Texture.Height (Base_Level);
Header.Depth := Texture.Depth (Base_Level);
when Texture_2D | Texture_2D_Array | Texture_Cube_Map | Texture_Cube_Map_Array =>
Header.Height := Texture.Height (Base_Level);
Header.Depth := 0;
when Texture_1D | Texture_1D_Array =>
Header.Height := 0;
Header.Depth := 0;
when others =>
raise Program_Error;
end case;
case Texture.Kind is
when Texture_1D_Array =>
Header.Array_Elements := Texture.Height (Base_Level);
when Texture_2D_Array =>
Header.Array_Elements := Texture.Depth (Base_Level);
when Texture_Cube_Map_Array =>
Header.Array_Elements := Texture.Depth (Base_Level) / 6;
when Texture_1D | Texture_2D | Texture_3D | Texture_Cube_Map =>
Header.Array_Elements := 0;
when others =>
raise Program_Error;
end case;
Header.Mipmap_Levels := Texture.Mipmap_Levels;
Header.Bytes_Key_Value := 0;
if Compressed then
Header.Compressed_Format := Texture.Compressed_Format;
else
declare
Internal_Format : constant GL.Pixels.Internal_Format
:= Texture.Internal_Format;
begin
Format := GL.Pixels.Extensions.Texture_Format (Internal_Format);
Data_Type := GL.Pixels.Extensions.Texture_Data_Type (Internal_Format);
Header.Internal_Format := Internal_Format;
Header.Format := Format;
Header.Data_Type := Data_Type;
end;
end if;
T2 := Orka.OS.Monotonic_Clock;
declare
function Get_Level_Data
(Level : Textures.Mipmap_Level) return Byte_Array_Pointers.Pointer
is (if Compressed then Get_Compressed_Data (Level) else Get_Data (Level));
Bytes : constant Byte_Array_Pointers.Pointer
:= Orka.KTX.Create_KTX_Bytes (Header, Get_Level_Data'Access);
begin
T3 := Orka.OS.Monotonic_Clock;
Location.Write_Data (Path, Bytes.Get);
T4 := Orka.OS.Monotonic_Clock;
Messages.Log (Info, "Saved texture " & Path & " in " &
Logging.Trim (Logging.Image (+(T4 - T1))));
Messages.Log (Info, " dims: " &
Logging.Trim (Texture.Width (Base_Level)'Image) & " × " &
Logging.Trim (Texture.Height (Base_Level)'Image) & " × " &
Logging.Trim (Texture.Depth (Base_Level)'Image) &
", mipmap levels:" & Texture.Mipmap_Levels'Image);
Messages.Log (Info, " size: " & Trim_Image (Bytes.Get.Value'Length) & " bytes");
Messages.Log (Info, " kind: " & Texture.Kind'Image);
if Header.Compressed then
Messages.Log (Info, " format: " & Texture.Compressed_Format'Image);
else
Messages.Log (Info, " format: " & Texture.Internal_Format'Image &
" (" & Trim_Image (Integer (GL.Pixels.Extensions.Components (Header.Format))) &
"x " & Header.Data_Type'Image & ")");
end if;
Messages.Log (Info, " statistics:");
Messages.Log (Info, " creating header: " & Logging.Image (+(T2 - T1)));
Messages.Log (Info, " retrieving data: " & Logging.Image (+(T3 - T2)));
Messages.Log (Info, " writing file: " & Logging.Image (+(T4 - T3)));
end;
end Write_Texture;
end Orka.Resources.Textures.KTX;
|
with Ada.Text_IO; use Ada.Text_IO;
package body mylog with SPARK_Mode is
procedure Print (m : logmsg) is
begin
case m.typ is
when NONE => Put ("NONE");
when GPS => Put ("GPS: ");
when TEXT => Put ("TXT: ");
end case;
end Print;
end mylog;
|
with Ada.Containers.Doubly_Linked_Lists;
with Ada.Text_IO; use Ada.Text_IO;
with GL.Attributes;
with GL.Culling;
with GL.Objects.Buffers;
with GL.Objects.Programs;
with GL.Objects.Vertex_Arrays;
with GL.Rasterization;
with GL.Toggles;
with GL.Types.Colors;
with GL.Uniforms;
with GL_Enums_Feedback;
with GL_Util;
with Maths;
with GA_Draw;
with GLUT_API;
with Multivectors;
package body Graphic_Data is
use GL.Types;
type Feedback is record
Token : GL_Enums_Feedback.Feed_Back_Token;
Vertex_1X : Float;
Vertex_1Y : Float;
Vertex_1Z : Float;
Vertex_2X : Float;
Vertex_2Y : Float;
Vertex_2Z : Float;
Vertex_3X : Float;
Vertex_3Y : Float;
Vertex_3Z : Float;
end record;
-- Buffer for OpenGL feedback
package Buffer_Package is new Ada.Containers.Doubly_Linked_Lists
(Element_Type => Feedback);
type Buffer_List is new Buffer_Package.List with null record;
package Indices_Package is new Ada.Containers.Doubly_Linked_Lists
(Element_Type => Integer);
type Indices_List is new Indices_Package.List with null record;
package Vertices_Package is new Ada.Containers.Doubly_Linked_Lists
(Element_Type => Multivectors.Vector);
type Vertices_List is new Vertices_Package.List with null record;
procedure Get_GLUT_Model_2D (Render_Program : GL.Objects.Programs.Program;
Model_Name : Ada.Strings.Unbounded.Unbounded_String;
Model_Rotor : Multivectors.Rotor) is
use GL_Enums_Feedback;
use GL.Types.Singles;
Screen_Width : constant Float := 1600.0;
MV_Matrix_ID : GL.Uniforms.Uniform;
Projection_Matrix_ID : GL.Uniforms.Uniform;
Colour_Location : GL.Uniforms.Uniform;
Model_View_Matrix : GL.Types.Singles.Matrix4 :=
GL.Types.Singles.Identity4;
Translation_Matrix : Singles.Matrix4;
Projection_Matrix : Singles.Matrix4;
Feedback_Buffer : GL.Objects.Buffers.Buffer;
Feedback_Array_Object : GL.Objects.Vertex_Arrays.Vertex_Array_Object;
Indices : Indices_List;
Colour : constant GL.Types.Colors.Color := (0.0, 0.0, 0.0, 0.0);
Num_Vertices : Integer;
G_Vertices_2D : Vertices_List;
Index : Integer := 0;
begin
-- DONT cull faces (we will do this ourselves!)
GL.Toggles.Disable (GL.Toggles.Cull_Face);
-- fill all polygons (otherwise they get turned into LINES
GL.Rasterization.Set_Polygon_Mode (GL.Rasterization.Fill);
-- setup projection & transform for the model:
-- glFrustum (-(float)g_viewportWidth / screenWidth, (float)g_viewportWidth / screenWidth,
-- -(float)g_viewportHeight / screenWidth, (float)g_viewportHeight / screenWidth,
-- 1.0, 100.0);
GA_Draw.Init_Projection_Matrix (Projection_Matrix, 1.0, 100.0);
Translation_Matrix := Maths.Translation_Matrix ((0.0, 0.0, -10.0));
GL_Util.Rotor_GL_Multiply (Model_Rotor, Model_View_Matrix);
Model_View_Matrix := Translation_Matrix * Model_View_Matrix;
GA_Draw.Graphic_Shader_Locations (Render_Program, MV_Matrix_ID,
Projection_Matrix_ID, Colour_Location);
GL.Uniforms.Set_Single (MV_Matrix_ID, Model_View_Matrix);
GL.Uniforms.Set_Single (Projection_Matrix_ID, Projection_Matrix);
-- buffer for OpenGL feedback, format will be:
-- GL_POLYGON_TOKEN
-- n (= 3)
-- vertex 0 x, vertex 0 y
-- vertex 1 x, vertex 1 y
-- vertex 2 x, vertex 2 y
-- GL_POLYGON_TOKEN etc etc
-- std::vector<GLfloat> buffer(300000); // more than enough for the GLUT primitives
-- switch into feedback mode:
-- glFeedbackBuffer((GLsizei)buffer.size(), GL_2D, &(buffer[0]));
-- glRenderMode(GL_FEEDBACK);
Feedback_Buffer.Initialize_Id;
Feedback_Array_Object.Bind;
GL.Objects.Buffers.Transform_Feedback_Buffer.Bind (Feedback_Buffer);
-- GL.Attributes.Enable_Vertex_Attrib_Array (0);
GL.Objects.Programs.Begin_Transform_Feedback (Triangles);
-- Render model
if Model_Name = "teapot" then
Solid_Teapot (1.0);
elsif Model_Name = "cube" then
Solid_Cube (1.0);
elsif Model_Name = "sphere" then
Solid_Sphere (1.0, 16, 8);
elsif Model_Name = "cone" then
Solid_Cone (1.0, 2.0, 16, 8);
elsif Model_Name = "torus" then
Solid_Torus (0.5, 1.0, 8, 16);
elsif Model_Name = "dodecahedron" then
Solid_Dodecahedron;
elsif Model_Name = "octahedron" then
Solid_Octahedron;
elsif Model_Name = "tetrahedron" then
Solid_Tetrahedron;
elsif Model_Name = "icosahedron" then
Solid_Icosahedron;
end if;
GL.Objects.Programs.End_Transform_Feedback;
-- GL.Attributes.Disable_Vertex_Attrib_Array (0);
-- int nbFeedback = glRenderMode(GL_RENDER);
--
-- // parse the feedback buffer:
-- g_polygons2D.clear();
-- g_vertices2D.clear();
while idx < nbFeedback loop
-- check for polygon:
if buffer (idx) /= Polygon_Token then
raise GLUT_Read_Exception with
"Graphic_Data.Get_GLUT_Model_2D Error parsing the feedback buffer!";
else
idx := idx + 1;
-- number of vertices (3)
Num_Vertices := (int)buffer[idx];
idx := idx + 1;
-- std::vector<int> vtxIdx(n);
-- Get vertices:
-- Maybe todo later: don't duplicate identical vertices . . .
for index in 1 .. Num_Vertices loop
-- vtxIdx[i] = (int)g_vertices2D.size();
Indices.Append (g_vertices2D.size)
g_vertices2D.push_back(_vector(buffer[idx] * e1 + buffer[idx+1] * e2));
idx := idx + 2;
end loop;
g_polygons2D.push_back(vtxIdx);
end if;
end loop;
-- if (g_prevStatisticsModelName != modelName)
-- {
-- printf("Model: %s, #polygons: %d, #vertices: %d\n", modelName.c_str(), g_polygons2D.size(), g_vertices2D.size());
-- g_prevStatisticsModelName = modelName;
-- }
exception
when anError : others =>
Put_Line ("An exception occurred in Graphic_Data.Get_GLUT_Model_2D.");
raise;
end Get_GLUT_Model_2D;
-- -------------------------------------------------------------------------
procedure Solid_Cube (Size : Float) is
begin
GLUT_API.GLUT_Solid_Cube (Double (Size));
end Solid_Cube;
-- -------------------------------------------------------------------------
procedure Solid_Cone (Base, Height : Float; Slices, Stacks : Integer) is
begin
GLUT_API.GLUT_Solid_Cone (Double (Base), Double (Height),
Int (Slices), Int (Stacks));
end Solid_Cone;
-- -------------------------------------------------------------------------
procedure Solid_Dodecahedron is
begin
GLUT_API.GLUT_Solid_Dodecahedron;
end Solid_Dodecahedron;
-- -------------------------------------------------------------------------
procedure Solid_Icosahedron is
begin
GLUT_API.GLUT_Solid_Icosahedron;
end Solid_Icosahedron;
-- -------------------------------------------------------------------------
procedure Solid_Octahedron is
begin
GLUT_API.GLUT_Solid_Octahedron;
end Solid_Octahedron;
-- -------------------------------------------------------------------------
procedure Solid_Sphere (Radius : Float; Slices, Stacks : Integer) is
begin
GLUT_API.GLUT_Solid_Sphere (Double (Radius), Int (Slices), Int (Stacks));
end Solid_Sphere;
-- -------------------------------------------------------------------------
procedure Solid_Teapot (Size : Float) is
begin
GLUT_API.GLUT_Solid_Teapot (Double (Size));
end Solid_Teapot;
-- -------------------------------------------------------------------------
procedure Solid_Tetrahedron is
begin
GLUT_API.GLUT_Solid_Tetrahedron;
end Solid_Tetrahedron;
-- -------------------------------------------------------------------------
procedure Solid_Torus (Inner_Radius, Outer_Radius : Float;
Sides, Rings : Integer) is
begin
GLUT_API.GLUT_Solid_Torus (Double (Inner_Radius), Double (Outer_Radius),
Int (Sides), Int (Rings));
end Solid_Torus;
-- -------------------------------------------------------------------------
end Graphic_Data;
|
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE boost_serialization>
<boost_serialization signature="serialization::archive" version="15">
<syndb class_id="0" tracking_level="0" version="0">
<userIPLatency>-1</userIPLatency>
<userIPName></userIPName>
<cdfg class_id="1" tracking_level="1" version="0" object_id="_0">
<name>hls_action</name>
<ret_bitwidth>0</ret_bitwidth>
<ports class_id="2" tracking_level="0" version="0">
<count>5</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>host_mem</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>512</bitwidth>
</Value>
<direction>2</direction>
<if_type>4</if_type>
<array_size>0</array_size>
<bit_vecs class_id="7" tracking_level="0" version="0">
<count>0</count>
<item_version>0</item_version>
</bit_vecs>
</item>
<item class_id_reference="3" object_id="_2">
<Value>
<Obj>
<type>1</type>
<id>2</id>
<name>din_gmem_V</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>din_gmem.V</originalName>
<rtlName></rtlName>
<coreName></coreName>
</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>dout_gmem_V</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>dout_gmem.V</originalName>
<rtlName></rtlName>
<coreName></coreName>
</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>act_reg</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>act_reg</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>992</bitwidth>
</Value>
<direction>2</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>Action_Config</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>Action_Config</originalName>
<rtlName></rtlName>
<coreName></coreName>
</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>
</ports>
<nodes class_id="8" tracking_level="0" version="0">
<count>22</count>
<item_version>0</item_version>
<item class_id="9" tracking_level="1" version="0" object_id="_6">
<Value>
<Obj>
<type>0</type>
<id>6</id>
<name>dout_gmem_V_read</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>dout_gmem.V</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>64</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>43</item>
<item>44</item>
</oprand_edges>
<opcode>read</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_7">
<Value>
<Obj>
<type>0</type>
<id>7</id>
<name>din_gmem_V_read</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>din_gmem.V</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>64</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>
</item>
<item class_id_reference="9" object_id="_8">
<Value>
<Obj>
<type>0</type>
<id>8</id>
<name>dout_gmem_V3</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>58</bitwidth>
</Value>
<oprand_edges>
<count>4</count>
<item_version>0</item_version>
<item>48</item>
<item>49</item>
<item>51</item>
<item>53</item>
</oprand_edges>
<opcode>partselect</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_9">
<Value>
<Obj>
<type>0</type>
<id>9</id>
<name>din_gmem_V1</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>58</bitwidth>
</Value>
<oprand_edges>
<count>4</count>
<item_version>0</item_version>
<item>54</item>
<item>55</item>
<item>56</item>
<item>57</item>
</oprand_edges>
<opcode>partselect</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_10">
<Value>
<Obj>
<type>0</type>
<id>20</id>
<name>act_reg_read</name>
<fileName>action_uppercase.cpp</fileName>
<fileDirectory>/afs/apd.pok.ibm.com/func/vlsi/eclipz/c14/usr/zhichao/p9nd2/SNAP/snap/actions/hls_helloworld/hw</fileDirectory>
<lineNumber>109</lineNumber>
<contextFuncName>hls_action</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item class_id="11" tracking_level="0" version="0">
<first>/afs/apd.pok.ibm.com/func/vlsi/eclipz/c14/usr/zhichao/p9nd2/SNAP/snap/actions/hls_helloworld/hw</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>action_uppercase.cpp</first>
<second>hls_action</second>
</first>
<second>109</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>992</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>
</item>
<item class_id_reference="9" object_id="_11">
<Value>
<Obj>
<type>0</type>
<id>21</id>
<name>act_reg_Control_flag</name>
<fileName>action_uppercase.cpp</fileName>
<fileDirectory>/afs/apd.pok.ibm.com/func/vlsi/eclipz/c14/usr/zhichao/p9nd2/SNAP/snap/actions/hls_helloworld/hw</fileDirectory>
<lineNumber>109</lineNumber>
<contextFuncName>hls_action</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/afs/apd.pok.ibm.com/func/vlsi/eclipz/c14/usr/zhichao/p9nd2/SNAP/snap/actions/hls_helloworld/hw</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>action_uppercase.cpp</first>
<second>hls_action</second>
</first>
<second>109</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>8</bitwidth>
</Value>
<oprand_edges>
<count>4</count>
<item_version>0</item_version>
<item>62</item>
<item>63</item>
<item>65</item>
<item>67</item>
</oprand_edges>
<opcode>partselect</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_12">
<Value>
<Obj>
<type>0</type>
<id>22</id>
<name>cond</name>
<fileName>action_uppercase.cpp</fileName>
<fileDirectory>/afs/apd.pok.ibm.com/func/vlsi/eclipz/c14/usr/zhichao/p9nd2/SNAP/snap/actions/hls_helloworld/hw</fileDirectory>
<lineNumber>109</lineNumber>
<contextFuncName>hls_action</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/afs/apd.pok.ibm.com/func/vlsi/eclipz/c14/usr/zhichao/p9nd2/SNAP/snap/actions/hls_helloworld/hw</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>action_uppercase.cpp</first>
<second>hls_action</second>
</first>
<second>109</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>68</item>
<item>70</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></name>
<fileName>action_uppercase.cpp</fileName>
<fileDirectory>/afs/apd.pok.ibm.com/func/vlsi/eclipz/c14/usr/zhichao/p9nd2/SNAP/snap/actions/hls_helloworld/hw</fileDirectory>
<lineNumber>109</lineNumber>
<contextFuncName>hls_action</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/afs/apd.pok.ibm.com/func/vlsi/eclipz/c14/usr/zhichao/p9nd2/SNAP/snap/actions/hls_helloworld/hw</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>action_uppercase.cpp</first>
<second>hls_action</second>
</first>
<second>109</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>71</item>
<item>72</item>
<item>73</item>
</oprand_edges>
<opcode>br</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_14">
<Value>
<Obj>
<type>0</type>
<id>25</id>
<name>act_reg_Data_in_addr</name>
<fileName>action_uppercase.cpp</fileName>
<fileDirectory>/afs/apd.pok.ibm.com/func/vlsi/eclipz/c14/usr/zhichao/p9nd2/SNAP/snap/actions/hls_helloworld/hw</fileDirectory>
<lineNumber>118</lineNumber>
<contextFuncName>hls_action</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/afs/apd.pok.ibm.com/func/vlsi/eclipz/c14/usr/zhichao/p9nd2/SNAP/snap/actions/hls_helloworld/hw</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>action_uppercase.cpp</first>
<second>hls_action</second>
</first>
<second>118</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>64</bitwidth>
</Value>
<oprand_edges>
<count>4</count>
<item_version>0</item_version>
<item>81</item>
<item>82</item>
<item>84</item>
<item>86</item>
</oprand_edges>
<opcode>partselect</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_15">
<Value>
<Obj>
<type>0</type>
<id>26</id>
<name>act_reg_Data_in_size</name>
<fileName>action_uppercase.cpp</fileName>
<fileDirectory>/afs/apd.pok.ibm.com/func/vlsi/eclipz/c14/usr/zhichao/p9nd2/SNAP/snap/actions/hls_helloworld/hw</fileDirectory>
<lineNumber>118</lineNumber>
<contextFuncName>hls_action</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/afs/apd.pok.ibm.com/func/vlsi/eclipz/c14/usr/zhichao/p9nd2/SNAP/snap/actions/hls_helloworld/hw</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>action_uppercase.cpp</first>
<second>hls_action</second>
</first>
<second>118</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>4</count>
<item_version>0</item_version>
<item>88</item>
<item>89</item>
<item>91</item>
<item>93</item>
</oprand_edges>
<opcode>partselect</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_16">
<Value>
<Obj>
<type>0</type>
<id>27</id>
<name>act_reg_Data_out_add</name>
<fileName>action_uppercase.cpp</fileName>
<fileDirectory>/afs/apd.pok.ibm.com/func/vlsi/eclipz/c14/usr/zhichao/p9nd2/SNAP/snap/actions/hls_helloworld/hw</fileDirectory>
<lineNumber>118</lineNumber>
<contextFuncName>hls_action</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/afs/apd.pok.ibm.com/func/vlsi/eclipz/c14/usr/zhichao/p9nd2/SNAP/snap/actions/hls_helloworld/hw</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>action_uppercase.cpp</first>
<second>hls_action</second>
</first>
<second>118</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>64</bitwidth>
</Value>
<oprand_edges>
<count>4</count>
<item_version>0</item_version>
<item>94</item>
<item>95</item>
<item>97</item>
<item>99</item>
</oprand_edges>
<opcode>partselect</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_17">
<Value>
<Obj>
<type>0</type>
<id>28</id>
<name></name>
<fileName>action_uppercase.cpp</fileName>
<fileDirectory>/afs/apd.pok.ibm.com/func/vlsi/eclipz/c14/usr/zhichao/p9nd2/SNAP/snap/actions/hls_helloworld/hw</fileDirectory>
<lineNumber>118</lineNumber>
<contextFuncName>hls_action</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/afs/apd.pok.ibm.com/func/vlsi/eclipz/c14/usr/zhichao/p9nd2/SNAP/snap/actions/hls_helloworld/hw</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>action_uppercase.cpp</first>
<second>hls_action</second>
</first>
<second>118</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>7</count>
<item_version>0</item_version>
<item>101</item>
<item>102</item>
<item>103</item>
<item>104</item>
<item>105</item>
<item>106</item>
<item>107</item>
</oprand_edges>
<opcode>call</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_18">
<Value>
<Obj>
<type>0</type>
<id>29</id>
<name></name>
<fileName>action_uppercase.cpp</fileName>
<fileDirectory>/afs/apd.pok.ibm.com/func/vlsi/eclipz/c14/usr/zhichao/p9nd2/SNAP/snap/actions/hls_helloworld/hw</fileDirectory>
<lineNumber>119</lineNumber>
<contextFuncName>hls_action</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/afs/apd.pok.ibm.com/func/vlsi/eclipz/c14/usr/zhichao/p9nd2/SNAP/snap/actions/hls_helloworld/hw</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>action_uppercase.cpp</first>
<second>hls_action</second>
</first>
<second>119</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>108</item>
</oprand_edges>
<opcode>br</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_19">
<Value>
<Obj>
<type>0</type>
<id>31</id>
<name></name>
<fileName>action_uppercase.cpp</fileName>
<fileDirectory>/afs/apd.pok.ibm.com/func/vlsi/eclipz/c14/usr/zhichao/p9nd2/SNAP/snap/actions/hls_helloworld/hw</fileDirectory>
<lineNumber>112</lineNumber>
<contextFuncName>hls_action</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/afs/apd.pok.ibm.com/func/vlsi/eclipz/c14/usr/zhichao/p9nd2/SNAP/snap/actions/hls_helloworld/hw</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>action_uppercase.cpp</first>
<second>hls_action</second>
</first>
<second>112</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>75</item>
<item>76</item>
<item>78</item>
</oprand_edges>
<opcode>write</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_20">
<Value>
<Obj>
<type>0</type>
<id>32</id>
<name></name>
<fileName>action_uppercase.cpp</fileName>
<fileDirectory>/afs/apd.pok.ibm.com/func/vlsi/eclipz/c14/usr/zhichao/p9nd2/SNAP/snap/actions/hls_helloworld/hw</fileDirectory>
<lineNumber>114</lineNumber>
<contextFuncName>hls_action</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/afs/apd.pok.ibm.com/func/vlsi/eclipz/c14/usr/zhichao/p9nd2/SNAP/snap/actions/hls_helloworld/hw</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>action_uppercase.cpp</first>
<second>hls_action</second>
</first>
<second>114</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>79</item>
</oprand_edges>
<opcode>br</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_21">
<Value>
<Obj>
<type>0</type>
<id>34</id>
<name>storemerge</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>14</bitwidth>
</Value>
<oprand_edges>
<count>4</count>
<item_version>0</item_version>
<item>110</item>
<item>111</item>
<item>113</item>
<item>114</item>
</oprand_edges>
<opcode>phi</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_22">
<Value>
<Obj>
<type>0</type>
<id>35</id>
<name>storemerge_cast1</name>
<fileName>action_uppercase.cpp</fileName>
<fileDirectory>/afs/apd.pok.ibm.com/func/vlsi/eclipz/c14/usr/zhichao/p9nd2/SNAP/snap/actions/hls_helloworld/hw</fileDirectory>
<lineNumber>113</lineNumber>
<contextFuncName>hls_action</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/afs/apd.pok.ibm.com/func/vlsi/eclipz/c14/usr/zhichao/p9nd2/SNAP/snap/actions/hls_helloworld/hw</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>action_uppercase.cpp</first>
<second>hls_action</second>
</first>
<second>113</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>16</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>115</item>
</oprand_edges>
<opcode>sext</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_23">
<Value>
<Obj>
<type>0</type>
<id>36</id>
<name>storemerge_cast</name>
<fileName>action_uppercase.cpp</fileName>
<fileDirectory>/afs/apd.pok.ibm.com/func/vlsi/eclipz/c14/usr/zhichao/p9nd2/SNAP/snap/actions/hls_helloworld/hw</fileDirectory>
<lineNumber>113</lineNumber>
<contextFuncName>hls_action</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/afs/apd.pok.ibm.com/func/vlsi/eclipz/c14/usr/zhichao/p9nd2/SNAP/snap/actions/hls_helloworld/hw</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>action_uppercase.cpp</first>
<second>hls_action</second>
</first>
<second>113</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>116</item>
</oprand_edges>
<opcode>zext</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_24">
<Value>
<Obj>
<type>0</type>
<id>37</id>
<name>act_reg_read_1</name>
<fileName>action_uppercase.cpp</fileName>
<fileDirectory>/afs/apd.pok.ibm.com/func/vlsi/eclipz/c14/usr/zhichao/p9nd2/SNAP/snap/actions/hls_helloworld/hw</fileDirectory>
<lineNumber>113</lineNumber>
<contextFuncName>hls_action</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/afs/apd.pok.ibm.com/func/vlsi/eclipz/c14/usr/zhichao/p9nd2/SNAP/snap/actions/hls_helloworld/hw</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>action_uppercase.cpp</first>
<second>hls_action</second>
</first>
<second>113</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>992</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>117</item>
<item>118</item>
</oprand_edges>
<opcode>read</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_25">
<Value>
<Obj>
<type>0</type>
<id>38</id>
<name>act_reg11_part_set</name>
<fileName>action_uppercase.cpp</fileName>
<fileDirectory>/afs/apd.pok.ibm.com/func/vlsi/eclipz/c14/usr/zhichao/p9nd2/SNAP/snap/actions/hls_helloworld/hw</fileDirectory>
<lineNumber>113</lineNumber>
<contextFuncName>hls_action</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/afs/apd.pok.ibm.com/func/vlsi/eclipz/c14/usr/zhichao/p9nd2/SNAP/snap/actions/hls_helloworld/hw</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>action_uppercase.cpp</first>
<second>hls_action</second>
</first>
<second>113</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>992</bitwidth>
</Value>
<oprand_edges>
<count>5</count>
<item_version>0</item_version>
<item>120</item>
<item>121</item>
<item>122</item>
<item>124</item>
<item>125</item>
</oprand_edges>
<opcode>partset</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_26">
<Value>
<Obj>
<type>0</type>
<id>39</id>
<name></name>
<fileName>action_uppercase.cpp</fileName>
<fileDirectory>/afs/apd.pok.ibm.com/func/vlsi/eclipz/c14/usr/zhichao/p9nd2/SNAP/snap/actions/hls_helloworld/hw</fileDirectory>
<lineNumber>113</lineNumber>
<contextFuncName>hls_action</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/afs/apd.pok.ibm.com/func/vlsi/eclipz/c14/usr/zhichao/p9nd2/SNAP/snap/actions/hls_helloworld/hw</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>action_uppercase.cpp</first>
<second>hls_action</second>
</first>
<second>113</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>5</count>
<item_version>0</item_version>
<item>127</item>
<item>128</item>
<item>129</item>
<item>262</item>
<item>263</item>
</oprand_edges>
<opcode>write</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_27">
<Value>
<Obj>
<type>0</type>
<id>40</id>
<name></name>
<fileName>action_uppercase.cpp</fileName>
<fileDirectory>/afs/apd.pok.ibm.com/func/vlsi/eclipz/c14/usr/zhichao/p9nd2/SNAP/snap/actions/hls_helloworld/hw</fileDirectory>
<lineNumber>121</lineNumber>
<contextFuncName>hls_action</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/afs/apd.pok.ibm.com/func/vlsi/eclipz/c14/usr/zhichao/p9nd2/SNAP/snap/actions/hls_helloworld/hw</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>action_uppercase.cpp</first>
<second>hls_action</second>
</first>
<second>121</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>0</count>
<item_version>0</item_version>
</oprand_edges>
<opcode>ret</opcode>
<m_Display>0</m_Display>
</item>
</nodes>
<consts class_id="15" tracking_level="0" version="0">
<count>16</count>
<item_version>0</item_version>
<item class_id="16" tracking_level="1" version="0" object_id="_28">
<Value>
<Obj>
<type>2</type>
<id>50</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<const_type>0</const_type>
<content>6</content>
</item>
<item class_id_reference="16" object_id="_29">
<Value>
<Obj>
<type>2</type>
<id>52</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>63</content>
</item>
<item class_id_reference="16" object_id="_30">
<Value>
<Obj>
<type>2</type>
<id>64</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<const_type>0</const_type>
<content>8</content>
</item>
<item class_id_reference="16" object_id="_31">
<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>0</const_type>
<content>15</content>
</item>
<item class_id_reference="16" object_id="_32">
<Value>
<Obj>
<type>2</type>
<id>69</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>8</bitwidth>
</Value>
<const_type>0</const_type>
<content>0</content>
</item>
<item class_id_reference="16" object_id="_33">
<Value>
<Obj>
<type>2</type>
<id>77</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>64</bitwidth>
</Value>
<const_type>0</const_type>
<content>146298638344</content>
</item>
<item class_id_reference="16" object_id="_34">
<Value>
<Obj>
<type>2</type>
<id>83</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<const_type>0</const_type>
<content>128</content>
</item>
<item class_id_reference="16" object_id="_35">
<Value>
<Obj>
<type>2</type>
<id>85</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<const_type>0</const_type>
<content>191</content>
</item>
<item class_id_reference="16" object_id="_36">
<Value>
<Obj>
<type>2</type>
<id>90</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>192</content>
</item>
<item class_id_reference="16" object_id="_37">
<Value>
<Obj>
<type>2</type>
<id>92</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>223</content>
</item>
<item class_id_reference="16" object_id="_38">
<Value>
<Obj>
<type>2</type>
<id>96</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>256</content>
</item>
<item class_id_reference="16" object_id="_39">
<Value>
<Obj>
<type>2</type>
<id>98</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>319</content>
</item>
<item class_id_reference="16" object_id="_40">
<Value>
<Obj>
<type>2</type>
<id>100</id>
<name>process_action</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:process_action></content>
</item>
<item class_id_reference="16" object_id="_41">
<Value>
<Obj>
<type>2</type>
<id>109</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>14</bitwidth>
</Value>
<const_type>0</const_type>
<content>258</content>
</item>
<item class_id_reference="16" object_id="_42">
<Value>
<Obj>
<type>2</type>
<id>112</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>14</bitwidth>
</Value>
<const_type>0</const_type>
<content>8207</content>
</item>
<item class_id_reference="16" object_id="_43">
<Value>
<Obj>
<type>2</type>
<id>123</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<const_type>0</const_type>
<content>32</content>
</item>
</consts>
<blocks class_id="17" tracking_level="0" version="0">
<count>4</count>
<item_version>0</item_version>
<item class_id="18" tracking_level="1" version="0" object_id="_44">
<Obj>
<type>3</type>
<id>24</id>
<name></name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<node_objs>
<count>8</count>
<item_version>0</item_version>
<item>6</item>
<item>7</item>
<item>8</item>
<item>9</item>
<item>20</item>
<item>21</item>
<item>22</item>
<item>23</item>
</node_objs>
</item>
<item class_id_reference="18" object_id="_45">
<Obj>
<type>3</type>
<id>30</id>
<name></name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<node_objs>
<count>5</count>
<item_version>0</item_version>
<item>25</item>
<item>26</item>
<item>27</item>
<item>28</item>
<item>29</item>
</node_objs>
</item>
<item class_id_reference="18" object_id="_46">
<Obj>
<type>3</type>
<id>33</id>
<name></name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<node_objs>
<count>2</count>
<item_version>0</item_version>
<item>31</item>
<item>32</item>
</node_objs>
</item>
<item class_id_reference="18" object_id="_47">
<Obj>
<type>3</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>
<node_objs>
<count>7</count>
<item_version>0</item_version>
<item>34</item>
<item>35</item>
<item>36</item>
<item>37</item>
<item>38</item>
<item>39</item>
<item>40</item>
</node_objs>
</item>
</blocks>
<edges class_id="19" tracking_level="0" version="0">
<count>56</count>
<item_version>0</item_version>
<item class_id="20" tracking_level="1" version="0" object_id="_48">
<id>44</id>
<edge_type>1</edge_type>
<source_obj>3</source_obj>
<sink_obj>6</sink_obj>
</item>
<item class_id_reference="20" object_id="_49">
<id>46</id>
<edge_type>1</edge_type>
<source_obj>2</source_obj>
<sink_obj>7</sink_obj>
</item>
<item class_id_reference="20" object_id="_50">
<id>49</id>
<edge_type>1</edge_type>
<source_obj>6</source_obj>
<sink_obj>8</sink_obj>
</item>
<item class_id_reference="20" object_id="_51">
<id>51</id>
<edge_type>1</edge_type>
<source_obj>50</source_obj>
<sink_obj>8</sink_obj>
</item>
<item class_id_reference="20" object_id="_52">
<id>53</id>
<edge_type>1</edge_type>
<source_obj>52</source_obj>
<sink_obj>8</sink_obj>
</item>
<item class_id_reference="20" object_id="_53">
<id>55</id>
<edge_type>1</edge_type>
<source_obj>7</source_obj>
<sink_obj>9</sink_obj>
</item>
<item class_id_reference="20" object_id="_54">
<id>56</id>
<edge_type>1</edge_type>
<source_obj>50</source_obj>
<sink_obj>9</sink_obj>
</item>
<item class_id_reference="20" object_id="_55">
<id>57</id>
<edge_type>1</edge_type>
<source_obj>52</source_obj>
<sink_obj>9</sink_obj>
</item>
<item class_id_reference="20" object_id="_56">
<id>60</id>
<edge_type>1</edge_type>
<source_obj>4</source_obj>
<sink_obj>20</sink_obj>
</item>
<item class_id_reference="20" object_id="_57">
<id>63</id>
<edge_type>1</edge_type>
<source_obj>20</source_obj>
<sink_obj>21</sink_obj>
</item>
<item class_id_reference="20" object_id="_58">
<id>65</id>
<edge_type>1</edge_type>
<source_obj>64</source_obj>
<sink_obj>21</sink_obj>
</item>
<item class_id_reference="20" object_id="_59">
<id>67</id>
<edge_type>1</edge_type>
<source_obj>66</source_obj>
<sink_obj>21</sink_obj>
</item>
<item class_id_reference="20" object_id="_60">
<id>68</id>
<edge_type>1</edge_type>
<source_obj>21</source_obj>
<sink_obj>22</sink_obj>
</item>
<item class_id_reference="20" object_id="_61">
<id>70</id>
<edge_type>1</edge_type>
<source_obj>69</source_obj>
<sink_obj>22</sink_obj>
</item>
<item class_id_reference="20" object_id="_62">
<id>71</id>
<edge_type>1</edge_type>
<source_obj>22</source_obj>
<sink_obj>23</sink_obj>
</item>
<item class_id_reference="20" object_id="_63">
<id>72</id>
<edge_type>2</edge_type>
<source_obj>30</source_obj>
<sink_obj>23</sink_obj>
</item>
<item class_id_reference="20" object_id="_64">
<id>73</id>
<edge_type>2</edge_type>
<source_obj>33</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>5</source_obj>
<sink_obj>31</sink_obj>
</item>
<item class_id_reference="20" object_id="_66">
<id>78</id>
<edge_type>1</edge_type>
<source_obj>77</source_obj>
<sink_obj>31</sink_obj>
</item>
<item class_id_reference="20" object_id="_67">
<id>79</id>
<edge_type>2</edge_type>
<source_obj>41</source_obj>
<sink_obj>32</sink_obj>
</item>
<item class_id_reference="20" object_id="_68">
<id>82</id>
<edge_type>1</edge_type>
<source_obj>20</source_obj>
<sink_obj>25</sink_obj>
</item>
<item class_id_reference="20" object_id="_69">
<id>84</id>
<edge_type>1</edge_type>
<source_obj>83</source_obj>
<sink_obj>25</sink_obj>
</item>
<item class_id_reference="20" object_id="_70">
<id>86</id>
<edge_type>1</edge_type>
<source_obj>85</source_obj>
<sink_obj>25</sink_obj>
</item>
<item class_id_reference="20" object_id="_71">
<id>89</id>
<edge_type>1</edge_type>
<source_obj>20</source_obj>
<sink_obj>26</sink_obj>
</item>
<item class_id_reference="20" object_id="_72">
<id>91</id>
<edge_type>1</edge_type>
<source_obj>90</source_obj>
<sink_obj>26</sink_obj>
</item>
<item class_id_reference="20" object_id="_73">
<id>93</id>
<edge_type>1</edge_type>
<source_obj>92</source_obj>
<sink_obj>26</sink_obj>
</item>
<item class_id_reference="20" object_id="_74">
<id>95</id>
<edge_type>1</edge_type>
<source_obj>20</source_obj>
<sink_obj>27</sink_obj>
</item>
<item class_id_reference="20" object_id="_75">
<id>97</id>
<edge_type>1</edge_type>
<source_obj>96</source_obj>
<sink_obj>27</sink_obj>
</item>
<item class_id_reference="20" object_id="_76">
<id>99</id>
<edge_type>1</edge_type>
<source_obj>98</source_obj>
<sink_obj>27</sink_obj>
</item>
<item class_id_reference="20" object_id="_77">
<id>101</id>
<edge_type>1</edge_type>
<source_obj>100</source_obj>
<sink_obj>28</sink_obj>
</item>
<item class_id_reference="20" object_id="_78">
<id>102</id>
<edge_type>1</edge_type>
<source_obj>1</source_obj>
<sink_obj>28</sink_obj>
</item>
<item class_id_reference="20" object_id="_79">
<id>103</id>
<edge_type>1</edge_type>
<source_obj>9</source_obj>
<sink_obj>28</sink_obj>
</item>
<item class_id_reference="20" object_id="_80">
<id>104</id>
<edge_type>1</edge_type>
<source_obj>8</source_obj>
<sink_obj>28</sink_obj>
</item>
<item class_id_reference="20" object_id="_81">
<id>105</id>
<edge_type>1</edge_type>
<source_obj>25</source_obj>
<sink_obj>28</sink_obj>
</item>
<item class_id_reference="20" object_id="_82">
<id>106</id>
<edge_type>1</edge_type>
<source_obj>26</source_obj>
<sink_obj>28</sink_obj>
</item>
<item class_id_reference="20" object_id="_83">
<id>107</id>
<edge_type>1</edge_type>
<source_obj>27</source_obj>
<sink_obj>28</sink_obj>
</item>
<item class_id_reference="20" object_id="_84">
<id>108</id>
<edge_type>2</edge_type>
<source_obj>41</source_obj>
<sink_obj>29</sink_obj>
</item>
<item class_id_reference="20" object_id="_85">
<id>110</id>
<edge_type>1</edge_type>
<source_obj>109</source_obj>
<sink_obj>34</sink_obj>
</item>
<item class_id_reference="20" object_id="_86">
<id>111</id>
<edge_type>2</edge_type>
<source_obj>30</source_obj>
<sink_obj>34</sink_obj>
</item>
<item class_id_reference="20" object_id="_87">
<id>113</id>
<edge_type>1</edge_type>
<source_obj>112</source_obj>
<sink_obj>34</sink_obj>
</item>
<item class_id_reference="20" object_id="_88">
<id>114</id>
<edge_type>2</edge_type>
<source_obj>33</source_obj>
<sink_obj>34</sink_obj>
</item>
<item class_id_reference="20" object_id="_89">
<id>115</id>
<edge_type>1</edge_type>
<source_obj>34</source_obj>
<sink_obj>35</sink_obj>
</item>
<item class_id_reference="20" object_id="_90">
<id>116</id>
<edge_type>1</edge_type>
<source_obj>35</source_obj>
<sink_obj>36</sink_obj>
</item>
<item class_id_reference="20" object_id="_91">
<id>118</id>
<edge_type>1</edge_type>
<source_obj>4</source_obj>
<sink_obj>37</sink_obj>
</item>
<item class_id_reference="20" object_id="_92">
<id>121</id>
<edge_type>1</edge_type>
<source_obj>37</source_obj>
<sink_obj>38</sink_obj>
</item>
<item class_id_reference="20" object_id="_93">
<id>122</id>
<edge_type>1</edge_type>
<source_obj>36</source_obj>
<sink_obj>38</sink_obj>
</item>
<item class_id_reference="20" object_id="_94">
<id>124</id>
<edge_type>1</edge_type>
<source_obj>123</source_obj>
<sink_obj>38</sink_obj>
</item>
<item class_id_reference="20" object_id="_95">
<id>125</id>
<edge_type>1</edge_type>
<source_obj>52</source_obj>
<sink_obj>38</sink_obj>
</item>
<item class_id_reference="20" object_id="_96">
<id>128</id>
<edge_type>1</edge_type>
<source_obj>4</source_obj>
<sink_obj>39</sink_obj>
</item>
<item class_id_reference="20" object_id="_97">
<id>129</id>
<edge_type>1</edge_type>
<source_obj>38</source_obj>
<sink_obj>39</sink_obj>
</item>
<item class_id_reference="20" object_id="_98">
<id>258</id>
<edge_type>2</edge_type>
<source_obj>24</source_obj>
<sink_obj>33</sink_obj>
</item>
<item class_id_reference="20" object_id="_99">
<id>259</id>
<edge_type>2</edge_type>
<source_obj>24</source_obj>
<sink_obj>30</sink_obj>
</item>
<item class_id_reference="20" object_id="_100">
<id>260</id>
<edge_type>2</edge_type>
<source_obj>30</source_obj>
<sink_obj>41</sink_obj>
</item>
<item class_id_reference="20" object_id="_101">
<id>261</id>
<edge_type>2</edge_type>
<source_obj>33</source_obj>
<sink_obj>41</sink_obj>
</item>
<item class_id_reference="20" object_id="_102">
<id>262</id>
<edge_type>4</edge_type>
<source_obj>37</source_obj>
<sink_obj>39</sink_obj>
</item>
<item class_id_reference="20" object_id="_103">
<id>263</id>
<edge_type>4</edge_type>
<source_obj>20</source_obj>
<sink_obj>39</sink_obj>
</item>
</edges>
</cdfg>
<cdfg_regions class_id="21" tracking_level="0" version="0">
<count>1</count>
<item_version>0</item_version>
<item class_id="22" tracking_level="1" version="0" object_id="_104">
<mId>1</mId>
<mTag>hls_action</mTag>
<mType>0</mType>
<sub_regions>
<count>0</count>
<item_version>0</item_version>
</sub_regions>
<basic_blocks>
<count>4</count>
<item_version>0</item_version>
<item>24</item>
<item>30</item>
<item>33</item>
<item>41</item>
</basic_blocks>
<mII>-1</mII>
<mDepth>-1</mDepth>
<mMinTripCount>-1</mMinTripCount>
<mMaxTripCount>-1</mMaxTripCount>
<mMinLatency>-1</mMinLatency>
<mMaxLatency>-1</mMaxLatency>
<mIsDfPipe>0</mIsDfPipe>
<mDfPipe class_id="-1"></mDfPipe>
</item>
</cdfg_regions>
<fsm class_id="24" tracking_level="1" version="0" object_id="_105">
<states class_id="25" tracking_level="0" version="0">
<count>2</count>
<item_version>0</item_version>
<item class_id="26" tracking_level="1" version="0" object_id="_106">
<id>1</id>
<operations class_id="27" tracking_level="0" version="0">
<count>24</count>
<item_version>0</item_version>
<item class_id="28" tracking_level="1" version="0" object_id="_107">
<id>6</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_108">
<id>7</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_109">
<id>8</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_110">
<id>9</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_111">
<id>10</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_112">
<id>11</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_113">
<id>12</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_114">
<id>13</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_115">
<id>14</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_116">
<id>15</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_117">
<id>16</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_118">
<id>17</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_119">
<id>18</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_120">
<id>19</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_121">
<id>20</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_122">
<id>21</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_123">
<id>22</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_124">
<id>23</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_125">
<id>25</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_126">
<id>26</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_127">
<id>27</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_128">
<id>28</id>
<stage>2</stage>
<latency>2</latency>
</item>
<item class_id_reference="28" object_id="_129">
<id>31</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_130">
<id>32</id>
<stage>1</stage>
<latency>1</latency>
</item>
</operations>
</item>
<item class_id_reference="26" object_id="_131">
<id>2</id>
<operations>
<count>9</count>
<item_version>0</item_version>
<item class_id_reference="28" object_id="_132">
<id>28</id>
<stage>1</stage>
<latency>2</latency>
</item>
<item class_id_reference="28" object_id="_133">
<id>29</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_134">
<id>34</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_135">
<id>35</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_136">
<id>36</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_137">
<id>37</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_138">
<id>38</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_139">
<id>39</id>
<stage>1</stage>
<latency>1</latency>
</item>
<item class_id_reference="28" object_id="_140">
<id>40</id>
<stage>1</stage>
<latency>1</latency>
</item>
</operations>
</item>
</states>
<transitions class_id="29" tracking_level="0" version="0">
<count>1</count>
<item_version>0</item_version>
<item class_id="30" tracking_level="1" version="0" object_id="_141">
<inState>1</inState>
<outState>2</outState>
<condition class_id="31" tracking_level="0" version="0">
<id>9</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>
</transitions>
</fsm>
<res class_id="-1"></res>
<node_label_latency class_id="35" tracking_level="0" version="0">
<count>22</count>
<item_version>0</item_version>
<item class_id="36" tracking_level="0" version="0">
<first>6</first>
<second class_id="37" tracking_level="0" version="0">
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>7</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>8</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>9</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>20</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>21</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>22</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>25</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>27</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>28</first>
<second>
<first>0</first>
<second>1</second>
</second>
</item>
<item>
<first>29</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>31</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>32</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>34</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>35</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>36</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>37</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>38</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>39</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>40</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
</node_label_latency>
<bblk_ent_exit class_id="38" tracking_level="0" version="0">
<count>4</count>
<item_version>0</item_version>
<item class_id="39" tracking_level="0" version="0">
<first>24</first>
<second class_id="40" tracking_level="0" version="0">
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>30</first>
<second>
<first>0</first>
<second>1</second>
</second>
</item>
<item>
<first>33</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>41</first>
<second>
<first>1</first>
<second>1</second>
</second>
</item>
</bblk_ent_exit>
<regions class_id="41" tracking_level="0" version="0">
<count>0</count>
<item_version>0</item_version>
</regions>
<dp_fu_nodes class_id="42" tracking_level="0" version="0">
<count>17</count>
<item_version>0</item_version>
<item class_id="43" tracking_level="0" version="0">
<first>96</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>6</item>
</second>
</item>
<item>
<first>102</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>7</item>
</second>
</item>
<item>
<first>108</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>20</item>
<item>37</item>
</second>
</item>
<item>
<first>114</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>31</item>
</second>
</item>
<item>
<first>122</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>39</item>
</second>
</item>
<item>
<first>133</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>34</item>
</second>
</item>
<item>
<first>141</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>28</item>
<item>28</item>
</second>
</item>
<item>
<first>152</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>8</item>
</second>
</item>
<item>
<first>163</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>9</item>
</second>
</item>
<item>
<first>174</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>21</item>
</second>
</item>
<item>
<first>184</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>22</item>
</second>
</item>
<item>
<first>190</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>25</item>
</second>
</item>
<item>
<first>201</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>26</item>
</second>
</item>
<item>
<first>212</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>27</item>
</second>
</item>
<item>
<first>223</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>35</item>
</second>
</item>
<item>
<first>227</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>36</item>
</second>
</item>
<item>
<first>231</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>38</item>
</second>
</item>
</dp_fu_nodes>
<dp_fu_nodes_expression class_id="45" tracking_level="0" version="0">
<count>11</count>
<item_version>0</item_version>
<item class_id="46" tracking_level="0" version="0">
<first>act_reg11_part_set_fu_231</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>38</item>
</second>
</item>
<item>
<first>act_reg_Control_flag_fu_174</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>21</item>
</second>
</item>
<item>
<first>act_reg_Data_in_addr_fu_190</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>25</item>
</second>
</item>
<item>
<first>act_reg_Data_in_size_fu_201</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>26</item>
</second>
</item>
<item>
<first>act_reg_Data_out_add_fu_212</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>27</item>
</second>
</item>
<item>
<first>cond_fu_184</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>22</item>
</second>
</item>
<item>
<first>din_gmem_V1_fu_163</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>9</item>
</second>
</item>
<item>
<first>dout_gmem_V3_fu_152</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>8</item>
</second>
</item>
<item>
<first>storemerge_cast1_fu_223</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>35</item>
</second>
</item>
<item>
<first>storemerge_cast_fu_227</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>36</item>
</second>
</item>
<item>
<first>storemerge_phi_fu_133</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>34</item>
</second>
</item>
</dp_fu_nodes_expression>
<dp_fu_nodes_module>
<count>1</count>
<item_version>0</item_version>
<item>
<first>grp_process_action_fu_141</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>28</item>
<item>28</item>
</second>
</item>
</dp_fu_nodes_module>
<dp_fu_nodes_io>
<count>5</count>
<item_version>0</item_version>
<item>
<first>StgValue_25_write_fu_114</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>31</item>
</second>
</item>
<item>
<first>StgValue_34_write_fu_122</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>39</item>
</second>
</item>
<item>
<first>din_gmem_V_read_read_fu_102</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>7</item>
</second>
</item>
<item>
<first>dout_gmem_V_read_read_fu_96</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>6</item>
</second>
</item>
<item>
<first>grp_read_fu_108</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>20</item>
<item>37</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="47" tracking_level="0" version="0">
<count>0</count>
<item_version>0</item_version>
</dp_mem_port_nodes>
<dp_reg_nodes>
<count>7</count>
<item_version>0</item_version>
<item>
<first>129</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>34</item>
</second>
</item>
<item>
<first>244</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>8</item>
</second>
</item>
<item>
<first>249</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>9</item>
</second>
</item>
<item>
<first>254</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>22</item>
</second>
</item>
<item>
<first>258</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>25</item>
</second>
</item>
<item>
<first>263</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>26</item>
</second>
</item>
<item>
<first>268</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>27</item>
</second>
</item>
</dp_reg_nodes>
<dp_regname_nodes>
<count>7</count>
<item_version>0</item_version>
<item>
<first>act_reg_Data_in_addr_reg_258</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>25</item>
</second>
</item>
<item>
<first>act_reg_Data_in_size_reg_263</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>26</item>
</second>
</item>
<item>
<first>act_reg_Data_out_add_reg_268</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>27</item>
</second>
</item>
<item>
<first>cond_reg_254</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>22</item>
</second>
</item>
<item>
<first>din_gmem_V1_reg_249</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>9</item>
</second>
</item>
<item>
<first>dout_gmem_V3_reg_244</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>8</item>
</second>
</item>
<item>
<first>storemerge_reg_129</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>34</item>
</second>
</item>
</dp_regname_nodes>
<dp_reg_phi>
<count>1</count>
<item_version>0</item_version>
<item>
<first>129</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>34</item>
</second>
</item>
</dp_reg_phi>
<dp_regname_phi>
<count>1</count>
<item_version>0</item_version>
<item>
<first>storemerge_reg_129</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>34</item>
</second>
</item>
</dp_regname_phi>
<dp_port_io_nodes class_id="48" tracking_level="0" version="0">
<count>5</count>
<item_version>0</item_version>
<item class_id="49" tracking_level="0" version="0">
<first>Action_Config</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>write</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>31</item>
</second>
</item>
</second>
</item>
<item>
<first>act_reg</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>read</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>20</item>
<item>37</item>
</second>
</item>
<item>
<first>write</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>39</item>
</second>
</item>
</second>
</item>
<item>
<first>din_gmem_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>7</item>
</second>
</item>
</second>
</item>
<item>
<first>dout_gmem_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>6</item>
</second>
</item>
</second>
</item>
<item>
<first>host_mem</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>call</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>28</item>
</second>
</item>
</second>
</item>
</dp_port_io_nodes>
<port2core class_id="50" 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>
|
with Ada.Streams;
package XML.Streams is
pragma Preelaborate;
function Create (
Stream : not null access Ada.Streams.Root_Stream_Type'Class;
Encoding : Encoding_Type := No_Encoding;
URI : String := "")
return Reader;
function Create (
Stream : not null access Ada.Streams.Root_Stream_Type'Class;
Encoding : Encoding_Type := No_Encoding)
return Writer;
end XML.Streams;
|
--
-- Copyright (C) 2020, AdaCore
--
-- This spec has been automatically generated from STM32F0x8.svd
pragma Ada_2012;
pragma Style_Checks (Off);
with System;
-- STM32F0x8
package Interfaces.STM32 is
pragma Preelaborate;
pragma No_Elaboration_Code_All;
---------------
-- Base type --
---------------
type UInt32 is new Interfaces.Unsigned_32;
type UInt16 is new Interfaces.Unsigned_16;
type Byte is new Interfaces.Unsigned_8;
type Bit is mod 2**1
with Size => 1;
type UInt2 is mod 2**2
with Size => 2;
type UInt3 is mod 2**3
with Size => 3;
type UInt4 is mod 2**4
with Size => 4;
type UInt5 is mod 2**5
with Size => 5;
type UInt6 is mod 2**6
with Size => 6;
type UInt7 is mod 2**7
with Size => 7;
type UInt9 is mod 2**9
with Size => 9;
type UInt10 is mod 2**10
with Size => 10;
type UInt11 is mod 2**11
with Size => 11;
type UInt12 is mod 2**12
with Size => 12;
type UInt13 is mod 2**13
with Size => 13;
type UInt14 is mod 2**14
with Size => 14;
type UInt15 is mod 2**15
with Size => 15;
type UInt17 is mod 2**17
with Size => 17;
type UInt18 is mod 2**18
with Size => 18;
type UInt19 is mod 2**19
with Size => 19;
type UInt20 is mod 2**20
with Size => 20;
type UInt21 is mod 2**21
with Size => 21;
type UInt22 is mod 2**22
with Size => 22;
type UInt23 is mod 2**23
with Size => 23;
type UInt24 is mod 2**24
with Size => 24;
type UInt25 is mod 2**25
with Size => 25;
type UInt26 is mod 2**26
with Size => 26;
type UInt27 is mod 2**27
with Size => 27;
type UInt28 is mod 2**28
with Size => 28;
type UInt29 is mod 2**29
with Size => 29;
type UInt30 is mod 2**30
with Size => 30;
type UInt31 is mod 2**31
with Size => 31;
--------------------
-- Base addresses --
--------------------
CRC_Base : constant System.Address := System'To_Address (16#40023000#);
GPIOF_Base : constant System.Address := System'To_Address (16#48001400#);
GPIOD_Base : constant System.Address := System'To_Address (16#48000C00#);
GPIOC_Base : constant System.Address := System'To_Address (16#48000800#);
GPIOB_Base : constant System.Address := System'To_Address (16#48000400#);
GPIOE_Base : constant System.Address := System'To_Address (16#48001000#);
GPIOA_Base : constant System.Address := System'To_Address (16#48000000#);
SPI1_Base : constant System.Address := System'To_Address (16#40013000#);
SPI2_Base : constant System.Address := System'To_Address (16#40003800#);
PWR_Base : constant System.Address := System'To_Address (16#40007000#);
I2C1_Base : constant System.Address := System'To_Address (16#40005400#);
I2C2_Base : constant System.Address := System'To_Address (16#40005800#);
IWDG_Base : constant System.Address := System'To_Address (16#40003000#);
WWDG_Base : constant System.Address := System'To_Address (16#40002C00#);
TIM1_Base : constant System.Address := System'To_Address (16#40012C00#);
TIM2_Base : constant System.Address := System'To_Address (16#40000000#);
TIM3_Base : constant System.Address := System'To_Address (16#40000400#);
TIM14_Base : constant System.Address := System'To_Address (16#40002000#);
TIM6_Base : constant System.Address := System'To_Address (16#40001000#);
TIM7_Base : constant System.Address := System'To_Address (16#40001400#);
EXTI_Base : constant System.Address := System'To_Address (16#40010400#);
NVIC_Base : constant System.Address := System'To_Address (16#E000E100#);
DMA1_Base : constant System.Address := System'To_Address (16#40020000#);
DMA2_Base : constant System.Address := System'To_Address (16#40020400#);
RCC_Base : constant System.Address := System'To_Address (16#40021000#);
SYSCFG_COMP_Base : constant System.Address := System'To_Address (16#40010000#);
ADC_Base : constant System.Address := System'To_Address (16#40012400#);
USART1_Base : constant System.Address := System'To_Address (16#40013800#);
USART2_Base : constant System.Address := System'To_Address (16#40004400#);
USART3_Base : constant System.Address := System'To_Address (16#40004800#);
USART4_Base : constant System.Address := System'To_Address (16#40004C00#);
USART6_Base : constant System.Address := System'To_Address (16#40011400#);
USART7_Base : constant System.Address := System'To_Address (16#40011800#);
USART8_Base : constant System.Address := System'To_Address (16#40011C00#);
USART5_Base : constant System.Address := System'To_Address (16#40005000#);
RTC_Base : constant System.Address := System'To_Address (16#40002800#);
TIM15_Base : constant System.Address := System'To_Address (16#40014000#);
TIM16_Base : constant System.Address := System'To_Address (16#40014400#);
TIM17_Base : constant System.Address := System'To_Address (16#40014800#);
TSC_Base : constant System.Address := System'To_Address (16#40024000#);
CEC_Base : constant System.Address := System'To_Address (16#40007800#);
Flash_Base : constant System.Address := System'To_Address (16#40022000#);
DBGMCU_Base : constant System.Address := System'To_Address (16#40015800#);
USB_Base : constant System.Address := System'To_Address (16#40005C00#);
CRS_Base : constant System.Address := System'To_Address (16#40006C00#);
CAN_Base : constant System.Address := System'To_Address (16#40006400#);
DAC_Base : constant System.Address := System'To_Address (16#40007400#);
SCB_Base : constant System.Address := System'To_Address (16#E000ED00#);
STK_Base : constant System.Address := System'To_Address (16#E000E010#);
end Interfaces.STM32;
|
-- trivial_example.adb
-- A very simple example of the use of Parse_Args
-- Copyright (c) 2015, 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.
with Ada.Text_IO; use Ada.Text_IO;
with Parse_Args; use Parse_Args;
procedure Trivial_Example is
AP : Argument_Parser;
begin
AP.Add_Option(Make_Boolean_Option(False), "help", 'h',
Usage => "Display this help text");
AP.Add_Option(Make_Boolean_Option(False), "foo", 'f',
Usage => "The foo option");
AP.Set_Prologue("A demonstration of the Parse_Args library.");
AP.Parse_Command_Line;
if AP.Parse_Success then
if AP.Boolean_Value("help") then
AP.Usage;
else
Put("Option foo is: ");
Put((if AP.Boolean_Value("foo") then "true" else "false"));
New_Line;
end if;
else
Put_Line("Error while parsing command-line arguments: ");
Put_Line(AP.Parse_Message);
end if;
end Trivial_Example;
|
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- Ada Modeling Framework --
-- --
-- Runtime Library Component --
-- --
------------------------------------------------------------------------------
-- --
-- Copyright © 2012, Vadim Godunko <vgodunko@gmail.com> --
-- All rights reserved. --
-- --
-- Redistribution and use in source and binary forms, with or without --
-- modification, are permitted provided that the following conditions --
-- are met: --
-- --
-- * Redistributions of source code must retain the above copyright --
-- notice, this list of conditions and the following disclaimer. --
-- --
-- * Redistributions in binary form must reproduce the above copyright --
-- notice, this list of conditions and the following disclaimer in the --
-- documentation and/or other materials provided with the distribution. --
-- --
-- * Neither the name of the Vadim Godunko, IE nor the names of its --
-- contributors may be used to endorse or promote products derived from --
-- this software without specific prior written permission. --
-- --
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS --
-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT --
-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR --
-- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT --
-- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, --
-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED --
-- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR --
-- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF --
-- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING --
-- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS --
-- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --
-- --
------------------------------------------------------------------------------
-- $Revision$ $Date$
------------------------------------------------------------------------------
-- This file is generated, don't edit it.
------------------------------------------------------------------------------
with AMF.Elements;
with AMF.Internals.Helpers;
with AMF.Internals.Tables.Utp_Attributes;
with AMF.UML.Dependencies;
with AMF.Visitors.Utp_Iterators;
with AMF.Visitors.Utp_Visitors;
with League.Strings.Internals;
with Matreshka.Internals.Strings;
package body AMF.Internals.Utp_Test_Objectives is
-------------------------
-- Get_Base_Dependency --
-------------------------
overriding function Get_Base_Dependency
(Self : not null access constant Utp_Test_Objective_Proxy)
return AMF.UML.Dependencies.UML_Dependency_Access is
begin
return
AMF.UML.Dependencies.UML_Dependency_Access
(AMF.Internals.Helpers.To_Element
(AMF.Internals.Tables.Utp_Attributes.Internal_Get_Base_Dependency
(Self.Element)));
end Get_Base_Dependency;
-------------------------
-- Set_Base_Dependency --
-------------------------
overriding procedure Set_Base_Dependency
(Self : not null access Utp_Test_Objective_Proxy;
To : AMF.UML.Dependencies.UML_Dependency_Access) is
begin
AMF.Internals.Tables.Utp_Attributes.Internal_Set_Base_Dependency
(Self.Element,
AMF.Internals.Helpers.To_Element
(AMF.Elements.Element_Access (To)));
end Set_Base_Dependency;
------------------
-- Get_Priority --
------------------
overriding function Get_Priority
(Self : not null access constant Utp_Test_Objective_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.Utp_Attributes.Internal_Get_Priority (Self.Element);
begin
if Aux = null then
return (Is_Empty => True);
else
return (False, League.Strings.Internals.Create (Aux));
end if;
end;
end Get_Priority;
------------------
-- Set_Priority --
------------------
overriding procedure Set_Priority
(Self : not null access Utp_Test_Objective_Proxy;
To : AMF.Optional_String) is
begin
if To.Is_Empty then
AMF.Internals.Tables.Utp_Attributes.Internal_Set_Priority
(Self.Element, null);
else
AMF.Internals.Tables.Utp_Attributes.Internal_Set_Priority
(Self.Element,
League.Strings.Internals.Internal (To.Value));
end if;
end Set_Priority;
-------------------
-- Enter_Element --
-------------------
overriding procedure Enter_Element
(Self : not null access constant Utp_Test_Objective_Proxy;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Control : in out AMF.Visitors.Traverse_Control) is
begin
if Visitor in AMF.Visitors.Utp_Visitors.Utp_Visitor'Class then
AMF.Visitors.Utp_Visitors.Utp_Visitor'Class
(Visitor).Enter_Test_Objective
(AMF.Utp.Test_Objectives.Utp_Test_Objective_Access (Self),
Control);
end if;
end Enter_Element;
-------------------
-- Leave_Element --
-------------------
overriding procedure Leave_Element
(Self : not null access constant Utp_Test_Objective_Proxy;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Control : in out AMF.Visitors.Traverse_Control) is
begin
if Visitor in AMF.Visitors.Utp_Visitors.Utp_Visitor'Class then
AMF.Visitors.Utp_Visitors.Utp_Visitor'Class
(Visitor).Leave_Test_Objective
(AMF.Utp.Test_Objectives.Utp_Test_Objective_Access (Self),
Control);
end if;
end Leave_Element;
-------------------
-- Visit_Element --
-------------------
overriding procedure Visit_Element
(Self : not null access constant Utp_Test_Objective_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.Utp_Iterators.Utp_Iterator'Class then
AMF.Visitors.Utp_Iterators.Utp_Iterator'Class
(Iterator).Visit_Test_Objective
(Visitor,
AMF.Utp.Test_Objectives.Utp_Test_Objective_Access (Self),
Control);
end if;
end Visit_Element;
end AMF.Internals.Utp_Test_Objectives;
|
with Ada.Strings; use Ada.Strings;
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Containers; use Ada.Containers;
with Ada.Containers.Vectors;
with Ada.Integer_text_IO;
procedure Main is
package Vector_Pkg is new Vectors(Index_Type => Natural,
Element_Type => Unbounded_String);
package Vectors_Sorting is new Vector_Pkg.Generic_Sorting;
use Vector_Pkg;
use Vectors_Sorting;
InputVector, OxygenVector, CO2Vector : Vector;
F : File_Type;
File_Name : constant String := "Day 3.txt";
String_Length: Natural;
Gamma : Natural := 0;
Epsilon : Natural := 0;
Midway_Char : String := " ";
j : Natural := 0;
OxyRating : Natural;
CO2Rating : Natural;
begin
Open(F, In_File, File_Name);
while not End_Of_File(F) loop
InputVector.Append(New_Item => To_Unbounded_String(Get_Line(F)));
end loop;
Close(F);
Vectors_Sorting.Sort(Container => InputVector);
String_Length := Length(InputVector.Element(Index => 0));
declare
Counter_Array : array (1 .. String_Length) of Integer := (others => 0);
begin
for E of InputVector loop
for i in 1 .. String_Length loop
Counter_Array(i) := Counter_Array(i) + Integer'Value(To_String(E)(i..i));
end loop;
end loop;
for i in 1 .. String_Length loop
if Counter_Array(i) > Natural(InputVector.Length)/2 then
Gamma := Gamma + 2**(String_Length-i);
else
Epsilon := Epsilon + 2**(String_Length-i);
end if;
end loop;
Put_Line(Natural'Image(Gamma * Epsilon));
OxygenVector := InputVector.Copy;
CO2Vector := InputVector.Copy;
OxyLoop:
for i in 1 .. String_Length loop
Midway_Char := To_String(OxygenVector.Element(Natural((OxygenVector.Length) / 2)))(i..i);
j := 0;
while j < Natural(OxygenVector.Length) loop
if Midway_Char = To_String(OxygenVector.Element(j))(i..i) then
j := j + 1;
else
OxygenVector.Delete(Index => j);
end if;
end loop;
if Natural(OxygenVector.Length) = 1 then
OxyRating := Natural'Value("2#" & To_String(OxygenVector.First_Element) & '#');
exit OxyLoop;
end if;
end loop OxyLoop;
CO2Loop:
for i in 1 .. String_Length loop
Midway_Char := To_String(CO2Vector.Element(Natural((CO2Vector.Length) / 2)))(i..i);
j := 0;
while j < Natural(CO2Vector.Length) loop
if Midway_Char /= To_String(CO2Vector.Element(j))(i..i) then
j := j + 1;
else
CO2Vector.Delete(Index => j);
end if;
end loop;
if Natural(CO2Vector.Length) = 1 then
CO2Rating := Natural'Value("2#" & To_String(CO2Vector.First_Element) & '#');
exit CO2Loop;
end if;
end loop CO2Loop;
Put_Line(Natural'Image(OxyRating * CO2Rating));
end;
end Main;
|
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- A D A . A S S E R T --
-- --
-- B o d y --
-- --
-- Copyright (C) 2007-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. --
-- --
------------------------------------------------------------------------------
package body Ada.Assertions with
SPARK_Mode
is
------------
-- Assert --
------------
procedure Assert (Check : Boolean) is
begin
if Check = False then
raise Ada.Assertions.Assertion_Error;
end if;
end Assert;
procedure Assert (Check : Boolean; Message : String) is
begin
if Check = False then
raise Ada.Assertions.Assertion_Error with Message;
end if;
end Assert;
end Ada.Assertions;
|
separate (SPARKNaCl)
procedure Sanitize_GF32 (R : out GF32) is
begin
R := GF32'(others => 0);
pragma Inspection_Point (R); -- See RM H3.2 (9)
-- Add target-dependent code here to
-- 1. flush and invalidate data cache,
-- 2. wait until writes have committed (e.g. a memory-fence instruction)
-- 3. whatever else is required.
end Sanitize_GF32;
|
-- Copyright 2008-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
type Data_T is (One, Two, Three);
pragma Atomic (Data_T);
Data_Flag : Data_T := One;
procedure Increment is
begin
if Data_Flag = Data_T'Last then
Data_Flag := Data_T'First;
else
Data_Flag := Data_T'Succ (Data_Flag);
end if;
end Increment;
function Is_First return Boolean is
begin
return Data_Flag = Data_T'First;
end Is_First;
end Pck;
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.