hexsha
stringlengths
40
40
size
int64
3
1.05M
ext
stringclasses
163 values
lang
stringclasses
53 values
max_stars_repo_path
stringlengths
3
945
max_stars_repo_name
stringlengths
4
112
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
sequencelengths
1
10
max_stars_count
float64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
945
max_issues_repo_name
stringlengths
4
113
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
sequencelengths
1
10
max_issues_count
float64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
945
max_forks_repo_name
stringlengths
4
113
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
sequencelengths
1
10
max_forks_count
float64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
3
1.05M
avg_line_length
float64
1
966k
max_line_length
int64
1
977k
alphanum_fraction
float64
0
1
fb974e4e9d2dad8caffaaeb1f0a1827bbc03bde1
8,608
ads
Ada
llvm-gcc-4.2-2.9/gcc/ada/stringt.ads
vidkidz/crossbridge
ba0bf94aee0ce6cf7eb5be882382e52bc57ba396
[ "MIT" ]
1
2016-04-09T02:58:13.000Z
2016-04-09T02:58:13.000Z
llvm-gcc-4.2-2.9/gcc/ada/stringt.ads
vidkidz/crossbridge
ba0bf94aee0ce6cf7eb5be882382e52bc57ba396
[ "MIT" ]
null
null
null
llvm-gcc-4.2-2.9/gcc/ada/stringt.ads
vidkidz/crossbridge
ba0bf94aee0ce6cf7eb5be882382e52bc57ba396
[ "MIT" ]
null
null
null
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- S T R I N G 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. -- -- -- -- 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; use System; with Types; use Types; package Stringt is -- This package contains routines for handling the strings table which is -- used to store string constants encountered in the source, and also those -- additional string constants generated by compile time concatenation and -- other similar processing. -- A string constant in this table consists of a series of Char_Code values, -- so that 16-bit character codes can be properly handled if this feature -- is implemented in the scanner. -- There is no guarantee that hashing is used in the implementation, although -- it maybe. This means that the caller cannot count on having the same Id -- value for two identical strings stored separately and also cannot count on -- the two Id values being different. -------------------------------------- -- String Table Access Subprograms -- -------------------------------------- procedure Initialize; -- Initializes the strings table for a new compilation. Note that -- Initialize must not be called if Tree_Read is used. procedure Lock; -- Lock internal tables before calling back end procedure Unlock; -- Unlock internal tables, in case back end needs to modify them procedure Start_String; -- Sets up for storing a new string in the table. To store a string, a -- call is first made to Start_String, then successive calls are -- made to Store_String_Character to store the characters of the string. -- Finally, a call to End_String terminates the entry and returns it Id. procedure Start_String (S : String_Id); -- Like Start_String with no parameter, except that the contents of the -- new string is initialized to be a copy of the given string. A test is -- made to see if S is the last created string, and if so it is shared, -- rather than copied, this can be particularly helpful for the case of -- a continued concatenaion of string constants. procedure Store_String_Char (C : Char_Code); procedure Store_String_Char (C : Character); -- Store next character of string, see description above for Start_String procedure Store_String_Chars (S : String); procedure Store_String_Chars (S : String_Id); -- Store character codes of given string in sequence procedure Store_String_Int (N : Int); -- Stored decimal representation of integer with possible leading minus procedure Unstore_String_Char; -- Undoes effect of previous Store_String_Char call, used in some error -- situations of unterminated string constants. function End_String return String_Id; -- Terminates current string and returns its Id function String_Length (Id : String_Id) return Nat; -- Returns length of previously stored string function Get_String_Char (Id : String_Id; Index : Int) return Char_Code; pragma Inline (Get_String_Char); -- Obtains the specified character from a stored string. The lower bound -- of stored strings is always 1, so the range is 1 .. String_Length (Id). function String_Equal (L, R : String_Id) return Boolean; -- Determines if two string literals represent the same string procedure String_To_Name_Buffer (S : String_Id); -- Place characters of given string in Name_Buffer, setting Name_Len. -- Error if any characters are out of Character range. Does not attempt -- to do any encoding of any characters. procedure Add_String_To_Name_Buffer (S : String_Id); -- Append characters of given string to Name_Buffer, updating Name_Len. -- Error if any characters are out of Character range. Does not attempt -- to do any encoding of any characters. function String_Chars_Address return System.Address; -- Return address of String_Chars table (used by Back_End call to Gigi) function String_From_Name_Buffer return String_Id; -- Given a name stored in Namet.Name_Buffer (length in Namet.Name_Len), -- returns a string of the corresponding value. The value in Name_Buffer -- is unchanged, and the cases of letters are unchanged. function Strings_Address return System.Address; -- Return address of Strings table (used by Back_End call to Gigi) procedure Tree_Read; -- Initializes internal tables from current tree file using the relevant -- Table.Tree_Read routines. Note that Initialize should not be called if -- Tree_Read is used. Tree_Read includes all necessary initialization. procedure Tree_Write; -- Writes out internal tables to current tree file using the relevant -- Table.Tree_Write routines. procedure Write_Char_Code (Code : Char_Code); -- Procedure to write a character code value, used for debugging purposes -- for writing character codes. If the character code is in the range -- 16#20# .. 16#7E#, then the single graphic character corresponding to -- the code is output. For any other codes in the range 16#00# .. 16#FF#, -- the code is output as ["hh"] where hh is the two digit hex value for -- the code. Codes greater than 16#FF# are output as ["hhhh"] where hhhh -- is the four digit hex representation of the code value (high order -- byte first). Hex letters are always in lower case. procedure Write_String_Table_Entry (Id : String_Id); -- Writes a string value with enclosing quotes to the current file using -- routines in package Output. Does not write an end of line character. -- This procedure is used for debug output purposes, and also for output -- of strings specified by pragma Linker Option to the ali file. 7-bit -- ASCII graphics (except for double quote) are output literally. -- The double quote appears as two successive double quotes. -- All other codes, are output as described for Write_Char_Code. For -- example, the string created by folding "A" & ASCII.HT & "Hello" will -- print as "A["09"]Hello". A No_String value prints simply as "no string" -- without surrounding quote marks. private pragma Inline (End_String); pragma Inline (String_Length); end Stringt;
51.855422
78
0.631506
4d8ed16effb3df0712a4c786f517708202ed14fa
66,195
ads
Ada
src/emojis.ads
onox/emojis
f3518c6c89dcea72df2c72f1e4bad5a41b9a48a3
[ "Apache-2.0" ]
7
2021-09-15T15:16:59.000Z
2021-09-29T13:49:13.000Z
src/emojis.ads
onox/emojis
f3518c6c89dcea72df2c72f1e4bad5a41b9a48a3
[ "Apache-2.0" ]
null
null
null
src/emojis.ads
onox/emojis
f3518c6c89dcea72df2c72f1e4bad5a41b9a48a3
[ "Apache-2.0" ]
null
null
null
-- SPDX-License-Identifier: Apache-2.0 -- -- Copyright (c) 2021 onox <[email protected]> -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law or agreed to in writing, software -- distributed under the License is distributed on an "AS IS" BASIS, -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -- See the License for the specific language governing permissions and -- limitations under the License. with Ada.Strings.Unbounded; with Strings; package Emojis is subtype String_List is Strings.String_List; subtype Completion_Mappings is String_List; ---------------------------------------------------------------------------- package SU renames Ada.Strings.Unbounded; function "+" (Value : String) return SU.Unbounded_String renames SU.To_Unbounded_String; function "+" (Value : SU.Unbounded_String) return String renames SU.To_String; type Text_Label_Pair is record Text, Label : SU.Unbounded_String; end record; type Label_Mappings is array (Positive range <>) of Text_Label_Pair; Text_Emojis : constant Label_Mappings := ((+":)", +"slightly_smiling_face"), (+";)", +"wink"), (+":D", +"grinning"), (+":'D", +"sweat_smile"), (+":')", +"sweat_smile"), (+":"")", +"joy"), (+"XD", +"laughing"), (+"X'D", +"rolling_on_the_floor_laughing"), (+":o", +"open_mouth"), (+":O", +"open_mouth"), (+">:(", +"angry"), (+":(", +"slightly_frowning_face"), (+"-_-", +"unamused"), (+":'(", +"cry"), (+":""(", +"sob"), (+":p", +"stuck_out_tongue"), (+":P", +"stuck_out_tongue"), (+";p", +"stuck_out_tongue_winking_eye"), (+";P", +"stuck_out_tongue_winking_eye"), (+"B)", +"sunglasses"), (+":+)", +"clown_face"), (+":(=", +"hot_face"), (+"o_O", +"face_with_raised_eyebrow"), (+"O_o", +"face_with_raised_eyebrow"), (+"XO=", +"face_vomiting"), (+"<3", +"orange_heart")); Lower_Case_Text_Emojis : constant Completion_Mappings := (+":o", +":p", +"XD"); ---------------------------------------------------------------------------- function Labels return String_List; function Replace (Text : String; Mappings : Label_Mappings := Text_Emojis; Completions : Completion_Mappings := (1 .. 0 => <>)) return String; private type Text_1_Points_Pair is record Text : SU.Unbounded_String; Point_1 : Long_Integer; end record; type Text_2_Points_Pair is record Text : SU.Unbounded_String; Point_1 : Long_Integer; Point_2 : Long_Integer; end record; type Text_3_Points_Pair is record Text : SU.Unbounded_String; Point_1 : Long_Integer; Point_2 : Long_Integer; Point_3 : Long_Integer; end record; Name_Emojis_3 : constant array (Positive range <>) of Text_3_Points_Pair := ((+"hash", 16#0023#, 16#FE0F#, 16#20E3#), (+"keycap_star", 16#002A#, 16#FE0F#, 16#20E3#), (+"zero", 16#0030#, 16#FE0F#, 16#20E3#), (+"one", 16#0031#, 16#FE0F#, 16#20E3#), (+"two", 16#0032#, 16#FE0F#, 16#20E3#), (+"three", 16#0033#, 16#FE0F#, 16#20E3#), (+"four", 16#0034#, 16#FE0F#, 16#20E3#), (+"five", 16#0035#, 16#FE0F#, 16#20E3#), (+"six", 16#0036#, 16#FE0F#, 16#20E3#), (+"seven", 16#0037#, 16#FE0F#, 16#20E3#), (+"eight", 16#0038#, 16#FE0F#, 16#20E3#), (+"nine", 16#0039#, 16#FE0F#, 16#20E3#), (+"black_cat", 16#1F408#, 16#200D#, 16#2B1B#), (+"service_dog", 16#1F415#, 16#200D#, 16#1F9BA#), (+"male-farmer", 16#1F468#, 16#200D#, 16#1F33E#), (+"male-cook", 16#1F468#, 16#200D#, 16#1F373#), (+"man_feeding_baby", 16#1F468#, 16#200D#, 16#1F37C#), (+"male-student", 16#1F468#, 16#200D#, 16#1F393#), (+"male-singer", 16#1F468#, 16#200D#, 16#1F3A4#), (+"male-artist", 16#1F468#, 16#200D#, 16#1F3A8#), (+"male-teacher", 16#1F468#, 16#200D#, 16#1F3EB#), (+"male-factory-worker", 16#1F468#, 16#200D#, 16#1F3ED#), (+"man-boy", 16#1F468#, 16#200D#, 16#1F466#), (+"man-girl", 16#1F468#, 16#200D#, 16#1F467#), (+"male-technologist", 16#1F468#, 16#200D#, 16#1F4BB#), (+"male-office-worker", 16#1F468#, 16#200D#, 16#1F4BC#), (+"male-mechanic", 16#1F468#, 16#200D#, 16#1F527#), (+"male-scientist", 16#1F468#, 16#200D#, 16#1F52C#), (+"male-astronaut", 16#1F468#, 16#200D#, 16#1F680#), (+"male-firefighter", 16#1F468#, 16#200D#, 16#1F692#), (+"man_with_probing_cane", 16#1F468#, 16#200D#, 16#1F9AF#), (+"red_haired_man", 16#1F468#, 16#200D#, 16#1F9B0#), (+"curly_haired_man", 16#1F468#, 16#200D#, 16#1F9B1#), (+"bald_man", 16#1F468#, 16#200D#, 16#1F9B2#), (+"white_haired_man", 16#1F468#, 16#200D#, 16#1F9B3#), (+"man_in_motorized_wheelchair", 16#1F468#, 16#200D#, 16#1F9BC#), (+"man_in_manual_wheelchair", 16#1F468#, 16#200D#, 16#1F9BD#), (+"female-farmer", 16#1F469#, 16#200D#, 16#1F33E#), (+"female-cook", 16#1F469#, 16#200D#, 16#1F373#), (+"woman_feeding_baby", 16#1F469#, 16#200D#, 16#1F37C#), (+"female-student", 16#1F469#, 16#200D#, 16#1F393#), (+"female-singer", 16#1F469#, 16#200D#, 16#1F3A4#), (+"female-artist", 16#1F469#, 16#200D#, 16#1F3A8#), (+"female-teacher", 16#1F469#, 16#200D#, 16#1F3EB#), (+"female-factory-worker", 16#1F469#, 16#200D#, 16#1F3ED#), (+"woman-boy", 16#1F469#, 16#200D#, 16#1F466#), (+"woman-girl", 16#1F469#, 16#200D#, 16#1F467#), (+"female-technologist", 16#1F469#, 16#200D#, 16#1F4BB#), (+"female-office-worker", 16#1F469#, 16#200D#, 16#1F4BC#), (+"female-mechanic", 16#1F469#, 16#200D#, 16#1F527#), (+"female-scientist", 16#1F469#, 16#200D#, 16#1F52C#), (+"female-astronaut", 16#1F469#, 16#200D#, 16#1F680#), (+"female-firefighter", 16#1F469#, 16#200D#, 16#1F692#), (+"woman_with_probing_cane", 16#1F469#, 16#200D#, 16#1F9AF#), (+"red_haired_woman", 16#1F469#, 16#200D#, 16#1F9B0#), (+"curly_haired_woman", 16#1F469#, 16#200D#, 16#1F9B1#), (+"bald_woman", 16#1F469#, 16#200D#, 16#1F9B2#), (+"white_haired_woman", 16#1F469#, 16#200D#, 16#1F9B3#), (+"woman_in_motorized_wheelchair", 16#1F469#, 16#200D#, 16#1F9BC#), (+"woman_in_manual_wheelchair", 16#1F469#, 16#200D#, 16#1F9BD#), (+"face_exhaling", 16#1F62E#, 16#200D#, 16#1F4A8#), (+"face_with_spiral_eyes", 16#1F635#, 16#200D#, 16#1F4AB#), (+"farmer", 16#1F9D1#, 16#200D#, 16#1F33E#), (+"cook", 16#1F9D1#, 16#200D#, 16#1F373#), (+"person_feeding_baby", 16#1F9D1#, 16#200D#, 16#1F37C#), (+"mx_claus", 16#1F9D1#, 16#200D#, 16#1F384#), (+"student", 16#1F9D1#, 16#200D#, 16#1F393#), (+"singer", 16#1F9D1#, 16#200D#, 16#1F3A4#), (+"artist", 16#1F9D1#, 16#200D#, 16#1F3A8#), (+"teacher", 16#1F9D1#, 16#200D#, 16#1F3EB#), (+"factory_worker", 16#1F9D1#, 16#200D#, 16#1F3ED#), (+"technologist", 16#1F9D1#, 16#200D#, 16#1F4BB#), (+"office_worker", 16#1F9D1#, 16#200D#, 16#1F4BC#), (+"mechanic", 16#1F9D1#, 16#200D#, 16#1F527#), (+"scientist", 16#1F9D1#, 16#200D#, 16#1F52C#), (+"astronaut", 16#1F9D1#, 16#200D#, 16#1F680#), (+"firefighter", 16#1F9D1#, 16#200D#, 16#1F692#), (+"person_with_probing_cane", 16#1F9D1#, 16#200D#, 16#1F9AF#), (+"red_haired_person", 16#1F9D1#, 16#200D#, 16#1F9B0#), (+"curly_haired_person", 16#1F9D1#, 16#200D#, 16#1F9B1#), (+"bald_person", 16#1F9D1#, 16#200D#, 16#1F9B2#), (+"white_haired_person", 16#1F9D1#, 16#200D#, 16#1F9B3#), (+"person_in_motorized_wheelchair", 16#1F9D1#, 16#200D#, 16#1F9BC#), (+"person_in_manual_wheelchair", 16#1F9D1#, 16#200D#, 16#1F9BD#)); Name_Emojis_2 : constant array (Positive range <>) of Text_2_Points_Pair := ((+"copyright", 16#00A9#, 16#FE0F#), (+"registered", 16#00AE#, 16#FE0F#), (+"a", 16#1F170#, 16#FE0F#), (+"b", 16#1F171#, 16#FE0F#), (+"o2", 16#1F17E#, 16#FE0F#), (+"parking", 16#1F17F#, 16#FE0F#), (+"flag-ac", 16#1F1E6#, 16#1F1E8#), (+"flag-ad", 16#1F1E6#, 16#1F1E9#), (+"flag-ae", 16#1F1E6#, 16#1F1EA#), (+"flag-af", 16#1F1E6#, 16#1F1EB#), (+"flag-ag", 16#1F1E6#, 16#1F1EC#), (+"flag-ai", 16#1F1E6#, 16#1F1EE#), (+"flag-al", 16#1F1E6#, 16#1F1F1#), (+"flag-am", 16#1F1E6#, 16#1F1F2#), (+"flag-ao", 16#1F1E6#, 16#1F1F4#), (+"flag-aq", 16#1F1E6#, 16#1F1F6#), (+"flag-ar", 16#1F1E6#, 16#1F1F7#), (+"flag-as", 16#1F1E6#, 16#1F1F8#), (+"flag-at", 16#1F1E6#, 16#1F1F9#), (+"flag-au", 16#1F1E6#, 16#1F1FA#), (+"flag-aw", 16#1F1E6#, 16#1F1FC#), (+"flag-ax", 16#1F1E6#, 16#1F1FD#), (+"flag-az", 16#1F1E6#, 16#1F1FF#), (+"flag-ba", 16#1F1E7#, 16#1F1E6#), (+"flag-bb", 16#1F1E7#, 16#1F1E7#), (+"flag-bd", 16#1F1E7#, 16#1F1E9#), (+"flag-be", 16#1F1E7#, 16#1F1EA#), (+"flag-bf", 16#1F1E7#, 16#1F1EB#), (+"flag-bg", 16#1F1E7#, 16#1F1EC#), (+"flag-bh", 16#1F1E7#, 16#1F1ED#), (+"flag-bi", 16#1F1E7#, 16#1F1EE#), (+"flag-bj", 16#1F1E7#, 16#1F1EF#), (+"flag-bl", 16#1F1E7#, 16#1F1F1#), (+"flag-bm", 16#1F1E7#, 16#1F1F2#), (+"flag-bn", 16#1F1E7#, 16#1F1F3#), (+"flag-bo", 16#1F1E7#, 16#1F1F4#), (+"flag-bq", 16#1F1E7#, 16#1F1F6#), (+"flag-br", 16#1F1E7#, 16#1F1F7#), (+"flag-bs", 16#1F1E7#, 16#1F1F8#), (+"flag-bt", 16#1F1E7#, 16#1F1F9#), (+"flag-bv", 16#1F1E7#, 16#1F1FB#), (+"flag-bw", 16#1F1E7#, 16#1F1FC#), (+"flag-by", 16#1F1E7#, 16#1F1FE#), (+"flag-bz", 16#1F1E7#, 16#1F1FF#), (+"flag-ca", 16#1F1E8#, 16#1F1E6#), (+"flag-cc", 16#1F1E8#, 16#1F1E8#), (+"flag-cd", 16#1F1E8#, 16#1F1E9#), (+"flag-cf", 16#1F1E8#, 16#1F1EB#), (+"flag-cg", 16#1F1E8#, 16#1F1EC#), (+"flag-ch", 16#1F1E8#, 16#1F1ED#), (+"flag-ci", 16#1F1E8#, 16#1F1EE#), (+"flag-ck", 16#1F1E8#, 16#1F1F0#), (+"flag-cl", 16#1F1E8#, 16#1F1F1#), (+"flag-cm", 16#1F1E8#, 16#1F1F2#), (+"flag-cn", 16#1F1E8#, 16#1F1F3#), (+"flag-co", 16#1F1E8#, 16#1F1F4#), (+"flag-cp", 16#1F1E8#, 16#1F1F5#), (+"flag-cr", 16#1F1E8#, 16#1F1F7#), (+"flag-cu", 16#1F1E8#, 16#1F1FA#), (+"flag-cv", 16#1F1E8#, 16#1F1FB#), (+"flag-cw", 16#1F1E8#, 16#1F1FC#), (+"flag-cx", 16#1F1E8#, 16#1F1FD#), (+"flag-cy", 16#1F1E8#, 16#1F1FE#), (+"flag-cz", 16#1F1E8#, 16#1F1FF#), (+"flag-de", 16#1F1E9#, 16#1F1EA#), (+"flag-dg", 16#1F1E9#, 16#1F1EC#), (+"flag-dj", 16#1F1E9#, 16#1F1EF#), (+"flag-dk", 16#1F1E9#, 16#1F1F0#), (+"flag-dm", 16#1F1E9#, 16#1F1F2#), (+"flag-do", 16#1F1E9#, 16#1F1F4#), (+"flag-dz", 16#1F1E9#, 16#1F1FF#), (+"flag-ea", 16#1F1EA#, 16#1F1E6#), (+"flag-ec", 16#1F1EA#, 16#1F1E8#), (+"flag-ee", 16#1F1EA#, 16#1F1EA#), (+"flag-eg", 16#1F1EA#, 16#1F1EC#), (+"flag-eh", 16#1F1EA#, 16#1F1ED#), (+"flag-er", 16#1F1EA#, 16#1F1F7#), (+"flag-es", 16#1F1EA#, 16#1F1F8#), (+"flag-et", 16#1F1EA#, 16#1F1F9#), (+"flag-eu", 16#1F1EA#, 16#1F1FA#), (+"flag-fi", 16#1F1EB#, 16#1F1EE#), (+"flag-fj", 16#1F1EB#, 16#1F1EF#), (+"flag-fk", 16#1F1EB#, 16#1F1F0#), (+"flag-fm", 16#1F1EB#, 16#1F1F2#), (+"flag-fo", 16#1F1EB#, 16#1F1F4#), (+"flag-fr", 16#1F1EB#, 16#1F1F7#), (+"flag-ga", 16#1F1EC#, 16#1F1E6#), (+"flag-gb", 16#1F1EC#, 16#1F1E7#), (+"flag-gd", 16#1F1EC#, 16#1F1E9#), (+"flag-ge", 16#1F1EC#, 16#1F1EA#), (+"flag-gf", 16#1F1EC#, 16#1F1EB#), (+"flag-gg", 16#1F1EC#, 16#1F1EC#), (+"flag-gh", 16#1F1EC#, 16#1F1ED#), (+"flag-gi", 16#1F1EC#, 16#1F1EE#), (+"flag-gl", 16#1F1EC#, 16#1F1F1#), (+"flag-gm", 16#1F1EC#, 16#1F1F2#), (+"flag-gn", 16#1F1EC#, 16#1F1F3#), (+"flag-gp", 16#1F1EC#, 16#1F1F5#), (+"flag-gq", 16#1F1EC#, 16#1F1F6#), (+"flag-gr", 16#1F1EC#, 16#1F1F7#), (+"flag-gs", 16#1F1EC#, 16#1F1F8#), (+"flag-gt", 16#1F1EC#, 16#1F1F9#), (+"flag-gu", 16#1F1EC#, 16#1F1FA#), (+"flag-gw", 16#1F1EC#, 16#1F1FC#), (+"flag-gy", 16#1F1EC#, 16#1F1FE#), (+"flag-hk", 16#1F1ED#, 16#1F1F0#), (+"flag-hm", 16#1F1ED#, 16#1F1F2#), (+"flag-hn", 16#1F1ED#, 16#1F1F3#), (+"flag-hr", 16#1F1ED#, 16#1F1F7#), (+"flag-ht", 16#1F1ED#, 16#1F1F9#), (+"flag-hu", 16#1F1ED#, 16#1F1FA#), (+"flag-ic", 16#1F1EE#, 16#1F1E8#), (+"flag-id", 16#1F1EE#, 16#1F1E9#), (+"flag-ie", 16#1F1EE#, 16#1F1EA#), (+"flag-il", 16#1F1EE#, 16#1F1F1#), (+"flag-im", 16#1F1EE#, 16#1F1F2#), (+"flag-in", 16#1F1EE#, 16#1F1F3#), (+"flag-io", 16#1F1EE#, 16#1F1F4#), (+"flag-iq", 16#1F1EE#, 16#1F1F6#), (+"flag-ir", 16#1F1EE#, 16#1F1F7#), (+"flag-is", 16#1F1EE#, 16#1F1F8#), (+"flag-it", 16#1F1EE#, 16#1F1F9#), (+"flag-je", 16#1F1EF#, 16#1F1EA#), (+"flag-jm", 16#1F1EF#, 16#1F1F2#), (+"flag-jo", 16#1F1EF#, 16#1F1F4#), (+"flag-jp", 16#1F1EF#, 16#1F1F5#), (+"flag-ke", 16#1F1F0#, 16#1F1EA#), (+"flag-kg", 16#1F1F0#, 16#1F1EC#), (+"flag-kh", 16#1F1F0#, 16#1F1ED#), (+"flag-ki", 16#1F1F0#, 16#1F1EE#), (+"flag-km", 16#1F1F0#, 16#1F1F2#), (+"flag-kn", 16#1F1F0#, 16#1F1F3#), (+"flag-kp", 16#1F1F0#, 16#1F1F5#), (+"flag-kr", 16#1F1F0#, 16#1F1F7#), (+"flag-kw", 16#1F1F0#, 16#1F1FC#), (+"flag-ky", 16#1F1F0#, 16#1F1FE#), (+"flag-kz", 16#1F1F0#, 16#1F1FF#), (+"flag-la", 16#1F1F1#, 16#1F1E6#), (+"flag-lb", 16#1F1F1#, 16#1F1E7#), (+"flag-lc", 16#1F1F1#, 16#1F1E8#), (+"flag-li", 16#1F1F1#, 16#1F1EE#), (+"flag-lk", 16#1F1F1#, 16#1F1F0#), (+"flag-lr", 16#1F1F1#, 16#1F1F7#), (+"flag-ls", 16#1F1F1#, 16#1F1F8#), (+"flag-lt", 16#1F1F1#, 16#1F1F9#), (+"flag-lu", 16#1F1F1#, 16#1F1FA#), (+"flag-lv", 16#1F1F1#, 16#1F1FB#), (+"flag-ly", 16#1F1F1#, 16#1F1FE#), (+"flag-ma", 16#1F1F2#, 16#1F1E6#), (+"flag-mc", 16#1F1F2#, 16#1F1E8#), (+"flag-md", 16#1F1F2#, 16#1F1E9#), (+"flag-me", 16#1F1F2#, 16#1F1EA#), (+"flag-mf", 16#1F1F2#, 16#1F1EB#), (+"flag-mg", 16#1F1F2#, 16#1F1EC#), (+"flag-mh", 16#1F1F2#, 16#1F1ED#), (+"flag-mk", 16#1F1F2#, 16#1F1F0#), (+"flag-ml", 16#1F1F2#, 16#1F1F1#), (+"flag-mm", 16#1F1F2#, 16#1F1F2#), (+"flag-mn", 16#1F1F2#, 16#1F1F3#), (+"flag-mo", 16#1F1F2#, 16#1F1F4#), (+"flag-mp", 16#1F1F2#, 16#1F1F5#), (+"flag-mq", 16#1F1F2#, 16#1F1F6#), (+"flag-mr", 16#1F1F2#, 16#1F1F7#), (+"flag-ms", 16#1F1F2#, 16#1F1F8#), (+"flag-mt", 16#1F1F2#, 16#1F1F9#), (+"flag-mu", 16#1F1F2#, 16#1F1FA#), (+"flag-mv", 16#1F1F2#, 16#1F1FB#), (+"flag-mw", 16#1F1F2#, 16#1F1FC#), (+"flag-mx", 16#1F1F2#, 16#1F1FD#), (+"flag-my", 16#1F1F2#, 16#1F1FE#), (+"flag-mz", 16#1F1F2#, 16#1F1FF#), (+"flag-na", 16#1F1F3#, 16#1F1E6#), (+"flag-nc", 16#1F1F3#, 16#1F1E8#), (+"flag-ne", 16#1F1F3#, 16#1F1EA#), (+"flag-nf", 16#1F1F3#, 16#1F1EB#), (+"flag-ng", 16#1F1F3#, 16#1F1EC#), (+"flag-ni", 16#1F1F3#, 16#1F1EE#), (+"flag-nl", 16#1F1F3#, 16#1F1F1#), (+"flag-no", 16#1F1F3#, 16#1F1F4#), (+"flag-np", 16#1F1F3#, 16#1F1F5#), (+"flag-nr", 16#1F1F3#, 16#1F1F7#), (+"flag-nu", 16#1F1F3#, 16#1F1FA#), (+"flag-nz", 16#1F1F3#, 16#1F1FF#), (+"flag-om", 16#1F1F4#, 16#1F1F2#), (+"flag-pa", 16#1F1F5#, 16#1F1E6#), (+"flag-pe", 16#1F1F5#, 16#1F1EA#), (+"flag-pf", 16#1F1F5#, 16#1F1EB#), (+"flag-pg", 16#1F1F5#, 16#1F1EC#), (+"flag-ph", 16#1F1F5#, 16#1F1ED#), (+"flag-pk", 16#1F1F5#, 16#1F1F0#), (+"flag-pl", 16#1F1F5#, 16#1F1F1#), (+"flag-pm", 16#1F1F5#, 16#1F1F2#), (+"flag-pn", 16#1F1F5#, 16#1F1F3#), (+"flag-pr", 16#1F1F5#, 16#1F1F7#), (+"flag-ps", 16#1F1F5#, 16#1F1F8#), (+"flag-pt", 16#1F1F5#, 16#1F1F9#), (+"flag-pw", 16#1F1F5#, 16#1F1FC#), (+"flag-py", 16#1F1F5#, 16#1F1FE#), (+"flag-qa", 16#1F1F6#, 16#1F1E6#), (+"flag-re", 16#1F1F7#, 16#1F1EA#), (+"flag-ro", 16#1F1F7#, 16#1F1F4#), (+"flag-rs", 16#1F1F7#, 16#1F1F8#), (+"flag-ru", 16#1F1F7#, 16#1F1FA#), (+"flag-rw", 16#1F1F7#, 16#1F1FC#), (+"flag-sa", 16#1F1F8#, 16#1F1E6#), (+"flag-sb", 16#1F1F8#, 16#1F1E7#), (+"flag-sc", 16#1F1F8#, 16#1F1E8#), (+"flag-sd", 16#1F1F8#, 16#1F1E9#), (+"flag-se", 16#1F1F8#, 16#1F1EA#), (+"flag-sg", 16#1F1F8#, 16#1F1EC#), (+"flag-sh", 16#1F1F8#, 16#1F1ED#), (+"flag-si", 16#1F1F8#, 16#1F1EE#), (+"flag-sj", 16#1F1F8#, 16#1F1EF#), (+"flag-sk", 16#1F1F8#, 16#1F1F0#), (+"flag-sl", 16#1F1F8#, 16#1F1F1#), (+"flag-sm", 16#1F1F8#, 16#1F1F2#), (+"flag-sn", 16#1F1F8#, 16#1F1F3#), (+"flag-so", 16#1F1F8#, 16#1F1F4#), (+"flag-sr", 16#1F1F8#, 16#1F1F7#), (+"flag-ss", 16#1F1F8#, 16#1F1F8#), (+"flag-st", 16#1F1F8#, 16#1F1F9#), (+"flag-sv", 16#1F1F8#, 16#1F1FB#), (+"flag-sx", 16#1F1F8#, 16#1F1FD#), (+"flag-sy", 16#1F1F8#, 16#1F1FE#), (+"flag-sz", 16#1F1F8#, 16#1F1FF#), (+"flag-ta", 16#1F1F9#, 16#1F1E6#), (+"flag-tc", 16#1F1F9#, 16#1F1E8#), (+"flag-td", 16#1F1F9#, 16#1F1E9#), (+"flag-tf", 16#1F1F9#, 16#1F1EB#), (+"flag-tg", 16#1F1F9#, 16#1F1EC#), (+"flag-th", 16#1F1F9#, 16#1F1ED#), (+"flag-tj", 16#1F1F9#, 16#1F1EF#), (+"flag-tk", 16#1F1F9#, 16#1F1F0#), (+"flag-tl", 16#1F1F9#, 16#1F1F1#), (+"flag-tm", 16#1F1F9#, 16#1F1F2#), (+"flag-tn", 16#1F1F9#, 16#1F1F3#), (+"flag-to", 16#1F1F9#, 16#1F1F4#), (+"flag-tr", 16#1F1F9#, 16#1F1F7#), (+"flag-tt", 16#1F1F9#, 16#1F1F9#), (+"flag-tv", 16#1F1F9#, 16#1F1FB#), (+"flag-tw", 16#1F1F9#, 16#1F1FC#), (+"flag-tz", 16#1F1F9#, 16#1F1FF#), (+"flag-ua", 16#1F1FA#, 16#1F1E6#), (+"flag-ug", 16#1F1FA#, 16#1F1EC#), (+"flag-um", 16#1F1FA#, 16#1F1F2#), (+"flag-un", 16#1F1FA#, 16#1F1F3#), (+"flag-us", 16#1F1FA#, 16#1F1F8#), (+"flag-uy", 16#1F1FA#, 16#1F1FE#), (+"flag-uz", 16#1F1FA#, 16#1F1FF#), (+"flag-va", 16#1F1FB#, 16#1F1E6#), (+"flag-vc", 16#1F1FB#, 16#1F1E8#), (+"flag-ve", 16#1F1FB#, 16#1F1EA#), (+"flag-vg", 16#1F1FB#, 16#1F1EC#), (+"flag-vi", 16#1F1FB#, 16#1F1EE#), (+"flag-vn", 16#1F1FB#, 16#1F1F3#), (+"flag-vu", 16#1F1FB#, 16#1F1FA#), (+"flag-wf", 16#1F1FC#, 16#1F1EB#), (+"flag-ws", 16#1F1FC#, 16#1F1F8#), (+"flag-xk", 16#1F1FD#, 16#1F1F0#), (+"flag-ye", 16#1F1FE#, 16#1F1EA#), (+"flag-yt", 16#1F1FE#, 16#1F1F9#), (+"flag-za", 16#1F1FF#, 16#1F1E6#), (+"flag-zm", 16#1F1FF#, 16#1F1F2#), (+"flag-zw", 16#1F1FF#, 16#1F1FC#), (+"flag-sa", 16#1F202#, 16#FE0F#), (+"u6708", 16#1F237#, 16#FE0F#), (+"thermometer", 16#1F321#, 16#FE0F#), (+"mostly_sunny", 16#1F324#, 16#FE0F#), (+"barely_sunny", 16#1F325#, 16#FE0F#), (+"partly_sunny_rain", 16#1F326#, 16#FE0F#), (+"rain_cloud", 16#1F327#, 16#FE0F#), (+"snow_cloud", 16#1F328#, 16#FE0F#), (+"lightning", 16#1F329#, 16#FE0F#), (+"tornado", 16#1F32A#, 16#FE0F#), (+"fog", 16#1F32B#, 16#FE0F#), (+"wind_blowing_face", 16#1F32C#, 16#FE0F#), (+"hot_pepper", 16#1F336#, 16#FE0F#), (+"knife_fork_plate", 16#1F37D#, 16#FE0F#), (+"medal", 16#1F396#, 16#FE0F#), (+"reminder_ribbon", 16#1F397#, 16#FE0F#), (+"studio_microphone", 16#1F399#, 16#FE0F#), (+"level_slider", 16#1F39A#, 16#FE0F#), (+"control_knobs", 16#1F39B#, 16#FE0F#), (+"film_frames", 16#1F39E#, 16#FE0F#), (+"admission_tickets", 16#1F39F#, 16#FE0F#), (+"weight_lifter", 16#1F3CB#, 16#FE0F#), (+"golfer", 16#1F3CC#, 16#FE0F#), (+"racing_motorcycle", 16#1F3CD#, 16#FE0F#), (+"racing_car", 16#1F3CE#, 16#FE0F#), (+"snow_capped_mountain", 16#1F3D4#, 16#FE0F#), (+"camping", 16#1F3D5#, 16#FE0F#), (+"beach_with_umbrella", 16#1F3D6#, 16#FE0F#), (+"building_construction", 16#1F3D7#, 16#FE0F#), (+"house_buildings", 16#1F3D8#, 16#FE0F#), (+"cityscape", 16#1F3D9#, 16#FE0F#), (+"derelict_house_building", 16#1F3DA#, 16#FE0F#), (+"classical_building", 16#1F3DB#, 16#FE0F#), (+"desert", 16#1F3DC#, 16#FE0F#), (+"desert_island", 16#1F3DD#, 16#FE0F#), (+"national_park", 16#1F3DE#, 16#FE0F#), (+"stadium", 16#1F3DF#, 16#FE0F#), (+"waving_white_flag", 16#1F3F3#, 16#FE0F#), (+"rosette", 16#1F3F5#, 16#FE0F#), (+"label", 16#1F3F7#, 16#FE0F#), (+"chipmunk", 16#1F43F#, 16#FE0F#), (+"eye", 16#1F441#, 16#FE0F#), (+"film_projector", 16#1F4FD#, 16#FE0F#), (+"om_symbol", 16#1F549#, 16#FE0F#), (+"dove_of_peace", 16#1F54A#, 16#FE0F#), (+"candle", 16#1F56F#, 16#FE0F#), (+"mantelpiece_clock", 16#1F570#, 16#FE0F#), (+"hole", 16#1F573#, 16#FE0F#), (+"man_in_business_suit_levitating", 16#1F574#, 16#FE0F#), (+"sleuth_or_spy", 16#1F575#, 16#FE0F#), (+"dark_sunglasses", 16#1F576#, 16#FE0F#), (+"spider", 16#1F577#, 16#FE0F#), (+"spider_web", 16#1F578#, 16#FE0F#), (+"joystick", 16#1F579#, 16#FE0F#), (+"linked_paperclips", 16#1F587#, 16#FE0F#), (+"lower_left_ballpoint_pen", 16#1F58A#, 16#FE0F#), (+"lower_left_fountain_pen", 16#1F58B#, 16#FE0F#), (+"lower_left_paintbrush", 16#1F58C#, 16#FE0F#), (+"lower_left_crayon", 16#1F58D#, 16#FE0F#), (+"raised_hand_with_fingers_splayed", 16#1F590#, 16#FE0F#), (+"desktop_computer", 16#1F5A5#, 16#FE0F#), (+"printer", 16#1F5A8#, 16#FE0F#), (+"three_button_mouse", 16#1F5B1#, 16#FE0F#), (+"trackball", 16#1F5B2#, 16#FE0F#), (+"frame_with_picture", 16#1F5BC#, 16#FE0F#), (+"card_index_dividers", 16#1F5C2#, 16#FE0F#), (+"card_file_box", 16#1F5C3#, 16#FE0F#), (+"file_cabinet", 16#1F5C4#, 16#FE0F#), (+"wastebasket", 16#1F5D1#, 16#FE0F#), (+"spiral_note_pad", 16#1F5D2#, 16#FE0F#), (+"spiral_calendar_pad", 16#1F5D3#, 16#FE0F#), (+"compression", 16#1F5DC#, 16#FE0F#), (+"old_key", 16#1F5DD#, 16#FE0F#), (+"rolled_up_newspaper", 16#1F5DE#, 16#FE0F#), (+"dagger_knife", 16#1F5E1#, 16#FE0F#), (+"speaking_head_in_silhouette", 16#1F5E3#, 16#FE0F#), (+"left_speech_bubble", 16#1F5E8#, 16#FE0F#), (+"right_anger_bubble", 16#1F5EF#, 16#FE0F#), (+"ballot_box_with_ballot", 16#1F5F3#, 16#FE0F#), (+"world_map", 16#1F5FA#, 16#FE0F#), (+"couch_and_lamp", 16#1F6CB#, 16#FE0F#), (+"shopping_bags", 16#1F6CD#, 16#FE0F#), (+"bellhop_bell", 16#1F6CE#, 16#FE0F#), (+"bed", 16#1F6CF#, 16#FE0F#), (+"hammer_and_wrench", 16#1F6E0#, 16#FE0F#), (+"shield", 16#1F6E1#, 16#FE0F#), (+"oil_drum", 16#1F6E2#, 16#FE0F#), (+"motorway", 16#1F6E3#, 16#FE0F#), (+"railway_track", 16#1F6E4#, 16#FE0F#), (+"motor_boat", 16#1F6E5#, 16#FE0F#), (+"small_airplane", 16#1F6E9#, 16#FE0F#), (+"satellite", 16#1F6F0#, 16#FE0F#), (+"passenger_ship", 16#1F6F3#, 16#FE0F#), (+"bangbang", 16#203C#, 16#FE0F#), (+"interrobang", 16#2049#, 16#FE0F#), (+"tm", 16#2122#, 16#FE0F#), (+"information_source", 16#2139#, 16#FE0F#), (+"left_right_arrow", 16#2194#, 16#FE0F#), (+"arrow_up_down", 16#2195#, 16#FE0F#), (+"arrow_upper_left", 16#2196#, 16#FE0F#), (+"arrow_upper_right", 16#2197#, 16#FE0F#), (+"arrow_lower_right", 16#2198#, 16#FE0F#), (+"arrow_lower_left", 16#2199#, 16#FE0F#), (+"leftwards_arrow_with_hook", 16#21A9#, 16#FE0F#), (+"arrow_right_hook", 16#21AA#, 16#FE0F#), (+"keyboard", 16#2328#, 16#FE0F#), (+"eject", 16#23CF#, 16#FE0F#), (+"black_right_pointing_double_triangle_with_vertical_bar", 16#23ED#, 16#FE0F#), (+"black_left_pointing_double_triangle_with_vertical_bar", 16#23EE#, 16#FE0F#), (+"black_right_pointing_triangle_with_double_vertical_bar", 16#23EF#, 16#FE0F#), (+"stopwatch", 16#23F1#, 16#FE0F#), (+"timer_clock", 16#23F2#, 16#FE0F#), (+"double_vertical_bar", 16#23F8#, 16#FE0F#), (+"black_square_for_stop", 16#23F9#, 16#FE0F#), (+"black_circle_for_record", 16#23FA#, 16#FE0F#), (+"m", 16#24C2#, 16#FE0F#), (+"black_small_square", 16#25AA#, 16#FE0F#), (+"white_small_square", 16#25AB#, 16#FE0F#), (+"arrow_forward", 16#25B6#, 16#FE0F#), (+"arrow_backward", 16#25C0#, 16#FE0F#), (+"white_medium_square", 16#25FB#, 16#FE0F#), (+"black_medium_square", 16#25FC#, 16#FE0F#), (+"sunny", 16#2600#, 16#FE0F#), (+"cloud", 16#2601#, 16#FE0F#), (+"umbrella", 16#2602#, 16#FE0F#), (+"snowman", 16#2603#, 16#FE0F#), (+"comet", 16#2604#, 16#FE0F#), (+"phone", 16#260E#, 16#FE0F#), (+"ballot_box_with_check", 16#2611#, 16#FE0F#), (+"shamrock", 16#2618#, 16#FE0F#), (+"point_up", 16#261D#, 16#FE0F#), (+"skull_and_crossbones", 16#2620#, 16#FE0F#), (+"radioactive_sign", 16#2622#, 16#FE0F#), (+"biohazard_sign", 16#2623#, 16#FE0F#), (+"orthodox_cross", 16#2626#, 16#FE0F#), (+"star_and_crescent", 16#262A#, 16#FE0F#), (+"peace_symbol", 16#262E#, 16#FE0F#), (+"yin_yang", 16#262F#, 16#FE0F#), (+"wheel_of_dharma", 16#2638#, 16#FE0F#), (+"white_frowning_face", 16#2639#, 16#FE0F#), (+"relaxed", 16#263A#, 16#FE0F#), (+"female_sign", 16#2640#, 16#FE0F#), (+"male_sign", 16#2642#, 16#FE0F#), (+"chess_pawn", 16#265F#, 16#FE0F#), (+"spades", 16#2660#, 16#FE0F#), (+"clubs", 16#2663#, 16#FE0F#), (+"hearts", 16#2665#, 16#FE0F#), (+"diamonds", 16#2666#, 16#FE0F#), (+"hotsprings", 16#2668#, 16#FE0F#), (+"recycle", 16#267B#, 16#FE0F#), (+"infinity", 16#267E#, 16#FE0F#), (+"hammer_and_pick", 16#2692#, 16#FE0F#), (+"crossed_swords", 16#2694#, 16#FE0F#), (+"medical_symbol", 16#2695#, 16#FE0F#), (+"scales", 16#2696#, 16#FE0F#), (+"alembic", 16#2697#, 16#FE0F#), (+"gear", 16#2699#, 16#FE0F#), (+"atom_symbol", 16#269B#, 16#FE0F#), (+"fleur_de_lis", 16#269C#, 16#FE0F#), (+"warning", 16#26A0#, 16#FE0F#), (+"transgender_symbol", 16#26A7#, 16#FE0F#), (+"coffin", 16#26B0#, 16#FE0F#), (+"funeral_urn", 16#26B1#, 16#FE0F#), (+"thunder_cloud_and_rain", 16#26C8#, 16#FE0F#), (+"pick", 16#26CF#, 16#FE0F#), (+"helmet_with_white_cross", 16#26D1#, 16#FE0F#), (+"chains", 16#26D3#, 16#FE0F#), (+"shinto_shrine", 16#26E9#, 16#FE0F#), (+"mountain", 16#26F0#, 16#FE0F#), (+"umbrella_on_ground", 16#26F1#, 16#FE0F#), (+"ferry", 16#26F4#, 16#FE0F#), (+"skier", 16#26F7#, 16#FE0F#), (+"ice_skate", 16#26F8#, 16#FE0F#), (+"person_with_ball", 16#26F9#, 16#FE0F#), (+"scissors", 16#2702#, 16#FE0F#), (+"airplane", 16#2708#, 16#FE0F#), (+"email", 16#2709#, 16#FE0F#), (+"v", 16#270C#, 16#FE0F#), (+"writing_hand", 16#270D#, 16#FE0F#), (+"pencil2", 16#270F#, 16#FE0F#), (+"black_nib", 16#2712#, 16#FE0F#), (+"heavy_check_mark", 16#2714#, 16#FE0F#), (+"heavy_multiplication_x", 16#2716#, 16#FE0F#), (+"latin_cross", 16#271D#, 16#FE0F#), (+"star_of_david", 16#2721#, 16#FE0F#), (+"eight_spoked_asterisk", 16#2733#, 16#FE0F#), (+"eight_pointed_black_star", 16#2734#, 16#FE0F#), (+"snowflake", 16#2744#, 16#FE0F#), (+"sparkle", 16#2747#, 16#FE0F#), (+"heavy_heart_exclamation_mark_ornament", 16#2763#, 16#FE0F#), (+"heart", 16#2764#, 16#FE0F#), (+"arrow_right", 16#27A1#, 16#FE0F#), (+"arrow_heading_up", 16#2934#, 16#FE0F#), (+"arrow_heading_down", 16#2935#, 16#FE0F#), (+"arrow_left", 16#2B05#, 16#FE0F#), (+"arrow_up", 16#2B06#, 16#FE0F#), (+"arrow_down", 16#2B07#, 16#FE0F#), (+"wavy_dash", 16#3030#, 16#FE0F#), (+"part_alternation_mark", 16#303D#, 16#FE0F#), (+"congratulations", 16#3297#, 16#FE0F#), (+"secret", 16#3299#, 16#FE0F#)); Name_Emojis_1 : constant array (Positive range <>) of Text_1_Points_Pair := ((+"mahjong", 16#1F004#), (+"black_joker", 16#1F0CF#), (+"ab", 16#1F18E#), (+"cl", 16#1F191#), (+"cool", 16#1F192#), (+"free", 16#1F193#), (+"id", 16#1F194#), (+"new", 16#1F195#), (+"ng", 16#1F196#), (+"ok", 16#1F197#), (+"sos", 16#1F198#), (+"up", 16#1F199#), (+"vs", 16#1F19A#), (+"koko", 16#1F201#), (+"u7121", 16#1F21A#), (+"u6307", 16#1F22F#), (+"u7981", 16#1F232#), (+"u7a7a", 16#1F233#), (+"u5408", 16#1F234#), (+"u6e80", 16#1F235#), (+"u6709", 16#1F236#), (+"u7533", 16#1F238#), (+"u5272", 16#1F239#), (+"u55b6", 16#1F23A#), (+"ideograph_advantage", 16#1F250#), (+"accept", 16#1F251#), (+"cyclone", 16#1F300#), (+"foggy", 16#1F301#), (+"closed_umbrella", 16#1F302#), (+"night_with_stars", 16#1F303#), (+"sunrise_over_mountains", 16#1F304#), (+"sunrise", 16#1F305#), (+"city_sunset", 16#1F306#), (+"city_sunrise", 16#1F307#), (+"rainbow", 16#1F308#), (+"bridge_at_night", 16#1F309#), (+"ocean", 16#1F30A#), (+"volcano", 16#1F30B#), (+"milky_way", 16#1F30C#), (+"earth_africa", 16#1F30D#), (+"earth_americas", 16#1F30E#), (+"earth_asia", 16#1F30F#), (+"globe_with_meridians", 16#1F310#), (+"new_moon", 16#1F311#), (+"waxing_crescent_moon", 16#1F312#), (+"first_quarter_moon", 16#1F313#), (+"moon", 16#1F314#), (+"full_moon", 16#1F315#), (+"waning_gibbous_moon", 16#1F316#), (+"last_quarter_moon", 16#1F317#), (+"waning_crescent_moon", 16#1F318#), (+"crescent_moon", 16#1F319#), (+"new_moon_with_face", 16#1F31A#), (+"first_quarter_moon_with_face", 16#1F31B#), (+"last_quarter_moon_with_face", 16#1F31C#), (+"full_moon_with_face", 16#1F31D#), (+"sun_with_face", 16#1F31E#), (+"star2", 16#1F31F#), (+"stars", 16#1F320#), (+"hotdog", 16#1F32D#), (+"taco", 16#1F32E#), (+"burrito", 16#1F32F#), (+"chestnut", 16#1F330#), (+"seedling", 16#1F331#), (+"evergreen_tree", 16#1F332#), (+"deciduous_tree", 16#1F333#), (+"palm_tree", 16#1F334#), (+"cactus", 16#1F335#), (+"tulip", 16#1F337#), (+"cherry_blossom", 16#1F338#), (+"rose", 16#1F339#), (+"hibiscus", 16#1F33A#), (+"sunflower", 16#1F33B#), (+"blossom", 16#1F33C#), (+"corn", 16#1F33D#), (+"ear_of_rice", 16#1F33E#), (+"herb", 16#1F33F#), (+"four_leaf_clover", 16#1F340#), (+"maple_leaf", 16#1F341#), (+"fallen_leaf", 16#1F342#), (+"leaves", 16#1F343#), (+"mushroom", 16#1F344#), (+"tomato", 16#1F345#), (+"eggplant", 16#1F346#), (+"grapes", 16#1F347#), (+"melon", 16#1F348#), (+"watermelon", 16#1F349#), (+"tangerine", 16#1F34A#), (+"lemon", 16#1F34B#), (+"banana", 16#1F34C#), (+"pineapple", 16#1F34D#), (+"apple", 16#1F34E#), (+"green_apple", 16#1F34F#), (+"pear", 16#1F350#), (+"peach", 16#1F351#), (+"cherries", 16#1F352#), (+"strawberry", 16#1F353#), (+"hamburger", 16#1F354#), (+"pizza", 16#1F355#), (+"meat_on_bone", 16#1F356#), (+"poultry_leg", 16#1F357#), (+"rice_cracker", 16#1F358#), (+"rice_ball", 16#1F359#), (+"rice", 16#1F35A#), (+"curry", 16#1F35B#), (+"ramen", 16#1F35C#), (+"spaghetti", 16#1F35D#), (+"bread", 16#1F35E#), (+"fries", 16#1F35F#), (+"sweet_potato", 16#1F360#), (+"dango", 16#1F361#), (+"oden", 16#1F362#), (+"sushi", 16#1F363#), (+"fried_shrimp", 16#1F364#), (+"fish_cake", 16#1F365#), (+"icecream", 16#1F366#), (+"shaved_ice", 16#1F367#), (+"ice_cream", 16#1F368#), (+"doughnut", 16#1F369#), (+"cookie", 16#1F36A#), (+"chocolate_bar", 16#1F36B#), (+"candy", 16#1F36C#), (+"lollipop", 16#1F36D#), (+"custard", 16#1F36E#), (+"honey_pot", 16#1F36F#), (+"cake", 16#1F370#), (+"bento", 16#1F371#), (+"stew", 16#1F372#), (+"fried_egg", 16#1F373#), (+"fork_and_knife", 16#1F374#), (+"tea", 16#1F375#), (+"sake", 16#1F376#), (+"wine_glass", 16#1F377#), (+"cocktail", 16#1F378#), (+"tropical_drink", 16#1F379#), (+"beer", 16#1F37A#), (+"beers", 16#1F37B#), (+"baby_bottle", 16#1F37C#), (+"champagne", 16#1F37E#), (+"popcorn", 16#1F37F#), (+"ribbon", 16#1F380#), (+"gift", 16#1F381#), (+"birthday", 16#1F382#), (+"jack_o_lantern", 16#1F383#), (+"christmas_tree", 16#1F384#), (+"santa", 16#1F385#), (+"fireworks", 16#1F386#), (+"sparkler", 16#1F387#), (+"balloon", 16#1F388#), (+"tada", 16#1F389#), (+"confetti_ball", 16#1F38A#), (+"tanabata_tree", 16#1F38B#), (+"crossed_flags", 16#1F38C#), (+"bamboo", 16#1F38D#), (+"dolls", 16#1F38E#), (+"flags", 16#1F38F#), (+"wind_chime", 16#1F390#), (+"rice_scene", 16#1F391#), (+"school_satchel", 16#1F392#), (+"mortar_board", 16#1F393#), (+"carousel_horse", 16#1F3A0#), (+"ferris_wheel", 16#1F3A1#), (+"roller_coaster", 16#1F3A2#), (+"fishing_pole_and_fish", 16#1F3A3#), (+"microphone", 16#1F3A4#), (+"movie_camera", 16#1F3A5#), (+"cinema", 16#1F3A6#), (+"headphones", 16#1F3A7#), (+"art", 16#1F3A8#), (+"tophat", 16#1F3A9#), (+"circus_tent", 16#1F3AA#), (+"ticket", 16#1F3AB#), (+"clapper", 16#1F3AC#), (+"performing_arts", 16#1F3AD#), (+"video_game", 16#1F3AE#), (+"dart", 16#1F3AF#), (+"slot_machine", 16#1F3B0#), (+"8ball", 16#1F3B1#), (+"game_die", 16#1F3B2#), (+"bowling", 16#1F3B3#), (+"flower_playing_cards", 16#1F3B4#), (+"musical_note", 16#1F3B5#), (+"notes", 16#1F3B6#), (+"saxophone", 16#1F3B7#), (+"guitar", 16#1F3B8#), (+"musical_keyboard", 16#1F3B9#), (+"trumpet", 16#1F3BA#), (+"violin", 16#1F3BB#), (+"musical_score", 16#1F3BC#), (+"running_shirt_with_sash", 16#1F3BD#), (+"tennis", 16#1F3BE#), (+"ski", 16#1F3BF#), (+"basketball", 16#1F3C0#), (+"checkered_flag", 16#1F3C1#), (+"snowboarder", 16#1F3C2#), (+"runner", 16#1F3C3#), (+"surfer", 16#1F3C4#), (+"sports_medal", 16#1F3C5#), (+"trophy", 16#1F3C6#), (+"horse_racing", 16#1F3C7#), (+"football", 16#1F3C8#), (+"rugby_football", 16#1F3C9#), (+"swimmer", 16#1F3CA#), (+"cricket_bat_and_ball", 16#1F3CF#), (+"volleyball", 16#1F3D0#), (+"field_hockey_stick_and_ball", 16#1F3D1#), (+"ice_hockey_stick_and_puck", 16#1F3D2#), (+"table_tennis_paddle_and_ball", 16#1F3D3#), (+"house", 16#1F3E0#), (+"house_with_garden", 16#1F3E1#), (+"office", 16#1F3E2#), (+"post_office", 16#1F3E3#), (+"european_post_office", 16#1F3E4#), (+"hospital", 16#1F3E5#), (+"bank", 16#1F3E6#), (+"atm", 16#1F3E7#), (+"hotel", 16#1F3E8#), (+"love_hotel", 16#1F3E9#), (+"convenience_store", 16#1F3EA#), (+"school", 16#1F3EB#), (+"department_store", 16#1F3EC#), (+"factory", 16#1F3ED#), (+"izakaya_lantern", 16#1F3EE#), (+"japanese_castle", 16#1F3EF#), (+"european_castle", 16#1F3F0#), (+"waving_black_flag", 16#1F3F4#), (+"badminton_racquet_and_shuttlecock", 16#1F3F8#), (+"bow_and_arrow", 16#1F3F9#), (+"amphora", 16#1F3FA#), (+"skin-tone-2", 16#1F3FB#), (+"skin-tone-3", 16#1F3FC#), (+"skin-tone-4", 16#1F3FD#), (+"skin-tone-5", 16#1F3FE#), (+"skin-tone-6", 16#1F3FF#), (+"rat", 16#1F400#), (+"mouse2", 16#1F401#), (+"ox", 16#1F402#), (+"water_buffalo", 16#1F403#), (+"cow2", 16#1F404#), (+"tiger2", 16#1F405#), (+"leopard", 16#1F406#), (+"rabbit2", 16#1F407#), (+"cat2", 16#1F408#), (+"dragon", 16#1F409#), (+"crocodile", 16#1F40A#), (+"whale2", 16#1F40B#), (+"snail", 16#1F40C#), (+"snake", 16#1F40D#), (+"racehorse", 16#1F40E#), (+"ram", 16#1F40F#), (+"goat", 16#1F410#), (+"sheep", 16#1F411#), (+"monkey", 16#1F412#), (+"rooster", 16#1F413#), (+"chicken", 16#1F414#), (+"dog2", 16#1F415#), (+"pig2", 16#1F416#), (+"boar", 16#1F417#), (+"elephant", 16#1F418#), (+"octopus", 16#1F419#), (+"shell", 16#1F41A#), (+"bug", 16#1F41B#), (+"ant", 16#1F41C#), (+"bee", 16#1F41D#), (+"ladybug", 16#1F41E#), (+"fish", 16#1F41F#), (+"tropical_fish", 16#1F420#), (+"blowfish", 16#1F421#), (+"turtle", 16#1F422#), (+"hatching_chick", 16#1F423#), (+"baby_chick", 16#1F424#), (+"hatched_chick", 16#1F425#), (+"bird", 16#1F426#), (+"penguin", 16#1F427#), (+"koala", 16#1F428#), (+"poodle", 16#1F429#), (+"dromedary_camel", 16#1F42A#), (+"camel", 16#1F42B#), (+"dolphin", 16#1F42C#), (+"mouse", 16#1F42D#), (+"cow", 16#1F42E#), (+"tiger", 16#1F42F#), (+"rabbit", 16#1F430#), (+"cat", 16#1F431#), (+"dragon_face", 16#1F432#), (+"whale", 16#1F433#), (+"horse", 16#1F434#), (+"monkey_face", 16#1F435#), (+"dog", 16#1F436#), (+"pig", 16#1F437#), (+"frog", 16#1F438#), (+"hamster", 16#1F439#), (+"wolf", 16#1F43A#), (+"bear", 16#1F43B#), (+"panda_face", 16#1F43C#), (+"pig_nose", 16#1F43D#), (+"feet", 16#1F43E#), (+"eyes", 16#1F440#), (+"ear", 16#1F442#), (+"nose", 16#1F443#), (+"lips", 16#1F444#), (+"tongue", 16#1F445#), (+"point_up_2", 16#1F446#), (+"point_down", 16#1F447#), (+"point_left", 16#1F448#), (+"point_right", 16#1F449#), (+"facepunch", 16#1F44A#), (+"wave", 16#1F44B#), (+"ok_hand", 16#1F44C#), (+"+1", 16#1F44D#), (+"-1", 16#1F44E#), (+"clap", 16#1F44F#), (+"open_hands", 16#1F450#), (+"crown", 16#1F451#), (+"womans_hat", 16#1F452#), (+"eyeglasses", 16#1F453#), (+"necktie", 16#1F454#), (+"shirt", 16#1F455#), (+"jeans", 16#1F456#), (+"dress", 16#1F457#), (+"kimono", 16#1F458#), (+"bikini", 16#1F459#), (+"womans_clothes", 16#1F45A#), (+"purse", 16#1F45B#), (+"handbag", 16#1F45C#), (+"pouch", 16#1F45D#), (+"mans_shoe", 16#1F45E#), (+"athletic_shoe", 16#1F45F#), (+"high_heel", 16#1F460#), (+"sandal", 16#1F461#), (+"boot", 16#1F462#), (+"footprints", 16#1F463#), (+"bust_in_silhouette", 16#1F464#), (+"busts_in_silhouette", 16#1F465#), (+"boy", 16#1F466#), (+"girl", 16#1F467#), (+"man", 16#1F468#), (+"woman", 16#1F469#), (+"family", 16#1F46A#), (+"man_and_woman_holding_hands", 16#1F46B#), (+"two_men_holding_hands", 16#1F46C#), (+"two_women_holding_hands", 16#1F46D#), (+"cop", 16#1F46E#), (+"dancers", 16#1F46F#), (+"bride_with_veil", 16#1F470#), (+"person_with_blond_hair", 16#1F471#), (+"man_with_gua_pi_mao", 16#1F472#), (+"man_with_turban", 16#1F473#), (+"older_man", 16#1F474#), (+"older_woman", 16#1F475#), (+"baby", 16#1F476#), (+"construction_worker", 16#1F477#), (+"princess", 16#1F478#), (+"japanese_ogre", 16#1F479#), (+"japanese_goblin", 16#1F47A#), (+"ghost", 16#1F47B#), (+"angel", 16#1F47C#), (+"alien", 16#1F47D#), (+"space_invader", 16#1F47E#), (+"imp", 16#1F47F#), (+"skull", 16#1F480#), (+"information_desk_person", 16#1F481#), (+"guardsman", 16#1F482#), (+"dancer", 16#1F483#), (+"lipstick", 16#1F484#), (+"nail_care", 16#1F485#), (+"massage", 16#1F486#), (+"haircut", 16#1F487#), (+"barber", 16#1F488#), (+"syringe", 16#1F489#), (+"pill", 16#1F48A#), (+"kiss", 16#1F48B#), (+"love_letter", 16#1F48C#), (+"ring", 16#1F48D#), (+"gem", 16#1F48E#), (+"couplekiss", 16#1F48F#), (+"bouquet", 16#1F490#), (+"couple_with_heart", 16#1F491#), (+"wedding", 16#1F492#), (+"heartbeat", 16#1F493#), (+"broken_heart", 16#1F494#), (+"two_hearts", 16#1F495#), (+"sparkling_heart", 16#1F496#), (+"heartpulse", 16#1F497#), (+"cupid", 16#1F498#), (+"blue_heart", 16#1F499#), (+"green_heart", 16#1F49A#), (+"yellow_heart", 16#1F49B#), (+"purple_heart", 16#1F49C#), (+"gift_heart", 16#1F49D#), (+"revolving_hearts", 16#1F49E#), (+"heart_decoration", 16#1F49F#), (+"diamond_shape_with_a_dot_inside", 16#1F4A0#), (+"bulb", 16#1F4A1#), (+"anger", 16#1F4A2#), (+"bomb", 16#1F4A3#), (+"zzz", 16#1F4A4#), (+"boom", 16#1F4A5#), (+"sweat_drops", 16#1F4A6#), (+"droplet", 16#1F4A7#), (+"dash", 16#1F4A8#), (+"hankey", 16#1F4A9#), (+"muscle", 16#1F4AA#), (+"dizzy", 16#1F4AB#), (+"speech_balloon", 16#1F4AC#), (+"thought_balloon", 16#1F4AD#), (+"white_flower", 16#1F4AE#), (+"100", 16#1F4AF#), (+"moneybag", 16#1F4B0#), (+"currency_exchange", 16#1F4B1#), (+"heavy_dollar_sign", 16#1F4B2#), (+"credit_card", 16#1F4B3#), (+"yen", 16#1F4B4#), (+"dollar", 16#1F4B5#), (+"euro", 16#1F4B6#), (+"pound", 16#1F4B7#), (+"money_with_wings", 16#1F4B8#), (+"chart", 16#1F4B9#), (+"seat", 16#1F4BA#), (+"computer", 16#1F4BB#), (+"briefcase", 16#1F4BC#), (+"minidisc", 16#1F4BD#), (+"floppy_disk", 16#1F4BE#), (+"cd", 16#1F4BF#), (+"dvd", 16#1F4C0#), (+"file_folder", 16#1F4C1#), (+"open_file_folder", 16#1F4C2#), (+"page_with_curl", 16#1F4C3#), (+"page_facing_up", 16#1F4C4#), (+"date", 16#1F4C5#), (+"calendar", 16#1F4C6#), (+"card_index", 16#1F4C7#), (+"chart_with_upwards_trend", 16#1F4C8#), (+"chart_with_downwards_trend", 16#1F4C9#), (+"bar_chart", 16#1F4CA#), (+"clipboard", 16#1F4CB#), (+"pushpin", 16#1F4CC#), (+"round_pushpin", 16#1F4CD#), (+"paperclip", 16#1F4CE#), (+"straight_ruler", 16#1F4CF#), (+"triangular_ruler", 16#1F4D0#), (+"bookmark_tabs", 16#1F4D1#), (+"ledger", 16#1F4D2#), (+"notebook", 16#1F4D3#), (+"notebook_with_decorative_cover", 16#1F4D4#), (+"closed_book", 16#1F4D5#), (+"book", 16#1F4D6#), (+"green_book", 16#1F4D7#), (+"blue_book", 16#1F4D8#), (+"orange_book", 16#1F4D9#), (+"books", 16#1F4DA#), (+"name_badge", 16#1F4DB#), (+"scroll", 16#1F4DC#), (+"memo", 16#1F4DD#), (+"telephone_receiver", 16#1F4DE#), (+"pager", 16#1F4DF#), (+"fax", 16#1F4E0#), (+"satellite_antenna", 16#1F4E1#), (+"loudspeaker", 16#1F4E2#), (+"mega", 16#1F4E3#), (+"outbox_tray", 16#1F4E4#), (+"inbox_tray", 16#1F4E5#), (+"package", 16#1F4E6#), (+"e-mail", 16#1F4E7#), (+"incoming_envelope", 16#1F4E8#), (+"envelope_with_arrow", 16#1F4E9#), (+"mailbox_closed", 16#1F4EA#), (+"mailbox", 16#1F4EB#), (+"mailbox_with_mail", 16#1F4EC#), (+"mailbox_with_no_mail", 16#1F4ED#), (+"postbox", 16#1F4EE#), (+"postal_horn", 16#1F4EF#), (+"newspaper", 16#1F4F0#), (+"iphone", 16#1F4F1#), (+"calling", 16#1F4F2#), (+"vibration_mode", 16#1F4F3#), (+"mobile_phone_off", 16#1F4F4#), (+"no_mobile_phones", 16#1F4F5#), (+"signal_strength", 16#1F4F6#), (+"camera", 16#1F4F7#), (+"camera_with_flash", 16#1F4F8#), (+"video_camera", 16#1F4F9#), (+"tv", 16#1F4FA#), (+"radio", 16#1F4FB#), (+"vhs", 16#1F4FC#), (+"prayer_beads", 16#1F4FF#), (+"twisted_rightwards_arrows", 16#1F500#), (+"repeat", 16#1F501#), (+"repeat_one", 16#1F502#), (+"arrows_clockwise", 16#1F503#), (+"arrows_counterclockwise", 16#1F504#), (+"low_brightness", 16#1F505#), (+"high_brightness", 16#1F506#), (+"mute", 16#1F507#), (+"speaker", 16#1F508#), (+"sound", 16#1F509#), (+"loud_sound", 16#1F50A#), (+"battery", 16#1F50B#), (+"electric_plug", 16#1F50C#), (+"mag", 16#1F50D#), (+"mag_right", 16#1F50E#), (+"lock_with_ink_pen", 16#1F50F#), (+"closed_lock_with_key", 16#1F510#), (+"key", 16#1F511#), (+"lock", 16#1F512#), (+"unlock", 16#1F513#), (+"bell", 16#1F514#), (+"no_bell", 16#1F515#), (+"bookmark", 16#1F516#), (+"link", 16#1F517#), (+"radio_button", 16#1F518#), (+"back", 16#1F519#), (+"end", 16#1F51A#), (+"on", 16#1F51B#), (+"soon", 16#1F51C#), (+"top", 16#1F51D#), (+"underage", 16#1F51E#), (+"keycap_ten", 16#1F51F#), (+"capital_abcd", 16#1F520#), (+"abcd", 16#1F521#), (+"1234", 16#1F522#), (+"symbols", 16#1F523#), (+"abc", 16#1F524#), (+"fire", 16#1F525#), (+"flashlight", 16#1F526#), (+"wrench", 16#1F527#), (+"hammer", 16#1F528#), (+"nut_and_bolt", 16#1F529#), (+"hocho", 16#1F52A#), (+"gun", 16#1F52B#), (+"microscope", 16#1F52C#), (+"telescope", 16#1F52D#), (+"crystal_ball", 16#1F52E#), (+"six_pointed_star", 16#1F52F#), (+"beginner", 16#1F530#), (+"trident", 16#1F531#), (+"black_square_button", 16#1F532#), (+"white_square_button", 16#1F533#), (+"red_circle", 16#1F534#), (+"large_blue_circle", 16#1F535#), (+"large_orange_diamond", 16#1F536#), (+"large_blue_diamond", 16#1F537#), (+"small_orange_diamond", 16#1F538#), (+"small_blue_diamond", 16#1F539#), (+"small_red_triangle", 16#1F53A#), (+"small_red_triangle_down", 16#1F53B#), (+"arrow_up_small", 16#1F53C#), (+"arrow_down_small", 16#1F53D#), (+"kaaba", 16#1F54B#), (+"mosque", 16#1F54C#), (+"synagogue", 16#1F54D#), (+"menorah_with_nine_branches", 16#1F54E#), (+"clock1", 16#1F550#), (+"clock2", 16#1F551#), (+"clock3", 16#1F552#), (+"clock4", 16#1F553#), (+"clock5", 16#1F554#), (+"clock6", 16#1F555#), (+"clock7", 16#1F556#), (+"clock8", 16#1F557#), (+"clock9", 16#1F558#), (+"clock10", 16#1F559#), (+"clock11", 16#1F55A#), (+"clock12", 16#1F55B#), (+"clock130", 16#1F55C#), (+"clock230", 16#1F55D#), (+"clock330", 16#1F55E#), (+"clock430", 16#1F55F#), (+"clock530", 16#1F560#), (+"clock630", 16#1F561#), (+"clock730", 16#1F562#), (+"clock830", 16#1F563#), (+"clock930", 16#1F564#), (+"clock1030", 16#1F565#), (+"clock1130", 16#1F566#), (+"clock1230", 16#1F567#), (+"man_dancing", 16#1F57A#), (+"middle_finger", 16#1F595#), (+"spock-hand", 16#1F596#), (+"black_heart", 16#1F5A4#), (+"mount_fuji", 16#1F5FB#), (+"tokyo_tower", 16#1F5FC#), (+"statue_of_liberty", 16#1F5FD#), (+"japan", 16#1F5FE#), (+"moyai", 16#1F5FF#), (+"grinning", 16#1F600#), (+"grin", 16#1F601#), (+"joy", 16#1F602#), (+"smiley", 16#1F603#), (+"smile", 16#1F604#), (+"sweat_smile", 16#1F605#), (+"laughing", 16#1F606#), (+"innocent", 16#1F607#), (+"smiling_imp", 16#1F608#), (+"wink", 16#1F609#), (+"blush", 16#1F60A#), (+"yum", 16#1F60B#), (+"relieved", 16#1F60C#), (+"heart_eyes", 16#1F60D#), (+"sunglasses", 16#1F60E#), (+"smirk", 16#1F60F#), (+"neutral_face", 16#1F610#), (+"expressionless", 16#1F611#), (+"unamused", 16#1F612#), (+"sweat", 16#1F613#), (+"pensive", 16#1F614#), (+"confused", 16#1F615#), (+"confounded", 16#1F616#), (+"kissing", 16#1F617#), (+"kissing_heart", 16#1F618#), (+"kissing_smiling_eyes", 16#1F619#), (+"kissing_closed_eyes", 16#1F61A#), (+"stuck_out_tongue", 16#1F61B#), (+"stuck_out_tongue_winking_eye", 16#1F61C#), (+"stuck_out_tongue_closed_eyes", 16#1F61D#), (+"disappointed", 16#1F61E#), (+"worried", 16#1F61F#), (+"angry", 16#1F620#), (+"rage", 16#1F621#), (+"cry", 16#1F622#), (+"persevere", 16#1F623#), (+"triumph", 16#1F624#), (+"disappointed_relieved", 16#1F625#), (+"frowning", 16#1F626#), (+"anguished", 16#1F627#), (+"fearful", 16#1F628#), (+"weary", 16#1F629#), (+"sleepy", 16#1F62A#), (+"tired_face", 16#1F62B#), (+"grimacing", 16#1F62C#), (+"sob", 16#1F62D#), (+"open_mouth", 16#1F62E#), (+"hushed", 16#1F62F#), (+"cold_sweat", 16#1F630#), (+"scream", 16#1F631#), (+"astonished", 16#1F632#), (+"flushed", 16#1F633#), (+"sleeping", 16#1F634#), (+"dizzy_face", 16#1F635#), (+"no_mouth", 16#1F636#), (+"mask", 16#1F637#), (+"smile_cat", 16#1F638#), (+"joy_cat", 16#1F639#), (+"smiley_cat", 16#1F63A#), (+"heart_eyes_cat", 16#1F63B#), (+"smirk_cat", 16#1F63C#), (+"kissing_cat", 16#1F63D#), (+"pouting_cat", 16#1F63E#), (+"crying_cat_face", 16#1F63F#), (+"scream_cat", 16#1F640#), (+"slightly_frowning_face", 16#1F641#), (+"slightly_smiling_face", 16#1F642#), (+"upside_down_face", 16#1F643#), (+"face_with_rolling_eyes", 16#1F644#), (+"no_good", 16#1F645#), (+"ok_woman", 16#1F646#), (+"bow", 16#1F647#), (+"see_no_evil", 16#1F648#), (+"hear_no_evil", 16#1F649#), (+"speak_no_evil", 16#1F64A#), (+"raising_hand", 16#1F64B#), (+"raised_hands", 16#1F64C#), (+"person_frowning", 16#1F64D#), (+"person_with_pouting_face", 16#1F64E#), (+"pray", 16#1F64F#), (+"rocket", 16#1F680#), (+"helicopter", 16#1F681#), (+"steam_locomotive", 16#1F682#), (+"railway_car", 16#1F683#), (+"bullettrain_side", 16#1F684#), (+"bullettrain_front", 16#1F685#), (+"train2", 16#1F686#), (+"metro", 16#1F687#), (+"light_rail", 16#1F688#), (+"station", 16#1F689#), (+"tram", 16#1F68A#), (+"train", 16#1F68B#), (+"bus", 16#1F68C#), (+"oncoming_bus", 16#1F68D#), (+"trolleybus", 16#1F68E#), (+"busstop", 16#1F68F#), (+"minibus", 16#1F690#), (+"ambulance", 16#1F691#), (+"fire_engine", 16#1F692#), (+"police_car", 16#1F693#), (+"oncoming_police_car", 16#1F694#), (+"taxi", 16#1F695#), (+"oncoming_taxi", 16#1F696#), (+"car", 16#1F697#), (+"oncoming_automobile", 16#1F698#), (+"blue_car", 16#1F699#), (+"truck", 16#1F69A#), (+"articulated_lorry", 16#1F69B#), (+"tractor", 16#1F69C#), (+"monorail", 16#1F69D#), (+"mountain_railway", 16#1F69E#), (+"suspension_railway", 16#1F69F#), (+"mountain_cableway", 16#1F6A0#), (+"aerial_tramway", 16#1F6A1#), (+"ship", 16#1F6A2#), (+"rowboat", 16#1F6A3#), (+"speedboat", 16#1F6A4#), (+"traffic_light", 16#1F6A5#), (+"vertical_traffic_light", 16#1F6A6#), (+"construction", 16#1F6A7#), (+"rotating_light", 16#1F6A8#), (+"triangular_flag_on_post", 16#1F6A9#), (+"door", 16#1F6AA#), (+"no_entry_sign", 16#1F6AB#), (+"smoking", 16#1F6AC#), (+"no_smoking", 16#1F6AD#), (+"put_litter_in_its_place", 16#1F6AE#), (+"do_not_litter", 16#1F6AF#), (+"potable_water", 16#1F6B0#), (+"non-potable_water", 16#1F6B1#), (+"bike", 16#1F6B2#), (+"no_bicycles", 16#1F6B3#), (+"bicyclist", 16#1F6B4#), (+"mountain_bicyclist", 16#1F6B5#), (+"walking", 16#1F6B6#), (+"no_pedestrians", 16#1F6B7#), (+"children_crossing", 16#1F6B8#), (+"mens", 16#1F6B9#), (+"womens", 16#1F6BA#), (+"restroom", 16#1F6BB#), (+"baby_symbol", 16#1F6BC#), (+"toilet", 16#1F6BD#), (+"wc", 16#1F6BE#), (+"shower", 16#1F6BF#), (+"bath", 16#1F6C0#), (+"bathtub", 16#1F6C1#), (+"passport_control", 16#1F6C2#), (+"customs", 16#1F6C3#), (+"baggage_claim", 16#1F6C4#), (+"left_luggage", 16#1F6C5#), (+"sleeping_accommodation", 16#1F6CC#), (+"place_of_worship", 16#1F6D0#), (+"octagonal_sign", 16#1F6D1#), (+"shopping_trolley", 16#1F6D2#), (+"hindu_temple", 16#1F6D5#), (+"hut", 16#1F6D6#), (+"elevator", 16#1F6D7#), (+"airplane_departure", 16#1F6EB#), (+"airplane_arriving", 16#1F6EC#), (+"scooter", 16#1F6F4#), (+"motor_scooter", 16#1F6F5#), (+"canoe", 16#1F6F6#), (+"sled", 16#1F6F7#), (+"flying_saucer", 16#1F6F8#), (+"skateboard", 16#1F6F9#), (+"auto_rickshaw", 16#1F6FA#), (+"pickup_truck", 16#1F6FB#), (+"roller_skate", 16#1F6FC#), (+"large_orange_circle", 16#1F7E0#), (+"large_yellow_circle", 16#1F7E1#), (+"large_green_circle", 16#1F7E2#), (+"large_purple_circle", 16#1F7E3#), (+"large_brown_circle", 16#1F7E4#), (+"large_red_square", 16#1F7E5#), (+"large_blue_square", 16#1F7E6#), (+"large_orange_square", 16#1F7E7#), (+"large_yellow_square", 16#1F7E8#), (+"large_green_square", 16#1F7E9#), (+"large_purple_square", 16#1F7EA#), (+"large_brown_square", 16#1F7EB#), (+"pinched_fingers", 16#1F90C#), (+"white_heart", 16#1F90D#), (+"brown_heart", 16#1F90E#), (+"pinching_hand", 16#1F90F#), (+"zipper_mouth_face", 16#1F910#), (+"money_mouth_face", 16#1F911#), (+"face_with_thermometer", 16#1F912#), (+"nerd_face", 16#1F913#), (+"thinking_face", 16#1F914#), (+"face_with_head_bandage", 16#1F915#), (+"robot_face", 16#1F916#), (+"hugging_face", 16#1F917#), (+"the_horns", 16#1F918#), (+"call_me_hand", 16#1F919#), (+"raised_back_of_hand", 16#1F91A#), (+"left-facing_fist", 16#1F91B#), (+"right-facing_fist", 16#1F91C#), (+"handshake", 16#1F91D#), (+"crossed_fingers", 16#1F91E#), (+"i_love_you_hand_sign", 16#1F91F#), (+"face_with_cowboy_hat", 16#1F920#), (+"clown_face", 16#1F921#), (+"nauseated_face", 16#1F922#), (+"rolling_on_the_floor_laughing", 16#1F923#), (+"drooling_face", 16#1F924#), (+"lying_face", 16#1F925#), (+"face_palm", 16#1F926#), (+"sneezing_face", 16#1F927#), (+"face_with_raised_eyebrow", 16#1F928#), (+"star-struck", 16#1F929#), (+"zany_face", 16#1F92A#), (+"shushing_face", 16#1F92B#), (+"face_with_symbols_on_mouth", 16#1F92C#), (+"face_with_hand_over_mouth", 16#1F92D#), (+"face_vomiting", 16#1F92E#), (+"exploding_head", 16#1F92F#), (+"pregnant_woman", 16#1F930#), (+"breast-feeding", 16#1F931#), (+"palms_up_together", 16#1F932#), (+"selfie", 16#1F933#), (+"prince", 16#1F934#), (+"person_in_tuxedo", 16#1F935#), (+"mrs_claus", 16#1F936#), (+"shrug", 16#1F937#), (+"person_doing_cartwheel", 16#1F938#), (+"juggling", 16#1F939#), (+"fencer", 16#1F93A#), (+"wrestlers", 16#1F93C#), (+"water_polo", 16#1F93D#), (+"handball", 16#1F93E#), (+"diving_mask", 16#1F93F#), (+"wilted_flower", 16#1F940#), (+"drum_with_drumsticks", 16#1F941#), (+"clinking_glasses", 16#1F942#), (+"tumbler_glass", 16#1F943#), (+"spoon", 16#1F944#), (+"goal_net", 16#1F945#), (+"first_place_medal", 16#1F947#), (+"second_place_medal", 16#1F948#), (+"third_place_medal", 16#1F949#), (+"boxing_glove", 16#1F94A#), (+"martial_arts_uniform", 16#1F94B#), (+"curling_stone", 16#1F94C#), (+"lacrosse", 16#1F94D#), (+"softball", 16#1F94E#), (+"flying_disc", 16#1F94F#), (+"croissant", 16#1F950#), (+"avocado", 16#1F951#), (+"cucumber", 16#1F952#), (+"bacon", 16#1F953#), (+"potato", 16#1F954#), (+"carrot", 16#1F955#), (+"baguette_bread", 16#1F956#), (+"green_salad", 16#1F957#), (+"shallow_pan_of_food", 16#1F958#), (+"stuffed_flatbread", 16#1F959#), (+"egg", 16#1F95A#), (+"glass_of_milk", 16#1F95B#), (+"peanuts", 16#1F95C#), (+"kiwifruit", 16#1F95D#), (+"pancakes", 16#1F95E#), (+"dumpling", 16#1F95F#), (+"fortune_cookie", 16#1F960#), (+"takeout_box", 16#1F961#), (+"chopsticks", 16#1F962#), (+"bowl_with_spoon", 16#1F963#), (+"cup_with_straw", 16#1F964#), (+"coconut", 16#1F965#), (+"broccoli", 16#1F966#), (+"pie", 16#1F967#), (+"pretzel", 16#1F968#), (+"cut_of_meat", 16#1F969#), (+"sandwich", 16#1F96A#), (+"canned_food", 16#1F96B#), (+"leafy_green", 16#1F96C#), (+"mango", 16#1F96D#), (+"moon_cake", 16#1F96E#), (+"bagel", 16#1F96F#), (+"smiling_face_with_3_hearts", 16#1F970#), (+"yawning_face", 16#1F971#), (+"smiling_face_with_tear", 16#1F972#), (+"partying_face", 16#1F973#), (+"woozy_face", 16#1F974#), (+"hot_face", 16#1F975#), (+"cold_face", 16#1F976#), (+"ninja", 16#1F977#), (+"disguised_face", 16#1F978#), (+"pleading_face", 16#1F97A#), (+"sari", 16#1F97B#), (+"lab_coat", 16#1F97C#), (+"goggles", 16#1F97D#), (+"hiking_boot", 16#1F97E#), (+"womans_flat_shoe", 16#1F97F#), (+"crab", 16#1F980#), (+"lion_face", 16#1F981#), (+"scorpion", 16#1F982#), (+"turkey", 16#1F983#), (+"unicorn_face", 16#1F984#), (+"eagle", 16#1F985#), (+"duck", 16#1F986#), (+"bat", 16#1F987#), (+"shark", 16#1F988#), (+"owl", 16#1F989#), (+"fox_face", 16#1F98A#), (+"butterfly", 16#1F98B#), (+"deer", 16#1F98C#), (+"gorilla", 16#1F98D#), (+"lizard", 16#1F98E#), (+"rhinoceros", 16#1F98F#), (+"shrimp", 16#1F990#), (+"squid", 16#1F991#), (+"giraffe_face", 16#1F992#), (+"zebra_face", 16#1F993#), (+"hedgehog", 16#1F994#), (+"sauropod", 16#1F995#), (+"t-rex", 16#1F996#), (+"cricket", 16#1F997#), (+"kangaroo", 16#1F998#), (+"llama", 16#1F999#), (+"peacock", 16#1F99A#), (+"hippopotamus", 16#1F99B#), (+"parrot", 16#1F99C#), (+"raccoon", 16#1F99D#), (+"lobster", 16#1F99E#), (+"mosquito", 16#1F99F#), (+"microbe", 16#1F9A0#), (+"badger", 16#1F9A1#), (+"swan", 16#1F9A2#), (+"mammoth", 16#1F9A3#), (+"dodo", 16#1F9A4#), (+"sloth", 16#1F9A5#), (+"otter", 16#1F9A6#), (+"orangutan", 16#1F9A7#), (+"skunk", 16#1F9A8#), (+"flamingo", 16#1F9A9#), (+"oyster", 16#1F9AA#), (+"beaver", 16#1F9AB#), (+"bison", 16#1F9AC#), (+"seal", 16#1F9AD#), (+"guide_dog", 16#1F9AE#), (+"probing_cane", 16#1F9AF#), (+"bone", 16#1F9B4#), (+"leg", 16#1F9B5#), (+"foot", 16#1F9B6#), (+"tooth", 16#1F9B7#), (+"superhero", 16#1F9B8#), (+"supervillain", 16#1F9B9#), (+"safety_vest", 16#1F9BA#), (+"ear_with_hearing_aid", 16#1F9BB#), (+"motorized_wheelchair", 16#1F9BC#), (+"manual_wheelchair", 16#1F9BD#), (+"mechanical_arm", 16#1F9BE#), (+"mechanical_leg", 16#1F9BF#), (+"cheese_wedge", 16#1F9C0#), (+"cupcake", 16#1F9C1#), (+"salt", 16#1F9C2#), (+"beverage_box", 16#1F9C3#), (+"garlic", 16#1F9C4#), (+"onion", 16#1F9C5#), (+"falafel", 16#1F9C6#), (+"waffle", 16#1F9C7#), (+"butter", 16#1F9C8#), (+"mate_drink", 16#1F9C9#), (+"ice_cube", 16#1F9CA#), (+"bubble_tea", 16#1F9CB#), (+"standing_person", 16#1F9CD#), (+"kneeling_person", 16#1F9CE#), (+"deaf_person", 16#1F9CF#), (+"face_with_monocle", 16#1F9D0#), (+"adult", 16#1F9D1#), (+"child", 16#1F9D2#), (+"older_adult", 16#1F9D3#), (+"bearded_person", 16#1F9D4#), (+"person_with_headscarf", 16#1F9D5#), (+"person_in_steamy_room", 16#1F9D6#), (+"person_climbing", 16#1F9D7#), (+"person_in_lotus_position", 16#1F9D8#), (+"mage", 16#1F9D9#), (+"fairy", 16#1F9DA#), (+"vampire", 16#1F9DB#), (+"merperson", 16#1F9DC#), (+"elf", 16#1F9DD#), (+"genie", 16#1F9DE#), (+"zombie", 16#1F9DF#), (+"brain", 16#1F9E0#), (+"orange_heart", 16#1F9E1#), (+"billed_cap", 16#1F9E2#), (+"scarf", 16#1F9E3#), (+"gloves", 16#1F9E4#), (+"coat", 16#1F9E5#), (+"socks", 16#1F9E6#), (+"red_envelope", 16#1F9E7#), (+"firecracker", 16#1F9E8#), (+"jigsaw", 16#1F9E9#), (+"test_tube", 16#1F9EA#), (+"petri_dish", 16#1F9EB#), (+"dna", 16#1F9EC#), (+"compass", 16#1F9ED#), (+"abacus", 16#1F9EE#), (+"fire_extinguisher", 16#1F9EF#), (+"toolbox", 16#1F9F0#), (+"bricks", 16#1F9F1#), (+"magnet", 16#1F9F2#), (+"luggage", 16#1F9F3#), (+"lotion_bottle", 16#1F9F4#), (+"thread", 16#1F9F5#), (+"yarn", 16#1F9F6#), (+"safety_pin", 16#1F9F7#), (+"teddy_bear", 16#1F9F8#), (+"broom", 16#1F9F9#), (+"basket", 16#1F9FA#), (+"roll_of_paper", 16#1F9FB#), (+"soap", 16#1F9FC#), (+"sponge", 16#1F9FD#), (+"receipt", 16#1F9FE#), (+"nazar_amulet", 16#1F9FF#), (+"ballet_shoes", 16#1FA70#), (+"one-piece_swimsuit", 16#1FA71#), (+"briefs", 16#1FA72#), (+"shorts", 16#1FA73#), (+"thong_sandal", 16#1FA74#), (+"drop_of_blood", 16#1FA78#), (+"adhesive_bandage", 16#1FA79#), (+"stethoscope", 16#1FA7A#), (+"yo-yo", 16#1FA80#), (+"kite", 16#1FA81#), (+"parachute", 16#1FA82#), (+"boomerang", 16#1FA83#), (+"magic_wand", 16#1FA84#), (+"pinata", 16#1FA85#), (+"nesting_dolls", 16#1FA86#), (+"ringed_planet", 16#1FA90#), (+"chair", 16#1FA91#), (+"razor", 16#1FA92#), (+"axe", 16#1FA93#), (+"diya_lamp", 16#1FA94#), (+"banjo", 16#1FA95#), (+"military_helmet", 16#1FA96#), (+"accordion", 16#1FA97#), (+"long_drum", 16#1FA98#), (+"coin", 16#1FA99#), (+"carpentry_saw", 16#1FA9A#), (+"screwdriver", 16#1FA9B#), (+"ladder", 16#1FA9C#), (+"hook", 16#1FA9D#), (+"mirror", 16#1FA9E#), (+"window", 16#1FA9F#), (+"plunger", 16#1FAA0#), (+"sewing_needle", 16#1FAA1#), (+"knot", 16#1FAA2#), (+"bucket", 16#1FAA3#), (+"mouse_trap", 16#1FAA4#), (+"toothbrush", 16#1FAA5#), (+"headstone", 16#1FAA6#), (+"placard", 16#1FAA7#), (+"rock", 16#1FAA8#), (+"fly", 16#1FAB0#), (+"worm", 16#1FAB1#), (+"beetle", 16#1FAB2#), (+"cockroach", 16#1FAB3#), (+"potted_plant", 16#1FAB4#), (+"wood", 16#1FAB5#), (+"feather", 16#1FAB6#), (+"anatomical_heart", 16#1FAC0#), (+"lungs", 16#1FAC1#), (+"people_hugging", 16#1FAC2#), (+"blueberries", 16#1FAD0#), (+"bell_pepper", 16#1FAD1#), (+"olive", 16#1FAD2#), (+"flatbread", 16#1FAD3#), (+"tamale", 16#1FAD4#), (+"fondue", 16#1FAD5#), (+"teapot", 16#1FAD6#), (+"watch", 16#231A#), (+"hourglass", 16#231B#), (+"fast_forward", 16#23E9#), (+"rewind", 16#23EA#), (+"arrow_double_up", 16#23EB#), (+"arrow_double_down", 16#23EC#), (+"alarm_clock", 16#23F0#), (+"hourglass_flowing_sand", 16#23F3#), (+"white_medium_small_square", 16#25FD#), (+"black_medium_small_square", 16#25FE#), (+"umbrella_with_rain_drops", 16#2614#), (+"coffee", 16#2615#), (+"aries", 16#2648#), (+"taurus", 16#2649#), (+"gemini", 16#264A#), (+"cancer", 16#264B#), (+"leo", 16#264C#), (+"virgo", 16#264D#), (+"libra", 16#264E#), (+"scorpius", 16#264F#), (+"sagittarius", 16#2650#), (+"capricorn", 16#2651#), (+"aquarius", 16#2652#), (+"pisces", 16#2653#), (+"wheelchair", 16#267F#), (+"anchor", 16#2693#), (+"zap", 16#26A1#), (+"white_circle", 16#26AA#), (+"black_circle", 16#26AB#), (+"soccer", 16#26BD#), (+"baseball", 16#26BE#), (+"snowman_without_snow", 16#26C4#), (+"partly_sunny", 16#26C5#), (+"ophiuchus", 16#26CE#), (+"no_entry", 16#26D4#), (+"church", 16#26EA#), (+"fountain", 16#26F2#), (+"golf", 16#26F3#), (+"boat", 16#26F5#), (+"tent", 16#26FA#), (+"fuelpump", 16#26FD#), (+"white_check_mark", 16#2705#), (+"fist", 16#270A#), (+"hand", 16#270B#), (+"sparkles", 16#2728#), (+"x", 16#274C#), (+"negative_squared_cross_mark", 16#274E#), (+"question", 16#2753#), (+"grey_question", 16#2754#), (+"grey_exclamation", 16#2755#), (+"exclamation", 16#2757#), (+"heavy_plus_sign", 16#2795#), (+"heavy_minus_sign", 16#2796#), (+"heavy_division_sign", 16#2797#), (+"curly_loop", 16#27B0#), (+"loop", 16#27BF#), (+"black_large_square", 16#2B1B#), (+"white_large_square", 16#2B1C#), (+"star", 16#2B50#), (+"o", 16#2B55#)); end Emojis;
37.31398
91
0.508528
189566909e80105f4fc3ee27bb6aeec427976c97
576
ads
Ada
generated-sources/ada-server/mojang-sessions/src/com-github.ads
AsyncMC/Mojang-API-Libs
b01bbd2bce44bfa2b9ed705a128cf4ecda077916
[ "Apache-2.0" ]
null
null
null
generated-sources/ada-server/mojang-sessions/src/com-github.ads
AsyncMC/Mojang-API-Libs
b01bbd2bce44bfa2b9ed705a128cf4ecda077916
[ "Apache-2.0" ]
null
null
null
generated-sources/ada-server/mojang-sessions/src/com-github.ads
AsyncMC/Mojang-API-Libs
b01bbd2bce44bfa2b9ed705a128cf4ecda077916
[ "Apache-2.0" ]
null
null
null
-- Mojang Session API -- No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -- ------------ EDIT NOTE ------------ -- This file was generated with openapi-generator. You can modify it to implement -- the server. After you modify this file, you should add the following line -- to the .openapi-generator-ignore file: -- -- src/com-github-asyncmc-mojang-sessions-ada-server-model.ads -- -- Then, you can drop this edit note comment. -- ------------ EDIT NOTE ------------ package com.github is end com.github;
38.4
110
0.677083
4d8fa315c94b6b06c75290d3135464395652001d
2,784
adb
Ada
demo/tutorial/guis.adb
csb6/libtcod-ada
89c2a75eb357a8468ccb0a6476391a6b388f00b4
[ "BSD-3-Clause" ]
null
null
null
demo/tutorial/guis.adb
csb6/libtcod-ada
89c2a75eb357a8468ccb0a6476391a6b388f00b4
[ "BSD-3-Clause" ]
null
null
null
demo/tutorial/guis.adb
csb6/libtcod-ada
89c2a75eb357a8468ccb0a6476391a6b388f00b4
[ "BSD-3-Clause" ]
null
null
null
with Engines, Ada.Strings.Fixed; package body GUIs is use Ada.Strings; use type Console.Y_Pos; Log_X : constant := Bar_Width + 2; Message_Height : constant := Panel_Height - 1; procedure render_bar(self : in out GUI; x : Console.X_Pos; y : Console.Y_Pos; w : Width; name : String; value, max_value : Float; bar_color, bg_color : RGB_Color) is bar_w : Width := Width(Float'Rounding(value / max_value * Float(w))); begin self.screen.set_default_bg(bg_color); self.screen.rect(x, y, w, h => 1); if bar_w > 0 then self.screen.set_default_bg(bar_color); self.screen.rect(x, y, bar_w, h => 1); end if; self.screen.set_default_fg(Color.white); self.screen.print(x, y, name & " :" & Integer(value)'Image & " /" & Integer(max_value)'Image); end render_bar; function make_GUI(screen_w : Width) return GUI is begin return self : GUI := (screen => Console.make_screen(screen_w, Panel_Height), log => <>); end make_GUI; procedure render(self : in out GUI; main_screen : in out Console.Screen; engine : in out Engines.Engine) is y : Console.Y_Pos := 1; begin self.screen.set_default_bg(Color.black); self.screen.clear; self.render_bar(1, 1, Bar_Width, "HP", Float(engine.player.destructible.hp), Float(engine.player.destructible.max_hp), bar_color => Color.light_red, bg_color => Color.dark_red); for message of self.log loop self.screen.set_default_fg(message.color); self.screen.print(Log_X, y, Log_Strings.To_String(message.text)); y := y + 1; end loop; self.screen.blit(0, 0, main_screen.get_width, Panel_Height, main_screen, 0, Console.Y_Pos(main_screen.get_height-Panel_Height)); end render; procedure log(self : in out GUI; text : String; color : RGB_Color := Libtcod.Color.light_grey) is curr_pos : Positive := text'First; newline_pos : Natural; begin loop if self.log.Length = Message_Height then self.log.Delete_First; end if; newline_pos := Fixed.Index(text, ASCII.LF & "", curr_pos); if newline_pos = 0 then self.log.Append((Log_Strings.To_Bounded_String(text(curr_pos .. text'Last), Drop => Right), color)); exit; end if; self.log.Append((Log_Strings.To_Bounded_String(text(curr_pos .. newline_pos - 1), Drop => Right), color)); curr_pos := newline_pos + 1; exit when curr_pos > text'Last; end loop; end log; end GUIs;
36.631579
100
0.58908
4d89c498aa001823d6a8bd175148196b5726bc0c
1,800
ads
Ada
src/generated/sys_utypes_utime_t_h.ads
csb6/libtcod-ada
89c2a75eb357a8468ccb0a6476391a6b388f00b4
[ "BSD-3-Clause" ]
null
null
null
src/generated/sys_utypes_utime_t_h.ads
csb6/libtcod-ada
89c2a75eb357a8468ccb0a6476391a6b388f00b4
[ "BSD-3-Clause" ]
null
null
null
src/generated/sys_utypes_utime_t_h.ads
csb6/libtcod-ada
89c2a75eb357a8468ccb0a6476391a6b388f00b4
[ "BSD-3-Clause" ]
null
null
null
pragma Ada_2012; pragma Style_Checks (Off); with Interfaces.C; use Interfaces.C; with i386_utypes_h; package sys_utypes_utime_t_h is -- * Copyright (c) 2003-2012 Apple Inc. All rights reserved. -- * -- * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ -- * -- * This file contains Original Code and/or Modifications of Original Code -- * as defined in and that are subject to the Apple Public Source License -- * Version 2.0 (the 'License'). You may not use this file except in -- * compliance with the License. The rights granted to you under the License -- * may not be used to create, or enable the creation or redistribution of, -- * unlawful or unlicensed copies of an Apple operating system, or to -- * circumvent, violate, or enable the circumvention or violation of, any -- * terms of an Apple operating system software license agreement. -- * -- * Please obtain a copy of the License at -- * http://www.opensource.apple.com/apsl/ and read it before using this file. -- * -- * The Original Code and all software distributed under the License are -- * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER -- * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, -- * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, -- * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. -- * Please see the License for the specific language governing rights and -- * limitations under the License. -- * -- * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ -- -- __darwin_time_t subtype time_t is i386_utypes_h.uu_darwin_time_t; -- /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types/_time_t.h:31 end sys_utypes_utime_t_h;
45
187
0.733889
50eefd9abbcff71c5352530a4a14a54480a200a1
4,865
ads
Ada
source/amf/ocl/amf-ocl-let_exps-collections.ads
svn2github/matreshka
9d222b3ad9da508855fb1f5adbe5e8a4fad4c530
[ "BSD-3-Clause" ]
24
2016-11-29T06:59:41.000Z
2021-08-30T11:55:16.000Z
source/amf/ocl/amf-ocl-let_exps-collections.ads
svn2github/matreshka
9d222b3ad9da508855fb1f5adbe5e8a4fad4c530
[ "BSD-3-Clause" ]
2
2019-01-16T05:15:20.000Z
2019-02-03T10:03:32.000Z
source/amf/ocl/amf-ocl-let_exps-collections.ads
svn2github/matreshka
9d222b3ad9da508855fb1f5adbe5e8a4fad4c530
[ "BSD-3-Clause" ]
4
2017-07-18T07:11:05.000Z
2020-06-21T03:02:25.000Z
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- Ada Modeling Framework -- -- -- -- Runtime Library Component -- -- -- ------------------------------------------------------------------------------ -- -- -- Copyright © 2012-2013, Vadim Godunko <[email protected]> -- -- All rights reserved. -- -- -- -- Redistribution and use in source and binary forms, with or without -- -- modification, are permitted provided that the following conditions -- -- are met: -- -- -- -- * Redistributions of source code must retain the above copyright -- -- notice, this list of conditions and the following disclaimer. -- -- -- -- * Redistributions in binary form must reproduce the above copyright -- -- notice, this list of conditions and the following disclaimer in the -- -- documentation and/or other materials provided with the distribution. -- -- -- -- * Neither the name of the Vadim Godunko, IE nor the names of its -- -- contributors may be used to endorse or promote products derived from -- -- this software without specific prior written permission. -- -- -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- -- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -- -- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -- -- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -- -- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED -- -- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -- -- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -- -- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -- -- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -- -- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- -- -- ------------------------------------------------------------------------------ -- $Revision$ $Date$ ------------------------------------------------------------------------------ -- This file is generated, don't edit it. ------------------------------------------------------------------------------ with AMF.Generic_Collections; package AMF.OCL.Let_Exps.Collections is pragma Preelaborate; package OCL_Let_Exp_Collections is new AMF.Generic_Collections (OCL_Let_Exp, OCL_Let_Exp_Access); type Set_Of_OCL_Let_Exp is new OCL_Let_Exp_Collections.Set with null record; Empty_Set_Of_OCL_Let_Exp : constant Set_Of_OCL_Let_Exp; type Ordered_Set_Of_OCL_Let_Exp is new OCL_Let_Exp_Collections.Ordered_Set with null record; Empty_Ordered_Set_Of_OCL_Let_Exp : constant Ordered_Set_Of_OCL_Let_Exp; type Bag_Of_OCL_Let_Exp is new OCL_Let_Exp_Collections.Bag with null record; Empty_Bag_Of_OCL_Let_Exp : constant Bag_Of_OCL_Let_Exp; type Sequence_Of_OCL_Let_Exp is new OCL_Let_Exp_Collections.Sequence with null record; Empty_Sequence_Of_OCL_Let_Exp : constant Sequence_Of_OCL_Let_Exp; private Empty_Set_Of_OCL_Let_Exp : constant Set_Of_OCL_Let_Exp := (OCL_Let_Exp_Collections.Set with null record); Empty_Ordered_Set_Of_OCL_Let_Exp : constant Ordered_Set_Of_OCL_Let_Exp := (OCL_Let_Exp_Collections.Ordered_Set with null record); Empty_Bag_Of_OCL_Let_Exp : constant Bag_Of_OCL_Let_Exp := (OCL_Let_Exp_Collections.Bag with null record); Empty_Sequence_Of_OCL_Let_Exp : constant Sequence_Of_OCL_Let_Exp := (OCL_Let_Exp_Collections.Sequence with null record); end AMF.OCL.Let_Exps.Collections;
52.880435
78
0.502775
0b94d8b2a1f7b0b3455477ee0da5993d656e6e6a
63,074
ads
Ada
src/fonts/geste_fonts-freeserifbolditalic12pt7b.ads
Fabien-Chouteau/GESTE
5ac814906fdb49d880db60cbb17279cbbb777336
[ "BSD-3-Clause" ]
13
2018-07-31T12:11:46.000Z
2021-11-19T14:16:46.000Z
src/fonts/geste_fonts-freeserifbolditalic12pt7b.ads
gregkrsak/GESTE
5ac814906fdb49d880db60cbb17279cbbb777336
[ "BSD-3-Clause" ]
1
2018-10-22T21:41:59.000Z
2018-10-22T21:41:59.000Z
src/fonts/geste_fonts-freeserifbolditalic12pt7b.ads
gregkrsak/GESTE
5ac814906fdb49d880db60cbb17279cbbb777336
[ "BSD-3-Clause" ]
4
2020-07-03T10:03:13.000Z
2022-02-10T03:35:07.000Z
package GESTE_Fonts.FreeSerifBoldItalic12pt7b is Font : constant Bitmap_Font_Ref; private FreeSerifBoldItalic12pt7bBitmaps : aliased constant Font_Bitmap := ( 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#01#, 16#80#, 16#00#, 16#07#, 16#80#, 16#00#, 16#0F#, 16#00#, 16#00#, 16#1C#, 16#00#, 16#00#, 16#38#, 16#00#, 16#00#, 16#60#, 16#00#, 16#00#, 16#C0#, 16#00#, 16#01#, 16#00#, 16#00#, 16#06#, 16#00#, 16#00#, 16#08#, 16#00#, 16#00#, 16#10#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#03#, 16#00#, 16#00#, 16#07#, 16#00#, 16#00#, 16#0E#, 16#00#, 16#00#, 16#1C#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#06#, 16#0C#, 16#00#, 16#0E#, 16#38#, 16#00#, 16#18#, 16#60#, 16#00#, 16#70#, 16#C0#, 16#00#, 16#C1#, 16#80#, 16#01#, 16#82#, 16#00#, 16#02#, 16#04#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#01#, 16#8C#, 16#00#, 16#03#, 16#30#, 16#00#, 16#0C#, 16#60#, 16#00#, 16#19#, 16#80#, 16#00#, 16#63#, 16#00#, 16#07#, 16#FF#, 16#80#, 16#03#, 16#18#, 16#00#, 16#06#, 16#30#, 16#00#, 16#0C#, 16#C0#, 16#00#, 16#31#, 16#80#, 16#01#, 16#FF#, 16#C0#, 16#01#, 16#8C#, 16#00#, 16#03#, 16#30#, 16#00#, 16#0C#, 16#60#, 16#00#, 16#18#, 16#C0#, 16#00#, 16#33#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#10#, 16#00#, 16#00#, 16#20#, 16#00#, 16#07#, 16#E0#, 16#00#, 16#19#, 16#60#, 16#00#, 16#62#, 16#60#, 16#00#, 16#C4#, 16#80#, 16#01#, 16#D1#, 16#00#, 16#03#, 16#E0#, 16#00#, 16#07#, 16#C0#, 16#00#, 16#07#, 16#C0#, 16#00#, 16#03#, 16#C0#, 16#00#, 16#07#, 16#C0#, 16#00#, 16#0B#, 16#80#, 16#02#, 16#33#, 16#00#, 16#04#, 16#46#, 16#00#, 16#08#, 16#8C#, 16#00#, 16#1B#, 16#38#, 16#00#, 16#0E#, 16#E0#, 16#00#, 16#0F#, 16#00#, 16#00#, 16#10#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#80#, 16#07#, 16#83#, 16#00#, 16#1C#, 16#FC#, 16#00#, 16#71#, 16#18#, 16#00#, 16#E2#, 16#20#, 16#03#, 16#84#, 16#C0#, 16#07#, 16#11#, 16#00#, 16#0E#, 16#26#, 16#00#, 16#1C#, 16#88#, 16#00#, 16#1E#, 16#31#, 16#E0#, 16#00#, 16#47#, 16#20#, 16#01#, 16#1C#, 16#40#, 16#02#, 16#78#, 16#80#, 16#08#, 16#E1#, 16#00#, 16#31#, 16#C4#, 16#00#, 16#43#, 16#88#, 16#01#, 16#87#, 16#20#, 16#02#, 16#07#, 16#80#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#78#, 16#00#, 16#01#, 16#98#, 16#00#, 16#07#, 16#30#, 16#00#, 16#0E#, 16#60#, 16#00#, 16#1D#, 16#80#, 16#00#, 16#3E#, 16#00#, 16#00#, 16#70#, 16#00#, 16#03#, 16#E7#, 16#E0#, 16#0D#, 16#C3#, 16#00#, 16#33#, 16#C4#, 16#00#, 16#E3#, 16#98#, 16#03#, 16#87#, 16#20#, 16#07#, 16#0F#, 16#C0#, 16#0E#, 16#0F#, 16#00#, 16#1E#, 16#1E#, 16#00#, 16#1E#, 16#1E#, 16#60#, 16#1F#, 16#DF#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#06#, 16#00#, 16#00#, 16#1C#, 16#00#, 16#00#, 16#38#, 16#00#, 16#00#, 16#70#, 16#00#, 16#00#, 16#C0#, 16#00#, 16#01#, 16#80#, 16#00#, 16#02#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#80#, 16#00#, 16#02#, 16#00#, 16#00#, 16#08#, 16#00#, 16#00#, 16#30#, 16#00#, 16#00#, 16#C0#, 16#00#, 16#03#, 16#00#, 16#00#, 16#06#, 16#00#, 16#00#, 16#1C#, 16#00#, 16#00#, 16#38#, 16#00#, 16#00#, 16#60#, 16#00#, 16#00#, 16#C0#, 16#00#, 16#01#, 16#80#, 16#00#, 16#03#, 16#00#, 16#00#, 16#06#, 16#00#, 16#00#, 16#0C#, 16#00#, 16#00#, 16#18#, 16#00#, 16#00#, 16#10#, 16#00#, 16#00#, 16#20#, 16#00#, 16#00#, 16#20#, 16#00#, 16#00#, 16#40#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#10#, 16#00#, 16#00#, 16#10#, 16#00#, 16#00#, 16#10#, 16#00#, 16#00#, 16#20#, 16#00#, 16#00#, 16#60#, 16#00#, 16#00#, 16#C0#, 16#00#, 16#01#, 16#80#, 16#00#, 16#03#, 16#00#, 16#00#, 16#06#, 16#00#, 16#00#, 16#0E#, 16#00#, 16#00#, 16#18#, 16#00#, 16#00#, 16#30#, 16#00#, 16#00#, 16#60#, 16#00#, 16#01#, 16#C0#, 16#00#, 16#03#, 16#00#, 16#00#, 16#06#, 16#00#, 16#00#, 16#18#, 16#00#, 16#00#, 16#60#, 16#00#, 16#00#, 16#80#, 16#00#, 16#02#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#03#, 16#00#, 16#00#, 16#36#, 16#60#, 16#00#, 16#65#, 16#C0#, 16#00#, 16#F7#, 16#80#, 16#00#, 16#10#, 16#00#, 16#03#, 16#DE#, 16#00#, 16#06#, 16#5C#, 16#00#, 16#0D#, 16#98#, 16#00#, 16#03#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#18#, 16#00#, 16#00#, 16#30#, 16#00#, 16#00#, 16#60#, 16#00#, 16#00#, 16#C0#, 16#00#, 16#01#, 16#80#, 16#00#, 16#7F#, 16#F8#, 16#00#, 16#FF#, 16#F0#, 16#00#, 16#0C#, 16#00#, 16#00#, 16#18#, 16#00#, 16#00#, 16#30#, 16#00#, 16#00#, 16#60#, 16#00#, 16#00#, 16#C0#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#07#, 16#00#, 16#00#, 16#0E#, 16#00#, 16#00#, 16#1C#, 16#00#, 16#00#, 16#18#, 16#00#, 16#00#, 16#30#, 16#00#, 16#00#, 16#40#, 16#00#, 16#01#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#7C#, 16#00#, 16#01#, 16#F8#, 16#00#, 16#03#, 16#F0#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#0E#, 16#00#, 16#00#, 16#1C#, 16#00#, 16#00#, 16#38#, 16#00#, 16#00#, 16#70#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#C0#, 16#00#, 16#01#, 16#80#, 16#00#, 16#06#, 16#00#, 16#00#, 16#0C#, 16#00#, 16#00#, 16#38#, 16#00#, 16#00#, 16#60#, 16#00#, 16#01#, 16#C0#, 16#00#, 16#03#, 16#00#, 16#00#, 16#0E#, 16#00#, 16#00#, 16#18#, 16#00#, 16#00#, 16#30#, 16#00#, 16#00#, 16#C0#, 16#00#, 16#01#, 16#80#, 16#00#, 16#06#, 16#00#, 16#00#, 16#0C#, 16#00#, 16#00#, 16#30#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#01#, 16#C0#, 16#00#, 16#0E#, 16#40#, 16#00#, 16#38#, 16#C0#, 16#00#, 16#71#, 16#80#, 16#01#, 16#C3#, 16#00#, 16#03#, 16#8E#, 16#00#, 16#0F#, 16#1C#, 16#00#, 16#1C#, 16#38#, 16#00#, 16#38#, 16#70#, 16#00#, 16#70#, 16#E0#, 16#01#, 16#E3#, 16#C0#, 16#03#, 16#87#, 16#00#, 16#07#, 16#0E#, 16#00#, 16#06#, 16#38#, 16#00#, 16#0C#, 16#70#, 16#00#, 16#19#, 16#C0#, 16#00#, 16#1E#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#E0#, 16#00#, 16#0F#, 16#C0#, 16#00#, 16#07#, 16#00#, 16#00#, 16#0E#, 16#00#, 16#00#, 16#1C#, 16#00#, 16#00#, 16#78#, 16#00#, 16#00#, 16#E0#, 16#00#, 16#01#, 16#C0#, 16#00#, 16#07#, 16#80#, 16#00#, 16#0E#, 16#00#, 16#00#, 16#1C#, 16#00#, 16#00#, 16#38#, 16#00#, 16#00#, 16#F0#, 16#00#, 16#01#, 16#C0#, 16#00#, 16#03#, 16#80#, 16#00#, 16#0F#, 16#00#, 16#00#, 16#7F#, 16#80#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#01#, 16#E0#, 16#00#, 16#0F#, 16#E0#, 16#00#, 16#31#, 16#C0#, 16#00#, 16#43#, 16#C0#, 16#00#, 16#07#, 16#80#, 16#00#, 16#0E#, 16#00#, 16#00#, 16#1C#, 16#00#, 16#00#, 16#30#, 16#00#, 16#00#, 16#E0#, 16#00#, 16#03#, 16#80#, 16#00#, 16#04#, 16#00#, 16#00#, 16#10#, 16#00#, 16#00#, 16#41#, 16#00#, 16#01#, 16#04#, 16#00#, 16#07#, 16#F8#, 16#00#, 16#1F#, 16#F0#, 16#00#, 16#7F#, 16#C0#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#03#, 16#E0#, 16#00#, 16#09#, 16#E0#, 16#00#, 16#21#, 16#C0#, 16#00#, 16#03#, 16#80#, 16#00#, 16#07#, 16#00#, 16#00#, 16#1C#, 16#00#, 16#00#, 16#F0#, 16#00#, 16#03#, 16#E0#, 16#00#, 16#01#, 16#E0#, 16#00#, 16#01#, 16#C0#, 16#00#, 16#03#, 16#80#, 16#00#, 16#07#, 16#00#, 16#00#, 16#0E#, 16#00#, 16#00#, 16#18#, 16#00#, 16#1C#, 16#30#, 16#00#, 16#3C#, 16#C0#, 16#00#, 16#3E#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#18#, 16#00#, 16#00#, 16#70#, 16#00#, 16#01#, 16#E0#, 16#00#, 16#07#, 16#C0#, 16#00#, 16#17#, 16#00#, 16#00#, 16#4E#, 16#00#, 16#01#, 16#1C#, 16#00#, 16#04#, 16#70#, 16#00#, 16#10#, 16#E0#, 16#00#, 16#41#, 16#C0#, 16#00#, 16#FF#, 16#C0#, 16#03#, 16#FF#, 16#80#, 16#00#, 16#1C#, 16#00#, 16#00#, 16#38#, 16#00#, 16#00#, 16#E0#, 16#00#, 16#01#, 16#C0#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#03#, 16#F8#, 16#00#, 16#07#, 16#F0#, 16#00#, 16#1F#, 16#C0#, 16#00#, 16#20#, 16#00#, 16#00#, 16#C0#, 16#00#, 16#01#, 16#E0#, 16#00#, 16#03#, 16#F0#, 16#00#, 16#0F#, 16#E0#, 16#00#, 16#01#, 16#E0#, 16#00#, 16#01#, 16#C0#, 16#00#, 16#01#, 16#80#, 16#00#, 16#03#, 16#00#, 16#00#, 16#06#, 16#00#, 16#00#, 16#0C#, 16#00#, 16#1C#, 16#30#, 16#00#, 16#3C#, 16#C0#, 16#00#, 16#3E#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#18#, 16#00#, 16#01#, 16#E0#, 16#00#, 16#07#, 16#00#, 16#00#, 16#3C#, 16#00#, 16#00#, 16#F0#, 16#00#, 16#01#, 16#C0#, 16#00#, 16#07#, 16#F0#, 16#00#, 16#0E#, 16#70#, 16#00#, 16#3C#, 16#70#, 16#00#, 16#70#, 16#E0#, 16#00#, 16#E1#, 16#C0#, 16#01#, 16#C7#, 16#80#, 16#03#, 16#0E#, 16#00#, 16#06#, 16#1C#, 16#00#, 16#0C#, 16#70#, 16#00#, 16#0C#, 16#E0#, 16#00#, 16#0F#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#07#, 16#FC#, 16#00#, 16#1F#, 16#F0#, 16#00#, 16#3F#, 16#E0#, 16#00#, 16#C1#, 16#80#, 16#01#, 16#03#, 16#00#, 16#00#, 16#0C#, 16#00#, 16#00#, 16#10#, 16#00#, 16#00#, 16#60#, 16#00#, 16#01#, 16#80#, 16#00#, 16#03#, 16#00#, 16#00#, 16#0C#, 16#00#, 16#00#, 16#38#, 16#00#, 16#00#, 16#60#, 16#00#, 16#01#, 16#80#, 16#00#, 16#03#, 16#00#, 16#00#, 16#0C#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#03#, 16#E0#, 16#00#, 16#0C#, 16#60#, 16#00#, 16#38#, 16#C0#, 16#00#, 16#71#, 16#C0#, 16#00#, 16#E3#, 16#80#, 16#01#, 16#C6#, 16#00#, 16#03#, 16#D8#, 16#00#, 16#03#, 16#C0#, 16#00#, 16#07#, 16#C0#, 16#00#, 16#33#, 16#C0#, 16#00#, 16#C3#, 16#80#, 16#01#, 16#87#, 16#00#, 16#07#, 16#06#, 16#00#, 16#0E#, 16#0C#, 16#00#, 16#0C#, 16#38#, 16#00#, 16#1C#, 16#E0#, 16#00#, 16#0F#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#03#, 16#C0#, 16#00#, 16#0E#, 16#60#, 16#00#, 16#38#, 16#C0#, 16#00#, 16#F1#, 16#80#, 16#01#, 16#C3#, 16#80#, 16#03#, 16#87#, 16#00#, 16#07#, 16#1E#, 16#00#, 16#0E#, 16#38#, 16#00#, 16#1C#, 16#70#, 16#00#, 16#39#, 16#E0#, 16#00#, 16#3F#, 16#80#, 16#00#, 16#0F#, 16#00#, 16#00#, 16#3C#, 16#00#, 16#00#, 16#F0#, 16#00#, 16#03#, 16#C0#, 16#00#, 16#1E#, 16#00#, 16#00#, 16#60#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#01#, 16#C0#, 16#00#, 16#03#, 16#80#, 16#00#, 16#07#, 16#00#, 16#00#, 16#0E#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#06#, 16#00#, 16#00#, 16#0E#, 16#00#, 16#00#, 16#1C#, 16#00#, 16#00#, 16#30#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#01#, 16#C0#, 16#00#, 16#03#, 16#80#, 16#00#, 16#07#, 16#00#, 16#00#, 16#0E#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#07#, 16#00#, 16#00#, 16#0E#, 16#00#, 16#00#, 16#1C#, 16#00#, 16#00#, 16#18#, 16#00#, 16#00#, 16#20#, 16#00#, 16#00#, 16#C0#, 16#00#, 16#02#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#20#, 16#00#, 16#01#, 16#C0#, 16#00#, 16#0F#, 16#80#, 16#00#, 16#7C#, 16#00#, 16#07#, 16#E0#, 16#00#, 16#3E#, 16#00#, 16#00#, 16#70#, 16#00#, 16#00#, 16#F8#, 16#00#, 16#00#, 16#7C#, 16#00#, 16#00#, 16#3E#, 16#00#, 16#00#, 16#1F#, 16#00#, 16#00#, 16#07#, 16#00#, 16#00#, 16#02#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#0F#, 16#FF#, 16#00#, 16#1F#, 16#FE#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#FF#, 16#F0#, 16#01#, 16#FF#, 16#E0#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#01#, 16#00#, 16#00#, 16#03#, 16#80#, 16#00#, 16#07#, 16#E0#, 16#00#, 16#01#, 16#F0#, 16#00#, 16#00#, 16#F8#, 16#00#, 16#00#, 16#7C#, 16#00#, 16#00#, 16#3C#, 16#00#, 16#00#, 16#F8#, 16#00#, 16#0F#, 16#C0#, 16#00#, 16#7C#, 16#00#, 16#03#, 16#E0#, 16#00#, 16#0F#, 16#00#, 16#00#, 16#18#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#03#, 16#C0#, 16#00#, 16#18#, 16#E0#, 16#00#, 16#39#, 16#C0#, 16#00#, 16#73#, 16#80#, 16#00#, 16#07#, 16#00#, 16#00#, 16#1E#, 16#00#, 16#00#, 16#38#, 16#00#, 16#00#, 16#C0#, 16#00#, 16#03#, 16#00#, 16#00#, 16#0C#, 16#00#, 16#00#, 16#10#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#01#, 16#80#, 16#00#, 16#07#, 16#00#, 16#00#, 16#0E#, 16#00#, 16#00#, 16#1C#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#7E#, 16#00#, 16#07#, 16#07#, 16#00#, 16#18#, 16#03#, 16#00#, 16#70#, 16#E3#, 16#00#, 16#C3#, 16#32#, 16#03#, 16#0E#, 16#64#, 16#06#, 16#19#, 16#CC#, 16#0C#, 16#73#, 16#18#, 16#38#, 16#C6#, 16#20#, 16#31#, 16#9C#, 16#40#, 16#63#, 16#59#, 16#80#, 16#C6#, 16#72#, 16#00#, 16#CF#, 16#78#, 16#00#, 16#C0#, 16#00#, 16#00#, 16#E0#, 16#20#, 16#00#, 16#7F#, 16#80#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#08#, 16#00#, 16#00#, 16#30#, 16#00#, 16#00#, 16#E0#, 16#00#, 16#01#, 16#C0#, 16#00#, 16#07#, 16#80#, 16#00#, 16#1F#, 16#00#, 16#00#, 16#2F#, 16#00#, 16#00#, 16#DE#, 16#00#, 16#01#, 16#1C#, 16#00#, 16#04#, 16#38#, 16#00#, 16#18#, 16#70#, 16#00#, 16#3F#, 16#E0#, 16#00#, 16#C1#, 16#E0#, 16#03#, 16#03#, 16#C0#, 16#04#, 16#07#, 16#80#, 16#18#, 16#0F#, 16#00#, 16#7C#, 16#3F#, 16#80#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#0F#, 16#FC#, 16#00#, 16#07#, 16#9E#, 16#00#, 16#0E#, 16#1C#, 16#00#, 16#1C#, 16#3C#, 16#00#, 16#78#, 16#70#, 16#00#, 16#F1#, 16#E0#, 16#01#, 16#C7#, 16#80#, 16#03#, 16#F8#, 16#00#, 16#0F#, 16#1C#, 16#00#, 16#1E#, 16#3C#, 16#00#, 16#38#, 16#38#, 16#00#, 16#F0#, 16#70#, 16#01#, 16#E1#, 16#E0#, 16#03#, 16#C3#, 16#C0#, 16#07#, 16#07#, 16#00#, 16#1F#, 16#3C#, 16#00#, 16#7F#, 16#E0#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#7E#, 16#80#, 16#03#, 16#C7#, 16#00#, 16#0E#, 16#06#, 16#00#, 16#38#, 16#0C#, 16#00#, 16#F0#, 16#08#, 16#03#, 16#C0#, 16#20#, 16#07#, 16#80#, 16#00#, 16#1E#, 16#00#, 16#00#, 16#3C#, 16#00#, 16#00#, 16#78#, 16#00#, 16#00#, 16#F0#, 16#00#, 16#01#, 16#E0#, 16#00#, 16#03#, 16#C0#, 16#00#, 16#07#, 16#80#, 16#40#, 16#07#, 16#01#, 16#00#, 16#07#, 16#04#, 16#00#, 16#03#, 16#F0#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#0F#, 16#FC#, 16#00#, 16#07#, 16#8E#, 16#00#, 16#0E#, 16#0E#, 16#00#, 16#1C#, 16#0E#, 16#00#, 16#78#, 16#1C#, 16#00#, 16#F0#, 16#38#, 16#01#, 16#C0#, 16#78#, 16#03#, 16#80#, 16#F0#, 16#0F#, 16#01#, 16#C0#, 16#1E#, 16#07#, 16#80#, 16#38#, 16#0F#, 16#00#, 16#F0#, 16#1E#, 16#01#, 16#E0#, 16#78#, 16#03#, 16#C0#, 16#E0#, 16#07#, 16#03#, 16#80#, 16#1F#, 16#1E#, 16#00#, 16#7F#, 16#E0#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#0F#, 16#FF#, 16#80#, 16#07#, 16#87#, 16#00#, 16#0F#, 16#06#, 16#00#, 16#1C#, 16#04#, 16#00#, 16#78#, 16#00#, 16#00#, 16#F0#, 16#80#, 16#01#, 16#C2#, 16#00#, 16#03#, 16#FC#, 16#00#, 16#0F#, 16#18#, 16#00#, 16#1E#, 16#30#, 16#00#, 16#38#, 16#40#, 16#00#, 16#70#, 16#80#, 16#01#, 16#E0#, 16#10#, 16#03#, 16#C0#, 16#40#, 16#07#, 16#01#, 16#80#, 16#1F#, 16#0F#, 16#00#, 16#7F#, 16#FC#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#0F#, 16#FF#, 16#80#, 16#07#, 16#87#, 16#00#, 16#0F#, 16#06#, 16#00#, 16#1C#, 16#08#, 16#00#, 16#78#, 16#00#, 16#00#, 16#F1#, 16#00#, 16#01#, 16#C2#, 16#00#, 16#03#, 16#FC#, 16#00#, 16#0F#, 16#18#, 16#00#, 16#1E#, 16#20#, 16#00#, 16#38#, 16#40#, 16#00#, 16#70#, 16#00#, 16#01#, 16#E0#, 16#00#, 16#03#, 16#C0#, 16#00#, 16#07#, 16#00#, 16#00#, 16#1F#, 16#00#, 16#00#, 16#7F#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#7E#, 16#40#, 16#03#, 16#C3#, 16#80#, 16#0E#, 16#06#, 16#00#, 16#38#, 16#04#, 16#00#, 16#F0#, 16#08#, 16#03#, 16#C0#, 16#00#, 16#07#, 16#80#, 16#00#, 16#1E#, 16#00#, 16#00#, 16#3C#, 16#0F#, 16#E0#, 16#78#, 16#0F#, 16#00#, 16#F0#, 16#1E#, 16#01#, 16#E0#, 16#38#, 16#03#, 16#C0#, 16#70#, 16#03#, 16#80#, 16#E0#, 16#07#, 16#83#, 16#C0#, 16#07#, 16#87#, 16#00#, 16#03#, 16#F8#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#0F#, 16#F3#, 16#F8#, 16#07#, 16#83#, 16#C0#, 16#0F#, 16#07#, 16#80#, 16#1C#, 16#0E#, 16#00#, 16#78#, 16#1C#, 16#00#, 16#F0#, 16#38#, 16#01#, 16#E0#, 16#F0#, 16#03#, 16#81#, 16#C0#, 16#0F#, 16#FF#, 16#80#, 16#1E#, 16#07#, 16#00#, 16#38#, 16#1E#, 16#00#, 16#F0#, 16#38#, 16#01#, 16#E0#, 16#70#, 16#03#, 16#C1#, 16#E0#, 16#07#, 16#03#, 16#C0#, 16#1F#, 16#0F#, 16#80#, 16#7F#, 16#3F#, 16#80#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#0F#, 16#F0#, 16#00#, 16#07#, 16#80#, 16#00#, 16#0E#, 16#00#, 16#00#, 16#1C#, 16#00#, 16#00#, 16#78#, 16#00#, 16#00#, 16#F0#, 16#00#, 16#01#, 16#C0#, 16#00#, 16#03#, 16#80#, 16#00#, 16#0F#, 16#00#, 16#00#, 16#1E#, 16#00#, 16#00#, 16#38#, 16#00#, 16#00#, 16#70#, 16#00#, 16#01#, 16#E0#, 16#00#, 16#03#, 16#C0#, 16#00#, 16#07#, 16#00#, 16#00#, 16#1F#, 16#00#, 16#00#, 16#7F#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#FE#, 16#00#, 16#00#, 16#F0#, 16#00#, 16#01#, 16#E0#, 16#00#, 16#03#, 16#80#, 16#00#, 16#07#, 16#00#, 16#00#, 16#1E#, 16#00#, 16#00#, 16#3C#, 16#00#, 16#00#, 16#70#, 16#00#, 16#00#, 16#E0#, 16#00#, 16#03#, 16#C0#, 16#00#, 16#07#, 16#80#, 16#00#, 16#0E#, 16#00#, 16#00#, 16#3C#, 16#00#, 16#00#, 16#78#, 16#00#, 16#1C#, 16#E0#, 16#00#, 16#39#, 16#C0#, 16#00#, 16#77#, 16#00#, 16#00#, 16#7C#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#0F#, 16#F7#, 16#C0#, 16#07#, 16#83#, 16#00#, 16#0E#, 16#0C#, 16#00#, 16#1C#, 16#30#, 16#00#, 16#78#, 16#C0#, 16#00#, 16#F3#, 16#00#, 16#01#, 16#C8#, 16#00#, 16#03#, 16#F0#, 16#00#, 16#0F#, 16#F0#, 16#00#, 16#1E#, 16#E0#, 16#00#, 16#39#, 16#E0#, 16#00#, 16#F1#, 16#C0#, 16#01#, 16#E3#, 16#80#, 16#03#, 16#C7#, 16#80#, 16#07#, 16#07#, 16#00#, 16#1F#, 16#0F#, 16#00#, 16#7F#, 16#7F#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#0F#, 16#F0#, 16#00#, 16#07#, 16#80#, 16#00#, 16#0E#, 16#00#, 16#00#, 16#1C#, 16#00#, 16#00#, 16#78#, 16#00#, 16#00#, 16#F0#, 16#00#, 16#01#, 16#C0#, 16#00#, 16#03#, 16#80#, 16#00#, 16#0F#, 16#00#, 16#00#, 16#1E#, 16#00#, 16#00#, 16#38#, 16#00#, 16#00#, 16#70#, 16#00#, 16#01#, 16#E0#, 16#10#, 16#03#, 16#C0#, 16#40#, 16#07#, 16#01#, 16#80#, 16#1F#, 16#0F#, 16#00#, 16#7F#, 16#FC#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#07#, 16#C0#, 16#3F#, 16#07#, 16#80#, 16#78#, 16#0F#, 16#01#, 16#F0#, 16#1E#, 16#07#, 16#C0#, 16#3C#, 16#0B#, 16#80#, 16#BC#, 16#2F#, 16#01#, 16#78#, 16#DE#, 16#02#, 16#F1#, 16#38#, 16#08#, 16#E4#, 16#70#, 16#11#, 16#D9#, 16#E0#, 16#23#, 16#A3#, 16#C0#, 16#C7#, 16#C7#, 16#01#, 16#0F#, 16#0E#, 16#02#, 16#1C#, 16#3C#, 16#04#, 16#38#, 16#78#, 16#18#, 16#61#, 16#F0#, 16#7C#, 16#C7#, 16#F0#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#0F#, 16#81#, 16#F0#, 16#07#, 16#81#, 16#80#, 16#0F#, 16#03#, 16#00#, 16#1F#, 16#04#, 16#00#, 16#2E#, 16#08#, 16#00#, 16#9E#, 16#10#, 16#01#, 16#3C#, 16#60#, 16#02#, 16#38#, 16#80#, 16#08#, 16#79#, 16#00#, 16#10#, 16#72#, 16#00#, 16#20#, 16#F8#, 16#00#, 16#C0#, 16#F0#, 16#01#, 16#01#, 16#E0#, 16#02#, 16#01#, 16#C0#, 16#04#, 16#03#, 16#00#, 16#18#, 16#02#, 16#00#, 16#08#, 16#04#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#7C#, 16#00#, 16#03#, 16#8E#, 16#00#, 16#0E#, 16#0E#, 16#00#, 16#38#, 16#1C#, 16#00#, 16#F0#, 16#3C#, 16#01#, 16#C0#, 16#78#, 16#07#, 16#80#, 16#F0#, 16#0E#, 16#01#, 16#E0#, 16#3C#, 16#07#, 16#80#, 16#78#, 16#0F#, 16#00#, 16#F0#, 16#1E#, 16#01#, 16#C0#, 16#78#, 16#03#, 16#80#, 16#E0#, 16#07#, 16#03#, 16#C0#, 16#07#, 16#07#, 16#00#, 16#06#, 16#38#, 16#00#, 16#07#, 16#C0#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#0F#, 16#FC#, 16#00#, 16#07#, 16#9E#, 16#00#, 16#0E#, 16#1C#, 16#00#, 16#1C#, 16#38#, 16#00#, 16#78#, 16#70#, 16#00#, 16#F1#, 16#E0#, 16#01#, 16#C3#, 16#C0#, 16#03#, 16#8F#, 16#00#, 16#0F#, 16#F8#, 16#00#, 16#1E#, 16#00#, 16#00#, 16#38#, 16#00#, 16#00#, 16#70#, 16#00#, 16#01#, 16#E0#, 16#00#, 16#03#, 16#80#, 16#00#, 16#07#, 16#00#, 16#00#, 16#1F#, 16#00#, 16#00#, 16#7F#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#7C#, 16#00#, 16#03#, 16#8E#, 16#00#, 16#0E#, 16#0E#, 16#00#, 16#38#, 16#1C#, 16#00#, 16#F0#, 16#3C#, 16#03#, 16#C0#, 16#78#, 16#07#, 16#80#, 16#F0#, 16#1E#, 16#01#, 16#E0#, 16#3C#, 16#07#, 16#80#, 16#78#, 16#0F#, 16#00#, 16#F0#, 16#1E#, 16#01#, 16#C0#, 16#78#, 16#03#, 16#80#, 16#E0#, 16#07#, 16#03#, 16#80#, 16#07#, 16#0E#, 16#00#, 16#06#, 16#38#, 16#00#, 16#03#, 16#80#, 16#00#, 16#08#, 16#01#, 16#00#, 16#3F#, 16#04#, 16#01#, 16#FF#, 16#F0#, 16#00#, 16#0F#, 16#80#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#0F#, 16#FC#, 16#00#, 16#07#, 16#9E#, 16#00#, 16#0F#, 16#1C#, 16#00#, 16#1C#, 16#3C#, 16#00#, 16#78#, 16#78#, 16#00#, 16#F0#, 16#E0#, 16#01#, 16#E3#, 16#C0#, 16#03#, 16#8F#, 16#00#, 16#0F#, 16#F0#, 16#00#, 16#1E#, 16#E0#, 16#00#, 16#3D#, 16#E0#, 16#00#, 16#71#, 16#C0#, 16#01#, 16#E3#, 16#80#, 16#03#, 16#C7#, 16#80#, 16#07#, 16#0F#, 16#00#, 16#1F#, 16#0F#, 16#00#, 16#7F#, 16#1F#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#03#, 16#E4#, 16#00#, 16#0C#, 16#70#, 16#00#, 16#30#, 16#60#, 16#00#, 16#60#, 16#40#, 16#01#, 16#C0#, 16#80#, 16#03#, 16#C0#, 16#00#, 16#03#, 16#E0#, 16#00#, 16#07#, 16#E0#, 16#00#, 16#07#, 16#E0#, 16#00#, 16#03#, 16#C0#, 16#00#, 16#03#, 16#C0#, 16#00#, 16#03#, 16#80#, 16#02#, 16#07#, 16#00#, 16#04#, 16#0E#, 16#00#, 16#18#, 16#1C#, 16#00#, 16#38#, 16#70#, 16#00#, 16#4F#, 16#80#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#0F#, 16#FF#, 16#80#, 16#1C#, 16#F3#, 16#00#, 16#21#, 16#C2#, 16#00#, 16#47#, 16#84#, 16#00#, 16#0F#, 16#08#, 16#00#, 16#1C#, 16#00#, 16#00#, 16#38#, 16#00#, 16#00#, 16#F0#, 16#00#, 16#01#, 16#E0#, 16#00#, 16#03#, 16#80#, 16#00#, 16#07#, 16#00#, 16#00#, 16#1E#, 16#00#, 16#00#, 16#38#, 16#00#, 16#00#, 16#70#, 16#00#, 16#01#, 16#E0#, 16#00#, 16#03#, 16#C0#, 16#00#, 16#1F#, 16#E0#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#0F#, 16#F1#, 16#F0#, 16#07#, 16#81#, 16#C0#, 16#0E#, 16#01#, 16#00#, 16#1C#, 16#06#, 16#00#, 16#78#, 16#08#, 16#00#, 16#F0#, 16#10#, 16#01#, 16#C0#, 16#20#, 16#03#, 16#80#, 16#80#, 16#0F#, 16#01#, 16#00#, 16#1E#, 16#02#, 16#00#, 16#38#, 16#04#, 16#00#, 16#70#, 16#10#, 16#00#, 16#E0#, 16#20#, 16#01#, 16#C0#, 16#C0#, 16#03#, 16#81#, 16#00#, 16#07#, 16#86#, 16#00#, 16#03#, 16#F0#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#0F#, 16#E1#, 16#F0#, 16#07#, 16#01#, 16#C0#, 16#0E#, 16#03#, 16#00#, 16#1E#, 16#04#, 16#00#, 16#3C#, 16#18#, 16#00#, 16#78#, 16#20#, 16#00#, 16#70#, 16#80#, 16#00#, 16#E3#, 16#00#, 16#01#, 16#C4#, 16#00#, 16#03#, 16#90#, 16#00#, 16#07#, 16#E0#, 16#00#, 16#0F#, 16#80#, 16#00#, 16#0E#, 16#00#, 16#00#, 16#1C#, 16#00#, 16#00#, 16#30#, 16#00#, 16#00#, 16#40#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#0F#, 16#EF#, 16#E7#, 16#07#, 16#0F#, 16#06#, 16#0E#, 16#0E#, 16#08#, 16#1C#, 16#1C#, 16#10#, 16#3C#, 16#78#, 16#40#, 16#78#, 16#F0#, 16#80#, 16#F2#, 16#F2#, 16#00#, 16#E5#, 16#E4#, 16#01#, 16#D1#, 16#D0#, 16#03#, 16#A3#, 16#A0#, 16#07#, 16#87#, 16#80#, 16#0F#, 16#0F#, 16#00#, 16#1C#, 16#1C#, 16#00#, 16#38#, 16#30#, 16#00#, 16#20#, 16#60#, 16#00#, 16#40#, 16#80#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#0F#, 16#E7#, 16#C0#, 16#07#, 16#83#, 16#00#, 16#0F#, 16#0C#, 16#00#, 16#0E#, 16#30#, 16#00#, 16#1C#, 16#C0#, 16#00#, 16#3F#, 16#00#, 16#00#, 16#3C#, 16#00#, 16#00#, 16#70#, 16#00#, 16#00#, 16#F0#, 16#00#, 16#03#, 16#E0#, 16#00#, 16#05#, 16#C0#, 16#00#, 16#13#, 16#C0#, 16#00#, 16#47#, 16#80#, 16#01#, 16#07#, 16#00#, 16#06#, 16#0E#, 16#00#, 16#1C#, 16#1E#, 16#00#, 16#7C#, 16#FF#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#0F#, 16#E7#, 16#C0#, 16#07#, 16#03#, 16#00#, 16#0E#, 16#04#, 16#00#, 16#1E#, 16#10#, 16#00#, 16#1C#, 16#60#, 16#00#, 16#38#, 16#80#, 16#00#, 16#7A#, 16#00#, 16#00#, 16#78#, 16#00#, 16#00#, 16#E0#, 16#00#, 16#01#, 16#C0#, 16#00#, 16#07#, 16#80#, 16#00#, 16#0F#, 16#00#, 16#00#, 16#1C#, 16#00#, 16#00#, 16#38#, 16#00#, 16#00#, 16#F0#, 16#00#, 16#01#, 16#E0#, 16#00#, 16#0F#, 16#F0#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#0F#, 16#FE#, 16#00#, 16#1C#, 16#3C#, 16#00#, 16#60#, 16#F0#, 16#00#, 16#81#, 16#E0#, 16#01#, 16#07#, 16#80#, 16#00#, 16#1E#, 16#00#, 16#00#, 16#3C#, 16#00#, 16#00#, 16#F0#, 16#00#, 16#03#, 16#C0#, 16#00#, 16#07#, 16#00#, 16#00#, 16#1E#, 16#00#, 16#00#, 16#78#, 16#00#, 16#00#, 16#E0#, 16#40#, 16#03#, 16#C0#, 16#80#, 16#0F#, 16#03#, 16#00#, 16#3C#, 16#1E#, 16#00#, 16#7F#, 16#F8#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#07#, 16#C0#, 16#00#, 16#0C#, 16#00#, 16#00#, 16#38#, 16#00#, 16#00#, 16#60#, 16#00#, 16#00#, 16#C0#, 16#00#, 16#01#, 16#80#, 16#00#, 16#07#, 16#00#, 16#00#, 16#0C#, 16#00#, 16#00#, 16#18#, 16#00#, 16#00#, 16#30#, 16#00#, 16#00#, 16#E0#, 16#00#, 16#01#, 16#80#, 16#00#, 16#03#, 16#00#, 16#00#, 16#06#, 16#00#, 16#00#, 16#1C#, 16#00#, 16#00#, 16#38#, 16#00#, 16#00#, 16#60#, 16#00#, 16#00#, 16#C0#, 16#00#, 16#01#, 16#80#, 16#00#, 16#03#, 16#C0#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#0C#, 16#00#, 16#00#, 16#18#, 16#00#, 16#00#, 16#18#, 16#00#, 16#00#, 16#30#, 16#00#, 16#00#, 16#60#, 16#00#, 16#00#, 16#C0#, 16#00#, 16#00#, 16#C0#, 16#00#, 16#01#, 16#80#, 16#00#, 16#03#, 16#00#, 16#00#, 16#03#, 16#00#, 16#00#, 16#06#, 16#00#, 16#00#, 16#0C#, 16#00#, 16#00#, 16#1C#, 16#00#, 16#00#, 16#18#, 16#00#, 16#00#, 16#30#, 16#00#, 16#00#, 16#60#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#0F#, 16#80#, 16#00#, 16#07#, 16#00#, 16#00#, 16#0E#, 16#00#, 16#00#, 16#18#, 16#00#, 16#00#, 16#30#, 16#00#, 16#00#, 16#60#, 16#00#, 16#01#, 16#C0#, 16#00#, 16#03#, 16#00#, 16#00#, 16#06#, 16#00#, 16#00#, 16#0C#, 16#00#, 16#00#, 16#38#, 16#00#, 16#00#, 16#60#, 16#00#, 16#00#, 16#C0#, 16#00#, 16#01#, 16#80#, 16#00#, 16#07#, 16#00#, 16#00#, 16#0E#, 16#00#, 16#00#, 16#18#, 16#00#, 16#00#, 16#30#, 16#00#, 16#00#, 16#E0#, 16#00#, 16#03#, 16#C0#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#01#, 16#80#, 16#00#, 16#07#, 16#80#, 16#00#, 16#0F#, 16#00#, 16#00#, 16#37#, 16#00#, 16#00#, 16#66#, 16#00#, 16#01#, 16#8C#, 16#00#, 16#03#, 16#0C#, 16#00#, 16#0C#, 16#18#, 16#00#, 16#18#, 16#18#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#03#, 16#FF#, 16#C0#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#18#, 16#00#, 16#00#, 16#38#, 16#00#, 16#00#, 16#18#, 16#00#, 16#00#, 16#18#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#77#, 16#00#, 16#01#, 16#9C#, 16#00#, 16#07#, 16#38#, 16#00#, 16#1C#, 16#70#, 16#00#, 16#38#, 16#C0#, 16#00#, 16#E3#, 16#80#, 16#01#, 16#C7#, 16#00#, 16#03#, 16#8E#, 16#00#, 16#0E#, 16#3C#, 16#00#, 16#1C#, 16#B2#, 16#00#, 16#1E#, 16#68#, 16#00#, 16#38#, 16#E0#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#C0#, 16#00#, 16#0F#, 16#00#, 16#00#, 16#0E#, 16#00#, 16#00#, 16#1C#, 16#00#, 16#00#, 16#38#, 16#00#, 16#00#, 16#E0#, 16#00#, 16#01#, 16#DE#, 16#00#, 16#03#, 16#DC#, 16#00#, 16#07#, 16#1C#, 16#00#, 16#1C#, 16#38#, 16#00#, 16#38#, 16#E0#, 16#00#, 16#71#, 16#C0#, 16#01#, 16#C3#, 16#80#, 16#03#, 16#86#, 16#00#, 16#07#, 16#1C#, 16#00#, 16#0E#, 16#70#, 16#00#, 16#1C#, 16#C0#, 16#00#, 16#1E#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#78#, 16#00#, 16#01#, 16#98#, 16#00#, 16#06#, 16#70#, 16#00#, 16#1C#, 16#00#, 16#00#, 16#30#, 16#00#, 16#00#, 16#E0#, 16#00#, 16#01#, 16#C0#, 16#00#, 16#03#, 16#80#, 16#00#, 16#07#, 16#00#, 16#00#, 16#0E#, 16#10#, 16#00#, 16#1C#, 16#40#, 16#00#, 16#1F#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#02#, 16#00#, 16#00#, 16#7C#, 16#00#, 16#00#, 16#38#, 16#00#, 16#00#, 16#70#, 16#00#, 16#01#, 16#C0#, 16#00#, 16#03#, 16#80#, 16#00#, 16#77#, 16#00#, 16#01#, 16#9C#, 16#00#, 16#07#, 16#38#, 16#00#, 16#1C#, 16#70#, 16#00#, 16#38#, 16#E0#, 16#00#, 16#E1#, 16#80#, 16#01#, 16#C7#, 16#00#, 16#03#, 16#8E#, 16#00#, 16#07#, 16#3C#, 16#00#, 16#1C#, 16#7A#, 16#00#, 16#1D#, 16#68#, 16#00#, 16#3C#, 16#E0#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#78#, 16#00#, 16#01#, 16#98#, 16#00#, 16#06#, 16#30#, 16#00#, 16#1C#, 16#60#, 16#00#, 16#39#, 16#80#, 16#00#, 16#E6#, 16#00#, 16#01#, 16#F8#, 16#00#, 16#03#, 16#80#, 16#00#, 16#07#, 16#00#, 16#00#, 16#0E#, 16#20#, 16#00#, 16#1C#, 16#40#, 16#00#, 16#1F#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#3C#, 16#00#, 16#00#, 16#D8#, 16#00#, 16#03#, 16#B0#, 16#00#, 16#06#, 16#00#, 16#00#, 16#1C#, 16#00#, 16#00#, 16#38#, 16#00#, 16#01#, 16#FC#, 16#00#, 16#01#, 16#C0#, 16#00#, 16#03#, 16#80#, 16#00#, 16#07#, 16#00#, 16#00#, 16#0E#, 16#00#, 16#00#, 16#38#, 16#00#, 16#00#, 16#70#, 16#00#, 16#00#, 16#E0#, 16#00#, 16#01#, 16#C0#, 16#00#, 16#03#, 16#00#, 16#00#, 16#0E#, 16#00#, 16#00#, 16#1C#, 16#00#, 16#00#, 16#30#, 16#00#, 16#00#, 16#60#, 16#00#, 16#01#, 16#80#, 16#00#, 16#06#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#F8#, 16#00#, 16#03#, 16#9E#, 16#00#, 16#0E#, 16#38#, 16#00#, 16#1C#, 16#70#, 16#00#, 16#31#, 16#C0#, 16#00#, 16#73#, 16#80#, 16#00#, 16#7C#, 16#00#, 16#01#, 16#80#, 16#00#, 16#07#, 16#80#, 16#00#, 16#0F#, 16#C0#, 16#00#, 16#0F#, 16#E0#, 16#00#, 16#63#, 16#E0#, 16#00#, 16#C1#, 16#C0#, 16#01#, 16#83#, 16#00#, 16#03#, 16#0E#, 16#00#, 16#03#, 16#F0#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#40#, 16#00#, 16#0F#, 16#80#, 16#00#, 16#0E#, 16#00#, 16#00#, 16#1C#, 16#00#, 16#00#, 16#38#, 16#00#, 16#00#, 16#70#, 16#00#, 16#01#, 16#C7#, 16#00#, 16#03#, 16#BE#, 16#00#, 16#07#, 16#9C#, 16#00#, 16#0E#, 16#38#, 16#00#, 16#3C#, 16#70#, 16#00#, 16#71#, 16#C0#, 16#00#, 16#E3#, 16#80#, 16#01#, 16#C7#, 16#00#, 16#07#, 16#1C#, 16#00#, 16#0E#, 16#3A#, 16#00#, 16#1C#, 16#74#, 16#00#, 16#38#, 16#F0#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#07#, 16#00#, 16#00#, 16#0E#, 16#00#, 16#00#, 16#1C#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#C0#, 16#00#, 16#0F#, 16#80#, 16#00#, 16#07#, 16#00#, 16#00#, 16#1C#, 16#00#, 16#00#, 16#38#, 16#00#, 16#00#, 16#70#, 16#00#, 16#00#, 16#C0#, 16#00#, 16#03#, 16#80#, 16#00#, 16#07#, 16#00#, 16#00#, 16#0E#, 16#80#, 16#00#, 16#1D#, 16#00#, 16#00#, 16#3C#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#C0#, 16#00#, 16#03#, 16#80#, 16#00#, 16#03#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#01#, 16#F0#, 16#00#, 16#00#, 16#E0#, 16#00#, 16#01#, 16#C0#, 16#00#, 16#03#, 16#80#, 16#00#, 16#0E#, 16#00#, 16#00#, 16#1C#, 16#00#, 16#00#, 16#38#, 16#00#, 16#00#, 16#70#, 16#00#, 16#01#, 16#C0#, 16#00#, 16#03#, 16#80#, 16#00#, 16#07#, 16#00#, 16#00#, 16#0C#, 16#00#, 16#00#, 16#38#, 16#00#, 16#00#, 16#70#, 16#00#, 16#00#, 16#C0#, 16#00#, 16#07#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#40#, 16#00#, 16#0F#, 16#80#, 16#00#, 16#0E#, 16#00#, 16#00#, 16#1C#, 16#00#, 16#00#, 16#38#, 16#00#, 16#00#, 16#70#, 16#00#, 16#01#, 16#CF#, 16#80#, 16#03#, 16#8C#, 16#00#, 16#07#, 16#30#, 16#00#, 16#0E#, 16#40#, 16#00#, 16#39#, 16#00#, 16#00#, 16#7E#, 16#00#, 16#00#, 16#FC#, 16#00#, 16#01#, 16#D8#, 16#00#, 16#07#, 16#38#, 16#00#, 16#0E#, 16#72#, 16#00#, 16#1C#, 16#68#, 16#00#, 16#38#, 16#E0#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#C0#, 16#00#, 16#0F#, 16#80#, 16#00#, 16#0E#, 16#00#, 16#00#, 16#1C#, 16#00#, 16#00#, 16#38#, 16#00#, 16#00#, 16#60#, 16#00#, 16#01#, 16#C0#, 16#00#, 16#03#, 16#80#, 16#00#, 16#07#, 16#00#, 16#00#, 16#0C#, 16#00#, 16#00#, 16#38#, 16#00#, 16#00#, 16#70#, 16#00#, 16#00#, 16#E0#, 16#00#, 16#01#, 16#80#, 16#00#, 16#07#, 16#00#, 16#00#, 16#0E#, 16#40#, 16#00#, 16#1D#, 16#00#, 16#00#, 16#3C#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#07#, 16#CE#, 16#38#, 16#03#, 16#ED#, 16#B0#, 16#0E#, 16#BC#, 16#E0#, 16#1E#, 16#79#, 16#C0#, 16#38#, 16#E3#, 16#80#, 16#71#, 16#CE#, 16#00#, 16#E7#, 16#1C#, 16#03#, 16#8E#, 16#38#, 16#07#, 16#1C#, 16#70#, 16#0E#, 16#38#, 16#C8#, 16#1C#, 16#E3#, 16#A0#, 16#71#, 16#C3#, 16#80#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#07#, 16#CF#, 16#00#, 16#03#, 16#EE#, 16#00#, 16#0E#, 16#9C#, 16#00#, 16#1E#, 16#70#, 16#00#, 16#38#, 16#E0#, 16#00#, 16#71#, 16#C0#, 16#01#, 16#E7#, 16#00#, 16#03#, 16#8E#, 16#00#, 16#07#, 16#1C#, 16#00#, 16#0E#, 16#3A#, 16#00#, 16#1C#, 16#78#, 16#00#, 16#70#, 16#E0#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#78#, 16#00#, 16#01#, 16#98#, 16#00#, 16#06#, 16#38#, 16#00#, 16#1C#, 16#70#, 16#00#, 16#70#, 16#E0#, 16#00#, 16#E1#, 16#C0#, 16#01#, 16#C3#, 16#80#, 16#03#, 16#8E#, 16#00#, 16#07#, 16#1C#, 16#00#, 16#0C#, 16#30#, 16#00#, 16#1C#, 16#C0#, 16#00#, 16#1F#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#07#, 16#DE#, 16#00#, 16#03#, 16#DC#, 16#00#, 16#07#, 16#1C#, 16#00#, 16#1C#, 16#78#, 16#00#, 16#38#, 16#E0#, 16#00#, 16#71#, 16#C0#, 16#00#, 16#C3#, 16#80#, 16#03#, 16#8E#, 16#00#, 16#07#, 16#1C#, 16#00#, 16#0E#, 16#70#, 16#00#, 16#1C#, 16#C0#, 16#00#, 16#77#, 16#00#, 16#00#, 16#E0#, 16#00#, 16#01#, 16#C0#, 16#00#, 16#03#, 16#80#, 16#00#, 16#07#, 16#80#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#77#, 16#00#, 16#01#, 16#9C#, 16#00#, 16#07#, 16#38#, 16#00#, 16#1C#, 16#70#, 16#00#, 16#38#, 16#E0#, 16#00#, 16#E1#, 16#80#, 16#01#, 16#C7#, 16#00#, 16#03#, 16#8E#, 16#00#, 16#07#, 16#38#, 16#00#, 16#1C#, 16#70#, 16#00#, 16#1D#, 16#E0#, 16#00#, 16#3D#, 16#C0#, 16#00#, 16#03#, 16#00#, 16#00#, 16#0E#, 16#00#, 16#00#, 16#1C#, 16#00#, 16#00#, 16#FC#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#DC#, 16#00#, 16#0F#, 16#B8#, 16#00#, 16#06#, 16#B0#, 16#00#, 16#1E#, 16#00#, 16#00#, 16#38#, 16#00#, 16#00#, 16#70#, 16#00#, 16#00#, 16#E0#, 16#00#, 16#03#, 16#80#, 16#00#, 16#07#, 16#00#, 16#00#, 16#0E#, 16#00#, 16#00#, 16#38#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#01#, 16#F0#, 16#00#, 16#06#, 16#60#, 16#00#, 16#0C#, 16#40#, 16#00#, 16#18#, 16#80#, 16#00#, 16#38#, 16#00#, 16#00#, 16#78#, 16#00#, 16#00#, 16#78#, 16#00#, 16#00#, 16#70#, 16#00#, 16#00#, 16#E0#, 16#00#, 16#10#, 16#C0#, 16#00#, 16#31#, 16#80#, 16#00#, 16#5C#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#0C#, 16#00#, 16#00#, 16#10#, 16#00#, 16#00#, 16#E0#, 16#00#, 16#03#, 16#F0#, 16#00#, 16#03#, 16#80#, 16#00#, 16#06#, 16#00#, 16#00#, 16#1C#, 16#00#, 16#00#, 16#38#, 16#00#, 16#00#, 16#70#, 16#00#, 16#01#, 16#C0#, 16#00#, 16#03#, 16#80#, 16#00#, 16#07#, 16#00#, 16#00#, 16#0E#, 16#80#, 16#00#, 16#1E#, 16#00#, 16#00#, 16#38#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#07#, 16#C7#, 16#00#, 16#03#, 16#8E#, 16#00#, 16#07#, 16#18#, 16#00#, 16#1C#, 16#70#, 16#00#, 16#38#, 16#E0#, 16#00#, 16#71#, 16#C0#, 16#00#, 16#E7#, 16#00#, 16#03#, 16#8E#, 16#00#, 16#07#, 16#1C#, 16#00#, 16#0E#, 16#FA#, 16#00#, 16#1E#, 16#78#, 16#00#, 16#38#, 16#E0#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#07#, 16#8C#, 16#00#, 16#07#, 16#1C#, 16#00#, 16#06#, 16#30#, 16#00#, 16#0E#, 16#20#, 16#00#, 16#1C#, 16#80#, 16#00#, 16#39#, 16#00#, 16#00#, 16#74#, 16#00#, 16#00#, 16#F0#, 16#00#, 16#01#, 16#C0#, 16#00#, 16#03#, 16#00#, 16#00#, 16#04#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#07#, 16#84#, 16#60#, 16#07#, 16#08#, 16#E0#, 16#07#, 16#31#, 16#80#, 16#0E#, 16#F1#, 16#00#, 16#1D#, 16#E4#, 16#00#, 16#3D#, 16#C8#, 16#00#, 16#7B#, 16#A0#, 16#00#, 16#E7#, 16#80#, 16#01#, 16#CE#, 16#00#, 16#03#, 16#1C#, 16#00#, 16#04#, 16#30#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#01#, 16#C6#, 16#00#, 16#0F#, 16#9C#, 16#00#, 16#07#, 16#40#, 16#00#, 16#07#, 16#00#, 16#00#, 16#0E#, 16#00#, 16#00#, 16#1C#, 16#00#, 16#00#, 16#38#, 16#00#, 16#00#, 16#70#, 16#00#, 16#01#, 16#60#, 16#00#, 16#12#, 16#E8#, 16#00#, 16#39#, 16#E0#, 16#00#, 16#61#, 16#80#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#8C#, 16#00#, 16#0F#, 16#18#, 16#00#, 16#0F#, 16#30#, 16#00#, 16#0E#, 16#60#, 16#00#, 16#1C#, 16#40#, 16#00#, 16#39#, 16#00#, 16#00#, 16#72#, 16#00#, 16#00#, 16#74#, 16#00#, 16#00#, 16#F0#, 16#00#, 16#01#, 16#C0#, 16#00#, 16#03#, 16#80#, 16#00#, 16#06#, 16#00#, 16#00#, 16#08#, 16#00#, 16#00#, 16#20#, 16#00#, 16#02#, 16#80#, 16#00#, 16#06#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#03#, 16#FC#, 16#00#, 16#07#, 16#F0#, 16#00#, 16#08#, 16#40#, 16#00#, 16#01#, 16#00#, 16#00#, 16#04#, 16#00#, 16#00#, 16#10#, 16#00#, 16#00#, 16#60#, 16#00#, 16#00#, 16#80#, 16#00#, 16#03#, 16#00#, 16#00#, 16#0F#, 16#00#, 16#00#, 16#3F#, 16#60#, 16#00#, 16#0E#, 16#C0#, 16#00#, 16#07#, 16#80#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#70#, 16#00#, 16#01#, 16#C0#, 16#00#, 16#07#, 16#00#, 16#00#, 16#0C#, 16#00#, 16#00#, 16#38#, 16#00#, 16#00#, 16#70#, 16#00#, 16#00#, 16#C0#, 16#00#, 16#01#, 16#80#, 16#00#, 16#07#, 16#00#, 16#00#, 16#0C#, 16#00#, 16#00#, 16#70#, 16#00#, 16#00#, 16#60#, 16#00#, 16#00#, 16#E0#, 16#00#, 16#01#, 16#80#, 16#00#, 16#03#, 16#00#, 16#00#, 16#0E#, 16#00#, 16#00#, 16#1C#, 16#00#, 16#00#, 16#30#, 16#00#, 16#00#, 16#60#, 16#00#, 16#00#, 16#C0#, 16#00#, 16#00#, 16#E0#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#0C#, 16#00#, 16#00#, 16#18#, 16#00#, 16#00#, 16#30#, 16#00#, 16#00#, 16#60#, 16#00#, 16#00#, 16#C0#, 16#00#, 16#01#, 16#80#, 16#00#, 16#03#, 16#00#, 16#00#, 16#06#, 16#00#, 16#00#, 16#0C#, 16#00#, 16#00#, 16#18#, 16#00#, 16#00#, 16#30#, 16#00#, 16#00#, 16#60#, 16#00#, 16#00#, 16#C0#, 16#00#, 16#01#, 16#80#, 16#00#, 16#03#, 16#00#, 16#00#, 16#06#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#0E#, 16#00#, 16#00#, 16#06#, 16#00#, 16#00#, 16#0E#, 16#00#, 16#00#, 16#1C#, 16#00#, 16#00#, 16#30#, 16#00#, 16#00#, 16#60#, 16#00#, 16#01#, 16#C0#, 16#00#, 16#03#, 16#80#, 16#00#, 16#06#, 16#00#, 16#00#, 16#0C#, 16#00#, 16#00#, 16#1C#, 16#00#, 16#00#, 16#18#, 16#00#, 16#00#, 16#E0#, 16#00#, 16#01#, 16#80#, 16#00#, 16#07#, 16#00#, 16#00#, 16#0E#, 16#00#, 16#00#, 16#18#, 16#00#, 16#00#, 16#70#, 16#00#, 16#00#, 16#E0#, 16#00#, 16#01#, 16#80#, 16#00#, 16#02#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#0E#, 16#00#, 16#00#, 16#3F#, 16#30#, 16#00#, 16#47#, 16#E0#, 16#00#, 16#03#, 16#80#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#); Font_D : aliased constant Bitmap_Font := ( Bytes_Per_Glyph => 81, Glyph_Width => 23, Glyph_Height => 28, Data => FreeSerifBoldItalic12pt7bBitmaps'Access); Font : constant Bitmap_Font_Ref := Font_D'Access; end GESTE_Fonts.FreeSerifBoldItalic12pt7b;
73.171694
74
0.488141
4dae097140e038f1d61ca8aaafe65cc616ea290f
3,532
ada
Ada
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c5/c55b11a.ada
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
7
2020-05-02T17:34:05.000Z
2021-10-17T10:15:18.000Z
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c5/c55b11a.ada
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
null
null
null
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c5/c55b11a.ada
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
2
2020-07-27T00:22:36.000Z
2021-04-01T09:41:02.000Z
-- C55B11A.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, IN 'FOR IN ST RANGE L .. R LOOP', THE PARAMETER IS OF -- THE TYPE ST'BASE; THAT IS THAT IT CAN BE ASSIGNED TO OTHER -- VARIABLES DECLARED WITH SOME OTHER SUBTYPES OF ST. -- HISTORY: -- DHH 08/15/88 CREATED ORIGINAL TEST. WITH REPORT; USE REPORT; PROCEDURE C55B11A IS TYPE ENUM IS (A, B, C, D, E, F, G, H); SUBTYPE ONE IS ENUM RANGE A .. H; SUBTYPE TWO IS ENUM RANGE B .. H; SUBTYPE THREE IS ENUM RANGE C .. H; SUBTYPE FOUR IS ENUM RANGE D .. H; GLOBAL : INTEGER := 0; VAR_1 : ONE; VAR_2 : TWO; VAR_3 : THREE; VAR_4 : FOUR; PROCEDURE CHECK_VAR(T : ENUM) IS BEGIN GLOBAL := GLOBAL + 1; CASE T IS WHEN D => IF GLOBAL /= IDENT_INT(1) THEN FAILED("VAR_1 WRONG VALUE"); END IF; WHEN E => IF GLOBAL /= IDENT_INT(2) THEN FAILED("VAR_2 WRONG VALUE"); END IF; WHEN F => IF GLOBAL /= IDENT_INT(3) THEN FAILED("VAR_3 WRONG VALUE"); END IF; WHEN G => IF GLOBAL /= IDENT_INT(4) THEN FAILED("VAR_4 WRONG VALUE"); END IF; WHEN OTHERS => FAILED("WRONG VALUE TO PROCEDURE"); END CASE; END CHECK_VAR; BEGIN TEST("C55B11A", "CHECK THAT, IN 'FOR IN ST RANGE L .. R LOOP', " & "THE PARAMETER IS OF THE TYPE ST'BASE; THAT IS " & "THAT IT CAN BE ASSIGNED TO OTHER VARIABLES " & "DECLARED WITH SOME OTHER SUBTYPES OF ST"); FOR I IN ONE RANGE D .. G LOOP CASE I IS WHEN D => VAR_1 := I; CHECK_VAR(VAR_1); WHEN E => VAR_2 := I; CHECK_VAR(VAR_2); WHEN F => VAR_3 := I; CHECK_VAR(VAR_3); WHEN G => VAR_4 := I; CHECK_VAR(VAR_4); END CASE; END LOOP; RESULT; END C55B11A;
33.638095
79
0.524066
4deac482b529b9462bd74f54131a1a19bf333dc1
4,828
ads
Ada
gcc-gcc-7_3_0-release/gcc/ada/g-mbflra.ads
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
7
2020-05-02T17:34:05.000Z
2021-10-17T10:15:18.000Z
gcc-gcc-7_3_0-release/gcc/ada/g-mbflra.ads
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
null
null
null
gcc-gcc-7_3_0-release/gcc/ada/g-mbflra.ads
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
2
2020-07-27T00:22:36.000Z
2021-04-01T09:41:02.000Z
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- G N A T . M B B S _ F L O A T _ R A N D O M -- -- -- -- S p e c -- -- -- -- Copyright (C) 1992-2010, 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. -- -- -- ------------------------------------------------------------------------------ -- The implementation used in this package was contributed by -- Robert Eachus. It is based on the work of L. Blum, M. Blum, and -- M. Shub, SIAM Journal of Computing, Vol 15. No 2, May 1986. The -- particular choices for P and Q chosen here guarantee a period of -- 562,085,314,430,582 (about 2**49), and the generated sequence has -- excellent randomness properties. For further details, see the -- paper "Fast Generation of Trustworthy Random Numbers", by Robert -- Eachus, which describes both the algorithm and the efficient -- implementation approach used here. -- Formerly, this package was Ada.Numerics.Float_Random. It is retained -- here in part to allow users to reconstruct number sequences generated -- by previous versions. with Interfaces; package GNAT.MBBS_Float_Random is -- Basic facilities type Generator is limited private; subtype Uniformly_Distributed is Float range 0.0 .. 1.0; function Random (Gen : Generator) return Uniformly_Distributed; procedure Reset (Gen : Generator); procedure Reset (Gen : Generator; Initiator : Integer); -- Advanced facilities type State is private; procedure Save (Gen : Generator; To_State : out State); procedure Reset (Gen : Generator; From_State : State); Max_Image_Width : constant := 80; function Image (Of_State : State) return String; function Value (Coded_State : String) return State; private type Int is new Interfaces.Integer_32; -- We prefer to use 14 digits for Flt, but some targets are more limited type Flt is digits Positive'Min (14, Long_Long_Float'Digits); K1 : constant := 94_833_359; K1F : constant := 94_833_359.0; K2 : constant := 47_416_679; K2F : constant := 47_416_679.0; Scal : constant := 1.0 / (K1F * K2F); type State is record X1 : Int := 2999 ** 2; -- Square mod p X2 : Int := 1439 ** 2; -- Square mod q P : Int := K1; Q : Int := K2; X : Int := 1; Scl : Flt := Scal; end record; type Generator is limited record Gen_State : State; end record; end GNAT.MBBS_Float_Random;
46.423077
78
0.518641
4dd93e0cfe69a1ac134131e87966a56c7fad5afe
3,763
adb
Ada
demo/adainclude/g-io.adb
e3l6/SSMDev
2929757aab3842aefd84debb2d7c3e8b28c2b340
[ "MIT" ]
12
2017-06-08T14:19:57.000Z
2022-03-09T02:48:59.000Z
demo/adainclude/g-io.adb
e3l6/SSMDev
2929757aab3842aefd84debb2d7c3e8b28c2b340
[ "MIT" ]
6
2017-06-08T13:13:50.000Z
2020-05-15T09:32:43.000Z
demo/adainclude/g-io.adb
e3l6/SSMDev
2929757aab3842aefd84debb2d7c3e8b28c2b340
[ "MIT" ]
3
2017-06-30T14:05:06.000Z
2022-02-17T12:20:45.000Z
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- G N A T . I O -- -- -- -- B o d y -- -- -- -- Copyright (C) 1995-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. -- -- -- ------------------------------------------------------------------------------ package body GNAT.IO is procedure Put (C : Character) is separate; -------------- -- New_Line -- -------------- procedure New_Line (Spacing : Positive := 1) is begin for J in 1 .. Spacing loop Put (ASCII.LF); end loop; end New_Line; --------- -- Put -- --------- procedure Put (X : Integer) is Int : Integer; S : String (1 .. Integer'Width); First : Natural := S'Last + 1; Val : Integer; begin -- Work on negative values to avoid overflows Int := (if X < 0 then X else -X); loop -- Cf RM 4.5.5 Multiplying Operators. The rem operator will return -- negative values for negative values of Int. Val := Int rem 10; Int := (Int - Val) / 10; First := First - 1; S (First) := Character'Val (Character'Pos ('0') - Val); exit when Int = 0; end loop; if X < 0 then First := First - 1; S (First) := '-'; end if; Put (S (First .. S'Last)); end Put; --------- -- Put -- --------- procedure Put (S : String) is begin for J in S'Range loop Put (S (J)); end loop; end Put; -------------- -- Put_Line -- -------------- procedure Put_Line (S : String) is begin Put (S); New_Line; end Put_Line; end GNAT.IO;
37.257426
78
0.350784
50458cf44f9c4b5f001e92b0eeaed5c9b5ace082
1,270
adb
Ada
software/unittest/estimator/src/logger.adb
TUM-EI-RCS/StratoX
5fdd04e01a25efef6052376f43ce85b5bc973392
[ "BSD-3-Clause" ]
12
2017-06-08T14:19:57.000Z
2022-03-09T02:48:59.000Z
software/unittest/estimator/src/logger.adb
TUM-EI-RCS/StratoX
5fdd04e01a25efef6052376f43ce85b5bc973392
[ "BSD-3-Clause" ]
6
2017-06-08T13:13:50.000Z
2020-05-15T09:32:43.000Z
software/unittest/estimator/src/logger.adb
TUM-EI-RCS/StratoX
5fdd04e01a25efef6052376f43ce85b5bc973392
[ "BSD-3-Clause" ]
3
2017-06-30T14:05:06.000Z
2022-02-17T12:20:45.000Z
with Ada.Text_IO; package body logger with Refined_State => (LogState => null) is procedure init(status : out Init_Error_Code) is null; procedure Start_SDLog is null; function Image (level : Log_Level) return String is begin case level is when SENSOR => return "S: "; when ERROR => return "E: "; when WARN => return "W: "; when INFO => return "I: "; when DEBUG => return "D: "; when TRACE => return "T: "; end case; end Image; procedure log(msg_level : Log_Level; message : Message_Type) is begin if msg_level = WARN or msg_level = INFO or msg_level = DEBUG then Ada.Text_IO.Put_Line (Image (msg_level) & message); end if; end log; procedure log_console (msg_level : Log_Level; message : Message_Type) is begin log (msg_level, message); end log_console; procedure log_sd (msg_level : Log_Level; message : ULog.Message) is null; procedure log_ulog(level : Log_Level; msg : ULog.Message) is null; procedure set_Log_Level(level : Log_Level) is null; package body Adapter is procedure init_adapter(status : out Init_Error_Code) is null; procedure write(message : Message_Type) is null; end Adapter; end logger;
28.222222
76
0.653543
0b6c14f1b7d4e04f0baebe3f1ab566f2c76fe380
1,100
ads
Ada
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/specs/alignment2.ads
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
7
2020-05-02T17:34:05.000Z
2021-10-17T10:15:18.000Z
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/specs/alignment2.ads
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
null
null
null
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/specs/alignment2.ads
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
2
2020-07-27T00:22:36.000Z
2021-04-01T09:41:02.000Z
-- { dg-do compile } with Interfaces; use Interfaces; package Alignment2 is pragma Warnings (Off, "*size*"); -- warning type R1 is record A, B, C, D : Integer_8; end record; for R1'Size use 32; for R1'Alignment use 32; -- { dg-warning "suspiciously large alignment" } -- warning type R2 is record A, B, C, D : Integer_8; end record; for R2'Alignment use 32; -- { dg-warning "suspiciously large alignment" } -- OK, big size type R3 is record A, B, C, D : Integer_8; end record; for R3'Size use 32 * 8; for R3'Alignment use 32; -- OK, big size type R4 is record A, B, C, D, E, F, G, H : Integer_32; end record; for R4'Alignment use 32; -- warning type I1 is new Integer_32; for I1'Size use 32; for I1'Alignment use 32; -- { dg-warning "suspiciously large alignment" } -- warning type I2 is new Integer_32; for I2'Alignment use 32; -- { dg-warning "suspiciously large alignment" } -- OK, big size type I3 is new Integer_32; for I3'Size use 32 * 8; -- { dg-warning "unused" } for I3'Alignment use 32; end Alignment2;
22
75
0.64
fbdb9bc75b64a1256df3c353da284000392f4ad8
4,447
adb
Ada
source/amf/mof/amf-visitors-containment.adb
svn2github/matreshka
9d222b3ad9da508855fb1f5adbe5e8a4fad4c530
[ "BSD-3-Clause" ]
24
2016-11-29T06:59:41.000Z
2021-08-30T11:55:16.000Z
source/amf/mof/amf-visitors-containment.adb
svn2github/matreshka
9d222b3ad9da508855fb1f5adbe5e8a4fad4c530
[ "BSD-3-Clause" ]
2
2019-01-16T05:15:20.000Z
2019-02-03T10:03:32.000Z
source/amf/mof/amf-visitors-containment.adb
svn2github/matreshka
9d222b3ad9da508855fb1f5adbe5e8a4fad4c530
[ "BSD-3-Clause" ]
4
2017-07-18T07:11:05.000Z
2020-06-21T03:02:25.000Z
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- Ada Modeling Framework -- -- -- -- Runtime Library Component -- -- -- ------------------------------------------------------------------------------ -- -- -- Copyright © 2012, Vadim Godunko <[email protected]> -- -- All rights reserved. -- -- -- -- Redistribution and use in source and binary forms, with or without -- -- modification, are permitted provided that the following conditions -- -- are met: -- -- -- -- * Redistributions of source code must retain the above copyright -- -- notice, this list of conditions and the following disclaimer. -- -- -- -- * Redistributions in binary form must reproduce the above copyright -- -- notice, this list of conditions and the following disclaimer in the -- -- documentation and/or other materials provided with the distribution. -- -- -- -- * Neither the name of the Vadim Godunko, IE nor the names of its -- -- contributors may be used to endorse or promote products derived from -- -- this software without specific prior written permission. -- -- -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- -- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -- -- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -- -- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -- -- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED -- -- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -- -- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -- -- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -- -- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -- -- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- -- -- ------------------------------------------------------------------------------ -- $Revision$ $Date$ ------------------------------------------------------------------------------ with AMF.Elements.Collections; package body AMF.Visitors.Containment is ----------- -- Visit -- ----------- procedure Visit (Self : in out Containment_Iterator'Class; Visitor : in out AMF.Visitors.Abstract_Visitor'Class; Extent : not null access AMF.Extents.Extent'Class) is use type AMF.Elements.Element_Access; Elements : constant AMF.Elements.Collections.Set_Of_Element := Extent.Elements; Control : Traverse_Control := Continue; begin for J in 1 .. Elements.Length loop if Elements.Element (J).Container = null then Self.Visit (Visitor, Elements.Element (J), Control); case Control is when Continue => null; when Abandon_Children => Control := Continue; when Abandon_Sibling => Control := Continue; exit; when Terminate_Immediately => exit; end case; end if; end loop; end Visit; end AMF.Visitors.Containment;
50.534091
78
0.429728
50ee5c139f7149c5a39ad3e9b6b9a15ea2a52e85
5,127
ads
Ada
src/ada/src/services/spark/common.ads
VVCAS-Sean/OpenUxAS
dcd7be29d182d278a5387908f568d6f8a06b79ee
[ "NASA-1.3" ]
88
2017-08-24T07:02:01.000Z
2022-03-18T04:34:17.000Z
src/ada/src/services/spark/common.ads
VVCAS-Sean/OpenUxAS
dcd7be29d182d278a5387908f568d6f8a06b79ee
[ "NASA-1.3" ]
46
2017-06-08T18:18:08.000Z
2022-03-15T18:24:43.000Z
src/ada/src/services/spark/common.ads
VVCAS-Sean/OpenUxAS
dcd7be29d182d278a5387908f568d6f8a06b79ee
[ "NASA-1.3" ]
53
2017-06-22T14:48:05.000Z
2022-02-15T16:59:38.000Z
with Ada.Containers.Functional_Vectors; with Ada.Containers.Functional_Sets; with Ada.Containers.Functional_Maps; with Ada.Strings; with Ada.Strings.Maps; with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; with Interfaces; package Common with SPARK_Mode is type UInt32 is new Interfaces.Unsigned_32; type Int64 is new Interfaces.Integer_64; type Real32 is new Interfaces.IEEE_Float_32; type Real64 is new Interfaces.IEEE_Float_64; function Get_TaskID (TaskOptionID : Int64) return Int64 is (TaskOptionID / 100_000) with Pre => TaskOptionID in 0 .. 9_999_999_999; -- Retrieve the TaskId from a TaskOptionId function Get_OptionID (TaskOptionID : Int64) return Int64 is (TaskOptionID rem 100_000) with Pre => TaskOptionID in 0 .. 9_999_999_999; -- Retrieve the OptionId from a TaskOptionId function Get_TaskOptionID (TaskID, OptionID : Int64) return Int64 is (TaskID * 100_000 + OptionID) with Pre => TaskID in 0 .. 99_999 and then OptionID in 0 .. 99_999; -- Generate TaskOptionID from TaskID and OptionID function Int64_Hash (X : Int64) return Ada.Containers.Hash_Type is (Ada.Containers.Hash_Type'Mod (X)); package Int64_Sequences is new Ada.Containers.Functional_Vectors (Index_Type => Positive, Element_Type => Int64); type Int64_Seq is new Int64_Sequences.Sequence; package Int64_Sets is new Ada.Containers.Functional_Sets (Int64); type Int64_Set is new Int64_Sets.Set; package Int64_Maps is new Ada.Containers.Functional_Maps (Int64, Int64); type Int64_Map is new Int64_Maps.Map; -- Messages are unbounded strings. To avoid having to prove that messages -- do not overflow Integer'Last, we use a procedure which will truncate -- the message if it is too long. We can justify that this should not -- happen in practice. procedure Append_To_Msg (Msg : in out Unbounded_String; Tail : String); procedure Append_To_Msg (Msg : in out Unbounded_String; Tail : Unbounded_String); procedure Append_To_Msg (Msg : in out Unbounded_String; Tail : Character); -- Append Tail to Msg if there is enough room in the unbounded string package Unbounded_Strings_Subprograms is function To_Unbounded_String (Source : String) return Unbounded_String with Post => Length (To_Unbounded_String'Result) = Source'Length and then (for all J in 1 .. Source'Length => (Source (Source'First - 1 + J) = Element (To_Unbounded_String'Result, J))), Global => null; function Index (Source : Unbounded_String; Pattern : String; Going : Ada.Strings.Direction := Ada.Strings.Forward; Mapping : Ada.Strings.Maps.Character_Mapping := Ada.Strings.Maps.Identity) return Natural with Pre => Pattern'Length /= 0, Post => Index'Result in 1 .. Length (Source) - Pattern'Length + 1, Global => null; function Index (Source : Unbounded_String; Pattern : String; From : Positive; Going : Ada.Strings.Direction := Ada.Strings.Forward; Mapping : Ada.Strings.Maps.Character_Mapping := Ada.Strings.Maps.Identity) return Natural with Pre => (if Length (Source) /= 0 then From <= Length (Source)) and then Pattern'Length /= 0, Post => Index'Result in 0 | From .. Length (Source) - Pattern'Length + 1, Global => null; function Slice (Source : Unbounded_String; Low : Positive; High : Natural) return String with Pre => Low - 1 <= Length (Source) and then High <= Length (Source), Post => Slice'Result'Length = Natural'Max (0, High - Low + 1) and then Slice'Result'First = 1 and then (for all J in Slice'Result'Range => (Element (Source, Low - 1 + J) = Slice'Result (J))), Global => null; private pragma SPARK_Mode (Off); function To_Unbounded_String (Source : String) return Unbounded_String renames Ada.Strings.Unbounded.To_Unbounded_String; function Index (Source : Unbounded_String; Pattern : String; Going : Ada.Strings.Direction := Ada.Strings.Forward; Mapping : Ada.Strings.Maps.Character_Mapping := Ada.Strings.Maps.Identity) return Natural renames Ada.Strings.Unbounded.Index; function Index (Source : Unbounded_String; Pattern : String; From : Positive; Going : Ada.Strings.Direction := Ada.Strings.Forward; Mapping : Ada.Strings.Maps.Character_Mapping := Ada.Strings.Maps.Identity) return Natural renames Ada.Strings.Unbounded.Index; function Slice (Source : Unbounded_String; Low : Positive; High : Natural) return String renames Ada.Strings.Unbounded.Slice; end Unbounded_Strings_Subprograms; end Common;
37.152174
101
0.645992
507997e7a0096bf9f6956394ee80ed5b858d0a2d
4,680
ads
Ada
tools/scitools/conf/understand/ada/ada05/a-stwise.ads
brucegua/moocos
575c161cfa35e220f10d042e2e5ca18773691695
[ "Apache-2.0" ]
1
2020-01-20T21:26:46.000Z
2020-01-20T21:26:46.000Z
tools/scitools/conf/understand/ada/ada05/a-stwise.ads
brucegua/moocos
575c161cfa35e220f10d042e2e5ca18773691695
[ "Apache-2.0" ]
null
null
null
tools/scitools/conf/understand/ada/ada05/a-stwise.ads
brucegua/moocos
575c161cfa35e220f10d042e2e5ca18773691695
[ "Apache-2.0" ]
null
null
null
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- A D A . S T R I N G S . W I D E _ S E A R C H -- -- -- -- 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 the search functions from Ada.Strings.Wide_Fixed. -- They are separated out because they are shared by Ada.Strings.Wide_Bounded -- and Ada.Strings.Wide_Unbounded, and we don't want to drag other irrelevant -- stuff from Ada.Strings.Wide_Fixed when using the other two packages. We -- make this a private package, since user programs should access these -- subprograms via one of the standard string packages. with Ada.Strings.Wide_Maps; private package Ada.Strings.Wide_Search is pragma Preelaborate; function Index (Source : Wide_String; Pattern : Wide_String; Going : Direction := Forward; Mapping : Wide_Maps.Wide_Character_Mapping := Wide_Maps.Identity) return Natural; function Index (Source : Wide_String; Pattern : Wide_String; Going : Direction := Forward; Mapping : Wide_Maps.Wide_Character_Mapping_Function) return Natural; function Index (Source : Wide_String; Set : Wide_Maps.Wide_Character_Set; Test : Membership := Inside; Going : Direction := Forward) return Natural; function Index (Source : Wide_String; Pattern : Wide_String; From : Positive; Going : Direction := Forward; Mapping : Wide_Maps.Wide_Character_Mapping := Wide_Maps.Identity) return Natural; function Index (Source : Wide_String; Pattern : Wide_String; From : Positive; Going : Direction := Forward; Mapping : Wide_Maps.Wide_Character_Mapping_Function) return Natural; function Index (Source : Wide_String; Set : Wide_Maps.Wide_Character_Set; From : Positive; Test : Membership := Inside; Going : Direction := Forward) return Natural; function Index_Non_Blank (Source : Wide_String; Going : Direction := Forward) return Natural; function Index_Non_Blank (Source : Wide_String; From : Positive; Going : Direction := Forward) return Natural; function Count (Source : Wide_String; Pattern : Wide_String; Mapping : Wide_Maps.Wide_Character_Mapping := Wide_Maps.Identity) return Natural; function Count (Source : Wide_String; Pattern : Wide_String; Mapping : Wide_Maps.Wide_Character_Mapping_Function) return Natural; function Count (Source : Wide_String; Set : Wide_Maps.Wide_Character_Set) return Natural; procedure Find_Token (Source : Wide_String; Set : Wide_Maps.Wide_Character_Set; Test : Membership; First : out Positive; Last : out Natural); end Ada.Strings.Wide_Search;
39.327731
78
0.542521
503d990e0e9aaf0b7bb0e1994473f3ad2bc83c2a
3,895
ads
Ada
gcc-gcc-7_3_0-release/gcc/ada/s-pack58.ads
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
7
2020-05-02T17:34:05.000Z
2021-10-17T10:15:18.000Z
gcc-gcc-7_3_0-release/gcc/ada/s-pack58.ads
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
null
null
null
gcc-gcc-7_3_0-release/gcc/ada/s-pack58.ads
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
2
2020-07-27T00:22:36.000Z
2021-04-01T09:41:02.000Z
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- S Y S T E M . P A C K _ 5 8 -- -- -- -- 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. -- -- -- -- 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 = 58 package System.Pack_58 is pragma Preelaborate; Bits : constant := 58; type Bits_58 is mod 2 ** Bits; for Bits_58'Size use Bits; -- In all subprograms below, Rev_SSO is set True if the array has the -- non-default scalar storage order. function Get_58 (Arr : System.Address; N : Natural; Rev_SSO : Boolean) return Bits_58 with Inline; -- Arr is the address of the packed array, N is the zero-based -- subscript. This element is extracted and returned. procedure Set_58 (Arr : System.Address; N : Natural; E : Bits_58; Rev_SSO : Boolean) with Inline; -- Arr is the address of the packed array, N is the zero-based -- subscript. This element is set to the given value. function GetU_58 (Arr : System.Address; N : Natural; Rev_SSO : Boolean) return Bits_58 with Inline; -- Arr is the address of the packed array, N is the zero-based -- subscript. This element is extracted and returned. This version -- is used when Arr may represent an unaligned address. procedure SetU_58 (Arr : System.Address; N : Natural; E : Bits_58; Rev_SSO : Boolean) with Inline; -- Arr is the address of the packed array, N is the zero-based -- subscript. This element is set to the given value. This version -- is used when Arr may represent an unaligned address end System.Pack_58;
49.935897
78
0.474711
397c336a0becc8400e9d3b0e064c584a9d88f505
12,185
adb
Ada
regtests/are-tests.adb
stcarrez/resource-embedder
b1134306db459f87506703ba0a266c0b5e0045b9
[ "Apache-2.0" ]
7
2021-06-04T16:58:59.000Z
2021-06-14T08:51:11.000Z
regtests/are-tests.adb
stcarrez/resource-embedder
b1134306db459f87506703ba0a266c0b5e0045b9
[ "Apache-2.0" ]
2
2021-07-20T15:25:33.000Z
2021-08-20T18:39:58.000Z
regtests/are-tests.adb
stcarrez/resource-embedder
b1134306db459f87506703ba0a266c0b5e0045b9
[ "Apache-2.0" ]
null
null
null
----------------------------------------------------------------------- -- are-tests -- Various tests for the are tool (based on examples) -- Copyright (C) 2021 Stephane Carrez -- Written by Stephane Carrez ([email protected]) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law or agreed to in writing, software -- distributed under the License is distributed on an "AS IS" BASIS, -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -- See the License for the specific language governing permissions and -- limitations under the License. ----------------------------------------------------------------------- with Ada.Text_IO; with Ada.Directories; with Ada.Strings.Maps; with Util.Test_Caller; package body Are.Tests is package Caller is new Util.Test_Caller (Test, "Are.Examples"); procedure Add_Tests (Suite : in Util.Tests.Access_Test_Suite) is begin Caller.Add_Test (Suite, "Test examples c-config", Test_Example_C_Config'Access); Caller.Add_Test (Suite, "Test examples c-help", Test_Example_C_Help'Access); Caller.Add_Test (Suite, "Test examples c-lines", Test_Example_C_Lines'Access); Caller.Add_Test (Suite, "Test examples ada-config", Test_Example_Ada_Config'Access); Caller.Add_Test (Suite, "Test examples ada-help", Test_Example_Ada_Help'Access); Caller.Add_Test (Suite, "Test examples ada-lines", Test_Example_Ada_Lines'Access); if Ada.Directories.Exists ("/usr/bin/go") then Caller.Add_Test (Suite, "Test examples go-config", Test_Example_Go_Config'Access); Caller.Add_Test (Suite, "Test examples go-help", Test_Example_Go_Help'Access); end if; Caller.Add_Test (Suite, "Test Are.Convert_To_Lines_1", Test_Convert_Lines_1'Access); Caller.Add_Test (Suite, "Test Are.Convert_To_Lines_2", Test_Convert_Lines_2'Access); end Add_Tests; procedure Test_Example_C_Config (T : in out Test) is Result : Ada.Strings.Unbounded.Unbounded_String; begin T.Execute ("make -C examples/c-config clean", Result, Status => 0); T.Execute ("make -C examples/c-config ARE=../../bin/are", Result, Status => 0); T.Execute ("examples/c-config/show-config" & Are.Testsuite.EXE, Result, Status => 0); Util.Tests.Assert_Matches (T, ".*Example of embedded configuration.*", Result, "Invalid C show-config"); end Test_Example_C_Config; procedure Test_Example_Ada_Config (T : in out Test) is Result : Ada.Strings.Unbounded.Unbounded_String; begin T.Execute ("make -C examples/ada-config clean", Result, Status => 0); T.Execute ("make -C examples/ada-config ARE=../../bin/are", Result, Status => 0); T.Execute ("examples/ada-config/show_config" & Are.Testsuite.EXE, Result, Status => 0); Util.Tests.Assert_Matches (T, ".*Example of embedded configuration.*", Result, "Invalid Ada show_config"); end Test_Example_Ada_Config; procedure Test_Example_Go_Config (T : in out Test) is Result : Ada.Strings.Unbounded.Unbounded_String; begin T.Execute ("make -C examples/go-config clean", Result, Status => 0); T.Execute ("make -C examples/go-config ARE=../../bin/are", Result, Status => 0); T.Execute ("examples/go-config/show-config", Result, Status => 0); Util.Tests.Assert_Matches (T, ".*Example of embedded configuration.*", Result, "Invalid Go show-config"); end Test_Example_Go_Config; procedure Test_Example_C_Help (T : in out Test) is Result : Ada.Strings.Unbounded.Unbounded_String; begin T.Execute ("make -C examples/c-help clean", Result, Status => 0); T.Execute ("make -C examples/c-help ARE=../../bin/are", Result, Status => 0); T.Execute ("examples/c-help/show-help" & Are.Testsuite.EXE, Result, Status => 0); Util.Tests.Assert_Matches (T, ".*sh.*", Result, "Invalid C show-help: sh missing"); Util.Tests.Assert_Matches (T, ".*extract.*", Result, "Invalid C show-help: extract missing"); T.Execute ("examples/c-help/show-help sh", Result, Status => 0); Util.Tests.Assert_Matches (T, ".*shell.*", Result, "Invalid C show-help: sh"); T.Execute ("examples/c-help/show-help extract", Result, Status => 0); Util.Tests.Assert_Matches (T, ".*extract files.*", Result, "Invalid C show-help: extract"); end Test_Example_C_Help; procedure Test_Example_C_Lines (T : in out Test) is Result : Ada.Strings.Unbounded.Unbounded_String; begin T.Execute ("make -C examples/c-lines clean", Result, Status => 0); T.Execute ("make -C examples/c-lines ARE=../../bin/are", Result, Status => 0); T.Execute ("examples/c-lines/show-script" & Are.Testsuite.EXE, Result, Status => 0); Util.Tests.Assert_Matches (T, "Create SQLite 7 lines.*", Result, "Invalid C show-script: SQL statement"); Util.Tests.Assert_Matches (T, "Drop SQLite 4 lines.*", Result, "Invalid C show-script: SQL statement"); end Test_Example_C_Lines; procedure Test_Example_Ada_Help (T : in out Test) is Result : Ada.Strings.Unbounded.Unbounded_String; begin T.Execute ("make -C examples/ada-help clean", Result, Status => 0); T.Execute ("make -C examples/ada-help ARE=../../bin/are", Result, Status => 0); T.Execute ("examples/ada-help/show_help" & Are.Testsuite.EXE, Result, Status => 0); Util.Tests.Assert_Matches (T, ".*sh.*", Result, "Invalid Ada show-help: sh missing"); Util.Tests.Assert_Matches (T, ".*extract.*", Result, "Invalid Ada show-help: extract missing"); T.Execute ("examples/ada-help/show_help sh", Result, Status => 0); Util.Tests.Assert_Matches (T, ".*shell.*", Result, "Invalid Ada show-help: sh"); T.Execute ("examples/ada-help/show_help extract", Result, Status => 0); Util.Tests.Assert_Matches (T, ".*extract files.*", Result, "Invalid Ada show-help: extract"); end Test_Example_Ada_Help; procedure Test_Example_Ada_Lines (T : in out Test) is Result : Ada.Strings.Unbounded.Unbounded_String; begin T.Execute ("make -C examples/ada-lines clean", Result, Status => 0); T.Execute ("make -C examples/ada-lines ARE=../../bin/are", Result, Status => 0); T.Execute ("examples/ada-lines/show_script" & Are.Testsuite.EXE, Result, Status => 0); Util.Tests.Assert_Matches (T, "Create SQLite 7 lines.*", Result, "Invalid Ada show_script: SQL statement"); Util.Tests.Assert_Matches (T, "Drop SQLite 4 lines.*", Result, "Invalid Ada show_script: SQL statement"); end Test_Example_Ada_Lines; procedure Test_Example_Go_Help (T : in out Test) is Result : Ada.Strings.Unbounded.Unbounded_String; begin T.Execute ("make -C examples/go-help clean", Result, Status => 0); T.Execute ("make -C examples/go-help ARE=../../bin/are", Result, Status => 0); T.Execute ("examples/go-help/show-help", Result, Status => 0); Util.Tests.Assert_Matches (T, ".*sh.*", Result, "Invalid Go show-help: sh missing"); Util.Tests.Assert_Matches (T, ".*extract.*", Result, "Invalid Go show-help: extract missing"); T.Execute ("examples/go-help/show-help sh", Result, Status => 0); Util.Tests.Assert_Matches (T, ".*shell.*", Result, "Invalid Go show-help: sh"); T.Execute ("examples/go-help/show-help extract", Result, Status => 0); Util.Tests.Assert_Matches (T, ".*extract files.*", Result, "Invalid Go show-help: extract"); end Test_Example_Go_Help; procedure Test_Convert_Lines_1 (T : in out Test) is use Ada.Strings.Maps; Resource : Resource_Type; Lines : Util.Strings.Vectors.Vector; File : File_Info; begin Resource.Add_File ("lines", "regtests/files/lines-1.txt"); Resource.Separators := To_Set (ASCII.CR) or To_Set (ASCII.LF); File := Resource.Files.First_Element; Resource.Convert_To_Lines (File, Lines); Util.Tests.Assert_Equals (T, 9, Natural (Lines.Length), "Invalid number of lines"); for I in 1 .. 9 loop Util.Tests.Assert_Equals (T, "line" & Util.Strings.Image (I), Lines.Element (I), "Invalid line"); end loop; end Test_Convert_Lines_1; procedure Test_Convert_Lines_2 (T : in out Test) is use Ada.Strings.Maps; Resource : Resource_Type; Lines : Util.Strings.Vectors.Vector; File : File_Info; begin Resource.Add_File ("lines", "regtests/files/lines-2.txt"); Resource.Separators := To_Set (";"); -- Remove newlines and contiguous spaces. Are.Add_Line_Filter (Resource, "[\r\n]", ""); Are.Add_Line_Filter (Resource, "[ \t][ \t]+", " "); -- Remove C comments. Are.Add_Line_Filter (Resource, "/\*[^/]*\*/", ""); -- Remove contiguous spaces (can happen after C comment removal). Are.Add_Line_Filter (Resource, "[ \t][ \t]+", " "); File := Resource.Files.First_Element; Resource.Convert_To_Lines (File, Lines); Util.Tests.Assert_Equals (T, 5, Natural (Lines.Length), "Invalid number of lines"); for I in 1 .. 5 loop Ada.Text_IO.Put_Line (Lines.Element (I)); end loop; Util.Tests.Assert_Equals (T, "pragma synchronous=OFF", Lines.Element (1), "Invalid line 1"); Util.Tests.Assert_Equals (T, "CREATE TABLE IF NOT EXISTS entity_type ( `id`" & " INTEGER PRIMARY KEY AUTOINCREMENT, `name`" & " VARCHAR(127) UNIQUE )", Lines.Element (2), "Invalid line 2"); Util.Tests.Assert_Equals (T, "CREATE TABLE IF NOT EXISTS sequence ( `name`" & " VARCHAR(127) UNIQUE NOT NULL, `version` INTEGER NOT NULL," & " `value` BIGINT NOT NULL, `block_size` BIGINT NOT NULL," & " PRIMARY KEY (`name`))", Lines.Element (3), "Invalid line 3"); Util.Tests.Assert_Equals (T, "INSERT OR IGNORE INTO entity_type (name) VALUES" & " (""entity_type"")", Lines.Element (4), "Invalid line 4"); Util.Tests.Assert_Equals (T, "INSERT OR IGNORE INTO entity_type (name) VALUES" & " (""sequence"")", Lines.Element (5), "Invalid line 5"); end Test_Convert_Lines_2; end Are.Tests;
47.784314
94
0.556094
4d8912badadded5892d039aa4a1596823424c30a
14,153
ads
Ada
arch/ARM/STM32/svd/stm32wb55x/stm32_svd-syscfg.ads
morbos/Ada_Drivers_Library
a4ab26799be60997c38735f4056160c4af597ef7
[ "BSD-3-Clause" ]
2
2018-05-16T03:56:39.000Z
2019-07-31T13:53:56.000Z
arch/ARM/STM32/svd/stm32wb55x/stm32_svd-syscfg.ads
morbos/Ada_Drivers_Library
a4ab26799be60997c38735f4056160c4af597ef7
[ "BSD-3-Clause" ]
null
null
null
arch/ARM/STM32/svd/stm32wb55x/stm32_svd-syscfg.ads
morbos/Ada_Drivers_Library
a4ab26799be60997c38735f4056160c4af597ef7
[ "BSD-3-Clause" ]
null
null
null
-- This spec has been automatically generated from STM32WB55x.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with HAL; with System; package STM32_SVD.SYSCFG is pragma Preelaborate; --------------- -- Registers -- --------------- subtype MEMRMP_MEM_MODE_Field is HAL.UInt3; type MEMRMP_Register is record MEM_MODE : MEMRMP_MEM_MODE_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 MEMRMP_Register use record MEM_MODE at 0 range 0 .. 2; Reserved_3_31 at 0 range 3 .. 31; end record; subtype CFGR1_FPU_IE_Field is HAL.UInt6; type CFGR1_Register is record -- unspecified Reserved_0_7 : HAL.UInt8 := 16#0#; BOOSTEN : Boolean := False; -- unspecified Reserved_9_15 : HAL.UInt7 := 16#0#; I2C_PB6_FMP : Boolean := False; I2C_PB7_FMP : Boolean := False; I2C_PB8_FMP : Boolean := False; I2C_PB9_FMP : Boolean := False; I2C1_FMP : Boolean := False; -- unspecified Reserved_21_21 : HAL.Bit := 16#0#; I2C3_FMP : Boolean := False; -- unspecified Reserved_23_25 : HAL.UInt3 := 16#0#; FPU_IE : CFGR1_FPU_IE_Field := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for CFGR1_Register use record Reserved_0_7 at 0 range 0 .. 7; BOOSTEN at 0 range 8 .. 8; Reserved_9_15 at 0 range 9 .. 15; I2C_PB6_FMP at 0 range 16 .. 16; I2C_PB7_FMP at 0 range 17 .. 17; I2C_PB8_FMP at 0 range 18 .. 18; I2C_PB9_FMP at 0 range 19 .. 19; I2C1_FMP at 0 range 20 .. 20; Reserved_21_21 at 0 range 21 .. 21; I2C3_FMP at 0 range 22 .. 22; Reserved_23_25 at 0 range 23 .. 25; FPU_IE at 0 range 26 .. 31; end record; subtype EXTICR1_EXTI0_Field is HAL.UInt3; subtype EXTICR1_EXTI1_Field is HAL.UInt3; subtype EXTICR1_EXTI2_Field is HAL.UInt3; subtype EXTICR1_EXTI3_Field is HAL.UInt3; type EXTICR1_Register is record EXTI0 : EXTICR1_EXTI0_Field := 16#0#; -- unspecified Reserved_3_3 : HAL.Bit := 16#0#; EXTI1 : EXTICR1_EXTI1_Field := 16#0#; -- unspecified Reserved_7_7 : HAL.Bit := 16#0#; EXTI2 : EXTICR1_EXTI2_Field := 16#0#; -- unspecified Reserved_11_11 : HAL.Bit := 16#0#; EXTI3 : EXTICR1_EXTI3_Field := 16#0#; -- unspecified Reserved_15_31 : HAL.UInt17 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for EXTICR1_Register use record EXTI0 at 0 range 0 .. 2; Reserved_3_3 at 0 range 3 .. 3; EXTI1 at 0 range 4 .. 6; Reserved_7_7 at 0 range 7 .. 7; EXTI2 at 0 range 8 .. 10; Reserved_11_11 at 0 range 11 .. 11; EXTI3 at 0 range 12 .. 14; Reserved_15_31 at 0 range 15 .. 31; end record; subtype EXTICR2_EXTI4_Field is HAL.UInt3; subtype EXTICR2_EXTI5_Field is HAL.UInt3; subtype EXTICR2_EXTI6_Field is HAL.UInt3; subtype EXTICR2_EXTI7_Field is HAL.UInt3; type EXTICR2_Register is record EXTI4 : EXTICR2_EXTI4_Field := 16#0#; -- unspecified Reserved_3_3 : HAL.Bit := 16#0#; EXTI5 : EXTICR2_EXTI5_Field := 16#0#; -- unspecified Reserved_7_7 : HAL.Bit := 16#0#; EXTI6 : EXTICR2_EXTI6_Field := 16#0#; -- unspecified Reserved_11_11 : HAL.Bit := 16#0#; EXTI7 : EXTICR2_EXTI7_Field := 16#0#; -- unspecified Reserved_15_31 : HAL.UInt17 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for EXTICR2_Register use record EXTI4 at 0 range 0 .. 2; Reserved_3_3 at 0 range 3 .. 3; EXTI5 at 0 range 4 .. 6; Reserved_7_7 at 0 range 7 .. 7; EXTI6 at 0 range 8 .. 10; Reserved_11_11 at 0 range 11 .. 11; EXTI7 at 0 range 12 .. 14; Reserved_15_31 at 0 range 15 .. 31; end record; subtype EXTICR3_EXTI8_Field is HAL.UInt3; subtype EXTICR3_EXTI9_Field is HAL.UInt3; subtype EXTICR3_EXTI10_Field is HAL.UInt3; subtype EXTICR3_EXTI11_Field is HAL.UInt3; type EXTICR3_Register is record EXTI8 : EXTICR3_EXTI8_Field := 16#0#; -- unspecified Reserved_3_3 : HAL.Bit := 16#0#; EXTI9 : EXTICR3_EXTI9_Field := 16#0#; -- unspecified Reserved_7_7 : HAL.Bit := 16#0#; EXTI10 : EXTICR3_EXTI10_Field := 16#0#; -- unspecified Reserved_11_11 : HAL.Bit := 16#0#; EXTI11 : EXTICR3_EXTI11_Field := 16#0#; -- unspecified Reserved_15_31 : HAL.UInt17 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for EXTICR3_Register use record EXTI8 at 0 range 0 .. 2; Reserved_3_3 at 0 range 3 .. 3; EXTI9 at 0 range 4 .. 6; Reserved_7_7 at 0 range 7 .. 7; EXTI10 at 0 range 8 .. 10; Reserved_11_11 at 0 range 11 .. 11; EXTI11 at 0 range 12 .. 14; Reserved_15_31 at 0 range 15 .. 31; end record; subtype EXTICR4_EXTI12_Field is HAL.UInt3; subtype EXTICR4_EXTI13_Field is HAL.UInt3; subtype EXTICR4_EXTI14_Field is HAL.UInt3; subtype EXTICR4_EXTI15_Field is HAL.UInt3; type EXTICR4_Register is record EXTI12 : EXTICR4_EXTI12_Field := 16#0#; -- unspecified Reserved_3_3 : HAL.Bit := 16#0#; EXTI13 : EXTICR4_EXTI13_Field := 16#0#; -- unspecified Reserved_7_7 : HAL.Bit := 16#0#; EXTI14 : EXTICR4_EXTI14_Field := 16#0#; -- unspecified Reserved_11_11 : HAL.Bit := 16#0#; EXTI15 : EXTICR4_EXTI15_Field := 16#0#; -- unspecified Reserved_15_31 : HAL.UInt17 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for EXTICR4_Register use record EXTI12 at 0 range 0 .. 2; Reserved_3_3 at 0 range 3 .. 3; EXTI13 at 0 range 4 .. 6; Reserved_7_7 at 0 range 7 .. 7; EXTI14 at 0 range 8 .. 10; Reserved_11_11 at 0 range 11 .. 11; EXTI15 at 0 range 12 .. 14; Reserved_15_31 at 0 range 15 .. 31; end record; type SCSR_Register is record SRAM2ER : Boolean := False; SRAM2BSY : Boolean := False; -- unspecified Reserved_2_30 : HAL.UInt29 := 16#0#; C2RFD : Boolean := False; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for SCSR_Register use record SRAM2ER at 0 range 0 .. 0; SRAM2BSY at 0 range 1 .. 1; Reserved_2_30 at 0 range 2 .. 30; C2RFD at 0 range 31 .. 31; end record; type CFGR2_Register is record CLL : Boolean := False; SPL : Boolean := False; PVDL : Boolean := False; ECCL : Boolean := False; -- unspecified Reserved_4_7 : HAL.UInt4 := 16#0#; SPF : Boolean := False; -- unspecified Reserved_9_31 : HAL.UInt23 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for CFGR2_Register use record CLL at 0 range 0 .. 0; SPL at 0 range 1 .. 1; PVDL at 0 range 2 .. 2; ECCL at 0 range 3 .. 3; Reserved_4_7 at 0 range 4 .. 7; SPF at 0 range 8 .. 8; Reserved_9_31 at 0 range 9 .. 31; end record; type SWPR_Register is record P0WP : Boolean := False; P1WP : Boolean := False; P2WP : Boolean := False; P3WP : Boolean := False; P4WP : Boolean := False; P5WP : Boolean := False; P6WP : Boolean := False; P7WP : Boolean := False; P8WP : Boolean := False; P9WP : Boolean := False; P10WP : Boolean := False; P11WP : Boolean := False; P12WP : Boolean := False; P13WP : Boolean := False; P14WP : Boolean := False; P15WP : Boolean := False; P16WP : Boolean := False; P17WP : Boolean := False; P18WP : Boolean := False; P19WP : Boolean := False; P20WP : Boolean := False; P21WP : Boolean := False; P22WP : Boolean := False; P23WP : Boolean := False; P24WP : Boolean := False; P25WP : Boolean := False; P26WP : Boolean := False; P27WP : Boolean := False; P28WP : Boolean := False; P29WP : Boolean := False; P30WP : Boolean := False; P31WP : Boolean := False; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for SWPR_Register use record P0WP at 0 range 0 .. 0; P1WP at 0 range 1 .. 1; P2WP at 0 range 2 .. 2; P3WP at 0 range 3 .. 3; P4WP at 0 range 4 .. 4; P5WP at 0 range 5 .. 5; P6WP at 0 range 6 .. 6; P7WP at 0 range 7 .. 7; P8WP at 0 range 8 .. 8; P9WP at 0 range 9 .. 9; P10WP at 0 range 10 .. 10; P11WP at 0 range 11 .. 11; P12WP at 0 range 12 .. 12; P13WP at 0 range 13 .. 13; P14WP at 0 range 14 .. 14; P15WP at 0 range 15 .. 15; P16WP at 0 range 16 .. 16; P17WP at 0 range 17 .. 17; P18WP at 0 range 18 .. 18; P19WP at 0 range 19 .. 19; P20WP at 0 range 20 .. 20; P21WP at 0 range 21 .. 21; P22WP at 0 range 22 .. 22; P23WP at 0 range 23 .. 23; P24WP at 0 range 24 .. 24; P25WP at 0 range 25 .. 25; P26WP at 0 range 26 .. 26; P27WP at 0 range 27 .. 27; P28WP at 0 range 28 .. 28; P29WP at 0 range 29 .. 29; P30WP at 0 range 30 .. 30; P31WP at 0 range 31 .. 31; end record; subtype SKR_KEY_Field is HAL.UInt8; type SKR_Register is record KEY : SKR_KEY_Field := 16#0#; -- unspecified Reserved_8_31 : HAL.UInt24 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for SKR_Register use record KEY at 0 range 0 .. 7; Reserved_8_31 at 0 range 8 .. 31; end record; type SWPR2_Register is record P32WP : Boolean := False; P33WP : Boolean := False; P34WP : Boolean := False; P35WP : Boolean := False; P36WP : Boolean := False; P37WP : Boolean := False; P38WP : Boolean := False; P39WP : Boolean := False; P40WP : Boolean := False; P41WP : Boolean := False; P42WP : Boolean := False; P43WP : Boolean := False; P44WP : Boolean := False; P45WP : Boolean := False; P46WP : Boolean := False; P47WP : Boolean := False; P48WP : Boolean := False; P49WP : Boolean := False; P50WP : Boolean := False; P51WP : Boolean := False; P52WP : Boolean := False; P53WP : Boolean := False; P54WP : Boolean := False; P55WP : Boolean := False; P56WP : Boolean := False; P57WP : Boolean := False; P58WP : Boolean := False; P59WP : Boolean := False; P60WP : Boolean := False; P61WP : Boolean := False; P62WP : Boolean := False; P63WP : Boolean := False; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for SWPR2_Register use record P32WP at 0 range 0 .. 0; P33WP at 0 range 1 .. 1; P34WP at 0 range 2 .. 2; P35WP at 0 range 3 .. 3; P36WP at 0 range 4 .. 4; P37WP at 0 range 5 .. 5; P38WP at 0 range 6 .. 6; P39WP at 0 range 7 .. 7; P40WP at 0 range 8 .. 8; P41WP at 0 range 9 .. 9; P42WP at 0 range 10 .. 10; P43WP at 0 range 11 .. 11; P44WP at 0 range 12 .. 12; P45WP at 0 range 13 .. 13; P46WP at 0 range 14 .. 14; P47WP at 0 range 15 .. 15; P48WP at 0 range 16 .. 16; P49WP at 0 range 17 .. 17; P50WP at 0 range 18 .. 18; P51WP at 0 range 19 .. 19; P52WP at 0 range 20 .. 20; P53WP at 0 range 21 .. 21; P54WP at 0 range 22 .. 22; P55WP at 0 range 23 .. 23; P56WP at 0 range 24 .. 24; P57WP at 0 range 25 .. 25; P58WP at 0 range 26 .. 26; P59WP at 0 range 27 .. 27; P60WP at 0 range 28 .. 28; P61WP at 0 range 29 .. 29; P62WP at 0 range 30 .. 30; P63WP at 0 range 31 .. 31; end record; ----------------- -- Peripherals -- ----------------- type SYSCFG_Peripheral is record MEMRMP : aliased MEMRMP_Register; CFGR1 : aliased CFGR1_Register; EXTICR1 : aliased EXTICR1_Register; EXTICR2 : aliased EXTICR2_Register; EXTICR3 : aliased EXTICR3_Register; EXTICR4 : aliased EXTICR4_Register; SCSR : aliased SCSR_Register; CFGR2 : aliased CFGR2_Register; SWPR : aliased SWPR_Register; SKR : aliased SKR_Register; SWPR2 : aliased SWPR2_Register; end record with Volatile; for SYSCFG_Peripheral use record MEMRMP at 16#0# range 0 .. 31; CFGR1 at 16#4# range 0 .. 31; EXTICR1 at 16#8# range 0 .. 31; EXTICR2 at 16#C# range 0 .. 31; EXTICR3 at 16#10# range 0 .. 31; EXTICR4 at 16#14# range 0 .. 31; SCSR at 16#18# range 0 .. 31; CFGR2 at 16#1C# range 0 .. 31; SWPR at 16#20# range 0 .. 31; SKR at 16#24# range 0 .. 31; SWPR2 at 16#28# range 0 .. 31; end record; SYSCFG_Periph : aliased SYSCFG_Peripheral with Import, Address => System'To_Address (16#40010000#); end STM32_SVD.SYSCFG;
32.23918
66
0.563555
0eb92ed8f13897577fd451711d2b377f49c9f527
9,858
adb
Ada
Ada/src/Problem_13.adb
Tim-Tom/project-euler
177e0043ee93409742ec596c4379251f681b4275
[ "Unlicense" ]
null
null
null
Ada/src/Problem_13.adb
Tim-Tom/project-euler
177e0043ee93409742ec596c4379251f681b4275
[ "Unlicense" ]
null
null
null
Ada/src/Problem_13.adb
Tim-Tom/project-euler
177e0043ee93409742ec596c4379251f681b4275
[ "Unlicense" ]
null
null
null
with Ada.Text_IO; with BigInteger; use BigInteger; package body Problem_13 is package IO renames Ada.Text_IO; procedure Solve is type Problem_13_Array is Array (1 .. 100) of BigInt; nums : Problem_13_Array; sum : BigInt := BigInteger.Create(0); begin nums( 1) := BigInteger.Create("37107287533902102798797998220837590246510135740250"); nums( 2) := BigInteger.Create("46376937677490009712648124896970078050417018260538"); nums( 3) := BigInteger.Create("74324986199524741059474233309513058123726617309629"); nums( 4) := BigInteger.Create("91942213363574161572522430563301811072406154908250"); nums( 5) := BigInteger.Create("23067588207539346171171980310421047513778063246676"); nums( 6) := BigInteger.Create("89261670696623633820136378418383684178734361726757"); nums( 7) := BigInteger.Create("28112879812849979408065481931592621691275889832738"); nums( 8) := BigInteger.Create("44274228917432520321923589422876796487670272189318"); nums( 9) := BigInteger.Create("47451445736001306439091167216856844588711603153276"); nums( 10) := BigInteger.Create("70386486105843025439939619828917593665686757934951"); nums( 11) := BigInteger.Create("62176457141856560629502157223196586755079324193331"); nums( 12) := BigInteger.Create("64906352462741904929101432445813822663347944758178"); nums( 13) := BigInteger.Create("92575867718337217661963751590579239728245598838407"); nums( 14) := BigInteger.Create("58203565325359399008402633568948830189458628227828"); nums( 15) := BigInteger.Create("80181199384826282014278194139940567587151170094390"); nums( 16) := BigInteger.Create("35398664372827112653829987240784473053190104293586"); nums( 17) := BigInteger.Create("86515506006295864861532075273371959191420517255829"); nums( 18) := BigInteger.Create("71693888707715466499115593487603532921714970056938"); nums( 19) := BigInteger.Create("54370070576826684624621495650076471787294438377604"); nums( 20) := BigInteger.Create("53282654108756828443191190634694037855217779295145"); nums( 21) := BigInteger.Create("36123272525000296071075082563815656710885258350721"); nums( 22) := BigInteger.Create("45876576172410976447339110607218265236877223636045"); nums( 23) := BigInteger.Create("17423706905851860660448207621209813287860733969412"); nums( 24) := BigInteger.Create("81142660418086830619328460811191061556940512689692"); nums( 25) := BigInteger.Create("51934325451728388641918047049293215058642563049483"); nums( 26) := BigInteger.Create("62467221648435076201727918039944693004732956340691"); nums( 27) := BigInteger.Create("15732444386908125794514089057706229429197107928209"); nums( 28) := BigInteger.Create("55037687525678773091862540744969844508330393682126"); nums( 29) := BigInteger.Create("18336384825330154686196124348767681297534375946515"); nums( 30) := BigInteger.Create("80386287592878490201521685554828717201219257766954"); nums( 31) := BigInteger.Create("78182833757993103614740356856449095527097864797581"); nums( 32) := BigInteger.Create("16726320100436897842553539920931837441497806860984"); nums( 33) := BigInteger.Create("48403098129077791799088218795327364475675590848030"); nums( 34) := BigInteger.Create("87086987551392711854517078544161852424320693150332"); nums( 35) := BigInteger.Create("59959406895756536782107074926966537676326235447210"); nums( 36) := BigInteger.Create("69793950679652694742597709739166693763042633987085"); nums( 37) := BigInteger.Create("41052684708299085211399427365734116182760315001271"); nums( 38) := BigInteger.Create("65378607361501080857009149939512557028198746004375"); nums( 39) := BigInteger.Create("35829035317434717326932123578154982629742552737307"); nums( 40) := BigInteger.Create("94953759765105305946966067683156574377167401875275"); nums( 41) := BigInteger.Create("88902802571733229619176668713819931811048770190271"); nums( 42) := BigInteger.Create("25267680276078003013678680992525463401061632866526"); nums( 43) := BigInteger.Create("36270218540497705585629946580636237993140746255962"); nums( 44) := BigInteger.Create("24074486908231174977792365466257246923322810917141"); nums( 45) := BigInteger.Create("91430288197103288597806669760892938638285025333403"); nums( 46) := BigInteger.Create("34413065578016127815921815005561868836468420090470"); nums( 47) := BigInteger.Create("23053081172816430487623791969842487255036638784583"); nums( 48) := BigInteger.Create("11487696932154902810424020138335124462181441773470"); nums( 49) := BigInteger.Create("63783299490636259666498587618221225225512486764533"); nums( 50) := BigInteger.Create("67720186971698544312419572409913959008952310058822"); nums( 51) := BigInteger.Create("95548255300263520781532296796249481641953868218774"); nums( 52) := BigInteger.Create("76085327132285723110424803456124867697064507995236"); nums( 53) := BigInteger.Create("37774242535411291684276865538926205024910326572967"); nums( 54) := BigInteger.Create("23701913275725675285653248258265463092207058596522"); nums( 55) := BigInteger.Create("29798860272258331913126375147341994889534765745501"); nums( 56) := BigInteger.Create("18495701454879288984856827726077713721403798879715"); nums( 57) := BigInteger.Create("38298203783031473527721580348144513491373226651381"); nums( 58) := BigInteger.Create("34829543829199918180278916522431027392251122869539"); nums( 59) := BigInteger.Create("40957953066405232632538044100059654939159879593635"); nums( 60) := BigInteger.Create("29746152185502371307642255121183693803580388584903"); nums( 61) := BigInteger.Create("41698116222072977186158236678424689157993532961922"); nums( 62) := BigInteger.Create("62467957194401269043877107275048102390895523597457"); nums( 63) := BigInteger.Create("23189706772547915061505504953922979530901129967519"); nums( 64) := BigInteger.Create("86188088225875314529584099251203829009407770775672"); nums( 65) := BigInteger.Create("11306739708304724483816533873502340845647058077308"); nums( 66) := BigInteger.Create("82959174767140363198008187129011875491310547126581"); nums( 67) := BigInteger.Create("97623331044818386269515456334926366572897563400500"); nums( 68) := BigInteger.Create("42846280183517070527831839425882145521227251250327"); nums( 69) := BigInteger.Create("55121603546981200581762165212827652751691296897789"); nums( 70) := BigInteger.Create("32238195734329339946437501907836945765883352399886"); nums( 71) := BigInteger.Create("75506164965184775180738168837861091527357929701337"); nums( 72) := BigInteger.Create("62177842752192623401942399639168044983993173312731"); nums( 73) := BigInteger.Create("32924185707147349566916674687634660915035914677504"); nums( 74) := BigInteger.Create("99518671430235219628894890102423325116913619626622"); nums( 75) := BigInteger.Create("73267460800591547471830798392868535206946944540724"); nums( 76) := BigInteger.Create("76841822524674417161514036427982273348055556214818"); nums( 77) := BigInteger.Create("97142617910342598647204516893989422179826088076852"); nums( 78) := BigInteger.Create("87783646182799346313767754307809363333018982642090"); nums( 79) := BigInteger.Create("10848802521674670883215120185883543223812876952786"); nums( 80) := BigInteger.Create("71329612474782464538636993009049310363619763878039"); nums( 81) := BigInteger.Create("62184073572399794223406235393808339651327408011116"); nums( 82) := BigInteger.Create("66627891981488087797941876876144230030984490851411"); nums( 83) := BigInteger.Create("60661826293682836764744779239180335110989069790714"); nums( 84) := BigInteger.Create("85786944089552990653640447425576083659976645795096"); nums( 85) := BigInteger.Create("66024396409905389607120198219976047599490197230297"); nums( 86) := BigInteger.Create("64913982680032973156037120041377903785566085089252"); nums( 87) := BigInteger.Create("16730939319872750275468906903707539413042652315011"); nums( 88) := BigInteger.Create("94809377245048795150954100921645863754710598436791"); nums( 89) := BigInteger.Create("78639167021187492431995700641917969777599028300699"); nums( 90) := BigInteger.Create("15368713711936614952811305876380278410754449733078"); nums( 91) := BigInteger.Create("40789923115535562561142322423255033685442488917353"); nums( 92) := BigInteger.Create("44889911501440648020369068063960672322193204149535"); nums( 93) := BigInteger.Create("41503128880339536053299340368006977710650566631954"); nums( 94) := BigInteger.Create("81234880673210146739058568557934581403627822703280"); nums( 95) := BigInteger.Create("82616570773948327592232845941706525094512325230608"); nums( 96) := BigInteger.Create("22918802058777319719839450180888072429661980811197"); nums( 97) := BigInteger.Create("77158542502016545090413245809786882778948721859617"); nums( 98) := BigInteger.Create("72107838435069186155435662884062257473692284509516"); nums( 99) := BigInteger.Create("20849603980134001723930671666823555245252804609722"); nums(100) := BigInteger.Create("53503534226472524250874054075591789781264330331690"); for index in nums'Range loop sum := sum + nums(index); end loop; declare total : constant String := BigInteger.ToString(sum); start : String (1 .. 10); begin for index in start'Range loop start(index) := total(index); end loop; IO.Put_Line(start); end; end Solve; end Problem_13;
79.5
91
0.769832
4dd5eae66546922973bc5f478d2261043475f872
44
ads
Ada
src/ini-print.ads
SSOCsoft/Log_Reporter
9351ce0b5bda6909d7b9fac3436a702393188fc9
[ "MIT" ]
null
null
null
src/ini-print.ads
SSOCsoft/Log_Reporter
9351ce0b5bda6909d7b9fac3436a702393188fc9
[ "MIT" ]
null
null
null
src/ini-print.ads
SSOCsoft/Log_Reporter
9351ce0b5bda6909d7b9fac3436a702393188fc9
[ "MIT" ]
null
null
null
Procedure INI.Print(Object : Instance);
22
43
0.704545
1002f271dcb04198baf63a4630c733567c3196b3
4,334
adb
Ada
src/gl/implementation/gl-immediate.adb
Roldak/OpenGLAda
6807605b7321249d71286fa25231bdfd537d3eac
[ "MIT" ]
79
2015-04-20T23:10:02.000Z
2022-03-04T13:50:56.000Z
src/gl/implementation/gl-immediate.adb
Roldak/OpenGLAda
6807605b7321249d71286fa25231bdfd537d3eac
[ "MIT" ]
126
2015-09-10T10:41:34.000Z
2022-03-20T11:25:40.000Z
src/gl/implementation/gl-immediate.adb
Roldak/OpenGLAda
6807605b7321249d71286fa25231bdfd537d3eac
[ "MIT" ]
20
2015-03-17T07:15:57.000Z
2022-02-02T17:12:11.000Z
-- part of OpenGLAda, (c) 2017 Felix Krause -- released under the terms of the MIT license, see the file "COPYING" with GL.API; with GL.Enums.Getter; package body GL.Immediate is Error_Checking_Suspended : Boolean := False; overriding procedure Finalize (Token : in out Input_Token) is begin if not Token.Finalized then API.GL_End; Error_Checking_Suspended := False; Raise_Exception_On_OpenGL_Error; Token.Finalized := True; end if; end Finalize; function Start (Mode : Connection_Mode) return Input_Token is begin API.GL_Begin (Mode); Error_Checking_Suspended := True; return Input_Token'(Ada.Finalization.Limited_Controlled with Mode => Mode, Finalized => False); end Start; procedure Add_Vertex (Token : Input_Token; Vertex : Vector2) is pragma Unreferenced (Token); begin API.Vertex2 (Vertex); end Add_Vertex; procedure Add_Vertex (Token : Input_Token; Vertex : Vector3) is pragma Unreferenced (Token); begin API.Vertex3 (Vertex); end Add_Vertex; procedure Add_Vertex (Token : Input_Token; Vertex : Vector4) is pragma Unreferenced (Token); begin API.Vertex4 (Vertex); end Add_Vertex; procedure Set_Color (Value : Colors.Color) is begin API.Color (Value); if not Error_Checking_Suspended then Raise_Exception_On_OpenGL_Error; end if; end Set_Color; function Current_Color return Colors.Color is Ret : Colors.Color; begin API.Get_Color (Enums.Getter.Current_Color, Ret); if not Error_Checking_Suspended then Raise_Exception_On_OpenGL_Error; end if; return Ret; end Current_Color; procedure Set_Secondary_Color (Value : Colors.Color) is begin API.Secondary_Color (Value); if not Error_Checking_Suspended then Raise_Exception_On_OpenGL_Error; end if; end Set_Secondary_Color; function Current_Secondary_Color return Colors.Color is Ret : Colors.Color; begin API.Get_Color (Enums.Getter.Current_Secondary_Color, Ret); if not Error_Checking_Suspended then Raise_Exception_On_OpenGL_Error; end if; return Ret; end Current_Secondary_Color; procedure Set_Fog_Distance (Value : Double) is begin API.Fog_Coord (Value); if not Error_Checking_Suspended then Raise_Exception_On_OpenGL_Error; end if; end Set_Fog_Distance; function Current_Fog_Distance return Double is Value : aliased Double; begin API.Get_Double (Enums.Getter.Current_Fog_Coord, Value'Access); if not Error_Checking_Suspended then Raise_Exception_On_OpenGL_Error; end if; return Value; end Current_Fog_Distance; procedure Set_Normal (Value : Vector3) is begin API.Normal (Value); if not Error_Checking_Suspended then Raise_Exception_On_OpenGL_Error; end if; end Set_Normal; function Current_Normal return Vector3 is Value : Vector3; begin API.Get_Double (Enums.Getter.Current_Normal, Value (X)'Access); if not Error_Checking_Suspended then Raise_Exception_On_OpenGL_Error; end if; return Value; end Current_Normal; procedure Set_Texture_Coordinates (Value : Vector4) is begin API.Tex_Coord4 (Value); if not Error_Checking_Suspended then Raise_Exception_On_OpenGL_Error; end if; end Set_Texture_Coordinates; procedure Set_Texture_Coordinates (Value : Vector3) is begin API.Tex_Coord3 (Value); if not Error_Checking_Suspended then Raise_Exception_On_OpenGL_Error; end if; end Set_Texture_Coordinates; procedure Set_Texture_Coordinates (Value : Vector2) is begin API.Tex_Coord2 (Value); if not Error_Checking_Suspended then Raise_Exception_On_OpenGL_Error; end if; end Set_Texture_Coordinates; function Current_Texture_Coordinates return Vector4 is Value : Vector4; begin API.Get_Double (Enums.Getter.Current_Texture_Coords, Value (X)'Access); if not Error_Checking_Suspended then Raise_Exception_On_OpenGL_Error; end if; return Value; end Current_Texture_Coordinates; end GL.Immediate;
28.326797
77
0.695201
1c48ac0e08e29e0aea599714dc46415fbc36705f
918
adb
Ada
source/strings/a-snmade.adb
ytomino/drake
4e4bdcd8b8e23a11a29b31d3a8861fdf60090ea2
[ "MIT" ]
33
2015-04-04T09:19:36.000Z
2021-11-10T05:33:34.000Z
source/strings/a-snmade.adb
ytomino/drake
4e4bdcd8b8e23a11a29b31d3a8861fdf60090ea2
[ "MIT" ]
8
2017-11-14T13:05:07.000Z
2018-08-09T15:28:49.000Z
source/strings/a-snmade.adb
ytomino/drake
4e4bdcd8b8e23a11a29b31d3a8861fdf60090ea2
[ "MIT" ]
9
2015-02-03T17:09:53.000Z
2021-11-12T01:16:05.000Z
package body Ada.Strings.Naked_Maps.Debug is -- implementation of sets function Valid (Set : Character_Set_Data) return Boolean is begin for I in Set.Items'First .. Set.Items'Last loop if Set.Items (I).High < Set.Items (I).Low then return False; end if; end loop; for I in Set.Items'First .. Set.Items'Last - 1 loop if Set.Items (I).High >= Wide_Wide_Character'Pred (Set.Items (I + 1).Low) then return False; end if; end loop; return True; end Valid; -- implementation of maps function Valid (Map : Character_Mapping_Data) return Boolean is begin for I in Map.From'First .. Map.From'Last - 1 loop if Map.From (I) >= Map.From (I + 1) then return False; end if; end loop; return True; end Valid; end Ada.Strings.Naked_Maps.Debug;
26.228571
66
0.584967
0b14a5cf5b3f74a3b6dfa8540c2cf3279033d508
3,473
adb
Ada
Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/s-conca5.adb
djamal2727/Main-Bearing-Analytical-Model
2f00c2219c71be0175c6f4f8f1d4cca231d97096
[ "Apache-2.0" ]
null
null
null
Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/s-conca5.adb
djamal2727/Main-Bearing-Analytical-Model
2f00c2219c71be0175c6f4f8f1d4cca231d97096
[ "Apache-2.0" ]
null
null
null
Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/s-conca5.adb
djamal2727/Main-Bearing-Analytical-Model
2f00c2219c71be0175c6f4f8f1d4cca231d97096
[ "Apache-2.0" ]
null
null
null
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- S Y S T E M . C O N C A T _ 5 -- -- -- -- B o d y -- -- -- -- Copyright (C) 2008-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. -- -- -- ------------------------------------------------------------------------------ pragma Compiler_Unit_Warning; with System.Concat_4; package body System.Concat_5 is pragma Suppress (All_Checks); ------------------ -- Str_Concat_5 -- ------------------ procedure Str_Concat_5 (R : out String; S1, S2, S3, S4, S5 : String) is F, L : Natural; begin F := R'First; L := F + S1'Length - 1; R (F .. L) := S1; F := L + 1; L := F + S2'Length - 1; R (F .. L) := S2; F := L + 1; L := F + S3'Length - 1; R (F .. L) := S3; F := L + 1; L := F + S4'Length - 1; R (F .. L) := S4; F := L + 1; L := R'Last; R (F .. L) := S5; end Str_Concat_5; ------------------------- -- Str_Concat_Bounds_5 -- ------------------------- procedure Str_Concat_Bounds_5 (Lo, Hi : out Natural; S1, S2, S3, S4, S5 : String) is begin System.Concat_4.Str_Concat_Bounds_4 (Lo, Hi, S2, S3, S4, S5); if S1 /= "" then Hi := S1'Last + Hi - Lo + 1; Lo := S1'First; end if; end Str_Concat_Bounds_5; end System.Concat_5;
39.91954
78
0.391592
4dbc83257a76b5d2babf7e2decf83b4175798620
5,459
ads
Ada
source/amf/uml/amf-standard_profile_l2-subsystems-collections.ads
svn2github/matreshka
9d222b3ad9da508855fb1f5adbe5e8a4fad4c530
[ "BSD-3-Clause" ]
24
2016-11-29T06:59:41.000Z
2021-08-30T11:55:16.000Z
source/amf/uml/amf-standard_profile_l2-subsystems-collections.ads
svn2github/matreshka
9d222b3ad9da508855fb1f5adbe5e8a4fad4c530
[ "BSD-3-Clause" ]
2
2019-01-16T05:15:20.000Z
2019-02-03T10:03:32.000Z
source/amf/uml/amf-standard_profile_l2-subsystems-collections.ads
svn2github/matreshka
9d222b3ad9da508855fb1f5adbe5e8a4fad4c530
[ "BSD-3-Clause" ]
4
2017-07-18T07:11:05.000Z
2020-06-21T03:02:25.000Z
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- Ada Modeling Framework -- -- -- -- Runtime Library Component -- -- -- ------------------------------------------------------------------------------ -- -- -- Copyright © 2011-2012, Vadim Godunko <[email protected]> -- -- All rights reserved. -- -- -- -- Redistribution and use in source and binary forms, with or without -- -- modification, are permitted provided that the following conditions -- -- are met: -- -- -- -- * Redistributions of source code must retain the above copyright -- -- notice, this list of conditions and the following disclaimer. -- -- -- -- * Redistributions in binary form must reproduce the above copyright -- -- notice, this list of conditions and the following disclaimer in the -- -- documentation and/or other materials provided with the distribution. -- -- -- -- * Neither the name of the Vadim Godunko, IE nor the names of its -- -- contributors may be used to endorse or promote products derived from -- -- this software without specific prior written permission. -- -- -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- -- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -- -- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -- -- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -- -- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED -- -- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -- -- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -- -- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -- -- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -- -- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- -- -- ------------------------------------------------------------------------------ -- $Revision$ $Date$ ------------------------------------------------------------------------------ -- This file is generated, don't edit it. ------------------------------------------------------------------------------ with AMF.Generic_Collections; package AMF.Standard_Profile_L2.Subsystems.Collections is pragma Preelaborate; package Standard_Profile_L2_Subsystem_Collections is new AMF.Generic_Collections (Standard_Profile_L2_Subsystem, Standard_Profile_L2_Subsystem_Access); type Set_Of_Standard_Profile_L2_Subsystem is new Standard_Profile_L2_Subsystem_Collections.Set with null record; Empty_Set_Of_Standard_Profile_L2_Subsystem : constant Set_Of_Standard_Profile_L2_Subsystem; type Ordered_Set_Of_Standard_Profile_L2_Subsystem is new Standard_Profile_L2_Subsystem_Collections.Ordered_Set with null record; Empty_Ordered_Set_Of_Standard_Profile_L2_Subsystem : constant Ordered_Set_Of_Standard_Profile_L2_Subsystem; type Bag_Of_Standard_Profile_L2_Subsystem is new Standard_Profile_L2_Subsystem_Collections.Bag with null record; Empty_Bag_Of_Standard_Profile_L2_Subsystem : constant Bag_Of_Standard_Profile_L2_Subsystem; type Sequence_Of_Standard_Profile_L2_Subsystem is new Standard_Profile_L2_Subsystem_Collections.Sequence with null record; Empty_Sequence_Of_Standard_Profile_L2_Subsystem : constant Sequence_Of_Standard_Profile_L2_Subsystem; private Empty_Set_Of_Standard_Profile_L2_Subsystem : constant Set_Of_Standard_Profile_L2_Subsystem := (Standard_Profile_L2_Subsystem_Collections.Set with null record); Empty_Ordered_Set_Of_Standard_Profile_L2_Subsystem : constant Ordered_Set_Of_Standard_Profile_L2_Subsystem := (Standard_Profile_L2_Subsystem_Collections.Ordered_Set with null record); Empty_Bag_Of_Standard_Profile_L2_Subsystem : constant Bag_Of_Standard_Profile_L2_Subsystem := (Standard_Profile_L2_Subsystem_Collections.Bag with null record); Empty_Sequence_Of_Standard_Profile_L2_Subsystem : constant Sequence_Of_Standard_Profile_L2_Subsystem := (Standard_Profile_L2_Subsystem_Collections.Sequence with null record); end AMF.Standard_Profile_L2.Subsystems.Collections;
59.336957
110
0.556879
0b23a20f9473e341609cb10950fa9988a1968e59
617
ads
Ada
tier-1/gmp/source/thin/gmp_c-mpf_ptr.ads
charlie5/cBound
741be08197a61ad9c72553e3302f3b669902216d
[ "0BSD" ]
2
2015-11-12T11:16:20.000Z
2021-08-24T22:32:04.000Z
tier-1/gmp/source/thin/gmp_c-mpf_ptr.ads
charlie5/cBound
741be08197a61ad9c72553e3302f3b669902216d
[ "0BSD" ]
1
2018-06-05T05:19:35.000Z
2021-11-20T01:13:23.000Z
tier-1/gmp/source/thin/gmp_c-mpf_ptr.ads
charlie5/cBound
741be08197a61ad9c72553e3302f3b669902216d
[ "0BSD" ]
null
null
null
-- This file is generated by SWIG. Please do *not* modify by hand. -- with gmp_c.a_a_mpf_struct; with Interfaces.C; package gmp_c.mpf_ptr is -- Item -- subtype Item is gmp_c.a_a_mpf_struct.Pointer; -- Items -- type Items is array (Interfaces.C.size_t range <>) of aliased gmp_c.mpf_ptr.Item; -- Pointer -- type Pointer is access all gmp_c.mpf_ptr.Item; -- Pointers -- type Pointers is array (Interfaces.C.size_t range <>) of aliased gmp_c.mpf_ptr.Pointer; -- Pointer_Pointer -- type Pointer_Pointer is access all gmp_c.mpf_ptr.Pointer; end gmp_c.mpf_ptr;
19.903226
75
0.679092
101b796a6d26121901da62d502cc3497be95624b
1,826
adb
Ada
test/simple_test.adb
HeisenbugLtd/flac-ada
54ee813e05ec91207cbf3dcb3a36449ecb48db5d
[ "WTFPL" ]
5
2020-07-05T18:45:12.000Z
2020-12-18T22:58:55.000Z
test/simple_test.adb
HeisenbugLtd/flac-ada
54ee813e05ec91207cbf3dcb3a36449ecb48db5d
[ "WTFPL" ]
null
null
null
test/simple_test.adb
HeisenbugLtd/flac-ada
54ee813e05ec91207cbf3dcb3a36449ecb48db5d
[ "WTFPL" ]
null
null
null
------------------------------------------------------------------------------ -- Copyright (C) 2020 by Heisenbug Ltd. ([email protected]) -- -- This work is free. You can redistribute it and/or modify it under the -- terms of the Do What The Fuck You Want To Public License, Version 2, -- as published by Sam Hocevar. See the LICENSE file for more details. ------------------------------------------------------------------------------ pragma License (Unrestricted); ------------------------------------------------------------------------------ -- FLAC/Ada -- -- Very simple test program to check basic functionality. ------------------------------------------------------------------------------ with GNAT.IO; with Flac.Debug; with Flac.Reader; procedure Simple_Test with SPARK_Mode => On is Test_File : Flac.Reader.File_Handle; use type Flac.Main_Error_Type; use type Flac.Error_Type; pragma Assertion_Policy (Check); begin Flac.Reader.Open (File => "doesnotexist.flac", Flac_File => Test_File); pragma Assume (Flac.Reader.Get_Error (Handle => Test_File).Main = Flac.Open_Error); -- Expected result is an external dependency outside of SPARK. Flac.Reader.Open (File => "notaflac.flac", Flac_File => Test_File); pragma Assume (Flac.Reader.Get_Error (Handle => Test_File).Main = Flac.Not_A_Flac_File); -- Expected result is an external dependency outside of SPARK. Flac.Reader.Open (File => "Unnamed.flac", Flac_File => Test_File); pragma Assume (Flac.Reader.Get_Error (Handle => Test_File) = Flac.No_Error); -- Expected result is an external dependency outside of SPARK. Flac.Debug.Print_Stream_Info (Handle => Test_File); end Simple_Test;
33.2
81
0.55586
fbeee9a02702dc795a62a94812f993cfaf449a76
2,832
adb
Ada
3-mid/opengl/source/lean/model/opengl-model-hexagon-lit_textured.adb
charlie5/lace-alire
9ace9682cf4daac7adb9f980c2868d6225b8111c
[ "0BSD" ]
1
2022-01-20T07:13:42.000Z
2022-01-20T07:13:42.000Z
3-mid/opengl/source/lean/model/opengl-model-hexagon-lit_textured.adb
charlie5/lace-alire
9ace9682cf4daac7adb9f980c2868d6225b8111c
[ "0BSD" ]
null
null
null
3-mid/opengl/source/lean/model/opengl-model-hexagon-lit_textured.adb
charlie5/lace-alire
9ace9682cf4daac7adb9f980c2868d6225b8111c
[ "0BSD" ]
null
null
null
with openGL.Geometry.lit_textured, openGL.Primitive.indexed; package body openGL.Model.hexagon.lit_textured is --------- --- Forge -- function new_Hexagon (Radius : in Real; Face : in lit_textured.Face) return View is Self : constant View := new Item; begin Self.Radius := Radius; Self.Face := Face; return Self; end new_Hexagon; -------------- --- Attributes -- overriding function to_GL_Geometries (Self : access Item; Textures : access Texture.name_Map_of_texture'Class; Fonts : in Font.font_id_Map_of_font) return Geometry.views is pragma unreferenced (Textures, Fonts); use Geometry.lit_textured, Texture; the_Sites : constant hexagon.Sites := vertex_Sites (Self.Radius); the_Indices : aliased constant Indices := (1, 2, 3, 4, 5, 6, 7, 2); function new_Face (Vertices : in geometry.lit_textured.Vertex_array) return Geometry.lit_textured.view is use Primitive; the_Geometry : constant Geometry.lit_textured.view := Geometry.lit_textured.new_Geometry; the_Primitive : constant Primitive.indexed.view := Primitive.indexed.new_Primitive (triangle_Fan, the_Indices); begin the_Geometry.Vertices_are (Vertices); the_Geometry.add (Primitive.view (the_Primitive)); return the_Geometry; end new_Face; upper_Face : Geometry.lit_textured.view; begin -- Upper Face -- declare the_Vertices : constant Geometry.lit_textured.Vertex_array := (1 => (Site => (0.0, 0.0, 0.0), Normal => Normal, Coords => (0.0, 0.0), Shine => default_Shine), 2 => (Site => the_Sites (1), Normal => Normal, Coords => (0.0, 0.0), Shine => default_Shine), 3 => (Site => the_Sites (2), Normal => Normal, Coords => (1.0, 0.0), Shine => default_Shine), 4 => (Site => the_Sites (3), Normal => Normal, Coords => (1.0, 1.0), Shine => default_Shine), 5 => (Site => the_Sites (4), Normal => Normal, Coords => (0.0, 1.0), Shine => default_Shine), 6 => (Site => the_Sites (5), Normal => Normal, Coords => (0.0, 1.0), Shine => default_Shine), 7 => (Site => the_Sites (6), Normal => Normal, Coords => (0.0, 1.0), Shine => default_Shine)); begin upper_Face := new_Face (Vertices => the_Vertices); if Self.Face.Texture /= null_Object then upper_Face.Texture_is (Self.Face.Texture); end if; end; return (1 => upper_Face.all'Access); end to_GL_Geometries; end openGL.Model.hexagon.lit_textured;
32.930233
117
0.569915
1025254ac73ba895bfa7680b8d8ed125238f101b
822
ada
Ada
aflex/src/vaxvms/command_lineb.ada
irion7/aflex-ayacc-mirror
6c8e444ca735a1e2149beb14c5a85759d05403fe
[ "Unlicense" ]
1
2015-01-18T23:09:29.000Z
2015-01-18T23:09:29.000Z
aflex/src/vaxvms/command_lineb.ada
irion7/aflex-ayacc-mirror
6c8e444ca735a1e2149beb14c5a85759d05403fe
[ "Unlicense" ]
null
null
null
aflex/src/vaxvms/command_lineb.ada
irion7/aflex-ayacc-mirror
6c8e444ca735a1e2149beb14c5a85759d05403fe
[ "Unlicense" ]
null
null
null
-- TITLE command line interface -- AUTHOR: Simon Wright -- DESCRIPTION command line interface body for use with VAX/VMS -- NOTES this file is system dependent with Tstring; with Handle_Foreign_Command; package body Command_Line_Interface is subtype Argument_Number is Integer range 1 .. Max_Number_Args; procedure Handle (N : Argument_Number; A : String); procedure Process_Command_Line is new Handle_Foreign_Command (Argument_Count => Argument_Number, Handle_Argument => Handle); procedure Handle (N : Argument_Number; A : String) is begin Argv (N) := Tstring.Vstr (A); Argc := N + 1; end Handle; procedure Initialize_Command_Line is begin Argc := 1; Argv (0) := Tstring.Vstr ("Aflex"); Process_Command_Line; end Initialize_Command_Line; end Command_Line_Interface;
24.909091
64
0.734793
1cd5e801b603c47a62a93d906ff119dd3d109dbe
608
ads
Ada
utils/src/coordinates_2d.ads
Heziode/aoc-ada-2021
fd2fcb177a930d16a16da888e89aeca8946cc615
[ "BSD-2-Clause" ]
3
2021-12-02T10:21:33.000Z
2021-12-25T13:31:55.000Z
utils/src/coordinates_2d.ads
Heziode/aoc-ada-2021
fd2fcb177a930d16a16da888e89aeca8946cc615
[ "BSD-2-Clause" ]
null
null
null
utils/src/coordinates_2d.ads
Heziode/aoc-ada-2021
fd2fcb177a930d16a16da888e89aeca8946cc615
[ "BSD-2-Clause" ]
1
2021-12-06T22:47:02.000Z
2021-12-06T22:47:02.000Z
generic type Element is (<>); with function "+" (Left, Right : Element) return Element is <>; with function "-" (Left, Right : Element) return Element is <>; package Coordinates_2D is type Coordinate_2D is record Line, Column : Element; end record; function "+" (Left, Right : Coordinate_2D) return Coordinate_2D is ((Line => Left.Line + Right.Line, Column => Left.Column + Right.Column)); function "-" (Left, Right : Coordinate_2D) return Coordinate_2D is ((Line => Left.Line - Right.Line, Column => Left.Column - Right.Column)); end Coordinates_2D;
33.777778
69
0.649671
4dfce2236a4480da2e264956dd650dbabfba82d3
837
adb
Ada
src/gdb/gdb-7.11/gdb/testsuite/gdb.ada/win_fu_syms/foo.adb
alrooney/unum-sdk
bbccb10b0cd3500feccbbef22e27ea111c3d18eb
[ "Apache-2.0" ]
31
2018-08-01T21:25:24.000Z
2022-02-14T07:52:34.000Z
src/gdb/gdb-7.11/gdb/testsuite/gdb.ada/win_fu_syms/foo.adb
alrooney/unum-sdk
bbccb10b0cd3500feccbbef22e27ea111c3d18eb
[ "Apache-2.0" ]
40
2018-12-03T19:48:52.000Z
2021-03-10T06:34:26.000Z
src/gdb/gdb-7.11/gdb/testsuite/gdb.ada/win_fu_syms/foo.adb
alrooney/unum-sdk
bbccb10b0cd3500feccbbef22e27ea111c3d18eb
[ "Apache-2.0" ]
20
2018-11-16T21:19:22.000Z
2021-10-18T23:08:24.000Z
-- Copyright 2013-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/>. pragma Initialize_Scalars; with Pck; use Pck; procedure Foo is A : Integer; begin Do_Nothing (A'Address); end Foo;
34.875
73
0.735962
0bff45afed9c3bfa403dee7311f30b742c1bf998
3,730
ads
Ada
Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/a-stoufi.ads
djamal2727/Main-Bearing-Analytical-Model
2f00c2219c71be0175c6f4f8f1d4cca231d97096
[ "Apache-2.0" ]
null
null
null
Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/a-stoufi.ads
djamal2727/Main-Bearing-Analytical-Model
2f00c2219c71be0175c6f4f8f1d4cca231d97096
[ "Apache-2.0" ]
null
null
null
Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/a-stoufi.ads
djamal2727/Main-Bearing-Analytical-Model
2f00c2219c71be0175c6f4f8f1d4cca231d97096
[ "Apache-2.0" ]
null
null
null
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ADA.STRINGS.TEXT_OUTPUT.FILES -- -- -- -- S p e c -- -- -- -- Copyright (C) 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. -- -- -- ------------------------------------------------------------------------------ private with GNAT.OS_Lib; private with Ada.Finalization; package Ada.Strings.Text_Output.Files is -- This package supports a Sink type that sends output to a file. The file -- is automatically closed when finalized. function Standard_Output return Sink_Access; function Standard_Error return Sink_Access; type File (<>) is new Sink with private; function Create_File (Name : String; Indent_Amount : Natural := Default_Indent_Amount; Chunk_Length : Positive := Default_Chunk_Length) return File; function Create_New_File (Name : String; Indent_Amount : Natural := Default_Indent_Amount; Chunk_Length : Positive := Default_Chunk_Length) return File; -- Create a file. Create_New_File raises an exception if the file already -- exists; Create_File overwrites. procedure Close (S : in out File'Class); private package OS renames GNAT.OS_Lib; type Self_Ref (Self : access File) is new Finalization.Limited_Controlled with null record; overriding procedure Finalize (Ref : in out Self_Ref); type File is new Sink with record FD : OS.File_Descriptor := OS.Invalid_FD; Ref : Self_Ref (File'Access); end record; overriding procedure Full_Method (S : in out File); overriding procedure Flush_Method (S : in out File); end Ada.Strings.Text_Output.Files;
51.09589
78
0.498928
0b4eea5230dfdd29cca4dcaaa7a5f39510ba2426
1,211
adb
Ada
source/server/ada_lsp-completions.adb
reznikmm/ada_lsp
b0e2666f758d6e46b973b5d7e4b9a7ba66c46157
[ "MIT" ]
11
2017-10-18T18:22:04.000Z
2022-01-01T12:22:23.000Z
source/server/ada_lsp-completions.adb
reznikmm/ada_lsp
b0e2666f758d6e46b973b5d7e4b9a7ba66c46157
[ "MIT" ]
null
null
null
source/server/ada_lsp-completions.adb
reznikmm/ada_lsp
b0e2666f758d6e46b973b5d7e4b9a7ba66c46157
[ "MIT" ]
1
2019-09-14T23:13:33.000Z
2019-09-14T23:13:33.000Z
-- Copyright (c) 2017 Maxim Reznik <[email protected]> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- package body Ada_LSP.Completions is -------------- -- Document -- -------------- not overriding function Document (Self : Context) return Ada_LSP.Documents.Constant_Document_Access is begin return Self.Document; end Document; ------------------ -- Set_Document -- ------------------ not overriding procedure Set_Document (Self : in out Context; Value : Ada_LSP.Documents.Constant_Document_Access) is begin Self.Document := Value; end Set_Document; --------------- -- Set_Token -- --------------- not overriding procedure Set_Token (Self : in out Context; Token : Incr.Nodes.Tokens.Token_Access; Offset : Positive) is begin Self.Token := Token; Self.Offset := Offset; end Set_Token; ----------- -- Token -- ----------- not overriding function Token (Self : Context) return Incr.Nodes.Tokens.Token_Access is begin return Self.Token; end Token; end Ada_LSP.Completions;
22.018182
74
0.554088
1cb5f92a23c7abd3f3aeae96510eed1bc233a055
5,099
adb
Ada
gcc-gcc-7_3_0-release/gcc/ada/s-stoele.adb
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
7
2020-05-02T17:34:05.000Z
2021-10-17T10:15:18.000Z
gcc-gcc-7_3_0-release/gcc/ada/s-stoele.adb
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
13
2018-10-12T21:29:09.000Z
2018-10-25T20:06:51.000Z
gcc-gcc-7_3_0-release/gcc/ada/s-stoele.adb
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
2
2020-07-27T00:22:36.000Z
2021-04-01T09:41:02.000Z
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- S Y S T E M . S T O R A G E _ E L E M E N T S -- -- -- -- B o d y -- -- -- -- Copyright (C) 1992-2014, Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 3, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. -- -- -- -- As a special exception under Section 7 of GPL version 3, you are granted -- -- additional permissions described in the GCC Runtime Library Exception, -- -- version 3.1, as published by the Free Software Foundation. -- -- -- -- You should have received a copy of the GNU General Public License and -- -- a copy of the GCC Runtime Library Exception along with this program; -- -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see -- -- <http://www.gnu.org/licenses/>. -- -- -- -- GNAT was originally developed by the GNAT team at New York University. -- -- Extensive contributions were provided by Ada Core Technologies Inc. -- -- -- ------------------------------------------------------------------------------ pragma Compiler_Unit_Warning; with Ada.Unchecked_Conversion; package body System.Storage_Elements is pragma Suppress (All_Checks); -- Conversion to/from address -- Note qualification below of To_Address to avoid ambiguities systems -- where Address is a visible integer type. function To_Address is new Ada.Unchecked_Conversion (Storage_Offset, Address); function To_Offset is new Ada.Unchecked_Conversion (Address, Storage_Offset); -- Conversion to/from integers -- These functions must be place first because they are inlined_always -- and are used and inlined in other subprograms defined in this unit. ---------------- -- To_Address -- ---------------- function To_Address (Value : Integer_Address) return Address is begin return Address (Value); end To_Address; ---------------- -- To_Integer -- ---------------- function To_Integer (Value : Address) return Integer_Address is begin return Integer_Address (Value); end To_Integer; -- Address arithmetic --------- -- "+" -- --------- function "+" (Left : Address; Right : Storage_Offset) return Address is begin return Storage_Elements.To_Address (To_Integer (Left) + To_Integer (To_Address (Right))); end "+"; function "+" (Left : Storage_Offset; Right : Address) return Address is begin return Storage_Elements.To_Address (To_Integer (To_Address (Left)) + To_Integer (Right)); end "+"; --------- -- "-" -- --------- function "-" (Left : Address; Right : Storage_Offset) return Address is begin return Storage_Elements.To_Address (To_Integer (Left) - To_Integer (To_Address (Right))); end "-"; function "-" (Left, Right : Address) return Storage_Offset is begin return To_Offset (Storage_Elements.To_Address (To_Integer (Left) - To_Integer (Right))); end "-"; ----------- -- "mod" -- ----------- function "mod" (Left : Address; Right : Storage_Offset) return Storage_Offset is begin if Right > 0 then return Storage_Offset (To_Integer (Left) mod Integer_Address (Right)); -- The negative case makes no sense since it is a case of a mod where -- the left argument is unsigned and the right argument is signed. In -- accordance with the (spirit of the) permission of RM 13.7.1(16), -- we raise CE, and also include the zero case here. Yes, the RM says -- PE, but this really is so obviously more like a constraint error. else raise Constraint_Error; end if; end "mod"; end System.Storage_Elements;
38.628788
79
0.504413
4d7d797f1eb7584dca6ea52c776e04f8996f8139
173
adb
Ada
Read Only/gdb-6.8/gdb/testsuite/gdb.ada/complete/pck.adb
samyvic/OS-Project
1622bc1641876584964effd91d65ef02e92728e1
[ "Apache-2.0" ]
null
null
null
Read Only/gdb-6.8/gdb/testsuite/gdb.ada/complete/pck.adb
samyvic/OS-Project
1622bc1641876584964effd91d65ef02e92728e1
[ "Apache-2.0" ]
null
null
null
Read Only/gdb-6.8/gdb/testsuite/gdb.ada/complete/pck.adb
samyvic/OS-Project
1622bc1641876584964effd91d65ef02e92728e1
[ "Apache-2.0" ]
null
null
null
package body Pck is procedure Proc (I : Integer) is Not_In_Scope : Integer := 77; begin Inner.Inside_Variable := Not_In_Scope + I; end Proc; end Pck;
17.3
48
0.641618
4d13b6084d72d024ad86ee1492a61b3a06308be6
33,437
adb
Ada
arch/ARM/STM32/driversL5/stm32-pka.adb
morbos/Ada_Drivers_Library
a4ab26799be60997c38735f4056160c4af597ef7
[ "BSD-3-Clause" ]
2
2018-05-16T03:56:39.000Z
2019-07-31T13:53:56.000Z
arch/ARM/STM32/driversL5/stm32-pka.adb
morbos/Ada_Drivers_Library
a4ab26799be60997c38735f4056160c4af597ef7
[ "BSD-3-Clause" ]
null
null
null
arch/ARM/STM32/driversL5/stm32-pka.adb
morbos/Ada_Drivers_Library
a4ab26799be60997c38735f4056160c4af597ef7
[ "BSD-3-Clause" ]
null
null
null
with System; with System.Machine_Code; use System.Machine_Code; with STM32.RNG; use STM32.RNG; with STM32_SVD.RCC; use STM32_SVD.RCC; package body STM32.PKA is Curve : CurveData; procedure Copy_S_To_U32 (S : String; To : out UInt32_Array) is X : UInt32; Y : UInt8_Array (0 .. 3); for X'Address use Y'Address; type ModBy4 is mod 4; Idx : ModBy4 := 0; Limit : Integer := (S'Length / 2); T : UInt8_Array (0 .. Limit - 1); Tidx : Integer := 0; Off : Integer := 0; type ModBy2 is mod 2; Idx2 : ModBy2 := 0; Z : UInt8; begin Z := 0; for I in S'Range loop Z := (Z * 16); if (Character'Pos (S (I)) >= Character'Pos ('a')) then Z := Z + (10 + (Character'Pos (S (I)) - Character'Pos ('a'))); elsif (Character'Pos (S (I)) >= Character'Pos ('A')) then Z := Z + (10 + (Character'Pos (S (I)) - Character'Pos ('A'))); else Z := Z + (Character'Pos (S (I)) - Character'Pos ('0')); end if; Idx2 := Idx2 + 1; if 0 = Idx2 then T (Tidx) := Z; Tidx := Tidx + 1; Z := 0; end if; end loop; -- ((Integer (N_By_8) - I) + Extra for I in reverse T'Range loop Y (Integer (Idx)) := T (I); Idx := Idx + 1; if Idx = 0 then To (Off) := X; X := 0; Off := Off + 1; end if; end loop; if Idx /= 0 then -- Remainder To (Off) := X; end if; end Copy_S_To_U32; procedure Copy_U8_To_U32 (From : UInt8_Array; To : out UInt32_Array) is N : Integer; X : UInt32; Y : UInt8_Array (0 .. 3); for X'Address use Y'Address; type ModBy4 is mod 4; Idx : ModBy4 := 0; begin N := From'Size / 8; for I in From'Range loop Y (Integer (3 - Idx)) := From (I); Idx := Idx + 1; if Idx = 0 then To ((N - I) / 4) := X; end if; end loop; end Copy_U8_To_U32; procedure Copy_U32_To_U8 (From : UInt32_Array; To : out UInt8_Array) is N : Integer; X : UInt32; Y : UInt8_Array (0 .. 3); for X'Address use Y'Address; type ModBy4 is mod 4; Idx : ModBy4 := 0; begin N := (To'Size / 8) - 1; X := From (0); for I in To'Range loop To (N - I) := Y (Integer (Idx)); Idx := Idx + 1; if Idx = 0 then X := From ((I + 1) / 4); end if; end loop; end Copy_U32_To_U8; procedure Copy_U8_To_S (From : UInt8; To : out ECDSA_String; Offset : UInt32) is Ch : Character; Nib : UInt4; begin for I in 1 .. 2 loop if I = 1 then Nib := UInt4 (Shift_Right (From, 4)); else Nib := UInt4 (From and 16#0f#); end if; if Nib >= 10 then Ch := Character'Val (Integer ((Nib - 10)) + Character'Pos ('A')); else Ch := Character'Val (Integer (Nib) + Character'Pos ('0')); end if; To (I + Integer ((Offset * 2))) := Ch; end loop; end Copy_U8_To_S; procedure Copy_U32_To_S (From : UInt32_Array; To : out ECDSA_String) is N : UInt32; X : UInt32; Y : UInt8_Array (0 .. 3); for X'Address use Y'Address; Idx : UInt32 := 0; To_Copy : UInt32 := N_By_8; begin -- X := From (0); N := Num_Bits / 32; if (Num_Bits mod 32) > 0 then N := N + 1; end if; for I in 0 .. N - 1 loop X := From (Integer (I)); for J in 0 .. 3 loop To_Copy := To_Copy - 1; Copy_U8_To_S (Y (J), To, To_Copy); if To_Copy = 0 then return; end if; end loop; Idx := Idx + 4; end loop; end Copy_U32_To_S; procedure Enable_Pka is RCC : aliased RCC_Peripheral with Import, Address => S_NS_Periph (RCC_Base); begin RCC.AHB2ENR.PKAEN := True; loop PKA.PKA_CR.EN := True; exit when PKA.PKA_CR.EN; end loop; end Enable_Pka; procedure Disable_Pka is RCC : aliased RCC_Peripheral with Import, Address => S_NS_Periph (RCC_Base); begin loop PKA.PKA_CR.EN := False; exit when not PKA.PKA_CR.EN; end loop; end Disable_Pka; function Check_Errors return Boolean is begin return PKA.PKA_SR.RAMERRF or PKA.PKA_SR.ADDRERRF; end Check_Errors; procedure Clear_Flags is begin PKA.PKA_CLRFR.PROCENDFC := True; PKA.PKA_CLRFR.RAMERRFC := True; PKA.PKA_CLRFR.ADDRERRFC := True; end Clear_Flags; procedure Clear_Ram is PKA_RAM : aliased All_PKA_Ram with Import, Volatile, Address => S_NS_Periph (PKA_Base); begin PKA_RAM.RAM := (0 => 0, others => 0); end Clear_Ram; function Common_Init (Mode : Init_Mode) return CurveData is Neg : Boolean := True; -- Coeff A is usually -ve (we only false the exceptions) Curve : CurveData; begin if Curve_Name = "secp521r1" then Curve.P := "01FF" & "FFFFFFFF" & "FFFFFFFF" & "FFFFFFFF" & "FFFFFFFF" & "FFFFFFFF" & "FFFFFFFF" & "FFFFFFFF" & "FFFFFFFF" & "FFFFFFFF" & "FFFFFFFF" & "FFFFFFFF" & "FFFFFFFF" & "FFFFFFFF" & "FFFFFFFF" & "FFFFFFFF" & "FFFFFFFF"; Curve.A := "01FF" & "FFFFFFFF" & "FFFFFFFF" & "FFFFFFFF" & "FFFFFFFF" & "FFFFFFFF" & "FFFFFFFF" & "FFFFFFFF" & "FFFFFFFF" & "FFFFFFFF" & "FFFFFFFF" & "FFFFFFFF" & "FFFFFFFF" & "FFFFFFFF" & "FFFFFFFF" & "FFFFFFFF" & "FFFFFFFC"; Curve.B := "0051" & "953EB961" & "8E1C9A1F" & "929A21A0" & "B68540EE" & "A2DA725B" & "99B315F3" & "B8B48991" & "8EF109E1" & "56193951" & "EC7E937B" & "1652C0BD" & "3BB1BF07" & "3573DF88" & "3D2C34F1" & "EF451FD4" & "6B503F00"; Curve.X := "00C6" & "858E06B7" & "0404E9CD" & "9E3ECB66" & "2395B442" & "9C648139" & "053FB521" & "F828AF60" & "6B4D3DBA" & "A14B5E77" & "EFE75928" & "FE1DC127" & "A2FFA8DE" & "3348B3C1" & "856A429B" & "F97E7E31" & "C2E5BD66"; Curve.Y := "0118" & "39296A78" & "9A3BC004" & "5C8A5FB4" & "2C7D1BD9" & "98F54449" & "579B4468" & "17AFBD17" & "273E662C" & "97EE7299" & "5EF42640" & "C550B901" & "3FAD0761" & "353C7086" & "A272C240" & "88BE9476" & "9FD16650"; Curve.N := "01FF" & "FFFFFFFF" & "FFFFFFFF" & "FFFFFFFF" & "FFFFFFFF" & "FFFFFFFF" & "FFFFFFFF" & "FFFFFFFF" & "FFFFFFFA" & "51868783" & "BF2F966B" & "7FCC0148" & "F709A5D0" & "3BB5C9B8" & "899C47AE" & "BB6FB71E" & "91386409"; elsif Curve_Name = "secp384r1" then Curve.P := "FFFFFFFF" & "FFFFFFFF" & "FFFFFFFF" & "FFFFFFFF" & "FFFFFFFF" & "FFFFFFFF" & "FFFFFFFF" & "FFFFFFFE" & "FFFFFFFF" & "00000000" & "00000000" & "FFFFFFFF"; Curve.X := "AA87CA22" & "BE8B0537" & "8EB1C71E" & "F320AD74" & "6E1D3B62" & "8BA79B98" & "59F741E0" & "82542A38" & "5502F25D" & "BF55296C" & "3A545E38" & "72760AB7"; Curve.Y := "3617DE4A" & "96262C6F" & "5D9E98BF" & "9292DC29" & "F8F41DBD" & "289A147C" & "E9DA3113" & "B5F0B8C0" & "0A60B1CE" & "1D7E819D" & "7A431D7C" & "90EA0E5F"; Curve.A := "FFFFFFFF" & "FFFFFFFF" & "FFFFFFFF" & "FFFFFFFF" & "FFFFFFFF" & "FFFFFFFF" & "FFFFFFFF" & "FFFFFFFE" & "FFFFFFFF" & "00000000" & "00000000" & "FFFFFFFC"; Curve.B := "B3312FA7" & "E23EE7E4" & "988E056B" & "E3F82D19" & "181D9C6E" & "FE814112" & "0314088F" & "5013875A" & "C656398D" & "8A2ED19D" & "2A85C8ED" & "D3EC2AEF"; Curve.N := "FFFFFFFF" & "FFFFFFFF" & "FFFFFFFF" & "FFFFFFFF" & "FFFFFFFF" & "FFFFFFFF" & "C7634D81" & "F4372DDF" & "581A0DB2" & "48B0A77A" & "ECEC196A" & "CCC52973"; elsif Curve_Name = "secp256r1" then Curve.P := "FFFFFFFF00000001000000000000000000000000FFFFFFFFFFFFFFFFFFFFFFFF"; Curve.X := "6B17D1F2E12C4247F8BCE6E563A440F277037D812DEB33A0F4A13945D898C296"; Curve.Y := "4FE342E2FE1A7F9B8EE7EB4A7C0F9E162BCE33576B315ECECBB6406837BF51F5"; Curve.A := "FFFFFFFF00000001000000000000000000000000FFFFFFFFFFFFFFFFFFFFFFFC"; Curve.B := "5AC635D8AA3A93E7B3EBBD55769886BC651D06B0CC53B0F63BCE3C3E27D2604B"; Curve.N := "FFFFFFFF00000000FFFFFFFFFFFFFFFFBCE6FAADA7179E84F3B9CAC2FC632551"; elsif Curve_Name = "secp256k1" then Curve.P := "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFC2F"; Curve.X := "79BE667EF9DCBBAC55A06295CE870B07029BFCDB2DCE28D959F2815B16F81798"; Curve.Y := "483ADA7726A3C4655DA4FBFC0E1108A8FD17B448A68554199C47D08FFB10D4B8"; Curve.A := "0000000000000000000000000000000000000000000000000000000000000000"; Curve.B := "0000000000000000000000000000000000000000000000000000000000000007"; Curve.N := "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141"; Neg := False; elsif Curve_Name = "secp128r1" then Curve.P := "FFFFFFFDFFFFFFFFFFFFFFFFFFFFFFFF"; Curve.X := "161FF7528B899B2D0C28607CA52C5B86"; Curve.Y := "CF5AC8395BAFEB13C02DA292DDED7A83"; Curve.A := "FFFFFFFDFFFFFFFFFFFFFFFFFFFFFFFC"; Curve.B := "E87579C11079F43DD824993C2CEE5ED3"; Curve.N := "FFFFFFFE0000000075A30D1B9038A115"; elsif Curve_Name = "secp112r1" then Curve.P := "DB7C2ABF62E35E668076BEAD208B"; Curve.X := "09487239995A5EE76B55F9C2F098"; Curve.Y := "A89CE5AF8724C0A23E0E0FF77500"; Curve.A := "DB7C2ABF62E35E668076BEAD2088"; Curve.B := "659EF8BA043916EEDE8911702B22"; Curve.N := "DB7C2ABF62E35E7628DFAC6561C5"; elsif Curve_Name = "secp112r2" then Curve.P := "DB7C2ABF62E35E668076BEAD208B"; Curve.X := "4BA30AB5E892B4E1649DD0928643"; Curve.Y := "ADCD46F5882E3747DEF36E956E97"; Curve.A := "6127C24C05F38A0AAAF65C0EF02C"; Curve.B := "51DEF1815DB5ED74FCC34C85D709"; Curve.N := "36DF0AAFD8B8D7597CA10520D04B"; Neg := False; elsif Curve_Name = "nistp521" then Curve.P := "01ff" & "ffffffff" & "ffffffff" & "ffffffff" & "ffffffff" & "ffffffff" & "ffffffff" & "ffffffff" & "ffffffff" & "ffffffff" & "ffffffff" & "ffffffff" & "ffffffff" & "ffffffff" & "ffffffff" & "ffffffff" & "ffffffff"; Curve.X := "00c6" & "858e06b7" & "0404e9cd" & "9e3ecb66" & "2395b442" & "9c648139" & "053fb521" & "f828af60" & "6b4d3dba" & "a14b5e77" & "efe75928" & "fe1dc127" & "a2ffa8de" & "3348b3c1" & "856a429b" & "f97e7e31" & "c2e5bd66"; Curve.Y := "0118" & "39296a78" & "9a3bc004" & "5c8a5fb4" & "2c7d1bd9" & "98f54449" & "579b4468" & "17afbd17" & "273e662c" & "97ee7299" & "5ef42640" & "c550b901" & "3fad0761" & "353c7086" & "a272c240" & "88be9476" & "9fd16650"; Curve.A := "01ff" & "ffffffff" & "ffffffff" & "ffffffff" & "ffffffff" & "ffffffff" & "ffffffff" & "ffffffff" & "ffffffff" & "ffffffff" & "ffffffff" & "ffffffff" & "ffffffff" & "ffffffff" & "ffffffff" & "ffffffff" & "fffffffc"; Curve.B := "0051" & "953eb961" & "8e1c9a1f" & "929a21a0" & "b68540ee" & "a2da725b" & "99b315f3" & "b8b48991" & "8ef109e1" & "56193951" & "ec7e937b" & "1652c0bd" & "3bb1bf07" & "3573df88" & "3d2c34f1" & "ef451fd4" & "6b503f00"; Curve.N := "01ff" & "ffffffff" & "ffffffff" & "ffffffff" & "ffffffff" & "ffffffff" & "ffffffff" & "ffffffff" & "fffffffa" & "51868783" & "bf2f966b" & "7fcc0148" & "f709a5d0" & "3bb5c9b8" & "899c47ae" & "bb6fb71e" & "91386409"; elsif Curve_Name = "nistp384" then Curve.P := "ffffffff" & "ffffffff" & "ffffffff" & "ffffffff" & "ffffffff" & "ffffffff" & "ffffffff" & "fffffffe" & "ffffffff" & "00000000" & "00000000" & "ffffffff"; Curve.X := "aa87ca22" & "be8b0537" & "8eb1c71e" & "f320ad74" & "6e1d3b62" & "8ba79b98" & "59f741e0" & "82542a38" & "5502f25d" & "bf55296c" & "3a545e38" & "72760ab7"; Curve.Y := "3617de4a" & "96262c6f" & "5d9e98bf" & "9292dc29" & "f8f41dbd" & "289a147c" & "e9da3113" & "b5f0b8c0" & "0a60b1ce" & "1d7e819d" & "7a431d7c" & "90ea0e5f"; Curve.A := "ffffffff" & "ffffffff" & "ffffffff" & "ffffffff" & "ffffffff" & "ffffffff" & "ffffffff" & "fffffffe" & "ffffffff" & "00000000" & "00000000" & "fffffffc"; Curve.B := "b3312fa7" & "e23ee7e4" & "988e056b" & "e3f82d19" & "181d9c6e" & "fe814112" & "0314088f" & "5013875a" & "c656398d" & "8a2ed19d" & "2a85c8ed" & "d3ec2aef"; Curve.N := "ffffffff" & "ffffffff" & "ffffffff" & "ffffffff" & "ffffffff" & "ffffffff" & "c7634d81" & "f4372ddf" & "581a0db2" & "48b0a77a" & "ecec196a" & "ccc52973"; elsif Curve_Name = "nistp256" then Curve.P := "ffffffff00000001000000000000000000000000ffffffffffffffffffffffff"; Curve.X := "6b17d1f2e12c4247f8bce6e563a440f277037d812deb33a0f4a13945d898c296"; Curve.Y := "4fe342e2fe1a7f9b8ee7eb4a7c0f9e162bce33576b315ececbb6406837bf51f5"; Curve.A := "ffffffff00000001000000000000000000000000fffffffffffffffffffffffc"; Curve.B := "5ac635d8aa3a93e7b3ebbd55769886bc651d06b0cc53b0f63bce3c3e27d2604b"; Curve.N := "ffffffff00000000ffffffffffffffffbce6faada7179e84f3b9cac2fc632551"; elsif Curve_Name = "nistp224" then Curve.P := "ffffffffffffffffffffffffffffffff000000000000000000000001"; Curve.X := "b70e0cbd6bb4bf7f321390b94a03c1d356c21122343280d6115c1d21"; Curve.Y := "bd376388b5f723fb4c22dfe6cd4375a05a07476444d5819985007e34"; Curve.A := "fffffffffffffffffffffffffffffffefffffffffffffffffffffffe"; Curve.B := "b4050a850c04b3abf54132565044b0b7d7bfd8ba270b39432355ffb4"; Curve.N := "ffffffffffffffffffffffffffff16a2e0b8f03e13dd29455c5c2a3d"; elsif Curve_Name = "nistp192" then Curve.P := "fffffffffffffffffffffffffffffffeffffffffffffffff"; Curve.X := "188da80eb03090f67cbf20eb43a18800f4ff0afd82ff1012"; Curve.Y := "07192b95ffc8da78631011ed6b24cdd573f977a11e794811"; Curve.A := "fffffffffffffffffffffffffffffffefffffffffffffffc"; Curve.B := "64210519e59c80e70fa7e9ab72243049feb8deecc146b9b1"; Curve.N := "ffffffffffffffffffffffff99def836146bc9b1b4d22831"; elsif Curve_Name = "brainpool256r1" then Curve.P := "A9FB57DBA1EEA9BC3E660A909D838D726E3BF623D52620282013481D1F6E5377"; Curve.X := "8BD2AEB9CB7E57CB2C4B482FFC81B7AFB9DE27E1E3BD23C23A4453BD9ACE3262"; Curve.Y := "547EF835C3DAC4FD97F8461A14611DC9C27745132DED8E545C1D54C72F046997"; Curve.A := "7D5A0975FC2C3057EEF67530417AFFE7FB8055C126DC5C6CE94A4B44F330B5D9"; Curve.B := "26DC5C6CE94A4B44F330B5D9BBD77CBF958416295CF7E1CE6BCCDC18FF8C07B6"; Curve.N := "A9FB57DBA1EEA9BC3E660A909D838D718C397AA3B561A6F7901E0E82974856A7"; Neg := False; elsif Curve_Name = "brainpool256t1" then Curve.P := "A9FB57DBA1EEA9BC3E660A909D838D726E3BF623D52620282013481D1F6E5377"; Curve.X := "A3E8EB3CC1CFE7B7732213B23A656149AFA142C47AAFBC2B79A191562E1305F4"; Curve.Y := "2D996C823439C56D7F7B22E14644417E69BCB6DE39D027001DABE8F35B25C9BE"; Curve.A := "A9FB57DBA1EEA9BC3E660A909D838D726E3BF623D52620282013481D1F6E5374"; Curve.B := "662C61C430D84EA4FE66A7733D0B76B7BF93EBC4AF2F49256AE58101FEE92B04"; Curve.N := "A9FB57DBA1EEA9BC3E660A909D838D718C397AA3B561A6F7901E0E82974856A7"; elsif Curve_Name = "brainpool384r1" then Curve.P := "8CB91E82A3386D280F5D6F7E50E641DF152F7109ED5456B412B1DA197FB71123ACD3A729901D1A71874700133107EC53"; Curve.X := "1D1C64F068CF45FFA2A63A81B7C13F6B8847A3E77EF14FE3DB7FCAFE0CBD10E8E826E03436D646AAEF87B2E247D4AF1E"; Curve.Y := "8ABE1D7520F9C2A45CB1EB8E95CFD55262B70B29FEEC5864E19C054FF99129280E4646217791811142820341263C5315"; Curve.A := "7BC382C63D8C150C3C72080ACE05AFA0C2BEA28E4FB22787139165EFBA91F90F8AA5814A503AD4EB04A8C7DD22CE2826"; Curve.B := "04A8C7DD22CE28268B39B55416F0447C2FB77DE107DCD2A62E880EA53EEB62D57CB4390295DBC9943AB78696FA504C11"; Curve.N := "8CB91E82A3386D280F5D6F7E50E641DF152F7109ED5456B31F166E6CAC0425A7CF3AB6AF6B7FC3103B883202E9046565"; Neg := False; elsif Curve_Name = "brainpool384t1" then Curve.P := "8CB91E82A3386D280F5D6F7E50E641DF152F7109ED5456B412B1DA197FB71123ACD3A729901D1A71874700133107EC53"; Curve.X := "18DE98B02DB9A306F2AFCD7235F72A819B80AB12EBD653172476FECD462AABFFC4FF191B946A5F54D8D0AA2F418808CC"; Curve.Y := "25AB056962D30651A114AFD2755AD336747F93475B7A1FCA3B88F2B6A208CCFE469408584DC2B2912675BF5B9E582928"; Curve.A := "8CB91E82A3386D280F5D6F7E50E641DF152F7109ED5456B412B1DA197FB71123ACD3A729901D1A71874700133107EC50"; Curve.B := "7F519EADA7BDA81BD826DBA647910F8C4B9346ED8CCDC64E4B1ABD11756DCE1D2074AA263B88805CED70355A33B471EE"; Curve.N := "8CB91E82A3386D280F5D6F7E50E641DF152F7109ED5456B31F166E6CAC0425A7CF3AB6AF6B7FC3103B883202E9046565"; else raise Program_Error with "Curve not supported"; end if; if Mode = Signing then declare ECDSA : aliased ECDSA_Sign_Ram with Import, Address => S_NS_Periph (PKA_Base); begin Copy_S_To_U32 (Curve.P, ECDSA.Mod_GF); Copy_S_To_U32 (Curve.X, ECDSA.X); Copy_S_To_U32 (Curve.Y, ECDSA.Y); Copy_S_To_U32 (Curve.A, ECDSA.A_Coeff); Copy_S_To_U32 (Curve.N, ECDSA.Order_N); end; elsif Mode = Validation then declare ECDSA : aliased ECDSA_Verify_Ram with Import, Address => S_NS_Periph (PKA_Base); begin Copy_S_To_U32 (Curve.P, ECDSA.Mod_GF); Copy_S_To_U32 (Curve.X, ECDSA.IP_X); Copy_S_To_U32 (Curve.Y, ECDSA.IP_Y); Copy_S_To_U32 (Curve.N, ECDSA.Order_N); if Neg then ECDSA.A_Coeff_Sign := 1; ECDSA.A_Coeff (0) := 3; else Copy_S_To_U32 (Curve.A, ECDSA.A_Coeff); end if; end; elsif Mode = Point_Check then declare ECDSA : aliased ECDSA_Point_Check_Ram with Import, Address => S_NS_Periph (PKA_Base); begin Copy_S_To_U32 (Curve.P, ECDSA.Curve_Mod); Copy_S_To_U32 (Curve.B, ECDSA.B_Coeff); if Neg then ECDSA.A_Sign := 1; ECDSA.A_Coeff (0) := 3; else Copy_S_To_U32 (Curve.A, ECDSA.A_Coeff); end if; end; else declare ECDSA : aliased ECDSA_Ram with Import, Address => S_NS_Periph (PKA_Base); begin Copy_S_To_U32 (Curve.P, ECDSA.Mod_GF); end; end if; return Curve; end Common_Init; function Normalize (Digest : ECDSA_Hash) return Digest_Buffer is Gap : UInt32 := (Num_Bits - Hash_Size) / 8; Norm_Digest : Digest_Buffer; begin if Num_Bits > Hash_Size then Norm_Digest := (0 => 0, others => 0); for I in Digest'Range loop Norm_Digest (I + Integer (Gap)) := Digest (I); end loop; else for I in Norm_Digest'Range loop Norm_Digest (I) := Digest (I); end loop; end if; return Norm_Digest; end Normalize; function Normalize (Digest : ECDSA_HashStr) return Digest_BufferStr is Gap : UInt32 := (Num_Bits - Hash_Size) / 8; Norm_Digest : Digest_BufferStr; Extra : Natural := 0; begin if (Num_Bits mod 8) /= 0 then Extra := 2; end if; if Num_Bits > Hash_Size then Norm_Digest := (1 => '0', others => '0'); for I in Digest'Range loop Norm_Digest (I + Integer (Gap * 2) + Extra) := Digest (I); end loop; else for I in Norm_Digest'Range loop Norm_Digest (I + Extra) := Digest (I); end loop; end if; return Norm_Digest; end Normalize; procedure StartPKA (Mode : PKA_Parameters) is begin Enable_Pka; PKA.PKA_CR.MODE := Mode'Enum_Rep; PKA.PKA_CR.START := True; -- Need to add timeout here vvv loop exit when PKA.PKA_SR.PROCENDF; end loop; end StartPKA; function ECDSA_Sign (Private_Key : ECDSA_Key; H : ECDSA_Hash; K : ECDSA_Rand; Signature : out ECDSA_Signature) return Boolean is ECDSA : aliased ECDSA_Sign_Ram with Import, Address => S_NS_Periph (PKA_Base); Result : Boolean := True; Err : UInt32; Gap : UInt32 := (Num_Bits - Hash_Size) / 8; begin Disable_Pka; Clear_Ram; Curve := Common_Init (Signing); Copy_U8_To_U32 (K, ECDSA.K); Copy_U8_To_U32 (UInt8_Array (Normalize (H)), ECDSA.Hash); Copy_U8_To_U32 (UInt8_Array (Private_Key), ECDSA.PrivateKey); ECDSA.Order_Num_Bits := Num_Bits; ECDSA.Mod_Num_Bits := Num_Bits; Clear_Flags; StartPKA (ECDSA_Sign); -- sequential here vvv if Check_Errors then Result := False; end if; Clear_Flags; Copy_U32_To_U8 (ECDSA.R, Signature.R); Copy_U32_To_U8 (ECDSA.S, Signature.S); -- vvvvv if you don't disable here... -- The the Error read below can get bad data Disable_Pka; -- or vvvvv he will flip a flag indicating ram error(!) Err := ECDSA.Error; if Err /= 0 then Result := False; end if; return Result; end ECDSA_Sign; function ECDSA_Sign (Private_Key : ECDSA_KeyStr; H : ECDSA_HashStr; K : ECDSA_RandStr; Signature : out ECDSA_SignatureStr) return Boolean is ECDSA : aliased ECDSA_Sign_Ram with Import, Address => S_NS_Periph (PKA_Base); Result : Boolean := True; Err : UInt32; begin Disable_Pka; Clear_Ram; Curve := Common_Init (Signing); Copy_S_To_U32 (K, ECDSA.K); Copy_S_To_U32 (Normalize (H), ECDSA.Hash); Copy_S_To_U32 (Private_Key, ECDSA.PrivateKey); ECDSA.Order_Num_Bits := Num_Bits; ECDSA.Mod_Num_Bits := Num_Bits; Clear_Flags; StartPKA (ECDSA_Sign); -- sequential here vvv if Check_Errors then Result := False; end if; Clear_Flags; Copy_U32_To_S (ECDSA.R, Signature.R); Copy_U32_To_S (ECDSA.S, Signature.S); -- vvvvv if you don't disable here... -- The the Error read below can get bad data Disable_Pka; -- or vvvvv he will flip a flag indicating ram error(!) Err := ECDSA.Error; if Err /= 0 then Result := False; end if; return Result; end ECDSA_Sign; function ECDSA_Valid (Public_Key : ECDSA_PublicKey; Digest : ECDSA_Hash; Signature : ECDSA_Signature) return Boolean is ECDSA : aliased ECDSA_Verify_Ram with Import, Address => S_NS_Periph (PKA_Base); Result : Boolean := True; begin Disable_Pka; Clear_Ram; Curve := Common_Init (Validation); Copy_U8_To_U32 (UInt8_Array (Public_Key.X), ECDSA.PK_X); Copy_U8_To_U32 (UInt8_Array (Public_Key.Y), ECDSA.PK_Y); Copy_U8_To_U32 (Signature.R, ECDSA.R); Copy_U8_To_U32 (Signature.S, ECDSA.S); Copy_U8_To_U32 (UInt8_Array (Normalize (Digest)), ECDSA.Hash); ECDSA.Order_Num_Bits := Num_Bits; ECDSA.Mod_Num_Bits := Num_Bits; Clear_Flags; StartPKA (ECDSA_Verification); -- sequential here vvv if Check_Errors then Result := False; end if; Clear_Flags; -- vvvvv if you don't disable here... -- The the Result read below can get bad data Disable_Pka; return Result and (ECDSA.Result = 0); end ECDSA_Valid; function ECDSA_Valid (Public_Key : ECDSA_PublicKeyStr; Digest : ECDSA_HashStr; Signature : ECDSA_SignatureStr) return Boolean is ECDSA : aliased ECDSA_Verify_Ram with Import, Address => S_NS_Periph (PKA_Base); Result : Boolean := True; begin Disable_Pka; Clear_Ram; Curve := Common_Init (Validation); Copy_S_To_U32 (Public_Key.X, ECDSA.PK_X); Copy_S_To_U32 (Public_Key.Y, ECDSA.PK_Y); Copy_S_To_U32 (Signature.R, ECDSA.R); Copy_S_To_U32 (Signature.S, ECDSA.S); Copy_S_To_U32 (Normalize (Digest), ECDSA.Hash); ECDSA.Order_Num_Bits := Num_Bits; ECDSA.Mod_Num_Bits := Num_Bits; Clear_Flags; StartPKA (ECDSA_Verification); -- sequential here vvv if Check_Errors then Result := False; end if; Clear_Flags; -- vvvvv if you don't disable here... -- The the Result read below can get bad data Disable_Pka; return Result and (ECDSA.Result = 0); end ECDSA_Valid; procedure ECDSA_Math (Work : String; A : ECDSA_String; B : ECDSA_String := (1 => '0', others => '0'); C : ECDSA_String := (1 => '0', others => '0'); O1 : out ECDSA_String; O2 : out ECDSA_String) is ECDSA : aliased ECDSA_Ram with Import, Address => S_NS_Periph (PKA_Base); begin Clear_Ram; Curve := Common_Init (Field_Arithmetic); ECDSA.N_Bits := Num_Bits; for I in Work'Range loop Disable_Pka; Clear_Flags; case Work (I) is when 'A' => Copy_S_To_U32 (A, ECDSA.A); when 'B' => Copy_S_To_U32 (B, ECDSA.B); when 'C' => Copy_S_To_U32 (C, ECDSA.A); when 'b' => Copy_S_To_U32 (B, ECDSA.A); when 'c' => Copy_S_To_U32 (C, ECDSA.B); when 'O' => -- output to A ECDSA.A := ECDSA.Result; when 'o' => -- output to B ECDSA.B := ECDSA.Result; when '+' => StartPKA (Arithmetic_Addition); when '-' => StartPKA (Arithmetic_Subtraction); when '*' => StartPKA (Arithmetic_Multiplication); when '|' => ECDSA.Op_Len := Num_Bits * 2; StartPKA (Modular_Reduction); when '%' => ECDSA.Op_Len := Num_Bits; StartPKA (Modular_Reduction); when '&' => Copy_S_To_U32 (Curve.N, ECDSA.Mod_GF); StartPKA (Modular_Subtraction); when 'm' => StartPKA (Montgomery_Multiplication); when 'N' => Copy_S_To_U32 (Curve.N, ECDSA.A); when 'n' => Copy_S_To_U32 (Curve.N, ECDSA.B); when 'P' => Copy_S_To_U32 (Curve.P, ECDSA.A); when 'p' => Copy_S_To_U32 (Curve.P, ECDSA.B); when 'R' => ECDSA.A := ECDSA.M_Param; when 'r' => ECDSA.B := ECDSA.M_Param; when '!' => StartPKA (Modular_Inversion); when '=' => Copy_U32_To_S (ECDSA.T1, O1); when '^' => Copy_U32_To_S (ECDSA.T2, O2); when '1' => ECDSA.T1 := ECDSA.Result; when '2' => ECDSA.T2 := ECDSA.Result; when '3' => ECDSA.T3 := ECDSA.Result; when '4' => ECDSA.A := ECDSA.T1; when '5' => ECDSA.A := ECDSA.T2; when '6' => ECDSA.A := ECDSA.T3; when '7' => ECDSA.B := ECDSA.T1; when '8' => ECDSA.B := ECDSA.T2; when '9' => ECDSA.B := ECDSA.T3; when others => loop null; end loop; end case; end loop; end ECDSA_Math; procedure ECDSA_Point_Mult (X : ECDSA_String; Y : ECDSA_String; Scalar : ECDSA_String; X_Res : out ECDSA_String; Y_Res : out ECDSA_String) is ECDSA : aliased ECDSA_Point_Ram with Import, Address => S_NS_Periph (PKA_Base); begin Enable_Pka; Curve := Common_Init (Field_Arithmetic); Clear_Ram; ECDSA.N_Bits := Num_Bits; Disable_Pka; ECDSA.Scalar_Len := Num_Bits; ECDSA.A_Sign := 0; Copy_S_To_U32 (Curve.A, ECDSA.A_Coeff); Copy_S_To_U32 (Curve.P, ECDSA.Curve_Mod); Copy_S_To_U32 (Scalar, ECDSA.Scalar); Copy_S_To_U32 (X, ECDSA.X); Copy_S_To_U32 (Y, ECDSA.Y); StartPKA (FP_Scalar_Multiplication); Copy_U32_To_S (ECDSA.X, X_Res); Copy_U32_To_S (ECDSA.Y, Y_Res); end ECDSA_Point_Mult; procedure ECDSA_Point_Mult (Scalar : ECDSA_String; X_Res : out ECDSA_String; Y_Res : out ECDSA_String) is ECDSA : aliased ECDSA_Point_Ram with Import, Address => S_NS_Periph (PKA_Base); begin Enable_Pka; Curve := Common_Init (Field_Arithmetic); Clear_Ram; ECDSA.N_Bits := Num_Bits; Disable_Pka; ECDSA.Scalar_Len := Num_Bits; ECDSA.A_Sign := 0; Copy_S_To_U32 (Curve.A, ECDSA.A_Coeff); Copy_S_To_U32 (Curve.P, ECDSA.Curve_Mod); Copy_S_To_U32 (Scalar, ECDSA.Scalar); Copy_S_To_U32 (Curve.X, ECDSA.X); Copy_S_To_U32 (Curve.Y, ECDSA.Y); StartPKA (FP_Scalar_Multiplication); Copy_U32_To_S (ECDSA.X, X_Res); Copy_U32_To_S (ECDSA.Y, Y_Res); end ECDSA_Point_Mult; function ECDSA_Point_On_Curve (Point : ECDSA_PointStr) return Boolean is ECDSA : aliased ECDSA_Point_Check_Ram with Import, Address => S_NS_Periph (PKA_Base); begin Enable_Pka; Clear_Ram; Curve := Common_Init (Point_Check); ECDSA.N_Bits := Num_Bits; Copy_S_To_U32 (Point.X, ECDSA.X); Copy_S_To_U32 (Point.Y, ECDSA.Y); StartPKA (Point_On_Elliptic_Curve_Fp_Check); Disable_Pka; return (ECDSA.Result = 0); end ECDSA_Point_On_Curve; function Make_Random_Group_String (NClamp : Boolean := False) return ECDSA_String is Result : ECDSA_String; TmpStr : ECDSA_String; One : ECDSA_String; Temp : UInt32_Array (0 .. Integer (N_By_32 - 1)); begin Enable_Rng; Enable_Pka; Curve := Common_Init (Field_Arithmetic); for I in Temp'Range loop Temp (I) := Random; end loop; -- fix last dword if Rem_By_32 /= 0 then declare Mask : UInt32 := Shift_Right (UInt32'Last, Integer (32 - Rem_By_32)); Idx : Integer := Integer (N_By_32 - 1); begin Temp (Idx) := Temp (Idx) and Mask; end; end if; Copy_U32_To_S (Temp, TmpStr); if NClamp then One := (1 => '0', others => '0'); One (One'Length) := '1'; -- n : group order (sometimes a cursive l in papers) -- compute 1 + (TmpStr % (n - 1)) using the PKA -- 'N' send group order to A operand ('n' would be to B) -- 'B' -> B arg -> B operand (B arg is 0x1 in this code here) -- '-' do A-B on the 2 operands (or output := group order - 1) -- 'A' A arg -> A operand -- 'o' output of last calc -> B operand ('O' goes to A operand btw) -- '%' A modulo B -- 'O' output to A operand -- 'B' -> B arg -> B operand -- '+' A+B -- '1' move output to Temp1 -- '=' Temp1 to O1 (output1) ECDSA_Math (Work => "NB-Ao%OB+1=", A => TmpStr, B => One, O1 => Result, O2 => Result); else Result := TmpStr; end if; return Result; end Make_Random_Group_String; function Make_Public_Key_String (PrivateKey : ECDSA_String) return ECDSA_PublicKeyStr is Result : ECDSA_PublicKeyStr; begin ECDSA_Point_Mult (PrivateKey, Result.X, Result.Y); return Result; end Make_Public_Key_String; end STM32.PKA;
38.30126
119
0.566947
fbf576f42d1d395ff5e6b734224a426424f18071
3,988
ads
Ada
include/sf-graphics.ads
Fabien-Chouteau/ASFML
52a013554bcfb6150e0d6391871356c1443a6b93
[ "Zlib" ]
null
null
null
include/sf-graphics.ads
Fabien-Chouteau/ASFML
52a013554bcfb6150e0d6391871356c1443a6b93
[ "Zlib" ]
null
null
null
include/sf-graphics.ads
Fabien-Chouteau/ASFML
52a013554bcfb6150e0d6391871356c1443a6b93
[ "Zlib" ]
null
null
null
--////////////////////////////////////////////////////////// -- SFML - Simple and Fast Multimedia Library -- Copyright (C) 2007-2015 Laurent Gomila ([email protected]) -- 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. --////////////////////////////////////////////////////////// ------------------------------------------------------------ --/ @summary --/ Graphics module --/ --/ @description --/ 2D graphics module: sprites, text, shapes, ... --/ package Sf.Graphics is type sfCircleShape is null record; type sfCircleShape_Ptr is access all sfCircleShape; type sfConvexShape is null record; type sfConvexShape_Ptr is access all sfConvexShape; type sfFont is null record; type sfFont_Ptr is access all sfFont; type sfImage is null record; type sfImage_Ptr is access all sfImage; type sfShader is null record; type sfShader_Ptr is access all sfShader; type sfRectangleShape is null record; type sfRectangleShape_Ptr is access all sfRectangleShape; type sfRenderTexture is null record; type sfRenderTexture_Ptr is access all sfRenderTexture; type sfRenderWindow is null record; type sfRenderWindow_Ptr is access all sfRenderWindow; type sfShape is null record; type sfShape_Ptr is access all sfShape; type sfSprite is null record; type sfSprite_Ptr is access all sfSprite; type sfText is null record; type sfText_Ptr is access all sfText; type sfTexture is null record; type sfTexture_Ptr is access all sfTexture; type sfTransformable is null record; type sfTransformable_Ptr is access all sfTransformable; type sfVertex is null record; type sfVertex_Ptr is access all sfVertex; type sfVertexArray is null record; type sfVertexArray_Ptr is access all sfVertexArray; type sfVertexBuffer is null record; type sfVertexBuffer_Ptr is access all sfVertexBuffer; type sfView is null record; type sfView_Ptr is access all sfView; private pragma Convention (C, sfCircleShape); pragma Convention (C, sfCircleShape_Ptr); pragma Convention (C, sfConvexShape); pragma Convention (C, sfConvexShape_Ptr); pragma Convention (C, sfFont); pragma Convention (C, sfFont_Ptr); pragma Convention (C, sfImage); pragma Convention (C, sfImage_Ptr); pragma Convention (C, sfShader); pragma Convention (C, sfShader_Ptr); pragma Convention (C, sfRectangleShape); pragma Convention (C, sfRectangleShape_Ptr); pragma Convention (C, sfRenderTexture); pragma Convention (C, sfRenderTexture_Ptr); pragma Convention (C, sfRenderWindow); pragma Convention (C, sfRenderWindow_Ptr); pragma Convention (C, sfShape); pragma Convention (C, sfShape_Ptr); pragma Convention (C, sfSprite); pragma Convention (C, sfSprite_Ptr); pragma Convention (C, sfText); pragma Convention (C, sfText_Ptr); pragma Convention (C, sfTexture); pragma Convention (C, sfTexture_Ptr); pragma Convention (C, sfTransformable); pragma Convention (C, sfTransformable_Ptr); pragma Convention (C, sfVertexArray); pragma Convention (C, sfVertexArray_Ptr); pragma Convention (C, sfView); pragma Convention (C, sfView_Ptr); end Sf.Graphics;
35.292035
101
0.714393
0b6012e0ee606fcc6221d26096b966eb9bec00b8
9,625
ads
Ada
llvm-gcc-4.2-2.9/gcc/ada/g-soccon-hpux.ads
vidkidz/crossbridge
ba0bf94aee0ce6cf7eb5be882382e52bc57ba396
[ "MIT" ]
1
2016-04-09T02:58:13.000Z
2016-04-09T02:58:13.000Z
llvm-gcc-4.2-2.9/gcc/ada/g-soccon-hpux.ads
vidkidz/crossbridge
ba0bf94aee0ce6cf7eb5be882382e52bc57ba396
[ "MIT" ]
null
null
null
llvm-gcc-4.2-2.9/gcc/ada/g-soccon-hpux.ads
vidkidz/crossbridge
ba0bf94aee0ce6cf7eb5be882382e52bc57ba396
[ "MIT" ]
null
null
null
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- G N A T . S O C K E T S . C O N S T A N T S -- -- -- -- S p e c -- -- -- -- Copyright (C) 2000-2005, Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 2, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License -- -- for more details. You should have received a copy of the GNU General -- -- Public License distributed with GNAT; see file COPYING. If not, write -- -- to the Free Software Foundation, 51 Franklin Street, Fifth Floor, -- -- Boston, MA 02110-1301, USA. -- -- -- -- As a special exception, if other files instantiate generics from this -- -- unit, or you link this unit with other files to produce an executable, -- -- this unit does not by itself cause the resulting executable to be -- -- covered by the GNU General Public License. This exception does not -- -- however invalidate any other reasons why the executable file might be -- -- covered by the GNU Public License. -- -- -- -- GNAT was originally developed by the GNAT team at New York University. -- -- Extensive contributions were provided by Ada Core Technologies Inc. -- -- -- ------------------------------------------------------------------------------ -- This package provides target dependent definitions of constant for use -- by the GNAT.Sockets package (g-socket.ads). This package should not be -- directly with'ed by an applications program. -- This is the version for hppa1.1-hp-hpux11.00 -- This file is generated automatically, do not modify it by hand! Instead, -- make changes to gen-soccon.c and re-run it on each target. package GNAT.Sockets.Constants is -------------- -- Families -- -------------- AF_INET : constant := 2; -- IPv4 address family AF_INET6 : constant := -1; -- IPv6 address family ----------- -- Modes -- ----------- SOCK_STREAM : constant := 1; -- Stream socket SOCK_DGRAM : constant := 2; -- Datagram socket ------------------- -- Socket errors -- ------------------- EACCES : constant := 13; -- Permission denied EADDRINUSE : constant := 226; -- Address already in use EADDRNOTAVAIL : constant := 227; -- Cannot assign address EAFNOSUPPORT : constant := 225; -- Addr family not supported EALREADY : constant := 244; -- Operation in progress EBADF : constant := 9; -- Bad file descriptor ECONNABORTED : constant := 231; -- Connection aborted ECONNREFUSED : constant := 239; -- Connection refused ECONNRESET : constant := 232; -- Connection reset by peer EDESTADDRREQ : constant := 217; -- Destination addr required EFAULT : constant := 14; -- Bad address EHOSTDOWN : constant := 241; -- Host is down EHOSTUNREACH : constant := 242; -- No route to host EINPROGRESS : constant := 245; -- Operation now in progress EINTR : constant := 4; -- Interrupted system call EINVAL : constant := 22; -- Invalid argument EIO : constant := 5; -- Input output error EISCONN : constant := 234; -- Socket already connected ELOOP : constant := 249; -- Too many symbolic lynks EMFILE : constant := 24; -- Too many open files EMSGSIZE : constant := 218; -- Message too long ENAMETOOLONG : constant := 248; -- Name too long ENETDOWN : constant := 228; -- Network is down ENETRESET : constant := 230; -- Disconn. on network reset ENETUNREACH : constant := 229; -- Network is unreachable ENOBUFS : constant := 233; -- No buffer space available ENOPROTOOPT : constant := 220; -- Protocol not available ENOTCONN : constant := 235; -- Socket not connected ENOTSOCK : constant := 216; -- Operation on non socket EOPNOTSUPP : constant := 223; -- Operation not supported EPFNOSUPPORT : constant := 224; -- Unknown protocol family EPROTONOSUPPORT : constant := 221; -- Unknown protocol EPROTOTYPE : constant := 219; -- Unknown protocol type ESHUTDOWN : constant := 236; -- Cannot send once shutdown ESOCKTNOSUPPORT : constant := 222; -- Socket type not supported ETIMEDOUT : constant := 238; -- Connection timed out ETOOMANYREFS : constant := 237; -- Too many references EWOULDBLOCK : constant := 246; -- Operation would block ----------------- -- Host errors -- ----------------- HOST_NOT_FOUND : constant := 1; -- Unknown host TRY_AGAIN : constant := 2; -- Host name lookup failure NO_DATA : constant := 4; -- No data record for name NO_RECOVERY : constant := 3; -- Non recoverable errors ------------------- -- Control flags -- ------------------- FIONBIO : constant := -2147195266; -- Set/clear non-blocking io FIONREAD : constant := 1074030207; -- How many bytes to read -------------------- -- Shutdown modes -- -------------------- SHUT_RD : constant := 0; -- No more recv SHUT_WR : constant := 1; -- No more send SHUT_RDWR : constant := 2; -- No more recv/send --------------------- -- Protocol levels -- --------------------- SOL_SOCKET : constant := 65535; -- Options for socket level IPPROTO_IP : constant := 0; -- Dummy protocol for IP IPPROTO_UDP : constant := 17; -- UDP IPPROTO_TCP : constant := 6; -- TCP ------------------- -- Request flags -- ------------------- MSG_OOB : constant := 1; -- Process out-of-band data MSG_PEEK : constant := 2; -- Peek at incoming data MSG_EOR : constant := 8; -- Send end of record MSG_WAITALL : constant := 64; -- Wait for full reception MSG_NOSIGNAL : constant := -1; -- No SIGPIPE on send MSG_Forced_Flags : constant := 0; -- Flags set on all send(2) calls -------------------- -- Socket options -- -------------------- TCP_NODELAY : constant := 1; -- Do not coalesce packets SO_REUSEADDR : constant := 4; -- Bind reuse local address SO_KEEPALIVE : constant := 8; -- Enable keep-alive msgs SO_LINGER : constant := 128; -- Defer close to flush data SO_BROADCAST : constant := 32; -- Can send broadcast msgs SO_SNDBUF : constant := 4097; -- Set/get send buffer size SO_RCVBUF : constant := 4098; -- Set/get recv buffer size SO_SNDTIMEO : constant := 4101; -- Emission timeout SO_RCVTIMEO : constant := 4102; -- Reception timeout SO_ERROR : constant := 4103; -- Get/clear error status IP_MULTICAST_IF : constant := 2; -- Set/get mcast interface IP_MULTICAST_TTL : constant := 3; -- Set/get multicast TTL IP_MULTICAST_LOOP : constant := 4; -- Set/get mcast loopback IP_ADD_MEMBERSHIP : constant := 5; -- Join a multicast group IP_DROP_MEMBERSHIP : constant := 6; -- Leave a multicast group ------------------- -- System limits -- ------------------- IOV_MAX : constant := 16; -- Maximum writev iovcnt ---------------------- -- Type definitions -- ---------------------- -- Sizes (in bytes) of the components of struct timeval SIZEOF_tv_sec : constant := 4; -- tv_sec SIZEOF_tv_usec : constant := 4; -- tv_usec end GNAT.Sockets.Constants;
52.884615
78
0.470753
0b995fcbc766fdab5a6e6970aa249ec76d7a2cab
99
ads
Ada
tests/nonsmoke/functional/CompileTests/experimental_ada_tests/constant_declaration.ads
ucd-plse/rose
17db6454e8baba0014e30a8ec23df1a11ac55a0c
[ "BSD-3-Clause" ]
488
2015-01-09T08:54:48.000Z
2022-03-30T07:15:46.000Z
tests/nonsmoke/functional/CompileTests/experimental_ada_tests/constant_declaration.ads
ucd-plse/rose
17db6454e8baba0014e30a8ec23df1a11ac55a0c
[ "BSD-3-Clause" ]
174
2015-01-28T18:41:32.000Z
2022-03-31T16:51:05.000Z
tests/nonsmoke/functional/CompileTests/experimental_ada_tests/tests/constant_declaration.ads
passlab/rexompiler
5494df3766ab606e230c5f1785b438a019c9e353
[ "BSD-3-Clause" ]
146
2015-04-27T02:48:34.000Z
2022-03-04T07:32:53.000Z
package Constant_Declaration is The_Constant : constant Integer := 1; end Constant_Declaration;
24.75
40
0.808081
4deb04d82356eaa7cfe4705c4fe89c3f101359f2
1,112
adb
Ada
build_gnu/binutils/gdb/testsuite/gdb.ada/dyn_arrayidx/foo.adb
jed-frey/e200-gcc
df1421b421a8ec8729d70791129f5283dee5f9ea
[ "BSD-3-Clause" ]
1
2017-05-31T21:42:12.000Z
2017-05-31T21:42:12.000Z
build_gnu/binutils/gdb/testsuite/gdb.ada/dyn_arrayidx/foo.adb
jed-frey/e200-gcc
df1421b421a8ec8729d70791129f5283dee5f9ea
[ "BSD-3-Clause" ]
null
null
null
build_gnu/binutils/gdb/testsuite/gdb.ada/dyn_arrayidx/foo.adb
jed-frey/e200-gcc
df1421b421a8ec8729d70791129f5283dee5f9ea
[ "BSD-3-Clause" ]
1
2019-12-17T22:04:07.000Z
2019-12-17T22:04:07.000Z
-- Copyright 2014 Free Software Foundation, Inc. -- -- This program is free software; you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation; either version 3 of the License, or -- (at your option) any later version. -- -- This program is distributed in the hope that it will be useful, -- but WITHOUT ANY WARRANTY; without even the implied warranty of -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -- GNU General Public License for more details. -- -- You should have received a copy of the GNU General Public License -- along with this program. If not, see <http://www.gnu.org/licenses/>. procedure Foo is function Range_Count (L, U : Integer) return Natural is type Array_Type is array (L .. U) of Natural; A : Array_Type := (others => 1); Result : Natural := 0; begin for I of A loop -- START Result := Result + I; end loop; return Result; end Range_Count; R2 : constant Natural := Range_Count (5, 10); begin null; end Foo;
33.69697
73
0.681655
dfa7767312c7a4ee43298994f3478fb1f7340d46
844
adb
Ada
src/gdb/gdb-8.3/gdb/testsuite/gdb.ada/null_record/null_record.adb
alrooney/unum-sdk
bbccb10b0cd3500feccbbef22e27ea111c3d18eb
[ "Apache-2.0" ]
31
2018-08-01T21:25:24.000Z
2022-02-14T07:52:34.000Z
src/gdb/gdb-8.3/gdb/testsuite/gdb.ada/null_record/null_record.adb
alrooney/unum-sdk
bbccb10b0cd3500feccbbef22e27ea111c3d18eb
[ "Apache-2.0" ]
40
2018-12-03T19:48:52.000Z
2021-03-10T06:34:26.000Z
src/gdb/gdb-8.3/gdb/testsuite/gdb.ada/null_record/null_record.adb
alrooney/unum-sdk
bbccb10b0cd3500feccbbef22e27ea111c3d18eb
[ "Apache-2.0" ]
20
2018-11-16T21:19:22.000Z
2021-10-18T23:08:24.000Z
-- 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/>. with Bar; use Bar; procedure Null_Record is E : Void_Star := new Empty; begin Do_Nothing (E); -- START end Null_Record;
35.166667
73
0.729858
20b02afcb0a9bd4c5f097051565d94374ecddc29
4,788
adb
Ada
source/nodes/program-nodes-array_component_associations.adb
optikos/oasis
9f64d46d26d964790d69f9db681c874cfb3bf96d
[ "MIT" ]
null
null
null
source/nodes/program-nodes-array_component_associations.adb
optikos/oasis
9f64d46d26d964790d69f9db681c874cfb3bf96d
[ "MIT" ]
null
null
null
source/nodes/program-nodes-array_component_associations.adb
optikos/oasis
9f64d46d26d964790d69f9db681c874cfb3bf96d
[ "MIT" ]
2
2019-09-14T23:18:50.000Z
2019-10-02T10:11:40.000Z
-- Copyright (c) 2019 Maxim Reznik <[email protected]> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- package body Program.Nodes.Array_Component_Associations is function Create (Choices : Program.Element_Vectors.Element_Vector_Access; Arrow_Token : Program.Lexical_Elements.Lexical_Element_Access; Expression : Program.Elements.Expressions.Expression_Access; Box_Token : Program.Lexical_Elements.Lexical_Element_Access) return Array_Component_Association is begin return Result : Array_Component_Association := (Choices => Choices, Arrow_Token => Arrow_Token, Expression => Expression, Box_Token => Box_Token, Enclosing_Element => null) do Initialize (Result); end return; end Create; function Create (Choices : Program.Element_Vectors.Element_Vector_Access; Expression : Program.Elements.Expressions.Expression_Access; Is_Part_Of_Implicit : Boolean := False; Is_Part_Of_Inherited : Boolean := False; Is_Part_Of_Instance : Boolean := False) return Implicit_Array_Component_Association is begin return Result : Implicit_Array_Component_Association := (Choices => Choices, Expression => Expression, Is_Part_Of_Implicit => Is_Part_Of_Implicit, Is_Part_Of_Inherited => Is_Part_Of_Inherited, Is_Part_Of_Instance => Is_Part_Of_Instance, Enclosing_Element => null) do Initialize (Result); end return; end Create; overriding function Choices (Self : Base_Array_Component_Association) return Program.Element_Vectors.Element_Vector_Access is begin return Self.Choices; end Choices; overriding function Expression (Self : Base_Array_Component_Association) return Program.Elements.Expressions.Expression_Access is begin return Self.Expression; end Expression; overriding function Arrow_Token (Self : Array_Component_Association) return Program.Lexical_Elements.Lexical_Element_Access is begin return Self.Arrow_Token; end Arrow_Token; overriding function Box_Token (Self : Array_Component_Association) return Program.Lexical_Elements.Lexical_Element_Access is begin return Self.Box_Token; end Box_Token; overriding function Is_Part_Of_Implicit (Self : Implicit_Array_Component_Association) return Boolean is begin return Self.Is_Part_Of_Implicit; end Is_Part_Of_Implicit; overriding function Is_Part_Of_Inherited (Self : Implicit_Array_Component_Association) return Boolean is begin return Self.Is_Part_Of_Inherited; end Is_Part_Of_Inherited; overriding function Is_Part_Of_Instance (Self : Implicit_Array_Component_Association) return Boolean is begin return Self.Is_Part_Of_Instance; end Is_Part_Of_Instance; procedure Initialize (Self : aliased in out Base_Array_Component_Association'Class) is begin for Item in Self.Choices.Each_Element loop Set_Enclosing_Element (Item.Element, Self'Unchecked_Access); end loop; if Self.Expression.Assigned then Set_Enclosing_Element (Self.Expression, Self'Unchecked_Access); end if; null; end Initialize; overriding function Is_Array_Component_Association_Element (Self : Base_Array_Component_Association) return Boolean is pragma Unreferenced (Self); begin return True; end Is_Array_Component_Association_Element; overriding function Is_Association_Element (Self : Base_Array_Component_Association) return Boolean is pragma Unreferenced (Self); begin return True; end Is_Association_Element; overriding procedure Visit (Self : not null access Base_Array_Component_Association; Visitor : in out Program.Element_Visitors.Element_Visitor'Class) is begin Visitor.Array_Component_Association (Self); end Visit; overriding function To_Array_Component_Association_Text (Self : aliased in out Array_Component_Association) return Program.Elements.Array_Component_Associations .Array_Component_Association_Text_Access is begin return Self'Unchecked_Access; end To_Array_Component_Association_Text; overriding function To_Array_Component_Association_Text (Self : aliased in out Implicit_Array_Component_Association) return Program.Elements.Array_Component_Associations .Array_Component_Association_Text_Access is pragma Unreferenced (Self); begin return null; end To_Array_Component_Association_Text; end Program.Nodes.Array_Component_Associations;
33.02069
79
0.731412
20ec0651e204e4e72abaf412dcdb3893415b99fa
3,171
ads
Ada
Ada95/samples/rain.ads
neverware-mirrors/ncurses
931939e0d2765af13962820e59cb6629df3ee638
[ "X11" ]
269
2015-03-01T21:34:42.000Z
2022-03-30T23:07:18.000Z
Ada95/samples/rain.ads
neverware-mirrors/ncurses
931939e0d2765af13962820e59cb6629df3ee638
[ "X11" ]
3
2020-10-09T15:00:37.000Z
2020-10-09T15:05:19.000Z
Ada95/samples/rain.ads
neverware-mirrors/ncurses
931939e0d2765af13962820e59cb6629df3ee638
[ "X11" ]
97
2016-04-25T06:22:54.000Z
2022-03-30T23:07:19.000Z
------------------------------------------------------------------------------ -- -- -- GNAT ncurses Binding Samples -- -- -- -- Rain -- -- -- -- S P E C -- -- -- ------------------------------------------------------------------------------ -- Copyright 2020 Thomas E. Dickey -- -- Copyright 1998-2002,2003 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: Laurent Pautet <[email protected]> -- Modified by: Juergen Pfeifer, 1997 -- Version Control -- $Revision: 1.8 $ -- Binding Version 01.00 ------------------------------------------------------------------------------ -- -- procedure Rain;
70.466667
78
0.394197
10db013fc9b6590152de84fe6564922211fc4673
182
ads
Ada
source/numerics/a-nurear.ads
ytomino/drake
4e4bdcd8b8e23a11a29b31d3a8861fdf60090ea2
[ "MIT" ]
33
2015-04-04T09:19:36.000Z
2021-11-10T05:33:34.000Z
source/numerics/a-nurear.ads
ytomino/drake
4e4bdcd8b8e23a11a29b31d3a8861fdf60090ea2
[ "MIT" ]
8
2017-11-14T13:05:07.000Z
2018-08-09T15:28:49.000Z
source/numerics/a-nurear.ads
ytomino/drake
4e4bdcd8b8e23a11a29b31d3a8861fdf60090ea2
[ "MIT" ]
9
2015-02-03T17:09:53.000Z
2021-11-12T01:16:05.000Z
pragma License (Unrestricted); with Ada.Numerics.Generic_Real_Arrays; package Ada.Numerics.Real_Arrays is new Generic_Real_Arrays (Float); pragma Pure (Ada.Numerics.Real_Arrays);
30.333333
39
0.818681
4d480e0519f9d96187ea9307e6b78e2425566aa2
3,353
adb
Ada
gcc-gcc-7_3_0-release/gcc/ada/i-vxwoio.adb
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
7
2020-05-02T17:34:05.000Z
2021-10-17T10:15:18.000Z
gcc-gcc-7_3_0-release/gcc/ada/i-vxwoio.adb
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
null
null
null
gcc-gcc-7_3_0-release/gcc/ada/i-vxwoio.adb
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
2
2020-07-27T00:22:36.000Z
2021-04-01T09:41:02.000Z
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- I N T E R F A C E S . V X W O R K S . I O -- -- -- -- B o d y -- -- -- -- Copyright (C) 2002-2009, Free Software Foundation, Inc. -- -- -- -- GNARL is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 3, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. -- -- -- -- As a special exception under Section 7 of GPL version 3, you are granted -- -- additional permissions described in the GCC Runtime Library Exception, -- -- version 3.1, as published by the Free Software Foundation. -- -- -- -- You should have received a copy of the GNU General Public License and -- -- a copy of the GCC Runtime Library Exception along with this program; -- -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see -- -- <http://www.gnu.org/licenses/>. -- -- -- -- GNARL was developed by the GNARL team at Florida State University. -- -- Extensive contributions were provided by Ada Core Technologies, Inc. -- -- -- ------------------------------------------------------------------------------ package body Interfaces.VxWorks.IO is -------------------------- -- Enable_Get_Immediate -- -------------------------- procedure Enable_Get_Immediate (File : Interfaces.C_Streams.FILEs; Success : out Boolean) is Status : int; Fd : int; begin Fd := fileno (File); Status := ioctl (Fd, FIOSETOPTIONS, OPT_RAW); if Status /= int (ERROR) then Success := True; else Success := False; end if; end Enable_Get_Immediate; --------------------------- -- Disable_Get_Immediate -- --------------------------- procedure Disable_Get_Immediate (File : Interfaces.C_Streams.FILEs; Success : out Boolean) is Status : int; Fd : int; begin Fd := fileno (File); Status := ioctl (Fd, FIOSETOPTIONS, OPT_TERMINAL); Success := (if Status /= int (ERROR) then True else False); end Disable_Get_Immediate; end Interfaces.VxWorks.IO;
45.931507
78
0.417537
0b286f8efb5c48d1206a7a9fcb2a6432cc7400ec
3,617
ads
Ada
.emacs.d/elpa/wisi-2.1.1/sal-gen_bounded_definite_queues.ads
caqg/linux-home
eed631aae6f5e59e4f46e14f1dff443abca5fa28
[ "Linux-OpenIB" ]
null
null
null
.emacs.d/elpa/wisi-2.1.1/sal-gen_bounded_definite_queues.ads
caqg/linux-home
eed631aae6f5e59e4f46e14f1dff443abca5fa28
[ "Linux-OpenIB" ]
null
null
null
.emacs.d/elpa/wisi-2.1.1/sal-gen_bounded_definite_queues.ads
caqg/linux-home
eed631aae6f5e59e4f46e14f1dff443abca5fa28
[ "Linux-OpenIB" ]
null
null
null
-- Abstract: -- -- A generic queue, allowing definite non-limited item types. -- -- Copyright (C) 2004, 2008, 2009, 2011, 2017, 2019 Free Software Foundation All Rights Reserved. -- -- This library is free software; you can redistribute it and/or modify it -- under terms of the GNU General Public License as published by the Free -- Software Foundation; either version 3, or (at your option) any later -- version. This library is distributed in the hope that it will be useful, -- but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHAN- -- TABILITY or FITNESS FOR A PARTICULAR PURPOSE. -- -- As a special exception under Section 7 of GPL version 3, you are granted -- additional permissions described in the GCC Runtime Library Exception, -- version 3.1, as published by the Free Software Foundation. pragma License (Modified_GPL); generic type Item_Type is private; package SAL.Gen_Bounded_Definite_Queues is pragma Pure; type Queue_Type (Size : Positive) is tagged private; -- Size is maximum number of items in the queue. -- Tagged to allow Object.Method syntax. function Get_Overflow_Handling (Queue : in Queue_Type) return Overflow_Action_Type; procedure Set_Overflow_Handling (Queue : in out Queue_Type; Handling : in Overflow_Action_Type); -- See Add for meaning of Overflow_Handling. Default is Error. procedure Clear (Queue : in out Queue_Type); -- Empty Queue of all items. function Count (Queue : in Queue_Type) return Natural; -- Returns count of items in the Queue function Is_Empty (Queue : in Queue_Type) return Boolean; -- Returns true if no items are in Queue. function Is_Full (Queue : in Queue_Type) return Boolean; -- Returns true if Queue is full. function Remove (Queue : in out Queue_Type) return Item_Type; -- Remove head item from Queue, return it. -- -- Raises Container_Empty if Is_Empty. function Get (Queue : in out Queue_Type) return Item_Type renames Remove; procedure Drop (Queue : in out Queue_Type); -- Remove head item from Queue, discard it. -- -- Raises Container_Empty if Is_Empty. function Peek (Queue : in Queue_Type; N : Integer := 0) return Item_Type; -- Return a copy of a queue item, without removing it. N = 0 is -- the queue head. procedure Add (Queue : in out Queue_Type; Item : in Item_Type); -- Add Item to the tail of Queue. -- -- If Queue is full, result depends on Queue.Overflow_Handling: -- -- when Overwrite, an implicit Remove is done (and the data -- discarded), then Add is done. -- -- when Error, raises Container_Full. procedure Put (Queue : in out Queue_Type; Item : in Item_Type) renames Add; procedure Add_To_Head (Queue : in out Queue_Type; Item : in Item_Type); -- Add Item to the head of Queue. -- -- If Queue is full, result depends on Queue.Overflow_Handling: -- -- when Overwrite, an implicit Remove is done (and the data -- discarded), then Add is done. -- -- when Error, raises Container_Full. private type Item_Array_Type is array (Positive range <>) of Item_Type; type Queue_Type (Size : Positive) is tagged record Overflow_Handling : Overflow_Action_Type := Error; Head : Natural := 0; Tail : Natural := 0; Count : Natural := 0; Data : Item_Array_Type (1 .. Size); -- Add at Tail + 1, remove at Head. Count is current count; -- easier to keep track of that than to compute Is_Empty for -- each Add and Remove. end record; end SAL.Gen_Bounded_Definite_Queues;
36.17
99
0.696986
50898c9c7a8008adc91a7c457e9cd35ed1715067
900
ads
Ada
resources/scripts/api/chaos.ads
devkw/Amass
1101ef11d1e71753751205e4a3e30a36edc8ffe8
[ "Apache-2.0" ]
1
2020-08-24T09:14:08.000Z
2020-08-24T09:14:08.000Z
resources/scripts/api/chaos.ads
devkw/Amass
1101ef11d1e71753751205e4a3e30a36edc8ffe8
[ "Apache-2.0" ]
null
null
null
resources/scripts/api/chaos.ads
devkw/Amass
1101ef11d1e71753751205e4a3e30a36edc8ffe8
[ "Apache-2.0" ]
null
null
null
-- 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 = "Chaos" type = "api" function start() setratelimit(10) end function vertical(ctx, domain) if (api ~= nil and api.key ~= '') then apiquery(ctx, domain) end end function apiquery(ctx, domain) local page, err = request({ url=apiurl(domain), headers={['Authorization']=api["key"]}, }) if (err ~= nil and err ~= '') then return end local resp = json.decode(page) if (resp == nil or #(resp.subdomains) == 0) then return end for i, sub in pairs(resp.subdomains) do newname(ctx, sub .. "." .. resp.domain) end end function apiurl(domain) return "https://dns.projectdiscovery.io/dns/" .. domain .. "/subdomains" end
21.95122
97
0.617778
4d4896aea585a0b8bb99cfa4e239f3be0462d5e2
299
adb
Ada
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/oconst5.adb
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
7
2020-05-02T17:34:05.000Z
2021-10-17T10:15:18.000Z
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/oconst5.adb
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
null
null
null
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/oconst5.adb
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
2
2020-07-27T00:22:36.000Z
2021-04-01T09:41:02.000Z
-- { dg-do compile } -- { dg-final { scan-assembler-not "elabs" } } package body OCONST5 is procedure Check (Arg : R; Bit : U1) is begin if Arg.Bit /= Bit or else Arg.Agg.A /= 3 or else Arg.Agg.B /= 7 then raise Program_Error; end if; end; end;
18.6875
46
0.538462
d0d9beeb20f75ff7a2de214709b67ffce6160902
414
ada
Ada
Task/Determine-if-a-string-is-numeric/Ada/determine-if-a-string-is-numeric-3.ada
mullikine/RosettaCodeData
4f0027c6ce83daa36118ee8b67915a13cd23ab67
[ "Info-ZIP" ]
1
2018-11-09T22:08:38.000Z
2018-11-09T22:08:38.000Z
Task/Determine-if-a-string-is-numeric/Ada/determine-if-a-string-is-numeric-3.ada
mullikine/RosettaCodeData
4f0027c6ce83daa36118ee8b67915a13cd23ab67
[ "Info-ZIP" ]
null
null
null
Task/Determine-if-a-string-is-numeric/Ada/determine-if-a-string-is-numeric-3.ada
mullikine/RosettaCodeData
4f0027c6ce83daa36118ee8b67915a13cd23ab67
[ "Info-ZIP" ]
1
2018-11-09T22:08:40.000Z
2018-11-09T22:08:40.000Z
with Ada.Text_Io; use Ada.Text_Io; with Numeric_Tests; use Numeric_Tests; procedure Is_Numeric_Test is S1 : String := "152"; S2 : String := "-3.1415926"; S3 : String := "Foo123"; begin Put_Line(S1 & " results in " & Boolean'Image(Is_Numeric(S1))); Put_Line(S2 & " results in " & Boolean'Image(Is_Numeric(S2))); Put_Line(S3 & " results in " & Boolean'Image(Is_Numeric(S3))); end Is_Numeric_Test;
31.846154
65
0.673913
4a0cb7feb90543697a00af88837c7a334f618ae6
1,285
ads
Ada
generated/ada/src/model/-models.ads
cliffano/openapi-ipify
5d99cdfa7fc7ffde37b13bb0f29a26b9d0433472
[ "MIT" ]
4
2018-08-24T10:45:15.000Z
2022-03-05T04:22:54.000Z
generated/ada-server/src/model/-models.ads
cliffano/openapi-ipify
5d99cdfa7fc7ffde37b13bb0f29a26b9d0433472
[ "MIT" ]
8
2021-12-09T20:06:39.000Z
2022-03-07T08:25:48.000Z
generated/ada/src/model/-models.ads
cliffano/openapi-ipify
5d99cdfa7fc7ffde37b13bb0f29a26b9d0433472
[ "MIT" ]
null
null
null
-- openapi_ipify -- OpenAPI client for ipify, a simple public IP address API -- -- OpenAPI spec version: 0.9.0 -- Contact: [email protected] -- -- NOTE: This package is auto generated by the swagger code generator 3.2.1-SNAPSHOT. -- https://openapi-generator.tech -- Do not edit the class manually. with Swagger.Streams; with Ada.Containers.Vectors; package .Models is type Ip_Type is record Ip : Swagger.UString; end record; package Ip_Type_Vectors is new Ada.Containers.Vectors (Index_Type => Positive, Element_Type => Ip_Type); procedure Serialize (Into : in out Swagger.Streams.Output_Stream'Class; Name : in String; Value : in Ip_Type); procedure Serialize (Into : in out Swagger.Streams.Output_Stream'Class; Name : in String; Value : in Ip_Type_Vectors.Vector); procedure Deserialize (From : in Swagger.Value_Type; Name : in String; Value : out Ip_Type); procedure Deserialize (From : in Swagger.Value_Type; Name : in String; Value : out Ip_Type_Vectors.Vector); end .Models;
29.204545
86
0.583658
df45a0c22191f18c52a0640b0d1f3de8114d409a
8,606
ads
Ada
src/gen/gstreamer-gst_low_level-gstreamer_0_10_gst_controller_gstinterpolationcontrolsource_h.ads
persan/A-gst
7a39693d105617adea52680424c862a1a08f7368
[ "Apache-2.0" ]
1
2018-01-18T00:51:00.000Z
2018-01-18T00:51:00.000Z
src/gen/gstreamer-gst_low_level-gstreamer_0_10_gst_controller_gstinterpolationcontrolsource_h.ads
persan/A-gst
7a39693d105617adea52680424c862a1a08f7368
[ "Apache-2.0" ]
null
null
null
src/gen/gstreamer-gst_low_level-gstreamer_0_10_gst_controller_gstinterpolationcontrolsource_h.ads
persan/A-gst
7a39693d105617adea52680424c862a1a08f7368
[ "Apache-2.0" ]
null
null
null
pragma Ada_2005; pragma Style_Checks (Off); pragma Warnings (Off); with Interfaces.C; use Interfaces.C; with glib; with glib.Values; with System; with GStreamer.GST_Low_Level.gstreamer_0_10_gst_controller_gstcontrolsource_h; -- limited -- with GStreamer.GST_Low_Level.glib_2_0_glib_gthread_h; with System; with glib; with GStreamer.GST_Low_Level.gstreamer_0_10_gst_gstclock_h; -- limited with GStreamer.GST_Low_Level.glib_2_0_glib_gslist_h; -- limited with GStreamer.GST_Low_Level.glib_2_0_glib_glist_h; package GStreamer.GST_Low_Level.gstreamer_0_10_gst_controller_gstinterpolationcontrolsource_h is -- unsupported macro: GST_TYPE_INTERPOLATION_CONTROL_SOURCE (gst_interpolation_control_source_get_type ()) -- arg-macro: function GST_INTERPOLATION_CONTROL_SOURCE (obj) -- return G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_INTERPOLATION_CONTROL_SOURCE, GstInterpolationControlSource); -- arg-macro: function GST_INTERPOLATION_CONTROL_SOURCE_CLASS (vtable) -- return G_TYPE_CHECK_CLASS_CAST ((vtable), GST_TYPE_INTERPOLATION_CONTROL_SOURCE, GstInterpolationControlSourceClass); -- arg-macro: function GST_IS_INTERPOLATION_CONTROL_SOURCE (obj) -- return G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_INTERPOLATION_CONTROL_SOURCE); -- arg-macro: function GST_IS_INTERPOLATION_CONTROL_SOURCE_CLASS (vtable) -- return G_TYPE_CHECK_CLASS_TYPE ((vtable), GST_TYPE_INTERPOLATION_CONTROL_SOURCE); -- arg-macro: function GST_INTERPOLATION_CONTROL_SOURCE_GET_CLASS (inst) -- return G_TYPE_INSTANCE_GET_CLASS ((inst), GST_TYPE_INTERPOLATION_CONTROL_SOURCE, GstInterpolationControlSourceClass); -- GStreamer -- * -- * Copyright (C) 2007 Sebastian Dröge <[email protected]> -- * -- * gstinterpolationcontrolsource.h: Control source that provides several -- * interpolation methods -- * -- * This library is free software; you can redistribute it and/or -- * modify it under the terms of the GNU Library General Public -- * License as published by the Free Software Foundation; either -- * version 2 of the License, or (at your option) any later version. -- * -- * This library is distributed in the hope that it will be useful, -- * but WITHOUT ANY WARRANTY; without even the implied warranty of -- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -- * Library General Public License for more details. -- * -- * You should have received a copy of the GNU Library General Public -- * License along with this library; if not, write to the -- * Free Software Foundation, Inc., 59 Temple Place - Suite 330, -- * Boston, MA 02111-1307, USA. -- type GstInterpolationControlSource; type u_GstInterpolationControlSource_u_gst_reserved_array is array (0 .. 3) of System.Address; --subtype GstInterpolationControlSource is u_GstInterpolationControlSource; -- gst/controller/gstinterpolationcontrolsource.h:47 type GstInterpolationControlSourceClass; type u_GstInterpolationControlSourceClass_u_gst_reserved_array is array (0 .. 3) of System.Address; --subtype GstInterpolationControlSourceClass is u_GstInterpolationControlSourceClass; -- gst/controller/gstinterpolationcontrolsource.h:48 -- skipped empty struct u_GstInterpolationControlSourcePrivate -- skipped empty struct GstInterpolationControlSourcePrivate --* -- * GstInterpolateMode: -- * @GST_INTERPOLATE_NONE: steps-like interpolation, default -- * @GST_INTERPOLATE_TRIGGER: returns the default value of the property, -- * except for times with specific values -- * @GST_INTERPOLATE_LINEAR: linear interpolation -- * @GST_INTERPOLATE_QUADRATIC: square interpolation (deprecated, maps to cubic) -- * @GST_INTERPOLATE_CUBIC: cubic interpolation -- * @GST_INTERPOLATE_USER: user-provided interpolation (not yet available) -- * -- * The various interpolation modes available. -- type GstInterpolateMode is (GST_INTERPOLATE_NONE, GST_INTERPOLATE_TRIGGER, GST_INTERPOLATE_LINEAR, GST_INTERPOLATE_QUADRATIC, GST_INTERPOLATE_CUBIC, GST_INTERPOLATE_USER); pragma Convention (C, GstInterpolateMode); -- gst/controller/gstinterpolationcontrolsource.h:71 --* -- * GstInterpolationControlSource: -- * -- * The instance structure of #GstControlSource. -- type GstInterpolationControlSource is record parent : aliased GStreamer.GST_Low_Level.gstreamer_0_10_gst_controller_gstcontrolsource_h.GstControlSource; -- gst/controller/gstinterpolationcontrolsource.h:79 lock : access GStreamer.GST_Low_Level.glib_2_0_glib_gthread_h.GMutex; -- gst/controller/gstinterpolationcontrolsource.h:82 priv : System.Address; -- gst/controller/gstinterpolationcontrolsource.h:83 u_gst_reserved : u_GstInterpolationControlSource_u_gst_reserved_array; -- gst/controller/gstinterpolationcontrolsource.h:84 end record; pragma Convention (C_Pass_By_Copy, GstInterpolationControlSource); -- gst/controller/gstinterpolationcontrolsource.h:78 -- <private> type GstInterpolationControlSourceClass is record parent_class : aliased GStreamer.GST_Low_Level.gstreamer_0_10_gst_controller_gstcontrolsource_h.GstControlSourceClass; -- gst/controller/gstinterpolationcontrolsource.h:88 u_gst_reserved : u_GstInterpolationControlSourceClass_u_gst_reserved_array; -- gst/controller/gstinterpolationcontrolsource.h:91 end record; pragma Convention (C_Pass_By_Copy, GstInterpolationControlSourceClass); -- gst/controller/gstinterpolationcontrolsource.h:87 --< private > function gst_interpolation_control_source_get_type return GLIB.GType; -- gst/controller/gstinterpolationcontrolsource.h:94 pragma Import (C, gst_interpolation_control_source_get_type, "gst_interpolation_control_source_get_type"); -- Functions function gst_interpolation_control_source_new return access GstInterpolationControlSource; -- gst/controller/gstinterpolationcontrolsource.h:98 pragma Import (C, gst_interpolation_control_source_new, "gst_interpolation_control_source_new"); function gst_interpolation_control_source_set_interpolation_mode (self : access GstInterpolationControlSource; mode : GstInterpolateMode) return GLIB.gboolean; -- gst/controller/gstinterpolationcontrolsource.h:99 pragma Import (C, gst_interpolation_control_source_set_interpolation_mode, "gst_interpolation_control_source_set_interpolation_mode"); function gst_interpolation_control_source_set (self : access GstInterpolationControlSource; timestamp : GStreamer.GST_Low_Level.gstreamer_0_10_gst_gstclock_h.GstClockTime; value : access constant Glib.Values.GValue) return GLIB.gboolean; -- gst/controller/gstinterpolationcontrolsource.h:100 pragma Import (C, gst_interpolation_control_source_set, "gst_interpolation_control_source_set"); function gst_interpolation_control_source_set_from_list (self : access GstInterpolationControlSource; timedvalues : access constant GStreamer.GST_Low_Level.glib_2_0_glib_gslist_h.GSList) return GLIB.gboolean; -- gst/controller/gstinterpolationcontrolsource.h:101 pragma Import (C, gst_interpolation_control_source_set_from_list, "gst_interpolation_control_source_set_from_list"); function gst_interpolation_control_source_unset (self : access GstInterpolationControlSource; timestamp : GStreamer.GST_Low_Level.gstreamer_0_10_gst_gstclock_h.GstClockTime) return GLIB.gboolean; -- gst/controller/gstinterpolationcontrolsource.h:102 pragma Import (C, gst_interpolation_control_source_unset, "gst_interpolation_control_source_unset"); procedure gst_interpolation_control_source_unset_all (self : access GstInterpolationControlSource); -- gst/controller/gstinterpolationcontrolsource.h:103 pragma Import (C, gst_interpolation_control_source_unset_all, "gst_interpolation_control_source_unset_all"); function gst_interpolation_control_source_get_all (self : access GstInterpolationControlSource) return access GStreamer.GST_Low_Level.glib_2_0_glib_glist_h.GList; -- gst/controller/gstinterpolationcontrolsource.h:104 pragma Import (C, gst_interpolation_control_source_get_all, "gst_interpolation_control_source_get_all"); function gst_interpolation_control_source_get_count (self : access GstInterpolationControlSource) return GLIB.gint; -- gst/controller/gstinterpolationcontrolsource.h:105 pragma Import (C, gst_interpolation_control_source_get_count, "gst_interpolation_control_source_get_count"); end GStreamer.GST_Low_Level.gstreamer_0_10_gst_controller_gstinterpolationcontrolsource_h;
61.035461
266
0.806763
4d3f809fe620610c034148b02733f30f7a17138b
518
adb
Ada
electives/pw/lab/lista-3/ada/edgeregistry.adb
jerry-sky/academic-notebook
be2d350289441b99168ea40412891bc65b9cb431
[ "Unlicense" ]
4
2020-12-28T21:53:00.000Z
2022-03-22T19:24:47.000Z
electives/pw/lab/lista-3/ada/edgeregistry.adb
jerry-sky/academic-notebook
be2d350289441b99168ea40412891bc65b9cb431
[ "Unlicense" ]
3
2022-02-13T18:07:10.000Z
2022-02-13T18:16:07.000Z
electives/pw/lab/lista-3/ada/edgeregistry.adb
jerry-sky/academic-notebook
be2d350289441b99168ea40412891bc65b9cb431
[ "Unlicense" ]
4
2020-12-28T16:05:35.000Z
2022-03-08T16:20:00.000Z
package body EdgeRegistry is function Key(a: Natural; b: Natural) return MString is begin return ToMString(Natural'Image(a) & ";" & Natural'Image(b)); end Key; procedure Register(map: in out HashMap; a: Natural; b: Natural) is begin map.Insert(Key(a, b), True); map.Insert(Key(b, a), True); end Register; function Exists(map: HashMap; a: Natural; b: Natural) return Boolean is begin return map.Contains(Key(a, b)); end Exists; end EdgeRegistry;
24.666667
75
0.631274
0b17509c70fbb3691095fd42f369935f9ce9feeb
2,060
ads
Ada
source/adam-subprogram.ads
charlie5/aIDE
fab406dbcd9b72a4cb215ffebb05166c788d6365
[ "MIT" ]
3
2017-04-29T14:25:22.000Z
2017-09-29T10:15:28.000Z
source/adam-subprogram.ads
charlie5/aIDE
fab406dbcd9b72a4cb215ffebb05166c788d6365
[ "MIT" ]
null
null
null
source/adam-subprogram.ads
charlie5/aIDE
fab406dbcd9b72a4cb215ffebb05166c788d6365
[ "MIT" ]
null
null
null
with AdaM.Entity, AdaM.Block, AdaM.Context, AdaM.Parameter, Ada.Containers.Vectors, Ada.Streams; package AdaM.Subprogram is type Item is new Entity.item with private; -- View -- type View is access all Item'Class; procedure View_write (Stream : not null access Ada.Streams.Root_Stream_Type'Class; Self : in View); procedure View_read (Stream : not null access Ada.Streams.Root_Stream_Type'Class; Self : out View); for View'write use View_write; for View'read use View_read; -- Vector -- package Vectors is new ada.Containers.Vectors (Positive, View); subtype Vector is Vectors.Vector; -- Forge -- function new_Subprogram (Name : in String := "") return Subprogram.view; procedure free (Self : in out Subprogram.view); procedure destruct (Self : in out Subprogram.item); -- Attributes -- overriding function Id (Self : access Item) return AdaM.Id; overriding function Name (Self : in Item) return Identifier; procedure Name_is (Self : in out Item; Now : in String); overriding function to_Source (Self : in Item) return text_Vectors.Vector; function Context (Self : in Item) return AdaM.Context.view; function Block (Self : in Item) return AdaM.Block.view; function is_Function (Self : in Item) return Boolean; function is_Procedure (Self : in Item) return Boolean; private type Profile is tagged record Parameters : Parameter.Vector; Result : Parameter.view; end record; function to_Source (the_Profile : in Profile) return text_Vectors.Vector; type Item is new Entity.item with record Context : AdaM.Context.view; Name : Text; Profile : subprogram.Profile; Block : AdaM.Block.view; end record; end AdaM.Subprogram;
23.678161
85
0.60534
50ed4efcc4c01b9cd88db2ea511e0ca758ecdf25
10,010
adb
Ada
Practica 03/P03_Planificador_Ciclico/obj/b__planificador_ciclico.adb
dpr1005/Tiempo-Real-Ejercicios
244911e9e9a2d8667649eb9f3d7417c39b340161
[ "BSD-3-Clause" ]
null
null
null
Practica 03/P03_Planificador_Ciclico/obj/b__planificador_ciclico.adb
dpr1005/Tiempo-Real-Ejercicios
244911e9e9a2d8667649eb9f3d7417c39b340161
[ "BSD-3-Clause" ]
null
null
null
Practica 03/P03_Planificador_Ciclico/obj/b__planificador_ciclico.adb
dpr1005/Tiempo-Real-Ejercicios
244911e9e9a2d8667649eb9f3d7417c39b340161
[ "BSD-3-Clause" ]
1
2022-03-06T17:37:39.000Z
2022-03-06T17:37:39.000Z
pragma Warnings (Off); pragma Ada_95; pragma Source_File_Name (ada_main, Spec_File_Name => "b__planificador_ciclico.ads"); pragma Source_File_Name (ada_main, Body_File_Name => "b__planificador_ciclico.adb"); pragma Suppress (Overflow_Check); with Ada.Exceptions; package body ada_main is E072 : Short_Integer; pragma Import (Ada, E072, "system__os_lib_E"); E008 : Short_Integer; pragma Import (Ada, E008, "ada__exceptions_E"); E013 : Short_Integer; pragma Import (Ada, E013, "system__soft_links_E"); E025 : Short_Integer; pragma Import (Ada, E025, "system__exception_table_E"); E040 : Short_Integer; pragma Import (Ada, E040, "ada__containers_E"); E068 : Short_Integer; pragma Import (Ada, E068, "ada__io_exceptions_E"); E052 : Short_Integer; pragma Import (Ada, E052, "ada__strings_E"); E054 : Short_Integer; pragma Import (Ada, E054, "ada__strings__maps_E"); E058 : Short_Integer; pragma Import (Ada, E058, "ada__strings__maps__constants_E"); E078 : Short_Integer; pragma Import (Ada, E078, "interfaces__c_E"); E027 : Short_Integer; pragma Import (Ada, E027, "system__exceptions_E"); E080 : Short_Integer; pragma Import (Ada, E080, "system__object_reader_E"); E047 : Short_Integer; pragma Import (Ada, E047, "system__dwarf_lines_E"); E021 : Short_Integer; pragma Import (Ada, E021, "system__soft_links__initialize_E"); E039 : Short_Integer; pragma Import (Ada, E039, "system__traceback__symbolic_E"); E110 : Short_Integer; pragma Import (Ada, E110, "ada__tags_E"); E108 : Short_Integer; pragma Import (Ada, E108, "ada__streams_E"); E122 : Short_Integer; pragma Import (Ada, E122, "system__file_control_block_E"); E121 : Short_Integer; pragma Import (Ada, E121, "system__finalization_root_E"); E119 : Short_Integer; pragma Import (Ada, E119, "ada__finalization_E"); E118 : Short_Integer; pragma Import (Ada, E118, "system__file_io_E"); E006 : Short_Integer; pragma Import (Ada, E006, "ada__calendar_E"); E104 : Short_Integer; pragma Import (Ada, E104, "ada__calendar__delays_E"); E106 : Short_Integer; pragma Import (Ada, E106, "ada__text_io_E"); Sec_Default_Sized_Stacks : array (1 .. 1) of aliased System.Secondary_Stack.SS_Stack (System.Parameters.Runtime_Default_Sec_Stack_Size); Local_Priority_Specific_Dispatching : constant String := ""; Local_Interrupt_States : constant String := ""; Is_Elaborated : Boolean := False; procedure finalize_library is begin E106 := E106 - 1; declare procedure F1; pragma Import (Ada, F1, "ada__text_io__finalize_spec"); begin F1; end; declare procedure F2; pragma Import (Ada, F2, "system__file_io__finalize_body"); begin E118 := E118 - 1; F2; end; declare procedure Reraise_Library_Exception_If_Any; pragma Import (Ada, Reraise_Library_Exception_If_Any, "__gnat_reraise_library_exception_if_any"); begin Reraise_Library_Exception_If_Any; end; end finalize_library; procedure adafinal is procedure s_stalib_adafinal; pragma Import (Ada, s_stalib_adafinal, "system__standard_library__adafinal"); procedure Runtime_Finalize; pragma Import (C, Runtime_Finalize, "__gnat_runtime_finalize"); begin if not Is_Elaborated then return; end if; Is_Elaborated := False; Runtime_Finalize; s_stalib_adafinal; end adafinal; type No_Param_Proc is access procedure; pragma Favor_Top_Level (No_Param_Proc); procedure adainit is Main_Priority : Integer; pragma Import (C, Main_Priority, "__gl_main_priority"); Time_Slice_Value : Integer; pragma Import (C, Time_Slice_Value, "__gl_time_slice_val"); WC_Encoding : Character; pragma Import (C, WC_Encoding, "__gl_wc_encoding"); Locking_Policy : Character; pragma Import (C, Locking_Policy, "__gl_locking_policy"); Queuing_Policy : Character; pragma Import (C, Queuing_Policy, "__gl_queuing_policy"); Task_Dispatching_Policy : Character; pragma Import (C, Task_Dispatching_Policy, "__gl_task_dispatching_policy"); Priority_Specific_Dispatching : System.Address; pragma Import (C, Priority_Specific_Dispatching, "__gl_priority_specific_dispatching"); Num_Specific_Dispatching : Integer; pragma Import (C, Num_Specific_Dispatching, "__gl_num_specific_dispatching"); Main_CPU : Integer; pragma Import (C, Main_CPU, "__gl_main_cpu"); Interrupt_States : System.Address; pragma Import (C, Interrupt_States, "__gl_interrupt_states"); Num_Interrupt_States : Integer; pragma Import (C, Num_Interrupt_States, "__gl_num_interrupt_states"); Unreserve_All_Interrupts : Integer; pragma Import (C, Unreserve_All_Interrupts, "__gl_unreserve_all_interrupts"); Detect_Blocking : Integer; pragma Import (C, Detect_Blocking, "__gl_detect_blocking"); Default_Stack_Size : Integer; pragma Import (C, Default_Stack_Size, "__gl_default_stack_size"); Default_Secondary_Stack_Size : System.Parameters.Size_Type; pragma Import (C, Default_Secondary_Stack_Size, "__gnat_default_ss_size"); Bind_Env_Addr : System.Address; pragma Import (C, Bind_Env_Addr, "__gl_bind_env_addr"); procedure Runtime_Initialize (Install_Handler : Integer); pragma Import (C, Runtime_Initialize, "__gnat_runtime_initialize"); Finalize_Library_Objects : No_Param_Proc; pragma Import (C, Finalize_Library_Objects, "__gnat_finalize_library_objects"); Binder_Sec_Stacks_Count : Natural; pragma Import (Ada, Binder_Sec_Stacks_Count, "__gnat_binder_ss_count"); Default_Sized_SS_Pool : System.Address; pragma Import (Ada, Default_Sized_SS_Pool, "__gnat_default_ss_pool"); begin if Is_Elaborated then return; end if; Is_Elaborated := True; Main_Priority := -1; Time_Slice_Value := -1; WC_Encoding := 'b'; Locking_Policy := ' '; Queuing_Policy := ' '; Task_Dispatching_Policy := ' '; Priority_Specific_Dispatching := Local_Priority_Specific_Dispatching'Address; Num_Specific_Dispatching := 0; Main_CPU := -1; Interrupt_States := Local_Interrupt_States'Address; Num_Interrupt_States := 0; Unreserve_All_Interrupts := 0; Detect_Blocking := 0; Default_Stack_Size := -1; ada_main'Elab_Body; Default_Secondary_Stack_Size := System.Parameters.Runtime_Default_Sec_Stack_Size; Binder_Sec_Stacks_Count := 1; Default_Sized_SS_Pool := Sec_Default_Sized_Stacks'Address; Runtime_Initialize (1); Finalize_Library_Objects := finalize_library'access; Ada.Exceptions'Elab_Spec; System.Soft_Links'Elab_Spec; System.Exception_Table'Elab_Body; E025 := E025 + 1; Ada.Containers'Elab_Spec; E040 := E040 + 1; Ada.Io_Exceptions'Elab_Spec; E068 := E068 + 1; Ada.Strings'Elab_Spec; E052 := E052 + 1; Ada.Strings.Maps'Elab_Spec; E054 := E054 + 1; Ada.Strings.Maps.Constants'Elab_Spec; E058 := E058 + 1; Interfaces.C'Elab_Spec; E078 := E078 + 1; System.Exceptions'Elab_Spec; E027 := E027 + 1; System.Object_Reader'Elab_Spec; E080 := E080 + 1; System.Dwarf_Lines'Elab_Spec; E047 := E047 + 1; System.Os_Lib'Elab_Body; E072 := E072 + 1; System.Soft_Links.Initialize'Elab_Body; E021 := E021 + 1; E013 := E013 + 1; System.Traceback.Symbolic'Elab_Body; E039 := E039 + 1; E008 := E008 + 1; Ada.Tags'Elab_Spec; Ada.Tags'Elab_Body; E110 := E110 + 1; Ada.Streams'Elab_Spec; E108 := E108 + 1; System.File_Control_Block'Elab_Spec; E122 := E122 + 1; System.Finalization_Root'Elab_Spec; E121 := E121 + 1; Ada.Finalization'Elab_Spec; E119 := E119 + 1; System.File_Io'Elab_Body; E118 := E118 + 1; Ada.Calendar'Elab_Spec; Ada.Calendar'Elab_Body; E006 := E006 + 1; Ada.Calendar.Delays'Elab_Body; E104 := E104 + 1; Ada.Text_Io'Elab_Spec; Ada.Text_Io'Elab_Body; E106 := E106 + 1; end adainit; procedure Ada_Main_Program; pragma Import (Ada, Ada_Main_Program, "_ada_planificador_ciclico"); function main (argc : Integer; argv : System.Address; envp : System.Address) return Integer is procedure Initialize (Addr : System.Address); pragma Import (C, Initialize, "__gnat_initialize"); procedure Finalize; pragma Import (C, Finalize, "__gnat_finalize"); SEH : aliased array (1 .. 2) of Integer; Ensure_Reference : aliased System.Address := Ada_Main_Program_Name'Address; pragma Volatile (Ensure_Reference); begin if gnat_argc = 0 then gnat_argc := argc; gnat_argv := argv; end if; gnat_envp := envp; Initialize (SEH'Address); adainit; Ada_Main_Program; adafinal; Finalize; return (gnat_exit_status); end; -- BEGIN Object file/option list -- Z:\Documents\Programacion Concurrente y de Tiempo Real\Tiempo Real\Practicas\P03_Planificador_Ciclico\obj\planificador_ciclico.o -- -LZ:\Documents\Programacion Concurrente y de Tiempo Real\Tiempo Real\Practicas\P03_Planificador_Ciclico\obj\ -- -LZ:\Documents\Programacion Concurrente y de Tiempo Real\Tiempo Real\Practicas\P03_Planificador_Ciclico\obj\ -- -LC:/gnat/2020/lib/gcc/x86_64-pc-mingw32/9.3.1/adalib/ -- -static -- -lgnat -- -Wl,--stack=0x2000000 -- END Object file/option list end ada_main;
38.949416
140
0.671229
4d9aa502438ccd4dcd8b84266800b00a2f63670d
4,105
ads
Ada
firehog/ncurses/Ada95/samples/sample-manifest.ads
KipodAfterFree/KAF-2019-FireHog
5f6ee3c3c3329459bc9daeabc1a16ff4619508d9
[ "MIT" ]
null
null
null
firehog/ncurses/Ada95/samples/sample-manifest.ads
KipodAfterFree/KAF-2019-FireHog
5f6ee3c3c3329459bc9daeabc1a16ff4619508d9
[ "MIT" ]
null
null
null
firehog/ncurses/Ada95/samples/sample-manifest.ads
KipodAfterFree/KAF-2019-FireHog
5f6ee3c3c3329459bc9daeabc1a16ff4619508d9
[ "MIT" ]
1
2019-12-26T10:18:16.000Z
2019-12-26T10:18:16.000Z
------------------------------------------------------------------------------ -- -- -- GNAT ncurses Binding Samples -- -- -- -- Sample.Manifest -- -- -- -- S P E C -- -- -- ------------------------------------------------------------------------------ -- 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 <[email protected]> 1996 -- Version Control -- $Revision: 1.7 $ -- Binding Version 00.93 ------------------------------------------------------------------------------ with Terminal_Interface.Curses; use Terminal_Interface.Curses; package Sample.Manifest is QUIT : constant User_Key_Code := User_Key_Code'First; SELECT_ITEM : constant User_Key_Code := QUIT + 1; FKEY_HELP : constant Label_Number := 1; HELP_CODE : constant Special_Key_Code := Key_F1; FKEY_EXPLAIN : constant Label_Number := 2; EXPLAIN_CODE : constant Special_Key_Code := Key_F2; FKEY_QUIT : constant Label_Number := 3; QUIT_CODE : constant Special_Key_Code := Key_F3; Menu_Marker : constant String := "=> "; Default_Colors : constant Redefinable_Color_Pair := 1; Menu_Fore_Color : constant Redefinable_Color_Pair := 2; Menu_Back_Color : constant Redefinable_Color_Pair := 3; Menu_Grey_Color : constant Redefinable_Color_Pair := 4; Form_Fore_Color : constant Redefinable_Color_Pair := 5; Form_Back_Color : constant Redefinable_Color_Pair := 6; Notepad_Color : constant Redefinable_Color_Pair := 7; Help_Color : constant Redefinable_Color_Pair := 8; Header_Color : constant Redefinable_Color_Pair := 9; end Sample.Manifest;
60.367647
78
0.491352
102aae4a91625021116f4dc40b25eda967b7ed8d
2,468
adb
Ada
electives/pw/lab/lista-1/ada/logger.adb
jerry-sky/academic-notebook
be2d350289441b99168ea40412891bc65b9cb431
[ "Unlicense" ]
4
2020-12-28T21:53:00.000Z
2022-03-22T19:24:47.000Z
electives/pw/lab/lista-1/ada/logger.adb
jerry-sky/academic-notebook
be2d350289441b99168ea40412891bc65b9cb431
[ "Unlicense" ]
3
2022-02-13T18:07:10.000Z
2022-02-13T18:16:07.000Z
electives/pw/lab/lista-1/ada/logger.adb
jerry-sky/academic-notebook
be2d350289441b99168ea40412891bc65b9cb431
[ "Unlicense" ]
4
2020-12-28T16:05:35.000Z
2022-03-08T16:20:00.000Z
package body Logger is task body LoggerReceiver is subtype RangeN is Natural range 1..n; subtype RangeNE is Natural range 0..(n-1); subtype RangeD is Natural range 1..d; subtype RangeK is Natural range 1..k; -- gather stats type NodeStats is array (RangeN, RangeK) of Boolean; type pNodeStats is access NodeStats; type MessageStats is array (RangeK, RangeN) of Boolean; type pMessageStats is access MessageStats; nodeSeen: pNodeStats := new NodeStats; messageVisited: pMessageStats := new MessageStats; exitTask: Boolean := False; begin loop select accept Log(message: string) do PrintBounded(message); end Log; or accept LogMessageInTransit(msg: Natural; node: Natural) do if msg in RangeK'Range and node in RangeNE'Range then nodeSeen(node+1, msg) := True; messageVisited(msg, node+1) := True; PrintBounded("message" & Natural'Image(msg) & " has arrived at node" & Natural'Image(node)); end if; end LogMessageInTransit; or accept Stop do PrintBounded(""); PrintBounded("Stats:"); for I in RangeK'Range loop PrintBounded("message" & Natural'Image(I) & " visited:"); for J in RangeN'Range loop if messageVisited(I, J) then PrintBounded(" node" & Natural'Image(J-1)); end if; end loop; end loop; PrintBounded("---"); for I in RangeN'Range loop PrintBounded("node" & Natural'Image(I-1) & " seen:"); for J in RangeK'Range loop if nodeSeen(I, J) then PrintBounded(" message" & Natural'Image(J)); end if; end loop; end loop; exitTask := True; end Stop; end select; if exitTask then exit; end if; end loop; end LoggerReceiver; end Logger;
38.5625
116
0.464749
dce6e853de5620f93ac24bdde85770ff7a81f742
6,025
adb
Ada
bb-runtimes/runtimes/ravenscar-full-stm32f3x4/gnat/s-wchstw.adb
JCGobbi/Nucleo-STM32F334R8
2a0b1b4b2664c92773703ac5e95dcb71979d051c
[ "BSD-3-Clause" ]
null
null
null
bb-runtimes/runtimes/ravenscar-full-stm32f3x4/gnat/s-wchstw.adb
JCGobbi/Nucleo-STM32F334R8
2a0b1b4b2664c92773703ac5e95dcb71979d051c
[ "BSD-3-Clause" ]
null
null
null
bb-runtimes/runtimes/ravenscar-full-stm32f3x4/gnat/s-wchstw.adb
JCGobbi/Nucleo-STM32F334R8
2a0b1b4b2664c92773703ac5e95dcb71979d051c
[ "BSD-3-Clause" ]
null
null
null
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- S Y S T E M . W C H _ S T W -- -- -- -- B o d y -- -- -- -- Copyright (C) 1992-2021, Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 3, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. -- -- -- -- -- -- -- -- -- -- -- -- You should have received a copy of the GNU General Public License and -- -- a copy of the GCC Runtime Library Exception along with this program; -- -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see -- -- <http://www.gnu.org/licenses/>. -- -- -- -- GNAT was originally developed by the GNAT team at New York University. -- -- Extensive contributions were provided by Ada Core Technologies Inc. -- -- -- ------------------------------------------------------------------------------ with System.WCh_Con; use System.WCh_Con; with System.WCh_Cnv; use System.WCh_Cnv; package body System.WCh_StW is ----------------------- -- Local Subprograms -- ----------------------- procedure Get_Next_Code (S : String; P : in out Natural; V : out UTF_32_Code; EM : WC_Encoding_Method); -- Scans next character starting at S(P) and returns its value in V. On -- exit P is updated past the last character read. Raises Constraint_Error -- if the string is not well formed. Raises Constraint_Error if the code -- value is greater than 16#7FFF_FFFF#. On entry P <= S'Last. ------------------- -- Get_Next_Code -- ------------------- procedure Get_Next_Code (S : String; P : in out Natural; V : out UTF_32_Code; EM : WC_Encoding_Method) is function In_Char return Character; -- Function to return a character, bumping P, raises Constraint_Error -- if P > S'Last on entry. function Get_UTF_32 is new Char_Sequence_To_UTF_32 (In_Char); -- Function to get next UFT_32 value ------------- -- In_Char -- ------------- function In_Char return Character is begin if P > S'Last then raise Constraint_Error with "badly formed wide character code"; else P := P + 1; return S (P - 1); end if; end In_Char; -- Start of processing for Get_Next_Code begin -- Check for wide character encoding case EM is when WCEM_Hex => if S (P) = ASCII.ESC then V := Get_UTF_32 (In_Char, EM); return; end if; when WCEM_Upper | WCEM_Shift_JIS | WCEM_EUC | WCEM_UTF8 => if S (P) >= Character'Val (16#80#) then V := Get_UTF_32 (In_Char, EM); return; end if; when WCEM_Brackets => if P + 2 <= S'Last and then S (P) = '[' and then S (P + 1) = '"' and then S (P + 2) /= '"' then V := Get_UTF_32 (In_Char, EM); return; end if; end case; -- If it is not a wide character code, just get it V := Character'Pos (S (P)); P := P + 1; end Get_Next_Code; --------------------------- -- String_To_Wide_String -- --------------------------- procedure String_To_Wide_String (S : String; R : out Wide_String; L : out Natural; EM : System.WCh_Con.WC_Encoding_Method) is SP : Natural; V : UTF_32_Code; begin pragma Assert (S'First = 1); SP := S'First; L := 0; while SP <= S'Last loop Get_Next_Code (S, SP, V, EM); if V > 16#FFFF# then raise Constraint_Error with "out of range value for wide character"; end if; L := L + 1; R (L) := Wide_Character'Val (V); end loop; end String_To_Wide_String; -------------------------------- -- String_To_Wide_Wide_String -- -------------------------------- procedure String_To_Wide_Wide_String (S : String; R : out Wide_Wide_String; L : out Natural; EM : System.WCh_Con.WC_Encoding_Method) is pragma Assert (S'First = 1); SP : Natural; V : UTF_32_Code; begin SP := S'First; L := 0; while SP <= S'Last loop Get_Next_Code (S, SP, V, EM); L := L + 1; R (L) := Wide_Wide_Character'Val (V); end loop; end String_To_Wide_Wide_String; end System.WCh_StW;
34.626437
78
0.423402
0bc7d2d0e4e163610b09cda0e4cb9f65ce83bc4b
582
ads
Ada
tests/tk-image-bitmap-test_data.ads
thindil/tashy2
43fcbadb33c0062b2c8d6138a8238441dec5fd80
[ "Apache-2.0" ]
2
2020-12-09T07:27:07.000Z
2021-10-19T13:31:54.000Z
tests/tk-image-bitmap-test_data.ads
thindil/tashy2
43fcbadb33c0062b2c8d6138a8238441dec5fd80
[ "Apache-2.0" ]
null
null
null
tests/tk-image-bitmap-test_data.ads
thindil/tashy2
43fcbadb33c0062b2c8d6138a8238441dec5fd80
[ "Apache-2.0" ]
null
null
null
-- This package is intended to set up and tear down the test environment. -- Once created by GNATtest, this package will never be overwritten -- automatically. Contents of this package can be modified in any way -- except for sections surrounded by a 'read only' marker. with AUnit.Test_Fixtures; package Tk.Image.Bitmap.Test_Data is -- begin read only type Test is new AUnit.Test_Fixtures.Test_Fixture -- end read only with null record; procedure Set_Up(Gnattest_T: in out Test); procedure Tear_Down(Gnattest_T: in out Test); end Tk.Image.Bitmap.Test_Data;
30.631579
75
0.756014
4db87544617346c552c218a1269ba74e6f381777
1,089
ads
Ada
resources/scripts/crawl/commoncrawl.ads
marcostolosa/Amass
7a48ddae82eeac76fd6447de908f6b27002eace7
[ "Apache-2.0" ]
1,823
2017-09-28T19:58:31.000Z
2022-03-31T21:35:45.000Z
resources/scripts/crawl/commoncrawl.ads
marcostolosa/Amass
7a48ddae82eeac76fd6447de908f6b27002eace7
[ "Apache-2.0" ]
66
2018-03-04T19:21:05.000Z
2021-12-11T14:32:34.000Z
resources/scripts/crawl/commoncrawl.ads
marcostolosa/Amass
7a48ddae82eeac76fd6447de908f6b27002eace7
[ "Apache-2.0" ]
214
2017-09-28T19:58:33.000Z
2022-02-16T00:54:13.000Z
-- Copyright 2021 Jeff Foley. All rights reserved. -- Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file. local json = require("json") name = "CommonCrawl" type = "crawl" local urls = {} function start() set_rate_limit(10) end function vertical(ctx, domain) if (urls == nil or #urls == 0) then get_urls(ctx) end for _, url in pairs(urls) do scrape(ctx, {['url']=build_url(url, domain)}) end end function build_url(url, domain) return url .. "?url=*." .. domain .. "&output=json&fl=url" end function get_urls(ctx) local resp, err = request(ctx, {['url']="https://index.commoncrawl.org/collinfo.json"}) if (err ~= nil and err ~= "") then log(ctx, "get_urls request to service failed: " .. err) return end local data = json.decode(resp) if (data == nil or #data == 0) then return end for _, u in pairs(data) do local url = u['cdx-api'] if (url ~= nil and url ~= "") then table.insert(urls, url) end end end
22.6875
97
0.598714
0b7b510144963759fa2c2c79a2110e689d43929a
794
adb
Ada
contrib/gnu/gdb/dist/gdb/testsuite/gdb.ada/packed_array_assign/tester.adb
TheSledgeHammer/2.11BSD
fe61f0b9aaa273783cd027c7b5ec77e95ead2153
[ "BSD-3-Clause" ]
3
2021-05-04T17:09:06.000Z
2021-10-04T07:19:26.000Z
contrib/gnu/gdb/dist/gdb/testsuite/gdb.ada/packed_array_assign/tester.adb
TheSledgeHammer/2.11BSD
fe61f0b9aaa273783cd027c7b5ec77e95ead2153
[ "BSD-3-Clause" ]
null
null
null
contrib/gnu/gdb/dist/gdb/testsuite/gdb.ada/packed_array_assign/tester.adb
TheSledgeHammer/2.11BSD
fe61f0b9aaa273783cd027c7b5ec77e95ead2153
[ "BSD-3-Clause" ]
null
null
null
-- Copyright 2018-2020 Free Software Foundation, Inc. -- -- This program is free software; you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation; either version 3 of the License, or -- (at your option) any later version. -- -- This program is distributed in the hope that it will be useful, -- but WITHOUT ANY WARRANTY; without even the implied warranty of -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -- GNU General Public License for more details. -- -- You should have received a copy of the GNU General Public License -- along with this program. If not, see <http://www.gnu.org/licenses/>. with Aggregates; procedure Tester is begin Aggregates.Run_Test; end Tester;
37.809524
73
0.744332
1207b68fc505963d61049c843403f99eff76d3a0
4,109
adb
Ada
src/fltk-widgets-menus-menu_buttons.adb
micahwelf/FLTK-Ada
83e0c58ea98e5ede2cbbb158b42eae44196c3ba7
[ "Unlicense" ]
1
2020-12-18T15:20:13.000Z
2020-12-18T15:20:13.000Z
src/fltk-widgets-menus-menu_buttons.adb
micahwelf/FLTK-Ada
83e0c58ea98e5ede2cbbb158b42eae44196c3ba7
[ "Unlicense" ]
null
null
null
src/fltk-widgets-menus-menu_buttons.adb
micahwelf/FLTK-Ada
83e0c58ea98e5ede2cbbb158b42eae44196c3ba7
[ "Unlicense" ]
null
null
null
with Interfaces.C, System; use type System.Address; package body FLTK.Widgets.Menus.Menu_Buttons is procedure menu_button_set_draw_hook (W, D : in System.Address); pragma Import (C, menu_button_set_draw_hook, "menu_button_set_draw_hook"); pragma Inline (menu_button_set_draw_hook); procedure menu_button_set_handle_hook (W, H : in System.Address); pragma Import (C, menu_button_set_handle_hook, "menu_button_set_handle_hook"); pragma Inline (menu_button_set_handle_hook); function new_fl_menu_button (X, Y, W, H : in Interfaces.C.int; Text : in Interfaces.C.char_array) return System.Address; pragma Import (C, new_fl_menu_button, "new_fl_menu_button"); pragma Inline (new_fl_menu_button); procedure free_fl_menu_button (M : in System.Address); pragma Import (C, free_fl_menu_button, "free_fl_menu_button"); pragma Inline (free_fl_menu_button); procedure fl_menu_button_type (M : in System.Address; T : in Interfaces.C.unsigned); pragma Import (C, fl_menu_button_type, "fl_menu_button_type"); pragma Inline (fl_menu_button_type); function fl_menu_button_popup (M : in System.Address) return System.Address; pragma Import (C, fl_menu_button_popup, "fl_menu_button_popup"); pragma Inline (fl_menu_button_popup); procedure fl_menu_button_draw (W : in System.Address); pragma Import (C, fl_menu_button_draw, "fl_menu_button_draw"); pragma Inline (fl_menu_button_draw); function fl_menu_button_handle (W : in System.Address; E : in Interfaces.C.int) return Interfaces.C.int; pragma Import (C, fl_menu_button_handle, "fl_menu_button_handle"); pragma Inline (fl_menu_button_handle); procedure Finalize (This : in out Menu_Button) is begin if This.Void_Ptr /= System.Null_Address and then This in Menu_Button'Class then if This.Needs_Dealloc then free_fl_menu_button (This.Void_Ptr); end if; This.Void_Ptr := System.Null_Address; end if; Finalize (Menu (This)); end Finalize; package body Forge is function Create (X, Y, W, H : in Integer; Text : in String) return Menu_Button is begin return This : Menu_Button do This.Void_Ptr := new_fl_menu_button (Interfaces.C.int (X), Interfaces.C.int (Y), Interfaces.C.int (W), Interfaces.C.int (H), Interfaces.C.To_C (Text)); fl_widget_set_user_data (This.Void_Ptr, Widget_Convert.To_Address (This'Unchecked_Access)); menu_button_set_draw_hook (This.Void_Ptr, Draw_Hook'Address); menu_button_set_handle_hook (This.Void_Ptr, Handle_Hook'Address); end return; end Create; end Forge; procedure Set_Popup_Kind (This : in out Menu_Button; Pop : in Popup_Buttons) is begin fl_menu_button_type (This.Void_Ptr, Popup_Buttons'Pos (Pop)); end Set_Popup_Kind; function Popup (This : in out Menu_Button) return FLTK.Menu_Items.Menu_Item is begin return Item : FLTK.Menu_Items.Menu_Item do Wrapper (Item).Void_Ptr := fl_menu_button_popup (This.Void_Ptr); end return; end Popup; procedure Draw (This : in out Menu_Button) is begin fl_menu_button_draw (This.Void_Ptr); end Draw; function Handle (This : in out Menu_Button; Event : in Event_Kind) return Event_Outcome is begin return Event_Outcome'Val (fl_menu_button_handle (This.Void_Ptr, Event_Kind'Pos (Event))); end Handle; end FLTK.Widgets.Menus.Menu_Buttons;
26.171975
82
0.611828
c53b61e112f9ca6d0d9ffef803b5ea73a410fe9f
3,183
ads
Ada
src/util/gnatcoll-opt_parse-extension.ads
HeisenbugLtd/spat
c3ec2b7675a12bdbe5378862b1ec6b17805d5a6c
[ "WTFPL" ]
20
2020-05-17T18:55:16.000Z
2021-05-26T14:53:53.000Z
src/util/gnatcoll-opt_parse-extension.ads
selroc/spat
c3ec2b7675a12bdbe5378862b1ec6b17805d5a6c
[ "WTFPL" ]
33
2020-04-03T13:08:50.000Z
2020-10-17T04:26:34.000Z
src/util/gnatcoll-opt_parse-extension.ads
selroc/spat
c3ec2b7675a12bdbe5378862b1ec6b17805d5a6c
[ "WTFPL" ]
4
2020-06-12T12:17:27.000Z
2021-09-09T14:19:31.000Z
------------------------------------------------------------------------------ -- G N A T C O L L -- -- -- -- Copyright (C) 2009-2019, AdaCore -- -- Copyright (C) 2020, Heisenbug Ltd. -- -- -- -- This library is free software; you can redistribute it and/or modify it -- -- under terms of the GNU General Public License as published by the Free -- -- Software Foundation; either version 3, or (at your option) any later -- -- version. This library is distributed in the hope that it will be useful, -- -- but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHAN- -- -- TABILITY or FITNESS FOR A PARTICULAR PURPOSE. -- -- -- -- As a special exception under Section 7 of GPL version 3, you are granted -- -- additional permissions described in the GCC Runtime Library Exception, -- -- version 3.1, as published by the Free Software Foundation. -- -- -- -- You should have received a copy of the GNU General Public License and -- -- a copy of the GCC Runtime Library Exception along with this program; -- -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see -- -- <http://www.gnu.org/licenses/>. -- -- -- ------------------------------------------------------------------------------ package GNATCOLL.Opt_Parse.Extension is -- Option parser which accepts empty arguments. generic Parser : in out Argument_Parser; -- Argument_Parser owning this argument. Short : String := ""; -- Short form for this flag. Should start with one dash and be followed -- by one or two alphanumeric characters. Long : String; -- Long form for this flag. Should start with two dashes. Help : String := ""; -- Help string for the argument. type Arg_Type is private; -- Type of the option. with function Convert (Arg : String) return Arg_Type is <>; -- Conversion function to convert from a raw string argument to the -- argument type. Default_Val : Arg_Type; -- Default value if the option is not passed. Enabled : Boolean := True; -- Whether to add this argument parser package Parse_Option_With_Default is function Get (Args : Parsed_Arguments := No_Parsed_Arguments) return Arg_Type; end Parse_Option_With_Default; -- Parse a regular option. A regular option is of the form "--option val", -- or "--option=val", or "-O val", or "-Oval". If option is not passed, -- takes the default value. If no "val" is given for the option, takes the -- Default_If_Empty value. end GNATCOLL.Opt_Parse.Extension;
48.969231
78
0.513981
0b10a638a03397681e7b6e4fc43095ecbf015621
14,005
adb
Ada
Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/a-suenco.adb
djamal2727/Main-Bearing-Analytical-Model
2f00c2219c71be0175c6f4f8f1d4cca231d97096
[ "Apache-2.0" ]
null
null
null
Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/a-suenco.adb
djamal2727/Main-Bearing-Analytical-Model
2f00c2219c71be0175c6f4f8f1d4cca231d97096
[ "Apache-2.0" ]
null
null
null
Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/a-suenco.adb
djamal2727/Main-Bearing-Analytical-Model
2f00c2219c71be0175c6f4f8f1d4cca231d97096
[ "Apache-2.0" ]
null
null
null
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ADA.STRINGS.UTF_ENCODING.CONVERSIONS -- -- -- -- B o d y -- -- -- -- Copyright (C) 2010-2020, Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 3, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. -- -- -- -- As a special exception under Section 7 of GPL version 3, you are granted -- -- additional permissions described in the GCC Runtime Library Exception, -- -- version 3.1, as published by the Free Software Foundation. -- -- -- -- You should have received a copy of the GNU General Public License and -- -- a copy of the GCC Runtime Library Exception along with this program; -- -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see -- -- <http://www.gnu.org/licenses/>. -- -- -- -- GNAT was originally developed by the GNAT team at New York University. -- -- Extensive contributions were provided by Ada Core Technologies Inc. -- -- -- ------------------------------------------------------------------------------ package body Ada.Strings.UTF_Encoding.Conversions is use Interfaces; -- Convert from UTF-8/UTF-16BE/LE to UTF-8/UTF-16BE/LE function Convert (Item : UTF_String; Input_Scheme : Encoding_Scheme; Output_Scheme : Encoding_Scheme; Output_BOM : Boolean := False) return UTF_String is begin -- Nothing to do if identical schemes, but for UTF_8 we need to -- handle overlong encodings, so need to do the full conversion. if Input_Scheme = Output_Scheme and then Input_Scheme /= UTF_8 then return Item; -- For remaining cases, one or other of the operands is UTF-16BE/LE -- encoded, or we have the UTF-8 to UTF-8 case where we must handle -- overlong encodings. In all cases, go through UTF-16 intermediate. else return Convert (UTF_16_Wide_String'(Convert (Item, Input_Scheme)), Output_Scheme, Output_BOM); end if; end Convert; -- Convert from UTF-8/UTF-16BE/LE to UTF-16 function Convert (Item : UTF_String; Input_Scheme : Encoding_Scheme; Output_BOM : Boolean := False) return UTF_16_Wide_String is begin if Input_Scheme = UTF_8 then return Convert (Item, Output_BOM); else return To_UTF_16 (Item, Input_Scheme, Output_BOM); end if; end Convert; -- Convert from UTF-8 to UTF-16 function Convert (Item : UTF_8_String; Output_BOM : Boolean := False) return UTF_16_Wide_String is Result : UTF_16_Wide_String (1 .. Item'Length + 1); -- Maximum length of result, including possible BOM Len : Natural := 0; -- Number of characters stored so far in Result Iptr : Natural; -- Next character to process in Item C : Unsigned_8; -- Input UTF-8 code R : Unsigned_16; -- Output UTF-16 code procedure Get_Continuation; -- Reads a continuation byte of the form 10xxxxxx, shifts R left by 6 -- bits, and or's in the xxxxxx to the low order 6 bits. On return Ptr -- is incremented. Raises exception if continuation byte does not exist -- or is invalid. ---------------------- -- Get_Continuation -- ---------------------- procedure Get_Continuation is begin if Iptr > Item'Last then Raise_Encoding_Error (Iptr - 1); else C := To_Unsigned_8 (Item (Iptr)); Iptr := Iptr + 1; if C < 2#10_000000# or else C > 2#10_111111# then Raise_Encoding_Error (Iptr - 1); else R := Shift_Left (R, 6) or Unsigned_16 (C and 2#00_111111#); end if; end if; end Get_Continuation; -- Start of processing for Convert begin -- Output BOM if required if Output_BOM then Len := Len + 1; Result (Len) := BOM_16 (1); end if; -- Skip OK BOM Iptr := Item'First; if Item'Length >= 3 and then Item (Iptr .. Iptr + 2) = BOM_8 then Iptr := Iptr + 3; -- Error if bad BOM elsif Item'Length >= 2 and then (Item (Iptr .. Iptr + 1) = BOM_16BE or else Item (Iptr .. Iptr + 1) = BOM_16LE) then Raise_Encoding_Error (Iptr); -- No BOM present else Iptr := Item'First; end if; while Iptr <= Item'Last loop C := To_Unsigned_8 (Item (Iptr)); Iptr := Iptr + 1; -- Codes in the range 16#00# .. 16#7F# -- UTF-8: 0xxxxxxx -- UTF-16: 00000000_0xxxxxxx if C <= 16#7F# then Len := Len + 1; Result (Len) := Wide_Character'Val (C); -- No initial code can be of the form 10xxxxxx. Such codes are used -- only for continuations. elsif C <= 2#10_111111# then Raise_Encoding_Error (Iptr - 1); -- Codes in the range 16#80# .. 16#7FF# -- UTF-8: 110yyyxx 10xxxxxx -- UTF-16: 00000yyy_xxxxxxxx elsif C <= 2#110_11111# then R := Unsigned_16 (C and 2#000_11111#); Get_Continuation; Len := Len + 1; Result (Len) := Wide_Character'Val (R); -- Codes in the range 16#800# .. 16#D7FF or 16#DF01# .. 16#FFFF# -- UTF-8: 1110yyyy 10yyyyxx 10xxxxxx -- UTF-16: yyyyyyyy_xxxxxxxx elsif C <= 2#1110_1111# then R := Unsigned_16 (C and 2#0000_1111#); Get_Continuation; Get_Continuation; Len := Len + 1; Result (Len) := Wide_Character'Val (R); -- Make sure that we don't have a result in the forbidden range -- reserved for UTF-16 surrogate characters. if R in 16#D800# .. 16#DF00# then Raise_Encoding_Error (Iptr - 3); end if; -- Codes in the range 16#10000# .. 16#10FFFF# -- UTF-8: 11110zzz 10zzyyyy 10yyyyxx 10xxxxxx -- UTF-16: 110110zz_zzyyyyyy 110111yy_xxxxxxxx -- Note: zzzz in the output is input zzzzz - 1 elsif C <= 2#11110_111# then R := Unsigned_16 (C and 2#00000_111#); Get_Continuation; -- R now has zzzzzyyyy -- At this stage, we check for the case where we have an overlong -- encoding, and the encoded value in fact lies in the single word -- range (16#800# .. 16#D7FF or 16#DF01# .. 16#FFFF#). This means -- that the result fits in a single result word. if R <= 2#1111# then Get_Continuation; Get_Continuation; -- Make sure we are not in the forbidden surrogate range if R in 16#D800# .. 16#DF00# then Raise_Encoding_Error (Iptr - 3); end if; -- Otherwise output a single UTF-16 value Len := Len + 1; Result (Len) := Wide_Character'Val (R); -- Here for normal case (code value > 16#FFFF and zzzzz non-zero) else -- Subtract 1 from input zzzzz value to get output zzzz value R := R - 2#0000_1_0000#; -- R now has zzzzyyyy (zzzz minus one for the output) Get_Continuation; -- R now has zzzzyy_yyyyyyxx Len := Len + 1; Result (Len) := Wide_Character'Val (2#110110_00_0000_0000# or Shift_Right (R, 4)); R := R and 2#1111#; Get_Continuation; Len := Len + 1; Result (Len) := Wide_Character'Val (2#110111_00_0000_0000# or R); end if; -- Any other code is an error else Raise_Encoding_Error (Iptr - 1); end if; end loop; return Result (1 .. Len); end Convert; -- Convert from UTF-16 to UTF-8/UTF-16-BE/LE function Convert (Item : UTF_16_Wide_String; Output_Scheme : Encoding_Scheme; Output_BOM : Boolean := False) return UTF_String is begin if Output_Scheme = UTF_8 then return Convert (Item, Output_BOM); else return From_UTF_16 (Item, Output_Scheme, Output_BOM); end if; end Convert; -- Convert from UTF-16 to UTF-8 function Convert (Item : UTF_16_Wide_String; Output_BOM : Boolean := False) return UTF_8_String is Result : UTF_8_String (1 .. 3 * Item'Length + 3); -- Worst case is 3 output codes for each input code + BOM space Len : Natural; -- Number of result codes stored Iptr : Natural; -- Pointer to next input character C1, C2 : Unsigned_16; zzzzz : Unsigned_16; yyyyyyyy : Unsigned_16; xxxxxxxx : Unsigned_16; -- Components of double length case begin Iptr := Item'First; -- Skip BOM at start of input if Item'Length > 0 and then Item (Iptr) = BOM_16 (1) then Iptr := Iptr + 1; end if; -- Generate output BOM if required if Output_BOM then Result (1 .. 3) := BOM_8; Len := 3; else Len := 0; end if; -- Loop through input while Iptr <= Item'Last loop C1 := To_Unsigned_16 (Item (Iptr)); Iptr := Iptr + 1; -- Codes in the range 16#0000# - 16#007F# -- UTF-16: 000000000xxxxxxx -- UTF-8: 0xxxxxxx if C1 <= 16#007F# then Result (Len + 1) := Character'Val (C1); Len := Len + 1; -- Codes in the range 16#80# - 16#7FF# -- UTF-16: 00000yyyxxxxxxxx -- UTF-8: 110yyyxx 10xxxxxx elsif C1 <= 16#07FF# then Result (Len + 1) := Character'Val (2#110_00000# or Shift_Right (C1, 6)); Result (Len + 2) := Character'Val (2#10_000000# or (C1 and 2#00_111111#)); Len := Len + 2; -- Codes in the range 16#800# - 16#D7FF# or 16#E000# - 16#FFFF# -- UTF-16: yyyyyyyyxxxxxxxx -- UTF-8: 1110yyyy 10yyyyxx 10xxxxxx elsif C1 <= 16#D7FF# or else C1 >= 16#E000# then Result (Len + 1) := Character'Val (2#1110_0000# or Shift_Right (C1, 12)); Result (Len + 2) := Character'Val (2#10_000000# or (Shift_Right (C1, 6) and 2#00_111111#)); Result (Len + 3) := Character'Val (2#10_000000# or (C1 and 2#00_111111#)); Len := Len + 3; -- Codes in the range 16#10000# - 16#10FFFF# -- UTF-16: 110110zzzzyyyyyy 110111yyxxxxxxxx -- UTF-8: 11110zzz 10zzyyyy 10yyyyxx 10xxxxxx -- Note: zzzzz in the output is input zzzz + 1 elsif C1 <= 2#110110_11_11111111# then if Iptr > Item'Last then Raise_Encoding_Error (Iptr - 1); else C2 := To_Unsigned_16 (Item (Iptr)); Iptr := Iptr + 1; end if; if (C2 and 2#111111_00_00000000#) /= 2#110111_00_00000000# then Raise_Encoding_Error (Iptr - 1); end if; zzzzz := (Shift_Right (C1, 6) and 2#1111#) + 1; yyyyyyyy := ((Shift_Left (C1, 2) and 2#111111_00#) or (Shift_Right (C2, 8) and 2#000000_11#)); xxxxxxxx := C2 and 2#11111111#; Result (Len + 1) := Character'Val (2#11110_000# or (Shift_Right (zzzzz, 2))); Result (Len + 2) := Character'Val (2#10_000000# or Shift_Left (zzzzz and 2#11#, 4) or Shift_Right (yyyyyyyy, 4)); Result (Len + 3) := Character'Val (2#10_000000# or Shift_Left (yyyyyyyy and 2#1111#, 2) or Shift_Right (xxxxxxxx, 6)); Result (Len + 4) := Character'Val (2#10_000000# or (xxxxxxxx and 2#00_111111#)); Len := Len + 4; -- Error if input in 16#DC00# - 16#DFFF# (2nd surrogate with no 1st) else Raise_Encoding_Error (Iptr - 2); end if; end loop; return Result (1 .. Len); end Convert; end Ada.Strings.UTF_Encoding.Conversions;
33.424821
79
0.495252
df7dfc10290716a46b38ebf969e66241c97b797e
1,136
adb
Ada
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/sso/q3.adb
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
7
2020-05-02T17:34:05.000Z
2021-10-17T10:15:18.000Z
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/sso/q3.adb
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
null
null
null
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/sso/q3.adb
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
2
2020-07-27T00:22:36.000Z
2021-04-01T09:41:02.000Z
-- { dg-do run } with Init3; use Init3; with Text_IO; use Text_IO; with Dump; procedure Q3 is A1 : R1 := My_R1; B1 : R1 := My_R1; A2 : R2 := My_R2; B2 : R2 := My_R2; begin Put ("A1 :"); Dump (A1'Address, R1'Max_Size_In_Storage_Elements); New_Line; -- { dg-output "A1 : e2 59 d1 48 b4 aa d9 bb.*\n" } Put ("B1 :"); Dump (B1'Address, R1'Max_Size_In_Storage_Elements); New_Line; -- { dg-output "B1 : e2 59 d1 48 b4 aa d9 bb.*\n" } Put ("A2 :"); Dump (A2'Address, R2'Max_Size_In_Storage_Elements); New_Line; -- { dg-output "A2 : 84 8d 15 9e 15 5b 35 df.*\n" } Put ("B2 :"); Dump (B2'Address, R2'Max_Size_In_Storage_Elements); New_Line; -- { dg-output "B2 : 84 8d 15 9e 15 5b 35 df.*\n" } if A1.S1 /= B1.S1 then raise Program_Error; end if; if A1.S1 /= 2 then raise Program_Error; end if; if A2.S1 /= B2.S1 then raise Program_Error; end if; if A2.S1 /= 2 then raise Program_Error; end if; if A1.I /= B1.I or A1.N.C1 /= B1.N.C1 then raise Program_Error; end if; if A2.I /= B2.I or A2.N.C1 /= B2.N.C1 then raise Program_Error; end if; end;
18.622951
53
0.596831
3987416215573d0eec3e89a8b03ff534878b3bb5
3,422
ads
Ada
ada-streams-stream_io.ads
mgrojo/adalib
dc1355a5b65c2843e702ac76252addb2caf3c56b
[ "BSD-3-Clause" ]
15
2018-07-08T07:09:19.000Z
2021-11-21T09:58:55.000Z
ada-streams-stream_io.ads
mgrojo/adalib
dc1355a5b65c2843e702ac76252addb2caf3c56b
[ "BSD-3-Clause" ]
4
2019-11-17T20:04:33.000Z
2021-08-29T21:24:55.000Z
ada-streams-stream_io.ads
mgrojo/adalib
dc1355a5b65c2843e702ac76252addb2caf3c56b
[ "BSD-3-Clause" ]
3
2020-04-23T11:17:11.000Z
2021-08-29T19:31:09.000Z
-- Standard Ada library specification -- Copyright (c) 2003-2018 Maxim Reznik <[email protected]> -- Copyright (c) 2004-2016 AXE Consultants -- Copyright (c) 2004, 2005, 2006 Ada-Europe -- Copyright (c) 2000 The MITRE Corporation, Inc. -- Copyright (c) 1992, 1993, 1994, 1995 Intermetrics, Inc. -- SPDX-License-Identifier: BSD-3-Clause and LicenseRef-AdaReferenceManual --------------------------------------------------------------------------- with Ada.IO_Exceptions; package Ada.Streams.Stream_IO is pragma Preelaborate(Stream_IO); type Stream_Access is access all Root_Stream_Type'Class; type File_Type is limited private; type File_Mode is (In_File, Out_File, Append_File); type Count is range 0 .. implementation_defined; subtype Positive_Count is Count range 1 .. Count'Last; -- Index into file, in stream elements. procedure Create (File : in out File_Type; Mode : in File_Mode := Out_File; Name : in String := ""; Form : in String := ""); procedure Open (File : in out File_Type; Mode : in File_Mode; Name : in String; Form : in String := ""); procedure Close (File : in out File_Type); procedure Delete (File : in out File_Type); procedure Reset (File : in out File_Type; Mode : in File_Mode); procedure Reset (File : in out File_Type); function Mode (File : in File_Type) return File_Mode; function Name (File : in File_Type) return String; function Form (File : in File_Type) return String; function Is_Open (File : in File_Type) return Boolean; function End_Of_File (File : in File_Type) return Boolean; function Stream (File : in File_Type) return Stream_Access; -- Return stream access for use with T'Input and T'Output -- Read array of stream elements from file procedure Read (File : in File_Type; Item : out Stream_Element_Array; Last : out Stream_Element_Offset; From : in Positive_Count); procedure Read (File : in File_Type; Item : out Stream_Element_Array; Last : out Stream_Element_Offset); -- Write array of stream elements into file procedure Write (File : in File_Type; Item : in Stream_Element_Array; To : in Positive_Count); procedure Write (File : in File_Type; Item : in Stream_Element_Array); -- Operations on position within file procedure Set_Index(File : in File_Type; To : in Positive_Count); function Index(File : in File_Type) return Positive_Count; function Size (File : in File_Type) return Count; procedure Set_Mode(File : in out File_Type; Mode : in File_Mode); procedure Flush(File : in out File_Type); -- exceptions Status_Error : exception renames IO_Exceptions.Status_Error; Mode_Error : exception renames IO_Exceptions.Mode_Error; Name_Error : exception renames IO_Exceptions.Name_Error; Use_Error : exception renames IO_Exceptions.Use_Error; Device_Error : exception renames IO_Exceptions.Device_Error; End_Error : exception renames IO_Exceptions.End_Error; Data_Error : exception renames IO_Exceptions.Data_Error; private pragma Import (Ada, File_Type); end Ada.Streams.Stream_IO;
36.021053
75
0.648451
0b4d91d77611ba13cce50c9c87f816644b90327f
1,005
ads
Ada
src/montecarlo.ads
Hamster-Furtif/JeremyPlusPlus
fc8ba0cfe0ef2bd1dfb94b6720592649dfb307e2
[ "MIT" ]
null
null
null
src/montecarlo.ads
Hamster-Furtif/JeremyPlusPlus
fc8ba0cfe0ef2bd1dfb94b6720592649dfb307e2
[ "MIT" ]
null
null
null
src/montecarlo.ads
Hamster-Furtif/JeremyPlusPlus
fc8ba0cfe0ef2bd1dfb94b6720592649dfb307e2
[ "MIT" ]
null
null
null
with utils, ada.text_io, ada.Float_Text_IO, ada.Integer_Text_IO; use utils, ada.text_io, ada.Float_Text_IO, ada.Integer_Text_IO; package montecarlo is --E/ cards : T_set --E/S/ sample : T_set --Necessite : Table ne contient pas plus de 5 cartes --Entraine : Genere 50 000 jeux en completant le jeu existant (donne par -- la main et les cartes communes revelees) avec des cartes aleatoires function initSample(sample : in out T_Set; hand : in T_set; table : in T_set) return Integer; --E/ hand, table : T_set --Necessite : hand contient 2 cartes et table contient 1 a 4 cartes --S/ chance de gain : float --Entraine : Calcule la porbabilte de gagner avec la methode de Monte Carlo function chancesOfWinning(hand : T_set; table : T_set) return float; --E/ max : integer --Necessite : none --S/ card : T_carte --Entraine : Renvoie une carte aleatoire function randomCard(max : in Integer) return T_card; end montecarlo;
35.892857
96
0.688557
4dbc69b9d55e3453da17c93f16dca782a8251a1f
1,132
ads
Ada
src/fsmaker-target.ads
Fabien-Chouteau/fsmaker
3d96522852077c3865bb21ad3705f570733f1d7a
[ "MIT" ]
null
null
null
src/fsmaker-target.ads
Fabien-Chouteau/fsmaker
3d96522852077c3865bb21ad3705f570733f1d7a
[ "MIT" ]
null
null
null
src/fsmaker-target.ads
Fabien-Chouteau/fsmaker
3d96522852077c3865bb21ad3705f570733f1d7a
[ "MIT" ]
null
null
null
with GNAT.OS_Lib; with FSmaker.Source; with FSmaker.Sink; package FSmaker.Target is type Filesystem is interface; type Any_Filesystem_Ref is access all Filesystem'Class; procedure Format (This : in out Filesystem; FD : GNAT.OS_Lib.File_Descriptor; Size : Natural) is abstract; procedure Mount (This : in out Filesystem; FD : GNAT.OS_Lib.File_Descriptor) is abstract; procedure Make_Dir (This : in out Filesystem; Path : Target_Path) is abstract; function Tree (This : in out Filesystem; Path : Target_Path) return Directory_Tree is abstract; procedure Import (This : in out Filesystem; Path : Target_Path; Src : in out Source.Instance) is abstract; procedure Cat (This : in out Filesystem; Path : Target_Path; Dst : in out FSmaker.Sink.Class) is abstract; end FSmaker.Target;
28.3
63
0.536219
23a1c58cccdea9f8e1bab0ca9200818ea01dea84
10,688
ads
Ada
ada_gui-gnoga-server-database.ads
jrcarter/Ada_GUI
65a829c55dec91fd48a0b72f88d76137768bf4fb
[ "BSD-3-Clause" ]
19
2018-03-18T18:07:14.000Z
2022-03-30T03:10:12.000Z
ada_gui-gnoga-server-database.ads
jrcarter/Ada_GUI
65a829c55dec91fd48a0b72f88d76137768bf4fb
[ "BSD-3-Clause" ]
4
2021-08-23T12:52:06.000Z
2022-03-31T10:48:43.000Z
ada_gui-gnoga-server-database.ads
jrcarter/Ada_GUI
65a829c55dec91fd48a0b72f88d76137768bf4fb
[ "BSD-3-Clause" ]
null
null
null
-- Ada_GUI implementation based on Gnoga. Adapted 2021 -- -- -- GNOGA - The GNU Omnificent GUI for Ada -- -- -- -- G N O G A . S E R V E R . D A T A B A S E -- -- -- -- S p e c -- -- -- -- -- -- Copyright (C) 2014 David Botton -- -- -- -- This library is free software; you can redistribute it and/or modify -- -- it under terms of the GNU General Public License as published by the -- -- Free Software Foundation; either version 3, or (at your option) any -- -- later version. This library is distributed in the hope that it will be -- -- useful, but WITHOUT ANY WARRANTY; without even the implied warranty of -- -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -- -- -- -- As a special exception under Section 7 of GPL version 3, you are -- -- granted additional permissions described in the GCC Runtime Library -- -- Exception, version 3.1, as published by the Free Software Foundation. -- -- -- -- You should have received a copy of the GNU General Public License and -- -- a copy of the GCC Runtime Library Exception along with this program; -- -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see -- -- <http://www.gnu.org/licenses/>. -- -- -- -- As a special exception, if other files instantiate generics from this -- -- unit, or you link this unit with other files to produce an executable, -- -- this unit does not by itself cause the resulting executable to be -- -- covered by the GNU General Public License. This exception does not -- -- however invalidate any other reasons why the executable file might be -- -- covered by the GNU Public License. -- -- -- -- For more information please go to http://www.gnoga.com -- ------------------------------------------------------------------------------ -- Abstract class for database access. Use one of the specific implementations -- for MySQL, SQLLite, etc. with Ada.Strings.Unbounded; with Ada.Containers.Indefinite_Vectors; package Ada_GUI.Gnoga.Server.Database is type Connection is limited interface; type Connection_Access is access all Connection'Class; procedure Disconnect (C : in out Connection) is abstract; -- Disconnect from server procedure Execute_Query (C : in out Connection; SQL : String) is abstract; -- Execute an SQL Query with no result set function Execute_Update (C : in out Connection; SQL : String) return Natural is abstract; -- Executes and SQL Query and returns the number of affected rows function Affected_Rows (C : Connection) return Natural is abstract; -- Returns the number of rows affected by an Execute_Query function Insert_ID (C : Connection) return Natural is abstract; -- Returns the last value assigned to an auto increment field upon insert function Error_Message (C : Connection) return String is abstract; -- Returns the last error message that has occurred on this connection function List_Of_Tables (C : Connection) return Gnoga.Data_Array_Type is abstract; -- Return an array of table names function List_Fields_Of_Table (C : Connection; Table_Name : String) return Gnoga.Data_Array_Type is abstract; -- Return an array of field names for table type Field_Description is record Column_Name : Ada.Strings.Unbounded.Unbounded_String; Data_Type : Ada.Strings.Unbounded.Unbounded_String; Can_Be_Null : Boolean; Default_Value : Ada.Strings.Unbounded.Unbounded_String; end record; package Field_Description_Arrays is new Ada.Containers.Indefinite_Vectors (Natural, Field_Description); subtype Field_Description_Array_Type is Field_Description_Arrays.Vector; function Field_Descriptions (C : Connection; Table_Name : String) return Field_Description_Array_Type is abstract; -- Return an array of Field_Description records describe the fields of -- a table function Field_Type (Field : Field_Description) return String; -- Returns the field type portion of a data type, for example: -- If the Field.Data_Type = Varchar(80) then will return Varchar function Field_Size (Field : Field_Description) return Natural; -- Returns the field size portion of a data type, for example: -- If the Field.Data_Type = varchar(80) then will return 80 -- If the Data_Type does not have a size portion will return 0 -- If the Data_Type is a numeric with decimals, e.g. decimal(10,2) -- then it will return the non-decimal portion. function Field_Decimals (Field : Field_Description) return Natural; -- Returns the decimal portion of a field size if it exists or 0 -- for example: if the Data_Type = float(10,2) it will return 2 function Field_Options (Field : Field_Description) return String; -- Returns the field options portion of a data type, for example: -- If the Field.Data_Type = enum('N','Y') then will return 'N','Y' -- as this is described in the database in the same way as field -- size, this may be used for a string representation of the size -- as well. For example varchar(80) will return the string 80 -- This is also used for descriptions like decimal(10,2), etc. function ID_Field_String (C : Connection) return String is abstract; -- Returns the propper type format for the ID field that should be part -- of every table used by GRAW. -- e.g. for SQLlite = "id INTEGER PRIMARY KEY AUTOINCREMENT" -- for MySQL = "id INTEGER PRIMARY KEY AUTO_INCREMENT" type Recordset is interface; type Recordset_Access is access all Recordset'Class; function Query (C : Connection; SQL : String) return Recordset'Class is abstract; -- Execute query that returns Recordset procedure Close (RS : in out Recordset) is abstract; -- Close current recordset and free resources procedure Next (RS : in out Recordset) is abstract; -- Go to next row function Next (RS : in out Recordset) return Boolean is abstract; -- Go to next row and return true if not End of Recordset procedure Iterate (C : in out Connection; SQL : in String; Process : not null access procedure (RS : Recordset'Class)) is abstract; -- Iterate through all rows in the result set of the query procedure Iterate (RS : in out Recordset; Process : not null access procedure (RS : Recordset'Class)) is abstract; -- Iterate through all rows in the recordset procedure Iterate (C : in out Connection; SQL : String; Process : not null access procedure (Row : Gnoga.Data_Map_Type)) is abstract; -- Iterate through all rows in the result set of the query procedure Iterate (RS : in out Recordset; Process : not null access procedure (Row : Gnoga.Data_Map_Type)) is abstract; -- Iterate through all rows in the recordset function Number_Of_Rows (RS : Recordset) return Natural is abstract; -- Return number of rows in recordset -- This function is not available in many implementations, check the -- database specific package before considering use. function Number_Of_Fields (RS : Recordset) return Natural is abstract; -- Return number of fields in recordset function Field_Name (RS : Recordset; Field_Number : Natural) return String is abstract; -- Return name of field function Is_Null (RS : Recordset; Field_Number : Natural) return Boolean is abstract; function Is_Null (RS : Recordset; Field_Name : String) return Boolean is abstract; -- return True if value of field is null function Field_Value (RS : Recordset; Field_Number : Natural; Handle_Nulls : Boolean := True) return String is abstract; function Field_Value (RS : Recordset; Field_Name : String; Handle_Nulls : Boolean := True) return String is abstract; -- return value of field, if Handle_Nulls is true, Null values will -- return as empty Strings function Field_Values (RS : Recordset) return Gnoga.Data_Map_Type is abstract; -- return map of all values for current row, NULL values are set to -- an empty String function Escape_String (C : Connection; S : String) return String is abstract; -- prepares a string for safe storage in a query Connection_Error : exception; -- Unable to connect to MYSQL Server or Not connected to Server Database_Error : exception; -- Unable to switch to specified Database Table_Error : exception; -- Unable to locate table or table has no fields Query_Error : exception; -- Unable to execute query Empty_Recordset_Error : exception; -- The recordset is currently empty Empty_Row_Error : exception; -- Attempt to read value from Row before calling Next End_Of_Recordset : exception; -- Attempt to go pass the last row in recordset No_Such_Field : exception; -- The value for a field name was requested that does not exits Null_Field : exception; -- The value for a Null field was requested Not_Implemented : exception; -- If a database method is called that is not implemented by the specific -- database engined used this exception will be raised. end Ada_GUI.Gnoga.Server.Database;
44.907563
79
0.607317
1cd92b05e870d4bedb135b64ea172968065993db
184
ads
Ada
testsuite/tests/NA17-007__Ada_units/gnat95_config/pck.ads
AdaCore/style_checker
17108ebfc44375498063ecdad6c6e4430458e60a
[ "CNRI-Python" ]
2
2017-10-22T18:04:26.000Z
2020-03-06T11:07:41.000Z
testsuite/tests/NA17-007__Ada_units/gnat95_config/pck.ads
AdaCore/style_checker
17108ebfc44375498063ecdad6c6e4430458e60a
[ "CNRI-Python" ]
null
null
null
testsuite/tests/NA17-007__Ada_units/gnat95_config/pck.ads
AdaCore/style_checker
17108ebfc44375498063ecdad6c6e4430458e60a
[ "CNRI-Python" ]
4
2018-05-22T12:08:54.000Z
2020-12-14T15:25:27.000Z
-- -- Intentionally not providing a Copyright header to verify that -- having -copyright in the config for our module does indeed turn -- this check off. -- package Pck is end Pck;
23
67
0.733696
0bdbe83ab7890fb86065ac5b4b8820ebecc9c241
1,498
ads
Ada
tools/css-analysis-duplicates.ads
stcarrez/ada-css
f7c337306094993186c507540701d04a4753b724
[ "Apache-2.0" ]
3
2017-01-03T22:18:22.000Z
2017-01-10T07:58:17.000Z
tools/css-analysis-duplicates.ads
stcarrez/ada-css
f7c337306094993186c507540701d04a4753b724
[ "Apache-2.0" ]
null
null
null
tools/css-analysis-duplicates.ads
stcarrez/ada-css
f7c337306094993186c507540701d04a4753b724
[ "Apache-2.0" ]
null
null
null
----------------------------------------------------------------------- -- css-analysis-duplicates -- Duplicate CSS Rule Analysis -- Copyright (C) 2017 Stephane Carrez -- Written by Stephane Carrez ([email protected]) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law or agreed to in writing, software -- distributed under the License is distributed on an "AS IS" BASIS, -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -- See the License for the specific language governing permissions and -- limitations under the License. ----------------------------------------------------------------------- with CSS.Core.Sets; with CSS.Core.Vectors; with CSS.Core.Errors; package CSS.Analysis.Duplicates is -- Analyze the CSS rules defined in the vectors to check for duplicate rules. -- Report a warning for each rule that appears to be a duplicate of another. -- Collect in <tt>Dups</tt> the set of rules which are duplicates. -- The initial <tt>Dups</tt> set can already contain existing rules. procedure Analyze (Rules : in CSS.Core.Vectors.Vector; Report : in out CSS.Core.Errors.Error_Handler'Class; Dups : in out CSS.Core.Sets.Set); end CSS.Analysis.Duplicates;
46.8125
81
0.644192
0ba957e5ef4e63139f715c658e04e5494317e98c
26,834
adb
Ada
Validation/pyFrame3DD-master/gcc-master/gcc/ada/make_util.adb
djamal2727/Main-Bearing-Analytical-Model
2f00c2219c71be0175c6f4f8f1d4cca231d97096
[ "Apache-2.0" ]
null
null
null
Validation/pyFrame3DD-master/gcc-master/gcc/ada/make_util.adb
djamal2727/Main-Bearing-Analytical-Model
2f00c2219c71be0175c6f4f8f1d4cca231d97096
[ "Apache-2.0" ]
null
null
null
Validation/pyFrame3DD-master/gcc-master/gcc/ada/make_util.adb
djamal2727/Main-Bearing-Analytical-Model
2f00c2219c71be0175c6f4f8f1d4cca231d97096
[ "Apache-2.0" ]
null
null
null
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- M A K E _ U T I L -- -- -- -- B o d y -- -- -- -- Copyright (C) 2004-2020, Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 3, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License -- -- for more details. You should have received a copy of the GNU General -- -- Public License distributed with GNAT; see file COPYING3. If not, go to -- -- http://www.gnu.org/licenses for a complete copy of the license. -- -- -- -- GNAT was originally developed by the GNAT team at New York University. -- -- Extensive contributions were provided by Ada Core Technologies Inc. -- -- -- ------------------------------------------------------------------------------ with Atree; use Atree; with Debug; with Errutil; with Osint; use Osint; with Output; use Output; with Opt; use Opt; with Table; with Ada.Command_Line; use Ada.Command_Line; with GNAT.Case_Util; use GNAT.Case_Util; with GNAT.Directory_Operations; use GNAT.Directory_Operations; with GNAT.HTable; package body Make_Util is --------- -- Add -- --------- procedure Add (Option : String_Access; To : in out String_List_Access; Last : in out Natural) is begin if Last = To'Last then declare New_Options : constant String_List_Access := new String_List (1 .. To'Last * 2); begin New_Options (To'Range) := To.all; -- Set all elements of the original options to null to avoid -- deallocation of copies. To.all := (others => null); Free (To); To := New_Options; end; end if; Last := Last + 1; To (Last) := Option; end Add; procedure Add (Option : String; To : in out String_List_Access; Last : in out Natural) is begin Add (Option => new String'(Option), To => To, Last => Last); end Add; ------------------------- -- Base_Name_Index_For -- ------------------------- function Base_Name_Index_For (Main : String; Main_Index : Int; Index_Separator : Character) return File_Name_Type is Result : File_Name_Type; begin Name_Len := 0; Add_Str_To_Name_Buffer (Base_Name (Main)); -- Remove the extension, if any, that is the last part of the base name -- starting with a dot and following some characters. for J in reverse 2 .. Name_Len loop if Name_Buffer (J) = '.' then Name_Len := J - 1; exit; end if; end loop; -- Add the index info, if index is different from 0 if Main_Index > 0 then Add_Char_To_Name_Buffer (Index_Separator); declare Img : constant String := Main_Index'Img; begin Add_Str_To_Name_Buffer (Img (2 .. Img'Last)); end; end if; Result := Name_Find; return Result; end Base_Name_Index_For; ----------------- -- Create_Name -- ----------------- function Create_Name (Name : String) return File_Name_Type is begin Name_Len := 0; Add_Str_To_Name_Buffer (Name); return Name_Find; end Create_Name; function Create_Name (Name : String) return Name_Id is begin Name_Len := 0; Add_Str_To_Name_Buffer (Name); return Name_Find; end Create_Name; function Create_Name (Name : String) return Path_Name_Type is begin Name_Len := 0; Add_Str_To_Name_Buffer (Name); return Name_Find; end Create_Name; --------------------------- -- Ensure_Absolute_Path -- --------------------------- procedure Ensure_Absolute_Path (Switch : in out String_Access; Parent : String; Do_Fail : Fail_Proc; For_Gnatbind : Boolean := False; Including_Non_Switch : Boolean := True; Including_RTS : Boolean := False) is begin if Switch /= null then declare Sw : String (1 .. Switch'Length); Start : Positive; begin Sw := Switch.all; if Sw (1) = '-' then if Sw'Length >= 3 and then (Sw (2) = 'I' or else (not For_Gnatbind and then (Sw (2) = 'L' or else Sw (2) = 'A'))) then Start := 3; if Sw = "-I-" then return; end if; elsif Sw'Length >= 4 and then (Sw (2 .. 3) = "aL" or else Sw (2 .. 3) = "aO" or else Sw (2 .. 3) = "aI" or else (For_Gnatbind and then Sw (2 .. 3) = "A=")) then Start := 4; elsif Including_RTS and then Sw'Length >= 7 and then Sw (2 .. 6) = "-RTS=" then Start := 7; else return; end if; -- Because relative path arguments to --RTS= may be relative to -- the search directory prefix, those relative path arguments -- are converted only when they include directory information. if not Is_Absolute_Path (Sw (Start .. Sw'Last)) then if Parent'Length = 0 then Do_Fail ("relative search path switches (""" & Sw & """) are not allowed"); elsif Including_RTS then for J in Start .. Sw'Last loop if Sw (J) = Directory_Separator then Switch := new String' (Sw (1 .. Start - 1) & Parent & Directory_Separator & Sw (Start .. Sw'Last)); return; end if; end loop; else Switch := new String' (Sw (1 .. Start - 1) & Parent & Directory_Separator & Sw (Start .. Sw'Last)); end if; end if; elsif Including_Non_Switch then if not Is_Absolute_Path (Sw) then if Parent'Length = 0 then Do_Fail ("relative paths (""" & Sw & """) are not allowed"); else Switch := new String'(Parent & Directory_Separator & Sw); end if; end if; end if; end; end if; end Ensure_Absolute_Path; ---------------------------- -- Executable_Prefix_Path -- ---------------------------- function Executable_Prefix_Path return String is Exec_Name : constant String := Command_Name; function Get_Install_Dir (S : String) return String; -- S is the executable name preceded by the absolute or relative path, -- e.g. "c:\usr\bin\gcc.exe". Returns the absolute directory where "bin" -- lies (in the example "C:\usr"). If the executable is not in a "bin" -- directory, return "". --------------------- -- Get_Install_Dir -- --------------------- function Get_Install_Dir (S : String) return String is Exec : String := S; Path_Last : Integer := 0; begin for J in reverse Exec'Range loop if Exec (J) = Directory_Separator then Path_Last := J - 1; exit; end if; end loop; if Path_Last >= Exec'First + 2 then To_Lower (Exec (Path_Last - 2 .. Path_Last)); end if; if Path_Last < Exec'First + 2 or else Exec (Path_Last - 2 .. Path_Last) /= "bin" or else (Path_Last - 3 >= Exec'First and then Exec (Path_Last - 3) /= Directory_Separator) then return ""; end if; return Normalize_Pathname (Exec (Exec'First .. Path_Last - 4), Resolve_Links => Opt.Follow_Links_For_Dirs) & Directory_Separator; end Get_Install_Dir; -- Beginning of Executable_Prefix_Path begin -- First determine if a path prefix was placed in front of the -- executable name. for J in reverse Exec_Name'Range loop if Exec_Name (J) = Directory_Separator then return Get_Install_Dir (Exec_Name); end if; end loop; -- If we get here, the user has typed the executable name with no -- directory prefix. declare Path : String_Access := Locate_Exec_On_Path (Exec_Name); begin if Path = null then return ""; else declare Dir : constant String := Get_Install_Dir (Path.all); begin Free (Path); return Dir; end; end if; end; end Executable_Prefix_Path; ------------------ -- Fail_Program -- ------------------ procedure Fail_Program (S : String; Flush_Messages : Boolean := True) is begin if Flush_Messages and not No_Exit_Message then if Total_Errors_Detected /= 0 or else Warnings_Detected /= 0 then Errutil.Finalize; end if; end if; Finish_Program (E_Fatal, S => S); end Fail_Program; -------------------- -- Finish_Program -- -------------------- procedure Finish_Program (Exit_Code : Osint.Exit_Code_Type := Osint.E_Success; S : String := "") is begin if S'Length > 0 then if Exit_Code /= E_Success then if No_Exit_Message then Osint.Exit_Program (E_Fatal); else Osint.Fail (S); end if; elsif not No_Exit_Message then Write_Str (S); end if; end if; -- Output Namet statistics Namet.Finalize; Exit_Program (Exit_Code); end Finish_Program; ---------- -- Hash -- ---------- function Hash is new GNAT.HTable.Hash (Header_Num => Header_Num); -- Used in implementation of other functions Hash below ---------- -- Hash -- ---------- function Hash (Name : File_Name_Type) return Header_Num is begin return Hash (Get_Name_String (Name)); end Hash; function Hash (Name : Name_Id) return Header_Num is begin return Hash (Get_Name_String (Name)); end Hash; function Hash (Name : Path_Name_Type) return Header_Num is begin return Hash (Get_Name_String (Name)); end Hash; ------------ -- Inform -- ------------ procedure Inform (N : File_Name_Type; Msg : String) is begin Inform (Name_Id (N), Msg); end Inform; procedure Inform (N : Name_Id := No_Name; Msg : String) is begin Osint.Write_Program_Name; Write_Str (": "); if N /= No_Name then Write_Str (""""); declare Name : constant String := Get_Name_String (N); begin if Debug.Debug_Flag_F and then Is_Absolute_Path (Name) then Write_Str (File_Name (Name)); else Write_Str (Name); end if; end; Write_Str (""" "); end if; Write_Str (Msg); Write_Eol; end Inform; ----------- -- Mains -- ----------- package body Mains is package Names is new Table.Table (Table_Component_Type => Main_Info, Table_Index_Type => Integer, Table_Low_Bound => 1, Table_Initial => 10, Table_Increment => 100, Table_Name => "Makeutl.Mains.Names"); -- The table that stores the mains Current : Natural := 0; -- The index of the last main retrieved from the table Count_Of_Mains_With_No_Tree : Natural := 0; -- Number of main units for which we do not know the project tree -------------- -- Add_Main -- -------------- procedure Add_Main (Name : String; Index : Int := 0) is begin Name_Len := 0; Add_Str_To_Name_Buffer (Name); Canonical_Case_File_Name (Name_Buffer (1 .. Name_Len)); Names.Increment_Last; Names.Table (Names.Last) := (Name_Find, Index); Mains.Count_Of_Mains_With_No_Tree := Mains.Count_Of_Mains_With_No_Tree + 1; end Add_Main; ------------ -- Delete -- ------------ procedure Delete is begin Names.Set_Last (0); Mains.Reset; end Delete; --------------- -- Next_Main -- --------------- function Next_Main return String is Info : constant Main_Info := Next_Main; begin if Info = No_Main_Info then return ""; else return Get_Name_String (Info.File); end if; end Next_Main; function Next_Main return Main_Info is begin if Current >= Names.Last then return No_Main_Info; else Current := Current + 1; declare Orig_Main : constant File_Name_Type := Names.Table (Current).File; Current_Main : File_Name_Type; begin if Strip_Suffix (Orig_Main) = Orig_Main then Get_Name_String (Orig_Main); Add_Str_To_Name_Buffer (".adb"); Current_Main := Name_Find; if Full_Source_Name (Current_Main) = No_File then Get_Name_String (Orig_Main); Add_Str_To_Name_Buffer (".ads"); Current_Main := Name_Find; if Full_Source_Name (Current_Main) /= No_File then Names.Table (Current).File := Current_Main; end if; else Names.Table (Current).File := Current_Main; end if; end if; end; return Names.Table (Current); end if; end Next_Main; --------------------- -- Number_Of_Mains -- --------------------- function Number_Of_Mains return Natural is begin return Names.Last; end Number_Of_Mains; ----------- -- Reset -- ----------- procedure Reset is begin Current := 0; end Reset; -------------------------- -- Set_Multi_Unit_Index -- -------------------------- procedure Set_Multi_Unit_Index (Index : Int := 0) is begin if Index /= 0 then if Names.Last = 0 then Fail_Program ("cannot specify a multi-unit index but no main " & "on the command line"); elsif Names.Last > 1 then Fail_Program ("cannot specify several mains with a multi-unit index"); else Names.Table (Names.Last).Index := Index; end if; end if; end Set_Multi_Unit_Index; end Mains; ----------------------- -- Path_Or_File_Name -- ----------------------- function Path_Or_File_Name (Path : Path_Name_Type) return String is Path_Name : constant String := Get_Name_String (Path); begin if Debug.Debug_Flag_F then return File_Name (Path_Name); else return Path_Name; end if; end Path_Or_File_Name; ------------------- -- Unit_Index_Of -- ------------------- function Unit_Index_Of (ALI_File : File_Name_Type) return Int is Start : Natural; Finish : Natural; Result : Int := 0; begin Get_Name_String (ALI_File); -- First, find the last dot Finish := Name_Len; while Finish >= 1 and then Name_Buffer (Finish) /= '.' loop Finish := Finish - 1; end loop; if Finish = 1 then return 0; end if; -- Now check that the dot is preceded by digits Start := Finish; Finish := Finish - 1; while Start >= 1 and then Name_Buffer (Start - 1) in '0' .. '9' loop Start := Start - 1; end loop; -- If there are no digits, or if the digits are not preceded by the -- character that precedes a unit index, this is not the ALI file of -- a unit in a multi-unit source. if Start > Finish or else Start = 1 or else Name_Buffer (Start - 1) /= Multi_Unit_Index_Character then return 0; end if; -- Build the index from the digit(s) while Start <= Finish loop Result := Result * 10 + Character'Pos (Name_Buffer (Start)) - Character'Pos ('0'); Start := Start + 1; end loop; return Result; end Unit_Index_Of; ----------------- -- Verbose_Msg -- ----------------- procedure Verbose_Msg (N1 : Name_Id; S1 : String; N2 : Name_Id := No_Name; S2 : String := ""; Prefix : String := " -> "; Minimum_Verbosity : Opt.Verbosity_Level_Type := Opt.Low) is begin if not Opt.Verbose_Mode or else Minimum_Verbosity > Opt.Verbosity_Level then return; end if; Write_Str (Prefix); Write_Str (""""); Write_Name (N1); Write_Str (""" "); Write_Str (S1); if N2 /= No_Name then Write_Str (" """); Write_Name (N2); Write_Str (""" "); end if; Write_Str (S2); Write_Eol; end Verbose_Msg; procedure Verbose_Msg (N1 : File_Name_Type; S1 : String; N2 : File_Name_Type := No_File; S2 : String := ""; Prefix : String := " -> "; Minimum_Verbosity : Opt.Verbosity_Level_Type := Opt.Low) is begin Verbose_Msg (Name_Id (N1), S1, Name_Id (N2), S2, Prefix, Minimum_Verbosity); end Verbose_Msg; ----------- -- Queue -- ----------- package body Queue is type Q_Record is record Info : Source_Info; Processed : Boolean; end record; package Q is new Table.Table (Table_Component_Type => Q_Record, Table_Index_Type => Natural, Table_Low_Bound => 1, Table_Initial => 1000, Table_Increment => 100, Table_Name => "Makeutl.Queue.Q"); -- This is the actual Queue type Mark_Key is record File : File_Name_Type; Index : Int; end record; -- Identify either a mono-unit source (when Index = 0) or a specific -- unit (index = 1's origin index of unit) in a multi-unit source. Max_Mask_Num : constant := 2048; subtype Mark_Num is Union_Id range 0 .. Max_Mask_Num - 1; function Hash (Key : Mark_Key) return Mark_Num; package Marks is new GNAT.HTable.Simple_HTable (Header_Num => Mark_Num, Element => Boolean, No_Element => False, Key => Mark_Key, Hash => Hash, Equal => "="); -- A hash table to keep tracks of the marked units. -- These are the units that have already been processed, when using the -- gnatmake format. When using the gprbuild format, we can directly -- store in the source_id whether the file has already been processed. procedure Mark (Source_File : File_Name_Type; Index : Int := 0); -- Mark a unit, identified by its source file and, when Index is not 0, -- the index of the unit in the source file. Marking is used to signal -- that the unit has already been inserted in the Q. function Is_Marked (Source_File : File_Name_Type; Index : Int := 0) return Boolean; -- Returns True if the unit was previously marked Q_Processed : Natural := 0; Q_Initialized : Boolean := False; Q_First : Natural := 1; -- Points to the first valid element in the queue procedure Debug_Display (S : Source_Info); -- A debug display for S function Was_Processed (S : Source_Info) return Boolean; -- Whether S has already been processed. This marks the source as -- processed, if it hasn't already been processed. ------------------- -- Was_Processed -- ------------------- function Was_Processed (S : Source_Info) return Boolean is begin if Is_Marked (S.File, S.Index) then return True; end if; Mark (S.File, Index => S.Index); return False; end Was_Processed; ------------------- -- Debug_Display -- ------------------- procedure Debug_Display (S : Source_Info) is begin Write_Name (S.File); if S.Index /= 0 then Write_Str (", "); Write_Int (S.Index); end if; end Debug_Display; ---------- -- Hash -- ---------- function Hash (Key : Mark_Key) return Mark_Num is begin return Union_Id (Key.File) mod Max_Mask_Num; end Hash; --------------- -- Is_Marked -- --------------- function Is_Marked (Source_File : File_Name_Type; Index : Int := 0) return Boolean is begin return Marks.Get (K => (File => Source_File, Index => Index)); end Is_Marked; ---------- -- Mark -- ---------- procedure Mark (Source_File : File_Name_Type; Index : Int := 0) is begin Marks.Set (K => (File => Source_File, Index => Index), E => True); end Mark; ------------- -- Extract -- ------------- procedure Extract (Found : out Boolean; Source : out Source_Info) is begin Found := False; if Q_First <= Q.Last then Source := Q.Table (Q_First).Info; Q.Table (Q_First).Processed := True; Q_First := Q_First + 1; Found := True; end if; if Found then Q_Processed := Q_Processed + 1; end if; if Found and then Debug.Debug_Flag_Q then Write_Str (" Q := Q - [ "); Debug_Display (Source); Write_Str (" ]"); Write_Eol; Write_Str (" Q_First ="); Write_Int (Int (Q_First)); Write_Eol; Write_Str (" Q.Last ="); Write_Int (Int (Q.Last)); Write_Eol; end if; end Extract; --------------- -- Processed -- --------------- function Processed return Natural is begin return Q_Processed; end Processed; ---------------- -- Initialize -- ---------------- procedure Initialize (Force : Boolean := False) is begin if Force or else not Q_Initialized then Q_Initialized := True; Q.Init; Q_Processed := 0; Q_First := 1; end if; end Initialize; ------------ -- Insert -- ------------ function Insert (Source : Source_Info) return Boolean is begin -- Only insert in the Q if it is not already done, to avoid -- simultaneous compilations if -jnnn is used. if Was_Processed (Source) then return False; end if; Q.Append (New_Val => (Info => Source, Processed => False)); if Debug.Debug_Flag_Q then Write_Str (" Q := Q + [ "); Debug_Display (Source); Write_Str (" ] "); Write_Eol; Write_Str (" Q_First ="); Write_Int (Int (Q_First)); Write_Eol; Write_Str (" Q.Last ="); Write_Int (Int (Q.Last)); Write_Eol; end if; return True; end Insert; procedure Insert (Source : Source_Info) is Discard : Boolean; begin Discard := Insert (Source); end Insert; -------------- -- Is_Empty -- -------------- function Is_Empty return Boolean is begin return Q_Processed >= Q.Last; end Is_Empty; ---------- -- Size -- ---------- function Size return Natural is begin return Q.Last; end Size; ------------- -- Element -- ------------- function Element (Rank : Positive) return File_Name_Type is begin if Rank <= Q.Last then return Q.Table (Rank).Info.File; else return No_File; end if; end Element; ------------------ -- Remove_Marks -- ------------------ procedure Remove_Marks is begin Marks.Reset; end Remove_Marks; end Queue; end Make_Util;
27.807254
79
0.478833
0b63272897fedad3cf70521df213f3587fb04f39
2,632
adb
Ada
examples/generic_example.adb
AntonMeep/parse_args
907bcb470a21b36b625b942bfeade06eed048ec6
[ "0BSD" ]
9
2015-12-08T17:06:54.000Z
2022-03-28T09:44:20.000Z
examples/generic_example.adb
AntonMeep/parse_args
907bcb470a21b36b625b942bfeade06eed048ec6
[ "0BSD" ]
1
2022-03-30T20:17:18.000Z
2022-03-30T20:58:34.000Z
examples/generic_example.adb
AntonMeep/parse_args
907bcb470a21b36b625b942bfeade06eed048ec6
[ "0BSD" ]
2
2017-01-07T17:31:48.000Z
2022-03-28T09:36:42.000Z
-- generic_example -- An example of the use of parse_args with generic option types -- Copyright (c) 2015, James Humphry -- -- Permission to use, copy, modify, and/or distribute this software for any -- purpose with or without fee is hereby granted, provided that the above -- copyright notice and this permission notice appear in all copies. -- -- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE -- OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -- PERFORMANCE OF THIS SOFTWARE. with Parse_Args; use Parse_Args; with Ada.Text_IO; use Ada.Text_IO; with Generic_Example_Options; use Generic_Example_Options; procedure Generic_Example is AP : Argument_Parser; begin AP.Add_Option(Make_Boolean_Option(False), "help", 'h', Usage => "Display this help text"); AP.Add_Option(Compass_Option.Make_Option, "compass", 'c', Usage => "A compass point (North (default), South, East or West)"); AP.Add_Option(Even_Option.Make_Option, "even", 'e', Usage => "An even natural number (default 0)"); AP.Add_Option(Float_Option.Make_Option, "float", 'f', Usage => "A floating-point number (default 0.0)"); AP.Add_Option(Float_Array_Option.Make_Option, "float-array", 'g', Usage => "An array of floating-point numbers"); AP.Set_Prologue("A demonstration of the Parse_Args library with generic types."); AP.Parse_Command_Line; if AP.Parse_Success and then AP.Boolean_Value("help") then AP.Usage; elsif AP.Parse_Success then Put_Line("Compass point specified: " & Compass'Image(Compass_Option.Value(AP, "compass"))); Put_Line("Even number specified: " & Natural'Image(Even_Option.Value(AP, "even"))); Put_Line("Floating-point number specified: " & Float'Image(Float_Option.Value(AP, "float"))); if Float_Array_Option.Value(AP, "float-array") /= null then Put_Line("Floating-point number array: "); for I of Float_Array_Option.Value(AP, "float-array").all loop Put(Float'Image(I) & ", "); end loop; else Put_Line("No floating-point array specified."); end if; else Put_Line("Error while parsing command-line arguments: " & AP.Parse_Message); end if; end Generic_Example;
39.878788
99
0.700988
39792975ac450781593424c313b15f7c631d78be
3,927
ads
Ada
source/web/spikedog/api/spikedog-servlet_contexts.ads
svn2github/matreshka
9d222b3ad9da508855fb1f5adbe5e8a4fad4c530
[ "BSD-3-Clause" ]
24
2016-11-29T06:59:41.000Z
2021-08-30T11:55:16.000Z
source/web/spikedog/api/spikedog-servlet_contexts.ads
svn2github/matreshka
9d222b3ad9da508855fb1f5adbe5e8a4fad4c530
[ "BSD-3-Clause" ]
2
2019-01-16T05:15:20.000Z
2019-02-03T10:03:32.000Z
source/web/spikedog/api/spikedog-servlet_contexts.ads
svn2github/matreshka
9d222b3ad9da508855fb1f5adbe5e8a4fad4c530
[ "BSD-3-Clause" ]
4
2017-07-18T07:11:05.000Z
2020-06-21T03:02:25.000Z
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- Web Framework -- -- -- -- Runtime Library Component -- -- -- ------------------------------------------------------------------------------ -- -- -- Copyright © 2015-2018, Vadim Godunko <[email protected]> -- -- All rights reserved. -- -- -- -- Redistribution and use in source and binary forms, with or without -- -- modification, are permitted provided that the following conditions -- -- are met: -- -- -- -- * Redistributions of source code must retain the above copyright -- -- notice, this list of conditions and the following disclaimer. -- -- -- -- * Redistributions in binary form must reproduce the above copyright -- -- notice, this list of conditions and the following disclaimer in the -- -- documentation and/or other materials provided with the distribution. -- -- -- -- * Neither the name of the Vadim Godunko, IE nor the names of its -- -- contributors may be used to endorse or promote products derived from -- -- this software without specific prior written permission. -- -- -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- -- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -- -- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -- -- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -- -- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED -- -- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -- -- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -- -- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -- -- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -- -- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- -- -- ------------------------------------------------------------------------------ -- $Revision$ $Date$ ------------------------------------------------------------------------------ -- This package provides interface to configure Skikedog's servlet container -- during application startup. ------------------------------------------------------------------------------ with Spikedog.HTTP_Session_Managers; package Spikedog.Servlet_Contexts is pragma Preelaborate; type Spikedog_Servlet_Context is limited interface; not overriding procedure Set_Session_Manager (Self : in out Spikedog_Servlet_Context; Manager : not null Spikedog.HTTP_Session_Managers.HTTP_Session_Manager_Access) is abstract; end Spikedog.Servlet_Contexts;
63.33871
78
0.430354
1049c10dd15fc92a37d83d0218b75d691dbc993a
7,611
adb
Ada
llvm-gcc-4.2-2.9/gcc/ada/a-reatim.adb
vidkidz/crossbridge
ba0bf94aee0ce6cf7eb5be882382e52bc57ba396
[ "MIT" ]
1
2016-04-09T02:58:13.000Z
2016-04-09T02:58:13.000Z
llvm-gcc-4.2-2.9/gcc/ada/a-reatim.adb
vidkidz/crossbridge
ba0bf94aee0ce6cf7eb5be882382e52bc57ba396
[ "MIT" ]
null
null
null
llvm-gcc-4.2-2.9/gcc/ada/a-reatim.adb
vidkidz/crossbridge
ba0bf94aee0ce6cf7eb5be882382e52bc57ba396
[ "MIT" ]
null
null
null
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- A D A . R E A L _ T I M E -- -- -- -- B o d y -- -- -- -- Copyright (C) 1991-1994, Florida State University -- -- Copyright (C) 1995-2006, 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. -- -- -- ------------------------------------------------------------------------------ package body Ada.Real_Time is --------- -- "*" -- --------- -- Note that Constraint_Error may be propagated function "*" (Left : Time_Span; Right : Integer) return Time_Span is pragma Unsuppress (Overflow_Check); begin return Time_Span (Duration (Left) * Right); end "*"; function "*" (Left : Integer; Right : Time_Span) return Time_Span is pragma Unsuppress (Overflow_Check); begin return Time_Span (Left * Duration (Right)); end "*"; --------- -- "+" -- --------- -- Note that Constraint_Error may be propagated function "+" (Left : Time; Right : Time_Span) return Time is pragma Unsuppress (Overflow_Check); begin return Time (Duration (Left) + Duration (Right)); end "+"; function "+" (Left : Time_Span; Right : Time) return Time is pragma Unsuppress (Overflow_Check); begin return Time (Duration (Left) + Duration (Right)); end "+"; function "+" (Left, Right : Time_Span) return Time_Span is pragma Unsuppress (Overflow_Check); begin return Time_Span (Duration (Left) + Duration (Right)); end "+"; --------- -- "-" -- --------- -- Note that Constraint_Error may be propagated function "-" (Left : Time; Right : Time_Span) return Time is pragma Unsuppress (Overflow_Check); begin return Time (Duration (Left) - Duration (Right)); end "-"; function "-" (Left, Right : Time) return Time_Span is pragma Unsuppress (Overflow_Check); begin return Time_Span (Duration (Left) - Duration (Right)); end "-"; function "-" (Left, Right : Time_Span) return Time_Span is pragma Unsuppress (Overflow_Check); begin return Time_Span (Duration (Left) - Duration (Right)); end "-"; function "-" (Right : Time_Span) return Time_Span is pragma Unsuppress (Overflow_Check); begin return Time_Span_Zero - Right; end "-"; --------- -- "/" -- --------- -- Note that Constraint_Error may be propagated function "/" (Left, Right : Time_Span) return Integer is pragma Unsuppress (Overflow_Check); begin return Integer (Duration (Left) / Duration (Right)); end "/"; function "/" (Left : Time_Span; Right : Integer) return Time_Span is pragma Unsuppress (Overflow_Check); begin return Time_Span (Duration (Left) / Right); end "/"; ----------- -- Clock -- ----------- function Clock return Time is begin return Time (System.Task_Primitives.Operations.Monotonic_Clock); end Clock; ------------------ -- Microseconds -- ------------------ function Microseconds (US : Integer) return Time_Span is begin return Time_Span_Unit * US * 1_000; end Microseconds; ------------------ -- Milliseconds -- ------------------ function Milliseconds (MS : Integer) return Time_Span is begin return Time_Span_Unit * MS * 1_000_000; end Milliseconds; ------------- -- Minutes -- ------------- function Minutes (M : Integer) return Time_Span is begin return Milliseconds (M) * Integer'(60_000); end Minutes; ----------------- -- Nanoseconds -- ----------------- function Nanoseconds (NS : Integer) return Time_Span is begin return Time_Span_Unit * NS; end Nanoseconds; ------------- -- Seconds -- ------------- function Seconds (S : Integer) return Time_Span is begin return Milliseconds (S) * Integer'(1000); end Seconds; ----------- -- Split -- ----------- procedure Split (T : Time; SC : out Seconds_Count; TS : out Time_Span) is T_Val : Time; begin -- Special-case for Time_First, whose absolute value is anomalous, -- courtesy of two's complement. if T = Time_First then T_Val := abs (Time_Last); else T_Val := abs (T); end if; -- Extract the integer part of T, truncating towards zero if T_Val < 0.5 then SC := 0; else SC := Seconds_Count (Time_Span'(T_Val - 0.5)); end if; if T < 0.0 then SC := -SC; end if; -- If original time is negative, need to truncate towards negative -- infinity, to make TS non-negative, as per ARM. if Time (SC) > T then SC := SC - 1; end if; TS := Time_Span (Duration (T) - Duration (SC)); end Split; ------------- -- Time_Of -- ------------- function Time_Of (SC : Seconds_Count; TS : Time_Span) return Time is begin return Time (SC) + TS; end Time_Of; ----------------- -- To_Duration -- ----------------- function To_Duration (TS : Time_Span) return Duration is begin return Duration (TS); end To_Duration; ------------------ -- To_Time_Span -- ------------------ function To_Time_Span (D : Duration) return Time_Span is begin return Time_Span (D); end To_Time_Span; end Ada.Real_Time;
30.689516
78
0.510051
23d12f1de5045eacf558a9e761643d804cfaf20e
6,658
ads
Ada
llvm-gcc-4.2-2.9/gcc/ada/a-intnam-darwin.ads
vidkidz/crossbridge
ba0bf94aee0ce6cf7eb5be882382e52bc57ba396
[ "MIT" ]
1
2016-04-09T02:58:13.000Z
2016-04-09T02:58:13.000Z
llvm-gcc-4.2-2.9/gcc/ada/a-intnam-darwin.ads
vidkidz/crossbridge
ba0bf94aee0ce6cf7eb5be882382e52bc57ba396
[ "MIT" ]
null
null
null
llvm-gcc-4.2-2.9/gcc/ada/a-intnam-darwin.ads
vidkidz/crossbridge
ba0bf94aee0ce6cf7eb5be882382e52bc57ba396
[ "MIT" ]
null
null
null
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- A D A . I N T E R R U P T S . N A M E S -- -- -- -- S p e c -- -- -- -- Copyright (C) 1991-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 Darwin version of this package -- The following signals are reserved by the run time: -- SIGSTOP, SIGKILL -- The pragma Unreserve_All_Interrupts affects the following signal(s): -- SIGINT: made available for Ada handler -- This target-dependent package spec contains names of interrupts -- supported by the local system. with System.OS_Interface; -- used for names of interrupts package Ada.Interrupts.Names is -- Beware that the mapping of names to signals may be many-to-one. There -- may be aliases. Also, for all signal names that are not supported on the -- current system the value of the corresponding constant will be zero. SIGHUP : constant Interrupt_ID := System.OS_Interface.SIGHUP; -- hangup SIGINT : constant Interrupt_ID := System.OS_Interface.SIGINT; -- interrupt (rubout) SIGQUIT : constant Interrupt_ID := System.OS_Interface.SIGQUIT; -- quit (ASCD FS) SIGILL : constant Interrupt_ID := System.OS_Interface.SIGILL; -- illegal instruction (not reset) SIGTRAP : constant Interrupt_ID := System.OS_Interface.SIGTRAP; -- trace trap (not reset) SIGIOT : constant Interrupt_ID := System.OS_Interface.SIGIOT; -- IOT instruction SIGABRT : constant Interrupt_ID := -- used by abort, System.OS_Interface.SIGABRT; -- replace SIGIOT in the future SIGEMT : constant Interrupt_ID := System.OS_Interface.SIGEMT; -- EMT instruction SIGFPE : constant Interrupt_ID := System.OS_Interface.SIGFPE; -- floating point exception SIGKILL : constant Interrupt_ID := System.OS_Interface.SIGKILL; -- kill (cannot be caught or ignored) SIGBUS : constant Interrupt_ID := System.OS_Interface.SIGBUS; -- bus error SIGSEGV : constant Interrupt_ID := System.OS_Interface.SIGSEGV; -- segmentation violation SIGSYS : constant Interrupt_ID := System.OS_Interface.SIGSYS; -- bad argument to system call SIGPIPE : constant Interrupt_ID := -- write on a pipe with System.OS_Interface.SIGPIPE; -- no one to read it SIGALRM : constant Interrupt_ID := System.OS_Interface.SIGALRM; -- alarm clock SIGTERM : constant Interrupt_ID := System.OS_Interface.SIGTERM; -- software termination signal from kill SIGURG : constant Interrupt_ID := System.OS_Interface.SIGURG; -- urgent condition on IO channel SIGSTOP : constant Interrupt_ID := System.OS_Interface.SIGSTOP; -- stop (cannot be caught or ignored) SIGTSTP : constant Interrupt_ID := System.OS_Interface.SIGTSTP; -- user stop requested from tty SIGCONT : constant Interrupt_ID := System.OS_Interface.SIGCONT; -- stopped process has been continued SIGCHLD : constant Interrupt_ID := System.OS_Interface.SIGCHLD; -- 4.3BSD's/POSIX name for SIGCLD SIGTTIN : constant Interrupt_ID := System.OS_Interface.SIGTTIN; -- background tty read attempted SIGTTOU : constant Interrupt_ID := System.OS_Interface.SIGTTOU; -- background tty write attempted SIGIO : constant Interrupt_ID := -- input/output possible, System.OS_Interface.SIGIO; -- SIGPOLL alias (Solaris) SIGXCPU : constant Interrupt_ID := System.OS_Interface.SIGXCPU; -- CPU time limit exceeded SIGXFSZ : constant Interrupt_ID := System.OS_Interface.SIGXFSZ; -- filesize limit exceeded SIGVTALRM : constant Interrupt_ID := System.OS_Interface.SIGVTALRM; -- virtual timer expired SIGPROF : constant Interrupt_ID := System.OS_Interface.SIGPROF; -- profiling timer expired SIGWINCH : constant Interrupt_ID := System.OS_Interface.SIGWINCH; -- window size change SIGINFO : constant Interrupt_ID := System.OS_Interface.SIGINFO; -- information request SIGUSR1 : constant Interrupt_ID := System.OS_Interface.SIGUSR1; -- user defined signal 1 SIGUSR2 : constant Interrupt_ID := System.OS_Interface.SIGUSR2; -- user defined signal 2 end Ada.Interrupts.Names;
43.51634
79
0.586362
1c51547d4305207e58ff39b1942a32c5d0fc5bc5
4,174
adb
Ada
source/web/tools/a2js/properties-statements-exit_statement.adb
svn2github/matreshka
9d222b3ad9da508855fb1f5adbe5e8a4fad4c530
[ "BSD-3-Clause" ]
24
2016-11-29T06:59:41.000Z
2021-08-30T11:55:16.000Z
source/web/tools/a2js/properties-statements-exit_statement.adb
svn2github/matreshka
9d222b3ad9da508855fb1f5adbe5e8a4fad4c530
[ "BSD-3-Clause" ]
2
2019-01-16T05:15:20.000Z
2019-02-03T10:03:32.000Z
source/web/tools/a2js/properties-statements-exit_statement.adb
svn2github/matreshka
9d222b3ad9da508855fb1f5adbe5e8a4fad4c530
[ "BSD-3-Clause" ]
4
2017-07-18T07:11:05.000Z
2020-06-21T03:02:25.000Z
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- Web Framework -- -- -- -- Tools Component -- -- -- ------------------------------------------------------------------------------ -- -- -- Copyright © 2015, Vadim Godunko <[email protected]> -- -- All rights reserved. -- -- -- -- Redistribution and use in source and binary forms, with or without -- -- modification, are permitted provided that the following conditions -- -- are met: -- -- -- -- * Redistributions of source code must retain the above copyright -- -- notice, this list of conditions and the following disclaimer. -- -- -- -- * Redistributions in binary form must reproduce the above copyright -- -- notice, this list of conditions and the following disclaimer in the -- -- documentation and/or other materials provided with the distribution. -- -- -- -- * Neither the name of the Vadim Godunko, IE nor the names of its -- -- contributors may be used to endorse or promote products derived from -- -- this software without specific prior written permission. -- -- -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- -- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -- -- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -- -- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -- -- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED -- -- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -- -- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -- -- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -- -- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -- -- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- -- -- ------------------------------------------------------------------------------ -- $Revision$ $Date$ ------------------------------------------------------------------------------ with Asis.Statements; with Asis.Elements; package body Properties.Statements.Exit_Statement is ---------- -- Code -- ---------- function Code (Engine : access Engines.Contexts.Context; Element : Asis.Expression; Name : Engines.Text_Property) return League.Strings.Universal_String is Cond : constant Asis.Expression := Asis.Statements.Exit_Condition (Element); Text : League.Strings.Universal_String; Down : League.Strings.Universal_String; begin if not Asis.Elements.Is_Nil (Cond) then Text.Append ("if ("); Down := Engine.Text.Get_Property (Cond, Name); Text.Append (Down); Text.Append (")"); end if; Text.Append ("break;"); return Text; end Code; end Properties.Statements.Exit_Statement;
54.207792
78
0.430762
502e1373bcd02742c01fa0399a0af6ce1db59049
3,957
ads
Ada
Sources/Globe_3d/gl/gl-buffer-general.ads
ForYouEyesOnly/Space-Convoy
be4904f6a02695f7c4c5c3c965f4871cd3250003
[ "MIT" ]
1
2019-09-21T09:40:34.000Z
2019-09-21T09:40:34.000Z
Sources/Globe_3d/gl/gl-buffer-general.ads
ForYouEyesOnly/Space-Convoy
be4904f6a02695f7c4c5c3c965f4871cd3250003
[ "MIT" ]
null
null
null
Sources/Globe_3d/gl/gl-buffer-general.ads
ForYouEyesOnly/Space-Convoy
be4904f6a02695f7c4c5c3c965f4871cd3250003
[ "MIT" ]
1
2019-09-25T12:29:27.000Z
2019-09-25T12:29:27.000Z
------------------------------------------------------------------------- -- GL.Buffer.general - a generic for producing the various types of openGL vertex buffer objects. -- -- 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 Interfaces.C.Pointers; generic type base_Object is new GL.Buffer.Object with private; type Index is mod <>; type Element is private; type Element_Array is array (Index range <>) of aliased Element; package GL.Buffer.general is pragma Elaborate_Body; type General_Object is new base_Object with private; function To_Buffer (From : access Element_Array; Usage : VBO_Usage) return General_Object; procedure Set (Self : in out General_Object; Set_Position : Positive := 1; -- tbd : make this raise 'constraint_Error' instead of openGL_Error, when bounds are violated. To : Element_Array); function Get (Self : access General_Object) return Element_Array; -- buffer memory map -- type memory_Map is abstract tagged private; procedure Release (Self : memory_Map); -- -- 'release' must be called to release the buffers data back to the GL server. -- -- May raise Corrupt_Buffer if the Buffer has become corrupt since the data -- was initially mapped. This can occur for system - specific reasons that affect the availability of graphics memory, -- such as screen mode changes. In such situations, the data store contents are undefined, and an application -- reinitialize the data store. -- Corrupt_Buffer : exception; type read_only_Map is new memory_Map with private; function Map (Self : access General_Object) return read_only_Map'Class; function Get (Self : read_only_Map; Get_Position : Index) return Element; function Get (Self : read_only_Map; Get_Position : Index; Count : Positive) return Element_Array; type write_only_Map is new memory_Map with private; function Map (Self : access General_Object) return write_only_Map'Class; procedure Set (Self : write_only_Map; Set_Position : Index; To : access Element); procedure Set (Self : write_only_Map; Set_Position : Index; To : Element); type read_write_Map is new memory_Map with private; function Map (Self : access General_Object) return read_write_Map'Class; function Get (Self : read_write_Map; Get_Position : Index) return Element; function Get (Self : read_write_Map; Get_Position : Index; Count : Positive) return Element_Array; procedure Set (Self : read_write_Map; Set_Position : Index; To : access Element); procedure Set (Self : read_write_Map; Set_Position : Index; To : Element); private type General_Object is new base_Object with null record; default_Terminator : Element; -- no 'i.c.Pointers' subprogram is called which uses this, so a default 'Element' should suffice. pragma Warnings (Off, """default_Terminator"" may be referenced before it has a value"); package Element_Pointers is new interfaces.C.Pointers (Index, Element, Element_Array, default_Terminator); pragma Warnings (On, """default_Terminator"" may be referenced before it has a value"); type memory_Map is abstract tagged record vbo_Target : GL.VBO_Target; Data : Element_Pointers.Pointer; Last : Index; end record; type read_only_Map is new memory_Map with null record; type write_only_Map is new memory_Map with null record; type read_write_Map is new memory_Map with null record; end GL.Buffer.general;
41.21875
153
0.672479
0b1008a32bfa45a506e169e622d759e615b360a2
7,877
adb
Ada
src/asf-security-filters.adb
Letractively/ada-asf
da9f85f85666eba7e23fefea661160863b74154d
[ "Apache-2.0" ]
null
null
null
src/asf-security-filters.adb
Letractively/ada-asf
da9f85f85666eba7e23fefea661160863b74154d
[ "Apache-2.0" ]
null
null
null
src/asf-security-filters.adb
Letractively/ada-asf
da9f85f85666eba7e23fefea661160863b74154d
[ "Apache-2.0" ]
null
null
null
----------------------------------------------------------------------- -- security-filters -- Security filter -- Copyright (C) 2011, 2012, 2013 Stephane Carrez -- Written by Stephane Carrez ([email protected]) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law or agreed to in writing, software -- distributed under the License is distributed on an "AS IS" BASIS, -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -- See the License for the specific language governing permissions and -- limitations under the License. ----------------------------------------------------------------------- with Ada.Strings.Unbounded; with Util.Log.Loggers; with ASF.Cookies; with ASF.Applications.Main; with Security.Contexts; with Security.Policies.URLs; package body ASF.Security.Filters is -- The logger Log : constant Util.Log.Loggers.Logger := Util.Log.Loggers.Create ("Security.Filters"); -- ------------------------------ -- Called by the servlet container to indicate to a servlet that the servlet -- is being placed into service. -- ------------------------------ procedure Initialize (Server : in out Auth_Filter; Context : in ASF.Servlets.Servlet_Registry'Class) is use ASF.Applications.Main; begin if Context in Application'Class then Server.Set_Permission_Manager (Application'Class (Context).Get_Security_Manager); end if; end Initialize; -- ------------------------------ -- Set the permission manager that must be used to verify the permission. -- ------------------------------ procedure Set_Permission_Manager (Filter : in out Auth_Filter; Manager : in Policies.Policy_Manager_Access) is begin Filter.Manager := Manager; end Set_Permission_Manager; -- ------------------------------ -- Filter the request to make sure the user is authenticated. -- Invokes the <b>Do_Login</b> procedure if there is no user. -- If a permission manager is defined, check that the user has the permission -- to view the page. Invokes the <b>Do_Deny</b> procedure if the permission -- is denied. -- ------------------------------ procedure Do_Filter (F : in Auth_Filter; Request : in out ASF.Requests.Request'Class; Response : in out ASF.Responses.Response'Class; Chain : in out ASF.Servlets.Filter_Chain) is use Ada.Strings.Unbounded; use Policies.URLs; use type Policies.Policy_Manager_Access; Session : ASF.Sessions.Session; SID : Unbounded_String; AID : Unbounded_String; Auth : ASF.Principals.Principal_Access; pragma Unreferenced (SID); procedure Fetch_Cookie (Cookie : in ASF.Cookies.Cookie); -- ------------------------------ -- Collect the AID and SID cookies. -- ------------------------------ procedure Fetch_Cookie (Cookie : in ASF.Cookies.Cookie) is Name : constant String := ASF.Cookies.Get_Name (Cookie); begin if Name = SID_COOKIE then SID := To_Unbounded_String (ASF.Cookies.Get_Value (Cookie)); elsif Name = AID_COOKIE then AID := To_Unbounded_String (ASF.Cookies.Get_Value (Cookie)); end if; end Fetch_Cookie; Context : aliased Contexts.Security_Context; begin Request.Iterate_Cookies (Fetch_Cookie'Access); Session := Request.Get_Session (Create => True); -- If the session does not have a principal, try to authenticate the user with -- the auto-login cookie. Auth := Session.Get_Principal; if Auth = null and then Length (AID) > 0 then Auth_Filter'Class (F).Authenticate (Request, Response, Session, To_String (AID), Auth); if Auth /= null then Session.Set_Principal (Auth); end if; end if; -- A permission manager is installed, check that the user can display the page. if F.Manager /= null then if Auth = null then Context.Set_Context (F.Manager, null); else Context.Set_Context (F.Manager, Auth.all'Access); end if; declare Servlet : constant String := Request.Get_Servlet_Path; URL : constant String := Servlet & Request.Get_Path_Info; Perm : constant Policies.URLs.URL_Permission (URL'Length) := URL_Permission '(Len => URL'Length, URL => URL); begin if not F.Manager.Has_Permission (Context, Perm) then if Auth = null then -- No permission and no principal, redirect to the login page. Log.Info ("Page need authentication on {0}", URL); Auth_Filter'Class (F).Do_Login (Request, Response); else Log.Info ("Deny access on {0}", URL); Auth_Filter'Class (F).Do_Deny (Request, Response); end if; return; end if; Log.Debug ("Access granted on {0}", URL); end; end if; -- Request is authorized, proceed to the next filter. ASF.Servlets.Do_Filter (Chain => Chain, Request => Request, Response => Response); end Do_Filter; -- ------------------------------ -- Display or redirects the user to the login page. This procedure is called when -- the user is not authenticated. -- ------------------------------ procedure Do_Login (F : in Auth_Filter; Request : in out ASF.Requests.Request'Class; Response : in out ASF.Responses.Response'Class) is pragma Unreferenced (F, Request); begin Response.Send_Error (ASF.Responses.SC_UNAUTHORIZED); end Do_Login; -- ------------------------------ -- Display the forbidden access page. This procedure is called when the user is not -- authorized to see the page. The default implementation returns the SC_FORBIDDEN error. -- ------------------------------ procedure Do_Deny (F : in Auth_Filter; Request : in out ASF.Requests.Request'Class; Response : in out ASF.Responses.Response'Class) is pragma Unreferenced (F, Request); begin Response.Set_Status (ASF.Responses.SC_FORBIDDEN); end Do_Deny; -- ------------------------------ -- Authenticate a user by using the auto-login cookie. This procedure is called if the -- current session does not have any principal. Based on the request and the optional -- auto-login cookie passed in <b>Auth_Id</b>, it should identify the user and return -- a principal object. The principal object will be freed when the session is closed. -- If the user cannot be authenticated, the returned principal should be null. -- -- The default implementation returns a null principal. -- ------------------------------ procedure Authenticate (F : in Auth_Filter; Request : in out ASF.Requests.Request'Class; Response : in out ASF.Responses.Response'Class; Session : in ASF.Sessions.Session; Auth_Id : in String; Principal : out ASF.Principals.Principal_Access) is pragma Unreferenced (F, Request, Response, Session, Auth_Id); begin Principal := null; end Authenticate; end ASF.Security.Filters;
42.349462
96
0.576996
50d4f702324e58677b4f4fac7d8e857a25a3c22e
3,177
adb
Ada
gcc-gcc-7_3_0-release/gcc/ada/g-timsta.adb
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
7
2020-05-02T17:34:05.000Z
2021-10-17T10:15:18.000Z
gcc-gcc-7_3_0-release/gcc/ada/g-timsta.adb
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
null
null
null
gcc-gcc-7_3_0-release/gcc/ada/g-timsta.adb
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
2
2020-07-27T00:22:36.000Z
2021-04-01T09:41:02.000Z
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- G N A T . T I M E _ S T A M P -- -- -- -- B o d y -- -- -- -- Copyright (C) 2008-2014, Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 3, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. -- -- -- -- As a special exception under Section 7 of GPL version 3, you are granted -- -- additional permissions described in the GCC Runtime Library Exception, -- -- version 3.1, as published by the Free Software Foundation. -- -- -- -- You should have received a copy of the GNU General Public License and -- -- a copy of the GCC Runtime Library Exception along with this program; -- -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see -- -- <http://www.gnu.org/licenses/>. -- -- -- -- GNAT was originally developed by the GNAT team at New York University. -- -- Extensive contributions were provided by Ada Core Technologies Inc. -- -- -- ------------------------------------------------------------------------------ with Interfaces.C; use Interfaces.C; package body GNAT.Time_Stamp is subtype time_stamp is char_array (0 .. 22); type time_stamp_ptr is access all time_stamp; -- The desired ISO 8601 string format has exactly 22 characters. We add -- one additional character for '\0'. The indexing starts from zero to -- accommodate the C layout. procedure gnat_current_time_string (Value : time_stamp_ptr); pragma Import (C, gnat_current_time_string, "__gnat_current_time_string"); ------------------ -- Current_Time -- ------------------ function Current_Time return String is Result : aliased time_stamp; begin gnat_current_time_string (Result'Unchecked_Access); Result (22) := nul; return To_Ada (Result); end Current_Time; end GNAT.Time_Stamp;
52.95
78
0.446333
fb04d1fac1b9190bcc951d0c545c1bb1db9c415a
4,607
ads
Ada
source/amf/mof/amf-internals-collections-elements-containers.ads
svn2github/matreshka
9d222b3ad9da508855fb1f5adbe5e8a4fad4c530
[ "BSD-3-Clause" ]
24
2016-11-29T06:59:41.000Z
2021-08-30T11:55:16.000Z
source/amf/mof/amf-internals-collections-elements-containers.ads
svn2github/matreshka
9d222b3ad9da508855fb1f5adbe5e8a4fad4c530
[ "BSD-3-Clause" ]
2
2019-01-16T05:15:20.000Z
2019-02-03T10:03:32.000Z
source/amf/mof/amf-internals-collections-elements-containers.ads
svn2github/matreshka
9d222b3ad9da508855fb1f5adbe5e8a4fad4c530
[ "BSD-3-Clause" ]
4
2017-07-18T07:11:05.000Z
2020-06-21T03:02:25.000Z
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- Ada Modeling Framework -- -- -- -- Runtime Library Component -- -- -- ------------------------------------------------------------------------------ -- -- -- Copyright © 2011, Vadim Godunko <[email protected]> -- -- All rights reserved. -- -- -- -- Redistribution and use in source and binary forms, with or without -- -- modification, are permitted provided that the following conditions -- -- are met: -- -- -- -- * Redistributions of source code must retain the above copyright -- -- notice, this list of conditions and the following disclaimer. -- -- -- -- * Redistributions in binary form must reproduce the above copyright -- -- notice, this list of conditions and the following disclaimer in the -- -- documentation and/or other materials provided with the distribution. -- -- -- -- * Neither the name of the Vadim Godunko, IE nor the names of its -- -- contributors may be used to endorse or promote products derived from -- -- this software without specific prior written permission. -- -- -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- -- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -- -- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -- -- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -- -- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED -- -- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -- -- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -- -- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -- -- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -- -- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- -- -- ------------------------------------------------------------------------------ -- $Revision$ $Date$ ------------------------------------------------------------------------------ with Ada.Containers.Vectors; with Matreshka.Atomics.Counters; package AMF.Internals.Collections.Elements.Containers is pragma Preelaborate; package Vectors is new Ada.Containers.Vectors (Positive, AMF.Elements.Element_Access, AMF.Elements."="); type Shared_Element_Collection_Container is new Shared_Element_Collection with record Counter : Matreshka.Atomics.Counters.Counter; Elements : Vectors.Vector; end record; overriding procedure Reference (Self : not null access Shared_Element_Collection_Container); overriding procedure Unreference (Self : not null access Shared_Element_Collection_Container); overriding function Length (Self : not null access constant Shared_Element_Collection_Container) return Natural; overriding procedure Clear (Self : not null access Shared_Element_Collection_Container); overriding function Element (Self : not null access constant Shared_Element_Collection_Container; Index : Positive) return not null AMF.Elements.Element_Access; overriding procedure Add (Self : not null access Shared_Element_Collection_Container; Item : not null AMF.Elements.Element_Access); end AMF.Internals.Collections.Elements.Containers;
54.845238
78
0.492728
4d41414892436d6873f4d767e1a28489d371fa72
46,463
adb
Ada
ctrl_broadcast/eg1_stencil_computation/optimize/jacobi2d_kernel/solution/.autopilot/db/load.sched.adb
Licheng-Guo/vivado-hls-broadcast-optimization
6df922aaab9463fe78bb8216c976e525e6626f9b
[ "MIT" ]
24
2020-06-17T22:57:36.000Z
2021-09-14T03:37:45.000Z
ctrl_broadcast/eg1_stencil_computation/optimize/jacobi2d_kernel/solution/.autopilot/db/load.sched.adb
Licheng-Guo/vivado-hls-broadcast-optimization
6df922aaab9463fe78bb8216c976e525e6626f9b
[ "MIT" ]
null
null
null
ctrl_broadcast/eg1_stencil_computation/optimize/jacobi2d_kernel/solution/.autopilot/db/load.sched.adb
Licheng-Guo/vivado-hls-broadcast-optimization
6df922aaab9463fe78bb8216c976e525e6626f9b
[ "MIT" ]
7
2020-06-17T22:40:10.000Z
2021-09-14T03:37:53.000Z
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <!DOCTYPE boost_serialization> <boost_serialization signature="serialization::archive" version="15"> <syndb class_id="0" tracking_level="0" version="0"> <userIPLatency>-1</userIPLatency> <userIPName></userIPName> <cdfg class_id="1" tracking_level="1" version="0" object_id="_0"> <name>load</name> <ret_bitwidth>0</ret_bitwidth> <ports class_id="2" tracking_level="0" version="0"> <count>4</count> <item_version>0</item_version> <item class_id="3" tracking_level="1" version="0" object_id="_1"> <Value class_id="4" tracking_level="0" version="0"> <Obj class_id="5" tracking_level="0" version="0"> <type>1</type> <id>1</id> <name>to_V_V</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo class_id="6" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>to.V.V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>512</bitwidth> </Value> <direction>1</direction> <if_type>3</if_type> <array_size>0</array_size> <bit_vecs class_id="7" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </bit_vecs> </item> <item class_id_reference="3" object_id="_2"> <Value> <Obj> <type>1</type> <id>2</id> <name>from_V</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>from.V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>512</bitwidth> </Value> <direction>0</direction> <if_type>4</if_type> <array_size>0</array_size> <bit_vecs> <count>0</count> <item_version>0</item_version> </bit_vecs> </item> <item class_id_reference="3" object_id="_3"> <Value> <Obj> <type>1</type> <id>3</id> <name>from_V_offset</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>32</bitwidth> </Value> <direction>0</direction> <if_type>3</if_type> <array_size>0</array_size> <bit_vecs> <count>0</count> <item_version>0</item_version> </bit_vecs> </item> <item class_id_reference="3" object_id="_4"> <Value> <Obj> <type>1</type> <id>4</id> <name>coalesced_data_num</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> <direction>0</direction> <if_type>3</if_type> <array_size>0</array_size> <bit_vecs> <count>0</count> <item_version>0</item_version> </bit_vecs> </item> </ports> <nodes class_id="8" tracking_level="0" version="0"> <count>17</count> <item_version>0</item_version> <item class_id="9" tracking_level="1" version="0" object_id="_5"> <Value> <Obj> <type>0</type> <id>10</id> <name>from_V_offset_read</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>32</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>40</item> <item>41</item> </oprand_edges> <opcode>read</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_delay>1.21</m_delay> </item> <item class_id_reference="9" object_id="_6"> <Value> <Obj> <type>0</type> <id>11</id> <name>from_V_offset1_i</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>26</bitwidth> </Value> <oprand_edges> <count>4</count> <item_version>0</item_version> <item>43</item> <item>44</item> <item>46</item> <item>48</item> </oprand_edges> <opcode>partselect</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_delay>0.00</m_delay> </item> <item class_id_reference="9" object_id="_7"> <Value> <Obj> <type>0</type> <id>12</id> <name>tmp_i</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>64</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>49</item> </oprand_edges> <opcode>zext</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_delay>0.00</m_delay> </item> <item class_id_reference="9" object_id="_8"> <Value> <Obj> <type>0</type> <id>13</id> <name>from_V_addr</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>512</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>50</item> <item>51</item> </oprand_edges> <opcode>getelementptr</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_delay>0.00</m_delay> </item> <item class_id_reference="9" object_id="_9"> <Value> <Obj> <type>0</type> <id>17</id> <name>coalesced_data_num_read</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>64</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>53</item> <item>54</item> </oprand_edges> <opcode>read</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_delay>1.21</m_delay> </item> <item class_id_reference="9" object_id="_10"> <Value> <Obj> <type>0</type> <id>18</id> <name>tmp</name> <fileName>non_blocking_jacobi2d_kernel-tile8000-unroll64-4ddr-iterate8.cpp</fileName> <fileDirectory>/home/einsx7/broadcast/vivado-hls-broadcast-optimization/ctrl_broadcast/eg2_stencil_computation/optimize</fileDirectory> <lineNumber>9718</lineNumber> <contextFuncName>jacobi2d_kernel</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item class_id="11" tracking_level="0" version="0"> <first>/home/einsx7/broadcast/vivado-hls-broadcast-optimization/ctrl_broadcast/eg2_stencil_computation/optimize</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>non_blocking_jacobi2d_kernel-tile8000-unroll64-4ddr-iterate8.cpp</first> <second>jacobi2d_kernel</second> </first> <second>9718</second> </item> </second> </item> </inlineStackInfo> <originalName>data_num</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>32</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>55</item> </oprand_edges> <opcode>trunc</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_delay>0.00</m_delay> </item> <item class_id_reference="9" object_id="_11"> <Value> <Obj> <type>0</type> <id>20</id> <name>from_V_addr_i_rd_req</name> <fileName>non_blocking_jacobi2d_kernel-tile8000-unroll64-4ddr-iterate8.cpp</fileName> <fileDirectory>/home/einsx7/broadcast/vivado-hls-broadcast-optimization/ctrl_broadcast/eg2_stencil_computation/optimize</fileDirectory> <lineNumber>35</lineNumber> <contextFuncName>load</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/einsx7/broadcast/vivado-hls-broadcast-optimization/ctrl_broadcast/eg2_stencil_computation/optimize</first> <second> <count>2</count> <item_version>0</item_version> <item> <first> <first>non_blocking_jacobi2d_kernel-tile8000-unroll64-4ddr-iterate8.cpp</first> <second>jacobi2d_kernel</second> </first> <second>9721</second> </item> <item> <first> <first>non_blocking_jacobi2d_kernel-tile8000-unroll64-4ddr-iterate8.cpp</first> <second>load</second> </first> <second>35</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>1</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>57</item> <item>58</item> <item>59</item> </oprand_edges> <opcode>readreq</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_delay>2.43</m_delay> </item> <item class_id_reference="9" object_id="_12"> <Value> <Obj> <type>0</type> <id>21</id> <name></name> <fileName>non_blocking_jacobi2d_kernel-tile8000-unroll64-4ddr-iterate8.cpp</fileName> <fileDirectory>/home/einsx7/broadcast/vivado-hls-broadcast-optimization/ctrl_broadcast/eg2_stencil_computation/optimize</fileDirectory> <lineNumber>32</lineNumber> <contextFuncName>load</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/einsx7/broadcast/vivado-hls-broadcast-optimization/ctrl_broadcast/eg2_stencil_computation/optimize</first> <second> <count>2</count> <item_version>0</item_version> <item> <first> <first>non_blocking_jacobi2d_kernel-tile8000-unroll64-4ddr-iterate8.cpp</first> <second>jacobi2d_kernel</second> </first> <second>9721</second> </item> <item> <first> <first>non_blocking_jacobi2d_kernel-tile8000-unroll64-4ddr-iterate8.cpp</first> <second>load</second> </first> <second>32</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>60</item> </oprand_edges> <opcode>br</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_delay>0.60</m_delay> </item> <item class_id_reference="9" object_id="_13"> <Value> <Obj> <type>0</type> <id>23</id> <name>i_i_i_i</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>i</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>31</bitwidth> </Value> <oprand_edges> <count>4</count> <item_version>0</item_version> <item>62</item> <item>63</item> <item>64</item> <item>65</item> </oprand_edges> <opcode>phi</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_delay>0.00</m_delay> </item> <item class_id_reference="9" object_id="_14"> <Value> <Obj> <type>0</type> <id>24</id> <name>i_cast_i_i_i</name> <fileName>non_blocking_jacobi2d_kernel-tile8000-unroll64-4ddr-iterate8.cpp</fileName> <fileDirectory>/home/einsx7/broadcast/vivado-hls-broadcast-optimization/ctrl_broadcast/eg2_stencil_computation/optimize</fileDirectory> <lineNumber>32</lineNumber> <contextFuncName>load</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/einsx7/broadcast/vivado-hls-broadcast-optimization/ctrl_broadcast/eg2_stencil_computation/optimize</first> <second> <count>2</count> <item_version>0</item_version> <item> <first> <first>non_blocking_jacobi2d_kernel-tile8000-unroll64-4ddr-iterate8.cpp</first> <second>jacobi2d_kernel</second> </first> <second>9721</second> </item> <item> <first> <first>non_blocking_jacobi2d_kernel-tile8000-unroll64-4ddr-iterate8.cpp</first> <second>load</second> </first> <second>32</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>32</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>66</item> </oprand_edges> <opcode>zext</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_delay>0.00</m_delay> </item> <item class_id_reference="9" object_id="_15"> <Value> <Obj> <type>0</type> <id>25</id> <name>tmp_i_i_i</name> <fileName>non_blocking_jacobi2d_kernel-tile8000-unroll64-4ddr-iterate8.cpp</fileName> <fileDirectory>/home/einsx7/broadcast/vivado-hls-broadcast-optimization/ctrl_broadcast/eg2_stencil_computation/optimize</fileDirectory> <lineNumber>32</lineNumber> <contextFuncName>load</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/einsx7/broadcast/vivado-hls-broadcast-optimization/ctrl_broadcast/eg2_stencil_computation/optimize</first> <second> <count>2</count> <item_version>0</item_version> <item> <first> <first>non_blocking_jacobi2d_kernel-tile8000-unroll64-4ddr-iterate8.cpp</first> <second>jacobi2d_kernel</second> </first> <second>9721</second> </item> <item> <first> <first>non_blocking_jacobi2d_kernel-tile8000-unroll64-4ddr-iterate8.cpp</first> <second>load</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>67</item> <item>68</item> </oprand_edges> <opcode>icmp</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_delay>0.85</m_delay> </item> <item class_id_reference="9" object_id="_16"> <Value> <Obj> <type>0</type> <id>26</id> <name>i</name> <fileName>non_blocking_jacobi2d_kernel-tile8000-unroll64-4ddr-iterate8.cpp</fileName> <fileDirectory>/home/einsx7/broadcast/vivado-hls-broadcast-optimization/ctrl_broadcast/eg2_stencil_computation/optimize</fileDirectory> <lineNumber>32</lineNumber> <contextFuncName>load</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/einsx7/broadcast/vivado-hls-broadcast-optimization/ctrl_broadcast/eg2_stencil_computation/optimize</first> <second> <count>2</count> <item_version>0</item_version> <item> <first> <first>non_blocking_jacobi2d_kernel-tile8000-unroll64-4ddr-iterate8.cpp</first> <second>jacobi2d_kernel</second> </first> <second>9721</second> </item> <item> <first> <first>non_blocking_jacobi2d_kernel-tile8000-unroll64-4ddr-iterate8.cpp</first> <second>load</second> </first> <second>32</second> </item> </second> </item> </inlineStackInfo> <originalName>i</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>31</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>69</item> <item>71</item> </oprand_edges> <opcode>add</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_delay>0.87</m_delay> </item> <item class_id_reference="9" object_id="_17"> <Value> <Obj> <type>0</type> <id>27</id> <name></name> <fileName>non_blocking_jacobi2d_kernel-tile8000-unroll64-4ddr-iterate8.cpp</fileName> <fileDirectory>/home/einsx7/broadcast/vivado-hls-broadcast-optimization/ctrl_broadcast/eg2_stencil_computation/optimize</fileDirectory> <lineNumber>32</lineNumber> <contextFuncName>load</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/einsx7/broadcast/vivado-hls-broadcast-optimization/ctrl_broadcast/eg2_stencil_computation/optimize</first> <second> <count>2</count> <item_version>0</item_version> <item> <first> <first>non_blocking_jacobi2d_kernel-tile8000-unroll64-4ddr-iterate8.cpp</first> <second>jacobi2d_kernel</second> </first> <second>9721</second> </item> <item> <first> <first>non_blocking_jacobi2d_kernel-tile8000-unroll64-4ddr-iterate8.cpp</first> <second>load</second> </first> <second>32</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>72</item> <item>73</item> <item>74</item> </oprand_edges> <opcode>br</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_delay>0.00</m_delay> </item> <item class_id_reference="9" object_id="_18"> <Value> <Obj> <type>0</type> <id>32</id> <name>tmp_V</name> <fileName>non_blocking_jacobi2d_kernel-tile8000-unroll64-4ddr-iterate8.cpp</fileName> <fileDirectory>/home/einsx7/broadcast/vivado-hls-broadcast-optimization/ctrl_broadcast/eg2_stencil_computation/optimize</fileDirectory> <lineNumber>35</lineNumber> <contextFuncName>load</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/einsx7/broadcast/vivado-hls-broadcast-optimization/ctrl_broadcast/eg2_stencil_computation/optimize</first> <second> <count>2</count> <item_version>0</item_version> <item> <first> <first>non_blocking_jacobi2d_kernel-tile8000-unroll64-4ddr-iterate8.cpp</first> <second>jacobi2d_kernel</second> </first> <second>9721</second> </item> <item> <first> <first>non_blocking_jacobi2d_kernel-tile8000-unroll64-4ddr-iterate8.cpp</first> <second>load</second> </first> <second>35</second> </item> </second> </item> </inlineStackInfo> <originalName>tmp.V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>512</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>76</item> <item>77</item> <item>288</item> </oprand_edges> <opcode>read</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_delay>2.43</m_delay> </item> <item class_id_reference="9" object_id="_19"> <Value> <Obj> <type>0</type> <id>33</id> <name>empty</name> <fileName>non_blocking_jacobi2d_kernel-tile8000-unroll64-4ddr-iterate8.cpp</fileName> <fileDirectory>/home/einsx7/broadcast/vivado-hls-broadcast-optimization/ctrl_broadcast/eg2_stencil_computation/optimize</fileDirectory> <lineNumber>35</lineNumber> <contextFuncName>load</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/einsx7/broadcast/vivado-hls-broadcast-optimization/ctrl_broadcast/eg2_stencil_computation/optimize</first> <second> <count>2</count> <item_version>0</item_version> <item> <first> <first>non_blocking_jacobi2d_kernel-tile8000-unroll64-4ddr-iterate8.cpp</first> <second>jacobi2d_kernel</second> </first> <second>9721</second> </item> <item> <first> <first>non_blocking_jacobi2d_kernel-tile8000-unroll64-4ddr-iterate8.cpp</first> <second>load</second> </first> <second>35</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>1</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>79</item> <item>80</item> <item>81</item> </oprand_edges> <opcode>nbwrite</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_delay>1.21</m_delay> </item> <item class_id_reference="9" object_id="_20"> <Value> <Obj> <type>0</type> <id>35</id> <name></name> <fileName>non_blocking_jacobi2d_kernel-tile8000-unroll64-4ddr-iterate8.cpp</fileName> <fileDirectory>/home/einsx7/broadcast/vivado-hls-broadcast-optimization/ctrl_broadcast/eg2_stencil_computation/optimize</fileDirectory> <lineNumber>32</lineNumber> <contextFuncName>load</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/einsx7/broadcast/vivado-hls-broadcast-optimization/ctrl_broadcast/eg2_stencil_computation/optimize</first> <second> <count>2</count> <item_version>0</item_version> <item> <first> <first>non_blocking_jacobi2d_kernel-tile8000-unroll64-4ddr-iterate8.cpp</first> <second>jacobi2d_kernel</second> </first> <second>9721</second> </item> <item> <first> <first>non_blocking_jacobi2d_kernel-tile8000-unroll64-4ddr-iterate8.cpp</first> <second>load</second> </first> <second>32</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>82</item> </oprand_edges> <opcode>br</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_delay>0.00</m_delay> </item> <item class_id_reference="9" object_id="_21"> <Value> <Obj> <type>0</type> <id>37</id> <name></name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>0</count> <item_version>0</item_version> </oprand_edges> <opcode>ret</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_delay>0.00</m_delay> </item> </nodes> <consts class_id="15" tracking_level="0" version="0"> <count>4</count> <item_version>0</item_version> <item class_id="16" tracking_level="1" version="0" object_id="_22"> <Value> <Obj> <type>2</type> <id>45</id> <name>empty</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>32</bitwidth> </Value> <const_type>0</const_type> <content>6</content> </item> <item class_id_reference="16" object_id="_23"> <Value> <Obj> <type>2</type> <id>47</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>31</content> </item> <item class_id_reference="16" object_id="_24"> <Value> <Obj> <type>2</type> <id>61</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>31</bitwidth> </Value> <const_type>0</const_type> <content>0</content> </item> <item class_id_reference="16" object_id="_25"> <Value> <Obj> <type>2</type> <id>70</id> <name>empty</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>31</bitwidth> </Value> <const_type>0</const_type> <content>1</content> </item> </consts> <blocks class_id="17" tracking_level="0" version="0"> <count>4</count> <item_version>0</item_version> <item class_id="18" tracking_level="1" version="0" object_id="_26"> <Obj> <type>3</type> <id>22</id> <name>entry</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <node_objs> <count>8</count> <item_version>0</item_version> <item>10</item> <item>11</item> <item>12</item> <item>13</item> <item>17</item> <item>18</item> <item>20</item> <item>21</item> </node_objs> </item> <item class_id_reference="18" object_id="_27"> <Obj> <type>3</type> <id>28</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>23</item> <item>24</item> <item>25</item> <item>26</item> <item>27</item> </node_objs> </item> <item class_id_reference="18" object_id="_28"> <Obj> <type>3</type> <id>36</id> <name></name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <node_objs> <count>3</count> <item_version>0</item_version> <item>32</item> <item>33</item> <item>35</item> </node_objs> </item> <item class_id_reference="18" object_id="_29"> <Obj> <type>3</type> <id>38</id> <name>.exit</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>37</item> </node_objs> </item> </blocks> <edges class_id="19" tracking_level="0" version="0"> <count>33</count> <item_version>0</item_version> <item class_id="20" tracking_level="1" version="0" object_id="_30"> <id>41</id> <edge_type>1</edge_type> <source_obj>3</source_obj> <sink_obj>10</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_31"> <id>44</id> <edge_type>1</edge_type> <source_obj>10</source_obj> <sink_obj>11</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_32"> <id>46</id> <edge_type>1</edge_type> <source_obj>45</source_obj> <sink_obj>11</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_33"> <id>48</id> <edge_type>1</edge_type> <source_obj>47</source_obj> <sink_obj>11</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_34"> <id>49</id> <edge_type>1</edge_type> <source_obj>11</source_obj> <sink_obj>12</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_35"> <id>50</id> <edge_type>1</edge_type> <source_obj>2</source_obj> <sink_obj>13</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_36"> <id>51</id> <edge_type>1</edge_type> <source_obj>12</source_obj> <sink_obj>13</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_37"> <id>54</id> <edge_type>1</edge_type> <source_obj>4</source_obj> <sink_obj>17</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_38"> <id>55</id> <edge_type>1</edge_type> <source_obj>17</source_obj> <sink_obj>18</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_39"> <id>58</id> <edge_type>1</edge_type> <source_obj>13</source_obj> <sink_obj>20</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_40"> <id>59</id> <edge_type>1</edge_type> <source_obj>18</source_obj> <sink_obj>20</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_41"> <id>60</id> <edge_type>2</edge_type> <source_obj>28</source_obj> <sink_obj>21</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_42"> <id>62</id> <edge_type>1</edge_type> <source_obj>61</source_obj> <sink_obj>23</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_43"> <id>63</id> <edge_type>2</edge_type> <source_obj>22</source_obj> <sink_obj>23</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_44"> <id>64</id> <edge_type>1</edge_type> <source_obj>26</source_obj> <sink_obj>23</sink_obj> <is_back_edge>1</is_back_edge> </item> <item class_id_reference="20" object_id="_45"> <id>65</id> <edge_type>2</edge_type> <source_obj>36</source_obj> <sink_obj>23</sink_obj> <is_back_edge>1</is_back_edge> </item> <item class_id_reference="20" object_id="_46"> <id>66</id> <edge_type>1</edge_type> <source_obj>23</source_obj> <sink_obj>24</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_47"> <id>67</id> <edge_type>1</edge_type> <source_obj>24</source_obj> <sink_obj>25</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_48"> <id>68</id> <edge_type>1</edge_type> <source_obj>18</source_obj> <sink_obj>25</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_49"> <id>69</id> <edge_type>1</edge_type> <source_obj>23</source_obj> <sink_obj>26</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_50"> <id>71</id> <edge_type>1</edge_type> <source_obj>70</source_obj> <sink_obj>26</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_51"> <id>72</id> <edge_type>1</edge_type> <source_obj>25</source_obj> <sink_obj>27</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_52"> <id>73</id> <edge_type>2</edge_type> <source_obj>38</source_obj> <sink_obj>27</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_53"> <id>74</id> <edge_type>2</edge_type> <source_obj>36</source_obj> <sink_obj>27</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_54"> <id>77</id> <edge_type>1</edge_type> <source_obj>13</source_obj> <sink_obj>32</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_55"> <id>80</id> <edge_type>1</edge_type> <source_obj>1</source_obj> <sink_obj>33</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_56"> <id>81</id> <edge_type>1</edge_type> <source_obj>32</source_obj> <sink_obj>33</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_57"> <id>82</id> <edge_type>2</edge_type> <source_obj>28</source_obj> <sink_obj>35</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_58"> <id>284</id> <edge_type>2</edge_type> <source_obj>22</source_obj> <sink_obj>28</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_59"> <id>285</id> <edge_type>2</edge_type> <source_obj>28</source_obj> <sink_obj>36</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_60"> <id>286</id> <edge_type>2</edge_type> <source_obj>28</source_obj> <sink_obj>38</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_61"> <id>287</id> <edge_type>2</edge_type> <source_obj>36</source_obj> <sink_obj>28</sink_obj> <is_back_edge>1</is_back_edge> </item> <item class_id_reference="20" object_id="_62"> <id>288</id> <edge_type>4</edge_type> <source_obj>20</source_obj> <sink_obj>32</sink_obj> <is_back_edge>0</is_back_edge> </item> </edges> </cdfg> <cdfg_regions class_id="21" tracking_level="0" version="0"> <count>4</count> <item_version>0</item_version> <item class_id="22" tracking_level="1" version="0" object_id="_63"> <mId>1</mId> <mTag>load</mTag> <mType>0</mType> <sub_regions> <count>3</count> <item_version>0</item_version> <item>2</item> <item>3</item> <item>4</item> </sub_regions> <basic_blocks> <count>0</count> <item_version>0</item_version> </basic_blocks> <mII>-1</mII> <mDepth>-1</mDepth> <mMinTripCount>-1</mMinTripCount> <mMaxTripCount>-1</mMaxTripCount> <mMinLatency>-1</mMinLatency> <mMaxLatency>-1</mMaxLatency> <mIsDfPipe>0</mIsDfPipe> <mDfPipe class_id="-1"></mDfPipe> </item> <item class_id_reference="22" object_id="_64"> <mId>2</mId> <mTag>Entry</mTag> <mType>0</mType> <sub_regions> <count>0</count> <item_version>0</item_version> </sub_regions> <basic_blocks> <count>1</count> <item_version>0</item_version> <item>22</item> </basic_blocks> <mII>-1</mII> <mDepth>-1</mDepth> <mMinTripCount>-1</mMinTripCount> <mMaxTripCount>-1</mMaxTripCount> <mMinLatency>126</mMinLatency> <mMaxLatency>126</mMaxLatency> <mIsDfPipe>0</mIsDfPipe> <mDfPipe class_id="-1"></mDfPipe> </item> <item class_id_reference="22" object_id="_65"> <mId>3</mId> <mTag>load_epoch</mTag> <mType>1</mType> <sub_regions> <count>0</count> <item_version>0</item_version> </sub_regions> <basic_blocks> <count>2</count> <item_version>0</item_version> <item>28</item> <item>36</item> </basic_blocks> <mII>1</mII> <mDepth>3</mDepth> <mMinTripCount>-1</mMinTripCount> <mMaxTripCount>-1</mMaxTripCount> <mMinLatency>-1</mMinLatency> <mMaxLatency>-1</mMaxLatency> <mIsDfPipe>0</mIsDfPipe> <mDfPipe class_id="-1"></mDfPipe> </item> <item class_id_reference="22" object_id="_66"> <mId>4</mId> <mTag>Return</mTag> <mType>0</mType> <sub_regions> <count>0</count> <item_version>0</item_version> </sub_regions> <basic_blocks> <count>1</count> <item_version>0</item_version> <item>38</item> </basic_blocks> <mII>-1</mII> <mDepth>-1</mDepth> <mMinTripCount>-1</mMinTripCount> <mMaxTripCount>-1</mMaxTripCount> <mMinLatency>0</mMinLatency> <mMaxLatency>0</mMaxLatency> <mIsDfPipe>0</mIsDfPipe> <mDfPipe class_id="-1"></mDfPipe> </item> </cdfg_regions> <fsm class_id="-1"></fsm> <res class_id="-1"></res> <node_label_latency class_id="26" tracking_level="0" version="0"> <count>17</count> <item_version>0</item_version> <item class_id="27" tracking_level="0" version="0"> <first>10</first> <second class_id="28" tracking_level="0" version="0"> <first>0</first> <second>0</second> </second> </item> <item> <first>11</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>12</first> <second> <first>1</first> <second>0</second> </second> </item> <item> <first>13</first> <second> <first>1</first> <second>0</second> </second> </item> <item> <first>17</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>18</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>20</first> <second> <first>1</first> <second>125</second> </second> </item> <item> <first>21</first> <second> <first>126</first> <second>0</second> </second> </item> <item> <first>23</first> <second> <first>127</first> <second>0</second> </second> </item> <item> <first>24</first> <second> <first>127</first> <second>0</second> </second> </item> <item> <first>25</first> <second> <first>127</first> <second>0</second> </second> </item> <item> <first>26</first> <second> <first>127</first> <second>0</second> </second> </item> <item> <first>27</first> <second> <first>127</first> <second>0</second> </second> </item> <item> <first>32</first> <second> <first>128</first> <second>0</second> </second> </item> <item> <first>33</first> <second> <first>129</first> <second>0</second> </second> </item> <item> <first>35</first> <second> <first>129</first> <second>0</second> </second> </item> <item> <first>37</first> <second> <first>130</first> <second>0</second> </second> </item> </node_label_latency> <bblk_ent_exit class_id="29" tracking_level="0" version="0"> <count>4</count> <item_version>0</item_version> <item class_id="30" tracking_level="0" version="0"> <first>22</first> <second class_id="31" tracking_level="0" version="0"> <first>0</first> <second>126</second> </second> </item> <item> <first>28</first> <second> <first>127</first> <second>127</second> </second> </item> <item> <first>36</first> <second> <first>128</first> <second>129</second> </second> </item> <item> <first>38</first> <second> <first>128</first> <second>128</second> </second> </item> </bblk_ent_exit> <regions class_id="32" tracking_level="0" version="0"> <count>1</count> <item_version>0</item_version> <item class_id="33" tracking_level="1" version="0" object_id="_67"> <region_name>load_epoch</region_name> <basic_blocks> <count>2</count> <item_version>0</item_version> <item>28</item> <item>36</item> </basic_blocks> <nodes> <count>0</count> <item_version>0</item_version> </nodes> <anchor_node>-1</anchor_node> <region_type>8</region_type> <interval>1</interval> <pipe_depth>3</pipe_depth> </item> </regions> <dp_fu_nodes class_id="34" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </dp_fu_nodes> <dp_fu_nodes_expression class_id="35" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </dp_fu_nodes_expression> <dp_fu_nodes_module> <count>0</count> <item_version>0</item_version> </dp_fu_nodes_module> <dp_fu_nodes_io> <count>0</count> <item_version>0</item_version> </dp_fu_nodes_io> <return_ports> <count>0</count> <item_version>0</item_version> </return_ports> <dp_mem_port_nodes class_id="36" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </dp_mem_port_nodes> <dp_reg_nodes> <count>0</count> <item_version>0</item_version> </dp_reg_nodes> <dp_regname_nodes> <count>0</count> <item_version>0</item_version> </dp_regname_nodes> <dp_reg_phi> <count>0</count> <item_version>0</item_version> </dp_reg_phi> <dp_regname_phi> <count>0</count> <item_version>0</item_version> </dp_regname_phi> <dp_port_io_nodes class_id="37" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </dp_port_io_nodes> <port2core class_id="38" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </port2core> <node2core> <count>0</count> <item_version>0</item_version> </node2core> </syndb> </boost_serialization>
28.210686
141
0.618277
50778f84e0ace9e367ca5ee06e5d87dac1db1b7c
3,823
ads
Ada
regtests/servlet-routes-tests.ads
My-Colaborations/ada-servlet
4a82140ecf87418808ca8882f698384bb56b412e
[ "Apache-2.0" ]
null
null
null
regtests/servlet-routes-tests.ads
My-Colaborations/ada-servlet
4a82140ecf87418808ca8882f698384bb56b412e
[ "Apache-2.0" ]
null
null
null
regtests/servlet-routes-tests.ads
My-Colaborations/ada-servlet
4a82140ecf87418808ca8882f698384bb56b412e
[ "Apache-2.0" ]
null
null
null
----------------------------------------------------------------------- -- servlet-routes-tests - Unit tests for Servlet.Routes -- Copyright (C) 2015, 2020 Stephane Carrez -- Written by Stephane Carrez ([email protected]) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law or agreed to in writing, software -- distributed under the License is distributed on an "AS IS" BASIS, -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -- See the License for the specific language governing permissions and -- limitations under the License. ----------------------------------------------------------------------- with Ada.Strings.Unbounded; with Util.Tests; with Util.Beans.Objects; with Servlet.Tests; package Servlet.Routes.Tests is -- A test bean to verify the path parameter injection. type Test_Bean is new Util.Beans.Basic.Bean with record Id : Ada.Strings.Unbounded.Unbounded_String; Name : Ada.Strings.Unbounded.Unbounded_String; end record; type Test_Bean_Access is access all Test_Bean; overriding function Get_Value (Bean : in Test_Bean; Name : in String) return Util.Beans.Objects.Object; overriding procedure Set_Value (Bean : in out Test_Bean; Name : in String; Value : in Util.Beans.Objects.Object); MAX_TEST_ROUTES : constant Positive := 100; type Test_Route_Type is new Route_Type with record Index : Natural := 0; end record; type Test_Route_Type_Access is access Test_Route_Type; type Test_Route_Array is array (1 .. MAX_TEST_ROUTES) of Route_Type_Ref; procedure Add_Tests (Suite : in Util.Tests.Access_Test_Suite); type Test is new Servlet.Tests.EL_Test with record Routes : Test_Route_Array; Bean : Test_Bean_Access; end record; -- Setup the test instance. overriding procedure Set_Up (T : in out Test); -- Verify that the path matches the given route. procedure Verify_Route (T : in out Test; Router : in out Router_Type; Path : in String; Index : in Positive; Bean : in out Test_Bean'Class); -- Add the route associted with the path pattern. procedure Add_Route (T : in out Test; Router : in out Router_Type; Path : in String; Index : in Positive; Bean : in out Test_Bean'Class); -- Test the Add_Route with "/". procedure Test_Add_Route_With_Root_Path (T : in out Test); -- Test the Add_Route with simple fixed path components. -- Example: /list/index.html procedure Test_Add_Route_With_Path (T : in out Test); -- Test the Add_Route with extension mapping. -- Example: /list/*.html procedure Test_Add_Route_With_Ext (T : in out Test); -- Test the Add_Route with fixed path components and path parameters. -- Example: /users/:id/view.html procedure Test_Add_Route_With_Param (T : in out Test); -- Test the Add_Route with fixed path components and path parameters (Alternate syntax). -- Example: /users/{id}/view.html procedure Test_Add_Route_With_Param_Alt (T : in out Test); -- Test the Add_Route with fixed path components and EL path injection. -- Example: /users/#{user.id}/view.html procedure Test_Add_Route_With_EL (T : in out Test); -- Test the Iterate over several paths. procedure Test_Iterate (T : in out Test); end Servlet.Routes.Tests;
37.116505
92
0.638242
4dacdfd228b9388900a0802e4973537882ef91e5
252
ads
Ada
source/machine-pc-freebsd/s-stomap.ads
ytomino/drake
4e4bdcd8b8e23a11a29b31d3a8861fdf60090ea2
[ "MIT" ]
33
2015-04-04T09:19:36.000Z
2021-11-10T05:33:34.000Z
source/machine-pc-freebsd/s-stomap.ads
ytomino/drake
4e4bdcd8b8e23a11a29b31d3a8861fdf60090ea2
[ "MIT" ]
8
2017-11-14T13:05:07.000Z
2018-08-09T15:28:49.000Z
source/machine-pc-freebsd/s-stomap.ads
ytomino/drake
4e4bdcd8b8e23a11a29b31d3a8861fdf60090ea2
[ "MIT" ]
9
2015-02-03T17:09:53.000Z
2021-11-12T01:16:05.000Z
pragma License (Unrestricted); -- runtime unit specialized for FreeBSD package System.Storage_Map is pragma Preelaborate; function Load_Address return Address; Growing_Down_Is_Preferred : constant Boolean := False; end System.Storage_Map;
22.909091
57
0.789683
1ccc46564aff96658c245fc7f8b8665d475d0a1c
3,447
ads
Ada
src.prep/audio-wavefiles-generic_NUM_TYPE_wav_io.ads
Ada-Audio/wavefiles
8e1162c5b9dc604a835f60be6a78e8f9d3c85052
[ "MIT" ]
10
2016-02-29T09:35:56.000Z
2020-05-16T02:55:20.000Z
src.prep/audio-wavefiles-generic_NUM_TYPE_wav_io.ads
gusthoff/wavefiles
8e1162c5b9dc604a835f60be6a78e8f9d3c85052
[ "MIT" ]
null
null
null
src.prep/audio-wavefiles-generic_NUM_TYPE_wav_io.ads
gusthoff/wavefiles
8e1162c5b9dc604a835f60be6a78e8f9d3c85052
[ "MIT" ]
null
null
null
------------------------------------------------------------------------------ -- -- -- THIS IS AN AUTOMATICALLY GENERATED FILE! DO NOT EDIT! -- -- -- -- WAVEFILES -- -- -- -- Wavefile data I/O operations -- -- -- -- The MIT License (MIT) -- -- -- -- Copyright (c) 2015 -- 2021 Gustavo A. Hoffmann -- -- -- -- Permission is hereby granted, free of charge, to any person obtaining -- -- a copy of this software and associated documentation files (the -- -- "Software"), to deal in the Software without restriction, including -- -- without limitation the rights to use, copy, modify, merge, publish, -- -- distribute, sublicense, and / or sell copies of the Software, and to -- -- permit persons to whom the Software is furnished to do so, subject to -- -- the following conditions: -- -- -- -- The above copyright notice and this permission notice shall be -- -- included in all copies or substantial portions of the Software. -- -- -- -- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -- -- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -- -- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -- -- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -- -- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -- -- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -- -- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -- ------------------------------------------------------------------------------ private generic #if (NUM_TYPE = "FLOAT") then type Wav_Sample is digits <>; #else type Wav_Sample is delta <>; #end if; type Channel_Range is (<>); type Wav_MC_Sample is array (Channel_Range range <>) of Wav_Sample; #if NUM_TYPE'Defined and then (NUM_TYPE = "FLOAT") then package Audio.Wavefiles.Generic_Float_Wav_IO is #else package Audio.Wavefiles.Generic_Fixed_Wav_IO is #end if; function Get (WF : in out Wavefile) return Wav_MC_Sample with Inline, Pre => Mode (WF) = In_File; procedure Get (WF : in out Wavefile; Wav : out Wav_MC_Sample) with Inline, Pre => Mode (WF) = In_File; procedure Put (WF : in out Wavefile; Wav : Wav_MC_Sample) with Inline, Pre => Mode (WF) = Out_File and Wav'Length >= Number_Of_Channels (WF); #if NUM_TYPE'Defined and then (NUM_TYPE = "FLOAT") then end Audio.Wavefiles.Generic_Float_Wav_IO; #else end Audio.Wavefiles.Generic_Fixed_Wav_IO; #end if;
53.030769
78
0.468523
10b380bc6ccfec850210093a6f0cdb54f6997fbd
4,931
ads
Ada
source/amf/ocl/amf-ocl-void_types-collections.ads
svn2github/matreshka
9d222b3ad9da508855fb1f5adbe5e8a4fad4c530
[ "BSD-3-Clause" ]
24
2016-11-29T06:59:41.000Z
2021-08-30T11:55:16.000Z
source/amf/ocl/amf-ocl-void_types-collections.ads
svn2github/matreshka
9d222b3ad9da508855fb1f5adbe5e8a4fad4c530
[ "BSD-3-Clause" ]
2
2019-01-16T05:15:20.000Z
2019-02-03T10:03:32.000Z
source/amf/ocl/amf-ocl-void_types-collections.ads
svn2github/matreshka
9d222b3ad9da508855fb1f5adbe5e8a4fad4c530
[ "BSD-3-Clause" ]
4
2017-07-18T07:11:05.000Z
2020-06-21T03:02:25.000Z
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- Ada Modeling Framework -- -- -- -- Runtime Library Component -- -- -- ------------------------------------------------------------------------------ -- -- -- Copyright © 2012-2013, Vadim Godunko <[email protected]> -- -- All rights reserved. -- -- -- -- Redistribution and use in source and binary forms, with or without -- -- modification, are permitted provided that the following conditions -- -- are met: -- -- -- -- * Redistributions of source code must retain the above copyright -- -- notice, this list of conditions and the following disclaimer. -- -- -- -- * Redistributions in binary form must reproduce the above copyright -- -- notice, this list of conditions and the following disclaimer in the -- -- documentation and/or other materials provided with the distribution. -- -- -- -- * Neither the name of the Vadim Godunko, IE nor the names of its -- -- contributors may be used to endorse or promote products derived from -- -- this software without specific prior written permission. -- -- -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- -- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -- -- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -- -- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -- -- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED -- -- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -- -- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -- -- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -- -- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -- -- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- -- -- ------------------------------------------------------------------------------ -- $Revision$ $Date$ ------------------------------------------------------------------------------ -- This file is generated, don't edit it. ------------------------------------------------------------------------------ with AMF.Generic_Collections; package AMF.OCL.Void_Types.Collections is pragma Preelaborate; package OCL_Void_Type_Collections is new AMF.Generic_Collections (OCL_Void_Type, OCL_Void_Type_Access); type Set_Of_OCL_Void_Type is new OCL_Void_Type_Collections.Set with null record; Empty_Set_Of_OCL_Void_Type : constant Set_Of_OCL_Void_Type; type Ordered_Set_Of_OCL_Void_Type is new OCL_Void_Type_Collections.Ordered_Set with null record; Empty_Ordered_Set_Of_OCL_Void_Type : constant Ordered_Set_Of_OCL_Void_Type; type Bag_Of_OCL_Void_Type is new OCL_Void_Type_Collections.Bag with null record; Empty_Bag_Of_OCL_Void_Type : constant Bag_Of_OCL_Void_Type; type Sequence_Of_OCL_Void_Type is new OCL_Void_Type_Collections.Sequence with null record; Empty_Sequence_Of_OCL_Void_Type : constant Sequence_Of_OCL_Void_Type; private Empty_Set_Of_OCL_Void_Type : constant Set_Of_OCL_Void_Type := (OCL_Void_Type_Collections.Set with null record); Empty_Ordered_Set_Of_OCL_Void_Type : constant Ordered_Set_Of_OCL_Void_Type := (OCL_Void_Type_Collections.Ordered_Set with null record); Empty_Bag_Of_OCL_Void_Type : constant Bag_Of_OCL_Void_Type := (OCL_Void_Type_Collections.Bag with null record); Empty_Sequence_Of_OCL_Void_Type : constant Sequence_Of_OCL_Void_Type := (OCL_Void_Type_Collections.Sequence with null record); end AMF.OCL.Void_Types.Collections;
53.597826
78
0.50943
1c2a8d9bc2196a0cd85ae7a6752068584d90fbfc
2,682
ads
Ada
resources/scripts/api/securitytrails.ads
mehrdad-shokri/amass
bf4df987c63d0509bf3e94cba2e4448855fc0805
[ "Apache-2.0" ]
1
2021-03-27T09:57:11.000Z
2021-03-27T09:57:11.000Z
resources/scripts/api/securitytrails.ads
rishuranjanofficial/Amass
a7e3d07febafae6220032121a1b1c4f508e16ec0
[ "Apache-2.0" ]
null
null
null
resources/scripts/api/securitytrails.ads
rishuranjanofficial/Amass
a7e3d07febafae6220032121a1b1c4f508e16ec0
[ "Apache-2.0" ]
null
null
null
-- 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 = "SecurityTrails" type = "api" function start() setratelimit(1) end function vertical(ctx, domain) if (api == nil or api.key == "") then return end local resp local vurl = verturl(domain) -- Check if the response data is in the graph database if (api.ttl ~= nil and api.ttl > 0) then resp = obtain_response(vurl, api.ttl) end if (resp == nil or resp == "") then local err resp, err = request({ url=vurl, headers={ APIKEY=api.key, ['Content-Type']="application/json", }, }) if (err ~= nil and err ~= "") then return end if (api.ttl ~= nil and api.ttl > 0) then cache_response(vurl, resp) end end local j = json.decode(resp) if (j == nil or #(j.subdomains) == 0) then return end for i, sub in pairs(j.subdomains) do sendnames(ctx, sub .. "." .. domain) end end function verturl(domain) return "https://api.securitytrails.com/v1/domain/" .. domain .. "/subdomains" 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 function horizontal(ctx, domain) if (api == nil or api.key == "") then return end local resp local hurl = horizonurl(domain) -- Check if the response data is in the graph database if (api.ttl ~= nil and api.ttl > 0) then resp = obtain_response(hurl, api.ttl) end if (resp == nil or resp == "") then local err resp, err = request({ url=hurl, headers={ APIKEY=api.key, ['Content-Type']="application/json", }, }) if (err ~= nil and err ~= "") then return end if (api.ttl ~= nil and api.ttl > 0) then cache_response(hurl, resp) end end local j = json.decode(resp) if (j == nil or #(j.records) == 0) then return end assoc = {} for i, r in pairs(j.records) do if r.hostname ~= "" then table.insert(assoc, r.hostname) end end for i, a in pairs(assoc) do associated(ctx, domain, a) end end function horizonurl(domain) return "https://api.securitytrails.com/v1/domain/" .. domain .. "/associated" end
22.35
97
0.544743
123d5d1bf3eed03d08ffd8491d1daa23741b4102
2,767
ads
Ada
src/el-functions-default.ads
My-Colaborations/ada-el
dba689d093357cda0722a1e650358fa5fcaf8157
[ "Apache-2.0" ]
null
null
null
src/el-functions-default.ads
My-Colaborations/ada-el
dba689d093357cda0722a1e650358fa5fcaf8157
[ "Apache-2.0" ]
null
null
null
src/el-functions-default.ads
My-Colaborations/ada-el
dba689d093357cda0722a1e650358fa5fcaf8157
[ "Apache-2.0" ]
null
null
null
----------------------------------------------------------------------- -- EL.Functions -- Default function mapper -- Copyright (C) 2009, 2010 Stephane Carrez -- Written by Stephane Carrez ([email protected]) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law or agreed to in writing, software -- distributed under the License is distributed on an "AS IS" BASIS, -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -- See the License for the specific language governing permissions and -- limitations under the License. ----------------------------------------------------------------------- -- The default function mapper allows to register -- The expression context provides information to resolve runtime -- information when evaluating an expression. The context provides -- a resolver whose role is to find variables given their name. private with Ada.Strings.Unbounded; private with Ada.Containers.Indefinite_Hashed_Maps; private with Ada.Strings.Unbounded.Hash; package EL.Functions.Default is -- ------------------------------ -- Default Function mapper -- ------------------------------ -- type Default_Function_Mapper is new Function_Mapper with private; -- Find the function knowing its name. function Get_Function (Mapper : Default_Function_Mapper; Namespace : String; Name : String) return Function_Access; -- Bind a name to a function. procedure Set_Function (Mapper : in out Default_Function_Mapper; Namespace : in String; Name : in String; Func : in Function_Access); -- Truncate the string representation represented by <b>Value</b> to -- the length specified by <b>Size</b>. function Truncate (Value : EL.Objects.Object; Size : EL.Objects.Object) return EL.Objects.Object; private use Ada.Strings.Unbounded; package Function_Maps is new Ada.Containers.Indefinite_Hashed_Maps (Key_Type => Unbounded_String, Element_Type => Function_Access, Hash => Ada.Strings.Unbounded.Hash, Equivalent_Keys => "="); type Default_Function_Mapper is new Function_Mapper with record Map : Function_Maps.Map; end record; end EL.Functions.Default;
41.924242
80
0.589808
5056080d4bf3f87335704d270b2992864e3b2e67
5,739
ads
Ada
Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/a-stouut.ads
djamal2727/Main-Bearing-Analytical-Model
2f00c2219c71be0175c6f4f8f1d4cca231d97096
[ "Apache-2.0" ]
null
null
null
Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/a-stouut.ads
djamal2727/Main-Bearing-Analytical-Model
2f00c2219c71be0175c6f4f8f1d4cca231d97096
[ "Apache-2.0" ]
null
null
null
Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/a-stouut.ads
djamal2727/Main-Bearing-Analytical-Model
2f00c2219c71be0175c6f4f8f1d4cca231d97096
[ "Apache-2.0" ]
null
null
null
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ADA.STRINGS.TEXT_OUTPUT.UTILS -- -- -- -- S p e c -- -- -- -- Copyright (C) 2020, Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 3, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. -- -- -- -- As a special exception under Section 7 of GPL version 3, you are granted -- -- additional permissions described in the GCC Runtime Library Exception, -- -- version 3.1, as published by the Free Software Foundation. -- -- -- -- You should have received a copy of the GNU General Public License and -- -- a copy of the GCC Runtime Library Exception along with this program; -- -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see -- -- <http://www.gnu.org/licenses/>. -- -- -- -- GNAT was originally developed by the GNAT team at New York University. -- -- Extensive contributions were provided by Ada Core Technologies Inc. -- -- -- ------------------------------------------------------------------------------ package Ada.Strings.Text_Output.Utils with Pure is -- This package provides utility functions on Sink'Class. These are -- intended for use by Put_Image attributes, both the default versions -- generated by the compiler, and user-defined ones. procedure Full (S : in out Sink'Class) with Inline; -- Must be called when the current chunk is full. Dispatches to -- Full_Method. procedure Flush (S : in out Sink'Class) with Inline; -- Dispatches to Flush_Method -- Full_Method and Flush_Method should be called only via Full and Flush procedure Put_Character (S : in out Sink'Class; Item : Character); procedure Put_Wide_Character (S : in out Sink'Class; Item : Wide_Character); procedure Put_Wide_Wide_Character (S : in out Sink'Class; Item : Wide_Wide_Character); procedure Put_String (S : in out Sink'Class; Item : String); procedure Put_Wide_String (S : in out Sink'Class; Item : Wide_String); procedure Put_Wide_Wide_String (S : in out Sink'Class; Item : Wide_Wide_String); -- Encode characters or strings as UTF-8, and send them to S. subtype Character_7 is Character range Character'Val (0) .. Character'Val (2**7 - 1); -- 7-bit character. These are the same in both Latin-1 and UTF-8. procedure Put_7bit (S : in out Sink'Class; Item : Character_7) with Inline, Pre => Item /= NL; procedure Put_7bit_NL (S : in out Sink'Class; Item : Character_7) with Inline; -- Put a 7-bit character, and adjust the Column. For Put_7bit_NL, Item can -- be NL. procedure Put_UTF_8 (S : in out Sink'Class; Item : UTF_8) with Inline; procedure Put_UTF_8_Lines (S : in out Sink'Class; Item : UTF_8_Lines); -- Send data that is already UTF-8 encoded (including 7-bit ASCII) to -- S. These are more efficient than Put_String. procedure New_Line (S : in out Sink'Class) with Inline, Post => Column (S) = 1; -- Puts the new-line character. function Column (S : Sink'Class) return Positive with Inline; -- Current output column. The Column is initially 1, and is incremented for -- each 7-bit character output, except for the new-line character, which -- sets Column back to 1. The next character to be output will go in this -- column. procedure Tab_To_Column (S : in out Sink'Class; Column : Positive); -- Put spaces until we're at or past Column. procedure Set_Indentation (S : in out Sink'Class; Amount : Natural) with Inline; function Indentation (S : Sink'Class) return Natural with Inline; -- Indentation is initially 0. Set_Indentation sets it, and Indentation -- returns it. This number of space characters are put at the start of -- each nonempty line. subtype Optional_Indentation is Integer range -1 .. Natural'Last; Default : constant Optional_Indentation := -1; procedure Indent (S : in out Sink'Class; Amount : Optional_Indentation := Default) with Inline; procedure Outdent (S : in out Sink'Class; Amount : Optional_Indentation := Default) with Inline; -- Increase/decrease Indentation by Amount. If Amount = Default, the amount -- specified by the Indent_Amount parameter of the sink creation function -- is used. The sink creation functions are New_Buffer, Create_File, and -- Create_New_File. end Ada.Strings.Text_Output.Utils;
53.138889
79
0.565604
0b9d926330cee3371688118ab1a92a92acfef4bf
2,983
ads
Ada
tools/scitools/conf/understand/ada/ada12/s-pack57.ads
brucegua/moocos
575c161cfa35e220f10d042e2e5ca18773691695
[ "Apache-2.0" ]
1
2020-01-20T21:26:46.000Z
2020-01-20T21:26:46.000Z
tools/scitools/conf/understand/ada/ada12/s-pack57.ads
brucegua/moocos
575c161cfa35e220f10d042e2e5ca18773691695
[ "Apache-2.0" ]
null
null
null
tools/scitools/conf/understand/ada/ada12/s-pack57.ads
brucegua/moocos
575c161cfa35e220f10d042e2e5ca18773691695
[ "Apache-2.0" ]
null
null
null
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- S Y S T E M . P A C K _ 5 7 -- -- -- -- S p e c -- -- -- -- Copyright (C) 1992-2009, Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 3, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. -- -- -- -- -- -- -- -- -- -- -- -- You should have received a copy of the GNU General Public License and -- -- a copy of the GCC Runtime Library Exception along with this program; -- -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see -- -- <http://www.gnu.org/licenses/>. -- -- -- -- GNAT was originally developed by the GNAT team at New York University. -- -- Extensive contributions were provided by Ada Core Technologies Inc. -- -- -- ------------------------------------------------------------------------------ -- Handling of packed arrays with Component_Size = 57 package System.Pack_57 is pragma Preelaborate; Bits : constant := 57; type Bits_57 is mod 2 ** Bits; for Bits_57'Size use Bits; function Get_57 (Arr : System.Address; N : Natural) return Bits_57; -- Arr is the address of the packed array, N is the zero-based -- subscript. This element is extracted and returned. procedure Set_57 (Arr : System.Address; N : Natural; E : Bits_57); -- 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_57;
58.490196
78
0.376802
1cee824e9b5b386787cc3787ae8361f50f6aa8f4
2,917
ada
Ada
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/cd/cd5014k.ada
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
7
2020-05-02T17:34:05.000Z
2021-10-17T10:15:18.000Z
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/cd/cd5014k.ada
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
null
null
null
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/cd/cd5014k.ada
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
2
2020-07-27T00:22:36.000Z
2021-04-01T09:41:02.000Z
-- CD5014K.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 AN ADDRESS CLAUSE CAN BE GIVEN IN THE PRIVATE PART -- OF A GENERIC PACKAGE SPECIFICATION FOR A VARIABLE OF A RECORD -- TYPE, WHERE THE VARIABLE IS DECLARED IN THE VISIBLE PART OF THE -- SPECIFICATION. -- HISTORY: -- CDJ 07/24/87 CREATED ORIGINAL TEST. -- BCB 10/01/87 CHANGED TEST TO STANDARD FORMAT. -- PWB 05/11/89 CHANGED EXTENSION FROM '.DEP' TO '.ADA'. -- MCH 04/03/90 ADDED INSTANTIATION. WITH SYSTEM; USE SYSTEM; WITH SPPRT13; USE SPPRT13; WITH REPORT; USE REPORT; PROCEDURE CD5014K IS BEGIN TEST ("CD5014K", " AN ADDRESS CLAUSE CAN BE GIVEN " & "IN THE PRIVATE PART OF A GENERIC PACKAGE " & "SPECIFICATION FOR A VARIABLE OF A RECORD " & "TYPE, WHERE THE VARIABLE IS DECLARED IN THE " & "VISIBLE PART OF THE SPECIFICATION"); DECLARE GENERIC PACKAGE PKG IS TYPE REC_TYPE IS RECORD VAL : INTEGER; END RECORD; REC_OBJ1 : REC_TYPE := (VAL => 10); PRIVATE FOR REC_OBJ1 USE AT VARIABLE_ADDRESS; END PKG; PACKAGE BODY PKG IS BEGIN IF EQUAL(3,3) THEN REC_OBJ1.VAL := 100; END IF; IF REC_OBJ1.VAL /= 100 THEN FAILED ("INCORRECT VALUE FOR RECORD VARIABLE COMPONENT"); END IF; IF REC_OBJ1'ADDRESS /= VARIABLE_ADDRESS THEN FAILED ("INCORRECT ADDRESS FOR RECORD VARIABLE"); END IF; END PKG; PACKAGE INSTANTIATE IS NEW PKG; BEGIN NULL; END; RESULT; END CD5014K;
33.147727
79
0.619472
0b3353620a286b09c16d3b70e19d7adc338edd76
1,680
adb
Ada
Ada/DataStructures/Containers/generic_stack.adb
egustafson/sandbox
9804e966347b33558b0497a04edb1a591d2d7773
[ "Apache-2.0" ]
2
2019-09-27T21:25:26.000Z
2019-12-29T11:26:54.000Z
Ada/DataStructures/Containers/generic_stack.adb
egustafson/sandbox
9804e966347b33558b0497a04edb1a591d2d7773
[ "Apache-2.0" ]
7
2020-08-11T17:32:14.000Z
2020-08-11T17:32:39.000Z
Ada/DataStructures/Containers/generic_stack.adb
egustafson/sandbox
9804e966347b33558b0497a04edb1a591d2d7773
[ "Apache-2.0" ]
2
2016-07-18T10:55:50.000Z
2020-08-19T01:46:08.000Z
with Ada.Unchecked_Deallocation; package body Generic_Stack is procedure Free is new Ada.Unchecked_Deallocation( Stack_Node, Stack_Node_Ptr ); ------------------------------------------------------------ procedure Push( Stack: in out T; Element: in Element_Type ) is New_Node : Stack_Node_Ptr := new Stack_Node'( Data => Element, Next => Stack.Head ); begin Stack.Head := New_Node; end Push; ------------------------------------------------------------ procedure Pop( Stack: in out T; Element: out Element_Type ) is Old_Head : Stack_Node_Ptr := Stack.Head; begin if Stack.Head = null then raise Underflow; end if; Stack.Head := Old_Head.Next; Element := Old_Head.Data; Free( Old_Head ); end Pop; ------------------------------------------------------------ procedure Peek( Stack: in out T; Element: out Element_Type ) is begin if Stack.Head = null then raise Underflow; end if; Element := Stack.Head.Data; end Peek; ------------------------------------------------------------ function Empty( Stack: in T ) return Boolean is begin return Stack.Head = null; end Empty; ------------------------------------------------------------ procedure Reset( Stack: in out T ) is Old_Head : Stack_Node_Ptr := Stack.Head; begin while Old_Head /= null loop Stack.Head := Old_Head.Next; Free( Old_Head ); Old_Head := Stack.Head; end loop; end Reset; end Generic_Stack;
24.347826
73
0.468452
4d8840d6f6a1f8a1085616d304a80354f5ba5957
7,060
ads
Ada
source/amf/uml/amf-uml-object_nodes.ads
svn2github/matreshka
9d222b3ad9da508855fb1f5adbe5e8a4fad4c530
[ "BSD-3-Clause" ]
24
2016-11-29T06:59:41.000Z
2021-08-30T11:55:16.000Z
source/amf/uml/amf-uml-object_nodes.ads
svn2github/matreshka
9d222b3ad9da508855fb1f5adbe5e8a4fad4c530
[ "BSD-3-Clause" ]
2
2019-01-16T05:15:20.000Z
2019-02-03T10:03:32.000Z
source/amf/uml/amf-uml-object_nodes.ads
svn2github/matreshka
9d222b3ad9da508855fb1f5adbe5e8a4fad4c530
[ "BSD-3-Clause" ]
4
2017-07-18T07:11:05.000Z
2020-06-21T03:02:25.000Z
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- Ada Modeling Framework -- -- -- -- Runtime Library Component -- -- -- ------------------------------------------------------------------------------ -- -- -- Copyright © 2011-2012, Vadim Godunko <[email protected]> -- -- All rights reserved. -- -- -- -- Redistribution and use in source and binary forms, with or without -- -- modification, are permitted provided that the following conditions -- -- are met: -- -- -- -- * Redistributions of source code must retain the above copyright -- -- notice, this list of conditions and the following disclaimer. -- -- -- -- * Redistributions in binary form must reproduce the above copyright -- -- notice, this list of conditions and the following disclaimer in the -- -- documentation and/or other materials provided with the distribution. -- -- -- -- * Neither the name of the Vadim Godunko, IE nor the names of its -- -- contributors may be used to endorse or promote products derived from -- -- this software without specific prior written permission. -- -- -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- -- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -- -- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -- -- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -- -- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED -- -- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -- -- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -- -- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -- -- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -- -- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- -- -- ------------------------------------------------------------------------------ -- $Revision$ $Date$ ------------------------------------------------------------------------------ -- This file is generated, don't edit it. ------------------------------------------------------------------------------ -- Object nodes have support for token selection, limitation on the number of -- tokens, specifying the state required for tokens, and carrying control -- values. -- -- An object node is an abstract activity node that is part of defining -- object flow in an activity. ------------------------------------------------------------------------------ with AMF.UML.Activity_Nodes; limited with AMF.UML.Behaviors; limited with AMF.UML.States.Collections; with AMF.UML.Typed_Elements; limited with AMF.UML.Value_Specifications; package AMF.UML.Object_Nodes is pragma Preelaborate; type UML_Object_Node is limited interface and AMF.UML.Activity_Nodes.UML_Activity_Node and AMF.UML.Typed_Elements.UML_Typed_Element; type UML_Object_Node_Access is access all UML_Object_Node'Class; for UML_Object_Node_Access'Storage_Size use 0; not overriding function Get_In_State (Self : not null access constant UML_Object_Node) return AMF.UML.States.Collections.Set_Of_UML_State is abstract; -- Getter of ObjectNode::inState. -- -- The required states of the object available at this point in the -- activity. not overriding function Get_Is_Control_Type (Self : not null access constant UML_Object_Node) return Boolean is abstract; -- Getter of ObjectNode::isControlType. -- -- Tells whether the type of the object node is to be treated as control. not overriding procedure Set_Is_Control_Type (Self : not null access UML_Object_Node; To : Boolean) is abstract; -- Setter of ObjectNode::isControlType. -- -- Tells whether the type of the object node is to be treated as control. not overriding function Get_Ordering (Self : not null access constant UML_Object_Node) return AMF.UML.UML_Object_Node_Ordering_Kind is abstract; -- Getter of ObjectNode::ordering. -- -- Tells whether and how the tokens in the object node are ordered for -- selection to traverse edges outgoing from the object node. not overriding procedure Set_Ordering (Self : not null access UML_Object_Node; To : AMF.UML.UML_Object_Node_Ordering_Kind) is abstract; -- Setter of ObjectNode::ordering. -- -- Tells whether and how the tokens in the object node are ordered for -- selection to traverse edges outgoing from the object node. not overriding function Get_Selection (Self : not null access constant UML_Object_Node) return AMF.UML.Behaviors.UML_Behavior_Access is abstract; -- Getter of ObjectNode::selection. -- -- Selects tokens for outgoing edges. not overriding procedure Set_Selection (Self : not null access UML_Object_Node; To : AMF.UML.Behaviors.UML_Behavior_Access) is abstract; -- Setter of ObjectNode::selection. -- -- Selects tokens for outgoing edges. not overriding function Get_Upper_Bound (Self : not null access constant UML_Object_Node) return AMF.UML.Value_Specifications.UML_Value_Specification_Access is abstract; -- Getter of ObjectNode::upperBound. -- -- The maximum number of tokens allowed in the node. Objects cannot flow -- into the node if the upper bound is reached. not overriding procedure Set_Upper_Bound (Self : not null access UML_Object_Node; To : AMF.UML.Value_Specifications.UML_Value_Specification_Access) is abstract; -- Setter of ObjectNode::upperBound. -- -- The maximum number of tokens allowed in the node. Objects cannot flow -- into the node if the upper bound is reached. end AMF.UML.Object_Nodes;
50.428571
86
0.554249
50c297df15d1d8d086694a0422f6ccfa7e5cf3d5
1,061
adb
Ada
gdb/testsuite/gdb.ada/mi_var_array/bar.adb
greyblue9/binutils-gdb
05377632b124fe7600eea7f4ee0e9a35d1b0cbdc
[ "BSD-3-Clause" ]
1
2020-10-14T03:24:35.000Z
2020-10-14T03:24:35.000Z
gdb/testsuite/gdb.ada/mi_var_array/bar.adb
greyblue9/binutils-gdb
05377632b124fe7600eea7f4ee0e9a35d1b0cbdc
[ "BSD-3-Clause" ]
null
null
null
gdb/testsuite/gdb.ada/mi_var_array/bar.adb
greyblue9/binutils-gdb
05377632b124fe7600eea7f4ee0e9a35d1b0cbdc
[ "BSD-3-Clause" ]
null
null
null
-- Copyright 2015-2021 Free Software Foundation, Inc. -- -- This program is free software; you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation; either version 3 of the License, or -- (at your option) any later version. -- -- This program is distributed in the hope that it will be useful, -- but WITHOUT ANY WARRANTY; without even the implied warranty of -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -- GNU General Public License for more details. -- -- You should have received a copy of the GNU General Public License -- along with this program. If not, see <http://www.gnu.org/licenses/>. with Pck; use Pck; procedure Bar is M : Integer := 35; subtype Int is Integer range 0 .. M; type Variant_Type (N : Int := 0) is record F : String(1 .. N) := (others => 'x'); end record; type Variant_Type_Access is access all Variant_Type; VTA : Variant_Type_Access; begin Do_Nothing (VTA'Address); -- STOP end Bar;
35.366667
73
0.704995
5006d052f4924ca533683d9c182d40c067f576bd
6,228
ads
Ada
include/sf-network-ipaddress.ads
danva994/ASFML-1.6
bd74ae700843338a15aef295f99297b866aa0c93
[ "Zlib" ]
1
2017-10-07T06:20:38.000Z
2017-10-07T06:20:38.000Z
include/sf-network-ipaddress.ads
danva994/ASFML-1.6
bd74ae700843338a15aef295f99297b866aa0c93
[ "Zlib" ]
3
2020-09-15T21:19:34.000Z
2022-03-02T23:13:46.000Z
include/sf-network-ipaddress.ads
danva994/ASFML-1.6
bd74ae700843338a15aef295f99297b866aa0c93
[ "Zlib" ]
2
2020-09-26T21:16:43.000Z
2022-01-16T19:36:48.000Z
-- //////////////////////////////////////////////////////////// -- // -- // SFML - Simple and Fast Multimedia Library -- // Copyright (C) 2007-2009 Laurent Gomila ([email protected]) -- // -- // 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. -- // -- //////////////////////////////////////////////////////////// -- //////////////////////////////////////////////////////////// -- // Headers -- //////////////////////////////////////////////////////////// with Sf.Config; package Sf.Network.IPAddress is use Sf.Config; -- //////////////////////////////////////////////////////////// -- /// sfIPAddress provides easy manipulation of IP v4 addresses -- //////////////////////////////////////////////////////////// type sfAddress_Array is array (0 .. 15) of aliased sfInt8; type sfIPAddress is record Address : sfAddress_Array; end record; -- //////////////////////////////////////////////////////////// -- /// Construct an address from a string -- /// -- /// \param String : IP address ("xxx.xxx.xxx.xxx") or network name -- /// -- /// \return Resulting address -- /// -- //////////////////////////////////////////////////////////// function sfIPAddress_FromString (Str : String) return sfIPAddress; -- //////////////////////////////////////////////////////////// -- /// Construct an address from 4 bytes -- /// -- /// \param Byte0 : First byte of the address -- /// \param Byte1 : Second byte of the address -- /// \param Byte2 : Third byte of the address -- /// \param Byte3 : Fourth byte of the address -- /// -- /// \return Resulting address -- /// -- //////////////////////////////////////////////////////////// function sfIPAddress_FromBytes (Byte0 : sfUint8; Byte1 : sfUint8; Byte2 : sfUint8; Byte3 : sfUint8) return sfIPAddress; -- //////////////////////////////////////////////////////////// -- /// Construct the address from a 32-bits integer -- /// -- /// \param Address : 4 bytes of the address packed into a 32-bits integer -- /// -- //////////////////////////////////////////////////////////// function sfIPAddress_FromInteger (Address : sfUint32) return sfIPAddress; -- //////////////////////////////////////////////////////////// -- /// Tell if an address is a valid one -- /// -- /// \param Address : Address to check -- /// -- /// \return sfTrue if address has a valid syntax -- /// -- //////////////////////////////////////////////////////////// function sfIPAddress_IsValid (Address : sfIPAddress) return sfBool; -- //////////////////////////////////////////////////////////// -- /// Get a string representation of an address -- /// -- /// \param Address : Address to convert -- /// \param String : Char array to fill (size must be >= 16) -- /// -- //////////////////////////////////////////////////////////// procedure sfIPAddress_ToString (Address : sfIPAddress; Str : out String); -- //////////////////////////////////////////////////////////// -- /// Get an integer representation of the address -- /// -- /// \param Address : Address to convert -- /// -- /// \return 32-bits integer containing the 4 bytes of the address, in system endianness -- /// -- //////////////////////////////////////////////////////////// function sfIPAddress_ToInteger (Address : sfIPAddress) return sfUint32; -- //////////////////////////////////////////////////////////// -- /// Get the computer's local IP address (from the LAN point of view) -- /// -- /// \return Local IP address -- /// -- //////////////////////////////////////////////////////////// function sfIPAddress_GetLocalAddress return sfIPAddress; -- //////////////////////////////////////////////////////////// -- /// Get the computer's public IP address (from the web point of view). -- /// The only way to get a public address is to ask it to a -- /// distant website ; as a consequence, this function may be -- /// very slow -- use it as few as possible ! -- /// -- /// \param Timeout : Maximum time to wait, in seconds (use 0 for no timeout) -- /// -- /// \return Public IP address -- /// -- //////////////////////////////////////////////////////////// function sfIPAddress_GetPublicAddress (Timeout : Float) return sfIPAddress; -- //////////////////////////////////////////////////////////// -- /// Get the computer's loopback address -- /// -- /// \return Local host IP address (127.0.0.1, or "localhost") -- /// -- //////////////////////////////////////////////////////////// function sfIPAddress_LocalHost return sfIPAddress; private pragma Convention (C, sfAddress_Array); pragma Convention (C_Pass_By_Copy, sfIPAddress); pragma Import (C, sfIPAddress_FromBytes, "sfIPAddress_FromBytes"); pragma Import (C, sfIPAddress_FromInteger, "sfIPAddress_FromInteger"); pragma Import (C, sfIPAddress_IsValid, "sfIPAddress_IsValid"); pragma Import (C, sfIPAddress_ToInteger, "sfIPAddress_ToInteger"); pragma Import (C, sfIPAddress_GetLocalAddress, "sfIPAddress_GetLocalAddress"); pragma Import (C, sfIPAddress_GetPublicAddress, "sfIPAddress_GetPublicAddress"); pragma Import (C, sfIPAddress_LocalHost, "sfIPAddress_LocalHost"); end Sf.Network.IPAddress;
41.798658
104
0.493256
4da71bc151eba28af1f1b7efb0d2e3780b0620ac
12,886
ads
Ada
Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/a-cborma.ads
djamal2727/Main-Bearing-Analytical-Model
2f00c2219c71be0175c6f4f8f1d4cca231d97096
[ "Apache-2.0" ]
null
null
null
Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/a-cborma.ads
djamal2727/Main-Bearing-Analytical-Model
2f00c2219c71be0175c6f4f8f1d4cca231d97096
[ "Apache-2.0" ]
null
null
null
Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/a-cborma.ads
djamal2727/Main-Bearing-Analytical-Model
2f00c2219c71be0175c6f4f8f1d4cca231d97096
[ "Apache-2.0" ]
null
null
null
------------------------------------------------------------------------------ -- -- -- GNAT LIBRARY COMPONENTS -- -- -- -- A D A . C O N T A I N E R S . B O U N D E D _ O R D E R E D _ M A P S -- -- -- -- S p e c -- -- -- -- Copyright (C) 2004-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 Ada.Iterator_Interfaces; private with Ada.Containers.Red_Black_Trees; private with Ada.Streams; private with Ada.Finalization; private with Ada.Strings.Text_Output; generic type Key_Type is private; type Element_Type is private; with function "<" (Left, Right : Key_Type) return Boolean is <>; with function "=" (Left, Right : Element_Type) return Boolean is <>; package Ada.Containers.Bounded_Ordered_Maps with SPARK_Mode => Off is pragma Annotate (CodePeer, Skip_Analysis); pragma Pure; pragma Remote_Types; function Equivalent_Keys (Left, Right : Key_Type) return Boolean; type Map (Capacity : Count_Type) is tagged private with Constant_Indexing => Constant_Reference, Variable_Indexing => Reference, Default_Iterator => Iterate, Iterator_Element => Element_Type, Aggregate => (Empty => Empty, Add_Named => Insert); pragma Preelaborable_Initialization (Map); type Cursor is private; pragma Preelaborable_Initialization (Cursor); Empty_Map : constant Map; function Empty (Capacity : Count_Type := 10) return Map; No_Element : constant Cursor; function Has_Element (Position : Cursor) return Boolean; package Map_Iterator_Interfaces is new Ada.Iterator_Interfaces (Cursor, Has_Element); function "=" (Left, Right : Map) return Boolean; function Length (Container : Map) return Count_Type; function Is_Empty (Container : Map) return Boolean; procedure Clear (Container : in out Map); function Key (Position : Cursor) return Key_Type; function Element (Position : Cursor) return Element_Type; procedure Replace_Element (Container : in out Map; Position : Cursor; New_Item : Element_Type); procedure Query_Element (Position : Cursor; Process : not null access procedure (Key : Key_Type; Element : Element_Type)); procedure Update_Element (Container : in out Map; Position : Cursor; Process : not null access procedure (Key : Key_Type; 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 Map; Position : Cursor) return Constant_Reference_Type; function Reference (Container : aliased in out Map; Position : Cursor) return Reference_Type; function Constant_Reference (Container : aliased Map; Key : Key_Type) return Constant_Reference_Type; function Reference (Container : aliased in out Map; Key : Key_Type) return Reference_Type; procedure Assign (Target : in out Map; Source : Map); function Copy (Source : Map; Capacity : Count_Type := 0) return Map; procedure Move (Target : in out Map; Source : in out Map); procedure Insert (Container : in out Map; Key : Key_Type; New_Item : Element_Type; Position : out Cursor; Inserted : out Boolean); procedure Insert (Container : in out Map; Key : Key_Type; Position : out Cursor; Inserted : out Boolean); procedure Insert (Container : in out Map; Key : Key_Type; New_Item : Element_Type); procedure Include (Container : in out Map; Key : Key_Type; New_Item : Element_Type); procedure Replace (Container : in out Map; Key : Key_Type; New_Item : Element_Type); procedure Exclude (Container : in out Map; Key : Key_Type); procedure Delete (Container : in out Map; Key : Key_Type); procedure Delete (Container : in out Map; Position : in out Cursor); procedure Delete_First (Container : in out Map); procedure Delete_Last (Container : in out Map); function First (Container : Map) return Cursor; function First_Element (Container : Map) return Element_Type; function First_Key (Container : Map) return Key_Type; function Last (Container : Map) return Cursor; function Last_Element (Container : Map) return Element_Type; function Last_Key (Container : Map) return Key_Type; function Next (Position : Cursor) return Cursor; procedure Next (Position : in out Cursor); function Previous (Position : Cursor) return Cursor; procedure Previous (Position : in out Cursor); function Find (Container : Map; Key : Key_Type) return Cursor; function Element (Container : Map; Key : Key_Type) return Element_Type; function Floor (Container : Map; Key : Key_Type) return Cursor; function Ceiling (Container : Map; Key : Key_Type) return Cursor; function Contains (Container : Map; Key : Key_Type) return Boolean; function "<" (Left, Right : Cursor) return Boolean; function ">" (Left, Right : Cursor) return Boolean; function "<" (Left : Cursor; Right : Key_Type) return Boolean; function ">" (Left : Cursor; Right : Key_Type) return Boolean; function "<" (Left : Key_Type; Right : Cursor) return Boolean; function ">" (Left : Key_Type; Right : Cursor) return Boolean; procedure Iterate (Container : Map; Process : not null access procedure (Position : Cursor)); procedure Reverse_Iterate (Container : Map; Process : not null access procedure (Position : Cursor)); function Iterate (Container : Map) return Map_Iterator_Interfaces.Reversible_Iterator'Class; function Iterate (Container : Map; Start : Cursor) return Map_Iterator_Interfaces.Reversible_Iterator'Class; private use Ada.Finalization; pragma Inline (Next); pragma Inline (Previous); type Node_Type is record Parent : Count_Type; Left : Count_Type; Right : Count_Type; Color : Red_Black_Trees.Color_Type := Red_Black_Trees.Red; Key : Key_Type; Element : aliased Element_Type; end record; package Tree_Types is new Red_Black_Trees.Generic_Bounded_Tree_Types (Node_Type); type Map (Capacity : Count_Type) is new Tree_Types.Tree_Type (Capacity) with null record with Put_Image => Put_Image; procedure Put_Image (S : in out Ada.Strings.Text_Output.Sink'Class; V : Map); use Red_Black_Trees; use Tree_Types, Tree_Types.Implementation; use Ada.Streams; procedure Write (Stream : not null access Root_Stream_Type'Class; Container : Map); for Map'Write use Write; procedure Read (Stream : not null access Root_Stream_Type'Class; Container : out Map); for Map'Read use Read; type Map_Access is access all Map; for Map_Access'Storage_Size use 0; type Cursor is record Container : Map_Access; Node : Count_Type := 0; end record; procedure Write (Stream : not null access Root_Stream_Type'Class; Item : Cursor); for Cursor'Write use Write; procedure Read (Stream : not null access Root_Stream_Type'Class; Item : out Cursor); for Cursor'Read use Read; subtype Reference_Control_Type is Implementation.Reference_Control_Type; -- It is necessary to rename this here, so that the compiler can find it type Constant_Reference_Type (Element : not null access constant Element_Type) is record Control : Reference_Control_Type := raise Program_Error with "uninitialized reference"; -- The RM says, "The default initialization of an object of -- type Constant_Reference_Type or Reference_Type propagates -- Program_Error." end record; procedure Read (Stream : not null access Root_Stream_Type'Class; Item : out Constant_Reference_Type); for Constant_Reference_Type'Read use Read; procedure Write (Stream : not null access Root_Stream_Type'Class; Item : Constant_Reference_Type); for Constant_Reference_Type'Write use Write; type Reference_Type (Element : not null access Element_Type) is record Control : Reference_Control_Type := raise Program_Error with "uninitialized reference"; -- The RM says, "The default initialization of an object of -- type Constant_Reference_Type or Reference_Type propagates -- Program_Error." end record; procedure Read (Stream : not null access Root_Stream_Type'Class; Item : out Reference_Type); for Reference_Type'Read use Read; procedure Write (Stream : not null access Root_Stream_Type'Class; Item : Reference_Type); for Reference_Type'Write use Write; -- Three operations are used to optimize in the expansion of "for ... of" -- loops: the Next(Cursor) procedure in the visible part, and the following -- Pseudo_Reference and Get_Element_Access functions. See Sem_Ch5 for -- details. function Pseudo_Reference (Container : aliased Map'Class) return Reference_Control_Type; pragma Inline (Pseudo_Reference); -- Creates an object of type Reference_Control_Type pointing to the -- container, and increments the Lock. Finalization of this object will -- decrement the Lock. type Element_Access is access all Element_Type with Storage_Size => 0; function Get_Element_Access (Position : Cursor) return not null Element_Access; -- Returns a pointer to the element designated by Position. Empty_Map : constant Map := Map'(Tree_Type with Capacity => 0); No_Element : constant Cursor := Cursor'(null, 0); type Iterator is new Limited_Controlled and Map_Iterator_Interfaces.Reversible_Iterator with record Container : Map_Access; Node : Count_Type; end record with Disable_Controlled => not T_Check; overriding procedure Finalize (Object : in out Iterator); overriding function First (Object : Iterator) return Cursor; overriding function Last (Object : Iterator) return Cursor; overriding function Next (Object : Iterator; Position : Cursor) return Cursor; overriding function Previous (Object : Iterator; Position : Cursor) return Cursor; end Ada.Containers.Bounded_Ordered_Maps;
33.21134
79
0.629753
4db82b9ec28393de9ae5004989571854ddbcd8ab
405
ads
Ada
specs/ada/common/tkmrpc-response-ike-isa_create-convert.ads
DrenfongWong/tkm-rpc
075d22871cf81d497aac656c7f03a513278b641c
[ "BSD-3-Clause" ]
null
null
null
specs/ada/common/tkmrpc-response-ike-isa_create-convert.ads
DrenfongWong/tkm-rpc
075d22871cf81d497aac656c7f03a513278b641c
[ "BSD-3-Clause" ]
null
null
null
specs/ada/common/tkmrpc-response-ike-isa_create-convert.ads
DrenfongWong/tkm-rpc
075d22871cf81d497aac656c7f03a513278b641c
[ "BSD-3-Clause" ]
null
null
null
with Ada.Unchecked_Conversion; package Tkmrpc.Response.Ike.Isa_Create.Convert is function To_Response is new Ada.Unchecked_Conversion ( Source => Isa_Create.Response_Type, Target => Response.Data_Type); function From_Response is new Ada.Unchecked_Conversion ( Source => Response.Data_Type, Target => Isa_Create.Response_Type); end Tkmrpc.Response.Ike.Isa_Create.Convert;
28.928571
59
0.758025
126797117dee97a16954cadbfe7c8e2a617390ec
3,696
ads
Ada
tools/scitools/conf/understand/ada/ada95/s-valint.ads
brucegua/moocos
575c161cfa35e220f10d042e2e5ca18773691695
[ "Apache-2.0" ]
1
2020-01-20T21:26:46.000Z
2020-01-20T21:26:46.000Z
tools/scitools/conf/understand/ada/ada95/s-valint.ads
brucegua/moocos
575c161cfa35e220f10d042e2e5ca18773691695
[ "Apache-2.0" ]
null
null
null
tools/scitools/conf/understand/ada/ada95/s-valint.ads
brucegua/moocos
575c161cfa35e220f10d042e2e5ca18773691695
[ "Apache-2.0" ]
null
null
null
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- S Y S T E M . V A L _ I N T -- -- -- -- S p e c -- -- -- -- $Revision: 2 $ -- -- -- -- Copyright (c) 1992,1993,1994 NYU, All Rights Reserved -- -- -- -- The GNAT library is free software; you can redistribute it and/or modify -- -- it under terms of the GNU Library General Public License as published by -- -- the Free Software Foundation; either version 2, or (at your option) any -- -- later version. The GNAT library is distributed in the hope that it will -- -- be useful, but WITHOUT ANY WARRANTY; without even the implied warranty -- -- of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -- -- Library General Public License for more details. You should have -- -- received a copy of the GNU Library General Public License along with -- -- the GNAT library; see the file COPYING.LIB. If not, write to the Free -- -- Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. -- -- -- ------------------------------------------------------------------------------ package System.Val_Int is pragma Pure (Val_Int); function Scan_Integer (Str : String; Ptr : access Positive'Base; Max : Positive'Base) return Integer; -- This function scans the string starting at Str (Ptr.all) for a valid -- integer according to the syntax described in (RM 3.5(43)). The substring -- scanned extends no further than Str (Max). There are three cases for the -- return: -- -- If a valid integer is found after scanning past any initial spaces, then -- Ptr.all is updated past the last character of the integer (but trailing -- spaces are not scanned out). -- -- If no valid integer is found, then Ptr.all points either to an initial -- non-digit character, or to Max + 1 if the field is all spaces and the -- exception Constraint_Error is raised. -- -- If a syntactically valid integer is scanned, but the value is out of -- range, or, in the based case, the base value is out of range or there -- is an out of range digit, then Ptr.all points past the integer, and -- Constraint_Error is raised. -- -- Note: these rules correspond to the requirements for leaving the pointer -- positioned in Text_Io.Get -- -- Note: if Str is null, i.e. if Max is less than Ptr, then this is a -- special case of an all-blank string, and Ptr is unchanged, and hence -- is greater than Max as required in this case. function Value_Integer (Str : String) return Integer; -- Used in computing X'Value (Str) where X is a signed integer type whose -- base range does not exceed the base range of Integer. Str is the string -- argument of the attribute. Constraint_Error is raised if the string is -- malformed, or if the value is out of range. end System.Val_Int;
56
79
0.510552
4dbe65bd492c7afb473b4d3f53c497ae2d1475b6
3,061
ads
Ada
source/distributed/machine-w64-mingw32/s-natpro.ads
ytomino/drake
4e4bdcd8b8e23a11a29b31d3a8861fdf60090ea2
[ "MIT" ]
33
2015-04-04T09:19:36.000Z
2021-11-10T05:33:34.000Z
source/distributed/machine-w64-mingw32/s-natpro.ads
ytomino/drake
4e4bdcd8b8e23a11a29b31d3a8861fdf60090ea2
[ "MIT" ]
8
2017-11-14T13:05:07.000Z
2018-08-09T15:28:49.000Z
source/distributed/machine-w64-mingw32/s-natpro.ads
ytomino/drake
4e4bdcd8b8e23a11a29b31d3a8861fdf60090ea2
[ "MIT" ]
9
2015-02-03T17:09:53.000Z
2021-11-12T01:16:05.000Z
pragma License (Unrestricted); -- implementation unit specialized for Windows with Ada.Command_Line; with Ada.IO_Exceptions; with Ada.Streams.Naked_Stream_IO; with C.winbase; with C.winnt; package System.Native_Processes is subtype Command_Type is C.winnt.LPWSTR; procedure Free (X : in out Command_Type); function Image (Command : Command_Type) return String; procedure Value ( Command_Line : String; Command : aliased out Command_Type); pragma Inline (Image); procedure Append ( Command : aliased in out Command_Type; New_Item : String); procedure Append ( Command : aliased in out Command_Type; First : Positive; Last : Natural); -- Copy arguments from argv. procedure Append_Argument ( Command_Line : in out String; Last : in out Natural; Argument : String); -- Child process type type Process is record Handle : C.winnt.HANDLE; end record; -- [gcc-7.3] crashes if "type Process is new C.winnt.HANDLE;" pragma Suppress_Initialization (Process); Null_Process : constant Process := (Handle => C.winbase.INVALID_HANDLE_VALUE); -- Child process management function Is_Open (Child : Process) return Boolean; pragma Inline (Is_Open); Process_Disable_Controlled : constant Boolean := False; procedure Create ( Child : in out Process; Command : Command_Type; Directory : String := ""; Search_Path : Boolean := False; Input : Ada.Streams.Naked_Stream_IO.Non_Controlled_File_Type; Output : Ada.Streams.Naked_Stream_IO.Non_Controlled_File_Type; Error : Ada.Streams.Naked_Stream_IO.Non_Controlled_File_Type); procedure Create ( Child : in out Process; Command_Line : String; Directory : String := ""; Search_Path : Boolean := False; Input : Ada.Streams.Naked_Stream_IO.Non_Controlled_File_Type; Output : Ada.Streams.Naked_Stream_IO.Non_Controlled_File_Type; Error : Ada.Streams.Naked_Stream_IO.Non_Controlled_File_Type); procedure Close (Child : in out Process); procedure Wait ( Child : in out Process; Status : out Ada.Command_Line.Exit_Status); procedure Wait_Immediate ( Child : in out Process; Terminated : out Boolean; Status : out Ada.Command_Line.Exit_Status); procedure Forced_Abort_Process (Child : Process); procedure Abort_Process (Child : Process) renames Forced_Abort_Process; -- Should it use CREATE_NEW_PROCESS_GROUP and GenerateConsoleCtrlEvent? -- Pass a command to the shell procedure Shell ( Command : Command_Type; Status : out Ada.Command_Line.Exit_Status); procedure Shell ( Command_Line : String; Status : out Ada.Command_Line.Exit_Status); -- Exceptions Name_Error : exception renames Ada.IO_Exceptions.Name_Error; Use_Error : exception renames Ada.IO_Exceptions.Use_Error; Device_Error : exception renames Ada.IO_Exceptions.Device_Error; end System.Native_Processes;
28.877358
78
0.697484
120657fc47e8426dc0a941443e48790af6055e89
37,068
adb
Ada
llvm-gcc-4.2-2.9/gcc/ada/s-taprop-tru64.adb
vidkidz/crossbridge
ba0bf94aee0ce6cf7eb5be882382e52bc57ba396
[ "MIT" ]
1
2016-04-09T02:58:13.000Z
2016-04-09T02:58:13.000Z
llvm-gcc-4.2-2.9/gcc/ada/s-taprop-tru64.adb
vidkidz/crossbridge
ba0bf94aee0ce6cf7eb5be882382e52bc57ba396
[ "MIT" ]
null
null
null
llvm-gcc-4.2-2.9/gcc/ada/s-taprop-tru64.adb
vidkidz/crossbridge
ba0bf94aee0ce6cf7eb5be882382e52bc57ba396
[ "MIT" ]
null
null
null
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- S Y S T E M . T A S K _ P R I M I T I V E S . O P E R A T I O N S -- -- -- -- B o d y -- -- -- -- Copyright (C) 1992-2006, Free Software Foundation, Inc. -- -- -- -- GNARL is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 2, or (at your option) any later ver- -- -- sion. GNARL is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License -- -- for more details. You should have received a copy of the GNU General -- -- Public License distributed with GNARL; see file COPYING. If not, write -- -- to the Free Software Foundation, 51 Franklin Street, Fifth Floor, -- -- Boston, MA 02110-1301, USA. -- -- -- -- As a special exception, if other files instantiate generics from this -- -- unit, or you link this unit with other files to produce an executable, -- -- this unit does not by itself cause the resulting executable to be -- -- covered by the GNU General Public License. This exception does not -- -- however invalidate any other reasons why the executable file might be -- -- covered by the GNU Public License. -- -- -- -- GNARL was developed by the GNARL team at Florida State University. -- -- Extensive contributions were provided by Ada Core Technologies, Inc. -- -- -- ------------------------------------------------------------------------------ -- This is a DEC Unix 4.0d version of this package -- This package contains all the GNULL primitives that interface directly -- with the underlying OS. 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 System.Tasking.Debug; -- used for Known_Tasks with System.Interrupt_Management; -- used for Keep_Unmasked -- Abort_Task_Interrupt -- Interrupt_ID with System.OS_Primitives; -- used for Delay_Modes with System.Task_Info; -- used for Task_Info_Type with Interfaces; -- used for Shift_Left with Interfaces.C; -- used for int -- size_t with System.Soft_Links; -- used for Abort_Defer/Undefer -- We use System.Soft_Links instead of System.Tasking.Initialization -- because the later is a higher level package that we shouldn't depend on. -- For example when using the restricted run time, it is replaced by -- System.Tasking.Restricted.Stages. with Unchecked_Deallocation; package body System.Task_Primitives.Operations is package SSL renames System.Soft_Links; use System.Tasking.Debug; use System.Tasking; use Interfaces.C; use System.OS_Interface; use System.Parameters; use System.OS_Primitives; ---------------- -- Local Data -- ---------------- -- The followings are logically constants, but need to be initialized -- at run time. Single_RTS_Lock : aliased RTS_Lock; -- This is a lock to allow only one thread of control in the RTS at -- a time; it is used to execute in mutual exclusion from all other tasks. -- Used mainly in Single_Lock mode, but also to protect All_Tasks_List ATCB_Key : aliased pthread_key_t; -- Key used to find the Ada Task_Id associated with a thread Environment_Task_Id : Task_Id; -- A variable to hold Task_Id for the environment task Unblocked_Signal_Mask : aliased sigset_t; -- The set of signals that should unblocked in all tasks Time_Slice_Val : Integer; pragma Import (C, Time_Slice_Val, "__gl_time_slice_val"); Locking_Policy : Character; pragma Import (C, Locking_Policy, "__gl_locking_policy"); Dispatching_Policy : Character; pragma Import (C, Dispatching_Policy, "__gl_task_dispatching_policy"); Curpid : pid_t; Foreign_Task_Elaborated : aliased Boolean := True; -- Used to identified fake tasks (i.e., non-Ada Threads) -------------------- -- Local Packages -- -------------------- package Specific is procedure Initialize (Environment_Task : Task_Id); pragma Inline (Initialize); -- Initialize various data needed by this package function Is_Valid_Task return Boolean; pragma Inline (Is_Valid_Task); -- Does executing thread have a TCB? procedure Set (Self_Id : Task_Id); pragma Inline (Set); -- Set the self id for the current task function Self return Task_Id; pragma Inline (Self); -- Return a pointer to the Ada Task Control Block of the calling task end Specific; package body Specific is separate; -- The body of this package is target specific --------------------------------- -- Support for foreign threads -- --------------------------------- function Register_Foreign_Thread (Thread : Thread_Id) return Task_Id; -- Allocate and initialize a new ATCB for the current Thread function Register_Foreign_Thread (Thread : Thread_Id) return Task_Id is separate; ----------------------- -- Local Subprograms -- ----------------------- procedure Abort_Handler (Sig : Signal); -- Signal handler used to implement asynchronous abort ------------------- -- Abort_Handler -- ------------------- procedure Abort_Handler (Sig : Signal) is pragma Unreferenced (Sig); T : constant Task_Id := Self; Result : Interfaces.C.int; Old_Set : aliased sigset_t; begin -- It is not safe to raise an exception when using ZCX and the GCC -- exception handling mechanism. if ZCX_By_Default and then GCC_ZCX_Support then return; end if; if T.Deferral_Level = 0 and then T.Pending_ATC_Level < T.ATC_Nesting_Level and then not T.Aborting then T.Aborting := True; -- Make sure signals used for RTS internal purpose are unmasked Result := pthread_sigmask (SIG_UNBLOCK, Unblocked_Signal_Mask'Unchecked_Access, Old_Set'Unchecked_Access); pragma Assert (Result = 0); raise Standard'Abort_Signal; end if; end Abort_Handler; ------------------ -- Stack_Guard -- ------------------ -- The underlying thread system sets a guard page at the -- bottom of a thread stack, so nothing is needed. procedure Stack_Guard (T : ST.Task_Id; On : Boolean) is pragma Unreferenced (T); pragma Unreferenced (On); begin null; end Stack_Guard; -------------------- -- Get_Thread_Id -- -------------------- function Get_Thread_Id (T : ST.Task_Id) return OSI.Thread_Id is begin return T.Common.LL.Thread; end Get_Thread_Id; ---------- -- Self -- ---------- function Self return Task_Id renames Specific.Self; --------------------- -- Initialize_Lock -- --------------------- -- Note: mutexes and cond_variables needed per-task basis are -- initialized in Initialize_TCB and the Storage_Error is -- handled. Other mutexes (such as RTS_Lock, Memory_Lock...) -- used in RTS is initialized before any status change of RTS. -- Therefore rasing Storage_Error in the following routines -- should be able to be handled safely. procedure Initialize_Lock (Prio : System.Any_Priority; L : access Lock) is Attributes : aliased pthread_mutexattr_t; Result : Interfaces.C.int; begin Result := pthread_mutexattr_init (Attributes'Access); pragma Assert (Result = 0 or else Result = ENOMEM); if Result = ENOMEM then raise Storage_Error; end if; if Locking_Policy = 'C' then L.Ceiling := Interfaces.C.int (Prio); end if; Result := pthread_mutex_init (L.L'Access, Attributes'Access); pragma Assert (Result = 0 or else Result = ENOMEM); if Result = ENOMEM then Result := pthread_mutexattr_destroy (Attributes'Access); raise Storage_Error; end if; Result := pthread_mutexattr_destroy (Attributes'Access); pragma Assert (Result = 0); end Initialize_Lock; procedure Initialize_Lock (L : access RTS_Lock; Level : Lock_Level) is pragma Unreferenced (Level); Attributes : aliased pthread_mutexattr_t; Result : Interfaces.C.int; begin Result := pthread_mutexattr_init (Attributes'Access); pragma Assert (Result = 0 or else Result = ENOMEM); if Result = ENOMEM then raise Storage_Error; end if; Result := pthread_mutex_init (L, Attributes'Access); pragma Assert (Result = 0 or else Result = ENOMEM); if Result = ENOMEM then Result := pthread_mutexattr_destroy (Attributes'Access); raise Storage_Error; end if; Result := pthread_mutexattr_destroy (Attributes'Access); pragma Assert (Result = 0); end Initialize_Lock; ------------------- -- Finalize_Lock -- ------------------- procedure Finalize_Lock (L : access Lock) is Result : Interfaces.C.int; begin Result := pthread_mutex_destroy (L.L'Access); pragma Assert (Result = 0); end Finalize_Lock; procedure Finalize_Lock (L : access RTS_Lock) is Result : Interfaces.C.int; begin Result := pthread_mutex_destroy (L); pragma Assert (Result = 0); end Finalize_Lock; ---------------- -- Write_Lock -- ---------------- procedure Write_Lock (L : access Lock; Ceiling_Violation : out Boolean) is Result : Interfaces.C.int; Self_ID : Task_Id; All_Tasks_Link : Task_Id; Current_Prio : System.Any_Priority; begin -- Perform ceiling checks only when this is the locking policy in use if Locking_Policy = 'C' then Self_ID := Self; All_Tasks_Link := Self_ID.Common.All_Tasks_Link; Current_Prio := Get_Priority (Self_ID); -- If there is no other task, no need to check priorities if All_Tasks_Link /= Null_Task and then L.Ceiling < Interfaces.C.int (Current_Prio) then Ceiling_Violation := True; return; end if; end if; Result := pthread_mutex_lock (L.L'Access); pragma Assert (Result = 0); Ceiling_Violation := False; end Write_Lock; procedure Write_Lock (L : access RTS_Lock; Global_Lock : Boolean := False) is Result : Interfaces.C.int; begin if not Single_Lock or else Global_Lock then Result := pthread_mutex_lock (L); pragma Assert (Result = 0); end if; end Write_Lock; procedure Write_Lock (T : Task_Id) is Result : Interfaces.C.int; begin if not Single_Lock then Result := pthread_mutex_lock (T.Common.LL.L'Access); pragma Assert (Result = 0); end if; end Write_Lock; --------------- -- Read_Lock -- --------------- procedure Read_Lock (L : access Lock; Ceiling_Violation : out Boolean) is begin Write_Lock (L, Ceiling_Violation); end Read_Lock; ------------ -- Unlock -- ------------ procedure Unlock (L : access Lock) is Result : Interfaces.C.int; begin Result := pthread_mutex_unlock (L.L'Access); pragma Assert (Result = 0); end Unlock; procedure Unlock (L : access RTS_Lock; Global_Lock : Boolean := False) is Result : Interfaces.C.int; begin if not Single_Lock or else Global_Lock then Result := pthread_mutex_unlock (L); pragma Assert (Result = 0); end if; end Unlock; procedure Unlock (T : Task_Id) is Result : Interfaces.C.int; begin if not Single_Lock then Result := pthread_mutex_unlock (T.Common.LL.L'Access); pragma Assert (Result = 0); end if; end Unlock; ----------- -- Sleep -- ----------- procedure Sleep (Self_ID : Task_Id; Reason : System.Tasking.Task_States) is pragma Unreferenced (Reason); Result : Interfaces.C.int; begin if Single_Lock then Result := pthread_cond_wait (Self_ID.Common.LL.CV'Access, Single_RTS_Lock'Access); else Result := pthread_cond_wait (Self_ID.Common.LL.CV'Access, Self_ID.Common.LL.L'Access); end if; -- EINTR is not considered a failure pragma Assert (Result = 0 or else Result = EINTR); end Sleep; ----------------- -- Timed_Sleep -- ----------------- -- This is for use within the run-time system, so abort is -- assumed to be already deferred, and the caller should be -- holding its own ATCB lock. procedure Timed_Sleep (Self_ID : Task_Id; Time : Duration; Mode : ST.Delay_Modes; Reason : System.Tasking.Task_States; Timedout : out Boolean; Yielded : out Boolean) is pragma Unreferenced (Reason); Check_Time : constant Duration := Monotonic_Clock; Abs_Time : Duration; Request : aliased timespec; Result : Interfaces.C.int; begin Timedout := True; Yielded := False; if Mode = Relative then Abs_Time := Duration'Min (Time, Max_Sensible_Delay) + Check_Time; else Abs_Time := Duration'Min (Check_Time + Max_Sensible_Delay, Time); end if; if Abs_Time > Check_Time then Request := To_Timespec (Abs_Time); loop exit when Self_ID.Pending_ATC_Level < Self_ID.ATC_Nesting_Level or else Self_ID.Pending_Priority_Change; if Single_Lock then Result := pthread_cond_timedwait (Self_ID.Common.LL.CV'Access, Single_RTS_Lock'Access, Request'Access); else Result := pthread_cond_timedwait (Self_ID.Common.LL.CV'Access, Self_ID.Common.LL.L'Access, Request'Access); end if; exit when Abs_Time <= Monotonic_Clock; if Result = 0 or Result = EINTR then -- Somebody may have called Wakeup for us Timedout := False; exit; end if; pragma Assert (Result = ETIMEDOUT); end loop; end if; end Timed_Sleep; ----------------- -- Timed_Delay -- ----------------- -- This is for use in implementing delay statements, so -- we assume the caller is abort-deferred but is holding -- no locks. procedure Timed_Delay (Self_ID : Task_Id; Time : Duration; Mode : ST.Delay_Modes) is Check_Time : constant Duration := Monotonic_Clock; Abs_Time : Duration; Request : aliased timespec; Result : Interfaces.C.int; begin if Single_Lock then Lock_RTS; end if; Write_Lock (Self_ID); if Mode = Relative then Abs_Time := Time + Check_Time; else Abs_Time := Duration'Min (Check_Time + Max_Sensible_Delay, Time); end if; if Abs_Time > Check_Time then Request := To_Timespec (Abs_Time); Self_ID.Common.State := Delay_Sleep; loop if Self_ID.Pending_Priority_Change then Self_ID.Pending_Priority_Change := False; Self_ID.Common.Base_Priority := Self_ID.New_Base_Priority; Set_Priority (Self_ID, Self_ID.Common.Base_Priority); end if; exit when Self_ID.Pending_ATC_Level < Self_ID.ATC_Nesting_Level; if Single_Lock then Result := pthread_cond_timedwait (Self_ID.Common.LL.CV'Access, Single_RTS_Lock'Access, Request'Access); else Result := pthread_cond_timedwait (Self_ID.Common.LL.CV'Access, Self_ID.Common.LL.L'Access, Request'Access); end if; exit when Abs_Time <= Monotonic_Clock; pragma Assert (Result = 0 or else Result = ETIMEDOUT or else Result = EINTR); end loop; Self_ID.Common.State := Runnable; end if; Unlock (Self_ID); if Single_Lock then Unlock_RTS; end if; Yield; end Timed_Delay; --------------------- -- Monotonic_Clock -- --------------------- function Monotonic_Clock return Duration is TS : aliased timespec; Result : Interfaces.C.int; begin Result := clock_gettime (CLOCK_REALTIME, TS'Unchecked_Access); pragma Assert (Result = 0); return To_Duration (TS); end Monotonic_Clock; ------------------- -- RT_Resolution -- ------------------- function RT_Resolution return Duration is begin -- Returned value must be an integral multiple of Duration'Small (1 ns) -- The following is the best approximation of 1/1024. The clock on the -- DEC Alpha ticks at 1024 Hz. return 0.000_976_563; end RT_Resolution; ------------ -- Wakeup -- ------------ procedure Wakeup (T : Task_Id; Reason : System.Tasking.Task_States) is pragma Unreferenced (Reason); Result : Interfaces.C.int; begin Result := pthread_cond_signal (T.Common.LL.CV'Access); pragma Assert (Result = 0); end Wakeup; ----------- -- Yield -- ----------- procedure Yield (Do_Yield : Boolean := True) is Result : Interfaces.C.int; pragma Unreferenced (Result); begin if Do_Yield then Result := sched_yield; end if; end Yield; ------------------ -- Set_Priority -- ------------------ procedure Set_Priority (T : Task_Id; Prio : System.Any_Priority; Loss_Of_Inheritance : Boolean := False) is pragma Unreferenced (Loss_Of_Inheritance); Result : Interfaces.C.int; Param : aliased struct_sched_param; begin T.Common.Current_Priority := Prio; Param.sched_priority := Interfaces.C.int (Underlying_Priorities (Prio)); if Time_Slice_Val > 0 then Result := pthread_setschedparam (T.Common.LL.Thread, SCHED_RR, Param'Access); elsif Dispatching_Policy = 'F' or else Time_Slice_Val = 0 then Result := pthread_setschedparam (T.Common.LL.Thread, SCHED_FIFO, Param'Access); else Result := pthread_setschedparam (T.Common.LL.Thread, SCHED_OTHER, Param'Access); end if; pragma Assert (Result = 0); end Set_Priority; ------------------ -- Get_Priority -- ------------------ function Get_Priority (T : Task_Id) return System.Any_Priority is begin return T.Common.Current_Priority; end Get_Priority; ---------------- -- Enter_Task -- ---------------- procedure Enter_Task (Self_ID : Task_Id) is begin Hide_Yellow_Zone; Self_ID.Common.LL.Thread := pthread_self; Specific.Set (Self_ID); Lock_RTS; for J in Known_Tasks'Range loop if Known_Tasks (J) = null then Known_Tasks (J) := Self_ID; Self_ID.Known_Tasks_Index := J; exit; end if; end loop; Unlock_RTS; end Enter_Task; -------------- -- New_ATCB -- -------------- function New_ATCB (Entry_Num : Task_Entry_Index) return Task_Id is begin return new Ada_Task_Control_Block (Entry_Num); end New_ATCB; ------------------- -- Is_Valid_Task -- ------------------- function Is_Valid_Task return Boolean renames Specific.Is_Valid_Task; ----------------------------- -- Register_Foreign_Thread -- ----------------------------- function Register_Foreign_Thread return Task_Id is begin if Is_Valid_Task then return Self; else return Register_Foreign_Thread (pthread_self); end if; end Register_Foreign_Thread; -------------------- -- Initialize_TCB -- -------------------- procedure Initialize_TCB (Self_ID : Task_Id; Succeeded : out Boolean) is Mutex_Attr : aliased pthread_mutexattr_t; Result : Interfaces.C.int; Cond_Attr : aliased pthread_condattr_t; begin if not Single_Lock then Result := pthread_mutexattr_init (Mutex_Attr'Access); pragma Assert (Result = 0 or else Result = ENOMEM); if Result = 0 then Result := pthread_mutex_init (Self_ID.Common.LL.L'Access, Mutex_Attr'Access); pragma Assert (Result = 0 or else Result = ENOMEM); end if; if Result /= 0 then Succeeded := False; return; end if; Result := pthread_mutexattr_destroy (Mutex_Attr'Access); pragma Assert (Result = 0); end if; Result := pthread_condattr_init (Cond_Attr'Access); pragma Assert (Result = 0 or else Result = ENOMEM); if Result = 0 then Result := pthread_cond_init (Self_ID.Common.LL.CV'Access, Cond_Attr'Access); pragma Assert (Result = 0 or else Result = ENOMEM); end if; if Result = 0 then Succeeded := True; else if not Single_Lock then Result := pthread_mutex_destroy (Self_ID.Common.LL.L'Access); pragma Assert (Result = 0); end if; Succeeded := False; end if; Result := pthread_condattr_destroy (Cond_Attr'Access); pragma Assert (Result = 0); end Initialize_TCB; ----------------- -- Create_Task -- ----------------- procedure Create_Task (T : Task_Id; Wrapper : System.Address; Stack_Size : System.Parameters.Size_Type; Priority : System.Any_Priority; Succeeded : out Boolean) is Attributes : aliased pthread_attr_t; Adjusted_Stack_Size : Interfaces.C.size_t; Result : Interfaces.C.int; Param : aliased System.OS_Interface.struct_sched_param; use System.Task_Info; begin -- Account for the Yellow Zone (2 pages) and the guard page -- right above. See Hide_Yellow_Zone for the rationale. Adjusted_Stack_Size := Interfaces.C.size_t (Stack_Size) + 3 * Get_Page_Size; Result := pthread_attr_init (Attributes'Access); pragma Assert (Result = 0 or else Result = ENOMEM); if Result /= 0 then Succeeded := False; return; end if; Result := pthread_attr_setdetachstate (Attributes'Access, PTHREAD_CREATE_DETACHED); pragma Assert (Result = 0); Result := pthread_attr_setstacksize (Attributes'Access, Adjusted_Stack_Size); pragma Assert (Result = 0); Param.sched_priority := Interfaces.C.int (Underlying_Priorities (Priority)); Result := pthread_attr_setschedparam (Attributes'Access, Param'Access); pragma Assert (Result = 0); if Time_Slice_Val > 0 then Result := pthread_attr_setschedpolicy (Attributes'Access, System.OS_Interface.SCHED_RR); elsif Dispatching_Policy = 'F' or else Time_Slice_Val = 0 then Result := pthread_attr_setschedpolicy (Attributes'Access, System.OS_Interface.SCHED_FIFO); else Result := pthread_attr_setschedpolicy (Attributes'Access, System.OS_Interface.SCHED_OTHER); end if; pragma Assert (Result = 0); -- Set the scheduling parameters explicitly, since this is the -- only way to force the OS to take e.g. the sched policy and scope -- attributes into account. Result := pthread_attr_setinheritsched (Attributes'Access, PTHREAD_EXPLICIT_SCHED); pragma Assert (Result = 0); T.Common.Current_Priority := Priority; if T.Common.Task_Info /= null then case T.Common.Task_Info.Contention_Scope is when System.Task_Info.Process_Scope => Result := pthread_attr_setscope (Attributes'Access, PTHREAD_SCOPE_PROCESS); when System.Task_Info.System_Scope => Result := pthread_attr_setscope (Attributes'Access, PTHREAD_SCOPE_SYSTEM); when System.Task_Info.Default_Scope => Result := 0; end case; pragma Assert (Result = 0); end if; -- Since the initial signal mask of a thread is inherited from the -- creator, and the Environment task has all its signals masked, we -- do not need to manipulate caller's signal mask at this point. -- All tasks in RTS will have All_Tasks_Mask initially. Result := pthread_create (T.Common.LL.Thread'Access, Attributes'Access, Thread_Body_Access (Wrapper), To_Address (T)); pragma Assert (Result = 0 or else Result = EAGAIN); Succeeded := Result = 0; Result := pthread_attr_destroy (Attributes'Access); pragma Assert (Result = 0); if T.Common.Task_Info /= null then -- ??? We're using a process-wide function to implement a task -- specific characteristic. if T.Common.Task_Info.Bind_To_Cpu_Number = 0 then Result := bind_to_cpu (Curpid, 0); elsif T.Common.Task_Info.Bind_To_Cpu_Number > 0 then Result := bind_to_cpu (Curpid, Interfaces.C.unsigned_long ( Interfaces.Shift_Left (Interfaces.Unsigned_64'(1), T.Common.Task_Info.Bind_To_Cpu_Number - 1))); pragma Assert (Result = 0); end if; end if; end Create_Task; ------------------ -- Finalize_TCB -- ------------------ procedure Finalize_TCB (T : Task_Id) is Result : Interfaces.C.int; Tmp : Task_Id := T; Is_Self : constant Boolean := T = Self; procedure Free is new Unchecked_Deallocation (Ada_Task_Control_Block, Task_Id); begin if not Single_Lock then Result := pthread_mutex_destroy (T.Common.LL.L'Access); pragma Assert (Result = 0); end if; Result := pthread_cond_destroy (T.Common.LL.CV'Access); pragma Assert (Result = 0); if T.Known_Tasks_Index /= -1 then Known_Tasks (T.Known_Tasks_Index) := null; end if; Free (Tmp); if Is_Self then Specific.Set (null); end if; end Finalize_TCB; --------------- -- Exit_Task -- --------------- procedure Exit_Task is begin Specific.Set (null); end Exit_Task; ---------------- -- Abort_Task -- ---------------- procedure Abort_Task (T : Task_Id) is Result : Interfaces.C.int; begin Result := pthread_kill (T.Common.LL.Thread, Signal (System.Interrupt_Management.Abort_Task_Interrupt)); pragma Assert (Result = 0); end Abort_Task; ---------------- -- Initialize -- ---------------- procedure Initialize (S : in out Suspension_Object) is Mutex_Attr : aliased pthread_mutexattr_t; Cond_Attr : aliased pthread_condattr_t; Result : Interfaces.C.int; begin -- Initialize internal state. It is always initialized to False (ARM -- D.10 par. 6). S.State := False; S.Waiting := False; -- Initialize internal mutex Result := pthread_mutexattr_init (Mutex_Attr'Access); pragma Assert (Result = 0 or else Result = ENOMEM); if Result = ENOMEM then raise Storage_Error; end if; Result := pthread_mutex_init (S.L'Access, Mutex_Attr'Access); pragma Assert (Result = 0 or else Result = ENOMEM); if Result = ENOMEM then Result := pthread_mutexattr_destroy (Mutex_Attr'Access); raise Storage_Error; end if; Result := pthread_mutexattr_destroy (Mutex_Attr'Access); pragma Assert (Result = 0); -- Initialize internal condition variable Result := pthread_condattr_init (Cond_Attr'Access); pragma Assert (Result = 0 or else Result = ENOMEM); Result := pthread_cond_init (S.CV'Access, Cond_Attr'Access); pragma Assert (Result = 0 or else Result = ENOMEM); if Result /= 0 then Result := pthread_mutex_destroy (S.L'Access); pragma Assert (Result = 0); if Result = ENOMEM then raise Storage_Error; end if; end if; end Initialize; -------------- -- Finalize -- -------------- procedure Finalize (S : in out Suspension_Object) is Result : Interfaces.C.int; begin -- Destroy internal mutex Result := pthread_mutex_destroy (S.L'Access); pragma Assert (Result = 0); -- Destroy internal condition variable Result := pthread_cond_destroy (S.CV'Access); pragma Assert (Result = 0); end Finalize; ------------------- -- Current_State -- ------------------- function Current_State (S : Suspension_Object) return Boolean is begin -- We do not want to use lock on this read operation. State is marked -- as Atomic so that we ensure that the value retrieved is correct. return S.State; end Current_State; --------------- -- Set_False -- --------------- procedure Set_False (S : in out Suspension_Object) is Result : Interfaces.C.int; begin SSL.Abort_Defer.all; Result := pthread_mutex_lock (S.L'Access); pragma Assert (Result = 0); S.State := False; Result := pthread_mutex_unlock (S.L'Access); pragma Assert (Result = 0); SSL.Abort_Undefer.all; end Set_False; -------------- -- Set_True -- -------------- procedure Set_True (S : in out Suspension_Object) is Result : Interfaces.C.int; begin SSL.Abort_Defer.all; Result := pthread_mutex_lock (S.L'Access); pragma Assert (Result = 0); -- If there is already a task waiting on this suspension object then -- we resume it, leaving the state of the suspension object to False, -- as it is specified in ARM D.10 par. 9. Otherwise, it just leaves -- the state to True. if S.Waiting then S.Waiting := False; S.State := False; Result := pthread_cond_signal (S.CV'Access); pragma Assert (Result = 0); else S.State := True; end if; Result := pthread_mutex_unlock (S.L'Access); pragma Assert (Result = 0); SSL.Abort_Undefer.all; end Set_True; ------------------------ -- Suspend_Until_True -- ------------------------ procedure Suspend_Until_True (S : in out Suspension_Object) is Result : Interfaces.C.int; begin SSL.Abort_Defer.all; Result := pthread_mutex_lock (S.L'Access); pragma Assert (Result = 0); if S.Waiting then -- Program_Error must be raised upon calling Suspend_Until_True -- if another task is already waiting on that suspension object -- (ARM D.10 par. 10). Result := pthread_mutex_unlock (S.L'Access); pragma Assert (Result = 0); SSL.Abort_Undefer.all; raise Program_Error; else -- Suspend the task if the state is False. Otherwise, the task -- continues its execution, and the state of the suspension object -- is set to False (ARM D.10 par. 9). if S.State then S.State := False; else S.Waiting := True; Result := pthread_cond_wait (S.CV'Access, S.L'Access); end if; Result := pthread_mutex_unlock (S.L'Access); pragma Assert (Result = 0); SSL.Abort_Undefer.all; end if; end Suspend_Until_True; ---------------- -- Check_Exit -- ---------------- -- Dummy version function Check_Exit (Self_ID : ST.Task_Id) return Boolean is pragma Unreferenced (Self_ID); begin return True; end Check_Exit; -------------------- -- Check_No_Locks -- -------------------- function Check_No_Locks (Self_ID : ST.Task_Id) return Boolean is pragma Unreferenced (Self_ID); begin return True; end Check_No_Locks; ---------------------- -- Environment_Task -- ---------------------- function Environment_Task return Task_Id is begin return Environment_Task_Id; end Environment_Task; -------------- -- Lock_RTS -- -------------- procedure Lock_RTS is begin Write_Lock (Single_RTS_Lock'Access, Global_Lock => True); end Lock_RTS; ---------------- -- Unlock_RTS -- ---------------- procedure Unlock_RTS is begin Unlock (Single_RTS_Lock'Access, Global_Lock => True); end Unlock_RTS; ------------------ -- Suspend_Task -- ------------------ function Suspend_Task (T : ST.Task_Id; Thread_Self : Thread_Id) return Boolean is pragma Warnings (Off, T); pragma Warnings (Off, Thread_Self); begin return False; end Suspend_Task; ----------------- -- Resume_Task -- ----------------- function Resume_Task (T : ST.Task_Id; Thread_Self : Thread_Id) return Boolean is pragma Warnings (Off, T); pragma Warnings (Off, Thread_Self); begin return False; end Resume_Task; ---------------- -- Initialize -- ---------------- procedure Initialize (Environment_Task : Task_Id) is act : aliased struct_sigaction; old_act : aliased struct_sigaction; Tmp_Set : aliased sigset_t; Result : Interfaces.C.int; function State (Int : System.Interrupt_Management.Interrupt_ID) return Character; pragma Import (C, State, "__gnat_get_interrupt_state"); -- Get interrupt state. Defined in a-init.c. The input argument is -- the interrupt number, and the result is one of the following: Default : constant Character := 's'; -- 'n' this interrupt not set by any Interrupt_State pragma -- 'u' Interrupt_State pragma set state to User -- 'r' Interrupt_State pragma set state to Runtime -- 's' Interrupt_State pragma set state to System (use "default" -- system handler) begin Environment_Task_Id := Environment_Task; Interrupt_Management.Initialize; -- Prepare the set of signals that should unblocked in all tasks Result := sigemptyset (Unblocked_Signal_Mask'Access); pragma Assert (Result = 0); for J in Interrupt_Management.Interrupt_ID loop if System.Interrupt_Management.Keep_Unmasked (J) then Result := sigaddset (Unblocked_Signal_Mask'Access, Signal (J)); pragma Assert (Result = 0); end if; end loop; Curpid := getpid; -- Initialize the lock used to synchronize chain of all ATCBs Initialize_Lock (Single_RTS_Lock'Access, RTS_Lock_Level); Specific.Initialize (Environment_Task); Enter_Task (Environment_Task); -- Install the abort-signal handler if State (System.Interrupt_Management.Abort_Task_Interrupt) /= Default then act.sa_flags := 0; act.sa_handler := Abort_Handler'Address; Result := sigemptyset (Tmp_Set'Access); pragma Assert (Result = 0); act.sa_mask := Tmp_Set; Result := sigaction (Signal (System.Interrupt_Management.Abort_Task_Interrupt), act'Unchecked_Access, old_act'Unchecked_Access); pragma Assert (Result = 0); end if; end Initialize; end System.Task_Primitives.Operations;
29.050157
79
0.577236
fba274723689e20fd9b8d63c9d813abe44760c6c
4,139
adb
Ada
source/nodes/program-nodes-array_aggregates.adb
reznikmm/gela
20134f1d154fb763812e73860c6f4b04f353df79
[ "MIT" ]
null
null
null
source/nodes/program-nodes-array_aggregates.adb
reznikmm/gela
20134f1d154fb763812e73860c6f4b04f353df79
[ "MIT" ]
null
null
null
source/nodes/program-nodes-array_aggregates.adb
reznikmm/gela
20134f1d154fb763812e73860c6f4b04f353df79
[ "MIT" ]
1
2019-10-16T09:05:27.000Z
2019-10-16T09:05:27.000Z
-- SPDX-FileCopyrightText: 2019 Max Reznik <[email protected]> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- package body Program.Nodes.Array_Aggregates is function Create (Left_Bracket_Token : not null Program.Lexical_Elements .Lexical_Element_Access; Components : Program.Elements.Array_Component_Associations .Array_Component_Association_Vector_Access; Right_Bracket_Token : not null Program.Lexical_Elements .Lexical_Element_Access) return Array_Aggregate is begin return Result : Array_Aggregate := (Left_Bracket_Token => Left_Bracket_Token, Components => Components, Right_Bracket_Token => Right_Bracket_Token, Enclosing_Element => null) do Initialize (Result); end return; end Create; function Create (Components : Program.Elements.Array_Component_Associations .Array_Component_Association_Vector_Access; Is_Part_Of_Implicit : Boolean := False; Is_Part_Of_Inherited : Boolean := False; Is_Part_Of_Instance : Boolean := False) return Implicit_Array_Aggregate is begin return Result : Implicit_Array_Aggregate := (Components => Components, Is_Part_Of_Implicit => Is_Part_Of_Implicit, Is_Part_Of_Inherited => Is_Part_Of_Inherited, Is_Part_Of_Instance => Is_Part_Of_Instance, Enclosing_Element => null) do Initialize (Result); end return; end Create; overriding function Components (Self : Base_Array_Aggregate) return Program.Elements.Array_Component_Associations .Array_Component_Association_Vector_Access is begin return Self.Components; end Components; overriding function Left_Bracket_Token (Self : Array_Aggregate) return not null Program.Lexical_Elements.Lexical_Element_Access is begin return Self.Left_Bracket_Token; end Left_Bracket_Token; overriding function Right_Bracket_Token (Self : Array_Aggregate) return not null Program.Lexical_Elements.Lexical_Element_Access is begin return Self.Right_Bracket_Token; end Right_Bracket_Token; overriding function Is_Part_Of_Implicit (Self : Implicit_Array_Aggregate) return Boolean is begin return Self.Is_Part_Of_Implicit; end Is_Part_Of_Implicit; overriding function Is_Part_Of_Inherited (Self : Implicit_Array_Aggregate) return Boolean is begin return Self.Is_Part_Of_Inherited; end Is_Part_Of_Inherited; overriding function Is_Part_Of_Instance (Self : Implicit_Array_Aggregate) return Boolean is begin return Self.Is_Part_Of_Instance; end Is_Part_Of_Instance; procedure Initialize (Self : in out Base_Array_Aggregate'Class) is begin for Item in Self.Components.Each_Element loop Set_Enclosing_Element (Item.Element, Self'Unchecked_Access); end loop; null; end Initialize; overriding function Is_Array_Aggregate (Self : Base_Array_Aggregate) return Boolean is pragma Unreferenced (Self); begin return True; end Is_Array_Aggregate; overriding function Is_Expression (Self : Base_Array_Aggregate) return Boolean is pragma Unreferenced (Self); begin return True; end Is_Expression; overriding procedure Visit (Self : not null access Base_Array_Aggregate; Visitor : in out Program.Element_Visitors.Element_Visitor'Class) is begin Visitor.Array_Aggregate (Self); end Visit; overriding function To_Array_Aggregate_Text (Self : in out Array_Aggregate) return Program.Elements.Array_Aggregates.Array_Aggregate_Text_Access is begin return Self'Unchecked_Access; end To_Array_Aggregate_Text; overriding function To_Array_Aggregate_Text (Self : in out Implicit_Array_Aggregate) return Program.Elements.Array_Aggregates.Array_Aggregate_Text_Access is pragma Unreferenced (Self); begin return null; end To_Array_Aggregate_Text; end Program.Nodes.Array_Aggregates;
31.356061
79
0.720464
dfa6fcd2da3c2596374af5297355a71ed61eb9dc
11,413
ads
Ada
arch/ARM/STM32/svd/stm32wl5x_cm4/stm32_svd-spi.ads
morbos/Ada_Drivers_Library
a4ab26799be60997c38735f4056160c4af597ef7
[ "BSD-3-Clause" ]
2
2018-05-16T03:56:39.000Z
2019-07-31T13:53:56.000Z
arch/ARM/STM32/svd/stm32wl5x_cm4/stm32_svd-spi.ads
morbos/Ada_Drivers_Library
a4ab26799be60997c38735f4056160c4af597ef7
[ "BSD-3-Clause" ]
null
null
null
arch/ARM/STM32/svd/stm32wl5x_cm4/stm32_svd-spi.ads
morbos/Ada_Drivers_Library
a4ab26799be60997c38735f4056160c4af597ef7
[ "BSD-3-Clause" ]
null
null
null
-- This spec has been automatically generated from STM32WL5x_CM4.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with HAL; with System; package STM32_SVD.SPI is pragma Preelaborate; --------------- -- Registers -- --------------- subtype CR1_BR_Field is HAL.UInt3; -- control register 1 type CR1_Register is record -- Clock phase CPHA : Boolean := False; -- Clock polarity CPOL : Boolean := False; -- Master selection MSTR : Boolean := False; -- Baud rate control BR : CR1_BR_Field := 16#0#; -- SPI enable SPE : Boolean := False; -- Frame format LSBFIRST : Boolean := False; -- Internal slave select SSI : Boolean := False; -- Software slave management SSM : Boolean := False; -- Receive only RXONLY : Boolean := False; -- Data frame format CRCL : Boolean := False; -- CRC transfer next CRCNEXT : Boolean := False; -- Hardware CRC calculation enable CRCEN : Boolean := False; -- Output enable in bidirectional mode BIDIOE : Boolean := False; -- Bidirectional data mode enable BIDIMODE : Boolean := False; -- unspecified Reserved_16_31 : HAL.UInt16 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for CR1_Register use record CPHA at 0 range 0 .. 0; CPOL at 0 range 1 .. 1; MSTR at 0 range 2 .. 2; BR at 0 range 3 .. 5; SPE at 0 range 6 .. 6; LSBFIRST at 0 range 7 .. 7; SSI at 0 range 8 .. 8; SSM at 0 range 9 .. 9; RXONLY at 0 range 10 .. 10; CRCL at 0 range 11 .. 11; CRCNEXT at 0 range 12 .. 12; CRCEN at 0 range 13 .. 13; BIDIOE at 0 range 14 .. 14; BIDIMODE at 0 range 15 .. 15; Reserved_16_31 at 0 range 16 .. 31; end record; subtype CR2_DS_Field is HAL.UInt4; -- control register 2 type CR2_Register is record -- Rx buffer DMA enable RXDMAEN : Boolean := False; -- Tx buffer DMA enable TXDMAEN : Boolean := False; -- SS output enable SSOE : Boolean := False; -- NSS pulse management NSSP : Boolean := False; -- Frame format FRF : Boolean := False; -- Error interrupt enable ERRIE : Boolean := False; -- RX buffer not empty interrupt enable RXNEIE : Boolean := False; -- Tx buffer empty interrupt enable TXEIE : Boolean := False; -- Data size DS : CR2_DS_Field := 16#0#; -- FIFO reception threshold FRXTH : Boolean := False; -- Last DMA transfer for reception LDMA_RX : Boolean := False; -- Last DMA transfer for transmission LDMA_TX : Boolean := False; -- unspecified Reserved_15_31 : HAL.UInt17 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for CR2_Register use record RXDMAEN at 0 range 0 .. 0; TXDMAEN at 0 range 1 .. 1; SSOE at 0 range 2 .. 2; NSSP at 0 range 3 .. 3; FRF at 0 range 4 .. 4; ERRIE at 0 range 5 .. 5; RXNEIE at 0 range 6 .. 6; TXEIE at 0 range 7 .. 7; DS at 0 range 8 .. 11; FRXTH at 0 range 12 .. 12; LDMA_RX at 0 range 13 .. 13; LDMA_TX at 0 range 14 .. 14; Reserved_15_31 at 0 range 15 .. 31; end record; subtype SR_FRLVL_Field is HAL.UInt2; subtype SR_FTLVL_Field is HAL.UInt2; -- status register type SR_Register is record -- Read-only. Receive buffer not empty RXNE : Boolean := False; -- Read-only. Transmit buffer empty TXE : Boolean := True; -- Read-only. CHSIDE CHSIDE : Boolean := False; -- Read-only. UDR UDR : Boolean := False; -- CRC error flag CRCERR : Boolean := False; -- Read-only. Mode fault MODF : Boolean := False; -- Read-only. Overrun flag OVR : Boolean := False; -- Read-only. Busy flag BSY : Boolean := False; -- Read-only. TI frame format error FRE : Boolean := False; -- Read-only. FIFO reception level FRLVL : SR_FRLVL_Field := 16#0#; -- Read-only. FIFO transmission level FTLVL : SR_FTLVL_Field := 16#0#; -- unspecified Reserved_13_31 : HAL.UInt19 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for SR_Register use record RXNE at 0 range 0 .. 0; TXE at 0 range 1 .. 1; CHSIDE at 0 range 2 .. 2; UDR at 0 range 3 .. 3; CRCERR at 0 range 4 .. 4; MODF at 0 range 5 .. 5; OVR at 0 range 6 .. 6; BSY at 0 range 7 .. 7; FRE at 0 range 8 .. 8; FRLVL at 0 range 9 .. 10; FTLVL at 0 range 11 .. 12; Reserved_13_31 at 0 range 13 .. 31; end record; subtype DR_DR_Field is HAL.UInt16; -- data register type DR_Register is record -- Data register DR : DR_DR_Field := 16#0#; -- unspecified Reserved_16_31 : HAL.UInt16 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for DR_Register use record DR at 0 range 0 .. 15; Reserved_16_31 at 0 range 16 .. 31; end record; subtype CRCPR_CRCPOLY_Field is HAL.UInt16; -- CRC polynomial register type CRCPR_Register is record -- CRC polynomial register CRCPOLY : CRCPR_CRCPOLY_Field := 16#7#; -- unspecified Reserved_16_31 : HAL.UInt16 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for CRCPR_Register use record CRCPOLY at 0 range 0 .. 15; Reserved_16_31 at 0 range 16 .. 31; end record; subtype RXCRCR_RxCRC_Field is HAL.UInt16; -- RX CRC register type RXCRCR_Register is record -- Read-only. Rx CRC register RxCRC : RXCRCR_RxCRC_Field; -- unspecified Reserved_16_31 : HAL.UInt16; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for RXCRCR_Register use record RxCRC at 0 range 0 .. 15; Reserved_16_31 at 0 range 16 .. 31; end record; subtype TXCRCR_TxCRC_Field is HAL.UInt16; -- TX CRC register type TXCRCR_Register is record -- Read-only. Tx CRC register TxCRC : TXCRCR_TxCRC_Field; -- unspecified Reserved_16_31 : HAL.UInt16; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for TXCRCR_Register use record TxCRC at 0 range 0 .. 15; Reserved_16_31 at 0 range 16 .. 31; end record; subtype I2SCFGR_DATLEN_Field is HAL.UInt2; subtype I2SCFGR_I2SSTD_Field is HAL.UInt2; subtype I2SCFGR_I2SCFG_Field is HAL.UInt2; -- configuration register type I2SCFGR_Register is record -- CHLEN CHLEN : Boolean := False; -- DATLEN DATLEN : I2SCFGR_DATLEN_Field := 16#0#; -- CKPOL CKPOL : Boolean := False; -- I2SSTD I2SSTD : I2SCFGR_I2SSTD_Field := 16#0#; -- unspecified Reserved_6_6 : HAL.Bit := 16#0#; -- PCMSYNC PCMSYNC : Boolean := False; -- I2SCFG I2SCFG : I2SCFGR_I2SCFG_Field := 16#0#; -- I2SE I2SE : Boolean := False; -- I2SMOD I2SMOD : Boolean := False; -- ASTRTEN ASTRTEN : Boolean := False; -- unspecified Reserved_13_31 : HAL.UInt19 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for I2SCFGR_Register use record CHLEN at 0 range 0 .. 0; DATLEN at 0 range 1 .. 2; CKPOL at 0 range 3 .. 3; I2SSTD at 0 range 4 .. 5; Reserved_6_6 at 0 range 6 .. 6; PCMSYNC at 0 range 7 .. 7; I2SCFG at 0 range 8 .. 9; I2SE at 0 range 10 .. 10; I2SMOD at 0 range 11 .. 11; ASTRTEN at 0 range 12 .. 12; Reserved_13_31 at 0 range 13 .. 31; end record; subtype I2SPR_I2SDIV_Field is HAL.UInt8; -- prescaler register type I2SPR_Register is record -- I2SDIV I2SDIV : I2SPR_I2SDIV_Field := 16#2#; -- ODD ODD : Boolean := False; -- MCKOE MCKOE : Boolean := False; -- unspecified Reserved_10_31 : HAL.UInt22 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for I2SPR_Register use record I2SDIV at 0 range 0 .. 7; ODD at 0 range 8 .. 8; MCKOE at 0 range 9 .. 9; Reserved_10_31 at 0 range 10 .. 31; end record; ----------------- -- Peripherals -- ----------------- -- Serial peripheral interface/Inter-IC sound type SPI_Peripheral is record -- control register 1 CR1 : aliased CR1_Register; -- control register 2 CR2 : aliased CR2_Register; -- status register SR : aliased SR_Register; -- data register DR : aliased DR_Register; -- CRC polynomial register CRCPR : aliased CRCPR_Register; -- RX CRC register RXCRCR : aliased RXCRCR_Register; -- TX CRC register TXCRCR : aliased TXCRCR_Register; -- configuration register I2SCFGR : aliased I2SCFGR_Register; -- prescaler register I2SPR : aliased I2SPR_Register; end record with Volatile; for SPI_Peripheral use record CR1 at 16#0# range 0 .. 31; CR2 at 16#4# range 0 .. 31; SR at 16#8# range 0 .. 31; DR at 16#C# range 0 .. 31; CRCPR at 16#10# range 0 .. 31; RXCRCR at 16#14# range 0 .. 31; TXCRCR at 16#18# range 0 .. 31; I2SCFGR at 16#1C# range 0 .. 31; I2SPR at 16#20# range 0 .. 31; end record; -- Serial peripheral interface/Inter-IC sound SPI1_Periph : aliased SPI_Peripheral with Import, Address => SPI1_Base; -- Serial peripheral interface/Inter-IC sound SPI2_Periph : aliased SPI_Peripheral with Import, Address => SPI2_Base; -- Serial peripheral interface/Inter-IC sound SPI3_Periph : aliased SPI_Peripheral with Import, Address => SPI3_Base; end STM32_SVD.SPI;
31.702778
69
0.541663