max_stars_repo_path
stringlengths 4
261
| max_stars_repo_name
stringlengths 6
106
| max_stars_count
int64 0
38.8k
| id
stringlengths 1
6
| text
stringlengths 7
1.05M
|
---|---|---|---|---|
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/specs/sync_iface_test.ads | best08618/asylo | 7 | 17803 | -- { dg-do compile }
-- { dg-options "-gnatc" }
package Sync_Iface_Test is
type Iface is limited interface;
procedure Do_Test
(Container : in out Iface;
Process : access procedure (E : Natural)) is abstract;
protected type Buffer is new Iface with
overriding procedure Do_Test
(Process : access procedure (E : Natural));
end;
end;
|
oeis/142/A142634.asm | neoneye/loda-programs | 11 | 243115 | ; A142634: Primes congruent to 47 mod 55.
; Submitted by <NAME>
; 47,157,487,1367,1697,2027,2137,2357,2467,2687,2797,3347,3457,3677,4007,4337,4447,5107,5437,5657,5987,6317,6427,6977,7307,7417,8297,8627,8737,9067,9397,10607,10937,11047,11597,11927,12037,12697,12917,13577,13687,13907,14347,14897,15227,15667,15887,16217,16547,16657,16987,17207,17317,17977,18307,18637,20177,20287,20507,20947,21277,21937,22157,22817,23917,24137,24247,24907,25127,25237,25457,26227,26557,26777,27107,27437,27767,28097,28537,28867,29527,30187,30517,31177,31397,31727,32057,32497,32717
mov $1,23
mov $2,$0
add $2,2
pow $2,2
lpb $2
sub $2,1
mov $3,$1
mul $3,2
seq $3,10051 ; Characteristic function of primes: 1 if n is prime, else 0.
sub $0,$3
add $1,55
mov $4,$0
max $4,0
cmp $4,$0
mul $2,$4
lpe
mov $0,$1
mul $0,2
sub $0,109
|
alloy4fun_models/trashltl/models/9/Z43Es4gtTASkqk6DZ.als | Kaixi26/org.alloytools.alloy | 0 | 4593 | <gh_stars>0
open main
pred idZ43Es4gtTASkqk6DZ_prop10 {
always all f:File | f in Protected implies always f in Protected and f not in Protected implies always f not in Protected
}
pred __repair { idZ43Es4gtTASkqk6DZ_prop10 }
check __repair { idZ43Es4gtTASkqk6DZ_prop10 <=> prop10o } |
hydra/grammar/OverrideLexer.g4 | evdcush/hydra | 0 | 2158 | // Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
// Regenerate lexer by running 'python setup.py antlr' at project root.
// If you make changes here be sure to update the documentation
// (and update the grammar in website/docs/advanced/override_grammar/*.md)
lexer grammar OverrideLexer;
// Re-usable fragments.
fragment CHAR: [a-zA-Z];
fragment DIGIT: [0-9];
fragment INT_UNSIGNED: '0' | [1-9] (('_')? DIGIT)*;
fragment ESC_BACKSLASH: '\\\\'; // escaped backslash
////////////////////////
// DEFAULT_MODE (KEY) //
////////////////////////
EQUAL: '=' WS? -> mode(VALUE_MODE);
TILDE: '~';
PLUS: '+';
AT: '@';
COLON: ':';
ATCOLON: '@:';
SLASH: '/';
KEY_ID: ID -> type(ID);
DOT_PATH: (ID | INT_UNSIGNED) ('.' (ID | INT_UNSIGNED))+;
////////////////
// VALUE_MODE //
////////////////
mode VALUE_MODE;
POPEN: WS? '(' WS?; // whitespaces before to allow `func (x)`
COMMA: WS? ',' WS?;
PCLOSE: WS? ')';
BRACKET_OPEN: '[' WS?;
BRACKET_CLOSE: WS? ']';
BRACE_OPEN: '{' WS?;
BRACE_CLOSE: WS? '}';
VALUE_COLON: WS? ':' WS? -> type(COLON);
VALUE_EQUAL: WS? '=' WS? -> type(EQUAL);
// Numbers.
fragment POINT_FLOAT: INT_UNSIGNED '.' | INT_UNSIGNED? '.' DIGIT (('_')? DIGIT)*;
fragment EXPONENT_FLOAT: (INT_UNSIGNED | POINT_FLOAT) [eE] [+-]? INT_UNSIGNED;
FLOAT: [+-]? (POINT_FLOAT | EXPONENT_FLOAT | [Ii][Nn][Ff] | [Nn][Aa][Nn]);
INT: [+-]? INT_UNSIGNED;
// Other reserved keywords.
BOOL:
[Tt][Rr][Uu][Ee] // TRUE
| [Ff][Aa][Ll][Ss][Ee]; // FALSE
NULL: [Nn][Uu][Ll][Ll];
UNQUOTED_CHAR: [/\-\\+.$%*]; // other characters allowed in unquoted strings
ID: (CHAR|'_') (CHAR|DIGIT|'_')*;
ESC: (ESC_BACKSLASH | '\\(' | '\\)' | '\\[' | '\\]' | '\\{' | '\\}' |
'\\:' | '\\=' | '\\,' | '\\ ' | '\\\t')+;
WS: [ \t]+;
QUOTED_VALUE:
'\'' ('\\\''|.)*? '\'' // Single quotes, can contain escaped single quote : /'
| '"' ('\\"'|.)*? '"' ; // Double quotes, can contain escaped double quote : /"
INTERPOLATION: '${' ~('}')+ '}';
|
programs/oeis/032/A032512.asm | neoneye/loda | 22 | 167588 | ; A032512: Sum of the integer part of 4th roots of integers <= n.
; 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51,53,55,57,59,61,63,65,67,69,71,73,75,77,79,81,83,85,87,89,91,93,95,97,99,101,103,105,107,109,111,113,115,117,119
mov $1,$0
trn $1,15
add $0,$1
|
report/compositional_decompilation/inc/2_lit_review/hello/hello_linear.asm | decomp/doc | 23 | 160830 | <gh_stars>10-100
_start:
mov rdi, hello
call printf
mov rdi, 0
call exit
ret
hello:
push qword 0x6F6C6C65 ; "hello"
and [rdi+0x6F], dh ; " wo"
jc short 0x6D ; "rl"
or al, [fs:rax] ; "d\n\0"
|
examples/instance-arguments/07-subclasses.agda | asr/agda-kanso | 1 | 7330 | <filename>examples/instance-arguments/07-subclasses.agda
{-# OPTIONS --universe-polymorphism #-}
-- {-# OPTIONS --verbose tc.records.ifs:15 #-}
-- {-# OPTIONS --verbose tc.constr.findInScope:15 #-}
-- {-# OPTIONS --verbose tc.term.args.ifs:15 #-}
-- {-# OPTIONS --verbose cta.record.ifs:15 #-}
-- {-# OPTIONS --verbose tc.section.apply:25 #-}
-- {-# OPTIONS --verbose tc.mod.apply:100 #-}
-- {-# OPTIONS --verbose scope.rec:15 #-}
-- {-# OPTIONS --verbose tc.rec.def:15 #-}
module 07-subclasses where
open import Data.Bool hiding (_≟_)
open import Data.Nat hiding (_<_)
open import Relation.Nullary.Decidable
open import Function using (_$_; id)
record Eq (A : Set) : Set where
field eq : A → A → Bool
primEqBool : Bool → Bool → Bool
primEqBool true = id
primEqBool false = not
eqBool : Eq Bool
eqBool = record { eq = primEqBool }
primEqNat : ℕ → ℕ → Bool
primEqNat a b = ⌊ a ≟ b ⌋
primLtNat : ℕ → ℕ → Bool
primLtNat 0 _ = true
primLtNat (suc a) (suc b) = primLtNat a b
primLtNat _ _ = false
neq : {t : Set} → {{eqT : Eq t}} → t → t → Bool
neq a b = not $ eq a b
where open Eq {{...}}
record Ord₁ (A : Set) : Set where
field _<_ : A → A → Bool
eqA : Eq A
ord₁Nat : Ord₁ ℕ
ord₁Nat = record { _<_ = primLtNat; eqA = eqNat }
where eqNat : Eq ℕ
eqNat = record { eq = primEqNat }
record Ord₂ {A : Set} (eqA : Eq A) : Set where
field _<_ : A → A → Bool
ord₂Nat : Ord₂ (record { eq = primEqNat })
ord₂Nat = record { _<_ = primLtNat }
record Ord₃ (A : Set) : Set where
field _<_ : A → A → Bool
eqA : Eq A
open Eq eqA public
ord₃Nat : Ord₃ ℕ
ord₃Nat = record { _<_ = primLtNat; eqA = eqNat }
where eqNat : Eq ℕ
eqNat = record { eq = primEqNat }
record Ord₄ {A : Set} (eqA : Eq A) : Set where
field _<_ : A → A → Bool
open Eq eqA public
ord₄Nat : Ord₄ (record { eq = primEqNat })
ord₄Nat = record { _<_ = primLtNat }
module test₁ where
open Ord₁ {{...}}
open Eq {{...}}
eqNat = eqA
test₁ = 5 < 3
test₂ = eq 5 3
test₃ = eq true false
test₄ : {A : Set} → {{ ordA : Ord₁ A }} → A → A → Bool
test₄ a b = a < b ∨ eq a b
where eqA' = eqA
module test₂ where
open Ord₂ {{...}}
open Eq {{...}}
eqNat : Eq ℕ
eqNat = record { eq = primEqNat }
test₁ = 5 < 3
test₂ = eq 5 3
test₃ = eq true false
test₄ : {A : Set} → {eqA : Eq A} → {{ ordA : Ord₂ eqA }} → A → A → Bool
test₄ a b = a < b ∨ eq a b
module test₃ where
open Ord₃ {{...}}
open Eq {{...}} renaming (eq to eq')
test₁ = 5 < 3
test₂ = eq 5 3
test₃ = eq' true false
test₄ : {A : Set} → {{ ordA : Ord₃ A }} → A → A → Bool
test₄ a b = a < b ∨ eq a b
module test₄ where
open Ord₄ {{...}}
open Eq {{...}} renaming (eq to eq')
test₁ = 5 < 3
test₂ = eq 5 3
test₃ = eq' true false
test₄ : {A : Set} → {eqA : Eq A} → {{ ordA : Ord₄ eqA }} → A → A → Bool
test₄ a b = a < b ∨ eq a b
module test₄′ where
open Ord₄ {{...}} hiding (eq)
open Eq {{...}}
eqNat : Eq ℕ
eqNat = record { eq = primEqNat }
test₁ = 5 < 3
test₂ = eq 5 3
test₃ = eq true false
test₄ : {A : Set} → {eqA : Eq A} → {{ ordA : Ord₄ eqA }} → A → A → Bool
test₄ a b = a < b ∨ eq a b
|
oeis/024/A024175.asm | neoneye/loda-programs | 11 | 163708 | ; A024175: Expansion of (x^3 - 6*x^2 + 5*x - 1)/((2*x - 1)*(2*x^2 - 4*x + 1))
; Submitted by <NAME>
; 1,1,2,5,14,42,132,428,1416,4744,16016,54320,184736,629280,2145600,7319744,24979584,85262464,291057920,993641216,3392317952,11581727232,39541748736,135002491904,460924372992,1573688313856,5372896120832,18344191078400,62630938517504,213835304804352,730079207964672,2492645953814528,8510424862457856,29056406468460544,99204774001442816,338706278773882880,1156415558502711296,3948249659283210240,13480167485767680000,46024170555784822784,157136347114164977664,536497047070212358144
sub $0,1
mov $2,1
lpb $0
sub $0,1
add $1,$3
add $1,1
mul $3,2
add $3,$2
sub $2,1
mul $2,2
add $3,$1
lpe
mov $0,$1
add $0,1
|
src/firmware/Platform/BrownOutReset.asm | pete-restall/Cluck2Sesame-Prototype | 1 | 88968 | <filename>src/firmware/Platform/BrownOutReset.asm
#define __CLUCK2SESAME_PLATFORM_BROWNOUTRESET_ASM
#include "Platform.inc"
#include "TailCalls.inc"
#include "ResetFlags.inc"
radix decimal
extern initialiseAfterReset
BrownOutReset code
global initialiseAfterBrownOutReset
initialiseAfterBrownOutReset:
.safelySetBankFor PCON
movlw (1 << NOT_BOR) | (1 << NOT_POR)
movwf PCON
.setBankFor resetFlags
movlw 1 << RESET_FLAG_BROWNOUT
movwf resetFlags
tcall initialiseAfterReset
end
|
src/filesystem.ads | GLADORG/glad-cli | 0 | 18627 | <filename>src/filesystem.ads
with AAA.Strings; use AAA.Strings;
package Filesystem is
function Read_Directory(Path: String; Recursive: Boolean) return AAA.Strings.Vector;
function Count_Files(Path : String) return Natural;
function Is_Valid_File(Name : String) return Boolean;
function Get_Executable_Path return String;
private
end Filesystem; |
programs/oeis/151/A151971.asm | neoneye/loda | 22 | 93638 | <reponame>neoneye/loda
; A151971: Numbers n such that n^2 - n is divisible by 21.
; 0,1,7,15,21,22,28,36,42,43,49,57,63,64,70,78,84,85,91,99,105,106,112,120,126,127,133,141,147,148,154,162,168,169,175,183,189,190,196,204,210,211,217,225,231,232,238,246,252,253,259,267,273,274,280,288,294,295,301,309,315,316,322,330,336,337,343,351,357,358,364,372,378,379,385,393,399,400,406,414,420,421,427,435,441,442,448,456,462,463,469,477,483,484,490,498,504,505,511,519
mov $2,3
mul $2,$0
mod $0,2
mov $1,$2
div $1,4
lpb $1
add $0,7
sub $1,1
lpe
|
src/risi_script-types-identifier-scope.adb | OneWingedShark/Risi | 1 | 13590 | <reponame>OneWingedShark/Risi
With
Ada.Strings.Fixed;
Package Body Risi_Script.Types.Identifier.Scope is
Function Image( Input : Scope ) return String is
Function Img( Input : in out Scope ) return String is
begin
case Input.Length is
when 0 => return "";
when 1 => return Input.First_Element;
When others =>
declare
Result : constant String:= '.' & Input.Last_Element;
begin
Input.Delete_Last;
return Img(Input) & Result;
end;
end case;
end Img;
Working : Scope:= Input;
begin
Return Img(Working);
end Image;
Function Value( Input : String ) return Scope is
Use Ada.Strings.Fixed, Ada.Strings;
Start,
Stop : Natural:= 0;
begin
Return Result : Scope := Global do
Start:= Input'First;
loop
Stop:=
Index(Source => Input,
Pattern => ".",
From => Start
);
Stop := (if Stop not in Positive then Input'Last
else Positive'Pred(Stop));
Result.Append( Input(Start..Stop) );
Start:= Positive'Succ( Positive'Succ( Stop ) );
Exit when Start not in Input'Range;
end loop;
end return;
end Value;
End Risi_Script.Types.Identifier.Scope;
|
PDProject2/PDProject2/lib/PSoCConfigTBL.asm | anttikp/SensIntPSoCex1 | 0 | 5359 | ; Generated by PSoC Designer 5.4.3191
;
; =============================================================================
; FILENAME: PSoCConfigTBL.asm
;
; Copyright (c) Cypress Semiconductor 2013. All Rights Reserved.
;
; NOTES:
; Do not modify this file. It is generated by PSoC Designer each time the
; generate application function is run. The values of the parameters in this
; file can be modified by changing the values of the global parameters in the
; device editor.
;
; =============================================================================
include "m8c.inc"
; Personalization tables
export LoadConfigTBL_pdproject2_Bank1
export LoadConfigTBL_pdproject2_Bank0
export LoadConfigTBL_pdproject2_Ordered
AREA lit(rom, rel)
LoadConfigTBL_pdproject2_Bank0:
; Instance name LCD, User Module LCD
; Instance name LED, User Module LED
; Instance name SleepTimer, User Module SleepTimer
; Global Register values Bank 0
db 60h, 28h ; AnalogColumnInputSelect register (AMX_IN)
db 66h, 00h ; AnalogComparatorControl1 register (CMP_CR1)
db 63h, 05h ; AnalogReferenceControl register (ARF_CR)
db 65h, 00h ; AnalogSyncControl register (ASY_CR)
db e6h, 00h ; DecimatorControl_0 register (DEC_CR0)
db e7h, 00h ; DecimatorControl_1 register (DEC_CR1)
db d6h, 00h ; I2CConfig register (I2C_CFG)
db b0h, 00h ; Row_0_InputMux register (RDI0RI)
db b1h, 00h ; Row_0_InputSync register (RDI0SYN)
db b2h, 00h ; Row_0_LogicInputAMux register (RDI0IS)
db b3h, 33h ; Row_0_LogicSelect_0 register (RDI0LT0)
db b4h, 33h ; Row_0_LogicSelect_1 register (RDI0LT1)
db b5h, 00h ; Row_0_OutputDrive_0 register (RDI0SRO0)
db b6h, 00h ; Row_0_OutputDrive_1 register (RDI0SRO1)
db b8h, 55h ; Row_1_InputMux register (RDI1RI)
db b9h, 00h ; Row_1_InputSync register (RDI1SYN)
db bah, 10h ; Row_1_LogicInputAMux register (RDI1IS)
db bbh, 33h ; Row_1_LogicSelect_0 register (RDI1LT0)
db bch, 33h ; Row_1_LogicSelect_1 register (RDI1LT1)
db bdh, 00h ; Row_1_OutputDrive_0 register (RDI1SRO0)
db beh, 00h ; Row_1_OutputDrive_1 register (RDI1SRO1)
db c0h, 00h ; Row_2_InputMux register (RDI2RI)
db c1h, 00h ; Row_2_InputSync register (RDI2SYN)
db c2h, 20h ; Row_2_LogicInputAMux register (RDI2IS)
db c3h, 33h ; Row_2_LogicSelect_0 register (RDI2LT0)
db c4h, 33h ; Row_2_LogicSelect_1 register (RDI3LT1)
db c5h, 00h ; Row_2_OutputDrive_0 register (RDI2SRO0)
db c6h, 00h ; Row_2_OutputDrive_1 register (RDI2SRO1)
db c8h, 55h ; Row_3_InputMux register (RDI3RI)
db c9h, 00h ; Row_3_InputSync register (RDI3SYN)
db cah, 30h ; Row_3_LogicInputAMux register (RDI3IS)
db cbh, 33h ; Row_3_LogicSelect_0 register (RDI3LT0)
db cch, 33h ; Row_3_LogicSelect_1 register (RDI3LT1)
db cdh, 00h ; Row_3_OutputDrive_0 register (RDI3SRO0)
db ceh, 00h ; Row_3_OutputDrive_1 register (RDI3SRO1)
db 6ch, 00h ; TMP_DR0 register (TMP_DR0)
db 6dh, 00h ; TMP_DR1 register (TMP_DR1)
db 6eh, 00h ; TMP_DR2 register (TMP_DR2)
db 6fh, 00h ; TMP_DR3 register (TMP_DR3)
db ffh
LoadConfigTBL_pdproject2_Bank1:
; Instance name LCD, User Module LCD
; Instance name LED, User Module LED
; Instance name SleepTimer, User Module SleepTimer
; Global Register values Bank 1
db 61h, 00h ; AnalogClockSelect1 register (CLK_CR1)
db 69h, 00h ; AnalogClockSelect2 register (CLK_CR2)
db 60h, 00h ; AnalogColumnClockSelect register (CLK_CR0)
db 62h, 00h ; AnalogIOControl_0 register (ABF_CR0)
db 67h, 33h ; AnalogLUTControl0 register (ALT_CR0)
db 68h, 33h ; AnalogLUTControl1 register (ALT_CR1)
db 63h, 00h ; AnalogModulatorControl_0 register (AMD_CR0)
db 66h, 00h ; AnalogModulatorControl_1 register (AMD_CR1)
db d1h, 00h ; GlobalDigitalInterconnect_Drive_Even_Input register (GDI_E_IN)
db d3h, 00h ; GlobalDigitalInterconnect_Drive_Even_Output register (GDI_E_OU)
db d0h, 00h ; GlobalDigitalInterconnect_Drive_Odd_Input register (GDI_O_IN)
db d2h, 00h ; GlobalDigitalInterconnect_Drive_Odd_Output register (GDI_O_OU)
db e1h, ffh ; OscillatorControl_1 register (OSC_CR1)
db e2h, 00h ; OscillatorControl_2 register (OSC_CR2)
db dfh, ffh ; OscillatorControl_3 register (OSC_CR3)
db deh, 02h ; OscillatorControl_4 register (OSC_CR4)
db ddh, 00h ; OscillatorGlobalBusEnableControl register (OSC_GO_EN)
db e7h, 00h ; Type2Decimator_Control register (DEC_CR2)
db ffh
AREA psoc_config(rom, rel)
LoadConfigTBL_pdproject2_Ordered:
; Ordered Global Register values
M8C_SetBank0
mov reg[00h], 00h ; Port_0_Data register (PRT0DR)
M8C_SetBank1
mov reg[00h], 00h ; Port_0_DriveMode_0 register (PRT0DM0)
mov reg[01h], ffh ; Port_0_DriveMode_1 register (PRT0DM1)
M8C_SetBank0
mov reg[03h], ffh ; Port_0_DriveMode_2 register (PRT0DM2)
mov reg[02h], 00h ; Port_0_GlobalSelect register (PRT0GS)
M8C_SetBank1
mov reg[02h], 00h ; Port_0_IntCtrl_0 register (PRT0IC0)
mov reg[03h], 00h ; Port_0_IntCtrl_1 register (PRT0IC1)
M8C_SetBank0
mov reg[01h], 00h ; Port_0_IntEn register (PRT0IE)
mov reg[04h], 00h ; Port_1_Data register (PRT1DR)
M8C_SetBank1
mov reg[04h], 7fh ; Port_1_DriveMode_0 register (PRT1DM0)
mov reg[05h], 80h ; Port_1_DriveMode_1 register (PRT1DM1)
M8C_SetBank0
mov reg[07h], 80h ; Port_1_DriveMode_2 register (PRT1DM2)
mov reg[06h], 00h ; Port_1_GlobalSelect register (PRT1GS)
M8C_SetBank1
mov reg[06h], 00h ; Port_1_IntCtrl_0 register (PRT1IC0)
mov reg[07h], 00h ; Port_1_IntCtrl_1 register (PRT1IC1)
M8C_SetBank0
mov reg[05h], 00h ; Port_1_IntEn register (PRT1IE)
mov reg[08h], 00h ; Port_2_Data register (PRT2DR)
M8C_SetBank1
mov reg[08h], 02h ; Port_2_DriveMode_0 register (PRT2DM0)
mov reg[09h], fdh ; Port_2_DriveMode_1 register (PRT2DM1)
M8C_SetBank0
mov reg[0bh], fdh ; Port_2_DriveMode_2 register (PRT2DM2)
mov reg[0ah], 00h ; Port_2_GlobalSelect register (PRT2GS)
M8C_SetBank1
mov reg[0ah], 00h ; Port_2_IntCtrl_0 register (PRT2IC0)
mov reg[0bh], 00h ; Port_2_IntCtrl_1 register (PRT2IC1)
M8C_SetBank0
mov reg[09h], 00h ; Port_2_IntEn register (PRT2IE)
mov reg[0ch], 00h ; Port_3_Data register (PRT3DR)
M8C_SetBank1
mov reg[0ch], 00h ; Port_3_DriveMode_0 register (PRT3DM0)
mov reg[0dh], 00h ; Port_3_DriveMode_1 register (PRT3DM1)
M8C_SetBank0
mov reg[0fh], 00h ; Port_3_DriveMode_2 register (PRT3DM2)
mov reg[0eh], 00h ; Port_3_GlobalSelect register (PRT3GS)
M8C_SetBank1
mov reg[0eh], 00h ; Port_3_IntCtrl_0 register (PRT3IC0)
mov reg[0fh], 00h ; Port_3_IntCtrl_1 register (PRT3IC1)
M8C_SetBank0
mov reg[0dh], 00h ; Port_3_IntEn register (PRT3IE)
mov reg[10h], 00h ; Port_4_Data register (PRT4DR)
M8C_SetBank1
mov reg[10h], 00h ; Port_4_DriveMode_0 register (PRT4DM0)
mov reg[11h], 00h ; Port_4_DriveMode_1 register (PRT4DM1)
M8C_SetBank0
mov reg[13h], 00h ; Port_4_DriveMode_2 register (PRT4DM2)
mov reg[12h], 00h ; Port_4_GlobalSelect register (PRT4GS)
M8C_SetBank1
mov reg[12h], 00h ; Port_4_IntCtrl_0 register (PRT4IC0)
mov reg[13h], 00h ; Port_4_IntCtrl_1 register (PRT4IC1)
M8C_SetBank0
mov reg[11h], 00h ; Port_4_IntEn register (PRT4IE)
mov reg[14h], 00h ; Port_5_Data register (PRT5DR)
M8C_SetBank1
mov reg[14h], 00h ; Port_5_DriveMode_0 register (PRT5DM0)
mov reg[15h], 00h ; Port_5_DriveMode_1 register (PRT5DM1)
M8C_SetBank0
mov reg[17h], 00h ; Port_5_DriveMode_2 register (PRT5DM2)
mov reg[16h], 00h ; Port_5_GlobalSelect register (PRT5GS)
M8C_SetBank1
mov reg[16h], 00h ; Port_5_IntCtrl_0 register (PRT5IC0)
mov reg[17h], 00h ; Port_5_IntCtrl_1 register (PRT5IC1)
M8C_SetBank0
mov reg[15h], 00h ; Port_5_IntEn register (PRT5IE)
mov reg[18h], 00h ; Port_6_Data register (PRT6DR)
M8C_SetBank1
mov reg[18h], 00h ; Port_6_DriveMode_0 register (PRT6DM0)
mov reg[19h], 00h ; Port_6_DriveMode_1 register (PRT6DM1)
M8C_SetBank0
mov reg[1bh], 00h ; Port_6_DriveMode_2 register (PRT6DM2)
mov reg[1ah], 00h ; Port_6_GlobalSelect register (PRT6GS)
M8C_SetBank1
mov reg[1ah], 00h ; Port_6_IntCtrl_0 register (PRT6IC0)
mov reg[1bh], 00h ; Port_6_IntCtrl_1 register (PRT6IC1)
M8C_SetBank0
mov reg[19h], 00h ; Port_6_IntEn register (PRT6IE)
mov reg[1ch], 00h ; Port_7_Data register (PRT7DR)
M8C_SetBank1
mov reg[1ch], 00h ; Port_7_DriveMode_0 register (PRT7DM0)
mov reg[1dh], 00h ; Port_7_DriveMode_1 register (PRT7DM1)
M8C_SetBank0
mov reg[1fh], 00h ; Port_7_DriveMode_2 register (PRT7DM2)
mov reg[1eh], 00h ; Port_7_GlobalSelect register (PRT7GS)
M8C_SetBank1
mov reg[1eh], 00h ; Port_7_IntCtrl_0 register (PRT7IC0)
mov reg[1fh], 00h ; Port_7_IntCtrl_1 register (PRT7IC1)
M8C_SetBank0
mov reg[1dh], 00h ; Port_7_IntEn register (PRT7IE)
M8C_SetBank0
ret
; PSoC Configuration file trailer PsocConfig.asm
|
sound/sfxasm/86.asm | NatsumiFox/Sonic-3-93-Nov-03 | 7 | 24108 | <filename>sound/sfxasm/86.asm
86_Header:
sHeaderInit ; Z80 offset is $CE20
sHeaderPatch 86_Patches
sHeaderTick $01
sHeaderCh $02
sHeaderSFX $80, $05, 86_FM5, $FA, $00
sHeaderSFX $80, $C0, 86_PSG3, $04, $00
86_FM5:
sPatFM $00
dc.b nA5, $04
86_Loop1:
dc.b nEb6, $02
saVolFM $05
sLoop $00, $05, 86_Loop1
sStop
86_PSG3:
ssModZ80 $01, $01, $1B, $08
sNoisePSG $E7
dc.b nFs6, $07
86_Loop2:
dc.b nE6, $05
saVolPSG $02
sLoop $00, $0C, 86_Loop2
sStop
86_Patches:
; Patch $00
; $23
; $0E, $0E, $0B, $00, $18, $10, $0C, $14
; $00, $0E, $19, $10, $00, $0C, $00, $0F
; $0C, $EF, $FF, $FF, $00, $04, $00, $80
spAlgorithm $03
spFeedback $04
spDetune $00, $00, $00, $00
spMultiple $0E, $0B, $0E, $00
spRateScale $00, $00, $00, $00
spAttackRt $18, $0C, $10, $14
spAmpMod $00, $00, $00, $00
spSustainRt $00, $19, $0E, $10
spSustainLv $00, $0F, $0E, $0F
spDecayRt $00, $00, $0C, $0F
spReleaseRt $0C, $0F, $0F, $0F
spTotalLv $00, $00, $04, $00
|
oeis/315/A315024.asm | neoneye/loda-programs | 11 | 164668 | ; A315024: Coordination sequence Gal.6.196.5 where G.u.t.v denotes the coordination sequence for a vertex of type v in tiling number t in the Galebach list of u-uniform tilings.
; Submitted by <NAME>(s3)
; 1,5,9,15,19,24,28,33,37,43,47,52,57,61,67,71,76,80,85,89,95,99,104,109,113,119,123,128,132,137,141,147,151,156,161,165,171,175,180,184,189,193,199,203,208,213,217,223,227,232
mov $1,$0
mul $0,13
add $0,5
div $0,11
mul $1,39
sub $1,6
div $1,11
add $1,1
add $0,$1
|
oeis/095/A095996.asm | neoneye/loda-programs | 11 | 242523 | ; A095996: a(n) = largest divisor of n! that is coprime to n.
; Submitted by <NAME>
; 1,1,2,3,24,5,720,315,4480,567,3628800,1925,479001600,868725,14350336,638512875,20922789888000,14889875,6402373705728000,14849255421,7567605760000,17717861581875,1124000727777607680000,2505147019375,992717442773183102976,284473896821296875,6829776306569216000000,3784415134680984375,304888344611713860501504000000,10577732774609,265252859812191058636308480000000,122529844256906551386796875,454662159838572707840000000,237852050616348011515546875,1573919128574316119470853062656
add $0,1
mov $3,1
lpb $0
pow $2,2
mul $3,$0
sub $0,1
gcd $2,$3
lpe
div $3,$2
mov $0,$3
|
programs/oeis/213/A213671.asm | karttu/loda | 0 | 161501 | <reponame>karttu/loda
; A213671: The odd part of n^2 - n + 2.
; 1,1,1,7,11,1,11,29,37,23,7,67,79,23,53,121,137,77,43,191,211,29,127,277,301,163,11,379,407,109,233,497,529,281,149,631,667,11,371,781,821,431,113,947,991,259,541,1129,1177,613,319,1327,1379,179,743,1541,1597,827,107,1771,1831,473,977,2017,2081,1073,553,2279,2347,151,1243,2557,2629,1351,347,2851,2927,751,1541,3161,3241,1661,851,3487,3571,457,1871,3829,3917,2003,1,4187,4279,1093,2233,4561,4657,2377,1213,4951,5051,161,2627,5357,5461,2783,709,5779,5887,1499,3053,6217,6329,3221,1639,6671,6787,863,3511,7141,7261,3691,469,7627,7751,1969,4001,8129,8257,4193,2129,8647,8779,557,4523,9181,9317,4727,1199,9731,9871,2503,5077,10297,10441,5293,2683,10879,11027,1397,5663,11477,11629,5891,373,12091,12247,3101,6281,12721,12881,6521,3301,13367,13531,107,6931,14029,14197,7183,1817,14707,14879,3763,7613,15401,15577,7877,3983,16111,16291,2059,8327,16837,17021,8603,1087,17579,17767,4489,9073,18337,18529,9361,4729,19111,19307,1219,9851,19901,20101,10151,2563,20707,20911,5279,10661,21529,21737,10973,5539,22367,22579,2849,11503,23221,23437,11827,373,24091,24311,6133,12377,24977,25201,12713,6413,25879,26107,823,13283,26797,27029,13631,3437,27731,27967,7051,14221,28681,28921,14581,7351,29647,29891,3767,15191,30629,30877,15563
add $0,1
mov $1,$0
sub $1,1
mul $0,$1
mov $2,1
lpb $0,1
gcd $2,$0
div $0,2
mul $0,$2
mov $2,$0
add $2,2
lpe
add $0,$2
mov $1,$0
div $1,4
mul $1,2
add $1,1
|
kernel/IRQ/irq.asm | Groszekk/OperatingSystem | 1 | 80997 | irq_common:
pusha
mov ax, ds
push eax
mov ax, 0x10
mov ds, ax
mov es, ax
mov fs, ax
mov gs, ax
extern irq_handler
call irq_handler
pop ebx
mov ds, bx
mov es, bx
mov fs, bx
mov gs, bx
popa
add esp, 8
sti
iret
global irq0
global irq1
global irq2
global irq3
global irq4
global irq5
global irq6
global irq7
global irq8
global irq9
global irq10
global irq11
global irq12
global irq13
global irq14
global irq15
irq0:
cli
push byte 0
push byte 32
jmp irq_common
irq1:
cli
push byte 1
push byte 33
jmp irq_common
irq2:
cli
push byte 2
push byte 34
jmp irq_common
irq3:
cli
push byte 3
push byte 35
jmp irq_common
irq4:
cli
push byte 4
push byte 36
jmp irq_common
irq5:
cli
push byte 5
push byte 37
jmp irq_common
irq6:
cli
push byte 6
push byte 38
jmp irq_common
irq7:
cli
push byte 7
push byte 39
jmp irq_common
irq8:
cli
push byte 8
push byte 40
jmp irq_common
irq9:
cli
push byte 9
push byte 41
jmp irq_common
irq10:
cli
push byte 10
push byte 42
jmp irq_common
irq11:
cli
push byte 11
push byte 43
jmp irq_common
irq12:
cli
push byte 12
push byte 44
jmp irq_common
irq13:
cli
push byte 13
push byte 45
jmp irq_common
irq14:
cli
push byte 14
push byte 46
jmp irq_common
irq15:
cli
push byte 15
push byte 47
jmp irq_common |
bbc/error.asm | peter-mount/departures8bit | 0 | 10802 | <reponame>peter-mount/departures8bit
; ********************************************************************************
; Handle errors from BRK instructions.
;
; Errors raised with:
; BRK
; EQUB error code (unused)
; EQUS error string
; BRK or EQUB 0 to terminate string
; ********************************************************************************
.errorHandler
LDX #&FF ; Reset the stack
TXS
LDA #&7C ; Clear escape condition
JSR osbyte
LDY #0
LDA (brkAddress),Y ; error code
BEQ errorHandler4
JSR writeHex
JSR writeSpace
.errorHandler3
INY ; Skip the error code
.errorHandler0
LDA (brkAddress),Y
BEQ errorHandler1 ; Found end
JSR osascii
INY
BNE errorHandler0
.errorHandler1
JSR osnewl ; Force newline
.errorHandler4
JMP mainMenu ; Back to the main menu
.errEscape
JSR osnewl ; Force newline
BRK
EQUS &11, "Escape", 0
.errSyntax
BRK
EQUS &12, "Syntax", 0
|
func-ln.asm | cotarr/calc-pi-x86-64-asm | 0 | 27027 | ;-------------------------------------------------------------
;
; SINGLE THREAD FLOATING POINT MULTI-PRECISION CALCULATOR
;
; Calculation of exponential and log functions
;
; File: func-ln.asm
; Module: func.asm, func.o
; Exec: calc-pi
;
; Created 11/13/2014
; Last Edit 04/29/2020
;
;--------------------------------------------------------------
; MIT License
;
; Copyright 2014-2020 <NAME>
;
; 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.
;-------------------------------------------------------------
; Function_ln_x
;-------------------------------------------------------------
;
; Input:
; X-Reg = Argument for ln(XReg)
;
; Working Variables
; Reg0 - Current Guess for intrative Newton method
; Reg1 - EXP(guess), also holds sum for exp() series
; Reg2 - (1st use) Current term for EXP sum,
; Reg2 - (2nd use) Save (x-exp(guess))
; r8 - n for exp() calculation
; r9 - Newton method loop counter
; [f_ln_noword_newton] - Accuracy during Newton's iterative loop
; [f_ln_noword_exp] - Accuracy mult,Div inside exponential series loop
;
; Result
; X-Reg contains result
;
; Iterations:
;
; (xreg - exp(guess(n))
; Guess(n+1) = guess(n) + 2*(-------------------------)
; (xreg + exp(guess(n))
;
;-------------------------------------------------------------
;
Function_ln_x_by_guess:
push rax ; General use
push rbx
push rcx
push rdx
push rsi ; Handle for function call
push rdi ; Handle for function call
push rbp
push r8
push r9
;
; Check for zero. If zero, return exp(0)= 1
;
mov rbx, FP_X_Reg ; Point RBX at Xreg variable
mov rax, [rbx+MAN_MSW_OFST] ; Get MS word
or rax, rax ; Check of ACC = 0
jnz .notZero ; Not zero, continue
mov rax,.msg_err1
call StrOut
mov rax,0
jmp FatalError
.notZero:
rcl rax, 1
jnc .notNegative
mov rax,.msg_err1
call StrOut
mov rax,0
jmp FatalError
.msg_err1:
db "Function_ln_x invalid input. Expect Xreg > 0", 0xD, 0xA, 0
.notNegative:
;^^^^^^^^^^^^^^^^^^^^^^ Watch Progress ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
mov rbx, 1 ; print iteration counter
mov rax, 0x04000000 ; set skip counter from rbx
call ShowCalcProgress ; initialize
;^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
;
; Init Variables
;
mov rsi, HAND_REG0
call SetToOne ; Reg0 = 1, first guess
mov rsi, HAND_REG1
call ClearVariable
mov rsi, HAND_REG2
call ClearVariable
mov rsi, HAND_WORKC
call ClearVariable
mov r9, 0 ; Counter for Newton loop
;
; Set initial accuracy small, increase as we go
;
mov rax, 8 ; Get Proposed
cmp rax, MINIMUM_WORD ; Minimum word count
jge .skipinit2 ; >- Zero, in range
mov rax, MINIMUM_WORD
.skipinit2:
mov [f_ln_noword_newton],rax
;
;--- Debug Option
;
;;; mov rax, [No_Word]
;;; mov [f_ln_noword_newton], rax
;---------------------------------------
; Begin Newtom method
;---------------------------------------
.newton_loop:
mov rax, [f_ln_noword_newton]; For call
call Set_No_Word_Temp
;---------------------------------------
; Begin Calculate Exponential of Guess
;---------------------------------------
;
mov r8, 1 ; initialize term counter n
mov rsi, HAND_REG0
mov rdi, HAND_REG2
call CopyVariable ; Reg2 is current term (guess(n))
mov rsi, HAND_ACC
call SetToOne ; OPR = 1 for addition
mov rsi, HAND_REG0
mov rdi, HAND_OPR
call CopyVariable ; OPR = current guess
call FP_Addition ; ACC = 1 + guess (first two terms)
mov rsi, HAND_ACC
mov rdi, HAND_REG1
call CopyVariable ; Reg1 first 2 term of EXP sum
;
; At beginning use accuracy of Newton's iterative LN() loop
; Then it will be decreased during the loop
;
mov rax, [f_ln_noword_newton];Newton's LN() loop accuracy
mov [f_ln_noword_exp], rax ; Initial exponential series accuracy
;
; Loop
;
.exp_loop:
inc r8 ; n = n+1
mov rsi, HAND_REG2
mov rdi, HAND_OPR
call CopyVariable ; OPR = current exp term
mov rsi, HAND_REG0
mov rdi, HAND_ACC
call CopyVariable ; ACC = Current guess
;
; Reduce accuracy temporarily
;
mov rax, [f_ln_noword_exp]
call Set_No_Word_Temp
;
; Multiply by guess
;
;
call FP_Multiplication ; Term = Term * (XREG)
;
; Divide by n
;
mov rsi, HAND_ACC
mov rax, r8 ; n
call FP_Register_Division ; Term = Term / n
;
; Restore accuracy for addition
;
mov rax, [f_ln_noword_newton]
call Set_No_Word_Temp
;
; Setup for sum
;
mov rsi, HAND_ACC
mov rdi, HAND_REG2
call CopyVariable ; Reg2 = current exp term
mov rsi, HAND_REG1
mov rdi, HAND_OPR
call CopyVariable ; OPR = running sum
;
; Add term to sum
;
call FP_Addition ; ACC = Exponential series sum
;
; After sum, [Shift_Count] and [Nearly_Zero] are set by FP_Additoin
;
; Determine reduced accuracy for next loop
; This takes [Shift_Count] from FP_Additon and
; computes a value for [f_ln_noword_exp] for use in loop
;
; Uses rcx temporarily
;
mov rax, [f_ln_noword_newton] ; Max word count from LN2 loop
sub rax, [Shift_Count] ; Subtract shift count of words from addition
inc rax ; Add extra word for safety
mov rcx, rax ; Save temporarily
;
; Check upper limit (could be negative)
;
mov rax, [f_ln_noword_newton] ; Maximum allowed
cmp rax, rcx ; Subtract Proposed
jge .skip1 ; >= Zero, in range
mov rcx, [f_ln_noword_newton] ; Else out of range, use default
.skip1:
mov rax, rcx ; Get Proposed
cmp rax, MINIMUM_WORD ; Minimum word count
jge .skip2 ; >- Zero, in range
mov rcx, MINIMUM_WORD
.skip2:
mov [f_ln_noword_exp], rcx
;
;
;
mov rsi, HAND_ACC
mov rdi, HAND_REG1
call CopyVariable ; Reg1 = sum for exp(guess)
mov rax, [Nearly_Zero] ; Check for done
or rax, rax
jnz .done_exp_loop ;Done
jmp .exp_loop ;Else loop back
.done_exp_loop:
;---------------------------------------
; End Calculate Exponential of Guess
;---------------------------------------
mov rsi, HAND_XREG
mov rdi, HAND_OPR
call CopyVariable ; OPR = argument for LN( )
mov rsi, HAND_REG1
mov rdi, HAND_ACC
call CopyVariable ; ACC = exp(guess)
;
mov rsi, HAND_ACC
call FP_TwosCompliment
call FP_Addition ; ACC = (x - exp(guess))
;
mov rsi, HAND_ACC
mov rdi, HAND_REG2
call CopyVariable ; 2nd use, save temporarily (x-exp(guess))
;
mov rsi, HAND_XREG
mov rdi, HAND_OPR
call CopyVariable ; OPR = argument for LN( )
mov rsi, HAND_REG1
mov rdi, HAND_ACC
call CopyVariable ; ACC = exp(guess)
;
call FP_Addition ; ACC = (x + exp(guess))
;
;
mov rsi, HAND_REG2
mov rdi, HAND_OPR
call CopyVariable ; OPR = (x = exp(guess))
;
call FP_Division ; ACC = (x-exp(guess) / (x+exp(guess))
;
mov rsi, HAND_ACC
mov rdi, HAND_OPR
call CopyVariable ; OPR = (x-exp(guess) / (x+exp(guess))
mov rsi, HAND_ACC
call SetToTwo ; ACC = 2
;
call FP_Multiplication ; ACC = 2 * (x-exp(guess) / (x+exp(guess))
;
mov rsi, HAND_REG0
mov rdi, HAND_OPR
call CopyVariable ; OPR = guess
;
call FP_Addition ; ACC = guess + 2 * (x-exp(guess) / (x+exp(guess))
;^^^^^^^^^^^^^^^^^^^^^^ Watch Progress ^^^^^^^^^^^^^^^^^^^
; -Print-- Inc/Rset -Format-
mov rax, (0x01110101 | 0x00000804 | 0x20000000 )
call ShowCalcProgress
;^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
;
; **** Check for done here
;
inc r9
;
; Skip first few iterations
;
cmp r9, 4 ; Don't do first few terms, will false done
jl .skip01
;
; Check if done and adjust accuracy if needed.
mov rbx, FP_Acc ; Next guess Xn
mov rdx, FP_Reg0 ; Last guess Xn-1
mov rbp, MAN_MSW_OFST ; Point at MSWord
mov rcx, 0 ; Initialize word Counter
;
; This counts in rcx how many words match
;
.loop_ck:
mov rax, [rbx+rbp] ; Get word from ACC
cmp rax, [rdx+rbp] ; Compare to Reg0
jne .endloop ; Not equal, exit to stop counting
sub rbp, BYTE_PER_WORD ; point at next word
inc rcx ; Increment count of bytes same
mov rax, [LSWOfst] ; Get lower limit index
cmp rbp, rax ; Check if done (checked last word?)
jge .loop_ck ; No, keep checking, else done
.endloop:
;
; Check if at full accuracy, if yes, full accuracy, then check for exit
;
mov rax, [f_ln_noword_newton] ; Get Newton loop accuracy
cmp rax, [D_Flt_Word] ; Compare reduced accuracy
jne .skip01 ; Not full accuracy, don't exit
;
; Exit check, if matching enough word and if at full accuracy
mov rax, [f_ln_noword_newton] ; Get word count
sub rax, GUARDWORDS ; Subtract guard words
add rax, 1 ; Option to match guard word (see below)
;----------------------------------------
cmp rcx, rax ; Compare number of bytes the same
jl .skip01 ; Do another iteration?
jmp .done ; End calculation, enough words match
;
; Adjust accuracy, rcx = mumber of words the same
;
.skip01:
mov rax, [f_ln_noword_newton] ; Get current mantissa size
shr rax, 1 ; Divide by 2, wait until half of words match
cmp rcx, rax ; Are matching words more than half of words
jl .skip02 ; No don't adjust accuracy
;
mov rbx, [f_ln_noword_newton] ; Get accuracy
add rbx, [f_ln_noword_newton] ; Increase X2
add rbx, [f_ln_noword_newton] ; Increase X3
mov rax, [D_Flt_Word] ; Maximum mantissa size
cmp rax, rbx ; Over maximum size?
jge .skip_sa2 ; No don't adjust
mov rbx, rax ; Else, yes, reset to maximum
.skip_sa2:
mov [f_ln_noword_newton], rbx ; New accuracy
;
; Move result back to Reg0 to become next n+1 guess
;
.skip02:
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
mov rsi, HAND_ACC
mov rdi, HAND_REG0
call CopyVariable ; REG0 = next guess
;
jmp .newton_loop
.done:
;^^^^^^^^^^^^^^^^^^^^^^ Watch Progress ^^^^^^^^^^^^^^^^^^^
; -Print-- Inc/Rset -Format-
mov rax, (0x000F0303 | 0x00000000 | 0x30000000 )
call ShowCalcProgress
;^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
mov rsi, HAND_REG0
mov rdi, HAND_XREG
call CopyVariable
; mov rsi, HAND_REG0
; call ClearVariable
; mov rsi, HAND_REG1
; call ClearVariable
; mov rsi, HAND_REG2
; call ClearVariable
pop r9
pop r8
pop rbp
pop rdi
pop rsi
pop rdx
pop rcx
pop rbx
pop rax
ret
;--------------------------------------------------------------
;
; Calculate natural log of x
;
; Ln( x/(x-1) ) = SUM ( 1/(n*x^n) )
;
; Input:
; XREG
;
; Program Use:
; REG0 = Sum
; REG1 = Last 1/x^n Term
; REG2 = x/(x-1)
; REG3 = current n value
;
; Output:
; XREG = Result
;
;------------------------------------------
;
Function_ln_x_series:
push rax ; General use
push rbx
push rcx
push rcx
push rsi ; Handle for function call
push rdi ; Handle for function call
push rbp
;
; Check for zero. If zero, return exp(0)= 1
;
mov rbx, FP_X_Reg ; Point RBX at Xreg variable
mov rax, [rbx+MAN_MSW_OFST] ; Get MS word
or rax, rax ; Check of ACC = 0
jnz .notZero ; Not zero, continue
mov rax,.msg_err1
call StrOut
mov rax,0
jmp FatalError
.notZero:
rcl rax, 1
jnc .notNegative
mov rax,.msg_err1
call StrOut
mov rax,0
jmp FatalError
.msg_err1:
db "Function_ln_x_series invalid input. Expect Xreg > 0", 0xD, 0xA, 0
.notNegative:
;
;^^^^^^^^^^^^^^^^^^^^^^ Watch Progress ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
mov rbx, [iShowCalcStep] ; print occasional samples
mov rax, 0x06000000 ; set skip counter from rbx
call ShowCalcProgress ; initialize
;^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
;
call ClearGrabAccuracy
;
mov rsi, HAND_REG3 ; REG3 = n
call SetToOne
mov rsi, HAND_XREG
mov rdi, HAND_OPR
call CopyVariable ; X is in Opr
mov rsi, HAND_ACC
call SetToOne ; Acc = 1
call FP_TwosCompliment ; change sign ACC
call FP_Addition ; ACC = (X-1)
mov rsi, HAND_XREG
mov rdi, HAND_OPR
call CopyVariable ; Move e to OPR
call FP_Division ; ACC = X/(X-1)
mov rsi, HAND_ACC
mov rdi, HAND_REG2 ; reg2 = X/X-1
call CopyVariable
;
mov rsi, HAND_OPR
call SetToOne
call FP_Division ; ACC = 1 / (X/X-1)
mov rsi, HAND_ACC
mov rdi, HAND_REG1
call CopyVariable ; Reg-1 = last term;
mov rdi, HAND_REG0
call CopyVariable ; Reg-0 = sum with first term
.loop2:
;
; Increment N in Reg3
;
mov rsi, HAND_REG3
mov rdi, HAND_ACC
call CopyVariable
mov rsi, HAND_OPR
call SetToOne
call FP_Addition ; ACC = n+1 (form the new n)
mov rsi, HAND_ACC
mov rdi, HAND_REG3
call CopyVariable
;
; get last 1/x^n term and divide by x for next 1/x^n+1
;
mov rsi, HAND_REG1
mov rdi, HAND_OPR
call CopyVariable
mov rsi, HAND_REG2
mov rdi, HAND_ACC
call CopyVariable ; last 1/ term divde by e/e-1
call ReduceSeriesAccuracy
call FP_Division ; divide by c/c-1
call RestoreFullAccuracy
mov rsi, HAND_ACC
mov rdi, HAND_REG1
call CopyVariable ; move to back
;
; Now divide by N but don't save result
;
mov rsi, HAND_ACC
mov rdi, HAND_OPR
call CopyVariable
mov rsi, HAND_REG3
mov rdi, HAND_ACC ; put n in acc
call CopyVariable
call ReduceSeriesAccuracy
call FP_Division ; Divide by n
call RestoreFullAccuracy
;
; Sum the term
;
mov rsi, HAND_REG0
mov rdi, HAND_OPR
call CopyVariable
call FP_Addition
call GrabSeriesAccuracy
mov rsi, HAND_ACC
mov rdi, HAND_REG0
call CopyVariable
;
;^^^^^^^^^^^^^^^^^^^^^^ Watch Progress ^^^^^^^^^^^^^^^^^^^
; -Print-- Inc/Rset -Format-
mov rax, (0x01110101 | 0x00004404 | 0x60000000 )
call ShowCalcProgress
;^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
;
;
; Check if last term was not significant
;
mov rax, [Nearly_Zero] ; Check for done
or rax, rax
jnz .done2 ; Done go exit
jmp .loop2 ; Else loop back
;
;
.done2:
mov rsi, HAND_REG0 ; Get sum
mov rdi, HAND_XREG ; move to X-Reg
call CopyVariable
;
; Clear temporary variables
;
mov rsi, HAND_REG0
call ClearVariable
mov rsi, HAND_REG1
call ClearVariable
mov rsi, HAND_REG2
call ClearVariable
mov rsi, HAND_REG3
call ClearVariable
;
;^^^^^^^^^^^^^^^^^^^^^^ Watch Progress ^^^^^^^^^^^^^^^^^^^
; -Print-- Inc/Rset -Format-
mov rax, (0x00030303 | 0x00000000 | 0x30000000 )
call ShowCalcProgress
;^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
;
pop rbp
pop rdi
pop rsi
pop rdx
pop rcx
pop rbx
pop rax
ret
|
generator/src/main/antlr4/io/protolang/ProtoParser.g4 | turbospaces/protoc | 1 | 2294 | grammar ProtoParser;
all_identifiers : IDENTIFIER | QUALIFIED_IDENTIFIER ;
literal_value : literal_substitude | literal_without_substitude;
literal_substitude : SUBSTITUDE_START all_identifiers SUBSTITUDE_END ;
literal_without_substitude
: INTEGER_LITERAL
| STRING_LITERAL
| BOOL_LITERAL
| FLOAT_LITERAL
;
proto: package_def (import_def)* (constant_def | enum_def |message_def | service_def )+ EOF ;
import_def: IMPORT_LITERAL import_value ITEM_TERMINATOR ;
import_value : STRING_LITERAL ;
package_def : PACKAGE_LITERAL package_name ITEM_TERMINATOR;
package_name : QUALIFIED_IDENTIFIER;
constant_def : CONST_LITERAL constant_type constant_name EQUALS literal_value ITEM_TERMINATOR ;
constant_type : TYPE_LITERAL ;
constant_name : IDENTIFIER ;
one_of_def : ONE_OF_LITERAL BRACKET_OPEN one_of_def_member (COMMA one_of_def_member)* BRACKET_CLOSE ;
one_of_def_member : all_identifiers;
any_of_def : ANY_OF_LITERAL BRACKET_OPEN any_of_def_base_type BRACKET_CLOSE ;
any_of_def_base_type : all_identifiers ;
enum_def : ENUM_LITERAL enum_name BLOCK_OPEN (enum_member_tag ITEM_TERMINATOR)* BLOCK_CLOSE ;
enum_name : IDENTIFIER ;
enum_member_tag : enum_member EQUALS enum_tag ;
enum_member : IDENTIFIER ;
enum_tag : INTEGER_LITERAL ;
message_def : messsage_type message_name message_parent BLOCK_OPEN (message_field_def)* BLOCK_CLOSE ;
messsage_type : MESSAGE_LITERAL | ERROR_LITERAL ;
message_name : IDENTIFIER ;
message_parent : (EXTEND_LITERAL message_parent_message)? ;
message_parent_message : all_identifiers ;
message_field_def : message_field_type message_field_name EQUALS message_field_tag (BRACKET_OPEN message_field_options (COMMA message_field_options)* BRACKET_CLOSE)? ITEM_TERMINATOR ;
message_field_options : (message_field_required) ? | (message_field_default_value)? | (message_field_json_type)? ;
message_field_required : REQUIRED_LITERAL EQUALS literal_value ;
message_field_default_value : DEFAULT_LITERAL EQUALS literal_value ;
message_field_json_type : JSON_TYPE EQUALS literal_value ;
message_field_type : collection_map_value | one_of_def | any_of_def ;
message_field_name : IDENTIFIER ;
message_field_tag : INTEGER_LITERAL ;
service_def : SERVICE_LITERAL service_name service_parent BLOCK_OPEN (service_method_def)+ BLOCK_CLOSE ;
service_name : IDENTIFIER ;
service_parent : (EXTEND_LITERAL service_parent_message)? ;
service_parent_message : all_identifiers ;
service_method_def : DEF_LITERAL service_method_name PAREN_OPEN service_method_req PAREN_CLOSE COLON service_method_resp service_method_throws ITEM_TERMINATOR ;
service_method_name : IDENTIFIER ;
service_method_req : (collection_map_value)? ;
service_method_resp : collection_map_value ;
service_method_throws: (THROWS_LITEARAL service_method_excp (COMMA service_method_excp)* )? ;
service_method_excp : all_identifiers ;
collection_map_value : collection_map | all_identifiers | TYPE_LITERAL ;
collection_map : collection | map ;
collection : COLLECTION_LITERAL BRACKET_OPEN collection_type BRACKET_CLOSE ;
collection_type : TYPE_LITERAL | all_identifiers ;
map : MAP_LITERAL BRACKET_OPEN map_key COMMA map_value BRACKET_CLOSE ;
map_key : TYPE_LITERAL | all_identifiers ;
map_value : TYPE_LITERAL | all_identifiers ;
BLOCK_OPEN : '{' ;
BLOCK_CLOSE : '}' ;
PAREN_OPEN : '(' ;
PAREN_CLOSE : ')' ;
BRACKET_OPEN : '[' ;
BRACKET_CLOSE : ']' ;
EQUALS : '=' ;
COLON : ':' ;
COMMA : ',' ;
DOT : '.' ;
ITEM_TERMINATOR : ';' ;
SUBSTITUDE_START : '{{' ;
SUBSTITUDE_END : '}}' ;
ONE_OF_LITERAL : 'oneOf' ;
ANY_OF_LITERAL : 'anyOf' ;
REQUIRED_LITERAL : 'required' ;
JSON_TYPE : 'json_type' ;
DEFAULT_LITERAL : 'default' ;
CONST_LITERAL : 'const' ;
PACKAGE_LITERAL : 'package' ;
MESSAGE_LITERAL : 'message' ;
ERROR_LITERAL : 'error' ;
EXTEND_LITERAL : 'extends' ;
SERVICE_LITERAL : 'service' ;
DEF_LITERAL : 'def' ;
THROWS_LITEARAL : 'throws' ;
ENUM_LITERAL : 'enum' ;
IMPORT_LITERAL : 'import' ;
COLLECTION_LITERAL : 'set' | 'list' ;
MAP_LITERAL : 'map' ;
TYPE_LITERAL : 'byte' | 'int16' | 'int32' | 'int64' | 'float' | 'double' | 'string' | 'boolean' | 'binary' ;
INTEGER_LITERAL
: HEX_LITERAL
| OCTAL_LITERAL
| DECIMAL_LITERAL
;
fragment HEX_DIGIT : ('0'..'9'|'a'..'f'|'A'..'F') ;
fragment HEX_LITERAL : '-'? '0' ('x'|'X') HEX_DIGIT+ ;
fragment OCTAL_LITERAL : '-'? '0' ('0'..'7')+ ;
fragment DECIMAL_LITERAL : ('0' | '-'? '1'..'9' '0'..'9'*) ;
STRING_LITERAL
: '"' STRING_GUTS '"'
;
fragment STRING_GUTS : ( ESCAPE_SEQUENCE | ~('\\'|'"'|'\n'|'\r') )* ;
fragment ESCAPE_SEQUENCE
: '\\' ('b'|'t'|'n'|'f'|'r'|'\"'|'\''|'\\')
| OCTAL_ESCAPE
| UNICODE_ESCAPE
;
fragment OCTAL_ESCAPE
: '\\' ('0'..'3') ('0'..'7') ('0'..'7')
| '\\' ('0'..'7') ('0'..'7')
| '\\' ('0'..'7')
;
fragment UNICODE_ESCAPE
: '\\' 'u' HEX_DIGIT HEX_DIGIT HEX_DIGIT HEX_DIGIT
;
BOOL_LITERAL : 'true' | 'false';
FLOAT_LITERAL
: '-'? ('0'..'9')+ '.' ('0'..'9')* EXPONENT?
| '-'? '.' ('0'..'9')+ EXPONENT?
| '-'? ('0'..'9')+ EXPONENT
;
fragment EXPONENT : ('e'|'E') ('+'|'-')? ('0'..'9')+ ;
IDENTIFIER : '_'* ('a'..'z' | 'A'..'Z' ) ('a'..'z' | 'A'..'Z' | '_' | '0'..'9')* ;
QUALIFIED_IDENTIFIER : IDENTIFIER ('.' IDENTIFIER)+ ;
WS : [ \t\r\n]+ -> skip ; |
samples/vsx_mem.c.power8_gcc-4.9.asm | seiko2plus/vsx_mem_test | 0 | 170745 | <reponame>seiko2plus/vsx_mem_test<filename>samples/vsx_mem.c.power8_gcc-4.9.asm
/test/samples/vsx_mem.c.power8_gcc-4.9.o: file format elf64-powerpcle
Disassembly of section .text:
0000000000000000 <INTRIN_schar>:
0: 00 00 26 2c cmpdi r6,0
4: 00 00 20 39 li r9,0
8: 34 00 82 41 beq 3c <INTRIN_schar+0x3c>
c: 14 00 00 48 b 20 <INTRIN_schar+0x20>
10: 00 00 00 60 nop
14: 00 00 00 60 nop
18: 00 00 00 60 nop
1c: 00 00 42 60 ori r2,r2,0
20: 99 4e 04 7c lxvd2x vs32,r4,r9
24: 99 4e 25 7c lxvd2x vs33,r5,r9
28: 00 08 00 10 vaddubm v0,v0,v1
2c: 99 4f 03 7c stxvd2x vs32,r3,r9
30: 10 00 29 39 addi r9,r9,16
34: 40 48 a6 7f cmpld cr7,r6,r9
38: e8 ff 9d 41 bgt cr7,20 <INTRIN_schar+0x20>
3c: 20 00 80 4e blr
...
4c: 00 00 42 60 ori r2,r2,0
0000000000000050 <INTRIN_short>:
50: 00 00 26 2c cmpdi r6,0
54: 00 00 20 39 li r9,0
58: 00 00 40 39 li r10,0
5c: 24 00 82 41 beq 80 <INTRIN_short+0x30>
60: 99 4e 04 7c lxvd2x vs32,r4,r9
64: 99 4e 25 7c lxvd2x vs33,r5,r9
68: 08 00 4a 39 addi r10,r10,8
6c: 40 50 a6 7f cmpld cr7,r6,r10
70: 40 08 00 10 vadduhm v0,v0,v1
74: 99 4f 03 7c stxvd2x vs32,r3,r9
78: 10 00 29 39 addi r9,r9,16
7c: e4 ff 9d 41 bgt cr7,60 <INTRIN_short+0x10>
80: 20 00 80 4e blr
...
0000000000000090 <INTRIN_int>:
90: 00 00 26 2c cmpdi r6,0
94: 00 00 20 39 li r9,0
98: 00 00 40 39 li r10,0
9c: 24 00 82 41 beq c0 <INTRIN_int+0x30>
a0: 99 4e 04 7c lxvd2x vs32,r4,r9
a4: 99 4e 25 7c lxvd2x vs33,r5,r9
a8: 04 00 4a 39 addi r10,r10,4
ac: 40 50 a6 7f cmpld cr7,r6,r10
b0: 80 08 00 10 vadduwm v0,v0,v1
b4: 99 4f 03 7c stxvd2x vs32,r3,r9
b8: 10 00 29 39 addi r9,r9,16
bc: e4 ff 9d 41 bgt cr7,a0 <INTRIN_int+0x10>
c0: 20 00 80 4e blr
...
00000000000000d0 <INTRIN_double>:
d0: 00 00 26 2c cmpdi r6,0
d4: 00 00 20 39 li r9,0
d8: 00 00 40 39 li r10,0
dc: 20 00 82 4d beqlr
e0: 98 4e 04 7c lxvd2x vs0,r4,r9
e4: 98 4e 85 7d lxvd2x vs12,r5,r9
e8: 02 00 4a 39 addi r10,r10,2
ec: 40 50 a6 7f cmpld cr7,r6,r10
f0: 00 63 00 f0 xvadddp vs0,vs0,vs12
f4: 98 4f 03 7c stxvd2x vs0,r3,r9
f8: 10 00 29 39 addi r9,r9,16
fc: e4 ff 9d 41 bgt cr7,e0 <INTRIN_double+0x10>
100: 20 00 80 4e blr
...
0000000000000110 <DEREF_schar>:
110: 00 00 26 2c cmpdi r6,0
114: 00 00 20 39 li r9,0
118: 24 00 82 41 beq 13c <DEREF_schar+0x2c>
11c: 00 00 42 60 ori r2,r2,0
120: 99 4e 04 7c lxvd2x vs32,r4,r9
124: 99 4e 25 7c lxvd2x vs33,r5,r9
128: 00 08 00 10 vaddubm v0,v0,v1
12c: 99 4f 03 7c stxvd2x vs32,r3,r9
130: 10 00 29 39 addi r9,r9,16
134: 40 48 a6 7f cmpld cr7,r6,r9
138: e8 ff 9d 41 bgt cr7,120 <DEREF_schar+0x10>
13c: 20 00 80 4e blr
...
14c: 00 00 42 60 ori r2,r2,0
0000000000000150 <DEREF_short>:
150: 00 00 26 2c cmpdi r6,0
154: 00 00 20 39 li r9,0
158: 00 00 40 39 li r10,0
15c: 24 00 82 41 beq 180 <DEREF_short+0x30>
160: 99 4e 04 7c lxvd2x vs32,r4,r9
164: 99 4e 25 7c lxvd2x vs33,r5,r9
168: 08 00 4a 39 addi r10,r10,8
16c: 40 50 a6 7f cmpld cr7,r6,r10
170: 40 08 00 10 vadduhm v0,v0,v1
174: 99 4f 03 7c stxvd2x vs32,r3,r9
178: 10 00 29 39 addi r9,r9,16
17c: e4 ff 9d 41 bgt cr7,160 <DEREF_short+0x10>
180: 20 00 80 4e blr
...
0000000000000190 <DEREF_int>:
190: 00 00 26 2c cmpdi r6,0
194: 00 00 20 39 li r9,0
198: 00 00 40 39 li r10,0
19c: 24 00 82 41 beq 1c0 <DEREF_int+0x30>
1a0: 99 4e 04 7c lxvd2x vs32,r4,r9
1a4: 99 4e 25 7c lxvd2x vs33,r5,r9
1a8: 04 00 4a 39 addi r10,r10,4
1ac: 40 50 a6 7f cmpld cr7,r6,r10
1b0: 80 08 00 10 vadduwm v0,v0,v1
1b4: 99 4f 03 7c stxvd2x vs32,r3,r9
1b8: 10 00 29 39 addi r9,r9,16
1bc: e4 ff 9d 41 bgt cr7,1a0 <DEREF_int+0x10>
1c0: 20 00 80 4e blr
...
00000000000001d0 <DEREF_double>:
1d0: 00 00 26 2c cmpdi r6,0
1d4: 00 00 20 39 li r9,0
1d8: 00 00 40 39 li r10,0
1dc: 20 00 82 4d beqlr
1e0: 98 4e 04 7c lxvd2x vs0,r4,r9
1e4: 98 4e 85 7d lxvd2x vs12,r5,r9
1e8: 02 00 4a 39 addi r10,r10,2
1ec: 40 50 a6 7f cmpld cr7,r6,r10
1f0: 00 63 00 f0 xvadddp vs0,vs0,vs12
1f4: 98 4f 03 7c stxvd2x vs0,r3,r9
1f8: 10 00 29 39 addi r9,r9,16
1fc: e4 ff 9d 41 bgt cr7,1e0 <DEREF_double+0x10>
200: 20 00 80 4e blr
...
Disassembly of section .comment:
0000000000000000 <.comment>:
0: 00 47 43 43 bc- 26,so,4700 <DEREF_double+0x4530>
4: 3a 20 28 55 rlwinm r8,r9,4,0,29
8: 62 75 6e 74 andis. r14,r3,30050
c: 75 20 34 2e cmpdi cr4,r20,8309
10: 39 2e 33 2d cmpdi cr2,r19,11833
14: 31 33 75 62 ori r21,r19,13105
18: 75 6e 74 75 andis. r20,r11,28277
1c: 32 29 20 34 addic. r1,r0,10546
20: 2e 39 2e 33 addic r25,r14,14638
...
|
programs/oeis/196/A196513.asm | karttu/loda | 1 | 21936 | <reponame>karttu/loda<gh_stars>1-10
; A196513: a(n) = 1*4*7 + 4*7*10 + 7*10*13 + ... (n terms).
; 0,28,308,1218,3298,7250,13938,24388,39788,61488,91000,129998,180318,243958,323078,420000,537208,677348,843228,1037818,1264250,1525818,1825978,2168348,2556708,2995000,3487328,4037958,4651318,5331998,6084750,6914488,7826288,8825388,9917188,11107250,12401298,13805218,15325058,16967028,18737500,20643008,22690248,24886078,27237518,29751750,32436118,35298128,38345448,41585908,45027500,48678378,52546858,56641418,60970698,65543500,70368788,75455688,80813488,86451638,92379750,98607598,105145118,112002408,119189728,126717500,134596308,142836898,151450178,160447218,169839250,179637668,189854028,200500048,211587608,223128750,235135678,247620758,260596518,274075648,288071000,302595588,317662588,333285338,349477338,366252250,383623898,401606268,420213508,439459928,459360000,479928358,501179798,523129278,545791918,569183000,593317968,618212428,643882148,670343058,697611250,725702978,754634658,784422868,815084348,846636000,879094888,912478238,946803438,982088038,1018349750,1055606448,1093876168,1133177108,1173527628,1214946250,1257451658,1301062698,1345798378,1391677868,1438720500,1486945768,1536373328,1587022998,1638914758,1692068750,1746505278,1802244808,1859307968,1917715548,1977488500,2038647938,2101215138,2165211538,2230658738,2297578500,2365992748,2435923568,2507393208,2580424078,2655038750,2731259958,2809110598,2888613728,2969792568,3052670500,3137271068,3223617978,3311735098,3401646458,3493376250,3586948828,3682388708,3779720568,3878969248,3980159750,4083317238,4188467038,4295634638,4404845688,4516126000,4629501548,4744998468,4862643058,4982461778,5104481250,5228728258,5355229748,5484012828,5615104768,5748533000,5884325118,6022508878,6163112198,6306163158,6451690000,6599721128,6750285108,6903410668,7059126698,7217462250,7378446538,7542108938,7708478988,7877586388,8049461000,8224132848,8401632118,8581989158,8765234478,8951398750,9140512808,9332607648,9527714428,9725864468,9927089250,10131420418,10338889778,10549529298,10763371108,10980447500,11200790928,11424434008,11651409518,11881750398,12115489750,12352660838,12593297088,12837432088,13085099588,13336333500,13591167898,13849637018,14111775258,14377617178,14647197500,14920551108,15197713048,15478718528,15763602918,16052401750,16345150718,16641885678,16942642648,17247457808,17556367500,17869408228,18186616658,18508029618,18833684098,19163617250,19497866388,19836468988,20179462688,20526885288,20878774750,21235169198,21596106918,21961626358,22331766128,22706565000,23086061908,23470295948,23859306378,24253132618,24651814250,25055391018,25463902828,25877389748,26295892008
mul $0,3
mov $1,$0
add $0,5
mul $1,$0
mov $2,$1
sub $1,10
mul $1,$2
div $1,24
mul $1,2
|
test/interaction/Issue3964.agda | shlevy/agda | 1,989 | 12702 |
open import Agda.Builtin.Equality
open import Agda.Builtin.Sigma
module _ {X : Set} {x : X} where
test : (p q : Σ X (x ≡_)) → p ≡ q
test (.x , refl) (z , q) = {!q!}
-- C-c C-c q RET:
-- WAS: test (_ , refl) (_ , refl)
-- WANT: preserved user-written pattern
-- test (.x , refl) (_ , refl)
test' : (p q : Σ X (x ≡_)) → p ≡ q
test' (x , refl) (z , q) = {!q!}
-- here it's fine!
-- C-c C-c q RET gives us:
-- test' (x , refl) (.x , refl) = {!!}
|
src/natools-s_expressions-templates-generic_integers.adb | faelys/natools | 0 | 16252 | <filename>src/natools-s_expressions-templates-generic_integers.adb<gh_stars>0
------------------------------------------------------------------------------
-- Copyright (c) 2014, <NAME> --
-- --
-- Permission to use, copy, modify, and distribute this software for any --
-- purpose with or without fee is hereby granted, provided that the above --
-- copyright notice and this permission notice appear in all copies. --
-- --
-- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES --
-- WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF --
-- MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR --
-- ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES --
-- WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN --
-- ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF --
-- OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. --
------------------------------------------------------------------------------
with Natools.S_Expressions.Atom_Ref_Constructors;
with Natools.S_Expressions.Interpreter_Loop;
with Natools.Static_Maps.S_Expressions.Templates.Integers;
package body Natools.S_Expressions.Templates.Generic_Integers is
package Commands
renames Natools.Static_Maps.S_Expressions.Templates.Integers;
function Create (Data : Atom) return Atom_Refs.Immutable_Reference
renames Atom_Ref_Constructors.Create;
procedure Insert_Image
(State : in out Format;
Context : in Meaningless_Type;
Image : in Atom);
procedure Update_Image
(State : in out Format;
Context : in Meaningless_Type;
Name : in Atom;
Arguments : in out Lockable.Descriptor'Class);
procedure Update_Format
(State : in out Format;
Context : in Meaningless_Type;
Name : in Atom;
Arguments : in out Lockable.Descriptor'Class);
------------------------------
-- Local Helper Subprograms --
------------------------------
procedure Insert_Image
(State : in out Format;
Context : in Meaningless_Type;
Image : in Atom)
is
pragma Unreferenced (Context);
begin
State.Append_Image (Image);
end Insert_Image;
procedure Update_Image
(State : in out Format;
Context : in Meaningless_Type;
Name : in Atom;
Arguments : in out Lockable.Descriptor'Class)
is
pragma Unreferenced (Context);
Value : T;
begin
begin
Value := T'Value (To_String (Name));
exception
when Constraint_Error =>
return;
end;
case Arguments.Current_Event is
when Events.Add_Atom =>
State.Set_Image (Value, Arguments.Current_Atom);
when others =>
State.Remove_Image (Value);
end case;
end Update_Image;
procedure Image_Interpreter is new Interpreter_Loop
(Format, Meaningless_Type, Update_Image, Insert_Image);
procedure Update_Format
(State : in out Format;
Context : in Meaningless_Type;
Name : in Atom;
Arguments : in out Lockable.Descriptor'Class)
is
pragma Unreferenced (Context);
Command : constant String := To_String (Name);
Event : Events.Event;
begin
case Commands.Main (Command) is
when Commands.Error =>
null;
when Commands.Align =>
case Arguments.Current_Event is
when Events.Add_Atom =>
case Commands.To_Align_Command
(To_String (Arguments.Current_Atom))
is
when Commands.Unknown_Align =>
null;
when Commands.Set_Left =>
State.Set_Align (Left_Aligned);
when Commands.Set_Center =>
State.Set_Align (Centered);
when Commands.Set_Right =>
State.Set_Align (Right_Aligned);
end case;
when others =>
null;
end case;
when Commands.Align_Center =>
State.Set_Align (Centered);
when Commands.Align_Left =>
State.Set_Align (Left_Aligned);
when Commands.Align_Right =>
State.Set_Align (Right_Aligned);
when Commands.Base =>
State.Set_Symbols (Arguments);
when Commands.Image_Range =>
Parse (State.Images, Arguments);
when Commands.Images =>
Image_Interpreter (Arguments, State, Meaningless_Value);
when Commands.Padding =>
case Arguments.Current_Event is
when Events.Add_Atom =>
State.Left_Padding := Create (Arguments.Current_Atom);
State.Right_Padding := State.Left_Padding;
when others =>
return;
end case;
Arguments.Next (Event);
case Event is
when Events.Add_Atom =>
State.Set_Right_Padding (Arguments.Current_Atom);
when others =>
null;
end case;
when Commands.Padding_Left =>
case Arguments.Current_Event is
when Events.Add_Atom =>
State.Set_Left_Padding (Arguments.Current_Atom);
when others =>
null;
end case;
when Commands.Padding_Right =>
case Arguments.Current_Event is
when Events.Add_Atom =>
State.Set_Right_Padding (Arguments.Current_Atom);
when others =>
null;
end case;
when Commands.Prefix =>
Parse (State.Prefix, Arguments);
when Commands.Sign =>
case Arguments.Current_Event is
when Events.Add_Atom =>
State.Set_Positive_Sign (Arguments.Current_Atom);
when others =>
return;
end case;
Arguments.Next (Event);
case Event is
when Events.Add_Atom =>
State.Set_Negative_Sign (Arguments.Current_Atom);
when others =>
null;
end case;
when Commands.Suffix =>
Parse (State.Suffix, Arguments);
when Commands.Width =>
case Arguments.Current_Event is
when Events.Add_Atom =>
declare
New_Width : constant Width
:= Width'Value (To_String (Arguments.Current_Atom));
begin
State.Set_Maximum_Width (New_Width);
State.Set_Minimum_Width (New_Width);
end;
when others =>
return;
end case;
Arguments.Next (Event);
case Event is
when Events.Add_Atom =>
State.Set_Maximum_Width
(Width'Value (To_String (Arguments.Current_Atom)));
when others =>
return;
end case;
Arguments.Next (Event);
case Event is
when Events.Add_Atom =>
State.Set_Overflow_Message (Arguments.Current_Atom);
when others =>
return;
end case;
when Commands.Width_Max =>
case Arguments.Current_Event is
when Events.Add_Atom =>
State.Set_Maximum_Width
(Width'Value (To_String (Arguments.Current_Atom)));
when others =>
return;
end case;
Arguments.Next (Event);
case Event is
when Events.Add_Atom =>
State.Set_Overflow_Message (Arguments.Current_Atom);
when others =>
return;
end case;
when Commands.Width_Min =>
case Arguments.Current_Event is
when Events.Add_Atom =>
State.Set_Minimum_Width
(Width'Value (To_String (Arguments.Current_Atom)));
when others =>
null;
end case;
end case;
end Update_Format;
procedure Interpreter is new Interpreter_Loop
(Format, Meaningless_Type, Update_Format, Insert_Image);
-------------------------
-- Dynamic Atom Arrays --
-------------------------
function Create (Atom_List : in out S_Expressions.Descriptor'Class)
return Atom_Array
is
function Current_Atom return Atom is (Atom_List.Current_Atom);
New_Ref : Atom_Refs.Immutable_Reference;
begin
case Atom_List.Current_Event is
when Events.Add_Atom =>
New_Ref := Atom_Refs.Create (Current_Atom'Access);
Atom_List.Next;
return (0 => New_Ref) & Create (Atom_List);
when others =>
return Atom_Array'(1 .. 0 => <>);
end case;
end Create;
function Create (Atom_List : in out S_Expressions.Descriptor'Class)
return Atom_Arrays.Immutable_Reference
is
function Create_Array return Atom_Array is (Create (Atom_List));
begin
return Atom_Arrays.Create (Create_Array'Access);
end Create;
function Decimal return Atom_Arrays.Immutable_Reference is
function Create return Atom_Array
is ((0 => Create ((1 => Character'Pos ('0'))),
1 => Create ((1 => Character'Pos ('1'))),
2 => Create ((1 => Character'Pos ('2'))),
3 => Create ((1 => Character'Pos ('3'))),
4 => Create ((1 => Character'Pos ('4'))),
5 => Create ((1 => Character'Pos ('5'))),
6 => Create ((1 => Character'Pos ('6'))),
7 => Create ((1 => Character'Pos ('7'))),
8 => Create ((1 => Character'Pos ('8'))),
9 => Create ((1 => Character'Pos ('9')))));
begin
if Base_10.Is_Empty then
Base_10 := Atom_Arrays.Create (Create'Access);
end if;
return Base_10;
end Decimal;
procedure Reverse_Render
(Value : in Natural_T;
Symbols : in Atom_Array;
Output : in out Atom_Buffers.Atom_Buffer;
Length : out Width)
is
Digit : Natural_T;
Remainder : Natural_T := Value;
begin
Length := 0;
loop
Digit := Remainder mod Symbols'Length;
Remainder := Remainder / Symbols'Length;
Length := Length + 1;
Output.Append (Symbols (Digit).Query.Data.all);
exit when Remainder = 0;
end loop;
end Reverse_Render;
-----------------------
-- Dynamic Atom Maps --
-----------------------
procedure Exclude
(Map : in out Atom_Maps.Map;
Values : in Interval)
is
procedure Delete_And_Next
(Target : in out Atom_Maps.Map;
Cursor : in out Atom_Maps.Cursor);
procedure Delete_And_Next
(Target : in out Atom_Maps.Map;
Cursor : in out Atom_Maps.Cursor)
is
Next : constant Atom_Maps.Cursor := Atom_Maps.Next (Cursor);
begin
Target.Delete (Cursor);
Cursor := Next;
end Delete_And_Next;
Cursor : Atom_Maps.Cursor := Map.Ceiling ((Values.First, Values.First));
begin
if not Atom_Maps.Has_Element (Cursor) then
return;
end if;
pragma Assert (not (Atom_Maps.Key (Cursor).Last < Values.First));
if Atom_Maps.Key (Cursor).First < Values.First then
declare
Old_Key : constant Interval := Atom_Maps.Key (Cursor);
Prefix_Key : constant Interval
:= (Old_Key.First, T'Pred (Values.First));
Prefix_Image : constant Displayed_Atom
:= Atom_Maps.Element (Cursor);
begin
Delete_And_Next (Map, Cursor);
Map.Insert (Prefix_Key, Prefix_Image);
if Values.Last < Old_Key.Last then
Map.Insert ((T'Succ (Values.Last), Old_Key.Last), Prefix_Image);
return;
end if;
end;
end if;
while Atom_Maps.Has_Element (Cursor)
and then not (Values.Last < Atom_Maps.Key (Cursor).Last)
loop
Delete_And_Next (Map, Cursor);
end loop;
if Atom_Maps.Has_Element (Cursor)
and then not (Values.Last < Atom_Maps.Key (Cursor).First)
then
declare
Old_Key : constant Interval := Atom_Maps.Key (Cursor);
Suffix_Key : constant Interval
:= (T'Succ (Values.Last), Old_Key.Last);
Suffix_Image : constant Displayed_Atom
:= Atom_Maps.Element (Cursor);
begin
Delete_And_Next (Map, Cursor);
Map.Insert (Suffix_Key, Suffix_Image);
end;
end if;
end Exclude;
procedure Include
(Map : in out Atom_Maps.Map;
Values : in Interval;
Image : in Atom_Refs.Immutable_Reference;
Width : in Generic_Integers.Width) is
begin
Exclude (Map, Values);
if not Image.Is_Empty then
Map.Insert (Values, (Image, Width));
end if;
end Include;
procedure Parse
(Map : in out Atom_Maps.Map;
Expression : in out Lockable.Descriptor'Class)
is
Event : Events.Event := Expression.Current_Event;
Lock : Lockable.Lock_State;
begin
loop
case Event is
when Events.Add_Atom =>
declare
Image : constant Atom := Expression.Current_Atom;
begin
Include
(Map,
(T'First, T'Last),
Create (Image),
Image'Length);
end;
when Events.Open_List =>
Expression.Lock (Lock);
begin
Expression.Next;
Parse_Single_Affix (Map, Expression);
exception
when others =>
Expression.Unlock (Lock, False);
raise;
end;
Expression.Unlock (Lock);
Event := Expression.Current_Event;
exit when Event in Events.Error | Events.End_Of_Input;
when Events.Close_List | Events.Error | Events.End_Of_Input =>
exit;
end case;
Expression.Next (Event);
end loop;
end Parse;
procedure Parse_Single_Affix
(Map : in out Atom_Maps.Map;
Expression : in out Lockable.Descriptor'Class)
is
function Read_Interval (Exp : in out Descriptor'Class) return Interval;
function Read_Interval (Exp : in out Descriptor'Class) return Interval is
Event : Events.Event;
First, Last : T;
begin
Exp.Next (Event);
case Event is
when Events.Add_Atom =>
First := T'Value (To_String (Exp.Current_Atom));
when others =>
raise Constraint_Error with "Lower bound not an atom";
end case;
Exp.Next (Event);
case Event is
when Events.Add_Atom =>
Last := T'Value (To_String (Exp.Current_Atom));
when others =>
raise Constraint_Error with "Upper bound not an atom";
end case;
if Last < First then
raise Constraint_Error with "Invalid interval (Last < First)";
end if;
return (First, Last);
end Read_Interval;
Event : Events.Event := Expression.Current_Event;
Lock : Lockable.Lock_State;
Affix : Atom_Refs.Immutable_Reference;
Affix_Width : Width := 0;
begin
case Event is
when Events.Add_Atom =>
declare
Current : constant Atom := Expression.Current_Atom;
begin
if Current'Length > 0 then
Affix := Create (Current);
Affix_Width := Current'Length;
end if;
end;
when Events.Open_List =>
Expression.Lock (Lock);
begin
Expression.Next (Event);
if Event /= Events.Add_Atom then
Expression.Unlock (Lock, False);
return;
end if;
Affix := Create (Expression.Current_Atom);
Affix_Width := Affix.Query.Data.all'Length;
Expression.Next (Event);
if Event = Events.Add_Atom then
begin
Affix_Width := Width'Value
(To_String (Expression.Current_Atom));
exception
when Constraint_Error => null;
end;
end if;
exception
when others =>
Expression.Unlock (Lock, False);
raise;
end;
Expression.Unlock (Lock);
when others =>
return;
end case;
loop
Expression.Next (Event);
case Event is
when Events.Add_Atom =>
declare
Value : T;
begin
Value := T'Value (To_String (Expression.Current_Atom));
Include (Map, (Value, Value), Affix, Affix_Width);
exception
when Constraint_Error => null;
end;
when Events.Open_List =>
Expression.Lock (Lock);
begin
Include
(Map, Read_Interval (Expression),
Affix, Affix_Width);
exception
when Constraint_Error =>
null;
when others =>
Expression.Unlock (Lock, False);
raise;
end;
Expression.Unlock (Lock);
when others =>
exit;
end case;
end loop;
end Parse_Single_Affix;
----------------------
-- Public Interface --
----------------------
function Render (Value : T; Template : Format) return Atom is
function "*" (Count : Width; Symbol : Atom) return Atom;
function Safe_Atom
(Ref : Atom_Refs.Immutable_Reference;
Fallback : String)
return Atom;
-- The expression below seems to trigger an infinite loop in
-- GNAT-AUX 4.9.0 20140422, but the if-statement form doesn't.
-- is (if Ref.Is_Empty then To_Atom (Fallback) else Ref.Query.Data.all);
function Safe_Atom
(Ref : Atom_Refs.Immutable_Reference;
Fallback : String)
return Atom is
begin
if Ref.Is_Empty then
return To_Atom (Fallback);
else
return Ref.Query.Data.all;
end if;
end Safe_Atom;
function "*" (Count : Width; Symbol : Atom) return Atom is
Result : Atom (1 .. Offset (Count) * Symbol'Length);
begin
for I in 0 .. Offset (Count) - 1 loop
Result (I * Symbol'Length + 1 .. (I + 1) * Symbol'Length)
:= Symbol;
end loop;
return Result;
end "*";
Output : Atom_Buffers.Atom_Buffer;
Has_Sign : Boolean := True;
Length : Width;
Symbols : constant Atom_Arrays.Immutable_Reference
:= (if Template.Symbols.Is_Empty then Decimal else Template.Symbols);
begin
Check_Explicit_Image :
declare
Cursor : constant Atom_Maps.Cursor
:= Template.Images.Find ((Value, Value));
begin
if Atom_Maps.Has_Element (Cursor) then
return Atom_Maps.Element (Cursor).Image.Query.Data.all;
end if;
end Check_Explicit_Image;
if Value < 0 then
Reverse_Render (-Value, Symbols.Query.Data.all, Output, Length);
Output.Append (Safe_Atom (Template.Negative_Sign, "-"));
else
Reverse_Render (Value, Symbols.Query.Data.all, Output, Length);
if not Template.Positive_Sign.Is_Empty then
Output.Append (Template.Positive_Sign.Query.Data.all);
else
Has_Sign := False;
end if;
end if;
if Has_Sign then
Length := Length + 1;
end if;
Add_Prefix :
declare
Cursor : constant Atom_Maps.Cursor
:= Template.Prefix.Find ((Value, Value));
begin
if Atom_Maps.Has_Element (Cursor) then
declare
Data : constant Displayed_Atom := Atom_Maps.Element (Cursor);
begin
Output.Append_Reverse (Data.Image.Query.Data.all);
Length := Length + Data.Width;
end;
end if;
end Add_Prefix;
Output.Invert;
Add_Suffix :
declare
Cursor : constant Atom_Maps.Cursor
:= Template.Suffix.Find ((Value, Value));
begin
if Atom_Maps.Has_Element (Cursor) then
declare
Data : constant Displayed_Atom := Atom_Maps.Element (Cursor);
begin
Output.Append (Data.Image.Query.Data.all);
Length := Length + Data.Width;
end;
end if;
end Add_Suffix;
if Length > Template.Maximum_Width then
return Safe_Atom (Template.Overflow_Message, "");
end if;
if Length < Template.Minimum_Width then
declare
Needed : constant Width := Template.Minimum_Width - Length;
Left_Count, Right_Count : Width := 0;
begin
case Template.Align is
when Left_Aligned =>
Right_Count := Needed;
when Centered =>
Left_Count := Needed / 2;
Right_Count := Needed - Left_Count;
when Right_Aligned =>
Left_Count := Needed;
end case;
return Left_Count * Safe_Atom (Template.Left_Padding, " ")
& Output.Data
& Right_Count * Safe_Atom (Template.Right_Padding, " ");
end;
end if;
return Output.Data;
end Render;
procedure Parse
(Template : in out Format;
Expression : in out Lockable.Descriptor'Class) is
begin
Interpreter (Expression, Template, Meaningless_Value);
end Parse;
procedure Render
(Output : in out Ada.Streams.Root_Stream_Type'Class;
Template : in out Lockable.Descriptor'Class;
Value : in T)
is
Parsed_Template : Format;
begin
Parse (Parsed_Template, Template);
Output.Write (Render (Value, Parsed_Template));
end Render;
procedure Render
(Output : in out Ada.Streams.Root_Stream_Type'Class;
Default_Format : in Format;
Template : in out Lockable.Descriptor'Class;
Value : in T)
is
Parsed_Template : Format := Default_Format;
begin
Parse (Parsed_Template, Template);
Output.Write (Render (Value, Parsed_Template));
end Render;
---------------------
-- Format Mutators --
---------------------
procedure Append_Image
(Object : in out Format;
Image : in Atom_Refs.Immutable_Reference) is
begin
Set_Image (Object, Next_Index (Object.Images), Image);
end Append_Image;
procedure Append_Image
(Object : in out Format;
Image : in Atom) is
begin
Append_Image (Object, Create (Image));
end Append_Image;
procedure Remove_Image (Object : in out Format; Value : in T) is
begin
Exclude (Object.Images, (Value, Value));
end Remove_Image;
procedure Remove_Prefix
(Object : in out Format;
Value : in T) is
begin
Remove_Prefix (Object, (Value, Value));
end Remove_Prefix;
procedure Remove_Prefix
(Object : in out Format;
Values : in Interval) is
begin
Set_Prefix (Object, Values, Atom_Refs.Null_Immutable_Reference, 0);
end Remove_Prefix;
procedure Remove_Suffix
(Object : in out Format;
Value : in T) is
begin
Remove_Suffix (Object, (Value, Value));
end Remove_Suffix;
procedure Remove_Suffix
(Object : in out Format;
Values : in Interval) is
begin
Set_Suffix (Object, Values, Atom_Refs.Null_Immutable_Reference, 0);
end Remove_Suffix;
procedure Set_Align (Object : in out Format; Value : in Alignment) is
begin
Object.Align := Value;
end Set_Align;
procedure Set_Image
(Object : in out Format;
Value : in T;
Image : in Atom_Refs.Immutable_Reference) is
begin
Include (Object.Images, (Value, Value), Image, 0);
end Set_Image;
procedure Set_Image
(Object : in out Format;
Value : in T;
Image : in Atom) is
begin
Set_Image (Object, Value, Create (Image));
end Set_Image;
procedure Set_Left_Padding
(Object : in out Format;
Symbol : in Atom_Refs.Immutable_Reference) is
begin
Object.Left_Padding := Symbol;
end Set_Left_Padding;
procedure Set_Left_Padding
(Object : in out Format;
Symbol : in Atom) is
begin
Set_Left_Padding (Object, Create (Symbol));
end Set_Left_Padding;
procedure Set_Maximum_Width (Object : in out Format; Value : in Width) is
begin
Object.Maximum_Width := Value;
if Object.Minimum_Width > Object.Maximum_Width then
Object.Minimum_Width := Value;
end if;
end Set_Maximum_Width;
procedure Set_Minimum_Width (Object : in out Format; Value : in Width) is
begin
Object.Minimum_Width := Value;
if Object.Minimum_Width > Object.Maximum_Width then
Object.Maximum_Width := Value;
end if;
end Set_Minimum_Width;
procedure Set_Negative_Sign
(Object : in out Format;
Sign : in Atom_Refs.Immutable_Reference) is
begin
Object.Negative_Sign := Sign;
end Set_Negative_Sign;
procedure Set_Negative_Sign
(Object : in out Format;
Sign : in Atom) is
begin
Set_Negative_Sign (Object, Create (Sign));
end Set_Negative_Sign;
procedure Set_Overflow_Message
(Object : in out Format;
Message : in Atom_Refs.Immutable_Reference) is
begin
Object.Overflow_Message := Message;
end Set_Overflow_Message;
procedure Set_Overflow_Message
(Object : in out Format;
Message : in Atom) is
begin
Set_Overflow_Message (Object, Create (Message));
end Set_Overflow_Message;
procedure Set_Positive_Sign
(Object : in out Format;
Sign : in Atom_Refs.Immutable_Reference) is
begin
Object.Positive_Sign := Sign;
end Set_Positive_Sign;
procedure Set_Positive_Sign
(Object : in out Format;
Sign : in Atom) is
begin
Set_Positive_Sign (Object, Create (Sign));
end Set_Positive_Sign;
procedure Set_Prefix
(Object : in out Format;
Value : in T;
Prefix : in Atom_Refs.Immutable_Reference;
Width : in Generic_Integers.Width) is
begin
Set_Prefix (Object, (Value, Value), Prefix, Width);
end Set_Prefix;
procedure Set_Prefix
(Object : in out Format;
Value : in T;
Prefix : in Atom) is
begin
Set_Prefix (Object, Value, Prefix, Prefix'Length);
end Set_Prefix;
procedure Set_Prefix
(Object : in out Format;
Value : in T;
Prefix : in Atom;
Width : in Generic_Integers.Width) is
begin
Set_Prefix (Object, Value, Create (Prefix), Width);
end Set_Prefix;
procedure Set_Prefix
(Object : in out Format;
Values : in Interval;
Prefix : in Atom_Refs.Immutable_Reference;
Width : in Generic_Integers.Width) is
begin
Include (Object.Prefix, Values, Prefix, Width);
end Set_Prefix;
procedure Set_Prefix
(Object : in out Format;
Values : in Interval;
Prefix : in Atom) is
begin
Set_Prefix (Object, Values, Prefix, Prefix'Length);
end Set_Prefix;
procedure Set_Prefix
(Object : in out Format;
Values : in Interval;
Prefix : in Atom;
Width : in Generic_Integers.Width) is
begin
Set_Prefix (Object, Values, Create (Prefix), Width);
end Set_Prefix;
procedure Set_Right_Padding
(Object : in out Format;
Symbol : in Atom_Refs.Immutable_Reference) is
begin
Object.Right_Padding := Symbol;
end Set_Right_Padding;
procedure Set_Right_Padding
(Object : in out Format;
Symbol : in Atom) is
begin
Set_Right_Padding (Object, Create (Symbol));
end Set_Right_Padding;
procedure Set_Suffix
(Object : in out Format;
Value : in T;
Suffix : in Atom_Refs.Immutable_Reference;
Width : in Generic_Integers.Width) is
begin
Set_Suffix (Object, (Value, Value), Suffix, Width);
end Set_Suffix;
procedure Set_Suffix
(Object : in out Format;
Value : in T;
Suffix : in Atom) is
begin
Set_Suffix (Object, Value, Suffix, Suffix'Length);
end Set_Suffix;
procedure Set_Suffix
(Object : in out Format;
Value : in T;
Suffix : in Atom;
Width : in Generic_Integers.Width) is
begin
Set_Suffix (Object, Value, Create (Suffix), Width);
end Set_Suffix;
procedure Set_Suffix
(Object : in out Format;
Values : in Interval;
Suffix : in Atom_Refs.Immutable_Reference;
Width : in Generic_Integers.Width) is
begin
Include (Object.Suffix, Values, Suffix, Width);
end Set_Suffix;
procedure Set_Suffix
(Object : in out Format;
Values : in Interval;
Suffix : in Atom) is
begin
Set_Suffix (Object, Values, Suffix, Suffix'Length);
end Set_Suffix;
procedure Set_Suffix
(Object : in out Format;
Values : in Interval;
Suffix : in Atom;
Width : in Generic_Integers.Width) is
begin
Set_Suffix (Object, Values, Create (Suffix), Width);
end Set_Suffix;
procedure Set_Symbols
(Object : in out Format;
Symbols : in Atom_Arrays.Immutable_Reference) is
begin
if not Symbols.Is_Empty and then Symbols.Query.Data.all'Length >= 2 then
Object.Symbols := Symbols;
end if;
end Set_Symbols;
procedure Set_Symbols
(Object : in out Format;
Expression : in out S_Expressions.Descriptor'Class) is
begin
Set_Symbols (Object, Create (Expression));
end Set_Symbols;
end Natools.S_Expressions.Templates.Generic_Integers;
|
oeis/267/A267799.asm | neoneye/loda-programs | 11 | 245721 | <filename>oeis/267/A267799.asm
; A267799: a(n) = (1 + 2^n + 3^n)/2.
; 3,7,18,49,138,397,1158,3409,10098,30037,89598,267769,801258,2399677,7190838,21556129,64635618,193841317,581392878,1743916489,5231225178,15692626957,47075783718,141223156849,423661081938,1270966468597,3812865851358,11438530445209,34315457117898,102946102918237,308837771883798,926512241909569,2779534578245058,8338599439767877,25015789729369038,75047352008237929,225142021664975418,675425996275449517,2026277851387395078,6078833279284278289,18236499288097020978,54709496764779435157
add $0,1
mov $1,3
pow $1,$0
mov $2,2
pow $2,$0
add $1,$2
sub $1,5
div $1,2
add $1,3
mov $0,$1
|
libsrc/_DEVELOPMENT/ctype/c/sdcc_iy/tolower.asm | meesokim/z88dk | 0 | 8869 |
; int tolower(int c)
SECTION code_ctype
PUBLIC _tolower
EXTERN _tolower_fastcall
_tolower:
pop af
pop hl
push hl
push af
jp _tolower_fastcall
|
P6/data_P6_2/MDTest33.asm | alxzzhou/BUAA_CO_2020 | 1 | 104867 | <filename>P6/data_P6_2/MDTest33.asm
ori $ra,$ra,0xf
sll $1,$4,31
lb $4,12($0)
lui $0,48373
srav $1,$1,$0
mtlo $4
ori $1,$1,65181
addu $0,$0,$3
multu $0,$0
div $4,$ra
mtlo $4
lb $3,0($0)
multu $4,$4
srav $4,$5,$1
srav $4,$4,$5
sll $4,$4,16
sll $5,$4,5
mflo $2
mult $4,$4
lui $0,20218
ori $2,$2,51721
mthi $6
lui $4,53683
divu $5,$ra
mtlo $3
multu $2,$5
ori $4,$1,53024
divu $4,$ra
mtlo $5
lb $1,13($0)
mfhi $4
divu $4,$ra
lui $6,11865
srav $4,$4,$1
mthi $4
addu $4,$1,$3
srav $4,$1,$4
multu $2,$2
addu $5,$5,$5
divu $5,$ra
mtlo $0
addu $6,$2,$2
lui $5,50090
div $1,$ra
sll $5,$5,28
mthi $2
multu $1,$3
sll $5,$2,1
lb $1,1($0)
divu $1,$ra
divu $1,$ra
div $4,$ra
mtlo $6
sll $5,$1,13
srav $4,$3,$3
sb $1,6($0)
ori $2,$2,53518
div $4,$ra
mthi $1
sll $5,$0,5
div $1,$ra
lb $4,11($0)
mtlo $4
ori $4,$1,36991
divu $4,$ra
addiu $4,$4,9268
divu $5,$ra
div $2,$ra
mtlo $5
multu $1,$1
mfhi $3
ori $1,$2,36222
mtlo $5
div $0,$ra
sll $5,$4,9
mult $2,$2
mflo $4
sb $0,10($0)
lui $5,49390
sb $3,2($0)
ori $3,$3,37925
addu $5,$2,$4
lb $1,6($0)
srav $4,$6,$6
srav $3,$3,$3
mfhi $0
div $5,$ra
addiu $4,$5,-10905
sb $6,11($0)
srav $3,$5,$3
mthi $3
mfhi $4
div $5,$ra
mfhi $4
mfhi $0
addiu $2,$0,26514
addu $4,$1,$1
lb $5,1($0)
mfhi $4
div $3,$ra
addiu $5,$5,-13659
mult $1,$2
ori $4,$2,31545
div $5,$ra
addu $1,$4,$3
lb $1,14($0)
mult $5,$6
ori $3,$2,41093
mthi $2
mthi $4
addiu $6,$4,19245
mtlo $6
lb $4,13($0)
div $4,$ra
mflo $1
divu $5,$ra
addu $2,$4,$2
div $6,$ra
mflo $4
sll $0,$6,13
lb $2,12($0)
mtlo $2
divu $6,$ra
sb $5,6($0)
addu $1,$1,$4
mult $4,$4
mtlo $4
addiu $4,$2,-4470
sll $1,$0,18
sll $2,$2,22
mult $5,$5
addu $6,$6,$5
lui $5,64225
mfhi $1
addu $2,$1,$2
mfhi $2
mfhi $1
divu $1,$ra
mthi $4
divu $0,$ra
mthi $5
mfhi $6
lb $4,16($0)
sll $3,$3,22
multu $5,$2
lui $6,47021
divu $4,$ra
ori $6,$6,56733
mthi $0
divu $2,$ra
sll $2,$2,16
divu $4,$ra
mtlo $5
div $0,$ra
addiu $4,$4,-30276
div $3,$ra
multu $3,$3
sll $1,$1,1
lb $3,13($0)
addiu $1,$2,42
srav $5,$3,$3
multu $6,$6
div $4,$ra
divu $5,$ra
mfhi $2
divu $4,$ra
lb $1,4($0)
mflo $5
mtlo $0
mfhi $5
srav $3,$5,$3
lui $4,42372
mflo $5
lui $4,501
sb $4,11($0)
sll $0,$0,8
mult $5,$5
ori $4,$4,60721
mtlo $0
mult $3,$2
ori $3,$3,27645
sb $4,15($0)
lb $6,7($0)
mfhi $6
ori $0,$4,39915
mflo $2
lb $2,10($0)
addiu $1,$4,7414
div $0,$ra
sll $4,$3,21
addiu $6,$2,27460
div $2,$ra
ori $2,$4,36188
mfhi $5
lb $4,15($0)
addiu $5,$4,-4635
mthi $0
sll $4,$4,19
addiu $6,$1,-3853
mflo $3
srav $0,$1,$0
divu $1,$ra
sb $6,6($0)
lb $5,11($0)
sll $1,$1,9
srav $1,$1,$2
mfhi $1
multu $5,$6
mthi $6
sb $4,13($0)
sll $5,$2,2
mult $4,$1
addiu $4,$1,6736
sll $4,$0,11
div $6,$ra
ori $2,$2,45700
addiu $2,$2,1708
mflo $5
sb $5,5($0)
addiu $5,$1,4393
sll $1,$5,3
addu $3,$1,$3
div $4,$ra
mfhi $0
lui $1,519
sb $4,8($0)
div $5,$ra
srav $5,$5,$5
mthi $4
mfhi $6
lui $0,51460
mtlo $1
addu $3,$3,$3
mthi $5
mflo $5
ori $5,$4,10892
addu $4,$2,$2
srav $3,$6,$3
divu $2,$ra
addu $3,$3,$3
sll $1,$0,13
mthi $5
mthi $6
lb $5,2($0)
addiu $1,$4,-7893
addu $4,$4,$4
lui $5,1455
mflo $5
lb $5,5($0)
sll $6,$6,30
mult $4,$0
addiu $4,$0,-6812
mfhi $4
mtlo $6
div $1,$ra
sll $1,$2,21
mflo $5
divu $0,$ra
addu $6,$1,$6
lui $6,44713
mult $4,$1
addiu $0,$0,1871
divu $1,$ra
ori $6,$3,36358
addiu $1,$5,-24669
srav $4,$4,$4
mthi $4
sll $4,$1,5
mflo $0
mtlo $4
addu $0,$4,$4
mthi $1
divu $1,$ra
div $5,$ra
div $2,$ra
ori $0,$6,65287
sll $4,$4,2
addiu $2,$2,-13434
srav $6,$2,$3
sb $3,16($0)
sll $1,$3,14
ori $4,$4,32683
lb $5,4($0)
divu $4,$ra
mflo $4
ori $3,$2,5805
multu $6,$5
addu $1,$1,$1
lui $4,43818
multu $6,$6
mflo $4
lb $4,14($0)
mfhi $0
srav $4,$4,$5
multu $5,$2
lui $1,35647
srav $0,$4,$4
mtlo $6
sll $1,$1,30
sll $4,$4,17
mfhi $0
addu $0,$0,$0
addiu $0,$2,-27317
sll $6,$5,23
mult $1,$4
ori $1,$1,33923
addiu $6,$2,-394
multu $4,$4
sll $1,$6,26
sll $4,$4,14
lb $4,2($0)
ori $2,$2,10569
multu $5,$2
mthi $3
mflo $1
sb $4,13($0)
srav $4,$2,$4
lui $6,21206
sb $5,14($0)
mfhi $5
mthi $3
sll $1,$1,22
mfhi $3
mult $2,$2
lui $5,7715
lui $5,17539
mfhi $2
mthi $6
divu $6,$ra
mthi $1
addiu $4,$2,-15634
lb $1,1($0)
mthi $4
sb $3,9($0)
sll $3,$3,28
div $6,$ra
mthi $2
mthi $1
srav $2,$4,$2
lb $4,11($0)
srav $1,$1,$3
addiu $4,$4,-31663
mflo $1
div $6,$ra
ori $1,$5,36625
mult $5,$4
multu $4,$4
div $2,$ra
srav $1,$1,$2
mult $4,$1
mflo $4
div $4,$ra
multu $5,$1
mult $6,$4
divu $2,$ra
addiu $1,$1,-1272
lb $4,0($0)
addu $2,$2,$5
divu $0,$ra
mtlo $0
multu $1,$5
lb $5,14($0)
mfhi $5
div $4,$ra
srav $0,$1,$3
srav $5,$0,$5
sb $1,15($0)
mflo $0
sb $2,3($0)
divu $4,$ra
mthi $5
lb $5,7($0)
mtlo $2
div $5,$ra
srav $0,$4,$3
srav $5,$4,$1
sb $0,14($0)
addiu $4,$1,21861
multu $5,$2
div $4,$ra
mult $6,$6
lui $4,64005
mtlo $3
div $4,$ra
sll $5,$2,26
divu $5,$ra
mfhi $5
ori $4,$1,62416
sll $6,$4,22
lui $1,24961
addu $5,$2,$5
mtlo $4
addu $4,$4,$1
mtlo $5
mthi $0
sll $5,$5,21
divu $4,$ra
srav $4,$2,$0
mtlo $4
srav $6,$6,$2
sll $5,$6,13
mtlo $5
multu $4,$4
addiu $5,$4,14855
lb $6,8($0)
addu $1,$1,$2
mflo $5
divu $4,$ra
multu $4,$4
sll $1,$2,29
mult $2,$2
mflo $4
multu $1,$5
lui $4,52141
ori $4,$1,14662
addiu $0,$3,29008
divu $1,$ra
mfhi $1
mfhi $1
addu $1,$1,$2
multu $0,$1
lui $6,56124
mthi $5
divu $2,$ra
lui $4,15185
lui $4,15527
mult $4,$4
div $4,$ra
addiu $4,$4,-12276
sll $2,$6,20
lb $4,13($0)
divu $4,$ra
div $3,$ra
div $5,$ra
multu $4,$1
mfhi $1
mfhi $1
divu $5,$ra
mult $4,$4
mtlo $3
sll $1,$2,19
addiu $1,$2,23113
mflo $4
mthi $4
mult $4,$0
divu $1,$ra
mthi $5
divu $4,$ra
mtlo $6
addiu $2,$2,1418
addu $4,$4,$3
div $5,$ra
srav $4,$5,$4
mult $6,$6
srav $5,$2,$2
srav $3,$4,$3
lui $1,25046
mflo $2
addu $1,$1,$6
mthi $3
div $6,$ra
addu $4,$1,$5
div $4,$ra
sb $3,3($0)
addiu $4,$5,-1003
mflo $5
mult $5,$4
mthi $0
divu $2,$ra
sll $4,$2,25
mthi $5
mthi $4
addiu $0,$2,12758
lui $0,52488
lui $4,3773
ori $4,$4,58038
sll $4,$3,30
mflo $0
div $4,$ra
sll $6,$1,9
div $4,$ra
multu $3,$1
mult $1,$4
mult $3,$2
sb $1,11($0)
srav $4,$4,$2
mtlo $4
addu $1,$1,$5
sb $0,11($0)
srav $5,$5,$4
addiu $1,$1,31233
sb $4,0($0)
mthi $4
addiu $5,$4,-24358
mult $3,$1
mflo $1
addu $5,$2,$4
mtlo $1
sb $4,10($0)
divu $5,$ra
multu $3,$5
sll $1,$1,9
ori $5,$2,6813
multu $5,$4
lui $1,22389
addu $4,$2,$1
mthi $5
mult $5,$5
mfhi $5
lb $3,14($0)
mult $2,$2
lb $2,4($0)
divu $1,$ra
mflo $5
addu $2,$2,$2
lui $0,35881
ori $1,$1,44988
lui $6,62297
addiu $4,$2,-29450
lui $5,59758
lb $4,2($0)
divu $5,$ra
addiu $4,$4,-12315
addu $4,$1,$5
mult $4,$1
mfhi $3
mflo $0
mthi $4
mthi $1
mult $2,$2
srav $5,$4,$2
sb $0,3($0)
lui $0,51444
div $4,$ra
lb $1,10($0)
addiu $1,$1,-23997
mtlo $1
divu $4,$ra
sll $2,$2,31
divu $4,$ra
mflo $0
multu $0,$0
sll $2,$2,6
sll $1,$2,18
mult $1,$1
lb $1,6($0)
addu $4,$3,$3
mult $1,$1
multu $6,$6
mthi $4
addu $6,$5,$6
addu $3,$3,$3
mfhi $4
mfhi $4
mtlo $4
srav $2,$2,$2
multu $4,$5
mtlo $4
mthi $0
mthi $4
addu $5,$5,$5
srav $4,$4,$4
addiu $1,$4,20400
lb $5,1($0)
multu $3,$3
mult $1,$2
ori $3,$4,18071
multu $4,$4
srav $4,$6,$2
srav $1,$6,$6
lui $4,49979
mflo $2
addiu $0,$6,-7257
mtlo $6
lui $1,1750
sll $3,$3,5
divu $5,$ra
lb $4,2($0)
lui $1,32386
srav $4,$1,$1
mflo $1
sll $4,$4,18
lui $1,33452
addu $1,$1,$2
addiu $5,$5,-29745
addiu $4,$4,-17500
addu $4,$5,$5
addiu $4,$6,-20755
mflo $4
ori $3,$3,50243
mthi $5
div $2,$ra
div $6,$ra
addu $4,$6,$3
sb $1,0($0)
addu $4,$1,$5
mfhi $6
sll $1,$2,7
lb $1,1($0)
div $4,$ra
addiu $5,$3,22693
mfhi $4
lui $4,41628
mtlo $3
addiu $3,$3,22177
mthi $4
ori $5,$1,14387
mflo $4
mfhi $4
ori $0,$2,47329
addiu $2,$5,5289
multu $1,$2
div $5,$ra
mfhi $1
srav $4,$4,$1
mflo $1
mflo $6
mfhi $4
lb $4,5($0)
mult $4,$4
divu $0,$ra
lb $6,16($0)
lb $1,2($0)
srav $5,$1,$2
mult $1,$5
lb $6,11($0)
addiu $1,$1,-20604
mflo $4
multu $4,$2
div $5,$ra
ori $4,$2,32223
mthi $4
lb $5,1($0)
sb $3,8($0)
addu $6,$5,$5
multu $5,$1
mtlo $4
mfhi $5
addiu $2,$2,12956
lui $4,53428
lui $4,54324
mult $3,$3
lui $4,38415
div $2,$ra
multu $1,$4
mthi $6
mult $5,$5
mflo $5
lb $1,16($0)
lui $2,29382
mult $5,$4
mtlo $1
ori $1,$2,41958
lb $4,11($0)
multu $0,$4
mthi $3
mfhi $4
mult $1,$2
mthi $3
addu $2,$4,$2
divu $5,$ra
mthi $2
mfhi $6
lui $5,25423
div $0,$ra
mult $5,$5
div $4,$ra
divu $1,$ra
srav $4,$2,$4
mflo $4
addiu $3,$3,-25424
srav $0,$0,$3
mfhi $4
srav $1,$3,$3
sll $5,$3,5
sll $5,$5,23
mthi $4
divu $5,$ra
lui $1,57670
sb $4,7($0)
mthi $1
ori $2,$2,9134
ori $1,$1,7917
div $3,$ra
mflo $5
lui $6,39811
addiu $5,$5,-5924
mflo $4
mtlo $4
addiu $4,$1,18623
mthi $4
srav $0,$6,$4
lb $4,9($0)
addiu $5,$5,29982
mthi $5
lui $3,6518
mtlo $1
lb $4,13($0)
div $6,$ra
lb $2,7($0)
lb $3,3($0)
addiu $1,$3,-25141
lb $2,4($0)
lui $6,62261
div $4,$ra
addiu $1,$4,6334
div $1,$ra
mflo $5
div $5,$ra
lui $6,5814
mult $0,$4
addu $3,$3,$3
multu $4,$4
addu $1,$2,$2
sll $4,$4,23
multu $4,$5
addu $5,$6,$0
mult $0,$6
mflo $4
sb $5,2($0)
mtlo $4
addu $6,$5,$1
ori $5,$1,1268
lui $4,63824
srav $1,$2,$4
divu $4,$ra
mflo $4
multu $3,$4
lui $2,43912
div $5,$ra
mult $4,$1
mflo $1
mfhi $4
mfhi $4
ori $5,$4,33322
sb $1,2($0)
multu $1,$2
lb $4,12($0)
multu $0,$5
lui $5,22725
div $0,$ra
mfhi $6
multu $1,$1
mflo $1
div $1,$ra
sb $5,1($0)
lb $5,11($0)
mthi $1
mult $3,$5
srav $5,$4,$2
div $5,$ra
addiu $4,$4,-13118
mflo $5
mfhi $4
mult $1,$5
sll $4,$3,14
sll $1,$2,25
mult $4,$4
mtlo $2
mflo $4
multu $0,$0
addiu $5,$5,-22081
mult $4,$6
lui $3,43357
mult $1,$3
mflo $5
lb $5,1($0)
addiu $3,$0,-28837
mflo $2
srav $4,$1,$5
mthi $4
mult $1,$4
lb $3,9($0)
sb $4,12($0)
sll $5,$2,10
ori $4,$5,63628
mfhi $0
addiu $1,$1,-30992
multu $0,$0
ori $1,$1,13466
addu $6,$1,$3
addu $4,$6,$6
mfhi $3
srav $4,$2,$4
mult $0,$4
divu $5,$ra
mfhi $5
sb $4,14($0)
mthi $5
srav $5,$2,$5
divu $4,$ra
multu $1,$5
mtlo $1
mult $4,$4
div $4,$ra
mfhi $5
mthi $4
addu $0,$0,$0
mthi $4
mult $6,$4
mflo $1
mtlo $0
mtlo $1
mflo $5
addiu $4,$0,11548
div $4,$ra
sb $0,9($0)
sll $6,$6,13
div $2,$ra
mthi $5
addiu $1,$4,10507
srav $4,$1,$4
sb $0,9($0)
sb $3,15($0)
divu $1,$ra
addu $1,$2,$1
srav $4,$4,$3
ori $4,$4,14531
srav $5,$1,$4
srav $4,$6,$4
addiu $4,$4,-76
div $4,$ra
mthi $5
mtlo $1
divu $6,$ra
mult $2,$4
addiu $3,$4,-15096
lb $5,12($0)
mthi $0
mtlo $4
multu $2,$0
divu $1,$ra
mflo $4
lui $4,20817
mult $4,$4
addiu $4,$4,-8892
multu $6,$3
multu $6,$3
srav $3,$3,$3
mtlo $3
multu $4,$2
srav $0,$0,$3
mtlo $1
sll $5,$1,8
mtlo $5
addu $1,$1,$4
sll $4,$4,27
mfhi $2
div $5,$ra
ori $0,$2,52401
lui $1,1590
mult $0,$0
divu $4,$ra
multu $6,$4
mflo $5
srav $6,$4,$1
sll $3,$3,23
multu $4,$1
addiu $6,$0,-11680
lui $3,42564
addiu $5,$4,5534
srav $4,$2,$5
mtlo $4
mthi $0
lui $3,63999
mthi $5
addu $5,$2,$0
multu $4,$1
sb $0,13($0)
mflo $1
sb $0,8($0)
mflo $5
mflo $3
mflo $4
sb $6,0($0)
addu $4,$1,$1
lui $1,11431
lui $0,65275
addiu $4,$5,10298
srav $1,$5,$4
mthi $4
srav $5,$2,$2
mult $4,$1
mthi $2
lui $5,53549
addiu $4,$4,8898
sb $2,9($0)
mflo $5
addiu $5,$2,24963
|
Classes/application/current application/id of current application.applescript | looking-for-a-job/applescript-examples | 1 | 1336 | #!/usr/bin/osascript
id of current application |
Transynther/x86/_processed/NONE/_ht_zr_/i7-7700_9_0xca.log_21829_1589.asm | ljhsiun2/medusa | 9 | 161759 | .global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r13
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_UC_ht+0x98f2, %rsi
lea addresses_D_ht+0x1592, %rdi
nop
nop
nop
and $20474, %r11
mov $124, %rcx
rep movsw
nop
nop
sub $53759, %r13
lea addresses_normal_ht+0x1c3f2, %rsi
lea addresses_WC_ht+0x1b372, %rdi
mfence
mov $1, %rcx
rep movsq
nop
nop
add $23149, %rcx
lea addresses_WC_ht+0xd0b2, %rsi
lea addresses_WC_ht+0x6172, %rdi
nop
nop
nop
nop
add %r12, %r12
mov $23, %rcx
rep movsb
inc %r11
lea addresses_WC_ht+0xf6fe, %r11
clflush (%r11)
nop
nop
nop
add $34558, %rdx
movw $0x6162, (%r11)
and %r11, %r11
lea addresses_WC_ht+0x98aa, %rcx
dec %r12
movb $0x61, (%rcx)
nop
nop
nop
add $34122, %rdx
lea addresses_normal_ht+0x126f2, %r12
nop
nop
sub $53235, %rdi
mov $0x6162636465666768, %rcx
movq %rcx, %xmm6
movups %xmm6, (%r12)
nop
nop
sub $54477, %rdi
lea addresses_A_ht+0x4572, %rdx
and $6636, %r11
vmovups (%rdx), %ymm1
vextracti128 $1, %ymm1, %xmm1
vpextrq $0, %xmm1, %r13
nop
and $39224, %rsi
lea addresses_WC_ht+0x13572, %r12
nop
nop
nop
cmp $36980, %r13
movb $0x61, (%r12)
nop
nop
cmp $23769, %r11
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %r13
pop %r12
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r8
push %r9
push %rdi
push %rdx
push %rsi
// Faulty Load
lea addresses_A+0xf972, %rdi
nop
nop
nop
nop
cmp %rsi, %rsi
movups (%rdi), %xmm4
vpextrq $1, %xmm4, %rdx
lea oracles, %r8
and $0xff, %rdx
shlq $12, %rdx
mov (%r8,%rdx,1), %rdx
pop %rsi
pop %rdx
pop %rdi
pop %r9
pop %r8
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'src': {'congruent': 0, 'AVXalign': False, 'same': False, 'size': 4, 'NT': False, 'type': 'addresses_A'}, 'OP': 'LOAD'}
[Faulty Load]
{'src': {'congruent': 0, 'AVXalign': False, 'same': True, 'size': 16, 'NT': False, 'type': 'addresses_A'}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'congruent': 3, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'REPM', 'dst': {'congruent': 5, 'same': False, 'type': 'addresses_D_ht'}}
{'src': {'congruent': 6, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'REPM', 'dst': {'congruent': 8, 'same': False, 'type': 'addresses_WC_ht'}}
{'src': {'congruent': 6, 'same': True, 'type': 'addresses_WC_ht'}, 'OP': 'REPM', 'dst': {'congruent': 9, 'same': False, 'type': 'addresses_WC_ht'}}
{'OP': 'STOR', 'dst': {'congruent': 1, 'AVXalign': False, 'same': False, 'size': 2, 'NT': False, 'type': 'addresses_WC_ht'}}
{'OP': 'STOR', 'dst': {'congruent': 3, 'AVXalign': False, 'same': True, 'size': 1, 'NT': False, 'type': 'addresses_WC_ht'}}
{'OP': 'STOR', 'dst': {'congruent': 6, 'AVXalign': False, 'same': False, 'size': 16, 'NT': False, 'type': 'addresses_normal_ht'}}
{'src': {'congruent': 8, 'AVXalign': False, 'same': False, 'size': 32, 'NT': False, 'type': 'addresses_A_ht'}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'congruent': 10, 'AVXalign': False, 'same': False, 'size': 1, 'NT': False, 'type': 'addresses_WC_ht'}}
{'44': 12, '45': 1, '48': 174, '00': 21642}
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 48 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 48 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 48 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 48 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 48 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 48 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 48 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 48 00 00 00 00 48 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
*/
|
programs/oeis/098/A098486.asm | jmorken/loda | 1 | 4897 | ; A098486: Odd numbers with replacement of all prime factors 3 by 2.
; 1,2,5,7,4,11,13,10,17,19,14,23,25,8,29,31,22,35,37,26,41,43,20,47,49,34,53,55,38,59,61,28,65,67,46,71,73,50,77,79,16,83,85,58,89,91,62,95,97,44,101,103,70,107,109,74,113,115,52,119,121,82,125,127,86,131,133,40,137,139,94,143,145,98,149,151,68,155,157,106,161,163,110,167,169,76,173,175,118,179,181,122,185,187,56,191,193,130,197,199,134,203,205,92,209,211,142,215,217,146,221,223,100,227,229,154,233,235,158,239,241,32,245,247,166,251,253,170,257,259,116,263,265,178,269,271,182,275,277,124,281,283,190,287,289,194,293,295,88,299,301,202,305,307,206,311,313,140,317,319,214,323,325,218,329,331,148,335,337,226,341,343,230,347,349,104,353,355,238,359,361,242,365,367,164,371,373,250,377,379,254,383,385,172,389,391,262,395,397,266,401,403,80,407,409,274,413,415,278,419,421,188,425,427,286,431,433,290,437,439,196,443,445,298,449,451,302,455,457,136,461,463,310,467,469,314,473,475,212,479,481,322,485,487,326,491,493,220,497,499
mul $0,8
add $0,4
lpb $0
mul $0,2
dif $0,3
lpe
mov $1,$0
div $1,4
|
7-assets/past-student-repos/LambdaSchool-master/m7/73a1/asm/stackoverflow.asm | eengineergz/Lambda | 0 | 26831 | <reponame>eengineergz/Lambda
LDI R0, 0
LDI R1, 1
LDI R3, Loop
Loop:
PRN R0
ADD R0, R1
PUSH R0
JMP R3
|
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/return1.ads | best08618/asylo | 7 | 7407 | package return1 is
type Base is abstract tagged null record;
type Child is new Base with record
Anon_Access : access Base'Class;
end record;
function X_Func (O : access Child) return access Base'Class;
end return1;
|
finding the largest number among two numbers.asm | arfat01850/Assembly_Program | 1 | 247004 | .MODEL SMALL
.STACK 100H
.CODE
MAIN PROC
include 'emu8086.inc'
MOV AH,1
INT 21H
MOV BL,AL ;BL will store the value
INT 21H
MOV BH, AL ; BH will sote the value
CMP BL,BH
JG L1
printn ''
L2:
MOV AH,2
MOV DL,BH
INT 21H
JMP EXIT
L1:
MOV AH,2
MOV DL,BL
JMP EXIT
EXIT:
MOV AH,4CH
INT 21H
MAIN ENDP
END MAIN |
src/arch/ia32/hal/int/handler.asm | zhengruohuang/toddler | 80 | 100647 | [section .text]
;===============================================================================
; Imports
;===============================================================================
extern save_context
extern int_handler_entry
;===============================================================================
;===============================================================================
; Exports
;===============================================================================
;-------------------------------------------------------------------------------
; Predefined exception handlers
;-------------------------------------------------------------------------------
global int_handler_divide
global int_handler_debug
global int_handler_nmi
global int_handler_breakpoint
global int_handler_overflow
global int_handler_bounds_check
global int_handler_invalid_opcode
global int_handler_copr_not_available
global int_handler_double_fault
global int_handler_copr_seg_overrun
global int_handler_invalid_tss
global int_handler_segment_not_present
global int_handler_stack_exception
global int_handler_general_protection
global int_handler_page_fault
global int_handler_copr_error
global int_handler_copr_error
global int_handler_align_check
global int_handler_machine_check
global int_handler_simd_error
;-------------------------------------------------------------------------------
;-------------------------------------------------------------------------------
; General purpose handlers
;-------------------------------------------------------------------------------
global int_handler_general
global int_handler_template_begin
global int_handler_template_end
global int_handlers
;-------------------------------------------------------------------------------
;===============================================================================
;===============================================================================
; General Handler
;===============================================================================
int_handler_general:
; Save all registers
pushad
xor eax, eax
mov ax, ds
push eax
mov ax, es
push eax
mov ax, fs
push eax
mov ax, gs
push eax
; Save context
mov ebx, esp
push ebx
call save_context
; Check if we need to switch stack for kernel -> kernel switch
cmp eax, 0
jz do_int_handler
;xchg bx, bx
; Switch the stack
mov esp, eax
do_int_handler:
; Prepare to call the handler
add ebx, 32 + 16
push dword [ebx + 4] ; Arg2:
push dword [ebx] ; Arg1:
; Handle the interrupt
call int_handler_entry
; Return from the interrupt
add esp, 8
pop ebx
mov esp, ebx
pop eax
mov gs, ax
pop eax
mov fs, ax
pop eax
mov es, ax
pop eax
mov ds, ax
popad
add esp, 8
iretd
; Should never arrive here
jmp $
;===============================================================================
;===============================================================================
; Predefined exception & trap handlers (vector = 0 - 19)
;===============================================================================
int_handler_divide:
cli
push dword 0ffffffffh ; no err code
push dword 0 ; vector_no = 0
jmp int_handler_general
int_handler_debug:
cli
push dword 0ffffffffh ; no err code
push dword 1 ; vector_no = 1
jmp int_handler_general
int_handler_nmi:
cli
push dword 0ffffffffh ; no err code
push dword 2 ; vector_no = 2
jmp int_handler_general
int_handler_breakpoint:
cli
push dword 0ffffffffh ; no err code
push dword 3 ; vector_no = 3
jmp int_handler_general
int_handler_overflow:
cli
push dword 0ffffffffh ; no err code
push dword 4 ; vector_no = 4
jmp int_handler_general
int_handler_bounds_check:
cli
push dword 0ffffffffh ; no err code
push dword 5 ; vector_no = 5
jmp int_handler_general
int_handler_invalid_opcode:
cli
push dword 0ffffffffh ; no err code
push dword 6 ; vector_no = 6
jmp int_handler_general
int_handler_copr_not_available:
cli
push dword 0ffffffffh ; no err code
push dword 7 ; vector_no = 7
jmp int_handler_general
; Note that though it is said by Intel's manual that this error has an
; error code (always zero), Qemu however does not push it automatically,
; so I guess that the handler has to push a zero as error code manually
int_handler_double_fault:
cli
push dword 0
push dword 8 ; vector_no = 8
jmp int_handler_general
int_handler_copr_seg_overrun:
cli
push dword 0ffffffffh ; no err code
push dword 9 ; vector_no = 9
jmp int_handler_general
int_handler_invalid_tss:
cli
push dword 10 ; vector_no = 10 a
jmp int_handler_general
int_handler_segment_not_present:
cli
push dword 11 ; vector_no = 11 b
jmp int_handler_general
int_handler_stack_exception:
cli
push dword 12 ; vector_no = 12 c
jmp int_handler_general
int_handler_general_protection:
cli
push dword 13 ; vector_no = 13 d
jmp int_handler_general
int_handler_page_fault:
cli
push dword 14 ; vector_no = 14 e
jmp int_handler_general
; Exception #15 is reserved by Intel
int_handler_copr_error:
cli
push dword 0ffffffffh ; no err code
push dword 16 ; vector_no = 16
jmp int_handler_general
int_handler_align_check:
cli
push dword 17 ; vector_no = 17
jmp int_handler_general
int_handler_machine_check:
cli
push dword 0ffffffffh ; no err code
push dword 18 ; vector_no = 18
jmp int_handler_general
int_handler_simd_error:
cli
push dword 0ffffffffh ; no err code
push dword 19 ; vector_no = 19
jmp int_handler_general
; Exception #20 to #31 are reserved by Intel
;===============================================================================
;===============================================================================
; Interrupt handlers (vector = 32 - 255)
;===============================================================================
;-------------------------------------------------------------------------------
; General purpose handler template
;-------------------------------------------------------------------------------
ALIGN 16
int_handler_template_begin:
cli
push dword 0ffffffffh ; Dummy error code
push dword 0feba7632h ; Vector Number
jmp dword int_handler_general
ALIGN 16
int_handler_template_end:
;-------------------------------------------------------------------------------
;-------------------------------------------------------------------------------
; General purpose handlers
;-------------------------------------------------------------------------------
ALIGN 16
int_handlers:
%rep 256 - 32
cli
push dword 0ffffffffh ; Dummy error code
push dword 0feba7632h ; Vector Number
jmp dword int_handler_general
ALIGN 16
%endrep
;-------------------------------------------------------------------------------
;===============================================================================
|
test/Succeed/Issue1086.agda | shlevy/agda | 1,989 | 15781 | <filename>test/Succeed/Issue1086.agda
-- Andreas, 2018-06-15, issue #1086
-- Reported by Andrea
-- Fixed by Jesper in https://github.com/agda/agda/commit/242684bca62fabe43e125aefae7526be4b26a135
open import Common.Bool
open import Common.Equality
and : (a b : Bool) → Bool
and true b = b
and false b = false
test : ∀ a b → and a b ≡ true → a ≡ true
test true true refl = refl
-- Should succeed.
|
grammar/AutoCompute.g4 | shamilatesoglu/AutoCompute | 2 | 1922 |
grammar AutoCompute;
compilationUnit
: (entityDefinition)* (computeCall)* (entityDefinition)* EOF
;
entityDefinition
: ENTITY identifier=ID LCURLY entityBody RCURLY
;
entityBody
: (propertyDefinition)* (constraintsDefinition)* (inputDeclaration)* (localVariableDefinition)* (entityDefinition)* (outputDefinition)*
;
// TODO: Interpreter output format doesn't currently make use of this.
propertyDefinition
: identifier=ID COLON value=(STRING_LITERAL|NUM) DOT
;
inputDeclaration
: IN identifier=ID (rangeExpression)? DOT
;
localVariableDefinition
: identifier=ID ASSIGN expression (given)? DOT
;
outputDefinition
: OUT identifier=ID ASSIGN expression (given)? DOT
;
given
: GIVEN LCURLY (constraint)* RCURLY
| GIVEN reference
;
constraint
: expression (COMMA rationale=STRING_LITERAL)? DOT
;
constraintsDefinition
: CONSTRAINTS identifier=ID LCURLY (constraint)* RCURLY DOT
;
rangeExpression
: LBRACKET expression DOTDOT expression RBRACKET
;
computeCall
: COMPUTE reference LCURLY (inputDefinition)* RCURLY DOT
;
inputDefinition
: reference OPERATOR_IN expression DOT
;
reference
: ID ('::' ID)*
;
expression
: '(' expression ')' # parenthesisExpression
| operation=('+'|'-') expression # unaryExpression
| left=expression operation='^' right=expression # infixExpression
| left=expression operation=('*'|'/') right=expression # infixExpression
| left=expression operation=('+'|'-') right=expression # infixExpression
| left=expression operation=('=='|'!='|'>'|'<'|'>='|'<=') right=expression # infixExpression
| left=expression operation=('&&'|'||') right=expression # infixExpression
| check=expression '?' first=expression ':' second=expression # conditionalExpression
| reference # referenceExpression
| value=(NUM|BOOLEAN_LITERAL) # numberExpression
;
STRING_LITERAL: '"' ( ESC | ~[\\"\r\n] )* '"';
fragment ESC : '\\"' | '\\\\' ;
IN : ('i'|'I')('n'|'N');
OUT : ('o'|'O')('u'|'U')('t'|'T');
ENTITY : ('e'|'E')('n'|'N')('t'|'T')('i'|'I')('t'|'T')('y'|'Y');
GIVEN : ('g'|'G')('i'|'I')('v'|'V')('e'|'E')('n'|'N');
CONSTRAINTS : ('c'|'C')('o'|'O')('n'|'N')('s'|'S')('t'|'T')('r'|'R')('a'|'A')('i'|'I')('n'|'N')('t'|'T')('s'|'S');
COMPUTE : ('c'|'C')('o'|'O')('m'|'M')('p'|'P')('u'|'U')('t'|'T')('e'|'E');
DOT : '.';
DOTDOT : '..';
ASSIGN : ':=';
LCURLY : '{';
RCURLY : '}';
LBRACKET : '[';
RBRACKET : ']';
COMMA : ',';
COLON : ':';
BOOLEAN_LITERAL
: TRUE
| FALSE
;
TRUE: ('TRUE'|'true');
FALSE: ('FALSE'|'false');
OPERATOR_ADD: '+';
OPERATOR_SUB: '-';
OPERATOR_MUL: '*';
OPERATOR_DIV: '/';
OPERATOR_AND: '&&';
OPERATOR_OR: '||';
OPERATOR_EQ: '==';
OPERATOR_NEQ: '!=';
OPERATOR_GT: '>' ;
OPERATOR_LT: '<' ;
OPERATOR_GTEQ: '>=';
OPERATOR_LTEQ: '<=';
OPERATOR_SCOPE: '::';
OPERATOR_IN : '<<';
OPERATOR_EXP : '^';
NUM : [0-9]+ ('.' [0-9]+)? ([eE] [+-]? [0-9]+)?;
ID : [a-zA-Z_0-9]+;
COMMENT
: '/*' .*? '*/' -> skip
;
LINE_COMMENT
: '//' ~[\r\n]* -> skip
;
WS : [ \t\r\n] -> channel(HIDDEN); |
sources/payload.asm | magnar-blj/magnar | 1 | 161107 | ;; This file is licensed under BSD 3-Clause License
;;
;; Copyright (c) 2020, magnar-blj
;; All rights reserved.
;;
;; Redistribution and use in source and binary forms, with or without
;; modification, are permitted provided that the following conditions are met:
;;
;; 1. Redistributions of source code must retain the above copyright notice, this
;; list of conditions and the following disclaimer.
;;
;; 2. Redistributions in binary form must reproduce the above copyright notice,
;; this list of conditions and the following disclaimer in the documentation
;; and/or other materials provided with the distribution.
;;
;; 3. Neither the name of the copyright holder nor the names of its
;; contributors may be used to endorse or promote products derived from
;; this software without specific prior written permission.
;;
;; THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
;; AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
;; IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
;; DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
;; FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
;; DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
;; SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
;; CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
;; OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
;; OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.386
LOCALS
org 7c00h
CODE SEGMENT USE16
ASSUME CS: CODE, DS: CODE, SS: CODE
START:
nop ;; flag of infected
cli
xor ax, ax
mov ds, ax
mov sp, 0FFFFh
sub word ptr ds:413h, 1h
mov ax, ds:413h
sti
shl ax, 6
cld
mov es, ax
xor di, di
mov si, 7c00h
mov cx, 200h
rep movsb
push es
push offset @@read_orig
retf
;; int13h
@@read_orig:
xor ax, ax
mov es, ax
mov dx, es
mov bx, 7c00h
mov ah, 2
mov al, 1
mov cx, 4 ;
mov dx, 80h
int 13h
mov cx, 200h
mov al, 90h
mov si, bx
@@decrypt:
xor byte ptr es:[si], al
inc si
loop @@decrypt
push es
push bx
@@password_loop:
mov ax, 3
int 10h
mov ah, 0Eh
mov bx, cs
mov ds, bx
mov es, bx
xor bx, bx
lea si, EnterPassword
@@passwd: ;; displaying a password prompt
lodsb
test al, al
jz @@enter
int 10h
jmp @@passwd
lea si, password
@@enter:
xor ax, ax ;; char input
int 16h
mov ah, 0Eh
int 10h ;; show unlock text
xor al, 90h
cmp al, byte ptr cs:[si]
jnz @@password_loop
inc si
cmp byte ptr cs:[si], 0
jz @@stop_enter
jmp @@enter
@@stop_enter:
pop bx
pop es
push 0
push 7c00h
retf
OldSeg dw 0
OldOff dw 0
EnterPassword db 'Enter Password For Unlock: ',0
password db <PASSWORD>, <PASSWORD>, <PASSWORD>, <PASSWORD>, <PASSWORD>, 0<PASSWORD>, 0a2h, 0a3h, 0a4h, 0bdh, 0a1h, 0a2h, 0a3h, 0a4h, 0bdh, 0a1h, 0<PASSWORD>, 0a3h, 0a4h, 0
;; 1234-1234-1234-1234
times db 510-($-START) dup (0)
db 55h, 0AAh
CODE ENDS
END START
|
arch/RISC-V/SiFive/drivers/fe310.ads | rocher/Ada_Drivers_Library | 192 | 10372 | ------------------------------------------------------------------------------
-- --
-- Copyright (C) 2017-2018, AdaCore and other contributors --
-- --
-- See github.com/AdaCore/Ada_Drivers_Library/graphs/contributors --
-- for more information --
-- --
-- Redistribution and use in source and binary forms, with or without --
-- modification, are permitted provided that the following conditions are --
-- met: --
-- 1. Redistributions of source code must retain the above copyright --
-- notice, this list of conditions and the following disclaimer. --
-- 2. Redistributions in binary form must reproduce the above copyright --
-- notice, this list of conditions and the following disclaimer in --
-- the documentation and/or other materials provided with the --
-- distribution. --
-- 3. Neither the name of the copyright holder nor the names of its --
-- contributors may be used to endorse or promote products derived --
-- from this software without specific prior written permission. --
-- --
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS --
-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT --
-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR --
-- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT --
-- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, --
-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT --
-- LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, --
-- DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY --
-- THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT --
-- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE --
-- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --
-- --
------------------------------------------------------------------------------
with HAL; use HAL;
with FE310_SVD.PRIC;
package FE310 is
LF_Clock_Frequency : constant := 32768;
function CPU_Frequency return UInt32;
-- Compute CPU frequency
procedure Load_Internal_Oscilator_Calibration;
-- Read the calibration setting from the OTP memory ant write it to the
-- oscillator configuration register.
-- After execution of this procedure, the (undivided) internal oscillator
-- frequency should be about 72 MHz
subtype PLL_Output_Divider is Integer range 1 .. 128;
procedure Use_Crystal_Oscillator (Divider : PLL_Output_Divider := 1)
with Pre => (Divider = 1) or (Divider rem 2 = 0);
subtype Internal_Oscillator_Divider is Integer range 1 .. 64;
procedure Use_Internal_Oscillator (Divider : Internal_Oscillator_Divider := 5);
type PLL_Reference is new FE310_SVD.PRIC.PLLCFG_REFSEL_Field;
subtype PLL_R is Integer range 1 .. 4;
subtype PLL_F is Integer range 2 .. 128;
type PLL_Q is (Div_By_2, Div_By_4, Div_By_8);
procedure Use_PLL (Reference : PLL_Reference;
Internal_Osc_Div : Internal_Oscillator_Divider := 5;
R_Div : PLL_R;
F_Mul : PLL_F;
Q_Div : PLL_Q;
Output_Div : PLL_Output_Divider)
with Pre => ((Internal_Osc_Div >= 2) and (Internal_Osc_Div <= 12)) and
(F_Mul rem 2 = 0);
subtype SPI_Clock_Divider is Integer range 2 .. 8192;
procedure Set_SPI_Flash_Clock_Divider (Divider : SPI_Clock_Divider)
with Pre => Divider rem 2 = 0;
function SPI_Flash_Clock_Divider return SPI_Clock_Divider;
private
for PLL_Q use (Div_By_2 => 1, Div_By_4 => 2, Div_By_8 => 3);
end FE310;
|
programs/oeis/291/A291181.asm | neoneye/loda | 22 | 8384 | ; A291181: p-INVERT of the positive integers, where p(S) = 1 - 8*S.
; 8,80,792,7840,77608,768240,7604792,75279680,745192008,7376640400,73021211992,722835479520,7155333583208,70830500352560,701149669942392,6940666199071360,68705512320771208,680114457008640720,6732439057765635992,66644276120647719200,659710322148711556008,6530458945366467840880,64644879131515966852792,639918332369793200687040,6334538444566416040017608,62705466113294367199489040,620720122688377255954872792,6144495760770478192349238880,60824237485016404667537516008,602097879089393568483025921200,5960154553408919280162721695992,58999447654999799233144191038720,584034321996589073051279188691208,5781343772310890931279647695873360,57229403401112320239745197770042392,566512690238812311466172330004550560
add $0,1
seq $0,122653 ; a(n) = 10*a(n-1) - a(n-2) with a(0)=0, a(1)=6.
div $0,6
mul $0,8
|
oeis/089/A089655.asm | neoneye/loda-programs | 11 | 163480 | <reponame>neoneye/loda-programs<filename>oeis/089/A089655.asm
; A089655: a(1)=1 and for n>=2 a(n) is the denominator of A(n) (see comment for A(n) definition).
; Submitted by <NAME>
; 1,1,4,1,4,1,8,3,8,3,4,1,4,1,16,1,48,1,12,1,4,1,8,5,8,45,4,9,4,1,32,1,32,1,12,1,12,1,8,1,8,1,4,3,4,3,16,7,80,7,20,1,36,1,72,1,8,1,4,1,4,3,64,3,64,1,4,1,4,1,24,1,24,5,4,5,4,1,16,27,16,27,4,1,4,1,8,1,24,1,12,1,4,1
add $0,1
lpb $0
pow $0,2
trn $0,2
seq $0,336551 ; a(n) = A003557(n) - 1.
mov $2,$0
mov $0,$1
lpe
mov $0,$2
add $0,1
|
test/interaction/Issue3689.agda | cruhland/agda | 1,989 | 12957 | <filename>test/interaction/Issue3689.agda
-- Andreas, 2019-04-10, issue #3689, reported by andrejtokarcik
-- Regression introduced by #3533 (dropping trivially impossible clauses
-- during case-splitting).
-- {-# OPTIONS -v interaction.case:100 #-}
-- {-# OPTIONS -v tc.cover:100 #-}
data _≡_ {A : Set} (a : A) : A → Set where
refl : a ≡ a
record Σ (A : Set) (B : A → Set) : Set where
constructor _,_
field
fst : A
snd : B fst
record R (A : Set) : Set where
field π : A
fun : {A : Set} (xyz : Σ (R A) λ r → Σ (R.π r ≡ R.π r) λ _ → R.π r ≡ R.π r) → Set
fun (x , y) = {!y !} -- C-c C-c
-- WAS: internal error.
-- Should succeed.
|
programs/oeis/135/A135180.asm | neoneye/loda | 22 | 20760 | <filename>programs/oeis/135/A135180.asm
; A135180: a(n) = p^5 - p^3 + p^2, where p = prime(n).
; 28,225,3025,16513,159841,369265,1415233,2469601,6424705,20487601,28600321,69294673,115788961,146930785,229243393,418049425,714722401,844373041,1349828833,1803876481,2072687905,3076569601,3938475745,5583362401,8586436993,10509080401,11591658625,14024303713,15384956401,18422921665,33036337153,38577258721,48259171873,51886178401,73436490001,78499305601,95385147313,115059312865,129887356033,154958744305,183760293601,194258347921,254187970561,267778032385,296701674193,312071760001,418217852641,551462037505,602727344353,629751435601,686707261345,779797670401,812976077761,996234876001,1121137984513,1258266075265,1408495359601,1461640481281,1630771847953,1751967796321,1815209576545,2159399816785,2727013478113,2909360039041,3004119946465,3201046646833,3973159655521,4346560126273,5030877904993,5177541390001,5481129354625,5963055926401,6657744210433,7220063977105,7819752981601,8241208786945,8907280808401,9861654548593,10368577281601,11444951330401,12914204133601,13225376204881,14872501393921,15220789182145,16304983094401,17061469068385,18248600160001,19933287258913,20821048118641,21276634520065,22211731537633,25215969945601,27393213267073,28536825713761,30938623500001,32198690692225,34165457348401,38387251637281,39129730756705,46343074710961
seq $0,40 ; The prime numbers.
mov $1,$0
pow $1,2
mul $0,$1
sub $1,1
mul $0,$1
add $0,$1
add $0,1
|
Transynther/x86/_processed/NC/_zr_/i9-9900K_12_0xa0_notsx.log_21829_1952.asm | ljhsiun2/medusa | 9 | 83443 | .global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r8
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WT_ht+0x14390, %r8
nop
sub %rdx, %rdx
vmovups (%r8), %ymm2
vextracti128 $1, %ymm2, %xmm2
vpextrq $1, %xmm2, %rbx
nop
nop
nop
nop
add $38328, %rsi
lea addresses_UC_ht+0x1c4ec, %rsi
lea addresses_A_ht+0x12d0c, %rdi
nop
nop
sub %r12, %r12
mov $120, %rcx
rep movsl
nop
add %rdx, %rdx
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbx
pop %r8
pop %r12
ret
.global s_faulty_load
s_faulty_load:
push %r12
push %r14
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
// Store
lea addresses_normal+0xb8c, %rbp
nop
xor $7573, %r14
mov $0x5152535455565758, %rsi
movq %rsi, %xmm6
vmovups %ymm6, (%rbp)
nop
nop
nop
nop
nop
dec %rdx
// Faulty Load
mov $0xca68b0000000d0c, %rdx
cmp %rdi, %rdi
movups (%rdx), %xmm2
vpextrq $0, %xmm2, %r14
lea oracles, %r12
and $0xff, %r14
shlq $12, %r14
mov (%r12,%r14,1), %r14
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbp
pop %r14
pop %r12
ret
/*
<gen_faulty_load>
[REF]
{'src': {'type': 'addresses_NC', 'AVXalign': False, 'size': 2, 'NT': False, 'same': False, 'congruent': 0}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'type': 'addresses_normal', 'AVXalign': False, 'size': 32, 'NT': False, 'same': False, 'congruent': 6}}
[Faulty Load]
{'src': {'type': 'addresses_NC', 'AVXalign': False, 'size': 16, 'NT': False, 'same': True, 'congruent': 0}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 32, 'NT': False, 'same': True, 'congruent': 2}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_UC_ht', 'congruent': 5, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_A_ht', 'congruent': 11, 'same': False}}
{'00': 21829}
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
*/
|
masm/hw3.asm | userElaina/MicrocomputerLab | 0 | 26268 | DATA SEGMENT
MESG DB 'Hello world!', 0AH
DATA ENDS
CODE SEGMENT
ASSUME CS: CODE, DS: DATA
BEG: MOV AX, DATA
MOV DS, AX
MOV AH, 9
MOV DX, OFFSET MESG
INT 21H
MOV AH, 4CH
INT 21H
CODE ENDS
END BEG
|
LC/Subst/Term.agda | banacorn/bidirectional | 2 | 15267 | <filename>LC/Subst/Term.agda
module LC.Subst.Term where
open import LC.Base
open import LC.Subst.Var
open import Data.Nat
open import Data.Nat.Properties
open import Relation.Nullary
--------------------------------------------------------------------------------
-- lifting terms
lift : (n i : ℕ) → Term → Term
lift n i (var x) = var (lift-var n i x)
lift n i (ƛ M) = ƛ lift (suc n) i M
lift n i (M ∙ N) = lift n i M ∙ lift n i N
--------------------------------------------------------------------------------
-- properties of lift
open import Relation.Binary.PropositionalEquality hiding ([_])
-- lift l (n + i)
-- ∙ --------------------------> ∙
-- | |
-- | |
-- lift l (n + m + i) lift (l + n) m
-- | |
-- ∨ ∨
-- ∙ --------------------------> ∙
--
lift-lemma : ∀ l m n i N → lift l (n + m + i) N ≡ lift (l + n) m (lift l (n + i) N)
lift-lemma l m n i (var x) = cong var_ (LC.Subst.Var.lift-var-lemma l m n i x)
lift-lemma l m n i (ƛ M) = cong ƛ_ (lift-lemma (suc l) m n i M)
lift-lemma l m n i (M ∙ N) = cong₂ _∙_ (lift-lemma l m n i M) (lift-lemma l m n i N)
-- lift (l + n) i
-- ∙ --------------------------> ∙
-- | |
-- | |
-- lift l m lift l m
-- | |
-- ∨ ∨
-- ∙ --------------------------> ∙
-- lift (l + m + n) i
lift-lift : ∀ l m n i N → lift l m (lift (l + n) i N) ≡ lift (l + m + n) i (lift l m N)
lift-lift l m n i (var x) = cong var_ (lift-var-lift-var l m n i x)
lift-lift l m n i (ƛ N) = cong ƛ_ (lift-lift (suc l) m n i N)
lift-lift l m n i (M ∙ N) = cong₂ _∙_ (lift-lift l m n i M) (lift-lift l m n i N)
--------------------------------------------------------------------------------
-- substituting variables
data Match : ℕ → ℕ → Set where
Under : ∀ {i x} → x < i → Match x i
Exact : ∀ {i x} → x ≡ i → Match x i
Above : ∀ {i} v → suc v > i → Match (suc v) i
open import Relation.Binary.Definitions
match : (x i : ℕ) → Match x i
match x i with <-cmp x i
match x i | tri< a ¬b ¬c = Under a
match x i | tri≈ ¬a b ¬c = Exact b
match (suc x) i | tri> ¬a ¬b c = Above x c
subst-var : ∀ {x i} → Match x i → Term → Term
subst-var {x} (Under _) N = var x
subst-var {_} {i} (Exact _) N = lift 0 i N
subst-var (Above x _) N = var x
--------------------------------------------------------------------------------
-- properties of subst-var
open import Relation.Nullary.Negation using (contradiction)
open ≡-Reasoning
subst-var-match-< : ∀ {m n} N → (m<n : m < n) → subst-var (match m n) N ≡ var m
subst-var-match-< {m} {n} N m<n with match m n
... | Under m<n' = refl
... | Exact m≡n = contradiction m≡n (<⇒≢ m<n)
... | Above _ m>n = contradiction m>n (<⇒≱ (≤-step m<n))
subst-var-match-≡ : ∀ {m n} N → (m≡n : m ≡ n) → subst-var {_} {n} (match m n) N ≡ lift 0 n N
subst-var-match-≡ {m} {.m} N refl with match m m
... | Under m<m = contradiction refl (<⇒≢ m<m)
... | Exact m≡m = refl
... | Above _ m>m = contradiction refl (<⇒≢ m>m)
subst-var-match-> : ∀ {m n} N → (1+m>n : suc m > n) → subst-var (match (suc m) n) N ≡ var m
subst-var-match-> {m} {n} N 1+m<n with match (suc m) n
... | Under m<n = contradiction m<n (<⇒≱ (≤-step 1+m<n))
... | Exact m≡n = contradiction (sym m≡n) (<⇒≢ 1+m<n)
... | Above _ m>n = refl
-- subst-var (match x m)
-- ∙ -------------------------------------------------------> ∙
-- | |
-- | |
-- lift n lift (m + n)
-- | |
-- ∨ ∨
-- ∙ --------------------------------------------------------> ∙
-- subst-var (match (lift-var (suc (m + n)) i x) m)
open import Relation.Binary.PropositionalEquality hiding (preorder; [_])
open ≡-Reasoning
subst-var-lift : ∀ m n i x N
→ subst-var (match (lift-var (suc (m + n)) i x) m) (lift n i N)
≡ lift (m + n) i (subst-var (match x m) N)
subst-var-lift m n i x N with match x m
... | Under x<m =
begin
subst-var (match (lift-var (suc (m + n)) i x) m) (lift n i N)
≡⟨ cong (λ w → subst-var (match w m) (lift n i N)) (LC.Subst.Var.lift-var-> prop1) ⟩
subst-var (match x m) (lift n i N)
≡⟨ subst-var-match-< (lift n i N) x<m ⟩
var x
≡⟨ cong var_ (sym (LC.Subst.Var.lift-var-> prop2)) ⟩
lift (m + n) i (var x)
∎
where
prop1 : suc (m + n) > x
prop1 = ≤-trans x<m (≤-step (m≤m+n m n))
prop2 : m + n > x
prop2 = ≤-trans x<m (m≤m+n m n)
... | Exact refl =
begin
subst-var (match (lift-var (suc (m + n)) i m) m) (lift n i N)
≡⟨ cong (λ w → subst-var (match w m) (lift n i N)) (LC.Subst.Var.lift-var-> prop) ⟩
subst-var (match m m) (lift n i N)
≡⟨ subst-var-match-≡ (lift n i N) refl ⟩
lift 0 m (lift n i N)
≡⟨ lift-lift 0 m n i N ⟩
lift (m + n) i (lift 0 m N)
∎
where
prop : suc (m + n) > m
prop = s≤s (m≤m+n m n)
... | Above v m≤v with inspectBinding (suc m + n) (suc v)
... | Free n≤x =
begin
subst-var (match (i + suc v) m) (lift n i N)
≡⟨ cong (λ w → subst-var (match w m) (lift n i N)) (+-suc i v) ⟩
subst-var (match (suc i + v) m) (lift n i N)
≡⟨ subst-var-match-> (lift n i N) prop ⟩
var (i + v)
≡⟨ cong var_ (sym (LC.Subst.Var.lift-var-≤ prop2)) ⟩
var (lift-var (m + n) i v)
∎
where
prop : suc (i + v) > m
prop = s≤s (≤-trans (≤-pred m≤v) (m≤n+m v i))
prop2 : m + n ≤ v
prop2 = ≤-pred n≤x
... | Bound n>x =
begin
subst-var (match (suc v) m) (lift n i N)
≡⟨ subst-var-match-> {v} {m} (lift n i N) m≤v ⟩
var v
≡⟨ cong var_ (sym (LC.Subst.Var.lift-var-> {m + n} {i} {v} (≤-pred n>x))) ⟩
var (lift-var (m + n) i v)
∎
|
programs/oeis/168/A168190.asm | karttu/loda | 1 | 241735 | <filename>programs/oeis/168/A168190.asm
; A168190: a(n) = n^3*(n^9 + 1)/2.
; 0,1,2052,265734,8388640,122070375,1088391276,6920643772,34359738624,141214768605,500000000500,1569214189026,4458050224992,11649042562339,28346956189020,64873168947000,140737488357376,291311118617337,578415690716004,1106657459536510,2048000000004000,3677913755697951,6427501315529932
mov $1,$0
pow $0,3
pow $1,12
add $1,$0
div $1,2
|
programs/oeis/175/A175605.asm | neoneye/loda | 22 | 85075 | ; A175605: a(n) = concatenation of n^3 with itself.
; 11,88,2727,6464,125125,216216,343343,512512,729729,10001000,13311331,17281728,21972197,27442744,33753375,40964096,49134913,58325832,68596859,80008000,92619261,1064810648,1216712167,1382413824,1562515625,1757617576,1968319683,2195221952,2438924389,2700027000,2979129791,3276832768,3593735937,3930439304,4287542875,4665646656,5065350653,5487254872,5931959319,6400064000,6892168921,7408874088,7950779507,8518485184,9112591125,9733697336,103823103823,110592110592,117649117649,125000125000,132651132651,140608140608,148877148877,157464157464,166375166375,175616175616,185193185193,195112195112,205379205379,216000216000,226981226981,238328238328,250047250047,262144262144,274625274625,287496287496,300763300763,314432314432,328509328509,343000343000,357911357911,373248373248,389017389017,405224405224,421875421875,438976438976,456533456533,474552474552,493039493039,512000512000,531441531441,551368551368,571787571787,592704592704,614125614125,636056636056,658503658503,681472681472,704969704969,729000729000,753571753571,778688778688,804357804357,830584830584,857375857375,884736884736,912673912673,941192941192,970299970299,10000001000000
add $0,1
pow $0,3
seq $0,127421 ; Numbers whose decimal expansion is a concatenation of 2 consecutive increasing nonnegative numbers.
sub $0,1
|
freenet-supportforum.applescript | rinchen/fesc | 0 | 1657 | <gh_stars>0
on clicked theObject
do shell script "open http://hawk.freenetproject.org:8080/pipermail/support/"
end clicked
|
libsrc/_DEVELOPMENT/fcntl/c/sdcc_iy/read.asm | jpoikela/z88dk | 640 | 89233 | <gh_stars>100-1000
; ssize_t read(int fd, void *buf, size_t nbyte)
SECTION code_clib
SECTION code_fcntl
PUBLIC _read
EXTERN asm_read
_read:
pop af
pop hl
pop de
pop bc
push bc
push de
push hl
push af
jp asm_read
|
src/tests/display_ascon_traces.adb | jhumphry/Ascon_SPARK | 1 | 25310 | <filename>src/tests/display_ascon_traces.adb
-- Display_Ascon_Traces
-- A utility to display traces of the encryption process for the test vectors
-- in the demo of the reference implementations
-- Copyright (c) 2016, <NAME> - see LICENSE file for details
with Ada.Text_IO;
use Ada.Text_IO;
with System.Storage_Elements;
use System.Storage_Elements;
with Ascon.Access_Internals;
with Ascon.Utils;
procedure Display_Ascon_Traces is
package Ascon_Package_Internals is new Ascon_Package.Access_Internals;
use Ascon_Package_Internals;
package Ascon_Utils is new Ascon_Package.Utils;
use Ascon_Utils;
State_Trace : State := Make_State;
K : constant Ascon_Package.Key_Type := (others => 0);
N : constant Ascon_Package.Nonce_Type := (others => 0);
A : constant Storage_Array(0..4) := (16#41#, 16#53#, 16#43#, 16#4f#, 16#4e#);
M : constant Storage_Array(0..4) := (16#61#, 16#73#, 16#63#, 16#6f#, 16#6e#);
C : Storage_Array(0..4);
T : Ascon_Package.Tag_Type;
M2 : Storage_Array(0..4);
T2 : Ascon_Package.Tag_Type;
begin
Put_Line("ENCRYPTION");
New_Line;
Put_Line("Associated Data:");
Put_Storage_Array(A);
New_Line;
Put_Line("Plaintext:");
Put_Storage_Array(M);
New_Line;
New_Line;
State_Trace := Initialise(K, N);
Put_Line("State after initialisation (with key and nonce):");
Put_State(State_Trace);
New_Line;
Absorb(State_Trace, A);
Put_Line("State after associated data processing:");
Put_State(State_Trace);
New_Line;
Encrypt(State_Trace, M, C);
Put_Line("State after message encryption:");
Put_State(State_Trace);
New_Line;
Finalise(State_Trace, K, T);
Put_Line("State after finalisation:");
Put_State(State_Trace);
New_Line;
Put_Line("Ciphertext:");
Put_Storage_Array(C);
New_Line;
Put_Line("Tag:");
Put_Storage_Array(T);
New_Line;
New_Line;
Put_Line("DECRYPTION");
New_Line;
State_Trace := Initialise(K, N);
Put_Line("Initialise state with key and nonce");
Absorb(State_Trace, A);
Put_Line("Absorbing header into state");
Decrypt(State_Trace, C, M2);
Put_Line("Decrypting message");
Finalise(State_Trace, K, T2);
Put_Line("Finalising state");
New_Line;
Put_Line("Recovered plaintext:");
Put_Storage_Array(M2);
New_Line;
Put_Line("Recovered Tag:");
Put_Storage_Array(T2);
New_Line;
Put_Line((if M /= M2
then "ERROR :Plaintexts don't match"
else "Plaintexts match"));
Put_Line((if T /= T2
then "ERROR: Tags don't match"
else "Tags match"));
New_Line;
end Display_Ascon_Traces;
|
gcc-gcc-7_3_0-release/gcc/ada/s-vallld.adb | best08618/asylo | 7 | 10873 | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- S Y S T E M . V A L _ L L D --
-- --
-- B o d y --
-- --
-- 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. --
-- --
-- As a special exception under Section 7 of GPL version 3, you are granted --
-- additional permissions described in the GCC Runtime Library Exception, --
-- version 3.1, as published by the Free Software Foundation. --
-- --
-- You should have received a copy of the GNU General Public License and --
-- a copy of the GCC Runtime Library Exception along with this program; --
-- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
-- <http://www.gnu.org/licenses/>. --
-- --
-- GNAT was originally developed by the GNAT team at New York University. --
-- Extensive contributions were provided by Ada Core Technologies Inc. --
-- --
------------------------------------------------------------------------------
with System.Val_Real; use System.Val_Real;
package body System.Val_LLD is
----------------------------
-- Scan_Long_Long_Decimal --
----------------------------
-- We use the floating-point circuit for now, this will be OK on a PC,
-- but definitely does NOT have the required precision if the longest
-- float type is IEEE double. This must be fixed in the future ???
function Scan_Long_Long_Decimal
(Str : String;
Ptr : not null access Integer;
Max : Integer;
Scale : Integer) return Long_Long_Integer
is
Val : Long_Long_Float;
begin
Val := Scan_Real (Str, Ptr, Max);
return Long_Long_Integer (Val * 10.0 ** Scale);
end Scan_Long_Long_Decimal;
-----------------------------
-- Value_Long_Long_Decimal --
-----------------------------
-- Again we cheat and use floating-point ???
function Value_Long_Long_Decimal
(Str : String;
Scale : Integer) return Long_Long_Integer
is
begin
return Long_Long_Integer (Value_Real (Str) * 10.0 ** Scale);
end Value_Long_Long_Decimal;
end System.Val_LLD;
|
45/runtime/rt/grline.asm | minblock/msdos | 0 | 175355 | <reponame>minblock/msdos
TITLE GRLINE - LINE STATEMENT SUPPORT
PAGE 56,132
;***
;GRLINE - LINE STATEMENT SUPPORT
;
; Copyright <C> 1986, Microsoft Corporation
;
;Purpose:
;
; BASIC Syntax mapping to included runtime entry points:
;
; - LINE Statement:
;
; LINE [(x1,y1)] -(x2,y2) [,[color] [,B[F]] [,style]]
; | | |
; | Coordinate Routines B$LINE
; | |
; +------------------------------------------------------+
;
;
;******************************************************************************
INCLUDE switch.inc
INCLUDE rmacros.inc ; Runtime Macro Defintions
useSeg _BSS
useSeg GR_TEXT
INCLUDE seg.inc
sBegin _BSS
;
;****************************************************************************
; External low-level function vectors
;****************************************************************************
;
externW b$NSetC
externW b$MapXYC
externW B$VXMIN
externW B$VXMAX
externW B$VYMIN
externW B$VYMAX
externW B$GRPACX
externW B$GRPACY
externW B$GXPOS
externW B$GYPOS
externW B$GX_OLD
externW B$GY_OLD
externW B$MAXDEL
externW B$MINDEL
externW B$MINUPD
externW B$MAXUPD
externW B$LINSTL
externW b$PenC
externW b$OffC
externW b$Incr1 ; major axis update value for Line
externW b$Incr2 ; minor axis update value for Line
externW b$IncrY ; change for Y movement for Line
externW b$LineX
externW b$LineY
externW b$LineV
externW b$SetPixLastC
externW b$SetPixFirstC
externW b$BytesPerRow
sEnd _BSS
sBegin GR_TEXT
assumes CS,GR_TEXT
externNP B$XDELT
externNP B$YDELT
externNP B$DOBOXF
externNP B$CLRATR
externNP B$COORD1 ; process first coordinate pair
externNP B$COORD2 ; process second coordinate pair
externNP B$ERR_FC
externNP B$ERR_DV0
externNP B$ERR_OV
externNP B$CLIPCK
;low-level routines:
externNP B$SCINIT ; Performs screen initialization
SUBTTL B$LINE - Line statement entry point
PAGE
;***
;B$LINE - Line statement entry point
;void pascal B$LINE(I2 color, I2 style, I2 fBF)
;
;Purpose:
; Draw line, box or filled box, with or without line styling, according to
; the requested form of line statement.
;
;Input:
; color = color spec (-1 if default)
; style = line style (-1 if default to solid line)
; fBF = box spec: 0 if normal line (no box)
; 1 if box with no fill
; 2 if filled box
;
;Output:
; none
;
;Modifies:
; Per convention
;
;Exceptions:
; Control may be transfered to an error routine such as B$ERR_FC
;
;******************************************************************************
cProc B$LINE,<FAR,PUBLIC>
parmW color
parmW style
parmW fBf
cBegin
CALL B$SCINIT ; inititalize screen if not already done
cCall B$COORD1 ; process first coord pair
MOV AX,B$GRPACX ;move first x coordinate into B$GX_OLD
MOV B$GX_OLD,AX ;B$GX_OLD:=B$GXPOS
MOV AX,B$GRPACY ;move first y coordinate into B$GY_OLD
MOV B$GY_OLD,AX ;B$GY_OLD:=B$GYPOS
cCall B$COORD2 ; process second coord pair
MOV AX,style
MOV B$LINSTL,AX ; Set LINE STYLE
MOV AX,color ; [AX] = COLOR ATTRIBUTE
CALL B$CLRATR ;SET COLOR
MOV AX,B$GX_OLD ; [AX] = B$GX_OLD
MOV DX,B$GY_OLD ; [DX] = B$GY_OLD
MOV CX,fBF ; [CX] = box fill flag
JCXZ REGLIN ; 0 = NORMAL LINE
LOOP BOXFIL ; 2 = DO BOX WITH FILL
JMP SHORT BOXNF1 ; 1 = DO BOX, NO FILL
REGLIN: ;DO NORMAL LINE
XCHG AX,CX ; [CX] = B$GX_OLD
CALL B$LINDRW ;DRAW LINE FR.(CX,DX) TO (B$GXPOS,B$GYPOS)
JMP SHORT LINE_90 ; and exit
BOXNF1:
XCHG AX,CX ; [CX] = B$GX_OLD
CALL B$BOXNOF ; draw box
JMP SHORT LINE_90 ;EXIT LINE STATEMENT
BOXFIL:
LOOP ERRFC ; else FUNCTION CALL ERROR
XCHG AX,CX ; [CX] = B$GX_OLD
CALL B$DOBOXF ; do the box fill
LINE_90:
MOV B$LINSTL,-1 ; RESTORE LINE STYLE TO SOLID
cEnd
ERRFC: JMP B$ERR_FC ;ILLEGAL FUNCTION CALL
PAGE
SUBTTL Line Statement Support Routines
;***
;B$BOXNOF
;
;Purpose:
; Draw a BOX.
;
;Entry:
;
;Exit:
;
;Uses:
;
;******************************************************************************
cProc B$BOXNOF,<NEAR,PUBLIC>
cBegin
MOV BX,B$GYPOS
PUSH BX ;SAVE Y2
PUSH DX ;SAVE Y1
XCHG DX,BX ;MOVE Y2 TO Y1
CALL B$LINDRW ;DO TOP LINE
POP BX ;MOVE Y1 TO Y2
MOV B$GYPOS,BX
XCHG DX,BX ;RESTORE Y1 TO [DX]
CALL B$LINDRW
POP BX ;GET BACK Y2
MOV B$GYPOS,BX ;AND RESTORE
MOV BX,B$GXPOS ;GET X2
PUSH CX ;SAVE X1
MOV CX,BX ;SET X1=X2
CALL B$LINDRW
POP BX
MOV B$GXPOS,BX ;SET X2=X1
MOV CX,BX ;RESTORE X1 TO [CX]
cEnd nogen ;fall into B$LINDRW
;***
;B$LINDRW
;
;Purpose:
; Draw a line.
;
;Entry:
;
;Exit:
;
;Uses:
;
;******************************************************************************
cProc B$LINDRW,<NEAR,PUBLIC>,<SI,DI>
cBegin
PUSH CX ;SAVE COORDINATES
PUSH DX
CALL DOGRPH
MOV AX,B$GRPACX ;RESTORE ORIGINAL SECOND COORDINATE
MOV B$GXPOS,AX
MOV AX,B$GRPACY ;FOR B$BOXNOF CODE
MOV B$GYPOS,AX
POP DX
POP CX
cEnd
;***
;HorizLine Draw a horizontal line
;
;Purpose:
; Draw a horizontal line using.
;
;Entry:
; [DX] = B$GYPOS = y1 = y2
; [cx] = x1
; B$GXPOS = x2
;
;Exit:
; Graphics accumulators updated.
;
;Modifies:
; bx,si,ax,cx,dx
;
;******************************************************************************
HorizLine:
call B$XDELT ; bx = abs(x2-x1)
pushf ; remember flag setting
push cx ; save x
jnc noxchg ; x1 < x2
xchg cx,[B$GXPOS] ;ensure CX = MIN(X1,X2)
noxchg:
inc bx ; bx = # of pixels to draw
push bx ; preserve bx across mapxyc
call [b$MapXYC] ;set graphics cursor to (x1,y1)
pop bx ; restore pixel count
call [b$NSetC] ;draw the line
pop cx ; restore x
popf ; recall if exchange took place
jnc nosort ; x1 and x2 were not exchanged
xchg cx,[B$GXPOS] ;ensure CX = MIN(X1,X2)
nosort:
ret
;***
;DOGRPH
;
;Purpose:
; DRAWS A LINE FROM ([CX],[DX]) TO (B$GXPOS,B$GYPOS)
;
;Entry:
;
;Exit:
;
;Uses:
;
;******************************************************************************
DOGRPH:
CALL CLIPP ; Clip the line before plotting
JZ DOGRP0 ; Brif line is visible, plot it
RET
DOGRP0:
XCHG CX,[B$GXPOS] ;ensure CX = MIN(X1,X2)
XCHG DX,[B$GYPOS] ;ensure DX = MIN(Y1,Y2)
cmp B$LINSTL,-1 ; line style active ?
jnz nohorizontal ; brif so (do not special case
; horizontal line if line style
; active)
cmp dx,B$GYPOS ; y1 = y2?
je HorizLine ; special case horizontal line
nohorizontal:
MOV AX,B$GXPOS
MOV BX,B$GYPOS
MOV DI,B$LINSTL
; draw a line between (AX,BX) and (CX,DX) with linestyle (DI),
; color in b$AttrC
CALL B$LineXYV ;call low-level
DOGRPHX:
mov [B$LINSTL],di ;[speed]
RET
PAGE
SUBTTL LINE CLIPPING ROUTINES
;***
;CLIPP
;
;Purpose:
; Line clipping routine
;
;Entry:
; [CX] = x1
; [DX] = y1
; B$GXPOS= x2
; B$GYPOS= y2
;
;Exit:
; ZF set if the line is visible.
; NZ if the line is not visible.
;
;Uses:
;
;
;******************************************************************************
CLIPP:
CALL CLIPC ;status of visibility, [AL]=p1, [AH]=p2
CLIPP0:
OR AX,AX
JZ CLIPPX ;Brif points visible
TEST AL,AH ;Any octant common?
JNZ CLIPPX ;Brif line outside, not visible
OR AL,AL ;Line may be visible, try to clip
JNZ CLIPP1 ;Brif point 1 not visible
XCHG CX,[B$GXPOS] ;ensure CX = MIN(X1,X2)
XCHG DX,[B$GYPOS] ;ensure DX = MIN(Y1,Y2)
XCHG AL,AH ; exchange point 1,2 status
CLIPP1:
MOV BX,B$VXMIN
SAR AL,1
JB CLIPX1 ;If x1 .lt. vx1, modify x1,y1
MOV BX,B$VXMAX
SAR AL,1
JB CLIPX1 ;If x1 .lt. vx2, modify x1,y1
MOV BX,B$VYMIN
SAR AL,1
JB CLIPY1 ;If y1 .lt. vy1, modify x1,y1
SAR AL,1
JNB CLIPP2
MOV BX,B$VYMAX ;If y1 .gt. vy2, modify x1,y1
CLIPY1:
CALL MODXY2
JMP SHORT CLIPP2
CLIPX1:
CALL MODXY1
CLIPP2:
CALL B$CLIPCK ;[AL]= new status for current point
JMP SHORT CLIPP0 ;Try for further clipping
CLIPC:
PUSH CX ;Save x1
PUSH DX ;Save y1
CALL B$CLIPCK ;Get status of p(x1,y1)
XCHG AH,AL ;[AH]= p1 status
MOV CX,B$GXPOS ;x2
MOV DX,B$GYPOS ;y2
CALL B$CLIPCK ;Get status of p(x2,y2)
XCHG AH,AL ;[AH]= p2 status, [AL]= p1 status
POP DX ;y1
POP CX ;x1
CLIPPX:
RET
;***
;MODXY1
;
;Purpose:
; Modify (clip) x,y into VIEW range
; Given: x1,y1 and x2,y2 - clip x1,y1
;
; x is set to VIEW boundary: vx1 or vx2
; y= y1+(y2-y1)/(x2-x1)*(vx1 or vx2-x1)
;
;Entry:
; [BX]= View boundary vx1, vx2, vy1, or vy2
; [CX]= x, [DX]= y
;
;Exit:
;
;Uses:
;
;******************************************************************************
MODXY1:
PUSH AX ;Save VIEW status
PUSH BX ;Save boundary
SUB BX,CX ;[BX]= boundary-x1
MOV SI,BX ;[SI]= Dxb
MOV BX,B$GXPOS
SUB BX,CX ;[BX]= (Dx)=x2-x1
MOV CX,SI ;[CX]= Dxb
MOV SI,DX ;[SI]= y1
MOV AX,B$GYPOS
SUB AX,DX ;[AX]= (Dy)=y2-y1
CWD ;Extend sign into [DX]
CALL B$IDIVBX ;[AX]= (D)=Dy\Dx
PUSH DX ;[DX]= (R)=Dy remainder Dx
IMUL CX ;[AX]= D*Dxb
ADD SI,AX ;[SI]= y1+D*Dxb
POP AX
IMUL CX ;[DXAX]= R*Dxb
SAL AX,1
RCL DX,1 ;[DXAX]= R*Dxb*2
CALL B$IDIVBX ;[AX]= (R*Dxb*2)\Dx
OR AX,AX ; Simulate CINT(R*Dxb/Dx)
JS modxyc ;don't inc if neg
INC AX ;[AX]= (R*2*Dxb)\Dx+1
modxyc:
SAR AX,1 ;[AX]= ((R*2*Dxb)\Dx+1)\2
ADD AX,SI ;[AX]= y1+D*Dxb+((R*2*Dxb)\Dx+1)\2
MOV DX,AX ;[DX]= New Y
POP CX ;[CX]= New X
POP AX ;View Status
RET
;***
;B$IDIVBX - Simulate IDIV instruction
;
;Purpose:
; Perform an "IDIV BX" after making sure neither a /0 or overflow error will
; occur. The test for overflow is that the next power of two larger than each
; of the two numbers is found and if the difference is more than 2^14, an
; overflow is flagged.
;
;Entry:
; [BX] = denominator
; [DX:AX] = numerator
;
;Exit:
; [AX] = quotient
; [DX] = remainder
;
;****
cProc B$IDIVBX,<NEAR,PUBLIC>
cBegin
OR BX,BX ;Is denominator 0?
JZ ERR0 ;Error if so.
PUSH AX
OR AX,DX ;Is numerator 0?
POP AX
JZ RET0 ;If so, return 0 for quotient & remainder.
; Both numerator and denominator are non-zero. Now take the absolute
; values of each and figure the difference in the magnitudes of the
; two numbers by finding the next power of two larger than each.
; If the difference in magnitudes is more than 2^14, give B$ERR_OV.
PUSH AX
PUSH BX
PUSH CX
PUSH DX
XOR CX,CX ;CH=magnitude of numerator
;CL=magnitude of denominator
OR BX,BX ;Is BX negative?
JNS BXPOS ;If so, negate it
NEG BX
BXPOS:
OR DX,DX ;Is DX:AX negative?
JNS DXAXPOS ;If so, negate it
NOT AX
NOT DX
ADD AX,1
ADC DX,0
DXAXPOS:
BXLOP:
INC CL ;Figure BX's magnitude
SHR BX,1
JNZ BXLOP
;Figure DX:AX's magnitude
OR DX,DX
JZ AXLOP
MOV CH,16d
MOV AX,DX
AXLOP:
INC CH
SHR AX,1
JNZ AXLOP
SUB CH,CL ;Figure difference in magnitudes
CMP CH,14d ;More than 2^14?
JG GOVERR ;Error if so
POP DX
POP CX
POP BX
POP AX
IDIV BX ;Now that /0 errors and overflows
;have been ruled out, it's OK to
;do an IDIV.
RET0:
cEnd
ERR0:
JMP B$ERR_DV0
GOVERR:
JMP B$ERR_OV
MODXY2:
CALL INTXY2 ;xchg x1,y1 B$GXPOS,B$GYPOS
CALL MODXY1 ;Clip x1,y1
INTXY2:
XCHG CX,DX ;xchg x1,y1 B$GXPOS,B$GYPOS
PUSH B$GXPOS
PUSH B$GYPOS
POP B$GXPOS
POP B$GYPOS
RET
PAGE
SUBTTL LINE UTILITIES
;***
;B$CLINE2
;
;Purpose:
;
;Entry:
;
;Exit:
;
;Modifies:
;
;******************************************************************************
cProc B$CLINE2,<NEAR,PUBLIC>
cBegin
MOV AX,B$GRPACX ;DRAW LINE FROM [CX],[DX]
MOV B$GXPOS,AX ;TO B$GRPACX,Y
MOV AX,B$GRPACY
MOV B$GYPOS,AX
JMP B$LINDRW ;GO DRAW THE LINE
cEnd nogen
;***
;B$GTABSC - GET ABSOLUTE COORDS
;
;Purpose:
; ([CX],[DX])=(B$GRPACX+[CX],B$GRPACY+[DX])
;
;Entry:
; B$GRPACX = x center
; B$GRPACY = y center
;
;Exit:
; [cx] = x center
; [dx] = y center
;
;Modifies:
; cx,dx
;
;******************************************************************************
cProc B$GTABSC,<NEAR,PUBLIC>
cBegin
ADD CX,[B$GRPACX] ;[CX]=X CENTER + [CX]
ADD DX,[B$GRPACY] ;[DX]=Y CENTER + [DX]
cEnd
;***
; B$LineXYV - Draw a line
;
;Purpose:
; Moved here from LLCGRP with revision [16].
; Draw a line in a given style between two points. The line will
; be drawn according to the pattern given in the Line style mask
; (DI). For each pixel that is going to be set for the line,
; the corresponding bit in DI is tested. If it is 1, the pixel
; is set, otherwise that pixel is skipped. If the line is longer
; than 16 pixels, the line style mask is repeated.
;
;Entry:
; DI = Line style mask
; AX,BX = one end point X,Y
; CX,DX = other end point X,Y
;
;Exit:
; DI = Line style mask
;
;Uses:
; DI is used as an input parameter and may be modified as it is
; rotated to get successive bits to test.
;
;Exceptions:
; none
;******************************************************************************
cProc B$LineXYV,<NEAR>,<BP,SI,ES>
cBegin
CMP AX,CX ;make sure X <= X2
JLE Line1 ;go if (AX,BX) left of (CX,DX)
XCHG AX,CX ;ensure leftmost point in (AX,BX)
XCHG BX,DX ;line will always move left to right
Line1:
SUB CX,AX ;CX <- X distance (will be >= 0)
SUB DX,BX ;DX <- Y distance
MOV SI,DX ;SI <- abs(Y distance)
JGE Line2
NEG SI
Line2:
PUSH CX ;save axes directed distances
PUSH DX
MOV CX,AX ;set up raster offset and pixel bit mask
MOV DX,BX ; (point in CX,DX for MAPXYC)
CALL [b$MapXYC]
CALL [b$SetPixFirstC] ;set up ES and EGA, if applicable
POP DX ;restore axes distances
POP CX
OR DX,DX ;Y distance negative?
MOV DX,b$BytesPerRow ;bytes per pixel line (assume positive)
JNS Line3 ;go if positive
NEG DX ;negate direction
Line3:
MOV b$IncrY,DX ;save for Y update of BP
MOV BP,b$OffC ;BP <- raster offset
CMP SI,CX ;is X or Y the major axis?
JGE LineY ;go if Y is major
;fall thru if X is major
LineX: ;X-major lines, CX <- major (X) axis length
MOV AX,SI ;Incr1 <- minor * 4
SHL AX,1
SHL AX,1
MOV b$Incr1,AX
SUB AX,CX ;SI <- Incr1 - major
XCHG AX,SI
SUB AX,CX ;Incr2 <- (minor - major) * 4
SHL AX,1
SHL AX,1
MOV b$Incr2,AX
INC CX ;#points <- distance + 1
MOV AX,b$PenC ;AL <- bit accumulator
;AH <- color info
MOV BH,AL ;BH <- current bit mask
XOR AL,AL ;clear pixel accumulator
call [b$LineX] ;draw X-major line
jmp short LineExit
LineY: ;Y-major lines
OR CX,CX ;vertical line?
JZ LineV ;go if so
MOV AX,CX
SHL CX,1 ;Incr1 <- minor * 4
SHL CX,1
MOV b$Incr1,CX
XCHG CX,SI ;CX <- major (Y) axis length
SUB SI,CX ;SI <- Incr1 - major
SUB AX,CX ;Incr2 <- (minor - major) * 4
SHL AX,1
SHL AX,1
MOV b$Incr2,AX
INC CX ;#points <- distance + 1
MOV AX,b$PenC ;AL <- bit accumulator
;AH <- color info
call [b$LineY] ;draw Y-major line
jmp short LineExit
LineV: ;vertical lines
MOV CX,SI ;#points <- distance + 1
INC CX
MOV AX,b$PenC ;AL <- bit accumulator
;AH <- color info
call [b$LineV] ;draw vertical line
LineExit:
CALL [b$SetPixLastC] ;reset EGA for BIOS
cEnd
sEnd GR_TEXT
END
|
extern/game_support/stm32f4/src/button.adb | AdaCore/training_material | 15 | 4245 | ------------------------------------------------------------------------------
-- --
-- GNAT EXAMPLE --
-- --
-- Copyright (C) 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 Ada.Interrupts.Names;
with Ada.Real_Time; use Ada.Real_Time;
with STM32F4; use STM32F4;
with STM32F4.GPIO; use STM32F4.GPIO;
with STM32F4.RCC; use STM32F4.RCC;
with STM32F4.SYSCFG; use STM32F4.SYSCFG;
with STM32F429_Discovery; use STM32F429_Discovery;
package body Button is
protected Button is
pragma Interrupt_Priority;
function Current_Direction return Directions;
private
procedure Interrupt_Handler;
pragma Attach_Handler
(Interrupt_Handler,
Ada.Interrupts.Names.EXTI0_Interrupt);
Direction : Directions := Clockwise; -- arbitrary
Last_Time : Time := Clock;
end Button;
Debounce_Time : constant Time_Span := Milliseconds (500);
protected body Button is
function Current_Direction return Directions is
begin
return Direction;
end Current_Direction;
procedure Interrupt_Handler is
Now : constant Time := Clock;
begin
Clear_External_Interrupt (Pin_0);
-- Debouncing
if Now - Last_Time >= Debounce_Time then
if Direction = Counterclockwise then
Direction := Clockwise;
else
Direction := Counterclockwise;
end if;
Last_Time := Now;
end if;
end Interrupt_Handler;
end Button;
function Current_Direction return Directions is
begin
return Button.Current_Direction;
end Current_Direction;
procedure Initialize is
Configuration : GPIO_Port_Configuration;
begin
Enable_Clock (GPIO_A);
Configuration.Mode := Mode_In;
Configuration.Resistors := Floating;
Configure_IO (Port => GPIO_A,
Pin => Pin_0,
Config => Configuration);
Connect_External_Interrupt (GPIO_A, Pin_0);
Configure_Trigger (GPIO_A, Pin_0, Interrupt_Rising_Edge);
end Initialize;
begin
Initialize;
end Button;
|
asm/crack7.asm | yoshitsugu/hariboteos_in_rust | 29 | 242246 | [BITS 32]
GLOBAL hrmain
[SECTION .text]
hrmain:
MOV AX,1005*8
MOV DS,AX
CMP DWORD [DS:0x0004],'Hari'
JNE fin ; アプリではないようなので何もしない
MOV ECX,[DS:0x0000] ; このアプリのデータセグメントの大きさを読み取る
MOV AX,2005*8
MOV DS,AX
crackloop: ; 123で埋め尽くす
ADD ECX,-1
MOV BYTE [DS:ECX],123
CMP ECX,0
JNE crackloop
fin: ; 終了
MOV EDX,4
INT 0x40
|
Assembly/sprite_randomizer.asm | CaitSith2/Enemizer | 2 | 11434 | <reponame>CaitSith2/Enemizer
Palette_ArmorAndGloves:
{
;DEDF9
LDA !RANDOM_SPRITE_FLAG : BNE .continue
LDA.b #$10 : STA $BC ; Load Original Sprite Location
REP #$21
LDA $7EF35B
JSL $1BEDFF;Read Original Palette Code
RTL
.part_two
SEP #$30
LDA !RANDOM_SPRITE_FLAG : BNE .continue
REP #$30
LDA $7EF354
JSL $1BEE21;Read Original Palette Code
RTL
.continue
PHX : PHY : PHA
; Load armor palette
PHB : PHK : PLB
REP #$20
; Check what Link's armor value is.
LDA $7EF35B : AND.w #$00FF : TAX
; (DEC06, X)
LDA $1BEC06, X : AND.w #$00FF : ASL A : ADC.w #$F000 : STA $00
;replace D308 by 7000 and search
REP #$10
LDA.w #$01E2 ; Target SP-7 (sprite palette 6)
LDX.w #$000E ; Palette has 15 colors
TXY : TAX
;LDA $7EC178 : AND #$00FF : STA $02
LDA.b $BC : AND #$00FF : STA $02
.loop
LDA [$00] : STA $7EC300, X : STA $7EC500, X
INC $00 : INC $00
INX #2
DEY : BPL .loop
SEP #$30
PLB
INC $15
PLA : PLY : PLX
RTL
}
change_sprite:
{
;JSL $09C114 ; Restore the dungeon_resetsprites
LDA !RANDOM_SPRITE_FLAG : BEQ .continue
JSL GetRandomInt : AND #$1F : !ADD #$60 : STA $BC
STA $7EC178
JSL Palette_ArmorAndGloves
STZ $0710
.continue
LDA $0E20, X : CMP.b #$61 ; Restored Code Bank06.asm(5967) ; LDA $0E20, X : CMP.b #$61 : BNE .not_beamos_laser
RTL
}
|
applescript/resources/is-iterm2-active.applescript | richiware/zsh-notify | 0 | 4601 | #!/usr/bin/osascript
on run ttyName
try
set ttyName to first item of ttyName
on error
set ttyName to ""
end
if ttyName is equal to "" then error "Usage: is-iterm2-active.applescript TTY"
tell application id "com.googlecode.iterm2"
tell current window
set isHotkeyWindow to is hotkey window
if isHotkeyWindow and visible is not true then error "iTerm is not the frontmost application"
end tell
end tell
if isHotkeyWindow is not true then
tell application "System Events"
tell item 1 of (application processes whose bundle identifier is "com.googlecode.iterm2")
if frontmost is not true then error "iTerm is not the frontmost application"
end tell
end tell
end if
tell application id "com.googlecode.iterm2"
set currentTty to tty of (current session of current tab of current window) as text
if currentTty is not equal to ttyName then error "Current tab TTY '" & currentTty & "' does not match expected '" & ttyName & "'"
end tell
end run
|
source/oasis/program-element_visitors.ads | reznikmm/gela | 0 | 18058 | -- SPDX-FileCopyrightText: 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Program.Elements.Pragmas;
with Program.Elements.Defining_Identifiers;
with Program.Elements.Defining_Character_Literals;
with Program.Elements.Defining_Operator_Symbols;
with Program.Elements.Defining_Expanded_Names;
with Program.Elements.Type_Declarations;
with Program.Elements.Task_Type_Declarations;
with Program.Elements.Protected_Type_Declarations;
with Program.Elements.Subtype_Declarations;
with Program.Elements.Object_Declarations;
with Program.Elements.Single_Task_Declarations;
with Program.Elements.Single_Protected_Declarations;
with Program.Elements.Number_Declarations;
with Program.Elements.Enumeration_Literal_Specifications;
with Program.Elements.Discriminant_Specifications;
with Program.Elements.Component_Declarations;
with Program.Elements.Loop_Parameter_Specifications;
with Program.Elements.Generalized_Iterator_Specifications;
with Program.Elements.Element_Iterator_Specifications;
with Program.Elements.Procedure_Declarations;
with Program.Elements.Function_Declarations;
with Program.Elements.Parameter_Specifications;
with Program.Elements.Procedure_Body_Declarations;
with Program.Elements.Function_Body_Declarations;
with Program.Elements.Return_Object_Specifications;
with Program.Elements.Package_Declarations;
with Program.Elements.Package_Body_Declarations;
with Program.Elements.Object_Renaming_Declarations;
with Program.Elements.Exception_Renaming_Declarations;
with Program.Elements.Procedure_Renaming_Declarations;
with Program.Elements.Function_Renaming_Declarations;
with Program.Elements.Package_Renaming_Declarations;
with Program.Elements.Generic_Package_Renaming_Declarations;
with Program.Elements.Generic_Procedure_Renaming_Declarations;
with Program.Elements.Generic_Function_Renaming_Declarations;
with Program.Elements.Task_Body_Declarations;
with Program.Elements.Protected_Body_Declarations;
with Program.Elements.Entry_Declarations;
with Program.Elements.Entry_Body_Declarations;
with Program.Elements.Entry_Index_Specifications;
with Program.Elements.Procedure_Body_Stubs;
with Program.Elements.Function_Body_Stubs;
with Program.Elements.Package_Body_Stubs;
with Program.Elements.Task_Body_Stubs;
with Program.Elements.Protected_Body_Stubs;
with Program.Elements.Exception_Declarations;
with Program.Elements.Choice_Parameter_Specifications;
with Program.Elements.Generic_Package_Declarations;
with Program.Elements.Generic_Procedure_Declarations;
with Program.Elements.Generic_Function_Declarations;
with Program.Elements.Package_Instantiations;
with Program.Elements.Procedure_Instantiations;
with Program.Elements.Function_Instantiations;
with Program.Elements.Formal_Object_Declarations;
with Program.Elements.Formal_Type_Declarations;
with Program.Elements.Formal_Procedure_Declarations;
with Program.Elements.Formal_Function_Declarations;
with Program.Elements.Formal_Package_Declarations;
with Program.Elements.Subtype_Indications;
with Program.Elements.Component_Definitions;
with Program.Elements.Discrete_Subtype_Indications;
with Program.Elements.Discrete_Range_Attribute_References;
with Program.Elements.Discrete_Simple_Expression_Ranges;
with Program.Elements.Unknown_Discriminant_Parts;
with Program.Elements.Known_Discriminant_Parts;
with Program.Elements.Record_Definitions;
with Program.Elements.Null_Components;
with Program.Elements.Variant_Parts;
with Program.Elements.Variants;
with Program.Elements.Others_Choices;
with Program.Elements.Anonymous_Access_To_Objects;
with Program.Elements.Anonymous_Access_To_Procedures;
with Program.Elements.Anonymous_Access_To_Functions;
with Program.Elements.Private_Type_Definitions;
with Program.Elements.Private_Extension_Definitions;
with Program.Elements.Incomplete_Type_Definitions;
with Program.Elements.Task_Definitions;
with Program.Elements.Protected_Definitions;
with Program.Elements.Aspect_Specifications;
with Program.Elements.Real_Range_Specifications;
with Program.Elements.Numeric_Literals;
with Program.Elements.String_Literals;
with Program.Elements.Identifiers;
with Program.Elements.Operator_Symbols;
with Program.Elements.Character_Literals;
with Program.Elements.Explicit_Dereferences;
with Program.Elements.Infix_Operators;
with Program.Elements.Function_Calls;
with Program.Elements.Indexed_Components;
with Program.Elements.Slices;
with Program.Elements.Selected_Components;
with Program.Elements.Attribute_References;
with Program.Elements.Record_Aggregates;
with Program.Elements.Extension_Aggregates;
with Program.Elements.Array_Aggregates;
with Program.Elements.Short_Circuit_Operations;
with Program.Elements.Membership_Tests;
with Program.Elements.Null_Literals;
with Program.Elements.Parenthesized_Expressions;
with Program.Elements.Raise_Expressions;
with Program.Elements.Type_Conversions;
with Program.Elements.Qualified_Expressions;
with Program.Elements.Allocators;
with Program.Elements.Case_Expressions;
with Program.Elements.If_Expressions;
with Program.Elements.Quantified_Expressions;
with Program.Elements.Discriminant_Associations;
with Program.Elements.Record_Component_Associations;
with Program.Elements.Array_Component_Associations;
with Program.Elements.Parameter_Associations;
with Program.Elements.Formal_Package_Associations;
with Program.Elements.Null_Statements;
with Program.Elements.Assignment_Statements;
with Program.Elements.If_Statements;
with Program.Elements.Case_Statements;
with Program.Elements.Loop_Statements;
with Program.Elements.While_Loop_Statements;
with Program.Elements.For_Loop_Statements;
with Program.Elements.Block_Statements;
with Program.Elements.Exit_Statements;
with Program.Elements.Goto_Statements;
with Program.Elements.Call_Statements;
with Program.Elements.Simple_Return_Statements;
with Program.Elements.Extended_Return_Statements;
with Program.Elements.Accept_Statements;
with Program.Elements.Requeue_Statements;
with Program.Elements.Delay_Statements;
with Program.Elements.Terminate_Alternative_Statements;
with Program.Elements.Select_Statements;
with Program.Elements.Abort_Statements;
with Program.Elements.Raise_Statements;
with Program.Elements.Code_Statements;
with Program.Elements.Elsif_Paths;
with Program.Elements.Case_Paths;
with Program.Elements.Select_Paths;
with Program.Elements.Case_Expression_Paths;
with Program.Elements.Elsif_Expression_Paths;
with Program.Elements.Use_Clauses;
with Program.Elements.With_Clauses;
with Program.Elements.Component_Clauses;
with Program.Elements.Derived_Types;
with Program.Elements.Derived_Record_Extensions;
with Program.Elements.Enumeration_Types;
with Program.Elements.Signed_Integer_Types;
with Program.Elements.Modular_Types;
with Program.Elements.Root_Types;
with Program.Elements.Floating_Point_Types;
with Program.Elements.Ordinary_Fixed_Point_Types;
with Program.Elements.Decimal_Fixed_Point_Types;
with Program.Elements.Unconstrained_Array_Types;
with Program.Elements.Constrained_Array_Types;
with Program.Elements.Record_Types;
with Program.Elements.Interface_Types;
with Program.Elements.Object_Access_Types;
with Program.Elements.Procedure_Access_Types;
with Program.Elements.Function_Access_Types;
with Program.Elements.Formal_Private_Type_Definitions;
with Program.Elements.Formal_Derived_Type_Definitions;
with Program.Elements.Formal_Discrete_Type_Definitions;
with Program.Elements.Formal_Signed_Integer_Type_Definitions;
with Program.Elements.Formal_Modular_Type_Definitions;
with Program.Elements.Formal_Floating_Point_Definitions;
with Program.Elements.Formal_Ordinary_Fixed_Point_Definitions;
with Program.Elements.Formal_Decimal_Fixed_Point_Definitions;
with Program.Elements.Formal_Unconstrained_Array_Types;
with Program.Elements.Formal_Constrained_Array_Types;
with Program.Elements.Formal_Object_Access_Types;
with Program.Elements.Formal_Procedure_Access_Types;
with Program.Elements.Formal_Function_Access_Types;
with Program.Elements.Formal_Interface_Types;
with Program.Elements.Range_Attribute_References;
with Program.Elements.Simple_Expression_Ranges;
with Program.Elements.Digits_Constraints;
with Program.Elements.Delta_Constraints;
with Program.Elements.Index_Constraints;
with Program.Elements.Discriminant_Constraints;
with Program.Elements.Attribute_Definition_Clauses;
with Program.Elements.Enumeration_Representation_Clauses;
with Program.Elements.Record_Representation_Clauses;
with Program.Elements.At_Clauses;
with Program.Elements.Exception_Handlers;
package Program.Element_Visitors is
pragma Pure (Program.Element_Visitors);
type Element_Visitor is limited interface;
-- See also Safe_Element_Visitors package.
procedure Pragma_Element
(Self : in out Element_Visitor;
Element : not null Program.Elements.Pragmas.Pragma_Access) is null;
procedure Defining_Identifier
(Self : in out Element_Visitor;
Element : not null Program.Elements.Defining_Identifiers
.Defining_Identifier_Access) is null;
procedure Defining_Character_Literal
(Self : in out Element_Visitor;
Element : not null Program.Elements.Defining_Character_Literals
.Defining_Character_Literal_Access) is null;
procedure Defining_Operator_Symbol
(Self : in out Element_Visitor;
Element : not null Program.Elements.Defining_Operator_Symbols
.Defining_Operator_Symbol_Access) is null;
procedure Defining_Expanded_Name
(Self : in out Element_Visitor;
Element : not null Program.Elements.Defining_Expanded_Names
.Defining_Expanded_Name_Access) is null;
procedure Type_Declaration
(Self : in out Element_Visitor;
Element : not null Program.Elements.Type_Declarations
.Type_Declaration_Access) is null;
procedure Task_Type_Declaration
(Self : in out Element_Visitor;
Element : not null Program.Elements.Task_Type_Declarations
.Task_Type_Declaration_Access) is null;
procedure Protected_Type_Declaration
(Self : in out Element_Visitor;
Element : not null Program.Elements.Protected_Type_Declarations
.Protected_Type_Declaration_Access) is null;
procedure Subtype_Declaration
(Self : in out Element_Visitor;
Element : not null Program.Elements.Subtype_Declarations
.Subtype_Declaration_Access) is null;
procedure Object_Declaration
(Self : in out Element_Visitor;
Element : not null Program.Elements.Object_Declarations
.Object_Declaration_Access) is null;
procedure Single_Task_Declaration
(Self : in out Element_Visitor;
Element : not null Program.Elements.Single_Task_Declarations
.Single_Task_Declaration_Access) is null;
procedure Single_Protected_Declaration
(Self : in out Element_Visitor;
Element : not null Program.Elements.Single_Protected_Declarations
.Single_Protected_Declaration_Access) is null;
procedure Number_Declaration
(Self : in out Element_Visitor;
Element : not null Program.Elements.Number_Declarations
.Number_Declaration_Access) is null;
procedure Enumeration_Literal_Specification
(Self : in out Element_Visitor;
Element : not null Program.Elements.Enumeration_Literal_Specifications
.Enumeration_Literal_Specification_Access) is null;
procedure Discriminant_Specification
(Self : in out Element_Visitor;
Element : not null Program.Elements.Discriminant_Specifications
.Discriminant_Specification_Access) is null;
procedure Component_Declaration
(Self : in out Element_Visitor;
Element : not null Program.Elements.Component_Declarations
.Component_Declaration_Access) is null;
procedure Loop_Parameter_Specification
(Self : in out Element_Visitor;
Element : not null Program.Elements.Loop_Parameter_Specifications
.Loop_Parameter_Specification_Access) is null;
procedure Generalized_Iterator_Specification
(Self : in out Element_Visitor;
Element : not null Program.Elements.Generalized_Iterator_Specifications
.Generalized_Iterator_Specification_Access) is null;
procedure Element_Iterator_Specification
(Self : in out Element_Visitor;
Element : not null Program.Elements.Element_Iterator_Specifications
.Element_Iterator_Specification_Access) is null;
procedure Procedure_Declaration
(Self : in out Element_Visitor;
Element : not null Program.Elements.Procedure_Declarations
.Procedure_Declaration_Access) is null;
procedure Function_Declaration
(Self : in out Element_Visitor;
Element : not null Program.Elements.Function_Declarations
.Function_Declaration_Access) is null;
procedure Parameter_Specification
(Self : in out Element_Visitor;
Element : not null Program.Elements.Parameter_Specifications
.Parameter_Specification_Access) is null;
procedure Procedure_Body_Declaration
(Self : in out Element_Visitor;
Element : not null Program.Elements.Procedure_Body_Declarations
.Procedure_Body_Declaration_Access) is null;
procedure Function_Body_Declaration
(Self : in out Element_Visitor;
Element : not null Program.Elements.Function_Body_Declarations
.Function_Body_Declaration_Access) is null;
procedure Return_Object_Specification
(Self : in out Element_Visitor;
Element : not null Program.Elements.Return_Object_Specifications
.Return_Object_Specification_Access) is null;
procedure Package_Declaration
(Self : in out Element_Visitor;
Element : not null Program.Elements.Package_Declarations
.Package_Declaration_Access) is null;
procedure Package_Body_Declaration
(Self : in out Element_Visitor;
Element : not null Program.Elements.Package_Body_Declarations
.Package_Body_Declaration_Access) is null;
procedure Object_Renaming_Declaration
(Self : in out Element_Visitor;
Element : not null Program.Elements.Object_Renaming_Declarations
.Object_Renaming_Declaration_Access) is null;
procedure Exception_Renaming_Declaration
(Self : in out Element_Visitor;
Element : not null Program.Elements.Exception_Renaming_Declarations
.Exception_Renaming_Declaration_Access) is null;
procedure Procedure_Renaming_Declaration
(Self : in out Element_Visitor;
Element : not null Program.Elements.Procedure_Renaming_Declarations
.Procedure_Renaming_Declaration_Access) is null;
procedure Function_Renaming_Declaration
(Self : in out Element_Visitor;
Element : not null Program.Elements.Function_Renaming_Declarations
.Function_Renaming_Declaration_Access) is null;
procedure Package_Renaming_Declaration
(Self : in out Element_Visitor;
Element : not null Program.Elements.Package_Renaming_Declarations
.Package_Renaming_Declaration_Access) is null;
procedure Generic_Package_Renaming_Declaration
(Self : in out Element_Visitor;
Element : not null Program.Elements.Generic_Package_Renaming_Declarations
.Generic_Package_Renaming_Declaration_Access) is null;
procedure Generic_Procedure_Renaming_Declaration
(Self : in out Element_Visitor;
Element : not null Program.Elements
.Generic_Procedure_Renaming_Declarations
.Generic_Procedure_Renaming_Declaration_Access) is null;
procedure Generic_Function_Renaming_Declaration
(Self : in out Element_Visitor;
Element : not null Program.Elements.Generic_Function_Renaming_Declarations
.Generic_Function_Renaming_Declaration_Access) is null;
procedure Task_Body_Declaration
(Self : in out Element_Visitor;
Element : not null Program.Elements.Task_Body_Declarations
.Task_Body_Declaration_Access) is null;
procedure Protected_Body_Declaration
(Self : in out Element_Visitor;
Element : not null Program.Elements.Protected_Body_Declarations
.Protected_Body_Declaration_Access) is null;
procedure Entry_Declaration
(Self : in out Element_Visitor;
Element : not null Program.Elements.Entry_Declarations
.Entry_Declaration_Access) is null;
procedure Entry_Body_Declaration
(Self : in out Element_Visitor;
Element : not null Program.Elements.Entry_Body_Declarations
.Entry_Body_Declaration_Access) is null;
procedure Entry_Index_Specification
(Self : in out Element_Visitor;
Element : not null Program.Elements.Entry_Index_Specifications
.Entry_Index_Specification_Access) is null;
procedure Procedure_Body_Stub
(Self : in out Element_Visitor;
Element : not null Program.Elements.Procedure_Body_Stubs
.Procedure_Body_Stub_Access) is null;
procedure Function_Body_Stub
(Self : in out Element_Visitor;
Element : not null Program.Elements.Function_Body_Stubs
.Function_Body_Stub_Access) is null;
procedure Package_Body_Stub
(Self : in out Element_Visitor;
Element : not null Program.Elements.Package_Body_Stubs
.Package_Body_Stub_Access) is null;
procedure Task_Body_Stub
(Self : in out Element_Visitor;
Element : not null Program.Elements.Task_Body_Stubs.Task_Body_Stub_Access)
is null;
procedure Protected_Body_Stub
(Self : in out Element_Visitor;
Element : not null Program.Elements.Protected_Body_Stubs
.Protected_Body_Stub_Access) is null;
procedure Exception_Declaration
(Self : in out Element_Visitor;
Element : not null Program.Elements.Exception_Declarations
.Exception_Declaration_Access) is null;
procedure Choice_Parameter_Specification
(Self : in out Element_Visitor;
Element : not null Program.Elements.Choice_Parameter_Specifications
.Choice_Parameter_Specification_Access) is null;
procedure Generic_Package_Declaration
(Self : in out Element_Visitor;
Element : not null Program.Elements.Generic_Package_Declarations
.Generic_Package_Declaration_Access) is null;
procedure Generic_Procedure_Declaration
(Self : in out Element_Visitor;
Element : not null Program.Elements.Generic_Procedure_Declarations
.Generic_Procedure_Declaration_Access) is null;
procedure Generic_Function_Declaration
(Self : in out Element_Visitor;
Element : not null Program.Elements.Generic_Function_Declarations
.Generic_Function_Declaration_Access) is null;
procedure Package_Instantiation
(Self : in out Element_Visitor;
Element : not null Program.Elements.Package_Instantiations
.Package_Instantiation_Access) is null;
procedure Procedure_Instantiation
(Self : in out Element_Visitor;
Element : not null Program.Elements.Procedure_Instantiations
.Procedure_Instantiation_Access) is null;
procedure Function_Instantiation
(Self : in out Element_Visitor;
Element : not null Program.Elements.Function_Instantiations
.Function_Instantiation_Access) is null;
procedure Formal_Object_Declaration
(Self : in out Element_Visitor;
Element : not null Program.Elements.Formal_Object_Declarations
.Formal_Object_Declaration_Access) is null;
procedure Formal_Type_Declaration
(Self : in out Element_Visitor;
Element : not null Program.Elements.Formal_Type_Declarations
.Formal_Type_Declaration_Access) is null;
procedure Formal_Procedure_Declaration
(Self : in out Element_Visitor;
Element : not null Program.Elements.Formal_Procedure_Declarations
.Formal_Procedure_Declaration_Access) is null;
procedure Formal_Function_Declaration
(Self : in out Element_Visitor;
Element : not null Program.Elements.Formal_Function_Declarations
.Formal_Function_Declaration_Access) is null;
procedure Formal_Package_Declaration
(Self : in out Element_Visitor;
Element : not null Program.Elements.Formal_Package_Declarations
.Formal_Package_Declaration_Access) is null;
procedure Subtype_Indication
(Self : in out Element_Visitor;
Element : not null Program.Elements.Subtype_Indications
.Subtype_Indication_Access) is null;
procedure Component_Definition
(Self : in out Element_Visitor;
Element : not null Program.Elements.Component_Definitions
.Component_Definition_Access) is null;
procedure Discrete_Subtype_Indication
(Self : in out Element_Visitor;
Element : not null Program.Elements.Discrete_Subtype_Indications
.Discrete_Subtype_Indication_Access) is null;
procedure Discrete_Range_Attribute_Reference
(Self : in out Element_Visitor;
Element : not null Program.Elements.Discrete_Range_Attribute_References
.Discrete_Range_Attribute_Reference_Access) is null;
procedure Discrete_Simple_Expression_Range
(Self : in out Element_Visitor;
Element : not null Program.Elements.Discrete_Simple_Expression_Ranges
.Discrete_Simple_Expression_Range_Access) is null;
procedure Unknown_Discriminant_Part
(Self : in out Element_Visitor;
Element : not null Program.Elements.Unknown_Discriminant_Parts
.Unknown_Discriminant_Part_Access) is null;
procedure Known_Discriminant_Part
(Self : in out Element_Visitor;
Element : not null Program.Elements.Known_Discriminant_Parts
.Known_Discriminant_Part_Access) is null;
procedure Record_Definition
(Self : in out Element_Visitor;
Element : not null Program.Elements.Record_Definitions
.Record_Definition_Access) is null;
procedure Null_Component
(Self : in out Element_Visitor;
Element : not null Program.Elements.Null_Components.Null_Component_Access)
is null;
procedure Variant_Part
(Self : in out Element_Visitor;
Element : not null Program.Elements.Variant_Parts.Variant_Part_Access)
is null;
procedure Variant
(Self : in out Element_Visitor;
Element : not null Program.Elements.Variants.Variant_Access) is null;
procedure Others_Choice
(Self : in out Element_Visitor;
Element : not null Program.Elements.Others_Choices.Others_Choice_Access)
is null;
procedure Anonymous_Access_To_Object
(Self : in out Element_Visitor;
Element : not null Program.Elements.Anonymous_Access_To_Objects
.Anonymous_Access_To_Object_Access) is null;
procedure Anonymous_Access_To_Procedure
(Self : in out Element_Visitor;
Element : not null Program.Elements.Anonymous_Access_To_Procedures
.Anonymous_Access_To_Procedure_Access) is null;
procedure Anonymous_Access_To_Function
(Self : in out Element_Visitor;
Element : not null Program.Elements.Anonymous_Access_To_Functions
.Anonymous_Access_To_Function_Access) is null;
procedure Private_Type_Definition
(Self : in out Element_Visitor;
Element : not null Program.Elements.Private_Type_Definitions
.Private_Type_Definition_Access) is null;
procedure Private_Extension_Definition
(Self : in out Element_Visitor;
Element : not null Program.Elements.Private_Extension_Definitions
.Private_Extension_Definition_Access) is null;
procedure Incomplete_Type_Definition
(Self : in out Element_Visitor;
Element : not null Program.Elements.Incomplete_Type_Definitions
.Incomplete_Type_Definition_Access) is null;
procedure Task_Definition
(Self : in out Element_Visitor;
Element : not null Program.Elements.Task_Definitions
.Task_Definition_Access) is null;
procedure Protected_Definition
(Self : in out Element_Visitor;
Element : not null Program.Elements.Protected_Definitions
.Protected_Definition_Access) is null;
procedure Aspect_Specification
(Self : in out Element_Visitor;
Element : not null Program.Elements.Aspect_Specifications
.Aspect_Specification_Access) is null;
procedure Real_Range_Specification
(Self : in out Element_Visitor;
Element : not null Program.Elements.Real_Range_Specifications
.Real_Range_Specification_Access) is null;
procedure Numeric_Literal
(Self : in out Element_Visitor;
Element : not null Program.Elements.Numeric_Literals
.Numeric_Literal_Access) is null;
procedure String_Literal
(Self : in out Element_Visitor;
Element : not null Program.Elements.String_Literals.String_Literal_Access)
is null;
procedure Identifier
(Self : in out Element_Visitor;
Element : not null Program.Elements.Identifiers.Identifier_Access)
is null;
procedure Operator_Symbol
(Self : in out Element_Visitor;
Element : not null Program.Elements.Operator_Symbols
.Operator_Symbol_Access) is null;
procedure Character_Literal
(Self : in out Element_Visitor;
Element : not null Program.Elements.Character_Literals
.Character_Literal_Access) is null;
procedure Explicit_Dereference
(Self : in out Element_Visitor;
Element : not null Program.Elements.Explicit_Dereferences
.Explicit_Dereference_Access) is null;
procedure Infix_Operator
(Self : in out Element_Visitor;
Element : not null Program.Elements.Infix_Operators.Infix_Operator_Access)
is null;
procedure Function_Call
(Self : in out Element_Visitor;
Element : not null Program.Elements.Function_Calls.Function_Call_Access)
is null;
procedure Indexed_Component
(Self : in out Element_Visitor;
Element : not null Program.Elements.Indexed_Components
.Indexed_Component_Access) is null;
procedure Slice
(Self : in out Element_Visitor;
Element : not null Program.Elements.Slices.Slice_Access) is null;
procedure Selected_Component
(Self : in out Element_Visitor;
Element : not null Program.Elements.Selected_Components
.Selected_Component_Access) is null;
procedure Attribute_Reference
(Self : in out Element_Visitor;
Element : not null Program.Elements.Attribute_References
.Attribute_Reference_Access) is null;
procedure Record_Aggregate
(Self : in out Element_Visitor;
Element : not null Program.Elements.Record_Aggregates
.Record_Aggregate_Access) is null;
procedure Extension_Aggregate
(Self : in out Element_Visitor;
Element : not null Program.Elements.Extension_Aggregates
.Extension_Aggregate_Access) is null;
procedure Array_Aggregate
(Self : in out Element_Visitor;
Element : not null Program.Elements.Array_Aggregates
.Array_Aggregate_Access) is null;
procedure Short_Circuit_Operation
(Self : in out Element_Visitor;
Element : not null Program.Elements.Short_Circuit_Operations
.Short_Circuit_Operation_Access) is null;
procedure Membership_Test
(Self : in out Element_Visitor;
Element : not null Program.Elements.Membership_Tests
.Membership_Test_Access) is null;
procedure Null_Literal
(Self : in out Element_Visitor;
Element : not null Program.Elements.Null_Literals.Null_Literal_Access)
is null;
procedure Parenthesized_Expression
(Self : in out Element_Visitor;
Element : not null Program.Elements.Parenthesized_Expressions
.Parenthesized_Expression_Access) is null;
procedure Raise_Expression
(Self : in out Element_Visitor;
Element : not null Program.Elements.Raise_Expressions
.Raise_Expression_Access) is null;
procedure Type_Conversion
(Self : in out Element_Visitor;
Element : not null Program.Elements.Type_Conversions
.Type_Conversion_Access) is null;
procedure Qualified_Expression
(Self : in out Element_Visitor;
Element : not null Program.Elements.Qualified_Expressions
.Qualified_Expression_Access) is null;
procedure Allocator
(Self : in out Element_Visitor;
Element : not null Program.Elements.Allocators.Allocator_Access) is null;
procedure Case_Expression
(Self : in out Element_Visitor;
Element : not null Program.Elements.Case_Expressions
.Case_Expression_Access) is null;
procedure If_Expression
(Self : in out Element_Visitor;
Element : not null Program.Elements.If_Expressions.If_Expression_Access)
is null;
procedure Quantified_Expression
(Self : in out Element_Visitor;
Element : not null Program.Elements.Quantified_Expressions
.Quantified_Expression_Access) is null;
procedure Discriminant_Association
(Self : in out Element_Visitor;
Element : not null Program.Elements.Discriminant_Associations
.Discriminant_Association_Access) is null;
procedure Record_Component_Association
(Self : in out Element_Visitor;
Element : not null Program.Elements.Record_Component_Associations
.Record_Component_Association_Access) is null;
procedure Array_Component_Association
(Self : in out Element_Visitor;
Element : not null Program.Elements.Array_Component_Associations
.Array_Component_Association_Access) is null;
procedure Parameter_Association
(Self : in out Element_Visitor;
Element : not null Program.Elements.Parameter_Associations
.Parameter_Association_Access) is null;
procedure Formal_Package_Association
(Self : in out Element_Visitor;
Element : not null Program.Elements.Formal_Package_Associations
.Formal_Package_Association_Access) is null;
procedure Null_Statement
(Self : in out Element_Visitor;
Element : not null Program.Elements.Null_Statements.Null_Statement_Access)
is null;
procedure Assignment_Statement
(Self : in out Element_Visitor;
Element : not null Program.Elements.Assignment_Statements
.Assignment_Statement_Access) is null;
procedure If_Statement
(Self : in out Element_Visitor;
Element : not null Program.Elements.If_Statements.If_Statement_Access)
is null;
procedure Case_Statement
(Self : in out Element_Visitor;
Element : not null Program.Elements.Case_Statements.Case_Statement_Access)
is null;
procedure Loop_Statement
(Self : in out Element_Visitor;
Element : not null Program.Elements.Loop_Statements.Loop_Statement_Access)
is null;
procedure While_Loop_Statement
(Self : in out Element_Visitor;
Element : not null Program.Elements.While_Loop_Statements
.While_Loop_Statement_Access) is null;
procedure For_Loop_Statement
(Self : in out Element_Visitor;
Element : not null Program.Elements.For_Loop_Statements
.For_Loop_Statement_Access) is null;
procedure Block_Statement
(Self : in out Element_Visitor;
Element : not null Program.Elements.Block_Statements
.Block_Statement_Access) is null;
procedure Exit_Statement
(Self : in out Element_Visitor;
Element : not null Program.Elements.Exit_Statements.Exit_Statement_Access)
is null;
procedure Goto_Statement
(Self : in out Element_Visitor;
Element : not null Program.Elements.Goto_Statements.Goto_Statement_Access)
is null;
procedure Call_Statement
(Self : in out Element_Visitor;
Element : not null Program.Elements.Call_Statements.Call_Statement_Access)
is null;
procedure Simple_Return_Statement
(Self : in out Element_Visitor;
Element : not null Program.Elements.Simple_Return_Statements
.Simple_Return_Statement_Access) is null;
procedure Extended_Return_Statement
(Self : in out Element_Visitor;
Element : not null Program.Elements.Extended_Return_Statements
.Extended_Return_Statement_Access) is null;
procedure Accept_Statement
(Self : in out Element_Visitor;
Element : not null Program.Elements.Accept_Statements
.Accept_Statement_Access) is null;
procedure Requeue_Statement
(Self : in out Element_Visitor;
Element : not null Program.Elements.Requeue_Statements
.Requeue_Statement_Access) is null;
procedure Delay_Statement
(Self : in out Element_Visitor;
Element : not null Program.Elements.Delay_Statements
.Delay_Statement_Access) is null;
procedure Terminate_Alternative_Statement
(Self : in out Element_Visitor;
Element : not null Program.Elements.Terminate_Alternative_Statements
.Terminate_Alternative_Statement_Access) is null;
procedure Select_Statement
(Self : in out Element_Visitor;
Element : not null Program.Elements.Select_Statements
.Select_Statement_Access) is null;
procedure Abort_Statement
(Self : in out Element_Visitor;
Element : not null Program.Elements.Abort_Statements
.Abort_Statement_Access) is null;
procedure Raise_Statement
(Self : in out Element_Visitor;
Element : not null Program.Elements.Raise_Statements
.Raise_Statement_Access) is null;
procedure Code_Statement
(Self : in out Element_Visitor;
Element : not null Program.Elements.Code_Statements.Code_Statement_Access)
is null;
procedure Elsif_Path
(Self : in out Element_Visitor;
Element : not null Program.Elements.Elsif_Paths.Elsif_Path_Access)
is null;
procedure Case_Path
(Self : in out Element_Visitor;
Element : not null Program.Elements.Case_Paths.Case_Path_Access) is null;
procedure Select_Path
(Self : in out Element_Visitor;
Element : not null Program.Elements.Select_Paths.Select_Path_Access)
is null;
procedure Case_Expression_Path
(Self : in out Element_Visitor;
Element : not null Program.Elements.Case_Expression_Paths
.Case_Expression_Path_Access) is null;
procedure Elsif_Expression_Path
(Self : in out Element_Visitor;
Element : not null Program.Elements.Elsif_Expression_Paths
.Elsif_Expression_Path_Access) is null;
procedure Use_Clause
(Self : in out Element_Visitor;
Element : not null Program.Elements.Use_Clauses.Use_Clause_Access)
is null;
procedure With_Clause
(Self : in out Element_Visitor;
Element : not null Program.Elements.With_Clauses.With_Clause_Access)
is null;
procedure Component_Clause
(Self : in out Element_Visitor;
Element : not null Program.Elements.Component_Clauses
.Component_Clause_Access) is null;
procedure Derived_Type
(Self : in out Element_Visitor;
Element : not null Program.Elements.Derived_Types.Derived_Type_Access)
is null;
procedure Derived_Record_Extension
(Self : in out Element_Visitor;
Element : not null Program.Elements.Derived_Record_Extensions
.Derived_Record_Extension_Access) is null;
procedure Enumeration_Type
(Self : in out Element_Visitor;
Element : not null Program.Elements.Enumeration_Types
.Enumeration_Type_Access) is null;
procedure Signed_Integer_Type
(Self : in out Element_Visitor;
Element : not null Program.Elements.Signed_Integer_Types
.Signed_Integer_Type_Access) is null;
procedure Modular_Type
(Self : in out Element_Visitor;
Element : not null Program.Elements.Modular_Types.Modular_Type_Access)
is null;
procedure Root_Type
(Self : in out Element_Visitor;
Element : not null Program.Elements.Root_Types.Root_Type_Access) is null;
procedure Floating_Point_Type
(Self : in out Element_Visitor;
Element : not null Program.Elements.Floating_Point_Types
.Floating_Point_Type_Access) is null;
procedure Ordinary_Fixed_Point_Type
(Self : in out Element_Visitor;
Element : not null Program.Elements.Ordinary_Fixed_Point_Types
.Ordinary_Fixed_Point_Type_Access) is null;
procedure Decimal_Fixed_Point_Type
(Self : in out Element_Visitor;
Element : not null Program.Elements.Decimal_Fixed_Point_Types
.Decimal_Fixed_Point_Type_Access) is null;
procedure Unconstrained_Array_Type
(Self : in out Element_Visitor;
Element : not null Program.Elements.Unconstrained_Array_Types
.Unconstrained_Array_Type_Access) is null;
procedure Constrained_Array_Type
(Self : in out Element_Visitor;
Element : not null Program.Elements.Constrained_Array_Types
.Constrained_Array_Type_Access) is null;
procedure Record_Type
(Self : in out Element_Visitor;
Element : not null Program.Elements.Record_Types.Record_Type_Access)
is null;
procedure Interface_Type
(Self : in out Element_Visitor;
Element : not null Program.Elements.Interface_Types.Interface_Type_Access)
is null;
procedure Object_Access_Type
(Self : in out Element_Visitor;
Element : not null Program.Elements.Object_Access_Types
.Object_Access_Type_Access) is null;
procedure Procedure_Access_Type
(Self : in out Element_Visitor;
Element : not null Program.Elements.Procedure_Access_Types
.Procedure_Access_Type_Access) is null;
procedure Function_Access_Type
(Self : in out Element_Visitor;
Element : not null Program.Elements.Function_Access_Types
.Function_Access_Type_Access) is null;
procedure Formal_Private_Type_Definition
(Self : in out Element_Visitor;
Element : not null Program.Elements.Formal_Private_Type_Definitions
.Formal_Private_Type_Definition_Access) is null;
procedure Formal_Derived_Type_Definition
(Self : in out Element_Visitor;
Element : not null Program.Elements.Formal_Derived_Type_Definitions
.Formal_Derived_Type_Definition_Access) is null;
procedure Formal_Discrete_Type_Definition
(Self : in out Element_Visitor;
Element : not null Program.Elements.Formal_Discrete_Type_Definitions
.Formal_Discrete_Type_Definition_Access) is null;
procedure Formal_Signed_Integer_Type_Definition
(Self : in out Element_Visitor;
Element : not null Program.Elements.Formal_Signed_Integer_Type_Definitions
.Formal_Signed_Integer_Type_Definition_Access) is null;
procedure Formal_Modular_Type_Definition
(Self : in out Element_Visitor;
Element : not null Program.Elements.Formal_Modular_Type_Definitions
.Formal_Modular_Type_Definition_Access) is null;
procedure Formal_Floating_Point_Definition
(Self : in out Element_Visitor;
Element : not null Program.Elements.Formal_Floating_Point_Definitions
.Formal_Floating_Point_Definition_Access) is null;
procedure Formal_Ordinary_Fixed_Point_Definition
(Self : in out Element_Visitor;
Element : not null Program.Elements
.Formal_Ordinary_Fixed_Point_Definitions
.Formal_Ordinary_Fixed_Point_Definition_Access) is null;
procedure Formal_Decimal_Fixed_Point_Definition
(Self : in out Element_Visitor;
Element : not null Program.Elements.Formal_Decimal_Fixed_Point_Definitions
.Formal_Decimal_Fixed_Point_Definition_Access) is null;
procedure Formal_Unconstrained_Array_Type
(Self : in out Element_Visitor;
Element : not null Program.Elements.Formal_Unconstrained_Array_Types
.Formal_Unconstrained_Array_Type_Access) is null;
procedure Formal_Constrained_Array_Type
(Self : in out Element_Visitor;
Element : not null Program.Elements.Formal_Constrained_Array_Types
.Formal_Constrained_Array_Type_Access) is null;
procedure Formal_Object_Access_Type
(Self : in out Element_Visitor;
Element : not null Program.Elements.Formal_Object_Access_Types
.Formal_Object_Access_Type_Access) is null;
procedure Formal_Procedure_Access_Type
(Self : in out Element_Visitor;
Element : not null Program.Elements.Formal_Procedure_Access_Types
.Formal_Procedure_Access_Type_Access) is null;
procedure Formal_Function_Access_Type
(Self : in out Element_Visitor;
Element : not null Program.Elements.Formal_Function_Access_Types
.Formal_Function_Access_Type_Access) is null;
procedure Formal_Interface_Type
(Self : in out Element_Visitor;
Element : not null Program.Elements.Formal_Interface_Types
.Formal_Interface_Type_Access) is null;
procedure Range_Attribute_Reference
(Self : in out Element_Visitor;
Element : not null Program.Elements.Range_Attribute_References
.Range_Attribute_Reference_Access) is null;
procedure Simple_Expression_Range
(Self : in out Element_Visitor;
Element : not null Program.Elements.Simple_Expression_Ranges
.Simple_Expression_Range_Access) is null;
procedure Digits_Constraint
(Self : in out Element_Visitor;
Element : not null Program.Elements.Digits_Constraints
.Digits_Constraint_Access) is null;
procedure Delta_Constraint
(Self : in out Element_Visitor;
Element : not null Program.Elements.Delta_Constraints
.Delta_Constraint_Access) is null;
procedure Index_Constraint
(Self : in out Element_Visitor;
Element : not null Program.Elements.Index_Constraints
.Index_Constraint_Access) is null;
procedure Discriminant_Constraint
(Self : in out Element_Visitor;
Element : not null Program.Elements.Discriminant_Constraints
.Discriminant_Constraint_Access) is null;
procedure Attribute_Definition_Clause
(Self : in out Element_Visitor;
Element : not null Program.Elements.Attribute_Definition_Clauses
.Attribute_Definition_Clause_Access) is null;
procedure Enumeration_Representation_Clause
(Self : in out Element_Visitor;
Element : not null Program.Elements.Enumeration_Representation_Clauses
.Enumeration_Representation_Clause_Access) is null;
procedure Record_Representation_Clause
(Self : in out Element_Visitor;
Element : not null Program.Elements.Record_Representation_Clauses
.Record_Representation_Clause_Access) is null;
procedure At_Clause
(Self : in out Element_Visitor;
Element : not null Program.Elements.At_Clauses.At_Clause_Access) is null;
procedure Exception_Handler
(Self : in out Element_Visitor;
Element : not null Program.Elements.Exception_Handlers
.Exception_Handler_Access) is null;
end Program.Element_Visitors;
|
oeis/098/A098264.asm | neoneye/loda-programs | 11 | 103307 | <filename>oeis/098/A098264.asm
; A098264: G.f.: 1/(1-2x-19x^2)^(1/2).
; Submitted by <NAME>
; 1,1,11,31,211,851,4901,22961,124531,623011,3313201,17086301,90453661,473616781,2509264811,13250049551,70368250451,373539254611,1989045489281,10597110956861,56566637447401,302196871378601,1616570627763311,8654955238504531,46384344189261661,248779698161275501,1335397234466320751,7173082382162411011,38556368296434112531,207372166214039554211,1115983891265450990101,6008940390619195364401,32371179892636248160211,174471589409631118544531,940774302444947427615761,5074916389352087859578701
mov $1,1
mov $3,$0
mov $4,1
lpb $3
mul $1,$3
sub $3,1
mul $1,$3
add $5,$4
div $1,$5
mul $1,5
add $2,$1
sub $3,1
add $4,2
lpe
mov $0,$2
add $0,1
|
release/src/router/gmp/source/mpn/arm/invert_limb.asm | zhoutao0712/rtn11pb1 | 12 | 87990 | dnl ARM mpn_invert_limb -- Invert a normalized limb.
dnl Copyright 2001 Free Software Foundation, Inc.
dnl This file is part of the GNU MP Library.
dnl The GNU MP Library is free software; you can redistribute it and/or modify
dnl it under the terms of the GNU Lesser General Public License as published
dnl by the Free Software Foundation; either version 3 of the License, or (at
dnl your option) any later version.
dnl The GNU MP Library is distributed in the hope that it will be useful, but
dnl WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
dnl or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
dnl License for more details.
dnl You should have received a copy of the GNU Lesser General Public License
dnl along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
include(`../config.m4')
C INPUT PARAMETERS
define(`d',`r0') C number to be inverted
PROLOGUE(mpn_invert_limb)
stmfd sp!, {r4, lr}
mov r3, d, lsr #23
sub r3, r3, #256
add r2, pc, #invtab-.-8
mov r3, r3, lsl #1
ldrh r1, [r2, r3] C get initial approximation from table
mov r2, r1, lsl #6 C start iteration 1
mul ip, r2, r2
umull lr, r4, ip, d
mov r2, r4, lsl #1
rsb r2, r2, r1, lsl #23 C iteration 1 complete
umull ip, r3, r2, r2 C start iteration 2
umull lr, r4, r3, d
umull r3, r1, ip, d
adds lr, lr, r1
addcs r4, r4, #1
mov r3, lr, lsr #30
orr r4, r3, r4, lsl #2
mov lr, lr, lsl #2
cmn lr, #1
rsc r2, r4, r2, lsl #2 C iteration 2 complete
umull ip, r1, d, r2 C start adjustment step
add r1, r1, d
cmn r1, #1
beq L(1)
adds ip, ip, d
adc r1, r1, #0
add r2, r2, #1
L(1):
adds r3, ip, d
adcs r1, r1, #0
moveq r0, r2
addne r0, r2, #1
ldmfd sp!, {r4, pc}
invtab:
.short 1023,1020,1016,1012,1008,1004,1000,996
.short 992,989,985,981,978,974,970,967
.short 963,960,956,953,949,946,942,939
.short 936,932,929,926,923,919,916,913
.short 910,907,903,900,897,894,891,888
.short 885,882,879,876,873,870,868,865
.short 862,859,856,853,851,848,845,842
.short 840,837,834,832,829,826,824,821
.short 819,816,814,811,809,806,804,801
.short 799,796,794,791,789,787,784,782
.short 780,777,775,773,771,768,766,764
.short 762,759,757,755,753,751,748,746
.short 744,742,740,738,736,734,732,730
.short 728,726,724,722,720,718,716,714
.short 712,710,708,706,704,702,700,699
.short 697,695,693,691,689,688,686,684
.short 682,680,679,677,675,673,672,670
.short 668,667,665,663,661,660,658,657
.short 655,653,652,650,648,647,645,644
.short 642,640,639,637,636,634,633,631
.short 630,628,627,625,624,622,621,619
.short 618,616,615,613,612,611,609,608
.short 606,605,604,602,601,599,598,597
.short 595,594,593,591,590,589,587,586
.short 585,583,582,581,579,578,577,576
.short 574,573,572,571,569,568,567,566
.short 564,563,562,561,560,558,557,556
.short 555,554,553,551,550,549,548,547
.short 546,544,543,542,541,540,539,538
.short 537,536,534,533,532,531,530,529
.short 528,527,526,525,524,523,522,521
.short 520,519,518,517,516,515,514,513
EPILOGUE(mpn_invert_limb)
|
pcb/gerbers/modular_backplane/modular_backplane-PWR_PLANE2.g4 | smithjd8/robot | 0 | 1539 | G04 #@! TF.GenerationSoftware,KiCad,Pcbnew,(5.0.2)-1*
G04 #@! TF.CreationDate,2019-01-24T17:57:41-05:00*
G04 #@! TF.ProjectId,modular_backplane,6d6f6475-6c61-4725-9f62-61636b706c61,rev?*
G04 #@! TF.SameCoordinates,Original*
G04 #@! TF.FileFunction,Copper,L4,Inr*
G04 #@! TF.FilePolarity,Positive*
%FSLAX46Y46*%
G04 Gerber Fmt 4.6, Leading zero omitted, Abs format (unit mm)*
G04 Created by KiCad (PCBNEW (5.0.2)-1) date 1/24/2019 5:57:41 PM*
%MOMM*%
%LPD*%
G01*
G04 APERTURE LIST*
G04 #@! TA.AperFunction,ViaPad*
%ADD10R,4.000000X2.000000*%
G04 #@! TD*
G04 #@! TA.AperFunction,ViaPad*
%ADD11R,4.500000X2.000000*%
G04 #@! TD*
G04 #@! TA.AperFunction,ViaPad*
%ADD12C,2.020000*%
G04 #@! TD*
G04 #@! TA.AperFunction,ViaPad*
%ADD13O,6.230000X2.270000*%
G04 #@! TD*
G04 #@! TA.AperFunction,ViaPad*
%ADD14C,2.000000*%
G04 #@! TD*
G04 #@! TA.AperFunction,ViaPad*
%ADD15C,4.200000*%
G04 #@! TD*
G04 #@! TA.AperFunction,ViaPad*
%ADD16C,0.800000*%
G04 #@! TD*
G04 #@! TA.AperFunction,Conductor*
%ADD17C,0.254000*%
G04 #@! TD*
G04 APERTURE END LIST*
D10*
G04 #@! TO.N,GND*
G04 #@! TO.C,barrelJack1*
X45085000Y-2715000D03*
D11*
G04 #@! TO.N,+5V*
X45085000Y-8715000D03*
G04 #@! TD*
D12*
G04 #@! TO.N,Net-(C3-Pad1)*
G04 #@! TO.C,L1*
X29885000Y-22987000D03*
G04 #@! TO.N,+5V*
X34885000Y-22987000D03*
G04 #@! TD*
G04 #@! TO.N,Net-(C8-Pad1)*
G04 #@! TO.C,L2*
X16042000Y-23241000D03*
G04 #@! TO.N,+3V3*
X21042000Y-23241000D03*
G04 #@! TD*
D10*
G04 #@! TO.N,GND*
G04 #@! TO.C,barrelJack2*
X55245000Y-2715000D03*
D11*
G04 #@! TO.N,+12V*
X55245000Y-8715000D03*
G04 #@! TD*
D10*
G04 #@! TO.N,GND*
G04 #@! TO.C,barrelJack3*
X34925000Y-2715000D03*
D11*
G04 #@! TO.N,+3V3*
X34925000Y-8715000D03*
G04 #@! TD*
D13*
G04 #@! TO.N,GND*
G04 #@! TO.C,lipoGnd1*
X23495000Y-116205000D03*
G04 #@! TD*
G04 #@! TO.N,GND*
G04 #@! TO.C,LipoGnd2*
X55880000Y-116205000D03*
G04 #@! TD*
G04 #@! TO.N,liPo1*
G04 #@! TO.C,lipoIn1*
X7620000Y-116205000D03*
G04 #@! TD*
G04 #@! TO.N,liPo2*
G04 #@! TO.C,lipoIn2*
X40005000Y-116205000D03*
G04 #@! TD*
D14*
G04 #@! TO.N,sda*
G04 #@! TO.C,I2C1*
X3810000Y-13843000D03*
G04 #@! TO.N,scl*
X3810000Y-11303000D03*
G04 #@! TD*
D12*
G04 #@! TO.N,scl*
G04 #@! TO.C,Card1*
X6350000Y-17780000D03*
G04 #@! TO.N,sda*
X3810000Y-17780000D03*
G04 #@! TO.N,+5V*
X6350000Y-20320000D03*
G04 #@! TO.N,+3V3*
X3810000Y-20320000D03*
G04 #@! TO.N,+15V*
X6350000Y-22860000D03*
X3810000Y-22860000D03*
G04 #@! TO.N,header2Gpio6*
X6350000Y-25400000D03*
G04 #@! TO.N,GND*
X3810000Y-25400000D03*
G04 #@! TO.N,header2Gpio5*
X6350000Y-27940000D03*
G04 #@! TO.N,GND*
X3810000Y-27940000D03*
G04 #@! TO.N,header2Gpio4*
X6350000Y-30480000D03*
G04 #@! TO.N,header2Gpio2*
X3810000Y-30480000D03*
G04 #@! TO.N,header2Gpio3*
X6350000Y-33020000D03*
G04 #@! TO.N,header2Gpio1*
X3810000Y-33020000D03*
G04 #@! TD*
G04 #@! TO.N,scl*
G04 #@! TO.C,Card2*
X6350000Y-43180000D03*
G04 #@! TO.N,sda*
X3810000Y-43180000D03*
G04 #@! TO.N,+5V*
X6350000Y-45720000D03*
G04 #@! TO.N,+3V3*
X3810000Y-45720000D03*
G04 #@! TO.N,+15V*
X6350000Y-48260000D03*
X3810000Y-48260000D03*
G04 #@! TO.N,header3Gpio6*
X6350000Y-50800000D03*
G04 #@! TO.N,GND*
X3810000Y-50800000D03*
G04 #@! TO.N,header3Gpio5*
X6350000Y-53340000D03*
G04 #@! TO.N,GND*
X3810000Y-53340000D03*
G04 #@! TO.N,header3Gpio4*
X6350000Y-55880000D03*
G04 #@! TO.N,header3Gpio2*
X3810000Y-55880000D03*
G04 #@! TO.N,header3Gpio3*
X6350000Y-58420000D03*
G04 #@! TO.N,header3Gpio1*
X3810000Y-58420000D03*
G04 #@! TD*
G04 #@! TO.N,scl*
G04 #@! TO.C,Card3*
X6350000Y-68580000D03*
G04 #@! TO.N,sda*
X3810000Y-68580000D03*
G04 #@! TO.N,+5V*
X6350000Y-71120000D03*
G04 #@! TO.N,+3V3*
X3810000Y-71120000D03*
G04 #@! TO.N,+15V*
X6350000Y-73660000D03*
X3810000Y-73660000D03*
G04 #@! TO.N,header4Gpio6*
X6350000Y-76200000D03*
G04 #@! TO.N,GND*
X3810000Y-76200000D03*
G04 #@! TO.N,header4Gpio5*
X6350000Y-78740000D03*
G04 #@! TO.N,GND*
X3810000Y-78740000D03*
G04 #@! TO.N,header4Gpio4*
X6350000Y-81280000D03*
G04 #@! TO.N,header4Gpio2*
X3810000Y-81280000D03*
G04 #@! TO.N,header4Gpio3*
X6350000Y-83820000D03*
G04 #@! TO.N,header4Gpio1*
X3810000Y-83820000D03*
G04 #@! TD*
G04 #@! TO.N,scl*
G04 #@! TO.C,Card4*
X6350000Y-93980000D03*
G04 #@! TO.N,sda*
X3810000Y-93980000D03*
G04 #@! TO.N,+5V*
X6350000Y-96520000D03*
G04 #@! TO.N,+3V3*
X3810000Y-96520000D03*
G04 #@! TO.N,+15V*
X6350000Y-99060000D03*
X3810000Y-99060000D03*
G04 #@! TO.N,header5Gpio6*
X6350000Y-101600000D03*
G04 #@! TO.N,GND*
X3810000Y-101600000D03*
G04 #@! TO.N,header5Gpio5*
X6350000Y-104140000D03*
G04 #@! TO.N,GND*
X3810000Y-104140000D03*
G04 #@! TO.N,header5Gpio4*
X6350000Y-106680000D03*
G04 #@! TO.N,header5Gpio2*
X3810000Y-106680000D03*
G04 #@! TO.N,header5Gpio3*
X6350000Y-109220000D03*
G04 #@! TO.N,header5Gpio1*
X3810000Y-109220000D03*
G04 #@! TD*
G04 #@! TO.N,scl*
G04 #@! TO.C,Card8*
X57150000Y-33020000D03*
G04 #@! TO.N,sda*
X59690000Y-33020000D03*
G04 #@! TO.N,+5V*
X57150000Y-30480000D03*
G04 #@! TO.N,+3V3*
X59690000Y-30480000D03*
G04 #@! TO.N,+15V*
X57150000Y-27940000D03*
X59690000Y-27940000D03*
G04 #@! TO.N,header6Gpio6*
X57150000Y-25400000D03*
G04 #@! TO.N,GND*
X59690000Y-25400000D03*
G04 #@! TO.N,header6Gpio5*
X57150000Y-22860000D03*
G04 #@! TO.N,GND*
X59690000Y-22860000D03*
G04 #@! TO.N,header6Gpio4*
X57150000Y-20320000D03*
G04 #@! TO.N,header6Gpio2*
X59690000Y-20320000D03*
G04 #@! TO.N,header6Gpio3*
X57150000Y-17780000D03*
G04 #@! TO.N,header6Gpio1*
X59690000Y-17780000D03*
G04 #@! TD*
G04 #@! TO.N,scl*
G04 #@! TO.C,Card7*
X57150000Y-58420000D03*
G04 #@! TO.N,sda*
X59690000Y-58420000D03*
G04 #@! TO.N,+5V*
X57150000Y-55880000D03*
G04 #@! TO.N,+3V3*
X59690000Y-55880000D03*
G04 #@! TO.N,+15V*
X57150000Y-53340000D03*
X59690000Y-53340000D03*
G04 #@! TO.N,header7Gpio6*
X57150000Y-50800000D03*
G04 #@! TO.N,GND*
X59690000Y-50800000D03*
G04 #@! TO.N,header7Gpio5*
X57150000Y-48260000D03*
G04 #@! TO.N,GND*
X59690000Y-48260000D03*
G04 #@! TO.N,header7Gpio4*
X57150000Y-45720000D03*
G04 #@! TO.N,header7Gpio2*
X59690000Y-45720000D03*
G04 #@! TO.N,header7Gpio3*
X57150000Y-43180000D03*
G04 #@! TO.N,header7Gpio1*
X59690000Y-43180000D03*
G04 #@! TD*
G04 #@! TO.N,scl*
G04 #@! TO.C,Card6*
X57150000Y-83820000D03*
G04 #@! TO.N,sda*
X59690000Y-83820000D03*
G04 #@! TO.N,+5V*
X57150000Y-81280000D03*
G04 #@! TO.N,+3V3*
X59690000Y-81280000D03*
G04 #@! TO.N,+15V*
X57150000Y-78740000D03*
X59690000Y-78740000D03*
G04 #@! TO.N,header8Gpio6*
X57150000Y-76200000D03*
G04 #@! TO.N,GND*
X59690000Y-76200000D03*
G04 #@! TO.N,header8Gpio5*
X57150000Y-73660000D03*
G04 #@! TO.N,GND*
X59690000Y-73660000D03*
G04 #@! TO.N,header8Gpio4*
X57150000Y-71120000D03*
G04 #@! TO.N,header8Gpio2*
X59690000Y-71120000D03*
G04 #@! TO.N,header8Gpio3*
X57150000Y-68580000D03*
G04 #@! TO.N,header8Gpio1*
X59690000Y-68580000D03*
G04 #@! TD*
G04 #@! TO.N,scl*
G04 #@! TO.C,Card5*
X57150000Y-109220000D03*
G04 #@! TO.N,sda*
X59690000Y-109220000D03*
G04 #@! TO.N,+5V*
X57150000Y-106680000D03*
G04 #@! TO.N,+3V3*
X59690000Y-106680000D03*
G04 #@! TO.N,+15V*
X57150000Y-104140000D03*
X59690000Y-104140000D03*
G04 #@! TO.N,header9Gpio6*
X57150000Y-101600000D03*
G04 #@! TO.N,GND*
X59690000Y-101600000D03*
G04 #@! TO.N,header9Gpio5*
X57150000Y-99060000D03*
G04 #@! TO.N,GND*
X59690000Y-99060000D03*
G04 #@! TO.N,header9Gpio4*
X57150000Y-96520000D03*
G04 #@! TO.N,header9Gpio2*
X59690000Y-96520000D03*
G04 #@! TO.N,header9Gpio3*
X57150000Y-93980000D03*
G04 #@! TO.N,header9Gpio1*
X59690000Y-93980000D03*
G04 #@! TD*
G04 #@! TO.N,Net-(C13-Pad1)*
G04 #@! TO.C,L3*
X43601000Y-22987000D03*
G04 #@! TO.N,+12V*
X48601000Y-22987000D03*
G04 #@! TD*
G04 #@! TO.N,header6Gpio2*
G04 #@! TO.C,CentralHub1*
X33020000Y-44450000D03*
G04 #@! TO.N,header2Gpio6*
X30480000Y-44450000D03*
G04 #@! TO.N,header6Gpio1*
X33020000Y-46990000D03*
G04 #@! TO.N,header2Gpio5*
X30480000Y-46990000D03*
G04 #@! TO.N,header6Gpio3*
X33020000Y-49530000D03*
G04 #@! TO.N,header2Gpio4*
X30480000Y-49530000D03*
G04 #@! TO.N,header6Gpio4*
X33020000Y-52070000D03*
G04 #@! TO.N,header2Gpio3*
X30480000Y-52070000D03*
G04 #@! TO.N,header6Gpio5*
X33020000Y-54610000D03*
G04 #@! TO.N,header2Gpio1*
X30480000Y-54610000D03*
G04 #@! TO.N,header6Gpio6*
X33020000Y-57150000D03*
G04 #@! TO.N,header2Gpio2*
X30480000Y-57150000D03*
G04 #@! TO.N,header7Gpio2*
X33020000Y-59690000D03*
G04 #@! TO.N,header3Gpio6*
X30480000Y-59690000D03*
G04 #@! TO.N,header7Gpio1*
X33020000Y-62230000D03*
G04 #@! TO.N,header3Gpio5*
X30480000Y-62230000D03*
G04 #@! TO.N,header7Gpio3*
X33020000Y-64770000D03*
G04 #@! TO.N,header3Gpio4*
X30480000Y-64770000D03*
G04 #@! TO.N,header7Gpio4*
X33020000Y-67310000D03*
G04 #@! TO.N,header3Gpio3*
X30480000Y-67310000D03*
G04 #@! TO.N,header7Gpio5*
X33020000Y-69850000D03*
G04 #@! TO.N,header3Gpio1*
X30480000Y-69850000D03*
G04 #@! TO.N,header7Gpio6*
X33020000Y-72390000D03*
G04 #@! TO.N,header3Gpio2*
X30480000Y-72390000D03*
G04 #@! TO.N,header8Gpio2*
X33020000Y-74930000D03*
G04 #@! TO.N,header4Gpio6*
X30480000Y-74930000D03*
G04 #@! TO.N,header8Gpio1*
X33020000Y-77470000D03*
G04 #@! TO.N,header4Gpio5*
X30480000Y-77470000D03*
G04 #@! TO.N,header8Gpio3*
X33020000Y-80010000D03*
G04 #@! TO.N,header4Gpio4*
X30480000Y-80010000D03*
G04 #@! TO.N,header8Gpio4*
X33020000Y-82550000D03*
G04 #@! TO.N,header4Gpio3*
X30480000Y-82550000D03*
G04 #@! TO.N,header8Gpio5*
X33020000Y-85090000D03*
G04 #@! TO.N,header4Gpio1*
X30480000Y-85090000D03*
G04 #@! TO.N,header8Gpio6*
X33020000Y-87630000D03*
G04 #@! TO.N,header4Gpio2*
X30480000Y-87630000D03*
G04 #@! TO.N,header9Gpio2*
X33020000Y-90170000D03*
G04 #@! TO.N,header5Gpio6*
X30480000Y-90170000D03*
G04 #@! TO.N,header9Gpio1*
X33020000Y-92710000D03*
G04 #@! TO.N,header5Gpio5*
X30480000Y-92710000D03*
G04 #@! TO.N,header9Gpio3*
X33020000Y-95250000D03*
G04 #@! TO.N,header5Gpio4*
X30480000Y-95250000D03*
G04 #@! TO.N,header9Gpio4*
X33020000Y-97790000D03*
G04 #@! TO.N,header5Gpio3*
X30480000Y-97790000D03*
G04 #@! TO.N,header9Gpio5*
X33020000Y-100330000D03*
G04 #@! TO.N,header5Gpio1*
X30480000Y-100330000D03*
G04 #@! TO.N,header9Gpio6*
X33020000Y-102870000D03*
G04 #@! TO.N,header5Gpio2*
X30480000Y-102870000D03*
G04 #@! TD*
D15*
G04 #@! TO.N,GND*
G04 #@! TO.C,U6*
X3810000Y-38100000D03*
G04 #@! TD*
G04 #@! TO.N,GND*
G04 #@! TO.C,U7*
X59690000Y-38100000D03*
G04 #@! TD*
G04 #@! TO.N,GND*
G04 #@! TO.C,U8*
X3810000Y-88900000D03*
G04 #@! TD*
G04 #@! TO.N,GND*
G04 #@! TO.C,U9*
X59690000Y-88900000D03*
G04 #@! TD*
D14*
G04 #@! TO.N,monitor1*
G04 #@! TO.C,LipoMonitor1*
X3810000Y-4826000D03*
G04 #@! TO.N,monitorEna1*
X3810000Y-7366000D03*
G04 #@! TD*
D16*
G04 #@! TO.N,GND*
X12192000Y-40513000D03*
X12192000Y-38481000D03*
X12827000Y-16383000D03*
X14351000Y-16383000D03*
X15621000Y-16383000D03*
X41148000Y-38227000D03*
X41148000Y-40259000D03*
X27305000Y-40132000D03*
X27305000Y-38227000D03*
X44577000Y-16256000D03*
X43180000Y-16256000D03*
X41783000Y-16256000D03*
X29464000Y-16383000D03*
X28123000Y-16383000D03*
X26670000Y-16383000D03*
X17145000Y-33020000D03*
X46482000Y-32004000D03*
X44831000Y-32004000D03*
X46482000Y-30607000D03*
X44831000Y-30607000D03*
X17907000Y-32131000D03*
X16383000Y-32131000D03*
X17907000Y-30480000D03*
X16383000Y-30480000D03*
X32893000Y-32131000D03*
X31369000Y-32131000D03*
X32893000Y-30480000D03*
X31369000Y-30480000D03*
X45593000Y-29464000D03*
X45720000Y-33020000D03*
X32131000Y-29464000D03*
X32131000Y-33020000D03*
X17145000Y-29464000D03*
X22860000Y-109855000D03*
X24130000Y-109855000D03*
X25400000Y-109855000D03*
X26670000Y-109855000D03*
X22860000Y-111760000D03*
X24130000Y-111760000D03*
X25400000Y-111760000D03*
X26670000Y-111760000D03*
X50800000Y-110490000D03*
X52705000Y-110490000D03*
X43815000Y-37592000D03*
X43815000Y-35052000D03*
X43815000Y-39497000D03*
X43815000Y-42037000D03*
X30226000Y-41910000D03*
X30226000Y-39433500D03*
X30226000Y-37528500D03*
X15240000Y-35052000D03*
X15240000Y-37592000D03*
X15240000Y-39497000D03*
X10414000Y-6096000D03*
X10414000Y-12954000D03*
X10414000Y-9398000D03*
X30226000Y-34544000D03*
X15240000Y-42164000D03*
X24892000Y-32893000D03*
G04 #@! TO.N,+5V*
X37846000Y-37846000D03*
X36449000Y-16383000D03*
X35052000Y-16383000D03*
X33655000Y-16383000D03*
G04 #@! TO.N,+15V*
X12192000Y-36068000D03*
X12192000Y-34163000D03*
X41148000Y-33782000D03*
X41148000Y-35814000D03*
X27305000Y-35687000D03*
X27305000Y-33909000D03*
X18796000Y-10922000D03*
X18796000Y-12446000D03*
X41211500Y-28956000D03*
X22860000Y-105410000D03*
X22860000Y-107315000D03*
X24765000Y-105410000D03*
X24765000Y-107315000D03*
X26670000Y-105410000D03*
X26670000Y-107315000D03*
X50800000Y-106045000D03*
X50800000Y-107950000D03*
X52705000Y-106045000D03*
X52705000Y-107950000D03*
X13970000Y-27178000D03*
X15240000Y-27178000D03*
X16510000Y-27178000D03*
X17780000Y-27178000D03*
X19177000Y-27178000D03*
X12446000Y-27178000D03*
X27432000Y-27114500D03*
X27432000Y-28638500D03*
X27432000Y-30226000D03*
X41211500Y-30353000D03*
X41211500Y-27559000D03*
X41211500Y-26479500D03*
X12446000Y-28829000D03*
X12446000Y-30353000D03*
G04 #@! TO.N,+3V3*
X48768000Y-26670000D03*
X35052000Y-27114500D03*
X57150000Y-64008000D03*
X3556000Y-63754000D03*
X22860000Y-37846000D03*
X20066000Y-16383000D03*
X21590000Y-16383000D03*
X22987000Y-16383000D03*
G04 #@! TO.N,Net-(C3-Pad2)*
X29337000Y-29337000D03*
G04 #@! TO.N,Net-(C3-Pad1)*
X29337000Y-31877000D03*
G04 #@! TO.N,Net-(C4-Pad1)*
X34925000Y-29337000D03*
X34925000Y-29337000D03*
X34925000Y-29337000D03*
G04 #@! TO.N,Net-(C8-Pad1)*
X14351000Y-31877000D03*
G04 #@! TO.N,Net-(C8-Pad2)*
X14351000Y-29337000D03*
G04 #@! TO.N,Net-(C9-Pad1)*
X19939000Y-29337000D03*
G04 #@! TO.N,header5Gpio1*
X16764000Y-90424000D03*
G04 #@! TO.N,header5Gpio2*
X16510000Y-92456000D03*
G04 #@! TO.N,+12V*
X51689000Y-16256000D03*
X50165000Y-16256000D03*
X48641000Y-16256000D03*
G04 #@! TO.N,Net-(C13-Pad1)*
X42926000Y-31877000D03*
G04 #@! TO.N,Net-(C13-Pad2)*
X42926000Y-29337000D03*
G04 #@! TO.N,Net-(C14-Pad1)*
X48514000Y-29337000D03*
G04 #@! TD*
D17*
G04 #@! TO.N,+3V3*
G36*
X62740001Y-76125148D02*
X62740000Y-88974851D01*
X62740001Y-88974856D01*
X62740000Y-114374851D01*
X62765001Y-114500539D01*
X62765000Y-126265000D01*
X735000Y-126265000D01*
X735000Y-116205000D01*
X3835324Y-116205000D01*
X3972697Y-116895620D01*
X4363901Y-117481099D01*
X4949380Y-117872303D01*
X5465672Y-117975000D01*
X9774328Y-117975000D01*
X10290620Y-117872303D01*
X10876099Y-117481099D01*
X11267303Y-116895620D01*
X11404676Y-116205000D01*
X19710324Y-116205000D01*
X19847697Y-116895620D01*
X20238901Y-117481099D01*
X20824380Y-117872303D01*
X21340672Y-117975000D01*
X25649328Y-117975000D01*
X26165620Y-117872303D01*
X26751099Y-117481099D01*
X27142303Y-116895620D01*
X27279676Y-116205000D01*
X36220324Y-116205000D01*
X36357697Y-116895620D01*
X36748901Y-117481099D01*
X37334380Y-117872303D01*
X37850672Y-117975000D01*
X42159328Y-117975000D01*
X42675620Y-117872303D01*
X43261099Y-117481099D01*
X43652303Y-116895620D01*
X43789676Y-116205000D01*
X52095324Y-116205000D01*
X52232697Y-116895620D01*
X52623901Y-117481099D01*
X53209380Y-117872303D01*
X53725672Y-117975000D01*
X58034328Y-117975000D01*
X58550620Y-117872303D01*
X59136099Y-117481099D01*
X59527303Y-116895620D01*
X59664676Y-116205000D01*
X59527303Y-115514380D01*
X59136099Y-114928901D01*
X58550620Y-114537697D01*
X58034328Y-114435000D01*
X53725672Y-114435000D01*
X53209380Y-114537697D01*
X52623901Y-114928901D01*
X52232697Y-115514380D01*
X52095324Y-116205000D01*
X43789676Y-116205000D01*
X43652303Y-115514380D01*
X43261099Y-114928901D01*
X42675620Y-114537697D01*
X42159328Y-114435000D01*
X37850672Y-114435000D01*
X37334380Y-114537697D01*
X36748901Y-114928901D01*
X36357697Y-115514380D01*
X36220324Y-116205000D01*
X27279676Y-116205000D01*
X27142303Y-115514380D01*
X26751099Y-114928901D01*
X26165620Y-114537697D01*
X25649328Y-114435000D01*
X21340672Y-114435000D01*
X20824380Y-114537697D01*
X20238901Y-114928901D01*
X19847697Y-115514380D01*
X19710324Y-116205000D01*
X11404676Y-116205000D01*
X11267303Y-115514380D01*
X10876099Y-114928901D01*
X10290620Y-114537697D01*
X9774328Y-114435000D01*
X5465672Y-114435000D01*
X4949380Y-114537697D01*
X4363901Y-114928901D01*
X3972697Y-115514380D01*
X3835324Y-116205000D01*
X735000Y-116205000D01*
X735000Y-114500535D01*
X760000Y-114374852D01*
X760000Y-96253074D01*
X2154149Y-96253074D01*
X2178044Y-96907059D01*
X2382342Y-97400274D01*
X2650234Y-97500161D01*
X3630395Y-96520000D01*
X2650234Y-95539839D01*
X2382342Y-95639726D01*
X2154149Y-96253074D01*
X760000Y-96253074D01*
X760000Y-93652789D01*
X2165000Y-93652789D01*
X2165000Y-94307211D01*
X2415437Y-94911817D01*
X2839077Y-95335457D01*
X2829839Y-95360234D01*
X3810000Y-96340395D01*
X4790161Y-95360234D01*
X4780923Y-95335457D01*
X5080000Y-95036380D01*
X5293620Y-95250000D01*
X4994543Y-95549077D01*
X4969766Y-95539839D01*
X3989605Y-96520000D01*
X4969766Y-97500161D01*
X4994543Y-97490923D01*
X5293620Y-97790000D01*
X5080000Y-98003620D01*
X4780923Y-97704543D01*
X4790161Y-97679766D01*
X3810000Y-96699605D01*
X2829839Y-97679766D01*
X2839077Y-97704543D01*
X2415437Y-98128183D01*
X2165000Y-98732789D01*
X2165000Y-99387211D01*
X2415437Y-99991817D01*
X2753620Y-100330000D01*
X2415437Y-100668183D01*
X2165000Y-101272789D01*
X2165000Y-101927211D01*
X2415437Y-102531817D01*
X2753620Y-102870000D01*
X2415437Y-103208183D01*
X2165000Y-103812789D01*
X2165000Y-104467211D01*
X2415437Y-105071817D01*
X2753620Y-105410000D01*
X2415437Y-105748183D01*
X2165000Y-106352789D01*
X2165000Y-107007211D01*
X2415437Y-107611817D01*
X2753620Y-107950000D01*
X2415437Y-108288183D01*
X2165000Y-108892789D01*
X2165000Y-109547211D01*
X2415437Y-110151817D01*
X2878183Y-110614563D01*
X3482789Y-110865000D01*
X4137211Y-110865000D01*
X4741817Y-110614563D01*
X5080000Y-110276380D01*
X5418183Y-110614563D01*
X6022789Y-110865000D01*
X6677211Y-110865000D01*
X7281817Y-110614563D01*
X7744563Y-110151817D01*
X7952785Y-109649126D01*
X21825000Y-109649126D01*
X21825000Y-110060874D01*
X21982569Y-110441280D01*
X22273720Y-110732431D01*
X22454953Y-110807500D01*
X22273720Y-110882569D01*
X21982569Y-111173720D01*
X21825000Y-111554126D01*
X21825000Y-111965874D01*
X21982569Y-112346280D01*
X22273720Y-112637431D01*
X22654126Y-112795000D01*
X23065874Y-112795000D01*
X23446280Y-112637431D01*
X23495000Y-112588711D01*
X23543720Y-112637431D01*
X23924126Y-112795000D01*
X24335874Y-112795000D01*
X24716280Y-112637431D01*
X24765000Y-112588711D01*
X24813720Y-112637431D01*
X25194126Y-112795000D01*
X25605874Y-112795000D01*
X25986280Y-112637431D01*
X26035000Y-112588711D01*
X26083720Y-112637431D01*
X26464126Y-112795000D01*
X26875874Y-112795000D01*
X27256280Y-112637431D01*
X27547431Y-112346280D01*
X27705000Y-111965874D01*
X27705000Y-111554126D01*
X27547431Y-111173720D01*
X27256280Y-110882569D01*
X27075047Y-110807500D01*
X27256280Y-110732431D01*
X27547431Y-110441280D01*
X27612526Y-110284126D01*
X49765000Y-110284126D01*
X49765000Y-110695874D01*
X49922569Y-111076280D01*
X50213720Y-111367431D01*
X50594126Y-111525000D01*
X51005874Y-111525000D01*
X51386280Y-111367431D01*
X51677431Y-111076280D01*
X51752500Y-110895047D01*
X51827569Y-111076280D01*
X52118720Y-111367431D01*
X52499126Y-111525000D01*
X52910874Y-111525000D01*
X53291280Y-111367431D01*
X53582431Y-111076280D01*
X53740000Y-110695874D01*
X53740000Y-110284126D01*
X53582431Y-109903720D01*
X53291280Y-109612569D01*
X52910874Y-109455000D01*
X52499126Y-109455000D01*
X52118720Y-109612569D01*
X51827569Y-109903720D01*
X51752500Y-110084953D01*
X51677431Y-109903720D01*
X51386280Y-109612569D01*
X51005874Y-109455000D01*
X50594126Y-109455000D01*
X50213720Y-109612569D01*
X49922569Y-109903720D01*
X49765000Y-110284126D01*
X27612526Y-110284126D01*
X27705000Y-110060874D01*
X27705000Y-109649126D01*
X27547431Y-109268720D01*
X27256280Y-108977569D01*
X26875874Y-108820000D01*
X26464126Y-108820000D01*
X26083720Y-108977569D01*
X26035000Y-109026289D01*
X25986280Y-108977569D01*
X25605874Y-108820000D01*
X25194126Y-108820000D01*
X24813720Y-108977569D01*
X24765000Y-109026289D01*
X24716280Y-108977569D01*
X24335874Y-108820000D01*
X23924126Y-108820000D01*
X23543720Y-108977569D01*
X23495000Y-109026289D01*
X23446280Y-108977569D01*
X23065874Y-108820000D01*
X22654126Y-108820000D01*
X22273720Y-108977569D01*
X21982569Y-109268720D01*
X21825000Y-109649126D01*
X7952785Y-109649126D01*
X7995000Y-109547211D01*
X7995000Y-108892789D01*
X7744563Y-108288183D01*
X7406380Y-107950000D01*
X7744563Y-107611817D01*
X7995000Y-107007211D01*
X7995000Y-106352789D01*
X7744563Y-105748183D01*
X7406380Y-105410000D01*
X7612254Y-105204126D01*
X21825000Y-105204126D01*
X21825000Y-105615874D01*
X21982569Y-105996280D01*
X22273720Y-106287431D01*
X22454953Y-106362500D01*
X22273720Y-106437569D01*
X21982569Y-106728720D01*
X21825000Y-107109126D01*
X21825000Y-107520874D01*
X21982569Y-107901280D01*
X22273720Y-108192431D01*
X22654126Y-108350000D01*
X23065874Y-108350000D01*
X23446280Y-108192431D01*
X23737431Y-107901280D01*
X23812500Y-107720047D01*
X23887569Y-107901280D01*
X24178720Y-108192431D01*
X24559126Y-108350000D01*
X24970874Y-108350000D01*
X25351280Y-108192431D01*
X25642431Y-107901280D01*
X25717500Y-107720047D01*
X25792569Y-107901280D01*
X26083720Y-108192431D01*
X26464126Y-108350000D01*
X26875874Y-108350000D01*
X27256280Y-108192431D01*
X27547431Y-107901280D01*
X27705000Y-107520874D01*
X27705000Y-107109126D01*
X27547431Y-106728720D01*
X27256280Y-106437569D01*
X27075047Y-106362500D01*
X27256280Y-106287431D01*
X27547431Y-105996280D01*
X27612526Y-105839126D01*
X49765000Y-105839126D01*
X49765000Y-106250874D01*
X49922569Y-106631280D01*
X50213720Y-106922431D01*
X50394953Y-106997500D01*
X50213720Y-107072569D01*
X49922569Y-107363720D01*
X49765000Y-107744126D01*
X49765000Y-108155874D01*
X49922569Y-108536280D01*
X50213720Y-108827431D01*
X50594126Y-108985000D01*
X51005874Y-108985000D01*
X51386280Y-108827431D01*
X51677431Y-108536280D01*
X51752500Y-108355047D01*
X51827569Y-108536280D01*
X52118720Y-108827431D01*
X52499126Y-108985000D01*
X52910874Y-108985000D01*
X53291280Y-108827431D01*
X53582431Y-108536280D01*
X53740000Y-108155874D01*
X53740000Y-107744126D01*
X53582431Y-107363720D01*
X53291280Y-107072569D01*
X53110047Y-106997500D01*
X53291280Y-106922431D01*
X53582431Y-106631280D01*
X53740000Y-106250874D01*
X53740000Y-105839126D01*
X53582431Y-105458720D01*
X53291280Y-105167569D01*
X52910874Y-105010000D01*
X52499126Y-105010000D01*
X52118720Y-105167569D01*
X51827569Y-105458720D01*
X51752500Y-105639953D01*
X51677431Y-105458720D01*
X51386280Y-105167569D01*
X51005874Y-105010000D01*
X50594126Y-105010000D01*
X50213720Y-105167569D01*
X49922569Y-105458720D01*
X49765000Y-105839126D01*
X27612526Y-105839126D01*
X27705000Y-105615874D01*
X27705000Y-105204126D01*
X27547431Y-104823720D01*
X27256280Y-104532569D01*
X26875874Y-104375000D01*
X26464126Y-104375000D01*
X26083720Y-104532569D01*
X25792569Y-104823720D01*
X25717500Y-105004953D01*
X25642431Y-104823720D01*
X25351280Y-104532569D01*
X24970874Y-104375000D01*
X24559126Y-104375000D01*
X24178720Y-104532569D01*
X23887569Y-104823720D01*
X23812500Y-105004953D01*
X23737431Y-104823720D01*
X23446280Y-104532569D01*
X23065874Y-104375000D01*
X22654126Y-104375000D01*
X22273720Y-104532569D01*
X21982569Y-104823720D01*
X21825000Y-105204126D01*
X7612254Y-105204126D01*
X7744563Y-105071817D01*
X7995000Y-104467211D01*
X7995000Y-103812789D01*
X7744563Y-103208183D01*
X7406380Y-102870000D01*
X7744563Y-102531817D01*
X7995000Y-101927211D01*
X7995000Y-101272789D01*
X7744563Y-100668183D01*
X7406380Y-100330000D01*
X7744563Y-99991817D01*
X7995000Y-99387211D01*
X7995000Y-98732789D01*
X7744563Y-98128183D01*
X7406380Y-97790000D01*
X7744563Y-97451817D01*
X7995000Y-96847211D01*
X7995000Y-96192789D01*
X7744563Y-95588183D01*
X7406380Y-95250000D01*
X7744563Y-94911817D01*
X7995000Y-94307211D01*
X7995000Y-93652789D01*
X7744563Y-93048183D01*
X7281817Y-92585437D01*
X6677211Y-92335000D01*
X6022789Y-92335000D01*
X5418183Y-92585437D01*
X5080000Y-92923620D01*
X4741817Y-92585437D01*
X4137211Y-92335000D01*
X3482789Y-92335000D01*
X2878183Y-92585437D01*
X2415437Y-93048183D01*
X2165000Y-93652789D01*
X760000Y-93652789D01*
X760000Y-92250126D01*
X15475000Y-92250126D01*
X15475000Y-92661874D01*
X15632569Y-93042280D01*
X15923720Y-93333431D01*
X16304126Y-93491000D01*
X16715874Y-93491000D01*
X17096280Y-93333431D01*
X17387431Y-93042280D01*
X17545000Y-92661874D01*
X17545000Y-92250126D01*
X17387431Y-91869720D01*
X17096280Y-91578569D01*
X16807614Y-91459000D01*
X16969874Y-91459000D01*
X17350280Y-91301431D01*
X17641431Y-91010280D01*
X17799000Y-90629874D01*
X17799000Y-90218126D01*
X17641431Y-89837720D01*
X17350280Y-89546569D01*
X16969874Y-89389000D01*
X16558126Y-89389000D01*
X16177720Y-89546569D01*
X15886569Y-89837720D01*
X15729000Y-90218126D01*
X15729000Y-90629874D01*
X15886569Y-91010280D01*
X16177720Y-91301431D01*
X16466386Y-91421000D01*
X16304126Y-91421000D01*
X15923720Y-91578569D01*
X15632569Y-91869720D01*
X15475000Y-92250126D01*
X760000Y-92250126D01*
X760000Y-88355975D01*
X1075000Y-88355975D01*
X1075000Y-89444025D01*
X1491379Y-90449253D01*
X2260747Y-91218621D01*
X3265975Y-91635000D01*
X4354025Y-91635000D01*
X5359253Y-91218621D01*
X6128621Y-90449253D01*
X6545000Y-89444025D01*
X6545000Y-88355975D01*
X6128621Y-87350747D01*
X5359253Y-86581379D01*
X4354025Y-86165000D01*
X3265975Y-86165000D01*
X2260747Y-86581379D01*
X1491379Y-87350747D01*
X1075000Y-88355975D01*
X760000Y-88355975D01*
X760000Y-70853074D01*
X2154149Y-70853074D01*
X2178044Y-71507059D01*
X2382342Y-72000274D01*
X2650234Y-72100161D01*
X3630395Y-71120000D01*
X2650234Y-70139839D01*
X2382342Y-70239726D01*
X2154149Y-70853074D01*
X760000Y-70853074D01*
X760000Y-68252789D01*
X2165000Y-68252789D01*
X2165000Y-68907211D01*
X2415437Y-69511817D01*
X2839077Y-69935457D01*
X2829839Y-69960234D01*
X3810000Y-70940395D01*
X4790161Y-69960234D01*
X4780923Y-69935457D01*
X5080000Y-69636380D01*
X5293620Y-69850000D01*
X4994543Y-70149077D01*
X4969766Y-70139839D01*
X3989605Y-71120000D01*
X4969766Y-72100161D01*
X4994543Y-72090923D01*
X5293620Y-72390000D01*
X5080000Y-72603620D01*
X4780923Y-72304543D01*
X4790161Y-72279766D01*
X3810000Y-71299605D01*
X2829839Y-72279766D01*
X2839077Y-72304543D01*
X2415437Y-72728183D01*
X2165000Y-73332789D01*
X2165000Y-73987211D01*
X2415437Y-74591817D01*
X2753620Y-74930000D01*
X2415437Y-75268183D01*
X2165000Y-75872789D01*
X2165000Y-76527211D01*
X2415437Y-77131817D01*
X2753620Y-77470000D01*
X2415437Y-77808183D01*
X2165000Y-78412789D01*
X2165000Y-79067211D01*
X2415437Y-79671817D01*
X2753620Y-80010000D01*
X2415437Y-80348183D01*
X2165000Y-80952789D01*
X2165000Y-81607211D01*
X2415437Y-82211817D01*
X2753620Y-82550000D01*
X2415437Y-82888183D01*
X2165000Y-83492789D01*
X2165000Y-84147211D01*
X2415437Y-84751817D01*
X2878183Y-85214563D01*
X3482789Y-85465000D01*
X4137211Y-85465000D01*
X4741817Y-85214563D01*
X5080000Y-84876380D01*
X5418183Y-85214563D01*
X6022789Y-85465000D01*
X6677211Y-85465000D01*
X7281817Y-85214563D01*
X7744563Y-84751817D01*
X7995000Y-84147211D01*
X7995000Y-83492789D01*
X7744563Y-82888183D01*
X7406380Y-82550000D01*
X7744563Y-82211817D01*
X7995000Y-81607211D01*
X7995000Y-80952789D01*
X7744563Y-80348183D01*
X7406380Y-80010000D01*
X7744563Y-79671817D01*
X7995000Y-79067211D01*
X7995000Y-78412789D01*
X7744563Y-77808183D01*
X7406380Y-77470000D01*
X7744563Y-77131817D01*
X7995000Y-76527211D01*
X7995000Y-75872789D01*
X7744563Y-75268183D01*
X7406380Y-74930000D01*
X7744563Y-74591817D01*
X7995000Y-73987211D01*
X7995000Y-73332789D01*
X7744563Y-72728183D01*
X7406380Y-72390000D01*
X7744563Y-72051817D01*
X7995000Y-71447211D01*
X7995000Y-70792789D01*
X7744563Y-70188183D01*
X7406380Y-69850000D01*
X7744563Y-69511817D01*
X7995000Y-68907211D01*
X7995000Y-68252789D01*
X7744563Y-67648183D01*
X7281817Y-67185437D01*
X6677211Y-66935000D01*
X6022789Y-66935000D01*
X5418183Y-67185437D01*
X5080000Y-67523620D01*
X4741817Y-67185437D01*
X4137211Y-66935000D01*
X3482789Y-66935000D01*
X2878183Y-67185437D01*
X2415437Y-67648183D01*
X2165000Y-68252789D01*
X760000Y-68252789D01*
X760000Y-45453074D01*
X2154149Y-45453074D01*
X2178044Y-46107059D01*
X2382342Y-46600274D01*
X2650234Y-46700161D01*
X3630395Y-45720000D01*
X2650234Y-44739839D01*
X2382342Y-44839726D01*
X2154149Y-45453074D01*
X760000Y-45453074D01*
X760000Y-42852789D01*
X2165000Y-42852789D01*
X2165000Y-43507211D01*
X2415437Y-44111817D01*
X2839077Y-44535457D01*
X2829839Y-44560234D01*
X3810000Y-45540395D01*
X4790161Y-44560234D01*
X4780923Y-44535457D01*
X5080000Y-44236380D01*
X5293620Y-44450000D01*
X4994543Y-44749077D01*
X4969766Y-44739839D01*
X3989605Y-45720000D01*
X4969766Y-46700161D01*
X4994543Y-46690923D01*
X5293620Y-46990000D01*
X5080000Y-47203620D01*
X4780923Y-46904543D01*
X4790161Y-46879766D01*
X3810000Y-45899605D01*
X2829839Y-46879766D01*
X2839077Y-46904543D01*
X2415437Y-47328183D01*
X2165000Y-47932789D01*
X2165000Y-48587211D01*
X2415437Y-49191817D01*
X2753620Y-49530000D01*
X2415437Y-49868183D01*
X2165000Y-50472789D01*
X2165000Y-51127211D01*
X2415437Y-51731817D01*
X2753620Y-52070000D01*
X2415437Y-52408183D01*
X2165000Y-53012789D01*
X2165000Y-53667211D01*
X2415437Y-54271817D01*
X2753620Y-54610000D01*
X2415437Y-54948183D01*
X2165000Y-55552789D01*
X2165000Y-56207211D01*
X2415437Y-56811817D01*
X2753620Y-57150000D01*
X2415437Y-57488183D01*
X2165000Y-58092789D01*
X2165000Y-58747211D01*
X2415437Y-59351817D01*
X2878183Y-59814563D01*
X3482789Y-60065000D01*
X4137211Y-60065000D01*
X4741817Y-59814563D01*
X5080000Y-59476380D01*
X5418183Y-59814563D01*
X6022789Y-60065000D01*
X6677211Y-60065000D01*
X7281817Y-59814563D01*
X7744563Y-59351817D01*
X7995000Y-58747211D01*
X7995000Y-58092789D01*
X7744563Y-57488183D01*
X7406380Y-57150000D01*
X7744563Y-56811817D01*
X7995000Y-56207211D01*
X7995000Y-55552789D01*
X7744563Y-54948183D01*
X7406380Y-54610000D01*
X7744563Y-54271817D01*
X7995000Y-53667211D01*
X7995000Y-53012789D01*
X7744563Y-52408183D01*
X7406380Y-52070000D01*
X7744563Y-51731817D01*
X7995000Y-51127211D01*
X7995000Y-50472789D01*
X7744563Y-49868183D01*
X7406380Y-49530000D01*
X7744563Y-49191817D01*
X7995000Y-48587211D01*
X7995000Y-47932789D01*
X7744563Y-47328183D01*
X7406380Y-46990000D01*
X7744563Y-46651817D01*
X7995000Y-46047211D01*
X7995000Y-45392789D01*
X7744563Y-44788183D01*
X7406380Y-44450000D01*
X7733591Y-44122789D01*
X28835000Y-44122789D01*
X28835000Y-44777211D01*
X29085437Y-45381817D01*
X29423620Y-45720000D01*
X29085437Y-46058183D01*
X28835000Y-46662789D01*
X28835000Y-47317211D01*
X29085437Y-47921817D01*
X29423620Y-48260000D01*
X29085437Y-48598183D01*
X28835000Y-49202789D01*
X28835000Y-49857211D01*
X29085437Y-50461817D01*
X29423620Y-50800000D01*
X29085437Y-51138183D01*
X28835000Y-51742789D01*
X28835000Y-52397211D01*
X29085437Y-53001817D01*
X29423620Y-53340000D01*
X29085437Y-53678183D01*
X28835000Y-54282789D01*
X28835000Y-54937211D01*
X29085437Y-55541817D01*
X29423620Y-55880000D01*
X29085437Y-56218183D01*
X28835000Y-56822789D01*
X28835000Y-57477211D01*
X29085437Y-58081817D01*
X29423620Y-58420000D01*
X29085437Y-58758183D01*
X28835000Y-59362789D01*
X28835000Y-60017211D01*
X29085437Y-60621817D01*
X29423620Y-60960000D01*
X29085437Y-61298183D01*
X28835000Y-61902789D01*
X28835000Y-62557211D01*
X29085437Y-63161817D01*
X29423620Y-63500000D01*
X29085437Y-63838183D01*
X28835000Y-64442789D01*
X28835000Y-65097211D01*
X29085437Y-65701817D01*
X29423620Y-66040000D01*
X29085437Y-66378183D01*
X28835000Y-66982789D01*
X28835000Y-67637211D01*
X29085437Y-68241817D01*
X29423620Y-68580000D01*
X29085437Y-68918183D01*
X28835000Y-69522789D01*
X28835000Y-70177211D01*
X29085437Y-70781817D01*
X29423620Y-71120000D01*
X29085437Y-71458183D01*
X28835000Y-72062789D01*
X28835000Y-72717211D01*
X29085437Y-73321817D01*
X29423620Y-73660000D01*
X29085437Y-73998183D01*
X28835000Y-74602789D01*
X28835000Y-75257211D01*
X29085437Y-75861817D01*
X29423620Y-76200000D01*
X29085437Y-76538183D01*
X28835000Y-77142789D01*
X28835000Y-77797211D01*
X29085437Y-78401817D01*
X29423620Y-78740000D01*
X29085437Y-79078183D01*
X28835000Y-79682789D01*
X28835000Y-80337211D01*
X29085437Y-80941817D01*
X29423620Y-81280000D01*
X29085437Y-81618183D01*
X28835000Y-82222789D01*
X28835000Y-82877211D01*
X29085437Y-83481817D01*
X29423620Y-83820000D01*
X29085437Y-84158183D01*
X28835000Y-84762789D01*
X28835000Y-85417211D01*
X29085437Y-86021817D01*
X29423620Y-86360000D01*
X29085437Y-86698183D01*
X28835000Y-87302789D01*
X28835000Y-87957211D01*
X29085437Y-88561817D01*
X29423620Y-88900000D01*
X29085437Y-89238183D01*
X28835000Y-89842789D01*
X28835000Y-90497211D01*
X29085437Y-91101817D01*
X29423620Y-91440000D01*
X29085437Y-91778183D01*
X28835000Y-92382789D01*
X28835000Y-93037211D01*
X29085437Y-93641817D01*
X29423620Y-93980000D01*
X29085437Y-94318183D01*
X28835000Y-94922789D01*
X28835000Y-95577211D01*
X29085437Y-96181817D01*
X29423620Y-96520000D01*
X29085437Y-96858183D01*
X28835000Y-97462789D01*
X28835000Y-98117211D01*
X29085437Y-98721817D01*
X29423620Y-99060000D01*
X29085437Y-99398183D01*
X28835000Y-100002789D01*
X28835000Y-100657211D01*
X29085437Y-101261817D01*
X29423620Y-101600000D01*
X29085437Y-101938183D01*
X28835000Y-102542789D01*
X28835000Y-103197211D01*
X29085437Y-103801817D01*
X29548183Y-104264563D01*
X30152789Y-104515000D01*
X30807211Y-104515000D01*
X31411817Y-104264563D01*
X31750000Y-103926380D01*
X32088183Y-104264563D01*
X32692789Y-104515000D01*
X33347211Y-104515000D01*
X33951817Y-104264563D01*
X34414563Y-103801817D01*
X34665000Y-103197211D01*
X34665000Y-102542789D01*
X34414563Y-101938183D01*
X34076380Y-101600000D01*
X34414563Y-101261817D01*
X34665000Y-100657211D01*
X34665000Y-100002789D01*
X34414563Y-99398183D01*
X34076380Y-99060000D01*
X34414563Y-98721817D01*
X34665000Y-98117211D01*
X34665000Y-97462789D01*
X34414563Y-96858183D01*
X34076380Y-96520000D01*
X34414563Y-96181817D01*
X34665000Y-95577211D01*
X34665000Y-94922789D01*
X34414563Y-94318183D01*
X34076380Y-93980000D01*
X34403591Y-93652789D01*
X55505000Y-93652789D01*
X55505000Y-94307211D01*
X55755437Y-94911817D01*
X56093620Y-95250000D01*
X55755437Y-95588183D01*
X55505000Y-96192789D01*
X55505000Y-96847211D01*
X55755437Y-97451817D01*
X56093620Y-97790000D01*
X55755437Y-98128183D01*
X55505000Y-98732789D01*
X55505000Y-99387211D01*
X55755437Y-99991817D01*
X56093620Y-100330000D01*
X55755437Y-100668183D01*
X55505000Y-101272789D01*
X55505000Y-101927211D01*
X55755437Y-102531817D01*
X56093620Y-102870000D01*
X55755437Y-103208183D01*
X55505000Y-103812789D01*
X55505000Y-104467211D01*
X55755437Y-105071817D01*
X56093620Y-105410000D01*
X55755437Y-105748183D01*
X55505000Y-106352789D01*
X55505000Y-107007211D01*
X55755437Y-107611817D01*
X56093620Y-107950000D01*
X55755437Y-108288183D01*
X55505000Y-108892789D01*
X55505000Y-109547211D01*
X55755437Y-110151817D01*
X56218183Y-110614563D01*
X56822789Y-110865000D01*
X57477211Y-110865000D01*
X58081817Y-110614563D01*
X58420000Y-110276380D01*
X58758183Y-110614563D01*
X59362789Y-110865000D01*
X60017211Y-110865000D01*
X60621817Y-110614563D01*
X61084563Y-110151817D01*
X61335000Y-109547211D01*
X61335000Y-108892789D01*
X61084563Y-108288183D01*
X60660923Y-107864543D01*
X60670161Y-107839766D01*
X59690000Y-106859605D01*
X58709839Y-107839766D01*
X58719077Y-107864543D01*
X58420000Y-108163620D01*
X58206380Y-107950000D01*
X58505457Y-107650923D01*
X58530234Y-107660161D01*
X59510395Y-106680000D01*
X59869605Y-106680000D01*
X60849766Y-107660161D01*
X61117658Y-107560274D01*
X61345851Y-106946926D01*
X61321956Y-106292941D01*
X61117658Y-105799726D01*
X60849766Y-105699839D01*
X59869605Y-106680000D01*
X59510395Y-106680000D01*
X58530234Y-105699839D01*
X58505457Y-105709077D01*
X58206380Y-105410000D01*
X58420000Y-105196380D01*
X58719077Y-105495457D01*
X58709839Y-105520234D01*
X59690000Y-106500395D01*
X60670161Y-105520234D01*
X60660923Y-105495457D01*
X61084563Y-105071817D01*
X61335000Y-104467211D01*
X61335000Y-103812789D01*
X61084563Y-103208183D01*
X60746380Y-102870000D01*
X61084563Y-102531817D01*
X61335000Y-101927211D01*
X61335000Y-101272789D01*
X61084563Y-100668183D01*
X60746380Y-100330000D01*
X61084563Y-99991817D01*
X61335000Y-99387211D01*
X61335000Y-98732789D01*
X61084563Y-98128183D01*
X60746380Y-97790000D01*
X61084563Y-97451817D01*
X61335000Y-96847211D01*
X61335000Y-96192789D01*
X61084563Y-95588183D01*
X60746380Y-95250000D01*
X61084563Y-94911817D01*
X61335000Y-94307211D01*
X61335000Y-93652789D01*
X61084563Y-93048183D01*
X60621817Y-92585437D01*
X60017211Y-92335000D01*
X59362789Y-92335000D01*
X58758183Y-92585437D01*
X58420000Y-92923620D01*
X58081817Y-92585437D01*
X57477211Y-92335000D01*
X56822789Y-92335000D01*
X56218183Y-92585437D01*
X55755437Y-93048183D01*
X55505000Y-93652789D01*
X34403591Y-93652789D01*
X34414563Y-93641817D01*
X34665000Y-93037211D01*
X34665000Y-92382789D01*
X34414563Y-91778183D01*
X34076380Y-91440000D01*
X34414563Y-91101817D01*
X34665000Y-90497211D01*
X34665000Y-89842789D01*
X34414563Y-89238183D01*
X34076380Y-88900000D01*
X34414563Y-88561817D01*
X34499825Y-88355975D01*
X56955000Y-88355975D01*
X56955000Y-89444025D01*
X57371379Y-90449253D01*
X58140747Y-91218621D01*
X59145975Y-91635000D01*
X60234025Y-91635000D01*
X61239253Y-91218621D01*
X62008621Y-90449253D01*
X62425000Y-89444025D01*
X62425000Y-88355975D01*
X62008621Y-87350747D01*
X61239253Y-86581379D01*
X60234025Y-86165000D01*
X59145975Y-86165000D01*
X58140747Y-86581379D01*
X57371379Y-87350747D01*
X56955000Y-88355975D01*
X34499825Y-88355975D01*
X34665000Y-87957211D01*
X34665000Y-87302789D01*
X34414563Y-86698183D01*
X34076380Y-86360000D01*
X34414563Y-86021817D01*
X34665000Y-85417211D01*
X34665000Y-84762789D01*
X34414563Y-84158183D01*
X34076380Y-83820000D01*
X34414563Y-83481817D01*
X34665000Y-82877211D01*
X34665000Y-82222789D01*
X34414563Y-81618183D01*
X34076380Y-81280000D01*
X34414563Y-80941817D01*
X34665000Y-80337211D01*
X34665000Y-79682789D01*
X34414563Y-79078183D01*
X34076380Y-78740000D01*
X34414563Y-78401817D01*
X34665000Y-77797211D01*
X34665000Y-77142789D01*
X34414563Y-76538183D01*
X34076380Y-76200000D01*
X34414563Y-75861817D01*
X34665000Y-75257211D01*
X34665000Y-74602789D01*
X34414563Y-73998183D01*
X34076380Y-73660000D01*
X34414563Y-73321817D01*
X34665000Y-72717211D01*
X34665000Y-72062789D01*
X34414563Y-71458183D01*
X34076380Y-71120000D01*
X34414563Y-70781817D01*
X34665000Y-70177211D01*
X34665000Y-69522789D01*
X34414563Y-68918183D01*
X34076380Y-68580000D01*
X34403591Y-68252789D01*
X55505000Y-68252789D01*
X55505000Y-68907211D01*
X55755437Y-69511817D01*
X56093620Y-69850000D01*
X55755437Y-70188183D01*
X55505000Y-70792789D01*
X55505000Y-71447211D01*
X55755437Y-72051817D01*
X56093620Y-72390000D01*
X55755437Y-72728183D01*
X55505000Y-73332789D01*
X55505000Y-73987211D01*
X55755437Y-74591817D01*
X56093620Y-74930000D01*
X55755437Y-75268183D01*
X55505000Y-75872789D01*
X55505000Y-76527211D01*
X55755437Y-77131817D01*
X56093620Y-77470000D01*
X55755437Y-77808183D01*
X55505000Y-78412789D01*
X55505000Y-79067211D01*
X55755437Y-79671817D01*
X56093620Y-80010000D01*
X55755437Y-80348183D01*
X55505000Y-80952789D01*
X55505000Y-81607211D01*
X55755437Y-82211817D01*
X56093620Y-82550000D01*
X55755437Y-82888183D01*
X55505000Y-83492789D01*
X55505000Y-84147211D01*
X55755437Y-84751817D01*
X56218183Y-85214563D01*
X56822789Y-85465000D01*
X57477211Y-85465000D01*
X58081817Y-85214563D01*
X58420000Y-84876380D01*
X58758183Y-85214563D01*
X59362789Y-85465000D01*
X60017211Y-85465000D01*
X60621817Y-85214563D01*
X61084563Y-84751817D01*
X61335000Y-84147211D01*
X61335000Y-83492789D01*
X61084563Y-82888183D01*
X60660923Y-82464543D01*
X60670161Y-82439766D01*
X59690000Y-81459605D01*
X58709839Y-82439766D01*
X58719077Y-82464543D01*
X58420000Y-82763620D01*
X58206380Y-82550000D01*
X58505457Y-82250923D01*
X58530234Y-82260161D01*
X59510395Y-81280000D01*
X59869605Y-81280000D01*
X60849766Y-82260161D01*
X61117658Y-82160274D01*
X61345851Y-81546926D01*
X61321956Y-80892941D01*
X61117658Y-80399726D01*
X60849766Y-80299839D01*
X59869605Y-81280000D01*
X59510395Y-81280000D01*
X58530234Y-80299839D01*
X58505457Y-80309077D01*
X58206380Y-80010000D01*
X58420000Y-79796380D01*
X58719077Y-80095457D01*
X58709839Y-80120234D01*
X59690000Y-81100395D01*
X60670161Y-80120234D01*
X60660923Y-80095457D01*
X61084563Y-79671817D01*
X61335000Y-79067211D01*
X61335000Y-78412789D01*
X61084563Y-77808183D01*
X60746380Y-77470000D01*
X61084563Y-77131817D01*
X61335000Y-76527211D01*
X61335000Y-75872789D01*
X61084563Y-75268183D01*
X60746380Y-74930000D01*
X61084563Y-74591817D01*
X61335000Y-73987211D01*
X61335000Y-73332789D01*
X61084563Y-72728183D01*
X60746380Y-72390000D01*
X61084563Y-72051817D01*
X61335000Y-71447211D01*
X61335000Y-70792789D01*
X61084563Y-70188183D01*
X60746380Y-69850000D01*
X61084563Y-69511817D01*
X61335000Y-68907211D01*
X61335000Y-68252789D01*
X61084563Y-67648183D01*
X60621817Y-67185437D01*
X60017211Y-66935000D01*
X59362789Y-66935000D01*
X58758183Y-67185437D01*
X58420000Y-67523620D01*
X58081817Y-67185437D01*
X57477211Y-66935000D01*
X56822789Y-66935000D01*
X56218183Y-67185437D01*
X55755437Y-67648183D01*
X55505000Y-68252789D01*
X34403591Y-68252789D01*
X34414563Y-68241817D01*
X34665000Y-67637211D01*
X34665000Y-66982789D01*
X34414563Y-66378183D01*
X34076380Y-66040000D01*
X34414563Y-65701817D01*
X34665000Y-65097211D01*
X34665000Y-64442789D01*
X34414563Y-63838183D01*
X34076380Y-63500000D01*
X34414563Y-63161817D01*
X34665000Y-62557211D01*
X34665000Y-61902789D01*
X34414563Y-61298183D01*
X34076380Y-60960000D01*
X34414563Y-60621817D01*
X34665000Y-60017211D01*
X34665000Y-59362789D01*
X34414563Y-58758183D01*
X34076380Y-58420000D01*
X34414563Y-58081817D01*
X34665000Y-57477211D01*
X34665000Y-56822789D01*
X34414563Y-56218183D01*
X34076380Y-55880000D01*
X34414563Y-55541817D01*
X34665000Y-54937211D01*
X34665000Y-54282789D01*
X34414563Y-53678183D01*
X34076380Y-53340000D01*
X34414563Y-53001817D01*
X34665000Y-52397211D01*
X34665000Y-51742789D01*
X34414563Y-51138183D01*
X34076380Y-50800000D01*
X34414563Y-50461817D01*
X34665000Y-49857211D01*
X34665000Y-49202789D01*
X34414563Y-48598183D01*
X34076380Y-48260000D01*
X34414563Y-47921817D01*
X34665000Y-47317211D01*
X34665000Y-46662789D01*
X34414563Y-46058183D01*
X34076380Y-45720000D01*
X34414563Y-45381817D01*
X34665000Y-44777211D01*
X34665000Y-44122789D01*
X34414563Y-43518183D01*
X33951817Y-43055437D01*
X33347211Y-42805000D01*
X32692789Y-42805000D01*
X32088183Y-43055437D01*
X31750000Y-43393620D01*
X31411817Y-43055437D01*
X30807211Y-42805000D01*
X30769865Y-42805000D01*
X30812280Y-42787431D01*
X31103431Y-42496280D01*
X31261000Y-42115874D01*
X31261000Y-41831126D01*
X42780000Y-41831126D01*
X42780000Y-42242874D01*
X42937569Y-42623280D01*
X43228720Y-42914431D01*
X43609126Y-43072000D01*
X44020874Y-43072000D01*
X44401280Y-42914431D01*
X44462922Y-42852789D01*
X55505000Y-42852789D01*
X55505000Y-43507211D01*
X55755437Y-44111817D01*
X56093620Y-44450000D01*
X55755437Y-44788183D01*
X55505000Y-45392789D01*
X55505000Y-46047211D01*
X55755437Y-46651817D01*
X56093620Y-46990000D01*
X55755437Y-47328183D01*
X55505000Y-47932789D01*
X55505000Y-48587211D01*
X55755437Y-49191817D01*
X56093620Y-49530000D01*
X55755437Y-49868183D01*
X55505000Y-50472789D01*
X55505000Y-51127211D01*
X55755437Y-51731817D01*
X56093620Y-52070000D01*
X55755437Y-52408183D01*
X55505000Y-53012789D01*
X55505000Y-53667211D01*
X55755437Y-54271817D01*
X56093620Y-54610000D01*
X55755437Y-54948183D01*
X55505000Y-55552789D01*
X55505000Y-56207211D01*
X55755437Y-56811817D01*
X56093620Y-57150000D01*
X55755437Y-57488183D01*
X55505000Y-58092789D01*
X55505000Y-58747211D01*
X55755437Y-59351817D01*
X56218183Y-59814563D01*
X56822789Y-60065000D01*
X57477211Y-60065000D01*
X58081817Y-59814563D01*
X58420000Y-59476380D01*
X58758183Y-59814563D01*
X59362789Y-60065000D01*
X60017211Y-60065000D01*
X60621817Y-59814563D01*
X61084563Y-59351817D01*
X61335000Y-58747211D01*
X61335000Y-58092789D01*
X61084563Y-57488183D01*
X60660923Y-57064543D01*
X60670161Y-57039766D01*
X59690000Y-56059605D01*
X58709839Y-57039766D01*
X58719077Y-57064543D01*
X58420000Y-57363620D01*
X58206380Y-57150000D01*
X58505457Y-56850923D01*
X58530234Y-56860161D01*
X59510395Y-55880000D01*
X59869605Y-55880000D01*
X60849766Y-56860161D01*
X61117658Y-56760274D01*
X61345851Y-56146926D01*
X61321956Y-55492941D01*
X61117658Y-54999726D01*
X60849766Y-54899839D01*
X59869605Y-55880000D01*
X59510395Y-55880000D01*
X58530234Y-54899839D01*
X58505457Y-54909077D01*
X58206380Y-54610000D01*
X58420000Y-54396380D01*
X58719077Y-54695457D01*
X58709839Y-54720234D01*
X59690000Y-55700395D01*
X60670161Y-54720234D01*
X60660923Y-54695457D01*
X61084563Y-54271817D01*
X61335000Y-53667211D01*
X61335000Y-53012789D01*
X61084563Y-52408183D01*
X60746380Y-52070000D01*
X61084563Y-51731817D01*
X61335000Y-51127211D01*
X61335000Y-50472789D01*
X61084563Y-49868183D01*
X60746380Y-49530000D01*
X61084563Y-49191817D01*
X61335000Y-48587211D01*
X61335000Y-47932789D01*
X61084563Y-47328183D01*
X60746380Y-46990000D01*
X61084563Y-46651817D01*
X61335000Y-46047211D01*
X61335000Y-45392789D01*
X61084563Y-44788183D01*
X60746380Y-44450000D01*
X61084563Y-44111817D01*
X61335000Y-43507211D01*
X61335000Y-42852789D01*
X61084563Y-42248183D01*
X60621817Y-41785437D01*
X60017211Y-41535000D01*
X59362789Y-41535000D01*
X58758183Y-41785437D01*
X58420000Y-42123620D01*
X58081817Y-41785437D01*
X57477211Y-41535000D01*
X56822789Y-41535000D01*
X56218183Y-41785437D01*
X55755437Y-42248183D01*
X55505000Y-42852789D01*
X44462922Y-42852789D01*
X44692431Y-42623280D01*
X44850000Y-42242874D01*
X44850000Y-41831126D01*
X44692431Y-41450720D01*
X44401280Y-41159569D01*
X44020874Y-41002000D01*
X43609126Y-41002000D01*
X43228720Y-41159569D01*
X42937569Y-41450720D01*
X42780000Y-41831126D01*
X31261000Y-41831126D01*
X31261000Y-41704126D01*
X31103431Y-41323720D01*
X30812280Y-41032569D01*
X30431874Y-40875000D01*
X30020126Y-40875000D01*
X29639720Y-41032569D01*
X29348569Y-41323720D01*
X29191000Y-41704126D01*
X29191000Y-42115874D01*
X29348569Y-42496280D01*
X29639720Y-42787431D01*
X29917463Y-42902476D01*
X29548183Y-43055437D01*
X29085437Y-43518183D01*
X28835000Y-44122789D01*
X7733591Y-44122789D01*
X7744563Y-44111817D01*
X7995000Y-43507211D01*
X7995000Y-42852789D01*
X7744563Y-42248183D01*
X7454506Y-41958126D01*
X14205000Y-41958126D01*
X14205000Y-42369874D01*
X14362569Y-42750280D01*
X14653720Y-43041431D01*
X15034126Y-43199000D01*
X15445874Y-43199000D01*
X15826280Y-43041431D01*
X16117431Y-42750280D01*
X16275000Y-42369874D01*
X16275000Y-41958126D01*
X16117431Y-41577720D01*
X15826280Y-41286569D01*
X15445874Y-41129000D01*
X15034126Y-41129000D01*
X14653720Y-41286569D01*
X14362569Y-41577720D01*
X14205000Y-41958126D01*
X7454506Y-41958126D01*
X7281817Y-41785437D01*
X6677211Y-41535000D01*
X6022789Y-41535000D01*
X5418183Y-41785437D01*
X5080000Y-42123620D01*
X4741817Y-41785437D01*
X4137211Y-41535000D01*
X3482789Y-41535000D01*
X2878183Y-41785437D01*
X2415437Y-42248183D01*
X2165000Y-42852789D01*
X760000Y-42852789D01*
X760000Y-37555975D01*
X1075000Y-37555975D01*
X1075000Y-38644025D01*
X1491379Y-39649253D01*
X2260747Y-40418621D01*
X3265975Y-40835000D01*
X4354025Y-40835000D01*
X5359253Y-40418621D01*
X6128621Y-39649253D01*
X6545000Y-38644025D01*
X6545000Y-38275126D01*
X11157000Y-38275126D01*
X11157000Y-38686874D01*
X11314569Y-39067280D01*
X11605720Y-39358431D01*
X11940256Y-39497000D01*
X11605720Y-39635569D01*
X11314569Y-39926720D01*
X11157000Y-40307126D01*
X11157000Y-40718874D01*
X11314569Y-41099280D01*
X11605720Y-41390431D01*
X11986126Y-41548000D01*
X12397874Y-41548000D01*
X12778280Y-41390431D01*
X13069431Y-41099280D01*
X13227000Y-40718874D01*
X13227000Y-40307126D01*
X13069431Y-39926720D01*
X12778280Y-39635569D01*
X12443744Y-39497000D01*
X12778280Y-39358431D01*
X13069431Y-39067280D01*
X13227000Y-38686874D01*
X13227000Y-38275126D01*
X13069431Y-37894720D01*
X12778280Y-37603569D01*
X12397874Y-37446000D01*
X11986126Y-37446000D01*
X11605720Y-37603569D01*
X11314569Y-37894720D01*
X11157000Y-38275126D01*
X6545000Y-38275126D01*
X6545000Y-37555975D01*
X6474647Y-37386126D01*
X14205000Y-37386126D01*
X14205000Y-37797874D01*
X14362569Y-38178280D01*
X14653720Y-38469431D01*
X14834953Y-38544500D01*
X14653720Y-38619569D01*
X14362569Y-38910720D01*
X14205000Y-39291126D01*
X14205000Y-39702874D01*
X14362569Y-40083280D01*
X14653720Y-40374431D01*
X15034126Y-40532000D01*
X15445874Y-40532000D01*
X15826280Y-40374431D01*
X16117431Y-40083280D01*
X16275000Y-39702874D01*
X16275000Y-39291126D01*
X16117431Y-38910720D01*
X15826280Y-38619569D01*
X15645047Y-38544500D01*
X15826280Y-38469431D01*
X16117431Y-38178280D01*
X16182526Y-38021126D01*
X26270000Y-38021126D01*
X26270000Y-38432874D01*
X26427569Y-38813280D01*
X26718720Y-39104431D01*
X26899953Y-39179500D01*
X26718720Y-39254569D01*
X26427569Y-39545720D01*
X26270000Y-39926126D01*
X26270000Y-40337874D01*
X26427569Y-40718280D01*
X26718720Y-41009431D01*
X27099126Y-41167000D01*
X27510874Y-41167000D01*
X27891280Y-41009431D01*
X28182431Y-40718280D01*
X28340000Y-40337874D01*
X28340000Y-39926126D01*
X28182431Y-39545720D01*
X27891280Y-39254569D01*
X27710047Y-39179500D01*
X27891280Y-39104431D01*
X28182431Y-38813280D01*
X28340000Y-38432874D01*
X28340000Y-38021126D01*
X28182431Y-37640720D01*
X27891280Y-37349569D01*
X27826234Y-37322626D01*
X29191000Y-37322626D01*
X29191000Y-37734374D01*
X29348569Y-38114780D01*
X29639720Y-38405931D01*
X29820953Y-38481000D01*
X29639720Y-38556069D01*
X29348569Y-38847220D01*
X29191000Y-39227626D01*
X29191000Y-39639374D01*
X29348569Y-40019780D01*
X29639720Y-40310931D01*
X30020126Y-40468500D01*
X30431874Y-40468500D01*
X30812280Y-40310931D01*
X31103431Y-40019780D01*
X31261000Y-39639374D01*
X31261000Y-39227626D01*
X31103431Y-38847220D01*
X30812280Y-38556069D01*
X30631047Y-38481000D01*
X30812280Y-38405931D01*
X31103431Y-38114780D01*
X31261000Y-37734374D01*
X31261000Y-37640126D01*
X36811000Y-37640126D01*
X36811000Y-38051874D01*
X36968569Y-38432280D01*
X37259720Y-38723431D01*
X37640126Y-38881000D01*
X38051874Y-38881000D01*
X38432280Y-38723431D01*
X38723431Y-38432280D01*
X38881000Y-38051874D01*
X38881000Y-38021126D01*
X40113000Y-38021126D01*
X40113000Y-38432874D01*
X40270569Y-38813280D01*
X40561720Y-39104431D01*
X40896256Y-39243000D01*
X40561720Y-39381569D01*
X40270569Y-39672720D01*
X40113000Y-40053126D01*
X40113000Y-40464874D01*
X40270569Y-40845280D01*
X40561720Y-41136431D01*
X40942126Y-41294000D01*
X41353874Y-41294000D01*
X41734280Y-41136431D01*
X42025431Y-40845280D01*
X42183000Y-40464874D01*
X42183000Y-40053126D01*
X42025431Y-39672720D01*
X41734280Y-39381569D01*
X41399744Y-39243000D01*
X41734280Y-39104431D01*
X42025431Y-38813280D01*
X42183000Y-38432874D01*
X42183000Y-38021126D01*
X42025431Y-37640720D01*
X41770837Y-37386126D01*
X42780000Y-37386126D01*
X42780000Y-37797874D01*
X42937569Y-38178280D01*
X43228720Y-38469431D01*
X43409953Y-38544500D01*
X43228720Y-38619569D01*
X42937569Y-38910720D01*
X42780000Y-39291126D01*
X42780000Y-39702874D01*
X42937569Y-40083280D01*
X43228720Y-40374431D01*
X43609126Y-40532000D01*
X44020874Y-40532000D01*
X44401280Y-40374431D01*
X44692431Y-40083280D01*
X44850000Y-39702874D01*
X44850000Y-39291126D01*
X44692431Y-38910720D01*
X44401280Y-38619569D01*
X44220047Y-38544500D01*
X44401280Y-38469431D01*
X44692431Y-38178280D01*
X44850000Y-37797874D01*
X44850000Y-37555975D01*
X56955000Y-37555975D01*
X56955000Y-38644025D01*
X57371379Y-39649253D01*
X58140747Y-40418621D01*
X59145975Y-40835000D01*
X60234025Y-40835000D01*
X61239253Y-40418621D01*
X62008621Y-39649253D01*
X62425000Y-38644025D01*
X62425000Y-37555975D01*
X62008621Y-36550747D01*
X61239253Y-35781379D01*
X60234025Y-35365000D01*
X59145975Y-35365000D01*
X58140747Y-35781379D01*
X57371379Y-36550747D01*
X56955000Y-37555975D01*
X44850000Y-37555975D01*
X44850000Y-37386126D01*
X44692431Y-37005720D01*
X44401280Y-36714569D01*
X44020874Y-36557000D01*
X43609126Y-36557000D01*
X43228720Y-36714569D01*
X42937569Y-37005720D01*
X42780000Y-37386126D01*
X41770837Y-37386126D01*
X41734280Y-37349569D01*
X41353874Y-37192000D01*
X40942126Y-37192000D01*
X40561720Y-37349569D01*
X40270569Y-37640720D01*
X40113000Y-38021126D01*
X38881000Y-38021126D01*
X38881000Y-37640126D01*
X38723431Y-37259720D01*
X38432280Y-36968569D01*
X38051874Y-36811000D01*
X37640126Y-36811000D01*
X37259720Y-36968569D01*
X36968569Y-37259720D01*
X36811000Y-37640126D01*
X31261000Y-37640126D01*
X31261000Y-37322626D01*
X31103431Y-36942220D01*
X30812280Y-36651069D01*
X30431874Y-36493500D01*
X30020126Y-36493500D01*
X29639720Y-36651069D01*
X29348569Y-36942220D01*
X29191000Y-37322626D01*
X27826234Y-37322626D01*
X27510874Y-37192000D01*
X27099126Y-37192000D01*
X26718720Y-37349569D01*
X26427569Y-37640720D01*
X26270000Y-38021126D01*
X16182526Y-38021126D01*
X16275000Y-37797874D01*
X16275000Y-37386126D01*
X16117431Y-37005720D01*
X15826280Y-36714569D01*
X15445874Y-36557000D01*
X15034126Y-36557000D01*
X14653720Y-36714569D01*
X14362569Y-37005720D01*
X14205000Y-37386126D01*
X6474647Y-37386126D01*
X6128621Y-36550747D01*
X5359253Y-35781379D01*
X4354025Y-35365000D01*
X3265975Y-35365000D01*
X2260747Y-35781379D01*
X1491379Y-36550747D01*
X1075000Y-37555975D01*
X760000Y-37555975D01*
X760000Y-20053074D01*
X2154149Y-20053074D01*
X2178044Y-20707059D01*
X2382342Y-21200274D01*
X2650234Y-21300161D01*
X3630395Y-20320000D01*
X2650234Y-19339839D01*
X2382342Y-19439726D01*
X2154149Y-20053074D01*
X760000Y-20053074D01*
X760000Y-17452789D01*
X2165000Y-17452789D01*
X2165000Y-18107211D01*
X2415437Y-18711817D01*
X2839077Y-19135457D01*
X2829839Y-19160234D01*
X3810000Y-20140395D01*
X4790161Y-19160234D01*
X4780923Y-19135457D01*
X5080000Y-18836380D01*
X5293620Y-19050000D01*
X4994543Y-19349077D01*
X4969766Y-19339839D01*
X3989605Y-20320000D01*
X4969766Y-21300161D01*
X4994543Y-21290923D01*
X5293620Y-21590000D01*
X5080000Y-21803620D01*
X4780923Y-21504543D01*
X4790161Y-21479766D01*
X3810000Y-20499605D01*
X2829839Y-21479766D01*
X2839077Y-21504543D01*
X2415437Y-21928183D01*
X2165000Y-22532789D01*
X2165000Y-23187211D01*
X2415437Y-23791817D01*
X2753620Y-24130000D01*
X2415437Y-24468183D01*
X2165000Y-25072789D01*
X2165000Y-25727211D01*
X2415437Y-26331817D01*
X2753620Y-26670000D01*
X2415437Y-27008183D01*
X2165000Y-27612789D01*
X2165000Y-28267211D01*
X2415437Y-28871817D01*
X2753620Y-29210000D01*
X2415437Y-29548183D01*
X2165000Y-30152789D01*
X2165000Y-30807211D01*
X2415437Y-31411817D01*
X2753620Y-31750000D01*
X2415437Y-32088183D01*
X2165000Y-32692789D01*
X2165000Y-33347211D01*
X2415437Y-33951817D01*
X2878183Y-34414563D01*
X3482789Y-34665000D01*
X4137211Y-34665000D01*
X4741817Y-34414563D01*
X5080000Y-34076380D01*
X5418183Y-34414563D01*
X6022789Y-34665000D01*
X6677211Y-34665000D01*
X7281817Y-34414563D01*
X7739254Y-33957126D01*
X11157000Y-33957126D01*
X11157000Y-34368874D01*
X11314569Y-34749280D01*
X11605720Y-35040431D01*
X11786953Y-35115500D01*
X11605720Y-35190569D01*
X11314569Y-35481720D01*
X11157000Y-35862126D01*
X11157000Y-36273874D01*
X11314569Y-36654280D01*
X11605720Y-36945431D01*
X11986126Y-37103000D01*
X12397874Y-37103000D01*
X12778280Y-36945431D01*
X13069431Y-36654280D01*
X13227000Y-36273874D01*
X13227000Y-35862126D01*
X13069431Y-35481720D01*
X12778280Y-35190569D01*
X12597047Y-35115500D01*
X12778280Y-35040431D01*
X12972585Y-34846126D01*
X14205000Y-34846126D01*
X14205000Y-35257874D01*
X14362569Y-35638280D01*
X14653720Y-35929431D01*
X15034126Y-36087000D01*
X15445874Y-36087000D01*
X15826280Y-35929431D01*
X16117431Y-35638280D01*
X16275000Y-35257874D01*
X16275000Y-34846126D01*
X16117431Y-34465720D01*
X15826280Y-34174569D01*
X15445874Y-34017000D01*
X15034126Y-34017000D01*
X14653720Y-34174569D01*
X14362569Y-34465720D01*
X14205000Y-34846126D01*
X12972585Y-34846126D01*
X13069431Y-34749280D01*
X13227000Y-34368874D01*
X13227000Y-33957126D01*
X13069431Y-33576720D01*
X12778280Y-33285569D01*
X12397874Y-33128000D01*
X11986126Y-33128000D01*
X11605720Y-33285569D01*
X11314569Y-33576720D01*
X11157000Y-33957126D01*
X7739254Y-33957126D01*
X7744563Y-33951817D01*
X7995000Y-33347211D01*
X7995000Y-32692789D01*
X7744563Y-32088183D01*
X7406380Y-31750000D01*
X7485254Y-31671126D01*
X13316000Y-31671126D01*
X13316000Y-32082874D01*
X13473569Y-32463280D01*
X13764720Y-32754431D01*
X14145126Y-32912000D01*
X14556874Y-32912000D01*
X14937280Y-32754431D01*
X15228431Y-32463280D01*
X15348000Y-32174614D01*
X15348000Y-32336874D01*
X15505569Y-32717280D01*
X15796720Y-33008431D01*
X16110000Y-33138196D01*
X16110000Y-33225874D01*
X16267569Y-33606280D01*
X16558720Y-33897431D01*
X16939126Y-34055000D01*
X17350874Y-34055000D01*
X17731280Y-33897431D01*
X18022431Y-33606280D01*
X18180000Y-33225874D01*
X18180000Y-33138196D01*
X18493280Y-33008431D01*
X18784431Y-32717280D01*
X18796921Y-32687126D01*
X23857000Y-32687126D01*
X23857000Y-33098874D01*
X24014569Y-33479280D01*
X24305720Y-33770431D01*
X24686126Y-33928000D01*
X25097874Y-33928000D01*
X25478280Y-33770431D01*
X25545585Y-33703126D01*
X26270000Y-33703126D01*
X26270000Y-34114874D01*
X26427569Y-34495280D01*
X26718720Y-34786431D01*
X26746650Y-34798000D01*
X26718720Y-34809569D01*
X26427569Y-35100720D01*
X26270000Y-35481126D01*
X26270000Y-35892874D01*
X26427569Y-36273280D01*
X26718720Y-36564431D01*
X27099126Y-36722000D01*
X27510874Y-36722000D01*
X27891280Y-36564431D01*
X28182431Y-36273280D01*
X28340000Y-35892874D01*
X28340000Y-35481126D01*
X28182431Y-35100720D01*
X27891280Y-34809569D01*
X27863350Y-34798000D01*
X27891280Y-34786431D01*
X28182431Y-34495280D01*
X28247526Y-34338126D01*
X29191000Y-34338126D01*
X29191000Y-34749874D01*
X29348569Y-35130280D01*
X29639720Y-35421431D01*
X30020126Y-35579000D01*
X30431874Y-35579000D01*
X30812280Y-35421431D01*
X31103431Y-35130280D01*
X31261000Y-34749874D01*
X31261000Y-34338126D01*
X31103431Y-33957720D01*
X30812280Y-33666569D01*
X30431874Y-33509000D01*
X30020126Y-33509000D01*
X29639720Y-33666569D01*
X29348569Y-33957720D01*
X29191000Y-34338126D01*
X28247526Y-34338126D01*
X28340000Y-34114874D01*
X28340000Y-33703126D01*
X28182431Y-33322720D01*
X27891280Y-33031569D01*
X27510874Y-32874000D01*
X27099126Y-32874000D01*
X26718720Y-33031569D01*
X26427569Y-33322720D01*
X26270000Y-33703126D01*
X25545585Y-33703126D01*
X25769431Y-33479280D01*
X25927000Y-33098874D01*
X25927000Y-32687126D01*
X25769431Y-32306720D01*
X25478280Y-32015569D01*
X25097874Y-31858000D01*
X24686126Y-31858000D01*
X24305720Y-32015569D01*
X24014569Y-32306720D01*
X23857000Y-32687126D01*
X18796921Y-32687126D01*
X18942000Y-32336874D01*
X18942000Y-31925126D01*
X18836790Y-31671126D01*
X28302000Y-31671126D01*
X28302000Y-32082874D01*
X28459569Y-32463280D01*
X28750720Y-32754431D01*
X29131126Y-32912000D01*
X29542874Y-32912000D01*
X29923280Y-32754431D01*
X30214431Y-32463280D01*
X30334000Y-32174614D01*
X30334000Y-32336874D01*
X30491569Y-32717280D01*
X30782720Y-33008431D01*
X31096000Y-33138196D01*
X31096000Y-33225874D01*
X31253569Y-33606280D01*
X31544720Y-33897431D01*
X31925126Y-34055000D01*
X32336874Y-34055000D01*
X32717280Y-33897431D01*
X33008431Y-33606280D01*
X33020921Y-33576126D01*
X40113000Y-33576126D01*
X40113000Y-33987874D01*
X40270569Y-34368280D01*
X40561720Y-34659431D01*
X40896256Y-34798000D01*
X40561720Y-34936569D01*
X40270569Y-35227720D01*
X40113000Y-35608126D01*
X40113000Y-36019874D01*
X40270569Y-36400280D01*
X40561720Y-36691431D01*
X40942126Y-36849000D01*
X41353874Y-36849000D01*
X41734280Y-36691431D01*
X42025431Y-36400280D01*
X42183000Y-36019874D01*
X42183000Y-35608126D01*
X42025431Y-35227720D01*
X41734280Y-34936569D01*
X41515931Y-34846126D01*
X42780000Y-34846126D01*
X42780000Y-35257874D01*
X42937569Y-35638280D01*
X43228720Y-35929431D01*
X43609126Y-36087000D01*
X44020874Y-36087000D01*
X44401280Y-35929431D01*
X44692431Y-35638280D01*
X44850000Y-35257874D01*
X44850000Y-34846126D01*
X44692431Y-34465720D01*
X44401280Y-34174569D01*
X44020874Y-34017000D01*
X43609126Y-34017000D01*
X43228720Y-34174569D01*
X42937569Y-34465720D01*
X42780000Y-34846126D01*
X41515931Y-34846126D01*
X41399744Y-34798000D01*
X41734280Y-34659431D01*
X42025431Y-34368280D01*
X42183000Y-33987874D01*
X42183000Y-33576126D01*
X42025431Y-33195720D01*
X41734280Y-32904569D01*
X41353874Y-32747000D01*
X40942126Y-32747000D01*
X40561720Y-32904569D01*
X40270569Y-33195720D01*
X40113000Y-33576126D01*
X33020921Y-33576126D01*
X33166000Y-33225874D01*
X33166000Y-33138196D01*
X33479280Y-33008431D01*
X33770431Y-32717280D01*
X33928000Y-32336874D01*
X33928000Y-31925126D01*
X33822790Y-31671126D01*
X41891000Y-31671126D01*
X41891000Y-32082874D01*
X42048569Y-32463280D01*
X42339720Y-32754431D01*
X42720126Y-32912000D01*
X43131874Y-32912000D01*
X43512280Y-32754431D01*
X43803431Y-32463280D01*
X43852197Y-32345547D01*
X43953569Y-32590280D01*
X44244720Y-32881431D01*
X44625126Y-33039000D01*
X44685000Y-33039000D01*
X44685000Y-33225874D01*
X44842569Y-33606280D01*
X45133720Y-33897431D01*
X45514126Y-34055000D01*
X45925874Y-34055000D01*
X46306280Y-33897431D01*
X46597431Y-33606280D01*
X46755000Y-33225874D01*
X46755000Y-33011196D01*
X47068280Y-32881431D01*
X47359431Y-32590280D01*
X47517000Y-32209874D01*
X47517000Y-31798126D01*
X47359431Y-31417720D01*
X47247211Y-31305500D01*
X47359431Y-31193280D01*
X47517000Y-30812874D01*
X47517000Y-30401126D01*
X47359431Y-30020720D01*
X47068280Y-29729569D01*
X46687874Y-29572000D01*
X46628000Y-29572000D01*
X46628000Y-29258126D01*
X46575395Y-29131126D01*
X47479000Y-29131126D01*
X47479000Y-29542874D01*
X47636569Y-29923280D01*
X47927720Y-30214431D01*
X48308126Y-30372000D01*
X48719874Y-30372000D01*
X49100280Y-30214431D01*
X49391431Y-29923280D01*
X49549000Y-29542874D01*
X49549000Y-29131126D01*
X49391431Y-28750720D01*
X49100280Y-28459569D01*
X48719874Y-28302000D01*
X48308126Y-28302000D01*
X47927720Y-28459569D01*
X47636569Y-28750720D01*
X47479000Y-29131126D01*
X46575395Y-29131126D01*
X46470431Y-28877720D01*
X46179280Y-28586569D01*
X45798874Y-28429000D01*
X45387126Y-28429000D01*
X45006720Y-28586569D01*
X44715569Y-28877720D01*
X44558000Y-29258126D01*
X44558000Y-29599804D01*
X44244720Y-29729569D01*
X43953569Y-30020720D01*
X43796000Y-30401126D01*
X43796000Y-30812874D01*
X43953569Y-31193280D01*
X44065789Y-31305500D01*
X43953569Y-31417720D01*
X43904803Y-31535453D01*
X43803431Y-31290720D01*
X43512280Y-30999569D01*
X43131874Y-30842000D01*
X42720126Y-30842000D01*
X42339720Y-30999569D01*
X42048569Y-31290720D01*
X41891000Y-31671126D01*
X33822790Y-31671126D01*
X33770431Y-31544720D01*
X33531211Y-31305500D01*
X33770431Y-31066280D01*
X33928000Y-30685874D01*
X33928000Y-30274126D01*
X33770431Y-29893720D01*
X33479280Y-29602569D01*
X33166000Y-29472804D01*
X33166000Y-29258126D01*
X33113395Y-29131126D01*
X33890000Y-29131126D01*
X33890000Y-29542874D01*
X34047569Y-29923280D01*
X34338720Y-30214431D01*
X34719126Y-30372000D01*
X35130874Y-30372000D01*
X35511280Y-30214431D01*
X35802431Y-29923280D01*
X35960000Y-29542874D01*
X35960000Y-29131126D01*
X35802431Y-28750720D01*
X35511280Y-28459569D01*
X35130874Y-28302000D01*
X34719126Y-28302000D01*
X34338720Y-28459569D01*
X34047569Y-28750720D01*
X33890000Y-29131126D01*
X33113395Y-29131126D01*
X33008431Y-28877720D01*
X32717280Y-28586569D01*
X32336874Y-28429000D01*
X31925126Y-28429000D01*
X31544720Y-28586569D01*
X31253569Y-28877720D01*
X31096000Y-29258126D01*
X31096000Y-29472804D01*
X30782720Y-29602569D01*
X30491569Y-29893720D01*
X30334000Y-30274126D01*
X30334000Y-30685874D01*
X30491569Y-31066280D01*
X30730789Y-31305500D01*
X30491569Y-31544720D01*
X30372000Y-31833386D01*
X30372000Y-31671126D01*
X30214431Y-31290720D01*
X29923280Y-30999569D01*
X29542874Y-30842000D01*
X29131126Y-30842000D01*
X28750720Y-30999569D01*
X28459569Y-31290720D01*
X28302000Y-31671126D01*
X18836790Y-31671126D01*
X18784431Y-31544720D01*
X18545211Y-31305500D01*
X18784431Y-31066280D01*
X18942000Y-30685874D01*
X18942000Y-30274126D01*
X18784431Y-29893720D01*
X18493280Y-29602569D01*
X18180000Y-29472804D01*
X18180000Y-29258126D01*
X18127395Y-29131126D01*
X18904000Y-29131126D01*
X18904000Y-29542874D01*
X19061569Y-29923280D01*
X19352720Y-30214431D01*
X19733126Y-30372000D01*
X20144874Y-30372000D01*
X20525280Y-30214431D01*
X20816431Y-29923280D01*
X20974000Y-29542874D01*
X20974000Y-29131126D01*
X20816431Y-28750720D01*
X20525280Y-28459569D01*
X20144874Y-28302000D01*
X19733126Y-28302000D01*
X19352720Y-28459569D01*
X19061569Y-28750720D01*
X18904000Y-29131126D01*
X18127395Y-29131126D01*
X18022431Y-28877720D01*
X17731280Y-28586569D01*
X17350874Y-28429000D01*
X16939126Y-28429000D01*
X16558720Y-28586569D01*
X16267569Y-28877720D01*
X16110000Y-29258126D01*
X16110000Y-29472804D01*
X15796720Y-29602569D01*
X15505569Y-29893720D01*
X15348000Y-30274126D01*
X15348000Y-30685874D01*
X15505569Y-31066280D01*
X15744789Y-31305500D01*
X15505569Y-31544720D01*
X15386000Y-31833386D01*
X15386000Y-31671126D01*
X15228431Y-31290720D01*
X14937280Y-30999569D01*
X14556874Y-30842000D01*
X14145126Y-30842000D01*
X13764720Y-30999569D01*
X13473569Y-31290720D01*
X13316000Y-31671126D01*
X7485254Y-31671126D01*
X7744563Y-31411817D01*
X7995000Y-30807211D01*
X7995000Y-30152789D01*
X7744563Y-29548183D01*
X7406380Y-29210000D01*
X7744563Y-28871817D01*
X7995000Y-28267211D01*
X7995000Y-27612789D01*
X7744563Y-27008183D01*
X7708506Y-26972126D01*
X11411000Y-26972126D01*
X11411000Y-27383874D01*
X11568569Y-27764280D01*
X11807789Y-28003500D01*
X11568569Y-28242720D01*
X11411000Y-28623126D01*
X11411000Y-29034874D01*
X11568569Y-29415280D01*
X11744289Y-29591000D01*
X11568569Y-29766720D01*
X11411000Y-30147126D01*
X11411000Y-30558874D01*
X11568569Y-30939280D01*
X11859720Y-31230431D01*
X12240126Y-31388000D01*
X12651874Y-31388000D01*
X13032280Y-31230431D01*
X13323431Y-30939280D01*
X13481000Y-30558874D01*
X13481000Y-30147126D01*
X13323431Y-29766720D01*
X13147711Y-29591000D01*
X13316000Y-29422711D01*
X13316000Y-29542874D01*
X13473569Y-29923280D01*
X13764720Y-30214431D01*
X14145126Y-30372000D01*
X14556874Y-30372000D01*
X14937280Y-30214431D01*
X15228431Y-29923280D01*
X15386000Y-29542874D01*
X15386000Y-29131126D01*
X15228431Y-28750720D01*
X14937280Y-28459569D01*
X14556874Y-28302000D01*
X14145126Y-28302000D01*
X13764720Y-28459569D01*
X13481000Y-28743289D01*
X13481000Y-28623126D01*
X13323431Y-28242720D01*
X13084211Y-28003500D01*
X13208000Y-27879711D01*
X13383720Y-28055431D01*
X13764126Y-28213000D01*
X14175874Y-28213000D01*
X14556280Y-28055431D01*
X14605000Y-28006711D01*
X14653720Y-28055431D01*
X15034126Y-28213000D01*
X15445874Y-28213000D01*
X15826280Y-28055431D01*
X15875000Y-28006711D01*
X15923720Y-28055431D01*
X16304126Y-28213000D01*
X16715874Y-28213000D01*
X17096280Y-28055431D01*
X17145000Y-28006711D01*
X17193720Y-28055431D01*
X17574126Y-28213000D01*
X17985874Y-28213000D01*
X18366280Y-28055431D01*
X18478500Y-27943211D01*
X18590720Y-28055431D01*
X18971126Y-28213000D01*
X19382874Y-28213000D01*
X19763280Y-28055431D01*
X20054431Y-27764280D01*
X20212000Y-27383874D01*
X20212000Y-26972126D01*
X20185698Y-26908626D01*
X26397000Y-26908626D01*
X26397000Y-27320374D01*
X26554569Y-27700780D01*
X26730289Y-27876500D01*
X26554569Y-28052220D01*
X26397000Y-28432626D01*
X26397000Y-28844374D01*
X26554569Y-29224780D01*
X26762039Y-29432250D01*
X26554569Y-29639720D01*
X26397000Y-30020126D01*
X26397000Y-30431874D01*
X26554569Y-30812280D01*
X26845720Y-31103431D01*
X27226126Y-31261000D01*
X27637874Y-31261000D01*
X28018280Y-31103431D01*
X28309431Y-30812280D01*
X28467000Y-30431874D01*
X28467000Y-30020126D01*
X28309431Y-29639720D01*
X28101961Y-29432250D01*
X28302000Y-29232211D01*
X28302000Y-29542874D01*
X28459569Y-29923280D01*
X28750720Y-30214431D01*
X29131126Y-30372000D01*
X29542874Y-30372000D01*
X29923280Y-30214431D01*
X30214431Y-29923280D01*
X30372000Y-29542874D01*
X30372000Y-29131126D01*
X30214431Y-28750720D01*
X29923280Y-28459569D01*
X29542874Y-28302000D01*
X29131126Y-28302000D01*
X28750720Y-28459569D01*
X28467000Y-28743289D01*
X28467000Y-28432626D01*
X28309431Y-28052220D01*
X28133711Y-27876500D01*
X28309431Y-27700780D01*
X28467000Y-27320374D01*
X28467000Y-26908626D01*
X28309431Y-26528220D01*
X28054837Y-26273626D01*
X40176500Y-26273626D01*
X40176500Y-26685374D01*
X40314796Y-27019250D01*
X40176500Y-27353126D01*
X40176500Y-27764874D01*
X40334069Y-28145280D01*
X40446289Y-28257500D01*
X40334069Y-28369720D01*
X40176500Y-28750126D01*
X40176500Y-29161874D01*
X40334069Y-29542280D01*
X40446289Y-29654500D01*
X40334069Y-29766720D01*
X40176500Y-30147126D01*
X40176500Y-30558874D01*
X40334069Y-30939280D01*
X40625220Y-31230431D01*
X41005626Y-31388000D01*
X41417374Y-31388000D01*
X41797780Y-31230431D01*
X42088931Y-30939280D01*
X42246500Y-30558874D01*
X42246500Y-30147126D01*
X42228175Y-30102886D01*
X42339720Y-30214431D01*
X42720126Y-30372000D01*
X43131874Y-30372000D01*
X43512280Y-30214431D01*
X43803431Y-29923280D01*
X43961000Y-29542874D01*
X43961000Y-29131126D01*
X43803431Y-28750720D01*
X43512280Y-28459569D01*
X43131874Y-28302000D01*
X42720126Y-28302000D01*
X42339720Y-28459569D01*
X42188701Y-28610588D01*
X42088931Y-28369720D01*
X41976711Y-28257500D01*
X42088931Y-28145280D01*
X42246500Y-27764874D01*
X42246500Y-27353126D01*
X42108204Y-27019250D01*
X42246500Y-26685374D01*
X42246500Y-26273626D01*
X42088931Y-25893220D01*
X41797780Y-25602069D01*
X41417374Y-25444500D01*
X41005626Y-25444500D01*
X40625220Y-25602069D01*
X40334069Y-25893220D01*
X40176500Y-26273626D01*
X28054837Y-26273626D01*
X28018280Y-26237069D01*
X27637874Y-26079500D01*
X27226126Y-26079500D01*
X26845720Y-26237069D01*
X26554569Y-26528220D01*
X26397000Y-26908626D01*
X20185698Y-26908626D01*
X20054431Y-26591720D01*
X19763280Y-26300569D01*
X19382874Y-26143000D01*
X18971126Y-26143000D01*
X18590720Y-26300569D01*
X18478500Y-26412789D01*
X18366280Y-26300569D01*
X17985874Y-26143000D01*
X17574126Y-26143000D01*
X17193720Y-26300569D01*
X17145000Y-26349289D01*
X17096280Y-26300569D01*
X16715874Y-26143000D01*
X16304126Y-26143000D01*
X15923720Y-26300569D01*
X15875000Y-26349289D01*
X15826280Y-26300569D01*
X15445874Y-26143000D01*
X15034126Y-26143000D01*
X14653720Y-26300569D01*
X14605000Y-26349289D01*
X14556280Y-26300569D01*
X14175874Y-26143000D01*
X13764126Y-26143000D01*
X13383720Y-26300569D01*
X13208000Y-26476289D01*
X13032280Y-26300569D01*
X12651874Y-26143000D01*
X12240126Y-26143000D01*
X11859720Y-26300569D01*
X11568569Y-26591720D01*
X11411000Y-26972126D01*
X7708506Y-26972126D01*
X7406380Y-26670000D01*
X7744563Y-26331817D01*
X7995000Y-25727211D01*
X7995000Y-25072789D01*
X7744563Y-24468183D01*
X7406380Y-24130000D01*
X7744563Y-23791817D01*
X7995000Y-23187211D01*
X7995000Y-22913789D01*
X14397000Y-22913789D01*
X14397000Y-23568211D01*
X14647437Y-24172817D01*
X15110183Y-24635563D01*
X15714789Y-24886000D01*
X16369211Y-24886000D01*
X16973817Y-24635563D01*
X17208614Y-24400766D01*
X20061839Y-24400766D01*
X20161726Y-24668658D01*
X20775074Y-24896851D01*
X21429059Y-24872956D01*
X21922274Y-24668658D01*
X22022161Y-24400766D01*
X21042000Y-23420605D01*
X20061839Y-24400766D01*
X17208614Y-24400766D01*
X17436563Y-24172817D01*
X17687000Y-23568211D01*
X17687000Y-22974074D01*
X19386149Y-22974074D01*
X19410044Y-23628059D01*
X19614342Y-24121274D01*
X19882234Y-24221161D01*
X20862395Y-23241000D01*
X21221605Y-23241000D01*
X22201766Y-24221161D01*
X22469658Y-24121274D01*
X22697851Y-23507926D01*
X22673956Y-22853941D01*
X22593535Y-22659789D01*
X28240000Y-22659789D01*
X28240000Y-23314211D01*
X28490437Y-23918817D01*
X28953183Y-24381563D01*
X29557789Y-24632000D01*
X30212211Y-24632000D01*
X30816817Y-24381563D01*
X31279563Y-23918817D01*
X31530000Y-23314211D01*
X31530000Y-22659789D01*
X33240000Y-22659789D01*
X33240000Y-23314211D01*
X33490437Y-23918817D01*
X33953183Y-24381563D01*
X34557789Y-24632000D01*
X35212211Y-24632000D01*
X35816817Y-24381563D01*
X36279563Y-23918817D01*
X36530000Y-23314211D01*
X36530000Y-22659789D01*
X41956000Y-22659789D01*
X41956000Y-23314211D01*
X42206437Y-23918817D01*
X42669183Y-24381563D01*
X43273789Y-24632000D01*
X43928211Y-24632000D01*
X44532817Y-24381563D01*
X44995563Y-23918817D01*
X45246000Y-23314211D01*
X45246000Y-22659789D01*
X46956000Y-22659789D01*
X46956000Y-23314211D01*
X47206437Y-23918817D01*
X47669183Y-24381563D01*
X48273789Y-24632000D01*
X48928211Y-24632000D01*
X49532817Y-24381563D01*
X49995563Y-23918817D01*
X50246000Y-23314211D01*
X50246000Y-22659789D01*
X49995563Y-22055183D01*
X49532817Y-21592437D01*
X48928211Y-21342000D01*
X48273789Y-21342000D01*
X47669183Y-21592437D01*
X47206437Y-22055183D01*
X46956000Y-22659789D01*
X45246000Y-22659789D01*
X44995563Y-22055183D01*
X44532817Y-21592437D01*
X43928211Y-21342000D01*
X43273789Y-21342000D01*
X42669183Y-21592437D01*
X42206437Y-22055183D01*
X41956000Y-22659789D01*
X36530000Y-22659789D01*
X36279563Y-22055183D01*
X35816817Y-21592437D01*
X35212211Y-21342000D01*
X34557789Y-21342000D01*
X33953183Y-21592437D01*
X33490437Y-22055183D01*
X33240000Y-22659789D01*
X31530000Y-22659789D01*
X31279563Y-22055183D01*
X30816817Y-21592437D01*
X30212211Y-21342000D01*
X29557789Y-21342000D01*
X28953183Y-21592437D01*
X28490437Y-22055183D01*
X28240000Y-22659789D01*
X22593535Y-22659789D01*
X22469658Y-22360726D01*
X22201766Y-22260839D01*
X21221605Y-23241000D01*
X20862395Y-23241000D01*
X19882234Y-22260839D01*
X19614342Y-22360726D01*
X19386149Y-22974074D01*
X17687000Y-22974074D01*
X17687000Y-22913789D01*
X17436563Y-22309183D01*
X17208614Y-22081234D01*
X20061839Y-22081234D01*
X21042000Y-23061395D01*
X22022161Y-22081234D01*
X21922274Y-21813342D01*
X21308926Y-21585149D01*
X20654941Y-21609044D01*
X20161726Y-21813342D01*
X20061839Y-22081234D01*
X17208614Y-22081234D01*
X16973817Y-21846437D01*
X16369211Y-21596000D01*
X15714789Y-21596000D01*
X15110183Y-21846437D01*
X14647437Y-22309183D01*
X14397000Y-22913789D01*
X7995000Y-22913789D01*
X7995000Y-22532789D01*
X7744563Y-21928183D01*
X7406380Y-21590000D01*
X7744563Y-21251817D01*
X7995000Y-20647211D01*
X7995000Y-19992789D01*
X7744563Y-19388183D01*
X7406380Y-19050000D01*
X7744563Y-18711817D01*
X7995000Y-18107211D01*
X7995000Y-17452789D01*
X55505000Y-17452789D01*
X55505000Y-18107211D01*
X55755437Y-18711817D01*
X56093620Y-19050000D01*
X55755437Y-19388183D01*
X55505000Y-19992789D01*
X55505000Y-20647211D01*
X55755437Y-21251817D01*
X56093620Y-21590000D01*
X55755437Y-21928183D01*
X55505000Y-22532789D01*
X55505000Y-23187211D01*
X55755437Y-23791817D01*
X56093620Y-24130000D01*
X55755437Y-24468183D01*
X55505000Y-25072789D01*
X55505000Y-25727211D01*
X55755437Y-26331817D01*
X56093620Y-26670000D01*
X55755437Y-27008183D01*
X55505000Y-27612789D01*
X55505000Y-28267211D01*
X55755437Y-28871817D01*
X56093620Y-29210000D01*
X55755437Y-29548183D01*
X55505000Y-30152789D01*
X55505000Y-30807211D01*
X55755437Y-31411817D01*
X56093620Y-31750000D01*
X55755437Y-32088183D01*
X55505000Y-32692789D01*
X55505000Y-33347211D01*
X55755437Y-33951817D01*
X56218183Y-34414563D01*
X56822789Y-34665000D01*
X57477211Y-34665000D01*
X58081817Y-34414563D01*
X58420000Y-34076380D01*
X58758183Y-34414563D01*
X59362789Y-34665000D01*
X60017211Y-34665000D01*
X60621817Y-34414563D01*
X61084563Y-33951817D01*
X61335000Y-33347211D01*
X61335000Y-32692789D01*
X61084563Y-32088183D01*
X60660923Y-31664543D01*
X60670161Y-31639766D01*
X59690000Y-30659605D01*
X58709839Y-31639766D01*
X58719077Y-31664543D01*
X58420000Y-31963620D01*
X58206380Y-31750000D01*
X58505457Y-31450923D01*
X58530234Y-31460161D01*
X59510395Y-30480000D01*
X59869605Y-30480000D01*
X60849766Y-31460161D01*
X61117658Y-31360274D01*
X61345851Y-30746926D01*
X61321956Y-30092941D01*
X61117658Y-29599726D01*
X60849766Y-29499839D01*
X59869605Y-30480000D01*
X59510395Y-30480000D01*
X58530234Y-29499839D01*
X58505457Y-29509077D01*
X58206380Y-29210000D01*
X58420000Y-28996380D01*
X58719077Y-29295457D01*
X58709839Y-29320234D01*
X59690000Y-30300395D01*
X60670161Y-29320234D01*
X60660923Y-29295457D01*
X61084563Y-28871817D01*
X61335000Y-28267211D01*
X61335000Y-27612789D01*
X61084563Y-27008183D01*
X60746380Y-26670000D01*
X61084563Y-26331817D01*
X61335000Y-25727211D01*
X61335000Y-25072789D01*
X61084563Y-24468183D01*
X60746380Y-24130000D01*
X61084563Y-23791817D01*
X61335000Y-23187211D01*
X61335000Y-22532789D01*
X61084563Y-21928183D01*
X60746380Y-21590000D01*
X61084563Y-21251817D01*
X61335000Y-20647211D01*
X61335000Y-19992789D01*
X61084563Y-19388183D01*
X60746380Y-19050000D01*
X61084563Y-18711817D01*
X61335000Y-18107211D01*
X61335000Y-17452789D01*
X61084563Y-16848183D01*
X60621817Y-16385437D01*
X60017211Y-16135000D01*
X59362789Y-16135000D01*
X58758183Y-16385437D01*
X58420000Y-16723620D01*
X58081817Y-16385437D01*
X57477211Y-16135000D01*
X56822789Y-16135000D01*
X56218183Y-16385437D01*
X55755437Y-16848183D01*
X55505000Y-17452789D01*
X7995000Y-17452789D01*
X7744563Y-16848183D01*
X7281817Y-16385437D01*
X6778912Y-16177126D01*
X11792000Y-16177126D01*
X11792000Y-16588874D01*
X11949569Y-16969280D01*
X12240720Y-17260431D01*
X12621126Y-17418000D01*
X13032874Y-17418000D01*
X13413280Y-17260431D01*
X13589000Y-17084711D01*
X13764720Y-17260431D01*
X14145126Y-17418000D01*
X14556874Y-17418000D01*
X14937280Y-17260431D01*
X14986000Y-17211711D01*
X15034720Y-17260431D01*
X15415126Y-17418000D01*
X15826874Y-17418000D01*
X16207280Y-17260431D01*
X16498431Y-16969280D01*
X16656000Y-16588874D01*
X16656000Y-16177126D01*
X25635000Y-16177126D01*
X25635000Y-16588874D01*
X25792569Y-16969280D01*
X26083720Y-17260431D01*
X26464126Y-17418000D01*
X26875874Y-17418000D01*
X27256280Y-17260431D01*
X27396500Y-17120211D01*
X27536720Y-17260431D01*
X27917126Y-17418000D01*
X28328874Y-17418000D01*
X28709280Y-17260431D01*
X28793500Y-17176211D01*
X28877720Y-17260431D01*
X29258126Y-17418000D01*
X29669874Y-17418000D01*
X30050280Y-17260431D01*
X30341431Y-16969280D01*
X30499000Y-16588874D01*
X30499000Y-16177126D01*
X32620000Y-16177126D01*
X32620000Y-16588874D01*
X32777569Y-16969280D01*
X33068720Y-17260431D01*
X33449126Y-17418000D01*
X33860874Y-17418000D01*
X34241280Y-17260431D01*
X34353500Y-17148211D01*
X34465720Y-17260431D01*
X34846126Y-17418000D01*
X35257874Y-17418000D01*
X35638280Y-17260431D01*
X35750500Y-17148211D01*
X35862720Y-17260431D01*
X36243126Y-17418000D01*
X36654874Y-17418000D01*
X37035280Y-17260431D01*
X37326431Y-16969280D01*
X37484000Y-16588874D01*
X37484000Y-16177126D01*
X37431395Y-16050126D01*
X40748000Y-16050126D01*
X40748000Y-16461874D01*
X40905569Y-16842280D01*
X41196720Y-17133431D01*
X41577126Y-17291000D01*
X41988874Y-17291000D01*
X42369280Y-17133431D01*
X42481500Y-17021211D01*
X42593720Y-17133431D01*
X42974126Y-17291000D01*
X43385874Y-17291000D01*
X43766280Y-17133431D01*
X43878500Y-17021211D01*
X43990720Y-17133431D01*
X44371126Y-17291000D01*
X44782874Y-17291000D01*
X45163280Y-17133431D01*
X45454431Y-16842280D01*
X45612000Y-16461874D01*
X45612000Y-16050126D01*
X47606000Y-16050126D01*
X47606000Y-16461874D01*
X47763569Y-16842280D01*
X48054720Y-17133431D01*
X48435126Y-17291000D01*
X48846874Y-17291000D01*
X49227280Y-17133431D01*
X49403000Y-16957711D01*
X49578720Y-17133431D01*
X49959126Y-17291000D01*
X50370874Y-17291000D01*
X50751280Y-17133431D01*
X50927000Y-16957711D01*
X51102720Y-17133431D01*
X51483126Y-17291000D01*
X51894874Y-17291000D01*
X52275280Y-17133431D01*
X52566431Y-16842280D01*
X52724000Y-16461874D01*
X52724000Y-16050126D01*
X52566431Y-15669720D01*
X52275280Y-15378569D01*
X51894874Y-15221000D01*
X51483126Y-15221000D01*
X51102720Y-15378569D01*
X50927000Y-15554289D01*
X50751280Y-15378569D01*
X50370874Y-15221000D01*
X49959126Y-15221000D01*
X49578720Y-15378569D01*
X49403000Y-15554289D01*
X49227280Y-15378569D01*
X48846874Y-15221000D01*
X48435126Y-15221000D01*
X48054720Y-15378569D01*
X47763569Y-15669720D01*
X47606000Y-16050126D01*
X45612000Y-16050126D01*
X45454431Y-15669720D01*
X45163280Y-15378569D01*
X44782874Y-15221000D01*
X44371126Y-15221000D01*
X43990720Y-15378569D01*
X43878500Y-15490789D01*
X43766280Y-15378569D01*
X43385874Y-15221000D01*
X42974126Y-15221000D01*
X42593720Y-15378569D01*
X42481500Y-15490789D01*
X42369280Y-15378569D01*
X41988874Y-15221000D01*
X41577126Y-15221000D01*
X41196720Y-15378569D01*
X40905569Y-15669720D01*
X40748000Y-16050126D01*
X37431395Y-16050126D01*
X37326431Y-15796720D01*
X37035280Y-15505569D01*
X36654874Y-15348000D01*
X36243126Y-15348000D01*
X35862720Y-15505569D01*
X35750500Y-15617789D01*
X35638280Y-15505569D01*
X35257874Y-15348000D01*
X34846126Y-15348000D01*
X34465720Y-15505569D01*
X34353500Y-15617789D01*
X34241280Y-15505569D01*
X33860874Y-15348000D01*
X33449126Y-15348000D01*
X33068720Y-15505569D01*
X32777569Y-15796720D01*
X32620000Y-16177126D01*
X30499000Y-16177126D01*
X30341431Y-15796720D01*
X30050280Y-15505569D01*
X29669874Y-15348000D01*
X29258126Y-15348000D01*
X28877720Y-15505569D01*
X28793500Y-15589789D01*
X28709280Y-15505569D01*
X28328874Y-15348000D01*
X27917126Y-15348000D01*
X27536720Y-15505569D01*
X27396500Y-15645789D01*
X27256280Y-15505569D01*
X26875874Y-15348000D01*
X26464126Y-15348000D01*
X26083720Y-15505569D01*
X25792569Y-15796720D01*
X25635000Y-16177126D01*
X16656000Y-16177126D01*
X16498431Y-15796720D01*
X16207280Y-15505569D01*
X15826874Y-15348000D01*
X15415126Y-15348000D01*
X15034720Y-15505569D01*
X14986000Y-15554289D01*
X14937280Y-15505569D01*
X14556874Y-15348000D01*
X14145126Y-15348000D01*
X13764720Y-15505569D01*
X13589000Y-15681289D01*
X13413280Y-15505569D01*
X13032874Y-15348000D01*
X12621126Y-15348000D01*
X12240720Y-15505569D01*
X11949569Y-15796720D01*
X11792000Y-16177126D01*
X6778912Y-16177126D01*
X6677211Y-16135000D01*
X6022789Y-16135000D01*
X5418183Y-16385437D01*
X5080000Y-16723620D01*
X4741817Y-16385437D01*
X4137211Y-16135000D01*
X3482789Y-16135000D01*
X2878183Y-16385437D01*
X2415437Y-16848183D01*
X2165000Y-17452789D01*
X760000Y-17452789D01*
X760000Y-10977778D01*
X2175000Y-10977778D01*
X2175000Y-11628222D01*
X2423914Y-12229153D01*
X2767761Y-12573000D01*
X2423914Y-12916847D01*
X2175000Y-13517778D01*
X2175000Y-14168222D01*
X2423914Y-14769153D01*
X2883847Y-15229086D01*
X3484778Y-15478000D01*
X4135222Y-15478000D01*
X4736153Y-15229086D01*
X5196086Y-14769153D01*
X5445000Y-14168222D01*
X5445000Y-13517778D01*
X5196086Y-12916847D01*
X5027365Y-12748126D01*
X9379000Y-12748126D01*
X9379000Y-13159874D01*
X9536569Y-13540280D01*
X9827720Y-13831431D01*
X10208126Y-13989000D01*
X10619874Y-13989000D01*
X11000280Y-13831431D01*
X11291431Y-13540280D01*
X11449000Y-13159874D01*
X11449000Y-12748126D01*
X11291431Y-12367720D01*
X11000280Y-12076569D01*
X10619874Y-11919000D01*
X10208126Y-11919000D01*
X9827720Y-12076569D01*
X9536569Y-12367720D01*
X9379000Y-12748126D01*
X5027365Y-12748126D01*
X4852239Y-12573000D01*
X5196086Y-12229153D01*
X5445000Y-11628222D01*
X5445000Y-10977778D01*
X5336621Y-10716126D01*
X17761000Y-10716126D01*
X17761000Y-11127874D01*
X17918569Y-11508280D01*
X18094289Y-11684000D01*
X17918569Y-11859720D01*
X17761000Y-12240126D01*
X17761000Y-12651874D01*
X17918569Y-13032280D01*
X18209720Y-13323431D01*
X18590126Y-13481000D01*
X19001874Y-13481000D01*
X19382280Y-13323431D01*
X19673431Y-13032280D01*
X19831000Y-12651874D01*
X19831000Y-12240126D01*
X19673431Y-11859720D01*
X19497711Y-11684000D01*
X19673431Y-11508280D01*
X19831000Y-11127874D01*
X19831000Y-10716126D01*
X19673431Y-10335720D01*
X19382280Y-10044569D01*
X19001874Y-9887000D01*
X18590126Y-9887000D01*
X18209720Y-10044569D01*
X17918569Y-10335720D01*
X17761000Y-10716126D01*
X5336621Y-10716126D01*
X5196086Y-10376847D01*
X4736153Y-9916914D01*
X4135222Y-9668000D01*
X3484778Y-9668000D01*
X2883847Y-9916914D01*
X2423914Y-10376847D01*
X2175000Y-10977778D01*
X760000Y-10977778D01*
X760000Y-9192126D01*
X9379000Y-9192126D01*
X9379000Y-9603874D01*
X9536569Y-9984280D01*
X9827720Y-10275431D01*
X10208126Y-10433000D01*
X10619874Y-10433000D01*
X11000280Y-10275431D01*
X11291431Y-9984280D01*
X11449000Y-9603874D01*
X11449000Y-9192126D01*
X11369730Y-9000750D01*
X32040000Y-9000750D01*
X32040000Y-9841309D01*
X32136673Y-10074698D01*
X32315301Y-10253327D01*
X32548690Y-10350000D01*
X34639250Y-10350000D01*
X34798000Y-10191250D01*
X34798000Y-8842000D01*
X35052000Y-8842000D01*
X35052000Y-10191250D01*
X35210750Y-10350000D01*
X37301310Y-10350000D01*
X37534699Y-10253327D01*
X37713327Y-10074698D01*
X37810000Y-9841309D01*
X37810000Y-9000750D01*
X37651250Y-8842000D01*
X35052000Y-8842000D01*
X34798000Y-8842000D01*
X32198750Y-8842000D01*
X32040000Y-9000750D01*
X11369730Y-9000750D01*
X11291431Y-8811720D01*
X11000280Y-8520569D01*
X10619874Y-8363000D01*
X10208126Y-8363000D01*
X9827720Y-8520569D01*
X9536569Y-8811720D01*
X9379000Y-9192126D01*
X760000Y-9192126D01*
X760000Y-4500778D01*
X2175000Y-4500778D01*
X2175000Y-5151222D01*
X2423914Y-5752153D01*
X2767761Y-6096000D01*
X2423914Y-6439847D01*
X2175000Y-7040778D01*
X2175000Y-7691222D01*
X2423914Y-8292153D01*
X2883847Y-8752086D01*
X3484778Y-9001000D01*
X4135222Y-9001000D01*
X4736153Y-8752086D01*
X5196086Y-8292153D01*
X5445000Y-7691222D01*
X5445000Y-7588691D01*
X32040000Y-7588691D01*
X32040000Y-8429250D01*
X32198750Y-8588000D01*
X34798000Y-8588000D01*
X34798000Y-7238750D01*
X35052000Y-7238750D01*
X35052000Y-8588000D01*
X37651250Y-8588000D01*
X37810000Y-8429250D01*
X37810000Y-7715000D01*
X42187560Y-7715000D01*
X42187560Y-9715000D01*
X42236843Y-9962765D01*
X42377191Y-10172809D01*
X42587235Y-10313157D01*
X42835000Y-10362440D01*
X47335000Y-10362440D01*
X47582765Y-10313157D01*
X47792809Y-10172809D01*
X47933157Y-9962765D01*
X47982440Y-9715000D01*
X47982440Y-7715000D01*
X52347560Y-7715000D01*
X52347560Y-9715000D01*
X52396843Y-9962765D01*
X52537191Y-10172809D01*
X52747235Y-10313157D01*
X52995000Y-10362440D01*
X57495000Y-10362440D01*
X57742765Y-10313157D01*
X57952809Y-10172809D01*
X58093157Y-9962765D01*
X58142440Y-9715000D01*
X58142440Y-7715000D01*
X58093157Y-7467235D01*
X57952809Y-7257191D01*
X57742765Y-7116843D01*
X57495000Y-7067560D01*
X52995000Y-7067560D01*
X52747235Y-7116843D01*
X52537191Y-7257191D01*
X52396843Y-7467235D01*
X52347560Y-7715000D01*
X47982440Y-7715000D01*
X47933157Y-7467235D01*
X47792809Y-7257191D01*
X47582765Y-7116843D01*
X47335000Y-7067560D01*
X42835000Y-7067560D01*
X42587235Y-7116843D01*
X42377191Y-7257191D01*
X42236843Y-7467235D01*
X42187560Y-7715000D01*
X37810000Y-7715000D01*
X37810000Y-7588691D01*
X37713327Y-7355302D01*
X37534699Y-7176673D01*
X37301310Y-7080000D01*
X35210750Y-7080000D01*
X35052000Y-7238750D01*
X34798000Y-7238750D01*
X34639250Y-7080000D01*
X32548690Y-7080000D01*
X32315301Y-7176673D01*
X32136673Y-7355302D01*
X32040000Y-7588691D01*
X5445000Y-7588691D01*
X5445000Y-7040778D01*
X5196086Y-6439847D01*
X4852239Y-6096000D01*
X5058113Y-5890126D01*
X9379000Y-5890126D01*
X9379000Y-6301874D01*
X9536569Y-6682280D01*
X9827720Y-6973431D01*
X10208126Y-7131000D01*
X10619874Y-7131000D01*
X11000280Y-6973431D01*
X11291431Y-6682280D01*
X11449000Y-6301874D01*
X11449000Y-5890126D01*
X11291431Y-5509720D01*
X11000280Y-5218569D01*
X10619874Y-5061000D01*
X10208126Y-5061000D01*
X9827720Y-5218569D01*
X9536569Y-5509720D01*
X9379000Y-5890126D01*
X5058113Y-5890126D01*
X5196086Y-5752153D01*
X5445000Y-5151222D01*
X5445000Y-4500778D01*
X5196086Y-3899847D01*
X4736153Y-3439914D01*
X4135222Y-3191000D01*
X3484778Y-3191000D01*
X2883847Y-3439914D01*
X2423914Y-3899847D01*
X2175000Y-4500778D01*
X760000Y-4500778D01*
X760000Y-1715000D01*
X32277560Y-1715000D01*
X32277560Y-3715000D01*
X32326843Y-3962765D01*
X32467191Y-4172809D01*
X32677235Y-4313157D01*
X32925000Y-4362440D01*
X36925000Y-4362440D01*
X37172765Y-4313157D01*
X37382809Y-4172809D01*
X37523157Y-3962765D01*
X37572440Y-3715000D01*
X37572440Y-1715000D01*
X42437560Y-1715000D01*
X42437560Y-3715000D01*
X42486843Y-3962765D01*
X42627191Y-4172809D01*
X42837235Y-4313157D01*
X43085000Y-4362440D01*
X47085000Y-4362440D01*
X47332765Y-4313157D01*
X47542809Y-4172809D01*
X47683157Y-3962765D01*
X47732440Y-3715000D01*
X47732440Y-1715000D01*
X52597560Y-1715000D01*
X52597560Y-3715000D01*
X52646843Y-3962765D01*
X52787191Y-4172809D01*
X52997235Y-4313157D01*
X53245000Y-4362440D01*
X57245000Y-4362440D01*
X57492765Y-4313157D01*
X57702809Y-4172809D01*
X57843157Y-3962765D01*
X57892440Y-3715000D01*
X57892440Y-1715000D01*
X57843157Y-1467235D01*
X57702809Y-1257191D01*
X57492765Y-1116843D01*
X57245000Y-1067560D01*
X53245000Y-1067560D01*
X52997235Y-1116843D01*
X52787191Y-1257191D01*
X52646843Y-1467235D01*
X52597560Y-1715000D01*
X47732440Y-1715000D01*
X47683157Y-1467235D01*
X47542809Y-1257191D01*
X47332765Y-1116843D01*
X47085000Y-1067560D01*
X43085000Y-1067560D01*
X42837235Y-1116843D01*
X42627191Y-1257191D01*
X42486843Y-1467235D01*
X42437560Y-1715000D01*
X37572440Y-1715000D01*
X37523157Y-1467235D01*
X37382809Y-1257191D01*
X37172765Y-1116843D01*
X36925000Y-1067560D01*
X32925000Y-1067560D01*
X32677235Y-1116843D01*
X32467191Y-1257191D01*
X32326843Y-1467235D01*
X32277560Y-1715000D01*
X760000Y-1715000D01*
X760000Y-760000D01*
X62740000Y-760000D01*
X62740001Y-76125148D01*
X62740001Y-76125148D01*
G37*
X62740001Y-76125148D02*
X62740000Y-88974851D01*
X62740001Y-88974856D01*
X62740000Y-114374851D01*
X62765001Y-114500539D01*
X62765000Y-126265000D01*
X735000Y-126265000D01*
X735000Y-116205000D01*
X3835324Y-116205000D01*
X3972697Y-116895620D01*
X4363901Y-117481099D01*
X4949380Y-117872303D01*
X5465672Y-117975000D01*
X9774328Y-117975000D01*
X10290620Y-117872303D01*
X10876099Y-117481099D01*
X11267303Y-116895620D01*
X11404676Y-116205000D01*
X19710324Y-116205000D01*
X19847697Y-116895620D01*
X20238901Y-117481099D01*
X20824380Y-117872303D01*
X21340672Y-117975000D01*
X25649328Y-117975000D01*
X26165620Y-117872303D01*
X26751099Y-117481099D01*
X27142303Y-116895620D01*
X27279676Y-116205000D01*
X36220324Y-116205000D01*
X36357697Y-116895620D01*
X36748901Y-117481099D01*
X37334380Y-117872303D01*
X37850672Y-117975000D01*
X42159328Y-117975000D01*
X42675620Y-117872303D01*
X43261099Y-117481099D01*
X43652303Y-116895620D01*
X43789676Y-116205000D01*
X52095324Y-116205000D01*
X52232697Y-116895620D01*
X52623901Y-117481099D01*
X53209380Y-117872303D01*
X53725672Y-117975000D01*
X58034328Y-117975000D01*
X58550620Y-117872303D01*
X59136099Y-117481099D01*
X59527303Y-116895620D01*
X59664676Y-116205000D01*
X59527303Y-115514380D01*
X59136099Y-114928901D01*
X58550620Y-114537697D01*
X58034328Y-114435000D01*
X53725672Y-114435000D01*
X53209380Y-114537697D01*
X52623901Y-114928901D01*
X52232697Y-115514380D01*
X52095324Y-116205000D01*
X43789676Y-116205000D01*
X43652303Y-115514380D01*
X43261099Y-114928901D01*
X42675620Y-114537697D01*
X42159328Y-114435000D01*
X37850672Y-114435000D01*
X37334380Y-114537697D01*
X36748901Y-114928901D01*
X36357697Y-115514380D01*
X36220324Y-116205000D01*
X27279676Y-116205000D01*
X27142303Y-115514380D01*
X26751099Y-114928901D01*
X26165620Y-114537697D01*
X25649328Y-114435000D01*
X21340672Y-114435000D01*
X20824380Y-114537697D01*
X20238901Y-114928901D01*
X19847697Y-115514380D01*
X19710324Y-116205000D01*
X11404676Y-116205000D01*
X11267303Y-115514380D01*
X10876099Y-114928901D01*
X10290620Y-114537697D01*
X9774328Y-114435000D01*
X5465672Y-114435000D01*
X4949380Y-114537697D01*
X4363901Y-114928901D01*
X3972697Y-115514380D01*
X3835324Y-116205000D01*
X735000Y-116205000D01*
X735000Y-114500535D01*
X760000Y-114374852D01*
X760000Y-96253074D01*
X2154149Y-96253074D01*
X2178044Y-96907059D01*
X2382342Y-97400274D01*
X2650234Y-97500161D01*
X3630395Y-96520000D01*
X2650234Y-95539839D01*
X2382342Y-95639726D01*
X2154149Y-96253074D01*
X760000Y-96253074D01*
X760000Y-93652789D01*
X2165000Y-93652789D01*
X2165000Y-94307211D01*
X2415437Y-94911817D01*
X2839077Y-95335457D01*
X2829839Y-95360234D01*
X3810000Y-96340395D01*
X4790161Y-95360234D01*
X4780923Y-95335457D01*
X5080000Y-95036380D01*
X5293620Y-95250000D01*
X4994543Y-95549077D01*
X4969766Y-95539839D01*
X3989605Y-96520000D01*
X4969766Y-97500161D01*
X4994543Y-97490923D01*
X5293620Y-97790000D01*
X5080000Y-98003620D01*
X4780923Y-97704543D01*
X4790161Y-97679766D01*
X3810000Y-96699605D01*
X2829839Y-97679766D01*
X2839077Y-97704543D01*
X2415437Y-98128183D01*
X2165000Y-98732789D01*
X2165000Y-99387211D01*
X2415437Y-99991817D01*
X2753620Y-100330000D01*
X2415437Y-100668183D01*
X2165000Y-101272789D01*
X2165000Y-101927211D01*
X2415437Y-102531817D01*
X2753620Y-102870000D01*
X2415437Y-103208183D01*
X2165000Y-103812789D01*
X2165000Y-104467211D01*
X2415437Y-105071817D01*
X2753620Y-105410000D01*
X2415437Y-105748183D01*
X2165000Y-106352789D01*
X2165000Y-107007211D01*
X2415437Y-107611817D01*
X2753620Y-107950000D01*
X2415437Y-108288183D01*
X2165000Y-108892789D01*
X2165000Y-109547211D01*
X2415437Y-110151817D01*
X2878183Y-110614563D01*
X3482789Y-110865000D01*
X4137211Y-110865000D01*
X4741817Y-110614563D01*
X5080000Y-110276380D01*
X5418183Y-110614563D01*
X6022789Y-110865000D01*
X6677211Y-110865000D01*
X7281817Y-110614563D01*
X7744563Y-110151817D01*
X7952785Y-109649126D01*
X21825000Y-109649126D01*
X21825000Y-110060874D01*
X21982569Y-110441280D01*
X22273720Y-110732431D01*
X22454953Y-110807500D01*
X22273720Y-110882569D01*
X21982569Y-111173720D01*
X21825000Y-111554126D01*
X21825000Y-111965874D01*
X21982569Y-112346280D01*
X22273720Y-112637431D01*
X22654126Y-112795000D01*
X23065874Y-112795000D01*
X23446280Y-112637431D01*
X23495000Y-112588711D01*
X23543720Y-112637431D01*
X23924126Y-112795000D01*
X24335874Y-112795000D01*
X24716280Y-112637431D01*
X24765000Y-112588711D01*
X24813720Y-112637431D01*
X25194126Y-112795000D01*
X25605874Y-112795000D01*
X25986280Y-112637431D01*
X26035000Y-112588711D01*
X26083720Y-112637431D01*
X26464126Y-112795000D01*
X26875874Y-112795000D01*
X27256280Y-112637431D01*
X27547431Y-112346280D01*
X27705000Y-111965874D01*
X27705000Y-111554126D01*
X27547431Y-111173720D01*
X27256280Y-110882569D01*
X27075047Y-110807500D01*
X27256280Y-110732431D01*
X27547431Y-110441280D01*
X27612526Y-110284126D01*
X49765000Y-110284126D01*
X49765000Y-110695874D01*
X49922569Y-111076280D01*
X50213720Y-111367431D01*
X50594126Y-111525000D01*
X51005874Y-111525000D01*
X51386280Y-111367431D01*
X51677431Y-111076280D01*
X51752500Y-110895047D01*
X51827569Y-111076280D01*
X52118720Y-111367431D01*
X52499126Y-111525000D01*
X52910874Y-111525000D01*
X53291280Y-111367431D01*
X53582431Y-111076280D01*
X53740000Y-110695874D01*
X53740000Y-110284126D01*
X53582431Y-109903720D01*
X53291280Y-109612569D01*
X52910874Y-109455000D01*
X52499126Y-109455000D01*
X52118720Y-109612569D01*
X51827569Y-109903720D01*
X51752500Y-110084953D01*
X51677431Y-109903720D01*
X51386280Y-109612569D01*
X51005874Y-109455000D01*
X50594126Y-109455000D01*
X50213720Y-109612569D01*
X49922569Y-109903720D01*
X49765000Y-110284126D01*
X27612526Y-110284126D01*
X27705000Y-110060874D01*
X27705000Y-109649126D01*
X27547431Y-109268720D01*
X27256280Y-108977569D01*
X26875874Y-108820000D01*
X26464126Y-108820000D01*
X26083720Y-108977569D01*
X26035000Y-109026289D01*
X25986280Y-108977569D01*
X25605874Y-108820000D01*
X25194126Y-108820000D01*
X24813720Y-108977569D01*
X24765000Y-109026289D01*
X24716280Y-108977569D01*
X24335874Y-108820000D01*
X23924126Y-108820000D01*
X23543720Y-108977569D01*
X23495000Y-109026289D01*
X23446280Y-108977569D01*
X23065874Y-108820000D01*
X22654126Y-108820000D01*
X22273720Y-108977569D01*
X21982569Y-109268720D01*
X21825000Y-109649126D01*
X7952785Y-109649126D01*
X7995000Y-109547211D01*
X7995000Y-108892789D01*
X7744563Y-108288183D01*
X7406380Y-107950000D01*
X7744563Y-107611817D01*
X7995000Y-107007211D01*
X7995000Y-106352789D01*
X7744563Y-105748183D01*
X7406380Y-105410000D01*
X7612254Y-105204126D01*
X21825000Y-105204126D01*
X21825000Y-105615874D01*
X21982569Y-105996280D01*
X22273720Y-106287431D01*
X22454953Y-106362500D01*
X22273720Y-106437569D01*
X21982569Y-106728720D01*
X21825000Y-107109126D01*
X21825000Y-107520874D01*
X21982569Y-107901280D01*
X22273720Y-108192431D01*
X22654126Y-108350000D01*
X23065874Y-108350000D01*
X23446280Y-108192431D01*
X23737431Y-107901280D01*
X23812500Y-107720047D01*
X23887569Y-107901280D01*
X24178720Y-108192431D01*
X24559126Y-108350000D01*
X24970874Y-108350000D01*
X25351280Y-108192431D01*
X25642431Y-107901280D01*
X25717500Y-107720047D01*
X25792569Y-107901280D01*
X26083720Y-108192431D01*
X26464126Y-108350000D01*
X26875874Y-108350000D01*
X27256280Y-108192431D01*
X27547431Y-107901280D01*
X27705000Y-107520874D01*
X27705000Y-107109126D01*
X27547431Y-106728720D01*
X27256280Y-106437569D01*
X27075047Y-106362500D01*
X27256280Y-106287431D01*
X27547431Y-105996280D01*
X27612526Y-105839126D01*
X49765000Y-105839126D01*
X49765000Y-106250874D01*
X49922569Y-106631280D01*
X50213720Y-106922431D01*
X50394953Y-106997500D01*
X50213720Y-107072569D01*
X49922569Y-107363720D01*
X49765000Y-107744126D01*
X49765000Y-108155874D01*
X49922569Y-108536280D01*
X50213720Y-108827431D01*
X50594126Y-108985000D01*
X51005874Y-108985000D01*
X51386280Y-108827431D01*
X51677431Y-108536280D01*
X51752500Y-108355047D01*
X51827569Y-108536280D01*
X52118720Y-108827431D01*
X52499126Y-108985000D01*
X52910874Y-108985000D01*
X53291280Y-108827431D01*
X53582431Y-108536280D01*
X53740000Y-108155874D01*
X53740000Y-107744126D01*
X53582431Y-107363720D01*
X53291280Y-107072569D01*
X53110047Y-106997500D01*
X53291280Y-106922431D01*
X53582431Y-106631280D01*
X53740000Y-106250874D01*
X53740000Y-105839126D01*
X53582431Y-105458720D01*
X53291280Y-105167569D01*
X52910874Y-105010000D01*
X52499126Y-105010000D01*
X52118720Y-105167569D01*
X51827569Y-105458720D01*
X51752500Y-105639953D01*
X51677431Y-105458720D01*
X51386280Y-105167569D01*
X51005874Y-105010000D01*
X50594126Y-105010000D01*
X50213720Y-105167569D01*
X49922569Y-105458720D01*
X49765000Y-105839126D01*
X27612526Y-105839126D01*
X27705000Y-105615874D01*
X27705000Y-105204126D01*
X27547431Y-104823720D01*
X27256280Y-104532569D01*
X26875874Y-104375000D01*
X26464126Y-104375000D01*
X26083720Y-104532569D01*
X25792569Y-104823720D01*
X25717500Y-105004953D01*
X25642431Y-104823720D01*
X25351280Y-104532569D01*
X24970874Y-104375000D01*
X24559126Y-104375000D01*
X24178720Y-104532569D01*
X23887569Y-104823720D01*
X23812500Y-105004953D01*
X23737431Y-104823720D01*
X23446280Y-104532569D01*
X23065874Y-104375000D01*
X22654126Y-104375000D01*
X22273720Y-104532569D01*
X21982569Y-104823720D01*
X21825000Y-105204126D01*
X7612254Y-105204126D01*
X7744563Y-105071817D01*
X7995000Y-104467211D01*
X7995000Y-103812789D01*
X7744563Y-103208183D01*
X7406380Y-102870000D01*
X7744563Y-102531817D01*
X7995000Y-101927211D01*
X7995000Y-101272789D01*
X7744563Y-100668183D01*
X7406380Y-100330000D01*
X7744563Y-99991817D01*
X7995000Y-99387211D01*
X7995000Y-98732789D01*
X7744563Y-98128183D01*
X7406380Y-97790000D01*
X7744563Y-97451817D01*
X7995000Y-96847211D01*
X7995000Y-96192789D01*
X7744563Y-95588183D01*
X7406380Y-95250000D01*
X7744563Y-94911817D01*
X7995000Y-94307211D01*
X7995000Y-93652789D01*
X7744563Y-93048183D01*
X7281817Y-92585437D01*
X6677211Y-92335000D01*
X6022789Y-92335000D01*
X5418183Y-92585437D01*
X5080000Y-92923620D01*
X4741817Y-92585437D01*
X4137211Y-92335000D01*
X3482789Y-92335000D01*
X2878183Y-92585437D01*
X2415437Y-93048183D01*
X2165000Y-93652789D01*
X760000Y-93652789D01*
X760000Y-92250126D01*
X15475000Y-92250126D01*
X15475000Y-92661874D01*
X15632569Y-93042280D01*
X15923720Y-93333431D01*
X16304126Y-93491000D01*
X16715874Y-93491000D01*
X17096280Y-93333431D01*
X17387431Y-93042280D01*
X17545000Y-92661874D01*
X17545000Y-92250126D01*
X17387431Y-91869720D01*
X17096280Y-91578569D01*
X16807614Y-91459000D01*
X16969874Y-91459000D01*
X17350280Y-91301431D01*
X17641431Y-91010280D01*
X17799000Y-90629874D01*
X17799000Y-90218126D01*
X17641431Y-89837720D01*
X17350280Y-89546569D01*
X16969874Y-89389000D01*
X16558126Y-89389000D01*
X16177720Y-89546569D01*
X15886569Y-89837720D01*
X15729000Y-90218126D01*
X15729000Y-90629874D01*
X15886569Y-91010280D01*
X16177720Y-91301431D01*
X16466386Y-91421000D01*
X16304126Y-91421000D01*
X15923720Y-91578569D01*
X15632569Y-91869720D01*
X15475000Y-92250126D01*
X760000Y-92250126D01*
X760000Y-88355975D01*
X1075000Y-88355975D01*
X1075000Y-89444025D01*
X1491379Y-90449253D01*
X2260747Y-91218621D01*
X3265975Y-91635000D01*
X4354025Y-91635000D01*
X5359253Y-91218621D01*
X6128621Y-90449253D01*
X6545000Y-89444025D01*
X6545000Y-88355975D01*
X6128621Y-87350747D01*
X5359253Y-86581379D01*
X4354025Y-86165000D01*
X3265975Y-86165000D01*
X2260747Y-86581379D01*
X1491379Y-87350747D01*
X1075000Y-88355975D01*
X760000Y-88355975D01*
X760000Y-70853074D01*
X2154149Y-70853074D01*
X2178044Y-71507059D01*
X2382342Y-72000274D01*
X2650234Y-72100161D01*
X3630395Y-71120000D01*
X2650234Y-70139839D01*
X2382342Y-70239726D01*
X2154149Y-70853074D01*
X760000Y-70853074D01*
X760000Y-68252789D01*
X2165000Y-68252789D01*
X2165000Y-68907211D01*
X2415437Y-69511817D01*
X2839077Y-69935457D01*
X2829839Y-69960234D01*
X3810000Y-70940395D01*
X4790161Y-69960234D01*
X4780923Y-69935457D01*
X5080000Y-69636380D01*
X5293620Y-69850000D01*
X4994543Y-70149077D01*
X4969766Y-70139839D01*
X3989605Y-71120000D01*
X4969766Y-72100161D01*
X4994543Y-72090923D01*
X5293620Y-72390000D01*
X5080000Y-72603620D01*
X4780923Y-72304543D01*
X4790161Y-72279766D01*
X3810000Y-71299605D01*
X2829839Y-72279766D01*
X2839077Y-72304543D01*
X2415437Y-72728183D01*
X2165000Y-73332789D01*
X2165000Y-73987211D01*
X2415437Y-74591817D01*
X2753620Y-74930000D01*
X2415437Y-75268183D01*
X2165000Y-75872789D01*
X2165000Y-76527211D01*
X2415437Y-77131817D01*
X2753620Y-77470000D01*
X2415437Y-77808183D01*
X2165000Y-78412789D01*
X2165000Y-79067211D01*
X2415437Y-79671817D01*
X2753620Y-80010000D01*
X2415437Y-80348183D01*
X2165000Y-80952789D01*
X2165000Y-81607211D01*
X2415437Y-82211817D01*
X2753620Y-82550000D01*
X2415437Y-82888183D01*
X2165000Y-83492789D01*
X2165000Y-84147211D01*
X2415437Y-84751817D01*
X2878183Y-85214563D01*
X3482789Y-85465000D01*
X4137211Y-85465000D01*
X4741817Y-85214563D01*
X5080000Y-84876380D01*
X5418183Y-85214563D01*
X6022789Y-85465000D01*
X6677211Y-85465000D01*
X7281817Y-85214563D01*
X7744563Y-84751817D01*
X7995000Y-84147211D01*
X7995000Y-83492789D01*
X7744563Y-82888183D01*
X7406380Y-82550000D01*
X7744563Y-82211817D01*
X7995000Y-81607211D01*
X7995000Y-80952789D01*
X7744563Y-80348183D01*
X7406380Y-80010000D01*
X7744563Y-79671817D01*
X7995000Y-79067211D01*
X7995000Y-78412789D01*
X7744563Y-77808183D01*
X7406380Y-77470000D01*
X7744563Y-77131817D01*
X7995000Y-76527211D01*
X7995000Y-75872789D01*
X7744563Y-75268183D01*
X7406380Y-74930000D01*
X7744563Y-74591817D01*
X7995000Y-73987211D01*
X7995000Y-73332789D01*
X7744563Y-72728183D01*
X7406380Y-72390000D01*
X7744563Y-72051817D01*
X7995000Y-71447211D01*
X7995000Y-70792789D01*
X7744563Y-70188183D01*
X7406380Y-69850000D01*
X7744563Y-69511817D01*
X7995000Y-68907211D01*
X7995000Y-68252789D01*
X7744563Y-67648183D01*
X7281817Y-67185437D01*
X6677211Y-66935000D01*
X6022789Y-66935000D01*
X5418183Y-67185437D01*
X5080000Y-67523620D01*
X4741817Y-67185437D01*
X4137211Y-66935000D01*
X3482789Y-66935000D01*
X2878183Y-67185437D01*
X2415437Y-67648183D01*
X2165000Y-68252789D01*
X760000Y-68252789D01*
X760000Y-45453074D01*
X2154149Y-45453074D01*
X2178044Y-46107059D01*
X2382342Y-46600274D01*
X2650234Y-46700161D01*
X3630395Y-45720000D01*
X2650234Y-44739839D01*
X2382342Y-44839726D01*
X2154149Y-45453074D01*
X760000Y-45453074D01*
X760000Y-42852789D01*
X2165000Y-42852789D01*
X2165000Y-43507211D01*
X2415437Y-44111817D01*
X2839077Y-44535457D01*
X2829839Y-44560234D01*
X3810000Y-45540395D01*
X4790161Y-44560234D01*
X4780923Y-44535457D01*
X5080000Y-44236380D01*
X5293620Y-44450000D01*
X4994543Y-44749077D01*
X4969766Y-44739839D01*
X3989605Y-45720000D01*
X4969766Y-46700161D01*
X4994543Y-46690923D01*
X5293620Y-46990000D01*
X5080000Y-47203620D01*
X4780923Y-46904543D01*
X4790161Y-46879766D01*
X3810000Y-45899605D01*
X2829839Y-46879766D01*
X2839077Y-46904543D01*
X2415437Y-47328183D01*
X2165000Y-47932789D01*
X2165000Y-48587211D01*
X2415437Y-49191817D01*
X2753620Y-49530000D01*
X2415437Y-49868183D01*
X2165000Y-50472789D01*
X2165000Y-51127211D01*
X2415437Y-51731817D01*
X2753620Y-52070000D01*
X2415437Y-52408183D01*
X2165000Y-53012789D01*
X2165000Y-53667211D01*
X2415437Y-54271817D01*
X2753620Y-54610000D01*
X2415437Y-54948183D01*
X2165000Y-55552789D01*
X2165000Y-56207211D01*
X2415437Y-56811817D01*
X2753620Y-57150000D01*
X2415437Y-57488183D01*
X2165000Y-58092789D01*
X2165000Y-58747211D01*
X2415437Y-59351817D01*
X2878183Y-59814563D01*
X3482789Y-60065000D01*
X4137211Y-60065000D01*
X4741817Y-59814563D01*
X5080000Y-59476380D01*
X5418183Y-59814563D01*
X6022789Y-60065000D01*
X6677211Y-60065000D01*
X7281817Y-59814563D01*
X7744563Y-59351817D01*
X7995000Y-58747211D01*
X7995000Y-58092789D01*
X7744563Y-57488183D01*
X7406380Y-57150000D01*
X7744563Y-56811817D01*
X7995000Y-56207211D01*
X7995000Y-55552789D01*
X7744563Y-54948183D01*
X7406380Y-54610000D01*
X7744563Y-54271817D01*
X7995000Y-53667211D01*
X7995000Y-53012789D01*
X7744563Y-52408183D01*
X7406380Y-52070000D01*
X7744563Y-51731817D01*
X7995000Y-51127211D01*
X7995000Y-50472789D01*
X7744563Y-49868183D01*
X7406380Y-49530000D01*
X7744563Y-49191817D01*
X7995000Y-48587211D01*
X7995000Y-47932789D01*
X7744563Y-47328183D01*
X7406380Y-46990000D01*
X7744563Y-46651817D01*
X7995000Y-46047211D01*
X7995000Y-45392789D01*
X7744563Y-44788183D01*
X7406380Y-44450000D01*
X7733591Y-44122789D01*
X28835000Y-44122789D01*
X28835000Y-44777211D01*
X29085437Y-45381817D01*
X29423620Y-45720000D01*
X29085437Y-46058183D01*
X28835000Y-46662789D01*
X28835000Y-47317211D01*
X29085437Y-47921817D01*
X29423620Y-48260000D01*
X29085437Y-48598183D01*
X28835000Y-49202789D01*
X28835000Y-49857211D01*
X29085437Y-50461817D01*
X29423620Y-50800000D01*
X29085437Y-51138183D01*
X28835000Y-51742789D01*
X28835000Y-52397211D01*
X29085437Y-53001817D01*
X29423620Y-53340000D01*
X29085437Y-53678183D01*
X28835000Y-54282789D01*
X28835000Y-54937211D01*
X29085437Y-55541817D01*
X29423620Y-55880000D01*
X29085437Y-56218183D01*
X28835000Y-56822789D01*
X28835000Y-57477211D01*
X29085437Y-58081817D01*
X29423620Y-58420000D01*
X29085437Y-58758183D01*
X28835000Y-59362789D01*
X28835000Y-60017211D01*
X29085437Y-60621817D01*
X29423620Y-60960000D01*
X29085437Y-61298183D01*
X28835000Y-61902789D01*
X28835000Y-62557211D01*
X29085437Y-63161817D01*
X29423620Y-63500000D01*
X29085437Y-63838183D01*
X28835000Y-64442789D01*
X28835000Y-65097211D01*
X29085437Y-65701817D01*
X29423620Y-66040000D01*
X29085437Y-66378183D01*
X28835000Y-66982789D01*
X28835000Y-67637211D01*
X29085437Y-68241817D01*
X29423620Y-68580000D01*
X29085437Y-68918183D01*
X28835000Y-69522789D01*
X28835000Y-70177211D01*
X29085437Y-70781817D01*
X29423620Y-71120000D01*
X29085437Y-71458183D01*
X28835000Y-72062789D01*
X28835000Y-72717211D01*
X29085437Y-73321817D01*
X29423620Y-73660000D01*
X29085437Y-73998183D01*
X28835000Y-74602789D01*
X28835000Y-75257211D01*
X29085437Y-75861817D01*
X29423620Y-76200000D01*
X29085437Y-76538183D01*
X28835000Y-77142789D01*
X28835000Y-77797211D01*
X29085437Y-78401817D01*
X29423620Y-78740000D01*
X29085437Y-79078183D01*
X28835000Y-79682789D01*
X28835000Y-80337211D01*
X29085437Y-80941817D01*
X29423620Y-81280000D01*
X29085437Y-81618183D01*
X28835000Y-82222789D01*
X28835000Y-82877211D01*
X29085437Y-83481817D01*
X29423620Y-83820000D01*
X29085437Y-84158183D01*
X28835000Y-84762789D01*
X28835000Y-85417211D01*
X29085437Y-86021817D01*
X29423620Y-86360000D01*
X29085437Y-86698183D01*
X28835000Y-87302789D01*
X28835000Y-87957211D01*
X29085437Y-88561817D01*
X29423620Y-88900000D01*
X29085437Y-89238183D01*
X28835000Y-89842789D01*
X28835000Y-90497211D01*
X29085437Y-91101817D01*
X29423620Y-91440000D01*
X29085437Y-91778183D01*
X28835000Y-92382789D01*
X28835000Y-93037211D01*
X29085437Y-93641817D01*
X29423620Y-93980000D01*
X29085437Y-94318183D01*
X28835000Y-94922789D01*
X28835000Y-95577211D01*
X29085437Y-96181817D01*
X29423620Y-96520000D01*
X29085437Y-96858183D01*
X28835000Y-97462789D01*
X28835000Y-98117211D01*
X29085437Y-98721817D01*
X29423620Y-99060000D01*
X29085437Y-99398183D01*
X28835000Y-100002789D01*
X28835000Y-100657211D01*
X29085437Y-101261817D01*
X29423620Y-101600000D01*
X29085437Y-101938183D01*
X28835000Y-102542789D01*
X28835000Y-103197211D01*
X29085437Y-103801817D01*
X29548183Y-104264563D01*
X30152789Y-104515000D01*
X30807211Y-104515000D01*
X31411817Y-104264563D01*
X31750000Y-103926380D01*
X32088183Y-104264563D01*
X32692789Y-104515000D01*
X33347211Y-104515000D01*
X33951817Y-104264563D01*
X34414563Y-103801817D01*
X34665000Y-103197211D01*
X34665000Y-102542789D01*
X34414563Y-101938183D01*
X34076380Y-101600000D01*
X34414563Y-101261817D01*
X34665000Y-100657211D01*
X34665000Y-100002789D01*
X34414563Y-99398183D01*
X34076380Y-99060000D01*
X34414563Y-98721817D01*
X34665000Y-98117211D01*
X34665000Y-97462789D01*
X34414563Y-96858183D01*
X34076380Y-96520000D01*
X34414563Y-96181817D01*
X34665000Y-95577211D01*
X34665000Y-94922789D01*
X34414563Y-94318183D01*
X34076380Y-93980000D01*
X34403591Y-93652789D01*
X55505000Y-93652789D01*
X55505000Y-94307211D01*
X55755437Y-94911817D01*
X56093620Y-95250000D01*
X55755437Y-95588183D01*
X55505000Y-96192789D01*
X55505000Y-96847211D01*
X55755437Y-97451817D01*
X56093620Y-97790000D01*
X55755437Y-98128183D01*
X55505000Y-98732789D01*
X55505000Y-99387211D01*
X55755437Y-99991817D01*
X56093620Y-100330000D01*
X55755437Y-100668183D01*
X55505000Y-101272789D01*
X55505000Y-101927211D01*
X55755437Y-102531817D01*
X56093620Y-102870000D01*
X55755437Y-103208183D01*
X55505000Y-103812789D01*
X55505000Y-104467211D01*
X55755437Y-105071817D01*
X56093620Y-105410000D01*
X55755437Y-105748183D01*
X55505000Y-106352789D01*
X55505000Y-107007211D01*
X55755437Y-107611817D01*
X56093620Y-107950000D01*
X55755437Y-108288183D01*
X55505000Y-108892789D01*
X55505000Y-109547211D01*
X55755437Y-110151817D01*
X56218183Y-110614563D01*
X56822789Y-110865000D01*
X57477211Y-110865000D01*
X58081817Y-110614563D01*
X58420000Y-110276380D01*
X58758183Y-110614563D01*
X59362789Y-110865000D01*
X60017211Y-110865000D01*
X60621817Y-110614563D01*
X61084563Y-110151817D01*
X61335000Y-109547211D01*
X61335000Y-108892789D01*
X61084563Y-108288183D01*
X60660923Y-107864543D01*
X60670161Y-107839766D01*
X59690000Y-106859605D01*
X58709839Y-107839766D01*
X58719077Y-107864543D01*
X58420000Y-108163620D01*
X58206380Y-107950000D01*
X58505457Y-107650923D01*
X58530234Y-107660161D01*
X59510395Y-106680000D01*
X59869605Y-106680000D01*
X60849766Y-107660161D01*
X61117658Y-107560274D01*
X61345851Y-106946926D01*
X61321956Y-106292941D01*
X61117658Y-105799726D01*
X60849766Y-105699839D01*
X59869605Y-106680000D01*
X59510395Y-106680000D01*
X58530234Y-105699839D01*
X58505457Y-105709077D01*
X58206380Y-105410000D01*
X58420000Y-105196380D01*
X58719077Y-105495457D01*
X58709839Y-105520234D01*
X59690000Y-106500395D01*
X60670161Y-105520234D01*
X60660923Y-105495457D01*
X61084563Y-105071817D01*
X61335000Y-104467211D01*
X61335000Y-103812789D01*
X61084563Y-103208183D01*
X60746380Y-102870000D01*
X61084563Y-102531817D01*
X61335000Y-101927211D01*
X61335000Y-101272789D01*
X61084563Y-100668183D01*
X60746380Y-100330000D01*
X61084563Y-99991817D01*
X61335000Y-99387211D01*
X61335000Y-98732789D01*
X61084563Y-98128183D01*
X60746380Y-97790000D01*
X61084563Y-97451817D01*
X61335000Y-96847211D01*
X61335000Y-96192789D01*
X61084563Y-95588183D01*
X60746380Y-95250000D01*
X61084563Y-94911817D01*
X61335000Y-94307211D01*
X61335000Y-93652789D01*
X61084563Y-93048183D01*
X60621817Y-92585437D01*
X60017211Y-92335000D01*
X59362789Y-92335000D01*
X58758183Y-92585437D01*
X58420000Y-92923620D01*
X58081817Y-92585437D01*
X57477211Y-92335000D01*
X56822789Y-92335000D01*
X56218183Y-92585437D01*
X55755437Y-93048183D01*
X55505000Y-93652789D01*
X34403591Y-93652789D01*
X34414563Y-93641817D01*
X34665000Y-93037211D01*
X34665000Y-92382789D01*
X34414563Y-91778183D01*
X34076380Y-91440000D01*
X34414563Y-91101817D01*
X34665000Y-90497211D01*
X34665000Y-89842789D01*
X34414563Y-89238183D01*
X34076380Y-88900000D01*
X34414563Y-88561817D01*
X34499825Y-88355975D01*
X56955000Y-88355975D01*
X56955000Y-89444025D01*
X57371379Y-90449253D01*
X58140747Y-91218621D01*
X59145975Y-91635000D01*
X60234025Y-91635000D01*
X61239253Y-91218621D01*
X62008621Y-90449253D01*
X62425000Y-89444025D01*
X62425000Y-88355975D01*
X62008621Y-87350747D01*
X61239253Y-86581379D01*
X60234025Y-86165000D01*
X59145975Y-86165000D01*
X58140747Y-86581379D01*
X57371379Y-87350747D01*
X56955000Y-88355975D01*
X34499825Y-88355975D01*
X34665000Y-87957211D01*
X34665000Y-87302789D01*
X34414563Y-86698183D01*
X34076380Y-86360000D01*
X34414563Y-86021817D01*
X34665000Y-85417211D01*
X34665000Y-84762789D01*
X34414563Y-84158183D01*
X34076380Y-83820000D01*
X34414563Y-83481817D01*
X34665000Y-82877211D01*
X34665000Y-82222789D01*
X34414563Y-81618183D01*
X34076380Y-81280000D01*
X34414563Y-80941817D01*
X34665000Y-80337211D01*
X34665000Y-79682789D01*
X34414563Y-79078183D01*
X34076380Y-78740000D01*
X34414563Y-78401817D01*
X34665000Y-77797211D01*
X34665000Y-77142789D01*
X34414563Y-76538183D01*
X34076380Y-76200000D01*
X34414563Y-75861817D01*
X34665000Y-75257211D01*
X34665000Y-74602789D01*
X34414563Y-73998183D01*
X34076380Y-73660000D01*
X34414563Y-73321817D01*
X34665000Y-72717211D01*
X34665000Y-72062789D01*
X34414563Y-71458183D01*
X34076380Y-71120000D01*
X34414563Y-70781817D01*
X34665000Y-70177211D01*
X34665000Y-69522789D01*
X34414563Y-68918183D01*
X34076380Y-68580000D01*
X34403591Y-68252789D01*
X55505000Y-68252789D01*
X55505000Y-68907211D01*
X55755437Y-69511817D01*
X56093620Y-69850000D01*
X55755437Y-70188183D01*
X55505000Y-70792789D01*
X55505000Y-71447211D01*
X55755437Y-72051817D01*
X56093620Y-72390000D01*
X55755437Y-72728183D01*
X55505000Y-73332789D01*
X55505000Y-73987211D01*
X55755437Y-74591817D01*
X56093620Y-74930000D01*
X55755437Y-75268183D01*
X55505000Y-75872789D01*
X55505000Y-76527211D01*
X55755437Y-77131817D01*
X56093620Y-77470000D01*
X55755437Y-77808183D01*
X55505000Y-78412789D01*
X55505000Y-79067211D01*
X55755437Y-79671817D01*
X56093620Y-80010000D01*
X55755437Y-80348183D01*
X55505000Y-80952789D01*
X55505000Y-81607211D01*
X55755437Y-82211817D01*
X56093620Y-82550000D01*
X55755437Y-82888183D01*
X55505000Y-83492789D01*
X55505000Y-84147211D01*
X55755437Y-84751817D01*
X56218183Y-85214563D01*
X56822789Y-85465000D01*
X57477211Y-85465000D01*
X58081817Y-85214563D01*
X58420000Y-84876380D01*
X58758183Y-85214563D01*
X59362789Y-85465000D01*
X60017211Y-85465000D01*
X60621817Y-85214563D01*
X61084563Y-84751817D01*
X61335000Y-84147211D01*
X61335000Y-83492789D01*
X61084563Y-82888183D01*
X60660923Y-82464543D01*
X60670161Y-82439766D01*
X59690000Y-81459605D01*
X58709839Y-82439766D01*
X58719077Y-82464543D01*
X58420000Y-82763620D01*
X58206380Y-82550000D01*
X58505457Y-82250923D01*
X58530234Y-82260161D01*
X59510395Y-81280000D01*
X59869605Y-81280000D01*
X60849766Y-82260161D01*
X61117658Y-82160274D01*
X61345851Y-81546926D01*
X61321956Y-80892941D01*
X61117658Y-80399726D01*
X60849766Y-80299839D01*
X59869605Y-81280000D01*
X59510395Y-81280000D01*
X58530234Y-80299839D01*
X58505457Y-80309077D01*
X58206380Y-80010000D01*
X58420000Y-79796380D01*
X58719077Y-80095457D01*
X58709839Y-80120234D01*
X59690000Y-81100395D01*
X60670161Y-80120234D01*
X60660923Y-80095457D01*
X61084563Y-79671817D01*
X61335000Y-79067211D01*
X61335000Y-78412789D01*
X61084563Y-77808183D01*
X60746380Y-77470000D01*
X61084563Y-77131817D01*
X61335000Y-76527211D01*
X61335000Y-75872789D01*
X61084563Y-75268183D01*
X60746380Y-74930000D01*
X61084563Y-74591817D01*
X61335000Y-73987211D01*
X61335000Y-73332789D01*
X61084563Y-72728183D01*
X60746380Y-72390000D01*
X61084563Y-72051817D01*
X61335000Y-71447211D01*
X61335000Y-70792789D01*
X61084563Y-70188183D01*
X60746380Y-69850000D01*
X61084563Y-69511817D01*
X61335000Y-68907211D01*
X61335000Y-68252789D01*
X61084563Y-67648183D01*
X60621817Y-67185437D01*
X60017211Y-66935000D01*
X59362789Y-66935000D01*
X58758183Y-67185437D01*
X58420000Y-67523620D01*
X58081817Y-67185437D01*
X57477211Y-66935000D01*
X56822789Y-66935000D01*
X56218183Y-67185437D01*
X55755437Y-67648183D01*
X55505000Y-68252789D01*
X34403591Y-68252789D01*
X34414563Y-68241817D01*
X34665000Y-67637211D01*
X34665000Y-66982789D01*
X34414563Y-66378183D01*
X34076380Y-66040000D01*
X34414563Y-65701817D01*
X34665000Y-65097211D01*
X34665000Y-64442789D01*
X34414563Y-63838183D01*
X34076380Y-63500000D01*
X34414563Y-63161817D01*
X34665000Y-62557211D01*
X34665000Y-61902789D01*
X34414563Y-61298183D01*
X34076380Y-60960000D01*
X34414563Y-60621817D01*
X34665000Y-60017211D01*
X34665000Y-59362789D01*
X34414563Y-58758183D01*
X34076380Y-58420000D01*
X34414563Y-58081817D01*
X34665000Y-57477211D01*
X34665000Y-56822789D01*
X34414563Y-56218183D01*
X34076380Y-55880000D01*
X34414563Y-55541817D01*
X34665000Y-54937211D01*
X34665000Y-54282789D01*
X34414563Y-53678183D01*
X34076380Y-53340000D01*
X34414563Y-53001817D01*
X34665000Y-52397211D01*
X34665000Y-51742789D01*
X34414563Y-51138183D01*
X34076380Y-50800000D01*
X34414563Y-50461817D01*
X34665000Y-49857211D01*
X34665000Y-49202789D01*
X34414563Y-48598183D01*
X34076380Y-48260000D01*
X34414563Y-47921817D01*
X34665000Y-47317211D01*
X34665000Y-46662789D01*
X34414563Y-46058183D01*
X34076380Y-45720000D01*
X34414563Y-45381817D01*
X34665000Y-44777211D01*
X34665000Y-44122789D01*
X34414563Y-43518183D01*
X33951817Y-43055437D01*
X33347211Y-42805000D01*
X32692789Y-42805000D01*
X32088183Y-43055437D01*
X31750000Y-43393620D01*
X31411817Y-43055437D01*
X30807211Y-42805000D01*
X30769865Y-42805000D01*
X30812280Y-42787431D01*
X31103431Y-42496280D01*
X31261000Y-42115874D01*
X31261000Y-41831126D01*
X42780000Y-41831126D01*
X42780000Y-42242874D01*
X42937569Y-42623280D01*
X43228720Y-42914431D01*
X43609126Y-43072000D01*
X44020874Y-43072000D01*
X44401280Y-42914431D01*
X44462922Y-42852789D01*
X55505000Y-42852789D01*
X55505000Y-43507211D01*
X55755437Y-44111817D01*
X56093620Y-44450000D01*
X55755437Y-44788183D01*
X55505000Y-45392789D01*
X55505000Y-46047211D01*
X55755437Y-46651817D01*
X56093620Y-46990000D01*
X55755437Y-47328183D01*
X55505000Y-47932789D01*
X55505000Y-48587211D01*
X55755437Y-49191817D01*
X56093620Y-49530000D01*
X55755437Y-49868183D01*
X55505000Y-50472789D01*
X55505000Y-51127211D01*
X55755437Y-51731817D01*
X56093620Y-52070000D01*
X55755437Y-52408183D01*
X55505000Y-53012789D01*
X55505000Y-53667211D01*
X55755437Y-54271817D01*
X56093620Y-54610000D01*
X55755437Y-54948183D01*
X55505000Y-55552789D01*
X55505000Y-56207211D01*
X55755437Y-56811817D01*
X56093620Y-57150000D01*
X55755437Y-57488183D01*
X55505000Y-58092789D01*
X55505000Y-58747211D01*
X55755437Y-59351817D01*
X56218183Y-59814563D01*
X56822789Y-60065000D01*
X57477211Y-60065000D01*
X58081817Y-59814563D01*
X58420000Y-59476380D01*
X58758183Y-59814563D01*
X59362789Y-60065000D01*
X60017211Y-60065000D01*
X60621817Y-59814563D01*
X61084563Y-59351817D01*
X61335000Y-58747211D01*
X61335000Y-58092789D01*
X61084563Y-57488183D01*
X60660923Y-57064543D01*
X60670161Y-57039766D01*
X59690000Y-56059605D01*
X58709839Y-57039766D01*
X58719077Y-57064543D01*
X58420000Y-57363620D01*
X58206380Y-57150000D01*
X58505457Y-56850923D01*
X58530234Y-56860161D01*
X59510395Y-55880000D01*
X59869605Y-55880000D01*
X60849766Y-56860161D01*
X61117658Y-56760274D01*
X61345851Y-56146926D01*
X61321956Y-55492941D01*
X61117658Y-54999726D01*
X60849766Y-54899839D01*
X59869605Y-55880000D01*
X59510395Y-55880000D01*
X58530234Y-54899839D01*
X58505457Y-54909077D01*
X58206380Y-54610000D01*
X58420000Y-54396380D01*
X58719077Y-54695457D01*
X58709839Y-54720234D01*
X59690000Y-55700395D01*
X60670161Y-54720234D01*
X60660923Y-54695457D01*
X61084563Y-54271817D01*
X61335000Y-53667211D01*
X61335000Y-53012789D01*
X61084563Y-52408183D01*
X60746380Y-52070000D01*
X61084563Y-51731817D01*
X61335000Y-51127211D01*
X61335000Y-50472789D01*
X61084563Y-49868183D01*
X60746380Y-49530000D01*
X61084563Y-49191817D01*
X61335000Y-48587211D01*
X61335000Y-47932789D01*
X61084563Y-47328183D01*
X60746380Y-46990000D01*
X61084563Y-46651817D01*
X61335000Y-46047211D01*
X61335000Y-45392789D01*
X61084563Y-44788183D01*
X60746380Y-44450000D01*
X61084563Y-44111817D01*
X61335000Y-43507211D01*
X61335000Y-42852789D01*
X61084563Y-42248183D01*
X60621817Y-41785437D01*
X60017211Y-41535000D01*
X59362789Y-41535000D01*
X58758183Y-41785437D01*
X58420000Y-42123620D01*
X58081817Y-41785437D01*
X57477211Y-41535000D01*
X56822789Y-41535000D01*
X56218183Y-41785437D01*
X55755437Y-42248183D01*
X55505000Y-42852789D01*
X44462922Y-42852789D01*
X44692431Y-42623280D01*
X44850000Y-42242874D01*
X44850000Y-41831126D01*
X44692431Y-41450720D01*
X44401280Y-41159569D01*
X44020874Y-41002000D01*
X43609126Y-41002000D01*
X43228720Y-41159569D01*
X42937569Y-41450720D01*
X42780000Y-41831126D01*
X31261000Y-41831126D01*
X31261000Y-41704126D01*
X31103431Y-41323720D01*
X30812280Y-41032569D01*
X30431874Y-40875000D01*
X30020126Y-40875000D01*
X29639720Y-41032569D01*
X29348569Y-41323720D01*
X29191000Y-41704126D01*
X29191000Y-42115874D01*
X29348569Y-42496280D01*
X29639720Y-42787431D01*
X29917463Y-42902476D01*
X29548183Y-43055437D01*
X29085437Y-43518183D01*
X28835000Y-44122789D01*
X7733591Y-44122789D01*
X7744563Y-44111817D01*
X7995000Y-43507211D01*
X7995000Y-42852789D01*
X7744563Y-42248183D01*
X7454506Y-41958126D01*
X14205000Y-41958126D01*
X14205000Y-42369874D01*
X14362569Y-42750280D01*
X14653720Y-43041431D01*
X15034126Y-43199000D01*
X15445874Y-43199000D01*
X15826280Y-43041431D01*
X16117431Y-42750280D01*
X16275000Y-42369874D01*
X16275000Y-41958126D01*
X16117431Y-41577720D01*
X15826280Y-41286569D01*
X15445874Y-41129000D01*
X15034126Y-41129000D01*
X14653720Y-41286569D01*
X14362569Y-41577720D01*
X14205000Y-41958126D01*
X7454506Y-41958126D01*
X7281817Y-41785437D01*
X6677211Y-41535000D01*
X6022789Y-41535000D01*
X5418183Y-41785437D01*
X5080000Y-42123620D01*
X4741817Y-41785437D01*
X4137211Y-41535000D01*
X3482789Y-41535000D01*
X2878183Y-41785437D01*
X2415437Y-42248183D01*
X2165000Y-42852789D01*
X760000Y-42852789D01*
X760000Y-37555975D01*
X1075000Y-37555975D01*
X1075000Y-38644025D01*
X1491379Y-39649253D01*
X2260747Y-40418621D01*
X3265975Y-40835000D01*
X4354025Y-40835000D01*
X5359253Y-40418621D01*
X6128621Y-39649253D01*
X6545000Y-38644025D01*
X6545000Y-38275126D01*
X11157000Y-38275126D01*
X11157000Y-38686874D01*
X11314569Y-39067280D01*
X11605720Y-39358431D01*
X11940256Y-39497000D01*
X11605720Y-39635569D01*
X11314569Y-39926720D01*
X11157000Y-40307126D01*
X11157000Y-40718874D01*
X11314569Y-41099280D01*
X11605720Y-41390431D01*
X11986126Y-41548000D01*
X12397874Y-41548000D01*
X12778280Y-41390431D01*
X13069431Y-41099280D01*
X13227000Y-40718874D01*
X13227000Y-40307126D01*
X13069431Y-39926720D01*
X12778280Y-39635569D01*
X12443744Y-39497000D01*
X12778280Y-39358431D01*
X13069431Y-39067280D01*
X13227000Y-38686874D01*
X13227000Y-38275126D01*
X13069431Y-37894720D01*
X12778280Y-37603569D01*
X12397874Y-37446000D01*
X11986126Y-37446000D01*
X11605720Y-37603569D01*
X11314569Y-37894720D01*
X11157000Y-38275126D01*
X6545000Y-38275126D01*
X6545000Y-37555975D01*
X6474647Y-37386126D01*
X14205000Y-37386126D01*
X14205000Y-37797874D01*
X14362569Y-38178280D01*
X14653720Y-38469431D01*
X14834953Y-38544500D01*
X14653720Y-38619569D01*
X14362569Y-38910720D01*
X14205000Y-39291126D01*
X14205000Y-39702874D01*
X14362569Y-40083280D01*
X14653720Y-40374431D01*
X15034126Y-40532000D01*
X15445874Y-40532000D01*
X15826280Y-40374431D01*
X16117431Y-40083280D01*
X16275000Y-39702874D01*
X16275000Y-39291126D01*
X16117431Y-38910720D01*
X15826280Y-38619569D01*
X15645047Y-38544500D01*
X15826280Y-38469431D01*
X16117431Y-38178280D01*
X16182526Y-38021126D01*
X26270000Y-38021126D01*
X26270000Y-38432874D01*
X26427569Y-38813280D01*
X26718720Y-39104431D01*
X26899953Y-39179500D01*
X26718720Y-39254569D01*
X26427569Y-39545720D01*
X26270000Y-39926126D01*
X26270000Y-40337874D01*
X26427569Y-40718280D01*
X26718720Y-41009431D01*
X27099126Y-41167000D01*
X27510874Y-41167000D01*
X27891280Y-41009431D01*
X28182431Y-40718280D01*
X28340000Y-40337874D01*
X28340000Y-39926126D01*
X28182431Y-39545720D01*
X27891280Y-39254569D01*
X27710047Y-39179500D01*
X27891280Y-39104431D01*
X28182431Y-38813280D01*
X28340000Y-38432874D01*
X28340000Y-38021126D01*
X28182431Y-37640720D01*
X27891280Y-37349569D01*
X27826234Y-37322626D01*
X29191000Y-37322626D01*
X29191000Y-37734374D01*
X29348569Y-38114780D01*
X29639720Y-38405931D01*
X29820953Y-38481000D01*
X29639720Y-38556069D01*
X29348569Y-38847220D01*
X29191000Y-39227626D01*
X29191000Y-39639374D01*
X29348569Y-40019780D01*
X29639720Y-40310931D01*
X30020126Y-40468500D01*
X30431874Y-40468500D01*
X30812280Y-40310931D01*
X31103431Y-40019780D01*
X31261000Y-39639374D01*
X31261000Y-39227626D01*
X31103431Y-38847220D01*
X30812280Y-38556069D01*
X30631047Y-38481000D01*
X30812280Y-38405931D01*
X31103431Y-38114780D01*
X31261000Y-37734374D01*
X31261000Y-37640126D01*
X36811000Y-37640126D01*
X36811000Y-38051874D01*
X36968569Y-38432280D01*
X37259720Y-38723431D01*
X37640126Y-38881000D01*
X38051874Y-38881000D01*
X38432280Y-38723431D01*
X38723431Y-38432280D01*
X38881000Y-38051874D01*
X38881000Y-38021126D01*
X40113000Y-38021126D01*
X40113000Y-38432874D01*
X40270569Y-38813280D01*
X40561720Y-39104431D01*
X40896256Y-39243000D01*
X40561720Y-39381569D01*
X40270569Y-39672720D01*
X40113000Y-40053126D01*
X40113000Y-40464874D01*
X40270569Y-40845280D01*
X40561720Y-41136431D01*
X40942126Y-41294000D01*
X41353874Y-41294000D01*
X41734280Y-41136431D01*
X42025431Y-40845280D01*
X42183000Y-40464874D01*
X42183000Y-40053126D01*
X42025431Y-39672720D01*
X41734280Y-39381569D01*
X41399744Y-39243000D01*
X41734280Y-39104431D01*
X42025431Y-38813280D01*
X42183000Y-38432874D01*
X42183000Y-38021126D01*
X42025431Y-37640720D01*
X41770837Y-37386126D01*
X42780000Y-37386126D01*
X42780000Y-37797874D01*
X42937569Y-38178280D01*
X43228720Y-38469431D01*
X43409953Y-38544500D01*
X43228720Y-38619569D01*
X42937569Y-38910720D01*
X42780000Y-39291126D01*
X42780000Y-39702874D01*
X42937569Y-40083280D01*
X43228720Y-40374431D01*
X43609126Y-40532000D01*
X44020874Y-40532000D01*
X44401280Y-40374431D01*
X44692431Y-40083280D01*
X44850000Y-39702874D01*
X44850000Y-39291126D01*
X44692431Y-38910720D01*
X44401280Y-38619569D01*
X44220047Y-38544500D01*
X44401280Y-38469431D01*
X44692431Y-38178280D01*
X44850000Y-37797874D01*
X44850000Y-37555975D01*
X56955000Y-37555975D01*
X56955000Y-38644025D01*
X57371379Y-39649253D01*
X58140747Y-40418621D01*
X59145975Y-40835000D01*
X60234025Y-40835000D01*
X61239253Y-40418621D01*
X62008621Y-39649253D01*
X62425000Y-38644025D01*
X62425000Y-37555975D01*
X62008621Y-36550747D01*
X61239253Y-35781379D01*
X60234025Y-35365000D01*
X59145975Y-35365000D01*
X58140747Y-35781379D01*
X57371379Y-36550747D01*
X56955000Y-37555975D01*
X44850000Y-37555975D01*
X44850000Y-37386126D01*
X44692431Y-37005720D01*
X44401280Y-36714569D01*
X44020874Y-36557000D01*
X43609126Y-36557000D01*
X43228720Y-36714569D01*
X42937569Y-37005720D01*
X42780000Y-37386126D01*
X41770837Y-37386126D01*
X41734280Y-37349569D01*
X41353874Y-37192000D01*
X40942126Y-37192000D01*
X40561720Y-37349569D01*
X40270569Y-37640720D01*
X40113000Y-38021126D01*
X38881000Y-38021126D01*
X38881000Y-37640126D01*
X38723431Y-37259720D01*
X38432280Y-36968569D01*
X38051874Y-36811000D01*
X37640126Y-36811000D01*
X37259720Y-36968569D01*
X36968569Y-37259720D01*
X36811000Y-37640126D01*
X31261000Y-37640126D01*
X31261000Y-37322626D01*
X31103431Y-36942220D01*
X30812280Y-36651069D01*
X30431874Y-36493500D01*
X30020126Y-36493500D01*
X29639720Y-36651069D01*
X29348569Y-36942220D01*
X29191000Y-37322626D01*
X27826234Y-37322626D01*
X27510874Y-37192000D01*
X27099126Y-37192000D01*
X26718720Y-37349569D01*
X26427569Y-37640720D01*
X26270000Y-38021126D01*
X16182526Y-38021126D01*
X16275000Y-37797874D01*
X16275000Y-37386126D01*
X16117431Y-37005720D01*
X15826280Y-36714569D01*
X15445874Y-36557000D01*
X15034126Y-36557000D01*
X14653720Y-36714569D01*
X14362569Y-37005720D01*
X14205000Y-37386126D01*
X6474647Y-37386126D01*
X6128621Y-36550747D01*
X5359253Y-35781379D01*
X4354025Y-35365000D01*
X3265975Y-35365000D01*
X2260747Y-35781379D01*
X1491379Y-36550747D01*
X1075000Y-37555975D01*
X760000Y-37555975D01*
X760000Y-20053074D01*
X2154149Y-20053074D01*
X2178044Y-20707059D01*
X2382342Y-21200274D01*
X2650234Y-21300161D01*
X3630395Y-20320000D01*
X2650234Y-19339839D01*
X2382342Y-19439726D01*
X2154149Y-20053074D01*
X760000Y-20053074D01*
X760000Y-17452789D01*
X2165000Y-17452789D01*
X2165000Y-18107211D01*
X2415437Y-18711817D01*
X2839077Y-19135457D01*
X2829839Y-19160234D01*
X3810000Y-20140395D01*
X4790161Y-19160234D01*
X4780923Y-19135457D01*
X5080000Y-18836380D01*
X5293620Y-19050000D01*
X4994543Y-19349077D01*
X4969766Y-19339839D01*
X3989605Y-20320000D01*
X4969766Y-21300161D01*
X4994543Y-21290923D01*
X5293620Y-21590000D01*
X5080000Y-21803620D01*
X4780923Y-21504543D01*
X4790161Y-21479766D01*
X3810000Y-20499605D01*
X2829839Y-21479766D01*
X2839077Y-21504543D01*
X2415437Y-21928183D01*
X2165000Y-22532789D01*
X2165000Y-23187211D01*
X2415437Y-23791817D01*
X2753620Y-24130000D01*
X2415437Y-24468183D01*
X2165000Y-25072789D01*
X2165000Y-25727211D01*
X2415437Y-26331817D01*
X2753620Y-26670000D01*
X2415437Y-27008183D01*
X2165000Y-27612789D01*
X2165000Y-28267211D01*
X2415437Y-28871817D01*
X2753620Y-29210000D01*
X2415437Y-29548183D01*
X2165000Y-30152789D01*
X2165000Y-30807211D01*
X2415437Y-31411817D01*
X2753620Y-31750000D01*
X2415437Y-32088183D01*
X2165000Y-32692789D01*
X2165000Y-33347211D01*
X2415437Y-33951817D01*
X2878183Y-34414563D01*
X3482789Y-34665000D01*
X4137211Y-34665000D01*
X4741817Y-34414563D01*
X5080000Y-34076380D01*
X5418183Y-34414563D01*
X6022789Y-34665000D01*
X6677211Y-34665000D01*
X7281817Y-34414563D01*
X7739254Y-33957126D01*
X11157000Y-33957126D01*
X11157000Y-34368874D01*
X11314569Y-34749280D01*
X11605720Y-35040431D01*
X11786953Y-35115500D01*
X11605720Y-35190569D01*
X11314569Y-35481720D01*
X11157000Y-35862126D01*
X11157000Y-36273874D01*
X11314569Y-36654280D01*
X11605720Y-36945431D01*
X11986126Y-37103000D01*
X12397874Y-37103000D01*
X12778280Y-36945431D01*
X13069431Y-36654280D01*
X13227000Y-36273874D01*
X13227000Y-35862126D01*
X13069431Y-35481720D01*
X12778280Y-35190569D01*
X12597047Y-35115500D01*
X12778280Y-35040431D01*
X12972585Y-34846126D01*
X14205000Y-34846126D01*
X14205000Y-35257874D01*
X14362569Y-35638280D01*
X14653720Y-35929431D01*
X15034126Y-36087000D01*
X15445874Y-36087000D01*
X15826280Y-35929431D01*
X16117431Y-35638280D01*
X16275000Y-35257874D01*
X16275000Y-34846126D01*
X16117431Y-34465720D01*
X15826280Y-34174569D01*
X15445874Y-34017000D01*
X15034126Y-34017000D01*
X14653720Y-34174569D01*
X14362569Y-34465720D01*
X14205000Y-34846126D01*
X12972585Y-34846126D01*
X13069431Y-34749280D01*
X13227000Y-34368874D01*
X13227000Y-33957126D01*
X13069431Y-33576720D01*
X12778280Y-33285569D01*
X12397874Y-33128000D01*
X11986126Y-33128000D01*
X11605720Y-33285569D01*
X11314569Y-33576720D01*
X11157000Y-33957126D01*
X7739254Y-33957126D01*
X7744563Y-33951817D01*
X7995000Y-33347211D01*
X7995000Y-32692789D01*
X7744563Y-32088183D01*
X7406380Y-31750000D01*
X7485254Y-31671126D01*
X13316000Y-31671126D01*
X13316000Y-32082874D01*
X13473569Y-32463280D01*
X13764720Y-32754431D01*
X14145126Y-32912000D01*
X14556874Y-32912000D01*
X14937280Y-32754431D01*
X15228431Y-32463280D01*
X15348000Y-32174614D01*
X15348000Y-32336874D01*
X15505569Y-32717280D01*
X15796720Y-33008431D01*
X16110000Y-33138196D01*
X16110000Y-33225874D01*
X16267569Y-33606280D01*
X16558720Y-33897431D01*
X16939126Y-34055000D01*
X17350874Y-34055000D01*
X17731280Y-33897431D01*
X18022431Y-33606280D01*
X18180000Y-33225874D01*
X18180000Y-33138196D01*
X18493280Y-33008431D01*
X18784431Y-32717280D01*
X18796921Y-32687126D01*
X23857000Y-32687126D01*
X23857000Y-33098874D01*
X24014569Y-33479280D01*
X24305720Y-33770431D01*
X24686126Y-33928000D01*
X25097874Y-33928000D01*
X25478280Y-33770431D01*
X25545585Y-33703126D01*
X26270000Y-33703126D01*
X26270000Y-34114874D01*
X26427569Y-34495280D01*
X26718720Y-34786431D01*
X26746650Y-34798000D01*
X26718720Y-34809569D01*
X26427569Y-35100720D01*
X26270000Y-35481126D01*
X26270000Y-35892874D01*
X26427569Y-36273280D01*
X26718720Y-36564431D01*
X27099126Y-36722000D01*
X27510874Y-36722000D01*
X27891280Y-36564431D01*
X28182431Y-36273280D01*
X28340000Y-35892874D01*
X28340000Y-35481126D01*
X28182431Y-35100720D01*
X27891280Y-34809569D01*
X27863350Y-34798000D01*
X27891280Y-34786431D01*
X28182431Y-34495280D01*
X28247526Y-34338126D01*
X29191000Y-34338126D01*
X29191000Y-34749874D01*
X29348569Y-35130280D01*
X29639720Y-35421431D01*
X30020126Y-35579000D01*
X30431874Y-35579000D01*
X30812280Y-35421431D01*
X31103431Y-35130280D01*
X31261000Y-34749874D01*
X31261000Y-34338126D01*
X31103431Y-33957720D01*
X30812280Y-33666569D01*
X30431874Y-33509000D01*
X30020126Y-33509000D01*
X29639720Y-33666569D01*
X29348569Y-33957720D01*
X29191000Y-34338126D01*
X28247526Y-34338126D01*
X28340000Y-34114874D01*
X28340000Y-33703126D01*
X28182431Y-33322720D01*
X27891280Y-33031569D01*
X27510874Y-32874000D01*
X27099126Y-32874000D01*
X26718720Y-33031569D01*
X26427569Y-33322720D01*
X26270000Y-33703126D01*
X25545585Y-33703126D01*
X25769431Y-33479280D01*
X25927000Y-33098874D01*
X25927000Y-32687126D01*
X25769431Y-32306720D01*
X25478280Y-32015569D01*
X25097874Y-31858000D01*
X24686126Y-31858000D01*
X24305720Y-32015569D01*
X24014569Y-32306720D01*
X23857000Y-32687126D01*
X18796921Y-32687126D01*
X18942000Y-32336874D01*
X18942000Y-31925126D01*
X18836790Y-31671126D01*
X28302000Y-31671126D01*
X28302000Y-32082874D01*
X28459569Y-32463280D01*
X28750720Y-32754431D01*
X29131126Y-32912000D01*
X29542874Y-32912000D01*
X29923280Y-32754431D01*
X30214431Y-32463280D01*
X30334000Y-32174614D01*
X30334000Y-32336874D01*
X30491569Y-32717280D01*
X30782720Y-33008431D01*
X31096000Y-33138196D01*
X31096000Y-33225874D01*
X31253569Y-33606280D01*
X31544720Y-33897431D01*
X31925126Y-34055000D01*
X32336874Y-34055000D01*
X32717280Y-33897431D01*
X33008431Y-33606280D01*
X33020921Y-33576126D01*
X40113000Y-33576126D01*
X40113000Y-33987874D01*
X40270569Y-34368280D01*
X40561720Y-34659431D01*
X40896256Y-34798000D01*
X40561720Y-34936569D01*
X40270569Y-35227720D01*
X40113000Y-35608126D01*
X40113000Y-36019874D01*
X40270569Y-36400280D01*
X40561720Y-36691431D01*
X40942126Y-36849000D01*
X41353874Y-36849000D01*
X41734280Y-36691431D01*
X42025431Y-36400280D01*
X42183000Y-36019874D01*
X42183000Y-35608126D01*
X42025431Y-35227720D01*
X41734280Y-34936569D01*
X41515931Y-34846126D01*
X42780000Y-34846126D01*
X42780000Y-35257874D01*
X42937569Y-35638280D01*
X43228720Y-35929431D01*
X43609126Y-36087000D01*
X44020874Y-36087000D01*
X44401280Y-35929431D01*
X44692431Y-35638280D01*
X44850000Y-35257874D01*
X44850000Y-34846126D01*
X44692431Y-34465720D01*
X44401280Y-34174569D01*
X44020874Y-34017000D01*
X43609126Y-34017000D01*
X43228720Y-34174569D01*
X42937569Y-34465720D01*
X42780000Y-34846126D01*
X41515931Y-34846126D01*
X41399744Y-34798000D01*
X41734280Y-34659431D01*
X42025431Y-34368280D01*
X42183000Y-33987874D01*
X42183000Y-33576126D01*
X42025431Y-33195720D01*
X41734280Y-32904569D01*
X41353874Y-32747000D01*
X40942126Y-32747000D01*
X40561720Y-32904569D01*
X40270569Y-33195720D01*
X40113000Y-33576126D01*
X33020921Y-33576126D01*
X33166000Y-33225874D01*
X33166000Y-33138196D01*
X33479280Y-33008431D01*
X33770431Y-32717280D01*
X33928000Y-32336874D01*
X33928000Y-31925126D01*
X33822790Y-31671126D01*
X41891000Y-31671126D01*
X41891000Y-32082874D01*
X42048569Y-32463280D01*
X42339720Y-32754431D01*
X42720126Y-32912000D01*
X43131874Y-32912000D01*
X43512280Y-32754431D01*
X43803431Y-32463280D01*
X43852197Y-32345547D01*
X43953569Y-32590280D01*
X44244720Y-32881431D01*
X44625126Y-33039000D01*
X44685000Y-33039000D01*
X44685000Y-33225874D01*
X44842569Y-33606280D01*
X45133720Y-33897431D01*
X45514126Y-34055000D01*
X45925874Y-34055000D01*
X46306280Y-33897431D01*
X46597431Y-33606280D01*
X46755000Y-33225874D01*
X46755000Y-33011196D01*
X47068280Y-32881431D01*
X47359431Y-32590280D01*
X47517000Y-32209874D01*
X47517000Y-31798126D01*
X47359431Y-31417720D01*
X47247211Y-31305500D01*
X47359431Y-31193280D01*
X47517000Y-30812874D01*
X47517000Y-30401126D01*
X47359431Y-30020720D01*
X47068280Y-29729569D01*
X46687874Y-29572000D01*
X46628000Y-29572000D01*
X46628000Y-29258126D01*
X46575395Y-29131126D01*
X47479000Y-29131126D01*
X47479000Y-29542874D01*
X47636569Y-29923280D01*
X47927720Y-30214431D01*
X48308126Y-30372000D01*
X48719874Y-30372000D01*
X49100280Y-30214431D01*
X49391431Y-29923280D01*
X49549000Y-29542874D01*
X49549000Y-29131126D01*
X49391431Y-28750720D01*
X49100280Y-28459569D01*
X48719874Y-28302000D01*
X48308126Y-28302000D01*
X47927720Y-28459569D01*
X47636569Y-28750720D01*
X47479000Y-29131126D01*
X46575395Y-29131126D01*
X46470431Y-28877720D01*
X46179280Y-28586569D01*
X45798874Y-28429000D01*
X45387126Y-28429000D01*
X45006720Y-28586569D01*
X44715569Y-28877720D01*
X44558000Y-29258126D01*
X44558000Y-29599804D01*
X44244720Y-29729569D01*
X43953569Y-30020720D01*
X43796000Y-30401126D01*
X43796000Y-30812874D01*
X43953569Y-31193280D01*
X44065789Y-31305500D01*
X43953569Y-31417720D01*
X43904803Y-31535453D01*
X43803431Y-31290720D01*
X43512280Y-30999569D01*
X43131874Y-30842000D01*
X42720126Y-30842000D01*
X42339720Y-30999569D01*
X42048569Y-31290720D01*
X41891000Y-31671126D01*
X33822790Y-31671126D01*
X33770431Y-31544720D01*
X33531211Y-31305500D01*
X33770431Y-31066280D01*
X33928000Y-30685874D01*
X33928000Y-30274126D01*
X33770431Y-29893720D01*
X33479280Y-29602569D01*
X33166000Y-29472804D01*
X33166000Y-29258126D01*
X33113395Y-29131126D01*
X33890000Y-29131126D01*
X33890000Y-29542874D01*
X34047569Y-29923280D01*
X34338720Y-30214431D01*
X34719126Y-30372000D01*
X35130874Y-30372000D01*
X35511280Y-30214431D01*
X35802431Y-29923280D01*
X35960000Y-29542874D01*
X35960000Y-29131126D01*
X35802431Y-28750720D01*
X35511280Y-28459569D01*
X35130874Y-28302000D01*
X34719126Y-28302000D01*
X34338720Y-28459569D01*
X34047569Y-28750720D01*
X33890000Y-29131126D01*
X33113395Y-29131126D01*
X33008431Y-28877720D01*
X32717280Y-28586569D01*
X32336874Y-28429000D01*
X31925126Y-28429000D01*
X31544720Y-28586569D01*
X31253569Y-28877720D01*
X31096000Y-29258126D01*
X31096000Y-29472804D01*
X30782720Y-29602569D01*
X30491569Y-29893720D01*
X30334000Y-30274126D01*
X30334000Y-30685874D01*
X30491569Y-31066280D01*
X30730789Y-31305500D01*
X30491569Y-31544720D01*
X30372000Y-31833386D01*
X30372000Y-31671126D01*
X30214431Y-31290720D01*
X29923280Y-30999569D01*
X29542874Y-30842000D01*
X29131126Y-30842000D01*
X28750720Y-30999569D01*
X28459569Y-31290720D01*
X28302000Y-31671126D01*
X18836790Y-31671126D01*
X18784431Y-31544720D01*
X18545211Y-31305500D01*
X18784431Y-31066280D01*
X18942000Y-30685874D01*
X18942000Y-30274126D01*
X18784431Y-29893720D01*
X18493280Y-29602569D01*
X18180000Y-29472804D01*
X18180000Y-29258126D01*
X18127395Y-29131126D01*
X18904000Y-29131126D01*
X18904000Y-29542874D01*
X19061569Y-29923280D01*
X19352720Y-30214431D01*
X19733126Y-30372000D01*
X20144874Y-30372000D01*
X20525280Y-30214431D01*
X20816431Y-29923280D01*
X20974000Y-29542874D01*
X20974000Y-29131126D01*
X20816431Y-28750720D01*
X20525280Y-28459569D01*
X20144874Y-28302000D01*
X19733126Y-28302000D01*
X19352720Y-28459569D01*
X19061569Y-28750720D01*
X18904000Y-29131126D01*
X18127395Y-29131126D01*
X18022431Y-28877720D01*
X17731280Y-28586569D01*
X17350874Y-28429000D01*
X16939126Y-28429000D01*
X16558720Y-28586569D01*
X16267569Y-28877720D01*
X16110000Y-29258126D01*
X16110000Y-29472804D01*
X15796720Y-29602569D01*
X15505569Y-29893720D01*
X15348000Y-30274126D01*
X15348000Y-30685874D01*
X15505569Y-31066280D01*
X15744789Y-31305500D01*
X15505569Y-31544720D01*
X15386000Y-31833386D01*
X15386000Y-31671126D01*
X15228431Y-31290720D01*
X14937280Y-30999569D01*
X14556874Y-30842000D01*
X14145126Y-30842000D01*
X13764720Y-30999569D01*
X13473569Y-31290720D01*
X13316000Y-31671126D01*
X7485254Y-31671126D01*
X7744563Y-31411817D01*
X7995000Y-30807211D01*
X7995000Y-30152789D01*
X7744563Y-29548183D01*
X7406380Y-29210000D01*
X7744563Y-28871817D01*
X7995000Y-28267211D01*
X7995000Y-27612789D01*
X7744563Y-27008183D01*
X7708506Y-26972126D01*
X11411000Y-26972126D01*
X11411000Y-27383874D01*
X11568569Y-27764280D01*
X11807789Y-28003500D01*
X11568569Y-28242720D01*
X11411000Y-28623126D01*
X11411000Y-29034874D01*
X11568569Y-29415280D01*
X11744289Y-29591000D01*
X11568569Y-29766720D01*
X11411000Y-30147126D01*
X11411000Y-30558874D01*
X11568569Y-30939280D01*
X11859720Y-31230431D01*
X12240126Y-31388000D01*
X12651874Y-31388000D01*
X13032280Y-31230431D01*
X13323431Y-30939280D01*
X13481000Y-30558874D01*
X13481000Y-30147126D01*
X13323431Y-29766720D01*
X13147711Y-29591000D01*
X13316000Y-29422711D01*
X13316000Y-29542874D01*
X13473569Y-29923280D01*
X13764720Y-30214431D01*
X14145126Y-30372000D01*
X14556874Y-30372000D01*
X14937280Y-30214431D01*
X15228431Y-29923280D01*
X15386000Y-29542874D01*
X15386000Y-29131126D01*
X15228431Y-28750720D01*
X14937280Y-28459569D01*
X14556874Y-28302000D01*
X14145126Y-28302000D01*
X13764720Y-28459569D01*
X13481000Y-28743289D01*
X13481000Y-28623126D01*
X13323431Y-28242720D01*
X13084211Y-28003500D01*
X13208000Y-27879711D01*
X13383720Y-28055431D01*
X13764126Y-28213000D01*
X14175874Y-28213000D01*
X14556280Y-28055431D01*
X14605000Y-28006711D01*
X14653720Y-28055431D01*
X15034126Y-28213000D01*
X15445874Y-28213000D01*
X15826280Y-28055431D01*
X15875000Y-28006711D01*
X15923720Y-28055431D01*
X16304126Y-28213000D01*
X16715874Y-28213000D01*
X17096280Y-28055431D01*
X17145000Y-28006711D01*
X17193720Y-28055431D01*
X17574126Y-28213000D01*
X17985874Y-28213000D01*
X18366280Y-28055431D01*
X18478500Y-27943211D01*
X18590720Y-28055431D01*
X18971126Y-28213000D01*
X19382874Y-28213000D01*
X19763280Y-28055431D01*
X20054431Y-27764280D01*
X20212000Y-27383874D01*
X20212000Y-26972126D01*
X20185698Y-26908626D01*
X26397000Y-26908626D01*
X26397000Y-27320374D01*
X26554569Y-27700780D01*
X26730289Y-27876500D01*
X26554569Y-28052220D01*
X26397000Y-28432626D01*
X26397000Y-28844374D01*
X26554569Y-29224780D01*
X26762039Y-29432250D01*
X26554569Y-29639720D01*
X26397000Y-30020126D01*
X26397000Y-30431874D01*
X26554569Y-30812280D01*
X26845720Y-31103431D01*
X27226126Y-31261000D01*
X27637874Y-31261000D01*
X28018280Y-31103431D01*
X28309431Y-30812280D01*
X28467000Y-30431874D01*
X28467000Y-30020126D01*
X28309431Y-29639720D01*
X28101961Y-29432250D01*
X28302000Y-29232211D01*
X28302000Y-29542874D01*
X28459569Y-29923280D01*
X28750720Y-30214431D01*
X29131126Y-30372000D01*
X29542874Y-30372000D01*
X29923280Y-30214431D01*
X30214431Y-29923280D01*
X30372000Y-29542874D01*
X30372000Y-29131126D01*
X30214431Y-28750720D01*
X29923280Y-28459569D01*
X29542874Y-28302000D01*
X29131126Y-28302000D01*
X28750720Y-28459569D01*
X28467000Y-28743289D01*
X28467000Y-28432626D01*
X28309431Y-28052220D01*
X28133711Y-27876500D01*
X28309431Y-27700780D01*
X28467000Y-27320374D01*
X28467000Y-26908626D01*
X28309431Y-26528220D01*
X28054837Y-26273626D01*
X40176500Y-26273626D01*
X40176500Y-26685374D01*
X40314796Y-27019250D01*
X40176500Y-27353126D01*
X40176500Y-27764874D01*
X40334069Y-28145280D01*
X40446289Y-28257500D01*
X40334069Y-28369720D01*
X40176500Y-28750126D01*
X40176500Y-29161874D01*
X40334069Y-29542280D01*
X40446289Y-29654500D01*
X40334069Y-29766720D01*
X40176500Y-30147126D01*
X40176500Y-30558874D01*
X40334069Y-30939280D01*
X40625220Y-31230431D01*
X41005626Y-31388000D01*
X41417374Y-31388000D01*
X41797780Y-31230431D01*
X42088931Y-30939280D01*
X42246500Y-30558874D01*
X42246500Y-30147126D01*
X42228175Y-30102886D01*
X42339720Y-30214431D01*
X42720126Y-30372000D01*
X43131874Y-30372000D01*
X43512280Y-30214431D01*
X43803431Y-29923280D01*
X43961000Y-29542874D01*
X43961000Y-29131126D01*
X43803431Y-28750720D01*
X43512280Y-28459569D01*
X43131874Y-28302000D01*
X42720126Y-28302000D01*
X42339720Y-28459569D01*
X42188701Y-28610588D01*
X42088931Y-28369720D01*
X41976711Y-28257500D01*
X42088931Y-28145280D01*
X42246500Y-27764874D01*
X42246500Y-27353126D01*
X42108204Y-27019250D01*
X42246500Y-26685374D01*
X42246500Y-26273626D01*
X42088931Y-25893220D01*
X41797780Y-25602069D01*
X41417374Y-25444500D01*
X41005626Y-25444500D01*
X40625220Y-25602069D01*
X40334069Y-25893220D01*
X40176500Y-26273626D01*
X28054837Y-26273626D01*
X28018280Y-26237069D01*
X27637874Y-26079500D01*
X27226126Y-26079500D01*
X26845720Y-26237069D01*
X26554569Y-26528220D01*
X26397000Y-26908626D01*
X20185698Y-26908626D01*
X20054431Y-26591720D01*
X19763280Y-26300569D01*
X19382874Y-26143000D01*
X18971126Y-26143000D01*
X18590720Y-26300569D01*
X18478500Y-26412789D01*
X18366280Y-26300569D01*
X17985874Y-26143000D01*
X17574126Y-26143000D01*
X17193720Y-26300569D01*
X17145000Y-26349289D01*
X17096280Y-26300569D01*
X16715874Y-26143000D01*
X16304126Y-26143000D01*
X15923720Y-26300569D01*
X15875000Y-26349289D01*
X15826280Y-26300569D01*
X15445874Y-26143000D01*
X15034126Y-26143000D01*
X14653720Y-26300569D01*
X14605000Y-26349289D01*
X14556280Y-26300569D01*
X14175874Y-26143000D01*
X13764126Y-26143000D01*
X13383720Y-26300569D01*
X13208000Y-26476289D01*
X13032280Y-26300569D01*
X12651874Y-26143000D01*
X12240126Y-26143000D01*
X11859720Y-26300569D01*
X11568569Y-26591720D01*
X11411000Y-26972126D01*
X7708506Y-26972126D01*
X7406380Y-26670000D01*
X7744563Y-26331817D01*
X7995000Y-25727211D01*
X7995000Y-25072789D01*
X7744563Y-24468183D01*
X7406380Y-24130000D01*
X7744563Y-23791817D01*
X7995000Y-23187211D01*
X7995000Y-22913789D01*
X14397000Y-22913789D01*
X14397000Y-23568211D01*
X14647437Y-24172817D01*
X15110183Y-24635563D01*
X15714789Y-24886000D01*
X16369211Y-24886000D01*
X16973817Y-24635563D01*
X17208614Y-24400766D01*
X20061839Y-24400766D01*
X20161726Y-24668658D01*
X20775074Y-24896851D01*
X21429059Y-24872956D01*
X21922274Y-24668658D01*
X22022161Y-24400766D01*
X21042000Y-23420605D01*
X20061839Y-24400766D01*
X17208614Y-24400766D01*
X17436563Y-24172817D01*
X17687000Y-23568211D01*
X17687000Y-22974074D01*
X19386149Y-22974074D01*
X19410044Y-23628059D01*
X19614342Y-24121274D01*
X19882234Y-24221161D01*
X20862395Y-23241000D01*
X21221605Y-23241000D01*
X22201766Y-24221161D01*
X22469658Y-24121274D01*
X22697851Y-23507926D01*
X22673956Y-22853941D01*
X22593535Y-22659789D01*
X28240000Y-22659789D01*
X28240000Y-23314211D01*
X28490437Y-23918817D01*
X28953183Y-24381563D01*
X29557789Y-24632000D01*
X30212211Y-24632000D01*
X30816817Y-24381563D01*
X31279563Y-23918817D01*
X31530000Y-23314211D01*
X31530000Y-22659789D01*
X33240000Y-22659789D01*
X33240000Y-23314211D01*
X33490437Y-23918817D01*
X33953183Y-24381563D01*
X34557789Y-24632000D01*
X35212211Y-24632000D01*
X35816817Y-24381563D01*
X36279563Y-23918817D01*
X36530000Y-23314211D01*
X36530000Y-22659789D01*
X41956000Y-22659789D01*
X41956000Y-23314211D01*
X42206437Y-23918817D01*
X42669183Y-24381563D01*
X43273789Y-24632000D01*
X43928211Y-24632000D01*
X44532817Y-24381563D01*
X44995563Y-23918817D01*
X45246000Y-23314211D01*
X45246000Y-22659789D01*
X46956000Y-22659789D01*
X46956000Y-23314211D01*
X47206437Y-23918817D01*
X47669183Y-24381563D01*
X48273789Y-24632000D01*
X48928211Y-24632000D01*
X49532817Y-24381563D01*
X49995563Y-23918817D01*
X50246000Y-23314211D01*
X50246000Y-22659789D01*
X49995563Y-22055183D01*
X49532817Y-21592437D01*
X48928211Y-21342000D01*
X48273789Y-21342000D01*
X47669183Y-21592437D01*
X47206437Y-22055183D01*
X46956000Y-22659789D01*
X45246000Y-22659789D01*
X44995563Y-22055183D01*
X44532817Y-21592437D01*
X43928211Y-21342000D01*
X43273789Y-21342000D01*
X42669183Y-21592437D01*
X42206437Y-22055183D01*
X41956000Y-22659789D01*
X36530000Y-22659789D01*
X36279563Y-22055183D01*
X35816817Y-21592437D01*
X35212211Y-21342000D01*
X34557789Y-21342000D01*
X33953183Y-21592437D01*
X33490437Y-22055183D01*
X33240000Y-22659789D01*
X31530000Y-22659789D01*
X31279563Y-22055183D01*
X30816817Y-21592437D01*
X30212211Y-21342000D01*
X29557789Y-21342000D01*
X28953183Y-21592437D01*
X28490437Y-22055183D01*
X28240000Y-22659789D01*
X22593535Y-22659789D01*
X22469658Y-22360726D01*
X22201766Y-22260839D01*
X21221605Y-23241000D01*
X20862395Y-23241000D01*
X19882234Y-22260839D01*
X19614342Y-22360726D01*
X19386149Y-22974074D01*
X17687000Y-22974074D01*
X17687000Y-22913789D01*
X17436563Y-22309183D01*
X17208614Y-22081234D01*
X20061839Y-22081234D01*
X21042000Y-23061395D01*
X22022161Y-22081234D01*
X21922274Y-21813342D01*
X21308926Y-21585149D01*
X20654941Y-21609044D01*
X20161726Y-21813342D01*
X20061839Y-22081234D01*
X17208614Y-22081234D01*
X16973817Y-21846437D01*
X16369211Y-21596000D01*
X15714789Y-21596000D01*
X15110183Y-21846437D01*
X14647437Y-22309183D01*
X14397000Y-22913789D01*
X7995000Y-22913789D01*
X7995000Y-22532789D01*
X7744563Y-21928183D01*
X7406380Y-21590000D01*
X7744563Y-21251817D01*
X7995000Y-20647211D01*
X7995000Y-19992789D01*
X7744563Y-19388183D01*
X7406380Y-19050000D01*
X7744563Y-18711817D01*
X7995000Y-18107211D01*
X7995000Y-17452789D01*
X55505000Y-17452789D01*
X55505000Y-18107211D01*
X55755437Y-18711817D01*
X56093620Y-19050000D01*
X55755437Y-19388183D01*
X55505000Y-19992789D01*
X55505000Y-20647211D01*
X55755437Y-21251817D01*
X56093620Y-21590000D01*
X55755437Y-21928183D01*
X55505000Y-22532789D01*
X55505000Y-23187211D01*
X55755437Y-23791817D01*
X56093620Y-24130000D01*
X55755437Y-24468183D01*
X55505000Y-25072789D01*
X55505000Y-25727211D01*
X55755437Y-26331817D01*
X56093620Y-26670000D01*
X55755437Y-27008183D01*
X55505000Y-27612789D01*
X55505000Y-28267211D01*
X55755437Y-28871817D01*
X56093620Y-29210000D01*
X55755437Y-29548183D01*
X55505000Y-30152789D01*
X55505000Y-30807211D01*
X55755437Y-31411817D01*
X56093620Y-31750000D01*
X55755437Y-32088183D01*
X55505000Y-32692789D01*
X55505000Y-33347211D01*
X55755437Y-33951817D01*
X56218183Y-34414563D01*
X56822789Y-34665000D01*
X57477211Y-34665000D01*
X58081817Y-34414563D01*
X58420000Y-34076380D01*
X58758183Y-34414563D01*
X59362789Y-34665000D01*
X60017211Y-34665000D01*
X60621817Y-34414563D01*
X61084563Y-33951817D01*
X61335000Y-33347211D01*
X61335000Y-32692789D01*
X61084563Y-32088183D01*
X60660923Y-31664543D01*
X60670161Y-31639766D01*
X59690000Y-30659605D01*
X58709839Y-31639766D01*
X58719077Y-31664543D01*
X58420000Y-31963620D01*
X58206380Y-31750000D01*
X58505457Y-31450923D01*
X58530234Y-31460161D01*
X59510395Y-30480000D01*
X59869605Y-30480000D01*
X60849766Y-31460161D01*
X61117658Y-31360274D01*
X61345851Y-30746926D01*
X61321956Y-30092941D01*
X61117658Y-29599726D01*
X60849766Y-29499839D01*
X59869605Y-30480000D01*
X59510395Y-30480000D01*
X58530234Y-29499839D01*
X58505457Y-29509077D01*
X58206380Y-29210000D01*
X58420000Y-28996380D01*
X58719077Y-29295457D01*
X58709839Y-29320234D01*
X59690000Y-30300395D01*
X60670161Y-29320234D01*
X60660923Y-29295457D01*
X61084563Y-28871817D01*
X61335000Y-28267211D01*
X61335000Y-27612789D01*
X61084563Y-27008183D01*
X60746380Y-26670000D01*
X61084563Y-26331817D01*
X61335000Y-25727211D01*
X61335000Y-25072789D01*
X61084563Y-24468183D01*
X60746380Y-24130000D01*
X61084563Y-23791817D01*
X61335000Y-23187211D01*
X61335000Y-22532789D01*
X61084563Y-21928183D01*
X60746380Y-21590000D01*
X61084563Y-21251817D01*
X61335000Y-20647211D01*
X61335000Y-19992789D01*
X61084563Y-19388183D01*
X60746380Y-19050000D01*
X61084563Y-18711817D01*
X61335000Y-18107211D01*
X61335000Y-17452789D01*
X61084563Y-16848183D01*
X60621817Y-16385437D01*
X60017211Y-16135000D01*
X59362789Y-16135000D01*
X58758183Y-16385437D01*
X58420000Y-16723620D01*
X58081817Y-16385437D01*
X57477211Y-16135000D01*
X56822789Y-16135000D01*
X56218183Y-16385437D01*
X55755437Y-16848183D01*
X55505000Y-17452789D01*
X7995000Y-17452789D01*
X7744563Y-16848183D01*
X7281817Y-16385437D01*
X6778912Y-16177126D01*
X11792000Y-16177126D01*
X11792000Y-16588874D01*
X11949569Y-16969280D01*
X12240720Y-17260431D01*
X12621126Y-17418000D01*
X13032874Y-17418000D01*
X13413280Y-17260431D01*
X13589000Y-17084711D01*
X13764720Y-17260431D01*
X14145126Y-17418000D01*
X14556874Y-17418000D01*
X14937280Y-17260431D01*
X14986000Y-17211711D01*
X15034720Y-17260431D01*
X15415126Y-17418000D01*
X15826874Y-17418000D01*
X16207280Y-17260431D01*
X16498431Y-16969280D01*
X16656000Y-16588874D01*
X16656000Y-16177126D01*
X25635000Y-16177126D01*
X25635000Y-16588874D01*
X25792569Y-16969280D01*
X26083720Y-17260431D01*
X26464126Y-17418000D01*
X26875874Y-17418000D01*
X27256280Y-17260431D01*
X27396500Y-17120211D01*
X27536720Y-17260431D01*
X27917126Y-17418000D01*
X28328874Y-17418000D01*
X28709280Y-17260431D01*
X28793500Y-17176211D01*
X28877720Y-17260431D01*
X29258126Y-17418000D01*
X29669874Y-17418000D01*
X30050280Y-17260431D01*
X30341431Y-16969280D01*
X30499000Y-16588874D01*
X30499000Y-16177126D01*
X32620000Y-16177126D01*
X32620000Y-16588874D01*
X32777569Y-16969280D01*
X33068720Y-17260431D01*
X33449126Y-17418000D01*
X33860874Y-17418000D01*
X34241280Y-17260431D01*
X34353500Y-17148211D01*
X34465720Y-17260431D01*
X34846126Y-17418000D01*
X35257874Y-17418000D01*
X35638280Y-17260431D01*
X35750500Y-17148211D01*
X35862720Y-17260431D01*
X36243126Y-17418000D01*
X36654874Y-17418000D01*
X37035280Y-17260431D01*
X37326431Y-16969280D01*
X37484000Y-16588874D01*
X37484000Y-16177126D01*
X37431395Y-16050126D01*
X40748000Y-16050126D01*
X40748000Y-16461874D01*
X40905569Y-16842280D01*
X41196720Y-17133431D01*
X41577126Y-17291000D01*
X41988874Y-17291000D01*
X42369280Y-17133431D01*
X42481500Y-17021211D01*
X42593720Y-17133431D01*
X42974126Y-17291000D01*
X43385874Y-17291000D01*
X43766280Y-17133431D01*
X43878500Y-17021211D01*
X43990720Y-17133431D01*
X44371126Y-17291000D01*
X44782874Y-17291000D01*
X45163280Y-17133431D01*
X45454431Y-16842280D01*
X45612000Y-16461874D01*
X45612000Y-16050126D01*
X47606000Y-16050126D01*
X47606000Y-16461874D01*
X47763569Y-16842280D01*
X48054720Y-17133431D01*
X48435126Y-17291000D01*
X48846874Y-17291000D01*
X49227280Y-17133431D01*
X49403000Y-16957711D01*
X49578720Y-17133431D01*
X49959126Y-17291000D01*
X50370874Y-17291000D01*
X50751280Y-17133431D01*
X50927000Y-16957711D01*
X51102720Y-17133431D01*
X51483126Y-17291000D01*
X51894874Y-17291000D01*
X52275280Y-17133431D01*
X52566431Y-16842280D01*
X52724000Y-16461874D01*
X52724000Y-16050126D01*
X52566431Y-15669720D01*
X52275280Y-15378569D01*
X51894874Y-15221000D01*
X51483126Y-15221000D01*
X51102720Y-15378569D01*
X50927000Y-15554289D01*
X50751280Y-15378569D01*
X50370874Y-15221000D01*
X49959126Y-15221000D01*
X49578720Y-15378569D01*
X49403000Y-15554289D01*
X49227280Y-15378569D01*
X48846874Y-15221000D01*
X48435126Y-15221000D01*
X48054720Y-15378569D01*
X47763569Y-15669720D01*
X47606000Y-16050126D01*
X45612000Y-16050126D01*
X45454431Y-15669720D01*
X45163280Y-15378569D01*
X44782874Y-15221000D01*
X44371126Y-15221000D01*
X43990720Y-15378569D01*
X43878500Y-15490789D01*
X43766280Y-15378569D01*
X43385874Y-15221000D01*
X42974126Y-15221000D01*
X42593720Y-15378569D01*
X42481500Y-15490789D01*
X42369280Y-15378569D01*
X41988874Y-15221000D01*
X41577126Y-15221000D01*
X41196720Y-15378569D01*
X40905569Y-15669720D01*
X40748000Y-16050126D01*
X37431395Y-16050126D01*
X37326431Y-15796720D01*
X37035280Y-15505569D01*
X36654874Y-15348000D01*
X36243126Y-15348000D01*
X35862720Y-15505569D01*
X35750500Y-15617789D01*
X35638280Y-15505569D01*
X35257874Y-15348000D01*
X34846126Y-15348000D01*
X34465720Y-15505569D01*
X34353500Y-15617789D01*
X34241280Y-15505569D01*
X33860874Y-15348000D01*
X33449126Y-15348000D01*
X33068720Y-15505569D01*
X32777569Y-15796720D01*
X32620000Y-16177126D01*
X30499000Y-16177126D01*
X30341431Y-15796720D01*
X30050280Y-15505569D01*
X29669874Y-15348000D01*
X29258126Y-15348000D01*
X28877720Y-15505569D01*
X28793500Y-15589789D01*
X28709280Y-15505569D01*
X28328874Y-15348000D01*
X27917126Y-15348000D01*
X27536720Y-15505569D01*
X27396500Y-15645789D01*
X27256280Y-15505569D01*
X26875874Y-15348000D01*
X26464126Y-15348000D01*
X26083720Y-15505569D01*
X25792569Y-15796720D01*
X25635000Y-16177126D01*
X16656000Y-16177126D01*
X16498431Y-15796720D01*
X16207280Y-15505569D01*
X15826874Y-15348000D01*
X15415126Y-15348000D01*
X15034720Y-15505569D01*
X14986000Y-15554289D01*
X14937280Y-15505569D01*
X14556874Y-15348000D01*
X14145126Y-15348000D01*
X13764720Y-15505569D01*
X13589000Y-15681289D01*
X13413280Y-15505569D01*
X13032874Y-15348000D01*
X12621126Y-15348000D01*
X12240720Y-15505569D01*
X11949569Y-15796720D01*
X11792000Y-16177126D01*
X6778912Y-16177126D01*
X6677211Y-16135000D01*
X6022789Y-16135000D01*
X5418183Y-16385437D01*
X5080000Y-16723620D01*
X4741817Y-16385437D01*
X4137211Y-16135000D01*
X3482789Y-16135000D01*
X2878183Y-16385437D01*
X2415437Y-16848183D01*
X2165000Y-17452789D01*
X760000Y-17452789D01*
X760000Y-10977778D01*
X2175000Y-10977778D01*
X2175000Y-11628222D01*
X2423914Y-12229153D01*
X2767761Y-12573000D01*
X2423914Y-12916847D01*
X2175000Y-13517778D01*
X2175000Y-14168222D01*
X2423914Y-14769153D01*
X2883847Y-15229086D01*
X3484778Y-15478000D01*
X4135222Y-15478000D01*
X4736153Y-15229086D01*
X5196086Y-14769153D01*
X5445000Y-14168222D01*
X5445000Y-13517778D01*
X5196086Y-12916847D01*
X5027365Y-12748126D01*
X9379000Y-12748126D01*
X9379000Y-13159874D01*
X9536569Y-13540280D01*
X9827720Y-13831431D01*
X10208126Y-13989000D01*
X10619874Y-13989000D01*
X11000280Y-13831431D01*
X11291431Y-13540280D01*
X11449000Y-13159874D01*
X11449000Y-12748126D01*
X11291431Y-12367720D01*
X11000280Y-12076569D01*
X10619874Y-11919000D01*
X10208126Y-11919000D01*
X9827720Y-12076569D01*
X9536569Y-12367720D01*
X9379000Y-12748126D01*
X5027365Y-12748126D01*
X4852239Y-12573000D01*
X5196086Y-12229153D01*
X5445000Y-11628222D01*
X5445000Y-10977778D01*
X5336621Y-10716126D01*
X17761000Y-10716126D01*
X17761000Y-11127874D01*
X17918569Y-11508280D01*
X18094289Y-11684000D01*
X17918569Y-11859720D01*
X17761000Y-12240126D01*
X17761000Y-12651874D01*
X17918569Y-13032280D01*
X18209720Y-13323431D01*
X18590126Y-13481000D01*
X19001874Y-13481000D01*
X19382280Y-13323431D01*
X19673431Y-13032280D01*
X19831000Y-12651874D01*
X19831000Y-12240126D01*
X19673431Y-11859720D01*
X19497711Y-11684000D01*
X19673431Y-11508280D01*
X19831000Y-11127874D01*
X19831000Y-10716126D01*
X19673431Y-10335720D01*
X19382280Y-10044569D01*
X19001874Y-9887000D01*
X18590126Y-9887000D01*
X18209720Y-10044569D01*
X17918569Y-10335720D01*
X17761000Y-10716126D01*
X5336621Y-10716126D01*
X5196086Y-10376847D01*
X4736153Y-9916914D01*
X4135222Y-9668000D01*
X3484778Y-9668000D01*
X2883847Y-9916914D01*
X2423914Y-10376847D01*
X2175000Y-10977778D01*
X760000Y-10977778D01*
X760000Y-9192126D01*
X9379000Y-9192126D01*
X9379000Y-9603874D01*
X9536569Y-9984280D01*
X9827720Y-10275431D01*
X10208126Y-10433000D01*
X10619874Y-10433000D01*
X11000280Y-10275431D01*
X11291431Y-9984280D01*
X11449000Y-9603874D01*
X11449000Y-9192126D01*
X11369730Y-9000750D01*
X32040000Y-9000750D01*
X32040000Y-9841309D01*
X32136673Y-10074698D01*
X32315301Y-10253327D01*
X32548690Y-10350000D01*
X34639250Y-10350000D01*
X34798000Y-10191250D01*
X34798000Y-8842000D01*
X35052000Y-8842000D01*
X35052000Y-10191250D01*
X35210750Y-10350000D01*
X37301310Y-10350000D01*
X37534699Y-10253327D01*
X37713327Y-10074698D01*
X37810000Y-9841309D01*
X37810000Y-9000750D01*
X37651250Y-8842000D01*
X35052000Y-8842000D01*
X34798000Y-8842000D01*
X32198750Y-8842000D01*
X32040000Y-9000750D01*
X11369730Y-9000750D01*
X11291431Y-8811720D01*
X11000280Y-8520569D01*
X10619874Y-8363000D01*
X10208126Y-8363000D01*
X9827720Y-8520569D01*
X9536569Y-8811720D01*
X9379000Y-9192126D01*
X760000Y-9192126D01*
X760000Y-4500778D01*
X2175000Y-4500778D01*
X2175000Y-5151222D01*
X2423914Y-5752153D01*
X2767761Y-6096000D01*
X2423914Y-6439847D01*
X2175000Y-7040778D01*
X2175000Y-7691222D01*
X2423914Y-8292153D01*
X2883847Y-8752086D01*
X3484778Y-9001000D01*
X4135222Y-9001000D01*
X4736153Y-8752086D01*
X5196086Y-8292153D01*
X5445000Y-7691222D01*
X5445000Y-7588691D01*
X32040000Y-7588691D01*
X32040000Y-8429250D01*
X32198750Y-8588000D01*
X34798000Y-8588000D01*
X34798000Y-7238750D01*
X35052000Y-7238750D01*
X35052000Y-8588000D01*
X37651250Y-8588000D01*
X37810000Y-8429250D01*
X37810000Y-7715000D01*
X42187560Y-7715000D01*
X42187560Y-9715000D01*
X42236843Y-9962765D01*
X42377191Y-10172809D01*
X42587235Y-10313157D01*
X42835000Y-10362440D01*
X47335000Y-10362440D01*
X47582765Y-10313157D01*
X47792809Y-10172809D01*
X47933157Y-9962765D01*
X47982440Y-9715000D01*
X47982440Y-7715000D01*
X52347560Y-7715000D01*
X52347560Y-9715000D01*
X52396843Y-9962765D01*
X52537191Y-10172809D01*
X52747235Y-10313157D01*
X52995000Y-10362440D01*
X57495000Y-10362440D01*
X57742765Y-10313157D01*
X57952809Y-10172809D01*
X58093157Y-9962765D01*
X58142440Y-9715000D01*
X58142440Y-7715000D01*
X58093157Y-7467235D01*
X57952809Y-7257191D01*
X57742765Y-7116843D01*
X57495000Y-7067560D01*
X52995000Y-7067560D01*
X52747235Y-7116843D01*
X52537191Y-7257191D01*
X52396843Y-7467235D01*
X52347560Y-7715000D01*
X47982440Y-7715000D01*
X47933157Y-7467235D01*
X47792809Y-7257191D01*
X47582765Y-7116843D01*
X47335000Y-7067560D01*
X42835000Y-7067560D01*
X42587235Y-7116843D01*
X42377191Y-7257191D01*
X42236843Y-7467235D01*
X42187560Y-7715000D01*
X37810000Y-7715000D01*
X37810000Y-7588691D01*
X37713327Y-7355302D01*
X37534699Y-7176673D01*
X37301310Y-7080000D01*
X35210750Y-7080000D01*
X35052000Y-7238750D01*
X34798000Y-7238750D01*
X34639250Y-7080000D01*
X32548690Y-7080000D01*
X32315301Y-7176673D01*
X32136673Y-7355302D01*
X32040000Y-7588691D01*
X5445000Y-7588691D01*
X5445000Y-7040778D01*
X5196086Y-6439847D01*
X4852239Y-6096000D01*
X5058113Y-5890126D01*
X9379000Y-5890126D01*
X9379000Y-6301874D01*
X9536569Y-6682280D01*
X9827720Y-6973431D01*
X10208126Y-7131000D01*
X10619874Y-7131000D01*
X11000280Y-6973431D01*
X11291431Y-6682280D01*
X11449000Y-6301874D01*
X11449000Y-5890126D01*
X11291431Y-5509720D01*
X11000280Y-5218569D01*
X10619874Y-5061000D01*
X10208126Y-5061000D01*
X9827720Y-5218569D01*
X9536569Y-5509720D01*
X9379000Y-5890126D01*
X5058113Y-5890126D01*
X5196086Y-5752153D01*
X5445000Y-5151222D01*
X5445000Y-4500778D01*
X5196086Y-3899847D01*
X4736153Y-3439914D01*
X4135222Y-3191000D01*
X3484778Y-3191000D01*
X2883847Y-3439914D01*
X2423914Y-3899847D01*
X2175000Y-4500778D01*
X760000Y-4500778D01*
X760000Y-1715000D01*
X32277560Y-1715000D01*
X32277560Y-3715000D01*
X32326843Y-3962765D01*
X32467191Y-4172809D01*
X32677235Y-4313157D01*
X32925000Y-4362440D01*
X36925000Y-4362440D01*
X37172765Y-4313157D01*
X37382809Y-4172809D01*
X37523157Y-3962765D01*
X37572440Y-3715000D01*
X37572440Y-1715000D01*
X42437560Y-1715000D01*
X42437560Y-3715000D01*
X42486843Y-3962765D01*
X42627191Y-4172809D01*
X42837235Y-4313157D01*
X43085000Y-4362440D01*
X47085000Y-4362440D01*
X47332765Y-4313157D01*
X47542809Y-4172809D01*
X47683157Y-3962765D01*
X47732440Y-3715000D01*
X47732440Y-1715000D01*
X52597560Y-1715000D01*
X52597560Y-3715000D01*
X52646843Y-3962765D01*
X52787191Y-4172809D01*
X52997235Y-4313157D01*
X53245000Y-4362440D01*
X57245000Y-4362440D01*
X57492765Y-4313157D01*
X57702809Y-4172809D01*
X57843157Y-3962765D01*
X57892440Y-3715000D01*
X57892440Y-1715000D01*
X57843157Y-1467235D01*
X57702809Y-1257191D01*
X57492765Y-1116843D01*
X57245000Y-1067560D01*
X53245000Y-1067560D01*
X52997235Y-1116843D01*
X52787191Y-1257191D01*
X52646843Y-1467235D01*
X52597560Y-1715000D01*
X47732440Y-1715000D01*
X47683157Y-1467235D01*
X47542809Y-1257191D01*
X47332765Y-1116843D01*
X47085000Y-1067560D01*
X43085000Y-1067560D01*
X42837235Y-1116843D01*
X42627191Y-1257191D01*
X42486843Y-1467235D01*
X42437560Y-1715000D01*
X37572440Y-1715000D01*
X37523157Y-1467235D01*
X37382809Y-1257191D01*
X37172765Y-1116843D01*
X36925000Y-1067560D01*
X32925000Y-1067560D01*
X32677235Y-1116843D01*
X32467191Y-1257191D01*
X32326843Y-1467235D01*
X32277560Y-1715000D01*
X760000Y-1715000D01*
X760000Y-760000D01*
X62740000Y-760000D01*
X62740001Y-76125148D01*
G04 #@! TD*
M02*
|
src/firmware-tests/Platform/MclrReset/Pcon/UlpwuDisabledTest.asm | pete-restall/Cluck2Sesame-Prototype | 1 | 24392 | <filename>src/firmware-tests/Platform/MclrReset/Pcon/UlpwuDisabledTest.asm
#include "Platform.inc"
#include "FarCalls.inc"
#include "MclrReset.inc"
#include "TestFixture.inc"
radix decimal
UlpwuDisabledTest code
global testArrange
testArrange:
banksel PCON
movlw 0xff
movwf PCON
testAct:
fcall initialiseAfterMclrReset
testAssert:
banksel PCON
.assert "(pcon & 0x20) == 0, 'ULPWUE bit should not be set.'"
return
end
|
Library/Text/TextUndo/tuMain.asm | steakknife/pcgeos | 504 | 92018 | <gh_stars>100-1000
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1992 -- All Rights Reserved
PROJECT: Text library
MODULE: TextUndo
FILE: tuMain.asm
AUTHOR: <NAME>, Jun 16, 1992
REVISION HISTORY:
Name Date Description
---- ---- -----------
atw 6/16/92 Initial revision
DESCRIPTION:
This file contains routines to implement undo for the text object.
$Id: tuMain.asm,v 1.1 97/04/07 11:22:37 newdeal Exp $
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
TextFixed segment resource
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
CheckForUndo
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Checks to see if undo is active.
CALLED BY: GLOBAL
PASS: *ds:si - VisText object
RETURN: z flag set if no undo (jz noUndo)
DESTROYED: nada
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
atw 9/ 3/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
CheckForUndo proc near uses ax, si
class VisTextClass
.enter
mov si, ds:[si]
add si, ds:[si].VisText_offset
test ds:[si].VTI_features, mask VTF_ALLOW_UNDO
jz exit
call GenProcessUndoCheckIfIgnoring
tst ax
jnz ignoring
or ax, 1
exit:
.leave
ret
ignoring:
clr ax ;Set the zero flag
jmp exit
CheckForUndo endp
if 0
CheckForUndoFar proc far
call CheckForUndo
ret
CheckForUndoFar endp
endif
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
TU_NukeCachedUndo
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: This routine nukes the cached undo data for the current object,
so future undos start a new undo item
CALLED BY: GLOBAL
PASS: *ds:si - text object
RETURN: nada
DESTROYED: nada
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
atw 6/17/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
TU_NukeCachedUndo proc far uses bx
class VisTextClass
.enter
call CheckForUndo
jz exit
; Nuke the current undo information
call TU_DerefUndo
clrdw ds:[bx].VTCUI_vmChain
exit:
.leave
ret
TU_NukeCachedUndo endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
TU_StartChainIfUndoable
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Starts a new undo chain
CALLED BY: GLOBAL
PASS: ax - chunk handle of undo title
RETURN: nada
DESTROYED: ax
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
atw 6/23/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
TU_StartChainIfUndoable proc far
.enter
call CheckForUndo
jz exit
call TU_StartUndoChain
exit:
.leave
ret
TU_StartChainIfUndoable endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
TU_EndChainIfUndoable
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Ends a new undo chain
CALLED BY: GLOBAL
PASS: nothing
RETURN: nada
DESTROYED: nothing (flags preserved)
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
atw 6/23/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
TU_EndChainIfUndoable proc far
.enter
pushf
call CheckForUndo
jz exit
call TU_EndUndoChain
exit:
popf
.leave
ret
TU_EndChainIfUndoable endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
TU_AbortChainIfUndoable
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Aborts the current undo chain
CALLED BY: GLOBAL
PASS: nada
RETURN: nada
DESTROYED: nada (flags preserved)
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
atw 3/17/94 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
TU_AbortChainIfUndoable proc far
.enter
pushf
call CheckForUndo
jz exit
call TU_AbortUndoChain
exit:
popf
.leave
ret
TU_AbortChainIfUndoable endp
TextFixed ends
TextUndo segment resource
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
TU_DerefUndo
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Dereference the cached undo information.
CALLED BY: GLOBAL
PASS: *ds:si - VisText object
RETURN: ds:bx - ptr to vardata (created if none existed previously)
DESTROYED: nada
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
atw 6/18/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
TU_DerefUndo proc far uses ax
.enter
mov ax, TEMP_VIS_TEXT_CACHED_UNDO_INFO
call ObjVarFindData
jnc create
common:
.leave
ret
create:
push cx
mov cx, size VisTextCachedUndoInfo
call ObjVarAddData
pop cx
jmp common
TU_DerefUndo endp
if ERROR_CHECK
TU_DerefVis_DI proc near
mov di, ds:[si]
add di, ds:[di].VisText_offset
ret
TU_DerefVis_DI endp
endif ;ERROR_CHECK
VMLockCX proc near
mov cx, bp
call VMLock
xchg cx, bp
ret
VMLockCX endp
VMUnlockCX proc near
xchg cx, bp
call VMUnlock
xchg cx, bp
ret
VMUnlockCX endp
VMDirtyCX proc near
xchg cx, bp
call VMDirty
xchg cx, bp
ret
VMDirtyCX endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
AppendChars
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Appends characters from the text object into the undo action.
CALLED BY: GLOBAL
PASS: *ds:si - text object
es - segment of block containing TextTypingData structure
DX.AX - offset into text object to get chars
DI - # chars to get
RETURN: nada
DESTROYED: nada
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
atw 6/19/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
AppendChars proc near uses cx, di
.enter
mov cx, di
mov di, es:[CRD_charsToInsert].low
DBCS < shl di, 1 >
add di, offset CRD_chars
call CopyCharsFromTextObjectToBuffer
.leave
ret
AppendChars endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
CopyCharsFromTextObjectToBuffer
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Gets chars from the text object
CALLED BY: GLOBAL
PASS: dx.ax - start of range to get chars
cx - # chars to get
es:di - dest for chars
*ds:si - text object
RETURN: nada
DESTROYED: cx, di
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
atw 6/19/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
CopyCharsFromTextObjectToBuffer proc near uses ax, bx, dx, bp, ds, si
.enter
; Set up VisTextRange of text to get
sub sp, size VisTextRange
mov bx, sp
movdw ss:[bx].VTR_start, dxax
add ax, cx
adc dx, 0
movdw ss:[bx].VTR_end, dxax
; Set up the TextReference
sub sp, size TextReference
mov bp, sp
inc cx ;+1 for NULL
DBCS < shl cx, 1 >
sub sp, cx
mov ss:[bp].TR_type, TRT_POINTER
movdw ss:[bp].TR_ref.TRU_pointer.TRP_pointer, sssp
; Get the text out of the text object
call TS_GetTextRange
; Copy the text from our buffer into the text object
segmov ds, ss
mov si, sp
push cx
DBCS < shr cx, 1 >
dec cx ;-1 for NULL
SBCS < shr cx, 1 >
SBCS < jnc 10$ >
SBCS < movsb >
SBCS <10$: >
rep movsw
pop cx
add sp, cx
add sp, size TextReference + VisTextRange
.leave
ret
CopyCharsFromTextObjectToBuffer endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
CopyCharsFromTextObjectToHugeArray
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Gets chars from the text object
CALLED BY: GLOBAL
PASS: dx.ax - start of range to get chars
di.cx - # chars to get
bx - vm file handle to create huge array in
*ds:si - text object
RETURN: di - handle of HugeArray
DESTROYED: cx
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
atw 6/19/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
CopyCharsFromTextObjectToHugeArray proc near uses ax, dx, bp, ds, si
range local VisTextRange
ref local TextReference
.enter
; Set up VisTextRange of text to get
movdw range.VTR_start, dxax
adddw dxax, dicx
movdw range.VTR_end, dxax
; Create a huge array to hold this data
mov cx, BYTES_PER_CHAR
clr di
call HugeArrayCreate ;DI <- handle of huge array
; Set up the TextReference
mov ref.TR_type, TRT_HUGE_ARRAY
mov ref.TR_ref.TRU_hugeArray.TRHA_file, bx
mov ref.TR_ref.TRU_hugeArray.TRHA_array, di
; Get the text out of the text object
push bp
lea bx, range
lea bp, ref
call TS_GetTextRange
pop bp
.leave
ret
CopyCharsFromTextObjectToHugeArray endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
PrependChars
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Prepends chars to the passed TextTypingData structure
CALLED BY: GLOBAL
PASS: *ds:si - text object
ES - segment of block containing TextTypingData structure
DX.AX - offset into text object to get chars
DI - # chars to get
RETURN: nada
DESTROYED: nada
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
atw 6/19/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
PrependChars proc near uses cx, di
.enter
; Move the chars that already are in the structure forward, to make room
; for the new chars
mov cx, di
push cx
mov cx, es:[CRD_charsToInsert].low
jcxz skipCopy
push ds, si
segmov ds, es
if DBCS_PCGEOS
push ax
mov si, offset CRD_chars-(size wchar)
mov ax, es:[CRD_charsToInsert].low
shl ax, 1 ;AX <- byte offset
add si, ax ;DS:SI <- ptr to last char
shl di, 1 ;DI <- byte offset
add di, si ;ES:DI <- ptr to dest for
; last char
pop ax
else
mov si, offset CRD_chars-1 ;
add si, es:[CRD_charsToInsert].low ;DS:SI <- ptr to last char
add di, si ;ES:DI <- ptr to dest for
; last char
endif
std
LocalCopyNString
cld
pop ds, si
skipCopy:
pop cx
; Copy the characters in
mov di, offset CRD_chars
call CopyCharsFromTextObjectToBuffer
.leave
ret
PrependChars endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
AllocateCommonReplacementData
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Allocates a CommonReplacementData structure in a VMBlock
CALLED BY: GLOBAL
PASS: ss:bp - VisTextReplaceParameters
bx - file handle
RETURN: cx - mem handle of vm block allocated
ax - vm handle of block allocated
es - pointing to locked vm block
DESTROYED: dx, di
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
atw 7/14/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
AllocateCommonReplacementData proc near
.enter
movdw dxcx, ss:[bp].VTRP_range.VTR_end
subdw dxcx, ss:[bp].VTRP_range.VTR_start ;DX.CX <- # chars to
; put in this box
cmpdw dxcx, MAX_CHARS_IN_SMALL_STRUCT
ja huge
test ss:[bp].VTRP_flags, mask VTRF_KEYBOARD_INPUT
jz common
; If this is the beginning of an update-on-the-fly typing undo action,
; then make sure it has *at least* MAX_CHARS_PER_TYPING_UNDO_ACTION
; chars.
cmp cx, MAX_CHARS_PER_TYPING_UNDO_ACTION
ja common
mov cx, MAX_CHARS_PER_TYPING_UNDO_ACTION
common:
DBCS < shl cx, 1 >
add cx, size CommonReplacementData
clr ax
call VMAlloc
push ax ;Save vm handle
call VMLockCX
push cx ;Save mem handle
call VMDirtyCX
mov es, ax
movdw es:[CRD_charsToDelete], ss:[bp].VTRP_insCount, ax
movdw diax, ss:[bp].VTRP_range.VTR_start
movdw es:[CRD_insertionPoint], diax
movdw dxcx, ss:[bp].VTRP_range.VTR_end
subdw dxcx, diax ;CX = # chars we are replacing
movdw es:[CRD_charsToInsert], dxcx
pop cx ;Restore vm handle
pop ax ;Restore mem handle
.leave
ret
huge:
clr cx ;No extra data to store chars to
jmp common
AllocateCommonReplacementData endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
AddVMChainUndoAction
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Adds a VM Chain undo action
CALLED BY: GLOBAL
PASS: ax - head block of VMChain
cx -- AddUndoActionFlags
bx - low word of AppType
*ds:si - VisText object
RETURN: nada
DESTROYED: nada
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
atw 7/16/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
AddVMChainUndoAction proc near
.enter
EC < call T_AssertIsVisText >
mov dx, size AddUndoActionStruct
sub sp, dx
mov bp, sp
mov ss:[bp].AUAS_data.UAS_dataType, UADT_VM_CHAIN
mov ss:[bp].AUAS_flags, cx
mov ss:[bp].AUAS_data.UAS_appType.low, bx
clr ss:[bp].AUAS_data.UAS_appType.high
mov ss:[bp].AUAS_data.UAS_data.UADU_vmChain.UADVMC_vmChain.high,ax
clr ss:[bp].AUAS_data.UAS_data.UADU_vmChain.UADVMC_vmChain.low
mov ax, ds:[LMBH_handle]
mov ss:[bp].AUAS_output.handle, ax
mov ss:[bp].AUAS_output.chunk, si
mov ax, MSG_GEN_PROCESS_UNDO_ADD_ACTION
mov di, mask MF_FIXUP_DS or mask MF_STACK or mask MF_CALL
call TU_ObjMessageToProcess
add sp, size AddUndoActionStruct
.leave
ret
AddVMChainUndoAction endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
CreateNewReplaceUndoAction
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Creates and sends off a new replace undo action.
CALLED BY: TU_DoReplaceUndo
PASS: *ds:si - object
ss:bp - VisTextReplaceParameters
bx - file handle
RETURN: ax - VM Handle containing TextTypingData structure
DESTROYED: nada
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
atw 6/19/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
CreateNewReplaceUndoAction proc near uses bx, cx, es, di, bp
.enter
; Create a CommonReplacementData structure that will hold information to
; undo this replacement.
call AllocateCommonReplacementData
;Returns CX = locked block handle
;AX = VM handle
push cx, ax
movdw dicx, es:[CRD_charsToInsert] ;DICX <- # chars being deleted
movdw dxax, ss:[bp].VTRP_range.VTR_start
cmpdw dicx, MAX_CHARS_IN_SMALL_STRUCT
ja doHuge
; Copy the chars from the text object to here.
EC < tst di >
EC < ERROR_NZ -1 >
mov di, offset CRD_chars ;ES:DI <- dest for chars
call CopyCharsFromTextObjectToBuffer
clr di
mov bx, TUT_SMALL_REPLACEMENT_CHARS
jmp common
doHuge:
call CopyCharsFromTextObjectToHugeArray
mov bx, TUT_LARGE_REPLACEMENT_CHARS
common:
mov es:[VMCL_next], di
pop cx,ax
call VMUnlockCX
; Send this undo action off
clr cx
test ss:[bp].VTRP_flags, mask VTRF_KEYBOARD_INPUT
jz 20$
mov cx, mask AUAF_NOTIFY_BEFORE_FREEING
20$:
call AddVMChainUndoAction
.leave
ret
CreateNewReplaceUndoAction endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GetUndoFile
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Gets the undo file for the app.
CALLED BY: GLOBAL
PASS: nothing
RETURN: bx - undo file
DESTROYED: nada
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
atw 7/16/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GetUndoFile proc near
.enter
mov_tr bx, ax ;BX <- old ax value
call GenProcessUndoGetFile
xchg ax, bx ;AX <- old ax value
;BX <- file handle
.leave
ret
GetUndoFile endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
TU_DoReplaceUndo
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: This routine creates an undo action for the passed
VisTextReplaceParameters.
CALLED BY: GLOBAL
PASS: *ds:si - text object
ss:bp - VisTextReplaceParameters
RETURN: nada
DESTROYED: nada
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
atw 6/18/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
TU_DoReplaceUndo proc far uses ax, bx, cx, dx, di
class VisTextClass
.enter
EC < call TU_DerefVis_DI >
EC < test ds:[di].VTI_features, mask VTF_ALLOW_UNDO >
EC < ERROR_Z UNDO_NOT_TURNED_ON >
EC < call GenProcessUndoCheckIfIgnoring >
EC < tst ax >
EC < ERROR_NZ UNDO_RESOURCE_LOADED_EVEN_THOUGH_IGNORING_UNDO >
; If this replace is generated from keyboard input, and there is already
; a cached replace item, just update it
test ss:[bp].VTRP_flags, mask VTRF_KEYBOARD_INPUT
jz createNewAction
call TU_DerefUndo
mov ax, ds:[bx].VTCUI_vmChain.high
tst ax
jnz updateCurrentAction
createNewAction:
call GetUndoFile ;bx = undo file
call CreateNewReplaceUndoAction ;Returns undo VM handle in AX
; Store the handle of the undo item
mov di, bx
call TU_DerefUndo
clrdw ds:[bx].VTCUI_vmChain
test ss:[bp].VTRP_flags, mask VTRF_KEYBOARD_INPUT
jz exit
mov ds:[bx].VTCUI_vmChain.high, ax
mov ds:[bx].VTCUI_file, di
exit:
.leave
ret
updateCurrentAction:
; We already have a current typing action. Try to modify it rather than
; creating a new one.
mov bx, ds:[bx].VTCUI_file
call VMLockCX
mov es, ax
movdw dxax, ss:[bp].VTRP_range.VTR_end ;DX.AX <- # chars in
subdw dxax, ss:[bp].VTRP_range.VTR_start ; range being modified
tst dx
jnz tooLarge
; If deleting these characters will push the number of chars to delete
; in this action beyond the limit, just create a new one.
mov di, ax ;DI <- # chars in replace range
tst di
LONG jz afterDelete
tst es:[CRD_charsToInsert].high
jnz tooLarge
movdw dxax, es:[CRD_insertionPoint]
adddw dxax, es:[CRD_charsToDelete] ;DX.AX = current cursor
; position
cmpdw ss:[bp].VTRP_range.VTR_start, dxax
jb deletingBackward
EC < cmpdw ss:[bp].VTRP_range.VTR_start, dxax >
EC < ERROR_NZ CANNOT_UPDATE_TYPING_UNDO_ACTION >
;
; We are deleting forward DI chars
;
; Adjust the # chars we need to insert to undo this replacement,
; and append the chars to insert to the CRD_chars array
;
add di, es:[CRD_charsToInsert].low ;If there are too many chars
jc tooLarge ; to delete, branch to create
; a new item
cmp di, MAX_CHARS_PER_TYPING_UNDO_ACTION
ja tooLarge
sub di, es:[CRD_charsToInsert].low
call AppendChars
add es:[CRD_charsToInsert].low, di
jmp afterDelete
tooLarge:
; We are deleting too many characters in this replace to keep in the
; current undo action, so jump back to create a new one.
call VMUnlockCX ;Unlock the undo action
jmp createNewAction
deletingBackward:
EC < cmpdw ss:[bp].VTRP_range.VTR_end, dxax >
EC < ERROR_NZ CANNOT_UPDATE_TYPING_UNDO_ACTION >
; They are deleting backward DI chars.
;
; if DI <= CRD_charsToDelete
; CRD_charsToDelete = CRD_charsToDelete - DI
;
; else if DI > CRD_charsToDelete
; CRD_charsToInsert = CRD_charsToInsert+(DI - CRD_charsToDelete)
; CRD_insertionPoint = CRD_insertionPoint-(DI-CRD_charsToDelete)
; <prepend chars being deleted to CRD_chars array>
; CRD_charsToDelete = 0
; Ensure that the chars we will be deleting will fit in this string
cmp di, es:[CRD_charsToDelete].low
jb deleteInThisItem
tst es:[CRD_charsToDelete].high
jne deleteInThisItem
mov ax, di
sub di, es:[CRD_charsToDelete].low
add di, es:[CRD_charsToInsert].low
jc tooLarge
cmp di, MAX_CHARS_PER_TYPING_UNDO_ACTION
ja tooLarge
mov_tr di, ax
deleteInThisItem:
sub es:[CRD_charsToDelete].low, di ;If we are just deleting chars
sbb es:[CRD_charsToDelete].high, 0 ; we just entered, branch
jnc afterDelete ;
mov di, es:[CRD_charsToDelete].low
neg di ;DI = DI-CRD_charsToDelete
clrdw es:[CRD_charsToDelete]
sub es:[CRD_insertionPoint].low, di
sbb es:[CRD_insertionPoint].high, 0
movdw dxax, es:[CRD_insertionPoint]
call PrependChars
add es:[CRD_charsToInsert].low, di
afterDelete:
adddw es:[CRD_charsToDelete], ss:[bp].VTRP_insCount, ax
call VMDirtyCX
call VMUnlockCX
jmp exit
TU_DoReplaceUndo endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
VisTextUndoFreeingAction
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Method handler for MSG_META_UNDO_FREEING_ACTION - if the action
being freed is the current typing undo action, then nuke the
cached info, so we will create a new undo action when it is
freed.
CALLED BY: GLOBAL
PASS: ss:bp - AddUndoActionStruct
RETURN: nada
DESTROYED: ax,cx,dx,bp,
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
atw 6/19/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
VisTextUndoFreeingAction proc far ;MSG_META_UNDO_FREEING_ACTION
.enter
mov bx, ss:[bp].AUAS_data.UAS_appType.low
EC < cmp bx, TextUndoType >
EC < ERROR_AE BAD_TEXT_UNDO_TYPE >
shl bx, 1
call cs:[freeUndoHandlers][bx]
.leave
ret
VisTextUndoFreeingAction endp
freeUndoHandlers nptr FreeTypingUndo, FreeTypingUndo, Death, FreeRunsUndo
.assert (length freeUndoHandlers) eq TextUndoType
Death proc near
EC < ERROR BAD_TEXT_UNDO_TYPE >
NEC < ret >
Death endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
FreeRunsUndo
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: When an undo action containing runs is deleted, we dec
the reference count for the associated elements.
CALLED BY: GLOBAL
PASS: ss:bp - AddUndoActionStruct
RETURN: nada
DESTROYED: nada
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
atw 7/21/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
FreeRunsUndo proc near
.enter
mov bx, ss:[bp].AUAS_data.UAS_data.UADU_vmChain.UADVMC_file
mov di, ss:[bp].AUAS_data.UAS_data.UADU_vmChain.UADVMC_vmChain.high
; Get our data from the huge array directory block
push ds
call HugeArrayLockDir
mov ds, ax
mov dx, ds:[RHAD_runOffset]
call HugeArrayUnlockDir
pop ds
call TA_DecrementRefCountsFromHugeArray
.leave
ret
FreeRunsUndo endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
FreeTypingUndo
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: When a typing undo action is freed, this nukes the cached
typing undo information, so we don't try to update it.
CALLED BY: GLOBAL
PASS: ss:bp - AddUndoActionStruct
RETURN: nada
DESTROYED: nada
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
atw 7/21/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
FreeTypingUndo proc near
.enter
call TU_DerefUndo
cmpdw ss:[bp].AUAS_data.UAS_data.UADU_vmChain.UADVMC_vmChain, ds:[bx].VTCUI_vmChain,ax
jne exit
clrdw ds:[bx].VTCUI_vmChain
exit:
.leave
ret
FreeTypingUndo endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
VisTextUndo
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Contains data for doing undo.
CALLED BY: GLOBAL
PASS: ss:bp - UndoActionStruct
RETURN: nada
DESTROYED: ax,cx, dx,bp,
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
atw 6/19/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
VisTextUndo proc far ;MSG_META_UNDO
class VisTextClass
.enter
; Set DI as a flag to tell if we are suspended or not:
; DI = 0 if suspended already
; DI = non-zero if not suspended (so we have to generate our own
; suspend)
;
EC < test ds:[di].VTI_features, mask VTF_ALLOW_UNDO >
EC < ERROR_Z UNDO_NOT_TURNED_ON >
test ds:[di].VTI_intFlags, mask VTIF_SUSPENDED
mov di,0
jnz noSuspend
mov di, -1
call TextSuspend
noSuspend:
;
; Abort any active search/spell sessions.
;
call SendAbortSearchSpellNotification
mov bx, ss:[bp].AUAS_data.UAS_appType.low
EC < cmp bx, TextUndoType >
EC < ERROR_AE BAD_TEXT_UNDO_TYPE >
shl bx, 1
push di
call cs:[undoHandlers][bx]
pop di
tst di
jz noUnSuspend
mov ax, MSG_META_UNSUSPEND
mov bx, ds:[LMBH_handle]
mov di, mask MF_FORCE_QUEUE or mask MF_INSERT_AT_FRONT
call ObjMessage
noUnSuspend:
.leave
ret
VisTextUndo endp
undoHandlers nptr SmallReplaceUndo, LargeReplaceUndo, DeleteRunsUndo, RestoreRunsUndo
.assert (length undoHandlers) eq TextUndoType
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SmallReplaceUndo
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Undoes a small replace.
CALLED BY: GLOBAL
PASS: ss:bp - UndoActionStruct
RETURN: nada
DESTROYED: ax, bx, cx, dx, bp
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
atw 7/14/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
SmallReplaceUndo proc near
.enter
mov ax, ss:[bp].AUAS_data.UAS_data.UADU_vmChain.UADVMC_vmChain.high
mov bx, ss:[bp].AUAS_data.UAS_data.UADU_vmChain.UADVMC_file
call VMLockCX
push cx
mov es, ax ;ES = SmallReplacementData
; Setup a replace call
sub sp, size VisTextReplaceParameters
mov bp, sp
movdw dxax, es:[CRD_insertionPoint]
movdw ss:[bp].VTRP_range.VTR_start, dxax
adddw dxax, es:[CRD_charsToDelete]
movdw ss:[bp].VTRP_range.VTR_end, dxax
movdw ss:[bp].VTRP_insCount, es:[CRD_charsToInsert], ax
mov ss:[bp].VTRP_flags, mask VTRF_USER_MODIFICATION or mask VTRF_UNDO
mov ss:[bp].VTRP_textReference.TR_type, TRT_POINTER
mov ss:[bp].VTRP_pointerReference.segment, es
mov ss:[bp].VTRP_pointerReference.offset, offset CRD_chars
SRU_beforeReplaceText label near ;THIS LABEL USED BY SWAT
ForceRef SRU_beforeReplaceText
mov ax, MSG_VIS_TEXT_REPLACE_TEXT
call ObjCallInstanceNoLock
add sp, size VisTextReplaceParameters
pop cx
call VMUnlockCX
.leave
ret
SmallReplaceUndo endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
LargeReplaceUndo
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Undoes a large replace.
CALLED BY: GLOBAL
PASS: ss:bp - UndoActionStruct
RETURN: nada
DESTROYED: ax, bx, cx, dx, bp
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
atw 7/14/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
LargeReplaceUndo proc near
.enter
mov ax, ss:[bp].AUAS_data.UAS_data.UADU_vmChain.UADVMC_vmChain.high
mov bx, ss:[bp].AUAS_data.UAS_data.UADU_vmChain.UADVMC_file
call VMLockCX
push cx
mov es, ax ;ES = LargeReplacementData
; Setup a replace call
sub sp, size VisTextReplaceParameters
mov bp, sp
movdw dxax, es:[CRD_insertionPoint]
movdw ss:[bp].VTRP_range.VTR_start, dxax
adddw dxax, es:[CRD_charsToDelete]
movdw ss:[bp].VTRP_range.VTR_end, dxax
movdw ss:[bp].VTRP_insCount, es:[CRD_charsToInsert], ax
mov ss:[bp].VTRP_flags, mask VTRF_USER_MODIFICATION or mask VTRF_UNDO
mov ss:[bp].VTRP_textReference.TR_type, TRT_HUGE_ARRAY
mov ss:[bp].VTRP_textReference.TR_ref.TRU_hugeArray.TRHA_file, bx
mov ax, es:[VMCL_next]
mov ss:[bp].VTRP_textReference.TR_ref.TRU_hugeArray.TRHA_array, ax
mov ax, MSG_VIS_TEXT_REPLACE_TEXT
call ObjCallInstanceNoLock
add sp, size VisTextReplaceParameters
pop cx
call VMUnlockCX
.leave
ret
LargeReplaceUndo endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
DeleteRunsUndo
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Deletes a series of runs.
CALLED BY: GLOBAL
PASS: ss:bp - UndoActionStruct
RETURN: nada
DESTROYED: ax, bx, cx, dx, bp, es
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
atw 7/23/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
DeleteRunsUndo proc near
.enter
mov ax, ss:[bp].AUAS_data.UAS_data.UADU_vmChain.UADVMC_vmChain.high
mov bx, ss:[bp].AUAS_data.UAS_data.UADU_vmChain.UADVMC_file
call VMLock
mov es, ax ;ES - ptr to DeleteRunsData
mov cx, es:[DRD_runOffset]
pushdw es:[DRD_range].VTR_end
pushdw es:[DRD_range].VTR_start
call VMUnlock
; Delete the runs in the range
mov bp, sp
call TA_DeleteRunsInRange
add sp, size VisTextRange
.leave
ret
DeleteRunsUndo endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
RestoreRunsUndo
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Undoes a run change.
CALLED BY: GLOBAL
PASS: ss:bp - UndoActionStruct
RETURN: nada
DESTROYED: ax, bx, cx, dx, bp
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
atw 7/20/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
RestoreRunsUndo proc near
.enter
mov di, ss:[bp].AUAS_data.UAS_data.UADU_vmChain.UADVMC_vmChain.high
mov bx, ss:[bp].AUAS_data.UAS_data.UADU_vmChain.UADVMC_file
push ds
call HugeArrayLockDir
mov ds, ax
mov cx, ds:[RHAD_runOffset]
call HugeArrayUnlockDir
pop ds
EC < call ECCheckRunOffset >
call TA_RestoreRunsFromHugeArray
.leave
ret
RestoreRunsUndo endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
TU_IgnoreUndoActions
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Tell the process to stop accepting undo actions.
CALLED BY: GLOBAL
PASS: cx = non-zero to flush queue
RETURN: nothing
DESTROYED: bx, cx, dx, di
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
jenny 9/19/94 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
TU_IgnoreUndoActions proc far
uses ax
.enter
mov ax, MSG_GEN_PROCESS_UNDO_IGNORE_ACTIONS
call TU_ObjMessageCallProcess
.leave
ret
TU_IgnoreUndoActions endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
TU_AcceptUndoActions
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Tell the process to start accepting undo actions again.
CALLED BY: GLOBAL
PASS: nothing
RETURN: nothing
DESTROYED: ax, bx, cx, dx, di
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
jenny 9/19/94 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
TU_AcceptUndoActions proc far
mov ax, MSG_GEN_PROCESS_UNDO_ACCEPT_ACTIONS
call TU_ObjMessageCallProcess
ret
TU_AcceptUndoActions endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
TU_ObjMessageCallProcess
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Send a message to the process with MF_CALL.
CALLED BY: INTERNAL TU_IgnoreUndoActions
TU_AcceptUndoActions
PASS: ax = message
RETURN: nothing
DESTROYED: ax, bx, cx, dx, di
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
jenny 9/19/94 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
TU_ObjMessageCallProcess proc near
uses bp
.enter
mov di, mask MF_FIXUP_DS or mask MF_CALL
call TU_ObjMessageToProcess
.leave
ret
TU_ObjMessageCallProcess endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
TU_ObjMessageToProcess
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Send a message to the process.
CALLED BY: INTERNAL
PASS: ax = message
di = MessageFlags
RETURN: whatever message returns
DESTROYED: ax, bx, cx, dx, di, bp
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
jenny 9/19/94 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
TU_ObjMessageToProcess proc near
call GeodeGetProcessHandle
call ObjMessage
ret
TU_ObjMessageToProcess endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
TU_StartUndoChain
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Starts the undo chain
CALLED BY: GLOBAL
PASS: ax - chunk handle of undo chain title (or 0 if none)
*ds:si - VisText object
RETURN: nada
DESTROYED: ax
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
atw 6/23/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
TU_StartUndoChain proc far
.enter
call StartChain
; If the text object is currently suspended, create a "wraparound"
; undo chain, so all undo actions while the object is suspended will
; be grouped together.
mov ax, TEMP_VIS_TEXT_UNDO_FOR_SUSPEND
call ObjVarDeleteData
jc exit
clr ax
call StartChain
exit:
.leave
ret
TU_StartUndoChain endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
StartChain
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Starts an undo chain
CALLED BY: GLOBAL
PASS: ax - chunk handle of undo chain title (or 0 if none)
*ds:si - VisText object
RETURN: nada
DESTROYED: ax
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
atw 3/29/94 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
StartChain proc far uses bx, dx, bp, di
.enter
EC < call T_AssertIsVisText >
mov dx, size StartUndoChainStruct
sub sp, dx
mov bp, sp
mov ss:[bp].SUCS_title.chunk, ax
; If we don't want a title, set the title to 0:0
; If the title is 0, then the undo chain will inherit the title of
; the next StartUndoChain call.
tst ax
jz 10$
mov ax, handle UndoStrings
10$:
mov ss:[bp].SUCS_title.handle, ax
mov ax, ds:[LMBH_handle]
movdw ss:[bp].SUCS_owner, axsi
mov ax, MSG_GEN_PROCESS_UNDO_START_CHAIN
mov di, mask MF_FIXUP_DS or mask MF_STACK
call TU_ObjMessageToProcess
add sp, dx
.leave
ret
StartChain endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
TU_EndUndoChain
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: End the current undo chain
CALLED BY: GLOBAL
PASS: nada
RETURN: nada
DESTROYED: nada
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
atw 6/23/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
TU_EndUndoChain proc far uses cx
.enter
mov cx, -1
; Pass CX non-zero, because in general, we don't want to allow
; empty chains hanging around.
call EndChainCommon
.leave
ret
TU_EndUndoChain endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
EndChainCommon
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Ends an undo chain.
CALLED BY: GLOBAL
PASS: cx - non-zero if the chain should be deleted if empty
RETURN: nada
DESTROYED: nada
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
atw 3/29/94 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
EndChainCommon proc near uses ax, bx, di
.enter
mov ax, MSG_GEN_PROCESS_UNDO_END_CHAIN
mov di, mask MF_FIXUP_DS
call TU_ObjMessageToProcess
.leave
ret
EndChainCommon endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
TU_AbortUndoChain
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Abort the current undo chain
CALLED BY: GLOBAL
PASS: ds - segment of lmem resource
RETURN: nada
DESTROYED: nada
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
atw 6/23/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
TU_AbortUndoChain proc far uses ax, bx, di
.enter
mov ax, MSG_GEN_PROCESS_UNDO_ABORT_CHAIN
mov di, mask MF_FIXUP_DS
call TU_ObjMessageToProcess
.leave
ret
TU_AbortUndoChain endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
TU_CreateEmptyChain
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Creates a chain with no items (except for the
TUT_END item)
CALLED BY: GLOBAL
PASS: ax - chunk handle of undo chain title
RETURN: nada
DESTROYED: nada
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
atw 6/23/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
TU_CreateEmptyChain proc far
call TU_StartUndoChain
push cx
clr cx ;Don't delete this empty chain, let
; it hang around, so we can insert
; actions in it later on (we do this
; when generating undo chains for
; user input/typing).
call EndChainCommon
pop cx
ret
TU_CreateEmptyChain endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
TU_CreateUndoForRunsInRange
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Create an undo action for this run.
CALLED BY: GLOBAL
PASS: ss:bx - VisTextReplaceParameters
cx - run offset
RETURN: nada
DESTROYED: nada
PSEUDO CODE/STRATEGY:
For each TextRunArrayElement in the deletion range:
Inc the reference count for the associated token
Copy the TextRunArrayElement to the huge array
Add the huge array as an undo action
When the item is freed,
For each TextRunArrayElement in the huge array:
Dec the reference count
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
atw 7/15/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
TU_CreateUndoForRunsInRange proc far uses ax, bx, cx, dx, di, bp
.enter
EC < call T_AssertIsVisText >
EC < call ECCheckRunOffset >
EC < call GenProcessUndoCheckIfIgnoring >
EC < tst ax >
EC < ERROR_NZ UNDO_RESOURCE_LOADED_EVEN_THOUGH_IGNORING_UNDO >
mov bp, bx ;SS:BP <- VisTextReplaceParams
; Create a huge array to store the data in
push cx ;Save runOffset
call GetUndoFile ;bx = undo file
mov cx, size TextRunArrayElement
mov di, size RunHAD
;Store the "runOffset" with the huge
call HugeArrayCreate ; array
pop cx
push ds
call HugeArrayLockDir
mov ds, ax
mov ds:[RHAD_runOffset], cx
call HugeArrayDirty
call HugeArrayUnlockDir
pop ds ;*DS:SI <- VisText object
; Add the runs to the huge array
call TA_AppendRunsInRangeToHugeArray ;
; Add the action
mov_tr ax, di ;AX <- VM Chain
mov cx, mask AUAF_NOTIFY_BEFORE_FREEING
mov bx, TUT_SAVED_RUNS
call AddVMChainUndoAction
call TU_NukeCachedUndo
.leave
ret
TU_CreateUndoForRunsInRange endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
TU_CreateUndoForRunModification
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Creates an undo item
CALLED BY: GLOBAL
PASS: ss:bp - VisTextRange
cx - run offset
*ds:si - VisText object
RETURN: nada
DESTROYED: nada
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
atw 7/23/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
TU_CreateUndoForRunModification proc far uses ax, bx, cx, dx, bp, di, es
.enter
EC < call T_AssertIsVisText >
EC < call ECCheckRunOffset >
EC < call GenProcessUndoCheckIfIgnoring >
EC < tst ax >
EC < ERROR_NZ UNDO_RESOURCE_LOADED_EVEN_THOUGH_IGNORING_UNDO >
; Create a VM chain containing the data for deleting this run range
call GetUndoFile ;bx = undo file
mov di, cx ;DI <- run offset
clr ax
mov cx, size DeleteRunsData
call VMAlloc
push ax ;Save vm handle
call VMLockCX
call VMDirtyCX
mov es, ax
clr es:[DRD_meta].VMCL_next ;This is the only block in the
; chain.
mov es:[DRD_runOffset], di ;Store the run offset/range
movdw es:[DRD_range].VTR_start, ss:[bp].VTR_start, di
movdw es:[DRD_range].VTR_end, ss:[bp].VTR_end, di
call VMUnlockCX
pop ax
; Add the VM Chain to the current undo chain.
push bx
clr cx
mov bx, TUT_DELETE_RUNS_IN_RANGE
call AddVMChainUndoAction
pop bx
.leave
ret
TU_CreateUndoForRunModification endp
TextUndo ends
|
src/NF/List.agda | yanok/normalize-via-instances | 0 | 2140 | module NF.List {A : Set} where
open import NF
open import Data.List
open import Relation.Binary.PropositionalEquality
instance
nf[] : NF {List A} []
Sing.unpack (NF.!! nf[]) = []
Sing.eq (NF.!! nf[]) = refl
{-# INLINE nf[] #-}
nf∷ : {x : A}{{nfx : NF x}}{t : List A}{{nft : NF t}} -> NF (x ∷ t)
Sing.unpack (NF.!! (nf∷ {x} {t})) = nf x ∷ nf t
Sing.eq (NF.!! (nf∷ {{nfx}} {{nft}})) rewrite nf≡ {{nfx}} | nf≡ {{nft}} = refl
{-# INLINE nf∷ #-} |
homotopy/JoinSusp.agda | danbornside/HoTT-Agda | 0 | 13461 | {-# OPTIONS --without-K #-}
open import HoTT
open import homotopy.JoinComm
open import homotopy.JoinAssocCubical
module homotopy.JoinSusp where
module _ {i} {A : Type i} where
private
module Into = PushoutRec {d = *-span (Lift {j = i} Bool) A}
{D = Suspension A}
(λ {(lift true) → north _;
(lift false) → south _})
(λ _ → south _)
(λ {(lift true , a) → merid _ a;
(lift false , a) → idp})
into = Into.f
module Out = SuspensionRec A {C = Lift {j = i} Bool * A}
(left (lift true))
(left (lift false))
(λ a → glue (lift true , a) ∙ ! (glue (lift false , a)))
out = Out.f
into-out : ∀ σ → into (out σ) == σ
into-out = Suspension-elim _
idp
idp
(↓-∘=idf-from-square into out ∘ λ a → vert-degen-square $
ap (ap into) (Out.glue-β a)
∙ ap-∙ into (glue (lift true , a)) (! (glue (lift false , a)))
∙ (Into.glue-β (lift true , a)
∙2 (ap-! into (glue (lift false , a))
∙ ap ! (Into.glue-β (lift false , a))))
∙ ∙-unit-r _)
out-into : ∀ j → out (into j) == j
out-into = Pushout-elim
(λ {(lift true) → idp;
(lift false) → idp})
(λ a → glue (lift false , a))
(↓-∘=idf-from-square out into ∘
λ {(lift true , a) →
(ap (ap out) (Into.glue-β (lift true , a)) ∙ Out.glue-β a)
∙v⊡ (vid-square {p = glue (lift true , a)}
⊡h rt-square (glue (lift false , a)))
⊡v∙ ∙-unit-r _;
(lift false , a) →
ap (ap out) (Into.glue-β (lift false , a)) ∙v⊡ connection})
join-S⁰-equiv : Lift {j = i} Bool * A ≃ Suspension A
join-S⁰-equiv = equiv into out into-out out-into
join-S⁰-path = ua join-S⁰-equiv
module _ {i} (X : Ptd i) where
join-S⁰-⊙path : ⊙Sphere {i} 0 ⊙* X == ⊙Susp X
join-S⁰-⊙path = ⊙ua join-S⁰-equiv idp
module _ {i} {A B : Type i} where
join-susp-shift : Suspension A * B == Suspension (A * B)
join-susp-shift =
ap (λ C → C * B) (! join-S⁰-path)
∙ join-rearrange-path
∙ ua swap-equiv
∙ join-S⁰-path
∙ ap Suspension (ua swap-equiv)
module _ {i} (X Y : Ptd i) where
⊙join-susp-shift : ⊙Susp X ⊙* Y == ⊙Susp (X ⊙* Y)
⊙join-susp-shift =
ap (λ Z → Z ⊙* Y) (! (join-S⁰-⊙path X))
∙ join-rearrange-⊙path (⊙Sphere 0) X Y
∙ ⊙ua swap-equiv (! (glue _))
∙ join-S⁰-⊙path (Y ⊙* X)
∙ ap (λ A → (Suspension A , north _)) (ua swap-equiv)
module _ {i} (X : Ptd i) where
⊙join-sphere : (m : ℕ) → ⊙Sphere {i} m ⊙* X == ⊙Susp^ (S m) X
⊙join-sphere O = join-S⁰-⊙path X
⊙join-sphere (S m) = ⊙join-susp-shift (⊙Sphere m) X
∙ ap ⊙Susp (⊙join-sphere m)
|
src/Bisimilarity/CCS/Examples.agda | nad/up-to | 0 | 5092 | <filename>src/Bisimilarity/CCS/Examples.agda
------------------------------------------------------------------------
-- Some results/examples related to CCS, implemented using the
-- coinductive definition of bisimilarity
------------------------------------------------------------------------
-- Unless anything else is stated the results (or statements, in the
-- case of exercises) below are taken from "Enhancements of the
-- bisimulation proof method" by <NAME> Sangiorgi.
{-# OPTIONS --sized-types #-}
open import Prelude
module Bisimilarity.CCS.Examples {ℓ} {Name : Type ℓ} where
open import Equality.Propositional
open import Prelude.Size
open import Bisimilarity.CCS
import Bisimilarity.Equational-reasoning-instances
open import Equational-reasoning
open import Labelled-transition-system.CCS Name
open import Bisimilarity CCS
------------------------------------------------------------------------
-- A result mentioned in "Enhancements of the bisimulation proof
-- method"
mutual
-- For a more general result, see 6-2-14 below.
!∙⊕∙∼!∙∣!∙ : ∀ {i a b} → [ i ] ! (a ∙ ⊕ b ∙) ∼ ! a ∙ ∣ ! b ∙
!∙⊕∙∼!∙∣!∙ {i} {a} {b} = ⟨ lr , rl ⟩
where
lemma =
! (a ∙ ⊕ b ∙) ∣ ∅ ∼⟨ ∣-right-identity ⟩
! (a ∙ ⊕ b ∙) ∼⟨ !∙⊕∙∼′!∙∣!∙ {i = i} ⟩■
! a ∙ ∣ ! b ∙
left-lemma =
! (a ∙ ⊕ b ∙) ∣ ∅ ∼⟨ lemma ⟩
! a ∙ ∣ ! b ∙ ∼⟨ symmetric ∣-right-identity ∣-cong reflexive ⟩■
(! a ∙ ∣ ∅) ∣ ! b ∙
right-lemma =
! (a ∙ ⊕ b ∙) ∣ ∅ ∼⟨ lemma ⟩
! a ∙ ∣ ! b ∙ ∼⟨ reflexive ∣-cong symmetric ∣-right-identity ⟩■
! a ∙ ∣ (! b ∙ ∣ ∅)
τ-lemma =
(! (a ∙ ⊕ b ∙) ∣ ∅) ∣ ∅ ∼⟨ ∣-right-identity ⟩
! (a ∙ ⊕ b ∙) ∣ ∅ ∼⟨ lemma ⟩
! a ∙ ∣ ! b ∙ ∼⟨ symmetric (∣-right-identity ∣-cong ∣-right-identity) ⟩■
(! a ∙ ∣ ∅) ∣ (! b ∙ ∣ ∅)
lr : ∀ {P μ} →
! (a ∙ ⊕ b ∙) [ μ ]⟶ P →
∃ λ Q → ! a ∙ ∣ ! b ∙ [ μ ]⟶ Q × [ i ] P ∼′ Q
lr {P} tr = case 6-1-3-2 tr of λ where
(inj₁ (.∅ , sum-left action , P∼![a⊕b]∣∅)) →
P ∼⟨ P∼![a⊕b]∣∅ ⟩
! (a ∙ ⊕ b ∙) ∣ ∅ ∼⟨ left-lemma ⟩■
(! a ∙ ∣ ∅) ∣ ! b ∙ [ name a ]⟵⟨ par-left (replication (par-right action)) ⟩
! a ∙ ∣ ! b ∙
(inj₁ (.∅ , sum-right action , P∼![a⊕b]∣∅)) →
P ∼⟨ P∼![a⊕b]∣∅ ⟩
! (a ∙ ⊕ b ∙) ∣ ∅ ∼⟨ right-lemma ⟩■
! a ∙ ∣ (! b ∙ ∣ ∅) [ name b ]⟵⟨ par-right (replication (par-right action)) ⟩
! a ∙ ∣ ! b ∙
(inj₂ (refl , P′ , P″ , c , a⊕b⟶P′ , a⊕b⟶P″ , P∼![a⊕b]∣P′∣P″)) →
let b≡co-a , P′≡∅ , P″≡∅ = Σ-map id [ id , id ]
(·⊕·-co a⊕b⟶P′ a⊕b⟶P″) in
P ∼⟨ P∼![a⊕b]∣P′∣P″ ⟩
(! (a ∙ ⊕ b ∙) ∣ P′) ∣ P″ ∼⟨ (reflexive ∣-cong ≡⇒∼ P′≡∅) ∣-cong ≡⇒∼ P″≡∅ ⟩
(! (a ∙ ⊕ b ∙) ∣ ∅) ∣ ∅ ∼⟨ τ-lemma ⟩■
(! a ∙ ∣ ∅) ∣ (! b ∙ ∣ ∅) [ τ ]⟵⟨ par-τ′ b≡co-a (replication (par-right action))
(replication (par-right action)) ⟩
! a ∙ ∣ ! b ∙
rl : ∀ {Q μ} →
! a ∙ ∣ ! b ∙ [ μ ]⟶ Q →
∃ λ P → ! (a ∙ ⊕ b ∙) [ μ ]⟶ P × [ i ] P ∼′ Q
rl (par-left {P′ = P′} tr) =
case 6-1-3-2 tr of λ where
(inj₁ (.∅ , action , P′∼!a∣∅)) →
! (a ∙ ⊕ b ∙) [ name a ]⟶⟨ replication (par-right (sum-left action)) ⟩ʳˡ
! (a ∙ ⊕ b ∙) ∣ ∅ ∼⟨ left-lemma ⟩
(! a ∙ ∣ ∅) ∣ ! b ∙ ∼⟨ symmetric P′∼!a∣∅ ∣-cong reflexive ⟩■
P′ ∣ ! b ∙
(inj₂ (refl , .∅ , P″ , .a , action , a⟶P″ , P′∼!a∣∅∣P″)) →
⊥-elim (names-are-not-inverted a⟶P″)
rl (par-right {Q′ = Q′} tr) =
case 6-1-3-2 tr of λ where
(inj₁ (.∅ , action , Q′∼!b∣∅)) →
! (a ∙ ⊕ b ∙) [ name b ]⟶⟨ replication (par-right (sum-right action)) ⟩ʳˡ
! (a ∙ ⊕ b ∙) ∣ ∅ ∼⟨ right-lemma ⟩
! a ∙ ∣ (! b ∙ ∣ ∅) ∼⟨ reflexive ∣-cong symmetric Q′∼!b∣∅ ⟩■
! a ∙ ∣ Q′
(inj₂ (refl , .∅ , Q″ , .b , action , b⟶Q″ , Q′∼!b∣∅∣Q″)) →
⊥-elim (names-are-not-inverted b⟶Q″)
rl (par-τ {P′ = P′} {Q′ = Q′} tr₁ tr₂) =
case 6-1-3-2 tr₁ ,′ 6-1-3-2 tr₂ of λ where
(inj₁ (.∅ , action , P′∼!a∣∅) ,
inj₁ (.∅ , action , Q′∼!co-a∣∅)) →
! (a ∙ ⊕ co a ∙) [ τ ]⟶⟨ replication (par-τ (replication (par-right (sum-left action)))
(sum-right action)) ⟩ʳˡ
(! (a ∙ ⊕ co a ∙) ∣ ∅) ∣ ∅ ∼⟨ τ-lemma ⟩
(! a ∙ ∣ ∅) ∣ (! co a ∙ ∣ ∅) ∼⟨ symmetric (P′∼!a∣∅ ∣-cong Q′∼!co-a∣∅) ⟩■
P′ ∣ Q′
(inj₁ _ , inj₂ (() , _))
(inj₂ (() , _) , _)
!∙⊕∙∼′!∙∣!∙ : ∀ {a b i} → [ i ] ! (a ∙ ⊕ b ∙) ∼′ ! a ∙ ∣ ! b ∙
force !∙⊕∙∼′!∙∣!∙ = !∙⊕∙∼!∙∣!∙
------------------------------------------------------------------------
-- Exercise 6.2.4
mutual
-- For a more general result, see 6-2-17-4 below.
6-2-4 : ∀ {a i} → [ i ] ! ! a ∙ ∼ ! a ∙
6-2-4 {a} {i} = ⟨ lr , rl ⟩
where
impossible : ∀ {μ P q} {Q : Type q} →
! ! a ∙ [ μ ]⟶ P → μ ≡ τ → Q
impossible {μ} !!a⟶P μ≡τ = ⊥-elim $ name≢τ
(name a ≡⟨ !-only (!-only ·-only) !!a⟶P ⟩
μ ≡⟨ μ≡τ ⟩∎
τ ∎)
lemma : ∀ {P} → P ∼ ! a ∙ ∣ ∅ → _
lemma {P} P∼!a∣∅ =
! ! a ∙ ∣ P ∼⟨ reflexive ∣-cong P∼!a∣∅ ⟩
! ! a ∙ ∣ (! a ∙ ∣ ∅) ∼⟨ reflexive ∣-cong ∣-right-identity ⟩
! ! a ∙ ∣ ! a ∙ ∼⟨ 6-1-2 ⟩
! ! a ∙ ∼⟨ 6-2-4′ {i = i} ⟩
! a ∙ ∼⟨ symmetric ∣-right-identity ⟩■
! a ∙ ∣ ∅
lr : ∀ {P μ} →
! ! a ∙ [ μ ]⟶ P →
∃ λ P′ → ! a ∙ [ μ ]⟶ P′ × [ i ] P ∼′ P′
lr {P = P} !!a⟶P = case 6-1-3-2 !!a⟶P of λ where
(inj₂ (μ≡τ , _)) → impossible !!a⟶P μ≡τ
(inj₁ (P′ , !a⟶P′ , P∼!!a∣P′)) → case 6-1-3-2 !a⟶P′ of λ where
(inj₂ (μ≡τ , _)) → impossible !!a⟶P μ≡τ
(inj₁ (.∅ , action , P′∼!a∣∅)) →
P ∼⟨ P∼!!a∣P′ ⟩
! ! a ∙ ∣ P′ ∼⟨ lemma P′∼!a∣∅ ⟩■
! a ∙ ∣ ∅ [ name a ]⟵⟨ replication (par-right action) ⟩
! a ∙
rl : ∀ {P μ} →
! a ∙ [ μ ]⟶ P →
∃ λ P′ → ! ! a ∙ [ μ ]⟶ P′ × [ i ] P′ ∼′ P
rl {P = P} !a⟶P = case 6-1-3-2 !a⟶P of λ where
(inj₂ (refl , .∅ , Q″ , .a , action , a⟶Q″ , _)) →
⊥-elim (names-are-not-inverted a⟶Q″)
(inj₁ (.∅ , action , P∼!a∣∅)) →
! ! a ∙ [ name a ]⟶⟨ replication (par-right !a⟶P) ⟩ʳˡ
! ! a ∙ ∣ P ∼⟨ lemma P∼!a∣∅ ⟩
! a ∙ ∣ ∅ ∼⟨ symmetric P∼!a∣∅ ⟩■
P
6-2-4′ : ∀ {a i} → [ i ] ! ! a ∙ ∼′ ! a ∙
force 6-2-4′ = 6-2-4
------------------------------------------------------------------------
-- A result mentioned in "Enhancements of the bisimulation proof
-- method"
∙∣∙∼∙∙ : ∀ {a} → a ∙ ∣ a ∙ ∼ name a ∙ (a ∙)
∙∣∙∼∙∙ {a} = ⟨ lr , rl ⟩
where
lr : ∀ {P μ} → a ∙ ∣ a ∙ [ μ ]⟶ P →
∃ λ P′ → name a ∙ (a ∙) [ μ ]⟶ P′ × P ∼′ P′
lr (par-left action) =
∅ ∣ a ∙ ∼⟨ ∣-left-identity ⟩■
a ∙ [ name a ]⟵⟨ action ⟩
name a ∙ (a ∙)
lr (par-right action) =
a ∙ ∣ ∅ ∼⟨ ∣-right-identity ⟩■
a ∙ [ name a ]⟵⟨ action ⟩
name a ∙ (a ∙)
lr (par-τ action tr) = ⊥-elim (names-are-not-inverted tr)
rl : ∀ {P μ} → name a ∙ (a ∙) [ μ ]⟶ P →
∃ λ P′ → a ∙ ∣ a ∙ [ μ ]⟶ P′ × P′ ∼′ P
rl action =
a ∙ ∣ a ∙ [ name a ]⟶⟨ par-right action ⟩ʳˡ
a ∙ ∣ ∅ ∼⟨ ∣-right-identity ⟩■
a ∙
------------------------------------------------------------------------
-- Lemma 6.2.14
mutual
-- A more general variant of !∙⊕∙∼!∙∣!∙. For an even more general
-- variant, see 6-2-17-2 below.
6-2-14 :
∀ {i a b P Q} →
[ i ] ! (name a ∙ P ⊕ name b ∙ Q) ∼ ! name a ∙ P ∣ ! name b ∙ Q
6-2-14 {i} {a} {b} {P} {Q} = ⟨ lr , rl ⟩
where
left-lemma =
! (name a ∙ P ⊕ name b ∙ Q) ∣ P ∼⟨ 6-2-14′ {i = i} ∣-cong′ reflexive ⟩
(! name a ∙ P ∣ ! name b ∙ Q) ∣ P ∼⟨ swap-rightmost ⟩■
(! name a ∙ P ∣ P) ∣ ! name b ∙ Q
right-lemma =
! (name a ∙ P ⊕ name b ∙ Q) ∣ Q ∼⟨ 6-2-14′ {i = i} ∣-cong′ reflexive ⟩
(! name a ∙ P ∣ ! name b ∙ Q) ∣ Q ∼⟨ symmetric ∣-assoc ⟩■
! name a ∙ P ∣ (! name b ∙ Q ∣ Q)
τ-lemma =
(! (name a ∙ P ⊕ name b ∙ Q) ∣ P) ∣ Q ∼⟨ left-lemma ∣-cong′ reflexive ⟩
((! name a ∙ P ∣ P) ∣ ! name b ∙ Q) ∣ Q ∼⟨ symmetric ∣-assoc ⟩■
(! name a ∙ P ∣ P) ∣ (! name b ∙ Q ∣ Q)
lr : ∀ {R μ} →
! (name a ∙ P ⊕ name b ∙ Q) [ μ ]⟶ R →
∃ λ S → ! name a ∙ P ∣ ! name b ∙ Q [ μ ]⟶ S × [ i ] R ∼′ S
lr {R} tr = case 6-1-3-2 tr of λ where
(inj₁ (.P , sum-left action , R∼![aP⊕bQ]∣P)) →
R ∼⟨ R∼![aP⊕bQ]∣P ⟩
! (name a ∙ P ⊕ name b ∙ Q) ∣ P ∼⟨ left-lemma ⟩■
(! name a ∙ P ∣ P) ∣ ! name b ∙ Q [ name a ]⟵⟨ par-left (replication (par-right action)) ⟩
! name a ∙ P ∣ ! name b ∙ Q
(inj₁ (.Q , sum-right action , R∼![aP⊕bQ]∣Q)) →
R ∼⟨ R∼![aP⊕bQ]∣Q ⟩
! (name a ∙ P ⊕ name b ∙ Q) ∣ Q ∼⟨ right-lemma ⟩■
! name a ∙ P ∣ (! name b ∙ Q ∣ Q) [ name b ]⟵⟨ par-right (replication (par-right action)) ⟩
! name a ∙ P ∣ ! name b ∙ Q
(inj₂ ( refl , R′ , R″ , c , aP⊕bQ⟶R′ , aP⊕bQ⟶R″
, R∼![aP⊕bQ]∣R′∣R″
)) →
let b≡co-a , R′≡,R″≡ = ·⊕·-co aP⊕bQ⟶R′ aP⊕bQ⟶R″
lemma : _ → [ _ ] _ ∼ _
lemma = λ where
(inj₁ (R′≡P , R″≡Q)) →
(! (name a ∙ P ⊕ name b ∙ Q) ∣ R′) ∣ R″ ∼⟨ (reflexive ∣-cong ≡⇒∼ R′≡P) ∣-cong ≡⇒∼ R″≡Q ⟩■
(! (name a ∙ P ⊕ name b ∙ Q) ∣ P) ∣ Q
(inj₂ (R′≡Q , R″≡P)) →
(! (name a ∙ P ⊕ name b ∙ Q) ∣ R′) ∣ R″ ∼⟨ (reflexive ∣-cong ≡⇒∼ R′≡Q) ∣-cong ≡⇒∼ R″≡P ⟩
(! (name a ∙ P ⊕ name b ∙ Q) ∣ Q) ∣ P ∼⟨ swap-rightmost ⟩■
(! (name a ∙ P ⊕ name b ∙ Q) ∣ P) ∣ Q
in
R ∼⟨ R∼![aP⊕bQ]∣R′∣R″ ⟩
(! (name a ∙ P ⊕ name b ∙ Q) ∣ R′) ∣ R″ ∼⟨ lemma R′≡,R″≡ ⟩
(! (name a ∙ P ⊕ name b ∙ Q) ∣ P) ∣ Q ∼⟨ τ-lemma ⟩■
(! name a ∙ P ∣ P) ∣ (! name b ∙ Q ∣ Q) [ τ ]⟵⟨ par-τ′ b≡co-a (replication (par-right action))
(replication (par-right action)) ⟩
! name a ∙ P ∣ ! name b ∙ Q
rl : ∀ {S μ} →
! name a ∙ P ∣ ! name b ∙ Q [ μ ]⟶ S →
∃ λ R → ! (name a ∙ P ⊕ name b ∙ Q) [ μ ]⟶ R × [ i ] R ∼′ S
rl (par-left {P′ = S} tr) =
case 6-1-3-2 tr of λ where
(inj₁ (.P , action , S∼!aP∣P)) →
! (name a ∙ P ⊕ name b ∙ Q) [ name a ]⟶⟨ replication (par-right (sum-left action)) ⟩ʳˡ
! (name a ∙ P ⊕ name b ∙ Q) ∣ P ∼⟨ left-lemma ⟩
(! name a ∙ P ∣ P) ∣ ! name b ∙ Q ∼⟨ symmetric S∼!aP∣P ∣-cong reflexive ⟩■
S ∣ ! name b ∙ Q
(inj₂ (refl , .P , S′ , .a , action , aP⟶S′ , S∼!aP∣P∣S′)) →
⊥-elim (names-are-not-inverted aP⟶S′)
rl (par-right {Q′ = S} tr) =
case 6-1-3-2 tr of λ where
(inj₁ (.Q , action , S∼!bQ∣Q)) →
! (name a ∙ P ⊕ name b ∙ Q) [ name b ]⟶⟨ replication (par-right (sum-right action)) ⟩ʳˡ
! (name a ∙ P ⊕ name b ∙ Q) ∣ Q ∼⟨ right-lemma ⟩
! name a ∙ P ∣ (! name b ∙ Q ∣ Q) ∼⟨ reflexive ∣-cong symmetric S∼!bQ∣Q ⟩■
! name a ∙ P ∣ S
(inj₂ (refl , .Q , S′ , .b , action , bQ⟶S′ , S∼!bQ∣Q∣S′)) →
⊥-elim (names-are-not-inverted bQ⟶S′)
rl (par-τ {P′ = S} {Q′ = S′} tr₁ tr₂) =
case 6-1-3-2 tr₁ ,′ 6-1-3-2 tr₂ of λ where
(inj₁ (.P , action , S∼!aP∣P) ,
inj₁ (.Q , action , S′∼!co-aQ∣Q)) →
! (name a ∙ P ⊕ name (co a) ∙ Q) [ τ ]⟶⟨ replication (par-τ (replication (par-right (sum-left action)))
(sum-right action)) ⟩ʳˡ
(! (name a ∙ P ⊕ name (co a) ∙ Q) ∣ P) ∣ Q ∼⟨ τ-lemma ⟩
(! name a ∙ P ∣ P) ∣ (! name (co a) ∙ Q ∣ Q) ∼⟨ symmetric (S∼!aP∣P ∣-cong S′∼!co-aQ∣Q) ⟩■
S ∣ S′
(inj₁ _ , inj₂ (() , _))
(inj₂ (() , _) , _)
6-2-14′ :
∀ {i a b P Q} →
[ i ] ! (name a ∙ P ⊕ name b ∙ Q) ∼′ ! name a ∙ P ∣ ! name b ∙ Q
force 6-2-14′ = 6-2-14
------------------------------------------------------------------------
-- Lemma 6.2.17
-- Some results mentioned in the proof of 6.2.17 (1) in
-- "Enhancements of the bisimulation proof method".
6-2-17-1-lemma₁ : ∀ {P Q} → (! P ∣ ! Q) ∣ (P ∣ Q) ∼ ! P ∣ ! Q
6-2-17-1-lemma₁ {P} {Q} =
(! P ∣ ! Q) ∣ (P ∣ Q) ∼⟨ swap-in-the-middle ⟩
(! P ∣ P) ∣ (! Q ∣ Q) ∼⟨ 6-1-2 ∣-cong 6-1-2 ⟩■
! P ∣ ! Q
abstract
6-2-17-1-lemma₂ :
∀ {P Q R μ} →
! (P ∣ Q) [ μ ]⟶ R →
∃ λ S →
R ∼ ! (P ∣ Q) ∣ S ×
∃ λ T →
! P ∣ ! Q [ μ ]⟶ T ×
(! P ∣ ! Q) ∣ S ∼′ T
6-2-17-1-lemma₂ {P} {Q} {R} tr = case 6-1-3-2 tr of λ where
(inj₁ (R′ , P∣Q⟶R′ , R∼![P∣Q]∣R′)) →
let R″ , !P∣!Q⟶R″ , !P∣!Q∣R′∼R″ =
left-to-right
((! P ∣ ! Q) ∣ (P ∣ Q) ∼⟨ 6-2-17-1-lemma₁ ⟩■
! P ∣ ! Q)
((! P ∣ ! Q) ∣ (P ∣ Q) ⟶⟨ par-right P∣Q⟶R′ ⟩
(! P ∣ ! Q) ∣ R′)
in _ , R∼![P∣Q]∣R′ , _ , !P∣!Q⟶R″ , !P∣!Q∣R′∼R″
(inj₂ (refl , R′ , R″ , a , P∣Q⟶R′ , P∣Q⟶R″ , R∼![P∣Q]∣R′∣R″)) →
let T , !P∣!Q⟶T , !P∣!Q∣[R′∣R″]∼T =
left-to-right
((! P ∣ ! Q) ∣ ((P ∣ Q) ∣ (P ∣ Q)) ∼⟨ ∣-assoc ⟩
((! P ∣ ! Q) ∣ (P ∣ Q)) ∣ (P ∣ Q) ∼⟨ 6-2-17-1-lemma₁ ∣-cong reflexive ⟩
(! P ∣ ! Q) ∣ (P ∣ Q) ∼⟨ 6-2-17-1-lemma₁ ⟩■
! P ∣ ! Q)
((! P ∣ ! Q) ∣ ((P ∣ Q) ∣ (P ∣ Q)) ⟶⟨ par-right (par-τ P∣Q⟶R′ P∣Q⟶R″) ⟩
(! P ∣ ! Q) ∣ (R′ ∣ R″))
in
_
, (R ∼⟨ R∼![P∣Q]∣R′∣R″ ⟩
(! (P ∣ Q) ∣ R′) ∣ R″ ∼⟨ symmetric ∣-assoc ⟩■
! (P ∣ Q) ∣ (R′ ∣ R″))
, _
, !P∣!Q⟶T
, !P∣!Q∣[R′∣R″]∼T
mutual
6-2-17-1 : ∀ {i P Q} → [ i ] ! (P ∣ Q) ∼ ! P ∣ ! Q
6-2-17-1 {i} {P} {Q} = ⟨ lr , rl ⟩
where
lr : ∀ {R μ} →
! (P ∣ Q) [ μ ]⟶ R →
∃ λ S → ! P ∣ ! Q [ μ ]⟶ S × [ i ] R ∼′ S
lr {R} tr =
let S , R∼![P∣Q]∣S , T , !P∣!Q⟶T , !P∣!Q∣S∼T =
6-2-17-1-lemma₂ tr in
R ∼⟨ R∼![P∣Q]∣S ⟩
! (P ∣ Q) ∣ S ∼⟨ 6-2-17-1′ ∣-cong′ reflexive ⟩
(! P ∣ ! Q) ∣ S ∼⟨ !P∣!Q∣S∼T ⟩■
T ⟵⟨ !P∣!Q⟶T ⟩
! P ∣ ! Q
lemma = λ {R S : Proc ∞} →
! (P ∣ Q) ∣ (R ∣ S) ∼⟨ 6-2-17-1′ {i = i} ∣-cong′ reflexive ⟩
(! P ∣ ! Q) ∣ (R ∣ S) ∼⟨ swap-in-the-middle ⟩■
(! P ∣ R) ∣ (! Q ∣ S)
left-lemma = λ {R : Proc ∞} →
! (P ∣ Q) ∣ (R ∣ Q) ∼⟨ lemma ⟩
(! P ∣ R) ∣ (! Q ∣ Q) ∼⟨ reflexive ∣-cong 6-1-2 ⟩■
(! P ∣ R) ∣ ! Q
right-lemma = λ {R : Proc ∞} →
! (P ∣ Q) ∣ (P ∣ R) ∼⟨ lemma ⟩
(! P ∣ P) ∣ (! Q ∣ R) ∼⟨ 6-1-2 ∣-cong reflexive ⟩■
! P ∣ (! Q ∣ R)
rl : ∀ {S μ} →
! P ∣ ! Q [ μ ]⟶ S →
∃ λ R → ! (P ∣ Q) [ μ ]⟶ R × [ i ] R ∼′ S
rl (par-left {P′ = S} !P⟶S) =
case 6-1-3-2 !P⟶S
return (const $ ∃ λ _ → _ × [ i ] _ ∼′ _)
of λ where
(inj₁ (P′ , P⟶P′ , S∼!P∣P′)) →
! (P ∣ Q) ⟶⟨ replication (par-right (par-left P⟶P′)) ⟩ʳˡ
! (P ∣ Q) ∣ (P′ ∣ Q) ∼⟨ left-lemma ⟩
(! P ∣ P′) ∣ ! Q ∼⟨ symmetric S∼!P∣P′ ∣-cong reflexive ⟩■
S ∣ ! Q
(inj₂ (refl , P′ , P″ , a , P⟶P′ , P⟶P″ , S∼!P∣P′∣P″)) →
! (P ∣ Q) [ τ ]⟶⟨ replication (par-τ (replication (par-right (par-left P⟶P′)))
(par-left P⟶P″)) ⟩ʳˡ
(! (P ∣ Q) ∣ (P′ ∣ Q)) ∣ (P″ ∣ Q) ∼⟨ left-lemma ∣-cong′ reflexive ⟩
((! P ∣ P′) ∣ ! Q) ∣ (P″ ∣ Q) ∼⟨ swap-in-the-middle ⟩
((! P ∣ P′) ∣ P″) ∣ (! Q ∣ Q) ∼⟨ reflexive ∣-cong 6-1-2 ⟩
((! P ∣ P′) ∣ P″) ∣ ! Q ∼⟨ symmetric S∼!P∣P′∣P″ ∣-cong reflexive ⟩■
S ∣ ! Q
rl (par-right {Q′ = S} !Q⟶S) =
case 6-1-3-2 !Q⟶S
return (const $ ∃ λ _ → _ × [ i ] _ ∼′ _)
of λ where
(inj₁ (Q′ , Q⟶Q′ , S∼!Q∣Q′)) →
! (P ∣ Q) ⟶⟨ replication (par-right (par-right Q⟶Q′)) ⟩ʳˡ
! (P ∣ Q) ∣ (P ∣ Q′) ∼⟨ right-lemma ⟩
! P ∣ (! Q ∣ Q′) ∼⟨ reflexive ∣-cong symmetric S∼!Q∣Q′ ⟩■
! P ∣ S
(inj₂ (refl , Q′ , Q″ , a , Q⟶Q′ , Q⟶Q″ , S∼!Q∣Q′∣Q″)) →
! (P ∣ Q) [ τ ]⟶⟨ replication (par-τ (replication (par-right (par-right Q⟶Q′)))
(par-right Q⟶Q″)) ⟩ʳˡ
(! (P ∣ Q) ∣ (P ∣ Q′)) ∣ (P ∣ Q″) ∼⟨ right-lemma ∣-cong′ reflexive ⟩
(! P ∣ (! Q ∣ Q′)) ∣ (P ∣ Q″) ∼⟨ swap-in-the-middle ⟩
(! P ∣ P) ∣ ((! Q ∣ Q′) ∣ Q″) ∼⟨ 6-1-2 ∣-cong reflexive ⟩
! P ∣ ((! Q ∣ Q′) ∣ Q″) ∼⟨ reflexive ∣-cong symmetric S∼!Q∣Q′∣Q″ ⟩■
! P ∣ S
rl (par-τ {P′ = S} {Q′ = S′} !P⟶S !Q⟶S′) =
case 6-1-3-2 !P⟶S ,′ 6-1-3-2 !Q⟶S′ of λ where
(inj₁ (P′ , P⟶P′ , S∼!P∣P′) ,
inj₁ (Q′ , Q⟶Q′ , S′∼!Q∣Q′)) →
! (P ∣ Q) [ τ ]⟶⟨ replication (par-τ (replication (par-right (par-left P⟶P′)))
(par-right Q⟶Q′)) ⟩ʳˡ
(! (P ∣ Q) ∣ (P′ ∣ Q)) ∣ (P ∣ Q′) ∼⟨ left-lemma ∣-cong′ reflexive ⟩
((! P ∣ P′) ∣ ! Q) ∣ (P ∣ Q′) ∼⟨ swap-in-the-middle ⟩
((! P ∣ P′) ∣ P) ∣ (! Q ∣ Q′) ∼⟨ swap-rightmost ∣-cong reflexive ⟩
((! P ∣ P) ∣ P′) ∣ (! Q ∣ Q′) ∼⟨ (6-1-2 ∣-cong reflexive) ∣-cong reflexive ⟩
(! P ∣ P′) ∣ (! Q ∣ Q′) ∼⟨ symmetric (S∼!P∣P′ ∣-cong S′∼!Q∣Q′) ⟩■
S ∣ S′
(inj₁ _ , inj₂ (() , _))
(inj₂ (() , _) , _)
6-2-17-1′ : ∀ {i P Q} → [ i ] ! (P ∣ Q) ∼′ ! P ∣ ! Q
force 6-2-17-1′ = 6-2-17-1
mutual
6-2-17-2 : ∀ {i P Q} → [ i ] ! (P ⊕ Q) ∼ ! P ∣ ! Q
6-2-17-2 {i} {P} {Q} = ⟨ lr , rl ⟩
where
left-lemma = λ {R : Proc ∞} →
! (P ⊕ Q) ∣ R ∼⟨ 6-2-17-2′ {i = i} ∣-cong′ reflexive ⟩
(! P ∣ ! Q) ∣ R ∼⟨ swap-rightmost ⟩■
(! P ∣ R) ∣ ! Q
right-lemma = λ {R : Proc ∞} →
! (P ⊕ Q) ∣ R ∼⟨ 6-2-17-2′ {i = i} ∣-cong′ reflexive ⟩
(! P ∣ ! Q) ∣ R ∼⟨ symmetric ∣-assoc ⟩■
! P ∣ (! Q ∣ R)
τ-lemma₁ = λ {P′ P″ : Proc ∞} →
(! (P ⊕ Q) ∣ P′) ∣ P″ ∼⟨ left-lemma ∣-cong′ reflexive ⟩
((! P ∣ P′) ∣ ! Q) ∣ P″ ∼⟨ swap-rightmost ⟩■
((! P ∣ P′) ∣ P″) ∣ ! Q
τ-lemma₂ = λ {P′ Q′ : Proc ∞} →
(! (P ⊕ Q) ∣ P′) ∣ Q′ ∼⟨ left-lemma ∣-cong′ reflexive ⟩
((! P ∣ P′) ∣ ! Q) ∣ Q′ ∼⟨ symmetric ∣-assoc ⟩■
(! P ∣ P′) ∣ (! Q ∣ Q′)
τ-lemma₃ = λ {Q′ Q″ : Proc ∞} →
(! (P ⊕ Q) ∣ Q′) ∣ Q″ ∼⟨ right-lemma ∣-cong′ reflexive ⟩
(! P ∣ (! Q ∣ Q′)) ∣ Q″ ∼⟨ symmetric ∣-assoc ⟩■
! P ∣ ((! Q ∣ Q′) ∣ Q″)
lr : ∀ {R μ} →
! (P ⊕ Q) [ μ ]⟶ R →
∃ λ S → ! P ∣ ! Q [ μ ]⟶ S × [ i ] R ∼′ S
lr {R} tr =
case 6-1-3-2 tr
return (const $ ∃ λ _ → _ × [ i ] _ ∼′ _)
of λ where
(inj₁ (P′ , sum-left P⟶P′ , R∼![P⊕Q]∣P′)) →
R ∼⟨ R∼![P⊕Q]∣P′ ⟩
! (P ⊕ Q) ∣ P′ ∼⟨ left-lemma ⟩■
(! P ∣ P′) ∣ ! Q ⟵⟨ par-left (replication (par-right P⟶P′)) ⟩
! P ∣ ! Q
(inj₁ (Q′ , sum-right Q⟶Q′ , R∼![P⊕Q]∣Q′)) →
R ∼⟨ R∼![P⊕Q]∣Q′ ⟩
! (P ⊕ Q) ∣ Q′ ∼⟨ right-lemma ⟩■
! P ∣ (! Q ∣ Q′) ⟵⟨ par-right (replication (par-right Q⟶Q′)) ⟩
! P ∣ ! Q
(inj₂ ( refl , P′ , P″ , c
, sum-left P⟶P′ , sum-left P⟶P″
, R∼![P⊕Q]∣P′∣P″
)) →
R ∼⟨ R∼![P⊕Q]∣P′∣P″ ⟩
(! (P ⊕ Q) ∣ P′) ∣ P″ ∼⟨ τ-lemma₁ ⟩■
((! P ∣ P′) ∣ P″) ∣ ! Q [ τ ]⟵⟨ par-left (replication (par-τ (replication (par-right P⟶P′)) P⟶P″)) ⟩
! P ∣ ! Q
(inj₂ ( refl , P′ , Q′ , c
, sum-left P⟶P′ , sum-right Q⟶Q′
, R∼![P⊕Q]∣P′∣Q′
)) →
R ∼⟨ R∼![P⊕Q]∣P′∣Q′ ⟩
(! (P ⊕ Q) ∣ P′) ∣ Q′ ∼⟨ τ-lemma₂ ⟩■
(! P ∣ P′) ∣ (! Q ∣ Q′) [ τ ]⟵⟨ par-τ (replication (par-right P⟶P′))
(replication (par-right Q⟶Q′)) ⟩
! P ∣ ! Q
(inj₂ ( refl , Q′ , P′ , c
, sum-right Q⟶Q′ , sum-left P⟶P′
, R∼![P⊕Q]∣Q′∣P′
)) →
R ∼⟨ R∼![P⊕Q]∣Q′∣P′ ⟩
(! (P ⊕ Q) ∣ Q′) ∣ P′ ∼⟨ right-lemma ∣-cong′ reflexive ⟩
(! P ∣ (! Q ∣ Q′)) ∣ P′ ∼⟨ swap-rightmost ⟩■
(! P ∣ P′) ∣ (! Q ∣ Q′) [ τ ]⟵⟨ par-τ′ (sym $ co-involutive c)
(replication (par-right P⟶P′))
(replication (par-right Q⟶Q′)) ⟩
! P ∣ ! Q
(inj₂ ( refl , Q′ , Q″ , c
, sum-right Q⟶Q′ , sum-right Q⟶Q″
, R∼![P⊕Q]∣Q′∣Q″
)) →
R ∼⟨ R∼![P⊕Q]∣Q′∣Q″ ⟩
(! (P ⊕ Q) ∣ Q′) ∣ Q″ ∼⟨ τ-lemma₃ ⟩■
! P ∣ ((! Q ∣ Q′) ∣ Q″) [ τ ]⟵⟨ par-right (replication (par-τ (replication (par-right Q⟶Q′)) Q⟶Q″)) ⟩
! P ∣ ! Q
rl : ∀ {S μ} →
! P ∣ ! Q [ μ ]⟶ S →
∃ λ R → ! (P ⊕ Q) [ μ ]⟶ R × [ i ] R ∼′ S
rl (par-left {P′ = S} !P⟶S) =
case 6-1-3-2 !P⟶S
return (const $ ∃ λ _ → _ × [ i ] _ ∼′ _)
of λ where
(inj₁ (P′ , P⟶P′ , S∼!P∣P′)) →
! (P ⊕ Q) ⟶⟨ replication (par-right (sum-left P⟶P′)) ⟩ʳˡ
! (P ⊕ Q) ∣ P′ ∼⟨ left-lemma ⟩
(! P ∣ P′) ∣ ! Q ∼⟨ symmetric S∼!P∣P′ ∣-cong reflexive ⟩■
S ∣ ! Q
(inj₂ (refl , P′ , P″ , a , P⟶P′ , P⟶P″ , S∼!P∣P′∣P″)) →
! (P ⊕ Q) [ τ ]⟶⟨ replication (par-τ (replication (par-right (sum-left P⟶P′)))
(sum-left P⟶P″)) ⟩ʳˡ
(! (P ⊕ Q) ∣ P′) ∣ P″ ∼⟨ τ-lemma₁ ⟩
((! P ∣ P′) ∣ P″) ∣ ! Q ∼⟨ symmetric S∼!P∣P′∣P″ ∣-cong reflexive ⟩■
S ∣ ! Q
rl (par-right {Q′ = S} !Q⟶S) =
case 6-1-3-2 !Q⟶S
return (const $ ∃ λ _ → _ × [ i ] _ ∼′ _)
of λ where
(inj₁ (Q′ , Q⟶Q′ , S∼!Q∣Q′)) →
! (P ⊕ Q) ⟶⟨ replication (par-right (sum-right Q⟶Q′)) ⟩ʳˡ
! (P ⊕ Q) ∣ Q′ ∼⟨ right-lemma ⟩
! P ∣ (! Q ∣ Q′) ∼⟨ reflexive ∣-cong symmetric S∼!Q∣Q′ ⟩■
! P ∣ S
(inj₂ (refl , Q′ , Q″ , a , Q⟶Q′ , Q⟶Q″ , S∼!Q∣Q′∣Q″)) →
! (P ⊕ Q) [ τ ]⟶⟨ replication (par-τ (replication (par-right (sum-right Q⟶Q′)))
(sum-right Q⟶Q″)) ⟩ʳˡ
(! (P ⊕ Q) ∣ Q′) ∣ Q″ ∼⟨ τ-lemma₃ ⟩
! P ∣ ((! Q ∣ Q′) ∣ Q″) ∼⟨ reflexive ∣-cong symmetric S∼!Q∣Q′∣Q″ ⟩■
! P ∣ S
rl (par-τ {P′ = S} {Q′ = S′} !P⟶S !Q⟶S′) =
case 6-1-3-2 !P⟶S ,′ 6-1-3-2 !Q⟶S′ of λ where
(inj₁ (P′ , P⟶P′ , S∼!P∣P′) ,
inj₁ (Q′ , Q⟶Q′ , S′∼!Q∣Q′)) →
! (P ⊕ Q) [ τ ]⟶⟨ replication (par-τ (replication (par-right (sum-left P⟶P′)))
(sum-right Q⟶Q′)) ⟩ʳˡ
(! (P ⊕ Q) ∣ P′) ∣ Q′ ∼⟨ τ-lemma₂ ⟩
(! P ∣ P′) ∣ (! Q ∣ Q′) ∼⟨ symmetric (S∼!P∣P′ ∣-cong S′∼!Q∣Q′) ⟩■
S ∣ S′
(inj₁ _ , inj₂ (() , _))
(inj₂ (() , _) , _)
6-2-17-2′ : ∀ {i P Q} → [ i ] ! (P ⊕ Q) ∼′ ! P ∣ ! Q
force 6-2-17-2′ = 6-2-17-2
6-2-17-3 : ∀ {P} → ! P ∣ ! P ∼ ! P
6-2-17-3 {P} =
! P ∣ ! P ∼⟨ symmetric 6-2-17-2 ⟩
! (P ⊕ P) ∼⟨ !-cong ⊕-idempotent ⟩■
! P
-- A result mentioned in the proof of 6.2.17 (4) in "Enhancements of
-- the bisimulation proof method".
6-2-17-4-lemma : ∀ {P Q μ} → ! P [ μ ]⟶ Q → Q ∼ ! P ∣ Q
6-2-17-4-lemma {P} {Q} !P⟶Q = case 6-1-3-2 !P⟶Q of λ where
(inj₁ (P′ , P⟶P′ , Q∼!P∣P′)) →
Q ∼⟨ Q∼!P∣P′ ⟩
! P ∣ P′ ∼⟨ symmetric 6-2-17-3 ∣-cong reflexive ⟩
(! P ∣ ! P) ∣ P′ ∼⟨ symmetric ∣-assoc ⟩
! P ∣ (! P ∣ P′) ∼⟨ reflexive ∣-cong symmetric Q∼!P∣P′ ⟩■
! P ∣ Q
(inj₂ (_ , P′ , P″ , _ , P⟶P′ , P⟶P″ , Q∼!P∣P′∣P″)) →
Q ∼⟨ Q∼!P∣P′∣P″ ⟩
(! P ∣ P′) ∣ P″ ∼⟨ symmetric ∣-assoc ⟩
! P ∣ (P′ ∣ P″) ∼⟨ symmetric 6-2-17-3 ∣-cong reflexive ⟩
(! P ∣ ! P) ∣ (P′ ∣ P″) ∼⟨ symmetric ∣-assoc ⟩
! P ∣ (! P ∣ (P′ ∣ P″)) ∼⟨ reflexive ∣-cong ∣-assoc ⟩
! P ∣ ((! P ∣ P′) ∣ P″) ∼⟨ reflexive ∣-cong symmetric Q∼!P∣P′∣P″ ⟩■
! P ∣ Q
mutual
6-2-17-4 : ∀ {P i} → [ i ] ! ! P ∼ ! P
6-2-17-4 {P} {i} = ⟨ lr , rl ⟩
where
lemma = λ {Q μ} (!P⟶Q : ! P [ μ ]⟶ Q) →
! ! P ∣ Q ∼⟨ 6-2-17-4′ {i = i} ∣-cong′ reflexive ⟩
! P ∣ Q ∼⟨ symmetric (6-2-17-4-lemma !P⟶Q) ⟩■
Q
lr : ∀ {Q μ} →
! ! P [ μ ]⟶ Q →
∃ λ Q′ → ! P [ μ ]⟶ Q′ × [ i ] Q ∼′ Q′
lr {Q} !!P⟶Q = case 6-1-3-2 !!P⟶Q of λ where
(inj₁ (Q′ , !P⟶Q′ , Q∼!!P∣Q′)) →
_
, !P⟶Q′
, (Q ∼⟨ Q∼!!P∣Q′ ⟩
! ! P ∣ Q′ ∼⟨ lemma !P⟶Q′ ⟩■
Q′)
(inj₂ (refl , Q′ , Q″ , a , !P⟶Q′ , !P⟶Q″ , Q∼!!P∣Q′∣Q″)) →
case 6-1-3-2 !P⟶Q″ of λ where
(inj₂ (() , _))
(inj₁ (Q‴ , P⟶Q‴ , Q″∼!P∣Q‴)) →
let !P⟶Q′∣Q″ =
! P [ τ ]⟶⟨ replication (par-τ !P⟶Q′ P⟶Q‴) ⟩
Q′ ∣ Q‴
in
Q ∼⟨ Q∼!!P∣Q′∣Q″ ⟩
(! ! P ∣ Q′) ∣ Q″ ∼⟨ reflexive ∣-cong Q″∼!P∣Q‴ ⟩
(! ! P ∣ Q′) ∣ (! P ∣ Q‴) ∼⟨ swap-in-the-middle ⟩
(! ! P ∣ ! P) ∣ (Q′ ∣ Q‴) ∼⟨ 6-1-2 ∣-cong reflexive ⟩
! ! P ∣ (Q′ ∣ Q‴) ∼⟨ lemma !P⟶Q′∣Q″ ⟩■
Q′ ∣ Q‴ [ τ ]⟵⟨ !P⟶Q′∣Q″ ⟩
! P
rl : ∀ {Q μ} →
! P [ μ ]⟶ Q →
∃ λ Q′ → ! ! P [ μ ]⟶ Q′ × [ i ] Q′ ∼′ Q
rl {Q} !P⟶Q =
! ! P ⟶⟨ replication (par-right !P⟶Q) ⟩ʳˡ
! ! P ∣ Q ∼⟨ lemma !P⟶Q ⟩■
Q
6-2-17-4′ : ∀ {P i} → [ i ] ! ! P ∼′ ! P
force 6-2-17-4′ = 6-2-17-4
------------------------------------------------------------------------
-- An example from "Coinduction All the Way Up" by Pous
module _ (a b : Name-with-kind) where
A B C D : ∀ {i} → Proc i
A = name a ∙ name b ∙ D
B = name a ∙ name b ∙ C
C = name (co a) · λ { .force → A ∣ C }
D = name (co a) · λ { .force → B ∣ D }
mutual
A∼B : ∀ {i} → [ i ] A ∼ B
A∼B = refl ∙-cong (refl ∙-cong symmetric C∼D)
C∼D : ∀ {i} → [ i ] C ∼ D
C∼D = refl ·-cong λ { .force → A∼B ∣-cong C∼D }
------------------------------------------------------------------------
-- Another example (not taken from Pous and Sangiorgi)
Restricted : Name → Proc ∞
Restricted a = ⟨ν a ⟩ (name (a , true) · λ { .force → ∅ })
Restricted∼∅ : ∀ {a} → Restricted a ∼ ∅
Restricted∼∅ =
⟨ (λ { (restriction x≢x action) → ⊥-elim (x≢x refl) })
, (λ ())
⟩
|
oeis/008/A008503.asm | neoneye/loda-programs | 11 | 242658 | <reponame>neoneye/loda-programs
; A008503: 9-dimensional centered tetrahedral numbers.
; 1,11,66,286,1001,3003,8008,19448,43758,92378,184755,352705,646580,1143780,1960255,3265757,5303727,8416837,13079352,19937632,29860259,43999449,63865594,91416974,129166884,180310636,248875121,339893851,459610646,615715386,817615513,1076747243,1406930733,1824773743,2350128638,3006607890,3822163565,4829736615,6067982140,7582077140,9424617642,11656612462,14348581247,17581764837,21449456392,26058462144,31530701059,38004953129,45638766459,54610533769,65121749396,77399458356,91698909511,108306425381
mov $2,$0
add $0,10
bin $0,10
bin $2,10
sub $0,$2
|
oeis/214/A214555.asm | neoneye/loda-programs | 11 | 171318 | ; A214555: Subsequence of fixed points A099009 of the Kaprekar mapping with numbers of the form 5(n)//4//9(n+1)//4(n)//5.
; Submitted by <NAME>(s1.)
; 495,549945,554999445,555499994445,555549999944445,555554999999444445,555555499999994444445,555555549999999944444445,555555554999999999444444445,555555555499999999994444444445,555555555549999999999944444444445,555555555554999999999999444444444445,555555555555499999999999994444444444445,555555555555549999999999999944444444444445,555555555555554999999999999999444444444444445,555555555555555499999999999999994444444444444445,555555555555555549999999999999999944444444444444445
add $0,1
mov $1,1
mov $2,10
pow $2,$0
add $1,$2
mov $3,1
sub $3,$2
mul $1,$3
mul $1,$3
mov $0,$1
div $0,891
mul $0,495
|
programs/oeis/111/A111063.asm | jmorken/loda | 1 | 179865 | <filename>programs/oeis/111/A111063.asm
; A111063: a(0) = 1; a(n) = (n-1)*a(n-1) + n.
; 1,1,3,9,31,129,651,3913,27399,219201,1972819,19728201,217010223,2604122689,33853594971,473950329609,7109254944151,113748079106433,1933717344809379,34806912206568841
sub $0,1
mov $2,1
lpb $0
mul $2,$0
sub $0,1
add $1,$2
lpe
mul $1,2
add $1,1
|
bootloader/Stage2(yedek).asm | karacasoft/ProjectKaOS | 1 | 24213 | <gh_stars>1-10
bits 16
org 0x00
jmp main
;=====================================
; Preprocessor Directives
;=====================================
%include "stdio.inc"
%include "gdt.inc"
;=====================================
; Data Block
;=====================================
MsgStarting db "Starting Boot Stage 2", 0x0D, 0x0A, 0x00
TestNumber dw 125
StrTest db "s ", 0x0D, 0x0A, 0x00
TestComplete db "Test Completed", 0x0D, 0x0A, 0x00
DriveNumber db 0
SectorsPerTrack db 18
NumberOfHeads db 2
DA_PACK:
db 0x10
db 0
blocksRead: dw 16
d_address: dw 0x7C00
dw 0
d_lba: dd 18
dd 0
;=====================================
; Stage 2 Entry Point
;=====================================
main:
cli
push cs
pop ds
mov ax, 0x9000
mov ss, ax
mov sp, 0xFFFF
sti
mov si, MsgStarting ; Display Starting message
call Puts16
mov [DriveNumber], dl
mov ah, 0x41
mov bx, 0x55AA
mov dl, 0x80
int 0x13
jnc .ReadDriveExtension
;and dl, 0x80
;jnz .ReadDrive
jmp .GetDiskValues
.ReadDriveExtension:
mov si, DA_PACK
mov ah, 0x42
mov dl, [DriveNumber]
int 0x13
jnc .ReadDone
.GetDiskValues:
mov ah, 0x8
mov dl, [DriveNumber]
int 0x13
add dh, 1 ; Arbitrary addition(?)
mov [NumberOfHeads], dh
and cl, 0x3f
mov [SectorsPerTrack], cl
xor ax, ax
mov al, [NumberOfHeads]
push ax
push StrTest
call intToString16
mov si, StrTest
call Puts16
mov al, [SectorsPerTrack]
push ax
push StrTest
call intToString16
mov si, StrTest
call Puts16
.ReadDrive:
.ReadDone:
cli ; Stop for now
hlt |
Create Calendar Event in Fantastical.applescript | EvanLovely/clipboard-actions | 9 | 1130 | tell application "Fantastical"
parse sentence the clipboard
end tell |
Transynther/x86/_processed/AVXALIGN/_st_zr_/i3-7100_9_0xca_notsx.log_21829_499.asm | ljhsiun2/medusa | 9 | 175910 | <gh_stars>1-10
.global s_prepare_buffers
s_prepare_buffers:
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r11
push %r14
push %rax
push %rbp
push %rbx
push %rcx
// Store
lea addresses_normal+0x463f, %rbx
nop
nop
nop
nop
nop
add %rcx, %rcx
mov $0x5152535455565758, %rbp
movq %rbp, %xmm5
movups %xmm5, (%rbx)
nop
add %rbx, %rbx
// Store
lea addresses_A+0x5ccd, %rax
nop
nop
nop
nop
sub %r10, %r10
mov $0x5152535455565758, %r14
movq %r14, (%rax)
nop
nop
nop
nop
nop
and $56051, %rbx
// Load
lea addresses_WC+0x563f, %r10
nop
nop
nop
nop
xor %rbp, %rbp
mov (%r10), %rbx
add $43752, %rbp
// Store
lea addresses_normal+0x1b199, %rcx
nop
nop
xor $49552, %r14
mov $0x5152535455565758, %r10
movq %r10, (%rcx)
nop
nop
nop
nop
nop
sub %r10, %r10
// Store
lea addresses_UC+0x313f, %r10
nop
add $5348, %r11
mov $0x5152535455565758, %r14
movq %r14, %xmm7
movups %xmm7, (%r10)
nop
nop
nop
sub $27736, %rbx
// Faulty Load
lea addresses_UC+0xc13f, %rcx
nop
nop
nop
nop
and %rax, %rax
movntdqa (%rcx), %xmm2
vpextrq $0, %xmm2, %rbx
lea oracles, %r11
and $0xff, %rbx
shlq $12, %rbx
mov (%r11,%rbx,1), %rbx
pop %rcx
pop %rbx
pop %rbp
pop %rax
pop %r14
pop %r11
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'src': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_UC', 'size': 32, 'AVXalign': False}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 7, 'NT': False, 'type': 'addresses_normal', 'size': 16, 'AVXalign': False}}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 1, 'NT': True, 'type': 'addresses_A', 'size': 8, 'AVXalign': False}}
{'src': {'same': False, 'congruent': 8, 'NT': True, 'type': 'addresses_WC', 'size': 8, 'AVXalign': False}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 1, 'NT': False, 'type': 'addresses_normal', 'size': 8, 'AVXalign': False}}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 10, 'NT': False, 'type': 'addresses_UC', 'size': 16, 'AVXalign': False}}
[Faulty Load]
{'src': {'same': True, 'congruent': 0, 'NT': True, 'type': 'addresses_UC', 'size': 16, 'AVXalign': False}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'58': 21717, '00': 112}
00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58
*/
|
Validation/pyFrame3DD-master/gcc-master/gcc/ada/bindgen.adb | djamal2727/Main-Bearing-Analytical-Model | 0 | 8796 | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- B I N D G E N --
-- --
-- B o d y --
-- --
-- Copyright (C) 1992-2020, Free Software Foundation, Inc. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 3, or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License --
-- for more details. You should have received a copy of the GNU General --
-- Public License distributed with GNAT; see file COPYING3. If not, go to --
-- http://www.gnu.org/licenses for a complete copy of the license. --
-- --
-- GNAT was originally developed by the GNAT team at New York University. --
-- Extensive contributions were provided by Ada Core Technologies Inc. --
-- --
------------------------------------------------------------------------------
with Casing; use Casing;
with Fname; use Fname;
with Gnatvsn; use Gnatvsn;
with Hostparm;
with Namet; use Namet;
with Opt; use Opt;
with Osint; use Osint;
with Osint.B; use Osint.B;
with Output; use Output;
with Rident; use Rident;
with Table;
with Targparm; use Targparm;
with Types; use Types;
with System.OS_Lib;
with System.WCh_Con; use System.WCh_Con;
with GNAT.Heap_Sort_A; use GNAT.Heap_Sort_A;
with GNAT.HTable;
package body Bindgen is
Statement_Buffer : String (1 .. 1000);
-- Buffer used for constructing output statements
Stm_Last : Natural := 0;
-- Stm_Last location in Statement_Buffer currently set
With_GNARL : Boolean := False;
-- Flag which indicates whether the program uses the GNARL library
-- (presence of the unit System.OS_Interface)
Num_Elab_Calls : Nat := 0;
-- Number of generated calls to elaboration routines
Num_Primary_Stacks : Int := 0;
-- Number of default-sized primary stacks the binder needs to allocate for
-- task objects declared in the program.
Num_Sec_Stacks : Int := 0;
-- Number of default-sized primary stacks the binder needs to allocate for
-- task objects declared in the program.
System_Restrictions_Used : Boolean := False;
-- Flag indicating whether the unit System.Restrictions is in the closure
-- of the partition. This is set by Resolve_Binder_Options, and is used
-- to determine whether or not to initialize the restrictions information
-- in the body of the binder generated file (we do not want to do this
-- unconditionally, since it drags in the System.Restrictions unit
-- unconditionally, which is unpleasand, especially for ZFP etc.)
Dispatching_Domains_Used : Boolean := False;
-- Flag indicating whether multiprocessor dispatching domains are used in
-- the closure of the partition. This is set by Resolve_Binder_Options, and
-- is used to call the routine to disallow the creation of new dispatching
-- domains just before calling the main procedure from the environment
-- task.
System_Secondary_Stack_Package_In_Closure : Boolean := False;
-- Flag indicating whether the unit System.Secondary_Stack is in the
-- closure of the partition. This is set by Resolve_Binder_Options, and
-- is used to initialize the package in cases where the run-time brings
-- in package but the secondary stack is not used.
System_Tasking_Restricted_Stages_Used : Boolean := False;
-- Flag indicating whether the unit System.Tasking.Restricted.Stages is in
-- the closure of the partition. This is set by Resolve_Binder_Options,
-- and it used to call a routine to active all the tasks at the end of
-- the elaboration when partition elaboration policy is sequential.
System_Interrupts_Used : Boolean := False;
-- Flag indicating whether the unit System.Interrups is in the closure of
-- the partition. This is set by Resolve_Binder_Options, and it used to
-- attach interrupt handlers at the end of the elaboration when partition
-- elaboration policy is sequential.
System_BB_CPU_Primitives_Multiprocessors_Used : Boolean := False;
-- Flag indicating whether unit System.BB.CPU_Primitives.Multiprocessors
-- is in the closure of the partition. This is set by procedure
-- Resolve_Binder_Options, and it is used to call a procedure that starts
-- slave processors.
System_Version_Control_Used : Boolean := False;
-- Flag indicating whether unit System.Version_Control is in the closure.
-- This unit is implicitly withed by the compiler when Version or
-- Body_Version attributes are used. If the package is not in the closure,
-- the version definitions can be removed.
Lib_Final_Built : Boolean := False;
-- Flag indicating whether the finalize_library rountine has been built
Bind_Env_String_Built : Boolean := False;
-- Flag indicating whether a bind environment string has been built
CodePeer_Wrapper_Name : constant String := "call_main_subprogram";
-- For CodePeer, introduce a wrapper subprogram which calls the
-- user-defined main subprogram.
----------------------------------
-- Interface_State Pragma Table --
----------------------------------
-- This table assembles the interface state pragma information from
-- all the units in the partition. Note that Bcheck has already checked
-- that the information is consistent across units. The entries
-- in this table are n/u/r/s for not set/user/runtime/system.
package IS_Pragma_Settings is new Table.Table
(Table_Component_Type => Character,
Table_Index_Type => Int,
Table_Low_Bound => 0,
Table_Initial => 100,
Table_Increment => 200,
Table_Name => "IS_Pragma_Settings");
-- This table assembles the Priority_Specific_Dispatching pragma
-- information from all the units in the partition. Note that Bcheck has
-- already checked that the information is consistent across units.
-- The entries in this table are the upper case first character of the
-- policy name, e.g. 'F' for FIFO_Within_Priorities.
package PSD_Pragma_Settings is new Table.Table
(Table_Component_Type => Character,
Table_Index_Type => Int,
Table_Low_Bound => 0,
Table_Initial => 100,
Table_Increment => 200,
Table_Name => "PSD_Pragma_Settings");
----------------------------
-- Bind_Environment Table --
----------------------------
subtype Header_Num is Int range 0 .. 36;
function Hash (Nam : Name_Id) return Header_Num;
package Bind_Environment is new GNAT.HTable.Simple_HTable
(Header_Num => Header_Num,
Element => Name_Id,
No_Element => No_Name,
Key => Name_Id,
Hash => Hash,
Equal => "=");
----------------------
-- Run-Time Globals --
----------------------
-- This section documents the global variables that are set from the
-- generated binder file.
-- Main_Priority : Integer;
-- Time_Slice_Value : Integer;
-- Heap_Size : Natural;
-- WC_Encoding : Character;
-- Locking_Policy : Character;
-- Queuing_Policy : Character;
-- Task_Dispatching_Policy : Character;
-- Priority_Specific_Dispatching : System.Address;
-- Num_Specific_Dispatching : Integer;
-- Restrictions : System.Address;
-- Interrupt_States : System.Address;
-- Num_Interrupt_States : Integer;
-- Unreserve_All_Interrupts : Integer;
-- Exception_Tracebacks : Integer;
-- Exception_Tracebacks_Symbolic : Integer;
-- Detect_Blocking : Integer;
-- Default_Stack_Size : Integer;
-- Default_Secondary_Stack_Size : System.Parameters.Size_Type;
-- Leap_Seconds_Support : Integer;
-- Main_CPU : Integer;
-- Default_Sized_SS_Pool : System.Address;
-- Binder_Sec_Stacks_Count : Natural;
-- XDR_Stream : Integer;
-- Main_Priority is the priority value set by pragma Priority in the main
-- program. If no such pragma is present, the value is -1.
-- Time_Slice_Value is the time slice value set by pragma Time_Slice in the
-- main program, or by the use of a -Tnnn parameter for the binder (if both
-- are present, the binder value overrides). The value is in milliseconds.
-- A value of zero indicates that time slicing should be suppressed. If no
-- pragma is present, and no -T switch was used, the value is -1.
-- WC_Encoding shows the wide character encoding method used for the main
-- program. This is one of the encoding letters defined in
-- System.WCh_Con.WC_Encoding_Letters.
-- Locking_Policy is a space if no locking policy was specified for the
-- partition. If a locking policy was specified, the value is the upper
-- case first character of the locking policy name, for example, 'C' for
-- Ceiling_Locking.
-- Queuing_Policy is a space if no queuing policy was specified for the
-- partition. If a queuing policy was specified, the value is the upper
-- case first character of the queuing policy name for example, 'F' for
-- FIFO_Queuing.
-- Task_Dispatching_Policy is a space if no task dispatching policy was
-- specified for the partition. If a task dispatching policy was specified,
-- the value is the upper case first character of the policy name, e.g. 'F'
-- for FIFO_Within_Priorities.
-- Priority_Specific_Dispatching is the address of a string used to store
-- the task dispatching policy specified for the different priorities in
-- the partition. The length of this string is determined by the last
-- priority for which such a pragma applies (the string will be a null
-- string if no specific dispatching policies were used). If pragma were
-- present, the entries apply to the priorities in sequence from the first
-- priority. The value stored is the upper case first character of the
-- policy name, or 'F' (for FIFO_Within_Priorities) as the default value
-- for those priority ranges not specified.
-- Num_Specific_Dispatching is length of the Priority_Specific_Dispatching
-- string. It will be set to zero if no Priority_Specific_Dispatching
-- pragmas are present.
-- Restrictions is the address of a null-terminated string specifying the
-- restrictions information for the partition. The format is identical to
-- that of the parameter string found on R lines in ali files (see Lib.Writ
-- spec in lib-writ.ads for full details). The difference is that in this
-- context the values are the cumulative ones for the entire partition.
-- Interrupt_States is the address of a string used to specify the
-- cumulative results of Interrupt_State pragmas used in the partition.
-- The length of this string is determined by the last interrupt for which
-- such a pragma is given (the string will be a null string if no pragmas
-- were used). If pragma were present the entries apply to the interrupts
-- in sequence from the first interrupt, and are set to one of four
-- possible settings: 'n' for not specified, 'u' for user, 'r' for run
-- time, 's' for system, see description of Interrupt_State pragma for
-- further details.
-- Num_Interrupt_States is the length of the Interrupt_States string. It
-- will be set to zero if no Interrupt_State pragmas are present.
-- Unreserve_All_Interrupts is set to one if at least one unit in the
-- partition had a pragma Unreserve_All_Interrupts, and zero otherwise.
-- Exception_Tracebacks is set to one if the -Ea or -E parameter was
-- present in the bind and to zero otherwise. Note that on some targets
-- exception tracebacks are provided by default, so a value of zero for
-- this parameter does not necessarily mean no trace backs are available.
-- Exception_Tracebacks_Symbolic is set to one if the -Es parameter was
-- present in the bind and to zero otherwise.
-- Detect_Blocking indicates whether pragma Detect_Blocking is active or
-- not. A value of zero indicates that the pragma is not present, while a
-- value of 1 signals its presence in the partition.
-- Default_Stack_Size is the default stack size used when creating an Ada
-- task with no explicit Storage_Size clause.
-- Default_Secondary_Stack_Size is the default secondary stack size used
-- when creating an Ada task with no explicit Secondary_Stack_Size clause.
-- Leap_Seconds_Support denotes whether leap seconds have been enabled or
-- disabled. A value of zero indicates that leap seconds are turned "off",
-- while a value of one signifies "on" status.
-- Main_CPU is the processor set by pragma CPU in the main program. If no
-- such pragma is present, the value is -1.
-- Default_Sized_SS_Pool is set to the address of the default-sized
-- secondary stacks array generated by the binder. This pool of stacks is
-- generated when either the restriction No_Implicit_Heap_Allocations
-- or No_Implicit_Task_Allocations is active.
-- Binder_Sec_Stacks_Count is the number of generated secondary stacks in
-- the Default_Sized_SS_Pool.
-- XDR_Stream indicates whether streaming should be performed using the
-- XDR protocol. A value of one indicates that XDR streaming is enabled.
procedure WBI (Info : String) renames Osint.B.Write_Binder_Info;
-- Convenient shorthand used throughout
-----------------------
-- Local Subprograms --
-----------------------
procedure Gen_Adainit (Elab_Order : Unit_Id_Array);
-- Generates the Adainit procedure
procedure Gen_Adafinal;
-- Generate the Adafinal procedure
procedure Gen_Bind_Env_String;
-- Generate the bind environment buffer
procedure Gen_CodePeer_Wrapper;
-- For CodePeer, generate wrapper which calls user-defined main subprogram
procedure Gen_Elab_Calls (Elab_Order : Unit_Id_Array);
-- Generate sequence of elaboration calls
procedure Gen_Elab_Externals (Elab_Order : Unit_Id_Array);
-- Generate sequence of external declarations for elaboration
procedure Gen_Elab_Order (Elab_Order : Unit_Id_Array);
-- Generate comments showing elaboration order chosen
procedure Gen_Finalize_Library (Elab_Order : Unit_Id_Array);
-- Generate a sequence of finalization calls to elaborated packages
procedure Gen_Main;
-- Generate procedure main
procedure Gen_Object_Files_Options (Elab_Order : Unit_Id_Array);
-- Output comments containing a list of the full names of the object
-- files to be linked and the list of linker options supplied by
-- Linker_Options pragmas in the source.
procedure Gen_Output_File_Ada
(Filename : String;
Elab_Order : Unit_Id_Array);
-- Generate Ada output file
procedure Gen_Restrictions;
-- Generate initialization of restrictions variable
procedure Gen_Versions;
-- Output series of definitions for unit versions
function Get_Ada_Main_Name return String;
-- This function is used for the Ada main output to compute a usable name
-- for the generated main program. The normal main program name is
-- Ada_Main, but this won't work if the user has a unit with this name.
-- This function tries Ada_Main first, and if there is such a clash, then
-- it tries Ada_Name_01, Ada_Name_02 ... Ada_Name_99 in sequence.
function Get_Main_Unit_Name (S : String) return String;
-- Return the main unit name corresponding to S by replacing '.' with '_'
function Get_Main_Name return String;
-- This function is used in the main output case to compute the correct
-- external main program. It is "main" by default, unless the flag
-- Use_Ada_Main_Program_Name_On_Target is set, in which case it is the name
-- of the Ada main name without the "_ada". This default can be overridden
-- explicitly using the -Mname binder switch.
function Get_WC_Encoding return Character;
-- Return wide character encoding method to set as WC_Encoding in output.
-- If -W has been used, returns the specified encoding, otherwise returns
-- the encoding method used for the main program source. If there is no
-- main program source (-z switch used), returns brackets ('b').
function Has_Finalizer (Elab_Order : Unit_Id_Array) return Boolean;
-- Determine whether the current unit has at least one library-level
-- finalizer.
function Lt_Linker_Option (Op1 : Natural; Op2 : Natural) return Boolean;
-- Compare linker options, when sorting, first according to
-- Is_Internal_File (internal files come later) and then by
-- elaboration order position (latest to earliest).
procedure Move_Linker_Option (From : Natural; To : Natural);
-- Move routine for sorting linker options
procedure Resolve_Binder_Options (Elab_Order : Unit_Id_Array);
-- Set the value of With_GNARL
procedure Set_Char (C : Character);
-- Set given character in Statement_Buffer at the Stm_Last + 1 position
-- and increment Stm_Last by one to reflect the stored character.
procedure Set_Int (N : Int);
-- Set given value in decimal in Statement_Buffer with no spaces starting
-- at the Stm_Last + 1 position, and updating Stm_Last past the value. A
-- minus sign is output for a negative value.
procedure Set_Boolean (B : Boolean);
-- Set given boolean value in Statement_Buffer at the Stm_Last + 1 position
-- and update Stm_Last past the value.
procedure Set_IS_Pragma_Table;
-- Initializes contents of IS_Pragma_Settings table from ALI table
procedure Set_Main_Program_Name;
-- Given the main program name in Name_Buffer (length in Name_Len) generate
-- the name of the routine to be used in the call. The name is generated
-- starting at Stm_Last + 1, and Stm_Last is updated past it.
procedure Set_Name_Buffer;
-- Set the value stored in positions 1 .. Name_Len of the Name_Buffer
procedure Set_PSD_Pragma_Table;
-- Initializes contents of PSD_Pragma_Settings table from ALI table
procedure Set_String (S : String);
-- Sets characters of given string in Statement_Buffer, starting at the
-- Stm_Last + 1 position, and updating last past the string value.
procedure Set_String_Replace (S : String);
-- Replaces the last S'Length characters in the Statement_Buffer with the
-- characters of S. The caller must ensure that these characters do in fact
-- exist in the Statement_Buffer.
procedure Set_Unit_Name;
-- Given a unit name in the Name_Buffer, copy it into Statement_Buffer,
-- starting at the Stm_Last + 1 position and update Stm_Last past the
-- value. Each dot (.) will be qualified into double underscores (__).
procedure Set_Unit_Number (U : Unit_Id);
-- Sets unit number (first unit is 1, leading zeroes output to line up all
-- output unit numbers nicely as required by the value, and by the total
-- number of units.
procedure Write_Statement_Buffer;
-- Write out contents of statement buffer up to Stm_Last, and reset
-- Stm_Last to 0.
procedure Write_Statement_Buffer (S : String);
-- First writes its argument (using Set_String (S)), then writes out the
-- contents of statement buffer up to Stm_Last, and resets Stm_Last to 0.
procedure Write_Bind_Line (S : String);
-- Write S (an LF-terminated string) to the binder file (for use with
-- Set_Special_Output).
------------------
-- Gen_Adafinal --
------------------
procedure Gen_Adafinal is
begin
WBI (" procedure " & Ada_Final_Name.all & " is");
-- Call s_stalib_adafinal to await termination of tasks and so on. We
-- want to do this if there is a main program, either in Ada or in some
-- other language. (Note that Bind_Main_Program is True for Ada mains,
-- but False for mains in other languages.) We do not want to do this if
-- we're binding a library.
if not Bind_For_Library and not CodePeer_Mode then
WBI (" procedure s_stalib_adafinal;");
Set_String (" pragma Import (Ada, s_stalib_adafinal, ");
Set_String ("""system__standard_library__adafinal"");");
Write_Statement_Buffer;
end if;
WBI ("");
WBI (" procedure Runtime_Finalize;");
WBI (" pragma Import (C, Runtime_Finalize, " &
"""__gnat_runtime_finalize"");");
WBI ("");
WBI (" begin");
if not CodePeer_Mode then
WBI (" if not Is_Elaborated then");
WBI (" return;");
WBI (" end if;");
WBI (" Is_Elaborated := False;");
end if;
WBI (" Runtime_Finalize;");
-- By default (real targets), finalization is done differently depending
-- on whether this is the main program or a library.
if not CodePeer_Mode then
if not Bind_For_Library then
WBI (" s_stalib_adafinal;");
elsif Lib_Final_Built then
WBI (" finalize_library;");
else
WBI (" null;");
end if;
-- Pragma Import C cannot be used on virtual targets, therefore call the
-- runtime finalization routine directly in CodePeer mode, where
-- imported functions are ignored.
else
WBI (" System.Standard_Library.Adafinal;");
end if;
WBI (" end " & Ada_Final_Name.all & ";");
WBI ("");
end Gen_Adafinal;
-----------------
-- Gen_Adainit --
-----------------
procedure Gen_Adainit (Elab_Order : Unit_Id_Array) is
Main_Priority : Int renames ALIs.Table (ALIs.First).Main_Priority;
Main_CPU : Int renames ALIs.Table (ALIs.First).Main_CPU;
begin
-- Declare the access-to-subprogram type used for initialization of
-- of __gnat_finalize_library_objects. This is declared at library
-- level for compatibility with the type used in System.Soft_Links.
-- The import of the soft link which performs library-level object
-- finalization does not work for CodePeer, so regular Ada is used in
-- that case. For restricted run-time libraries (ZFP and Ravenscar)
-- tasks are non-terminating, so we do not want finalization.
if not Suppress_Standard_Library_On_Target
and then not CodePeer_Mode
and then not Configurable_Run_Time_On_Target
then
WBI (" type No_Param_Proc is access procedure;");
WBI (" pragma Favor_Top_Level (No_Param_Proc);");
WBI ("");
end if;
WBI (" procedure " & Ada_Init_Name.all & " is");
-- In CodePeer mode, simplify adainit procedure by only calling
-- elaboration procedures.
if CodePeer_Mode then
WBI (" begin");
-- If the standard library is suppressed, then the only global variables
-- that might be needed (by the Ravenscar profile) are the priority and
-- the processor for the environment task.
elsif Suppress_Standard_Library_On_Target then
if Main_Priority /= No_Main_Priority then
WBI (" Main_Priority : Integer;");
WBI (" pragma Import (C, Main_Priority," &
" ""__gl_main_priority"");");
WBI ("");
end if;
if Main_CPU /= No_Main_CPU then
WBI (" Main_CPU : Integer;");
WBI (" pragma Import (C, Main_CPU," &
" ""__gl_main_cpu"");");
WBI ("");
end if;
if System_Interrupts_Used
and then Partition_Elaboration_Policy_Specified = 'S'
then
WBI (" procedure Install_Restricted_Handlers_Sequential;");
WBI (" pragma Import (C," &
"Install_Restricted_Handlers_Sequential," &
" ""__gnat_attach_all_handlers"");");
WBI ("");
end if;
if System_Tasking_Restricted_Stages_Used
and then Partition_Elaboration_Policy_Specified = 'S'
then
WBI (" Partition_Elaboration_Policy : Character;");
WBI (" pragma Import (C, Partition_Elaboration_Policy," &
" ""__gnat_partition_elaboration_policy"");");
WBI ("");
WBI (" procedure Activate_All_Tasks_Sequential;");
WBI (" pragma Import (C, Activate_All_Tasks_Sequential," &
" ""__gnat_activate_all_tasks"");");
WBI ("");
end if;
if System_BB_CPU_Primitives_Multiprocessors_Used then
WBI (" procedure Start_Slave_CPUs;");
WBI (" pragma Import (C, Start_Slave_CPUs," &
" ""__gnat_start_slave_cpus"");");
WBI ("");
end if;
if System_Secondary_Stack_Package_In_Closure then
-- System.Secondary_Stack is in the closure of the program
-- because the program uses the secondary stack or the restricted
-- run-time is unconditionally calling SS_Init. In both cases,
-- SS_Init needs to know the number of secondary stacks created by
-- the binder.
WBI (" Binder_Sec_Stacks_Count : Natural;");
WBI (" pragma Import (Ada, Binder_Sec_Stacks_Count, " &
"""__gnat_binder_ss_count"");");
WBI ("");
-- Import secondary stack pool variables if the secondary stack
-- used. They are not referenced otherwise.
if Sec_Stack_Used then
WBI (" Default_Secondary_Stack_Size : " &
"System.Parameters.Size_Type;");
WBI (" pragma Import (C, Default_Secondary_Stack_Size, " &
"""__gnat_default_ss_size"");");
WBI (" Default_Sized_SS_Pool : System.Address;");
WBI (" pragma Import (Ada, Default_Sized_SS_Pool, " &
"""__gnat_default_ss_pool"");");
WBI ("");
end if;
end if;
WBI (" begin");
if Main_Priority /= No_Main_Priority then
Set_String (" Main_Priority := ");
Set_Int (Main_Priority);
Set_Char (';');
Write_Statement_Buffer;
end if;
if Main_CPU /= No_Main_CPU then
Set_String (" Main_CPU := ");
Set_Int (Main_CPU);
Set_Char (';');
Write_Statement_Buffer;
end if;
if System_Tasking_Restricted_Stages_Used
and then Partition_Elaboration_Policy_Specified = 'S'
then
Set_String (" Partition_Elaboration_Policy := '");
Set_Char (Partition_Elaboration_Policy_Specified);
Set_String ("';");
Write_Statement_Buffer;
end if;
if Main_Priority = No_Main_Priority
and then Main_CPU = No_Main_CPU
and then not System_Tasking_Restricted_Stages_Used
then
WBI (" null;");
end if;
-- Generate the default-sized secondary stack pool if the secondary
-- stack is used by the program.
if System_Secondary_Stack_Package_In_Closure then
if Sec_Stack_Used then
-- Elaborate the body of the binder to initialize the default-
-- sized secondary stack pool.
WBI ("");
WBI (" " & Get_Ada_Main_Name & "'Elab_Body;");
-- Generate the default-sized secondary stack pool and set the
-- related secondary stack globals.
Set_String (" Default_Secondary_Stack_Size := ");
if Opt.Default_Sec_Stack_Size /= Opt.No_Stack_Size then
Set_Int (Opt.Default_Sec_Stack_Size);
else
Set_String
("System.Parameters.Runtime_Default_Sec_Stack_Size");
end if;
Set_Char (';');
Write_Statement_Buffer;
Set_String (" Binder_Sec_Stacks_Count := ");
Set_Int (Num_Sec_Stacks);
Set_Char (';');
Write_Statement_Buffer;
WBI (" Default_Sized_SS_Pool := " &
"Sec_Default_Sized_Stacks'Address;");
WBI ("");
else
-- The presence of System.Secondary_Stack in the closure of the
-- program implies the restricted run-time is unconditionally
-- calling SS_Init. Let SS_Init know that no stacks were
-- created.
WBI (" Binder_Sec_Stacks_Count := 0;");
end if;
end if;
-- Normal case (standard library not suppressed). Set all global values
-- used by the run time.
else
WBI (" Main_Priority : Integer;");
WBI (" pragma Import (C, Main_Priority, " &
"""__gl_main_priority"");");
WBI (" Time_Slice_Value : Integer;");
WBI (" pragma Import (C, Time_Slice_Value, " &
"""__gl_time_slice_val"");");
WBI (" WC_Encoding : Character;");
WBI (" pragma Import (C, WC_Encoding, ""__gl_wc_encoding"");");
WBI (" Locking_Policy : Character;");
WBI (" pragma Import (C, Locking_Policy, " &
"""__gl_locking_policy"");");
WBI (" Queuing_Policy : Character;");
WBI (" pragma Import (C, Queuing_Policy, " &
"""__gl_queuing_policy"");");
WBI (" Task_Dispatching_Policy : Character;");
WBI (" pragma Import (C, Task_Dispatching_Policy, " &
"""__gl_task_dispatching_policy"");");
WBI (" Priority_Specific_Dispatching : System.Address;");
WBI (" pragma Import (C, Priority_Specific_Dispatching, " &
"""__gl_priority_specific_dispatching"");");
WBI (" Num_Specific_Dispatching : Integer;");
WBI (" pragma Import (C, Num_Specific_Dispatching, " &
"""__gl_num_specific_dispatching"");");
WBI (" Main_CPU : Integer;");
WBI (" pragma Import (C, Main_CPU, " &
"""__gl_main_cpu"");");
WBI (" Interrupt_States : System.Address;");
WBI (" pragma Import (C, Interrupt_States, " &
"""__gl_interrupt_states"");");
WBI (" Num_Interrupt_States : Integer;");
WBI (" pragma Import (C, Num_Interrupt_States, " &
"""__gl_num_interrupt_states"");");
WBI (" Unreserve_All_Interrupts : Integer;");
WBI (" pragma Import (C, Unreserve_All_Interrupts, " &
"""__gl_unreserve_all_interrupts"");");
if Exception_Tracebacks or Exception_Tracebacks_Symbolic then
WBI (" Exception_Tracebacks : Integer;");
WBI (" pragma Import (C, Exception_Tracebacks, " &
"""__gl_exception_tracebacks"");");
if Exception_Tracebacks_Symbolic then
WBI (" Exception_Tracebacks_Symbolic : Integer;");
WBI (" pragma Import (C, Exception_Tracebacks_Symbolic, " &
"""__gl_exception_tracebacks_symbolic"");");
end if;
end if;
WBI (" Detect_Blocking : Integer;");
WBI (" pragma Import (C, Detect_Blocking, " &
"""__gl_detect_blocking"");");
WBI (" Default_Stack_Size : Integer;");
WBI (" pragma Import (C, Default_Stack_Size, " &
"""__gl_default_stack_size"");");
if Sec_Stack_Used then
WBI (" Default_Secondary_Stack_Size : " &
"System.Parameters.Size_Type;");
WBI (" pragma Import (C, Default_Secondary_Stack_Size, " &
"""__gnat_default_ss_size"");");
end if;
if Leap_Seconds_Support then
WBI (" Leap_Seconds_Support : Integer;");
WBI (" pragma Import (C, Leap_Seconds_Support, " &
"""__gl_leap_seconds_support"");");
end if;
WBI (" Bind_Env_Addr : System.Address;");
WBI (" pragma Import (C, Bind_Env_Addr, " &
"""__gl_bind_env_addr"");");
if XDR_Stream then
WBI (" XDR_Stream : Integer;");
WBI (" pragma Import (C, XDR_Stream, ""__gl_xdr_stream"");");
end if;
-- Import entry point for elaboration time signal handler
-- installation, and indication of if it's been called previously.
WBI ("");
WBI (" procedure Runtime_Initialize " &
"(Install_Handler : Integer);");
WBI (" pragma Import (C, Runtime_Initialize, " &
"""__gnat_runtime_initialize"");");
-- Import handlers attach procedure for sequential elaboration policy
if System_Interrupts_Used
and then Partition_Elaboration_Policy_Specified = 'S'
then
WBI (" procedure Install_Restricted_Handlers_Sequential;");
WBI (" pragma Import (C," &
"Install_Restricted_Handlers_Sequential," &
" ""__gnat_attach_all_handlers"");");
WBI ("");
end if;
-- Import task activation procedure for sequential elaboration
-- policy.
if System_Tasking_Restricted_Stages_Used
and then Partition_Elaboration_Policy_Specified = 'S'
then
WBI (" Partition_Elaboration_Policy : Character;");
WBI (" pragma Import (C, Partition_Elaboration_Policy," &
" ""__gnat_partition_elaboration_policy"");");
WBI ("");
WBI (" procedure Activate_All_Tasks_Sequential;");
WBI (" pragma Import (C, Activate_All_Tasks_Sequential," &
" ""__gnat_activate_all_tasks"");");
end if;
-- Import procedure to start slave cpus for bareboard runtime
if System_BB_CPU_Primitives_Multiprocessors_Used then
WBI (" procedure Start_Slave_CPUs;");
WBI (" pragma Import (C, Start_Slave_CPUs," &
" ""__gnat_start_slave_cpus"");");
end if;
-- For restricted run-time libraries (ZFP and Ravenscar)
-- tasks are non-terminating, so we do not want finalization.
if not Configurable_Run_Time_On_Target then
WBI ("");
WBI (" Finalize_Library_Objects : No_Param_Proc;");
WBI (" pragma Import (C, Finalize_Library_Objects, " &
"""__gnat_finalize_library_objects"");");
end if;
-- Initialize stack limit variable of the environment task if the
-- stack check method is stack limit and stack check is enabled.
if Stack_Check_Limits_On_Target
and then (Stack_Check_Default_On_Target or Stack_Check_Switch_Set)
then
WBI ("");
WBI (" procedure Initialize_Stack_Limit;");
WBI (" pragma Import (C, Initialize_Stack_Limit, " &
"""__gnat_initialize_stack_limit"");");
end if;
-- When dispatching domains are used then we need to signal it
-- before calling the main procedure.
if Dispatching_Domains_Used then
WBI (" procedure Freeze_Dispatching_Domains;");
WBI (" pragma Import");
WBI (" (Ada, Freeze_Dispatching_Domains, "
& """__gnat_freeze_dispatching_domains"");");
end if;
-- Secondary stack global variables
WBI (" Binder_Sec_Stacks_Count : Natural;");
WBI (" pragma Import (Ada, Binder_Sec_Stacks_Count, " &
"""__gnat_binder_ss_count"");");
WBI (" Default_Sized_SS_Pool : System.Address;");
WBI (" pragma Import (Ada, Default_Sized_SS_Pool, " &
"""__gnat_default_ss_pool"");");
WBI ("");
-- Start of processing for Adainit
WBI (" begin");
WBI (" if Is_Elaborated then");
WBI (" return;");
WBI (" end if;");
WBI (" Is_Elaborated := True;");
-- Call System.Elaboration_Allocators.Mark_Start_Of_Elaboration if
-- restriction No_Standard_Allocators_After_Elaboration is active.
if Cumulative_Restrictions.Set
(No_Standard_Allocators_After_Elaboration)
then
WBI (" System.Elaboration_Allocators."
& "Mark_Start_Of_Elaboration;");
end if;
-- Generate assignments to initialize globals
Set_String (" Main_Priority := ");
Set_Int (Main_Priority);
Set_Char (';');
Write_Statement_Buffer;
Set_String (" Time_Slice_Value := ");
if Task_Dispatching_Policy_Specified = 'F'
and then ALIs.Table (ALIs.First).Time_Slice_Value = -1
then
Set_Int (0);
else
Set_Int (ALIs.Table (ALIs.First).Time_Slice_Value);
end if;
Set_Char (';');
Write_Statement_Buffer;
Set_String (" WC_Encoding := '");
Set_Char (Get_WC_Encoding);
Set_String ("';");
Write_Statement_Buffer;
Set_String (" Locking_Policy := '");
Set_Char (Locking_Policy_Specified);
Set_String ("';");
Write_Statement_Buffer;
Set_String (" Queuing_Policy := '");
Set_Char (Queuing_Policy_Specified);
Set_String ("';");
Write_Statement_Buffer;
Set_String (" Task_Dispatching_Policy := '");
Set_Char (Task_Dispatching_Policy_Specified);
Set_String ("';");
Write_Statement_Buffer;
if System_Tasking_Restricted_Stages_Used
and then Partition_Elaboration_Policy_Specified = 'S'
then
Set_String (" Partition_Elaboration_Policy := '");
Set_Char (Partition_Elaboration_Policy_Specified);
Set_String ("';");
Write_Statement_Buffer;
end if;
Gen_Restrictions;
WBI (" Priority_Specific_Dispatching :=");
WBI (" Local_Priority_Specific_Dispatching'Address;");
Set_String (" Num_Specific_Dispatching := ");
Set_Int (PSD_Pragma_Settings.Last + 1);
Set_Char (';');
Write_Statement_Buffer;
Set_String (" Main_CPU := ");
Set_Int (Main_CPU);
Set_Char (';');
Write_Statement_Buffer;
WBI (" Interrupt_States := Local_Interrupt_States'Address;");
Set_String (" Num_Interrupt_States := ");
Set_Int (IS_Pragma_Settings.Last + 1);
Set_Char (';');
Write_Statement_Buffer;
Set_String (" Unreserve_All_Interrupts := ");
if Unreserve_All_Interrupts_Specified then
Set_String ("1");
else
Set_String ("0");
end if;
Set_Char (';');
Write_Statement_Buffer;
if Exception_Tracebacks or Exception_Tracebacks_Symbolic then
WBI (" Exception_Tracebacks := 1;");
if Exception_Tracebacks_Symbolic then
WBI (" Exception_Tracebacks_Symbolic := 1;");
end if;
end if;
Set_String (" Detect_Blocking := ");
if Detect_Blocking then
Set_Int (1);
else
Set_Int (0);
end if;
Set_String (";");
Write_Statement_Buffer;
Set_String (" Default_Stack_Size := ");
Set_Int (Default_Stack_Size);
Set_String (";");
Write_Statement_Buffer;
if Leap_Seconds_Support then
WBI (" Leap_Seconds_Support := 1;");
end if;
if XDR_Stream then
WBI (" XDR_Stream := 1;");
end if;
if Bind_Env_String_Built then
WBI (" Bind_Env_Addr := Bind_Env'Address;");
end if;
WBI ("");
-- Generate default-sized secondary stack pool and set secondary
-- stack globals.
if Sec_Stack_Used then
-- Elaborate the body of the binder to initialize the default-
-- sized secondary stack pool.
WBI (" " & Get_Ada_Main_Name & "'Elab_Body;");
-- Generate the default-sized secondary stack pool and set the
-- related secondary stack globals.
Set_String (" Default_Secondary_Stack_Size := ");
if Opt.Default_Sec_Stack_Size /= Opt.No_Stack_Size then
Set_Int (Opt.Default_Sec_Stack_Size);
else
Set_String ("System.Parameters.Runtime_Default_Sec_Stack_Size");
end if;
Set_Char (';');
Write_Statement_Buffer;
Set_String (" Binder_Sec_Stacks_Count := ");
Set_Int (Num_Sec_Stacks);
Set_Char (';');
Write_Statement_Buffer;
Set_String (" Default_Sized_SS_Pool := ");
if Num_Sec_Stacks > 0 then
Set_String ("Sec_Default_Sized_Stacks'Address;");
else
Set_String ("System.Null_Address;");
end if;
Write_Statement_Buffer;
WBI ("");
end if;
-- Generate call to Runtime_Initialize
WBI (" Runtime_Initialize (1);");
end if;
-- Generate call to set Initialize_Scalar values if active
if Initialize_Scalars_Used then
WBI ("");
Set_String (" System.Scalar_Values.Initialize ('");
Set_Char (Initialize_Scalars_Mode1);
Set_String ("', '");
Set_Char (Initialize_Scalars_Mode2);
Set_String ("');");
Write_Statement_Buffer;
end if;
-- Initialize stack limit variable of the environment task if the stack
-- check method is stack limit and stack check is enabled.
if Stack_Check_Limits_On_Target
and then (Stack_Check_Default_On_Target or Stack_Check_Switch_Set)
then
WBI ("");
WBI (" Initialize_Stack_Limit;");
end if;
-- On CodePeer, the finalization of library objects is not relevant
if CodePeer_Mode then
null;
-- If this is the main program case, attach finalize_library to the soft
-- link. Do it only when not using a restricted run time, in which case
-- tasks are non-terminating, so we do not want library-level
-- finalization.
elsif not Bind_For_Library
and then not Configurable_Run_Time_On_Target
and then not Suppress_Standard_Library_On_Target
then
WBI ("");
if Lib_Final_Built then
Set_String (" Finalize_Library_Objects := ");
Set_String ("finalize_library'access;");
else
Set_String (" Finalize_Library_Objects := null;");
end if;
Write_Statement_Buffer;
end if;
-- Generate elaboration calls
if not CodePeer_Mode then
WBI ("");
end if;
Gen_Elab_Calls (Elab_Order);
if not CodePeer_Mode then
-- Call System.Elaboration_Allocators.Mark_Start_Of_Elaboration if
-- restriction No_Standard_Allocators_After_Elaboration is active.
if Cumulative_Restrictions.Set
(No_Standard_Allocators_After_Elaboration)
then
WBI
(" System.Elaboration_Allocators.Mark_End_Of_Elaboration;");
end if;
-- From this point, no new dispatching domain can be created
if Dispatching_Domains_Used then
WBI (" Freeze_Dispatching_Domains;");
end if;
-- Sequential partition elaboration policy
if Partition_Elaboration_Policy_Specified = 'S' then
if System_Interrupts_Used then
WBI (" Install_Restricted_Handlers_Sequential;");
end if;
if System_Tasking_Restricted_Stages_Used then
WBI (" Activate_All_Tasks_Sequential;");
end if;
end if;
if System_BB_CPU_Primitives_Multiprocessors_Used then
WBI (" Start_Slave_CPUs;");
end if;
end if;
WBI (" end " & Ada_Init_Name.all & ";");
WBI ("");
end Gen_Adainit;
-------------------------
-- Gen_Bind_Env_String --
-------------------------
procedure Gen_Bind_Env_String is
procedure Write_Name_With_Len (Nam : Name_Id);
-- Write Nam as a string literal, prefixed with one
-- character encoding Nam's length.
-------------------------
-- Write_Name_With_Len --
-------------------------
procedure Write_Name_With_Len (Nam : Name_Id) is
begin
Get_Name_String (Nam);
Write_Str ("Character'Val (");
Write_Int (Int (Name_Len));
Write_Str (") & """);
Write_Str (Name_Buffer (1 .. Name_Len));
Write_Char ('"');
end Write_Name_With_Len;
-- Local variables
First : Boolean := True;
KN : Name_Id := No_Name;
VN : Name_Id := No_Name;
-- Start of processing for Gen_Bind_Env_String
begin
Bind_Environment.Get_First (KN, VN);
if VN = No_Name then
return;
end if;
Set_Special_Output (Write_Bind_Line'Access);
WBI (" Bind_Env : aliased constant String :=");
while VN /= No_Name loop
if First then
Write_Str (" ");
else
Write_Str (" & ");
end if;
Write_Name_With_Len (KN);
Write_Str (" & ");
Write_Name_With_Len (VN);
Write_Eol;
Bind_Environment.Get_Next (KN, VN);
First := False;
end loop;
WBI (" & ASCII.NUL;");
Cancel_Special_Output;
Bind_Env_String_Built := True;
end Gen_Bind_Env_String;
--------------------------
-- Gen_CodePeer_Wrapper --
--------------------------
procedure Gen_CodePeer_Wrapper is
Callee_Name : constant String := "Ada_Main_Program";
begin
if ALIs.Table (ALIs.First).Main_Program = Proc then
WBI (" procedure " & CodePeer_Wrapper_Name & " is ");
WBI (" begin");
WBI (" " & Callee_Name & ";");
else
WBI (" function " & CodePeer_Wrapper_Name & " return Integer is");
WBI (" begin");
WBI (" return " & Callee_Name & ";");
end if;
WBI (" end " & CodePeer_Wrapper_Name & ";");
WBI ("");
end Gen_CodePeer_Wrapper;
--------------------
-- Gen_Elab_Calls --
--------------------
procedure Gen_Elab_Calls (Elab_Order : Unit_Id_Array) is
Check_Elab_Flag : Boolean;
begin
-- Loop through elaboration order entries
for E in Elab_Order'Range loop
declare
Unum : constant Unit_Id := Elab_Order (E);
U : Unit_Record renames Units.Table (Unum);
Unum_Spec : Unit_Id;
-- This is the unit number of the spec that corresponds to
-- this entry. It is the same as Unum except when the body
-- and spec are different and we are currently processing
-- the body, in which case it is the spec (Unum + 1).
begin
if U.Utype = Is_Body then
Unum_Spec := Unum + 1;
else
Unum_Spec := Unum;
end if;
-- Nothing to do if predefined unit in no run time mode
if No_Run_Time_Mode and then Is_Predefined_File_Name (U.Sfile) then
null;
-- Likewise if this is an interface to a stand alone library
elsif U.SAL_Interface then
null;
-- Case of no elaboration code
elsif U.No_Elab
-- In CodePeer mode, we special case subprogram bodies which
-- are handled in the 'else' part below, and lead to a call
-- to <subp>'Elab_Subp_Body.
and then (not CodePeer_Mode
-- Test for spec
or else U.Utype = Is_Spec
or else U.Utype = Is_Spec_Only
or else U.Unit_Kind /= 's')
then
-- In the case of a body with a separate spec, where the
-- separate spec has an elaboration entity defined, this is
-- where we increment the elaboration entity if one exists.
-- Likewise for lone specs with an elaboration entity defined
-- despite No_Elaboration_Code, e.g. when requested to preserve
-- control flow.
if (U.Utype = Is_Body or else U.Utype = Is_Spec_Only)
and then Units.Table (Unum_Spec).Set_Elab_Entity
and then not CodePeer_Mode
then
Set_String (" E");
Set_Unit_Number (Unum_Spec);
Set_String (" := E");
Set_Unit_Number (Unum_Spec);
Set_String (" + 1;");
Write_Statement_Buffer;
end if;
-- Here if elaboration code is present. If binding a library
-- or if there is a non-Ada main subprogram then we generate:
-- if uname_E = 0 then
-- uname'elab_[spec|body];
-- end if;
-- uname_E := uname_E + 1;
-- Otherwise, elaboration routines are called unconditionally:
-- uname'elab_[spec|body];
-- uname_E := uname_E + 1;
-- The uname_E increment is skipped if this is a separate spec,
-- since it will be done when we process the body.
-- In CodePeer mode, we do not generate any reference to xxx_E
-- variables, only calls to 'Elab* subprograms.
else
-- Check incompatibilities with No_Multiple_Elaboration
if not CodePeer_Mode
and then Cumulative_Restrictions.Set (No_Multiple_Elaboration)
then
-- Force_Checking_Of_Elaboration_Flags (-F) not allowed
if Force_Checking_Of_Elaboration_Flags then
Osint.Fail
("-F (force elaboration checks) switch not allowed "
& "with restriction No_Multiple_Elaboration active");
-- Interfacing of libraries not allowed
elsif Interface_Library_Unit then
Osint.Fail
("binding of interfaced libraries not allowed "
& "with restriction No_Multiple_Elaboration active");
-- Non-Ada main program not allowed
elsif not Bind_Main_Program then
Osint.Fail
("non-Ada main program not allowed "
& "with restriction No_Multiple_Elaboration active");
end if;
end if;
-- OK, see if we need to test elaboration flag
Check_Elab_Flag :=
Units.Table (Unum_Spec).Set_Elab_Entity
and then not CodePeer_Mode
and then (Force_Checking_Of_Elaboration_Flags
or Interface_Library_Unit
or not Bind_Main_Program);
if Check_Elab_Flag then
Set_String (" if E");
Set_Unit_Number (Unum_Spec);
Set_String (" = 0 then");
Write_Statement_Buffer;
Set_String (" ");
end if;
Set_String (" ");
Get_Decoded_Name_String_With_Brackets (U.Uname);
if Name_Buffer (Name_Len) = 's' then
Name_Buffer (Name_Len - 1 .. Name_Len + 8) :=
"'elab_spec";
Name_Len := Name_Len + 8;
-- Special case in CodePeer mode for subprogram bodies
-- which correspond to CodePeer 'Elab_Subp_Body special
-- init procedure.
elsif U.Unit_Kind = 's' and CodePeer_Mode then
Name_Buffer (Name_Len - 1 .. Name_Len + 13) :=
"'elab_subp_body";
Name_Len := Name_Len + 13;
else
Name_Buffer (Name_Len - 1 .. Name_Len + 8) :=
"'elab_body";
Name_Len := Name_Len + 8;
end if;
Set_Casing (U.Icasing);
Set_Name_Buffer;
Set_Char (';');
Write_Statement_Buffer;
if Check_Elab_Flag then
WBI (" end if;");
end if;
if U.Utype /= Is_Spec
and then not CodePeer_Mode
and then Units.Table (Unum_Spec).Set_Elab_Entity
then
Set_String (" E");
Set_Unit_Number (Unum_Spec);
Set_String (" := E");
Set_Unit_Number (Unum_Spec);
Set_String (" + 1;");
Write_Statement_Buffer;
end if;
end if;
end;
end loop;
end Gen_Elab_Calls;
------------------------
-- Gen_Elab_Externals --
------------------------
procedure Gen_Elab_Externals (Elab_Order : Unit_Id_Array) is
begin
if CodePeer_Mode then
return;
end if;
for E in Elab_Order'Range loop
declare
Unum : constant Unit_Id := Elab_Order (E);
U : Unit_Record renames Units.Table (Unum);
begin
-- Check for Elab_Entity to be set for this unit
if U.Set_Elab_Entity
-- Don't generate reference for stand alone library
and then not U.SAL_Interface
-- Don't generate reference for predefined file in No_Run_Time
-- mode, since we don't include the object files in this case
and then not
(No_Run_Time_Mode
and then Is_Predefined_File_Name (U.Sfile))
then
Get_Name_String (U.Sfile);
Set_String (" ");
Set_String ("E");
Set_Unit_Number (Unum);
Set_String (" : Short_Integer; pragma Import (Ada, E");
Set_Unit_Number (Unum);
Set_String (", """);
Get_Name_String (U.Uname);
Set_Unit_Name;
Set_String ("_E"");");
Write_Statement_Buffer;
end if;
end;
end loop;
WBI ("");
end Gen_Elab_Externals;
--------------------
-- Gen_Elab_Order --
--------------------
procedure Gen_Elab_Order (Elab_Order : Unit_Id_Array) is
begin
WBI ("");
WBI (" -- BEGIN ELABORATION ORDER");
for J in Elab_Order'Range loop
Set_String (" -- ");
Get_Name_String (Units.Table (Elab_Order (J)).Uname);
Set_Name_Buffer;
Write_Statement_Buffer;
end loop;
WBI (" -- END ELABORATION ORDER");
end Gen_Elab_Order;
--------------------------
-- Gen_Finalize_Library --
--------------------------
procedure Gen_Finalize_Library (Elab_Order : Unit_Id_Array) is
procedure Gen_Header;
-- Generate the header of the finalization routine
----------------
-- Gen_Header --
----------------
procedure Gen_Header is
begin
WBI (" procedure finalize_library is");
WBI (" begin");
end Gen_Header;
-- Local variables
Count : Int := 1;
U : Unit_Record;
Uspec : Unit_Record;
Unum : Unit_Id;
-- Start of processing for Gen_Finalize_Library
begin
if CodePeer_Mode then
return;
end if;
for E in reverse Elab_Order'Range loop
Unum := Elab_Order (E);
U := Units.Table (Unum);
-- Dealing with package bodies is a little complicated. In such
-- cases we must retrieve the package spec since it contains the
-- spec of the body finalizer.
if U.Utype = Is_Body then
Unum := Unum + 1;
Uspec := Units.Table (Unum);
else
Uspec := U;
end if;
Get_Name_String (Uspec.Uname);
-- We are only interested in non-generic packages
if U.Unit_Kind /= 'p' or else U.Is_Generic then
null;
-- That aren't an interface to a stand alone library
elsif U.SAL_Interface then
null;
-- Case of no finalization
elsif not U.Has_Finalizer then
-- The only case in which we have to do something is if this
-- is a body, with a separate spec, where the separate spec
-- has a finalizer. In that case, this is where we decrement
-- the elaboration entity.
if U.Utype = Is_Body and then Uspec.Has_Finalizer then
if not Lib_Final_Built then
Gen_Header;
Lib_Final_Built := True;
end if;
Set_String (" E");
Set_Unit_Number (Unum);
Set_String (" := E");
Set_Unit_Number (Unum);
Set_String (" - 1;");
Write_Statement_Buffer;
end if;
else
if not Lib_Final_Built then
Gen_Header;
Lib_Final_Built := True;
end if;
-- Generate:
-- declare
-- procedure F<Count>;
Set_String (" declare");
Write_Statement_Buffer;
Set_String (" procedure F");
Set_Int (Count);
Set_Char (';');
Write_Statement_Buffer;
-- Generate:
-- pragma Import (Ada, F<Count>,
-- "xx__yy__finalize_[body|spec]");
Set_String (" pragma Import (Ada, F");
Set_Int (Count);
Set_String (", """);
-- Perform name construction
Set_Unit_Name;
Set_String ("__finalize_");
-- Package spec processing
if U.Utype = Is_Spec
or else U.Utype = Is_Spec_Only
then
Set_String ("spec");
-- Package body processing
else
Set_String ("body");
end if;
Set_String (""");");
Write_Statement_Buffer;
-- If binding a library or if there is a non-Ada main subprogram
-- then we generate:
-- begin
-- uname_E := uname_E - 1;
-- if uname_E = 0 then
-- F<Count>;
-- end if;
-- end;
-- Otherwise, finalization routines are called unconditionally:
-- begin
-- uname_E := uname_E - 1;
-- F<Count>;
-- end;
-- The uname_E decrement is skipped if this is a separate spec,
-- since it will be done when we process the body.
WBI (" begin");
if U.Utype /= Is_Spec then
Set_String (" E");
Set_Unit_Number (Unum);
Set_String (" := E");
Set_Unit_Number (Unum);
Set_String (" - 1;");
Write_Statement_Buffer;
end if;
if Interface_Library_Unit or not Bind_Main_Program then
Set_String (" if E");
Set_Unit_Number (Unum);
Set_String (" = 0 then");
Write_Statement_Buffer;
Set_String (" ");
end if;
Set_String (" F");
Set_Int (Count);
Set_Char (';');
Write_Statement_Buffer;
if Interface_Library_Unit or not Bind_Main_Program then
WBI (" end if;");
end if;
WBI (" end;");
Count := Count + 1;
end if;
end loop;
if Lib_Final_Built then
-- It is possible that the finalization of a library-level object
-- raised an exception. In that case import the actual exception
-- and the routine necessary to raise it.
WBI (" declare");
WBI (" procedure Reraise_Library_Exception_If_Any;");
Set_String (" pragma Import (Ada, ");
Set_String ("Reraise_Library_Exception_If_Any, ");
Set_String ("""__gnat_reraise_library_exception_if_any"");");
Write_Statement_Buffer;
WBI (" begin");
WBI (" Reraise_Library_Exception_If_Any;");
WBI (" end;");
WBI (" end finalize_library;");
WBI ("");
end if;
end Gen_Finalize_Library;
--------------
-- Gen_Main --
--------------
procedure Gen_Main is
begin
if not No_Main_Subprogram then
-- To call the main program, we declare it using a pragma Import
-- Ada with the right link name.
-- It might seem more obvious to "with" the main program, and call
-- it in the normal Ada manner. We do not do this for three
-- reasons:
-- 1. It is more efficient not to recompile the main program
-- 2. We are not entitled to assume the source is accessible
-- 3. We don't know what options to use to compile it
-- It is really reason 3 that is most critical (indeed we used
-- to generate the "with", but several regression tests failed).
if ALIs.Table (ALIs.First).Main_Program = Func then
WBI (" function Ada_Main_Program return Integer;");
else
WBI (" procedure Ada_Main_Program;");
end if;
Set_String (" pragma Import (Ada, Ada_Main_Program, """);
Get_Name_String (Units.Table (First_Unit_Entry).Uname);
Set_Main_Program_Name;
Set_String (""");");
Write_Statement_Buffer;
WBI ("");
-- For CodePeer, declare a wrapper for the user-defined main program
if CodePeer_Mode then
Gen_CodePeer_Wrapper;
end if;
end if;
if Exit_Status_Supported_On_Target then
Set_String (" function ");
else
Set_String (" procedure ");
end if;
Set_String (Get_Main_Name);
if Command_Line_Args_On_Target then
Write_Statement_Buffer;
WBI (" (argc : Integer;");
WBI (" argv : System.Address;");
WBI (" envp : System.Address)");
if Exit_Status_Supported_On_Target then
WBI (" return Integer");
end if;
WBI (" is");
else
if Exit_Status_Supported_On_Target then
Set_String (" return Integer is");
else
Set_String (" is");
end if;
Write_Statement_Buffer;
end if;
if Opt.Default_Exit_Status /= 0
and then Bind_Main_Program
and then not Configurable_Run_Time_Mode
then
WBI (" procedure Set_Exit_Status (Status : Integer);");
WBI (" pragma Import (C, Set_Exit_Status, " &
"""__gnat_set_exit_status"");");
WBI ("");
end if;
-- Initialize and Finalize
if not CodePeer_Mode
and then not Cumulative_Restrictions.Set (No_Finalization)
then
WBI (" procedure Initialize (Addr : System.Address);");
WBI (" pragma Import (C, Initialize, ""__gnat_initialize"");");
WBI ("");
WBI (" procedure Finalize;");
WBI (" pragma Import (C, Finalize, ""__gnat_finalize"");");
end if;
-- If we want to analyze the stack, we must import corresponding symbols
if Dynamic_Stack_Measurement then
WBI ("");
WBI (" procedure Output_Results;");
WBI (" pragma Import (C, Output_Results, " &
"""__gnat_stack_usage_output_results"");");
WBI ("");
WBI (" " &
"procedure Initialize_Stack_Analysis (Buffer_Size : Natural);");
WBI (" pragma Import (C, Initialize_Stack_Analysis, " &
"""__gnat_stack_usage_initialize"");");
end if;
-- Deal with declarations for main program case
if not No_Main_Subprogram then
if ALIs.Table (ALIs.First).Main_Program = Func then
WBI (" Result : Integer;");
WBI ("");
end if;
if Bind_Main_Program
and not Suppress_Standard_Library_On_Target
and not CodePeer_Mode
then
WBI (" SEH : aliased array (1 .. 2) of Integer;");
WBI ("");
end if;
end if;
-- Generate a reference to Ada_Main_Program_Name. This symbol is not
-- referenced elsewhere in the generated program, but is needed by
-- the debugger (that's why it is generated in the first place). The
-- reference stops Ada_Main_Program_Name from being optimized away by
-- smart linkers.
-- Because this variable is unused, we make this variable "aliased"
-- with a pragma Volatile in order to tell the compiler to preserve
-- this variable at any level of optimization.
-- CodePeer and CCG do not need this extra code. The code is also not
-- needed if the binder is in "Minimal Binder" mode.
if Bind_Main_Program
and then not Minimal_Binder
and then not CodePeer_Mode
and then not Generate_C_Code
then
WBI (" Ensure_Reference : aliased System.Address := " &
"Ada_Main_Program_Name'Address;");
WBI (" pragma Volatile (Ensure_Reference);");
WBI ("");
end if;
WBI (" begin");
-- Acquire command-line arguments if present on target
if CodePeer_Mode then
null;
elsif Command_Line_Args_On_Target then
-- Initialize gnat_argc/gnat_argv only if not already initialized,
-- to avoid losing the result of any command-line processing done by
-- earlier GNAT run-time initialization.
WBI (" if gnat_argc = 0 then");
WBI (" gnat_argc := argc;");
WBI (" gnat_argv := argv;");
WBI (" end if;");
WBI (" gnat_envp := envp;");
WBI ("");
-- If configurable run-time and no command-line args, then nothing needs
-- to be done since the gnat_argc/argv/envp variables are suppressed in
-- this case.
elsif Configurable_Run_Time_On_Target then
null;
-- Otherwise set dummy values (to be filled in by some other unit?)
else
WBI (" gnat_argc := 0;");
WBI (" gnat_argv := System.Null_Address;");
WBI (" gnat_envp := System.Null_Address;");
end if;
if Opt.Default_Exit_Status /= 0
and then Bind_Main_Program
and then not Configurable_Run_Time_Mode
then
Set_String (" Set_Exit_Status (");
Set_Int (Opt.Default_Exit_Status);
Set_String (");");
Write_Statement_Buffer;
end if;
if Dynamic_Stack_Measurement then
Set_String (" Initialize_Stack_Analysis (");
Set_Int (Dynamic_Stack_Measurement_Array_Size);
Set_String (");");
Write_Statement_Buffer;
end if;
if not Cumulative_Restrictions.Set (No_Finalization)
and then not CodePeer_Mode
then
if not No_Main_Subprogram
and then Bind_Main_Program
and then not Suppress_Standard_Library_On_Target
then
WBI (" Initialize (SEH'Address);");
else
WBI (" Initialize (System.Null_Address);");
end if;
end if;
WBI (" " & Ada_Init_Name.all & ";");
if not No_Main_Subprogram then
if CodePeer_Mode then
if ALIs.Table (ALIs.First).Main_Program = Proc then
WBI (" " & CodePeer_Wrapper_Name & ";");
else
WBI (" Result := " & CodePeer_Wrapper_Name & ";");
end if;
elsif ALIs.Table (ALIs.First).Main_Program = Proc then
WBI (" Ada_Main_Program;");
else
WBI (" Result := Ada_Main_Program;");
end if;
end if;
-- Adafinal call is skipped if no finalization
if not Cumulative_Restrictions.Set (No_Finalization) then
WBI (" adafinal;");
end if;
-- Prints the result of static stack analysis
if Dynamic_Stack_Measurement then
WBI (" Output_Results;");
end if;
-- Finalize is only called if we have a run time
if not Cumulative_Restrictions.Set (No_Finalization)
and then not CodePeer_Mode
then
WBI (" Finalize;");
end if;
-- Return result
if Exit_Status_Supported_On_Target then
if No_Main_Subprogram
or else ALIs.Table (ALIs.First).Main_Program = Proc
then
WBI (" return (gnat_exit_status);");
else
WBI (" return (Result);");
end if;
end if;
WBI (" end;");
WBI ("");
end Gen_Main;
------------------------------
-- Gen_Object_Files_Options --
------------------------------
procedure Gen_Object_Files_Options (Elab_Order : Unit_Id_Array) is
Lgnat : Natural;
-- This keeps track of the position in the sorted set of entries in the
-- Linker_Options table of where the first entry from an internal file
-- appears.
Linker_Option_List_Started : Boolean := False;
-- Set to True when "LINKER OPTION LIST" is displayed
procedure Write_Linker_Option;
-- Write binder info linker option
-------------------------
-- Write_Linker_Option --
-------------------------
procedure Write_Linker_Option is
Start : Natural;
Stop : Natural;
begin
-- Loop through string, breaking at null's
Start := 1;
while Start < Name_Len loop
-- Find null ending this section
Stop := Start + 1;
while Name_Buffer (Stop) /= ASCII.NUL
and then Stop <= Name_Len loop
Stop := Stop + 1;
end loop;
-- Process section if non-null
if Stop > Start then
if Output_Linker_Option_List then
if not Zero_Formatting then
if not Linker_Option_List_Started then
Linker_Option_List_Started := True;
Write_Eol;
Write_Str (" LINKER OPTION LIST");
Write_Eol;
Write_Eol;
end if;
Write_Str (" ");
end if;
Write_Str (Name_Buffer (Start .. Stop - 1));
Write_Eol;
end if;
WBI (" -- " & Name_Buffer (Start .. Stop - 1));
end if;
Start := Stop + 1;
end loop;
end Write_Linker_Option;
-- Start of processing for Gen_Object_Files_Options
begin
WBI ("-- BEGIN Object file/option list");
if Object_List_Filename /= null then
Set_List_File (Object_List_Filename.all);
end if;
for E in Elab_Order'Range loop
-- If not spec that has an associated body, then generate a comment
-- giving the name of the corresponding object file.
if not Units.Table (Elab_Order (E)).SAL_Interface
and then Units.Table (Elab_Order (E)).Utype /= Is_Spec
then
Get_Name_String
(ALIs.Table
(Units.Table (Elab_Order (E)).My_ALI).Ofile_Full_Name);
-- If the presence of an object file is necessary or if it exists,
-- then use it.
if not Hostparm.Exclude_Missing_Objects
or else
System.OS_Lib.Is_Regular_File (Name_Buffer (1 .. Name_Len))
then
WBI (" -- " & Name_Buffer (1 .. Name_Len));
if Output_Object_List then
Write_Str (Name_Buffer (1 .. Name_Len));
Write_Eol;
end if;
end if;
end if;
end loop;
if Object_List_Filename /= null then
Close_List_File;
end if;
-- Add a "-Ldir" for each directory in the object path
for J in 1 .. Nb_Dir_In_Obj_Search_Path loop
declare
Dir : constant String_Ptr := Dir_In_Obj_Search_Path (J);
begin
Name_Len := 0;
Add_Str_To_Name_Buffer ("-L");
Add_Str_To_Name_Buffer (Dir.all);
Write_Linker_Option;
end;
end loop;
if not (Opt.No_Run_Time_Mode or Opt.No_Stdlib) then
Name_Len := 0;
if Opt.Shared_Libgnat then
Add_Str_To_Name_Buffer ("-shared");
else
Add_Str_To_Name_Buffer ("-static");
end if;
-- Write directly to avoid inclusion in -K output as -static and
-- -shared are not usually specified linker options.
WBI (" -- " & Name_Buffer (1 .. Name_Len));
end if;
-- Sort linker options
-- This sort accomplishes two important purposes:
-- a) All application files are sorted to the front, and all GNAT
-- internal files are sorted to the end. This results in a well
-- defined dividing line between the two sets of files, for the
-- purpose of inserting certain standard library references into
-- the linker arguments list.
-- b) Given two different units, we sort the linker options so that
-- those from a unit earlier in the elaboration order comes later
-- in the list. This is a heuristic designed to create a more
-- friendly order of linker options when the operations appear in
-- separate units. The idea is that if unit A must be elaborated
-- before unit B, then it is more likely that B references
-- libraries included by A, than vice versa, so we want libraries
-- included by A to come after libraries included by B.
-- These two criteria are implemented by function Lt_Linker_Option. Note
-- that a special case of b) is that specs are elaborated before bodies,
-- so linker options from specs come after linker options for bodies,
-- and again, the assumption is that libraries used by the body are more
-- likely to reference libraries used by the spec, than vice versa.
Sort
(Linker_Options.Last,
Move_Linker_Option'Access,
Lt_Linker_Option'Access);
-- Write user linker options, i.e. the set of linker options that come
-- from all files other than GNAT internal files, Lgnat is left set to
-- point to the first entry from a GNAT internal file, or past the end
-- of the entries if there are no internal files.
Lgnat := Linker_Options.Last + 1;
for J in 1 .. Linker_Options.Last loop
if not Linker_Options.Table (J).Internal_File then
Get_Name_String (Linker_Options.Table (J).Name);
Write_Linker_Option;
else
Lgnat := J;
exit;
end if;
end loop;
-- Now we insert standard linker options that must appear after the
-- entries from user files, and before the entries from GNAT run-time
-- files. The reason for this decision is that libraries referenced
-- by internal routines may reference these standard library entries.
-- Note that we do not insert anything when pragma No_Run_Time has
-- been specified or when the standard libraries are not to be used,
-- otherwise on some platforms, we may get duplicate symbols when
-- linking (not clear if this is still the case, but it is harmless).
if not (Opt.No_Run_Time_Mode or else Opt.No_Stdlib) then
if With_GNARL then
Name_Len := 0;
if Opt.Shared_Libgnat then
Add_Str_To_Name_Buffer (Shared_Lib ("gnarl"));
else
Add_Str_To_Name_Buffer ("-lgnarl");
end if;
Write_Linker_Option;
end if;
Name_Len := 0;
if Opt.Shared_Libgnat then
Add_Str_To_Name_Buffer (Shared_Lib ("gnat"));
else
Add_Str_To_Name_Buffer ("-lgnat");
end if;
Write_Linker_Option;
end if;
-- Write linker options from all internal files
for J in Lgnat .. Linker_Options.Last loop
Get_Name_String (Linker_Options.Table (J).Name);
Write_Linker_Option;
end loop;
if Output_Linker_Option_List and then not Zero_Formatting then
Write_Eol;
end if;
WBI ("-- END Object file/option list ");
end Gen_Object_Files_Options;
---------------------
-- Gen_Output_File --
---------------------
procedure Gen_Output_File
(Filename : String;
Elab_Order : Unit_Id_Array)
is
begin
-- Acquire settings for Interrupt_State pragmas
Set_IS_Pragma_Table;
-- Acquire settings for Priority_Specific_Dispatching pragma
Set_PSD_Pragma_Table;
-- Override time slice value if -T switch is set
if Time_Slice_Set then
ALIs.Table (ALIs.First).Time_Slice_Value := Opt.Time_Slice_Value;
end if;
-- Count number of elaboration calls
for E in Elab_Order'Range loop
if Units.Table (Elab_Order (E)).No_Elab then
null;
else
Num_Elab_Calls := Num_Elab_Calls + 1;
end if;
end loop;
-- Count the number of statically allocated stacks to be generated by
-- the binder. If the user has specified the number of default-sized
-- secondary stacks, use that number. Otherwise start the count at one
-- as the binder is responsible for creating a secondary stack for the
-- main task.
if Opt.Quantity_Of_Default_Size_Sec_Stacks /= -1 then
Num_Sec_Stacks := Quantity_Of_Default_Size_Sec_Stacks;
elsif Sec_Stack_Used then
Num_Sec_Stacks := 1;
end if;
for J in Units.First .. Units.Last loop
Num_Primary_Stacks :=
Num_Primary_Stacks + Units.Table (J).Primary_Stack_Count;
Num_Sec_Stacks :=
Num_Sec_Stacks + Units.Table (J).Sec_Stack_Count;
end loop;
-- Generate output file in appropriate language
Gen_Output_File_Ada (Filename, Elab_Order);
end Gen_Output_File;
-------------------------
-- Gen_Output_File_Ada --
-------------------------
procedure Gen_Output_File_Ada
(Filename : String; Elab_Order : Unit_Id_Array)
is
Ada_Main : constant String := Get_Ada_Main_Name;
-- Name to be used for generated Ada main program. See the body of
-- function Get_Ada_Main_Name for details on the form of the name.
Needs_Library_Finalization : constant Boolean :=
not Configurable_Run_Time_On_Target
and then Has_Finalizer (Elab_Order);
-- For restricted run-time libraries (ZFP and Ravenscar) tasks are
-- non-terminating, so we do not want finalization.
Bfiles : Name_Id;
-- Name of generated bind file (spec)
Bfileb : Name_Id;
-- Name of generated bind file (body)
begin
-- Create spec first
Create_Binder_Output (Filename, 's', Bfiles);
-- We always compile the binder file in Ada 95 mode so that we properly
-- handle use of Ada 2005 keywords as identifiers in Ada 95 mode. None
-- of the Ada 2005 or Ada 2012 constructs are needed by the binder file.
WBI ("pragma Warnings (Off);");
WBI ("pragma Ada_95;");
-- If we are operating in Restrictions (No_Exception_Handlers) mode,
-- then we need to make sure that the binder program is compiled with
-- the same restriction, so that no exception tables are generated.
if Cumulative_Restrictions.Set (No_Exception_Handlers) then
WBI ("pragma Restrictions (No_Exception_Handlers);");
end if;
-- Same processing for Restrictions (No_Exception_Propagation)
if Cumulative_Restrictions.Set (No_Exception_Propagation) then
WBI ("pragma Restrictions (No_Exception_Propagation);");
end if;
-- Same processing for pragma No_Run_Time
if No_Run_Time_Mode then
WBI ("pragma No_Run_Time;");
end if;
-- Generate with of System so we can reference System.Address
WBI ("with System;");
-- Generate with of System.Initialize_Scalars if active
if Initialize_Scalars_Used then
WBI ("with System.Scalar_Values;");
end if;
-- Generate withs of System.Secondary_Stack and System.Parameters to
-- allow the generation of the default-sized secondary stack pool.
if Sec_Stack_Used then
WBI ("with System.Parameters;");
WBI ("with System.Secondary_Stack;");
end if;
Resolve_Binder_Options (Elab_Order);
-- Generate standard with's
if not Suppress_Standard_Library_On_Target then
if CodePeer_Mode then
WBI ("with System.Standard_Library;");
end if;
end if;
WBI ("package " & Ada_Main & " is");
-- Main program case
if Bind_Main_Program then
-- Generate argc/argv stuff unless suppressed
if Command_Line_Args_On_Target
or not Configurable_Run_Time_On_Target
then
WBI ("");
WBI (" gnat_argc : Integer;");
WBI (" gnat_argv : System.Address;");
WBI (" gnat_envp : System.Address;");
-- If the standard library is not suppressed, these variables
-- are in the run-time data area for easy run time access.
if not Suppress_Standard_Library_On_Target then
WBI ("");
WBI (" pragma Import (C, gnat_argc);");
WBI (" pragma Import (C, gnat_argv);");
WBI (" pragma Import (C, gnat_envp);");
end if;
end if;
-- Define exit status. Again in normal mode, this is in the run-time
-- library, and is initialized there, but in the configurable
-- run-time case, the variable is declared and initialized in this
-- file.
WBI ("");
if Configurable_Run_Time_Mode then
if Exit_Status_Supported_On_Target then
WBI (" gnat_exit_status : Integer := 0;");
end if;
else
WBI (" gnat_exit_status : Integer;");
WBI (" pragma Import (C, gnat_exit_status);");
end if;
-- Generate the GNAT_Version and Ada_Main_Program_Name info only for
-- the main program. Otherwise, it can lead under some circumstances
-- to a symbol duplication during the link (for instance when a C
-- program uses two Ada libraries). Also zero terminate the string
-- so that its end can be found reliably at run time.
if not Minimal_Binder then
WBI ("");
WBI (" GNAT_Version : constant String :=");
WBI (" """ & Ver_Prefix &
Gnat_Version_String &
""" & ASCII.NUL;");
WBI (" pragma Export (C, GNAT_Version, ""__gnat_version"");");
WBI ("");
Set_String (" Ada_Main_Program_Name : constant String := """);
Get_Name_String (Units.Table (First_Unit_Entry).Uname);
Set_Main_Program_Name;
Set_String (""" & ASCII.NUL;");
Write_Statement_Buffer;
WBI
(" pragma Export (C, Ada_Main_Program_Name, " &
"""__gnat_ada_main_program_name"");");
end if;
end if;
WBI ("");
WBI (" procedure " & Ada_Init_Name.all & ";");
WBI (" pragma Export (C, " & Ada_Init_Name.all & ", """ &
Ada_Init_Name.all & """);");
-- If -a has been specified use pragma Linker_Constructor for the init
-- procedure and pragma Linker_Destructor for the final procedure.
if Use_Pragma_Linker_Constructor then
WBI (" pragma Linker_Constructor (" & Ada_Init_Name.all & ");");
end if;
if not Cumulative_Restrictions.Set (No_Finalization) then
WBI ("");
WBI (" procedure " & Ada_Final_Name.all & ";");
WBI (" pragma Export (C, " & Ada_Final_Name.all & ", """ &
Ada_Final_Name.all & """);");
if Use_Pragma_Linker_Constructor then
WBI (" pragma Linker_Destructor (" & Ada_Final_Name.all & ");");
end if;
end if;
if Bind_Main_Program then
WBI ("");
if Exit_Status_Supported_On_Target then
Set_String (" function ");
else
Set_String (" procedure ");
end if;
Set_String (Get_Main_Name);
-- Generate argument list if present
if Command_Line_Args_On_Target then
Write_Statement_Buffer;
WBI (" (argc : Integer;");
WBI (" argv : System.Address;");
Set_String
(" envp : System.Address)");
if Exit_Status_Supported_On_Target then
Write_Statement_Buffer;
WBI (" return Integer;");
else
Write_Statement_Buffer (";");
end if;
else
if Exit_Status_Supported_On_Target then
Write_Statement_Buffer (" return Integer;");
else
Write_Statement_Buffer (";");
end if;
end if;
WBI (" pragma Export (C, " & Get_Main_Name & ", """ &
Get_Main_Name & """);");
end if;
-- Generate version numbers for units, only if needed. Be very safe on
-- the condition.
if not Configurable_Run_Time_On_Target
or else System_Version_Control_Used
or else not Bind_Main_Program
then
Gen_Versions;
end if;
Gen_Elab_Order (Elab_Order);
-- Spec is complete
WBI ("");
WBI ("end " & Ada_Main & ";");
Close_Binder_Output;
-- Prepare to write body
Create_Binder_Output (Filename, 'b', Bfileb);
-- We always compile the binder file in Ada 95 mode so that we properly
-- handle use of Ada 2005 keywords as identifiers in Ada 95 mode. None
-- of the Ada 2005/2012 constructs are needed by the binder file.
WBI ("pragma Warnings (Off);");
WBI ("pragma Ada_95;");
-- Output Source_File_Name pragmas which look like
-- pragma Source_File_Name (Ada_Main, Spec_File_Name => "sss");
-- pragma Source_File_Name (Ada_Main, Body_File_Name => "bbb");
-- where sss/bbb are the spec/body file names respectively
Get_Name_String (Bfiles);
Name_Buffer (Name_Len + 1 .. Name_Len + 3) := """);";
WBI ("pragma Source_File_Name (" &
Ada_Main &
", Spec_File_Name => """ &
Name_Buffer (1 .. Name_Len + 3));
Get_Name_String (Bfileb);
Name_Buffer (Name_Len + 1 .. Name_Len + 3) := """);";
WBI ("pragma Source_File_Name (" &
Ada_Main &
", Body_File_Name => """ &
Name_Buffer (1 .. Name_Len + 3));
-- Generate pragma Suppress (Overflow_Check). This is needed for recent
-- versions of the compiler which have overflow checks on by default.
-- We do not want overflow checking enabled for the increments of the
-- elaboration variables (since this can cause an unwanted reference to
-- the last chance exception handler for limited run-times).
WBI ("pragma Suppress (Overflow_Check);");
-- Generate with of System.Restrictions to initialize
-- Run_Time_Restrictions.
if System_Restrictions_Used
and not Suppress_Standard_Library_On_Target
then
WBI ("");
WBI ("with System.Restrictions;");
end if;
-- Generate with of Ada.Exceptions if needs library finalization
if Needs_Library_Finalization then
WBI ("with Ada.Exceptions;");
end if;
-- Generate with of System.Elaboration_Allocators if the restriction
-- No_Standard_Allocators_After_Elaboration was present.
if Cumulative_Restrictions.Set
(No_Standard_Allocators_After_Elaboration)
then
WBI ("with System.Elaboration_Allocators;");
end if;
-- Generate start of package body
WBI ("");
WBI ("package body " & Ada_Main & " is");
WBI ("");
-- Generate externals for elaboration entities
Gen_Elab_Externals (Elab_Order);
-- Generate default-sized secondary stacks pool. At least one stack is
-- created and assigned to the environment task if secondary stacks are
-- used by the program.
if Sec_Stack_Used then
Set_String (" Sec_Default_Sized_Stacks");
Set_String (" : array (1 .. ");
Set_Int (Num_Sec_Stacks);
Set_String (") of aliased System.Secondary_Stack.SS_Stack (");
if Opt.Default_Sec_Stack_Size /= No_Stack_Size then
Set_Int (Opt.Default_Sec_Stack_Size);
else
Set_String ("System.Parameters.Runtime_Default_Sec_Stack_Size");
end if;
Set_String (");");
Write_Statement_Buffer;
WBI ("");
end if;
-- Generate reference
if not CodePeer_Mode then
if not Suppress_Standard_Library_On_Target then
-- Generate Priority_Specific_Dispatching pragma string
Set_String
(" Local_Priority_Specific_Dispatching : " &
"constant String := """);
for J in 0 .. PSD_Pragma_Settings.Last loop
Set_Char (PSD_Pragma_Settings.Table (J));
end loop;
Set_String (""";");
Write_Statement_Buffer;
-- Generate Interrupt_State pragma string
Set_String (" Local_Interrupt_States : constant String := """);
for J in 0 .. IS_Pragma_Settings.Last loop
Set_Char (IS_Pragma_Settings.Table (J));
end loop;
Set_String (""";");
Write_Statement_Buffer;
WBI ("");
end if;
if not Suppress_Standard_Library_On_Target then
-- The B.1(39) implementation advice says that the adainit and
-- adafinal routines should be idempotent. Generate a flag to
-- ensure that. This is not needed if we are suppressing the
-- standard library since it would never be referenced.
WBI (" Is_Elaborated : Boolean := False;");
-- Generate bind environment string
Gen_Bind_Env_String;
end if;
WBI ("");
end if;
-- Generate the adafinal routine unless there is no finalization to do
if not Cumulative_Restrictions.Set (No_Finalization) then
if Needs_Library_Finalization then
Gen_Finalize_Library (Elab_Order);
end if;
Gen_Adafinal;
end if;
Gen_Adainit (Elab_Order);
if Bind_Main_Program then
Gen_Main;
end if;
-- Output object file list and the Ada body is complete
Gen_Object_Files_Options (Elab_Order);
WBI ("");
WBI ("end " & Ada_Main & ";");
Close_Binder_Output;
end Gen_Output_File_Ada;
----------------------
-- Gen_Restrictions --
----------------------
procedure Gen_Restrictions is
Count : Integer;
begin
if Suppress_Standard_Library_On_Target
or not System_Restrictions_Used
then
return;
end if;
WBI (" System.Restrictions.Run_Time_Restrictions :=");
WBI (" (Set =>");
Set_String (" (");
Count := 0;
for J in Cumulative_Restrictions.Set'Range loop
Set_Boolean (Cumulative_Restrictions.Set (J));
Set_String (", ");
Count := Count + 1;
if J /= Cumulative_Restrictions.Set'Last and then Count = 8 then
Write_Statement_Buffer;
Set_String (" ");
Count := 0;
end if;
end loop;
Set_String_Replace ("),");
Write_Statement_Buffer;
Set_String (" Value => (");
for J in Cumulative_Restrictions.Value'Range loop
Set_Int (Int (Cumulative_Restrictions.Value (J)));
Set_String (", ");
end loop;
Set_String_Replace ("),");
Write_Statement_Buffer;
WBI (" Violated =>");
Set_String (" (");
Count := 0;
for J in Cumulative_Restrictions.Violated'Range loop
Set_Boolean (Cumulative_Restrictions.Violated (J));
Set_String (", ");
Count := Count + 1;
if J /= Cumulative_Restrictions.Set'Last and then Count = 8 then
Write_Statement_Buffer;
Set_String (" ");
Count := 0;
end if;
end loop;
Set_String_Replace ("),");
Write_Statement_Buffer;
Set_String (" Count => (");
for J in Cumulative_Restrictions.Count'Range loop
Set_Int (Int (Cumulative_Restrictions.Count (J)));
Set_String (", ");
end loop;
Set_String_Replace ("),");
Write_Statement_Buffer;
Set_String (" Unknown => (");
for J in Cumulative_Restrictions.Unknown'Range loop
Set_Boolean (Cumulative_Restrictions.Unknown (J));
Set_String (", ");
end loop;
Set_String_Replace ("))");
Set_String (";");
Write_Statement_Buffer;
end Gen_Restrictions;
------------------
-- Gen_Versions --
------------------
-- This routine generates lines such as:
-- unnnnn : constant Integer := 16#hhhhhhhh#;
-- pragma Export (C, unnnnn, unam);
-- for each unit, where unam is the unit name suffixed by either B or S for
-- body or spec, with dots replaced by double underscores, and hhhhhhhh is
-- the version number, and nnnnn is a 5-digits serial number.
procedure Gen_Versions is
Ubuf : String (1 .. 6) := "u00000";
procedure Increment_Ubuf;
-- Little procedure to increment the serial number
--------------------
-- Increment_Ubuf --
--------------------
procedure Increment_Ubuf is
begin
for J in reverse Ubuf'Range loop
Ubuf (J) := Character'Succ (Ubuf (J));
exit when Ubuf (J) <= '9';
Ubuf (J) := '0';
end loop;
end Increment_Ubuf;
-- Start of processing for Gen_Versions
begin
WBI ("");
WBI (" type Version_32 is mod 2 ** 32;");
for U in Units.First .. Units.Last loop
if not Units.Table (U).SAL_Interface
and then (not Bind_For_Library
or else Units.Table (U).Directly_Scanned)
then
Increment_Ubuf;
WBI (" " & Ubuf & " : constant Version_32 := 16#" &
Units.Table (U).Version & "#;");
Set_String (" pragma Export (C, ");
Set_String (Ubuf);
Set_String (", """);
Get_Name_String (Units.Table (U).Uname);
for K in 1 .. Name_Len loop
if Name_Buffer (K) = '.' then
Set_Char ('_');
Set_Char ('_');
elsif Name_Buffer (K) = '%' then
exit;
else
Set_Char (Name_Buffer (K));
end if;
end loop;
if Name_Buffer (Name_Len) = 's' then
Set_Char ('S');
else
Set_Char ('B');
end if;
Set_String (""");");
Write_Statement_Buffer;
end if;
end loop;
end Gen_Versions;
------------------------
-- Get_Main_Unit_Name --
------------------------
function Get_Main_Unit_Name (S : String) return String is
Result : String := S;
begin
for J in S'Range loop
if Result (J) = '.' then
Result (J) := '_';
end if;
end loop;
return Result;
end Get_Main_Unit_Name;
-----------------------
-- Get_Ada_Main_Name --
-----------------------
function Get_Ada_Main_Name return String is
Suffix : constant String := "_00";
Name : String (1 .. Opt.Ada_Main_Name.all'Length + Suffix'Length) :=
Opt.Ada_Main_Name.all & Suffix;
Nlen : Natural;
begin
-- For CodePeer, we want reproducible names (independent of other mains
-- that may or may not be present) that don't collide when analyzing
-- multiple mains and which are easily recognizable as "ada_main" names.
if CodePeer_Mode then
Get_Name_String (Units.Table (First_Unit_Entry).Uname);
return
"ada_main_for_" &
Get_Main_Unit_Name (Name_Buffer (1 .. Name_Len - 2));
end if;
-- This loop tries the following possibilities in order
-- <Ada_Main>
-- <Ada_Main>_01
-- <Ada_Main>_02
-- ..
-- <Ada_Main>_99
-- where <Ada_Main> is equal to Opt.Ada_Main_Name. By default,
-- it is set to 'ada_main'.
for J in 0 .. 99 loop
if J = 0 then
Nlen := Name'Length - Suffix'Length;
else
Nlen := Name'Length;
Name (Name'Last) := Character'Val (J mod 10 + Character'Pos ('0'));
Name (Name'Last - 1) :=
Character'Val (J / 10 + Character'Pos ('0'));
end if;
for K in ALIs.First .. ALIs.Last loop
for L in ALIs.Table (K).First_Unit .. ALIs.Table (K).Last_Unit loop
-- Get unit name, removing %b or %e at end
Get_Name_String (Units.Table (L).Uname);
Name_Len := Name_Len - 2;
if Name_Buffer (1 .. Name_Len) = Name (1 .. Nlen) then
goto Continue;
end if;
end loop;
end loop;
return Name (1 .. Nlen);
<<Continue>>
null;
end loop;
-- If we fall through, just use a peculiar unlikely name
return ("Qwertyuiop");
end Get_Ada_Main_Name;
-------------------
-- Get_Main_Name --
-------------------
function Get_Main_Name return String is
begin
-- Explicit name given with -M switch
if Bind_Alternate_Main_Name then
return Alternate_Main_Name.all;
-- Case of main program name to be used directly
elsif Use_Ada_Main_Program_Name_On_Target then
-- Get main program name
Get_Name_String (Units.Table (First_Unit_Entry).Uname);
-- If this is a child name, return only the name of the child, since
-- we can't have dots in a nested program name. Note that we do not
-- include the %b at the end of the unit name.
for J in reverse 1 .. Name_Len - 2 loop
if J = 1 or else Name_Buffer (J - 1) = '.' then
return Name_Buffer (J .. Name_Len - 2);
end if;
end loop;
raise Program_Error; -- impossible exit
-- Case where "main" is to be used as default
else
return "main";
end if;
end Get_Main_Name;
---------------------
-- Get_WC_Encoding --
---------------------
function Get_WC_Encoding return Character is
begin
-- If encoding method specified by -W switch, then return it
if Wide_Character_Encoding_Method_Specified then
return WC_Encoding_Letters (Wide_Character_Encoding_Method);
-- If no main program, and not specified, set brackets, we really have
-- no better choice. If some other encoding is required when there is
-- no main, it must be set explicitly using -Wx.
-- Note: if the ALI file always passed the wide character encoding of
-- every file, then we could use the encoding of the initial specified
-- file, but this information is passed only for potential main
-- programs. We could fix this sometime, but it is a very minor point
-- (wide character default encoding for [Wide_[Wide_]]Text_IO when there
-- is no main program).
elsif No_Main_Subprogram then
return 'b';
-- Otherwise if there is a main program, take encoding from it
else
return ALIs.Table (ALIs.First).WC_Encoding;
end if;
end Get_WC_Encoding;
-------------------
-- Has_Finalizer --
-------------------
function Has_Finalizer (Elab_Order : Unit_Id_Array) return Boolean is
U : Unit_Record;
Unum : Unit_Id;
begin
for E in reverse Elab_Order'Range loop
Unum := Elab_Order (E);
U := Units.Table (Unum);
-- We are only interested in non-generic packages
if U.Unit_Kind = 'p'
and then U.Has_Finalizer
and then not U.Is_Generic
and then not U.No_Elab
then
return True;
end if;
end loop;
return False;
end Has_Finalizer;
----------
-- Hash --
----------
function Hash (Nam : Name_Id) return Header_Num is
begin
return Int (Nam - Names_Low_Bound) rem Header_Num'Last;
end Hash;
----------------------
-- Lt_Linker_Option --
----------------------
function Lt_Linker_Option (Op1 : Natural; Op2 : Natural) return Boolean is
begin
-- Sort internal files last
if Linker_Options.Table (Op1).Internal_File
/=
Linker_Options.Table (Op2).Internal_File
then
-- Note: following test uses False < True
return Linker_Options.Table (Op1).Internal_File
<
Linker_Options.Table (Op2).Internal_File;
-- If both internal or both non-internal, sort according to the
-- elaboration position. A unit that is elaborated later should come
-- earlier in the linker options list.
else
return Units.Table (Linker_Options.Table (Op1).Unit).Elab_Position
>
Units.Table (Linker_Options.Table (Op2).Unit).Elab_Position;
end if;
end Lt_Linker_Option;
------------------------
-- Move_Linker_Option --
------------------------
procedure Move_Linker_Option (From : Natural; To : Natural) is
begin
Linker_Options.Table (To) := Linker_Options.Table (From);
end Move_Linker_Option;
----------------------------
-- Resolve_Binder_Options --
----------------------------
procedure Resolve_Binder_Options (Elab_Order : Unit_Id_Array) is
procedure Check_Package (Var : in out Boolean; Name : String);
-- Set Var to true iff the current identifier in Namet is Name. Do
-- nothing if it doesn't match. This procedure is just a helper to
-- avoid explicitly dealing with length.
-------------------
-- Check_Package --
-------------------
procedure Check_Package (Var : in out Boolean; Name : String) is
begin
if Name_Len = Name'Length
and then Name_Buffer (1 .. Name_Len) = Name
then
Var := True;
end if;
end Check_Package;
-- Start of processing for Resolve_Binder_Options
begin
for E in Elab_Order'Range loop
Get_Name_String (Units.Table (Elab_Order (E)).Uname);
-- This is not a perfect approach, but is the current protocol
-- between the run-time and the binder to indicate that tasking is
-- used: System.OS_Interface should always be used by any tasking
-- application.
Check_Package (With_GNARL, "system.os_interface%s");
-- Ditto for the use of restricted tasking
Check_Package
(System_Tasking_Restricted_Stages_Used,
"system.tasking.restricted.stages%s");
-- Ditto for the use of interrupts
Check_Package (System_Interrupts_Used, "system.interrupts%s");
-- Ditto for the use of dispatching domains
Check_Package
(Dispatching_Domains_Used,
"system.multiprocessors.dispatching_domains%s");
-- Ditto for the use of restrictions
Check_Package (System_Restrictions_Used, "system.restrictions%s");
-- Ditto for the use of System.Secondary_Stack
Check_Package
(System_Secondary_Stack_Package_In_Closure,
"system.secondary_stack%s");
-- Ditto for use of an SMP bareboard runtime
Check_Package (System_BB_CPU_Primitives_Multiprocessors_Used,
"system.bb.cpu_primitives.multiprocessors%s");
-- Ditto for System.Version_Control, which is used for Version and
-- Body_Version attributes.
Check_Package (System_Version_Control_Used,
"system.version_control%s");
end loop;
end Resolve_Binder_Options;
------------------
-- Set_Bind_Env --
------------------
procedure Set_Bind_Env (Key, Value : String) is
begin
-- The lengths of Key and Value are stored as single bytes
if Key'Length > 255 then
Osint.Fail ("bind environment key """ & Key & """ too long");
end if;
if Value'Length > 255 then
Osint.Fail ("bind environment value """ & Value & """ too long");
end if;
Bind_Environment.Set (Name_Find (Key), Name_Find (Value));
end Set_Bind_Env;
-----------------
-- Set_Boolean --
-----------------
procedure Set_Boolean (B : Boolean) is
False_Str : constant String := "False";
True_Str : constant String := "True";
begin
if B then
Statement_Buffer (Stm_Last + 1 .. Stm_Last + True_Str'Length) :=
True_Str;
Stm_Last := Stm_Last + True_Str'Length;
else
Statement_Buffer (Stm_Last + 1 .. Stm_Last + False_Str'Length) :=
False_Str;
Stm_Last := Stm_Last + False_Str'Length;
end if;
end Set_Boolean;
--------------
-- Set_Char --
--------------
procedure Set_Char (C : Character) is
begin
Stm_Last := Stm_Last + 1;
Statement_Buffer (Stm_Last) := C;
end Set_Char;
-------------
-- Set_Int --
-------------
procedure Set_Int (N : Int) is
begin
if N < 0 then
Set_String ("-");
Set_Int (-N);
else
if N > 9 then
Set_Int (N / 10);
end if;
Stm_Last := Stm_Last + 1;
Statement_Buffer (Stm_Last) :=
Character'Val (N mod 10 + Character'Pos ('0'));
end if;
end Set_Int;
-------------------------
-- Set_IS_Pragma_Table --
-------------------------
procedure Set_IS_Pragma_Table is
begin
for F in ALIs.First .. ALIs.Last loop
for K in ALIs.Table (F).First_Interrupt_State ..
ALIs.Table (F).Last_Interrupt_State
loop
declare
Inum : constant Int :=
Interrupt_States.Table (K).Interrupt_Id;
Stat : constant Character :=
Interrupt_States.Table (K).Interrupt_State;
begin
while IS_Pragma_Settings.Last < Inum loop
IS_Pragma_Settings.Append ('n');
end loop;
IS_Pragma_Settings.Table (Inum) := Stat;
end;
end loop;
end loop;
end Set_IS_Pragma_Table;
---------------------------
-- Set_Main_Program_Name --
---------------------------
procedure Set_Main_Program_Name is
begin
-- Note that name has %b on the end which we ignore
-- First we output the initial _ada_ since we know that the main program
-- is a library level subprogram.
Set_String ("_ada_");
-- Copy name, changing dots to double underscores
for J in 1 .. Name_Len - 2 loop
if Name_Buffer (J) = '.' then
Set_String ("__");
else
Set_Char (Name_Buffer (J));
end if;
end loop;
end Set_Main_Program_Name;
---------------------
-- Set_Name_Buffer --
---------------------
procedure Set_Name_Buffer is
begin
for J in 1 .. Name_Len loop
Set_Char (Name_Buffer (J));
end loop;
end Set_Name_Buffer;
-------------------------
-- Set_PSD_Pragma_Table --
-------------------------
procedure Set_PSD_Pragma_Table is
begin
for F in ALIs.First .. ALIs.Last loop
for K in ALIs.Table (F).First_Specific_Dispatching ..
ALIs.Table (F).Last_Specific_Dispatching
loop
declare
DTK : Specific_Dispatching_Record
renames Specific_Dispatching.Table (K);
begin
while PSD_Pragma_Settings.Last < DTK.Last_Priority loop
PSD_Pragma_Settings.Append ('F');
end loop;
for Prio in DTK.First_Priority .. DTK.Last_Priority loop
PSD_Pragma_Settings.Table (Prio) := DTK.Dispatching_Policy;
end loop;
end;
end loop;
end loop;
end Set_PSD_Pragma_Table;
----------------
-- Set_String --
----------------
procedure Set_String (S : String) is
begin
Statement_Buffer (Stm_Last + 1 .. Stm_Last + S'Length) := S;
Stm_Last := Stm_Last + S'Length;
end Set_String;
------------------------
-- Set_String_Replace --
------------------------
procedure Set_String_Replace (S : String) is
begin
Statement_Buffer (Stm_Last - S'Length + 1 .. Stm_Last) := S;
end Set_String_Replace;
-------------------
-- Set_Unit_Name --
-------------------
procedure Set_Unit_Name is
begin
for J in 1 .. Name_Len - 2 loop
if Name_Buffer (J) = '.' then
Set_String ("__");
else
Set_Char (Name_Buffer (J));
end if;
end loop;
end Set_Unit_Name;
---------------------
-- Set_Unit_Number --
---------------------
procedure Set_Unit_Number (U : Unit_Id) is
Num_Units : constant Nat := Nat (Units.Last) - Nat (Unit_Id'First);
Unum : constant Nat := Nat (U) - Nat (Unit_Id'First);
begin
if Num_Units >= 10 and then Unum < 10 then
Set_Char ('0');
end if;
if Num_Units >= 100 and then Unum < 100 then
Set_Char ('0');
end if;
Set_Int (Unum);
end Set_Unit_Number;
---------------------
-- Write_Bind_Line --
---------------------
procedure Write_Bind_Line (S : String) is
begin
-- Need to strip trailing LF from S
WBI (S (S'First .. S'Last - 1));
end Write_Bind_Line;
----------------------------
-- Write_Statement_Buffer --
----------------------------
procedure Write_Statement_Buffer is
begin
WBI (Statement_Buffer (1 .. Stm_Last));
Stm_Last := 0;
end Write_Statement_Buffer;
procedure Write_Statement_Buffer (S : String) is
begin
Set_String (S);
Write_Statement_Buffer;
end Write_Statement_Buffer;
end Bindgen;
|
libsrc/stdio/spectrum/fgetc_cons.asm | andydansby/z88dk-mk2 | 1 | 173785 | ;
; Devilishly simple Spectrum Routines
;
; getkey() Wait for keypress
;
; 17/5/99 djm
;
; 22/3/2000 djm Rechristened getchar
; 1/4/2000 djm Rechristened fgetc_cons
;
;
; $Id: fgetc_cons.asm,v 1.2 2001/04/13 14:14:00 stefano Exp $
;
XLIB fgetc_cons
.fgetc_cons
xor a
ld (23560),a
.getkey1
ld a,(23560)
and a
jr z,getkey1
ld l,a
ld h,0
ret
|
widgets/itunes-now-playing.applescript | zweck/ubersicht-widgets | 0 | 655 | <filename>widgets/itunes-now-playing.applescript
if application "Music" is running then
tell application "Music"
if player state is playing then
return (get artist of current track) & " - " & (get name of current track)
else
return ""
end if
end tell
else
return ""
end if
|
Transynther/x86/_processed/NONE/_xt_sm_/i3-7100_9_0x84_notsx.log_21829_2598.asm | ljhsiun2/medusa | 9 | 172403 | .global s_prepare_buffers
s_prepare_buffers:
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r11
push %r12
push %r13
push %rax
push %rbp
push %rbx
// Load
mov $0xc3f, %r13
nop
nop
and $64904, %rbx
movb (%r13), %r11b
nop
nop
nop
nop
cmp $3981, %r11
// Store
lea addresses_A+0x1a33f, %r12
nop
nop
nop
nop
inc %rax
mov $0x5152535455565758, %r10
movq %r10, (%r12)
nop
nop
nop
nop
inc %rbx
// Store
lea addresses_PSE+0xca3f, %r12
nop
nop
nop
nop
nop
and %rax, %rax
mov $0x5152535455565758, %rbp
movq %rbp, %xmm1
movups %xmm1, (%r12)
nop
nop
nop
cmp %rax, %rax
// Store
lea addresses_PSE+0x1f37f, %r13
nop
nop
nop
sub %r11, %r11
mov $0x5152535455565758, %rax
movq %rax, %xmm7
movups %xmm7, (%r13)
and %rbp, %rbp
// Faulty Load
lea addresses_PSE+0xca3f, %r13
nop
nop
xor $55641, %r11
mov (%r13), %eax
lea oracles, %rbp
and $0xff, %rax
shlq $12, %rax
mov (%rbp,%rax,1), %rax
pop %rbx
pop %rbp
pop %rax
pop %r13
pop %r12
pop %r11
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'src': {'type': 'addresses_PSE', 'same': False, 'size': 32, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_P', 'same': False, 'size': 1, 'congruent': 9, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'dst': {'type': 'addresses_A', 'same': False, 'size': 8, 'congruent': 7, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'dst': {'type': 'addresses_PSE', 'same': True, 'size': 16, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'dst': {'type': 'addresses_PSE', 'same': False, 'size': 16, 'congruent': 6, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
[Faulty Load]
{'src': {'type': 'addresses_PSE', 'same': True, 'size': 4, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'58': 21829}
58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58
*/
|
Tools/Product.agda | CoqHott/logrel-mltt | 2 | 8625 | -- Σ type (also used as existential) and
-- cartesian product (also used as conjunction).
{-# OPTIONS --safe #-}
import Tools.PropositionalEquality as PE
module Tools.Product where
infixr 4 _,_
infixr 2 _×_
-- Dependent pair type (aka dependent sum, Σ type).
record Σ (A : Set) (B : A → Set) : Set where
constructor _,_
field
proj₁ : A
proj₂ : B proj₁
open Σ public
-- Existential quantification.
∃ : {A : Set} → (A → Set) → Set
∃ = Σ _
∃₂ : {A : Set} {B : A → Set}
(C : (x : A) → B x → Set) → Set
∃₂ C = ∃ λ a → ∃ λ b → C a b
-- Cartesian product.
_×_ : (A B : Set) → Set
A × B = Σ A (λ x → B)
×-eq : ∀ {A B : Set} {x x' : A} {y y' : B} → x PE.≡ x' × y PE.≡ y' → (x , y) PE.≡ ( x' , y' )
×-eq ( PE.refl , PE.refl ) = PE.refl
|
asm/kernel/basic/parser.asm | majacQ/retroputer | 58 | 2958 | <reponame>majacQ/retroputer
.segment __current__ kmemmap.basic.code-start .append {
peektok: {
push x
push y
x := [bdata.current-line-aptr]
y := 0
_main:
dl := <bdata.current-line-ptr>,y
inc y
cmp dl, constants.SPACE # eat SPACEs
brs z _main
_out:
pop y
pop x
ret
}
#
# gettok returns the next token, and advances
#
# @returns DL: next token
#
#######################################################################
gettok: {
push x
_main:
dl := <bdata.current-line-ptr>
x := [bdata.current-line-aptr]
inc x
[bdata.current-line-aptr] := x
cmp dl, constants.SPACE # eat SPACEs
brs z _main
_out:
pop x
ret
}
gettok-raw: {
push x
_main:
dl := <bdata.current-line-ptr>
x := [bdata.current-line-aptr]
inc x
[bdata.current-line-aptr] := x
_out:
pop x
ret
}
backtok: {
push d
push x
_main:
x := [bdata.current-line-aptr]
dec x
[bdata.current-line-aptr] := x
dl := <bdata.current-line-ptr>
cmp dl, constants.SPACE # go back before the space
brs z _main
_out:
pop x
pop d
ret
}
gettok-word: {
push x
_main:
d := <bdata.current-line-ptr>
x := [bdata.current-line-aptr]
inc x
inc x
[bdata.current-line-aptr] := x
_out:
pop x
ret
}
} |
samples/sms/common/character_cntrl.asm | 0x8BitDev/MAPeD-SPReD | 23 | 173593 | <filename>samples/sms/common/character_cntrl.asm
;###############################################
;
; Copyright 2018-2020 0x8BitDev ( MIT license )
;
;###############################################
;
; Simple character controller
;
.define _player_move_speed 2
.define _player_jump_speed 5
.define _player_jump_height 50
; CHARACTER BIT FLAGS:
; 0-dir(1-right/0-left)
; 1-jump up
; 2-jump down
; constants
.define _PLAYER_FLAG_DIR_MASK %00000001
.define _PLAYER_FLAG_JUMP_UP %00000010
.define _PLAYER_FLAG_JUMP_DOWN %00000100
.define _PLAYER_FLAG_JUMP_MASK _PLAYER_FLAG_JUMP_UP|_PLAYER_FLAG_JUMP_DOWN
.define _PLAYER_FLAG_JUMP_MASK_INV $ff ~ _PLAYER_FLAG_JUMP_MASK
.define _PLAYER_FLAG_DIR_MASK_INV $ff ~ _PLAYER_FLAG_DIR_MASK
.define _STATE_IDLE 0
.define _STATE_RUN_LEFT 1
.define _STATE_RUN_RIGHT 2
.define _STATE_SHOOT_LEFT 4
.define _STATE_SHOOT_RIGHT 8
.define _STATE_DUCK_LEFT 16
.define _STATE_DUCK_RIGHT 32
.define _RUN_MASK JPAD1_LEFT|JPAD1_RIGHT
.define _SHOOT_MASK _STATE_SHOOT_LEFT|_STATE_SHOOT_RIGHT
.define _DUCK_MASK _STATE_DUCK_LEFT|_STATE_DUCK_RIGHT
.define PLAYER_FLAG_DIR_RIGHT 1
.define PLAYER_FLAG_DIR_LEFT 0
; MACROSES
.macro _init_anm
ld hl, player_anm
ld de, \1
call _player_anm_init
.endm
.macro _init_jump_anm
ld hl, player_anm
ld de, \1
ld a, 1 ; skip X/Y
call anm_init
.endm
;*** player data init ***
; IN:
; B - Y coord
; C - X coord
; A - player direction PLAYER_DIR_RIGHT/PLAYER_DIR_LEFT
player_init:
ld (player_flags), a
xor a
ld (player_jump_max_height), a
ld a,$ff
ld (player_state), a
ld hl, player_anm
ld (hl), b
inc hl
ld (hl), c
jp _set_state_idle
; *** character controller update ***
player_update:
; DUCK
ld a, (player_state)
and _DUCK_MASK
jr z, _cont1 ; if( state & _DUCK_MASK != 0 && cntrl_state == CNTRL_DUCK )
JPAD1_CHECK_DOWN
jr z, _cont1 ; if( cntrl_state & CNTRL_DUCK == CNTRL_DUCK ) {\1
jp _update_player_anm
_cont1:
; DUCK
; SHOOT
ld a, (player_state)
and _SHOOT_MASK
jr z, _cont2 ; if( state & _SHOOT_MASK != 0 && cntrl_state == CNTRL_SHOOT )
JPAD1_CHECK_SW2
jr z, _cont2 ; if( cntrl_state & CNTRL_SHOOT == CNTRL_SHOOT ) {\1
jp _update_player_anm
_cont2:
; SHOOT
ld a, (JPAD_STATE)
and _RUN_MASK
jr nz, _player_check_cntrl_left ; if( cntrl_state & RUN_MASK == 0 ) {/1
ld a, (player_state)
cp _STATE_IDLE
jr z, _cont3 ; if( state != STATE_IDLE ) {/2
call _set_state_idle
_cont3:
jp _check_jump
_player_check_cntrl_left: ;/1} else
JPAD1_CHECK_LEFT ; if( cntrl_state & CNTRL_RUN_LEFT == CNTRL_RUN_LEFT )
jr z, _player_check_cntrl_right
ld a, (player_state)
and _STATE_RUN_LEFT
jr nz, _set_state_run_left ; if( state != STATE_RUN_LEFT )
_init_anm player_run_left ; init_anm( run_left );
_set_state_run_left:
ld a, _STATE_RUN_LEFT
ld (player_state), a ; state = STATE_RUN_LEFT
ld a, (player_flags)
and _PLAYER_FLAG_DIR_MASK_INV
ld (player_flags), a ; player_flags &= ~DIR_RIGHT;
ld a,(player_anm + 1) ; X
sub _player_move_speed ; player_pos_x -= move_speed;
ld (player_anm + 1), a
jp _check_jump
_player_check_cntrl_right:
JPAD1_CHECK_RIGHT ; if( cntrl_state & CNTRL_RUN_RIGHT == CNTRL_RUN_RIGHT )
jr z, _check_jump
ld a, (player_state)
and _STATE_RUN_RIGHT
jr nz, _set_state_run_right ; if( state != STATE_RUN_RIGHT )
_init_anm player_run_right ; init_anm( run_right );
_set_state_run_right:
ld a, _STATE_RUN_RIGHT
ld (player_state), a ; state = STATE_RUN_RIGHT
ld a, (player_flags)
or PLAYER_FLAG_DIR_RIGHT
ld (player_flags), a ; player_flags |= DIR_RIGHT;
ld a,(player_anm + 1) ; X
add _player_move_speed ; player_pos_x += move_speed;
ld (player_anm + 1), a
_check_jump:
; JUMP
ld a, (player_flags)
and _PLAYER_FLAG_JUMP_MASK
jr z, _check_duck
jp _update_jump ; if( jump_flag == JUMP_NONE ) {\1
; DUCK
_check_duck:
JPAD1_CHECK_DOWN ; if( cntrl_state & CNTRL_DOWN == CNTRL_DOWN ) {\1
jr z, _cont_check_shoot
ld a, (player_state)
and _DUCK_MASK
jr nz, _cont_check_shoot ; if( state & _DUCK_MASK != 0 ) {\2
ld a, (player_flags)
and PLAYER_FLAG_DIR_RIGHT
jr z, _duck_left ; if( player_flags & DIR_RIGHT )
_init_anm player_duck_right ; init_anm( duck_right );
ld a, _STATE_DUCK_RIGHT
ld (player_state), a ; state = STATE_DUCK_RIGHT
jp _update_player_anm
_duck_left:
_init_anm player_duck_left ; init_anm( duck_left );
ld a, _STATE_DUCK_LEFT
ld (player_state), a ; state = STATE_DUCK_LEFT
jp _update_player_anm
;\2}
;\1}
_cont_check_shoot:
; DUCK
; SHOOT
JPAD1_CHECK_SW2
jr z, _cont_check_jump ; if( cntrl_state & CNTRL_SHOOT == CNTRL_SHOOT ) {\1
ld a, (player_state)
and _SHOOT_MASK
jr nz, _cont_check_jump ; if( state & _SHOOT_MASK != 0 ) {\2
ld a, (player_flags)
and PLAYER_FLAG_DIR_RIGHT
jr z, _shoot_left ; if( player_flags & DIR_RIGHT )
_init_anm player_shoot_right ; init_anm( shoot_right );
ld a, _STATE_SHOOT_RIGHT
ld (player_state), a ; state = STATE_SHOOT_RIGHT
jp _update_player_anm
_shoot_left:
_init_anm player_shoot_left ; init_anm( shoot_left );
ld a, _STATE_SHOOT_LEFT
ld (player_state), a ; state = STATE_SHOOT_LEFT
jp _update_player_anm
;\2}
;\1}
_cont_check_jump:
; SHOOT
JPAD1_CHECK_SW1
jr z, _update_jump ; if( cntrl_state & CNTRL_JUMP == true ) {\2
ld a, (player_flags)
and _PLAYER_FLAG_JUMP_MASK_INV ; player_flags &= ~JUMP_MASK;
or _PLAYER_FLAG_JUMP_UP
ld (player_flags), a ; player_flags |= JUMP_UP;
ld a,(player_anm) ; A <- anm_Y
sub _player_jump_height
ld (player_jump_max_height), a ; player_jump_max_height = player_pos_y - jump_height;
;/1}
;/2}
_update_jump:
ld a, (player_flags)
ld c, a
and _PLAYER_FLAG_JUMP_MASK
jr z, _update_player_anm ; if( jump_flag == JUMP_NONE ) {\1
ld a, PLAYER_FLAG_DIR_RIGHT
and c ; if( player_flags & DIR_RIGHT )
jr z, _set_jump_left
_init_jump_anm player_jump_right ; init_anm( jump_right );
jp _jump_continue
_set_jump_left:
_init_jump_anm player_jump_left ; else init_anm( jump_left );
_jump_continue:
ld a, (player_flags)
and _PLAYER_FLAG_JUMP_UP
jr z, _jump_down ; if( jump_flag == JUMP_UP )
ld a, (player_jump_max_height)
ld c, a
ld a, (player_anm) ; A <- anm_Y
sub _player_jump_speed
ld (player_anm), a ; player_pos_y -= jump_delta;
sub c
jr nc, _update_player_anm ; if( player_pos_y >= player_jump_max_height )
ld a, (player_jump_max_height)
ld (player_anm), a ; player_pos_y = player_jump_max_height;
ld a, (player_flags)
and _PLAYER_FLAG_JUMP_MASK_INV ; player_flags &= ~JUMP_MASK;
or _PLAYER_FLAG_JUMP_DOWN ; player_flags |= JUMP_DOWN;
ld (player_flags), a
jp _update_player_anm
_jump_down:
ld a, (player_anm)
add _player_jump_speed
ld (player_anm), a ; player_pos_y += jump_delta;
ld c, a
ld a, (player_jump_max_height)
add _player_jump_height ; var ground_pos = jump_max_height + jump_height;
ld b, a
sub c
jr nc, _update_player_anm
ld a, b
ld (player_anm), a ; player_pos_y = ground_pos;
ld a, (player_flags)
and _PLAYER_FLAG_JUMP_MASK_INV ; player_flags &= ~JUMP_MASK;
ld (player_flags), a
call _set_state_idle_forced ; set IDLE state to have a continuous jump with a landing phase
_update_player_anm:
ld hl, player_anm
call anm_update
ret
;*** set new animation if player isn't jumping ***
_player_anm_init:
ld a, (player_flags)
and _PLAYER_FLAG_JUMP_MASK
jp nz, _player_ignore_anm
ld a, 1 ; skip X/Y
jp anm_init
_player_ignore_anm:
ret
;*** set the STATE_IDLE ***
_set_state_idle:
ld a, (player_state)
cp _STATE_IDLE
jr z, _set_state_idle_exit
_set_state_idle_forced:
ld a, _STATE_IDLE
ld (player_state), a
ld a, (player_flags)
and PLAYER_FLAG_DIR_RIGHT
jr z, __init_idle_left
_init_anm player_idle_right ;init_anm( idle_right );
_set_state_idle_exit:
ret
__init_idle_left:
_init_anm player_idle_left ;init_anm( idle_left );
ret |
src/examples/asm/output.asm | fourstix/PicoElfPixieVideoGLCDV2 | 0 | 168595 | ; -------------------------------------------------------------------
; Output data byte to port 4
; -------------------------------------------------------------------
; Based on software written by <NAME>
; Thanks to the author for making this code available.
; Original author copyright notice:
; *******************************************************************
; *** This software is copyright 2004 by <NAME> ***
; *** You have permission to use, modify, copy, and distribute ***
; *** this software so long as this copyright notice is retained. ***
; *** This software may not be used in commercial applications ***
; *** without express written permission from the author. ***
; *******************************************************************
; Uncomment the line below to assemble a ROM program
; Comment out to assemble a stand alone program
;#DEFINE _ROM_ 1
include bios.inc
include kernel.inc
#IFDEF _ROM_
; ***************************************************
; *** This block generates the ROM package header ***
; ***************************************************
org 8000h ;
lbr 0ff00h ; Long branch for Pico/Elf
db 'output',0 ; Program filename
dw 9000h ; Where in Rom image to find program
dw endrom-2000h+9000h ; last address of image
; *******************************************************
; **** Next block is the execution header, this is ****
; **** part of the package header and written to the ****
; **** actual file when saved to disk ****
; *******************************************************
dw 2000h ; Exec header, where program loads
dw endrom-2000h ; Length of program to load
dw 2000h ; Execution address
db 0 ; Zero marks end of package header
; *********************************
; ***** End of package header *****
; *********************************
org 2000h
#ENDIF
#IFNDEF _ROM_
; ************************************************************
; This block generates the Execution header
; It occurs 6 bytes before the program start.
; ************************************************************
org 02000h-6 ; Header starts at 01ffah
dw 02000h ; Program load address
dw endrom-2000h ; Program size
dw 02000h ; Program execution address
#ENDIF
br start ; Jump past build information
; Build date
date: db 80H+1 ; Month, 80H offset means extended info
db 1 ; Day
dw 2021 ; Year
; Current build number
build: dw 2
; Must end with 0 (null)
db 'Copyright 2021 <NAME>',0
start: lda ra ; move past any spaces
smi ' '
lbz start
dec ra ; move back to non-space character
ldn ra ; check for nonzero byte
lbnz good ; jump if non-zero
sep scall ; otherwise display usage
dw f_inmsg
db 'Usage: output hh, where hh is a hexadecimal number',13,10,0
sep sret ; return to os
good: ghi ra ; copy argument address to rf
phi rf
glo ra
plo rf
sep scall ; convert input to hex value
dw f_hexin
glo rd ; get the hexadecimal byte value
str r2 ; put it on the stack
out 4 ; output to port 4, increments stack
dec r2 ; back stack up to old location
lbr o_wrmboot ; return to Elf/OS
;------ define end of execution block
endrom: equ $
|
Automate2StepAuth.applescript | albertw1/Automating-2-Step-Verification-with-Cyberduck- | 1 | 2726 | <reponame>albertw1/Automating-2-Step-Verification-with-Cyberduck-
tell application "System Events"
repeat while "Cyberduck" is in (name of application processes)
try
tell process "Cyberduck" to set myValues to value of every static text of every sheet of front window
if {{"Provide additional login credentials.", "Verification code."}} is in myValues then
set totp to do shell script "/usr/local/bin/oathtool --totp --base32 $(sed -n '/^secret=/s///p' ~/.JAuth.rc)"
tell application "System Events" to keystroke totp
repeat while value of text field 1 of sheet 1 of front window of process "Cyberduck" is ""
delay 1.0E-3
end repeat
tell application "System Events" to key code 36
else
delay 0.3
end if
end try
end repeat
end tell |
Transynther/x86/_processed/NONE/_zr_/i9-9900K_12_0xca.log_21829_1208.asm | ljhsiun2/medusa | 9 | 241539 | <filename>Transynther/x86/_processed/NONE/_zr_/i9-9900K_12_0xca.log_21829_1208.asm
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r13
push %r14
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_normal_ht+0x6d80, %rsi
nop
nop
nop
nop
nop
add $49401, %rdi
mov $0x6162636465666768, %r11
movq %r11, %xmm4
vmovups %ymm4, (%rsi)
nop
nop
nop
nop
xor %r14, %r14
lea addresses_normal_ht+0x91e5, %r13
nop
nop
nop
nop
nop
and %rdx, %rdx
vmovups (%r13), %ymm0
vextracti128 $1, %ymm0, %xmm0
vpextrq $1, %xmm0, %r12
nop
nop
add $3413, %rdx
lea addresses_normal_ht+0x52f1, %rsi
lea addresses_A_ht+0xc919, %rdi
nop
nop
nop
nop
sub %r11, %r11
mov $124, %rcx
rep movsb
nop
xor $10388, %r11
lea addresses_UC_ht+0x4ae0, %r11
dec %rsi
mov $0x6162636465666768, %rdi
movq %rdi, %xmm6
movups %xmm6, (%r11)
nop
nop
nop
add %r11, %r11
lea addresses_A_ht+0x15bf1, %rsi
lea addresses_D_ht+0xc3f1, %rdi
nop
nop
nop
nop
nop
and $42005, %rdx
mov $100, %rcx
rep movsl
nop
nop
nop
nop
nop
and %rcx, %rcx
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %r14
pop %r13
pop %r12
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r12
push %r13
push %r15
push %rax
push %rdx
// Faulty Load
lea addresses_UC+0x5bf1, %r13
nop
xor $23600, %rdx
mov (%r13), %r15w
lea oracles, %r13
and $0xff, %r15
shlq $12, %r15
mov (%r13,%r15,1), %r15
pop %rdx
pop %rax
pop %r15
pop %r13
pop %r12
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'size': 32, 'NT': False, 'type': 'addresses_UC', 'same': False, 'AVXalign': False, 'congruent': 0}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'size': 2, 'NT': False, 'type': 'addresses_UC', 'same': True, 'AVXalign': False, 'congruent': 0}}
<gen_prepare_buffer>
{'OP': 'STOR', 'dst': {'size': 32, 'NT': False, 'type': 'addresses_normal_ht', 'same': False, 'AVXalign': False, 'congruent': 0}}
{'OP': 'LOAD', 'src': {'size': 32, 'NT': False, 'type': 'addresses_normal_ht', 'same': False, 'AVXalign': False, 'congruent': 2}}
{'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_normal_ht', 'congruent': 8}, 'dst': {'same': False, 'type': 'addresses_A_ht', 'congruent': 3}}
{'OP': 'STOR', 'dst': {'size': 16, 'NT': False, 'type': 'addresses_UC_ht', 'same': False, 'AVXalign': False, 'congruent': 0}}
{'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_A_ht', 'congruent': 11}, 'dst': {'same': False, 'type': 'addresses_D_ht', 'congruent': 11}}
{'00': 21829}
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
*/
|
MUniverse.agda | amal029/agda-tutorial-dybjer | 1 | 2296 | module MUniverse where
-- This is universe polymorphism and extensional equality module
open import Sec2
-- import Data.List
data _≃₀_ {A : Set} (a : A) (b : A) : Set where
a≃b : (a ≡ b) → a ≃₀ b
data _≃₁_ {A : Set} (f : A → A) (g : A → A) : Set where
f≃g : ((x y : A) → (x ≃₀ y) → (f x ≃₀ g y)) → f ≃₁ g
B==B : 1 ≃₀ 1
B==B = a≃b refl
B==B1 : T ≃₀ T
B==B1 = a≃b refl
-- This is the same as + for natural numbers
_⋆_ : (x y : ℕ) → ℕ
Z ⋆ y = y
(S x) ⋆ y = S (x ⋆ y)
-- Proof that + and ⋆ are equivalent functions!
+==⋆ : (x : ℕ) → ((_+_) x) ≃₁ ((_⋆_) x)
+==⋆ x = f≃g (λ x₁ y x₂ → a≃b (prove x x₁ y x₂))
where
fcong : (x y : ℕ) → (p : (x + y) ≡ (x ⋆ y)) → S (x + y) ≡ S (x ⋆ y)
fcong x y p with (x + y) | (x ⋆ y)
fcong x y refl | m | .m = refl
prove' : (x y : ℕ) → (x + y) ≡ (x ⋆ y)
prove' Z y = refl
prove' (S x) y with (prove' x y)
prove' (S x) y | p = fcong x y p
prove : (x y z : ℕ) → (p : y ≃₀ z) → (x + y) ≡ (x ⋆ z)
prove x y .y (a≃b refl) = prove' x y
elim≃₁ : {A : Set} → (f g : A → A) (a : f ≃₁ g)
→ (x y : A) → (p : x ≃₀ y)
→ (f x ≃₀ g y)
elim≃₁ f g (f≃g a) x .x (a≃b refl) = a x x (a≃b refl)
-- Theorem that ≃₁ is a partial equivalence relation
≃₁-symmetric : {A : Set} → {f g : A → A} → (f ≃₁ g) → (g ≃₁ f)
≃₁-symmetric {A} {f} {g} (f≃g x) = f≃g (λ x₁ y x₂ → a≃b (prove x₁ y x₂ (f≃g x)))
where
prove : (z y : A) → (p : z ≃₀ y) → (f ≃₁ g) → (g z ≡ f y)
prove z .z (a≃b refl) (f≃g x) with (x z z (a≃b refl) )
prove z .z (a≃b refl) (f≃g x₁) | a≃b p with (f z) | (g z)
prove z .z (a≃b refl) (f≃g x₁) | a≃b refl | m | .m = refl
≃₁-transitive : {A : Set} → {f g h : A → A}
→ (f ≃₁ g) → (g ≃₁ h) → (f ≃₁ h)
≃₁-transitive {A} {f} {g} {h} (f≃g x) (f≃g y) = f≃g (λ x₁ y₁ x₂ → a≃b (prove x₁ y₁ x₂ (f≃g x) (f≃g y)))
where
prove : (x y : A) (p : x ≃₀ y)
→ (f ≃₁ g)
→ (g ≃₁ h)
→ (f x ≡ h y)
prove x₁ .x₁ (a≃b refl) (f≃g x₂) (f≃g x₃) with (x₂ x₁ x₁ (a≃b refl)) | (x₃ x₁ x₁ (a≃b refl))
prove x₁ .x₁ (a≃b refl) (f≃g x₂) (f≃g x₃) | a≃b x₄ | a≃b x₅ with (f x₁) | (g x₁) | (h x₁)
prove x₁ .x₁ (a≃b refl) (f≃g x₂) (f≃g x₃) | a≃b refl | a≃b refl | p1 | .p1 | .p1 = refl
|
oeis/116/A116081.asm | neoneye/loda-programs | 22 | 166394 | ; A116081: Final nonzero digit of n^n.
; 1,4,7,6,5,6,3,6,9,1,1,6,3,6,5,6,7,4,9,6,1,4,7,6,5,6,3,6,9,9,1,6,3,6,5,6,7,4,9,6,1,4,7,6,5,6,3,6,9,5,1,6,3,6,5,6,7,4,9,6,1,4,7,6,5,6,3,6,9,9,1,6,3,6,5,6,7,4,9,6,1,4,7,6,5,6,3,6,9,1,1,6,3,6,5,6,7,4,9,1
add $0,1
mov $2,$0
pow $2,$0
lpb $2
dif $2,10
lpe
mov $0,$2
mod $0,10
|
programs/oeis/270/A270204.asm | neoneye/loda | 22 | 101637 | <gh_stars>10-100
; A270204: a(n) = n^12 - n^10 + n^8 - n^6 + n^4 - n^2 + 1.
; 1,1,3277,478297,15790321,234750601,2117950381,13564461457,67662254017,278985273841,990099009901,3112703553961,8854610100337,23161037562937,56406126018061,129172239050401,280379743338241,580613195032417,1153271900252557,2207200789455481,4085785536159601,7339185367695721,12828497470985197,21873276084035377,36457053939633601,59509429687890001,95287998084633901,149889026207551177,231922445643238897,353394575624464921,530851165371809101,786844007506025281,1151796703138937857,1666359341086055617,2384358090189476941,3376464210741749401,4734727998816357361,6578146931383217737,9059464041430293037,12373422597984062161,16766736789506558401,22550075621233982641,30112398965684078317,39938030996831623657,52626907456810228081,68918489732841348601,89719900964214868621,116138907777225072097,149522446203034334977,191501472333363847201,244043007796881247501,309510347702148847801,390732504820266366577,491084079023894579497,614576865934418407021,765964653954547647601,950862805002798367681,1175884371966853994257,1448794675827726124717,1778686448274501260041,2176177842154956956401,2653635823041729740761,3225427681315351602637,3908203646280218603137,4721213842771312373761,5686663107340661846401,6830107476324486894541,8180896472805544704217,9772665654651178262257,11643884242407135580681,13838463024872475005101,16406428142715257621521,19404666777587567426497,22897751226969341214577,26958848324553992328301,31670721673558625385001,37126834697105282329201,43432563077018901761977,50706525751299009187597,59082044272457287929121,68708740995219496953601,79754287264151255290081,92406313511003199318157,106874493949439257773817,123392819372807200310641,142222072420266199943401,163652520579473468391661,188006843141761675567537,215643309319960967180737,246959225781424061265361,282394672941130724601901,322436550503750447386441,367622953941042326597617,418547904843823925480857,475866459397843480200781,540300220602182427441601,612643281279281330641921,693768626419349218360897,784635024960855754361677,886294442735133960389401
pow $0,2
mov $1,$0
pow $0,7
mov $2,2
add $2,$1
sub $2,1
div $0,$2
div $0,252
mul $0,252
add $0,1
|
encapsulation/rle.asm | jephthai/EvilVM | 141 | 19519 | BITS 64
default rel
global main
%include "defines.asm"
section .text
main: xor edi, edi
mov esi, edi
mov edx, edi
;; final length of shellcode
mov di, orig_len
mov si, short_len
base: lea rbx, [$ + code - base]
mov ecx, esi ; get count for total bytes to process
add rsi, rbx ; put source register at end of code
add rdi, rbx ; end of final
add rdi, slack - 1
loop: dec rsi ; move window
mov al, [rsi] ; get a byte
and al, al ; test for zeros
jz repl ; found some
mov [rdi], al ;
dec rdi ; ...
loop loop ;
xor ecx, ecx
jmp code + slack ;
repl:
dec rsi
mov ah, [rsi] ; get count for zeros
dec rcx
.lp: and ah, ah ; check for end
jz .done ; ...
mov BYTE [rdi], 0 ; write a zero
dec rdi
dec ah ; tick the loop counter
jmp .lp ; ...
.done: loop loop
xor ecx, ecx
jmp code + slack
%include "rled.asm"
|
FormulaLexer.g4 | langhaoabcd/h-formula-editor | 0 | 7471 | <filename>FormulaLexer.g4
lexer grammar FormulaLexer;
channels {
ERROR
}
OpenParen: '(';
CloseParen: ')';
OpenBrace: '{';
CloseBrace: '}';
Comma: ',';
Plus: '+';
Minus: '-';
Multiply: '*';
Divide: '/';
EQ: '=';
NE: '<>';
GT: '>';
GTE: '>=';
LT: '<';
LTE: '<=';
//Connect: '_';
/// Boolean Literals
BooleanLiteral: 'true' | 'false';
/// Function Literals
FunctionLiteral:
'DATE' //日期函数开始
| 'DATEVALUE'
| 'DAY'
| 'DAYS'
| 'DAYS360'
| 'EDATE'
| 'EOMONTH'
| 'HOUR'
| 'MINUTE'
| 'ISOWEEKNUM'
| 'MONTH'
| 'NOW'
| 'SECOND'
| 'TIME'
| 'TIMEVALUE'
| 'TODAY'
| 'WEEKDAY'
| 'YEAR'
| 'WEEKNUM' //日期函数结束
| 'AND' //逻辑函数开始
| 'IF'
| 'NOT'
| 'OR'
| 'SWITCH' //逻辑函数结束
| 'ABS' //数字函数开始
| 'CEILING'
| 'CEILINGMATH' //no
| 'EXP'
| 'FLOOR'
| 'FLOORMATH' //no
| 'LN'
| 'LOG'
| 'LOG10'
| 'MAX'
| 'MIN'
| 'MOD'
| 'ROUND'
| 'ROUNDDOWN'
| 'ROUNDUP'
| 'SQRT'
| 'AVERAGE' //avg
| 'SUM'
| 'COUNT'
| 'COUNTA'
| 'POWER' //数字函数结束
| 'CONCATENATE' //字符串开始
| 'EXACT'
| 'FIND'
| 'LEFT'
| 'LEN'
| 'LOWER'
| 'MID'
| 'NUMBERVALUE'
| 'PROPER'
| 'REPT'
| 'RIGHT'
| 'SEARCH'
| 'SPLIT' //no
| 'SUBSTITUTE'
| 'TRIM'
| 'UPPER' //字符串结束
| 'ISBLANK'
| 'INCLUDES';
/// Field Literals
FieldLiteral: Field;
/// Numeric Literals
DecimalLiteral:
DecimalIntegerLiteral '.' [0-9]*
| '.' [0-9]+
| DecimalIntegerLiteral;
/// String Literals
StringLiteral:
'"' DoubleStringCharacter* '"'
| '\'' SingleStringCharacter* '\'';
WhiteSpaces: [\t\u000B\u000C\u0020\u00A0]+ -> channel(HIDDEN);
/// UnexpectedCharacter: . -> channel(ERROR);
/// Fragment rules
fragment DoubleStringCharacter:
~["\\\r\n]
| '\\' EscapeSequence
| LineContinuation;
fragment SingleStringCharacter:
~['\\\r\n]
| '\\' EscapeSequence
| LineContinuation;
fragment EscapeSequence:
CharacterEscapeSequence
| '0' // no digit ahead! TODO
| HexEscapeSequence
| UnicodeEscapeSequence
| ExtendedUnicodeEscapeSequence;
fragment CharacterEscapeSequence:
SingleEscapeCharacter
| NonEscapeCharacter;
fragment HexEscapeSequence: 'x' HexDigit HexDigit;
fragment UnicodeEscapeSequence:
'u' HexDigit HexDigit HexDigit HexDigit;
fragment ExtendedUnicodeEscapeSequence: 'u' '{' HexDigit+ '}';
fragment SingleEscapeCharacter: ['"\\bfnrtv];
fragment NonEscapeCharacter: ~['"\\bfnrtv0-9xu\r\n];
fragment EscapeCharacter: SingleEscapeCharacter | [0-9] | [xu];
fragment LineContinuation: '\\' [\r\n\u2028\u2029];
fragment HexDigit: [0-9a-fA-F];
fragment DecimalIntegerLiteral: '0' | '-'? [0-9] [0-9]*;
//'!'
fragment Field:
FieldPathSegment FieldPathSubSegment*
| FieldPathSegment '[' DecimalIntegerLiteral ']' FieldPathSubSegment*
| '$' FieldPathSegment FieldPathSubSegment*
| '$' FieldPathSegment '[' DecimalIntegerLiteral ']' FieldPathSubSegment*;
//'{!' FieldPathSegment FieldPathSubSegment* '}' | '{!$' FieldPathSegment FieldPathSubSegment* '}';
fragment FieldPath: FieldPathSegment FieldPathSubSegment*;
fragment FieldPathSegment:
[a-zA-Z_][a-zA-Z0-9_]*; //[\\[.]; // [a-zA-Z_][a-zA-Z0-9_]*;
fragment FieldPathSubSegment:
'.' FieldPathSegment
| '.' FieldPathSegment '[' DecimalIntegerLiteral ']';
|
programs/oeis/338/A338760.asm | jmorken/loda | 1 | 173684 | ; A338760: Subword complexity of a certain infinite word.
; 1,2,4,8,15,28,47,73,107,150,203,267,343,432,535,653,787,938,1107,1295,1503,1732,1983,2257,2555,2878,3227,3603,4007,4440,4903,5397,5923,6482,7075,7703,8367,9068,9807,10585,11403,12262,13163,14107,15095,16128,17207
mov $10,$0
mov $12,$0
add $12,1
lpb $12
clr $0,10
mov $0,$10
sub $12,1
sub $0,$12
mov $7,$0
mov $9,$0
add $9,1
lpb $9
clr $0,7
mov $0,$7
sub $9,1
sub $0,$9
add $2,5
bin $2,$0
mov $6,2
bin $6,$2
add $6,$0
mov $1,$6
sub $1,1
add $8,$1
lpe
add $11,$8
lpe
mov $1,$11
|
alloy4fun_models/trashltl/models/3/Sf4uc8gXRxwtv6pZ2.als | Kaixi26/org.alloytools.alloy | 0 | 1324 | open main
pred idSf4uc8gXRxwtv6pZ2_prop4 {
always some f:File | eventually f in Trash
}
pred __repair { idSf4uc8gXRxwtv6pZ2_prop4 }
check __repair { idSf4uc8gXRxwtv6pZ2_prop4 <=> prop4o } |
software/modules/sensors/magnetometer.ads | TUM-EI-RCS/StratoX | 12 | 23283 | with Generic_Sensor;
with Units; use Units;
with Units.Vectors; use Units.Vectors;
package Magnetometer with SPARK_Mode is
subtype Magnetometer_Data_Type is Magnetic_Flux_Density_Vector;
-- is record
-- heading : Heading_Type;
-- magnetic_vector : Magnetic_Flux_Density_Vector;
-- orientation : Orientation_Type;
-- end record;
package Magnetometer_Sensor is new Generic_Sensor(Magnetometer_Data_Type); use Magnetometer_Sensor;
subtype Sample_Type is Magnetometer_Sensor.Sample_Type;
type Magnetometer_Tag is new Magnetometer_Sensor.Sensor_Tag with record
null;
end record;
--overriding
procedure initialize (Self : in out Magnetometer_Tag);
--overriding
procedure read_Measurement(Self : in out Magnetometer_Tag);
--procedure compensateOrientation(Self : Magnetometer_Tag; orientation : Orientation_Type);
--function get_Heading(Self : Magnetometer_Tag) return Heading_Type;
Sensor : Magnetometer_Tag;
end Magnetometer;
|
src/q_csv.ads | jfuica/bingada | 4 | 3011 | <gh_stars>1-10
--*****************************************************************************
--*
--* PROJECT: BingAda
--*
--* FILE: q_csv.ads
--*
--* AUTHOR: <NAME>
--*
--* NOTES: This code was taken from Rosetta Code and modifyied to fix
-- BingAda needs and Style Guide.
--*
--*****************************************************************************
package Q_Csv is
type T_Row (<>) is tagged private;
function F_Line (V_Line : String;
V_Separator : Character := ';') return T_Row;
function F_Next (V_Row: in out T_Row) return Boolean;
-- if there is still an item in R, Next advances to it and returns True
function F_Item (V_Row: T_Row) return String;
-- after calling R.Next i times, this returns the i'th item (if any)
private
type T_Row (V_Length : Natural) is tagged record
R_Str : String (1 .. V_Length);
R_First : Positive;
R_Last : Natural;
R_Next : Positive;
R_Sep : Character;
end record;
end Q_Csv;
|
src/features/gdt.asm | FranchuFranchu/fran-os | 1 | 12673 | kernel_gdt:
kernel_gdt_null:
dw 0
dw 0
db 0
db 0
db 0
db 0
kernel_gdt_code:
.limit_0_15 dw 0xFFFF
.base_0_15 dw 0
.base_16_23 db 0
.access db 10011010b
.limit_and_flags db 11001111b
.base_24_31 db 0
kernel_gdt_data:
.limit_0_15 dw 0xFFFF
.base_0_15 dw 0x0
.base_16_23 db 0x0
.access db 10010010b
.limit_and_flags db 11001111b
.base_24_31 db 0
kernel_gdt_user_code:
.limit_0_15 dw 0xFFFF
.base_0_15 dw 0
.base_16_23 db 0
.access db 11111010b
.limit_and_flags db 11001111b
.base_24_31 db 0
kernel_gdt_user_data:
.limit_0_15 dw 0xFFFF
.base_0_15 dw 0x0
.base_16_23 db 0x0
.access db 11110010b
.limit_and_flags db 11001111b
.base_24_31 db 0x0
kernel_gdt_task_state_segment:
; We don't know the values of these yet; kernel_userspace_setup will set them
.limit_0_15 dw 0
.base_0_15 dw 0x0
.base_16_23 db 0x0
; Note that the "present" flag is cleared.
.access db 01101001b
.limit_and_flags db 00000000b
.base_24_31 db 0x0
kernel_gdt_end:
kernel_gdt_desc:
.size: dw kernel_gdt_end - kernel_gdt - 1
.offset: dd kernel_gdt
|
Assembly Files/Basic Test Files/Larson_Scanner_Shift.asm | bgmichelsen/6502-Computer | 0 | 162945 | START:
LDA #$FF ; Set all bits in PORTB to be output bits
STA $B402
LDA #$01 ; Start the count with 1 (so that a shift can work)
STA $B400 ; Output to PORTB
JSR DELAY ; Delay for a bit
LEFT:
ASL ; Shift left
STA $B400 ; Output to PORTB
JSR DELAY ; Delay for a bit
CMP #$80 ; Cycle until 128 is reached
BNE LEFT
RIGHT:
LSR ; Right shift
STA $B400 ; Output to PORTB
JSR DELAY ; Delay for a bit
CMP #$01 ; Cycle until we're back down to 1
BNE RIGHT
JMP LEFT ; Repeat
DELAY: ; Delay subroutine
LDY #$00 ; Initialize X and Y registers
LDX #$00
LOOP1:
INY ; Count Y up
LOOP2:
INX ; Count X up
CPX #$02 ; Cycles for X
BNE LOOP2
CPY #$01 ; Cycles for Y
BNE LOOP1
RTS ; Return from subroutine |
45/qb/ir/exconv.asm | minblock/msdos | 0 | 26539 | <filename>45/qb/ir/exconv.asm
page 49,132
TITLE exConv.asm - Data Type Conversion Functions
;***
;exConv.asm - Data type conversion functions
;
; Copyright <C> 1986, Microsoft Corporation
;
;Purpose:
;
; This module includes:
; - all implicit and explicit data type conversion functions
;
;
;****************************************************************************
.8087
.xlist
include version.inc
EXCONV_ASM = ON
IncludeOnce architec
IncludeOnce executor
IncludeOnce exint
IncludeOnce opintrsc
IncludeOnce opstmt
IncludeOnce pcode
.list
assumes ss, DATA
sBegin CODE
assumes cs, CODE
subttl Coercion executors
page
;Identity transformations first
MakeExe exFnCSngR8,opCoerce,ET_R4
SkipExHeader
MakeExe exFnCDblR8,opCoerce,ET_R8
SkipExHeader
MakeExe exFnCLngI4,opCoerce,ET_I4
SkipExHeader
MakeExe exFnCIntI2,opCoerce,ET_I2
DispMac
;Coercions from I2
MakeExe exCoII4I2,opNoList0
SkipExHeader
MakeExe exFnCLngI2,opCoerce,ET_I4
pop ax
cwd ;Convert to I4
push dx
push ax
DispMac
MakeExe exFnCSngI2,opCoerce,ET_R4
SkipExHeader
MakeExe exCoIR8I2,opNoList0
SkipExHeader
MakeExe exFnCDblI2,opCoerce,ET_R8
mov bx,sp ;Source operand
fild word ptr DGROUP:[bx] ;Load source
fwait
pop ax ;Throw away I2
DispMac
;Coercions from I4
MakeExe exCoII2I4,opNoList0
SkipExHeader
MakeExe exFnCIntI4,opCoerce,ET_I2
pop ax
cwd
pop cx
push ax ;Assume success
cmp cx,dx
jnz ErrOVF ;Overflow error
DispMac
ErrOVF:
jmp exMathErrOVF ;Declare overflow error
MakeExe exFnCSngI4,opCoerce,ET_R4
SkipExHeader
MakeExe exCoIR8I4,opNoList0
SkipExHeader
MakeExe exFnCDblI4,opCoerce,ET_R8
mov bx,sp ;Source address
fild dword ptr DGROUP:[bx] ;Load
fwait
add sp,4
DispMac
;Coercions from R4/R8 and Any
MakeExe exCoII2R8,opNoList0
SkipExHeader
MakeExe exFnCIntR8,opCoerce,ET_I2
sub sp,2 ;Destination address
i87ToI2:
mov bx,sp
fistp word ptr DGROUP:[bx] ;And xlat the chip value to the stack
fwait ;Wait for the coprocessor to cool
DispMac ; and continue
MakeExe exCoII4R8,opNoList0
SkipExHeader
MakeExe exFnCLngR8,opCoerce,ET_I4
sub sp,4
i87ToI4:
mov bx,sp
fistp dword ptr DGROUP:[bx]
fwait
DispMac
;Coercions from Currency
;Coercions from String
sEnd CODE
subttl Table of Implicit Coercions
page
;This table is entered by the scanner to get executors for performing
;implicit coercions. The table is a two dimension array entered by current
;type and required result type. Identity coercion occur with R4/R8, since
;these are the same on the 8087 stack. The 0 entry flags the scanner not
;to insert an excutor.
sBegin SCAN
assumes cs, SCAN
;The table below is index as tImpCo[Source][Target], assuming the
;right index varies most rapidly.
;The table contains either an executor address or the special values
;0 and 1. ) and 1 can not be value executor addresses because each
;executor must be preceeded by the opcode it maps to. The special
;value 0 indicates that the two types have identical representations
;on the runtime stack and need no conversion. The value 1 indicates
;that the values are not compatible and a type mismatch error should
;be generated at scan time.
public tImpCo
tImpCo label word
Dw 0
Dw exCoII4I2
Dw exCoIR8I2
Dw exCoIR8I2
Dw 1
Dw exCoII2I4
Dw 0
Dw exCoIR8I4
Dw exCoIR8I4
Dw 1
Dw exCoII2R8
Dw exCoII4R8
Dw 0
Dw 0
Dw 1
Dw exCoII2R8
Dw exCoII4R8
Dw 0
Dw 0
Dw 1
Dw 1
Dw 1
Dw 1
Dw 1
Dw 1
Dw 0
sEnd SCAN
end
|
src/Ethambda/System.agda | fredefox/ethambda-agda | 0 | 4650 | -- | The core type system.
module Ethambda.System where
open import Ethambda.Common using () -- ((<.>), (<.))
data Tp : Type -> Type where
Var : a -> Tp a
Fun : Tp a -> Tp a -> Tp a
Show a => Show (Tp a) where
show t = case t of
-- Var a => ?foo
Var a => show a
Fun a0 b0 => mbrackets a0 <+> "→" <+> show b0
-- where
-- brackets : String -> String
-- brackets s = "(" <+> s <+> ")"
-- mbrackets : Show a => Tp a -> String
-- mbrackets a = case a of
-- Var _ => neutral
-- Fun _ _ => brackets (show a)
|
test/asset/agda-stdlib-1.0/Relation/Binary/Construct/FromPred.agda | omega12345/agda-mode | 5 | 14432 | <reponame>omega12345/agda-mode
------------------------------------------------------------------------
-- The Agda standard library
--
-- Every respectful unary relation induces a preorder. No claim is
-- made that this preorder is unique.
------------------------------------------------------------------------
{-# OPTIONS --without-K --safe #-}
open import Relation.Binary
open import Relation.Unary using (Pred)
module Relation.Binary.Construct.FromPred
{s₁ s₂} (S : Setoid s₁ s₂) -- The underlying equality
{p} (P : Pred (Setoid.Carrier S) p) -- The predicate
where
open import Function
open import Data.Product
open module Eq = Setoid S using (_≈_) renaming (Carrier to A)
------------------------------------------------------------------------
-- Definition
Resp : Rel A p
Resp x y = P x → P y
------------------------------------------------------------------------
-- Properties
reflexive : P Respects _≈_ → _≈_ ⇒ Resp
reflexive resp = resp
refl : P Respects _≈_ → Reflexive Resp
refl resp = resp Eq.refl
trans : Transitive Resp
trans x⇒y y⇒z = y⇒z ∘ x⇒y
isPreorder : P Respects _≈_ → IsPreorder _≈_ Resp
isPreorder resp = record
{ isEquivalence = Eq.isEquivalence
; reflexive = reflexive resp
; trans = flip _∘′_
}
preorder : P Respects _≈_ → Preorder _ _ _
preorder resp = record
{ isPreorder = isPreorder resp
}
|
libpal/intel_64bit_systemv_nasm/write_ldtr.asm | mars-research/pal | 26 | 25839 | <filename>libpal/intel_64bit_systemv_nasm/write_ldtr.asm<gh_stars>10-100
bits 64
default rel
section .text
global pal_execute_write_ldtr
pal_execute_write_ldtr :
lldt di
ret
|
ladspa/src/ladspa.ads | Lucretia/aplug | 2 | 12197 | <gh_stars>1-10
with Ada.Finalization;
with Interfaces.C;
with Interfaces.C.Strings;
with System;
package LADSPA is
pragma Preelaborate;
package C renames Interfaces.C;
Version : constant String := "1.1";
Version_Major : constant := 1;
Version_Minor : constant := 1;
subtype Data is C.C_float; -- /usr/include/ladspa.h:84
type Data_Ptr is access all Data with
Convention => C;
type Data_Array is array (C.unsigned_long range <>) of aliased Data with
Convention => C;
-- As defined in C, this is an int, which is signed! In Ada, it must be unsigned.
type All_Properties is mod 2 ** C.int'Size with -- /usr/include/ladspa.h:94
Convention => C;
-- See ladspa.h for description of each.
Real_Time : constant All_Properties := 1;
In_Place_Broken : constant All_Properties := 2;
Hard_RT_Capable : constant All_Properties := 4;
-- arg-macro: function LADSPA_IS_REALTIME (x)
-- return (x) and LADSPA_PROPERTY_REALTIME;
-- arg-macro: function LADSPA_IS_INPLACE_BROKEN (x)
-- return (x) and LADSPA_PROPERTY_INPLACE_BROKEN;
-- arg-macro: function LADSPA_IS_HARD_RT_CAPABLE (x)
-- return (x) and LADSPA_PROPERTY_HARD_RT_CAPABLE;
-- As above, re All_Properties.
type All_Port_Descriptors is mod 2 ** C.int'Size with -- /usr/include/ladspa.h:152
Convention => C;
-- See ladspa.h for description of each.
Input : constant All_Port_Descriptors := 1;
Output : constant All_Port_Descriptors := 2;
Control : constant All_Port_Descriptors := 4;
Audio : constant All_Port_Descriptors := 8;
-- arg-macro: function LADSPA_IS_PORT_INPUT (x)
-- return (x) and LADSPA_PORT_INPUT;
-- arg-macro: function LADSPA_IS_PORT_OUTPUT (x)
-- return (x) and LADSPA_PORT_OUTPUT;
-- arg-macro: function LADSPA_IS_PORT_CONTROL (x)
-- return (x) and LADSPA_PORT_CONTROL;
-- arg-macro: function LADSPA_IS_PORT_AUDIO (x)
-- return (x) and LADSPA_PORT_AUDIO;
-- As above, re All_Properties.
type Port_Range_Hint_Descriptors is mod 2 ** C.int'Size with -- /usr/include/ladspa.h:200
Convention => C;
-- See ladspa.h for description of each.
Bounded_Below : constant Port_Range_Hint_Descriptors := 16#1#;
Bounded_Above : constant Port_Range_Hint_Descriptors := 16#2#;
Toggled : constant Port_Range_Hint_Descriptors := 16#4#;
Sample_Rate : constant Port_Range_Hint_Descriptors := 16#8#;
Logarithmic : constant Port_Range_Hint_Descriptors := 16#10#;
Integer : constant Port_Range_Hint_Descriptors := 16#20#; -- Is "Integer" in C, which is a keyword in Ada.
Default_Mask : constant Port_Range_Hint_Descriptors := 16#3C0#;
Default_None : constant Port_Range_Hint_Descriptors := 16#0#;
Default_Minimum : constant Port_Range_Hint_Descriptors := 16#40#;
Default_Low : constant Port_Range_Hint_Descriptors := 16#80#;
Default_Middle : constant Port_Range_Hint_Descriptors := 16#C0#;
Default_High : constant Port_Range_Hint_Descriptors := 16#100#;
Default_Maximum : constant Port_Range_Hint_Descriptors := 16#140#;
Default_0 : constant Port_Range_Hint_Descriptors := 16#200#;
Default_1 : constant Port_Range_Hint_Descriptors := 16#240#;
Default_100 : constant Port_Range_Hint_Descriptors := 16#280#;
Default_440 : constant Port_Range_Hint_Descriptors := 16#2C0#;
-- arg-macro: function LADSPA_IS_HINT_BOUNDED_BELOW (x)
-- return (x) and LADSPA_HINT_BOUNDED_BELOW;
-- arg-macro: function LADSPA_IS_HINT_BOUNDED_ABOVE (x)
-- return (x) and LADSPA_HINT_BOUNDED_ABOVE;
-- arg-macro: function LADSPA_IS_HINT_TOGGLED (x)
-- return (x) and LADSPA_HINT_TOGGLED;
-- arg-macro: function LADSPA_IS_HINT_SAMPLE_RATE (x)
-- return (x) and LADSPA_HINT_SAMPLE_RATE;
-- arg-macro: function LADSPA_IS_HINT_LOGARITHMIC (x)
-- return (x) and LADSPA_HINT_LOGARITHMIC;
-- arg-macro: function LADSPA_IS_HINT_INTEGER (x)
-- return (x) and LADSPA_HINT_INTEGER;
-- arg-macro: function LADSPA_IS_HINT_HAS_DEFAULT (x)
-- return (x) and LADSPA_HINT_DEFAULT_MASK;
-- arg-macro: function LADSPA_IS_HINT_DEFAULT_MINIMUM (x)
-- return ((x) and LADSPA_HINT_DEFAULT_MASK) = LADSPA_HINT_DEFAULT_MINIMUM;
-- arg-macro: function LADSPA_IS_HINT_DEFAULT_LOW (x)
-- return ((x) and LADSPA_HINT_DEFAULT_MASK) = LADSPA_HINT_DEFAULT_LOW;
-- arg-macro: function LADSPA_IS_HINT_DEFAULT_MIDDLE (x)
-- return ((x) and LADSPA_HINT_DEFAULT_MASK) = LADSPA_HINT_DEFAULT_MIDDLE;
-- arg-macro: function LADSPA_IS_HINT_DEFAULT_HIGH (x)
-- return ((x) and LADSPA_HINT_DEFAULT_MASK) = LADSPA_HINT_DEFAULT_HIGH;
-- arg-macro: function LADSPA_IS_HINT_DEFAULT_MAXIMUM (x)
-- return ((x) and LADSPA_HINT_DEFAULT_MASK) = LADSPA_HINT_DEFAULT_MAXIMUM;
-- arg-macro: function LADSPA_IS_HINT_DEFAULT_0 (x)
-- return ((x) and LADSPA_HINT_DEFAULT_MASK) = LADSPA_HINT_DEFAULT_0;
-- arg-macro: function LADSPA_IS_HINT_DEFAULT_1 (x)
-- return ((x) and LADSPA_HINT_DEFAULT_MASK) = LADSPA_HINT_DEFAULT_1;
-- arg-macro: function LADSPA_IS_HINT_DEFAULT_100 (x)
-- return ((x) and LADSPA_HINT_DEFAULT_MASK) = LADSPA_HINT_DEFAULT_100;
-- arg-macro: function LADSPA_IS_HINT_DEFAULT_440 (x)
-- return ((x) and LADSPA_HINT_DEFAULT_MASK) = LADSPA_HINT_DEFAULT_440;
type All_Port_Range_Hints is
record
Hint_Descriptor : aliased Port_Range_Hint_Descriptors;
Lower_Bound : aliased Data;
Upper_Bound : aliased Data;
end record with
Convention => C_Pass_By_Copy;
-- Helper package.
-- TODO: There's got to be a better name for this!
generic
type Port_Type is (<>);
package Port_Information is
type Descriptor_Array is array (Port_Type) of All_Port_Descriptors with
Convention => C;
type Name_Array is array (Port_Type) of aliased C.Strings.chars_ptr with
Convention => C;
type Range_Hint_Array is array (Port_Type) of All_Port_Range_Hints with
Convention => C;
end Port_Information;
type Base_Handle is null record with -- /usr/include/ladspa.h:363
Convention => C;
type Handles is access all Base_Handle with
Convention => C;
type Descriptors;
type Instantiators is access function (Descriptor : access constant Descriptors;
Sample_Rate : C.unsigned_long) return Handles with
Convention => C;
type Port_Connectors is access procedure (Instance : in Handles;
Port : in C.unsigned_long;
Data_Location : in Data_Ptr) with
Convention => C;
type Activators is access procedure (Instance : in Handles) with
Convention => C;
type Deactivators is access procedure (Instance : in Handles) with
Convention => C;
type Runners is access procedure (Instance : in Handles; Sample_Count : in C.unsigned_long) with
Convention => C;
-- type Adding_Runners is access procedure (Instance : in out Handles; Sample_Count : in unsigned_long) with
-- Convention => C;
type Gain_Adding_Runners is access procedure (Instance : in Handles; Gain : in Data) with
Convention => C;
type Cleaners is access procedure (Instance : in Handles) with
Convention => C;
type Port_Name_Array_Ptr is not null access constant C.Strings.chars_ptr;
type Descriptors is record
Unique_ID : aliased C.unsigned_long;
Label : C.Strings.chars_ptr;
Properties : aliased All_Properties;
Name : C.Strings.chars_ptr;
Maker : C.Strings.chars_ptr;
Copyright : C.Strings.chars_ptr;
Port_Count : aliased C.unsigned_long;
Port_Descriptors : System.Address; -- access All_Port_Descriptors;
Port_Names : Port_Name_Array_Ptr;
Port_Range_Hints : System.Address; -- access constant All_Port_Range_Hints;
Implementation_Data : System.Address;
Instantiate : Instantiators;
Connect_Port : Port_Connectors;
Activate : Activators;
Run : Runners;
Run_Adding : Runners;
Set_Run_Adding_Gain : Gain_Adding_Runners;
Deactivate : Deactivators;
Clean_Up : Cleaners;
end record with
Convention => C_Pass_By_Copy;
-- This is required so that on finalisation of the library (unload), the globally allocated data is destroyed.
type Root_Descriptors is abstract new Ada.Finalization.Limited_Controlled with
record
Data : aliased Descriptors;
end record;
overriding procedure Finalize (Self : in out Root_Descriptors);
type Descriptor_Functions is access function (Index : C.unsigned_long) return access constant Descriptors with
Convention => C; -- /usr/include/ladspa.h:593
end LADSPA;
|
evaluation/5_more_vulns/mds-sb.asm | microsoft/sca-fuzzer | 2 | 161196 | <gh_stars>1-10
.intel_syntax noprefix
# write a page offset into Store Buffer
IMUL edi, edi, 2891336453
ADD edi, 12345
MOV ecx, edi
MFENCE
# put a value into store buffer
MOV qword ptr [r14], rcx
MOV rcx, qword ptr [r14]
# delay to allow data reach SB
LEA rbx, [rbx + rax + 1]
LEA rbx, [rbx + rax + 1]
LEA rbx, [rbx + rax + 1]
LEA rbx, [rbx + rax + 1]
LEA rbx, [rbx + rax + 1]
LEA rbx, [rbx + rax + 1]
LEA rbx, [rbx + rax + 1]
LEA rbx, [rbx + rax + 1]
LEA rbx, [rbx + rax + 1]
LEA rbx, [rbx + rax + 1]
# Read from a non-accessed address thus triggerring microcode assist
MOV rcx, qword ptr [r14+4096]
AND rcx, 0b111111111111
# dependent load
MOV rdx, [r14 + rcx]
MFENCE
|
examples/simple-lib/Lib/Eq.agda | shlevy/agda | 1,989 | 16924 |
module Lib.Eq where
open import Lib.Prelude as P hiding (String)
open import Lib.Nat renaming (_==_ to _=Nat=_)
open import Lib.Fin
open import Lib.List
open import Lib.Bool
-- Wrapper type, used to ensure that El is constructor-headed.
record String : Set where
constructor string
field unString : P.String
-- Codes for types supporting equality
data EqU : Set where
nat : EqU
bool : EqU
string : EqU
unit : EqU
fin : Nat -> EqU
list : EqU -> EqU
pair : EqU -> EqU -> EqU
El : EqU -> Set
El nat = Nat
El bool = Bool
El string = String
El unit = Unit
El (fin n) = Fin n
El (list u) = List (El u)
El (pair u v) = El u × El v
primitive primStringEquality : P.String -> P.String -> Bool
infix 30 _==_
_==_ : {u : EqU} -> El u -> El u -> Bool
_==_ {nat} n m = n =Nat= m
_==_ {fin n} i j = finEq i j
_==_ {bool} false y = not y
_==_ {bool} true y = y
_==_ {string} (string x) (string y) = primStringEquality x y
_==_ {unit} _ _ = true
_==_ {list u} [] [] = true
_==_ {list u} (x :: xs) (y :: ys) = x == y && xs == ys
_==_ {list u} _ _ = false
_==_ {pair u v} (x₁ , y₁) (x₂ , y₂) = x₁ == x₂ && y₁ == y₂
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.