CombinedText
stringlengths
4
3.42M
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- G N A T . C A S E _ U T I L -- -- -- -- B o d y -- -- -- -- Copyright (C) 1995-2019, AdaCore -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 3, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. -- -- -- -- As a special exception under Section 7 of GPL version 3, you are granted -- -- additional permissions described in the GCC Runtime Library Exception, -- -- version 3.1, as published by the Free Software Foundation. -- -- -- -- You should have received a copy of the GNU General Public License and -- -- a copy of the GCC Runtime Library Exception along with this program; -- -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see -- -- <http://www.gnu.org/licenses/>. -- -- -- -- GNAT was originally developed by the GNAT team at New York University. -- -- Extensive contributions were provided by Ada Core Technologies Inc. -- -- -- ------------------------------------------------------------------------------ -- This is a dummy body, required because if we remove the body we have -- bootstrap path problems (this unit used to have a body, and if we do not -- supply a dummy body, the old incorrect body is picked up during the -- bootstrap process. package body GNAT.Case_Util is end GNAT.Case_Util;
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- S Y S T E M . V X W O R K S -- -- -- -- S p e c -- -- -- -- Copyright (C) 1998-2005 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 the PPC VxWorks version of this package. with Interfaces.C; package System.VxWorks is pragma Preelaborate; package IC renames Interfaces.C; -- Floating point context record. PPC version FP_NUM_DREGS : constant := 32; type Fpr_Array is array (1 .. FP_NUM_DREGS) of IC.double; type FP_CONTEXT is record fpr : Fpr_Array; fpcsr : IC.int; pad : IC.int; end record; pragma Convention (C, FP_CONTEXT); Num_HW_Interrupts : constant := 256; end System.VxWorks;
-- Copyright 2014-2015 Free Software Foundation, Inc. -- -- This program is free software; you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation; either version 3 of the License, or -- (at your option) any later version. -- -- This program is distributed in the hope that it will be useful, -- but WITHOUT ANY WARRANTY; without even the implied warranty of -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -- GNU General Public License for more details. -- -- You should have received a copy of the GNU General Public License -- along with this program. If not, see <http://www.gnu.org/licenses/>. package body Pck is function New_Bounded (Low, High : Integer) return Bounded is Result : Bounded (Low .. High); begin for J in Low .. High loop Result (J) := J; end loop; return Result; end New_Bounded; procedure Do_Nothing (A : System.Address) is begin null; end Do_Nothing; end Pck;
with interfaces.c; package impact.d3.collision.quantized_Bvh -- -- The impact.d3.collision.quantized_Bvh class stores an AABB tree that can be quickly traversed on CPU and Cell SPU. -- -- It is used by the impact.d3.Shape.concave.triangle_mesh.bvh as midphase, and by the btMultiSapBroadphase. -- It is recommended to use quantization for better performance and lower memory requirements. -- is type Item is tagged private; type unsigned_shorts is array (Positive range <>) of interfaces.c.unsigned_short; type btBvhSubtreeInfoData is record m_rootNodeIndex, m_subtreeSize : Integer; m_quantizedAabbMin : unsigned_shorts (1 .. 3); m_quantizedAabbMax : unsigned_shorts (1 .. 3); end record; subtype Double_Vector_3 is math.Vector_3; type optimizedNodeDoubleData is record m_aabbMinOrg : Double_Vector_3; m_aabbMaxOrg : Double_Vector_3; m_escapeIndex, m_subPart, m_triangleIndex : Integer; -- char m_pad[4]; end record; type NodeData is record m_quantizedAabbMin, m_quantizedAabbMax : unsigned_shorts (1 .. 3); m_escapeIndexOrTriangleIndex : Integer; end record; type DoubleData is record m_bvhAabbMin, m_bvhAabbMax, m_bvhQuantization : Double_Vector_3; m_curNodeIndex, m_useQuantization, m_numContiguousLeafNodes, m_numQuantizedContiguousNodes : Integer; m_contiguousNodesPtr : access optimizedNodeDoubleData; m_quantizedContiguousNodesPtr : access NodeData; m_traversalMode, m_numSubtreeHeaders : Integer; m_subTreeInfoPtr : access btBvhSubtreeInfoData; end record; subtype Data is Double_Vector_3; subtype optimizedNodeData is optimizedNodeDoubleData; DataName : constant String := "impact.d3.collision.quantized_Bvh.DoubleData"; -- ///for code readability: -- typedef btAlignedObjectArray<impact.d3.collision.quantized_Bvh.optimizedNode> NodeArray; -- typedef btAlignedObjectArray<impact.d3.collision.quantized_BvhNode> QuantizedNodeArray; -- typedef btAlignedObjectArray<btBvhSubtreeInfo> BvhSubtreeInfoArray; -- MAX_SUBTREE_SIZE_IN_BYTES : constant := 2048; -- -- Note: currently we have 16 bytes per quantized node MAX_NUM_PARTS_IN_BITS : constant := 10; -- -- 10 gives the potential for 1024 parts, with at most 2^21 (2097152) (minus one -- actually) triangles each (since the sign bit is reserved -- impact.d3.collision.quantized_BvhNode is a compressed aabb node, 16 bytes. -- Node can be used for leafnode or internal node. Leafnodes can point to 32-bit triangle index (non-negative range). -- type Node is record m_quantizedAabbMin : unsigned_shorts (1 .. 3); -- 6 bytes m_quantizedAabbMax : unsigned_shorts (1 .. 3); -- 6 bytes m_escapeIndexOrTriangleIndex : Integer; -- 4 bytes end record; -- -- struct impact.d3.collision.quantized_BvhNode -- { -- -- bool isLeafNode() const -- { -- //skipindex is negative (internal node), triangleindex >=0 (leafnode) -- return (m_escapeIndexOrTriangleIndex >= 0); -- } -- int getEscapeIndex() const -- { -- btAssert(!isLeafNode()); -- return -m_escapeIndexOrTriangleIndex; -- } -- int getTriangleIndex() const -- { -- btAssert(isLeafNode()); -- // Get only the lower bits where the triangle index is stored -- return (m_escapeIndexOrTriangleIndex&~((~0)<<(31-MAX_NUM_PARTS_IN_BITS))); -- } -- int getPartId() const -- { -- btAssert(isLeafNode()); -- // Get only the highest bits where the part index is stored -- return (m_escapeIndexOrTriangleIndex>>(31-MAX_NUM_PARTS_IN_BITS)); -- } -- } -- ; private type Item is tagged record null; end record; procedure dummy; end impact.d3.collision.quantized_Bvh; -- /// impact.d3.collision.quantized_Bvh.optimizedNode contains both internal and leaf node information. -- /// Total node size is 44 bytes / node. You can use the compressed version of 16 bytes. -- -- ATTRIBUTE_ALIGNED16 (struct) impact.d3.collision.quantized_Bvh.optimizedNode -- { -- BT_DECLARE_ALIGNED_ALLOCATOR(); -- -- //32 bytes -- impact.d3.Vector m_aabbMinOrg; -- impact.d3.Vector m_aabbMaxOrg; -- -- //4 -- int m_escapeIndex; -- -- //8 -- //for child nodes -- int m_subPart; -- int m_triangleIndex; -- -- //pad the size to 64 bytes -- char m_padding[20]; -- }; -- ///btBvhSubtreeInfo provides info to gather a subtree of limited size -- -- ATTRIBUTE_ALIGNED16(class) btBvhSubtreeInfo -- { -- public: -- BT_DECLARE_ALIGNED_ALLOCATOR(); -- -- //12 bytes -- unsigned short int m_quantizedAabbMin[3]; -- unsigned short int m_quantizedAabbMax[3]; -- //4 bytes, points to the root of the subtree -- int m_rootNodeIndex; -- //4 bytes -- int m_subtreeSize; -- int m_padding[3]; -- -- btBvhSubtreeInfo() -- { -- //memset(&m_padding[0], 0, sizeof(m_padding)); -- } -- -- -- void setAabbFromQuantizeNode(const impact.d3.collision.quantized_BvhNode& quantizedNode) -- { -- m_quantizedAabbMin[0] = quantizedNode.m_quantizedAabbMin[0]; -- m_quantizedAabbMin[1] = quantizedNode.m_quantizedAabbMin[1]; -- m_quantizedAabbMin[2] = quantizedNode.m_quantizedAabbMin[2]; -- m_quantizedAabbMax[0] = quantizedNode.m_quantizedAabbMax[0]; -- m_quantizedAabbMax[1] = quantizedNode.m_quantizedAabbMax[1]; -- m_quantizedAabbMax[2] = quantizedNode.m_quantizedAabbMax[2]; -- } -- } -- ; -- class btNodeOverlapCallback -- { -- public: -- virtual ~btNodeOverlapCallback() {}; -- -- virtual void processNode(int subPart, int triangleIndex) = 0; -- }; -- class impact.d3.collision.quantized_Bvh -- { -- public: -- enum btTraversalMode -- { -- TRAVERSAL_STACKLESS = 0, -- TRAVERSAL_STACKLESS_CACHE_FRIENDLY, -- TRAVERSAL_RECURSIVE -- }; -- -- protected: -- -- -- impact.d3.Vector m_bvhAabbMin; -- impact.d3.Vector m_bvhAabbMax; -- impact.d3.Vector m_bvhQuantization; -- -- int m_bulletVersion; //for serialization versioning. It could also be used to detect endianess. -- -- int m_curNodeIndex; -- //quantization data -- bool m_useQuantization; -- -- -- -- NodeArray m_leafNodes; -- NodeArray m_contiguousNodes; -- QuantizedNodeArray m_quantizedLeafNodes; -- QuantizedNodeArray m_quantizedContiguousNodes; -- -- btTraversalMode m_traversalMode; -- BvhSubtreeInfoArray m_SubtreeHeaders; -- -- //This is only used for serialization so we don't have to add serialization directly to btAlignedObjectArray -- mutable int m_subtreeHeaderCount; -- -- -- -- -- -- ///two versions, one for quantized and normal nodes. This allows code-reuse while maintaining readability (no template/macro!) -- ///this might be refactored into a virtual, it is usually not calculated at run-time -- void setInternalNodeAabbMin(int nodeIndex, const impact.d3.Vector& aabbMin) -- { -- if (m_useQuantization) -- { -- quantize(&m_quantizedContiguousNodes[nodeIndex].m_quantizedAabbMin[0] ,aabbMin,0); -- } else -- { -- m_contiguousNodes[nodeIndex].m_aabbMinOrg = aabbMin; -- -- } -- } -- void setInternalNodeAabbMax(int nodeIndex,const impact.d3.Vector& aabbMax) -- { -- if (m_useQuantization) -- { -- quantize(&m_quantizedContiguousNodes[nodeIndex].m_quantizedAabbMax[0],aabbMax,1); -- } else -- { -- m_contiguousNodes[nodeIndex].m_aabbMaxOrg = aabbMax; -- } -- } -- -- impact.d3.Vector getAabbMin(int nodeIndex) const -- { -- if (m_useQuantization) -- { -- return unQuantize(&m_quantizedLeafNodes[nodeIndex].m_quantizedAabbMin[0]); -- } -- //non-quantized -- return m_leafNodes[nodeIndex].m_aabbMinOrg; -- -- } -- impact.d3.Vector getAabbMax(int nodeIndex) const -- { -- if (m_useQuantization) -- { -- return unQuantize(&m_quantizedLeafNodes[nodeIndex].m_quantizedAabbMax[0]); -- } -- //non-quantized -- return m_leafNodes[nodeIndex].m_aabbMaxOrg; -- -- } -- -- -- void setInternalNodeEscapeIndex(int nodeIndex, int escapeIndex) -- { -- if (m_useQuantization) -- { -- m_quantizedContiguousNodes[nodeIndex].m_escapeIndexOrTriangleIndex = -escapeIndex; -- } -- else -- { -- m_contiguousNodes[nodeIndex].m_escapeIndex = escapeIndex; -- } -- -- } -- -- void mergeInternalNodeAabb(int nodeIndex,const impact.d3.Vector& newAabbMin,const impact.d3.Vector& newAabbMax) -- { -- if (m_useQuantization) -- { -- unsigned short int quantizedAabbMin[3]; -- unsigned short int quantizedAabbMax[3]; -- quantize(quantizedAabbMin,newAabbMin,0); -- quantize(quantizedAabbMax,newAabbMax,1); -- for (int i=0;i<3;i++) -- { -- if (m_quantizedContiguousNodes[nodeIndex].m_quantizedAabbMin[i] > quantizedAabbMin[i]) -- m_quantizedContiguousNodes[nodeIndex].m_quantizedAabbMin[i] = quantizedAabbMin[i]; -- -- if (m_quantizedContiguousNodes[nodeIndex].m_quantizedAabbMax[i] < quantizedAabbMax[i]) -- m_quantizedContiguousNodes[nodeIndex].m_quantizedAabbMax[i] = quantizedAabbMax[i]; -- -- } -- } else -- { -- //non-quantized -- m_contiguousNodes[nodeIndex].m_aabbMinOrg.setMin(newAabbMin); -- m_contiguousNodes[nodeIndex].m_aabbMaxOrg.setMax(newAabbMax); -- } -- } -- -- void swapLeafNodes(int firstIndex,int secondIndex); -- -- void assignInternalNodeFromLeafNode(int internalNode,int leafNodeIndex); -- -- protected: -- -- -- -- void buildTree (int startIndex,int endIndex); -- -- int calcSplittingAxis(int startIndex,int endIndex); -- -- int sortAndCalcSplittingIndex(int startIndex,int endIndex,int splitAxis); -- -- void walkStacklessTree(btNodeOverlapCallback* nodeCallback,const impact.d3.Vector& aabbMin,const impact.d3.Vector& aabbMax) const; -- -- void walkStacklessQuantizedTreeAgainstRay(btNodeOverlapCallback* nodeCallback, const impact.d3.Vector& raySource, const impact.d3.Vector& rayTarget, const impact.d3.Vector& aabbMin, const impact.d3.Vector& aabbMax, int startNodeIndex,int endNodeIndex) const; -- void walkStacklessQuantizedTree(btNodeOverlapCallback* nodeCallback,unsigned short int* quantizedQueryAabbMin,unsigned short int* quantizedQueryAabbMax,int startNodeIndex,int endNodeIndex) const; -- void walkStacklessTreeAgainstRay(btNodeOverlapCallback* nodeCallback, const impact.d3.Vector& raySource, const impact.d3.Vector& rayTarget, const impact.d3.Vector& aabbMin, const impact.d3.Vector& aabbMax, int startNodeIndex,int endNodeIndex) const; -- -- ///tree traversal designed for small-memory processors like PS3 SPU -- void walkStacklessQuantizedTreeCacheFriendly(btNodeOverlapCallback* nodeCallback,unsigned short int* quantizedQueryAabbMin,unsigned short int* quantizedQueryAabbMax) const; -- -- ///use the 16-byte stackless 'skipindex' node tree to do a recursive traversal -- void walkRecursiveQuantizedTreeAgainstQueryAabb(const impact.d3.collision.quantized_BvhNode* currentNode,btNodeOverlapCallback* nodeCallback,unsigned short int* quantizedQueryAabbMin,unsigned short int* quantizedQueryAabbMax) const; -- -- ///use the 16-byte stackless 'skipindex' node tree to do a recursive traversal -- void walkRecursiveQuantizedTreeAgainstQuantizedTree(const impact.d3.collision.quantized_BvhNode* treeNodeA,const impact.d3.collision.quantized_BvhNode* treeNodeB,btNodeOverlapCallback* nodeCallback) const; -- -- -- -- -- void updateSubtreeHeaders(int leftChildNodexIndex,int rightChildNodexIndex); -- -- public: -- -- BT_DECLARE_ALIGNED_ALLOCATOR(); -- -- impact.d3.collision.quantized_Bvh(); -- -- virtual ~impact.d3.collision.quantized_Bvh(); -- -- -- ///***************************************** expert/internal use only ************************* -- void setQuantizationValues(const impact.d3.Vector& bvhAabbMin,const impact.d3.Vector& bvhAabbMax,impact.d3.Scalar quantizationMargin=impact.d3.Scalar(1.0)); -- QuantizedNodeArray& getLeafNodeArray() { return m_quantizedLeafNodes; } -- ///buildInternal is expert use only: assumes that setQuantizationValues and LeafNodeArray are initialized -- void buildInternal(); -- ///***************************************** expert/internal use only ************************* -- -- void reportAabbOverlappingNodex(btNodeOverlapCallback* nodeCallback,const impact.d3.Vector& aabbMin,const impact.d3.Vector& aabbMax) const; -- void reportRayOverlappingNodex (btNodeOverlapCallback* nodeCallback, const impact.d3.Vector& raySource, const impact.d3.Vector& rayTarget) const; -- void reportBoxCastOverlappingNodex(btNodeOverlapCallback* nodeCallback, const impact.d3.Vector& raySource, const impact.d3.Vector& rayTarget, const impact.d3.Vector& aabbMin,const impact.d3.Vector& aabbMax) const; -- -- SIMD_FORCE_INLINE void quantize(unsigned short* out, const impact.d3.Vector& point,int isMax) const -- { -- -- btAssert(m_useQuantization); -- -- btAssert(point.getX() <= m_bvhAabbMax.getX()); -- btAssert(point.getY() <= m_bvhAabbMax.getY()); -- btAssert(point.getZ() <= m_bvhAabbMax.getZ()); -- -- btAssert(point.getX() >= m_bvhAabbMin.getX()); -- btAssert(point.getY() >= m_bvhAabbMin.getY()); -- btAssert(point.getZ() >= m_bvhAabbMin.getZ()); -- -- impact.d3.Vector v = (point - m_bvhAabbMin) * m_bvhQuantization; -- ///Make sure rounding is done in a way that unQuantize(quantizeWithClamp(...)) is conservative -- ///end-points always set the first bit, so that they are sorted properly (so that neighbouring AABBs overlap properly) -- ///@todo: double-check this -- if (isMax) -- { -- out[0] = (unsigned short) (((unsigned short)(v.getX()+impact.d3.Scalar(1.)) | 1)); -- out[1] = (unsigned short) (((unsigned short)(v.getY()+impact.d3.Scalar(1.)) | 1)); -- out[2] = (unsigned short) (((unsigned short)(v.getZ()+impact.d3.Scalar(1.)) | 1)); -- } else -- { -- out[0] = (unsigned short) (((unsigned short)(v.getX()) & 0xfffe)); -- out[1] = (unsigned short) (((unsigned short)(v.getY()) & 0xfffe)); -- out[2] = (unsigned short) (((unsigned short)(v.getZ()) & 0xfffe)); -- } -- -- -- #ifdef DEBUG_CHECK_DEQUANTIZATION -- impact.d3.Vector newPoint = unQuantize(out); -- if (isMax) -- { -- if (newPoint.getX() < point.getX()) -- { -- printf("unconservative X, diffX = %f, oldX=%f,newX=%f\n",newPoint.getX()-point.getX(), newPoint.getX(),point.getX()); -- } -- if (newPoint.getY() < point.getY()) -- { -- printf("unconservative Y, diffY = %f, oldY=%f,newY=%f\n",newPoint.getY()-point.getY(), newPoint.getY(),point.getY()); -- } -- if (newPoint.getZ() < point.getZ()) -- { -- -- printf("unconservative Z, diffZ = %f, oldZ=%f,newZ=%f\n",newPoint.getZ()-point.getZ(), newPoint.getZ(),point.getZ()); -- } -- } else -- { -- if (newPoint.getX() > point.getX()) -- { -- printf("unconservative X, diffX = %f, oldX=%f,newX=%f\n",newPoint.getX()-point.getX(), newPoint.getX(),point.getX()); -- } -- if (newPoint.getY() > point.getY()) -- { -- printf("unconservative Y, diffY = %f, oldY=%f,newY=%f\n",newPoint.getY()-point.getY(), newPoint.getY(),point.getY()); -- } -- if (newPoint.getZ() > point.getZ()) -- { -- printf("unconservative Z, diffZ = %f, oldZ=%f,newZ=%f\n",newPoint.getZ()-point.getZ(), newPoint.getZ(),point.getZ()); -- } -- } -- #endif //DEBUG_CHECK_DEQUANTIZATION -- -- } -- -- -- SIMD_FORCE_INLINE void quantizeWithClamp(unsigned short* out, const impact.d3.Vector& point2,int isMax) const -- { -- -- btAssert(m_useQuantization); -- -- impact.d3.Vector clampedPoint(point2); -- clampedPoint.setMax(m_bvhAabbMin); -- clampedPoint.setMin(m_bvhAabbMax); -- -- quantize(out,clampedPoint,isMax); -- -- } -- -- SIMD_FORCE_INLINE impact.d3.Vector unQuantize(const unsigned short* vecIn) const -- { -- impact.d3.Vector vecOut; -- vecOut.setValue( -- (impact.d3.Scalar)(vecIn[0]) / (m_bvhQuantization.getX()), -- (impact.d3.Scalar)(vecIn[1]) / (m_bvhQuantization.getY()), -- (impact.d3.Scalar)(vecIn[2]) / (m_bvhQuantization.getZ())); -- vecOut += m_bvhAabbMin; -- return vecOut; -- } -- -- ///setTraversalMode let's you choose between stackless, recursive or stackless cache friendly tree traversal. Note this is only implemented for quantized trees. -- void setTraversalMode(btTraversalMode traversalMode) -- { -- m_traversalMode = traversalMode; -- } -- -- -- SIMD_FORCE_INLINE QuantizedNodeArray& getQuantizedNodeArray() -- { -- return m_quantizedContiguousNodes; -- } -- -- -- SIMD_FORCE_INLINE BvhSubtreeInfoArray& getSubtreeInfoArray() -- { -- return m_SubtreeHeaders; -- } -- -- //////////////////////////////////////////////////////////////////// -- -- /////Calculate space needed to store BVH for serialization -- unsigned calculateSerializeBufferSize() const; -- -- /// Data buffer MUST be 16 byte aligned -- virtual bool serialize(void *o_alignedDataBuffer, unsigned i_dataBufferSize, bool i_swapEndian) const; -- -- ///deSerializeInPlace loads and initializes a BVH from a buffer in memory 'in place' -- static impact.d3.collision.quantized_Bvh *deSerializeInPlace(void *i_alignedDataBuffer, unsigned int i_dataBufferSize, bool i_swapEndian); -- -- static unsigned int getAlignmentSerializationPadding(); -- ////////////////////////////////////////////////////////////////////// -- -- -- virtual int calculateSerializeBufferSizeNew() const; -- -- ///fills the dataBuffer and returns the struct name (and 0 on failure) -- virtual const char* serialize(void* dataBuffer, btSerializer* serializer) const; -- -- virtual void deSerializeFloat(struct impact.d3.collision.quantized_BvhFloatData& quantizedBvhFloatData); -- -- virtual void deSerializeDouble(struct impact.d3.collision.quantized_BvhDoubleData& quantizedBvhDoubleData); -- -- -- //////////////////////////////////////////////////////////////////// -- -- SIMD_FORCE_INLINE bool isQuantized() -- { -- return m_useQuantization; -- } -- -- private: -- // Special "copy" constructor that allows for in-place deserialization -- // Prevents impact.d3.Vector's default constructor from being called, but doesn't inialize much else -- // ownsMemory should most likely be false if deserializing, and if you are not, don't call this (it also changes the function signature, which we need) -- impact.d3.collision.quantized_Bvh(impact.d3.collision.quantized_Bvh &other, bool ownsMemory); -- -- } -- ; -- --
------------------------------------------------------------------------------ -- -- -- ASIS-for-GNAT INTERFACE COMPONENTS -- -- -- -- A S I S . C O M P I L A T I O N _ U N I T S -- -- -- -- S p e c -- -- -- -- Copyright (C) 2006-2010, Free Software Foundation, Inc. -- -- -- -- This specification is adapted from the Ada Semantic Interface -- -- Specification Standard (ISO/IEC 15291) for use with GNAT. In accordance -- -- with the copyright of that document, you can freely copy and modify this -- -- specification, provided that if you redistribute a modified version, any -- -- changes that you have made are clearly indicated. -- -- -- -- This specification also contains suggestions and discussion items -- -- related to revising the ASIS Standard according to the changes proposed -- -- for the new revision of the Ada standard. The copyright notice above, -- -- and the license provisions that follow apply solely to these suggestions -- -- and discussion items that are separated by the corresponding comment -- -- sentinels -- -- -- -- ASIS-for-GNAT is free software; you can redistribute it and/or modify it -- -- under terms of the GNU General Public License as published by the Free -- -- Software Foundation; either version 2, or (at your option) any later -- -- version. ASIS-for-GNAT is distributed in the hope that it will be use- -- -- ful, but WITHOUT ANY WARRANTY; without even the implied warranty of MER- -- -- CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General -- -- Public License for more details. You should have received a copy of the -- -- GNU General Public License distributed with ASIS-for-GNAT; see file -- -- COPYING. If not, write to the Free Software Foundation, 51 Franklin -- -- Street, Fifth Floor, Boston, MA 02110-1301, USA. -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- ASIS-for-GNAT was originally developed by the ASIS-for-GNAT team at the -- -- Software Engineering Laboratory of the Swiss Federal Institute of -- -- Technology (LGL-EPFL) in Lausanne, Switzerland, in cooperation with the -- -- Scientific Research Computer Center of Moscow State University (SRCC -- -- MSU), Russia, with funding partially provided by grants from the Swiss -- -- National Science Foundation and the Swiss Academy of Engineering -- -- Sciences. ASIS-for-GNAT is now maintained by AdaCore -- -- (http://www.adacore.com). -- -- -- ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ -- 10 package Asis.Compilation_Units -- Suggestions related to changing this specification to accept new Ada -- features as defined in incoming revision of the Ada Standard (ISO 8652) -- are marked by following comment sentinels: -- -- --|A2005 start -- ... the suggestion goes here ... -- --|A2005 end -- -- and the discussion items are marked by the comment sentinels of the form: -- -- --|D2005 start -- ... the discussion item goes here ... -- --|D2005 end ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ with Asis.Ada_Environments.Containers; package Asis.Compilation_Units is ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ -- Asis.Compilation_Units encapsulates a set of queries that implement the -- ASIS Compilation_Unit abstraction. -- -- More than one compilation unit may be manipulated at one time. (The exact -- number is subject to implementation specific limitations.) -- -- A specific Compilation_Unit value is valid (usable) for as long as the ASIS -- Context variable, used to create it, remains open. Once an ASIS Context is -- closed, all associated Compilation_Unit values become invalid. It is -- erroneous to use an invalid Compilation_Unit value. -- ------------------------------------------------------------------------------ -- 10.1 function Unit_Kind ------------------------------------------------------------------------------ function Unit_Kind (Compilation_Unit : Asis.Compilation_Unit) return Asis.Unit_Kinds; ------------------------------------------------------------------------------ -- Compilation_Unit - Specifies the compilation unit to query -- -- Returns the Unit_Kinds value of the compilation unit. -- Returns Not_A_Unit for a Nil_Compilation_Unit. -- -- All Unit_Kinds are expected. -- -- Returns An_Unknown_Unit for any compilation unit that exists, but that -- does not have semantic element information available through ASIS. -- -- Returns a nonexistent kind for units that have name-only entries in the -- environment Context. Such entries may exist for names because: -- -- - They represent an illegal compilation unit added to the environment. -- -- - They are referenced by some existing unit, but the program text for the -- referenced unit has never been supplied, compiled, or otherwise -- inserted into the environment. -- -- - They represent a separate subunit that has never been supplied, -- compiled, or otherwise inserted into the environment. -- -- - The unit may have existed at one time but the semantic information is no -- longer available. It may be inconsistent, have been removed by some -- user or Ada environment operations, or simply have been lost as the -- result of some sort of failure. -- ------------------------------------------------------------------------------ -- 10.2 function Unit_Class ------------------------------------------------------------------------------ function Unit_Class (Compilation_Unit : Asis.Compilation_Unit) return Asis.Unit_Classes; ------------------------------------------------------------------------------ -- Compilation_Unit - Specifies the compilation unit to query -- -- Returns the Unit_Classes value of the compilation unit. -- Returns Not_A_Class for a Nil_Compilation_Unit. -- -- All Unit_Kinds are expected. -- ------------------------------------------------------------------------------ -- 10.3 function Unit_Origin ------------------------------------------------------------------------------ function Unit_Origin (Compilation_Unit : Asis.Compilation_Unit) return Asis.Unit_Origins; ------------------------------------------------------------------------------ -- Compilation_Unit - Specifies the compilation unit to query -- -- Returns the Unit_Origins value of the unit. -- Returns Not_An_Origin for a compilation_unit whose Unit_Kind is -- Not_A_Unit, An_Unknown_Unit, A_Nonexistent_Declaration, or -- A_Nonexistent_Body. -- -- All Unit_Kinds are expected. -- ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ -- 10.4 function Enclosing_Context ------------------------------------------------------------------------------ function Enclosing_Context (Compilation_Unit : Asis.Compilation_Unit) return Asis.Context; ------------------------------------------------------------------------------ -- Compilation_Unit - Specifies the unit whose Context is required -- -- Returns the Context containing the compilation unit. -- -- Compilation units always remember the ASIS Context and Container from -- which they were obtained. -- -- Because Context is limited private, this function is only intended to be -- used to supply a Context parameter for other queries. This conveniently -- eliminates the need to make the original Context visible at the place of -- each call where a Context parameter is required. -- -- Two Compilation_Unit values, that represent the same physical compilation -- units (same Ada implementor Context implementation unit value) will test as -- Is_Equal, but not Is_Identical, if they were obtained from different open -- ASIS Context variables. -- -- Raises ASIS_Inappropriate_Compilation_Unit if the unit is a -- Nil_Compilation_Unit. -- ------------------------------------------------------------------------------ -- 10.5 function Enclosing_Container ------------------------------------------------------------------------------ function Enclosing_Container (Compilation_Unit : Asis.Compilation_Unit) return Asis.Ada_Environments.Containers.Container; ------------------------------------------------------------------------------ -- Compilation_Unit - Specifies the unit whose Container is required -- -- Returns the Container of the Context containing the compilation unit. -- Compilation units always remember the ASIS Context and Container from -- which they were obtained. -- -- Raises ASIS_Inappropriate_Compilation_Unit if the unit is a -- Nil_Compilation_Unit. -- ------------------------------------------------------------------------------ -- 10.6 function Library_Unit_Declaration ------------------------------------------------------------------------------ function Library_Unit_Declaration (Name : Wide_String; The_Context : Asis.Context) return Asis.Compilation_Unit; ------------------------------------------------------------------------------ -- Name - Specifies the defining program unit name -- The_Context - Specifies a program Context environment -- -- Returns the library_unit_declaration or library_unit_renaming_declaration -- with the name, contained in The_Context. -- -- This query will never return a unit with A_Configuration_Compilation or -- a nonexistent unit kind. It will never return a unit with A_Procedure_Body -- or A_Function_Body unit kind even though the unit is interpreted as both -- the declaration and body of a library procedure or library function. -- (Reference Manual 10.1.4(4). -- -- A Nil_Compilation_Unit is returned if no such declaration exists. -- -- Any non-Nil result will have an Enclosing_Context value that Is_Identical -- to the Context. Never returns a unit with a nonexistent unit kind. -- ------------------------------------------------------------------------------ -- 10.7 function Compilation_Unit_Body ------------------------------------------------------------------------------ function Compilation_Unit_Body (Name : Wide_String; The_Context : Asis.Context) return Asis.Compilation_Unit; ------------------------------------------------------------------------------ -- Name - Specifies the defining_program_unit_name -- The_Context - Specifies a program Context environment -- -- Returns the library_unit_body or subunit with the name, contained -- in the library. -- -- A Nil_Compilation_Unit is returned if no such body exists. -- -- Any non-Nil result will have an Enclosing_Context value that Is_Identical -- to The_Context. Never returns a unit with a nonexistent unit kind. -- ------------------------------------------------------------------------------ -- 10.8 function Library_Unit_Declarations ------------------------------------------------------------------------------ function Library_Unit_Declarations (The_Context : Asis.Context) return Asis.Compilation_Unit_List; ------------------------------------------------------------------------------ -- The_Context - Specifies a program Context environment -- -- Returns a list of all library_unit_declaration and -- library_unit_renaming_declaration elements contained in The_Context. -- Individual units will appear only once in an order that is not defined. -- -- A Nil_Compilation_Unit_List is returned if there are no declarations of -- library units within The_Context. -- -- This query will never return a unit with A_Configuration_Compilation or -- a nonexistent unit kind. It will never return a unit with A_Procedure_Body -- or A_Function_Body unit kind even though the unit is interpreted as both -- the declaration and body of a library procedure or library function. -- (Reference Manual 10.1.4(4). -- -- All units in the result will have an Enclosing_Context value that -- Is_Identical to The_Context. -- ------------------------------------------------------------------------------ -- 10.9 function Compilation_Unit_Bodies ------------------------------------------------------------------------------ function Compilation_Unit_Bodies (The_Context : Asis.Context) return Asis.Compilation_Unit_List; ------------------------------------------------------------------------------ -- The_Context - Specifies a program Context environment -- -- Returns a list of all library_unit_body and subunit elements contained in -- The_Context. Individual units will appear only once in an order that is not -- defined. -- -- A Nil_Compilation_Unit_List is returned if there are no bodies within -- The_Context. -- -- This query will never return a unit with A_Configuration_Compilation or -- a nonexistent unit kind. -- -- All units in the result will have an Enclosing_Context value that -- Is_Identical to The_Context. -- ------------------------------------------------------------------------------ -- 10.10 function Compilation_Units ------------------------------------------------------------------------------ function Compilation_Units (The_Context : Asis.Context) return Asis.Compilation_Unit_List; ------------------------------------------------------------------------------ -- The_Context - Specifies a program Context environment -- -- Returns a list of all compilation units contained in The_Context. -- Individual units will appear only once in an order that is not defined. -- -- A Nil_Compilation_Unit_List is returned if there are no units within -- The_Context. -- -- This query will never return a unit with A_Configuration_Compilation or -- a nonexistent unit kind. -- -- All units in the result will have an Enclosing_Context value that -- Is_Identical to The_Context. -- ------------------------------------------------------------------------------ -- 10.11 function Corresponding_Children ------------------------------------------------------------------------------ function Corresponding_Children (Library_Unit : Asis.Compilation_Unit) return Asis.Compilation_Unit_List; function Corresponding_Children (Library_Unit : Asis.Compilation_Unit; The_Context : Asis.Context) return Asis.Compilation_Unit_List; ------------------------------------------------------------------------------ -- Library_Unit - Specifies the library unit whose children are desired -- The_Context - Specifies a program Context environment -- -- Returns a list of the child units for the given parent library unit. -- -- Both the declaration and body (if any) of each child unit are returned. -- Descendants beyond immediate children (i.e., children of children) are not -- returned by this query. -- -- Use the compilation unit relationship queries -- with a Relation_Kinds of Descendants to create a list of children, children -- of children, and so on. -- -- Returns a Nil_Compilation_Unit_List for all library unit arguments that -- do not have any child units contained in The_Context. -- -- These two function calls will always produce identical results: -- -- Units := Corresponding_Children ( Unit ); -- Units := Corresponding_Children ( Unit, Enclosing_Context ( Unit )); -- -- Any non-Nil result will have an Enclosing_Context value that Is_Identical -- to The_Context. -- -- The Enclosing_Context for any non-Nil result will always be The_Context, -- regardless of the Enclosing_Context value for the Library_Unit argument. -- This query is one means of obtaining (Is_Equal) child units -- from separate ASIS Context values whose underlying implementations -- overlap. -- -- Appropriate Unit_Kinds: -- A_Package -- A_Generic_Package -- A_Package_Instance -- -- Returns Unit_Kinds: -- A_Procedure -- A_Function -- A_Package -- A_Generic_Procedure -- A_Generic_Function -- A_Generic_Package -- A_Procedure_Instance -- A_Function_Instance -- A_Package_Instance -- A_Procedure_Renaming -- A_Function_Renaming -- A_Package_Renaming -- A_Generic_Procedure_Renaming -- A_Generic_Function_Renaming -- A_Generic_Package_Renaming -- A_Procedure_Body -- A_Function_Body -- A_Package_Body -- An_Unknown_Unit -- -- If the declaration of a child is inconsistent with the argument of the -- query, neither the declaration nor the body is returned. If the -- declaration of a child is consistent with the argument, but the body -- is not, the declaration is returned, and for the body, the result of -- the Corresponding_Body query applied to the declaration is returned. -- ------------------------------------------------------------------------------ -- 10.12 function Corresponding_Parent_Declaration ------------------------------------------------------------------------------ function Corresponding_Parent_Declaration (Library_Unit : Asis.Compilation_Unit) return Asis.Compilation_Unit; function Corresponding_Parent_Declaration (Library_Unit : Asis.Compilation_Unit; The_Context : Asis.Context) return Asis.Compilation_Unit; ------------------------------------------------------------------------------ -- Library_Unit - Specifies the unit whose parent is desired -- The_Context - Specifies a program Context environment -- -- Returns the parent unit of the given library unit. -- -- Returns a Nil_Compilation_Unit if the Library_Unit argument represents -- package Standard. Root Library_Unit arguments return the package Standard. -- -- Returns A_Nonexistent_Declaration when the Library_Unit has a -- parent_unit_name denoted in the defining_program_unit_name but the parent -- unit is not contained in The_Context. -- -- These two function calls will always produce identical results: -- -- Unit := Corresponding_Parent_Declaration (Unit); -- Unit := Corresponding_Parent_Declaration (Unit, Enclosing_Context (Unit)); -- -- Any non-Nil result will have an Enclosing_Context value that Is_Identical -- to The_Context. -- -- The Enclosing_Context for any non-Nil result will always be The_Context, -- regardless of the Enclosing_Context value for the Library_Unit -- argument. This query is one means of obtaining (Is_Equal) parent units -- from separate ASIS Context values whose underlying implementations -- overlap. -- -- Appropriate Unit_Kinds: -- A_Procedure -- A_Function -- A_Package -- A_Generic_Procedure -- A_Generic_Function -- A_Generic_Package -- A_Procedure_Instance -- A_Function_Instance -- A_Package_Instance -- A_Procedure_Renaming -- A_Function_Renaming -- A_Package_Renaming -- A_Generic_Procedure_Renaming -- A_Generic_Function_Renaming -- A_Generic_Package_Renaming -- A_Procedure_Body -- A_Function_Body -- A_Package_Body -- -- Returns Unit_Kinds: -- Not_A_Unit -- A_Package -- A_Generic_Package -- A_Package_Instance -- A_Nonexistent_Declaration -- An_Unknown_Unit -- -- If a parent is inconsistent with a child passed as the argument, -- A_Nonexistent_Declaration shall be returned. -- ------------------------------------------------------------------------------ -- 10.13 function Corresponding_Declaration ------------------------------------------------------------------------------ function Corresponding_Declaration (Library_Item : Asis.Compilation_Unit) return Asis.Compilation_Unit; function Corresponding_Declaration (Library_Item : Asis.Compilation_Unit; The_Context : Asis.Context) return Asis.Compilation_Unit; ------------------------------------------------------------------------------ -- Library_Item - Specifies the library_item whose declaration is desired -- The_Context - Specifies a program Context environment -- -- Returns the corresponding library_unit_declaration, if any, for the -- library_unit_body. The corresponding library unit is the unit upon which -- the library_unit_body depends semantically. -- -- Returns a unit that Is_Equal to the argument if: -- -- - the argument is a library_unit_declaration, -- a library_unit_renaming_declaration, or a subunit. -- -- - the argument is A_Nonexistent_Declaration or A_Nonexistent_Body. -- -- Returns a Nil_Compilation_Unit for library_unit_body arguments that do -- not have a corresponding library unit contained in The_Context. -- -- All Unit_Kinds are appropriate except Not_A_Unit. -- -- Appropriate Unit_Kinds: -- A_Procedure_Body -- A_Function_Body -- A_Package_Body -- An_Unknown_Unit -- See Implementation Permissions -- -- Appropriate Unit_Kinds returning the argument Library_Item: -- A_Procedure -- A_Function -- A_Package -- A_Generic_Procedure -- A_Generic_Function -- A_Generic_Package -- A_Procedure_Instance -- A_Function_Instance -- A_Package_Instance -- A_Procedure_Renaming -- A_Function_Renaming -- A_Package_Renaming -- A_Generic_Procedure_Renaming -- A_Generic_Function_Renaming -- A_Generic_Package_Renaming -- A_Procedure_Body_Subunit -- A_Function_Body_Subunit -- A_Package_Body_Subunit -- A_Task_Body_Subunit -- A_Protected_Body_Subunit -- A_Nonexistent_Declaration -- A_Nonexistent_Body -- -- Returns all Unit Kinds. -- -- If the declaration of an argument Element is inconsistent with the -- argument, A_Nonexistent_Declaration shall be returned. (For a unit -- A_Procedure_Body or A_Function_Body kind, the solution may be in any -- case, to return Nil_Compilation_Unit if the unit is of -- A_Public_Declaration_And_Body kind.) -- -- --|IR Implementation Requirements: -- --|IR -- --|IR Any non-Nil result will have an Enclosing_Context value that -- --|IR Is_Identical to The_Context. -- --|IR -- --|IR These two function calls will always produce identical results: -- --|IR -- --|IR Unit := Corresponding_Declaration (Unit); -- --|IR Unit := Corresponding_Declaration (Unit, Enclosing_Context (Unit)); -- --|IR -- --|IR The Enclosing_Context for any non-Nil result will always be -- --|IR The_Context, regardless of the Enclosing_Context value for the -- --|IR Library_Item argument. This query is one means of obtaining -- --|IR corresponding (Is_Equal) units from separate ASIS Context values -- --|IR whose underlying implementations overlap. -- --|IR -- --|IP Implementation Permissions: -- --|IP -- --|IP The handling of An_Unknown_Unit is implementation specific. The -- --|IP expected use for An_Unknown_Unit is to hide proprietary -- --|IP implementation details contained within unit bodies. In these cases, -- --|IP it should be possible to obtain an appropriate -- --|IP library_unit_declaration when starting with An_Unknown_Unit. Some -- --|IP implementors may choose to simply return the An_Unknown_Unit argument -- --|IP in all cases. ------------------------------------------------------------------------------ -- 10.14 function Corresponding_Body ------------------------------------------------------------------------------ function Corresponding_Body (Library_Item : Asis.Compilation_Unit) return Asis.Compilation_Unit; function Corresponding_Body (Library_Item : Asis.Compilation_Unit; The_Context : Asis.Context) return Asis.Compilation_Unit; ------------------------------------------------------------------------------ -- Library_Item - Specifies the library_item whose body is desired -- The_Context - Specifies a program Context environment -- -- Returns the corresponding library_unit_body, if any, for the -- library_unit_declaration. The corresponding library_unit_body is the unit -- that depends semantically on the library_unit_declaration. -- -- Returns a unit that Is_Equal to the argument if: -- -- - the argument is a an instance of a library_unit_declaration, -- a library_unit_body, a library_unit_renaming_declaration, or a subunit. -- -- - the argument is A_Nonexistent_Declaration or A_Nonexistent_Body. -- -- Returns a Nil_Compilation_Unit for library_unit_declaration arguments that -- do not have a corresponding library_unit_body contained in The_Context. -- -- All Unit_Kinds are appropriate except Not_A_Unit. -- -- Appropriate Unit_Kinds: -- A_Procedure -- A_Function -- A_Package -- A_Generic_Procedure -- A_Generic_Function -- A_Generic_Package -- An_Unknown_Unit -- See Implementation Permissions -- -- Appropriate Unit_Kinds returning the argument Library_Item: -- A_Procedure_Body -- A_Function_Body -- A_Package_Body -- A_Procedure_Instance -- A_Function_Instance -- A_Package_Instance -- A_Procedure_Renaming -- A_Function_Renaming -- A_Package_Renaming -- A_Generic_Procedure_Renaming -- A_Generic_Function_Renaming -- A_Generic_Package_Renaming -- A_Procedure_Body_Subunit -- A_Function_Body_Subunit -- A_Package_Body_Subunit -- A_Task_Body_Subunit -- A_Protected_Body_Subunit -- A_Nonexistent_Declaration -- A_Nonexistent_Body -- -- Returns all Unit Kinds. -- -- If the argument Element requires a body to be presented to make up a -- complete partition containing this Element, but The_Context does not -- contain the corresponding body, or the body contained in The_Context -- is inconsistent with the argument Element, A_Nonexistent_Body shall -- be returned. -- -- --|IR Implementation Requirements: -- --|IR -- --|IR Any non-Nil result will have an Enclosing_Context value that -- --|IR Is_Identical to The_Context. -- --|IR -- --|IR These two function calls will always produce identical results: -- --|IR -- --|IR Unit := Corresponding_Body( Unit ); -- --|IR Unit := Corresponding_Body( Unit, Enclosing_Context ( Unit )); -- --|IR -- --|IR The Enclosing_Context for any non-Nil result will always be -- --|IR The_Context, regardless of the Enclosing_Context value for the -- --|IR Library_Item argument. This query is one means of obtaining -- --|IR corresponding (Is_Equal) units from separate ASIS Context values -- --|IR whose underlying implementations overlap. -- --|IR -- --|IP Implementation Permissions: -- --|IP -- --|IP The handling of An_Unknown_Unit is implementation specific. The -- --|IP expected use for An_Unknown_Unit is to hide proprietary -- --|IP implementation details contained within unit bodies. In some cases, -- --|IP it could be possible to obtain an appropriate library_unit_body when -- --|IP starting with An_Unknown_Unit. Some implementors may choose to simply -- --|IP return the An_Unknown_Unit argument in all cases. ------------------------------------------------------------------------------ -- 10.15 function Is_Nil ------------------------------------------------------------------------------ function Is_Nil (Right : Asis.Compilation_Unit) return Boolean; ------------------------------------------------------------------------------ -- Right - Specifies the unit to test -- -- Returns True if the compilation_unit is a Nil_Compilation_Unit. -- ------------------------------------------------------------------------------ -- 10.16 function Is_Nil ------------------------------------------------------------------------------ function Is_Nil (Right : Asis.Compilation_Unit_List) return Boolean; ------------------------------------------------------------------------------ -- Right - Specifies the unit list to test -- -- Returns True if the compilation_unit list has a length of zero. -- ------------------------------------------------------------------------------ -- 10.17 function Is_Equal ------------------------------------------------------------------------------ function Is_Equal (Left : Asis.Compilation_Unit; Right : Asis.Compilation_Unit) return Boolean; ------------------------------------------------------------------------------ -- Left - Specifies the first unit to compare -- Right - Specifies the second unit to compare -- -- Returns True if Left and Right represent the same physical compilation unit -- or if both are Nil_Compilation_Unit values. The two units may or may not -- be from the same ASIS Context variable. ("The same physical compilation -- unit" have the same version, as defined by Reference Manual E.3(5) -- and the same program text.) -- -- Two nonexistent units are Is_Equal if they have the same Name and -- Unit_Kind. -- ------------------------------------------------------------------------------ -- 10.18 function Is_Identical ------------------------------------------------------------------------------ function Is_Identical (Left : Asis.Compilation_Unit; Right : Asis.Compilation_Unit) return Boolean; ------------------------------------------------------------------------------ -- Left - Specifies the first unit to compare -- Right - Specifies the second unit to compare -- -- Returns True if Left and Right represent the same physical compilation -- unit, from the same open ASIS Context variable, or, if both are -- Nil_Compilation_Unit values. ("The same physical compilation -- unit" have the same version, as defined by Reference Manual E.3(5) -- and the same program text.) -- -- Two nonexistent units are Is_Identical if they have the same -- Unique_Name and the same Enclosing_Context. -- ------------------------------------------------------------------------------ -- 10.19 function Unit_Full_Name ------------------------------------------------------------------------------ function Unit_Full_Name (Compilation_Unit : Asis.Compilation_Unit) return Wide_String; ------------------------------------------------------------------------------ -- Compilation_Unit - Specifies the unit whose name is desired -- -- Returns the string image of the fully expanded Ada name of the given -- compilation unit. This may be a simple name ("A") of a root library -- unit, or an expanded name ("A.B") of a subunit or non-root child unit. -- An expanded name shall contain the full parent_unit_name as its prefix. -- Returns a null string only if A_Configuration_Compilation or a -- Nil_Compilation_Unit is given. -- -- The case of names returned by this query may vary between implementations. -- Implementors are encouraged, but not required, to return names in the -- same case as was used in the original compilation text. -- -- All Unit_Kinds are appropriate. -- ------------------------------------------------------------------------------ -- 10.20 function Unique_Name ------------------------------------------------------------------------------ function Unique_Name (Compilation_Unit : Asis.Compilation_Unit) return Wide_String; ------------------------------------------------------------------------------ -- Compilation_Unit - Specifies the unit whose name is desired -- -- Returns a string that uniquely identifies the given compilation unit -- within the underlying Ada Context implementation. The result may vary -- depending on the ASIS implementation. The unique name may include the name -- and parameters of the Context, file system paths, library files, version -- numbers, kind, or any other information that an implementation may need -- to uniquely identify the compilation unit. -- -- Returns a null string only if a Nil_Compilation_Unit is given. -- -- All Unit_Kinds are appropriate. -- ------------------------------------------------------------------------------ -- 10.21 function Exist ------------------------------------------------------------------------------ function Exists (Compilation_Unit : Asis.Compilation_Unit) return Boolean; ------------------------------------------------------------------------------ -- Compilation_Unit - Specifies the unit to test -- -- Returns False for any unit with Not_A_Unit or nonexistent kind. -- Returns True for all other unit kinds. -- -- All Unit_Kinds are expected. -- ------------------------------------------------------------------------------ -- 10.22 function Can_Be_Main_Program ------------------------------------------------------------------------------ function Can_Be_Main_Program (Compilation_Unit : Asis.Compilation_Unit) return Boolean; ------------------------------------------------------------------------------ -- Compilation_Unit - Specifies the unit to test -- -- Returns True if the Compilation_Unit exists and is a subprogram -- library_unit_declaration, library_unit_renaming_declaration, or -- library_unit_body that can be used as a main subprogram. See Reference -- Manual 10.2(7). -- -- Returns False otherwise. -- -- Results of this function may vary according to the requirements an Ada -- implementation may impose on a main subprogram. -- -- All Unit_Kinds are expected. -- ------------------------------------------------------------------------------ -- 10.23 function Is_Body_Required ------------------------------------------------------------------------------ function Is_Body_Required (Compilation_Unit : Asis.Compilation_Unit) return Boolean; ------------------------------------------------------------------------------ -- Compilation_Unit - Specifies the unit to test -- -- Returns True if the Compilation_Unit exists and is a library -- package_declaration that requires a body. See Reference Manual 7.2(4). -- -- All Unit_Kinds are expected. -- ------------------------------------------------------------------------------ -- 10.24 function Text_Name ------------------------------------------------------------------------------ function Text_Name (Compilation_Unit : Asis.Compilation_Unit) return Wide_String; ------------------------------------------------------------------------------ -- Compilation_Unit - Specifies the unit whose text name is desired -- -- Returns the name of the text, or other structure, that was the source -- of the compilation that resulted in this Compilation_Unit. Returns a -- null string if the unit has a Nil or nonexistent kind, or if the text -- name is not available for any reason. -- -- Ada has no concept of source or text file. -- Text_Name availability is a required feature of ASIS. -- Results of this function may vary among implementations. -- -- All Unit_Kinds are appropriate. -- ------------------------------------------------------------------------------ -- 10.25 function Text_Form ------------------------------------------------------------------------------ function Text_Form (Compilation_Unit : Asis.Compilation_Unit) return Wide_String; ------------------------------------------------------------------------------ -- Compilation_Unit - Specifies the unit whose text form is desired -- -- Returns the Form parameter (as for Text_Io.Open) for the text, or -- other structure, that was the source of the compilation that resulted in -- this Compilation_Unit. Returns a null string if the unit has a Nil or -- nonexistent kind, if the text was created with an empty Form parameter, -- or if the text Form parameter value is not available for any reason. -- -- Ada has no concept of source or text file. -- Text_Form availability is a required feature of ASIS. -- Results of this function may vary among implementations. -- -- All Unit_Kinds are appropriate. -- ------------------------------------------------------------------------------ -- 10.26 function Object_Name ------------------------------------------------------------------------------ function Object_Name (Compilation_Unit : Asis.Compilation_Unit) return Wide_String; ------------------------------------------------------------------------------ -- Compilation_Unit - Specifies the unit whose object name is desired -- -- Returns the name of the object, or other structure, that contains the -- binary result of the compilation for this Compilation_Unit. Returns -- a null string if the unit has a Nil or nonexistent kind, or if the -- object name is not available for any reason. -- -- All Unit_Kinds are appropriate. -- ------------------------------------------------------------------------------ -- 10.27 function Object_Form ------------------------------------------------------------------------------ function Object_Form (Compilation_Unit : Asis.Compilation_Unit) return Wide_String; ------------------------------------------------------------------------------ -- Compilation_Unit - Specifies the unit whose object form is desired -- -- Returns the Form parameter (as for Text_Io.Open) for the object, or -- other structure, that was the machine-code result of the compilation of -- this Compilation_Unit. Returns a null string if the unit has a Nil or -- nonexistent kind, if the object was created with an empty Form parameter, -- or if the object Form parameter value is not available for any reason. -- -- All Unit_Kinds are appropriate. -- ------------------------------------------------------------------------------ -- 10.28 function Compilation_Command_Line_Options ------------------------------------------------------------------------------ function Compilation_Command_Line_Options (Compilation_Unit : Asis.Compilation_Unit) return Wide_String; ------------------------------------------------------------------------------ -- Compilation_Unit - Specifies the unit to query -- -- Returns the command line options used to compile the Compilation_Unit. -- Returns null string if the unit has a Nil or nonexistent unit kind, or -- if the command line options are not available for any reason. -- -- All Unit_Kinds are appropriate. -- ------------------------------------------------------------------------------ -- 10.29 function Has_Attribute ------------------------------------------------------------------------------ function Has_Attribute (Compilation_Unit : Asis.Compilation_Unit; Attribute : Wide_String) return Boolean; ------------------------------------------------------------------------------ -- Compilation_Unit - Specifies the unit to query -- Attribute - Specifies the name of the attribute to query -- -- Returns True if the compilation unit has the given attribute. -- -- Returns False if the unit is a Nil_Compilation_Unit argument, the -- Attribute does not exist, or the implementation does not support -- attributes. -- -- All Unit_Kinds are expected. -- -- Results of this query may vary across ASIS implementations. -- ------------------------------------------------------------------------------ -- 10.30 function Attribute_Value_Delimiter ------------------------------------------------------------------------------ function Attribute_Value_Delimiter return Wide_String; ------------------------------------------------------------------------------ -- Returns the string used as a delimiter separating individual values -- within the string Attribute_Values of a compilation unit. -- -- Results of this query may vary across ASIS implementations. The result -- can be a null string for implementations that do not support attributes, -- or that do not support more than one attribute. -- ------------------------------------------------------------------------------ -- 10.31 function Attribute_Values ------------------------------------------------------------------------------ function Attribute_Values (Compilation_Unit : Asis.Compilation_Unit; Attribute : Wide_String) return Wide_String; ------------------------------------------------------------------------------ -- Compilation_Unit - Specifies the unit to query -- Attribute - Specifies the name of the attribute to query -- -- Returns a string containing zero or more images of values that are -- associated with the given attribute. When more than one value is returned, -- the Attribute_Value_Delimiter string is used to separate the individual -- values. Returns a null string if the unit is a Nil_Compilation_Unit -- argument, the unit has no values for this Attribute, or the implementation -- does not support attributes. -- -- All Unit_Kinds are appropriate. -- -- Results of this query may vary across ASIS implementations. -- ------------------------------------------------------------------------------ -- 10.32 function Subunits ------------------------------------------------------------------------------ function Subunits (Parent_Body : Asis.Compilation_Unit) return Asis.Compilation_Unit_List; function Subunits (Parent_Body : Asis.Compilation_Unit; The_Context : Asis.Context) return Asis.Compilation_Unit_List; ------------------------------------------------------------------------------ -- Parent_Body - Specifies the parent unit to query -- The_Context - Specifies the program Context to use for context -- -- Returns a complete list of subunit values, with one value for each body -- stub that appears in the given Parent_Body. Returns a -- Nil_Compilation_Unit_List if the parent unit does not contain any body -- stubs. Every unit in the result will have an Enclosing_Context that -- Is_Identical to The_Context. -- -- These two function calls will always produce identical results: -- -- SUnits := Subunits ( PUnit ); -- SUnits := Subunits ( PUnit, Enclosing_Context ( PUnit )); -- -- The result may include unit values with a nonexistent unit kind. It -- includes values for subunits that exist in The_Context as -- well as values for subunits that do not exist, but whose name can be -- deduced from the body stub and the name of the parent unit. These -- nonexistent units are known to be library_unit_body elements so their unit -- kind is A_Nonexistent_Body. -- -- Subunit lists are also available through the Semantic_Dependence_Order -- query using the Family relation. -- -- Raises ASIS_Inappropriate_Compilation_Unit if the unit is a -- Nil_Compilation_Unit. -- -- If a subunit is absent or if it is inconsistent with the argument Element, -- A_Nonexistent_Body shall be returned for it. -- -- --|D2005 start -- The list of appropriate unit kinds is missing here. It should be: -- -- Appropriate Unit_Kinds: -- A_Procedure_Body -- A_Function_Body -- A_Package_Body -- A_Procedure_Body_Subunit -- A_Function_Body_Subunit -- A_Package_Body_Subunit -- A_Task_Body_Subunit -- A_Protected_Body_Subunit -- --|D2005 end -- -- Returns Unit_Kinds: -- A_Nonexistent_Body -- A_Procedure_Body_Subunit -- A_Function_Body_Subunit -- A_Package_Body_Subunit -- A_Task_Body_Subunit -- A_Protected_Body_Subunit -- ------------------------------------------------------------------------------ -- 10.33 function Corresponding_Subunit_Parent_Body ------------------------------------------------------------------------------ function Corresponding_Subunit_Parent_Body (Subunit : Asis.Compilation_Unit) return Asis.Compilation_Unit; function Corresponding_Subunit_Parent_Body (Subunit : Asis.Compilation_Unit; The_Context : Asis.Context) return Asis.Compilation_Unit; ------------------------------------------------------------------------------ -- Subunit - Specifies the subunit to query -- The_Context - Specifies the program Context to use for context -- -- Returns the Compilation_Unit containing the body stub of the given Subunit. -- Returns a Nil_Compilation_Unit if the subunit parent is not contained in -- The_Context. Any non-Nil result will have an Enclosing_Context value that -- Is_Identical to The_Context. -- -- These two function calls will always produce identical results: -- -- PUnit := Corresponding_Subunit_Parent_Body ( SUnit ); -- PUnit := Corresponding_Subunit_Parent_Body ( SUnit, -- Enclosing_Context ( SUnit )); -- -- Appropriate Unit_Kinds: -- A_Procedure_Body_Subunit -- A_Function_Body_Subunit -- A_Package_Body_Subunit -- A_Task_Body_Subunit -- A_Protected_Body_Subunit -- -- Returns Unit_Kinds: -- A_Procedure_Body -- A_Function_Body -- A_Package_Body -- A_Procedure_Body_Subunit -- A_Function_Body_Subunit -- A_Package_Body_Subunit -- A_Task_Body_Subunit -- A_Protected_Body_Subunit -- -- If the corresponding body does not exist in The_Context, or if it exists, -- but is inconsistent with the argument Element, then A_Nonexistent_Body -- shall be returned. -- ------------------------------------------------------------------------------ -- To locate the parent of a subunit that is not itself a subunit, -- repeatedly call Corresponding_Subunit_Parent_Body until a unit that -- is not a subunit is returned. -- ------------------------------------------------------------------------------ -- 10.34 function Debug_Image ------------------------------------------------------------------------------ function Debug_Image (Compilation_Unit : Asis.Compilation_Unit) return Wide_String; ------------------------------------------------------------------------------ -- Compilation_Unit - Specifies a unit to convert -- -- Returns a string value containing implementation-defined debug -- information associated with the compilation unit. -- -- The return value uses Asis.Text.Delimiter_Image to separate the lines -- of multi-line results. The return value does not end with -- Asis.Text.Delimiter_Image. -- -- These values are intended for two purposes. They are suitable for -- inclusion in problem reports sent to the ASIS implementor. They can be -- presumed to contain information useful when debugging the implementation -- itself. They are also suitable for use by the ASIS application when -- printing simple application debugging messages during application -- development. They are intended to be, to some worthwhile degree, -- intelligible to the user. -- end Asis.Compilation_Units;
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <!DOCTYPE boost_serialization> <boost_serialization signature="serialization::archive" version="11"> <syndb class_id="0" tracking_level="0" version="0"> <userIPLatency>-1</userIPLatency> <userIPName></userIPName> <cdfg class_id="1" tracking_level="1" version="0" object_id="_0"> <name>duc_imf3</name> <ret_bitwidth>18</ret_bitwidth> <ports class_id="2" tracking_level="0" version="0"> <count>1</count> <item_version>0</item_version> <item class_id="3" tracking_level="1" version="0" object_id="_1"> <Value class_id="4" tracking_level="0" version="0"> <Obj class_id="5" tracking_level="0" version="0"> <type>1</type> <id>1</id> <name>x</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo class_id="6" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>x</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>18</bitwidth> </Value> <direction>0</direction> <if_type>0</if_type> <array_size>0</array_size> <bit_vecs class_id="7" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </bit_vecs> </item> </ports> <nodes class_id="8" tracking_level="0" version="0"> <count>60</count> <item_version>0</item_version> <item class_id="9" tracking_level="1" version="0" object_id="_2"> <Value> <Obj> <type>0</type> <id>10</id> <name>x_read</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>x</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>18</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>78</item> <item>79</item> </oprand_edges> <opcode>read</opcode> </item> <item class_id_reference="9" object_id="_3"> <Value> <Obj> <type>0</type> <id>11</id> <name>i_2_load</name> <fileName>imf3.c</fileName> <fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/RTL_Verification/lab2</fileDirectory> <lineNumber>25</lineNumber> <contextFuncName>imf3</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item class_id="11" tracking_level="0" version="0"> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/RTL_Verification/lab2</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>imf3.c</first> <second>imf3</second> </first> <second>25</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>80</item> </oprand_edges> <opcode>load</opcode> </item> <item class_id_reference="9" object_id="_4"> <Value> <Obj> <type>0</type> <id>12</id> <name>tmp</name> <fileName>imf3.c</fileName> <fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/RTL_Verification/lab2</fileDirectory> <lineNumber>25</lineNumber> <contextFuncName>imf3</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/RTL_Verification/lab2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>imf3.c</first> <second>imf3</second> </first> <second>25</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>81</item> <item>83</item> </oprand_edges> <opcode>icmp</opcode> </item> <item class_id_reference="9" object_id="_5"> <Value> <Obj> <type>0</type> <id>13</id> <name>in_1_load</name> <fileName>imf3.c</fileName> <fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/RTL_Verification/lab2</fileDirectory> <lineNumber>32</lineNumber> <contextFuncName>imf3</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/RTL_Verification/lab2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>imf3.c</first> <second>imf3</second> </first> <second>32</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>18</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>84</item> </oprand_edges> <opcode>load</opcode> </item> <item class_id_reference="9" object_id="_6"> <Value> <Obj> <type>0</type> <id>14</id> <name></name> <fileName>imf3.c</fileName> <fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/RTL_Verification/lab2</fileDirectory> <lineNumber>25</lineNumber> <contextFuncName>imf3</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/RTL_Verification/lab2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>imf3.c</first> <second>imf3</second> </first> <second>25</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>85</item> <item>86</item> <item>87</item> </oprand_edges> <opcode>br</opcode> </item> <item class_id_reference="9" object_id="_7"> <Value> <Obj> <type>0</type> <id>16</id> <name></name> <fileName>imf3.c</fileName> <fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/RTL_Verification/lab2</fileDirectory> <lineNumber>26</lineNumber> <contextFuncName>imf3</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/RTL_Verification/lab2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>imf3.c</first> <second>imf3</second> </first> <second>26</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>88</item> <item>89</item> <item>230</item> </oprand_edges> <opcode>store</opcode> </item> <item class_id_reference="9" object_id="_8"> <Value> <Obj> <type>0</type> <id>17</id> <name></name> <fileName>imf3.c</fileName> <fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/RTL_Verification/lab2</fileDirectory> <lineNumber>27</lineNumber> <contextFuncName>imf3</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/RTL_Verification/lab2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>imf3.c</first> <second>imf3</second> </first> <second>27</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>90</item> </oprand_edges> <opcode>br</opcode> </item> <item class_id_reference="9" object_id="_9"> <Value> <Obj> <type>0</type> <id>19</id> <name>d_assign</name> <fileName>imf3.c</fileName> <fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/RTL_Verification/lab2</fileDirectory> <lineNumber>32</lineNumber> <contextFuncName>imf3</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/RTL_Verification/lab2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>imf3.c</first> <second>imf3</second> </first> <second>32</second> </item> </second> </item> </inlineStackInfo> <originalName>d</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>18</bitwidth> </Value> <oprand_edges> <count>4</count> <item_version>0</item_version> <item>91</item> <item>92</item> <item>93</item> <item>94</item> </oprand_edges> <opcode>phi</opcode> </item> <item class_id_reference="9" object_id="_10"> <Value> <Obj> <type>0</type> <id>20</id> <name>inc</name> <fileName>imf3.c</fileName> <fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/RTL_Verification/lab2</fileDirectory> <lineNumber>28</lineNumber> <contextFuncName>imf3</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/RTL_Verification/lab2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>imf3.c</first> <second>imf3</second> </first> <second>28</second> </item> </second> </item> </inlineStackInfo> <originalName>inc</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>6</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>95</item> <item>97</item> </oprand_edges> <opcode>add</opcode> </item> <item class_id_reference="9" object_id="_11"> <Value> <Obj> <type>0</type> <id>21</id> <name>p_Val2_s</name> <fileName>imf3.c</fileName> <fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/RTL_Verification/lab2</fileDirectory> <lineNumber>30</lineNumber> <contextFuncName>imf3</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/RTL_Verification/lab2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>imf3.c</first> <second>imf3</second> </first> <second>30</second> </item> </second> </item> </inlineStackInfo> <originalName>__Val2__</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>6</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>98</item> </oprand_edges> <opcode>load</opcode> </item> <item class_id_reference="9" object_id="_12"> <Value> <Obj> <type>0</type> <id>22</id> <name>ch_4</name> <fileName>imf3.c</fileName> <fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/RTL_Verification/lab2</fileDirectory> <lineNumber>30</lineNumber> <contextFuncName>imf3</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/RTL_Verification/lab2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>imf3.c</first> <second>imf3</second> </first> <second>30</second> </item> </second> </item> </inlineStackInfo> <originalName>ch</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>1</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>100</item> <item>101</item> <item>103</item> </oprand_edges> <opcode>bitselect</opcode> </item> <item class_id_reference="9" object_id="_13"> <Value> <Obj> <type>0</type> <id>23</id> <name>tmp_s</name> <fileName>imf3.c</fileName> <fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/RTL_Verification/lab2</fileDirectory> <lineNumber>32</lineNumber> <contextFuncName>imf3</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/RTL_Verification/lab2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>imf3.c</first> <second>imf3</second> </first> <second>32</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>104</item> </oprand_edges> <opcode>zext</opcode> </item> <item class_id_reference="9" object_id="_14"> <Value> <Obj> <type>0</type> <id>24</id> <name>c_1_0_addr</name> <fileName>imf3.c</fileName> <fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/RTL_Verification/lab2</fileDirectory> <lineNumber>32</lineNumber> <contextFuncName>imf3</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/RTL_Verification/lab2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>imf3.c</first> <second>imf3</second> </first> <second>32</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>105</item> <item>107</item> <item>108</item> </oprand_edges> <opcode>getelementptr</opcode> </item> <item class_id_reference="9" object_id="_15"> <Value> <Obj> <type>0</type> <id>25</id> <name>c_1_0_load</name> <fileName>imf3.c</fileName> <fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/RTL_Verification/lab2</fileDirectory> <lineNumber>32</lineNumber> <contextFuncName>imf3</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/RTL_Verification/lab2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>imf3.c</first> <second>imf3</second> </first> <second>32</second> </item> </second> </item> </inlineStackInfo> <originalName>c</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>18</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>109</item> </oprand_edges> <opcode>load</opcode> </item> <item class_id_reference="9" object_id="_16"> <Value> <Obj> <type>0</type> <id>26</id> <name>init_2_load</name> <fileName>imf3.c</fileName> <fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/RTL_Verification/lab2</fileDirectory> <lineNumber>32</lineNumber> <contextFuncName>imf3</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/RTL_Verification/lab2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>imf3.c</first> <second>imf3</second> </first> <second>32</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>1</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>110</item> </oprand_edges> <opcode>load</opcode> </item> <item class_id_reference="9" object_id="_17"> <Value> <Obj> <type>0</type> <id>27</id> <name>tmp_14</name> <fileName>imf3.c</fileName> <fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/RTL_Verification/lab2</fileDirectory> <lineNumber>32</lineNumber> <contextFuncName>imf3</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/RTL_Verification/lab2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>imf3.c</first> <second>imf3</second> </first> <second>32</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>111</item> <item>113</item> </oprand_edges> <opcode>icmp</opcode> </item> <item class_id_reference="9" object_id="_18"> <Value> <Obj> <type>0</type> <id>28</id> <name>or_cond</name> <fileName>imf3.c</fileName> <fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/RTL_Verification/lab2</fileDirectory> <lineNumber>32</lineNumber> <contextFuncName>imf3</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/RTL_Verification/lab2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>imf3.c</first> <second>imf3</second> </first> <second>32</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>114</item> <item>115</item> </oprand_edges> <opcode>or</opcode> </item> <item class_id_reference="9" object_id="_19"> <Value> <Obj> <type>0</type> <id>29</id> <name>tmp_7</name> <fileName>imf3.c</fileName> <fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/RTL_Verification/lab2</fileDirectory> <lineNumber>28</lineNumber> <contextFuncName>imf3</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/RTL_Verification/lab2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>imf3.c</first> <second>imf3</second> </first> <second>28</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>7</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>117</item> <item>118</item> <item>119</item> </oprand_edges> <opcode>bitconcatenate</opcode> </item> <item class_id_reference="9" object_id="_20"> <Value> <Obj> <type>0</type> <id>30</id> <name>tmp_8</name> <fileName>imf3.c</fileName> <fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/RTL_Verification/lab2</fileDirectory> <lineNumber>32</lineNumber> <contextFuncName>imf3</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/RTL_Verification/lab2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>imf3.c</first> <second>imf3</second> </first> <second>32</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>120</item> </oprand_edges> <opcode>zext</opcode> </item> <item class_id_reference="9" object_id="_21"> <Value> <Obj> <type>0</type> <id>31</id> <name>shift_reg_p0_addr</name> <fileName>imf3.c</fileName> <fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/RTL_Verification/lab2</fileDirectory> <lineNumber>32</lineNumber> <contextFuncName>imf3</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/RTL_Verification/lab2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>imf3.c</first> <second>imf3</second> </first> <second>32</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>121</item> <item>122</item> <item>123</item> </oprand_edges> <opcode>getelementptr</opcode> </item> <item class_id_reference="9" object_id="_22"> <Value> <Obj> <type>0</type> <id>32</id> <name>shift_reg_p0_load</name> <fileName>imf3.c</fileName> <fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/RTL_Verification/lab2</fileDirectory> <lineNumber>32</lineNumber> <contextFuncName>imf3</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/RTL_Verification/lab2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>imf3.c</first> <second>imf3</second> </first> <second>32</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>38</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>124</item> </oprand_edges> <opcode>load</opcode> </item> <item class_id_reference="9" object_id="_23"> <Value> <Obj> <type>0</type> <id>33</id> <name>tmp_15</name> <fileName>imf3.c</fileName> <fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/RTL_Verification/lab2</fileDirectory> <lineNumber>32</lineNumber> <contextFuncName>imf3</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/RTL_Verification/lab2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>imf3.c</first> <second>imf3</second> </first> <second>32</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>38</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>125</item> <item>127</item> <item>128</item> </oprand_edges> <opcode>select</opcode> </item> <item class_id_reference="9" object_id="_24"> <Value> <Obj> <type>0</type> <id>34</id> <name>tmp_i</name> <fileName>mac.c</fileName> <fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/RTL_Verification/lab2</fileDirectory> <lineNumber>46</lineNumber> <contextFuncName>mac</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/RTL_Verification/lab2</first> <second> <count>2</count> <item_version>0</item_version> <item> <first> <first>imf3.c</first> <second>imf3</second> </first> <second>32</second> </item> <item> <first> <first>mac.c</first> <second>mac</second> </first> <second>46</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>36</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>129</item> </oprand_edges> <opcode>sext</opcode> </item> <item class_id_reference="9" object_id="_25"> <Value> <Obj> <type>0</type> <id>35</id> <name>tmp_i_12</name> <fileName>mac.c</fileName> <fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/RTL_Verification/lab2</fileDirectory> <lineNumber>46</lineNumber> <contextFuncName>mac</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/RTL_Verification/lab2</first> <second> <count>2</count> <item_version>0</item_version> <item> <first> <first>imf3.c</first> <second>imf3</second> </first> <second>32</second> </item> <item> <first> <first>mac.c</first> <second>mac</second> </first> <second>46</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>36</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>130</item> </oprand_edges> <opcode>sext</opcode> </item> <item class_id_reference="9" object_id="_26"> <Value> <Obj> <type>0</type> <id>36</id> <name>tmp_i_cast</name> <fileName>mac.c</fileName> <fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/RTL_Verification/lab2</fileDirectory> <lineNumber>46</lineNumber> <contextFuncName>mac</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/RTL_Verification/lab2</first> <second> <count>2</count> <item_version>0</item_version> <item> <first> <first>imf3.c</first> <second>imf3</second> </first> <second>32</second> </item> <item> <first> <first>mac.c</first> <second>mac</second> </first> <second>46</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>35</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>131</item> </oprand_edges> <opcode>sext</opcode> </item> <item class_id_reference="9" object_id="_27"> <Value> <Obj> <type>0</type> <id>37</id> <name>m</name> <fileName>mac.c</fileName> <fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/RTL_Verification/lab2</fileDirectory> <lineNumber>46</lineNumber> <contextFuncName>mac</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/RTL_Verification/lab2</first> <second> <count>2</count> <item_version>0</item_version> <item> <first> <first>imf3.c</first> <second>imf3</second> </first> <second>32</second> </item> <item> <first> <first>mac.c</first> <second>mac</second> </first> <second>46</second> </item> </second> </item> </inlineStackInfo> <originalName>m</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>36</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>132</item> <item>133</item> </oprand_edges> <opcode>mul</opcode> </item> <item class_id_reference="9" object_id="_28"> <Value> <Obj> <type>0</type> <id>38</id> <name>tmp_26_i</name> <fileName>imf3.c</fileName> <fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/RTL_Verification/lab2</fileDirectory> <lineNumber>32</lineNumber> <contextFuncName>imf3</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/RTL_Verification/lab2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>imf3.c</first> <second>imf3</second> </first> <second>32</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>38</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>134</item> </oprand_edges> <opcode>sext</opcode> </item> <item class_id_reference="9" object_id="_29"> <Value> <Obj> <type>0</type> <id>39</id> <name>acc0</name> <fileName>imf3.c</fileName> <fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/RTL_Verification/lab2</fileDirectory> <lineNumber>32</lineNumber> <contextFuncName>imf3</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/RTL_Verification/lab2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>imf3.c</first> <second>imf3</second> </first> <second>32</second> </item> </second> </item> </inlineStackInfo> <originalName>acc0</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>38</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>135</item> <item>136</item> </oprand_edges> <opcode>add</opcode> </item> <item class_id_reference="9" object_id="_30"> <Value> <Obj> <type>0</type> <id>40</id> <name>c_1_1_addr</name> <fileName>imf3.c</fileName> <fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/RTL_Verification/lab2</fileDirectory> <lineNumber>33</lineNumber> <contextFuncName>imf3</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/RTL_Verification/lab2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>imf3.c</first> <second>imf3</second> </first> <second>33</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>137</item> <item>138</item> <item>139</item> </oprand_edges> <opcode>getelementptr</opcode> </item> <item class_id_reference="9" object_id="_31"> <Value> <Obj> <type>0</type> <id>41</id> <name>c_1_1_load</name> <fileName>imf3.c</fileName> <fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/RTL_Verification/lab2</fileDirectory> <lineNumber>33</lineNumber> <contextFuncName>imf3</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/RTL_Verification/lab2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>imf3.c</first> <second>imf3</second> </first> <second>33</second> </item> </second> </item> </inlineStackInfo> <originalName>c</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>1</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>140</item> </oprand_edges> <opcode>load</opcode> </item> <item class_id_reference="9" object_id="_32"> <Value> <Obj> <type>0</type> <id>42</id> <name>shift_reg_p1_addr</name> <fileName>imf3.c</fileName> <fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/RTL_Verification/lab2</fileDirectory> <lineNumber>33</lineNumber> <contextFuncName>imf3</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/RTL_Verification/lab2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>imf3.c</first> <second>imf3</second> </first> <second>33</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>141</item> <item>142</item> <item>143</item> </oprand_edges> <opcode>getelementptr</opcode> </item> <item class_id_reference="9" object_id="_33"> <Value> <Obj> <type>0</type> <id>43</id> <name>shift_reg_p1_load</name> <fileName>imf3.c</fileName> <fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/RTL_Verification/lab2</fileDirectory> <lineNumber>33</lineNumber> <contextFuncName>imf3</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/RTL_Verification/lab2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>imf3.c</first> <second>imf3</second> </first> <second>33</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>38</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>144</item> </oprand_edges> <opcode>load</opcode> </item> <item class_id_reference="9" object_id="_34"> <Value> <Obj> <type>0</type> <id>44</id> <name>tmp_16</name> <fileName>imf3.c</fileName> <fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/RTL_Verification/lab2</fileDirectory> <lineNumber>33</lineNumber> <contextFuncName>imf3</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/RTL_Verification/lab2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>imf3.c</first> <second>imf3</second> </first> <second>33</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>38</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>145</item> <item>146</item> <item>147</item> </oprand_edges> <opcode>select</opcode> </item> <item class_id_reference="9" object_id="_35"> <Value> <Obj> <type>0</type> <id>45</id> <name>p_shl</name> <fileName>mac.c</fileName> <fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/RTL_Verification/lab2</fileDirectory> <lineNumber>46</lineNumber> <contextFuncName>mac</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/RTL_Verification/lab2</first> <second> <count>2</count> <item_version>0</item_version> <item> <first> <first>imf3.c</first> <second>imf3</second> </first> <second>33</second> </item> <item> <first> <first>mac.c</first> <second>mac</second> </first> <second>46</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>35</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>149</item> <item>150</item> <item>152</item> </oprand_edges> <opcode>bitconcatenate</opcode> </item> <item class_id_reference="9" object_id="_36"> <Value> <Obj> <type>0</type> <id>46</id> <name>mt</name> <fileName>mac.c</fileName> <fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/RTL_Verification/lab2</fileDirectory> <lineNumber>46</lineNumber> <contextFuncName>mac</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/RTL_Verification/lab2</first> <second> <count>2</count> <item_version>0</item_version> <item> <first> <first>imf3.c</first> <second>imf3</second> </first> <second>33</second> </item> <item> <first> <first>mac.c</first> <second>mac</second> </first> <second>46</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>35</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>153</item> <item>154</item> </oprand_edges> <opcode>sub</opcode> </item> <item class_id_reference="9" object_id="_37"> <Value> <Obj> <type>0</type> <id>47</id> <name>m_1</name> <fileName>imf3.c</fileName> <fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/RTL_Verification/lab2</fileDirectory> <lineNumber>33</lineNumber> <contextFuncName>imf3</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/RTL_Verification/lab2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>imf3.c</first> <second>imf3</second> </first> <second>33</second> </item> </second> </item> </inlineStackInfo> <originalName>m</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>35</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>155</item> <item>156</item> <item>158</item> </oprand_edges> <opcode>select</opcode> </item> <item class_id_reference="9" object_id="_38"> <Value> <Obj> <type>0</type> <id>48</id> <name>tmp_26_i6</name> <fileName>imf3.c</fileName> <fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/RTL_Verification/lab2</fileDirectory> <lineNumber>33</lineNumber> <contextFuncName>imf3</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/RTL_Verification/lab2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>imf3.c</first> <second>imf3</second> </first> <second>33</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>38</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>159</item> </oprand_edges> <opcode>sext</opcode> </item> <item class_id_reference="9" object_id="_39"> <Value> <Obj> <type>0</type> <id>49</id> <name>acc1</name> <fileName>imf3.c</fileName> <fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/RTL_Verification/lab2</fileDirectory> <lineNumber>33</lineNumber> <contextFuncName>imf3</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/RTL_Verification/lab2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>imf3.c</first> <second>imf3</second> </first> <second>33</second> </item> </second> </item> </inlineStackInfo> <originalName>acc1</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>38</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>160</item> <item>161</item> </oprand_edges> <opcode>add</opcode> </item> <item class_id_reference="9" object_id="_40"> <Value> <Obj> <type>0</type> <id>50</id> <name>tmp_9</name> <fileName>imf3.c</fileName> <fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/RTL_Verification/lab2</fileDirectory> <lineNumber>25</lineNumber> <contextFuncName>imf3</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/RTL_Verification/lab2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>imf3.c</first> <second>imf3</second> </first> <second>25</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>7</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>162</item> <item>163</item> <item>164</item> </oprand_edges> <opcode>bitconcatenate</opcode> </item> <item class_id_reference="9" object_id="_41"> <Value> <Obj> <type>0</type> <id>51</id> <name>tmp_10</name> <fileName>imf3.c</fileName> <fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/RTL_Verification/lab2</fileDirectory> <lineNumber>35</lineNumber> <contextFuncName>imf3</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/RTL_Verification/lab2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>imf3.c</first> <second>imf3</second> </first> <second>35</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>165</item> </oprand_edges> <opcode>zext</opcode> </item> <item class_id_reference="9" object_id="_42"> <Value> <Obj> <type>0</type> <id>52</id> <name>shift_reg_p0_addr_1</name> <fileName>imf3.c</fileName> <fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/RTL_Verification/lab2</fileDirectory> <lineNumber>35</lineNumber> <contextFuncName>imf3</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/RTL_Verification/lab2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>imf3.c</first> <second>imf3</second> </first> <second>35</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>166</item> <item>167</item> <item>168</item> </oprand_edges> <opcode>getelementptr</opcode> </item> <item class_id_reference="9" object_id="_43"> <Value> <Obj> <type>0</type> <id>53</id> <name></name> <fileName>imf3.c</fileName> <fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/RTL_Verification/lab2</fileDirectory> <lineNumber>35</lineNumber> <contextFuncName>imf3</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/RTL_Verification/lab2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>imf3.c</first> <second>imf3</second> </first> <second>35</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>169</item> <item>170</item> <item>229</item> </oprand_edges> <opcode>store</opcode> </item> <item class_id_reference="9" object_id="_44"> <Value> <Obj> <type>0</type> <id>54</id> <name>shift_reg_p1_addr_1</name> <fileName>imf3.c</fileName> <fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/RTL_Verification/lab2</fileDirectory> <lineNumber>36</lineNumber> <contextFuncName>imf3</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/RTL_Verification/lab2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>imf3.c</first> <second>imf3</second> </first> <second>36</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>171</item> <item>172</item> <item>173</item> </oprand_edges> <opcode>getelementptr</opcode> </item> <item class_id_reference="9" object_id="_45"> <Value> <Obj> <type>0</type> <id>55</id> <name></name> <fileName>imf3.c</fileName> <fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/RTL_Verification/lab2</fileDirectory> <lineNumber>36</lineNumber> <contextFuncName>imf3</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/RTL_Verification/lab2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>imf3.c</first> <second>imf3</second> </first> <second>36</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>174</item> <item>175</item> <item>228</item> </oprand_edges> <opcode>store</opcode> </item> <item class_id_reference="9" object_id="_46"> <Value> <Obj> <type>0</type> <id>56</id> <name>tmp_11</name> <fileName>imf3.c</fileName> <fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/RTL_Verification/lab2</fileDirectory> <lineNumber>38</lineNumber> <contextFuncName>imf3</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/RTL_Verification/lab2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>imf3.c</first> <second>imf3</second> </first> <second>38</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>18</bitwidth> </Value> <oprand_edges> <count>4</count> <item_version>0</item_version> <item>177</item> <item>178</item> <item>180</item> <item>182</item> </oprand_edges> <opcode>partselect</opcode> </item> <item class_id_reference="9" object_id="_47"> <Value> <Obj> <type>0</type> <id>57</id> <name>tmp_12</name> <fileName>imf3.c</fileName> <fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/RTL_Verification/lab2</fileDirectory> <lineNumber>38</lineNumber> <contextFuncName>imf3</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/RTL_Verification/lab2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>imf3.c</first> <second>imf3</second> </first> <second>38</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>18</bitwidth> </Value> <oprand_edges> <count>4</count> <item_version>0</item_version> <item>183</item> <item>184</item> <item>185</item> <item>186</item> </oprand_edges> <opcode>partselect</opcode> </item> <item class_id_reference="9" object_id="_48"> <Value> <Obj> <type>0</type> <id>58</id> <name>tmp_13</name> <fileName>imf3.c</fileName> <fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/RTL_Verification/lab2</fileDirectory> <lineNumber>38</lineNumber> <contextFuncName>imf3</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/RTL_Verification/lab2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>imf3.c</first> <second>imf3</second> </first> <second>38</second> </item> </second> </item> </inlineStackInfo> <originalName>y</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>18</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>187</item> <item>188</item> <item>189</item> </oprand_edges> <opcode>select</opcode> </item> <item class_id_reference="9" object_id="_49"> <Value> <Obj> <type>0</type> <id>59</id> <name>tmp_17</name> <fileName>imf3.c</fileName> <fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/RTL_Verification/lab2</fileDirectory> <lineNumber>39</lineNumber> <contextFuncName>imf3</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/RTL_Verification/lab2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>imf3.c</first> <second>imf3</second> </first> <second>39</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>190</item> <item>192</item> </oprand_edges> <opcode>icmp</opcode> </item> <item class_id_reference="9" object_id="_50"> <Value> <Obj> <type>0</type> <id>60</id> <name>or_cond5</name> <fileName>imf3.c</fileName> <fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/RTL_Verification/lab2</fileDirectory> <lineNumber>39</lineNumber> <contextFuncName>imf3</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/RTL_Verification/lab2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>imf3.c</first> <second>imf3</second> </first> <second>39</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>193</item> <item>194</item> </oprand_edges> <opcode>and</opcode> </item> <item class_id_reference="9" object_id="_51"> <Value> <Obj> <type>0</type> <id>61</id> <name></name> <fileName>imf3.c</fileName> <fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/RTL_Verification/lab2</fileDirectory> <lineNumber>39</lineNumber> <contextFuncName>imf3</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/RTL_Verification/lab2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>imf3.c</first> <second>imf3</second> </first> <second>39</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>195</item> <item>196</item> <item>197</item> </oprand_edges> <opcode>br</opcode> </item> <item class_id_reference="9" object_id="_52"> <Value> <Obj> <type>0</type> <id>63</id> <name></name> <fileName>imf3.c</fileName> <fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/RTL_Verification/lab2</fileDirectory> <lineNumber>40</lineNumber> <contextFuncName>imf3</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/RTL_Verification/lab2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>imf3.c</first> <second>imf3</second> </first> <second>40</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>199</item> <item>200</item> <item>232</item> </oprand_edges> <opcode>store</opcode> </item> <item class_id_reference="9" object_id="_53"> <Value> <Obj> <type>0</type> <id>64</id> <name></name> <fileName>imf3.c</fileName> <fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/RTL_Verification/lab2</fileDirectory> <lineNumber>40</lineNumber> <contextFuncName>imf3</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/RTL_Verification/lab2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>imf3.c</first> <second>imf3</second> </first> <second>40</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>201</item> </oprand_edges> <opcode>br</opcode> </item> <item class_id_reference="9" object_id="_54"> <Value> <Obj> <type>0</type> <id>66</id> <name></name> <fileName>imf3.c</fileName> <fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/RTL_Verification/lab2</fileDirectory> <lineNumber>41</lineNumber> <contextFuncName>imf3</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/RTL_Verification/lab2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>imf3.c</first> <second>imf3</second> </first> <second>41</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>202</item> <item>203</item> <item>204</item> </oprand_edges> <opcode>br</opcode> </item> <item class_id_reference="9" object_id="_55"> <Value> <Obj> <type>0</type> <id>68</id> <name>tmp_18</name> <fileName>imf3.c</fileName> <fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/RTL_Verification/lab2</fileDirectory> <lineNumber>42</lineNumber> <contextFuncName>imf3</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/RTL_Verification/lab2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>imf3.c</first> <second>imf3</second> </first> <second>42</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>205</item> <item>206</item> </oprand_edges> <opcode>add</opcode> </item> <item class_id_reference="9" object_id="_56"> <Value> <Obj> <type>0</type> <id>69</id> <name>tmp_19</name> <fileName>imf3.c</fileName> <fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/RTL_Verification/lab2</fileDirectory> <lineNumber>42</lineNumber> <contextFuncName>imf3</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/RTL_Verification/lab2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>imf3.c</first> <second>imf3</second> </first> <second>42</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>207</item> <item>208</item> <item>209</item> </oprand_edges> <opcode>select</opcode> </item> <item class_id_reference="9" object_id="_57"> <Value> <Obj> <type>0</type> <id>70</id> <name></name> <fileName>imf3.c</fileName> <fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/RTL_Verification/lab2</fileDirectory> <lineNumber>42</lineNumber> <contextFuncName>imf3</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/RTL_Verification/lab2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>imf3.c</first> <second>imf3</second> </first> <second>42</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>210</item> <item>211</item> <item>233</item> </oprand_edges> <opcode>store</opcode> </item> <item class_id_reference="9" object_id="_58"> <Value> <Obj> <type>0</type> <id>71</id> <name></name> <fileName>imf3.c</fileName> <fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/RTL_Verification/lab2</fileDirectory> <lineNumber>42</lineNumber> <contextFuncName>imf3</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/RTL_Verification/lab2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>imf3.c</first> <second>imf3</second> </first> <second>42</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>212</item> </oprand_edges> <opcode>br</opcode> </item> <item class_id_reference="9" object_id="_59"> <Value> <Obj> <type>0</type> <id>73</id> <name>inc_2</name> <fileName>imf3.c</fileName> <fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/RTL_Verification/lab2</fileDirectory> <lineNumber>44</lineNumber> <contextFuncName>imf3</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/RTL_Verification/lab2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>imf3.c</first> <second>imf3</second> </first> <second>44</second> </item> </second> </item> </inlineStackInfo> <originalName>inc</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>6</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>213</item> <item>214</item> <item>215</item> </oprand_edges> <opcode>select</opcode> </item> <item class_id_reference="9" object_id="_60"> <Value> <Obj> <type>0</type> <id>74</id> <name></name> <fileName>imf3.c</fileName> <fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/RTL_Verification/lab2</fileDirectory> <lineNumber>44</lineNumber> <contextFuncName>imf3</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/RTL_Verification/lab2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>imf3.c</first> <second>imf3</second> </first> <second>44</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>216</item> <item>217</item> <item>231</item> </oprand_edges> <opcode>store</opcode> </item> <item class_id_reference="9" object_id="_61"> <Value> <Obj> <type>0</type> <id>75</id> <name></name> <fileName>imf3.c</fileName> <fileDirectory>d:/opt/source/Vivado/Vivado_HLS_Tutorial/RTL_Verification/lab2</fileDirectory> <lineNumber>45</lineNumber> <contextFuncName>imf3</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/RTL_Verification/lab2</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>imf3.c</first> <second>imf3</second> </first> <second>45</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>218</item> </oprand_edges> <opcode>ret</opcode> </item> </nodes> <consts class_id="15" tracking_level="0" version="0"> <count>12</count> <item_version>0</item_version> <item class_id="16" tracking_level="1" version="0" object_id="_62"> <Value> <Obj> <type>2</type> <id>82</id> <name>empty</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>6</bitwidth> </Value> <const_type>0</const_type> <content>0</content> </item> <item class_id_reference="16" object_id="_63"> <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>6</bitwidth> </Value> <const_type>0</const_type> <content>1</content> </item> <item class_id_reference="16" object_id="_64"> <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>32</bitwidth> </Value> <const_type>0</const_type> <content>3</content> </item> <item class_id_reference="16" object_id="_65"> <Value> <Obj> <type>2</type> <id>106</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>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>6</bitwidth> </Value> <const_type>0</const_type> <content>5</content> </item> <item class_id_reference="16" object_id="_67"> <Value> <Obj> <type>2</type> <id>126</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>38</bitwidth> </Value> <const_type>0</const_type> <content>0</content> </item> <item class_id_reference="16" object_id="_68"> <Value> <Obj> <type>2</type> <id>151</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>17</bitwidth> </Value> <const_type>0</const_type> <content>0</content> </item> <item class_id_reference="16" object_id="_69"> <Value> <Obj> <type>2</type> <id>157</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>35</bitwidth> </Value> <const_type>0</const_type> <content>0</content> </item> <item class_id_reference="16" object_id="_70"> <Value> <Obj> <type>2</type> <id>179</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>17</content> </item> <item class_id_reference="16" object_id="_71"> <Value> <Obj> <type>2</type> <id>181</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>34</content> </item> <item class_id_reference="16" object_id="_72"> <Value> <Obj> <type>2</type> <id>191</id> <name>empty</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>6</bitwidth> </Value> <const_type>0</const_type> <content>15</content> </item> <item class_id_reference="16" object_id="_73"> <Value> <Obj> <type>2</type> <id>198</id> <name>empty</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>1</bitwidth> </Value> <const_type>0</const_type> <content>0</content> </item> </consts> <blocks class_id="17" tracking_level="0" version="0"> <count>7</count> <item_version>0</item_version> <item class_id="18" tracking_level="1" version="0" object_id="_74"> <Obj> <type>3</type> <id>15</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>10</item> <item>11</item> <item>12</item> <item>13</item> <item>14</item> </node_objs> </item> <item class_id_reference="18" object_id="_75"> <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>2</count> <item_version>0</item_version> <item>16</item> <item>17</item> </node_objs> </item> <item class_id_reference="18" object_id="_76"> <Obj> <type>3</type> <id>62</id> <name>._crit_edge_ifconv</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>43</count> <item_version>0</item_version> <item>19</item> <item>20</item> <item>21</item> <item>22</item> <item>23</item> <item>24</item> <item>25</item> <item>26</item> <item>27</item> <item>28</item> <item>29</item> <item>30</item> <item>31</item> <item>32</item> <item>33</item> <item>34</item> <item>35</item> <item>36</item> <item>37</item> <item>38</item> <item>39</item> <item>40</item> <item>41</item> <item>42</item> <item>43</item> <item>44</item> <item>45</item> <item>46</item> <item>47</item> <item>48</item> <item>49</item> <item>50</item> <item>51</item> <item>52</item> <item>53</item> <item>54</item> <item>55</item> <item>56</item> <item>57</item> <item>58</item> <item>59</item> <item>60</item> <item>61</item> </node_objs> </item> <item class_id_reference="18" object_id="_77"> <Obj> <type>3</type> <id>65</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>63</item> <item>64</item> </node_objs> </item> <item class_id_reference="18" object_id="_78"> <Obj> <type>3</type> <id>67</id> <name>._crit_edge8</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>66</item> </node_objs> </item> <item class_id_reference="18" object_id="_79"> <Obj> <type>3</type> <id>72</id> <name>._crit_edge10</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>68</item> <item>69</item> <item>70</item> <item>71</item> </node_objs> </item> <item class_id_reference="18" object_id="_80"> <Obj> <type>3</type> <id>76</id> <name>._crit_edge9</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>73</item> <item>74</item> <item>75</item> </node_objs> </item> </blocks> <edges class_id="19" tracking_level="0" version="0"> <count>133</count> <item_version>0</item_version> <item class_id="20" tracking_level="1" version="0" object_id="_81"> <id>79</id> <edge_type>1</edge_type> <source_obj>1</source_obj> <sink_obj>10</sink_obj> </item> <item class_id_reference="20" object_id="_82"> <id>80</id> <edge_type>1</edge_type> <source_obj>2</source_obj> <sink_obj>11</sink_obj> </item> <item class_id_reference="20" object_id="_83"> <id>81</id> <edge_type>1</edge_type> <source_obj>11</source_obj> <sink_obj>12</sink_obj> </item> <item class_id_reference="20" object_id="_84"> <id>83</id> <edge_type>1</edge_type> <source_obj>82</source_obj> <sink_obj>12</sink_obj> </item> <item class_id_reference="20" object_id="_85"> <id>84</id> <edge_type>1</edge_type> <source_obj>3</source_obj> <sink_obj>13</sink_obj> </item> <item class_id_reference="20" object_id="_86"> <id>85</id> <edge_type>1</edge_type> <source_obj>12</source_obj> <sink_obj>14</sink_obj> </item> <item class_id_reference="20" object_id="_87"> <id>86</id> <edge_type>2</edge_type> <source_obj>62</source_obj> <sink_obj>14</sink_obj> </item> <item class_id_reference="20" object_id="_88"> <id>87</id> <edge_type>2</edge_type> <source_obj>18</source_obj> <sink_obj>14</sink_obj> </item> <item class_id_reference="20" object_id="_89"> <id>88</id> <edge_type>1</edge_type> <source_obj>10</source_obj> <sink_obj>16</sink_obj> </item> <item class_id_reference="20" object_id="_90"> <id>89</id> <edge_type>1</edge_type> <source_obj>3</source_obj> <sink_obj>16</sink_obj> </item> <item class_id_reference="20" object_id="_91"> <id>90</id> <edge_type>2</edge_type> <source_obj>62</source_obj> <sink_obj>17</sink_obj> </item> <item class_id_reference="20" object_id="_92"> <id>91</id> <edge_type>1</edge_type> <source_obj>10</source_obj> <sink_obj>19</sink_obj> </item> <item class_id_reference="20" object_id="_93"> <id>92</id> <edge_type>2</edge_type> <source_obj>18</source_obj> <sink_obj>19</sink_obj> </item> <item class_id_reference="20" object_id="_94"> <id>93</id> <edge_type>1</edge_type> <source_obj>13</source_obj> <sink_obj>19</sink_obj> </item> <item class_id_reference="20" object_id="_95"> <id>94</id> <edge_type>2</edge_type> <source_obj>15</source_obj> <sink_obj>19</sink_obj> </item> <item class_id_reference="20" object_id="_96"> <id>95</id> <edge_type>1</edge_type> <source_obj>11</source_obj> <sink_obj>20</sink_obj> </item> <item class_id_reference="20" object_id="_97"> <id>97</id> <edge_type>1</edge_type> <source_obj>96</source_obj> <sink_obj>20</sink_obj> </item> <item class_id_reference="20" object_id="_98"> <id>98</id> <edge_type>1</edge_type> <source_obj>4</source_obj> <sink_obj>21</sink_obj> </item> <item class_id_reference="20" object_id="_99"> <id>101</id> <edge_type>1</edge_type> <source_obj>21</source_obj> <sink_obj>22</sink_obj> </item> <item class_id_reference="20" object_id="_100"> <id>103</id> <edge_type>1</edge_type> <source_obj>102</source_obj> <sink_obj>22</sink_obj> </item> <item class_id_reference="20" object_id="_101"> <id>104</id> <edge_type>1</edge_type> <source_obj>11</source_obj> <sink_obj>23</sink_obj> </item> <item class_id_reference="20" object_id="_102"> <id>105</id> <edge_type>1</edge_type> <source_obj>5</source_obj> <sink_obj>24</sink_obj> </item> <item class_id_reference="20" object_id="_103"> <id>107</id> <edge_type>1</edge_type> <source_obj>106</source_obj> <sink_obj>24</sink_obj> </item> <item class_id_reference="20" object_id="_104"> <id>108</id> <edge_type>1</edge_type> <source_obj>23</source_obj> <sink_obj>24</sink_obj> </item> <item class_id_reference="20" object_id="_105"> <id>109</id> <edge_type>1</edge_type> <source_obj>24</source_obj> <sink_obj>25</sink_obj> </item> <item class_id_reference="20" object_id="_106"> <id>110</id> <edge_type>1</edge_type> <source_obj>6</source_obj> <sink_obj>26</sink_obj> </item> <item class_id_reference="20" object_id="_107"> <id>111</id> <edge_type>1</edge_type> <source_obj>11</source_obj> <sink_obj>27</sink_obj> </item> <item class_id_reference="20" object_id="_108"> <id>113</id> <edge_type>1</edge_type> <source_obj>112</source_obj> <sink_obj>27</sink_obj> </item> <item class_id_reference="20" object_id="_109"> <id>114</id> <edge_type>1</edge_type> <source_obj>26</source_obj> <sink_obj>28</sink_obj> </item> <item class_id_reference="20" object_id="_110"> <id>115</id> <edge_type>1</edge_type> <source_obj>27</source_obj> <sink_obj>28</sink_obj> </item> <item class_id_reference="20" object_id="_111"> <id>118</id> <edge_type>1</edge_type> <source_obj>20</source_obj> <sink_obj>29</sink_obj> </item> <item class_id_reference="20" object_id="_112"> <id>119</id> <edge_type>1</edge_type> <source_obj>22</source_obj> <sink_obj>29</sink_obj> </item> <item class_id_reference="20" object_id="_113"> <id>120</id> <edge_type>1</edge_type> <source_obj>29</source_obj> <sink_obj>30</sink_obj> </item> <item class_id_reference="20" object_id="_114"> <id>121</id> <edge_type>1</edge_type> <source_obj>7</source_obj> <sink_obj>31</sink_obj> </item> <item class_id_reference="20" object_id="_115"> <id>122</id> <edge_type>1</edge_type> <source_obj>106</source_obj> <sink_obj>31</sink_obj> </item> <item class_id_reference="20" object_id="_116"> <id>123</id> <edge_type>1</edge_type> <source_obj>30</source_obj> <sink_obj>31</sink_obj> </item> <item class_id_reference="20" object_id="_117"> <id>124</id> <edge_type>1</edge_type> <source_obj>31</source_obj> <sink_obj>32</sink_obj> </item> <item class_id_reference="20" object_id="_118"> <id>125</id> <edge_type>1</edge_type> <source_obj>28</source_obj> <sink_obj>33</sink_obj> </item> <item class_id_reference="20" object_id="_119"> <id>127</id> <edge_type>1</edge_type> <source_obj>126</source_obj> <sink_obj>33</sink_obj> </item> <item class_id_reference="20" object_id="_120"> <id>128</id> <edge_type>1</edge_type> <source_obj>32</source_obj> <sink_obj>33</sink_obj> </item> <item class_id_reference="20" object_id="_121"> <id>129</id> <edge_type>1</edge_type> <source_obj>25</source_obj> <sink_obj>34</sink_obj> </item> <item class_id_reference="20" object_id="_122"> <id>130</id> <edge_type>1</edge_type> <source_obj>19</source_obj> <sink_obj>35</sink_obj> </item> <item class_id_reference="20" object_id="_123"> <id>131</id> <edge_type>1</edge_type> <source_obj>19</source_obj> <sink_obj>36</sink_obj> </item> <item class_id_reference="20" object_id="_124"> <id>132</id> <edge_type>1</edge_type> <source_obj>35</source_obj> <sink_obj>37</sink_obj> </item> <item class_id_reference="20" object_id="_125"> <id>133</id> <edge_type>1</edge_type> <source_obj>34</source_obj> <sink_obj>37</sink_obj> </item> <item class_id_reference="20" object_id="_126"> <id>134</id> <edge_type>1</edge_type> <source_obj>37</source_obj> <sink_obj>38</sink_obj> </item> <item class_id_reference="20" object_id="_127"> <id>135</id> <edge_type>1</edge_type> <source_obj>33</source_obj> <sink_obj>39</sink_obj> </item> <item class_id_reference="20" object_id="_128"> <id>136</id> <edge_type>1</edge_type> <source_obj>38</source_obj> <sink_obj>39</sink_obj> </item> <item class_id_reference="20" object_id="_129"> <id>137</id> <edge_type>1</edge_type> <source_obj>8</source_obj> <sink_obj>40</sink_obj> </item> <item class_id_reference="20" object_id="_130"> <id>138</id> <edge_type>1</edge_type> <source_obj>106</source_obj> <sink_obj>40</sink_obj> </item> <item class_id_reference="20" object_id="_131"> <id>139</id> <edge_type>1</edge_type> <source_obj>23</source_obj> <sink_obj>40</sink_obj> </item> <item class_id_reference="20" object_id="_132"> <id>140</id> <edge_type>1</edge_type> <source_obj>40</source_obj> <sink_obj>41</sink_obj> </item> <item class_id_reference="20" object_id="_133"> <id>141</id> <edge_type>1</edge_type> <source_obj>9</source_obj> <sink_obj>42</sink_obj> </item> <item class_id_reference="20" object_id="_134"> <id>142</id> <edge_type>1</edge_type> <source_obj>106</source_obj> <sink_obj>42</sink_obj> </item> <item class_id_reference="20" object_id="_135"> <id>143</id> <edge_type>1</edge_type> <source_obj>30</source_obj> <sink_obj>42</sink_obj> </item> <item class_id_reference="20" object_id="_136"> <id>144</id> <edge_type>1</edge_type> <source_obj>42</source_obj> <sink_obj>43</sink_obj> </item> <item class_id_reference="20" object_id="_137"> <id>145</id> <edge_type>1</edge_type> <source_obj>28</source_obj> <sink_obj>44</sink_obj> </item> <item class_id_reference="20" object_id="_138"> <id>146</id> <edge_type>1</edge_type> <source_obj>126</source_obj> <sink_obj>44</sink_obj> </item> <item class_id_reference="20" object_id="_139"> <id>147</id> <edge_type>1</edge_type> <source_obj>43</source_obj> <sink_obj>44</sink_obj> </item> <item class_id_reference="20" object_id="_140"> <id>150</id> <edge_type>1</edge_type> <source_obj>19</source_obj> <sink_obj>45</sink_obj> </item> <item class_id_reference="20" object_id="_141"> <id>152</id> <edge_type>1</edge_type> <source_obj>151</source_obj> <sink_obj>45</sink_obj> </item> <item class_id_reference="20" object_id="_142"> <id>153</id> <edge_type>1</edge_type> <source_obj>45</source_obj> <sink_obj>46</sink_obj> </item> <item class_id_reference="20" object_id="_143"> <id>154</id> <edge_type>1</edge_type> <source_obj>36</source_obj> <sink_obj>46</sink_obj> </item> <item class_id_reference="20" object_id="_144"> <id>155</id> <edge_type>1</edge_type> <source_obj>41</source_obj> <sink_obj>47</sink_obj> </item> <item class_id_reference="20" object_id="_145"> <id>156</id> <edge_type>1</edge_type> <source_obj>46</source_obj> <sink_obj>47</sink_obj> </item> <item class_id_reference="20" object_id="_146"> <id>158</id> <edge_type>1</edge_type> <source_obj>157</source_obj> <sink_obj>47</sink_obj> </item> <item class_id_reference="20" object_id="_147"> <id>159</id> <edge_type>1</edge_type> <source_obj>47</source_obj> <sink_obj>48</sink_obj> </item> <item class_id_reference="20" object_id="_148"> <id>160</id> <edge_type>1</edge_type> <source_obj>44</source_obj> <sink_obj>49</sink_obj> </item> <item class_id_reference="20" object_id="_149"> <id>161</id> <edge_type>1</edge_type> <source_obj>48</source_obj> <sink_obj>49</sink_obj> </item> <item class_id_reference="20" object_id="_150"> <id>163</id> <edge_type>1</edge_type> <source_obj>11</source_obj> <sink_obj>50</sink_obj> </item> <item class_id_reference="20" object_id="_151"> <id>164</id> <edge_type>1</edge_type> <source_obj>22</source_obj> <sink_obj>50</sink_obj> </item> <item class_id_reference="20" object_id="_152"> <id>165</id> <edge_type>1</edge_type> <source_obj>50</source_obj> <sink_obj>51</sink_obj> </item> <item class_id_reference="20" object_id="_153"> <id>166</id> <edge_type>1</edge_type> <source_obj>7</source_obj> <sink_obj>52</sink_obj> </item> <item class_id_reference="20" object_id="_154"> <id>167</id> <edge_type>1</edge_type> <source_obj>106</source_obj> <sink_obj>52</sink_obj> </item> <item class_id_reference="20" object_id="_155"> <id>168</id> <edge_type>1</edge_type> <source_obj>51</source_obj> <sink_obj>52</sink_obj> </item> <item class_id_reference="20" object_id="_156"> <id>169</id> <edge_type>1</edge_type> <source_obj>39</source_obj> <sink_obj>53</sink_obj> </item> <item class_id_reference="20" object_id="_157"> <id>170</id> <edge_type>1</edge_type> <source_obj>52</source_obj> <sink_obj>53</sink_obj> </item> <item class_id_reference="20" object_id="_158"> <id>171</id> <edge_type>1</edge_type> <source_obj>9</source_obj> <sink_obj>54</sink_obj> </item> <item class_id_reference="20" object_id="_159"> <id>172</id> <edge_type>1</edge_type> <source_obj>106</source_obj> <sink_obj>54</sink_obj> </item> <item class_id_reference="20" object_id="_160"> <id>173</id> <edge_type>1</edge_type> <source_obj>51</source_obj> <sink_obj>54</sink_obj> </item> <item class_id_reference="20" object_id="_161"> <id>174</id> <edge_type>1</edge_type> <source_obj>49</source_obj> <sink_obj>55</sink_obj> </item> <item class_id_reference="20" object_id="_162"> <id>175</id> <edge_type>1</edge_type> <source_obj>54</source_obj> <sink_obj>55</sink_obj> </item> <item class_id_reference="20" object_id="_163"> <id>178</id> <edge_type>1</edge_type> <source_obj>39</source_obj> <sink_obj>56</sink_obj> </item> <item class_id_reference="20" object_id="_164"> <id>180</id> <edge_type>1</edge_type> <source_obj>179</source_obj> <sink_obj>56</sink_obj> </item> <item class_id_reference="20" object_id="_165"> <id>182</id> <edge_type>1</edge_type> <source_obj>181</source_obj> <sink_obj>56</sink_obj> </item> <item class_id_reference="20" object_id="_166"> <id>184</id> <edge_type>1</edge_type> <source_obj>49</source_obj> <sink_obj>57</sink_obj> </item> <item class_id_reference="20" object_id="_167"> <id>185</id> <edge_type>1</edge_type> <source_obj>179</source_obj> <sink_obj>57</sink_obj> </item> <item class_id_reference="20" object_id="_168"> <id>186</id> <edge_type>1</edge_type> <source_obj>181</source_obj> <sink_obj>57</sink_obj> </item> <item class_id_reference="20" object_id="_169"> <id>187</id> <edge_type>1</edge_type> <source_obj>12</source_obj> <sink_obj>58</sink_obj> </item> <item class_id_reference="20" object_id="_170"> <id>188</id> <edge_type>1</edge_type> <source_obj>56</source_obj> <sink_obj>58</sink_obj> </item> <item class_id_reference="20" object_id="_171"> <id>189</id> <edge_type>1</edge_type> <source_obj>57</source_obj> <sink_obj>58</sink_obj> </item> <item class_id_reference="20" object_id="_172"> <id>190</id> <edge_type>1</edge_type> <source_obj>21</source_obj> <sink_obj>59</sink_obj> </item> <item class_id_reference="20" object_id="_173"> <id>192</id> <edge_type>1</edge_type> <source_obj>191</source_obj> <sink_obj>59</sink_obj> </item> <item class_id_reference="20" object_id="_174"> <id>193</id> <edge_type>1</edge_type> <source_obj>27</source_obj> <sink_obj>60</sink_obj> </item> <item class_id_reference="20" object_id="_175"> <id>194</id> <edge_type>1</edge_type> <source_obj>59</source_obj> <sink_obj>60</sink_obj> </item> <item class_id_reference="20" object_id="_176"> <id>195</id> <edge_type>1</edge_type> <source_obj>60</source_obj> <sink_obj>61</sink_obj> </item> <item class_id_reference="20" object_id="_177"> <id>196</id> <edge_type>2</edge_type> <source_obj>67</source_obj> <sink_obj>61</sink_obj> </item> <item class_id_reference="20" object_id="_178"> <id>197</id> <edge_type>2</edge_type> <source_obj>65</source_obj> <sink_obj>61</sink_obj> </item> <item class_id_reference="20" object_id="_179"> <id>199</id> <edge_type>1</edge_type> <source_obj>198</source_obj> <sink_obj>63</sink_obj> </item> <item class_id_reference="20" object_id="_180"> <id>200</id> <edge_type>1</edge_type> <source_obj>6</source_obj> <sink_obj>63</sink_obj> </item> <item class_id_reference="20" object_id="_181"> <id>201</id> <edge_type>2</edge_type> <source_obj>67</source_obj> <sink_obj>64</sink_obj> </item> <item class_id_reference="20" object_id="_182"> <id>202</id> <edge_type>1</edge_type> <source_obj>27</source_obj> <sink_obj>66</sink_obj> </item> <item class_id_reference="20" object_id="_183"> <id>203</id> <edge_type>2</edge_type> <source_obj>76</source_obj> <sink_obj>66</sink_obj> </item> <item class_id_reference="20" object_id="_184"> <id>204</id> <edge_type>2</edge_type> <source_obj>72</source_obj> <sink_obj>66</sink_obj> </item> <item class_id_reference="20" object_id="_185"> <id>205</id> <edge_type>1</edge_type> <source_obj>21</source_obj> <sink_obj>68</sink_obj> </item> <item class_id_reference="20" object_id="_186"> <id>206</id> <edge_type>1</edge_type> <source_obj>96</source_obj> <sink_obj>68</sink_obj> </item> <item class_id_reference="20" object_id="_187"> <id>207</id> <edge_type>1</edge_type> <source_obj>59</source_obj> <sink_obj>69</sink_obj> </item> <item class_id_reference="20" object_id="_188"> <id>208</id> <edge_type>1</edge_type> <source_obj>82</source_obj> <sink_obj>69</sink_obj> </item> <item class_id_reference="20" object_id="_189"> <id>209</id> <edge_type>1</edge_type> <source_obj>68</source_obj> <sink_obj>69</sink_obj> </item> <item class_id_reference="20" object_id="_190"> <id>210</id> <edge_type>1</edge_type> <source_obj>69</source_obj> <sink_obj>70</sink_obj> </item> <item class_id_reference="20" object_id="_191"> <id>211</id> <edge_type>1</edge_type> <source_obj>4</source_obj> <sink_obj>70</sink_obj> </item> <item class_id_reference="20" object_id="_192"> <id>212</id> <edge_type>2</edge_type> <source_obj>76</source_obj> <sink_obj>71</sink_obj> </item> <item class_id_reference="20" object_id="_193"> <id>213</id> <edge_type>1</edge_type> <source_obj>27</source_obj> <sink_obj>73</sink_obj> </item> <item class_id_reference="20" object_id="_194"> <id>214</id> <edge_type>1</edge_type> <source_obj>82</source_obj> <sink_obj>73</sink_obj> </item> <item class_id_reference="20" object_id="_195"> <id>215</id> <edge_type>1</edge_type> <source_obj>20</source_obj> <sink_obj>73</sink_obj> </item> <item class_id_reference="20" object_id="_196"> <id>216</id> <edge_type>1</edge_type> <source_obj>73</source_obj> <sink_obj>74</sink_obj> </item> <item class_id_reference="20" object_id="_197"> <id>217</id> <edge_type>1</edge_type> <source_obj>2</source_obj> <sink_obj>74</sink_obj> </item> <item class_id_reference="20" object_id="_198"> <id>218</id> <edge_type>1</edge_type> <source_obj>58</source_obj> <sink_obj>75</sink_obj> </item> <item class_id_reference="20" object_id="_199"> <id>219</id> <edge_type>2</edge_type> <source_obj>15</source_obj> <sink_obj>18</sink_obj> </item> <item class_id_reference="20" object_id="_200"> <id>220</id> <edge_type>2</edge_type> <source_obj>15</source_obj> <sink_obj>62</sink_obj> </item> <item class_id_reference="20" object_id="_201"> <id>221</id> <edge_type>2</edge_type> <source_obj>18</source_obj> <sink_obj>62</sink_obj> </item> <item class_id_reference="20" object_id="_202"> <id>222</id> <edge_type>2</edge_type> <source_obj>62</source_obj> <sink_obj>65</sink_obj> </item> <item class_id_reference="20" object_id="_203"> <id>223</id> <edge_type>2</edge_type> <source_obj>62</source_obj> <sink_obj>67</sink_obj> </item> <item class_id_reference="20" object_id="_204"> <id>224</id> <edge_type>2</edge_type> <source_obj>65</source_obj> <sink_obj>67</sink_obj> </item> <item class_id_reference="20" object_id="_205"> <id>225</id> <edge_type>2</edge_type> <source_obj>67</source_obj> <sink_obj>72</sink_obj> </item> <item class_id_reference="20" object_id="_206"> <id>226</id> <edge_type>2</edge_type> <source_obj>67</source_obj> <sink_obj>76</sink_obj> </item> <item class_id_reference="20" object_id="_207"> <id>227</id> <edge_type>2</edge_type> <source_obj>72</source_obj> <sink_obj>76</sink_obj> </item> <item class_id_reference="20" object_id="_208"> <id>228</id> <edge_type>4</edge_type> <source_obj>43</source_obj> <sink_obj>55</sink_obj> </item> <item class_id_reference="20" object_id="_209"> <id>229</id> <edge_type>4</edge_type> <source_obj>32</source_obj> <sink_obj>53</sink_obj> </item> <item class_id_reference="20" object_id="_210"> <id>230</id> <edge_type>4</edge_type> <source_obj>13</source_obj> <sink_obj>16</sink_obj> </item> <item class_id_reference="20" object_id="_211"> <id>231</id> <edge_type>4</edge_type> <source_obj>11</source_obj> <sink_obj>74</sink_obj> </item> <item class_id_reference="20" object_id="_212"> <id>232</id> <edge_type>4</edge_type> <source_obj>26</source_obj> <sink_obj>63</sink_obj> </item> <item class_id_reference="20" object_id="_213"> <id>233</id> <edge_type>4</edge_type> <source_obj>21</source_obj> <sink_obj>70</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="_214"> <mId>1</mId> <mTag>duc_imf3</mTag> <mType>0</mType> <sub_regions> <count>0</count> <item_version>0</item_version> </sub_regions> <basic_blocks> <count>7</count> <item_version>0</item_version> <item>15</item> <item>18</item> <item>62</item> <item>65</item> <item>67</item> <item>72</item> <item>76</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> </cdfg_regions> <fsm class_id="24" tracking_level="1" version="0" object_id="_215"> <states class_id="25" tracking_level="0" version="0"> <count>8</count> <item_version>0</item_version> <item class_id="26" tracking_level="1" version="0" object_id="_216"> <id>1</id> <operations 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="_217"> <id>11</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_218"> <id>12</id> <stage>1</stage> <latency>1</latency> </item> </operations> </item> <item class_id_reference="26" object_id="_219"> <id>2</id> <operations> <count>11</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_220"> <id>10</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_221"> <id>13</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_222"> <id>14</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_223"> <id>16</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_224"> <id>17</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_225"> <id>20</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_226"> <id>23</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_227"> <id>24</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_228"> <id>25</id> <stage>2</stage> <latency>2</latency> </item> <item class_id_reference="28" object_id="_229"> <id>40</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_230"> <id>41</id> <stage>2</stage> <latency>2</latency> </item> </operations> </item> <item class_id_reference="26" object_id="_231"> <id>3</id> <operations> <count>11</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_232"> <id>19</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_233"> <id>21</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_234"> <id>22</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_235"> <id>25</id> <stage>1</stage> <latency>2</latency> </item> <item class_id_reference="28" object_id="_236"> <id>29</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_237"> <id>30</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_238"> <id>31</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_239"> <id>32</id> <stage>2</stage> <latency>2</latency> </item> <item class_id_reference="28" object_id="_240"> <id>41</id> <stage>1</stage> <latency>2</latency> </item> <item class_id_reference="28" object_id="_241"> <id>42</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_242"> <id>43</id> <stage>2</stage> <latency>2</latency> </item> </operations> </item> <item class_id_reference="26" object_id="_243"> <id>4</id> <operations> <count>9</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_244"> <id>27</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_245"> <id>32</id> <stage>1</stage> <latency>2</latency> </item> <item class_id_reference="28" object_id="_246"> <id>34</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_247"> <id>35</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_248"> <id>36</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_249"> <id>37</id> <stage>3</stage> <latency>3</latency> </item> <item class_id_reference="28" object_id="_250"> <id>43</id> <stage>1</stage> <latency>2</latency> </item> <item class_id_reference="28" object_id="_251"> <id>45</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_252"> <id>46</id> <stage>1</stage> <latency>1</latency> </item> </operations> </item> <item class_id_reference="26" object_id="_253"> <id>5</id> <operations> <count>6</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_254"> <id>26</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_255"> <id>28</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_256"> <id>33</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_257"> <id>37</id> <stage>2</stage> <latency>3</latency> </item> <item class_id_reference="28" object_id="_258"> <id>44</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_259"> <id>47</id> <stage>1</stage> <latency>1</latency> </item> </operations> </item> <item class_id_reference="26" object_id="_260"> <id>6</id> <operations> <count>6</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_261"> <id>37</id> <stage>1</stage> <latency>3</latency> </item> <item class_id_reference="28" object_id="_262"> <id>38</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_263"> <id>39</id> <stage>2</stage> <latency>2</latency> </item> <item class_id_reference="28" object_id="_264"> <id>48</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_265"> <id>49</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_266"> <id>57</id> <stage>1</stage> <latency>1</latency> </item> </operations> </item> <item class_id_reference="26" object_id="_267"> <id>7</id> <operations> <count>2</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_268"> <id>39</id> <stage>1</stage> <latency>2</latency> </item> <item class_id_reference="28" object_id="_269"> <id>56</id> <stage>1</stage> <latency>1</latency> </item> </operations> </item> <item class_id_reference="26" object_id="_270"> <id>8</id> <operations> <count>20</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_271"> <id>50</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_272"> <id>51</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_273"> <id>52</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_274"> <id>53</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_275"> <id>54</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_276"> <id>55</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_277"> <id>58</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_278"> <id>59</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_279"> <id>60</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_280"> <id>61</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_281"> <id>63</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_282"> <id>64</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_283"> <id>66</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_284"> <id>68</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_285"> <id>69</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_286"> <id>70</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_287"> <id>71</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_288"> <id>73</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_289"> <id>74</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_290"> <id>75</id> <stage>1</stage> <latency>1</latency> </item> </operations> </item> </states> <transitions class_id="29" tracking_level="0" version="0"> <count>7</count> <item_version>0</item_version> <item class_id="30" tracking_level="1" version="0" object_id="_291"> <inState>1</inState> <outState>2</outState> <condition class_id="31" tracking_level="0" version="0"> <id>23</id> <sop class_id="32" tracking_level="0" version="0"> <count>1</count> <item_version>0</item_version> <item class_id="33" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </item> </sop> </condition> </item> <item class_id_reference="30" object_id="_292"> <inState>2</inState> <outState>3</outState> <condition> <id>24</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="_293"> <inState>3</inState> <outState>4</outState> <condition> <id>27</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="_294"> <inState>4</inState> <outState>5</outState> <condition> <id>28</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="_295"> <inState>5</inState> <outState>6</outState> <condition> <id>29</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="_296"> <inState>6</inState> <outState>7</outState> <condition> <id>30</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="_297"> <inState>7</inState> <outState>8</outState> <condition> <id>31</id> <sop> <count>1</count> <item_version>0</item_version> <item> <count>0</count> <item_version>0</item_version> </item> </sop> </condition> </item> </transitions> </fsm> <res class_id="34" tracking_level="1" version="0" object_id="_298"> <dp_component_resource class_id="35" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </dp_component_resource> <dp_expression_resource> <count>0</count> <item_version>0</item_version> </dp_expression_resource> <dp_fifo_resource> <count>0</count> <item_version>0</item_version> </dp_fifo_resource> <dp_memory_resource> <count>0</count> <item_version>0</item_version> </dp_memory_resource> <dp_multiplexer_resource> <count>0</count> <item_version>0</item_version> </dp_multiplexer_resource> <dp_register_resource> <count>0</count> <item_version>0</item_version> </dp_register_resource> <dp_component_map class_id="36" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </dp_component_map> <dp_expression_map> <count>0</count> <item_version>0</item_version> </dp_expression_map> <dp_fifo_map> <count>0</count> <item_version>0</item_version> </dp_fifo_map> <dp_memory_map> <count>0</count> <item_version>0</item_version> </dp_memory_map> </res> <node_label_latency class_id="37" tracking_level="0" version="0"> <count>60</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>1</first> <second>0</second> </second> </item> <item> <first>11</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>12</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>13</first> <second> <first>1</first> <second>0</second> </second> </item> <item> <first>14</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>2</first> <second>0</second> </second> </item> <item> <first>20</first> <second> <first>1</first> <second>0</second> </second> </item> <item> <first>21</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>22</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>23</first> <second> <first>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>1</second> </second> </item> <item> <first>26</first> <second> <first>4</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>4</first> <second>0</second> </second> </item> <item> <first>29</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>30</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>31</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>32</first> <second> <first>2</first> <second>1</second> </second> </item> <item> <first>33</first> <second> <first>4</first> <second>0</second> </second> </item> <item> <first>34</first> <second> <first>3</first> <second>0</second> </second> </item> <item> <first>35</first> <second> <first>3</first> <second>0</second> </second> </item> <item> <first>36</first> <second> <first>3</first> <second>0</second> </second> </item> <item> <first>37</first> <second> <first>3</first> <second>2</second> </second> </item> <item> <first>38</first> <second> <first>5</first> <second>0</second> </second> </item> <item> <first>39</first> <second> <first>5</first> <second>1</second> </second> </item> <item> <first>40</first> <second> <first>1</first> <second>0</second> </second> </item> <item> <first>41</first> <second> <first>1</first> <second>1</second> </second> </item> <item> <first>42</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>43</first> <second> <first>2</first> <second>1</second> </second> </item> <item> <first>44</first> <second> <first>4</first> <second>0</second> </second> </item> <item> <first>45</first> <second> <first>3</first> <second>0</second> </second> </item> <item> <first>46</first> <second> <first>3</first> <second>0</second> </second> </item> <item> <first>47</first> <second> <first>4</first> <second>0</second> </second> </item> <item> <first>48</first> <second> <first>5</first> <second>0</second> </second> </item> <item> <first>49</first> <second> <first>5</first> <second>0</second> </second> </item> <item> <first>50</first> <second> <first>7</first> <second>0</second> </second> </item> <item> <first>51</first> <second> <first>7</first> <second>0</second> </second> </item> <item> <first>52</first> <second> <first>7</first> <second>0</second> </second> </item> <item> <first>53</first> <second> <first>7</first> <second>0</second> </second> </item> <item> <first>54</first> <second> <first>7</first> <second>0</second> </second> </item> <item> <first>55</first> <second> <first>7</first> <second>0</second> </second> </item> <item> <first>56</first> <second> <first>6</first> <second>0</second> </second> </item> <item> <first>57</first> <second> <first>5</first> <second>0</second> </second> </item> <item> <first>58</first> <second> <first>7</first> <second>0</second> </second> </item> <item> <first>59</first> <second> <first>7</first> <second>0</second> </second> </item> <item> <first>60</first> <second> <first>7</first> <second>0</second> </second> </item> <item> <first>61</first> <second> <first>7</first> <second>0</second> </second> </item> <item> <first>63</first> <second> <first>7</first> <second>0</second> </second> </item> <item> <first>64</first> <second> <first>7</first> <second>0</second> </second> </item> <item> <first>66</first> <second> <first>7</first> <second>0</second> </second> </item> <item> <first>68</first> <second> <first>7</first> <second>0</second> </second> </item> <item> <first>69</first> <second> <first>7</first> <second>0</second> </second> </item> <item> <first>70</first> <second> <first>7</first> <second>0</second> </second> </item> <item> <first>71</first> <second> <first>7</first> <second>0</second> </second> </item> <item> <first>73</first> <second> <first>7</first> <second>0</second> </second> </item> <item> <first>74</first> <second> <first>7</first> <second>0</second> </second> </item> <item> <first>75</first> <second> <first>7</first> <second>0</second> </second> </item> </node_label_latency> <bblk_ent_exit class_id="40" tracking_level="0" version="0"> <count>7</count> <item_version>0</item_version> <item class_id="41" tracking_level="0" version="0"> <first>15</first> <second class_id="42" tracking_level="0" version="0"> <first>0</first> <second>1</second> </second> </item> <item> <first>18</first> <second> <first>1</first> <second>1</second> </second> </item> <item> <first>62</first> <second> <first>1</first> <second>7</second> </second> </item> <item> <first>65</first> <second> <first>7</first> <second>7</second> </second> </item> <item> <first>67</first> <second> <first>7</first> <second>7</second> </second> </item> <item> <first>72</first> <second> <first>7</first> <second>7</second> </second> </item> <item> <first>76</first> <second> <first>7</first> <second>7</second> </second> </item> </bblk_ent_exit> <regions class_id="43" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </regions> <dp_fu_nodes class_id="44" tracking_level="0" version="0"> <count>49</count> <item_version>0</item_version> <item class_id="45" tracking_level="0" version="0"> <first>52</first> <second> <count>1</count> <item_version>0</item_version> <item>10</item> </second> </item> <item> <first>58</first> <second> <count>1</count> <item_version>0</item_version> <item>24</item> </second> </item> <item> <first>65</first> <second> <count>2</count> <item_version>0</item_version> <item>25</item> <item>25</item> </second> </item> <item> <first>70</first> <second> <count>1</count> <item_version>0</item_version> <item>40</item> </second> </item> <item> <first>77</first> <second> <count>2</count> <item_version>0</item_version> <item>41</item> <item>41</item> </second> </item> <item> <first>82</first> <second> <count>1</count> <item_version>0</item_version> <item>31</item> </second> </item> <item> <first>89</first> <second> <count>3</count> <item_version>0</item_version> <item>32</item> <item>32</item> <item>53</item> </second> </item> <item> <first>94</first> <second> <count>1</count> <item_version>0</item_version> <item>42</item> </second> </item> <item> <first>101</first> <second> <count>3</count> <item_version>0</item_version> <item>43</item> <item>43</item> <item>55</item> </second> </item> <item> <first>106</first> <second> <count>1</count> <item_version>0</item_version> <item>52</item> </second> </item> <item> <first>114</first> <second> <count>1</count> <item_version>0</item_version> <item>54</item> </second> </item> <item> <first>125</first> <second> <count>1</count> <item_version>0</item_version> <item>19</item> </second> </item> <item> <first>132</first> <second> <count>1</count> <item_version>0</item_version> <item>11</item> </second> </item> <item> <first>136</first> <second> <count>1</count> <item_version>0</item_version> <item>12</item> </second> </item> <item> <first>142</first> <second> <count>1</count> <item_version>0</item_version> <item>13</item> </second> </item> <item> <first>146</first> <second> <count>1</count> <item_version>0</item_version> <item>16</item> </second> </item> <item> <first>152</first> <second> <count>1</count> <item_version>0</item_version> <item>20</item> </second> </item> <item> <first>157</first> <second> <count>1</count> <item_version>0</item_version> <item>23</item> </second> </item> <item> <first>162</first> <second> <count>1</count> <item_version>0</item_version> <item>21</item> </second> </item> <item> <first>166</first> <second> <count>1</count> <item_version>0</item_version> <item>22</item> </second> </item> <item> <first>174</first> <second> <count>1</count> <item_version>0</item_version> <item>29</item> </second> </item> <item> <first>181</first> <second> <count>1</count> <item_version>0</item_version> <item>30</item> </second> </item> <item> <first>187</first> <second> <count>1</count> <item_version>0</item_version> <item>27</item> </second> </item> <item> <first>192</first> <second> <count>1</count> <item_version>0</item_version> <item>34</item> </second> </item> <item> <first>195</first> <second> <count>1</count> <item_version>0</item_version> <item>35</item> </second> </item> <item> <first>199</first> <second> <count>1</count> <item_version>0</item_version> <item>36</item> </second> </item> <item> <first>203</first> <second> <count>1</count> <item_version>0</item_version> <item>45</item> </second> </item> <item> <first>211</first> <second> <count>1</count> <item_version>0</item_version> <item>46</item> </second> </item> <item> <first>217</first> <second> <count>1</count> <item_version>0</item_version> <item>26</item> </second> </item> <item> <first>221</first> <second> <count>1</count> <item_version>0</item_version> <item>28</item> </second> </item> <item> <first>226</first> <second> <count>1</count> <item_version>0</item_version> <item>33</item> </second> </item> <item> <first>233</first> <second> <count>1</count> <item_version>0</item_version> <item>44</item> </second> </item> <item> <first>240</first> <second> <count>1</count> <item_version>0</item_version> <item>47</item> </second> </item> <item> <first>246</first> <second> <count>1</count> <item_version>0</item_version> <item>48</item> </second> </item> <item> <first>249</first> <second> <count>1</count> <item_version>0</item_version> <item>49</item> </second> </item> <item> <first>254</first> <second> <count>1</count> <item_version>0</item_version> <item>57</item> </second> </item> <item> <first>264</first> <second> <count>1</count> <item_version>0</item_version> <item>56</item> </second> </item> <item> <first>273</first> <second> <count>1</count> <item_version>0</item_version> <item>50</item> </second> </item> <item> <first>279</first> <second> <count>1</count> <item_version>0</item_version> <item>51</item> </second> </item> <item> <first>285</first> <second> <count>1</count> <item_version>0</item_version> <item>58</item> </second> </item> <item> <first>290</first> <second> <count>1</count> <item_version>0</item_version> <item>59</item> </second> </item> <item> <first>295</first> <second> <count>1</count> <item_version>0</item_version> <item>60</item> </second> </item> <item> <first>300</first> <second> <count>1</count> <item_version>0</item_version> <item>63</item> </second> </item> <item> <first>306</first> <second> <count>1</count> <item_version>0</item_version> <item>68</item> </second> </item> <item> <first>311</first> <second> <count>1</count> <item_version>0</item_version> <item>69</item> </second> </item> <item> <first>319</first> <second> <count>1</count> <item_version>0</item_version> <item>70</item> </second> </item> <item> <first>325</first> <second> <count>1</count> <item_version>0</item_version> <item>73</item> </second> </item> <item> <first>331</first> <second> <count>1</count> <item_version>0</item_version> <item>74</item> </second> </item> <item> <first>337</first> <second> <count>6</count> <item_version>0</item_version> <item>37</item> <item>37</item> <item>37</item> <item>39</item> <item>39</item> <item>38</item> </second> </item> </dp_fu_nodes> <dp_fu_nodes_expression class_id="47" tracking_level="0" version="0"> <count>35</count> <item_version>0</item_version> <item class_id="48" tracking_level="0" version="0"> <first>acc1_fu_249</first> <second> <count>1</count> <item_version>0</item_version> <item>49</item> </second> </item> <item> <first>c_1_0_addr_gep_fu_58</first> <second> <count>1</count> <item_version>0</item_version> <item>24</item> </second> </item> <item> <first>c_1_1_addr_gep_fu_70</first> <second> <count>1</count> <item_version>0</item_version> <item>40</item> </second> </item> <item> <first>ch_4_fu_166</first> <second> <count>1</count> <item_version>0</item_version> <item>22</item> </second> </item> <item> <first>d_assign_phi_fu_125</first> <second> <count>1</count> <item_version>0</item_version> <item>19</item> </second> </item> <item> <first>inc_2_fu_325</first> <second> <count>1</count> <item_version>0</item_version> <item>73</item> </second> </item> <item> <first>inc_fu_152</first> <second> <count>1</count> <item_version>0</item_version> <item>20</item> </second> </item> <item> <first>m_1_fu_240</first> <second> <count>1</count> <item_version>0</item_version> <item>47</item> </second> </item> <item> <first>mt_fu_211</first> <second> <count>1</count> <item_version>0</item_version> <item>46</item> </second> </item> <item> <first>or_cond5_fu_295</first> <second> <count>1</count> <item_version>0</item_version> <item>60</item> </second> </item> <item> <first>or_cond_fu_221</first> <second> <count>1</count> <item_version>0</item_version> <item>28</item> </second> </item> <item> <first>p_shl_fu_203</first> <second> <count>1</count> <item_version>0</item_version> <item>45</item> </second> </item> <item> <first>shift_reg_p0_addr_1_gep_fu_106</first> <second> <count>1</count> <item_version>0</item_version> <item>52</item> </second> </item> <item> <first>shift_reg_p0_addr_gep_fu_82</first> <second> <count>1</count> <item_version>0</item_version> <item>31</item> </second> </item> <item> <first>shift_reg_p1_addr_1_gep_fu_114</first> <second> <count>1</count> <item_version>0</item_version> <item>54</item> </second> </item> <item> <first>shift_reg_p1_addr_gep_fu_94</first> <second> <count>1</count> <item_version>0</item_version> <item>42</item> </second> </item> <item> <first>tmp_10_fu_279</first> <second> <count>1</count> <item_version>0</item_version> <item>51</item> </second> </item> <item> <first>tmp_11_fu_264</first> <second> <count>1</count> <item_version>0</item_version> <item>56</item> </second> </item> <item> <first>tmp_12_fu_254</first> <second> <count>1</count> <item_version>0</item_version> <item>57</item> </second> </item> <item> <first>tmp_13_fu_285</first> <second> <count>1</count> <item_version>0</item_version> <item>58</item> </second> </item> <item> <first>tmp_14_fu_187</first> <second> <count>1</count> <item_version>0</item_version> <item>27</item> </second> </item> <item> <first>tmp_15_fu_226</first> <second> <count>1</count> <item_version>0</item_version> <item>33</item> </second> </item> <item> <first>tmp_16_fu_233</first> <second> <count>1</count> <item_version>0</item_version> <item>44</item> </second> </item> <item> <first>tmp_17_fu_290</first> <second> <count>1</count> <item_version>0</item_version> <item>59</item> </second> </item> <item> <first>tmp_18_fu_306</first> <second> <count>1</count> <item_version>0</item_version> <item>68</item> </second> </item> <item> <first>tmp_19_fu_311</first> <second> <count>1</count> <item_version>0</item_version> <item>69</item> </second> </item> <item> <first>tmp_26_i6_fu_246</first> <second> <count>1</count> <item_version>0</item_version> <item>48</item> </second> </item> <item> <first>tmp_7_fu_174</first> <second> <count>1</count> <item_version>0</item_version> <item>29</item> </second> </item> <item> <first>tmp_8_fu_181</first> <second> <count>1</count> <item_version>0</item_version> <item>30</item> </second> </item> <item> <first>tmp_9_fu_273</first> <second> <count>1</count> <item_version>0</item_version> <item>50</item> </second> </item> <item> <first>tmp_fu_136</first> <second> <count>1</count> <item_version>0</item_version> <item>12</item> </second> </item> <item> <first>tmp_i_12_fu_195</first> <second> <count>1</count> <item_version>0</item_version> <item>35</item> </second> </item> <item> <first>tmp_i_cast_fu_199</first> <second> <count>1</count> <item_version>0</item_version> <item>36</item> </second> </item> <item> <first>tmp_i_fu_192</first> <second> <count>1</count> <item_version>0</item_version> <item>34</item> </second> </item> <item> <first>tmp_s_fu_157</first> <second> <count>1</count> <item_version>0</item_version> <item>23</item> </second> </item> </dp_fu_nodes_expression> <dp_fu_nodes_module> <count>1</count> <item_version>0</item_version> <item> <first>grp_fu_337</first> <second> <count>6</count> <item_version>0</item_version> <item>37</item> <item>37</item> <item>37</item> <item>39</item> <item>39</item> <item>38</item> </second> </item> </dp_fu_nodes_module> <dp_fu_nodes_io> <count>9</count> <item_version>0</item_version> <item> <first>i_2_load_load_fu_132</first> <second> <count>1</count> <item_version>0</item_version> <item>11</item> </second> </item> <item> <first>in_1_load_load_fu_142</first> <second> <count>1</count> <item_version>0</item_version> <item>13</item> </second> </item> <item> <first>init_2_load_load_fu_217</first> <second> <count>1</count> <item_version>0</item_version> <item>26</item> </second> </item> <item> <first>p_Val2_s_load_fu_162</first> <second> <count>1</count> <item_version>0</item_version> <item>21</item> </second> </item> <item> <first>stg_14_store_fu_146</first> <second> <count>1</count> <item_version>0</item_version> <item>16</item> </second> </item> <item> <first>stg_66_store_fu_300</first> <second> <count>1</count> <item_version>0</item_version> <item>63</item> </second> </item> <item> <first>stg_71_store_fu_319</first> <second> <count>1</count> <item_version>0</item_version> <item>70</item> </second> </item> <item> <first>stg_74_store_fu_331</first> <second> <count>1</count> <item_version>0</item_version> <item>74</item> </second> </item> <item> <first>x_read_read_fu_52</first> <second> <count>1</count> <item_version>0</item_version> <item>10</item> </second> </item> </dp_fu_nodes_io> <return_ports> <count>0</count> <item_version>0</item_version> </return_ports> <dp_mem_port_nodes class_id="49" tracking_level="0" version="0"> <count>4</count> <item_version>0</item_version> <item class_id="50" tracking_level="0" version="0"> <first class_id="51" tracking_level="0" version="0"> <first>c_1_0</first> <second>0</second> </first> <second> <count>2</count> <item_version>0</item_version> <item>25</item> <item>25</item> </second> </item> <item> <first> <first>c_1_1</first> <second>0</second> </first> <second> <count>2</count> <item_version>0</item_version> <item>41</item> <item>41</item> </second> </item> <item> <first> <first>shift_reg_p0</first> <second>0</second> </first> <second> <count>3</count> <item_version>0</item_version> <item>32</item> <item>32</item> <item>53</item> </second> </item> <item> <first> <first>shift_reg_p1</first> <second>0</second> </first> <second> <count>3</count> <item_version>0</item_version> <item>43</item> <item>43</item> <item>55</item> </second> </item> </dp_mem_port_nodes> <dp_reg_nodes> <count>27</count> <item_version>0</item_version> <item> <first>122</first> <second> <count>1</count> <item_version>0</item_version> <item>19</item> </second> </item> <item> <first>345</first> <second> <count>1</count> <item_version>0</item_version> <item>11</item> </second> </item> <item> <first>353</first> <second> <count>1</count> <item_version>0</item_version> <item>12</item> </second> </item> <item> <first>358</first> <second> <count>1</count> <item_version>0</item_version> <item>10</item> </second> </item> <item> <first>363</first> <second> <count>1</count> <item_version>0</item_version> <item>13</item> </second> </item> <item> <first>368</first> <second> <count>1</count> <item_version>0</item_version> <item>20</item> </second> </item> <item> <first>374</first> <second> <count>1</count> <item_version>0</item_version> <item>24</item> </second> </item> <item> <first>379</first> <second> <count>1</count> <item_version>0</item_version> <item>40</item> </second> </item> <item> <first>384</first> <second> <count>1</count> <item_version>0</item_version> <item>21</item> </second> </item> <item> <first>390</first> <second> <count>1</count> <item_version>0</item_version> <item>22</item> </second> </item> <item> <first>395</first> <second> <count>1</count> <item_version>0</item_version> <item>25</item> </second> </item> <item> <first>400</first> <second> <count>1</count> <item_version>0</item_version> <item>31</item> </second> </item> <item> <first>405</first> <second> <count>1</count> <item_version>0</item_version> <item>41</item> </second> </item> <item> <first>410</first> <second> <count>1</count> <item_version>0</item_version> <item>42</item> </second> </item> <item> <first>415</first> <second> <count>1</count> <item_version>0</item_version> <item>27</item> </second> </item> <item> <first>422</first> <second> <count>1</count> <item_version>0</item_version> <item>32</item> </second> </item> <item> <first>427</first> <second> <count>1</count> <item_version>0</item_version> <item>34</item> </second> </item> <item> <first>432</first> <second> <count>1</count> <item_version>0</item_version> <item>35</item> </second> </item> <item> <first>437</first> <second> <count>1</count> <item_version>0</item_version> <item>43</item> </second> </item> <item> <first>442</first> <second> <count>1</count> <item_version>0</item_version> <item>46</item> </second> </item> <item> <first>447</first> <second> <count>1</count> <item_version>0</item_version> <item>33</item> </second> </item> <item> <first>452</first> <second> <count>1</count> <item_version>0</item_version> <item>44</item> </second> </item> <item> <first>457</first> <second> <count>1</count> <item_version>0</item_version> <item>47</item> </second> </item> <item> <first>462</first> <second> <count>1</count> <item_version>0</item_version> <item>49</item> </second> </item> <item> <first>467</first> <second> <count>1</count> <item_version>0</item_version> <item>57</item> </second> </item> <item> <first>472</first> <second> <count>1</count> <item_version>0</item_version> <item>39</item> </second> </item> <item> <first>477</first> <second> <count>1</count> <item_version>0</item_version> <item>56</item> </second> </item> </dp_reg_nodes> <dp_regname_nodes> <count>27</count> <item_version>0</item_version> <item> <first>acc0_reg_472</first> <second> <count>1</count> <item_version>0</item_version> <item>39</item> </second> </item> <item> <first>acc1_reg_462</first> <second> <count>1</count> <item_version>0</item_version> <item>49</item> </second> </item> <item> <first>c_1_0_addr_reg_374</first> <second> <count>1</count> <item_version>0</item_version> <item>24</item> </second> </item> <item> <first>c_1_0_load_reg_395</first> <second> <count>1</count> <item_version>0</item_version> <item>25</item> </second> </item> <item> <first>c_1_1_addr_reg_379</first> <second> <count>1</count> <item_version>0</item_version> <item>40</item> </second> </item> <item> <first>c_1_1_load_reg_405</first> <second> <count>1</count> <item_version>0</item_version> <item>41</item> </second> </item> <item> <first>ch_4_reg_390</first> <second> <count>1</count> <item_version>0</item_version> <item>22</item> </second> </item> <item> <first>d_assign_reg_122</first> <second> <count>1</count> <item_version>0</item_version> <item>19</item> </second> </item> <item> <first>i_2_load_reg_345</first> <second> <count>1</count> <item_version>0</item_version> <item>11</item> </second> </item> <item> <first>in_1_load_reg_363</first> <second> <count>1</count> <item_version>0</item_version> <item>13</item> </second> </item> <item> <first>inc_reg_368</first> <second> <count>1</count> <item_version>0</item_version> <item>20</item> </second> </item> <item> <first>m_1_reg_457</first> <second> <count>1</count> <item_version>0</item_version> <item>47</item> </second> </item> <item> <first>mt_reg_442</first> <second> <count>1</count> <item_version>0</item_version> <item>46</item> </second> </item> <item> <first>p_Val2_s_reg_384</first> <second> <count>1</count> <item_version>0</item_version> <item>21</item> </second> </item> <item> <first>shift_reg_p0_addr_reg_400</first> <second> <count>1</count> <item_version>0</item_version> <item>31</item> </second> </item> <item> <first>shift_reg_p0_load_reg_422</first> <second> <count>1</count> <item_version>0</item_version> <item>32</item> </second> </item> <item> <first>shift_reg_p1_addr_reg_410</first> <second> <count>1</count> <item_version>0</item_version> <item>42</item> </second> </item> <item> <first>shift_reg_p1_load_reg_437</first> <second> <count>1</count> <item_version>0</item_version> <item>43</item> </second> </item> <item> <first>tmp_11_reg_477</first> <second> <count>1</count> <item_version>0</item_version> <item>56</item> </second> </item> <item> <first>tmp_12_reg_467</first> <second> <count>1</count> <item_version>0</item_version> <item>57</item> </second> </item> <item> <first>tmp_14_reg_415</first> <second> <count>1</count> <item_version>0</item_version> <item>27</item> </second> </item> <item> <first>tmp_15_reg_447</first> <second> <count>1</count> <item_version>0</item_version> <item>33</item> </second> </item> <item> <first>tmp_16_reg_452</first> <second> <count>1</count> <item_version>0</item_version> <item>44</item> </second> </item> <item> <first>tmp_i_12_reg_432</first> <second> <count>1</count> <item_version>0</item_version> <item>35</item> </second> </item> <item> <first>tmp_i_reg_427</first> <second> <count>1</count> <item_version>0</item_version> <item>34</item> </second> </item> <item> <first>tmp_reg_353</first> <second> <count>1</count> <item_version>0</item_version> <item>12</item> </second> </item> <item> <first>x_read_reg_358</first> <second> <count>1</count> <item_version>0</item_version> <item>10</item> </second> </item> </dp_regname_nodes> <dp_reg_phi> <count>1</count> <item_version>0</item_version> <item> <first>122</first> <second> <count>1</count> <item_version>0</item_version> <item>19</item> </second> </item> </dp_reg_phi> <dp_regname_phi> <count>1</count> <item_version>0</item_version> <item> <first>d_assign_reg_122</first> <second> <count>1</count> <item_version>0</item_version> <item>19</item> </second> </item> </dp_regname_phi> <dp_port_io_nodes class_id="52" tracking_level="0" version="0"> <count>1</count> <item_version>0</item_version> <item class_id="53" tracking_level="0" version="0"> <first>x</first> <second> <count>1</count> <item_version>0</item_version> <item> <first>read</first> <second> <count>1</count> <item_version>0</item_version> <item>10</item> </second> </item> </second> </item> </dp_port_io_nodes> <port2core class_id="54" 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.Strings.Unbounded; package body Geo3x3 is function Encode (PLat: in Long_Float; PLng: in Long_Float; Level: in Integer) return String is use Ada.Strings.Unbounded; Res: Unbounded_String; Lat: Long_Float; Lng: Long_Float; Unit: Long_Float; begin if Level < 1 then return ""; end if; Lng := PLng; Lat := PLat; if Lng >= 0.0 then Append (Res,'E'); else Append (Res,'W'); Lng := Lng + 180.0; end if; Lat := Lat + 90.0; Unit := 180.0; declare I: Integer; X: Integer; Y: Integer; C: Integer; begin I := 1; loop exit when I = Level; Unit := Unit / 3.0; X := Integer(Long_Float'Floor(Lng / Unit)); Y := Integer(Long_Float'Floor(Lat / Unit)); C := Character'Pos('0') + X + Y * 3 + 1; Append (Res,Character'Val(C)); Lng := Lng - Long_Float(X) * Unit; Lat := Lat - Long_Float(Y) * Unit; I := I + 1; end loop; end; return To_String(Res); end Encode; function Decode (Code: in String) return WGS84 is Lat : Long_Float; Lng : Long_Float; Unit : Long_Float; Level: Integer; begin declare Init : Integer; IsWest : Boolean; C : Character; begin if Code'Length = 0 then return (0.0, 0.0, 0, 0.0); end if; Init := 0; IsWest := False; C := Code(Code'First); if C = '-' or C = 'W' then IsWest := True; Init := 1; elsif C = '+' or C = 'E' then Init := 1; end if; Unit := 180.0; Lat := 0.0; Lng := 0.0; Level := 1; declare CLen : Integer; I : Integer; N : Integer; begin CLen := Code'Length; I := Init; loop exit when I = Clen; N := Character'Pos(Code(I+Code'First)) - Character'Pos('0'); if N <= 0 or 9 < N then I := Clen; else Unit := Unit / 3.0; N := N - 1; Lng := Lng + Long_Float(N rem 3) * Unit; Lat := Lat + Long_Float(N / 3) * Unit; Level := Level + 1; I := I + 1; end if; end loop; end; Lat := Lat + Unit / 2.0; Lng := Lng + Unit / 2.0; Lat := Lat - 90.0; if IsWest then Lng := Lng -180.0; end if; return (Lat, Lng, Level, Unit); end; end Decode; end Geo3x3;
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- S Y S T E M . O S _ I N T E R F A C E -- -- -- -- B o d y -- -- -- -- Copyright (C) 1991-1994, Florida State University -- -- Copyright (C) 1995-2005, AdaCore -- -- -- -- GNARL is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 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 a OpenVMS/Alpha version of this package. -- This package encapsulates all direct interfaces to OS services -- that are needed by children of System. pragma Polling (Off); -- Turn off polling, we do not want ATC polling to take place during -- tasking operations. It causes infinite loops and other problems. with Interfaces.C; use Interfaces.C; with System.Machine_Code; use System.Machine_Code; package body System.OS_Interface is ------------------ -- pthread_self -- ------------------ function pthread_self return pthread_t is use ASCII; Self : pthread_t; begin Asm ("call_pal 0x9e" & LF & HT & "bis $31, $0, %0", Outputs => pthread_t'Asm_Output ("=r", Self), Clobber => "$0"); return Self; end pthread_self; ----------------- -- sched_yield -- ----------------- function sched_yield return int is procedure sched_yield_base; pragma Import (C, sched_yield_base, "PTHREAD_YIELD_NP"); begin sched_yield_base; return 0; end sched_yield; end System.OS_Interface;
----------------------------------------------------------------------- -- awa-storages-stores-databases -- Database store -- Copyright (C) 2012, 2020 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law or agreed to in writing, software -- distributed under the License is distributed on an "AS IS" BASIS, -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -- See the License for the specific language governing permissions and -- limitations under the License. ----------------------------------------------------------------------- with ADO.Sessions; with ASF.Applications.Main.Configs; with AWA.Storages.Models; -- === Database store === -- The `AWA.Storages.Stores.Databases` store uses the database to save a data content. -- The data is saved in a specific table in a database blob column. -- The database store uses another store service to temporarily save the data content -- in a local file when the application needs a file access to the data. package AWA.Storages.Stores.Databases is -- Parameter that indicates the maximum size of files stored in the database. package Max_Size_Parameter is new ASF.Applications.Main.Configs.Parameter (Name => "database_max_size", Default => "100000"); -- ------------------------------ -- Storage Service -- ------------------------------ type Database_Store is new AWA.Storages.Stores.Store with record Tmp : AWA.Storages.Stores.Store_Access; end record; -- Save the file represented by the `Path` variable into a store and associate that -- content with the storage reference represented by `Into`. procedure Save (Storage : in Database_Store; Session : in out ADO.Sessions.Master_Session; Into : in out AWA.Storages.Models.Storage_Ref'Class; Path : in String); procedure Load (Storage : in Database_Store; Session : in out ADO.Sessions.Session'Class; From : in AWA.Storages.Models.Storage_Ref'Class; Into : in out AWA.Storages.Storage_File); -- Create a storage procedure Create (Storage : in Database_Store; Session : in out ADO.Sessions.Master_Session; From : in AWA.Storages.Models.Storage_Ref'Class; Into : in out AWA.Storages.Storage_File); -- Delete the content associate with the storage represented by `From`. procedure Delete (Storage : in Database_Store; Session : in out ADO.Sessions.Master_Session; From : in out AWA.Storages.Models.Storage_Ref'Class); end AWA.Storages.Stores.Databases;
------------------------------------------------------------------------------ -- -- -- GNAT ncurses Binding Samples -- -- -- -- Sample.Form_Demo -- -- -- -- B O D Y -- -- -- ------------------------------------------------------------------------------ -- Copyright (c) 1998 Free Software Foundation, Inc. -- -- -- -- 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, distribute with modifications, 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 ABOVE 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. -- -- -- -- Except as contained in this notice, the name(s) of the above copyright -- -- holders shall not be used in advertising or otherwise to promote the -- -- sale, use or other dealings in this Software without prior written -- -- authorization. -- ------------------------------------------------------------------------------ -- Author: Juergen Pfeifer <Juergen.Pfeifer@T-Online.de> 1996 -- Version Control -- $Revision: 1.5 $ -- Binding Version 00.93 ------------------------------------------------------------------------------ with Ada.Characters.Latin_1; use Ada.Characters.Latin_1; with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; with Terminal_Interface.Curses; use Terminal_Interface.Curses; with Terminal_Interface.Curses.Panels; use Terminal_Interface.Curses.Panels; with Terminal_Interface.Curses.Forms; use Terminal_Interface.Curses.Forms; with Terminal_Interface.Curses.Forms.Field_User_Data; with Terminal_Interface.Curses.Forms.Form_User_Data; with Sample.Keyboard_Handler; use Sample.Keyboard_Handler; with Sample.My_Field_Type; use Sample.My_Field_Type; with Sample.Manifest; use Sample.Manifest; with Sample.Explanation; use Sample.Explanation; with Sample.Form_Demo.Aux; use Sample.Form_Demo.Aux; with Sample.Function_Key_Setting; use Sample.Function_Key_Setting; with Sample.Form_Demo.Handler; with Terminal_Interface.Curses.Forms.Field_Types.Enumeration.Ada; with Terminal_Interface.Curses.Forms.Field_Types.Enumeration; use Terminal_Interface.Curses.Forms.Field_Types.Enumeration; with Terminal_Interface.Curses.Forms.Field_Types.IntField; use Terminal_Interface.Curses.Forms.Field_Types.IntField; package body Sample.Form_Demo is type User_Data is record Data : Integer; end record; type User_Access is access User_Data; package Fld_U is new Terminal_Interface.Curses.Forms.Field_User_Data (User_Data, User_Access); package Frm_U is new Terminal_Interface.Curses.Forms.Form_User_Data (User_Data, User_Access); type Weekday is (Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday); package Weekday_Enum is new Terminal_Interface.Curses.Forms.Field_Types.Enumeration.Ada (Weekday); Enum_Field : constant Enumeration_Field := Weekday_Enum.Create; procedure Demo is Mft : My_Data := (Ch => 'X'); FA : Field_Array_Access := new Field_Array' (Make (0, 14, "Sample Entry Form"), Make (2, 0, "WeekdayEnumeration"), Make (2, 20, "Numeric 1-10"), Make (2, 34, "Only 'X'"), Make (5, 0, "Multiple Lines offscreen(Scroll)"), Make (Width => 18, Top => 3, Left => 0), Make (Width => 12, Top => 3, Left => 20), Make (Width => 12, Top => 3, Left => 34), Make (Width => 46, Top => 6, Left => 0, Height => 4, Off_Screen => 2), Null_Field ); Frm : Terminal_Interface.Curses.Forms.Form := Create (FA); I_F : constant Integer_Field := (Precision => 0, Lower_Limit => 1, Upper_Limit => 10); F1, F2 : User_Access; package Fh is new Sample.Form_Demo.Handler (Default_Driver); begin Push_Environment ("FORM00"); Notepad ("FORM-PAD00"); Default_Labels; Set_Field_Type (FA (6), Enum_Field); Set_Field_Type (FA (7), I_F); Set_Field_Type (FA (8), Mft); F1 := new User_Data'(Data => 4711); Fld_U.Set_User_Data (FA (1), F1); Fh.Drive_Me (Frm); Fld_U.Get_User_Data (FA (1), F2); pragma Assert (F1 = F2); pragma Assert (F1.Data = F2.Data); Pop_Environment; Delete (Frm); Free (FA, True); end Demo; end Sample.Form_Demo;
with AdaM.Entity, Ada.Streams; package AdaM.raw_source is type Item is new Entity.item with private; type View is access all Item'Class; -- Forge -- function new_Source return raw_Source.view; procedure free (Self : in out raw_Source.view); procedure destruct (Self : in out Item); -- Attributes -- function Lines (Self : in Item) return text_Lines; procedure Lines_are (Self : in out Item; Now : in text_Lines); overriding function Id (Self : access Item) return AdaM.Id; overriding function to_Source (Self : in Item) return text_Vectors.Vector; overriding function Name (Self : in Item) return Identifier; private type Item is new Entity.item with record Lines : text_Lines; end record; -- Streams -- procedure View_write (Stream : not null access Ada.Streams.Root_Stream_Type'Class; Self : in View); procedure View_read (Stream : not null access Ada.Streams.Root_Stream_Type'Class; Self : out View); for View'write use View_write; for View'read use View_read; end AdaM.raw_source;
----------------------------------------------------------------------- -- druss-config -- Configuration management for Druss -- Copyright (C) 2017 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law or agreed to in writing, software -- distributed under the License is distributed on an "AS IS" BASIS, -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -- See the License for the specific language governing permissions and -- limitations under the License. ----------------------------------------------------------------------- with Druss.Gateways; package Druss.Config is -- Initialize the configuration. procedure Initialize (Path : in String); -- Get the configuration parameter. function Get (Name : in String) return String; -- Initalize the list of gateways from the configuration file. procedure Get_Gateways (List : in out Druss.Gateways.Gateway_Vector); -- Save the list of gateways. procedure Save_Gateways (List : in Druss.Gateways.Gateway_Vector); end Druss.Config;
-- Generated by Snowball 2.2.0 - https://snowballstem.org/ package body Stemmer.Catalan is pragma Style_Checks ("-mr"); pragma Warnings (Off, "*variable*is never read and never assigned*"); pragma Warnings (Off, "*mode could be*instead of*"); pragma Warnings (Off, "*formal parameter.*is not modified*"); pragma Warnings (Off, "*this line is too long*"); pragma Warnings (Off, "*is not referenced*"); procedure R_Residual_suffix (Z : in out Context_Type; Result : out Boolean); procedure R_Verb_suffix (Z : in out Context_Type; Result : out Boolean); procedure R_Standard_suffix (Z : in out Context_Type; Result : out Boolean); procedure R_Attached_pronoun (Z : in out Context_Type; Result : out Boolean); procedure R_R2 (Z : in out Context_Type; Result : out Boolean); procedure R_R1 (Z : in out Context_Type; Result : out Boolean); procedure R_Mark_regions (Z : in out Context_Type; Result : out Boolean); procedure R_Cleaning (Z : in out Context_Type; Result : out Boolean); G_V : constant Grouping_Array (0 .. 159) := ( True, False, False, False, True, False, False, False, True, False, False, False, False, False, True, False, False, False, False, False, True, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, True, True, False, False, False, False, False, False, True, True, False, False, False, True, False, True, False, False, True, True, False, False, False, False, False, False, True, False, True, False, False, False, False ); Among_String : constant String := "" & "·" & "à" & "á" & "è" & "é" & "ì" & "í" & "ï" & "ò" & "ó" & "ú" & "ü" & "la" & "-la" & "sela" & "le" & "me" & "-me" & "se" & "-te" & "hi" & "'hi" & "li" & "-li" & "'l" & "'m" & "-m" & "'n" & "-n" & "ho" & "'ho" & "lo" & "selo" & "'s" & "las" & "selas" & "les" & "-les" & "'ls" & "-ls" & "'ns" & "-ns" & "ens" & "los" & "selos" & "nos" & "-nos" & "vos" & "us" & "-us" & "'t" & "ica" & "lógica" & "enca" & "ada" & "ancia" & "encia" & "ència" & "ícia" & "logia" & "inia" & "íinia" & "eria" & "ària" & "atòria" & "alla" & "ella" & "ívola" & "ima" & "íssima" & "quíssima" & "ana" & "ina" & "era" & "sfera" & "ora" & "dora" & "adora" & "adura" & "esa" & "osa" & "assa" & "essa" & "issa" & "eta" & "ita" & "ota" & "ista" & "ialista" & "ionista" & "iva" & "ativa" & "nça" & "logía" & "ic" & "ístic" & "enc" & "esc" & "ud" & "atge" & "ble" & "able" & "ible" & "isme" & "ialisme" & "ionisme" & "ivisme" & "aire" & "icte" & "iste" & "ici" & "íci" & "logi" & "ari" & "tori" & "al" & "il" & "all" & "ell" & "ívol" & "isam" & "issem" & "ìssem" & "íssem" & "íssim" & "quíssim" & "amen" & "ìssin" & "ar" & "ificar" & "egar" & "ejar" & "itar" & "itzar" & "fer" & "or" & "dor" & "dur" & "doras" & "ics" & "lógics" & "uds" & "nces" & "ades" & "ancies" & "encies" & "ències" & "ícies" & "logies" & "inies" & "ínies" & "eries" & "àries" & "atòries" & "bles" & "ables" & "ibles" & "imes" & "íssimes" & "quíssimes" & "formes" & "ismes" & "ialismes" & "ines" & "eres" & "ores" & "dores" & "idores" & "dures" & "eses" & "oses" & "asses" & "ictes" & "ites" & "otes" & "istes" & "ialistes" & "ionistes" & "iques" & "lógiques" & "ives" & "atives" & "logíes" & "allengües" & "icis" & "ícis" & "logis" & "aris" & "toris" & "ls" & "als" & "ells" & "ims" & "íssims" & "quíssims" & "ions" & "cions" & "acions" & "esos" & "osos" & "assos" & "issos" & "ers" & "ors" & "dors" & "adors" & "idors" & "ats" & "itats" & "bilitats" & "ivitats" & "ativitats" & "ïtats" & "ets" & "ants" & "ents" & "ments" & "aments" & "ots" & "uts" & "ius" & "trius" & "atius" & "ès" & "és" & "ís" & "dís" & "ós" & "itat" & "bilitat" & "ivitat" & "ativitat" & "ïtat" & "et" & "ant" & "ent" & "ient" & "ment" & "ament" & "isament" & "ot" & "isseu" & "ìsseu" & "ísseu" & "triu" & "íssiu" & "atiu" & "ó" & "ió" & "ció" & "ació" & "aba" & "esca" & "isca" & "ïsca" & "ada" & "ida" & "uda" & "ïda" & "ia" & "aria" & "iria" & "ara" & "iera" & "ira" & "adora" & "ïra" & "ava" & "ixa" & "itza" & "ía" & "aría" & "ería" & "iría" & "ïa" & "isc" & "ïsc" & "ad" & "ed" & "id" & "ie" & "re" & "dre" & "ase" & "iese" & "aste" & "iste" & "ii" & "ini" & "esqui" & "eixi" & "itzi" & "am" & "em" & "arem" & "irem" & "àrem" & "írem" & "àssem" & "éssem" & "iguem" & "ïguem" & "avem" & "àvem" & "ávem" & "irìem" & "íem" & "aríem" & "iríem" & "assim" & "essim" & "issim" & "àssim" & "èssim" & "éssim" & "íssim" & "ïm" & "an" & "aban" & "arian" & "aran" & "ieran" & "iran" & "ían" & "arían" & "erían" & "irían" & "en" & "ien" & "arien" & "irien" & "aren" & "eren" & "iren" & "àren" & "ïren" & "asen" & "iesen" & "assen" & "essen" & "issen" & "éssen" & "ïssen" & "esquen" & "isquen" & "ïsquen" & "aven" & "ixen" & "eixen" & "ïxen" & "ïen" & "in" & "inin" & "sin" & "isin" & "assin" & "essin" & "issin" & "ïssin" & "esquin" & "eixin" & "aron" & "ieron" & "arán" & "erán" & "irán" & "iïn" & "ado" & "ido" & "ando" & "iendo" & "io" & "ixo" & "eixo" & "ïxo" & "itzo" & "ar" & "tzar" & "er" & "eixer" & "ir" & "ador" & "as" & "abas" & "adas" & "idas" & "aras" & "ieras" & "ías" & "arías" & "erías" & "irías" & "ids" & "es" & "ades" & "ides" & "udes" & "ïdes" & "atges" & "ies" & "aries" & "iries" & "ares" & "ires" & "adores" & "ïres" & "ases" & "ieses" & "asses" & "esses" & "isses" & "ïsses" & "ques" & "esques" & "ïsques" & "aves" & "ixes" & "eixes" & "ïxes" & "ïes" & "abais" & "arais" & "ierais" & "íais" & "aríais" & "eríais" & "iríais" & "aseis" & "ieseis" & "asteis" & "isteis" & "inis" & "sis" & "isis" & "assis" & "essis" & "issis" & "ïssis" & "esquis" & "eixis" & "itzis" & "áis" & "aréis" & "eréis" & "iréis" & "ams" & "ados" & "idos" & "amos" & "ábamos" & "áramos" & "iéramos" & "íamos" & "aríamos" & "eríamos" & "iríamos" & "aremos" & "eremos" & "iremos" & "ásemos" & "iésemos" & "imos" & "adors" & "ass" & "erass" & "ess" & "ats" & "its" & "ents" & "às" & "aràs" & "iràs" & "arás" & "erás" & "irás" & "és" & "arés" & "ís" & "iïs" & "at" & "it" & "ant" & "ent" & "int" & "ut" & "ït" & "au" & "erau" & "ieu" & "ineu" & "areu" & "ireu" & "àreu" & "íreu" & "asseu" & "esseu" & "eresseu" & "àsseu" & "ésseu" & "igueu" & "ïgueu" & "àveu" & "áveu" & "itzeu" & "ìeu" & "irìeu" & "íeu" & "aríeu" & "iríeu" & "assiu" & "issiu" & "àssiu" & "èssiu" & "éssiu" & "íssiu" & "ïu" & "ix" & "eix" & "ïx" & "itz" & "ià" & "arà" & "irà" & "itzà" & "ará" & "erá" & "irá" & "irè" & "aré" & "eré" & "iré" & "í" & "iï" & "ió" & "a" & "e" & "i" & "ïn" & "o" & "ir" & "s" & "is" & "os" & "ïs" & "it" & "eu" & "iu" & "iqu" & "itz" & "à" & "á" & "é" & "ì" & "í" & "ï" & "ó"; A_0 : constant Among_Array_Type (0 .. 12) := ( (1, 0, -1, 7, 0), (1, 2, 0, 6, 0), (3, 4, 0, 1, 0), (5, 6, 0, 1, 0), (7, 8, 0, 2, 0), (9, 10, 0, 2, 0), (11, 12, 0, 3, 0), (13, 14, 0, 3, 0), (15, 16, 0, 3, 0), (17, 18, 0, 4, 0), (19, 20, 0, 4, 0), (21, 22, 0, 5, 0), (23, 24, 0, 5, 0)); A_1 : constant Among_Array_Type (0 .. 38) := ( (25, 26, -1, 1, 0), (27, 29, 0, 1, 0), (30, 33, 0, 1, 0), (34, 35, -1, 1, 0), (36, 37, -1, 1, 0), (38, 40, 4, 1, 0), (41, 42, -1, 1, 0), (43, 45, -1, 1, 0), (46, 47, -1, 1, 0), (48, 50, 8, 1, 0), (51, 52, -1, 1, 0), (53, 55, 10, 1, 0), (56, 57, -1, 1, 0), (58, 59, -1, 1, 0), (60, 61, -1, 1, 0), (62, 63, -1, 1, 0), (64, 65, -1, 1, 0), (66, 67, -1, 1, 0), (68, 70, 17, 1, 0), (71, 72, -1, 1, 0), (73, 76, 19, 1, 0), (77, 78, -1, 1, 0), (79, 81, -1, 1, 0), (82, 86, 22, 1, 0), (87, 89, -1, 1, 0), (90, 93, 24, 1, 0), (94, 96, -1, 1, 0), (97, 99, -1, 1, 0), (100, 102, -1, 1, 0), (103, 105, -1, 1, 0), (106, 108, -1, 1, 0), (109, 111, -1, 1, 0), (112, 116, 31, 1, 0), (117, 119, -1, 1, 0), (120, 123, 33, 1, 0), (124, 126, -1, 1, 0), (127, 128, -1, 1, 0), (129, 131, 36, 1, 0), (132, 133, -1, 1, 0)); A_2 : constant Among_Array_Type (0 .. 199) := ( (134, 136, -1, 4, 0), (137, 143, 0, 3, 0), (144, 147, -1, 1, 0), (148, 150, -1, 2, 0), (151, 155, -1, 1, 0), (156, 160, -1, 1, 0), (161, 166, -1, 1, 0), (167, 171, -1, 1, 0), (172, 176, -1, 3, 0), (177, 180, -1, 1, 0), (181, 186, 9, 1, 0), (187, 190, -1, 1, 0), (191, 195, -1, 1, 0), (196, 202, -1, 1, 0), (203, 206, -1, 1, 0), (207, 210, -1, 1, 0), (211, 216, -1, 1, 0), (217, 219, -1, 1, 0), (220, 226, 17, 1, 0), (227, 235, 18, 5, 0), (236, 238, -1, 1, 0), (239, 241, -1, 1, 0), (242, 244, -1, 1, 0), (245, 249, 22, 1, 0), (250, 252, -1, 1, 0), (253, 256, 24, 1, 0), (257, 261, 25, 1, 0), (262, 266, -1, 1, 0), (267, 269, -1, 1, 0), (270, 272, -1, 1, 0), (273, 276, -1, 1, 0), (277, 280, -1, 1, 0), (281, 284, -1, 1, 0), (285, 287, -1, 1, 0), (288, 290, -1, 1, 0), (291, 293, -1, 1, 0), (294, 297, -1, 1, 0), (298, 304, 36, 1, 0), (305, 311, 36, 1, 0), (312, 314, -1, 1, 0), (315, 319, 39, 1, 0), (320, 323, -1, 1, 0), (324, 329, -1, 3, 0), (330, 331, -1, 4, 0), (332, 337, 43, 1, 0), (338, 340, -1, 1, 0), (341, 343, -1, 1, 0), (344, 345, -1, 1, 0), (346, 349, -1, 1, 0), (350, 352, -1, 1, 0), (353, 356, 49, 1, 0), (357, 360, 49, 1, 0), (361, 364, -1, 1, 0), (365, 371, 52, 1, 0), (372, 378, 52, 1, 0), (379, 384, 52, 1, 0), (385, 388, -1, 1, 0), (389, 392, -1, 1, 0), (393, 396, -1, 1, 0), (397, 399, -1, 1, 0), (400, 403, -1, 1, 0), (404, 407, -1, 3, 0), (408, 410, -1, 1, 0), (411, 414, -1, 1, 0), (415, 416, -1, 1, 0), (417, 418, -1, 1, 0), (419, 421, -1, 1, 0), (422, 424, -1, 1, 0), (425, 429, -1, 1, 0), (430, 433, -1, 1, 0), (434, 438, -1, 1, 0), (439, 444, -1, 1, 0), (445, 450, -1, 1, 0), (451, 456, -1, 1, 0), (457, 464, 73, 5, 0), (465, 468, -1, 1, 0), (469, 474, -1, 1, 0), (475, 476, -1, 1, 0), (477, 482, 77, 1, 0), (483, 486, 77, 1, 0), (487, 490, 77, 1, 0), (491, 494, 77, 1, 0), (495, 499, 77, 1, 0), (500, 502, -1, 1, 0), (503, 504, -1, 1, 0), (505, 507, 84, 1, 0), (508, 510, -1, 1, 0), (511, 515, -1, 1, 0), (516, 518, -1, 4, 0), (519, 525, 88, 3, 0), (526, 528, -1, 1, 0), (529, 532, -1, 1, 0), (533, 536, -1, 2, 0), (537, 542, -1, 1, 0), (543, 548, -1, 1, 0), (549, 555, -1, 1, 0), (556, 561, -1, 1, 0), (562, 567, -1, 3, 0), (568, 572, -1, 1, 0), (573, 578, -1, 1, 0), (579, 583, -1, 1, 0), (584, 589, -1, 1, 0), (590, 597, -1, 1, 0), (598, 601, -1, 1, 0), (602, 606, 103, 1, 0), (607, 611, 103, 1, 0), (612, 615, -1, 1, 0), (616, 623, 106, 1, 0), (624, 633, 107, 5, 0), (634, 639, -1, 1, 0), (640, 644, -1, 1, 0), (645, 652, 110, 1, 0), (653, 656, -1, 1, 0), (657, 660, -1, 1, 0), (661, 664, -1, 1, 0), (665, 669, 114, 1, 0), (670, 675, 115, 1, 0), (676, 680, -1, 1, 0), (681, 684, -1, 1, 0), (685, 688, -1, 1, 0), (689, 693, -1, 1, 0), (694, 698, -1, 1, 0), (699, 702, -1, 1, 0), (703, 706, -1, 1, 0), (707, 711, -1, 1, 0), (712, 719, 124, 1, 0), (720, 727, 124, 1, 0), (728, 732, -1, 4, 0), (733, 741, 127, 3, 0), (742, 745, -1, 1, 0), (746, 751, 129, 1, 0), (752, 758, -1, 3, 0), (759, 768, -1, 1, 0), (769, 772, -1, 1, 0), (773, 777, -1, 1, 0), (778, 782, -1, 3, 0), (783, 786, -1, 1, 0), (787, 791, -1, 1, 0), (792, 793, -1, 1, 0), (794, 796, 138, 1, 0), (797, 800, 138, 1, 0), (801, 803, -1, 1, 0), (804, 810, 141, 1, 0), (811, 819, 142, 5, 0), (820, 823, -1, 1, 0), (824, 828, 144, 1, 0), (829, 834, 145, 2, 0), (835, 838, -1, 1, 0), (839, 842, -1, 1, 0), (843, 847, -1, 1, 0), (848, 852, -1, 1, 0), (853, 855, -1, 1, 0), (856, 858, -1, 1, 0), (859, 862, 152, 1, 0), (863, 867, 153, 1, 0), (868, 872, 153, 1, 0), (873, 875, -1, 1, 0), (876, 880, 156, 1, 0), (881, 888, 157, 1, 0), (889, 895, 157, 1, 0), (896, 904, 159, 1, 0), (905, 910, 156, 1, 0), (911, 913, -1, 1, 0), (914, 917, -1, 1, 0), (918, 921, -1, 1, 0), (922, 926, 164, 1, 0), (927, 932, 165, 1, 0), (933, 935, -1, 1, 0), (936, 938, -1, 1, 0), (939, 941, -1, 1, 0), (942, 946, 169, 1, 0), (947, 951, 169, 1, 0), (952, 954, -1, 1, 0), (955, 957, -1, 1, 0), (958, 960, -1, 1, 0), (961, 964, 174, 1, 0), (965, 967, -1, 1, 0), (968, 971, -1, 1, 0), (972, 978, 177, 1, 0), (979, 984, 177, 1, 0), (985, 992, 179, 1, 0), (993, 997, -1, 1, 0), (998, 999, -1, 1, 0), (1000, 1002, -1, 1, 0), (1003, 1005, -1, 1, 0), (1006, 1009, 184, 1, 0), (1010, 1013, 184, 1, 0), (1014, 1018, 186, 1, 0), (1019, 1025, 187, 1, 0), (1026, 1027, -1, 1, 0), (1028, 1032, -1, 1, 0), (1033, 1038, -1, 1, 0), (1039, 1044, -1, 1, 0), (1045, 1048, -1, 1, 0), (1049, 1054, -1, 1, 0), (1055, 1058, -1, 1, 0), (1059, 1060, -1, 1, 0), (1061, 1063, 196, 1, 0), (1064, 1067, 197, 1, 0), (1068, 1072, 198, 1, 0)); A_3 : constant Among_Array_Type (0 .. 282) := ( (1073, 1075, -1, 1, 0), (1076, 1079, -1, 1, 0), (1080, 1083, -1, 1, 0), (1084, 1088, -1, 1, 0), (1089, 1091, -1, 1, 0), (1092, 1094, -1, 1, 0), (1095, 1097, -1, 1, 0), (1098, 1101, -1, 1, 0), (1102, 1103, -1, 1, 0), (1104, 1107, 8, 1, 0), (1108, 1111, 8, 1, 0), (1112, 1114, -1, 1, 0), (1115, 1118, -1, 1, 0), (1119, 1121, -1, 1, 0), (1122, 1126, -1, 1, 0), (1127, 1130, -1, 1, 0), (1131, 1133, -1, 1, 0), (1134, 1136, -1, 1, 0), (1137, 1140, -1, 1, 0), (1141, 1143, -1, 1, 0), (1144, 1148, 19, 1, 0), (1149, 1153, 19, 1, 0), (1154, 1158, 19, 1, 0), (1159, 1161, -1, 1, 0), (1162, 1164, -1, 1, 0), (1165, 1168, -1, 1, 0), (1169, 1170, -1, 1, 0), (1171, 1172, -1, 1, 0), (1173, 1174, -1, 1, 0), (1175, 1176, -1, 1, 0), (1177, 1178, -1, 1, 0), (1179, 1181, 30, 1, 0), (1182, 1184, -1, 1, 0), (1185, 1188, -1, 1, 0), (1189, 1192, -1, 1, 0), (1193, 1196, -1, 1, 0), (1197, 1198, -1, 1, 0), (1199, 1201, -1, 1, 0), (1202, 1206, -1, 1, 0), (1207, 1210, -1, 1, 0), (1211, 1214, -1, 1, 0), (1215, 1216, -1, 1, 0), (1217, 1218, -1, 1, 0), (1219, 1222, 42, 1, 0), (1223, 1226, 42, 1, 0), (1227, 1231, 42, 1, 0), (1232, 1236, 42, 1, 0), (1237, 1242, 42, 1, 0), (1243, 1248, 42, 1, 0), (1249, 1253, 42, 1, 0), (1254, 1259, 42, 1, 0), (1260, 1263, 42, 1, 0), (1264, 1268, 42, 1, 0), (1269, 1273, 42, 1, 0), (1274, 1279, 42, 1, 0), (1280, 1283, 42, 1, 0), (1284, 1289, 55, 1, 0), (1290, 1295, 55, 1, 0), (1296, 1300, -1, 1, 0), (1301, 1305, -1, 1, 0), (1306, 1310, -1, 1, 0), (1311, 1316, -1, 1, 0), (1317, 1322, -1, 1, 0), (1323, 1328, -1, 1, 0), (1329, 1334, -1, 1, 0), (1335, 1337, -1, 1, 0), (1338, 1339, -1, 1, 0), (1340, 1343, 66, 1, 0), (1344, 1348, 66, 1, 0), (1349, 1352, 66, 1, 0), (1353, 1357, 66, 1, 0), (1358, 1361, 66, 1, 0), (1362, 1365, 66, 1, 0), (1366, 1371, 72, 1, 0), (1372, 1377, 72, 1, 0), (1378, 1383, 72, 1, 0), (1384, 1385, -1, 1, 0), (1386, 1388, 76, 1, 0), (1389, 1393, 77, 1, 0), (1394, 1398, 77, 1, 0), (1399, 1402, 76, 1, 0), (1403, 1406, 76, 1, 0), (1407, 1410, 76, 1, 0), (1411, 1415, 76, 1, 0), (1416, 1420, 76, 1, 0), (1421, 1424, 76, 1, 0), (1425, 1429, 76, 1, 0), (1430, 1434, 76, 1, 0), (1435, 1439, 76, 1, 0), (1440, 1444, 76, 1, 0), (1445, 1450, 76, 1, 0), (1451, 1456, 76, 1, 0), (1457, 1462, 76, 1, 0), (1463, 1468, 76, 1, 0), (1469, 1475, 76, 1, 0), (1476, 1479, 76, 1, 0), (1480, 1483, 76, 1, 0), (1484, 1488, 96, 1, 0), (1489, 1493, 76, 1, 0), (1494, 1497, 76, 1, 0), (1498, 1499, -1, 1, 0), (1500, 1503, 100, 1, 0), (1504, 1506, 100, 1, 0), (1507, 1510, 102, 1, 0), (1511, 1515, 102, 1, 0), (1516, 1520, 102, 1, 0), (1521, 1525, 102, 1, 0), (1526, 1531, 102, 1, 0), (1532, 1537, 100, 1, 0), (1538, 1542, 100, 1, 0), (1543, 1546, -1, 1, 0), (1547, 1551, -1, 1, 0), (1552, 1556, -1, 1, 0), (1557, 1561, -1, 1, 0), (1562, 1566, -1, 1, 0), (1567, 1570, -1, 1, 0), (1571, 1573, -1, 1, 0), (1574, 1576, -1, 1, 0), (1577, 1580, -1, 2, 0), (1581, 1585, -1, 1, 0), (1586, 1587, -1, 1, 0), (1588, 1590, -1, 1, 0), (1591, 1594, 121, 1, 0), (1595, 1598, -1, 1, 0), (1599, 1602, -1, 1, 0), (1603, 1604, -1, 1, 0), (1605, 1608, 125, 1, 0), (1609, 1610, -1, 1, 0), (1611, 1615, 127, 1, 0), (1616, 1617, -1, 1, 0), (1618, 1621, -1, 1, 0), (1622, 1623, -1, 1, 0), (1624, 1627, 131, 1, 0), (1628, 1631, 131, 1, 0), (1632, 1635, 131, 1, 0), (1636, 1639, 131, 1, 0), (1640, 1644, 131, 1, 0), (1645, 1648, 131, 1, 0), (1649, 1654, 137, 1, 0), (1655, 1660, 137, 1, 0), (1661, 1666, 137, 1, 0), (1667, 1669, -1, 1, 0), (1670, 1671, -1, 1, 0), (1672, 1675, 142, 1, 0), (1676, 1679, 142, 1, 0), (1680, 1683, 142, 1, 0), (1684, 1688, 142, 1, 0), (1689, 1693, 142, 1, 0), (1694, 1696, 142, 1, 0), (1697, 1701, 148, 1, 0), (1702, 1706, 148, 1, 0), (1707, 1710, 142, 1, 0), (1711, 1714, 142, 1, 0), (1715, 1720, 142, 1, 0), (1721, 1725, 142, 1, 0), (1726, 1729, 142, 1, 0), (1730, 1734, 142, 1, 0), (1735, 1739, 142, 1, 0), (1740, 1744, 142, 1, 0), (1745, 1749, 142, 1, 0), (1750, 1755, 142, 1, 0), (1756, 1759, 142, 1, 0), (1760, 1765, 161, 1, 0), (1766, 1772, 161, 1, 0), (1773, 1776, 142, 1, 0), (1777, 1780, 142, 1, 0), (1781, 1785, 165, 1, 0), (1786, 1790, 142, 1, 0), (1791, 1794, 142, 1, 0), (1795, 1799, -1, 1, 0), (1800, 1804, -1, 1, 0), (1805, 1810, -1, 1, 0), (1811, 1815, -1, 1, 0), (1816, 1822, 172, 1, 0), (1823, 1829, 172, 1, 0), (1830, 1836, 172, 1, 0), (1837, 1841, -1, 1, 0), (1842, 1847, -1, 1, 0), (1848, 1853, -1, 1, 0), (1854, 1859, -1, 1, 0), (1860, 1863, -1, 1, 0), (1864, 1866, -1, 1, 0), (1867, 1870, 181, 1, 0), (1871, 1875, 181, 1, 0), (1876, 1880, 181, 1, 0), (1881, 1885, 181, 1, 0), (1886, 1891, 181, 1, 0), (1892, 1897, -1, 1, 0), (1898, 1902, -1, 1, 0), (1903, 1907, -1, 1, 0), (1908, 1911, -1, 1, 0), (1912, 1917, -1, 1, 0), (1918, 1923, -1, 1, 0), (1924, 1929, -1, 1, 0), (1930, 1932, -1, 1, 0), (1933, 1936, -1, 1, 0), (1937, 1940, -1, 1, 0), (1941, 1944, -1, 1, 0), (1945, 1951, 197, 1, 0), (1952, 1958, 197, 1, 0), (1959, 1966, 197, 1, 0), (1967, 1972, 197, 1, 0), (1973, 1980, 201, 1, 0), (1981, 1988, 201, 1, 0), (1989, 1996, 201, 1, 0), (1997, 2002, -1, 1, 0), (2003, 2008, -1, 1, 0), (2009, 2014, -1, 1, 0), (2015, 2021, -1, 1, 0), (2022, 2029, -1, 1, 0), (2030, 2033, -1, 1, 0), (2034, 2038, -1, 1, 0), (2039, 2041, -1, 1, 0), (2042, 2046, 212, 1, 0), (2047, 2049, -1, 1, 0), (2050, 2052, -1, 1, 0), (2053, 2055, -1, 1, 0), (2056, 2059, -1, 1, 0), (2060, 2062, -1, 1, 0), (2063, 2067, 218, 1, 0), (2068, 2072, 218, 1, 0), (2073, 2077, -1, 1, 0), (2078, 2082, -1, 1, 0), (2083, 2087, -1, 1, 0), (2088, 2090, -1, 1, 0), (2091, 2095, 224, 1, 0), (2096, 2098, -1, 1, 0), (2099, 2102, -1, 1, 0), (2103, 2104, -1, 1, 0), (2105, 2106, -1, 1, 0), (2107, 2109, -1, 1, 0), (2110, 2112, -1, 1, 0), (2113, 2115, -1, 1, 0), (2116, 2117, -1, 1, 0), (2118, 2120, -1, 1, 0), (2121, 2122, -1, 1, 0), (2123, 2126, 235, 1, 0), (2127, 2129, -1, 1, 0), (2130, 2133, -1, 1, 0), (2134, 2137, -1, 1, 0), (2138, 2141, -1, 1, 0), (2142, 2146, -1, 1, 0), (2147, 2151, -1, 1, 0), (2152, 2156, -1, 1, 0), (2157, 2161, -1, 1, 0), (2162, 2168, 244, 1, 0), (2169, 2174, -1, 1, 0), (2175, 2180, -1, 1, 0), (2181, 2185, -1, 1, 0), (2186, 2191, -1, 1, 0), (2192, 2196, -1, 1, 0), (2197, 2201, -1, 1, 0), (2202, 2206, -1, 1, 0), (2207, 2210, -1, 1, 0), (2211, 2216, 253, 1, 0), (2217, 2220, -1, 1, 0), (2221, 2226, 255, 1, 0), (2227, 2232, 255, 1, 0), (2233, 2237, -1, 1, 0), (2238, 2242, -1, 1, 0), (2243, 2248, -1, 1, 0), (2249, 2254, -1, 1, 0), (2255, 2260, -1, 1, 0), (2261, 2266, -1, 1, 0), (2267, 2269, -1, 1, 0), (2270, 2271, -1, 1, 0), (2272, 2274, 265, 1, 0), (2275, 2277, -1, 1, 0), (2278, 2280, -1, 1, 0), (2281, 2283, -1, 1, 0), (2284, 2287, -1, 1, 0), (2288, 2291, -1, 1, 0), (2292, 2296, -1, 1, 0), (2297, 2300, -1, 1, 0), (2301, 2304, -1, 1, 0), (2305, 2308, -1, 1, 0), (2309, 2312, -1, 1, 0), (2313, 2316, -1, 1, 0), (2317, 2320, -1, 1, 0), (2321, 2324, -1, 1, 0), (2325, 2326, -1, 1, 0), (2327, 2329, -1, 1, 0), (2330, 2332, -1, 1, 0)); A_4 : constant Among_Array_Type (0 .. 21) := ( (2333, 2333, -1, 1, 0), (2334, 2334, -1, 1, 0), (2335, 2335, -1, 1, 0), (2336, 2338, -1, 1, 0), (2339, 2339, -1, 1, 0), (2340, 2341, -1, 1, 0), (2342, 2342, -1, 1, 0), (2343, 2344, 6, 1, 0), (2345, 2346, 6, 1, 0), (2347, 2349, 6, 1, 0), (2350, 2351, -1, 1, 0), (2352, 2353, -1, 1, 0), (2354, 2355, -1, 1, 0), (2356, 2358, -1, 2, 0), (2359, 2361, -1, 1, 0), (2362, 2363, -1, 1, 0), (2364, 2365, -1, 1, 0), (2366, 2367, -1, 1, 0), (2368, 2369, -1, 1, 0), (2370, 2371, -1, 1, 0), (2372, 2373, -1, 1, 0), (2374, 2375, -1, 1, 0)); procedure R_Mark_regions (Z : in out Context_Type; Result : out Boolean) is C : Result_Index; A : Integer; v_1 : Char_Index; begin -- (, line 36 Z.I_P1 := Z.L; Z.I_P2 := Z.L; -- do, line 41 v_1 := Z.C; -- (, line 41 -- gopast, line 42 -- grouping v, line 42 Out_Grouping (Z, G_V, 97, 252, True, C); if C < 0 then goto lab0; end if; Z.C := Z.C + C; -- gopast, line 42 -- non v, line 42 In_Grouping (Z, G_V, 97, 252, True, C); if C < 0 then goto lab0; end if; Z.C := Z.C + C; -- setmark p1, line 42 Z.I_P1 := Z.C; -- gopast, line 43 -- grouping v, line 43 Out_Grouping (Z, G_V, 97, 252, True, C); if C < 0 then goto lab0; end if; Z.C := Z.C + C; -- gopast, line 43 -- non v, line 43 In_Grouping (Z, G_V, 97, 252, True, C); if C < 0 then goto lab0; end if; Z.C := Z.C + C; -- setmark p2, line 43 Z.I_P2 := Z.C; <<lab0>> Z.C := v_1; Result := True; end R_Mark_regions; procedure R_Cleaning (Z : in out Context_Type; Result : out Boolean) is C : Result_Index; A : Integer; v_1 : Char_Index; begin -- repeat, line 47 <<lab0>> loop v_1 := Z.C; -- (, line 47 Z.Bra := Z.C; -- [, line 48 -- substring, line 48 if Z.C + 1 >= Z.L or else Check_Among (Z, Z.C + 1, 5, 16#148cb303#) then A := 7; else -- substring, line 48 Find_Among (Z, A_0, Among_String, null, A); if A = 0 then goto lab1; end if; end if; Z.Ket := Z.C; -- ], line 48 -- among, line 48 case A is when 1 => -- (, line 49 -- <-, line 49 Slice_From (Z, "a"); when 2 => -- (, line 51 -- <-, line 51 Slice_From (Z, "e"); when 3 => -- (, line 53 -- <-, line 53 Slice_From (Z, "i"); when 4 => -- (, line 55 -- <-, line 55 Slice_From (Z, "o"); when 5 => -- (, line 57 -- <-, line 57 Slice_From (Z, "u"); when 6 => -- (, line 60 -- <-, line 60 Slice_From (Z, "."); when 7 => -- (, line 61 -- next, line 61 C := Skip_Utf8 (Z); if C < 0 then goto lab1; end if; Z.C := C; when others => null; end case; goto lab0; <<lab1>> Z.C := v_1; exit; end loop; Result := True; end R_Cleaning; procedure R_R1 (Z : in out Context_Type; Result : out Boolean) is begin Result := (Z.I_P1 <= Z.C); end R_R1; procedure R_R2 (Z : in out Context_Type; Result : out Boolean) is begin Result := (Z.I_P2 <= Z.C); end R_R2; procedure R_Attached_pronoun (Z : in out Context_Type; Result : out Boolean) is C : Result_Index; A : Integer; begin -- (, line 70 Z.Ket := Z.C; -- [, line 71 -- substring, line 71 if Z.C - 1 <= Z.Lb or else Check_Among (Z, Z.C - 1, 3, 16#18f222#) then Result := False; return; -- substring, line 71 end if; Find_Among_Backward (Z, A_1, Among_String, null, A); if A = 0 then Result := False; return; end if; Z.Bra := Z.C; -- ], line 71 -- (, line 81 -- call R1, line 81 R_R1 (Z, Result); if not Result then Result := False; return; end if; -- delete, line 81 Slice_Del (Z); Result := True; end R_Attached_pronoun; procedure R_Standard_suffix (Z : in out Context_Type; Result : out Boolean) is C : Result_Index; A : Integer; begin -- (, line 85 Z.Ket := Z.C; -- [, line 86 -- substring, line 86 Find_Among_Backward (Z, A_2, Among_String, null, A); if A = 0 then Result := False; return; end if; Z.Bra := Z.C; -- ], line 86 -- among, line 86 case A is when 1 => -- (, line 110 -- call R1, line 110 R_R1 (Z, Result); if not Result then Result := False; return; end if; -- delete, line 110 Slice_Del (Z); when 2 => -- (, line 112 -- call R2, line 112 R_R2 (Z, Result); if not Result then Result := False; return; end if; -- delete, line 112 Slice_Del (Z); when 3 => -- (, line 114 -- call R2, line 114 R_R2 (Z, Result); if not Result then Result := False; return; end if; -- <-, line 114 Slice_From (Z, "log"); when 4 => -- (, line 116 -- call R2, line 116 R_R2 (Z, Result); if not Result then Result := False; return; end if; -- <-, line 116 Slice_From (Z, "ic"); when 5 => -- (, line 118 -- call R1, line 118 R_R1 (Z, Result); if not Result then Result := False; return; end if; -- <-, line 118 Slice_From (Z, "c"); when others => null; end case; Result := True; end R_Standard_suffix; procedure R_Verb_suffix (Z : in out Context_Type; Result : out Boolean) is C : Result_Index; A : Integer; begin -- (, line 122 Z.Ket := Z.C; -- [, line 123 -- substring, line 123 Find_Among_Backward (Z, A_3, Among_String, null, A); if A = 0 then Result := False; return; end if; Z.Bra := Z.C; -- ], line 123 -- among, line 123 case A is when 1 => -- (, line 168 -- call R1, line 168 R_R1 (Z, Result); if not Result then Result := False; return; end if; -- delete, line 168 Slice_Del (Z); when 2 => -- (, line 170 -- call R2, line 170 R_R2 (Z, Result); if not Result then Result := False; return; end if; -- delete, line 170 Slice_Del (Z); when others => null; end case; Result := True; end R_Verb_suffix; procedure R_Residual_suffix (Z : in out Context_Type; Result : out Boolean) is C : Result_Index; A : Integer; begin -- (, line 174 Z.Ket := Z.C; -- [, line 175 -- substring, line 175 Find_Among_Backward (Z, A_4, Among_String, null, A); if A = 0 then Result := False; return; end if; Z.Bra := Z.C; -- ], line 175 -- among, line 175 case A is when 1 => -- (, line 178 -- call R1, line 178 R_R1 (Z, Result); if not Result then Result := False; return; end if; -- delete, line 178 Slice_Del (Z); when 2 => -- (, line 180 -- call R1, line 180 R_R1 (Z, Result); if not Result then Result := False; return; end if; -- <-, line 180 Slice_From (Z, "ic"); when others => null; end case; Result := True; end R_Residual_suffix; procedure Stem (Z : in out Context_Type; Result : out Boolean) is C : Result_Index; A : Integer; v_2 : Char_Index; v_3 : Char_Index; v_4 : Char_Index; v_5 : Char_Index; v_6 : Char_Index; begin -- (, line 185 -- do, line 186 -- call mark_regions, line 186 R_Mark_regions (Z, Result); Z.Lb := Z.C; Z.C := Z.L; -- backwards, line 187 -- (, line 187 -- do, line 188 v_2 := Z.L - Z.C; -- call attached_pronoun, line 188 R_Attached_pronoun (Z, Result); Z.C := Z.L - v_2; -- do, line 189 v_3 := Z.L - Z.C; -- or, line 189 v_4 := Z.L - Z.C; -- call standard_suffix, line 189 R_Standard_suffix (Z, Result); if not Result then goto lab2; end if; goto lab1; <<lab2>> Z.C := Z.L - v_4; -- call verb_suffix, line 190 R_Verb_suffix (Z, Result); if not Result then goto lab0; end if; <<lab1>> <<lab0>> Z.C := Z.L - v_3; -- do, line 192 v_5 := Z.L - Z.C; -- call residual_suffix, line 192 R_Residual_suffix (Z, Result); Z.C := Z.L - v_5; Z.C := Z.Lb; -- do, line 194 v_6 := Z.C; -- call cleaning, line 194 R_Cleaning (Z, Result); Z.C := v_6; Result := True; end Stem; end Stemmer.Catalan;
-- CD2A32E.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 WHEN A SIZE SPECIFICATION IS GIVEN FOR AN -- INTEGER TYPE, THEN OPERATIONS ON VALUES OF SUCH A TYPE -- WITH THE SMALLEST APPROPRIATE UNSIGNED SIZE ARE NOT -- AFFECTED BY THE REPRESENTATION CLAUSE. -- HISTORY: -- JET 08/12/87 CREATED ORIGINAL TEST. -- DHH 04/11/89 CHANGED EXTENSION FROM '.DEP' TO '.ADA', CHANGED -- SIZE CLAUSE VALUE TO 7, AND CHANGED OPERATOR ON -- 'SIZE CHECKS. -- JRL 03/27/92 ELIMINATED REDUNDANT TESTING. WITH REPORT; USE REPORT; PROCEDURE CD2A32E IS BASIC_SIZE : CONSTANT := 7; TYPE INT IS RANGE 0 .. 126; FOR INT'SIZE USE BASIC_SIZE; I0 : INT := 0; I1 : INT := 63; I2 : INT := 126; TYPE ARRAY_TYPE IS ARRAY (INTEGER RANGE 0 .. 2) OF INT; INTARRAY : ARRAY_TYPE := (0, 63, 126); TYPE REC_TYPE IS RECORD COMP0 : INT := 0; COMP1 : INT := 63; COMP2 : INT := 126; END RECORD; IREC : REC_TYPE; FUNCTION IDENT (I : INT) RETURN INT IS BEGIN IF EQUAL (0,0) THEN RETURN I; ELSE RETURN 0; END IF; END IDENT; PROCEDURE PROC (PI0, PI2 : INT; PIO1, PIO2 : IN OUT INT; PO2 : OUT INT) IS BEGIN IF PI0'SIZE < IDENT_INT (BASIC_SIZE) THEN FAILED ("INCORRECT VALUE FOR PI0'SIZE"); END IF; IF NOT ((PI0 < IDENT (1)) AND (IDENT (PI2) > IDENT (PIO1)) AND (PIO1 <= IDENT (63)) AND (IDENT (126) = PI2)) THEN FAILED ("INCORRECT RESULTS FOR RELATIONAL " & "OPERATORS - 1"); END IF; IF NOT (((PI0 + PI2) = PIO2) AND ((PI2 - PIO1) = PIO1) AND ((PIO1 * IDENT (2)) = PI2) AND ((PIO2 / PIO1) = IDENT (2)) AND ((PIO1 ** 1) = IDENT (63)) AND ((PIO2 REM 10) = IDENT (6)) AND ((PIO1 MOD 10) = IDENT (3))) THEN FAILED ("INCORRECT RESULTS FOR BINARY ARITHMETIC " & "OPERATORS - 1"); END IF; IF INT'POS (PI0) /= IDENT_INT (0) OR INT'POS (PIO1) /= IDENT_INT (63) OR INT'POS (PI2) /= IDENT_INT (126) THEN FAILED ("INCORRECT VALUE FOR INT'POS - 1"); END IF; IF INT'SUCC (PI0) /= IDENT (1) OR INT'SUCC (PIO1) /= IDENT (64) THEN FAILED ("INCORRECT VALUE FOR INT'SUCC - 1"); END IF; IF INT'IMAGE (PI0) /= IDENT_STR (" 0") OR INT'IMAGE (PIO1) /= IDENT_STR (" 63") OR INT'IMAGE (PI2) /= IDENT_STR (" 126") THEN FAILED ("INCORRECT VALUE FOR INT'IMAGE - 1"); END IF; PO2 := 126; END PROC; BEGIN TEST ("CD2A32E", "CHECK THAT WHEN A SIZE SPECIFICATION IS " & "GIVEN FOR AN INTEGER TYPE, THEN " & "OPERATIONS ON VALUES OF SUCH A TYPE WITH " & "THE SMALLEST APPROPRIATE UNSIGNED SIZE ARE " & "NOT AFFECTED BY THE REPRESENTATION CLAUSE"); PROC (0, 126, I1, I2, I2); IF INT'SIZE /= IDENT_INT (BASIC_SIZE) THEN FAILED ("INCORRECT VALUE FOR INT'SIZE"); END IF; IF I1'SIZE < IDENT_INT (BASIC_SIZE) THEN FAILED ("INCORRECT VALUE FOR I1'SIZE"); END IF; FOR I IN IDENT (I0) .. IDENT (I2) LOOP IF NOT (I IN I0 .. I2) OR (I NOT IN IDENT(0) .. IDENT(126)) THEN FAILED ("INCORRECT RESULTS FOR MEMBERSHIP " & "OPERATORS - 2"); END IF; END LOOP; IF NOT ((+I2 = I2) AND (-I1 = -63) AND (ABS I2 = I2)) THEN FAILED ("INCORRECT RESULTS FOR UNARY ARITHMETIC " & "OPERATORS - 2"); END IF; IF INT'VAL (0) /= IDENT (I0) OR INT'VAL (63) /= IDENT (I1) OR INT'VAL (126) /= IDENT (I2) THEN FAILED ("INCORRECT VALUE FOR INT'VAL - 2"); END IF; IF INT'PRED (I1) /= IDENT (62) OR INT'PRED (I2) /= IDENT (125) THEN FAILED ("INCORRECT VALUE FOR INT'PRED - 2"); END IF; IF INT'VALUE ("0") /= IDENT (I0) OR INT'VALUE ("63") /= IDENT (I1) OR INT'VALUE ("126") /= IDENT (I2) THEN FAILED ("INCORRECT VALUE FOR INT'VALUE - 2"); END IF; IF INTARRAY(1)'SIZE < IDENT_INT (BASIC_SIZE) THEN FAILED ("INCORRECT VALUE FOR INTARRAY(1)'SIZE"); END IF; IF NOT ((INTARRAY(0) < IDENT (1)) AND (IDENT (INTARRAY(2)) > IDENT (INTARRAY(1))) AND (INTARRAY(1) <= IDENT (63)) AND (IDENT (126) = INTARRAY(2))) THEN FAILED ("INCORRECT RESULTS FOR RELATIONAL " & "OPERATORS - 3"); END IF; FOR I IN IDENT (INTARRAY(0)) .. IDENT (INTARRAY(2)) LOOP IF NOT (I IN INTARRAY(0) .. INTARRAY(2)) OR (I NOT IN IDENT(0) .. IDENT(126)) THEN FAILED ("INCORRECT RESULTS FOR MEMBERSHIP " & "OPERATORS - 3"); END IF; END LOOP; IF NOT (((INTARRAY(0) + INTARRAY(2)) = INTARRAY(2)) AND ((INTARRAY(2) - INTARRAY(1)) = INTARRAY(1)) AND ((INTARRAY(1) * IDENT (2)) = INTARRAY(2)) AND ((INTARRAY(2) / INTARRAY(1)) = IDENT (2)) AND ((INTARRAY(1) ** 1) = IDENT (63)) AND ((INTARRAY(2) REM 10) = IDENT (6)) AND ((INTARRAY(1) MOD 10) = IDENT (3))) THEN FAILED ("INCORRECT RESULTS FOR BINARY ARITHMETIC " & "OPERATORS - 3"); END IF; IF INT'POS (INTARRAY(0)) /= IDENT_INT (0) OR INT'POS (INTARRAY(1)) /= IDENT_INT (63) OR INT'POS (INTARRAY(2)) /= IDENT_INT (126) THEN FAILED ("INCORRECT VALUE FOR INT'POS - 3"); END IF; IF INT'SUCC (INTARRAY(0)) /= IDENT (1) OR INT'SUCC (INTARRAY(1)) /= IDENT (64) THEN FAILED ("INCORRECT VALUE FOR INT'SUCC - 3"); END IF; IF INT'IMAGE (INTARRAY(0)) /= IDENT_STR (" 0") OR INT'IMAGE (INTARRAY(1)) /= IDENT_STR (" 63") OR INT'IMAGE (INTARRAY(2)) /= IDENT_STR (" 126") THEN FAILED ("INCORRECT VALUE FOR INT'IMAGE - 3"); END IF; IF IREC.COMP2'SIZE < IDENT_INT (BASIC_SIZE) THEN FAILED ("INCORRECT VALUE FOR IREC.COMP2'SIZE"); END IF; IF NOT ((IREC.COMP0 < IDENT (1)) AND (IDENT (IREC.COMP2) > IDENT (IREC.COMP1)) AND (IREC.COMP1 <= IDENT (63)) AND (IDENT (126) = IREC.COMP2)) THEN FAILED ("INCORRECT RESULTS FOR RELATIONAL " & "OPERATORS - 4"); END IF; FOR I IN IDENT (IREC.COMP0) .. IDENT (IREC.COMP2) LOOP IF NOT (I IN IREC.COMP0 .. IREC.COMP2) OR (I NOT IN IDENT(0) .. IDENT(126)) THEN FAILED ("INCORRECT RESULTS FOR MEMBERSHIP " & "OPERATORS - 4"); END IF; END LOOP; IF NOT ((+IREC.COMP2 = IREC.COMP2) AND (-IREC.COMP1 = -63) AND (ABS IREC.COMP2 = IREC.COMP2)) THEN FAILED ("INCORRECT RESULTS FOR UNARY ARITHMETIC " & "OPERATORS - 4"); END IF; IF INT'VAL (0) /= IDENT (IREC.COMP0) OR INT'VAL (63) /= IDENT (IREC.COMP1) OR INT'VAL (126) /= IDENT (IREC.COMP2) THEN FAILED ("INCORRECT VALUE FOR INT'VAL - 4"); END IF; IF INT'PRED (IREC.COMP1) /= IDENT (62) OR INT'PRED (IREC.COMP2) /= IDENT (125) THEN FAILED ("INCORRECT VALUE FOR INT'PRED - 4"); END IF; IF INT'VALUE ("0") /= IDENT (IREC.COMP0) OR INT'VALUE ("63") /= IDENT (IREC.COMP1) OR INT'VALUE ("126") /= IDENT (IREC.COMP2) THEN FAILED ("INCORRECT VALUE FOR INT'VALUE - 4"); END IF; RESULT; END CD2A32E;
with lace.Observer, lace.Subject, lace.Response; private with ada.Text_IO, ada.Containers.indefinite_hashed_Sets; package lace.event.Logger.text -- -- Provides a logger which logs to a text file. -- is type Item is limited new Logger.item with private; type View is access all Item'Class; -- Forge -- function to_Logger (Name : in String) return Item; overriding procedure destruct (Self : in out Item); -- Operations -- -- Logging of event consfiguration. -- overriding procedure log_Connection (Self : in out Item; From : in Observer.view; To : in Subject .view; for_Kind : in Event.Kind); overriding procedure log_Disconnection (Self : in out Item; From : in Observer.view; To : in Subject .view; for_Kind : in Event.Kind); overriding procedure log_new_Response (Self : in out Item; the_Response : in Response.view; of_Observer : in Observer.item'Class; to_Kind : in Event.Kind; from_Subject : in subject_Name); overriding procedure log_rid_Response (Self : in out Item; the_Response : in Response.view; of_Observer : in Observer.item'Class; to_Kind : in Event.Kind; from_Subject : in subject_Name); -- Logging of event transmission. -- overriding procedure log_Emit (Self : in out Item; From : in Subject .view; To : in Observer.view; the_Event : in Event.item'Class); overriding procedure log_Relay (Self : in out Item; From : in Observer.view; To : in Observer.view; the_Event : in Event.item'Class); overriding procedure log_Response (Self : in out Item; the_Response : in Response.view; of_Observer : in Observer.view; to_Event : in Event.item'Class; from_Subject : in subject_Name); -- Logging of miscellaneous messages. -- overriding procedure log (Self : in out Item; Message : in String); -- Log filtering -- overriding procedure ignore (Self : in out Item; Kind : in Event.Kind); private package event_kind_Sets is new ada.Containers.indefinite_hashed_Sets (Event.Kind, Event.Hash, "="); subtype event_kind_Set is event_kind_Sets.Set; type Item is limited new Logger.item with record File : ada.Text_IO.File_type; Ignored : event_kind_Set; end record; end lace.event.Logger.text;
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- S Y S T E M . B B . M C U _ P A R A M E T E R S -- -- -- -- S p e c -- -- -- -- 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. -- -- -- -- The port of GNARL to bare board targets was initially developed by the -- -- Real-Time Systems Group at the Technical University of Madrid. -- -- -- ------------------------------------------------------------------------------ -- This package defines MCU parameters for the STM32F7x family with Interfaces.STM32; with Interfaces.STM32.PWR; package System.BB.MCU_Parameters is pragma No_Elaboration_Code_All; pragma Preelaborate; use type Interfaces.STM32.Bit; Number_Of_Interrupts : constant := 111; procedure PWR_Initialize; procedure PWR_Overdrive_Enable; function Is_PWR_Stabilized return Boolean is (Interfaces.STM32.PWR.PWR_Periph.CSR1.VOSRDY = 1); end System.BB.MCU_Parameters;
--////////////////////////////////////////////////////////// -- SFML - Simple and Fast Multimedia Library -- Copyright (C) 2007-2015 Laurent Gomila (laurent@sfml-dev.org) -- This software is provided 'as-is', without any express or implied warranty. -- In no event will the authors be held liable for any damages arising from the use of this software. -- Permission is granted to anyone to use this software for any purpose, -- including commercial applications, and to alter it and redistribute it freely, -- subject to the following restrictions: -- 1. The origin of this software must not be misrepresented; -- you must not claim that you wrote the original software. -- If you use this software in a product, an acknowledgment -- in the product documentation would be appreciated but is not required. -- 2. Altered source versions must be plainly marked as such, -- and must not be misrepresented as being the original software. -- 3. This notice may not be removed or altered from any source distribution. --////////////////////////////////////////////////////////// --////////////////////////////////////////////////////////// with Sf.System.Vector3; package Sf.Window.Sensor is --////////////////////////////////////////////////////////// --////////////////////////////////////////////////////////// --////////////////////////////////////////////////////////// --////////////////////////////////////////////////////////// --////////////////////////////////////////////////////////// --/ @brief Sensor Types --/ --////////////////////////////////////////////////////////// --/< Measures the raw acceleration (m/s^2) --/< Measures the raw rotation rates (degrees/s) --/< Measures the ambient magnetic field (micro-teslas) --/< Measures the direction and intensity of gravity, independent of device acceleration (m/s^2) --/< Measures the direction and intensity of device acceleration, independent of the gravity (m/s^2) --/< Measures the absolute 3D orientation (degrees) --/< Keep last -- the total number of sensor types type sfSensorType is (sfSensorAccelerometer, sfSensorGyroscope, sfSensorMagnetometer, sfSensorGravity, sfSensorUserAcceleration, sfSensorOrientation, sfSensorCount); pragma Convention (C, sfSensorType); --////////////////////////////////////////////////////////// --/ @brief Check if a sensor is available on the underlying platform --/ --/ @param sensor Sensor to check --/ --/ @return sfTrue if the sensor is available, sfFalse otherwise --/ --////////////////////////////////////////////////////////// function isAvailable (sensor : sfSensorType) return sfBool; --////////////////////////////////////////////////////////// --/ @brief Enable or disable a sensor --/ --/ All sensors are disabled by default, to avoid consuming too --/ much battery power. Once a sensor is enabled, it starts --/ sending events of the corresponding type. --/ --/ This function does nothing if the sensor is unavailable. --/ --/ @param sensor Sensor to enable --/ @param enabled sfTrue to enable, sfFalse to disable --/ --////////////////////////////////////////////////////////// procedure setEnabled (sensor : sfSensorType; enabled : sfBool); --////////////////////////////////////////////////////////// --/ @brief Get the current sensor value --/ --/ @param sensor Sensor to read --/ --/ @return The current sensor value --/ --////////////////////////////////////////////////////////// function getValue (sensor : sfSensorType) return Sf.System.Vector3.sfVector3f; private pragma Import (C, isAvailable, "sfSensor_isAvailable"); pragma Import (C, setEnabled, "sfSensor_setEnabled"); pragma Import (C, getValue, "sfSensor_getValue"); end Sf.Window.Sensor;
package calc with SPARK_Mode is procedure Forgetful_Assert (X, Y : out Integer); end calc;
-- RUN: %llvmgcc -S -emit-llvm %s -o - | not grep ptrtoint package Constant_Fold is Error : exception; end;
with SDL; with SDL.Clipboard; with SDL.Log; with SDL.Video.Windows; with SDL.Video.Windows.Makers; procedure Clipboard is W : SDL.Video.Windows.Window; begin SDL.Log.Set (Category => SDL.Log.Application, Priority => SDL.Log.Debug); if SDL.Initialise = True then SDL.Video.Windows.Makers.Create (Win => W, Title => "Test SDLAda 2.0 - हिन्दी समाचार", Position => SDL.Natural_Coordinates'(X => 100, Y => 100), Size => SDL.Positive_Sizes'(800, 640)); delay 2.0; if SDL.Clipboard.Is_Empty = True then SDL.Log.Put_Debug ("Clipboard is empty"); end if; SDL.Clipboard.Set ("Hello"); SDL.Log.Put_Debug ("Text on clipboard: " & SDL.Clipboard.Get); end if; SDL.Finalise; end Clipboard;
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- Localization, Internationalization, Globalization for Ada -- -- -- -- Runtime Library Component -- -- -- ------------------------------------------------------------------------------ -- -- -- Copyright © 2012-2015, Vadim Godunko <vgodunko@gmail.com> -- -- All rights reserved. -- -- -- -- Redistribution and use in source and binary forms, with or without -- -- modification, are permitted provided that the following conditions -- -- are met: -- -- -- -- * Redistributions of source code must retain the above copyright -- -- notice, this list of conditions and the following disclaimer. -- -- -- -- * Redistributions in binary form must reproduce the above copyright -- -- notice, this list of conditions and the following disclaimer in the -- -- documentation and/or other materials provided with the distribution. -- -- -- -- * Neither the name of the Vadim Godunko, IE nor the names of its -- -- contributors may be used to endorse or promote products derived from -- -- this software without specific prior written permission. -- -- -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- -- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -- -- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -- -- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -- -- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED -- -- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -- -- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -- -- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -- -- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -- -- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- -- -- ------------------------------------------------------------------------------ -- $Revision$ $Date$ ------------------------------------------------------------------------------ pragma Restrictions (No_Elaboration_Code); -- GNAT: enforce generation of preinitialized data section instead of -- generation of elaboration code. package Matreshka.Internals.Unicode.Ucd.Core_0009 is pragma Preelaborate; Group_0009 : aliased constant Core_Second_Stage := (16#00# .. 16#02# => -- 0900 .. 0902 (Nonspacing_Mark, Neutral, Extend, Extend, Extend, Combining_Mark, (Other_Alphabetic | Alphabetic | Case_Ignorable | Grapheme_Extend | ID_Continue | XID_Continue => True, others => False)), 16#03# => -- 0903 (Spacing_Mark, Neutral, Spacing_Mark, Extend, Extend, Combining_Mark, (Other_Alphabetic | Alphabetic | Grapheme_Base | ID_Continue | XID_Continue => True, others => False)), 16#3A# => -- 093A (Nonspacing_Mark, Neutral, Extend, Extend, Extend, Combining_Mark, (Other_Alphabetic | Alphabetic | Case_Ignorable | Grapheme_Extend | ID_Continue | XID_Continue => True, others => False)), 16#3B# => -- 093B (Spacing_Mark, Neutral, Spacing_Mark, Extend, Extend, Combining_Mark, (Other_Alphabetic | Alphabetic | Grapheme_Base | ID_Continue | XID_Continue => True, others => False)), 16#3C# => -- 093C (Nonspacing_Mark, Neutral, Extend, Extend, Extend, Combining_Mark, (Diacritic | Case_Ignorable | Grapheme_Extend | ID_Continue | XID_Continue => True, others => False)), 16#3E# .. 16#40# => -- 093E .. 0940 (Spacing_Mark, Neutral, Spacing_Mark, Extend, Extend, Combining_Mark, (Other_Alphabetic | Alphabetic | Grapheme_Base | ID_Continue | XID_Continue => True, others => False)), 16#41# .. 16#48# => -- 0941 .. 0948 (Nonspacing_Mark, Neutral, Extend, Extend, Extend, Combining_Mark, (Other_Alphabetic | Alphabetic | Case_Ignorable | Grapheme_Extend | ID_Continue | XID_Continue => True, others => False)), 16#49# .. 16#4C# => -- 0949 .. 094C (Spacing_Mark, Neutral, Spacing_Mark, Extend, Extend, Combining_Mark, (Other_Alphabetic | Alphabetic | Grapheme_Base | ID_Continue | XID_Continue => True, others => False)), 16#4D# => -- 094D (Nonspacing_Mark, Neutral, Extend, Extend, Extend, Combining_Mark, (Diacritic | Case_Ignorable | Grapheme_Extend | Grapheme_Link | ID_Continue | XID_Continue => True, others => False)), 16#4E# .. 16#4F# => -- 094E .. 094F (Spacing_Mark, Neutral, Spacing_Mark, Extend, Extend, Combining_Mark, (Other_Alphabetic | Alphabetic | Grapheme_Base | ID_Continue | XID_Continue => True, others => False)), 16#51# .. 16#54# => -- 0951 .. 0954 (Nonspacing_Mark, Neutral, Extend, Extend, Extend, Combining_Mark, (Diacritic | Case_Ignorable | Grapheme_Extend | ID_Continue | XID_Continue => True, others => False)), 16#55# .. 16#57# => -- 0955 .. 0957 (Nonspacing_Mark, Neutral, Extend, Extend, Extend, Combining_Mark, (Other_Alphabetic | Alphabetic | Case_Ignorable | Grapheme_Extend | ID_Continue | XID_Continue => True, others => False)), 16#58# .. 16#5F# => -- 0958 .. 095F (Other_Letter, Neutral, Other, A_Letter, O_Letter, Alphabetic, (Alphabetic | Grapheme_Base | ID_Continue | ID_Start | XID_Continue | XID_Start | Changes_When_NFKC_Casefolded => True, others => False)), 16#62# .. 16#63# => -- 0962 .. 0963 (Nonspacing_Mark, Neutral, Extend, Extend, Extend, Combining_Mark, (Other_Alphabetic | Alphabetic | Case_Ignorable | Grapheme_Extend | ID_Continue | XID_Continue => True, others => False)), 16#64# .. 16#65# => -- 0964 .. 0965 (Other_Punctuation, Neutral, Other, Other, S_Term, Break_After, (STerm | Terminal_Punctuation | Grapheme_Base => True, others => False)), 16#66# .. 16#6F# => -- 0966 .. 096F (Decimal_Number, Neutral, Other, Numeric, Numeric, Numeric, (Grapheme_Base | ID_Continue | XID_Continue => True, others => False)), 16#70# => -- 0970 (Other_Punctuation, Neutral, Other, Other, Other, Alphabetic, (Grapheme_Base => True, others => False)), 16#71# => -- 0971 (Modifier_Letter, Neutral, Other, A_Letter, O_Letter, Alphabetic, (Diacritic | Alphabetic | Case_Ignorable | Grapheme_Base | ID_Continue | ID_Start | XID_Continue | XID_Start => True, others => False)), 16#81# => -- 0981 (Nonspacing_Mark, Neutral, Extend, Extend, Extend, Combining_Mark, (Other_Alphabetic | Alphabetic | Case_Ignorable | Grapheme_Extend | ID_Continue | XID_Continue => True, others => False)), 16#82# .. 16#83# => -- 0982 .. 0983 (Spacing_Mark, Neutral, Spacing_Mark, Extend, Extend, Combining_Mark, (Other_Alphabetic | Alphabetic | Grapheme_Base | ID_Continue | XID_Continue => True, others => False)), 16#84# => -- 0984 (Unassigned, Neutral, Other, Other, Other, Unknown, (others => False)), 16#8D# .. 16#8E# => -- 098D .. 098E (Unassigned, Neutral, Other, Other, Other, Unknown, (others => False)), 16#91# .. 16#92# => -- 0991 .. 0992 (Unassigned, Neutral, Other, Other, Other, Unknown, (others => False)), 16#A9# => -- 09A9 (Unassigned, Neutral, Other, Other, Other, Unknown, (others => False)), 16#B1# => -- 09B1 (Unassigned, Neutral, Other, Other, Other, Unknown, (others => False)), 16#B3# .. 16#B5# => -- 09B3 .. 09B5 (Unassigned, Neutral, Other, Other, Other, Unknown, (others => False)), 16#BA# .. 16#BB# => -- 09BA .. 09BB (Unassigned, Neutral, Other, Other, Other, Unknown, (others => False)), 16#BC# => -- 09BC (Nonspacing_Mark, Neutral, Extend, Extend, Extend, Combining_Mark, (Diacritic | Case_Ignorable | Grapheme_Extend | ID_Continue | XID_Continue => True, others => False)), 16#BE# => -- 09BE (Spacing_Mark, Neutral, Extend, Extend, Extend, Combining_Mark, (Other_Alphabetic | Other_Grapheme_Extend | Alphabetic | Grapheme_Extend | ID_Continue | XID_Continue => True, others => False)), 16#BF# .. 16#C0# => -- 09BF .. 09C0 (Spacing_Mark, Neutral, Spacing_Mark, Extend, Extend, Combining_Mark, (Other_Alphabetic | Alphabetic | Grapheme_Base | ID_Continue | XID_Continue => True, others => False)), 16#C1# .. 16#C4# => -- 09C1 .. 09C4 (Nonspacing_Mark, Neutral, Extend, Extend, Extend, Combining_Mark, (Other_Alphabetic | Alphabetic | Case_Ignorable | Grapheme_Extend | ID_Continue | XID_Continue => True, others => False)), 16#C5# .. 16#C6# => -- 09C5 .. 09C6 (Unassigned, Neutral, Other, Other, Other, Unknown, (others => False)), 16#C7# .. 16#C8# => -- 09C7 .. 09C8 (Spacing_Mark, Neutral, Spacing_Mark, Extend, Extend, Combining_Mark, (Other_Alphabetic | Alphabetic | Grapheme_Base | ID_Continue | XID_Continue => True, others => False)), 16#C9# .. 16#CA# => -- 09C9 .. 09CA (Unassigned, Neutral, Other, Other, Other, Unknown, (others => False)), 16#CB# .. 16#CC# => -- 09CB .. 09CC (Spacing_Mark, Neutral, Spacing_Mark, Extend, Extend, Combining_Mark, (Other_Alphabetic | Alphabetic | Grapheme_Base | ID_Continue | XID_Continue => True, others => False)), 16#CD# => -- 09CD (Nonspacing_Mark, Neutral, Extend, Extend, Extend, Combining_Mark, (Diacritic | Case_Ignorable | Grapheme_Extend | Grapheme_Link | ID_Continue | XID_Continue => True, others => False)), 16#CF# .. 16#D6# => -- 09CF .. 09D6 (Unassigned, Neutral, Other, Other, Other, Unknown, (others => False)), 16#D7# => -- 09D7 (Spacing_Mark, Neutral, Extend, Extend, Extend, Combining_Mark, (Other_Alphabetic | Other_Grapheme_Extend | Alphabetic | Grapheme_Extend | ID_Continue | XID_Continue => True, others => False)), 16#D8# .. 16#DB# => -- 09D8 .. 09DB (Unassigned, Neutral, Other, Other, Other, Unknown, (others => False)), 16#DC# .. 16#DD# => -- 09DC .. 09DD (Other_Letter, Neutral, Other, A_Letter, O_Letter, Alphabetic, (Alphabetic | Grapheme_Base | ID_Continue | ID_Start | XID_Continue | XID_Start | Changes_When_NFKC_Casefolded => True, others => False)), 16#DE# => -- 09DE (Unassigned, Neutral, Other, Other, Other, Unknown, (others => False)), 16#DF# => -- 09DF (Other_Letter, Neutral, Other, A_Letter, O_Letter, Alphabetic, (Alphabetic | Grapheme_Base | ID_Continue | ID_Start | XID_Continue | XID_Start | Changes_When_NFKC_Casefolded => True, others => False)), 16#E2# .. 16#E3# => -- 09E2 .. 09E3 (Nonspacing_Mark, Neutral, Extend, Extend, Extend, Combining_Mark, (Other_Alphabetic | Alphabetic | Case_Ignorable | Grapheme_Extend | ID_Continue | XID_Continue => True, others => False)), 16#E4# .. 16#E5# => -- 09E4 .. 09E5 (Unassigned, Neutral, Other, Other, Other, Unknown, (others => False)), 16#E6# .. 16#EF# => -- 09E6 .. 09EF (Decimal_Number, Neutral, Other, Numeric, Numeric, Numeric, (Grapheme_Base | ID_Continue | XID_Continue => True, others => False)), 16#F2# .. 16#F3# => -- 09F2 .. 09F3 (Currency_Symbol, Neutral, Other, Other, Other, Postfix_Numeric, (Grapheme_Base => True, others => False)), 16#F4# .. 16#F8# => -- 09F4 .. 09F8 (Other_Number, Neutral, Other, Other, Other, Alphabetic, (Grapheme_Base => True, others => False)), 16#F9# => -- 09F9 (Other_Number, Neutral, Other, Other, Other, Postfix_Numeric, (Grapheme_Base => True, others => False)), 16#FA# => -- 09FA (Other_Symbol, Neutral, Other, Other, Other, Alphabetic, (Grapheme_Base => True, others => False)), 16#FB# => -- 09FB (Currency_Symbol, Neutral, Other, Other, Other, Prefix_Numeric, (Grapheme_Base => True, others => False)), 16#FC# .. 16#FF# => -- 09FC .. 09FF (Unassigned, Neutral, Other, Other, Other, Unknown, (others => False)), others => (Other_Letter, Neutral, Other, A_Letter, O_Letter, Alphabetic, (Alphabetic | Grapheme_Base | ID_Continue | ID_Start | XID_Continue | XID_Start => True, others => False))); end Matreshka.Internals.Unicode.Ucd.Core_0009;
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2015-2017, AdaCore -- -- -- -- Redistribution and use in source and binary forms, with or without -- -- modification, are permitted provided that the following conditions are -- -- met: -- -- 1. Redistributions of source code must retain the above copyright -- -- notice, this list of conditions and the following disclaimer. -- -- 2. Redistributions in binary form must reproduce the above copyright -- -- notice, this list of conditions and the following disclaimer in -- -- the documentation and/or other materials provided with the -- -- distribution. -- -- 3. Neither the name of the copyright holder nor the names of its -- -- contributors may be used to endorse or promote products derived -- -- from this software without specific prior written permission. -- -- -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- -- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -- -- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -- -- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -- -- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -- -- LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -- -- DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -- -- THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -- -- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -- -- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- -- -- ------------------------------------------------------------------------------ with System; use System; with STM32_SVD; use STM32_SVD; with STM32.Device; use STM32.Device; package body STM32.PWM is procedure Compute_Prescalar_And_Period (This : access Timer; Requested_Frequency : Hertz; Prescalar : out UInt32; Period : out UInt32) with Pre => Requested_Frequency > 0; -- Computes the minimum prescaler and thus the maximum resolution for the -- given timer, based on the system clocks and the requested frequency. -- Computes the period required for the requested frequency. function Timer_Period (This : PWM_Modulator) return UInt32 is (Current_Autoreload (This.Generator.all)); procedure Configure_PWM_GPIO (Output : GPIO_Point; PWM_AF : GPIO_Alternate_Function); -- TODO: move these two functions to the STM32.Device packages? function Has_APB2_Frequency (This : Timer) return Boolean; -- timers 1, 8, 9, 10, 11 function Has_APB1_Frequency (This : Timer) return Boolean; -- timers 3, 4, 6, 7, 12, 13, 14 -------------------- -- Set_Duty_Cycle -- -------------------- procedure Set_Duty_Cycle (This : in out PWM_Modulator; Value : Percentage) is Pulse : UInt16; begin This.Duty_Cycle := Value; if Value = 0 then Set_Compare_Value (This.Generator.all, This.Channel, UInt16'(0)); else Pulse := UInt16 ((Timer_Period (This) + 1) * UInt32 (Value) / 100) - 1; -- for a Value of 0, the computation of Pulse wraps around to -- 65535, so we only compute it when not zero Set_Compare_Value (This.Generator.all, This.Channel, Pulse); end if; end Set_Duty_Cycle; ------------------- -- Set_Duty_Time -- ------------------- procedure Set_Duty_Time (This : in out PWM_Modulator; Value : Microseconds) is Pulse : UInt16; Period : constant UInt32 := Timer_Period (This) + 1; uS_Per_Period : constant UInt32 := Microseconds_Per_Period (This); begin if Value = 0 then Set_Compare_Value (This.Generator.all, This.Channel, UInt16'(0)); else Pulse := UInt16 ((Period * Value) / uS_Per_Period) - 1; -- for a Value of 0, the computation of Pulse wraps around to -- 65535, so we only compute it when not zero Set_Compare_Value (This.Generator.all, This.Channel, Pulse); end if; end Set_Duty_Time; ------------------------ -- Current_Duty_Cycle -- ------------------------ function Current_Duty_Cycle (This : PWM_Modulator) return Percentage is begin return This.Duty_Cycle; end Current_Duty_Cycle; ------------------------- -- Configure_PWM_Timer -- ------------------------- procedure Configure_PWM_Timer (Generator : not null access Timer; Frequency : Hertz) is Computed_Prescalar : UInt32; Computed_Period : UInt32; begin Enable_Clock (Generator.all); Compute_Prescalar_And_Period (Generator, Requested_Frequency => Frequency, Prescalar => Computed_Prescalar, Period => Computed_Period); Computed_Period := Computed_Period - 1; Configure (Generator.all, Prescaler => UInt16 (Computed_Prescalar), Period => Computed_Period, Clock_Divisor => Div1, Counter_Mode => Up); Set_Autoreload_Preload (Generator.all, True); if Advanced_Timer (Generator.all) then Enable_Main_Output (Generator.all); end if; Enable (Generator.all); end Configure_PWM_Timer; ------------------------ -- Attach_PWM_Channel -- ------------------------ procedure Attach_PWM_Channel (This : in out PWM_Modulator; Generator : not null access Timer; Channel : Timer_Channel; Point : GPIO_Point; PWM_AF : GPIO_Alternate_Function; Polarity : Timer_Output_Compare_Polarity := High) is begin This.Channel := Channel; This.Generator := Generator; Enable_Clock (Point); Configure_PWM_GPIO (Point, PWM_AF); Configure_Channel_Output (This.Generator.all, Channel => Channel, Mode => PWM1, State => Disable, Pulse => 0, Polarity => Polarity); Set_Compare_Value (This.Generator.all, Channel, UInt16 (0)); Disable_Channel (This.Generator.all, Channel); end Attach_PWM_Channel; ------------------------ -- Attach_PWM_Channel -- ------------------------ procedure Attach_PWM_Channel (This : in out PWM_Modulator; Generator : not null access Timer; Channel : Timer_Channel; Point : GPIO_Point; Complementary_Point : GPIO_Point; PWM_AF : GPIO_Alternate_Function; Polarity : Timer_Output_Compare_Polarity; Idle_State : Timer_Capture_Compare_State; Complementary_Polarity : Timer_Output_Compare_Polarity; Complementary_Idle_State : Timer_Capture_Compare_State) is begin This.Channel := Channel; This.Generator := Generator; Enable_Clock (Point); Enable_Clock (Complementary_Point); Configure_PWM_GPIO (Point, PWM_AF); Configure_PWM_GPIO (Complementary_Point, PWM_AF); Configure_Channel_Output (This.Generator.all, Channel => Channel, Mode => PWM1, State => Disable, Pulse => 0, Polarity => Polarity, Idle_State => Idle_State, Complementary_Polarity => Complementary_Polarity, Complementary_Idle_State => Complementary_Idle_State); Set_Compare_Value (This.Generator.all, Channel, UInt16 (0)); Disable_Channel (This.Generator.all, Channel); end Attach_PWM_Channel; ------------------- -- Enable_Output -- ------------------- procedure Enable_Output (This : in out PWM_Modulator) is begin Enable_Channel (This.Generator.all, This.Channel); end Enable_Output; --------------------------------- -- Enable_Complementary_Output -- --------------------------------- procedure Enable_Complementary_Output (This : in out PWM_Modulator) is begin Enable_Complementary_Channel (This.Generator.all, This.Channel); end Enable_Complementary_Output; -------------------- -- Output_Enabled -- -------------------- function Output_Enabled (This : PWM_Modulator) return Boolean is begin return Channel_Enabled (This.Generator.all, This.Channel); end Output_Enabled; ---------------------------------- -- Complementary_Output_Enabled -- ---------------------------------- function Complementary_Output_Enabled (This : PWM_Modulator) return Boolean is begin return Complementary_Channel_Enabled (This.Generator.all, This.Channel); end Complementary_Output_Enabled; -------------------- -- Disable_Output -- -------------------- procedure Disable_Output (This : in out PWM_Modulator) is begin Disable_Channel (This.Generator.all, This.Channel); end Disable_Output; ---------------------------------- -- Disable_Complementary_Output -- ---------------------------------- procedure Disable_Complementary_Output (This : in out PWM_Modulator) is begin Disable_Complementary_Channel (This.Generator.all, This.Channel); end Disable_Complementary_Output; ------------------ -- Set_Polarity -- ------------------ procedure Set_Polarity (This : in PWM_Modulator; Polarity : in Timer_Output_Compare_Polarity) is begin Set_Output_Polarity (This.Generator.all, This.Channel, Polarity); end Set_Polarity; -------------------------------- -- Set_Complementary_Polarity -- -------------------------------- procedure Set_Complementary_Polarity (This : in PWM_Modulator; Polarity : in Timer_Output_Compare_Polarity) is begin Set_Output_Complementary_Polarity (This.Generator.all, This.Channel, Polarity); end Set_Complementary_Polarity; ------------------------ -- Configure_PWM_GPIO -- ------------------------ procedure Configure_PWM_GPIO (Output : GPIO_Point; PWM_AF : GPIO_Alternate_Function) is Configuration : GPIO_Port_Configuration; begin Configuration.Mode := Mode_AF; Configuration.Output_Type := Push_Pull; Configuration.Speed := Speed_50MHz; Configuration.Resistors := Floating; Output.Configure_IO (Configuration); Output.Configure_Alternate_Function (PWM_AF); Output.Lock; end Configure_PWM_GPIO; ---------------------------------- -- Compute_Prescalar_and_Period -- ---------------------------------- procedure Compute_Prescalar_And_Period (This : access Timer; Requested_Frequency : Hertz; Prescalar : out UInt32; Period : out UInt32) is Max_Prescalar : constant := 16#FFFF#; Max_Period : UInt32; Hardware_Frequency : UInt32; Clocks : constant RCC_System_Clocks := System_Clock_Frequencies; CK_CNT : UInt32; begin if Has_APB1_Frequency (This.all) then Hardware_Frequency := Clocks.TIMCLK1; elsif Has_APB2_Frequency (This.all) then Hardware_Frequency := Clocks.TIMCLK2; else raise Unknown_Timer; end if; if Has_32bit_Counter (This.all) then Max_Period := 16#FFFF_FFFF#; else Max_Period := 16#FFFF#; end if; if Requested_Frequency > Hardware_Frequency then raise Invalid_Request with "Freq too high"; end if; Prescalar := 0; loop -- Compute the Counter's clock CK_CNT := Hardware_Frequency / (Prescalar + 1); -- Determine the CK_CNT periods to achieve the requested frequency Period := CK_CNT / Requested_Frequency; exit when not ((Period > Max_Period) and (Prescalar <= Max_Prescalar)); Prescalar := Prescalar + 1; end loop; if Prescalar > Max_Prescalar then raise Invalid_Request with "Freq too low"; end if; end Compute_Prescalar_And_Period; ----------------------------- -- Microseconds_Per_Period -- ----------------------------- function Microseconds_Per_Period (This : PWM_Modulator) return Microseconds is Result : UInt32; Counter_Frequency : UInt32; Platform_Frequency : UInt32; Clocks : constant RCC_System_Clocks := System_Clock_Frequencies; Period : constant UInt32 := Timer_Period (This) + 1; Prescalar : constant UInt16 := Current_Prescaler (This.Generator.all) + 1; begin if Has_APB1_Frequency (This.Generator.all) then Platform_Frequency := Clocks.TIMCLK1; else Platform_Frequency := Clocks.TIMCLK2; end if; Counter_Frequency := (Platform_Frequency / UInt32 (Prescalar)) / Period; Result := 1_000_000 / Counter_Frequency; return Result; end Microseconds_Per_Period; ------------------------ -- Has_APB2_Frequency -- ------------------------ function Has_APB2_Frequency (This : Timer) return Boolean is (This'Address = STM32_SVD.TIM1_Base or This'Address = STM32_SVD.TIM8_Base or This'Address = STM32_SVD.TIM9_Base or This'Address = STM32_SVD.TIM10_Base or This'Address = STM32_SVD.TIM11_Base); ------------------------ -- Has_APB1_Frequency -- ------------------------ function Has_APB1_Frequency (This : Timer) return Boolean is (This'Address = STM32_SVD.TIM2_Base or This'Address = STM32_SVD.TIM3_Base or This'Address = STM32_SVD.TIM4_Base or This'Address = STM32_SVD.TIM5_Base or This'Address = STM32_SVD.TIM6_Base or This'Address = STM32_SVD.TIM7_Base or This'Address = STM32_SVD.TIM12_Base or This'Address = STM32_SVD.TIM13_Base or This'Address = STM32_SVD.TIM14_Base); end STM32.PWM;
-- This package has been generated automatically by GNATtest. -- Do not edit any part of it, see GNATtest documentation for more details. -- begin read only with Gnattest_Generated; package Tcl.Commands.Test_Data.Tests.Argv_Pointer.Test_Data.Tests is type Test is new GNATtest_Generated.GNATtest_Standard.Tcl.Commands.Test_Data .Tests .Argv_Pointer .Test_Data .New_Test with null record; end Tcl.Commands.Test_Data.Tests.Argv_Pointer.Test_Data.Tests; -- end read only
-- C34001F.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. --* -- FOR DERIVED BOOLEAN TYPES: -- CHECK THAT ALL VALUES OF THE PARENT (BASE) TYPE ARE PRESENT FOR THE -- DERIVED (BASE) TYPE WHEN THE DERIVED TYPE DEFINITION IS -- CONSTRAINED. -- CHECK THAT ANY CONSTRAINT IMPOSED ON THE PARENT SUBTYPE IS ALSO -- IMPOSED ON THE DERIVED SUBTYPE. -- JRK 8/20/86 WITH REPORT; USE REPORT; PROCEDURE C34001F IS SUBTYPE PARENT IS BOOLEAN; TYPE T IS NEW PARENT RANGE PARENT'VAL (IDENT_INT (PARENT'POS (FALSE))) .. PARENT'VAL (IDENT_INT (PARENT'POS (FALSE))); SUBTYPE SUBPARENT IS PARENT RANGE TRUE .. TRUE; TYPE S IS NEW SUBPARENT; X : T; Y : S; BEGIN TEST ("C34001F", "CHECK THAT ALL VALUES OF THE PARENT (BASE) " & "TYPE ARE PRESENT FOR THE DERIVED (BASE) TYPE " & "WHEN THE DERIVED TYPE DEFINITION IS " & "CONSTRAINED. ALSO CHECK THAT ANY CONSTRAINT " & "IMPOSED ON THE PARENT SUBTYPE IS ALSO IMPOSED " & "ON THE DERIVED SUBTYPE. CHECK FOR DERIVED " & "BOOLEAN TYPES"); -- CHECK THAT BASE TYPE VALUES NOT IN THE SUBTYPE ARE PRESENT. IF T'BASE'FIRST /= FALSE OR T'BASE'LAST /= TRUE OR S'BASE'FIRST /= FALSE OR S'BASE'LAST /= TRUE THEN FAILED ("INCORRECT 'BASE'FIRST OR 'BASE'LAST"); END IF; IF T'PRED (TRUE) /= FALSE OR T'SUCC (FALSE) /= TRUE OR S'PRED (TRUE) /= FALSE OR S'SUCC (FALSE) /= TRUE THEN FAILED ("INCORRECT 'PRED OR 'SUCC"); END IF; -- CHECK THE DERIVED SUBTYPE CONSTRAINT. IF T'FIRST /= FALSE OR T'LAST /= FALSE OR S'FIRST /= TRUE OR S'LAST /= TRUE THEN FAILED ("INCORRECT 'FIRST OR 'LAST"); END IF; BEGIN X := FALSE; Y := TRUE; IF NOT PARENT (X) /= PARENT (Y) THEN -- USE X AND Y. FAILED ("INCORRECT CONVERSION TO PARENT"); END IF; EXCEPTION WHEN OTHERS => FAILED ("EXCEPTION RAISED BY OK ASSIGNMENT"); END; BEGIN X := TRUE; FAILED ("CONSTRAINT_ERROR NOT RAISED -- X := TRUE"); IF X = TRUE THEN -- USE X. COMMENT ("X ALTERED -- X := TRUE"); END IF; EXCEPTION WHEN CONSTRAINT_ERROR => NULL; WHEN OTHERS => FAILED ("WRONG EXCEPTION RAISED -- X := TRUE"); END; BEGIN Y := FALSE; FAILED ("CONSTRAINT_ERROR NOT RAISED -- Y := FALSE"); IF Y = FALSE THEN -- USE Y. COMMENT ("Y ALTERED -- Y := FALSE"); END IF; EXCEPTION WHEN CONSTRAINT_ERROR => NULL; WHEN OTHERS => FAILED ("WRONG EXCEPTION RAISED -- Y := FALSE"); END; RESULT; END C34001F;
with OpenGL.Thin; with OpenGL.Vertex; package OpenGL.Vertex_Array is type Attribute_Index_t is new Thin.Unsigned_Integer_t; type Attribute_Count_t is new Thin.Size_t range 0 .. Thin.Size_t'Last; -- proc_map : glEnableVertexAttribArray procedure Enable_Attribute_Array (Index : in Attribute_Index_t); pragma Inline (Enable_Attribute_Array); -- proc_map : glDisableVertexAttribArray procedure Disable_Attribute_Array (Index : in Attribute_Index_t); pragma Inline (Disable_Attribute_Array); -- -- Array name management. -- type Array_Index_t is new Thin.Unsigned_Integer_t; type Array_Index_Array_t is array (Natural range <>) of aliased Array_Index_t; pragma Convention (C, Array_Index_Array_t); -- proc_map : glGenVertexArrays procedure Generate_Arrays (Arrays : in out Array_Index_Array_t); pragma Inline (Generate_Arrays); -- proc_map : glDeleteVertexArrays procedure Delete_Arrays (Arrays : in Array_Index_Array_t); pragma Inline (Delete_Arrays); -- -- Array binding. -- -- proc_map : glBindVertexArray procedure Bind_Array (Index : in Array_Index_t); pragma Inline (Bind_Array); -- -- Render arrays. -- -- proc_map : glDrawArrays procedure Draw_Arrays (Mode : in OpenGL.Vertex.Primitive_Type_t; First : in Attribute_Index_t; Count : in Attribute_Count_t); pragma Inline (Draw_Arrays); -- -- Pointer -- type Coords_Per_Vertex_t is range 2 .. 4; type Integer_Coordinate_Type_t is (Integer, Short); generic Vertex_Type : Integer_Coordinate_Type_t; type Vertex_Element_t is range <>; type Vertex_Array_Index_t is range <>; type Vertex_Array_t is array (Vertex_Array_Index_t range <>) of aliased Vertex_Element_t; -- proc_map : glVertexPointer procedure Pointer_Integer (Data : in Vertex_Array_t; Coords_Per_Vertex : in Coords_Per_Vertex_t; Stride : in Natural); type Float_Coordinate_Type_t is (Float, Double); generic Vertex_Type : Float_Coordinate_Type_t; type Vertex_Element_t is digits <>; type Vertex_Array_Index_t is range <>; type Vertex_Array_t is array (Vertex_Array_Index_t range <>) of aliased Vertex_Element_t; -- proc_map : glVertexPointer procedure Pointer_Float (Data : in Vertex_Array_t; Coords_Per_Vertex : in Coords_Per_Vertex_t; Stride : in Natural); end OpenGL.Vertex_Array;
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- P A R . C H 6 -- -- -- -- B o d y -- -- -- -- Copyright (C) 1992-2020, Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 3, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. 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. -- -- -- ------------------------------------------------------------------------------ pragma Style_Checks (All_Checks); -- Turn off subprogram body ordering check. Subprograms are in order -- by RM section rather than alphabetical with Sinfo.CN; use Sinfo.CN; separate (Par) package body Ch6 is -- Local subprograms, used only in this chapter function P_Defining_Designator return Node_Id; function P_Defining_Operator_Symbol return Node_Id; function P_Return_Object_Declaration return Node_Id; procedure P_Return_Subtype_Indication (Decl_Node : Node_Id); -- Decl_Node is a N_Object_Declaration. Set the Null_Exclusion_Present and -- Object_Definition fields of Decl_Node. procedure Check_Junk_Semicolon_Before_Return; -- Check for common error of junk semicolon before RETURN keyword of -- function specification. If present, skip over it with appropriate error -- message, leaving Scan_Ptr pointing to the RETURN after. This routine -- also deals with a possibly misspelled version of Return. procedure No_Constraint_Maybe_Expr_Func; -- Called after scanning return subtype to check for missing constraint, -- taking into account the possibility of an occurrence of an expression -- function where the IS has been forgotten. ---------------------------------------- -- Check_Junk_Semicolon_Before_Return -- ---------------------------------------- procedure Check_Junk_Semicolon_Before_Return is Scan_State : Saved_Scan_State; begin if Token = Tok_Semicolon then Save_Scan_State (Scan_State); Scan; -- past the semicolon if Token = Tok_Return then Restore_Scan_State (Scan_State); Error_Msg_SC -- CODEFIX ("|extra "";"" ignored"); Scan; -- rescan past junk semicolon else Restore_Scan_State (Scan_State); end if; end if; end Check_Junk_Semicolon_Before_Return; ----------------------------------- -- No_Constraint_Maybe_Expr_Func -- ----------------------------------- procedure No_Constraint_Maybe_Expr_Func is begin -- If we have a left paren at the start of the line, then assume this is -- the case of an expression function with missing IS. We do not have to -- diagnose the missing IS, that is done elsewhere. We do this game in -- Ada 2012 mode where expression functions are legal. if Token = Tok_Left_Paren and Ada_Version >= Ada_2012 and Token_Is_At_Start_Of_Line then -- One exception if we have "(token .." then this is a constraint declare Scan_State : Saved_Scan_State; begin Save_Scan_State (Scan_State); Scan; -- past left paren Scan; -- past following token -- If we have "(token .." then restore scan state and treat as -- unexpected constraint. if Token = Tok_Dot_Dot then Restore_Scan_State (Scan_State); No_Constraint; -- Otherwise we treat this as an expression function else Restore_Scan_State (Scan_State); end if; end; -- Otherwise use standard routine to check for no constraint present else No_Constraint; end if; end No_Constraint_Maybe_Expr_Func; ----------------------------------------------------- -- 6.1 Subprogram (Also 6.3, 8.5.4, 10.1.3, 12.3) -- ----------------------------------------------------- -- This routine scans out a subprogram declaration, subprogram body, -- subprogram renaming declaration or subprogram generic instantiation. -- It also handles the new Ada 2012 expression function form -- SUBPROGRAM_DECLARATION ::= -- SUBPROGRAM_SPECIFICATION -- [ASPECT_SPECIFICATIONS]; -- ABSTRACT_SUBPROGRAM_DECLARATION ::= -- SUBPROGRAM_SPECIFICATION is abstract -- [ASPECT_SPECIFICATIONS]; -- SUBPROGRAM_SPECIFICATION ::= -- procedure DEFINING_PROGRAM_UNIT_NAME PARAMETER_PROFILE -- | function DEFINING_DESIGNATOR PARAMETER_AND_RESULT_PROFILE -- PARAMETER_PROFILE ::= [FORMAL_PART] -- PARAMETER_AND_RESULT_PROFILE ::= [FORMAL_PART] return SUBTYPE_MARK -- SUBPROGRAM_BODY ::= -- SUBPROGRAM_SPECIFICATION [ASPECT_SPECIFICATIONS] is -- DECLARATIVE_PART -- begin -- HANDLED_SEQUENCE_OF_STATEMENTS -- end [DESIGNATOR]; -- SUBPROGRAM_RENAMING_DECLARATION ::= -- SUBPROGRAM_SPECIFICATION renames callable_entity_NAME -- [ASPECT_SPECIFICATIONS]; -- SUBPROGRAM_BODY_STUB ::= -- SUBPROGRAM_SPECIFICATION is separate -- [ASPECT_SPECIFICATIONS]; -- GENERIC_INSTANTIATION ::= -- procedure DEFINING_PROGRAM_UNIT_NAME is -- new generic_procedure_NAME [GENERIC_ACTUAL_PART] -- [ASPECT_SPECIFICATIONS]; -- | function DEFINING_DESIGNATOR is -- new generic_function_NAME [GENERIC_ACTUAL_PART] -- [ASPECT_SPECIFICATIONS]; -- NULL_PROCEDURE_DECLARATION ::= -- SUBPROGRAM_SPECIFICATION is null; -- Null procedures are an Ada 2005 feature. A null procedure declaration -- is classified as a basic declarative item, but it is parsed here, with -- other subprogram constructs. -- EXPRESSION_FUNCTION ::= -- FUNCTION SPECIFICATION IS (EXPRESSION) -- [ASPECT_SPECIFICATIONS]; -- The value in Pf_Flags indicates which of these possible declarations -- is acceptable to the caller: -- Pf_Flags.Decl Set if declaration OK -- Pf_Flags.Gins Set if generic instantiation OK -- Pf_Flags.Pbod Set if proper body OK -- Pf_Flags.Rnam Set if renaming declaration OK -- Pf_Flags.Stub Set if body stub OK -- Pf_Flags.Pexp Set if expression function OK -- If an inappropriate form is encountered, it is scanned out but an -- error message indicating that it is appearing in an inappropriate -- context is issued. The only possible values for Pf_Flags are those -- defined as constants in the Par package. -- The caller has checked that the initial token is FUNCTION, PROCEDURE, -- NOT or OVERRIDING. -- Error recovery: cannot raise Error_Resync function P_Subprogram (Pf_Flags : Pf_Rec) return Node_Id is Specification_Node : Node_Id; Name_Node : Node_Id; Aspects : List_Id; Fpart_List : List_Id; Fpart_Sloc : Source_Ptr; Result_Not_Null : Boolean := False; Result_Node : Node_Id; Inst_Node : Node_Id; Body_Node : Node_Id; Decl_Node : Node_Id; Rename_Node : Node_Id; Absdec_Node : Node_Id; Stub_Node : Node_Id; Fproc_Sloc : Source_Ptr; Func : Boolean; Scan_State : Saved_Scan_State; -- Flags for optional overriding indication. Two flags are needed, -- to distinguish positive and negative overriding indicators from -- the absence of any indicator. Is_Overriding : Boolean := False; Not_Overriding : Boolean := False; begin -- Set up scope stack entry. Note that the Labl field will be set later SIS_Entry_Active := False; SIS_Aspect_Import_Seen := False; SIS_Missing_Semicolon_Message := No_Error_Msg; Push_Scope_Stack; Scopes (Scope.Last).Sloc := Token_Ptr; Scopes (Scope.Last).Etyp := E_Name; Scopes (Scope.Last).Ecol := Start_Column; Scopes (Scope.Last).Lreq := False; Aspects := Empty_List; -- Ada 2005: Scan leading NOT OVERRIDING indicator if Token = Tok_Not then Scan; -- past NOT if Token = Tok_Overriding then Scan; -- past OVERRIDING Not_Overriding := True; -- Overriding keyword used in non Ada 2005 mode elsif Token = Tok_Identifier and then Token_Name = Name_Overriding then Error_Msg_SC ("overriding indicator is an Ada 2005 extension"); Error_Msg_SC ("\unit must be compiled with -gnat05 switch"); Scan; -- past Overriding Not_Overriding := True; else Error_Msg_SC -- CODEFIX ("OVERRIDING expected!"); end if; -- Ada 2005: scan leading OVERRIDING indicator -- Note: in the case of OVERRIDING keyword used in Ada 95 mode, the -- declaration circuit already gave an error message and changed the -- token to Tok_Overriding. elsif Token = Tok_Overriding then Scan; -- past OVERRIDING Is_Overriding := True; end if; if Is_Overriding or else Not_Overriding then -- Note that if we are not in Ada_2005 mode, error messages have -- already been given, so no need to give another message here. -- An overriding indicator is allowed for subprogram declarations, -- bodies (including subunits), renamings, stubs, and instantiations. -- The test against Pf_Decl_Pbod is added to account for the case of -- subprograms declared in a protected type, where only subprogram -- declarations and bodies can occur. The Pf_Pbod case is for -- subunits. if Pf_Flags /= Pf_Decl_Gins_Pbod_Rnam_Stub_Pexp and then Pf_Flags /= Pf_Decl_Pbod_Pexp and then Pf_Flags /= Pf_Pbod_Pexp then Error_Msg_SC ("overriding indicator not allowed here!"); elsif Token /= Tok_Function and then Token /= Tok_Procedure then Error_Msg_SC -- CODEFIX ("FUNCTION or PROCEDURE expected!"); end if; end if; Func := (Token = Tok_Function); Fproc_Sloc := Token_Ptr; Scan; -- past FUNCTION or PROCEDURE Ignore (Tok_Type); Ignore (Tok_Body); if Func then Name_Node := P_Defining_Designator; if Nkind (Name_Node) = N_Defining_Operator_Symbol and then Scope.Last = 1 then Error_Msg_SP ("operator symbol not allowed at library level"); Name_Node := New_Entity (N_Defining_Identifier, Sloc (Name_Node)); -- Set name from file name, we need some junk name, and that's -- as good as anything. This is only approximate, since we do -- not do anything with non-standard name translations. Get_Name_String (File_Name (Current_Source_File)); for J in 1 .. Name_Len loop if Name_Buffer (J) = '.' then Name_Len := J - 1; exit; end if; end loop; Set_Chars (Name_Node, Name_Find); Set_Error_Posted (Name_Node); end if; else Name_Node := P_Defining_Program_Unit_Name; end if; Scopes (Scope.Last).Labl := Name_Node; Current_Node := Name_Node; Ignore (Tok_Colon); -- Deal with generic instantiation, the one case in which we do not -- have a subprogram specification as part of whatever we are parsing if Token = Tok_Is then Save_Scan_State (Scan_State); -- at the IS T_Is; -- checks for redundant IS if Token = Tok_New then if not Pf_Flags.Gins then Error_Msg_SC ("generic instantiation not allowed here!"); end if; Scan; -- past NEW if Func then Inst_Node := New_Node (N_Function_Instantiation, Fproc_Sloc); Set_Name (Inst_Node, P_Function_Name); else Inst_Node := New_Node (N_Procedure_Instantiation, Fproc_Sloc); Set_Name (Inst_Node, P_Qualified_Simple_Name); end if; Set_Defining_Unit_Name (Inst_Node, Name_Node); Set_Generic_Associations (Inst_Node, P_Generic_Actual_Part_Opt); P_Aspect_Specifications (Inst_Node); Pop_Scope_Stack; -- Don't need scope stack entry in this case if Is_Overriding then Set_Must_Override (Inst_Node); elsif Not_Overriding then Set_Must_Not_Override (Inst_Node); end if; return Inst_Node; else Restore_Scan_State (Scan_State); -- to the IS end if; end if; -- If not a generic instantiation, then we definitely have a subprogram -- specification (all possibilities at this stage include one here) Fpart_Sloc := Token_Ptr; Check_Misspelling_Of (Tok_Return); -- Scan formal part. First a special error check. If we have an -- identifier here, then we have a definite error. If this identifier -- is on the same line as the designator, then we assume it is the -- first formal after a missing left parenthesis if Token = Tok_Identifier and then not Token_Is_At_Start_Of_Line then T_Left_Paren; -- to generate message Fpart_List := P_Formal_Part; -- Otherwise scan out an optional formal part in the usual manner else Fpart_List := P_Parameter_Profile; end if; -- We treat what we have as a function specification if FUNCTION was -- used, or if a RETURN is present. This gives better error recovery -- since later RETURN statements will be valid in either case. Check_Junk_Semicolon_Before_Return; Result_Node := Error; if Token = Tok_Return then if not Func then Error_Msg -- CODEFIX ("PROCEDURE should be FUNCTION", Fproc_Sloc); Func := True; end if; Scan; -- past RETURN Result_Not_Null := P_Null_Exclusion; -- Ada 2005 (AI-231) -- Ada 2005 (AI-318-02) if Token = Tok_Access then if Ada_Version < Ada_2005 then Error_Msg_SC ("anonymous access result type is an Ada 2005 extension"); Error_Msg_SC ("\unit must be compiled with -gnat05 switch"); end if; Result_Node := P_Access_Definition (Result_Not_Null); else Result_Node := P_Subtype_Mark; No_Constraint_Maybe_Expr_Func; end if; else -- Skip extra parenthesis at end of formal part Ignore (Tok_Right_Paren); -- For function, scan result subtype if Func then TF_Return; if Prev_Token = Tok_Return then Result_Node := P_Subtype_Mark; end if; end if; end if; if Func then Specification_Node := New_Node (N_Function_Specification, Fproc_Sloc); Set_Null_Exclusion_Present (Specification_Node, Result_Not_Null); Set_Result_Definition (Specification_Node, Result_Node); else Specification_Node := New_Node (N_Procedure_Specification, Fproc_Sloc); end if; Set_Defining_Unit_Name (Specification_Node, Name_Node); Set_Parameter_Specifications (Specification_Node, Fpart_List); if Is_Overriding then Set_Must_Override (Specification_Node); elsif Not_Overriding then Set_Must_Not_Override (Specification_Node); end if; -- Error check: barriers not allowed on protected functions/procedures if Token = Tok_When then if Func then Error_Msg_SC ("barrier not allowed on function, only on entry"); else Error_Msg_SC ("barrier not allowed on procedure, only on entry"); end if; Scan; -- past WHEN Discard_Junk_Node (P_Expression); end if; -- Deal with semicolon followed by IS. We want to treat this as IS if Token = Tok_Semicolon then Save_Scan_State (Scan_State); Scan; -- past semicolon if Token = Tok_Is then Error_Msg_SP -- CODEFIX ("extra "";"" ignored"); else Restore_Scan_State (Scan_State); end if; end if; -- Subprogram declaration ended by aspect specifications if Aspect_Specifications_Present then goto Subprogram_Declaration; -- Deal with case of semicolon ending a subprogram declaration elsif Token = Tok_Semicolon then if not Pf_Flags.Decl then T_Is; end if; Save_Scan_State (Scan_State); Scan; -- past semicolon -- If semicolon is immediately followed by IS, then ignore the -- semicolon, and go process the body. if Token = Tok_Is then Error_Msg_SP -- CODEFIX ("|extra "";"" ignored"); T_Is; -- scan past IS goto Subprogram_Body; -- If BEGIN follows in an appropriate column, we immediately -- commence the error action of assuming that the previous -- subprogram declaration should have been a subprogram body, -- i.e. that the terminating semicolon should have been IS. elsif Token = Tok_Begin and then Start_Column >= Scopes (Scope.Last).Ecol then Error_Msg_SP -- CODEFIX ("|"";"" should be IS!"); goto Subprogram_Body; else Restore_Scan_State (Scan_State); goto Subprogram_Declaration; end if; -- Case of not followed by semicolon else -- Subprogram renaming declaration case Check_Misspelling_Of (Tok_Renames); if Token = Tok_Renames then if not Pf_Flags.Rnam then Error_Msg_SC ("renaming declaration not allowed here!"); end if; Rename_Node := New_Node (N_Subprogram_Renaming_Declaration, Token_Ptr); Scan; -- past RENAMES Set_Name (Rename_Node, P_Name); Set_Specification (Rename_Node, Specification_Node); P_Aspect_Specifications (Rename_Node); TF_Semicolon; Pop_Scope_Stack; return Rename_Node; -- Case of IS following subprogram specification elsif Token = Tok_Is then T_Is; -- ignore redundant Is's if Token_Name = Name_Abstract then Check_95_Keyword (Tok_Abstract, Tok_Semicolon); end if; -- Deal nicely with (now obsolete) use of <> in place of abstract if Token = Tok_Box then Error_Msg_SC -- CODEFIX ("ABSTRACT expected"); Token := Tok_Abstract; end if; -- Abstract subprogram declaration case if Token = Tok_Abstract then Absdec_Node := New_Node (N_Abstract_Subprogram_Declaration, Token_Ptr); Set_Specification (Absdec_Node, Specification_Node); Pop_Scope_Stack; -- discard unneeded entry Scan; -- past ABSTRACT P_Aspect_Specifications (Absdec_Node); return Absdec_Node; -- Ada 2005 (AI-248): Parse a null procedure declaration elsif Token = Tok_Null then if Ada_Version < Ada_2005 then Error_Msg_SP ("null procedures are an Ada 2005 extension"); Error_Msg_SP ("\unit must be compiled with -gnat05 switch"); end if; Scan; -- past NULL if Func then Error_Msg_SP ("only procedures can be null"); else Set_Null_Present (Specification_Node); Set_Null_Statement (Specification_Node, New_Node (N_Null_Statement, Prev_Token_Ptr)); end if; goto Subprogram_Declaration; -- Check for IS NEW with Formal_Part present and handle nicely elsif Token = Tok_New then Error_Msg ("formal part not allowed in instantiation", Fpart_Sloc); Scan; -- past NEW if Func then Inst_Node := New_Node (N_Function_Instantiation, Fproc_Sloc); else Inst_Node := New_Node (N_Procedure_Instantiation, Fproc_Sloc); end if; Set_Defining_Unit_Name (Inst_Node, Name_Node); Set_Name (Inst_Node, P_Name); Set_Generic_Associations (Inst_Node, P_Generic_Actual_Part_Opt); TF_Semicolon; Pop_Scope_Stack; -- Don't need scope stack entry in this case return Inst_Node; else goto Subprogram_Body; end if; -- Aspect specifications present elsif Aspect_Specifications_Present then goto Subprogram_Declaration; -- Here we have a missing IS or missing semicolon else -- If the next token is a left paren at the start of a line, then -- this is almost certainly the start of the expression for an -- expression function, so in this case guess a missing IS. if Token = Tok_Left_Paren and then Token_Is_At_Start_Of_Line then Error_Msg_AP -- CODEFIX ("missing IS"); -- In all other cases, we guess a missing semicolon, since we are -- good at fixing up a semicolon which should really be an IS. else Error_Msg_AP -- CODEFIX ("|missing "";"""); SIS_Missing_Semicolon_Message := Get_Msg_Id; goto Subprogram_Declaration; end if; end if; end if; -- Processing for stub or subprogram body or expression function <<Subprogram_Body>> -- Subprogram body stub case if Separate_Present then if not Pf_Flags.Stub then Error_Msg_SC ("body stub not allowed here!"); end if; if Nkind (Name_Node) = N_Defining_Operator_Symbol then Error_Msg ("operator symbol cannot be used as subunit name", Sloc (Name_Node)); end if; Scan; -- past SEPARATE Stub_Node := New_Node (N_Subprogram_Body_Stub, Sloc (Specification_Node)); Set_Specification (Stub_Node, Specification_Node); if Is_Non_Empty_List (Aspects) then Error_Msg ("aspect specifications must come after SEPARATE", Sloc (First (Aspects))); end if; P_Aspect_Specifications (Stub_Node, Semicolon => False); TF_Semicolon; Pop_Scope_Stack; return Stub_Node; -- Subprogram body or expression function case else Scan_Body_Or_Expression_Function : declare function Likely_Expression_Function return Boolean; -- Returns True if we have a probable case of an expression -- function omitting the parentheses, if so, returns True -- and emits an appropriate error message, else returns False. -------------------------------- -- Likely_Expression_Function -- -------------------------------- function Likely_Expression_Function return Boolean is begin -- If currently pointing to BEGIN or a declaration keyword -- or a pragma, then we definitely have a subprogram body. -- This is a common case, so worth testing first. if Token = Tok_Begin or else Token in Token_Class_Declk or else Token = Tok_Pragma then return False; -- Test for tokens which could only start an expression and -- thus signal the case of a expression function. elsif Token in Token_Class_Literal or else Token in Token_Class_Unary_Addop or else Token = Tok_Left_Paren or else Token = Tok_Abs or else Token = Tok_Null or else Token = Tok_New or else Token = Tok_Not then null; -- Anything other than an identifier must be a body elsif Token /= Tok_Identifier then return False; -- Here for an identifier else -- If the identifier is the first token on its line, then -- let's assume that we have a missing begin and this is -- intended as a subprogram body. However, if the context -- is a function and the unit is a package declaration, a -- body would be illegal, so try for an unparenthesized -- expression function. if Token_Is_At_Start_Of_Line then declare -- The enclosing scope entry is a subprogram spec Spec_Node : constant Node_Id := Parent (Scopes (Scope.Last).Labl); Lib_Node : Node_Id := Spec_Node; begin -- Check whether there is an enclosing scope that -- is a package declaration. if Scope.Last > 1 then Lib_Node := Parent (Scopes (Scope.Last - 1).Labl); end if; if Ada_Version >= Ada_2012 and then Nkind (Lib_Node) = N_Package_Specification and then Nkind (Spec_Node) = N_Function_Specification then null; else return False; end if; end; -- Otherwise we have to scan ahead. If the identifier is -- followed by a colon or a comma, it is a declaration -- and hence we have a subprogram body. Otherwise assume -- a expression function. else declare Scan_State : Saved_Scan_State; Tok : Token_Type; begin Save_Scan_State (Scan_State); Scan; -- past identifier Tok := Token; Restore_Scan_State (Scan_State); if Tok = Tok_Colon or else Tok = Tok_Comma then return False; end if; end; end if; end if; -- Fall through if we have a likely expression function. -- If the starting keyword is not "function" the error -- will be reported elsewhere. if Func then Error_Msg_SC ("expression function must be enclosed in parentheses"); end if; return True; end Likely_Expression_Function; -- Start of processing for Scan_Body_Or_Expression_Function begin -- Expression_Function case if Token = Tok_Left_Paren or else Likely_Expression_Function then -- Check expression function allowed here if not Pf_Flags.Pexp then Error_Msg_SC ("expression function not allowed here!"); end if; -- Check we are in Ada 2012 mode Error_Msg_Ada_2012_Feature ("!expression function", Token_Ptr); -- Catch an illegal placement of the aspect specification -- list: -- function_specification -- [aspect_specification] is (expression); -- This case is correctly processed by the parser because -- the expression function first appears as a subprogram -- declaration to the parser. The starting keyword may -- not have been "function" in which case the error is -- on a malformed procedure. if Is_Non_Empty_List (Aspects) then if Func then Error_Msg ("aspect specifications must come after " & "parenthesized expression", Sloc (First (Aspects))); else Error_Msg ("aspect specifications must come after subprogram " & "specification", Sloc (First (Aspects))); end if; end if; -- Parse out expression and build expression function Body_Node := New_Node (N_Expression_Function, Sloc (Specification_Node)); Set_Specification (Body_Node, Specification_Node); declare Expr : constant Node_Id := P_Expression; begin Set_Expression (Body_Node, Expr); -- Check that the full expression is properly -- parenthesized since we may have a left-operand that is -- parenthesized but that is not one of the allowed cases -- with syntactic parentheses. if not (Paren_Count (Expr) /= 0 or else Nkind (Expr) in N_Aggregate | N_Extension_Aggregate | N_Quantified_Expression) then Error_Msg ("expression function must be enclosed in " & "parentheses", Sloc (Expr)); end if; end; -- Expression functions can carry pre/postconditions P_Aspect_Specifications (Body_Node); Pop_Scope_Stack; -- Subprogram body case else -- Check body allowed here if not Pf_Flags.Pbod then Error_Msg_SP ("subprogram body not allowed here!"); end if; -- Here is the test for a suspicious IS (i.e. one that -- looks like it might more properly be a semicolon). -- See separate section describing use of IS instead -- of semicolon in package Parse. if (Token in Token_Class_Declk or else Token = Tok_Identifier) and then Start_Column <= Scopes (Scope.Last).Ecol and then Scope.Last /= 1 then Scopes (Scope.Last).Etyp := E_Suspicious_Is; Scopes (Scope.Last).S_Is := Prev_Token_Ptr; end if; -- Build and return subprogram body, parsing declarations -- and statement sequence that belong to the body. Body_Node := New_Node (N_Subprogram_Body, Sloc (Specification_Node)); Set_Specification (Body_Node, Specification_Node); -- If aspects are present, the specification is parsed as -- a subprogram declaration, and we jump here after seeing -- the keyword IS. Attach asspects previously collected to -- the body. if Is_Non_Empty_List (Aspects) then Set_Parent (Aspects, Body_Node); Set_Aspect_Specifications (Body_Node, Aspects); end if; Parse_Decls_Begin_End (Body_Node); end if; return Body_Node; end Scan_Body_Or_Expression_Function; end if; -- Processing for subprogram declaration <<Subprogram_Declaration>> Decl_Node := New_Node (N_Subprogram_Declaration, Sloc (Specification_Node)); Set_Specification (Decl_Node, Specification_Node); Aspects := Get_Aspect_Specifications (Semicolon => False); -- Aspects may be present on a subprogram body. The source parsed -- so far is that of its specification. Go parse the body and attach -- the collected aspects, if any, to the body. if Token = Tok_Is then -- If the subprogram is a procedure and already has a -- specification, we can't define another. if Nkind (Specification (Decl_Node)) = N_Procedure_Specification and then Null_Present (Specification (Decl_Node)) then Error_Msg_AP ("null procedure cannot have a body"); end if; Scan; goto Subprogram_Body; else if Is_Non_Empty_List (Aspects) then Set_Parent (Aspects, Decl_Node); Set_Aspect_Specifications (Decl_Node, Aspects); end if; TF_Semicolon; end if; -- If this is a context in which a subprogram body is permitted, -- set active SIS entry in case (see section titled "Handling -- Semicolon Used in Place of IS" in body of Parser package) -- Note that SIS_Missing_Semicolon_Message is already set properly. if Pf_Flags.Pbod -- Disconnect this processing if we have scanned a null procedure -- because in this case the spec is complete anyway with no body. and then (Nkind (Specification_Node) /= N_Procedure_Specification or else not Null_Present (Specification_Node)) then SIS_Labl := Scopes (Scope.Last).Labl; SIS_Sloc := Scopes (Scope.Last).Sloc; SIS_Ecol := Scopes (Scope.Last).Ecol; SIS_Declaration_Node := Decl_Node; SIS_Semicolon_Sloc := Prev_Token_Ptr; -- Do not activate the entry if we have "with Import" if not SIS_Aspect_Import_Seen then SIS_Entry_Active := True; end if; end if; Pop_Scope_Stack; return Decl_Node; end P_Subprogram; --------------------------------- -- 6.1 Subprogram Declaration -- --------------------------------- -- Parsed by P_Subprogram (6.1) ------------------------------------------ -- 6.1 Abstract Subprogram Declaration -- ------------------------------------------ -- Parsed by P_Subprogram (6.1) ----------------------------------- -- 6.1 Subprogram Specification -- ----------------------------------- -- SUBPROGRAM_SPECIFICATION ::= -- procedure DEFINING_PROGRAM_UNIT_NAME PARAMETER_PROFILE -- | function DEFINING_DESIGNATOR PARAMETER_AND_RESULT_PROFILE -- PARAMETER_PROFILE ::= [FORMAL_PART] -- PARAMETER_AND_RESULT_PROFILE ::= [FORMAL_PART] return SUBTYPE_MARK -- Subprogram specifications that appear in subprogram declarations -- are parsed by P_Subprogram (6.1). This routine is used in other -- contexts where subprogram specifications occur. -- Note: this routine does not affect the scope stack in any way -- Error recovery: can raise Error_Resync function P_Subprogram_Specification return Node_Id is Specification_Node : Node_Id; Result_Not_Null : Boolean; Result_Node : Node_Id; begin if Token = Tok_Function then Specification_Node := New_Node (N_Function_Specification, Token_Ptr); Scan; -- past FUNCTION Ignore (Tok_Body); Set_Defining_Unit_Name (Specification_Node, P_Defining_Designator); Set_Parameter_Specifications (Specification_Node, P_Parameter_Profile); Check_Junk_Semicolon_Before_Return; TF_Return; Result_Not_Null := P_Null_Exclusion; -- Ada 2005 (AI-231) -- Ada 2005 (AI-318-02) if Token = Tok_Access then if Ada_Version < Ada_2005 then Error_Msg_SC ("anonymous access result type is an Ada 2005 extension"); Error_Msg_SC ("\unit must be compiled with -gnat05 switch"); end if; Result_Node := P_Access_Definition (Result_Not_Null); else Result_Node := P_Subtype_Mark; No_Constraint_Maybe_Expr_Func; end if; Set_Null_Exclusion_Present (Specification_Node, Result_Not_Null); Set_Result_Definition (Specification_Node, Result_Node); return Specification_Node; elsif Token = Tok_Procedure then Specification_Node := New_Node (N_Procedure_Specification, Token_Ptr); Scan; -- past PROCEDURE Ignore (Tok_Body); Set_Defining_Unit_Name (Specification_Node, P_Defining_Program_Unit_Name); Set_Parameter_Specifications (Specification_Node, P_Parameter_Profile); return Specification_Node; else Error_Msg_SC ("subprogram specification expected"); raise Error_Resync; end if; end P_Subprogram_Specification; --------------------- -- 6.1 Designator -- --------------------- -- DESIGNATOR ::= -- [PARENT_UNIT_NAME .] IDENTIFIER | OPERATOR_SYMBOL -- The caller has checked that the initial token is an identifier, -- operator symbol, or string literal. Note that we don't bother to -- do much error diagnosis in this routine, since it is only used for -- the label on END lines, and the routines in package Par.Endh will -- check that the label is appropriate. -- Error recovery: cannot raise Error_Resync function P_Designator return Node_Id is Ident_Node : Node_Id; Name_Node : Node_Id; Prefix_Node : Node_Id; function Real_Dot return Boolean; -- Tests if a current token is an interesting period, i.e. is followed -- by an identifier or operator symbol or string literal. If not, it is -- probably just incorrect punctuation to be caught by our caller. Note -- that the case of an operator symbol or string literal is also an -- error, but that is an error that we catch here. If the result is -- True, a real dot has been scanned and we are positioned past it, -- if the result is False, the scan position is unchanged. -------------- -- Real_Dot -- -------------- function Real_Dot return Boolean is Scan_State : Saved_Scan_State; begin if Token /= Tok_Dot then return False; else Save_Scan_State (Scan_State); Scan; -- past dot if Token = Tok_Identifier or else Token = Tok_Operator_Symbol or else Token = Tok_String_Literal then return True; else Restore_Scan_State (Scan_State); return False; end if; end if; end Real_Dot; -- Start of processing for P_Designator begin Ident_Node := Token_Node; Scan; -- past initial token if Prev_Token = Tok_Operator_Symbol or else Prev_Token = Tok_String_Literal or else not Real_Dot then return Ident_Node; -- Child name case else Prefix_Node := Ident_Node; -- Loop through child names, on entry to this loop, Prefix contains -- the name scanned so far, and Ident_Node is the last identifier. loop Name_Node := New_Node (N_Selected_Component, Prev_Token_Ptr); Set_Prefix (Name_Node, Prefix_Node); Ident_Node := P_Identifier; Set_Selector_Name (Name_Node, Ident_Node); Prefix_Node := Name_Node; exit when not Real_Dot; end loop; -- On exit from the loop, Ident_Node is the last identifier scanned, -- i.e. the defining identifier, and Prefix_Node is a node for the -- entire name, structured (incorrectly) as a selected component. Name_Node := Prefix (Prefix_Node); Change_Node (Prefix_Node, N_Designator); Set_Name (Prefix_Node, Name_Node); Set_Identifier (Prefix_Node, Ident_Node); return Prefix_Node; end if; exception when Error_Resync => while Token = Tok_Dot or else Token = Tok_Identifier loop Scan; end loop; return Error; end P_Designator; ------------------------------ -- 6.1 Defining Designator -- ------------------------------ -- DEFINING_DESIGNATOR ::= -- DEFINING_PROGRAM_UNIT_NAME | DEFINING_OPERATOR_SYMBOL -- Error recovery: cannot raise Error_Resync function P_Defining_Designator return Node_Id is begin if Token = Tok_Operator_Symbol then return P_Defining_Operator_Symbol; elsif Token = Tok_String_Literal then Error_Msg_SC ("invalid operator name"); Scan; -- past junk string return Error; else return P_Defining_Program_Unit_Name; end if; end P_Defining_Designator; ------------------------------------- -- 6.1 Defining Program Unit Name -- ------------------------------------- -- DEFINING_PROGRAM_UNIT_NAME ::= -- [PARENT_UNIT_NAME .] DEFINING_IDENTIFIER -- Note: PARENT_UNIT_NAME may be present only in 95 mode at the outer level -- Error recovery: cannot raise Error_Resync function P_Defining_Program_Unit_Name return Node_Id is Ident_Node : Node_Id; Name_Node : Node_Id; Prefix_Node : Node_Id; begin -- Set identifier casing if not already set and scan initial identifier if Token = Tok_Identifier and then Identifier_Casing (Current_Source_File) = Unknown then Set_Identifier_Casing (Current_Source_File, Determine_Token_Casing); end if; Ident_Node := P_Identifier (C_Dot); Merge_Identifier (Ident_Node, Tok_Return); -- Normal case (not child library unit name) if Token /= Tok_Dot then Change_Identifier_To_Defining_Identifier (Ident_Node); Warn_If_Standard_Redefinition (Ident_Node); return Ident_Node; -- Child library unit name case else if Scope.Last > 1 then Error_Msg_SP ("child unit allowed only at library level"); raise Error_Resync; elsif Ada_Version = Ada_83 then Error_Msg_SP ("(Ada 83) child unit not allowed!"); end if; Prefix_Node := Ident_Node; -- Loop through child names, on entry to this loop, Prefix contains -- the name scanned so far, and Ident_Node is the last identifier. loop exit when Token /= Tok_Dot; Name_Node := New_Node (N_Selected_Component, Token_Ptr); Scan; -- past period Set_Prefix (Name_Node, Prefix_Node); Ident_Node := P_Identifier (C_Dot); Set_Selector_Name (Name_Node, Ident_Node); Prefix_Node := Name_Node; end loop; -- On exit from the loop, Ident_Node is the last identifier scanned, -- i.e. the defining identifier, and Prefix_Node is a node for the -- entire name, structured (incorrectly) as a selected component. Name_Node := Prefix (Prefix_Node); Change_Node (Prefix_Node, N_Defining_Program_Unit_Name); Set_Name (Prefix_Node, Name_Node); Change_Identifier_To_Defining_Identifier (Ident_Node); Warn_If_Standard_Redefinition (Ident_Node); Set_Defining_Identifier (Prefix_Node, Ident_Node); -- All set with unit name parsed return Prefix_Node; end if; exception when Error_Resync => while Token = Tok_Dot or else Token = Tok_Identifier loop Scan; end loop; return Error; end P_Defining_Program_Unit_Name; -------------------------- -- 6.1 Operator Symbol -- -------------------------- -- OPERATOR_SYMBOL ::= STRING_LITERAL -- Operator symbol is returned by the scanner as Tok_Operator_Symbol ----------------------------------- -- 6.1 Defining Operator Symbol -- ----------------------------------- -- DEFINING_OPERATOR_SYMBOL ::= OPERATOR_SYMBOL -- The caller has checked that the initial symbol is an operator symbol function P_Defining_Operator_Symbol return Node_Id is Op_Node : Node_Id; begin Op_Node := Token_Node; Change_Operator_Symbol_To_Defining_Operator_Symbol (Op_Node); Scan; -- past operator symbol return Op_Node; end P_Defining_Operator_Symbol; ---------------------------- -- 6.1 Parameter_Profile -- ---------------------------- -- PARAMETER_PROFILE ::= [FORMAL_PART] -- Empty is returned if no formal part is present -- Error recovery: cannot raise Error_Resync function P_Parameter_Profile return List_Id is begin if Token = Tok_Left_Paren then Scan; -- part left paren return P_Formal_Part; else return No_List; end if; end P_Parameter_Profile; --------------------------------------- -- 6.1 Parameter And Result Profile -- --------------------------------------- -- Parsed by its parent construct, which uses P_Parameter_Profile to -- parse the parameters, and P_Subtype_Mark to parse the return type. ---------------------- -- 6.1 Formal part -- ---------------------- -- FORMAL_PART ::= (PARAMETER_SPECIFICATION {; PARAMETER_SPECIFICATION}) -- PARAMETER_SPECIFICATION ::= -- DEFINING_IDENTIFIER_LIST : [ALIASED] MODE [NULL_EXCLUSION] -- SUBTYPE_MARK [:= DEFAULT_EXPRESSION] -- | DEFINING_IDENTIFIER_LIST : ACCESS_DEFINITION -- [:= DEFAULT_EXPRESSION] -- This scans the construct Formal_Part. The caller has already checked -- that the initial token is a left parenthesis, and skipped past it, so -- that on entry Token is the first token following the left parenthesis. -- Note: The ALIASED keyword is allowed only in Ada 2012 mode (AI 142) -- Error recovery: cannot raise Error_Resync function P_Formal_Part return List_Id is Specification_List : List_Id; Specification_Node : Node_Id; Scan_State : Saved_Scan_State; Num_Idents : Nat; Ident : Nat; Ident_Sloc : Source_Ptr; Not_Null_Present : Boolean := False; Not_Null_Sloc : Source_Ptr; Idents : array (Int range 1 .. 4096) of Entity_Id; -- This array holds the list of defining identifiers. The upper bound -- of 4096 is intended to be essentially infinite, and we do not even -- bother to check for it being exceeded. begin Specification_List := New_List; Specification_Loop : loop begin if Token = Tok_Pragma then Error_Msg_SC ("pragma not allowed in formal part"); Discard_Junk_Node (P_Pragma (Skipping => True)); end if; Ignore (Tok_Left_Paren); Ident_Sloc := Token_Ptr; Idents (1) := P_Defining_Identifier (C_Comma_Colon); Num_Idents := 1; Ident_Loop : loop exit Ident_Loop when Token = Tok_Colon; -- The only valid tokens are colon and comma, so if we have -- neither do a bit of investigation to see which is the -- better choice for insertion. if Token /= Tok_Comma then -- Assume colon if ALIASED, IN or OUT keyword found exit Ident_Loop when Token = Tok_Aliased or else Token = Tok_In or else Token = Tok_Out; -- Otherwise scan ahead Save_Scan_State (Scan_State); Look_Ahead : loop -- If we run into a semicolon, then assume that a -- colon was missing, e.g. Parms (X Y; ...). Also -- assume missing colon on EOF (a real disaster) -- and on a right paren, e.g. Parms (X Y), and also -- on an assignment symbol, e.g. Parms (X Y := ..) if Token = Tok_Semicolon or else Token = Tok_Right_Paren or else Token = Tok_EOF or else Token = Tok_Colon_Equal then Restore_Scan_State (Scan_State); exit Ident_Loop; -- If we run into a colon, assume that we had a missing -- comma, e.g. Parms (A B : ...). Also assume a missing -- comma if we hit another comma, e.g. Parms (A B, C ..) elsif Token = Tok_Colon or else Token = Tok_Comma then Restore_Scan_State (Scan_State); exit Look_Ahead; end if; Scan; end loop Look_Ahead; end if; -- Here if a comma is present, or to be assumed T_Comma; Num_Idents := Num_Idents + 1; Idents (Num_Idents) := P_Defining_Identifier (C_Comma_Colon); end loop Ident_Loop; -- Fall through the loop on encountering a colon, or deciding -- that there is a missing colon. T_Colon; -- If there are multiple identifiers, we repeatedly scan the -- type and initialization expression information by resetting -- the scan pointer (so that we get completely separate trees -- for each occurrence). if Num_Idents > 1 then Save_Scan_State (Scan_State); end if; -- Loop through defining identifiers in list Ident := 1; Ident_List_Loop : loop Specification_Node := New_Node (N_Parameter_Specification, Ident_Sloc); Set_Defining_Identifier (Specification_Node, Idents (Ident)); -- Scan possible ALIASED for Ada 2012 (AI-142) if Token = Tok_Aliased then if Ada_Version < Ada_2012 then Error_Msg_Ada_2012_Feature ("ALIASED parameter", Token_Ptr); else Set_Aliased_Present (Specification_Node); end if; Scan; -- past ALIASED end if; -- Scan possible NOT NULL for Ada 2005 (AI-231, AI-447) Not_Null_Sloc := Token_Ptr; Not_Null_Present := P_Null_Exclusion (Allow_Anonymous_In_95 => True); -- Case of ACCESS keyword present if Token = Tok_Access then Set_Null_Exclusion_Present (Specification_Node, Not_Null_Present); if Ada_Version = Ada_83 then Error_Msg_SC ("(Ada 83) access parameters not allowed"); end if; Set_Parameter_Type (Specification_Node, P_Access_Definition (Not_Null_Present)); -- Case of IN or OUT present else if Token = Tok_In or else Token = Tok_Out then if Not_Null_Present then Error_Msg ("`NOT NULL` can only be used with `ACCESS`", Not_Null_Sloc); if Token = Tok_In then Error_Msg ("\`IN` not allowed together with `ACCESS`", Not_Null_Sloc); else Error_Msg ("\`OUT` not allowed together with `ACCESS`", Not_Null_Sloc); end if; end if; P_Mode (Specification_Node); Not_Null_Present := P_Null_Exclusion; -- Ada 2005 (AI-231) end if; Set_Null_Exclusion_Present (Specification_Node, Not_Null_Present); if Token = Tok_Procedure or else Token = Tok_Function then Error_Msg_SC ("formal subprogram parameter not allowed"); Scan; if Token = Tok_Left_Paren then Discard_Junk_List (P_Formal_Part); end if; if Token = Tok_Return then Scan; Discard_Junk_Node (P_Subtype_Mark); end if; Set_Parameter_Type (Specification_Node, Error); else Set_Parameter_Type (Specification_Node, P_Subtype_Mark); No_Constraint; end if; end if; Set_Expression (Specification_Node, Init_Expr_Opt (True)); if Ident > 1 then Set_Prev_Ids (Specification_Node, True); end if; if Ident < Num_Idents then Set_More_Ids (Specification_Node, True); end if; Append (Specification_Node, Specification_List); exit Ident_List_Loop when Ident = Num_Idents; Ident := Ident + 1; Restore_Scan_State (Scan_State); end loop Ident_List_Loop; exception when Error_Resync => Resync_Semicolon_List; end; if Token = Tok_Semicolon then Save_Scan_State (Scan_State); Scan; -- past semicolon -- If we have RETURN or IS after the semicolon, then assume -- that semicolon should have been a right parenthesis and exit if Token = Tok_Is or else Token = Tok_Return then Error_Msg_SP -- CODEFIX ("|"";"" should be "")"""); exit Specification_Loop; end if; -- If we have a declaration keyword after the semicolon, then -- assume we had a missing right parenthesis and terminate list if Token in Token_Class_Declk then Error_Msg_AP -- CODEFIX ("missing "")"""); Restore_Scan_State (Scan_State); exit Specification_Loop; end if; elsif Token = Tok_Right_Paren then Scan; -- past right paren exit Specification_Loop; -- Support for aspects on formal parameters is a GNAT extension for -- the time being. elsif Token = Tok_With then if not Extensions_Allowed then Error_Msg_SP ("aspect on formal parameter requires -gnatX"); end if; P_Aspect_Specifications (Specification_Node, False); if Token = Tok_Right_Paren then Scan; -- past right paren exit Specification_Loop; elsif Token = Tok_Semicolon then Save_Scan_State (Scan_State); Scan; -- past semicolon end if; -- Special check for common error of using comma instead of semicolon elsif Token = Tok_Comma then T_Semicolon; Scan; -- past comma -- Special check for omitted separator elsif Token = Tok_Identifier then T_Semicolon; -- If nothing sensible, skip to next semicolon or right paren else T_Semicolon; Resync_Semicolon_List; if Token = Tok_Semicolon then Scan; -- past semicolon else T_Right_Paren; exit Specification_Loop; end if; end if; end loop Specification_Loop; return Specification_List; end P_Formal_Part; ---------------------------------- -- 6.1 Parameter Specification -- ---------------------------------- -- Parsed by P_Formal_Part (6.1) --------------- -- 6.1 Mode -- --------------- -- MODE ::= [in] | in out | out -- There is no explicit node in the tree for the Mode. Instead the -- In_Present and Out_Present flags are set in the parent node to -- record the presence of keywords specifying the mode. -- Error_Recovery: cannot raise Error_Resync procedure P_Mode (Node : Node_Id) is begin if Token = Tok_In then Scan; -- past IN Set_In_Present (Node, True); if Style.Mode_In_Check and then Token /= Tok_Out then Error_Msg_SP -- CODEFIX ("(style) IN should be omitted"); end if; -- Since Ada 2005, formal objects can have an anonymous access type, -- and of course carry a mode indicator. if Token = Tok_Access and then Nkind (Node) /= N_Formal_Object_Declaration then Error_Msg_SP ("IN not allowed together with ACCESS"); Scan; -- past ACCESS end if; end if; if Token = Tok_Out then Scan; -- past OUT Set_Out_Present (Node, True); end if; if Token = Tok_In then Error_Msg_SC ("IN must precede OUT in parameter mode"); Scan; -- past IN Set_In_Present (Node, True); end if; end P_Mode; -------------------------- -- 6.3 Subprogram Body -- -------------------------- -- Parsed by P_Subprogram (6.1) ----------------------------------- -- 6.4 Procedure Call Statement -- ----------------------------------- -- Parsed by P_Sequence_Of_Statements (5.1) ------------------------ -- 6.4 Function Call -- ------------------------ -- Parsed by P_Name (4.1) -------------------------------- -- 6.4 Actual Parameter Part -- -------------------------------- -- Parsed by P_Name (4.1) -------------------------------- -- 6.4 Parameter Association -- -------------------------------- -- Parsed by P_Name (4.1) ------------------------------------ -- 6.4 Explicit Actual Parameter -- ------------------------------------ -- Parsed by P_Name (4.1) --------------------------- -- 6.5 Return Statement -- --------------------------- -- SIMPLE_RETURN_STATEMENT ::= return [EXPRESSION]; -- -- EXTENDED_RETURN_STATEMENT ::= -- return DEFINING_IDENTIFIER : [aliased] RETURN_SUBTYPE_INDICATION -- [:= EXPRESSION] [do -- HANDLED_SEQUENCE_OF_STATEMENTS -- end return]; -- -- RETURN_SUBTYPE_INDICATION ::= SUBTYPE_INDICATION | ACCESS_DEFINITION -- RETURN_STATEMENT ::= return [EXPRESSION]; -- Error recovery: can raise Error_Resync procedure P_Return_Subtype_Indication (Decl_Node : Node_Id) is -- Note: We don't need to check Ada_Version here, because this is -- only called in >= Ada 2005 cases anyway. Not_Null_Present : constant Boolean := P_Null_Exclusion; begin Set_Null_Exclusion_Present (Decl_Node, Not_Null_Present); if Token = Tok_Access then Set_Object_Definition (Decl_Node, P_Access_Definition (Not_Null_Present)); else Set_Object_Definition (Decl_Node, P_Subtype_Indication (Not_Null_Present)); end if; end P_Return_Subtype_Indication; -- Error recovery: can raise Error_Resync function P_Return_Object_Declaration return Node_Id is Return_Obj : Node_Id; Decl_Node : Node_Id; begin Return_Obj := Token_Node; Change_Identifier_To_Defining_Identifier (Return_Obj); Warn_If_Standard_Redefinition (Return_Obj); Decl_Node := New_Node (N_Object_Declaration, Token_Ptr); Set_Defining_Identifier (Decl_Node, Return_Obj); Scan; -- past identifier Scan; -- past : -- First an error check, if we have two identifiers in a row, a likely -- possibility is that the first of the identifiers is an incorrectly -- spelled keyword. See similar check in P_Identifier_Declarations. if Token = Tok_Identifier then declare SS : Saved_Scan_State; I2 : Boolean; begin Save_Scan_State (SS); Scan; -- past initial identifier I2 := (Token = Tok_Identifier); Restore_Scan_State (SS); if I2 and then (Bad_Spelling_Of (Tok_Access) or else Bad_Spelling_Of (Tok_Aliased) or else Bad_Spelling_Of (Tok_Constant)) then null; end if; end; end if; -- We allow "constant" here (as in "return Result : constant -- T..."). This is not in the latest RM, but the ARG is considering an -- AI on the subject (see AI05-0015-1), which we expect to be approved. if Token = Tok_Constant then Scan; -- past CONSTANT Set_Constant_Present (Decl_Node); if Token = Tok_Aliased then Error_Msg_SC -- CODEFIX ("ALIASED should be before CONSTANT"); Scan; -- past ALIASED Set_Aliased_Present (Decl_Node); end if; elsif Token = Tok_Aliased then Scan; -- past ALIASED Set_Aliased_Present (Decl_Node); -- The restrictions on the use of aliased in an extended return -- are semantic, not syntactic. if Token = Tok_Constant then Scan; -- past CONSTANT Set_Constant_Present (Decl_Node); end if; end if; P_Return_Subtype_Indication (Decl_Node); if Token = Tok_Colon_Equal then Scan; -- past := Set_Expression (Decl_Node, P_Expression_No_Right_Paren); Set_Has_Init_Expression (Decl_Node); end if; return Decl_Node; end P_Return_Object_Declaration; -- Error recovery: can raise Error_Resync function P_Return_Statement return Node_Id is -- The caller has checked that the initial token is RETURN function Is_Simple return Boolean; -- Scan state is just after RETURN (and is left that way). Determine -- whether this is a simple or extended return statement by looking -- ahead for "identifier :", which implies extended. --------------- -- Is_Simple -- --------------- function Is_Simple return Boolean is Scan_State : Saved_Scan_State; Result : Boolean := True; begin if Token = Tok_Identifier then Save_Scan_State (Scan_State); -- at identifier Scan; -- past identifier if Token = Tok_Colon then Result := False; -- It's an extended_return_statement. end if; Restore_Scan_State (Scan_State); -- to identifier end if; return Result; end Is_Simple; Ret_Sloc : constant Source_Ptr := Token_Ptr; Ret_Strt : constant Column_Number := Start_Column; Ret_Node : Node_Id; -- Start of processing for P_Return_Statement begin Scan; -- past RETURN -- Simple_return_statement, no expression, return an -- N_Simple_Return_Statement node with the expression field left Empty. if Token = Tok_Semicolon then Scan; -- past ; Ret_Node := New_Node (N_Simple_Return_Statement, Ret_Sloc); -- Nontrivial case else -- Simple_return_statement with expression -- We avoid trying to scan an expression if we are at an -- expression terminator since in that case the best error -- message is probably that we have a missing semicolon. if Is_Simple then Ret_Node := New_Node (N_Simple_Return_Statement, Ret_Sloc); if Token not in Token_Class_Eterm then Set_Expression (Ret_Node, P_Expression_No_Right_Paren); end if; -- Extended_return_statement (Ada 2005 only -- AI-318): else if Ada_Version < Ada_2005 then Error_Msg_SP (" extended_return_statement is an Ada 2005 extension"); Error_Msg_SP ("\unit must be compiled with -gnat05 switch"); end if; Ret_Node := New_Node (N_Extended_Return_Statement, Ret_Sloc); Set_Return_Object_Declarations (Ret_Node, New_List (P_Return_Object_Declaration)); if Token = Tok_Do then Push_Scope_Stack; Scopes (Scope.Last).Ecol := Ret_Strt; Scopes (Scope.Last).Etyp := E_Return; Scopes (Scope.Last).Labl := Error; Scopes (Scope.Last).Sloc := Ret_Sloc; Scan; -- past DO Set_Handled_Statement_Sequence (Ret_Node, P_Handled_Sequence_Of_Statements); End_Statements; -- Do we need to handle Error_Resync here??? end if; end if; TF_Semicolon; end if; return Ret_Node; end P_Return_Statement; end Ch6;
with Ada.Containers.Hashed_Maps; generic type Object_Type is tagged private; package Limited_With3_Pkg1 is type Key_Type is access all String; type Element_Type is new Object_Type with null record; type Element_Access is access all Element_Type; function Equal (Left, Right : Element_Access) return Boolean; function Equivalent_Keys (Left, Right : Key_Type) return Boolean; function Hash (Key : Key_Type) return Ada.Containers.Hash_Type; package Table_Package is new Ada.Containers.Hashed_Maps ( Key_Type => Key_Type, Element_Type => Element_Access, Hash => Hash, Equivalent_Keys => Equivalent_Keys, "=" => Equal); end Limited_With3_Pkg1;
-- Generated by utildgen.c from system includes with Interfaces.C; package Util.Systems.Constants is pragma Pure; -- Flags used when opening a file with open/creat. O_RDONLY : constant Interfaces.C.int := 8#000000#; O_WRONLY : constant Interfaces.C.int := 8#000001#; O_RDWR : constant Interfaces.C.int := 8#000002#; O_CREAT : constant Interfaces.C.int := 8#000100#; O_EXCL : constant Interfaces.C.int := 8#000200#; O_TRUNC : constant Interfaces.C.int := 8#001000#; O_APPEND : constant Interfaces.C.int := 8#002000#; O_CLOEXEC : constant Interfaces.C.int := 8#2000000#; O_SYNC : constant Interfaces.C.int := 8#4010000#; O_NONBLOCK : constant Interfaces.C.int := 8#004000#; -- Flags used by fcntl F_SETFL : constant Interfaces.C.int := 4; F_GETFL : constant Interfaces.C.int := 3; FD_CLOEXEC : constant Interfaces.C.int := 1; -- Flags used by dlopen RTLD_LAZY : constant Interfaces.C.int := 8#000001#; RTLD_NOW : constant Interfaces.C.int := 8#000002#; RTLD_NOLOAD : constant Interfaces.C.int := 8#000004#; RTLD_DEEPBIND : constant Interfaces.C.int := 8#000010#; RTLD_GLOBAL : constant Interfaces.C.int := 8#000400#; RTLD_LOCAL : constant Interfaces.C.int := 8#000000#; RTLD_NODELETE : constant Interfaces.C.int := 8#010000#; DLL_OPTIONS : constant String := "-ldl"; SYMBOL_PREFIX : constant String := ""; end Util.Systems.Constants;
------------------------------------------------------------------------------- -- Copyright (c) 2016 Daniel King -- -- Permission is hereby granted, free of charge, to any person obtaining a copy -- of this software and associated documentation files (the "Software"), to -- deal in the Software without restriction, including without limitation the -- rights to use, copy, modify, merge, publish, distribute, sublicense, and/or -- sell copies of the Software, and to permit persons to whom the Software is -- furnished to do so, subject to the following conditions: -- -- The above copyright notice and this permission notice shall be included in -- all copies or substantial portions of the Software. -- -- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -- FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS -- IN THE SOFTWARE. ------------------------------------------------------------------------------- with Ada.Real_Time; with Interfaces; use Interfaces; with STM32.GPIO; with STM32.RCC; with STM32.SPI; package body EVB1000.LCD with SPARK_Mode => Off is RW_Pin : constant Integer := 10; RS_Pin : constant Integer := 11; CS_Pin : constant Integer := 12; MISO_Pin : constant Integer := 14; procedure Set_RS(State : in STM32.Bit) is use type STM32.Bit; begin if State = 1 then STM32.GPIO.GPIOB_Periph.BSRR.BS := STM32.GPIO.BSRR_BS_Field'(As_Array => True, Arr => (RS_Pin => 1, others => 0)); else STM32.GPIO.GPIOB_Periph.BSRR.BR := STM32.GPIO.BSRR_BR_Field'(As_Array => True, Arr => (RS_Pin => 1, others => 0)); end if; end Set_RS; procedure Select_LCD is begin STM32.GPIO.GPIOB_Periph.BSRR.BR := STM32.GPIO.BSRR_BR_Field'(As_Array => True, Arr => (CS_Pin => 1, others => 0)); end Select_LCD; procedure Deselect_LCD is begin STM32.GPIO.GPIOB_Periph.BSRR.BS := STM32.GPIO.BSRR_BS_Field'(As_Array => True, Arr => (CS_Pin => 1, others => 0)); end Deselect_LCD; -- Send data to the LCD via the SPI bus. -- -- When RS is set to True the RS pin is asserted during the SPI transaction procedure Send_To_LCD(RS : in Boolean; Data : in String) with Pre => Data'Length > 0 and Data'Length <= 80 is use type Ada.Real_Time.Time; use type Ada.Real_Time.Time_Span; use type STM32.Bit; First_Byte : Unsigned_8 := Unsigned_8 (Character'Pos (Data (Data'First))); Delay_Time : Ada.Real_Time.Time_Span := Ada.Real_Time.Time_Span_Zero; Delay_End : Ada.Real_Time.Time; begin Set_RS (if RS then 1 else 0); if (not RS) and ((First_Byte and 3) /= 0) then -- If the command = 1 or 2 then the execution time is > 1 ms Delay_Time := Ada.Real_Time.Milliseconds(2); end if; Select_LCD; for I in Data'Range loop loop exit when STM32.SPI.SPI2_Periph.SR.TXE = 1; end loop; STM32.SPI.SPI2_Periph.DR.DR := Unsigned_16 (Character'Pos (Data (I))); end loop; -- Wait for last byte to finish transmitting loop exit when STM32.SPI.SPI2_Periph.SR.BSY = 0; end loop; Set_RS (0); Deselect_LCD; if Delay_Time > Ada.Real_Time.Time_Span_Zero then Delay_End := Ada.Real_Time.Clock + Delay_Time; -- Don't use 'delay until' so that this procedure can be called from -- protected objects. loop exit when Ada.Real_Time.Clock >= Delay_End; end loop; end if; end Send_To_LCD; -- Send the command to the LCD to reset the cursor back to the origin. procedure Cursor_Home is Command : constant String(1 .. 1) := (others => Character'Val (2)); begin Send_To_LCD (RS => False, Data => Command); end Cursor_Home; protected body Driver_Type is procedure Clear_LCD is Command : constant String(1 .. 1) := (others => Character'Val (1)); begin Send_To_LCD (RS => False, Data => Command); end Clear_LCD; procedure Put(Text_1 : in String; Text_2 : in String) is Data : String (1 .. 80) := (others => ' '); begin Clear_LCD; Cursor_Home; Data (1 .. Text_1'Length) := Text_1; Data (41 .. 40 + Text_2'Length) := Text_2; Send_To_LCD (RS => True, Data => Data); end Put; end Driver_Type; begin -- Enable SPI and GPIO peripheral clocks STM32.RCC.RCC_Periph.APB2ENR.IOPBEN := 1; STM32.RCC.RCC_Periph.APB2ENR.AFIOEN := 1; STM32.RCC.RCC_Periph.APB1ENR.SPI2EN := 1; -- Configure GPIO pins STM32.GPIO.GPIOB_Periph.CRH.MODE10 := 2#11#; STM32.GPIO.GPIOB_Periph.CRH.MODE11 := 2#11#; STM32.GPIO.GPIOB_Periph.CRH.MODE12 := 2#11#; STM32.GPIO.GPIOB_Periph.CRH.MODE13 := 2#11#; STM32.GPIO.GPIOB_Periph.CRH.MODE14 := 2#00#; STM32.GPIO.GPIOB_Periph.CRH.MODE15 := 2#11#; STM32.GPIO.GPIOB_Periph.CRH.CNF10 := 2#00#; STM32.GPIO.GPIOB_Periph.CRH.CNF11 := 2#00#; STM32.GPIO.GPIOB_Periph.CRH.CNF12 := 2#00#; STM32.GPIO.GPIOB_Periph.CRH.CNF13 := 2#10#; STM32.GPIO.GPIOB_Periph.CRH.CNF14 := 2#10#; STM32.GPIO.GPIOB_Periph.CRH.CNF15 := 2#10#; -- Deselect LCD STM32.GPIO.GPIOB_Periph.BSRR.BS := (As_Array => True, Arr => (CS_Pin => 1, -- Deselect LCD MISO_Pin => 1, -- Enable pull-up others => 0)); -- Clear LCD RS + RW lines STM32.GPIO.GPIOB_Periph.BSRR.BR := (As_Array => True, Arr => (RW_Pin => 1, RS_Pin => 1, others => 0)); -- Reset SPI STM32.RCC.RCC_Periph.APB1RSTR.SPI2RST := 1; STM32.RCC.RCC_Periph.APB1RSTR.SPI2RST := 0; -- Configure SPI STM32.SPI.SPI2_Periph.CR1 := (CPHA => 1, CPOL => 1, MSTR => 1, BR => 2#110#, -- /128 prescaler SPE => 0, LSBFIRST => 0, -- MSB first SSI => 1, SSM => 1, RXONLY => 0, -- Full duplex DFF => 0, -- 8-bit data CRCNEXT => 0, CRCEN => 0, -- No CRC BIDIOE => 0, BIDIMODE => 0, -- Bidirectional Reserved_16_31 => 0); STM32.SPI.SPI2_Periph.CRCPR.CRCPOLY := 7; STM32.SPI.SPI2_Periph.CR1.SPE := 1; -- Send init sequence declare use type Ada.Real_Time.Time; -- These constants have been ported from the DecaWave C code. Init_Sequence : constant String(1 .. 9) := (1 => Character'Val (16#39#), 2 => Character'Val (16#14#), 3 => Character'Val (16#55#), 4 => Character'Val (16#6D#), 5 => Character'Val (16#78#), 6 => Character'Val (16#38#), 7 => Character'Val (16#0C#), 8 => Character'Val (16#01#), 9 => Character'Val (16#06#)); Now : Ada.Real_Time.Time; begin -- Give some time for the LCD to start-up before sending the init seq. Now := Ada.Real_Time.Clock; delay until Now + Ada.Real_Time.Milliseconds(10); Send_To_LCD (RS => False, Data => Init_Sequence); -- Leave some more time for the init sequence to finish. Now := Ada.Real_Time.Clock; delay until Now + Ada.Real_Time.Milliseconds(2); end; end EVB1000.LCD;
No-one has translated the zmsg example into Ada yet. Be the first to create zmsg in Ada and get one free Internet! If you're the author of the Ada binding, this is a great way to get people to use 0MQ in Ada. To submit a new translation email it to zeromq-dev@lists.zeromq.org. Please: * Stick to identical functionality and naming used in examples so that readers can easily compare languages. * You MUST place your name as author in the examples so readers can contact you. * You MUST state in the email that you license your code under the MIT/X11 license. Subscribe to this list at http://lists.zeromq.org/mailman/listinfo/zeromq-dev.
-- Copyright 2017-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 B; use B; with C; procedure FOO is begin Doit; B.Read_Small; C.C_Doit; end FOO;
------------------------------------------------------------------------------ -- Copyright (c) 2015-2017, Natacha Porté -- -- -- -- Permission to use, copy, modify, and distribute this software for any -- -- purpose with or without fee is hereby granted, provided that the above -- -- copyright notice and this permission notice appear in all copies. -- -- -- -- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -- -- WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -- -- MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR -- -- ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -- -- WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -- -- ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF -- -- OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -- ------------------------------------------------------------------------------ with Ada.Calendar; with Natools.S_Expressions.Atom_Refs; with Natools.S_Expressions.Caches; with Natools.S_Expressions.Conditionals.Strings; with Natools.S_Expressions.Lockable; with Natools.S_Expressions.Templates.Dates; with Natools.Static_Maps.Web.Fallback_Render; with Natools.Web.ACL; with Natools.Web.Comment_Cookies; with Natools.Web.Escapes; with Natools.Web.Filters.Stores; with Natools.Web.Tags; with Natools.Web.String_Tables; procedure Natools.Web.Fallback_Render (Exchange : in out Natools.Web.Sites.Exchange; Name : in Natools.S_Expressions.Atom; Arguments : in out Natools.S_Expressions.Lockable.Descriptor'Class; Context : in String := ""; Re_Enter : access procedure (Exchange : in out Natools.Web.Sites.Exchange; Expression : in out Natools.S_Expressions.Lockable.Descriptor'Class) := null; Elements : in Natools.Web.Containers.Expression_Maps.Constant_Map := Natools.Web.Containers.Expression_Maps.Empty_Constant_Map; Severity : in Severities.Code := Severities.Error) is package Commands renames Natools.Static_Maps.Web.Fallback_Render; use type S_Expressions.Events.Event; procedure Render_Then_Else (Condition : in Boolean); procedure Render_Ref (Ref : in S_Expressions.Atom_Refs.Immutable_Reference); procedure Report_Unknown_Command; procedure Render_Then_Else (Condition : in Boolean) is Lock : S_Expressions.Lockable.Lock_State; Event : S_Expressions.Events.Event; begin Arguments.Next (Event); case Event is when S_Expressions.Events.Add_Atom => if Condition then Exchange.Append (Arguments.Current_Atom); end if; when S_Expressions.Events.Open_List => if Condition then Arguments.Lock (Lock); begin Arguments.Next; Re_Enter (Exchange, Arguments); Arguments.Unlock (Lock); exception when others => Arguments.Unlock (Lock, False); raise; end; else Arguments.Close_Current_List; end if; when S_Expressions.Events.Close_List | S_Expressions.Events.End_Of_Input | S_Expressions.Events.Error => return; end case; if Condition then return; end if; Arguments.Next (Event); case Event is when S_Expressions.Events.Add_Atom => Exchange.Append (Arguments.Current_Atom); when S_Expressions.Events.Open_List => Arguments.Lock (Lock); begin Arguments.Next; Re_Enter (Exchange, Arguments); Arguments.Unlock (Lock); exception when others => Arguments.Unlock (Lock, False); raise; end; when S_Expressions.Events.Close_List | S_Expressions.Events.End_Of_Input | S_Expressions.Events.Error => return; end case; end Render_Then_Else; procedure Render_Ref (Ref : in S_Expressions.Atom_Refs.Immutable_Reference) is begin if not Ref.Is_Empty then Escapes.Write (Exchange, S_Expressions.To_String (Ref.Query), Escapes.HTML_Attribute); elsif Re_Enter /= null then Re_Enter (Exchange, Arguments); end if; end Render_Ref; procedure Report_Unknown_Command is begin if Context /= "" then Log (Severity, "Unknown render command """ & S_Expressions.To_String (Name) & """ in " & Context); end if; end Report_Unknown_Command; begin case Commands.To_Command (S_Expressions.To_String (Name)) is when Commands.Unknown => Report_Unknown_Command; when Commands.Current_Time => S_Expressions.Templates.Dates.Render (Exchange, Arguments, Ada.Calendar.Clock); when Commands.Cookies => String_Tables.Render (Exchange, String_Tables.Create (Exchange.Cookie_Table), Arguments); when Commands.Comment_Cookie_Filter => Render_Ref (Comment_Cookies.Filter (Sites.Comment_Info (Exchange))); when Commands.Comment_Cookie_Link => Render_Ref (Comment_Cookies.Link (Sites.Comment_Info (Exchange))); when Commands.Comment_Cookie_Mail => Render_Ref (Comment_Cookies.Mail (Sites.Comment_Info (Exchange))); when Commands.Comment_Cookie_Name => Render_Ref (Comment_Cookies.Name (Sites.Comment_Info (Exchange))); when Commands.Element => if Re_Enter = null then Report_Unknown_Command; else declare Template : S_Expressions.Caches.Cursor := Exchange.Site.Get_Template (Elements, Arguments, Lookup_Template => False); begin Re_Enter (Exchange, Template); end; end if; when Commands.Element_Or_Template => if Re_Enter = null then Report_Unknown_Command; else declare Template : S_Expressions.Caches.Cursor := Exchange.Site.Get_Template (Elements, Arguments); begin Re_Enter (Exchange, Template); end; end if; when Commands.Filter => if Re_Enter = null then Report_Unknown_Command; elsif Arguments.Current_Event = S_Expressions.Events.Add_Atom then begin declare Filter : Filters.Filter'Class := Exchange.Site.Get_Filter (Arguments.Current_Atom); begin Arguments.Next; Exchange.Insert_Filter (Filter); Re_Enter (Exchange, Arguments); Exchange.Remove_Filter (Filter); end; exception when Filters.Stores.No_Filter => null; end; end if; when Commands.If_Comment_Cookie_Filter_Is => if Re_Enter = null then Report_Unknown_Command; elsif Arguments.Current_Event = S_Expressions.Events.Add_Atom then declare use type S_Expressions.Atom; Ref : constant S_Expressions.Atom_Refs.Immutable_Reference := Comment_Cookies.Filter (Sites.Comment_Info (Exchange)); begin if not Ref.Is_Empty and then Ref.Query = Arguments.Current_Atom then Arguments.Next; Re_Enter (Exchange, Arguments); end if; end; end if; when Commands.If_Has_Element => if Re_Enter = null then Report_Unknown_Command; elsif Arguments.Current_Event = S_Expressions.Events.Add_Atom and then Elements.Contains (Arguments.Current_Atom) then Arguments.Next; Re_Enter (Exchange, Arguments); end if; when Commands.If_Has_Not_Element => if Re_Enter = null then Report_Unknown_Command; elsif Arguments.Current_Event = S_Expressions.Events.Add_Atom and then not Elements.Contains (Arguments.Current_Atom) then Arguments.Next; Re_Enter (Exchange, Arguments); end if; when Commands.If_Has_Parameter_Else => if Re_Enter = null then Report_Unknown_Command; elsif Arguments.Current_Event = S_Expressions.Events.Add_Atom then Render_Then_Else (Exchange.Has_Parameter (S_Expressions.To_String (Arguments.Current_Atom))); end if; when Commands.If_Header_Else => if Re_Enter = null then Report_Unknown_Command; elsif Arguments.Current_Event = S_Expressions.Events.Open_List then declare Lock : S_Expressions.Lockable.Lock_State; Event : S_Expressions.Events.Event; Condition : Boolean; begin Arguments.Next (Event); if Event /= S_Expressions.Events.Add_Atom then return; end if; Arguments.Lock (Lock); Evaluate_Condition : declare Value : constant String := Exchange.Header (S_Expressions.To_String (Arguments.Current_Atom)); begin Arguments.Next; Condition := S_Expressions.Conditionals.Strings.Evaluate (Value, Arguments); Arguments.Unlock (Lock); exception when others => Arguments.Unlock (Lock, False); raise; end Evaluate_Condition; Render_Then_Else (Condition); end; end if; when Commands.If_Parameter_Is => if Re_Enter = null then Report_Unknown_Command; elsif Arguments.Current_Event = S_Expressions.Events.Add_Atom then declare Param_Value : constant String := Exchange.Parameter (S_Expressions.To_String (Arguments.Current_Atom)); Event : S_Expressions.Events.Event; begin Arguments.Next (Event); if Event = S_Expressions.Events.Add_Atom and then Param_Value = S_Expressions.To_String (Arguments.Current_Atom) then Arguments.Next; Re_Enter (Exchange, Arguments); end if; end; end if; when Commands.Load_Date => S_Expressions.Templates.Dates.Render (Exchange, Arguments, Exchange.Site.Load_Date); when Commands.Optional_Tags => Tags.Render (Exchange, Exchange.Site.Get_Tags, Arguments, Optional => True); when Commands.Parameter => if Arguments.Current_Event = S_Expressions.Events.Add_Atom then declare Parameter_Name : constant String := S_Expressions.To_String (Arguments.Current_Atom); begin if Exchange.Has_Parameter (Parameter_Name) then Escapes.Write (Exchange, Exchange.Parameter (Parameter_Name), Escapes.HTML_Attribute); elsif Re_Enter /= null then Arguments.Next; Re_Enter (Exchange, Arguments); end if; end; end if; when Commands.Set_MIME_Type => if Arguments.Current_Event = S_Expressions.Events.Add_Atom then Exchange.Set_MIME_Type (Arguments.Current_Atom); end if; when Commands.Tags => Tags.Render (Exchange, Exchange.Site.Get_Tags, Arguments); when Commands.Template => if Re_Enter = null then Report_Unknown_Command; else declare Template : S_Expressions.Caches.Cursor := Exchange.Site.Get_Template (Elements, Arguments, Lookup_Element => False); begin Re_Enter (Exchange, Template); end; end if; when Commands.User => if Re_Enter = null then Report_Unknown_Command; else declare Match : Boolean := False; begin ACL.Match (Sites.Identity (Exchange), Arguments, Match); if Match then Arguments.Next; Re_Enter (Exchange, Arguments); end if; end; end if; end case; end Natools.Web.Fallback_Render;
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- G E T _ T A R G -- -- -- -- S p e c -- -- -- -- Copyright (C) 1992-2014, Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 3, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. 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 provides an Import to the C functions which provide -- values related to types on the target system. It is only needed for -- exp_dbug and the elaboration of ttypes, via the Set_Targs package. -- It also contains the routine for registering floating-point types. -- NOTE: Any changes in this package must be reflected in aa_getta.adb -- and any other version in the various back ends. -- Note that all these values return sizes of C types with corresponding -- names. This allows GNAT to define the corresponding Ada types to have -- the same representation. There is one exception to this general rule: -- the Wide_Character_Type uses twice the size of a C char, instead of the -- size of wchar_t. with Einfo; use Einfo; with Types; use Types; package Get_Targ is -- Functions returning individual runtime values function Get_Bits_Per_Unit return Pos; -- System.Storage_Unit function Get_Bits_Per_Word return Pos; -- System.Word_Size function Get_Char_Size return Pos; -- Size of Standard.Character function Get_Wchar_T_Size return Pos; -- Size of Interfaces.C.wchar_t function Get_Short_Size return Pos; -- Size of Standard.Short_Integer function Get_Int_Size return Pos; -- Size of Standard.Integer function Get_Long_Size return Pos; -- Size of Standard.Long_Integer function Get_Long_Long_Size return Pos; -- Size of Standard.Long_Long_Integer function Get_Pointer_Size return Pos; -- Size of System.Address function Get_Maximum_Alignment return Pos; -- Maximum supported alignment function Get_Float_Words_BE return Nat; -- Non-zero iff float words big endian function Get_Words_BE return Nat; -- Non-zero iff integer words big endian function Get_Bytes_BE return Nat; -- Non-zero iff bytes big-endian function Get_Bits_BE return Nat; -- Non-zero iff bit order big endian function Get_Strict_Alignment return Nat; -- Non-zero if target requires strict alignent function Get_System_Allocator_Alignment return Nat; -- Alignment guaranteed by malloc falls function Get_Double_Float_Alignment return Nat; -- Alignment required for Long_Float or 0 if no special requirement function Get_Double_Scalar_Alignment return Nat; -- Alignment required for Long_Long_Integer or larger integer types -- or 0 if no special requirement. function Get_Short_Enums return Int; -- Returns non-zero if we are in short enums mode, where foreign convention -- (in particular C and C++) enumeration types will be sized as in Ada, -- using the shortest possibility from 8,16,32 bits, signed or unsigned. -- A zero value means Short_Enums are not in use, and in this case all -- foreign convention enumeration types are given the same size as c int. -- Other subprograms function Get_Max_Unaligned_Field return Pos; -- Returns the maximum supported size in bits for a field that is -- not aligned on a storage unit boundary. function Width_From_Size (Size : Pos) return Pos; function Digits_From_Size (Size : Pos) return Pos; -- Calculate values for 'Width or 'Digits from 'Size type C_String is array (0 .. 255) of aliased Character; pragma Convention (C, C_String); type Register_Type_Proc is access procedure (C_Name : C_String; -- Nul-terminated string with name of type Digs : Natural; -- Digits for floating point, 0 otherwise Complex : Boolean; -- True iff type has real and imaginary parts Count : Natural; -- Number of elements in vector, 0 otherwise Float_Rep : Float_Rep_Kind; -- Representation used for fpt type Precision : Positive; -- Precision of representation in bits Size : Positive; -- Size of representation in bits Alignment : Natural); -- Required alignment in bits pragma Convention (C, Register_Type_Proc); -- Call back procedure for Register_Back_End_Types. This is to be used by -- Create_Standard to create predefined types for all types supported by -- the back end. procedure Register_Back_End_Types (Call_Back : Register_Type_Proc); -- Calls the Call_Back function with information for each supported type function Get_Back_End_Config_File return String_Ptr; -- Return the back end configuration file, or null if none. If non-null, -- this file should be used instead of calling the various Get_xxx -- functions in this package. end Get_Targ;
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- S Y S T E M . I N T E R R U P T S -- -- -- -- B o d y -- -- -- -- Copyright (C) 2001-2013, 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. -- -- -- -- -- -- -- -- -- -- -- -- You should have received a copy of the GNU General Public License and -- -- a copy of the GCC Runtime Library Exception along with this program; -- -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see -- -- <http://www.gnu.org/licenses/>. -- -- -- -- GNARL was developed by the GNARL team at Florida State University. -- -- Extensive contributions were provided by Ada Core Technologies, Inc. -- -- -- ------------------------------------------------------------------------------ -- This is a generic bare board version of this package pragma Restrictions (No_Elaboration_Code); with System.Tasking.Restricted.Stages; package body System.Interrupts is ---------------- -- Local Data -- ---------------- type Handler_Entry is record Handler : Parameterless_Handler; -- The protected subprogram PO_Priority : Interrupt_Priority; -- The priority of the protected object in which the handler is declared -- -- As the handler is a fat pointer to both the subprogram and the -- protected object, it could be possible to extract the priority -- from the access. But there is currently no mechanism for that ??? end record; pragma Suppress_Initialization (Handler_Entry); type Handlers_Table is array (Interrupt_ID) of Handler_Entry; pragma Suppress_Initialization (Handlers_Table); -- Type used to represent the procedures used as interrupt handlers. No -- need to create an initializer, as the only object declared with this -- type is just below and has an expression to initialize it. User_Handlers : Handlers_Table := (others => (null, Interrupt_Priority'First)); -- Table containing user handlers. Must be explicitly initialized to detect -- interrupts without attached handlers. ----------------------- -- Local Subprograms -- ----------------------- procedure Install_Handler (Interrupt : Interrupt_ID); -- Install the runtime umbrella handler for a hardware interrupt procedure Default_Handler (Interrupt : System.OS_Interface.Interrupt_ID); -- Default interrupt handler --------------------- -- Default_Handler -- --------------------- procedure Default_Handler (Interrupt : System.OS_Interface.Interrupt_ID) is Handler : constant Parameterless_Handler := User_Handlers (Interrupt_ID (Interrupt)).Handler; begin if Handler = null then -- Be sure to properly report spurious interrupts even if the run -- time is compiled with checks suppressed. -- The ravenscar-sfp profile has a No_Exception_Propagation -- restriction. Discard compiler warning on the raise statement. pragma Warnings (Off); raise Program_Error; pragma Warnings (On); end if; -- As exception propagated from a handler that is invoked by an -- interrupt must have no effect (ARM C.3 par. 7), interrupt handlers -- are wrapped by a null exception handler to avoid exceptions to be -- propagated further. -- The ravenscar-sfp profile has a No_Exception_Propagation -- restriction. Discard compiler warning on the handler. pragma Warnings (Off); begin Handler.all; exception -- Avoid any further exception propagation when others => null; end; pragma Warnings (On); end Default_Handler; -- Depending on whether exception propagation is supported or not, the -- implementation will differ; exceptions can never be propagated through -- this procedure (see ARM C.3 par. 7). --------------------- -- Install_Handler -- --------------------- procedure Install_Handler (Interrupt : Interrupt_ID) is begin -- Attach the default handler to the specified interrupt. This handler -- will in turn call the user handler. System.OS_Interface.Attach_Handler (Default_Handler'Access, System.OS_Interface.Interrupt_ID (Interrupt), User_Handlers (Interrupt).PO_Priority); end Install_Handler; --------------------------------- -- Install_Restricted_Handlers -- --------------------------------- procedure Install_Restricted_Handlers (Prio : Any_Priority; Handlers : Handler_Array) is use System.Tasking.Restricted.Stages; begin for J in Handlers'Range loop -- Copy the handler in the table that contains the user handlers User_Handlers (Handlers (J).Interrupt) := (Handlers (J).Handler, Prio); -- Install the handler now, unless attachment is deferred because of -- sequential partition elaboration policy. if Partition_Elaboration_Policy /= 'S' then Install_Handler (Handlers (J).Interrupt); end if; end loop; end Install_Restricted_Handlers; -------------------------------------------- -- Install_Restricted_Handlers_Sequential -- -------------------------------------------- procedure Install_Restricted_Handlers_Sequential is begin for J in User_Handlers'Range loop if User_Handlers (J).Handler /= null then Install_Handler (J); end if; end loop; end Install_Restricted_Handlers_Sequential; end System.Interrupts;
package CUPS is type Job_Id is new Natural; Cups_Error : exception; end CUPS;
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- SQL Database Access -- -- -- -- Tools 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 procedure imports mysql_server_init and calls it. Absense of -- libmysqlclient_r or dependent libs produce linker error. ------------------------------------------------------------------------------ with Interfaces.C; with System; procedure Main is function mysql_server_init (argc : Interfaces.C.int; argv : System.Address; groups : System.Address) return Interfaces.C.int; pragma Import (C, mysql_server_init, "mysql_server_init"); Aux : Interfaces.C.int; begin Aux := mysql_server_init (0, System.Null_Address, System.Null_Address); end Main;
-- This spec has been automatically generated from STM32F0xx.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with System; package STM32_SVD.RTC is pragma Preelaborate; --------------- -- Registers -- --------------- subtype TR_SU_Field is STM32_SVD.UInt4; subtype TR_ST_Field is STM32_SVD.UInt3; subtype TR_MNU_Field is STM32_SVD.UInt4; subtype TR_MNT_Field is STM32_SVD.UInt3; subtype TR_HU_Field is STM32_SVD.UInt4; subtype TR_HT_Field is STM32_SVD.UInt2; subtype TR_PM_Field is STM32_SVD.Bit; -- time register type TR_Register is record -- Second units in BCD format SU : TR_SU_Field := 16#0#; -- Second tens in BCD format ST : TR_ST_Field := 16#0#; -- unspecified Reserved_7_7 : STM32_SVD.Bit := 16#0#; -- Minute units in BCD format MNU : TR_MNU_Field := 16#0#; -- Minute tens in BCD format MNT : TR_MNT_Field := 16#0#; -- unspecified Reserved_15_15 : STM32_SVD.Bit := 16#0#; -- Hour units in BCD format HU : TR_HU_Field := 16#0#; -- Hour tens in BCD format HT : TR_HT_Field := 16#0#; -- AM/PM notation PM : TR_PM_Field := 16#0#; -- unspecified Reserved_23_31 : STM32_SVD.UInt9 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for TR_Register use record SU at 0 range 0 .. 3; ST at 0 range 4 .. 6; Reserved_7_7 at 0 range 7 .. 7; MNU at 0 range 8 .. 11; MNT at 0 range 12 .. 14; Reserved_15_15 at 0 range 15 .. 15; HU at 0 range 16 .. 19; HT at 0 range 20 .. 21; PM at 0 range 22 .. 22; Reserved_23_31 at 0 range 23 .. 31; end record; subtype DR_DU_Field is STM32_SVD.UInt4; subtype DR_DT_Field is STM32_SVD.UInt2; subtype DR_MU_Field is STM32_SVD.UInt4; subtype DR_MT_Field is STM32_SVD.Bit; subtype DR_WDU_Field is STM32_SVD.UInt3; subtype DR_YU_Field is STM32_SVD.UInt4; subtype DR_YT_Field is STM32_SVD.UInt4; -- date register type DR_Register is record -- Date units in BCD format DU : DR_DU_Field := 16#1#; -- Date tens in BCD format DT : DR_DT_Field := 16#0#; -- unspecified Reserved_6_7 : STM32_SVD.UInt2 := 16#0#; -- Month units in BCD format MU : DR_MU_Field := 16#1#; -- Month tens in BCD format MT : DR_MT_Field := 16#0#; -- Week day units WDU : DR_WDU_Field := 16#1#; -- Year units in BCD format YU : DR_YU_Field := 16#0#; -- Year tens in BCD format YT : DR_YT_Field := 16#0#; -- unspecified Reserved_24_31 : STM32_SVD.Byte := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for DR_Register use record DU at 0 range 0 .. 3; DT at 0 range 4 .. 5; Reserved_6_7 at 0 range 6 .. 7; MU at 0 range 8 .. 11; MT at 0 range 12 .. 12; WDU at 0 range 13 .. 15; YU at 0 range 16 .. 19; YT at 0 range 20 .. 23; Reserved_24_31 at 0 range 24 .. 31; end record; subtype CR_TSEDGE_Field is STM32_SVD.Bit; subtype CR_REFCKON_Field is STM32_SVD.Bit; subtype CR_BYPSHAD_Field is STM32_SVD.Bit; subtype CR_FMT_Field is STM32_SVD.Bit; subtype CR_ALRAE_Field is STM32_SVD.Bit; subtype CR_TSE_Field is STM32_SVD.Bit; subtype CR_ALRAIE_Field is STM32_SVD.Bit; subtype CR_TSIE_Field is STM32_SVD.Bit; subtype CR_ADD1H_Field is STM32_SVD.Bit; subtype CR_SUB1H_Field is STM32_SVD.Bit; subtype CR_BKP_Field is STM32_SVD.Bit; subtype CR_COSEL_Field is STM32_SVD.Bit; subtype CR_POL_Field is STM32_SVD.Bit; subtype CR_OSEL_Field is STM32_SVD.UInt2; subtype CR_COE_Field is STM32_SVD.Bit; -- control register type CR_Register is record -- unspecified Reserved_0_2 : STM32_SVD.UInt3 := 16#0#; -- Time-stamp event active edge TSEDGE : CR_TSEDGE_Field := 16#0#; -- RTC_REFIN reference clock detection enable (50 or 60 Hz) REFCKON : CR_REFCKON_Field := 16#0#; -- Bypass the shadow registers BYPSHAD : CR_BYPSHAD_Field := 16#0#; -- Hour format FMT : CR_FMT_Field := 16#0#; -- unspecified Reserved_7_7 : STM32_SVD.Bit := 16#0#; -- Alarm A enable ALRAE : CR_ALRAE_Field := 16#0#; -- unspecified Reserved_9_10 : STM32_SVD.UInt2 := 16#0#; -- timestamp enable TSE : CR_TSE_Field := 16#0#; -- Alarm A interrupt enable ALRAIE : CR_ALRAIE_Field := 16#0#; -- unspecified Reserved_13_14 : STM32_SVD.UInt2 := 16#0#; -- Time-stamp interrupt enable TSIE : CR_TSIE_Field := 16#0#; -- Write-only. Add 1 hour (summer time change) ADD1H : CR_ADD1H_Field := 16#0#; -- Write-only. Subtract 1 hour (winter time change) SUB1H : CR_SUB1H_Field := 16#0#; -- Backup BKP : CR_BKP_Field := 16#0#; -- Calibration output selection COSEL : CR_COSEL_Field := 16#0#; -- Output polarity POL : CR_POL_Field := 16#0#; -- Output selection OSEL : CR_OSEL_Field := 16#0#; -- Calibration output enable COE : CR_COE_Field := 16#0#; -- unspecified Reserved_24_31 : STM32_SVD.Byte := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for CR_Register use record Reserved_0_2 at 0 range 0 .. 2; TSEDGE at 0 range 3 .. 3; REFCKON at 0 range 4 .. 4; BYPSHAD at 0 range 5 .. 5; FMT at 0 range 6 .. 6; Reserved_7_7 at 0 range 7 .. 7; ALRAE at 0 range 8 .. 8; Reserved_9_10 at 0 range 9 .. 10; TSE at 0 range 11 .. 11; ALRAIE at 0 range 12 .. 12; Reserved_13_14 at 0 range 13 .. 14; TSIE at 0 range 15 .. 15; ADD1H at 0 range 16 .. 16; SUB1H at 0 range 17 .. 17; BKP at 0 range 18 .. 18; COSEL at 0 range 19 .. 19; POL at 0 range 20 .. 20; OSEL at 0 range 21 .. 22; COE at 0 range 23 .. 23; Reserved_24_31 at 0 range 24 .. 31; end record; subtype ISR_ALRAWF_Field is STM32_SVD.Bit; subtype ISR_SHPF_Field is STM32_SVD.Bit; subtype ISR_INITS_Field is STM32_SVD.Bit; subtype ISR_RSF_Field is STM32_SVD.Bit; subtype ISR_INITF_Field is STM32_SVD.Bit; subtype ISR_INIT_Field is STM32_SVD.Bit; subtype ISR_ALRAF_Field is STM32_SVD.Bit; subtype ISR_TSF_Field is STM32_SVD.Bit; subtype ISR_TSOVF_Field is STM32_SVD.Bit; subtype ISR_TAMP1F_Field is STM32_SVD.Bit; subtype ISR_TAMP2F_Field is STM32_SVD.Bit; subtype ISR_RECALPF_Field is STM32_SVD.Bit; -- initialization and status register type ISR_Register is record -- Read-only. Alarm A write flag ALRAWF : ISR_ALRAWF_Field := 16#1#; -- unspecified Reserved_1_2 : STM32_SVD.UInt2 := 16#3#; -- Shift operation pending SHPF : ISR_SHPF_Field := 16#0#; -- Read-only. Initialization status flag INITS : ISR_INITS_Field := 16#0#; -- Registers synchronization flag RSF : ISR_RSF_Field := 16#0#; -- Read-only. Initialization flag INITF : ISR_INITF_Field := 16#0#; -- Initialization mode INIT : ISR_INIT_Field := 16#0#; -- Alarm A flag ALRAF : ISR_ALRAF_Field := 16#0#; -- unspecified Reserved_9_10 : STM32_SVD.UInt2 := 16#0#; -- Time-stamp flag TSF : ISR_TSF_Field := 16#0#; -- Time-stamp overflow flag TSOVF : ISR_TSOVF_Field := 16#0#; -- RTC_TAMP1 detection flag TAMP1F : ISR_TAMP1F_Field := 16#0#; -- RTC_TAMP2 detection flag TAMP2F : ISR_TAMP2F_Field := 16#0#; -- unspecified Reserved_15_15 : STM32_SVD.Bit := 16#0#; -- Read-only. Recalibration pending Flag RECALPF : ISR_RECALPF_Field := 16#0#; -- unspecified Reserved_17_31 : STM32_SVD.UInt15 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for ISR_Register use record ALRAWF at 0 range 0 .. 0; Reserved_1_2 at 0 range 1 .. 2; SHPF at 0 range 3 .. 3; INITS at 0 range 4 .. 4; RSF at 0 range 5 .. 5; INITF at 0 range 6 .. 6; INIT at 0 range 7 .. 7; ALRAF at 0 range 8 .. 8; Reserved_9_10 at 0 range 9 .. 10; TSF at 0 range 11 .. 11; TSOVF at 0 range 12 .. 12; TAMP1F at 0 range 13 .. 13; TAMP2F at 0 range 14 .. 14; Reserved_15_15 at 0 range 15 .. 15; RECALPF at 0 range 16 .. 16; Reserved_17_31 at 0 range 17 .. 31; end record; subtype PRER_PREDIV_S_Field is STM32_SVD.UInt15; subtype PRER_PREDIV_A_Field is STM32_SVD.UInt7; -- prescaler register type PRER_Register is record -- Synchronous prescaler factor PREDIV_S : PRER_PREDIV_S_Field := 16#FF#; -- unspecified Reserved_15_15 : STM32_SVD.Bit := 16#0#; -- Asynchronous prescaler factor PREDIV_A : PRER_PREDIV_A_Field := 16#7F#; -- unspecified Reserved_23_31 : STM32_SVD.UInt9 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for PRER_Register use record PREDIV_S at 0 range 0 .. 14; Reserved_15_15 at 0 range 15 .. 15; PREDIV_A at 0 range 16 .. 22; Reserved_23_31 at 0 range 23 .. 31; end record; subtype ALRMAR_SU_Field is STM32_SVD.UInt4; subtype ALRMAR_ST_Field is STM32_SVD.UInt3; subtype ALRMAR_MSK1_Field is STM32_SVD.Bit; subtype ALRMAR_MNU_Field is STM32_SVD.UInt4; subtype ALRMAR_MNT_Field is STM32_SVD.UInt3; subtype ALRMAR_MSK2_Field is STM32_SVD.Bit; subtype ALRMAR_HU_Field is STM32_SVD.UInt4; subtype ALRMAR_HT_Field is STM32_SVD.UInt2; subtype ALRMAR_PM_Field is STM32_SVD.Bit; subtype ALRMAR_MSK3_Field is STM32_SVD.Bit; subtype ALRMAR_DU_Field is STM32_SVD.UInt4; subtype ALRMAR_DT_Field is STM32_SVD.UInt2; subtype ALRMAR_WDSEL_Field is STM32_SVD.Bit; subtype ALRMAR_MSK4_Field is STM32_SVD.Bit; -- alarm A register type ALRMAR_Register is record -- Second units in BCD format. SU : ALRMAR_SU_Field := 16#0#; -- Second tens in BCD format. ST : ALRMAR_ST_Field := 16#0#; -- Alarm A seconds mask MSK1 : ALRMAR_MSK1_Field := 16#0#; -- Minute units in BCD format. MNU : ALRMAR_MNU_Field := 16#0#; -- Minute tens in BCD format. MNT : ALRMAR_MNT_Field := 16#0#; -- Alarm A minutes mask MSK2 : ALRMAR_MSK2_Field := 16#0#; -- Hour units in BCD format. HU : ALRMAR_HU_Field := 16#0#; -- Hour tens in BCD format. HT : ALRMAR_HT_Field := 16#0#; -- AM/PM notation PM : ALRMAR_PM_Field := 16#0#; -- Alarm A hours mask MSK3 : ALRMAR_MSK3_Field := 16#0#; -- Date units or day in BCD format. DU : ALRMAR_DU_Field := 16#0#; -- Date tens in BCD format. DT : ALRMAR_DT_Field := 16#0#; -- Week day selection WDSEL : ALRMAR_WDSEL_Field := 16#0#; -- Alarm A date mask MSK4 : ALRMAR_MSK4_Field := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for ALRMAR_Register use record SU at 0 range 0 .. 3; ST at 0 range 4 .. 6; MSK1 at 0 range 7 .. 7; MNU at 0 range 8 .. 11; MNT at 0 range 12 .. 14; MSK2 at 0 range 15 .. 15; HU at 0 range 16 .. 19; HT at 0 range 20 .. 21; PM at 0 range 22 .. 22; MSK3 at 0 range 23 .. 23; DU at 0 range 24 .. 27; DT at 0 range 28 .. 29; WDSEL at 0 range 30 .. 30; MSK4 at 0 range 31 .. 31; end record; subtype WPR_KEY_Field is STM32_SVD.Byte; -- write protection register type WPR_Register is record -- Write-only. Write protection key KEY : WPR_KEY_Field := 16#0#; -- unspecified Reserved_8_31 : STM32_SVD.UInt24 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for WPR_Register use record KEY at 0 range 0 .. 7; Reserved_8_31 at 0 range 8 .. 31; end record; subtype SSR_SS_Field is STM32_SVD.UInt16; -- sub second register type SSR_Register is record -- Read-only. Sub second value SS : SSR_SS_Field; -- unspecified Reserved_16_31 : STM32_SVD.UInt16; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for SSR_Register use record SS at 0 range 0 .. 15; Reserved_16_31 at 0 range 16 .. 31; end record; subtype SHIFTR_SUBFS_Field is STM32_SVD.UInt15; subtype SHIFTR_ADD1S_Field is STM32_SVD.Bit; -- shift control register type SHIFTR_Register is record -- Write-only. Subtract a fraction of a second SUBFS : SHIFTR_SUBFS_Field := 16#0#; -- unspecified Reserved_15_30 : STM32_SVD.UInt16 := 16#0#; -- Write-only. Reserved ADD1S : SHIFTR_ADD1S_Field := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for SHIFTR_Register use record SUBFS at 0 range 0 .. 14; Reserved_15_30 at 0 range 15 .. 30; ADD1S at 0 range 31 .. 31; end record; subtype TSTR_SU_Field is STM32_SVD.UInt4; subtype TSTR_ST_Field is STM32_SVD.UInt3; subtype TSTR_MNU_Field is STM32_SVD.UInt4; subtype TSTR_MNT_Field is STM32_SVD.UInt3; subtype TSTR_HU_Field is STM32_SVD.UInt4; subtype TSTR_HT_Field is STM32_SVD.UInt2; subtype TSTR_PM_Field is STM32_SVD.Bit; -- timestamp time register type TSTR_Register is record -- Read-only. Second units in BCD format. SU : TSTR_SU_Field; -- Read-only. Second tens in BCD format. ST : TSTR_ST_Field; -- unspecified Reserved_7_7 : STM32_SVD.Bit; -- Read-only. Minute units in BCD format. MNU : TSTR_MNU_Field; -- Read-only. Minute tens in BCD format. MNT : TSTR_MNT_Field; -- unspecified Reserved_15_15 : STM32_SVD.Bit; -- Read-only. Hour units in BCD format. HU : TSTR_HU_Field; -- Read-only. Hour tens in BCD format. HT : TSTR_HT_Field; -- Read-only. AM/PM notation PM : TSTR_PM_Field; -- unspecified Reserved_23_31 : STM32_SVD.UInt9; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for TSTR_Register use record SU at 0 range 0 .. 3; ST at 0 range 4 .. 6; Reserved_7_7 at 0 range 7 .. 7; MNU at 0 range 8 .. 11; MNT at 0 range 12 .. 14; Reserved_15_15 at 0 range 15 .. 15; HU at 0 range 16 .. 19; HT at 0 range 20 .. 21; PM at 0 range 22 .. 22; Reserved_23_31 at 0 range 23 .. 31; end record; subtype TSDR_DU_Field is STM32_SVD.UInt4; subtype TSDR_DT_Field is STM32_SVD.UInt2; subtype TSDR_MU_Field is STM32_SVD.UInt4; subtype TSDR_MT_Field is STM32_SVD.Bit; subtype TSDR_WDU_Field is STM32_SVD.UInt3; -- timestamp date register type TSDR_Register is record -- Read-only. Date units in BCD format DU : TSDR_DU_Field; -- Read-only. Date tens in BCD format DT : TSDR_DT_Field; -- unspecified Reserved_6_7 : STM32_SVD.UInt2; -- Read-only. Month units in BCD format MU : TSDR_MU_Field; -- Read-only. Month tens in BCD format MT : TSDR_MT_Field; -- Read-only. Week day units WDU : TSDR_WDU_Field; -- unspecified Reserved_16_31 : STM32_SVD.UInt16; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for TSDR_Register use record DU at 0 range 0 .. 3; DT at 0 range 4 .. 5; Reserved_6_7 at 0 range 6 .. 7; MU at 0 range 8 .. 11; MT at 0 range 12 .. 12; WDU at 0 range 13 .. 15; Reserved_16_31 at 0 range 16 .. 31; end record; subtype TSSSR_SS_Field is STM32_SVD.UInt16; -- time-stamp sub second register type TSSSR_Register is record -- Read-only. Sub second value SS : TSSSR_SS_Field; -- unspecified Reserved_16_31 : STM32_SVD.UInt16; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for TSSSR_Register use record SS at 0 range 0 .. 15; Reserved_16_31 at 0 range 16 .. 31; end record; subtype CALR_CALM_Field is STM32_SVD.UInt9; subtype CALR_CALW16_Field is STM32_SVD.Bit; subtype CALR_CALW8_Field is STM32_SVD.Bit; subtype CALR_CALP_Field is STM32_SVD.Bit; -- calibration register type CALR_Register is record -- Calibration minus CALM : CALR_CALM_Field := 16#0#; -- unspecified Reserved_9_12 : STM32_SVD.UInt4 := 16#0#; -- Reserved CALW16 : CALR_CALW16_Field := 16#0#; -- Use a 16-second calibration cycle period CALW8 : CALR_CALW8_Field := 16#0#; -- Use an 8-second calibration cycle period CALP : CALR_CALP_Field := 16#0#; -- unspecified Reserved_16_31 : STM32_SVD.UInt16 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for CALR_Register use record CALM at 0 range 0 .. 8; Reserved_9_12 at 0 range 9 .. 12; CALW16 at 0 range 13 .. 13; CALW8 at 0 range 14 .. 14; CALP at 0 range 15 .. 15; Reserved_16_31 at 0 range 16 .. 31; end record; subtype TAFCR_TAMP1E_Field is STM32_SVD.Bit; subtype TAFCR_TAMP1TRG_Field is STM32_SVD.Bit; subtype TAFCR_TAMPIE_Field is STM32_SVD.Bit; subtype TAFCR_TAMP2E_Field is STM32_SVD.Bit; subtype TAFCR_TAMP2_TRG_Field is STM32_SVD.Bit; subtype TAFCR_TAMPTS_Field is STM32_SVD.Bit; subtype TAFCR_TAMPFREQ_Field is STM32_SVD.UInt3; subtype TAFCR_TAMPFLT_Field is STM32_SVD.UInt2; subtype TAFCR_TAMP_PRCH_Field is STM32_SVD.UInt2; subtype TAFCR_TAMP_PUDIS_Field is STM32_SVD.Bit; subtype TAFCR_PC13VALUE_Field is STM32_SVD.Bit; subtype TAFCR_PC13MODE_Field is STM32_SVD.Bit; subtype TAFCR_PC14VALUE_Field is STM32_SVD.Bit; subtype TAFCR_PC14MODE_Field is STM32_SVD.Bit; subtype TAFCR_PC15VALUE_Field is STM32_SVD.Bit; subtype TAFCR_PC15MODE_Field is STM32_SVD.Bit; -- tamper and alternate function configuration register type TAFCR_Register is record -- RTC_TAMP1 input detection enable TAMP1E : TAFCR_TAMP1E_Field := 16#0#; -- Active level for RTC_TAMP1 input TAMP1TRG : TAFCR_TAMP1TRG_Field := 16#0#; -- Tamper interrupt enable TAMPIE : TAFCR_TAMPIE_Field := 16#0#; -- RTC_TAMP2 input detection enable TAMP2E : TAFCR_TAMP2E_Field := 16#0#; -- Active level for RTC_TAMP2 input TAMP2_TRG : TAFCR_TAMP2_TRG_Field := 16#0#; -- unspecified Reserved_5_6 : STM32_SVD.UInt2 := 16#0#; -- Activate timestamp on tamper detection event TAMPTS : TAFCR_TAMPTS_Field := 16#0#; -- Tamper sampling frequency TAMPFREQ : TAFCR_TAMPFREQ_Field := 16#0#; -- RTC_TAMPx filter count TAMPFLT : TAFCR_TAMPFLT_Field := 16#0#; -- RTC_TAMPx precharge duration TAMP_PRCH : TAFCR_TAMP_PRCH_Field := 16#0#; -- RTC_TAMPx pull-up disable TAMP_PUDIS : TAFCR_TAMP_PUDIS_Field := 16#0#; -- unspecified Reserved_16_17 : STM32_SVD.UInt2 := 16#0#; -- RTC_ALARM output type/PC13 value PC13VALUE : TAFCR_PC13VALUE_Field := 16#0#; -- PC13 mode PC13MODE : TAFCR_PC13MODE_Field := 16#0#; -- PC14 value PC14VALUE : TAFCR_PC14VALUE_Field := 16#0#; -- PC14 mode PC14MODE : TAFCR_PC14MODE_Field := 16#0#; -- PC15 value PC15VALUE : TAFCR_PC15VALUE_Field := 16#0#; -- PC15 mode PC15MODE : TAFCR_PC15MODE_Field := 16#0#; -- unspecified Reserved_24_31 : STM32_SVD.Byte := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for TAFCR_Register use record TAMP1E at 0 range 0 .. 0; TAMP1TRG at 0 range 1 .. 1; TAMPIE at 0 range 2 .. 2; TAMP2E at 0 range 3 .. 3; TAMP2_TRG at 0 range 4 .. 4; Reserved_5_6 at 0 range 5 .. 6; TAMPTS at 0 range 7 .. 7; TAMPFREQ at 0 range 8 .. 10; TAMPFLT at 0 range 11 .. 12; TAMP_PRCH at 0 range 13 .. 14; TAMP_PUDIS at 0 range 15 .. 15; Reserved_16_17 at 0 range 16 .. 17; PC13VALUE at 0 range 18 .. 18; PC13MODE at 0 range 19 .. 19; PC14VALUE at 0 range 20 .. 20; PC14MODE at 0 range 21 .. 21; PC15VALUE at 0 range 22 .. 22; PC15MODE at 0 range 23 .. 23; Reserved_24_31 at 0 range 24 .. 31; end record; subtype ALRMASSR_SS_Field is STM32_SVD.UInt15; subtype ALRMASSR_MASKSS_Field is STM32_SVD.UInt4; -- alarm A sub second register type ALRMASSR_Register is record -- Sub seconds value SS : ALRMASSR_SS_Field := 16#0#; -- unspecified Reserved_15_23 : STM32_SVD.UInt9 := 16#0#; -- Mask the most-significant bits starting at this bit MASKSS : ALRMASSR_MASKSS_Field := 16#0#; -- unspecified Reserved_28_31 : STM32_SVD.UInt4 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for ALRMASSR_Register use record SS at 0 range 0 .. 14; Reserved_15_23 at 0 range 15 .. 23; MASKSS at 0 range 24 .. 27; Reserved_28_31 at 0 range 28 .. 31; end record; ----------------- -- Peripherals -- ----------------- -- Real-time clock type RTC_Peripheral is record -- time register TR : aliased TR_Register; -- date register DR : aliased DR_Register; -- control register CR : aliased CR_Register; -- initialization and status register ISR : aliased ISR_Register; -- prescaler register PRER : aliased PRER_Register; -- alarm A register ALRMAR : aliased ALRMAR_Register; -- write protection register WPR : aliased WPR_Register; -- sub second register SSR : aliased SSR_Register; -- shift control register SHIFTR : aliased SHIFTR_Register; -- timestamp time register TSTR : aliased TSTR_Register; -- timestamp date register TSDR : aliased TSDR_Register; -- time-stamp sub second register TSSSR : aliased TSSSR_Register; -- calibration register CALR : aliased CALR_Register; -- tamper and alternate function configuration register TAFCR : aliased TAFCR_Register; -- alarm A sub second register ALRMASSR : aliased ALRMASSR_Register; -- backup register BKP0R : aliased STM32_SVD.UInt32; -- backup register BKP1R : aliased STM32_SVD.UInt32; -- backup register BKP2R : aliased STM32_SVD.UInt32; -- backup register BKP3R : aliased STM32_SVD.UInt32; -- backup register BKP4R : aliased STM32_SVD.UInt32; end record with Volatile; for RTC_Peripheral use record TR at 16#0# range 0 .. 31; DR at 16#4# range 0 .. 31; CR at 16#8# range 0 .. 31; ISR at 16#C# range 0 .. 31; PRER at 16#10# range 0 .. 31; ALRMAR at 16#1C# range 0 .. 31; WPR at 16#24# range 0 .. 31; SSR at 16#28# range 0 .. 31; SHIFTR at 16#2C# range 0 .. 31; TSTR at 16#30# range 0 .. 31; TSDR at 16#34# range 0 .. 31; TSSSR at 16#38# range 0 .. 31; CALR at 16#3C# range 0 .. 31; TAFCR at 16#40# range 0 .. 31; ALRMASSR at 16#44# range 0 .. 31; BKP0R at 16#50# range 0 .. 31; BKP1R at 16#54# range 0 .. 31; BKP2R at 16#58# range 0 .. 31; BKP3R at 16#5C# range 0 .. 31; BKP4R at 16#60# range 0 .. 31; end record; -- Real-time clock RTC_Periph : aliased RTC_Peripheral with Import, Address => System'To_Address (16#40002800#); end STM32_SVD.RTC;
-- MIT License -- -- Copyright (c) 2020 Max Reznik -- -- Permission is hereby granted, free of charge, to any person obtaining a -- copy of this software and associated documentation files (the "Software"), -- to deal in the Software without restriction, including without limitation -- the rights to use, copy, modify, merge, publish, distribute, sublicense, -- and/or sell copies of the Software, and to permit persons to whom the -- Software is furnished to do so, subject to the following conditions: -- -- The above copyright notice and this permission notice shall be included in -- all copies or substantial portions of the Software. -- -- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL -- THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -- FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -- DEALINGS IN THE SOFTWARE. with Ada.Containers.Ordered_Sets; package body Compiler.Enum_Descriptors is F : Ada_Pretty.Factory renames Compiler.Context.Factory; function "+" (Text : Wide_Wide_String) return League.Strings.Universal_String renames League.Strings.To_Universal_String; function Type_Name (Self : Google.Protobuf.Descriptor.Enum_Descriptor_Proto) return League.Strings.Universal_String; -- Return Ada type (simple) name function Default (Self : Google.Protobuf.Descriptor.Enum_Descriptor_Proto) return League.Strings.Universal_String; -- Return default value for given enum type as string function Literal_Name (Self : Google.Protobuf.Descriptor.Enum_Descriptor_Proto; Index : Positive) return League.Strings.Universal_String; -- Return default value for given enum type as string function Max_Value (Self : Google.Protobuf.Descriptor.Enum_Descriptor_Proto) return Integer; -- Maximum representation value function Min_Value (Self : Google.Protobuf.Descriptor.Enum_Descriptor_Proto) return Integer; -- Minimum representation value ------------- -- Default -- ------------- function Default (Self : Google.Protobuf.Descriptor.Enum_Descriptor_Proto) return League.Strings.Universal_String is begin return Literal_Name (Self, 1); end Default; ----------------- -- Get_Literal -- ----------------- function Get_Literal (Value : Integer) return Ada_Pretty.Node_Access is Result : Ada_Pretty.Node_Access := F.New_Literal (abs Value); begin if Value < 0 then Result := F.New_Infix (+"-", Result); end if; return Result; end Get_Literal; ------------------ -- Literal_Name -- ------------------ function Literal_Name (Self : Google.Protobuf.Descriptor.Enum_Descriptor_Proto; Index : Positive) return League.Strings.Universal_String is use type League.Strings.Universal_String; Name : constant League.Strings.Universal_String := Type_Name (Self); Literal : League.Strings.Universal_String := Self.Value (Index).Name.Value; begin if Literal.To_Lowercase = Name.To_Lowercase then Literal.Prepend ("PB_"); end if; return Literal; end Literal_Name; --------------- -- Max_Value -- --------------- function Max_Value (Self : Google.Protobuf.Descriptor.Enum_Descriptor_Proto) return Integer is Result : Integer := Integer (Self.Value (1).Number.Value); Next : Integer; begin for J in 2 .. Self.Value.Length loop Next := Integer (Self.Value (J).Number.Value); Result := Integer'Max (Result, Next); end loop; return Result; end Max_Value; --------------- -- Min_Value -- --------------- function Min_Value (Self : Google.Protobuf.Descriptor.Enum_Descriptor_Proto) return Integer is Result : Integer := Integer (Self.Value (1).Number.Value); Next : Integer; begin for J in 2 .. Self.Value.Length loop Next := Integer (Self.Value (J).Number.Value); Result := Integer'Min (Result, Next); end loop; return Result; end Min_Value; -------------------------- -- Populate_Named_Types -- -------------------------- procedure Populate_Named_Types (Self : Google.Protobuf.Descriptor.Enum_Descriptor_Proto; PB_Prefix : League.Strings.Universal_String; Ada_Package : League.Strings.Universal_String; Map : in out Compiler.Context.Named_Type_Maps.Map) is Name : constant League.Strings.Universal_String := Type_Name (Self); Key : League.Strings.Universal_String := PB_Prefix; Value : constant Compiler.Context.Named_Type := (Is_Enumeration => True, Ada_Type => (Package_Name => Ada_Package, Type_Name => Name), Enum => (Min => Min_Value (Self), Max => Max_Value (Self), Default => Default (Self))); begin Key.Append ("."); if Self.Name.Is_Set then Key.Append (Self.Name.Value); end if; Map.Insert (Key, Value); end Populate_Named_Types; ----------------- -- Public_Spec -- ----------------- function Public_Spec (Self : Google.Protobuf.Descriptor.Enum_Descriptor_Proto) return Ada_Pretty.Node_Access is use type League.Strings.Universal_String; type Enum is record Value : Integer; Name : League.Strings.Universal_String; end record; function Less (Left, Right : Enum) return Boolean; function Less (Left, Right : Enum) return Boolean is begin return Left.Value < Right.Value or else (Left.Value = Right.Value and then Left.Name < Right.Name); end Less; package Enum_Sets is new Ada.Containers.Ordered_Sets (Enum, Less); Name : constant League.Strings.Universal_String := Type_Name (Self); Result : Ada_Pretty.Node_Access; Clause : Ada_Pretty.Node_Access; Item : Ada_Pretty.Node_Access; Aliases : Ada_Pretty.Node_Access; Enums : Enum_Sets.Set; Done : Compiler.Context.String_Sets.Set; First : Boolean := True; Prev : Enum; begin for J in 1 .. Self.Value.Length loop Enums.Include ((Value => Integer (Self.Value (J).Number.Value), Name => Literal_Name (Self, J))); end loop; Prev := Enums.Last_Element; for J of Enums loop if Done.Contains (J.Name.To_Lowercase) then null; -- Skip name that differs only in character case elsif not First and Prev.Value = J.Value then Done.Insert (J.Name.To_Lowercase); Aliases := F.New_List (Aliases, F.New_Subprogram_Declaration (Specification => F.New_Subprogram_Specification (Name => F.New_Name (J.Name), Result => F.New_Name (Name)), Expression => F.New_Name (Prev.Name))); else Done.Insert (J.Name.To_Lowercase); Item := F.New_Argument_Association (F.New_Name (J.Name)); Result := F.New_List (Result, Item); Clause := F.New_List (Clause, F.New_Argument_Association (Choice => F.New_Name (J.Name), Value => Get_Literal (J.Value))); end if; Prev := J; First := False; end loop; Result := F.New_Type (Name => F.New_Name (Name), Definition => F.New_Parentheses (Result)); Clause := F.New_Statement (F.New_Apply (F.New_Name ("for " & Name & " use"), Clause)); Item := F.New_List (Aliases, F.New_Package_Instantiation (Name => F.New_Name (Name & "_Vectors"), Template => F.New_Selected_Name (+"PB_Support.Vectors"), Actual_Part => F.New_Name (Name))); Result := F.New_List ((Result, Clause, Item)); return Result; end Public_Spec; --------------- -- Type_Name -- --------------- function Type_Name (Self : Google.Protobuf.Descriptor.Enum_Descriptor_Proto) return League.Strings.Universal_String is begin if Self.Name.Is_Set then return Compiler.Context.To_Ada_Name (Self.Name.Value); else return +"Enum"; end if; end Type_Name; end Compiler.Enum_Descriptors;
with Libhello; procedure Hello is begin Libhello.Hello_World; end Hello;
----------------------------------------------------------------------- -- asf.servlets.files -- Static file servlet -- Copyright (C) 2010, 2011, 2013 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law or agreed to in writing, software -- distributed under the License is distributed on an "AS IS" BASIS, -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -- See the License for the specific language governing permissions and -- limitations under the License. ----------------------------------------------------------------------- with Util.Files; with Util.Strings; with Util.Streams; with Util.Streams.Files; with Ada.Streams; with Ada.Streams.Stream_IO; with Ada.Directories; with ASF.Streams; with ASF.Applications; package body ASF.Servlets.Files is use Ada.Streams; use Ada.Streams.Stream_IO; use Ada.Directories; -- ------------------------------ -- Called by the servlet container to indicate to a servlet that the servlet -- is being placed into service. -- ------------------------------ procedure Initialize (Server : in out File_Servlet; Context : in Servlet_Registry'Class) is Dir : constant String := Context.Get_Init_Parameter (ASF.Applications.VIEW_DIR); Def_Type : constant String := Context.Get_Init_Parameter ("content-type.default"); begin Server.Dir := new String '(Dir); Server.Default_Content_Type := new String '(Def_Type); end Initialize; -- ------------------------------ -- Returns the time the Request object was last modified, in milliseconds since -- midnight January 1, 1970 GMT. If the time is unknown, this method returns -- a negative number (the default). -- -- Servlets that support HTTP GET requests and can quickly determine their -- last modification time should override this method. This makes browser and -- proxy caches work more effectively, reducing the load on server and network -- resources. -- ------------------------------ function Get_Last_Modified (Server : in File_Servlet; Request : in Requests.Request'Class) return Ada.Calendar.Time is pragma Unreferenced (Server, Request); begin return Ada.Calendar.Clock; end Get_Last_Modified; -- ------------------------------ -- Set the content type associated with the given file -- ------------------------------ procedure Set_Content_Type (Server : in File_Servlet; Path : in String; Response : in out Responses.Response'Class) is Pos : constant Natural := Util.Strings.Rindex (Path, '.'); begin if Pos = 0 then Response.Set_Content_Type (Server.Default_Content_Type.all); return; end if; if Path (Pos .. Path'Last) = ".css" then Response.Set_Content_Type ("text/css"); return; end if; if Path (Pos .. Path'Last) = ".js" then Response.Set_Content_Type ("text/javascript"); return; end if; if Path (Pos .. Path'Last) = ".html" then Response.Set_Content_Type ("text/html"); return; end if; if Path (Pos .. Path'Last) = ".txt" then Response.Set_Content_Type ("text/plain"); return; end if; if Path (Pos .. Path'Last) = ".png" then Response.Set_Content_Type ("image/png"); return; end if; if Path (Pos .. Path'Last) = ".jpg" then Response.Set_Content_Type ("image/jpg"); return; end if; end Set_Content_Type; -- ------------------------------ -- Called by the server (via the service method) to allow a servlet to handle -- a GET request. -- -- Overriding this method to support a GET request also automatically supports -- an HTTP HEAD request. A HEAD request is a GET request that returns no body -- in the response, only the request header fields. -- -- When overriding this method, read the request data, write the response headers, -- get the response's writer or output stream object, and finally, write the -- response data. It's best to include content type and encoding. -- When using a PrintWriter object to return the response, set the content type -- before accessing the PrintWriter object. -- -- The servlet container must write the headers before committing the response, -- because in HTTP the headers must be sent before the response body. -- -- Where possible, set the Content-Length header (with the -- Response.Set_Content_Length method), to allow the servlet container -- to use a persistent connection to return its response to the client, -- improving performance. The content length is automatically set if the entire -- response fits inside the response buffer. -- -- When using HTTP 1.1 chunked encoding (which means that the response has a -- Transfer-Encoding header), do not set the Content-Length header. -- -- The GET method should be safe, that is, without any side effects for which -- users are held responsible. For example, most form queries have no side effects. -- If a client request is intended to change stored data, the request should use -- some other HTTP method. -- -- The GET method should also be idempotent, meaning that it can be safely repeated. -- Sometimes making a method safe also makes it idempotent. For example, repeating -- queries is both safe and idempotent, but buying a product online or modifying -- data is neither safe nor idempotent. -- -- If the request is incorrectly formatted, Do_Get returns an HTTP "Bad Request" -- ------------------------------ procedure Do_Get (Server : in File_Servlet; Request : in out Requests.Request'Class; Response : in out Responses.Response'Class) is use Util.Files; URI : constant String := Request.Get_Path_Info; Path : constant String := Find_File_Path (Name => URI, Paths => Server.Dir.all); begin if not Ada.Directories.Exists (Path) or else Ada.Directories.Kind (Path) /= Ada.Directories.Ordinary_File then Response.Send_Error (Responses.SC_NOT_FOUND); return; end if; File_Servlet'Class (Server).Set_Content_Type (Path, Response); declare Output : ASF.Streams.Print_Stream := Response.Get_Output_Stream; Input : Util.Streams.Files.File_Stream; begin Input.Open (Name => Path, Mode => In_File); Util.Streams.Copy (From => Input, Into => Output); end; end Do_Get; end ASF.Servlets.Files;
package impact.d2.Contact.polygon_circle -- -- -- is type b2PolygonAndCircleContact is new b2Contact with null record; type View is access all b2PolygonAndCircleContact'Class; overriding procedure Evaluate (Self : in out b2PolygonAndCircleContact; manifold : access collision.b2Manifold; xfA, xfB : in b2Transform); function Create (fixtureA, fixtureB : access Fixture.b2Fixture) return access b2Contact'Class; procedure Destroy (contact : in out impact.d2.Contact.view); -- -- #include <Box2D/Dynamics/Contacts/b2Contact.h> -- -- class b2BlockAllocator; -- -- class b2PolygonAndCircleContact : public b2Contact -- { -- public: -- static b2Contact* Create(b2Fixture* fixtureA, b2Fixture* fixtureB, b2BlockAllocator* allocator); -- static void Destroy(b2Contact* contact, b2BlockAllocator* allocator); -- -- b2PolygonAndCircleContact(b2Fixture* fixtureA, b2Fixture* fixtureB); -- ~b2PolygonAndCircleContact() {} -- -- void Evaluate(b2Manifold* manifold, const b2Transform& xfA, const b2Transform& xfB); -- }; -- -- #endif end impact.d2.Contact.polygon_circle;
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- S Y S T E M . P A C K _ 0 6 -- -- -- -- B o d y -- -- -- -- Copyright (C) 1992-2020, Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 3, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. -- -- -- -- As a special exception under Section 7 of GPL version 3, you are granted -- -- additional permissions described in the GCC Runtime Library Exception, -- -- version 3.1, as published by the Free Software Foundation. -- -- -- -- You should have received a copy of the GNU General Public License and -- -- a copy of the GCC Runtime Library Exception along with this program; -- -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see -- -- <http://www.gnu.org/licenses/>. -- -- -- -- GNAT was originally developed by the GNAT team at New York University. -- -- Extensive contributions were provided by Ada Core Technologies Inc. -- -- -- ------------------------------------------------------------------------------ with System.Storage_Elements; with System.Unsigned_Types; package body System.Pack_06 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_06; end record; for Cluster use record E0 at 0 range 0 * Bits .. 0 * Bits + Bits - 1; E1 at 0 range 1 * Bits .. 1 * Bits + Bits - 1; E2 at 0 range 2 * Bits .. 2 * Bits + Bits - 1; E3 at 0 range 3 * Bits .. 3 * Bits + Bits - 1; E4 at 0 range 4 * Bits .. 4 * Bits + Bits - 1; E5 at 0 range 5 * Bits .. 5 * Bits + Bits - 1; E6 at 0 range 6 * Bits .. 6 * Bits + Bits - 1; E7 at 0 range 7 * Bits .. 7 * Bits + Bits - 1; end record; for Cluster'Size use Bits * 8; for Cluster'Alignment use Integer'Min (Standard'Maximum_Alignment, 1 + 1 * Boolean'Pos (Bits mod 2 = 0) + 2 * Boolean'Pos (Bits mod 4 = 0)); -- Use maximum possible alignment, given the bit field size, since this -- will result in the most efficient code possible for the field. type Cluster_Ref is access Cluster; type Rev_Cluster is new Cluster with Bit_Order => Reverse_Bit_Order, Scalar_Storage_Order => Reverse_Bit_Order; type Rev_Cluster_Ref is access Rev_Cluster; -- The following declarations are for the case where the address -- passed to GetU_06 or SetU_06 is not guaranteed to be aligned. -- These routines are used when the packed array is itself a -- component of a packed record, and therefore may not be aligned. type ClusterU is new Cluster; for ClusterU'Alignment use 1; type ClusterU_Ref is access ClusterU; type Rev_ClusterU is new ClusterU with Bit_Order => Reverse_Bit_Order, Scalar_Storage_Order => Reverse_Bit_Order; type Rev_ClusterU_Ref is access Rev_ClusterU; ------------ -- Get_06 -- ------------ function Get_06 (Arr : System.Address; N : Natural; Rev_SSO : Boolean) return Bits_06 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_06; ------------- -- GetU_06 -- ------------- function GetU_06 (Arr : System.Address; N : Natural; Rev_SSO : Boolean) return Bits_06 is A : constant System.Address := Arr + Bits * Ofs (Uns (N) / 8); C : ClusterU_Ref with Address => A'Address, Import; RC : Rev_ClusterU_Ref with Address => A'Address, Import; begin if Rev_SSO then case N07 (Uns (N) mod 8) is when 0 => return RC.E0; when 1 => return RC.E1; when 2 => return RC.E2; when 3 => return RC.E3; when 4 => return RC.E4; when 5 => return RC.E5; when 6 => return RC.E6; when 7 => return RC.E7; end case; else case N07 (Uns (N) mod 8) is when 0 => return C.E0; when 1 => return C.E1; when 2 => return C.E2; when 3 => return C.E3; when 4 => return C.E4; when 5 => return C.E5; when 6 => return C.E6; when 7 => return C.E7; end case; end if; end GetU_06; ------------ -- Set_06 -- ------------ procedure Set_06 (Arr : System.Address; N : Natural; E : Bits_06; 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_06; ------------- -- SetU_06 -- ------------- procedure SetU_06 (Arr : System.Address; N : Natural; E : Bits_06; Rev_SSO : Boolean) is A : constant System.Address := Arr + Bits * Ofs (Uns (N) / 8); C : ClusterU_Ref with Address => A'Address, Import; RC : Rev_ClusterU_Ref with Address => A'Address, Import; begin if Rev_SSO then case N07 (Uns (N) mod 8) is when 0 => RC.E0 := E; when 1 => RC.E1 := E; when 2 => RC.E2 := E; when 3 => RC.E3 := E; when 4 => RC.E4 := E; when 5 => RC.E5 := E; when 6 => RC.E6 := E; when 7 => RC.E7 := E; end case; else case N07 (Uns (N) mod 8) is when 0 => C.E0 := E; when 1 => C.E1 := E; when 2 => C.E2 := E; when 3 => C.E3 := E; when 4 => C.E4 := E; when 5 => C.E5 := E; when 6 => C.E6 := E; when 7 => C.E7 := E; end case; end if; end SetU_06; end System.Pack_06;
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- S Y S T E M . F A T _ F L T -- -- -- -- S p e c -- -- -- -- Copyright (C) 1992-2005 Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 2, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License -- -- for more details. You should have received a copy of the GNU General -- -- Public License distributed with GNAT; see file COPYING. If not, write -- -- to the Free Software Foundation, 51 Franklin Street, Fifth Floor, -- -- Boston, MA 02110-1301, USA. -- -- -- -- -- -- -- -- -- -- -- GNAT was originally developed by the GNAT team at New York University. -- -- Extensive contributions were provided by Ada Core Technologies Inc. -- -- -- ------------------------------------------------------------------------------ -- This package contains an instantiation of the floating-point attribute -- runtime routines for the type Float. with System.Fat_Gen; package System.Fat_Flt is pragma Pure; -- Note the only entity from this package that is acccessed by Rtsfind -- is the name of the package instantiation. Entities within this package -- (i.e. the individual floating-point attribute routines) are accessed -- by name using selected notation. package Attr_Float is new System.Fat_Gen (Float); end System.Fat_Flt;
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2017, AdaCore -- -- -- -- Redistribution and use in source and binary forms, with or without -- -- modification, are permitted provided that the following conditions are -- -- met: -- -- 1. Redistributions of source code must retain the above copyright -- -- notice, this list of conditions and the following disclaimer. -- -- 2. Redistributions in binary form must reproduce the above copyright -- -- notice, this list of conditions and the following disclaimer in -- -- the documentation and/or other materials provided with the -- -- distribution. -- -- 3. Neither the name of the copyright holder nor the names of its -- -- contributors may be used to endorse or promote products derived -- -- from this software without specific prior written permission. -- -- -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- -- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -- -- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -- -- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -- -- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -- -- LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -- -- DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -- -- THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -- -- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -- -- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- -- -- ------------------------------------------------------------------------------ with FE310.GPIO; use FE310.GPIO; with FE310.UART; use FE310.UART; with FE310_SVD; package FE310.Device is P00 : aliased GPIO_Point (Pin => 00); P01 : aliased GPIO_Point (Pin => 01); P02 : aliased GPIO_Point (Pin => 02); P03 : aliased GPIO_Point (Pin => 03); P04 : aliased GPIO_Point (Pin => 04); P05 : aliased GPIO_Point (Pin => 05); P06 : aliased GPIO_Point (Pin => 06); P07 : aliased GPIO_Point (Pin => 07); P08 : aliased GPIO_Point (Pin => 08); P09 : aliased GPIO_Point (Pin => 09); P10 : aliased GPIO_Point (Pin => 10); P11 : aliased GPIO_Point (Pin => 11); P12 : aliased GPIO_Point (Pin => 12); P13 : aliased GPIO_Point (Pin => 13); P14 : aliased GPIO_Point (Pin => 14); P15 : aliased GPIO_Point (Pin => 15); P16 : aliased GPIO_Point (Pin => 16); P17 : aliased GPIO_Point (Pin => 17); P18 : aliased GPIO_Point (Pin => 18); P19 : aliased GPIO_Point (Pin => 19); P20 : aliased GPIO_Point (Pin => 20); P21 : aliased GPIO_Point (Pin => 21); P22 : aliased GPIO_Point (Pin => 22); P23 : aliased GPIO_Point (Pin => 23); P24 : aliased GPIO_Point (Pin => 24); P25 : aliased GPIO_Point (Pin => 25); P26 : aliased GPIO_Point (Pin => 26); P27 : aliased GPIO_Point (Pin => 27); P28 : aliased GPIO_Point (Pin => 28); P29 : aliased GPIO_Point (Pin => 29); P30 : aliased GPIO_Point (Pin => 30); P31 : aliased GPIO_Point (Pin => 31); IOF_UART0 : constant IO_Function := IOF0; IOF_UART1 : constant IO_Function := IOF0; IOF_QSPI1 : constant IO_Function := IOF0; IOF_QSPI2 : constant IO_Function := IOF0; IOF_PWM0 : constant IO_Function := IOF1; IOF_PWM1 : constant IO_Function := IOF1; IOF_PWM2 : constant IO_Function := IOF1; Internal_UART0 : aliased Internal_UART with Import, Volatile, Address => FE310_SVD.UART0_Base; Internal_UART1 : aliased Internal_UART with Import, Volatile, Address => FE310_SVD.UART1_Base; UART0 : aliased UART_Port (Internal_UART0'Access); UART1 : aliased UART_Port (Internal_UART1'Access); end FE310.Device;
-- Abstract : -- -- External process parser for gpr mode -- -- Copyright (C) 2017 - 2019 Free Software Foundation, Inc. -- -- This program 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 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 -- distributed with this program; see file COPYING. If not, write to -- the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, -- MA 02110-1335, USA. pragma License (GPL); with Gen_Emacs_Wisi_LR_Parse; with Gpr_Process_Actions; with Gpr_Process_Main; with Wisi.Gpr; procedure Gpr_Mode_Wisi_Parse is new Gen_Emacs_Wisi_LR_Parse (Parse_Data_Type => Wisi.Gpr.Parse_Data_Type, Language_Protocol_Version => Wisi.Gpr.Language_Protocol_Version, Name => "gpr_mode_wisi_parse", Descriptor => Gpr_Process_Actions.Descriptor, Partial_Parse_Active => Gpr_Process_Actions.Partial_Parse_Active, Language_Fixes => null, Language_Matching_Begin_Tokens => null, Language_String_ID_Set => null, Create_Parser => Gpr_Process_Main.Create_Parser);
------------------------------------------------------------------------------ -- -- -- Unicode Utilities -- -- -- -- General Category Query Utility -- -- -- -- ------------------------------------------------------------------------ -- -- -- -- Copyright (C) 2019, ANNEXI-STRAYLINE Trans-Human Ltd. -- -- All rights reserved. -- -- -- -- Original Contributors: -- -- * Richard Wai (ANNEXI-STRAYLINE) -- -- -- -- Redistribution and use in source and binary forms, with or without -- -- modification, are permitted provided that the following conditions are -- -- met: -- -- -- -- * Redistributions of source code must retain the above copyright -- -- notice, this list of conditions and the following disclaimer. -- -- -- -- * Redistributions in binary form must reproduce the above copyright -- -- notice, this list of conditions and the following disclaimer in -- -- the documentation and/or other materials provided with the -- -- distribution. -- -- -- -- * Neither the name of the copyright holder nor the names of its -- -- contributors may be used to endorse or promote products derived -- -- from this software without specific prior written permission. -- -- -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- -- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A -- -- PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -- -- OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -- -- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -- -- LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -- -- DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -- -- THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -- -- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -- -- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- -- -- ------------------------------------------------------------------------------ -- Generated: 2019-08-13 -- UnicodeData.txt source: -- https://www.unicode.org/Public/UCD/latest/ucd/UnicodeData.txt -- ********** THIS FILE IS AUTOMATICALLY GENERATED ********* -- -- - See Unicode.UCD.Generate_General_Category_Body - -- -- UnicodeData.txt Load Statistics -- -- LETTER_UPPERCASE (Lu) = 1788 -- LETTER_LOWERCASE (Ll) = 2151 -- LETTER_TITLECASE (Lt) = 31 -- LETTER_MODIFIER (Lm) = 259 -- LETTER_OTHER (Lo) = 121414 -- MARK_NONSPACING (Mn) = 1826 -- MARK_SPACING_COMBINING (Mc) = 429 -- MARK_ENCLOSING (Me) = 13 -- NUMBER_DECIMAL_DIGIT (Nd) = 630 -- NUMBER_LETTER (Nl) = 236 -- NUMBER_OTHER (No) = 888 -- PUNCTUATION_CONNECTOR (Pc) = 10 -- PUNCTUATION_DASH (Pd) = 24 -- PUNCTUATION_OPEN (Ps) = 75 -- PUNCTUATION_CLOSE (Pe) = 73 -- PUNCTUATION_INITIAL_QUOTE (Pi) = 12 -- PUNCTUATION_FINAL_QUOTE (Pf) = 10 -- PUNCTUATION_OTHER (Po) = 588 -- SYMBOL_MATH (Sm) = 948 -- SYMBOL_CURRENCY (Sc) = 62 -- SYMBOL_MODIFIER (Sk) = 121 -- SYMBOL_OTHER (So) = 6161 -- SEPARATOR_SPACE (Zs) = 17 -- SEPARATOR_LINE (Zl) = 1 -- SEPARATOR_PARAGRAPH (Zp) = 1 -- OTHER_CONTROL (Cc) = 65 -- OTHER_FORMAT (Cf) = 161 -- OTHER_SURROGATE (Cs) = 2048 -- OTHER_PRIVATE_USE (Co) = 137468 -- OTHER_NOT_ASSIGNED (Cn) = 836602 ---------------------------------------------- -- Grand Total = 1114112 -- -- Sanity Checks -- -- [PASS] Grand total = 16#110000# (U+000000 .. U+10FFFF) -- [PASS] Total loaded ( 277510 ) = Hash table totals excluding Cn ( 277510 ) package body Unicode.General_Category is type Codepoint is mod 2**24; function Plane_00_Lookup (C: Codepoint) return General_Category_Type is (case C is when 16#000000# .. 16#00001F# => OTHER_CONTROL, when 16#000020# => SEPARATOR_SPACE, when 16#000021# .. 16#000023# => PUNCTUATION_OTHER, when 16#000024# => SYMBOL_CURRENCY, when 16#000025# .. 16#000027# => PUNCTUATION_OTHER, when 16#000028# => PUNCTUATION_OPEN, when 16#000029# => PUNCTUATION_CLOSE, when 16#00002A# => PUNCTUATION_OTHER, when 16#00002B# => SYMBOL_MATH, when 16#00002C# => PUNCTUATION_OTHER, when 16#00002D# => PUNCTUATION_DASH, when 16#00002E# .. 16#00002F# => PUNCTUATION_OTHER, when 16#000030# .. 16#000039# => NUMBER_DECIMAL_DIGIT, when 16#00003A# .. 16#00003B# => PUNCTUATION_OTHER, when 16#00003C# .. 16#00003E# => SYMBOL_MATH, when 16#00003F# .. 16#000040# => PUNCTUATION_OTHER, when 16#000041# .. 16#00005A# => LETTER_UPPERCASE, when 16#00005B# => PUNCTUATION_OPEN, when 16#00005C# => PUNCTUATION_OTHER, when 16#00005D# => PUNCTUATION_CLOSE, when 16#00005E# => SYMBOL_MODIFIER, when 16#00005F# => PUNCTUATION_CONNECTOR, when 16#000060# => SYMBOL_MODIFIER, when 16#000061# .. 16#00007A# => LETTER_LOWERCASE, when 16#00007B# => PUNCTUATION_OPEN, when 16#00007C# => SYMBOL_MATH, when 16#00007D# => PUNCTUATION_CLOSE, when 16#00007E# => SYMBOL_MATH, when 16#00007F# .. 16#00009F# => OTHER_CONTROL, when 16#0000A0# => SEPARATOR_SPACE, when 16#0000A1# => PUNCTUATION_OTHER, when 16#0000A2# .. 16#0000A5# => SYMBOL_CURRENCY, when 16#0000A6# => SYMBOL_OTHER, when 16#0000A7# => PUNCTUATION_OTHER, when 16#0000A8# => SYMBOL_MODIFIER, when 16#0000A9# => SYMBOL_OTHER, when 16#0000AA# => LETTER_OTHER, when 16#0000AB# => PUNCTUATION_INITIAL_QUOTE, when 16#0000AC# => SYMBOL_MATH, when 16#0000AD# => OTHER_FORMAT, when 16#0000AE# => SYMBOL_OTHER, when 16#0000AF# => SYMBOL_MODIFIER, when 16#0000B0# => SYMBOL_OTHER, when 16#0000B1# => SYMBOL_MATH, when 16#0000B2# .. 16#0000B3# => NUMBER_OTHER, when 16#0000B4# => SYMBOL_MODIFIER, when 16#0000B5# => LETTER_LOWERCASE, when 16#0000B6# .. 16#0000B7# => PUNCTUATION_OTHER, when 16#0000B8# => SYMBOL_MODIFIER, when 16#0000B9# => NUMBER_OTHER, when 16#0000BA# => LETTER_OTHER, when 16#0000BB# => PUNCTUATION_FINAL_QUOTE, when 16#0000BC# .. 16#0000BE# => NUMBER_OTHER, when 16#0000BF# => PUNCTUATION_OTHER, when 16#0000C0# .. 16#0000D6# => LETTER_UPPERCASE, when 16#0000D7# => SYMBOL_MATH, when 16#0000D8# .. 16#0000DE# => LETTER_UPPERCASE, when 16#0000DF# .. 16#0000F6# => LETTER_LOWERCASE, when 16#0000F7# => SYMBOL_MATH, when 16#0000F8# .. 16#0000FF# => LETTER_LOWERCASE, when 16#000100# => LETTER_UPPERCASE, when 16#000101# => LETTER_LOWERCASE, when 16#000102# => LETTER_UPPERCASE, when 16#000103# => LETTER_LOWERCASE, when 16#000104# => LETTER_UPPERCASE, when 16#000105# => LETTER_LOWERCASE, when 16#000106# => LETTER_UPPERCASE, when 16#000107# => LETTER_LOWERCASE, when 16#000108# => LETTER_UPPERCASE, when 16#000109# => LETTER_LOWERCASE, when 16#00010A# => LETTER_UPPERCASE, when 16#00010B# => LETTER_LOWERCASE, when 16#00010C# => LETTER_UPPERCASE, when 16#00010D# => LETTER_LOWERCASE, when 16#00010E# => LETTER_UPPERCASE, when 16#00010F# => LETTER_LOWERCASE, when 16#000110# => LETTER_UPPERCASE, when 16#000111# => LETTER_LOWERCASE, when 16#000112# => LETTER_UPPERCASE, when 16#000113# => LETTER_LOWERCASE, when 16#000114# => LETTER_UPPERCASE, when 16#000115# => LETTER_LOWERCASE, when 16#000116# => LETTER_UPPERCASE, when 16#000117# => LETTER_LOWERCASE, when 16#000118# => LETTER_UPPERCASE, when 16#000119# => LETTER_LOWERCASE, when 16#00011A# => LETTER_UPPERCASE, when 16#00011B# => LETTER_LOWERCASE, when 16#00011C# => LETTER_UPPERCASE, when 16#00011D# => LETTER_LOWERCASE, when 16#00011E# => LETTER_UPPERCASE, when 16#00011F# => LETTER_LOWERCASE, when 16#000120# => LETTER_UPPERCASE, when 16#000121# => LETTER_LOWERCASE, when 16#000122# => LETTER_UPPERCASE, when 16#000123# => LETTER_LOWERCASE, when 16#000124# => LETTER_UPPERCASE, when 16#000125# => LETTER_LOWERCASE, when 16#000126# => LETTER_UPPERCASE, when 16#000127# => LETTER_LOWERCASE, when 16#000128# => LETTER_UPPERCASE, when 16#000129# => LETTER_LOWERCASE, when 16#00012A# => LETTER_UPPERCASE, when 16#00012B# => LETTER_LOWERCASE, when 16#00012C# => LETTER_UPPERCASE, when 16#00012D# => LETTER_LOWERCASE, when 16#00012E# => LETTER_UPPERCASE, when 16#00012F# => LETTER_LOWERCASE, when 16#000130# => LETTER_UPPERCASE, when 16#000131# => LETTER_LOWERCASE, when 16#000132# => LETTER_UPPERCASE, when 16#000133# => LETTER_LOWERCASE, when 16#000134# => LETTER_UPPERCASE, when 16#000135# => LETTER_LOWERCASE, when 16#000136# => LETTER_UPPERCASE, when 16#000137# .. 16#000138# => LETTER_LOWERCASE, when 16#000139# => LETTER_UPPERCASE, when 16#00013A# => LETTER_LOWERCASE, when 16#00013B# => LETTER_UPPERCASE, when 16#00013C# => LETTER_LOWERCASE, when 16#00013D# => LETTER_UPPERCASE, when 16#00013E# => LETTER_LOWERCASE, when 16#00013F# => LETTER_UPPERCASE, when 16#000140# => LETTER_LOWERCASE, when 16#000141# => LETTER_UPPERCASE, when 16#000142# => LETTER_LOWERCASE, when 16#000143# => LETTER_UPPERCASE, when 16#000144# => LETTER_LOWERCASE, when 16#000145# => LETTER_UPPERCASE, when 16#000146# => LETTER_LOWERCASE, when 16#000147# => LETTER_UPPERCASE, when 16#000148# .. 16#000149# => LETTER_LOWERCASE, when 16#00014A# => LETTER_UPPERCASE, when 16#00014B# => LETTER_LOWERCASE, when 16#00014C# => LETTER_UPPERCASE, when 16#00014D# => LETTER_LOWERCASE, when 16#00014E# => LETTER_UPPERCASE, when 16#00014F# => LETTER_LOWERCASE, when 16#000150# => LETTER_UPPERCASE, when 16#000151# => LETTER_LOWERCASE, when 16#000152# => LETTER_UPPERCASE, when 16#000153# => LETTER_LOWERCASE, when 16#000154# => LETTER_UPPERCASE, when 16#000155# => LETTER_LOWERCASE, when 16#000156# => LETTER_UPPERCASE, when 16#000157# => LETTER_LOWERCASE, when 16#000158# => LETTER_UPPERCASE, when 16#000159# => LETTER_LOWERCASE, when 16#00015A# => LETTER_UPPERCASE, when 16#00015B# => LETTER_LOWERCASE, when 16#00015C# => LETTER_UPPERCASE, when 16#00015D# => LETTER_LOWERCASE, when 16#00015E# => LETTER_UPPERCASE, when 16#00015F# => LETTER_LOWERCASE, when 16#000160# => LETTER_UPPERCASE, when 16#000161# => LETTER_LOWERCASE, when 16#000162# => LETTER_UPPERCASE, when 16#000163# => LETTER_LOWERCASE, when 16#000164# => LETTER_UPPERCASE, when 16#000165# => LETTER_LOWERCASE, when 16#000166# => LETTER_UPPERCASE, when 16#000167# => LETTER_LOWERCASE, when 16#000168# => LETTER_UPPERCASE, when 16#000169# => LETTER_LOWERCASE, when 16#00016A# => LETTER_UPPERCASE, when 16#00016B# => LETTER_LOWERCASE, when 16#00016C# => LETTER_UPPERCASE, when 16#00016D# => LETTER_LOWERCASE, when 16#00016E# => LETTER_UPPERCASE, when 16#00016F# => LETTER_LOWERCASE, when 16#000170# => LETTER_UPPERCASE, when 16#000171# => LETTER_LOWERCASE, when 16#000172# => LETTER_UPPERCASE, when 16#000173# => LETTER_LOWERCASE, when 16#000174# => LETTER_UPPERCASE, when 16#000175# => LETTER_LOWERCASE, when 16#000176# => LETTER_UPPERCASE, when 16#000177# => LETTER_LOWERCASE, when 16#000178# .. 16#000179# => LETTER_UPPERCASE, when 16#00017A# => LETTER_LOWERCASE, when 16#00017B# => LETTER_UPPERCASE, when 16#00017C# => LETTER_LOWERCASE, when 16#00017D# => LETTER_UPPERCASE, when 16#00017E# .. 16#000180# => LETTER_LOWERCASE, when 16#000181# .. 16#000182# => LETTER_UPPERCASE, when 16#000183# => LETTER_LOWERCASE, when 16#000184# => LETTER_UPPERCASE, when 16#000185# => LETTER_LOWERCASE, when 16#000186# .. 16#000187# => LETTER_UPPERCASE, when 16#000188# => LETTER_LOWERCASE, when 16#000189# .. 16#00018B# => LETTER_UPPERCASE, when 16#00018C# .. 16#00018D# => LETTER_LOWERCASE, when 16#00018E# .. 16#000191# => LETTER_UPPERCASE, when 16#000192# => LETTER_LOWERCASE, when 16#000193# .. 16#000194# => LETTER_UPPERCASE, when 16#000195# => LETTER_LOWERCASE, when 16#000196# .. 16#000198# => LETTER_UPPERCASE, when 16#000199# .. 16#00019B# => LETTER_LOWERCASE, when 16#00019C# .. 16#00019D# => LETTER_UPPERCASE, when 16#00019E# => LETTER_LOWERCASE, when 16#00019F# .. 16#0001A0# => LETTER_UPPERCASE, when 16#0001A1# => LETTER_LOWERCASE, when 16#0001A2# => LETTER_UPPERCASE, when 16#0001A3# => LETTER_LOWERCASE, when 16#0001A4# => LETTER_UPPERCASE, when 16#0001A5# => LETTER_LOWERCASE, when 16#0001A6# .. 16#0001A7# => LETTER_UPPERCASE, when 16#0001A8# => LETTER_LOWERCASE, when 16#0001A9# => LETTER_UPPERCASE, when 16#0001AA# .. 16#0001AB# => LETTER_LOWERCASE, when 16#0001AC# => LETTER_UPPERCASE, when 16#0001AD# => LETTER_LOWERCASE, when 16#0001AE# .. 16#0001AF# => LETTER_UPPERCASE, when 16#0001B0# => LETTER_LOWERCASE, when 16#0001B1# .. 16#0001B3# => LETTER_UPPERCASE, when 16#0001B4# => LETTER_LOWERCASE, when 16#0001B5# => LETTER_UPPERCASE, when 16#0001B6# => LETTER_LOWERCASE, when 16#0001B7# .. 16#0001B8# => LETTER_UPPERCASE, when 16#0001B9# .. 16#0001BA# => LETTER_LOWERCASE, when 16#0001BB# => LETTER_OTHER, when 16#0001BC# => LETTER_UPPERCASE, when 16#0001BD# .. 16#0001BF# => LETTER_LOWERCASE, when 16#0001C0# .. 16#0001C3# => LETTER_OTHER, when 16#0001C4# => LETTER_UPPERCASE, when 16#0001C5# => LETTER_TITLECASE, when 16#0001C6# => LETTER_LOWERCASE, when 16#0001C7# => LETTER_UPPERCASE, when 16#0001C8# => LETTER_TITLECASE, when 16#0001C9# => LETTER_LOWERCASE, when 16#0001CA# => LETTER_UPPERCASE, when 16#0001CB# => LETTER_TITLECASE, when 16#0001CC# => LETTER_LOWERCASE, when 16#0001CD# => LETTER_UPPERCASE, when 16#0001CE# => LETTER_LOWERCASE, when 16#0001CF# => LETTER_UPPERCASE, when 16#0001D0# => LETTER_LOWERCASE, when 16#0001D1# => LETTER_UPPERCASE, when 16#0001D2# => LETTER_LOWERCASE, when 16#0001D3# => LETTER_UPPERCASE, when 16#0001D4# => LETTER_LOWERCASE, when 16#0001D5# => LETTER_UPPERCASE, when 16#0001D6# => LETTER_LOWERCASE, when 16#0001D7# => LETTER_UPPERCASE, when 16#0001D8# => LETTER_LOWERCASE, when 16#0001D9# => LETTER_UPPERCASE, when 16#0001DA# => LETTER_LOWERCASE, when 16#0001DB# => LETTER_UPPERCASE, when 16#0001DC# .. 16#0001DD# => LETTER_LOWERCASE, when 16#0001DE# => LETTER_UPPERCASE, when 16#0001DF# => LETTER_LOWERCASE, when 16#0001E0# => LETTER_UPPERCASE, when 16#0001E1# => LETTER_LOWERCASE, when 16#0001E2# => LETTER_UPPERCASE, when 16#0001E3# => LETTER_LOWERCASE, when 16#0001E4# => LETTER_UPPERCASE, when 16#0001E5# => LETTER_LOWERCASE, when 16#0001E6# => LETTER_UPPERCASE, when 16#0001E7# => LETTER_LOWERCASE, when 16#0001E8# => LETTER_UPPERCASE, when 16#0001E9# => LETTER_LOWERCASE, when 16#0001EA# => LETTER_UPPERCASE, when 16#0001EB# => LETTER_LOWERCASE, when 16#0001EC# => LETTER_UPPERCASE, when 16#0001ED# => LETTER_LOWERCASE, when 16#0001EE# => LETTER_UPPERCASE, when 16#0001EF# .. 16#0001F0# => LETTER_LOWERCASE, when 16#0001F1# => LETTER_UPPERCASE, when 16#0001F2# => LETTER_TITLECASE, when 16#0001F3# => LETTER_LOWERCASE, when 16#0001F4# => LETTER_UPPERCASE, when 16#0001F5# => LETTER_LOWERCASE, when 16#0001F6# .. 16#0001F8# => LETTER_UPPERCASE, when 16#0001F9# => LETTER_LOWERCASE, when 16#0001FA# => LETTER_UPPERCASE, when 16#0001FB# => LETTER_LOWERCASE, when 16#0001FC# => LETTER_UPPERCASE, when 16#0001FD# => LETTER_LOWERCASE, when 16#0001FE# => LETTER_UPPERCASE, when 16#0001FF# => LETTER_LOWERCASE, when 16#000200# => LETTER_UPPERCASE, when 16#000201# => LETTER_LOWERCASE, when 16#000202# => LETTER_UPPERCASE, when 16#000203# => LETTER_LOWERCASE, when 16#000204# => LETTER_UPPERCASE, when 16#000205# => LETTER_LOWERCASE, when 16#000206# => LETTER_UPPERCASE, when 16#000207# => LETTER_LOWERCASE, when 16#000208# => LETTER_UPPERCASE, when 16#000209# => LETTER_LOWERCASE, when 16#00020A# => LETTER_UPPERCASE, when 16#00020B# => LETTER_LOWERCASE, when 16#00020C# => LETTER_UPPERCASE, when 16#00020D# => LETTER_LOWERCASE, when 16#00020E# => LETTER_UPPERCASE, when 16#00020F# => LETTER_LOWERCASE, when 16#000210# => LETTER_UPPERCASE, when 16#000211# => LETTER_LOWERCASE, when 16#000212# => LETTER_UPPERCASE, when 16#000213# => LETTER_LOWERCASE, when 16#000214# => LETTER_UPPERCASE, when 16#000215# => LETTER_LOWERCASE, when 16#000216# => LETTER_UPPERCASE, when 16#000217# => LETTER_LOWERCASE, when 16#000218# => LETTER_UPPERCASE, when 16#000219# => LETTER_LOWERCASE, when 16#00021A# => LETTER_UPPERCASE, when 16#00021B# => LETTER_LOWERCASE, when 16#00021C# => LETTER_UPPERCASE, when 16#00021D# => LETTER_LOWERCASE, when 16#00021E# => LETTER_UPPERCASE, when 16#00021F# => LETTER_LOWERCASE, when 16#000220# => LETTER_UPPERCASE, when 16#000221# => LETTER_LOWERCASE, when 16#000222# => LETTER_UPPERCASE, when 16#000223# => LETTER_LOWERCASE, when 16#000224# => LETTER_UPPERCASE, when 16#000225# => LETTER_LOWERCASE, when 16#000226# => LETTER_UPPERCASE, when 16#000227# => LETTER_LOWERCASE, when 16#000228# => LETTER_UPPERCASE, when 16#000229# => LETTER_LOWERCASE, when 16#00022A# => LETTER_UPPERCASE, when 16#00022B# => LETTER_LOWERCASE, when 16#00022C# => LETTER_UPPERCASE, when 16#00022D# => LETTER_LOWERCASE, when 16#00022E# => LETTER_UPPERCASE, when 16#00022F# => LETTER_LOWERCASE, when 16#000230# => LETTER_UPPERCASE, when 16#000231# => LETTER_LOWERCASE, when 16#000232# => LETTER_UPPERCASE, when 16#000233# .. 16#000239# => LETTER_LOWERCASE, when 16#00023A# .. 16#00023B# => LETTER_UPPERCASE, when 16#00023C# => LETTER_LOWERCASE, when 16#00023D# .. 16#00023E# => LETTER_UPPERCASE, when 16#00023F# .. 16#000240# => LETTER_LOWERCASE, when 16#000241# => LETTER_UPPERCASE, when 16#000242# => LETTER_LOWERCASE, when 16#000243# .. 16#000246# => LETTER_UPPERCASE, when 16#000247# => LETTER_LOWERCASE, when 16#000248# => LETTER_UPPERCASE, when 16#000249# => LETTER_LOWERCASE, when 16#00024A# => LETTER_UPPERCASE, when 16#00024B# => LETTER_LOWERCASE, when 16#00024C# => LETTER_UPPERCASE, when 16#00024D# => LETTER_LOWERCASE, when 16#00024E# => LETTER_UPPERCASE, when 16#00024F# .. 16#000293# => LETTER_LOWERCASE, when 16#000294# => LETTER_OTHER, when 16#000295# .. 16#0002AF# => LETTER_LOWERCASE, when 16#0002B0# .. 16#0002C1# => LETTER_MODIFIER, when 16#0002C2# .. 16#0002C5# => SYMBOL_MODIFIER, when 16#0002C6# .. 16#0002D1# => LETTER_MODIFIER, when 16#0002D2# .. 16#0002DF# => SYMBOL_MODIFIER, when 16#0002E0# .. 16#0002E4# => LETTER_MODIFIER, when 16#0002E5# .. 16#0002EB# => SYMBOL_MODIFIER, when 16#0002EC# => LETTER_MODIFIER, when 16#0002ED# => SYMBOL_MODIFIER, when 16#0002EE# => LETTER_MODIFIER, when 16#0002EF# .. 16#0002FF# => SYMBOL_MODIFIER, when 16#000300# .. 16#00036F# => MARK_NONSPACING, when 16#000370# => LETTER_UPPERCASE, when 16#000371# => LETTER_LOWERCASE, when 16#000372# => LETTER_UPPERCASE, when 16#000373# => LETTER_LOWERCASE, when 16#000374# => LETTER_MODIFIER, when 16#000375# => SYMBOL_MODIFIER, when 16#000376# => LETTER_UPPERCASE, when 16#000377# => LETTER_LOWERCASE, when 16#00037A# => LETTER_MODIFIER, when 16#00037B# .. 16#00037D# => LETTER_LOWERCASE, when 16#00037E# => PUNCTUATION_OTHER, when 16#00037F# => LETTER_UPPERCASE, when 16#000384# .. 16#000385# => SYMBOL_MODIFIER, when 16#000386# => LETTER_UPPERCASE, when 16#000387# => PUNCTUATION_OTHER, when 16#000388# .. 16#00038A# => LETTER_UPPERCASE, when 16#00038C# => LETTER_UPPERCASE, when 16#00038E# .. 16#00038F# => LETTER_UPPERCASE, when 16#000390# => LETTER_LOWERCASE, when 16#000391# .. 16#0003A1# => LETTER_UPPERCASE, when 16#0003A3# .. 16#0003AB# => LETTER_UPPERCASE, when 16#0003AC# .. 16#0003CE# => LETTER_LOWERCASE, when 16#0003CF# => LETTER_UPPERCASE, when 16#0003D0# .. 16#0003D1# => LETTER_LOWERCASE, when 16#0003D2# .. 16#0003D4# => LETTER_UPPERCASE, when 16#0003D5# .. 16#0003D7# => LETTER_LOWERCASE, when 16#0003D8# => LETTER_UPPERCASE, when 16#0003D9# => LETTER_LOWERCASE, when 16#0003DA# => LETTER_UPPERCASE, when 16#0003DB# => LETTER_LOWERCASE, when 16#0003DC# => LETTER_UPPERCASE, when 16#0003DD# => LETTER_LOWERCASE, when 16#0003DE# => LETTER_UPPERCASE, when 16#0003DF# => LETTER_LOWERCASE, when 16#0003E0# => LETTER_UPPERCASE, when 16#0003E1# => LETTER_LOWERCASE, when 16#0003E2# => LETTER_UPPERCASE, when 16#0003E3# => LETTER_LOWERCASE, when 16#0003E4# => LETTER_UPPERCASE, when 16#0003E5# => LETTER_LOWERCASE, when 16#0003E6# => LETTER_UPPERCASE, when 16#0003E7# => LETTER_LOWERCASE, when 16#0003E8# => LETTER_UPPERCASE, when 16#0003E9# => LETTER_LOWERCASE, when 16#0003EA# => LETTER_UPPERCASE, when 16#0003EB# => LETTER_LOWERCASE, when 16#0003EC# => LETTER_UPPERCASE, when 16#0003ED# => LETTER_LOWERCASE, when 16#0003EE# => LETTER_UPPERCASE, when 16#0003EF# .. 16#0003F3# => LETTER_LOWERCASE, when 16#0003F4# => LETTER_UPPERCASE, when 16#0003F5# => LETTER_LOWERCASE, when 16#0003F6# => SYMBOL_MATH, when 16#0003F7# => LETTER_UPPERCASE, when 16#0003F8# => LETTER_LOWERCASE, when 16#0003F9# .. 16#0003FA# => LETTER_UPPERCASE, when 16#0003FB# .. 16#0003FC# => LETTER_LOWERCASE, when 16#0003FD# .. 16#00042F# => LETTER_UPPERCASE, when 16#000430# .. 16#00045F# => LETTER_LOWERCASE, when 16#000460# => LETTER_UPPERCASE, when 16#000461# => LETTER_LOWERCASE, when 16#000462# => LETTER_UPPERCASE, when 16#000463# => LETTER_LOWERCASE, when 16#000464# => LETTER_UPPERCASE, when 16#000465# => LETTER_LOWERCASE, when 16#000466# => LETTER_UPPERCASE, when 16#000467# => LETTER_LOWERCASE, when 16#000468# => LETTER_UPPERCASE, when 16#000469# => LETTER_LOWERCASE, when 16#00046A# => LETTER_UPPERCASE, when 16#00046B# => LETTER_LOWERCASE, when 16#00046C# => LETTER_UPPERCASE, when 16#00046D# => LETTER_LOWERCASE, when 16#00046E# => LETTER_UPPERCASE, when 16#00046F# => LETTER_LOWERCASE, when 16#000470# => LETTER_UPPERCASE, when 16#000471# => LETTER_LOWERCASE, when 16#000472# => LETTER_UPPERCASE, when 16#000473# => LETTER_LOWERCASE, when 16#000474# => LETTER_UPPERCASE, when 16#000475# => LETTER_LOWERCASE, when 16#000476# => LETTER_UPPERCASE, when 16#000477# => LETTER_LOWERCASE, when 16#000478# => LETTER_UPPERCASE, when 16#000479# => LETTER_LOWERCASE, when 16#00047A# => LETTER_UPPERCASE, when 16#00047B# => LETTER_LOWERCASE, when 16#00047C# => LETTER_UPPERCASE, when 16#00047D# => LETTER_LOWERCASE, when 16#00047E# => LETTER_UPPERCASE, when 16#00047F# => LETTER_LOWERCASE, when 16#000480# => LETTER_UPPERCASE, when 16#000481# => LETTER_LOWERCASE, when 16#000482# => SYMBOL_OTHER, when 16#000483# .. 16#000487# => MARK_NONSPACING, when 16#000488# .. 16#000489# => MARK_ENCLOSING, when 16#00048A# => LETTER_UPPERCASE, when 16#00048B# => LETTER_LOWERCASE, when 16#00048C# => LETTER_UPPERCASE, when 16#00048D# => LETTER_LOWERCASE, when 16#00048E# => LETTER_UPPERCASE, when 16#00048F# => LETTER_LOWERCASE, when 16#000490# => LETTER_UPPERCASE, when 16#000491# => LETTER_LOWERCASE, when 16#000492# => LETTER_UPPERCASE, when 16#000493# => LETTER_LOWERCASE, when 16#000494# => LETTER_UPPERCASE, when 16#000495# => LETTER_LOWERCASE, when 16#000496# => LETTER_UPPERCASE, when 16#000497# => LETTER_LOWERCASE, when 16#000498# => LETTER_UPPERCASE, when 16#000499# => LETTER_LOWERCASE, when 16#00049A# => LETTER_UPPERCASE, when 16#00049B# => LETTER_LOWERCASE, when 16#00049C# => LETTER_UPPERCASE, when 16#00049D# => LETTER_LOWERCASE, when 16#00049E# => LETTER_UPPERCASE, when 16#00049F# => LETTER_LOWERCASE, when 16#0004A0# => LETTER_UPPERCASE, when 16#0004A1# => LETTER_LOWERCASE, when 16#0004A2# => LETTER_UPPERCASE, when 16#0004A3# => LETTER_LOWERCASE, when 16#0004A4# => LETTER_UPPERCASE, when 16#0004A5# => LETTER_LOWERCASE, when 16#0004A6# => LETTER_UPPERCASE, when 16#0004A7# => LETTER_LOWERCASE, when 16#0004A8# => LETTER_UPPERCASE, when 16#0004A9# => LETTER_LOWERCASE, when 16#0004AA# => LETTER_UPPERCASE, when 16#0004AB# => LETTER_LOWERCASE, when 16#0004AC# => LETTER_UPPERCASE, when 16#0004AD# => LETTER_LOWERCASE, when 16#0004AE# => LETTER_UPPERCASE, when 16#0004AF# => LETTER_LOWERCASE, when 16#0004B0# => LETTER_UPPERCASE, when 16#0004B1# => LETTER_LOWERCASE, when 16#0004B2# => LETTER_UPPERCASE, when 16#0004B3# => LETTER_LOWERCASE, when 16#0004B4# => LETTER_UPPERCASE, when 16#0004B5# => LETTER_LOWERCASE, when 16#0004B6# => LETTER_UPPERCASE, when 16#0004B7# => LETTER_LOWERCASE, when 16#0004B8# => LETTER_UPPERCASE, when 16#0004B9# => LETTER_LOWERCASE, when 16#0004BA# => LETTER_UPPERCASE, when 16#0004BB# => LETTER_LOWERCASE, when 16#0004BC# => LETTER_UPPERCASE, when 16#0004BD# => LETTER_LOWERCASE, when 16#0004BE# => LETTER_UPPERCASE, when 16#0004BF# => LETTER_LOWERCASE, when 16#0004C0# .. 16#0004C1# => LETTER_UPPERCASE, when 16#0004C2# => LETTER_LOWERCASE, when 16#0004C3# => LETTER_UPPERCASE, when 16#0004C4# => LETTER_LOWERCASE, when 16#0004C5# => LETTER_UPPERCASE, when 16#0004C6# => LETTER_LOWERCASE, when 16#0004C7# => LETTER_UPPERCASE, when 16#0004C8# => LETTER_LOWERCASE, when 16#0004C9# => LETTER_UPPERCASE, when 16#0004CA# => LETTER_LOWERCASE, when 16#0004CB# => LETTER_UPPERCASE, when 16#0004CC# => LETTER_LOWERCASE, when 16#0004CD# => LETTER_UPPERCASE, when 16#0004CE# .. 16#0004CF# => LETTER_LOWERCASE, when 16#0004D0# => LETTER_UPPERCASE, when 16#0004D1# => LETTER_LOWERCASE, when 16#0004D2# => LETTER_UPPERCASE, when 16#0004D3# => LETTER_LOWERCASE, when 16#0004D4# => LETTER_UPPERCASE, when 16#0004D5# => LETTER_LOWERCASE, when 16#0004D6# => LETTER_UPPERCASE, when 16#0004D7# => LETTER_LOWERCASE, when 16#0004D8# => LETTER_UPPERCASE, when 16#0004D9# => LETTER_LOWERCASE, when 16#0004DA# => LETTER_UPPERCASE, when 16#0004DB# => LETTER_LOWERCASE, when 16#0004DC# => LETTER_UPPERCASE, when 16#0004DD# => LETTER_LOWERCASE, when 16#0004DE# => LETTER_UPPERCASE, when 16#0004DF# => LETTER_LOWERCASE, when 16#0004E0# => LETTER_UPPERCASE, when 16#0004E1# => LETTER_LOWERCASE, when 16#0004E2# => LETTER_UPPERCASE, when 16#0004E3# => LETTER_LOWERCASE, when 16#0004E4# => LETTER_UPPERCASE, when 16#0004E5# => LETTER_LOWERCASE, when 16#0004E6# => LETTER_UPPERCASE, when 16#0004E7# => LETTER_LOWERCASE, when 16#0004E8# => LETTER_UPPERCASE, when 16#0004E9# => LETTER_LOWERCASE, when 16#0004EA# => LETTER_UPPERCASE, when 16#0004EB# => LETTER_LOWERCASE, when 16#0004EC# => LETTER_UPPERCASE, when 16#0004ED# => LETTER_LOWERCASE, when 16#0004EE# => LETTER_UPPERCASE, when 16#0004EF# => LETTER_LOWERCASE, when 16#0004F0# => LETTER_UPPERCASE, when 16#0004F1# => LETTER_LOWERCASE, when 16#0004F2# => LETTER_UPPERCASE, when 16#0004F3# => LETTER_LOWERCASE, when 16#0004F4# => LETTER_UPPERCASE, when 16#0004F5# => LETTER_LOWERCASE, when 16#0004F6# => LETTER_UPPERCASE, when 16#0004F7# => LETTER_LOWERCASE, when 16#0004F8# => LETTER_UPPERCASE, when 16#0004F9# => LETTER_LOWERCASE, when 16#0004FA# => LETTER_UPPERCASE, when 16#0004FB# => LETTER_LOWERCASE, when 16#0004FC# => LETTER_UPPERCASE, when 16#0004FD# => LETTER_LOWERCASE, when 16#0004FE# => LETTER_UPPERCASE, when 16#0004FF# => LETTER_LOWERCASE, when 16#000500# => LETTER_UPPERCASE, when 16#000501# => LETTER_LOWERCASE, when 16#000502# => LETTER_UPPERCASE, when 16#000503# => LETTER_LOWERCASE, when 16#000504# => LETTER_UPPERCASE, when 16#000505# => LETTER_LOWERCASE, when 16#000506# => LETTER_UPPERCASE, when 16#000507# => LETTER_LOWERCASE, when 16#000508# => LETTER_UPPERCASE, when 16#000509# => LETTER_LOWERCASE, when 16#00050A# => LETTER_UPPERCASE, when 16#00050B# => LETTER_LOWERCASE, when 16#00050C# => LETTER_UPPERCASE, when 16#00050D# => LETTER_LOWERCASE, when 16#00050E# => LETTER_UPPERCASE, when 16#00050F# => LETTER_LOWERCASE, when 16#000510# => LETTER_UPPERCASE, when 16#000511# => LETTER_LOWERCASE, when 16#000512# => LETTER_UPPERCASE, when 16#000513# => LETTER_LOWERCASE, when 16#000514# => LETTER_UPPERCASE, when 16#000515# => LETTER_LOWERCASE, when 16#000516# => LETTER_UPPERCASE, when 16#000517# => LETTER_LOWERCASE, when 16#000518# => LETTER_UPPERCASE, when 16#000519# => LETTER_LOWERCASE, when 16#00051A# => LETTER_UPPERCASE, when 16#00051B# => LETTER_LOWERCASE, when 16#00051C# => LETTER_UPPERCASE, when 16#00051D# => LETTER_LOWERCASE, when 16#00051E# => LETTER_UPPERCASE, when 16#00051F# => LETTER_LOWERCASE, when 16#000520# => LETTER_UPPERCASE, when 16#000521# => LETTER_LOWERCASE, when 16#000522# => LETTER_UPPERCASE, when 16#000523# => LETTER_LOWERCASE, when 16#000524# => LETTER_UPPERCASE, when 16#000525# => LETTER_LOWERCASE, when 16#000526# => LETTER_UPPERCASE, when 16#000527# => LETTER_LOWERCASE, when 16#000528# => LETTER_UPPERCASE, when 16#000529# => LETTER_LOWERCASE, when 16#00052A# => LETTER_UPPERCASE, when 16#00052B# => LETTER_LOWERCASE, when 16#00052C# => LETTER_UPPERCASE, when 16#00052D# => LETTER_LOWERCASE, when 16#00052E# => LETTER_UPPERCASE, when 16#00052F# => LETTER_LOWERCASE, when 16#000531# .. 16#000556# => LETTER_UPPERCASE, when 16#000559# => LETTER_MODIFIER, when 16#00055A# .. 16#00055F# => PUNCTUATION_OTHER, when 16#000560# .. 16#000588# => LETTER_LOWERCASE, when 16#000589# => PUNCTUATION_OTHER, when 16#00058A# => PUNCTUATION_DASH, when 16#00058D# .. 16#00058E# => SYMBOL_OTHER, when 16#00058F# => SYMBOL_CURRENCY, when 16#000591# .. 16#0005BD# => MARK_NONSPACING, when 16#0005BE# => PUNCTUATION_DASH, when 16#0005BF# => MARK_NONSPACING, when 16#0005C0# => PUNCTUATION_OTHER, when 16#0005C1# .. 16#0005C2# => MARK_NONSPACING, when 16#0005C3# => PUNCTUATION_OTHER, when 16#0005C4# .. 16#0005C5# => MARK_NONSPACING, when 16#0005C6# => PUNCTUATION_OTHER, when 16#0005C7# => MARK_NONSPACING, when 16#0005D0# .. 16#0005EA# => LETTER_OTHER, when 16#0005EF# .. 16#0005F2# => LETTER_OTHER, when 16#0005F3# .. 16#0005F4# => PUNCTUATION_OTHER, when 16#000600# .. 16#000605# => OTHER_FORMAT, when 16#000606# .. 16#000608# => SYMBOL_MATH, when 16#000609# .. 16#00060A# => PUNCTUATION_OTHER, when 16#00060B# => SYMBOL_CURRENCY, when 16#00060C# .. 16#00060D# => PUNCTUATION_OTHER, when 16#00060E# .. 16#00060F# => SYMBOL_OTHER, when 16#000610# .. 16#00061A# => MARK_NONSPACING, when 16#00061B# => PUNCTUATION_OTHER, when 16#00061C# => OTHER_FORMAT, when 16#00061E# .. 16#00061F# => PUNCTUATION_OTHER, when 16#000620# .. 16#00063F# => LETTER_OTHER, when 16#000640# => LETTER_MODIFIER, when 16#000641# .. 16#00064A# => LETTER_OTHER, when 16#00064B# .. 16#00065F# => MARK_NONSPACING, when 16#000660# .. 16#000669# => NUMBER_DECIMAL_DIGIT, when 16#00066A# .. 16#00066D# => PUNCTUATION_OTHER, when 16#00066E# .. 16#00066F# => LETTER_OTHER, when 16#000670# => MARK_NONSPACING, when 16#000671# .. 16#0006D3# => LETTER_OTHER, when 16#0006D4# => PUNCTUATION_OTHER, when 16#0006D5# => LETTER_OTHER, when 16#0006D6# .. 16#0006DC# => MARK_NONSPACING, when 16#0006DD# => OTHER_FORMAT, when 16#0006DE# => SYMBOL_OTHER, when 16#0006DF# .. 16#0006E4# => MARK_NONSPACING, when 16#0006E5# .. 16#0006E6# => LETTER_MODIFIER, when 16#0006E7# .. 16#0006E8# => MARK_NONSPACING, when 16#0006E9# => SYMBOL_OTHER, when 16#0006EA# .. 16#0006ED# => MARK_NONSPACING, when 16#0006EE# .. 16#0006EF# => LETTER_OTHER, when 16#0006F0# .. 16#0006F9# => NUMBER_DECIMAL_DIGIT, when 16#0006FA# .. 16#0006FC# => LETTER_OTHER, when 16#0006FD# .. 16#0006FE# => SYMBOL_OTHER, when 16#0006FF# => LETTER_OTHER, when 16#000700# .. 16#00070D# => PUNCTUATION_OTHER, when 16#00070F# => OTHER_FORMAT, when 16#000710# => LETTER_OTHER, when 16#000711# => MARK_NONSPACING, when 16#000712# .. 16#00072F# => LETTER_OTHER, when 16#000730# .. 16#00074A# => MARK_NONSPACING, when 16#00074D# .. 16#0007A5# => LETTER_OTHER, when 16#0007A6# .. 16#0007B0# => MARK_NONSPACING, when 16#0007B1# => LETTER_OTHER, when 16#0007C0# .. 16#0007C9# => NUMBER_DECIMAL_DIGIT, when 16#0007CA# .. 16#0007EA# => LETTER_OTHER, when 16#0007EB# .. 16#0007F3# => MARK_NONSPACING, when 16#0007F4# .. 16#0007F5# => LETTER_MODIFIER, when 16#0007F6# => SYMBOL_OTHER, when 16#0007F7# .. 16#0007F9# => PUNCTUATION_OTHER, when 16#0007FA# => LETTER_MODIFIER, when 16#0007FD# => MARK_NONSPACING, when 16#0007FE# .. 16#0007FF# => SYMBOL_CURRENCY, when 16#000800# .. 16#000815# => LETTER_OTHER, when 16#000816# .. 16#000819# => MARK_NONSPACING, when 16#00081A# => LETTER_MODIFIER, when 16#00081B# .. 16#000823# => MARK_NONSPACING, when 16#000824# => LETTER_MODIFIER, when 16#000825# .. 16#000827# => MARK_NONSPACING, when 16#000828# => LETTER_MODIFIER, when 16#000829# .. 16#00082D# => MARK_NONSPACING, when 16#000830# .. 16#00083E# => PUNCTUATION_OTHER, when 16#000840# .. 16#000858# => LETTER_OTHER, when 16#000859# .. 16#00085B# => MARK_NONSPACING, when 16#00085E# => PUNCTUATION_OTHER, when 16#000860# .. 16#00086A# => LETTER_OTHER, when 16#0008A0# .. 16#0008B4# => LETTER_OTHER, when 16#0008B6# .. 16#0008BD# => LETTER_OTHER, when 16#0008D3# .. 16#0008E1# => MARK_NONSPACING, when 16#0008E2# => OTHER_FORMAT, when 16#0008E3# .. 16#000902# => MARK_NONSPACING, when 16#000903# => MARK_SPACING_COMBINING, when 16#000904# .. 16#000939# => LETTER_OTHER, when 16#00093A# => MARK_NONSPACING, when 16#00093B# => MARK_SPACING_COMBINING, when 16#00093C# => MARK_NONSPACING, when 16#00093D# => LETTER_OTHER, when 16#00093E# .. 16#000940# => MARK_SPACING_COMBINING, when 16#000941# .. 16#000948# => MARK_NONSPACING, when 16#000949# .. 16#00094C# => MARK_SPACING_COMBINING, when 16#00094D# => MARK_NONSPACING, when 16#00094E# .. 16#00094F# => MARK_SPACING_COMBINING, when 16#000950# => LETTER_OTHER, when 16#000951# .. 16#000957# => MARK_NONSPACING, when 16#000958# .. 16#000961# => LETTER_OTHER, when 16#000962# .. 16#000963# => MARK_NONSPACING, when 16#000964# .. 16#000965# => PUNCTUATION_OTHER, when 16#000966# .. 16#00096F# => NUMBER_DECIMAL_DIGIT, when 16#000970# => PUNCTUATION_OTHER, when 16#000971# => LETTER_MODIFIER, when 16#000972# .. 16#000980# => LETTER_OTHER, when 16#000981# => MARK_NONSPACING, when 16#000982# .. 16#000983# => MARK_SPACING_COMBINING, when 16#000985# .. 16#00098C# => LETTER_OTHER, when 16#00098F# .. 16#000990# => LETTER_OTHER, when 16#000993# .. 16#0009A8# => LETTER_OTHER, when 16#0009AA# .. 16#0009B0# => LETTER_OTHER, when 16#0009B2# => LETTER_OTHER, when 16#0009B6# .. 16#0009B9# => LETTER_OTHER, when 16#0009BC# => MARK_NONSPACING, when 16#0009BD# => LETTER_OTHER, when 16#0009BE# .. 16#0009C0# => MARK_SPACING_COMBINING, when 16#0009C1# .. 16#0009C4# => MARK_NONSPACING, when 16#0009C7# .. 16#0009C8# => MARK_SPACING_COMBINING, when 16#0009CB# .. 16#0009CC# => MARK_SPACING_COMBINING, when 16#0009CD# => MARK_NONSPACING, when 16#0009CE# => LETTER_OTHER, when 16#0009D7# => MARK_SPACING_COMBINING, when 16#0009DC# .. 16#0009DD# => LETTER_OTHER, when 16#0009DF# .. 16#0009E1# => LETTER_OTHER, when 16#0009E2# .. 16#0009E3# => MARK_NONSPACING, when 16#0009E6# .. 16#0009EF# => NUMBER_DECIMAL_DIGIT, when 16#0009F0# .. 16#0009F1# => LETTER_OTHER, when 16#0009F2# .. 16#0009F3# => SYMBOL_CURRENCY, when 16#0009F4# .. 16#0009F9# => NUMBER_OTHER, when 16#0009FA# => SYMBOL_OTHER, when 16#0009FB# => SYMBOL_CURRENCY, when 16#0009FC# => LETTER_OTHER, when 16#0009FD# => PUNCTUATION_OTHER, when 16#0009FE# => MARK_NONSPACING, when 16#000A01# .. 16#000A02# => MARK_NONSPACING, when 16#000A03# => MARK_SPACING_COMBINING, when 16#000A05# .. 16#000A0A# => LETTER_OTHER, when 16#000A0F# .. 16#000A10# => LETTER_OTHER, when 16#000A13# .. 16#000A28# => LETTER_OTHER, when 16#000A2A# .. 16#000A30# => LETTER_OTHER, when 16#000A32# .. 16#000A33# => LETTER_OTHER, when 16#000A35# .. 16#000A36# => LETTER_OTHER, when 16#000A38# .. 16#000A39# => LETTER_OTHER, when 16#000A3C# => MARK_NONSPACING, when 16#000A3E# .. 16#000A40# => MARK_SPACING_COMBINING, when 16#000A41# .. 16#000A42# => MARK_NONSPACING, when 16#000A47# .. 16#000A48# => MARK_NONSPACING, when 16#000A4B# .. 16#000A4D# => MARK_NONSPACING, when 16#000A51# => MARK_NONSPACING, when 16#000A59# .. 16#000A5C# => LETTER_OTHER, when 16#000A5E# => LETTER_OTHER, when 16#000A66# .. 16#000A6F# => NUMBER_DECIMAL_DIGIT, when 16#000A70# .. 16#000A71# => MARK_NONSPACING, when 16#000A72# .. 16#000A74# => LETTER_OTHER, when 16#000A75# => MARK_NONSPACING, when 16#000A76# => PUNCTUATION_OTHER, when 16#000A81# .. 16#000A82# => MARK_NONSPACING, when 16#000A83# => MARK_SPACING_COMBINING, when 16#000A85# .. 16#000A8D# => LETTER_OTHER, when 16#000A8F# .. 16#000A91# => LETTER_OTHER, when 16#000A93# .. 16#000AA8# => LETTER_OTHER, when 16#000AAA# .. 16#000AB0# => LETTER_OTHER, when 16#000AB2# .. 16#000AB3# => LETTER_OTHER, when 16#000AB5# .. 16#000AB9# => LETTER_OTHER, when 16#000ABC# => MARK_NONSPACING, when 16#000ABD# => LETTER_OTHER, when 16#000ABE# .. 16#000AC0# => MARK_SPACING_COMBINING, when 16#000AC1# .. 16#000AC5# => MARK_NONSPACING, when 16#000AC7# .. 16#000AC8# => MARK_NONSPACING, when 16#000AC9# => MARK_SPACING_COMBINING, when 16#000ACB# .. 16#000ACC# => MARK_SPACING_COMBINING, when 16#000ACD# => MARK_NONSPACING, when 16#000AD0# => LETTER_OTHER, when 16#000AE0# .. 16#000AE1# => LETTER_OTHER, when 16#000AE2# .. 16#000AE3# => MARK_NONSPACING, when 16#000AE6# .. 16#000AEF# => NUMBER_DECIMAL_DIGIT, when 16#000AF0# => PUNCTUATION_OTHER, when 16#000AF1# => SYMBOL_CURRENCY, when 16#000AF9# => LETTER_OTHER, when 16#000AFA# .. 16#000AFF# => MARK_NONSPACING, when 16#000B01# => MARK_NONSPACING, when 16#000B02# .. 16#000B03# => MARK_SPACING_COMBINING, when 16#000B05# .. 16#000B0C# => LETTER_OTHER, when 16#000B0F# .. 16#000B10# => LETTER_OTHER, when 16#000B13# .. 16#000B28# => LETTER_OTHER, when 16#000B2A# .. 16#000B30# => LETTER_OTHER, when 16#000B32# .. 16#000B33# => LETTER_OTHER, when 16#000B35# .. 16#000B39# => LETTER_OTHER, when 16#000B3C# => MARK_NONSPACING, when 16#000B3D# => LETTER_OTHER, when 16#000B3E# => MARK_SPACING_COMBINING, when 16#000B3F# => MARK_NONSPACING, when 16#000B40# => MARK_SPACING_COMBINING, when 16#000B41# .. 16#000B44# => MARK_NONSPACING, when 16#000B47# .. 16#000B48# => MARK_SPACING_COMBINING, when 16#000B4B# .. 16#000B4C# => MARK_SPACING_COMBINING, when 16#000B4D# => MARK_NONSPACING, when 16#000B56# => MARK_NONSPACING, when 16#000B57# => MARK_SPACING_COMBINING, when 16#000B5C# .. 16#000B5D# => LETTER_OTHER, when 16#000B5F# .. 16#000B61# => LETTER_OTHER, when 16#000B62# .. 16#000B63# => MARK_NONSPACING, when 16#000B66# .. 16#000B6F# => NUMBER_DECIMAL_DIGIT, when 16#000B70# => SYMBOL_OTHER, when 16#000B71# => LETTER_OTHER, when 16#000B72# .. 16#000B77# => NUMBER_OTHER, when 16#000B82# => MARK_NONSPACING, when 16#000B83# => LETTER_OTHER, when 16#000B85# .. 16#000B8A# => LETTER_OTHER, when 16#000B8E# .. 16#000B90# => LETTER_OTHER, when 16#000B92# .. 16#000B95# => LETTER_OTHER, when 16#000B99# .. 16#000B9A# => LETTER_OTHER, when 16#000B9C# => LETTER_OTHER, when 16#000B9E# .. 16#000B9F# => LETTER_OTHER, when 16#000BA3# .. 16#000BA4# => LETTER_OTHER, when 16#000BA8# .. 16#000BAA# => LETTER_OTHER, when 16#000BAE# .. 16#000BB9# => LETTER_OTHER, when 16#000BBE# .. 16#000BBF# => MARK_SPACING_COMBINING, when 16#000BC0# => MARK_NONSPACING, when 16#000BC1# .. 16#000BC2# => MARK_SPACING_COMBINING, when 16#000BC6# .. 16#000BC8# => MARK_SPACING_COMBINING, when 16#000BCA# .. 16#000BCC# => MARK_SPACING_COMBINING, when 16#000BCD# => MARK_NONSPACING, when 16#000BD0# => LETTER_OTHER, when 16#000BD7# => MARK_SPACING_COMBINING, when 16#000BE6# .. 16#000BEF# => NUMBER_DECIMAL_DIGIT, when 16#000BF0# .. 16#000BF2# => NUMBER_OTHER, when 16#000BF3# .. 16#000BF8# => SYMBOL_OTHER, when 16#000BF9# => SYMBOL_CURRENCY, when 16#000BFA# => SYMBOL_OTHER, when 16#000C00# => MARK_NONSPACING, when 16#000C01# .. 16#000C03# => MARK_SPACING_COMBINING, when 16#000C04# => MARK_NONSPACING, when 16#000C05# .. 16#000C0C# => LETTER_OTHER, when 16#000C0E# .. 16#000C10# => LETTER_OTHER, when 16#000C12# .. 16#000C28# => LETTER_OTHER, when 16#000C2A# .. 16#000C39# => LETTER_OTHER, when 16#000C3D# => LETTER_OTHER, when 16#000C3E# .. 16#000C40# => MARK_NONSPACING, when 16#000C41# .. 16#000C44# => MARK_SPACING_COMBINING, when 16#000C46# .. 16#000C48# => MARK_NONSPACING, when 16#000C4A# .. 16#000C4D# => MARK_NONSPACING, when 16#000C55# .. 16#000C56# => MARK_NONSPACING, when 16#000C58# .. 16#000C5A# => LETTER_OTHER, when 16#000C60# .. 16#000C61# => LETTER_OTHER, when 16#000C62# .. 16#000C63# => MARK_NONSPACING, when 16#000C66# .. 16#000C6F# => NUMBER_DECIMAL_DIGIT, when 16#000C77# => PUNCTUATION_OTHER, when 16#000C78# .. 16#000C7E# => NUMBER_OTHER, when 16#000C7F# => SYMBOL_OTHER, when 16#000C80# => LETTER_OTHER, when 16#000C81# => MARK_NONSPACING, when 16#000C82# .. 16#000C83# => MARK_SPACING_COMBINING, when 16#000C84# => PUNCTUATION_OTHER, when 16#000C85# .. 16#000C8C# => LETTER_OTHER, when 16#000C8E# .. 16#000C90# => LETTER_OTHER, when 16#000C92# .. 16#000CA8# => LETTER_OTHER, when 16#000CAA# .. 16#000CB3# => LETTER_OTHER, when 16#000CB5# .. 16#000CB9# => LETTER_OTHER, when 16#000CBC# => MARK_NONSPACING, when 16#000CBD# => LETTER_OTHER, when 16#000CBE# => MARK_SPACING_COMBINING, when 16#000CBF# => MARK_NONSPACING, when 16#000CC0# .. 16#000CC4# => MARK_SPACING_COMBINING, when 16#000CC6# => MARK_NONSPACING, when 16#000CC7# .. 16#000CC8# => MARK_SPACING_COMBINING, when 16#000CCA# .. 16#000CCB# => MARK_SPACING_COMBINING, when 16#000CCC# .. 16#000CCD# => MARK_NONSPACING, when 16#000CD5# .. 16#000CD6# => MARK_SPACING_COMBINING, when 16#000CDE# => LETTER_OTHER, when 16#000CE0# .. 16#000CE1# => LETTER_OTHER, when 16#000CE2# .. 16#000CE3# => MARK_NONSPACING, when 16#000CE6# .. 16#000CEF# => NUMBER_DECIMAL_DIGIT, when 16#000CF1# .. 16#000CF2# => LETTER_OTHER, when 16#000D00# .. 16#000D01# => MARK_NONSPACING, when 16#000D02# .. 16#000D03# => MARK_SPACING_COMBINING, when 16#000D05# .. 16#000D0C# => LETTER_OTHER, when 16#000D0E# .. 16#000D10# => LETTER_OTHER, when 16#000D12# .. 16#000D3A# => LETTER_OTHER, when 16#000D3B# .. 16#000D3C# => MARK_NONSPACING, when 16#000D3D# => LETTER_OTHER, when 16#000D3E# .. 16#000D40# => MARK_SPACING_COMBINING, when 16#000D41# .. 16#000D44# => MARK_NONSPACING, when 16#000D46# .. 16#000D48# => MARK_SPACING_COMBINING, when 16#000D4A# .. 16#000D4C# => MARK_SPACING_COMBINING, when 16#000D4D# => MARK_NONSPACING, when 16#000D4E# => LETTER_OTHER, when 16#000D4F# => SYMBOL_OTHER, when 16#000D54# .. 16#000D56# => LETTER_OTHER, when 16#000D57# => MARK_SPACING_COMBINING, when 16#000D58# .. 16#000D5E# => NUMBER_OTHER, when 16#000D5F# .. 16#000D61# => LETTER_OTHER, when 16#000D62# .. 16#000D63# => MARK_NONSPACING, when 16#000D66# .. 16#000D6F# => NUMBER_DECIMAL_DIGIT, when 16#000D70# .. 16#000D78# => NUMBER_OTHER, when 16#000D79# => SYMBOL_OTHER, when 16#000D7A# .. 16#000D7F# => LETTER_OTHER, when 16#000D82# .. 16#000D83# => MARK_SPACING_COMBINING, when 16#000D85# .. 16#000D96# => LETTER_OTHER, when 16#000D9A# .. 16#000DB1# => LETTER_OTHER, when 16#000DB3# .. 16#000DBB# => LETTER_OTHER, when 16#000DBD# => LETTER_OTHER, when 16#000DC0# .. 16#000DC6# => LETTER_OTHER, when 16#000DCA# => MARK_NONSPACING, when 16#000DCF# .. 16#000DD1# => MARK_SPACING_COMBINING, when 16#000DD2# .. 16#000DD4# => MARK_NONSPACING, when 16#000DD6# => MARK_NONSPACING, when 16#000DD8# .. 16#000DDF# => MARK_SPACING_COMBINING, when 16#000DE6# .. 16#000DEF# => NUMBER_DECIMAL_DIGIT, when 16#000DF2# .. 16#000DF3# => MARK_SPACING_COMBINING, when 16#000DF4# => PUNCTUATION_OTHER, when 16#000E01# .. 16#000E30# => LETTER_OTHER, when 16#000E31# => MARK_NONSPACING, when 16#000E32# .. 16#000E33# => LETTER_OTHER, when 16#000E34# .. 16#000E3A# => MARK_NONSPACING, when 16#000E3F# => SYMBOL_CURRENCY, when 16#000E40# .. 16#000E45# => LETTER_OTHER, when 16#000E46# => LETTER_MODIFIER, when 16#000E47# .. 16#000E4E# => MARK_NONSPACING, when 16#000E4F# => PUNCTUATION_OTHER, when 16#000E50# .. 16#000E59# => NUMBER_DECIMAL_DIGIT, when 16#000E5A# .. 16#000E5B# => PUNCTUATION_OTHER, when 16#000E81# .. 16#000E82# => LETTER_OTHER, when 16#000E84# => LETTER_OTHER, when 16#000E86# .. 16#000E8A# => LETTER_OTHER, when 16#000E8C# .. 16#000EA3# => LETTER_OTHER, when 16#000EA5# => LETTER_OTHER, when 16#000EA7# .. 16#000EB0# => LETTER_OTHER, when 16#000EB1# => MARK_NONSPACING, when 16#000EB2# .. 16#000EB3# => LETTER_OTHER, when 16#000EB4# .. 16#000EBC# => MARK_NONSPACING, when 16#000EBD# => LETTER_OTHER, when 16#000EC0# .. 16#000EC4# => LETTER_OTHER, when 16#000EC6# => LETTER_MODIFIER, when 16#000EC8# .. 16#000ECD# => MARK_NONSPACING, when 16#000ED0# .. 16#000ED9# => NUMBER_DECIMAL_DIGIT, when 16#000EDC# .. 16#000EDF# => LETTER_OTHER, when 16#000F00# => LETTER_OTHER, when 16#000F01# .. 16#000F03# => SYMBOL_OTHER, when 16#000F04# .. 16#000F12# => PUNCTUATION_OTHER, when 16#000F13# => SYMBOL_OTHER, when 16#000F14# => PUNCTUATION_OTHER, when 16#000F15# .. 16#000F17# => SYMBOL_OTHER, when 16#000F18# .. 16#000F19# => MARK_NONSPACING, when 16#000F1A# .. 16#000F1F# => SYMBOL_OTHER, when 16#000F20# .. 16#000F29# => NUMBER_DECIMAL_DIGIT, when 16#000F2A# .. 16#000F33# => NUMBER_OTHER, when 16#000F34# => SYMBOL_OTHER, when 16#000F35# => MARK_NONSPACING, when 16#000F36# => SYMBOL_OTHER, when 16#000F37# => MARK_NONSPACING, when 16#000F38# => SYMBOL_OTHER, when 16#000F39# => MARK_NONSPACING, when 16#000F3A# => PUNCTUATION_OPEN, when 16#000F3B# => PUNCTUATION_CLOSE, when 16#000F3C# => PUNCTUATION_OPEN, when 16#000F3D# => PUNCTUATION_CLOSE, when 16#000F3E# .. 16#000F3F# => MARK_SPACING_COMBINING, when 16#000F40# .. 16#000F47# => LETTER_OTHER, when 16#000F49# .. 16#000F6C# => LETTER_OTHER, when 16#000F71# .. 16#000F7E# => MARK_NONSPACING, when 16#000F7F# => MARK_SPACING_COMBINING, when 16#000F80# .. 16#000F84# => MARK_NONSPACING, when 16#000F85# => PUNCTUATION_OTHER, when 16#000F86# .. 16#000F87# => MARK_NONSPACING, when 16#000F88# .. 16#000F8C# => LETTER_OTHER, when 16#000F8D# .. 16#000F97# => MARK_NONSPACING, when 16#000F99# .. 16#000FBC# => MARK_NONSPACING, when 16#000FBE# .. 16#000FC5# => SYMBOL_OTHER, when 16#000FC6# => MARK_NONSPACING, when 16#000FC7# .. 16#000FCC# => SYMBOL_OTHER, when 16#000FCE# .. 16#000FCF# => SYMBOL_OTHER, when 16#000FD0# .. 16#000FD4# => PUNCTUATION_OTHER, when 16#000FD5# .. 16#000FD8# => SYMBOL_OTHER, when 16#000FD9# .. 16#000FDA# => PUNCTUATION_OTHER, when 16#001000# .. 16#00102A# => LETTER_OTHER, when 16#00102B# .. 16#00102C# => MARK_SPACING_COMBINING, when 16#00102D# .. 16#001030# => MARK_NONSPACING, when 16#001031# => MARK_SPACING_COMBINING, when 16#001032# .. 16#001037# => MARK_NONSPACING, when 16#001038# => MARK_SPACING_COMBINING, when 16#001039# .. 16#00103A# => MARK_NONSPACING, when 16#00103B# .. 16#00103C# => MARK_SPACING_COMBINING, when 16#00103D# .. 16#00103E# => MARK_NONSPACING, when 16#00103F# => LETTER_OTHER, when 16#001040# .. 16#001049# => NUMBER_DECIMAL_DIGIT, when 16#00104A# .. 16#00104F# => PUNCTUATION_OTHER, when 16#001050# .. 16#001055# => LETTER_OTHER, when 16#001056# .. 16#001057# => MARK_SPACING_COMBINING, when 16#001058# .. 16#001059# => MARK_NONSPACING, when 16#00105A# .. 16#00105D# => LETTER_OTHER, when 16#00105E# .. 16#001060# => MARK_NONSPACING, when 16#001061# => LETTER_OTHER, when 16#001062# .. 16#001064# => MARK_SPACING_COMBINING, when 16#001065# .. 16#001066# => LETTER_OTHER, when 16#001067# .. 16#00106D# => MARK_SPACING_COMBINING, when 16#00106E# .. 16#001070# => LETTER_OTHER, when 16#001071# .. 16#001074# => MARK_NONSPACING, when 16#001075# .. 16#001081# => LETTER_OTHER, when 16#001082# => MARK_NONSPACING, when 16#001083# .. 16#001084# => MARK_SPACING_COMBINING, when 16#001085# .. 16#001086# => MARK_NONSPACING, when 16#001087# .. 16#00108C# => MARK_SPACING_COMBINING, when 16#00108D# => MARK_NONSPACING, when 16#00108E# => LETTER_OTHER, when 16#00108F# => MARK_SPACING_COMBINING, when 16#001090# .. 16#001099# => NUMBER_DECIMAL_DIGIT, when 16#00109A# .. 16#00109C# => MARK_SPACING_COMBINING, when 16#00109D# => MARK_NONSPACING, when 16#00109E# .. 16#00109F# => SYMBOL_OTHER, when 16#0010A0# .. 16#0010C5# => LETTER_UPPERCASE, when 16#0010C7# => LETTER_UPPERCASE, when 16#0010CD# => LETTER_UPPERCASE, when 16#0010D0# .. 16#0010FA# => LETTER_LOWERCASE, when 16#0010FB# => PUNCTUATION_OTHER, when 16#0010FC# => LETTER_MODIFIER, when 16#0010FD# .. 16#0010FF# => LETTER_LOWERCASE, when 16#001100# .. 16#001248# => LETTER_OTHER, when 16#00124A# .. 16#00124D# => LETTER_OTHER, when 16#001250# .. 16#001256# => LETTER_OTHER, when 16#001258# => LETTER_OTHER, when 16#00125A# .. 16#00125D# => LETTER_OTHER, when 16#001260# .. 16#001288# => LETTER_OTHER, when 16#00128A# .. 16#00128D# => LETTER_OTHER, when 16#001290# .. 16#0012B0# => LETTER_OTHER, when 16#0012B2# .. 16#0012B5# => LETTER_OTHER, when 16#0012B8# .. 16#0012BE# => LETTER_OTHER, when 16#0012C0# => LETTER_OTHER, when 16#0012C2# .. 16#0012C5# => LETTER_OTHER, when 16#0012C8# .. 16#0012D6# => LETTER_OTHER, when 16#0012D8# .. 16#001310# => LETTER_OTHER, when 16#001312# .. 16#001315# => LETTER_OTHER, when 16#001318# .. 16#00135A# => LETTER_OTHER, when 16#00135D# .. 16#00135F# => MARK_NONSPACING, when 16#001360# .. 16#001368# => PUNCTUATION_OTHER, when 16#001369# .. 16#00137C# => NUMBER_OTHER, when 16#001380# .. 16#00138F# => LETTER_OTHER, when 16#001390# .. 16#001399# => SYMBOL_OTHER, when 16#0013A0# .. 16#0013F5# => LETTER_UPPERCASE, when 16#0013F8# .. 16#0013FD# => LETTER_LOWERCASE, when 16#001400# => PUNCTUATION_DASH, when 16#001401# .. 16#00166C# => LETTER_OTHER, when 16#00166D# => SYMBOL_OTHER, when 16#00166E# => PUNCTUATION_OTHER, when 16#00166F# .. 16#00167F# => LETTER_OTHER, when 16#001680# => SEPARATOR_SPACE, when 16#001681# .. 16#00169A# => LETTER_OTHER, when 16#00169B# => PUNCTUATION_OPEN, when 16#00169C# => PUNCTUATION_CLOSE, when 16#0016A0# .. 16#0016EA# => LETTER_OTHER, when 16#0016EB# .. 16#0016ED# => PUNCTUATION_OTHER, when 16#0016EE# .. 16#0016F0# => NUMBER_LETTER, when 16#0016F1# .. 16#0016F8# => LETTER_OTHER, when 16#001700# .. 16#00170C# => LETTER_OTHER, when 16#00170E# .. 16#001711# => LETTER_OTHER, when 16#001712# .. 16#001714# => MARK_NONSPACING, when 16#001720# .. 16#001731# => LETTER_OTHER, when 16#001732# .. 16#001734# => MARK_NONSPACING, when 16#001735# .. 16#001736# => PUNCTUATION_OTHER, when 16#001740# .. 16#001751# => LETTER_OTHER, when 16#001752# .. 16#001753# => MARK_NONSPACING, when 16#001760# .. 16#00176C# => LETTER_OTHER, when 16#00176E# .. 16#001770# => LETTER_OTHER, when 16#001772# .. 16#001773# => MARK_NONSPACING, when 16#001780# .. 16#0017B3# => LETTER_OTHER, when 16#0017B4# .. 16#0017B5# => MARK_NONSPACING, when 16#0017B6# => MARK_SPACING_COMBINING, when 16#0017B7# .. 16#0017BD# => MARK_NONSPACING, when 16#0017BE# .. 16#0017C5# => MARK_SPACING_COMBINING, when 16#0017C6# => MARK_NONSPACING, when 16#0017C7# .. 16#0017C8# => MARK_SPACING_COMBINING, when 16#0017C9# .. 16#0017D3# => MARK_NONSPACING, when 16#0017D4# .. 16#0017D6# => PUNCTUATION_OTHER, when 16#0017D7# => LETTER_MODIFIER, when 16#0017D8# .. 16#0017DA# => PUNCTUATION_OTHER, when 16#0017DB# => SYMBOL_CURRENCY, when 16#0017DC# => LETTER_OTHER, when 16#0017DD# => MARK_NONSPACING, when 16#0017E0# .. 16#0017E9# => NUMBER_DECIMAL_DIGIT, when 16#0017F0# .. 16#0017F9# => NUMBER_OTHER, when 16#001800# .. 16#001805# => PUNCTUATION_OTHER, when 16#001806# => PUNCTUATION_DASH, when 16#001807# .. 16#00180A# => PUNCTUATION_OTHER, when 16#00180B# .. 16#00180D# => MARK_NONSPACING, when 16#00180E# => OTHER_FORMAT, when 16#001810# .. 16#001819# => NUMBER_DECIMAL_DIGIT, when 16#001820# .. 16#001842# => LETTER_OTHER, when 16#001843# => LETTER_MODIFIER, when 16#001844# .. 16#001878# => LETTER_OTHER, when 16#001880# .. 16#001884# => LETTER_OTHER, when 16#001885# .. 16#001886# => MARK_NONSPACING, when 16#001887# .. 16#0018A8# => LETTER_OTHER, when 16#0018A9# => MARK_NONSPACING, when 16#0018AA# => LETTER_OTHER, when 16#0018B0# .. 16#0018F5# => LETTER_OTHER, when 16#001900# .. 16#00191E# => LETTER_OTHER, when 16#001920# .. 16#001922# => MARK_NONSPACING, when 16#001923# .. 16#001926# => MARK_SPACING_COMBINING, when 16#001927# .. 16#001928# => MARK_NONSPACING, when 16#001929# .. 16#00192B# => MARK_SPACING_COMBINING, when 16#001930# .. 16#001931# => MARK_SPACING_COMBINING, when 16#001932# => MARK_NONSPACING, when 16#001933# .. 16#001938# => MARK_SPACING_COMBINING, when 16#001939# .. 16#00193B# => MARK_NONSPACING, when 16#001940# => SYMBOL_OTHER, when 16#001944# .. 16#001945# => PUNCTUATION_OTHER, when 16#001946# .. 16#00194F# => NUMBER_DECIMAL_DIGIT, when 16#001950# .. 16#00196D# => LETTER_OTHER, when 16#001970# .. 16#001974# => LETTER_OTHER, when 16#001980# .. 16#0019AB# => LETTER_OTHER, when 16#0019B0# .. 16#0019C9# => LETTER_OTHER, when 16#0019D0# .. 16#0019D9# => NUMBER_DECIMAL_DIGIT, when 16#0019DA# => NUMBER_OTHER, when 16#0019DE# .. 16#0019FF# => SYMBOL_OTHER, when 16#001A00# .. 16#001A16# => LETTER_OTHER, when 16#001A17# .. 16#001A18# => MARK_NONSPACING, when 16#001A19# .. 16#001A1A# => MARK_SPACING_COMBINING, when 16#001A1B# => MARK_NONSPACING, when 16#001A1E# .. 16#001A1F# => PUNCTUATION_OTHER, when 16#001A20# .. 16#001A54# => LETTER_OTHER, when 16#001A55# => MARK_SPACING_COMBINING, when 16#001A56# => MARK_NONSPACING, when 16#001A57# => MARK_SPACING_COMBINING, when 16#001A58# .. 16#001A5E# => MARK_NONSPACING, when 16#001A60# => MARK_NONSPACING, when 16#001A61# => MARK_SPACING_COMBINING, when 16#001A62# => MARK_NONSPACING, when 16#001A63# .. 16#001A64# => MARK_SPACING_COMBINING, when 16#001A65# .. 16#001A6C# => MARK_NONSPACING, when 16#001A6D# .. 16#001A72# => MARK_SPACING_COMBINING, when 16#001A73# .. 16#001A7C# => MARK_NONSPACING, when 16#001A7F# => MARK_NONSPACING, when 16#001A80# .. 16#001A89# => NUMBER_DECIMAL_DIGIT, when 16#001A90# .. 16#001A99# => NUMBER_DECIMAL_DIGIT, when 16#001AA0# .. 16#001AA6# => PUNCTUATION_OTHER, when 16#001AA7# => LETTER_MODIFIER, when 16#001AA8# .. 16#001AAD# => PUNCTUATION_OTHER, when 16#001AB0# .. 16#001ABD# => MARK_NONSPACING, when 16#001ABE# => MARK_ENCLOSING, when 16#001B00# .. 16#001B03# => MARK_NONSPACING, when 16#001B04# => MARK_SPACING_COMBINING, when 16#001B05# .. 16#001B33# => LETTER_OTHER, when 16#001B34# => MARK_NONSPACING, when 16#001B35# => MARK_SPACING_COMBINING, when 16#001B36# .. 16#001B3A# => MARK_NONSPACING, when 16#001B3B# => MARK_SPACING_COMBINING, when 16#001B3C# => MARK_NONSPACING, when 16#001B3D# .. 16#001B41# => MARK_SPACING_COMBINING, when 16#001B42# => MARK_NONSPACING, when 16#001B43# .. 16#001B44# => MARK_SPACING_COMBINING, when 16#001B45# .. 16#001B4B# => LETTER_OTHER, when 16#001B50# .. 16#001B59# => NUMBER_DECIMAL_DIGIT, when 16#001B5A# .. 16#001B60# => PUNCTUATION_OTHER, when 16#001B61# .. 16#001B6A# => SYMBOL_OTHER, when 16#001B6B# .. 16#001B73# => MARK_NONSPACING, when 16#001B74# .. 16#001B7C# => SYMBOL_OTHER, when 16#001B80# .. 16#001B81# => MARK_NONSPACING, when 16#001B82# => MARK_SPACING_COMBINING, when 16#001B83# .. 16#001BA0# => LETTER_OTHER, when 16#001BA1# => MARK_SPACING_COMBINING, when 16#001BA2# .. 16#001BA5# => MARK_NONSPACING, when 16#001BA6# .. 16#001BA7# => MARK_SPACING_COMBINING, when 16#001BA8# .. 16#001BA9# => MARK_NONSPACING, when 16#001BAA# => MARK_SPACING_COMBINING, when 16#001BAB# .. 16#001BAD# => MARK_NONSPACING, when 16#001BAE# .. 16#001BAF# => LETTER_OTHER, when 16#001BB0# .. 16#001BB9# => NUMBER_DECIMAL_DIGIT, when 16#001BBA# .. 16#001BE5# => LETTER_OTHER, when 16#001BE6# => MARK_NONSPACING, when 16#001BE7# => MARK_SPACING_COMBINING, when 16#001BE8# .. 16#001BE9# => MARK_NONSPACING, when 16#001BEA# .. 16#001BEC# => MARK_SPACING_COMBINING, when 16#001BED# => MARK_NONSPACING, when 16#001BEE# => MARK_SPACING_COMBINING, when 16#001BEF# .. 16#001BF1# => MARK_NONSPACING, when 16#001BF2# .. 16#001BF3# => MARK_SPACING_COMBINING, when 16#001BFC# .. 16#001BFF# => PUNCTUATION_OTHER, when 16#001C00# .. 16#001C23# => LETTER_OTHER, when 16#001C24# .. 16#001C2B# => MARK_SPACING_COMBINING, when 16#001C2C# .. 16#001C33# => MARK_NONSPACING, when 16#001C34# .. 16#001C35# => MARK_SPACING_COMBINING, when 16#001C36# .. 16#001C37# => MARK_NONSPACING, when 16#001C3B# .. 16#001C3F# => PUNCTUATION_OTHER, when 16#001C40# .. 16#001C49# => NUMBER_DECIMAL_DIGIT, when 16#001C4D# .. 16#001C4F# => LETTER_OTHER, when 16#001C50# .. 16#001C59# => NUMBER_DECIMAL_DIGIT, when 16#001C5A# .. 16#001C77# => LETTER_OTHER, when 16#001C78# .. 16#001C7D# => LETTER_MODIFIER, when 16#001C7E# .. 16#001C7F# => PUNCTUATION_OTHER, when 16#001C80# .. 16#001C88# => LETTER_LOWERCASE, when 16#001C90# .. 16#001CBA# => LETTER_UPPERCASE, when 16#001CBD# .. 16#001CBF# => LETTER_UPPERCASE, when 16#001CC0# .. 16#001CC7# => PUNCTUATION_OTHER, when 16#001CD0# .. 16#001CD2# => MARK_NONSPACING, when 16#001CD3# => PUNCTUATION_OTHER, when 16#001CD4# .. 16#001CE0# => MARK_NONSPACING, when 16#001CE1# => MARK_SPACING_COMBINING, when 16#001CE2# .. 16#001CE8# => MARK_NONSPACING, when 16#001CE9# .. 16#001CEC# => LETTER_OTHER, when 16#001CED# => MARK_NONSPACING, when 16#001CEE# .. 16#001CF3# => LETTER_OTHER, when 16#001CF4# => MARK_NONSPACING, when 16#001CF5# .. 16#001CF6# => LETTER_OTHER, when 16#001CF7# => MARK_SPACING_COMBINING, when 16#001CF8# .. 16#001CF9# => MARK_NONSPACING, when 16#001CFA# => LETTER_OTHER, when 16#001D00# .. 16#001D2B# => LETTER_LOWERCASE, when 16#001D2C# .. 16#001D6A# => LETTER_MODIFIER, when 16#001D6B# .. 16#001D77# => LETTER_LOWERCASE, when 16#001D78# => LETTER_MODIFIER, when 16#001D79# .. 16#001D9A# => LETTER_LOWERCASE, when 16#001D9B# .. 16#001DBF# => LETTER_MODIFIER, when 16#001DC0# .. 16#001DF9# => MARK_NONSPACING, when 16#001DFB# .. 16#001DFF# => MARK_NONSPACING, when 16#001E00# => LETTER_UPPERCASE, when 16#001E01# => LETTER_LOWERCASE, when 16#001E02# => LETTER_UPPERCASE, when 16#001E03# => LETTER_LOWERCASE, when 16#001E04# => LETTER_UPPERCASE, when 16#001E05# => LETTER_LOWERCASE, when 16#001E06# => LETTER_UPPERCASE, when 16#001E07# => LETTER_LOWERCASE, when 16#001E08# => LETTER_UPPERCASE, when 16#001E09# => LETTER_LOWERCASE, when 16#001E0A# => LETTER_UPPERCASE, when 16#001E0B# => LETTER_LOWERCASE, when 16#001E0C# => LETTER_UPPERCASE, when 16#001E0D# => LETTER_LOWERCASE, when 16#001E0E# => LETTER_UPPERCASE, when 16#001E0F# => LETTER_LOWERCASE, when 16#001E10# => LETTER_UPPERCASE, when 16#001E11# => LETTER_LOWERCASE, when 16#001E12# => LETTER_UPPERCASE, when 16#001E13# => LETTER_LOWERCASE, when 16#001E14# => LETTER_UPPERCASE, when 16#001E15# => LETTER_LOWERCASE, when 16#001E16# => LETTER_UPPERCASE, when 16#001E17# => LETTER_LOWERCASE, when 16#001E18# => LETTER_UPPERCASE, when 16#001E19# => LETTER_LOWERCASE, when 16#001E1A# => LETTER_UPPERCASE, when 16#001E1B# => LETTER_LOWERCASE, when 16#001E1C# => LETTER_UPPERCASE, when 16#001E1D# => LETTER_LOWERCASE, when 16#001E1E# => LETTER_UPPERCASE, when 16#001E1F# => LETTER_LOWERCASE, when 16#001E20# => LETTER_UPPERCASE, when 16#001E21# => LETTER_LOWERCASE, when 16#001E22# => LETTER_UPPERCASE, when 16#001E23# => LETTER_LOWERCASE, when 16#001E24# => LETTER_UPPERCASE, when 16#001E25# => LETTER_LOWERCASE, when 16#001E26# => LETTER_UPPERCASE, when 16#001E27# => LETTER_LOWERCASE, when 16#001E28# => LETTER_UPPERCASE, when 16#001E29# => LETTER_LOWERCASE, when 16#001E2A# => LETTER_UPPERCASE, when 16#001E2B# => LETTER_LOWERCASE, when 16#001E2C# => LETTER_UPPERCASE, when 16#001E2D# => LETTER_LOWERCASE, when 16#001E2E# => LETTER_UPPERCASE, when 16#001E2F# => LETTER_LOWERCASE, when 16#001E30# => LETTER_UPPERCASE, when 16#001E31# => LETTER_LOWERCASE, when 16#001E32# => LETTER_UPPERCASE, when 16#001E33# => LETTER_LOWERCASE, when 16#001E34# => LETTER_UPPERCASE, when 16#001E35# => LETTER_LOWERCASE, when 16#001E36# => LETTER_UPPERCASE, when 16#001E37# => LETTER_LOWERCASE, when 16#001E38# => LETTER_UPPERCASE, when 16#001E39# => LETTER_LOWERCASE, when 16#001E3A# => LETTER_UPPERCASE, when 16#001E3B# => LETTER_LOWERCASE, when 16#001E3C# => LETTER_UPPERCASE, when 16#001E3D# => LETTER_LOWERCASE, when 16#001E3E# => LETTER_UPPERCASE, when 16#001E3F# => LETTER_LOWERCASE, when 16#001E40# => LETTER_UPPERCASE, when 16#001E41# => LETTER_LOWERCASE, when 16#001E42# => LETTER_UPPERCASE, when 16#001E43# => LETTER_LOWERCASE, when 16#001E44# => LETTER_UPPERCASE, when 16#001E45# => LETTER_LOWERCASE, when 16#001E46# => LETTER_UPPERCASE, when 16#001E47# => LETTER_LOWERCASE, when 16#001E48# => LETTER_UPPERCASE, when 16#001E49# => LETTER_LOWERCASE, when 16#001E4A# => LETTER_UPPERCASE, when 16#001E4B# => LETTER_LOWERCASE, when 16#001E4C# => LETTER_UPPERCASE, when 16#001E4D# => LETTER_LOWERCASE, when 16#001E4E# => LETTER_UPPERCASE, when 16#001E4F# => LETTER_LOWERCASE, when 16#001E50# => LETTER_UPPERCASE, when 16#001E51# => LETTER_LOWERCASE, when 16#001E52# => LETTER_UPPERCASE, when 16#001E53# => LETTER_LOWERCASE, when 16#001E54# => LETTER_UPPERCASE, when 16#001E55# => LETTER_LOWERCASE, when 16#001E56# => LETTER_UPPERCASE, when 16#001E57# => LETTER_LOWERCASE, when 16#001E58# => LETTER_UPPERCASE, when 16#001E59# => LETTER_LOWERCASE, when 16#001E5A# => LETTER_UPPERCASE, when 16#001E5B# => LETTER_LOWERCASE, when 16#001E5C# => LETTER_UPPERCASE, when 16#001E5D# => LETTER_LOWERCASE, when 16#001E5E# => LETTER_UPPERCASE, when 16#001E5F# => LETTER_LOWERCASE, when 16#001E60# => LETTER_UPPERCASE, when 16#001E61# => LETTER_LOWERCASE, when 16#001E62# => LETTER_UPPERCASE, when 16#001E63# => LETTER_LOWERCASE, when 16#001E64# => LETTER_UPPERCASE, when 16#001E65# => LETTER_LOWERCASE, when 16#001E66# => LETTER_UPPERCASE, when 16#001E67# => LETTER_LOWERCASE, when 16#001E68# => LETTER_UPPERCASE, when 16#001E69# => LETTER_LOWERCASE, when 16#001E6A# => LETTER_UPPERCASE, when 16#001E6B# => LETTER_LOWERCASE, when 16#001E6C# => LETTER_UPPERCASE, when 16#001E6D# => LETTER_LOWERCASE, when 16#001E6E# => LETTER_UPPERCASE, when 16#001E6F# => LETTER_LOWERCASE, when 16#001E70# => LETTER_UPPERCASE, when 16#001E71# => LETTER_LOWERCASE, when 16#001E72# => LETTER_UPPERCASE, when 16#001E73# => LETTER_LOWERCASE, when 16#001E74# => LETTER_UPPERCASE, when 16#001E75# => LETTER_LOWERCASE, when 16#001E76# => LETTER_UPPERCASE, when 16#001E77# => LETTER_LOWERCASE, when 16#001E78# => LETTER_UPPERCASE, when 16#001E79# => LETTER_LOWERCASE, when 16#001E7A# => LETTER_UPPERCASE, when 16#001E7B# => LETTER_LOWERCASE, when 16#001E7C# => LETTER_UPPERCASE, when 16#001E7D# => LETTER_LOWERCASE, when 16#001E7E# => LETTER_UPPERCASE, when 16#001E7F# => LETTER_LOWERCASE, when 16#001E80# => LETTER_UPPERCASE, when 16#001E81# => LETTER_LOWERCASE, when 16#001E82# => LETTER_UPPERCASE, when 16#001E83# => LETTER_LOWERCASE, when 16#001E84# => LETTER_UPPERCASE, when 16#001E85# => LETTER_LOWERCASE, when 16#001E86# => LETTER_UPPERCASE, when 16#001E87# => LETTER_LOWERCASE, when 16#001E88# => LETTER_UPPERCASE, when 16#001E89# => LETTER_LOWERCASE, when 16#001E8A# => LETTER_UPPERCASE, when 16#001E8B# => LETTER_LOWERCASE, when 16#001E8C# => LETTER_UPPERCASE, when 16#001E8D# => LETTER_LOWERCASE, when 16#001E8E# => LETTER_UPPERCASE, when 16#001E8F# => LETTER_LOWERCASE, when 16#001E90# => LETTER_UPPERCASE, when 16#001E91# => LETTER_LOWERCASE, when 16#001E92# => LETTER_UPPERCASE, when 16#001E93# => LETTER_LOWERCASE, when 16#001E94# => LETTER_UPPERCASE, when 16#001E95# .. 16#001E9D# => LETTER_LOWERCASE, when 16#001E9E# => LETTER_UPPERCASE, when 16#001E9F# => LETTER_LOWERCASE, when 16#001EA0# => LETTER_UPPERCASE, when 16#001EA1# => LETTER_LOWERCASE, when 16#001EA2# => LETTER_UPPERCASE, when 16#001EA3# => LETTER_LOWERCASE, when 16#001EA4# => LETTER_UPPERCASE, when 16#001EA5# => LETTER_LOWERCASE, when 16#001EA6# => LETTER_UPPERCASE, when 16#001EA7# => LETTER_LOWERCASE, when 16#001EA8# => LETTER_UPPERCASE, when 16#001EA9# => LETTER_LOWERCASE, when 16#001EAA# => LETTER_UPPERCASE, when 16#001EAB# => LETTER_LOWERCASE, when 16#001EAC# => LETTER_UPPERCASE, when 16#001EAD# => LETTER_LOWERCASE, when 16#001EAE# => LETTER_UPPERCASE, when 16#001EAF# => LETTER_LOWERCASE, when 16#001EB0# => LETTER_UPPERCASE, when 16#001EB1# => LETTER_LOWERCASE, when 16#001EB2# => LETTER_UPPERCASE, when 16#001EB3# => LETTER_LOWERCASE, when 16#001EB4# => LETTER_UPPERCASE, when 16#001EB5# => LETTER_LOWERCASE, when 16#001EB6# => LETTER_UPPERCASE, when 16#001EB7# => LETTER_LOWERCASE, when 16#001EB8# => LETTER_UPPERCASE, when 16#001EB9# => LETTER_LOWERCASE, when 16#001EBA# => LETTER_UPPERCASE, when 16#001EBB# => LETTER_LOWERCASE, when 16#001EBC# => LETTER_UPPERCASE, when 16#001EBD# => LETTER_LOWERCASE, when 16#001EBE# => LETTER_UPPERCASE, when 16#001EBF# => LETTER_LOWERCASE, when 16#001EC0# => LETTER_UPPERCASE, when 16#001EC1# => LETTER_LOWERCASE, when 16#001EC2# => LETTER_UPPERCASE, when 16#001EC3# => LETTER_LOWERCASE, when 16#001EC4# => LETTER_UPPERCASE, when 16#001EC5# => LETTER_LOWERCASE, when 16#001EC6# => LETTER_UPPERCASE, when 16#001EC7# => LETTER_LOWERCASE, when 16#001EC8# => LETTER_UPPERCASE, when 16#001EC9# => LETTER_LOWERCASE, when 16#001ECA# => LETTER_UPPERCASE, when 16#001ECB# => LETTER_LOWERCASE, when 16#001ECC# => LETTER_UPPERCASE, when 16#001ECD# => LETTER_LOWERCASE, when 16#001ECE# => LETTER_UPPERCASE, when 16#001ECF# => LETTER_LOWERCASE, when 16#001ED0# => LETTER_UPPERCASE, when 16#001ED1# => LETTER_LOWERCASE, when 16#001ED2# => LETTER_UPPERCASE, when 16#001ED3# => LETTER_LOWERCASE, when 16#001ED4# => LETTER_UPPERCASE, when 16#001ED5# => LETTER_LOWERCASE, when 16#001ED6# => LETTER_UPPERCASE, when 16#001ED7# => LETTER_LOWERCASE, when 16#001ED8# => LETTER_UPPERCASE, when 16#001ED9# => LETTER_LOWERCASE, when 16#001EDA# => LETTER_UPPERCASE, when 16#001EDB# => LETTER_LOWERCASE, when 16#001EDC# => LETTER_UPPERCASE, when 16#001EDD# => LETTER_LOWERCASE, when 16#001EDE# => LETTER_UPPERCASE, when 16#001EDF# => LETTER_LOWERCASE, when 16#001EE0# => LETTER_UPPERCASE, when 16#001EE1# => LETTER_LOWERCASE, when 16#001EE2# => LETTER_UPPERCASE, when 16#001EE3# => LETTER_LOWERCASE, when 16#001EE4# => LETTER_UPPERCASE, when 16#001EE5# => LETTER_LOWERCASE, when 16#001EE6# => LETTER_UPPERCASE, when 16#001EE7# => LETTER_LOWERCASE, when 16#001EE8# => LETTER_UPPERCASE, when 16#001EE9# => LETTER_LOWERCASE, when 16#001EEA# => LETTER_UPPERCASE, when 16#001EEB# => LETTER_LOWERCASE, when 16#001EEC# => LETTER_UPPERCASE, when 16#001EED# => LETTER_LOWERCASE, when 16#001EEE# => LETTER_UPPERCASE, when 16#001EEF# => LETTER_LOWERCASE, when 16#001EF0# => LETTER_UPPERCASE, when 16#001EF1# => LETTER_LOWERCASE, when 16#001EF2# => LETTER_UPPERCASE, when 16#001EF3# => LETTER_LOWERCASE, when 16#001EF4# => LETTER_UPPERCASE, when 16#001EF5# => LETTER_LOWERCASE, when 16#001EF6# => LETTER_UPPERCASE, when 16#001EF7# => LETTER_LOWERCASE, when 16#001EF8# => LETTER_UPPERCASE, when 16#001EF9# => LETTER_LOWERCASE, when 16#001EFA# => LETTER_UPPERCASE, when 16#001EFB# => LETTER_LOWERCASE, when 16#001EFC# => LETTER_UPPERCASE, when 16#001EFD# => LETTER_LOWERCASE, when 16#001EFE# => LETTER_UPPERCASE, when 16#001EFF# .. 16#001F07# => LETTER_LOWERCASE, when 16#001F08# .. 16#001F0F# => LETTER_UPPERCASE, when 16#001F10# .. 16#001F15# => LETTER_LOWERCASE, when 16#001F18# .. 16#001F1D# => LETTER_UPPERCASE, when 16#001F20# .. 16#001F27# => LETTER_LOWERCASE, when 16#001F28# .. 16#001F2F# => LETTER_UPPERCASE, when 16#001F30# .. 16#001F37# => LETTER_LOWERCASE, when 16#001F38# .. 16#001F3F# => LETTER_UPPERCASE, when 16#001F40# .. 16#001F45# => LETTER_LOWERCASE, when 16#001F48# .. 16#001F4D# => LETTER_UPPERCASE, when 16#001F50# .. 16#001F57# => LETTER_LOWERCASE, when 16#001F59# => LETTER_UPPERCASE, when 16#001F5B# => LETTER_UPPERCASE, when 16#001F5D# => LETTER_UPPERCASE, when 16#001F5F# => LETTER_UPPERCASE, when 16#001F60# .. 16#001F67# => LETTER_LOWERCASE, when 16#001F68# .. 16#001F6F# => LETTER_UPPERCASE, when 16#001F70# .. 16#001F7D# => LETTER_LOWERCASE, when 16#001F80# .. 16#001F87# => LETTER_LOWERCASE, when 16#001F88# .. 16#001F8F# => LETTER_TITLECASE, when 16#001F90# .. 16#001F97# => LETTER_LOWERCASE, when 16#001F98# .. 16#001F9F# => LETTER_TITLECASE, when 16#001FA0# .. 16#001FA7# => LETTER_LOWERCASE, when 16#001FA8# .. 16#001FAF# => LETTER_TITLECASE, when 16#001FB0# .. 16#001FB4# => LETTER_LOWERCASE, when 16#001FB6# .. 16#001FB7# => LETTER_LOWERCASE, when 16#001FB8# .. 16#001FBB# => LETTER_UPPERCASE, when 16#001FBC# => LETTER_TITLECASE, when 16#001FBD# => SYMBOL_MODIFIER, when 16#001FBE# => LETTER_LOWERCASE, when 16#001FBF# .. 16#001FC1# => SYMBOL_MODIFIER, when 16#001FC2# .. 16#001FC4# => LETTER_LOWERCASE, when 16#001FC6# .. 16#001FC7# => LETTER_LOWERCASE, when 16#001FC8# .. 16#001FCB# => LETTER_UPPERCASE, when 16#001FCC# => LETTER_TITLECASE, when 16#001FCD# .. 16#001FCF# => SYMBOL_MODIFIER, when 16#001FD0# .. 16#001FD3# => LETTER_LOWERCASE, when 16#001FD6# .. 16#001FD7# => LETTER_LOWERCASE, when 16#001FD8# .. 16#001FDB# => LETTER_UPPERCASE, when 16#001FDD# .. 16#001FDF# => SYMBOL_MODIFIER, when 16#001FE0# .. 16#001FE7# => LETTER_LOWERCASE, when 16#001FE8# .. 16#001FEC# => LETTER_UPPERCASE, when 16#001FED# .. 16#001FEF# => SYMBOL_MODIFIER, when 16#001FF2# .. 16#001FF4# => LETTER_LOWERCASE, when 16#001FF6# .. 16#001FF7# => LETTER_LOWERCASE, when 16#001FF8# .. 16#001FFB# => LETTER_UPPERCASE, when 16#001FFC# => LETTER_TITLECASE, when 16#001FFD# .. 16#001FFE# => SYMBOL_MODIFIER, when 16#002000# .. 16#00200A# => SEPARATOR_SPACE, when 16#00200B# .. 16#00200F# => OTHER_FORMAT, when 16#002010# .. 16#002015# => PUNCTUATION_DASH, when 16#002016# .. 16#002017# => PUNCTUATION_OTHER, when 16#002018# => PUNCTUATION_INITIAL_QUOTE, when 16#002019# => PUNCTUATION_FINAL_QUOTE, when 16#00201A# => PUNCTUATION_OPEN, when 16#00201B# .. 16#00201C# => PUNCTUATION_INITIAL_QUOTE, when 16#00201D# => PUNCTUATION_FINAL_QUOTE, when 16#00201E# => PUNCTUATION_OPEN, when 16#00201F# => PUNCTUATION_INITIAL_QUOTE, when 16#002020# .. 16#002027# => PUNCTUATION_OTHER, when 16#002028# => SEPARATOR_LINE, when 16#002029# => SEPARATOR_PARAGRAPH, when 16#00202A# .. 16#00202E# => OTHER_FORMAT, when 16#00202F# => SEPARATOR_SPACE, when 16#002030# .. 16#002038# => PUNCTUATION_OTHER, when 16#002039# => PUNCTUATION_INITIAL_QUOTE, when 16#00203A# => PUNCTUATION_FINAL_QUOTE, when 16#00203B# .. 16#00203E# => PUNCTUATION_OTHER, when 16#00203F# .. 16#002040# => PUNCTUATION_CONNECTOR, when 16#002041# .. 16#002043# => PUNCTUATION_OTHER, when 16#002044# => SYMBOL_MATH, when 16#002045# => PUNCTUATION_OPEN, when 16#002046# => PUNCTUATION_CLOSE, when 16#002047# .. 16#002051# => PUNCTUATION_OTHER, when 16#002052# => SYMBOL_MATH, when 16#002053# => PUNCTUATION_OTHER, when 16#002054# => PUNCTUATION_CONNECTOR, when 16#002055# .. 16#00205E# => PUNCTUATION_OTHER, when 16#00205F# => SEPARATOR_SPACE, when 16#002060# .. 16#002064# => OTHER_FORMAT, when 16#002066# .. 16#00206F# => OTHER_FORMAT, when 16#002070# => NUMBER_OTHER, when 16#002071# => LETTER_MODIFIER, when 16#002074# .. 16#002079# => NUMBER_OTHER, when 16#00207A# .. 16#00207C# => SYMBOL_MATH, when 16#00207D# => PUNCTUATION_OPEN, when 16#00207E# => PUNCTUATION_CLOSE, when 16#00207F# => LETTER_MODIFIER, when 16#002080# .. 16#002089# => NUMBER_OTHER, when 16#00208A# .. 16#00208C# => SYMBOL_MATH, when 16#00208D# => PUNCTUATION_OPEN, when 16#00208E# => PUNCTUATION_CLOSE, when 16#002090# .. 16#00209C# => LETTER_MODIFIER, when 16#0020A0# .. 16#0020BF# => SYMBOL_CURRENCY, when 16#0020D0# .. 16#0020DC# => MARK_NONSPACING, when 16#0020DD# .. 16#0020E0# => MARK_ENCLOSING, when 16#0020E1# => MARK_NONSPACING, when 16#0020E2# .. 16#0020E4# => MARK_ENCLOSING, when 16#0020E5# .. 16#0020F0# => MARK_NONSPACING, when 16#002100# .. 16#002101# => SYMBOL_OTHER, when 16#002102# => LETTER_UPPERCASE, when 16#002103# .. 16#002106# => SYMBOL_OTHER, when 16#002107# => LETTER_UPPERCASE, when 16#002108# .. 16#002109# => SYMBOL_OTHER, when 16#00210A# => LETTER_LOWERCASE, when 16#00210B# .. 16#00210D# => LETTER_UPPERCASE, when 16#00210E# .. 16#00210F# => LETTER_LOWERCASE, when 16#002110# .. 16#002112# => LETTER_UPPERCASE, when 16#002113# => LETTER_LOWERCASE, when 16#002114# => SYMBOL_OTHER, when 16#002115# => LETTER_UPPERCASE, when 16#002116# .. 16#002117# => SYMBOL_OTHER, when 16#002118# => SYMBOL_MATH, when 16#002119# .. 16#00211D# => LETTER_UPPERCASE, when 16#00211E# .. 16#002123# => SYMBOL_OTHER, when 16#002124# => LETTER_UPPERCASE, when 16#002125# => SYMBOL_OTHER, when 16#002126# => LETTER_UPPERCASE, when 16#002127# => SYMBOL_OTHER, when 16#002128# => LETTER_UPPERCASE, when 16#002129# => SYMBOL_OTHER, when 16#00212A# .. 16#00212D# => LETTER_UPPERCASE, when 16#00212E# => SYMBOL_OTHER, when 16#00212F# => LETTER_LOWERCASE, when 16#002130# .. 16#002133# => LETTER_UPPERCASE, when 16#002134# => LETTER_LOWERCASE, when 16#002135# .. 16#002138# => LETTER_OTHER, when 16#002139# => LETTER_LOWERCASE, when 16#00213A# .. 16#00213B# => SYMBOL_OTHER, when 16#00213C# .. 16#00213D# => LETTER_LOWERCASE, when 16#00213E# .. 16#00213F# => LETTER_UPPERCASE, when 16#002140# .. 16#002144# => SYMBOL_MATH, when 16#002145# => LETTER_UPPERCASE, when 16#002146# .. 16#002149# => LETTER_LOWERCASE, when 16#00214A# => SYMBOL_OTHER, when 16#00214B# => SYMBOL_MATH, when 16#00214C# .. 16#00214D# => SYMBOL_OTHER, when 16#00214E# => LETTER_LOWERCASE, when 16#00214F# => SYMBOL_OTHER, when 16#002150# .. 16#00215F# => NUMBER_OTHER, when 16#002160# .. 16#002182# => NUMBER_LETTER, when 16#002183# => LETTER_UPPERCASE, when 16#002184# => LETTER_LOWERCASE, when 16#002185# .. 16#002188# => NUMBER_LETTER, when 16#002189# => NUMBER_OTHER, when 16#00218A# .. 16#00218B# => SYMBOL_OTHER, when 16#002190# .. 16#002194# => SYMBOL_MATH, when 16#002195# .. 16#002199# => SYMBOL_OTHER, when 16#00219A# .. 16#00219B# => SYMBOL_MATH, when 16#00219C# .. 16#00219F# => SYMBOL_OTHER, when 16#0021A0# => SYMBOL_MATH, when 16#0021A1# .. 16#0021A2# => SYMBOL_OTHER, when 16#0021A3# => SYMBOL_MATH, when 16#0021A4# .. 16#0021A5# => SYMBOL_OTHER, when 16#0021A6# => SYMBOL_MATH, when 16#0021A7# .. 16#0021AD# => SYMBOL_OTHER, when 16#0021AE# => SYMBOL_MATH, when 16#0021AF# .. 16#0021CD# => SYMBOL_OTHER, when 16#0021CE# .. 16#0021CF# => SYMBOL_MATH, when 16#0021D0# .. 16#0021D1# => SYMBOL_OTHER, when 16#0021D2# => SYMBOL_MATH, when 16#0021D3# => SYMBOL_OTHER, when 16#0021D4# => SYMBOL_MATH, when 16#0021D5# .. 16#0021F3# => SYMBOL_OTHER, when 16#0021F4# .. 16#0022FF# => SYMBOL_MATH, when 16#002300# .. 16#002307# => SYMBOL_OTHER, when 16#002308# => PUNCTUATION_OPEN, when 16#002309# => PUNCTUATION_CLOSE, when 16#00230A# => PUNCTUATION_OPEN, when 16#00230B# => PUNCTUATION_CLOSE, when 16#00230C# .. 16#00231F# => SYMBOL_OTHER, when 16#002320# .. 16#002321# => SYMBOL_MATH, when 16#002322# .. 16#002328# => SYMBOL_OTHER, when 16#002329# => PUNCTUATION_OPEN, when 16#00232A# => PUNCTUATION_CLOSE, when 16#00232B# .. 16#00237B# => SYMBOL_OTHER, when 16#00237C# => SYMBOL_MATH, when 16#00237D# .. 16#00239A# => SYMBOL_OTHER, when 16#00239B# .. 16#0023B3# => SYMBOL_MATH, when 16#0023B4# .. 16#0023DB# => SYMBOL_OTHER, when 16#0023DC# .. 16#0023E1# => SYMBOL_MATH, when 16#0023E2# .. 16#002426# => SYMBOL_OTHER, when 16#002440# .. 16#00244A# => SYMBOL_OTHER, when 16#002460# .. 16#00249B# => NUMBER_OTHER, when 16#00249C# .. 16#0024E9# => SYMBOL_OTHER, when 16#0024EA# .. 16#0024FF# => NUMBER_OTHER, when 16#002500# .. 16#0025B6# => SYMBOL_OTHER, when 16#0025B7# => SYMBOL_MATH, when 16#0025B8# .. 16#0025C0# => SYMBOL_OTHER, when 16#0025C1# => SYMBOL_MATH, when 16#0025C2# .. 16#0025F7# => SYMBOL_OTHER, when 16#0025F8# .. 16#0025FF# => SYMBOL_MATH, when 16#002600# .. 16#00266E# => SYMBOL_OTHER, when 16#00266F# => SYMBOL_MATH, when 16#002670# .. 16#002767# => SYMBOL_OTHER, when 16#002768# => PUNCTUATION_OPEN, when 16#002769# => PUNCTUATION_CLOSE, when 16#00276A# => PUNCTUATION_OPEN, when 16#00276B# => PUNCTUATION_CLOSE, when 16#00276C# => PUNCTUATION_OPEN, when 16#00276D# => PUNCTUATION_CLOSE, when 16#00276E# => PUNCTUATION_OPEN, when 16#00276F# => PUNCTUATION_CLOSE, when 16#002770# => PUNCTUATION_OPEN, when 16#002771# => PUNCTUATION_CLOSE, when 16#002772# => PUNCTUATION_OPEN, when 16#002773# => PUNCTUATION_CLOSE, when 16#002774# => PUNCTUATION_OPEN, when 16#002775# => PUNCTUATION_CLOSE, when 16#002776# .. 16#002793# => NUMBER_OTHER, when 16#002794# .. 16#0027BF# => SYMBOL_OTHER, when 16#0027C0# .. 16#0027C4# => SYMBOL_MATH, when 16#0027C5# => PUNCTUATION_OPEN, when 16#0027C6# => PUNCTUATION_CLOSE, when 16#0027C7# .. 16#0027E5# => SYMBOL_MATH, when 16#0027E6# => PUNCTUATION_OPEN, when 16#0027E7# => PUNCTUATION_CLOSE, when 16#0027E8# => PUNCTUATION_OPEN, when 16#0027E9# => PUNCTUATION_CLOSE, when 16#0027EA# => PUNCTUATION_OPEN, when 16#0027EB# => PUNCTUATION_CLOSE, when 16#0027EC# => PUNCTUATION_OPEN, when 16#0027ED# => PUNCTUATION_CLOSE, when 16#0027EE# => PUNCTUATION_OPEN, when 16#0027EF# => PUNCTUATION_CLOSE, when 16#0027F0# .. 16#0027FF# => SYMBOL_MATH, when 16#002800# .. 16#0028FF# => SYMBOL_OTHER, when 16#002900# .. 16#002982# => SYMBOL_MATH, when 16#002983# => PUNCTUATION_OPEN, when 16#002984# => PUNCTUATION_CLOSE, when 16#002985# => PUNCTUATION_OPEN, when 16#002986# => PUNCTUATION_CLOSE, when 16#002987# => PUNCTUATION_OPEN, when 16#002988# => PUNCTUATION_CLOSE, when 16#002989# => PUNCTUATION_OPEN, when 16#00298A# => PUNCTUATION_CLOSE, when 16#00298B# => PUNCTUATION_OPEN, when 16#00298C# => PUNCTUATION_CLOSE, when 16#00298D# => PUNCTUATION_OPEN, when 16#00298E# => PUNCTUATION_CLOSE, when 16#00298F# => PUNCTUATION_OPEN, when 16#002990# => PUNCTUATION_CLOSE, when 16#002991# => PUNCTUATION_OPEN, when 16#002992# => PUNCTUATION_CLOSE, when 16#002993# => PUNCTUATION_OPEN, when 16#002994# => PUNCTUATION_CLOSE, when 16#002995# => PUNCTUATION_OPEN, when 16#002996# => PUNCTUATION_CLOSE, when 16#002997# => PUNCTUATION_OPEN, when 16#002998# => PUNCTUATION_CLOSE, when 16#002999# .. 16#0029D7# => SYMBOL_MATH, when 16#0029D8# => PUNCTUATION_OPEN, when 16#0029D9# => PUNCTUATION_CLOSE, when 16#0029DA# => PUNCTUATION_OPEN, when 16#0029DB# => PUNCTUATION_CLOSE, when 16#0029DC# .. 16#0029FB# => SYMBOL_MATH, when 16#0029FC# => PUNCTUATION_OPEN, when 16#0029FD# => PUNCTUATION_CLOSE, when 16#0029FE# .. 16#002AFF# => SYMBOL_MATH, when 16#002B00# .. 16#002B2F# => SYMBOL_OTHER, when 16#002B30# .. 16#002B44# => SYMBOL_MATH, when 16#002B45# .. 16#002B46# => SYMBOL_OTHER, when 16#002B47# .. 16#002B4C# => SYMBOL_MATH, when 16#002B4D# .. 16#002B73# => SYMBOL_OTHER, when 16#002B76# .. 16#002B95# => SYMBOL_OTHER, when 16#002B98# .. 16#002BFF# => SYMBOL_OTHER, when 16#002C00# .. 16#002C2E# => LETTER_UPPERCASE, when 16#002C30# .. 16#002C5E# => LETTER_LOWERCASE, when 16#002C60# => LETTER_UPPERCASE, when 16#002C61# => LETTER_LOWERCASE, when 16#002C62# .. 16#002C64# => LETTER_UPPERCASE, when 16#002C65# .. 16#002C66# => LETTER_LOWERCASE, when 16#002C67# => LETTER_UPPERCASE, when 16#002C68# => LETTER_LOWERCASE, when 16#002C69# => LETTER_UPPERCASE, when 16#002C6A# => LETTER_LOWERCASE, when 16#002C6B# => LETTER_UPPERCASE, when 16#002C6C# => LETTER_LOWERCASE, when 16#002C6D# .. 16#002C70# => LETTER_UPPERCASE, when 16#002C71# => LETTER_LOWERCASE, when 16#002C72# => LETTER_UPPERCASE, when 16#002C73# .. 16#002C74# => LETTER_LOWERCASE, when 16#002C75# => LETTER_UPPERCASE, when 16#002C76# .. 16#002C7B# => LETTER_LOWERCASE, when 16#002C7C# .. 16#002C7D# => LETTER_MODIFIER, when 16#002C7E# .. 16#002C80# => LETTER_UPPERCASE, when 16#002C81# => LETTER_LOWERCASE, when 16#002C82# => LETTER_UPPERCASE, when 16#002C83# => LETTER_LOWERCASE, when 16#002C84# => LETTER_UPPERCASE, when 16#002C85# => LETTER_LOWERCASE, when 16#002C86# => LETTER_UPPERCASE, when 16#002C87# => LETTER_LOWERCASE, when 16#002C88# => LETTER_UPPERCASE, when 16#002C89# => LETTER_LOWERCASE, when 16#002C8A# => LETTER_UPPERCASE, when 16#002C8B# => LETTER_LOWERCASE, when 16#002C8C# => LETTER_UPPERCASE, when 16#002C8D# => LETTER_LOWERCASE, when 16#002C8E# => LETTER_UPPERCASE, when 16#002C8F# => LETTER_LOWERCASE, when 16#002C90# => LETTER_UPPERCASE, when 16#002C91# => LETTER_LOWERCASE, when 16#002C92# => LETTER_UPPERCASE, when 16#002C93# => LETTER_LOWERCASE, when 16#002C94# => LETTER_UPPERCASE, when 16#002C95# => LETTER_LOWERCASE, when 16#002C96# => LETTER_UPPERCASE, when 16#002C97# => LETTER_LOWERCASE, when 16#002C98# => LETTER_UPPERCASE, when 16#002C99# => LETTER_LOWERCASE, when 16#002C9A# => LETTER_UPPERCASE, when 16#002C9B# => LETTER_LOWERCASE, when 16#002C9C# => LETTER_UPPERCASE, when 16#002C9D# => LETTER_LOWERCASE, when 16#002C9E# => LETTER_UPPERCASE, when 16#002C9F# => LETTER_LOWERCASE, when 16#002CA0# => LETTER_UPPERCASE, when 16#002CA1# => LETTER_LOWERCASE, when 16#002CA2# => LETTER_UPPERCASE, when 16#002CA3# => LETTER_LOWERCASE, when 16#002CA4# => LETTER_UPPERCASE, when 16#002CA5# => LETTER_LOWERCASE, when 16#002CA6# => LETTER_UPPERCASE, when 16#002CA7# => LETTER_LOWERCASE, when 16#002CA8# => LETTER_UPPERCASE, when 16#002CA9# => LETTER_LOWERCASE, when 16#002CAA# => LETTER_UPPERCASE, when 16#002CAB# => LETTER_LOWERCASE, when 16#002CAC# => LETTER_UPPERCASE, when 16#002CAD# => LETTER_LOWERCASE, when 16#002CAE# => LETTER_UPPERCASE, when 16#002CAF# => LETTER_LOWERCASE, when 16#002CB0# => LETTER_UPPERCASE, when 16#002CB1# => LETTER_LOWERCASE, when 16#002CB2# => LETTER_UPPERCASE, when 16#002CB3# => LETTER_LOWERCASE, when 16#002CB4# => LETTER_UPPERCASE, when 16#002CB5# => LETTER_LOWERCASE, when 16#002CB6# => LETTER_UPPERCASE, when 16#002CB7# => LETTER_LOWERCASE, when 16#002CB8# => LETTER_UPPERCASE, when 16#002CB9# => LETTER_LOWERCASE, when 16#002CBA# => LETTER_UPPERCASE, when 16#002CBB# => LETTER_LOWERCASE, when 16#002CBC# => LETTER_UPPERCASE, when 16#002CBD# => LETTER_LOWERCASE, when 16#002CBE# => LETTER_UPPERCASE, when 16#002CBF# => LETTER_LOWERCASE, when 16#002CC0# => LETTER_UPPERCASE, when 16#002CC1# => LETTER_LOWERCASE, when 16#002CC2# => LETTER_UPPERCASE, when 16#002CC3# => LETTER_LOWERCASE, when 16#002CC4# => LETTER_UPPERCASE, when 16#002CC5# => LETTER_LOWERCASE, when 16#002CC6# => LETTER_UPPERCASE, when 16#002CC7# => LETTER_LOWERCASE, when 16#002CC8# => LETTER_UPPERCASE, when 16#002CC9# => LETTER_LOWERCASE, when 16#002CCA# => LETTER_UPPERCASE, when 16#002CCB# => LETTER_LOWERCASE, when 16#002CCC# => LETTER_UPPERCASE, when 16#002CCD# => LETTER_LOWERCASE, when 16#002CCE# => LETTER_UPPERCASE, when 16#002CCF# => LETTER_LOWERCASE, when 16#002CD0# => LETTER_UPPERCASE, when 16#002CD1# => LETTER_LOWERCASE, when 16#002CD2# => LETTER_UPPERCASE, when 16#002CD3# => LETTER_LOWERCASE, when 16#002CD4# => LETTER_UPPERCASE, when 16#002CD5# => LETTER_LOWERCASE, when 16#002CD6# => LETTER_UPPERCASE, when 16#002CD7# => LETTER_LOWERCASE, when 16#002CD8# => LETTER_UPPERCASE, when 16#002CD9# => LETTER_LOWERCASE, when 16#002CDA# => LETTER_UPPERCASE, when 16#002CDB# => LETTER_LOWERCASE, when 16#002CDC# => LETTER_UPPERCASE, when 16#002CDD# => LETTER_LOWERCASE, when 16#002CDE# => LETTER_UPPERCASE, when 16#002CDF# => LETTER_LOWERCASE, when 16#002CE0# => LETTER_UPPERCASE, when 16#002CE1# => LETTER_LOWERCASE, when 16#002CE2# => LETTER_UPPERCASE, when 16#002CE3# .. 16#002CE4# => LETTER_LOWERCASE, when 16#002CE5# .. 16#002CEA# => SYMBOL_OTHER, when 16#002CEB# => LETTER_UPPERCASE, when 16#002CEC# => LETTER_LOWERCASE, when 16#002CED# => LETTER_UPPERCASE, when 16#002CEE# => LETTER_LOWERCASE, when 16#002CEF# .. 16#002CF1# => MARK_NONSPACING, when 16#002CF2# => LETTER_UPPERCASE, when 16#002CF3# => LETTER_LOWERCASE, when 16#002CF9# .. 16#002CFC# => PUNCTUATION_OTHER, when 16#002CFD# => NUMBER_OTHER, when 16#002CFE# .. 16#002CFF# => PUNCTUATION_OTHER, when 16#002D00# .. 16#002D25# => LETTER_LOWERCASE, when 16#002D27# => LETTER_LOWERCASE, when 16#002D2D# => LETTER_LOWERCASE, when 16#002D30# .. 16#002D67# => LETTER_OTHER, when 16#002D6F# => LETTER_MODIFIER, when 16#002D70# => PUNCTUATION_OTHER, when 16#002D7F# => MARK_NONSPACING, when 16#002D80# .. 16#002D96# => LETTER_OTHER, when 16#002DA0# .. 16#002DA6# => LETTER_OTHER, when 16#002DA8# .. 16#002DAE# => LETTER_OTHER, when 16#002DB0# .. 16#002DB6# => LETTER_OTHER, when 16#002DB8# .. 16#002DBE# => LETTER_OTHER, when 16#002DC0# .. 16#002DC6# => LETTER_OTHER, when 16#002DC8# .. 16#002DCE# => LETTER_OTHER, when 16#002DD0# .. 16#002DD6# => LETTER_OTHER, when 16#002DD8# .. 16#002DDE# => LETTER_OTHER, when 16#002DE0# .. 16#002DFF# => MARK_NONSPACING, when 16#002E00# .. 16#002E01# => PUNCTUATION_OTHER, when 16#002E02# => PUNCTUATION_INITIAL_QUOTE, when 16#002E03# => PUNCTUATION_FINAL_QUOTE, when 16#002E04# => PUNCTUATION_INITIAL_QUOTE, when 16#002E05# => PUNCTUATION_FINAL_QUOTE, when 16#002E06# .. 16#002E08# => PUNCTUATION_OTHER, when 16#002E09# => PUNCTUATION_INITIAL_QUOTE, when 16#002E0A# => PUNCTUATION_FINAL_QUOTE, when 16#002E0B# => PUNCTUATION_OTHER, when 16#002E0C# => PUNCTUATION_INITIAL_QUOTE, when 16#002E0D# => PUNCTUATION_FINAL_QUOTE, when 16#002E0E# .. 16#002E16# => PUNCTUATION_OTHER, when 16#002E17# => PUNCTUATION_DASH, when 16#002E18# .. 16#002E19# => PUNCTUATION_OTHER, when 16#002E1A# => PUNCTUATION_DASH, when 16#002E1B# => PUNCTUATION_OTHER, when 16#002E1C# => PUNCTUATION_INITIAL_QUOTE, when 16#002E1D# => PUNCTUATION_FINAL_QUOTE, when 16#002E1E# .. 16#002E1F# => PUNCTUATION_OTHER, when 16#002E20# => PUNCTUATION_INITIAL_QUOTE, when 16#002E21# => PUNCTUATION_FINAL_QUOTE, when 16#002E22# => PUNCTUATION_OPEN, when 16#002E23# => PUNCTUATION_CLOSE, when 16#002E24# => PUNCTUATION_OPEN, when 16#002E25# => PUNCTUATION_CLOSE, when 16#002E26# => PUNCTUATION_OPEN, when 16#002E27# => PUNCTUATION_CLOSE, when 16#002E28# => PUNCTUATION_OPEN, when 16#002E29# => PUNCTUATION_CLOSE, when 16#002E2A# .. 16#002E2E# => PUNCTUATION_OTHER, when 16#002E2F# => LETTER_MODIFIER, when 16#002E30# .. 16#002E39# => PUNCTUATION_OTHER, when 16#002E3A# .. 16#002E3B# => PUNCTUATION_DASH, when 16#002E3C# .. 16#002E3F# => PUNCTUATION_OTHER, when 16#002E40# => PUNCTUATION_DASH, when 16#002E41# => PUNCTUATION_OTHER, when 16#002E42# => PUNCTUATION_OPEN, when 16#002E43# .. 16#002E4F# => PUNCTUATION_OTHER, when 16#002E80# .. 16#002E99# => SYMBOL_OTHER, when 16#002E9B# .. 16#002EF3# => SYMBOL_OTHER, when 16#002F00# .. 16#002FD5# => SYMBOL_OTHER, when 16#002FF0# .. 16#002FFB# => SYMBOL_OTHER, when 16#003000# => SEPARATOR_SPACE, when 16#003001# .. 16#003003# => PUNCTUATION_OTHER, when 16#003004# => SYMBOL_OTHER, when 16#003005# => LETTER_MODIFIER, when 16#003006# => LETTER_OTHER, when 16#003007# => NUMBER_LETTER, when 16#003008# => PUNCTUATION_OPEN, when 16#003009# => PUNCTUATION_CLOSE, when 16#00300A# => PUNCTUATION_OPEN, when 16#00300B# => PUNCTUATION_CLOSE, when 16#00300C# => PUNCTUATION_OPEN, when 16#00300D# => PUNCTUATION_CLOSE, when 16#00300E# => PUNCTUATION_OPEN, when 16#00300F# => PUNCTUATION_CLOSE, when 16#003010# => PUNCTUATION_OPEN, when 16#003011# => PUNCTUATION_CLOSE, when 16#003012# .. 16#003013# => SYMBOL_OTHER, when 16#003014# => PUNCTUATION_OPEN, when 16#003015# => PUNCTUATION_CLOSE, when 16#003016# => PUNCTUATION_OPEN, when 16#003017# => PUNCTUATION_CLOSE, when 16#003018# => PUNCTUATION_OPEN, when 16#003019# => PUNCTUATION_CLOSE, when 16#00301A# => PUNCTUATION_OPEN, when 16#00301B# => PUNCTUATION_CLOSE, when 16#00301C# => PUNCTUATION_DASH, when 16#00301D# => PUNCTUATION_OPEN, when 16#00301E# .. 16#00301F# => PUNCTUATION_CLOSE, when 16#003020# => SYMBOL_OTHER, when 16#003021# .. 16#003029# => NUMBER_LETTER, when 16#00302A# .. 16#00302D# => MARK_NONSPACING, when 16#00302E# .. 16#00302F# => MARK_SPACING_COMBINING, when 16#003030# => PUNCTUATION_DASH, when 16#003031# .. 16#003035# => LETTER_MODIFIER, when 16#003036# .. 16#003037# => SYMBOL_OTHER, when 16#003038# .. 16#00303A# => NUMBER_LETTER, when 16#00303B# => LETTER_MODIFIER, when 16#00303C# => LETTER_OTHER, when 16#00303D# => PUNCTUATION_OTHER, when 16#00303E# .. 16#00303F# => SYMBOL_OTHER, when 16#003041# .. 16#003096# => LETTER_OTHER, when 16#003099# .. 16#00309A# => MARK_NONSPACING, when 16#00309B# .. 16#00309C# => SYMBOL_MODIFIER, when 16#00309D# .. 16#00309E# => LETTER_MODIFIER, when 16#00309F# => LETTER_OTHER, when 16#0030A0# => PUNCTUATION_DASH, when 16#0030A1# .. 16#0030FA# => LETTER_OTHER, when 16#0030FB# => PUNCTUATION_OTHER, when 16#0030FC# .. 16#0030FE# => LETTER_MODIFIER, when 16#0030FF# => LETTER_OTHER, when 16#003105# .. 16#00312F# => LETTER_OTHER, when 16#003131# .. 16#00318E# => LETTER_OTHER, when 16#003190# .. 16#003191# => SYMBOL_OTHER, when 16#003192# .. 16#003195# => NUMBER_OTHER, when 16#003196# .. 16#00319F# => SYMBOL_OTHER, when 16#0031A0# .. 16#0031BA# => LETTER_OTHER, when 16#0031C0# .. 16#0031E3# => SYMBOL_OTHER, when 16#0031F0# .. 16#0031FF# => LETTER_OTHER, when 16#003200# .. 16#00321E# => SYMBOL_OTHER, when 16#003220# .. 16#003229# => NUMBER_OTHER, when 16#00322A# .. 16#003247# => SYMBOL_OTHER, when 16#003248# .. 16#00324F# => NUMBER_OTHER, when 16#003250# => SYMBOL_OTHER, when 16#003251# .. 16#00325F# => NUMBER_OTHER, when 16#003260# .. 16#00327F# => SYMBOL_OTHER, when 16#003280# .. 16#003289# => NUMBER_OTHER, when 16#00328A# .. 16#0032B0# => SYMBOL_OTHER, when 16#0032B1# .. 16#0032BF# => NUMBER_OTHER, when 16#0032C0# .. 16#0033FF# => SYMBOL_OTHER, when 16#003400# .. 16#004DB5# => LETTER_OTHER, when 16#004DC0# .. 16#004DFF# => SYMBOL_OTHER, when 16#004E00# .. 16#009FEF# => LETTER_OTHER, when 16#00A000# .. 16#00A014# => LETTER_OTHER, when 16#00A015# => LETTER_MODIFIER, when 16#00A016# .. 16#00A48C# => LETTER_OTHER, when 16#00A490# .. 16#00A4C6# => SYMBOL_OTHER, when 16#00A4D0# .. 16#00A4F7# => LETTER_OTHER, when 16#00A4F8# .. 16#00A4FD# => LETTER_MODIFIER, when 16#00A4FE# .. 16#00A4FF# => PUNCTUATION_OTHER, when 16#00A500# .. 16#00A60B# => LETTER_OTHER, when 16#00A60C# => LETTER_MODIFIER, when 16#00A60D# .. 16#00A60F# => PUNCTUATION_OTHER, when 16#00A610# .. 16#00A61F# => LETTER_OTHER, when 16#00A620# .. 16#00A629# => NUMBER_DECIMAL_DIGIT, when 16#00A62A# .. 16#00A62B# => LETTER_OTHER, when 16#00A640# => LETTER_UPPERCASE, when 16#00A641# => LETTER_LOWERCASE, when 16#00A642# => LETTER_UPPERCASE, when 16#00A643# => LETTER_LOWERCASE, when 16#00A644# => LETTER_UPPERCASE, when 16#00A645# => LETTER_LOWERCASE, when 16#00A646# => LETTER_UPPERCASE, when 16#00A647# => LETTER_LOWERCASE, when 16#00A648# => LETTER_UPPERCASE, when 16#00A649# => LETTER_LOWERCASE, when 16#00A64A# => LETTER_UPPERCASE, when 16#00A64B# => LETTER_LOWERCASE, when 16#00A64C# => LETTER_UPPERCASE, when 16#00A64D# => LETTER_LOWERCASE, when 16#00A64E# => LETTER_UPPERCASE, when 16#00A64F# => LETTER_LOWERCASE, when 16#00A650# => LETTER_UPPERCASE, when 16#00A651# => LETTER_LOWERCASE, when 16#00A652# => LETTER_UPPERCASE, when 16#00A653# => LETTER_LOWERCASE, when 16#00A654# => LETTER_UPPERCASE, when 16#00A655# => LETTER_LOWERCASE, when 16#00A656# => LETTER_UPPERCASE, when 16#00A657# => LETTER_LOWERCASE, when 16#00A658# => LETTER_UPPERCASE, when 16#00A659# => LETTER_LOWERCASE, when 16#00A65A# => LETTER_UPPERCASE, when 16#00A65B# => LETTER_LOWERCASE, when 16#00A65C# => LETTER_UPPERCASE, when 16#00A65D# => LETTER_LOWERCASE, when 16#00A65E# => LETTER_UPPERCASE, when 16#00A65F# => LETTER_LOWERCASE, when 16#00A660# => LETTER_UPPERCASE, when 16#00A661# => LETTER_LOWERCASE, when 16#00A662# => LETTER_UPPERCASE, when 16#00A663# => LETTER_LOWERCASE, when 16#00A664# => LETTER_UPPERCASE, when 16#00A665# => LETTER_LOWERCASE, when 16#00A666# => LETTER_UPPERCASE, when 16#00A667# => LETTER_LOWERCASE, when 16#00A668# => LETTER_UPPERCASE, when 16#00A669# => LETTER_LOWERCASE, when 16#00A66A# => LETTER_UPPERCASE, when 16#00A66B# => LETTER_LOWERCASE, when 16#00A66C# => LETTER_UPPERCASE, when 16#00A66D# => LETTER_LOWERCASE, when 16#00A66E# => LETTER_OTHER, when 16#00A66F# => MARK_NONSPACING, when 16#00A670# .. 16#00A672# => MARK_ENCLOSING, when 16#00A673# => PUNCTUATION_OTHER, when 16#00A674# .. 16#00A67D# => MARK_NONSPACING, when 16#00A67E# => PUNCTUATION_OTHER, when 16#00A67F# => LETTER_MODIFIER, when 16#00A680# => LETTER_UPPERCASE, when 16#00A681# => LETTER_LOWERCASE, when 16#00A682# => LETTER_UPPERCASE, when 16#00A683# => LETTER_LOWERCASE, when 16#00A684# => LETTER_UPPERCASE, when 16#00A685# => LETTER_LOWERCASE, when 16#00A686# => LETTER_UPPERCASE, when 16#00A687# => LETTER_LOWERCASE, when 16#00A688# => LETTER_UPPERCASE, when 16#00A689# => LETTER_LOWERCASE, when 16#00A68A# => LETTER_UPPERCASE, when 16#00A68B# => LETTER_LOWERCASE, when 16#00A68C# => LETTER_UPPERCASE, when 16#00A68D# => LETTER_LOWERCASE, when 16#00A68E# => LETTER_UPPERCASE, when 16#00A68F# => LETTER_LOWERCASE, when 16#00A690# => LETTER_UPPERCASE, when 16#00A691# => LETTER_LOWERCASE, when 16#00A692# => LETTER_UPPERCASE, when 16#00A693# => LETTER_LOWERCASE, when 16#00A694# => LETTER_UPPERCASE, when 16#00A695# => LETTER_LOWERCASE, when 16#00A696# => LETTER_UPPERCASE, when 16#00A697# => LETTER_LOWERCASE, when 16#00A698# => LETTER_UPPERCASE, when 16#00A699# => LETTER_LOWERCASE, when 16#00A69A# => LETTER_UPPERCASE, when 16#00A69B# => LETTER_LOWERCASE, when 16#00A69C# .. 16#00A69D# => LETTER_MODIFIER, when 16#00A69E# .. 16#00A69F# => MARK_NONSPACING, when 16#00A6A0# .. 16#00A6E5# => LETTER_OTHER, when 16#00A6E6# .. 16#00A6EF# => NUMBER_LETTER, when 16#00A6F0# .. 16#00A6F1# => MARK_NONSPACING, when 16#00A6F2# .. 16#00A6F7# => PUNCTUATION_OTHER, when 16#00A700# .. 16#00A716# => SYMBOL_MODIFIER, when 16#00A717# .. 16#00A71F# => LETTER_MODIFIER, when 16#00A720# .. 16#00A721# => SYMBOL_MODIFIER, when 16#00A722# => LETTER_UPPERCASE, when 16#00A723# => LETTER_LOWERCASE, when 16#00A724# => LETTER_UPPERCASE, when 16#00A725# => LETTER_LOWERCASE, when 16#00A726# => LETTER_UPPERCASE, when 16#00A727# => LETTER_LOWERCASE, when 16#00A728# => LETTER_UPPERCASE, when 16#00A729# => LETTER_LOWERCASE, when 16#00A72A# => LETTER_UPPERCASE, when 16#00A72B# => LETTER_LOWERCASE, when 16#00A72C# => LETTER_UPPERCASE, when 16#00A72D# => LETTER_LOWERCASE, when 16#00A72E# => LETTER_UPPERCASE, when 16#00A72F# .. 16#00A731# => LETTER_LOWERCASE, when 16#00A732# => LETTER_UPPERCASE, when 16#00A733# => LETTER_LOWERCASE, when 16#00A734# => LETTER_UPPERCASE, when 16#00A735# => LETTER_LOWERCASE, when 16#00A736# => LETTER_UPPERCASE, when 16#00A737# => LETTER_LOWERCASE, when 16#00A738# => LETTER_UPPERCASE, when 16#00A739# => LETTER_LOWERCASE, when 16#00A73A# => LETTER_UPPERCASE, when 16#00A73B# => LETTER_LOWERCASE, when 16#00A73C# => LETTER_UPPERCASE, when 16#00A73D# => LETTER_LOWERCASE, when 16#00A73E# => LETTER_UPPERCASE, when 16#00A73F# => LETTER_LOWERCASE, when 16#00A740# => LETTER_UPPERCASE, when 16#00A741# => LETTER_LOWERCASE, when 16#00A742# => LETTER_UPPERCASE, when 16#00A743# => LETTER_LOWERCASE, when 16#00A744# => LETTER_UPPERCASE, when 16#00A745# => LETTER_LOWERCASE, when 16#00A746# => LETTER_UPPERCASE, when 16#00A747# => LETTER_LOWERCASE, when 16#00A748# => LETTER_UPPERCASE, when 16#00A749# => LETTER_LOWERCASE, when 16#00A74A# => LETTER_UPPERCASE, when 16#00A74B# => LETTER_LOWERCASE, when 16#00A74C# => LETTER_UPPERCASE, when 16#00A74D# => LETTER_LOWERCASE, when 16#00A74E# => LETTER_UPPERCASE, when 16#00A74F# => LETTER_LOWERCASE, when 16#00A750# => LETTER_UPPERCASE, when 16#00A751# => LETTER_LOWERCASE, when 16#00A752# => LETTER_UPPERCASE, when 16#00A753# => LETTER_LOWERCASE, when 16#00A754# => LETTER_UPPERCASE, when 16#00A755# => LETTER_LOWERCASE, when 16#00A756# => LETTER_UPPERCASE, when 16#00A757# => LETTER_LOWERCASE, when 16#00A758# => LETTER_UPPERCASE, when 16#00A759# => LETTER_LOWERCASE, when 16#00A75A# => LETTER_UPPERCASE, when 16#00A75B# => LETTER_LOWERCASE, when 16#00A75C# => LETTER_UPPERCASE, when 16#00A75D# => LETTER_LOWERCASE, when 16#00A75E# => LETTER_UPPERCASE, when 16#00A75F# => LETTER_LOWERCASE, when 16#00A760# => LETTER_UPPERCASE, when 16#00A761# => LETTER_LOWERCASE, when 16#00A762# => LETTER_UPPERCASE, when 16#00A763# => LETTER_LOWERCASE, when 16#00A764# => LETTER_UPPERCASE, when 16#00A765# => LETTER_LOWERCASE, when 16#00A766# => LETTER_UPPERCASE, when 16#00A767# => LETTER_LOWERCASE, when 16#00A768# => LETTER_UPPERCASE, when 16#00A769# => LETTER_LOWERCASE, when 16#00A76A# => LETTER_UPPERCASE, when 16#00A76B# => LETTER_LOWERCASE, when 16#00A76C# => LETTER_UPPERCASE, when 16#00A76D# => LETTER_LOWERCASE, when 16#00A76E# => LETTER_UPPERCASE, when 16#00A76F# => LETTER_LOWERCASE, when 16#00A770# => LETTER_MODIFIER, when 16#00A771# .. 16#00A778# => LETTER_LOWERCASE, when 16#00A779# => LETTER_UPPERCASE, when 16#00A77A# => LETTER_LOWERCASE, when 16#00A77B# => LETTER_UPPERCASE, when 16#00A77C# => LETTER_LOWERCASE, when 16#00A77D# .. 16#00A77E# => LETTER_UPPERCASE, when 16#00A77F# => LETTER_LOWERCASE, when 16#00A780# => LETTER_UPPERCASE, when 16#00A781# => LETTER_LOWERCASE, when 16#00A782# => LETTER_UPPERCASE, when 16#00A783# => LETTER_LOWERCASE, when 16#00A784# => LETTER_UPPERCASE, when 16#00A785# => LETTER_LOWERCASE, when 16#00A786# => LETTER_UPPERCASE, when 16#00A787# => LETTER_LOWERCASE, when 16#00A788# => LETTER_MODIFIER, when 16#00A789# .. 16#00A78A# => SYMBOL_MODIFIER, when 16#00A78B# => LETTER_UPPERCASE, when 16#00A78C# => LETTER_LOWERCASE, when 16#00A78D# => LETTER_UPPERCASE, when 16#00A78E# => LETTER_LOWERCASE, when 16#00A78F# => LETTER_OTHER, when 16#00A790# => LETTER_UPPERCASE, when 16#00A791# => LETTER_LOWERCASE, when 16#00A792# => LETTER_UPPERCASE, when 16#00A793# .. 16#00A795# => LETTER_LOWERCASE, when 16#00A796# => LETTER_UPPERCASE, when 16#00A797# => LETTER_LOWERCASE, when 16#00A798# => LETTER_UPPERCASE, when 16#00A799# => LETTER_LOWERCASE, when 16#00A79A# => LETTER_UPPERCASE, when 16#00A79B# => LETTER_LOWERCASE, when 16#00A79C# => LETTER_UPPERCASE, when 16#00A79D# => LETTER_LOWERCASE, when 16#00A79E# => LETTER_UPPERCASE, when 16#00A79F# => LETTER_LOWERCASE, when 16#00A7A0# => LETTER_UPPERCASE, when 16#00A7A1# => LETTER_LOWERCASE, when 16#00A7A2# => LETTER_UPPERCASE, when 16#00A7A3# => LETTER_LOWERCASE, when 16#00A7A4# => LETTER_UPPERCASE, when 16#00A7A5# => LETTER_LOWERCASE, when 16#00A7A6# => LETTER_UPPERCASE, when 16#00A7A7# => LETTER_LOWERCASE, when 16#00A7A8# => LETTER_UPPERCASE, when 16#00A7A9# => LETTER_LOWERCASE, when 16#00A7AA# .. 16#00A7AE# => LETTER_UPPERCASE, when 16#00A7AF# => LETTER_LOWERCASE, when 16#00A7B0# .. 16#00A7B4# => LETTER_UPPERCASE, when 16#00A7B5# => LETTER_LOWERCASE, when 16#00A7B6# => LETTER_UPPERCASE, when 16#00A7B7# => LETTER_LOWERCASE, when 16#00A7B8# => LETTER_UPPERCASE, when 16#00A7B9# => LETTER_LOWERCASE, when 16#00A7BA# => LETTER_UPPERCASE, when 16#00A7BB# => LETTER_LOWERCASE, when 16#00A7BC# => LETTER_UPPERCASE, when 16#00A7BD# => LETTER_LOWERCASE, when 16#00A7BE# => LETTER_UPPERCASE, when 16#00A7BF# => LETTER_LOWERCASE, when 16#00A7C2# => LETTER_UPPERCASE, when 16#00A7C3# => LETTER_LOWERCASE, when 16#00A7C4# .. 16#00A7C6# => LETTER_UPPERCASE, when 16#00A7F7# => LETTER_OTHER, when 16#00A7F8# .. 16#00A7F9# => LETTER_MODIFIER, when 16#00A7FA# => LETTER_LOWERCASE, when 16#00A7FB# .. 16#00A801# => LETTER_OTHER, when 16#00A802# => MARK_NONSPACING, when 16#00A803# .. 16#00A805# => LETTER_OTHER, when 16#00A806# => MARK_NONSPACING, when 16#00A807# .. 16#00A80A# => LETTER_OTHER, when 16#00A80B# => MARK_NONSPACING, when 16#00A80C# .. 16#00A822# => LETTER_OTHER, when 16#00A823# .. 16#00A824# => MARK_SPACING_COMBINING, when 16#00A825# .. 16#00A826# => MARK_NONSPACING, when 16#00A827# => MARK_SPACING_COMBINING, when 16#00A828# .. 16#00A82B# => SYMBOL_OTHER, when 16#00A830# .. 16#00A835# => NUMBER_OTHER, when 16#00A836# .. 16#00A837# => SYMBOL_OTHER, when 16#00A838# => SYMBOL_CURRENCY, when 16#00A839# => SYMBOL_OTHER, when 16#00A840# .. 16#00A873# => LETTER_OTHER, when 16#00A874# .. 16#00A877# => PUNCTUATION_OTHER, when 16#00A880# .. 16#00A881# => MARK_SPACING_COMBINING, when 16#00A882# .. 16#00A8B3# => LETTER_OTHER, when 16#00A8B4# .. 16#00A8C3# => MARK_SPACING_COMBINING, when 16#00A8C4# .. 16#00A8C5# => MARK_NONSPACING, when 16#00A8CE# .. 16#00A8CF# => PUNCTUATION_OTHER, when 16#00A8D0# .. 16#00A8D9# => NUMBER_DECIMAL_DIGIT, when 16#00A8E0# .. 16#00A8F1# => MARK_NONSPACING, when 16#00A8F2# .. 16#00A8F7# => LETTER_OTHER, when 16#00A8F8# .. 16#00A8FA# => PUNCTUATION_OTHER, when 16#00A8FB# => LETTER_OTHER, when 16#00A8FC# => PUNCTUATION_OTHER, when 16#00A8FD# .. 16#00A8FE# => LETTER_OTHER, when 16#00A8FF# => MARK_NONSPACING, when 16#00A900# .. 16#00A909# => NUMBER_DECIMAL_DIGIT, when 16#00A90A# .. 16#00A925# => LETTER_OTHER, when 16#00A926# .. 16#00A92D# => MARK_NONSPACING, when 16#00A92E# .. 16#00A92F# => PUNCTUATION_OTHER, when 16#00A930# .. 16#00A946# => LETTER_OTHER, when 16#00A947# .. 16#00A951# => MARK_NONSPACING, when 16#00A952# .. 16#00A953# => MARK_SPACING_COMBINING, when 16#00A95F# => PUNCTUATION_OTHER, when 16#00A960# .. 16#00A97C# => LETTER_OTHER, when 16#00A980# .. 16#00A982# => MARK_NONSPACING, when 16#00A983# => MARK_SPACING_COMBINING, when 16#00A984# .. 16#00A9B2# => LETTER_OTHER, when 16#00A9B3# => MARK_NONSPACING, when 16#00A9B4# .. 16#00A9B5# => MARK_SPACING_COMBINING, when 16#00A9B6# .. 16#00A9B9# => MARK_NONSPACING, when 16#00A9BA# .. 16#00A9BB# => MARK_SPACING_COMBINING, when 16#00A9BC# .. 16#00A9BD# => MARK_NONSPACING, when 16#00A9BE# .. 16#00A9C0# => MARK_SPACING_COMBINING, when 16#00A9C1# .. 16#00A9CD# => PUNCTUATION_OTHER, when 16#00A9CF# => LETTER_MODIFIER, when 16#00A9D0# .. 16#00A9D9# => NUMBER_DECIMAL_DIGIT, when 16#00A9DE# .. 16#00A9DF# => PUNCTUATION_OTHER, when 16#00A9E0# .. 16#00A9E4# => LETTER_OTHER, when 16#00A9E5# => MARK_NONSPACING, when 16#00A9E6# => LETTER_MODIFIER, when 16#00A9E7# .. 16#00A9EF# => LETTER_OTHER, when 16#00A9F0# .. 16#00A9F9# => NUMBER_DECIMAL_DIGIT, when 16#00A9FA# .. 16#00A9FE# => LETTER_OTHER, when 16#00AA00# .. 16#00AA28# => LETTER_OTHER, when 16#00AA29# .. 16#00AA2E# => MARK_NONSPACING, when 16#00AA2F# .. 16#00AA30# => MARK_SPACING_COMBINING, when 16#00AA31# .. 16#00AA32# => MARK_NONSPACING, when 16#00AA33# .. 16#00AA34# => MARK_SPACING_COMBINING, when 16#00AA35# .. 16#00AA36# => MARK_NONSPACING, when 16#00AA40# .. 16#00AA42# => LETTER_OTHER, when 16#00AA43# => MARK_NONSPACING, when 16#00AA44# .. 16#00AA4B# => LETTER_OTHER, when 16#00AA4C# => MARK_NONSPACING, when 16#00AA4D# => MARK_SPACING_COMBINING, when 16#00AA50# .. 16#00AA59# => NUMBER_DECIMAL_DIGIT, when 16#00AA5C# .. 16#00AA5F# => PUNCTUATION_OTHER, when 16#00AA60# .. 16#00AA6F# => LETTER_OTHER, when 16#00AA70# => LETTER_MODIFIER, when 16#00AA71# .. 16#00AA76# => LETTER_OTHER, when 16#00AA77# .. 16#00AA79# => SYMBOL_OTHER, when 16#00AA7A# => LETTER_OTHER, when 16#00AA7B# => MARK_SPACING_COMBINING, when 16#00AA7C# => MARK_NONSPACING, when 16#00AA7D# => MARK_SPACING_COMBINING, when 16#00AA7E# .. 16#00AAAF# => LETTER_OTHER, when 16#00AAB0# => MARK_NONSPACING, when 16#00AAB1# => LETTER_OTHER, when 16#00AAB2# .. 16#00AAB4# => MARK_NONSPACING, when 16#00AAB5# .. 16#00AAB6# => LETTER_OTHER, when 16#00AAB7# .. 16#00AAB8# => MARK_NONSPACING, when 16#00AAB9# .. 16#00AABD# => LETTER_OTHER, when 16#00AABE# .. 16#00AABF# => MARK_NONSPACING, when 16#00AAC0# => LETTER_OTHER, when 16#00AAC1# => MARK_NONSPACING, when 16#00AAC2# => LETTER_OTHER, when 16#00AADB# .. 16#00AADC# => LETTER_OTHER, when 16#00AADD# => LETTER_MODIFIER, when 16#00AADE# .. 16#00AADF# => PUNCTUATION_OTHER, when 16#00AAE0# .. 16#00AAEA# => LETTER_OTHER, when 16#00AAEB# => MARK_SPACING_COMBINING, when 16#00AAEC# .. 16#00AAED# => MARK_NONSPACING, when 16#00AAEE# .. 16#00AAEF# => MARK_SPACING_COMBINING, when 16#00AAF0# .. 16#00AAF1# => PUNCTUATION_OTHER, when 16#00AAF2# => LETTER_OTHER, when 16#00AAF3# .. 16#00AAF4# => LETTER_MODIFIER, when 16#00AAF5# => MARK_SPACING_COMBINING, when 16#00AAF6# => MARK_NONSPACING, when 16#00AB01# .. 16#00AB06# => LETTER_OTHER, when 16#00AB09# .. 16#00AB0E# => LETTER_OTHER, when 16#00AB11# .. 16#00AB16# => LETTER_OTHER, when 16#00AB20# .. 16#00AB26# => LETTER_OTHER, when 16#00AB28# .. 16#00AB2E# => LETTER_OTHER, when 16#00AB30# .. 16#00AB5A# => LETTER_LOWERCASE, when 16#00AB5B# => SYMBOL_MODIFIER, when 16#00AB5C# .. 16#00AB5F# => LETTER_MODIFIER, when 16#00AB60# .. 16#00AB67# => LETTER_LOWERCASE, when 16#00AB70# .. 16#00ABBF# => LETTER_LOWERCASE, when 16#00ABC0# .. 16#00ABE2# => LETTER_OTHER, when 16#00ABE3# .. 16#00ABE4# => MARK_SPACING_COMBINING, when 16#00ABE5# => MARK_NONSPACING, when 16#00ABE6# .. 16#00ABE7# => MARK_SPACING_COMBINING, when 16#00ABE8# => MARK_NONSPACING, when 16#00ABE9# .. 16#00ABEA# => MARK_SPACING_COMBINING, when 16#00ABEB# => PUNCTUATION_OTHER, when 16#00ABEC# => MARK_SPACING_COMBINING, when 16#00ABED# => MARK_NONSPACING, when 16#00ABF0# .. 16#00ABF9# => NUMBER_DECIMAL_DIGIT, when 16#00AC00# .. 16#00D7A3# => LETTER_OTHER, when 16#00D7B0# .. 16#00D7C6# => LETTER_OTHER, when 16#00D7CB# .. 16#00D7FB# => LETTER_OTHER, when 16#00D800# .. 16#00DFFF# => OTHER_SURROGATE, when 16#00E000# .. 16#00F8FF# => OTHER_PRIVATE_USE, when 16#00F900# .. 16#00FA6D# => LETTER_OTHER, when 16#00FA70# .. 16#00FAD9# => LETTER_OTHER, when 16#00FB00# .. 16#00FB06# => LETTER_LOWERCASE, when 16#00FB13# .. 16#00FB17# => LETTER_LOWERCASE, when 16#00FB1D# => LETTER_OTHER, when 16#00FB1E# => MARK_NONSPACING, when 16#00FB1F# .. 16#00FB28# => LETTER_OTHER, when 16#00FB29# => SYMBOL_MATH, when 16#00FB2A# .. 16#00FB36# => LETTER_OTHER, when 16#00FB38# .. 16#00FB3C# => LETTER_OTHER, when 16#00FB3E# => LETTER_OTHER, when 16#00FB40# .. 16#00FB41# => LETTER_OTHER, when 16#00FB43# .. 16#00FB44# => LETTER_OTHER, when 16#00FB46# .. 16#00FBB1# => LETTER_OTHER, when 16#00FBB2# .. 16#00FBC1# => SYMBOL_MODIFIER, when 16#00FBD3# .. 16#00FD3D# => LETTER_OTHER, when 16#00FD3E# => PUNCTUATION_CLOSE, when 16#00FD3F# => PUNCTUATION_OPEN, when 16#00FD50# .. 16#00FD8F# => LETTER_OTHER, when 16#00FD92# .. 16#00FDC7# => LETTER_OTHER, when 16#00FDF0# .. 16#00FDFB# => LETTER_OTHER, when 16#00FDFC# => SYMBOL_CURRENCY, when 16#00FDFD# => SYMBOL_OTHER, when 16#00FE00# .. 16#00FE0F# => MARK_NONSPACING, when 16#00FE10# .. 16#00FE16# => PUNCTUATION_OTHER, when 16#00FE17# => PUNCTUATION_OPEN, when 16#00FE18# => PUNCTUATION_CLOSE, when 16#00FE19# => PUNCTUATION_OTHER, when 16#00FE20# .. 16#00FE2F# => MARK_NONSPACING, when 16#00FE30# => PUNCTUATION_OTHER, when 16#00FE31# .. 16#00FE32# => PUNCTUATION_DASH, when 16#00FE33# .. 16#00FE34# => PUNCTUATION_CONNECTOR, when 16#00FE35# => PUNCTUATION_OPEN, when 16#00FE36# => PUNCTUATION_CLOSE, when 16#00FE37# => PUNCTUATION_OPEN, when 16#00FE38# => PUNCTUATION_CLOSE, when 16#00FE39# => PUNCTUATION_OPEN, when 16#00FE3A# => PUNCTUATION_CLOSE, when 16#00FE3B# => PUNCTUATION_OPEN, when 16#00FE3C# => PUNCTUATION_CLOSE, when 16#00FE3D# => PUNCTUATION_OPEN, when 16#00FE3E# => PUNCTUATION_CLOSE, when 16#00FE3F# => PUNCTUATION_OPEN, when 16#00FE40# => PUNCTUATION_CLOSE, when 16#00FE41# => PUNCTUATION_OPEN, when 16#00FE42# => PUNCTUATION_CLOSE, when 16#00FE43# => PUNCTUATION_OPEN, when 16#00FE44# => PUNCTUATION_CLOSE, when 16#00FE45# .. 16#00FE46# => PUNCTUATION_OTHER, when 16#00FE47# => PUNCTUATION_OPEN, when 16#00FE48# => PUNCTUATION_CLOSE, when 16#00FE49# .. 16#00FE4C# => PUNCTUATION_OTHER, when 16#00FE4D# .. 16#00FE4F# => PUNCTUATION_CONNECTOR, when 16#00FE50# .. 16#00FE52# => PUNCTUATION_OTHER, when 16#00FE54# .. 16#00FE57# => PUNCTUATION_OTHER, when 16#00FE58# => PUNCTUATION_DASH, when 16#00FE59# => PUNCTUATION_OPEN, when 16#00FE5A# => PUNCTUATION_CLOSE, when 16#00FE5B# => PUNCTUATION_OPEN, when 16#00FE5C# => PUNCTUATION_CLOSE, when 16#00FE5D# => PUNCTUATION_OPEN, when 16#00FE5E# => PUNCTUATION_CLOSE, when 16#00FE5F# .. 16#00FE61# => PUNCTUATION_OTHER, when 16#00FE62# => SYMBOL_MATH, when 16#00FE63# => PUNCTUATION_DASH, when 16#00FE64# .. 16#00FE66# => SYMBOL_MATH, when 16#00FE68# => PUNCTUATION_OTHER, when 16#00FE69# => SYMBOL_CURRENCY, when 16#00FE6A# .. 16#00FE6B# => PUNCTUATION_OTHER, when 16#00FE70# .. 16#00FE74# => LETTER_OTHER, when 16#00FE76# .. 16#00FEFC# => LETTER_OTHER, when 16#00FEFF# => OTHER_FORMAT, when 16#00FF01# .. 16#00FF03# => PUNCTUATION_OTHER, when 16#00FF04# => SYMBOL_CURRENCY, when 16#00FF05# .. 16#00FF07# => PUNCTUATION_OTHER, when 16#00FF08# => PUNCTUATION_OPEN, when 16#00FF09# => PUNCTUATION_CLOSE, when 16#00FF0A# => PUNCTUATION_OTHER, when 16#00FF0B# => SYMBOL_MATH, when 16#00FF0C# => PUNCTUATION_OTHER, when 16#00FF0D# => PUNCTUATION_DASH, when 16#00FF0E# .. 16#00FF0F# => PUNCTUATION_OTHER, when 16#00FF10# .. 16#00FF19# => NUMBER_DECIMAL_DIGIT, when 16#00FF1A# .. 16#00FF1B# => PUNCTUATION_OTHER, when 16#00FF1C# .. 16#00FF1E# => SYMBOL_MATH, when 16#00FF1F# .. 16#00FF20# => PUNCTUATION_OTHER, when 16#00FF21# .. 16#00FF3A# => LETTER_UPPERCASE, when 16#00FF3B# => PUNCTUATION_OPEN, when 16#00FF3C# => PUNCTUATION_OTHER, when 16#00FF3D# => PUNCTUATION_CLOSE, when 16#00FF3E# => SYMBOL_MODIFIER, when 16#00FF3F# => PUNCTUATION_CONNECTOR, when 16#00FF40# => SYMBOL_MODIFIER, when 16#00FF41# .. 16#00FF5A# => LETTER_LOWERCASE, when 16#00FF5B# => PUNCTUATION_OPEN, when 16#00FF5C# => SYMBOL_MATH, when 16#00FF5D# => PUNCTUATION_CLOSE, when 16#00FF5E# => SYMBOL_MATH, when 16#00FF5F# => PUNCTUATION_OPEN, when 16#00FF60# => PUNCTUATION_CLOSE, when 16#00FF61# => PUNCTUATION_OTHER, when 16#00FF62# => PUNCTUATION_OPEN, when 16#00FF63# => PUNCTUATION_CLOSE, when 16#00FF64# .. 16#00FF65# => PUNCTUATION_OTHER, when 16#00FF66# .. 16#00FF6F# => LETTER_OTHER, when 16#00FF70# => LETTER_MODIFIER, when 16#00FF71# .. 16#00FF9D# => LETTER_OTHER, when 16#00FF9E# .. 16#00FF9F# => LETTER_MODIFIER, when 16#00FFA0# .. 16#00FFBE# => LETTER_OTHER, when 16#00FFC2# .. 16#00FFC7# => LETTER_OTHER, when 16#00FFCA# .. 16#00FFCF# => LETTER_OTHER, when 16#00FFD2# .. 16#00FFD7# => LETTER_OTHER, when 16#00FFDA# .. 16#00FFDC# => LETTER_OTHER, when 16#00FFE0# .. 16#00FFE1# => SYMBOL_CURRENCY, when 16#00FFE2# => SYMBOL_MATH, when 16#00FFE3# => SYMBOL_MODIFIER, when 16#00FFE4# => SYMBOL_OTHER, when 16#00FFE5# .. 16#00FFE6# => SYMBOL_CURRENCY, when 16#00FFE8# => SYMBOL_OTHER, when 16#00FFE9# .. 16#00FFEC# => SYMBOL_MATH, when 16#00FFED# .. 16#00FFEE# => SYMBOL_OTHER, when 16#00FFF9# .. 16#00FFFB# => OTHER_FORMAT, when 16#00FFFC# .. 16#00FFFD# => SYMBOL_OTHER, when others => OTHER_NOT_ASSIGNED) with Inline; function Plane_01_Lookup (C: Codepoint) return General_Category_Type is (case C is when 16#010000# .. 16#01000B# => LETTER_OTHER, when 16#01000D# .. 16#010026# => LETTER_OTHER, when 16#010028# .. 16#01003A# => LETTER_OTHER, when 16#01003C# .. 16#01003D# => LETTER_OTHER, when 16#01003F# .. 16#01004D# => LETTER_OTHER, when 16#010050# .. 16#01005D# => LETTER_OTHER, when 16#010080# .. 16#0100FA# => LETTER_OTHER, when 16#010100# .. 16#010102# => PUNCTUATION_OTHER, when 16#010107# .. 16#010133# => NUMBER_OTHER, when 16#010137# .. 16#01013F# => SYMBOL_OTHER, when 16#010140# .. 16#010174# => NUMBER_LETTER, when 16#010175# .. 16#010178# => NUMBER_OTHER, when 16#010179# .. 16#010189# => SYMBOL_OTHER, when 16#01018A# .. 16#01018B# => NUMBER_OTHER, when 16#01018C# .. 16#01018E# => SYMBOL_OTHER, when 16#010190# .. 16#01019B# => SYMBOL_OTHER, when 16#0101A0# => SYMBOL_OTHER, when 16#0101D0# .. 16#0101FC# => SYMBOL_OTHER, when 16#0101FD# => MARK_NONSPACING, when 16#010280# .. 16#01029C# => LETTER_OTHER, when 16#0102A0# .. 16#0102D0# => LETTER_OTHER, when 16#0102E0# => MARK_NONSPACING, when 16#0102E1# .. 16#0102FB# => NUMBER_OTHER, when 16#010300# .. 16#01031F# => LETTER_OTHER, when 16#010320# .. 16#010323# => NUMBER_OTHER, when 16#01032D# .. 16#010340# => LETTER_OTHER, when 16#010341# => NUMBER_LETTER, when 16#010342# .. 16#010349# => LETTER_OTHER, when 16#01034A# => NUMBER_LETTER, when 16#010350# .. 16#010375# => LETTER_OTHER, when 16#010376# .. 16#01037A# => MARK_NONSPACING, when 16#010380# .. 16#01039D# => LETTER_OTHER, when 16#01039F# => PUNCTUATION_OTHER, when 16#0103A0# .. 16#0103C3# => LETTER_OTHER, when 16#0103C8# .. 16#0103CF# => LETTER_OTHER, when 16#0103D0# => PUNCTUATION_OTHER, when 16#0103D1# .. 16#0103D5# => NUMBER_LETTER, when 16#010400# .. 16#010427# => LETTER_UPPERCASE, when 16#010428# .. 16#01044F# => LETTER_LOWERCASE, when 16#010450# .. 16#01049D# => LETTER_OTHER, when 16#0104A0# .. 16#0104A9# => NUMBER_DECIMAL_DIGIT, when 16#0104B0# .. 16#0104D3# => LETTER_UPPERCASE, when 16#0104D8# .. 16#0104FB# => LETTER_LOWERCASE, when 16#010500# .. 16#010527# => LETTER_OTHER, when 16#010530# .. 16#010563# => LETTER_OTHER, when 16#01056F# => PUNCTUATION_OTHER, when 16#010600# .. 16#010736# => LETTER_OTHER, when 16#010740# .. 16#010755# => LETTER_OTHER, when 16#010760# .. 16#010767# => LETTER_OTHER, when 16#010800# .. 16#010805# => LETTER_OTHER, when 16#010808# => LETTER_OTHER, when 16#01080A# .. 16#010835# => LETTER_OTHER, when 16#010837# .. 16#010838# => LETTER_OTHER, when 16#01083C# => LETTER_OTHER, when 16#01083F# .. 16#010855# => LETTER_OTHER, when 16#010857# => PUNCTUATION_OTHER, when 16#010858# .. 16#01085F# => NUMBER_OTHER, when 16#010860# .. 16#010876# => LETTER_OTHER, when 16#010877# .. 16#010878# => SYMBOL_OTHER, when 16#010879# .. 16#01087F# => NUMBER_OTHER, when 16#010880# .. 16#01089E# => LETTER_OTHER, when 16#0108A7# .. 16#0108AF# => NUMBER_OTHER, when 16#0108E0# .. 16#0108F2# => LETTER_OTHER, when 16#0108F4# .. 16#0108F5# => LETTER_OTHER, when 16#0108FB# .. 16#0108FF# => NUMBER_OTHER, when 16#010900# .. 16#010915# => LETTER_OTHER, when 16#010916# .. 16#01091B# => NUMBER_OTHER, when 16#01091F# => PUNCTUATION_OTHER, when 16#010920# .. 16#010939# => LETTER_OTHER, when 16#01093F# => PUNCTUATION_OTHER, when 16#010980# .. 16#0109B7# => LETTER_OTHER, when 16#0109BC# .. 16#0109BD# => NUMBER_OTHER, when 16#0109BE# .. 16#0109BF# => LETTER_OTHER, when 16#0109C0# .. 16#0109CF# => NUMBER_OTHER, when 16#0109D2# .. 16#0109FF# => NUMBER_OTHER, when 16#010A00# => LETTER_OTHER, when 16#010A01# .. 16#010A03# => MARK_NONSPACING, when 16#010A05# .. 16#010A06# => MARK_NONSPACING, when 16#010A0C# .. 16#010A0F# => MARK_NONSPACING, when 16#010A10# .. 16#010A13# => LETTER_OTHER, when 16#010A15# .. 16#010A17# => LETTER_OTHER, when 16#010A19# .. 16#010A35# => LETTER_OTHER, when 16#010A38# .. 16#010A3A# => MARK_NONSPACING, when 16#010A3F# => MARK_NONSPACING, when 16#010A40# .. 16#010A48# => NUMBER_OTHER, when 16#010A50# .. 16#010A58# => PUNCTUATION_OTHER, when 16#010A60# .. 16#010A7C# => LETTER_OTHER, when 16#010A7D# .. 16#010A7E# => NUMBER_OTHER, when 16#010A7F# => PUNCTUATION_OTHER, when 16#010A80# .. 16#010A9C# => LETTER_OTHER, when 16#010A9D# .. 16#010A9F# => NUMBER_OTHER, when 16#010AC0# .. 16#010AC7# => LETTER_OTHER, when 16#010AC8# => SYMBOL_OTHER, when 16#010AC9# .. 16#010AE4# => LETTER_OTHER, when 16#010AE5# .. 16#010AE6# => MARK_NONSPACING, when 16#010AEB# .. 16#010AEF# => NUMBER_OTHER, when 16#010AF0# .. 16#010AF6# => PUNCTUATION_OTHER, when 16#010B00# .. 16#010B35# => LETTER_OTHER, when 16#010B39# .. 16#010B3F# => PUNCTUATION_OTHER, when 16#010B40# .. 16#010B55# => LETTER_OTHER, when 16#010B58# .. 16#010B5F# => NUMBER_OTHER, when 16#010B60# .. 16#010B72# => LETTER_OTHER, when 16#010B78# .. 16#010B7F# => NUMBER_OTHER, when 16#010B80# .. 16#010B91# => LETTER_OTHER, when 16#010B99# .. 16#010B9C# => PUNCTUATION_OTHER, when 16#010BA9# .. 16#010BAF# => NUMBER_OTHER, when 16#010C00# .. 16#010C48# => LETTER_OTHER, when 16#010C80# .. 16#010CB2# => LETTER_UPPERCASE, when 16#010CC0# .. 16#010CF2# => LETTER_LOWERCASE, when 16#010CFA# .. 16#010CFF# => NUMBER_OTHER, when 16#010D00# .. 16#010D23# => LETTER_OTHER, when 16#010D24# .. 16#010D27# => MARK_NONSPACING, when 16#010D30# .. 16#010D39# => NUMBER_DECIMAL_DIGIT, when 16#010E60# .. 16#010E7E# => NUMBER_OTHER, when 16#010F00# .. 16#010F1C# => LETTER_OTHER, when 16#010F1D# .. 16#010F26# => NUMBER_OTHER, when 16#010F27# => LETTER_OTHER, when 16#010F30# .. 16#010F45# => LETTER_OTHER, when 16#010F46# .. 16#010F50# => MARK_NONSPACING, when 16#010F51# .. 16#010F54# => NUMBER_OTHER, when 16#010F55# .. 16#010F59# => PUNCTUATION_OTHER, when 16#010FE0# .. 16#010FF6# => LETTER_OTHER, when 16#011000# => MARK_SPACING_COMBINING, when 16#011001# => MARK_NONSPACING, when 16#011002# => MARK_SPACING_COMBINING, when 16#011003# .. 16#011037# => LETTER_OTHER, when 16#011038# .. 16#011046# => MARK_NONSPACING, when 16#011047# .. 16#01104D# => PUNCTUATION_OTHER, when 16#011052# .. 16#011065# => NUMBER_OTHER, when 16#011066# .. 16#01106F# => NUMBER_DECIMAL_DIGIT, when 16#01107F# .. 16#011081# => MARK_NONSPACING, when 16#011082# => MARK_SPACING_COMBINING, when 16#011083# .. 16#0110AF# => LETTER_OTHER, when 16#0110B0# .. 16#0110B2# => MARK_SPACING_COMBINING, when 16#0110B3# .. 16#0110B6# => MARK_NONSPACING, when 16#0110B7# .. 16#0110B8# => MARK_SPACING_COMBINING, when 16#0110B9# .. 16#0110BA# => MARK_NONSPACING, when 16#0110BB# .. 16#0110BC# => PUNCTUATION_OTHER, when 16#0110BD# => OTHER_FORMAT, when 16#0110BE# .. 16#0110C1# => PUNCTUATION_OTHER, when 16#0110CD# => OTHER_FORMAT, when 16#0110D0# .. 16#0110E8# => LETTER_OTHER, when 16#0110F0# .. 16#0110F9# => NUMBER_DECIMAL_DIGIT, when 16#011100# .. 16#011102# => MARK_NONSPACING, when 16#011103# .. 16#011126# => LETTER_OTHER, when 16#011127# .. 16#01112B# => MARK_NONSPACING, when 16#01112C# => MARK_SPACING_COMBINING, when 16#01112D# .. 16#011134# => MARK_NONSPACING, when 16#011136# .. 16#01113F# => NUMBER_DECIMAL_DIGIT, when 16#011140# .. 16#011143# => PUNCTUATION_OTHER, when 16#011144# => LETTER_OTHER, when 16#011145# .. 16#011146# => MARK_SPACING_COMBINING, when 16#011150# .. 16#011172# => LETTER_OTHER, when 16#011173# => MARK_NONSPACING, when 16#011174# .. 16#011175# => PUNCTUATION_OTHER, when 16#011176# => LETTER_OTHER, when 16#011180# .. 16#011181# => MARK_NONSPACING, when 16#011182# => MARK_SPACING_COMBINING, when 16#011183# .. 16#0111B2# => LETTER_OTHER, when 16#0111B3# .. 16#0111B5# => MARK_SPACING_COMBINING, when 16#0111B6# .. 16#0111BE# => MARK_NONSPACING, when 16#0111BF# .. 16#0111C0# => MARK_SPACING_COMBINING, when 16#0111C1# .. 16#0111C4# => LETTER_OTHER, when 16#0111C5# .. 16#0111C8# => PUNCTUATION_OTHER, when 16#0111C9# .. 16#0111CC# => MARK_NONSPACING, when 16#0111CD# => PUNCTUATION_OTHER, when 16#0111D0# .. 16#0111D9# => NUMBER_DECIMAL_DIGIT, when 16#0111DA# => LETTER_OTHER, when 16#0111DB# => PUNCTUATION_OTHER, when 16#0111DC# => LETTER_OTHER, when 16#0111DD# .. 16#0111DF# => PUNCTUATION_OTHER, when 16#0111E1# .. 16#0111F4# => NUMBER_OTHER, when 16#011200# .. 16#011211# => LETTER_OTHER, when 16#011213# .. 16#01122B# => LETTER_OTHER, when 16#01122C# .. 16#01122E# => MARK_SPACING_COMBINING, when 16#01122F# .. 16#011231# => MARK_NONSPACING, when 16#011232# .. 16#011233# => MARK_SPACING_COMBINING, when 16#011234# => MARK_NONSPACING, when 16#011235# => MARK_SPACING_COMBINING, when 16#011236# .. 16#011237# => MARK_NONSPACING, when 16#011238# .. 16#01123D# => PUNCTUATION_OTHER, when 16#01123E# => MARK_NONSPACING, when 16#011280# .. 16#011286# => LETTER_OTHER, when 16#011288# => LETTER_OTHER, when 16#01128A# .. 16#01128D# => LETTER_OTHER, when 16#01128F# .. 16#01129D# => LETTER_OTHER, when 16#01129F# .. 16#0112A8# => LETTER_OTHER, when 16#0112A9# => PUNCTUATION_OTHER, when 16#0112B0# .. 16#0112DE# => LETTER_OTHER, when 16#0112DF# => MARK_NONSPACING, when 16#0112E0# .. 16#0112E2# => MARK_SPACING_COMBINING, when 16#0112E3# .. 16#0112EA# => MARK_NONSPACING, when 16#0112F0# .. 16#0112F9# => NUMBER_DECIMAL_DIGIT, when 16#011300# .. 16#011301# => MARK_NONSPACING, when 16#011302# .. 16#011303# => MARK_SPACING_COMBINING, when 16#011305# .. 16#01130C# => LETTER_OTHER, when 16#01130F# .. 16#011310# => LETTER_OTHER, when 16#011313# .. 16#011328# => LETTER_OTHER, when 16#01132A# .. 16#011330# => LETTER_OTHER, when 16#011332# .. 16#011333# => LETTER_OTHER, when 16#011335# .. 16#011339# => LETTER_OTHER, when 16#01133B# .. 16#01133C# => MARK_NONSPACING, when 16#01133D# => LETTER_OTHER, when 16#01133E# .. 16#01133F# => MARK_SPACING_COMBINING, when 16#011340# => MARK_NONSPACING, when 16#011341# .. 16#011344# => MARK_SPACING_COMBINING, when 16#011347# .. 16#011348# => MARK_SPACING_COMBINING, when 16#01134B# .. 16#01134D# => MARK_SPACING_COMBINING, when 16#011350# => LETTER_OTHER, when 16#011357# => MARK_SPACING_COMBINING, when 16#01135D# .. 16#011361# => LETTER_OTHER, when 16#011362# .. 16#011363# => MARK_SPACING_COMBINING, when 16#011366# .. 16#01136C# => MARK_NONSPACING, when 16#011370# .. 16#011374# => MARK_NONSPACING, when 16#011400# .. 16#011434# => LETTER_OTHER, when 16#011435# .. 16#011437# => MARK_SPACING_COMBINING, when 16#011438# .. 16#01143F# => MARK_NONSPACING, when 16#011440# .. 16#011441# => MARK_SPACING_COMBINING, when 16#011442# .. 16#011444# => MARK_NONSPACING, when 16#011445# => MARK_SPACING_COMBINING, when 16#011446# => MARK_NONSPACING, when 16#011447# .. 16#01144A# => LETTER_OTHER, when 16#01144B# .. 16#01144F# => PUNCTUATION_OTHER, when 16#011450# .. 16#011459# => NUMBER_DECIMAL_DIGIT, when 16#01145B# => PUNCTUATION_OTHER, when 16#01145D# => PUNCTUATION_OTHER, when 16#01145E# => MARK_NONSPACING, when 16#01145F# => LETTER_OTHER, when 16#011480# .. 16#0114AF# => LETTER_OTHER, when 16#0114B0# .. 16#0114B2# => MARK_SPACING_COMBINING, when 16#0114B3# .. 16#0114B8# => MARK_NONSPACING, when 16#0114B9# => MARK_SPACING_COMBINING, when 16#0114BA# => MARK_NONSPACING, when 16#0114BB# .. 16#0114BE# => MARK_SPACING_COMBINING, when 16#0114BF# .. 16#0114C0# => MARK_NONSPACING, when 16#0114C1# => MARK_SPACING_COMBINING, when 16#0114C2# .. 16#0114C3# => MARK_NONSPACING, when 16#0114C4# .. 16#0114C5# => LETTER_OTHER, when 16#0114C6# => PUNCTUATION_OTHER, when 16#0114C7# => LETTER_OTHER, when 16#0114D0# .. 16#0114D9# => NUMBER_DECIMAL_DIGIT, when 16#011580# .. 16#0115AE# => LETTER_OTHER, when 16#0115AF# .. 16#0115B1# => MARK_SPACING_COMBINING, when 16#0115B2# .. 16#0115B5# => MARK_NONSPACING, when 16#0115B8# .. 16#0115BB# => MARK_SPACING_COMBINING, when 16#0115BC# .. 16#0115BD# => MARK_NONSPACING, when 16#0115BE# => MARK_SPACING_COMBINING, when 16#0115BF# .. 16#0115C0# => MARK_NONSPACING, when 16#0115C1# .. 16#0115D7# => PUNCTUATION_OTHER, when 16#0115D8# .. 16#0115DB# => LETTER_OTHER, when 16#0115DC# .. 16#0115DD# => MARK_NONSPACING, when 16#011600# .. 16#01162F# => LETTER_OTHER, when 16#011630# .. 16#011632# => MARK_SPACING_COMBINING, when 16#011633# .. 16#01163A# => MARK_NONSPACING, when 16#01163B# .. 16#01163C# => MARK_SPACING_COMBINING, when 16#01163D# => MARK_NONSPACING, when 16#01163E# => MARK_SPACING_COMBINING, when 16#01163F# .. 16#011640# => MARK_NONSPACING, when 16#011641# .. 16#011643# => PUNCTUATION_OTHER, when 16#011644# => LETTER_OTHER, when 16#011650# .. 16#011659# => NUMBER_DECIMAL_DIGIT, when 16#011660# .. 16#01166C# => PUNCTUATION_OTHER, when 16#011680# .. 16#0116AA# => LETTER_OTHER, when 16#0116AB# => MARK_NONSPACING, when 16#0116AC# => MARK_SPACING_COMBINING, when 16#0116AD# => MARK_NONSPACING, when 16#0116AE# .. 16#0116AF# => MARK_SPACING_COMBINING, when 16#0116B0# .. 16#0116B5# => MARK_NONSPACING, when 16#0116B6# => MARK_SPACING_COMBINING, when 16#0116B7# => MARK_NONSPACING, when 16#0116B8# => LETTER_OTHER, when 16#0116C0# .. 16#0116C9# => NUMBER_DECIMAL_DIGIT, when 16#011700# .. 16#01171A# => LETTER_OTHER, when 16#01171D# .. 16#01171F# => MARK_NONSPACING, when 16#011720# .. 16#011721# => MARK_SPACING_COMBINING, when 16#011722# .. 16#011725# => MARK_NONSPACING, when 16#011726# => MARK_SPACING_COMBINING, when 16#011727# .. 16#01172B# => MARK_NONSPACING, when 16#011730# .. 16#011739# => NUMBER_DECIMAL_DIGIT, when 16#01173A# .. 16#01173B# => NUMBER_OTHER, when 16#01173C# .. 16#01173E# => PUNCTUATION_OTHER, when 16#01173F# => SYMBOL_OTHER, when 16#011800# .. 16#01182B# => LETTER_OTHER, when 16#01182C# .. 16#01182E# => MARK_SPACING_COMBINING, when 16#01182F# .. 16#011837# => MARK_NONSPACING, when 16#011838# => MARK_SPACING_COMBINING, when 16#011839# .. 16#01183A# => MARK_NONSPACING, when 16#01183B# => PUNCTUATION_OTHER, when 16#0118A0# .. 16#0118BF# => LETTER_UPPERCASE, when 16#0118C0# .. 16#0118DF# => LETTER_LOWERCASE, when 16#0118E0# .. 16#0118E9# => NUMBER_DECIMAL_DIGIT, when 16#0118EA# .. 16#0118F2# => NUMBER_OTHER, when 16#0118FF# => LETTER_OTHER, when 16#0119A0# .. 16#0119A7# => LETTER_OTHER, when 16#0119AA# .. 16#0119D0# => LETTER_OTHER, when 16#0119D1# .. 16#0119D3# => MARK_SPACING_COMBINING, when 16#0119D4# .. 16#0119D7# => MARK_NONSPACING, when 16#0119DA# .. 16#0119DB# => MARK_NONSPACING, when 16#0119DC# .. 16#0119DF# => MARK_SPACING_COMBINING, when 16#0119E0# => MARK_NONSPACING, when 16#0119E1# => LETTER_OTHER, when 16#0119E2# => PUNCTUATION_OTHER, when 16#0119E3# => LETTER_OTHER, when 16#0119E4# => MARK_SPACING_COMBINING, when 16#011A00# => LETTER_OTHER, when 16#011A01# .. 16#011A0A# => MARK_NONSPACING, when 16#011A0B# .. 16#011A32# => LETTER_OTHER, when 16#011A33# .. 16#011A38# => MARK_NONSPACING, when 16#011A39# => MARK_SPACING_COMBINING, when 16#011A3A# => LETTER_OTHER, when 16#011A3B# .. 16#011A3E# => MARK_NONSPACING, when 16#011A3F# .. 16#011A46# => PUNCTUATION_OTHER, when 16#011A47# => MARK_NONSPACING, when 16#011A50# => LETTER_OTHER, when 16#011A51# .. 16#011A56# => MARK_NONSPACING, when 16#011A57# .. 16#011A58# => MARK_SPACING_COMBINING, when 16#011A59# .. 16#011A5B# => MARK_NONSPACING, when 16#011A5C# .. 16#011A89# => LETTER_OTHER, when 16#011A8A# .. 16#011A96# => MARK_NONSPACING, when 16#011A97# => MARK_SPACING_COMBINING, when 16#011A98# .. 16#011A99# => MARK_NONSPACING, when 16#011A9A# .. 16#011A9C# => PUNCTUATION_OTHER, when 16#011A9D# => LETTER_OTHER, when 16#011A9E# .. 16#011AA2# => PUNCTUATION_OTHER, when 16#011AC0# .. 16#011AF8# => LETTER_OTHER, when 16#011C00# .. 16#011C08# => LETTER_OTHER, when 16#011C0A# .. 16#011C2E# => LETTER_OTHER, when 16#011C2F# => MARK_SPACING_COMBINING, when 16#011C30# .. 16#011C36# => MARK_NONSPACING, when 16#011C38# .. 16#011C3D# => MARK_NONSPACING, when 16#011C3E# => MARK_SPACING_COMBINING, when 16#011C3F# => MARK_NONSPACING, when 16#011C40# => LETTER_OTHER, when 16#011C41# .. 16#011C45# => PUNCTUATION_OTHER, when 16#011C50# .. 16#011C59# => NUMBER_DECIMAL_DIGIT, when 16#011C5A# .. 16#011C6C# => NUMBER_OTHER, when 16#011C70# .. 16#011C71# => PUNCTUATION_OTHER, when 16#011C72# .. 16#011C8F# => LETTER_OTHER, when 16#011C92# .. 16#011CA7# => MARK_NONSPACING, when 16#011CA9# => MARK_SPACING_COMBINING, when 16#011CAA# .. 16#011CB0# => MARK_NONSPACING, when 16#011CB1# => MARK_SPACING_COMBINING, when 16#011CB2# .. 16#011CB3# => MARK_NONSPACING, when 16#011CB4# => MARK_SPACING_COMBINING, when 16#011CB5# .. 16#011CB6# => MARK_NONSPACING, when 16#011D00# .. 16#011D06# => LETTER_OTHER, when 16#011D08# .. 16#011D09# => LETTER_OTHER, when 16#011D0B# .. 16#011D30# => LETTER_OTHER, when 16#011D31# .. 16#011D36# => MARK_NONSPACING, when 16#011D3A# => MARK_NONSPACING, when 16#011D3C# .. 16#011D3D# => MARK_NONSPACING, when 16#011D3F# .. 16#011D45# => MARK_NONSPACING, when 16#011D46# => LETTER_OTHER, when 16#011D47# => MARK_NONSPACING, when 16#011D50# .. 16#011D59# => NUMBER_DECIMAL_DIGIT, when 16#011D60# .. 16#011D65# => LETTER_OTHER, when 16#011D67# .. 16#011D68# => LETTER_OTHER, when 16#011D6A# .. 16#011D89# => LETTER_OTHER, when 16#011D8A# .. 16#011D8E# => MARK_SPACING_COMBINING, when 16#011D90# .. 16#011D91# => MARK_NONSPACING, when 16#011D93# .. 16#011D94# => MARK_SPACING_COMBINING, when 16#011D95# => MARK_NONSPACING, when 16#011D96# => MARK_SPACING_COMBINING, when 16#011D97# => MARK_NONSPACING, when 16#011D98# => LETTER_OTHER, when 16#011DA0# .. 16#011DA9# => NUMBER_DECIMAL_DIGIT, when 16#011EE0# .. 16#011EF2# => LETTER_OTHER, when 16#011EF3# .. 16#011EF4# => MARK_NONSPACING, when 16#011EF5# .. 16#011EF6# => MARK_SPACING_COMBINING, when 16#011EF7# .. 16#011EF8# => PUNCTUATION_OTHER, when 16#011FC0# .. 16#011FD4# => NUMBER_OTHER, when 16#011FD5# .. 16#011FDC# => SYMBOL_OTHER, when 16#011FDD# .. 16#011FE0# => SYMBOL_CURRENCY, when 16#011FE1# .. 16#011FF1# => SYMBOL_OTHER, when 16#011FFF# => PUNCTUATION_OTHER, when 16#012000# .. 16#012399# => LETTER_OTHER, when 16#012400# .. 16#01246E# => NUMBER_LETTER, when 16#012470# .. 16#012474# => PUNCTUATION_OTHER, when 16#012480# .. 16#012543# => LETTER_OTHER, when 16#013000# .. 16#01342E# => LETTER_OTHER, when 16#013430# .. 16#013438# => OTHER_FORMAT, when 16#014400# .. 16#014646# => LETTER_OTHER, when 16#016800# .. 16#016A38# => LETTER_OTHER, when 16#016A40# .. 16#016A5E# => LETTER_OTHER, when 16#016A60# .. 16#016A69# => NUMBER_DECIMAL_DIGIT, when 16#016A6E# .. 16#016A6F# => PUNCTUATION_OTHER, when 16#016AD0# .. 16#016AED# => LETTER_OTHER, when 16#016AF0# .. 16#016AF4# => MARK_NONSPACING, when 16#016AF5# => PUNCTUATION_OTHER, when 16#016B00# .. 16#016B2F# => LETTER_OTHER, when 16#016B30# .. 16#016B36# => MARK_NONSPACING, when 16#016B37# .. 16#016B3B# => PUNCTUATION_OTHER, when 16#016B3C# .. 16#016B3F# => SYMBOL_OTHER, when 16#016B40# .. 16#016B43# => LETTER_MODIFIER, when 16#016B44# => PUNCTUATION_OTHER, when 16#016B45# => SYMBOL_OTHER, when 16#016B50# .. 16#016B59# => NUMBER_DECIMAL_DIGIT, when 16#016B5B# .. 16#016B61# => NUMBER_OTHER, when 16#016B63# .. 16#016B77# => LETTER_OTHER, when 16#016B7D# .. 16#016B8F# => LETTER_OTHER, when 16#016E40# .. 16#016E5F# => LETTER_UPPERCASE, when 16#016E60# .. 16#016E7F# => LETTER_LOWERCASE, when 16#016E80# .. 16#016E96# => NUMBER_OTHER, when 16#016E97# .. 16#016E9A# => PUNCTUATION_OTHER, when 16#016F00# .. 16#016F4A# => LETTER_OTHER, when 16#016F4F# => MARK_NONSPACING, when 16#016F50# => LETTER_OTHER, when 16#016F51# .. 16#016F87# => MARK_SPACING_COMBINING, when 16#016F8F# .. 16#016F92# => MARK_NONSPACING, when 16#016F93# .. 16#016F9F# => LETTER_MODIFIER, when 16#016FE0# .. 16#016FE1# => LETTER_MODIFIER, when 16#016FE2# => PUNCTUATION_OTHER, when 16#016FE3# => LETTER_MODIFIER, when 16#017000# .. 16#0187F7# => LETTER_OTHER, when 16#018800# .. 16#018AF2# => LETTER_OTHER, when 16#01B000# .. 16#01B11E# => LETTER_OTHER, when 16#01B150# .. 16#01B152# => LETTER_OTHER, when 16#01B164# .. 16#01B167# => LETTER_OTHER, when 16#01B170# .. 16#01B2FB# => LETTER_OTHER, when 16#01BC00# .. 16#01BC6A# => LETTER_OTHER, when 16#01BC70# .. 16#01BC7C# => LETTER_OTHER, when 16#01BC80# .. 16#01BC88# => LETTER_OTHER, when 16#01BC90# .. 16#01BC99# => LETTER_OTHER, when 16#01BC9C# => SYMBOL_OTHER, when 16#01BC9D# .. 16#01BC9E# => MARK_NONSPACING, when 16#01BC9F# => PUNCTUATION_OTHER, when 16#01BCA0# .. 16#01BCA3# => OTHER_FORMAT, when 16#01D000# .. 16#01D0F5# => SYMBOL_OTHER, when 16#01D100# .. 16#01D126# => SYMBOL_OTHER, when 16#01D129# .. 16#01D164# => SYMBOL_OTHER, when 16#01D165# .. 16#01D166# => MARK_SPACING_COMBINING, when 16#01D167# .. 16#01D169# => MARK_NONSPACING, when 16#01D16A# .. 16#01D16C# => SYMBOL_OTHER, when 16#01D16D# .. 16#01D172# => MARK_SPACING_COMBINING, when 16#01D173# .. 16#01D17A# => OTHER_FORMAT, when 16#01D17B# .. 16#01D182# => MARK_NONSPACING, when 16#01D183# .. 16#01D184# => SYMBOL_OTHER, when 16#01D185# .. 16#01D18B# => MARK_NONSPACING, when 16#01D18C# .. 16#01D1A9# => SYMBOL_OTHER, when 16#01D1AA# .. 16#01D1AD# => MARK_NONSPACING, when 16#01D1AE# .. 16#01D1E8# => SYMBOL_OTHER, when 16#01D200# .. 16#01D241# => SYMBOL_OTHER, when 16#01D242# .. 16#01D244# => MARK_NONSPACING, when 16#01D245# => SYMBOL_OTHER, when 16#01D2E0# .. 16#01D2F3# => NUMBER_OTHER, when 16#01D300# .. 16#01D356# => SYMBOL_OTHER, when 16#01D360# .. 16#01D378# => NUMBER_OTHER, when 16#01D400# .. 16#01D419# => LETTER_UPPERCASE, when 16#01D41A# .. 16#01D433# => LETTER_LOWERCASE, when 16#01D434# .. 16#01D44D# => LETTER_UPPERCASE, when 16#01D44E# .. 16#01D454# => LETTER_LOWERCASE, when 16#01D456# .. 16#01D467# => LETTER_LOWERCASE, when 16#01D468# .. 16#01D481# => LETTER_UPPERCASE, when 16#01D482# .. 16#01D49B# => LETTER_LOWERCASE, when 16#01D49C# => LETTER_UPPERCASE, when 16#01D49E# .. 16#01D49F# => LETTER_UPPERCASE, when 16#01D4A2# => LETTER_UPPERCASE, when 16#01D4A5# .. 16#01D4A6# => LETTER_UPPERCASE, when 16#01D4A9# .. 16#01D4AC# => LETTER_UPPERCASE, when 16#01D4AE# .. 16#01D4B5# => LETTER_UPPERCASE, when 16#01D4B6# .. 16#01D4B9# => LETTER_LOWERCASE, when 16#01D4BB# => LETTER_LOWERCASE, when 16#01D4BD# .. 16#01D4C3# => LETTER_LOWERCASE, when 16#01D4C5# .. 16#01D4CF# => LETTER_LOWERCASE, when 16#01D4D0# .. 16#01D4E9# => LETTER_UPPERCASE, when 16#01D4EA# .. 16#01D503# => LETTER_LOWERCASE, when 16#01D504# .. 16#01D505# => LETTER_UPPERCASE, when 16#01D507# .. 16#01D50A# => LETTER_UPPERCASE, when 16#01D50D# .. 16#01D514# => LETTER_UPPERCASE, when 16#01D516# .. 16#01D51C# => LETTER_UPPERCASE, when 16#01D51E# .. 16#01D537# => LETTER_LOWERCASE, when 16#01D538# .. 16#01D539# => LETTER_UPPERCASE, when 16#01D53B# .. 16#01D53E# => LETTER_UPPERCASE, when 16#01D540# .. 16#01D544# => LETTER_UPPERCASE, when 16#01D546# => LETTER_UPPERCASE, when 16#01D54A# .. 16#01D550# => LETTER_UPPERCASE, when 16#01D552# .. 16#01D56B# => LETTER_LOWERCASE, when 16#01D56C# .. 16#01D585# => LETTER_UPPERCASE, when 16#01D586# .. 16#01D59F# => LETTER_LOWERCASE, when 16#01D5A0# .. 16#01D5B9# => LETTER_UPPERCASE, when 16#01D5BA# .. 16#01D5D3# => LETTER_LOWERCASE, when 16#01D5D4# .. 16#01D5ED# => LETTER_UPPERCASE, when 16#01D5EE# .. 16#01D607# => LETTER_LOWERCASE, when 16#01D608# .. 16#01D621# => LETTER_UPPERCASE, when 16#01D622# .. 16#01D63B# => LETTER_LOWERCASE, when 16#01D63C# .. 16#01D655# => LETTER_UPPERCASE, when 16#01D656# .. 16#01D66F# => LETTER_LOWERCASE, when 16#01D670# .. 16#01D689# => LETTER_UPPERCASE, when 16#01D68A# .. 16#01D6A5# => LETTER_LOWERCASE, when 16#01D6A8# .. 16#01D6C0# => LETTER_UPPERCASE, when 16#01D6C1# => SYMBOL_MATH, when 16#01D6C2# .. 16#01D6DA# => LETTER_LOWERCASE, when 16#01D6DB# => SYMBOL_MATH, when 16#01D6DC# .. 16#01D6E1# => LETTER_LOWERCASE, when 16#01D6E2# .. 16#01D6FA# => LETTER_UPPERCASE, when 16#01D6FB# => SYMBOL_MATH, when 16#01D6FC# .. 16#01D714# => LETTER_LOWERCASE, when 16#01D715# => SYMBOL_MATH, when 16#01D716# .. 16#01D71B# => LETTER_LOWERCASE, when 16#01D71C# .. 16#01D734# => LETTER_UPPERCASE, when 16#01D735# => SYMBOL_MATH, when 16#01D736# .. 16#01D74E# => LETTER_LOWERCASE, when 16#01D74F# => SYMBOL_MATH, when 16#01D750# .. 16#01D755# => LETTER_LOWERCASE, when 16#01D756# .. 16#01D76E# => LETTER_UPPERCASE, when 16#01D76F# => SYMBOL_MATH, when 16#01D770# .. 16#01D788# => LETTER_LOWERCASE, when 16#01D789# => SYMBOL_MATH, when 16#01D78A# .. 16#01D78F# => LETTER_LOWERCASE, when 16#01D790# .. 16#01D7A8# => LETTER_UPPERCASE, when 16#01D7A9# => SYMBOL_MATH, when 16#01D7AA# .. 16#01D7C2# => LETTER_LOWERCASE, when 16#01D7C3# => SYMBOL_MATH, when 16#01D7C4# .. 16#01D7C9# => LETTER_LOWERCASE, when 16#01D7CA# => LETTER_UPPERCASE, when 16#01D7CB# => LETTER_LOWERCASE, when 16#01D7CE# .. 16#01D7FF# => NUMBER_DECIMAL_DIGIT, when 16#01D800# .. 16#01D9FF# => SYMBOL_OTHER, when 16#01DA00# .. 16#01DA36# => MARK_NONSPACING, when 16#01DA37# .. 16#01DA3A# => SYMBOL_OTHER, when 16#01DA3B# .. 16#01DA6C# => MARK_NONSPACING, when 16#01DA6D# .. 16#01DA74# => SYMBOL_OTHER, when 16#01DA75# => MARK_NONSPACING, when 16#01DA76# .. 16#01DA83# => SYMBOL_OTHER, when 16#01DA84# => MARK_NONSPACING, when 16#01DA85# .. 16#01DA86# => SYMBOL_OTHER, when 16#01DA87# .. 16#01DA8B# => PUNCTUATION_OTHER, when 16#01DA9B# .. 16#01DA9F# => MARK_NONSPACING, when 16#01DAA1# .. 16#01DAAF# => MARK_NONSPACING, when 16#01E000# .. 16#01E006# => MARK_NONSPACING, when 16#01E008# .. 16#01E018# => MARK_NONSPACING, when 16#01E01B# .. 16#01E021# => MARK_NONSPACING, when 16#01E023# .. 16#01E024# => MARK_NONSPACING, when 16#01E026# .. 16#01E02A# => MARK_NONSPACING, when 16#01E100# .. 16#01E12C# => LETTER_OTHER, when 16#01E130# .. 16#01E136# => MARK_NONSPACING, when 16#01E137# .. 16#01E13D# => LETTER_MODIFIER, when 16#01E140# .. 16#01E149# => NUMBER_DECIMAL_DIGIT, when 16#01E14E# => LETTER_OTHER, when 16#01E14F# => SYMBOL_OTHER, when 16#01E2C0# .. 16#01E2EB# => LETTER_OTHER, when 16#01E2EC# .. 16#01E2EF# => MARK_NONSPACING, when 16#01E2F0# .. 16#01E2F9# => NUMBER_DECIMAL_DIGIT, when 16#01E2FF# => SYMBOL_CURRENCY, when 16#01E800# .. 16#01E8C4# => LETTER_OTHER, when 16#01E8C7# .. 16#01E8CF# => NUMBER_OTHER, when 16#01E8D0# .. 16#01E8D6# => MARK_NONSPACING, when 16#01E900# .. 16#01E921# => LETTER_UPPERCASE, when 16#01E922# .. 16#01E943# => LETTER_LOWERCASE, when 16#01E944# .. 16#01E94A# => MARK_NONSPACING, when 16#01E94B# => LETTER_MODIFIER, when 16#01E950# .. 16#01E959# => NUMBER_DECIMAL_DIGIT, when 16#01E95E# .. 16#01E95F# => PUNCTUATION_OTHER, when 16#01EC71# .. 16#01ECAB# => NUMBER_OTHER, when 16#01ECAC# => SYMBOL_OTHER, when 16#01ECAD# .. 16#01ECAF# => NUMBER_OTHER, when 16#01ECB0# => SYMBOL_CURRENCY, when 16#01ECB1# .. 16#01ECB4# => NUMBER_OTHER, when 16#01ED01# .. 16#01ED2D# => NUMBER_OTHER, when 16#01ED2E# => SYMBOL_OTHER, when 16#01ED2F# .. 16#01ED3D# => NUMBER_OTHER, when 16#01EE00# .. 16#01EE03# => LETTER_OTHER, when 16#01EE05# .. 16#01EE1F# => LETTER_OTHER, when 16#01EE21# .. 16#01EE22# => LETTER_OTHER, when 16#01EE24# => LETTER_OTHER, when 16#01EE27# => LETTER_OTHER, when 16#01EE29# .. 16#01EE32# => LETTER_OTHER, when 16#01EE34# .. 16#01EE37# => LETTER_OTHER, when 16#01EE39# => LETTER_OTHER, when 16#01EE3B# => LETTER_OTHER, when 16#01EE42# => LETTER_OTHER, when 16#01EE47# => LETTER_OTHER, when 16#01EE49# => LETTER_OTHER, when 16#01EE4B# => LETTER_OTHER, when 16#01EE4D# .. 16#01EE4F# => LETTER_OTHER, when 16#01EE51# .. 16#01EE52# => LETTER_OTHER, when 16#01EE54# => LETTER_OTHER, when 16#01EE57# => LETTER_OTHER, when 16#01EE59# => LETTER_OTHER, when 16#01EE5B# => LETTER_OTHER, when 16#01EE5D# => LETTER_OTHER, when 16#01EE5F# => LETTER_OTHER, when 16#01EE61# .. 16#01EE62# => LETTER_OTHER, when 16#01EE64# => LETTER_OTHER, when 16#01EE67# .. 16#01EE6A# => LETTER_OTHER, when 16#01EE6C# .. 16#01EE72# => LETTER_OTHER, when 16#01EE74# .. 16#01EE77# => LETTER_OTHER, when 16#01EE79# .. 16#01EE7C# => LETTER_OTHER, when 16#01EE7E# => LETTER_OTHER, when 16#01EE80# .. 16#01EE89# => LETTER_OTHER, when 16#01EE8B# .. 16#01EE9B# => LETTER_OTHER, when 16#01EEA1# .. 16#01EEA3# => LETTER_OTHER, when 16#01EEA5# .. 16#01EEA9# => LETTER_OTHER, when 16#01EEAB# .. 16#01EEBB# => LETTER_OTHER, when 16#01EEF0# .. 16#01EEF1# => SYMBOL_MATH, when 16#01F000# .. 16#01F02B# => SYMBOL_OTHER, when 16#01F030# .. 16#01F093# => SYMBOL_OTHER, when 16#01F0A0# .. 16#01F0AE# => SYMBOL_OTHER, when 16#01F0B1# .. 16#01F0BF# => SYMBOL_OTHER, when 16#01F0C1# .. 16#01F0CF# => SYMBOL_OTHER, when 16#01F0D1# .. 16#01F0F5# => SYMBOL_OTHER, when 16#01F100# .. 16#01F10C# => NUMBER_OTHER, when 16#01F110# .. 16#01F16C# => SYMBOL_OTHER, when 16#01F170# .. 16#01F1AC# => SYMBOL_OTHER, when 16#01F1E6# .. 16#01F202# => SYMBOL_OTHER, when 16#01F210# .. 16#01F23B# => SYMBOL_OTHER, when 16#01F240# .. 16#01F248# => SYMBOL_OTHER, when 16#01F250# .. 16#01F251# => SYMBOL_OTHER, when 16#01F260# .. 16#01F265# => SYMBOL_OTHER, when 16#01F300# .. 16#01F3FA# => SYMBOL_OTHER, when 16#01F3FB# .. 16#01F3FF# => SYMBOL_MODIFIER, when 16#01F400# .. 16#01F6D5# => SYMBOL_OTHER, when 16#01F6E0# .. 16#01F6EC# => SYMBOL_OTHER, when 16#01F6F0# .. 16#01F6FA# => SYMBOL_OTHER, when 16#01F700# .. 16#01F773# => SYMBOL_OTHER, when 16#01F780# .. 16#01F7D8# => SYMBOL_OTHER, when 16#01F7E0# .. 16#01F7EB# => SYMBOL_OTHER, when 16#01F800# .. 16#01F80B# => SYMBOL_OTHER, when 16#01F810# .. 16#01F847# => SYMBOL_OTHER, when 16#01F850# .. 16#01F859# => SYMBOL_OTHER, when 16#01F860# .. 16#01F887# => SYMBOL_OTHER, when 16#01F890# .. 16#01F8AD# => SYMBOL_OTHER, when 16#01F900# .. 16#01F90B# => SYMBOL_OTHER, when 16#01F90D# .. 16#01F971# => SYMBOL_OTHER, when 16#01F973# .. 16#01F976# => SYMBOL_OTHER, when 16#01F97A# .. 16#01F9A2# => SYMBOL_OTHER, when 16#01F9A5# .. 16#01F9AA# => SYMBOL_OTHER, when 16#01F9AE# .. 16#01F9CA# => SYMBOL_OTHER, when 16#01F9CD# .. 16#01FA53# => SYMBOL_OTHER, when 16#01FA60# .. 16#01FA6D# => SYMBOL_OTHER, when 16#01FA70# .. 16#01FA73# => SYMBOL_OTHER, when 16#01FA78# .. 16#01FA7A# => SYMBOL_OTHER, when 16#01FA80# .. 16#01FA82# => SYMBOL_OTHER, when 16#01FA90# .. 16#01FA95# => SYMBOL_OTHER, when others => OTHER_NOT_ASSIGNED) with Inline; function Plane_02_Lookup (C: Codepoint) return General_Category_Type is (case C is when 16#020000# .. 16#02A6D6# => LETTER_OTHER, when 16#02A700# .. 16#02B734# => LETTER_OTHER, when 16#02B740# .. 16#02B81D# => LETTER_OTHER, when 16#02B820# .. 16#02CEA1# => LETTER_OTHER, when 16#02CEB0# .. 16#02EBE0# => LETTER_OTHER, when 16#02F800# .. 16#02FA1D# => LETTER_OTHER, when others => OTHER_NOT_ASSIGNED) with Inline; function Plane_03_Lookup (C: Codepoint) return General_Category_Type is (OTHER_NOT_ASSIGNED) with Inline; function Plane_04_Lookup (C: Codepoint) return General_Category_Type is (OTHER_NOT_ASSIGNED) with Inline; function Plane_05_Lookup (C: Codepoint) return General_Category_Type is (OTHER_NOT_ASSIGNED) with Inline; function Plane_06_Lookup (C: Codepoint) return General_Category_Type is (OTHER_NOT_ASSIGNED) with Inline; function Plane_07_Lookup (C: Codepoint) return General_Category_Type is (OTHER_NOT_ASSIGNED) with Inline; function Plane_08_Lookup (C: Codepoint) return General_Category_Type is (OTHER_NOT_ASSIGNED) with Inline; function Plane_09_Lookup (C: Codepoint) return General_Category_Type is (OTHER_NOT_ASSIGNED) with Inline; function Plane_0A_Lookup (C: Codepoint) return General_Category_Type is (OTHER_NOT_ASSIGNED) with Inline; function Plane_0B_Lookup (C: Codepoint) return General_Category_Type is (OTHER_NOT_ASSIGNED) with Inline; function Plane_0C_Lookup (C: Codepoint) return General_Category_Type is (OTHER_NOT_ASSIGNED) with Inline; function Plane_0D_Lookup (C: Codepoint) return General_Category_Type is (OTHER_NOT_ASSIGNED) with Inline; function Plane_0E_Lookup (C: Codepoint) return General_Category_Type is (case C is when 16#0E0001# => OTHER_FORMAT, when 16#0E0020# .. 16#0E007F# => OTHER_FORMAT, when 16#0E0100# .. 16#0E01EF# => MARK_NONSPACING, when others => OTHER_NOT_ASSIGNED) with Inline; function Plane_0F_Lookup (C: Codepoint) return General_Category_Type is (case C is when 16#0F0000# .. 16#0FFFFD# => OTHER_PRIVATE_USE, when others => OTHER_NOT_ASSIGNED) with Inline; function Plane_10_Lookup (C: Codepoint) return General_Category_Type is (case C is when 16#100000# .. 16#10FFFD# => OTHER_PRIVATE_USE, when others => OTHER_NOT_ASSIGNED) with Inline; ---------------------- -- General_Category -- ---------------------- function General_Category (C: Wide_Wide_Character) return General_Category_Type is CP: constant Codepoint := Codepoint (Wide_Wide_Character'Pos(C)); begin return (case CP is when 16#000000# .. 16#00FFFF# => Plane_00_Lookup (CP), when 16#010000# .. 16#01FFFF# => Plane_01_Lookup (CP), when 16#020000# .. 16#02FFFF# => Plane_02_Lookup (CP), when 16#030000# .. 16#03FFFF# => Plane_03_Lookup (CP), when 16#040000# .. 16#04FFFF# => Plane_04_Lookup (CP), when 16#050000# .. 16#05FFFF# => Plane_05_Lookup (CP), when 16#060000# .. 16#06FFFF# => Plane_06_Lookup (CP), when 16#070000# .. 16#07FFFF# => Plane_07_Lookup (CP), when 16#080000# .. 16#08FFFF# => Plane_08_Lookup (CP), when 16#090000# .. 16#09FFFF# => Plane_09_Lookup (CP), when 16#0A0000# .. 16#0AFFFF# => Plane_0A_Lookup (CP), when 16#0B0000# .. 16#0BFFFF# => Plane_0B_Lookup (CP), when 16#0C0000# .. 16#0CFFFF# => Plane_0C_Lookup (CP), when 16#0D0000# .. 16#0DFFFF# => Plane_0D_Lookup (CP), when 16#0E0000# .. 16#0EFFFF# => Plane_0E_Lookup (CP), when 16#0F0000# .. 16#0FFFFF# => Plane_0F_Lookup (CP), when 16#100000# .. 16#10FFFF# => Plane_10_Lookup (CP), when others => OTHER_NOT_ASSIGNED); end General_Category; end Unicode.General_Category;
-- SPDX-FileCopyrightText: 2019 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with Program.Elements.Defining_Identifiers; with Program.Lexical_Elements; with Program.Elements.Aspect_Specifications; with Program.Elements.Exception_Declarations; with Program.Element_Visitors; package Program.Nodes.Exception_Declarations is pragma Preelaborate; type Exception_Declaration is new Program.Nodes.Node and Program.Elements.Exception_Declarations.Exception_Declaration and Program.Elements.Exception_Declarations.Exception_Declaration_Text with private; function Create (Names : not null Program.Elements.Defining_Identifiers .Defining_Identifier_Vector_Access; Colon_Token : not null Program.Lexical_Elements .Lexical_Element_Access; Exception_Token : not null Program.Lexical_Elements .Lexical_Element_Access; With_Token : Program.Lexical_Elements.Lexical_Element_Access; Aspects : Program.Elements.Aspect_Specifications .Aspect_Specification_Vector_Access; Semicolon_Token : not null Program.Lexical_Elements .Lexical_Element_Access) return Exception_Declaration; type Implicit_Exception_Declaration is new Program.Nodes.Node and Program.Elements.Exception_Declarations.Exception_Declaration with private; function Create (Names : not null Program.Elements.Defining_Identifiers .Defining_Identifier_Vector_Access; Aspects : Program.Elements.Aspect_Specifications .Aspect_Specification_Vector_Access; Is_Part_Of_Implicit : Boolean := False; Is_Part_Of_Inherited : Boolean := False; Is_Part_Of_Instance : Boolean := False) return Implicit_Exception_Declaration with Pre => Is_Part_Of_Implicit or Is_Part_Of_Inherited or Is_Part_Of_Instance; private type Base_Exception_Declaration is abstract new Program.Nodes.Node and Program.Elements.Exception_Declarations.Exception_Declaration with record Names : not null Program.Elements.Defining_Identifiers .Defining_Identifier_Vector_Access; Aspects : Program.Elements.Aspect_Specifications .Aspect_Specification_Vector_Access; end record; procedure Initialize (Self : in out Base_Exception_Declaration'Class); overriding procedure Visit (Self : not null access Base_Exception_Declaration; Visitor : in out Program.Element_Visitors.Element_Visitor'Class); overriding function Names (Self : Base_Exception_Declaration) return not null Program.Elements.Defining_Identifiers .Defining_Identifier_Vector_Access; overriding function Aspects (Self : Base_Exception_Declaration) return Program.Elements.Aspect_Specifications .Aspect_Specification_Vector_Access; overriding function Is_Exception_Declaration (Self : Base_Exception_Declaration) return Boolean; overriding function Is_Declaration (Self : Base_Exception_Declaration) return Boolean; type Exception_Declaration is new Base_Exception_Declaration and Program.Elements.Exception_Declarations.Exception_Declaration_Text with record Colon_Token : not null Program.Lexical_Elements .Lexical_Element_Access; Exception_Token : not null Program.Lexical_Elements .Lexical_Element_Access; With_Token : Program.Lexical_Elements.Lexical_Element_Access; Semicolon_Token : not null Program.Lexical_Elements .Lexical_Element_Access; end record; overriding function To_Exception_Declaration_Text (Self : in out Exception_Declaration) return Program.Elements.Exception_Declarations .Exception_Declaration_Text_Access; overriding function Colon_Token (Self : Exception_Declaration) return not null Program.Lexical_Elements.Lexical_Element_Access; overriding function Exception_Token (Self : Exception_Declaration) return not null Program.Lexical_Elements.Lexical_Element_Access; overriding function With_Token (Self : Exception_Declaration) return Program.Lexical_Elements.Lexical_Element_Access; overriding function Semicolon_Token (Self : Exception_Declaration) return not null Program.Lexical_Elements.Lexical_Element_Access; type Implicit_Exception_Declaration is new Base_Exception_Declaration with record Is_Part_Of_Implicit : Boolean; Is_Part_Of_Inherited : Boolean; Is_Part_Of_Instance : Boolean; end record; overriding function To_Exception_Declaration_Text (Self : in out Implicit_Exception_Declaration) return Program.Elements.Exception_Declarations .Exception_Declaration_Text_Access; overriding function Is_Part_Of_Implicit (Self : Implicit_Exception_Declaration) return Boolean; overriding function Is_Part_Of_Inherited (Self : Implicit_Exception_Declaration) return Boolean; overriding function Is_Part_Of_Instance (Self : Implicit_Exception_Declaration) return Boolean; end Program.Nodes.Exception_Declarations;
------------------------------------------------------------------------------ -- -- -- GNAT RUNTIME COMPONENTS -- -- -- -- S Y S T E M . P A C K _ 6 3 -- -- -- -- B o d y -- -- -- -- $Revision$ -- -- -- Copyright (C) 1992-1999 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 System.Storage_Elements; with System.Unsigned_Types; with Unchecked_Conversion; package body System.Pack_63 is 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_63; 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; function To_Ref is new Unchecked_Conversion (System.Address, Cluster_Ref); ------------ -- Get_63 -- ------------ function Get_63 (Arr : System.Address; N : Natural) return Bits_63 is C : constant Cluster_Ref := To_Ref (Arr + Bits * Ofs (Uns (N) / 8)); begin 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 Get_63; ------------ -- Set_63 -- ------------ procedure Set_63 (Arr : System.Address; N : Natural; E : Bits_63) is C : constant Cluster_Ref := To_Ref (Arr + Bits * Ofs (Uns (N) / 8)); begin 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 Set_63; end System.Pack_63;
with Ada.Characters.Handling; --with Ada.Text_IO; -- Debug. --with Ada.Exceptions; package body ARM_Contents is -- -- Ada reference manual formatter (ARM_Form). -- -- This package contains the routines to manage section/clause/subclause -- references. -- -- --------------------------------------- -- Copyright 2000, 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 -- AXE Consultants. All rights reserved. -- P.O. Box 1512, Madison WI 53701 -- E-Mail: randy@rrsoftware.com -- -- ARM_Form is free software: you can redistribute it and/or modify -- it under the terms of the GNU General Public License version 3 -- as published by the Free Software Foundation. -- -- AXE CONSULTANTS MAKES THIS TOOL AND SOURCE CODE AVAILABLE ON AN "AS IS" -- BASIS AND MAKES NO WARRANTY, EXPRESS OR IMPLIED, AS TO THE ACCURACY, -- CAPABILITY, EFFICIENCY, MERCHANTABILITY, OR FUNCTIONING OF THIS TOOL. -- IN NO EVENT WILL AXE CONSULTANTS BE LIABLE FOR ANY GENERAL, -- CONSEQUENTIAL, INDIRECT, INCIDENTAL, EXEMPLARY, OR SPECIAL DAMAGES, -- EVEN IF AXE CONSULTANTS HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH -- DAMAGES. -- -- A copy of the GNU General Public License is available in the file -- gpl-3-0.txt in the standard distribution of the ARM_Form tool. -- Otherwise, see <http://www.gnu.org/licenses/>. -- -- If the GPLv3 license is not satisfactory for your needs, a commercial -- use license is available for this tool. Contact Randy at AXE Consultants -- for more information. -- -- --------------------------------------- -- -- Edit History: -- -- 4/19/00 - RLB - Created base package. -- 4/26/00 - RLB - Added Previous_Clause and Next_Clause. -- 5/15/00 - RLB - Added rules about unnumbered sections. -- 5/22/00 - RLB - Added Unnumbered_Section level. -- 8/22/00 - RLB - Added Old_Title handling. -- 9/ 9/04 - RLB - Removed unused with. -- 2/ 2/05 - RLB - Allowed more old titles. -- 1/16/06 - RLB - Added debugging. -- 9/22/06 - RLB - Created type Clause_Number_Type and added SubSubClause. -- 10/12/07 - RLB - Extended the range of properly formatted clause numbers. -- 12/18/07 - RLB - Added Plain_Annex. -- 10/24/08 - RLB - More old titles. -- 5/07/09 - RLB - Added Dead_Clause. -- 10/18/11 - RLB - Changed to GPLv3 license. -- 10/19/11 - RLB - Added Parent_Clause from Stephen Leake's version. -- 10/25/11 - RLB - Added version to Old name strings. -- 8/30/12 - RLB - Added traps if we're reading Section = UNKNOWN. function "<" (Left, Right : Clause_Number_Type) return Boolean is -- True if Left comes before Right in the collating order. begin if Left.Section = UNKNOWN then raise Bad_Clause_Error with "Left has Unknown section"; elsif Right.Section = UNKNOWN then raise Bad_Clause_Error with "Right has Unknown section"; elsif Left.Section < Right.Section then return True; elsif Left.Section > Right.Section then return False; elsif Left.Clause < Right.Clause then return True; elsif Left.Clause > Right.Clause then return False; elsif Left.Subclause < Right.Subclause then return True; elsif Left.Subclause > Right.Subclause then return False; elsif Left.Subsubclause < Right.Subsubclause then return True; else return False; end if; end "<"; function ">" (Left, Right : Clause_Number_Type) return Boolean is -- True if Left comes after Right in the collating order. begin return Right < Left; end ">"; function "<=" (Left, Right : Clause_Number_Type) return Boolean is -- True if Left comes before or is the same as Right in the -- collating order. begin return not (Right < Left); end "<="; function ">=" (Left, Right : Clause_Number_Type) return Boolean is -- True if Left comes after or is the same as Right in the -- collating order. begin return not (Left < Right); end ">="; type Title_Record is record Title : Title_Type; -- Title in original format. Search_Title : Title_Type; -- Title in all lower case. Level : Level_Type; Clause_Number : Clause_Number_Type; Version : ARM_Contents.Change_Version_Type := '0'; end record; Title_List : array (1 .. 900) of Title_Record; Last_Title : Natural; Old_Title_List : array (1 .. 300) of Title_Record; Last_Old_Title : Natural; procedure Initialize is -- Initialize this package; make sure the contents are empty. begin Last_Title := 0; end Initialize; procedure Add (Title : in Title_Type; Level : in Level_Type; Clause_Number : in Clause_Number_Type; Version : in ARM_Contents.Change_Version_Type := '0') is -- Add a section or clause to the contents. It has the specified -- characteristics. begin if Level /= Subsubclause and then Clause_Number.Subsubclause /= 0 then raise Bad_Clause_Error with "not a subsubclause but non-zero subsubclause number"; end if; if Level /= Subsubclause and then Level /= Subclause and then Clause_Number.Subclause /= 0 then raise Bad_Clause_Error with "not a subclause but non-zero subclause number"; end if; if (Level /= Subsubclause and then Level /= Subclause and then Level /= Clause and then Level /= Unnumbered_Section and then Level /= Dead_Clause) and then Clause_Number.Clause /= 0 then raise Bad_Clause_Error with "not a clause but non-zero clause number"; end if; Last_Title := Last_Title + 1; Title_List (Last_Title) := (Title => Title, Search_Title => Ada.Characters.Handling.To_Lower (Title), Level => Level, Clause_Number => Clause_Number, Version => Version); --Ada.Text_IO.Put_Line (" Add " & Title & -- " Index=" & Natural'Image(Last_Title) & " Level=" & Level_Type'Image(Level)); --Ada.Text_IO.Put_Line (" Section" & Section_Number_Type'Image(Clause_Number.Section) & -- " Clause" & Natural'Image(Clause_Number.Clause) & " Subclause" & Natural'Image(Clause_Number.Subclause) & -- " Subsubclause" & Natural'Image(Clause_Number.Subsubclause)); end Add; procedure Add_Old (Old_Title : in Title_Type; Level : in Level_Type; Clause_Number : in Clause_Number_Type; Version : in ARM_Contents.Change_Version_Type := '0') is -- Add an old title for a section or clause to the contents. It has -- the specified characteristics; the version is the version for which -- it first was present in the document. begin if Level /= Subsubclause and then Clause_Number.Subsubclause /= 0 then raise Bad_Clause_Error with "not a subsubclause but non-zero subsubclause number"; end if; if Level /= Subsubclause and then Level /= Subclause and then Clause_Number.Subclause /= 0 then raise Bad_Clause_Error with "not a subclause but non-zero subclause number"; end if; if (Level /= Subsubclause and then Level /= Subclause and then Level /= Clause and then Level /= Unnumbered_Section and then Level /= Dead_Clause) and then Clause_Number.Clause /= 0 then raise Bad_Clause_Error with "not a clause but non-zero clause number"; end if; Last_Old_Title := Last_Old_Title + 1; Old_Title_List (Last_Old_Title) := (Title => Old_Title, Search_Title => Ada.Characters.Handling.To_Lower (Old_Title), Level => Level, Clause_Number => Clause_Number, Version => Version); --Ada.Text_IO.Put_Line (" Add_Old " & Old_Title & -- " Index=" & Natural'Image(Last_Old_Title) & " Level=" & Level_Type'Image(Level)); --Ada.Text_IO.Put_Line (" Section" & Section_Number_Type'Image(Section_Number) & -- " Clause" & Natural'Image(Clause_Number.Clause) & " Subclause" & Natural'Image(Clause_Number.Subclause) & -- " Subsubclause" & Natural'Image(Clause_Number.Subsubclause)); end Add_Old; function Make_Clause_Number (Level : in Level_Type; Clause_Number : in Clause_Number_Type) return String is -- Returns a properly formatted Section or clause number reference. begin if Clause_Number.Section = UNKNOWN then raise Bad_Clause_Error with "unknown section number"; -- else not unknown end if; case Level is when Plain_Annex | Normative_Annex | Informative_Annex => if Clause_Number.Clause /= 0 or else Clause_Number.Subclause /= 0 or else Clause_Number.Subsubclause /= 0 or else Clause_Number.Section <= 30 then raise Bad_Clause_Error; -- Illegal numbers. end if; return "Annex " & Character'Val (Character'Pos('A') + (Clause_Number.Section - ANNEX_START)); when Section => if Clause_Number.Clause /= 0 or else Clause_Number.Subclause /= 0 or else Clause_Number.Section >= ANNEX_START then raise Bad_Clause_Error; -- Illegal numbers. end if; if Clause_Number.Section < 10 then return Character'Val (Character'Pos('0') + Clause_Number.Section) & ""; elsif Clause_Number.Section < 20 then return "1" & Character'Val (Character'Pos('0') + Clause_Number.Section - 10); elsif Clause_Number.Section < 30 then return "2" & Character'Val (Character'Pos('0') + Clause_Number.Section - 20); else return "3" & Character'Val (Character'Pos('0') + Clause_Number.Section - 30); end if; when Unnumbered_Section => if Clause_Number.Clause = 0 or else Clause_Number.Subclause /= 0 or else Clause_Number.Section /= 0 then raise Bad_Clause_Error; -- Illegal numbers. end if; if Clause_Number.Clause < 10 then return "0." & Character'Val (Character'Pos('0') + Clause_Number.Clause); elsif Clause_Number.Clause < 20 then return "0.1" & Character'Val (Character'Pos('0') + Clause_Number.Clause - 10); elsif Clause_Number.Clause < 30 then return "0.2" & Character'Val (Character'Pos('0') + Clause_Number.Clause - 20); else return "0.3" & Character'Val (Character'Pos('0') + Clause_Number.Clause - 30); end if; when Clause => if Clause_Number.Subclause /= 0 then raise Bad_Clause_Error; -- Illegal number. end if; if Clause_Number.Section < 10 then if Clause_Number.Clause < 10 then return Character'Val (Character'Pos('0') + Clause_Number.Section) & "." & Character'Val (Character'Pos('0') + Clause_Number.Clause); elsif Clause_Number.Clause < 20 then return Character'Val (Character'Pos('0') + Clause_Number.Section) & ".1" & Character'Val (Character'Pos('0') + Clause_Number.Clause - 10); elsif Clause_Number.Clause < 30 then return Character'Val (Character'Pos('0') + Clause_Number.Section) & ".2" & Character'Val (Character'Pos('0') + Clause_Number.Clause - 20); elsif Clause_Number.Clause < 40 then return Character'Val (Character'Pos('0') + Clause_Number.Section) & ".3" & Character'Val (Character'Pos('0') + Clause_Number.Clause - 30); elsif Clause_Number.Clause < 50 then return Character'Val (Character'Pos('0') + Clause_Number.Section) & ".4" & Character'Val (Character'Pos('0') + Clause_Number.Clause - 40); elsif Clause_Number.Clause < 60 then return Character'Val (Character'Pos('0') + Clause_Number.Section) & ".5" & Character'Val (Character'Pos('0') + Clause_Number.Clause - 50); else raise Bad_Clause_Error; -- Out of range. end if; elsif Clause_Number.Section < 20 then if Clause_Number.Clause < 10 then return "1" & Character'Val (Character'Pos('0') + Clause_Number.Section - 10) & "." & Character'Val (Character'Pos('0') + Clause_Number.Clause); elsif Clause_Number.Clause < 20 then return "1" & Character'Val (Character'Pos('0') + Clause_Number.Section - 10) & ".1" & Character'Val (Character'Pos('0') + Clause_Number.Clause - 10); elsif Clause_Number.Clause < 30 then return "1" & Character'Val (Character'Pos('0') + Clause_Number.Section - 10) & ".2" & Character'Val (Character'Pos('0') + Clause_Number.Clause - 20); elsif Clause_Number.Clause < 40 then return "1" & Character'Val (Character'Pos('0') + Clause_Number.Section - 10) & ".3" & Character'Val (Character'Pos('0') + Clause_Number.Clause - 30); elsif Clause_Number.Clause < 50 then return "1" & Character'Val (Character'Pos('0') + Clause_Number.Section - 10) & ".4" & Character'Val (Character'Pos('0') + Clause_Number.Clause - 40); elsif Clause_Number.Clause < 60 then return "1" & Character'Val (Character'Pos('0') + Clause_Number.Section - 10) & ".5" & Character'Val (Character'Pos('0') + Clause_Number.Clause - 50); else raise Bad_Clause_Error; -- Out of range. end if; elsif Clause_Number.Section < 30 then if Clause_Number.Clause < 10 then return "2" & Character'Val (Character'Pos('0') + Clause_Number.Section - 20) & "." & Character'Val (Character'Pos('0') + Clause_Number.Clause); elsif Clause_Number.Clause < 20 then return "2" & Character'Val (Character'Pos('0') + Clause_Number.Section - 20) & ".1" & Character'Val (Character'Pos('0') + Clause_Number.Clause - 10); elsif Clause_Number.Clause < 30 then return "2" & Character'Val (Character'Pos('0') + Clause_Number.Section - 20) & ".2" & Character'Val (Character'Pos('0') + Clause_Number.Clause - 20); elsif Clause_Number.Clause < 40 then return "2" & Character'Val (Character'Pos('0') + Clause_Number.Section - 20) & ".3" & Character'Val (Character'Pos('0') + Clause_Number.Clause - 30); elsif Clause_Number.Clause < 50 then return "2" & Character'Val (Character'Pos('0') + Clause_Number.Section - 20) & ".4" & Character'Val (Character'Pos('0') + Clause_Number.Clause - 40); elsif Clause_Number.Clause < 60 then return "2" & Character'Val (Character'Pos('0') + Clause_Number.Section - 20) & ".5" & Character'Val (Character'Pos('0') + Clause_Number.Clause - 50); else raise Bad_Clause_Error; -- Out of range. end if; elsif Clause_Number.Section = 30 then if Clause_Number.Clause < 10 then return "30." & Character'Val (Character'Pos('0') + Clause_Number.Clause); elsif Clause_Number.Clause < 20 then return "30.1" & Character'Val (Character'Pos('0') + Clause_Number.Clause - 10); elsif Clause_Number.Clause < 30 then return "30.2" & Character'Val (Character'Pos('0') + Clause_Number.Clause - 20); elsif Clause_Number.Clause < 40 then return "30.3" & Character'Val (Character'Pos('0') + Clause_Number.Clause - 30); elsif Clause_Number.Clause < 50 then return "30.4" & Character'Val (Character'Pos('0') + Clause_Number.Clause - 40); elsif Clause_Number.Clause < 60 then return "30.5" & Character'Val (Character'Pos('0') + Clause_Number.Clause - 50); else raise Bad_Clause_Error; -- Out of range. end if; else if Clause_Number.Clause < 10 then return Character'Val (Character'Pos('A') + (Clause_Number.Section - ANNEX_START)) & "." & Character'Val (Character'Pos('0') + Clause_Number.Clause); elsif Clause_Number.Clause < 20 then return Character'Val (Character'Pos('A') + (Clause_Number.Section - ANNEX_START)) & ".1" & Character'Val (Character'Pos('0') + Clause_Number.Clause - 10); elsif Clause_Number.Clause < 30 then return Character'Val (Character'Pos('A') + (Clause_Number.Section - ANNEX_START)) & ".2" & Character'Val (Character'Pos('0') + Clause_Number.Clause - 20); elsif Clause_Number.Clause < 40 then return Character'Val (Character'Pos('A') + (Clause_Number.Section - ANNEX_START)) & ".3" & Character'Val (Character'Pos('0') + Clause_Number.Clause - 30); elsif Clause_Number.Clause < 50 then return Character'Val (Character'Pos('A') + (Clause_Number.Section - ANNEX_START)) & ".4" & Character'Val (Character'Pos('0') + Clause_Number.Clause - 40); elsif Clause_Number.Clause < 60 then return Character'Val (Character'Pos('A') + (Clause_Number.Section - ANNEX_START)) & ".4" & Character'Val (Character'Pos('0') + Clause_Number.Clause - 50); else raise Bad_Clause_Error; -- Out of range. end if; end if; when Subclause => if Clause_Number.Section = UNKNOWN then raise Bad_Clause_Error with "unknown section number"; elsif Clause_Number.Subclause < 10 then return Make_Clause_Number (Clause, (Clause_Number.Section, Clause_Number.Clause, 0, 0)) & "." & Character'Val (Character'Pos('0') + Clause_Number.Subclause); elsif Clause_Number.Subclause < 20 then return Make_Clause_Number (Clause, (Clause_Number.Section, Clause_Number.Clause, 0, 0)) & ".1" & Character'Val (Character'Pos('0') + Clause_Number.Subclause - 10); elsif Clause_Number.Subclause < 30 then return Make_Clause_Number (Clause, (Clause_Number.Section, Clause_Number.Clause, 0, 0)) & ".2" & Character'Val (Character'Pos('0') + Clause_Number.Subclause - 20); elsif Clause_Number.Subclause < 40 then return Make_Clause_Number (Clause, (Clause_Number.Section, Clause_Number.Clause, 0, 0)) & ".3" & Character'Val (Character'Pos('0') + Clause_Number.Subclause - 30); elsif Clause_Number.Subclause < 50 then return Make_Clause_Number (Clause, (Clause_Number.Section, Clause_Number.Clause, 0, 0)) & ".4" & Character'Val (Character'Pos('0') + Clause_Number.Subclause - 40); else raise Bad_Clause_Error; -- Out of range. end if; when Subsubclause => if Clause_Number.Subsubclause < 10 then return Make_Clause_Number (Subclause, (Clause_Number.Section, Clause_Number.Clause, Clause_Number.Subclause, 0)) & "." & Character'Val (Character'Pos('0') + Clause_Number.Subsubclause); elsif Clause_Number.Subclause < 20 then return Make_Clause_Number (Subclause, (Clause_Number.Section, Clause_Number.Clause, Clause_Number.Subclause, 0)) & ".1" & Character'Val (Character'Pos('0') + Clause_Number.Subsubclause - 10); elsif Clause_Number.Subclause < 30 then return Make_Clause_Number (Subclause, (Clause_Number.Section, Clause_Number.Clause, Clause_Number.Subclause, 0)) & ".2" & Character'Val (Character'Pos('0') + Clause_Number.Subsubclause - 20); elsif Clause_Number.Subclause < 40 then return Make_Clause_Number (Subclause, (Clause_Number.Section, Clause_Number.Clause, Clause_Number.Subclause, 0)) & ".3" & Character'Val (Character'Pos('0') + Clause_Number.Subsubclause - 30); elsif Clause_Number.Subclause < 50 then return Make_Clause_Number (Subclause, (Clause_Number.Section, Clause_Number.Clause, Clause_Number.Subclause, 0)) & ".4" & Character'Val (Character'Pos('0') + Clause_Number.Subsubclause - 40); else raise Bad_Clause_Error; -- Out of range. end if; when Dead_Clause => return "X.X"; end case; end Make_Clause_Number; procedure Make_Clause (Clause_String : in String; Clause_Number : out Clause_Number_Type) is -- Returns the clause number for a properly formatted Section or -- clause string. Next : Positive; function Get_Section_Number return Section_Number_Type is -- Extract the section number: begin if Clause_String'Length = 1 or else Clause_String(Clause_String'First + 1) = '.' then Next := Clause_String'First + 2; if Clause_String (Clause_String'First) in '0' .. '9' then return Character'Pos(Clause_String (Clause_String'First)) - Character'Pos('0'); else return Character'Pos(Clause_String (Clause_String'First)) - Character'Pos('A') + ANNEX_START; end if; else Next := Clause_String'First + 3; return (Character'Pos(Clause_String (Clause_String'First)) - Character'Pos('0')) * 10 + Character'Pos(Clause_String (Clause_String'First + 1)) - Character'Pos('0'); end if; end Get_Section_Number; function Get_Clause_Number return Natural is -- Extract the clause: begin if Clause_String'Last - Next + 1 = 1 or else Clause_String(Next + 1) = '.' then Next := Next + 2; return Character'Pos(Clause_String (Next - 2)) - Character'Pos('0'); else Next := Next + 3; return (Character'Pos(Clause_String (Next - 3)) - Character'Pos('0')) * 10 + Character'Pos(Clause_String (Next - 3 + 1)) - Character'Pos('0'); end if; end Get_Clause_Number; begin if Clause_String'Length = 7 and then Clause_String (Clause_String'First .. Clause_String'First + 5) = "Annex " then -- Annex clauses. Clause_Number := (Section => Character'Pos(Clause_String (Clause_String'First + 6)) - Character'Pos('A') + ANNEX_START, Clause | Subclause | Subsubclause => 0); elsif Clause_String'Length = 1 then Clause_Number := (Section => Get_Section_Number, Clause | Subclause | Subsubclause => 0); elsif Clause_String'Length = 2 then Clause_Number := (Section => Get_Section_Number, Clause | Subclause | Subsubclause => 0); else Clause_Number := (Section => Get_Section_Number, Clause | Subclause | Subsubclause => 0); -- Next is now the start of the Clause: if Clause_String'Last - Next + 1 = 1 then Clause_Number.Clause := Get_Clause_Number; elsif Clause_String'Last - Next + 1 = 2 then Clause_Number.Clause := Get_Clause_Number; else Clause_Number.Clause := Get_Clause_Number; -- Next is now the start of the Subclause: if Clause_String'Last - Next + 1 = 1 then Clause_Number.Subclause := Character'Pos(Clause_String (Next)) - Character'Pos('0'); elsif Clause_String'Last - Next + 1 = 2 then Clause_Number.Subclause := (Character'Pos(Clause_String (Next)) - Character'Pos('0')) * 10 + Character'Pos(Clause_String (Next + 1)) - Character'Pos('0'); else if Clause_String'Last - Next + 1 = 1 or else Clause_String(Next + 1) = '.' then Next := Next + 2; Clause_Number.Subclause := Character'Pos(Clause_String (Next - 2)) - Character'Pos('0'); else Next := Next + 3; Clause_Number.Subclause := (Character'Pos(Clause_String (Next - 3)) - Character'Pos('0')) * 10 + Character'Pos(Clause_String (Next - 3 + 1)) - Character'Pos('0'); end if; if Clause_String'Last - Next + 1 = 1 then Clause_Number.Subsubclause := Character'Pos(Clause_String (Next)) - Character'Pos('0'); else -- Two digit. Clause_Number.Subsubclause := (Character'Pos(Clause_String (Next)) - Character'Pos('0')) * 10 + Character'Pos(Clause_String (Next + 1)) - Character'Pos('0'); end if; end if; end if; end if; if Clause_Number.Section = UNKNOWN then raise Bad_Clause_Error with "unknown section number"; -- else not unknown end if; end Make_Clause; function Lookup_Clause_Number (Title : in Title_Type) return String is -- Given the title of a clause, returns the formatted Section or -- clause number reference for that title. The Title must match -- exactly, except for case. Raises Not_Found_Error if not found. Lower_Title : constant Title_Type := Ada.Characters.Handling.To_Lower (Title); begin for I in 1 .. Last_Title loop if Lower_Title = Title_List(I).Search_Title then return Make_Clause_Number (Title_List(I).Level, Title_List(I).Clause_Number); end if; end loop; raise Not_Found_Error; end Lookup_Clause_Number; function Lookup_Level (Title : in Title_Type) return Level_Type is -- Given the title of a clause, returns the level for that title. The Title must match -- exactly, except for case. Raises Not_Found_Error if not found. Lower_Title : constant Title_Type := Ada.Characters.Handling.To_Lower (Title); begin for I in 1 .. Last_Title loop if Lower_Title = Title_List(I).Search_Title then return Title_List(I).Level; end if; end loop; raise Not_Found_Error; end Lookup_Level; function Lookup_Title (Level : in Level_Type; Clause_Number : in Clause_Number_Type) return Title_Type is -- Given the level and clause numbers, return the appropriate -- title. Raises Not_Found_Error if not found. begin if Clause_Number.Section = UNKNOWN then raise Bad_Clause_Error with "unknown section number"; -- else not unknown end if; for I in 1 .. Last_Title loop if Title_List(I).Level = Level and then Title_List(I).Clause_Number = Clause_Number then return Title_List(I).Title; end if; end loop; raise Not_Found_Error; end Lookup_Title; function Lookup_Old_Title (Level : in Level_Type; Clause_Number : in Clause_Number_Type) return Title_Type is -- Given the level and clause numbers, return the appropriate -- old title. Calls Lookup_Title if not found (thus returning the -- regular (new) title. begin if Clause_Number.Section = UNKNOWN then raise Bad_Clause_Error with "unknown section number"; -- else not unknown end if; for I in 1 .. Last_Old_Title loop if Old_Title_List(I).Level = Level and then Old_Title_List(I).Clause_Number = Clause_Number then return Old_Title_List(I).Title; end if; end loop; return Lookup_Title (Level, Clause_Number); end Lookup_Old_Title; function Previous_Clause (Clause : in String) return String is -- Returns the string of the previous clause (in the table of contents) -- for the properly formatted clause string Clause. -- Raises Not_Found_Error if not found. Clause_Number : Clause_Number_Type; begin Make_Clause (Clause, Clause_Number); for I in 1 .. Last_Title loop if Title_List(I).Clause_Number = Clause_Number then for J in reverse 1 .. I - 1 loop if Title_List(J).Level /= Dead_Clause then return Make_Clause_Number (Title_List(J).Level, Title_List(J).Clause_Number); -- else skip it and continue. end if; end loop; -- If we get here, it was not found. raise Not_Found_Error; end if; end loop; raise Not_Found_Error; end Previous_Clause; function Next_Clause (Clause : in String) return String is -- Returns the string of the next clause (in the table of contents) -- for the properly formatted clause string Clause. -- Raises Not_Found_Error if not found. Clause_Number : Clause_Number_Type; begin Make_Clause (Clause, Clause_Number); for I in 1 .. Last_Title loop if Title_List(I).Clause_Number = Clause_Number then for J in I + 1 .. Last_Title loop if Title_List(J).Level /= Dead_Clause then return Make_Clause_Number (Title_List(J).Level, Title_List(J).Clause_Number); -- else skip it and continue. end if; end loop; -- If we get here, it was not found. raise Not_Found_Error; end if; end loop; raise Not_Found_Error; end Next_Clause; function Parent_Clause (Clause : in String) return String is -- Returns the string of the parent clause (in the table of contents) -- for the properly formatted clause string Clause. -- -- Result is a null string if Clause is a top level clause; -- Section, Unnumbered_Section, Normative_Annex, -- Informative_Annex, Plain_Annex. Clause_Number : Clause_Number_Type; begin Make_Clause (Clause, Clause_Number); if Clause_Number.Clause = 0 then -- Clause is a section; no parent return ""; elsif Clause_Number.Subclause = 0 then -- Clause is a clause; parent is Section or Annex if Clause_Number.Section >= ANNEX_START then return Make_Clause_Number (Normative_Annex, (Clause_Number.Section, 0, 0, 0)); else return Make_Clause_Number (Section, (Clause_Number.Section, 0, 0, 0)); end if; elsif Clause_Number.Subsubclause = 0 then -- Clause is a subclause; clause is parent return Make_Clause_Number (ARM_Contents.Clause, (Clause_Number.Section, Clause_Number.Clause, 0, 0)); else -- Clause is a subsubclause; subclause is parent return Make_Clause_Number (Subclause, (Clause_Number.Section, Clause_Number.Clause, Clause_Number.Subclause, 0)); end if; end Parent_Clause; procedure For_Each is -- Call Operate for each title in the contents, in the order that -- they were added to the contents (other than dead clauses). If the -- Quit parameter to Operate is True when Operate returns, the -- iteration is abandoned. Quit : Boolean := False; begin for I in 1 .. Last_Title loop if Title_List(I).Level /= Dead_Clause then Operate (Title_List(I).Title, Title_List(I).Level, Title_List(I).Clause_Number, Title_List(I).Version, Quit); -- else skip it. end if; if Quit then return; end if; end loop; end For_Each; end ARM_Contents;
pragma License (Unrestricted); with Ada.Numerics.Generic_Complex_Arrays; with Ada.Numerics.Short_Complex_Types; with Ada.Numerics.Short_Real_Arrays; package Ada.Numerics.Short_Complex_Arrays is new Generic_Complex_Arrays (Short_Real_Arrays, Short_Complex_Types); pragma Pure (Ada.Numerics.Short_Complex_Arrays);
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- Web Framework -- -- -- -- Runtime Library Component -- -- -- ------------------------------------------------------------------------------ -- -- -- Copyright © 2014-2016, 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.Calendars; with League.Calendars.ISO_8601; with League.Strings; with Servlet.Generic_Servlets; with Servlet.HTTP_Requests; with Servlet.HTTP_Responses; with Servlet.Requests; with Servlet.Responses; with Matreshka.RFC2616_Dates; package Servlet.HTTP_Servlets is pragma Preelaborate; type HTTP_Servlet is abstract new Servlet.Generic_Servlets.Generic_Servlet with private; not overriding procedure Do_Delete (Self : in out HTTP_Servlet; Request : Servlet.HTTP_Requests.HTTP_Servlet_Request'Class; Response : in out Servlet.HTTP_Responses.HTTP_Servlet_Response'Class); -- Called by the server (via the service method) to allow a servlet to -- handle a DELETE request. The DELETE operation allows a client to remove -- a document or Web page from the server. -- -- This method does not need to be either safe or idempotent. Operations -- requested through DELETE can have side effects for which users can be -- held accountable. When using this method, it may be useful to save a -- copy of the affected URL in temporary storage. -- -- If the HTTP DELETE request is incorrectly formatted, doDelete returns an -- HTTP "Bad Request" message. not overriding procedure Do_Get (Self : in out HTTP_Servlet; Request : Servlet.HTTP_Requests.HTTP_Servlet_Request'Class; Response : in out Servlet.HTTP_Responses.HTTP_Servlet_Response'Class); -- Called by the server (via the service method) to allow a servlet to -- handle a GET request. -- -- Overriding this method to support a GET request also automatically -- supports an HTTP HEAD request. A HEAD request is a GET request that -- returns no body in the response, only the request header fields. -- -- When overriding this method, read the request data, write the response -- headers, get the response's writer or output stream object, and finally, -- write the response data. It's best to include content type and encoding. -- When using a PrintWriter object to return the response, set the content -- type before accessing the PrintWriter object. -- -- The servlet container must write the headers before committing the -- response, because in HTTP the headers must be sent before the response -- body. -- -- Where possible, set the Content-Length header (with the -- ServletResponse.setContentLength(int) method), to allow the servlet -- container to use a persistent connection to return its response to the -- client, improving performance. The content length is automatically set -- if the entire response fits inside the response buffer. -- -- When using HTTP 1.1 chunked encoding (which means that the response has -- a Transfer-Encoding header), do not set the Content-Length header. -- -- The GET method should be safe, that is, without any side effects for -- which users are held responsible. For example, most form queries have no -- side effects. If a client request is intended to change stored data, the -- request should use some other HTTP method. -- -- The GET method should also be idempotent, meaning that it can be safely -- repeated. Sometimes making a method safe also makes it idempotent. For -- example, repeating queries is both safe and idempotent, but buying a -- product online or modifying data is neither safe nor idempotent. -- -- If the request is incorrectly formatted, doGet returns an HTTP "Bad -- Request" message. not overriding procedure Do_Head (Self : in out HTTP_Servlet; Request : Servlet.HTTP_Requests.HTTP_Servlet_Request'Class; Response : in out Servlet.HTTP_Responses.HTTP_Servlet_Response'Class); -- Receives an HTTP HEAD request from the protected service method and -- handles the request. The client sends a HEAD request when it wants to -- see only the headers of a response, such as Content-Type or -- Content-Length. The HTTP HEAD method counts the output bytes in the -- response to set the Content-Length header accurately. -- -- If you override this method, you can avoid computing the response body -- and just set the response headers directly to improve performance. Make -- sure that the doHead method you write is both safe and idempotent (that -- is, protects itself from being called multiple times for one HTTP HEAD -- request). -- -- If the HTTP HEAD request is incorrectly formatted, doHead returns an -- HTTP "Bad Request" message. not overriding procedure Do_Options (Self : in out HTTP_Servlet; Request : Servlet.HTTP_Requests.HTTP_Servlet_Request'Class; Response : in out Servlet.HTTP_Responses.HTTP_Servlet_Response'Class); -- Called by the server (via the service method) to allow a servlet to -- handle a OPTIONS request. The OPTIONS request determines which HTTP -- methods the server supports and returns an appropriate header. not overriding procedure Do_Post (Self : in out HTTP_Servlet; Request : Servlet.HTTP_Requests.HTTP_Servlet_Request'Class; Response : in out Servlet.HTTP_Responses.HTTP_Servlet_Response'Class); -- Called by the server (via the service method) to allow a servlet to -- handle a POST request. The HTTP POST method allows the client to send -- data of unlimited length to the Web server a single time and is useful -- when posting information such as credit card numbers. -- -- When overriding this method, read the request data, write the response -- headers, get the response's writer or output stream object, and finally, -- write the response data. It's best to include content type and encoding. -- When using a PrintWriter object to return the response, set the content -- type before accessing the PrintWriter object. -- -- The servlet container must write the headers before committing the -- response, because in HTTP the headers must be sent before the response -- body. -- -- Where possible, set the Content-Length header (with the -- ServletResponse.setContentLength(int) method), to allow the servlet -- container to use a persistent connection to return its response to the -- client, improving performance. The content length is automatically set -- if the entire response fits inside the response buffer. -- -- When using HTTP 1.1 chunked encoding (which means that the response has -- a Transfer-Encoding header), do not set the Content-Length header. -- -- This method does not need to be either safe or idempotent. Operations -- requested through POST can have side effects for which the user can be -- held accountable, for example, updating stored data or buying items -- online. -- -- If the HTTP POST request is incorrectly formatted, doPost returns an -- HTTP "Bad Request" message. not overriding procedure Do_Put (Self : in out HTTP_Servlet; Request : Servlet.HTTP_Requests.HTTP_Servlet_Request'Class; Response : in out Servlet.HTTP_Responses.HTTP_Servlet_Response'Class); -- Called by the server (via the service method) to allow a servlet to -- handle a PUT request. The PUT operation allows a client to place a file -- on the server and is similar to sending a file by FTP. -- -- When overriding this method, leave intact any content headers sent with -- the request (including Content-Length, Content-Type, -- Content-Transfer-Encoding, Content-Encoding, Content-Base, -- Content-Language, Content-Location, Content-MD5, and Content-Range). If -- your method cannot handle a content header, it must issue an error -- message (HTTP 501 - Not Implemented) and discard the request. For more -- information on HTTP 1.1, see RFC 2616 . -- -- This method does not need to be either safe or idempotent. Operations -- that doPut performs can have side effects for which the user can be held -- accountable. When using this method, it may be useful to save a copy of -- the affected URL in temporary storage. -- -- If the HTTP PUT request is incorrectly formatted, doPut returns an HTTP -- "Bad Request" message. not overriding procedure Do_Trace (Self : in out HTTP_Servlet; Request : Servlet.HTTP_Requests.HTTP_Servlet_Request'Class; Response : in out Servlet.HTTP_Responses.HTTP_Servlet_Response'Class); -- Called by the server (via the service method) to allow a servlet to -- handle a TRACE request. A TRACE returns the headers sent with the TRACE -- request to the client, so that they can be used in debugging. There's no -- need to override this method. not overriding function Get_Last_Modified (Self : in out HTTP_Servlet; Request : Servlet.HTTP_Requests.HTTP_Servlet_Request'Class) return League.Calendars.Date_Time; -- Returns the time the Http_Servlet_Request object was last modified. -- If the time is unknown, the method returns a special value (the default) -- -- Servlets that support HTTP GET requests and can quickly determine their -- last modification time should override this method. This makes browser -- and proxy caches work more effectively, reducing the load on server and -- network resources. overriding procedure Service (Self : in out HTTP_Servlet; Request : Servlet.Requests.Servlet_Request'Class; Response : in out Servlet.Responses.Servlet_Response'Class); private type HTTP_Servlet is abstract new Servlet.Generic_Servlets.Generic_Servlet with record Format : Matreshka.RFC2616_Dates.Format; Last_Modified_Header : League.Strings.Universal_String := League.Strings.To_Universal_String ("Last-Modified"); If_Modified_Since_Header : League.Strings.Universal_String := League.Strings.To_Universal_String ("If-Modified-Since"); Unknown_Time : League.Calendars.Date_Time := League.Calendars.ISO_8601.Create (Year => League.Calendars.ISO_8601.Year_Number'First, Month => 1, Day => 1, Hour => 0, Minute => 0, Second => 0, Nanosecond_100 => 0); end record; end Servlet.HTTP_Servlets;
package Freetype -- -- A thick bindng to the 'Freetype' font library. -- is pragma Pure; Error : exception; type Vector_3 is array (Positive range 1 .. 3) of Float; end Freetype;
------------------------------------------------------------------------------ -- -- -- Ada User Repository Annex (AURA) -- -- ANNEXI-STRAYLINE Reference Implementation -- -- -- -- Command Line Interface -- -- -- -- ------------------------------------------------------------------------ -- -- -- -- Copyright (C) 2020, ANNEXI-STRAYLINE Trans-Human Ltd. -- -- All rights reserved. -- -- -- -- Original Contributors: -- -- * Richard Wai (ANNEXI-STRAYLINE) -- -- -- -- Redistribution and use in source and binary forms, with or without -- -- modification, are permitted provided that the following conditions are -- -- met: -- -- -- -- * Redistributions of source code must retain the above copyright -- -- notice, this list of conditions and the following disclaimer. -- -- -- -- * Redistributions in binary form must reproduce the above copyright -- -- notice, this list of conditions and the following disclaimer in -- -- the documentation and/or other materials provided with the -- -- distribution. -- -- -- -- * Neither the name of the copyright holder nor the names of its -- -- contributors may be used to endorse or promote products derived -- -- from this software without specific prior written permission. -- -- -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- -- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A -- -- PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -- -- OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -- -- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -- -- LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -- -- DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -- -- THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -- -- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -- -- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- -- -- ------------------------------------------------------------------------------ -- This is the "driver" (main program). It essentially handles sequencing -- of the Scheduling package operations, and provides a final exception handler with Ada.Text_IO; with Ada.Exceptions; with Ada.Command_Line; with Ada.Strings.Unbounded; with Ada.Characters.Handling; with System.Multiprocessors; with CLI; use CLI; with Workers, Workers.Reporting; with Registrar.Queries; with Registrar.Library_Units; with Unit_Names; with UI_Primitives; use UI_Primitives; with Scheduling; procedure AURA is pragma Linker_Options ("tty_ifo.o"); -- This is required for building AURA CLI, since it relies on the ASAP -- repository's CLI AURA subsystem. If using CLI with AURA, AURA will ensure -- this "External Unit" is linked into the final program. However, AURA CLI -- is built without AURA, and so we need to include this so that gnatmake -- knows that it needs to include this object file. use CLI; use type Workers.Count_Type; use type Workers.Worker_Count; use type System.Multiprocessors.CPU_Range; use type Ada.Exceptions.Exception_ID; use all type Scheduling.Selected_Command; package UBS renames Ada.Strings.Unbounded; Base_Workers: constant Workers.Worker_Count := Workers.Worker_Count (System.Multiprocessors.Number_Of_CPUs); Optimal_Workers: constant Workers.Worker_Count := (if Base_Workers > 1 then Base_Workers + 2 else Base_Workers); Task_Group: Workers.Worker_Pool (1 .. Optimal_Workers); Command: Scheduling.Selected_Command renames Scheduling.Command; procedure Annul_Zombies (Timeout: Duration := 2.0) is Timedout: Boolean := False; begin -- Ask workers that don't disband in 2 seconds are probably in dire shape. -- Take them out of their misery so that we can all get out of here. if Timeout > 0.0 then Workers.Wait_Workers (Timeout => Timeout, Timedout => Timedout); end if; if Timedout then for T of Task_Group loop abort T; end loop; end if; end Annul_Zombies; procedure Complete is Timedout: Boolean; begin Workers.Disband_Workers; Workers.Wait_Workers (Timeout => 2.0, Timedout => Timedout); New_Line; if Timedout then Put_Warn_Tag; Put_Line (" Some workers failed to complete."); Annul_Zombies (Timeout => 0.0); else Put_OK_Tag; Put_Line (Message => " Command completed successfully.", Style => Bold); end if; if Workers.Reporting.Available_Reports > 0 then New_Line; Put_Warn_Tag; Put_Line (" Unexpected worker reports:"); UI_Primitives.Dump_Reports; Put_Line ("-- End of Worker Reports --"); end if; end; begin UI_Primitives.Print_Banner; Scheduling.Initialize_Parameters; case Command is when Help_Command => UI_Primitives.Print_Help; Workers.Disband_Workers; return; -- We return because we don't want to show -- "Command completed successfully" when Clean_Command => Scheduling.Clean; Complete; return; when Checkout_Command => Scheduling.Enter_Root; Scheduling.Add_Explicit_Checkouts; Scheduling.Initialize_Repositories; Scheduling.Checkout_Cycle; Scheduling.Consolidate_Dependencies; Scheduling.Check_Completion; Complete; return; when Compile_Command => Scheduling.Enter_Root; Scheduling.Initialize_Repositories; Scheduling.Checkout_Cycle; Scheduling.Consolidate_Dependencies; Scheduling.Check_Completion; Scheduling.Hash_Registry; Scheduling.Compile; Scheduling.Hash_Registry; Scheduling.Save_Registry; Scheduling.Save_Config; Complete; return; when Build_Command => Scheduling.Enter_Root; Scheduling.Initialize_Repositories; Scheduling.Checkout_Cycle; Scheduling.Consolidate_Dependencies; Scheduling.Check_Completion; Scheduling.Hash_Registry; Scheduling.Compile; Scheduling.Bind; Scheduling.Hash_Registry; Scheduling.Expand_Dependencies; Scheduling.Scan_Linker_Options; Scheduling.Link_Or_Archive; Scheduling.Save_Registry; Scheduling.Save_Config; Complete; return; when Run_Command => Scheduling.Enter_Root; Scheduling.Initialize_Repositories; Scheduling.Checkout_Cycle; Scheduling.Consolidate_Dependencies; Scheduling.Check_Completion; Scheduling.Hash_Registry; Scheduling.Compile; Scheduling.Bind; Scheduling.Hash_Registry; Scheduling.Expand_Dependencies; Scheduling.Scan_Linker_Options; Scheduling.Link_Or_Archive; Scheduling.Save_Registry; Scheduling.Save_Config; Complete; Scheduling.Execute_Image; -- No_Return; return; -- Unreachable when Library_Command => Scheduling.Enter_Root; Scheduling.Initialize_Repositories; Scheduling.Checkout_Cycle; Scheduling.Consolidate_Dependencies; Scheduling.Check_Completion; Scheduling.Hash_Registry; Scheduling.Compile; Scheduling.Bind; Scheduling.Hash_Registry; Scheduling.Scan_Linker_Options; Scheduling.Link_Or_Archive; Scheduling.Save_Registry; Scheduling.Save_Config; Complete; return; when Systemize_Command => raise Scheduling.Process_Failed with "Systemize is not yet implemented."; end case; exception when e: Scheduling.Process_Failed | Scheduling.Build_Failed => if Ada.Exceptions.Exception_Identity (e) = Scheduling.Build_Failed'Identity then -- Build_Failed means that AURA itself (per se) didn't have any -- problems. This means we can safely take note of what units did -- compile ok, and save that registry for next time. -- -- Most cases where this triggers, there is an error in the user's -- code that caused compilation to fail. Therefore we want to do -- our best to ensure that the next run only needs to attempt to -- compile those units that failed, rather than everything. New_Line; Put_Info_Tag; Put_Line (" Saving registry for next time..."); -- Safe to save the registry Scheduling.Hash_Registry; Scheduling.Save_Registry; Scheduling.Save_Config; Clear_Line; end if; New_Line; Put (Message => " AURA Abort ", Style => Red_BG + White_FG); Workers.Disband_Workers; if Workers.Reporting.Available_Reports = 0 then Put_Line (" Command canceled due to failed conditions"); else Put_Line (Message => Workers.Count_Type'Image (Workers.Reporting.Available_Reports) & " Worker " & (if Workers.Reporting.Available_Reports = 1 then "Report " else "Report") & " to follow:", Style => Bold); New_Line; UI_Primitives.Dump_Reports; Put_Line ("-- End of Worker Reports --"); New_Line; end if; Annul_Zombies; Ada.Command_Line.Set_Exit_Status (Ada.Command_Line.Failure); when e: others => Workers.Disband_Workers; New_Line; Put (Message => " Unexpected Exception ", Style => Red_BG + White_FG); Put_Line (" The driver failed unexpectedly:"); Put_Line (Ada.Exceptions.Exception_Information (e)); Annul_Zombies; Ada.Command_Line.Set_Exit_Status (Ada.Command_Line.Failure); end AURA;
with openGL.Primitive, openGL.Buffer, openGL.Program, openGL.Texture; private with ada.Strings.unbounded; package openGL.Geometry -- -- Provides a base class for openGL geometry. -- A Geometry is composed of up to 5 primitives. -- Each primitive has its own set of GL indices and a facet kind. -- All primitives share a common set of vertices. -- Subclasses may be created to provide for the various possible variants of an openGL vertex. -- is type Item is abstract tagged limited private; subtype Class is Item'Class; type View is access all Item'class; type Views is array (Index_t range <>) of View; --------- --- Forge -- procedure destroy (Self : in out Item); procedure free (Self : in out View); -------------- -- Attributes -- procedure Label_is (Self : in out Item'Class; Now : in String); function Label (Self : in Item'Class) return String; procedure Texture_is (Self : in out Item'Class; Now : in Texture.Object); function Texture (Self : in Item'Class) return Texture.Object; procedure Bounds_are (Self : in out Item'Class; Now : in Bounds); function Bounds (self : in Item'Class) return Bounds; -- Returns the bounds in object space. procedure is_Transparent (Self : in out Item; Now : in Boolean := True); function is_Transparent (Self : in Item) return Boolean; procedure Program_is (Self : in out Item; Now : in Program.view); function Program (Self : in Item) return Program.view; procedure add (Self : in out Item'Class; the_Primitive : in Primitive.view); function Primitives (Self : in Item'Class) return Primitive.views; procedure free_Primitives (Self : in out Item); procedure Indices_are (Self : in out Item; Now : in Indices; for_Facia : in Positive); procedure Indices_are (Self : in out Item; Now : in long_Indices; for_Facia : in Positive); -------------- -- Operations -- procedure render (Self : in out Item'Class); procedure enable_Texture (Self : in Item) is null; ----------- -- Normals -- function Normals_of (face_Kind : in primitive.facet_Kind; Indices : in openGL.Indices; Sites : in openGL.Sites) return access Normals; function Normals_of (face_Kind : in primitive.facet_Kind; Indices : in openGL.long_Indices; Sites : in openGL.Sites) return access Normals; private use ada.Strings.unbounded; type Item is abstract tagged limited record Label : unbounded_String; Texture : openGL.Texture.Object := openGL.Texture.null_Object; Program : openGL.Program.view; Vertices : Buffer.view; Primitives : Primitive.views (1 .. 5); primitive_Count : Index_t := 0; is_Transparent : Boolean := False; -- Geometry contains lucid colors. Bounds : openGL.Bounds; end record; generic type any_Index_t is range <>; with function get_Site (Index : in any_Index_t) return Vector_3; function get_Bounds (Count : in Natural) return openGL.Bounds; generic type any_Index_t is range <>; with function get_Color (Index : in any_Index_t) return lucid_Color; function get_Transparency (Count : in Natural) return Boolean; end openGL.Geometry;
-- Handle Foreign Command -- -- 2.9.92 sjw; orig with Lib; with Condition_Handling; with System; procedure Handle_Foreign_Command is function Get_Foreign return String; function To_Lower (C : Character) return Character; function Get_Foreign return String is Status : Condition_Handling.Cond_Value_Type; S : String (1 .. 255); L : System.Unsigned_Word; begin Lib.Get_Foreign (Status, Resultant_String => S, Resultant_Length => L); return S (1 .. Natural (L)); end Get_Foreign; function To_Lower (C : Character) return Character is Lower_Case : constant array ('A' .. 'Z') of Character := ('a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'); begin if C in Lower_Case'Range then return Lower_Case (C); end if; return C; end To_Lower; begin declare Raw_Command : constant String := Get_Foreign; subtype String_Position is Natural range 0 .. Raw_Command'Last + 1; subtype Substring is String (Raw_Command'Range); Raw_Position : String_Position := Raw_Command'First; Argument : Substring; Arg_Position : String_Position; Arg_Count : Argument_Count := Argument_Count'First; begin Arguments : loop exit Arguments when not (Raw_Position in Raw_Command'Range); if Raw_Command (Raw_Position) = ' ' then Raw_Position := Raw_Position + 1; -- DCL removes tabs else Arg_Position := 0; One_Argument : loop exit One_Argument when not (Raw_Position in Raw_Command'Range); exit One_Argument when Raw_Command (Raw_Position) = ' '; if Raw_Command (Raw_Position) /= '"' then Arg_Position := Arg_Position + 1; Argument (Arg_Position) := To_Lower (Raw_Command (Raw_Position)); Raw_Position := Raw_Position + 1; else Raw_Position := Raw_Position + 1; Quoted_Part : loop exit One_Argument when not (Raw_Position in Raw_Command'Range); if Raw_Command (Raw_Position) /= '"' then Arg_Position := Arg_Position + 1; Argument (Arg_Position) := Raw_Command (Raw_Position); Raw_Position := Raw_Position + 1; elsif Raw_Position + 1 in Raw_Command'Range and then Raw_Command (Raw_Position + 1) = '"' then -- double quote, -> one Arg_Position := Arg_Position + 1; Argument (Arg_Position) := '"'; Raw_Position := Raw_Position + 2; else -- terminating '"' Raw_Position := Raw_Position + 1; exit Quoted_Part; end if; end loop Quoted_Part; end if; end loop One_Argument; Handle_Argument (Count => Arg_Count, Argument => Argument (Argument'First .. Arg_Position)); exit Arguments when Arg_Count = Argument_Count'Last; -- Maybe an exception would be more appropriate here! Arg_Count := Arg_Count + 1; end if; end loop Arguments; end; end Handle_Foreign_Command;
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- S Y S T E M . M E M O R Y _ S E T -- -- -- -- S p e c -- -- -- -- Copyright (C) 2006-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. -- -- -- -- -- -- -- -- -- -- -- -- You should have received a copy of the GNU General Public License and -- -- a copy of the GCC Runtime Library Exception along with this program; -- -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see -- -- <http://www.gnu.org/licenses/>. -- -- -- -- GNAT was originally developed by the GNAT team at New York University. -- -- Extensive contributions were provided by Ada Core Technologies Inc. -- -- -- ------------------------------------------------------------------------------ pragma Restrictions (No_Elaboration_Code); with Interfaces.C; package System.Memory_Set with SPARK_Mode => On is pragma Preelaborate; function Memset (M : Address; C : Interfaces.C.int; Size : Interfaces.C.size_t) return Address; pragma Export (C, Memset, "memset"); -- This function stores C converted to a Character in each of the elements -- of the array of Characters beginning at M, with size Size. It returns a -- pointer to M. end System.Memory_Set;
-- Copyright 2015-2016 Free Software Foundation, Inc. -- -- This program is free software; you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation; either version 3 of the License, or -- (at your option) any later version. -- -- This program is distributed in the hope that it will be useful, -- but WITHOUT ANY WARRANTY; without even the implied warranty of -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -- GNU General Public License for more details. -- -- You should have received a copy of the GNU General Public License -- along with this program. If not, see <http://www.gnu.org/licenses/>. package body Bar is function F (R : out Rec_Type) return Enum_Type is begin R.Cur := 0; return A; end F; end Bar;
----------------------------------------------------------------------- -- awa-tags-modules -- Module awa-tags -- Copyright (C) 2013 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 ASF.Applications; with ADO; with ADO.Sessions; with Util.Strings.Vectors; with AWA.Modules; -- == Integration == -- The <tt>Tag_Module</tt> manages the tags associated with entities. It provides operations -- that are used by the tag beans together with the <tt>awa:tagList</tt> and -- <tt>awa:tagCloud</tt> components to manage the tags. -- An instance of the <tt>Tag_Module</tt> must be declared and registered in the AWA application. -- The module instance can be defined as follows: -- -- type Application is new AWA.Applications.Application with record -- Tag_Module : aliased AWA.Votes.Modules.Tag_Module; -- end record; -- -- And registered in the `Initialize_Modules` procedure by using: -- -- Register (App => App.Self.all'Access, -- Name => AWA.Tags.Modules.NAME, -- URI => "tags", -- Module => App.Tag_Module'Access); package AWA.Tags.Modules is -- The name under which the module is registered. NAME : constant String := "tags"; -- ------------------------------ -- Module awa-tags -- ------------------------------ type Tag_Module is new AWA.Modules.Module with private; type Tag_Module_Access is access all Tag_Module'Class; -- Initialize the tags module. overriding procedure Initialize (Plugin : in out Tag_Module; App : in AWA.Modules.Application_Access; Props : in ASF.Applications.Config); -- Get the tags module. function Get_Tag_Module return Tag_Module_Access; -- Add a tag on the database entity referenced by <tt>Id</tt> in the table identified -- by <tt>Entity_Type</tt>. The permission represented by <tt>Permission</tt> is checked -- to make sure the current user can add the tag. If the permission is granted, the -- tag represented by <tt>Tag</tt> is associated with the said database entity. procedure Add_Tag (Model : in Tag_Module; Id : in ADO.Identifier; Entity_Type : in String; Permission : in String; Tag : in String); -- Remove the tag identified by <tt>Tag</tt> and associated with the database entity -- referenced by <tt>Id</tt> in the table identified by <tt>Entity_Type</tt>. -- The permission represented by <tt>Permission</tt> is checked to make sure the current user -- can remove the tag. procedure Remove_Tag (Model : in Tag_Module; Id : in ADO.Identifier; Entity_Type : in String; Permission : in String; Tag : in String); -- Remove the tags defined by the <tt>Deleted</tt> tag list and add the tags defined -- in the <tt>Added</tt> tag list. The tags are associated with the database entity -- referenced by <tt>Id</tt> in the table identified by <tt>Entity_Type</tt>. -- The permission represented by <tt>Permission</tt> is checked to make sure the current user -- can remove or add the tag. procedure Update_Tags (Model : in Tag_Module; Id : in ADO.Identifier; Entity_Type : in String; Permission : in String; Added : in Util.Strings.Vectors.Vector; Deleted : in Util.Strings.Vectors.Vector); -- Find the tag identifier associated with the given tag. -- Return NO_IDENTIFIER if there is no such tag. procedure Find_Tag_Id (Session : in out ADO.Sessions.Session'Class; Tag : in String; Result : out ADO.Identifier); private type Tag_Module is new AWA.Modules.Module with null record; end AWA.Tags.Modules;
-- This spec has been automatically generated from STM32F40x.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; with HAL; with System; package STM32_SVD.IWDG is pragma Preelaborate; --------------- -- Registers -- --------------- ----------------- -- KR_Register -- ----------------- subtype KR_KEY_Field is HAL.Short; -- Key register type KR_Register is record -- Write-only. Key value (write only, read 0000h) KEY : KR_KEY_Field := 16#0#; -- unspecified Reserved_16_31 : HAL.Short := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for KR_Register use record KEY at 0 range 0 .. 15; Reserved_16_31 at 0 range 16 .. 31; end record; ----------------- -- PR_Register -- ----------------- subtype PR_PR_Field is HAL.UInt3; -- Prescaler register type PR_Register is record -- Prescaler divider PR : PR_PR_Field := 16#0#; -- unspecified Reserved_3_31 : HAL.UInt29 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for PR_Register use record PR at 0 range 0 .. 2; Reserved_3_31 at 0 range 3 .. 31; end record; ------------------ -- RLR_Register -- ------------------ subtype RLR_RL_Field is HAL.UInt12; -- Reload register type RLR_Register is record -- Watchdog counter reload value RL : RLR_RL_Field := 16#FFF#; -- unspecified Reserved_12_31 : HAL.UInt20 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for RLR_Register use record RL at 0 range 0 .. 11; Reserved_12_31 at 0 range 12 .. 31; end record; ----------------- -- SR_Register -- ----------------- -- Status register type SR_Register is record -- Read-only. Watchdog prescaler value update PVU : Boolean; -- Read-only. Watchdog counter reload value update RVU : Boolean; -- unspecified Reserved_2_31 : HAL.UInt30; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for SR_Register use record PVU at 0 range 0 .. 0; RVU at 0 range 1 .. 1; Reserved_2_31 at 0 range 2 .. 31; end record; ----------------- -- Peripherals -- ----------------- -- Independent watchdog type IWDG_Peripheral is record -- Key register KR : KR_Register; -- Prescaler register PR : PR_Register; -- Reload register RLR : RLR_Register; -- Status register SR : SR_Register; end record with Volatile; for IWDG_Peripheral use record KR at 0 range 0 .. 31; PR at 4 range 0 .. 31; RLR at 8 range 0 .. 31; SR at 12 range 0 .. 31; end record; -- Independent watchdog IWDG_Periph : aliased IWDG_Peripheral with Import, Address => IWDG_Base; end STM32_SVD.IWDG;
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- Ada Modeling Framework -- -- -- -- Runtime Library Component -- -- -- ------------------------------------------------------------------------------ -- -- -- Copyright © 2011-2012, Vadim Godunko <vgodunko@gmail.com> -- -- All rights reserved. -- -- -- -- Redistribution and use in source and binary forms, with or without -- -- modification, are permitted provided that the following conditions -- -- are met: -- -- -- -- * Redistributions of source code must retain the above copyright -- -- notice, this list of conditions and the following disclaimer. -- -- -- -- * Redistributions in binary form must reproduce the above copyright -- -- notice, this list of conditions and the following disclaimer in the -- -- documentation and/or other materials provided with the distribution. -- -- -- -- * Neither the name of the Vadim Godunko, IE nor the names of its -- -- contributors may be used to endorse or promote products derived from -- -- this software without specific prior written permission. -- -- -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- -- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -- -- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -- -- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -- -- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED -- -- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -- -- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -- -- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -- -- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -- -- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- -- -- ------------------------------------------------------------------------------ -- $Revision$ $Date$ ------------------------------------------------------------------------------ -- This file is generated, don't edit it. ------------------------------------------------------------------------------ with AMF.Generic_Collections; package AMF.UML.Signals.Collections is pragma Preelaborate; package UML_Signal_Collections is new AMF.Generic_Collections (UML_Signal, UML_Signal_Access); type Set_Of_UML_Signal is new UML_Signal_Collections.Set with null record; Empty_Set_Of_UML_Signal : constant Set_Of_UML_Signal; type Ordered_Set_Of_UML_Signal is new UML_Signal_Collections.Ordered_Set with null record; Empty_Ordered_Set_Of_UML_Signal : constant Ordered_Set_Of_UML_Signal; type Bag_Of_UML_Signal is new UML_Signal_Collections.Bag with null record; Empty_Bag_Of_UML_Signal : constant Bag_Of_UML_Signal; type Sequence_Of_UML_Signal is new UML_Signal_Collections.Sequence with null record; Empty_Sequence_Of_UML_Signal : constant Sequence_Of_UML_Signal; private Empty_Set_Of_UML_Signal : constant Set_Of_UML_Signal := (UML_Signal_Collections.Set with null record); Empty_Ordered_Set_Of_UML_Signal : constant Ordered_Set_Of_UML_Signal := (UML_Signal_Collections.Ordered_Set with null record); Empty_Bag_Of_UML_Signal : constant Bag_Of_UML_Signal := (UML_Signal_Collections.Bag with null record); Empty_Sequence_Of_UML_Signal : constant Sequence_Of_UML_Signal := (UML_Signal_Collections.Sequence with null record); end AMF.UML.Signals.Collections;
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- S Y S T E M -- -- -- -- S p e c -- -- (Native Cert Version x86/32) -- -- -- -- Copyright (C) 1992-2020, Free Software Foundation, Inc. -- -- -- -- This specification is derived from the Ada Reference Manual for use with -- -- GNAT. The copyright notice above, and the license provisions that follow -- -- apply solely to the contents of the part following the private keyword. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 3, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. -- -- -- -- As a special exception under Section 7 of GPL version 3, you are granted -- -- additional permissions described in the GCC Runtime Library Exception, -- -- version 3.1, as published by the Free Software Foundation. -- -- -- -- You should have received a copy of the GNU General Public License and -- -- a copy of the GCC Runtime Library Exception along with this program; -- -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see -- -- <http://www.gnu.org/licenses/>. -- -- -- -- GNAT was originally developed by the GNAT team at New York University. -- -- Extensive contributions were provided by Ada Core Technologies Inc. -- -- -- ------------------------------------------------------------------------------ -- Version for the Cert run time on native x86 (32-bits) native targets pragma Restrictions (No_Finalization); -- Controlled types are not supported in this run time pragma Restrictions (No_Exception_Registration); -- Disable exception name registration. This capability is not used because -- it is only required by exception stream attributes which are not supported -- in this run time. pragma Restrictions (No_Abort_Statements); -- Abort statements and task abort are not upported in this run time pragma Restrictions (No_Implicit_Dynamic_Code); -- Pointers to nested subprograms are not allowed in this run time, in order -- to prevent the compiler from building "trampolines". pragma Restrictions (No_Tasking); -- Tasking is not supported in this run time pragma Restrictions (Max_Asynchronous_Select_Nesting => 0); -- Asynchronous Transfer of Control is not allowed in this run time package System is pragma Pure; -- Note that we take advantage of the implementation permission to make -- this unit Pure instead of Preelaborable; see RM 13.7.1(15). In Ada -- 2005, this is Pure in any case (AI-362). pragma No_Elaboration_Code_All; -- Allow the use of that restriction in units that WITH this unit type Name is (SYSTEM_NAME_GNAT); System_Name : constant Name := SYSTEM_NAME_GNAT; -- System-Dependent Named Numbers Min_Int : constant := -2 ** (Standard'Max_Integer_Size - 1); Max_Int : constant := 2 ** (Standard'Max_Integer_Size - 1) - 1; Max_Binary_Modulus : constant := 2 ** Standard'Max_Integer_Size; Max_Nonbinary_Modulus : constant := 2 ** Integer'Size - 1; Max_Base_Digits : constant := Long_Long_Float'Digits; Max_Digits : constant := Long_Long_Float'Digits; Max_Mantissa : constant := Standard'Max_Integer_Size - 1; Fine_Delta : constant := 2.0 ** (-Max_Mantissa); Tick : constant := 0.000_001; -- Storage-related Declarations type Address is private; pragma Preelaborable_Initialization (Address); Null_Address : constant Address; Storage_Unit : constant := 8; Word_Size : constant := 32; Memory_Size : constant := 2 ** 32; -- Address comparison function "<" (Left, Right : Address) return Boolean; function "<=" (Left, Right : Address) return Boolean; function ">" (Left, Right : Address) return Boolean; function ">=" (Left, Right : Address) return Boolean; function "=" (Left, Right : Address) return Boolean; pragma Import (Intrinsic, "<"); pragma Import (Intrinsic, "<="); pragma Import (Intrinsic, ">"); pragma Import (Intrinsic, ">="); pragma Import (Intrinsic, "="); -- Other System-Dependent Declarations type Bit_Order is (High_Order_First, Low_Order_First); Default_Bit_Order : constant Bit_Order := Low_Order_First; pragma Warnings (Off, Default_Bit_Order); -- kill constant condition warning -- Priority-related Declarations (RM D.1) Max_Priority : constant Positive := 30; Max_Interrupt_Priority : constant Positive := 31; subtype Any_Priority is Integer range 0 .. 31; subtype Priority is Any_Priority range 0 .. 30; subtype Interrupt_Priority is Any_Priority range 31 .. 31; Default_Priority : constant Priority := 15; private type Address is mod Memory_Size; Null_Address : constant Address := 0; -------------------------------------- -- System Implementation Parameters -- -------------------------------------- -- These parameters provide information about the target that is used -- by the compiler. They are in the private part of System, where they -- can be accessed using the special circuitry in the Targparm unit -- whose source should be consulted for more detailed descriptions -- of the individual switch values. Atomic_Sync_Default : constant Boolean := False; Backend_Divide_Checks : constant Boolean := False; Backend_Overflow_Checks : constant Boolean := True; Command_Line_Args : constant Boolean := False; Configurable_Run_Time : constant Boolean := True; Denorm : constant Boolean := True; Duration_32_Bits : constant Boolean := False; Exit_Status_Supported : constant Boolean := True; Fractional_Fixed_Ops : constant Boolean := False; Frontend_Layout : constant Boolean := False; Machine_Overflows : constant Boolean := False; Machine_Rounds : constant Boolean := True; Preallocated_Stacks : constant Boolean := False; Signed_Zeros : constant Boolean := True; Stack_Check_Default : constant Boolean := False; Stack_Check_Probes : constant Boolean := True; Stack_Check_Limits : constant Boolean := False; Support_Aggregates : constant Boolean := True; Support_Atomic_Primitives : constant Boolean := True; Support_Composite_Assign : constant Boolean := True; Support_Composite_Compare : constant Boolean := True; Support_Long_Shifts : constant Boolean := True; Always_Compatible_Rep : constant Boolean := True; Suppress_Standard_Library : constant Boolean := False; Use_Ada_Main_Program_Name : constant Boolean := False; Frontend_Exceptions : constant Boolean := False; ZCX_By_Default : constant Boolean := True; end System;
------------------------------------------------------------------------- -- GL.Textures - GL Texture model -- -- Copyright (c) Rod Kay 2007 -- AUSTRALIA -- Permission granted to use this software, without any warranty, -- for any purpose, provided this copyright note remains attached -- and unmodified if sources are distributed further. ------------------------------------------------------------------------- with GL.Geometry; with Ada.Unchecked_Deallocation; package GL.Textures is -- core types -- subtype texture_Name is GL.Uint; -- an openGL texture 'name', which is a natural integer. type texture_Transform is record Offset : Double; Scale : Double; end record; -- texture co - ordinates -- type Coordinate_1D is record S : aliased GL.Double; end record; type Coordinate_1D_array is array (Natural range <>) of Coordinate_1D; type Coordinate_2D is record S, T : aliased GL.Double; end record; type Coordinate_2D_array is array (GL.Geometry.Positive_Vertex_Id range <>) of aliased Coordinate_2D; -- tbd : can the index be '1'- based ? type p_Coordinate_2D_array is access all Coordinate_2D_array; procedure free is new Ada.Unchecked_Deallocation (Coordinate_2D_array, p_Coordinate_2D_array); function To_Texture_Coordinates_xz (the_Points : GL.Geometry.GL_Vertex_array; Transform_S : texture_Transform; -- transforms point X ordinate. Transform_T : texture_Transform) -- transforms point Z ordinate. return p_Coordinate_2D_array; -- using heap to avoid storage_Error with large numbers of points. type coordinate_Generator is abstract tagged null record; type p_coordinate_Generator is access all coordinate_Generator'Class; function To_Coordinates (Self : coordinate_Generator; the_Vertices : GL.Geometry.GL_Vertex_array) return GL.Textures.p_Coordinate_2D_array is abstract; function To_Coordinates (Self : coordinate_Generator; the_Vertices : GL.Geometry.GL_Vertex_array) return GL.Textures.Coordinate_2D_array is abstract; type xz_Generator is new coordinate_Generator with record Transform_S : texture_Transform; -- transforms point X ordinate. Transform_T : texture_Transform; -- transforms point Z ordinate. end record; overriding function To_Coordinates (Self : xz_Generator; the_Vertices : GL.Geometry.GL_Vertex_array) return GL.Textures.p_Coordinate_2D_array; overriding function to_Coordinates (Self : xz_Generator; the_Vertices : GL.Geometry.GL_Vertex_array) return GL.Textures.Coordinate_2D_array; type Coordinate_3D is record S, T, R : aliased GL.Double; end record; type Coordinate_3D_array is array (Natural range <>) of Coordinate_3D; type Coordinate_4D is record S, T, R, Q : aliased GL.Double; end record; type Coordinate_4D_array is array (Natural range <>) of Coordinate_4D; type Size is (Unknown, s2, s4, s8, s16, s32, s64, s128, s256, s512, s1024, s2048); function To_Size (From : Positive) return Size; -- Object - an openGL texture 'object'. -- type Object is private; type Objects is array (Positive range <>) of Object; function New_Texture (image_Filename : String) return Object; unsupported_format_Error : exception; -- raised when image filename is not of 'bmp' or 'tga' format. procedure Destroy (Self : in out Object); procedure Set_Name (Self : in out Object; To : texture_Name); function Name (Self : Object) return texture_Name; procedure Enable (Self : in out Object); function Size_Width (Self : Object) return Size; function Size_Height (Self : Object) return Size; function Is_Transparent (Self : Object) return Boolean; -- Pool - a pool for rapid allocation/deallocation of texture objects. -- type Pool is private; type p_Pool is access all Pool; function New_Texture (From : access Pool; min_Width : Positive; min_Height : Positive) return Object; -- -- returns a texture object, whose width and height are powers of two, sufficient to contain the requested minimums. -- tbd : add texture properties to construction parameters ! procedure Free (Self : in out Pool; the_Texture : Object); -- -- free's a texture, for future use. procedure Vacuum (Self : in out Pool); -- -- releases any allocated, but unused, texture objects. -- support -- function Power_of_2_Ceiling (From : Positive) return GL.Sizei; private type Object is tagged record Name : aliased texture_Name := 0; Width, Height : Size := Unknown; is_Transparent : Boolean; Pool : Textures.p_Pool; end record; -- pool -- -- re - uses existing textures when possible for performance. type pool_texture_List is record Textures : Objects (1 .. 3000); Last : Natural := 0; end record; type p_pool_texture_List is access all pool_texture_List; type pool_texture_Lists_by_size is array (Size, Size) of p_pool_texture_List; type Pool is record unused_Textures_for_size : pool_texture_Lists_by_size; end record; end GL.Textures;
----------------------------------------------------------------------- -- akt-commands-list -- List content of keystore -- Copyright (C) 2019 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law or agreed to in writing, software -- distributed under the License is distributed on an "AS IS" BASIS, -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -- See the License for the specific language governing permissions and -- limitations under the License. ----------------------------------------------------------------------- with AKT.Commands.Drivers; private package AKT.Commands.List is type Command_Type is new AKT.Commands.Drivers.Command_Type with null record; -- List the value entries of the keystore. overriding procedure Execute (Command : in out Command_Type; Name : in String; Args : in Argument_List'Class; Context : in out Context_Type); end AKT.Commands.List;
-- Swagger Petstore -- This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special_key` to test the authorization filters. -- -- OpenAPI spec version: 1.0.0 -- Contact: apiteam@swagger.io -- -- NOTE: This package is auto generated by the swagger code generator 2.4.0-SNAPSHOT. -- https://github.com/swagger-api/swagger-codegen.git -- Do not edit the class manually. with Swagger.Streams; with Ada.Containers.Vectors; package Samples.Petstore.Models is -- ------------------------------ -- An uploaded response -- Describes the result of uploading an image resource -- ------------------------------ type ApiResponse_Type is record Code : Swagger.Nullable_Integer; P_Type : Swagger.Nullable_UString; Message : Swagger.Nullable_UString; end record; package ApiResponse_Type_Vectors is new Ada.Containers.Vectors (Index_Type => Positive, Element_Type => ApiResponse_Type); procedure Serialize (Into : in out Swagger.Streams.Output_Stream'Class; Name : in String; Value : in ApiResponse_Type); procedure Serialize (Into : in out Swagger.Streams.Output_Stream'Class; Name : in String; Value : in ApiResponse_Type_Vectors.Vector); procedure Deserialize (From : in Swagger.Value_Type; Name : in String; Value : out ApiResponse_Type); procedure Deserialize (From : in Swagger.Value_Type; Name : in String; Value : out ApiResponse_Type_Vectors.Vector); -- ------------------------------ -- Pet Tag -- A tag for a pet -- ------------------------------ type Tag_Type is record Id : Swagger.Nullable_Long; Name : Swagger.Nullable_UString; end record; package Tag_Type_Vectors is new Ada.Containers.Vectors (Index_Type => Positive, Element_Type => Tag_Type); procedure Serialize (Into : in out Swagger.Streams.Output_Stream'Class; Name : in String; Value : in Tag_Type); procedure Serialize (Into : in out Swagger.Streams.Output_Stream'Class; Name : in String; Value : in Tag_Type_Vectors.Vector); procedure Deserialize (From : in Swagger.Value_Type; Name : in String; Value : out Tag_Type); procedure Deserialize (From : in Swagger.Value_Type; Name : in String; Value : out Tag_Type_Vectors.Vector); -- ------------------------------ -- Pet category -- A category for a pet -- ------------------------------ type Category_Type is record Id : Swagger.Nullable_Long; Name : Swagger.Nullable_UString; end record; package Category_Type_Vectors is new Ada.Containers.Vectors (Index_Type => Positive, Element_Type => Category_Type); procedure Serialize (Into : in out Swagger.Streams.Output_Stream'Class; Name : in String; Value : in Category_Type); procedure Serialize (Into : in out Swagger.Streams.Output_Stream'Class; Name : in String; Value : in Category_Type_Vectors.Vector); procedure Deserialize (From : in Swagger.Value_Type; Name : in String; Value : out Category_Type); procedure Deserialize (From : in Swagger.Value_Type; Name : in String; Value : out Category_Type_Vectors.Vector); -- ------------------------------ -- a Pet -- A pet for sale in the pet store -- ------------------------------ type Pet_Type is record Id : Swagger.Nullable_Long; Category : Samples.Petstore.Models.Category_Type; Name : Swagger.UString; Photo_Urls : Swagger.Nullable_UString_Vectors.Vector; Tags : Samples.Petstore.Models.Tag_Type_Vectors.Vector; Status : Swagger.Nullable_UString; end record; package Pet_Type_Vectors is new Ada.Containers.Vectors (Index_Type => Positive, Element_Type => Pet_Type); procedure Serialize (Into : in out Swagger.Streams.Output_Stream'Class; Name : in String; Value : in Pet_Type); procedure Serialize (Into : in out Swagger.Streams.Output_Stream'Class; Name : in String; Value : in Pet_Type_Vectors.Vector); procedure Deserialize (From : in Swagger.Value_Type; Name : in String; Value : out Pet_Type); procedure Deserialize (From : in Swagger.Value_Type; Name : in String; Value : out Pet_Type_Vectors.Vector); -- ------------------------------ -- a User -- A User who is purchasing from the pet store -- ------------------------------ type User_Type is record Id : Swagger.Nullable_Long; Username : Swagger.Nullable_UString; First_Name : Swagger.Nullable_UString; Last_Name : Swagger.Nullable_UString; Email : Swagger.Nullable_UString; Password : Swagger.Nullable_UString; Phone : Swagger.Nullable_UString; User_Status : Swagger.Nullable_Integer; end record; package User_Type_Vectors is new Ada.Containers.Vectors (Index_Type => Positive, Element_Type => User_Type); procedure Serialize (Into : in out Swagger.Streams.Output_Stream'Class; Name : in String; Value : in User_Type); procedure Serialize (Into : in out Swagger.Streams.Output_Stream'Class; Name : in String; Value : in User_Type_Vectors.Vector); procedure Deserialize (From : in Swagger.Value_Type; Name : in String; Value : out User_Type); procedure Deserialize (From : in Swagger.Value_Type; Name : in String; Value : out User_Type_Vectors.Vector); -- ------------------------------ -- Pet Order -- An order for a pets from the pet store -- ------------------------------ type Order_Type is record Id : Swagger.Nullable_Long; Pet_Id : Swagger.Nullable_Long; Quantity : Swagger.Nullable_Integer; Ship_Date : Swagger.Nullable_Date; Status : Swagger.Nullable_UString; Complete : Swagger.Nullable_Boolean; end record; package Order_Type_Vectors is new Ada.Containers.Vectors (Index_Type => Positive, Element_Type => Order_Type); procedure Serialize (Into : in out Swagger.Streams.Output_Stream'Class; Name : in String; Value : in Order_Type); procedure Serialize (Into : in out Swagger.Streams.Output_Stream'Class; Name : in String; Value : in Order_Type_Vectors.Vector); procedure Deserialize (From : in Swagger.Value_Type; Name : in String; Value : out Order_Type); procedure Deserialize (From : in Swagger.Value_Type; Name : in String; Value : out Order_Type_Vectors.Vector); end Samples.Petstore.Models;
-- Copyright 2018-2019 Free Software Foundation, Inc. -- -- This program is free software; you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation; either version 3 of the License, or -- (at your option) any later version. -- -- This program is distributed in the hope that it will be useful, -- but WITHOUT ANY WARRANTY; without even the implied warranty of -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -- GNU General Public License for more details. -- -- You should have received a copy of the GNU General Public License -- along with this program. If not, see <http://www.gnu.org/licenses/>. package Pck is Global_Var : Integer := 0; end Pck;
package Pack22_Pkg is type byte is mod 256; Temp_buffer : array (0..8) of byte:= (others => 0); for Temp_buffer'Alignment use 2; subtype Id is Short_integer; generic Dummy : Integer := 0; package Bit_Map_Generic is type List is private; function "xor" (L, R : List) return List; private type Offset_T is range 0 .. Id'Last; type Counter_T is new short_integer; for Counter_T'Size use 16; type Bit_List is array (Id range <>) of Boolean; pragma Pack (Bit_List); type List_Counter_T (Is_Defined : Boolean := True) is record Dummy : Boolean := False; case Is_Defined is when True => Counter : Counter_T := 0; when False => null; end case; end record; for List_Counter_T use record Is_Defined at 0 range 0 .. 7; Dummy at 1 range 0 .. 7; Counter at 2 range 0 .. 15; end record; type List is record Offset : Offset_T := Offset_T (1) - 1; Counter : List_Counter_T; Bits : Bit_List (1 .. 6); end record; for List use record Offset at 0 range 0 .. 15; Counter at 2 range 0 .. 31; end record; type Iterator is record No_More_Id : Boolean := True; Current_Id : Id; The_List : List; end record; end Bit_Map_Generic; end Pack22_Pkg;
with Samples.Petstore.Clients; with Samples.Petstore.Models; with Swagger; with Util.Http.Clients.Curl; with Ada.Text_IO; with Ada.Command_Line; with Ada.Calendar.Formatting; with Ada.Exceptions; procedure Petstore is use Ada.Text_IO; procedure Usage; procedure Print_Pet (Pet : in Samples.Petstore.Models.Pet_Type); procedure Print_Order (Order : in Samples.Petstore.Models.Order_Type); procedure Get_User (C : in out Samples.Petstore.Clients.Client_Type); procedure Get_Pet (C : in out Samples.Petstore.Clients.Client_Type); procedure Get_Order (C : in out Samples.Petstore.Clients.Client_Type); procedure List_Inventory (C : in out Samples.Petstore.Clients.Client_Type); procedure List_Pet (C : in out Samples.Petstore.Clients.Client_Type); procedure Delete_Pet (C : in out Samples.Petstore.Clients.Client_Type); procedure Delete_User (C : in out Samples.Petstore.Clients.Client_Type); procedure Delete_Order (C : in out Samples.Petstore.Clients.Client_Type); procedure Add_Pet (C : in out Samples.Petstore.Clients.Client_Type); procedure Login (C : in out Samples.Petstore.Clients.Client_Type; Username : in String; Password : in String); Server : constant Swagger.UString := Swagger.To_UString ("http://petstore.swagger.io/v2"); Arg_Count : constant Natural := Ada.Command_Line.Argument_Count; Arg : Positive := 1; procedure Usage is begin Put_Line ("Usage: petstore {list|add|rm|update} {user|order|pet} {params}..."); Put_Line (" get pet <id>... Print pet given its id"); Put_Line (" get user <name>... Print user given its name"); Put_Line (" get order <id>... Print order given its id"); Put_Line (" list pet <status>... List the pets with the given status"); Put_Line (" list inventory List the inventory"); Put_Line (" add pet <id> <name> <status> <category-id> <category-name"); Put_Line (" Add a pet"); Put_Line (" rm user <name>... Remove user with given name"); Put_Line (" rm order <id>... Remove order with given id"); Put_Line (" login <username> <password> Use login operation to get a session"); end Usage; procedure Print_Pet (Pet : in Samples.Petstore.Models.Pet_Type) is Need_Indent : Boolean := False; begin Put_Line ("Id : " & Swagger.Long'Image (Pet.Id.Value)); Put_Line ("Name : " & Swagger.To_String (Pet.Name)); Put_Line ("Status : " & Swagger.To_String (Pet.Status.Value)); if not Pet.Tags.Is_Empty then Put ("Tags : "); for Tag of Pet.Tags loop Put_Line ((if Need_Indent then " " else "") & Swagger.To_String (Tag.Name.Value)); Need_Indent := True; end loop; end if; if not Pet.Photo_Urls.Is_Empty then Need_Indent := False; Put ("URLs : "); for Url of Pet.Photo_Urls loop Put_Line ((if Need_Indent then " " else "") & Url); Need_Indent := True; end loop; end if; end Print_Pet; procedure Print_Order (Order : in Samples.Petstore.Models.Order_Type) is begin Put_Line ("Id : " & Swagger.Long'Image (Order.Id.Value)); Put_Line ("Pet id : " & Swagger.Long'Image (Order.Pet_Id.Value)); Put_Line ("Quantity : " & Integer'Image (Order.Quantity.Value)); Put_Line ("Status : " & Swagger.To_String (Order.Status.Value)); Put_Line ("Ship date : " & Ada.Calendar.Formatting.Image (Order.Ship_Date.Value)); Put_Line ("Complete : " & Boolean'Image (Order.Complete.Value)); end Print_Order; procedure Get_User (C : in out Samples.Petstore.Clients.Client_Type) is User : Samples.Petstore.Models.User_Type; begin for I in Arg .. Arg_Count loop C.Get_User_By_Name (Swagger.To_UString (Ada.Command_Line.Argument (I)), User); Put_Line ("Id : " & Swagger.Long'Image (User.Id.Value)); Put_Line ("Username : " & Swagger.To_String (User.Username.Value)); Put_Line ("Firstname: " & Swagger.To_String (User.First_Name.Value)); Put_Line ("Lastname : " & Swagger.To_String (User.Last_Name.Value)); Put_Line ("Email : " & Swagger.To_String (User.Email.Value)); Put_Line ("Password : " & Swagger.To_String (User.Password.Value)); Put_Line ("Phone : " & Swagger.To_String (User.Phone.Value)); end loop; end Get_User; procedure Get_Pet (C : in out Samples.Petstore.Clients.Client_Type) is Pet : Samples.Petstore.Models.Pet_Type; begin C.Set_Server (Server); for I in Arg .. Arg_Count loop declare P : constant String := Ada.Command_Line.Argument (I); begin C.Get_Pet_By_Id (Swagger.Long'Value (P), Pet); Print_Pet (Pet); end; end loop; end Get_Pet; procedure Get_Order (C : in out Samples.Petstore.Clients.Client_Type) is Order : Samples.Petstore.Models.Order_Type; begin C.Set_Server (Server); for I in Arg .. Arg_Count loop declare P : constant String := Ada.Command_Line.Argument (I); begin C.Get_Order_By_Id (Swagger.Long'Value (P), Order); Print_Order (Order); end; end loop; end Get_Order; procedure List_Pet (C : in out Samples.Petstore.Clients.Client_Type) is Pets : Samples.Petstore.Models.Pet_Type_Vectors.Vector; begin for I in Arg .. Arg_Count loop declare Status : Swagger.UString_Vectors.Vector; P : constant String := Ada.Command_Line.Argument (I); begin Status.Append (New_Item => P); C.Find_Pets_By_Status (Status, Pets); for Pet of Pets loop Print_Pet (Pet); end loop; end; end loop; end List_Pet; procedure List_Inventory (C : in out Samples.Petstore.Clients.Client_Type) is List : Swagger.Integer_Map; Iter : Swagger.Integer_Maps.Cursor; begin C.Get_Inventory (List); Ada.Text_IO.Put_Line ("Inventory size " & Natural'Image (Natural (List.Length))); Iter := List.First; while Swagger.Integer_Maps.Has_Element (Iter) loop Put (Swagger.Integer_Maps.Key (Iter)); Set_Col (70); Put_Line (Natural'Image (Swagger.Integer_Maps.Element (Iter))); Swagger.Integer_Maps.Next (Iter); end loop; end List_Inventory; procedure Login (C : in out Samples.Petstore.Clients.Client_Type; Username : in String; Password : in String) is Session : Swagger.UString; begin C.Login_User (Swagger.To_UString (Username), Swagger.To_UString (Password), Session); Put_Line ("New session : " & Swagger.To_String (Session)); end Login; procedure Add_Pet (C : in out Samples.Petstore.Clients.Client_Type) is Pet : Samples.Petstore.Models.Pet_Type; begin if Arg_Count /= 7 then Put_Line ("Missing some arguments for add pet command"); Usage; return; end if; Pet.Id := (Is_Null => False, Value => Swagger.Long'Value (Ada.Command_Line.Argument (Arg))); Pet.Name := Swagger.To_UString (Ada.Command_Line.Argument (Arg + 1)); Pet.Status := (Is_Null => False, Value => Swagger.To_UString (Ada.Command_Line.Argument (Arg + 2))); Pet.Category.Id := (Is_Null => False, Value => Swagger.Long'Value (Ada.Command_Line.Argument (Arg + 3))); Pet.Category.Name := (Is_Null => False, Value => Swagger.To_UString (Ada.Command_Line.Argument (Arg + 4))); C.Add_Pet (Pet); end Add_Pet; procedure Delete_User (C : in out Samples.Petstore.Clients.Client_Type) is begin for I in Arg .. Arg_Count loop C.Delete_User (Username => Swagger.To_UString (Ada.Command_Line.Argument (I))); end loop; end Delete_User; procedure Delete_Order (C : in out Samples.Petstore.Clients.Client_Type) is begin for I in Arg .. Arg_Count loop C.Delete_Order (Swagger.To_UString (Ada.Command_Line.Argument (I))); end loop; end Delete_Order; procedure Delete_Pet (C : in out Samples.Petstore.Clients.Client_Type) is Key : constant Swagger.UString := Swagger.To_UString (Ada.Command_Line.Argument (Arg)); begin Arg := Arg + 1; for I in Arg .. Arg_Count loop C.Delete_Pet (Swagger.Long'Value (Ada.Command_Line.Argument (I)), (Is_Null => False, Value => Key)); end loop; end Delete_Pet; begin if Arg_Count <= 1 then Usage; return; end if; Util.Http.Clients.Curl.Register; declare Command : constant String := Ada.Command_Line.Argument (Arg); Item : constant String := Ada.Command_Line.Argument (Arg + 1); C : Samples.Petstore.Clients.Client_Type; begin C.Set_Server (Server); Arg := Arg + 2; if Command = "login" then Login (C, Item, Ada.Command_Line.Argument (Arg)); elsif Command = "get" then if Item = "user" then Get_User (C); elsif Item = "pet" then Get_Pet (C); elsif Item = "order" then Get_Order (C); else Usage; end if; elsif Command = "list" then if Item = "pet" then List_Pet (C); elsif Item = "inventory" then List_Inventory (C); else Usage; end if; elsif Command = "add" then if Item = "pet" then Add_Pet (C); else Usage; end if; elsif Command = "rm" then if Item = "user" then Delete_User (C); elsif Item = "order" then Delete_Order (C); elsif Item = "pet" then Delete_Pet (C); else Usage; end if; elsif Command = "update" then Usage; else Usage; end if; exception when E : Constraint_Error => Put_Line ("Constraint error raised: " & Ada.Exceptions.Exception_Message (E)); end; end Petstore;
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- E R R O U T -- -- -- -- S p e c -- -- -- -- Copyright (C) 1992-2006, Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 2, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License -- -- for more details. You should have received a copy of the GNU General -- -- Public License distributed with GNAT; see file COPYING. If not, write -- -- to the Free Software Foundation, 51 Franklin Street, Fifth Floor, -- -- Boston, MA 02110-1301, USA. -- -- -- -- GNAT was originally developed by the GNAT team at New York University. -- -- Extensive contributions were provided by Ada Core Technologies Inc. -- -- -- ------------------------------------------------------------------------------ -- This package contains the routines to output error messages. They are -- basically system independent, however in some environments, e.g. when the -- parser is embedded into an editor, it may be appropriate to replace the -- implementation of this package. with Err_Vars; with Erroutc; with Table; with Types; use Types; with Uintp; use Uintp; with System; package Errout is Serious_Errors_Detected : Nat renames Err_Vars.Serious_Errors_Detected; -- This is a count of errors that are serious enough to stop expansion, -- and hence to prevent generation of an object file even if the switch -- -gnatQ is set. Total_Errors_Detected : Nat renames Err_Vars.Total_Errors_Detected; -- Number of errors detected so far. Includes count of serious errors and -- non-serious errors, so this value is always greater than or equal to -- the Serious_Errors_Detected value. Warnings_Detected : Nat renames Err_Vars.Warnings_Detected; -- Number of warnings detected Configurable_Run_Time_Violations : Nat := 0; -- Count of configurable run time violations so far. This is used to -- suppress certain cascaded error messages when we know that we may not -- have fully expanded some items, due to high integrity violations (i.e. -- the use of constructs not permitted by the library in use, or improper -- constructs in No_Run_Time mode). type Compiler_State_Type is (Parsing, Analyzing); Compiler_State : Compiler_State_Type; -- Indicates current state of compilation. This is put in the Errout spec -- because it affects the action of the error message handling. In -- particular, an attempt is made by Errout to suppress cascaded error -- messages in Parsing mode, but not in the other modes. Current_Error_Source_File : Source_File_Index renames Err_Vars.Current_Error_Source_File; -- Id of current messages. Used to post file name when unit changes. This -- is initialized to Main_Source_File at the start of a compilation, which -- means that no file names will be output unless there are errors in -- units other than the main unit. However, if the main unit has a pragma -- Source_Reference line, then this is initialized to No_Source_File, to -- force an initial reference to the real source file name. Raise_Exception_On_Error : Nat renames Err_Vars.Raise_Exception_On_Error; -- If this value is non-zero, then any attempt to generate an error -- message raises the exception Error_Msg_Exception, and the error message -- is not output. This is used for defending against junk resulting from -- illegalities, and also for substitution of more appropriate error -- messages from higher semantic levels. It is a counter so that the -- increment/decrement protocol nests neatly. Error_Msg_Exception : exception renames Err_Vars.Error_Msg_Exception; -- Exception raised if Raise_Exception_On_Error is true ----------------------------------- -- Suppression of Error Messages -- ----------------------------------- -- In an effort to reduce the impact of redundant error messages, the -- error output routines in this package normally suppress certain -- classes of messages as follows: -- 1. Identical messages placed at the same point in the text. Such -- duplicate error message result for example from rescanning -- sections of the text that contain lexical errors. Only one of -- such a set of duplicate messages is output, and the rest are -- suppressed. -- 2. If more than one parser message is generated for a single source -- line, then only the first message is output, the remaining -- messages on the same line are suppressed. -- 3. If a message is posted on a node for which a message has been -- previously posted, then only the first message is retained. The -- Error_Posted flag is used to detect such multiple postings. Note -- that this only applies to semantic messages, since otherwise -- for parser messages, this would be a special case of case 2. -- 4. If a message is posted on a node whose Etype or Entity -- fields reference entities on which an error message has -- already been placed, as indicated by the Error_Posted flag -- being set on these entities, then the message is suppressed. -- 5. If a message attempts to insert an Error node, or a direct -- reference to the Any_Type node, then the message is suppressed. -- 6. Note that cases 2-5 only apply to error messages, not warning -- messages. Warning messages are only suppressed for case 1. -- This normal suppression action may be overridden in cases 2-5 (but not -- in case 1) by setting All_Errors mode, or by setting the special -- unconditional message insertion character (!) at the end of the message -- text as described below. --------------------------------------------------------- -- Error Message Text and Message Insertion Characters -- --------------------------------------------------------- -- Error message text strings are composed of lower case letters, digits -- and the special characters space, comma, period, colon and semicolon, -- apostrophe and parentheses. Special insertion characters can also -- appear which cause the error message circuit to modify the given -- string as follows: -- Insertion character % (Percent: insert name from Names table) -- The character % is replaced by the text for the name specified by -- the Name_Id value stored in Error_Msg_Name_1. A blank precedes the -- name if it is preceded by a non-blank character other than left -- parenthesis. The name is enclosed in quotes unless manual quotation -- mode is set. If the Name_Id is set to No_Name, then no insertion -- occurs; if the Name_Id is set to Error_Name, then the string -- <error> is inserted. A second and third % may appear in a single -- message, similarly replaced by the names which are specified by the -- Name_Id values stored in Error_Msg_Name_2 and Error_Msg_Name_3. The -- names are decoded and cased according to the current identifier -- casing mode. -- Insertion character $ (Dollar: insert unit name from Names table) -- The character $ is treated similarly to %, except that the name is -- obtained from the Unit_Name_Type value in Error_Msg_Unit_1 and -- Error_Msg_Unit_2, as provided by Get_Unit_Name_String in package -- Uname. Note that this name includes the postfix (spec) or (body) -- strings. If this postfix is not required, use the normal % -- insertion for the unit name. -- Insertion character { (Left brace: insert literally from names table) -- The character { is treated similarly to %, except that the name is -- output literally as stored in the names table without adjusting the -- casing. This can be used for file names and in other situations -- where the name string is to be output unchanged. -- Insertion character * (Asterisk, insert reserved word name) -- The insertion character * is treated exactly like % except that the -- resulting name is cased according to the default conventions for -- reserved words (see package Scans). -- Insertion character & (Ampersand: insert name from node) -- The insertion character & is treated similarly to %, except that -- the name is taken from the Chars field of the given node, and may -- refer to a child unit name, or a selected component. The casing is, -- if possible, taken from the original source reference, which is -- obtained from the Sloc field of the given node or nodes. If no Sloc -- is available (happens e.g. for nodes in package Standard), then the -- default case (see Scans spec) is used. The nodes to be used are -- stored in Error_Msg_Node_1, Error_Msg_Node_2. No insertion occurs -- for the Empty node, and the Error node results in the insertion of -- the characters <error>. In addition, if the special global variable -- Error_Msg_Qual_Level is non-zero, then the reference will include -- up to the given number of levels of qualification, using the scope -- chain. -- Insertion character # (Pound: insert line number reference) -- The character # is replaced by the string indicating the source -- position stored in Error_Msg_Sloc. There are three cases: -- -- for package Standard: in package Standard -- for locations in current file: at line nnn:ccc -- for locations in other files: at filename:nnn:ccc -- -- By convention, the # insertion character is only used at the end of -- an error message, so the above strings only appear as the last -- characters of an error message. -- Insertion character } (Right brace: insert type reference) -- The character } is replaced by a string describing the type -- referenced by the entity whose Id is stored in Error_Msg_Node_1. -- the string gives the name or description of the type, and also -- where appropriate the location of its declaration. Special cases -- like "some integer type" are handled appropriately. Only one } is -- allowed in a message, since there is not enough room for two (the -- insertion can be quite long, including a file name) In addition, if -- the special global variable Error_Msg_Qual_Level is non-zero, then -- the reference will include up to the given number of levels of -- qualification, using the scope chain. -- Insertion character @ (At: insert column number reference) -- The character @ is replaced by null if the RM_Column_Check mode is -- off (False). If the switch is on (True), then @ is replaced by the -- text string " in column nnn" where nnn is the decimal -- representation of the column number stored in Error_Msg_Col plus -- one (the plus one is because the number is stored 0-origin and -- displayed 1-origin). -- Insertion character ^ (Carret: insert integer value) -- The character ^ is replaced by the decimal conversion of the Uint -- value stored in Error_Msg_Uint_1, with a possible leading minus. -- A second ^ may occur in the message, in which case it is replaced -- by the decimal conversion of the Uint value in Error_Msg_Uint_2. -- Insertion character > (Right bracket, run time name) -- The character > is replaced by a string of the form (name) if -- Targparm scanned out a Run_Time_Name (see package Targparm for -- details). The name is enclosed in parentheses and output in mixed -- case mode (upper case after any space in the name). If no run time -- name is defined, this insertion character has no effect. -- Insertion character ! (Exclamation: unconditional message) -- The character ! appearing as the last character of a message makes -- the message unconditional which means that it is output even if it -- would normally be suppressed. See section above for a description -- of the cases in which messages are normally suppressed. Note that -- warnings are never suppressed, so the use of the ! character in a -- warning message is never useful. -- Insertion character ? (Question: warning message) -- The character ? appearing anywhere in a message makes the message a -- warning instead of a normal error message, and the text of the -- message will be preceded by "Warning:" instead of "Error:" in the -- normal case. The handling of warnings if further controlled by the -- Warning_Mode option (-w switch), see package Opt for further -- details, and also by the current setting from pragma Warnings. This -- pragma applies only to warnings issued from the semantic phase (not -- the parser), but currently all relevant warnings are posted by the -- semantic phase anyway. Messages starting with (style) are also -- treated as warning messages. -- Insertion character < (Less Than: conditional warning message) -- The character < appearing anywhere in a message is used for a -- conditional error message. If Error_Msg_Warn is True, then the -- effect is the same as ? described above. If Error_Msg_Warn is -- False, then there is no effect. -- Insertion character A-Z (Upper case letter: Ada reserved word) -- If two or more upper case letters appear in the message, they are -- taken as an Ada reserved word, and are converted to the default -- case for reserved words (see Scans package spec). Surrounding -- quotes are added unless manual quotation mode is currently set. -- Insertion character ` (Backquote: set manual quotation mode) -- The backquote character always appears in pairs. Each backquote of -- the pair is replaced by a double quote character. In addition, Any -- reserved keywords, or name insertions between these backquotes are -- not surrounded by the usual automatic double quotes. See the -- section below on manual quotation mode for further details. -- Insertion character ' (Quote: literal character) -- Precedes a character which is placed literally into the message. -- Used to insert characters into messages that are one of the -- insertion characters defined here. Also useful in inserting -- sequences of upper case letters (e.g. RM) which are not to be -- treated as keywords. -- Insertion character \ (Backslash: continuation message) -- Indicates that the message is a continuation of a message -- previously posted. This is used to ensure that such groups of -- messages are treated as a unit. The \ character must be the first -- character of the message text. -- Insertion character | (vertical bar, non-serious error) -- By default, error messages (other than warning messages) are -- considered to be fatal error messages which prevent expansion or -- generation of code in the presence of the -gnatQ switch. If the -- insertion character | appears, the message is considered to be -- non-serious, and does not cause Serious_Errors_Detected to be -- incremented (so expansion is not prevented by such a msg). ---------------------------------------- -- Specialization of Messages for VMS -- ---------------------------------------- -- Some messages mention gcc-style switch names. When using an OpenVMS -- host, such switch names must be converted to their corresponding VMS -- qualifer. The following table controls this translation. In each case -- the original message must contain the string "-xxx switch", where xxx -- is the Gname? entry from below, and this string will be replaced by -- "/yyy qualifier", where yyy is the corresponding Vname? entry. Gname1 : aliased constant String := "fno-strict-aliasing"; Vname1 : aliased constant String := "OPTIMIZE=NO_STRICT_ALIASING"; Gname2 : aliased constant String := "gnatX"; Vname2 : aliased constant String := "EXTENSIONS_ALLOWED"; Gname3 : aliased constant String := "gnatW"; Vname3 : aliased constant String := "WIDE_CHARACTER_ENCODING"; Gname4 : aliased constant String := "gnatf"; Vname4 : aliased constant String := "REPORT_ERRORS=FULL"; Gname5 : aliased constant String := "gnat05"; Vname5 : aliased constant String := "05"; type Cstring_Ptr is access constant String; Gnames : array (Nat range <>) of Cstring_Ptr := (Gname1'Access, Gname2'Access, Gname3'Access, Gname4'Access, Gname5'Access); Vnames : array (Nat range <>) of Cstring_Ptr := (Vname1'Access, Vname2'Access, Vname3'Access, Vname4'Access, Vname5'Access); ----------------------------------------------------- -- Global Values Used for Error Message Insertions -- ----------------------------------------------------- -- The following global variables are essentially additional parameters -- passed to the error message routine for insertion sequences described -- above. The reason these are passed globally is that the insertion -- mechanism is essentially an untyped one in which the appropriate -- variables are set depending on the specific insertion characters used. -- Note that is mandatory that the caller ensure that global variables -- are set before the Error_Msg call, otherwise the result is undefined. Error_Msg_Col : Column_Number renames Err_Vars.Error_Msg_Col; -- Column for @ insertion character in message Error_Msg_Uint_1 : Uint renames Err_Vars.Error_Msg_Uint_1; Error_Msg_Uint_2 : Uint renames Err_Vars.Error_Msg_Uint_2; -- Uint values for ^ insertion characters in message Error_Msg_Sloc : Source_Ptr renames Err_Vars.Error_Msg_Sloc; -- Source location for # insertion character in message Error_Msg_Name_1 : Name_Id renames Err_Vars.Error_Msg_Name_1; Error_Msg_Name_2 : Name_Id renames Err_Vars.Error_Msg_Name_2; Error_Msg_Name_3 : Name_Id renames Err_Vars.Error_Msg_Name_3; -- Name_Id values for % insertion characters in message Error_Msg_Unit_1 : Name_Id renames Err_Vars.Error_Msg_Unit_1; Error_Msg_Unit_2 : Name_Id renames Err_Vars.Error_Msg_Unit_2; -- Name_Id values for $ insertion characters in message Error_Msg_Node_1 : Node_Id renames Err_Vars.Error_Msg_Node_1; Error_Msg_Node_2 : Node_Id renames Err_Vars.Error_Msg_Node_2; -- Node_Id values for & insertion characters in message Error_Msg_Qual_Level : Int renames Err_Vars.Error_Msg_Qual_Level; -- Number of levels of qualification required for type name (see the -- description of the } insertion character. Note that this value does -- note get reset by any Error_Msg call, so the caller is responsible -- for resetting it. Error_Msg_Warn : Boolean renames Err_Vars.Error_Msg_Warn; -- Used if current message contains a < insertion character to indicate -- if the current message is a warning message. ----------------------------------------------------- -- Format of Messages and Manual Quotation Control -- ----------------------------------------------------- -- Messages are generally all in lower case, except for inserted names -- and appear in one of the following three forms: -- error: text -- warning: text -- The prefixes error and warning are supplied automatically (depending -- on the use of the ? insertion character), and the call to the error -- message routine supplies the text. The "error: " prefix is omitted -- in brief error message formats. -- Reserved Ada keywords in the message are in the default keyword case -- (determined from the given source program), surrounded by quotation -- marks. This is achieved by spelling the reserved word in upper case -- letters, which is recognized as a request for insertion of quotation -- marks by the error text processor. Thus for example: -- Error_Msg_AP ("IS expected"); -- would result in the output of one of the following: -- error: "is" expected -- error: "IS" expected -- error: "Is" expected -- the choice between these being made by looking at the casing convention -- used for keywords (actually the first compilation unit keyword) in the -- source file. -- In the case of names, the default mode for the error text processor -- is to surround the name by quotation marks automatically. The case -- used for the identifier names is taken from the source program where -- possible, and otherwise is the default casing convention taken from -- the source file usage. -- In some cases, better control over the placement of quote marks is -- required. This is achieved using manual quotation mode. In this mode, -- one or more insertion sequences is surrounded by backquote characters. -- The backquote characters are output as double quote marks, and normal -- automatic insertion of quotes is suppressed between the double quotes. -- For example: -- Error_Msg_AP ("`END &;` expected"); -- generates a message like -- error: "end Open_Scope;" expected -- where the node specifying the name Open_Scope has been stored in -- Error_Msg_Node_1 prior to the call. The great majority of error -- messages operates in normal quotation mode. -- Note: the normal automatic insertion of spaces before insertion -- sequences (such as those that come from & and %) is suppressed in -- manual quotation mode, so blanks, if needed as in the above example, -- must be explicitly present. ---------------------------- -- Message ID Definitions -- ---------------------------- subtype Error_Msg_Id is Erroutc.Error_Msg_Id; function "=" (Left, Right : Error_Msg_Id) return Boolean renames Erroutc."="; -- A type used to represent specific error messages. Used by the clients -- of this package only in the context of the Get_Error_Id and -- Change_Error_Text subprograms. No_Error_Msg : constant Error_Msg_Id := Erroutc.No_Error_Msg; -- A constant which is different from any value returned by Get_Error_Id. -- Typically used by a client to indicate absense of a saved Id value. function Get_Msg_Id return Error_Msg_Id renames Erroutc.Get_Msg_Id; -- Returns the Id of the message most recently posted using one of the -- Error_Msg routines. function Get_Location (E : Error_Msg_Id) return Source_Ptr renames Erroutc.Get_Location; -- Returns the flag location of the error message with the given id E ------------------------ -- List Pragmas Table -- ------------------------ -- When a pragma Page or pragma List is encountered by the parser, an -- entry is made in the following table. This table is then used to -- control the full listing if one is being generated. Note that the -- reason we do the processing in the parser is so that we get proper -- listing control even in syntax check only mode. type List_Pragma_Type is (List_On, List_Off, Page); type List_Pragma_Record is record Ptyp : List_Pragma_Type; Ploc : Source_Ptr; end record; -- Note: Ploc points to the terminating semicolon in the List_Off and Page -- cases, and to the pragma keyword for List_On. In the case of a pragma -- List_Off, a List_On entry is also made in the table, pointing to the -- pragma keyword. This ensures that, as required, a List (Off) pragma is -- listed even in list off mode. package List_Pragmas is new Table.Table ( Table_Component_Type => List_Pragma_Record, Table_Index_Type => Int, Table_Low_Bound => 1, Table_Initial => 50, Table_Increment => 200, Table_Name => "List_Pragmas"); --------------------------- -- Ignore_Errors Feature -- --------------------------- -- In certain cases, notably for optional subunits, the compiler operates -- in a mode where errors are to be ignored, and the whole unit is to be -- considered as not present. To implement this we provide the following -- flag to enable special handling, where error messages are suppressed, -- but the Fatal_Error flag will still be set in the normal manner. Ignore_Errors_Enable : Nat := 0; -- Triggering switch. If non-zero, then ignore errors mode is activated. -- This is a counter to allow convenient nesting of enable/disable. ------------------------------ -- Error Output Subprograms -- ------------------------------ procedure Initialize; -- Initializes for output of error messages. Must be called for each -- source file before using any of the other routines in the package. procedure Finalize; -- Finalize processing of error messages for one file and output message -- indicating the number of detected errors. procedure Error_Msg (Msg : String; Flag_Location : Source_Ptr); -- Output a message at specified location. Can be called from the parser -- or the semantic analyzer. procedure Error_Msg_S (Msg : String); -- Output a message at current scan pointer location. This routine can be -- called only from the parser, since it references Scan_Ptr. procedure Error_Msg_AP (Msg : String); -- Output a message just after the previous token. This routine can be -- called only from the parser, since it references Prev_Token_Ptr. procedure Error_Msg_BC (Msg : String); -- Output a message just before the current token. Note that the important -- difference between this and the previous routine is that the BC case -- posts a flag on the current line, whereas AP can post a flag at the -- end of the preceding line. This routine can be called only from the -- parser, since it references Token_Ptr. procedure Error_Msg_SC (Msg : String); -- Output a message at the start of the current token, unless we are at -- the end of file, in which case we always output the message after the -- last real token in the file. This routine can be called only from the -- parser, since it references Token_Ptr. procedure Error_Msg_SP (Msg : String); -- Output a message at the start of the previous token. This routine can -- be called only from the parser, since it references Prev_Token_Ptr. procedure Error_Msg_N (Msg : String; N : Node_Or_Entity_Id); -- Output a message at the Sloc of the given node. This routine can be -- called from the parser or the semantic analyzer, although the call from -- the latter is much more common (and is the most usual way of generating -- error messages from the analyzer). The message text may contain a -- single & insertion, which will reference the given node. The message is -- suppressed if the node N already has a message posted, or if it is a -- warning and warnings and N is an entity node for which warnings are -- suppressed. procedure Error_Msg_F (Msg : String; N : Node_Id); -- Similar to Error_Msg_N except that the message is placed on the -- first node of the construct N (First_Node (N)). procedure Error_Msg_NE (Msg : String; N : Node_Or_Entity_Id; E : Node_Or_Entity_Id); -- Output a message at the Sloc of the given node N, with an insertion of -- the name from the given entity node E. This is used by the semantic -- routines, where this is a common error message situation. The Msg text -- will contain a & or } as usual to mark the insertion point. This -- routine can be called from the parser or the analyzer. procedure Error_Msg_FE (Msg : String; N : Node_Id; E : Node_Or_Entity_Id); -- Same as Error_Msg_NE, except that the message is placed on the first -- node of the construct N (First_Node (N)). procedure Error_Msg_NEL (Msg : String; N : Node_Or_Entity_Id; E : Node_Or_Entity_Id; Flag_Location : Source_Ptr); -- Exactly the same as Error_Msg_NE, except that the flag is placed at -- the specified Flag_Location instead of at Sloc (N). procedure Error_Msg_NW (Eflag : Boolean; Msg : String; N : Node_Or_Entity_Id); -- This routine is used for posting a message conditionally. The message -- is posted (with the same effect as Error_Msg_N (Msg, N) if and only -- if Eflag is True and if the node N is within the main extended source -- unit and comes from source. Typically this is a warning mode flag. procedure Change_Error_Text (Error_Id : Error_Msg_Id; New_Msg : String); -- The error message text of the message identified by Id is replaced by -- the given text. This text may contain insertion characters in the -- usual manner, and need not be the same length as the original text. function First_Node (C : Node_Id) return Node_Id; -- Given a construct C, finds the first node in the construct, i.e. the -- one with the lowest Sloc value. This is useful in placing error msgs. function First_Sloc (N : Node_Id) return Source_Ptr; -- Given the node for an expression, return a source pointer value that -- points to the start of the first token in the expression. In the case -- where the expression is parenthesized, an attempt is made to include -- the parentheses (i.e. to return the location of the initial paren). procedure Purge_Messages (From : Source_Ptr; To : Source_Ptr) renames Erroutc.Purge_Messages; -- All error messages whose location is in the range From .. To (not -- including the end points) will be deleted from the error listing. procedure Remove_Warning_Messages (N : Node_Id); -- Remove any warning messages corresponding to the Sloc of N or any -- of its descendent nodes. No effect if no such warnings. procedure Remove_Warning_Messages (L : List_Id); -- Remove warnings on all elements of a list procedure Set_Ignore_Errors (To : Boolean); -- Following a call to this procedure with To=True, all error calls are -- ignored. A call with To=False restores the default treatment in which -- error calls are treated as usual (and as described in this spec). procedure Set_Warnings_Mode_Off (Loc : Source_Ptr) renames Erroutc.Set_Warnings_Mode_Off; -- Called in response to a pragma Warnings (Off) to record the source -- location from which warnings are to be turned off. procedure Set_Warnings_Mode_On (Loc : Source_Ptr) renames Erroutc.Set_Warnings_Mode_On; -- Called in response to a pragma Warnings (On) to record the source -- location from which warnings are to be turned back on. function Compilation_Errors return Boolean renames Erroutc.Compilation_Errors; -- Returns true if errors have been detected, or warnings in -gnatwe -- (treat warnings as errors) mode. procedure Error_Msg_CRT (Feature : String; N : Node_Id); -- Posts a non-fatal message on node N saying that the feature identified -- by the Feature argument is not supported in either configurable -- run-time mode or no run-time mode (as appropriate). In the former case, -- the name of the library is output if available. procedure dmsg (Id : Error_Msg_Id) renames Erroutc.dmsg; -- Debugging routine to dump an error message ------------------------------------ -- Utility Interface for Back End -- ------------------------------------ -- The following subprograms can be used by the back end for the purposes -- of concocting error messages that are not output via Errout, e.g. the -- messages generated by the gcc back end. procedure Set_Identifier_Casing (Identifier_Name : System.Address; File_Name : System.Address); -- The identifier is a null terminated string that represents the name of -- an identifier appearing in the source program. File_Name is a null -- terminated string giving the corresponding file name for the identifier -- as obtained from the front end by the use of Full_Debug_Name to the -- source file referenced by the corresponding source location value. On -- return, the name is in Name_Buffer, null terminated with Name_Len set. -- This name is the identifier name as passed, cased according to the -- default identifier casing for the given file. end Errout;
------------------------------------------------------------------------------ -- -- -- GNAT LIBRARY COMPONENTS -- -- -- -- ADA.CONTAINERS.BOUNDED_PRIORITY_QUEUES -- -- -- -- S p e c -- -- -- -- Copyright (C) 2011-2020, Free Software Foundation, Inc. -- -- -- -- This specification is derived from the Ada Reference Manual for use with -- -- GNAT. The copyright notice above, and the license provisions that follow -- -- apply solely to the contents of the part following the private keyword. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 3, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. -- -- -- -- As a special exception under Section 7 of GPL version 3, you are granted -- -- additional permissions described in the GCC Runtime Library Exception, -- -- version 3.1, as published by the Free Software Foundation. -- -- -- -- You should have received a copy of the GNU General Public License and -- -- a copy of the GCC Runtime Library Exception along with this program; -- -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see -- -- <http://www.gnu.org/licenses/>. -- -- -- -- This unit was originally developed by Matthew J Heaney. -- ------------------------------------------------------------------------------ with System; with Ada.Containers.Synchronized_Queue_Interfaces; with Ada.Containers.Bounded_Doubly_Linked_Lists; generic with package Queue_Interfaces is new Ada.Containers.Synchronized_Queue_Interfaces (<>); type Queue_Priority is private; with function Get_Priority (Element : Queue_Interfaces.Element_Type) return Queue_Priority is <>; with function Before (Left, Right : Queue_Priority) return Boolean is <>; Default_Capacity : Count_Type; Default_Ceiling : System.Any_Priority := System.Priority'Last; package Ada.Containers.Bounded_Priority_Queues with SPARK_Mode => Off is pragma Annotate (CodePeer, Skip_Analysis); pragma Preelaborate; package Implementation is -- All identifiers in this unit are implementation defined pragma Implementation_Defined; type List_Type (Capacity : Count_Type) is tagged limited private; procedure Enqueue (List : in out List_Type; New_Item : Queue_Interfaces.Element_Type); procedure Dequeue (List : in out List_Type; Element : out Queue_Interfaces.Element_Type); procedure Dequeue (List : in out List_Type; At_Least : Queue_Priority; Element : in out Queue_Interfaces.Element_Type; Success : out Boolean); function First_Element (List : List_Type) return Queue_Interfaces.Element_Type; function Length (List : List_Type) return Count_Type; function Max_Length (List : List_Type) return Count_Type; private -- We need a better data structure here, such as a proper heap. ??? pragma Warnings (Off); -- Otherwise, we get warnings for the uninitialized variable in Insert -- in Ada.Containers.Bounded_Doubly_Linked_Lists. package List_Types is new Bounded_Doubly_Linked_Lists (Element_Type => Queue_Interfaces.Element_Type, "=" => Queue_Interfaces."="); pragma Warnings (On); type List_Type (Capacity : Count_Type) is tagged limited record Container : List_Types.List (Capacity); Max_Length : Count_Type := 0; end record; end Implementation; protected type Queue (Capacity : Count_Type := Default_Capacity; Ceiling : System.Any_Priority := Default_Ceiling) with Priority => Ceiling is new Queue_Interfaces.Queue with overriding entry Enqueue (New_Item : Queue_Interfaces.Element_Type); overriding entry Dequeue (Element : out Queue_Interfaces.Element_Type); -- The priority queue operation Dequeue_Only_High_Priority had been a -- protected entry in early drafts of AI05-0159, but it was discovered -- that that operation as specified was not in fact implementable. The -- operation was changed from an entry to a protected procedure per the -- ARG meeting in Edinburgh (June 2011), with a different signature and -- semantics. procedure Dequeue_Only_High_Priority (At_Least : Queue_Priority; Element : in out Queue_Interfaces.Element_Type; Success : out Boolean); overriding function Current_Use return Count_Type; overriding function Peak_Use return Count_Type; private List : Implementation.List_Type (Capacity); end Queue; end Ada.Containers.Bounded_Priority_Queues;
-- Copyright 2008-2020 Free Software Foundation, Inc. -- -- This program is free software; you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation; either version 3 of the License, or -- (at your option) any later version. -- -- This program is distributed in the hope that it will be useful, -- but WITHOUT ANY WARRANTY; without even the implied warranty of -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -- GNU General Public License for more details. -- -- You should have received a copy of the GNU General Public License -- along with this program. If not, see <http://www.gnu.org/licenses/>. package body Pck is procedure Proc (I : Integer) is Not_In_Scope : Integer := 77; begin Inner.Inside_Variable := Not_In_Scope + I; end Proc; procedure Ambiguous_Func is begin null; end Ambiguous_Func; end Pck;
------------------------------------------------------------------------------ -- G E L A A S I S -- -- ASIS implementation for Gela project, a portable Ada compiler -- -- http://gela.ada-ru.org -- -- - - - - - - - - - - - - - - - -- -- Read copyright and license at the end of this file -- ------------------------------------------------------------------------------ -- $Revision: 209 $ $Date: 2013-11-30 21:03:24 +0200 (Сб., 30 нояб. 2013) $ -- Purpose: -- Helper functions to work with text and source buffers with Gela.Decoders; with Gela.Source_Buffers; use Gela; with Asis.Gela.Lines; package Asis.Gela.Text_Utils is type Source_Buffer_Access is access all Source_Buffers.Source_Buffer'Class; function New_Buffer (File : in Wide_String) return Source_Buffer_Access; procedure Free (Buffer : in out Source_Buffer_Access); function Source_Buffer (Unit : Asis.Compilation_Unit) return Source_Buffer_Access; subtype Decoder_Access is Decoders.Decoder_Access; function Decoder (Unit : Asis.Compilation_Unit) return Decoder_Access; function Get_Line (Unit : Asis.Compilation_Unit; Index : Asis.Asis_Positive) return Lines.Line; function Compilation_Line_Count (Unit : Asis.Compilation_Unit) return Asis.Asis_Natural; end Asis.Gela.Text_Utils; ------------------------------------------------------------------------------ -- Copyright (c) 2008-2013, Maxim Reznik -- All rights reserved. -- -- Redistribution and use in source and binary forms, with or without -- modification, are permitted provided that the following conditions are met: -- -- * Redistributions of source code must retain the above copyright notice, -- this list of conditions and the following disclaimer. -- * Redistributions in binary form must reproduce the above copyright -- notice, this list of conditions and the following disclaimer in the -- documentation and/or other materials provided with the distribution. -- * Neither the name of the Maxim Reznik, IE nor the names of its -- contributors may be used to endorse or promote products derived from -- this software without specific prior written permission. -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -- AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -- ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE -- LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -- CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -- SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -- INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -- CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -- POSSIBILITY OF SUCH DAMAGE. ------------------------------------------------------------------------------
type Arr_Type is array (Integer range <>) of Lower_Case; A : Arr_Type (1 .. 26) := "abcdefghijklmnopqrstuvwxyz";
with impact.d3.Shape.convex.internal.sphere; with impact.d3.Vector; with impact.d3.Scalar; package body impact.d3.collision.Algorithm.activating.sphere_sphere is --- Forge -- function to_sphere_sphere_Algorithm (mf : access impact.d3.Manifold.Item; ci : in AlgorithmConstructionInfo; col0, col1 : access impact.d3.Object.item'Class) return Item is use impact.d3.collision.Algorithm.activating; Self : Item; -- := (to_activating_Algorithm (ci, col0, col1) with others => <>); begin Self.define (ci, col0, col1); if mf = null then Self.m_manifoldPtr := Self.get_m_dispatcher.getNewManifold (col0, col1); Self.m_ownManifold := True; else Self.m_manifoldPtr := mf; Self.m_ownManifold := False; end if; return Self; end to_sphere_sphere_Algorithm; function to_sphere_sphere_Algorithm (ci : in AlgorithmConstructionInfo) return Item is use impact.d3.collision.Algorithm.activating; Self : Item; -- := (to_activating_Algorithm (ci) with others => <>); begin Self.define (ci); return Self; end to_sphere_sphere_Algorithm; overriding procedure destruct (Self : in out Item) is begin if Self.m_ownManifold then if Self.m_manifoldPtr /= null then Self.get_m_dispatcher.releaseManifold (Self.m_manifoldPtr); end if; end if; end destruct; --- Attributes -- overriding procedure processCollision (Self : in out Item; col0, col1 : access impact.d3.Object.item'Class; dispatchInfo : in impact.d3.Dispatcher.DispatcherInfo; resultOut : out impact.d3.collision.manifold_Result.item) is pragma Unreferenced (dispatchInfo); use impact.d3.Scalar, impact.d3.Vector, Math; type SphereShape_view is access all impact.d3.Shape.convex.internal.sphere.Item'Class; sphere0, sphere1 : access impact.d3.Shape.convex.internal.sphere.item; diff, pos1, normalOnSurfaceB : math.Vector_3; len, dist, radius0, radius1 : math.Real; begin if Self.m_manifoldPtr = null then return; end if; resultOut.setPersistentManifold (Self.m_manifoldPtr); sphere0 := SphereShape_view (col0.getCollisionShape); sphere1 := SphereShape_view (col1.getCollisionShape); diff := col0.getWorldTransform.Translation - col1.getWorldTransform.Translation; len := length (diff); radius0 := sphere0.getRadius; radius1 := sphere1.getRadius; -- #ifdef CLEAR_MANIFOLD -- m_manifoldPtr->clearManifold(); -- Don't do this, it disables warmstarting. -- #endif if len > radius0 + radius1 then -- If distance positive, don't generate a new contact. -- #ifndef CLEAR_MANIFOLD resultOut.refreshContactPoints; -- #endif return; end if; dist := len - (radius0 + radius1); -- Calculate distance (negative means penetration). normalOnSurfaceB := (1.0, 0.0, 0.0); if len > SIMD_EPSILON then normalOnSurfaceB := diff / len; end if; -- point on A (worldspace) -- impact.d3.Vector pos0 = col0->getWorldTransform().getOrigin() - radius0 * normalOnSurfaceB; -- point on B (worldspace) -- pos1 := col1.getWorldTransform.Translation + radius1 * normalOnSurfaceB; resultOut.addContactPoint (normalOnSurfaceB, pos1, dist); -- Report a contact. internally this will be kept persistent, -- and contact reduction is done. -- #ifndef CLEAR_MANIFOLD resultOut.refreshContactPoints; -- #endif //CLEAR_MANIFOLD end processCollision; overriding function calculateTimeOfImpact (Self : in Item; body0, body1 : access impact.d3.Object.item'Class; dispatchInfo : in impact.d3.Dispatcher.DispatcherInfo; resultOut : access impact.d3.collision.manifold_Result.item) return math.Real is pragma Unreferenced (Self, body0, body1, dispatchInfo, resultOut); begin return 1.0; end calculateTimeOfImpact; overriding procedure getAllContactManifolds (Self : in out Item; manifoldArray : out impact.d3.collision.Algorithm.btManifoldArray) is use impact.d3.collision.Algorithm; begin if Self.m_manifoldPtr /= null and then Self.m_ownManifold then manifoldArray.append (Manifold_view (Self.m_manifoldPtr)); end if; end getAllContactManifolds; --- Create Functions -- overriding function CreateCollisionAlgorithm (Self : in CreateFunc; ci : in AlgorithmConstructionInfo; body0, body1 : access impact.d3.Object.item'Class) return impact.d3.Dispatcher.Algorithm_view is pragma Unreferenced (Self); new_Algorithm : constant impact.d3.collision.Algorithm.activating.sphere_sphere.view := new impact.d3.collision.Algorithm.activating.sphere_sphere.item'(to_sphere_sphere_Algorithm (null, ci, body0, body1)); begin return dispatcher.Algorithm_view (new_Algorithm); end CreateCollisionAlgorithm; end impact.d3.collision.Algorithm.activating.sphere_sphere;
------------------------------------------------------------------------------ -- -- -- 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. ------------------------------------------------------------------------------ -- A comment is a textual annotation that can be attached to a set of -- elements. ------------------------------------------------------------------------------ with AMF.UML.Elements; limited with AMF.UML.Elements.Collections; package AMF.UML.Comments is pragma Preelaborate; type UML_Comment is limited interface and AMF.UML.Elements.UML_Element; type UML_Comment_Access is access all UML_Comment'Class; for UML_Comment_Access'Storage_Size use 0; not overriding function Get_Annotated_Element (Self : not null access constant UML_Comment) return AMF.UML.Elements.Collections.Set_Of_UML_Element is abstract; -- Getter of Comment::annotatedElement. -- -- References the Element(s) being commented. not overriding function Get_Body (Self : not null access constant UML_Comment) return AMF.Optional_String is abstract; -- Getter of Comment::body. -- -- Specifies a string that is the comment. not overriding procedure Set_Body (Self : not null access UML_Comment; To : AMF.Optional_String) is abstract; -- Setter of Comment::body. -- -- Specifies a string that is the comment. end AMF.UML.Comments;
------------------------------------------------------------------------------ -- -- -- GNAT LIBRARY COMPONENTS -- -- -- -- G N A T . T T Y -- -- -- -- S p e c -- -- -- -- Copyright (C) 2002-2011, 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. -- -- -- -- -- -- -- -- -- -- -- -- 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 control over pseudo terminals (ttys) -- This package is only supported on unix systems. See function TTY_Supported -- to test dynamically whether other functions of this package can be called. with System; with GNAT.OS_Lib; package GNAT.TTY is type TTY_Handle is private; -- Handle for a tty descriptor function TTY_Supported return Boolean; -- If True, the other functions of this package can be called. Otherwise, -- all functions in this package will raise Program_Error if called. procedure Allocate_TTY (Handle : out TTY_Handle); -- Allocate a new tty procedure Reset_TTY (Handle : TTY_Handle); -- Reset settings of a given tty procedure Close_TTY (Handle : in out TTY_Handle); -- Close a given tty function TTY_Name (Handle : TTY_Handle) return String; -- Return the external name of a tty. The name depends on the tty handling -- on the given target. It will typically look like: "/dev/ptya1" function TTY_Descriptor (Handle : TTY_Handle) return GNAT.OS_Lib.File_Descriptor; -- Return the low level descriptor associated with Handle private type TTY_Handle is record Handle : System.Address := System.Null_Address; end record; end GNAT.TTY;
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- G N A T . S O C K E T S . T H I N -- -- -- -- B o d y -- -- -- -- Copyright (C) 2001-2013, 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. -- -- -- ------------------------------------------------------------------------------ pragma No_Body;
----------------------------------------------------------------------- -- AWA.Audits.Models -- AWA.Audits.Models ----------------------------------------------------------------------- -- File generated by ada-gen DO NOT MODIFY -- Template used: templates/model/package-body.xhtml -- Ada Generator: https://ada-gen.googlecode.com/svn/trunk Revision 1095 ----------------------------------------------------------------------- -- Copyright (C) 2019 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law or agreed to in writing, software -- distributed under the License is distributed on an "AS IS" BASIS, -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -- See the License for the specific language governing permissions and -- limitations under the License. ----------------------------------------------------------------------- with Ada.Unchecked_Deallocation; with Util.Beans.Objects.Time; package body AWA.Audits.Models is use type ADO.Objects.Object_Record_Access; use type ADO.Objects.Object_Ref; pragma Warnings (Off, "formal parameter * is not referenced"); function Audit_Key (Id : in ADO.Identifier) return ADO.Objects.Object_Key is Result : ADO.Objects.Object_Key (Of_Type => ADO.Objects.KEY_INTEGER, Of_Class => AUDIT_DEF'Access); begin ADO.Objects.Set_Value (Result, Id); return Result; end Audit_Key; function Audit_Key (Id : in String) return ADO.Objects.Object_Key is Result : ADO.Objects.Object_Key (Of_Type => ADO.Objects.KEY_INTEGER, Of_Class => AUDIT_DEF'Access); begin ADO.Objects.Set_Value (Result, Id); return Result; end Audit_Key; function "=" (Left, Right : Audit_Ref'Class) return Boolean is begin return ADO.Objects.Object_Ref'Class (Left) = ADO.Objects.Object_Ref'Class (Right); end "="; procedure Set_Field (Object : in out Audit_Ref'Class; Impl : out Audit_Access) is Result : ADO.Objects.Object_Record_Access; begin Object.Prepare_Modify (Result); Impl := Audit_Impl (Result.all)'Access; end Set_Field; -- Internal method to allocate the Object_Record instance procedure Allocate (Object : in out Audit_Ref) is Impl : Audit_Access; begin Impl := new Audit_Impl; Impl.Date := ADO.DEFAULT_TIME; Impl.Old_Value.Is_Null := True; Impl.New_Value.Is_Null := True; Impl.Entity_Id := ADO.NO_IDENTIFIER; Impl.Field := 0; Impl.Entity_Type := 0; ADO.Objects.Set_Object (Object, Impl.all'Access); end Allocate; -- ---------------------------------------- -- Data object: Audit -- ---------------------------------------- procedure Set_Id (Object : in out Audit_Ref; Value : in ADO.Identifier) is Impl : Audit_Access; begin Set_Field (Object, Impl); ADO.Objects.Set_Field_Key_Value (Impl.all, 1, Value); end Set_Id; function Get_Id (Object : in Audit_Ref) return ADO.Identifier is Impl : constant Audit_Access := Audit_Impl (Object.Get_Object.all)'Access; begin return Impl.Get_Key_Value; end Get_Id; procedure Set_Date (Object : in out Audit_Ref; Value : in Ada.Calendar.Time) is Impl : Audit_Access; begin Set_Field (Object, Impl); ADO.Objects.Set_Field_Time (Impl.all, 2, Impl.Date, Value); end Set_Date; function Get_Date (Object : in Audit_Ref) return Ada.Calendar.Time is Impl : constant Audit_Access := Audit_Impl (Object.Get_Load_Object.all)'Access; begin return Impl.Date; end Get_Date; procedure Set_Old_Value (Object : in out Audit_Ref; Value : in String) is Impl : Audit_Access; begin Set_Field (Object, Impl); ADO.Objects.Set_Field_String (Impl.all, 3, Impl.Old_Value, Value); end Set_Old_Value; procedure Set_Old_Value (Object : in out Audit_Ref; Value : in ADO.Nullable_String) is Impl : Audit_Access; begin Set_Field (Object, Impl); ADO.Objects.Set_Field_String (Impl.all, 3, Impl.Old_Value, Value); end Set_Old_Value; function Get_Old_Value (Object : in Audit_Ref) return String is Value : constant ADO.Nullable_String := Object.Get_Old_Value; begin if Value.Is_Null then return ""; else return Ada.Strings.Unbounded.To_String (Value.Value); end if; end Get_Old_Value; function Get_Old_Value (Object : in Audit_Ref) return ADO.Nullable_String is Impl : constant Audit_Access := Audit_Impl (Object.Get_Load_Object.all)'Access; begin return Impl.Old_Value; end Get_Old_Value; procedure Set_New_Value (Object : in out Audit_Ref; Value : in String) is Impl : Audit_Access; begin Set_Field (Object, Impl); ADO.Objects.Set_Field_String (Impl.all, 4, Impl.New_Value, Value); end Set_New_Value; procedure Set_New_Value (Object : in out Audit_Ref; Value : in ADO.Nullable_String) is Impl : Audit_Access; begin Set_Field (Object, Impl); ADO.Objects.Set_Field_String (Impl.all, 4, Impl.New_Value, Value); end Set_New_Value; function Get_New_Value (Object : in Audit_Ref) return String is Value : constant ADO.Nullable_String := Object.Get_New_Value; begin if Value.Is_Null then return ""; else return Ada.Strings.Unbounded.To_String (Value.Value); end if; end Get_New_Value; function Get_New_Value (Object : in Audit_Ref) return ADO.Nullable_String is Impl : constant Audit_Access := Audit_Impl (Object.Get_Load_Object.all)'Access; begin return Impl.New_Value; end Get_New_Value; procedure Set_Entity_Id (Object : in out Audit_Ref; Value : in ADO.Identifier) is Impl : Audit_Access; begin Set_Field (Object, Impl); ADO.Objects.Set_Field_Identifier (Impl.all, 5, Impl.Entity_Id, Value); end Set_Entity_Id; function Get_Entity_Id (Object : in Audit_Ref) return ADO.Identifier is Impl : constant Audit_Access := Audit_Impl (Object.Get_Load_Object.all)'Access; begin return Impl.Entity_Id; end Get_Entity_Id; procedure Set_Field (Object : in out Audit_Ref; Value : in Integer) is Impl : Audit_Access; begin Set_Field (Object, Impl); ADO.Objects.Set_Field_Integer (Impl.all, 6, Impl.Field, Value); end Set_Field; function Get_Field (Object : in Audit_Ref) return Integer is Impl : constant Audit_Access := Audit_Impl (Object.Get_Load_Object.all)'Access; begin return Impl.Field; end Get_Field; procedure Set_Session (Object : in out Audit_Ref; Value : in AWA.Users.Models.Session_Ref'Class) is Impl : Audit_Access; begin Set_Field (Object, Impl); ADO.Objects.Set_Field_Object (Impl.all, 7, Impl.Session, Value); end Set_Session; function Get_Session (Object : in Audit_Ref) return AWA.Users.Models.Session_Ref'Class is Impl : constant Audit_Access := Audit_Impl (Object.Get_Load_Object.all)'Access; begin return Impl.Session; end Get_Session; procedure Set_Entity_Type (Object : in out Audit_Ref; Value : in ADO.Entity_Type) is Impl : Audit_Access; begin Set_Field (Object, Impl); ADO.Objects.Set_Field_Entity_Type (Impl.all, 8, Impl.Entity_Type, Value); end Set_Entity_Type; function Get_Entity_Type (Object : in Audit_Ref) return ADO.Entity_Type is Impl : constant Audit_Access := Audit_Impl (Object.Get_Load_Object.all)'Access; begin return Impl.Entity_Type; end Get_Entity_Type; -- Copy of the object. procedure Copy (Object : in Audit_Ref; Into : in out Audit_Ref) is Result : Audit_Ref; begin if not Object.Is_Null then declare Impl : constant Audit_Access := Audit_Impl (Object.Get_Load_Object.all)'Access; Copy : constant Audit_Access := new Audit_Impl; begin ADO.Objects.Set_Object (Result, Copy.all'Access); Copy.Copy (Impl.all); Copy.Date := Impl.Date; Copy.Old_Value := Impl.Old_Value; Copy.New_Value := Impl.New_Value; Copy.Entity_Id := Impl.Entity_Id; Copy.Field := Impl.Field; Copy.Session := Impl.Session; Copy.Entity_Type := Impl.Entity_Type; end; end if; Into := Result; end Copy; procedure Find (Object : in out Audit_Ref; Session : in out ADO.Sessions.Session'Class; Query : in ADO.SQL.Query'Class; Found : out Boolean) is Impl : constant Audit_Access := new Audit_Impl; begin Impl.Find (Session, Query, Found); if Found then ADO.Objects.Set_Object (Object, Impl.all'Access); else ADO.Objects.Set_Object (Object, null); Destroy (Impl); end if; end Find; procedure Load (Object : in out Audit_Ref; Session : in out ADO.Sessions.Session'Class; Id : in ADO.Identifier) is Impl : constant Audit_Access := new Audit_Impl; Found : Boolean; Query : ADO.SQL.Query; begin Query.Bind_Param (Position => 1, Value => Id); Query.Set_Filter ("id = ?"); Impl.Find (Session, Query, Found); if not Found then Destroy (Impl); raise ADO.Objects.NOT_FOUND; end if; ADO.Objects.Set_Object (Object, Impl.all'Access); end Load; procedure Load (Object : in out Audit_Ref; Session : in out ADO.Sessions.Session'Class; Id : in ADO.Identifier; Found : out Boolean) is Impl : constant Audit_Access := new Audit_Impl; Query : ADO.SQL.Query; begin Query.Bind_Param (Position => 1, Value => Id); Query.Set_Filter ("id = ?"); Impl.Find (Session, Query, Found); if not Found then Destroy (Impl); else ADO.Objects.Set_Object (Object, Impl.all'Access); end if; end Load; procedure Save (Object : in out Audit_Ref; Session : in out ADO.Sessions.Master_Session'Class) is Impl : ADO.Objects.Object_Record_Access := Object.Get_Object; begin if Impl = null then Impl := new Audit_Impl; ADO.Objects.Set_Object (Object, Impl); end if; if not ADO.Objects.Is_Created (Impl.all) then Impl.Create (Session); else Impl.Save (Session); end if; end Save; procedure Delete (Object : in out Audit_Ref; Session : in out ADO.Sessions.Master_Session'Class) is Impl : constant ADO.Objects.Object_Record_Access := Object.Get_Object; begin if Impl /= null then Impl.Delete (Session); end if; end Delete; -- -------------------- -- Free the object -- -------------------- procedure Destroy (Object : access Audit_Impl) is type Audit_Impl_Ptr is access all Audit_Impl; procedure Unchecked_Free is new Ada.Unchecked_Deallocation (Audit_Impl, Audit_Impl_Ptr); pragma Warnings (Off, "*redundant conversion*"); Ptr : Audit_Impl_Ptr := Audit_Impl (Object.all)'Access; pragma Warnings (On, "*redundant conversion*"); begin Unchecked_Free (Ptr); end Destroy; procedure Find (Object : in out Audit_Impl; Session : in out ADO.Sessions.Session'Class; Query : in ADO.SQL.Query'Class; Found : out Boolean) is Stmt : ADO.Statements.Query_Statement := Session.Create_Statement (Query, AUDIT_DEF'Access); begin Stmt.Execute; if Stmt.Has_Elements then Object.Load (Stmt, Session); Stmt.Next; Found := not Stmt.Has_Elements; else Found := False; end if; end Find; overriding procedure Load (Object : in out Audit_Impl; Session : in out ADO.Sessions.Session'Class) is Found : Boolean; Query : ADO.SQL.Query; Id : constant ADO.Identifier := Object.Get_Key_Value; begin Query.Bind_Param (Position => 1, Value => Id); Query.Set_Filter ("id = ?"); Object.Find (Session, Query, Found); if not Found then raise ADO.Objects.NOT_FOUND; end if; end Load; procedure Save (Object : in out Audit_Impl; Session : in out ADO.Sessions.Master_Session'Class) is Stmt : ADO.Statements.Update_Statement := Session.Create_Statement (AUDIT_DEF'Access); begin if Object.Is_Modified (6) then Stmt.Save_Field (Name => COL_5_1_NAME, -- field Value => Object.Field); Object.Clear_Modified (6); end if; if Object.Is_Modified (7) then Stmt.Save_Field (Name => COL_6_1_NAME, -- session_id Value => Object.Session); Object.Clear_Modified (7); end if; if Object.Is_Modified (8) then Stmt.Save_Field (Name => COL_7_1_NAME, -- entity_type Value => Object.Entity_Type); Object.Clear_Modified (8); end if; if Stmt.Has_Save_Fields then Stmt.Set_Filter (Filter => "id = ?"); Stmt.Add_Param (Value => Object.Get_Key); declare Result : Integer; begin Stmt.Execute (Result); if Result /= 1 then if Result /= 0 then raise ADO.Objects.UPDATE_ERROR; end if; end if; end; end if; end Save; procedure Create (Object : in out Audit_Impl; Session : in out ADO.Sessions.Master_Session'Class) is Query : ADO.Statements.Insert_Statement := Session.Create_Statement (AUDIT_DEF'Access); Result : Integer; begin Session.Allocate (Id => Object); Query.Save_Field (Name => COL_0_1_NAME, -- id Value => Object.Get_Key); Query.Save_Field (Name => COL_1_1_NAME, -- date Value => Object.Date); Query.Save_Field (Name => COL_2_1_NAME, -- old_value Value => Object.Old_Value); Query.Save_Field (Name => COL_3_1_NAME, -- new_value Value => Object.New_Value); Query.Save_Field (Name => COL_4_1_NAME, -- entity_id Value => Object.Entity_Id); Query.Save_Field (Name => COL_5_1_NAME, -- field Value => Object.Field); Query.Save_Field (Name => COL_6_1_NAME, -- session_id Value => Object.Session); Query.Save_Field (Name => COL_7_1_NAME, -- entity_type Value => Object.Entity_Type); Query.Execute (Result); if Result /= 1 then raise ADO.Objects.INSERT_ERROR; end if; ADO.Objects.Set_Created (Object); end Create; procedure Delete (Object : in out Audit_Impl; Session : in out ADO.Sessions.Master_Session'Class) is Stmt : ADO.Statements.Delete_Statement := Session.Create_Statement (AUDIT_DEF'Access); begin Stmt.Set_Filter (Filter => "id = ?"); Stmt.Add_Param (Value => Object.Get_Key); Stmt.Execute; end Delete; -- ------------------------------ -- Get the bean attribute identified by the name. -- ------------------------------ overriding function Get_Value (From : in Audit_Ref; Name : in String) return Util.Beans.Objects.Object is Obj : ADO.Objects.Object_Record_Access; Impl : access Audit_Impl; begin if From.Is_Null then return Util.Beans.Objects.Null_Object; end if; Obj := From.Get_Load_Object; Impl := Audit_Impl (Obj.all)'Access; if Name = "id" then return ADO.Objects.To_Object (Impl.Get_Key); elsif Name = "date" then return Util.Beans.Objects.Time.To_Object (Impl.Date); elsif Name = "old_value" then if Impl.Old_Value.Is_Null then return Util.Beans.Objects.Null_Object; else return Util.Beans.Objects.To_Object (Impl.Old_Value.Value); end if; elsif Name = "new_value" then if Impl.New_Value.Is_Null then return Util.Beans.Objects.Null_Object; else return Util.Beans.Objects.To_Object (Impl.New_Value.Value); end if; elsif Name = "entity_id" then return Util.Beans.Objects.To_Object (Long_Long_Integer (Impl.Entity_Id)); elsif Name = "field" then return Util.Beans.Objects.To_Object (Long_Long_Integer (Impl.Field)); elsif Name = "entity_type" then return Util.Beans.Objects.To_Object (Long_Long_Integer (Impl.Entity_Type)); end if; return Util.Beans.Objects.Null_Object; end Get_Value; procedure List (Object : in out Audit_Vector; Session : in out ADO.Sessions.Session'Class; Query : in ADO.SQL.Query'Class) is Stmt : ADO.Statements.Query_Statement := Session.Create_Statement (Query, AUDIT_DEF'Access); begin Stmt.Execute; Audit_Vectors.Clear (Object); while Stmt.Has_Elements loop declare Item : Audit_Ref; Impl : constant Audit_Access := new Audit_Impl; begin Impl.Load (Stmt, Session); ADO.Objects.Set_Object (Item, Impl.all'Access); Object.Append (Item); end; Stmt.Next; end loop; end List; -- ------------------------------ -- Load the object from current iterator position -- ------------------------------ procedure Load (Object : in out Audit_Impl; Stmt : in out ADO.Statements.Query_Statement'Class; Session : in out ADO.Sessions.Session'Class) is begin Object.Set_Key_Value (Stmt.Get_Identifier (0)); Object.Date := Stmt.Get_Time (1); Object.Old_Value := Stmt.Get_Nullable_String (2); Object.New_Value := Stmt.Get_Nullable_String (3); Object.Entity_Id := Stmt.Get_Identifier (4); Object.Field := Stmt.Get_Integer (5); if not Stmt.Is_Null (6) then Object.Session.Set_Key_Value (Stmt.Get_Identifier (6), Session); end if; Object.Entity_Type := ADO.Entity_Type (Stmt.Get_Integer (7)); ADO.Objects.Set_Created (Object); end Load; function Audit_Field_Key (Id : in ADO.Identifier) return ADO.Objects.Object_Key is Result : ADO.Objects.Object_Key (Of_Type => ADO.Objects.KEY_STRING, Of_Class => AUDIT_FIELD_DEF'Access); begin ADO.Objects.Set_Value (Result, Id); return Result; end Audit_Field_Key; function Audit_Field_Key (Id : in String) return ADO.Objects.Object_Key is Result : ADO.Objects.Object_Key (Of_Type => ADO.Objects.KEY_STRING, Of_Class => AUDIT_FIELD_DEF'Access); begin ADO.Objects.Set_Value (Result, Id); return Result; end Audit_Field_Key; function "=" (Left, Right : Audit_Field_Ref'Class) return Boolean is begin return ADO.Objects.Object_Ref'Class (Left) = ADO.Objects.Object_Ref'Class (Right); end "="; procedure Set_Field (Object : in out Audit_Field_Ref'Class; Impl : out Audit_Field_Access) is Result : ADO.Objects.Object_Record_Access; begin Object.Prepare_Modify (Result); Impl := Audit_Field_Impl (Result.all)'Access; end Set_Field; -- Internal method to allocate the Object_Record instance procedure Allocate (Object : in out Audit_Field_Ref) is Impl : Audit_Field_Access; begin Impl := new Audit_Field_Impl; Impl.Entity_Type := 0; ADO.Objects.Set_Object (Object, Impl.all'Access); end Allocate; -- ---------------------------------------- -- Data object: Audit_Field -- ---------------------------------------- procedure Set_Id (Object : in out Audit_Field_Ref; Value : in Integer) is Impl : Audit_Field_Access; begin Set_Field (Object, Impl); ADO.Objects.Set_Field_Key_Value (Impl.all, 1, ADO.Identifier (Value)); end Set_Id; function Get_Id (Object : in Audit_Field_Ref) return Integer is Impl : constant Audit_Field_Access := Audit_Field_Impl (Object.Get_Object.all)'Access; begin return Integer (ADO.Identifier '(Impl.Get_Key_Value)); end Get_Id; procedure Set_Name (Object : in out Audit_Field_Ref; Value : in String) is Impl : Audit_Field_Access; begin Set_Field (Object, Impl); ADO.Objects.Set_Field_String (Impl.all, 2, Impl.Name, Value); end Set_Name; procedure Set_Name (Object : in out Audit_Field_Ref; Value : in Ada.Strings.Unbounded.Unbounded_String) is Impl : Audit_Field_Access; begin Set_Field (Object, Impl); ADO.Objects.Set_Field_Unbounded_String (Impl.all, 2, Impl.Name, Value); end Set_Name; function Get_Name (Object : in Audit_Field_Ref) return String is begin return Ada.Strings.Unbounded.To_String (Object.Get_Name); end Get_Name; function Get_Name (Object : in Audit_Field_Ref) return Ada.Strings.Unbounded.Unbounded_String is Impl : constant Audit_Field_Access := Audit_Field_Impl (Object.Get_Load_Object.all)'Access; begin return Impl.Name; end Get_Name; procedure Set_Entity_Type (Object : in out Audit_Field_Ref; Value : in ADO.Entity_Type) is Impl : Audit_Field_Access; begin Set_Field (Object, Impl); ADO.Objects.Set_Field_Entity_Type (Impl.all, 3, Impl.Entity_Type, Value); end Set_Entity_Type; function Get_Entity_Type (Object : in Audit_Field_Ref) return ADO.Entity_Type is Impl : constant Audit_Field_Access := Audit_Field_Impl (Object.Get_Load_Object.all)'Access; begin return Impl.Entity_Type; end Get_Entity_Type; -- Copy of the object. procedure Copy (Object : in Audit_Field_Ref; Into : in out Audit_Field_Ref) is Result : Audit_Field_Ref; begin if not Object.Is_Null then declare Impl : constant Audit_Field_Access := Audit_Field_Impl (Object.Get_Load_Object.all)'Access; Copy : constant Audit_Field_Access := new Audit_Field_Impl; begin ADO.Objects.Set_Object (Result, Copy.all'Access); Copy.Copy (Impl.all); Copy.Name := Impl.Name; Copy.Entity_Type := Impl.Entity_Type; end; end if; Into := Result; end Copy; procedure Find (Object : in out Audit_Field_Ref; Session : in out ADO.Sessions.Session'Class; Query : in ADO.SQL.Query'Class; Found : out Boolean) is Impl : constant Audit_Field_Access := new Audit_Field_Impl; begin Impl.Find (Session, Query, Found); if Found then ADO.Objects.Set_Object (Object, Impl.all'Access); else ADO.Objects.Set_Object (Object, null); Destroy (Impl); end if; end Find; procedure Load (Object : in out Audit_Field_Ref; Session : in out ADO.Sessions.Session'Class; Id : in Integer) is Impl : constant Audit_Field_Access := new Audit_Field_Impl; Found : Boolean; Query : ADO.SQL.Query; begin Query.Bind_Param (Position => 1, Value => Id); Query.Set_Filter ("id = ?"); Impl.Find (Session, Query, Found); if not Found then Destroy (Impl); raise ADO.Objects.NOT_FOUND; end if; ADO.Objects.Set_Object (Object, Impl.all'Access); end Load; procedure Load (Object : in out Audit_Field_Ref; Session : in out ADO.Sessions.Session'Class; Id : in Integer; Found : out Boolean) is Impl : constant Audit_Field_Access := new Audit_Field_Impl; Query : ADO.SQL.Query; begin Query.Bind_Param (Position => 1, Value => Id); Query.Set_Filter ("id = ?"); Impl.Find (Session, Query, Found); if not Found then Destroy (Impl); else ADO.Objects.Set_Object (Object, Impl.all'Access); end if; end Load; procedure Save (Object : in out Audit_Field_Ref; Session : in out ADO.Sessions.Master_Session'Class) is Impl : ADO.Objects.Object_Record_Access := Object.Get_Object; begin if Impl = null then Impl := new Audit_Field_Impl; ADO.Objects.Set_Object (Object, Impl); end if; if not ADO.Objects.Is_Created (Impl.all) then Impl.Create (Session); else Impl.Save (Session); end if; end Save; procedure Delete (Object : in out Audit_Field_Ref; Session : in out ADO.Sessions.Master_Session'Class) is Impl : constant ADO.Objects.Object_Record_Access := Object.Get_Object; begin if Impl /= null then Impl.Delete (Session); end if; end Delete; -- -------------------- -- Free the object -- -------------------- procedure Destroy (Object : access Audit_Field_Impl) is type Audit_Field_Impl_Ptr is access all Audit_Field_Impl; procedure Unchecked_Free is new Ada.Unchecked_Deallocation (Audit_Field_Impl, Audit_Field_Impl_Ptr); pragma Warnings (Off, "*redundant conversion*"); Ptr : Audit_Field_Impl_Ptr := Audit_Field_Impl (Object.all)'Access; pragma Warnings (On, "*redundant conversion*"); begin Unchecked_Free (Ptr); end Destroy; procedure Find (Object : in out Audit_Field_Impl; Session : in out ADO.Sessions.Session'Class; Query : in ADO.SQL.Query'Class; Found : out Boolean) is Stmt : ADO.Statements.Query_Statement := Session.Create_Statement (Query, AUDIT_FIELD_DEF'Access); begin Stmt.Execute; if Stmt.Has_Elements then Object.Load (Stmt, Session); Stmt.Next; Found := not Stmt.Has_Elements; else Found := False; end if; end Find; overriding procedure Load (Object : in out Audit_Field_Impl; Session : in out ADO.Sessions.Session'Class) is Found : Boolean; Query : ADO.SQL.Query; Id : constant Integer := Integer (ADO.Identifier '(Object.Get_Key_Value)); begin Query.Bind_Param (Position => 1, Value => Id); Query.Set_Filter ("id = ?"); Object.Find (Session, Query, Found); if not Found then raise ADO.Objects.NOT_FOUND; end if; end Load; procedure Save (Object : in out Audit_Field_Impl; Session : in out ADO.Sessions.Master_Session'Class) is Stmt : ADO.Statements.Update_Statement := Session.Create_Statement (AUDIT_FIELD_DEF'Access); begin if Object.Is_Modified (1) then Stmt.Save_Field (Name => COL_0_2_NAME, -- id Value => Object.Get_Key); Object.Clear_Modified (1); end if; if Object.Is_Modified (2) then Stmt.Save_Field (Name => COL_1_2_NAME, -- name Value => Object.Name); Object.Clear_Modified (2); end if; if Object.Is_Modified (3) then Stmt.Save_Field (Name => COL_2_2_NAME, -- entity_type Value => Object.Entity_Type); Object.Clear_Modified (3); end if; if Stmt.Has_Save_Fields then Stmt.Set_Filter (Filter => "id = ?"); Stmt.Add_Param (Value => Object.Get_Key); declare Result : Integer; begin Stmt.Execute (Result); if Result /= 1 then if Result /= 0 then raise ADO.Objects.UPDATE_ERROR; end if; end if; end; end if; end Save; procedure Create (Object : in out Audit_Field_Impl; Session : in out ADO.Sessions.Master_Session'Class) is Query : ADO.Statements.Insert_Statement := Session.Create_Statement (AUDIT_FIELD_DEF'Access); Result : Integer; begin Session.Allocate (Id => Object); Query.Save_Field (Name => COL_0_2_NAME, -- id Value => Object.Get_Key); Query.Save_Field (Name => COL_1_2_NAME, -- name Value => Object.Name); Query.Save_Field (Name => COL_2_2_NAME, -- entity_type Value => Object.Entity_Type); Query.Execute (Result); if Result /= 1 then raise ADO.Objects.INSERT_ERROR; end if; ADO.Objects.Set_Created (Object); end Create; procedure Delete (Object : in out Audit_Field_Impl; Session : in out ADO.Sessions.Master_Session'Class) is Stmt : ADO.Statements.Delete_Statement := Session.Create_Statement (AUDIT_FIELD_DEF'Access); begin Stmt.Set_Filter (Filter => "id = ?"); Stmt.Add_Param (Value => Object.Get_Key); Stmt.Execute; end Delete; -- ------------------------------ -- Get the bean attribute identified by the name. -- ------------------------------ overriding function Get_Value (From : in Audit_Field_Ref; Name : in String) return Util.Beans.Objects.Object is Obj : ADO.Objects.Object_Record_Access; Impl : access Audit_Field_Impl; begin if From.Is_Null then return Util.Beans.Objects.Null_Object; end if; Obj := From.Get_Load_Object; Impl := Audit_Field_Impl (Obj.all)'Access; if Name = "id" then return ADO.Objects.To_Object (Impl.Get_Key); elsif Name = "name" then return Util.Beans.Objects.To_Object (Impl.Name); elsif Name = "entity_type" then return Util.Beans.Objects.To_Object (Long_Long_Integer (Impl.Entity_Type)); end if; return Util.Beans.Objects.Null_Object; end Get_Value; -- ------------------------------ -- Load the object from current iterator position -- ------------------------------ procedure Load (Object : in out Audit_Field_Impl; Stmt : in out ADO.Statements.Query_Statement'Class; Session : in out ADO.Sessions.Session'Class) is begin Object.Set_Key_Value (Stmt.Get_Unbounded_String (0)); Object.Name := Stmt.Get_Unbounded_String (1); Object.Entity_Type := ADO.Entity_Type (Stmt.Get_Integer (2)); ADO.Objects.Set_Created (Object); end Load; end AWA.Audits.Models;
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- S Y S T E M . T A S K _ I N F O -- -- -- -- B o d y -- -- -- -- $Revision$ -- -- -- Copyright (C) 1992-1998 Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 2, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License -- -- for more details. You should have received a copy of the GNU General -- -- Public License distributed with GNAT; see file COPYING. If not, write -- -- to the Free Software Foundation, 59 Temple Place - Suite 330, Boston, -- -- MA 02111-1307, USA. -- -- -- -- As a special exception, if other files instantiate generics from this -- -- unit, or you link this unit with other files to produce an executable, -- -- this unit does not by itself cause the resulting executable to be -- -- covered by the GNU General Public License. This exception does not -- -- however invalidate any other reasons why the executable file might be -- -- covered by the GNU Public License. -- -- -- -- GNAT was originally developed by the GNAT team at New York University. -- -- Extensive contributions were provided by Ada Core Technologies Inc. -- -- -- ------------------------------------------------------------------------------ -- This package body contains the routines associated with the implementation -- of the Task_Info pragma. -- This is the Solaris (native) version of this module. package body System.Task_Info is function Unbound_Thread_Attributes return Thread_Attributes is begin return (False, False); end Unbound_Thread_Attributes; function Bound_Thread_Attributes return Thread_Attributes is begin return (False, True); end Bound_Thread_Attributes; function Bound_Thread_Attributes (CPU : CPU_Number) return Thread_Attributes is begin return (True, True, CPU); end Bound_Thread_Attributes; function New_Unbound_Thread_Attributes return Task_Info_Type is begin return new Thread_Attributes' (False, False); end New_Unbound_Thread_Attributes; function New_Bound_Thread_Attributes return Task_Info_Type is begin return new Thread_Attributes' (False, True); end New_Bound_Thread_Attributes; function New_Bound_Thread_Attributes (CPU : CPU_Number) return Task_Info_Type is begin return new Thread_Attributes' (True, True, CPU); end New_Bound_Thread_Attributes; end System.Task_Info;
-- This file is generated by SWIG. Please do not modify by hand. -- with Interfaces; with Interfaces.C; with Interfaces.C.Pointers; package xcb.xcb_render_free_glyph_set_request_t is -- Item -- type Item is record major_opcode : aliased Interfaces.Unsigned_8; minor_opcode : aliased Interfaces.Unsigned_8; length : aliased Interfaces.Unsigned_16; glyphset : aliased xcb.xcb_render_glyphset_t; end record; -- Item_Array -- type Item_Array is array (Interfaces.C .size_t range <>) of aliased xcb.xcb_render_free_glyph_set_request_t .Item; -- Pointer -- package C_Pointers is new Interfaces.C.Pointers (Index => Interfaces.C.size_t, Element => xcb.xcb_render_free_glyph_set_request_t.Item, Element_Array => xcb.xcb_render_free_glyph_set_request_t.Item_Array, Default_Terminator => (others => <>)); subtype Pointer is C_Pointers.Pointer; -- Pointer_Array -- type Pointer_Array is array (Interfaces.C .size_t range <>) of aliased xcb.xcb_render_free_glyph_set_request_t .Pointer; -- Pointer_Pointer -- package C_Pointer_Pointers is new Interfaces.C.Pointers (Index => Interfaces.C.size_t, Element => xcb.xcb_render_free_glyph_set_request_t.Pointer, Element_Array => xcb.xcb_render_free_glyph_set_request_t.Pointer_Array, Default_Terminator => null); subtype Pointer_Pointer is C_Pointer_Pointers.Pointer; end xcb.xcb_render_free_glyph_set_request_t;
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- E X P _ A T T R -- -- -- -- S p e c -- -- -- -- $Revision$ -- -- -- Copyright (C) 1992,1993,1994 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. -- -- -- ------------------------------------------------------------------------------ -- Expand routines for attribute references with Types; use Types; package Exp_Attr is procedure Expand_N_Attribute_Reference (N : Node_Id); end Exp_Attr;
-- This file is generated by SWIG. Please do not modify by hand. -- with Interfaces.C; with xcb.xcb_render_animcursorelt_t; with Interfaces.C; with Interfaces.C.Pointers; package xcb.xcb_render_animcursorelt_iterator_t is -- Item -- type Item is record data : access xcb.xcb_render_animcursorelt_t.Item; the_rem : aliased Interfaces.C.int; index : aliased Interfaces.C.int; end record; -- Item_Array -- type Item_Array is array (Interfaces.C .size_t range <>) of aliased xcb.xcb_render_animcursorelt_iterator_t .Item; -- Pointer -- package C_Pointers is new Interfaces.C.Pointers (Index => Interfaces.C.size_t, Element => xcb.xcb_render_animcursorelt_iterator_t.Item, Element_Array => xcb.xcb_render_animcursorelt_iterator_t.Item_Array, Default_Terminator => (others => <>)); subtype Pointer is C_Pointers.Pointer; -- Pointer_Array -- type Pointer_Array is array (Interfaces.C .size_t range <>) of aliased xcb.xcb_render_animcursorelt_iterator_t .Pointer; -- Pointer_Pointer -- package C_Pointer_Pointers is new Interfaces.C.Pointers (Index => Interfaces.C.size_t, Element => xcb.xcb_render_animcursorelt_iterator_t.Pointer, Element_Array => xcb.xcb_render_animcursorelt_iterator_t.Pointer_Array, Default_Terminator => null); subtype Pointer_Pointer is C_Pointer_Pointers.Pointer; end xcb.xcb_render_animcursorelt_iterator_t;
-- Copyright 2017 Jeff Foley. All rights reserved. -- Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file. local json = require("json") name = "VirusTotal" type = "api" function start() setratelimit(15) end function vertical(ctx, domain) local c local cfg = datasrc_config() if cfg ~= nil then c = cfg.credentials end local haskey = true if (c == nil or c.key == nil or c.key == "") then haskey = false end local resp local vurl = buildurl(domain) if haskey then vurl = apiurl(domain, c.key) end -- Check if the response data is in the graph database if (cfg and cfg.ttl ~= nil and cfg.ttl > 0) then resp = obtain_response(domain, cfg.ttl) end if (resp == nil or resp == "") then local err resp, err = request({ url=vurl, headers={['Content-Type']="application/json"}, }) if (err ~= nil and err ~= "") then return end if (cfg and cfg.ttl ~= nil and cfg.ttl > 0) then cache_response(domain, resp) end end local d = json.decode(resp) if haskey then if d['response_code'] ~= 1 then log(ctx, name .. ": " .. vurl .. ": Response code " .. d['response_code'] .. ": " .. d['verbose_msg']) return end for i, sub in pairs(d.subdomains) do sendnames(ctx, sub) end else for i, data in pairs(d.data) do if data.type == "domain" then sendnames(ctx, data.id) end end end end function buildurl(domain) return "https://www.virustotal.com/ui/domains/" .. domain .. "/subdomains?limit=40" end function apiurl(domain, key) return "https://www.virustotal.com/vtapi/v2/domain/report?apikey=" .. key .. "&domain=" .. domain end function sendnames(ctx, content) local names = find(content, subdomainre) if names == nil then return end for i, v in pairs(names) do newname(ctx, v) end end
-- Abstract: -- -- See spec. -- -- Copyright (C) 1997 - 2004, 2006, 2009, 2019, 2020 Free Software Foundation, Inc. -- -- SAL 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. SAL 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 distributed with SAL; 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 -- SAL, or you link SAL object files with other files to produce -- an executable, that 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. -- package body SAL is function Version return String is begin return "SAL 3.5"; end Version; end SAL;
----------------------------------------------------------------------- -- util-processes-os -- System specific and low level operations -- Copyright (C) 2011, 2012, 2016, 2018, 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 Util.Streams.Raw; with Util.Systems.Os; with Interfaces.C; with Interfaces.C.Strings; private package Util.Processes.Os is SHELL : constant String := "/bin/sh"; type System_Process is new Util.Processes.System_Process with record Argv : Util.Systems.Os.Ptr_Ptr_Array := null; Envp : Util.Systems.Os.Ptr_Ptr_Array := null; Argc : Interfaces.C.size_t := 0; Envc : Interfaces.C.size_t := 0; In_File : Util.Systems.Os.Ptr := Interfaces.C.Strings.Null_Ptr; Out_File : Util.Systems.Os.Ptr := Interfaces.C.Strings.Null_Ptr; Err_File : Util.Systems.Os.Ptr := Interfaces.C.Strings.Null_Ptr; Dir : Util.Systems.Os.Ptr := Interfaces.C.Strings.Null_Ptr; To_Close : File_Type_Array_Access; Out_Append : Boolean := False; Err_Append : Boolean := False; end record; -- Wait for the process to exit. overriding procedure Wait (Sys : in out System_Process; Proc : in out Process'Class; Timeout : in Duration); -- Terminate the process by sending a signal on Unix and exiting the process on Windows. -- This operation is not portable and has a different behavior between Unix and Windows. -- Its intent is to stop the process. overriding procedure Stop (Sys : in out System_Process; Proc : in out Process'Class; Signal : in Positive := 15); -- Spawn a new process. overriding procedure Spawn (Sys : in out System_Process; Proc : in out Process'Class; Mode : in Pipe_Mode := NONE); -- Append the argument to the process argument list. overriding procedure Append_Argument (Sys : in out System_Process; Arg : in String); -- Clear the program arguments. overriding procedure Clear_Arguments (Sys : in out System_Process); -- Set the environment variable to be used by the process before its creation. overriding procedure Set_Environment (Sys : in out System_Process; Name : in String; Value : in String); -- Set the process input, output and error streams to redirect and use specified files. overriding procedure Set_Streams (Sys : in out System_Process; Input : in String; Output : in String; Error : in String; Append_Output : in Boolean; Append_Error : in Boolean; To_Close : in File_Type_Array_Access); -- Deletes the storage held by the system process. overriding procedure Finalize (Sys : in out System_Process); private -- Create the output stream to read/write on the process input/output. -- Setup the file to be closed on exec. function Create_Stream (File : in Util.Systems.Os.File_Type) return Util.Streams.Raw.Raw_Stream_Access; procedure Prepare_Working_Directory (Sys : in out System_Process; Proc : in out Process'Class); end Util.Processes.Os;
-- Institution: Technische Universitaet Muenchen -- Department: Realtime Computer Systems (RCS) -- Project: StratoX -- Module: Software Configuration -- -- Authors: Martin Becker (becker@rcs.ei.tum.de) with STM32.Timers; with STm32.Device; -- @summary -- Target-specific types for the hardware timers in Adaracer V1. package HIL.Devices.Timers with SPARK_Mode is subtype HIL_Timer is STM32.Timers.Timer; subtype HIL_Timer_Channel is STM32.Timers.Timer_Channel; -- the buzzer is routed to Timer 2 channel 1 (STM32.Device.PA15) Timer_Buzzer_Port : STM32.Timers.Timer renames STM32.Device.Timer_2; -- Buuzer port Timerchannel_Buzzer_Port : STM32.Timers.Timer_Channel renames STM32.Timers.Channel_1; -- alternatively, we can use FMU AUX5 at the Servo pins (Timer 4 channel 2): Timer_Buzzer_Aux : STM32.Timers.Timer renames STM32.Device.Timer_4; Timerchannel_Buzzer_Aux : STM32.Timers.Timer_Channel renames STM32.Timers.Channel_2; end HIL.Devices.Timers;
-- { dg-do run } procedure Access_Test is type T1 is tagged null record; procedure Proc_1 (P : access T1'Class) is type Ref is access T1'Class; X : Ref := new T1'Class'(P.all); -- Should always work (no exception) begin null; end; procedure Proc_2 is type T2 is new T1 with null record; X2 : aliased T2; begin Proc_1 (X2'access); declare type T3 is new T1 with null record; X3 : aliased T3; begin Proc_1 (X3'access); end; end; begin Proc_2; end;
--****p* Fakedsp/Data_Streams -- DESCRIPTION -- Since the virtual card is not... a real one (really?) the samples -- read by the ADC need to come from some external source and also -- the samples sento to the virtual DAC need to be written somewehere. -- -- The most obvious choice for said external source/destinations are -- files. However, there are many possible format available such as -- WAV, octave, pure text, and so on... Moreover, the file could be a -- file on disk or, in a Linux environment, the standard input/output or -- a network connection or... -- -- In order to not commit ourselves to a specific choice and allowing -- for future expansions, the library introduces two abstract -- interfaces that describe the minimum required to a data source/destination -- and that can be specialized to specific formats. Currenty the library -- provides implementations for WAV format and a text-based format -- compatible with the octave text format. -- -- The two interfaces defined in this package are: -- * Data_Source are used to read data from (surprised?). -- * Data_Destination used to write data (surprised again, I guess) -- -- Both Data_Source and Data_Destination have a sampling frequency -- and one or more channels. They can I/O both values of type -- Sample_Type (closer to what actually happen with a real ADC/DAC) -- or of type Float. We decided of allowing saving Float values -- since in some case we could want to post-process the output produced -- by the processing without the additional noise due to the quantization -- done in order to send data to the DAC. -- -- NOTE -- Currently most of the code is designed to work with a single channel -- only. Maybe this will change in the future. --*** package Fakedsp.Data_Streams is type Channel_Index is range 1 .. 1024; --****I* Data_Streams/Data_Source -- SOURCE type Data_Source is limited interface; type Data_Source_Access is access all Data_Source'Class; -- DESCRIPTION -- Abstract interface representing the generic data source. -- A concrete implementation of this interface needs to define: -- * procedure Read to get the next sample -- * function Sampling_Frequency that returns the -- sampling frequency of the source -- * function Max_Channel returning the number of the -- last channel -- * procedure Close that... close the source. --*** --****m* Data_Source/Read -- SOURCE procedure Read (Src : in out Data_Source; Sample : out Sample_Type; End_Of_Stream : out Boolean; Channel : in Channel_Index := Channel_Index'First) is abstract with Pre'Class => Channel <= Src.Max_Channel; procedure Read (Src : in out Data_Source; Sample : out Float; End_Of_Stream : out Boolean; Channel : in Channel_Index := Channel_Index'First) is abstract with Pre'Class => Channel <= Src.Max_Channel; -- DESCRIPTION -- Read one sample from a channel of the specified source. If -- the source ran out of data, End_Of_Stream is set to True, otherwise -- is set to False. --*** --****m* Data_Source/Sampling_Frequency -- SOURCE function Sampling_Frequency (Src : Data_Source) return Frequency_Hz is abstract; -- DESCRIPTION -- Return the sampling frequency of the source --*** --****m* Data_Source/Max_Channel -- SOURCE function Max_Channel (Src : Data_Source) return Channel_Index is abstract; -- DESCRIPTION -- Return the number of the last channel of the source --*** --****m* Data_Source/Close -- SOURCE procedure Close (Src : in out Data_Source) is abstract; -- DESCRIPTION -- Close the source, doing all the necessary housekeeping (if required) --*** --****I* Data_Streams/Data_Destination -- SOURCE type Data_Destination is limited interface; type Data_destination_Access is access all Data_Destination'Class; -- DESCRIPTION -- Abstract interface representing the generic data destination. -- A concrete implementation of this interface needs to define: -- * procedure Write to output the next sample -- * function Max_Channel returning the number of the -- last channel -- * procedure Close that... close the destination. --*** --****m* Data_Destination/Write -- SOURCE procedure Write (Dst : Data_Destination; Sample : Sample_Type; Channel : Channel_Index := Channel_Index'First) is abstract with Pre'Class => Channel <= Dst.Max_Channel; procedure Write (Dst : Data_Destination; Sample : Float; Channel : Channel_Index := Channel_Index'First) is abstract with Pre'Class => Channel <= Dst.Max_Channel; -- DESCRIPTION -- Output a sample to the destination --*** --****m* Data_Destination/Max_Channel -- SOURCE function Max_Channel (Src : Data_Destination) return Channel_Index is abstract; -- DESCRIPTION -- Return the number of the last channel of the source --*** --****m* Data_Destination/Close -- SOURCE procedure Close (Src : in out Data_Destination) is abstract; -- DESCRIPTION -- Close the destination, doing all the necessary housekeeping --*** end Fakedsp.Data_Streams;
-- -- Jan & Uwe R. Zimmer, Australia, 2013 -- with Real_Type; use Real_Type; with Generic_Protected; pragma Elaborate_All (Generic_Protected); with Graphics_Structures; use Graphics_Structures; with Vectors_3D; use Vectors_3D; package Swarm_Structures_Base is subtype Distances is Real; subtype Acc_Scalar is Real; subtype Positions is Point_3D; subtype Velocities is Vector_3D; subtype Accelerations is Vector_3D; subtype Swarm_Element_Index is Positive; subtype Throttle_T is Real range 0.0 .. 1.0; Idle_Throttle : constant Throttle_T := 0.0; Full_Throttle : constant Throttle_T := 1.0; type Vehicle_Charges is new Real range 0.0 .. 1.0; Empty_Charge : constant Vehicle_Charges := 0.0; Half_Charge : constant Vehicle_Charges := 0.5; Full_Charge : constant Vehicle_Charges := 1.0; type Energy_Globe is record Position : Positions; Velocity : Velocities; -- in delta-position per second end record; type Energy_Globes is array (Positive range <>) of Energy_Globe; package Protected_Point_3D is new Generic_Protected (Point_3D, Zero_Vector_3D); package Protected_Vector_3D is new Generic_Protected (Vector_3D, Zero_Vector_3D); type Energy_Globe_Protected is record Position : Protected_Point_3D.Monitor_Ptr; Velocity : Protected_Vector_3D.Monitor_Ptr; end record; type Energy_Globes_Protected is array (Positive range <>) of Energy_Globe_Protected; end Swarm_Structures_Base;
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- G N A T . S O C K E T S -- -- -- -- S p e c -- -- -- -- Copyright (C) 2001-2005, AdaCore -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 2, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License -- -- for more details. You should have received a copy of the GNU General -- -- Public License distributed with GNAT; see file COPYING. If not, write -- -- to the Free Software Foundation, 51 Franklin Street, Fifth Floor, -- -- Boston, MA 02110-1301, USA. -- -- -- -- As a special exception, if other files instantiate generics from this -- -- unit, or you link this unit with other files to produce an executable, -- -- this unit does not by itself cause the resulting executable to be -- -- covered by the GNU General Public License. This exception does not -- -- however invalidate any other reasons why the executable file might be -- -- covered by the GNU Public License. -- -- -- -- GNAT was originally developed by the GNAT team at New York University. -- -- Extensive contributions were provided by Ada Core Technologies Inc. -- -- -- ------------------------------------------------------------------------------ -- This package provides an interface to the sockets communication facility -- provided on many operating systems. This is implemented on the following -- platforms: -- All native ports, with restrictions as follows -- Multicast is available only on systems which provide support for this -- feature, so it is not available if Multicast is not supported, or not -- installed. In particular Multicast is not available with the Windows -- version. -- The VMS implementation has implemented using the DECC RTL Socket API, -- and is thus subject to limitations in the implementation of this API. -- VxWorks cross ports fully implement this package -- This package is not yet implemented on LynxOS or other cross ports with Ada.Exceptions; with Ada.Streams; with Ada.Unchecked_Deallocation; with System; package GNAT.Sockets is -- Sockets are designed to provide a consistent communication facility -- between applications. This package provides an Ada-like interface -- similar to that proposed as part of the BSD socket layer. -- GNAT.Sockets has been designed with several ideas in mind -- This is a system independent interface. Therefore, we try as much as -- possible to mask system incompatibilities. Some functionalities are not -- available because there are not fully supported on some systems. -- This is a thick binding. For instance, a major effort has been done to -- avoid using memory addresses or untyped ints. We preferred to define -- streams and enumeration types. Errors are not returned as returned -- values but as exceptions. -- This package provides a POSIX-compliant interface (between two -- different implementations of the same routine, we adopt the one closest -- to the POSIX specification). For instance, using select(), the -- notification of an asynchronous connect failure is delivered in the -- write socket set (POSIX) instead of the exception socket set (NT). -- Here is a typical example of what you can do: -- with GNAT.Sockets; use GNAT.Sockets; -- with Ada.Text_IO; -- with Ada.Exceptions; use Ada.Exceptions; -- procedure PingPong is -- Group : constant String := "239.255.128.128"; -- -- Multicast group: administratively scoped IP address -- task Pong is -- entry Start; -- entry Stop; -- end Pong; -- task body Pong is -- Address : Sock_Addr_Type; -- Server : Socket_Type; -- Socket : Socket_Type; -- Channel : Stream_Access; -- begin -- accept Start; -- -- -- Get an Internet address of a host (here the local host name). -- -- Note that a host can have several addresses. Here we get -- -- the first one which is supposed to be the official one. -- Address.Addr := Addresses (Get_Host_By_Name (Host_Name), 1); -- -- Get a socket address that is an Internet address and a port -- Address.Port := 5876; -- -- The first step is to create a socket. Once created, this -- -- socket must be associated to with an address. Usually only a -- -- server (Pong here) needs to bind an address explicitly. Most -- -- of the time clients can skip this step because the socket -- -- routines will bind an arbitrary address to an unbound socket. -- Create_Socket (Server); -- -- Allow reuse of local addresses -- Set_Socket_Option -- (Server, -- Socket_Level, -- (Reuse_Address, True)); -- Bind_Socket (Server, Address); -- -- A server marks a socket as willing to receive connect events -- Listen_Socket (Server); -- -- Once a server calls Listen_Socket, incoming connects events -- -- can be accepted. The returned Socket is a new socket that -- -- represents the server side of the connection. Server remains -- -- available to receive further connections. -- Accept_Socket (Server, Socket, Address); -- -- Return a stream associated to the connected socket -- Channel := Stream (Socket); -- -- Force Pong to block -- delay 0.2; -- -- Receive and print message from client Ping -- declare -- Message : String := String'Input (Channel); -- begin -- Ada.Text_IO.Put_Line (Message); -- -- Send same message back to client Ping -- String'Output (Channel, Message); -- end; -- Close_Socket (Server); -- Close_Socket (Socket); -- -- Part of the multicast example -- -- Create a datagram socket to send connectionless, unreliable -- -- messages of a fixed maximum length. -- Create_Socket (Socket, Family_Inet, Socket_Datagram); -- -- Allow reuse of local addresses -- Set_Socket_Option -- (Socket, -- Socket_Level, -- (Reuse_Address, True)); -- -- Join a multicast group -- Set_Socket_Option -- (Socket, -- IP_Protocol_For_IP_Level, -- (Add_Membership, Inet_Addr (Group), Any_Inet_Addr)); -- -- Controls the live time of the datagram to avoid it being -- -- looped forever due to routing errors. Routers decrement -- -- the TTL of every datagram as it traverses from one network -- -- to another and when its value reaches 0 the packet is -- -- dropped. Default is 1. -- Set_Socket_Option -- (Socket, -- IP_Protocol_For_IP_Level, -- (Multicast_TTL, 1)); -- -- Want the data you send to be looped back to your host -- Set_Socket_Option -- (Socket, -- IP_Protocol_For_IP_Level, -- (Multicast_Loop, True)); -- -- If this socket is intended to receive messages, bind it -- -- to a given socket address. -- Address.Addr := Any_Inet_Addr; -- Address.Port := 55505; -- Bind_Socket (Socket, Address); -- -- If this socket is intended to send messages, provide the -- -- receiver socket address. -- Address.Addr := Inet_Addr (Group); -- Address.Port := 55506; -- Channel := Stream (Socket, Address); -- -- Receive and print message from client Ping -- declare -- Message : String := String'Input (Channel); -- begin -- -- Get the address of the sender -- Address := Get_Address (Channel); -- Ada.Text_IO.Put_Line (Message & " from " & Image (Address)); -- -- Send same message back to client Ping -- String'Output (Channel, Message); -- end; -- Close_Socket (Socket); -- accept Stop; -- exception when E : others => -- Ada.Text_IO.Put_Line -- (Exception_Name (E) & ": " & Exception_Message (E)); -- end Pong; -- task Ping is -- entry Start; -- entry Stop; -- end Ping; -- task body Ping is -- Address : Sock_Addr_Type; -- Socket : Socket_Type; -- Channel : Stream_Access; -- begin -- accept Start; -- -- See comments in Ping section for the first steps -- Address.Addr := Addresses (Get_Host_By_Name (Host_Name), 1); -- Address.Port := 5876; -- Create_Socket (Socket); -- Set_Socket_Option -- (Socket, -- Socket_Level, -- (Reuse_Address, True)); -- -- Force Pong to block -- delay 0.2; -- -- If the client's socket is not bound, Connect_Socket will -- -- bind to an unused address. The client uses Connect_Socket to -- -- create a logical connection between the client's socket and -- -- a server's socket returned by Accept_Socket. -- Connect_Socket (Socket, Address); -- Channel := Stream (Socket); -- -- Send message to server Pong -- String'Output (Channel, "Hello world"); -- -- Force Ping to block -- delay 0.2; -- -- Receive and print message from server Pong -- Ada.Text_IO.Put_Line (String'Input (Channel)); -- Close_Socket (Socket); -- -- Part of multicast example. Code similar to Pong's one -- Create_Socket (Socket, Family_Inet, Socket_Datagram); -- Set_Socket_Option -- (Socket, -- Socket_Level, -- (Reuse_Address, True)); -- Set_Socket_Option -- (Socket, -- IP_Protocol_For_IP_Level, -- (Add_Membership, Inet_Addr (Group), Any_Inet_Addr)); -- Set_Socket_Option -- (Socket, -- IP_Protocol_For_IP_Level, -- (Multicast_TTL, 1)); -- Set_Socket_Option -- (Socket, -- IP_Protocol_For_IP_Level, -- (Multicast_Loop, True)); -- Address.Addr := Any_Inet_Addr; -- Address.Port := 55506; -- Bind_Socket (Socket, Address); -- Address.Addr := Inet_Addr (Group); -- Address.Port := 55505; -- Channel := Stream (Socket, Address); -- -- Send message to server Pong -- String'Output (Channel, "Hello world"); -- -- Receive and print message from server Pong -- declare -- Message : String := String'Input (Channel); -- begin -- Address := Get_Address (Channel); -- Ada.Text_IO.Put_Line (Message & " from " & Image (Address)); -- end; -- Close_Socket (Socket); -- accept Stop; -- exception when E : others => -- Ada.Text_IO.Put_Line -- (Exception_Name (E) & ": " & Exception_Message (E)); -- end Ping; -- begin -- -- Indicate whether the thread library provides process -- -- blocking IO. Basically, if you are not using FSU threads -- -- the default is ok. -- Initialize (Process_Blocking_IO => False); -- Ping.Start; -- Pong.Start; -- Ping.Stop; -- Pong.Stop; -- Finalize; -- end PingPong; procedure Initialize (Process_Blocking_IO : Boolean := False); -- Initialize must be called before using any other socket routines. The -- Process_Blocking_IO parameter indicates whether the thread library -- provides process-blocking or thread-blocking input/output operations. -- In the former case (typically with FSU threads) GNAT.Sockets should be -- initialized with a value of True to provide task-blocking IO through an -- emulation mechanism. Only the first call to Initialize is taken into -- account (further calls will be ignored). Note that with the default -- value of Process_Blocking_IO, this operation is a no-op on UNIX -- platforms, but applications should make sure to call it if portability -- is expected: some platforms (such as Windows) require initialization -- before any other socket operations. procedure Finalize; -- After Finalize is called it is not possible to use any routines -- exported in by this package. This procedure is idempotent. type Socket_Type is private; -- Sockets are used to implement a reliable bi-directional point-to-point, -- stream-based connections between hosts. No_Socket provides a special -- value to denote uninitialized sockets. No_Socket : constant Socket_Type; Socket_Error : exception; -- There is only one exception in this package to deal with an error during -- a socket routine. Once raised, its message contains a string describing -- the error code. function Image (Socket : Socket_Type) return String; -- Return a printable string for Socket function To_C (Socket : Socket_Type) return Integer; -- Return a file descriptor to be used by external subprograms. This is -- useful for C functions that are not yet interfaced in this package. type Family_Type is (Family_Inet, Family_Inet6); -- Address family (or protocol family) identifies the communication domain -- and groups protocols with similar address formats. IPv6 will soon be -- supported. type Mode_Type is (Socket_Stream, Socket_Datagram); -- Stream sockets provide connection-oriented byte streams. Datagram -- sockets support unreliable connectionless message based communication. type Shutmode_Type is (Shut_Read, Shut_Write, Shut_Read_Write); -- When a process closes a socket, the policy is to retain any data queued -- until either a delivery or a timeout expiration (in this case, the data -- are discarded). A finer control is available through shutdown. With -- Shut_Read, no more data can be received from the socket. With_Write, no -- more data can be transmitted. Neither transmission nor reception can be -- performed with Shut_Read_Write. type Port_Type is new Natural; -- Classical port definition. No_Port provides a special value to -- denote uninitialized port. Any_Port provides a special value -- enabling all ports. Any_Port : constant Port_Type; No_Port : constant Port_Type; type Inet_Addr_Type (Family : Family_Type := Family_Inet) is private; -- An Internet address depends on an address family (IPv4 contains 4 -- octets and Ipv6 contains 16 octets). Any_Inet_Addr is a special value -- treated like a wildcard enabling all addresses. No_Inet_Addr provides a -- special value to denote uninitialized inet addresses. Any_Inet_Addr : constant Inet_Addr_Type; No_Inet_Addr : constant Inet_Addr_Type; Broadcast_Inet_Addr : constant Inet_Addr_Type; type Sock_Addr_Type (Family : Family_Type := Family_Inet) is record Addr : Inet_Addr_Type (Family); Port : Port_Type; end record; -- Socket addresses fully define a socket connection with protocol family, -- an Internet address and a port. No_Sock_Addr provides a special value -- for uninitialized socket addresses. No_Sock_Addr : constant Sock_Addr_Type; function Image (Value : Inet_Addr_Type) return String; -- Return an image of an Internet address. IPv4 notation consists in 4 -- octets in decimal format separated by dots. IPv6 notation consists in -- 16 octets in hexadecimal format separated by colons (and possibly -- dots). function Image (Value : Sock_Addr_Type) return String; -- Return inet address image and port image separated by a colon function Inet_Addr (Image : String) return Inet_Addr_Type; -- Convert address image from numbers-and-dots notation into an -- inet address. -- Host entries provide complete information on a given host: the official -- name, an array of alternative names or aliases and array of network -- addresses. type Host_Entry_Type (Aliases_Length, Addresses_Length : Natural) is private; function Official_Name (E : Host_Entry_Type) return String; -- Return official name in host entry function Aliases_Length (E : Host_Entry_Type) return Natural; -- Return number of aliases in host entry function Addresses_Length (E : Host_Entry_Type) return Natural; -- Return number of addresses in host entry function Aliases (E : Host_Entry_Type; N : Positive := 1) return String; -- Return N'th aliases in host entry. The first index is 1 function Addresses (E : Host_Entry_Type; N : Positive := 1) return Inet_Addr_Type; -- Return N'th addresses in host entry. The first index is 1 Host_Error : exception; -- Exception raised by the two following procedures. Once raised, its -- message contains a string describing the error code. This exception is -- raised when an host entry cannot be retrieved. function Get_Host_By_Address (Address : Inet_Addr_Type; Family : Family_Type := Family_Inet) return Host_Entry_Type; -- Return host entry structure for the given Inet address. Note that no -- result will be returned if there is no mapping of this IP address to a -- host name in the system tables (host database, DNS or otherwise). function Get_Host_By_Name (Name : String) return Host_Entry_Type; -- Return host entry structure for the given host name. Here name is -- either a host name, or an IP address. If Name is an IP address, this is -- equivalent to Get_Host_By_Address (Inet_Addr (Name)). function Host_Name return String; -- Return the name of the current host type Service_Entry_Type (Aliases_Length : Natural) is private; -- Service entries provide complete information on a given service: the -- official name, an array of alternative names or aliases and the port -- number. function Official_Name (S : Service_Entry_Type) return String; -- Return official name in service entry function Port_Number (S : Service_Entry_Type) return Port_Type; -- Return port number in service entry function Protocol_Name (S : Service_Entry_Type) return String; -- Return Protocol in service entry (usually UDP or TCP) function Aliases_Length (S : Service_Entry_Type) return Natural; -- Return number of aliases in service entry function Aliases (S : Service_Entry_Type; N : Positive := 1) return String; -- Return N'th aliases in service entry (the first index is 1) function Get_Service_By_Name (Name : String; Protocol : String) return Service_Entry_Type; -- Return service entry structure for the given service name function Get_Service_By_Port (Port : Port_Type; Protocol : String) return Service_Entry_Type; -- Return service entry structure for the given service port number Service_Error : exception; -- Comment required ??? -- Errors are described by an enumeration type. There is only one -- exception Socket_Error in this package to deal with an error during a -- socket routine. Once raised, its message contains the error code -- between brackets and a string describing the error code. -- The name of the enumeration constant documents the error condition type Error_Type is (Success, Permission_Denied, Address_Already_In_Use, Cannot_Assign_Requested_Address, Address_Family_Not_Supported_By_Protocol, Operation_Already_In_Progress, Bad_File_Descriptor, Software_Caused_Connection_Abort, Connection_Refused, Connection_Reset_By_Peer, Destination_Address_Required, Bad_Address, Host_Is_Down, No_Route_To_Host, Operation_Now_In_Progress, Interrupted_System_Call, Invalid_Argument, Input_Output_Error, Transport_Endpoint_Already_Connected, Too_Many_Symbolic_Links, Too_Many_Open_Files, Message_Too_Long, File_Name_Too_Long, Network_Is_Down, Network_Dropped_Connection_Because_Of_Reset, Network_Is_Unreachable, No_Buffer_Space_Available, Protocol_Not_Available, Transport_Endpoint_Not_Connected, Socket_Operation_On_Non_Socket, Operation_Not_Supported, Protocol_Family_Not_Supported, Protocol_Not_Supported, Protocol_Wrong_Type_For_Socket, Cannot_Send_After_Transport_Endpoint_Shutdown, Socket_Type_Not_Supported, Connection_Timed_Out, Too_Many_References, Resource_Temporarily_Unavailable, Unknown_Host, Host_Name_Lookup_Failure, Non_Recoverable_Error, Unknown_Server_Error, Cannot_Resolve_Error); -- Timeval_Duration is a subtype of Standard.Duration because the full -- range of Standard.Duration cannot be represented in the equivalent C -- structure. Moreover, negative values are not allowed to avoid system -- incompatibilities. Immediate : constant := 0.0; Forever : constant := Duration (Integer'Last) * 1.0; subtype Timeval_Duration is Duration range Immediate .. Forever; -- Get_Socket_Options and Set_Socket_Options manipulate options associated -- with a socket. Options may exist at multiple protocol levels in the -- communication stack. Socket_Level is the uppermost socket level. type Level_Type is ( Socket_Level, IP_Protocol_For_IP_Level, IP_Protocol_For_UDP_Level, IP_Protocol_For_TCP_Level); -- There are several options available to manipulate sockets. Each option -- has a name and several values available. Most of the time, the value is -- a boolean to enable or disable this option. type Option_Name is ( Keep_Alive, -- Enable sending of keep-alive messages Reuse_Address, -- Allow bind to reuse local address Broadcast, -- Enable datagram sockets to recv/send broadcasts Send_Buffer, -- Set/get the maximum socket send buffer in bytes Receive_Buffer, -- Set/get the maximum socket recv buffer in bytes Linger, -- Shutdown wait for msg to be sent or timeout occur Error, -- Get and clear the pending socket error No_Delay, -- Do not delay send to coalesce packets (TCP_NODELAY) Add_Membership, -- Join a multicast group Drop_Membership, -- Leave a multicast group Multicast_If, -- Set default outgoing interface for multicast packets Multicast_TTL, -- Indicate the time-to-live of sent multicast packets Multicast_Loop, -- Sent multicast packets are looped to local socket Send_Timeout, -- Set timeout value for output Receive_Timeout); -- Set timeout value for input type Option_Type (Name : Option_Name := Keep_Alive) is record case Name is when Keep_Alive | Reuse_Address | Broadcast | Linger | No_Delay | Multicast_Loop => Enabled : Boolean; case Name is when Linger => Seconds : Natural; when others => null; end case; when Send_Buffer | Receive_Buffer => Size : Natural; when Error => Error : Error_Type; when Add_Membership | Drop_Membership => Multicast_Address : Inet_Addr_Type; Local_Interface : Inet_Addr_Type; when Multicast_If => Outgoing_If : Inet_Addr_Type; when Multicast_TTL => Time_To_Live : Natural; when Send_Timeout | Receive_Timeout => Timeout : Timeval_Duration; end case; end record; -- There are several controls available to manipulate sockets. Each option -- has a name and several values available. These controls differ from the -- socket options in that they are not specific to sockets but are -- available for any device. type Request_Name is ( Non_Blocking_IO, -- Cause a caller not to wait on blocking operations. N_Bytes_To_Read); -- Return the number of bytes available to read type Request_Type (Name : Request_Name := Non_Blocking_IO) is record case Name is when Non_Blocking_IO => Enabled : Boolean; when N_Bytes_To_Read => Size : Natural; end case; end record; -- A request flag allows to specify the type of message transmissions or -- receptions. A request flag can be combination of zero or more -- predefined request flags. type Request_Flag_Type is private; No_Request_Flag : constant Request_Flag_Type; -- This flag corresponds to the normal execution of an operation Process_Out_Of_Band_Data : constant Request_Flag_Type; -- This flag requests that the receive or send function operates on -- out-of-band data when the socket supports this notion (e.g. -- Socket_Stream). Peek_At_Incoming_Data : constant Request_Flag_Type; -- This flag causes the receive operation to return data from the -- beginning of the receive queue without removing that data from the -- queue. A subsequent receive call will return the same data. Wait_For_A_Full_Reception : constant Request_Flag_Type; -- This flag requests that the operation block until the full request is -- satisfied. However, the call may still return less data than requested -- if a signal is caught, an error or disconnect occurs, or the next data -- to be received is of a different type than that returned. Note that -- this flag depends on support in the underlying sockets implementation, -- and is not supported under Windows. Send_End_Of_Record : constant Request_Flag_Type; -- This flag indicates that the entire message has been sent and so this -- terminates the record. function "+" (L, R : Request_Flag_Type) return Request_Flag_Type; -- Combine flag L with flag R type Stream_Element_Reference is access all Ada.Streams.Stream_Element; type Vector_Element is record Base : Stream_Element_Reference; Length : Ada.Streams.Stream_Element_Count; end record; type Vector_Type is array (Integer range <>) of Vector_Element; procedure Create_Socket (Socket : out Socket_Type; Family : Family_Type := Family_Inet; Mode : Mode_Type := Socket_Stream); -- Create an endpoint for communication. Raises Socket_Error on error procedure Accept_Socket (Server : Socket_Type; Socket : out Socket_Type; Address : out Sock_Addr_Type); -- Extracts the first connection request on the queue of pending -- connections, creates a new connected socket with mostly the same -- properties as Server, and allocates a new socket. The returned Address -- is filled in with the address of the connection. Raises Socket_Error on -- error. procedure Bind_Socket (Socket : Socket_Type; Address : Sock_Addr_Type); -- Once a socket is created, assign a local address to it. Raise -- Socket_Error on error. procedure Close_Socket (Socket : Socket_Type); -- Close a socket and more specifically a non-connected socket procedure Connect_Socket (Socket : Socket_Type; Server : in out Sock_Addr_Type); -- Make a connection to another socket which has the address of -- Server. Raises Socket_Error on error. procedure Control_Socket (Socket : Socket_Type; Request : in out Request_Type); -- Obtain or set parameter values that control the socket. This control -- differs from the socket options in that they are not specific to -- sockets but are available for any device. function Get_Peer_Name (Socket : Socket_Type) return Sock_Addr_Type; -- Return the peer or remote socket address of a socket. Raise -- Socket_Error on error. function Get_Socket_Name (Socket : Socket_Type) return Sock_Addr_Type; -- Return the local or current socket address of a socket. Return -- No_Sock_Addr on error (for instance, socket closed or not locally -- bound). function Get_Socket_Option (Socket : Socket_Type; Level : Level_Type := Socket_Level; Name : Option_Name) return Option_Type; -- Get the options associated with a socket. Raises Socket_Error -- on error. procedure Listen_Socket (Socket : Socket_Type; Length : Positive := 15); -- To accept connections, a socket is first created with Create_Socket, -- a willingness to accept incoming connections and a queue Length for -- incoming connections are specified. Raise Socket_Error on error. procedure Receive_Socket (Socket : Socket_Type; Item : out Ada.Streams.Stream_Element_Array; Last : out Ada.Streams.Stream_Element_Offset; Flags : Request_Flag_Type := No_Request_Flag); -- Receive message from Socket. Last is the index value such that Item -- (Last) is the last character assigned. Note that Last is set to -- Item'First - 1 when the socket has been closed by peer. This is not an -- error and no exception is raised. Flags allows to control the -- reception. Raise Socket_Error on error. procedure Receive_Socket (Socket : Socket_Type; Item : out Ada.Streams.Stream_Element_Array; Last : out Ada.Streams.Stream_Element_Offset; From : out Sock_Addr_Type; Flags : Request_Flag_Type := No_Request_Flag); -- Receive message from Socket. If Socket is not connection-oriented, the -- source address From of the message is filled in. Last is the index -- value such that Item (Last) is the last character assigned. Flags -- allows to control the reception. Raises Socket_Error on error. procedure Receive_Vector (Socket : Socket_Type; Vector : Vector_Type; Count : out Ada.Streams.Stream_Element_Count); -- Receive data from a socket and scatter it into the set of vector -- elements Vector. Count is set to the count of received stream elements. function Resolve_Exception (Occurrence : Ada.Exceptions.Exception_Occurrence) return Error_Type; -- When Socket_Error or Host_Error are raised, the exception message -- contains the error code between brackets and a string describing the -- error code. Resolve_Error extracts the error code from an exception -- message and translate it into an enumeration value. procedure Send_Socket (Socket : Socket_Type; Item : Ada.Streams.Stream_Element_Array; Last : out Ada.Streams.Stream_Element_Offset; Flags : Request_Flag_Type := No_Request_Flag); -- Transmit a message to another socket. Note that Last is set to -- Item'First-1 when socket has been closed by peer. This is not -- considered an error and no exception is raised. Flags allows to control -- the transmission. Raises Socket_Error on any other error condition. procedure Send_Socket (Socket : Socket_Type; Item : Ada.Streams.Stream_Element_Array; Last : out Ada.Streams.Stream_Element_Offset; To : Sock_Addr_Type; Flags : Request_Flag_Type := No_Request_Flag); -- Transmit a message to another socket. The address is given by To. Flags -- allows to control the transmission. Raises Socket_Error on error. procedure Send_Vector (Socket : Socket_Type; Vector : Vector_Type; Count : out Ada.Streams.Stream_Element_Count); -- Transmit data gathered from the set of vector elements Vector to a -- socket. Count is set to the count of transmitted stream elements. procedure Set_Socket_Option (Socket : Socket_Type; Level : Level_Type := Socket_Level; Option : Option_Type); -- Manipulate socket options. Raises Socket_Error on error procedure Shutdown_Socket (Socket : Socket_Type; How : Shutmode_Type := Shut_Read_Write); -- Shutdown a connected socket. If How is Shut_Read, further receives will -- be disallowed. If How is Shut_Write, further sends will be disallowed. -- If how is Shut_Read_Write, further sends and receives will be -- disallowed. type Stream_Access is access all Ada.Streams.Root_Stream_Type'Class; -- Same interface as Ada.Streams.Stream_IO function Stream (Socket : Socket_Type) return Stream_Access; -- Create a stream associated with a stream-based socket that is -- already connected. function Stream (Socket : Socket_Type; Send_To : Sock_Addr_Type) return Stream_Access; -- Create a stream associated with a datagram-based socket that is already -- bound. Send_To is the socket address to which messages are being sent. function Get_Address (Stream : Stream_Access) return Sock_Addr_Type; -- Return the socket address from which the last message was received procedure Free is new Ada.Unchecked_Deallocation (Ada.Streams.Root_Stream_Type'Class, Stream_Access); -- Destroy a stream created by one of the Stream functions above, -- releasing the corresponding resources. The user is responsible for -- calling this subprogram when the stream is not needed anymore. type Socket_Set_Type is limited private; -- This type allows to manipulate sets of sockets. It allows to wait for -- events on multiple endpoints at one time. This is an access type on a -- system dependent structure. To avoid memory leaks it is highly -- recommended to clean the access value with procedure Empty. procedure Clear (Item : in out Socket_Set_Type; Socket : Socket_Type); -- Remove Socket from Item procedure Copy (Source : Socket_Set_Type; Target : in out Socket_Set_Type); -- Copy Source into Target as Socket_Set_Type is limited private procedure Empty (Item : in out Socket_Set_Type); -- Remove all Sockets from Item and deallocate internal data procedure Get (Item : in out Socket_Set_Type; Socket : out Socket_Type); -- Extract a Socket from socket set Item. Socket is set to -- No_Socket when the set is empty. function Is_Empty (Item : Socket_Set_Type) return Boolean; -- Return True iff Item is empty function Is_Set (Item : Socket_Set_Type; Socket : Socket_Type) return Boolean; -- Return True iff Socket is present in Item procedure Set (Item : in out Socket_Set_Type; Socket : Socket_Type); -- Insert Socket into Item -- The select(2) system call waits for events to occur on any of a set of -- file descriptors. Usually, three independent sets of descriptors are -- watched (read, write and exception). A timeout gives an upper bound -- on the amount of time elapsed before select returns. This function -- blocks until an event occurs. On some platforms, the select(2) system -- can block the full process (not just the calling thread). -- -- Check_Selector provides the very same behaviour. The only difference is -- that it does not watch for exception events. Note that on some -- platforms it is kept process blocking on purpose. The timeout parameter -- allows the user to have the behaviour he wants. Abort_Selector allows -- to abort safely a Check_Selector that is blocked forever. A special -- file descriptor is opened by Create_Selector and included in each call -- to Check_Selector. Abort_Selector causes an event to occur on this -- descriptor in order to unblock Check_Selector. The user must call -- Close_Selector to discard this special file. A reason to abort a select -- operation is typically to add a socket in one of the socket sets when -- the timeout is set to forever. type Selector_Type is limited private; type Selector_Access is access all Selector_Type; subtype Selector_Duration is Timeval_Duration; procedure Create_Selector (Selector : out Selector_Type); -- Create a new selector procedure Close_Selector (Selector : in out Selector_Type); -- Close Selector and all internal descriptors associated type Selector_Status is (Completed, Expired, Aborted); procedure Check_Selector (Selector : in out Selector_Type; R_Socket_Set : in out Socket_Set_Type; W_Socket_Set : in out Socket_Set_Type; Status : out Selector_Status; Timeout : Selector_Duration := Forever); -- Return when one Socket in R_Socket_Set has some data to be read or if -- one Socket in W_Socket_Set is ready to transmit some data. In these -- cases Status is set to Completed and sockets that are ready are set in -- R_Socket_Set or W_Socket_Set. Status is set to Expired if no socket was -- ready after a Timeout expiration. Status is set to Aborted if an abort -- signal has been received while checking socket status. As this -- procedure returns when Timeout occurs, it is a design choice to keep -- this procedure process blocking. Note that a Timeout of 0.0 returns -- immediately. Also note that two different Socket_Set_Type objects must -- be passed as R_Socket_Set and W_Socket_Set (even if they denote the -- same set of Sockets), or some event may be lost. -- Socket_Error is raised when the select(2) system call returns an -- error condition, or when a read error occurs on the signalling socket -- used for the implementation of Abort_Selector. procedure Check_Selector (Selector : in out Selector_Type; R_Socket_Set : in out Socket_Set_Type; W_Socket_Set : in out Socket_Set_Type; E_Socket_Set : in out Socket_Set_Type; Status : out Selector_Status; Timeout : Selector_Duration := Forever); -- This refined version of Check_Selector allows to watch for exception -- events (that is notifications of out-of-band transmission and -- reception). As above, all of R_Socket_Set, W_Socket_Set and -- E_Socket_Set must be different objects. procedure Abort_Selector (Selector : Selector_Type); -- Send an abort signal to the selector private type Socket_Type is new Integer; No_Socket : constant Socket_Type := -1; type Selector_Type is limited record R_Sig_Socket : Socket_Type; W_Sig_Socket : Socket_Type; end record; pragma Volatile (Selector_Type); -- The two signalling sockets are used to abort a select operation subtype Socket_Set_Access is System.Address; No_Socket_Set : constant Socket_Set_Access := System.Null_Address; type Socket_Set_Type is record Last : Socket_Type := No_Socket; Set : Socket_Set_Access := No_Socket_Set; end record; subtype Inet_Addr_Comp_Type is Natural range 0 .. 255; -- Octet for Internet address type Inet_Addr_VN_Type is array (Natural range <>) of Inet_Addr_Comp_Type; subtype Inet_Addr_V4_Type is Inet_Addr_VN_Type (1 .. 4); subtype Inet_Addr_V6_Type is Inet_Addr_VN_Type (1 .. 16); type Inet_Addr_Type (Family : Family_Type := Family_Inet) is record case Family is when Family_Inet => Sin_V4 : Inet_Addr_V4_Type := (others => 0); when Family_Inet6 => Sin_V6 : Inet_Addr_V6_Type := (others => 0); end case; end record; Any_Port : constant Port_Type := 0; No_Port : constant Port_Type := 0; Any_Inet_Addr : constant Inet_Addr_Type := (Family_Inet, (others => 0)); No_Inet_Addr : constant Inet_Addr_Type := (Family_Inet, (others => 0)); Broadcast_Inet_Addr : constant Inet_Addr_Type := (Family_Inet, (others => 255)); No_Sock_Addr : constant Sock_Addr_Type := (Family_Inet, No_Inet_Addr, 0); Max_Name_Length : constant := 64; -- The constant MAXHOSTNAMELEN is usually set to 64 subtype Name_Index is Natural range 1 .. Max_Name_Length; type Name_Type (Length : Name_Index := Max_Name_Length) is record Name : String (1 .. Length); end record; -- We need fixed strings to avoid access types in host entry type type Name_Array is array (Natural range <>) of Name_Type; type Inet_Addr_Array is array (Natural range <>) of Inet_Addr_Type; type Host_Entry_Type (Aliases_Length, Addresses_Length : Natural) is record Official : Name_Type; Aliases : Name_Array (1 .. Aliases_Length); Addresses : Inet_Addr_Array (1 .. Addresses_Length); end record; type Service_Entry_Type (Aliases_Length : Natural) is record Official : Name_Type; Aliases : Name_Array (1 .. Aliases_Length); Port : Port_Type; Protocol : Name_Type; end record; type Request_Flag_Type is mod 2 ** 8; No_Request_Flag : constant Request_Flag_Type := 0; Process_Out_Of_Band_Data : constant Request_Flag_Type := 1; Peek_At_Incoming_Data : constant Request_Flag_Type := 2; Wait_For_A_Full_Reception : constant Request_Flag_Type := 4; Send_End_Of_Record : constant Request_Flag_Type := 8; end GNAT.Sockets;
------------------------------------------------------------------------------ -- -- -- GNAT EXAMPLE -- -- -- -- Copyright (C) 2014-2017, Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 3, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. -- -- -- -- -- -- -- -- -- -- -- -- You should have received a copy of the GNU General Public License and -- -- a copy of the GCC Runtime Library Exception along with this program; -- -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see -- -- <http://www.gnu.org/licenses/>. -- -- -- -- GNAT was originally developed by the GNAT team at New York University. -- -- Extensive contributions were provided by Ada Core Technologies Inc. -- -- -- ------------------------------------------------------------------------------ with Ada.Interrupts.Names; with Ada.Real_Time; use Ada.Real_Time; with Registers; use Registers; with STM32F4; use STM32F4; with STM32F4.GPIO; use STM32F4.GPIO; package body Button is protected Button is pragma Interrupt_Priority; function Current_Direction return Directions; private procedure Interrupt_Handler; pragma Attach_Handler (Interrupt_Handler, Ada.Interrupts.Names.EXTI0_Interrupt); Direction : Directions := Clockwise; -- arbitrary Last_Time : Time := Clock; end Button; Debounce_Time : constant Time_Span := Milliseconds (500); protected body Button is function Current_Direction return Directions is begin return Direction; end Current_Direction; procedure Interrupt_Handler is Now : constant Time := Clock; begin -- Clear interrupt EXTI.PR (0) := 1; -- Debouncing if Now - Last_Time >= Debounce_Time then if Direction = Counterclockwise then Direction := Clockwise; else Direction := Counterclockwise; end if; Last_Time := Now; end if; end Interrupt_Handler; end Button; function Current_Direction return Directions is begin return Button.Current_Direction; end Current_Direction; procedure Initialize is RCC_AHB1ENR_GPIOA : constant Word := 16#01#; RCC_APB2ENR_SYSCFG : constant Word := 2**14; begin -- Enable clock for GPIO-A RCC.AHB1ENR := RCC.AHB1ENR or RCC_AHB1ENR_GPIOA; -- Configure PA0 GPIOA.MODER (0) := Mode_IN; GPIOA.PUPDR (0) := No_Pull; -- Enable clock for SYSCFG RCC.APB2ENR := RCC.APB2ENR or RCC_APB2ENR_SYSCFG; -- Select PA for EXTI0 SYSCFG.EXTICR1 (0) := 0; -- Interrupt on rising edge EXTI.FTSR (0) := 0; EXTI.RTSR (0) := 1; EXTI.IMR (0) := 1; end Initialize; begin Initialize; end Button;
-- This file is covered by the Internet Software Consortium (ISC) License -- Reference: ../License.txt package body Replicant.Platform is ------------------ -- df_command -- ------------------ function df_command return String is begin case platform_type is when dragonfly | freebsd | netbsd => return "/bin/df -h"; when solaris => return "/usr/sbin/df -h"; when linux => return "/usr/bin/df -h"; when unknown => return "skip"; end case; end df_command; ------------------------- -- file_type_command -- ------------------------- function file_type_command return String is bsd_command : constant String := "/usr/bin/file -b " & JT.USS (PM.configuration.dir_system) & "/bin/sh"; lin_command : constant String := "/usr/bin/file -b " & JT.USS (PM.configuration.dir_system) & "/usr/bin/bash"; sol_command : constant String := "/usr/bin/file " & JT.USS (PM.configuration.dir_system) & "/usr/sbin/sh"; begin case platform_type is when freebsd | dragonfly | netbsd => return bsd_command; when linux => return lin_command; when solaris => return sol_command; when unknown => return "bad file_type_command invocation"; end case; end file_type_command; -------------------------- -- file_is_executable -- -------------------------- function file_is_executable (filename : String) return Boolean is command : constant String := "/usr/bin/file -b -L " & "-e ascii -e encoding -e tar -e compress " & LAT.Quotation & filename & LAT.Quotation; sol_cmd : constant String := "/usr/bin/file " & LAT.Quotation & filename & LAT.Quotation; comres : JT.Text; begin case platform_type is when dragonfly | freebsd | netbsd | linux => comres := internal_system_command (command); when solaris => comres := internal_system_command (sol_cmd); when unknown => return False; end case; return JT.contains (comres, "executable"); exception when others => return False; end file_is_executable; -------------------------- -- ARM_version_7 -- -------------------------- function ARM_version_7 return Boolean is -- Don't worry about other platforms, consider synth *BSD now command : constant String := "/usr/bin/readelf -A " & JT.USS (PM.configuration.dir_system) & "/bin/sh"; comres : JT.Text; begin comres := internal_system_command (command); declare contents : constant String := JT.USS (comres); markers : JT.Line_Markers; begin JT.initialize_markers (contents, markers); if JT.next_line_with_content_present (contents, " Tag_CPU_arch:", markers) then declare line : constant String := JT.extract_line (contents, markers); begin return JT.trim (JT.part_2 (line, ":")) = "ARM v7"; end; else TIO.Put_Line ("ARM_version_7 error: expected Tag_CPU_arch not found"); return False; end if; end; exception when others => TIO.Put_Line ("Handled exception (ARM_version_7 failed: defaulted to FALSE)"); return False; end ARM_version_7; -------------------------- -- dynamically_linked -- -------------------------- function dynamically_linked (base, filename : String) return Boolean is command : String := chroot & base & " /usr/bin/file -b -L " & "-e ascii -e encoding -e tar -e compress " & LAT.Quotation & filename & LAT.Quotation; sol_cmd : constant String := "/usr/bin/file " & LAT.Quotation & filename & LAT.Quotation; comres : JT.Text; begin case platform_type is when dragonfly | freebsd | netbsd | linux => comres := internal_system_command (command); when solaris => comres := internal_system_command (sol_cmd); when unknown => return False; end case; return JT.contains (comres, "dynamically linked"); exception when others => return False; end dynamically_linked; ----------------------------------- -- isolate_arch_from_file_type -- ----------------------------------- function isolate_arch_from_file_type (fileinfo : String) return filearch is -- DF: ELF 64-bit LSB executable, x86-64 -- FB: ELF 64-bit LSB executable, x86-64 -- FB: ELF 32-bit LSB executable, Intel 80386 -- NB: ELF 64-bit LSB executable, x86-64 -- L: ELF 64-bit LSB executable, x86-64 -- OPN: ELF 64-bit LSB shared object, x86-64, version 1 (FreeBSD), ... fragment : constant String := JT.trim (JT.specific_field (fileinfo, 2, ",")); answer : filearch := (others => ' '); begin if fragment'Length > filearch'Length then answer := fragment (fragment'First .. fragment'First + filearch'Length - 1); else answer (answer'First .. answer'First + fragment'Length - 1) := fragment; end if; return answer; end isolate_arch_from_file_type; ---------------------------------- -- get_arch_from_bourne_shell -- ---------------------------------- function get_arch_from_bourne_shell return String is function translate_arch (arch : filearch) return String; badarch : constant String := "BADARCH"; comres : JT.Text; arch : filearch; function translate_arch (arch : filearch) return String is begin if arch (arch'First .. arch'First + 5) = "x86-64" or else arch (arch'First .. arch'First + 4) = "AMD64" then case platform_type is when freebsd => return "amd64"; when netbsd => return "amd64"; when dragonfly => return "x86_64"; when linux => return "x86_64"; when solaris => return "x86_64"; when unknown => return badarch; end case; elsif arch = "ARM aarch64" then return "aarch64"; elsif arch = "ARM " then if ARM_version_7 then return "armv7"; else return "armv6"; end if; elsif arch = "Intel 80386" then return "i386"; else return badarch; end if; end translate_arch; begin comres := internal_system_command (file_type_command); arch := isolate_arch_from_file_type (JT.USS (comres)); return translate_arch (arch); exception when others => return badarch; end get_arch_from_bourne_shell; -------------------------------------- -- determine_package_architecture -- -------------------------------------- function determine_package_architecture return package_abi is function newsuffix (arch : filearch) return String; function suffix (arch : filearch) return String; function get_major (fileinfo : String; OS : String) return String; function even (fileinfo : String) return String; command : constant String := file_type_command; res : package_abi; arch : filearch; UN : JT.Text; function suffix (arch : filearch) return String is begin if arch (arch'First .. arch'First + 5) = "x86-64" or else arch (arch'First .. arch'First + 4) = "AMD64" then return "x86:64"; elsif arch = "Intel 80386" then return "x86:32"; elsif arch = "ARM aarch64" then return "aarch64:64"; elsif arch = "ARM " then if ARM_version_7 then return "armv7:32:el:eabi:softfp"; else return "armv6:32:el:eabi:softfp"; end if; else return "unknown:" & arch; end if; end suffix; function newsuffix (arch : filearch) return String is begin if arch (arch'First .. arch'First + 5) = "x86-64" or else arch (arch'First .. arch'First + 4) = "AMD64" then return "amd64"; elsif arch = "Intel 80386" then return "i386"; elsif arch = "ARM aarch64" then return "aarch64"; elsif arch = "ARM " then if ARM_version_7 then return "armv7"; else return "armv6"; end if; else return "unknown:" & arch; end if; end newsuffix; function even (fileinfo : String) return String is -- DF 4.5-DEVELOPMENT: ... DragonFly 4.0.501 -- DF 4.10-RELEASE : ... DragonFly 4.0.1000 -- DF 4.11-DEVELOPMENT: ... DragonFly 4.0.1102 -- -- Alternative future format (file version 2.0) -- DFV 400702: ... DragonFly 4.7.2 -- DFV 401117: .. DragonFly 4.11.17 rest : constant String := JT.part_2 (fileinfo, "DragonFly "); major : constant String := JT.part_1 (rest, "."); rest2 : constant String := JT.part_2 (rest, "."); part2 : constant String := JT.part_1 (rest2, "."); rest3 : constant String := JT.part_2 (rest2, "."); part3 : constant String := JT.part_1 (rest3, ","); minor : String (1 .. 2) := "00"; point : Character; begin if part2 = "0" then -- version format in October 2016 declare mvers : String (1 .. 4) := "0000"; lenp3 : constant Natural := part3'Length; begin mvers (mvers'Last - lenp3 + 1 .. mvers'Last) := part3; minor := mvers (1 .. 2); end; else -- Alternative future format (file version 2.0) declare lenp2 : constant Natural := part2'Length; begin minor (minor'Last - lenp2 + 1 .. minor'Last) := part2; end; end if; point := minor (2); case point is when '1' => minor (2) := '2'; when '3' => minor (2) := '4'; when '5' => minor (2) := '6'; when '7' => minor (2) := '8'; when '9' => minor (2) := '0'; minor (1) := Character'Val (Character'Pos (minor (1)) + 1); when others => null; end case; if minor (1) = '0' then return major & "." & minor (2); else return major & "." & minor (1 .. 2); end if; end even; function get_major (fileinfo : String; OS : String) return String is -- FreeBSD 10.2, stripped -- FreeBSD 11.0 (1100093), stripped -- NetBSD 7.0.1, not stripped rest : constant String := JT.part_2 (fileinfo, OS); major : constant String := JT.part_1 (rest, "."); begin return major; end get_major; begin UN := internal_system_command (file_type_command); arch := isolate_arch_from_file_type (JT.USS (UN)); case platform_type is when dragonfly => declare dfly : constant String := "dragonfly:"; release : constant String := even (JT.USS (UN)); begin res.calculated_abi := JT.SUS (dfly); JT.SU.Append (res.calculated_abi, release & ":"); res.calc_abi_noarch := res.calculated_abi; JT.SU.Append (res.calculated_abi, suffix (arch)); JT.SU.Append (res.calc_abi_noarch, "*"); res.calculated_alt_abi := res.calculated_abi; res.calc_alt_abi_noarch := res.calc_abi_noarch; end; when freebsd => declare fbsd1 : constant String := "FreeBSD:"; fbsd2 : constant String := "freebsd:"; release : constant String := get_major (JT.USS (UN), "FreeBSD "); begin res.calculated_abi := JT.SUS (fbsd1); res.calculated_alt_abi := JT.SUS (fbsd2); JT.SU.Append (res.calculated_abi, release & ":"); JT.SU.Append (res.calculated_alt_abi, release & ":"); res.calc_abi_noarch := res.calculated_abi; res.calc_alt_abi_noarch := res.calculated_alt_abi; JT.SU.Append (res.calculated_abi, newsuffix (arch)); JT.SU.Append (res.calculated_alt_abi, suffix (arch)); JT.SU.Append (res.calc_abi_noarch, "*"); JT.SU.Append (res.calc_alt_abi_noarch, "*"); end; when netbsd => declare net1 : constant String := "NetBSD:"; net2 : constant String := "netbsd:"; release : constant String := get_major (JT.USS (UN), "NetBSD "); begin res.calculated_abi := JT.SUS (net1); res.calculated_alt_abi := JT.SUS (net2); JT.SU.Append (res.calculated_abi, release & ":"); JT.SU.Append (res.calculated_alt_abi, release & ":"); res.calc_abi_noarch := res.calculated_abi; res.calc_alt_abi_noarch := res.calculated_alt_abi; JT.SU.Append (res.calculated_abi, newsuffix (arch)); JT.SU.Append (res.calculated_alt_abi, suffix (arch)); JT.SU.Append (res.calc_abi_noarch, "*"); JT.SU.Append (res.calc_alt_abi_noarch, "*"); end; when linux => null; -- TBD (check ABI first) when solaris => null; -- TBD (check ABI first) when unknown => null; end case; return res; end determine_package_architecture; ------------------------ -- swapinfo_command -- ------------------------ function swapinfo_command return String is begin case platform_type is when dragonfly | freebsd => return "/usr/sbin/swapinfo -k"; when netbsd => return "/sbin/swapctl -lk"; when linux => return "/usr/sbin/swapon --bytes --show=NAME,SIZE,USED,PRIO"; when solaris => return "/usr/sbin/swap -l"; when unknown => return ""; end case; end swapinfo_command; ------------------------- -- interactive_shell -- ------------------------- function interactive_shell return String is begin case platform_type is when dragonfly | freebsd => return "/bin/tcsh"; when netbsd => return "/bin/sh"; when linux => return "/bin/bash"; when solaris => return "TBD"; when unknown => return "DONTCARE"; end case; end interactive_shell; ----------------- -- load_core -- ----------------- function load_core (instant_load : Boolean) return Float is function probe_load return String; ----------------- 123456789-123456789-123456789- -- DFLY/FreeBSD: vm.loadavg: { 0.00 0.00 0.00 } -- NetBSD: vm.loadavg: 0.00 0.00 0.00 -- Linux: 0.00 0.01 0.05 3/382 15409 -- Solaris: [~42 chars]load average: 0.01, 0.01, 0.01 zero : constant Float := 0.0; lo : Integer; function probe_load return String is bsd : constant String := "/usr/bin/env LANG=C /sbin/sysctl vm.loadavg"; lin : constant String := "/bin/cat /proc/loadavg"; sol : constant String := "/usr/bin/uptime"; begin case platform_type is when dragonfly | freebsd => lo := 14; return JT.USS (internal_system_command (bsd)); when netbsd => lo := 12; return JT.USS (internal_system_command (bsd)); when linux => lo := 0; return JT.USS (internal_system_command (lin)); when solaris => return JT.USS (internal_system_command (sol)); when unknown => return ""; end case; end probe_load; comres : constant String := probe_load; begin case platform_type is when dragonfly | freebsd | netbsd | linux => declare stripped : constant String := comres (comres'First + lo .. comres'Last); begin if instant_load then return Float'Value (JT.specific_field (stripped, 1, " ")); else return Float'Value (JT.specific_field (stripped, 2, " ")); end if; end; when solaris => declare stripped : constant String := JT.part_2 (comres, "load average: "); begin if instant_load then return Float'Value (JT.specific_field (stripped, 1, ", ")); else return Float'Value (JT.specific_field (stripped, 2, ", ")); end if; end; when unknown => return zero; end case; exception when others => return zero; end load_core; ------------------------ -- get_instant_load -- ------------------------ function get_instant_load return Float is begin return load_core (instant_load => True); end get_instant_load; ------------------------- -- get_5_minute_load -- ------------------------- function get_5_minute_load return Float is begin return load_core (instant_load => False); end get_5_minute_load; ----------------------- -- get_number_cpus -- ----------------------- function get_number_cpus return Positive is -- Chicken/Egg issue. -- Platform type is not available. This function is called before -- The profile loading which requires the number of cpus as an argument. -- Therefore, we need two commands, the first being getting the OPSYS -- through the uname -s command. type opsys is (FreeFly, NetBSD, Linux, Solaris, Unsupported); uname : constant String := "/usr/bin/uname -s"; bsd_cmd : constant String := "/sbin/sysctl hw.ncpu"; lin_cmd : constant String := "/usr/bin/nproc"; sol_cmd : constant String := "/usr/sbin/psrinfo -pv"; thissys : opsys; comres : JT.Text; status : Integer; start : Positive; begin comres := Unix.piped_command (uname, status); if status /= 0 then return 1; end if; declare resstr : String := JT.USS (comres); opsys_str : String := resstr (resstr'First .. resstr'Last - 1); begin if opsys_str = "FreeBSD" then thissys := FreeFly; elsif opsys_str = "DragonFly" then thissys := FreeFly; elsif opsys_str = "NetBSD" then thissys := NetBSD; elsif opsys_str = "Linux" then thissys := Linux; elsif opsys_str = "SunOS" then thissys := Solaris; else thissys := Unsupported; end if; end; -- DF/Free: expected output: "hw.ncpu: C" where C is integer -- NetBSD: expected output: "hw.ncpu = C" -- Linux: expected output: "C" -- Solaris: expected output: -- The physical processor has 64 virtual processors (0-63) -- UltraSPARC-T2+ (cpuid 0 clock 1165 MHz) -- The physical processor has 64 virtual processors (64-127) -- UltraSPARC-T2+ (cpuid 64 clock 1165 MHz) case thissys is when FreeFly => start := 10; comres := Unix.piped_command (bsd_cmd, status); when NetBSD => start := 11; comres := Unix.piped_command (bsd_cmd, status); when Linux => start := 1; comres := Unix.piped_command (lin_cmd, status); when Solaris => start := 1; comres := Unix.piped_command (sol_cmd, status); -- garbage (incomplete). See src/parameters.adb#L686 off ravenadm for rest when Unsupported => return 1; end case; if status /= 0 then return 1; end if; declare resstr : String := JT.USS (comres); ncpu : String := resstr (start .. resstr'Last - 1); number : Positive := Integer'Value (ncpu); begin return number; exception when others => return 1; end; end get_number_cpus; ------------------------------ -- set_file_as_executable -- ------------------------------ procedure set_file_as_executable (fullpath : String) is -- supported by all platforms command : constant String := "/bin/chmod 755 " & fullpath; begin silent_exec (command); exception when others => null; end set_file_as_executable; ------------------------------- -- standalone_pkg8_install -- ------------------------------- function standalone_pkg8_install (id : builders) return Boolean is smount : constant String := get_slave_mount (id); taropt1 : constant String := "*/pkg-static"; taropt2 : constant String := "*/pkg-static */pkgng_admin"; command : constant String := chroot & smount & " /usr/bin/tar -x -f /packages/Latest/pkg.pkg -C / "; install_make : constant String := chroot & smount & " /usr/pkg/sbin/pkg-static add -A /packages/Latest/bmake.pkg"; begin case software_framework is when ports_collection => silent_exec (command & taropt1); when pkgsrc => silent_exec (command & taropt2); silent_exec (install_make); end case; return True; exception when others => return False; end standalone_pkg8_install; ------------------------------ -- host_pkgsrc_mk_install -- ------------------------------ function host_pkgsrc_mk_install (id : builders) return Boolean is smount : constant String := get_slave_mount (id); src_dir : constant String := host_localbase & "/share/mk"; tgt_dir : constant String := smount & root_localbase & "/share/mk"; begin return copy_directory_contents (src_dir, tgt_dir, "*.mk"); end host_pkgsrc_mk_install; --------------------------------- -- host_pkgsrc_bmake_install -- --------------------------------- function host_pkgsrc_bmake_install (id : builders) return Boolean is smount : constant String := get_slave_mount (id); host_bmake : constant String := host_localbase & "/bin/bmake"; slave_path : constant String := smount & root_localbase & "/bin"; slave_bmake : constant String := slave_path & "/bmake"; begin if not AD.Exists (host_bmake) then return False; end if; AD.Create_Path (slave_path); AD.Copy_File (Source_Name => host_bmake, Target_Name => slave_bmake); set_file_as_executable (slave_bmake); return True; exception when others => return False; end host_pkgsrc_bmake_install; ---------------------------------- -- host_pkgsrc_digest_install -- ---------------------------------- function host_pkgsrc_digest_install (id : builders) return Boolean is smount : String := get_slave_mount (id); host_digest : String := host_localbase & "/bin/digest"; slave_digest : String := smount & root_localbase & "/bin/digest"; begin if not AD.Exists (host_digest) then return False; end if; AD.Copy_File (Source_Name => host_digest, Target_Name => slave_digest); set_file_as_executable (slave_digest); return True; exception when others => return False; end host_pkgsrc_digest_install; -------------------------------- -- host_pkgsrc_pkg8_install -- -------------------------------- function host_pkgsrc_pkg8_install (id : builders) return Boolean is smount : constant String := get_slave_mount (id); host_pkgst : constant String := host_localbase & "/sbin/pkg-static"; host_admin : constant String := host_localbase & "/sbin/pkgng_admin"; slave_path : constant String := smount & root_localbase & "/sbin"; slave_pkg : constant String := slave_path & "/pkg-static"; slave_admin : constant String := slave_path & "/pkgng_admin"; begin if not AD.Exists (host_pkgst) or else not AD.Exists (host_admin) then return False; end if; AD.Create_Path (slave_path); AD.Copy_File (Source_Name => host_pkgst, Target_Name => slave_pkg); AD.Copy_File (Source_Name => host_admin, Target_Name => slave_admin); set_file_as_executable (slave_pkg); set_file_as_executable (slave_admin); return True; exception when others => return False; end host_pkgsrc_pkg8_install; ---------------------------- -- cache_port_variables -- ---------------------------- procedure cache_port_variables (path_to_mm : String) is function create_OSRELEASE (OSRELEASE : String) return String; procedure write_if_defined (varname, value : String); OSVER : constant String := get_osversion_from_param_header; ARCH : constant String := get_arch_from_bourne_shell; portsdir : constant String := JT.USS (PM.configuration.dir_portsdir); fullport : constant String := portsdir & "/ports-mgmt/pkg"; command : constant String := host_make & " __MAKE_CONF=/dev/null -C " & fullport & " USES=" & LAT.Quotation & "python compiler:features objc" & LAT.Quotation & " GNU_CONFIGURE=1 USE_JAVA=1 USE_LINUX=1" & " -VHAVE_COMPAT_IA32_KERN" & " -VCONFIGURE_MAX_CMD_LEN" & " -V_PERL5_FROM_BIN" & " -V_CCVERSION_921dbbb2" & " -V_CXXINTERNAL_acaad9ca" & " -V_OBJC_CCVERSION_921dbbb2" & " -VCC_OUTPUT_921dbbb2_58173849" & -- c89 " -VCC_OUTPUT_921dbbb2_9bdba57c" & -- c99 " -VCC_OUTPUT_921dbbb2_6a4fe7f5" & -- c11 " -VCC_OUTPUT_921dbbb2_6bcac02b" & -- gnu89 " -VCC_OUTPUT_921dbbb2_67d20829" & -- gnu99 " -VCC_OUTPUT_921dbbb2_bfa62e83" & -- gnu11 " -VCC_OUTPUT_921dbbb2_f0b4d593" & -- c++98 " -VCC_OUTPUT_921dbbb2_308abb44" & -- c++0x " -VCC_OUTPUT_921dbbb2_f00456e5" & -- c++11 " -VCC_OUTPUT_921dbbb2_65ad290d" & -- c++14 " -VCC_OUTPUT_921dbbb2_b2657cc3" & -- gnu++98 " -VCC_OUTPUT_921dbbb2_380987f7"; -- gnu++11 content : JT.Text; topline : JT.Text; status : Integer; vconf : TIO.File_Type; type result_range is range 1 .. 18; function create_OSRELEASE (OSRELEASE : String) return String is -- FreeBSD OSVERSION is 6 or 7 digits -- OSVERSION [M]MNNPPP -- DragonFly OSVERSION is 6 digits -- OSVERSION MNNNPP -- NetBSD OSVERSION is 9 or 10 digits -- OSVERSION [M]MNNrrPP00 len : constant Natural := OSRELEASE'Length; OSR : constant String (1 .. len) := OSRELEASE; MM : String (1 .. 2) := " "; NN : String (1 .. 2) := " "; PP : String (1 .. 2) := " "; FL : Natural; one_digit : Boolean := True; begin if len < 6 then return "1.0-SYNTH"; end if; case platform_type is when dragonfly => MM (2) := OSR (1); FL := 3; when freebsd => if len > 6 then one_digit := False; end if; FL := len - 4; when netbsd => if len > 9 then one_digit := False; end if; FL := len - 7; if OSR (FL + 4) = '0' then PP (2) := OSR (FL + 5); else PP := OSR (FL + 4 .. FL + 5); end if; when unknown => null; when linux | solaris => null; -- TBD end case; if one_digit then MM (2) := OSR (1); else MM := OSR (1 .. 2); end if; if OSR (FL) = '0' then NN (2) := OSR (FL + 1); else NN := OSR (FL .. FL + 1); end if; case software_framework is when ports_collection => return JT.trim (MM) & "." & JT.trim (NN) & "-SYNTH"; when pkgsrc => case platform_type is when netbsd => return JT.trim (MM) & "." & JT.trim (NN) & "." & JT.trim (PP); when others => return JT.trim (MM) & "." & JT.trim (NN); end case; end case; end create_OSRELEASE; procedure write_if_defined (varname, value : String) is begin if value /= "" then TIO.Put_Line (vconf, varname & "=" & value); end if; end write_if_defined; release : constant String := create_OSRELEASE (OSVER); begin builder_env := JT.blank; TIO.Create (File => vconf, Mode => TIO.Out_File, Name => path_to_mm & "/varcache.conf"); -- framework specific parts case software_framework is when ports_collection => content := Unix.piped_command (command, status); if status = 0 then for k in result_range loop JT.nextline (lineblock => content, firstline => topline); declare value : constant String := JT.USS (topline); begin case k is when 1 => TIO.Put_Line (vconf, "HAVE_COMPAT_IA32_KERN=" & value); when 2 => TIO.Put_Line (vconf, "CONFIGURE_MAX_CMD_LEN=" & value); when 3 => TIO.Put_Line (vconf, "_PERL5_FROM_BIN=" & value); when 4 => write_if_defined ("_CCVERSION_921dbbb2", value); when 5 => write_if_defined ("_CXXINTERNAL_acaad9ca", value); when 6 => write_if_defined ("_OBJC_CCVERSION_921dbbb2", value); when 7 => write_if_defined ("CC_OUTPUT_921dbbb2_58173849", value); when 8 => write_if_defined ("CC_OUTPUT_921dbbb2_9bdba57c", value); when 9 => write_if_defined ("CC_OUTPUT_921dbbb2_6a4fe7f5", value); when 10 => write_if_defined ("CC_OUTPUT_921dbbb2_6bcac02b", value); when 11 => write_if_defined ("CC_OUTPUT_921dbbb2_67d20829", value); when 12 => write_if_defined ("CC_OUTPUT_921dbbb2_bfa62e83", value); when 13 => write_if_defined ("CC_OUTPUT_921dbbb2_f0b4d593", value); when 14 => write_if_defined ("CC_OUTPUT_921dbbb2_308abb44", value); when 15 => write_if_defined ("CC_OUTPUT_921dbbb2_f00456e5", value); when 16 => write_if_defined ("CC_OUTPUT_921dbbb2_65ad290d", value); when 17 => write_if_defined ("CC_OUTPUT_921dbbb2_b2657cc3", value); when 18 => write_if_defined ("CC_OUTPUT_921dbbb2_380987f7", value); end case; end; end loop; end if; TIO.Put_Line (vconf, "_ALTCCVERSION_921dbbb2=none"); TIO.Put_Line (vconf, "_OBJC_ALTCCVERSION_921dbbb2=none"); TIO.Put_Line (vconf, "_SMP_CPUS=" & JT.int2str (Integer (smp_cores))); TIO.Put_Line (vconf, "UID=0"); TIO.Put_Line (vconf, "ARCH=" & ARCH); case platform_type is when freebsd => TIO.Put_Line (vconf, "OPSYS=FreeBSD"); TIO.Put_Line (vconf, "OSVERSION=" & OSVER); when dragonfly => TIO.Put_Line (vconf, "OPSYS=DragonFly"); TIO.Put_Line (vconf, "DFLYVERSION=" & OSVER); TIO.Put_Line (vconf, "OSVERSION=9999999"); when netbsd | linux | solaris => null; when unknown => null; end case; TIO.Put_Line (vconf, "OSREL=" & release (1 .. release'Last - 6)); TIO.Put_Line (vconf, "_OSRELEASE=" & release); TIO.Put_Line (vconf, "PYTHONBASE=/usr/local"); TIO.Put_Line (vconf, "_PKG_CHECKED=1"); when pkgsrc => TIO.Put_Line (vconf, "OS_VERSION= " & release); TIO.Put_Line (vconf, "HOST_MACHINE_ARCH= " & ARCH); case platform_type is when freebsd => TIO.Put_Line (vconf, "OPSYS= FreeBSD" & LAT.LF & "LOWER_OPSYS= freebsd" & LAT.LF & "MAKEFLAGS= OPSYS=FreeBSD"); when dragonfly => TIO.Put_Line (vconf, "OPSYS= DragonFly" & LAT.LF & "LOWER_OPSYS= dragonfly" & LAT.LF & "MAKEFLAGS= OPSYS=DragonFly"); when netbsd => TIO.Put_Line (vconf, "OPSYS= NetBSD" & LAT.LF & "LOWER_OPSYS= netbsd" & LAT.LF & "MAKEFLAGS= OPSYS=NetBSD"); when linux => TIO.Put_Line (vconf, "OPSYS= Linux" & LAT.LF & "LOWER_OPSYS= linux" & LAT.LF & "MAKEFLAGS= OPSYS=Linux"); when solaris => TIO.Put_Line (vconf, "OPSYS= SunOS" & LAT.LF & "LOWER_OPSYS= solaris" & LAT.LF & "MAKEFLAGS= OPSYS=SunOS"); when unknown => null; end case; TIO.Put_Line (vconf, "MAKEFLAGS+= OS_VERSION=" & release & LAT.LF & "MAKEFLAGS+= HOST_MACHINE_ARCH=" & ARCH & LAT.LF & "MAKEFLAGS+= _PKGSRCDIR=/xports"); end case; TIO.Close (vconf); case platform_type is when freebsd => JT.SU.Append (builder_env, "UNAME_s=FreeBSD " & "UNAME_v=FreeBSD\ " & release); when dragonfly => JT.SU.Append (builder_env, "UNAME_s=DragonFly " & "UNAME_v=DragonFly\ " & release); when netbsd => JT.SU.Append (builder_env, "UNAME_s=NetBSD " & "UNAME_v=NetBSD\ " & release); when linux => JT.SU.Append (builder_env, "UNAME_s=Linux " & "UNAME_v=Linux\ " & release); when solaris => JT.SU.Append (builder_env, "UNAME_s=SunOS " & "UNAME_v=SunOS\ " & release); when unknown => null; end case; -- The last entry of builder_env must be a blank space JT.SU.Append (builder_env, " UNAME_p=" & ARCH); JT.SU.Append (builder_env, " UNAME_m=" & ARCH); JT.SU.Append (builder_env, " UNAME_r=" & release & " "); end cache_port_variables; --------------------------------------- -- get_osversion_from_param_header -- --------------------------------------- function get_osversion_from_param_header return String is function get_pattern return String; function get_pattern return String is DFVER : constant String := "#define __DragonFly_version "; FBVER : constant String := "#define __FreeBSD_version "; NBVER : constant String := "#define" & LAT.HT & "__NetBSD_Version__" & LAT.HT; BADVER : constant String := "#define __Unknown_version "; begin case platform_type is when freebsd => return FBVER; when dragonfly => return DFVER; when netbsd => return NBVER; when linux => return BADVER; -- TBD when solaris => return BADVER; -- TBD when unknown => return BADVER; end case; end get_pattern; header : TIO.File_Type; badres : constant String := "100000"; pattern : constant String := get_pattern; paramh : constant String := JT.USS (PM.configuration.dir_system) & "/usr/include/sys/param.h"; begin TIO.Open (File => header, Mode => TIO.In_File, Name => paramh); while not TIO.End_Of_File (header) loop declare Line : constant String := TIO.Get_Line (header); begin if JT.contains (Line, pattern) then declare OSVER : constant String := JT.trim (JT.part_2 (Line, pattern)); len : constant Natural := OSVER'Length; final : Integer; begin exit when len < 7; TIO.Close (header); final := OSVER'First + 5; for x in final + 1 .. OSVER'Last loop case OSVER (x) is when '0' .. '9' => final := x; when others => return OSVER (OSVER'First .. final); end case; end loop; -- All characters from 5th position to end of OSVER are digits return OSVER; end; end if; end; end loop; TIO.Close (header); return badres; exception when others => if TIO.Is_Open (header) then TIO.Close (header); end if; return badres; end get_osversion_from_param_header; end Replicant.Platform;
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- S Y S T E M . P A C K _ 4 9 -- -- -- -- S p e c -- -- -- -- 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. -- -- -- ------------------------------------------------------------------------------ -- Handling of packed arrays with Component_Size = 49 package System.Pack_49 is pragma Preelaborate; Bits : constant := 49; type Bits_49 is mod 2 ** Bits; for Bits_49'Size use Bits; -- In all subprograms below, Rev_SSO is set True if the array has the -- non-default scalar storage order. function Get_49 (Arr : System.Address; N : Natural; Rev_SSO : Boolean) return Bits_49 with Inline; -- Arr is the address of the packed array, N is the zero-based -- subscript. This element is extracted and returned. procedure Set_49 (Arr : System.Address; N : Natural; E : Bits_49; Rev_SSO : Boolean) with Inline; -- Arr is the address of the packed array, N is the zero-based -- subscript. This element is set to the given value. end System.Pack_49;
-- This spec has been automatically generated from STM32F429x.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; with HAL; with System; package STM32_SVD.SYSCFG is pragma Preelaborate; --------------- -- Registers -- --------------- -------------------- -- MEMRM_Register -- -------------------- subtype MEMRM_MEM_MODE_Field is HAL.UInt3; subtype MEMRM_SWP_FMC_Field is HAL.UInt2; -- memory remap register type MEMRM_Register is record -- Memory mapping selection MEM_MODE : MEMRM_MEM_MODE_Field := 16#0#; -- unspecified Reserved_3_7 : HAL.UInt5 := 16#0#; -- Flash bank mode selection FB_MODE : Boolean := False; -- unspecified Reserved_9_9 : HAL.Bit := 16#0#; -- FMC memory mapping swap SWP_FMC : MEMRM_SWP_FMC_Field := 16#0#; -- unspecified Reserved_12_31 : HAL.UInt20 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for MEMRM_Register use record MEM_MODE at 0 range 0 .. 2; Reserved_3_7 at 0 range 3 .. 7; FB_MODE at 0 range 8 .. 8; Reserved_9_9 at 0 range 9 .. 9; SWP_FMC at 0 range 10 .. 11; Reserved_12_31 at 0 range 12 .. 31; end record; ------------------ -- PMC_Register -- ------------------ -- peripheral mode configuration register type PMC_Register is record -- unspecified Reserved_0_15 : HAL.Short := 16#0#; -- ADC1DC2 ADC1DC2 : Boolean := False; -- ADC2DC2 ADC2DC2 : Boolean := False; -- ADC3DC2 ADC3DC2 : Boolean := False; -- unspecified Reserved_19_22 : HAL.UInt4 := 16#0#; -- Ethernet PHY interface selection MII_RMII_SEL : Boolean := False; -- unspecified Reserved_24_31 : HAL.Byte := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for PMC_Register use record Reserved_0_15 at 0 range 0 .. 15; ADC1DC2 at 0 range 16 .. 16; ADC2DC2 at 0 range 17 .. 17; ADC3DC2 at 0 range 18 .. 18; Reserved_19_22 at 0 range 19 .. 22; MII_RMII_SEL at 0 range 23 .. 23; Reserved_24_31 at 0 range 24 .. 31; end record; ---------------------- -- EXTICR1_Register -- ---------------------- ------------------ -- EXTICR1.EXTI -- ------------------ -- EXTICR1_EXTI array element subtype EXTICR1_EXTI_Element is HAL.UInt4; -- EXTICR1_EXTI array type EXTICR1_EXTI_Field_Array is array (0 .. 3) of EXTICR1_EXTI_Element with Component_Size => 4, Size => 16; -- Type definition for EXTICR1_EXTI type EXTICR1_EXTI_Field (As_Array : Boolean := False) is record case As_Array is when False => -- EXTI as a value Val : HAL.Short; when True => -- EXTI as an array Arr : EXTICR1_EXTI_Field_Array; end case; end record with Unchecked_Union, Size => 16; for EXTICR1_EXTI_Field use record Val at 0 range 0 .. 15; Arr at 0 range 0 .. 15; end record; -- external interrupt configuration register 1 type EXTICR1_Register is record -- EXTI x configuration (x = 0 to 3) EXTI : EXTICR1_EXTI_Field := (As_Array => False, Val => 16#0#); -- unspecified Reserved_16_31 : HAL.Short := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for EXTICR1_Register use record EXTI at 0 range 0 .. 15; Reserved_16_31 at 0 range 16 .. 31; end record; ---------------------- -- EXTICR2_Register -- ---------------------- ------------------ -- EXTICR2.EXTI -- ------------------ -- EXTICR2_EXTI array element subtype EXTICR2_EXTI_Element is HAL.UInt4; -- EXTICR2_EXTI array type EXTICR2_EXTI_Field_Array is array (4 .. 7) of EXTICR2_EXTI_Element with Component_Size => 4, Size => 16; -- Type definition for EXTICR2_EXTI type EXTICR2_EXTI_Field (As_Array : Boolean := False) is record case As_Array is when False => -- EXTI as a value Val : HAL.Short; when True => -- EXTI as an array Arr : EXTICR2_EXTI_Field_Array; end case; end record with Unchecked_Union, Size => 16; for EXTICR2_EXTI_Field use record Val at 0 range 0 .. 15; Arr at 0 range 0 .. 15; end record; -- external interrupt configuration register 2 type EXTICR2_Register is record -- EXTI x configuration (x = 4 to 7) EXTI : EXTICR2_EXTI_Field := (As_Array => False, Val => 16#0#); -- unspecified Reserved_16_31 : HAL.Short := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for EXTICR2_Register use record EXTI at 0 range 0 .. 15; Reserved_16_31 at 0 range 16 .. 31; end record; ---------------------- -- EXTICR3_Register -- ---------------------- ------------------ -- EXTICR3.EXTI -- ------------------ -- EXTICR3_EXTI array element subtype EXTICR3_EXTI_Element is HAL.UInt4; -- EXTICR3_EXTI array type EXTICR3_EXTI_Field_Array is array (8 .. 11) of EXTICR3_EXTI_Element with Component_Size => 4, Size => 16; -- Type definition for EXTICR3_EXTI type EXTICR3_EXTI_Field (As_Array : Boolean := False) is record case As_Array is when False => -- EXTI as a value Val : HAL.Short; when True => -- EXTI as an array Arr : EXTICR3_EXTI_Field_Array; end case; end record with Unchecked_Union, Size => 16; for EXTICR3_EXTI_Field use record Val at 0 range 0 .. 15; Arr at 0 range 0 .. 15; end record; -- external interrupt configuration register 3 type EXTICR3_Register is record -- EXTI x configuration (x = 8 to 11) EXTI : EXTICR3_EXTI_Field := (As_Array => False, Val => 16#0#); -- unspecified Reserved_16_31 : HAL.Short := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for EXTICR3_Register use record EXTI at 0 range 0 .. 15; Reserved_16_31 at 0 range 16 .. 31; end record; ---------------------- -- EXTICR4_Register -- ---------------------- ------------------ -- EXTICR4.EXTI -- ------------------ -- EXTICR4_EXTI array element subtype EXTICR4_EXTI_Element is HAL.UInt4; -- EXTICR4_EXTI array type EXTICR4_EXTI_Field_Array is array (12 .. 15) of EXTICR4_EXTI_Element with Component_Size => 4, Size => 16; -- Type definition for EXTICR4_EXTI type EXTICR4_EXTI_Field (As_Array : Boolean := False) is record case As_Array is when False => -- EXTI as a value Val : HAL.Short; when True => -- EXTI as an array Arr : EXTICR4_EXTI_Field_Array; end case; end record with Unchecked_Union, Size => 16; for EXTICR4_EXTI_Field use record Val at 0 range 0 .. 15; Arr at 0 range 0 .. 15; end record; -- external interrupt configuration register 4 type EXTICR4_Register is record -- EXTI x configuration (x = 12 to 15) EXTI : EXTICR4_EXTI_Field := (As_Array => False, Val => 16#0#); -- unspecified Reserved_16_31 : HAL.Short := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for EXTICR4_Register use record EXTI at 0 range 0 .. 15; Reserved_16_31 at 0 range 16 .. 31; end record; -------------------- -- CMPCR_Register -- -------------------- -- Compensation cell control register type CMPCR_Register is record -- Read-only. Compensation cell power-down CMP_PD : Boolean; -- unspecified Reserved_1_7 : HAL.UInt7; -- Read-only. READY READY : Boolean; -- unspecified Reserved_9_31 : HAL.UInt23; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for CMPCR_Register use record CMP_PD at 0 range 0 .. 0; Reserved_1_7 at 0 range 1 .. 7; READY at 0 range 8 .. 8; Reserved_9_31 at 0 range 9 .. 31; end record; ----------------- -- Peripherals -- ----------------- -- System configuration controller type SYSCFG_Peripheral is record -- memory remap register MEMRM : MEMRM_Register; -- peripheral mode configuration register PMC : PMC_Register; -- external interrupt configuration register 1 EXTICR1 : EXTICR1_Register; -- external interrupt configuration register 2 EXTICR2 : EXTICR2_Register; -- external interrupt configuration register 3 EXTICR3 : EXTICR3_Register; -- external interrupt configuration register 4 EXTICR4 : EXTICR4_Register; -- Compensation cell control register CMPCR : CMPCR_Register; end record with Volatile; for SYSCFG_Peripheral use record MEMRM at 0 range 0 .. 31; PMC at 4 range 0 .. 31; EXTICR1 at 8 range 0 .. 31; EXTICR2 at 12 range 0 .. 31; EXTICR3 at 16 range 0 .. 31; EXTICR4 at 20 range 0 .. 31; CMPCR at 32 range 0 .. 31; end record; -- System configuration controller SYSCFG_Periph : aliased SYSCFG_Peripheral with Import, Address => SYSCFG_Base; end STM32_SVD.SYSCFG;
-- Motherlode -- Copyright (c) 2020 Fabien Chouteau with HAL; use HAL; with Pygamer; use Pygamer; with Pygamer.Screen; with Render; use Render; package body HUD is ---------------- -- Draw_Gauge -- ---------------- procedure Draw_Gauge (FB : in out HAL.UInt16_Array; Y : Natural; C : Character; Color : UInt16; Value, Max : Natural) is begin Draw_Char (FB, C, 0, Y); Draw_H_Line(FB, 9, Y + 1, Max + 1, Color); -- Top Draw_H_Line(FB, 9, Y + 6, Max + 1, Color); -- Bottom for H in Y + 2 .. Y + 5 loop Draw_H_Line(FB, 9, H, Value, Color); -- Content FB (9 + Max + 1 + H * Screen.Width) := Color; -- Right border of the box end loop; end Draw_Gauge; ---------- -- Draw -- ---------- procedure Draw (FB : in out Render.Frame_Buffer; Money, Fuel, Fuel_Max, Cargo, Cargo_Max : Natural; Depth, Cash_In : Integer) is Fuel_Color : constant UInt16 := RGB565 (204, 102, 0); Cargo_Color : constant UInt16 := RGB565 (0, 102, 204); begin Draw_Gauge (FB, 0, 'F', Fuel_Color, Fuel, Fuel_Max); Draw_Gauge (FB, 9, 'C', Cargo_Color, Cargo, Cargo_Max); if Cargo = Cargo_Max then Draw_String_Center (FB, "CARGO FULL", Screen.Width / 2, 90); end if; if Fuel = 0 then Draw_String_Center (FB, "LOW FUEL", Screen.Width / 2, 100); end if; declare Str : String := Money'Img; begin Str (Str'First) := '$'; Draw_String (FB, Str, Screen.Width - Str'Length * 8, 1); end; if Cash_In /= 0 then declare Str : String := Cash_In'Img; begin if Cash_In > 0 then Str (Str'First) := '+'; end if; Draw_String (FB, Str, Screen.Width - Str'Length * 8, 9); end; end if; declare Str : constant String := Depth'Img; begin Draw_String (FB, Str, Screen.Width - Str'Length * 8, Screen.Height - 9); end; end Draw; end HUD;
with Ada.Text_IO; use Ada.Text_IO; procedure Read_And_Write_File_Line_By_Line is Input, Output : File_Type; begin Open (File => Input, Mode => In_File, Name => "input.txt"); Create (File => Output, Mode => Out_File, Name => "output.txt"); loop declare Line : String := Get_Line (Input); begin -- You can process the contents of Line here. Put_Line (Output, Line); end; end loop; Close (Input); Close (Output); exception when End_Error => if Is_Open(Input) then Close (Input); end if; if Is_Open(Output) then Close (Output); end if; end Read_And_Write_File_Line_By_Line;
pragma License (Unrestricted); -- Ada 2005 with Ada.Iterator_Interfaces; with Ada.References; private with Ada.Containers.Copy_On_Write; private with Ada.Finalization; private with Ada.Streams; generic type Index_Type is range <>; type Element_Type is private; with function "=" (Left, Right : Element_Type) return Boolean is <>; package Ada.Containers.Vectors is pragma Preelaborate; pragma Remote_Types; subtype Extended_Index is Index_Type'Base range Index_Type'First - 1 .. Index_Type'Min (Index_Type'Base'Last - 1, Index_Type'Last) + 1; No_Index : constant Extended_Index := Extended_Index'First; type Vector is tagged private with -- Constant_Indexing => Constant_Reference, -- is overloaded -- Variable_Indexing => Reference, Constant_Indexing => Constant_Indexing, Variable_Indexing => Indexing, Default_Iterator => Iterate, Iterator_Element => Element_Type; pragma Preelaborable_Initialization (Vector); -- modified -- type Cursor is private; -- pragma Preelaborable_Initialization (Cursor); subtype Cursor is Extended_Index; -- modified -- Empty_Vector : constant Vector; function Empty_Vector return Vector; No_Element : Cursor renames No_Index; function Has_Element (Position : Cursor) return Boolean; package Vector_Iterator_Interfaces is new Iterator_Interfaces (Cursor, Has_Element); overriding function "=" (Left, Right : Vector) return Boolean; function To_Vector (Length : Count_Type) return Vector; function To_Vector (New_Item : Element_Type; Length : Count_Type) return Vector; -- extended generic type Element_Array is array (Index_Type range <>) of Element_Type; function Generic_Array_To_Vector (S : Element_Array) return Vector; function "&" (Left, Right : Vector) return Vector; function "&" (Left : Vector; Right : Element_Type) return Vector; function "&" (Left : Element_Type; Right : Vector) return Vector; function "&" (Left, Right : Element_Type) return Vector; function Capacity (Container : Vector) return Count_Type; procedure Reserve_Capacity ( Container : in out Vector; Capacity : Count_Type); function Length (Container : Vector) return Count_Type; procedure Set_Length (Container : in out Vector; Length : Count_Type); function Is_Empty (Container : Vector) return Boolean; procedure Clear (Container : in out Vector); -- modified function To_Cursor ( Container : Vector'Class; -- not primitive Index : Extended_Index) return Cursor; function To_Index (Position : Cursor) return Extended_Index renames "+"; -- modified function Element ( Container : Vector'Class; -- not primitive Index : Index_Type) return Element_Type; -- function Element (Position : Cursor) return Element_Type; -- procedure Replace_Element ( -- Container : in out Vector; -- Index : Index_Type; -- New_Item : Element_Type); procedure Replace_Element ( Container : in out Vector; Position : Cursor; New_Item : Element_Type); -- modified procedure Query_Element ( Container : Vector'Class; -- not primitive Index : Index_Type; Process : not null access procedure (Element : Element_Type)); -- procedure Query_Element ( -- Position : Cursor; -- Process : not null access procedure (Element : Element_Type)); -- procedure Update_Element ( -- Container : in out Vector; -- Index : Index_Type; -- Process : not null access procedure (Element : in out Element_Type)); -- modified procedure Update_Element ( Container : in out Vector'Class; -- not primitive Position : Cursor; Process : not null access procedure (Element : in out Element_Type)); type Constant_Reference_Type ( Element : not null access constant Element_Type) is private with Implicit_Dereference => Element; type Reference_Type (Element : not null access Element_Type) is private with Implicit_Dereference => Element; -- function Constant_Reference ( -- Container : aliased Vector; -- Index : Index_Type) -- return Constant_Reference_Type; -- function Reference (Container : aliased in out Vector; Index : Index_Type) -- return Reference_Type; function Constant_Reference (Container : aliased Vector; Position : Cursor) return Constant_Reference_Type; function Reference (Container : aliased in out Vector; Position : Cursor) return Reference_Type; procedure Assign (Target : in out Vector; Source : Vector); function Copy (Source : Vector; Capacity : Count_Type := 0) return Vector; procedure Move (Target : in out Vector; Source : in out Vector); -- procedure Insert ( -- Container : in out Vector; -- Before : Extended_Index; -- New_Item : Vector); procedure Insert ( Container : in out Vector; Before : Cursor; New_Item : Vector); procedure Insert ( Container : in out Vector; Before : Cursor; New_Item : Vector; Position : out Cursor); -- procedure Insert ( -- Container : in out Vector; -- Before : Extended_Index; -- New_Item : Element_Type; -- Count : Count_Type := 1); procedure Insert ( Container : in out Vector; Before : Cursor; New_Item : Element_Type; Count : Count_Type := 1); procedure Insert ( Container : in out Vector; Before : Cursor; New_Item : Element_Type; Position : out Cursor; Count : Count_Type := 1); -- procedure Insert ( -- Container : in out Vector; -- Before : Extended_Index; -- Count : Count_Type := 1); -- procedure Insert ( -- Container : in out Vector; -- Before : Cursor; -- Position : out Cursor; -- Count : Count_Type := 1); procedure Prepend (Container : in out Vector; New_Item : Vector); procedure Prepend ( Container : in out Vector; New_Item : Element_Type; Count : Count_Type := 1); procedure Append (Container : in out Vector; New_Item : Vector); procedure Append ( Container : in out Vector; New_Item : Element_Type; Count : Count_Type := 1); -- modified procedure Insert_Space ( Container : in out Vector'Class; -- not primitive Before : Extended_Index; Count : Count_Type := 1); procedure Insert_Space ( Container : in out Vector; Before : Cursor; Position : out Cursor; Count : Count_Type := 1); -- procedure Delete ( -- Container : in out Vector; -- Index : Extended_Index; -- Count : Count_Type := 1); procedure Delete ( Container : in out Vector; Position : in out Cursor; Count : Count_Type := 1); -- modified procedure Delete_First ( Container : in out Vector'Class; -- not primitive Count : Count_Type := 1); -- modified procedure Delete_Last ( Container : in out Vector'Class; -- not primitive Count : Count_Type := 1); procedure Reverse_Elements (Container : in out Vector); -- procedure Swap (Container : in out Vector; I, J : Index_Type); procedure Swap (Container : in out Vector; I, J : Cursor); -- modified function First_Index (Container : Vector'Class) -- not primitive return Index_Type; pragma Inline (First_Index); function First (Container : Vector) return Cursor; -- modified function First_Element (Container : Vector'Class) -- not primitive return Element_Type; -- modified function Last_Index (Container : Vector'Class) -- not primitive return Extended_Index; pragma Inline (Last_Index); function Last (Container : Vector) return Cursor; -- modified function Last_Element (Container : Vector'Class) -- not primitive return Element_Type; -- function Next (Position : Cursor) return Cursor; -- procedure Next (Position : in out Cursor); -- function Previous (Position : Cursor) return Cursor; -- procedure Previous (Position : in out Cursor); -- modified function Find_Index ( Container : Vector'Class; -- not primitive Item : Element_Type; Index : Index_Type := Index_Type'First) return Extended_Index; -- modified -- function Find ( -- Container : Vector; -- Item : Element_Type; -- Position : Cursor := No_Element) -- return Cursor; function Find ( Container : Vector; Item : Element_Type) return Cursor; function Find ( Container : Vector; Item : Element_Type; Position : Cursor) return Cursor; -- modified function Reverse_Find_Index ( Container : Vector'Class; -- not primitive Item : Element_Type; Index : Index_Type := Index_Type'Last) return Extended_Index; -- modified -- function Reverse_Find ( -- Container : Vector; -- Item : Element_Type; -- Position : Cursor := No_Element) -- return Cursor; function Reverse_Find ( Container : Vector; Item : Element_Type) return Cursor; function Reverse_Find ( Container : Vector; Item : Element_Type; Position : Cursor) return Cursor; function Contains (Container : Vector; Item : Element_Type) return Boolean; -- modified procedure Iterate ( Container : Vector'Class; -- not primitive Process : not null access procedure (Position : Cursor)); -- modified procedure Reverse_Iterate ( Container : Vector'Class; -- not primitive Process : not null access procedure (Position : Cursor)); -- modified function Iterate (Container : Vector'Class) -- not primitive return Vector_Iterator_Interfaces.Reversible_Iterator'Class; -- function Iterate (Container : Vector; Start : Cursor) -- return Vector_Iterator_Interfaces.Reversible_Iterator'Class; -- extended function Iterate (Container : Vector'Class; First, Last : Cursor) return Vector_Iterator_Interfaces.Reversible_Iterator'Class; -- extended from here -- Convenient way to direct access. type Element_Array is array (Index_Type range <>) of aliased Element_Type; package Slicing is new References.Generic_Slicing (Index_Type, Element_Type, Element_Array); function Constant_Reference (Container : aliased Vector) return Slicing.Constant_Reference_Type; function Reference (Container : aliased in out Vector) return Slicing.Reference_Type; -- to here generic with function "<" (Left, Right : Element_Type) return Boolean is <>; package Generic_Sorting is function Is_Sorted (Container : Vector) return Boolean; procedure Sort (Container : in out Vector); procedure Merge (Target : in out Vector; Source : in out Vector); end Generic_Sorting; -- diff (Equivalents) -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- non-overloaded subprograms function Constant_Indexing ( Container : aliased Vector'Class; Index : Index_Type) return Constant_Reference_Type; function Indexing ( Container : aliased in out Vector'Class; Index : Index_Type) return Reference_Type; pragma Inline (Constant_Indexing); pragma Inline (Indexing); private -- diff (Element_Access) -- diff (Element_Array) type Data (Capacity_Last : Extended_Index) is limited record Super : aliased Copy_On_Write.Data; Max_Length : aliased Count_Type; Items : aliased Element_Array (Index_Type'First .. Capacity_Last); end record; -- place Super at first for Data use record Super at 0 range 0 .. Copy_On_Write.Data_Size - 1; end record; type Data_Access is access all Data; type Vector is new Finalization.Controlled with record Super : aliased Copy_On_Write.Container; Length : Count_Type := 0; end record; overriding procedure Adjust (Object : in out Vector); overriding procedure Finalize (Object : in out Vector) renames Clear; type Constant_Reference_Type ( Element : not null access constant Element_Type) is null record; type Reference_Type (Element : not null access Element_Type) is null record; type Vector_Iterator is new Vector_Iterator_Interfaces.Reversible_Iterator with record First : Extended_Index; Last : Extended_Index; end record; overriding function First (Object : Vector_Iterator) return Cursor; overriding function Next (Object : Vector_Iterator; Position : Cursor) return Cursor; overriding function Last (Object : Vector_Iterator) return Cursor; overriding function Previous (Object : Vector_Iterator; Position : Cursor) return Cursor; package Streaming is procedure Read ( Stream : not null access Streams.Root_Stream_Type'Class; Item : out Vector); procedure Write ( Stream : not null access Streams.Root_Stream_Type'Class; Item : Vector); procedure Missing_Read ( Stream : access Streams.Root_Stream_Type'Class; Item : out Constant_Reference_Type) with Import, Convention => Ada, External_Name => "__drake_program_error"; procedure Missing_Write ( Stream : access Streams.Root_Stream_Type'Class; Item : Constant_Reference_Type) with Import, Convention => Ada, External_Name => "__drake_program_error"; procedure Missing_Read ( Stream : access Streams.Root_Stream_Type'Class; Item : out Reference_Type) with Import, Convention => Ada, External_Name => "__drake_program_error"; procedure Missing_Write ( Stream : access Streams.Root_Stream_Type'Class; Item : Reference_Type) with Import, Convention => Ada, External_Name => "__drake_program_error"; end Streaming; for Vector'Read use Streaming.Read; for Vector'Write use Streaming.Write; for Constant_Reference_Type'Read use Streaming.Missing_Read; for Constant_Reference_Type'Write use Streaming.Missing_Write; for Reference_Type'Read use Streaming.Missing_Read; for Reference_Type'Write use Streaming.Missing_Write; end Ada.Containers.Vectors;
-- Copyright 2004-2019 Free Software Foundation, Inc. -- -- This program is free software; you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation; either version 3 of the License, or -- (at your option) any later version. -- -- This program is distributed in the hope that it will be useful, -- but WITHOUT ANY WARRANTY; without even the implied warranty of -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -- GNU General Public License for more details. -- -- You should have received a copy of the GNU General Public License -- along with this program. If not, see <http://www.gnu.org/licenses/>. package body Bar is procedure Do_Nothing (E : Void_Star) is begin null; end Do_Nothing; end Bar;
-- -- 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 processor with spark_mode => on is procedure processor_init with convention => c, export => true, external_name => "processor_init", global => null, inline; end processor;
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- Web Framework -- -- -- -- Tools Component -- -- -- ------------------------------------------------------------------------------ -- -- -- Copyright © 2015, Vadim Godunko <vgodunko@gmail.com> -- -- All rights reserved. -- -- -- -- Redistribution and use in source and binary forms, with or without -- -- modification, are permitted provided that the following conditions -- -- are met: -- -- -- -- * Redistributions of source code must retain the above copyright -- -- notice, this list of conditions and the following disclaimer. -- -- -- -- * Redistributions in binary form must reproduce the above copyright -- -- notice, this list of conditions and the following disclaimer in the -- -- documentation and/or other materials provided with the distribution. -- -- -- -- * Neither the name of the Vadim Godunko, IE nor the names of its -- -- contributors may be used to endorse or promote products derived from -- -- this software without specific prior written permission. -- -- -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- -- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -- -- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -- -- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -- -- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED -- -- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -- -- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -- -- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -- -- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -- -- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- -- -- ------------------------------------------------------------------------------ -- $Revision$ $Date$ ------------------------------------------------------------------------------ with Asis; with Engines.Contexts; with League.Strings; package Properties.Statements.Return_Statement is function Code (Engine : access Engines.Contexts.Context; Element : Asis.Expression; Name : Engines.Text_Property) return League.Strings.Universal_String; function Bounds (Engine : access Engines.Contexts.Context; Element : Asis.Expression; Name : Engines.Text_Property) return League.Strings.Universal_String; end Properties.Statements.Return_Statement;
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- G N A T . A L T I V E C . V E C T O R _ T Y P E S -- -- -- -- S p e c -- -- -- -- Copyright (C) 2004-2009, Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 3, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. -- -- -- -- -- -- -- -- -- -- -- -- You should have received a copy of the GNU General Public License and -- -- a copy of the GCC Runtime Library Exception along with this program; -- -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see -- -- <http://www.gnu.org/licenses/>. -- -- -- -- GNAT was originally developed by the GNAT team at New York University. -- -- Extensive contributions were provided by Ada Core Technologies Inc. -- -- -- ------------------------------------------------------------------------------ -- This unit exposes the various vector types part of the Ada binding to -- Altivec facilities. with GNAT.Altivec.Low_Level_Vectors; package GNAT.Altivec.Vector_Types is use GNAT.Altivec.Low_Level_Vectors; --------------------------------------------------- -- Vector type declarations [PIM-2.1 Data Types] -- --------------------------------------------------- -- Except for assignments and pointer creation/dereference, operations -- on vectors are only performed via subprograms. The vector types are -- then private, and non-limited since assignments are allowed. -- The Hard/Soft binding type-structure differentiation is achieved in -- Low_Level_Vectors. Each version only exposes private vector types, that -- we just sub-type here. This is fine from the design standpoint and -- reduces the amount of explicit conversion required in various places -- internally. subtype vector_unsigned_char is Low_Level_Vectors.LL_VUC; subtype vector_signed_char is Low_Level_Vectors.LL_VSC; subtype vector_bool_char is Low_Level_Vectors.LL_VBC; subtype vector_unsigned_short is Low_Level_Vectors.LL_VUS; subtype vector_signed_short is Low_Level_Vectors.LL_VSS; subtype vector_bool_short is Low_Level_Vectors.LL_VBS; subtype vector_unsigned_int is Low_Level_Vectors.LL_VUI; subtype vector_signed_int is Low_Level_Vectors.LL_VSI; subtype vector_bool_int is Low_Level_Vectors.LL_VBI; subtype vector_float is Low_Level_Vectors.LL_VF; subtype vector_pixel is Low_Level_Vectors.LL_VP; -- [PIM-2.1] shows groups of declarations with exact same component types, -- e.g. vector unsigned short together with vector unsigned short int. It -- so appears tempting to define subtypes for those matches here. -- -- [PIM-2.1] does not qualify items in those groups as "the same types", -- though, and [PIM-2.4.2 Assignments] reads: "if either the left hand -- side or the right hand side of an expression has a vector type, then -- both sides of the expression must be of the same vector type". -- -- Not so clear what is exactly right, then. We go with subtypes for now -- and can adjust later if need be. subtype vector_unsigned_short_int is vector_unsigned_short; subtype vector_signed_short_int is vector_signed_short; subtype vector_char is vector_signed_char; subtype vector_short is vector_signed_short; subtype vector_int is vector_signed_int; -------------------------------- -- Corresponding access types -- -------------------------------- type vector_unsigned_char_ptr is access all vector_unsigned_char; type vector_signed_char_ptr is access all vector_signed_char; type vector_bool_char_ptr is access all vector_bool_char; type vector_unsigned_short_ptr is access all vector_unsigned_short; type vector_signed_short_ptr is access all vector_signed_short; type vector_bool_short_ptr is access all vector_bool_short; type vector_unsigned_int_ptr is access all vector_unsigned_int; type vector_signed_int_ptr is access all vector_signed_int; type vector_bool_int_ptr is access all vector_bool_int; type vector_float_ptr is access all vector_float; type vector_pixel_ptr is access all vector_pixel; -------------------------------------------------------------------- -- Additional access types, for the sake of some argument passing -- -------------------------------------------------------------------- -- ... because some of the operations expect pointers to possibly -- constant objects. type const_vector_bool_char_ptr is access constant vector_bool_char; type const_vector_signed_char_ptr is access constant vector_signed_char; type const_vector_unsigned_char_ptr is access constant vector_unsigned_char; type const_vector_bool_short_ptr is access constant vector_bool_short; type const_vector_signed_short_ptr is access constant vector_signed_short; type const_vector_unsigned_short_ptr is access constant vector_unsigned_short; type const_vector_bool_int_ptr is access constant vector_bool_int; type const_vector_signed_int_ptr is access constant vector_signed_int; type const_vector_unsigned_int_ptr is access constant vector_unsigned_int; type const_vector_float_ptr is access constant vector_float; type const_vector_pixel_ptr is access constant vector_pixel; ---------------------- -- Useful shortcuts -- ---------------------- subtype VUC is vector_unsigned_char; subtype VSC is vector_signed_char; subtype VBC is vector_bool_char; subtype VUS is vector_unsigned_short; subtype VSS is vector_signed_short; subtype VBS is vector_bool_short; subtype VUI is vector_unsigned_int; subtype VSI is vector_signed_int; subtype VBI is vector_bool_int; subtype VP is vector_pixel; subtype VF is vector_float; end GNAT.Altivec.Vector_Types;