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 |
|---|---|---|---|---|
final/MarkdownParser.g4 | recursion-ninja/Superion-YAML | 1 | 5064 | BLANK_LINE: (SPACE | TAB)* NEWLINE;
NEWLINE: '\\r'? '\\n' | '\\r';
...
document: block+ BLANK_LINE* EOF?;
block: BLANK_LINE*
(htmlBlockTags
| htmlBlockSelfClosing
| htmlComment
| heading
| horizontalRule
| blockQuote[0]
| references
| {followListItem(1, 0)}? orderedList[0]
| {followListItem(1, 0)}? bulletList[0]
| {followVerbatim(0)}? verbatim[0]
| para);
...
inline: span
| HEX_CHAR | NORMAL_CHAR | DIGIT
| NEWLINE | LINE_BREAK | SPACE | TAB | SPECIAL_CHAR
| EMPH | UNDERSCORE
| COLON | SEMI_COLON
| SLASH | PERIOD
| OPEN_ANGLE_BRACKET | CLOSE_ANGLE_BRACKET
| OPEN_PAREN | CLOSE_PAREN
| EXCLAMATION_MARK
| SHARP
| OPEN_SB | CLOSE_SB
| AMPERSAND
| BACKSLASH
| SINGLE_QUOTE | DOUBLE_QUOTE
| BACKTICK | PLUS | MINUS | OPEN_CURLY | CLOSE_CURLY
| AT;
...
|
libsrc/z80_crt0s/crt0/l_sxt.asm | andydansby/z88dk-mk2 | 1 | 86845 | <filename>libsrc/z80_crt0s/crt0/l_sxt.asm<gh_stars>1-10
; Z88 Small C+ Run time Library
; Moved functions over to proper libdefs
; To make startup code smaller and neater!
;
; 6/9/98 djm
XLIB l_sxt
.l_sxt ld l,a
rlca
sbc a,a
ld h,a
ret
|
agda/sn-calculus-compatconf/base.agda | florence/esterel-calculus | 3 | 3016 | <reponame>florence/esterel-calculus
module sn-calculus-compatconf.base where
open import sn-calculus
open import utility renaming (_U̬_ to _∪_)
open import Esterel.Lang
open import Esterel.Lang.Properties
open import Esterel.Lang.Binding
open import Esterel.Lang.CanFunction
using (Can ; Canₛ ; Canₛₕ ; Canₖ ; module CodeSet)
open import Esterel.Environment as Env
using (Env ; Θ ; _←_ ; Dom ; module SigMap ; module ShrMap ; module VarMap)
open import Esterel.Context
using (EvaluationContext ; EvaluationContext1 ; _⟦_⟧e ; _≐_⟦_⟧e ;
Context ; Context1 ; _⟦_⟧c ; _≐_⟦_⟧c)
open import Esterel.Context.Properties
using (unplug ; unplugc ; plug ; plugc ; ⟦⟧e-to-⟦⟧c)
open import Esterel.CompletionCode as Code
using () renaming (CompletionCode to Code)
open import Esterel.Variable.Signal as Signal
using (Signal ; _ₛ)
open import Esterel.Variable.Shared as SharedVar
using (SharedVar ; _ₛₕ)
open import Esterel.Variable.Sequential as SeqVar
using (SeqVar ; _ᵥ)
open import Relation.Nullary
using (¬_ ; Dec ; yes ; no)
open import Relation.Binary.PropositionalEquality
using (_≡_ ; refl ; sym ; cong ; trans ; subst ; module ≡-Reasoning)
open import Data.Bool
using (Bool ; if_then_else_)
open import Data.Empty
using (⊥ ; ⊥-elim)
open import Data.List
using (List ; _∷_ ; [] ; _++_ ; map)
open import Data.List.Any
using (Any ; any ; here ; there)
open import Data.List.Any.Properties
using ()
renaming (++⁺ˡ to ++ˡ ; ++⁺ʳ to ++ʳ)
open import Data.Maybe
using (Maybe ; just ; nothing)
open import Data.Nat
using (ℕ ; zero ; suc ; _+_) renaming (_⊔_ to _⊔ℕ_)
open import Data.Product
using (Σ-syntax ; Σ ; _,_ ; _,′_ ; proj₁ ; proj₂ ; _×_ ; ∃)
open import Data.Sum
using (_⊎_ ; inj₁ ; inj₂)
open import Function using (_∘_ ; id ; _∋_)
open import Data.OrderedListMap Signal Signal.unwrap Signal.Status as SigM
open import Data.OrderedListMap SharedVar SharedVar.unwrap (Σ SharedVar.Status (λ _ → ℕ)) as ShrM
open import Data.OrderedListMap SeqVar SeqVar.unwrap ℕ as SeqM
open EvaluationContext1
open _≐_⟦_⟧e
open Context1
open _≐_⟦_⟧c
open ListSet Data.Nat._≟_
data two-roads-diverged : EvaluationContext → Context → Set where
divout-disjoint : ∀ {C₁ C} → two-roads-diverged [] (C₁ ∷ C)
divpar-split₁ : ∀ {E C p q} → two-roads-diverged (epar₁ q ∷ E) (ceval (epar₂ p) ∷ C)
divpar-split₂ : ∀ {E C p q} → two-roads-diverged (epar₂ p ∷ E) (ceval (epar₁ q) ∷ C)
divseq-split : ∀ {E C p q} → two-roads-diverged (eseq q ∷ E) (cseq₂ p ∷ C)
divloop-splitˢ : ∀ {E C p q} → two-roads-diverged (eloopˢ q ∷ E) (cloopˢ₂ p ∷ C)
divin : ∀ {E₁ E C} → two-roads-diverged E C → two-roads-diverged (E₁ ∷ E) (ceval E₁ ∷ C)
data context-prefix : EvaluationContext → Context → Set where
ecsame : ∀ {E} → context-prefix E (map ceval E)
ecin-lift : ∀ {E E₁ E'} → context-prefix (E ++ (E₁ ∷ E')) (map ceval E)
ecsplit : ∀ {E C} → (div : two-roads-diverged E C) → context-prefix E C
get-context-prefix : ∀ {E C p q r} →
p ≐ E ⟦ q ⟧e → p ≐ C ⟦ r ⟧c →
context-prefix E C
get-context-prefix {[]} {[]} dehole p≐C⟦r⟧ = ecsame
get-context-prefix {[]} {C₁ ∷ C} dehole p≐C⟦r⟧ = ecsplit divout-disjoint
get-context-prefix {E₁ ∷ E} p≐E⟦q⟧ dchole = ecin-lift
get-context-prefix (depar₁ p≐E⟦q⟧) (dcpar₂ p≐C⟦r⟧) = ecsplit divpar-split₁
get-context-prefix (depar₂ p≐E⟦q⟧) (dcpar₁ p≐C⟦r⟧) = ecsplit divpar-split₂
get-context-prefix (deseq p≐E⟦q⟧) (dcseq₂ p≐C⟦r⟧) = ecsplit divseq-split
get-context-prefix (deloopˢ p≐E⟦q⟧) (dcloopˢ₂ p≐C⟦r⟧) = ecsplit divloop-splitˢ
get-context-prefix (depar₁ p≐E⟦q⟧) (dcpar₁ p≐C⟦r⟧)
with get-context-prefix p≐E⟦q⟧ p≐C⟦r⟧
... | ecsame = ecsame
... | ecin-lift = ecin-lift
... | ecsplit div = ecsplit (divin div)
get-context-prefix (depar₂ p≐E⟦q⟧) (dcpar₂ p≐C⟦r⟧)
with get-context-prefix p≐E⟦q⟧ p≐C⟦r⟧
... | ecsame = ecsame
... | ecin-lift = ecin-lift
... | ecsplit div = ecsplit (divin div)
get-context-prefix (deloopˢ p≐E⟦q⟧) (dcloopˢ₁ p≐C⟦r⟧)
with get-context-prefix p≐E⟦q⟧ p≐C⟦r⟧
... | ecsame = ecsame
... | ecin-lift = ecin-lift
... | ecsplit div = ecsplit (divin div)
get-context-prefix (deseq p≐E⟦q⟧) (dcseq₁ p≐C⟦r⟧)
with get-context-prefix p≐E⟦q⟧ p≐C⟦r⟧
... | ecsame = ecsame
... | ecin-lift = ecin-lift
... | ecsplit div = ecsplit (divin div)
get-context-prefix (desuspend p≐E⟦q⟧) (dcsuspend p≐C⟦r⟧)
with get-context-prefix p≐E⟦q⟧ p≐C⟦r⟧
... | ecsame = ecsame
... | ecin-lift = ecin-lift
... | ecsplit div = ecsplit (divin div)
-- didn't directly pattern match on p≐C⟦r⟧ in order to get complete pattern matching coverage
get-context-prefix (detrap p≐E⟦q⟧) p≐trap[C⟦r⟧] with p≐trap[C⟦r⟧]
... | dchole = ecin-lift
... | dctrap p≐C⟦r⟧ with get-context-prefix p≐E⟦q⟧ p≐C⟦r⟧
... | ecsame = ecsame
... | ecin-lift = ecin-lift
... | ecsplit div = ecsplit (divin div)
|
vars.asm | RichardTND/ShockRaid | 0 | 23854 | ;#############################
;# Shock Raid #
;# #
;# by <NAME> #
;# #
;# (C)2021 The New Dimension #
;# For Reset Magazine #
;#############################
;Game variables
;Map and tile memory data
tilemem = $b0 ;Load address of all tiles
tileY = $02 ;rows
map = $03 ;Map address storebyte
tiledata = $fc ;16bit address for tile memory
maptmp = $fe ;temp byte for map
screen = $0400 ;screen RAM
colour = $d800 ;colour RAM
mapload = MAPDATA ;Memory of the game map
rowtemp = $0f00 ;Temporary self-modifying byte for map
tileload = $b000
;Row variables
row0 = screen
row1 = screen+1*40
row2 = screen+2*40
row3 = screen+3*40
row4 = screen+4*40
row5 = screen+5*40
row6 = screen+6*40
row7 = screen+7*40
row8 = screen+8*40
row9 = screen+9*40
row10 = screen+10*40
row11 = screen+11*40
row12 = screen+12*40
row13 = screen+13*40
row14 = screen+14*40
row15 = screen+15*40
row16 = screen+16*40
row17 = screen+17*40
row18 = screen+18*40
row19 = screen+19*40
row20 = screen+20*40
;Player variables
UpStopPos = $5a
DownStopPos = $ba
LeftStopPos = $0c
RightStopPos = $a0
KillerCharsRangeStartGroup1 = 44
KillerCharsRangeEndGroup2 = 240
LaserGateChar1 = 241
LaserGateChar2 = 242
LaserGateChar3 = 243
LaserGateChar4 = 244
LaserGateChar5 = 245
LaserGateChar6 = 246
LaserGateChar7 = 247
LaserGateChar8 = 248
;Background object characters for lasers
LaserGateChars = $3800+(241*8) ;Starting character set for the laser gate objects
LaserGateCharsBackup = CharsBackupMemory ;Where old text chars lie ;BACKUP
LevelExitChar = 27 ;The char ID for the top of the flag pole
playerlo = $70 ;Zero pages set for the player
playerhi = $71
;ScrollChar = $3800+(29*8) ;The the scrolling void
;ScrollChar2 = $3800+(30*8)
;ScrollChar3 = $3800+(35*8)
ScrollChar4 = $3800+(193*8)
EndLaserLeftChar1 = $3800+(245*8)
EndLaserRightChar1 = $3800+(246*8)
EndLaserLeftChar2 = $3800+(247*8)
EndLaserRightChar2 = $3800+(248*8)
EndLaserDownChar1 = $3800+(249*8)
EndLaserDownChar2 = $3800+(250*8)
;Alien movement variables (The formation data is based on
;Richard's Alien Formation Maker program). X = first 256 bytes, Y = last 256 bytes
;(As recorded from the program). Variable names will be named as F01X, F01Y - F16X, F16Y
;for short
F01X = FormationData01
F01Y = FormationData01 + $100
F02X = FormationData02
F02Y = FormationData02 + $100
F03X = FormationData03
F03Y = FormationData03 + $100
F04X = FormationData04
F04Y = FormationData04 + $100
F05X = FormationData05
F05Y = FormationData05 + $100
F06X = FormationData06
F06Y = FormationData06 + $100
F07X = FormationData07
F07Y = FormationData07 + $100
F08X = FormationData08
F08Y = FormationData08 + $100
F09X = FormationData09
F09Y = FormationData09 + $100
F10X = FormationData10
F10Y = FormationData10 + $100
F11X = FormationData11
F11Y = FormationData11 + $100
F12X = FormationData12
F12Y = FormationData12 + $100
F13X = FormationData13
F13Y = FormationData13 + $100
F14X = FormationData14
F14Y = FormationData14 + $100
F15X = FormationData15
F15Y = FormationData15 + $100
F16X = FormationData16
F16Y = FormationData16 + $100
;VIC2 BANK 3 - Screen character position where each feature
;lies.
Score = $0777 ;Position of the 5-digit score panel
Shield = $0787 ;Position of the 1 digit shield counter
Shield2 = $0786
LevelIndicator = $0796 ;Position of the player level indicator
pulsecharleft1 = $0800+99*8
pulsecharleft2 = $0800+100*8
pulsecharright1 = $0800+101*8
pulsecharright2 = $0800+102*8
fillchar = 170
;Invincibility timer
InvulnerabilityTimer = 200
;Music variables
TitleMusic = 0
GameMusic = 1
GameOverJingle = 2
EndMusic = 3
MusicInit = $1000
MusicPlay = $1003
MusicInit2 = $f400
MusicPlay2 = $f403
;SFX Variables
;Game Start / Level Up
GameOverSFX = 0
PlayerShootSFX = 1
ShieldHitSFX = 2
PlayerDeathSFX = 3
AlienDeathSFX = 4
AlienShootSFX = 5
LevelUpSFX = 6
;Hi Score variables
scorelen = 5
listlen = 5
namelen = 9
storbyt = $07
NameStop = <Name+9
;Hi Score detection
SFXInit = $f000
SFXPlay = $f003
|
_maps/obj11.asm | NatsumiFox/AMPS-Sonic-1-2005 | 2 | 160512 | ; ---------------------------------------------------------------------------
; Sprite mappings - GHZ bridge
; ---------------------------------------------------------------------------
dc.w byte_793A-Map_obj11, byte_7940-Map_obj11
dc.w byte_794B-Map_obj11
byte_793A: dc.b 1
dc.b $F8, 5, 0, 0, $F8
byte_7940: dc.b 2
dc.b $F8, 4, 0, 4, $F0
dc.b 0, $C, 0, 6, $F0
byte_794B: dc.b 1
dc.b $FC, 4, 0, 8, $F8
even |
oeis/005/A005029.asm | neoneye/loda-programs | 11 | 163545 | ; A005029: 13*2^n.
; 13,26,52,104,208,416,832,1664,3328,6656,13312,26624,53248,106496,212992,425984,851968,1703936,3407872,6815744,13631488,27262976,54525952,109051904,218103808,436207616,872415232,1744830464,3489660928,6979321856,13958643712,27917287424,55834574848,111669149696,223338299392,446676598784,893353197568,1786706395136,3573412790272,7146825580544,14293651161088,28587302322176,57174604644352,114349209288704,228698418577408,457396837154816,914793674309632,1829587348619264,3659174697238528,7318349394477056
mov $1,2
pow $1,$0
mul $1,13
mov $0,$1
|
projects/06/symbols/Label.asm | chapnitsky/Nand2Tetris | 0 | 22404 | // Copyright <NAME>, January 2018.
// Free for educational use.
// A simple infinite loop that tests only the creation of a single label.
@16
M=1
(LOOP)
@16
M=M+1
@LOOP
0;JMP
|
src/test/resources/testData/parse/handlers/if_samples.scpt | stigger/AppleScript-IDEA | 18 | 1479 | <reponame>stigger/AppleScript-IDEA
if authorizationStatus is not 3 then
--display dialog "Access must be given in System Preferences" & linefeed & "-> Security & Privacy first." buttons {"OK"} default button 1
tell application "System Preferences"
activate
tell pane id "com.apple.preference.security" to reveal anchor "Privacy"
end tell
error number -128
end if |
src/test/data/hello-clean.asm | pblop/vscode-6x09-assembly | 5 | 161551 | <filename>src/test/data/hello-clean.asm
org $3f00
* HELLO WORLD
screen equ $400
hello ldy #screen
clra
hel010 sta ,y+
cmpy #screen+512
bne hel010
ldx #text
ldy #screen
hel020 lda ,x+
beq loop
sta ,y+
bra hel020
loop bra loop
text FCC "HELLO, WORLD!"
FCB 0
END |
examples/sound/vt2/sound.asm | Frodevan/z88dk | 640 | 165557 | <gh_stars>100-1000
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; <NAME> 2016
;;
;; PT3 music modules.
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; The included PT3 example module music.pt3 is originally called Tears.pt3
; and is copyright (C) 2005 by <NAME> (http://bulba.untergrund.net/).
SECTION rodata_user
PUBLIC _mysong
_mysong:
BINARY "music.pt3"
|
projects/batfish/src/main/antlr4/org/batfish/grammar/cumulus_frr/CumulusFrr_bgp.g4 | jawyoonis/batfish | 0 | 4312 | parser grammar CumulusFrr_bgp;
import CumulusFrr_common;
options {
tokenVocab = CumulusFrrLexer;
}
s_bgp
:
ROUTER BGP autonomous_system (VRF vrf_name)? NEWLINE
(
sb_address_family
| sb_always_compare_med
| sb_bgp
| sb_neighbor
| sb_network
| sb_no
| sb_redistribute
| sbafi_neighbor
| sbafi_no
)*
;
sb_bgp
:
BGP
(
sbb_bestpath
| sbb_confederation
| sbb_log_neighbor_changes
| sbb_router_id
| sbb_cluster_id
| sbb_max_med_administrative
)
;
sb_no
:
NO
(
sbno_bgp
)
;
sbno_bgp
:
BGP
(
sbnob_default
)
;
sbnob_default
:
DEFAULT
(
sbnobd_ipv4_unicast
)
NEWLINE
;
sbb_confederation
:
CONFEDERATION IDENTIFIER id = uint32 NEWLINE
;
sbb_bestpath
:
BESTPATH
(
sbbb_aspath_multipath_relax
)
;
sbb_log_neighbor_changes
:
LOG_NEIGHBOR_CHANGES NEWLINE
;
sbb_max_med_administrative
:
MAX_MED ADMINISTRATIVE (med = uint32)? NEWLINE
;
sbbb_aspath_multipath_relax
:
AS_PATH MULTIPATH_RELAX NEWLINE
;
sb_redistribute
:
REDISTRIBUTE bgp_redist_type (ROUTE_MAP route_map_name)? NEWLINE
;
sbb_router_id
:
ROUTER_ID IP_ADDRESS NEWLINE
;
sbb_cluster_id
:
CLUSTER_ID IP_ADDRESS NEWLINE
;
sb_neighbor
:
NEIGHBOR (sbn_ip | sbn_ip6 | sbn_name) NEWLINE
;
sb_address_family
:
ADDRESS_FAMILY sbaf
(EXIT_ADDRESS_FAMILY NEWLINE)?
;
sbaf
:
sbaf_ipv4_unicast
| sbaf_ipv6_unicast
| sbaf_l2vpn_evpn
;
sbaf_ipv4_unicast
:
IPV4 UNICAST NEWLINE
(
sbafi_aggregate_address
| sbafi_import
// Skeptical that max-paths belongs here.
// Adding for now to prevent jumping out of parser context.
| sbafi_maximum_paths
| sbafi_network
| sbafi_neighbor
| sbafi_no
| sbafi_redistribute
)*
;
sbaf_ipv6_unicast
:
IPV6 UNICAST NEWLINE
(
sbafi6_import
| sbafi6_null_tail
)*
;
sbafi6_import
:
IMPORT VRF (vrf_name | ROUTE_MAP route_map_name) NEWLINE
;
sbafi6_null_tail
:
(
// there are likely others but haven't seen examples yet, so leaving for later
NEIGHBOR
| NO
| REDISTRIBUTE
) null_rest_of_line
;
sbaf_l2vpn_evpn
:
L2VPN EVPN NEWLINE
(
sbafl_advertise
| sbafl_advertise_all_vni
| sbafl_advertise_default_gw
| sbafl_neighbor
)*
;
sbafl_neighbor
:
NEIGHBOR neighbor = (IP_ADDRESS | WORD)
(
sbafln_activate
| sbafln_route_map
| sbafln_route_reflector_client
)
;
sbafi_aggregate_address
:
AGGREGATE_ADDRESS IP_PREFIX SUMMARY_ONLY? NEWLINE
;
sbafi_import
:
IMPORT VRF (vrf_name | ROUTE_MAP route_map_name) NEWLINE
;
sbafi_maximum_paths
:
MAXIMUM_PATHS num = uint32 NEWLINE
;
sbafi_network
:
NETWORK network = prefix (ROUTE_MAP rm = route_map_name)? NEWLINE
;
sbafi_redistribute
:
REDISTRIBUTE bgp_redist_type (ROUTE_MAP route_map_name)? NEWLINE
;
sbafl_advertise
:
ADVERTISE
(
sbafla_ipv4_unicast
| sbafla_ipv6_unicast
)
;
sbafla_ipv4_unicast
:
IPV4 UNICAST (ROUTE_MAP rm = route_map_name)? NEWLINE
;
sbafla_ipv6_unicast
:
IPV6 UNICAST (ROUTE_MAP rm = route_map_name)? NEWLINE
;
sbafl_advertise_all_vni
:
ADVERTISE_ALL_VNI NEWLINE
;
sbafl_advertise_default_gw
:
ADVERTISE_DEFAULT_GW NEWLINE
;
sbafln_activate
:
ACTIVATE NEWLINE
;
sbafln_route_map
:
ROUTE_MAP name=word (IN | OUT) NEWLINE
;
sbafln_route_reflector_client
:
ROUTE_REFLECTOR_CLIENT NEWLINE
;
sb_always_compare_med
:
BGP ALWAYS_COMPARE_MED NEWLINE
;
sbn_ip
:
ip = IP_ADDRESS sbn_property
;
sbn_ip6
:
ip6 = IPV6_ADDRESS sbn_property
;
sbn_name
:
name = word
(
sbn_interface // set an interface neighbor property
| sbn_peer_group_decl // declare a new peer group
| sbn_property // set a peer-group property
// Nothing else should go in here. New properties should go in sbn_property
)
;
sbn_interface
:
INTERFACE sbn_property
;
sbn_peer_group_decl
:
PEER_GROUP
;
sbn_property
:
sbnp_description
| sbnp_ebgp_multihop
| sbnp_peer_group
| sbnp_bfd
| sbnp_password
| sbnp_remote_as
| sbnp_update_source
| sbnp_local_as
;
sbnp_bfd
:
BFD word*
;
sbnp_description
:
DESCRIPTION REMARK_TEXT
;
sbnp_ebgp_multihop
:
EBGP_MULTIHOP num = uint32
;
sbnp_password
:
PASSWORD REMARK_TEXT
;
sbnp_peer_group
:
PEER_GROUP name = word
;
sbnp_remote_as
:
REMOTE_AS (autonomous_system | EXTERNAL | INTERNAL)
;
sbnp_update_source
:
UPDATE_SOURCE (ip = IP_ADDRESS | name = word)
;
sbnp_local_as
:
LOCAL_AS asn = autonomous_system (NO_PREPEND REPLACE_AS?)?
;
sb_network
:
NETWORK network = prefix (ROUTE_MAP rm = route_map_name)? NEWLINE
;
sbafi_neighbor
:
NEIGHBOR (ip = IP_ADDRESS | name = word)
(
sbafin_activate
| sbafin_allowas_in
| sbafin_default_originate
| sbafin_next_hop_self
| sbafin_route_reflector_client
| sbafin_send_community
| sbafin_soft_reconfiguration
| sbafin_route_map
)
NEWLINE
;
sbafi_no
:
sbafi_no_neighbor
;
sbafi_no_neighbor
:
NO NEIGHBOR (ipv4=IP_ADDRESS | ipv6=IPV6_ADDRESS | name = word)
(
sbafi_no_activate
)
;
sbafi_no_activate
:
ACTIVATE NEWLINE
;
sbafin_activate
:
ACTIVATE
;
sbafin_allowas_in
:
ALLOWAS_IN count = UINT8
;
sbafin_default_originate
:
DEFAULT_ORIGINATE
;
sbafin_next_hop_self
:
NEXT_HOP_SELF (FORCE | ALL)?
;
sbafin_route_reflector_client
:
ROUTE_REFLECTOR_CLIENT
;
sbafin_send_community
:
SEND_COMMUNITY EXTENDED?
;
sbafin_soft_reconfiguration
:
SOFT_RECONFIGURATION INBOUND
;
sbafin_route_map
:
ROUTE_MAP name=word (IN | OUT)
;
sbn_bfd
:
BFD word*
;
sbn_password
:
PASSWORD <PASSWORD>
;
sbnobd_ipv4_unicast
:
IPV4_UNICAST
;
|
libsrc/_DEVELOPMENT/adt/w_array/c/sdcc_iy/w_array_capacity.asm | meesokim/z88dk | 0 | 170091 | <reponame>meesokim/z88dk<filename>libsrc/_DEVELOPMENT/adt/w_array/c/sdcc_iy/w_array_capacity.asm
; size_t w_array_capacity(w_array_t *a)
SECTION code_adt_w_array
PUBLIC _w_array_capacity
EXTERN asm_w_array_capacity
_w_array_capacity:
pop af
pop hl
push hl
push af
jp asm_w_array_capacity
|
programs/oeis/061/A061086.asm | neoneye/loda | 22 | 14567 | ; A061086: a(n) is the concatenation of n with n^3.
; 11,28,327,464,5125,6216,7343,8512,9729,101000,111331,121728,132197,142744,153375,164096,174913,185832,196859,208000,219261,2210648,2312167,2413824,2515625,2617576,2719683,2821952,2924389,3027000,3129791,3232768,3335937
mov $2,1
add $2,$0
seq $0,61087 ; a(n) = A061086(n) / n.
mul $0,$2
|
random_ideas/alloy/fs.als | asimihsan/asim_ihsan_io | 0 | 4734 | <gh_stars>0
abstract sig Object {}
sig File extends Object {}
sig Dir extends Object {
entries : set Entry
}
sig Entry {
name : one Name,
object : one Object
}
sig Name {}
one sig Root extends Dir {}
fact {
// Entries cannot be shared between directories
// Force relation 'entries' to be injective, one where no two
// atoms of the source signature point to the same target atoms.
// Note "a bestiary of binary relations" seems important.
//entries in Dir lone -> Entry
// entries.e is the set of all directories that contain e as an entry
// all e : Entry | lone entries.e
// all disj x, y : Dir | no (x.entries & y.entries)
// all x,y : Dir | x != y implies no (x.entries & y.entries)
}
fact {
// this is the second part, strengthening it, prevent orphan entries not in
// directories
entries in Dir one -> Entry
}
fact {
// Different entries in the same directory must have different names
// name.n goes to the parent of the Name relation
// lone is at most one
all d : Dir, n : Name | lone (d.entries & name.n)
// all d : Dir, disj x, y : d.entries | x.name != y.name
}
fact {
// A directory cannot be contained in more than one entry
all d : Dir | lone object.d
// This is wrong because it forces relation object to only
// relate entries to directories (excluding files)
// object in Entry lone -> Dir
}
fact {
// Every object except the root is contained somewhere
Entry.object = Object - Root
}
fact {
// Directories cannot contain themselves: direct
all d : Dir | d not in d.entries.object
// Directories cannot contain themselves directly or indirectly
all d : Dir | d not in d.^(entries.object)
}
assert no_partitions {
// Every object is reachable from the root
Object - Root = Root.^(entries.object)
}
check no_partitions
run example {
some File
some Dir - Root
} for 5
// At the point where it says "but we still have two issues",
// I wanted to see an example of directories contained in themselvrs
run example2 {
some d: Dir - Root | some (d.entries.object & d)
} for 5
|
src/common/sp-strings.adb | jquorning/septum | 236 | 27607 | <filename>src/common/sp-strings.adb<gh_stars>100-1000
-------------------------------------------------------------------------------
-- Copyright 2021, The Septum Developers (see AUTHORS file)
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
-- http://www.apache.org/licenses/LICENSE-2.0
-- Unless required by applicable law or agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.
-------------------------------------------------------------------------------
with Ada.Strings.Fixed;
with Ada.Characters.Latin_1;
package body SP.Strings is
function Zip (Left : SP.Strings.String_Vectors.Vector; Right : SP.Strings.String_Vectors.Vector)
return Ada.Strings.Unbounded.Unbounded_String
is
use Ada.Strings.Unbounded;
use SP.Strings.String_Vectors;
L : Natural := 1;
R : Natural := 1;
begin
return Result : Ada.Strings.Unbounded.Unbounded_String do
while L <= Natural (Length (Left)) or else R <= Natural (Length (Right)) loop
if L <= Natural (Length (Left)) then
Append (Result, Left (L));
L := L + 1;
end if;
if R <= Natural (Length (Right)) then
Append (Result, Right (R));
R := R + 1;
end if;
end loop;
end return;
end Zip;
function Format_Array (S : SP.Strings.String_Vectors.Vector) return Ada.Strings.Unbounded.Unbounded_String is
use Ada.Strings.Unbounded;
Result : Unbounded_String;
begin
Append (Result, To_Unbounded_String ("["));
for Elem of S loop
Append (Result, Ada.Characters.Latin_1.Quotation);
Append (Result, Elem);
Append (Result, Ada.Characters.Latin_1.Quotation);
Append (Result, Ada.Characters.Latin_1.Comma);
Append (Result, To_Unbounded_String (" "));
end loop;
Append (Result, To_Unbounded_String ("]"));
return Result;
end Format_Array;
-- TODO: This will eventually need to be rewritten to account for multi-byte
-- sequences in UTF-8. Incurring technical debt here on purpose to try to get
-- the command line formatter stood up more quickly.
function Make (S : String) return Exploded_Line is
-- Use half-open ranges here. The next slice is going to be
-- [First, After_Last). This allows "empty" ranges when Fire = After_Last.
After_Last : Natural := 1;
Result : Exploded_Line;
use Ada.Strings.Unbounded;
begin
if S'Length = 0 then
return E : Exploded_Line do null; end return;
end if;
while After_Last <= S'Length loop
-- This section is a spacer since, either a new line is being split
-- or this is starting a whitespace section after consuming some text.
--
-- To reduce special casing, empty leading space is added to the
-- exploded line, this maintains the property that Spacers(i) is what
-- preceeds Words(i).
declare
First : constant Natural := After_Last;
begin
After_Last := Ada.Strings.Fixed.Index_Non_Blank (S, After_Last);
-- No more text follows the whitespace.
exit when After_Last = 0;
Result.Spacers.Append (To_Unbounded_String (S (First .. After_Last - 1)));
exit when After_Last > S'Length;
end;
-- A non-space section, as designated as starting with a non-blank character.
-- This section is trickier as multiple cases have to be resolved.
-- 1. Dealing with quoted sections. Once a quoted section has started,
-- it can only be undone by an unescaped quoted character.
-- 2. Escaped characters. Escaped spaces might appear which hamper the
-- ability to delineate words by spaces alone.
-- 3. Don't run off the end of the string.
--
-- N.B the usage of / on Windows is commonplace, so requiring uses
-- to use / or \\ for a "\" seems reasonable.
--
-- In practice, spaces appear quite often in queries, especially when looking
-- for error messages and some Window directories.
declare
Escaped : Boolean := False;
Quoted : Boolean := False;
Quote_Char : Character := ' ';
Next_Char : Character;
Word : Unbounded_String;
begin
while After_Last <= S'Length loop
Next_Char := S (After_Last);
-- The previous character was escaped, so treat the next
-- character as a literal.
--
-- This appears before quote checks to prevent escaped
-- quotes from changing the quote state.
if Escaped then
Append (Word, Next_Char);
Escaped := False;
else
case Next_Char is
when '\' =>
Escaped := True;
Append (Word, Next_Char);
when Ada.Characters.Latin_1.Quotation =>
if not Quoted then
Quoted := True;
Quote_Char := Ada.Characters.Latin_1.Quotation;
elsif Quote_Char = Ada.Characters.Latin_1.Quotation then
Quoted := False;
end if;
Append (Word, Next_Char);
when Ada.Characters.Latin_1.Apostrophe =>
if not Quoted then
Quoted := True;
Quote_Char := Ada.Characters.Latin_1.Apostrophe;
elsif Quote_Char = Ada.Characters.Latin_1.Apostrophe then
Quoted := False;
end if;
Append (Word, Next_Char);
-- Whitespace is only the end of the word if it's not
-- escaped or in a quoted section.
when Ada.Characters.Latin_1.Space | Ada.Characters.Latin_1.CR | Ada.Characters.Latin_1.HT | Ada.Characters.Latin_1.FF =>
-- Exit the loop here to keep Current pointing
-- to the start of the whitespace.
if Quoted then
Append (Word, Next_Char);
else
exit;
end if;
when others =>
Append (Word, Next_Char);
end case;
end if;
After_Last := After_Last + 1;
end loop;
pragma Assert (Length (Word) > 0);
if SP.Strings.Is_Quoted (ASU.To_String (Word)) and then Length (Word) > 1 then
Result.Words.Append (Unbounded_Slice (Word, 2, Length (Word) - 1));
else
Result.Words.Append (Word);
end if;
end;
end loop;
return Result;
end Make;
function Common_Prefix_Length
(A : Ada.Strings.Unbounded.Unbounded_String; B : Ada.Strings.Unbounded.Unbounded_String) return Natural is
use Ada.Strings.Unbounded;
-- Finds the number of common starting characters between two strings.
begin
return Count : Natural := 0 do
while Count < Length (A) and then Count < Length (B)
and then Element (A, Count + 1) = Element (B, Count + 1) loop
Count := Count + 1;
end loop;
end return;
end Common_Prefix_Length;
function Matching_Suffix (Current, Desired : ASU.Unbounded_String) return ASU.Unbounded_String is
Prefix_Length : constant Natural := SP.Strings.Common_Prefix_Length (Current, Desired);
Suffix : constant ASU.Unbounded_String := ASU.Unbounded_Slice (Desired, Prefix_Length + 1, ASU.Length (Desired));
begin
return Suffix;
end Matching_Suffix;
function Is_Quoted (S : String) return Boolean is
use Ada.Characters.Latin_1;
Quote_Types : constant array (Positive range <>) of Character := (Quotation, Apostrophe);
begin
return S'Length > 0 and then S (S'First) = S (S'Last) and then (for some X of Quote_Types => X = S (S'First));
end Is_Quoted;
function Split_Command (Input : ASU.Unbounded_String) return SP.Strings.String_Vectors.Vector is
Exploded : constant SP.Strings.Exploded_Line := SP.Strings.Make (ASU.To_String (Input));
begin
return Result : SP.Strings.String_Vectors.Vector do
for Word of Exploded.Words loop
if SP.Strings.Is_Quoted (ASU.To_String (Word)) then
Result.Append (ASU.Unbounded_Slice (Word, 2, ASU.Length (Word) - 1));
else
Result.Append (Word);
end if;
end loop;
end return;
end Split_Command;
function Get_Cursor_Word (E : SP.Strings.Exploded_Line; Cursor_Position : Positive) return Natural
is
Next : Natural := 1;
Current_Cursor : Natural := 1;
begin
while Next <= Natural (E.Spacers.Length) loop
Current_Cursor := Current_Cursor + ASU.To_String (E.Spacers (Next))'Length;
if Next <= Positive (E.Words.Length) then
Current_Cursor := Current_Cursor + ASU.To_String (E.Words (Next))'Length;
end if;
exit when Current_Cursor >= Cursor_Position;
Next := Next + 1;
end loop;
return Next;
end Get_Cursor_Word;
function Cursor_Position_At_End_Of_Word (E : SP.Strings.Exploded_Line; Word : Positive) return Positive is
begin
return Cursor_Position : Positive := 1 do
for I in 1 .. Word loop
Cursor_Position := Cursor_Position + ASU.Length (E.Spacers (I));
Cursor_Position := Cursor_Position + ASU.Length (E.Words (I));
end loop;
end return;
end Cursor_Position_At_End_Of_Word;
end SP.Strings;
|
tmp1/c55x-sim2/foo/Debug/switch_test.asm | jwestmoreland/eZdsp-DBG-sim | 1 | 27141 | ;*******************************************************************************
;* TMS320C55x C/C++ Codegen PC v4.4.1 *
;* Date/Time created: Sat Sep 29 23:07:15 2018 *
;*******************************************************************************
.compiler_opts --hll_source=on --mem_model:code=flat --mem_model:data=large --object_format=coff --silicon_core_3_3 --symdebug:dwarf
.mmregs
.cpl_on
.arms_on
.c54cm_off
.asg AR6, FP
.asg XAR6, XFP
.asg DPH, MDP
.model call=c55_std
.model mem=large
.noremark 5002 ; code respects overwrite rules
;*******************************************************************************
;* GLOBAL FILE PARAMETERS *
;* *
;* Architecture : TMS320C55x *
;* Optimizing for : Speed *
;* Memory : Large Model (23-Bit Data Pointers) *
;* Calls : Normal Library ASM calls *
;* Debug Info : Standard TI Debug Information *
;*******************************************************************************
$C$DW$CU .dwtag DW_TAG_compile_unit
.dwattr $C$DW$CU, DW_AT_name("../c5535_bsl_revc/ezdsp5535_v1/tests/switch/switch_test.c")
.dwattr $C$DW$CU, DW_AT_producer("TMS320C55x C/C++ Codegen PC v4.4.1 Copyright (c) 1996-2012 Texas Instruments Incorporated")
.dwattr $C$DW$CU, DW_AT_TI_version(0x01)
.dwattr $C$DW$CU, DW_AT_comp_dir("F:\eZdsp_DBG\tmp1\c55x-sim2\foo\Debug")
;******************************************************************************
;* CINIT RECORDS *
;******************************************************************************
.sect ".cinit"
.align 1
.field 1,16
.field _sw1State+0,24
.field 0,8
.field 0,16 ; _sw1State @ 0
.sect ".cinit"
.align 1
.field 1,16
.field _sw2State+0,24
.field 0,8
.field 0,16 ; _sw2State @ 0
$C$DW$1 .dwtag DW_TAG_subprogram, DW_AT_name("EZDSP5535_LED_init")
.dwattr $C$DW$1, DW_AT_TI_symbol_name("_EZDSP5535_LED_init")
.dwattr $C$DW$1, DW_AT_type(*$C$DW$T$22)
.dwattr $C$DW$1, DW_AT_declaration
.dwattr $C$DW$1, DW_AT_external
$C$DW$2 .dwtag DW_TAG_subprogram, DW_AT_name("EZDSP5535_LED_toggle")
.dwattr $C$DW$2, DW_AT_TI_symbol_name("_EZDSP5535_LED_toggle")
.dwattr $C$DW$2, DW_AT_type(*$C$DW$T$22)
.dwattr $C$DW$2, DW_AT_declaration
.dwattr $C$DW$2, DW_AT_external
$C$DW$3 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$3, DW_AT_type(*$C$DW$T$25)
.dwendtag $C$DW$2
$C$DW$4 .dwtag DW_TAG_subprogram, DW_AT_name("EZDSP5535_SAR_init")
.dwattr $C$DW$4, DW_AT_TI_symbol_name("_EZDSP5535_SAR_init")
.dwattr $C$DW$4, DW_AT_type(*$C$DW$T$19)
.dwattr $C$DW$4, DW_AT_declaration
.dwattr $C$DW$4, DW_AT_external
$C$DW$5 .dwtag DW_TAG_subprogram, DW_AT_name("EZDSP5535_SAR_getKey")
.dwattr $C$DW$5, DW_AT_TI_symbol_name("_EZDSP5535_SAR_getKey")
.dwattr $C$DW$5, DW_AT_type(*$C$DW$T$25)
.dwattr $C$DW$5, DW_AT_declaration
.dwattr $C$DW$5, DW_AT_external
$C$DW$6 .dwtag DW_TAG_subprogram, DW_AT_name("printf")
.dwattr $C$DW$6, DW_AT_TI_symbol_name("_printf")
.dwattr $C$DW$6, DW_AT_type(*$C$DW$T$10)
.dwattr $C$DW$6, DW_AT_declaration
.dwattr $C$DW$6, DW_AT_external
$C$DW$7 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$7, DW_AT_type(*$C$DW$T$32)
$C$DW$8 .dwtag DW_TAG_unspecified_parameters
.dwendtag $C$DW$6
.global _sw1State
.bss _sw1State,1,0,0
$C$DW$9 .dwtag DW_TAG_variable, DW_AT_name("sw1State")
.dwattr $C$DW$9, DW_AT_TI_symbol_name("_sw1State")
.dwattr $C$DW$9, DW_AT_location[DW_OP_addr _sw1State]
.dwattr $C$DW$9, DW_AT_type(*$C$DW$T$19)
.dwattr $C$DW$9, DW_AT_external
.global _sw2State
.bss _sw2State,1,0,0
$C$DW$10 .dwtag DW_TAG_variable, DW_AT_name("sw2State")
.dwattr $C$DW$10, DW_AT_TI_symbol_name("_sw2State")
.dwattr $C$DW$10, DW_AT_location[DW_OP_addr _sw2State]
.dwattr $C$DW$10, DW_AT_type(*$C$DW$T$19)
.dwattr $C$DW$10, DW_AT_external
; F:\t\cc5p5\ccsv5\tools\compiler\c5500_4.4.1\bin\acp55.exe -@f:\\AppData\\Local\\Temp\\2482012
.sect ".text"
.align 4
.global _switch_test
$C$DW$11 .dwtag DW_TAG_subprogram, DW_AT_name("switch_test")
.dwattr $C$DW$11, DW_AT_low_pc(_switch_test)
.dwattr $C$DW$11, DW_AT_high_pc(0x00)
.dwattr $C$DW$11, DW_AT_TI_symbol_name("_switch_test")
.dwattr $C$DW$11, DW_AT_external
.dwattr $C$DW$11, DW_AT_type(*$C$DW$T$22)
.dwattr $C$DW$11, DW_AT_TI_begin_file("../c5535_bsl_revc/ezdsp5535_v1/tests/switch/switch_test.c")
.dwattr $C$DW$11, DW_AT_TI_begin_line(0x34)
.dwattr $C$DW$11, DW_AT_TI_begin_column(0x07)
.dwattr $C$DW$11, DW_AT_TI_max_frame_size(0x06)
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/tests/switch/switch_test.c",line 53,column 1,is_stmt,address _switch_test
.dwfde $C$DW$CIE, _switch_test
;*******************************************************************************
;* FUNCTION NAME: switch_test *
;* *
;* Function Uses Regs : T0,T2,T3,AR1,AR3,XAR3,AR5,SP,TC1,M40,SATA,SATD,RDM, *
;* FRCT,SMUL *
;* Save On Entry Regs : T2,T3,AR5 *
;* Stack Frame : Compact (No Frame Pointer, w/ debug) *
;* Total Frame Size : 6 words *
;* (1 return address/alignment) *
;* (2 function parameters) *
;* (3 register save area) *
;* Min System Stack : 2 words *
;*******************************************************************************
_switch_test:
.dwcfi cfa_offset, 1
.dwcfi save_reg_to_mem, 91, -1
PSH T2
.dwcfi cfa_offset, 2
.dwcfi save_reg_to_mem, 14, -2
PSH T3
.dwcfi cfa_offset, 3
.dwcfi save_reg_to_mem, 15, -3
PSHBOTH XAR5
.dwcfi cfa_offset, 4
.dwcfi save_reg_to_mem, 26, -4
AADD #-2, SP
.dwcfi cfa_offset, 6
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/tests/switch/switch_test.c",line 56,column 5,is_stmt
AMOV #$C$FSL1, XAR3 ; |56|
MOV XAR3, dbl(*SP(#0))
$C$DW$12 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$12, DW_AT_low_pc(0x00)
.dwattr $C$DW$12, DW_AT_name("_printf")
.dwattr $C$DW$12, DW_AT_TI_call
CALL #_printf ; |56|
; call occurs [#_printf] ; |56|
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/tests/switch/switch_test.c",line 57,column 5,is_stmt
AMOV #$C$FSL2, XAR3 ; |57|
MOV XAR3, dbl(*SP(#0))
$C$DW$13 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$13, DW_AT_low_pc(0x00)
.dwattr $C$DW$13, DW_AT_name("_printf")
.dwattr $C$DW$13, DW_AT_TI_call
CALL #_printf ; |57|
; call occurs [#_printf] ; |57|
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/tests/switch/switch_test.c",line 60,column 2,is_stmt
$C$DW$14 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$14, DW_AT_low_pc(0x00)
.dwattr $C$DW$14, DW_AT_name("_EZDSP5535_SAR_init")
.dwattr $C$DW$14, DW_AT_TI_call
CALL #_EZDSP5535_SAR_init ; |60|
; call occurs [#_EZDSP5535_SAR_init] ; |60|
BCC $C$L1,T0 == #0 ; |60|
; branchcc occurs ; |60|
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/tests/switch/switch_test.c",line 61,column 6,is_stmt
B $C$L8 ; |61|
|| MOV #1, T0
; branch occurs ; |61|
$C$L1:
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/tests/switch/switch_test.c",line 64,column 5,is_stmt
$C$DW$15 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$15, DW_AT_low_pc(0x00)
.dwattr $C$DW$15, DW_AT_name("_EZDSP5535_LED_init")
.dwattr $C$DW$15, DW_AT_TI_call
CALL #_EZDSP5535_LED_init ; |64|
; call occurs [#_EZDSP5535_LED_init] ; |64|
MOV #405, T2 ; |111|
MOV #510, T3 ; |100|
MOV #680, AR5 ; |88|
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/tests/switch/switch_test.c",line 86,column 7,is_stmt
$C$L2:
$C$DW$L$_switch_test$4$B:
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/tests/switch/switch_test.c",line 88,column 2,is_stmt
$C$DW$16 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$16, DW_AT_low_pc(0x00)
.dwattr $C$DW$16, DW_AT_name("_EZDSP5535_SAR_getKey")
.dwattr $C$DW$16, DW_AT_TI_call
CALL #_EZDSP5535_SAR_getKey ; |88|
; call occurs [#_EZDSP5535_SAR_getKey] ; |88|
CMPU T0 != AR5, TC1 ; |88|
BCC $C$L3,TC1 ; |88|
; branchcc occurs ; |88|
$C$DW$L$_switch_test$4$E:
$C$DW$L$_switch_test$5$B:
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/tests/switch/switch_test.c",line 90,column 3,is_stmt
MOV *(#_sw1State), AR1 ; |90|
BCC $C$L4,AR1 == #0 ; |90|
; branchcc occurs ; |90|
$C$DW$L$_switch_test$5$E:
$C$DW$L$_switch_test$6$B:
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/tests/switch/switch_test.c",line 92,column 7,is_stmt
$C$DW$17 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$17, DW_AT_low_pc(0x00)
.dwattr $C$DW$17, DW_AT_name("_EZDSP5535_LED_toggle")
.dwattr $C$DW$17, DW_AT_TI_call
CALL #_EZDSP5535_LED_toggle ; |92|
|| MOV #0, T0
; call occurs [#_EZDSP5535_LED_toggle] ; |92|
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/tests/switch/switch_test.c",line 93,column 7,is_stmt
MOV #0, *(#_sw1State) ; |93|
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/tests/switch/switch_test.c",line 95,column 2,is_stmt
B $C$L4 ; |95|
; branch occurs ; |95|
$C$DW$L$_switch_test$6$E:
$C$L3:
$C$DW$L$_switch_test$7$B:
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/tests/switch/switch_test.c",line 97,column 6,is_stmt
MOV #1, *(#_sw1State) ; |97|
$C$DW$L$_switch_test$7$E:
$C$L4:
$C$DW$L$_switch_test$8$B:
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/tests/switch/switch_test.c",line 100,column 2,is_stmt
$C$DW$18 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$18, DW_AT_low_pc(0x00)
.dwattr $C$DW$18, DW_AT_name("_EZDSP5535_SAR_getKey")
.dwattr $C$DW$18, DW_AT_TI_call
CALL #_EZDSP5535_SAR_getKey ; |100|
; call occurs [#_EZDSP5535_SAR_getKey] ; |100|
CMPU T0 != T3, TC1 ; |100|
BCC $C$L5,TC1 ; |100|
; branchcc occurs ; |100|
$C$DW$L$_switch_test$8$E:
$C$DW$L$_switch_test$9$B:
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/tests/switch/switch_test.c",line 102,column 3,is_stmt
MOV *(#_sw2State), AR1 ; |102|
BCC $C$L6,AR1 == #0 ; |102|
; branchcc occurs ; |102|
$C$DW$L$_switch_test$9$E:
$C$DW$L$_switch_test$10$B:
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/tests/switch/switch_test.c",line 104,column 7,is_stmt
$C$DW$19 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$19, DW_AT_low_pc(0x00)
.dwattr $C$DW$19, DW_AT_name("_EZDSP5535_LED_toggle")
.dwattr $C$DW$19, DW_AT_TI_call
CALL #_EZDSP5535_LED_toggle ; |104|
|| MOV #3, T0
; call occurs [#_EZDSP5535_LED_toggle] ; |104|
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/tests/switch/switch_test.c",line 105,column 10,is_stmt
MOV #0, *(#_sw2State) ; |105|
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/tests/switch/switch_test.c",line 107,column 2,is_stmt
B $C$L6 ; |107|
; branch occurs ; |107|
$C$DW$L$_switch_test$10$E:
$C$L5:
$C$DW$L$_switch_test$11$B:
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/tests/switch/switch_test.c",line 109,column 6,is_stmt
MOV #1, *(#_sw2State) ; |109|
$C$DW$L$_switch_test$11$E:
$C$L6:
$C$DW$L$_switch_test$12$B:
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/tests/switch/switch_test.c",line 111,column 6,is_stmt
$C$DW$20 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$20, DW_AT_low_pc(0x00)
.dwattr $C$DW$20, DW_AT_name("_EZDSP5535_SAR_getKey")
.dwattr $C$DW$20, DW_AT_TI_call
CALL #_EZDSP5535_SAR_getKey ; |111|
; call occurs [#_EZDSP5535_SAR_getKey] ; |111|
CMPU T0 != T2, TC1 ; |111|
BCC $C$L2,TC1 ; |111|
; branchcc occurs ; |111|
$C$DW$L$_switch_test$12$E:
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/tests/switch/switch_test.c",line 113,column 7,is_stmt
$C$DW$21 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$21, DW_AT_low_pc(0x00)
.dwattr $C$DW$21, DW_AT_name("_EZDSP5535_LED_toggle")
.dwattr $C$DW$21, DW_AT_TI_call
CALL #_EZDSP5535_LED_toggle ; |113|
|| MOV #1, T0
; call occurs [#_EZDSP5535_LED_toggle] ; |113|
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/tests/switch/switch_test.c",line 114,column 7,is_stmt
$C$DW$22 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$22, DW_AT_low_pc(0x00)
.dwattr $C$DW$22, DW_AT_name("_EZDSP5535_LED_toggle")
.dwattr $C$DW$22, DW_AT_TI_call
CALL #_EZDSP5535_LED_toggle ; |114|
|| MOV #2, T0
; call occurs [#_EZDSP5535_LED_toggle] ; |114|
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/tests/switch/switch_test.c",line 115,column 7,is_stmt
B $C$L7 ; |115|
; branch occurs ; |115|
$C$L7:
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/tests/switch/switch_test.c",line 118,column 5,is_stmt
MOV #0, T0
$C$L8:
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/tests/switch/switch_test.c",line 119,column 1,is_stmt
AADD #2, SP
.dwcfi cfa_offset, 4
POPBOTH XAR5
.dwcfi restore_reg, 26
.dwcfi cfa_offset, 3
POP T3
.dwcfi restore_reg, 15
.dwcfi cfa_offset, 2
POP T2
.dwcfi restore_reg, 14
.dwcfi cfa_offset, 1
$C$DW$23 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$23, DW_AT_low_pc(0x00)
.dwattr $C$DW$23, DW_AT_TI_return
RET
; return occurs
$C$DW$24 .dwtag DW_TAG_TI_loop
.dwattr $C$DW$24, DW_AT_name("F:\eZdsp_DBG\tmp1\c55x-sim2\foo\Debug\switch_test.asm:$C$L2:1:1538287636")
.dwattr $C$DW$24, DW_AT_TI_begin_file("../c5535_bsl_revc/ezdsp5535_v1/tests/switch/switch_test.c")
.dwattr $C$DW$24, DW_AT_TI_begin_line(0x56)
.dwattr $C$DW$24, DW_AT_TI_end_line(0x75)
$C$DW$25 .dwtag DW_TAG_TI_loop_range
.dwattr $C$DW$25, DW_AT_low_pc($C$DW$L$_switch_test$4$B)
.dwattr $C$DW$25, DW_AT_high_pc($C$DW$L$_switch_test$4$E)
$C$DW$26 .dwtag DW_TAG_TI_loop_range
.dwattr $C$DW$26, DW_AT_low_pc($C$DW$L$_switch_test$5$B)
.dwattr $C$DW$26, DW_AT_high_pc($C$DW$L$_switch_test$5$E)
$C$DW$27 .dwtag DW_TAG_TI_loop_range
.dwattr $C$DW$27, DW_AT_low_pc($C$DW$L$_switch_test$6$B)
.dwattr $C$DW$27, DW_AT_high_pc($C$DW$L$_switch_test$6$E)
$C$DW$28 .dwtag DW_TAG_TI_loop_range
.dwattr $C$DW$28, DW_AT_low_pc($C$DW$L$_switch_test$7$B)
.dwattr $C$DW$28, DW_AT_high_pc($C$DW$L$_switch_test$7$E)
$C$DW$29 .dwtag DW_TAG_TI_loop_range
.dwattr $C$DW$29, DW_AT_low_pc($C$DW$L$_switch_test$8$B)
.dwattr $C$DW$29, DW_AT_high_pc($C$DW$L$_switch_test$8$E)
$C$DW$30 .dwtag DW_TAG_TI_loop_range
.dwattr $C$DW$30, DW_AT_low_pc($C$DW$L$_switch_test$9$B)
.dwattr $C$DW$30, DW_AT_high_pc($C$DW$L$_switch_test$9$E)
$C$DW$31 .dwtag DW_TAG_TI_loop_range
.dwattr $C$DW$31, DW_AT_low_pc($C$DW$L$_switch_test$10$B)
.dwattr $C$DW$31, DW_AT_high_pc($C$DW$L$_switch_test$10$E)
$C$DW$32 .dwtag DW_TAG_TI_loop_range
.dwattr $C$DW$32, DW_AT_low_pc($C$DW$L$_switch_test$11$B)
.dwattr $C$DW$32, DW_AT_high_pc($C$DW$L$_switch_test$11$E)
$C$DW$33 .dwtag DW_TAG_TI_loop_range
.dwattr $C$DW$33, DW_AT_low_pc($C$DW$L$_switch_test$12$B)
.dwattr $C$DW$33, DW_AT_high_pc($C$DW$L$_switch_test$12$E)
.dwendtag $C$DW$24
.dwattr $C$DW$11, DW_AT_TI_end_file("../c5535_bsl_revc/ezdsp5535_v1/tests/switch/switch_test.c")
.dwattr $C$DW$11, DW_AT_TI_end_line(0x77)
.dwattr $C$DW$11, DW_AT_TI_end_column(0x01)
.dwendentry
.dwendtag $C$DW$11
;*******************************************************************************
;* FAR STRINGS *
;*******************************************************************************
.sect ".const:.string"
.align 2
$C$FSL1: .string " Press SW1 or SW2 to toggle LEDs.",10,0
.align 2
$C$FSL2: .string " Press both to toggle LEDs DS3 & DS4 and end test.",10,0
;******************************************************************************
;* UNDEFINED EXTERNAL REFERENCES *
;******************************************************************************
.global _EZDSP5535_LED_init
.global _EZDSP5535_LED_toggle
.global _EZDSP5535_SAR_init
.global _EZDSP5535_SAR_getKey
.global _printf
;*******************************************************************************
;* TYPE INFORMATION *
;*******************************************************************************
$C$DW$T$4 .dwtag DW_TAG_base_type
.dwattr $C$DW$T$4, DW_AT_encoding(DW_ATE_boolean)
.dwattr $C$DW$T$4, DW_AT_name("bool")
.dwattr $C$DW$T$4, DW_AT_byte_size(0x01)
$C$DW$T$5 .dwtag DW_TAG_base_type
.dwattr $C$DW$T$5, DW_AT_encoding(DW_ATE_signed_char)
.dwattr $C$DW$T$5, DW_AT_name("signed char")
.dwattr $C$DW$T$5, DW_AT_byte_size(0x01)
$C$DW$T$6 .dwtag DW_TAG_base_type
.dwattr $C$DW$T$6, DW_AT_encoding(DW_ATE_unsigned_char)
.dwattr $C$DW$T$6, DW_AT_name("unsigned char")
.dwattr $C$DW$T$6, DW_AT_byte_size(0x01)
$C$DW$T$19 .dwtag DW_TAG_typedef, DW_AT_name("Uint8")
.dwattr $C$DW$T$19, DW_AT_type(*$C$DW$T$6)
.dwattr $C$DW$T$19, DW_AT_language(DW_LANG_C)
$C$DW$T$7 .dwtag DW_TAG_base_type
.dwattr $C$DW$T$7, DW_AT_encoding(DW_ATE_signed_char)
.dwattr $C$DW$T$7, DW_AT_name("wchar_t")
.dwattr $C$DW$T$7, DW_AT_byte_size(0x01)
$C$DW$T$8 .dwtag DW_TAG_base_type
.dwattr $C$DW$T$8, DW_AT_encoding(DW_ATE_signed)
.dwattr $C$DW$T$8, DW_AT_name("short")
.dwattr $C$DW$T$8, DW_AT_byte_size(0x01)
$C$DW$T$22 .dwtag DW_TAG_typedef, DW_AT_name("Int16")
.dwattr $C$DW$T$22, DW_AT_type(*$C$DW$T$8)
.dwattr $C$DW$T$22, DW_AT_language(DW_LANG_C)
$C$DW$T$9 .dwtag DW_TAG_base_type
.dwattr $C$DW$T$9, DW_AT_encoding(DW_ATE_unsigned)
.dwattr $C$DW$T$9, DW_AT_name("unsigned short")
.dwattr $C$DW$T$9, DW_AT_byte_size(0x01)
$C$DW$T$25 .dwtag DW_TAG_typedef, DW_AT_name("Uint16")
.dwattr $C$DW$T$25, DW_AT_type(*$C$DW$T$9)
.dwattr $C$DW$T$25, DW_AT_language(DW_LANG_C)
$C$DW$T$10 .dwtag DW_TAG_base_type
.dwattr $C$DW$T$10, DW_AT_encoding(DW_ATE_signed)
.dwattr $C$DW$T$10, DW_AT_name("int")
.dwattr $C$DW$T$10, DW_AT_byte_size(0x01)
$C$DW$T$11 .dwtag DW_TAG_base_type
.dwattr $C$DW$T$11, DW_AT_encoding(DW_ATE_unsigned)
.dwattr $C$DW$T$11, DW_AT_name("unsigned int")
.dwattr $C$DW$T$11, DW_AT_byte_size(0x01)
$C$DW$T$12 .dwtag DW_TAG_base_type
.dwattr $C$DW$T$12, DW_AT_encoding(DW_ATE_signed)
.dwattr $C$DW$T$12, DW_AT_name("long")
.dwattr $C$DW$T$12, DW_AT_byte_size(0x02)
$C$DW$T$13 .dwtag DW_TAG_base_type
.dwattr $C$DW$T$13, DW_AT_encoding(DW_ATE_unsigned)
.dwattr $C$DW$T$13, DW_AT_name("unsigned long")
.dwattr $C$DW$T$13, DW_AT_byte_size(0x02)
$C$DW$T$14 .dwtag DW_TAG_base_type
.dwattr $C$DW$T$14, DW_AT_encoding(DW_ATE_signed)
.dwattr $C$DW$T$14, DW_AT_name("long long")
.dwattr $C$DW$T$14, DW_AT_byte_size(0x04)
.dwattr $C$DW$T$14, DW_AT_bit_size(0x28)
.dwattr $C$DW$T$14, DW_AT_bit_offset(0x18)
$C$DW$T$15 .dwtag DW_TAG_base_type
.dwattr $C$DW$T$15, DW_AT_encoding(DW_ATE_unsigned)
.dwattr $C$DW$T$15, DW_AT_name("unsigned long long")
.dwattr $C$DW$T$15, DW_AT_byte_size(0x04)
.dwattr $C$DW$T$15, DW_AT_bit_size(0x28)
.dwattr $C$DW$T$15, DW_AT_bit_offset(0x18)
$C$DW$T$16 .dwtag DW_TAG_base_type
.dwattr $C$DW$T$16, DW_AT_encoding(DW_ATE_float)
.dwattr $C$DW$T$16, DW_AT_name("float")
.dwattr $C$DW$T$16, DW_AT_byte_size(0x02)
$C$DW$T$17 .dwtag DW_TAG_base_type
.dwattr $C$DW$T$17, DW_AT_encoding(DW_ATE_float)
.dwattr $C$DW$T$17, DW_AT_name("double")
.dwattr $C$DW$T$17, DW_AT_byte_size(0x02)
$C$DW$T$18 .dwtag DW_TAG_base_type
.dwattr $C$DW$T$18, DW_AT_encoding(DW_ATE_float)
.dwattr $C$DW$T$18, DW_AT_name("long double")
.dwattr $C$DW$T$18, DW_AT_byte_size(0x02)
$C$DW$T$30 .dwtag DW_TAG_base_type
.dwattr $C$DW$T$30, DW_AT_encoding(DW_ATE_signed_char)
.dwattr $C$DW$T$30, DW_AT_name("signed char")
.dwattr $C$DW$T$30, DW_AT_byte_size(0x01)
$C$DW$34 .dwtag DW_TAG_TI_far_type
.dwattr $C$DW$34, DW_AT_type(*$C$DW$T$30)
$C$DW$T$31 .dwtag DW_TAG_const_type
.dwattr $C$DW$T$31, DW_AT_type(*$C$DW$34)
$C$DW$T$32 .dwtag DW_TAG_pointer_type
.dwattr $C$DW$T$32, DW_AT_type(*$C$DW$T$31)
.dwattr $C$DW$T$32, DW_AT_address_class(0x17)
.dwattr $C$DW$CU, DW_AT_language(DW_LANG_C)
;***************************************************************
;* DWARF CIE ENTRIES *
;***************************************************************
$C$DW$CIE .dwcie 91
.dwcfi cfa_register, 36
.dwcfi cfa_offset, 0
.dwcfi undefined, 0
.dwcfi undefined, 1
.dwcfi undefined, 2
.dwcfi undefined, 3
.dwcfi undefined, 4
.dwcfi undefined, 5
.dwcfi undefined, 6
.dwcfi undefined, 7
.dwcfi undefined, 8
.dwcfi undefined, 9
.dwcfi undefined, 10
.dwcfi undefined, 11
.dwcfi undefined, 12
.dwcfi undefined, 13
.dwcfi same_value, 14
.dwcfi same_value, 15
.dwcfi undefined, 16
.dwcfi undefined, 17
.dwcfi undefined, 18
.dwcfi undefined, 19
.dwcfi undefined, 20
.dwcfi undefined, 21
.dwcfi undefined, 22
.dwcfi undefined, 23
.dwcfi undefined, 24
.dwcfi undefined, 25
.dwcfi same_value, 26
.dwcfi same_value, 27
.dwcfi same_value, 28
.dwcfi same_value, 29
.dwcfi same_value, 30
.dwcfi same_value, 31
.dwcfi undefined, 32
.dwcfi undefined, 33
.dwcfi undefined, 34
.dwcfi undefined, 35
.dwcfi undefined, 36
.dwcfi undefined, 37
.dwcfi undefined, 38
.dwcfi undefined, 39
.dwcfi undefined, 40
.dwcfi undefined, 41
.dwcfi undefined, 42
.dwcfi undefined, 43
.dwcfi undefined, 44
.dwcfi undefined, 45
.dwcfi undefined, 46
.dwcfi undefined, 47
.dwcfi undefined, 48
.dwcfi undefined, 49
.dwcfi undefined, 50
.dwcfi undefined, 51
.dwcfi undefined, 52
.dwcfi undefined, 53
.dwcfi undefined, 54
.dwcfi undefined, 55
.dwcfi undefined, 56
.dwcfi undefined, 57
.dwcfi undefined, 58
.dwcfi undefined, 59
.dwcfi undefined, 60
.dwcfi undefined, 61
.dwcfi undefined, 62
.dwcfi undefined, 63
.dwcfi undefined, 64
.dwcfi undefined, 65
.dwcfi undefined, 66
.dwcfi undefined, 67
.dwcfi undefined, 68
.dwcfi undefined, 69
.dwcfi undefined, 70
.dwcfi undefined, 71
.dwcfi undefined, 72
.dwcfi undefined, 73
.dwcfi undefined, 74
.dwcfi undefined, 75
.dwcfi undefined, 76
.dwcfi undefined, 77
.dwcfi undefined, 78
.dwcfi undefined, 79
.dwcfi undefined, 80
.dwcfi undefined, 81
.dwcfi undefined, 82
.dwcfi undefined, 83
.dwcfi undefined, 84
.dwcfi undefined, 85
.dwcfi undefined, 86
.dwcfi undefined, 87
.dwcfi undefined, 88
.dwcfi undefined, 89
.dwcfi undefined, 90
.dwcfi undefined, 91
.dwendentry
;***************************************************************
;* DWARF REGISTER MAP *
;***************************************************************
$C$DW$35 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AC0")
.dwattr $C$DW$35, DW_AT_location[DW_OP_reg0]
$C$DW$36 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AC0")
.dwattr $C$DW$36, DW_AT_location[DW_OP_reg1]
$C$DW$37 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AC0_G")
.dwattr $C$DW$37, DW_AT_location[DW_OP_reg2]
$C$DW$38 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AC1")
.dwattr $C$DW$38, DW_AT_location[DW_OP_reg3]
$C$DW$39 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AC1")
.dwattr $C$DW$39, DW_AT_location[DW_OP_reg4]
$C$DW$40 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AC1_G")
.dwattr $C$DW$40, DW_AT_location[DW_OP_reg5]
$C$DW$41 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AC2")
.dwattr $C$DW$41, DW_AT_location[DW_OP_reg6]
$C$DW$42 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AC2")
.dwattr $C$DW$42, DW_AT_location[DW_OP_reg7]
$C$DW$43 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AC2_G")
.dwattr $C$DW$43, DW_AT_location[DW_OP_reg8]
$C$DW$44 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AC3")
.dwattr $C$DW$44, DW_AT_location[DW_OP_reg9]
$C$DW$45 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AC3")
.dwattr $C$DW$45, DW_AT_location[DW_OP_reg10]
$C$DW$46 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AC3_G")
.dwattr $C$DW$46, DW_AT_location[DW_OP_reg11]
$C$DW$47 .dwtag DW_TAG_TI_assign_register, DW_AT_name("T0")
.dwattr $C$DW$47, DW_AT_location[DW_OP_reg12]
$C$DW$48 .dwtag DW_TAG_TI_assign_register, DW_AT_name("T1")
.dwattr $C$DW$48, DW_AT_location[DW_OP_reg13]
$C$DW$49 .dwtag DW_TAG_TI_assign_register, DW_AT_name("T2")
.dwattr $C$DW$49, DW_AT_location[DW_OP_reg14]
$C$DW$50 .dwtag DW_TAG_TI_assign_register, DW_AT_name("T3")
.dwattr $C$DW$50, DW_AT_location[DW_OP_reg15]
$C$DW$51 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AR0")
.dwattr $C$DW$51, DW_AT_location[DW_OP_reg16]
$C$DW$52 .dwtag DW_TAG_TI_assign_register, DW_AT_name("XAR0")
.dwattr $C$DW$52, DW_AT_location[DW_OP_reg17]
$C$DW$53 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AR1")
.dwattr $C$DW$53, DW_AT_location[DW_OP_reg18]
$C$DW$54 .dwtag DW_TAG_TI_assign_register, DW_AT_name("XAR1")
.dwattr $C$DW$54, DW_AT_location[DW_OP_reg19]
$C$DW$55 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AR2")
.dwattr $C$DW$55, DW_AT_location[DW_OP_reg20]
$C$DW$56 .dwtag DW_TAG_TI_assign_register, DW_AT_name("XAR2")
.dwattr $C$DW$56, DW_AT_location[DW_OP_reg21]
$C$DW$57 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AR3")
.dwattr $C$DW$57, DW_AT_location[DW_OP_reg22]
$C$DW$58 .dwtag DW_TAG_TI_assign_register, DW_AT_name("XAR3")
.dwattr $C$DW$58, DW_AT_location[DW_OP_reg23]
$C$DW$59 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AR4")
.dwattr $C$DW$59, DW_AT_location[DW_OP_reg24]
$C$DW$60 .dwtag DW_TAG_TI_assign_register, DW_AT_name("XAR4")
.dwattr $C$DW$60, DW_AT_location[DW_OP_reg25]
$C$DW$61 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AR5")
.dwattr $C$DW$61, DW_AT_location[DW_OP_reg26]
$C$DW$62 .dwtag DW_TAG_TI_assign_register, DW_AT_name("XAR5")
.dwattr $C$DW$62, DW_AT_location[DW_OP_reg27]
$C$DW$63 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AR6")
.dwattr $C$DW$63, DW_AT_location[DW_OP_reg28]
$C$DW$64 .dwtag DW_TAG_TI_assign_register, DW_AT_name("XAR6")
.dwattr $C$DW$64, DW_AT_location[DW_OP_reg29]
$C$DW$65 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AR7")
.dwattr $C$DW$65, DW_AT_location[DW_OP_reg30]
$C$DW$66 .dwtag DW_TAG_TI_assign_register, DW_AT_name("XAR7")
.dwattr $C$DW$66, DW_AT_location[DW_OP_reg31]
$C$DW$67 .dwtag DW_TAG_TI_assign_register, DW_AT_name("FP")
.dwattr $C$DW$67, DW_AT_location[DW_OP_regx 0x20]
$C$DW$68 .dwtag DW_TAG_TI_assign_register, DW_AT_name("XFP")
.dwattr $C$DW$68, DW_AT_location[DW_OP_regx 0x21]
$C$DW$69 .dwtag DW_TAG_TI_assign_register, DW_AT_name("PC")
.dwattr $C$DW$69, DW_AT_location[DW_OP_regx 0x22]
$C$DW$70 .dwtag DW_TAG_TI_assign_register, DW_AT_name("SP")
.dwattr $C$DW$70, DW_AT_location[DW_OP_regx 0x23]
$C$DW$71 .dwtag DW_TAG_TI_assign_register, DW_AT_name("XSP")
.dwattr $C$DW$71, DW_AT_location[DW_OP_regx 0x24]
$C$DW$72 .dwtag DW_TAG_TI_assign_register, DW_AT_name("BKC")
.dwattr $C$DW$72, DW_AT_location[DW_OP_regx 0x25]
$C$DW$73 .dwtag DW_TAG_TI_assign_register, DW_AT_name("BK03")
.dwattr $C$DW$73, DW_AT_location[DW_OP_regx 0x26]
$C$DW$74 .dwtag DW_TAG_TI_assign_register, DW_AT_name("BK47")
.dwattr $C$DW$74, DW_AT_location[DW_OP_regx 0x27]
$C$DW$75 .dwtag DW_TAG_TI_assign_register, DW_AT_name("ST0")
.dwattr $C$DW$75, DW_AT_location[DW_OP_regx 0x28]
$C$DW$76 .dwtag DW_TAG_TI_assign_register, DW_AT_name("ST1")
.dwattr $C$DW$76, DW_AT_location[DW_OP_regx 0x29]
$C$DW$77 .dwtag DW_TAG_TI_assign_register, DW_AT_name("ST2")
.dwattr $C$DW$77, DW_AT_location[DW_OP_regx 0x2a]
$C$DW$78 .dwtag DW_TAG_TI_assign_register, DW_AT_name("ST3")
.dwattr $C$DW$78, DW_AT_location[DW_OP_regx 0x2b]
$C$DW$79 .dwtag DW_TAG_TI_assign_register, DW_AT_name("MDP")
.dwattr $C$DW$79, DW_AT_location[DW_OP_regx 0x2c]
$C$DW$80 .dwtag DW_TAG_TI_assign_register, DW_AT_name("MDP05")
.dwattr $C$DW$80, DW_AT_location[DW_OP_regx 0x2d]
$C$DW$81 .dwtag DW_TAG_TI_assign_register, DW_AT_name("MDP67")
.dwattr $C$DW$81, DW_AT_location[DW_OP_regx 0x2e]
$C$DW$82 .dwtag DW_TAG_TI_assign_register, DW_AT_name("BRC0")
.dwattr $C$DW$82, DW_AT_location[DW_OP_regx 0x2f]
$C$DW$83 .dwtag DW_TAG_TI_assign_register, DW_AT_name("RSA0")
.dwattr $C$DW$83, DW_AT_location[DW_OP_regx 0x30]
$C$DW$84 .dwtag DW_TAG_TI_assign_register, DW_AT_name("RSA0_H")
.dwattr $C$DW$84, DW_AT_location[DW_OP_regx 0x31]
$C$DW$85 .dwtag DW_TAG_TI_assign_register, DW_AT_name("REA0")
.dwattr $C$DW$85, DW_AT_location[DW_OP_regx 0x32]
$C$DW$86 .dwtag DW_TAG_TI_assign_register, DW_AT_name("REA0_H")
.dwattr $C$DW$86, DW_AT_location[DW_OP_regx 0x33]
$C$DW$87 .dwtag DW_TAG_TI_assign_register, DW_AT_name("BRS1")
.dwattr $C$DW$87, DW_AT_location[DW_OP_regx 0x34]
$C$DW$88 .dwtag DW_TAG_TI_assign_register, DW_AT_name("BRC1")
.dwattr $C$DW$88, DW_AT_location[DW_OP_regx 0x35]
$C$DW$89 .dwtag DW_TAG_TI_assign_register, DW_AT_name("RSA1")
.dwattr $C$DW$89, DW_AT_location[DW_OP_regx 0x36]
$C$DW$90 .dwtag DW_TAG_TI_assign_register, DW_AT_name("RSA1_H")
.dwattr $C$DW$90, DW_AT_location[DW_OP_regx 0x37]
$C$DW$91 .dwtag DW_TAG_TI_assign_register, DW_AT_name("REA1")
.dwattr $C$DW$91, DW_AT_location[DW_OP_regx 0x38]
$C$DW$92 .dwtag DW_TAG_TI_assign_register, DW_AT_name("REA1_H")
.dwattr $C$DW$92, DW_AT_location[DW_OP_regx 0x39]
$C$DW$93 .dwtag DW_TAG_TI_assign_register, DW_AT_name("CSR")
.dwattr $C$DW$93, DW_AT_location[DW_OP_regx 0x3a]
$C$DW$94 .dwtag DW_TAG_TI_assign_register, DW_AT_name("RPTC")
.dwattr $C$DW$94, DW_AT_location[DW_OP_regx 0x3b]
$C$DW$95 .dwtag DW_TAG_TI_assign_register, DW_AT_name("CDP")
.dwattr $C$DW$95, DW_AT_location[DW_OP_regx 0x3c]
$C$DW$96 .dwtag DW_TAG_TI_assign_register, DW_AT_name("XCDP")
.dwattr $C$DW$96, DW_AT_location[DW_OP_regx 0x3d]
$C$DW$97 .dwtag DW_TAG_TI_assign_register, DW_AT_name("TRN0")
.dwattr $C$DW$97, DW_AT_location[DW_OP_regx 0x3e]
$C$DW$98 .dwtag DW_TAG_TI_assign_register, DW_AT_name("TRN1")
.dwattr $C$DW$98, DW_AT_location[DW_OP_regx 0x3f]
$C$DW$99 .dwtag DW_TAG_TI_assign_register, DW_AT_name("BSA01")
.dwattr $C$DW$99, DW_AT_location[DW_OP_regx 0x40]
$C$DW$100 .dwtag DW_TAG_TI_assign_register, DW_AT_name("BSA23")
.dwattr $C$DW$100, DW_AT_location[DW_OP_regx 0x41]
$C$DW$101 .dwtag DW_TAG_TI_assign_register, DW_AT_name("BSA45")
.dwattr $C$DW$101, DW_AT_location[DW_OP_regx 0x42]
$C$DW$102 .dwtag DW_TAG_TI_assign_register, DW_AT_name("BSA67")
.dwattr $C$DW$102, DW_AT_location[DW_OP_regx 0x43]
$C$DW$103 .dwtag DW_TAG_TI_assign_register, DW_AT_name("BSAC")
.dwattr $C$DW$103, DW_AT_location[DW_OP_regx 0x44]
$C$DW$104 .dwtag DW_TAG_TI_assign_register, DW_AT_name("CARRY")
.dwattr $C$DW$104, DW_AT_location[DW_OP_regx 0x45]
$C$DW$105 .dwtag DW_TAG_TI_assign_register, DW_AT_name("TC1")
.dwattr $C$DW$105, DW_AT_location[DW_OP_regx 0x46]
$C$DW$106 .dwtag DW_TAG_TI_assign_register, DW_AT_name("TC2")
.dwattr $C$DW$106, DW_AT_location[DW_OP_regx 0x47]
$C$DW$107 .dwtag DW_TAG_TI_assign_register, DW_AT_name("M40")
.dwattr $C$DW$107, DW_AT_location[DW_OP_regx 0x48]
$C$DW$108 .dwtag DW_TAG_TI_assign_register, DW_AT_name("SXMD")
.dwattr $C$DW$108, DW_AT_location[DW_OP_regx 0x49]
$C$DW$109 .dwtag DW_TAG_TI_assign_register, DW_AT_name("ARMS")
.dwattr $C$DW$109, DW_AT_location[DW_OP_regx 0x4a]
$C$DW$110 .dwtag DW_TAG_TI_assign_register, DW_AT_name("C54CM")
.dwattr $C$DW$110, DW_AT_location[DW_OP_regx 0x4b]
$C$DW$111 .dwtag DW_TAG_TI_assign_register, DW_AT_name("SATA")
.dwattr $C$DW$111, DW_AT_location[DW_OP_regx 0x4c]
$C$DW$112 .dwtag DW_TAG_TI_assign_register, DW_AT_name("SATD")
.dwattr $C$DW$112, DW_AT_location[DW_OP_regx 0x4d]
$C$DW$113 .dwtag DW_TAG_TI_assign_register, DW_AT_name("RDM")
.dwattr $C$DW$113, DW_AT_location[DW_OP_regx 0x4e]
$C$DW$114 .dwtag DW_TAG_TI_assign_register, DW_AT_name("FRCT")
.dwattr $C$DW$114, DW_AT_location[DW_OP_regx 0x4f]
$C$DW$115 .dwtag DW_TAG_TI_assign_register, DW_AT_name("SMUL")
.dwattr $C$DW$115, DW_AT_location[DW_OP_regx 0x50]
$C$DW$116 .dwtag DW_TAG_TI_assign_register, DW_AT_name("INTM")
.dwattr $C$DW$116, DW_AT_location[DW_OP_regx 0x51]
$C$DW$117 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AR0LC")
.dwattr $C$DW$117, DW_AT_location[DW_OP_regx 0x52]
$C$DW$118 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AR1LC")
.dwattr $C$DW$118, DW_AT_location[DW_OP_regx 0x53]
$C$DW$119 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AR2LC")
.dwattr $C$DW$119, DW_AT_location[DW_OP_regx 0x54]
$C$DW$120 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AR3LC")
.dwattr $C$DW$120, DW_AT_location[DW_OP_regx 0x55]
$C$DW$121 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AR4LC")
.dwattr $C$DW$121, DW_AT_location[DW_OP_regx 0x56]
$C$DW$122 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AR5LC")
.dwattr $C$DW$122, DW_AT_location[DW_OP_regx 0x57]
$C$DW$123 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AR6LC")
.dwattr $C$DW$123, DW_AT_location[DW_OP_regx 0x58]
$C$DW$124 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AR7LC")
.dwattr $C$DW$124, DW_AT_location[DW_OP_regx 0x59]
$C$DW$125 .dwtag DW_TAG_TI_assign_register, DW_AT_name("CDPLC")
.dwattr $C$DW$125, DW_AT_location[DW_OP_regx 0x5a]
$C$DW$126 .dwtag DW_TAG_TI_assign_register, DW_AT_name("CIE_RETA")
.dwattr $C$DW$126, DW_AT_location[DW_OP_regx 0x5b]
.dwendtag $C$DW$CU
|
oeis/214/A214615.asm | neoneye/loda-programs | 11 | 80177 | ; A214615: Row sums of A060338.
; Submitted by <NAME>
; 1,1,0,-4,-4,60,160,-2000,-9840,118160,915200,-10900800,-121640000,1448075200,22005235200,-261817504000,-5212995424000,61812285600000,1568367963136000,-18458812571264000,-584639647263360000
mov $1,1
lpb $0
sub $0,1
add $1,$2
sub $2,$1
mul $2,$0
mul $2,$0
lpe
mov $0,$1
|
audio/music/pokemonxdcipherbattlemusic.asm | longlostsoul/EvoYellow | 16 | 173395 | ;I thiiiink this was originally done in crystal, so one may want to go through and look at differences as I suspect it won't be a straight transfer over. But would be cool for Eevee version...
;Music_YellowIntro_Ch1::
; tempo 116
; volume 7, 7
; duty 3
; vibrato 8, 1, 4
; notetype 12, 11, 2
; octave 3
; G# 2
; endchannel
Music_CipherPeonBattle:
musicheader 4, 1, Music_CipherPeonBattle_Ch1
musicheader 1, 2, Music_CipherPeonBattle_Ch2
musicheader 1, 3, Music_CipherPeonBattle_Ch3
musicheader 1, 4, Music_CipherPeonBattle_Ch4
Music_CipherPeonBattle_Ch1:
dutycycle 2
vibrato $12, $15
tone $0001
tempo 128
notetype $c, $81
octave 6
note C_, 2
octave 5
note D#, 2
octave 6
note D_, 2
octave 5
note A#, 2
octave 6
note C_, 2
octave 5
note D#, 2
octave 6
note D_, 2
octave 5
note F_, 2
octave 6
note C_, 2
octave 5
note D#, 2
octave 6
note D#, 2
octave 5
note G#, 2
octave 6
note D_, 2
octave 5
note D_, 2
note B_, 2
note G_, 2
octave 6
note C_, 2
octave 5
note D#, 2
octave 6
note C_, 2
octave 5
note G#, 2
octave 6
note D_, 2
octave 5
note G_, 2
octave 6
note D_, 2
octave 5
note B_, 2
intensity $72
octave 4
note C_, 1
note C_, 1
note C_, 1
note C_, 2
note C_, 2
note C_, 1
note C_, 4
intensity $56
note C_, 4
intensity $81
Music_CipherPeonBattle_Ch1_loop_1:
callchannel Music_CipherPeonBattle_Ch1_branch_1
loopchannel 2, Music_CipherPeonBattle_Ch1_loop_1
octave 6
note C_, 2
octave 5
note A_, 2
octave 6
note C_, 2
octave 5
note F_, 2
octave 6
note C_, 2
octave 5
note A_, 2
octave 6
note C_, 2
octave 5
note C_, 2
Music_CipherPeonBattle_Ch1_loop_2:
callchannel Music_CipherPeonBattle_Ch1_branch_1
loopchannel 3, Music_CipherPeonBattle_Ch1_loop_2
octave 6
note C_, 2
octave 5
note A_, 2
octave 6
note C_, 2
octave 5
note F_, 2
octave 6
note C_, 2
octave 5
note A_, 2
octave 6
note C_, 2
octave 5
note C_, 2
callchannel Music_CipherPeonBattle_Ch1_branch_1
callchannel Music_CipherPeonBattle_Ch1_branch_2
note __, 2
note G#, 2
octave 6
note C#, 2
octave 5
note F_, 2
octave 6
note C#, 2
octave 5
note G#, 2
octave 6
note C#, 1
octave 5
note G#, 1
note F_, 4
note B_, 2
octave 6
note D_, 2
octave 5
note G_, 2
octave 6
note D_, 2
octave 5
note B_, 2
octave 6
note D_, 1
octave 5
note B_, 1
note G_, 2
callchannel Music_CipherPeonBattle_Ch1_branch_2
intensity $92
octave 2
note F_, 1
note G_, 1
note G#, 2
note G_, 1
note G#, 1
note A#, 2
note G#, 1
note A#, 1
octave 3
note C_, 2
octave 2
note B_, 1
octave 3
note C_, 1
note D_, 2
intensity $a2
note C_, 1
note D_, 1
note D#, 2
note D_, 1
note D#, 1
note F_, 2
intensity $b2
note D#, 1
note F_, 1
note G_, 2
note F#, 1
note G_, 1
note A_, 6
dutycycle 1
intensity $97
note A_, 8
intensity $91
note A_, 1
note A_, 2
note A_, 1
intensity $90
note A_, 4
intensity $97
note A_, 12
octave 4
intensity $90
note C_, 4
intensity $97
note C_, 12
octave 3
intensity $90
note B_, 4
intensity $97
note B_, 12
loopchannel 0, Music_CipherPeonBattle_Ch1
Music_CipherPeonBattle_Ch1_branch_1:
octave 6
note C_, 2
octave 5
note G_, 2
octave 6
note C_, 2
octave 5
note D#, 2
octave 6
note C_, 2
octave 5
note G_, 2
octave 6
note C_, 2
octave 5
note C_, 2
endchannel
Music_CipherPeonBattle_Ch1_branch_2:
note __, 2
octave 6
note C_, 2
note D#, 2
octave 5
note G#, 2
octave 6
note D#, 2
note C_, 2
note D#, 1
note C_, 1
octave 5
note G#, 4
note A#, 2
octave 6
note D_, 2
octave 5
note G_, 2
octave 6
note D_, 2
octave 5
note A#, 2
octave 6
note D_, 1
octave 5
note A#, 1
note G_, 2
endchannel
Music_CipherPeonBattle_Ch2:
dutycycle $3
vibrato $12, $15
tone $0001
notetype $8, $94
octave 3
note D#, 2
note C_, 2
octave 2
note G#, 2
note A#, 2
octave 3
note D_, 2
note F_, 2
note G_, 2
note D#, 2
note C_, 2
note D_, 2
note F_, 2
note A#, 2
note G#, 2
note D#, 2
note C_, 2
note D#, 2
note G#, 2
octave 4
note C_, 2
octave 3
note B_, 2
note G_, 2
note D_, 2
note G_, 2
note B_, 2
octave 4
note D_, 2
note C_, 2
octave 3
note G#, 2
note D#, 2
note G#, 2
octave 4
note C_, 2
note D#, 2
note D_, 2
octave 3
note B_, 2
note G_, 2
note B_, 2
octave 4
note D_, 2
note F_, 2
notetype $c, $92
note G_, 1
note G_, 1
note G_, 1
note G_, 2
note G_, 2
note G_, 1
note G_, 4
octave 3
intensity $56
note G_, 4
intensity $b4
octave 3
note C_, 4
octave 2
note G_, 2
octave 3
note C_, 4
intensity $b3
note D_, 4
note D#, 4
note F_, 4
intensity $b6
note G_, 8
note A#, 2
note A_, 1
note F_, 1
note C_, 10
intensity $b4
note A_, 4
intensity $b7
note G_, 16
intensity $b4
octave 3
note C_, 4
octave 2
note G_, 2
octave 3
note C_, 4
intensity $b3
note D_, 4
note D#, 4
note F_, 4
intensity $b6
note G_, 8
note A#, 2
note A_, 1
note A#, 1
octave 4
note C_, 10
octave 3
intensity $b4
note A_, 4
intensity $b7
note G_, 12
dutycycle 0
octave 4
note C_, 2
note D_, 2
note D#, 4
note C_, 2
octave 3
note G#, 4
intensity $b2
note D#, 2
note G#, 1
octave 4
note C_, 1
note D#, 2
intensity $b7
note D_, 4
octave 3
note A#, 2
note G_, 4
intensity $b2
note D_, 2
note G_, 1
note A#, 1
octave 4
note D_, 2
octave 3
intensity $b7
note F_, 6
note G#, 6
octave 4
note C#, 4
note C_, 6
octave 3
note B_, 6
octave 4
note C_, 2
note D_, 2
note D#, 4
note C_, 2
octave 3
note G#, 4
intensity $b2
note D#, 2
note G#, 1
octave 4
note C_, 1
note D#, 2
intensity $b7
note D_, 4
octave 3
note A#, 2
note G_, 4
intensity $b2
note D_, 2
note G_, 1
note A#, 1
octave 4
note D_, 2
octave 3
note F_, 1
note G_, 1
note G#, 2
note G_, 1
note G#, 1
note A#, 2
note G#, 1
note A#, 1
octave 4
note C_, 2
octave 3
note B_, 1
octave 4
note C_, 1
note D_, 2
intensity $c2
note C_, 1
note D_, 1
note D#, 2
note D_, 1
note D#, 1
note F_, 2
intensity $d2
note D#, 1
note F_, 1
note G_, 2
note F#, 1
note G_, 1
note A_, 2
intensity $50
dutycycle 1
octave 5
vibrato $12, $24
note D_, 16
note D_, 8
intensity $57
note D_, 8
intensity $50
note G_, 16
note G_, 8
intensity $57
note G_, 8
loopchannel 0, Music_CipherPeonBattle_Ch2
Music_CipherPeonBattle_Ch3:
Music_CipherPeonBattle_Ch3_loop_1:
notetype $6, $19
octave 2
note C_, 3
note __, 1
loopchannel 24, Music_CipherPeonBattle_Ch3_loop_1
note G_, 1
note __, 1
note G_, 1
note __, 1
note G_, 1
note __, 1
note G_, 2
note __, 2
note G_, 2
note __, 2
note G_, 1
note __, 1
note G_, 2
note __, 14
Music_CipherPeonBattle_Ch3_loop_2:
note C_, 3
note __, 1
loopchannel 16, Music_CipherPeonBattle_Ch3_loop_2
Music_CipherPeonBattle_Ch3_loop_3:
note F_, 3
note __, 1
loopchannel 8, Music_CipherPeonBattle_Ch3_loop_3
Music_CipherPeonBattle_Ch3_loop_4:
note C_, 3
note __, 1
loopchannel 24, Music_CipherPeonBattle_Ch3_loop_4
Music_CipherPeonBattle_Ch3_loop_5:
note F_, 3
note __, 1
loopchannel 8, Music_CipherPeonBattle_Ch3_loop_5
Music_CipherPeonBattle_Ch3_loop_6:
note C_, 3
note __, 1
loopchannel 8, Music_CipherPeonBattle_Ch3_loop_6
note G#, 11
note __, 1
note G#, 7
note __, 1
note G#, 3
note __, 1
note G#, 3
note __, 1
note G#, 3
note __, 1
note G_, 11
note __, 1
note G_, 7
note __, 1
note G_, 3
note __, 1
note G_, 3
note __, 1
note G_, 3
note __, 1
note C#, 11
note __, 1
note C#, 7
note __, 1
note C#, 3
note __, 1
note C#, 3
note __, 1
note C#, 3
note __, 1
note G_, 11
note __, 1
note G_, 7
note __, 1
note G_, 3
note __, 1
note G_, 3
note __, 1
note G_, 3
note __, 1
note G#, 11
note __, 1
note G#, 7
note __, 1
note G#, 3
note __, 1
note G#, 3
note __, 1
note G#, 3
note __, 1
note G_, 11
note __, 1
note G_, 7
note __, 1
note G_, 3
note __, 1
note G_, 3
note __, 1
note G_, 3
note __, 1
note C#, 6
note __, 2
note D#, 6
note __, 2
note F_, 6
note __, 2
note G_, 6
note __, 2
note G#, 3
note __, 1
note G#, 3
note __, 1
note A#, 3
note __, 1
note A#, 3
note __, 1
octave 3
note C_, 3
note __, 1
note C_, 3
note __, 1
note D_, 3
note __, 1
note D_, 4
octave 1
note D_, 8
octave 2
note D_, 15
note __, 1
note D_, 1
note __, 1
note D_, 2
note __, 2
note D_, 1
note __, 1
note D_, 16
intensity $29
note D_, 16
octave 1
intensity $19
note G_, 16
intensity $29
note G_, 16
intensity $19
note G_, 16
intensity $29
note G_, 16
loopchannel 0, Music_CipherPeonBattle_Ch3
Music_CipherPeonBattle_Ch4:
togglenoise $3
notetype $c
Music_CipherPeonBattle_Ch4_loop_main:
note B_, 4
note D_, 4
note D_, 4
note D_, 4
note D_, 4
note D_, 2
note C_, 2
note D#, 4
note D_, 2
note C_, 2
note D_, 4
note D_, 4
note D_, 4
note D_, 4
note C_, 1
note C_, 1
note C_, 1
note C_, 2
note C_, 2
note D#, 1
note C_, 8
Music_CipherPeonBattle_Ch4_loop_1:
callchannel Music_CipherPeonBattle_Ch4_branch_1
loopchannel 7, Music_CipherPeonBattle_Ch4_loop_1
note D#, 2
note C_, 2
note C#, 2
note C_, 2
note C#, 1
note C#, 1
note C_, 2
note C_, 2
note C_, 2
Music_CipherPeonBattle_Ch4_loop_2:
note D_, 1
note C#, 1
note D_, 1
note G#, 1
note C_, 2
note C#, 1
note C#, 1
note D#, 1
note C_, 2
note D#, 1
note C_, 2
note C#, 1
note C#, 1
loopchannel 6, Music_CipherPeonBattle_Ch4_loop_2
Music_CipherPeonBattle_Ch4_loop_3:
note D#, 2
note C_, 2
loopchannel 8, Music_CipherPeonBattle_Ch4_loop_3
Music_CipherPeonBattle_Ch4_loop_4:
callchannel Music_CipherPeonBattle_Ch4_branch_1
loopchannel 4, Music_CipherPeonBattle_Ch4_loop_4
loopchannel 0, Music_CipherPeonBattle_Ch4_loop_main
Music_CipherPeonBattle_Ch4_branch_1:
note D#, 2
note D#, 2
note C_, 2
note C#, 1
note C#, 1
note D#, 1
note C#, 1
note D#, 2
note C_, 2
note C#, 1
note C#, 1
endchannel |
Transynther/x86/_processed/AVXALIGN/_zr_/i7-8650U_0xd2.log_20418_474.asm | ljhsiun2/medusa | 9 | 89374 | .global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r13
push %r8
push %r9
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_normal_ht+0xcbb1, %rsi
lea addresses_UC_ht+0x29b1, %rdi
clflush (%rdi)
nop
nop
nop
and $8787, %r9
mov $90, %rcx
rep movsq
nop
inc %r8
lea addresses_UC_ht+0x8c99, %rdx
and %r13, %r13
movl $0x61626364, (%rdx)
nop
nop
add %r8, %r8
lea addresses_WT_ht+0x143b1, %rcx
nop
nop
nop
cmp $50679, %r8
mov $0x6162636465666768, %r9
movq %r9, %xmm5
vmovups %ymm5, (%rcx)
nop
xor %r13, %r13
lea addresses_WT_ht+0x15f51, %r9
nop
nop
nop
nop
nop
add %rcx, %rcx
mov $0x6162636465666768, %r13
movq %r13, (%r9)
nop
nop
nop
nop
xor $6596, %rcx
lea addresses_WC_ht+0x1e1b1, %rsi
lea addresses_normal_ht+0x43b1, %rdi
nop
nop
nop
nop
nop
and %r11, %r11
mov $104, %rcx
rep movsb
nop
nop
add %r8, %r8
lea addresses_D_ht+0x1442b, %r8
nop
nop
nop
nop
inc %rdx
movw $0x6162, (%r8)
nop
nop
and %r8, %r8
lea addresses_WC_ht+0x8fb1, %rsi
add $17571, %rdx
mov (%rsi), %r13
nop
nop
dec %rsi
lea addresses_D_ht+0x10c15, %r13
cmp %r11, %r11
movb $0x61, (%r13)
nop
nop
nop
nop
xor $55828, %r13
lea addresses_A_ht+0x1a331, %r13
nop
nop
nop
nop
sub $56755, %r11
movb $0x61, (%r13)
nop
nop
nop
cmp $966, %r8
lea addresses_WC_ht+0x1e1b1, %rsi
lea addresses_WT_ht+0x2761, %rdi
add $63832, %r8
mov $61, %rcx
rep movsq
nop
and $37083, %r11
lea addresses_A_ht+0x7831, %rsi
and $50686, %rdx
mov (%rsi), %r13
nop
nop
nop
nop
nop
sub $56807, %r8
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %r9
pop %r8
pop %r13
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r13
push %r14
push %r8
push %rcx
// Faulty Load
lea addresses_UC+0x51b1, %r13
nop
nop
nop
nop
sub %rcx, %rcx
mov (%r13), %r14w
lea oracles, %r8
and $0xff, %r14
shlq $12, %r14
mov (%r8,%r14,1), %r14
pop %rcx
pop %r8
pop %r14
pop %r13
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_UC', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_UC', 'size': 2, 'AVXalign': True, 'NT': False, 'congruent': 0, 'same': True}}
<gen_prepare_buffer>
{'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 8, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 11, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'size': 4, 'AVXalign': True, 'NT': True, 'congruent': 3, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 9, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 5, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 11, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 8, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'size': 8, 'AVXalign': True, 'NT': True, 'congruent': 9, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 1, 'same': True}}
{'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 6, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 9, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 3, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 4, 'same': False}}
{'00': 20418}
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
*/
|
VPN Autoconnect/VPN Autoconnect/AppDelegate.applescript | agorskih/vpn-autoconnect | 1 | 339 | <reponame>agorskih/vpn-autoconnect<filename>VPN Autoconnect/VPN Autoconnect/AppDelegate.applescript
--
-- AppDelegate.applescript
-- VPN Autoconnect
--
-- Created by <NAME> on 25.09.13.
-- Copyright (c) 2013 <NAME>. All rights reserved.
-- MIT-style copyright and disclaimer apply
property NSStatusBar : class "NSStatusBar"
property NSBundle : class "NSBundle"
property VPNStatusViewController : class "VPNStatusViewController"
script AppDelegate
property parent : class "NSObject"
property menuController : missing value
to applicationWillFinishLaunching_(notification)
createMenuController()
createMenu()
end
to createMenuController()
set my menuController to the new of VPNStatusViewController
my menuController's loadView()
end
to createMenu()
set statusItem to my statusBarItem()
statusItem's setTitle_(my applicationName())
statusItem's setHighlightMode_(true)
statusItem's setMenu_(my menuController's view)
end
on statusBarItem()
set statusBar to the systemStatusBar of NSStatusBar
return statusBar's statusItemWithLength_(-1)'s retain
end
on applicationName()
set bundle to the mainBundle of NSBundle
return bundle's infoDictionary's CFBundleName
end
on applicationShouldTerminate_(sender)
return current application's NSTerminateNow
end
end script |
3-mid/impact/source/3d/collision/dispatch/impact-d3-collision-detector-discrete-sphere_triangle.ads | charlie5/lace | 20 | 28888 | with impact.d3.collision.Detector.discrete,
impact.d3.Shape.convex.internal.sphere,
impact.d3.Shape.convex.internal.polyhedral.triangle;
package impact.d3.collision.Detector.discrete.sphere_triangle
--
-- Sphere-triangle to match the impact.d3.collision.Detector.discrete.
--
is
use impact.d3.collision.Detector.discrete;
type Item is new impact.d3.collision.Detector.discrete.item with private;
function to_sphere_triangle_Detector (sphere : access impact.d3.Shape.convex.internal.sphere .Item'Class;
triangle : access impact.d3.Shape.convex.internal.polyhedral.triangle.Item'Class;
contactBreakingThreshold : in math.Real ) return Item;
overriding procedure getClosestPoints (Self : in out Item; input : in ClosestPointInput;
output : in out Result'Class;
swapResults : in Boolean := False);
function collide (Self : in Item; sphereCenter : in math.Vector_3;
point : access math.Vector_3;
resultNormal : access math.Vector_3;
depth : access math.Real;
timeOfImpact : access math.Real;
contactBreakingThreshold : in math.Real) return Boolean;
private
type Item is new impact.d3.collision.Detector.discrete.item with
record
m_sphere : access impact.d3.Shape.convex.internal.sphere .Item'Class;
m_triangle : access impact.d3.Shape.convex.internal.polyhedral.triangle.Item'Class;
m_contactBreakingThreshold : math.Real;
end record;
function pointInTriangle (Self : in Item; vertices : in Vector_3_array;
normal : in math.Vector_3;
p : access math.Vector_3) return Boolean;
function facecontains (Self : in Item; p : in math.Vector_3;
vertices : in Vector_3_array;
normal : access math.Vector_3) return Boolean;
end impact.d3.collision.Detector.discrete.sphere_triangle;
|
agda/Data/Pi.agda | oisdk/combinatorics-paper | 6 | 3398 | {-# OPTIONS --cubical --safe #-}
module Data.Pi where
open import Data.Pi.Base public
|
tests/nonsmoke/functional/CompileTests/experimental_ada_tests/tests/defining_operator_symbol.ads | ouankou/rose | 488 | 21012 | <filename>tests/nonsmoke/functional/CompileTests/experimental_ada_tests/tests/defining_operator_symbol.ads
package defining_operator_symbol is
function "*"(Left, Right : Integer) return Integer;
end defining_operator_symbol;
|
programs/oeis/275/A275906.asm | jmorken/loda | 1 | 95240 | <filename>programs/oeis/275/A275906.asm
; A275906: Expansion of (1+x+x^2) / (1-4*x-4*x^2-x^3).
; 1,5,25,121,589,2865,13937,67797,329801,1604329,7804317,37964385,184679137,898378405,4370194553,21258970969,103415040493,503066240401,2447184094545,11904416380277,57909468139689,281702722174409,1370353177636669,6666133067384001,32427647702257089
mul $0,2
cal $0,285184 ; a(n) = 2*a(n-1) + a(n-3) with initial terms 1,3,5.
div $0,2
mov $1,$0
div $1,2
mul $1,4
add $1,1
|
programs/oeis/090/A090288.asm | neoneye/loda | 22 | 97757 | <filename>programs/oeis/090/A090288.asm
; A090288: a(n) = 2*n^2 + 6*n + 2.
; 2,10,22,38,58,82,110,142,178,218,262,310,362,418,478,542,610,682,758,838,922,1010,1102,1198,1298,1402,1510,1622,1738,1858,1982,2110,2242,2378,2518,2662,2810,2962,3118,3278,3442,3610,3782,3958,4138,4322,4510,4702,4898,5098,5302,5510,5722,5938,6158,6382,6610,6842,7078,7318,7562,7810,8062,8318,8578,8842,9110,9382,9658,9938,10222,10510,10802,11098,11398,11702,12010,12322,12638,12958,13282,13610,13942,14278,14618,14962,15310,15662,16018,16378,16742,17110,17482,17858,18238,18622,19010,19402,19798,20198
mov $1,$0
add $0,3
mul $0,$1
add $0,1
mul $0,2
|
Lab FInal-Task/2.asm | mdabdullahibnaharun/Assembly-Language | 0 | 173649 | <reponame>mdabdullahibnaharun/Assembly-Language
org 100h
include "emu8086.inc"
.model small
.stack 100h
.data
.code
main proc
input:
; input a char
mov ah , 1
int 21h
; comp if input == "#" then exit
cmp al, 23h
je exit
; output the current char
mov ah , 2
mov dl , al
int 21h
jmp input
exit:
mov ah,4ch
int 21h
main endp
DEFINE_SCAN_NUM ;cx
DEFINE_PRINT_NUM ;ax
DEFINE_PRINT_NUM_UNS ;ax
DEFINE_PRINT_STRING ;ds/si
end main
ret
|
test/asset/agda-stdlib-1.0/Data/List/Any/Properties.agda | omega12345/agda-mode | 0 | 16373 | <filename>test/asset/agda-stdlib-1.0/Data/List/Any/Properties.agda
------------------------------------------------------------------------
-- The Agda standard library
--
-- This module is DEPRECATED. Please use
-- Data.List.Relation.Unary.Any.Properties directly.
------------------------------------------------------------------------
{-# OPTIONS --without-K --safe #-}
module Data.List.Any.Properties where
open import Data.List.Relation.Unary.Any.Properties public
|
schematics/main_control/main_control_board-PSpiceFiles/SCHEMATIC1/SCHEMATIC1.als | 4lc0n/PinToWin | 0 | 2912 | <reponame>4lc0n/PinToWin
.ALIASES
_ P1(PWM_In=PWM_SOLENOID1 Shunt_Out=SHUNT_SIG1 ) CN
+@MAIN_CONTROL_BOARD.SCHEMATIC1(sch_1):P?@MAIN_CONTROL_BOARD.Solenoid Driver(sch_1)
Q_P1_Q3 P1.Q3(c=0 b=P1_N00192 e=P1_N00204 ) CN @MAIN_CONTROL_BOARD.SCHEMATIC1(sch_1):P?@MAIN_CONTROL_BOARD.Solenoid
+Driver(sch_1):INS38@BIPOLAR.Q2N3906.Normal(chips)
Q_P1_Q2 P1.Q2(c=12V b=P1_N00192 e=P1_N00204 ) CN @MAIN_CONTROL_BOARD.SCHEMATIC1(sch_1):P?@MAIN_CONTROL_BOARD.Solenoid
+Driver(sch_1):INS67@BIPOLAR.Q2N3904.Normal(chips)
Q_P1_Q1 P1.Q1(c=P1_N00228 b=P1_N00243 e=0 ) CN @MAIN_CONTROL_BOARD.SCHEMATIC1(sch_1):P?@MAIN_CONTROL_BOARD.Solenoid
+Driver(sch_1):INS85@BIPOLAR.Q2N3904.Normal(chips)
R_P1_R12 P1.R12(1=P1_N00228 2=12V ) CN @MAIN_CONTROL_BOARD.SCHEMATIC1(sch_1):P?@MAIN_CONTROL_BOARD.Solenoid
+Driver(sch_1):INS112@PRIVATE_LIB.R.Normal(chips)
R_P1_R11 P1.R11(1=P1_N00243 2=12V ) CN @MAIN_CONTROL_BOARD.SCHEMATIC1(sch_1):P?@MAIN_CONTROL_BOARD.Solenoid
+Driver(sch_1):INS128@PRIVATE_LIB.R.Normal(chips)
R_P1_R10 P1.R10(1=P1_N00243 2=PWM_SOLENOID1 ) CN @MAIN_CONTROL_BOARD.SCHEMATIC1(sch_1):P?@MAIN_CONTROL_BOARD.Solenoid
+Driver(sch_1):<EMAIL>(chips)
R_P1_R13 P1.R13(1=P1_N00192 2=P1_N00228 ) CN @MAIN_CONTROL_BOARD.SCHEMATIC1(sch_1):P?@MAIN_CONTROL_BOARD.Solenoid
+Driver(sch_1):<EMAIL>(chips)
R_P1_R14 P1.R14(1=P1_N00409 2=P1_N00204 ) CN @MAIN_CONTROL_BOARD.SCHEMATIC1(sch_1):P?@MAIN_CONTROL_BOARD.Solenoid
+Driver(sch_1):<EMAIL>(chips)
R_P1_R15 P1.R15(1=SHUNT_SIG1 2=0 ) CN @MAIN_CONTROL_BOARD.SCHEMATIC1(sch_1):P?@MAIN_CONTROL_BOARD.Solenoid
+Driver(sch_1):<EMAIL>(chips)
R_P1_R16 P1.R16(1=P1_N00739 2=30V ) CN @MAIN_CONTROL_BOARD.SCHEMATIC1(sch_1):P?@MAIN_CONTROL_BOARD.Solenoid
+Driver(sch_1):<EMAIL>(chips)
L_P1_L1 P1.L1(1=P1_N00739 2=P1_N00612 ) CN @MAIN_CONTROL_BOARD.SCHEMATIC1(sch_1):P?@MAIN_CONTROL_BOARD.Solenoid
+Driver(sch_1):<EMAIL>(chips)
V_P1_V5 P1.V5(+=PWM_SOLENOID1 -=0 ) CN @MAIN_CONTROL_BOARD.SCHEMATIC1(sch_1):P?@MAIN_CONTROL_BOARD.Solenoid
+Driver(sch_1):<EMAIL>(chips)
X_P1_M1 P1.M1(D=P1_N00612 G=P1_N00409 S=SHUNT_SIG1 ) CN
+@MAIN_CONTROL_BOARD.SCHEMATIC1(sch_1):P?@MAIN_CONTROL_BOARD.Solenoid Driver(sch_1):INS1<EMAIL>@IRF.IRF520.Normal(chips)
D_P1_D1 P1.D1(1=P1_N00612 2=30V ) CN @MAIN_CONTROL_BOARD.SCHEMATIC1(sch_1):P?@MAIN_CONTROL_BOARD.Solenoid
+Driver(sch_1):INS2583@DIODE.D1N5819.Normal(chips)
_ _(P1.12V=12V)
_ _(P1.30V=30V)
_ _(P1.PWM_In=PWM_SOLENOID1)
_ _(P1.Shunt_Out=SHUNT_SIG1)
_ P2(PWM_In=PWM_SOLENOID2 Shunt_Out=SHUNT_SIG2 ) CN
+@MAIN_CONTROL_BOARD.SCHEMATIC1(sch_1):P?2@MAIN_CONTROL_BOARD.Solenoid Driver(sch_1)
R_P2_R20 P2.R20(1=P2_N00192 2=P2_N00228 ) CN @MAIN_CONTROL_BOARD.SCHEMATIC1(sch_1):P?2@MAIN_CONTROL_BOARD.Solenoid
+Driver(sch_1):<EMAIL>(chips)
R_P2_R17 P2.R17(1=P2_N00243 2=PWM_SOLENOID2 ) CN @MAIN_CONTROL_BOARD.SCHEMATIC1(sch_1):P?2@MAIN_CONTROL_BOARD.Solenoid
+Driver(sch_1):<EMAIL>(chips)
R_P2_R18 P2.R18(1=P2_N00243 2=12V ) CN @MAIN_CONTROL_BOARD.SCHEMATIC1(sch_1):P?2@MAIN_CONTROL_BOARD.Solenoid
+Driver(sch_1):<EMAIL>(chips)
R_P2_R19 P2.R19(1=P2_N00228 2=12V ) CN @MAIN_CONTROL_BOARD.SCHEMATIC1(sch_1):P?2@MAIN_CONTROL_BOARD.Solenoid
+Driver(sch_1):<EMAIL>(chips)
R_P2_R23 P2.R23(1=P2_N00739 2=30V ) CN @MAIN_CONTROL_BOARD.SCHEMATIC1(sch_1):P?2@MAIN_CONTROL_BOARD.Solenoid
+Driver(sch_1):<EMAIL>(chips)
D_P2_D2 P2.D2(1=P2_N00612 2=30V ) CN @MAIN_CONTROL_BOARD.SCHEMATIC1(sch_1):P?2@MAIN_CONTROL_BOARD.Solenoid
+Driver(sch_1):INS2583@DIODE.D1N5819.Normal(chips)
Q_P2_Q5 P2.Q5(c=12V b=P2_N00192 e=P2_N00204 ) CN @MAIN_CONTROL_BOARD.SCHEMATIC1(sch_1):P?2@MAIN_CONTROL_BOARD.Solenoid
+Driver(sch_1):INS67@BIPOLAR.Q2N3904.Normal(chips)
R_P2_R22 P2.R22(1=SHUNT_SIG2 2=0 ) CN @MAIN_CONTROL_BOARD.SCHEMATIC1(sch_1):P?2@MAIN_CONTROL_BOARD.Solenoid
+Driver(sch_1):INS358@PRIVATE_LIB.R.Normal(chips)
Q_P2_Q4 P2.Q4(c=P2_N00228 b=P2_N00243 e=0 ) CN @MAIN_CONTROL_BOARD.SCHEMATIC1(sch_1):P?2@MAIN_CONTROL_BOARD.Solenoid
+Driver(sch_1):INS85@BIPOLAR.Q2N3904.Normal(chips)
V_P2_V6 P2.V6(+=PWM_SOLENOID2 -=0 ) CN @MAIN_CONTROL_BOARD.SCHEMATIC1(sch_1):P?2@MAIN_CONTROL_BOARD.Solenoid
+Driver(sch_1):INS<EMAIL>.Normal(chips)
X_P2_M2 P2.M2(D=P2_N00612 G=P2_N00409 S=SHUNT_SIG2 ) CN
+@MAIN_CONTROL_BOARD.SCHEMATIC1(sch_1):P?2@MAIN_CONTROL_BOARD.Solenoid Driver(sch_1):INS1804@IRF.IRF520.Normal(chips)
R_P2_R21 P2.R21(1=P2_N00409 2=P2_N00204 ) CN @MAIN_CONTROL_BOARD.SCHEMATIC1(sch_1):P?2@MAIN_CONTROL_BOARD.Solenoid
+Driver(sch_1):<EMAIL>(chips)
Q_P2_Q6 P2.Q6(c=0 b=P2_N00192 e=P2_N00204 ) CN @MAIN_CONTROL_BOARD.SCHEMATIC1(sch_1):P?2@MAIN_CONTROL_BOARD.Solenoid
+Driver(sch_1):<EMAIL>8@<EMAIL>.Q2N3906.<EMAIL>(chips)
L_P2_L2 P2.L2(1=P2_N00739 2=P2_N00612 ) CN @MAIN_CONTROL_BOARD.SCHEMATIC1(sch_1):P?2@MAIN_CONTROL_BOARD.Solenoid
+Driver(sch_1):<EMAIL>(chips)
_ _(P2.12V=12V)
_ _(P2.30V=30V)
_ _(P2.PWM_In=PWM_SOLENOID2)
_ _(P2.Shunt_Out=SHUNT_SIG2)
_ P3(PWM_In=PWM_SOLENOID3 Shunt_Out=SHUNT_SIG3 ) CN
+@MAIN_CONTROL_BOARD.SCHEMATIC1(sch_1):P?3@MAIN_CONTROL_BOARD.Solenoid Driver(sch_1)
R_P3_R27 P3.R27(1=P3_N00192 2=P3_N00228 ) CN @MAIN_CONTROL_BOARD.SCHEMATIC1(sch_1):P?3@MAIN_CONTROL_BOARD.Solenoid
+Driver(sch_1):<EMAIL>(chips)
R_P3_R24 P3.R24(1=P3_N00243 2=PWM_SOLENOID3 ) CN @MAIN_CONTROL_BOARD.SCHEMATIC1(sch_1):P?3@MAIN_CONTROL_BOARD.Solenoid
+Driver(sch_1):<EMAIL>(chips)
R_P3_R25 P3.R25(1=P3_N00243 2=12V ) CN @MAIN_CONTROL_BOARD.SCHEMATIC1(sch_1):P?3@MAIN_CONTROL_BOARD.Solenoid
+Driver(sch_1):<EMAIL>(chips)
R_P3_R26 P3.R26(1=P3_N00228 2=12V ) CN @MAIN_CONTROL_BOARD.SCHEMATIC1(sch_1):P?3@MAIN_CONTROL_BOARD.Solenoid
+Driver(sch_1):<EMAIL>(chips)
R_P3_R30 P3.R30(1=P3_N00739 2=30V ) CN @MAIN_CONTROL_BOARD.SCHEMATIC1(sch_1):P?3@MAIN_CONTROL_BOARD.Solenoid
+Driver(sch_1):<EMAIL>(chips)
D_P3_D3 P3.D3(1=P3_N00612 2=30V ) CN @MAIN_CONTROL_BOARD.SCHEMATIC1(sch_1):P?3@MAIN_CONTROL_BOARD.Solenoid
+Driver(sch_1):INS2583@DIODE.D1N5819.Normal(chips)
Q_P3_Q8 P3.Q8(c=12V b=P3_N00192 e=P3_N00204 ) CN @MAIN_CONTROL_BOARD.SCHEMATIC1(sch_1):P?3@MAIN_CONTROL_BOARD.Solenoid
+Driver(sch_1):INS67@BIPOLAR.Q2N3904.Normal(chips)
R_P3_R29 P3.R29(1=SHUNT_SIG3 2=0 ) CN @MAIN_CONTROL_BOARD.SCHEMATIC1(sch_1):P?3@MAIN_CONTROL_BOARD.Solenoid
+Driver(sch_1):<EMAIL>(chips)
Q_P3_Q7 P3.Q7(c=P3_N00228 b=P3_N00243 e=0 ) CN @MAIN_CONTROL_BOARD.SCHEMATIC1(sch_1):P?3@MAIN_CONTROL_BOARD.Solenoid
+Driver(sch_1):INS85@BIPOLAR.Q2N3904.Normal(chips)
V_P3_V7 P3.V7(+=PWM_SOLENOID3 -=0 ) CN @MAIN_CONTROL_BOARD.SCHEMATIC1(sch_1):P?3@MAIN_CONTROL_BOARD.Solenoid
+Driver(sch_1):<EMAIL>(chips)
X_P3_M3 P3.M3(D=P3_N00612 G=P3_N00409 S=SHUNT_SIG3 ) CN
+@MAIN_<EMAIL>EMATIC1(sch_1):P?3@MAIN_CONTROL_BOARD.Solenoid Driver(sch_1):INS1<EMAIL>@<EMAIL>.IRF520.Normal(chips)
R_P3_R28 P3.R28(1=P3_N00409 2=P3_N00204 ) CN @MAIN_CONTROL_BOARD.SCHEMATIC1(sch_1):P?3@MAIN_CONTROL_BOARD.Solenoid
+Driver(sch_1):<EMAIL>(chips)
Q_P3_Q9 P3.Q9(c=0 b=P3_N00192 e=P3_N00204 ) CN @MAIN_CONTROL_BOARD.SCHEMATIC1(sch_1):P?3@MAIN_CONTROL_BOARD.Solenoid
+Driver(sch_1):INS38@BIPOLAR.Q2N3906.Normal(chips)
L_P3_L3 P3.L3(1=P3_N00739 2=P3_N00612 ) CN @MAIN_CONTROL_BOARD.SCHEMATIC1(sch_1):P?3@MAIN_CONTROL_BOARD.Solenoid
+Driver(sch_1):<EMAIL>(chips)
_ _(P3.12V=12V)
_ _(P3.30V=30V)
_ _(P3.PWM_In=PWM_SOLENOID3)
_ _(P3.Shunt_Out=SHUNT_SIG3)
_ P4(A_In1=SHUNT_SIG1 A_In2=SHUNT_SIG2 A_In3=SHUNT_SIG3 A_In4=N00384 V_Out1=CURRENT_SIG1 V_Out2=CURRENT_SIG2 V_Out3=CURRENT_SIG3
+ V_Out4=CURRENT_SIG4 ) CN @MAIN_CONTROL_BOARD.SCHEMATIC1(sch_1):P4@MAIN_CONTROL_BOARD.Current_Sensing(sch_1)
X_P4_U2A P4.U2A(+=SHUNT_SIG1 -=P4_N01115 V+=5V GND=0 OUT=CURRENT_SIG1 ) CN
+@MAIN_CONTROL_BOARD.SCHEMATIC1(sch_1):P4@MAIN_CONTROL_BOARD.Current_Sensing(sch_1):INS205@MAIN_CONTROL_BOARD.LM324N_0.Normal(chips)
X_P4_U2B P4.U2B(+=SHUNT_SIG3 -=P4_N01126 V+=5V GND=0 OUT=CURRENT_SIG3 ) CN
+@MAIN_CONTROL_BOARD.SCHEMATIC1(sch_1):P4@MAIN_CONTROL_BOARD.Current_Sensing(sch_1):INS258@MAIN_CONTROL_BOARD.LM324N_0.Normal(chips)
X_P4_U2C P4.U2C(+=SHUNT_SIG2 -=P4_N01148 V+=5V GND=0 OUT=CURRENT_SIG2 ) CN
+@MAIN_CONTROL_BOARD.SCHEMATIC1(sch_1):P4@MAIN_CONTROL_BOARD.Current_Sensing(sch_1):INS311@MAIN_CONTROL_BOARD.LM324N_0.Normal(chips)
X_P4_U2D P4.U2D(+=N00384 -=P4_N01137 V+=5V GND=0 OUT=CURRENT_SIG4 ) CN
+@MAIN_CONTROL_BOARD.SCHEMATIC1(sch_1):P4@MAIN_CONTROL_BOARD.Current_Sensing(sch_1):INS364@MAIN_CONTROL_BOARD.LM324N_0.Normal(chips)
R_P4_R8 P4.R8(1=P4_N01137 2=CURRENT_SIG4 ) CN
+@MAIN_CONTROL_BOARD.SCHEMATIC1(sch_1):P4@MAIN_CONTROL_BOARD.Current_Sensing(sch_1):INS920@PRIVATE_LIB.R.Normal(chips)
R_P4_R9 P4.R9(1=0 2=P4_N01137 ) CN
+@MAIN_CONTROL_BOARD.SCHEMATIC1(sch_1):P4@MAIN_CONTROL_BOARD.Current_Sensing(sch_1):INS936@PRIVATE_LIB.R.Normal(chips)
R_P4_R7 P4.R7(1=0 2=P4_N01148 ) CN
+@MAIN_CONTROL_BOARD.SCHEMATIC1(sch_1):P4@MAIN_CONTROL_BOARD.Current_Sensing(sch_1):INS988@PRIVATE_LIB.R.Normal(chips)
R_P4_R6 P4.R6(1=P4_N01148 2=CURRENT_SIG2 ) CN
+@MAIN_CONTROL_BOARD.SCHEMATIC1(sch_1):P4@MAIN_CONTROL_BOARD.Current_Sensing(sch_1):INS972@PRIVATE_LIB.R.Normal(chips)
R_P4_R5 P4.R5(1=0 2=P4_N01115 ) CN
+@MAIN_CONTROL_BOARD.SCHEMATIC1(sch_1):P4@MAIN_CONTROL_BOARD.Current_Sensing(sch_1):INS1040@PRIVATE_LIB.R.Normal(chips)
R_P4_R4 P4.R4(1=P4_N01115 2=CURRENT_SIG1 ) CN
+@MAIN_CONTROL_BOARD.SCHEMATIC1(sch_1):P4@MAIN_CONTROL_BOARD.Current_Sensing(sch_1):INS1024@PRIVATE_LIB.R.Normal(chips)
R_P4_R3 P4.R3(1=0 2=P4_N01126 ) CN
+@MAIN_CONTROL_BOARD.SCHEMATIC1(sch_1):P4@MAIN_CONTROL_BOARD.Current_Sensing(sch_1):INS1092@PRIVATE_LIB.R.Normal(chips)
R_P4_R2 P4.R2(1=P4_N01126 2=CURRENT_SIG3 ) CN
+@MAIN_CONTROL_BOARD.SCHEMATIC1(sch_1):P4@MAIN_CONTROL_BOARD.Current_Sensing(sch_1):INS1076@PRIVATE_LIB.R.Normal(chips)
_ _(P4.5V=5V)
_ _(P4.A_In1=SHUNT_SIG1)
_ _(P4.A_In2=SHUNT_SIG2)
_ _(P4.A_In3=SHUNT_SIG3)
_ _(P4.A_In4=N00384)
_ _(P4.V_Out1=CURRENT_SIG1)
_ _(P4.V_Out2=CURRENT_SIG2)
_ _(P4.V_Out3=CURRENT_SIG3)
_ _(P4.V_Out4=CURRENT_SIG4)
R_R1 R1(1=0 2=N00384 ) CN @MAIN_CONTROL_BOARD.SCHEMATIC1(sch_1):<EMAIL>(chips)
_ P5() CN @MAIN_CONTROL_BOARD.SCHEMATIC1(sch_1):P5@MAIN_CONTROL_BOARD.Power Supply(sch_1)
V_P5_V1 P5.V1(+=3V3 -=0 ) CN @MAIN_CONTROL_BOARD.SCHEMATIC1(sch_1):P5@MAIN_CONTROL_BOARD.Power
+Supply(sch_1):<EMAIL>(chips)
V_P5_V2 P5.V2(+=5V -=0 ) CN @MAIN_CONTROL_BOARD.SCHEMATIC1(sch_1):P5@MAIN_CONTROL_BOARD.Power
+Supply(sch_1):<EMAIL>(chips)
V_P5_V3 P5.V3(+=12V -=0 ) CN @MAIN_CONTROL_BOARD.SCHEMATIC1(sch_1):P5@MAIN_<EMAIL>
+Supply(sch_1):<EMAIL>(chips)
V_P5_V4 P5.V4(+=30V -=0 ) CN @MAIN_CONTROL_BOARD.SCHEMATIC1(sch_1):P5@MAIN_CONTROL_BOARD.Power
+Supply(sch_1):<EMAIL>(chips)
_ _(P5.12V=12V)
_ _(P5.30V=30V)
_ _(P5.3V3=3V3)
_ _(P5.5V=5V)
_ _(Current_Sig1=CURRENT_SIG1)
_ _(Current_Sig2=CURRENT_SIG2)
_ _(Current_Sig3=CURRENT_SIG3)
_ _(Current_Sig4=CURRENT_SIG4)
_ _(PWM_Solenoid1=PWM_SOLENOID1)
_ _(PWM_Solenoid2=PWM_SOLENOID2)
_ _(PWM_Solenoid3=PWM_SOLENOID3)
_ _(Shunt_Sig1=SHUNT_SIG1)
_ _(Shunt_Sig2=SHUNT_SIG2)
_ _(Shunt_Sig3=SHUNT_SIG3)
.ENDALIASES
|
source/contexts/plain/program-unit_dependencies.adb | reznikmm/gela | 0 | 14069 | -- SPDX-FileCopyrightText: 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Program.Element_Filters;
with Program.Element_Vectors;
with Program.Elements.Identifiers;
with Program.Elements.Selected_Components;
with Program.Elements.With_Clauses;
with Program.Elements.Expressions;
with Program.Node_Symbols;
package body Program.Unit_Dependencies is
procedure Image
(Lists : in out Program.Symbol_Lists.Symbol_List_Table'Class;
Name : Program.Elements.Expressions.Expression_Access;
Result : out Program.Symbol_Lists.Symbol_List);
-----------------------------------
-- Find_Elaboration_Dependencies --
-----------------------------------
procedure Find_Elaboration_Dependencies
(Unit : Program.Compilation_Units.Compilation_Unit_Access;
Lists : in out Program.Symbol_Lists.Symbol_List_Table'Class;
Report : in out Unit_Dependency_Listener'Class) is
begin
raise Program_Error with "Unimplemented";
end Find_Elaboration_Dependencies;
-----------------------
-- Find_Needed_Units --
-----------------------
procedure Find_Needed_Units
(Unit : Program.Compilation_Units.Compilation_Unit_Access;
Lists : in out Program.Symbol_Lists.Symbol_List_Table'Class;
Report : in out Unit_Dependency_Listener'Class) is
begin
raise Program_Error with "Unimplemented";
end Find_Needed_Units;
--------------------------------
-- Find_Semantic_Dependencies --
--------------------------------
procedure Find_Semantic_Dependencies
(Unit : Program.Compilation_Units.Compilation_Unit_Access;
Lists : in out Program.Symbol_Lists.Symbol_List_Table'Class;
Report : in out Unit_Dependency_Listener'Class)
is
use type Program.Symbol_Lists.Symbol_List;
Full_Name : Program.Symbol_Lists.Symbol_List;
Clauses : constant Program.Element_Vectors.Element_Vector_Access :=
Unit.Context_Clause_Elements;
begin
Program.Node_Symbols.Unit_Full_Name (Lists, Unit, Full_Name);
if Full_Name = Program.Symbol_Lists.Empty_Symbol_List then
-- Standard package has no dependencies
return;
elsif Unit.Is_Subunit then
-- A subunit depends semantically upon its parent body.
Report.Required_Body (Lists.Prefix (Full_Name));
else
-- A library_item depends semantically upon its parent declaration.
Report.Required_Declaration (Lists.Prefix (Full_Name));
if Unit.Is_Library_Unit_Body then
-- A library_unit_body depends semantically upon the corresponding
-- library_unit_declaration, if any.
Report.Required_Declaration (Full_Name, If_Any => True);
end if;
end if;
-- A compilation unit depends semantically upon each library_item
-- mentioned in a with_clause of the compilation unit.
for J in Clauses.Each_Element
(Program.Element_Filters.Is_With_Clause'Access)
loop
declare
With_Clause : constant Elements.With_Clauses.With_Clause_Access :=
J.Element.To_With_Clause;
Names : constant Program.Elements.Expressions
.Expression_Vector_Access := With_Clause.Clause_Names;
Is_Limited : constant Boolean := With_Clause.Has_Limited;
List : Program.Symbol_Lists.Symbol_List;
begin
for K in Names.Each_Element loop
Image (Lists, Names.To_Expression (K.Index), List);
Report.Required_Unit (List, Is_Limited);
end loop;
end;
end loop;
end Find_Semantic_Dependencies;
procedure Image
(Lists : in out Program.Symbol_Lists.Symbol_List_Table'Class;
Name : Program.Elements.Expressions.Expression_Access;
Result : out Program.Symbol_Lists.Symbol_List) is
begin
if Name.Is_Selected_Component then
declare
Prefix : Program.Symbol_Lists.Symbol_List;
begin
Image (Lists, Name.To_Selected_Component.Prefix, Prefix);
Lists.Find_Or_Create
(Prefix,
Program.Node_Symbols.Get_Symbol
(Name.To_Selected_Component.Selector),
Result);
end;
elsif Name.Is_Identifier then
Lists.Find_Or_Create
(Program.Symbol_Lists.Empty_Symbol_List,
Program.Node_Symbols.Get_Symbol (Name),
Result);
else
raise Program_Error;
end if;
end Image;
end Program.Unit_Dependencies;
|
src/test/ref/struct-ptr-35.asm | jbrandwood/kickc | 2 | 80251 | // Commodore 64 PRG executable file
.file [name="struct-ptr-35.prg", type="prg", segments="Program"]
.segmentdef Program [segments="Basic, Code, Data"]
.segmentdef Basic [start=$0801]
.segmentdef Code [start=$80d]
.segmentdef Data [startAfter="Code"]
.segment Basic
:BasicUpstart(main)
.const OFFSET_STRUCT_TILE_COUNT = 4
.segment Code
main: {
.label SCREEN = $400
.label __1 = 2
.label tile = 2
.label i = 4
.label __4 = 2
.label __5 = 6
lda #<0
sta.z i
sta.z i+1
__b1:
// struct Tile *tile = TileDB[i]
lda.z i
asl
sta.z __1
lda.z i+1
rol
sta.z __1+1
clc
lda #<TileDB
adc.z __4
sta.z __4
lda #>TileDB
adc.z __4+1
sta.z __4+1
ldy #0
lda (tile),y
pha
iny
lda (tile),y
sta.z tile+1
pla
sta.z tile
// SCREEN[i] = tile->Count
lda #<SCREEN
clc
adc.z i
sta.z __5
lda #>SCREEN
adc.z i+1
sta.z __5+1
ldy #OFFSET_STRUCT_TILE_COUNT
lda (tile),y
ldy #0
sta (__5),y
// for(int i:0..1)
inc.z i
bne !+
inc.z i+1
!:
lda.z i+1
cmp #>2
bne __b1
lda.z i
cmp #<2
bne __b1
// }
rts
}
.segment Data
PlayerSprites: .fill 4*$c, 0
Enemy2Sprites: .fill 4*$c, 0
TileDB: .word S1, S2
S1: .word PlayerSprites, $14
.byte $40
.text "Sven"
.byte 0
.fill $f, 0
S2: .word Enemy2Sprites, $32
.byte $80
.text "Jesper"
.byte 0
.fill $d, 0
|
Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnarl/s-vxwext__noints.adb | djamal2727/Main-Bearing-Analytical-Model | 0 | 6107 | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- S Y S T E M . V X W O R K S . E X T --
-- --
-- B o d y --
-- --
-- Copyright (C) 2008-2020, Free Software Foundation, Inc. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 3, or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. --
-- --
-- As a special exception under Section 7 of GPL version 3, you are granted --
-- additional permissions described in the GCC Runtime Library Exception, --
-- version 3.1, as published by the Free Software Foundation. --
-- --
-- You should have received a copy of the GNU General Public License and --
-- a copy of the GCC Runtime Library Exception along with this program; --
-- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
-- <http://www.gnu.org/licenses/>. --
-- --
------------------------------------------------------------------------------
-- This package provides vxworks specific support functions needed
-- by System.OS_Interface.
-- This is a version for VxWorks 5 based systems with no interrupts:
-- HI-Ravenscar for VxWorks 5, VxWorks 653 vThreads (not ravenscar-cert)
package body System.VxWorks.Ext is
ERROR : constant := -1;
--------------
-- Int_Lock --
--------------
function Int_Lock return int is
begin
return ERROR;
end Int_Lock;
----------------
-- Int_Unlock --
----------------
function Int_Unlock (Old : int) return int is
pragma Unreferenced (Old);
begin
return ERROR;
end Int_Unlock;
-----------------------
-- Interrupt_Connect --
-----------------------
function Interrupt_Connect
(Vector : Interrupt_Vector;
Handler : Interrupt_Handler;
Parameter : System.Address := System.Null_Address) return int
is
pragma Unreferenced (Vector, Handler, Parameter);
begin
return ERROR;
end Interrupt_Connect;
-----------------------
-- Interrupt_Context --
-----------------------
function Interrupt_Context return int is
begin
-- For VxWorks 653 vThreads, never in an interrupt context
return 0;
end Interrupt_Context;
--------------------------------
-- Interrupt_Number_To_Vector --
--------------------------------
function Interrupt_Number_To_Vector
(intNum : int) return Interrupt_Vector
is
pragma Unreferenced (intNum);
begin
return 0;
end Interrupt_Number_To_Vector;
---------------
-- semDelete --
---------------
function semDelete (Sem : SEM_ID) return int is
function Os_Sem_Delete (Sem : SEM_ID) return int;
pragma Import (C, Os_Sem_Delete, "semDelete");
begin
return Os_Sem_Delete (Sem);
end semDelete;
------------------------
-- taskCpuAffinitySet --
------------------------
function taskCpuAffinitySet (tid : t_id; CPU : int) return int is
pragma Unreferenced (tid, CPU);
begin
return ERROR;
end taskCpuAffinitySet;
-------------------------
-- taskMaskAffinitySet --
-------------------------
function taskMaskAffinitySet (tid : t_id; CPU_Set : unsigned) return int is
pragma Unreferenced (tid, CPU_Set);
begin
return ERROR;
end taskMaskAffinitySet;
end System.VxWorks.Ext;
|
awa/src/awa-events-queues-fifos.adb | fuzzysloth/ada-awa | 81 | 29801 | <filename>awa/src/awa-events-queues-fifos.adb<gh_stars>10-100
-----------------------------------------------------------------------
-- awa-events-queues-fifos -- Fifo event queues (memory based)
-- Copyright (C) 2012 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.
-----------------------------------------------------------------------
with Ada.Unchecked_Deallocation;
with Util.Log.Loggers;
package body AWA.Events.Queues.Fifos is
use Util.Log;
Log : constant Loggers.Logger := Loggers.Create ("AWA.Events.Queues.Fifos");
procedure Free is
new Ada.Unchecked_Deallocation (Object => AWA.Events.Module_Event'Class,
Name => AWA.Events.Module_Event_Access);
-- ------------------------------
-- Get the queue name.
-- ------------------------------
overriding
function Get_Name (From : in Fifo_Queue) return String is
begin
return From.Name;
end Get_Name;
-- ------------------------------
-- Get the model queue reference object.
-- Returns a null object if the queue is not persistent.
-- ------------------------------
overriding
function Get_Queue (From : in Fifo_Queue) return AWA.Events.Models.Queue_Ref is
pragma Unreferenced (From);
begin
return AWA.Events.Models.Null_Queue;
end Get_Queue;
-- ------------------------------
-- Queue the event.
-- ------------------------------
procedure Enqueue (Into : in out Fifo_Queue;
Event : in AWA.Events.Module_Event'Class) is
E : constant Module_Event_Access := Copy (Event);
begin
Log.Debug ("Enqueue event on queue {0}", Into.Name);
E.Set_Event_Kind (Event.Get_Event_Kind);
Into.Fifo.Enqueue (E);
end Enqueue;
-- ------------------------------
-- Dequeue an event and process it with the <b>Process</b> procedure.
-- ------------------------------
procedure Dequeue (From : in out Fifo_Queue;
Process : access procedure (Event : in Module_Event'Class)) is
E : Module_Event_Access;
begin
Log.Debug ("Dequeue event queue {0}", From.Name);
From.Fifo.Dequeue (E, 0.0);
begin
Process (E.all);
exception
when E : others =>
Log.Error ("Exception when processing event", E);
end;
Free (E);
exception
when Fifo_Protected_Queue.Timeout =>
null;
end Dequeue;
-- ------------------------------
-- Get the value identified by the name.
-- If the name cannot be found, the method should return the Null object.
-- ------------------------------
overriding
function Get_Value (From : in Fifo_Queue;
Name : in String) return Util.Beans.Objects.Object is
pragma Unreferenced (From, Name);
begin
return Util.Beans.Objects.Null_Object;
end Get_Value;
-- ------------------------------
-- Set the value identified by the name.
-- If the name cannot be found, the method should raise the No_Value
-- exception.
-- ------------------------------
overriding
procedure Set_Value (From : in out Fifo_Queue;
Name : in String;
Value : in Util.Beans.Objects.Object) is
begin
if Name = "size" then
From.Fifo.Set_Size (Util.Beans.Objects.To_Integer (Value));
end if;
end Set_Value;
-- ------------------------------
-- Release the queue storage.
-- ------------------------------
overriding
procedure Finalize (From : in out Fifo_Queue) is
begin
while From.Fifo.Get_Count > 0 loop
declare
E : Module_Event_Access;
begin
From.Fifo.Dequeue (E);
Free (E);
end;
end loop;
end Finalize;
-- ------------------------------
-- Create the queue associated with the given name and configure it by using
-- the configuration properties.
-- ------------------------------
function Create_Queue (Name : in String;
Props : in EL.Beans.Param_Vectors.Vector;
Context : in EL.Contexts.ELContext'Class) return Queue_Access is
Result : constant Fifo_Queue_Access := new Fifo_Queue '(Name_Length => Name'Length,
Name => Name,
others => <>);
begin
EL.Beans.Initialize (Result.all, Props, Context);
return Result.all'Access;
end Create_Queue;
end AWA.Events.Queues.Fifos;
|
testing/led_blinking/src/main.adb | Stykk-Gruppen/rts-project | 2 | 58 | <reponame>Stykk-Gruppen/rts-project<gh_stars>1-10
with Arduino_Nano_33_Ble_Sense.IOs;
with Ada.Real_Time; use Ada.Real_Time;
procedure Main is
TimeNow : Ada.Real_Time.Time := Ada.Real_Time.Clock;
begin
loop
--6 13 41 16 24
Arduino_Nano_33_Ble_Sense.IOs.DigitalWrite(13, True);
TimeNow := Ada.Real_Time.Clock;
delay until TimeNow + Ada.Real_Time.Milliseconds(50);
Arduino_Nano_33_Ble_Sense.IOs.DigitalWrite(41, True);
TimeNow := Ada.Real_Time.Clock;
delay until TimeNow + Ada.Real_Time.Milliseconds(50);
Arduino_Nano_33_Ble_Sense.IOs.DigitalWrite(6, False);
TimeNow := Ada.Real_Time.Clock;
delay until TimeNow + Ada.Real_Time.Milliseconds(50);
Arduino_Nano_33_Ble_Sense.IOs.DigitalWrite(13, False);
TimeNow := Ada.Real_Time.Clock;
delay until TimeNow + Ada.Real_Time.Milliseconds(50);
Arduino_Nano_33_Ble_Sense.IOs.DigitalWrite(41, False);
TimeNow := Ada.Real_Time.Clock;
delay until TimeNow + Ada.Real_Time.Milliseconds(50);
Arduino_Nano_33_Ble_Sense.IOs.DigitalWrite(6, True);
TimeNow := Ada.Real_Time.Clock;
delay until TimeNow + Ada.Real_Time.Milliseconds(50);
Arduino_Nano_33_Ble_Sense.IOs.DigitalWrite(13, True);
TimeNow := Ada.Real_Time.Clock;
delay until TimeNow + Ada.Real_Time.Milliseconds(50);
Arduino_Nano_33_Ble_Sense.IOs.DigitalWrite(41, True);
TimeNow := Ada.Real_Time.Clock;
delay until TimeNow + Ada.Real_Time.Milliseconds(50);
Arduino_Nano_33_Ble_Sense.IOs.DigitalWrite(16, False);
TimeNow := Ada.Real_Time.Clock;
delay until TimeNow + Ada.Real_Time.Milliseconds(50);
Arduino_Nano_33_Ble_Sense.IOs.DigitalWrite(13, False);
TimeNow := Ada.Real_Time.Clock;
delay until TimeNow + Ada.Real_Time.Milliseconds(50);
Arduino_Nano_33_Ble_Sense.IOs.DigitalWrite(41, False);
TimeNow := Ada.Real_Time.Clock;
delay until TimeNow + Ada.Real_Time.Milliseconds(50);
Arduino_Nano_33_Ble_Sense.IOs.DigitalWrite(16, True);
TimeNow := Ada.Real_Time.Clock;
delay until TimeNow + Ada.Real_Time.Milliseconds(50);
Arduino_Nano_33_Ble_Sense.IOs.DigitalWrite(13, True);
TimeNow := Ada.Real_Time.Clock;
delay until TimeNow + Ada.Real_Time.Milliseconds(50);
Arduino_Nano_33_Ble_Sense.IOs.DigitalWrite(41, True);
TimeNow := Ada.Real_Time.Clock;
delay until TimeNow + Ada.Real_Time.Milliseconds(50);
Arduino_Nano_33_Ble_Sense.IOs.DigitalWrite(24, False);
TimeNow := Ada.Real_Time.Clock;
delay until TimeNow + Ada.Real_Time.Milliseconds(50);
Arduino_Nano_33_Ble_Sense.IOs.DigitalWrite(13, False);
TimeNow := Ada.Real_Time.Clock;
delay until TimeNow + Ada.Real_Time.Milliseconds(50);
Arduino_Nano_33_Ble_Sense.IOs.DigitalWrite(41, False);
TimeNow := Ada.Real_Time.Clock;
delay until TimeNow + Ada.Real_Time.Milliseconds(50);
Arduino_Nano_33_Ble_Sense.IOs.DigitalWrite(24, True);
TimeNow := Ada.Real_Time.Clock;
delay until TimeNow + Ada.Real_Time.Milliseconds(50);
end loop;
end Main;
|
Validation/pyFrame3DD-master/gcc-master/gcc/ada/rtsfind.ads | djamal2727/Main-Bearing-Analytical-Model | 0 | 12778 | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- R T S F I N D --
-- --
-- S p e c --
-- --
-- Copyright (C) 1992-2020, Free Software Foundation, Inc. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 3, or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License --
-- for more details. You should have received a copy of the GNU General --
-- Public License distributed with GNAT; see file COPYING3. If not, go to --
-- http://www.gnu.org/licenses for a complete copy of the license. --
-- --
-- GNAT was originally developed by the GNAT team at New York University. --
-- Extensive contributions were provided by Ada Core Technologies Inc. --
-- --
------------------------------------------------------------------------------
-- This package contains the routine that is used to obtain runtime library
-- entities, loading in the required runtime library packages on demand. It
-- is also used for such purposes as finding System.Address when System has
-- not been explicitly With'ed.
with Types; use Types;
package Rtsfind is
------------------------
-- Runtime Unit Table --
------------------------
-- The following type includes an enumeration literal for each runtime
-- unit. The enumeration literal is the full expanded name of the unit
-- with "." replaced by "_". For example, the enumeration literal for
-- Ada.Interrupts.Names is Ada_Interrupts_Names
-- This list can contain both subprogram and package unit names. For
-- packages, the accessible entities in the package are separately listed
-- in the package entity table. The units must be either library level
-- package declarations, or library level subprogram declarations. Generic
-- units, library level instantiations and subprogram bodies acting as
-- specs must not be referenced. (All these cases could be added at the
-- expense of additional complexity in the body of Rtsfind, but it doesn't
-- seem worthwhile, since the implementation controls the set of units that
-- are referenced, and this restriction is easily met.)
-- IMPORTANT NOTE: the specs of packages and procedures with'ed using
-- this mechanism must not contain use clauses. This is because these
-- subprograms are compiled in the current visibility environment, and it
-- would be too much trouble to establish a clean environment for the
-- compilation. The presence of extraneous visible stuff has no effect on
-- the compilation except in the presence of use clauses, which might
-- result in unexpected ambiguities.
-- NOTE: If RTU_Id is modified, the subtypes of RTU_Id in the package body
-- might need to be modified. See Get_Unit_Name.
type RTU_Id is (
-- Runtime packages, for list of accessible entities in each package,
-- see declarations in the runtime entity table below.
RTU_Null,
-- Used as a null entry (will cause an error if referenced)
-- Package Ada
Ada,
-- Children of Ada
Ada_Calendar,
Ada_Dispatching,
Ada_Exceptions,
Ada_Finalization,
Ada_Interrupts,
Ada_Numerics,
Ada_Real_Time,
Ada_Streams,
Ada_Strings,
Ada_Synchronous_Barriers,
Ada_Synchronous_Task_Control,
Ada_Tags,
Ada_Task_Identification,
Ada_Task_Termination,
Ada_Text_IO,
Ada_Wide_Text_IO,
Ada_Wide_Wide_Text_IO,
-- Children of Ada.Calendar
Ada_Calendar_Delays,
-- Children of Ada.Dispatching
Ada_Dispatching_EDF,
-- Children of Ada.Interrupts
Ada_Interrupts_Names,
-- Children of Ada.Numerics
Ada_Numerics_Generic_Elementary_Functions,
-- Children of Ada.Real_Time
Ada_Real_Time_Delays,
Ada_Real_Time_Timing_Events,
-- Children of Ada.Streams
Ada_Streams_Stream_IO,
-- Children of Ada.Strings
Ada_Strings_Superbounded,
Ada_Strings_Wide_Superbounded,
Ada_Strings_Wide_Wide_Superbounded,
Ada_Strings_Unbounded,
Ada_Strings_Text_Output,
-- Children of Ada.Strings.Text_Output
Ada_Strings_Text_Output_Utils,
Ada_Strings_Text_Output_Buffers,
-- Children of Ada.Text_IO (for Check_Text_IO_Special_Unit)
Ada_Text_IO_Decimal_IO,
Ada_Text_IO_Enumeration_IO,
Ada_Text_IO_Fixed_IO,
Ada_Text_IO_Float_IO,
Ada_Text_IO_Integer_IO,
Ada_Text_IO_Modular_IO,
-- Children of Ada.Wide_Text_IO (for Check_Text_IO_Special_Unit)
Ada_Wide_Text_IO_Decimal_IO,
Ada_Wide_Text_IO_Enumeration_IO,
Ada_Wide_Text_IO_Fixed_IO,
Ada_Wide_Text_IO_Float_IO,
Ada_Wide_Text_IO_Integer_IO,
Ada_Wide_Text_IO_Modular_IO,
-- Children of Ada.Wide_Wide_Text_IO (for Check_Text_IO_Special_Unit)
Ada_Wide_Wide_Text_IO_Decimal_IO,
Ada_Wide_Wide_Text_IO_Enumeration_IO,
Ada_Wide_Wide_Text_IO_Fixed_IO,
Ada_Wide_Wide_Text_IO_Float_IO,
Ada_Wide_Wide_Text_IO_Integer_IO,
Ada_Wide_Wide_Text_IO_Modular_IO,
-- Package CUDA
CUDA,
-- Children of CUDA
CUDA_Driver_Types,
CUDA_Internal,
CUDA_Runtime_Api,
CUDA_Vector_Types,
-- Interfaces
Interfaces,
-- Children of Interfaces
Interfaces_C,
Interfaces_Packed_Decimal,
-- Children of Interfaces.C
Interfaces_C_Strings,
-- Package System
System,
-- Children of System
System_Address_Image,
System_Address_To_Access_Conversions,
System_Arith_64,
System_AST_Handling,
System_Assertions,
System_Atomic_Primitives,
System_Aux_DEC,
System_Bignums,
System_Bitfields,
System_Bit_Ops,
System_Boolean_Array_Operations,
System_Byte_Swapping,
System_Checked_Pools,
System_Compare_Array_Signed_16,
System_Compare_Array_Signed_32,
System_Compare_Array_Signed_64,
System_Compare_Array_Signed_8,
System_Compare_Array_Unsigned_16,
System_Compare_Array_Unsigned_32,
System_Compare_Array_Unsigned_64,
System_Compare_Array_Unsigned_8,
System_Concat_2,
System_Concat_3,
System_Concat_4,
System_Concat_5,
System_Concat_6,
System_Concat_7,
System_Concat_8,
System_Concat_9,
System_Dim,
System_DSA_Services,
System_DSA_Types,
System_Elaboration_Allocators,
System_Exception_Table,
System_Exceptions_Debug,
System_Exn_Int,
System_Exn_LLF,
System_Exn_LLI,
System_Exp_Int,
System_Exp_LInt,
System_Exp_LLI,
System_Exp_LLU,
System_Exp_Mod,
System_Exp_Uns,
System_Fat_Flt,
System_Fat_IEEE_Long_Float,
System_Fat_IEEE_Short_Float,
System_Fat_LFlt,
System_Fat_LLF,
System_Fat_SFlt,
System_Fat_VAX_D_Float,
System_Fat_VAX_F_Float,
System_Fat_VAX_G_Float,
System_Finalization_Masters,
System_Finalization_Root,
System_Fore,
System_Img_Bool,
System_Img_Char,
System_Img_Dec,
System_Img_Enum,
System_Img_Enum_New,
System_Img_Int,
System_Img_LLD,
System_Img_LLI,
System_Img_LLU,
System_Img_Name,
System_Img_Real,
System_Img_Uns,
System_Img_WChar,
System_Interrupts,
System_Long_Long_Float_Expon,
System_Machine_Code,
System_Mantissa,
System_Memcop,
System_Memory,
System_Multiprocessors,
System_Pack_03,
System_Pack_05,
System_Pack_06,
System_Pack_07,
System_Pack_09,
System_Pack_10,
System_Pack_11,
System_Pack_12,
System_Pack_13,
System_Pack_14,
System_Pack_15,
System_Pack_17,
System_Pack_18,
System_Pack_19,
System_Pack_20,
System_Pack_21,
System_Pack_22,
System_Pack_23,
System_Pack_24,
System_Pack_25,
System_Pack_26,
System_Pack_27,
System_Pack_28,
System_Pack_29,
System_Pack_30,
System_Pack_31,
System_Pack_33,
System_Pack_34,
System_Pack_35,
System_Pack_36,
System_Pack_37,
System_Pack_38,
System_Pack_39,
System_Pack_40,
System_Pack_41,
System_Pack_42,
System_Pack_43,
System_Pack_44,
System_Pack_45,
System_Pack_46,
System_Pack_47,
System_Pack_48,
System_Pack_49,
System_Pack_50,
System_Pack_51,
System_Pack_52,
System_Pack_53,
System_Pack_54,
System_Pack_55,
System_Pack_56,
System_Pack_57,
System_Pack_58,
System_Pack_59,
System_Pack_60,
System_Pack_61,
System_Pack_62,
System_Pack_63,
System_Parameters,
System_Partition_Interface,
System_Pool_32_Global,
System_Pool_Global,
System_Pool_Empty,
System_Pool_Local,
System_Pool_Size,
System_Put_Images,
System_Put_Task_Images,
System_Relative_Delays,
System_RPC,
System_Scalar_Values,
System_Secondary_Stack,
System_Shared_Storage,
System_Soft_Links,
System_Standard_Library,
System_Storage_Elements,
System_Storage_Pools,
System_Stream_Attributes,
System_Task_Info,
System_Tasking,
System_Threads,
System_Unsigned_Types,
System_Val_Bool,
System_Val_Char,
System_Val_Dec,
System_Val_Enum,
System_Val_Int,
System_Val_LLD,
System_Val_LLI,
System_Val_LLU,
System_Val_Name,
System_Val_Real,
System_Val_Uns,
System_Val_WChar,
System_Version_Control,
System_WCh_StW,
System_WCh_WtS,
System_Wid_Bool,
System_Wid_Char,
System_Wid_Enum,
System_Wid_LLI,
System_Wid_LLU,
System_Wid_Name,
System_Wid_WChar,
System_WWd_Char,
System_WWd_Enum,
System_WWd_Wchar,
-- Children of System.Dim
System_Dim_Float_IO,
System_Dim_Integer_IO,
-- Children of System.Multiprocessors
System_Multiprocessors_Dispatching_Domains,
-- Children of System.Storage_Pools
System_Storage_Pools_Subpools,
-- Children of System.Strings
System_Strings_Stream_Ops,
-- Children of System.Tasking
System_Tasking_Async_Delays,
System_Tasking_Async_Delays_Enqueue_Calendar,
System_Tasking_Async_Delays_Enqueue_RT,
System_Tasking_Protected_Objects,
System_Tasking_Protected_Objects_Entries,
System_Tasking_Protected_Objects_Operations,
System_Tasking_Protected_Objects_Single_Entry,
System_Tasking_Restricted_Stages,
System_Tasking_Rendezvous,
System_Tasking_Stages);
--------------------------
-- Runtime Entity Table --
--------------------------
-- This is the enumeration type used to define the argument passed to
-- the RTE function. The name must exactly match the name of the entity
-- involved, and in the case of a package entity, this name must uniquely
-- imply the package containing the entity.
-- As far as possible, we avoid duplicate names in runtime packages, so
-- that the name RE_nnn uniquely identifies the entity nnn. In some cases,
-- it is impossible to avoid such duplication because the names come from
-- RM defined packages. In such cases, the name is of the form RO_XX_nnn
-- where XX is two letters used to differentiate the multiple occurrences
-- of the name xx, and nnn is the entity name.
-- Note that not all entities in the units contained in the run-time unit
-- table are included in the following table, only those that actually
-- have to be referenced from generated code.
-- Note on RE_Null. This value is used as a null entry where an RE_Id
-- value is required syntactically, but no real entry is required or
-- needed. Use of this value will cause a fatal error in an RTE call.
-- Note that under no circumstances can any of these entities be defined
-- more than once in a given package, i.e. no overloading is allowed for
-- any entity that is found using rtsfind. A fatal error is given if this
-- rule is violated. The one exception is for Save_Occurrence, where the
-- RM mandates the overloading. In this case, the compiler only uses the
-- procedure, not the function, and the procedure must come first so that
-- the compiler finds it and not the function.
type RE_Id is (
RE_Null,
RO_CA_Clock_Time, -- Ada.Calendar
RO_CA_Time, -- Ada.Calendar
RO_CA_Delay_For, -- Ada.Calendar.Delays
RO_CA_Delay_Until, -- Ada.Calendar.Delays
RO_CA_To_Duration, -- Ada.Calendar.Delays
RE_Yield, -- Ada_Dispatching
RE_Set_Deadline, -- Ada.Dispatching.EDF
RE_Code_Loc, -- Ada.Exceptions
RE_Exception_Id, -- Ada.Exceptions
RE_Exception_Identity, -- Ada.Exceptions
RE_Exception_Information, -- Ada.Exceptions
RE_Exception_Message, -- Ada.Exceptions
RE_Exception_Name_Simple, -- Ada.Exceptions
RE_Exception_Occurrence, -- Ada.Exceptions
RE_Exception_Occurrence_Access, -- Ada.Exceptions
RE_Null_Id, -- Ada.Exceptions
RE_Null_Occurrence, -- Ada.Exceptions
RE_Poll, -- Ada.Exceptions
RE_Raise_Exception, -- Ada.Exceptions
RE_Raise_Exception_Always, -- Ada.Exceptions
RE_Raise_From_Controlled_Operation, -- Ada.Exceptions
RE_Reraise_Occurrence, -- Ada.Exceptions
RE_Reraise_Occurrence_Always, -- Ada.Exceptions
RE_Reraise_Occurrence_No_Defer, -- Ada.Exceptions
RE_Save_Occurrence, -- Ada.Exceptions
RE_Triggered_By_Abort, -- Ada.Exceptions
RE_Interrupt_ID, -- Ada.Interrupts
RE_Is_Reserved, -- Ada.Interrupts
RE_Is_Attached, -- Ada.Interrupts
RE_Current_Handler, -- Ada.Interrupts
RE_Attach_Handler, -- Ada.Interrupts
RE_Exchange_Handler, -- Ada.Interrupts
RE_Detach_Handler, -- Ada.Interrupts
RE_Reference, -- Ada.Interrupts
RE_Names, -- Ada.Interrupts.Names
RE_Clock, -- Ada.Real_Time
RE_Clock_Time, -- Ada.Real_Time
RE_Time_Span, -- Ada.Real_Time
RE_Time_Span_Zero, -- Ada.Real_Time
RO_RT_Time, -- Ada.Real_Time
RO_RT_Delay_Until, -- Ada.Real_Time.Delays
RO_RT_To_Duration, -- Ada.Real_Time.Delays
RE_Set_Handler, -- Ada.Real_Time.Timing_Events
RE_Timing_Event, -- Ada.Real_Time.Timing_Events
RE_Root_Stream_Type, -- Ada.Streams
RE_Stream_Element, -- Ada.Streams
RE_Stream_Element_Array, -- Ada.Streams
RE_Stream_Element_Offset, -- Ada.Streams
RE_Stream_Access, -- Ada.Streams.Stream_IO
RO_SU_Super_String, -- Ada.Strings.Superbounded
RO_WI_Super_String, -- Ada.Strings.Wide_Superbounded
RO_WW_Super_String, -- Ada.Strings.Wide_Wide_Superbounded
RE_Unbounded_String, -- Ada.Strings.Unbounded
RE_Sink, -- Ada.Strings.Text_Output
RE_Put_UTF_8, -- Ada.Strings.Text_Output.Utils
RE_Put_Wide_Wide_String, -- Ada.Strings.Text_Output.Utils
RE_Buffer, -- Ada.Strings.Text_Output.Buffers
RE_New_Buffer, -- Ada.Strings.Text_Output.Buffers
RE_Destroy, -- Ada.Strings.Text_Output.Buffers
RE_Get, -- Ada.Strings.Text_Output.Buffers
RE_Wait_For_Release, -- Ada.Synchronous_Barriers
RE_Suspend_Until_True, -- Ada.Synchronous_Task_Control
RE_Access_Level, -- Ada.Tags
RE_Alignment, -- Ada.Tags
RE_Address_Array, -- Ada.Tags
RE_Addr_Ptr, -- Ada.Tags
RE_Base_Address, -- Ada.Tags
RE_Check_Interface_Conversion, -- Ada.Tags
RE_Check_TSD, -- Ada.Tags
RE_Cstring_Ptr, -- Ada.Tags
RE_CW_Membership, -- Ada.Tags
RE_Descendant_Tag, -- Ada.Tags
RE_Dispatch_Table, -- Ada.Tags
RE_Dispatch_Table_Wrapper, -- Ada.Tags
RE_Displace, -- Ada.Tags
RE_DT, -- Ada.Tags
RE_DT_Offset_To_Top_Offset, -- Ada.Tags
RE_DT_Predef_Prims_Offset, -- Ada.Tags
RE_DT_Typeinfo_Ptr_Size, -- Ada.Tags
RE_External_Tag, -- Ada.Tags
RO_TA_External_Tag, -- Ada.Tags
RE_Get_Access_Level, -- Ada.Tags
RE_Get_Alignment, -- Ada.Tags
RE_Get_Entry_Index, -- Ada.Tags
RE_Get_Offset_Index, -- Ada.Tags
RE_Get_Prim_Op_Kind, -- Ada.Tags
RE_Get_Tagged_Kind, -- Ada.Tags
RE_HT_Link, -- Ada.Tags
RE_Idepth, -- Ada.Tags
RE_Interfaces_Array, -- Ada.Tags
RE_Interfaces_Table, -- Ada.Tags
RE_Interface_Data, -- Ada.Tags
RE_Interface_Data_Element, -- Ada.Tags
RE_Interface_Tag, -- Ada.Tags
RE_Is_Abstract, -- Ada.Tags
RE_IW_Membership, -- Ada.Tags
RE_Max_Predef_Prims, -- Ada.Tags
RE_Needs_Finalization, -- Ada.Tags
RE_No_Dispatch_Table_Wrapper, -- Ada.Tags
RE_No_Tag, -- Ada.Tags
RE_NDT_Prims_Ptr, -- Ada.Tags
RE_NDT_TSD, -- Ada.Tags
RE_Num_Prims, -- Ada.Tags
RE_Object_Specific_Data, -- Ada.Tags
RE_Offset_To_Top, -- Ada.Tags
RE_Offset_To_Top_Ptr, -- Ada.Tags
RE_Offset_To_Top_Function_Ptr, -- Ada.Tags
RE_OSD_Table, -- Ada.Tags
RE_OSD_Num_Prims, -- Ada.Tags
RE_POK_Function, -- Ada.Tags
RE_POK_Procedure, -- Ada.Tags
RE_POK_Protected_Entry, -- Ada.Tags
RE_POK_Protected_Function, -- Ada.Tags
RE_POK_Protected_Procedure, -- Ada.Tags
RE_POK_Task_Entry, -- Ada.Tags
RE_POK_Task_Function, -- Ada.Tags
RE_POK_Task_Procedure, -- Ada.Tags
RE_Predef_Prims, -- Ada.Tags
RE_Predef_Prims_Table_Ptr, -- Ada.Tags
RE_Prim_Op_Kind, -- Ada.Tags
RE_Prim_Ptr, -- Ada.Tags
RE_Prims_Ptr, -- Ada.Tags
RE_Primary_DT, -- Ada.Tags
RE_Signature, -- Ada.Tags
RE_SSD, -- Ada.Tags
RE_TSD, -- Ada.Tags
RE_Type_Specific_Data, -- Ada.Tags
RE_Register_Interface_Offset, -- Ada.Tags
RE_Register_Tag, -- Ada.Tags
RE_Register_TSD, -- Ada.Tags
RE_Transportable, -- Ada.Tags
RE_Secondary_DT, -- Ada.Tags
RE_Secondary_Tag, -- Ada.Tags
RE_Select_Specific_Data, -- Ada.Tags
RE_Set_Entry_Index, -- Ada.Tags
RE_Set_Dynamic_Offset_To_Top, -- Ada.Tags
RE_Set_Prim_Op_Kind, -- Ada.Tags
RE_Size_Func, -- Ada.Tags
RE_Size_Ptr, -- Ada.Tags
RE_Tag, -- Ada.Tags
RE_Tag_Error, -- Ada.Tags
RE_Tag_Kind, -- Ada.Tags
RE_Tag_Ptr, -- Ada.Tags
RE_Tag_Table, -- Ada.Tags
RE_Tags_Table, -- Ada.Tags
RE_Tagged_Kind, -- Ada.Tags
RE_Type_Specific_Data_Ptr, -- Ada.Tags
RE_TK_Abstract_Limited_Tagged, -- Ada.Tags
RE_TK_Abstract_Tagged, -- Ada.Tags
RE_TK_Limited_Tagged, -- Ada.Tags
RE_TK_Protected, -- Ada.Tags
RE_TK_Tagged, -- Ada.Tags
RE_TK_Task, -- Ada.Tags
RE_Unregister_Tag, -- Ada.Tags
RE_Set_Specific_Handler, -- Ada.Task_Termination
RE_Specific_Handler, -- Ada.Task_Termination
RE_Abort_Task, -- Ada.Task_Identification
RE_Current_Task, -- Ada.Task_Identification
RO_AT_Task_Id, -- Ada.Task_Identification
RE_Tasking_State, -- Ada.Task_Identification
RE_Decimal_IO, -- Ada.Text_IO
RE_Fixed_IO, -- Ada.Text_IO
RO_WT_Decimal_IO, -- Ada.Wide_Text_IO
RO_WT_Fixed_IO, -- Ada.Wide_Text_IO
RO_WW_Decimal_IO, -- Ada.Wide_Wide_Text_IO
RO_WW_Fixed_IO, -- Ada.Wide_Wide_Text_IO
RE_Stream_T, -- CUDA.Driver_Types
RE_Fatbin_Wrapper, -- CUDA.Internal
RE_Push_Call_Configuration, -- CUDA.Internal
RE_Pop_Call_Configuration, -- CUDA.Internal
RE_Register_Fat_Binary, -- CUDA.Internal
RE_Register_Fat_Binary_End, -- CUDA.Internal
RE_Register_Function, -- CUDA.Internal
RE_Launch_Kernel, -- CUDA.Runtime_Api
RE_Dim3, -- CUDA.Vector_Types
RE_Integer_8, -- Interfaces
RE_Integer_16, -- Interfaces
RE_Integer_32, -- Interfaces
RE_Integer_64, -- Interfaces
RE_Unsigned_8, -- Interfaces
RE_Unsigned_16, -- Interfaces
RE_Unsigned_32, -- Interfaces
RE_Unsigned_64, -- Interfaces
RO_IC_Unsigned, -- Interfaces.C
RO_IC_Unsigned_Long_Long, -- Interfaces.C
RE_Chars_Ptr, -- Interfaces.C.Strings
RE_New_Char_Array, -- Interfaces.C.Strings
RE_Address, -- System
RE_Any_Priority, -- System
RE_Bit_Order, -- System
RE_Default_Priority, -- System
RE_High_Order_First, -- System
RE_Interrupt_Priority, -- System
RE_Lib_Stop, -- System
RE_Low_Order_First, -- System
RE_Max_Base_Digits, -- System
RE_Max_Priority, -- System
RE_Null_Address, -- System
RE_Priority, -- System
RE_Address_Image, -- System.Address_Image
RE_Add_With_Ovflo_Check, -- System.Arith_64
RE_Double_Divide, -- System.Arith_64
RE_Multiply_With_Ovflo_Check, -- System.Arith_64
RE_Scaled_Divide, -- System.Arith_64
RE_Subtract_With_Ovflo_Check, -- System.Arith_64
RE_Create_AST_Handler, -- System.AST_Handling
RE_Assert_Failure, -- System.Assertions
RE_Raise_Assert_Failure, -- System.Assertions
RE_Lock_Free_Read_8, -- System.Atomic_Primitives
RE_Lock_Free_Read_16, -- System.Atomic_Primitives
RE_Lock_Free_Read_32, -- System.Atomic_Primitives
RE_Lock_Free_Read_64, -- System.Atomic_Primitives
RE_Lock_Free_Try_Write_8, -- System.Atomic_Primitives
RE_Lock_Free_Try_Write_16, -- System.Atomic_Primitives
RE_Lock_Free_Try_Write_32, -- System.Atomic_Primitives
RE_Lock_Free_Try_Write_64, -- System.Atomic_Primitives
RE_Uint8, -- System.Atomic_Primitives
RE_Uint16, -- System.Atomic_Primitives
RE_Uint32, -- System.Atomic_Primitives
RE_Uint64, -- System.Atomic_Primitives
RE_AST_Handler, -- System.Aux_DEC
RE_Import_Address, -- System.Aux_DEC
RE_Import_Value, -- System.Aux_DEC
RE_No_AST_Handler, -- System.Aux_DEC
RE_Type_Class, -- System.Aux_DEC
RE_Type_Class_Enumeration, -- System.Aux_DEC
RE_Type_Class_Integer, -- System.Aux_DEC
RE_Type_Class_Fixed_Point, -- System.Aux_DEC
RE_Type_Class_Floating_Point, -- System.Aux_DEC
RE_Type_Class_Array, -- System.Aux_DEC
RE_Type_Class_Record, -- System.Aux_DEC
RE_Type_Class_Access, -- System.Aux_DEC
RE_Type_Class_Task, -- System.Aux_DEC
RE_Type_Class_Address, -- System.Aux_DEC
RE_Big_Abs, -- System.Bignums
RE_Big_Add, -- System.Bignums
RE_Big_Div, -- System.Bignums
RE_Big_Exp, -- System.Bignums
RE_Big_Mod, -- System.Bignums
RE_Big_Mul, -- System.Bignums
RE_Big_Neg, -- System.Bignums
RE_Big_Rem, -- System.Bignums
RE_Big_Sub, -- System.Bignums
RE_Big_EQ, -- System.Bignums
RE_Big_GE, -- System.Bignums
RE_Big_GT, -- System.Bignums
RE_Big_LE, -- System.Bignums
RE_Big_LT, -- System.Bignums
RE_Big_NE, -- System.Bignums
RE_Bignum, -- System.Bignums
RE_Bignum_In_LLI_Range, -- System.Bignums
RE_To_Bignum, -- System.Bignums
RE_From_Bignum, -- System.Bignums
RE_Copy_Bitfield, -- System.Bitfields
RE_Bit_And, -- System.Bit_Ops
RE_Bit_Eq, -- System.Bit_Ops
RE_Bit_Not, -- System.Bit_Ops
RE_Bit_Or, -- System.Bit_Ops
RE_Bit_Xor, -- System.Bit_Ops
RE_Vector_Not, -- System.Boolean_Array_Operations,
RE_Vector_And, -- System.Boolean_Array_Operations,
RE_Vector_Or, -- System.Boolean_Array_Operations,
RE_Vector_Nand, -- System.Boolean_Array_Operations,
RE_Vector_Nor, -- System.Boolean_Array_Operations,
RE_Vector_Nxor, -- System.Boolean_Array_Operations,
RE_Vector_Xor, -- System.Boolean_Array_Operations,
RE_Bswap_16, -- System.Byte_Swapping
RE_Bswap_32, -- System.Byte_Swapping
RE_Bswap_64, -- System.Byte_Swapping
RE_Checked_Pool, -- System.Checked_Pools
RE_Compare_Array_S8, -- System.Compare_Array_Signed_8
RE_Compare_Array_S8_Unaligned, -- System.Compare_Array_Signed_8
RE_Compare_Array_S16, -- System.Compare_Array_Signed_16
RE_Compare_Array_S32, -- System.Compare_Array_Signed_16
RE_Compare_Array_S64, -- System.Compare_Array_Signed_16
RE_Compare_Array_U8, -- System.Compare_Array_Unsigned_8
RE_Compare_Array_U8_Unaligned, -- System.Compare_Array_Unsigned_8
RE_Compare_Array_U16, -- System.Compare_Array_Unsigned_16
RE_Compare_Array_U32, -- System.Compare_Array_Unsigned_16
RE_Compare_Array_U64, -- System.Compare_Array_Unsigned_16
RE_Str_Concat_2, -- System.Concat_2
RE_Str_Concat_3, -- System.Concat_3
RE_Str_Concat_4, -- System.Concat_4
RE_Str_Concat_5, -- System.Concat_5
RE_Str_Concat_6, -- System.Concat_6
RE_Str_Concat_7, -- System.Concat_7
RE_Str_Concat_8, -- System.Concat_8
RE_Str_Concat_9, -- System.Concat_9
RE_Str_Concat_Bounds_2, -- System.Concat_2
RE_Str_Concat_Bounds_3, -- System.Concat_3
RE_Str_Concat_Bounds_4, -- System.Concat_4
RE_Str_Concat_Bounds_5, -- System.Concat_5
RE_Str_Concat_Bounds_6, -- System.Concat_6
RE_Str_Concat_Bounds_7, -- System.Concat_7
RE_Str_Concat_Bounds_8, -- System.Concat_8
RE_Str_Concat_Bounds_9, -- System.Concat_9
RE_Get_Active_Partition_Id, -- System.DSA_Services
RE_Get_Local_Partition_Id, -- System.DSA_Services
RE_Get_Passive_Partition_Id, -- System.DSA_Services
RE_Any_Container_Ptr, -- System.DSA_Types
RE_Check_Standard_Allocator, -- System.Elaboration_Allocators
RE_Register_Exception, -- System.Exception_Table
RE_Local_Raise, -- System.Exceptions_Debug
RE_Exn_Integer, -- System.Exn_Int
RE_Exn_Float, -- System.Exn_LLF
RE_Exn_Long_Float, -- System.Exn_LLF
RE_Exn_Long_Long_Float, -- System.Exn_LLF
RE_Exn_Long_Long_Integer, -- System.Exn_LLI
RE_Exp_Integer, -- System.Exp_Int
RE_Exp_Long_Long_Integer, -- System.Exp_LLI
RE_Exp_Long_Long_Unsigned, -- System.Exp_LLU
RE_Exp_Modular, -- System.Exp_Mod
RE_Exp_Unsigned, -- System.Exp_Uns
RE_Attr_Float, -- System.Fat_Flt
RE_Attr_IEEE_Long, -- System.Fat_IEEE_Long_Float
RE_Fat_IEEE_Long, -- System.Fat_IEEE_Long_Float
RE_Attr_IEEE_Short, -- System.Fat_IEEE_Short_Float
RE_Fat_IEEE_Short, -- System.Fat_IEEE_Short_Float
RE_Attr_Long_Float, -- System.Fat_LFlt
RE_Attr_Long_Long_Float, -- System.Fat_LLF
RE_Attr_Short_Float, -- System.Fat_SFlt
RE_Attr_VAX_D_Float, -- System.Fat_VAX_D_Float
RE_Fat_VAX_D, -- System.Fat_VAX_D_Float
RE_Attr_VAX_F_Float, -- System.Fat_VAX_F_Float
RE_Fat_VAX_F, -- System.Fat_VAX_F_Float
RE_Attr_VAX_G_Float, -- System.Fat_VAX_G_Float
RE_Fat_VAX_G, -- System.Fat_VAX_G_Float
RE_Add_Offset_To_Address, -- System.Finalization_Masters
RE_Attach, -- System.Finalization_Masters
RE_Base_Pool, -- System.Finalization_Masters
RE_Detach, -- System.Finalization_Masters
RE_Finalization_Master, -- System.Finalization_Masters
RE_Finalization_Master_Ptr, -- System.Finalization_Masters
RE_Set_Base_Pool, -- System.Finalization_Masters
RE_Set_Finalize_Address, -- System.Finalization_Masters
RE_Set_Is_Heterogeneous, -- System.Finalization_Masters
RE_Root_Controlled, -- System.Finalization_Root
RE_Root_Controlled_Ptr, -- System.Finalization_Root
RE_Fore, -- System.Fore
RE_Image_Boolean, -- System.Img_Bool
RE_Image_Character, -- System.Img_Char
RE_Image_Character_05, -- System.Img_Char
RE_Image_Decimal, -- System.Img_Dec
RE_Image_Enumeration_8, -- System.Img_Enum_New
RE_Image_Enumeration_16, -- System.Img_Enum_New
RE_Image_Enumeration_32, -- System.Img_Enum_New
RE_Image_Integer, -- System.Img_Int
RE_Image_Long_Long_Decimal, -- System.Img_LLD
RE_Image_Long_Long_Integer, -- System.Img_LLI
RE_Image_Long_Long_Unsigned, -- System.Img_LLU
RE_Image_Ordinary_Fixed_Point, -- System.Img_Real
RE_Image_Floating_Point, -- System.Img_Real
RE_Image_Unsigned, -- System.Img_Uns
RE_Image_Wide_Character, -- System.Img_WChar
RE_Image_Wide_Wide_Character, -- System.Img_WChar
RE_Bind_Interrupt_To_Entry, -- System.Interrupts
RE_Default_Interrupt_Priority, -- System.Interrupts
RE_Dynamic_Interrupt_Protection, -- System.Interrupts
RE_Install_Handlers, -- System.Interrupts
RE_Install_Restricted_Handlers, -- System.Interrupts
RE_Register_Interrupt_Handler, -- System.Interrupts
RE_Static_Interrupt_Protection, -- System.Interrupts
RE_System_Interrupt_Id, -- System.Interrupts
RE_Expon_LLF, -- System.Long_Long_Float_Expon
RE_Asm_Insn, -- System.Machine_Code
RE_Asm_Input_Operand, -- System.Machine_Code
RE_Asm_Output_Operand, -- System.Machine_Code
RE_Mantissa_Value, -- System.Mantissa
RE_Free, -- System.Memory
RE_CPU_Range, -- System.Multiprocessors
RE_Bits_03, -- System.Pack_03
RE_Get_03, -- System.Pack_03
RE_Set_03, -- System.Pack_03
RE_Bits_05, -- System.Pack_05
RE_Get_05, -- System.Pack_05
RE_Set_05, -- System.Pack_05
RE_Bits_06, -- System.Pack_06
RE_Get_06, -- System.Pack_06
RE_GetU_06, -- System.Pack_06
RE_Set_06, -- System.Pack_06
RE_SetU_06, -- System.Pack_06
RE_Bits_07, -- System.Pack_07
RE_Get_07, -- System.Pack_07
RE_Set_07, -- System.Pack_07
RE_Bits_09, -- System.Pack_09
RE_Get_09, -- System.Pack_09
RE_Set_09, -- System.Pack_09
RE_Bits_10, -- System.Pack_10
RE_Get_10, -- System.Pack_10
RE_GetU_10, -- System.Pack_10
RE_Set_10, -- System.Pack_10
RE_SetU_10, -- System.Pack_10
RE_Bits_11, -- System.Pack_11
RE_Get_11, -- System.Pack_11
RE_Set_11, -- System.Pack_11
RE_Bits_12, -- System.Pack_12
RE_Get_12, -- System.Pack_12
RE_GetU_12, -- System.Pack_12
RE_Set_12, -- System.Pack_12
RE_SetU_12, -- System.Pack_12
RE_Bits_13, -- System.Pack_13
RE_Get_13, -- System.Pack_13
RE_Set_13, -- System.Pack_13
RE_Bits_14, -- System.Pack_14
RE_Get_14, -- System.Pack_14
RE_GetU_14, -- System.Pack_14
RE_Set_14, -- System.Pack_14
RE_SetU_14, -- System.Pack_14
RE_Bits_15, -- System.Pack_15
RE_Get_15, -- System.Pack_15
RE_Set_15, -- System.Pack_15
RE_Bits_17, -- System.Pack_17
RE_Get_17, -- System.Pack_17
RE_Set_17, -- System.Pack_17
RE_Bits_18, -- System.Pack_18
RE_Get_18, -- System.Pack_18
RE_GetU_18, -- System.Pack_18
RE_Set_18, -- System.Pack_18
RE_SetU_18, -- System.Pack_18
RE_Bits_19, -- System.Pack_19
RE_Get_19, -- System.Pack_19
RE_Set_19, -- System.Pack_19
RE_Bits_20, -- System.Pack_20
RE_Get_20, -- System.Pack_20
RE_GetU_20, -- System.Pack_20
RE_Set_20, -- System.Pack_20
RE_SetU_20, -- System.Pack_20
RE_Bits_21, -- System.Pack_21
RE_Get_21, -- System.Pack_21
RE_Set_21, -- System.Pack_21
RE_Bits_22, -- System.Pack_22
RE_Get_22, -- System.Pack_22
RE_GetU_22, -- System.Pack_22
RE_Set_22, -- System.Pack_22
RE_SetU_22, -- System.Pack_22
RE_Bits_23, -- System.Pack_23
RE_Get_23, -- System.Pack_23
RE_Set_23, -- System.Pack_23
RE_Bits_24, -- System.Pack_24
RE_Get_24, -- System.Pack_24
RE_GetU_24, -- System.Pack_24
RE_Set_24, -- System.Pack_24
RE_SetU_24, -- System.Pack_24
RE_Bits_25, -- System.Pack_25
RE_Get_25, -- System.Pack_25
RE_Set_25, -- System.Pack_25
RE_Bits_26, -- System.Pack_26
RE_Get_26, -- System.Pack_26
RE_GetU_26, -- System.Pack_26
RE_Set_26, -- System.Pack_26
RE_SetU_26, -- System.Pack_26
RE_Bits_27, -- System.Pack_27
RE_Get_27, -- System.Pack_27
RE_Set_27, -- System.Pack_27
RE_Bits_28, -- System.Pack_28
RE_Get_28, -- System.Pack_28
RE_GetU_28, -- System.Pack_28
RE_Set_28, -- System.Pack_28
RE_SetU_28, -- System.Pack_28
RE_Bits_29, -- System.Pack_29
RE_Get_29, -- System.Pack_29
RE_Set_29, -- System.Pack_29
RE_Bits_30, -- System.Pack_30
RE_Get_30, -- System.Pack_30
RE_GetU_30, -- System.Pack_30
RE_Set_30, -- System.Pack_30
RE_SetU_30, -- System.Pack_30
RE_Bits_31, -- System.Pack_31
RE_Get_31, -- System.Pack_31
RE_Set_31, -- System.Pack_31
RE_Bits_33, -- System.Pack_33
RE_Get_33, -- System.Pack_33
RE_Set_33, -- System.Pack_33
RE_Bits_34, -- System.Pack_34
RE_Get_34, -- System.Pack_34
RE_GetU_34, -- System.Pack_34
RE_Set_34, -- System.Pack_34
RE_SetU_34, -- System.Pack_34
RE_Bits_35, -- System.Pack_35
RE_Get_35, -- System.Pack_35
RE_Set_35, -- System.Pack_35
RE_Bits_36, -- System.Pack_36
RE_Get_36, -- System.Pack_36
RE_GetU_36, -- System.Pack_36
RE_Set_36, -- System.Pack_36
RE_SetU_36, -- System.Pack_36
RE_Bits_37, -- System.Pack_37
RE_Get_37, -- System.Pack_37
RE_Set_37, -- System.Pack_37
RE_Bits_38, -- System.Pack_38
RE_Get_38, -- System.Pack_38
RE_GetU_38, -- System.Pack_38
RE_Set_38, -- System.Pack_38
RE_SetU_38, -- System.Pack_38
RE_Bits_39, -- System.Pack_39
RE_Get_39, -- System.Pack_39
RE_Set_39, -- System.Pack_39
RE_Bits_40, -- System.Pack_40
RE_Get_40, -- System.Pack_40
RE_GetU_40, -- System.Pack_40
RE_Set_40, -- System.Pack_40
RE_SetU_40, -- System.Pack_40
RE_Bits_41, -- System.Pack_41
RE_Get_41, -- System.Pack_41
RE_Set_41, -- System.Pack_41
RE_Bits_42, -- System.Pack_42
RE_Get_42, -- System.Pack_42
RE_GetU_42, -- System.Pack_42
RE_Set_42, -- System.Pack_42
RE_SetU_42, -- System.Pack_42
RE_Bits_43, -- System.Pack_43
RE_Get_43, -- System.Pack_43
RE_Set_43, -- System.Pack_43
RE_Bits_44, -- System.Pack_44
RE_Get_44, -- System.Pack_44
RE_GetU_44, -- System.Pack_44
RE_Set_44, -- System.Pack_44
RE_SetU_44, -- System.Pack_44
RE_Bits_45, -- System.Pack_45
RE_Get_45, -- System.Pack_45
RE_Set_45, -- System.Pack_45
RE_Bits_46, -- System.Pack_46
RE_Get_46, -- System.Pack_46
RE_GetU_46, -- System.Pack_46
RE_Set_46, -- System.Pack_46
RE_SetU_46, -- System.Pack_46
RE_Bits_47, -- System.Pack_47
RE_Get_47, -- System.Pack_47
RE_Set_47, -- System.Pack_47
RE_Bits_48, -- System.Pack_48
RE_Get_48, -- System.Pack_48
RE_GetU_48, -- System.Pack_48
RE_Set_48, -- System.Pack_48
RE_SetU_48, -- System.Pack_48
RE_Bits_49, -- System.Pack_49
RE_Get_49, -- System.Pack_49
RE_Set_49, -- System.Pack_49
RE_Bits_50, -- System.Pack_50
RE_Get_50, -- System.Pack_50
RE_GetU_50, -- System.Pack_50
RE_Set_50, -- System.Pack_50
RE_SetU_50, -- System.Pack_50
RE_Bits_51, -- System.Pack_51
RE_Get_51, -- System.Pack_51
RE_Set_51, -- System.Pack_51
RE_Bits_52, -- System.Pack_52
RE_Get_52, -- System.Pack_52
RE_GetU_52, -- System.Pack_52
RE_Set_52, -- System.Pack_52
RE_SetU_52, -- System.Pack_52
RE_Bits_53, -- System.Pack_53
RE_Get_53, -- System.Pack_53
RE_Set_53, -- System.Pack_53
RE_Bits_54, -- System.Pack_54
RE_Get_54, -- System.Pack_54
RE_GetU_54, -- System.Pack_54
RE_Set_54, -- System.Pack_54
RE_SetU_54, -- System.Pack_54
RE_Bits_55, -- System.Pack_55
RE_Get_55, -- System.Pack_55
RE_Set_55, -- System.Pack_55
RE_Bits_56, -- System.Pack_56
RE_Get_56, -- System.Pack_56
RE_GetU_56, -- System.Pack_56
RE_Set_56, -- System.Pack_56
RE_SetU_56, -- System.Pack_56
RE_Bits_57, -- System.Pack_57
RE_Get_57, -- System.Pack_57
RE_Set_57, -- System.Pack_57
RE_Bits_58, -- System.Pack_58
RE_Get_58, -- System.Pack_58
RE_GetU_58, -- System.Pack_58
RE_Set_58, -- System.Pack_58
RE_SetU_58, -- System.Pack_58
RE_Bits_59, -- System.Pack_59
RE_Get_59, -- System.Pack_59
RE_Set_59, -- System.Pack_59
RE_Bits_60, -- System.Pack_60
RE_Get_60, -- System.Pack_60
RE_GetU_60, -- System.Pack_60
RE_Set_60, -- System.Pack_60
RE_SetU_60, -- System.Pack_60
RE_Bits_61, -- System.Pack_61
RE_Get_61, -- System.Pack_61
RE_Set_61, -- System.Pack_61
RE_Bits_62, -- System.Pack_62
RE_Get_62, -- System.Pack_62
RE_GetU_62, -- System.Pack_62
RE_Set_62, -- System.Pack_62
RE_SetU_62, -- System.Pack_62
RE_Bits_63, -- System.Pack_63
RE_Get_63, -- System.Pack_63
RE_Set_63, -- System.Pack_63
RE_Adjust_Storage_Size, -- System.Parameters
RE_Default_Secondary_Stack_Size, -- System.Parameters
RE_Default_Stack_Size, -- System.Parameters
RE_Garbage_Collected, -- System.Parameters
RE_Size_Type, -- System.Parameters
RE_Unspecified_Size, -- System.Parameters
RE_DSA_Implementation, -- System.Partition_Interface
RE_PCS_Version, -- System.Partition_Interface
RE_Get_RACW, -- System.Partition_Interface
RE_Get_RCI_Package_Receiver, -- System.Partition_Interface
RE_Get_Unique_Remote_Pointer, -- System.Partition_Interface
RE_RACW_Stub_Type, -- System.Partition_Interface
RE_RACW_Stub_Type_Access, -- System.Partition_Interface
RE_RAS_Proxy_Type_Access, -- System.Partition_Interface
RE_Raise_Program_Error_Unknown_Tag, -- System.Partition_Interface
RE_Register_Passive_Package, -- System.Partition_Interface
RE_Register_Receiving_Stub, -- System.Partition_Interface
RE_Request, -- System.Partition_Interface
RE_Request_Access, -- System.Partition_Interface
RE_RCI_Locator, -- System.Partition_Interface
RE_RCI_Subp_Info, -- System.Partition_Interface
RE_RCI_Subp_Info_Array, -- System.Partition_Interface
RE_Same_Partition, -- System.Partition_Interface
RE_Subprogram_Id, -- System.Partition_Interface
RE_Get_RAS_Info, -- System.Partition_Interface
RE_Global_Pool_Object, -- System.Pool_Global
RE_Global_Pool_32_Object, -- System.Pool_32_Global
RE_Stack_Bounded_Pool, -- System.Pool_Size
RE_Put_Image_Integer, -- System.Put_Images
RE_Put_Image_Long_Long_Integer, -- System.Put_Images
RE_Put_Image_Unsigned, -- System.Put_Images
RE_Put_Image_Long_Long_Unsigned, -- System.Put_Images
RE_Put_Image_Thin_Pointer, -- System.Put_Images
RE_Put_Image_Fat_Pointer, -- System.Put_Images
RE_Put_Image_Access_Subp, -- System.Put_Images
RE_Put_Image_Access_Prot_Subp, -- System.Put_Images
RE_Put_Image_String, -- System.Put_Images
RE_Put_Image_Wide_String, -- System.Put_Images
RE_Put_Image_Wide_Wide_String, -- System.Put_Images
RE_Array_Before, -- System.Put_Images
RE_Array_Between, -- System.Put_Images
RE_Array_After, -- System.Put_Images
RE_Simple_Array_Between, -- System.Put_Images
RE_Record_Before, -- System.Put_Images
RE_Record_Between, -- System.Put_Images
RE_Record_After, -- System.Put_Images
RE_Put_Image_Unknown, -- System.Put_Images
RE_Put_Image_Protected, -- System.Put_Task_Images
RE_Put_Image_Task, -- System.Put_Task_Images
RE_Do_Apc, -- System.RPC
RE_Do_Rpc, -- System.RPC
RE_Params_Stream_Type, -- System.RPC
RE_Partition_ID, -- System.RPC
RE_To_PolyORB_String, -- System.Partition_Interface
RE_Caseless_String_Eq, -- System.Partition_Interface
RE_TypeCode, -- System.Partition_Interface
RE_Any, -- System.Partition_Interface
RE_Mode_In, -- System.Partition_Interface
RE_Mode_Out, -- System.Partition_Interface
RE_Mode_Inout, -- System.Partition_Interface
RE_NamedValue, -- System.Partition_Interface
RE_Result_Name, -- System.Partition_Interface
RE_Object_Ref, -- System.Partition_Interface
RE_Create_Any, -- System.Partition_Interface
RE_Any_Aggregate_Build, -- System.Partition_Interface
RE_Add_Aggregate_Element, -- System.Partition_Interface
RE_Get_Aggregate_Element, -- System.Partition_Interface
RE_Content_Type, -- System.Partition_Interface
RE_Any_Member_Type, -- System.Partition_Interface
RE_Get_Nested_Sequence_Length, -- System.Partition_Interface
RE_Get_Any_Type, -- System.Partition_Interface
RE_Extract_Union_Value, -- System.Partition_Interface
RE_NVList_Ref, -- System.Partition_Interface
RE_NVList_Create, -- System.Partition_Interface
RE_NVList_Add_Item, -- System.Partition_Interface
RE_Request_Arguments, -- System.Partition_Interface
RE_Request_Invoke, -- System.Partition_Interface
RE_Request_Raise_Occurrence, -- System.Partition_Interface
RE_Request_Set_Out, -- System.Partition_Interface
RE_Request_Setup, -- System.Partition_Interface
RE_Nil_Exc_List, -- System.Partition_Interface
RE_Servant, -- System.Partition_Interface
RE_Move_Any_Value, -- System.Partition_Interface
RE_Set_Result, -- System.Partition_Interface
RE_Register_Obj_Receiving_Stub, -- System.Partition_Interface
RE_Register_Pkg_Receiving_Stub, -- System.Partition_Interface
RE_Is_Nil, -- System.Partition_Interface
RE_Entity_Ptr, -- System.Partition_Interface
RE_Entity_Of, -- System.Partition_Interface
RE_Inc_Usage, -- System.Partition_Interface
RE_Set_Ref, -- System.Partition_Interface
RE_Make_Ref, -- System.Partition_Interface
RE_Get_Local_Address, -- System.Partition_Interface
RE_Get_Reference, -- System.Partition_Interface
RE_Asynchronous_P_To_Sync_Scope, -- System.Partition_Interface
RE_Buffer_Stream_Type, -- System.Partition_Interface
RE_Release_Buffer, -- System.Partition_Interface
RE_BS_To_Any, -- System.Partition_Interface
RE_Any_To_BS, -- System.Partition_Interface
RE_Build_Complex_TC, -- System.Partition_Interface
RE_Get_TC, -- System.Partition_Interface
RE_Set_TC, -- System.Partition_Interface
RE_FA_A, -- System.Partition_Interface
RE_FA_B, -- System.Partition_Interface
RE_FA_C, -- System.Partition_Interface
RE_FA_F, -- System.Partition_Interface
RE_FA_I8, -- System.Partition_Interface
RE_FA_I16, -- System.Partition_Interface
RE_FA_I32, -- System.Partition_Interface
RE_FA_I64, -- System.Partition_Interface
RE_FA_LF, -- System.Partition_Interface
RE_FA_LLF, -- System.Partition_Interface
RE_FA_SF, -- System.Partition_Interface
RE_FA_U8, -- System.Partition_Interface
RE_FA_U16, -- System.Partition_Interface
RE_FA_U32, -- System.Partition_Interface
RE_FA_U64, -- System.Partition_Interface
RE_FA_WC, -- System.Partition_Interface
RE_FA_WWC, -- System.Partition_Interface
RE_FA_String, -- System.Partition_Interface
RE_FA_ObjRef, -- System.Partition_Interface
RE_TA_A, -- System.Partition_Interface
RE_TA_B, -- System.Partition_Interface
RE_TA_C, -- System.Partition_Interface
RE_TA_F, -- System.Partition_Interface
RE_TA_I8, -- System.Partition_Interface
RE_TA_I16, -- System.Partition_Interface
RE_TA_I32, -- System.Partition_Interface
RE_TA_I64, -- System.Partition_Interface
RE_TA_LF, -- System.Partition_Interface
RE_TA_LLF, -- System.Partition_Interface
RE_TA_SF, -- System.Partition_Interface
RE_TA_U8, -- System.Partition_Interface
RE_TA_U16, -- System.Partition_Interface
RE_TA_U32, -- System.Partition_Interface
RE_TA_U64, -- System.Partition_Interface
RE_TA_WC, -- System.Partition_Interface
RE_TA_WWC, -- System.Partition_Interface
RE_TA_String, -- System.Partition_Interface
RE_TA_ObjRef, -- System.Partition_Interface
RE_TA_Std_String, -- System.Partition_Interface
RE_TA_TC, -- System.Partition_Interface
RE_TC_A, -- System.Partition_Interface
RE_TC_B, -- System.Partition_Interface
RE_TC_C, -- System.Partition_Interface
RE_TC_F, -- System.Partition_Interface
RE_TC_I8, -- System.Partition_Interface
RE_TC_I16, -- System.Partition_Interface
RE_TC_I32, -- System.Partition_Interface
RE_TC_I64, -- System.Partition_Interface
RE_TC_LF, -- System.Partition_Interface
RE_TC_LLF, -- System.Partition_Interface
RE_TC_SF, -- System.Partition_Interface
RE_TC_U8, -- System.Partition_Interface
RE_TC_U16, -- System.Partition_Interface
RE_TC_U32, -- System.Partition_Interface
RE_TC_U64, -- System.Partition_Interface
RE_TC_Void, -- System.Partition_Interface
RE_TC_Opaque, -- System.Partition_Interface
RE_TC_WC, -- System.Partition_Interface
RE_TC_WWC, -- System.Partition_Interface
RE_TC_String, -- System.Partition_Interface
RE_Tk_Alias, -- System.Partition_Interface
RE_Tk_Array, -- System.Partition_Interface
RE_Tk_Sequence, -- System.Partition_Interface
RE_Tk_Struct, -- System.Partition_Interface
RE_Tk_Objref, -- System.Partition_Interface
RE_Tk_Union, -- System.Partition_Interface
RO_RD_Delay_For, -- System.Relative_Delays
RE_IS_Is1, -- System.Scalar_Values
RE_IS_Is2, -- System.Scalar_Values
RE_IS_Is4, -- System.Scalar_Values
RE_IS_Is8, -- System.Scalar_Values
RE_IS_Iu1, -- System.Scalar_Values
RE_IS_Iu2, -- System.Scalar_Values
RE_IS_Iu4, -- System.Scalar_Values
RE_IS_Iu8, -- System.Scalar_Values
RE_IS_Iz1, -- System.Scalar_Values
RE_IS_Iz2, -- System.Scalar_Values
RE_IS_Iz4, -- System.Scalar_Values
RE_IS_Iz8, -- System.Scalar_Values
RE_IS_Isf, -- System.Scalar_Values
RE_IS_Ifl, -- System.Scalar_Values
RE_IS_Ilf, -- System.Scalar_Values
RE_IS_Ill, -- System.Scalar_Values
RE_Mark_Id, -- System.Secondary_Stack
RE_SS_Allocate, -- System.Secondary_Stack
RE_SS_Pool, -- System.Secondary_Stack
RE_SS_Mark, -- System.Secondary_Stack
RE_SS_Release, -- System.Secondary_Stack
RE_SS_Stack, -- System.Secondary_Stack
RE_Shared_Var_Lock, -- System.Shared_Storage
RE_Shared_Var_Unlock, -- System.Shared_Storage
RE_Shared_Var_Procs, -- System.Shared_Storage
RE_Abort_Undefer_Direct, -- System.Standard_Library
RE_Exception_Data_Ptr, -- System.Standard_Library
RE_Integer_Address, -- System.Storage_Elements
RE_Storage_Array, -- System.Storage_Elements
RE_Storage_Count, -- System.Storage_Elements
RE_Storage_Offset, -- System.Storage_Elements
RE_To_Address, -- System.Storage_Elements
RE_Allocate_Any, -- System.Storage_Pools
RE_Deallocate_Any, -- System.Storage_Pools
RE_Root_Storage_Pool, -- System.Storage_Pools
RE_Root_Storage_Pool_Ptr, -- System.Storage_Pools
RE_Adjust_Controlled_Dereference, -- System.Storage_Pools.Subpools
RE_Allocate_Any_Controlled, -- System.Storage_Pools.Subpools
RE_Deallocate_Any_Controlled, -- System.Storage_Pools.Subpools
RE_Header_Size_With_Padding, -- System.Storage_Pools.Subpools
RE_Root_Storage_Pool_With_Subpools, -- System.Storage_Pools.Subpools
RE_Root_Subpool, -- System.Storage_Pools.Subpools
RE_Subpool_Handle, -- System.Storage_Pools.Subpools
RE_I_AD, -- System.Stream_Attributes
RE_I_AS, -- System.Stream_Attributes
RE_I_B, -- System.Stream_Attributes
RE_I_C, -- System.Stream_Attributes
RE_I_F, -- System.Stream_Attributes
RE_I_I, -- System.Stream_Attributes
RE_I_I24, -- System.Stream_Attributes
RE_I_LF, -- System.Stream_Attributes
RE_I_LI, -- System.Stream_Attributes
RE_I_LLF, -- System.Stream_Attributes
RE_I_LLI, -- System.Stream_Attributes
RE_I_LLU, -- System.Stream_Attributes
RE_I_LU, -- System.Stream_Attributes
RE_I_SF, -- System.Stream_Attributes
RE_I_SI, -- System.Stream_Attributes
RE_I_SSI, -- System.Stream_Attributes
RE_I_SSU, -- System.Stream_Attributes
RE_I_SU, -- System.Stream_Attributes
RE_I_U, -- System.Stream_Attributes
RE_I_U24, -- System.Stream_Attributes
RE_I_WC, -- System.Stream_Attributes
RE_I_WWC, -- System.Stream_Attributes
RE_W_AD, -- System.Stream_Attributes
RE_W_AS, -- System.Stream_Attributes
RE_W_B, -- System.Stream_Attributes
RE_W_C, -- System.Stream_Attributes
RE_W_F, -- System.Stream_Attributes
RE_W_I, -- System.Stream_Attributes
RE_W_I24, -- System.Stream_Attributes
RE_W_LF, -- System.Stream_Attributes
RE_W_LI, -- System.Stream_Attributes
RE_W_LLF, -- System.Stream_Attributes
RE_W_LLI, -- System.Stream_Attributes
RE_W_LLU, -- System.Stream_Attributes
RE_W_LU, -- System.Stream_Attributes
RE_W_SF, -- System.Stream_Attributes
RE_W_SI, -- System.Stream_Attributes
RE_W_SSI, -- System.Stream_Attributes
RE_W_SSU, -- System.Stream_Attributes
RE_W_SU, -- System.Stream_Attributes
RE_W_U, -- System.Stream_Attributes
RE_W_U24, -- System.Stream_Attributes
RE_W_WC, -- System.Stream_Attributes
RE_W_WWC, -- System.Stream_Attributes
RE_Storage_Array_Input, -- System.Strings.Stream_Ops
RE_Storage_Array_Input_Blk_IO, -- System.Strings.Stream_Ops
RE_Storage_Array_Output, -- System.Strings.Stream_Ops
RE_Storage_Array_Output_Blk_IO, -- System.Strings.Stream_Ops
RE_Storage_Array_Read, -- System.Strings.Stream_Ops
RE_Storage_Array_Read_Blk_IO, -- System.Strings.Stream_Ops
RE_Storage_Array_Write, -- System.Strings.Stream_Ops
RE_Storage_Array_Write_Blk_IO, -- System.Strings.Stream_Ops
RE_Stream_Element_Array_Input, -- System.Strings.Stream_Ops
RE_Stream_Element_Array_Input_Blk_IO, -- System.Strings.Stream_Ops
RE_Stream_Element_Array_Output, -- System.Strings.Stream_Ops
RE_Stream_Element_Array_Output_Blk_IO, -- System.Strings.Stream_Ops
RE_Stream_Element_Array_Read, -- System.Strings.Stream_Ops
RE_Stream_Element_Array_Read_Blk_IO, -- System.Strings.Stream_Ops
RE_Stream_Element_Array_Write, -- System.Strings.Stream_Ops
RE_Stream_Element_Array_Write_Blk_IO, -- System.Strings.Stream_Ops
RE_String_Input, -- System.Strings.Stream_Ops
RE_String_Input_Blk_IO, -- System.Strings.Stream_Ops
RE_String_Input_Tag, -- System.Strings.Stream_Ops
RE_String_Output, -- System.Strings.Stream_Ops
RE_String_Output_Blk_IO, -- System.Strings.Stream_Ops
RE_String_Read, -- System.Strings.Stream_Ops
RE_String_Read_Blk_IO, -- System.Strings.Stream_Ops
RE_String_Write, -- System.Strings.Stream_Ops
RE_String_Write_Blk_IO, -- System.Strings.Stream_Ops
RE_Wide_String_Input, -- System.Strings.Stream_Ops
RE_Wide_String_Input_Blk_IO, -- System.Strings.Stream_Ops
RE_Wide_String_Output, -- System.Strings.Stream_Ops
RE_Wide_String_Output_Blk_IO, -- System.Strings.Stream_Ops
RE_Wide_String_Read, -- System.Strings.Stream_Ops
RE_Wide_String_Read_Blk_IO, -- System.Strings.Stream_Ops
RE_Wide_String_Write, -- System.Strings.Stream_Ops
RE_Wide_String_Write_Blk_IO, -- System.Strings.Stream_Ops
RE_Wide_Wide_String_Input, -- System.Strings.Stream_Ops
RE_Wide_Wide_String_Input_Blk_IO, -- System.Strings.Stream_Ops
RE_Wide_Wide_String_Output, -- System.Strings.Stream_Ops
RE_Wide_Wide_String_Output_Blk_IO, -- System.Strings.Stream_Ops
RE_Wide_Wide_String_Read, -- System.Strings.Stream_Ops
RE_Wide_Wide_String_Read_Blk_IO, -- System.Strings.Stream_Ops
RE_Wide_Wide_String_Write, -- System.Strings.Stream_Ops
RE_Wide_Wide_String_Write_Blk_IO, -- System.Strings.Stream_Ops
RE_Task_Info_Type, -- System.Task_Info
RE_Unspecified_Task_Info, -- System.Task_Info
RE_Task_Procedure_Access, -- System.Tasking
RO_ST_Number_Of_Entries, -- System.Tasking
RO_ST_Task_Id, -- System.Tasking
RO_ST_Null_Task, -- System.Tasking
RE_Call_Modes, -- System.Tasking
RE_Simple_Call, -- System.Tasking
RE_Conditional_Call, -- System.Tasking
RE_Asynchronous_Call, -- System.Tasking
RE_Foreign_Task_Level, -- System.Tasking
RE_Environment_Task_Level, -- System.Tasking
RE_Independent_Task_Level, -- System.Tasking
RE_Library_Task_Level, -- System.Tasking
RE_Ada_Task_Control_Block, -- System.Tasking
RE_Task_List, -- System.Tasking
RE_Accept_List, -- System.Tasking
RE_No_Rendezvous, -- System.Tasking
RE_Null_Task_Entry, -- System.Tasking
RE_Select_Index, -- System.Tasking
RE_Else_Mode, -- System.Tasking
RE_Simple_Mode, -- System.Tasking
RE_Terminate_Mode, -- System.Tasking
RE_Delay_Mode, -- System.Tasking
RE_Entry_Index, -- System.Tasking
RE_Task_Entry_Index, -- System.Tasking
RE_Self, -- System.Tasking
RE_Master_Id, -- System.Tasking
RE_Unspecified_Priority, -- System.Tasking
RE_Activation_Chain, -- System.Tasking
RE_Activation_Chain_Access, -- System.Tasking
RE_Storage_Size, -- System.Tasking
RE_Unspecified_CPU, -- System.Tasking
RE_Dispatching_Domain_Access, -- System.Tasking
RE_Abort_Defer, -- System.Soft_Links
RE_Abort_Undefer, -- System.Soft_Links
RE_Complete_Master, -- System.Soft_Links
RE_Current_Master, -- System.Soft_Links
RE_Dummy_Communication_Block, -- System.Soft_Links
RE_Enter_Master, -- System.Soft_Links
RE_Get_Current_Excep, -- System.Soft_Links
RE_Get_GNAT_Exception, -- System.Soft_Links
RE_Save_Library_Occurrence, -- System.Soft_Links
RE_Bits_1, -- System.Unsigned_Types
RE_Bits_2, -- System.Unsigned_Types
RE_Bits_4, -- System.Unsigned_Types
RE_Float_Unsigned, -- System.Unsigned_Types
RE_Long_Unsigned, -- System.Unsigned_Types
RE_Long_Long_Unsigned, -- System.Unsigned_Types
RE_Packed_Byte, -- System.Unsigned_Types
RE_Packed_Bytes1, -- System.Unsigned_Types
RE_Packed_Bytes2, -- System.Unsigned_Types
RE_Packed_Bytes4, -- System.Unsigned_Types
RE_Rev_Packed_Bytes1, -- System.Unsigned_Types
RE_Rev_Packed_Bytes2, -- System.Unsigned_Types
RE_Rev_Packed_Bytes4, -- System.Unsigned_Types
RE_Short_Unsigned, -- System.Unsigned_Types
RE_Short_Short_Unsigned, -- System.Unsigned_Types
RE_Unsigned, -- System.Unsigned_Types
RE_Value_Boolean, -- System.Val_Bool
RE_Value_Character, -- System.Val_Char
RE_Value_Decimal, -- System.Val_Dec
RE_Value_Enumeration_8, -- System.Val_Enum
RE_Value_Enumeration_16, -- System.Val_Enum
RE_Value_Enumeration_32, -- System.Val_Enum
RE_Value_Integer, -- System.Val_Int
RE_Value_Long_Long_Decimal, -- System.Val_LLD
RE_Value_Long_Long_Integer, -- System.Val_LLI
RE_Value_Long_Long_Unsigned, -- System.Val_LLU
RE_Value_Real, -- System.Val_Real
RE_Value_Unsigned, -- System.Val_Uns
RE_Value_Wide_Character, -- System.Val_WChar
RE_Value_Wide_Wide_Character, -- System.Val_WChar
RE_Version_String, -- System.Version_Control
RE_Get_Version_String, -- System.Version_Control
RE_String_To_Wide_String, -- System.WCh_StW
RE_String_To_Wide_Wide_String, -- System.WCh_StW
RE_Wide_String_To_String, -- System.WCh_WtS
RE_Wide_Wide_String_To_String, -- System.WCh_WtS
RE_Wide_Width_Character, -- System.WWd_Char
RE_Wide_Wide_Width_Character, -- System.WWd_Char
RE_Wide_Wide_Width_Enumeration_8, -- System.WWd_Enum
RE_Wide_Wide_Width_Enumeration_16, -- System.WWd_Enum
RE_Wide_Wide_Width_Enumeration_32, -- System.WWd_Enum
RE_Wide_Width_Enumeration_8, -- System.WWd_Enum
RE_Wide_Width_Enumeration_16, -- System.WWd_Enum
RE_Wide_Width_Enumeration_32, -- System.WWd_Enum
RE_Wide_Wide_Width_Wide_Character, -- System.WWd_Wchar
RE_Wide_Wide_Width_Wide_Wide_Char, -- System.WWd_Wchar
RE_Wide_Width_Wide_Character, -- System.WWd_Wchar
RE_Wide_Width_Wide_Wide_Character, -- System.WWd_Wchar
RE_Width_Boolean, -- System.Wid_Bool
RE_Width_Character, -- System.Wid_Char
RE_Width_Enumeration_8, -- System.Wid_Enum
RE_Width_Enumeration_16, -- System.Wid_Enum
RE_Width_Enumeration_32, -- System.Wid_Enum
RE_Width_Long_Long_Integer, -- System.Wid_LLI
RE_Width_Long_Long_Unsigned, -- System.Wid_LLU
RE_Width_Wide_Character, -- System.Wid_WChar
RE_Width_Wide_Wide_Character, -- System.Wid_WChar
RE_Dispatching_Domain, -- Multiprocessors.Dispatching_Domains
RE_Protected_Entry_Body_Array, -- Tasking.Protected_Objects.Entries
RE_Protected_Entry_Queue_Max_Array, -- Tasking.Protected_Objects.Entries
RE_Protection_Entries, -- Tasking.Protected_Objects.Entries
RE_Protection_Entries_Access, -- Tasking.Protected_Objects.Entries
RE_Initialize_Protection_Entries, -- Tasking.Protected_Objects.Entries
RE_Lock_Entries, -- Tasking.Protected_Objects.Entries
RE_Unlock_Entries, -- Tasking.Protected_Objects.Entries
RO_PE_Get_Ceiling, -- Tasking.Protected_Objects.Entries
RO_PE_Number_Of_Entries, -- Tasking.Protected_Objects.Entries
RO_PE_Set_Ceiling, -- Tasking.Protected_Objects.Entries
RE_Communication_Block, -- Protected_Objects.Operations
RE_Protected_Entry_Call, -- Protected_Objects.Operations
RE_Service_Entries, -- Protected_Objects.Operations
RE_Cancel_Protected_Entry_Call, -- Protected_Objects.Operations
RE_Enqueued, -- Protected_Objects.Operations
RE_Cancelled, -- Protected_Objects.Operations
RE_Complete_Entry_Body, -- Protected_Objects.Operations
RE_Exceptional_Complete_Entry_Body, -- Protected_Objects.Operations
RE_Requeue_Protected_Entry, -- Protected_Objects.Operations
RE_Requeue_Task_To_Protected_Entry, -- Protected_Objects.Operations
RE_Protected_Count, -- Protected_Objects.Operations
RE_Protected_Entry_Caller, -- Protected_Objects.Operations
RE_Timed_Protected_Entry_Call, -- Protected_Objects.Operations
RE_Protection_Entry, -- Protected_Objects.Single_Entry
RE_Initialize_Protection_Entry, -- Protected_Objects.Single_Entry
RE_Lock_Entry, -- Protected_Objects.Single_Entry
RE_Unlock_Entry, -- Protected_Objects.Single_Entry
RE_Protected_Single_Entry_Call, -- Protected_Objects.Single_Entry
RE_Service_Entry, -- Protected_Objects.Single_Entry
RE_Exceptional_Complete_Single_Entry_Body,
RE_Protected_Count_Entry, -- Protected_Objects.Single_Entry
RE_Protected_Single_Entry_Caller, -- Protected_Objects.Single_Entry
RE_Protected_Entry_Index, -- System.Tasking.Protected_Objects
RE_Entry_Body, -- System.Tasking.Protected_Objects
RE_Protection, -- System.Tasking.Protected_Objects
RE_Initialize_Protection, -- System.Tasking.Protected_Objects
RE_Finalize_Protection, -- System.Tasking.Protected_Objects
RE_Lock, -- System.Tasking.Protected_Objects
RE_Lock_Read_Only, -- System.Tasking.Protected_Objects
RE_Get_Ceiling, -- System.Tasking.Protected_Objects
RE_Set_Ceiling, -- System.Tasking.Protected_Objects
RE_Unlock, -- System.Tasking.Protected_Objects
RE_Delay_Block, -- System.Tasking.Async_Delays
RE_Timed_Out, -- System.Tasking.Async_Delays
RE_Cancel_Async_Delay, -- System.Tasking.Async_Delays
RE_Enqueue_Duration, -- System.Tasking.Async_Delays
RE_Enqueue_Calendar, -- System.Tasking.Async_Delays
RE_Enqueue_RT, -- System.Tasking.Async_Delays
RE_Accept_Call, -- System.Tasking.Rendezvous
RE_Accept_Trivial, -- System.Tasking.Rendezvous
RE_Callable, -- System.Tasking.Rendezvous
RE_Call_Simple, -- System.Tasking.Rendezvous
RE_Requeue_Task_Entry, -- System.Tasking.Rendezvous
RE_Requeue_Protected_To_Task_Entry, -- System.Tasking.Rendezvous
RE_Cancel_Task_Entry_Call, -- System.Tasking.Rendezvous
RE_Complete_Rendezvous, -- System.Tasking.Rendezvous
RE_Task_Count, -- System.Tasking.Rendezvous
RE_Exceptional_Complete_Rendezvous, -- System.Tasking.Rendezvous
RE_Selective_Wait, -- System.Tasking.Rendezvous
RE_Task_Entry_Call, -- System.Tasking.Rendezvous
RE_Task_Entry_Caller, -- System.Tasking.Rendezvous
RE_Timed_Task_Entry_Call, -- System.Tasking.Rendezvous
RE_Timed_Selective_Wait, -- System.Tasking.Rendezvous
RE_Activate_Restricted_Tasks, -- System.Tasking.Restricted.Stages
RE_Complete_Restricted_Activation, -- System.Tasking.Restricted.Stages
RE_Create_Restricted_Task, -- System.Tasking.Restricted.Stages
RE_Create_Restricted_Task_Sequential, -- System.Tasking.Restricted.Stages
RE_Complete_Restricted_Task, -- System.Tasking.Restricted.Stages
RE_Restricted_Terminated, -- System.Tasking.Restricted.Stages
RE_Abort_Tasks, -- System.Tasking.Stages
RE_Activate_Tasks, -- System.Tasking.Stages
RE_Complete_Activation, -- System.Tasking.Stages
RE_Create_Task, -- System.Tasking.Stages
RE_Complete_Task, -- System.Tasking.Stages
RE_Free_Task, -- System.Tasking.Stages
RE_Expunge_Unactivated_Tasks, -- System.Tasking.Stages
RE_Move_Activation_Chain, -- System.Tasking_Stages
RE_Terminated); -- System.Tasking.Stages
-- The following declarations build a table that is indexed by the RTE
-- function to determine the unit containing the given entity. This table
-- is sorted in order of package names.
RE_Unit_Table : constant array (RE_Id) of RTU_Id := (
RE_Null => RTU_Null,
RO_CA_Clock_Time => Ada_Calendar,
RO_CA_Time => Ada_Calendar,
RO_CA_Delay_For => Ada_Calendar_Delays,
RO_CA_Delay_Until => Ada_Calendar_Delays,
RO_CA_To_Duration => Ada_Calendar_Delays,
RE_Yield => Ada_Dispatching,
RE_Set_Deadline => Ada_Dispatching_EDF,
RE_Code_Loc => Ada_Exceptions,
RE_Exception_Id => Ada_Exceptions,
RE_Exception_Identity => Ada_Exceptions,
RE_Exception_Information => Ada_Exceptions,
RE_Exception_Message => Ada_Exceptions,
RE_Exception_Name_Simple => Ada_Exceptions,
RE_Exception_Occurrence => Ada_Exceptions,
RE_Exception_Occurrence_Access => Ada_Exceptions,
RE_Null_Id => Ada_Exceptions,
RE_Null_Occurrence => Ada_Exceptions,
RE_Poll => Ada_Exceptions,
RE_Raise_Exception => Ada_Exceptions,
RE_Raise_Exception_Always => Ada_Exceptions,
RE_Raise_From_Controlled_Operation => Ada_Exceptions,
RE_Reraise_Occurrence => Ada_Exceptions,
RE_Reraise_Occurrence_Always => Ada_Exceptions,
RE_Reraise_Occurrence_No_Defer => Ada_Exceptions,
RE_Save_Occurrence => Ada_Exceptions,
RE_Triggered_By_Abort => Ada_Exceptions,
RE_Interrupt_ID => Ada_Interrupts,
RE_Is_Reserved => Ada_Interrupts,
RE_Is_Attached => Ada_Interrupts,
RE_Current_Handler => Ada_Interrupts,
RE_Attach_Handler => Ada_Interrupts,
RE_Exchange_Handler => Ada_Interrupts,
RE_Detach_Handler => Ada_Interrupts,
RE_Reference => Ada_Interrupts,
RE_Names => Ada_Interrupts_Names,
RE_Clock => Ada_Real_Time,
RE_Clock_Time => Ada_Real_Time,
RE_Time_Span => Ada_Real_Time,
RE_Time_Span_Zero => Ada_Real_Time,
RO_RT_Time => Ada_Real_Time,
RO_RT_Delay_Until => Ada_Real_Time_Delays,
RO_RT_To_Duration => Ada_Real_Time_Delays,
RE_Set_Handler => Ada_Real_Time_Timing_Events,
RE_Timing_Event => Ada_Real_Time_Timing_Events,
RE_Root_Stream_Type => Ada_Streams,
RE_Stream_Element => Ada_Streams,
RE_Stream_Element_Array => Ada_Streams,
RE_Stream_Element_Offset => Ada_Streams,
RE_Stream_Access => Ada_Streams_Stream_IO,
RO_SU_Super_String => Ada_Strings_Superbounded,
RO_WI_Super_String => Ada_Strings_Wide_Superbounded,
RO_WW_Super_String => Ada_Strings_Wide_Wide_Superbounded,
RE_Unbounded_String => Ada_Strings_Unbounded,
RE_Sink => Ada_Strings_Text_Output,
RE_Put_UTF_8 => Ada_Strings_Text_Output_Utils,
RE_Put_Wide_Wide_String => Ada_Strings_Text_Output_Utils,
RE_Buffer => Ada_Strings_Text_Output_Buffers,
RE_New_Buffer => Ada_Strings_Text_Output_Buffers,
RE_Destroy => Ada_Strings_Text_Output_Buffers,
RE_Get => Ada_Strings_Text_Output_Buffers,
RE_Wait_For_Release => Ada_Synchronous_Barriers,
RE_Suspend_Until_True => Ada_Synchronous_Task_Control,
RE_Access_Level => Ada_Tags,
RE_Alignment => Ada_Tags,
RE_Address_Array => Ada_Tags,
RE_Addr_Ptr => Ada_Tags,
RE_Base_Address => Ada_Tags,
RE_Check_Interface_Conversion => Ada_Tags,
RE_Check_TSD => Ada_Tags,
RE_Cstring_Ptr => Ada_Tags,
RE_CW_Membership => Ada_Tags,
RE_Descendant_Tag => Ada_Tags,
RE_Dispatch_Table => Ada_Tags,
RE_Dispatch_Table_Wrapper => Ada_Tags,
RE_Displace => Ada_Tags,
RE_DT => Ada_Tags,
RE_DT_Offset_To_Top_Offset => Ada_Tags,
RE_DT_Predef_Prims_Offset => Ada_Tags,
RE_DT_Typeinfo_Ptr_Size => Ada_Tags,
RE_External_Tag => Ada_Tags,
RO_TA_External_Tag => Ada_Tags,
RE_Get_Access_Level => Ada_Tags,
RE_Get_Alignment => Ada_Tags,
RE_Get_Entry_Index => Ada_Tags,
RE_Get_Offset_Index => Ada_Tags,
RE_Get_Prim_Op_Kind => Ada_Tags,
RE_Get_Tagged_Kind => Ada_Tags,
RE_HT_Link => Ada_Tags,
RE_Idepth => Ada_Tags,
RE_Interfaces_Array => Ada_Tags,
RE_Interfaces_Table => Ada_Tags,
RE_Interface_Data => Ada_Tags,
RE_Interface_Data_Element => Ada_Tags,
RE_Interface_Tag => Ada_Tags,
RE_Is_Abstract => Ada_Tags,
RE_IW_Membership => Ada_Tags,
RE_Max_Predef_Prims => Ada_Tags,
RE_Needs_Finalization => Ada_Tags,
RE_No_Dispatch_Table_Wrapper => Ada_Tags,
RE_No_Tag => Ada_Tags,
RE_NDT_Prims_Ptr => Ada_Tags,
RE_NDT_TSD => Ada_Tags,
RE_Num_Prims => Ada_Tags,
RE_Object_Specific_Data => Ada_Tags,
RE_Offset_To_Top => Ada_Tags,
RE_Offset_To_Top_Ptr => Ada_Tags,
RE_Offset_To_Top_Function_Ptr => Ada_Tags,
RE_OSD_Table => Ada_Tags,
RE_OSD_Num_Prims => Ada_Tags,
RE_POK_Function => Ada_Tags,
RE_POK_Procedure => Ada_Tags,
RE_POK_Protected_Entry => Ada_Tags,
RE_POK_Protected_Function => Ada_Tags,
RE_POK_Protected_Procedure => Ada_Tags,
RE_POK_Task_Entry => Ada_Tags,
RE_POK_Task_Function => Ada_Tags,
RE_POK_Task_Procedure => Ada_Tags,
RE_Predef_Prims => Ada_Tags,
RE_Predef_Prims_Table_Ptr => Ada_Tags,
RE_Prim_Op_Kind => Ada_Tags,
RE_Prim_Ptr => Ada_Tags,
RE_Prims_Ptr => Ada_Tags,
RE_Primary_DT => Ada_Tags,
RE_Signature => Ada_Tags,
RE_SSD => Ada_Tags,
RE_TSD => Ada_Tags,
RE_Type_Specific_Data => Ada_Tags,
RE_Register_Interface_Offset => Ada_Tags,
RE_Register_Tag => Ada_Tags,
RE_Register_TSD => Ada_Tags,
RE_Transportable => Ada_Tags,
RE_Secondary_DT => Ada_Tags,
RE_Secondary_Tag => Ada_Tags,
RE_Select_Specific_Data => Ada_Tags,
RE_Set_Entry_Index => Ada_Tags,
RE_Set_Dynamic_Offset_To_Top => Ada_Tags,
RE_Set_Prim_Op_Kind => Ada_Tags,
RE_Size_Func => Ada_Tags,
RE_Size_Ptr => Ada_Tags,
RE_Tag => Ada_Tags,
RE_Tag_Error => Ada_Tags,
RE_Tag_Kind => Ada_Tags,
RE_Tag_Ptr => Ada_Tags,
RE_Tag_Table => Ada_Tags,
RE_Tags_Table => Ada_Tags,
RE_Tagged_Kind => Ada_Tags,
RE_Type_Specific_Data_Ptr => Ada_Tags,
RE_TK_Abstract_Limited_Tagged => Ada_Tags,
RE_TK_Abstract_Tagged => Ada_Tags,
RE_TK_Limited_Tagged => Ada_Tags,
RE_TK_Protected => Ada_Tags,
RE_TK_Tagged => Ada_Tags,
RE_TK_Task => Ada_Tags,
RE_Unregister_Tag => Ada_Tags,
RE_Set_Specific_Handler => Ada_Task_Termination,
RE_Specific_Handler => Ada_Task_Termination,
RE_Abort_Task => Ada_Task_Identification,
RE_Current_Task => Ada_Task_Identification,
RO_AT_Task_Id => Ada_Task_Identification,
RE_Tasking_State => Ada_Task_Identification,
RE_Decimal_IO => Ada_Text_IO,
RE_Fixed_IO => Ada_Text_IO,
RO_WT_Decimal_IO => Ada_Wide_Text_IO,
RO_WT_Fixed_IO => Ada_Wide_Text_IO,
RO_WW_Decimal_IO => Ada_Wide_Wide_Text_IO,
RO_WW_Fixed_IO => Ada_Wide_Wide_Text_IO,
RE_Stream_T => CUDA_Driver_Types,
RE_Fatbin_Wrapper => CUDA_Internal,
RE_Push_Call_Configuration => CUDA_Internal,
RE_Pop_Call_Configuration => CUDA_Internal,
RE_Register_Fat_Binary => CUDA_Internal,
RE_Register_Fat_Binary_End => CUDA_Internal,
RE_Register_Function => CUDA_Internal,
RE_Launch_Kernel => CUDA_Runtime_Api,
RE_Dim3 => CUDA_Vector_Types,
RE_Integer_8 => Interfaces,
RE_Integer_16 => Interfaces,
RE_Integer_32 => Interfaces,
RE_Integer_64 => Interfaces,
RE_Unsigned_8 => Interfaces,
RE_Unsigned_16 => Interfaces,
RE_Unsigned_32 => Interfaces,
RE_Unsigned_64 => Interfaces,
RO_IC_Unsigned => Interfaces_C,
RO_IC_Unsigned_Long_Long => Interfaces_C,
RE_Chars_Ptr => Interfaces_C_Strings,
RE_New_Char_Array => Interfaces_C_Strings,
RE_Address => System,
RE_Any_Priority => System,
RE_Bit_Order => System,
RE_Default_Priority => System,
RE_High_Order_First => System,
RE_Interrupt_Priority => System,
RE_Lib_Stop => System,
RE_Low_Order_First => System,
RE_Max_Base_Digits => System,
RE_Max_Priority => System,
RE_Null_Address => System,
RE_Priority => System,
RE_Address_Image => System_Address_Image,
RE_Add_With_Ovflo_Check => System_Arith_64,
RE_Double_Divide => System_Arith_64,
RE_Multiply_With_Ovflo_Check => System_Arith_64,
RE_Scaled_Divide => System_Arith_64,
RE_Subtract_With_Ovflo_Check => System_Arith_64,
RE_Create_AST_Handler => System_AST_Handling,
RE_Assert_Failure => System_Assertions,
RE_Raise_Assert_Failure => System_Assertions,
RE_Lock_Free_Read_8 => System_Atomic_Primitives,
RE_Lock_Free_Read_16 => System_Atomic_Primitives,
RE_Lock_Free_Read_32 => System_Atomic_Primitives,
RE_Lock_Free_Read_64 => System_Atomic_Primitives,
RE_Lock_Free_Try_Write_8 => System_Atomic_Primitives,
RE_Lock_Free_Try_Write_16 => System_Atomic_Primitives,
RE_Lock_Free_Try_Write_32 => System_Atomic_Primitives,
RE_Lock_Free_Try_Write_64 => System_Atomic_Primitives,
RE_Uint8 => System_Atomic_Primitives,
RE_Uint16 => System_Atomic_Primitives,
RE_Uint32 => System_Atomic_Primitives,
RE_Uint64 => System_Atomic_Primitives,
RE_AST_Handler => System_Aux_DEC,
RE_Import_Address => System_Aux_DEC,
RE_Import_Value => System_Aux_DEC,
RE_No_AST_Handler => System_Aux_DEC,
RE_Type_Class => System_Aux_DEC,
RE_Type_Class_Enumeration => System_Aux_DEC,
RE_Type_Class_Integer => System_Aux_DEC,
RE_Type_Class_Fixed_Point => System_Aux_DEC,
RE_Type_Class_Floating_Point => System_Aux_DEC,
RE_Type_Class_Array => System_Aux_DEC,
RE_Type_Class_Record => System_Aux_DEC,
RE_Type_Class_Access => System_Aux_DEC,
RE_Type_Class_Task => System_Aux_DEC,
RE_Type_Class_Address => System_Aux_DEC,
RE_Big_Abs => System_Bignums,
RE_Big_Add => System_Bignums,
RE_Big_Div => System_Bignums,
RE_Big_Exp => System_Bignums,
RE_Big_Mod => System_Bignums,
RE_Big_Mul => System_Bignums,
RE_Big_Neg => System_Bignums,
RE_Big_Rem => System_Bignums,
RE_Big_Sub => System_Bignums,
RE_Big_EQ => System_Bignums,
RE_Big_GE => System_Bignums,
RE_Big_GT => System_Bignums,
RE_Big_LE => System_Bignums,
RE_Big_LT => System_Bignums,
RE_Big_NE => System_Bignums,
RE_Bignum => System_Bignums,
RE_Bignum_In_LLI_Range => System_Bignums,
RE_To_Bignum => System_Bignums,
RE_From_Bignum => System_Bignums,
RE_Copy_Bitfield => System_Bitfields,
RE_Bit_And => System_Bit_Ops,
RE_Bit_Eq => System_Bit_Ops,
RE_Bit_Not => System_Bit_Ops,
RE_Bit_Or => System_Bit_Ops,
RE_Bit_Xor => System_Bit_Ops,
RE_Checked_Pool => System_Checked_Pools,
RE_Vector_Not => System_Boolean_Array_Operations,
RE_Vector_And => System_Boolean_Array_Operations,
RE_Vector_Or => System_Boolean_Array_Operations,
RE_Vector_Nand => System_Boolean_Array_Operations,
RE_Vector_Nor => System_Boolean_Array_Operations,
RE_Vector_Nxor => System_Boolean_Array_Operations,
RE_Vector_Xor => System_Boolean_Array_Operations,
RE_Bswap_16 => System_Byte_Swapping,
RE_Bswap_32 => System_Byte_Swapping,
RE_Bswap_64 => System_Byte_Swapping,
RE_Compare_Array_S8 => System_Compare_Array_Signed_8,
RE_Compare_Array_S8_Unaligned => System_Compare_Array_Signed_8,
RE_Compare_Array_S16 => System_Compare_Array_Signed_16,
RE_Compare_Array_S32 => System_Compare_Array_Signed_32,
RE_Compare_Array_S64 => System_Compare_Array_Signed_64,
RE_Compare_Array_U8 => System_Compare_Array_Unsigned_8,
RE_Compare_Array_U8_Unaligned => System_Compare_Array_Unsigned_8,
RE_Compare_Array_U16 => System_Compare_Array_Unsigned_16,
RE_Compare_Array_U32 => System_Compare_Array_Unsigned_32,
RE_Compare_Array_U64 => System_Compare_Array_Unsigned_64,
RE_Str_Concat_2 => System_Concat_2,
RE_Str_Concat_3 => System_Concat_3,
RE_Str_Concat_4 => System_Concat_4,
RE_Str_Concat_5 => System_Concat_5,
RE_Str_Concat_6 => System_Concat_6,
RE_Str_Concat_7 => System_Concat_7,
RE_Str_Concat_8 => System_Concat_8,
RE_Str_Concat_9 => System_Concat_9,
RE_Str_Concat_Bounds_2 => System_Concat_2,
RE_Str_Concat_Bounds_3 => System_Concat_3,
RE_Str_Concat_Bounds_4 => System_Concat_4,
RE_Str_Concat_Bounds_5 => System_Concat_5,
RE_Str_Concat_Bounds_6 => System_Concat_6,
RE_Str_Concat_Bounds_7 => System_Concat_7,
RE_Str_Concat_Bounds_8 => System_Concat_8,
RE_Str_Concat_Bounds_9 => System_Concat_9,
RE_Get_Active_Partition_Id => System_DSA_Services,
RE_Get_Local_Partition_Id => System_DSA_Services,
RE_Get_Passive_Partition_Id => System_DSA_Services,
RE_Any_Container_Ptr => System_DSA_Types,
RE_Check_Standard_Allocator => System_Elaboration_Allocators,
RE_Register_Exception => System_Exception_Table,
RE_Local_Raise => System_Exceptions_Debug,
RE_Exn_Integer => System_Exn_Int,
RE_Exn_Float => System_Exn_LLF,
RE_Exn_Long_Float => System_Exn_LLF,
RE_Exn_Long_Long_Float => System_Exn_LLF,
RE_Exn_Long_Long_Integer => System_Exn_LLI,
RE_Exp_Integer => System_Exp_Int,
RE_Exp_Long_Long_Integer => System_Exp_LLI,
RE_Exp_Long_Long_Unsigned => System_Exp_LLU,
RE_Exp_Modular => System_Exp_Mod,
RE_Exp_Unsigned => System_Exp_Uns,
RE_Attr_Float => System_Fat_Flt,
RE_Attr_IEEE_Long => System_Fat_IEEE_Long_Float,
RE_Fat_IEEE_Long => System_Fat_IEEE_Long_Float,
RE_Attr_IEEE_Short => System_Fat_IEEE_Short_Float,
RE_Fat_IEEE_Short => System_Fat_IEEE_Short_Float,
RE_Attr_Long_Float => System_Fat_LFlt,
RE_Attr_Long_Long_Float => System_Fat_LLF,
RE_Attr_Short_Float => System_Fat_SFlt,
RE_Attr_VAX_D_Float => System_Fat_VAX_D_Float,
RE_Fat_VAX_D => System_Fat_VAX_D_Float,
RE_Attr_VAX_F_Float => System_Fat_VAX_F_Float,
RE_Fat_VAX_F => System_Fat_VAX_F_Float,
RE_Attr_VAX_G_Float => System_Fat_VAX_G_Float,
RE_Fat_VAX_G => System_Fat_VAX_G_Float,
RE_Add_Offset_To_Address => System_Finalization_Masters,
RE_Attach => System_Finalization_Masters,
RE_Base_Pool => System_Finalization_Masters,
RE_Detach => System_Finalization_Masters,
RE_Finalization_Master => System_Finalization_Masters,
RE_Finalization_Master_Ptr => System_Finalization_Masters,
RE_Set_Base_Pool => System_Finalization_Masters,
RE_Set_Finalize_Address => System_Finalization_Masters,
RE_Set_Is_Heterogeneous => System_Finalization_Masters,
RE_Root_Controlled => System_Finalization_Root,
RE_Root_Controlled_Ptr => System_Finalization_Root,
RE_Fore => System_Fore,
RE_Image_Boolean => System_Img_Bool,
RE_Image_Character => System_Img_Char,
RE_Image_Character_05 => System_Img_Char,
RE_Image_Decimal => System_Img_Dec,
RE_Image_Enumeration_8 => System_Img_Enum_New,
RE_Image_Enumeration_16 => System_Img_Enum_New,
RE_Image_Enumeration_32 => System_Img_Enum_New,
RE_Image_Integer => System_Img_Int,
RE_Image_Long_Long_Decimal => System_Img_LLD,
RE_Image_Long_Long_Integer => System_Img_LLI,
RE_Image_Long_Long_Unsigned => System_Img_LLU,
RE_Image_Ordinary_Fixed_Point => System_Img_Real,
RE_Image_Floating_Point => System_Img_Real,
RE_Image_Unsigned => System_Img_Uns,
RE_Image_Wide_Character => System_Img_WChar,
RE_Image_Wide_Wide_Character => System_Img_WChar,
RE_Bind_Interrupt_To_Entry => System_Interrupts,
RE_Default_Interrupt_Priority => System_Interrupts,
RE_Dynamic_Interrupt_Protection => System_Interrupts,
RE_Install_Handlers => System_Interrupts,
RE_Install_Restricted_Handlers => System_Interrupts,
RE_Register_Interrupt_Handler => System_Interrupts,
RE_Static_Interrupt_Protection => System_Interrupts,
RE_System_Interrupt_Id => System_Interrupts,
RE_Expon_LLF => System_Long_Long_Float_Expon,
RE_Asm_Insn => System_Machine_Code,
RE_Asm_Input_Operand => System_Machine_Code,
RE_Asm_Output_Operand => System_Machine_Code,
RE_Mantissa_Value => System_Mantissa,
RE_Free => System_Memory,
RE_CPU_Range => System_Multiprocessors,
RE_Bits_03 => System_Pack_03,
RE_Get_03 => System_Pack_03,
RE_Set_03 => System_Pack_03,
RE_Bits_05 => System_Pack_05,
RE_Get_05 => System_Pack_05,
RE_Set_05 => System_Pack_05,
RE_Bits_06 => System_Pack_06,
RE_Get_06 => System_Pack_06,
RE_GetU_06 => System_Pack_06,
RE_Set_06 => System_Pack_06,
RE_SetU_06 => System_Pack_06,
RE_Bits_07 => System_Pack_07,
RE_Get_07 => System_Pack_07,
RE_Set_07 => System_Pack_07,
RE_Bits_09 => System_Pack_09,
RE_Get_09 => System_Pack_09,
RE_Set_09 => System_Pack_09,
RE_Bits_10 => System_Pack_10,
RE_Get_10 => System_Pack_10,
RE_GetU_10 => System_Pack_10,
RE_Set_10 => System_Pack_10,
RE_SetU_10 => System_Pack_10,
RE_Bits_11 => System_Pack_11,
RE_Get_11 => System_Pack_11,
RE_Set_11 => System_Pack_11,
RE_Bits_12 => System_Pack_12,
RE_Get_12 => System_Pack_12,
RE_GetU_12 => System_Pack_12,
RE_Set_12 => System_Pack_12,
RE_SetU_12 => System_Pack_12,
RE_Bits_13 => System_Pack_13,
RE_Get_13 => System_Pack_13,
RE_Set_13 => System_Pack_13,
RE_Bits_14 => System_Pack_14,
RE_Get_14 => System_Pack_14,
RE_GetU_14 => System_Pack_14,
RE_Set_14 => System_Pack_14,
RE_SetU_14 => System_Pack_14,
RE_Bits_15 => System_Pack_15,
RE_Get_15 => System_Pack_15,
RE_Set_15 => System_Pack_15,
RE_Bits_17 => System_Pack_17,
RE_Get_17 => System_Pack_17,
RE_Set_17 => System_Pack_17,
RE_Bits_18 => System_Pack_18,
RE_Get_18 => System_Pack_18,
RE_GetU_18 => System_Pack_18,
RE_Set_18 => System_Pack_18,
RE_SetU_18 => System_Pack_18,
RE_Bits_19 => System_Pack_19,
RE_Get_19 => System_Pack_19,
RE_Set_19 => System_Pack_19,
RE_Bits_20 => System_Pack_20,
RE_Get_20 => System_Pack_20,
RE_GetU_20 => System_Pack_20,
RE_Set_20 => System_Pack_20,
RE_SetU_20 => System_Pack_20,
RE_Bits_21 => System_Pack_21,
RE_Get_21 => System_Pack_21,
RE_Set_21 => System_Pack_21,
RE_Bits_22 => System_Pack_22,
RE_Get_22 => System_Pack_22,
RE_GetU_22 => System_Pack_22,
RE_Set_22 => System_Pack_22,
RE_SetU_22 => System_Pack_22,
RE_Bits_23 => System_Pack_23,
RE_Get_23 => System_Pack_23,
RE_Set_23 => System_Pack_23,
RE_Bits_24 => System_Pack_24,
RE_Get_24 => System_Pack_24,
RE_GetU_24 => System_Pack_24,
RE_Set_24 => System_Pack_24,
RE_SetU_24 => System_Pack_24,
RE_Bits_25 => System_Pack_25,
RE_Get_25 => System_Pack_25,
RE_Set_25 => System_Pack_25,
RE_Bits_26 => System_Pack_26,
RE_Get_26 => System_Pack_26,
RE_GetU_26 => System_Pack_26,
RE_Set_26 => System_Pack_26,
RE_SetU_26 => System_Pack_26,
RE_Bits_27 => System_Pack_27,
RE_Get_27 => System_Pack_27,
RE_Set_27 => System_Pack_27,
RE_Bits_28 => System_Pack_28,
RE_Get_28 => System_Pack_28,
RE_GetU_28 => System_Pack_28,
RE_Set_28 => System_Pack_28,
RE_SetU_28 => System_Pack_28,
RE_Bits_29 => System_Pack_29,
RE_Get_29 => System_Pack_29,
RE_Set_29 => System_Pack_29,
RE_Bits_30 => System_Pack_30,
RE_Get_30 => System_Pack_30,
RE_GetU_30 => System_Pack_30,
RE_Set_30 => System_Pack_30,
RE_SetU_30 => System_Pack_30,
RE_Bits_31 => System_Pack_31,
RE_Get_31 => System_Pack_31,
RE_Set_31 => System_Pack_31,
RE_Bits_33 => System_Pack_33,
RE_Get_33 => System_Pack_33,
RE_Set_33 => System_Pack_33,
RE_Bits_34 => System_Pack_34,
RE_Get_34 => System_Pack_34,
RE_GetU_34 => System_Pack_34,
RE_Set_34 => System_Pack_34,
RE_SetU_34 => System_Pack_34,
RE_Bits_35 => System_Pack_35,
RE_Get_35 => System_Pack_35,
RE_Set_35 => System_Pack_35,
RE_Bits_36 => System_Pack_36,
RE_Get_36 => System_Pack_36,
RE_GetU_36 => System_Pack_36,
RE_Set_36 => System_Pack_36,
RE_SetU_36 => System_Pack_36,
RE_Bits_37 => System_Pack_37,
RE_Get_37 => System_Pack_37,
RE_Set_37 => System_Pack_37,
RE_Bits_38 => System_Pack_38,
RE_Get_38 => System_Pack_38,
RE_GetU_38 => System_Pack_38,
RE_Set_38 => System_Pack_38,
RE_SetU_38 => System_Pack_38,
RE_Bits_39 => System_Pack_39,
RE_Get_39 => System_Pack_39,
RE_Set_39 => System_Pack_39,
RE_Bits_40 => System_Pack_40,
RE_Get_40 => System_Pack_40,
RE_GetU_40 => System_Pack_40,
RE_Set_40 => System_Pack_40,
RE_SetU_40 => System_Pack_40,
RE_Bits_41 => System_Pack_41,
RE_Get_41 => System_Pack_41,
RE_Set_41 => System_Pack_41,
RE_Bits_42 => System_Pack_42,
RE_Get_42 => System_Pack_42,
RE_GetU_42 => System_Pack_42,
RE_Set_42 => System_Pack_42,
RE_SetU_42 => System_Pack_42,
RE_Bits_43 => System_Pack_43,
RE_Get_43 => System_Pack_43,
RE_Set_43 => System_Pack_43,
RE_Bits_44 => System_Pack_44,
RE_Get_44 => System_Pack_44,
RE_GetU_44 => System_Pack_44,
RE_Set_44 => System_Pack_44,
RE_SetU_44 => System_Pack_44,
RE_Bits_45 => System_Pack_45,
RE_Get_45 => System_Pack_45,
RE_Set_45 => System_Pack_45,
RE_Bits_46 => System_Pack_46,
RE_Get_46 => System_Pack_46,
RE_GetU_46 => System_Pack_46,
RE_Set_46 => System_Pack_46,
RE_SetU_46 => System_Pack_46,
RE_Bits_47 => System_Pack_47,
RE_Get_47 => System_Pack_47,
RE_Set_47 => System_Pack_47,
RE_Bits_48 => System_Pack_48,
RE_Get_48 => System_Pack_48,
RE_GetU_48 => System_Pack_48,
RE_Set_48 => System_Pack_48,
RE_SetU_48 => System_Pack_48,
RE_Bits_49 => System_Pack_49,
RE_Get_49 => System_Pack_49,
RE_Set_49 => System_Pack_49,
RE_Bits_50 => System_Pack_50,
RE_Get_50 => System_Pack_50,
RE_GetU_50 => System_Pack_50,
RE_Set_50 => System_Pack_50,
RE_SetU_50 => System_Pack_50,
RE_Bits_51 => System_Pack_51,
RE_Get_51 => System_Pack_51,
RE_Set_51 => System_Pack_51,
RE_Bits_52 => System_Pack_52,
RE_Get_52 => System_Pack_52,
RE_GetU_52 => System_Pack_52,
RE_Set_52 => System_Pack_52,
RE_SetU_52 => System_Pack_52,
RE_Bits_53 => System_Pack_53,
RE_Get_53 => System_Pack_53,
RE_Set_53 => System_Pack_53,
RE_Bits_54 => System_Pack_54,
RE_Get_54 => System_Pack_54,
RE_GetU_54 => System_Pack_54,
RE_Set_54 => System_Pack_54,
RE_SetU_54 => System_Pack_54,
RE_Bits_55 => System_Pack_55,
RE_Get_55 => System_Pack_55,
RE_Set_55 => System_Pack_55,
RE_Bits_56 => System_Pack_56,
RE_Get_56 => System_Pack_56,
RE_GetU_56 => System_Pack_56,
RE_Set_56 => System_Pack_56,
RE_SetU_56 => System_Pack_56,
RE_Bits_57 => System_Pack_57,
RE_Get_57 => System_Pack_57,
RE_Set_57 => System_Pack_57,
RE_Bits_58 => System_Pack_58,
RE_Get_58 => System_Pack_58,
RE_GetU_58 => System_Pack_58,
RE_Set_58 => System_Pack_58,
RE_SetU_58 => System_Pack_58,
RE_Bits_59 => System_Pack_59,
RE_Get_59 => System_Pack_59,
RE_Set_59 => System_Pack_59,
RE_Bits_60 => System_Pack_60,
RE_Get_60 => System_Pack_60,
RE_GetU_60 => System_Pack_60,
RE_Set_60 => System_Pack_60,
RE_SetU_60 => System_Pack_60,
RE_Bits_61 => System_Pack_61,
RE_Get_61 => System_Pack_61,
RE_Set_61 => System_Pack_61,
RE_Bits_62 => System_Pack_62,
RE_Get_62 => System_Pack_62,
RE_GetU_62 => System_Pack_62,
RE_Set_62 => System_Pack_62,
RE_SetU_62 => System_Pack_62,
RE_Bits_63 => System_Pack_63,
RE_Get_63 => System_Pack_63,
RE_Set_63 => System_Pack_63,
RE_Adjust_Storage_Size => System_Parameters,
RE_Default_Secondary_Stack_Size => System_Parameters,
RE_Default_Stack_Size => System_Parameters,
RE_Garbage_Collected => System_Parameters,
RE_Size_Type => System_Parameters,
RE_Unspecified_Size => System_Parameters,
RE_DSA_Implementation => System_Partition_Interface,
RE_PCS_Version => System_Partition_Interface,
RE_Get_RACW => System_Partition_Interface,
RE_Get_RCI_Package_Receiver => System_Partition_Interface,
RE_Get_Unique_Remote_Pointer => System_Partition_Interface,
RE_RACW_Stub_Type => System_Partition_Interface,
RE_RACW_Stub_Type_Access => System_Partition_Interface,
RE_RAS_Proxy_Type_Access => System_Partition_Interface,
RE_Raise_Program_Error_Unknown_Tag => System_Partition_Interface,
RE_Register_Passive_Package => System_Partition_Interface,
RE_Register_Receiving_Stub => System_Partition_Interface,
RE_Request => System_Partition_Interface,
RE_Request_Access => System_Partition_Interface,
RE_RCI_Locator => System_Partition_Interface,
RE_RCI_Subp_Info => System_Partition_Interface,
RE_RCI_Subp_Info_Array => System_Partition_Interface,
RE_Same_Partition => System_Partition_Interface,
RE_Subprogram_Id => System_Partition_Interface,
RE_Get_RAS_Info => System_Partition_Interface,
RE_To_PolyORB_String => System_Partition_Interface,
RE_Caseless_String_Eq => System_Partition_Interface,
RE_TypeCode => System_Partition_Interface,
RE_Any => System_Partition_Interface,
RE_Mode_In => System_Partition_Interface,
RE_Mode_Out => System_Partition_Interface,
RE_Mode_Inout => System_Partition_Interface,
RE_NamedValue => System_Partition_Interface,
RE_Result_Name => System_Partition_Interface,
RE_Object_Ref => System_Partition_Interface,
RE_Create_Any => System_Partition_Interface,
RE_Any_Aggregate_Build => System_Partition_Interface,
RE_Add_Aggregate_Element => System_Partition_Interface,
RE_Get_Aggregate_Element => System_Partition_Interface,
RE_Content_Type => System_Partition_Interface,
RE_Any_Member_Type => System_Partition_Interface,
RE_Get_Nested_Sequence_Length => System_Partition_Interface,
RE_Get_Any_Type => System_Partition_Interface,
RE_Extract_Union_Value => System_Partition_Interface,
RE_NVList_Ref => System_Partition_Interface,
RE_NVList_Create => System_Partition_Interface,
RE_NVList_Add_Item => System_Partition_Interface,
RE_Request_Arguments => System_Partition_Interface,
RE_Request_Invoke => System_Partition_Interface,
RE_Request_Raise_Occurrence => System_Partition_Interface,
RE_Request_Set_Out => System_Partition_Interface,
RE_Request_Setup => System_Partition_Interface,
RE_Nil_Exc_List => System_Partition_Interface,
RE_Servant => System_Partition_Interface,
RE_Move_Any_Value => System_Partition_Interface,
RE_Set_Result => System_Partition_Interface,
RE_Register_Obj_Receiving_Stub => System_Partition_Interface,
RE_Register_Pkg_Receiving_Stub => System_Partition_Interface,
RE_Is_Nil => System_Partition_Interface,
RE_Entity_Ptr => System_Partition_Interface,
RE_Entity_Of => System_Partition_Interface,
RE_Inc_Usage => System_Partition_Interface,
RE_Set_Ref => System_Partition_Interface,
RE_Make_Ref => System_Partition_Interface,
RE_Get_Local_Address => System_Partition_Interface,
RE_Get_Reference => System_Partition_Interface,
RE_Asynchronous_P_To_Sync_Scope => System_Partition_Interface,
RE_Buffer_Stream_Type => System_Partition_Interface,
RE_Release_Buffer => System_Partition_Interface,
RE_BS_To_Any => System_Partition_Interface,
RE_Any_To_BS => System_Partition_Interface,
RE_Build_Complex_TC => System_Partition_Interface,
RE_Get_TC => System_Partition_Interface,
RE_Set_TC => System_Partition_Interface,
RE_FA_A => System_Partition_Interface,
RE_FA_B => System_Partition_Interface,
RE_FA_C => System_Partition_Interface,
RE_FA_F => System_Partition_Interface,
RE_FA_I8 => System_Partition_Interface,
RE_FA_I16 => System_Partition_Interface,
RE_FA_I32 => System_Partition_Interface,
RE_FA_I64 => System_Partition_Interface,
RE_FA_LF => System_Partition_Interface,
RE_FA_LLF => System_Partition_Interface,
RE_FA_SF => System_Partition_Interface,
RE_FA_U8 => System_Partition_Interface,
RE_FA_U16 => System_Partition_Interface,
RE_FA_U32 => System_Partition_Interface,
RE_FA_U64 => System_Partition_Interface,
RE_FA_WC => System_Partition_Interface,
RE_FA_WWC => System_Partition_Interface,
RE_FA_String => System_Partition_Interface,
RE_FA_ObjRef => System_Partition_Interface,
RE_TA_A => System_Partition_Interface,
RE_TA_B => System_Partition_Interface,
RE_TA_C => System_Partition_Interface,
RE_TA_F => System_Partition_Interface,
RE_TA_I8 => System_Partition_Interface,
RE_TA_I16 => System_Partition_Interface,
RE_TA_I32 => System_Partition_Interface,
RE_TA_I64 => System_Partition_Interface,
RE_TA_LF => System_Partition_Interface,
RE_TA_LLF => System_Partition_Interface,
RE_TA_SF => System_Partition_Interface,
RE_TA_U8 => System_Partition_Interface,
RE_TA_U16 => System_Partition_Interface,
RE_TA_U32 => System_Partition_Interface,
RE_TA_U64 => System_Partition_Interface,
RE_TA_WC => System_Partition_Interface,
RE_TA_WWC => System_Partition_Interface,
RE_TA_String => System_Partition_Interface,
RE_TA_ObjRef => System_Partition_Interface,
RE_TA_Std_String => System_Partition_Interface,
RE_TA_TC => System_Partition_Interface,
RE_TC_A => System_Partition_Interface,
RE_TC_B => System_Partition_Interface,
RE_TC_C => System_Partition_Interface,
RE_TC_F => System_Partition_Interface,
RE_TC_I8 => System_Partition_Interface,
RE_TC_I16 => System_Partition_Interface,
RE_TC_I32 => System_Partition_Interface,
RE_TC_I64 => System_Partition_Interface,
RE_TC_LF => System_Partition_Interface,
RE_TC_LLF => System_Partition_Interface,
RE_TC_SF => System_Partition_Interface,
RE_TC_U8 => System_Partition_Interface,
RE_TC_U16 => System_Partition_Interface,
RE_TC_U32 => System_Partition_Interface,
RE_TC_U64 => System_Partition_Interface,
RE_TC_Void => System_Partition_Interface,
RE_TC_Opaque => System_Partition_Interface,
RE_TC_WC => System_Partition_Interface,
RE_TC_WWC => System_Partition_Interface,
RE_TC_String => System_Partition_Interface,
RE_Tk_Alias => System_Partition_Interface,
RE_Tk_Array => System_Partition_Interface,
RE_Tk_Sequence => System_Partition_Interface,
RE_Tk_Struct => System_Partition_Interface,
RE_Tk_Objref => System_Partition_Interface,
RE_Tk_Union => System_Partition_Interface,
RE_Global_Pool_Object => System_Pool_Global,
RE_Global_Pool_32_Object => System_Pool_32_Global,
RE_Stack_Bounded_Pool => System_Pool_Size,
RE_Put_Image_Integer => System_Put_Images,
RE_Put_Image_Long_Long_Integer => System_Put_Images,
RE_Put_Image_Unsigned => System_Put_Images,
RE_Put_Image_Long_Long_Unsigned => System_Put_Images,
RE_Put_Image_Thin_Pointer => System_Put_Images,
RE_Put_Image_Fat_Pointer => System_Put_Images,
RE_Put_Image_Access_Subp => System_Put_Images,
RE_Put_Image_Access_Prot_Subp => System_Put_Images,
RE_Put_Image_String => System_Put_Images,
RE_Put_Image_Wide_String => System_Put_Images,
RE_Put_Image_Wide_Wide_String => System_Put_Images,
RE_Array_Before => System_Put_Images,
RE_Array_Between => System_Put_Images,
RE_Array_After => System_Put_Images,
RE_Simple_Array_Between => System_Put_Images,
RE_Record_Before => System_Put_Images,
RE_Record_Between => System_Put_Images,
RE_Record_After => System_Put_Images,
RE_Put_Image_Unknown => System_Put_Images,
RE_Put_Image_Protected => System_Put_Task_Images,
RE_Put_Image_Task => System_Put_Task_Images,
RO_RD_Delay_For => System_Relative_Delays,
RE_Do_Apc => System_RPC,
RE_Do_Rpc => System_RPC,
RE_Params_Stream_Type => System_RPC,
RE_Partition_ID => System_RPC,
RE_IS_Is1 => System_Scalar_Values,
RE_IS_Is2 => System_Scalar_Values,
RE_IS_Is4 => System_Scalar_Values,
RE_IS_Is8 => System_Scalar_Values,
RE_IS_Iu1 => System_Scalar_Values,
RE_IS_Iu2 => System_Scalar_Values,
RE_IS_Iu4 => System_Scalar_Values,
RE_IS_Iu8 => System_Scalar_Values,
RE_IS_Iz1 => System_Scalar_Values,
RE_IS_Iz2 => System_Scalar_Values,
RE_IS_Iz4 => System_Scalar_Values,
RE_IS_Iz8 => System_Scalar_Values,
RE_IS_Isf => System_Scalar_Values,
RE_IS_Ifl => System_Scalar_Values,
RE_IS_Ilf => System_Scalar_Values,
RE_IS_Ill => System_Scalar_Values,
RE_Mark_Id => System_Secondary_Stack,
RE_SS_Allocate => System_Secondary_Stack,
RE_SS_Mark => System_Secondary_Stack,
RE_SS_Pool => System_Secondary_Stack,
RE_SS_Release => System_Secondary_Stack,
RE_SS_Stack => System_Secondary_Stack,
RE_Shared_Var_Lock => System_Shared_Storage,
RE_Shared_Var_Unlock => System_Shared_Storage,
RE_Shared_Var_Procs => System_Shared_Storage,
RE_Abort_Undefer_Direct => System_Standard_Library,
RE_Exception_Data_Ptr => System_Standard_Library,
RE_Integer_Address => System_Storage_Elements,
RE_Storage_Array => System_Storage_Elements,
RE_Storage_Count => System_Storage_Elements,
RE_Storage_Offset => System_Storage_Elements,
RE_To_Address => System_Storage_Elements,
RE_Allocate_Any => System_Storage_Pools,
RE_Deallocate_Any => System_Storage_Pools,
RE_Root_Storage_Pool => System_Storage_Pools,
RE_Root_Storage_Pool_Ptr => System_Storage_Pools,
RE_Adjust_Controlled_Dereference => System_Storage_Pools_Subpools,
RE_Allocate_Any_Controlled => System_Storage_Pools_Subpools,
RE_Deallocate_Any_Controlled => System_Storage_Pools_Subpools,
RE_Header_Size_With_Padding => System_Storage_Pools_Subpools,
RE_Root_Storage_Pool_With_Subpools => System_Storage_Pools_Subpools,
RE_Root_Subpool => System_Storage_Pools_Subpools,
RE_Subpool_Handle => System_Storage_Pools_Subpools,
RE_I_AD => System_Stream_Attributes,
RE_I_AS => System_Stream_Attributes,
RE_I_B => System_Stream_Attributes,
RE_I_C => System_Stream_Attributes,
RE_I_F => System_Stream_Attributes,
RE_I_I => System_Stream_Attributes,
RE_I_I24 => System_Stream_Attributes,
RE_I_LF => System_Stream_Attributes,
RE_I_LI => System_Stream_Attributes,
RE_I_LLF => System_Stream_Attributes,
RE_I_LLI => System_Stream_Attributes,
RE_I_LLU => System_Stream_Attributes,
RE_I_LU => System_Stream_Attributes,
RE_I_SF => System_Stream_Attributes,
RE_I_SI => System_Stream_Attributes,
RE_I_SSI => System_Stream_Attributes,
RE_I_SSU => System_Stream_Attributes,
RE_I_SU => System_Stream_Attributes,
RE_I_U => System_Stream_Attributes,
RE_I_U24 => System_Stream_Attributes,
RE_I_WC => System_Stream_Attributes,
RE_I_WWC => System_Stream_Attributes,
RE_W_AD => System_Stream_Attributes,
RE_W_AS => System_Stream_Attributes,
RE_W_B => System_Stream_Attributes,
RE_W_C => System_Stream_Attributes,
RE_W_F => System_Stream_Attributes,
RE_W_I => System_Stream_Attributes,
RE_W_I24 => System_Stream_Attributes,
RE_W_LF => System_Stream_Attributes,
RE_W_LI => System_Stream_Attributes,
RE_W_LLF => System_Stream_Attributes,
RE_W_LLI => System_Stream_Attributes,
RE_W_LLU => System_Stream_Attributes,
RE_W_LU => System_Stream_Attributes,
RE_W_SF => System_Stream_Attributes,
RE_W_SI => System_Stream_Attributes,
RE_W_SSI => System_Stream_Attributes,
RE_W_SSU => System_Stream_Attributes,
RE_W_SU => System_Stream_Attributes,
RE_W_U => System_Stream_Attributes,
RE_W_U24 => System_Stream_Attributes,
RE_W_WC => System_Stream_Attributes,
RE_W_WWC => System_Stream_Attributes,
RE_Storage_Array_Input => System_Strings_Stream_Ops,
RE_Storage_Array_Input_Blk_IO => System_Strings_Stream_Ops,
RE_Storage_Array_Output => System_Strings_Stream_Ops,
RE_Storage_Array_Output_Blk_IO => System_Strings_Stream_Ops,
RE_Storage_Array_Read => System_Strings_Stream_Ops,
RE_Storage_Array_Read_Blk_IO => System_Strings_Stream_Ops,
RE_Storage_Array_Write => System_Strings_Stream_Ops,
RE_Storage_Array_Write_Blk_IO => System_Strings_Stream_Ops,
RE_Stream_Element_Array_Input => System_Strings_Stream_Ops,
RE_Stream_Element_Array_Input_Blk_IO => System_Strings_Stream_Ops,
RE_Stream_Element_Array_Output => System_Strings_Stream_Ops,
RE_Stream_Element_Array_Output_Blk_IO => System_Strings_Stream_Ops,
RE_Stream_Element_Array_Read => System_Strings_Stream_Ops,
RE_Stream_Element_Array_Read_Blk_IO => System_Strings_Stream_Ops,
RE_Stream_Element_Array_Write => System_Strings_Stream_Ops,
RE_Stream_Element_Array_Write_Blk_IO => System_Strings_Stream_Ops,
RE_String_Input => System_Strings_Stream_Ops,
RE_String_Input_Blk_IO => System_Strings_Stream_Ops,
RE_String_Input_Tag => System_Strings_Stream_Ops,
RE_String_Output => System_Strings_Stream_Ops,
RE_String_Output_Blk_IO => System_Strings_Stream_Ops,
RE_String_Read => System_Strings_Stream_Ops,
RE_String_Read_Blk_IO => System_Strings_Stream_Ops,
RE_String_Write => System_Strings_Stream_Ops,
RE_String_Write_Blk_IO => System_Strings_Stream_Ops,
RE_Wide_String_Input => System_Strings_Stream_Ops,
RE_Wide_String_Input_Blk_IO => System_Strings_Stream_Ops,
RE_Wide_String_Output => System_Strings_Stream_Ops,
RE_Wide_String_Output_Blk_IO => System_Strings_Stream_Ops,
RE_Wide_String_Read => System_Strings_Stream_Ops,
RE_Wide_String_Read_Blk_IO => System_Strings_Stream_Ops,
RE_Wide_String_Write => System_Strings_Stream_Ops,
RE_Wide_String_Write_Blk_IO => System_Strings_Stream_Ops,
RE_Wide_Wide_String_Input => System_Strings_Stream_Ops,
RE_Wide_Wide_String_Input_Blk_IO => System_Strings_Stream_Ops,
RE_Wide_Wide_String_Output => System_Strings_Stream_Ops,
RE_Wide_Wide_String_Output_Blk_IO => System_Strings_Stream_Ops,
RE_Wide_Wide_String_Read => System_Strings_Stream_Ops,
RE_Wide_Wide_String_Read_Blk_IO => System_Strings_Stream_Ops,
RE_Wide_Wide_String_Write => System_Strings_Stream_Ops,
RE_Wide_Wide_String_Write_Blk_IO => System_Strings_Stream_Ops,
RE_Task_Info_Type => System_Task_Info,
RE_Unspecified_Task_Info => System_Task_Info,
RE_Task_Procedure_Access => System_Tasking,
RO_ST_Number_Of_Entries => System_Tasking,
RO_ST_Task_Id => System_Tasking,
RO_ST_Null_Task => System_Tasking,
RE_Call_Modes => System_Tasking,
RE_Simple_Call => System_Tasking,
RE_Conditional_Call => System_Tasking,
RE_Asynchronous_Call => System_Tasking,
RE_Foreign_Task_Level => System_Tasking,
RE_Environment_Task_Level => System_Tasking,
RE_Independent_Task_Level => System_Tasking,
RE_Library_Task_Level => System_Tasking,
RE_Ada_Task_Control_Block => System_Tasking,
RE_Task_List => System_Tasking,
RE_Accept_List => System_Tasking,
RE_No_Rendezvous => System_Tasking,
RE_Null_Task_Entry => System_Tasking,
RE_Select_Index => System_Tasking,
RE_Else_Mode => System_Tasking,
RE_Simple_Mode => System_Tasking,
RE_Terminate_Mode => System_Tasking,
RE_Delay_Mode => System_Tasking,
RE_Entry_Index => System_Tasking,
RE_Task_Entry_Index => System_Tasking,
RE_Self => System_Tasking,
RE_Master_Id => System_Tasking,
RE_Unspecified_Priority => System_Tasking,
RE_Activation_Chain => System_Tasking,
RE_Activation_Chain_Access => System_Tasking,
RE_Storage_Size => System_Tasking,
RE_Unspecified_CPU => System_Tasking,
RE_Dispatching_Domain_Access => System_Tasking,
RE_Abort_Defer => System_Soft_Links,
RE_Abort_Undefer => System_Soft_Links,
RE_Complete_Master => System_Soft_Links,
RE_Current_Master => System_Soft_Links,
RE_Dummy_Communication_Block => System_Soft_Links,
RE_Enter_Master => System_Soft_Links,
RE_Get_Current_Excep => System_Soft_Links,
RE_Get_GNAT_Exception => System_Soft_Links,
RE_Save_Library_Occurrence => System_Soft_Links,
RE_Bits_1 => System_Unsigned_Types,
RE_Bits_2 => System_Unsigned_Types,
RE_Bits_4 => System_Unsigned_Types,
RE_Float_Unsigned => System_Unsigned_Types,
RE_Long_Unsigned => System_Unsigned_Types,
RE_Long_Long_Unsigned => System_Unsigned_Types,
RE_Packed_Byte => System_Unsigned_Types,
RE_Packed_Bytes1 => System_Unsigned_Types,
RE_Packed_Bytes2 => System_Unsigned_Types,
RE_Packed_Bytes4 => System_Unsigned_Types,
RE_Rev_Packed_Bytes1 => System_Unsigned_Types,
RE_Rev_Packed_Bytes2 => System_Unsigned_Types,
RE_Rev_Packed_Bytes4 => System_Unsigned_Types,
RE_Short_Unsigned => System_Unsigned_Types,
RE_Short_Short_Unsigned => System_Unsigned_Types,
RE_Unsigned => System_Unsigned_Types,
RE_Value_Boolean => System_Val_Bool,
RE_Value_Character => System_Val_Char,
RE_Value_Decimal => System_Val_Dec,
RE_Value_Enumeration_8 => System_Val_Enum,
RE_Value_Enumeration_16 => System_Val_Enum,
RE_Value_Enumeration_32 => System_Val_Enum,
RE_Value_Integer => System_Val_Int,
RE_Value_Long_Long_Decimal => System_Val_LLD,
RE_Value_Long_Long_Integer => System_Val_LLI,
RE_Value_Long_Long_Unsigned => System_Val_LLU,
RE_Value_Real => System_Val_Real,
RE_Value_Unsigned => System_Val_Uns,
RE_Value_Wide_Character => System_Val_WChar,
RE_Value_Wide_Wide_Character => System_Val_WChar,
RE_Version_String => System_Version_Control,
RE_Get_Version_String => System_Version_Control,
RE_String_To_Wide_String => System_WCh_StW,
RE_String_To_Wide_Wide_String => System_WCh_StW,
RE_Wide_String_To_String => System_WCh_WtS,
RE_Wide_Wide_String_To_String => System_WCh_WtS,
RE_Wide_Wide_Width_Character => System_WWd_Char,
RE_Wide_Width_Character => System_WWd_Char,
RE_Wide_Wide_Width_Enumeration_8 => System_WWd_Enum,
RE_Wide_Wide_Width_Enumeration_16 => System_WWd_Enum,
RE_Wide_Wide_Width_Enumeration_32 => System_WWd_Enum,
RE_Wide_Width_Enumeration_8 => System_WWd_Enum,
RE_Wide_Width_Enumeration_16 => System_WWd_Enum,
RE_Wide_Width_Enumeration_32 => System_WWd_Enum,
RE_Wide_Wide_Width_Wide_Character => System_WWd_Wchar,
RE_Wide_Wide_Width_Wide_Wide_Char => System_WWd_Wchar,
RE_Wide_Width_Wide_Character => System_WWd_Wchar,
RE_Wide_Width_Wide_Wide_Character => System_WWd_Wchar,
RE_Width_Boolean => System_Wid_Bool,
RE_Width_Character => System_Wid_Char,
RE_Width_Enumeration_8 => System_Wid_Enum,
RE_Width_Enumeration_16 => System_Wid_Enum,
RE_Width_Enumeration_32 => System_Wid_Enum,
RE_Width_Long_Long_Integer => System_Wid_LLI,
RE_Width_Long_Long_Unsigned => System_Wid_LLU,
RE_Width_Wide_Character => System_Wid_WChar,
RE_Width_Wide_Wide_Character => System_Wid_WChar,
RE_Dispatching_Domain =>
System_Multiprocessors_Dispatching_Domains,
RE_Protected_Entry_Body_Array =>
System_Tasking_Protected_Objects_Entries,
RE_Protected_Entry_Queue_Max_Array =>
System_Tasking_Protected_Objects_Entries,
RE_Protection_Entries =>
System_Tasking_Protected_Objects_Entries,
RE_Protection_Entries_Access =>
System_Tasking_Protected_Objects_Entries,
RE_Initialize_Protection_Entries =>
System_Tasking_Protected_Objects_Entries,
RE_Lock_Entries =>
System_Tasking_Protected_Objects_Entries,
RE_Unlock_Entries =>
System_Tasking_Protected_Objects_Entries,
RO_PE_Get_Ceiling =>
System_Tasking_Protected_Objects_Entries,
RO_PE_Number_Of_Entries =>
System_Tasking_Protected_Objects_Entries,
RO_PE_Set_Ceiling =>
System_Tasking_Protected_Objects_Entries,
RE_Communication_Block =>
System_Tasking_Protected_Objects_Operations,
RE_Protected_Entry_Call =>
System_Tasking_Protected_Objects_Operations,
RE_Service_Entries =>
System_Tasking_Protected_Objects_Operations,
RE_Cancel_Protected_Entry_Call =>
System_Tasking_Protected_Objects_Operations,
RE_Enqueued =>
System_Tasking_Protected_Objects_Operations,
RE_Cancelled =>
System_Tasking_Protected_Objects_Operations,
RE_Complete_Entry_Body =>
System_Tasking_Protected_Objects_Operations,
RE_Exceptional_Complete_Entry_Body =>
System_Tasking_Protected_Objects_Operations,
RE_Requeue_Protected_Entry =>
System_Tasking_Protected_Objects_Operations,
RE_Requeue_Task_To_Protected_Entry =>
System_Tasking_Protected_Objects_Operations,
RE_Protected_Count =>
System_Tasking_Protected_Objects_Operations,
RE_Protected_Entry_Caller =>
System_Tasking_Protected_Objects_Operations,
RE_Timed_Protected_Entry_Call =>
System_Tasking_Protected_Objects_Operations,
RE_Protection_Entry =>
System_Tasking_Protected_Objects_Single_Entry,
RE_Initialize_Protection_Entry =>
System_Tasking_Protected_Objects_Single_Entry,
RE_Lock_Entry =>
System_Tasking_Protected_Objects_Single_Entry,
RE_Unlock_Entry =>
System_Tasking_Protected_Objects_Single_Entry,
RE_Protected_Single_Entry_Call =>
System_Tasking_Protected_Objects_Single_Entry,
RE_Service_Entry =>
System_Tasking_Protected_Objects_Single_Entry,
RE_Exceptional_Complete_Single_Entry_Body =>
System_Tasking_Protected_Objects_Single_Entry,
RE_Protected_Count_Entry =>
System_Tasking_Protected_Objects_Single_Entry,
RE_Protected_Single_Entry_Caller =>
System_Tasking_Protected_Objects_Single_Entry,
RE_Protected_Entry_Index => System_Tasking_Protected_Objects,
RE_Entry_Body => System_Tasking_Protected_Objects,
RE_Protection => System_Tasking_Protected_Objects,
RE_Initialize_Protection => System_Tasking_Protected_Objects,
RE_Finalize_Protection => System_Tasking_Protected_Objects,
RE_Lock => System_Tasking_Protected_Objects,
RE_Lock_Read_Only => System_Tasking_Protected_Objects,
RE_Get_Ceiling => System_Tasking_Protected_Objects,
RE_Set_Ceiling => System_Tasking_Protected_Objects,
RE_Unlock => System_Tasking_Protected_Objects,
RE_Delay_Block => System_Tasking_Async_Delays,
RE_Timed_Out => System_Tasking_Async_Delays,
RE_Cancel_Async_Delay => System_Tasking_Async_Delays,
RE_Enqueue_Duration => System_Tasking_Async_Delays,
RE_Enqueue_Calendar =>
System_Tasking_Async_Delays_Enqueue_Calendar,
RE_Enqueue_RT =>
System_Tasking_Async_Delays_Enqueue_RT,
RE_Accept_Call => System_Tasking_Rendezvous,
RE_Accept_Trivial => System_Tasking_Rendezvous,
RE_Callable => System_Tasking_Rendezvous,
RE_Call_Simple => System_Tasking_Rendezvous,
RE_Cancel_Task_Entry_Call => System_Tasking_Rendezvous,
RE_Requeue_Task_Entry => System_Tasking_Rendezvous,
RE_Requeue_Protected_To_Task_Entry => System_Tasking_Rendezvous,
RE_Complete_Rendezvous => System_Tasking_Rendezvous,
RE_Task_Count => System_Tasking_Rendezvous,
RE_Exceptional_Complete_Rendezvous => System_Tasking_Rendezvous,
RE_Selective_Wait => System_Tasking_Rendezvous,
RE_Task_Entry_Call => System_Tasking_Rendezvous,
RE_Task_Entry_Caller => System_Tasking_Rendezvous,
RE_Timed_Task_Entry_Call => System_Tasking_Rendezvous,
RE_Timed_Selective_Wait => System_Tasking_Rendezvous,
RE_Activate_Restricted_Tasks => System_Tasking_Restricted_Stages,
RE_Complete_Restricted_Activation => System_Tasking_Restricted_Stages,
RE_Create_Restricted_Task => System_Tasking_Restricted_Stages,
RE_Create_Restricted_Task_Sequential => System_Tasking_Restricted_Stages,
RE_Complete_Restricted_Task => System_Tasking_Restricted_Stages,
RE_Restricted_Terminated => System_Tasking_Restricted_Stages,
RE_Abort_Tasks => System_Tasking_Stages,
RE_Activate_Tasks => System_Tasking_Stages,
RE_Complete_Activation => System_Tasking_Stages,
RE_Create_Task => System_Tasking_Stages,
RE_Complete_Task => System_Tasking_Stages,
RE_Free_Task => System_Tasking_Stages,
RE_Expunge_Unactivated_Tasks => System_Tasking_Stages,
RE_Move_Activation_Chain => System_Tasking_Stages,
RE_Terminated => System_Tasking_Stages);
--------------------------------
-- Configurable Run-Time Mode --
--------------------------------
-- Part of the job of Rtsfind is to enforce run-time restrictions in
-- configurable run-time mode. This is done by monitoring implicit access
-- to the run time library requested by calls to the RTE function. A call
-- may be invalid in configurable run-time mode for either of the
-- following two reasons:
-- 1. File in which entity lives is not present in run-time library
-- 2. File is present, but entity is not defined in the file
-- In normal mode, either or these two situations is a fatal error
-- that indicates that the run-time library is incorrectly configured,
-- and a fatal error message is issued to signal this error.
-- In configurable run-time mode, either of these two situations indicates
-- simply that the corresponding operation is not available in the current
-- run-time that is use. This is not a configuration error, but rather a
-- natural result of a limited run-time. This situation is signalled by
-- raising the exception RE_Not_Available. The caller must respond to
-- this exception by posting an appropriate error message.
----------------------
-- No_Run_Time_Mode --
----------------------
-- For backwards compatibility with previous versions of GNAT, the
-- compiler recognizes the pragma No_Run_Time. This provides a special
-- version of configurable run-time mode that operates with the standard
-- run-time library, but allows only a subset of entities to be
-- accessed. If any other entity is accessed, then it is treated
-- as a configurable run-time violation, and the exception
-- RE_Not_Available is raised.
-- The following array defines the set of units that contain entities
-- that can be referenced in No_Run_Time mode. For each of these units,
-- all entities defined in the unit can be used in this mode.
OK_No_Run_Time_Unit : constant array (RTU_Id) of Boolean :=
(Ada_Exceptions => True,
Ada_Tags => True,
Interfaces => True,
System => True,
System_Parameters => True,
System_Fat_Flt => True,
System_Fat_LFlt => True,
System_Fat_LLF => True,
System_Fat_SFlt => True,
System_Machine_Code => True,
System_Secondary_Stack => True,
System_Storage_Elements => True,
System_Task_Info => True,
System_Unsigned_Types => True,
others => False);
-----------------
-- Subprograms --
-----------------
RE_Not_Available : exception;
-- Raised by RTE if the requested entity is not available. This can
-- occur either because the file in which the entity should be found
-- does not exist, or because the entity is not present in the file.
procedure Check_Text_IO_Special_Unit (Nam : Node_Id);
-- In Ada 83, and hence for compatibility in later versions of Ada, package
-- Text_IO has generic subpackages (e.g. Integer_IO). They really should be
-- child packages, and in GNAT, they *are* child packages. To maintain the
-- required compatibility, this routine is called for package renamings and
-- generic instantiations, with the simple name of the referenced package.
-- If Text_IO has been with'ed and if the simple name of Nam matches
-- one of the subpackages of Text_IO, then this subpackage is with'ed
-- automatically. The important result of this approach is that Text_IO
-- does not drag in all the code for the subpackages unless they are used.
-- Our test is a little crude, and could drag in stuff when it is not
-- necessary, but that is acceptable. Wide_[Wide_]Text_IO is handled in
-- a similar manner.
procedure Initialize;
-- Procedure to initialize data structures used by RTE. Called at the
-- start of processing a new main source file. Must be called after
-- Initialize_Snames (since names it enters into name table must come
-- after names entered by Snames).
function Is_RTE (Ent : Entity_Id; E : RE_Id) return Boolean;
-- This function determines if the given entity corresponds to the entity
-- referenced by RE_Id. It is similar in effect to (Ent = RTE (E)) except
-- that the latter would unconditionally load the unit containing E. For
-- this call, if the unit is not loaded, then a result of False is returned
-- immediately, since obviously Ent cannot be the entity in question if the
-- corresponding unit has not been loaded.
function Is_RTU (Ent : Entity_Id; U : RTU_Id) return Boolean;
pragma Inline (Is_RTU);
-- This function determines if the given entity corresponds to the entity
-- for the unit referenced by U. If this unit has not been loaded, the
-- answer will always be False. If the unit has been loaded, then the
-- entity id values are compared and True is returned if Ent is the
-- entity for this unit.
function Is_Text_IO_Special_Unit (Nam : Node_Id) return Boolean;
-- Returns True if the given Nam is an Expanded Name, whose Prefix is Ada,
-- and whose selector is either Text_IO.xxx or Wide_Text_IO.xxx or
-- Wide_Wide_Text_IO.xxx, where xxx is one of the subpackages of Text_IO
-- that is specially handled as described for Check_Text_IO_Special_Unit.
function Is_Text_IO_Special_Package (E : Entity_Id) return Boolean;
-- Return True iff E is one of the special generic Text_IO packages, which
-- Ada RM defines to be nested in Ada.Text_IO, but GNAT defines as its
-- private children. This is similar to Is_Text_IO_Special_Unit, but is
-- meant to be used on a fully resolved AST, especially in the backends.
-- This is used by SPARK.
function RTE (E : RE_Id) return Entity_Id;
-- Given the entity defined in the above tables, as identified by the
-- corresponding value in the RE_Id enumeration type, returns the Id of the
-- corresponding entity, first loading in (parsing, analyzing and
-- expanding) its spec if the unit has not already been loaded. For
-- efficiency reasons, this routine restricts the search to the package
-- entity chain.
--
-- Note: In the case of a package, RTE can return either an entity that is
-- declared at the top level of the package, or the package entity itself.
-- If an entity within the package has the same simple name as the package,
-- then the entity within the package is returned.
--
-- If RTE returns, the returned value is the required entity
--
-- If the entity is not available, then an error message is given. The
-- form of the message depends on whether we are in configurable run time
-- mode or not. In configurable run time mode, a missing entity is not
-- that surprising and merely says that the particular construct is not
-- supported by the run-time in use. If we are not in configurable run
-- time mode, a missing entity is some kind of run-time configuration
-- error. In either case, the result of the call is to raise the exception
-- RE_Not_Available, which should terminate the expansion of the current
-- construct.
function RTE_Available (E : RE_Id) return Boolean;
-- Returns true if a call to RTE will succeed without raising an exception
-- and without generating an error message, i.e. if the call will obtain
-- the desired entity without any problems.
--
-- If we call this and it returns True, we should generate a call to E.
-- In other words, the compiler should not call RTE_Available (E) until
-- it has decided it wants to generate a call to E. Otherwise we can get
-- spurious dependencies and elaboration orders.
--
-- if RTE_Available (E) -- WRONG!
-- and then <some condition>
-- then
-- generate call to E;
--
-- Should be:
--
-- if <some condition>
-- and then RTE_Available (E) -- Correct
-- then
-- generate call to E;
function RTE_Record_Component (E : RE_Id) return Entity_Id;
-- Given the entity defined in the above tables, as identified by the
-- corresponding value in the RE_Id enumeration type, returns the Id of
-- the corresponding entity, first loading in (parsing, analyzing and
-- expanding) its spec if the unit has not already been loaded. For
-- efficiency reasons, this routine restricts the search of E to fields
-- of record type declarations found in the package entity chain.
--
-- Note: In the case of a package, RTE can return either an entity that is
-- declared at the top level of the package, or the package entity itself.
-- If an entity within the package has the same simple name as the package,
-- then the entity within the package is returned.
--
-- If RTE returns, the returned value is the required entity
--
-- If the entity is not available, then an error message is given. The
-- form of the message depends on whether we are in configurable run time
-- mode or not. In configurable run time mode, a missing entity is not
-- that surprising and merely says that the particular construct is not
-- supported by the run-time in use. If we are not in configurable run
-- time mode, a missing entity is some kind of run-time configuration
-- error. In either case, the result of the call is to raise the exception
-- RE_Not_Available, which should terminate the expansion of the current
-- construct.
function RTE_Record_Component_Available (E : RE_Id) return Boolean;
-- Returns true if a call to RTE_Record_Component will succeed without
-- raising an exception and without generating an error message, i.e.
-- if the call will obtain the desired entity without any problems.
function RTU_Entity (U : RTU_Id) return Entity_Id;
pragma Inline (RTU_Entity);
-- This function returns the entity for the unit referenced by U. If
-- this unit has not been loaded, it returns Empty.
function RTU_Loaded (U : RTU_Id) return Boolean;
pragma Inline (RTU_Loaded);
-- Returns true if indicated unit has already been successfully loaded.
-- If the unit has not been loaded, returns False. Note that this does
-- not mean that an attempt to load it subsequently would fail.
procedure Set_RTU_Loaded (N : Node_Id);
-- Register the predefined unit N as already loaded
procedure SPARK_Implicit_Load (E : RE_Id);
-- Force loading of the unit containing the entity E; only needed in
-- GNATprove mode when processing code that implicitly references a
-- given entity.
end Rtsfind;
|
source/tasking/s-inthan.adb | ytomino/drake | 33 | 22631 | with Ada.Unchecked_Conversion;
with System.Storage_Barriers;
package body System.Interrupt_Handlers is
type Node;
type Node_Access is access Node;
pragma Atomic (Node_Access);
type Node is record
Next : aliased Node_Access;
Code_Address : Address;
Is_Static : Boolean;
pragma Atomic (Is_Static); -- because it's mutable
end record;
pragma Suppress_Initialization (Node);
pragma Compile_Time_Error (
Standard'Address_Size /= 32 and then Standard'Address_Size /= 64,
"Standard'Address_Size is neither 32 nor 64");
-- Use sequentially consistent model because the list and each node's
-- components should be synchronized.
Order : constant := Storage_Barriers.ATOMIC_SEQ_CST;
function atomic_compare_exchange (
ptr : not null access Node_Access;
expected : not null access Node_Access;
desired : Node_Access;
weak : Boolean := False;
success_memorder : Integer := Order;
failure_memorder : Integer := Order)
return Boolean
with Import,
Convention => Intrinsic,
External_Name =>
(case Standard'Address_Size is
when 32 => "__atomic_compare_exchange_4",
when others => "__atomic_compare_exchange_8");
pragma Warnings (Off, atomic_compare_exchange);
-- [gcc-4.8/4.9/5] excessive prototype checking
List : aliased Node_Access := null;
function Find (Code_Address : Address) return Node_Access;
function Find (Code_Address : Address) return Node_Access is
I : Node_Access := List;
begin
while I /= null loop
if I.Code_Address = Code_Address then
return I;
end if;
I := I.Next;
end loop;
return null;
end Find;
procedure Add (New_Node : not null Node_Access);
procedure Add (New_Node : not null Node_Access) is
Expected : aliased Node_Access := List;
begin
loop
New_Node.Next := Expected;
exit when atomic_compare_exchange (
List'Access,
Expected'Access,
New_Node);
end loop;
end Add;
-- implementation
procedure Register_Interrupt_Handler (
Code_Address : Address) is
begin
if Find (Code_Address) = null then
declare
New_Node : constant not null Node_Access := new Node;
begin
New_Node.Code_Address := Code_Address;
New_Node.Is_Static := False;
Add (New_Node);
end;
end if;
end Register_Interrupt_Handler;
procedure Register_Interrupt_Handler (
Handler : Ada.Interrupts.Parameterless_Handler)
is
type Repr is record
Data : Address;
Code_Address : Address;
end record;
pragma Suppress_Initialization (Repr);
function Cast is
new Ada.Unchecked_Conversion (
Ada.Interrupts.Parameterless_Handler,
Repr);
begin
Register_Interrupt_Handler (Cast (Handler).Code_Address);
end Register_Interrupt_Handler;
procedure Set_Static_Handler (
Code_Address : Address)
is
Node : Node_Access := Find (Code_Address);
begin
if Node = null then
Node := new Interrupt_Handlers.Node;
Node.Code_Address := Code_Address;
Node.Is_Static := True;
Add (Node);
else
Node.Is_Static := True;
end if;
end Set_Static_Handler;
procedure Set_Static_Handler (
Handler : Ada.Interrupts.Parameterless_Handler)
is
type Repr is record
Data : Address;
Code_Address : Address;
end record;
pragma Suppress_Initialization (Repr);
function Cast is
new Ada.Unchecked_Conversion (
Ada.Interrupts.Parameterless_Handler,
Repr);
begin
Set_Static_Handler (Cast (Handler).Code_Address);
end Set_Static_Handler;
function Is_Static_Handler (
Code_Address : Address)
return Boolean
is
Node : constant Node_Access := Find (Code_Address);
begin
return Node = null or else Node.Is_Static;
end Is_Static_Handler;
function Is_Static_Handler (
Handler : Ada.Interrupts.Parameterless_Handler)
return Boolean
is
type Repr is record
Data : Address;
Code_Address : Address;
end record;
pragma Suppress_Initialization (Repr);
function Cast is
new Ada.Unchecked_Conversion (
Ada.Interrupts.Parameterless_Handler,
Repr);
begin
return Is_Static_Handler (Cast (Handler).Code_Address);
end Is_Static_Handler;
end System.Interrupt_Handlers;
|
Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0x48.log_21829_1117.asm | ljhsiun2/medusa | 9 | 174525 | .global s_prepare_buffers
s_prepare_buffers:
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r12
push %r14
push %r15
push %rcx
// Faulty Load
lea addresses_WC+0x6411, %rcx
clflush (%rcx)
nop
xor %r15, %r15
movups (%rcx), %xmm0
vpextrq $0, %xmm0, %r14
lea oracles, %r15
and $0xff, %r14
shlq $12, %r14
mov (%r15,%r14,1), %r14
pop %rcx
pop %r15
pop %r14
pop %r12
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_WC', 'AVXalign': False, 'congruent': 0, 'size': 2, 'same': False, 'NT': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_WC', 'AVXalign': False, 'congruent': 0, 'size': 16, 'same': True, 'NT': False}}
<gen_prepare_buffer>
{'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
*/
|
tests/print_asm.a51 | planet-s/area8051 | 0 | 26283 | <reponame>planet-s/area8051<gh_stars>0
.org 00H
start:
lcall print
ljmp shutdown
print:
mov 0x99, #'H'
mov 0x99, #'e'
mov 0x99, #'l'
mov 0x99, #'l'
mov 0x99, #'o'
mov 0x99, #'\n'
ret
shutdown:
mov dptr, #0xFFFF
mov a, #1
movx @dptr, a
|
Labs/2_simple_calculator/2b_parser_plus_visitor_to_calculate/Calc.g4 | MNXANL/GRAU-CL | 0 | 6543 | <reponame>MNXANL/GRAU-CL<gh_stars>0
grammar Calc;
prog: stat+ ;
// NEED TO INSERT VISIT (# visitname) TO EACH EXPR!!
stat: expr NEWLINE # printExpr
| ID '=' expr NEWLINE # assign
| NEWLINE # blank
;
expr: expr op=FACT # fact
| (op=ADD|op=SUB) expr # signe
| expr (OP=DIV|op=MUL) expr # prod
| expr (op=ADD|op=SUB) expr # plus
| op=ABS '(' expr ')' # abs
| op=MAX '(' expr_list ')' # max
| op=SUM '(' expr_list? ')' # sum
| INT # int
| ID # id
;
expr_list: expr (COMMA expr)*
;
COMMA: ',';
ABS : 'abs';
MAX : 'max';
MIN : 'min';
SUM : 'sum';
PROD: 'prod';
FACT: '!';
DIV: '/';
MUL: '*';
SUB: '-';
ADD: '+';
ID : [a-zA-Z]+ ; // match identifiers
INT : [0-9]+ ; // match integers
NEWLINE:'\r'? '\n' ; // return newlines to parser (is end-statement signal)
WS : [ \t]+ -> skip ; // toss out whitespace
|
src/boites.adb | SKNZ/BoiteMaker | 0 | 4112 | -- Ada packages
with ada.command_line;
use ada.command_line;
with ada.exceptions;
use ada.exceptions;
with ada.text_io;
use ada.text_io;
-- BoiteMaker packages
with commandline_args;
use commandline_args;
with box_info;
use box_info;
with box_parts;
use box_parts;
with svg;
use svg;
with text_file;
use text_file;
with logger;
use logger;
with help;
use help;
procedure boites is
box_info : box_info_t;
box_parts : box_parts_t;
begin
-- Lecture des arguments de la ligne de commande
commandline_args.initialize;
logger.initialize(get_show_debug, get_log_file);
debug("BoiteMaker started");
if get_show_help then
show_help;
end if;
-- Construction de l'objet portant les informations de la boîte
box_info := initialize_box(get_t, get_w, get_l, get_h, get_q, get_b);
-- Vérification de la cohérence des informations
validate_box_measurements(box_info);
-- Obtention des différens morceaux de la boîte
box_parts := get_parts(box_info);
-- Trop long, log trop verbeux
-- Potentiellement pertinent
-- debug(to_string(box_parts));
-- Export de la boîte générée
declare
svg : constant string := get_svg(box_parts, get_border_color, get_fill_color, get_pattern);
begin
-- Ecriture du fichier svg
write_string_to_file(get_f, svg);
end;
logger.close;
destroy(box_parts);
exception
-- Argument manquant
when e: argument_missing =>
debug("argument_missing raised: " & exception_message(e));
put_line("Un argument est manquant: "
& exception_message(e));
new_line;
show_help;
-- Indication au shell d'un status d'erreur
set_exit_status(1);
-- Argument invalide
when e: invalid_args =>
debug("argument_missing raised: " & exception_message(e));
put_line("Vos argument ne respectaient pas la contrainte suivante: "
& exception_message(e));
new_line;
show_help;
-- Indication au shell d'un status d'erreur
set_exit_status(2);
end;
-- TU halfbox
-- halfbox : halfbox_t;
--
-- halfbox := get_halfbox(get_w, get_l, get_h, get_t, get_q);
-- put(to_string(halfbox));
-- new_line;
--
-- TU args
-- Vérifier que les exceptions soient bien levées
-- TU liste
--
-- function int_to_str(x : integer) return string is
-- begin
-- return integer'image(x);
-- end;
-- list : node_ptr := null;
-- node2 : node_ptr := null;
--
-- -- test génériques
-- package int_list is new generic_linked_list(integer);
-- use int_list;
-- box := initialize_box(get_t, get_w, get_l, get_h, get_q, get_b);
-- put_line(to_string(box));
--
-- list := create(10);
-- put_line(boolean'image(has_next(list)));
-- put(elem(list));
-- new_line;
--
-- node2 := add_after(list, 20);
-- put_line(boolean'image(has_next(list)));
-- put_line(boolean'image(has_next(node2)));
-- put(elem(node2));
-- new_line;
-- put(to_string(list, int_to_str'access));
-- new_line;
--
-- remove_next(list);
-- put_line(boolean'image(has_next(list)));
-- put(elem(list));
-- new_line;
--
-- destroy(list);
--
-- put_line(boolean'image(list = null));
|
test/date/test_date.ads | skill-lang/skillAdaTestSuite | 1 | 10205 | package Test_Date is
end Test_Date;
|
test/memory.asm | hqythu/MIPS-CPU | 3 | 91768 | START:
LI R1 0X80
SLL R1 R1 0X00
LI R2 0XBF
SLL R2 R2 0X00
MFPC R7
ADDIU R7 0X02
B TESTR
NOP
LW R2 R3 0X00
SW R1 R3 0X00
NOP
LW R1 R3 0X00
ADDIU R3 0X01
MFPC R7
ADDIU R7 0X02
B TESTW
NOP
SW R2 R3 0X00
B START
NOP
;测试8251是否能写
TESTW:
LI R6 0x00BF
SLL R6 R6 0x0000
ADDIU R6 0x0001
LW R6 R0 0x0000
LI R6 0x0001
AND R0 R6
BEQZ R0 TESTW ;BF01&1=0 则等待
NOP
JR R7
NOP
;测试8251是否能读
TESTR:
LI R6 0x00BF
SLL R6 R6 0x0000
ADDIU R6 0x0001
LW R6 R0 0x0000
LI R6 0x0002
AND R0 R6
BEQZ R0 TESTR ;BF01&2=0 则等待
NOP
JR R7
|
libsrc/_DEVELOPMENT/alloc/obstack/c/sccz80/obstack_int_grow_fast_callee.asm | meesokim/z88dk | 0 | 18478 | <filename>libsrc/_DEVELOPMENT/alloc/obstack/c/sccz80/obstack_int_grow_fast_callee.asm
; ===============================================================
; Dec 2013
; ===============================================================
;
; void *obstack_int_grow_fast(struct obstack *ob, int data)
;
; Append int to the growing object, no bounds check is made.
;
; ===============================================================
SECTION code_alloc_obstack
PUBLIC obstack_int_grow_fast_callee
obstack_int_grow_fast_callee:
pop hl
pop bc
ex (sp),hl
INCLUDE "alloc/obstack/z80/asm_obstack_int_grow_fast.asm"
|
programs/oeis/144/A144478.asm | neoneye/loda | 22 | 177297 | <reponame>neoneye/loda<filename>programs/oeis/144/A144478.asm<gh_stars>10-100
; A144478: Period 9: repeat 1,0,5,7,6,2,4,3,8.
; 1,0,5,7,6,2,4,3,8,1,0,5,7,6,2,4,3,8,1,0,5,7,6,2,4,3,8,1,0,5,7,6,2,4,3,8,1,0,5,7,6,2,4,3,8,1,0,5,7,6,2,4,3,8
sub $0,1
mul $0,3
add $0,2
bin $0,4
mod $0,9
|
programs/oeis/013/A013739.asm | neoneye/loda | 22 | 161067 | ; A013739: a(n) = 6^(3*n + 2).
; 36,7776,1679616,362797056,78364164096,16926659444736,3656158440062976,789730223053602816,170581728179578208256,36845653286788892983296,7958661109946400884391936,1719070799748422591028658176,371319292745659279662190166016,80204967233062404407033075859456,17324272922341479351919144385642496
mov $1,216
pow $1,$0
mul $1,36
mov $0,$1
|
scripts/safarizoneresthouse2.asm | adhi-thirumala/EvoYellow | 16 | 168831 | SafariZoneRestHouse2Script:
call EnableAutoTextBoxDrawing
ret
SafariZoneRestHouse2TextPointers:
dw SafariZoneRestHouse2Text1
dw SafariZoneRestHouse2Text2
dw SafariZoneRestHouse2Text3
SafariZoneRestHouse2Text1:
TX_FAR _SafariZoneRestHouse2Text1
db "@"
SafariZoneRestHouse2Text2:
TX_FAR _SafariZoneRestHouse2Text2
db "@"
SafariZoneRestHouse2Text3:
TX_FAR _SafariZoneRestHouse2Text3
db "@"
|
Numeral/Natural/Relation/Order/Proofs.agda | Lolirofle/stuff-in-agda | 6 | 14543 | module Numeral.Natural.Relation.Order.Proofs where
import Lvl
open import Data.Tuple as Tuple using (_⨯_ ; _,_)
open import Functional
open import Logic
open import Logic.Propositional
open import Logic.Propositional.Theorems
open import Logic.Predicate
open import Numeral.Natural
open import Numeral.Natural.Oper
open import Numeral.Natural.Oper.Proofs
open import Numeral.Natural.Induction
open import Numeral.Natural.Relation.Order
open import Relator.Equals
open import Relator.Equals.Proofs
open import Structure.Relator
import Structure.Relator.Names as Names
open import Structure.Function
open import Structure.Function.Domain
open import Structure.Operator.Properties
open import Structure.Relator.Ordering
open import Structure.Relator.Properties
open import Structure.Relator.Properties.Proofs
open import Syntax.Transitivity
open import Type.Properties.MereProposition
open import Type
-- TODO: A method for pattern matching: https://stackoverflow.com/questions/20682013/agda-why-am-i-unable-to-pattern-match-on-refl
instance
[≤]-succ-injectivity : ∀{x y} → Injective(succ{x}{y})
Injective.proof [≤]-succ-injectivity [≡]-intro = [≡]-intro
instance
[≤]-mereProposition : ∀{x y} → MereProposition(x ≤ y)
MereProposition.uniqueness [≤]-mereProposition {min} {min} = [≡]-intro
MereProposition.uniqueness [≤]-mereProposition {succ x} {succ y} = congruence₁(succ) (MereProposition.uniqueness [≤]-mereProposition {x}{y})
instance
[≤]-minimum = \{y} → _≤_.min {y}
[≤]-with-[𝐒] = \{x}{y} ⦃ xy ⦄ → _≤_.succ {x}{y} xy
[<]-minimum = \{y} → succ([≤]-minimum {y})
[≡]-to-[≤] : ∀{x y : ℕ} → (x ≡ y) → (x ≤ y)
[≡]-to-[≤] {𝟎} {_} _ = [≤]-minimum
[≡]-to-[≤] {𝐒(x)}{𝐒(y)} [≡]-intro = succ([≡]-to-[≤] {x}{y} [≡]-intro)
[≡]-to-[≥] : ∀{x y : ℕ} → (x ≡ y) → (x ≥ y)
[≡]-to-[≥] = [≡]-to-[≤] ∘ symmetry(_≡_)
[≰]-to-[≢] : ∀{x y : ℕ} → (x ≰ y) → (x ≢ y)
[≰]-to-[≢] = contrapositiveᵣ [≡]-to-[≤]
[≱]-to-[≢] : ∀{x y : ℕ} → (x ≱ y) → (x ≢ y)
[≱]-to-[≢] = contrapositiveᵣ [≡]-to-[≥]
[≤][0]ᵣ : ∀{x : ℕ} → (x ≤ 0) → (x ≡ 0)
[≤][0]ᵣ {𝟎} (_) = [≡]-intro
[≤][0]ᵣ {𝐒(_)} ()
[≤][0]ᵣ-negation : ∀{x : ℕ} → (𝐒(x) ≰ 0)
[≤][0]ᵣ-negation ()
[≤]-successor : ∀{x y : ℕ} → (x ≤ y) → (x ≤ 𝐒(y))
[≤]-successor {𝟎} {_} (_) = [≤]-minimum
[≤]-successor {𝐒(x)}{𝟎} ()
[≤]-successor {𝐒(x)}{𝐒(y)} (succ proof) = succ([≤]-successor {x}{y} (proof))
[≤]-predecessor : ∀{x y : ℕ} → (𝐒(x) ≤ y) → (x ≤ y)
[≤]-predecessor {x} {𝟎} ()
[≤]-predecessor {𝟎} {𝐒(y)} (_) = [≤]-minimum
[≤]-predecessor {𝐒(x)}{𝐒(y)} (succ proof) = succ([≤]-predecessor {x}{y} (proof))
[≤]-without-[𝐒] : ∀{x y : ℕ} → (𝐒(x) ≤ 𝐒(y)) → (x ≤ y)
[≤]-without-[𝐒] (succ proof) = proof
[≤][𝐒]ₗ : ∀{x : ℕ} → ¬(𝐒(x) ≤ x)
[≤][𝐒]ₗ {𝟎} (1≤0) = [≤][0]ᵣ-negation{0}(1≤0)
[≤][𝐒]ₗ {𝐒(n)} (SSn≤Sn) = [≤][𝐒]ₗ {n} ([≤]-without-[𝐒] {𝐒(n)}{n} (SSn≤Sn))
instance
[≤]-reflexivity : Reflexivity (_≤_)
Reflexivity.proof([≤]-reflexivity) = [≡]-to-[≤] [≡]-intro
instance
[≤]-transitivity : Transitivity (_≤_)
Transitivity.proof([≤]-transitivity) = proof where
proof : Names.Transitivity (_≤_)
proof {𝟎} {_} {_} (_)(_) = [≤]-minimum
proof {𝐒(a)}{𝐒(b)}{𝐒(c)} (succ proofₗ) (succ proofᵣ ) =
succ(proof {a}{b}{c} (proofₗ) (proofᵣ))
instance
[≤]-antisymmetry : Antisymmetry (_≤_) (_≡_)
Antisymmetry.proof([≤]-antisymmetry) = proof where
proof : Names.Antisymmetry (_≤_) (_≡_)
proof {𝟎} {𝟎} (_) (_) = [≡]-intro
proof {𝐒(_)} {𝟎} ()
proof {𝟎} {𝐒(_)} (_) ()
proof {𝐒(a)} {𝐒(b)} (succ proofₗ) (succ proofᵣ) =
[≡]-with(𝐒) (proof {a}{b} proofₗ proofᵣ)
instance
[≤]-totality : ConverseTotal(_≤_)
ConverseTotal.proof([≤]-totality) = proof where
proof : Names.ConverseTotal(_≤_)
proof {𝟎} {𝟎} = [∨]-introₗ ([≡]-to-[≤] [≡]-intro)
proof {𝐒(a)}{𝟎} = [∨]-introᵣ ([≤]-minimum)
proof {𝟎} {𝐒(b)} = [∨]-introₗ ([≤]-minimum)
proof {𝐒(a)}{𝐒(b)} = [∨]-elim ([∨]-introₗ ∘ (proof ↦ [≤]-with-[𝐒] {a}{b} ⦃ proof ⦄)) ([∨]-introᵣ ∘ (proof ↦ [≤]-with-[𝐒] {b}{a} ⦃ proof ⦄)) (proof {a}{b})
instance
[≤]-weakPartialOrder : Weak.PartialOrder (_≤_) (_≡_)
[≤]-weakPartialOrder = record{}
instance
[≤]-weakTotalOrder : Weak.TotalOrder (_≤_) (_≡_)
[≤]-weakTotalOrder = record{}
instance
[≥]-reflexivity : Reflexivity (_≥_)
Reflexivity.proof([≥]-reflexivity) = Reflexivity.proof([≤]-reflexivity)
instance
[≥]-transitivity : Transitivity (_≥_)
Transitivity.proof([≥]-transitivity) = swap(Transitivity.proof([≤]-transitivity))
instance
[≥]-antisymmetry : Antisymmetry (_≥_) (_≡_)
Antisymmetry.proof([≥]-antisymmetry) = swap(Antisymmetry.proof([≤]-antisymmetry))
instance
[≥]-totality : ConverseTotal(_≥_)
ConverseTotal.proof([≥]-totality) = ConverseTotal.proof([≤]-totality)
instance
[≥]-weakPartialOrder : Weak.PartialOrder (_≥_) (_≡_)
[≥]-weakPartialOrder = record{}
instance
[≥]-weakTotalOrder : Weak.TotalOrder (_≥_) (_≡_)
[≥]-weakTotalOrder = record{}
[≥]-to-[≮] : ∀{a b : ℕ} → (a ≮ b) ← (a ≥ b)
[≥]-to-[≮] {a}{b} (b≤a) (𝐒a≤b) = [≤][𝐒]ₗ (transitivity(_≤_) {𝐒(a)}{b}{a} (𝐒a≤b) (b≤a))
[≤]-to-[≯] : ∀{a b : ℕ} → (a ≯ b) ← (a ≤ b)
[≤]-to-[≯] {a}{b} (a≤b) (𝐒b≤a) = [≥]-to-[≮] {b}{a} (a≤b) (𝐒b≤a)
[>]-to-[≰] : ∀{a b : ℕ} → (a ≰ b) ← (a > b)
[>]-to-[≰] {a}{b} (𝐒b≤a) (a≤b) = [≤]-to-[≯] (a≤b) (𝐒b≤a)
[<]-to-[≱] : ∀{a b : ℕ} → (a ≱ b) ← (a < b)
[<]-to-[≱] {a}{b} (𝐒a≤b) (b≤a) = [≥]-to-[≮] (b≤a) (𝐒a≤b)
[<]-to-[≢] : ∀{a b : ℕ} → (a < b) → (a ≢ b)
[<]-to-[≢] = [≱]-to-[≢] ∘ [<]-to-[≱]
[>]-to-[≢] : ∀{a b : ℕ} → (a > b) → (a ≢ b)
[>]-to-[≢] = [≰]-to-[≢] ∘ [>]-to-[≰]
[<][0]ᵣ : ∀{x : ℕ} → (x ≮ 0)
[<][0]ᵣ = [≤][0]ᵣ-negation
instance
[<]-irreflexivity : Irreflexivity (_<_)
Irreflexivity.proof([<]-irreflexivity) = [≤][𝐒]ₗ
instance
[<]-transitivity : Transitivity (_<_)
Transitivity.proof([<]-transitivity) {x}{y}{z} (l) (r) = Transitivity.proof([≤]-transitivity) {𝐒(x)} {𝐒(y)} {z} ([≤]-successor (l)) (r)
instance
[<]-asymmetry : Asymmetry (_<_)
Asymmetry.proof([<]-asymmetry) (l) (r) = Irreflexivity.proof([<]-irreflexivity) (Transitivity.proof([<]-transitivity) (l) (r))
instance
[<]-converseTrichotomy : ConverseTrichotomy(_<_)(_≡_)
ConverseTrichotomy.proof [<]-converseTrichotomy = p where
p : Names.ConverseTrichotomy(_<_)(_≡_)
p {𝟎} {𝟎} = [∨]-introₗ ([∨]-introᵣ [≡]-intro)
p {𝟎} {𝐒 y} = [∨]-introₗ ([∨]-introₗ [≤]-with-[𝐒])
p {𝐒 x} {𝟎} = [∨]-introᵣ [≤]-with-[𝐒]
p {𝐒 x} {𝐒 y} with p {x} {y}
... | [∨]-introₗ ([∨]-introₗ (succ xy)) = [∨]-introₗ ([∨]-introₗ (succ (succ xy)))
... | [∨]-introₗ ([∨]-introᵣ [≡]-intro) = [∨]-introₗ ([∨]-introᵣ [≡]-intro)
... | [∨]-introᵣ (succ xy) = [∨]-introᵣ (succ (succ xy))
instance
[<]-strictPartialOrder : Strict.PartialOrder (_<_)
[<]-strictPartialOrder = record{}
instance
[<]-strictTotalOrder : Strict.TotalOrder (_<_)(_≡_)
[<]-strictTotalOrder = record{}
instance
[>]-irreflexivity : Irreflexivity (_>_)
Irreflexivity.proof([>]-irreflexivity) = Irreflexivity.proof([<]-irreflexivity)
instance
[>]-transitivity : Transitivity (_>_)
Transitivity.proof([>]-transitivity) = swap(Transitivity.proof([<]-transitivity))
instance
[>]-asymmetry : Asymmetry (_>_)
Asymmetry.proof([>]-asymmetry) = swap(Asymmetry.proof([<]-asymmetry))
instance
[>]-strictOrder : Strict.PartialOrder (_>_)
[>]-strictOrder = record{}
[<]-of-[𝐒] : ∀{x : ℕ} → (x < 𝐒(x))
[<]-of-[𝐒] = reflexivity(_≤_)
[<]-of-[𝟎][𝐒] : ∀{x : ℕ} → (𝟎 < 𝐒(x))
[<]-of-[𝟎][𝐒] {𝟎} = [<]-of-[𝐒]
[<]-of-[𝟎][𝐒] {𝐒 x} = succ([≤]-minimum)
instance
[≤]-of-[𝐒] : ∀{x : ℕ} → (x ≤ 𝐒(x))
[≤]-of-[𝐒] = [≤]-successor(reflexivity(_≤_))
[<][≢]-equivalence : ∀{x} → (x > 0) ↔ (x ≢ 0)
[<][≢]-equivalence {x} = [↔]-intro (l{x}) (r{x}) where
l : ∀{x} → (x > 0) ← (x ≢ 0)
l{𝟎} (x≢𝟎) = [⊥]-elim((x≢𝟎)([≡]-intro))
l{𝐒(x)} (𝐒x≢𝟎) = succ([≤]-minimum)
r : ∀{x} → (x > 0) → (x ≢ 0)
r{𝟎} ()
r{𝐒(x)} (𝟏≤𝐒x) (𝐒x≡𝟎) with [≡]-substitutionᵣ (𝐒x≡𝟎) {expr ↦ 1 ≤ expr} (𝟏≤𝐒x)
... | ()
[≤]-to-[<][≡] : ∀{a b : ℕ} → (a ≤ b) → (a < b)∨(a ≡ b)
[≤]-to-[<][≡] {𝟎} {𝟎} ([≤]-minimum) = [∨]-introᵣ([≡]-intro)
[≤]-to-[<][≡] {𝟎} {𝐒(b)} ([≤]-minimum) = [∨]-introₗ([<]-minimum)
[≤]-to-[<][≡] {𝐒(a)}{𝐒(b)} (succ(a≤b)) with [≤]-to-[<][≡] {a}{b} (a≤b)
... | [∨]-introₗ(a<b) = [∨]-introₗ(succ(a<b))
... | [∨]-introᵣ(a≡b) = [∨]-introᵣ([≡]-with(𝐒) (a≡b))
[≮][≢]-to-[≰] : ∀{a b : ℕ} → (a ≮ b) → (a ≢ b) → (a ≰ b)
[≮][≢]-to-[≰] (a≮b) (a≢b) (a≤b) with [≤]-to-[<][≡] (a≤b)
... | [∨]-introₗ (a<b) = a≮b a<b
... | [∨]-introᵣ (a≡b) = a≢b a≡b
[<][≡]-to-[≤] : ∀{a b : ℕ} → (a < b)∨(a ≡ b) → (a ≤ b)
[<][≡]-to-[≤] {a} {.a} ([∨]-introᵣ([≡]-intro)) = [≡]-to-[≤] ([≡]-intro)
[<][≡]-to-[≤] {a} {b} ([∨]-introₗ(a<b)) = [≤]-predecessor (a<b)
instance
[<][≤]-sub : (_<_) ⊆₂ (_≤_)
[<][≤]-sub = intro [≤]-predecessor
instance
[>][≥]-sub : (_>_) ⊆₂ (_≥_)
[>][≥]-sub = intro(sub₂(_<_)(_≤_))
[≰]-to-[≮] : ∀{x y : ℕ} → (x ≰ y) → (x ≮ y)
[≰]-to-[≮] = contrapositiveᵣ (sub₂(_<_)(_≤_))
[≥]-to-[>][≡] : ∀{a b : ℕ} → (a ≥ b) → (a > b)∨(a ≡ b)
[≥]-to-[>][≡] {a}{b} (proof) with [≤]-to-[<][≡] {b}{a} (proof)
... | [∨]-introₗ(a<b) = [∨]-introₗ(a<b)
... | [∨]-introᵣ(b≡a) = [∨]-introᵣ(symmetry(_≡_) (b≡a))
[<]-trichotomy : ∀{x y} → (x < y) ∨ (x ≡ y) ∨ (x > y)
[<]-trichotomy {x}{y} with converseTotal(_≤_) ⦃ [≤]-totality ⦄
[<]-trichotomy {x}{y} | [∨]-introₗ x≤y with [≤]-to-[<][≡] {x}{y} x≤y
[<]-trichotomy {x}{y} | [∨]-introₗ x≤y | [∨]-introₗ x<y = [∨]-introₗ ([∨]-introₗ x<y)
[<]-trichotomy {x}{y} | [∨]-introₗ x≤y | [∨]-introᵣ x≡y = [∨]-introₗ ([∨]-introᵣ x≡y)
[<]-trichotomy {x}{y} | [∨]-introᵣ y≤x with [≥]-to-[>][≡] {x}{y} y≤x
[<]-trichotomy {x}{y} | [∨]-introᵣ y≤x | [∨]-introₗ y<x = [∨]-introᵣ y<x
[<]-trichotomy {x}{y} | [∨]-introᵣ y≤x | [∨]-introᵣ y≡x = [∨]-introₗ ([∨]-introᵣ y≡x)
[≤][>]-dichotomy : ∀{x y} → (x ≤ y) ∨ (x > y)
[≤][>]-dichotomy {x}{y} with [<]-trichotomy {x}{y}
[≤][>]-dichotomy {x} {y} | [∨]-introₗ ([∨]-introₗ x<y) = [∨]-introₗ(sub₂(_<_)(_≤_) x<y)
[≤][>]-dichotomy {x} {y} | [∨]-introₗ ([∨]-introᵣ x≡y) = [∨]-introₗ(sub₂(_≡_)(_≤_) x≡y)
[≤][>]-dichotomy {x} {y} | [∨]-introᵣ x>y = [∨]-introᵣ(x>y)
[<][≥]-dichotomy : ∀{x y} → (x < y) ∨ (x ≥ y)
[<][≥]-dichotomy {x}{y} = [∨]-symmetry([≤][>]-dichotomy {y}{x})
[≯][≢]-to-[≱] : ∀{a b : ℕ} → (a ≯ b) → (a ≢ b) → (a ≱ b)
[≯][≢]-to-[≱] (a≯b) (a≢b) (a≥b) with [≥]-to-[>][≡] (a≥b)
... | [∨]-introₗ (a>b) = a≯b a>b
... | [∨]-introᵣ (a≡b) = a≢b a≡b
[>][≡]-to-[≥] : ∀{a b : ℕ} → (a > b)∨(a ≡ b) → (a ≥ b)
[>][≡]-to-[≥] {a}{b} ([∨]-introₗ(a<b)) = [<][≡]-to-[≤] {b}{a} ([∨]-introₗ(a<b))
[>][≡]-to-[≥] {a}{b} ([∨]-introᵣ(b≡a)) = [<][≡]-to-[≤] {b}{a} ([∨]-introᵣ(symmetry(_≡_)(b≡a)))
[>]-to-[≥] : ∀{a b : ℕ} → (a > b) → (a ≥ b)
[>]-to-[≥] {a}{b} (a<b) = [<][≡]-to-[≤] {b}{a} ([∨]-introₗ(a<b))
[≱]-to-[≯] : ∀{x y : ℕ} → (x ≱ y) → (x ≯ y)
[≱]-to-[≯] = contrapositiveᵣ [>]-to-[≥]
[≮][≯]-to-[≡] : ∀{a b : ℕ} → (a ≮ b) → (a ≯ b) → (a ≡ b)
[≮][≯]-to-[≡] {a}{b} (a≮b) (a≯b) with [<]-trichotomy {a}{b}
... | [∨]-introₗ ([∨]-introₗ a<b) = [⊥]-elim(a≮b a<b)
... | [∨]-introₗ ([∨]-introᵣ a≡b) = a≡b
... | [∨]-introᵣ b<a = [⊥]-elim(a≯b b<a)
[≮][≢][≯]-not : ∀{a b : ℕ} → (a ≮ b) → (a ≢ b) → (a ≯ b) → ⊥
[≮][≢][≯]-not {a}{b} (a≮b) (a≢b) (a≯b) with [<]-trichotomy {a}{b}
... | [∨]-introₗ ([∨]-introₗ a<b) = a≮b a<b
... | [∨]-introₗ ([∨]-introᵣ a≡b) = a≢b a≡b
... | [∨]-introᵣ b<a = a≯b b<a
[≰][≯]-not : ∀{a b : ℕ} → (a ≰ b) → (a ≯ b) → ⊥
[≰][≯]-not {a}{b} (a≰b) (a≯b) = [≮][≢][≯]-not ([≰]-to-[≮] a≰b) ([≰]-to-[≢] a≰b) (a≯b)
[≮][≱]-not : ∀{a b : ℕ} → (a ≮ b) → (a ≱ b) → ⊥
[≮][≱]-not {a}{b} (a≮b) (a≱b) = [≮][≢][≯]-not (a≮b) ([≱]-to-[≢] a≱b) ([≱]-to-[≯] a≱b)
[<]-non-zero-existence : ∀{a b : ℕ} → (a < b) → (𝟎 < b)
[<]-non-zero-existence (succ _) = [<]-of-[𝟎][𝐒]
[≢]-to-[<]-of-0ᵣ : ∀{n} → (n ≢ 0) → (0 < n)
[≢]-to-[<]-of-0ᵣ {𝟎} p with () ← p [≡]-intro
[≢]-to-[<]-of-0ᵣ {𝐒 n} p = succ min
[≤][≢]-to-[<] : ∀{a b : ℕ} → (a ≤ b) → (a ≢ b) → (a < b)
[≤][≢]-to-[<] {.𝟎} {b} min ne = [≢]-to-[<]-of-0ᵣ (ne ∘ symmetry(_≡_))
[≤][≢]-to-[<] {.(𝐒 _)} {.(𝐒 _)} (succ lt) ne = succ([≤][≢]-to-[<] lt (ne ∘ congruence₁(𝐒)))
instance
[≤][≡]-subtransitivityₗ : Subtransitivityₗ(_≤_)(_≡_)
[≤][≡]-subtransitivityₗ = subrelation-transitivity-to-subtransitivityₗ
instance
[≤][≡]-subtransitivityᵣ : Subtransitivityᵣ(_≤_)(_≡_)
[≤][≡]-subtransitivityᵣ = subrelation-transitivity-to-subtransitivityᵣ
instance
[≥][≡]-subtransitivityₗ : Subtransitivityₗ(_≥_)(_≡_)
[≥][≡]-subtransitivityₗ = subrelation-transitivity-to-subtransitivityₗ
instance
[≥][≡]-subtransitivityᵣ : Subtransitivityᵣ(_≥_)(_≡_)
[≥][≡]-subtransitivityᵣ = subrelation-transitivity-to-subtransitivityᵣ
instance
[<][≤]-subtransitivityₗ : Subtransitivityₗ(_≤_)(_<_)
[<][≤]-subtransitivityₗ = subrelation-transitivity-to-subtransitivityₗ
instance
[<][≤]-subtransitivityᵣ : Subtransitivityᵣ(_≤_)(_<_)
[<][≤]-subtransitivityᵣ = subrelation-transitivity-to-subtransitivityᵣ
instance
[>][≥]-subtransitivityₗ : Subtransitivityₗ(_≥_)(_>_)
[>][≥]-subtransitivityₗ = subrelation-transitivity-to-subtransitivityₗ
instance
[>][≥]-subtransitivityᵣ : Subtransitivityᵣ(_≥_)(_>_)
[>][≥]-subtransitivityᵣ = subrelation-transitivity-to-subtransitivityᵣ
instance
[>][≡]-subtransitivityₗ : Subtransitivityₗ(_>_)(_≡_)
Subtransitivityₗ.proof [>][≡]-subtransitivityₗ = substitute₂ₗ(_>_) ∘ symmetry(_≡_)
instance
[>][≡]-subtransitivityᵣ : Subtransitivityᵣ(_>_)(_≡_)
Subtransitivityᵣ.proof [>][≡]-subtransitivityᵣ = swap(substitute₂ᵣ(_>_))
instance
[<][≡]-subtransitivityₗ : Subtransitivityₗ(_<_)(_≡_)
Subtransitivityₗ.proof [<][≡]-subtransitivityₗ = substitute₂ₗ(_<_) ∘ symmetry(_≡_)
instance
[<][≡]-subtransitivityᵣ : Subtransitivityᵣ(_<_)(_≡_)
Subtransitivityᵣ.proof [<][≡]-subtransitivityᵣ = swap(substitute₂ᵣ(_<_))
|
Prelude/Bool.agda | bbarenblat/B | 1 | 10175 | <reponame>bbarenblat/B<gh_stars>1-10
{- Copyright © 2015 <NAME>
Licensed under the Apache License, Version 2.0 (the ‘License’); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed
under the License is distributed on an ‘AS IS’ BASIS, WITHOUT WARRANTIES OR
CONDITIONS OF ANY KIND, either express or implied. See the License for the
specific language governing permissions and limitations under the License. -}
module B.Prelude.Bool where
open import B.Prelude.BooleanAlgebra using (BooleanAlgebra)
import Data.Bool
import Data.Bool.Properties
open Data.Bool
using (Bool; if_then_else_; T)
public
instance
BooleanAlgebra-Bool : BooleanAlgebra _ _
BooleanAlgebra-Bool = Data.Bool.Properties.booleanAlgebra
module Bool where
open Data.Bool
using (_xor_)
public
|
programs/oeis/017/A017776.asm | karttu/loda | 1 | 103531 | ; A017776: Binomial coefficients C(60,n).
; 1,60,1770,34220,487635,5461512,50063860,386206920,2558620845,14783142660,75394027566,342700125300,1399358844975,5166863427600,17345898649800,53194089192720,149608375854525,387221678682300,925029565741050,2044802197953900,4191844505805495,7984465725343800
mov $1,60
bin $1,$0
|
test/arch/Hello World.asm | yunxu1019/efront | 1 | 17911 | <filename>test/arch/Hello World.asm
.386
.model flat,stdcall
option casemap:none
include windows.inc
include user32.inc
includelib user32.lib
include kernel32.inc
includelib kernel32.lib
.data
szText db '你好 masm$',0
.code
start:
invoke MessageBoxW,NULL,offset szText,NULL,MB_OK
invoke ExitProcess,NULL
end start
|
oeis/018/A018207.asm | neoneye/loda-programs | 11 | 164388 | ; A018207: Expansion of 1/((1-3x)(1-10x)(1-12x)).
; Submitted by <NAME>
; 1,25,439,6685,94471,1276405,16745119,215226205,2725568791,34135388485,423910350799,5229781276525,64185946519111,784517071831765,9557062002788479,116113315455883645,1407645499737869431,17034603139656230245,205843809104280154159,2484411423536578023565,29955794225294584803751,360898102132101963207925,4345062939870924395183839,52283612421308195252272285,628831920484269650557466071,7560268760096949729280188805,90866082264020538519134053519,1091821558596817887532924005805
add $0,2
lpb $0
sub $0,1
div $1,4
max $2,26
mul $2,12
mul $3,10
add $3,$1
mul $1,12
add $1,$2
lpe
mov $0,$3
div $0,78
|
orka/src/orka/implementation/orka-rendering-buffers-mapped.adb | onox/orka | 52 | 25359 | -- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2017 onox <<EMAIL>>
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.
package body Orka.Rendering.Buffers.Mapped is
overriding
function Length (Object : Mapped_Buffer) return Natural is
(Object.Buffer.Length);
procedure Map
(Object : in out Mapped_Buffer;
Length : Size;
Flags : GL.Objects.Buffers.Access_Bits) is
begin
case Object.Kind is
-- Numeric types
when UByte_Type =>
Pointers.UByte.Map_Range
(Object.Buffer.Buffer, Flags, 0, Length, Object.Pointer_UByte);
when UShort_Type =>
Pointers.UShort.Map_Range
(Object.Buffer.Buffer, Flags, 0, Length, Object.Pointer_UShort);
when UInt_Type =>
Pointers.UInt.Map_Range
(Object.Buffer.Buffer, Flags, 0, Length, Object.Pointer_UInt);
when Byte_Type =>
Pointers.Byte.Map_Range
(Object.Buffer.Buffer, Flags, 0, Length, Object.Pointer_Byte);
when Short_Type =>
Pointers.Short.Map_Range
(Object.Buffer.Buffer, Flags, 0, Length, Object.Pointer_Short);
when Int_Type =>
Pointers.Int.Map_Range
(Object.Buffer.Buffer, Flags, 0, Length, Object.Pointer_Int);
when Half_Type =>
Pointers.Half.Map_Range
(Object.Buffer.Buffer, Flags, 0, Length, Object.Pointer_Half);
when Single_Type =>
Pointers.Single.Map_Range
(Object.Buffer.Buffer, Flags, 0, Length, Object.Pointer_Single);
when Double_Type =>
Pointers.Double.Map_Range
(Object.Buffer.Buffer, Flags, 0, Length, Object.Pointer_Double);
-- Composite types
when Single_Vector_Type =>
Pointers.Single_Vector4.Map_Range
(Object.Buffer.Buffer, Flags, 0, Length, Object.Pointer_SV);
when Double_Vector_Type =>
Pointers.Double_Vector4.Map_Range
(Object.Buffer.Buffer, Flags, 0, Length, Object.Pointer_DV);
when Single_Matrix_Type =>
Pointers.Single_Matrix4.Map_Range
(Object.Buffer.Buffer, Flags, 0, Length, Object.Pointer_SM);
when Double_Matrix_Type =>
Pointers.Double_Matrix4.Map_Range
(Object.Buffer.Buffer, Flags, 0, Length, Object.Pointer_DM);
when Arrays_Command_Type =>
Pointers.Arrays_Command.Map_Range
(Object.Buffer.Buffer, Flags, 0, Length, Object.Pointer_AC);
when Elements_Command_Type =>
Pointers.Elements_Command.Map_Range
(Object.Buffer.Buffer, Flags, 0, Length, Object.Pointer_EC);
when Dispatch_Command_Type =>
Pointers.Dispatch_Command.Map_Range
(Object.Buffer.Buffer, Flags, 0, Length, Object.Pointer_DC);
end case;
end Map;
-----------------------------------------------------------------------------
overriding
procedure Bind
(Object : Mapped_Buffer;
Target : Indexed_Buffer_Target;
Index : Natural)
is
Buffer_Target : access constant GL.Objects.Buffers.Buffer_Target;
Offset : constant Size := Size (Object.Offset);
Length : constant Size := Size (Mapped_Buffer'Class (Object).Length);
begin
case Target is
when Uniform =>
Buffer_Target := GL.Objects.Buffers.Uniform_Buffer'Access;
when Shader_Storage =>
Buffer_Target := GL.Objects.Buffers.Shader_Storage_Buffer'Access;
when Atomic_Counter =>
Buffer_Target := GL.Objects.Buffers.Atomic_Counter_Buffer'Access;
end case;
case Object.Kind is
-- Numeric types
when UByte_Type =>
Pointers.UByte.Bind_Range
(Buffer_Target.all, Object.Buffer.Buffer, Index, Offset, Length);
when UShort_Type =>
Pointers.UShort.Bind_Range
(Buffer_Target.all, Object.Buffer.Buffer, Index, Offset, Length);
when UInt_Type =>
Pointers.UInt.Bind_Range
(Buffer_Target.all, Object.Buffer.Buffer, Index, Offset, Length);
when Byte_Type =>
Pointers.Byte.Bind_Range
(Buffer_Target.all, Object.Buffer.Buffer, Index, Offset, Length);
when Short_Type =>
Pointers.Short.Bind_Range
(Buffer_Target.all, Object.Buffer.Buffer, Index, Offset, Length);
when Int_Type =>
Pointers.Int.Bind_Range
(Buffer_Target.all, Object.Buffer.Buffer, Index, Offset, Length);
when Half_Type =>
Pointers.Half.Bind_Range
(Buffer_Target.all, Object.Buffer.Buffer, Index, Offset, Length);
when Single_Type =>
Pointers.Single.Bind_Range
(Buffer_Target.all, Object.Buffer.Buffer, Index, Offset, Length);
when Double_Type =>
Pointers.Double.Bind_Range
(Buffer_Target.all, Object.Buffer.Buffer, Index, Offset, Length);
-- Composite types
when Single_Vector_Type =>
Pointers.Single_Vector4.Bind_Range
(Buffer_Target.all, Object.Buffer.Buffer, Index, Offset, Length);
when Double_Vector_Type =>
Pointers.Double_Vector4.Bind_Range
(Buffer_Target.all, Object.Buffer.Buffer, Index, Offset, Length);
when Single_Matrix_Type =>
Pointers.Single_Matrix4.Bind_Range
(Buffer_Target.all, Object.Buffer.Buffer, Index, Offset, Length);
when Double_Matrix_Type =>
Pointers.Double_Matrix4.Bind_Range
(Buffer_Target.all, Object.Buffer.Buffer, Index, Offset, Length);
when Arrays_Command_Type =>
Pointers.Arrays_Command.Bind_Range
(Buffer_Target.all, Object.Buffer.Buffer, Index, Offset, Length);
when Elements_Command_Type =>
Pointers.Elements_Command.Bind_Range
(Buffer_Target.all, Object.Buffer.Buffer, Index, Offset, Length);
when Dispatch_Command_Type =>
Pointers.Dispatch_Command.Bind_Range
(Buffer_Target.all, Object.Buffer.Buffer, Index, Offset, Length);
end case;
end Bind;
overriding
procedure Bind (Object : Mapped_Buffer; Target : Buffer_Target) is
begin
case Target is
when Index =>
GL.Objects.Buffers.Element_Array_Buffer.Bind (Object.Buffer.Buffer);
when Dispatch_Indirect =>
GL.Objects.Buffers.Dispatch_Indirect_Buffer.Bind (Object.Buffer.Buffer);
when Draw_Indirect =>
GL.Objects.Buffers.Draw_Indirect_Buffer.Bind (Object.Buffer.Buffer);
when Parameter =>
GL.Objects.Buffers.Parameter_Buffer.Bind (Object.Buffer.Buffer);
when Pixel_Pack =>
GL.Objects.Buffers.Pixel_Pack_Buffer.Bind (Object.Buffer.Buffer);
when Pixel_Unpack =>
GL.Objects.Buffers.Pixel_Unpack_Buffer.Bind (Object.Buffer.Buffer);
when Query =>
GL.Objects.Buffers.Query_Buffer.Bind (Object.Buffer.Buffer);
end case;
end Bind;
-----------------------------------------------------------------------------
procedure Write_Data
(Object : Mapped_Buffer;
Data : UByte_Array;
Offset : Natural := 0) is
begin
Pointers.UByte.Set_Mapped_Data
(Object.Pointer_UByte, Size (Object.Offset + Offset), Data);
end Write_Data;
procedure Write_Data
(Object : Mapped_Buffer;
Data : UShort_Array;
Offset : Natural := 0) is
begin
Pointers.UShort.Set_Mapped_Data
(Object.Pointer_UShort, Size (Object.Offset + Offset), Data);
end Write_Data;
procedure Write_Data
(Object : Mapped_Buffer;
Data : UInt_Array;
Offset : Natural := 0) is
begin
Pointers.UInt.Set_Mapped_Data
(Object.Pointer_UInt, Size (Object.Offset + Offset), Data);
end Write_Data;
procedure Write_Data
(Object : Mapped_Buffer;
Data : Byte_Array;
Offset : Natural := 0) is
begin
Pointers.Byte.Set_Mapped_Data
(Object.Pointer_Byte, Size (Object.Offset + Offset), Data);
end Write_Data;
procedure Write_Data
(Object : Mapped_Buffer;
Data : Short_Array;
Offset : Natural := 0) is
begin
Pointers.Short.Set_Mapped_Data
(Object.Pointer_Short, Size (Object.Offset + Offset), Data);
end Write_Data;
procedure Write_Data
(Object : Mapped_Buffer;
Data : Int_Array;
Offset : Natural := 0) is
begin
Pointers.Int.Set_Mapped_Data
(Object.Pointer_Int, Size (Object.Offset + Offset), Data);
end Write_Data;
procedure Write_Data
(Object : Mapped_Buffer;
Data : Half_Array;
Offset : Natural := 0) is
begin
Pointers.Half.Set_Mapped_Data
(Object.Pointer_Half, Size (Object.Offset + Offset), Data);
end Write_Data;
procedure Write_Data
(Object : Mapped_Buffer;
Data : Single_Array;
Offset : Natural := 0) is
begin
Pointers.Single.Set_Mapped_Data
(Object.Pointer_Single, Size (Object.Offset + Offset), Data);
end Write_Data;
procedure Write_Data
(Object : Mapped_Buffer;
Data : Double_Array;
Offset : Natural := 0) is
begin
Pointers.Double.Set_Mapped_Data
(Object.Pointer_Double, Size (Object.Offset + Offset), Data);
end Write_Data;
-----------------------------------------------------------------------------
procedure Write_Data
(Object : Mapped_Buffer;
Data : Orka.Types.Singles.Vector4_Array;
Offset : Natural := 0) is
begin
Pointers.Single_Vector4.Set_Mapped_Data
(Object.Pointer_SV, Size (Object.Offset + Offset), Data);
end Write_Data;
procedure Write_Data
(Object : Mapped_Buffer;
Data : Orka.Types.Singles.Matrix4_Array;
Offset : Natural := 0) is
begin
Pointers.Single_Matrix4.Set_Mapped_Data
(Object.Pointer_SM, Size (Object.Offset + Offset), Data);
end Write_Data;
procedure Write_Data
(Object : Mapped_Buffer;
Data : Orka.Types.Doubles.Vector4_Array;
Offset : Natural := 0) is
begin
Pointers.Double_Vector4.Set_Mapped_Data
(Object.Pointer_DV, Size (Object.Offset + Offset), Data);
end Write_Data;
procedure Write_Data
(Object : Mapped_Buffer;
Data : Orka.Types.Doubles.Matrix4_Array;
Offset : Natural := 0) is
begin
Pointers.Double_Matrix4.Set_Mapped_Data
(Object.Pointer_DM, Size (Object.Offset + Offset), Data);
end Write_Data;
procedure Write_Data
(Object : Mapped_Buffer;
Data : Indirect.Arrays_Indirect_Command_Array;
Offset : Natural := 0) is
begin
Pointers.Arrays_Command.Set_Mapped_Data
(Object.Pointer_AC, Size (Object.Offset + Offset), Data);
end Write_Data;
procedure Write_Data
(Object : Mapped_Buffer;
Data : Indirect.Elements_Indirect_Command_Array;
Offset : Natural := 0) is
begin
Pointers.Elements_Command.Set_Mapped_Data
(Object.Pointer_EC, Size (Object.Offset + Offset), Data);
end Write_Data;
procedure Write_Data
(Object : Mapped_Buffer;
Data : Indirect.Dispatch_Indirect_Command_Array;
Offset : Natural := 0) is
begin
Pointers.Dispatch_Command.Set_Mapped_Data
(Object.Pointer_DC, Size (Object.Offset + Offset), Data);
end Write_Data;
-----------------------------------------------------------------------------
procedure Write_Data
(Object : Mapped_Buffer;
Value : Orka.Types.Singles.Vector4;
Offset : Natural) is
begin
Pointers.Single_Vector4.Set_Mapped_Data
(Object.Pointer_SV, Size (Object.Offset + Offset), Value);
end Write_Data;
procedure Write_Data
(Object : Mapped_Buffer;
Value : Orka.Types.Singles.Matrix4;
Offset : Natural) is
begin
Pointers.Single_Matrix4.Set_Mapped_Data
(Object.Pointer_SM, Size (Object.Offset + Offset), Value);
end Write_Data;
procedure Write_Data
(Object : Mapped_Buffer;
Value : Orka.Types.Doubles.Vector4;
Offset : Natural) is
begin
Pointers.Double_Vector4.Set_Mapped_Data
(Object.Pointer_DV, Size (Object.Offset + Offset), Value);
end Write_Data;
procedure Write_Data
(Object : Mapped_Buffer;
Value : Orka.Types.Doubles.Matrix4;
Offset : Natural) is
begin
Pointers.Double_Matrix4.Set_Mapped_Data
(Object.Pointer_DM, Size (Object.Offset + Offset), Value);
end Write_Data;
procedure Write_Data
(Object : Mapped_Buffer;
Value : Indirect.Arrays_Indirect_Command;
Offset : Natural) is
begin
Pointers.Arrays_Command.Set_Mapped_Data
(Object.Pointer_AC, Size (Object.Offset + Offset), Value);
end Write_Data;
procedure Write_Data
(Object : Mapped_Buffer;
Value : Indirect.Elements_Indirect_Command;
Offset : Natural) is
begin
Pointers.Elements_Command.Set_Mapped_Data
(Object.Pointer_EC, Size (Object.Offset + Offset), Value);
end Write_Data;
procedure Write_Data
(Object : Mapped_Buffer;
Value : Indirect.Dispatch_Indirect_Command;
Offset : Natural) is
begin
Pointers.Dispatch_Command.Set_Mapped_Data
(Object.Pointer_DC, Size (Object.Offset + Offset), Value);
end Write_Data;
-----------------------------------------------------------------------------
procedure Read_Data
(Object : Mapped_Buffer;
Data : out UByte_Array;
Offset : Natural := 0) is
begin
Data := Pointers.UByte.Get_Mapped_Data
(Object.Pointer_UByte, Size (Object.Offset + Offset), Data'Length);
end Read_Data;
procedure Read_Data
(Object : Mapped_Buffer;
Data : out UShort_Array;
Offset : Natural := 0) is
begin
Data := Pointers.UShort.Get_Mapped_Data
(Object.Pointer_UShort, Size (Object.Offset + Offset), Data'Length);
end Read_Data;
procedure Read_Data
(Object : Mapped_Buffer;
Data : out UInt_Array;
Offset : Natural := 0) is
begin
Data := Pointers.UInt.Get_Mapped_Data
(Object.Pointer_UInt, Size (Object.Offset + Offset), Data'Length);
end Read_Data;
procedure Read_Data
(Object : Mapped_Buffer;
Data : out Byte_Array;
Offset : Natural := 0) is
begin
Data := Pointers.Byte.Get_Mapped_Data
(Object.Pointer_Byte, Size (Object.Offset + Offset), Data'Length);
end Read_Data;
procedure Read_Data
(Object : Mapped_Buffer;
Data : out Short_Array;
Offset : Natural := 0) is
begin
Data := Pointers.Short.Get_Mapped_Data
(Object.Pointer_Short, Size (Object.Offset + Offset), Data'Length);
end Read_Data;
procedure Read_Data
(Object : Mapped_Buffer;
Data : out Int_Array;
Offset : Natural := 0) is
begin
Data := Pointers.Int.Get_Mapped_Data
(Object.Pointer_Int, Size (Object.Offset + Offset), Data'Length);
end Read_Data;
procedure Read_Data
(Object : Mapped_Buffer;
Data : out Half_Array;
Offset : Natural := 0) is
begin
Data := Pointers.Half.Get_Mapped_Data
(Object.Pointer_Half, Size (Object.Offset + Offset), Data'Length);
end Read_Data;
procedure Read_Data
(Object : Mapped_Buffer;
Data : out Single_Array;
Offset : Natural := 0) is
begin
Data := Pointers.Single.Get_Mapped_Data
(Object.Pointer_Single, Size (Object.Offset + Offset), Data'Length);
end Read_Data;
procedure Read_Data
(Object : Mapped_Buffer;
Data : out Double_Array;
Offset : Natural := 0) is
begin
Data := Pointers.Double.Get_Mapped_Data
(Object.Pointer_Double, Size (Object.Offset + Offset), Data'Length);
end Read_Data;
-----------------------------------------------------------------------------
procedure Read_Data
(Object : Mapped_Buffer;
Data : out Orka.Types.Singles.Vector4_Array;
Offset : Natural := 0) is
begin
Data := Pointers.Single_Vector4.Get_Mapped_Data
(Object.Pointer_SV, Size (Object.Offset + Offset), Data'Length);
end Read_Data;
procedure Read_Data
(Object : Mapped_Buffer;
Data : out Orka.Types.Singles.Matrix4_Array;
Offset : Natural := 0) is
begin
Data := Pointers.Single_Matrix4.Get_Mapped_Data
(Object.Pointer_SM, Size (Object.Offset + Offset), Data'Length);
end Read_Data;
procedure Read_Data
(Object : Mapped_Buffer;
Data : out Orka.Types.Doubles.Vector4_Array;
Offset : Natural := 0) is
begin
Data := Pointers.Double_Vector4.Get_Mapped_Data
(Object.Pointer_DV, Size (Object.Offset + Offset), Data'Length);
end Read_Data;
procedure Read_Data
(Object : Mapped_Buffer;
Data : out Orka.Types.Doubles.Matrix4_Array;
Offset : Natural := 0) is
begin
Data := Pointers.Double_Matrix4.Get_Mapped_Data
(Object.Pointer_DM, Size (Object.Offset + Offset), Data'Length);
end Read_Data;
procedure Read_Data
(Object : Mapped_Buffer;
Data : out Indirect.Arrays_Indirect_Command_Array;
Offset : Natural := 0) is
begin
Data := Pointers.Arrays_Command.Get_Mapped_Data
(Object.Pointer_AC, Size (Object.Offset + Offset), Data'Length);
end Read_Data;
procedure Read_Data
(Object : Mapped_Buffer;
Data : out Indirect.Elements_Indirect_Command_Array;
Offset : Natural := 0) is
begin
Data := Pointers.Elements_Command.Get_Mapped_Data
(Object.Pointer_EC, Size (Object.Offset + Offset), Data'Length);
end Read_Data;
procedure Read_Data
(Object : Mapped_Buffer;
Data : out Indirect.Dispatch_Indirect_Command_Array;
Offset : Natural := 0) is
begin
Data := Pointers.Dispatch_Command.Get_Mapped_Data
(Object.Pointer_DC, Size (Object.Offset + Offset), Data'Length);
end Read_Data;
end Orka.Rendering.Buffers.Mapped;
|
programs/oeis/154/A154575.asm | neoneye/loda | 22 | 166331 | ; A154575: a(n) = 2*n^2 + 12*n + 4.
; 18,36,58,84,114,148,186,228,274,324,378,436,498,564,634,708,786,868,954,1044,1138,1236,1338,1444,1554,1668,1786,1908,2034,2164,2298,2436,2578,2724,2874,3028,3186,3348,3514,3684,3858,4036,4218,4404,4594,4788,4986,5188,5394,5604,5818,6036,6258,6484,6714,6948,7186,7428,7674,7924,8178,8436,8698,8964,9234,9508,9786,10068,10354,10644,10938,11236,11538,11844,12154,12468,12786,13108,13434,13764,14098,14436,14778,15124,15474,15828,16186,16548,16914,17284,17658,18036,18418,18804,19194,19588,19986,20388,20794,21204
mov $1,$0
add $1,8
mul $0,$1
mul $0,2
add $0,18
|
middleware/src/filesystem/filesystem-mbr.ads | rocher/Ada_Drivers_Library | 192 | 1510 | ------------------------------------------------------------------------------
-- --
-- Copyright (C) 2015-2017, AdaCore --
-- --
-- Redistribution and use in source and binary forms, with or without --
-- modification, are permitted provided that the following conditions are --
-- met: --
-- 1. Redistributions of source code must retain the above copyright --
-- notice, this list of conditions and the following disclaimer. --
-- 2. Redistributions in binary form must reproduce the above copyright --
-- notice, this list of conditions and the following disclaimer in --
-- the documentation and/or other materials provided with the --
-- distribution. --
-- 3. Neither the name of the copyright holder nor the names of its --
-- contributors may be used to endorse or promote products derived --
-- from this software without specific prior written permission. --
-- --
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS --
-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT --
-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR --
-- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT --
-- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, --
-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT --
-- LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, --
-- DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY --
-- THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT --
-- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE --
-- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --
-- --
------------------------------------------------------------------------------
with Interfaces;
with HAL.Block_Drivers;
with File_IO;
package Filesystem.MBR is
type Master_Boot_Record is private;
type Extended_Boot_Record is private;
type Partition_Number is range 1 .. 4;
type Partition_Type is new Interfaces.Unsigned_8;
function Read
(Controller : HAL.Block_Drivers.Any_Block_Driver;
MBR : out Master_Boot_Record) return File_IO.Status_Code;
function Active (MBR : Master_Boot_Record;
P : Partition_Number) return Boolean;
function Valid (MBR : Master_Boot_Record;
P : Partition_Number) return Boolean;
function Get_Type (MBR : Master_Boot_Record;
P : Partition_Number) return Partition_Type;
function LBA (MBR : Master_Boot_Record;
P : Partition_Number) return Block_Number;
function Sectors (MBR : Master_Boot_Record;
P : Partition_Number) return Interfaces.Unsigned_32;
function Is_Extended
(MBR : Master_Boot_Record;
P : Partition_Number) return Boolean;
function Read_Extended
(Controller : HAL.Block_Drivers.Any_Block_Driver;
MBR : Master_Boot_Record;
P : Partition_Number;
EBR : out Extended_Boot_Record) return File_IO.Status_Code;
function Get_Type (EBR : Extended_Boot_Record) return Partition_Type;
function LBA (EBR : Extended_Boot_Record) return Block_Number;
function Sectors (EBR : Extended_Boot_Record) return Interfaces.Unsigned_32;
function Has_Next (EBR : Extended_Boot_Record) return Boolean;
function Read_Next
(Controller : HAL.Block_Drivers.Any_Block_Driver;
EBR : in out Extended_Boot_Record) return File_IO.Status_Code;
private
type CHS_Address is record
Head : Interfaces.Unsigned_8;
Sector : Interfaces.Unsigned_8;
Cylinder : Interfaces.Unsigned_8;
end record with Size => 24;
for CHS_Address use record
Head at 0 range 0 .. 7;
Sector at 1 range 0 .. 7;
Cylinder at 2 range 0 .. 7;
end record;
type Partition_Entry is record
Status : Interfaces.Unsigned_8;
First_Sector : CHS_Address;
P_Type : Partition_Type;
Last_Sector : CHS_Address;
LBA : Interfaces.Unsigned_32;
Num_Sectors : Interfaces.Unsigned_32;
end record with Size => 16 * 8;
for Partition_Entry use record
Status at 0 range 0 .. 7;
First_Sector at 1 range 0 .. 23;
P_Type at 4 range 0 .. 7;
Last_Sector at 5 range 0 .. 23;
LBA at 8 range 0 .. 31;
Num_Sectors at 12 range 0 .. 31;
end record;
Zeroed_Entry : constant Partition_Entry :=
(Status => 0,
First_Sector => (0, 0, 0),
P_Type => 0,
Last_Sector => (0, 0, 0),
LBA => 0,
Num_Sectors => 0);
type Partition_Array is array (Partition_Number) of Partition_Entry;
type Master_Boot_Record is record
P_Entries : Partition_Array;
Signature : Interfaces.Unsigned_16;
end record with Size => 512 * 8;
for Master_Boot_Record use record
P_Entries at 16#1BE# range 0 .. 4 * 16 * 8 - 1;
Signature at 16#1FE# range 0 .. 15;
end record;
type Extended_Boot_Record is new Master_Boot_Record;
function Is_Extended
(MBR : Master_Boot_Record;
P : Partition_Number) return Boolean
is (Get_Type (MBR, P) = 16#0F#);
end Filesystem.MBR;
|
Parser_Tools/src/interface/text-sets.ads | robdaemon/AdaYaml | 32 | 4520 | <reponame>robdaemon/AdaYaml
with Ada.Containers.Hashed_Sets;
package Text.Sets is new Ada.Containers.Hashed_Sets
(Reference, Hash, Text."=");
|
src/strings/codepage.asm | majioa/fleco | 0 | 27751 | ;[]-----------------------------------------------------------------[]
;| CODEPAGE.ASM -- strings conversion functions |
;[]-----------------------------------------------------------------[]
;
; $Copyright: 2005$
; $Revision: 1.2 $
;
%include 'constant.inc'
PUBLIC @FastString@ConvertTo$qqrul
PUBLIC @FastString@SetCodePage$qqrul
; GLOBAL GetSymbol
; GLOBAL GetRutfSymbol
; GLOBAL CompareSymbol
; GLOBAL ConvertSymbol
PUBLIC GetSymbol_table
PUBLIC ConvertSymbol_table
EXTRN @Memblock@$bctr$qqrrx8Memblock
EXTRN decimal_constant
section _TEXT
;GetSymbol:
;GetRutfSymbol:
;CompareSymbol:
;ConvertSymbol:
;CheckSymbol proc near
; ret
;CheckSymbol endp
GetSymbol8 proc near
;out
;eax: symbol
lodsb
; test al, al
; js
; sub al, '0'
ret
GetSymbol8_8P:
lodsb
ret
GetSymbol8_16:
lodsb
ret
GetSymbol8_Rutf:
lodsb
ret
GetSymbol8P_8:
GetSymbol8P:
GetSymbol8P_16:
GetSymbol8P_Rutf:
lodsb
ret
GetSymbol16 proc near
;out
;eax: symbol
lodsw
; test ax, ax
; js
; sub al, '0'
ret
GetSymbol16_8:
lodsw
ret
GetSymbol16_8P:
lodsw
ret
GetSymbol16_Rutf:
lodsw
ret
GetSymbolRutf proc near
;out
;eax: symbol
lodsb
test al, al
jns GetSymbolRutf_exit
; shl eax, 8
ror eax, 7
lodsb
test al, al
jns GetSymbolRutf_exit1
; shr eax, 16
ror eax, 7
lodsw
ror eax, 18
jmp GetSymbolRutf_exit
GetSymbolRutf_exit1:
rol eax, 7
GetSymbolRutf_exit:
ret
GetSymbolRutf_8:
call GetSymbolRutf
ret
GetSymbolRutf_8P:
call GetSymbolRutf
ret
GetSymbolRutf_16:
call GetSymbolRutf
ret
GetCPOffset proc near
;in
;eax: cp
;in
;ebx: cp offset
test eax, eax
js GetCPOffset_ext
; lea ebx, RussainCodePages
mov ebx, RussainCodePages
jmp GetCPOffset_exit
GetCPOffset_ext:
; lea ebx, ASCIICP
mov ebx, ASCIICP
; lea ebx, RusCP
mov ebx, RusCP
GetCPOffset_exit:
ret
;@FastString@ConvertTo$qqrul:
@FastString@ConvertTo$qqrul proc near
@FastString@ChangeCodePage$qqrul:
;in
;eax: this
;edx: codepage
mov eax, [eax]
or eax, eax
jz @FastString@ConvertTo$qqrui_empty
;simple convert
push esi
push edi
mov esi, eax
mov ecx, [eax - SIZEOF_FASTSTRING + FastString.Length]
lea edi, [eax - SIZEOF_FASTSTRING]
xchg dx, [edi - Locale.CP]
movzx eax, word ptr[edi - Locale.CP]
; movzx eax, word ptr[eax - SIZEOF_FASTSTRING + FastString.CodePage.Page]
; mov word ptr[eax - SIZEOF_FASTSTRING + FastString.CodePage.Page], dx
xchg eax, edx
cmp eax, edx
mov edi, eax
jz @FastString@ConvertTo$qqrui_dontcvt
test ah, dh
js @FastString@ConvertTo$qqrui_utf
call Convert8_8
@FastString@ConvertTo$qqrui_dontcvt:
pop edi
pop esi
@FastString@ConvertTo$qqrui_empty:
ret
@FastString@ConvertTo$qqrui_utf:
test ah, ah
js @FastString@ConvertTo$qqrui_ruft
test ah, 40h
jnz @FastString@ConvertTo$qqrui_uft16
test dh, dh
js @FastString@ConvertTo$qqrui_to_ruft
call Convert8_16
jmp @FastString@ConvertTo$qqrui_dontcvt
@FastString@ConvertTo$qqrui_to_ruft:
call Convert8_8P
jmp @FastString@ConvertTo$qqrui_dontcvt
@FastString@ConvertTo$qqrui_uft16:
test dh, dh
jnz @FastString@ConvertTo$qqrui_utf16_to_ruft
call Convert16_8
jmp @FastString@ConvertTo$qqrui_dontcvt
@FastString@ConvertTo$qqrui_utf16_to_ruft:
call Convert16_8P
jmp @FastString@ConvertTo$qqrui_dontcvt
@FastString@ConvertTo$qqrui_ruft:
test dh, 40h
jnz @FastString@ConvertTo$qqrui_rutf_to_uft16
call Convert8P_8
jmp @FastString@ConvertTo$qqrui_dontcvt
@FastString@ConvertTo$qqrui_rutf_to_uft16:
call Convert8P_16
jmp @FastString@ConvertTo$qqrui_dontcvt
;@FastString@SetCodePage$qqrul:
@FastString@SetCodePage$qqrul proc near
;in
;eax: this
;edx: codepage
mov eax, [eax]
or eax, eax
jz @FastString@SetCodePage$qqrui_empty
mov eax, [eax - SIZEOF_FASTSTRING + FastString.Locale]
mov word ptr[eax + Locale.CP], dx
@FastString@SetCodePage$qqrui_empty:
ret
Convert8_8:
;in
;eax: input codepage
;edx: output codepage
;esi: input string
;edi: output string
;ecx: input count
;out
;esi: new input string
;esi: new output string
;ecx, eax, edx: destroyed
push ebx
push ebp
imul eax, RUSSIAN_CP_COUNT * 4
; shl edx, 2
; lea esi, [RussianConvertTable8_8 + eax*4 + edx*4]
mov ebx, [RussianConvertTable8_8 + edx*4 + eax]
push ebx
xor eax, eax
mov ebp, ecx
Convert8_8_enter:
lodsb
mov ebx, [esp]
movzx ecx, byte ptr[ebx]
Convert8_8_a:
; lodsw
mov dx, [ebx+1]
cmp al, dl
jb Convert8_8_b
cmp al, dh
ja Convert8_8_b
sub al, dl
mov al, [ebx+eax+3]
jmp Convert8_8_next
Convert8_8_b:
sub dh, dl
shr edx, 8
lea ebx, [ebx+edx+3]
loop Convert8_8_a
Convert8_8_next:
stosb
dec ebp
jnz Convert8_8_enter
pop ebx
pop ebp
pop ebx
ret
Convert8_16:
;eax: input codepage
lea esi, [RussianConvertTable8_16 + eax*4]
ret
Convert8_8P:
Convert16_8:
;edx: output codepage
lea esi, [RussianConvertTable16_8 + edx*4]
ret
Convert16_8P:
Convert8P_8:
Convert8P_16:
section _DATA
CpInfo:
CP8 dd RussainCodePages
CPRUFT dd WcharCP
CP16 dd RutfCP
;ASCIICP CPData istruc 0 iend
ASCIICP istruc CPData dd 0 iend
;RusCP CPData istruc 4 iend
RusCP istruc CPData 4 iend
RussainCodePages:
Cp866 istruc CPData dd 0 iend
Cp1251 istruc CPData dd 0 iend
Mac istruc CPData dd 0 iend
Koi8r istruc CPData dd 0 iend
Cp8859_5 istruc CPData dd 0 iend
Cp10007 istruc CPData dd 0 iend
WcharCP istruc CPData dd 8 iend
RutfCP istruc CPData dd 0ch iend
RussianConvertTable8_8:
dd 0, Cp866_Cp1251_tbl, Cp866_Mac_tbl, Cp866_Koi8r_tbl, Cp866_Mac_tbl, Cp866_Cp8859_5_tbl
dd Cp1251_Cp866_tbl, 0, Cp1251_Cp10007_tbl, Cp1251_Koi8r_tbl, Cp1251_Mac_tbl, Cp1251_Cp8859_5_tbl
dd Cp10007_Cp866_tbl, Cp10007_Cp1251_tbl, 0, Cp10007_Koi8r_tbl, 0, Cp10007_Cp8859_5_tbl
dd Koi8r_Cp866_tbl, Koi8r_Cp1251_tbl, Koi8r_Cp10007_tbl, 0, Koi8r_Mac_tbl, Koi8r_Cp8859_5_tbl
dd Mac_Cp866_tbl, Mac_Cp1251_tbl, 0, Cp10007_Koi8r_tbl, 0, Cp10007_Cp8859_5_tbl
dd Cp8859_5_Cp866_tbl, Cp8859_5_Cp1251_tbl, Cp8859_5_Mac_tbl, Cp8859_5_Koi8r_tbl, Cp8859_5_Mac_tbl, 0
RussianConvertTable8_16:
dd Cp866_Utf16_tbl, Cp1251_Utf16_tbl, Cp10007_Utf16_tbl, Koi8r_Utf16_tbl, Mac_Utf16_tbl, Cp8859_5_Utf16_tbl
RussianConvertTable8_8P:
; dd Cp866_Cutf_tbl, Cp1251_Cutf_tbl, Cp10007_Cutf_tbl, Koi8r_Cutf_tbl, Mac_Cutf_tbl, Cp8859_5_Cutf_tbl
RussianConvertTable16_8:
dd Utf16_Cp866_tbl, Utf16_Cp1251_tbl, Utf16_Cp10007_tbl, Utf16_Koi8r_tbl, Utf16_Mac_tbl, Utf16_Cp8859_5_tbl
RussianConvertTable16_8P:
; dd Utf16_Cutf_tbl
RussianConvertTable8P_8:
; dd Cutf_Cp866_tbl, Cutf_Cp1251_tbl, Cutf_Cp10007_tbl, Cutf_Koi8r_tbl, Cutf_Mac_tbl, Cutf_Cp8859_5_tbl
RussianConvertTable8P_16:
; dd Cutf_Utf16_tbl
;0- iend 1
Cp866_Cp1251_tbl:
db 5h
db 80h, 0afh, 0c0h, 0c1h, 0c2h, 0c3h, 0c4h, 0c5h, 0c6h, 0c7h, 0c8h, 0c9h, 0cah, 0cbh, 0cch, 0cdh, 0ceh, 0cfh, 0d0h, 0d1h, 0d2h, 0d3h, 0d4h, 0d5h, 0d6h, 0d7h, 0d8h, 0d9h, 0dah, 0dbh, 0dch, 0ddh, 0deh, 0dfh, 0e0h, 0e1h, 0e2h, 0e3h, 0e4h, 0e5h, 0e6h, 0e7h, 0e8h, 0e9h, 0eah, 0ebh, 0ech, 0edh, 0eeh, 0efh
db 0e0h, 0f8h, 0f0h, 0f1h, 0f2h, 0f3h, 0f4h, 0f5h, 0f6h, 0f7h, 0f8h, 0f9h, 0fah, 0fbh, 0fch, 0fdh, 0feh, 0ffh, 0a8h, 0b8h, 0aah, 0bah, 0afh, 0bfh, 0a1h, 0a2h, 0b0h
db 0fah, 0fah, 0b7h
db 0fch, 0fdh, 0b9h, 0a4h
db 0ffh, 0ffh, 0a0h
;0- iend 2+4
Cp866_Mac_tbl:
db 4h
db 0a0h, 0afh, 0e0h, 0e1h, 0e2h, 0e3h, 0e4h, 0e5h, 0e6h, 0e7h, 0e8h, 0e9h, 0eah, 0ebh, 0ech, 0edh, 0eeh, 0efh
db 0e0h, 0f8h, 0f0h, 0f1h, 0f2h, 0f3h, 0f4h, 0f5h, 0f6h, 0f7h, 0f8h, 0f9h, 0fah, 0fbh, 0fch, 0fdh, 0feh, 0dfh, 0ddh, 0deh, 0b8h, 0b9h, 0bah, 0bbh, 0d8h, 0d9h, 0a1h
db 0fbh, 0fdh, 0c3h, 0dch, 0ffh
db 0ffh, 0ffh, 0cah
;0- iend 3
Cp866_Koi8r_tbl:
db 3h
db 80h, 0f1h, 0e1h, 0e2h, 0f7h, 0e7h, 0e4h, 0e5h, 0f6h, 0fah, 0e9h, 0eah, 0ebh, 0ech, 0edh, 0eeh, 0efh, 0f0h, 0f2h, 0f3h, 0f4h, 0f5h, 0e6h, 0e8h, 0e3h, 0feh, 0fbh, 0fdh, 0ffh, 0f9h, 0f8h, 0fch, 0e0h, 0f1h, 0c1h, 0c2h, 0d7h, 0c7h, 0c4h, 0c5h, 0d6h, 0dah, 0c9h, 0cah, 0cbh, 0cch, 0cdh, 0ceh, 0cfh, 0d0h, 090h, 091h, 092h, 081h, 087h, 0b2h, 0b4h, 0a7h, 0a6h, 0b5h, 0a1h, 0a8h, 0aeh, 0adh, 0ach, 083h, 084h, 089h, 088h, 086h, 080h, 08ah, 0afh, 0b0h, 0abh, 0a5h, 0bbh, 0b8h, 0b1h, 0a0h, 0beh, 0b9h, 0bah, 0b6h, 0b7h, 0aah, 0a9h, 0a2h, 0a4h, 0bdh, 0bch, 085h, 082h, 08dh, 08ch, 08eh, 08fh, 08bh, 0d2h, 0d3h, 0d4h, 0d5h, 0c6h, 0c8h, 0c3h, 0deh, 0dbh, 0ddh, 0dfh, 0d9h, 0d8h, 0dch, 0c0h, 0d1h, 0b3h, 0a3h
db 0f8h, 0fbh, 09ch, 095h, 09eh, 096h
db 0feh, 0ffh, 094h, 09ah
;0- iend 5
Cp866_Cp8859_5_tbl:
db 5h
db 080h, 0afh, 0b0h, 0b1h, 0b2h, 0b3h, 0b4h, 0b5h, 0b6h, 0b7h, 0b8h, 0b9h, 0bah, 0bbh, 0bch, 0bdh, 0beh, 0bfh, 0c0h, 0c1h, 0c2h, 0c3h, 0c4h, 0c5h, 0c6h, 0c7h, 0c8h, 0c9h, 0cah, 0cbh, 0cch, 0cdh, 0ceh, 0cfh, 0d0h, 0d1h, 0d2h, 0d3h, 0d4h, 0d5h, 0d6h, 0d7h, 0d8h, 0d9h, 0dah, 0dbh, 0dch, 0ddh, 0deh, 0dfh
db 0f0h, 0f0h, 0a1h
db 0f2h, 0f7h, 0a4h, 0f4h, 0a7h, 0f7h, 0aeh, 0feh
db 0fch, 0fch, 0f0h
db 0ffh, 0ffh, 0a0h
;1- iend 0
Cp1251_Cp866_tbl:
db 7h
db 0a0h, 0a2h, 0ffh, 0f6h, 0f7h
db 0a4h, 0a4h, 0fdh
db 0a8h, 0a8h, 0f0h
db 0aah, 0aah, 0f2h
db 0afh, 0b0h, 0f4h, 0f8h
db 0b7h, 0bah, 0fah, 0f1h, 0fch, 0f3h
db 0bfh, 0ffh, 0f5h, 080h, 081h, 082h, 083h, 084h, 085h, 086h, 087h, 088h, 089h, 08ah, 08bh, 08ch, 08dh, 08eh, 08fh, 090h, 091h, 092h, 093h, 094h, 095h, 096h, 097h, 098h, 099h, 09ah, 09bh, 09ch, 09dh, 09eh, 09fh, 0a0h, 0a1h, 0a2h, 0a3h, 0a4h, 0a5h, 0a6h, 0a7h, 0a8h, 0a9h, 0aah, 0abh, 0ach, 0adh, 0aeh, 0afh, 0e0h, 0e1h, 0e2h, 0e3h, 0e4h, 0e5h, 0e6h, 0e7h, 0e8h, 0e9h, 0eah, 0ebh, 0ech, 0edh, 0eeh, 0efh
;1- iend 2
Cp1251_Cp10007_tbl:
db 0ch
db 080h, 081h, 0abh, 0aeh
db 083h, 086h, 0afh, 0d7h, 0c9h, 0a0h
db 08ah, 08ah, 0bch
db 08ch, 09ah, 0beh, 0cdh, 0cbh, 0dah, 0ach, 0d4h, 0d5h, 0d2h, 0d3h, 0a5h, 0d0h, 0d1h, 0aah, 0bdh, 0h
db 09ch, 0a4h, 0bfh, 0ceh, 0cch, 0dbh, 0cah, 0d8h, 0d9h, 0b7h, 0ffh
db 0a7h, 0a8h, 0a4h, 0ddh
db 0aah, 0ach, 0b8h, 0c7h, 0c2h
db 0aeh, 0b0h, 0a8h, 0bah, 0a1h
db 0b2h, 0b3h, 0a7h, 0b4h
db 0b6h, 0b6h, 0a6h
db 0b8h, 0dfh, 0deh, 0dch, 0b9h, 0c8h, 0c0h, 0c1h, 0cfh, 0bbh, 080h, 081h, 082h, 083h, 084h, 085h, 086h, 087h, 088h, 089h, 08ah, 08bh, 08ch, 08dh, 08eh, 08fh, 090h, 091h, 092h, 093h, 094h, 095h, 096h, 097h, 098h, 099h, 09ah, 09bh, 09ch, 09dh, 09eh, 09fh
db 0ffh, 0ffh, 0dfh
;1- iend 3
Cp1251_Koi8r_tbl:
db 5h
db 0a0h, 0a0h, 09ah
db 0a8h, 0a9h, 0b3h, 0bfh
db 0b0h, 0b0h, 09ch
db 0b7h, 0b8h, 09eh, 0a3h
db 0c0h, 0ffh, 0e1h, 0e2h, 0f7h, 0e7h, 0e4h, 0e5h, 0f6h, 0fah, 0e9h, 0eah, 0ebh, 0ech, 0edh, 0eeh, 0efh, 0f0h, 0f2h, 0f3h, 0f4h, 0f5h, 0e6h, 0e8h, 0e3h, 0feh, 0fbh, 0fdh, 0ffh, 0f9h, 0f8h, 0fch, 0e0h, 0f1h, 0c1h, 0c2h, 0d7h, 0c7h, 0c4h, 0c5h, 0d6h, 0dah, 0c9h, 0cah, 0cbh, 0cch, 0cdh, 0ceh, 0cfh, 0d0h, 0d2h, 0d3h, 0d4h, 0d5h, 0c6h, 0c8h, 0c3h, 0deh, 0dbh, 0ddh, 0dfh, 0d9h, 0d8h, 0dch, 0c0h, 0d1h
;1- iend 4
Cp1251_Mac_tbl:
db 0eh
db 080h, 081h, 0abh, 0aeh
db 083h, 086h, 0afh, 0d7h, 0c9h, 0a0h
db 088h, 088h, 0ffh
db 08ah, 08ah, 0bch
db 08ch, 09ah, 0beh, 0cdh, 0cbh, 0dah, 0ach, 0d4h, 0d5h, 0d2h, 0d3h, 0a5h, 0d0h, 0d1h, 0aah, 0bdh, 0efh
db 09ch, 0a3h, 0bfh, 0ceh, 0cch, 0dbh, 0cah, 0d8h, 0d9h, 0b7h
db 0a5h, 0a5h, 0a2h
db 0a7h, 0a8h, 0a4h, 0ddh
db 0aah, 0ach, 0b8h, 0c7h, 0c2h
db 0aeh, 0b0h, 0a8h, 0bah, 0a1h
db 0b2h, 0b4h, 0a7h, 0b4h, 0b6h
db 0b6h, 0b6h, 0a6h
db 0b8h, 0dfh, 0deh, 0dch, 0b9h, 0c8h, 0c0h, 0c1h, 0cfh, 0bbh, 080h, 081h, 082h, 083h, 084h, 085h, 086h, 087h, 088h, 089h, 08ah, 08bh, 08ch, 08dh, 08eh, 08fh, 090h, 091h, 092h, 093h, 094h, 095h, 096h, 097h, 098h, 099h, 09ah, 09bh, 09ch, 09dh, 09eh, 09fh
db 0ffh, 0ffh, 0dfh
;1- iend 5
Cp1251_Cp8859_5_tbl:
db 0dh
db 080h, 081h, 0a2h, 0a3h
db 083h, 083h, 0f3h
db 08ah, 08ah, 0a9h
db 08ch, 090h, 0aah, 0ach, 0abh, 0afh, 0f2h
db 09ah, 09ah, 0f9h
db 09ch, 09fh, 0fah, 0fch, 0fbh, 0ffh
db 0a1h, 0a3h, 0aeh, 0feh, 0a8h
db 0a7h, 0a8h, 0fdh, 0a1h
db 0aah, 0aah, 0a4h
db 0afh, 0afh, 0a7h
db 0b2h, 0b3h, 0a6h, 0f6h
db 0b8h, 0bah, 0f1h, 0f0h, 0f4h
db 0bch, 0ffh, 0f8h, 0a5h, 0f5h, 0f7h, 0b0h, 0b1h, 0b2h, 0b3h, 0b4h, 0b5h, 0b6h, 0b7h, 0b8h, 0b9h, 0bah, 0bbh, 0bch, 0bdh, 0beh, 0bfh, 0c0h, 0c1h, 0c2h, 0c3h, 0c4h, 0c5h, 0c6h, 0c7h, 0c8h, 0c9h, 0cah, 0cbh, 0cch, 0cdh, 0ceh, 0cfh, 0d0h, 0d1h, 0d2h, 0d3h, 0d4h, 0d5h, 0d6h, 0d7h, 0d8h, 0d9h, 0dah, 0dbh, 0dch, 0ddh, 0deh, 0dfh, 0e0h, 0e1h, 0e2h, 0e3h, 0e4h, 0e5h, 0e6h, 0e7h, 0e8h, 0e9h, 0eah, 0ebh, 0ech, 0edh, 0eeh, 0efh
;2- iend 0
Cp10007_Cp866_tbl:
db 6h
db 0a1h, 0a1h, 0f8h
db 0b8h, 0bbh, 0f2h, 0f3h, 0f4h, 0f5h
db 0c3h, 0c3h, 0fbh
db 0cah, 0cah, 0ffh
db 0d8h, 0d9h, 0f6h, 0f7h
db 0dch, 0ffh, 0fch, 0f0h, 0f1h, 0efh, 0a0h, 0a1h, 0a2h, 0a3h, 0a4h, 0a5h, 0a6h, 0a7h, 0a8h, 0a9h, 0aah, 0abh, 0ach, 0adh, 0aeh, 0afh, 0e0h, 0e1h, 0e2h, 0e3h, 0e4h, 0e5h, 0e6h, 0e7h, 0e8h, 0e9h, 0eah, 0ebh, 0ech, 0edh, 0eeh, 0fdh
;2- iend 1
Cp10007_Cp1251_tbl:
db 9h
db 080h, 0a1h, 0c0h, 0c1h, 0c2h, 0c3h, 0c4h, 0c5h, 0c6h, 0c7h, 0c8h, 0c9h, 0cah, 0cbh, 0cch, 0cdh, 0ceh, 0cfh, 0d0h, 0d1h, 0d2h, 0d3h, 0d4h, 0d5h, 0d6h, 0d7h, 0d8h, 0d9h, 0dah, 0dbh, 0dch, 0ddh, 0deh, 0dfh, 086h, 0b0h
db 0a4h, 0a8h, 0a7h, 095h, 0b6h, 0b2h, 0aeh
db 0aah, 0ach, 099h, 080h, 090h
db 0aeh, 0afh, 081h, 083h
db 0b4h, 0b4h, 0b3h
db 0b7h, 0c2h, 0a3h, 0aah, 0bah, 0afh, 0bfh, 08ah, 09ah, 08ch, 09ch, 0bch, 0bdh, 0ach
db 0c7h, 0d5h, 0abh, 0bbh, 085h, 0a0h, 08eh, 09eh, 08dh, 09dh, 0beh, 096h, 098h, 093h, 094h, 091h, 092h
db 0d7h, 0dfh, 084h, 0a1h, 0a2h, 08fh, 09fh, 0b9h, 0a8h, 0b8h, 0ffh
db 0ffh, 0ffh, 0a4h
;2+4- iend 3
Cp10007_Koi8r_tbl:
db 9h
db 080h, 09fh, 0e1h, 0e2h, 0f7h, 0e7h, 0e4h, 0e5h, 0f6h, 0fah, 0e9h, 0eah, 0ebh, 0ech, 0edh, 0eeh, 0efh, 0f0h, 0f2h, 0f3h, 0f4h, 0f5h, 0e6h, 0e8h, 0e3h, 0feh, 0fbh, 0fdh, 0ffh, 0f9h, 0f8h, 0fch, 0e0h, 0f1h
db 0a1h, 0a1h, 09ch
db 0a9h, 0a9h, 0bfh
db 0b2h, 0b3h, 098h, 099h
db 0c3h, 0c3h, 096h
db 0c5h, 0c5h, 097h
db 0cah, 0cah, 09ah
db 0d6h, 0d6h, 09fh
db 0ddh, 0feh, 0b3h, 0a3h, 0d1h, 0c1h, 0c2h, 0d7h, 0c7h, 0c4h, 0c5h, 0d6h, 0dah, 0c9h, 0cah, 0cbh, 0cch, 0cdh, 0ceh, 0cfh, 0d0h, 0d2h, 0d3h, 0d4h, 0d5h, 0c6h, 0c8h, 0c3h, 0deh, 0dbh, 0ddh, 0dfh, 0d9h, 0d8h, 0dch, 0c0h
;2+4- iend 5
Cp10007_Cp8859_5_tbl:
db 9h
db 080h, 09fh, 0b0h, 0b1h, 0b2h, 0b3h, 0b4h, 0b5h, 0b6h, 0b7h, 0b8h, 0b9h, 0bah, 0bbh, 0bch, 0bdh, 0beh, 0bfh, 0c0h, 0c1h, 0c2h, 0c3h, 0c4h, 0c5h, 0c6h, 0c7h, 0c8h, 0c9h, 0cah, 0cbh, 0cch, 0cdh, 0ceh, 0cfh
db 0a4h, 0a4h, 0fdh
db 0a7h, 0a7h, 0a6h
db 0abh, 0ach, 0a2h, 0f2h
db 0aeh, 0afh, 0a3h, 0f3h
db 0b4h, 0b4h, 0f6h
db 0b7h, 0c1h, 0a8h, 0a4h, 0f4h, 0a7h, 0f7h, 0a9h, 0f9h, 0aah, 0fah, 0f8h, 0a5h
db 0cah, 0cfh, 0a0h, 0abh, 0fbh, 0ach, 0fch, 0f5h
db 0d8h, 0feh, 0aeh, 0feh, 0afh, 0ffh, 0f0h, 0a1h, 0f1h, 0efh, 0d0h, 0d1h, 0d2h, 0d3h, 0d4h, 0d5h, 0d6h, 0d7h, 0d8h, 0d9h, 0dah, 0dbh, 0dch, 0ddh, 0deh, 0dfh, 0e0h, 0e1h, 0e2h, 0e3h, 0e4h, 0e5h, 0e6h, 0e7h, 0e8h, 0e9h, 0eah, 0ebh, 0ech, 0edh, 0eeh
;3- iend 0
Koi8r_Cp866_tbl:
db 7h
db 080h, 092h, 0c4h, 0b3h, 0dah, 0bfh, 0c0h, 0d9h, 0c3h, 0b4h, 0c2h, 0c1h, 0c5h, 0dfh, 0dch, 0dbh, 0ddh, 0deh, 0b0h, 0b1h, 0b2h
db 094h, 096h, 0feh, 0f9h, 0fbh
db 09ah, 09ah, 0ffh
db 09ch, 09ch, 0f8h
db 09eh, 09eh, 0fah
db 0a0h, 0beh, 0cdh, 0bah, 0d5h, 0f1h, 0d6h, 0c9h, 0b8h, 0b7h, 0bbh, 0d4h, 0d3h, 0c8h, 0beh, 0bdh, 0bch, 0c6h, 0c7h, 0cch, 0b5h, 0f0h, 0b6h, 0b9h, 0d1h, 0d2h, 0cbh, 0cfh, 0d0h, 0cah, 0d8h, 0d7h, 0ceh
db 0c0h, 0ffh, 0eeh, 0a0h, 0a1h, 0e6h, 0a4h, 0a5h, 0e4h, 0a3h, 0e5h, 0a8h, 0a9h, 0aah, 0abh, 0ach, 0adh, 0aeh, 0afh, 0efh, 0e0h, 0e1h, 0e2h, 0e3h, 0a6h, 0a2h, 0ech, 0ebh, 0a7h, 0e8h, 0edh, 0e9h, 0e7h, 0eah, 09eh, 080h, 081h, 096h, 084h, 085h, 094h, 083h, 095h, 088h, 089h, 08ah, 08bh, 08ch, 08dh, 08eh, 08fh, 09fh, 090h, 091h, 092h, 093h, 086h, 082h, 09ch, 09bh, 087h, 098h, 09dh, 099h, 097h, 09ah
;3- iend 1
Koi8r_Cp1251_tbl:
db 6h
db 09ah, 09ah, 0a0h
db 09ch, 09ch, 0b0h
db 09eh, 09eh, 0b7h
db 0a3h, 0a3h, 0b8h
db 0b3h, 0b3h, 0a8h
db 0bfh, 0ffh, 0a9h, 0feh, 0e0h, 0e1h, 0f6h, 0e4h, 0e5h, 0f4h, 0e3h, 0f5h, 0e8h, 0e9h, 0eah, 0ebh, 0ech, 0edh, 0eeh, 0efh, 0ffh, 0f0h, 0f1h, 0f2h, 0f3h, 0e6h, 0e2h, 0fch, 0fbh, 0e7h, 0f8h, 0fdh, 0f9h, 0f7h, 0fah, 0deh, 0c0h, 0c1h, 0d6h, 0c4h, 0c5h, 0d4h, 0c3h, 0d5h, 0c8h, 0c9h, 0cah, 0cbh, 0cch, 0cdh, 0ceh, 0cfh, 0dfh, 0d0h, 0d1h, 0d2h, 0d3h, 0c6h, 0c2h, 0dch, 0dbh, 0c7h, 0d8h, 0ddh, 0d9h, 0d7h, 0dah
;3- iend 2
Koi8r_Cp10007_tbl:
db 6h
db 096h, 09ah, 0c3h, 0c5h, 0b2h, 0b3h, 0cah
db 09ch, 09ch, 0a1h
db 09fh, 09fh, 0d6h
db 0a3h, 0a3h, 0deh
db 0b3h, 0b3h, 0ddh
db 0bfh, 0ffh, 0a9h, 0feh, 0e0h, 0e1h, 0f6h, 0e4h, 0e5h, 0f4h, 0e3h, 0f5h, 0e8h, 0e9h, 0eah, 0ebh, 0ech, 0edh, 0eeh, 0efh, 0dfh, 0f0h, 0f1h, 0f2h, 0f3h, 0e6h, 0e2h, 0fch, 0fbh, 0e7h, 0f8h, 0fdh, 0f9h, 0f7h, 0fah, 09eh, 080h, 081h, 096h, 084h, 085h, 094h, 083h, 095h, 088h, 089h, 08ah, 08bh, 08ch, 08dh, 08eh, 08fh, 09fh, 090h, 091h, 092h, 093h, 086h, 082h, 09ch, 09bh, 087h, 098h, 09dh, 099h, 097h, 09ah
;3- iend 4
Koi8r_Mac_tbl:
db 6h
db 096h, 09ah, 0c3h, 0c5h, 0b2h, 0b3h, 0cah
db 09ch, 09ch, 0a1h
db 09fh, 09fh, 0d6h
db 0a3h, 0a3h, 0deh
db 0b3h, 0b3h, 0ddh
db 0bfh, 0ffh, 0a9h, 0feh, 0e0h, 0e1h, 0f6h, 0e4h, 0e5h, 0f4h, 0e3h, 0f5h, 0e8h, 0e9h, 0eah, 0ebh, 0ech, 0edh, 0eeh, 0efh, 0dfh, 0f0h, 0f1h, 0f2h, 0f3h, 0e6h, 0e2h, 0fch, 0fbh, 0e7h, 0f8h, 0fdh, 0f9h, 0f7h, 0fah, 09eh, 080h, 081h, 096h, 084h, 085h, 094h, 083h, 095h, 088h, 089h, 08ah, 08bh, 08ch, 08dh, 08eh, 08fh, 09fh, 090h, 091h, 092h, 093h, 086h, 082h, 09ch, 09bh, 087h, 098h, 09dh, 099h, 097h, 09ah
;3- iend 5
Koi8r_Cp8859_5_tbl:
db 5h
db 09ah, 09ah, 0a0h
db 0a3h, 0a3h, 0f1h
db 0b3h, 0b3h, 0a1h
db 0c0h, 0d5h, 0eeh, 0d0h, 0d1h, 0e6h, 0d4h, 0d5h, 0e4h, 0d3h, 0e5h, 0d8h, 0d9h, 0dah, 0dbh, 0dch, 0ddh, 0deh, 0dfh, 0efh, 0e0h, 0e1h, 0e2h, 0e3h
db 0d7h, 0ffh, 0d2h, 0ech, 0ebh, 0d7h, 0e8h, 0edh, 0e9h, 0e7h, 0eah, 0ceh, 0b0h, 0b1h, 0c6h, 0b4h, 0b5h, 0c4h, 0b3h, 0c5h, 0b8h, 0b9h, 0bah, 0bbh, 0bch, 0bdh, 0beh, 0bfh, 0cfh, 0c0h, 0c1h, 0c2h, 0c3h, 0b6h, 0b2h, 0cch, 0cbh, 0b7h, 0c8h, 0cdh, 0c9h, 0c7h, 0cah
;4- iend 0
Mac_Cp866_tbl:
db 6h
db 0a1h, 0a1h, 0f8h
db 0b8h, 0bbh, 0f2h, 0f3h, 0f4h, 0f5h
db 0c3h, 0c3h, 0fbh
db 0cah, 0cah, 0ffh
db 0d8h, 0d9h, 0f6h, 0f7h
db 0dch, 0feh, 0fch, 0f0h, 0f1h, 0efh, 0a0h, 0a1h, 0a2h, 0a3h, 0a4h, 0a5h, 0a6h, 0a7h, 0a8h, 0a9h, 0aah, 0abh, 0ach, 0adh, 0aeh, 0afh, 0e0h, 0e1h, 0e2h, 0e3h, 0e4h, 0e5h, 0e6h, 0e7h, 0e8h, 0e9h, 0eah, 0ebh, 0ech, 0edh, 0eeh
;4- iend 1
Mac_Cp1251_tbl:
db 9h
db 080h, 0a2h, 0c0h, 0c1h, 0c2h, 0c3h, 0c4h, 0c5h, 0c6h, 0c7h, 0c8h, 0c9h, 0cah, 0cbh, 0cch, 0cdh, 0ceh, 0cfh, 0d0h, 0d1h, 0d2h, 0d3h, 0d4h, 0d5h, 0d6h, 0d7h, 0d8h, 0d9h, 0dah, 0dbh, 0dch, 0ddh, 0deh, 0dfh, 086h, 0b0h, 0a5h
db 0a4h, 0a8h, 0a7h, 095h, 0b6h, 0b2h, 0aeh
db 0aah, 0ach, 099h, 080h, 090h
db 0aeh, 0afh, 081h, 083h
db 0b4h, 0b4h, 0b3h
db 0b6h, 0c2h, 0b4h, 0a3h, 0aah, 0bah, 0afh, 0bfh, 08ah, 09ah, 08ch, 09ch, 0bch, 0bdh, 0ach
db 0c7h, 0d5h, 0abh, 0bbh, 085h, 0a0h, 08eh, 09eh, 08dh, 09dh, 0beh, 096h, 098h, 093h, 094h, 091h, 092h
db 0d7h, 0dfh, 084h, 0a1h, 0a2h, 08fh, 09fh, 0b9h, 0a8h, 0b8h, 0ffh
db 0ffh, 0ffh, 088h
;5- iend 0
Cp8859_5_Cp866_tbl:
db 9h
db 0a0h, 0a1h, 0ffh, 0f0h
db 0a4h, 0a4h, 0f2h
db 0a7h, 0a7h, 0f4h
db 0aeh, 0aeh, 0f6h
db 0b0h, 0dfh, 080h, 081h, 082h, 083h, 084h, 085h, 086h, 087h, 088h, 089h, 08ah, 08bh, 08ch, 08dh, 08eh, 08fh, 090h, 091h, 092h, 093h, 094h, 095h, 096h, 097h, 098h, 099h, 09ah, 09bh, 09ch, 09dh, 09eh, 09fh, 0a0h, 0a1h, 0a2h, 0a3h, 0a4h, 0a5h, 0a6h, 0a7h, 0a8h, 0a9h, 0aah, 0abh, 0ach, 0adh, 0aeh, 0afh
db 0f0h, 0f0h, 0fch
db 0f4h, 0f4h, 0f3h
db 0f7h, 0f7h, 0f5h
db 0feh, 0feh, 0f7h
;5- iend 1
Cp8859_5_Cp1251_tbl:
db 2h
db 0a1h, 0ach, 0a8h, 080h, 081h, 0aah, 0bdh, 0b2h, 0afh, 0a3h, 08ah, 08ch, 08eh, 08dh
db 0aeh, 0ffh, 0a1h, 08fh, 0c0h, 0c1h, 0c2h, 0c3h, 0c4h, 0c5h, 0c6h, 0c7h, 0c8h, 0c9h, 0cah, 0cbh, 0cch, 0cdh, 0ceh, 0cfh, 0d0h, 0d1h, 0d2h, 0d3h, 0d4h, 0d5h, 0d6h, 0d7h, 0d8h, 0d9h, 0dah, 0dbh, 0dch, 0ddh, 0deh, 0dfh, 0e0h, 0e1h, 0e2h, 0e3h, 0e4h, 0e5h, 0e6h, 0e7h, 0e8h, 0e9h, 0eah, 0ebh, 0ech, 0edh, 0eeh, 0efh, 0f0h, 0f1h, 0f2h, 0f3h, 0f4h, 0f5h, 0f6h, 0f7h, 0f8h, 0f9h, 0fah, 0fbh, 0fch, 0fdh, 0feh, 0ffh, 0b9h, 0b8h, 090h, 083h, 0bah, 0beh, 0b3h, 0bfh, 0bch, 09ah, 09ch, 09eh, 09dh, 0a7h, 0a2h, 09fh
;5- iend 2+4
Cp8859_5_Mac_tbl:
db 2h
db 0a0h, 0ach, 0cah, 0ddh, 0abh, 0aeh, 0b8h, 0c1h, 0a7h, 0bah, 0b7h, 0bch, 0beh, 0cbh, 0cdh
db 0aeh, 0ffh, 0d8h, 0dah, 080h, 081h, 082h, 083h, 084h, 085h, 086h, 087h, 088h, 089h, 08ah, 08bh, 08ch, 08dh, 08eh, 08fh, 090h, 091h, 092h, 093h, 094h, 095h, 096h, 097h, 098h, 099h, 09ah, 09bh, 09ch, 09dh, 09eh, 09fh, 0e0h, 0e1h, 0e2h, 0e3h, 0e4h, 0e5h, 0e6h, 0e7h, 0e8h, 0e9h, 0eah, 0ebh, 0ech, 0edh, 0eeh, 0efh, 0f0h, 0f1h, 0f2h, 0f3h, 0f4h, 0f5h, 0f6h, 0f7h, 0f8h, 0f9h, 0fah, 0fbh, 0fch, 0fdh, 0feh, 0dfh, 0dch, 0deh, 0ach, 0afh, 0b9h, 0cfh, 0b4h, 0bbh, 0c0h, 0bdh, 0bfh, 0cch, 0ceh, 0a4h, 0d9h, 0dbh
;5- iend 3
Cp8859_5_Koi8r_tbl:
db 4h
db 0a0h, 0a1h, 09ah, 0b3h
db 0b0h, 0d5h, 0e1h, 0e2h, 0f7h, 0e7h, 0e4h, 0e5h, 0f6h, 0fah, 0e9h, 0eah, 0ebh, 0ech, 0edh, 0eeh, 0efh, 0f0h, 0f2h, 0f3h, 0f4h, 0f5h, 0e6h, 0e8h, 0e3h, 0feh, 0fbh, 0fdh, 0ffh, 0f9h, 0f8h, 0fch, 0e0h, 0f1h, 0c1h, 0c2h, 0d7h, 0c7h, 0c4h, 0c5h
db 0d7h, 0efh, 0dah, 0c9h, 0cah, 0cbh, 0cch, 0cdh, 0ceh, 0cfh, 0d0h, 0d2h, 0d3h, 0d4h, 0d5h, 0c6h, 0c8h, 0c3h, 0deh, 0dbh, 0ddh, 0dfh, 0d9h, 0d8h, 0dch, 0c0h, 0d1h
db 0f1h, 0f1h, 0a3h
;wchar- iend 0
Utf16_Cp866_tbl:
db 01eh
dw 0a0h, 0a0h
db 0ffh
dw 0a4h, 0a4h
db 0fdh
dw 0b0h, 0b0h
db 0f8h
dw 0b7h, 0b7h
db 0fah
dw 0401h, 0401h
db 0f0h
dw 0404h, 0404h
db 0f2h
dw 0407h, 0407h
db 0f4h
dw 040eh, 0451h
db 0f6h, 080h, 081h, 082h, 083h, 084h, 085h, 086h, 087h, 088h, 089h, 08ah, 08bh, 08ch, 08dh, 08eh, 08fh, 090h, 091h, 092h, 093h, 094h, 095h, 096h, 097h, 098h, 099h, 09ah, 09bh, 09ch, 09dh, 09eh, 09fh, 0a0h, 0a1h, 0a2h, 0a3h, 0a4h, 0a5h, 0a6h, 0a7h, 0a8h, 0a9h, 0aah, 0abh, 0ach, 0adh, 0aeh, 0afh, 0e0h, 0e1h, 0e2h, 0e3h, 0e4h, 0e5h, 0e6h, 0e7h, 0e8h, 0e9h, 0eah, 0ebh, 0ech, 0edh, 0eeh, 0efh, 0f1h, 0h, 0h
dw 0454h, 0454h
db 0f3h
dw 0457h, 0457h
db 0f5h
dw 045eh, 045eh
db 0f7h
dw 02116h, 02116h
db 0fch
dw 02219h, 0221ah
db 0f9h, 0fbh
dw 02500h, 02501h
db 0c4h, 0b3h
dw 0250ch, 0250ch
db 0dah
dw 02510h, 02510h
db 0bfh
dw 02514h, 02514h
db 0c0h
dw 02518h, 02518h
db 0d9h
dw 0251ch, 0251ch
db 0c3h
dw 02524h, 02524h
db 0b4h
dw 0252ch, 0252ch
db 0c2h
dw 02534h, 02534h
db 0c1h
dw 0253ch, 0253ch
db 0c5h
dw 02550h, 0256ch
db 0cdh, 0bah, 0d5h, 0d6h, 0c9h, 0b8h, 0b7h, 0bbh, 0d4h, 0d3h, 0c8h, 0beh, 0bdh, 0bch, 0c6h, 0c7h, 0cch, 0b5h, 0b6h, 0b9h, 0d1h, 0d2h, 0cbh, 0cfh, 0d0h, 0cah, 0d8h, 0d7h, 0ceh
dw 02580h, 02580h
db 0dfh
dw 02584h, 02584h
db 0dch
dw 02588h, 02588h
db 0dbh
dw 0258ch, 0258ch
db 0ddh
dw 02590h, 02593h
db 0deh, 0b0h, 0b1h, 0b2h
dw 025a0h, 025a0h
db 0feh
Utf16_Cp1251_tbl:
;wchar- iend 1
db 0ch
dw 00401h, 045fh
db 0a8h, 080h, 081h, 0aah, 0bdh, 0b2h, 0afh, 0a3h, 08ah, 08ch, 08eh, 08dh, 0a1h, 08fh, 0c0h, 0c1h, 0c2h, 0c3h, 0c4h, 0c5h, 0c6h, 0c7h, 0c8h, 0c9h, 0cah, 0cbh, 0cch, 0cdh, 0ceh, 0cfh, 0d0h, 0d1h, 0d2h, 0d3h, 0d4h, 0d5h, 0d6h, 0d7h, 0d8h, 0d9h, 0dah, 0dbh, 0dch, 0ddh, 0deh, 0dfh, 0e0h, 0e1h, 0e2h, 0e3h, 0e4h, 0e5h, 0e6h, 0e7h, 0e8h, 0e9h, 0eah, 0ebh, 0ech, 0edh, 0eeh, 0efh, 0f0h, 0f1h, 0f2h, 0f3h, 0f4h, 0f5h, 0f6h, 0f7h, 0f8h, 0f9h, 0fah, 0fbh, 0fch, 0fdh, 0feh, 0ffh, 0b8h, 090h, 083h, 0bah, 0beh, 0b3h, 0bfh, 0bch, 09ah, 09ch, 09eh, 09dh, 0a2h, 09fh, 0h, 0h, 0h
dw 0490h, 0491h
db 0a5h, 0b4h
dw 02013h, 02014h
db 096h, 098h
dw 02018h, 0201ah
db 091h, 092h, 082h
dw 0201ch, 0201eh
db 093h, 094h, 084h
dw 02020h, 02022h
db 086h, 087h, 095h
dw 02026h, 02026h
db 085h
dw 02030h, 02030h
db 089h
dw 02039h, 0203ah
db 08bh, 09bh
dw 020ach, 020ach
db 088h
dw 02116h, 02116h
db 0b9h
dw 02122h, 02122h
db 099h
;wchar- iend 2
Utf16_Cp10007_tbl:
db 019h
dw 0a0h, 0a0h
db 0cah
dw 0a4h, 0a4h
db 0ffh
dw 0a7h, 0a7h
db 0a4h
dw 0abh, 0ach
db 0c7h, 0c2h
dw 0aeh, 0b0h
db 0a8h, 0a1h, 084h
dw 0b6h, 0b6h
db 0a6h
dw 0bbh, 0bbh
db 0c8h
dw 0f7h, 0f7h
db 0d6h
dw 0192h, 0192h
db 0c4h
dw 0401h, 045fh
db 0ddh, 0abh, 0aeh, 0b8h, 0c1h, 0a7h, 0bah, 0b7h, 0bch, 0beh, 0cbh, 0cdh, 0d8h, 0dah, 080h, 081h, 082h, 083h, 084h, 085h, 086h, 087h, 088h, 089h, 08ah, 08bh, 08ch, 08dh, 08eh, 08fh, 090h, 091h, 092h, 093h, 094h, 095h, 096h, 097h, 098h, 099h, 09ah, 09bh, 09ch, 09dh, 09eh, 09fh, 0e0h, 0e1h, 0e2h, 0e3h, 0e4h, 0e5h, 0e6h, 0e7h, 0e8h, 0e9h, 0eah, 0ebh, 0ech, 0edh, 0eeh, 0efh, 0f0h, 0f1h, 0f2h, 0f3h, 0f4h, 0f5h, 0f6h, 0f7h, 0f8h, 0f9h, 0fah, 0fbh, 0fch, 0fdh, 0feh, 0dfh, 0deh, 0ach, 0afh, 0b9h, 0cfh, 0b4h, 0bbh, 0c0h, 0bdh, 0bfh, 0cch, 0ceh, 0d9h, 0dbh, 0h, 0h, 0h
dw 02013h, 02014h
db 0d0h, 0d1h
dw 02018h, 02019h
db 0d4h, 0d5h
dw 0201ch, 0201eh
db 0d2h, 0d3h, 0d7h
dw 02020h, 02020h
db 0a0h
dw 02022h, 02022h
db 0a5h
dw 02026h, 02026h
db 0c9h
dw 02116h, 02116h
db 0dch
dw 02122h, 02122h
db 0aah
dw 02202h, 02202h
db 0b6h
dw 02206h, 02206h
db 0c6h
dw 0221ah, 0221ah
db 0c3h
dw 0221eh, 0221eh
db 0b0h
dw 02248h, 02248h
db 0c5h
dw 02260h, 02260h
db 0adh
dw 02264h, 02265h
db 0b2h, 0b3h
;wchar- iend 3
Utf16_Koi8r_tbl:
db 01dh
dw 0a0h, 0a0h
db 09ah
dw 0a9h, 0a9h
db 0bfh
dw 0b0h, 0b0h
db 09ch
dw 0b2h, 0b2h
db 09dh
dw 0b7h, 0b7h
db 09eh
dw 0f7h, 0f7h
db 09fh
dw 0401h, 0401h
db 0b3h
dw 0410h, 0451h
db 0e1h, 0e2h, 0f7h, 0e7h, 0e4h, 0e5h, 0f6h, 0fah, 0e9h, 0eah, 0ebh, 0ech, 0edh, 0eeh, 0efh, 0f0h, 0f2h, 0f3h, 0f4h, 0f5h, 0e6h, 0e8h, 0e3h, 0feh, 0fbh, 0fdh, 0ffh, 0f9h, 0f8h, 0fch, 0e0h, 0f1h, 0c1h, 0c2h, 0d7h, 0c7h, 0c4h, 0c5h, 0d6h, 0dah, 0c9h, 0cah, 0cbh, 0cch, 0cdh, 0ceh, 0cfh, 0d0h, 0d2h, 0d3h, 0d4h, 0d5h, 0c6h, 0c8h, 0c3h, 0deh, 0dbh, 0ddh, 0dfh, 0d9h, 0d8h, 0dch, 0c0h, 0d1h, 0a3h, 0f1h
dw 02219h, 0221ah
db 095h, 096h
dw 02248h, 02248h
db 097h
dw 02264h, 02265h
db 098h, 099h
dw 02320h, 02321h
db 093h, 09bh
dw 02500h, 02502h
db 080h, 081h, 0d7h
dw 0250ch, 0250ch
db 082h
dw 02510h, 02510h
db 083h
dw 02514h, 02514h
db 084h
dw 02518h, 02518h
db 085h
dw 0251ch, 0251ch
db 086h
dw 02524h, 02524h
db 087h
dw 0252ch, 0252ch
db 088h
dw 02534h, 02534h
db 089h
dw 0253ch, 0253ch
db 08ah
dw 02550h, 0256ch
db 0a0h, 0a1h, 0a2h, 0a4h, 0a5h, 0a6h, 0a7h, 0a8h, 0a9h, 0aah, 0abh, 0ach, 0adh, 0aeh, 0afh, 0b0h, 0b1h, 0b2h, 0b4h, 0b5h, 0b6h, 0b7h, 0b8h, 0b9h, 0bah, 0bbh, 0bch, 0bdh, 0beh
dw 02580h, 02580h
db 08bh
dw 02584h, 02584h
db 08ch
dw 02588h, 02588h
db 08dh
dw 0258ch, 0258ch
db 08eh
dw 02590h, 02593h
db 08fh, 090h, 091h, 092h
dw 025a0h, 025a0h
db 094h
;wchar- iend 4
Utf16_Mac_tbl:
db 019h
dw 0a0h, 0a0h
db 0cah
db 0a7h, 0a7h
dw 0a4h
dw 0abh, 0ach
db 0c7h, 0c2h
dw 0aeh, 0b0h
db 0a8h, 0a1h, 082h
dw 0b6h, 0b6h
db 0a6h
dw 0bbh, 0bbh
db 0c8h
dw 0f7h, 0f7h
db 0d6h
dw 0192h, 0192h
db 0c4h
dw 0401h, 045fh
db 0ddh, 0abh, 0aeh, 0b8h, 0c1h, 0a7h, 0bah, 0b7h, 0bch, 0beh, 0cbh, 0cdh, 0d8h, 0dah, 080h, 081h, 082h, 083h, 084h, 085h, 086h, 087h, 088h, 089h, 08ah, 08bh, 08ch, 08dh, 08eh, 08fh, 090h, 091h, 092h, 093h, 094h, 095h, 096h, 097h, 098h, 099h, 09ah, 09bh, 09ch, 09dh, 09eh, 09fh, 0e0h, 0e1h, 0e2h, 0e3h, 0e4h, 0e5h, 0e6h, 0e7h, 0e8h, 0e9h, 0eah, 0ebh, 0ech, 0edh, 0eeh, 0efh, 0f0h, 0f1h, 0f2h, 0f3h, 0f4h, 0f5h, 0f6h, 0f7h, 0f8h, 0f9h, 0fah, 0fbh, 0fch, 0fdh, 0feh, 0dfh, 0deh, 0ach, 0afh, 0b9h, 0cfh, 0b4h, 0bbh, 0c0h, 0bdh, 0bfh, 0cch, 0ceh, 0d9h, 0dbh, 0h, 0h, 0h
dw 0490h, 0491h
db 0a2h, 0b6h
dw 02013h, 02014h
db 0d0h, 0d1h
dw 02018h, 02019h
db 0d4h, 0d5h
dw 0201ch, 0201eh
db 0d2h, 0d3h, 0d7h
dw 02020h, 02020h
db 0a0h
dw 02022h, 02022h
db 0a5h
dw 02026h, 02026h
db 0c9h
dw 020ach, 020ach
db 0ffh
dw 02116h, 02116h
db 0dch
dw 02122h, 02122h
db 0aah
dw 02206h, 02206h
db 0c6h
dw 0221ah, 0221ah
db 0c3h
dw 0221eh, 0221eh
db 0b0h
dw 02248h, 02248h
db 0c5h
dw 02260h, 02260h
db 0adh
dw 02264h, 02265h
db 0b2h, 0b3h
;wchar- iend 5
Utf16_Cp8859_5_tbl:
db 3h
dw 0a7h, 0a7h
db 0fdh
dw 0401h, 045fh
db 0a1h, 0a2h, 0a3h, 0a4h, 0a5h, 0a6h, 0a7h, 0a8h, 0a9h, 0aah, 0abh, 0ach, 0aeh, 0afh, 0b0h, 0b1h, 0b2h, 0b3h, 0b4h, 0b5h, 0b6h, 0b7h, 0b8h, 0b9h, 0bah, 0bbh, 0bch, 0bdh, 0beh, 0bfh, 0c0h, 0c1h, 0c2h, 0c3h, 0c4h, 0c5h, 0c6h, 0c7h, 0c8h, 0c9h, 0cah, 0cbh, 0cch, 0cdh, 0ceh, 0cfh, 0d0h, 0d1h, 0d2h, 0d3h, 0d4h, 0d5h, 0d6h, 0d7h, 0d8h, 0d9h, 0dah, 0dbh, 0dch, 0ddh, 0deh, 0dfh, 0e0h, 0e1h, 0e2h, 0e3h, 0e4h, 0e5h, 0e6h, 0e7h, 0e8h, 0e9h, 0eah, 0ebh, 0ech, 0edh, 0eeh, 0efh, 0f1h, 0f2h, 0f3h, 0f4h, 0f5h, 0f6h, 0f7h, 0f8h, 0f9h, 0fah, 0fbh, 0fch, 0feh, 0ffh, 0h, 0h, 0h
dw 02116h, 02116h
db 0f0h
;0- iend wchar
Cp866_Utf16_tbl:
db 1h
db 080h, 0ffh
dw 0410h, 0411h, 0412h, 0413h, 0414h, 0415h, 0416h, 0417h, 0418h, 0419h, 041ah, 041bh, 041ch, 041dh, 041eh, 041fh, 0420h, 0421h, 0422h, 0423h, 0424h, 0425h, 0426h, 0427h, 0428h, 0429h, 042ah, 042bh, 042ch, 042dh, 042eh, 042fh, 0430h, 0431h, 0432h, 0433h, 0434h, 0435h, 0436h, 0437h, 0438h, 0439h, 043ah, 043bh, 043ch, 043dh, 043eh, 043fh, 02591h, 02592h, 02593h, 02502h, 02524h, 02561h, 02562h, 02556h, 02555h, 02563h, 02551h, 02557h, 0255dh, 0255ch, 0255bh, 02510h, 02514h, 02534h, 0252ch, 0251ch, 02500h, 0253ch, 0255eh, 0255fh, 0255ah, 02554h, 02569h, 02566h, 02560h, 02550h, 0256ch, 02567h, 02568h, 02564h, 02565h, 02559h, 02558h, 02552h, 02553h, 0256bh, 0256ah, 02518h, 0250ch, 02588h, 02584h, 0258ch, 02590h, 02580h, 0440h, 0441h, 0442h, 0443h, 0444h, 0445h, 0446h, 0447h, 0448h, 0449h, 044ah, 044bh, 044ch, 044dh, 044eh, 044fh, 0401h, 0451h, 0404h, 0454h, 0407h, 0457h, 040eh, 045eh, 0b0h, 02219h, 0b7h, 0221ah, 02116h, 0a4h, 025a0h, 0a0h
;1- iend wchar
Cp1251_Utf16_tbl:
db 0ah
db 080h, 096h
dw 0402h, 0403h, 0201ah, 0453h, 0201eh, 02026h, 02020h, 02021h, 020ach, 02030h, 0409h, 02039h, 040ah, 040ch, 040bh, 040fh, 0452h, 02018h, 02019h, 0201ch, 0201dh, 02022h, 02013h
db 098h, 09fh
dw 02014h, 02122h, 0459h, 0203ah, 045ah, 045ch, 045bh, 045fh
db 0a1h, 0a3h
dw 040eh, 045eh, 0408h
db 0a5h, 0a5h
dw 0490h
db 0a8h, 0a8h
dw 0401h
db 0aah, 0aah
dw 0404h
db 0afh, 0afh
dw 0407h
db 0b2h, 0b4h
dw 0406h, 0456h, 0491h
db 0b8h, 0bah
dw 0451h, 02116h, 0454h
dw 0bch, 0ffh, 0458h, 0405h, 0455h, 0457h, 0410h, 0411h, 0412h, 0413h, 0414h, 0415h, 0416h, 0417h, 0418h, 0419h, 041ah, 041bh, 041ch, 041dh, 041eh, 041fh, 0420h, 0421h, 0422h, 0423h, 0424h, 0425h, 0426h, 0427h, 0428h, 0429h, 042ah, 042bh, 042ch, 042dh, 042eh, 042fh, 0430h, 0431h, 0432h, 0433h, 0434h, 0435h, 0436h, 0437h, 0438h, 0439h, 043ah, 043bh, 043ch, 043dh, 043eh, 043fh, 0440h, 0441h, 0442h, 0443h, 0444h, 0445h, 0446h, 0447h, 0448h, 0449h, 044ah, 044bh, 044ch, 044dh, 044eh, 044fh
;2- iend wchar
Cp10007_Utf16_tbl:
db 5h
db 080h, 0a1h
dw 0410h, 0411h, 0412h, 0413h, 0414h, 0415h, 0416h, 0417h, 0418h, 0419h, 041ah, 041bh, 041ch, 041dh, 041eh, 041fh, 0420h, 0421h, 0422h, 0423h, 0424h, 0425h, 0426h, 0427h, 0428h, 0429h, 042ah, 042bh, 042ch, 042dh, 042eh, 042fh, 02020h, 0b0h
db 0a4h, 0a8h
dw 0a7h, 02022h, 0b6h, 0406h, 0aeh
db 0aah, 0b0h
dw 02122h, 0402h, 0452h, 02260h, 0403h, 0453h, 0221eh
db 0b2h, 0b4h
dw 02264h, 02265h, 0456h
db 0b6h, 0ffh
dw 02202h, 0408h, 0404h, 0454h, 0407h, 0457h, 0409h, 0459h, 040ah, 045ah, 0458h, 0405h, 0ach, 0221ah, 0192h, 02248h, 02206h, 0abh, 0bbh, 02026h, 0a0h, 040bh, 045bh, 040ch, 045ch, 0455h, 02013h, 02014h, 0201ch, 0201dh, 02018h, 02019h, 0f7h, 0201eh, 040eh, 045eh, 040fh, 045fh, 02116h, 0401h, 0451h, 044fh, 0430h, 0431h, 0432h, 0433h, 0434h, 0435h, 0436h, 0437h, 0438h, 0439h, 043ah, 043bh, 043ch, 043dh, 043eh, 043fh, 0440h, 0441h, 0442h, 0443h, 0444h, 0445h, 0446h, 0447h, 0448h, 0449h, 044ah, 044bh, 044ch, 044dh, 044eh, 0a4h
;3- iend wchar
Koi8r_Utf16_tbl:
db 1h
db 080h, 0ffh
dw 02500h, 02502h, 0250ch, 02510h, 02514h, 02518h, 0251ch, 02524h, 0252ch, 02534h, 0253ch, 02580h, 02584h, 02588h, 0258ch, 02590h, 02591h, 02592h, 02593h, 02320h, 025a0h, 02219h, 0221ah, 02248h, 02264h, 02265h, 0a0h, 02321h, 0b0h, 0b2h, 0b7h, 0f7h, 02550h, 02551h, 02552h, 0451h, 02553h, 02554h, 02555h, 02556h, 02557h, 02558h, 02559h, 0255ah, 0255bh, 0255ch, 0255dh, 0255eh, 0255fh, 02560h, 02561h, 0401h, 02562h, 02563h, 02564h, 02565h, 02566h, 02567h, 02568h, 02569h, 0256ah, 0256bh, 0256ch, 0a9h, 044eh, 0430h, 0431h, 0446h, 0434h, 0435h, 0444h, 0433h, 0445h, 0438h, 0439h, 043ah, 043bh, 043ch, 043dh, 043eh, 043fh, 044fh, 0440h, 0441h, 0442h, 0443h, 0436h, 0432h, 044ch, 044bh, 0437h, 0448h, 044dh, 0449h, 0447h, 044ah, 042eh, 0410h, 0411h, 0426h, 0414h, 0415h, 0424h, 0413h, 0425h, 0418h, 0419h, 041ah, 041bh, 041ch, 041dh, 041eh, 041fh, 042fh, 0420h, 0421h, 0422h, 0423h, 0416h, 0412h, 042ch, 042bh, 0417h, 0428h, 042dh, 0429h, 0427h, 042ah
;4- iend wchar
Mac_Utf16_tbl:
db 5h
db 080h, 0a2h
dw 0410h, 0411h, 0412h, 0413h, 0414h, 0415h, 0416h, 0417h, 0418h, 0419h, 041ah, 041bh, 041ch, 041dh, 041eh, 041fh, 0420h, 0421h, 0422h, 0423h, 0424h, 0425h, 0426h, 0427h, 0428h, 0429h, 042ah, 042bh, 042ch, 042dh, 042eh, 042fh, 02020h, 0b0h, 0490h
db 0a4h, 0a8h
dw 0a7h, 02022h, 0b6h, 0406h, 0aeh
db 0aah, 0b0h
dw 02122h, 0402h, 0452h, 02260h, 0403h, 0453h, 0221eh
db 0b2h, 0b4h
dw 02264h, 02265h, 0456h
db 0b6h, 0ffh
dw 0491h, 0408h, 0404h, 0454h, 0407h, 0457h, 0409h, 0459h, 040ah, 045ah, 0458h, 0405h, 0ach, 0221ah, 0192h, 02248h, 02206h, 0abh, 0bbh, 02026h, 0a0h, 040bh, 045bh, 040ch, 045ch, 0455h, 02013h, 02014h, 0201ch, 0201dh, 02018h, 02019h, 0f7h, 0201eh, 040eh, 045eh, 040fh, 045fh, 02116h, 0401h, 0451h, 044fh, 0430h, 0431h, 0432h, 0433h, 0434h, 0435h, 0436h, 0437h, 0438h, 0439h, 043ah, 043bh, 043ch, 043dh, 043eh, 043fh, 0440h, 0441h, 0442h, 0443h, 0444h, 0445h, 0446h, 0447h, 0448h, 0449h, 044ah, 044bh, 044ch, 044dh, 044eh, 020ach
;5- iend wchar
Cp8859_5_Utf16_tbl:
db 2h
db 0a1h, 0ach
dw 0401h, 0402h, 0403h, 0404h, 0405h, 0406h, 0407h, 0408h, 0409h, 040ah, 040bh, 040ch
db 0aeh, 0ffh
dw 040eh, 040fh, 0410h, 0411h, 0412h, 0413h, 0414h, 0415h, 0416h, 0417h, 0418h, 0419h, 041ah, 041bh, 041ch, 041dh, 041eh, 041fh, 0420h, 0421h, 0422h, 0423h, 0424h, 0425h, 0426h, 0427h, 0428h, 0429h, 042ah, 042bh, 042ch, 042dh, 042eh, 042fh, 0430h, 0431h, 0432h, 0433h, 0434h, 0435h, 0436h, 0437h, 0438h, 0439h, 043ah, 043bh, 043ch, 043dh, 043eh, 043fh, 0440h, 0441h, 0442h, 0443h, 0444h, 0445h, 0446h, 0447h, 0448h, 0449h, 044ah, 044bh, 044ch, 044dh, 044eh, 044fh, 02116h, 0451h, 0452h, 0453h, 0454h, 0455h, 0456h, 0457h, 0458h, 0459h, 045ah, 045bh, 045ch, 0a7h, 045eh, 045fh
CheckRange:
dd Range_0_9
db 10, 0
dd Range_a_f
db 16, 10
dd Range_ac_fc
db 16, 10
db 0
;CheckTable:
; istruc CheckSymbol db FUNCTION_Symbol,GetPlusSign,0,0 iend
; istruc CheckSymbol db FUNCTION_Symbol,GetMinusSign,0,MINUS_SIGN iend
; istruc CheckSymbol db FUNCTION_Symbol,GetFloationPointSign,FLOAT_VALUE,0 iend
; istruc CheckSymbol
; dd Symbol_ec
; db EXP_VALUE, EXP_FLAG, SIGN_FLAG | NUMBER_FLAG, 10
; iend
; istruc CheckSymbol
; dd Symbol_ec
; db EXP_VALUE, EXP_FLAG, SIGN_FLAG | NUMBER_FLAG, 10
; iend
; istruc CheckSymbol
; dd Symbol_h
; db HEX_VALUE, MODE_FLAG, SEPARATOR_FLAG, 16
; iend
; istruc CheckSymbol
; dd Symbol_hc
; db HEX_VALUE, MODE_FLAG, SEPARATOR_FLAG, 16
; iend
; istruc CheckSymbol
; dd Symbol_x
; db HEX_VALUE, MODE_FLAG, NUMBER_FLAG | ZERO_FLAG, 16
; iend
; istruc CheckSymbol
; dd Symbol_xc
; db HEX_VALUE, MODE_FLAG, NUMBER_FLAG | ZERO_FLAG, 16
; iend
; istruc CheckSymbol
; dd Symbol_q
; db OCTAL_VALUE, MODE_FLAG, SEPARATOR_FLAG, 8
; iend
; istruc CheckSymbol
; dd Symbol_qc
; db OCTAL_VALUE, MODE_FLAG, SEPARATOR_FLAG, 8
; iend
; istruc CheckSymbol
; dd Symbol_b
; db BIN_VALUE, MODE_FLAG, SEPARATOR_FLAG, 2
; iend
; istruc CheckSymbol
; dd Symbol_bc
; db BIN_VALUE, MODE_FLAG, SEPARATOR_FLAG, 2
; iend
;Floating_point_symbol:
; istruc CheckSymbol
; dd Symbol_es
; db FLOAT_VALUE, FLOAT_DOT_FLAG, NUMBER_FLAG | SEPARATOR_FLAG | EXP_FLAG, 10
; iend
;Positive_sign_symbol:
; istruc CheckSymbol
; dd Symbol_ps
; db POS_VALUE, SIGN_FLAG, NUMBER_FLAG | MODE_FLAG | FLOAT_DOT_FLAG | ZERO_FLAG | MODE_ZERO_FLAG, 0
; iend
;Negative_sign_symbol:
; istruc CheckSymbol
; dd Symbol_ms
; db NEG_VALUE, SIGN_FLAG, NUMBER_FLAG | MODE_FLAG | FLOAT_DOT_FLAG | ZERO_FLAG | MODE_ZERO_FLAG, 0
; iend
; dd 0
;
; istruc CheckSymbol db PARAMETER_Symbol,'E',FLOAT_VALUE,0 iend
; istruc CheckSymbol db PARAMETER_Symbol,'E',FLOAT_VALUE,0 iend
; istruc CheckSymbol db PARAMETER_Symbol,'e',FLOAT_VALUE,0 iend
; istruc CheckSymbol db PARAMETER_Symbol,'H',HEX_VALUE,0 iend
; istruc CheckSymbol db PARAMETER_Symbol,'h',HEX_VALUE,0 iend
; istruc CheckSymbol db PARAMETER_Symbol,'X',HEX_VALUE,HEX_SIGN iend
; istruc CheckSymbol db PARAMETER_Symbol,'x',HEX_VALUE,HEX_SIGN iend
; istruc CheckSymbol db PARAMETER_Symbol,'Q',OCTAL_VALUE,0 iend
; istruc CheckSymbol db PARAMETER_Symbol,'q',OCTAL_VALUE,0 iend
; CheckSymbol istruc PARAMETER_Symbol,'B',BIN_VALUE,0 iend
; CheckSymbol istruc PARAMETER_Symbol,'b',BIN_VALUE,0 iend
db 0
;Range_0_9_8 label byte
; db '0', '9'
;Range_0_9_8r label byte
; db 26h, 2fh
;Range_0_9_16 label word
; dw '0', '9'
;Range_0_9_rutf label dword
; dd 26h, 2fh
Range_0_9: istruc Symbol
db '0',20h,'0',20h
iend
istruc Symbol
db '9',29h,'9',29h
iend
Range_a_f: istruc Symbol
db 'a',80h,'a',80h
iend
istruc Symbol
db 'z',85h,'a',85h
iend
Range_ac_fc: istruc Symbol
db 'A',0a0h,'A',0a0h
iend
istruc Symbol
db 'Z',0a5h,'Z',0a5h
iend
;Range_a_f_8 label byte
; db 'a', 'f'
;Range_a_f_8r label byte
; db 80h, 85h
;Range_a_f_16 label word
; dw 'a', 'f'
;Range_a_f_rutf label dword
; dd 80h, 85h
;Range_ac_fc_8 label byte
; db 'A', 'F'
;Range_ac_fc_8r label byte
; db 0a0h, 0a5h
;Range_ac_fc_16 label word
; dw 'A', 'F'
;Range_ac_fc_rutf label dword
; dd 0a0h, 0a5h
Symbol_e istruc Symbol
db 'e', 084h, 'e', 084h
iend
Symbol_ec istruc Symbol
db 'E', 0a4h, 'E', 0a4h
iend
Symbol_h istruc Symbol
db 'h', 84h, 'h', 84h
iend
Symbol_hc istruc Symbol
db 'H',0a4h,'H',0a4h
iend
Symbol_x istruc Symbol
db 'x',84h,'x',84h
iend
Symbol_xc istruc Symbol
db 'X',0a4h,'X',0a4h
iend
Symbol_q istruc Symbol
db 'q',84h,'q',84h
iend
Symbol_qc istruc Symbol
db 'Q',0a4h,'Q',0a4h
iend
Symbol_b istruc Symbol
db 'b',81h,'b',81h
iend
Symbol_bc istruc Symbol
db 'B',0a1h,'B',0a1h
iend
Symbol_ms istruc Symbol
db '-',0a1h,'-',0a1h
iend
Symbol_ps istruc Symbol
db '+',0a1h,'+',0a1h
iend
Symbol_es istruc Symbol
db ',',0a1h,',',0a1h
iend
GetSymbol_table:
dd GetSymbol8, GetSymbol8, GetSymbol16, GetSymbolRutf
ConvertSymbol_table:
dd GetSymbol8, GetSymbol8_8P, GetSymbol8_16, GetSymbol8_Rutf
dd GetSymbol8P_8, GetSymbol8P, GetSymbol8P_16, GetSymbol8P_Rutf
dd GetSymbol16_8, GetSymbol16_8P, GetSymbol16, GetSymbol16_Rutf
dd GetSymbolRutf_8, GetSymbolRutf_8P, GetSymbolRutf_16, GetSymbolRutf
|
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_21829_1090.asm | ljhsiun2/medusa | 9 | 93253 | .global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r13
push %r14
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_A_ht+0x11116, %rsi
lea addresses_WT_ht+0x1ffe, %rdi
add %r13, %r13
mov $65, %rcx
rep movsq
sub %rdx, %rdx
lea addresses_normal_ht+0x13af6, %r10
nop
nop
nop
add $35048, %r14
movb $0x61, (%r10)
nop
nop
dec %rdi
lea addresses_UC_ht+0x9dec, %rsi
lea addresses_WT_ht+0x643e, %rdi
nop
nop
nop
nop
cmp %rdx, %rdx
mov $56, %rcx
rep movsw
nop
nop
nop
nop
xor %rdi, %rdi
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %r14
pop %r13
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r14
push %r15
push %rcx
push %rdi
push %rdx
push %rsi
// REPMOV
lea addresses_normal+0x1f43e, %rsi
lea addresses_A+0x943e, %rdi
nop
nop
nop
nop
nop
dec %rdx
mov $44, %rcx
rep movsq
nop
nop
nop
nop
nop
cmp $59470, %r15
// Faulty Load
lea addresses_RW+0xe43e, %rcx
clflush (%rcx)
add %rdx, %rdx
movb (%rcx), %r15b
lea oracles, %rdi
and $0xff, %r15
shlq $12, %r15
mov (%rdi,%r15,1), %r15
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %r15
pop %r14
ret
/*
<gen_faulty_load>
[REF]
{'src': {'type': 'addresses_RW', 'same': False, 'size': 2, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_normal', 'congruent': 11, 'same': False}, 'dst': {'type': 'addresses_A', 'congruent': 10, 'same': False}, 'OP': 'REPM'}
[Faulty Load]
{'src': {'type': 'addresses_RW', 'same': True, 'size': 1, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'type': 'addresses_A_ht', 'congruent': 3, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 5, 'same': True}, 'OP': 'REPM'}
{'dst': {'type': 'addresses_normal_ht', 'same': False, 'size': 1, 'congruent': 3, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'src': {'type': 'addresses_UC_ht', 'congruent': 1, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 10, 'same': False}, 'OP': 'REPM'}
{'32': 21829}
32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32
*/
|
libsrc/gfx/narrow/drawb_callee.asm | ahjelm/z88dk | 640 | 86885 | <reponame>ahjelm/z88dk<gh_stars>100-1000
;
; Z88 Graphics Functions - Small C+ stubs
;
; Written around the Interlogic Standard Library
;
;
; ----- void __CALLEE__ drawb(int x, int y, int h, int v)
;
; $Id: drawb_callee.asm $
;
IF !__CPU_INTEL__ & !__CPU_GBZ80__
SECTION code_graphics
PUBLIC drawb_callee
PUBLIC _drawb_callee
PUBLIC asm_drawb
EXTERN drawbox
EXTERN plotpixel
EXTERN swapgfxbk
EXTERN __graphics_end
INCLUDE "graphics/grafix.inc"
.drawb_callee
._drawb_callee
pop af
pop bc ; height
pop de
ld b,e ; width
pop hl ; x
pop de
ld h,e ; y
push af
.asm_drawb
push ix
ld ix,plotpixel
IF NEED_swapgfxbk = 1
call swapgfxbk
ENDIF
call drawbox
IF NEED_swapgfxbk
jp __graphics_end
ELSE
IF !__CPU_INTEL__ & !__CPU_GBZ80__
pop ix
ENDIF
ret
ENDIF
ENDIF
|
oeis/037/A037462.asm | neoneye/loda-programs | 11 | 242641 | <gh_stars>10-100
; A037462: a(n) = Sum_{i = 0..m} d(i)*8^i, where Sum_{i = 0..m} d(i)*4^i is the base 4 representation of n.
; Submitted by <NAME>
; 0,1,2,3,8,9,10,11,16,17,18,19,24,25,26,27,64,65,66,67,72,73,74,75,80,81,82,83,88,89,90,91,128,129,130,131,136,137,138,139,144,145,146,147,152,153,154,155,192,193,194,195,200,201,202,203,208,209,210,211,216,217,218,219,512,513,514,515,520,521,522,523,528,529,530,531,536,537,538,539,576,577,578,579,584,585,586,587,592,593,594,595,600,601,602,603,640,641,642,643
mov $3,1
lpb $0
mov $2,$0
div $0,4
mod $2,4
mul $2,$3
add $1,$2
mul $3,8
lpe
mov $0,$1
|
src/allmul.asm | abainbridge/vs_libc_replacement | 0 | 89509 | .586
.MODEL FLAT, C
.CODE
; The x86 instruction-set has no 64-bit x 64-bit multiply instruction,
; so the compiler inserts a call to this function.
;
; The standard Visual Studio implementation is 48 bytes long. This one
; is 31. Comically, the VS version includes conditional branches,
; presumably because that was an optimization on a 80386.
;
; Let's call the 64-bit input params A and B. We deal with them in
; 32-bit chunks: AL, AH, BL, BH.
;
; The result we want is the bottom 64 bits of A x B. That is given by:
; AL * BL + ((AL * BH) << 32) + ((BL * AH) << 32)
;
; Input params are on the stack:
; ESP+8 AH
; ESP+12 AL
; ESP+16 BH
; ESP+20 BL
;
; The result is in registers:
; EDX - High
; EAX - Low
_allmul PROC NEAR USES ESI;
mov ecx, dword ptr [esp + 16]
mov esi, dword ptr [esp + 8]
mov eax, ecx
imul ecx, dword ptr [esp + 12]
mul esi
imul esi, dword ptr [esp + 20]
add edx, ecx
add edx, esi
ret 16
_allmul ENDP
END
|
programs/oeis/026/A026809.asm | neoneye/loda | 22 | 245262 | ; A026809: a(n) = 3^n*(3^n-1)*(3^n-2)/6.
; 0,1,84,2925,85320,2362041,64304604,1741001445,47050068240,1270739210481,34313445309924,926494403955165,25015631334908760,675424587904113321,18236486750190760044,492385348146244352085,13294406252968671566880,358948985507335487598561,9691622758792692429038964,261673815838254410157680205,7065193039790534524016202600,190760212183763421252055554201,5150525729946383275905428370684,139064194717415286568848018627525,3754733257449979180435015867375920,101377797951867335859435021571628241
mov $1,3
pow $1,$0
bin $1,3
mov $0,$1
|
oeis/138/A138625.asm | neoneye/loda-programs | 11 | 173716 | <reponame>neoneye/loda-programs<filename>oeis/138/A138625.asm
; A138625: Primes congruent to 12 mod 17.
; Submitted by <NAME>
; 29,97,131,199,233,607,641,709,743,811,947,1049,1117,1151,1321,1423,1559,1627,1831,1933,2069,2137,2239,2273,2341,2477,2579,2647,2749,2851,2953,3089,3191,3259,3361,3463,3701,3769,3803,4007,4177,4211,4483,4517,4721,4789,4993,5197,5231,5333,5503,5639,5741,5843,6047,6217,6353,6421,6659,6761,6829,6863,7237,7577,7883,7951,8053,8087,8291,8461,8563,8597,8699,8971,9209,9277,9311,9413,9719,9787,9923,10093,10331,10399,10433,10501,10739,10909,11113,11317,11351,11657,11827,12269,12473,12541,12983,13187,13697
mov $2,$0
add $2,2
pow $2,2
lpb $2
add $1,28
mov $3,$1
seq $3,10051 ; Characteristic function of primes: 1 if n is prime, else 0.
sub $0,$3
add $1,6
mov $4,$0
max $4,0
cmp $4,$0
mul $2,$4
sub $2,1
lpe
mov $0,$1
add $0,29
|
oeis/206/A206531.asm | neoneye/loda-programs | 11 | 28638 | <gh_stars>10-100
; A206531: a(n) = (2(n+1)(2n+1)-1) * a(n-1) + 2n(2n-1) * a(n-2), a(0)=0, a(1)=2.
; Submitted by <NAME>
; 0,2,58,3250,292498,38609738,7026972314,1686473355362,516060846740770,196103121761492602,90599642253809582122,50011002524102889331346,32507151640666878065374898,24575406640344159817423422890
mul $0,2
mov $1,1
lpb $0
add $2,2
mul $2,$0
sub $0,1
add $3,$1
add $3,$1
add $1,$2
add $2,$3
lpe
mov $0,$2
div $0,2
sub $1,$0
mov $0,$1
sub $0,1
|
src/fltk-text_buffers.adb | micahwelf/FLTK-Ada | 1 | 1309 |
with
Interfaces.C.Strings,
Ada.Strings.Unbounded,
Ada.Containers,
System;
use
Ada.Strings.Unbounded;
use type
System.Address,
Interfaces.C.int,
Interfaces.C.Strings.chars_ptr,
Ada.Containers.Count_Type;
package body FLTK.Text_Buffers is
function new_fl_text_buffer
(RS, PGS : in Interfaces.C.int)
return System.Address;
pragma Import (C, new_fl_text_buffer, "new_fl_text_buffer");
pragma Inline (new_fl_text_buffer);
procedure free_fl_text_buffer
(TB : in System.Address);
pragma Import (C, free_fl_text_buffer, "free_fl_text_buffer");
pragma Inline (free_fl_text_buffer);
procedure fl_text_buffer_add_modify_callback
(TB, CB, UD : in System.Address);
pragma Import (C, fl_text_buffer_add_modify_callback,
"fl_text_buffer_add_modify_callback");
pragma Inline (fl_text_buffer_add_modify_callback);
procedure fl_text_buffer_add_predelete_callback
(TB, CB, UD : in System.Address);
pragma Import (C, fl_text_buffer_add_predelete_callback,
"fl_text_buffer_add_predelete_callback");
pragma Inline (fl_text_buffer_add_predelete_callback);
procedure fl_text_buffer_call_modify_callbacks
(TB : in System.Address);
pragma Import (C, fl_text_buffer_call_modify_callbacks,
"fl_text_buffer_call_modify_callbacks");
pragma Inline (fl_text_buffer_call_modify_callbacks);
procedure fl_text_buffer_call_predelete_callbacks
(TB : in System.Address);
pragma Import (C, fl_text_buffer_call_predelete_callbacks,
"fl_text_buffer_call_predelete_callbacks");
pragma Inline (fl_text_buffer_call_predelete_callbacks);
function fl_text_buffer_loadfile
(TB : in System.Address;
N : in Interfaces.C.char_array;
B : in Interfaces.C.int)
return Interfaces.C.int;
pragma Import (C, fl_text_buffer_loadfile, "fl_text_buffer_loadfile");
pragma Inline (fl_text_buffer_loadfile);
function fl_text_buffer_appendfile
(TB : in System.Address;
N : in Interfaces.C.char_array;
B : in Interfaces.C.int)
return Interfaces.C.int;
pragma Import (C, fl_text_buffer_appendfile, "fl_text_buffer_appendfile");
pragma Inline (fl_text_buffer_appendfile);
function fl_text_buffer_insertfile
(TB : in System.Address;
N : in Interfaces.C.char_array;
P, B : in Interfaces.C.int)
return Interfaces.C.int;
pragma Import (C, fl_text_buffer_insertfile, "fl_text_buffer_insertfile");
pragma Inline (fl_text_buffer_insertfile);
function fl_text_buffer_outputfile
(TB : in System.Address;
N : in Interfaces.C.char_array;
F, T : in Interfaces.C.int;
B : in Interfaces.C.int)
return Interfaces.C.int;
pragma Import (C, fl_text_buffer_outputfile, "fl_text_buffer_outputfile");
pragma Inline (fl_text_buffer_outputfile);
function fl_text_buffer_savefile
(TB : in System.Address;
N : in Interfaces.C.char_array;
B : in Interfaces.C.int)
return Interfaces.C.int;
pragma Import (C, fl_text_buffer_savefile, "fl_text_buffer_savefile");
pragma Inline (fl_text_buffer_savefile);
procedure fl_text_buffer_insert
(TB : in System.Address;
P : in Interfaces.C.int;
I : in Interfaces.C.char_array);
pragma Import (C, fl_text_buffer_insert, "fl_text_buffer_insert");
pragma Inline (fl_text_buffer_insert);
procedure fl_text_buffer_append
(TB : in System.Address;
I : in Interfaces.C.char_array);
pragma Import (C, fl_text_buffer_append, "fl_text_buffer_append");
pragma Inline (fl_text_buffer_append);
procedure fl_text_buffer_replace
(TB : in System.Address;
S, F : in Interfaces.C.int;
T : in Interfaces.C.char_array);
pragma Import (C, fl_text_buffer_replace, "fl_text_buffer_replace");
pragma Inline (fl_text_buffer_replace);
procedure fl_text_buffer_remove
(TB : in System.Address;
S, F : in Interfaces.C.int);
pragma Import (C, fl_text_buffer_remove, "fl_text_buffer_remove");
pragma Inline (fl_text_buffer_remove);
function fl_text_buffer_get_text
(TB : in System.Address)
return Interfaces.C.Strings.chars_ptr;
pragma Import (C, fl_text_buffer_get_text, "fl_text_buffer_get_text");
pragma Inline (fl_text_buffer_get_text);
procedure fl_text_buffer_set_text
(TB : in System.Address;
T : in Interfaces.C.char_array);
pragma Import (C, fl_text_buffer_set_text, "fl_text_buffer_set_text");
pragma Inline (fl_text_buffer_set_text);
function fl_text_buffer_byte_at
(TB : in System.Address;
P : in Interfaces.C.int)
return Interfaces.C.char;
pragma Import (C, fl_text_buffer_byte_at, "fl_text_buffer_byte_at");
pragma Inline (fl_text_buffer_byte_at);
function fl_text_buffer_char_at
(TB : in System.Address;
P : in Interfaces.C.int)
return Interfaces.C.unsigned;
pragma Import (C, fl_text_buffer_char_at, "fl_text_buffer_char_at");
pragma Inline (fl_text_buffer_char_at);
function fl_text_buffer_text_range
(TB : in System.Address;
S, F : in Interfaces.C.int)
return Interfaces.C.Strings.chars_ptr;
pragma Import (C, fl_text_buffer_text_range, "fl_text_buffer_text_range");
pragma Inline (fl_text_buffer_text_range);
function fl_text_buffer_next_char
(TB : in System.Address;
P : in Interfaces.C.int)
return Interfaces.C.int;
pragma Import (C, fl_text_buffer_next_char, "fl_text_buffer_next_char");
pragma Inline (fl_text_buffer_next_char);
function fl_text_buffer_prev_char
(TB : in System.Address;
P : in Interfaces.C.int)
return Interfaces.C.int;
pragma Import (C, fl_text_buffer_prev_char, "fl_text_buffer_prev_char");
pragma Inline (fl_text_buffer_prev_char);
function fl_text_buffer_count_displayed_characters
(TB : in System.Address;
S, F : in Interfaces.C.int)
return Interfaces.C.int;
pragma Import (C, fl_text_buffer_count_displayed_characters,
"fl_text_buffer_count_displayed_characters");
pragma Inline (fl_text_buffer_count_displayed_characters);
function fl_text_buffer_count_lines
(TB : in System.Address;
S, F : in Interfaces.C.int)
return Interfaces.C.int;
pragma Import (C, fl_text_buffer_count_lines, "fl_text_buffer_count_lines");
pragma Inline (fl_text_buffer_count_lines);
function fl_text_buffer_length
(TB : in System.Address)
return Interfaces.C.int;
pragma Import (C, fl_text_buffer_length, "fl_text_buffer_length");
pragma Inline (fl_text_buffer_length);
function fl_text_buffer_get_tab_distance
(TB : in System.Address)
return Interfaces.C.int;
pragma Import (C, fl_text_buffer_get_tab_distance, "fl_text_buffer_get_tab_distance");
pragma Inline (fl_text_buffer_get_tab_distance);
procedure fl_text_buffer_set_tab_distance
(TB : in System.Address;
T : in Interfaces.C.int);
pragma Import (C, fl_text_buffer_set_tab_distance, "fl_text_buffer_set_tab_distance");
pragma Inline (fl_text_buffer_set_tab_distance);
function fl_text_buffer_selection_position
(TB : in System.Address;
S, E : out Interfaces.C.int)
return Interfaces.C.int;
pragma Import (C, fl_text_buffer_selection_position, "fl_text_buffer_selection_position");
pragma Inline (fl_text_buffer_selection_position);
function fl_text_buffer_secondary_selection_position
(TB : in System.Address;
S, E : out Interfaces.C.int)
return Interfaces.C.int;
pragma Import (C, fl_text_buffer_secondary_selection_position,
"fl_text_buffer_secondary_selection_position");
pragma Inline (fl_text_buffer_secondary_selection_position);
procedure fl_text_buffer_select
(TB : in System.Address;
S, E : in Interfaces.C.int);
pragma Import (C, fl_text_buffer_select, "fl_text_buffer_select");
pragma Inline (fl_text_buffer_select);
procedure fl_text_buffer_secondary_select
(TB : in System.Address;
S, E : in Interfaces.C.int);
pragma Import (C, fl_text_buffer_secondary_select, "fl_text_buffer_secondary_select");
pragma Inline (fl_text_buffer_secondary_select);
function fl_text_buffer_selected
(TB : in System.Address)
return Interfaces.C.int;
pragma Import (C, fl_text_buffer_selected, "fl_text_buffer_selected");
pragma Inline (fl_text_buffer_selected);
function fl_text_buffer_secondary_selected
(TB : in System.Address)
return Interfaces.C.int;
pragma Import (C, fl_text_buffer_secondary_selected, "fl_text_buffer_secondary_selected");
pragma Inline (fl_text_buffer_secondary_selected);
function fl_text_buffer_selection_text
(TB : in System.Address)
return Interfaces.C.Strings.chars_ptr;
pragma Import (C, fl_text_buffer_selection_text, "fl_text_buffer_selection_text");
pragma Inline (fl_text_buffer_selection_text);
function fl_text_buffer_secondary_selection_text
(TB : in System.Address)
return Interfaces.C.Strings.chars_ptr;
pragma Import (C, fl_text_buffer_secondary_selection_text,
"fl_text_buffer_secondary_selection_text");
pragma Inline (fl_text_buffer_secondary_selection_text);
procedure fl_text_buffer_replace_selection
(TB : in System.Address;
T : in Interfaces.C.char_array);
pragma Import (C, fl_text_buffer_replace_selection, "fl_text_buffer_replace_selection");
pragma Inline (fl_text_buffer_replace_selection);
procedure fl_text_buffer_replace_secondary_selection
(TB : in System.Address;
T : in Interfaces.C.char_array);
pragma Import (C, fl_text_buffer_replace_secondary_selection,
"fl_text_buffer_replace_secondary_selection");
pragma Inline (fl_text_buffer_replace_secondary_selection);
procedure fl_text_buffer_remove_selection
(TB : in System.Address);
pragma Import (C, fl_text_buffer_remove_selection, "fl_text_buffer_remove_selection");
pragma Inline (fl_text_buffer_remove_selection);
procedure fl_text_buffer_remove_secondary_selection
(TB : in System.Address);
pragma Import (C, fl_text_buffer_remove_secondary_selection,
"fl_text_buffer_remove_secondary_selection");
pragma Inline (fl_text_buffer_remove_secondary_selection);
procedure fl_text_buffer_unselect
(TB : in System.Address);
pragma Import (C, fl_text_buffer_unselect, "fl_text_buffer_unselect");
pragma Inline (fl_text_buffer_unselect);
procedure fl_text_buffer_secondary_unselect
(TB : in System.Address);
pragma Import (C, fl_text_buffer_secondary_unselect, "fl_text_buffer_secondary_unselect");
pragma Inline (fl_text_buffer_secondary_unselect);
procedure fl_text_buffer_highlight
(TB : in System.Address;
F, T : in Interfaces.C.int);
pragma Import (C, fl_text_buffer_highlight, "fl_text_buffer_highlight");
pragma Inline (fl_text_buffer_highlight);
function fl_text_buffer_highlight_text
(TB : in System.Address)
return Interfaces.C.Strings.chars_ptr;
pragma Import (C, fl_text_buffer_highlight_text, "fl_text_buffer_highlight_text");
pragma Inline (fl_text_buffer_highlight_text);
procedure fl_text_buffer_unhighlight
(TB : in System.Address);
pragma Import (C, fl_text_buffer_unhighlight, "fl_text_buffer_unhighlight");
pragma Inline (fl_text_buffer_unhighlight);
function fl_text_buffer_findchar_forward
(TB : in System.Address;
SP : in Interfaces.C.int;
IT : in Interfaces.C.unsigned;
FP : out Interfaces.C.int)
return Interfaces.C.int;
pragma Import (C, fl_text_buffer_findchar_forward, "fl_text_buffer_findchar_forward");
pragma Inline (fl_text_buffer_findchar_forward);
function fl_text_buffer_findchar_backward
(TB : in System.Address;
SP : in Interfaces.C.int;
IT : in Interfaces.C.unsigned;
FP : out Interfaces.C.int)
return Interfaces.C.int;
pragma Import (C, fl_text_buffer_findchar_backward, "fl_text_buffer_findchar_backward");
pragma Inline (fl_text_buffer_findchar_backward);
function fl_text_buffer_search_forward
(TB : in System.Address;
SP : in Interfaces.C.int;
IT : in Interfaces.C.char_array;
FP : out Interfaces.C.int;
CA : in Interfaces.C.int)
return Interfaces.C.int;
pragma Import (C, fl_text_buffer_search_forward, "fl_text_buffer_search_forward");
pragma Inline (fl_text_buffer_search_forward);
function fl_text_buffer_search_backward
(TB : in System.Address;
SP : in Interfaces.C.int;
IT : in Interfaces.C.char_array;
FP : out Interfaces.C.int;
CA : in Interfaces.C.int)
return Interfaces.C.int;
pragma Import (C, fl_text_buffer_search_backward, "fl_text_buffer_search_backward");
pragma Inline (fl_text_buffer_search_backward);
function fl_text_buffer_word_start
(TB : in System.Address;
P : in Interfaces.C.int)
return Interfaces.C.int;
pragma Import (C, fl_text_buffer_word_start, "fl_text_buffer_word_start");
pragma Inline (fl_text_buffer_word_start);
function fl_text_buffer_word_end
(TB : in System.Address;
P : in Interfaces.C.int)
return Interfaces.C.int;
pragma Import (C, fl_text_buffer_word_end, "fl_text_buffer_word_end");
pragma Inline (fl_text_buffer_word_end);
function fl_text_buffer_line_start
(TB : in System.Address;
P : in Interfaces.C.int)
return Interfaces.C.int;
pragma Import (C, fl_text_buffer_line_start, "fl_text_buffer_line_start");
pragma Inline (fl_text_buffer_line_start);
function fl_text_buffer_line_end
(TB : in System.Address;
P : in Interfaces.C.int)
return Interfaces.C.int;
pragma Import (C, fl_text_buffer_line_end, "fl_text_buffer_line_end");
pragma Inline (fl_text_buffer_line_end);
function fl_text_buffer_line_text
(TB : in System.Address;
P : in Interfaces.C.int)
return Interfaces.C.Strings.chars_ptr;
pragma Import (C, fl_text_buffer_line_text, "fl_text_buffer_line_text");
pragma Inline (fl_text_buffer_line_text);
function fl_text_buffer_skip_lines
(TB : in System.Address;
S, L : in Interfaces.C.int)
return Interfaces.C.int;
pragma Import (C, fl_text_buffer_skip_lines, "fl_text_buffer_skip_lines");
pragma Inline (fl_text_buffer_skip_lines);
function fl_text_buffer_rewind_lines
(TB : in System.Address;
S, L : in Interfaces.C.int)
return Interfaces.C.int;
pragma Import (C, fl_text_buffer_rewind_lines, "fl_text_buffer_rewind_lines");
pragma Inline (fl_text_buffer_rewind_lines);
function fl_text_buffer_skip_displayed_characters
(TB : in System.Address;
S, N : in Interfaces.C.int)
return Interfaces.C.int;
pragma Import (C, fl_text_buffer_skip_displayed_characters,
"fl_text_buffer_skip_displayed_characters");
pragma Inline (fl_text_buffer_skip_displayed_characters);
procedure fl_text_buffer_canundo
(TB : in System.Address;
F : in Interfaces.C.char);
pragma Import (C, fl_text_buffer_canundo, "fl_text_buffer_canundo");
pragma Inline (fl_text_buffer_canundo);
procedure fl_text_buffer_copy
(TB, TB2 : in System.Address;
S, F, I : in Interfaces.C.int);
pragma Import (C, fl_text_buffer_copy, "fl_text_buffer_copy");
pragma Inline (fl_text_buffer_copy);
function fl_text_buffer_utf8_align
(TB : in System.Address;
P : in Interfaces.C.int)
return Interfaces.C.int;
pragma Import (C, fl_text_buffer_utf8_align, "fl_text_buffer_utf8_align");
pragma Inline (fl_text_buffer_utf8_align);
procedure Modify_Callback_Hook
(Pos : in Interfaces.C.int;
Inserted, Deleted, Restyled : in Interfaces.C.int;
Text : in Interfaces.C.Strings.chars_ptr;
UD : in System.Address)
is
Action : Modification;
Place : Position := Position (Pos);
Length : Natural;
Deleted_Text : Unbounded_String := To_Unbounded_String ("");
Ada_Text_Buffer : access Text_Buffer :=
Text_Buffer_Convert.To_Pointer (UD);
begin
if Ada_Text_Buffer.CB_Active then
if Inserted > 0 then
Length := Natural (Inserted);
Action := Insert;
elsif Deleted > 0 then
Length := Natural (Deleted);
Action := Delete;
if Text /= Interfaces.C.Strings.Null_Ptr then
Deleted_Text := To_Unbounded_String (Interfaces.C.Strings.Value (Text));
end if;
elsif Restyled > 0 then
Length := Natural (Restyled);
Action := Restyle;
else
Length := 0;
Action := None;
end if;
for CB of Ada_Text_Buffer.Modify_CBs loop
CB.all (Action, Place, Length, To_String (Deleted_Text));
end loop;
end if;
end Modify_Callback_Hook;
procedure Predelete_Callback_Hook
(Pos, Deleted : in Interfaces.C.int;
UD : in System.Address)
is
Place : Position := Position (Pos);
Length : Natural := Natural (Deleted);
Ada_Text_Buffer : access Text_Buffer :=
Text_Buffer_Convert.To_Pointer (UD);
begin
if Ada_Text_Buffer.CB_Active then
for CB of Ada_Text_Buffer.Predelete_CBs loop
CB.all (Place, Length);
end loop;
end if;
end Predelete_Callback_Hook;
procedure Finalize
(This : in out Text_Buffer) is
begin
if This.Void_Ptr /= System.Null_Address and then
This in Text_Buffer'Class
then
free_fl_text_buffer (This.Void_Ptr);
This.Void_Ptr := System.Null_Address;
end if;
end Finalize;
package body Forge is
function Create
(Requested_Size : in Natural := 0;
Preferred_Gap_Size : in Natural := 1024)
return Text_Buffer is
begin
return This : Text_Buffer do
This.Void_Ptr := new_fl_text_buffer
(Interfaces.C.int (Requested_Size),
Interfaces.C.int (Preferred_Gap_Size));
This.Modify_CBs := Modify_Vectors.Empty_Vector;
This.Predelete_CBs := Predelete_Vectors.Empty_Vector;
This.CB_Active := True;
fl_text_buffer_add_modify_callback
(This.Void_Ptr,
Modify_Callback_Hook'Address,
This'Address);
fl_text_buffer_add_predelete_callback
(This.Void_Ptr,
Predelete_Callback_Hook'Address,
This'Address);
end return;
end Create;
end Forge;
procedure Add_Modify_Callback
(This : in out Text_Buffer;
Func : in Modify_Callback) is
begin
This.Modify_CBs.Append (Func);
end Add_Modify_Callback;
procedure Add_Predelete_Callback
(This : in out Text_Buffer;
Func : in Predelete_Callback) is
begin
This.Predelete_CBs.Append (Func);
end Add_Predelete_Callback;
procedure Remove_Modify_Callback
(This : in out Text_Buffer;
Func : in Modify_Callback) is
begin
for I in reverse This.Modify_CBs.First_Index .. This.Modify_CBs.Last_Index loop
if This.Modify_CBs.Element (I) = Func then
This.Modify_CBs.Delete (I);
return;
end if;
end loop;
end Remove_Modify_Callback;
procedure Remove_Predelete_Callback
(This : in out Text_Buffer;
Func : in Predelete_Callback) is
begin
for I in reverse This.Predelete_CBs.First_Index .. This.Predelete_CBs.Last_Index loop
if This.Predelete_CBs.Element (I) = Func then
This.Predelete_CBs.Delete (I);
return;
end if;
end loop;
end Remove_Predelete_Callback;
procedure Call_Modify_Callbacks
(This : in out Text_Buffer) is
begin
fl_text_buffer_call_modify_callbacks (This.Void_Ptr);
end Call_Modify_Callbacks;
procedure Call_Predelete_Callbacks
(This : in out Text_Buffer) is
begin
fl_text_buffer_call_predelete_callbacks (This.Void_Ptr);
end Call_Predelete_Callbacks;
procedure Enable_Callbacks
(This : in out Text_Buffer) is
begin
This.CB_Active := True;
end Enable_Callbacks;
procedure Disable_Callbacks
(This : in out Text_Buffer) is
begin
This.CB_Active := False;
end Disable_Callbacks;
procedure Load_File
(This : in out Text_Buffer;
Name : in String;
Buffer : in Natural := 128 * 1024)
is
Err_No : Interfaces.C.int := fl_text_buffer_loadfile
(This.Void_Ptr,
Interfaces.C.To_C (Name),
Interfaces.C.int (Buffer));
begin
if Err_No /= 0 then
raise Storage_Error;
end if;
end Load_File;
procedure Append_File
(This : in out Text_Buffer;
Name : in String;
Buffer : in Natural := 128 * 1024)
is
Err_No : Interfaces.C.int := fl_text_buffer_appendfile
(This.Void_Ptr,
Interfaces.C.To_C (Name),
Interfaces.C.int (Buffer));
begin
if Err_No /= 0 then
raise Storage_Error;
end if;
end Append_File;
procedure Insert_File
(This : in out Text_Buffer;
Name : in String;
Place : in Position;
Buffer : in Natural := 128 * 1024)
is
Err_No : Interfaces.C.int := fl_text_buffer_insertfile
(This.Void_Ptr,
Interfaces.C.To_C (Name),
Interfaces.C.int (Place),
Interfaces.C.int (Buffer));
begin
if Err_No /= 0 then
raise Storage_Error;
end if;
end Insert_File;
procedure Output_File
(This : in Text_Buffer;
Name : in String;
Start, Finish : in Position;
Buffer : in Natural := 128 * 1024)
is
Err_No : Interfaces.C.int := fl_text_buffer_outputfile
(This.Void_Ptr,
Interfaces.C.To_C (Name),
Interfaces.C.int (Start),
Interfaces.C.int (Finish),
Interfaces.C.int (Buffer));
begin
if Err_No /= 0 then
raise Storage_Error;
end if;
end Output_File;
procedure Save_File
(This : in Text_Buffer;
Name : in String;
Buffer : in Natural := 128 * 1024)
is
Err_No : Interfaces.C.int := fl_text_buffer_savefile
(This.Void_Ptr,
Interfaces.C.To_C (Name),
Interfaces.C.int (Buffer));
begin
if Err_No /= 0 then
raise Storage_Error;
end if;
end Save_File;
procedure Insert_Text
(This : in out Text_Buffer;
Place : in Position;
Text : in String) is
begin
fl_text_buffer_insert
(This.Void_Ptr,
Interfaces.C.int (Place),
Interfaces.C.To_C (Text));
end Insert_Text;
procedure Append_Text
(This : in out Text_Buffer;
Text : in String) is
begin
fl_text_buffer_append
(This.Void_Ptr,
Interfaces.C.To_C (Text));
end Append_Text;
procedure Replace_Text
(This : in out Text_Buffer;
Start, Finish : in Position;
Text : in String) is
begin
fl_text_buffer_replace
(This.Void_Ptr,
Interfaces.C.int (Start),
Interfaces.C.int (Finish),
Interfaces.C.To_C (Text));
end Replace_Text;
procedure Remove_Text
(This : in out Text_Buffer;
Start, Finish : in Position) is
begin
fl_text_buffer_remove
(This.Void_Ptr,
Interfaces.C.int (Start),
Interfaces.C.int (Finish));
end Remove_Text;
function Get_Entire_Text
(This : in Text_Buffer)
return String
is
Raw : Interfaces.C.Strings.chars_ptr :=
fl_text_buffer_get_text (This.Void_Ptr);
begin
if Raw = Interfaces.C.Strings.Null_Ptr then
return "";
else
declare
Ada_String : String := Interfaces.C.Strings.Value (Raw);
begin
Interfaces.C.Strings.Free (Raw);
return Ada_String;
end;
end if;
end Get_Entire_Text;
procedure Set_Entire_Text
(This : in out Text_Buffer;
Text : in String) is
begin
fl_text_buffer_set_text (This.Void_Ptr, Interfaces.C.To_C (Text));
end Set_Entire_Text;
function Byte_At
(This : in Text_Buffer;
Place : in Position)
return Character is
begin
return Character'Val (Interfaces.C.char'Pos
(fl_text_buffer_byte_at (This.Void_Ptr, Interfaces.C.int (Place))));
end Byte_At;
function Character_At
(This : in Text_Buffer;
Place : in Position)
return Character is
begin
return Character'Val (fl_text_buffer_char_at
(This.Void_Ptr,
Interfaces.C.int (Place)));
end Character_At;
function Text_At
(This : in Text_Buffer;
Start, Finish : in Position)
return String
is
C_Str : Interfaces.C.Strings.chars_ptr := fl_text_buffer_text_range
(This.Void_Ptr,
Interfaces.C.int (Start),
Interfaces.C.int (Finish));
begin
if C_Str = Interfaces.C.Strings.Null_Ptr then
return "";
else
declare
The_Text : String := Interfaces.C.Strings.Value (C_Str);
begin
Interfaces.C.Strings.Free (C_Str);
return The_Text;
end;
end if;
end Text_At;
function Next_Char
(This : in Text_Buffer;
Place : in Position)
return Character is
begin
return Character'Val (fl_text_buffer_next_char
(This.Void_Ptr,
Interfaces.C.int (Place)));
end Next_Char;
function Prev_Char
(This : in Text_Buffer;
Place : in Position)
return Character is
begin
return Character'Val (fl_text_buffer_prev_char
(This.Void_Ptr,
Interfaces.C.int (Place)));
end Prev_Char;
function Count_Displayed_Characters
(This : in Text_Buffer;
Start, Finish : in Position)
return Integer is
begin
return Integer (fl_text_buffer_count_displayed_characters
(This.Void_Ptr,
Interfaces.C.int (Start),
Interfaces.C.int (Finish)));
end Count_Displayed_Characters;
function Count_Lines
(This : in Text_Buffer;
Start, Finish : in Position)
return Integer is
begin
return Integer (fl_text_buffer_count_lines
(This.Void_Ptr,
Interfaces.C.int (Start),
Interfaces.C.int (Finish)));
end Count_Lines;
function Length
(This : in Text_Buffer)
return Natural is
begin
return Natural (fl_text_buffer_length (This.Void_Ptr));
end Length;
function Get_Tab_Width
(This : in Text_Buffer)
return Natural is
begin
return Natural (fl_text_buffer_get_tab_distance (This.Void_Ptr));
end Get_Tab_Width;
procedure Set_Tab_Width
(This : in out Text_Buffer;
To : in Natural) is
begin
fl_text_buffer_set_tab_distance (This.Void_Ptr, Interfaces.C.int (To));
end Set_Tab_Width;
function Get_Selection
(This : in Text_Buffer;
Start, Finish : out Position)
return Boolean is
begin
return fl_text_buffer_selection_position
(This.Void_Ptr,
Interfaces.C.int (Start),
Interfaces.C.int (Finish)) /= 0;
end Get_Selection;
function Get_Secondary_Selection
(This : in Text_Buffer;
Start, Finish : out Position)
return Boolean is
begin
return fl_text_buffer_secondary_selection_position
(This.Void_Ptr,
Interfaces.C.int (Start),
Interfaces.C.int (Finish)) /= 0;
end Get_Secondary_Selection;
procedure Set_Selection
(This : in out Text_Buffer;
Start, Finish : in Position) is
begin
fl_text_buffer_select
(This.Void_Ptr,
Interfaces.C.int (Start),
Interfaces.C.int (Finish));
end Set_Selection;
procedure Set_Secondary_Selection
(This : in out Text_Buffer;
Start, Finish : in Position) is
begin
fl_text_buffer_secondary_select
(This.Void_Ptr,
Interfaces.C.int (Start),
Interfaces.C.int (Finish));
end Set_Secondary_Selection;
function Has_Selection
(This : in Text_Buffer)
return Boolean is
begin
return fl_text_buffer_selected (This.Void_Ptr) /= 0;
end Has_Selection;
function Has_Secondary_Selection
(This : in Text_Buffer)
return Boolean is
begin
return fl_text_buffer_secondary_selected (This.Void_Ptr) /= 0;
end Has_Secondary_Selection;
function Selection_Text
(This : in Text_Buffer)
return String
is
Raw : Interfaces.C.Strings.chars_ptr :=
fl_text_buffer_selection_text (This.Void_Ptr);
begin
if Raw = Interfaces.C.Strings.Null_Ptr then
return "";
else
declare
Ada_String : String := Interfaces.C.Strings.Value (Raw);
begin
Interfaces.C.Strings.Free (Raw);
return Ada_String;
end;
end if;
end Selection_Text;
function Secondary_Selection_Text
(This : in Text_Buffer)
return String
is
Raw : Interfaces.C.Strings.chars_ptr :=
fl_text_buffer_secondary_selection_text (This.Void_Ptr);
begin
if Raw = Interfaces.C.Strings.Null_Ptr then
return "";
else
declare
Ada_String : String := Interfaces.C.Strings.Value (Raw);
begin
Interfaces.C.Strings.Free (Raw);
return Ada_String;
end;
end if;
end Secondary_Selection_Text;
procedure Replace_Selection
(This : in out Text_Buffer;
Text : in String) is
begin
fl_text_buffer_replace_selection (This.Void_Ptr, Interfaces.C.To_C (Text));
end Replace_Selection;
procedure Replace_Secondary_Selection
(This : in out Text_Buffer;
Text : in String) is
begin
fl_text_buffer_replace_secondary_selection (This.Void_Ptr, Interfaces.C.To_C (Text));
end Replace_Secondary_Selection;
procedure Remove_Selection
(This : in out Text_Buffer) is
begin
fl_text_buffer_remove_selection (This.Void_Ptr);
end Remove_Selection;
procedure Remove_Secondary_Selection
(This : in out Text_Buffer) is
begin
fl_text_buffer_remove_secondary_selection (This.Void_Ptr);
end Remove_Secondary_Selection;
procedure Unselect
(This : in out Text_Buffer) is
begin
fl_text_buffer_unselect (This.Void_Ptr);
end Unselect;
procedure Secondary_Unselect
(This : in out Text_Buffer) is
begin
fl_text_buffer_secondary_unselect (This.Void_Ptr);
end Secondary_Unselect;
procedure Get_Highlight
(This : in Text_Buffer;
Start, Finish : out Position) is
begin
Start := This.High_From;
Finish := This.High_To;
end Get_Highlight;
procedure Set_Highlight
(This : in out Text_Buffer;
Start, Finish : in Position) is
begin
This.High_From := Start;
This.High_To := Finish;
fl_text_buffer_highlight
(This.Void_Ptr,
Interfaces.C.int (Start),
Interfaces.C.int (Finish));
end Set_Highlight;
function Get_Highlighted_Text
(This : in Text_Buffer)
return String
is
Raw : Interfaces.C.Strings.chars_ptr :=
fl_text_buffer_highlight_text (This.Void_Ptr);
begin
if Raw = Interfaces.C.Strings.Null_Ptr then
return "";
else
declare
Ada_String : String := Interfaces.C.Strings.Value (Raw);
begin
Interfaces.C.Strings.Free (Raw);
return Ada_String;
end;
end if;
end Get_Highlighted_Text;
procedure Unhighlight
(This : in out Text_Buffer) is
begin
fl_text_buffer_unhighlight (This.Void_Ptr);
end Unhighlight;
function Findchar_Forward
(This : in Text_Buffer;
Start_At : in Position;
Item : in Character;
Found_At : out Position)
return Boolean is
begin
return fl_text_buffer_findchar_forward
(This.Void_Ptr,
Interfaces.C.int (Start_At),
Character'Pos (Item),
Interfaces.C.int (Found_At)) /= 0;
end Findchar_Forward;
function Findchar_Backward
(This : in Text_Buffer;
Start_At : in Position;
Item : in Character;
Found_At : out Position)
return Boolean is
begin
return fl_text_buffer_findchar_backward
(This.Void_Ptr,
Interfaces.C.int (Start_At),
Character'Pos (Item),
Interfaces.C.int (Found_At)) /= 0;
end Findchar_Backward;
function Search_Forward
(This : in Text_Buffer;
Start_At : in Position;
Item : in String;
Found_At : out Position;
Match_Case : in Boolean := False)
return Boolean is
begin
return fl_text_buffer_search_forward
(This.Void_Ptr,
Interfaces.C.int (Start_At),
Interfaces.C.To_C (Item),
Interfaces.C.int (Found_At),
Boolean'Pos (Match_Case)) /= 0;
end Search_Forward;
function Search_Backward
(This : in Text_Buffer;
Start_At : in Position;
Item : in String;
Found_At : out Position;
Match_Case : in Boolean := False)
return Boolean is
begin
return fl_text_buffer_search_backward
(This.Void_Ptr,
Interfaces.C.int (Start_At),
Interfaces.C.To_C (Item),
Interfaces.C.int (Found_At),
Boolean'Pos (Match_Case)) /= 0;
end Search_Backward;
function Word_Start
(This : in Text_Buffer;
Place : in Position)
return Position is
begin
return Position (fl_text_buffer_word_start (This.Void_Ptr, Interfaces.C.int (Place)));
end Word_Start;
function Word_End
(This : in Text_Buffer;
Place : in Position)
return Position is
begin
return Position (fl_text_buffer_word_end (This.Void_Ptr, Interfaces.C.int (Place)));
end Word_End;
function Line_Start
(This : in Text_Buffer;
Place : in Position)
return Position is
begin
return Position (fl_text_buffer_line_start (This.Void_Ptr, Interfaces.C.int (Place)));
end Line_Start;
function Line_End
(This : in Text_Buffer;
Place : in Position)
return Position is
begin
return Position (fl_text_buffer_line_end (This.Void_Ptr, Interfaces.C.int (Place)));
end Line_End;
function Line_Text
(This : in Text_Buffer;
Place : in Position)
return String
is
Raw : Interfaces.C.Strings.chars_ptr := fl_text_buffer_line_text
(This.Void_Ptr,
Interfaces.C.int (Place));
begin
if Raw = Interfaces.C.Strings.Null_Ptr then
return "";
else
declare
Ada_String : String := Interfaces.C.Strings.Value (Raw);
begin
Interfaces.C.Strings.Free (Raw);
return Ada_String;
end;
end if;
end Line_Text;
function Skip_Lines
(This : in out Text_Buffer;
Start : in Position;
Lines : in Natural)
return Position is
begin
return Natural (fl_text_buffer_skip_lines
(This.Void_Ptr,
Interfaces.C.int (Start),
Interfaces.C.int (Lines)));
end Skip_Lines;
function Rewind_Lines
(This : in out Text_Buffer;
Start : in Position;
Lines : in Natural)
return Position is
begin
return Natural (fl_text_buffer_rewind_lines
(This.Void_Ptr,
Interfaces.C.int (Start),
Interfaces.C.int (Lines)));
end Rewind_Lines;
function Skip_Displayed_Characters
(This : in Text_Buffer;
Start : in Position;
Chars : in Natural)
return Position is
begin
return Natural (fl_text_buffer_skip_displayed_characters
(This.Void_Ptr,
Interfaces.C.int (Start),
Interfaces.C.int (Chars)));
end Skip_Displayed_Characters;
procedure Can_Undo
(This : in out Text_Buffer;
Flag : in Boolean) is
begin
fl_text_buffer_canundo (This.Void_Ptr, Interfaces.C.char'Val (Boolean'Pos (Flag)));
end Can_Undo;
procedure Copy
(This : in out Text_Buffer;
From : in Text_Buffer;
Start, Finish : in Position;
Insert_Pos : in Position) is
begin
fl_text_buffer_copy
(This.Void_Ptr,
From.Void_Ptr,
Interfaces.C.int (Start),
Interfaces.C.int (Finish),
Interfaces.C.int (Insert_Pos));
end Copy;
function UTF8_Align
(This : in Text_Buffer;
Place : in Position)
return Position is
begin
return Position (fl_text_buffer_utf8_align (This.Void_Ptr, Interfaces.C.int (Place)));
end UTF8_Align;
end FLTK.Text_Buffers;
|
src/edc_client-matrix-common.adb | hgrodriguez/edc-client | 0 | 6809 | <filename>src/edc_client-matrix-common.adb
--
-- Copyright 2021 (C) <NAME>
--
-- SPDX-License-Identifier: BSD-3-Clause
--
with Interfaces;
with Edc_Client.Matrix.Types; use Edc_Client.Matrix.Types;
package body Edc_Client.Matrix.Common is
--------------------------------------------------------------------------
-- Returns the charactor for the nibble (= lower 4 bit value of a byte)
--------------------------------------------------------------------------
function Nibble_To_Char (Nibble : HAL.UInt8) return Character is
type N_2_C is array (HAL.UInt8 (0) .. HAL.UInt8 (15)) of Character;
N_2_C_Map : constant N_2_C := (
16#0# => '0',
16#1# => '1',
16#2# => '2',
16#3# => '3',
16#4# => '4',
16#5# => '5',
16#6# => '6',
16#7# => '7',
16#8# => '8',
16#9# => '9',
16#A# => 'A',
16#B# => 'B',
16#C# => 'C',
16#D# => 'D',
16#E# => 'E',
16#F# => 'F'
);
begin
return N_2_C_Map (Nibble);
end Nibble_To_Char;
--------------------------------------------------------------------------
-- see .ads
procedure Show_Byte (Value : HAL.UInt8;
Side : Character;
Block : Character) is
use HAL;
use Interfaces;
Command : Byte_String := "MSB000";
MSN : Interfaces.Unsigned_8;
LSN : Interfaces.Unsigned_8;
begin
Command (2) := Side;
Command (4) := Block;
MSN := Interfaces.Shift_Right (Interfaces.Unsigned_8 (Value), 4);
Command (5) := Edc_Client.Matrix.Common.Nibble_To_Char (UInt8 (MSN));
LSN := Interfaces.Unsigned_8 (Value) and 16#F#;
Command (6) := Edc_Client.Matrix.Common.Nibble_To_Char (UInt8 (LSN));
Transmitter (Command);
end Show_Byte;
--------------------------------------------------------------------------
-- see .ads
procedure Show_Word (Value : HAL.UInt16;
Side : Character;
Block : Character) is
use HAL;
use Interfaces;
Command : Word_String := "MSW00000";
MSB : constant Interfaces.Unsigned_8 :=
Interfaces.Unsigned_8 (Interfaces.
Shift_Right (Interfaces.Unsigned_16 (Value),
8));
LSB : constant Interfaces.Unsigned_8 :=
Interfaces.Unsigned_8 (Value and 16#FF#);
MSN : Interfaces.Unsigned_8;
LSN : Interfaces.Unsigned_8;
begin
Command (2) := Side;
Command (4) := Block;
MSN := Interfaces.Shift_Right (MSB, 4);
Command (5) := Edc_Client.Matrix.Common.Nibble_To_Char (UInt8 (MSN));
LSN := MSB and 16#F#;
Command (6) := Edc_Client.Matrix.Common.Nibble_To_Char (UInt8 (LSN));
MSN := Interfaces.Shift_Right (LSB, 4);
Command (7) := Edc_Client.Matrix.Common.Nibble_To_Char (UInt8 (MSN));
LSN := LSB and 16#F#;
Command (8) := Edc_Client.Matrix.Common.Nibble_To_Char (UInt8 (LSN));
Transmitter (Command);
end Show_Word;
end Edc_Client.Matrix.Common;
|
audio/music/oreburghcity.asm | AtmaBuster/pokeplat-gen2-old | 2 | 85151 | <filename>audio/music/oreburghcity.asm
Music_OreburghCity:
channel_count 4
channel 1, Music_OreburghCity_Ch1
channel 2, Music_OreburghCity_Ch2
channel 3, Music_OreburghCity_Ch3
channel 4, Music_OreburghCity_Ch4
Music_OreburghCity_Ch1_sub_0:
octave 3
note G_, 3
note G_, 1
note E_, 3
note E_, 1
note G_, 2
note G_, 1
note A#, 2
note G_, 1
note E_, 1
note F_, 1
octave 4
note C_, 3
note C_, 1
octave 3
note A_, 3
note A_, 1
note F_, 2
note F_, 1
note D_, 2
note D_, 1
octave 2
note A#, 1
sound_ret
Music_OreburghCity_Ch1_sub_1:
octave 4
note C_, 1
octave 3
note F#, 1
note G_, 1
octave 4
note C_, 1
octave 3
sound_ret
Music_OreburghCity_Ch1::
tempo 226
duty_cycle 3
vibrato 8, 1, 5
stereo_panning TRUE, FALSE
.loop
pitch_offset 0
note_type 12, 11, 5
sound_call Music_OreburghCity_Ch1_sub_0
note B_, 1
sound_call Music_OreburghCity_Ch1_sub_0
octave 3
note D_, 1
note_type 12, 11, 2
note C#, 1
note D_, 1
note F#, 1
note D_, 2
note A_, 1
note F#, 1
note D_, 1
note F#, 1
note G_, 1
note B_, 1
note G_, 2
octave 4
note D#, 1
octave 3
note B_, 1
note G_, 1
octave 2
note B_, 1
octave 3
note C_, 1
note E_, 1
note C_, 2
note G_, 1
note E_, 1
note C_, 1
note C_, 1
note C#, 1
note F_, 1
note C#, 2
note G#, 1
note B_, 1
note C#, 1
octave 4
note D_, 3
note D_, 3
note G_, 4
note G_, 3
note G_, 3
note E_, 2
note C_, 2
octave 3
note G_, 1
note E_, 2
note A_, 1
note A#, 1
note A#, 1
note A_, 1
note A_, 1
note G#, 1
note G#, 1
note G_, 1
note G_, 1
note_type 12, 11, 3
note D#, 1
note E_, 2
note E_, 1
octave 2
note B_, 1
octave 3
note C_, 2
note C_, 1
note D_, 1
note D#, 2
note D#, 1
octave 2
note B_, 1
octave 3
note C_, 2
note C_, 1
note F#, 1
note G_, 2
note G_, 3
note G_, 1
note A_, 2
note A#, 1
note F#, 1
note G_, 1
note D#, 1
note E_, 1
note C_, 1
note C#, 2
note E_, 1
octave 2
note B_, 1
octave 3
note C_, 1
octave 2
note G#, 1
note A_, 1
note E_, 1
note F_, 1
octave 3
note D#, 2
note D#, 1
note C_, 2
note D#, 1
note C_, 2
note_type 12, 11, 2
pitch_offset 2
note D#, 1
note E_, 2
note D#, 1
note E_, 1
octave 2
note B_, 1
octave 3
note C_, 1
octave 2
note G_, 1
note F#, 1
note G_, 1
octave 3
note C_, 1
octave 2
note F#, 1
note G_, 1
octave 3
note C_, 1
octave 2
note F#, 1
note G_, 1
octave 3
note F#, 1
note G_, 2
note F#, 1
note G_, 1
note B_, 1
sound_call Music_OreburghCity_Ch1_sub_1
note F#, 1
note G_, 1
sound_call Music_OreburghCity_Ch1_sub_1
note G#, 1
note A_, 1
octave 4
note C_, 1
octave 3
note G#, 1
note A_, 1
octave 4
note C_, 1
octave 3
note G#, 1
note A_, 1
octave 4
note C_, 1
note C_, 1
octave 3
note E_, 1
note F_, 1
note A_, 1
note C_, 1
note E_, 1
note F_, 2
octave 2
note A#, 1
note A#, 2
note A#, 1
note A#, 2
note A#, 1
octave 3
note D#, 2
note D#, 1
note D#, 2
note D#, 1
note D#, 1
note D#, 1
sound_loop 0, .loop
Music_OreburghCity_Ch2_sub_0:
note C_, 2
octave 4
note A_, 3
note G_, 3
note C_, 2
note D#, 2
note D_, 2
note C_, 1
sound_ret
Music_OreburghCity_Ch2::
duty_cycle 3
vibrato 16, 3, 6
stereo_panning FALSE, TRUE
.loop
note_type 12, 12, 5
octave 4
note C_, 3
note G_, 3
note D_, 2
note E_, 2
note F_, 2
note G_, 2
octave 5
sound_call Music_OreburghCity_Ch2_sub_0
note D_, 3
note C_, 3
note G_, 3
note D_, 2
note E_, 2
note G_, 2
octave 5
note D_, 2
sound_call Music_OreburghCity_Ch2_sub_0
note G#, 3
note_type 12, 12, 2
note G_, 3
note G_, 3
note F#, 4
note F_, 2
note F_, 4
note E_, 3
note E_, 3
note E_, 4
note F_, 2
note F_, 4
note G_, 3
note G_, 3
octave 5
note C_, 4
note D_, 3
note C_, 3
octave 4
note A#, 2
note A_, 2
note G_, 1
note C_, 2
note D_, 1
note E_, 1
note E_, 1
note D#, 1
note D#, 1
note D_, 1
note D_, 1
note C#, 1
note C#, 1
note_type 12, 12, 5
note C_, 3
octave 3
note A_, 3
octave 4
note C_, 2
note D_, 2
note C_, 2
note D#, 1
note C_, 3
note E_, 3
note D#, 3
note E_, 2
note A#, 2
note A_, 2
note G#, 1
note A_, 3
note E_, 3
octave 3
note A_, 3
octave 4
note C_, 2
note D#, 2
note C_, 2
note D_, 1
note C_, 3
note_type 12, 12, 3
note C_, 2
note C_, 2
note D_, 1
note C_, 3
octave 3
note G_, 1
octave 4
note C_, 1
note D_, 1
note C_, 5
note E_, 2
note E_, 2
note D#, 1
note E_, 3
octave 3
note G_, 1
octave 4
note E_, 1
note F_, 1
note E_, 2
note C_, 1
octave 3
note G_, 2
note A_, 2
note A_, 1
octave 4
note C_, 1
note D_, 1
note C_, 3
note D#, 1
note C_, 1
note D_, 1
note C_, 2
note C_, 1
note E_, 1
note F_, 1
note G_, 2
note G_, 2
octave 3
note G_, 4
octave 4
note G_, 1
note G_, 2
octave 3
note G_, 2
note G_, 1
note G_, 2
sound_loop 0, .loop
Music_OreburghCity_Ch3_sub_0:
note C_, 1
note E_, 1
note E_, 1
note G_, 1
note G_, 1
note A#, 1
note G_, 1
note E_, 1
note E_, 1
note G_, 1
note G_, 1
note A#, 1
note A#, 1
octave 3
note D_, 1
octave 2
note A#, 1
note F_, 1
note F_, 1
note A_, 1
note A_, 1
octave 3
note C_, 1
note C_, 1
note E_, 1
note C_, 1
octave 1
note A#, 1
note A#, 1
octave 2
note D_, 1
note D_, 1
note F_, 1
note F_, 1
note G#, 1
note F_, 1
sound_ret
Music_OreburghCity_Ch3_sub_1:
note C_, 1
rest 2
note C_, 1
note C_, 1
rest 2
note C_, 1
rest 1
note C_, 1
note C_, 1
rest 5
sound_ret
Music_OreburghCity_Ch3::
note_type 12, 1, 4
.loop
octave 2
note C_, 1
sound_call Music_OreburghCity_Ch3_sub_0
note C_, 1
sound_call Music_OreburghCity_Ch3_sub_0
note D_, 1
rest 2
note D_, 1
rest 2
note D_, 1
rest 3
note G_, 1
rest 1
note G_, 1
rest 3
note C_, 1
rest 2
note C_, 1
rest 2
note C_, 1
rest 3
note C#, 1
rest 1
note C#, 1
rest 4
note D_, 1
rest 1
note D_, 1
note D_, 1
rest 3
note G_, 1
rest 1
note G_, 1
note G_, 1
rest 5
note C_, 1
rest 1
note C_, 1
note C_, 1
rest 4
note G_, 1
rest 2
note A#, 1
rest 3
note F_, 1
note F_, 1
note A_, 1
note A_, 1
octave 3
note C_, 1
note C_, 1
note D_, 1
note C_, 1
octave 2
note F#, 1
note F#, 1
note A_, 1
note A_, 1
octave 3
note C_, 1
note C_, 1
note D_, 1
note C_, 1
octave 2
note G_, 1
note G_, 1
octave 3
note C_, 1
note C_, 1
note E_, 1
note E_, 1
note G_, 1
note E_, 1
octave 2
note A_, 1
note A_, 1
octave 3
note C#, 1
note C#, 1
note G_, 1
note G_, 1
note A#, 1
note G_, 1
octave 2
note D_, 1
note D_, 1
note F_, 1
note F_, 1
note A_, 1
note A_, 1
octave 3
note C_, 1
octave 2
note A_, 1
note F_, 1
note F_, 1
note A_, 1
note A_, 1
octave 3
note C_, 1
note C_, 1
note D#, 1
note C_, 1
rest 1
octave 2
sound_call Music_OreburghCity_Ch3_sub_1
sound_call Music_OreburghCity_Ch3_sub_1
note F_, 1
rest 2
note F_, 1
note F_, 1
rest 2
note F_, 1
rest 1
note F_, 1
note F_, 1
rest 5
note C_, 1
rest 2
note C_, 1
note C_, 1
rest 2
note G_, 1
rest 1
note G_, 1
note G_, 1
rest 4
sound_loop 0, .loop
Music_OreburghCity_Ch4_sub_0:
drum_note 2, 2
drum_note 8, 2
drum_note 2, 2
drum_note 8, 2
drum_note 2, 2
drum_note 8, 2
drum_note 2, 2
drum_note 8, 2
sound_ret
Music_OreburghCity_Ch4_sub_1:
drum_note 7, 2
drum_note 2, 1
drum_note 7, 2
drum_note 2, 1
drum_note 7, 2
drum_note 2, 2
drum_note 8, 2
drum_note 7, 2
drum_note 2, 2
sound_ret
Music_OreburghCity_Ch4_sub_2:
drum_note 2, 2
drum_note 8, 1
drum_note 7, 1
drum_note 2, 2
drum_note 7, 2
drum_note 2, 2
drum_note 8, 1
drum_note 7, 1
drum_note 2, 2
drum_note 7, 2
sound_ret
Music_OreburghCity_Ch4_sub_3:
drum_note 2, 2
drum_note 7, 2
drum_note 2, 2
drum_note 7, 2
drum_note 8, 2
drum_note 7, 1
drum_note 8, 2
drum_note 7, 1
drum_note 8, 2
sound_ret
Music_OreburghCity_Ch4::
toggle_noise 3
drum_speed 12
.loop
sound_call Music_OreburghCity_Ch4_sub_0
sound_call Music_OreburghCity_Ch4_sub_0
sound_call Music_OreburghCity_Ch4_sub_0
sound_call Music_OreburghCity_Ch4_sub_0
sound_call Music_OreburghCity_Ch4_sub_1
sound_call Music_OreburghCity_Ch4_sub_1
drum_note 7, 2
drum_note 2, 1
drum_note 7, 2
drum_note 2, 1
drum_note 7, 2
drum_note 8, 2
drum_note 8, 1
drum_note 8, 1
drum_note 8, 1
drum_note 8, 2
drum_note 8, 1
drum_note 2, 2
drum_note 7, 2
drum_note 2, 2
drum_note 7, 2
drum_note 8, 1
drum_note 8, 1
drum_note 8, 1
drum_note 8, 1
drum_note 8, 1
drum_note 8, 1
drum_note 8, 1
drum_note 8, 1
sound_call Music_OreburghCity_Ch4_sub_2
sound_call Music_OreburghCity_Ch4_sub_2
drum_note 2, 2
drum_note 7, 2
drum_note 2, 2
drum_note 7, 2
drum_note 2, 2
drum_note 7, 2
drum_note 7, 1
drum_note 2, 2
drum_note 2, 1
sound_call Music_OreburghCity_Ch4_sub_3
sound_call Music_OreburghCity_Ch4_sub_3
drum_note 2, 2
drum_note 7, 2
drum_note 2, 2
drum_note 7, 2
drum_note 2, 2
drum_note 7, 1
drum_note 2, 2
drum_note 2, 1
drum_note 7, 2
drum_note 2, 2
drum_note 7, 2
drum_note 2, 2
drum_note 7, 2
drum_note 7, 1
drum_note 7, 1
drum_note 2, 1
drum_note 7, 2
drum_note 2, 1
drum_note 7, 1
drum_note 7, 1
sound_loop 0, .loop |
test/Succeed/CompileTimeInlining.agda | cruhland/agda | 1,989 | 3162 | ------------------------------------------------------------------------
-- A small definition of a dependently typed language, using the
-- technique from McBride's "Outrageous but Meaningful Coincidences"
------------------------------------------------------------------------
-- Inlining saves a lot of memory. Test with +RTS -M100M
-- The inlining of zero and suc in raw-category at the end is the most
-- important.
{-# OPTIONS --type-in-type #-}
module _ where
open import Agda.Builtin.Equality
open import Agda.Builtin.Unit
open import Agda.Builtin.Sigma
------------------------------------------------------------------------
-- Prelude
data ⊥ : Set where
⊥-elim : ⊥ → {A : Set} → A
⊥-elim ()
data Either (A B : Set) : Set where
left : A → Either A B
right : B → Either A B
uncurry : {A : Set} {B : A → Set} {C : Σ A B → Set} →
((x : A) (y : B x) → C (x , y)) →
((p : Σ A B) → C p)
uncurry f p = f (fst p) (snd p)
infixr 2 _×_
_×_ : Set → Set → Set
_×_ A B = Σ A (λ _ → B)
------------------------------------------------------------------------
-- A universe
data U : Set
El : U → Set
data U where
set : U
el : Set → U
sigma : (a : U) → (El a → U) → U
pi : (a : U) → (El a → U) → U
El set = Set
El (el A) = A
El (sigma a b) = Σ (El a) (λ x → El (b x))
El (pi a b) = (x : El a) → El (b x)
-- Abbreviations.
fun : U → U → U
fun a b = pi a (λ _ → b)
times : U → U → U
times a b = sigma a (λ _ → b)
-- -- Example.
------------------------------------------------------------------------
-- Contexts
-- Contexts.
data Ctxt : Set
-- Types.
Ty : Ctxt → Set
-- Environments.
Env : Ctxt → Set
data Ctxt where
empty : Ctxt
snoc : (G : Ctxt) → Ty G → Ctxt
Ty G = Env G → U
Env empty = ⊤
Env (snoc G s) = Σ (Env G) (λ g → El (s g))
-- Variables (deBruijn indices).
Var : ∀ G → Ty G → Set
Var empty t = ⊥
Var (snoc G s) t =
Either ((λ g → s (fst g)) ≡ t)
(Σ _ (λ u → (λ g → u (fst g)) ≡ t × Var G u))
zero : ∀ {G s} → Var (snoc G s) (λ g → s (fst g))
zero = left refl
suc : ∀ {G s t} → (x : Var G t) → Var (snoc G s) (λ g → t (fst g))
suc x = right (_ , refl , x)
-- A lookup function.
lookup : ∀ G (s : Ty G) → Var G s → (g : Env G) → El (s g)
lookup empty _ absurd _ = ⊥-elim absurd
lookup (snoc vs v) _ (left refl) g = snd g
lookup (snoc vs v) t (right (_ , refl , x)) g = lookup _ _ x (fst g)
------------------------------------------------------------------------
-- A language
-- Syntax for types.
data Type (G : Ctxt) (s : Ty G) : Set
-- Terms.
data Term (G : Ctxt) (s : Ty G) : Set
-- The semantics of a term.
eval : ∀ {G s} → Term G s → (g : Env G) → El (s g)
data Type G s where
set'' : s ≡ (λ _ → set) → Type G s
el'' : (x : Term G (λ _ → set)) →
(λ g → el (eval {s = λ _ → set} x g)) ≡ s →
Type G s
sigma'' : {t : _} {u : _} →
Type G t →
Type (snoc G t) u →
(λ g → sigma (t g) (λ v → u (g , v))) ≡ s →
Type G s
pi'' : {t : _} {u : _} →
Type G t →
Type (snoc G t) u →
(λ g → pi (t g) (λ v → u (g , v))) ≡ s →
Type G s
data Term G s where
var : Var G s → Term G s
lam'' : {t : _} {u : _} →
Term (snoc G t) (uncurry u) →
(λ g → pi (t g) (λ v → u g v)) ≡ s →
Term G s
app'' : {t : _} {u : (g : Env G) → El (t g) → U} →
Term G (λ g → pi (t g) (λ v → u g v)) →
(t2 : Term G t) →
(λ g → u g (eval t2 g)) ≡ s →
Term G s
eval (var x) g = lookup _ _ x g
eval (lam'' t refl) g = λ v → eval t (g , v)
eval (app'' t1 t2 refl) g = eval t1 g (eval t2 g)
-- Abbreviations.
set' : {G : Ctxt} → Type G (λ _ → set)
set' = set'' refl
el' : {G : Ctxt}
(x : Term G (λ _ → set)) →
Type G (λ g → el (eval {G} {λ _ → set} x g))
el' x = el'' x refl
sigma' : {G : Ctxt} {t : Env G → U} {u : Env (snoc G t) → U} →
Type G t →
Type (snoc G t) u →
Type G (λ g → sigma (t g) (λ v → u (g , v)))
sigma' s t = sigma'' s t refl
pi' : {G : _} {t : _} {u : _} →
Type G t →
Type (snoc G t) u →
Type G (λ g → pi (t g) (λ v → u (g , v)))
pi' s t = pi'' s t refl
lam : {G : _} {t : _} {u : _} →
Term (snoc G t) (uncurry u) →
Term G (λ g → pi (t g) (λ v → u g v))
lam t = lam'' t refl
app : {G : _} {t : _} {u : (g : Env G) → El (t g) → U} →
Term G (λ g → pi (t g) (λ v → u g v)) →
(t2 : Term G t) →
Term G (λ g → u g (eval t2 g))
app t1 t2 = app'' t1 t2 refl
-- Example.
raw-categoryU : U
raw-categoryU =
sigma set (λ obj →
sigma (fun (el obj) (fun (el obj) set)) (λ hom →
times
(pi (el obj) (λ x → el (hom x x)))
(pi (el obj) (λ x → el (hom x x)))))
raw-category : Type empty (λ _ → raw-categoryU)
raw-category =
-- Objects.
sigma' set'
-- Morphisms.
(sigma' (pi' (el' (var zero)) (pi' (el' (var (suc zero))) set'))
-- Identity.
(sigma' (pi' (el' (var (suc zero)))
(el' (app (app (var (suc zero)) (var zero)) (var zero))))
(pi' (el' (var (suc (suc zero))))
(el' (app (app (var (suc (suc zero))) (var zero)) (var zero))))))
|
programs/oeis/243/A243869.asm | karttu/loda | 0 | 94132 | <reponame>karttu/loda
; A243869: Expansion of x^4/[(1+x)*Product_{k=1..3} (1-k*x)].
; 1,5,20,70,231,735,2290,7040,21461,65065,196560,592410,1782691,5358995,16098830,48340180,145107921,435498525,1306845100,3921234350,11765101151,35298099655,105899891370,317710858920,953154946381,2859509578385,8578618213640,25736033597890,77208458707611,231626091950715,694879707507910,2084641985835260,6253931684128841
mov $8,$0
mov $10,$0
add $10,1
lpb $10,1
clr $0,8
mov $0,$8
sub $10,1
sub $0,$10
mov $5,$0
mov $7,$0
add $7,1
lpb $7,1
mov $0,$5
sub $7,1
sub $0,$7
add $0,2
mov $1,3
pow $1,$0
mov $2,3
mov $3,2
mov $4,0
add $4,$0
pow $3,$4
sub $3,$1
sub $2,$3
mov $1,$2
div $1,6
add $6,$1
lpe
add $9,$6
lpe
mov $1,$9
|
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_21829_660.asm | ljhsiun2/medusa | 9 | 166485 | .global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r13
push %r14
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0x1e9a4, %rcx
add $24359, %r12
movb (%rcx), %r14b
nop
nop
nop
nop
nop
xor %r13, %r13
lea addresses_normal_ht+0xd3b0, %rsi
lea addresses_WC_ht+0x10094, %rdi
nop
nop
sub %r12, %r12
mov $127, %rcx
rep movsq
nop
nop
sub %rcx, %rcx
lea addresses_UC_ht+0xd814, %rcx
nop
cmp $58329, %r11
mov (%rcx), %r12d
nop
nop
and %r11, %r11
lea addresses_WT_ht+0x333c, %rdi
nop
nop
nop
nop
nop
add $25995, %r13
mov $0x6162636465666768, %r14
movq %r14, %xmm0
movups %xmm0, (%rdi)
nop
nop
cmp $44529, %r14
lea addresses_UC_ht+0x13724, %rsi
lea addresses_WT_ht+0x1aa4, %rdi
clflush (%rsi)
nop
nop
nop
nop
sub %rax, %rax
mov $80, %rcx
rep movsl
nop
nop
nop
and %rsi, %rsi
lea addresses_WT_ht+0x714e, %rsi
lea addresses_WT_ht+0xd584, %rdi
nop
nop
nop
sub $62334, %r14
mov $12, %rcx
rep movsw
nop
nop
nop
nop
nop
cmp %r11, %r11
lea addresses_WT_ht+0x1cfec, %rsi
lea addresses_WC_ht+0x1700a, %rdi
nop
nop
nop
nop
add $6619, %r11
mov $10, %rcx
rep movsw
nop
nop
add $54692, %rcx
lea addresses_UC_ht+0x137d4, %rsi
clflush (%rsi)
cmp $3316, %r13
movb $0x61, (%rsi)
nop
nop
inc %rsi
pop %rsi
pop %rdi
pop %rcx
pop %rax
pop %r14
pop %r13
pop %r12
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %rax
push %rbx
push %rcx
push %rsi
// Faulty Load
lea addresses_D+0x1f2a4, %rcx
nop
nop
nop
nop
nop
dec %r11
vmovups (%rcx), %ymm5
vextracti128 $1, %ymm5, %xmm5
vpextrq $1, %xmm5, %rbx
lea oracles, %r11
and $0xff, %rbx
shlq $12, %rbx
mov (%r11,%rbx,1), %rbx
pop %rsi
pop %rcx
pop %rbx
pop %rax
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'src': {'type': 'addresses_D', 'same': False, 'size': 1, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
[Faulty Load]
{'src': {'type': 'addresses_D', 'same': True, 'size': 32, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'type': 'addresses_WC_ht', 'same': False, 'size': 1, 'congruent': 6, 'NT': True, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_normal_ht', 'congruent': 1, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 4, 'same': False}, 'OP': 'REPM'}
{'src': {'type': 'addresses_UC_ht', 'same': False, 'size': 4, 'congruent': 3, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'dst': {'type': 'addresses_WT_ht', 'same': False, 'size': 16, 'congruent': 3, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'src': {'type': 'addresses_UC_ht', 'congruent': 6, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 11, 'same': False}, 'OP': 'REPM'}
{'src': {'type': 'addresses_WT_ht', 'congruent': 1, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 5, 'same': True}, 'OP': 'REPM'}
{'src': {'type': 'addresses_WT_ht', 'congruent': 3, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 1, 'same': False}, 'OP': 'REPM'}
{'dst': {'type': 'addresses_UC_ht', 'same': False, 'size': 1, 'congruent': 4, 'NT': True, 'AVXalign': False}, 'OP': 'STOR'}
{'36': 21829}
36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36
*/
|
programs/oeis/216/A216112.asm | karttu/loda | 1 | 160172 | ; A216112: The Wiener index of the para-polyphenyl chain with n hexagons (see the Dou et al. and the Deng references).
; 27,198,657,1548,3015,5202,8253,12312,17523,24030,31977,41508,52767,65898,81045,98352,117963,140022,164673,192060,222327,255618,292077,331848,375075,421902,472473,526932,585423,648090
add $0,1
mov $1,$0
add $1,$0
pow $1,3
add $1,$0
div $1,3
mul $1,9
|
target/cos_117/disasm/iop_overlay1/NOBEAT.asm | jrrk2/cray-sim | 49 | 169455 | @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ Prints !! ALERT !! CPU NOT RESPONDING !! ALERT !! on console
@ Apparently console becomes unresponsive after that
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ Maybe called from: COMM01
0x0000 (0x000000) 0x1018- f:00010 d: 24 | A = 24 (0x0018) @ Allocate 50 words of memory, return in OR[281]
0x0001 (0x000002) 0x2920- f:00024 d: 288 | OR[288] = A
0x0002 (0x000004) 0x1032- f:00010 d: 50 | A = 50 (0x0032)
0x0003 (0x000006) 0x2921- f:00024 d: 289 | OR[289] = A
0x0004 (0x000008) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0005 (0x00000A) 0x2922- f:00024 d: 290 | OR[290] = A
0x0006 (0x00000C) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0007 (0x00000E) 0x2923- f:00024 d: 291 | OR[291] = A
0x0008 (0x000010) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0009 (0x000012) 0x2924- f:00024 d: 292 | OR[292] = A
0x000A (0x000014) 0x1119- f:00010 d: 281 | A = 281 (0x0119)
0x000B (0x000016) 0x2925- f:00024 d: 293 | OR[293] = A
0x000C (0x000018) 0x1120- f:00010 d: 288 | A = 288 (0x0120)
0x000D (0x00001A) 0x5800- f:00054 d: 0 | B = A
0x000E (0x00001C) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x000F (0x00001E) 0x7C09- f:00076 d: 9 | R = OR[9]
0x0010 (0x000020) 0x865D- f:00103 d: 93 | P = P + 93 (0x006D), A # 0 @ Return immediately in case of errors
0x0011 (0x000022) 0x2053- f:00020 d: 83 | A = OR[83]
0x0012 (0x000024) 0x1620- f:00013 d: 32 | A = A - 32 (0x0020)
0x0013 (0x000026) 0x0801- f:00004 d: 1 | A = A > 1 (0x0001)
0x0014 (0x000028) 0x1203- f:00011 d: 3 | A = A & 3 (0x0003)
0x0015 (0x00002A) 0x291A- f:00024 d: 282 | OR[282] = A
0x0016 (0x00002C) 0x1800-0x0CBA f:00014 d: 0 | A = 3258 (0x0CBA)
0x0018 (0x000030) 0x2B1A- f:00025 d: 282 | OR[282] = A + OR[282]
0x0019 (0x000032) 0x311A- f:00030 d: 282 | A = (OR[282])
0x001A (0x000034) 0x291A- f:00024 d: 282 | OR[282] = A
0x001B (0x000036) 0x211A- f:00020 d: 282 | A = OR[282]
0x001C (0x000038) 0x1409- f:00012 d: 9 | A = A + 9 (0x0009)
0x001D (0x00003A) 0x2908- f:00024 d: 264 | OR[264] = A
0x001E (0x00003C) 0x3108- f:00030 d: 264 | A = (OR[264])
0x001F (0x00003E) 0x291A- f:00024 d: 282 | OR[282] = A
0x0020 (0x000040) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0021 (0x000042) 0x291B- f:00024 d: 283 | OR[283] = A
0x0022 (0x000044) 0x211A- f:00020 d: 282 | A = OR[282]
0x0023 (0x000046) 0x1603- f:00013 d: 3 | A = A - 3 (0x0003)
0x0024 (0x000048) 0x8402- f:00102 d: 2 | P = P + 2 (0x0026), A = 0
0x0025 (0x00004A) 0x7006- f:00070 d: 6 | P = P + 6 (0x002B)
0x0026 (0x00004C) 0x1800-0x00F5 f:00014 d: 0 | A = 245 (0x00F5)
0x0028 (0x000050) 0x2403- f:00022 d: 3 | A = A + OR[3]
0x0029 (0x000052) 0x291E- f:00024 d: 286 | OR[286] = A
0x002A (0x000054) 0x700B- f:00070 d: 11 | P = P + 11 (0x0035)
0x002B (0x000056) 0x211A- f:00020 d: 282 | A = OR[282]
0x002C (0x000058) 0x1601- f:00013 d: 1 | A = A - 1 (0x0001)
0x002D (0x00005A) 0x8402- f:00102 d: 2 | P = P + 2 (0x002F), A = 0
0x002E (0x00005C) 0x7006- f:00070 d: 6 | P = P + 6 (0x0034)
0x002F (0x00005E) 0x1800-0x00FD f:00014 d: 0 | A = 253 (0x00FD)
0x0031 (0x000062) 0x2403- f:00022 d: 3 | A = A + OR[3]
0x0032 (0x000064) 0x291E- f:00024 d: 286 | OR[286] = A
0x0033 (0x000066) 0x7002- f:00070 d: 2 | P = P + 2 (0x0035)
0x0034 (0x000068) 0x7003- f:00070 d: 3 | P = P + 3 (0x0037)
0x0035 (0x00006A) 0x743E- f:00072 d: 62 | R = P + 62 (0x0073)
0x0036 (0x00006C) 0x2F1B- f:00027 d: 283 | OR[283] = OR[283] - 1
0x0037 (0x00006E) 0x2118- f:00020 d: 280 | A = OR[280]
0x0038 (0x000070) 0x1E00-0xFFFF f:00017 d: 0 | A = A - 65535 (0xFFFF)
0x003A (0x000074) 0x8402- f:00102 d: 2 | P = P + 2 (0x003C), A = 0
0x003B (0x000076) 0x7005- f:00070 d: 5 | P = P + 5 (0x0040)
0x003C (0x000078) 0x1800-0x00D9 f:00014 d: 0 | A = 217 (0x00D9)
0x003E (0x00007C) 0x291E- f:00024 d: 286 | OR[286] = A
0x003F (0x00007E) 0x7004- f:00070 d: 4 | P = P + 4 (0x0043)
0x0040 (0x000080) 0x1800-0x00BC f:00014 d: 0 | A = 188 (0x00BC)
0x0042 (0x000084) 0x291E- f:00024 d: 286 | OR[286] = A
0x0043 (0x000086) 0x211E- f:00020 d: 286 | A = OR[286]
0x0044 (0x000088) 0x2403- f:00022 d: 3 | A = A + OR[3]
0x0045 (0x00008A) 0x291E- f:00024 d: 286 | OR[286] = A
0x0046 (0x00008C) 0x742D- f:00072 d: 45 | R = P + 45 (0x0073)
0x0047 (0x00008E) 0x2F1B- f:00027 d: 283 | OR[283] = OR[283] - 1
0x0048 (0x000090) 0x211A- f:00020 d: 282 | A = OR[282]
0x0049 (0x000092) 0x1603- f:00013 d: 3 | A = A - 3 (0x0003)
0x004A (0x000094) 0x8402- f:00102 d: 2 | P = P + 2 (0x004C), A = 0
0x004B (0x000096) 0x7006- f:00070 d: 6 | P = P + 6 (0x0051)
0x004C (0x000098) 0x1800-0x00F9 f:00014 d: 0 | A = 249 (0x00F9)
0x004E (0x00009C) 0x2403- f:00022 d: 3 | A = A + OR[3]
0x004F (0x00009E) 0x291E- f:00024 d: 286 | OR[286] = A
0x0050 (0x0000A0) 0x700B- f:00070 d: 11 | P = P + 11 (0x005B)
0x0051 (0x0000A2) 0x211A- f:00020 d: 282 | A = OR[282]
0x0052 (0x0000A4) 0x1601- f:00013 d: 1 | A = A - 1 (0x0001)
0x0053 (0x0000A6) 0x8402- f:00102 d: 2 | P = P + 2 (0x0055), A = 0
0x0054 (0x0000A8) 0x7006- f:00070 d: 6 | P = P + 6 (0x005A)
0x0055 (0x0000AA) 0x1800-0x00FE f:00014 d: 0 | A = 254 (0x00FE)
0x0057 (0x0000AE) 0x2403- f:00022 d: 3 | A = A + OR[3]
0x0058 (0x0000B0) 0x291E- f:00024 d: 286 | OR[286] = A
0x0059 (0x0000B2) 0x7002- f:00070 d: 2 | P = P + 2 (0x005B)
0x005A (0x0000B4) 0x7002- f:00070 d: 2 | P = P + 2 (0x005C)
0x005B (0x0000B6) 0x7418- f:00072 d: 24 | R = P + 24 (0x0073)
0x005C (0x0000B8) 0x1010- f:00010 d: 16 | A = 16 (0x0010) @ MSG: print string pointed to by OR[281] to console
0x005D (0x0000BA) 0x2920- f:00024 d: 288 | OR[288] = A
0x005E (0x0000BC) 0x2119- f:00020 d: 281 | A = OR[281]
0x005F (0x0000BE) 0x2921- f:00024 d: 289 | OR[289] = A
0x0060 (0x0000C0) 0x1120- f:00010 d: 288 | A = 288 (0x0120)
0x0061 (0x0000C2) 0x5800- f:00054 d: 0 | B = A
0x0062 (0x0000C4) 0x1800-0x1118 f:00014 d: 0 | A = 4376 (0x1118)
0x0064 (0x0000C8) 0x7C09- f:00076 d: 9 | R = OR[9]
0x0065 (0x0000CA) 0x1019- f:00010 d: 25 | A = 25 (0x0019) @ Free memory
0x0066 (0x0000CC) 0x2920- f:00024 d: 288 | OR[288] = A
0x0067 (0x0000CE) 0x2119- f:00020 d: 281 | A = OR[281]
0x0068 (0x0000D0) 0x2921- f:00024 d: 289 | OR[289] = A
0x0069 (0x0000D2) 0x1120- f:00010 d: 288 | A = 288 (0x0120)
0x006A (0x0000D4) 0x5800- f:00054 d: 0 | B = A
0x006B (0x0000D6) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x006C (0x0000D8) 0x7C09- f:00076 d: 9 | R = OR[9]
0x006D (0x0000DA) 0x102A- f:00010 d: 42 | A = 42 (0x002A) @ RETURN from overlay
0x006E (0x0000DC) 0x2920- f:00024 d: 288 | OR[288] = A
0x006F (0x0000DE) 0x1120- f:00010 d: 288 | A = 288 (0x0120)
0x0070 (0x0000E0) 0x5800- f:00054 d: 0 | B = A
0x0071 (0x0000E2) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0072 (0x0000E4) 0x7C09- f:00076 d: 9 | R = OR[9] @ This ends up being on 0x4bcc
0x0073 (0x0000E6) 0x1001- f:00010 d: 1 | A = 1 (0x0001)
0x0074 (0x0000E8) 0x291C- f:00024 d: 284 | OR[284] = A
0x0075 (0x0000EA) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0076 (0x0000EC) 0x291D- f:00024 d: 285 | OR[285] = A
0x0077 (0x0000EE) 0x211C- f:00020 d: 284 | A = OR[284]
0x0078 (0x0000F0) 0x843D- f:00102 d: 61 | P = P + 61 (0x00B5), A = 0
0x0079 (0x0000F2) 0x211D- f:00020 d: 285 | A = OR[285]
0x007A (0x0000F4) 0x0801- f:00004 d: 1 | A = A > 1 (0x0001)
0x007B (0x0000F6) 0x251E- f:00022 d: 286 | A = A + OR[286]
0x007C (0x0000F8) 0x290D- f:00024 d: 269 | OR[269] = A
0x007D (0x0000FA) 0x310D- f:00030 d: 269 | A = (OR[269])
0x007E (0x0000FC) 0x290D- f:00024 d: 269 | OR[269] = A
0x007F (0x0000FE) 0x211D- f:00020 d: 285 | A = OR[285]
0x0080 (0x000100) 0x1201- f:00011 d: 1 | A = A & 1 (0x0001)
0x0081 (0x000102) 0x2908- f:00024 d: 264 | OR[264] = A
0x0082 (0x000104) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0083 (0x000106) 0x2708- f:00023 d: 264 | A = A - OR[264]
0x0084 (0x000108) 0x8604- f:00103 d: 4 | P = P + 4 (0x0088), A # 0
0x0085 (0x00010A) 0x210D- f:00020 d: 269 | A = OR[269]
0x0086 (0x00010C) 0x0808- f:00004 d: 8 | A = A > 8 (0x0008)
0x0087 (0x00010E) 0x290D- f:00024 d: 269 | OR[269] = A
0x0088 (0x000110) 0x210D- f:00020 d: 269 | A = OR[269]
0x0089 (0x000112) 0x12FF- f:00011 d: 255 | A = A & 255 (0x00FF)
0x008A (0x000114) 0x291C- f:00024 d: 284 | OR[284] = A
0x008B (0x000116) 0x2D1D- f:00026 d: 285 | OR[285] = OR[285] + 1
0x008C (0x000118) 0x1800-0x00BC f:00014 d: 0 | A = 188 (0x00BC)
0x008E (0x00011C) 0x2403- f:00022 d: 3 | A = A + OR[3]
0x008F (0x00011E) 0x2908- f:00024 d: 264 | OR[264] = A
0x0090 (0x000120) 0x211E- f:00020 d: 286 | A = OR[286]
0x0091 (0x000122) 0x2708- f:00023 d: 264 | A = A - OR[264]
0x0092 (0x000124) 0x8402- f:00102 d: 2 | P = P + 2 (0x0094), A = 0
0x0093 (0x000126) 0x7008- f:00070 d: 8 | P = P + 8 (0x009B)
0x0094 (0x000128) 0x211D- f:00020 d: 285 | A = OR[285]
0x0095 (0x00012A) 0x1617- f:00013 d: 23 | A = A - 23 (0x0017)
0x0096 (0x00012C) 0x8402- f:00102 d: 2 | P = P + 2 (0x0098), A = 0
0x0097 (0x00012E) 0x7004- f:00070 d: 4 | P = P + 4 (0x009B)
0x0098 (0x000130) 0x211C- f:00020 d: 284 | A = OR[284]
0x0099 (0x000132) 0x2518- f:00022 d: 280 | A = A + OR[280]
0x009A (0x000134) 0x291C- f:00024 d: 284 | OR[284] = A
0x009B (0x000136) 0x211C- f:00020 d: 284 | A = OR[284]
0x009C (0x000138) 0x12FF- f:00011 d: 255 | A = A & 255 (0x00FF)
0x009D (0x00013A) 0x290D- f:00024 d: 269 | OR[269] = A
0x009E (0x00013C) 0x211B- f:00020 d: 283 | A = OR[283]
0x009F (0x00013E) 0x0801- f:00004 d: 1 | A = A > 1 (0x0001)
0x00A0 (0x000140) 0x2519- f:00022 d: 281 | A = A + OR[281]
0x00A1 (0x000142) 0x290E- f:00024 d: 270 | OR[270] = A
0x00A2 (0x000144) 0x211B- f:00020 d: 283 | A = OR[283]
0x00A3 (0x000146) 0x1201- f:00011 d: 1 | A = A & 1 (0x0001)
0x00A4 (0x000148) 0x2908- f:00024 d: 264 | OR[264] = A
0x00A5 (0x00014A) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x00A6 (0x00014C) 0x2708- f:00023 d: 264 | A = A - OR[264]
0x00A7 (0x00014E) 0x8607- f:00103 d: 7 | P = P + 7 (0x00AE), A # 0
0x00A8 (0x000150) 0x310E- f:00030 d: 270 | A = (OR[270])
0x00A9 (0x000152) 0x0A09- f:00005 d: 9 | A = A < 9 (0x0009)
0x00AA (0x000154) 0x250D- f:00022 d: 269 | A = A + OR[269]
0x00AB (0x000156) 0x0C09- f:00006 d: 9 | A = A >> 9 (0x0009)
0x00AC (0x000158) 0x390E- f:00034 d: 270 | (OR[270]) = A
0x00AD (0x00015A) 0x7006- f:00070 d: 6 | P = P + 6 (0x00B3)
0x00AE (0x00015C) 0x310E- f:00030 d: 270 | A = (OR[270])
0x00AF (0x00015E) 0x1A00-0xFF00 f:00015 d: 0 | A = A & 65280 (0xFF00)
0x00B1 (0x000162) 0x250D- f:00022 d: 269 | A = A + OR[269]
0x00B2 (0x000164) 0x390E- f:00034 d: 270 | (OR[270]) = A
0x00B3 (0x000166) 0x2D1B- f:00026 d: 283 | OR[283] = OR[283] + 1
0x00B4 (0x000168) 0x723D- f:00071 d: 61 | P = P - 61 (0x0077)
0x00B5 (0x00016A) 0x0200- f:00001 d: 0 | EXIT
@@@@@@@@ String: !! ALERT !! CPU NOT RESPONDING !! ALERT !!
0x00B6 (0x00016C) 0x2020- f:00020 d: 32 | A = OR[32]
0x00B7 (0x00016E) 0x2020- f:00020 d: 32 | A = OR[32]
0x00B8 (0x000170) 0x2121- f:00020 d: 289 | A = OR[289]
0x00B9 (0x000172) 0x2041- f:00020 d: 65 | A = OR[65]
0x00BA (0x000174) 0x4C45- f:00046 d: 69 | A = A >> B | **** non-standard encoding with D:0x0045 ****
0x00BB (0x000176) 0x5254- f:00051 d: 84 | A = A & B | **** non-standard encoding with D:0x0054 ****
0x00BC (0x000178) 0x2021- f:00020 d: 33 | A = OR[33]
0x00BD (0x00017A) 0x2120- f:00020 d: 288 | A = OR[288]
0x00BE (0x00017C) 0x2020- f:00020 d: 32 | A = OR[32]
0x00BF (0x00017E) 0x494F- f:00044 d: 335 | A = A > B | **** non-standard encoding with D:0x014F ****
0x00C0 (0x000180) 0x502D- f:00050 d: 45 | A = B | **** non-standard encoding with D:0x002D ****
0x00C1 (0x000182) 0x3020- f:00030 d: 32 | A = (OR[32])
0x00C2 (0x000184) 0x4E4F- f:00047 d: 79 | A = A << B | **** non-standard encoding with D:0x004F ****
0x00C3 (0x000186) 0x5420- f:00052 d: 32 | A = A + B | **** non-standard encoding with D:0x0020 ****
0x00C4 (0x000188) 0x5245- f:00051 d: 69 | A = A & B | **** non-standard encoding with D:0x0045 ****
0x00C5 (0x00018A) 0x5350- f:00051 d: 336 | A = A & B | **** non-standard encoding with D:0x0150 ****
0x00C6 (0x00018C) 0x4F4E- f:00047 d: 334 | A = A << B | **** non-standard encoding with D:0x014E ****
0x00C7 (0x00018E) 0x4449- f:00042 d: 73 | C = 1, IOB = DN | **** non-standard encoding with D:0x0049 ****
0x00C8 (0x000190) 0x4E47- f:00047 d: 71 | A = A << B | **** non-standard encoding with D:0x0047 ****
0x00C9 (0x000192) 0x2020- f:00020 d: 32 | A = OR[32]
0x00CA (0x000194) 0x2021- f:00020 d: 33 | A = OR[33]
0x00CB (0x000196) 0x2120- f:00020 d: 288 | A = OR[288]
0x00CC (0x000198) 0x414C- f:00040 d: 332 | C = 1, io 0514 = DN
0x00CD (0x00019A) 0x4552- f:00042 d: 338 | C = 1, IOB = DN | **** non-standard encoding with D:0x0152 ****
0x00CE (0x00019C) 0x5420- f:00052 d: 32 | A = A + B | **** non-standard encoding with D:0x0020 ****
0x00CF (0x00019E) 0x2121- f:00020 d: 289 | A = OR[289]
0x00D0 (0x0001A0) 0x2020- f:00020 d: 32 | A = OR[32]
0x00D1 (0x0001A2) 0x2020- f:00020 d: 32 | A = OR[32]
0x00D2 (0x0001A4) 0x0700- f:00003 d: 256 | I = 1 | **** non-standard encoding with D:0x0100 ****
0x00D3 (0x0001A6) 0x2020- f:00020 d: 32 | A = OR[32]
0x00D4 (0x0001A8) 0x2020- f:00020 d: 32 | A = OR[32]
0x00D5 (0x0001AA) 0x2121- f:00020 d: 289 | A = OR[289]
0x00D6 (0x0001AC) 0x2041- f:00020 d: 65 | A = OR[65]
0x00D7 (0x0001AE) 0x4C45- f:00046 d: 69 | A = A >> B | **** non-standard encoding with D:0x0045 ****
0x00D8 (0x0001B0) 0x5254- f:00051 d: 84 | A = A & B | **** non-standard encoding with D:0x0054 ****
0x00D9 (0x0001B2) 0x2021- f:00020 d: 33 | A = OR[33]
0x00DA (0x0001B4) 0x2120- f:00020 d: 288 | A = OR[288]
0x00DB (0x0001B6) 0x2020- f:00020 d: 32 | A = OR[32]
0x00DC (0x0001B8) 0x4350- f:00041 d: 336 | C = 1, io 0520 = BZ
0x00DD (0x0001BA) 0x5520- f:00052 d: 288 | A = A + B | **** non-standard encoding with D:0x0120 ****
0x00DE (0x0001BC) 0x4E4F- f:00047 d: 79 | A = A << B | **** non-standard encoding with D:0x004F ****
0x00DF (0x0001BE) 0x5420- f:00052 d: 32 | A = A + B | **** non-standard encoding with D:0x0020 ****
0x00E0 (0x0001C0) 0x5245- f:00051 d: 69 | A = A & B | **** non-standard encoding with D:0x0045 ****
0x00E1 (0x0001C2) 0x5350- f:00051 d: 336 | A = A & B | **** non-standard encoding with D:0x0150 ****
0x00E2 (0x0001C4) 0x4F4E- f:00047 d: 334 | A = A << B | **** non-standard encoding with D:0x014E ****
0x00E3 (0x0001C6) 0x4449- f:00042 d: 73 | C = 1, IOB = DN | **** non-standard encoding with D:0x0049 ****
0x00E4 (0x0001C8) 0x4E47- f:00047 d: 71 | A = A << B | **** non-standard encoding with D:0x0047 ****
0x00E5 (0x0001CA) 0x2020- f:00020 d: 32 | A = OR[32]
0x00E6 (0x0001CC) 0x2021- f:00020 d: 33 | A = OR[33]
0x00E7 (0x0001CE) 0x2120- f:00020 d: 288 | A = OR[288]
0x00E8 (0x0001D0) 0x414C- f:00040 d: 332 | C = 1, io 0514 = DN
0x00E9 (0x0001D2) 0x4552- f:00042 d: 338 | C = 1, IOB = DN | **** non-standard encoding with D:0x0152 ****
0x00EA (0x0001D4) 0x5420- f:00052 d: 32 | A = A + B | **** non-standard encoding with D:0x0020 ****
0x00EB (0x0001D6) 0x2121- f:00020 d: 289 | A = OR[289]
0x00EC (0x0001D8) 0x2020- f:00020 d: 32 | A = OR[32]
0x00ED (0x0001DA) 0x2020- f:00020 d: 32 | A = OR[32]
0x00EE (0x0001DC) 0x0700- f:00003 d: 256 | I = 1 | **** non-standard encoding with D:0x0100 ****
0x00EF (0x0001DE) 0x1B41-0x1B6A f:00015 d: 321 | A = A & 7018 (0x1B6A)
0x00F1 (0x0001E2) 0x1B6E-0x0000 f:00015 d: 366 | A = A & 0 (0x0000)
0x00F3 (0x0001E6) 0x1B6F-0x1B6B f:00015 d: 367 | A = A & 7019 (0x1B6B)
0x00F5 (0x0001EA) 0x1B61-0x0000 f:00015 d: 353 | A = A & 0 (0x0000)
0x00F7 (0x0001EE) 0x7B00-0x7C00 f:00075 d: 256 | P = OR[256]+31744 (0x7C00)
0x00F9 (0x0001F2) 0x0000- f:00000 d: 0 | PASS
0x00FA (0x0001F4) 0x0000- f:00000 d: 0 | PASS
0x00FB (0x0001F6) 0x0000- f:00000 d: 0 | PASS
|
key-to-pdf.applescript | saiaps/symmathesy-model | 1 | 2234 | <filename>key-to-pdf.applescript
#!/usr/bin/osascript
tell application "Finder"
set myFolder to container of (path to me) as text
set current_path to (POSIX path of (container of (path to me) as alias))
end tell
tell application "Keynote"
activate
open myFolder & "symmathesy.key"
end tell
tell application "System Events"
tell process "Keynote"
click menu item "PDF…" of menu of menu item "Export To" of menu "File" of menu bar 1
click button "Next…" of sheet 1 of window 1
delay 1
keystroke "G" using {command down, shift down}
keystroke current_path
delay 1
click button "Go" of sheet 1 of sheet 1 of window 1
click button "Export" of sheet 1 of window 1
end tell
end tell
|
legend-engine-language-pure-grammar/src/main/antlr4/org/finos/legend/engine/language/pure/grammar/from/antlr4/core/CoreFragmentGrammar.g4 | inahanninger-gs/legend-engine | 0 | 3406 | lexer grammar CoreFragmentGrammar;
// ---------------------------------- BUILDING BLOCK --------------------------------------
fragment True: 'true'
;
fragment False: 'false'
;
fragment Letter: [A-Za-z]
;
fragment Digit: [0-9]
;
fragment HexDigit: [0-9a-fA-F]
;
// ------------------------------------ WHITE SPACE ------------------------------------
fragment Whitespace: [ \r\t\n]+
;
// -------------------------------------- COMMENT --------------------------------------
fragment Comment: '/*' .*? '*/'
;
fragment LineComment: '//' ~[\r\n]*
;
// -------------------------------------- ESCAPE -----------------------------------------
fragment UnicodeEsc: 'u' (HexDigit (HexDigit (HexDigit HexDigit?)?)?)?
;
fragment Esc: '\\'
;
fragment EscSeq: Esc
(
[btnfr"'\\] // The standard escaped character set such as tab, newline, etc.
| UnicodeEsc // A Unicode escape sequence
| . // Invalid escape character
| EOF // Incomplete at EOF
)
;
fragment EscAny: Esc .
;
// -------------------------------------- SPECIFICS --------------------------------------
fragment TimeZone: (('+' | '-')(Digit)(Digit)(Digit)(Digit))
;
fragment ValidString: (Letter | Digit | '_' ) (Letter | Digit | '_' | '$')*
;
fragment FileName: '?[' (Letter | Digit | '_' | '.' | '/')+
;
fragment FileNameEnd: ']?'
;
fragment Assign: ([ \r\t\n])* '='
;
fragment PathSeparator: '::'
;
// ---------------------------------------- TYPE ------------------------------------------
fragment String: ('\'' ( EscSeq | ~['\r\n\\] )* '\'' )
;
fragment Boolean: True | False
;
fragment Integer: (Digit)+
;
fragment Float: (Digit)* '.' (Digit)+ ( ('e' | 'E') ('+' | '-')? (Digit)+)? ('f' | 'F')?
;
fragment Decimal: ((Digit)* '.' (Digit)+ | (Digit)+) ( ('e' | 'E') ('+' | '-')? (Digit)+)? ('d' | 'D')
;
fragment Date: '%' ('-')? (Digit)+ ('-'(Digit)+ ('-'(Digit)+ ('T' DateTime TimeZone?)?)?)?
;
fragment DateTime: (Digit)+ (':'(Digit)+ (':'(Digit)+ ('.'(Digit)+)?)?)?
;
// --------------------------------------- INVALID -------------------------------------------
// Add a rule for INVALID token to the very end of the lexer grammar to make sure your lexer handles all
// input successfully in order to boost performance
// See https://github.com/antlr/antlr4/issues/1540#issuecomment-268738030
fragment Invalid: .
; |
Transynther/x86/_processed/NONE/_st_zr_un_/i7-7700_9_0x48.log_21829_583.asm | ljhsiun2/medusa | 9 | 162869 | .global s_prepare_buffers
s_prepare_buffers:
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r12
push %r14
push %r8
push %r9
// Faulty Load
lea addresses_A+0x1dc78, %r14
nop
add $6275, %r12
movups (%r14), %xmm6
vpextrq $0, %xmm6, %r11
lea oracles, %r12
and $0xff, %r11
shlq $12, %r11
mov (%r12,%r11,1), %r11
pop %r9
pop %r8
pop %r14
pop %r12
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_A', 'AVXalign': False, 'congruent': 0, 'size': 1, 'same': False, 'NT': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_A', 'AVXalign': False, 'congruent': 0, 'size': 16, 'same': True, 'NT': False}}
<gen_prepare_buffer>
{'53': 1, 'b2': 1, '3c': 3258, 'bd': 1, '00': 181, 'b4': 1, 'ff': 18385, '2b': 1}
ff ff ff 3c 3c ff 3c ff 3c ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 3c 3c 3c 3c ff ff ff ff 3c ff ff ff 3c ff ff ff ff ff ff 3c 3c 3c ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 3c ff ff ff ff ff ff ff ff ff ff 3c ff ff ff ff ff ff 3c ff ff 3c ff ff ff ff 3c 3c 3c ff ff ff ff ff 3c ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 3c ff ff 3c 3c ff 3c ff ff ff 3c ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 3c 3c 3c ff ff ff ff 3c ff 3c ff 3c ff ff ff ff ff ff ff 3c ff ff ff ff ff ff ff 3c ff ff ff ff ff ff ff ff ff ff ff ff ff ff 3c 3c 3c ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 3c ff 3c ff ff ff ff ff ff ff ff 3c ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 3c ff ff ff ff ff ff ff ff ff ff 3c ff ff ff ff ff ff 3c ff ff 3c ff ff ff ff ff ff ff ff ff 3c ff ff ff ff ff ff ff ff 3c ff ff ff ff ff ff ff ff 3c ff 3c ff ff ff 3c ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 3c ff ff ff ff ff ff 3c 3c ff ff ff 3c ff ff ff 3c ff 3c 3c ff ff 3c ff ff 3c ff ff ff ff ff ff 3c 3c 3c 3c 3c 3c ff ff ff ff ff ff ff ff ff 3c 00 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 3c 00 3c ff ff ff ff ff ff ff ff ff ff ff ff 3c ff ff ff ff ff ff 3c ff ff 3c ff ff ff ff ff ff ff ff ff 3c ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 3c 00 ff ff ff ff ff ff ff ff ff ff 3c ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 3c ff ff ff ff ff 3c 3c ff ff 3c ff 3c 3c 3c 3c 3c 3c ff 3c ff 3c ff ff ff ff ff 3c ff ff ff 3c ff ff ff ff ff ff ff 3c ff ff ff ff ff ff ff ff 3c 00 ff ff ff ff ff ff 3c ff ff ff ff 3c ff ff ff ff 3c ff ff ff ff ff ff ff ff ff 3c ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 3c ff 3c 00 ff ff ff 3c ff ff ff 3c ff ff ff ff ff ff ff ff ff ff ff ff 3c 3c ff ff ff 3c ff ff ff ff ff ff 3c 3c 3c ff ff ff ff 3c ff ff ff ff ff ff ff ff 3c ff ff 3c 3c ff ff 3c ff ff ff ff ff ff ff 3c 3c ff 3c 3c ff ff 3c 3c 3c 3c 3c ff ff ff ff ff ff ff ff ff ff ff ff ff 3c ff 3c ff ff ff ff ff ff ff ff 3c 3c ff ff ff ff ff ff ff ff 3c 3c ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 3c ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 3c ff ff ff ff ff ff ff ff ff ff 3c 3c ff ff ff 3c ff ff ff ff ff ff ff ff ff ff 3c 3c ff 3c ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 3c 3c ff 3c ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 3c ff ff 3c ff ff ff ff ff ff ff ff ff ff 3c ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 00 ff ff ff ff ff 3c ff ff 3c ff ff ff ff 3c ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 3c ff ff ff ff ff ff ff ff ff ff ff ff ff 3c ff ff 3c ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 3c ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 3c ff ff ff 3c
*/
|
agda/hott/core.agda | piyush-kurur/hott | 0 | 12186 | <reponame>piyush-kurur/hott
{-# OPTIONS --without-K #-}
-- Exposes the core of hott
module hott.core where
-- The basic types of hott
open import hott.core.equality public -- Equality type
open import hott.core.sigma public -- Dependent pairs
open import hott.core.universe public -- Universes
open import hott.core.universe.pointed public
-- and the pointed ones.
|
Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0xca.log_10673_705.asm | ljhsiun2/medusa | 9 | 242603 | <reponame>ljhsiun2/medusa<filename>Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0xca.log_10673_705.asm
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r8
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WC_ht+0x4581, %rsi
lea addresses_A_ht+0x19b81, %rdi
nop
xor $15796, %r10
mov $124, %rcx
rep movsq
nop
nop
nop
xor $23030, %rbp
lea addresses_WT_ht+0x7781, %r8
nop
nop
nop
add %rdx, %rdx
movb $0x61, (%r8)
nop
nop
xor $25151, %r10
lea addresses_A_ht+0x1ab51, %r10
nop
nop
nop
nop
nop
add $63103, %rcx
mov (%r10), %dx
nop
xor %rcx, %rcx
lea addresses_WT_ht+0x16cc1, %rsi
nop
nop
nop
nop
nop
add %rcx, %rcx
mov (%rsi), %r8d
nop
nop
nop
nop
nop
dec %rdi
lea addresses_D_ht+0x17c9, %rdx
nop
nop
nop
sub $49208, %rsi
movb $0x61, (%rdx)
nop
nop
nop
nop
cmp %rcx, %rcx
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbp
pop %r8
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r12
push %r14
push %r9
push %rax
push %rbp
push %rcx
push %rsi
// Store
lea addresses_RW+0x13b81, %rbp
nop
nop
nop
cmp $57625, %rsi
mov $0x5152535455565758, %r14
movq %r14, %xmm6
movups %xmm6, (%rbp)
nop
nop
nop
nop
nop
add %rax, %rax
// Store
lea addresses_WC+0x1181, %rax
nop
nop
and $51835, %r9
mov $0x5152535455565758, %rcx
movq %rcx, %xmm1
movntdq %xmm1, (%rax)
add $38379, %r9
// Store
lea addresses_US+0x15541, %r12
nop
nop
nop
nop
nop
sub %r9, %r9
movb $0x51, (%r12)
nop
nop
nop
xor %r12, %r12
// Store
lea addresses_WC+0x7801, %rbp
nop
nop
nop
add $26040, %r12
mov $0x5152535455565758, %r9
movq %r9, %xmm2
movups %xmm2, (%rbp)
nop
sub %rax, %rax
// Load
lea addresses_D+0x6181, %rbp
nop
nop
cmp %r9, %r9
mov (%rbp), %si
nop
nop
nop
nop
sub %rbp, %rbp
// Faulty Load
lea addresses_UC+0x1eb81, %rax
nop
nop
nop
add %r12, %r12
vmovups (%rax), %ymm0
vextracti128 $1, %ymm0, %xmm0
vpextrq $0, %xmm0, %r9
lea oracles, %r14
and $0xff, %r9
shlq $12, %r9
mov (%r14,%r9,1), %r9
pop %rsi
pop %rcx
pop %rbp
pop %rax
pop %r9
pop %r14
pop %r12
ret
/*
<gen_faulty_load>
[REF]
{'src': {'congruent': 0, 'AVXalign': False, 'same': False, 'size': 8, 'NT': False, 'type': 'addresses_UC'}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'congruent': 9, 'AVXalign': False, 'same': False, 'size': 16, 'NT': False, 'type': 'addresses_RW'}}
{'OP': 'STOR', 'dst': {'congruent': 5, 'AVXalign': False, 'same': False, 'size': 16, 'NT': True, 'type': 'addresses_WC'}}
{'OP': 'STOR', 'dst': {'congruent': 4, 'AVXalign': True, 'same': False, 'size': 1, 'NT': False, 'type': 'addresses_US'}}
{'OP': 'STOR', 'dst': {'congruent': 6, 'AVXalign': False, 'same': False, 'size': 16, 'NT': False, 'type': 'addresses_WC'}}
{'src': {'congruent': 6, 'AVXalign': False, 'same': False, 'size': 2, 'NT': True, 'type': 'addresses_D'}, 'OP': 'LOAD'}
[Faulty Load]
{'src': {'congruent': 0, 'AVXalign': False, 'same': True, 'size': 32, 'NT': False, 'type': 'addresses_UC'}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'congruent': 9, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'REPM', 'dst': {'congruent': 11, 'same': False, 'type': 'addresses_A_ht'}}
{'OP': 'STOR', 'dst': {'congruent': 10, 'AVXalign': False, 'same': False, 'size': 1, 'NT': True, 'type': 'addresses_WT_ht'}}
{'src': {'congruent': 3, 'AVXalign': True, 'same': False, 'size': 2, 'NT': False, 'type': 'addresses_A_ht'}, 'OP': 'LOAD'}
{'src': {'congruent': 5, 'AVXalign': False, 'same': False, 'size': 4, 'NT': False, 'type': 'addresses_WT_ht'}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'congruent': 3, 'AVXalign': True, 'same': False, 'size': 1, 'NT': True, 'type': 'addresses_D_ht'}}
{'00': 10673}
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
*/
|
test/fail/IllegalUseOfIrrelevantDeclaration.agda | asr/agda-kanso | 1 | 2149 | <filename>test/fail/IllegalUseOfIrrelevantDeclaration.agda
-- 2010-09-29
module IllegalUseOfIrrelevantDeclaration where
import Common.Irrelevance
record Subset (A : Set) (P : A -> Set) : Set where
constructor _#_
field
elem : A
.certificate : P elem
postulate
.irrelevant : {A : Set} -> .A -> A
certificate : {A : Set}{P : A -> Set} -> (x : Subset A P) -> P (Subset.elem x)
certificate (a # p) = irrelevant p
-- since certificate is not declared irrelevant, cannot use irrelevant postulate here |
BasicIS4/Semantics/BasicKripkeOno.agda | mietek/hilbert-gentzen | 29 | 14111 | -- Basic intuitionistic modal logic S4, without ∨, ⊥, or ◇.
-- Basic Kripke-style semantics with abstract worlds, for soundness only.
-- Ono-style conditions.
module BasicIS4.Semantics.BasicKripkeOno where
open import BasicIS4.Syntax.Common public
-- Intuitionistic modal Kripke models, with frame conditions given by Ono.
record Model : Set₁ where
infix 3 _⊩ᵅ_
field
World : Set
-- Intuitionistic accessibility; preorder.
_≤_ : World → World → Set
refl≤ : ∀ {w} → w ≤ w
trans≤ : ∀ {w w′ w″} → w ≤ w′ → w′ ≤ w″ → w ≤ w″
-- Modal accessibility; preorder.
_R_ : World → World → Set
reflR : ∀ {w} → w R w
transR : ∀ {w w′ w″} → w R w′ → w′ R w″ → w R w″
-- Forcing for atomic propositions; monotonic.
_⊩ᵅ_ : World → Atom → Set
mono⊩ᵅ : ∀ {P w w′} → w ≤ w′ → w ⊩ᵅ P → w′ ⊩ᵅ P
-- Composition of accessibility.
_≤⨾R_ : World → World → Set
_≤⨾R_ = _≤_ ⨾ _R_
_R⨾≤_ : World → World → Set
_R⨾≤_ = _R_ ⨾ _≤_
-- Persistence condition.
--
-- w′ v′ → v′
-- ◌───R───● → ●
-- │ → ╱
-- ≤ ξ,ζ → R
-- │ → ╱
-- ● → ●
-- w → w
field
≤⨾R→R : ∀ {v′ w} → w ≤⨾R v′ → w R v′
-- Minor persistence condition.
--
-- w′ v′ → v′
-- ◌───R───● → ●
-- │ → │
-- ≤ ξ,ζ → ≤
-- │ → │
-- ● → ●───R───◌
-- w → w v
--
-- w″ → w″
-- ● → ●
-- │ → │
-- ξ′,ζ′ ≤ → │
-- │ → │
-- ●───R───◌ → ≤
-- │ v′ → │
-- ξ,ζ ≤ → │
-- │ → │
-- ●───R───◌ → ●───────R───────◌
-- w v → w v″
≤⨾R→R⨾≤ : ∀ {v′ w} → w ≤⨾R v′ → w R⨾≤ v′
≤⨾R→R⨾≤ {v′} ξ,ζ = v′ , (≤⨾R→R ξ,ζ , refl≤)
reflR⨾≤ : ∀ {w} → w R⨾≤ w
reflR⨾≤ {w} = w , (reflR , refl≤)
transR⨾≤ : ∀ {w′ w w″} → w R⨾≤ w′ → w′ R⨾≤ w″ → w R⨾≤ w″
transR⨾≤ {w′} (v , (ζ , ξ)) (v′ , (ζ′ , ξ′)) = let v″ , (ζ″ , ξ″) = ≤⨾R→R⨾≤ (w′ , (ξ , ζ′))
in v″ , (transR ζ ζ″ , trans≤ ξ″ ξ′)
≤→R : ∀ {v′ w} → w ≤ v′ → w R v′
≤→R {v′} ξ = ≤⨾R→R (v′ , (ξ , reflR))
open Model {{…}} public
-- Forcing in a particular world of a particular model.
module _ {{_ : Model}} where
infix 3 _⊩_
_⊩_ : World → Ty → Set
w ⊩ α P = w ⊩ᵅ P
w ⊩ A ▻ B = ∀ {w′} → w ≤ w′ → w′ ⊩ A → w′ ⊩ B
w ⊩ □ A = ∀ {v′} → w R v′ → v′ ⊩ A
w ⊩ A ∧ B = w ⊩ A × w ⊩ B
w ⊩ ⊤ = 𝟙
infix 3 _⊩⋆_
_⊩⋆_ : World → Cx Ty → Set
w ⊩⋆ ∅ = 𝟙
w ⊩⋆ Ξ , A = w ⊩⋆ Ξ × w ⊩ A
-- Monotonicity with respect to intuitionistic accessibility.
module _ {{_ : Model}} where
mono⊩ : ∀ {A w w′} → w ≤ w′ → w ⊩ A → w′ ⊩ A
mono⊩ {α P} ξ s = mono⊩ᵅ ξ s
mono⊩ {A ▻ B} ξ s = λ ξ′ a → s (trans≤ ξ ξ′) a
mono⊩ {□ A} ξ s = λ ζ → s (transR (≤→R ξ) ζ)
mono⊩ {A ∧ B} ξ s = mono⊩ {A} ξ (π₁ s) , mono⊩ {B} ξ (π₂ s)
mono⊩ {⊤} ξ s = ∙
mono⊩⋆ : ∀ {Γ w w′} → w ≤ w′ → w ⊩⋆ Γ → w′ ⊩⋆ Γ
mono⊩⋆ {∅} ξ ∙ = ∙
mono⊩⋆ {Γ , A} ξ (γ , a) = mono⊩⋆ {Γ} ξ γ , mono⊩ {A} ξ a
-- Additional useful equipment.
module _ {{_ : Model}} where
_⟪$⟫_ : ∀ {A B w} → w ⊩ A ▻ B → w ⊩ A → w ⊩ B
s ⟪$⟫ a = s refl≤ a
⟪K⟫ : ∀ {A B w} → w ⊩ A → w ⊩ B ▻ A
⟪K⟫ {A} a ξ = K (mono⊩ {A} ξ a)
⟪S⟫ : ∀ {A B C w} → w ⊩ A ▻ B ▻ C → w ⊩ A ▻ B → w ⊩ A → w ⊩ C
⟪S⟫ {A} {B} {C} s₁ s₂ a = _⟪$⟫_ {B} {C} (_⟪$⟫_ {A} {B ▻ C} s₁ a) (_⟪$⟫_ {A} {B} s₂ a)
⟪S⟫′ : ∀ {A B C w} → w ⊩ A ▻ B ▻ C → w ⊩ (A ▻ B) ▻ A ▻ C
⟪S⟫′ {A} {B} {C} s₁ ξ s₂ ξ′ a = let s₁′ = mono⊩ {A ▻ B ▻ C} (trans≤ ξ ξ′) s₁
s₂′ = mono⊩ {A ▻ B} ξ′ s₂
in ⟪S⟫ {A} {B} {C} s₁′ s₂′ a
_⟪D⟫_ : ∀ {A B w} → w ⊩ □ (A ▻ B) → w ⊩ □ A → w ⊩ □ B
_⟪D⟫_ {A} {B} s₁ s₂ ζ = let s₁′ = s₁ ζ
s₂′ = s₂ ζ
in _⟪$⟫_ {A} {B} s₁′ s₂′
_⟪D⟫′_ : ∀ {A B w} → w ⊩ □ (A ▻ B) → w ⊩ □ A ▻ □ B
_⟪D⟫′_ {A} {B} s₁ ξ = _⟪D⟫_ {A} {B} (mono⊩ {□ (A ▻ B)} ξ s₁)
⟪↑⟫ : ∀ {A w} → w ⊩ □ A → w ⊩ □ □ A
⟪↑⟫ s ζ ζ′ = s (transR ζ ζ′)
⟪↓⟫ : ∀ {A w} → w ⊩ □ A → w ⊩ A
⟪↓⟫ s = s reflR
_⟪,⟫′_ : ∀ {A B w} → w ⊩ A → w ⊩ B ▻ A ∧ B
_⟪,⟫′_ {A} {B} a ξ = _,_ (mono⊩ {A} ξ a)
-- Forcing in a particular world of a particular model, for sequents.
module _ {{_ : Model}} where
infix 3 _⊩_⇒_
_⊩_⇒_ : World → Cx Ty → Ty → Set
w ⊩ Γ ⇒ A = w ⊩⋆ Γ → w ⊩ A
infix 3 _⊩_⇒⋆_
_⊩_⇒⋆_ : World → Cx Ty → Cx Ty → Set
w ⊩ Γ ⇒⋆ Ξ = w ⊩⋆ Γ → w ⊩⋆ Ξ
-- Entailment, or forcing in all worlds of all models, for sequents.
infix 3 _⊨_
_⊨_ : Cx Ty → Ty → Set₁
Γ ⊨ A = ∀ {{_ : Model}} {w : World} → w ⊩ Γ ⇒ A
infix 3 _⊨⋆_
_⊨⋆_ : Cx Ty → Cx Ty → Set₁
Γ ⊨⋆ Ξ = ∀ {{_ : Model}} {w : World} → w ⊩ Γ ⇒⋆ Ξ
infix 3 _⁏_⊨_
_⁏_⊨_ : Cx Ty → Cx Ty → Ty → Set₁
Γ ⁏ Δ ⊨ A = ∀ {{_ : Model}} {w : World}
→ w ⊩⋆ Γ → (∀ {v′} → w R v′ → v′ ⊩⋆ Δ) → w ⊩ A
-- Additional useful equipment, for sequents.
module _ {{_ : Model}} where
lookup : ∀ {A Γ w} → A ∈ Γ → w ⊩ Γ ⇒ A
lookup top (γ , a) = a
lookup (pop i) (γ , b) = lookup i γ
|
library/fmGUI_ManageDataSources/fmGUI_ManageDataSources_Open.applescript | NYHTC/applescript-fm-helper | 1 | 3548 | -- fmGUI_ManageDataSources_Open(prefs)
-- <NAME>, NYHTC
-- Open Manage Data Sources
(*
HISTORY:
1.2 - 2017-04-03 ( eshagdar ): get name of frontmost window by handler. narrow scope.
1.1.1 - 2017-06-26 ( eshagdar ): moved frontmost to outer scope
1.1 -
1.0 - created
REQUIRES:
fmGUI_AppFrontMost
fmGUI_NameOfFrontmostWindow
*)
on run
fmGUI_ManageDataSources_Open({})
end run
--------------------
-- START OF CODE
--------------------
on fmGUI_ManageDataSources_Open(prefs)
-- version 1.2
try
fmGUI_AppFrontMost()
if fmGUI_NameOfFrontmostWindow() does not start with "Manage External Data Sources" then
tell application "System Events"
tell application process "FileMaker Pro Advanced"
click (first menu item of menu 1 of menu item "Manage" of menu 1 of menu bar item "File" of menu bar 1 whose name starts with "External Data Source")
end tell
end tell
end if
return true
on error errMsg number errNum
error "Couldn't open Manage Data Sources - " & errMsg number errNum
end try
end fmGUI_ManageDataSources_Open
--------------------
-- END OF CODE
--------------------
on fmGUI_AppFrontMost()
tell application "htcLib" to fmGUI_AppFrontMost()
end fmGUI_AppFrontMost
on fmGUI_NameOfFrontmostWindow()
tell application "htcLib" to fmGUI_NameOfFrontmostWindow()
end fmGUI_NameOfFrontmostWindow
|
mini_pascal.g4 | JoaoLuizLagreca/mini_pascal | 0 | 4825 | <filename>mini_pascal.g4
grammar mini_pascal;
options {
caseInsensitive = true;
}
//Regras sintáticas
programa: PROGRAM identificador ';' bloco '.' ;
bloco: parDeclVar? parDeclSubRot comComp ;
parDeclVar: declVar (';' declVar)* ';' ;
parDeclSubRot: (declProc ';')* ;
declVar: tipo listaIdent ;
comando: atribuicao | chamProc | comComp | comCond | comRep ;
chamProc: identificador ('(' listaExpress ')' )? ;
comComp: BEGIN comando (';' comando)* END ;
comCond: IF expressao THEN comando (ELSE comando)? ;
comRep: WHILE expressao DO comando ;
identificador: Identificador ;
tipo: INT | BOOLEAN ;
listaIdent: identificador (',' identificador)* ;
listaExpress: expressao (',' expressao)* ;
declProc: PROCEDURE identificador paramForm? ';' bloco ;
paramForm: '(' secParamForm (';' secParamForm)* ')' ;
secParamForm: VAR listaIdent ':' identificador ;
atribuicao: variavel ':=' expressao ;
variavel: identificador
| identificador expressao? ;
expressao: expressaoSimp (relacao expressaoSimp)? ;
expressaoSimp:
('+' | '-')? termo (('+' | '-' | OR) termo )* ;
termo: fator (('*' | DIV | AND) fator )* ;
fator:
variavel
| Frase
| numero
| '(' expressao ')'
| truefalse
| NOT fator ;
numero: Numero ;
relacao:
'='
| '<>'
| '<'
| '<='
| '>='
| '>' ;
truefalse: TRUE | FALSE ;
//Gramáticas
PROGRAM: 'program' ;
PROCEDURE: 'procedure' ;
BEGIN: 'begin' ;
END: 'end' ;
IF: 'if' ;
THEN: 'then' ;
TRUE: 'true' ;
FALSE: 'false' ;
ELSE: 'else' ;
WHILE: 'while' ;
DO: 'do' ;
DIV: 'div' ;
AND: 'and' ;
OR: 'or' ;
NOT: 'not' ;
VAR: 'var' ;
INT: 'int' ;
BOOLEAN: 'boolean';
fragment Letra:
'_'
| [a-z] ;
fragment Digito:
[0-9] ;
fragment Operador:
'*' | '+' | '-' | '/';
WS:
[ \t\r\n] -> skip;
Numero: Digito (Digito | '.')*;
Identificador: Letra (Letra | Digito)*;
Frase: '\'' ~[<']* '\'';
Comentario: '//' ~('\r' | '\n')*; //TODO: Comentário multi-linha
fragment Simbolos: '(' | ')' | '[' | ']';
fragment Pontuacao: ';' | '.';
|
other.7z/NEWS.7z/NEWS/テープリストア/NEWS_05/NEWS_05.tar/home/kimura/kart/mak.lzh/mak/Object.asm | prismotizm/gigaleak | 0 | 4482 | Name: Object.asm
Type: file
Size: 14117
Last-Modified: '1992-02-13T07:47:46Z'
SHA-1: 85CAD05A22F32966ECA32A5DF7EA231B28899B56
Description: null
|
statics-core.agda | hazelgrove/hazelnut-agda | 0 | 5194 | <reponame>hazelgrove/hazelnut-agda
open import List
open import Nat
open import Prelude
open import contexts
open import core
module statics-core where
open core public
-- zippered form of types
data ztyp : Set where
▹_◃ : htyp → ztyp
_==>₁_ : ztyp → htyp → ztyp
_==>₂_ : htyp → ztyp → ztyp
_⊕₁_ : ztyp → htyp → ztyp
_⊕₂_ : htyp → ztyp → ztyp
_⊠₁_ : ztyp → htyp → ztyp
_⊠₂_ : htyp → ztyp → ztyp
-- zippered form of expressions
data zexp : Set where
▹_◃ : hexp → zexp
_·:₁_ : zexp → htyp → zexp
_·:₂_ : hexp → ztyp → zexp
·λ : Nat → zexp → zexp
·λ_·[_]₁_ : Nat → ztyp → hexp → zexp
·λ_·[_]₂_ : Nat → htyp → zexp → zexp
_∘₁_ : zexp → hexp → zexp
_∘₂_ : hexp → zexp → zexp
_·+₁_ : zexp → hexp → zexp
_·+₂_ : hexp → zexp → zexp
⦇⌜_⌟⦈[_] : zexp → Nat → zexp
inl : zexp → zexp
inr : zexp → zexp
case₁ : zexp → Nat → hexp → Nat → hexp → zexp
case₂ : hexp → Nat → zexp → Nat → hexp → zexp
case₃ : hexp → Nat → hexp → Nat → zexp → zexp
⟨_,_⟩₁ : zexp → hexp → zexp
⟨_,_⟩₂ : hexp → zexp → zexp
fst : zexp → zexp
snd : zexp → zexp
-- erasure of cursor for types and expressions, judgementally. see
-- jugemental-erase.agda for an argument that this defines an isomorphic
-- object to the direct metafunction provided in the text of the paper
data erase-t : ztyp → htyp → Set where
ETTop : ∀{t} →
erase-t (▹ t ◃) t
ETArrL : ∀{t1 t1' t2} →
erase-t t1 t1' →
erase-t (t1 ==>₁ t2) (t1' ==> t2)
ETArrR : ∀{t1 t2 t2'} →
erase-t t2 t2' →
erase-t (t1 ==>₂ t2) (t1 ==> t2')
ETPlusL : ∀{t1 t1' t2} →
erase-t t1 t1' →
erase-t (t1 ⊕₁ t2) (t1' ⊕ t2)
ETPlusR : ∀{t1 t2 t2'} →
erase-t t2 t2' →
erase-t (t1 ⊕₂ t2) (t1 ⊕ t2')
ETProdL : ∀{t1 t1' t2} →
erase-t t1 t1' →
erase-t (t1 ⊠₁ t2) (t1' ⊠ t2)
ETProdR : ∀{t1 t2 t2'} →
erase-t t2 t2' →
erase-t (t1 ⊠₂ t2) (t1 ⊠ t2')
data erase-e : zexp → hexp → Set where
EETop : ∀{x} →
erase-e (▹ x ◃) x
EEPlusL : ∀{e1 e1' e2} →
erase-e e1 e1' →
erase-e (e1 ·+₁ e2) (e1' ·+ e2)
EEPlusR : ∀{e1 e2 e2'} →
erase-e e2 e2' →
erase-e (e1 ·+₂ e2) (e1 ·+ e2')
EEAscL : ∀{e e' t} →
erase-e e e' →
erase-e (e ·:₁ t) (e' ·: t)
EEAscR : ∀{e t t'} →
erase-t t t' →
erase-e (e ·:₂ t) (e ·: t')
EELam : ∀{x e e'} →
erase-e e e' →
erase-e (·λ x e) (·λ x e')
EEHalfLamL : ∀{x e t t'} →
erase-t t t' →
erase-e (·λ x ·[ t ]₁ e) (·λ x ·[ t' ] e)
EEHalfLamR : ∀{x e e' t} →
erase-e e e' →
erase-e (·λ x ·[ t ]₂ e) (·λ x ·[ t ] e')
EEApL : ∀{e1 e1' e2} →
erase-e e1 e1' →
erase-e (e1 ∘₁ e2) (e1' ∘ e2)
EEApR : ∀{e1 e2 e2'} →
erase-e e2 e2' →
erase-e (e1 ∘₂ e2) (e1 ∘ e2')
EEInl : ∀{e e'} →
erase-e e e' →
erase-e (inl e) (inl e')
EEInr : ∀{e e'} →
erase-e e e' →
erase-e (inr e) (inr e')
EECase1 : ∀{e e' x e1 y e2} →
erase-e e e' →
erase-e (case₁ e x e1 y e2) (case e' x e1 y e2)
EECase2 : ∀{e x e1 e1' y e2} →
erase-e e1 e1' →
erase-e (case₂ e x e1 y e2) (case e x e1' y e2)
EECase3 : ∀{e x e1 y e2 e2'} →
erase-e e2 e2' →
erase-e (case₃ e x e1 y e2) (case e x e1 y e2')
EEPairL : ∀{e1 e1' e2} →
erase-e e1 e1' →
erase-e ⟨ e1 , e2 ⟩₁ ⟨ e1' , e2 ⟩
EEPairR : ∀{e1 e2 e2'} →
erase-e e2 e2' →
erase-e ⟨ e1 , e2 ⟩₂ ⟨ e1 , e2' ⟩
EEFst : ∀{e e'} →
erase-e e e' →
erase-e (fst e) (fst e')
EESnd : ∀{e e'} →
erase-e e e' →
erase-e (snd e) (snd e')
EENEHole : ∀{e e' u} →
erase-e e e' →
erase-e ⦇⌜ e ⌟⦈[ u ] ⦇⌜ e' ⌟⦈[ u ]
-- the three grammars that define actions
data direction : Set where
child : Nat → direction
parent : direction
-- in contrast to the POPL 2017 hazelnut paper, we include named holes in static
-- semantics since they are required by the dynamic semantics. a given action
-- may introduce a different number of holes depending on the context it is
-- applied in, so the action must always supply enough names for every location
-- in the term where a hole could occur. moreover, care must be taken to have
-- the same hole names always correspond to the same hole locations. for example,
-- when we show that each derivation has an equivalently subsumption-minimal
-- derivation, this is needed to guarentee the same action (which includes hole names)
-- can be used in the minimal derivation.
data shape : Set where
arrow : shape
num : shape
asc : shape
var : Nat → Nat → shape
lam : Nat → Nat → Nat → shape
ap : Nat → Nat → shape
numlit : Nat → Nat → shape
plus : Nat → Nat → shape
nehole : Nat → shape
sum : shape
inl : Nat → Nat → shape
inr : Nat → Nat → shape
case : Nat → Nat → Nat → Nat → Nat → shape
prod : shape
pair : Nat → Nat → shape
fst : Nat → shape
snd : Nat → shape
data action : Set where
move : direction → action
construct : shape → action
del : Nat → action
finish : action
-- type actions
data _+_+>_ : (t : ztyp) → (α : action) → (t' : ztyp) → Set where
TMArrChild1 : {t1 t2 : htyp} →
▹ t1 ==> t2 ◃ + move (child 1) +> (▹ t1 ◃ ==>₁ t2)
TMArrChild2 : {t1 t2 : htyp} →
▹ t1 ==> t2 ◃ + move (child 2) +> (t1 ==>₂ ▹ t2 ◃)
TMArrParent1 : {t1 t2 : htyp} →
(▹ t1 ◃ ==>₁ t2) + move parent +> ▹ t1 ==> t2 ◃
TMArrParent2 : {t1 t2 : htyp} →
(t1 ==>₂ ▹ t2 ◃) + move parent +> ▹ t1 ==> t2 ◃
TMPlusChild1 : {t1 t2 : htyp} →
▹ t1 ⊕ t2 ◃ + move (child 1) +> (▹ t1 ◃ ⊕₁ t2)
TMPlusChild2 : {t1 t2 : htyp} →
▹ t1 ⊕ t2 ◃ + move (child 2) +> (t1 ⊕₂ ▹ t2 ◃)
TMPlusParent1 : {t1 t2 : htyp} →
(▹ t1 ◃ ⊕₁ t2) + move parent +> ▹ t1 ⊕ t2 ◃
TMPlusParent2 : {t1 t2 : htyp} →
(t1 ⊕₂ ▹ t2 ◃) + move parent +> ▹ t1 ⊕ t2 ◃
TMProdChild1 : {t1 t2 : htyp} →
▹ t1 ⊠ t2 ◃ + move (child 1) +> (▹ t1 ◃ ⊠₁ t2)
TMProdChild2 : {t1 t2 : htyp} →
▹ t1 ⊠ t2 ◃ + move (child 2) +> (t1 ⊠₂ ▹ t2 ◃)
TMProdParent1 : {t1 t2 : htyp} →
(▹ t1 ◃ ⊠₁ t2) + move parent +> ▹ t1 ⊠ t2 ◃
TMProdParent2 : {t1 t2 : htyp} →
(t1 ⊠₂ ▹ t2 ◃) + move parent +> ▹ t1 ⊠ t2 ◃
TMDel : {t : htyp} {u : Nat} →
(▹ t ◃) + del u +> (▹ ⦇-⦈ ◃)
TMConArrow : {t : htyp} →
(▹ t ◃) + construct arrow +> (t ==>₂ ▹ ⦇-⦈ ◃)
TMConPlus : {t : htyp} →
(▹ t ◃) + construct sum +> (t ⊕₂ ▹ ⦇-⦈ ◃)
TMConProd : {t : htyp} →
(▹ t ◃) + construct prod +> (t ⊠₂ ▹ ⦇-⦈ ◃)
TMConNum : (▹ ⦇-⦈ ◃) + construct num +> (▹ num ◃)
TMArrZip1 : {t1 t1' : ztyp} {t2 : htyp} {α : action} →
(t1 + α +> t1') →
((t1 ==>₁ t2) + α +> (t1' ==>₁ t2))
TMArrZip2 : {t2 t2' : ztyp} {t1 : htyp} {α : action} →
(t2 + α +> t2') →
((t1 ==>₂ t2) + α +> (t1 ==>₂ t2'))
TMPlusZip1 : {t1 t1' : ztyp} {t2 : htyp} {α : action} →
(t1 + α +> t1') →
((t1 ⊕₁ t2) + α +> (t1' ⊕₁ t2))
TMPlusZip2 : {t2 t2' : ztyp} {t1 : htyp} {α : action} →
(t2 + α +> t2') →
((t1 ⊕₂ t2) + α +> (t1 ⊕₂ t2'))
TMProdZip1 : {t1 t1' : ztyp} {t2 : htyp} {α : action} →
(t1 + α +> t1') →
((t1 ⊠₁ t2) + α +> (t1' ⊠₁ t2))
TMProdZip2 : {t2 t2' : ztyp} {t1 : htyp} {α : action} →
(t2 + α +> t2') →
((t1 ⊠₂ t2) + α +> (t1 ⊠₂ t2'))
-- expression movement
data _+_+>e_ : (e : zexp) → (α : action) → (e' : zexp) → Set where
EMPlusChild1 : {e1 e2 : hexp} →
(▹ e1 ·+ e2 ◃) + move (child 1) +>e (▹ e1 ◃ ·+₁ e2)
EMPlusChild2 : {e1 e2 : hexp} →
(▹ e1 ·+ e2 ◃) + move (child 2) +>e (e1 ·+₂ ▹ e2 ◃)
EMPlusParent1 : {e1 e2 : hexp} →
(▹ e1 ◃ ·+₁ e2) + move parent +>e (▹ e1 ·+ e2 ◃)
EMPlusParent2 : {e1 e2 : hexp} →
(e1 ·+₂ ▹ e2 ◃) + move parent +>e (▹ e1 ·+ e2 ◃)
EMAscChild1 : {e : hexp} {t : htyp} →
(▹ e ·: t ◃) + move (child 1) +>e (▹ e ◃ ·:₁ t)
EMAscChild2 : {e : hexp} {t : htyp} →
(▹ e ·: t ◃) + move (child 2) +>e (e ·:₂ ▹ t ◃)
EMAscParent1 : {e : hexp} {t : htyp} →
(▹ e ◃ ·:₁ t) + move parent +>e (▹ e ·: t ◃)
EMAscParent2 : {e : hexp} {t : htyp} →
(e ·:₂ ▹ t ◃) + move parent +>e (▹ e ·: t ◃)
EMLamChild1 : {e : hexp} {x : Nat} →
▹ (·λ x e) ◃ + move (child 1) +>e ·λ x (▹ e ◃)
EMLamParent : {e : hexp} {x : Nat} →
·λ x (▹ e ◃) + move parent +>e ▹ (·λ x e) ◃
EMHalfLamChild1 : {e : hexp} {t : htyp} {x : Nat} →
▹ (·λ x ·[ t ] e) ◃ + move (child 1) +>e (·λ x ·[ ▹ t ◃ ]₁ e)
EMHalfLamChild2 : {e : hexp} {t : htyp} {x : Nat} →
▹ (·λ x ·[ t ] e) ◃ + move (child 2) +>e (·λ x ·[ t ]₂ ▹ e ◃)
EMHalfLamParent1 : {e : hexp} {t : htyp} {x : Nat} →
(·λ x ·[ ▹ t ◃ ]₁ e) + move parent +>e ▹ (·λ x ·[ t ] e) ◃
EMHalfLamParent2 : {e : hexp} {t : htyp} {x : Nat} →
(·λ x ·[ t ]₂ ▹ e ◃) + move parent +>e ▹ (·λ x ·[ t ] e) ◃
EMApChild1 : {e1 e2 : hexp} →
(▹ e1 ∘ e2 ◃) + move (child 1)+>e (▹ e1 ◃ ∘₁ e2)
EMApChild2 : {e1 e2 : hexp} →
(▹ e1 ∘ e2 ◃) + move (child 2) +>e (e1 ∘₂ ▹ e2 ◃)
EMApParent1 : {e1 e2 : hexp} →
(▹ e1 ◃ ∘₁ e2) + move parent +>e (▹ e1 ∘ e2 ◃)
EMApParent2 : {e1 e2 : hexp} →
(e1 ∘₂ ▹ e2 ◃) + move parent +>e (▹ e1 ∘ e2 ◃)
EMInlChild1 : {e : hexp} →
▹ inl e ◃ + move (child 1) +>e inl ▹ e ◃
EMInlParent : {e : hexp} →
inl ▹ e ◃ + move parent +>e ▹ inl e ◃
EMInrChild1 : {e : hexp} →
▹ inr e ◃ + move (child 1) +>e inr ▹ e ◃
EMInrParent : {e : hexp} →
inr ▹ e ◃ + move parent +>e ▹ inr e ◃
EMCaseParent1 : {e e1 e2 : hexp} {x y : Nat} →
case₁ ▹ e ◃ x e1 y e2 + move parent +>e ▹ case e x e1 y e2 ◃
EMCaseParent2 : {e e1 e2 : hexp} {x y : Nat} →
case₂ e x ▹ e1 ◃ y e2 + move parent +>e ▹ case e x e1 y e2 ◃
EMCaseParent3 : {e e1 e2 : hexp} {x y : Nat} →
case₃ e x e1 y ▹ e2 ◃ + move parent +>e ▹ case e x e1 y e2 ◃
EMCaseChild1 : {e e1 e2 : hexp} {x y : Nat} →
▹ case e x e1 y e2 ◃ + move (child 1) +>e case₁ ▹ e ◃ x e1 y e2
EMCaseChild2 : {e e1 e2 : hexp} {x y : Nat} →
▹ case e x e1 y e2 ◃ + move (child 2) +>e case₂ e x ▹ e1 ◃ y e2
EMCaseChild3 : {e e1 e2 : hexp} {x y : Nat} →
▹ case e x e1 y e2 ◃ + move (child 3) +>e case₃ e x e1 y ▹ e2 ◃
EMPairChild1 : {e1 e2 : hexp} →
(▹ ⟨ e1 , e2 ⟩ ◃) + move (child 1)+>e ⟨ ▹ e1 ◃ , e2 ⟩₁
EMPairChild2 : {e1 e2 : hexp} →
(▹ ⟨ e1 , e2 ⟩ ◃) + move (child 2) +>e ⟨ e1 , ▹ e2 ◃ ⟩₂
EMPairParent1 : {e1 e2 : hexp} →
( ⟨ ▹ e1 ◃ , e2 ⟩₁ ) + move parent +>e (▹ ⟨ e1 , e2 ⟩ ◃)
EMPairParent2 : {e1 e2 : hexp} →
( ⟨ e1 , ▹ e2 ◃ ⟩₂ ) + move parent +>e (▹ ⟨ e1 , e2 ⟩ ◃)
EMFstChild1 : {e : hexp} →
▹ fst e ◃ + move (child 1) +>e fst ▹ e ◃
EMFstParent : {e : hexp} →
fst ▹ e ◃ + move parent +>e ▹ fst e ◃
EMSndChild1 : {e : hexp} →
▹ snd e ◃ + move (child 1) +>e snd ▹ e ◃
EMSndParent : {e : hexp} →
snd ▹ e ◃ + move parent +>e ▹ snd e ◃
EMNEHoleChild1 : {e : hexp} {u : Nat} →
(▹ ⦇⌜ e ⌟⦈[ u ] ◃) + move (child 1) +>e ⦇⌜ ▹ e ◃ ⌟⦈[ u ]
EMNEHoleParent : {e : hexp} {u : Nat} →
⦇⌜ ▹ e ◃ ⌟⦈[ u ] + move parent +>e (▹ ⦇⌜ e ⌟⦈[ u ] ◃)
mutual
-- synthetic action expressions.
data _⊢_=>_~_~>_=>_ : (Γ : tctx) → (e1 : zexp) → (t1 : htyp) → (α : action) →
(e2 : zexp) → (t2 : htyp) → Set where
SAFinish : {Γ : tctx} {e : hexp} {t : htyp} {u : Nat} →
Γ ⊢ e => t →
Γ ⊢ ▹ ⦇⌜ e ⌟⦈[ u ] ◃ => ⦇-⦈ ~ finish ~> ▹ e ◃ => t
SAMove : {δ : direction} {e e' : zexp} {Γ : tctx} {t : htyp} →
e + move δ +>e e' →
Γ ⊢ e => t ~ move δ ~> e' => t
SADel : {Γ : tctx} {e : hexp} {t : htyp} {u : Nat} →
Γ ⊢ ▹ e ◃ => t ~ del u ~> ▹ ⦇-⦈[ u ] ◃ => ⦇-⦈
SAConNumlit : {Γ : tctx} {n : Nat} {u u1 : Nat} →
Γ ⊢ ▹ ⦇-⦈[ u ] ◃ => ⦇-⦈ ~ construct (numlit n u1) ~> ▹ N n ◃ => num
SAConPlus1 : {Γ : tctx} {e : hexp} {t : htyp} {u1 u2 : Nat} →
t ~ num →
Γ ⊢ ▹ e ◃ => t ~ construct (plus u1 u2) ~> e ·+₂ ▹ ⦇-⦈[ u2 ] ◃ => num
SAConPlus2 : {Γ : tctx} {e : hexp} {t : htyp} {u1 u2 : Nat} →
t ~̸ num →
Γ ⊢ ▹ e ◃ => t ~ construct (plus u1 u2) ~>
⦇⌜ e ⌟⦈[ u1 ] ·+₂ ▹ ⦇-⦈[ u2 ] ◃ => num
SAConAsc : {Γ : tctx} {e : hexp} {t : htyp} →
Γ ⊢ ▹ e ◃ => t ~ construct asc ~> (e ·:₂ ▹ t ◃ ) => t
SAConVar : {Γ : tctx} {x : Nat} {t : htyp} {u u1 : Nat} →
(x , t) ∈ Γ →
Γ ⊢ ▹ ⦇-⦈[ u ] ◃ => ⦇-⦈ ~ construct (var x u1) ~> ▹ X x ◃ => t
SAConLam : {Γ : tctx} {x : Nat} {u u1 u2 : Nat} →
x # Γ →
Γ ⊢ ▹ ⦇-⦈[ u ] ◃ => ⦇-⦈ ~ construct (lam x u1 u2) ~>
(·λ x ·[ ▹ ⦇-⦈ ◃ ]₁ ⦇-⦈[ u2 ]) => (⦇-⦈ ==> ⦇-⦈)
SAConApArr : {Γ : tctx} {t t1 t2 : htyp} {e : hexp} {u1 u2 : Nat} →
t ▸arr (t1 ==> t2) →
Γ ⊢ ▹ e ◃ => t ~ construct (ap u1 u2) ~>
e ∘₂ ▹ ⦇-⦈[ u2 ] ◃ => t2
SAConApOtw : {Γ : tctx} {t : htyp} {e : hexp} {u1 u2 : Nat} →
t ~̸ (⦇-⦈ ==> ⦇-⦈) →
Γ ⊢ ▹ e ◃ => t ~ construct (ap u1 u2) ~>
⦇⌜ e ⌟⦈[ u1 ] ∘₂ ▹ ⦇-⦈[ u2 ] ◃ => ⦇-⦈
SAConInl : {Γ : tctx} {t : htyp} {u u1 u2 : Nat} →
Γ ⊢ ▹ ⦇-⦈[ u ] ◃ => t ~ construct (inl u1 u2) ~>
inl (⦇-⦈[ u2 ]) ·:₂ (▹ ⦇-⦈ ◃ ⊕₁ ⦇-⦈) => (⦇-⦈ ⊕ ⦇-⦈)
SAConInr : {Γ : tctx} {t : htyp} {u u1 u2 : Nat} →
Γ ⊢ ▹ ⦇-⦈[ u ] ◃ => t ~ construct (inr u1 u2) ~>
inr (⦇-⦈[ u2 ]) ·:₂ (⦇-⦈ ⊕₂ ▹ ⦇-⦈ ◃) => (⦇-⦈ ⊕ ⦇-⦈)
SAConCase1 : {Γ : tctx} {x y : Nat} {t t1 t2 : htyp} {e : hexp} {u1 u2 u3 : Nat} →
x # Γ →
y # Γ →
t ▸sum (t1 ⊕ t2) →
Γ ⊢ ▹ e ◃ => t ~ construct (case x y u1 u2 u3) ~>
(case₂ e x (▹ ⦇-⦈[ u2 ] ◃) y ⦇-⦈[ u3 ]) ·:₁ ⦇-⦈ => ⦇-⦈
SAConCase2 : {Γ : tctx} {x y : Nat} {t : htyp} {e : hexp} → {u1 u2 u3 : Nat} →
x # Γ →
y # Γ →
t ~̸ (⦇-⦈ ⊕ ⦇-⦈) →
Γ ⊢ ▹ e ◃ => t ~ construct (case x y u1 u2 u3) ~>
(case₁ (⦇⌜ ▹ e ◃ ⌟⦈[ u1 ]) x ⦇-⦈[ u2 ] y ⦇-⦈[ u3 ]) ·:₁ ⦇-⦈ => ⦇-⦈
SAConPair : {Γ : tctx} {t : htyp} {u u1 u2 : Nat} →
Γ ⊢ ▹ ⦇-⦈[ u ] ◃ => t ~ construct (pair u1 u2) ~>
⟨ ▹ ⦇-⦈[ u1 ] ◃ , ⦇-⦈[ u2 ] ⟩₁ => (⦇-⦈ ⊠ ⦇-⦈)
SAConFst1 : {Γ : tctx} {t t1 t2 : htyp} {e : hexp} {u : Nat} →
t ▸prod (t1 ⊠ t2) →
Γ ⊢ ▹ e ◃ => t ~ construct (fst u) ~> ▹ fst e ◃ => t1
SAConFst2 : {Γ : tctx} {t : htyp} {e : hexp} {u : Nat} →
t ~̸ (⦇-⦈ ⊠ ⦇-⦈) →
Γ ⊢ ▹ e ◃ => t ~ construct (fst u) ~> fst ⦇⌜ ▹ e ◃ ⌟⦈[ u ] => ⦇-⦈
SAConSnd1 : {Γ : tctx} {t t1 t2 : htyp} {e : hexp} {u : Nat} →
t ▸prod (t1 ⊠ t2) →
Γ ⊢ ▹ e ◃ => t ~ construct (snd u) ~> ▹ snd e ◃ => t2
SAConSnd2 : {Γ : tctx} {t : htyp} {e : hexp} {u : Nat} →
t ~̸ (⦇-⦈ ⊠ ⦇-⦈) →
Γ ⊢ ▹ e ◃ => t ~ construct (snd u) ~> snd ⦇⌜ ▹ e ◃ ⌟⦈[ u ] => ⦇-⦈
SAConNEHole : {Γ : tctx} {e : hexp} {t : htyp} {u : Nat} →
Γ ⊢ ▹ e ◃ => t ~ construct (nehole u) ~> ⦇⌜ ▹ e ◃ ⌟⦈[ u ] => ⦇-⦈
SAZipPlus1 : {Γ : tctx} {e : hexp} {eh eh' : zexp} {α : action} →
Γ ⊢ eh ~ α ~> eh' ⇐ num →
Γ ⊢ (eh ·+₁ e) => num ~ α ~> (eh' ·+₁ e) => num
SAZipPlus2 : {Γ : tctx} {e : hexp} {eh eh' : zexp} {α : action} →
Γ ⊢ eh ~ α ~> eh' ⇐ num →
Γ ⊢ (e ·+₂ eh) => num ~ α ~> (e ·+₂ eh') => num
SAZipAsc1 : {Γ : tctx} {e e' : zexp} {α : action} {t : htyp} →
Γ ⊢ e ~ α ~> e' ⇐ t →
Γ ⊢ (e ·:₁ t) => t ~ α ~> (e' ·:₁ t) => t
SAZipAsc2 : {Γ : tctx} {e : hexp} {α : action} {t t' : ztyp} {t◆ t'◆ : htyp} →
t + α +> t' →
erase-t t' t'◆ →
erase-t t t◆ →
Γ ⊢ e <= t'◆ →
Γ ⊢ (e ·:₂ t) => t◆ ~ α ~> (e ·:₂ t') => t'◆
SAZipLam1 : {Γ : tctx} {e : hexp} {t1 t1' : ztyp} {t1◆ t1'◆ t2 t2' : htyp} {x : Nat}
{α : action} →
x # Γ →
erase-t t1 t1◆ →
erase-t t1' t1'◆ →
t1 + α +> t1' →
(Γ ,, (x , t1◆)) ⊢ e => t2 →
(Γ ,, (x , t1'◆)) ⊢ e => t2' →
Γ ⊢ (·λ x ·[ t1 ]₁ e) => (t1◆ ==> t2) ~ α ~>
(·λ x ·[ t1' ]₁ e) => (t1'◆ ==> t2')
SAZipLam2 : {Γ : tctx} {e e' : zexp} {e◆ : hexp} {t1 t2 t2' : htyp} {x : Nat}
{α : action }→
x # Γ →
erase-e e e◆ →
(Γ ,, (x , t1)) ⊢ e◆ => t2 →
(Γ ,, (x , t1)) ⊢ e => t2 ~ α ~> e' => t2' →
Γ ⊢ (·λ x ·[ t1 ]₂ e) => (t1 ==> t2) ~ α ~>
(·λ x ·[ t1 ]₂ e') => (t1 ==> t2')
SAZipApArr : {Γ : tctx} {t t1 t2 t3 t4 : htyp} {α : action}
{eh eh' : zexp} {e eh◆ : hexp} →
t ▸arr (t3 ==> t4) →
erase-e eh eh◆ →
Γ ⊢ (eh◆) => t2 →
Γ ⊢ eh => t2 ~ α ~> eh' => t →
Γ ⊢ e <= t3 →
Γ ⊢ (eh ∘₁ e) => t1 ~ α ~> (eh' ∘₁ e) => t4
SAZipApAna : {Γ : tctx} {t' t2 t : htyp} {e : hexp}
{eh eh' : zexp} {α : action} →
t' ▸arr (t2 ==> t) →
Γ ⊢ e => t' →
Γ ⊢ eh ~ α ~> eh' ⇐ t2 →
Γ ⊢ (e ∘₂ eh) => t ~ α ~> (e ∘₂ eh') => t
SAZipPair1 : {Γ : tctx} {t1 t1' t2 : htyp} {α : action} {eh eh' : zexp}
{e eh◆ : hexp} →
erase-e eh eh◆ →
Γ ⊢ (eh◆) => t1 →
Γ ⊢ eh => t1 ~ α ~> eh' => t1' →
Γ ⊢ e => t2 →
Γ ⊢ ⟨ eh , e ⟩₁ => (t1 ⊠ t2) ~ α ~> ⟨ eh' , e ⟩₁ => (t1' ⊠ t2)
SAZipPair2 : {Γ : tctx} {t1 t2 t2' : htyp} {α : action} {eh eh' : zexp}
{e eh◆ : hexp} →
Γ ⊢ e => t1 →
erase-e eh eh◆ →
Γ ⊢ (eh◆) => t2 →
Γ ⊢ eh => t2 ~ α ~> eh' => t2' →
Γ ⊢ ⟨ e , eh ⟩₂ => (t1 ⊠ t2) ~ α ~> ⟨ e , eh' ⟩₂ => (t1 ⊠ t2')
SAZipFst : {Γ : tctx} {t× t×' t1 t1' t2 t2' : htyp} {α : action}
{eh eh' : zexp} {eh◆ : hexp} →
t× ▸prod (t1 ⊠ t2) →
t×' ▸prod (t1' ⊠ t2') →
erase-e eh eh◆ →
Γ ⊢ (eh◆) => t× →
Γ ⊢ eh => t× ~ α ~> eh' => t×' →
Γ ⊢ fst eh => t1 ~ α ~> fst eh' => t1'
SAZipSnd : {Γ : tctx} {t× t×' t1 t1' t2 t2' : htyp} {α : action}
{eh eh' : zexp} {eh◆ : hexp} →
t× ▸prod (t1 ⊠ t2) →
t×' ▸prod (t1' ⊠ t2') →
erase-e eh eh◆ →
Γ ⊢ (eh◆) => t× →
Γ ⊢ eh => t× ~ α ~> eh' => t×' →
Γ ⊢ snd eh => t2 ~ α ~> snd eh' => t2'
SAZipNEHole : {Γ : tctx} {e e' : zexp} {u : Nat} {t t' : htyp} {α : action}
{e◆ : hexp} →
erase-e e e◆ →
Γ ⊢ e◆ => t →
Γ ⊢ e => t ~ α ~> e' => t' →
Γ ⊢ ⦇⌜ e ⌟⦈[ u ] => ⦇-⦈ ~ α ~> ⦇⌜ e' ⌟⦈[ u ] => ⦇-⦈
-- analytic action expressions
data _⊢_~_~>_⇐_ : (Γ : tctx) → (e : zexp) → (α : action) →
(e' : zexp) → (t : htyp) → Set where
AASubsume : {Γ : tctx} {e e' : zexp} {t t' t'' : htyp} {α : action} {e◆ : hexp} →
erase-e e e◆ →
Γ ⊢ e◆ => t' →
Γ ⊢ e => t' ~ α ~> e' => t'' →
t ~ t'' →
Γ ⊢ e ~ α ~> e' ⇐ t
AAFinish : {Γ : tctx} {e : hexp} {t : htyp} {u : Nat} →
Γ ⊢ e <= t →
Γ ⊢ ▹ ⦇⌜ e ⌟⦈[ u ] ◃ ~ finish ~> ▹ e ◃ ⇐ t
AAMove : {e e' : zexp} {δ : direction} {Γ : tctx} {t : htyp} →
e + move δ +>e e' →
Γ ⊢ e ~ move δ ~> e' ⇐ t
AADel : {e : hexp} {Γ : tctx} {t : htyp} {u : Nat} →
Γ ⊢ ▹ e ◃ ~ del u ~> ▹ ⦇-⦈[ u ] ◃ ⇐ t
AAConNumlit : {Γ : tctx} {t : htyp} {n u u1 : Nat} →
t ~̸ num →
Γ ⊢ ▹ ⦇-⦈[ u ] ◃ ~ construct (numlit n u1) ~> ⦇⌜ ▹ (N n) ◃ ⌟⦈[ u1 ] ⇐ t
AAConAsc : {Γ : tctx} {e : hexp} {t : htyp} →
Γ ⊢ ▹ e ◃ ~ construct asc ~> (e ·:₂ ▹ t ◃) ⇐ t
AAConVar : {Γ : tctx} {t t' : htyp} {x u u1 : Nat} →
t ~̸ t' →
(x , t') ∈ Γ →
Γ ⊢ ▹ ⦇-⦈[ u ] ◃ ~ construct (var x u1) ~> ⦇⌜ ▹ X x ◃ ⌟⦈[ u1 ] ⇐ t
AAConLam1 : {Γ : tctx} {x : Nat} {t t1 t2 : htyp} {u u1 u2 : Nat} →
x # Γ →
t ▸arr (t1 ==> t2) →
Γ ⊢ ▹ ⦇-⦈[ u ] ◃ ~ construct (lam x u1 u2) ~>
·λ x (▹ ⦇-⦈[ u2 ] ◃) ⇐ t
AAConLam2 : {Γ : tctx} {x : Nat} {t : htyp} {u u1 u2 : Nat} →
x # Γ →
t ~̸ (⦇-⦈ ==> ⦇-⦈) →
Γ ⊢ ▹ ⦇-⦈[ u ] ◃ ~ construct (lam x u1 u2) ~>
⦇⌜ ·λ x ⦇-⦈[ u2 ] ·:₂ (▹ ⦇-⦈ ◃ ==>₁ ⦇-⦈) ⌟⦈[ u1 ] ⇐ t
AAConInl1 : {Γ : tctx} {t+ t1 t2 : htyp} {u u1 u2 : Nat} →
t+ ▸sum (t1 ⊕ t2) →
Γ ⊢ ▹ ⦇-⦈[ u ] ◃ ~ construct (inl u1 u2) ~> inl ▹ ⦇-⦈[ u2 ] ◃ ⇐ t+
AAConInl2 : {Γ : tctx} {t : htyp} {u u1 u2 : Nat} →
t ~̸ (⦇-⦈ ⊕ ⦇-⦈) →
Γ ⊢ ▹ ⦇-⦈[ u ] ◃ ~ construct (inl u1 u2) ~>
⦇⌜ inl ⦇-⦈[ u2 ] ·:₂ (▹ ⦇-⦈ ◃ ⊕₁ ⦇-⦈) ⌟⦈[ u1 ] ⇐ t
AAConInr1 : {Γ : tctx} {t+ t1 t2 : htyp} {u u1 u2 : Nat} →
t+ ▸sum (t1 ⊕ t2) →
Γ ⊢ ▹ ⦇-⦈[ u ] ◃ ~ construct (inr u1 u2) ~> inr ▹ ⦇-⦈[ u2 ] ◃ ⇐ t+
AAConInr2 : {Γ : tctx} {t : htyp} {u u1 u2 : Nat} →
t ~̸ (⦇-⦈ ⊕ ⦇-⦈) →
Γ ⊢ ▹ ⦇-⦈[ u ] ◃ ~ construct (inr u1 u2) ~>
⦇⌜ inr ⦇-⦈[ u2 ] ·:₂ (▹ ⦇-⦈ ◃ ⊕₁ ⦇-⦈) ⌟⦈[ u1 ] ⇐ t
AAConCase : {Γ : tctx} {x y : Nat} {t : htyp} {u u1 u2 u3 : Nat} →
x # Γ →
y # Γ →
Γ ⊢ ▹ ⦇-⦈[ u ] ◃ ~ construct (case x y u1 u2 u3) ~>
case₁ ▹ ⦇-⦈[ u1 ] ◃ x ⦇-⦈[ u2 ] y ⦇-⦈[ u3 ] ⇐ t
AAZipLam : {Γ : tctx} {x : Nat} {t t1 t2 : htyp} {e e' : zexp} {α : action} →
x # Γ →
t ▸arr (t1 ==> t2) →
(Γ ,, (x , t1)) ⊢ e ~ α ~> e' ⇐ t2 →
Γ ⊢ (·λ x e) ~ α ~> (·λ x e') ⇐ t
AAZipInl : {Γ : tctx} {t+ t1 t2 : htyp} {e e' : zexp} {α : action} →
t+ ▸sum (t1 ⊕ t2) →
Γ ⊢ e ~ α ~> e' ⇐ t1 →
Γ ⊢ inl e ~ α ~> inl e' ⇐ t+
AAZipInr : {Γ : tctx} {t+ t1 t2 : htyp} {e e' : zexp} {α : action} →
t+ ▸sum (t1 ⊕ t2) →
Γ ⊢ e ~ α ~> e' ⇐ t2 →
Γ ⊢ inr e ~ α ~> inr e' ⇐ t+
AAZipCase1 : {Γ : tctx} {e e' : zexp} {e◆ e1 e2 : hexp} {x y : Nat}
{t t0 t+ t1 t2 : htyp} {α : action} →
x # Γ →
y # Γ →
erase-e e e◆ →
Γ ⊢ e◆ => t0 →
Γ ⊢ e => t0 ~ α ~> e' => t+ →
t+ ▸sum (t1 ⊕ t2) →
(Γ ,, (x , t1)) ⊢ e1 <= t →
(Γ ,, (y , t2)) ⊢ e2 <= t →
Γ ⊢ case₁ e x e1 y e2 ~ α ~> case₁ e' x e1 y e2 ⇐ t
AAZipCase2 : {Γ : tctx} {e1 e1' : zexp} {e e2 : hexp} {x y : Nat}
{t t+ t1 t2 : htyp} {α : action} →
x # Γ →
y # Γ →
Γ ⊢ e => t+ →
t+ ▸sum (t1 ⊕ t2) →
(Γ ,, (x , t1)) ⊢ e1 ~ α ~> e1' ⇐ t →
Γ ⊢ case₂ e x e1 y e2 ~ α ~> case₂ e x e1' y e2 ⇐ t
AAZipCase3 : {Γ : tctx} {e2 e2' : zexp} {e e1 : hexp} {x y : Nat}
{t t+ t1 t2 : htyp} {α : action} →
x # Γ →
y # Γ →
Γ ⊢ e => t+ →
t+ ▸sum (t1 ⊕ t2) →
(Γ ,, (y , t2)) ⊢ e2 ~ α ~> e2' ⇐ t →
Γ ⊢ case₃ e x e1 y e2 ~ α ~> case₃ e x e1 y e2' ⇐ t
|
programs/oeis/056/A056829.asm | karttu/loda | 0 | 97891 | <filename>programs/oeis/056/A056829.asm
; A056829: Nearest integer to n^2/6.
; 0,0,1,2,3,4,6,8,11,14,17,20,24,28,33,38,43,48,54,60,67,74,81,88,96,104,113,122,131,140,150,160,171,182,193,204,216,228,241,254,267,280,294,308,323,338,353,368,384,400,417,434,451,468,486,504
mov $1,$0
pow $1,2
add $1,3
div $1,6
|
Truncation.agda | howsiyu/hott-notes | 0 | 3178 | <filename>Truncation.agda
module Truncation where
open import Cubical.Foundations.Prelude
private
variable
ℓ ℓ₁ : Level
data Susp (A : Type ℓ) : Type ℓ where
north : Susp A
south : Susp A
merid : A → north ≡ south
SuspF : {A : Type ℓ} {B : Type ℓ₁} → (A → B) → Susp A → Susp B
SuspF f north = north
SuspF f south = south
SuspF f (merid a i) = merid (f a) i
data ℕ : Type where
zero : ℕ
suc : ℕ → ℕ
{-# BUILTIN NATURAL ℕ #-}
data ⊥ : Type where
S : ℕ → Type
S 0 = ⊥
S (suc n) = Susp (S n)
data ⊤ : Type where
⋆ : ⊤
D : ℕ → Type
D 0 = ⊤
D (suc n) = Susp (D n)
S→D : {n : ℕ} → S n → D n
S→D {suc n} = SuspF S→D
data ∥_∥_ (A : Type ℓ) (n : ℕ) : Type ℓ where
∣_∣ : A → ∥ A ∥ n
hub : (f : S n → ∥ A ∥ n) (u : D n) → ∥ A ∥ n
spoke : (f : S n → ∥ A ∥ n) (s : S n) → f s ≡ hub f (S→D s)
isOfHLevel : ℕ → Type ℓ → Type ℓ
isOfHLevel 0 A = A
isOfHLevel (suc n) A = (x y : A) → isOfHLevel n (x ≡ y)
sphereFill : (n : ℕ) (A : Type ℓ) (f : S n → A) → Type ℓ
sphereFill n A f = Σ (D n → A) (λ f' → (s : S n) → f s ≡ f' (S→D s))
isSphereFilled : ℕ → Type ℓ → Type ℓ
isSphereFilled n A = (f : S n → A) → sphereFill n A f
isSphereFilled∥∥ : (n : ℕ) (A : Type ℓ) → isSphereFilled n (∥ A ∥ n)
isSphereFilled∥∥ n A f = hub f , spoke f
isSphereFilledDesc : (n : ℕ) (A : Type ℓ)
→ isSphereFilled (suc n) A → (x y : A) → isSphereFilled n (x ≡ y)
isSphereFilledDesc n A h x y g = g' , r
where
f : S (suc n) → A
f north = x
f south = y
f (merid u i) = g u i
g' : D n → x ≡ y
g' u i =
hcomp
(λ j →
λ { (i = i0) → h f .snd north (~ j)
; (i = i1) → h f .snd south (~ j) })
(h f .fst (merid u i))
r : (s : S n) → g s ≡ g' (S→D s)
r s i j =
hcomp
(λ k →
λ { (i = i0) → g s j
; (j = i0) → h f .snd north (i ∧ ~ k)
; (j = i1) → h f .snd south (i ∧ ~ k) })
(h f .snd (merid s j) i)
isSphereFilled→isOfHLevel : (n : ℕ) (A : Type ℓ)
→ isSphereFilled n A → isOfHLevel n A
isSphereFilled→isOfHLevel zero A h = h (λ ()) .fst ⋆
isSphereFilled→isOfHLevel (suc n) A h x y =
isSphereFilled→isOfHLevel n (x ≡ y) (isSphereFilledDesc n A h x y)
isSphereFilledAsc : (n : ℕ) (A : Type ℓ)
→ ((x y : A) → isSphereFilled n (x ≡ y)) → isSphereFilled (suc n) A
isSphereFilledAsc n A h f = f' , r
where
g : S n → f north ≡ f south
g s i = f (merid s i)
f' : D (suc n) → A
f' north = f north
f' south = f south
f' (merid u i) = h (f north) (f south) g .fst u i
r : (s : S (suc n)) → f s ≡ f' (S→D s)
r north = refl
r south = refl
r (merid s i) j = h (f north) (f south) g .snd s j i
isOfHLevel→isSphereFilled : (n : ℕ) (A : Type ℓ)
→ isOfHLevel n A → isSphereFilled n A
isOfHLevel→isSphereFilled 0 A h f = (λ _ → h) , λ ()
isOfHLevel→isSphereFilled (suc n) A h f =
isSphereFilledAsc n A
(λ x y → isOfHLevel→isSphereFilled n (x ≡ y) (h x y)) f
isOfHLevelTrunc : (n : ℕ) (A : Type ℓ) → isOfHLevel n (∥ A ∥ n)
isOfHLevelTrunc n A = isSphereFilled→isOfHLevel n (∥ A ∥ n) (isSphereFilled∥∥ n A)
rec : {n : ℕ} {A : Type ℓ} {B : Type ℓ₁}
→ isOfHLevel n B
→ (A → B) → ∥ A ∥ n → B
rec {n = n} {A = A} {B = B} hB g = helper
where
h : isSphereFilled n B
h = isOfHLevel→isSphereFilled n B hB
helper : ∥ A ∥ n → B
helper ∣ x ∣ = g x
helper (hub f u) = h (λ s → helper (f s)) .fst u
helper (spoke f s i) = h (λ s → helper (f s)) .snd s i
sphereFillDep : (n : ℕ) (A : Type ℓ) (B : A → Type ℓ₁)
(f₀' : D n → A)
→ ((s : S n) → B (f₀' (S→D s)))
→ Type _
sphereFillDep n A B f₀' f = Σ ((u : D n) → B (f₀' u)) (λ f' → (s : S n) → f s ≡ f' (S→D s))
isSphereFilledDep : ℕ → (A : Type ℓ) (B : A → Type ℓ₁) → Type _
isSphereFilledDep n A B =
(f₀' : D n → A)
(f : (s : S n) → B (f₀' (S→D s)))
→ sphereFillDep n A B f₀' f
isSphereFilledDepAsc : (n : ℕ) {A : Type ℓ} (B : A → Type ℓ₁)
→ ((x₀ y₀ : A) (x₁ : B x₀) (y₁ : B y₀) → isSphereFilledDep n (x₀ ≡ y₀) (λ p → PathP (λ i → B (p i)) x₁ y₁))
→ isSphereFilledDep (suc n) A B
isSphereFilledDepAsc n {A = A} B hB f₀' f = f' , r
where
g₀' : (u : D n) → f₀' north ≡ f₀' south
g₀' u i = f₀' (merid u i)
g : (s : S n) → PathP (λ i → B (g₀' (S→D s) i)) (f north) (f south)
g s i = f (merid s i)
f' : (u : D (suc n)) → B (f₀' u)
f' north = f north
f' south = f south
f' (merid u i) = hB (f₀' north) (f₀' south) (f north) (f south) g₀' g .fst u i
r : (s : S (suc n)) → f s ≡ f' (S→D s)
r north = refl
r south = refl
r (merid s i) j = hB (f₀' north) (f₀' south) (f north) (f south) g₀' g .snd s j i
isOfHLevel→isSphereFilledDep : (n : ℕ) {A : Type ℓ} (B : A → Type ℓ₁)
→ ((a : A) → isOfHLevel n (B a)) → isSphereFilledDep n A B
isOfHLevel→isSphereFilledDep 0 B hB f₀' f = (λ u → hB (f₀' u)) , λ ()
isOfHLevel→isSphereFilledDep (suc n) {A = A} B hB =
isSphereFilledDepAsc n B
(λ x₀ y₀ x₁ y₁ →
isOfHLevel→isSphereFilledDep n {A = x₀ ≡ y₀} (λ p → PathP (λ i → B (p i)) x₁ y₁)
(λ p → J (λ y₀ p → (y₁ : B y₀) → isOfHLevel n (PathP (λ i → B (p i)) x₁ y₁)) (hB x₀ x₁) p y₁))
elim : {n : ℕ} {A : Type ℓ} {B : ∥ A ∥ n → Type ℓ₁}
(hB : (x : ∥ A ∥ n) → isOfHLevel n (B x))
(g : (a : A) → B (∣ a ∣)) (x : ∥ A ∥ n) → B x
elim {n = n} {A = A} {B = B} hB g = helper
where
h : isSphereFilledDep n (∥ A ∥ n) B
h = isOfHLevel→isSphereFilledDep n B hB
helper : (x : ∥ A ∥ n) → B x
helper ∣ a ∣ = g a
helper (hub f u) = h (hub f) (λ s → subst B (spoke f s) (helper (f s))) .fst u
helper (spoke f s i) =
hcomp
(λ j →
λ { (i = i0) → helper (f s)
; (i = i1) → h (hub f) (λ s → subst B (spoke f s) (helper (f s))) .snd s j })
(subst-filler B (spoke f s) (helper (f s)) i)
|
Tests/yasm-regression/simd64-2.asm | 13xforever/x86-assembly-textmate-bundle | 69 | 83014 | <gh_stars>10-100
[bits 64]
cvtsi2sd xmm0,eax ; out: f2 0f 2a c0
cvtsi2sd xmm0,rax ; out: f2 48 0f 2a c0
cvtsd2si rax,xmm0 ; out: f2 48 0f 2d c0
cvtsi2ss xmm0,rax ; out: f3 48 0f 2a c0
cvtsd2si rax,xmm0 ; out: f2 48 0f 2d c0
cvtss2si rax,xmm0 ; out: f3 48 0f 2d c0
cvttsd2si rax,xmm0 ; out: f2 48 0f 2c c0
cvttss2si rax,xmm0 ; out: f3 48 0f 2c c0
|
src/gen/cups-stdint_h.ads | persan/a-cups | 0 | 536 | pragma Ada_2005;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
private package CUPS.stdint_h is
INT8_MIN : constant := (-128); -- stdint.h:155
INT16_MIN : constant := (-32767-1); -- stdint.h:156
INT32_MIN : constant := (-2147483647-1); -- stdint.h:157
-- unsupported macro: INT64_MIN (-__INT64_C(9223372036854775807)-1)
INT8_MAX : constant := (127); -- stdint.h:160
INT16_MAX : constant := (32767); -- stdint.h:161
INT32_MAX : constant := (2147483647); -- stdint.h:162
-- unsupported macro: INT64_MAX (__INT64_C(9223372036854775807))
UINT8_MAX : constant := (255); -- stdint.h:166
UINT16_MAX : constant := (65535); -- stdint.h:167
UINT32_MAX : constant := (4294967295); -- stdint.h:168
-- unsupported macro: UINT64_MAX (__UINT64_C(18446744073709551615))
INT_LEAST8_MIN : constant := (-128); -- stdint.h:173
INT_LEAST16_MIN : constant := (-32767-1); -- stdint.h:174
INT_LEAST32_MIN : constant := (-2147483647-1); -- stdint.h:175
-- unsupported macro: INT_LEAST64_MIN (-__INT64_C(9223372036854775807)-1)
INT_LEAST8_MAX : constant := (127); -- stdint.h:178
INT_LEAST16_MAX : constant := (32767); -- stdint.h:179
INT_LEAST32_MAX : constant := (2147483647); -- stdint.h:180
-- unsupported macro: INT_LEAST64_MAX (__INT64_C(9223372036854775807))
UINT_LEAST8_MAX : constant := (255); -- stdint.h:184
UINT_LEAST16_MAX : constant := (65535); -- stdint.h:185
UINT_LEAST32_MAX : constant := (4294967295); -- stdint.h:186
-- unsupported macro: UINT_LEAST64_MAX (__UINT64_C(18446744073709551615))
INT_FAST8_MIN : constant := (-128); -- stdint.h:191
INT_FAST16_MIN : constant := (-9223372036854775807-1); -- stdint.h:193
INT_FAST32_MIN : constant := (-9223372036854775807-1); -- stdint.h:194
-- unsupported macro: INT_FAST64_MIN (-__INT64_C(9223372036854775807)-1)
INT_FAST8_MAX : constant := (127); -- stdint.h:201
INT_FAST16_MAX : constant := (9223372036854775807); -- stdint.h:203
INT_FAST32_MAX : constant := (9223372036854775807); -- stdint.h:204
-- unsupported macro: INT_FAST64_MAX (__INT64_C(9223372036854775807))
UINT_FAST8_MAX : constant := (255); -- stdint.h:212
UINT_FAST16_MAX : constant := (18446744073709551615); -- stdint.h:214
UINT_FAST32_MAX : constant := (18446744073709551615); -- stdint.h:215
-- unsupported macro: UINT_FAST64_MAX (__UINT64_C(18446744073709551615))
INTPTR_MIN : constant := (-9223372036854775807-1); -- stdint.h:225
INTPTR_MAX : constant := (9223372036854775807); -- stdint.h:226
UINTPTR_MAX : constant := (18446744073709551615); -- stdint.h:227
-- unsupported macro: INTMAX_MIN (-__INT64_C(9223372036854775807)-1)
-- unsupported macro: INTMAX_MAX (__INT64_C(9223372036854775807))
-- unsupported macro: UINTMAX_MAX (__UINT64_C(18446744073709551615))
PTRDIFF_MIN : constant := (-9223372036854775807-1); -- stdint.h:248
PTRDIFF_MAX : constant := (9223372036854775807); -- stdint.h:249
SIG_ATOMIC_MIN : constant := (-2147483647-1); -- stdint.h:256
SIG_ATOMIC_MAX : constant := (2147483647); -- stdint.h:257
SIZE_MAX : constant := (18446744073709551615); -- stdint.h:261
-- unsupported macro: WCHAR_MIN __WCHAR_MIN
-- unsupported macro: WCHAR_MAX __WCHAR_MAX
WINT_MIN : constant := (0); -- stdint.h:278
WINT_MAX : constant := (4294967295); -- stdint.h:279
-- arg-macro: procedure INT8_C c
-- c
-- arg-macro: procedure INT16_C c
-- c
-- arg-macro: procedure INT32_C c
-- c
-- unsupported macro: INT64_C(c) c ## L
-- arg-macro: procedure UINT8_C c
-- c
-- arg-macro: procedure UINT16_C c
-- c
-- unsupported macro: UINT32_C(c) c ## U
-- unsupported macro: UINT64_C(c) c ## UL
-- unsupported macro: INTMAX_C(c) c ## L
-- unsupported macro: UINTMAX_C(c) c ## UL
-- Copyright (C) 1997-2016 Free Software Foundation, Inc.
-- This file is part of the GNU C Library.
-- The GNU C Library is free software; you can redistribute it and/or
-- modify it under the terms of the GNU Lesser General Public
-- License as published by the Free Software Foundation; either
-- version 2.1 of the License, or (at your option) any later version.
-- The GNU C Library is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-- Lesser General Public License for more details.
-- You should have received a copy of the GNU Lesser General Public
-- License along with the GNU C Library; if not, see
-- <http://www.gnu.org/licenses/>.
-- * ISO C99: 7.18 Integer types <stdint.h>
--
-- Exact integral types.
-- Signed.
-- There is some amount of overlap with <sys/types.h> as known by inet code
-- Unsigned.
subtype uint8_t is unsigned_char; -- stdint.h:48
subtype uint16_t is unsigned_short; -- stdint.h:49
subtype uint32_t is unsigned; -- stdint.h:51
subtype uint64_t is unsigned_long; -- stdint.h:55
-- Small types.
-- Signed.
subtype int_least8_t is signed_char; -- stdint.h:65
subtype int_least16_t is short; -- stdint.h:66
subtype int_least32_t is int; -- stdint.h:67
subtype int_least64_t is long; -- stdint.h:69
-- Unsigned.
subtype uint_least8_t is unsigned_char; -- stdint.h:76
subtype uint_least16_t is unsigned_short; -- stdint.h:77
subtype uint_least32_t is unsigned; -- stdint.h:78
subtype uint_least64_t is unsigned_long; -- stdint.h:80
-- Fast types.
-- Signed.
subtype int_fast8_t is signed_char; -- stdint.h:90
subtype int_fast16_t is long; -- stdint.h:92
subtype int_fast32_t is long; -- stdint.h:93
subtype int_fast64_t is long; -- stdint.h:94
-- Unsigned.
subtype uint_fast8_t is unsigned_char; -- stdint.h:103
subtype uint_fast16_t is unsigned_long; -- stdint.h:105
subtype uint_fast32_t is unsigned_long; -- stdint.h:106
subtype uint_fast64_t is unsigned_long; -- stdint.h:107
-- Types for `void *' pointers.
subtype uintptr_t is unsigned_long; -- stdint.h:122
-- Largest integral types.
subtype intmax_t is long; -- stdint.h:134
subtype uintmax_t is unsigned_long; -- stdint.h:135
-- Limits of integral types.
-- Minimum of signed integral types.
-- Maximum of signed integral types.
-- Maximum of unsigned integral types.
-- Minimum of signed integral types having a minimum size.
-- Maximum of signed integral types having a minimum size.
-- Maximum of unsigned integral types having a minimum size.
-- Minimum of fast signed integral types having a minimum size.
-- Maximum of fast signed integral types having a minimum size.
-- Maximum of fast unsigned integral types having a minimum size.
-- Values to test for integral types holding `void *' pointer.
-- Minimum for largest signed integral type.
-- Maximum for largest signed integral type.
-- Maximum for largest unsigned integral type.
-- Limits of other integer types.
-- Limits of `ptrdiff_t' type.
-- Limits of `sig_atomic_t'.
-- Limit of `size_t' type.
-- Limits of `wchar_t'.
-- These constants might also be defined in <wchar.h>.
-- Limits of `wint_t'.
-- Signed.
-- Unsigned.
-- Maximal type.
end CUPS.stdint_h;
|
src/model/hyperion-monitoring-models.adb | stcarrez/hyperion | 0 | 27445 | <gh_stars>0
-----------------------------------------------------------------------
-- Hyperion.Monitoring.Models -- Hyperion.Monitoring.Models
-----------------------------------------------------------------------
-- File generated by ada-gen DO NOT MODIFY
-- Template used: templates/model/package-body.xhtml
-- Ada Generator: https://ada-gen.googlecode.com/svn/trunk Revision 1095
-----------------------------------------------------------------------
-- Copyright (C) 2019 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.
-----------------------------------------------------------------------
with Ada.Unchecked_Deallocation;
with Util.Beans.Objects.Time;
package body Hyperion.Monitoring.Models is
use type ADO.Objects.Object_Record_Access;
use type ADO.Objects.Object_Ref;
pragma Warnings (Off, "formal parameter * is not referenced");
function Snapshot_Key (Id : in ADO.Identifier) return ADO.Objects.Object_Key is
Result : ADO.Objects.Object_Key (Of_Type => ADO.Objects.KEY_INTEGER,
Of_Class => SNAPSHOT_DEF'Access);
begin
ADO.Objects.Set_Value (Result, Id);
return Result;
end Snapshot_Key;
function Snapshot_Key (Id : in String) return ADO.Objects.Object_Key is
Result : ADO.Objects.Object_Key (Of_Type => ADO.Objects.KEY_INTEGER,
Of_Class => SNAPSHOT_DEF'Access);
begin
ADO.Objects.Set_Value (Result, Id);
return Result;
end Snapshot_Key;
function "=" (Left, Right : Snapshot_Ref'Class) return Boolean is
begin
return ADO.Objects.Object_Ref'Class (Left) = ADO.Objects.Object_Ref'Class (Right);
end "=";
procedure Set_Field (Object : in out Snapshot_Ref'Class;
Impl : out Snapshot_Access) is
Result : ADO.Objects.Object_Record_Access;
begin
Object.Prepare_Modify (Result);
Impl := Snapshot_Impl (Result.all)'Access;
end Set_Field;
-- Internal method to allocate the Object_Record instance
procedure Allocate (Object : in out Snapshot_Ref) is
Impl : Snapshot_Access;
begin
Impl := new Snapshot_Impl;
Impl.Start_Date := ADO.DEFAULT_TIME;
Impl.End_Date := ADO.DEFAULT_TIME;
Impl.Version := 0;
ADO.Objects.Set_Object (Object, Impl.all'Access);
end Allocate;
-- ----------------------------------------
-- Data object: Snapshot
-- ----------------------------------------
procedure Set_Id (Object : in out Snapshot_Ref;
Value : in ADO.Identifier) is
Impl : Snapshot_Access;
begin
Set_Field (Object, Impl);
ADO.Objects.Set_Field_Key_Value (Impl.all, 1, Value);
end Set_Id;
function Get_Id (Object : in Snapshot_Ref)
return ADO.Identifier is
Impl : constant Snapshot_Access
:= Snapshot_Impl (Object.Get_Object.all)'Access;
begin
return Impl.Get_Key_Value;
end Get_Id;
procedure Set_Start_Date (Object : in out Snapshot_Ref;
Value : in Ada.Calendar.Time) is
Impl : Snapshot_Access;
begin
Set_Field (Object, Impl);
ADO.Objects.Set_Field_Time (Impl.all, 2, Impl.Start_Date, Value);
end Set_Start_Date;
function Get_Start_Date (Object : in Snapshot_Ref)
return Ada.Calendar.Time is
Impl : constant Snapshot_Access
:= Snapshot_Impl (Object.Get_Load_Object.all)'Access;
begin
return Impl.Start_Date;
end Get_Start_Date;
procedure Set_End_Date (Object : in out Snapshot_Ref;
Value : in Ada.Calendar.Time) is
Impl : Snapshot_Access;
begin
Set_Field (Object, Impl);
ADO.Objects.Set_Field_Time (Impl.all, 3, Impl.End_Date, Value);
end Set_End_Date;
function Get_End_Date (Object : in Snapshot_Ref)
return Ada.Calendar.Time is
Impl : constant Snapshot_Access
:= Snapshot_Impl (Object.Get_Load_Object.all)'Access;
begin
return Impl.End_Date;
end Get_End_Date;
function Get_Version (Object : in Snapshot_Ref)
return Integer is
Impl : constant Snapshot_Access
:= Snapshot_Impl (Object.Get_Load_Object.all)'Access;
begin
return Impl.Version;
end Get_Version;
procedure Set_Host (Object : in out Snapshot_Ref;
Value : in Hyperion.Hosts.Models.Host_Ref'Class) is
Impl : Snapshot_Access;
begin
Set_Field (Object, Impl);
ADO.Objects.Set_Field_Object (Impl.all, 5, Impl.Host, Value);
end Set_Host;
function Get_Host (Object : in Snapshot_Ref)
return Hyperion.Hosts.Models.Host_Ref'Class is
Impl : constant Snapshot_Access
:= Snapshot_Impl (Object.Get_Load_Object.all)'Access;
begin
return Impl.Host;
end Get_Host;
-- Copy of the object.
procedure Copy (Object : in Snapshot_Ref;
Into : in out Snapshot_Ref) is
Result : Snapshot_Ref;
begin
if not Object.Is_Null then
declare
Impl : constant Snapshot_Access
:= Snapshot_Impl (Object.Get_Load_Object.all)'Access;
Copy : constant Snapshot_Access
:= new Snapshot_Impl;
begin
ADO.Objects.Set_Object (Result, Copy.all'Access);
Copy.Copy (Impl.all);
Copy.Start_Date := Impl.Start_Date;
Copy.End_Date := Impl.End_Date;
Copy.Version := Impl.Version;
Copy.Host := Impl.Host;
end;
end if;
Into := Result;
end Copy;
procedure Find (Object : in out Snapshot_Ref;
Session : in out ADO.Sessions.Session'Class;
Query : in ADO.SQL.Query'Class;
Found : out Boolean) is
Impl : constant Snapshot_Access := new Snapshot_Impl;
begin
Impl.Find (Session, Query, Found);
if Found then
ADO.Objects.Set_Object (Object, Impl.all'Access);
else
ADO.Objects.Set_Object (Object, null);
Destroy (Impl);
end if;
end Find;
procedure Load (Object : in out Snapshot_Ref;
Session : in out ADO.Sessions.Session'Class;
Id : in ADO.Identifier) is
Impl : constant Snapshot_Access := new Snapshot_Impl;
Found : Boolean;
Query : ADO.SQL.Query;
begin
Query.Bind_Param (Position => 1, Value => Id);
Query.Set_Filter ("id = ?");
Impl.Find (Session, Query, Found);
if not Found then
Destroy (Impl);
raise ADO.Objects.NOT_FOUND;
end if;
ADO.Objects.Set_Object (Object, Impl.all'Access);
end Load;
procedure Load (Object : in out Snapshot_Ref;
Session : in out ADO.Sessions.Session'Class;
Id : in ADO.Identifier;
Found : out Boolean) is
Impl : constant Snapshot_Access := new Snapshot_Impl;
Query : ADO.SQL.Query;
begin
Query.Bind_Param (Position => 1, Value => Id);
Query.Set_Filter ("id = ?");
Impl.Find (Session, Query, Found);
if not Found then
Destroy (Impl);
else
ADO.Objects.Set_Object (Object, Impl.all'Access);
end if;
end Load;
procedure Save (Object : in out Snapshot_Ref;
Session : in out ADO.Sessions.Master_Session'Class) is
Impl : ADO.Objects.Object_Record_Access := Object.Get_Object;
begin
if Impl = null then
Impl := new Snapshot_Impl;
ADO.Objects.Set_Object (Object, Impl);
end if;
if not ADO.Objects.Is_Created (Impl.all) then
Impl.Create (Session);
else
Impl.Save (Session);
end if;
end Save;
procedure Delete (Object : in out Snapshot_Ref;
Session : in out ADO.Sessions.Master_Session'Class) is
Impl : constant ADO.Objects.Object_Record_Access := Object.Get_Object;
begin
if Impl /= null then
Impl.Delete (Session);
end if;
end Delete;
-- --------------------
-- Free the object
-- --------------------
procedure Destroy (Object : access Snapshot_Impl) is
type Snapshot_Impl_Ptr is access all Snapshot_Impl;
procedure Unchecked_Free is new Ada.Unchecked_Deallocation
(Snapshot_Impl, Snapshot_Impl_Ptr);
pragma Warnings (Off, "*redundant conversion*");
Ptr : Snapshot_Impl_Ptr := Snapshot_Impl (Object.all)'Access;
pragma Warnings (On, "*redundant conversion*");
begin
Unchecked_Free (Ptr);
end Destroy;
procedure Find (Object : in out Snapshot_Impl;
Session : in out ADO.Sessions.Session'Class;
Query : in ADO.SQL.Query'Class;
Found : out Boolean) is
Stmt : ADO.Statements.Query_Statement
:= Session.Create_Statement (Query, SNAPSHOT_DEF'Access);
begin
Stmt.Execute;
if Stmt.Has_Elements then
Object.Load (Stmt, Session);
Stmt.Next;
Found := not Stmt.Has_Elements;
else
Found := False;
end if;
end Find;
overriding
procedure Load (Object : in out Snapshot_Impl;
Session : in out ADO.Sessions.Session'Class) is
Found : Boolean;
Query : ADO.SQL.Query;
Id : constant ADO.Identifier := Object.Get_Key_Value;
begin
Query.Bind_Param (Position => 1, Value => Id);
Query.Set_Filter ("id = ?");
Object.Find (Session, Query, Found);
if not Found then
raise ADO.Objects.NOT_FOUND;
end if;
end Load;
procedure Save (Object : in out Snapshot_Impl;
Session : in out ADO.Sessions.Master_Session'Class) is
Stmt : ADO.Statements.Update_Statement
:= Session.Create_Statement (SNAPSHOT_DEF'Access);
begin
if Object.Is_Modified (1) then
Stmt.Save_Field (Name => COL_0_1_NAME, -- id
Value => Object.Get_Key);
Object.Clear_Modified (1);
end if;
if Object.Is_Modified (2) then
Stmt.Save_Field (Name => COL_1_1_NAME, -- start_date
Value => Object.Start_Date);
Object.Clear_Modified (2);
end if;
if Object.Is_Modified (3) then
Stmt.Save_Field (Name => COL_2_1_NAME, -- end_date
Value => Object.End_Date);
Object.Clear_Modified (3);
end if;
if Object.Is_Modified (5) then
Stmt.Save_Field (Name => COL_4_1_NAME, -- host_id
Value => Object.Host);
Object.Clear_Modified (5);
end if;
if Stmt.Has_Save_Fields then
Object.Version := Object.Version + 1;
Stmt.Save_Field (Name => "version",
Value => Object.Version);
Stmt.Set_Filter (Filter => "id = ? and version = ?");
Stmt.Add_Param (Value => Object.Get_Key);
Stmt.Add_Param (Value => Object.Version - 1);
declare
Result : Integer;
begin
Stmt.Execute (Result);
if Result /= 1 then
if Result /= 0 then
raise ADO.Objects.UPDATE_ERROR;
else
raise ADO.Objects.LAZY_LOCK;
end if;
end if;
end;
end if;
end Save;
procedure Create (Object : in out Snapshot_Impl;
Session : in out ADO.Sessions.Master_Session'Class) is
Query : ADO.Statements.Insert_Statement
:= Session.Create_Statement (SNAPSHOT_DEF'Access);
Result : Integer;
begin
Object.Version := 1;
Session.Allocate (Id => Object);
Query.Save_Field (Name => COL_0_1_NAME, -- id
Value => Object.Get_Key);
Query.Save_Field (Name => COL_1_1_NAME, -- start_date
Value => Object.Start_Date);
Query.Save_Field (Name => COL_2_1_NAME, -- end_date
Value => Object.End_Date);
Query.Save_Field (Name => COL_3_1_NAME, -- version
Value => Object.Version);
Query.Save_Field (Name => COL_4_1_NAME, -- host_id
Value => Object.Host);
Query.Execute (Result);
if Result /= 1 then
raise ADO.Objects.INSERT_ERROR;
end if;
ADO.Objects.Set_Created (Object);
end Create;
procedure Delete (Object : in out Snapshot_Impl;
Session : in out ADO.Sessions.Master_Session'Class) is
Stmt : ADO.Statements.Delete_Statement
:= Session.Create_Statement (SNAPSHOT_DEF'Access);
begin
Stmt.Set_Filter (Filter => "id = ?");
Stmt.Add_Param (Value => Object.Get_Key);
Stmt.Execute;
end Delete;
-- ------------------------------
-- Get the bean attribute identified by the name.
-- ------------------------------
overriding
function Get_Value (From : in Snapshot_Ref;
Name : in String) return Util.Beans.Objects.Object is
Obj : ADO.Objects.Object_Record_Access;
Impl : access Snapshot_Impl;
begin
if From.Is_Null then
return Util.Beans.Objects.Null_Object;
end if;
Obj := From.Get_Load_Object;
Impl := Snapshot_Impl (Obj.all)'Access;
if Name = "id" then
return ADO.Objects.To_Object (Impl.Get_Key);
elsif Name = "start_date" then
return Util.Beans.Objects.Time.To_Object (Impl.Start_Date);
elsif Name = "end_date" then
return Util.Beans.Objects.Time.To_Object (Impl.End_Date);
end if;
return Util.Beans.Objects.Null_Object;
end Get_Value;
procedure List (Object : in out Snapshot_Vector;
Session : in out ADO.Sessions.Session'Class;
Query : in ADO.SQL.Query'Class) is
Stmt : ADO.Statements.Query_Statement
:= Session.Create_Statement (Query, SNAPSHOT_DEF'Access);
begin
Stmt.Execute;
Snapshot_Vectors.Clear (Object);
while Stmt.Has_Elements loop
declare
Item : Snapshot_Ref;
Impl : constant Snapshot_Access := new Snapshot_Impl;
begin
Impl.Load (Stmt, Session);
ADO.Objects.Set_Object (Item, Impl.all'Access);
Object.Append (Item);
end;
Stmt.Next;
end loop;
end List;
-- ------------------------------
-- Load the object from current iterator position
-- ------------------------------
procedure Load (Object : in out Snapshot_Impl;
Stmt : in out ADO.Statements.Query_Statement'Class;
Session : in out ADO.Sessions.Session'Class) is
begin
Object.Set_Key_Value (Stmt.Get_Identifier (0));
Object.Start_Date := Stmt.Get_Time (1);
Object.End_Date := Stmt.Get_Time (2);
if not Stmt.Is_Null (4) then
Object.Host.Set_Key_Value (Stmt.Get_Identifier (4), Session);
end if;
Object.Version := Stmt.Get_Integer (3);
ADO.Objects.Set_Created (Object);
end Load;
function Source_Key (Id : in ADO.Identifier) return ADO.Objects.Object_Key is
Result : ADO.Objects.Object_Key (Of_Type => ADO.Objects.KEY_INTEGER,
Of_Class => SOURCE_DEF'Access);
begin
ADO.Objects.Set_Value (Result, Id);
return Result;
end Source_Key;
function Source_Key (Id : in String) return ADO.Objects.Object_Key is
Result : ADO.Objects.Object_Key (Of_Type => ADO.Objects.KEY_INTEGER,
Of_Class => SOURCE_DEF'Access);
begin
ADO.Objects.Set_Value (Result, Id);
return Result;
end Source_Key;
function "=" (Left, Right : Source_Ref'Class) return Boolean is
begin
return ADO.Objects.Object_Ref'Class (Left) = ADO.Objects.Object_Ref'Class (Right);
end "=";
procedure Set_Field (Object : in out Source_Ref'Class;
Impl : out Source_Access) is
Result : ADO.Objects.Object_Record_Access;
begin
Object.Prepare_Modify (Result);
Impl := Source_Impl (Result.all)'Access;
end Set_Field;
-- Internal method to allocate the Object_Record instance
procedure Allocate (Object : in out Source_Ref) is
Impl : Source_Access;
begin
Impl := new Source_Impl;
Impl.Version := 0;
ADO.Objects.Set_Object (Object, Impl.all'Access);
end Allocate;
-- ----------------------------------------
-- Data object: Source
-- ----------------------------------------
procedure Set_Id (Object : in out Source_Ref;
Value : in ADO.Identifier) is
Impl : Source_Access;
begin
Set_Field (Object, Impl);
ADO.Objects.Set_Field_Key_Value (Impl.all, 1, Value);
end Set_Id;
function Get_Id (Object : in Source_Ref)
return ADO.Identifier is
Impl : constant Source_Access
:= Source_Impl (Object.Get_Object.all)'Access;
begin
return Impl.Get_Key_Value;
end Get_Id;
procedure Set_Name (Object : in out Source_Ref;
Value : in String) is
Impl : Source_Access;
begin
Set_Field (Object, Impl);
ADO.Objects.Set_Field_String (Impl.all, 2, Impl.Name, Value);
end Set_Name;
procedure Set_Name (Object : in out Source_Ref;
Value : in Ada.Strings.Unbounded.Unbounded_String) is
Impl : Source_Access;
begin
Set_Field (Object, Impl);
ADO.Objects.Set_Field_Unbounded_String (Impl.all, 2, Impl.Name, Value);
end Set_Name;
function Get_Name (Object : in Source_Ref)
return String is
begin
return Ada.Strings.Unbounded.To_String (Object.Get_Name);
end Get_Name;
function Get_Name (Object : in Source_Ref)
return Ada.Strings.Unbounded.Unbounded_String is
Impl : constant Source_Access
:= Source_Impl (Object.Get_Load_Object.all)'Access;
begin
return Impl.Name;
end Get_Name;
procedure Set_Label (Object : in out Source_Ref;
Value : in String) is
Impl : Source_Access;
begin
Set_Field (Object, Impl);
ADO.Objects.Set_Field_String (Impl.all, 3, Impl.Label, Value);
end Set_Label;
procedure Set_Label (Object : in out Source_Ref;
Value : in Ada.Strings.Unbounded.Unbounded_String) is
Impl : Source_Access;
begin
Set_Field (Object, Impl);
ADO.Objects.Set_Field_Unbounded_String (Impl.all, 3, Impl.Label, Value);
end Set_Label;
function Get_Label (Object : in Source_Ref)
return String is
begin
return Ada.Strings.Unbounded.To_String (Object.Get_Label);
end Get_Label;
function Get_Label (Object : in Source_Ref)
return Ada.Strings.Unbounded.Unbounded_String is
Impl : constant Source_Access
:= Source_Impl (Object.Get_Load_Object.all)'Access;
begin
return Impl.Label;
end Get_Label;
function Get_Version (Object : in Source_Ref)
return Integer is
Impl : constant Source_Access
:= Source_Impl (Object.Get_Load_Object.all)'Access;
begin
return Impl.Version;
end Get_Version;
procedure Set_Host (Object : in out Source_Ref;
Value : in Hyperion.Hosts.Models.Host_Ref'Class) is
Impl : Source_Access;
begin
Set_Field (Object, Impl);
ADO.Objects.Set_Field_Object (Impl.all, 5, Impl.Host, Value);
end Set_Host;
function Get_Host (Object : in Source_Ref)
return Hyperion.Hosts.Models.Host_Ref'Class is
Impl : constant Source_Access
:= Source_Impl (Object.Get_Load_Object.all)'Access;
begin
return Impl.Host;
end Get_Host;
-- Copy of the object.
procedure Copy (Object : in Source_Ref;
Into : in out Source_Ref) is
Result : Source_Ref;
begin
if not Object.Is_Null then
declare
Impl : constant Source_Access
:= Source_Impl (Object.Get_Load_Object.all)'Access;
Copy : constant Source_Access
:= new Source_Impl;
begin
ADO.Objects.Set_Object (Result, Copy.all'Access);
Copy.Copy (Impl.all);
Copy.Name := Impl.Name;
Copy.Label := Impl.Label;
Copy.Version := Impl.Version;
Copy.Host := Impl.Host;
end;
end if;
Into := Result;
end Copy;
procedure Find (Object : in out Source_Ref;
Session : in out ADO.Sessions.Session'Class;
Query : in ADO.SQL.Query'Class;
Found : out Boolean) is
Impl : constant Source_Access := new Source_Impl;
begin
Impl.Find (Session, Query, Found);
if Found then
ADO.Objects.Set_Object (Object, Impl.all'Access);
else
ADO.Objects.Set_Object (Object, null);
Destroy (Impl);
end if;
end Find;
procedure Load (Object : in out Source_Ref;
Session : in out ADO.Sessions.Session'Class;
Id : in ADO.Identifier) is
Impl : constant Source_Access := new Source_Impl;
Found : Boolean;
Query : ADO.SQL.Query;
begin
Query.Bind_Param (Position => 1, Value => Id);
Query.Set_Filter ("id = ?");
Impl.Find (Session, Query, Found);
if not Found then
Destroy (Impl);
raise ADO.Objects.NOT_FOUND;
end if;
ADO.Objects.Set_Object (Object, Impl.all'Access);
end Load;
procedure Load (Object : in out Source_Ref;
Session : in out ADO.Sessions.Session'Class;
Id : in ADO.Identifier;
Found : out Boolean) is
Impl : constant Source_Access := new Source_Impl;
Query : ADO.SQL.Query;
begin
Query.Bind_Param (Position => 1, Value => Id);
Query.Set_Filter ("id = ?");
Impl.Find (Session, Query, Found);
if not Found then
Destroy (Impl);
else
ADO.Objects.Set_Object (Object, Impl.all'Access);
end if;
end Load;
procedure Save (Object : in out Source_Ref;
Session : in out ADO.Sessions.Master_Session'Class) is
Impl : ADO.Objects.Object_Record_Access := Object.Get_Object;
begin
if Impl = null then
Impl := new Source_Impl;
ADO.Objects.Set_Object (Object, Impl);
end if;
if not ADO.Objects.Is_Created (Impl.all) then
Impl.Create (Session);
else
Impl.Save (Session);
end if;
end Save;
procedure Delete (Object : in out Source_Ref;
Session : in out ADO.Sessions.Master_Session'Class) is
Impl : constant ADO.Objects.Object_Record_Access := Object.Get_Object;
begin
if Impl /= null then
Impl.Delete (Session);
end if;
end Delete;
-- --------------------
-- Free the object
-- --------------------
procedure Destroy (Object : access Source_Impl) is
type Source_Impl_Ptr is access all Source_Impl;
procedure Unchecked_Free is new Ada.Unchecked_Deallocation
(Source_Impl, Source_Impl_Ptr);
pragma Warnings (Off, "*redundant conversion*");
Ptr : Source_Impl_Ptr := Source_Impl (Object.all)'Access;
pragma Warnings (On, "*redundant conversion*");
begin
Unchecked_Free (Ptr);
end Destroy;
procedure Find (Object : in out Source_Impl;
Session : in out ADO.Sessions.Session'Class;
Query : in ADO.SQL.Query'Class;
Found : out Boolean) is
Stmt : ADO.Statements.Query_Statement
:= Session.Create_Statement (Query, SOURCE_DEF'Access);
begin
Stmt.Execute;
if Stmt.Has_Elements then
Object.Load (Stmt, Session);
Stmt.Next;
Found := not Stmt.Has_Elements;
else
Found := False;
end if;
end Find;
overriding
procedure Load (Object : in out Source_Impl;
Session : in out ADO.Sessions.Session'Class) is
Found : Boolean;
Query : ADO.SQL.Query;
Id : constant ADO.Identifier := Object.Get_Key_Value;
begin
Query.Bind_Param (Position => 1, Value => Id);
Query.Set_Filter ("id = ?");
Object.Find (Session, Query, Found);
if not Found then
raise ADO.Objects.NOT_FOUND;
end if;
end Load;
procedure Save (Object : in out Source_Impl;
Session : in out ADO.Sessions.Master_Session'Class) is
Stmt : ADO.Statements.Update_Statement
:= Session.Create_Statement (SOURCE_DEF'Access);
begin
if Object.Is_Modified (1) then
Stmt.Save_Field (Name => COL_0_2_NAME, -- id
Value => Object.Get_Key);
Object.Clear_Modified (1);
end if;
if Object.Is_Modified (2) then
Stmt.Save_Field (Name => COL_1_2_NAME, -- name
Value => Object.Name);
Object.Clear_Modified (2);
end if;
if Object.Is_Modified (3) then
Stmt.Save_Field (Name => COL_2_2_NAME, -- label
Value => Object.Label);
Object.Clear_Modified (3);
end if;
if Object.Is_Modified (5) then
Stmt.Save_Field (Name => COL_4_2_NAME, -- host_id
Value => Object.Host);
Object.Clear_Modified (5);
end if;
if Stmt.Has_Save_Fields then
Object.Version := Object.Version + 1;
Stmt.Save_Field (Name => "version",
Value => Object.Version);
Stmt.Set_Filter (Filter => "id = ? and version = ?");
Stmt.Add_Param (Value => Object.Get_Key);
Stmt.Add_Param (Value => Object.Version - 1);
declare
Result : Integer;
begin
Stmt.Execute (Result);
if Result /= 1 then
if Result /= 0 then
raise ADO.Objects.UPDATE_ERROR;
else
raise ADO.Objects.LAZY_LOCK;
end if;
end if;
end;
end if;
end Save;
procedure Create (Object : in out Source_Impl;
Session : in out ADO.Sessions.Master_Session'Class) is
Query : ADO.Statements.Insert_Statement
:= Session.Create_Statement (SOURCE_DEF'Access);
Result : Integer;
begin
Object.Version := 1;
Session.Allocate (Id => Object);
Query.Save_Field (Name => COL_0_2_NAME, -- id
Value => Object.Get_Key);
Query.Save_Field (Name => COL_1_2_NAME, -- name
Value => Object.Name);
Query.Save_Field (Name => COL_2_2_NAME, -- label
Value => Object.Label);
Query.Save_Field (Name => COL_3_2_NAME, -- version
Value => Object.Version);
Query.Save_Field (Name => COL_4_2_NAME, -- host_id
Value => Object.Host);
Query.Execute (Result);
if Result /= 1 then
raise ADO.Objects.INSERT_ERROR;
end if;
ADO.Objects.Set_Created (Object);
end Create;
procedure Delete (Object : in out Source_Impl;
Session : in out ADO.Sessions.Master_Session'Class) is
Stmt : ADO.Statements.Delete_Statement
:= Session.Create_Statement (SOURCE_DEF'Access);
begin
Stmt.Set_Filter (Filter => "id = ?");
Stmt.Add_Param (Value => Object.Get_Key);
Stmt.Execute;
end Delete;
-- ------------------------------
-- Get the bean attribute identified by the name.
-- ------------------------------
overriding
function Get_Value (From : in Source_Ref;
Name : in String) return Util.Beans.Objects.Object is
Obj : ADO.Objects.Object_Record_Access;
Impl : access Source_Impl;
begin
if From.Is_Null then
return Util.Beans.Objects.Null_Object;
end if;
Obj := From.Get_Load_Object;
Impl := Source_Impl (Obj.all)'Access;
if Name = "id" then
return ADO.Objects.To_Object (Impl.Get_Key);
elsif Name = "name" then
return Util.Beans.Objects.To_Object (Impl.Name);
elsif Name = "label" then
return Util.Beans.Objects.To_Object (Impl.Label);
end if;
return Util.Beans.Objects.Null_Object;
end Get_Value;
procedure List (Object : in out Source_Vector;
Session : in out ADO.Sessions.Session'Class;
Query : in ADO.SQL.Query'Class) is
Stmt : ADO.Statements.Query_Statement
:= Session.Create_Statement (Query, SOURCE_DEF'Access);
begin
Stmt.Execute;
Source_Vectors.Clear (Object);
while Stmt.Has_Elements loop
declare
Item : Source_Ref;
Impl : constant Source_Access := new Source_Impl;
begin
Impl.Load (Stmt, Session);
ADO.Objects.Set_Object (Item, Impl.all'Access);
Object.Append (Item);
end;
Stmt.Next;
end loop;
end List;
-- ------------------------------
-- Load the object from current iterator position
-- ------------------------------
procedure Load (Object : in out Source_Impl;
Stmt : in out ADO.Statements.Query_Statement'Class;
Session : in out ADO.Sessions.Session'Class) is
begin
Object.Set_Key_Value (Stmt.Get_Identifier (0));
Object.Name := Stmt.Get_Unbounded_String (1);
Object.Label := Stmt.Get_Unbounded_String (2);
if not Stmt.Is_Null (4) then
Object.Host.Set_Key_Value (Stmt.Get_Identifier (4), Session);
end if;
Object.Version := Stmt.Get_Integer (3);
ADO.Objects.Set_Created (Object);
end Load;
function Series_Key (Id : in ADO.Identifier) return ADO.Objects.Object_Key is
Result : ADO.Objects.Object_Key (Of_Type => ADO.Objects.KEY_INTEGER,
Of_Class => SERIES_DEF'Access);
begin
ADO.Objects.Set_Value (Result, Id);
return Result;
end Series_Key;
function Series_Key (Id : in String) return ADO.Objects.Object_Key is
Result : ADO.Objects.Object_Key (Of_Type => ADO.Objects.KEY_INTEGER,
Of_Class => SERIES_DEF'Access);
begin
ADO.Objects.Set_Value (Result, Id);
return Result;
end Series_Key;
function "=" (Left, Right : Series_Ref'Class) return Boolean is
begin
return ADO.Objects.Object_Ref'Class (Left) = ADO.Objects.Object_Ref'Class (Right);
end "=";
procedure Set_Field (Object : in out Series_Ref'Class;
Impl : out Series_Access) is
Result : ADO.Objects.Object_Record_Access;
begin
Object.Prepare_Modify (Result);
Impl := Series_Impl (Result.all)'Access;
end Set_Field;
-- Internal method to allocate the Object_Record instance
procedure Allocate (Object : in out Series_Ref) is
Impl : Series_Access;
begin
Impl := new Series_Impl;
Impl.Version := 0;
Impl.Start_Date := ADO.DEFAULT_TIME;
Impl.End_Date := ADO.DEFAULT_TIME;
Impl.Count := 0;
Impl.First_Value := 0;
Impl.Format := Hyperion.Monitoring.Models.Format_Type'First;
ADO.Objects.Set_Object (Object, Impl.all'Access);
end Allocate;
-- ----------------------------------------
-- Data object: Series
-- ----------------------------------------
procedure Set_Id (Object : in out Series_Ref;
Value : in ADO.Identifier) is
Impl : Series_Access;
begin
Set_Field (Object, Impl);
ADO.Objects.Set_Field_Key_Value (Impl.all, 1, Value);
end Set_Id;
function Get_Id (Object : in Series_Ref)
return ADO.Identifier is
Impl : constant Series_Access
:= Series_Impl (Object.Get_Object.all)'Access;
begin
return Impl.Get_Key_Value;
end Get_Id;
function Get_Version (Object : in Series_Ref)
return Integer is
Impl : constant Series_Access
:= Series_Impl (Object.Get_Load_Object.all)'Access;
begin
return Impl.Version;
end Get_Version;
procedure Set_Start_Date (Object : in out Series_Ref;
Value : in Ada.Calendar.Time) is
Impl : Series_Access;
begin
Set_Field (Object, Impl);
ADO.Objects.Set_Field_Time (Impl.all, 3, Impl.Start_Date, Value);
end Set_Start_Date;
function Get_Start_Date (Object : in Series_Ref)
return Ada.Calendar.Time is
Impl : constant Series_Access
:= Series_Impl (Object.Get_Load_Object.all)'Access;
begin
return Impl.Start_Date;
end Get_Start_Date;
procedure Set_End_Date (Object : in out Series_Ref;
Value : in Ada.Calendar.Time) is
Impl : Series_Access;
begin
Set_Field (Object, Impl);
ADO.Objects.Set_Field_Time (Impl.all, 4, Impl.End_Date, Value);
end Set_End_Date;
function Get_End_Date (Object : in Series_Ref)
return Ada.Calendar.Time is
Impl : constant Series_Access
:= Series_Impl (Object.Get_Load_Object.all)'Access;
begin
return Impl.End_Date;
end Get_End_Date;
procedure Set_Content (Object : in out Series_Ref;
Value : in ADO.Blob_Ref) is
Impl : Series_Access;
begin
Set_Field (Object, Impl);
ADO.Objects.Set_Field_Blob (Impl.all, 5, Impl.Content, Value);
end Set_Content;
function Get_Content (Object : in Series_Ref)
return ADO.Blob_Ref is
Impl : constant Series_Access
:= Series_Impl (Object.Get_Load_Object.all)'Access;
begin
return Impl.Content;
end Get_Content;
procedure Set_Count (Object : in out Series_Ref;
Value : in Integer) is
Impl : Series_Access;
begin
Set_Field (Object, Impl);
ADO.Objects.Set_Field_Integer (Impl.all, 6, Impl.Count, Value);
end Set_Count;
function Get_Count (Object : in Series_Ref)
return Integer is
Impl : constant Series_Access
:= Series_Impl (Object.Get_Load_Object.all)'Access;
begin
return Impl.Count;
end Get_Count;
procedure Set_First_Value (Object : in out Series_Ref;
Value : in Integer) is
Impl : Series_Access;
begin
Set_Field (Object, Impl);
ADO.Objects.Set_Field_Integer (Impl.all, 7, Impl.First_Value, Value);
end Set_First_Value;
function Get_First_Value (Object : in Series_Ref)
return Integer is
Impl : constant Series_Access
:= Series_Impl (Object.Get_Load_Object.all)'Access;
begin
return Impl.First_Value;
end Get_First_Value;
procedure Set_Format (Object : in out Series_Ref;
Value : in Hyperion.Monitoring.Models.Format_Type) is
procedure Set_Field_Enum is
new ADO.Objects.Set_Field_Operation (Format_Type);
Impl : Series_Access;
begin
Set_Field (Object, Impl);
Set_Field_Enum (Impl.all, 8, Impl.Format, Value);
end Set_Format;
function Get_Format (Object : in Series_Ref)
return Hyperion.Monitoring.Models.Format_Type is
Impl : constant Series_Access
:= Series_Impl (Object.Get_Load_Object.all)'Access;
begin
return Impl.Format;
end Get_Format;
procedure Set_Source (Object : in out Series_Ref;
Value : in Hyperion.Monitoring.Models.Source_Ref'Class) is
Impl : Series_Access;
begin
Set_Field (Object, Impl);
ADO.Objects.Set_Field_Object (Impl.all, 9, Impl.Source, Value);
end Set_Source;
function Get_Source (Object : in Series_Ref)
return Hyperion.Monitoring.Models.Source_Ref'Class is
Impl : constant Series_Access
:= Series_Impl (Object.Get_Load_Object.all)'Access;
begin
return Impl.Source;
end Get_Source;
procedure Set_Snapshot (Object : in out Series_Ref;
Value : in Hyperion.Monitoring.Models.Snapshot_Ref'Class) is
Impl : Series_Access;
begin
Set_Field (Object, Impl);
ADO.Objects.Set_Field_Object (Impl.all, 10, Impl.Snapshot, Value);
end Set_Snapshot;
function Get_Snapshot (Object : in Series_Ref)
return Hyperion.Monitoring.Models.Snapshot_Ref'Class is
Impl : constant Series_Access
:= Series_Impl (Object.Get_Load_Object.all)'Access;
begin
return Impl.Snapshot;
end Get_Snapshot;
-- Copy of the object.
procedure Copy (Object : in Series_Ref;
Into : in out Series_Ref) is
Result : Series_Ref;
begin
if not Object.Is_Null then
declare
Impl : constant Series_Access
:= Series_Impl (Object.Get_Load_Object.all)'Access;
Copy : constant Series_Access
:= new Series_Impl;
begin
ADO.Objects.Set_Object (Result, Copy.all'Access);
Copy.Copy (Impl.all);
Copy.Version := Impl.Version;
Copy.Start_Date := Impl.Start_Date;
Copy.End_Date := Impl.End_Date;
Copy.Content := Impl.Content;
Copy.Count := Impl.Count;
Copy.First_Value := Impl.First_Value;
Copy.Format := Impl.Format;
Copy.Source := Impl.Source;
Copy.Snapshot := Impl.Snapshot;
end;
end if;
Into := Result;
end Copy;
procedure Find (Object : in out Series_Ref;
Session : in out ADO.Sessions.Session'Class;
Query : in ADO.SQL.Query'Class;
Found : out Boolean) is
Impl : constant Series_Access := new Series_Impl;
begin
Impl.Find (Session, Query, Found);
if Found then
ADO.Objects.Set_Object (Object, Impl.all'Access);
else
ADO.Objects.Set_Object (Object, null);
Destroy (Impl);
end if;
end Find;
procedure Load (Object : in out Series_Ref;
Session : in out ADO.Sessions.Session'Class;
Id : in ADO.Identifier) is
Impl : constant Series_Access := new Series_Impl;
Found : Boolean;
Query : ADO.SQL.Query;
begin
Query.Bind_Param (Position => 1, Value => Id);
Query.Set_Filter ("id = ?");
Impl.Find (Session, Query, Found);
if not Found then
Destroy (Impl);
raise ADO.Objects.NOT_FOUND;
end if;
ADO.Objects.Set_Object (Object, Impl.all'Access);
end Load;
procedure Load (Object : in out Series_Ref;
Session : in out ADO.Sessions.Session'Class;
Id : in ADO.Identifier;
Found : out Boolean) is
Impl : constant Series_Access := new Series_Impl;
Query : ADO.SQL.Query;
begin
Query.Bind_Param (Position => 1, Value => Id);
Query.Set_Filter ("id = ?");
Impl.Find (Session, Query, Found);
if not Found then
Destroy (Impl);
else
ADO.Objects.Set_Object (Object, Impl.all'Access);
end if;
end Load;
procedure Save (Object : in out Series_Ref;
Session : in out ADO.Sessions.Master_Session'Class) is
Impl : ADO.Objects.Object_Record_Access := Object.Get_Object;
begin
if Impl = null then
Impl := new Series_Impl;
ADO.Objects.Set_Object (Object, Impl);
end if;
if not ADO.Objects.Is_Created (Impl.all) then
Impl.Create (Session);
else
Impl.Save (Session);
end if;
end Save;
procedure Delete (Object : in out Series_Ref;
Session : in out ADO.Sessions.Master_Session'Class) is
Impl : constant ADO.Objects.Object_Record_Access := Object.Get_Object;
begin
if Impl /= null then
Impl.Delete (Session);
end if;
end Delete;
-- --------------------
-- Free the object
-- --------------------
procedure Destroy (Object : access Series_Impl) is
type Series_Impl_Ptr is access all Series_Impl;
procedure Unchecked_Free is new Ada.Unchecked_Deallocation
(Series_Impl, Series_Impl_Ptr);
pragma Warnings (Off, "*redundant conversion*");
Ptr : Series_Impl_Ptr := Series_Impl (Object.all)'Access;
pragma Warnings (On, "*redundant conversion*");
begin
Unchecked_Free (Ptr);
end Destroy;
procedure Find (Object : in out Series_Impl;
Session : in out ADO.Sessions.Session'Class;
Query : in ADO.SQL.Query'Class;
Found : out Boolean) is
Stmt : ADO.Statements.Query_Statement
:= Session.Create_Statement (Query, SERIES_DEF'Access);
begin
Stmt.Execute;
if Stmt.Has_Elements then
Object.Load (Stmt, Session);
Stmt.Next;
Found := not Stmt.Has_Elements;
else
Found := False;
end if;
end Find;
overriding
procedure Load (Object : in out Series_Impl;
Session : in out ADO.Sessions.Session'Class) is
Found : Boolean;
Query : ADO.SQL.Query;
Id : constant ADO.Identifier := Object.Get_Key_Value;
begin
Query.Bind_Param (Position => 1, Value => Id);
Query.Set_Filter ("id = ?");
Object.Find (Session, Query, Found);
if not Found then
raise ADO.Objects.NOT_FOUND;
end if;
end Load;
procedure Save (Object : in out Series_Impl;
Session : in out ADO.Sessions.Master_Session'Class) is
Stmt : ADO.Statements.Update_Statement
:= Session.Create_Statement (SERIES_DEF'Access);
begin
if Object.Is_Modified (1) then
Stmt.Save_Field (Name => COL_0_3_NAME, -- id
Value => Object.Get_Key);
Object.Clear_Modified (1);
end if;
if Object.Is_Modified (3) then
Stmt.Save_Field (Name => COL_2_3_NAME, -- start_date
Value => Object.Start_Date);
Object.Clear_Modified (3);
end if;
if Object.Is_Modified (4) then
Stmt.Save_Field (Name => COL_3_3_NAME, -- end_date
Value => Object.End_Date);
Object.Clear_Modified (4);
end if;
if Object.Is_Modified (5) then
Stmt.Save_Field (Name => COL_4_3_NAME, -- content
Value => Object.Content);
Object.Clear_Modified (5);
end if;
if Object.Is_Modified (6) then
Stmt.Save_Field (Name => COL_5_3_NAME, -- count
Value => Object.Count);
Object.Clear_Modified (6);
end if;
if Object.Is_Modified (7) then
Stmt.Save_Field (Name => COL_6_3_NAME, -- first_value
Value => Object.First_Value);
Object.Clear_Modified (7);
end if;
if Object.Is_Modified (8) then
Stmt.Save_Field (Name => COL_7_3_NAME, -- format
Value => Integer (Format_Type'Pos (Object.Format)));
Object.Clear_Modified (8);
end if;
if Object.Is_Modified (9) then
Stmt.Save_Field (Name => COL_8_3_NAME, -- source_id
Value => Object.Source);
Object.Clear_Modified (9);
end if;
if Object.Is_Modified (10) then
Stmt.Save_Field (Name => COL_9_3_NAME, -- snapshot_id
Value => Object.Snapshot);
Object.Clear_Modified (10);
end if;
if Stmt.Has_Save_Fields then
Object.Version := Object.Version + 1;
Stmt.Save_Field (Name => "version",
Value => Object.Version);
Stmt.Set_Filter (Filter => "id = ? and version = ?");
Stmt.Add_Param (Value => Object.Get_Key);
Stmt.Add_Param (Value => Object.Version - 1);
declare
Result : Integer;
begin
Stmt.Execute (Result);
if Result /= 1 then
if Result /= 0 then
raise ADO.Objects.UPDATE_ERROR;
else
raise ADO.Objects.LAZY_LOCK;
end if;
end if;
end;
end if;
end Save;
procedure Create (Object : in out Series_Impl;
Session : in out ADO.Sessions.Master_Session'Class) is
Query : ADO.Statements.Insert_Statement
:= Session.Create_Statement (SERIES_DEF'Access);
Result : Integer;
begin
Object.Version := 1;
Session.Allocate (Id => Object);
Query.Save_Field (Name => COL_0_3_NAME, -- id
Value => Object.Get_Key);
Query.Save_Field (Name => COL_1_3_NAME, -- version
Value => Object.Version);
Query.Save_Field (Name => COL_2_3_NAME, -- start_date
Value => Object.Start_Date);
Query.Save_Field (Name => COL_3_3_NAME, -- end_date
Value => Object.End_Date);
Query.Save_Field (Name => COL_4_3_NAME, -- content
Value => Object.Content);
Query.Save_Field (Name => COL_5_3_NAME, -- count
Value => Object.Count);
Query.Save_Field (Name => COL_6_3_NAME, -- first_value
Value => Object.First_Value);
Query.Save_Field (Name => COL_7_3_NAME, -- format
Value => Integer (Format_Type'Pos (Object.Format)));
Query.Save_Field (Name => COL_8_3_NAME, -- source_id
Value => Object.Source);
Query.Save_Field (Name => COL_9_3_NAME, -- snapshot_id
Value => Object.Snapshot);
Query.Execute (Result);
if Result /= 1 then
raise ADO.Objects.INSERT_ERROR;
end if;
ADO.Objects.Set_Created (Object);
end Create;
procedure Delete (Object : in out Series_Impl;
Session : in out ADO.Sessions.Master_Session'Class) is
Stmt : ADO.Statements.Delete_Statement
:= Session.Create_Statement (SERIES_DEF'Access);
begin
Stmt.Set_Filter (Filter => "id = ?");
Stmt.Add_Param (Value => Object.Get_Key);
Stmt.Execute;
end Delete;
-- ------------------------------
-- Get the bean attribute identified by the name.
-- ------------------------------
overriding
function Get_Value (From : in Series_Ref;
Name : in String) return Util.Beans.Objects.Object is
Obj : ADO.Objects.Object_Record_Access;
Impl : access Series_Impl;
begin
if From.Is_Null then
return Util.Beans.Objects.Null_Object;
end if;
Obj := From.Get_Load_Object;
Impl := Series_Impl (Obj.all)'Access;
if Name = "id" then
return ADO.Objects.To_Object (Impl.Get_Key);
elsif Name = "start_date" then
return Util.Beans.Objects.Time.To_Object (Impl.Start_Date);
elsif Name = "end_date" then
return Util.Beans.Objects.Time.To_Object (Impl.End_Date);
elsif Name = "count" then
return Util.Beans.Objects.To_Object (Long_Long_Integer (Impl.Count));
elsif Name = "first_value" then
return Util.Beans.Objects.To_Object (Long_Long_Integer (Impl.First_Value));
elsif Name = "format" then
return Hyperion.Monitoring.Models.Format_Type_Objects.To_Object (Impl.Format);
end if;
return Util.Beans.Objects.Null_Object;
end Get_Value;
-- ------------------------------
-- Load the object from current iterator position
-- ------------------------------
procedure Load (Object : in out Series_Impl;
Stmt : in out ADO.Statements.Query_Statement'Class;
Session : in out ADO.Sessions.Session'Class) is
begin
Object.Set_Key_Value (Stmt.Get_Identifier (0));
Object.Start_Date := Stmt.Get_Time (2);
Object.End_Date := Stmt.Get_Time (3);
Object.Content := Stmt.Get_Blob (4);
Object.Count := Stmt.Get_Integer (5);
Object.First_Value := Stmt.Get_Integer (6);
Object.Format := Format_Type'Val (Stmt.Get_Integer (7));
if not Stmt.Is_Null (8) then
Object.Source.Set_Key_Value (Stmt.Get_Identifier (8), Session);
end if;
if not Stmt.Is_Null (9) then
Object.Snapshot.Set_Key_Value (Stmt.Get_Identifier (9), Session);
end if;
Object.Version := Stmt.Get_Integer (1);
ADO.Objects.Set_Created (Object);
end Load;
end Hyperion.Monitoring.Models;
|
code-gen/test.asm | luispadron/Decaf-Lang | 0 | 15873 | # standard Decaf preamble
.text
.align 2
.globl main
_factorial:
# BeginFunc 36
subu $sp, $sp, 8 # decrement sp to make space to save ra, fp
sw $fp, 8($sp) # save fp
sw $ra, 4($sp) # save ra
addiu $fp, $sp, 8 # set up new fp
subu $sp, $sp, 36 # decrement sp to make space for locals/temps
# _tmp0 = 1
li $v0, 1 # load constant value 1 into $v0
sw $v0, -8($fp) # spill _tmp0 from $v0 to $fp-8
# _tmp1 = n < _tmp0
lw $v0, 4($fp) # fill n to $v0 from $fp+4
lw $v1, -8($fp) # fill _tmp0 to $v1 from $fp-8
slt $v0, $v0, $v1
sw $v0, -12($fp) # spill _tmp1 from $v0 to $fp-12
# _tmp2 = n == _tmp0
lw $v0, 4($fp) # fill n to $v0 from $fp+4
lw $v1, -8($fp) # fill _tmp0 to $v1 from $fp-8
seq $v0, $v0, $v1
sw $v0, -16($fp) # spill _tmp2 from $v0 to $fp-16
# _tmp3 = _tmp1 || _tmp2
lw $v0, -12($fp) # fill _tmp1 to $v0 from $fp-12
lw $v1, -16($fp) # fill _tmp2 to $v1 from $fp-16
or $v0, $v0, $v1
sw $v0, -20($fp) # spill _tmp3 from $v0 to $fp-20
# IfZ _tmp3 Goto _L0
lw $v0, -20($fp) # fill _tmp3 to $v0 from $fp-20
beqz $v0, _L0 # branch if _tmp3 is zero
# _tmp4 = 1
li $v0, 1 # load constant value 1 into $v0
sw $v0, -24($fp) # spill _tmp4 from $v0 to $fp-24
# Return _tmp4
lw $v0, -24($fp) # fill _tmp4 to $v0 from $fp-24
move $v0, $v0 # assign return value into $v0
move $sp, $fp # pop callee frame off stack
lw $ra, -4($fp) # restore saved ra
lw $fp, 0($fp) # restore saved fp
jr $ra # return from function
_L0:
# _tmp5 = 1
li $v0, 1 # load constant value 1 into $v0
sw $v0, -28($fp) # spill _tmp5 from $v0 to $fp-28
# _tmp6 = n - _tmp5
lw $v0, 4($fp) # fill n to $v0 from $fp+4
lw $v1, -28($fp) # fill _tmp5 to $v1 from $fp-28
sub $v0, $v0, $v1
sw $v0, -32($fp) # spill _tmp6 from $v0 to $fp-32
# PushParam _tmp6
subu $sp, $sp, 4 # decrement sp to make space for param
lw $v0, -32($fp) # fill _tmp6 to $v0 from $fp-32
sw $v0, 4($sp) # copy param value to stack
# _tmp7 = LCall _factorial
jal _factorial # jump to function
move $v0, $v0 # copy function return value from $v0
sw $v0, -36($fp) # spill _tmp7 from $v0 to $fp-36
# PopParams 4
add $sp, $sp, 4 # pop params off stack
# _tmp8 = n * _tmp7
lw $v0, 4($fp) # fill n to $v0 from $fp+4
lw $v1, -36($fp) # fill _tmp7 to $v1 from $fp-36
mul $v0, $v0, $v1
sw $v0, -40($fp) # spill _tmp8 from $v0 to $fp-40
# Return _tmp8
lw $v0, -40($fp) # fill _tmp8 to $v0 from $fp-40
move $v0, $v0 # assign return value into $v0
move $sp, $fp # pop callee frame off stack
lw $ra, -4($fp) # restore saved ra
lw $fp, 0($fp) # restore saved fp
jr $ra # return from function
# EndFunc
# (below handles reaching end of fn body with no explicit return)
move $sp, $fp # pop callee frame off stack
lw $ra, -4($fp) # restore saved ra
lw $fp, 0($fp) # restore saved fp
jr $ra # return from function
main:
# BeginFunc 48
subu $sp, $sp, 8 # decrement sp to make space to save ra, fp
sw $fp, 8($sp) # save fp
sw $ra, 4($sp) # save ra
addiu $fp, $sp, 8 # set up new fp
subu $sp, $sp, 48 # decrement sp to make space for locals/temps
# _tmp9 = 1
li $v0, 1 # load constant value 1 into $v0
sw $v0, -12($fp) # spill _tmp9 from $v0 to $fp-12
# n = _tmp9
lw $v0, -12($fp) # fill _tmp9 to $v0 from $fp-12
sw $v0, -8($fp) # spill n from $v0 to $fp-8
_L1:
# _tmp10 = 15
li $v0, 15 # load constant value 15 into $v0
sw $v0, -16($fp) # spill _tmp10 from $v0 to $fp-16
# _tmp11 = n < _tmp10
lw $v0, -8($fp) # fill n to $v0 from $fp-8
lw $v1, -16($fp) # fill _tmp10 to $v1 from $fp-16
slt $v0, $v0, $v1
sw $v0, -20($fp) # spill _tmp11 from $v0 to $fp-20
# _tmp12 = n == _tmp10
lw $v0, -8($fp) # fill n to $v0 from $fp-8
lw $v1, -16($fp) # fill _tmp10 to $v1 from $fp-16
seq $v0, $v0, $v1
sw $v0, -24($fp) # spill _tmp12 from $v0 to $fp-24
# _tmp13 = _tmp11 || _tmp12
lw $v0, -20($fp) # fill _tmp11 to $v0 from $fp-20
lw $v1, -24($fp) # fill _tmp12 to $v1 from $fp-24
or $v0, $v0, $v1
sw $v0, -28($fp) # spill _tmp13 from $v0 to $fp-28
# IfZ _tmp13 Goto _L2
lw $v0, -28($fp) # fill _tmp13 to $v0 from $fp-28
beqz $v0, _L2 # branch if _tmp13 is zero
# _tmp14 = "Factorial("
.data # create string constant marked with label
_string1: .asciiz "Factorial("
.text
la $v0, _string1 # load label
sw $v0, -32($fp) # spill _tmp14 from $v0 to $fp-32
# PushParam _tmp14
subu $sp, $sp, 4 # decrement sp to make space for param
lw $v0, -32($fp) # fill _tmp14 to $v0 from $fp-32
sw $v0, 4($sp) # copy param value to stack
# LCall _PrintString
jal _PrintString # jump to function
# PopParams 4
add $sp, $sp, 4 # pop params off stack
# PushParam n
subu $sp, $sp, 4 # decrement sp to make space for param
lw $v0, -8($fp) # fill n to $v0 from $fp-8
sw $v0, 4($sp) # copy param value to stack
# LCall _PrintInt
jal _PrintInt # jump to function
# PopParams 4
add $sp, $sp, 4 # pop params off stack
# _tmp15 = ") = "
.data # create string constant marked with label
_string2: .asciiz ") = "
.text
la $v0, _string2 # load label
sw $v0, -36($fp) # spill _tmp15 from $v0 to $fp-36
# PushParam _tmp15
subu $sp, $sp, 4 # decrement sp to make space for param
lw $v0, -36($fp) # fill _tmp15 to $v0 from $fp-36
sw $v0, 4($sp) # copy param value to stack
# LCall _PrintString
jal _PrintString # jump to function
# PopParams 4
add $sp, $sp, 4 # pop params off stack
# PushParam n
subu $sp, $sp, 4 # decrement sp to make space for param
lw $v0, -8($fp) # fill n to $v0 from $fp-8
sw $v0, 4($sp) # copy param value to stack
# _tmp16 = LCall _factorial
jal _factorial # jump to function
move $v0, $v0 # copy function return value from $v0
sw $v0, -40($fp) # spill _tmp16 from $v0 to $fp-40
# PopParams 4
add $sp, $sp, 4 # pop params off stack
# PushParam _tmp16
subu $sp, $sp, 4 # decrement sp to make space for param
lw $v0, -40($fp) # fill _tmp16 to $v0 from $fp-40
sw $v0, 4($sp) # copy param value to stack
# LCall _PrintInt
jal _PrintInt # jump to function
# PopParams 4
add $sp, $sp, 4 # pop params off stack
# _tmp17 = "\n"
.data # create string constant marked with label
_string3: .asciiz "\n"
.text
la $v0, _string3 # load label
sw $v0, -44($fp) # spill _tmp17 from $v0 to $fp-44
# PushParam _tmp17
subu $sp, $sp, 4 # decrement sp to make space for param
lw $v0, -44($fp) # fill _tmp17 to $v0 from $fp-44
sw $v0, 4($sp) # copy param value to stack
# LCall _PrintString
jal _PrintString # jump to function
# PopParams 4
add $sp, $sp, 4 # pop params off stack
# _tmp18 = 1
li $v0, 1 # load constant value 1 into $v0
sw $v0, -48($fp) # spill _tmp18 from $v0 to $fp-48
# _tmp19 = n + _tmp18
lw $v0, -8($fp) # fill n to $v0 from $fp-8
lw $v1, -48($fp) # fill _tmp18 to $v1 from $fp-48
add $v0, $v0, $v1
sw $v0, -52($fp) # spill _tmp19 from $v0 to $fp-52
# n = _tmp19
lw $v0, -52($fp) # fill _tmp19 to $v0 from $fp-52
sw $v0, -8($fp) # spill n from $v0 to $fp-8
# Goto _L1
b _L1 # unconditional branch
_L2:
# EndFunc
# (below handles reaching end of fn body with no explicit return)
move $sp, $fp # pop callee frame off stack
lw $ra, -4($fp) # restore saved ra
lw $fp, 0($fp) # restore saved fp
jr $ra # return from function
_PrintInt:
subu $sp, $sp, 8 # decrement sp to make space to save ra,fp
sw $fp, 8($sp) # save fp
sw $ra, 4($sp) # save ra
addiu $fp, $sp, 8 # set up new fp
lw $a0, 4($fp) # fill a from $fp+4
# LCall _PrintInt
li $v0, 1
syscall
# EndFunc
# (below handles reaching end of fn body with no explicit return)
move $sp, $fp # pop callee frame off stack
lw $ra, -4($fp) # restore saved ra
lw $fp, 0($fp) # restore saved fp
jr $ra # return from function
_ReadInteger:
subu $sp, $sp, 8 # decrement sp to make space to save ra,fp
sw $fp, 8($sp) # save fp
sw $ra, 4($sp) # save ra
addiu $fp, $sp, 8 # set up new fp
li $v0, 5
syscall
# EndFunc
# (below handles reaching end of fn body with no explicit return)
move $sp, $fp # pop callee frame off stack
lw $ra, -4($fp) # restore saved ra
lw $fp, 0($fp) # restore saved fp
jr $ra # return from function
_PrintBool:
subu $sp, $sp, 8 # decrement sp to make space to save ra, fp
sw $fp, 8($sp) # save fp
sw $ra, 4($sp) # save ra
addiu $fp, $sp, 8 # set up new fp
lw $a0, 4($fp) # fill a from $fp+4
li $v0, 4
beq $a0, $0, PrintBoolFalse
la $a0, _PrintBoolTrueString
j PrintBoolEnd
PrintBoolFalse:
la $a0, _PrintBoolFalseString
PrintBoolEnd:
syscall
# EndFunc
# (below handles reaching end of fn body with no explicit return)
move $sp, $fp # pop callee frame off stack
lw $ra, -4($fp) # restore saved ra
lw $fp, 0($fp) # restore saved fp
jr $ra # return from function
.data # create string constant marked with label
_PrintBoolTrueString: .asciiz "true"
.text
.data # create string constant marked with label
_PrintBoolFalseString: .asciiz "false"
.text
_PrintString:
subu $sp, $sp, 8 # decrement sp to make space to save ra, fp
sw $fp, 8($sp) # save fp
sw $ra, 4($sp) # save ra
addiu $fp, $sp, 8 # set up new fp
lw $a0, 4($fp) # fill a from $fp+4
li $v0, 4
syscall
# EndFunc
# (below handles reaching end of fn body with no explicit return)
move $sp, $fp # pop callee frame off stack
lw $ra, -4($fp) # restore saved ra
lw $fp, 0($fp) # restore saved fp
jr $ra # return from function
_Alloc:
subu $sp, $sp, 8 # decrement sp to make space to save ra,fp
sw $fp, 8($sp) # save fp
sw $ra, 4($sp) # save ra
addiu $fp, $sp, 8 # set up new fp
lw $a0, 4($fp) # fill a from $fp+4
li $v0, 9
syscall
# EndFunc
# (below handles reaching end of fn body with no explicit return)
move $sp, $fp # pop callee frame off stack
lw $ra, -4($fp) # restore saved ra
lw $fp, 0($fp) # restore saved fp
jr $ra # return from function
_Halt:
li $v0, 10
syscall
# EndFunc
_StringEqual:
subu $sp, $sp, 8 # decrement sp to make space to save ra, fp
sw $fp, 8($sp) # save fp
sw $ra, 4($sp) # save ra
addiu $fp, $sp, 8 # set up new fp
lw $a0, 4($fp) # fill a from $fp+4
lw $a1, 8($fp) # fill a from $fp+8
beq $a0,$a1,Lrunt10
Lrunt12:
lbu $v0,($a0)
lbu $a2,($a1)
bne $v0,$a2,Lrunt11
addiu $a0,$a0,1
addiu $a1,$a1,1
bne $v0,$0,Lrunt12
li $v0,1
j Lrunt10
Lrunt11:
li $v0,0
Lrunt10:
# EndFunc
# (below handles reaching end of fn body with no explicit return)
move $sp, $fp # pop callee frame off stack
lw $ra, -4($fp) # restore saved ra
lw $fp, 0($fp) # restore saved fp
jr $ra # return from function
_ReadLine:
subu $sp, $sp, 8 # decrement sp to make space to save ra, fp
sw $fp, 8($sp) # save fp
sw $ra, 4($sp) # save ra
addiu $fp, $sp, 8 # set up new fp
li $a0, 101
li $v0, 9
syscall
addi $a0, $v0, 0
li $v0, 8
li $a1,101
syscall
addiu $v0,$a0,0 # pointer to begin of string
Lrunt21:
lb $a1,($a0) # load character at pointer
addiu $a0,$a0,1 # forward pointer
bnez $a1,Lrunt21 # loop until end of string is reached
lb $a1,-2($a0) # load character before end of string
li $a2,10 # newline character bneq $a1,$a2,Lrunt20 # do not remove last character if not newline
sb $0,-2($a0) # Add the terminating character in its place
Lrunt20:
# EndFunc
# (below handles reaching end of fn body with no explicit return)
move $sp, $fp # pop callee frame off stack
lw $ra, -4($fp) # restore saved ra
lw $fp, 0($fp) # restore saved fp
jr $ra # return from function
|
vendor/stdlib/src/Relation/Binary/PropositionalEquality/TrustMe.agda | isabella232/Lemmachine | 56 | 6723 | <reponame>isabella232/Lemmachine
------------------------------------------------------------------------
-- An equality postulate which evaluates
------------------------------------------------------------------------
module Relation.Binary.PropositionalEquality.TrustMe where
open import Relation.Binary.PropositionalEquality
private
primitive
primTrustMe : {A : Set}{a b : A} → a ≡ b
-- trustMe {a = x} {b = y} evaluates to refl if x and y are
-- definitionally equal.
--
-- For an example of the use of trustMe, see Data.String._≟_.
trustMe : {A : Set}{a b : A} → a ≡ b
trustMe = primTrustMe
|
programs/oeis/202/A202452.asm | neoneye/loda | 22 | 165096 | <filename>programs/oeis/202/A202452.asm<gh_stars>10-100
; A202452: Lower triangular Fibonacci matrix, by SW antidiagonals.
; 1,1,0,2,1,0,3,1,0,0,5,2,1,0,0,8,3,1,0,0,0,13,5,2,1,0,0,0,21,8,3,1,0,0,0,0,34,13,5,2,1,0,0,0,0,55,21,8,3,1,0,0,0,0,0,89,34,13,5,2,1,0,0,0,0,0,144,55,21,8,3,1,0,0,0,0,0,0
seq $0,114327 ; Table T(n,m) = n - m read by upwards antidiagonals.
add $0,4
trn $0,3
seq $0,22086 ; Fibonacci sequence beginning 0, 3.
div $0,3
|
Task/ABC-Problem/AppleScript/abc-problem-1.applescript | mullikine/RosettaCodeData | 1 | 1832 | <filename>Task/ABC-Problem/AppleScript/abc-problem-1.applescript
set blocks to {"bo", "xk", "dq", "cp", "na", "gt", "re", "tg", "qd", "fs", ¬
"jw", "hu", "vi", "an", "ob", "er", "fs", "ly", "pc", "zm"}
canMakeWordWithBlocks("a", blocks)
canMakeWordWithBlocks("bark", blocks)
canMakeWordWithBlocks("book", blocks)
canMakeWordWithBlocks("treat", blocks)
canMakeWordWithBlocks("common", blocks)
canMakeWordWithBlocks("squad", blocks)
canMakeWordWithBlocks("confuse", blocks)
on canMakeWordWithBlocks(theString, constBlocks)
copy constBlocks to theBlocks
if theString = "" then return true
set i to 1
repeat
if i > (count theBlocks) then exit repeat
if character 1 of theString is in item i of theBlocks then
set item i of theBlocks to missing value
set theBlocks to strings of theBlocks
if canMakeWordWithBlocks(rest of characters of theString as string, theBlocks) then
return true
end if
end if
set i to i + 1
end repeat
return false
end canMakeWordWithBlocks
|
kernel/arch/i386/entry.asm | lochnessdragon/exokernel | 1 | 17332 | ; 32-bit entry is standard for gnu multiboot2
; so somehow, we have to setup a transition to x86_64 bit mode...
bits 32
global entry ; the entry point for the kernel.elf file
KERNEL_STACK_SIZE equ 4096 ; the kernels stack size in bytes
section .bss
align 4 ; align at 4 bytes
kernel_stack: ; kernel stack header for later reference
resb KERNEL_STACK_SIZE ; reserve KERNEL_STACK_SIZE bytes in the executable for later use.
section .text ; start of the code section
align 8 ; align with 64 bit boundary (multiboot2 standard)
%include "multiboot_header.inc" ; info for the multiboot2 header.
align 4
extern kmain ; defined so that we can call it later
entry:
;mov eax, 0xCAFEBABE ; tells us that the operating system has initialized correctly
; initialize the stack
mov esp, kernel_stack + KERNEL_STACK_SIZE ; point esp to the start of the stack.
; push the multiboot information to the stack to be used by the c function
push eax
push ebx
; jump to a c function
call kmain
cli
hlt |
Transynther/x86/_processed/NONE/_xt_sm_/i9-9900K_12_0xca_notsx.log_21829_540.asm | ljhsiun2/medusa | 9 | 245454 | <reponame>ljhsiun2/medusa
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r13
push %r8
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x18cb1, %r8
nop
nop
nop
xor %r13, %r13
mov $0x6162636465666768, %rdi
movq %rdi, %xmm0
movups %xmm0, (%r8)
nop
nop
sub %r10, %r10
lea addresses_A_ht+0x9099, %rbx
nop
nop
nop
nop
inc %rsi
mov (%rbx), %di
nop
nop
nop
nop
cmp %rbx, %rbx
lea addresses_normal_ht+0x12971, %rsi
clflush (%rsi)
nop
cmp %r11, %r11
vmovups (%rsi), %ymm3
vextracti128 $1, %ymm3, %xmm3
vpextrq $1, %xmm3, %r13
nop
nop
nop
nop
nop
cmp $28866, %rbx
lea addresses_WC_ht+0x11379, %rsi
lea addresses_WC_ht+0x1a351, %rdi
nop
nop
nop
nop
and $45342, %r13
mov $59, %rcx
rep movsq
nop
nop
nop
and $26228, %r13
lea addresses_A_ht+0x46f9, %rsi
lea addresses_D_ht+0x6d71, %rdi
nop
add $46879, %r8
mov $41, %rcx
rep movsb
nop
nop
nop
nop
sub $13802, %r13
lea addresses_A_ht+0x1691, %r8
nop
nop
xor $30769, %r11
and $0xffffffffffffffc0, %r8
movaps (%r8), %xmm6
vpextrq $1, %xmm6, %r10
nop
nop
nop
nop
nop
cmp %r11, %r11
lea addresses_WT_ht+0x1aab1, %rsi
lea addresses_WT_ht+0xa701, %rdi
and $12817, %rbx
mov $68, %rcx
rep movsq
inc %rbx
lea addresses_UC_ht+0x1a7f1, %rsi
nop
nop
nop
nop
nop
add %r13, %r13
and $0xffffffffffffffc0, %rsi
vmovntdqa (%rsi), %ymm5
vextracti128 $1, %ymm5, %xmm5
vpextrq $0, %xmm5, %rbx
nop
nop
nop
and %rsi, %rsi
lea addresses_A_ht+0x1c531, %rcx
clflush (%rcx)
nop
nop
nop
and $43582, %rbx
mov (%rcx), %r11d
nop
nop
nop
nop
nop
add %rdi, %rdi
lea addresses_D_ht+0x193c1, %r8
nop
nop
and $39445, %r11
movw $0x6162, (%r8)
nop
nop
nop
xor $58726, %rsi
lea addresses_WC_ht+0x8ef1, %rsi
lea addresses_A_ht+0x1768e, %rdi
nop
nop
nop
nop
nop
cmp %r10, %r10
mov $35, %rcx
rep movsq
nop
nop
sub $19541, %r8
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %r8
pop %r13
pop %r11
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r15
push %rax
push %rbx
push %rcx
push %rdx
push %rsi
// Store
lea addresses_A+0xb901, %rbx
nop
nop
nop
nop
nop
and $46318, %rcx
mov $0x5152535455565758, %r10
movq %r10, (%rbx)
nop
nop
nop
nop
add %r15, %r15
// Store
mov $0xd71, %rsi
nop
nop
dec %rdx
mov $0x5152535455565758, %rbx
movq %rbx, (%rsi)
cmp $16064, %rcx
// Store
lea addresses_RW+0x6971, %rbx
nop
add $31185, %rax
mov $0x5152535455565758, %r15
movq %r15, %xmm1
vmovups %ymm1, (%rbx)
xor %r15, %r15
// Store
lea addresses_WT+0x1ace5, %rbx
and %rax, %rax
movw $0x5152, (%rbx)
nop
nop
nop
sub $53110, %r10
// Store
lea addresses_PSE+0x19471, %r15
nop
nop
nop
and $20827, %r10
movb $0x51, (%r15)
nop
nop
nop
and %rdx, %rdx
// Store
lea addresses_UC+0x1c201, %rax
nop
nop
nop
sub $37261, %rbx
movb $0x51, (%rax)
nop
nop
nop
cmp $7782, %r10
// Store
lea addresses_WC+0x14971, %r10
nop
nop
nop
nop
xor %rdx, %rdx
mov $0x5152535455565758, %rcx
movq %rcx, %xmm2
movups %xmm2, (%r10)
nop
nop
nop
xor %rbx, %rbx
// Faulty Load
lea addresses_RW+0x6971, %rdx
nop
nop
inc %r10
mov (%rdx), %ebx
lea oracles, %r10
and $0xff, %rbx
shlq $12, %rbx
mov (%r10,%rbx,1), %rbx
pop %rsi
pop %rdx
pop %rcx
pop %rbx
pop %rax
pop %r15
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_RW', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 0}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_A', 'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 4}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_P', 'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 10}}
{'OP': 'STOR', 'dst': {'same': True, 'type': 'addresses_RW', 'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 0}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_WT', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 2}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_PSE', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 7}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_UC', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 0}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_WC', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 10}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_RW', 'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 0}}
<gen_prepare_buffer>
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_D_ht', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 6}}
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_A_ht', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 3}}
{'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_normal_ht', 'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 11}}
{'OP': 'REPM', 'src': {'same': False, 'congruent': 3, 'type': 'addresses_WC_ht'}, 'dst': {'same': False, 'congruent': 4, 'type': 'addresses_WC_ht'}}
{'OP': 'REPM', 'src': {'same': False, 'congruent': 3, 'type': 'addresses_A_ht'}, 'dst': {'same': False, 'congruent': 7, 'type': 'addresses_D_ht'}}
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_A_ht', 'NT': False, 'AVXalign': True, 'size': 16, 'congruent': 5}}
{'OP': 'REPM', 'src': {'same': False, 'congruent': 5, 'type': 'addresses_WT_ht'}, 'dst': {'same': False, 'congruent': 4, 'type': 'addresses_WT_ht'}}
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_UC_ht', 'NT': True, 'AVXalign': False, 'size': 32, 'congruent': 7}}
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_A_ht', 'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 3}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_D_ht', 'NT': True, 'AVXalign': False, 'size': 2, 'congruent': 3}}
{'OP': 'REPM', 'src': {'same': False, 'congruent': 6, 'type': 'addresses_WC_ht'}, 'dst': {'same': False, 'congruent': 0, 'type': 'addresses_A_ht'}}
{'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
*/
|
alloy4fun_models/trashltl/models/16/cyXviBXn5dj3coRgs.als | Kaixi26/org.alloytools.alloy | 0 | 212 | <gh_stars>0
open main
pred idcyXviBXn5dj3coRgs_prop17 {
always all f : File | f not in File since f in Trash and eventually f in Trash
}
pred __repair { idcyXviBXn5dj3coRgs_prop17 }
check __repair { idcyXviBXn5dj3coRgs_prop17 <=> prop17o } |
test_condexp.asm | acastrauss/compiler_project | 0 | 13453 | <reponame>acastrauss/compiler_project
main:
PUSH %14
MOV %15,%14
SUBS %15,$4,%15
MOV $5,-4(%14)
CMPS -4(%14),$3
@if0:
ADDS -4(%14),$3,%0
JLES @false0
@true0:
MOV %0,%1
JMP @exit0
@false0:
ADDS -4(%14),$5,%1
MOV %1,%1
@exit0:
SUBS %15,$4,%15
MOV %1,-8(%14)
@main_body:
MOV -8(%14),%13
JMP @main_exit
@main_exit:
MOV %14,%15
POP %14
RET |
vpx_dsp/arm/loopfilter_4_neon.asm | clear39/avcode-libvpx | 2,151 | 13089 | <filename>vpx_dsp/arm/loopfilter_4_neon.asm
;
; Copyright (c) 2013 The WebM project authors. All Rights Reserved.
;
; Use of this source code is governed by a BSD-style license
; that can be found in the LICENSE file in the root of the source
; tree. An additional intellectual property rights grant can be found
; in the file PATENTS. All contributing project authors may
; be found in the AUTHORS file in the root of the source tree.
;
EXPORT |vpx_lpf_horizontal_4_neon|
EXPORT |vpx_lpf_vertical_4_neon|
EXPORT |vpx_lpf_horizontal_4_dual_neon|
EXPORT |vpx_lpf_vertical_4_dual_neon|
ARM
AREA ||.text||, CODE, READONLY, ALIGN=2
; Currently vpx only works on iterations 8 at a time. The vp8 loop filter
; works on 16 iterations at a time.
;
; void vpx_lpf_horizontal_4_neon(uint8_t *s,
; int p /* pitch */,
; const uint8_t *blimit,
; const uint8_t *limit,
; const uint8_t *thresh)
;
; r0 uint8_t *s,
; r1 int p, /* pitch */
; r2 const uint8_t *blimit,
; r3 const uint8_t *limit,
; sp const uint8_t *thresh,
|vpx_lpf_horizontal_4_neon| PROC
push {lr}
vld1.8 {d0[]}, [r2] ; duplicate *blimit
ldr r2, [sp, #4] ; load thresh
add r1, r1, r1 ; double pitch
vld1.8 {d1[]}, [r3] ; duplicate *limit
vld1.8 {d2[]}, [r2] ; duplicate *thresh
sub r2, r0, r1, lsl #1 ; move src pointer down by 4 lines
add r3, r2, r1, lsr #1 ; set to 3 lines down
vld1.u8 {d3}, [r2@64], r1 ; p3
vld1.u8 {d4}, [r3@64], r1 ; p2
vld1.u8 {d5}, [r2@64], r1 ; p1
vld1.u8 {d6}, [r3@64], r1 ; p0
vld1.u8 {d7}, [r2@64], r1 ; q0
vld1.u8 {d16}, [r3@64], r1 ; q1
vld1.u8 {d17}, [r2@64] ; q2
vld1.u8 {d18}, [r3@64] ; q3
sub r2, r2, r1, lsl #1
sub r3, r3, r1, lsl #1
bl filter4_8
vst1.u8 {d4}, [r2@64], r1 ; store op1
vst1.u8 {d5}, [r3@64], r1 ; store op0
vst1.u8 {d6}, [r2@64], r1 ; store oq0
vst1.u8 {d7}, [r3@64], r1 ; store oq1
pop {pc}
ENDP ; |vpx_lpf_horizontal_4_neon|
; Currently vpx only works on iterations 8 at a time. The vp8 loop filter
; works on 16 iterations at a time.
;
; void vpx_lpf_vertical_4_neon(uint8_t *s,
; int p /* pitch */,
; const uint8_t *blimit,
; const uint8_t *limit,
; const uint8_t *thresh)
;
; r0 uint8_t *s,
; r1 int p, /* pitch */
; r2 const uint8_t *blimit,
; r3 const uint8_t *limit,
; sp const uint8_t *thresh,
|vpx_lpf_vertical_4_neon| PROC
push {lr}
vld1.8 {d0[]}, [r2] ; duplicate *blimit
vld1.8 {d1[]}, [r3] ; duplicate *limit
ldr r3, [sp, #4] ; load thresh
sub r2, r0, #4 ; move s pointer down by 4 columns
vld1.8 {d2[]}, [r3] ; duplicate *thresh
vld1.u8 {d3}, [r2], r1 ; load s data
vld1.u8 {d4}, [r2], r1
vld1.u8 {d5}, [r2], r1
vld1.u8 {d6}, [r2], r1
vld1.u8 {d7}, [r2], r1
vld1.u8 {d16}, [r2], r1
vld1.u8 {d17}, [r2], r1
vld1.u8 {d18}, [r2]
;transpose to 8x16 matrix
vtrn.32 d3, d7
vtrn.32 d4, d16
vtrn.32 d5, d17
vtrn.32 d6, d18
vtrn.16 d3, d5
vtrn.16 d4, d6
vtrn.16 d7, d17
vtrn.16 d16, d18
vtrn.8 d3, d4
vtrn.8 d5, d6
vtrn.8 d7, d16
vtrn.8 d17, d18
bl filter4_8
sub r0, r0, #2
;store op1, op0, oq0, oq1
vst4.8 {d4[0], d5[0], d6[0], d7[0]}, [r0], r1
vst4.8 {d4[1], d5[1], d6[1], d7[1]}, [r0], r1
vst4.8 {d4[2], d5[2], d6[2], d7[2]}, [r0], r1
vst4.8 {d4[3], d5[3], d6[3], d7[3]}, [r0], r1
vst4.8 {d4[4], d5[4], d6[4], d7[4]}, [r0], r1
vst4.8 {d4[5], d5[5], d6[5], d7[5]}, [r0], r1
vst4.8 {d4[6], d5[6], d6[6], d7[6]}, [r0], r1
vst4.8 {d4[7], d5[7], d6[7], d7[7]}, [r0]
pop {pc}
ENDP ; |vpx_lpf_vertical_4_neon|
; void filter4_8();
; This is a helper function for the loopfilters. The invidual functions do the
; necessary load, transpose (if necessary) and store. The function does not use
; registers d8-d15.
;
; Inputs:
; r0-r3, r12 PRESERVE
; d0 blimit
; d1 limit
; d2 thresh
; d3 p3
; d4 p2
; d5 p1
; d6 p0
; d7 q0
; d16 q1
; d17 q2
; d18 q3
;
; Outputs:
; d4 op1
; d5 op0
; d6 oq0
; d7 oq1
|filter4_8| PROC
; filter_mask
vabd.u8 d19, d3, d4 ; m1 = abs(p3 - p2)
vabd.u8 d20, d4, d5 ; m2 = abs(p2 - p1)
vabd.u8 d21, d5, d6 ; m3 = abs(p1 - p0)
vabd.u8 d22, d16, d7 ; m4 = abs(q1 - q0)
vabd.u8 d3, d17, d16 ; m5 = abs(q2 - q1)
vabd.u8 d4, d18, d17 ; m6 = abs(q3 - q2)
; only compare the largest value to limit
vmax.u8 d19, d19, d20 ; m1 = max(m1, m2)
vmax.u8 d20, d21, d22 ; m2 = max(m3, m4)
vabd.u8 d17, d6, d7 ; abs(p0 - q0)
vmax.u8 d3, d3, d4 ; m3 = max(m5, m6)
vmov.u8 d18, #0x80
vmax.u8 d23, d19, d20 ; m1 = max(m1, m2)
; hevmask
vcgt.u8 d21, d21, d2 ; (abs(p1 - p0) > thresh)*-1
vcgt.u8 d22, d22, d2 ; (abs(q1 - q0) > thresh)*-1
vmax.u8 d23, d23, d3 ; m1 = max(m1, m3)
vabd.u8 d28, d5, d16 ; a = abs(p1 - q1)
vqadd.u8 d17, d17, d17 ; b = abs(p0 - q0) * 2
veor d7, d7, d18 ; qs0
vcge.u8 d23, d1, d23 ; abs(m1) > limit
; filter() function
; convert to signed
vshr.u8 d28, d28, #1 ; a = a / 2
veor d6, d6, d18 ; ps0
veor d5, d5, d18 ; ps1
vqadd.u8 d17, d17, d28 ; a = b + a
veor d16, d16, d18 ; qs1
vmov.u8 d19, #3
vsub.s8 d28, d7, d6 ; ( qs0 - ps0)
vcge.u8 d17, d0, d17 ; a > blimit
vqsub.s8 d27, d5, d16 ; filter = clamp(ps1-qs1)
vorr d22, d21, d22 ; hevmask
vmull.s8 q12, d28, d19 ; 3 * ( qs0 - ps0)
vand d27, d27, d22 ; filter &= hev
vand d23, d23, d17 ; filter_mask
vaddw.s8 q12, q12, d27 ; filter + 3 * (qs0 - ps0)
vmov.u8 d17, #4
; filter = clamp(filter + 3 * ( qs0 - ps0))
vqmovn.s16 d27, q12
vand d27, d27, d23 ; filter &= mask
vqadd.s8 d28, d27, d19 ; filter2 = clamp(filter+3)
vqadd.s8 d27, d27, d17 ; filter1 = clamp(filter+4)
vshr.s8 d28, d28, #3 ; filter2 >>= 3
vshr.s8 d27, d27, #3 ; filter1 >>= 3
vqadd.s8 d19, d6, d28 ; u = clamp(ps0 + filter2)
vqsub.s8 d26, d7, d27 ; u = clamp(qs0 - filter1)
; outer tap adjustments
vrshr.s8 d27, d27, #1 ; filter = ++filter1 >> 1
veor d6, d26, d18 ; *oq0 = u^0x80
vbic d27, d27, d22 ; filter &= ~hev
vqadd.s8 d21, d5, d27 ; u = clamp(ps1 + filter)
vqsub.s8 d20, d16, d27 ; u = clamp(qs1 - filter)
veor d5, d19, d18 ; *op0 = u^0x80
veor d4, d21, d18 ; *op1 = u^0x80
veor d7, d20, d18 ; *oq1 = u^0x80
bx lr
ENDP ; |filter4_8|
;void vpx_lpf_horizontal_4_dual_neon(uint8_t *s, int p,
; const uint8_t *blimit0,
; const uint8_t *limit0,
; const uint8_t *thresh0,
; const uint8_t *blimit1,
; const uint8_t *limit1,
; const uint8_t *thresh1)
; r0 uint8_t *s,
; r1 int p,
; r2 const uint8_t *blimit0,
; r3 const uint8_t *limit0,
; sp const uint8_t *thresh0,
; sp+4 const uint8_t *blimit1,
; sp+8 const uint8_t *limit1,
; sp+12 const uint8_t *thresh1,
|vpx_lpf_horizontal_4_dual_neon| PROC
push {lr}
ldr r12, [sp, #4] ; load thresh0
vld1.8 {d0}, [r2] ; load blimit0 to first half q
vld1.8 {d2}, [r3] ; load limit0 to first half q
add r1, r1, r1 ; double pitch
ldr r2, [sp, #8] ; load blimit1
vld1.8 {d4}, [r12] ; load thresh0 to first half q
ldr r3, [sp, #12] ; load limit1
ldr r12, [sp, #16] ; load thresh1
vld1.8 {d1}, [r2] ; load blimit1 to 2nd half q
sub r2, r0, r1, lsl #1 ; s[-4 * p]
vld1.8 {d3}, [r3] ; load limit1 to 2nd half q
vld1.8 {d5}, [r12] ; load thresh1 to 2nd half q
vpush {d8-d15} ; save neon registers
add r3, r2, r1, lsr #1 ; s[-3 * p]
vld1.u8 {q3}, [r2@64], r1 ; p3
vld1.u8 {q4}, [r3@64], r1 ; p2
vld1.u8 {q5}, [r2@64], r1 ; p1
vld1.u8 {q6}, [r3@64], r1 ; p0
vld1.u8 {q7}, [r2@64], r1 ; q0
vld1.u8 {q8}, [r3@64], r1 ; q1
vld1.u8 {q9}, [r2@64] ; q2
vld1.u8 {q10}, [r3@64] ; q3
sub r2, r2, r1, lsl #1
sub r3, r3, r1, lsl #1
bl filter4_16
vst1.u8 {q5}, [r2@64], r1 ; store op1
vst1.u8 {q6}, [r3@64], r1 ; store op0
vst1.u8 {q7}, [r2@64], r1 ; store oq0
vst1.u8 {q8}, [r3@64], r1 ; store oq1
vpop {d8-d15} ; restore neon registers
pop {pc}
ENDP ; |vpx_lpf_horizontal_4_dual_neon|
;void vpx_lpf_vertical_4_dual_neon(uint8_t *s, int p,
; const uint8_t *blimit0,
; const uint8_t *limit0,
; const uint8_t *thresh0,
; const uint8_t *blimit1,
; const uint8_t *limit1,
; const uint8_t *thresh1)
; r0 uint8_t *s,
; r1 int p,
; r2 const uint8_t *blimit0,
; r3 const uint8_t *limit0,
; sp const uint8_t *thresh0,
; sp+4 const uint8_t *blimit1,
; sp+8 const uint8_t *limit1,
; sp+12 const uint8_t *thresh1,
|vpx_lpf_vertical_4_dual_neon| PROC
push {lr}
ldr r12, [sp, #4] ; load thresh0
vld1.8 {d0}, [r2] ; load blimit0 to first half q
vld1.8 {d2}, [r3] ; load limit0 to first half q
ldr r2, [sp, #8] ; load blimit1
vld1.8 {d4}, [r12] ; load thresh0 to first half q
ldr r3, [sp, #12] ; load limit1
ldr r12, [sp, #16] ; load thresh1
vld1.8 {d1}, [r2] ; load blimit1 to 2nd half q
sub r2, r0, #4 ; s[-4]
vld1.8 {d3}, [r3] ; load limit1 to 2nd half q
vld1.8 {d5}, [r12] ; load thresh1 to 2nd half q
vpush {d8-d15} ; save neon registers
vld1.u8 {d6}, [r2], r1 ; 00 01 02 03 04 05 06 07
vld1.u8 {d8}, [r2], r1 ; 10 11 12 13 14 15 16 17
vld1.u8 {d10}, [r2], r1 ; 20 21 22 23 24 25 26 27
vld1.u8 {d12}, [r2], r1 ; 30 31 32 33 34 35 36 37
vld1.u8 {d14}, [r2], r1 ; 40 41 42 43 44 45 46 47
vld1.u8 {d16}, [r2], r1 ; 50 51 52 53 54 55 56 57
vld1.u8 {d18}, [r2], r1 ; 60 61 62 63 64 65 66 67
vld1.u8 {d20}, [r2], r1 ; 70 71 72 73 74 75 76 77
vld1.u8 {d7}, [r2], r1 ; 80 81 82 83 84 85 86 87
vld1.u8 {d9}, [r2], r1 ; 90 91 92 93 94 95 96 97
vld1.u8 {d11}, [r2], r1 ; A0 A1 A2 A3 A4 A5 A6 A7
vld1.u8 {d13}, [r2], r1 ; B0 B1 B2 B3 B4 B5 B6 B7
vld1.u8 {d15}, [r2], r1 ; C0 C1 C2 C3 C4 C5 C6 C7
vld1.u8 {d17}, [r2], r1 ; D0 D1 D2 D3 D4 D5 D6 D7
vld1.u8 {d19}, [r2], r1 ; E0 E1 E2 E3 E4 E5 E6 E7
vld1.u8 {d21}, [r2] ; F0 F1 F2 F3 F4 F5 F6 F7
vtrn.8 q3, q4 ; q3 : 00 10 02 12 04 14 06 16 80 90 82 92 84 94 86 96
; q4 : 01 11 03 13 05 15 07 17 81 91 83 93 85 95 87 97
vtrn.8 q5, q6 ; q5 : 20 30 22 32 24 34 26 36 A0 B0 A2 B2 A4 B4 A6 B6
; q6 : 21 31 23 33 25 35 27 37 A1 B1 A3 B3 A5 B5 A7 B7
vtrn.8 q7, q8 ; q7 : 40 50 42 52 44 54 46 56 C0 D0 C2 D2 C4 D4 C6 D6
; q8 : 41 51 43 53 45 55 47 57 C1 D1 C3 D3 C5 D5 C7 D7
vtrn.8 q9, q10 ; q9 : 60 70 62 72 64 74 66 76 E0 F0 E2 F2 E4 F4 E6 F6
; q10: 61 71 63 73 65 75 67 77 E1 F1 E3 F3 E5 F5 E7 F7
vtrn.16 q3, q5 ; q3 : 00 10 20 30 04 14 24 34 80 90 A0 B0 84 94 A4 B4
; q5 : 02 12 22 32 06 16 26 36 82 92 A2 B2 86 96 A6 B6
vtrn.16 q4, q6 ; q4 : 01 11 21 31 05 15 25 35 81 91 A1 B1 85 95 A5 B5
; q6 : 03 13 23 33 07 17 27 37 83 93 A3 B3 87 97 A7 B7
vtrn.16 q7, q9 ; q7 : 40 50 60 70 44 54 64 74 C0 D0 E0 F0 C4 D4 E4 F4
; q9 : 42 52 62 72 46 56 66 76 C2 D2 E2 F2 C6 D6 E6 F6
vtrn.16 q8, q10 ; q8 : 41 51 61 71 45 55 65 75 C1 D1 E1 F1 C5 D5 E5 F5
; q10: 43 53 63 73 47 57 67 77 C3 D3 E3 F3 C7 D7 E7 F7
vtrn.32 q3, q7 ; q3 : 00 10 20 30 40 50 60 70 80 90 A0 B0 C0 D0 E0 F0
; q7 : 04 14 24 34 44 54 64 74 84 94 A4 B4 C4 D4 E4 F4
vtrn.32 q5, q9 ; q5 : 02 12 22 32 42 52 62 72 82 92 A2 B2 C2 D2 E2 F2
; q9 : 06 16 26 36 46 56 66 76 86 96 A6 B6 C6 D6 E6 F6
vtrn.32 q4, q8 ; q4 : 01 11 21 31 41 51 61 71 81 91 A1 B1 C1 D1 E1 F1
; q8 : 05 15 25 35 45 55 65 75 85 95 A5 B5 C5 D5 E5 F5
vtrn.32 q6, q10 ; q6 : 03 13 23 33 43 53 63 73 83 93 A3 B3 C3 D3 E3 F3
; q10: 07 17 27 37 47 57 67 77 87 97 A7 B7 C7 D7 E7 F7
bl filter4_16
sub r0, #2
vmov d0, d11
vmov d1, d13
vmov d2, d15
vmov d3, d17
vmov d11, d12
vmov d12, d14
vmov d13, d16
vst4.8 {d10[0], d11[0], d12[0], d13[0]}, [r0], r1
vst4.8 {d10[1], d11[1], d12[1], d13[1]}, [r0], r1
vst4.8 {d10[2], d11[2], d12[2], d13[2]}, [r0], r1
vst4.8 {d10[3], d11[3], d12[3], d13[3]}, [r0], r1
vst4.8 {d10[4], d11[4], d12[4], d13[4]}, [r0], r1
vst4.8 {d10[5], d11[5], d12[5], d13[5]}, [r0], r1
vst4.8 {d10[6], d11[6], d12[6], d13[6]}, [r0], r1
vst4.8 {d10[7], d11[7], d12[7], d13[7]}, [r0], r1
vst4.8 {d0[0], d1[0], d2[0], d3[0]}, [r0], r1
vst4.8 {d0[1], d1[1], d2[1], d3[1]}, [r0], r1
vst4.8 {d0[2], d1[2], d2[2], d3[2]}, [r0], r1
vst4.8 {d0[3], d1[3], d2[3], d3[3]}, [r0], r1
vst4.8 {d0[4], d1[4], d2[4], d3[4]}, [r0], r1
vst4.8 {d0[5], d1[5], d2[5], d3[5]}, [r0], r1
vst4.8 {d0[6], d1[6], d2[6], d3[6]}, [r0], r1
vst4.8 {d0[7], d1[7], d2[7], d3[7]}, [r0]
vpop {d8-d15} ; restore neon registers
pop {pc}
ENDP ; |vpx_lpf_vertical_4_dual_neon|
; void filter4_16();
; This is a helper function for the loopfilters. The invidual functions do the
; necessary load, transpose (if necessary) and store. This function uses
; registers d8-d15, so the calling function must save those registers.
;
; r0-r3, r12 PRESERVE
; q0 blimit
; q1 limit
; q2 thresh
; q3 p3
; q4 p2
; q5 p1
; q6 p0
; q7 q0
; q8 q1
; q9 q2
; q10 q3
;
; Outputs:
; q5 op1
; q6 op0
; q7 oq0
; q8 oq1
|filter4_16| PROC
; filter_mask
vabd.u8 q11, q3, q4 ; m1 = abs(p3 - p2)
vabd.u8 q12, q4, q5 ; m2 = abs(p2 - p1)
vabd.u8 q13, q5, q6 ; m3 = abs(p1 - p0)
vabd.u8 q14, q8, q7 ; m4 = abs(q1 - q0)
vabd.u8 q3, q9, q8 ; m5 = abs(q2 - q1)
vabd.u8 q4, q10, q9 ; m6 = abs(q3 - q2)
; only compare the largest value to limit
vmax.u8 q11, q11, q12 ; m7 = max(m1, m2)
vmax.u8 q12, q13, q14 ; m8 = max(m3, m4)
vabd.u8 q9, q6, q7 ; abs(p0 - q0)
vmax.u8 q3, q3, q4 ; m9 = max(m5, m6)
vmov.u8 q10, #0x80
vmax.u8 q15, q11, q12 ; m10 = max(m7, m8)
vcgt.u8 q13, q13, q2 ; (abs(p1 - p0) > thresh)*-1
vcgt.u8 q14, q14, q2 ; (abs(q1 - q0) > thresh)*-1
vmax.u8 q15, q15, q3 ; m11 = max(m10, m9)
vabd.u8 q2, q5, q8 ; a = abs(p1 - q1)
vqadd.u8 q9, q9, q9 ; b = abs(p0 - q0) * 2
veor q7, q7, q10 ; qs0
vcge.u8 q15, q1, q15 ; abs(m11) > limit
vshr.u8 q2, q2, #1 ; a = a / 2
veor q6, q6, q10 ; ps0
veor q5, q5, q10 ; ps1
vqadd.u8 q9, q9, q2 ; a = b + a
veor q8, q8, q10 ; qs1
vmov.u16 q4, #3
vsubl.s8 q2, d14, d12 ; ( qs0 - ps0)
vsubl.s8 q11, d15, d13
vcge.u8 q9, q0, q9 ; a > blimit
vqsub.s8 q1, q5, q8 ; filter = clamp(ps1-qs1)
vorr q14, q13, q14 ; hev
vmul.i16 q2, q2, q4 ; 3 * ( qs0 - ps0)
vmul.i16 q11, q11, q4
vand q1, q1, q14 ; filter &= hev
vand q15, q15, q9 ; mask
vmov.u8 q4, #3
vaddw.s8 q2, q2, d2 ; filter + 3 * (qs0 - ps0)
vaddw.s8 q11, q11, d3
vmov.u8 q9, #4
; filter = clamp(filter + 3 * ( qs0 - ps0))
vqmovn.s16 d2, q2
vqmovn.s16 d3, q11
vand q1, q1, q15 ; filter &= mask
vqadd.s8 q2, q1, q4 ; filter2 = clamp(filter+3)
vqadd.s8 q1, q1, q9 ; filter1 = clamp(filter+4)
vshr.s8 q2, q2, #3 ; filter2 >>= 3
vshr.s8 q1, q1, #3 ; filter1 >>= 3
vqadd.s8 q11, q6, q2 ; u = clamp(ps0 + filter2)
vqsub.s8 q0, q7, q1 ; u = clamp(qs0 - filter1)
; outer tap adjustments
vrshr.s8 q1, q1, #1 ; filter = ++filter1 >> 1
veor q7, q0, q10 ; *oq0 = u^0x80
vbic q1, q1, q14 ; filter &= ~hev
vqadd.s8 q13, q5, q1 ; u = clamp(ps1 + filter)
vqsub.s8 q12, q8, q1 ; u = clamp(qs1 - filter)
veor q6, q11, q10 ; *op0 = u^0x80
veor q5, q13, q10 ; *op1 = u^0x80
veor q8, q12, q10 ; *oq1 = u^0x80
bx lr
ENDP ; |filter4_16|
END
|
programs/oeis/020/A020873.asm | karttu/loda | 0 | 244256 | ; A020873: a(n) = number of cycles in Moebius ladder M_n.
; 2,3,7,15,29,53,95,171,313,585,1115,2159,4229,8349,16567,32979,65777,131345,262451,524631,1048957,2097573,4194767,8389115,16777769,33555033,67109515,134218431,268436213,536871725,1073742695,2147484579,4294968289,8589935649,17179870307,34359739559,68719477997,137438954805,274877908351,549755815371,1099511629337,2199023257193,4398046512827,8796093024015,17592186046309,35184372090813,70368744179735,140737488357491,281474976712913,562949953423665,1125899906845075,2251799813687799,4503599627373149,9007199254743749
mov $1,2
mov $2,1
mov $4,$0
lpb $0,1
sub $0,1
add $1,$4
mov $3,$2
mul $2,2
add $4,$3
lpe
|
resources/alumbra/GraphQL.g4 | xsc/alumbra.parser | 16 | 1497 | /*
The MIT License (MIT)
Copyright (c) 2015 <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.
*/
/*
GraphQL grammar derived from:
* GraphQL Draft Specification, April 2016
* https://github.com/graphql-dotnet/graphql-dotnet/ \
blob/620151b8420d897cf83bb5c1fef5d6a2a91daea5/ \
src/GraphQL/GraphQL.g4
*/
grammar GraphQL;
document
: definition+
;
definition
: operationDefinition
| fragmentDefinition
;
operationDefinition
: selectionSet
| operationType operationName? variableDefinitions? directives? selectionSet
;
operationType
: K_QUERY
| K_MUTATION
| K_SUBSCRIPTION
;
operationName
: NAME
;
variableDefinitions
: '(' variableDefinition+ ')'
;
variableDefinition
: variableName ':' variableType defaultValue?
;
variableName
: '$' anyName
;
variableType
: type
;
defaultValue
: '=' value
;
selectionSet
: '{' selection+ '}'
;
selection
: field
| fragmentSpread
| inlineFragment
;
field
: fieldAlias? fieldName arguments? directives? selectionSet?
;
fieldAlias
: anyName ':'
;
fieldName
: anyName
;
arguments
: '(' argument+ ')'
;
argument
: argumentName ':' argumentValue
;
argumentName
: anyName
;
argumentValue
: valueWithVariable
;
fragmentSpread
: '...' fragmentName directives?
;
inlineFragment
: '...' typeCondition? directives? selectionSet
;
fragmentDefinition
: 'fragment' fragmentName typeCondition directives? selectionSet
;
typeCondition
: 'on' typeName
;
value
: intValue
| floatValue
| stringValue
| booleanValue
| enumValue
| arrayValue
| objectValue
| nullValue
;
valueWithVariable
: variableValue
| intValue
| floatValue
| stringValue
| booleanValue
| enumValue
| arrayValueWithVariable
| objectValueWithVariable
| nullValue
;
variableValue
: variableName
;
intValue
: IntValue
;
floatValue
: FloatValue
;
booleanValue
: BooleanValue
;
stringValue
: StringValue
;
enumValue
: enumValueName
;
arrayValue
: '[' value* ']'
;
arrayValueWithVariable
: '[' valueWithVariable* ']'
;
objectValue
: '{' objectField* '}'
;
objectValueWithVariable
: '{' objectFieldWithVariable* '}'
;
objectField
: fieldName ':' objectFieldValue
;
objectFieldValue
: value
;
objectFieldWithVariable
: fieldName ':' objectFieldValueWithVariable
;
objectFieldValueWithVariable
: valueWithVariable
;
nullValue
: NullValue
;
directives
: directive+
;
directive
: directiveName arguments?
;
directiveName
: '@' anyName
;
type
: namedType
| listType
| nonNullType
;
namedType
: typeName
;
typeName
: anyName;
listType
: '[' type ']'
;
nonNullType
: namedType '!'
| listType '!'
;
// --------------- BOOLEAN---------------
BooleanValue
: K_TRUE
| K_FALSE;
// --------------- NULL ---------------
NullValue
: K_NULL
;
// --------------- NAMES ---------------
anyName
: fragmentName
| K_ON
;
fragmentName
: nameTokens
| K_TRUE
| K_FALSE
| K_NULL
;
enumValueName
: nameTokens
| K_ON
;
nameTokens
: NAME
| K_FRAGMENT
| K_QUERY
| K_MUTATION
| K_SUBSCRIPTION
;
K_ON : 'on' ;
K_FRAGMENT : 'fragment' ;
K_QUERY : 'query' ;
K_MUTATION : 'mutation' ;
K_SUBSCRIPTION : 'subscription' ;
K_TRUE : 'true' ;
K_FALSE : 'false' ;
K_NULL : 'null' ;
NAME : [_A-Za-z][_0-9A-Za-z]* ;
// --------------- INTEGER ---------------
IntValue
: Sign? IntegerPart
;
FloatValue
: Sign? IntegerPart ('.' Digit+)? ExponentPart?
;
Sign
: '-'
| '+';
IntegerPart
: '0'
| NonZeroDigit
| NonZeroDigit Digit+
;
NonZeroDigit
: '1'.. '9'
;
ExponentPart
: ('e'|'E') Sign? Digit+
;
Digit
: '0'..'9'
;
// --------------- STRING ---------------
StringValue
: '"' (~(["\\\n\r\u2028\u2029])|EscapedChar)* '"'
;
fragment EscapedChar
: '\\' (["\\/bfnrt] | Unicode)
;
fragment Unicode
: 'u' Hex Hex Hex Hex
;
fragment Hex
: [0-9a-fA-F]
;
// --------------- IGNORED ---------------
Ignored
: (Whitspace|Comma|LineTerminator|Comment) -> channel(HIDDEN)
;
fragment Comment
: '#' ~[\n\r\u2028\u2029]*
;
fragment LineTerminator
: [\n\r\u2028\u2029]
;
fragment Whitspace
: [\t\u000b\f\u0020\u00a0]
;
fragment Comma
: ','
;
|
SaveSafariTabsToEverNote.scpt | tIsGoud/save-tabs-to-evernote-service | 1 | 3690 | <filename>SaveSafariTabsToEverNote.scpt
-- SaveSafariTabsToEvernote saves all names and URI's from Safari to Evernote.
-- This script saves the information in Evernote format including checkboxes
-- in front of the name and a seperator between the different windows.
-- The note is saved in the "Bookmarks" notebook.
-- The default settings can be customized by changing the global variables
-- declared in the beginning of the script.
-- This script is inspired by and based on a script made by <NAME>:
-- http://brettterpstra.com/2010/03/06/saving-safari-browsing-sessions-to-evernote/
-- [<NAME>|20140203]
property template : "<div style=\"margin-bottom:0.5em\"><en-todo/>%name<br/><small style=\"margin-left:2.5em;\"><a href=\"%url\">%url</a></small><br/></div>"
set prettyDate to do shell script "date '+%A, %B %d, %Y at %H:%M'"
set machineName to computer name of (system info)
set noteTitle to "Bookmarks on " & machineName & " - " & prettyDate
set noteBookName to "Bookmarks"
set everNoteFormat to true
set urlList to ""
on searchAndReplace(toFind, toReplace, theString)
-- search and replace function for template
set orgTextItemDelimiters to text item delimiters
set text item delimiters to toFind
set textItems to text items of theString
set text item delimiters to toReplace
set changedString to textItems as text
set text item delimiters to orgTextItemDelimiters
return changedString
end searchAndReplace
on splitUri(theUri)
set orgTextItemDelimiters to text item delimiters
set text item delimiters to "://"
set uriParts to text items of theUri
set text item delimiters to orgTextItemDelimiters
return uriParts
end splitUri
on validateUrlProtocol(protocol)
-- validateUrlProtocol checks if the protocol is valid according to the
-- Evernote ENML specifications.
-- Valid protocols are http://, https:// and file://
set protocols to {"http", "https", "file"}
if protocol is in protocols then
set validProtocol to true
else
set validProtocol to false
end if
return validProtocol
end validateUrlProtocol
on encodeChar(theChar)
set the ASCIInumber to (the ASCII number theChar)
set the hexList to {"0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "D", "E", "F"}
set firstDigit to item ((ASCIInumber div 16) + 1) of the hexList
set secondDigit to item ((ASCIInumber mod 16) + 1) of the hexList
return ("%" & firstDigit & secondDigit) as text
end encodeChar
on urnEncode(theUrn)
-- See http://en.wikipedia.org/wiki/Percent-encoding for more information
-- on reserved and unreserved characters. The '/' character was added to
-- the unreserved characters to keep te URI readable
set the unreservedCharacters to "abcdefghijklmnopqrstuvwxyz0123456789-_.~/"
set encUrn to ""
repeat with urnChar in theUrn
if urnChar is in the unreservedCharacters then
set encUrn to encUrn & urnChar
else
set encUrn to encUrn & encodeChar(urnChar)
end if
end repeat
return encUrn
end urnEncode
on listPosition(listItem, theList)
repeat with i from 1 to the count of theList
if ((item i of theList) as text is listItem as text) then return i
end repeat
return 0
end listPosition
on replacePredefinedXmlEntitites(theText)
-- replace the predefined XML entities (&, ", ', <, >) to pass the ENML validation.
set xmlText to ""
set characterList to {"&", "\"", "'", "<", ">"}
set replacementList to {"&", """, "'", "<", ">"}
repeat with theChar in theText
if (theChar is in characterList) then
set itemNumber to my listPosition(theChar, characterList)
set xmlText to xmlText & (item itemNumber of replacementList) as text
else
set xmlText to xmlText & theChar
end if
end repeat
return xmlText
end replacePredefinedXmlEntitites
tell application "Safari"
set windowsList to every window
repeat with eachWindow in windowsList
try
-- WTF code
if (id of eachWindow) is -1 then
log "Oops and continue"
exit repeat
end if
repeat with eachTab in (tabs of eachWindow)
try
set tabLink to template
set tabName to name of eachTab
if everNoteFormat then
set tabLink to my searchAndReplace("%name", my replacePredefinedXmlEntitites(tabName), tabLink)
-- separate URL and URN from URI
set uriParts to my splitUri(URL of eachTab)
set protocol to get first item of uriParts
-- validate protocol
if my validateUrlProtocol(protocol) then
set urn to get second item of uriParts
set encUrn to my urnEncode(urn)
set uri to protocol & "://" & encUrn
set tabLink to my searchAndReplace("%url", uri, tabLink)
else
display dialog "Oops, protocol \"" & protocol & "\" is not supported according to the Evernote ENML specs" buttons {"Continue with html format"}
set everNoteFormat to false
set tabLink to my searchAndReplace("%url", URL of eachTab, tabLink)
end if
else
set tabLink to my searchAndReplace("%name", tabName, tabLink)
set tabLink to my searchAndReplace("%url", URL of eachTab, tabLink)
end if
set urlList to urlList & tabLink & return
on error errMsg number errNum
display dialog "Something went wrong wile going through the Tab-list: " & errMsg buttons {"Continue"}
end try
end repeat
set urlList to urlList & "<br/><hr/><br/>" & return
on error errMsg number errNum
display dialog "Something went wrong wile going through the Window-list: " & errMsg buttons {"Continue"}
end try
end repeat
end tell
tell application "Evernote"
if everNoteFormat then
set theNote to create note with enml urlList title noteTitle notebook noteBookName
else
set theNote to create note with html urlList title noteTitle notebook noteBookName
end if
end tell
|
alloy4fun_models/trainstlt/models/12/uFKnXtHst7Hud6G2G.als | Kaixi26/org.alloytools.alloy | 0 | 2640 | open main
pred iduFKnXtHst7Hud6G2G_prop13 {
( all t:Train | no t.pos implies always (no t.pos))
}
pred __repair { iduFKnXtHst7Hud6G2G_prop13 }
check __repair { iduFKnXtHst7Hud6G2G_prop13 <=> prop13o } |
libs/pgwire/src/main/antlr/PgArray.g4 | autophagy/crate | 3,066 | 3108 | <filename>libs/pgwire/src/main/antlr/PgArray.g4
/*
* Licensed to Crate.io GmbH ("Crate") under one or more contributor
* license agreements. See the NOTICE file distributed with this work for
* additional information regarding copyright ownership. Crate licenses
* this file to you under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. You may
* obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
* However, if you have executed another commercial license agreement
* with Crate these terms will supersede the license and you may use the
* software solely pursuant to the terms of the relevant commercial agreement.
*/
grammar PgArray;
/**
The grammar is used to parse PG array text
representations. E.g.:
numeric PG arrays:
{10, NULL, NULL, 20, 30}
{"10", NULL, NULL, "20", "30"}
multi-dimentsional PG arrays:
{{"10", "20"}, {"30", NULL, "40"}}
json PG arrays:
{"{\"x\": 10}", "{\"y\": 20}"}
{\"{\\\"x\\\": 10}\", \"{\\\"y\\\": 20}\"}
*/
array
: '{' item (',' item)* '}'
| '{' '}'
;
item
: string
| array
;
string
: QUOTED_STRING #quotedString
| NULL #null
| UNQUOTED_STRING #unquotedString
;
NULL
: [nN] [uU] [lL] [lL]
;
QUOTED_STRING
: '"' (ESC | ~["\\])* '"'
;
UNQUOTED_STRING
: CHAR+ (' ')* CHAR+
| CHAR+
;
fragment CHAR
: ~[,"\\{} \t\n\r]
;
fragment ESC
: '\\' (["\\/bfnrt] | UNICODE)
;
fragment UNICODE
: 'u' HEX HEX HEX HEX
;
fragment HEX
: [0-9a-fA-F]
;
WS: [ \t\n\r]+ -> skip;
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.