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 |
|---|---|---|---|---|
libsrc/stdlib/atoi.asm | dex4er/deb-z88dk | 1 | 96461 | ;/*
; * int atoi (char *)
; *
; * Convert ascii string to integer...
; *
; * equivalent to stroul(ptr,NULL,10)
; *
; * But this should be shorter...
; *
; * Almost k&r but not quite..
; *
; * djm 5/1/2000
; *
; * -----
; * $Id: atoi.asm,v 1.6 2007/01/16 22:00:30 aralbrec Exp $
; *
; */
XLIB atoi
LIB l_neg
; FASTCALL
; enter : hl = char*
; exit : hl = int result
; de = & next char to interpret in char*
.atoi
ld a,(hl) ; eat whitespace
inc hl
cp 32 ; inlined isspace
jr z, atoi
cp 7
jr z, atoi
cp 10
jr z, atoi
cp 13
jr z, atoi
; ate up one too many chars, see if it's a sign
cp '+'
jr z, signdone
dec hl
cp '-'
jr nz, signdone
inc hl ; this is a negative number
call signdone ; do atoi but come back here to negate result
jp l_neg ; hl = -hl
.signdone
ld de,0
ex de,hl
dec de
.loop
inc de
ld a,(de)
sub '0' ; inlined isdigit
ret c
cp 10
ret nc
add hl,hl ; hl = hl*10
ld c,l
ld b,h
add hl,hl
add hl,hl
add hl,bc
add a,l
ld l,a
jp nc, loop
inc h
jp loop
; #include <ctype.h>
; #include <stdlib.h>
;
; int atoi(char *s)
; {
; int sign;
; int n;
; unsigned char *ptr;
;
; ptr=s;
; while (isspace(*ptr) ) ++ptr;
;
; sign = (*ptr == '-' ) ? -1 : 1;
; if (*ptr=='+' || *ptr=='-' ) ++ptr;
;
; for (n=0; isdigit(*ptr); ++ptr)
; n = 10*n + (*ptr-'0');
; return sign*n;
;}
; |
programs/oeis/280/A280181.asm | neoneye/loda | 22 | 100542 | ; A280181: Indices of centered 9-gonal numbers (A060544) that are also squares (A000290).
; 1,17,561,19041,646817,21972721,746425681,25356500417,861374588481,29261379507921,994025528680817,33767606595639841,1147104598723073761,38967788749988868017,1323757712900898438801,44968794449880558051201,1527615253583038075302017,51893949827373414002217361,1762866678877113038000088241,59885573131994469878000782817,2034346619808934862814026527521,69107899500371790865798901152881,2347634236392831954574348612670417,79750456137855914664662053929641281
seq $0,2315 ; NSW numbers: a(n) = 6*a(n-1) - a(n-2); also a(n)^2 - 2*b(n)^2 = -1 with b(n)=A001653(n+1).
pow $0,2
div $0,3
add $0,1
|
programs/oeis/291/A291317.asm | neoneye/loda | 22 | 85850 | <filename>programs/oeis/291/A291317.asm
; A291317: A variation of the Josephus problem: a(n) is the surviving integer under the following elimination process. Arrange 1,2,3,...,n in a circle, increasing clockwise. Starting with i=1, at k-th stage, move k places clockwise and delete the current number.
; 1,1,1,3,4,3,7,7,6,10,7,12,3,10,11,7,11,1,12,6,21,1,7,12,25,3,25,28,16,26,25,6,32,19,15,21,28,3,12,21,24,13,21,36,17,45,41,45,8,40,11,6,25,41,23,4,43,52,51,57,28,21,11,47,26,29,57,51,48,56,12,13,31,23,74,7,66,55,39,60,50,76,34,56,73,62,74,11,71,88,10,31,31,58,60,61,88,21,30,66
add $0,2
mov $2,1
mov $3,1
lpb $0
sub $0,$2
add $1,$0
add $3,1
mod $1,$3
lpe
mov $0,$1
|
oeis/322/A322129.asm | neoneye/loda-programs | 11 | 245594 | ; A322129: Digital roots of A057084.
; Submitted by <NAME>(m4)
; 1,8,2,6,5,1,4,6,7,8,8,9,8,1,7,3,4,8,5,3,2,1,1,9,1,8,2,6,5,1,4,6,7,8,8,9,8,1,7,3,4,8,5,3,2,1,1,9,1,8,2,6,5,1,4,6,7,8,8,9,8,1,7,3,4,8,5,3,2,1,1
mul $0,13
seq $0,71 ; a(n) = Fibonacci(n) - 1.
mod $0,9
add $0,1
|
code/6502/tests/inp/kbtest.asm | visrealm/hbc-56 | 65 | 19109 | <gh_stars>10-100
; Troy's HBC-56 - Input test
;
; Copyright (c) 2021 <NAME>
;
; This code is licensed under the MIT license
;
; https://github.com/visrealm/hbc-56
;
!src "hbc56kernel.inc"
Y_OFFSET = 4
PRESSED_KEY_COUNT = HBC56_USER_ZP_START
pressedTable = $1000
extPressedTable = $1100
hbc56Meta:
+setHbcMetaTitle "KEYBOARD TEST"
rts
hbc56Main:
jsr tmsModeGraphicsI
; set up sprite mode (16x16, unmagnified)
lda #TMS_R1_SPRITE_MAG2
jsr tmsReg1ClearFields
lda #TMS_R1_SPRITE_16
jsr tmsReg1SetFields
; set up color table
+tmsSetAddrColorTable
+tmsSendData colorTab, 32
; clear the name table
+tmsSetAddrNameTable
lda #$f9
jsr _tmsSendPage
jsr _tmsSendPage
jsr _tmsSendPage
; load the keyboard glyph data
+tmsSetAddrPattTable
+tmsSendData keyboardPatt, 256*8
; output the keyboard tiles
+tmsSetPosWrite 0, Y_OFFSET
+tmsSendData keyboardInd, 512
; set up the overlay sprites
+tmsSetAddrSpritePattTable
+tmsSendData sprites, 4*8
+tmsCreateSprite 0, 0, 0, $d0, TMS_DK_GREEN
+tmsCreateSprite 1, 0, 0, $d0, TMS_DK_GREEN
+tmsCreateSprite 2, 0, 0, $d0, TMS_DK_GREEN
+tmsCreateSprite 3, 0, 0, $d0, TMS_DK_GREEN
+tmsCreateSprite 4, 0, 0, $d0, TMS_DK_GREEN
+tmsCreateSprite 5, 0, 0, $d0, TMS_DK_GREEN
+tmsCreateSprite 6, 0, 0, $d0, TMS_DK_GREEN
+tmsCreateSprite 7, 0, 0, $d0, TMS_DK_GREEN
; clear the key pressed tables
+memset pressedTable, 0, 256
+memset extPressedTable, 0, 256
+tmsEnableOutput
+hbc56SetVsyncCallback outputLoop
cli
+tmsEnableInterrupts
; -----------------------------------------------------------------------------
; Input loop runs continuously and sets the key tables
; -----------------------------------------------------------------------------
inputLoop:
jsr kbReadByte ; load scancode into X
cpx #0
beq inputLoop
cpx #KB_RELEASE ; is it a release code?
beq keyReleased
cpx #KB_EXT_KEY ; is it an extended key code?
beq extendedKey
cpx #$e1 ; is it the pause/break key?
beq pauseBreakLoop
jmp keyPressed ; just a regular key (pressed)
; -----------------------------------------------------------------------------
; Pause/break handler (presss/release only sent on key release)
; -----------------------------------------------------------------------------
pauseBreakLoop:
jsr kbReadByte
cpx #0
beq pauseBreakLoop ; get next scancode (either $14 or $f0)
cpx #$14 ; if it's $14, then it's a press
beq pausePressed
jsr kbWaitForScancode ; eat the next two scancodes
jsr kbWaitForScancode
lda #0 ; mark as released
sta pressedTable + 2
jmp keyPressed
pausePressed:
jsr kbWaitForScancode ; eat the next two scancodes
jsr kbWaitForScancode
lda #1 ; mark as pressed
sta pressedTable + 2
jmp keyPressed
; -----------------------------------------------------------------------------
; A standard key was pressed (scancode in X)
; -----------------------------------------------------------------------------
keyPressed:
lda #1 ; mark as pressed
sta pressedTable,x
jmp inputLoop
; -----------------------------------------------------------------------------
; A standard key was released ($f0 in X)
; -----------------------------------------------------------------------------
keyReleased:
jsr kbReadByte ; get the released key scancode
cpx #0
beq keyReleased
lda #0 ; mark as released
sta pressedTable,x
jmp inputLoop
; -----------------------------------------------------------------------------
; An extended key was pressed ($e0 in X)
; -----------------------------------------------------------------------------
extendedKey:
jsr kbReadByte
cpx #0
beq extendedKey ; get the scancode
cpx #KB_RELEASE ; is it the release code?
beq extKeyReleased
jmp extKeyPressed ; extended key pressed
; -----------------------------------------------------------------------------
; An extended key was pressed (scancode in X)
; -----------------------------------------------------------------------------
extKeyPressed:
lda #1 ; mark as pressed
sta extPressedTable,x
jmp inputLoop
; -----------------------------------------------------------------------------
; An extended key was released ($f0 in X)
; -----------------------------------------------------------------------------
extKeyReleased:
jsr kbReadByte
cpx #0
beq extKeyReleased ; get the scancode
lda #0
sta extPressedTable,x ; mark as released
jmp inputLoop
; -----------------------------------------------------------------------------
; Output a sprite overlay at the key position
; -----------------------------------------------------------------------------
doShowKey:
lda PRESSED_KEY_COUNT ; set up sprite attribute address for writing
jsr tmsSetSpriteTmpAddress
jsr tmsSetAddressWrite
tya ; set Y location
clc
adc #(Y_OFFSET*8-1) ; add keyboard vertical offset
+tmsPut
txa ; set X location
+tmsPut
inc PRESSED_KEY_COUNT
rts
; -----------------------------------------------------------------------------
; Show a standard key
; -----------------------------------------------------------------------------
showKey:
txa
pha
ldy keyPosY,x ; find key position
lda keyPosX,x
beq @noShow ; 0? not a supported key
tax ; add an overlay for the key
jsr doShowKey
@noShow
pla
tax
jmp doneShowKey
; -----------------------------------------------------------------------------
; Show an extended key
; -----------------------------------------------------------------------------
showExtKey:
txa
pha
ldy extKeyPosY,x ; find key position
lda extKeyPosX,x
beq @noShowExt ; 0? not a supported key
tax
jsr doShowKey ; add an overlay for the key
@noShowExt
pla
tax
jmp doneShowExtKey
; -----------------------------------------------------------------------------
; Output loop (runs once for each VSYNC)
; -----------------------------------------------------------------------------
outputLoop:
stx HBC56_TMP_X ; keep X/Y
sty HBC56_TMP_Y
; +tmsSetColorFgBg TMS_WHITE, TMS_LT_GREEN ; keep track of vsync processing time
lda #0 ; clear pressed count
sta PRESSED_KEY_COUNT
ldx #131 ; max normal key index
- ; iterate over the scancode table
lda pressedTable,x ; if a key is pressed, show the overlay
bne showKey
doneShowKey:
dex
bne -
ldx #125 ; max ext key index
- ; iterate over the extended scancode table
lda extPressedTable,x ; if a key is pressed, show the overlay
bne showExtKey
doneShowExtKey:
dex
bne -
lda PRESSED_KEY_COUNT ; set the next sprite Y location to $d0 (last sprite)
jsr tmsSetSpriteTmpAddress
jsr tmsSetAddressWrite
lda #$d0
+tmsPut
ldx HBC56_TMP_X ; restore X/Y
ldy HBC56_TMP_Y
lda #1 ; set sprite visibility based on frame count
bit HBC56_TICKS
beq evenFrame
jmp oddFrame
rts
; -----------------------------------------------------------------------------
; Even frames hide overlay sprites
; -----------------------------------------------------------------------------
evenFrame:
!for i,0,8 {
+tmsSpriteColor i, TMS_TRANSPARENT
}
+tmsSetColorFgBg TMS_WHITE, TMS_DK_BLUE ; end vsync processing time
rts
; -----------------------------------------------------------------------------
; Odd frames show overlay sprites
; -----------------------------------------------------------------------------
oddFrame:
!for i,0,8 {
+tmsSpriteColor i, TMS_DK_GREEN
}
+tmsSetColorFgBg TMS_WHITE, TMS_DK_BLUE ; end vsync processing time
rts
; -----------------------------------------------------------------------------
; Key position tables (scancode to X/Y pixel)
; -----------------------------------------------------------------------------
keyPosX:
!byte 0,135,219,79,51,23,37,177,0,149,121,93,65,13, 9,0,0, 54,19,0, 9,32,24,0,0,0,45,52,37,47,39,0,0,75,60,67,62,69,54,0,0, 97,90,82,92,77,84,0,0,120,105,112,97,107,99,0,0,0,135,127,122,114,129,0,0,150,142,137,152,159,144,0,0,165,180,157,172,167,174,0,0,0,187,0,182,189,0,0,16,199,210,197,0,215,0,0,0,0,0,0,0,0,211,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 9,0,163,0,0,0,0,0,205,0,0,0,0,107
keyPosY:
!byte 0, 25, 25,25,25,25,25, 25,0, 25, 25,25,25,56,40,0,0,104,88,0,104,56,40,0,0,0,88,72,72,56,40,0,0,88,88,72,56,40,40,0,0,104,88,72,56,56,40,0,0, 88, 88, 72,72, 56,40,0,0,0, 88, 72, 56, 40, 40,0,0, 88, 72, 56, 56, 40, 40,0,0, 88, 88, 72, 72, 56, 40,0,0,0, 72,0, 56, 40,0,0,72, 88, 72, 56,0, 56,0,0,0,0,0,0,0,0, 40,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,25,0, 25,0,0,0,0,0, 25,0,0,0,0, 25
extKeyPosX:
!byte 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,143,191,0,173,0,0,0,0,0,0,0,0,0,0, 24,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,158,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,233,0,203,233,0,0,0,188,233,218,0,233,218,0,0,0,0,233,0,0,233
extKeyPosY:
!byte 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,104, 25,0,104,0,0,0,0,0,0,0,0,0,0,104,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,104,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 88,0,104, 40,0,0,0,104, 25,104,0,104, 88,0,0,0,0, 72,0,0, 56
; -----------------------------------------------------------------------------
; Graphics data
; -----------------------------------------------------------------------------
colorTab:
!byte $1f,$1f,$1f,$1f,$1f,$1f,$1f,$1f,$1f,$1f,$1f,$1f,$1f,$1f,$1f,$1f
!byte $1f,$1f,$1f,$1f,$1f,$1f,$1f,$1f,$1f,$1f,$1f,$1f,$1f,$1f,$1f,$4f
keyboardInd:
!bin "keyboard.ind"
keyboardIndEnd:
keyboardPatt:
!bin "keyboard.patt"
keyboardPattEnd:
sprites:
!byte $07,$1F,$3F,$7F,$7F,$FF,$FF,$FF
!byte $FF,$FF,$7F,$7F,$3F,$1F,$07,$00
!byte $80,$E0,$F0,$F8,$F8,$FC,$FC,$FC
!byte $FC,$FC,$F8,$F8,$F0,$E0,$80,$00
|
Setoids/Cardinality/Finite/Definition.agda | Smaug123/agdaproofs | 4 | 17533 | {-# OPTIONS --safe --warning=error --without-K #-}
open import Agda.Primitive using (Level; lzero; lsuc; _⊔_)
open import Functions.Definition
open import Numbers.Naturals.Definition
open import Sets.FinSet.Definition
open import Setoids.Setoids
module Setoids.Cardinality.Finite.Definition where
record FiniteSetoid {a b : _} {A : Set a} (S : Setoid {a} {b} A) : Set (a ⊔ b) where
field
size : ℕ
mapping : FinSet size → A
bij : SetoidBijection (reflSetoid (FinSet size)) S mapping
|
Transynther/x86/_processed/AVXALIGN/_st_/i9-9900K_12_0xca_notsx.log_36_1865.asm | ljhsiun2/medusa | 9 | 175909 | .global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r13
push %r14
push %r15
push %r8
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0x7d00, %rsi
lea addresses_D_ht+0x10c72, %rdi
clflush (%rsi)
xor %r10, %r10
mov $115, %rcx
rep movsb
nop
nop
nop
nop
nop
add $56514, %r13
lea addresses_D_ht+0x17300, %rsi
lea addresses_normal_ht+0xcb00, %rdi
nop
nop
sub $47858, %r8
mov $60, %rcx
rep movsb
nop
nop
nop
xor $40399, %rcx
lea addresses_UC_ht+0xa7e0, %r13
nop
sub %r14, %r14
mov $0x6162636465666768, %r8
movq %r8, (%r13)
xor %r13, %r13
lea addresses_WT_ht+0x5900, %rsi
and %r14, %r14
mov $0x6162636465666768, %rdi
movq %rdi, %xmm4
and $0xffffffffffffffc0, %rsi
movaps %xmm4, (%rsi)
sub $46463, %rdi
lea addresses_WT_ht+0x10208, %rsi
lea addresses_WC_ht+0x1cd80, %rdi
nop
nop
nop
dec %r15
mov $60, %rcx
rep movsl
nop
nop
nop
nop
nop
sub $589, %r10
lea addresses_UC_ht+0xce60, %rcx
add %rsi, %rsi
movl $0x61626364, (%rcx)
nop
nop
sub %rdi, %rdi
pop %rsi
pop %rdi
pop %rcx
pop %r8
pop %r15
pop %r14
pop %r13
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r12
push %r13
push %r8
push %r9
push %rbp
push %rdi
// Store
mov $0x2ae3ff0000000ee0, %rdi
nop
nop
nop
add $39679, %r9
movl $0x51525354, (%rdi)
add %r9, %r9
// Store
lea addresses_RW+0x15330, %r9
nop
nop
add %rdi, %rdi
movl $0x51525354, (%r9)
nop
cmp %rdi, %rdi
// Store
lea addresses_WT+0x1f100, %r12
nop
nop
nop
nop
and %r11, %r11
movb $0x51, (%r12)
nop
add %rbp, %rbp
// Load
lea addresses_RW+0x19900, %r12
nop
sub %rbp, %rbp
vmovups (%r12), %ymm6
vextracti128 $1, %ymm6, %xmm6
vpextrq $1, %xmm6, %r9
dec %r13
// Store
lea addresses_D+0x2d00, %rdi
cmp %r8, %r8
movl $0x51525354, (%rdi)
nop
nop
cmp $59685, %rdi
// Faulty Load
lea addresses_RW+0x13900, %r12
nop
nop
cmp $61285, %r11
movb (%r12), %r9b
lea oracles, %r8
and $0xff, %r9
shlq $12, %r9
mov (%r8,%r9,1), %r9
pop %rdi
pop %rbp
pop %r9
pop %r8
pop %r13
pop %r12
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_RW', 'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 0}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_NC', 'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 5}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_RW', 'NT': True, 'AVXalign': False, 'size': 4, 'congruent': 1}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_WT', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 9}}
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_RW', 'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 11}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_D', 'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 10}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_RW', 'NT': False, 'AVXalign': True, 'size': 1, 'congruent': 0}}
<gen_prepare_buffer>
{'OP': 'REPM', 'src': {'same': False, 'congruent': 10, 'type': 'addresses_WC_ht'}, 'dst': {'same': False, 'congruent': 0, 'type': 'addresses_D_ht'}}
{'OP': 'REPM', 'src': {'same': False, 'congruent': 9, 'type': 'addresses_D_ht'}, 'dst': {'same': False, 'congruent': 8, 'type': 'addresses_normal_ht'}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_UC_ht', 'NT': True, 'AVXalign': False, 'size': 8, 'congruent': 5}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_WT_ht', 'NT': False, 'AVXalign': True, 'size': 16, 'congruent': 11}}
{'OP': 'REPM', 'src': {'same': False, 'congruent': 1, 'type': 'addresses_WT_ht'}, 'dst': {'same': False, 'congruent': 3, 'type': 'addresses_WC_ht'}}
{'OP': 'STOR', 'dst': {'same': True, 'type': 'addresses_UC_ht', 'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 5}}
{'32': 36}
32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32
*/
|
Categories/Functor/Hom.agda | copumpkin/categories | 98 | 12948 | {-# OPTIONS --universe-polymorphism #-}
module Categories.Functor.Hom where
open import Data.Product using (_×_; uncurry; proj₁; proj₂; _,_)
open import Categories.Support.Equivalence
open import Categories.Support.SetoidFunctions renaming (id to id′)
open import Categories.Category
open import Categories.Bifunctor using (Bifunctor; Functor; module Functor)
open import Categories.Agda
module Hom {o ℓ e} (C : Category o ℓ e) where
open Category C
Hom[-,-] : Bifunctor (Category.op C) C (ISetoids ℓ e)
Hom[-,-] = record
{ F₀ = F₀′
; F₁ = λ f → record
{ _⟨$⟩_ = λ x → proj₂ f ∘ x ∘ proj₁ f
; cong = cong′ f
}
; identity = identity′
; homomorphism = homomorphism′
; F-resp-≡ = F-resp-≡′
}
where
F₀′ : Obj × Obj → Setoid ℓ e
F₀′ x = record
{ Carrier = uncurry _⇒_ x
; _≈_ = _≡_
; isEquivalence = equiv
}
_⇆_ : ∀ A B → Set ℓ
A ⇆ B = (proj₁ B ⇒ proj₁ A) × (proj₂ A ⇒ proj₂ B)
.cong′ : ∀ {A B} → (f : A ⇆ B) → {x y : uncurry _⇒_ A} → x ≡ y
→ proj₂ f ∘ x ∘ proj₁ f ≡ proj₂ f ∘ y ∘ proj₁ f
cong′ f x≡y = ∘-resp-≡ʳ (∘-resp-≡ˡ x≡y)
.identity′ : {A : Obj × Obj} {x y : uncurry _⇒_ A} → x ≡ y → id ∘ x ∘ id ≡ y
identity′ {A} {x} {y} x≡y =
begin
id ∘ x ∘ id
↓⟨ identityˡ ⟩
x ∘ id
↓⟨ identityʳ ⟩
x
↓⟨ x≡y ⟩
y
∎
where
open HomReasoning
.homomorphism′ : {X Y Z : Obj × Obj}
→ {f : X ⇆ Y}
→ {g : Y ⇆ Z}
→ {x y : uncurry _⇒_ X} → (x ≡ y)
→ (proj₂ g ∘ proj₂ f) ∘ (x ∘ (proj₁ f ∘ proj₁ g)) ≡ proj₂ g ∘ ((proj₂ f ∘ (y ∘ proj₁ f)) ∘ proj₁ g)
homomorphism′ {f = f} {g} {x} {y} x≡y =
begin
(proj₂ g ∘ proj₂ f) ∘ (x ∘ (proj₁ f ∘ proj₁ g))
↓⟨ ∘-resp-≡ʳ (∘-resp-≡ˡ x≡y) ⟩
(proj₂ g ∘ proj₂ f) ∘ (y ∘ (proj₁ f ∘ proj₁ g))
↓⟨ assoc ⟩
proj₂ g ∘ (proj₂ f ∘ (y ∘ (proj₁ f ∘ proj₁ g)))
↑⟨ ∘-resp-≡ʳ assoc ⟩
proj₂ g ∘ ((proj₂ f ∘ y) ∘ (proj₁ f ∘ proj₁ g))
↑⟨ ∘-resp-≡ʳ assoc ⟩
proj₂ g ∘ (((proj₂ f ∘ y) ∘ proj₁ f) ∘ proj₁ g)
↓⟨ ∘-resp-≡ʳ (∘-resp-≡ˡ assoc) ⟩
proj₂ g ∘ ((proj₂ f ∘ (y ∘ proj₁ f)) ∘ proj₁ g)
∎
where
open HomReasoning
.F-resp-≡′ : {A B : Obj × Obj} {f g : A ⇆ B}
→ proj₁ f ≡ proj₁ g × proj₂ f ≡ proj₂ g
→ {x y : uncurry _⇒_ A} → (x ≡ y)
→ proj₂ f ∘ x ∘ proj₁ f ≡ proj₂ g ∘ y ∘ proj₁ g
F-resp-≡′ (f₁≡g₁ , f₂≡g₂) x≡y = ∘-resp-≡ f₂≡g₂ (∘-resp-≡ x≡y f₁≡g₁)
Hom[_,-] : Obj → Functor C (ISetoids ℓ e)
Hom[_,-] B = record
{ F₀ = λ x → Hom[-,-].F₀ (B , x)
; F₁ = λ f → Hom[-,-].F₁ (id , f)
; identity = Hom[-,-].identity
; homomorphism = homomorphism′
; F-resp-≡ = λ F≡G x≡y → ∘-resp-≡ F≡G (∘-resp-≡ˡ x≡y)
}
where
module Hom[-,-] = Functor Hom[-,-]
-- I can't see an easy way to reuse the proof for the bifunctor :(
-- luckily, it's an easy proof!
.homomorphism′ : {X Y Z : Obj} {f : X ⇒ Y} {g : Y ⇒ Z} {x y : B ⇒ X}
→ (x ≡ y) → (g ∘ f) ∘ (x ∘ id) ≡ g ∘ ((f ∘ (y ∘ id)) ∘ id)
homomorphism′ {f = f} {g} {x} {y} x≡y =
begin
(g ∘ f) ∘ (x ∘ id)
↓⟨ ∘-resp-≡ʳ (∘-resp-≡ˡ x≡y) ⟩
(g ∘ f) ∘ (y ∘ id)
↓⟨ assoc ⟩
g ∘ (f ∘ (y ∘ id))
↑⟨ ∘-resp-≡ʳ identityʳ ⟩
g ∘ ((f ∘ (y ∘ id)) ∘ id)
∎
where
open HomReasoning
Hom[-,_] : Obj → Functor (Category.op C) (ISetoids ℓ e)
Hom[-,_] B = record
{ F₀ = λ x → Hom[-,-].F₀ (x , B)
; F₁ = λ f → Hom[-,-].F₁ (f , id)
; identity = Hom[-,-].identity
; homomorphism = homomorphism′
; F-resp-≡ = λ F≡G x≡y → ∘-resp-≡ʳ (∘-resp-≡ x≡y F≡G)
}
where
module Hom[-,-] = Functor Hom[-,-]
.homomorphism′ : {X Y Z : Obj} {f : Y ⇒ X} {g : Z ⇒ Y} {x y : X ⇒ B} →
(x ≡ y) → id ∘ (x ∘ (f ∘ g)) ≡ id ∘ ((id ∘ (y ∘ f)) ∘ g)
homomorphism′ {f = f} {g} {x} {y} x≡y =
begin
id ∘ (x ∘ (f ∘ g))
↓⟨ ∘-resp-≡ʳ (∘-resp-≡ˡ x≡y) ⟩
id ∘ (y ∘ (f ∘ g))
↑⟨ ∘-resp-≡ʳ assoc ⟩
id ∘ ((y ∘ f) ∘ g)
↑⟨ ∘-resp-≡ʳ (∘-resp-≡ˡ identityˡ) ⟩
id ∘ ((id ∘ (y ∘ f)) ∘ g)
∎
where
open HomReasoning
-- More explicit versions
Hom[_][-,-] : ∀ {o ℓ e} → (C : Category o ℓ e) → Bifunctor (Category.op C) C (ISetoids ℓ e)
Hom[ C ][-,-] = Hom[-,-]
where open Hom C
Hom[_][_,-] : ∀ {o ℓ e} → (C : Category o ℓ e) → Category.Obj C → Functor C (ISetoids ℓ e)
Hom[ C ][ B ,-] = Hom[ B ,-]
where open Hom C
Hom[_][-,_] : ∀ {o ℓ e} → (C : Category o ℓ e) → Category.Obj C → Functor (Category.op C) (ISetoids ℓ e)
Hom[ C ][-, B ] = Hom[-, B ]
where open Hom C |
Build/Interpreters/Ozmoo/asm/constants.asm | polluks/Puddle-BuildTools | 38 | 3586 | <gh_stars>10-100
; C128 is now in a separate constants-c128 instead
;
!ifdef TARGET_C64 {
basic_reset = $a000
SCREEN_HEIGHT = 25
SCREEN_WIDTH = 40
SCREEN_ADDRESS = $0400
COLOUR_ADDRESS = $d800
COLOUR_ADDRESS_DIFF = COLOUR_ADDRESS - SCREEN_ADDRESS
num_rows = $a6 ; !byte 0
CURRENT_DEVICE = $ba
ti_variable = $a0; 3 bytes
keyboard_buff_len = $c6
keyboard_buff = $277
use_reu = $9b
window_start_row = $9c; 4 bytes
; Screen kernal stuff. Must be kept together or update s_init in screenkernal.
s_ignore_next_linebreak = $b0 ; 3 bytes
s_reverse = $b3 ; !byte 0
zp_temp = $fb ; 5 bytes
savefile_zp_pointer = $c1 ; 2 bytes
first_banked_memory_page = $d0 ; Normally $d0 (meaning $d000-$ffff needs banking for read/write access)
reu_filled = $0255 ; 4 bytes
vmap_buffer_start = $0334
vmap_buffer_end = $0400 ; Last byte + 1. Should not be more than vmap_buffer_start + 512
}
!ifdef TARGET_PLUS4 {
basic_reset = $8000
SCREEN_HEIGHT = 25
SCREEN_WIDTH = 40
SCREEN_ADDRESS = $0c00
COLOUR_ADDRESS = $0800
COLOUR_ADDRESS_DIFF = $10000 + COLOUR_ADDRESS - SCREEN_ADDRESS
CURRENT_DEVICE = $ae
ti_variable = $a3; 3 bytes
keyboard_buff_len = $ef
keyboard_buff = $527
zp_temp = $3b ; 5 bytes
;use_reu = $87
window_start_row = $88; 4 bytes
num_rows = $b7 ; !byte 0
; Screen kernal stuff. Must be kept together or update s_init in screenkernal.
s_ignore_next_linebreak = $b8 ; 3 bytes
s_reverse = $bb ; !byte 0
savefile_zp_pointer = $c1 ; 2 bytes
; first_banked_memory_page = $fc ; Normally $fc (meaning $fc00-$ffff needs banking, but that area can't be used anyway)
fkey_string_lengths = $55f
fkey_string_area = $567
vmap_buffer_start = $0332
vmap_buffer_end = $03f2 ; Last byte + 1. Should not be more than vmap_buffer_start + 510
;vmap_buffer_start = $0333
;vmap_buffer_end = $0437 ; Last byte + 1. Should not be more than vmap_buffer_start + 510
ted_voice_2_low = $ff0f
ted_voice_2_high = $ff10
ted_volume = $ff11
}
!ifdef TARGET_MEGA65 {
basic_reset = $a000 ; the mega65 version is always run in C64 mode
SCREEN_HEIGHT = 25
SCREEN_WIDTH = 80
!ifdef CUSTOM_FONT {
SCREEN_ADDRESS = $1000
} else {
SCREEN_ADDRESS = $0800
}
COLOUR_ADDRESS = $d800
COLOUR_ADDRESS_DIFF = COLOUR_ADDRESS - SCREEN_ADDRESS
CURRENT_DEVICE = $ba
ti_variable = $a0; 3 bytes
num_rows = $a6 ; !byte 0
keyboard_buff_len = $c6
keyboard_buff = $277
use_reu = $9b
window_start_row = $9c; 4 bytes
; Screen kernal stuff. Must be kept together or update s_init in screenkernal.
s_ignore_next_linebreak = $b0 ; 3 bytes
s_reverse = $b3 ; !byte 0
zp_temp = $fb ; 5 bytes
savefile_zp_pointer = $c1 ; 2 bytes
first_banked_memory_page = $d0 ; Normally $d0 (meaning $d000-$ffff needs banking for read/write access)
reu_filled = $0255 ; 4 bytes
vmap_buffer_start = $0334
vmap_buffer_end = $0400 ; Last byte + 1. Should not be more than vmap_buffer_start + 512
}
; --- ZERO PAGE --
; BASIC not much used, so many positions free to use
; memory bank control
zero_datadirection = $00
zero_processorports = $01
; available zero page variables (pseudo registers)
z_opcode = $02
mempointer = $03 ; 2 bytes
mem_temp = $05 ; 2 bytes
z_extended_opcode = $07
mempointer_y = $08 ; 1 byte
z_opcode_number = $09
zp_pc_h = $0a
zp_pc_l = $0b
z_opcode_opcount = $0c ; 0 = 0OP, 1=1OP, 2=2OP, 3=VAR
z_operand_count = $0d
zword = $0e ; 6 bytes
zp_mempos = $14 ; 2 bytes
z_operand_value_high_arr = $16 ; !byte 0, 0, 0, 0, 0, 0, 0, 0
z_operand_value_low_arr = $1e ; !byte 0, 0, 0, 0, 0, 0, 0, 0
;
; NOTE: This entire block of variables, except last byte of z_pc_mempointer
; and z_pc_mempointer_is_unsafe is included in the save/restore files
; and _have_ to be stored in a contiguous block of zero page addresses
;
z_local_vars_ptr = $26 ; 2 bytes
z_local_var_count = $28
stack_pushed_bytes = $29 ; !byte 0, 0
stack_ptr = $2b ; 2 bytes
stack_top_value = $2d ; 2 bytes !byte 0, 0
stack_has_top_value = $2f ; !byte 0
z_pc = $30 ; 3 bytes (last byte shared with z_pc_mempointer)
z_pc_mempointer = $32 ; 2 bytes (first byte shared with z_pc)
zp_save_start = z_local_vars_ptr
zp_bytes_to_save = z_pc + 3 - z_local_vars_ptr
;
; End of contiguous zero page block
;
;
vmap_max_entries = $34
zchar_triplet_cnt = $35
packed_text = $36 ; 2 bytes
alphabet_offset = $38
escape_char = $39
escape_char_counter = $3a
abbreviation_command = $40
parse_array = $41 ; 2 bytes
string_array = $43 ; 2 bytes
;terminators_ptr = $45 ; 2 bytes
z_address = $45 ; 3 bytes
z_address_temp = $48
object_tree_ptr = $49 ; 2 bytes
object_num = $4b ; 2 bytes
object_temp = $4d ; 2 bytes
vmap_used_entries = $4f
z_low_global_vars_ptr = $50 ; 2 bytes
z_high_global_vars_ptr = $52 ; 2 bytes
z_trace_index = $54
z_exe_mode = $55
stack_tmp = $56; ! 5 bytes
default_properties_ptr = $5b ; 2 bytes
zchars = $5d ; 3 bytes
vmap_quick_index_match= $60
vmap_next_quick_index = $61
vmap_quick_index = $62 ; Must follow vmap_next_quick_index!
vmap_quick_index_length = 6 ; Says how many bytes vmap_quick_index_uses
z_temp = $68 ; 12 bytes
s_colour = $74 ; !byte 1 ; white as default
vmem_temp = $92 ; 2 bytes
; alphabet_table = $96 ; 2 bytes
current_window = $a7 ; !byte 0
is_buffered_window = $ab; !byte 1
s_stored_x = $b4 ; !byte 0
s_stored_y = $b5 ; !byte 0
s_current_screenpos_row = $b6 ; !byte $ff
max_chars_on_line = $bd; !byte 0
buffer_index = $be ; !byte 0
last_break_char_buffer_pos = $bf ; !byte 0
zp_cursorswitch = $cc
zp_screenline = $d1 ; 2 bytes current line (pointer to screen memory)
zp_screencolumn = $d3 ; 1 byte current cursor column
zp_screenrow = $d6 ; 1 byte current cursor row
zp_colourline = $f3 ; 2 bytes current line (pointer to colour memory)
cursor_row = $f7 ; 2 bytes
cursor_column = $f9 ; 2 bytes
print_buffer = $100 ; SCREEN_WIDTH + 1 bytes
print_buffer2 = $200 ; SCREEN_WIDTH + 1 bytes
memory_buffer = $02a7
memory_buffer_length = 89
!ifdef TARGET_PLUS4 {
charset_switchable = $547
} else {
charset_switchable = $291
}
; --- I/O registers ---
!ifdef TARGET_PLUS4 {
; TED reference here:
; http://mclauchlan.site.net.au/scott/C=Hacking/C-Hacking12/gfx.html
reg_screen_bitmap_mode = $ff12
reg_screen_char_mode = $ff13
reg_bordercolour = $ff19
reg_backgroundcolour = $ff15
}
!ifdef TARGET_MEGA65 {
reg_screen_char_mode = $d018
reg_bordercolour = $d020
reg_backgroundcolour = $d021
}
!ifdef TARGET_C64 {
reg_screen_char_mode = $d018
reg_bordercolour = $d020
reg_backgroundcolour = $d021
}
; --- Kernel routines ---
!ifdef TARGET_C64 {
kernal_reset = $fce2 ; cold reset of the C64
kernal_delay_1ms = $eeb3 ; delay 1 ms
}
!ifdef TARGET_PLUS4 {
kernal_reset = $fff6 ; cold reset of the PLUS4
kernal_delay_1ms = $e2dc ; delay 1 ms
}
!ifdef TARGET_MEGA65 {
kernal_reset = $e4b8 ; Reset back to C65 mode
kernal_delay_1ms = $eeb3 ; delay 1 ms
}
kernal_setlfs = $ffba ; set file parameters
kernal_setnam = $ffbd ; set file name
kernal_open = $ffc0 ; open a file
kernal_close = $ffc3 ; close a file
kernal_chkin = $ffc6 ; define file as default input
kernal_clrchn = $ffcc ; close default input/output files
kernal_readchar = $ffcf ; read byte from default input into a
;use streams_print_output instead of kernal_printchar
;($ffd2 only allowed for input/output in screen.asm and text.asm)
kernal_printchar = $ffd2 ; write char in a
kernal_load = $ffd5 ; load file
kernal_save = $ffd8 ; save file
kernal_readtime = $ffde ; get time of day in a/x/y
kernal_getchar = $ffe4 ; get a character
|
libsrc/_DEVELOPMENT/arch/ts2068/display/c/sccz80/tshr_cxy2saddr_callee.asm | jpoikela/z88dk | 38 | 24439 | ; void *tshr_cxy2saddr(uchar x, uchar y)
SECTION code_clib
SECTION code_arch
PUBLIC tshr_cxy2saddr_callee
EXTERN asm_zx_cxy2saddr
tshr_cxy2saddr_callee:
pop hl
ex (sp),hl
jp asm_zx_cxy2saddr
|
programs/oeis/021/A021283.asm | neoneye/loda | 22 | 20477 | <reponame>neoneye/loda<filename>programs/oeis/021/A021283.asm
; A021283: Decimal expansion of 1/279.
; 0,0,3,5,8,4,2,2,9,3,9,0,6,8,1,0,0,3,5,8,4,2,2,9,3,9,0,6,8,1,0,0,3,5,8,4,2,2,9,3,9,0,6,8,1,0,0,3,5,8,4,2,2,9,3,9,0,6,8,1,0,0,3,5,8,4,2,2,9,3,9,0,6,8,1,0,0,3,5,8,4,2,2,9,3,9,0,6,8,1,0,0,3,5,8,4,2,2,9
add $0,2
mov $1,10
pow $1,$0
mul $1,2
div $1,5580
mod $1,10
mov $0,$1
|
sharding-core/src/main/antlr4/imports/PostgreSQLBase.g4 | FloodDragon/sharding-sphere | 0 | 2327 | grammar PostgreSQLBase;
import PostgreSQLKeyword, DataType, Keyword, Symbol, BaseRule;
columnDefinition
: columnName dataType collateClause? columnConstraint*
;
dataType
: typeName intervalFields? dataTypeLength? (WITHOUT TIME ZONE | WITH TIME ZONE)? (LBT_ RBT_)*
| ID
;
typeName
: DOUBLE PRECISION | CHARACTER VARYING? | BIT VARYING? | ID
;
typeNames
: typeName (COMMA typeName)*
;
intervalFields
: intervalField (TO intervalField)?
;
intervalField
: YEAR
| MONTH
| DAY
| HOUR
| MINUTE
| SECOND
;
collateClause
: COLLATE collationName
;
usingIndexType:
USING (BTREE | HASH | GIST | SPGIST | GIN | BRIN)
;
columnConstraint
: constraintClause? columnConstraintOption constraintOptionalParam
;
constraintClause
: CONSTRAINT constraintName
;
columnConstraintOption
: NOT? NULL
| checkOption
| DEFAULT defaultExpr
| GENERATED (ALWAYS | BY DEFAULT) AS IDENTITY (LP_ sequenceOptions RP_)?
| UNIQUE indexParameters
| primaryKey indexParameters
| REFERENCES tableName (LP_ columnName RP_)?
(MATCH FULL | MATCH PARTIAL | MATCH SIMPLE)?(ON DELETE action)? foreignKeyOnAction*
;
checkOption
: CHECK expr (NO INHERIT)?
;
defaultExpr
: CURRENT_TIMESTAMP | expr
;
sequenceOptions
: sequenceOption+
;
sequenceOption
: START WITH? NUMBER
| INCREMENT BY? NUMBER
| MAXVALUE NUMBER
| NO MAXVALUE
| MINVALUE NUMBER
| NO MINVALUE
| CYCLE
| NO CYCLE
| CACHE NUMBER
;
indexParameters
: (USING INDEX TABLESPACE tablespaceName)?
;
action
: NO ACTION | RESTRICT | CASCADE | SET (NULL | DEFAULT)
;
constraintOptionalParam
: (NOT? DEFERRABLE)? (INITIALLY (DEFERRED |IMMEDIATE))?
;
tableConstraint
: constraintClause? tableConstraintOption constraintOptionalParam
;
tableConstraintOption
: checkOption
| UNIQUE columnList indexParameters
| primaryKey columnList indexParameters
| FOREIGN KEY columnList REFERENCES tableName columnList (MATCH FULL | MATCH PARTIAL | MATCH SIMPLE)? foreignKeyOnAction*
;
foreignKeyOnAction
: ON (UPDATE foreignKeyOn | DELETE foreignKeyOn)
;
foreignKeyOn
: RESTRICT | CASCADE | SET NULL | NO ACTION | SET DEFAULT
;
excludeElement
: (columnName | expr) opclass? (ASC | DESC)? (NULLS (FIRST | LAST))?
;
privateExprOfDb
: aggregateExpression
|windowFunction
|arrayConstructorWithCast
|(TIMESTAMP (WITH TIME ZONE)? STRING)
|extractFromFunction
;
pgExpr
: castExpr | collateExpr | expr
;
aggregateExpression
: ID (LP_ (ALL | DISTINCT)? exprs orderByClause? RP_) asteriskWithParen
(LP_ exprs RP_ WITHIN GROUP LP_ orderByClause RP_) filterClause?
;
filterClause
: FILTER LP_ WHERE booleanPrimary RP_
;
asteriskWithParen
: LP_ ASTERISK RP_
;
windowFunction
: ID (exprsWithParen | asteriskWithParen)
filterClause? windowFunctionWithClause
;
windowFunctionWithClause
: OVER (ID | LP_ windowDefinition RP_ )
;
windowDefinition
: ID? (PARTITION BY exprs)?
(orderByExpr (COMMA orderByExpr)*)?
frameClause?
;
orderByExpr
: ORDER BY expr (ASC | DESC | USING operator)? (NULLS (FIRST | LAST ))?
;
operator
: SAFE_EQ
| EQ_
| NEQ
| NEQ_
| GT
| GTE
| LT
| LTE
| AND_
| OR_
| NOT_
;
frameClause
: (RANGE | ROWS) frameStart
| (RANGE | ROWS ) BETWEEN frameStart AND frameEnd
;
frameStart
: UNBOUNDED PRECEDING
| NUMBER PRECEDING
| CURRENT ROW
| NUMBER FOLLOWING
| UNBOUNDED FOLLOWING
;
frameEnd
: frameStart
;
castExpr
: CAST LP_ expr AS dataType RP_
| expr COLON COLON dataType
;
castExprWithColon
: COLON COLON dataType(LBT_ RBT_)*
;
collateExpr
: expr COLLATE expr
;
arrayConstructorWithCast
: arrayConstructor castExprWithColon?
| ARRAY LBT_ RBT_ castExprWithColon
;
arrayConstructor
: ARRAY LBT_ exprs RBT_
| ARRAY LBT_ arrayConstructor (COMMA arrayConstructor)* RBT_
;
extractFromFunction
: EXTRACT LP_ ID FROM ID RP_
;
|
test/agda-ocaml/Golden/InsertionSort.agda | agda/agda-ocaml | 48 | 13021 | <gh_stars>10-100
module Golden.InsertionSort where
open import Agda.Builtin.Nat
open import Agda.Builtin.List
open import Agda.Builtin.Bool
insert : Nat -> List Nat -> List Nat
insert a [] = a ∷ []
insert x (a ∷ b) with x < a
... | true = x ∷ a ∷ b
... | false = a ∷ (insert x b)
foldr : ∀ {a b : Set} → (a → b → b) → b → List a -> b
foldr f ini [] = ini
foldr f ini (x ∷ l) = f x (foldr f ini l)
insertSort : List Nat -> List Nat
insertSort = foldr insert []
atDef : ∀ {a : Set} → a → List a -> Nat -> a
atDef def (x ∷ l) zero = x
atDef def (x ∷ l) (suc ix) = atDef def l ix
atDef def _ _ = def
lst : List Nat
lst = 4 ∷ 2 ∷ 7 ∷ []
slst : List Nat
slst = insertSort lst
l0 : Nat
l0 = atDef 0 slst 0
l1 : Nat
l1 = atDef 0 slst 1
l2 : Nat
l2 = atDef 0 slst 2
|
programs/oeis/175/A175886.asm | karttu/loda | 1 | 160628 | <reponame>karttu/loda
; A175886: Numbers that are congruent to {1, 12} mod 13.
; 1,12,14,25,27,38,40,51,53,64,66,77,79,90,92,103,105,116,118,129,131,142,144,155,157,168,170,181,183,194,196,207,209,220,222,233,235,246,248,259,261,272,274,285,287,298,300,311,313,324,326,337,339,350,352,363,365,376,378,389,391,402,404,415,417,428,430,441,443,454,456,467,469,480,482,493,495,506,508,519,521,532,534,545,547,558,560,571,573,584,586,597,599,610,612,623,625,636,638,649,651,662,664,675,677,688,690,701,703,714,716,727,729,740,742,753,755,766,768,779,781,792,794,805,807,818,820,831,833,844,846,857,859,870,872,883,885,896,898,909,911,922,924,935,937,948,950,961,963,974,976,987,989,1000,1002,1013,1015,1026,1028,1039,1041,1052,1054,1065,1067,1078,1080,1091,1093,1104,1106,1117,1119,1130,1132,1143,1145,1156,1158,1169,1171,1182,1184,1195,1197,1208,1210,1221,1223,1234,1236,1247,1249,1260,1262,1273,1275,1286,1288,1299,1301,1312,1314,1325,1327,1338,1340,1351,1353,1364,1366,1377,1379,1390,1392,1403,1405,1416,1418,1429,1431,1442,1444,1455,1457,1468,1470,1481,1483,1494,1496,1507,1509,1520,1522,1533,1535,1546,1548,1559,1561,1572,1574,1585,1587,1598,1600,1611,1613,1624
mov $1,32
add $1,$0
div $0,2
mul $0,9
mul $1,11
sub $1,$0
sub $1,351
|
other.7z/SFC.7z/SFC/ソースデータ/ヨッシーアイランド/日本_Ver2/chip/ys_msub0.asm | prismotizm/gigaleak | 0 | 5082 | Name: ys_msub0.asm
Type: file
Size: 298457
Last-Modified: '2016-05-13T04:51:40Z'
SHA-1: 3394406B395D3A6D04A10646AF637CA16B7BD276
Description: null
|
oeis/133/A133767.asm | neoneye/loda-programs | 11 | 102468 | ; A133767: a(n) = (4*n+3)*(4*n+5)*(4*n+7).
; Submitted by <NAME>
; 105,693,2145,4845,9177,15525,24273,35805,50505,68757,90945,117453,148665,184965,226737,274365,328233,388725,456225,531117,613785,704613,803985,912285,1029897,1157205,1294593,1442445,1601145,1771077,1952625
mul $0,2
sub $2,$0
mul $0,2
add $0,6
bin $0,3
add $0,$2
sub $0,20
mul $0,6
add $0,105
|
Packets/compile/c.asm | TrojanIsHere/GOD | 0 | 164232 | <gh_stars>0
; -- Create in 2010 desember 14
ORG 100H
EOF: EQU 1AH ;End of file
EOL: EQU 0DH
FCB: EQU 5CH
SYSTEM: EQU 5
OPEN: EQU 15
CLOSE: EQU 16
SETDMA: EQU 26
CREATE: EQU 22
DELETE: EQU 19
READ: EQU 20
WRITE: EQU 21
PRNBUF: EQU 9
MOV SP,STACK
MOV DX,HEADER
MOV CL,9
CALL SYSTEM
MOV BX,FCB+12
XOR AL,AL
MOV CH,4
CLRFCB:
MOV [BX],AL
INC BX
DEC CH
JNZ CLRFCB
MOV [FCB+32],AL
MOV BX,FCB
MOV DX,PUTFCB
MOV CX,16
UP
MOV SI,BX
MOV DI,DX
REP
MOVB
MOV DX,DI
MOV BX,SI
MOV [PUTFCB+32],AL
MOV BX,"A"+5300H ;"AS"
MOV [PUTFCB+9],BX
MOV AL,'M'
MOV [PUTFCB+11],AL
MOV DX,FCB
MOV CL,OPEN
CALL SYSTEM
INC AL
MOV DX,NOFILE
JZ ABORTJ
MOV DX,PUTFCB
MOV CL,DELETE
CALL SYSTEM
MOV DX,PUTFCB
MOV CL,CREATE
CALL SYSTEM
INC AL
MOV DX,NOROOM
ABORTJ:
JZ ABORT
MOV DX,PUTFCB
MOV CL,OPEN
CALL SYSTEM
MOV BX,PUTBUF
MOV [PUTPT],BX
MOV BX,GETBUF+80H
MOV [GETPT],BX
TRANLN:
XOR AL,AL
MOV [OP1],AL
MOV [OP2],AL
MOV BX,OPCODE
CALL LOAD
MOV BX,OP1
CALL GETOP
MOV B,[BX],0
MOV BX,OP2
CALL GETOP
DOLIN:
MOV B,[BX],0
CALL FINDOP
ENLIN:
MOV SP,STACK
MOV AL,[CHAR]
CMP AL,';'
JNZ NOCOM
MOV AL,9
CALL PUTCH
MOV AL,';'
NOCOM:
CALL PUTCH
PUTLIN:
CMP AL,EOF
JZ END
CALL GETCH
CALL PUTCH
CMP AL,10
JNZ PUTLIN
JP TRANLN
END:
MOV CH,127
MOV AL,1AH
FILL:
CALL PUTCH
DEC CH
JNZ FILL
MOV DX,PUTFCB
MOV CL,CLOSE
CALL SYSTEM
MOV DX,ENDMES
ABORT:
MOV CL,PRNBUF
CALL SYSTEM
JMP 0
DELIM:
CALL GETCH
DELCHK:
CMP AL,EOL
JZ DOLIN
CMP AL,EOF
JZ DOLIN
CMP AL,';'
JZ DOLIN
CMP AL,' '
JZ RET
CMP AL,':'
JZ RET
CMP AL,','
JZ RET
CMP AL,9
RET
HEX:
AND AL,0FH
ADD AL,90H
DAA
ADC AL,40H
DAA
PUTCH:
PUSH BX
PUSH DX
PUSH CX
LAHF
XCHG AH,AL
PUSH AX
XCHG AH,AL
AND AL,7FH
MOV BX,[PUTPT]
MOV [BX],AL
INC BX
MOV [PUTPT],BX
CMP BX,PUTBUF+80H
JNZ POPRET
MOV DX,PUTBUF
MOV [PUTPT],DX
MOV CL,SETDMA
CALL SYSTEM
MOV DX,PUTFCB
MOV CL,WRITE
CALL SYSTEM
OR AL,AL
MOV DX,WRTERR
JNZ ABORT
POPRET:
POP AX
XCHG AH,AL
SAHF
NOTAF:
POP CX
POP DX
POP BX
RET
;
; Get character from source file.
;
GETCH:
PUSH BX
PUSH DX
PUSH CX
MOV BX,[GETPT] ; Get buffer pointer.
CMP BX,GETBUF+80H ; Past end-of-buffer?
JNZ GETIT ; Jump if not.
MOV DX,GETBUF ; Set `DMA address'.
MOV CL,SETDMA
CALL SYSTEM
MOV DX,FCB ; Read the next record from source file.
MOV CL,READ
CALL SYSTEM
CMP AL,0 ; Entire record read OK?
JE OKRECORD
CMP AL,3 ; Partial record read?
JE OKRECORD
MOV AL,EOF ; Force end-of-file character in case
JP TESEND ; there is nothing in the record.
OKRECORD:
MOV BX,GETBUF ; Reset buffer pointer.
GETIT:
MOV AL,[BX] ; Get next character from buffer.
INC BX ; Point to next character.
MOV [GETPT],BX ; Save new pointer.
TESEND:
MOV [CHAR],AL
JP NOTAF ; Pop registers and return.
LOAD:
CALL DELIM
JZ LOADOP
EATLAB:
CALL PUTCH
CALL DELIM
JNZ EATLAB
ENLAB:
MOV AL,':'
CALL PUTCH
LOADOP:
MOV BX,OPCODE
EATEM:
CALL DELIM
JZ EATEM
LOADLP:
CALL IDCHK
JNC $+5
JMP OPERR
MOV [BX],AL
INC BX
CALL DELIM
JNZ LOADLP
MOV B,[BX],0
CMP AL,':'
JNZ RET
MOV BX,OPCODE
CALL TRANS
JP ENLAB
GETOP:
XOR AL,AL
LAHF
XCHG AX,BP
SAHF
GETLP:
CALL DELIM
JZ GETLP
OPCHAR:
CMP AL,'('
JNZ NOTLEF
LAHF
XCHG AX,BP
SAHF
INC AL
LAHF
XCHG AX,BP
SAHF
MOV B,[BX],'['
JP NEXCH
NOTLEF:
CMP AL,')'
JNZ NOTRIT
LAHF
XCHG AX,BP
SAHF
DEC AL
LAHF
XCHG AX,BP
SAHF
MOV B,[BX],']'
JP NEXCH
NOTRIT:
MOV [BX],AL
CMP AL,''''
JZ EATQUO
CALL IDCHK
JNC GETID
NEXCH:
INC BX
CALL GETCH
IDRET:
CALL DELCHK
JNZ OPCHAR
CMP AL,' '
JZ OPCHAR
RET
EATQUO:
INC BX
CALL GETCH
MOV [BX],AL
CMP AL,';'
JZ L0000
CALL DELCHK
L0000:
CMP AL,''''
JNZ EATQUO
JP NEXCH
IDCHK:
CMP AL,'0'
JC RET
CMP AL,'9'+1
CMC
JNC RET
CMP AL,40H
JC RET
AND AL,5FH
CMP AL,'A'
JC RET
CMP AL,'Z'+1
CMC
RET
GETID:
MOV [BX],AL
MOV CH,1
LODID:
INC BX
CALL GETCH
CALL IDCHK
JC RWCHK
MOV [BX],AL
INC CH
JP LODID
RWCHK:
LAHF
XCHG AH,AL
PUSH AX
XCHG AH,AL
PUSH BX
DEC BX
DEC CH
MOV DL,CH
JZ LOOKRW
MOV DL,[BX]
DEC BX
DEC CH
JNZ NORW
LOOKRW:
MOV AL,[BX]
MOV DH,AL
PUSH BX
MOV BX,RWTAB
MOV CX,LENRW
RWLK:
UP
MOV DI,BX
REPNZ
SCAB
MOV BX,DI
JNZ NOTRW
PUSH BX
PUSH CX
MOV CX,LENRW-1
LAHF
ADD BX,CX
RCR SI
SAHF
RCL SI
MOV AL,[BX]
POP CX
POP BX
CMP AL,DL
JZ HAVRW
MOV AL,CL
OR AL,AL
MOV AL,DH
JNZ RWLK
NOTRW:
POP BX
NORW:
POP BX
ENDRW:
POP AX
XCHG AH,AL
SAHF
JMP IDRET
HAVRW:
POP BX
INC CL
MOV [BX],CL
INC BX
POP DX
PUSH BX
MOV AL,CL
MOV BX,IXSI
CMP AL,RSI
JZ IXIY
MOV BX,IYDI
CMP AL,RDI
JNZ NORW
IXIY:
LAHF
XCHG AX,BP
SAHF
JZ NOTENC
LAHF
XCHG AX,BP
SAHF
CALL OUTSTR
JP NORW
NOTENC:
LAHF
XCHG AX,BP
SAHF
POP BX
DEC BX
MOV B,[BX],'['
INC BX
ADD AL,RIX-1
MOV [BX],AL
INC BX
MOV B,[BX],']'
INC BX
JP ENDRW
RET
FINDOP:
MOV BX,OPCODE
MOV CX,5
XOR AL,AL
UP
MOV DI,BX
REPNZ
SCAB
MOV BX,DI
JNZ OPERR
MOV AL,4
SUB AL,CL
JZ RET
DEC AL
JZ OPERR
MOV CL,AL
DEC BX
DEC BX
OR B,[BX],080H
MOV AL,[OPCODE]
SUB AL,'A'
JC OPERR
ADD AL,AL
MOV DL,AL
MOV DH,0
MOV BX,OPTAB
LAHF
ADD BX,DX
RCR SI
SAHF
RCL SI
MOV DL,[BX]
INC BX
MOV DH,[BX]
XCHG DX,BX
MOV AL,9
CALL PUTCH
LOOKOP:
MOV AL,[BX]
OR AL,AL
JZ OPERR
MOV DX,OPCODE+1
MOV CH,CL
LOOKLP:
MOV SI,DX
LODB
CMP AL,[BX]
JNZ NEXOP
INC DX
INC BX
DEC CH
JNZ LOOKLP
MOV DX,[BX]
MOV BX,[BX+2]
JMP DX
NEXOP:
RCR SI
TEST B,[BX],080H
RCL SI
LAHF
INC BX
SAHF
JZ NEXOP
MOV DX,4
LAHF
ADD BX,DX
RCR SI
SAHF
RCL SI
JP LOOKOP
OPERR:
MOV BX,OPCODE
CALL OUTSTR
CALL TWOOPS
MOV BX,OPCDER
CALL OUTSTR
JMP ENLIN
LD:
CALL OUTSTR
MOV BX,OP1
MOV DX,OP2+1
CALL LCHECK
JNZ $+5
JMP LDAX
XCHG DX,BX
DEC BX
INC DX
CALL LCHECK
JNZ $+5
JMP STAX
;If immediate move, check for byte memory reference
MOV AL,[OP2]
CMP AL,20H ;Could be immediate?
MOV AL,9
JC L0001
CALL BYTCHK ;Add "B," if memory reference
L0001:
CALL TRAN1
JP TRNOP2
TWOOPS:
CALL TRNOP1
TRNOP2:
MOV AL,','
TRAN2:
MOV BX,OP2
PTRANS:
CALL PUTCH
TRANS:
MOV AL,[BX]
LAHF
INC BX
SAHF
OR AL,AL
JZ RET
CALL TRNTOK
JP TRANS
LCHECK:
MOV AL,[BX]
CMP AL,RAL
JNZ RET
MOV SI,DX
LODB
CMP AL,RCX
JZ RET
CMP AL,RDX
RET
ONEOP:
CALL OUTSTR
MOV AL,9
CALL BYTCHK ;If memory reference, add "B," flag
JMPS TRAN1
TRNOP1:
MOV AL,9
TRAN1:
MOV BX,OP1
JP PTRANS
IN:
MOV AL,[OP1]
CMP AL,RAL
XCHG DX,BX
MOV BX,OP2
JZ GETPORT
MOV BX,SAVEAX
CALL OUTSTR
CALL OUTSTR
MOV BX,OP2
CALL GETPORT
MOV BX,MOV0
CALL ONEOP
MOV AL,','
CALL PUTCH
MOV AL,RAL
CALL TRNTOK
IODONE:
MOV BX,RESTAX
JMP OUTSTR
OUT:
MOV AL,[OP2]
XCHG DX,BX
MOV BX,OP1
CMP AL,RAL
JZ GETOUT
MOV BX,SAVEAX
CALL OUTSTR
MOV BX,MOVAL
CALL OUTSTR
CALL TRNOP2
MOV BX,CRLFTB
CALL OUTSTR
MOV BX,OP1
CALL GETOUT
JP IODONE
GETPORT:
MOV AL,[BX]
CMP AL,'['
JNZ NOBRAK
LAHF
INC BX
SAHF
PUSH BX
MOV CX,80
MOV AL,']'
UP
MOV DI,BX
REPNZ
SCAB
MOV BX,DI
LAHF
DEC BX
SAHF
MOV B,[BX],0
POP BX
NOBRAK:
MOV AL,[BX]
CMP AL,RGCL
JNZ FIXPOR
MOV BX,IO1
CALL OUTSTR
XCHG DX,BX
CALL OUTSTR
MOV AL,RDX
CALL TRNTOK
MOV BX,IO2
JMP OUTSTR
GETOUT:
CALL GETPORT
JNC RET
MOV BX,BADIO
JMP OUTSTR
FIXPOR:
XCHG DX,BX
CALL OUTSTR
XCHG DX,BX
JMP TRANS
LDAX:
MOV BX,LDAX1
LSAX:
CALL OUTSTR
MOV SI,DX
LODB
CALL TRNTOK
JP OUTSTR
STAX:
MOV BX,STAX1
JP LSAX
TRNTOK:
CMP AL,' '
JC $+5
JMP PUTCH
PUSH BX
PUSH CX
MOV CL,AL
MOV CH,0
MOV BX,TOKTAB-2
LAHF
ADD BX,CX
RCR SI
SAHF
RCL SI
LAHF
ADD BX,CX
RCR SI
SAHF
RCL SI
MOV AL,[BX]
CALL PUTCH
INC BX
MOV AL,[BX]
POP CX
POP BX
OR AL,AL
JZ RET
JMP PUTCH
PUSH:
MOV DX,PUSHAF
JP AFCHK
POP:
MOV DX,POPAF
AFCHK:
MOV AL,[OP1]
CMP AL,RAX
JNZ ONEOPJ
XCHG DX,BX
OUTSTR:
MOV AL,[BX]
OR AL,AL
JNZ L0002
CALL NEWOP
L0002:
CALL PUTCH
INC BX
ADD AL,AL
JNC OUTSTR
RET
NEWOP:
MOV AL,13
CALL PUTCH
MOV AL,10
CALL PUTCH
MOV AL,9
RET
LDDR:
CALL OUTSTR
MOV BX,BLMOVE
JP OUTSTR
CPDR:
CALL OUTSTR
MOV BX,CMPREP
JP OUTSTR
ADD:
MOV AL,[OP1]
CMP AL,RBX
JZ DAD
ARITH:
CALL OUTSTR
MOV AL,[OP2]
OR AL,AL
JZ $+5
JMP TWOOPS
MOV AL,9
CALL PUTCH
MOV AL,RAL
CALL TRNTOK
MOV AL,','
JMP TRAN1
ACCUM:
CALL OUTSTR
MOV AL,9
CALL PUTCH
MOV AL,RAL
JMP TRNTOK
ONEOPJ: JMP ONEOP
DAD:
MOV BX,DAD1
CALL OUTSTR
CALL TWOOPS
MOV BX,DAD2
JP OUTSTR
INCDEC:
MOV AL,[OP1]
CMP AL,RCX+1 ;16-bit?
JNC ONEOPJ
MOV BX,LAHF
CALL OUTSTR
XCHG DX,BX
MOV BX,OPCODE-1
CALL ONEOP
XCHG DX,BX
OUTSTRJ:
JMP OUTSTR
JUMP:
MOV AL,[OP1]
CMP AL,'['
JNZ DIRECT
MOV AL,[OP1+1]
MOV [OP1],AL
XOR AL,AL
MOV [OP1+1],AL
DIRECT:
MOV AL,[OP2]
OR AL,AL
JZ ONEOPJ
CALL FIXCON
MOV BX,OP2
OUTCON:
MOV CH,AL
MOV AL,'J'
CALL PUTCH
MOV AL,CH
CALL TRNTOK
MOV AL,9
CALL PTRANS
MOV AL,CH
CMP AL,ODDPAR
MOV BX,WARNPA
JZ OUTSTRJ
CMP AL,EVEPAR
JZ OUTSTRJ
RET
FIXCON:
MOV AL,[OP1]
CMP AL,RGCL
JNZ RET
MOV AL,CY
RET
RETURN:
MOV AL,[OP1]
OR AL,AL
JZ OUTSTRJ
MOV BX,'R'+4500H ;"RE"
MOV [OP2],BX
MOV BX,'T'
MOV [OP2+2],BX
JP DIRECT
ONEOPJ1:
JMP ONEOP
DOCALL:
MOV AL,[OP2]
OR AL,AL
JZ ONEOPJ1
CALL FIXCON
DEC AL
XOR AL,1
INC AL
MOV BX,LABEL
CALL OUTCON
MOV BX,OPCODE-1
CALL OUTSTR
MOV AL,[OP2]
OR AL,AL
MOV AL,9
MOV BX,OP2
JZ L0003
CALL PTRANS
L0003:
MOV BX,CRLF
CALL OUTSTR
CALL TRANS
CALL OUTSTR
MOV BX,LABEL+4
NEXLAB:
INC [BX]
MOV AL,[BX]
CMP AL,'9'+1
JNZ RET
MOV B,[BX],'0'
LAHF
DEC BX
SAHF
JP NEXLAB
EX:
MOV AL,[OP1]
CMP AL,RAX
JZ OUTSTRJ1
MOV AL,[OP1+1]
CMP AL,STP
JZ XTHL
MOV BX,XCHG
CALL OUTSTR
JMP TWOOPS
XTHL:
MOV BX,XTHL1
CALL OUTSTR
CALL TRNOP2
MOV BX,XTHL2
OUTSTRJ1:
JMP OUTSTR
PSEUDO:
CALL ONEOP
MOV AL,[OP2]
OR AL,AL
JZ RET
JMP TRNOP2
RET
BITSET:
MOV CL,0
JP SETRES
RES:
MOV CL,-1
SETRES:
CALL OUTSTR
PUSH BX
MOV AL,[OP2]
CMP AL,'['
MOV AL,9
JNZ L0004
CALL BFLAG
L0004:
CALL TRAN2
MOV AL,','
CALL PUTCH
CALL GETBIT
MOV BX,BITERR
JNC L0005
CALL OUTSTR
L0005:
POP BX
JMP OUTSTR
BYTCHK:
;Check if memory reference and add "B," for byte mode
CMP B,[OP1],"[" ;Memory reference?
JNZ RET
CMP B,[OP1+1],RIX ;Referencing IX as a word?
JZ RET
CMP B,[OP1+1],RIY
JZ RET
BFLAG:
CALL PUTCH
MOV AL,'B'
CALL PUTCH
MOV AL,','
RET
GETBIT:
MOV AL,[OP1+1]
OR AL,AL
STC
JNZ RET
MOV AL,[OP1]
SUB AL,'0'
JC RET
CMP AL,8
CMC
JC RET
MOV CH,AL
INC CH
XOR AL,AL
STC
SHFT:
RCL AL
DEC CH
JNZ SHFT
XOR AL,CL
MOV CH,AL
MOV AL,'0'
CALL PUTCH
MOV AL,CH
RCR AL
RCR AL
RCR AL
RCR AL
CALL HEX
MOV AL,CH
CALL HEX
MOV AL,'H'
JMP PUTCH
OPTAB:
DW AOPS,BOPS,COPS,DOPS,EOPS
DW FOPS,GOPS,HOPS,IOPS,JOPS
DW KOPS,LOPS,MOPS,NOPS,OOPS
DW POPS,QOPS,ROPS,SOPS,TOPS
DW UOPS,VOPS,WOPS,XOPS,YOPS
DW ZOPS
AOPS:
DM 'DD'
DW ADD,OPCODE
DM 'DC'
DW ARITH,OPCODE
DM 'ND'
DW ARITH,OPCODE
DB 0
BOPS:
DM 'IT'
DW BITSET,TESBIT
DB 0
COPS:
DM 'ALL'
DW DOCALL,OPCODE
DM 'P'
DW ARITH,CMP
DM 'PL'
DW ACCUM,NOT
DM 'PIR'
DW OUTSTR,CPIR
DM 'PDR'
DW CPDR,DOWN
DM 'CF'
DW OUTSTR,CMC
DB 0
DOPS:
DM 'EC'
DW INCDEC,OPCODE
DM 'JNZ'
DW ONEOP,DJNZ
DM 'AA'
DW OUTSTR,OPCODE
DM 'I'
DW OUTSTR,OPCODE
DM 'W'
DW PSEUDO,OPCODE
DM 'B'
DW PSEUDO,OPCODE
DM 'M'
DW PSEUDO,OPCODE
DM 'S'
DW ONEOP,OPCODE
DB 0
EOPS:
DM 'X'
DW EX,EXAF
DM 'I'
DW OUTSTR,OPCODE
DM 'XX'
DW OUTSTR,EXX
DM 'QU'
DW ONEOP,OPCODE
DM 'NDIF'
DW OUTSTR,OPCODE
DB 0
FOPS:
DB 0
GOPS:
DB 0
HOPS:
DM 'ALT'
DW OUTSTR,HLT
DB 0
IOPS:
DM 'NC'
DW INCDEC,OPCODE
DM 'N'
DW IN,INB
DM 'F'
DW ONEOP,OPCODE
DB 0
JOPS:
DM 'R'
DW JUMP,JR
DM 'P'
DW JUMP,JMP
DB 0
KOPS:
DB 0
LOPS:
DM 'D'
DW LD,MOV
DM 'DIR'
DW OUTSTR,UP
DM 'DDR'
DW LDDR,DOWN
DB 0
MOPS:
DB 0
NOPS:
DM 'EG'
DW ACCUM,OPCODE
DB 0
OOPS:
DM 'R'
DW ARITH,OPCODE
DM 'UT'
DW OUT,OUTB
DM 'RG'
DW ONEOP,OPCODE
DB 0
POPS:
DM 'OP'
DW POP,OPCODE
DM 'USH'
DW PUSH,OPCODE
DB 0
QOPS:
DB 0
ROPS:
DM 'ET'
DW RETURN,OPCODE
DM 'LA'
DW ACCUM,RCL
DM 'RA'
DW ACCUM,RCR
DM 'LCA'
DW ACCUM,ROL
DM 'RCA'
DW ACCUM,ROR
DM 'L'
DW ONEOP,RCL
DM 'R'
DW ONEOP,RCR
DM 'LC'
DW ONEOP,ROL
DM 'RC'
DW ONEOP,ROR
DM 'ES'
DW RES,RESBIT
DM 'ETI'
DW OUTSTR,IRET
DM 'ETN'
DW OUTSTR,IRET
DM 'ST'
DW ONEOP,CALL
DB 0
SOPS:
DM 'UB'
DW ARITH,OPCODE
DM 'BC'
DW ARITH,SBB
DM 'LA'
DW ONEOP,SAL
DM 'RA'
DW ONEOP,SAR
DM 'RL'
DW ONEOP,SHR
DM 'CF'
DW OUTSTR,STC
DM 'ET'
DW BITSET,SETBIT
DB 0
TOPS:
DB 0
UOPS:
DB 0
VOPS:
DB 0
WOPS:
DB 0
XOPS:
DM 'OR'
DW ARITH,OPCODE
DB 0
YOPS:
DB 0
ZOPS:
DB 0
LDAX1: DM 9,'SI,'
DM 0,'LODB'
STAX1: DM 9,'DI,'
DM 0,'STOB'
PUSHAF: DB 'LAHF',0,'XCHG',9,'AH,AL',0,'PUSH',9,'AX',0
DM 'XCHG',9,'AH,AL'
POPAF: DM 'POP',9,'AX',0,'XCHG',9,'AH,AL',0,'SAHF'
DOWN: DM 'DOWN'
UP: DB 'UP'
BLMOVE: DB 0,'MOV',9,'SI,BX',0,'MOV',9,'DI,DX'
DB 0,'REP',0,'MOVB',0,'MOV',9,'DX,DI'
DM 0,'MOV',9,'BX,SI'
CPIR: DB 'UP'
CMPREP: DB 0,'MOV',9,'DI,BX',0,'REPNZ',0,'SCAB'
DM 0,'MOV',9,'BX,DI'
DAD1: DM 'LAHF',0,'ADD'
DAD2: DM 0,'RCR',9,'SI',0,'SAHF',0,'RCL',9,'SI'
LAHF: DM 'LAHF'
DM 0,'SAHF'
DJNZ: DB 'DEC',9,'CH',13,10
DB '; *** WARNING: DJNZ does not affect flags - DEC does.',0
DM 'JNZ'
WARNPA: DM 13,10,'; *** WARNING: Parity flag not always same as Z80.'
IO1: DB 'MOV',9,'DI,DX',0,'MOV',9,'DL,CL',0
DM 'XOR',9,'DH,DH',13,10,9
IO2: DM 0,'MOV',9,'DX,DI'
BADIO: DM 13,10,'; *** WARNING: Flags not same as Z80.'
BITERR: DM 13,10,' *** ERROR: Cannot determine bit number.'
SETBIT: DM 'LAHF',0,'OR'
DM 0,'SAHF'
RESBIT: DM 'LAHF',0,'AND'
DM 0,'SAHF'
TESBIT: DM 'RCR',9,'AH',0,'TEST'
DM 0,'RCL',9,'AH'
XTHL1: DM 'POP',9,'SI',0,'XCHG',9,'SI'
XTHL2: DM 0,'PUSH',9,'SI'
EXX: DB 'XCHG',9,'BX,[HL]',0,'XCHG',9,'DX,[DE]',0
DM 'XCHG',9,'CX,[BC]'
EXAF: DM 'LAHF',0,'XCHG',9,'AX,BP',0,'SAHF'
MOVAL: DM 0,'MOV',9,'AL'
IXSI: DM 9,'MOV',9,'SI,[IX]',13,10
IYDI: DM 9,'MOV',9,'DI,[IY]',13,10
RESTAX: DB 0
SAVEAX: DM 'XCHG',9,'AX,SI'
CRLFTB: DM 13,10,9
INB: DM 'INB',9
OUTB: DM 'OUTB',9
XCHG: DM 'XCHG'
JMP: DM 'JMP'
JR: DM 'JMPS'
RCL: DM 'RCL'
RCR: DM 'RCR'
ROL: DM 'ROL'
ROR: DM 'ROR'
SAL: DM 'SAL'
SAR: DM 'SAR'
SHR: DM 'SHR'
STC: DM 'STC'
IRET: DM 'IRET'
HLT: DM 'HLT'
CMC: DM 'CMC'
NOT: DM 'NOT'
MOV0: DB 0
MOV: DM 'MOV'
CMP: DM 'CMP'
SBB: DM 'SBB'
CALL: DM 'CALL'
TOKTAB:
DB 'SIDI'
DB 'PEPOS',0,'NSNZZ',0,'NCC',0
DB 'AXSPBXDXCX'
DB 'BLBHDLDHCLCHALIXIY'
RWTAB:
DB 'ABCDEHLBDHSACNZNPMPPII'
LENRW: EQU $-RWTAB
DB 0,0,0,0,0,0,0,'CELPF',0,'C',0,'Z',0,0,'OEYX'
HEADER: DB 13,10,'Z80 to 8086 Translator version 2.21',13,10,'$'
NOROOM: DB 13,10,'File creation error',13,10,'$'
NOFILE: DB 13,10,'File not found',13,10,'$'
ENDMES: DB 13,10,'Translation complete',13,10,'$'
WRTERR: DB 13,10,'Out of disk space',13,10,'$'
OPCDER: DM 13,10,'*** Opcode Error '
CRLF: DM 13,10
LABEL: DB 'L0000',0
DM ':',9
PUTPT: DS 2
GETPT: DS 2
CHAR: DS 1
DB 0
OPCODE: DS 80
OP1: DS 80
OP2: DS 80
PUTBUF: DS 128
GETBUF: DS 128
PUTFCB: DS 33
DS 50
STACK: EQU $
ORG 1 ;This is really just for equates without EQU
RSI: DS 1
RDI: DS 1
ODDPAR: DS 1
EVEPAR: DS 1
DS 5 ;MINUS,PLUS,NOT ZERO,ZERO,NOT CARRY
CY: DS 1
RAX: DS 1
STP: DS 1
RBX: DS 1
RDX: DS 1
RCX: DS 1
RBL: DS 1
RBH: DS 1
RDL: DS 1
RDH: DS 1
RGCL: DS 1
RCH: DS 1
RAL: DS 1
RIX: DS 1
|
src/commands/makedict_main.adb | lenzomj/whitakers-words | 204 | 5991 | <reponame>lenzomj/whitakers-words
-- WORDS, a Latin dictionary, by <NAME> (USAF, Retired)
--
-- Copyright <NAME> (1936–2010)
--
-- This is a free program, which means it is proper to copy it and pass
-- it on to your friends. Consider it a developmental item for which
-- there is no charge. However, just for form, it is Copyrighted
-- (c). Permission is hereby freely given for any and all use of program
-- and data. You can sell it as your own, but at least tell me.
--
-- This version is distributed without obligation, but the developer
-- would appreciate comments and suggestions.
--
-- All parts of the WORDS system, source code and data files, are made freely
-- available to anyone who wishes to use them, for whatever purpose.
with Ada.Text_IO;
with Latin_Utils.Config;
with Latin_Utils.Strings_Package; use Latin_Utils.Strings_Package;
with Latin_Utils.Latin_File_Names; use Latin_Utils.Latin_File_Names;
with Latin_Utils.Inflections_Package; use Latin_Utils.Inflections_Package;
with Latin_Utils.Dictionary_Package; use Latin_Utils.Dictionary_Package;
with Latin_Utils.General;
procedure Makedict_Main (Porting : Boolean) is
package Integer_IO is new Ada.Text_IO.Integer_IO (Integer);
use Ada.Text_IO;
use Stem_Key_Type_IO;
use Dictionary_Entry_IO;
use Part_Entry_IO;
use Age_Type_IO;
use Area_Type_IO;
use Geo_Type_IO;
use Frequency_Type_IO;
use Source_Type_IO;
use Dict_IO;
Be_Ve : constant Verb_Entry := (Con => (5, 1), Kind => To_Be);
D_K : Dictionary_Kind := Xxx; -- ######################
Start_Stem_1 : constant := 1;
Start_Stem_2 : constant := Start_Stem_1 + Max_Stem_Size + 1;
Start_Stem_3 : constant := Start_Stem_2 + Max_Stem_Size + 1;
Start_Stem_4 : constant := Start_Stem_3 + Max_Stem_Size + 1;
Start_Part : constant := Start_Stem_4 + Max_Stem_Size + 1;
Dictfile : Dict_IO.File_Type;
Input, Stemlist : Ada.Text_IO.File_Type;
De : Dictionary_Entry;
Blank_Line : constant String (1 .. 400) := (others => ' ');
S, Line : String (1 .. 400) := (others => ' ');
L, Last : Integer := 0;
J : Dict_IO.Count := 0;
Mean_To_Be : constant Meaning_Type :=
Head ("be; exist; (also used to form verb perfect passive tenses)" &
" with NOM PERF PPL", Max_Meaning_Size);
begin
Put_Line
("Takes a DICTLINE.D_K and produces a STEMLIST.D_K and DICTFILE.D_K");
Put_Line ("This version inserts ESSE when D_K = GEN");
Latin_Utils.General.Load_Dictionary (Line, Last, D_K);
Open (Input, In_File,
Latin_Utils.Config.Path (Dict_Line_Name & '.' & Ext (D_K)));
if not Porting then
Create (Stemlist, Out_File, Stem_List_Name & '.' & Ext (D_K));
end if;
Create (Dictfile, Out_File, Dict_File_Name & '.' & Ext (D_K));
Over_Lines :
while not End_Of_File (Input) loop
S := Blank_Line;
Get_Line (Input, S, Last);
if Trim (S (1 .. Last)) /= "" then
L := 0;
Form_De :
begin
De.Stems (1) := S (Start_Stem_1 .. Max_Stem_Size);
De.Stems (2) := S (Start_Stem_2 .. Start_Stem_2 +
Max_Stem_Size - 1);
De.Stems (3) := S (Start_Stem_3 .. Start_Stem_3 +
Max_Stem_Size - 1);
De.Stems (4) := S (Start_Stem_4 .. Start_Stem_4 +
Max_Stem_Size - 1);
Get (S (Start_Part .. Last), De.Part, L);
-- FIXME: Why not Translation_Record_IO.Get ?
Get (S (L + 1 .. Last), De.Tran.Age, L);
Get (S (L + 1 .. Last), De.Tran.Area, L);
Get (S (L + 1 .. Last), De.Tran.Geo, L);
Get (S (L + 1 .. Last), De.Tran.Freq, L);
Get (S (L + 1 .. Last), De.Tran.Source, L);
De.Mean := Head (S (L + 2 .. Last), Max_Meaning_Size);
-- Note that this allows initial blanks
-- L+2 skips over the SPACER, required because this is
-- STRING, not ENUM
exception
when others =>
New_Line;
Put_Line ("Exception");
Put_Line (S (1 .. Last));
Integer_IO.Put (Integer (J)); New_Line;
Put (De); New_Line;
end Form_De;
J := J + 1;
Write (Dictfile, De, J);
if not Porting then
if De.Part.Pofs = N and then
De.Stems (1) = De.Stems (2) and then
De.Stems (1) /= ZZZ_Stem
then
Put (Stemlist, De.Stems (1)); Put (Stemlist, ' ');
Put (Stemlist, De.Part); Put (Stemlist, ' ');
Set_Col (Stemlist, 45);
Integer_IO.Put (Stemlist, 0, 2); Put (Stemlist, ' ');
Set_Col (Stemlist, 50);
Integer_IO.Put (Stemlist, Integer (J), 6); New_Line (Stemlist);
elsif De.Part.Pofs = Adj and then
De.Stems (1) = De.Stems (2) and then
De.Stems (1) /= ZZZ_Stem
then
Put (Stemlist, De.Stems (1)); Put (Stemlist, ' ');
Put (Stemlist, De.Part); Put (Stemlist, ' ');
Set_Col (Stemlist, 45);
Integer_IO.Put (Stemlist, 0, 2); Put (Stemlist, ' ');
Set_Col (Stemlist, 50);
Integer_IO.Put (Stemlist, Integer (J), 6); New_Line (Stemlist);
if De.Stems (3) /= Null_Stem_Type
and De.Stems (3) /= ZZZ_Stem
then
Put (Stemlist, De.Stems (3)); Put (Stemlist, ' ');
Put (Stemlist, De.Part); Put (Stemlist, ' ');
Set_Col (Stemlist, 45);
Integer_IO.Put (Stemlist, 3, 2); Put (Stemlist, ' ');
Set_Col (Stemlist, 50);
Integer_IO.Put (Stemlist, Integer (J), 6);
New_Line (Stemlist);
end if;
if De.Stems (4) /= Null_Stem_Type
and De.Stems (4) /= ZZZ_Stem
then
Put (Stemlist, De.Stems (4)); Put (Stemlist, ' ');
Put (Stemlist, De.Part); Put (Stemlist, ' ');
Set_Col (Stemlist, 45);
Integer_IO.Put (Stemlist, 4, 2); Put (Stemlist, ' ');
Set_Col (Stemlist, 50);
Integer_IO.Put (Stemlist, Integer (J), 6);
New_Line (Stemlist);
end if;
elsif De.Part.Pofs = Adj and then
-- POS taken care of by position
De.Part.Adj.Co = Comp
then
Put (Stemlist, De.Stems (1)); Put (Stemlist, ' ');
Put (Stemlist, De.Part); Put (Stemlist, ' ');
Set_Col (Stemlist, 45);
Integer_IO.Put (Stemlist, 3, 2); Put (Stemlist, ' ');
Set_Col (Stemlist, 50);
Integer_IO.Put (Stemlist, Integer (J), 6); New_Line (Stemlist);
elsif De.Part.Pofs = Adj and then
De.Part.Adj.Co = Super
then
Put (Stemlist, De.Stems (1)); Put (Stemlist, ' ');
Put (Stemlist, De.Part); Put (Stemlist, ' ');
Set_Col (Stemlist, 45);
Integer_IO.Put (Stemlist, 4, 2); Put (Stemlist, ' ');
Set_Col (Stemlist, 50);
Integer_IO.Put (Stemlist, Integer (J), 6); New_Line (Stemlist);
elsif De.Part.Pofs = Adv and then
-- POS taken care of by position
De.Part.Adv.Co = Comp
then
Put (Stemlist, De.Stems (1)); Put (Stemlist, ' ');
Put (Stemlist, De.Part); Put (Stemlist, ' ');
Set_Col (Stemlist, 45);
Integer_IO.Put (Stemlist, 2, 2); Put (Stemlist, ' ');
Set_Col (Stemlist, 50);
Integer_IO.Put (Stemlist, Integer (J), 6); New_Line (Stemlist);
elsif De.Part.Pofs = Adv and then
De.Part.Adv.Co = Super
then
Put (Stemlist, De.Stems (1)); Put (Stemlist, ' ');
Put (Stemlist, De.Part); Put (Stemlist, ' ');
Set_Col (Stemlist, 45);
Integer_IO.Put (Stemlist, 3, 2); Put (Stemlist, ' ');
Set_Col (Stemlist, 50);
Integer_IO.Put (Stemlist, Integer (J), 6); New_Line (Stemlist);
elsif De.Part.Pofs = V and then
De.Stems (1) = De.Stems (2) and then
De.Stems (1) /= ZZZ_Stem
then
Put (Stemlist, De.Stems (1)); Put (Stemlist, ' ');
Put (Stemlist, De.Part); Put (Stemlist, ' ');
Set_Col (Stemlist, 45);
Integer_IO.Put (Stemlist, 0, 2); Put (Stemlist, ' ');
Set_Col (Stemlist, 50);
Integer_IO.Put (Stemlist, Integer (J), 6); New_Line (Stemlist);
if De.Stems (3) /= Null_Stem_Type
and De.Stems (3) /= ZZZ_Stem
then
Put (Stemlist, De.Stems (3)); Put (Stemlist, ' ');
Put (Stemlist, De.Part); Put (Stemlist, ' ');
Set_Col (Stemlist, 45);
Integer_IO.Put (Stemlist, 3, 2); Put (Stemlist, ' ');
Set_Col (Stemlist, 50);
Integer_IO.Put (Stemlist, Integer (J), 6);
New_Line (Stemlist);
end if;
if De.Stems (4) /= Null_Stem_Type
and De.Stems (4) /= ZZZ_Stem
then
Put (Stemlist, De.Stems (4)); Put (Stemlist, ' ');
Put (Stemlist, De.Part); Put (Stemlist, ' ');
Set_Col (Stemlist, 45);
Integer_IO.Put (Stemlist, 4, 2); Put (Stemlist, ' ');
Set_Col (Stemlist, 50);
Integer_IO.Put (Stemlist, Integer (J), 6);
New_Line (Stemlist);
end if;
elsif De.Part.Pofs = Num and then
De.Part.Num.Sort = Card
then
Put (Stemlist, De.Stems (1)); Put (Stemlist, ' ');
Put (Stemlist, De.Part); Put (Stemlist, ' ');
Set_Col (Stemlist, 45);
Integer_IO.Put (Stemlist, 1, 2); Put (Stemlist, ' ');
Set_Col (Stemlist, 50);
Integer_IO.Put (Stemlist, Integer (J), 6); New_Line (Stemlist);
elsif De.Part.Pofs = Num and then
De.Part.Num.Sort = Ord
then
Put (Stemlist, De.Stems (1)); Put (Stemlist, ' ');
Put (Stemlist, De.Part); Put (Stemlist, ' ');
Set_Col (Stemlist, 45);
Integer_IO.Put (Stemlist, 2, 2); Put (Stemlist, ' ');
Set_Col (Stemlist, 50);
Integer_IO.Put (Stemlist, Integer (J), 6); New_Line (Stemlist);
elsif De.Part.Pofs = Num and then
De.Part.Num.Sort = Dist
then
Put (Stemlist, De.Stems (1)); Put (Stemlist, ' ');
Put (Stemlist, De.Part); Put (Stemlist, ' ');
Set_Col (Stemlist, 45);
Integer_IO.Put (Stemlist, 3, 2); Put (Stemlist, ' ');
Set_Col (Stemlist, 50);
Integer_IO.Put (Stemlist, Integer (J), 6); New_Line (Stemlist);
elsif De.Part.Pofs = Num and then
De.Part.Num.Sort = Adverb
then
Put (Stemlist, De.Stems (1)); Put (Stemlist, ' ');
Put (Stemlist, De.Part); Put (Stemlist, ' ');
Set_Col (Stemlist, 45);
Integer_IO.Put (Stemlist, 4, 2); Put (Stemlist, ' ');
Set_Col (Stemlist, 50);
Integer_IO.Put (Stemlist, Integer (J), 6); New_Line (Stemlist);
else
for I in Stem_Key_Type range 1 .. 4 loop
if De.Stems (I) /= ZZZ_Stem and
De.Stems (I) /= Null_Stem_Type
then
Put (Stemlist, De.Stems (I)); Put (Stemlist, ' ');
Put (Stemlist, De.Part); Put (Stemlist, ' ');
Set_Col (Stemlist, 45);
Put (Stemlist, I, 2); Put (Stemlist, ' ');
Set_Col (Stemlist, 50);
Integer_IO.Put (Stemlist, Integer (J), 6);
New_Line (Stemlist);
end if;
end loop;
end if;
end if; -- PORTING
end if;
end loop Over_Lines;
if D_K = General then
J := J + 1;
-- First construct ESSE
De.Stems (1) := "s ";
De.Stems (2) := " ";
De.Stems (3) := "fu ";
De.Stems (4) := "fut ";
--DE.PART := (PART => V, CON => (5, 10));
--DE.PART := (V, ((5, 1)));
De.Part := (V, Be_Ve);
--DE.KIND := (V, TO_BE);
De.Tran := (X, X, X, A, X);
De.Mean := Mean_To_Be;
if not Porting then
-- Load ESSE
for I in Stem_Key_Type range 1 .. 4 loop
Put (Stemlist, De.Stems (I)); Put (Stemlist, ' ');
Put (Stemlist, De.Part); Put (Stemlist, ' ');
Set_Col (Stemlist, 45);
Put (Stemlist, I, 2); Put (Stemlist, ' ');
Set_Col (Stemlist, 50);
Integer_IO.Put (Stemlist, Integer (J), 6); New_Line (Stemlist);
end loop;
end if;
Write (Dictfile, De, J);
end if;
if not Porting then
Close (Stemlist);
end if;
exception
when Ada.Text_IO.Data_Error =>
null;
when others =>
Put_Line (S (1 .. Last));
Integer_IO.Put (Integer (J)); New_Line;
Close (Stemlist);
end Makedict_Main;
|
arch/ARM/STM32/driversL0/stm32-exti.ads | morbos/Ada_Drivers_Library | 2 | 24215 | ------------------------------------------------------------------------------
-- --
-- Copyright (C) 2015, AdaCore --
-- --
-- Redistribution and use in source and binary forms, with or without --
-- modification, are permitted provided that the following conditions are --
-- met: --
-- 1. Redistributions of source code must retain the above copyright --
-- notice, this list of conditions and the following disclaimer. --
-- 2. Redistributions in binary form must reproduce the above copyright --
-- notice, this list of conditions and the following disclaimer in --
-- the documentation and/or other materials provided with the --
-- distribution. --
-- 3. Neither the name of STMicroelectronics nor the names of its --
-- contributors may be used to endorse or promote products derived --
-- from this software without specific prior written permission. --
-- --
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS --
-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT --
-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR --
-- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT --
-- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, --
-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT --
-- LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, --
-- DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY --
-- THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT --
-- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE --
-- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --
-- --
-- --
-- This file is based on: --
-- --
-- @file stm32f407xx.h et al. --
-- @author MCD Application Team --
-- @version V1.1.0 --
-- @date 19-June-2014 --
-- @brief CMSIS STM32F407xx Device Peripheral Access Layer Header File. --
-- --
-- COPYRIGHT(c) 2014 STMicroelectronics --
------------------------------------------------------------------------------
-- This file provides register definitions for the STM32 (ARM Cortex M4/7F)
-- microcontrollers from ST Microelectronics.
package STM32.EXTI is
type External_Line_Number is
(EXTI_Line_0,
EXTI_Line_1,
EXTI_Line_2,
EXTI_Line_3,
EXTI_Line_4,
EXTI_Line_5,
EXTI_Line_6,
EXTI_Line_7,
EXTI_Line_8,
EXTI_Line_9,
EXTI_Line_10,
EXTI_Line_11,
EXTI_Line_12,
EXTI_Line_13,
EXTI_Line_14,
EXTI_Line_15,
EXTI_Line_16,
EXTI_Line_17,
EXTI_Line_18,
EXTI_Line_19,
EXTI_Line_20,
EXTI_Line_21,
EXTI_Line_22);
type External_Triggers is
(Interrupt_Rising_Edge,
Interrupt_Falling_Edge,
Interrupt_Rising_Falling_Edge,
Event_Rising_Edge,
Event_Falling_Edge,
Event_Rising_Falling_Edge);
subtype Interrupt_Triggers is External_Triggers
range Interrupt_Rising_Edge .. Interrupt_Rising_Falling_Edge;
subtype Event_Triggers is External_Triggers
range Event_Rising_Edge .. Event_Rising_Falling_Edge;
procedure Enable_External_Interrupt
(Line : External_Line_Number;
Trigger : Interrupt_Triggers)
with Inline;
procedure Disable_External_Interrupt (Line : External_Line_Number)
with Inline;
procedure Enable_External_Event
(Line : External_Line_Number;
Trigger : Event_Triggers)
with Inline;
procedure Disable_External_Event (Line : External_Line_Number)
with Inline;
procedure Generate_SWI (Line : External_Line_Number)
with Inline;
function External_Interrupt_Pending (Line : External_Line_Number)
return Boolean
with Inline;
procedure Clear_External_Interrupt (Line : External_Line_Number)
with Inline;
end STM32.EXTI;
|
Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2.log_45_472.asm | ljhsiun2/medusa | 9 | 24761 | <filename>Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2.log_45_472.asm
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r14
push %r8
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x8308, %r11
nop
nop
nop
nop
nop
and $2515, %rsi
mov (%r11), %r8w
nop
nop
nop
sub $7121, %r14
lea addresses_WC_ht+0x19708, %rsi
lea addresses_WT_ht+0x5c94, %rdi
nop
nop
nop
nop
cmp %rbp, %rbp
mov $80, %rcx
rep movsw
nop
and %rsi, %rsi
lea addresses_A_ht+0x16508, %rsi
lea addresses_WT_ht+0xe068, %rdi
clflush (%rdi)
nop
nop
nop
inc %r10
mov $67, %rcx
rep movsw
nop
xor $28594, %r14
lea addresses_UC_ht+0x1bd08, %rsi
lea addresses_A_ht+0x19f08, %rdi
nop
mfence
mov $35, %rcx
rep movsq
nop
nop
add $25036, %r14
lea addresses_normal_ht+0x14f08, %r8
nop
nop
nop
add %rsi, %rsi
movb $0x61, (%r8)
nop
nop
nop
nop
nop
xor $30690, %rcx
lea addresses_UC_ht+0x8608, %r14
nop
add %r11, %r11
mov (%r14), %r10d
nop
nop
cmp $13179, %rsi
lea addresses_D_ht+0x17708, %rsi
lea addresses_UC_ht+0x13f02, %rdi
clflush (%rsi)
nop
dec %r11
mov $25, %rcx
rep movsw
nop
nop
nop
sub %r14, %r14
pop %rsi
pop %rdi
pop %rcx
pop %rbp
pop %r8
pop %r14
pop %r11
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r12
push %r14
push %r9
push %rcx
push %rsi
// Faulty Load
lea addresses_D+0xc708, %r14
nop
lfence
mov (%r14), %r9w
lea oracles, %r14
and $0xff, %r9
shlq $12, %r9
mov (%r14,%r9,1), %r9
pop %rsi
pop %rcx
pop %r9
pop %r14
pop %r12
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_D', 'size': 32, 'AVXalign': True, 'NT': False, 'congruent': 0, 'same': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_D', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}}
<gen_prepare_buffer>
{'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 10, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 11, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 1, 'same': True}}
{'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 9, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 5, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 9, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 10, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 11, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 8, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 11, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 1, 'same': False}}
{'36': 45}
36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36
*/
|
Transynther/x86/_processed/NONE/_zr_/i7-8650U_0xd2.log_21829_555.asm | ljhsiun2/medusa | 9 | 22768 | <reponame>ljhsiun2/medusa<gh_stars>1-10
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r12
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_A_ht+0x1d3d2, %r12
xor %rcx, %rcx
movw $0x6162, (%r12)
nop
nop
nop
nop
nop
xor $53636, %rdi
lea addresses_UC_ht+0x1b5b2, %rsi
lea addresses_WT_ht+0x1c9d1, %rdi
nop
nop
and %rdx, %rdx
mov $38, %rcx
rep movsb
nop
nop
nop
sub %rsi, %rsi
lea addresses_WT_ht+0xfdd2, %rsi
lea addresses_WT_ht+0x172d2, %rdi
nop
nop
xor %r10, %r10
mov $82, %rcx
rep movsq
sub $28606, %rsi
lea addresses_UC_ht+0x7312, %r10
nop
nop
nop
nop
xor %rdx, %rdx
mov $0x6162636465666768, %rdi
movq %rdi, %xmm1
movups %xmm1, (%r10)
nop
inc %rsi
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %r12
pop %r11
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r12
push %r13
push %r15
push %r8
push %rbp
push %rsi
// Store
lea addresses_normal+0x55d2, %rsi
nop
nop
nop
lfence
mov $0x5152535455565758, %r8
movq %r8, %xmm0
vmovups %ymm0, (%rsi)
nop
nop
nop
xor %r12, %r12
// Faulty Load
lea addresses_normal+0x55d2, %rsi
nop
cmp %r15, %r15
vmovups (%rsi), %ymm4
vextracti128 $1, %ymm4, %xmm4
vpextrq $0, %xmm4, %r13
lea oracles, %r8
and $0xff, %r13
shlq $12, %r13
mov (%r8,%r13,1), %r13
pop %rsi
pop %rbp
pop %r8
pop %r15
pop %r13
pop %r12
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_normal', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_normal', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_normal', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}}
<gen_prepare_buffer>
{'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 9, 'same': True}}
{'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 5, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 0, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 10, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 6, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 4, 'same': False}}
{'00': 21829}
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
*/
|
programs/oeis/081/A081352.asm | neoneye/loda | 22 | 8362 | ; A081352: Main diagonal of square maze arrangement of natural numbers A081349.
; 1,7,11,21,29,43,55,73,89,111,131,157,181,211,239,273,305,343,379,421,461,507,551,601,649,703,755,813,869,931,991,1057,1121,1191,1259,1333,1405,1483,1559,1641,1721,1807,1891,1981,2069,2163,2255,2353,2449,2551,2651,2757,2861,2971,3079,3193,3305,3423,3539,3661,3781,3907,4031,4161,4289,4423,4555,4693,4829,4971,5111,5257,5401,5551,5699,5853,6005,6163,6319,6481,6641,6807,6971,7141,7309,7483,7655,7833,8009,8191,8371,8557,8741,8931,9119,9313,9505,9703,9899,10101
mov $1,$0
add $0,2
bin $0,2
mod $1,2
add $0,$1
mul $0,2
sub $0,1
|
src/base/properties/util-properties-bundles.ads | RREE/ada-util | 60 | 8717 | <filename>src/base/properties/util-properties-bundles.ads
-----------------------------------------------------------------------
-- util-properties-bundles -- Generic name/value property management
-- Copyright (C) 2001, 2002, 2003, 2006, 2008, 2009, 2010, 2011, 2012, 2018 <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.Containers;
with Ada.Finalization;
with Ada.Containers.Hashed_Maps;
with Util.Strings;
with Util.Concurrent.Locks;
-- == Property bundles ==
-- Property bundles represent several property files that share some overriding rules and
-- capabilities. Their introduction comes from Java resource bundles which allow to
-- localize easily some configuration files or some message. When loading a property bundle
-- a locale is defined to specify the target language and locale. If a specific property
-- file for that locale exists, it is used first. Otherwise, the property bundle will use
-- the default property file.
--
-- A rule exists on the name of the specific property locale file: it must start with the
-- bundle name followed by `_` and the name of the locale. The default property file must
-- be the bundle name. For example, the bundle `dates` is associated with the following
-- property files:
--
-- dates.properties Default values (English locale)
-- dates_fr.properties French locale
-- dates_de.properties German locale
-- dates_es.properties Spain locale
--
-- Because a bundle can be associated with one or several property files, a specific loader is
-- used. The loader instance must be declared and configured to indicate one or several search
-- directories that contain property files.
--
-- with Util.Properties.Bundles;
-- ...
-- Loader : Util.Properties.Bundles.Loader;
-- Bundle : Util.Properties.Bundles.Manager;
-- ...
-- Util.Properties.Bundles.Initialize (Loader,
-- "bundles;/usr/share/bundles");
-- Util.Properties.Bundles.Load_Bundle (Loader, "dates", "fr", Bundle);
-- Ada.Text_IO.Put_Line (Bundle.Get ("util.month1.long");
--
-- In this example, the `util.month1.long` key is first searched in the `dates_fr` French locale
-- and if it is not found it is searched in the default locale.
--
-- The restriction when using bundles is that they don't allow changing any value and the
-- `NOT_WRITEABLE` exception is raised when one of the `Set` operation is used.
--
-- When a bundle cannot be loaded, the `NO_BUNDLE` exception is raised by the `Load_Bundle`
-- operation.
package Util.Properties.Bundles is
NO_BUNDLE : exception;
NOT_WRITEABLE : exception;
type Manager is new Util.Properties.Manager with private;
-- ------------------------------
-- Bundle loader
-- ------------------------------
-- The <b>Loader</b> provides facilities for loading property bundles
-- and maintains a cache of bundles. The cache is thread-safe but the returned
-- bundles are not thread-safe.
type Loader is limited private;
type Loader_Access is access all Loader;
-- Initialize the bundle factory and specify where the property files are stored.
procedure Initialize (Factory : in out Loader;
Path : in String);
-- Load the bundle with the given name and for the given locale name.
procedure Load_Bundle (Factory : in out Loader;
Name : in String;
Locale : in String;
Bundle : out Manager'Class);
private
procedure Add_Bundle (Self : in out Manager; Props : in Manager_Access);
-- Add a bundle
type Bundle_Manager_Access is access all Manager'Class;
type Manager is new Util.Properties.Manager with null record;
overriding
procedure Initialize (Object : in out Manager);
overriding
procedure Adjust (Object : in out Manager);
package Bundle_Map is
new Ada.Containers.Hashed_Maps
(Element_Type => Bundle_Manager_Access,
Key_Type => Util.Strings.Name_Access,
Hash => Util.Strings.Hash,
Equivalent_Keys => Util.Strings.Equivalent_Keys);
type Loader is new Ada.Finalization.Limited_Controlled with record
Lock : Util.Concurrent.Locks.RW_Lock;
Bundles : Bundle_Map.Map;
Path : Unbounded_String;
end record;
-- Finalize the bundle loader and clear the cache
overriding
procedure Finalize (Factory : in out Loader);
-- Clear the cache bundle
procedure Clear_Cache (Factory : in out Loader);
-- Find the bundle with the given name and for the given locale name.
procedure Find_Bundle (Factory : in out Loader;
Name : in String;
Locale : in String;
Bundle : out Manager'Class;
Found : out Boolean);
-- Load the bundle with the given name and for the given locale name.
procedure Load_Bundle (Factory : in out Loader;
Name : in String;
Found : out Boolean);
end Util.Properties.Bundles;
|
de.fhdo.lemma.intermediate.transformations/transformation/IntermediateOperationModelTransformation.asm | frademacher/thesis-lemma-code | 18 | 28805 | <gh_stars>10-100
<?xml version = '1.0' encoding = 'ISO-8859-1' ?>
<asm version="1.0" name="0">
<cp>
<constant value="IntermediateOperationModelTransformation"/>
<constant value="links"/>
<constant value="NTransientLinkSet;"/>
<constant value="col"/>
<constant value="J"/>
<constant value="main"/>
<constant value="A"/>
<constant value="OclParametrizedType"/>
<constant value="#native"/>
<constant value="Collection"/>
<constant value="J.setName(S):V"/>
<constant value="OclSimpleType"/>
<constant value="OclAny"/>
<constant value="J.setElementType(J):V"/>
<constant value="TransientLinkSet"/>
<constant value="A.__matcher__():V"/>
<constant value="A.__exec__():V"/>
<constant value="self"/>
<constant value="__resolve__"/>
<constant value="1"/>
<constant value="J.oclIsKindOf(J):B"/>
<constant value="18"/>
<constant value="NTransientLinkSet;.getLinkBySourceElement(S):QNTransientLink;"/>
<constant value="J.oclIsUndefined():B"/>
<constant value="15"/>
<constant value="NTransientLink;.getTargetFromSource(J):J"/>
<constant value="17"/>
<constant value="30"/>
<constant value="Sequence"/>
<constant value="2"/>
<constant value="A.__resolve__(J):J"/>
<constant value="QJ.including(J):QJ"/>
<constant value="QJ.flatten():QJ"/>
<constant value="e"/>
<constant value="value"/>
<constant value="resolveTemp"/>
<constant value="S"/>
<constant value="NTransientLink;.getNamedTargetFromSource(JS):J"/>
<constant value="name"/>
<constant value="__matcher__"/>
<constant value="A.__matchIntermediateOperationModel():V"/>
<constant value="__exec__"/>
<constant value="IntermediateOperationModel"/>
<constant value="NTransientLinkSet;.getLinksByRule(S):QNTransientLink;"/>
<constant value="A.__applyIntermediateOperationModel(NTransientLink;):V"/>
<constant value="__matchIntermediateOperationModel"/>
<constant value="OperationModel"/>
<constant value="Operation"/>
<constant value="IN"/>
<constant value="MMOF!Classifier;.allInstancesFrom(S):QJ"/>
<constant value="TransientLink"/>
<constant value="NTransientLink;.setRule(MATL!Rule;):V"/>
<constant value="operationModel"/>
<constant value="NTransientLink;.addSourceElement(SJ):V"/>
<constant value="intermediateOperationModel"/>
<constant value="Intermediate"/>
<constant value="NTransientLink;.addTargetElement(SJ):V"/>
<constant value="NTransientLinkSet;.addLink2(NTransientLink;B):V"/>
<constant value="15:9-17:10"/>
<constant value="__applyIntermediateOperationModel"/>
<constant value="NTransientLink;"/>
<constant value="NTransientLink;.getSourceElement(S):J"/>
<constant value="NTransientLink;.getTargetElement(S):J"/>
<constant value="3"/>
<constant value="J.allInstances():J"/>
<constant value="J.first():J"/>
<constant value="t_modelUri"/>
<constant value="sourceModelUri"/>
<constant value="imports"/>
<constant value="4"/>
<constant value="J.IntermediateImport(J):J"/>
<constant value="containers"/>
<constant value="J.IntermediateContainer(JJ):J"/>
<constant value="infrastructureNodes"/>
<constant value="J.IntermediateInfrastructureNodeAttributes(JJ):J"/>
<constant value="J.IntermediateInfrastructureNodeReferences(J):J"/>
<constant value="J.IntermediateInfrastructureNodeDependencies(J):J"/>
<constant value="16:31-16:55"/>
<constant value="16:31-16:70"/>
<constant value="16:31-16:78"/>
<constant value="16:31-16:89"/>
<constant value="16:13-16:89"/>
<constant value="20:24-20:38"/>
<constant value="20:24-20:46"/>
<constant value="21:13-21:39"/>
<constant value="21:51-21:61"/>
<constant value="21:81-21:87"/>
<constant value="21:51-21:88"/>
<constant value="21:13-21:89"/>
<constant value="20:9-22:10"/>
<constant value="26:27-26:41"/>
<constant value="26:27-26:52"/>
<constant value="27:13-27:39"/>
<constant value="27:54-27:64"/>
<constant value="28:17-28:26"/>
<constant value="28:28-28:54"/>
<constant value="27:54-28:55"/>
<constant value="27:13-28:56"/>
<constant value="26:9-29:10"/>
<constant value="36:36-36:50"/>
<constant value="36:36-36:70"/>
<constant value="37:13-37:39"/>
<constant value="38:17-38:27"/>
<constant value="38:69-38:87"/>
<constant value="39:21-39:47"/>
<constant value="38:17-39:48"/>
<constant value="37:13-39:49"/>
<constant value="36:9-40:10"/>
<constant value="42:36-42:50"/>
<constant value="42:36-42:70"/>
<constant value="43:13-43:23"/>
<constant value="43:65-43:83"/>
<constant value="43:13-43:85"/>
<constant value="42:9-44:10"/>
<constant value="47:36-47:50"/>
<constant value="47:36-47:70"/>
<constant value="48:13-48:23"/>
<constant value="48:67-48:85"/>
<constant value="48:13-48:87"/>
<constant value="47:9-49:10"/>
<constant value="51:9-51:35"/>
<constant value="51:9-51:36"/>
<constant value="18:5-52:6"/>
<constant value="import"/>
<constant value="container"/>
<constant value="infrastructureNode"/>
<constant value="link"/>
<constant value="IntermediateImport"/>
<constant value="importURI"/>
<constant value="importUri"/>
<constant value="J.getImportTypeName(J):J"/>
<constant value="importTypeName"/>
<constant value="59:21-59:27"/>
<constant value="59:21-59:32"/>
<constant value="59:13-59:32"/>
<constant value="60:26-60:32"/>
<constant value="60:26-60:42"/>
<constant value="60:13-60:42"/>
<constant value="64:31-64:41"/>
<constant value="64:60-64:66"/>
<constant value="64:31-64:67"/>
<constant value="64:13-64:67"/>
<constant value="67:9-67:27"/>
<constant value="67:9-67:28"/>
<constant value="66:5-68:6"/>
<constant value="intermediateImport"/>
<constant value="getImportTypeName"/>
<constant value="importType"/>
<constant value="J.toString():J"/>
<constant value="#"/>
<constant value="J.startsWith(J):J"/>
<constant value="10"/>
<constant value="J.size():J"/>
<constant value="J.substring(JJ):J"/>
<constant value="74:38-74:44"/>
<constant value="74:38-74:55"/>
<constant value="74:38-74:66"/>
<constant value="76:9-76:26"/>
<constant value="76:38-76:41"/>
<constant value="76:9-76:42"/>
<constant value="79:9-79:26"/>
<constant value="77:9-77:26"/>
<constant value="77:37-77:38"/>
<constant value="77:40-77:57"/>
<constant value="77:40-77:64"/>
<constant value="77:9-77:65"/>
<constant value="76:5-80:10"/>
<constant value="73:5-80:10"/>
<constant value="rawImportTypeName"/>
<constant value="IntermediateContainer"/>
<constant value="deploymentTechnology"/>
<constant value="operationEnvironment"/>
<constant value="J.IntermediateDeploymentTechnologyReference(JJ):J"/>
<constant value="technologyReference"/>
<constant value="J.IntermediateContainerReferencesAssignment(JJ):J"/>
<constant value="."/>
<constant value="J.buildQualifiedName(JJJ):J"/>
<constant value="qualifiedDeploymentTechnologyName"/>
<constant value="88:21-88:30"/>
<constant value="88:21-88:35"/>
<constant value="88:13-88:35"/>
<constant value="89:36-89:46"/>
<constant value="90:17-90:26"/>
<constant value="90:17-90:47"/>
<constant value="90:49-90:58"/>
<constant value="90:49-90:79"/>
<constant value="89:36-90:80"/>
<constant value="89:13-90:80"/>
<constant value="91:31-91:36"/>
<constant value="91:13-91:36"/>
<constant value="94:8-94:18"/>
<constant value="94:61-94:82"/>
<constant value="94:84-94:93"/>
<constant value="94:8-94:95"/>
<constant value="95:8-95:29"/>
<constant value="96:12-96:21"/>
<constant value="96:12-96:42"/>
<constant value="96:12-96:63"/>
<constant value="96:83-96:86"/>
<constant value="96:88-96:92"/>
<constant value="96:94-96:99"/>
<constant value="96:12-96:100"/>
<constant value="95:8-96:101"/>
<constant value="97:8-97:29"/>
<constant value="97:8-97:30"/>
<constant value="93:5-98:6"/>
<constant value="intermediateContainer"/>
<constant value="model"/>
<constant value="IntermediateContainerReferencesAssignment"/>
<constant value="technology"/>
<constant value="environment"/>
<constant value="J.oclIsUndefined():J"/>
<constant value="J.not():J"/>
<constant value="8"/>
<constant value="14"/>
<constant value="technologies"/>
<constant value="J.=(J):J"/>
<constant value="J.and(J):J"/>
<constant value="B.not():B"/>
<constant value="43"/>
<constant value="CJ.including(J):CJ"/>
<constant value="CJ.asSequence():QJ"/>
<constant value="QJ.first():J"/>
<constant value="deployedServices"/>
<constant value="J.OperationMicroserviceReference(J):J"/>
<constant value="deploymentSpecifications"/>
<constant value="J.IntermediateServiceDeploymentSpecification(JJ):J"/>
<constant value="specifications"/>
<constant value="defaultBasicEndpoints"/>
<constant value="protocols"/>
<constant value="J.IntermediateOperationEndpoint(JJ):J"/>
<constant value="endpoints"/>
<constant value="defaultServicePropertyValues"/>
<constant value="J.IntermediateTechnologySpecificPropertyValue(JJ):J"/>
<constant value="defaultValues"/>
<constant value="aspects"/>
<constant value="J.IntermediateImportedAspect(JJ):J"/>
<constant value="dependsOnNodes"/>
<constant value="J.IntermediateOperationNodeReferenceForDependOnNodes(JJ):J"/>
<constant value="usedByNodes"/>
<constant value="J.IntermediateOperationNodeReferenceForUsedByNodes(JJ):J"/>
<constant value="105:17-105:26"/>
<constant value="105:17-105:46"/>
<constant value="105:17-105:57"/>
<constant value="105:17-105:69"/>
<constant value="105:17-105:86"/>
<constant value="105:13-105:86"/>
<constant value="106:15-106:24"/>
<constant value="107:19-107:28"/>
<constant value="107:19-107:48"/>
<constant value="107:19-107:59"/>
<constant value="107:19-107:71"/>
<constant value="106:15-107:72"/>
<constant value="105:9-107:72"/>
<constant value="111:24-111:39"/>
<constant value="111:24-111:52"/>
<constant value="112:13-112:22"/>
<constant value="112:34-112:65"/>
<constant value="112:34-112:80"/>
<constant value="113:27-113:28"/>
<constant value="113:27-113:33"/>
<constant value="113:36-113:42"/>
<constant value="113:36-113:47"/>
<constant value="113:27-113:47"/>
<constant value="113:52-113:53"/>
<constant value="113:52-113:63"/>
<constant value="113:66-113:72"/>
<constant value="113:66-113:82"/>
<constant value="113:52-113:82"/>
<constant value="113:27-113:82"/>
<constant value="112:34-113:83"/>
<constant value="112:13-113:84"/>
<constant value="111:9-114:10"/>
<constant value="117:33-117:48"/>
<constant value="117:33-117:65"/>
<constant value="118:12-118:21"/>
<constant value="118:42-118:52"/>
<constant value="118:84-118:99"/>
<constant value="118:42-118:100"/>
<constant value="118:12-118:101"/>
<constant value="117:9-119:10"/>
<constant value="122:41-122:56"/>
<constant value="122:41-122:81"/>
<constant value="123:13-123:22"/>
<constant value="123:41-123:51"/>
<constant value="124:17-124:26"/>
<constant value="124:28-124:51"/>
<constant value="123:41-124:52"/>
<constant value="123:13-124:53"/>
<constant value="122:9-125:10"/>
<constant value="128:38-128:53"/>
<constant value="128:38-128:75"/>
<constant value="129:30-129:50"/>
<constant value="129:30-129:60"/>
<constant value="130:17-130:26"/>
<constant value="130:40-130:50"/>
<constant value="131:21-131:41"/>
<constant value="131:43-131:51"/>
<constant value="130:40-131:52"/>
<constant value="130:17-131:53"/>
<constant value="129:13-132:14"/>
<constant value="128:9-133:10"/>
<constant value="136:30-136:45"/>
<constant value="136:30-136:74"/>
<constant value="137:13-137:22"/>
<constant value="137:40-137:50"/>
<constant value="138:17-138:29"/>
<constant value="138:31-138:43"/>
<constant value="137:40-138:44"/>
<constant value="137:13-138:45"/>
<constant value="136:9-139:10"/>
<constant value="142:24-142:39"/>
<constant value="142:24-142:47"/>
<constant value="143:13-143:22"/>
<constant value="143:34-143:44"/>
<constant value="143:72-143:81"/>
<constant value="143:83-143:89"/>
<constant value="143:34-143:90"/>
<constant value="143:13-143:91"/>
<constant value="142:9-144:10"/>
<constant value="147:38-147:53"/>
<constant value="147:38-147:68"/>
<constant value="148:13-148:22"/>
<constant value="149:17-149:27"/>
<constant value="149:79-149:99"/>
<constant value="150:21-150:30"/>
<constant value="149:17-150:31"/>
<constant value="148:13-150:32"/>
<constant value="147:9-151:10"/>
<constant value="154:38-154:53"/>
<constant value="154:38-154:65"/>
<constant value="155:13-155:22"/>
<constant value="156:17-156:27"/>
<constant value="156:77-156:97"/>
<constant value="157:21-157:30"/>
<constant value="156:17-157:31"/>
<constant value="155:13-157:32"/>
<constant value="154:9-158:10"/>
<constant value="103:5-159:6"/>
<constant value="i"/>
<constant value="deployedService"/>
<constant value="deploymentSpecification"/>
<constant value="protocol"/>
<constant value="defaultBasicEndpoint"/>
<constant value="defaultValue"/>
<constant value="aspect"/>
<constant value="possiblyImportedNode"/>
<constant value="sourceContainer"/>
<constant value="IntermediateDeploymentTechnologyReference"/>
<constant value="J.IntermediateDeploymentTechnology(JJ):J"/>
<constant value="20"/>
<constant value="25"/>
<constant value="J.IntermediateOperationEnvironment(JJ):J"/>
<constant value="29"/>
<constant value="40"/>
<constant value="operationEnvironments"/>
<constant value="67"/>
<constant value="169:31-169:41"/>
<constant value="170:21-170:46"/>
<constant value="170:21-170:67"/>
<constant value="171:21-171:30"/>
<constant value="169:31-172:18"/>
<constant value="169:17-172:18"/>
<constant value="176:16-176:33"/>
<constant value="176:16-176:50"/>
<constant value="176:12-176:50"/>
<constant value="177:13-177:23"/>
<constant value="177:57-177:74"/>
<constant value="177:76-177:85"/>
<constant value="177:76-177:96"/>
<constant value="177:13-177:98"/>
<constant value="176:9-177:98"/>
<constant value="179:13-179:30"/>
<constant value="179:13-179:47"/>
<constant value="180:25-180:50"/>
<constant value="180:25-180:71"/>
<constant value="180:25-180:93"/>
<constant value="181:17-181:27"/>
<constant value="181:61-181:64"/>
<constant value="181:66-181:75"/>
<constant value="181:66-181:86"/>
<constant value="181:17-181:88"/>
<constant value="180:13-182:14"/>
<constant value="179:9-183:10"/>
<constant value="185:9-185:18"/>
<constant value="185:29-185:60"/>
<constant value="185:29-185:75"/>
<constant value="186:17-186:18"/>
<constant value="186:17-186:23"/>
<constant value="186:26-186:51"/>
<constant value="186:26-186:58"/>
<constant value="186:26-186:63"/>
<constant value="186:17-186:63"/>
<constant value="187:21-187:22"/>
<constant value="187:21-187:32"/>
<constant value="187:35-187:60"/>
<constant value="187:35-187:67"/>
<constant value="187:35-187:77"/>
<constant value="187:21-187:77"/>
<constant value="186:17-187:77"/>
<constant value="185:29-187:78"/>
<constant value="185:9-187:79"/>
<constant value="188:9-188:18"/>
<constant value="188:9-188:19"/>
<constant value="174:5-189:6"/>
<constant value="env"/>
<constant value="reference"/>
<constant value="sourceTechnologyReference"/>
<constant value="sourceEnvironment"/>
<constant value="IntermediateDeploymentTechnology"/>
<constant value="serviceProperties"/>
<constant value="properties"/>
<constant value="J.IntermediateTechnologySpecificProperty(JJ):J"/>
<constant value="J.append(J):J"/>
<constant value="197:21-197:47"/>
<constant value="197:21-197:52"/>
<constant value="197:13-197:52"/>
<constant value="198:26-198:51"/>
<constant value="198:13-198:51"/>
<constant value="202:44-202:70"/>
<constant value="202:44-202:88"/>
<constant value="203:13-203:23"/>
<constant value="203:13-203:34"/>
<constant value="204:17-204:27"/>
<constant value="205:21-205:47"/>
<constant value="205:49-205:59"/>
<constant value="204:17-205:60"/>
<constant value="203:13-205:62"/>
<constant value="202:9-206:10"/>
<constant value="207:9-207:19"/>
<constant value="207:9-207:20"/>
<constant value="200:5-208:6"/>
<constant value="technologySpecificProperty"/>
<constant value="sourceDeploymentTechnology"/>
<constant value="targetTechnologyReference"/>
<constant value="IntermediateOperationEnvironment"/>
<constant value="environmentName"/>
<constant value="operationTechnology"/>
<constant value="default"/>
<constant value="216:32-216:49"/>
<constant value="216:32-216:65"/>
<constant value="216:13-216:65"/>
<constant value="217:36-217:46"/>
<constant value="217:13-217:46"/>
<constant value="218:24-218:41"/>
<constant value="218:24-218:49"/>
<constant value="218:13-218:49"/>
<constant value="IntermediateInfrastructureNodeAttributes"/>
<constant value="IntermediateInfrastructureNode"/>
<constant value="infrastructureTechnology"/>
<constant value="J.IntermediateInfrastructureTechnologyReference(JJ):J"/>
<constant value="27"/>
<constant value="5"/>
<constant value="59"/>
<constant value="qualifiedInfrastructureTechnologyName"/>
<constant value="227:21-227:25"/>
<constant value="227:21-227:30"/>
<constant value="227:13-227:30"/>
<constant value="228:26-228:36"/>
<constant value="229:17-229:21"/>
<constant value="229:17-229:46"/>
<constant value="229:48-229:52"/>
<constant value="229:48-229:73"/>
<constant value="228:26-229:74"/>
<constant value="228:13-229:74"/>
<constant value="232:17-232:22"/>
<constant value="232:17-232:39"/>
<constant value="232:13-232:39"/>
<constant value="233:13-233:31"/>
<constant value="233:50-233:55"/>
<constant value="233:13-233:56"/>
<constant value="232:9-233:56"/>
<constant value="235:28-235:32"/>
<constant value="235:28-235:45"/>
<constant value="236:13-236:31"/>
<constant value="236:43-236:74"/>
<constant value="236:43-236:89"/>
<constant value="237:27-237:28"/>
<constant value="237:27-237:33"/>
<constant value="237:36-237:46"/>
<constant value="237:36-237:51"/>
<constant value="237:27-237:51"/>
<constant value="237:56-237:57"/>
<constant value="237:56-237:67"/>
<constant value="237:70-237:80"/>
<constant value="237:70-237:90"/>
<constant value="237:56-237:90"/>
<constant value="237:27-237:90"/>
<constant value="236:43-237:91"/>
<constant value="236:13-237:92"/>
<constant value="235:9-238:10"/>
<constant value="239:9-239:27"/>
<constant value="240:13-240:17"/>
<constant value="240:13-240:42"/>
<constant value="240:13-240:67"/>
<constant value="240:87-240:90"/>
<constant value="240:92-240:96"/>
<constant value="241:17-241:22"/>
<constant value="240:13-241:23"/>
<constant value="239:9-241:24"/>
<constant value="242:9-242:27"/>
<constant value="242:9-242:28"/>
<constant value="231:5-243:6"/>
<constant value="node"/>
<constant value="IntermediateInfrastructureNodeReferences"/>
<constant value="J.IntermediateInfrastructureNodeReferencesAssignment(JJ):J"/>
<constant value="250:15-250:58"/>
<constant value="250:15-250:73"/>
<constant value="251:17-251:18"/>
<constant value="251:17-251:23"/>
<constant value="251:26-251:44"/>
<constant value="251:26-251:49"/>
<constant value="251:17-251:49"/>
<constant value="250:15-251:50"/>
<constant value="254:9-254:19"/>
<constant value="255:13-255:43"/>
<constant value="255:45-255:63"/>
<constant value="254:9-256:11"/>
<constant value="253:5-257:6"/>
<constant value="n"/>
<constant value="intermediateInfrastrucutreNode"/>
<constant value="IntermediateInfrastructureNodeReferencesAssignment"/>
<constant value="267:17-267:47"/>
<constant value="267:17-267:57"/>
<constant value="267:17-267:68"/>
<constant value="267:17-267:80"/>
<constant value="267:17-267:97"/>
<constant value="267:13-267:97"/>
<constant value="268:13-268:43"/>
<constant value="269:17-269:47"/>
<constant value="269:17-269:57"/>
<constant value="269:17-269:68"/>
<constant value="269:17-269:80"/>
<constant value="268:13-269:81"/>
<constant value="267:9-269:81"/>
<constant value="272:24-272:42"/>
<constant value="272:24-272:55"/>
<constant value="273:13-273:43"/>
<constant value="273:55-273:86"/>
<constant value="273:55-273:101"/>
<constant value="274:27-274:28"/>
<constant value="274:27-274:33"/>
<constant value="274:36-274:42"/>
<constant value="274:36-274:47"/>
<constant value="274:27-274:47"/>
<constant value="274:52-274:53"/>
<constant value="274:52-274:63"/>
<constant value="274:66-274:72"/>
<constant value="274:66-274:82"/>
<constant value="274:52-274:82"/>
<constant value="274:27-274:82"/>
<constant value="273:55-274:83"/>
<constant value="273:13-274:84"/>
<constant value="272:9-275:10"/>
<constant value="279:40-279:58"/>
<constant value="279:40-279:68"/>
<constant value="280:30-280:52"/>
<constant value="280:30-280:62"/>
<constant value="281:17-281:47"/>
<constant value="282:21-282:31"/>
<constant value="282:62-282:84"/>
<constant value="282:86-282:94"/>
<constant value="282:21-282:95"/>
<constant value="281:17-282:96"/>
<constant value="280:13-283:14"/>
<constant value="279:9-284:10"/>
<constant value="292:30-292:48"/>
<constant value="292:30-292:77"/>
<constant value="293:13-293:43"/>
<constant value="294:17-294:27"/>
<constant value="294:72-294:84"/>
<constant value="294:86-294:98"/>
<constant value="294:17-294:99"/>
<constant value="293:13-294:100"/>
<constant value="292:9-295:10"/>
<constant value="298:24-298:42"/>
<constant value="298:24-298:50"/>
<constant value="299:13-299:43"/>
<constant value="300:17-300:27"/>
<constant value="300:55-300:85"/>
<constant value="300:87-300:93"/>
<constant value="300:17-300:94"/>
<constant value="299:13-300:95"/>
<constant value="298:9-301:10"/>
<constant value="265:5-302:6"/>
<constant value="infrastructureEndpoint"/>
<constant value="intermediateInfrastructureNode"/>
<constant value="IntermediateInfrastructureNodeDependencies"/>
<constant value="308:15-308:58"/>
<constant value="308:15-308:73"/>
<constant value="309:17-309:18"/>
<constant value="309:17-309:23"/>
<constant value="309:26-309:44"/>
<constant value="309:26-309:49"/>
<constant value="309:17-309:49"/>
<constant value="308:15-310:14"/>
<constant value="314:22-314:40"/>
<constant value="314:22-314:55"/>
<constant value="315:13-315:43"/>
<constant value="316:20-316:30"/>
<constant value="316:82-316:86"/>
<constant value="317:21-317:51"/>
<constant value="316:20-317:52"/>
<constant value="315:13-317:53"/>
<constant value="314:9-318:10"/>
<constant value="321:22-321:40"/>
<constant value="321:22-321:52"/>
<constant value="322:13-322:43"/>
<constant value="323:20-323:30"/>
<constant value="323:80-323:84"/>
<constant value="324:21-324:51"/>
<constant value="323:20-324:52"/>
<constant value="322:13-324:53"/>
<constant value="321:9-325:10"/>
<constant value="328:33-328:51"/>
<constant value="328:33-328:68"/>
<constant value="329:13-329:43"/>
<constant value="330:17-330:27"/>
<constant value="330:59-330:74"/>
<constant value="330:17-330:75"/>
<constant value="329:13-330:76"/>
<constant value="328:9-331:10"/>
<constant value="312:5-332:6"/>
<constant value="infrastrucutreNode"/>
<constant value="IntermediateInfrastructureTechnologyReference"/>
<constant value="J.IntermediateInfrastructureTechnology(JJ):J"/>
<constant value="342:27-342:37"/>
<constant value="343:17-343:42"/>
<constant value="343:17-343:67"/>
<constant value="344:17-344:26"/>
<constant value="342:27-345:14"/>
<constant value="342:13-345:14"/>
<constant value="348:16-348:33"/>
<constant value="348:16-348:50"/>
<constant value="348:12-348:50"/>
<constant value="349:13-349:23"/>
<constant value="349:57-349:74"/>
<constant value="349:76-349:85"/>
<constant value="349:76-349:96"/>
<constant value="349:13-349:98"/>
<constant value="348:9-349:98"/>
<constant value="351:13-351:30"/>
<constant value="351:13-351:47"/>
<constant value="352:25-352:50"/>
<constant value="352:25-352:75"/>
<constant value="352:25-352:97"/>
<constant value="353:17-353:27"/>
<constant value="353:61-353:64"/>
<constant value="353:66-353:75"/>
<constant value="353:66-353:86"/>
<constant value="353:17-353:88"/>
<constant value="352:13-354:14"/>
<constant value="351:9-355:10"/>
<constant value="357:9-357:18"/>
<constant value="357:29-357:60"/>
<constant value="357:29-357:75"/>
<constant value="358:27-358:28"/>
<constant value="358:27-358:33"/>
<constant value="358:36-358:61"/>
<constant value="358:36-358:68"/>
<constant value="358:36-358:73"/>
<constant value="358:27-358:73"/>
<constant value="359:21-359:22"/>
<constant value="359:21-359:32"/>
<constant value="359:35-359:60"/>
<constant value="359:35-359:67"/>
<constant value="359:35-359:77"/>
<constant value="359:21-359:77"/>
<constant value="358:27-359:77"/>
<constant value="357:29-359:78"/>
<constant value="357:9-359:79"/>
<constant value="360:9-360:18"/>
<constant value="360:9-360:19"/>
<constant value="347:5-361:6"/>
<constant value="IntermediateInfrastructureTechnology"/>
<constant value="369:21-369:37"/>
<constant value="369:21-369:42"/>
<constant value="369:13-369:42"/>
<constant value="370:26-370:41"/>
<constant value="370:13-370:41"/>
<constant value="373:44-373:60"/>
<constant value="373:44-373:78"/>
<constant value="374:13-374:23"/>
<constant value="374:13-374:34"/>
<constant value="374:42-374:52"/>
<constant value="375:17-375:43"/>
<constant value="375:45-375:55"/>
<constant value="374:42-375:56"/>
<constant value="374:13-375:58"/>
<constant value="373:9-376:10"/>
<constant value="377:9-377:19"/>
<constant value="377:9-377:20"/>
<constant value="372:5-378:6"/>
<constant value="sourceTechnology"/>
<constant value="targetReference"/>
<constant value="IntermediateTechnologySpecificProperty"/>
<constant value="type"/>
<constant value="typeName"/>
<constant value="35"/>
<constant value="J.valueAsString():J"/>
<constant value="features"/>
<constant value="featureNames"/>
<constant value="388:21-388:53"/>
<constant value="388:21-388:58"/>
<constant value="388:13-388:58"/>
<constant value="389:21-389:53"/>
<constant value="389:21-389:58"/>
<constant value="389:21-389:67"/>
<constant value="389:13-389:67"/>
<constant value="390:36-390:56"/>
<constant value="390:13-390:56"/>
<constant value="395:17-395:49"/>
<constant value="395:17-395:62"/>
<constant value="395:17-395:79"/>
<constant value="395:13-395:79"/>
<constant value="396:13-396:21"/>
<constant value="396:38-396:70"/>
<constant value="396:38-396:83"/>
<constant value="396:38-396:99"/>
<constant value="396:13-396:100"/>
<constant value="395:9-396:100"/>
<constant value="399:25-399:57"/>
<constant value="399:25-399:66"/>
<constant value="400:13-400:21"/>
<constant value="400:38-400:45"/>
<constant value="400:38-400:56"/>
<constant value="400:13-400:57"/>
<constant value="399:9-401:10"/>
<constant value="402:9-402:17"/>
<constant value="402:9-402:18"/>
<constant value="393:5-403:6"/>
<constant value="feature"/>
<constant value="property"/>
<constant value="sourceTechnologySpecificProperty"/>
<constant value="IntermediateTechnologySpecificPropertyValue"/>
<constant value="33"/>
<constant value="413:22-413:42"/>
<constant value="413:22-413:48"/>
<constant value="413:22-413:64"/>
<constant value="413:13-413:64"/>
<constant value="414:43-414:94"/>
<constant value="414:43-415:32"/>
<constant value="415:42-415:43"/>
<constant value="415:42-415:48"/>
<constant value="415:51-415:71"/>
<constant value="415:51-415:80"/>
<constant value="415:51-415:85"/>
<constant value="415:42-415:85"/>
<constant value="414:43-415:86"/>
<constant value="414:13-415:86"/>
<constant value="418:9-418:14"/>
<constant value="418:9-418:15"/>
<constant value="417:5-419:6"/>
<constant value="p"/>
<constant value="servicePropertyValue"/>
<constant value="IntermediateServiceDeploymentSpecification"/>
<constant value="operationNode"/>
<constant value="OperationMicroserviceReference"/>
<constant value="service"/>
<constant value="microservice"/>
<constant value="operationMicroserviceReference"/>
<constant value="servicePropertyValues"/>
<constant value="propertyValues"/>
<constant value="basicEndpoints"/>
<constant value="429:30-429:45"/>
<constant value="429:13-429:45"/>
<constant value="430:47-430:90"/>
<constant value="430:47-431:28"/>
<constant value="432:21-432:22"/>
<constant value="432:21-432:27"/>
<constant value="432:30-432:59"/>
<constant value="432:30-432:67"/>
<constant value="432:30-432:80"/>
<constant value="432:30-432:85"/>
<constant value="432:21-432:85"/>
<constant value="433:25-433:26"/>
<constant value="433:25-433:31"/>
<constant value="433:34-433:63"/>
<constant value="433:34-433:71"/>
<constant value="433:34-433:84"/>
<constant value="433:34-433:89"/>
<constant value="433:25-433:89"/>
<constant value="432:21-433:89"/>
<constant value="430:47-433:90"/>
<constant value="430:13-433:90"/>
<constant value="437:38-437:67"/>
<constant value="437:38-437:89"/>
<constant value="438:13-438:21"/>
<constant value="439:17-439:27"/>
<constant value="439:72-439:80"/>
<constant value="440:21-440:41"/>
<constant value="439:17-440:42"/>
<constant value="438:13-440:43"/>
<constant value="437:9-441:10"/>
<constant value="444:31-444:60"/>
<constant value="444:31-444:75"/>
<constant value="445:30-445:43"/>
<constant value="445:30-445:53"/>
<constant value="446:17-446:25"/>
<constant value="446:39-446:49"/>
<constant value="446:80-446:93"/>
<constant value="447:21-447:29"/>
<constant value="446:39-447:30"/>
<constant value="446:17-447:31"/>
<constant value="445:13-448:14"/>
<constant value="444:9-449:10"/>
<constant value="450:9-450:17"/>
<constant value="450:9-450:18"/>
<constant value="435:5-451:6"/>
<constant value="basicEndpoint"/>
<constant value="targetContainer"/>
<constant value="sourceDeploymentSpecification"/>
<constant value="imported"/>
<constant value="microserviceType"/>
<constant value="effectivelyImplemented"/>
<constant value="53"/>
<constant value="version"/>
<constant value="J.buildQualifiedName(J):J"/>
<constant value="qualifiedName"/>
<constant value="effectiveVisibility"/>
<constant value="visibility"/>
<constant value="IntermediateOperationNode"/>
<constant value="102"/>
<constant value="458:25-458:29"/>
<constant value="458:13-458:29"/>
<constant value="459:21-459:39"/>
<constant value="459:21-459:52"/>
<constant value="459:21-459:57"/>
<constant value="459:13-459:57"/>
<constant value="460:33-460:51"/>
<constant value="460:33-460:64"/>
<constant value="460:33-460:69"/>
<constant value="460:33-460:80"/>
<constant value="460:13-460:80"/>
<constant value="461:39-461:57"/>
<constant value="461:39-461:70"/>
<constant value="461:39-461:93"/>
<constant value="461:13-461:93"/>
<constant value="462:23-462:54"/>
<constant value="462:23-462:69"/>
<constant value="463:28-463:29"/>
<constant value="463:28-463:34"/>
<constant value="463:37-463:55"/>
<constant value="463:37-463:62"/>
<constant value="463:37-463:67"/>
<constant value="463:28-463:67"/>
<constant value="462:23-463:68"/>
<constant value="462:13-463:68"/>
<constant value="464:24-464:42"/>
<constant value="464:24-464:55"/>
<constant value="464:24-464:63"/>
<constant value="464:13-464:63"/>
<constant value="465:30-465:48"/>
<constant value="465:30-465:61"/>
<constant value="465:81-465:84"/>
<constant value="465:30-465:85"/>
<constant value="465:13-465:85"/>
<constant value="466:27-466:45"/>
<constant value="466:27-466:58"/>
<constant value="466:27-466:78"/>
<constant value="466:27-466:83"/>
<constant value="466:13-466:83"/>
<constant value="469:9-469:18"/>
<constant value="469:27-469:65"/>
<constant value="469:27-469:80"/>
<constant value="470:23-470:24"/>
<constant value="470:23-470:29"/>
<constant value="470:32-470:50"/>
<constant value="470:32-470:64"/>
<constant value="470:32-470:69"/>
<constant value="470:23-470:69"/>
<constant value="469:27-470:70"/>
<constant value="469:9-470:71"/>
<constant value="471:9-471:18"/>
<constant value="471:9-471:19"/>
<constant value="468:5-472:6"/>
<constant value="sourceMicroservice"/>
<constant value="IntermediateOperationEndpoint"/>
<constant value="23"/>
<constant value="addresses"/>
<constant value="communicationType"/>
<constant value="J.IntermediateEndpointTechnology(JJJ):J"/>
<constant value="dataFormat"/>
<constant value="71"/>
<constant value="defaultFormat"/>
<constant value="78"/>
<constant value="84"/>
<constant value="formatName"/>
<constant value="479:45-479:59"/>
<constant value="479:45-479:68"/>
<constant value="479:45-479:79"/>
<constant value="481:15-481:46"/>
<constant value="481:15-481:61"/>
<constant value="482:17-482:18"/>
<constant value="482:17-482:23"/>
<constant value="482:26-482:40"/>
<constant value="482:26-482:51"/>
<constant value="482:26-482:56"/>
<constant value="482:17-482:56"/>
<constant value="481:15-482:57"/>
<constant value="486:26-486:40"/>
<constant value="486:26-486:50"/>
<constant value="486:13-486:50"/>
<constant value="487:25-487:39"/>
<constant value="487:25-487:48"/>
<constant value="487:25-487:53"/>
<constant value="487:13-487:53"/>
<constant value="488:34-488:48"/>
<constant value="488:34-488:57"/>
<constant value="488:34-488:75"/>
<constant value="488:34-488:86"/>
<constant value="488:13-488:86"/>
<constant value="491:9-491:29"/>
<constant value="491:44-491:54"/>
<constant value="492:13-492:41"/>
<constant value="492:43-492:53"/>
<constant value="492:55-492:75"/>
<constant value="491:44-492:76"/>
<constant value="491:9-492:77"/>
<constant value="494:16-494:30"/>
<constant value="494:16-494:41"/>
<constant value="494:16-494:58"/>
<constant value="494:12-494:58"/>
<constant value="495:13-495:33"/>
<constant value="495:48-495:62"/>
<constant value="495:48-495:73"/>
<constant value="495:13-495:74"/>
<constant value="494:9-495:74"/>
<constant value="497:17-497:31"/>
<constant value="497:17-497:40"/>
<constant value="497:17-497:54"/>
<constant value="497:17-497:71"/>
<constant value="497:13-497:71"/>
<constant value="498:13-498:33"/>
<constant value="498:48-498:62"/>
<constant value="498:48-498:71"/>
<constant value="498:48-498:85"/>
<constant value="498:48-498:96"/>
<constant value="498:13-498:97"/>
<constant value="497:9-498:97"/>
<constant value="500:9-500:29"/>
<constant value="500:9-500:30"/>
<constant value="490:5-501:6"/>
<constant value="intermediateEndpoint"/>
<constant value="intermediateTechnologyImport"/>
<constant value="sourceEndpoint"/>
<constant value="sourceProtocol"/>
<constant value="IntermediateImportedAspect"/>
<constant value="J.IntermediateAspectProperty(JJ):J"/>
<constant value="singlePropertyValue"/>
<constant value="103"/>
<constant value="values"/>
<constant value="97"/>
<constant value="J.IntermediateAspectPropertyValue(JJJ):J"/>
<constant value="111"/>
<constant value="509:21-509:33"/>
<constant value="509:21-509:40"/>
<constant value="509:21-509:45"/>
<constant value="509:13-509:45"/>
<constant value="510:23-510:54"/>
<constant value="510:23-510:69"/>
<constant value="511:28-511:29"/>
<constant value="511:28-511:34"/>
<constant value="511:37-511:49"/>
<constant value="511:37-511:60"/>
<constant value="511:37-511:65"/>
<constant value="511:28-511:65"/>
<constant value="510:23-511:66"/>
<constant value="510:13-511:66"/>
<constant value="515:25-515:37"/>
<constant value="515:25-515:44"/>
<constant value="515:25-515:53"/>
<constant value="516:13-516:19"/>
<constant value="516:36-516:42"/>
<constant value="516:36-516:55"/>
<constant value="516:63-516:70"/>
<constant value="516:63-516:81"/>
<constant value="516:36-516:82"/>
<constant value="516:13-516:83"/>
<constant value="515:9-517:10"/>
<constant value="520:26-520:38"/>
<constant value="520:26-520:45"/>
<constant value="520:26-520:56"/>
<constant value="521:13-521:19"/>
<constant value="521:34-521:40"/>
<constant value="521:34-521:51"/>
<constant value="522:17-522:27"/>
<constant value="522:55-522:63"/>
<constant value="522:65-522:71"/>
<constant value="522:17-522:72"/>
<constant value="521:34-522:73"/>
<constant value="521:13-522:74"/>
<constant value="520:9-523:10"/>
<constant value="529:17-529:29"/>
<constant value="529:17-529:49"/>
<constant value="529:17-529:66"/>
<constant value="529:13-529:66"/>
<constant value="533:27-533:39"/>
<constant value="533:27-533:46"/>
<constant value="534:17-534:27"/>
<constant value="535:21-535:26"/>
<constant value="535:21-535:32"/>
<constant value="535:34-535:40"/>
<constant value="535:42-535:48"/>
<constant value="535:42-535:59"/>
<constant value="535:69-535:70"/>
<constant value="535:69-535:75"/>
<constant value="535:78-535:83"/>
<constant value="535:78-535:92"/>
<constant value="535:78-535:97"/>
<constant value="535:69-535:97"/>
<constant value="535:42-535:98"/>
<constant value="534:17-535:100"/>
<constant value="533:13-536:14"/>
<constant value="530:13-530:23"/>
<constant value="530:56-530:68"/>
<constant value="530:56-530:88"/>
<constant value="530:90-530:96"/>
<constant value="531:17-531:23"/>
<constant value="531:17-531:34"/>
<constant value="531:17-531:43"/>
<constant value="530:13-531:45"/>
<constant value="529:9-536:14"/>
<constant value="537:9-537:15"/>
<constant value="537:9-537:16"/>
<constant value="513:5-538:6"/>
<constant value="sourceAspect"/>
<constant value="IntermediateAspectProperty"/>
<constant value="42"/>
<constant value="47"/>
<constant value="546:21-546:35"/>
<constant value="546:21-546:40"/>
<constant value="546:13-546:40"/>
<constant value="547:21-547:35"/>
<constant value="547:21-547:40"/>
<constant value="547:21-547:49"/>
<constant value="547:13-547:49"/>
<constant value="548:23-548:29"/>
<constant value="548:13-548:29"/>
<constant value="551:25-551:39"/>
<constant value="551:25-551:48"/>
<constant value="552:13-552:21"/>
<constant value="552:38-552:46"/>
<constant value="552:38-552:59"/>
<constant value="552:67-552:74"/>
<constant value="552:67-552:85"/>
<constant value="552:38-552:86"/>
<constant value="552:13-552:87"/>
<constant value="551:9-553:10"/>
<constant value="555:17-555:31"/>
<constant value="555:17-555:44"/>
<constant value="555:17-555:61"/>
<constant value="555:13-555:61"/>
<constant value="556:13-556:21"/>
<constant value="556:38-556:52"/>
<constant value="556:38-556:65"/>
<constant value="556:38-556:81"/>
<constant value="556:13-556:82"/>
<constant value="555:9-556:82"/>
<constant value="558:9-558:15"/>
<constant value="558:30-558:36"/>
<constant value="558:30-558:47"/>
<constant value="558:56-558:64"/>
<constant value="558:30-558:65"/>
<constant value="558:9-558:66"/>
<constant value="559:9-559:17"/>
<constant value="559:9-559:18"/>
<constant value="550:5-560:6"/>
<constant value="sourceProperty"/>
<constant value="IntermediateAspectPropertyValue"/>
<constant value="569:22-569:33"/>
<constant value="569:22-569:49"/>
<constant value="569:13-569:49"/>
<constant value="570:23-570:29"/>
<constant value="570:13-570:29"/>
<constant value="571:25-571:33"/>
<constant value="571:13-571:33"/>
<constant value="574:9-574:15"/>
<constant value="574:9-574:30"/>
<constant value="574:39-574:44"/>
<constant value="574:9-574:46"/>
<constant value="575:9-575:14"/>
<constant value="575:9-575:15"/>
<constant value="573:5-576:6"/>
<constant value="sourceValue"/>
<constant value="IntermediateEndpointTechnology"/>
<constant value="endpoint"/>
<constant value="585:21-585:37"/>
<constant value="585:21-585:42"/>
<constant value="585:13-585:42"/>
<constant value="586:23-586:41"/>
<constant value="586:13-586:41"/>
<constant value="587:25-587:42"/>
<constant value="587:13-587:42"/>
<constant value="590:9-590:19"/>
<constant value="590:9-590:20"/>
<constant value="589:5-591:6"/>
<constant value="operationEndpoint"/>
<constant value="IntermediateOperationNodeReferenceForDependOnNodes"/>
<constant value="IntermediateOperationNodeReference"/>
<constant value="J.IntermediateOperationNodeReferenceContent(JJ):J"/>
<constant value="dependOnNode"/>
<constant value="601:22-601:32"/>
<constant value="601:75-601:92"/>
<constant value="602:13-602:22"/>
<constant value="601:22-602:23"/>
<constant value="601:9-602:24"/>
<constant value="603:9-603:18"/>
<constant value="603:35-603:48"/>
<constant value="603:9-603:49"/>
<constant value="604:9-604:18"/>
<constant value="604:9-604:19"/>
<constant value="600:5-605:6"/>
<constant value="possiblyContainer"/>
<constant value="IntermediateOperationNodeReferenceForUsedByNodes"/>
<constant value="usedByNode"/>
<constant value="615:22-615:32"/>
<constant value="615:75-615:92"/>
<constant value="616:13-616:22"/>
<constant value="615:22-616:23"/>
<constant value="615:9-616:24"/>
<constant value="617:9-617:18"/>
<constant value="617:33-617:46"/>
<constant value="617:9-617:47"/>
<constant value="618:9-618:18"/>
<constant value="618:9-618:19"/>
<constant value="614:5-619:6"/>
<constant value="IntermediateOperationNodeReferenceContent"/>
<constant value="11"/>
<constant value="38"/>
<constant value="34"/>
<constant value="J.getTechnologyName(J):J"/>
<constant value="qualifiedTechnologyName"/>
<constant value="627:9-627:18"/>
<constant value="627:27-627:48"/>
<constant value="627:27-627:53"/>
<constant value="627:27-627:58"/>
<constant value="627:9-627:59"/>
<constant value="628:17-628:38"/>
<constant value="628:17-628:45"/>
<constant value="628:17-628:62"/>
<constant value="628:13-628:62"/>
<constant value="629:13-629:22"/>
<constant value="629:35-629:39"/>
<constant value="629:13-629:40"/>
<constant value="630:13-630:22"/>
<constant value="630:33-630:64"/>
<constant value="630:33-630:79"/>
<constant value="631:27-631:28"/>
<constant value="631:27-631:33"/>
<constant value="631:36-631:57"/>
<constant value="631:36-631:64"/>
<constant value="631:36-631:69"/>
<constant value="631:27-631:69"/>
<constant value="630:33-631:70"/>
<constant value="630:13-631:71"/>
<constant value="628:9-632:10"/>
<constant value="634:9-634:18"/>
<constant value="635:13-635:34"/>
<constant value="635:53-635:74"/>
<constant value="635:53-635:79"/>
<constant value="635:13-635:80"/>
<constant value="634:9-635:81"/>
<constant value="637:9-637:18"/>
<constant value="637:9-637:19"/>
<constant value="626:5-638:6"/>
<constant value="possiblyOperationNode"/>
</cp>
<field name="1" type="2"/>
<field name="3" type="4"/>
<operation name="5">
<context type="6"/>
<parameters>
</parameters>
<code>
<getasm/>
<push arg="7"/>
<push arg="8"/>
<new/>
<dup/>
<push arg="9"/>
<pcall arg="10"/>
<dup/>
<push arg="11"/>
<push arg="8"/>
<new/>
<dup/>
<push arg="12"/>
<pcall arg="10"/>
<pcall arg="13"/>
<set arg="3"/>
<getasm/>
<push arg="14"/>
<push arg="8"/>
<new/>
<set arg="1"/>
<getasm/>
<pcall arg="15"/>
<getasm/>
<pcall arg="16"/>
</code>
<linenumbertable>
</linenumbertable>
<localvariabletable>
<lve slot="0" name="17" begin="0" end="24"/>
</localvariabletable>
</operation>
<operation name="18">
<context type="6"/>
<parameters>
<parameter name="19" type="4"/>
</parameters>
<code>
<load arg="19"/>
<getasm/>
<get arg="3"/>
<call arg="20"/>
<if arg="21"/>
<getasm/>
<get arg="1"/>
<load arg="19"/>
<call arg="22"/>
<dup/>
<call arg="23"/>
<if arg="24"/>
<load arg="19"/>
<call arg="25"/>
<goto arg="26"/>
<pop/>
<load arg="19"/>
<goto arg="27"/>
<push arg="28"/>
<push arg="8"/>
<new/>
<load arg="19"/>
<iterate/>
<store arg="29"/>
<getasm/>
<load arg="29"/>
<call arg="30"/>
<call arg="31"/>
<enditerate/>
<call arg="32"/>
</code>
<linenumbertable>
</linenumbertable>
<localvariabletable>
<lve slot="2" name="33" begin="23" end="27"/>
<lve slot="0" name="17" begin="0" end="29"/>
<lve slot="1" name="34" begin="0" end="29"/>
</localvariabletable>
</operation>
<operation name="35">
<context type="6"/>
<parameters>
<parameter name="19" type="4"/>
<parameter name="29" type="36"/>
</parameters>
<code>
<getasm/>
<get arg="1"/>
<load arg="19"/>
<call arg="22"/>
<load arg="19"/>
<load arg="29"/>
<call arg="37"/>
</code>
<linenumbertable>
</linenumbertable>
<localvariabletable>
<lve slot="0" name="17" begin="0" end="6"/>
<lve slot="1" name="34" begin="0" end="6"/>
<lve slot="2" name="38" begin="0" end="6"/>
</localvariabletable>
</operation>
<operation name="39">
<context type="6"/>
<parameters>
</parameters>
<code>
<getasm/>
<pcall arg="40"/>
</code>
<linenumbertable>
</linenumbertable>
<localvariabletable>
<lve slot="0" name="17" begin="0" end="1"/>
</localvariabletable>
</operation>
<operation name="41">
<context type="6"/>
<parameters>
</parameters>
<code>
<getasm/>
<get arg="1"/>
<push arg="42"/>
<call arg="43"/>
<iterate/>
<store arg="19"/>
<getasm/>
<load arg="19"/>
<pcall arg="44"/>
<enditerate/>
</code>
<linenumbertable>
</linenumbertable>
<localvariabletable>
<lve slot="1" name="33" begin="5" end="8"/>
<lve slot="0" name="17" begin="0" end="9"/>
</localvariabletable>
</operation>
<operation name="45">
<context type="6"/>
<parameters>
</parameters>
<code>
<push arg="46"/>
<push arg="47"/>
<findme/>
<push arg="48"/>
<call arg="49"/>
<iterate/>
<store arg="19"/>
<getasm/>
<get arg="1"/>
<push arg="50"/>
<push arg="8"/>
<new/>
<dup/>
<push arg="42"/>
<pcall arg="51"/>
<dup/>
<push arg="52"/>
<load arg="19"/>
<pcall arg="53"/>
<dup/>
<push arg="54"/>
<push arg="42"/>
<push arg="55"/>
<new/>
<pcall arg="56"/>
<pusht/>
<pcall arg="57"/>
<enditerate/>
</code>
<linenumbertable>
<lne id="58" begin="19" end="24"/>
</linenumbertable>
<localvariabletable>
<lve slot="1" name="52" begin="6" end="26"/>
<lve slot="0" name="17" begin="0" end="27"/>
</localvariabletable>
</operation>
<operation name="59">
<context type="6"/>
<parameters>
<parameter name="19" type="60"/>
</parameters>
<code>
<load arg="19"/>
<push arg="52"/>
<call arg="61"/>
<store arg="29"/>
<load arg="19"/>
<push arg="54"/>
<call arg="62"/>
<store arg="63"/>
<load arg="63"/>
<dup/>
<getasm/>
<push arg="46"/>
<push arg="47"/>
<findme/>
<call arg="64"/>
<call arg="65"/>
<get arg="66"/>
<call arg="30"/>
<set arg="67"/>
<pop/>
<load arg="29"/>
<get arg="68"/>
<iterate/>
<store arg="69"/>
<load arg="63"/>
<getasm/>
<load arg="69"/>
<call arg="70"/>
<set arg="68"/>
<enditerate/>
<load arg="29"/>
<get arg="71"/>
<iterate/>
<store arg="69"/>
<load arg="63"/>
<getasm/>
<load arg="69"/>
<load arg="63"/>
<call arg="72"/>
<set arg="71"/>
<enditerate/>
<load arg="29"/>
<get arg="73"/>
<iterate/>
<store arg="69"/>
<load arg="63"/>
<getasm/>
<load arg="69"/>
<load arg="63"/>
<call arg="74"/>
<set arg="73"/>
<enditerate/>
<load arg="29"/>
<get arg="73"/>
<iterate/>
<store arg="69"/>
<getasm/>
<load arg="69"/>
<pcall arg="75"/>
<enditerate/>
<load arg="29"/>
<get arg="73"/>
<iterate/>
<store arg="69"/>
<getasm/>
<load arg="69"/>
<pcall arg="76"/>
<enditerate/>
<load arg="63"/>
</code>
<linenumbertable>
<lne id="77" begin="11" end="13"/>
<lne id="78" begin="11" end="14"/>
<lne id="79" begin="11" end="15"/>
<lne id="80" begin="11" end="16"/>
<lne id="81" begin="9" end="18"/>
<lne id="58" begin="8" end="19"/>
<lne id="82" begin="20" end="20"/>
<lne id="83" begin="20" end="21"/>
<lne id="84" begin="24" end="24"/>
<lne id="85" begin="25" end="25"/>
<lne id="86" begin="26" end="26"/>
<lne id="87" begin="25" end="27"/>
<lne id="88" begin="24" end="28"/>
<lne id="89" begin="20" end="29"/>
<lne id="90" begin="30" end="30"/>
<lne id="91" begin="30" end="31"/>
<lne id="92" begin="34" end="34"/>
<lne id="93" begin="35" end="35"/>
<lne id="94" begin="36" end="36"/>
<lne id="95" begin="37" end="37"/>
<lne id="96" begin="35" end="38"/>
<lne id="97" begin="34" end="39"/>
<lne id="98" begin="30" end="40"/>
<lne id="99" begin="41" end="41"/>
<lne id="100" begin="41" end="42"/>
<lne id="101" begin="45" end="45"/>
<lne id="102" begin="46" end="46"/>
<lne id="103" begin="47" end="47"/>
<lne id="104" begin="48" end="48"/>
<lne id="105" begin="46" end="49"/>
<lne id="106" begin="45" end="50"/>
<lne id="107" begin="41" end="51"/>
<lne id="108" begin="52" end="52"/>
<lne id="109" begin="52" end="53"/>
<lne id="110" begin="56" end="56"/>
<lne id="111" begin="57" end="57"/>
<lne id="112" begin="56" end="58"/>
<lne id="113" begin="52" end="59"/>
<lne id="114" begin="60" end="60"/>
<lne id="115" begin="60" end="61"/>
<lne id="116" begin="64" end="64"/>
<lne id="117" begin="65" end="65"/>
<lne id="118" begin="64" end="66"/>
<lne id="119" begin="60" end="67"/>
<lne id="120" begin="68" end="68"/>
<lne id="121" begin="68" end="68"/>
<lne id="122" begin="20" end="68"/>
</linenumbertable>
<localvariabletable>
<lve slot="4" name="123" begin="23" end="28"/>
<lve slot="4" name="124" begin="33" end="39"/>
<lve slot="4" name="125" begin="44" end="50"/>
<lve slot="4" name="125" begin="55" end="58"/>
<lve slot="4" name="125" begin="63" end="66"/>
<lve slot="3" name="54" begin="7" end="68"/>
<lve slot="2" name="52" begin="3" end="68"/>
<lve slot="0" name="17" begin="0" end="68"/>
<lve slot="1" name="126" begin="0" end="68"/>
</localvariabletable>
</operation>
<operation name="127">
<context type="6"/>
<parameters>
<parameter name="19" type="4"/>
</parameters>
<code>
<push arg="127"/>
<push arg="55"/>
<new/>
<store arg="29"/>
<load arg="29"/>
<dup/>
<getasm/>
<load arg="19"/>
<get arg="38"/>
<call arg="30"/>
<set arg="38"/>
<dup/>
<getasm/>
<load arg="19"/>
<get arg="128"/>
<call arg="30"/>
<set arg="129"/>
<dup/>
<getasm/>
<getasm/>
<load arg="19"/>
<call arg="130"/>
<call arg="30"/>
<set arg="131"/>
<pop/>
<load arg="29"/>
</code>
<linenumbertable>
<lne id="132" begin="7" end="7"/>
<lne id="133" begin="7" end="8"/>
<lne id="134" begin="5" end="10"/>
<lne id="135" begin="13" end="13"/>
<lne id="136" begin="13" end="14"/>
<lne id="137" begin="11" end="16"/>
<lne id="138" begin="19" end="19"/>
<lne id="139" begin="20" end="20"/>
<lne id="140" begin="19" end="21"/>
<lne id="141" begin="17" end="23"/>
<lne id="142" begin="25" end="25"/>
<lne id="143" begin="25" end="25"/>
<lne id="144" begin="25" end="25"/>
</linenumbertable>
<localvariabletable>
<lve slot="2" name="145" begin="3" end="25"/>
<lve slot="0" name="17" begin="0" end="25"/>
<lve slot="1" name="123" begin="0" end="25"/>
</localvariabletable>
</operation>
<operation name="146">
<context type="6"/>
<parameters>
<parameter name="19" type="4"/>
</parameters>
<code>
<load arg="19"/>
<get arg="147"/>
<call arg="148"/>
<store arg="29"/>
<load arg="29"/>
<push arg="149"/>
<call arg="150"/>
<if arg="151"/>
<load arg="29"/>
<goto arg="24"/>
<load arg="29"/>
<pushi arg="29"/>
<load arg="29"/>
<call arg="152"/>
<call arg="153"/>
</code>
<linenumbertable>
<lne id="154" begin="0" end="0"/>
<lne id="155" begin="0" end="1"/>
<lne id="156" begin="0" end="2"/>
<lne id="157" begin="4" end="4"/>
<lne id="158" begin="5" end="5"/>
<lne id="159" begin="4" end="6"/>
<lne id="160" begin="8" end="8"/>
<lne id="161" begin="10" end="10"/>
<lne id="162" begin="11" end="11"/>
<lne id="163" begin="12" end="12"/>
<lne id="164" begin="12" end="13"/>
<lne id="165" begin="10" end="14"/>
<lne id="166" begin="4" end="14"/>
<lne id="167" begin="0" end="14"/>
</linenumbertable>
<localvariabletable>
<lve slot="2" name="168" begin="3" end="14"/>
<lve slot="0" name="17" begin="0" end="14"/>
<lve slot="1" name="123" begin="0" end="14"/>
</localvariabletable>
</operation>
<operation name="169">
<context type="6"/>
<parameters>
<parameter name="19" type="4"/>
<parameter name="29" type="4"/>
</parameters>
<code>
<push arg="169"/>
<push arg="55"/>
<new/>
<store arg="63"/>
<load arg="63"/>
<dup/>
<getasm/>
<load arg="19"/>
<get arg="38"/>
<call arg="30"/>
<set arg="38"/>
<dup/>
<getasm/>
<getasm/>
<load arg="19"/>
<get arg="170"/>
<load arg="19"/>
<get arg="171"/>
<call arg="172"/>
<call arg="30"/>
<set arg="173"/>
<dup/>
<getasm/>
<load arg="29"/>
<call arg="30"/>
<set arg="52"/>
<pop/>
<getasm/>
<load arg="63"/>
<load arg="19"/>
<pcall arg="174"/>
<load arg="63"/>
<load arg="19"/>
<get arg="170"/>
<get arg="170"/>
<push arg="175"/>
<pusht/>
<pushf/>
<call arg="176"/>
<set arg="177"/>
<load arg="63"/>
</code>
<linenumbertable>
<lne id="178" begin="7" end="7"/>
<lne id="179" begin="7" end="8"/>
<lne id="180" begin="5" end="10"/>
<lne id="181" begin="13" end="13"/>
<lne id="182" begin="14" end="14"/>
<lne id="183" begin="14" end="15"/>
<lne id="184" begin="16" end="16"/>
<lne id="185" begin="16" end="17"/>
<lne id="186" begin="13" end="18"/>
<lne id="187" begin="11" end="20"/>
<lne id="188" begin="23" end="23"/>
<lne id="189" begin="21" end="25"/>
<lne id="190" begin="27" end="27"/>
<lne id="191" begin="28" end="28"/>
<lne id="192" begin="29" end="29"/>
<lne id="193" begin="27" end="30"/>
<lne id="194" begin="31" end="31"/>
<lne id="195" begin="32" end="32"/>
<lne id="196" begin="32" end="33"/>
<lne id="197" begin="32" end="34"/>
<lne id="198" begin="35" end="35"/>
<lne id="199" begin="36" end="36"/>
<lne id="200" begin="37" end="37"/>
<lne id="201" begin="32" end="38"/>
<lne id="202" begin="31" end="39"/>
<lne id="203" begin="40" end="40"/>
<lne id="204" begin="40" end="40"/>
<lne id="205" begin="27" end="40"/>
</linenumbertable>
<localvariabletable>
<lve slot="3" name="206" begin="3" end="40"/>
<lve slot="0" name="17" begin="0" end="40"/>
<lve slot="1" name="124" begin="0" end="40"/>
<lve slot="2" name="207" begin="0" end="40"/>
</localvariabletable>
</operation>
<operation name="208">
<context type="6"/>
<parameters>
<parameter name="19" type="4"/>
<parameter name="29" type="4"/>
</parameters>
<code>
<load arg="19"/>
<get arg="173"/>
<get arg="209"/>
<get arg="210"/>
<call arg="211"/>
<call arg="212"/>
<if arg="213"/>
<goto arg="214"/>
<load arg="19"/>
<load arg="19"/>
<get arg="173"/>
<get arg="209"/>
<get arg="210"/>
<set arg="171"/>
<load arg="29"/>
<get arg="215"/>
<iterate/>
<store arg="63"/>
<load arg="19"/>
<push arg="28"/>
<push arg="8"/>
<new/>
<push arg="127"/>
<push arg="55"/>
<findme/>
<call arg="64"/>
<iterate/>
<store arg="69"/>
<load arg="69"/>
<get arg="38"/>
<load arg="63"/>
<get arg="38"/>
<call arg="216"/>
<load arg="69"/>
<get arg="129"/>
<load arg="63"/>
<get arg="128"/>
<call arg="216"/>
<call arg="217"/>
<call arg="218"/>
<if arg="219"/>
<load arg="69"/>
<call arg="220"/>
<enditerate/>
<call arg="221"/>
<call arg="222"/>
<set arg="68"/>
<enditerate/>
<load arg="29"/>
<get arg="223"/>
<iterate/>
<store arg="63"/>
<load arg="19"/>
<getasm/>
<load arg="63"/>
<call arg="224"/>
<set arg="223"/>
<enditerate/>
<load arg="29"/>
<get arg="225"/>
<iterate/>
<store arg="63"/>
<load arg="19"/>
<getasm/>
<load arg="19"/>
<load arg="63"/>
<call arg="226"/>
<set arg="227"/>
<enditerate/>
<load arg="29"/>
<get arg="228"/>
<iterate/>
<store arg="63"/>
<load arg="63"/>
<get arg="229"/>
<iterate/>
<store arg="69"/>
<load arg="19"/>
<getasm/>
<load arg="63"/>
<load arg="69"/>
<call arg="230"/>
<set arg="231"/>
<enditerate/>
<enditerate/>
<load arg="29"/>
<get arg="232"/>
<iterate/>
<store arg="63"/>
<load arg="19"/>
<getasm/>
<push arg="28"/>
<push arg="8"/>
<new/>
<call arg="222"/>
<load arg="63"/>
<call arg="233"/>
<set arg="234"/>
<enditerate/>
<load arg="29"/>
<get arg="235"/>
<iterate/>
<store arg="63"/>
<load arg="19"/>
<getasm/>
<load arg="19"/>
<load arg="63"/>
<call arg="236"/>
<set arg="235"/>
<enditerate/>
<load arg="29"/>
<get arg="237"/>
<iterate/>
<store arg="63"/>
<load arg="19"/>
<getasm/>
<load arg="63"/>
<load arg="19"/>
<call arg="238"/>
<set arg="237"/>
<enditerate/>
<load arg="29"/>
<get arg="239"/>
<iterate/>
<store arg="63"/>
<load arg="19"/>
<getasm/>
<load arg="63"/>
<load arg="19"/>
<call arg="240"/>
<set arg="239"/>
<enditerate/>
</code>
<linenumbertable>
<lne id="241" begin="0" end="0"/>
<lne id="242" begin="0" end="1"/>
<lne id="243" begin="0" end="2"/>
<lne id="244" begin="0" end="3"/>
<lne id="245" begin="0" end="4"/>
<lne id="246" begin="0" end="5"/>
<lne id="247" begin="8" end="8"/>
<lne id="248" begin="9" end="9"/>
<lne id="249" begin="9" end="10"/>
<lne id="250" begin="9" end="11"/>
<lne id="251" begin="9" end="12"/>
<lne id="252" begin="8" end="13"/>
<lne id="253" begin="0" end="13"/>
<lne id="254" begin="14" end="14"/>
<lne id="255" begin="14" end="15"/>
<lne id="256" begin="18" end="18"/>
<lne id="257" begin="22" end="24"/>
<lne id="258" begin="22" end="25"/>
<lne id="259" begin="28" end="28"/>
<lne id="260" begin="28" end="29"/>
<lne id="261" begin="30" end="30"/>
<lne id="262" begin="30" end="31"/>
<lne id="263" begin="28" end="32"/>
<lne id="264" begin="33" end="33"/>
<lne id="265" begin="33" end="34"/>
<lne id="266" begin="35" end="35"/>
<lne id="267" begin="35" end="36"/>
<lne id="268" begin="33" end="37"/>
<lne id="269" begin="28" end="38"/>
<lne id="270" begin="19" end="45"/>
<lne id="271" begin="18" end="46"/>
<lne id="272" begin="14" end="47"/>
<lne id="273" begin="48" end="48"/>
<lne id="274" begin="48" end="49"/>
<lne id="275" begin="52" end="52"/>
<lne id="276" begin="53" end="53"/>
<lne id="277" begin="54" end="54"/>
<lne id="278" begin="53" end="55"/>
<lne id="279" begin="52" end="56"/>
<lne id="280" begin="48" end="57"/>
<lne id="281" begin="58" end="58"/>
<lne id="282" begin="58" end="59"/>
<lne id="283" begin="62" end="62"/>
<lne id="284" begin="63" end="63"/>
<lne id="285" begin="64" end="64"/>
<lne id="286" begin="65" end="65"/>
<lne id="287" begin="63" end="66"/>
<lne id="288" begin="62" end="67"/>
<lne id="289" begin="58" end="68"/>
<lne id="290" begin="69" end="69"/>
<lne id="291" begin="69" end="70"/>
<lne id="292" begin="73" end="73"/>
<lne id="293" begin="73" end="74"/>
<lne id="294" begin="77" end="77"/>
<lne id="295" begin="78" end="78"/>
<lne id="296" begin="79" end="79"/>
<lne id="297" begin="80" end="80"/>
<lne id="298" begin="78" end="81"/>
<lne id="299" begin="77" end="82"/>
<lne id="300" begin="73" end="83"/>
<lne id="301" begin="69" end="84"/>
<lne id="302" begin="85" end="85"/>
<lne id="303" begin="85" end="86"/>
<lne id="304" begin="89" end="89"/>
<lne id="305" begin="90" end="90"/>
<lne id="306" begin="91" end="94"/>
<lne id="307" begin="95" end="95"/>
<lne id="308" begin="90" end="96"/>
<lne id="309" begin="89" end="97"/>
<lne id="310" begin="85" end="98"/>
<lne id="311" begin="99" end="99"/>
<lne id="312" begin="99" end="100"/>
<lne id="313" begin="103" end="103"/>
<lne id="314" begin="104" end="104"/>
<lne id="315" begin="105" end="105"/>
<lne id="316" begin="106" end="106"/>
<lne id="317" begin="104" end="107"/>
<lne id="318" begin="103" end="108"/>
<lne id="319" begin="99" end="109"/>
<lne id="320" begin="110" end="110"/>
<lne id="321" begin="110" end="111"/>
<lne id="322" begin="114" end="114"/>
<lne id="323" begin="115" end="115"/>
<lne id="324" begin="116" end="116"/>
<lne id="325" begin="117" end="117"/>
<lne id="326" begin="115" end="118"/>
<lne id="327" begin="114" end="119"/>
<lne id="328" begin="110" end="120"/>
<lne id="329" begin="121" end="121"/>
<lne id="330" begin="121" end="122"/>
<lne id="331" begin="125" end="125"/>
<lne id="332" begin="126" end="126"/>
<lne id="333" begin="127" end="127"/>
<lne id="334" begin="128" end="128"/>
<lne id="335" begin="126" end="129"/>
<lne id="336" begin="125" end="130"/>
<lne id="337" begin="121" end="131"/>
<lne id="338" begin="0" end="131"/>
</linenumbertable>
<localvariabletable>
<lve slot="4" name="339" begin="27" end="42"/>
<lve slot="3" name="123" begin="17" end="46"/>
<lve slot="3" name="340" begin="51" end="56"/>
<lve slot="3" name="341" begin="61" end="67"/>
<lve slot="4" name="342" begin="76" end="82"/>
<lve slot="3" name="343" begin="72" end="83"/>
<lve slot="3" name="344" begin="88" end="97"/>
<lve slot="3" name="345" begin="102" end="108"/>
<lve slot="3" name="346" begin="113" end="119"/>
<lve slot="3" name="346" begin="124" end="130"/>
<lve slot="0" name="17" begin="0" end="131"/>
<lve slot="1" name="124" begin="0" end="131"/>
<lve slot="2" name="347" begin="0" end="131"/>
</localvariabletable>
</operation>
<operation name="348">
<context type="6"/>
<parameters>
<parameter name="19" type="4"/>
<parameter name="29" type="4"/>
</parameters>
<code>
<push arg="348"/>
<push arg="55"/>
<new/>
<store arg="63"/>
<load arg="63"/>
<dup/>
<getasm/>
<getasm/>
<load arg="19"/>
<get arg="170"/>
<load arg="63"/>
<call arg="349"/>
<call arg="30"/>
<set arg="209"/>
<pop/>
<load arg="29"/>
<call arg="211"/>
<call arg="212"/>
<if arg="350"/>
<goto arg="351"/>
<getasm/>
<load arg="29"/>
<load arg="63"/>
<get arg="209"/>
<pcall arg="352"/>
<load arg="29"/>
<call arg="211"/>
<if arg="353"/>
<goto arg="354"/>
<load arg="19"/>
<get arg="170"/>
<get arg="355"/>
<iterate/>
<store arg="69"/>
<getasm/>
<load arg="69"/>
<load arg="63"/>
<get arg="209"/>
<pcall arg="352"/>
<enditerate/>
<load arg="63"/>
<push arg="28"/>
<push arg="8"/>
<new/>
<push arg="127"/>
<push arg="55"/>
<findme/>
<call arg="64"/>
<iterate/>
<store arg="69"/>
<load arg="69"/>
<get arg="38"/>
<load arg="19"/>
<get arg="123"/>
<get arg="38"/>
<call arg="216"/>
<load arg="69"/>
<get arg="129"/>
<load arg="19"/>
<get arg="123"/>
<get arg="128"/>
<call arg="216"/>
<call arg="217"/>
<call arg="218"/>
<if arg="356"/>
<load arg="69"/>
<call arg="220"/>
<enditerate/>
<call arg="221"/>
<call arg="222"/>
<set arg="123"/>
<load arg="63"/>
</code>
<linenumbertable>
<lne id="357" begin="7" end="7"/>
<lne id="358" begin="8" end="8"/>
<lne id="359" begin="8" end="9"/>
<lne id="360" begin="10" end="10"/>
<lne id="361" begin="7" end="11"/>
<lne id="362" begin="5" end="13"/>
<lne id="363" begin="15" end="15"/>
<lne id="364" begin="15" end="16"/>
<lne id="365" begin="15" end="17"/>
<lne id="366" begin="20" end="20"/>
<lne id="367" begin="21" end="21"/>
<lne id="368" begin="22" end="22"/>
<lne id="369" begin="22" end="23"/>
<lne id="370" begin="20" end="24"/>
<lne id="371" begin="15" end="24"/>
<lne id="372" begin="25" end="25"/>
<lne id="373" begin="25" end="26"/>
<lne id="374" begin="29" end="29"/>
<lne id="375" begin="29" end="30"/>
<lne id="376" begin="29" end="31"/>
<lne id="377" begin="34" end="34"/>
<lne id="378" begin="35" end="35"/>
<lne id="379" begin="36" end="36"/>
<lne id="380" begin="36" end="37"/>
<lne id="381" begin="34" end="38"/>
<lne id="382" begin="29" end="39"/>
<lne id="383" begin="25" end="39"/>
<lne id="384" begin="40" end="40"/>
<lne id="385" begin="44" end="46"/>
<lne id="386" begin="44" end="47"/>
<lne id="387" begin="50" end="50"/>
<lne id="388" begin="50" end="51"/>
<lne id="389" begin="52" end="52"/>
<lne id="390" begin="52" end="53"/>
<lne id="391" begin="52" end="54"/>
<lne id="392" begin="50" end="55"/>
<lne id="393" begin="56" end="56"/>
<lne id="394" begin="56" end="57"/>
<lne id="395" begin="58" end="58"/>
<lne id="396" begin="58" end="59"/>
<lne id="397" begin="58" end="60"/>
<lne id="398" begin="56" end="61"/>
<lne id="399" begin="50" end="62"/>
<lne id="400" begin="41" end="69"/>
<lne id="401" begin="40" end="70"/>
<lne id="402" begin="71" end="71"/>
<lne id="403" begin="71" end="71"/>
<lne id="404" begin="15" end="71"/>
</linenumbertable>
<localvariabletable>
<lve slot="4" name="405" begin="33" end="38"/>
<lve slot="4" name="339" begin="49" end="66"/>
<lve slot="3" name="406" begin="3" end="71"/>
<lve slot="0" name="17" begin="0" end="71"/>
<lve slot="1" name="407" begin="0" end="71"/>
<lve slot="2" name="408" begin="0" end="71"/>
</localvariabletable>
</operation>
<operation name="409">
<context type="6"/>
<parameters>
<parameter name="19" type="4"/>
<parameter name="29" type="4"/>
</parameters>
<code>
<push arg="409"/>
<push arg="55"/>
<new/>
<store arg="63"/>
<load arg="63"/>
<dup/>
<getasm/>
<load arg="19"/>
<get arg="38"/>
<call arg="30"/>
<set arg="38"/>
<dup/>
<getasm/>
<load arg="29"/>
<call arg="30"/>
<set arg="406"/>
<pop/>
<load arg="19"/>
<get arg="410"/>
<iterate/>
<store arg="69"/>
<load arg="63"/>
<get arg="411"/>
<getasm/>
<load arg="69"/>
<load arg="63"/>
<call arg="412"/>
<pcall arg="413"/>
<enditerate/>
<load arg="63"/>
</code>
<linenumbertable>
<lne id="414" begin="7" end="7"/>
<lne id="415" begin="7" end="8"/>
<lne id="416" begin="5" end="10"/>
<lne id="417" begin="13" end="13"/>
<lne id="418" begin="11" end="15"/>
<lne id="419" begin="17" end="17"/>
<lne id="420" begin="17" end="18"/>
<lne id="421" begin="21" end="21"/>
<lne id="422" begin="21" end="22"/>
<lne id="423" begin="23" end="23"/>
<lne id="424" begin="24" end="24"/>
<lne id="425" begin="25" end="25"/>
<lne id="426" begin="23" end="26"/>
<lne id="427" begin="21" end="27"/>
<lne id="428" begin="17" end="28"/>
<lne id="429" begin="29" end="29"/>
<lne id="430" begin="29" end="29"/>
<lne id="431" begin="17" end="29"/>
</linenumbertable>
<localvariabletable>
<lve slot="4" name="432" begin="20" end="27"/>
<lve slot="3" name="209" begin="3" end="29"/>
<lve slot="0" name="17" begin="0" end="29"/>
<lve slot="1" name="433" begin="0" end="29"/>
<lve slot="2" name="434" begin="0" end="29"/>
</localvariabletable>
</operation>
<operation name="435">
<context type="6"/>
<parameters>
<parameter name="19" type="4"/>
<parameter name="29" type="4"/>
</parameters>
<code>
<push arg="435"/>
<push arg="55"/>
<new/>
<store arg="63"/>
<load arg="63"/>
<dup/>
<getasm/>
<load arg="19"/>
<get arg="436"/>
<call arg="30"/>
<set arg="436"/>
<dup/>
<getasm/>
<load arg="29"/>
<call arg="30"/>
<set arg="437"/>
<dup/>
<getasm/>
<load arg="19"/>
<get arg="438"/>
<call arg="30"/>
<set arg="438"/>
<pop/>
</code>
<linenumbertable>
<lne id="439" begin="7" end="7"/>
<lne id="440" begin="7" end="8"/>
<lne id="441" begin="5" end="10"/>
<lne id="442" begin="13" end="13"/>
<lne id="443" begin="11" end="15"/>
<lne id="444" begin="18" end="18"/>
<lne id="445" begin="18" end="19"/>
<lne id="446" begin="16" end="21"/>
</linenumbertable>
<localvariabletable>
<lve slot="3" name="210" begin="3" end="22"/>
<lve slot="0" name="17" begin="0" end="22"/>
<lve slot="1" name="408" begin="0" end="22"/>
<lve slot="2" name="209" begin="0" end="22"/>
</localvariabletable>
</operation>
<operation name="447">
<context type="6"/>
<parameters>
<parameter name="19" type="4"/>
<parameter name="29" type="4"/>
</parameters>
<code>
<push arg="448"/>
<push arg="55"/>
<new/>
<store arg="63"/>
<load arg="63"/>
<dup/>
<getasm/>
<load arg="19"/>
<get arg="38"/>
<call arg="30"/>
<set arg="38"/>
<dup/>
<getasm/>
<getasm/>
<load arg="19"/>
<get arg="449"/>
<load arg="19"/>
<get arg="171"/>
<call arg="450"/>
<call arg="30"/>
<set arg="406"/>
<pop/>
<load arg="29"/>
<call arg="211"/>
<call arg="212"/>
<if arg="451"/>
<goto arg="27"/>
<load arg="63"/>
<load arg="29"/>
<set arg="52"/>
<load arg="19"/>
<get arg="215"/>
<iterate/>
<store arg="69"/>
<load arg="63"/>
<push arg="28"/>
<push arg="8"/>
<new/>
<push arg="127"/>
<push arg="55"/>
<findme/>
<call arg="64"/>
<iterate/>
<store arg="452"/>
<load arg="452"/>
<get arg="38"/>
<load arg="69"/>
<get arg="38"/>
<call arg="216"/>
<load arg="452"/>
<get arg="129"/>
<load arg="69"/>
<get arg="128"/>
<call arg="216"/>
<call arg="217"/>
<call arg="218"/>
<if arg="453"/>
<load arg="452"/>
<call arg="220"/>
<enditerate/>
<call arg="221"/>
<call arg="222"/>
<set arg="68"/>
<enditerate/>
<load arg="63"/>
<load arg="19"/>
<get arg="449"/>
<get arg="449"/>
<push arg="175"/>
<pusht/>
<pushf/>
<call arg="176"/>
<set arg="454"/>
<load arg="63"/>
</code>
<linenumbertable>
<lne id="455" begin="7" end="7"/>
<lne id="456" begin="7" end="8"/>
<lne id="457" begin="5" end="10"/>
<lne id="458" begin="13" end="13"/>
<lne id="459" begin="14" end="14"/>
<lne id="460" begin="14" end="15"/>
<lne id="461" begin="16" end="16"/>
<lne id="462" begin="16" end="17"/>
<lne id="463" begin="13" end="18"/>
<lne id="464" begin="11" end="20"/>
<lne id="465" begin="22" end="22"/>
<lne id="466" begin="22" end="23"/>
<lne id="467" begin="22" end="24"/>
<lne id="468" begin="27" end="27"/>
<lne id="469" begin="28" end="28"/>
<lne id="470" begin="27" end="29"/>
<lne id="471" begin="22" end="29"/>
<lne id="472" begin="30" end="30"/>
<lne id="473" begin="30" end="31"/>
<lne id="474" begin="34" end="34"/>
<lne id="475" begin="38" end="40"/>
<lne id="476" begin="38" end="41"/>
<lne id="477" begin="44" end="44"/>
<lne id="478" begin="44" end="45"/>
<lne id="479" begin="46" end="46"/>
<lne id="480" begin="46" end="47"/>
<lne id="481" begin="44" end="48"/>
<lne id="482" begin="49" end="49"/>
<lne id="483" begin="49" end="50"/>
<lne id="484" begin="51" end="51"/>
<lne id="485" begin="51" end="52"/>
<lne id="486" begin="49" end="53"/>
<lne id="487" begin="44" end="54"/>
<lne id="488" begin="35" end="61"/>
<lne id="489" begin="34" end="62"/>
<lne id="490" begin="30" end="63"/>
<lne id="491" begin="64" end="64"/>
<lne id="492" begin="65" end="65"/>
<lne id="493" begin="65" end="66"/>
<lne id="494" begin="65" end="67"/>
<lne id="495" begin="68" end="68"/>
<lne id="496" begin="69" end="69"/>
<lne id="497" begin="70" end="70"/>
<lne id="498" begin="65" end="71"/>
<lne id="499" begin="64" end="72"/>
<lne id="500" begin="73" end="73"/>
<lne id="501" begin="73" end="73"/>
<lne id="502" begin="22" end="73"/>
</linenumbertable>
<localvariabletable>
<lve slot="5" name="339" begin="43" end="58"/>
<lve slot="4" name="209" begin="33" end="62"/>
<lve slot="3" name="125" begin="3" end="73"/>
<lve slot="0" name="17" begin="0" end="73"/>
<lve slot="1" name="503" begin="0" end="73"/>
<lve slot="2" name="207" begin="0" end="73"/>
</localvariabletable>
</operation>
<operation name="504">
<context type="6"/>
<parameters>
<parameter name="19" type="4"/>
</parameters>
<code>
<push arg="28"/>
<push arg="8"/>
<new/>
<push arg="448"/>
<push arg="55"/>
<findme/>
<call arg="64"/>
<iterate/>
<store arg="29"/>
<load arg="29"/>
<get arg="38"/>
<load arg="19"/>
<get arg="38"/>
<call arg="216"/>
<call arg="218"/>
<if arg="21"/>
<load arg="29"/>
<call arg="220"/>
<enditerate/>
<call arg="221"/>
<call arg="222"/>
<store arg="29"/>
<getasm/>
<load arg="29"/>
<load arg="19"/>
<pcall arg="505"/>
</code>
<linenumbertable>
<lne id="506" begin="3" end="5"/>
<lne id="507" begin="3" end="6"/>
<lne id="508" begin="9" end="9"/>
<lne id="509" begin="9" end="10"/>
<lne id="510" begin="11" end="11"/>
<lne id="511" begin="11" end="12"/>
<lne id="512" begin="9" end="13"/>
<lne id="513" begin="0" end="20"/>
<lne id="514" begin="22" end="22"/>
<lne id="515" begin="23" end="23"/>
<lne id="516" begin="24" end="24"/>
<lne id="517" begin="22" end="25"/>
<lne id="518" begin="22" end="25"/>
</linenumbertable>
<localvariabletable>
<lve slot="2" name="519" begin="8" end="17"/>
<lve slot="2" name="520" begin="21" end="25"/>
<lve slot="0" name="17" begin="0" end="25"/>
<lve slot="1" name="125" begin="0" end="25"/>
</localvariabletable>
</operation>
<operation name="521">
<context type="6"/>
<parameters>
<parameter name="19" type="4"/>
<parameter name="29" type="4"/>
</parameters>
<code>
<load arg="19"/>
<get arg="406"/>
<get arg="209"/>
<get arg="210"/>
<call arg="211"/>
<call arg="212"/>
<if arg="213"/>
<goto arg="214"/>
<load arg="19"/>
<load arg="19"/>
<get arg="406"/>
<get arg="209"/>
<get arg="210"/>
<set arg="171"/>
<load arg="29"/>
<get arg="215"/>
<iterate/>
<store arg="63"/>
<load arg="19"/>
<push arg="28"/>
<push arg="8"/>
<new/>
<push arg="127"/>
<push arg="55"/>
<findme/>
<call arg="64"/>
<iterate/>
<store arg="69"/>
<load arg="69"/>
<get arg="38"/>
<load arg="63"/>
<get arg="38"/>
<call arg="216"/>
<load arg="69"/>
<get arg="129"/>
<load arg="63"/>
<get arg="128"/>
<call arg="216"/>
<call arg="217"/>
<call arg="218"/>
<if arg="219"/>
<load arg="69"/>
<call arg="220"/>
<enditerate/>
<call arg="221"/>
<call arg="222"/>
<set arg="68"/>
<enditerate/>
<load arg="29"/>
<get arg="231"/>
<iterate/>
<store arg="63"/>
<load arg="63"/>
<get arg="229"/>
<iterate/>
<store arg="69"/>
<load arg="19"/>
<getasm/>
<load arg="63"/>
<load arg="69"/>
<call arg="230"/>
<set arg="231"/>
<enditerate/>
<enditerate/>
<load arg="29"/>
<get arg="232"/>
<iterate/>
<store arg="63"/>
<load arg="19"/>
<getasm/>
<push arg="28"/>
<push arg="8"/>
<new/>
<call arg="222"/>
<load arg="63"/>
<call arg="233"/>
<set arg="234"/>
<enditerate/>
<load arg="29"/>
<get arg="235"/>
<iterate/>
<store arg="63"/>
<load arg="19"/>
<getasm/>
<load arg="19"/>
<load arg="63"/>
<call arg="236"/>
<set arg="235"/>
<enditerate/>
</code>
<linenumbertable>
<lne id="522" begin="0" end="0"/>
<lne id="523" begin="0" end="1"/>
<lne id="524" begin="0" end="2"/>
<lne id="525" begin="0" end="3"/>
<lne id="526" begin="0" end="4"/>
<lne id="527" begin="0" end="5"/>
<lne id="528" begin="8" end="8"/>
<lne id="529" begin="9" end="9"/>
<lne id="530" begin="9" end="10"/>
<lne id="531" begin="9" end="11"/>
<lne id="532" begin="9" end="12"/>
<lne id="533" begin="8" end="13"/>
<lne id="534" begin="0" end="13"/>
<lne id="535" begin="14" end="14"/>
<lne id="536" begin="14" end="15"/>
<lne id="537" begin="18" end="18"/>
<lne id="538" begin="22" end="24"/>
<lne id="539" begin="22" end="25"/>
<lne id="540" begin="28" end="28"/>
<lne id="541" begin="28" end="29"/>
<lne id="542" begin="30" end="30"/>
<lne id="543" begin="30" end="31"/>
<lne id="544" begin="28" end="32"/>
<lne id="545" begin="33" end="33"/>
<lne id="546" begin="33" end="34"/>
<lne id="547" begin="35" end="35"/>
<lne id="548" begin="35" end="36"/>
<lne id="549" begin="33" end="37"/>
<lne id="550" begin="28" end="38"/>
<lne id="551" begin="19" end="45"/>
<lne id="552" begin="18" end="46"/>
<lne id="553" begin="14" end="47"/>
<lne id="554" begin="48" end="48"/>
<lne id="555" begin="48" end="49"/>
<lne id="556" begin="52" end="52"/>
<lne id="557" begin="52" end="53"/>
<lne id="558" begin="56" end="56"/>
<lne id="559" begin="57" end="57"/>
<lne id="560" begin="58" end="58"/>
<lne id="561" begin="59" end="59"/>
<lne id="562" begin="57" end="60"/>
<lne id="563" begin="56" end="61"/>
<lne id="564" begin="52" end="62"/>
<lne id="565" begin="48" end="63"/>
<lne id="566" begin="64" end="64"/>
<lne id="567" begin="64" end="65"/>
<lne id="568" begin="68" end="68"/>
<lne id="569" begin="69" end="69"/>
<lne id="570" begin="70" end="73"/>
<lne id="571" begin="74" end="74"/>
<lne id="572" begin="69" end="75"/>
<lne id="573" begin="68" end="76"/>
<lne id="574" begin="64" end="77"/>
<lne id="575" begin="78" end="78"/>
<lne id="576" begin="78" end="79"/>
<lne id="577" begin="82" end="82"/>
<lne id="578" begin="83" end="83"/>
<lne id="579" begin="84" end="84"/>
<lne id="580" begin="85" end="85"/>
<lne id="581" begin="83" end="86"/>
<lne id="582" begin="82" end="87"/>
<lne id="583" begin="78" end="88"/>
<lne id="584" begin="0" end="88"/>
</linenumbertable>
<localvariabletable>
<lve slot="4" name="339" begin="27" end="42"/>
<lve slot="3" name="123" begin="17" end="46"/>
<lve slot="4" name="342" begin="55" end="61"/>
<lve slot="3" name="585" begin="51" end="62"/>
<lve slot="3" name="344" begin="67" end="76"/>
<lve slot="3" name="345" begin="81" end="87"/>
<lve slot="0" name="17" begin="0" end="88"/>
<lve slot="1" name="586" begin="0" end="88"/>
<lve slot="2" name="125" begin="0" end="88"/>
</localvariabletable>
</operation>
<operation name="587">
<context type="6"/>
<parameters>
<parameter name="19" type="4"/>
</parameters>
<code>
<push arg="28"/>
<push arg="8"/>
<new/>
<push arg="448"/>
<push arg="55"/>
<findme/>
<call arg="64"/>
<iterate/>
<store arg="29"/>
<load arg="29"/>
<get arg="38"/>
<load arg="19"/>
<get arg="38"/>
<call arg="216"/>
<call arg="218"/>
<if arg="21"/>
<load arg="29"/>
<call arg="220"/>
<enditerate/>
<call arg="221"/>
<call arg="222"/>
<store arg="29"/>
<load arg="19"/>
<get arg="237"/>
<iterate/>
<store arg="63"/>
<load arg="29"/>
<getasm/>
<load arg="63"/>
<load arg="29"/>
<call arg="238"/>
<set arg="237"/>
<enditerate/>
<load arg="19"/>
<get arg="239"/>
<iterate/>
<store arg="63"/>
<load arg="29"/>
<getasm/>
<load arg="63"/>
<load arg="29"/>
<call arg="240"/>
<set arg="239"/>
<enditerate/>
<load arg="19"/>
<get arg="223"/>
<iterate/>
<store arg="63"/>
<load arg="29"/>
<getasm/>
<load arg="63"/>
<call arg="224"/>
<set arg="223"/>
<enditerate/>
</code>
<linenumbertable>
<lne id="588" begin="3" end="5"/>
<lne id="589" begin="3" end="6"/>
<lne id="590" begin="9" end="9"/>
<lne id="591" begin="9" end="10"/>
<lne id="592" begin="11" end="11"/>
<lne id="593" begin="11" end="12"/>
<lne id="594" begin="9" end="13"/>
<lne id="595" begin="0" end="20"/>
<lne id="596" begin="22" end="22"/>
<lne id="597" begin="22" end="23"/>
<lne id="598" begin="26" end="26"/>
<lne id="599" begin="27" end="27"/>
<lne id="600" begin="28" end="28"/>
<lne id="601" begin="29" end="29"/>
<lne id="602" begin="27" end="30"/>
<lne id="603" begin="26" end="31"/>
<lne id="604" begin="22" end="32"/>
<lne id="605" begin="33" end="33"/>
<lne id="606" begin="33" end="34"/>
<lne id="607" begin="37" end="37"/>
<lne id="608" begin="38" end="38"/>
<lne id="609" begin="39" end="39"/>
<lne id="610" begin="40" end="40"/>
<lne id="611" begin="38" end="41"/>
<lne id="612" begin="37" end="42"/>
<lne id="613" begin="33" end="43"/>
<lne id="614" begin="44" end="44"/>
<lne id="615" begin="44" end="45"/>
<lne id="616" begin="48" end="48"/>
<lne id="617" begin="49" end="49"/>
<lne id="618" begin="50" end="50"/>
<lne id="619" begin="49" end="51"/>
<lne id="620" begin="48" end="52"/>
<lne id="621" begin="44" end="53"/>
<lne id="622" begin="22" end="53"/>
</linenumbertable>
<localvariabletable>
<lve slot="2" name="519" begin="8" end="17"/>
<lve slot="3" name="503" begin="25" end="31"/>
<lve slot="3" name="503" begin="36" end="42"/>
<lve slot="3" name="340" begin="47" end="52"/>
<lve slot="2" name="520" begin="21" end="53"/>
<lve slot="0" name="17" begin="0" end="53"/>
<lve slot="1" name="623" begin="0" end="53"/>
</localvariabletable>
</operation>
<operation name="624">
<context type="6"/>
<parameters>
<parameter name="19" type="4"/>
<parameter name="29" type="4"/>
</parameters>
<code>
<push arg="624"/>
<push arg="55"/>
<new/>
<store arg="63"/>
<load arg="63"/>
<dup/>
<getasm/>
<getasm/>
<load arg="19"/>
<get arg="449"/>
<load arg="63"/>
<call arg="625"/>
<call arg="30"/>
<set arg="209"/>
<pop/>
<load arg="29"/>
<call arg="211"/>
<call arg="212"/>
<if arg="350"/>
<goto arg="351"/>
<getasm/>
<load arg="29"/>
<load arg="63"/>
<get arg="209"/>
<pcall arg="352"/>
<load arg="29"/>
<call arg="211"/>
<if arg="353"/>
<goto arg="354"/>
<load arg="19"/>
<get arg="449"/>
<get arg="355"/>
<iterate/>
<store arg="69"/>
<getasm/>
<load arg="69"/>
<load arg="63"/>
<get arg="209"/>
<pcall arg="352"/>
<enditerate/>
<load arg="63"/>
<push arg="28"/>
<push arg="8"/>
<new/>
<push arg="127"/>
<push arg="55"/>
<findme/>
<call arg="64"/>
<iterate/>
<store arg="69"/>
<load arg="69"/>
<get arg="38"/>
<load arg="19"/>
<get arg="123"/>
<get arg="38"/>
<call arg="216"/>
<load arg="69"/>
<get arg="129"/>
<load arg="19"/>
<get arg="123"/>
<get arg="128"/>
<call arg="216"/>
<call arg="217"/>
<call arg="218"/>
<if arg="356"/>
<load arg="69"/>
<call arg="220"/>
<enditerate/>
<call arg="221"/>
<call arg="222"/>
<set arg="123"/>
<load arg="63"/>
</code>
<linenumbertable>
<lne id="626" begin="7" end="7"/>
<lne id="627" begin="8" end="8"/>
<lne id="628" begin="8" end="9"/>
<lne id="629" begin="10" end="10"/>
<lne id="630" begin="7" end="11"/>
<lne id="631" begin="5" end="13"/>
<lne id="632" begin="15" end="15"/>
<lne id="633" begin="15" end="16"/>
<lne id="634" begin="15" end="17"/>
<lne id="635" begin="20" end="20"/>
<lne id="636" begin="21" end="21"/>
<lne id="637" begin="22" end="22"/>
<lne id="638" begin="22" end="23"/>
<lne id="639" begin="20" end="24"/>
<lne id="640" begin="15" end="24"/>
<lne id="641" begin="25" end="25"/>
<lne id="642" begin="25" end="26"/>
<lne id="643" begin="29" end="29"/>
<lne id="644" begin="29" end="30"/>
<lne id="645" begin="29" end="31"/>
<lne id="646" begin="34" end="34"/>
<lne id="647" begin="35" end="35"/>
<lne id="648" begin="36" end="36"/>
<lne id="649" begin="36" end="37"/>
<lne id="650" begin="34" end="38"/>
<lne id="651" begin="29" end="39"/>
<lne id="652" begin="25" end="39"/>
<lne id="653" begin="40" end="40"/>
<lne id="654" begin="44" end="46"/>
<lne id="655" begin="44" end="47"/>
<lne id="656" begin="50" end="50"/>
<lne id="657" begin="50" end="51"/>
<lne id="658" begin="52" end="52"/>
<lne id="659" begin="52" end="53"/>
<lne id="660" begin="52" end="54"/>
<lne id="661" begin="50" end="55"/>
<lne id="662" begin="56" end="56"/>
<lne id="663" begin="56" end="57"/>
<lne id="664" begin="58" end="58"/>
<lne id="665" begin="58" end="59"/>
<lne id="666" begin="58" end="60"/>
<lne id="667" begin="56" end="61"/>
<lne id="668" begin="50" end="62"/>
<lne id="669" begin="41" end="69"/>
<lne id="670" begin="40" end="70"/>
<lne id="671" begin="71" end="71"/>
<lne id="672" begin="71" end="71"/>
<lne id="673" begin="15" end="71"/>
</linenumbertable>
<localvariabletable>
<lve slot="4" name="405" begin="33" end="38"/>
<lve slot="4" name="339" begin="49" end="66"/>
<lve slot="3" name="406" begin="3" end="71"/>
<lve slot="0" name="17" begin="0" end="71"/>
<lve slot="1" name="407" begin="0" end="71"/>
<lve slot="2" name="408" begin="0" end="71"/>
</localvariabletable>
</operation>
<operation name="674">
<context type="6"/>
<parameters>
<parameter name="19" type="4"/>
<parameter name="29" type="4"/>
</parameters>
<code>
<push arg="674"/>
<push arg="55"/>
<new/>
<store arg="63"/>
<load arg="63"/>
<dup/>
<getasm/>
<load arg="19"/>
<get arg="38"/>
<call arg="30"/>
<set arg="38"/>
<dup/>
<getasm/>
<load arg="29"/>
<call arg="30"/>
<set arg="406"/>
<pop/>
<load arg="19"/>
<get arg="410"/>
<iterate/>
<store arg="69"/>
<load arg="63"/>
<get arg="411"/>
<getasm/>
<load arg="69"/>
<load arg="63"/>
<call arg="412"/>
<pcall arg="413"/>
<enditerate/>
<load arg="63"/>
</code>
<linenumbertable>
<lne id="675" begin="7" end="7"/>
<lne id="676" begin="7" end="8"/>
<lne id="677" begin="5" end="10"/>
<lne id="678" begin="13" end="13"/>
<lne id="679" begin="11" end="15"/>
<lne id="680" begin="17" end="17"/>
<lne id="681" begin="17" end="18"/>
<lne id="682" begin="21" end="21"/>
<lne id="683" begin="21" end="22"/>
<lne id="684" begin="23" end="23"/>
<lne id="685" begin="24" end="24"/>
<lne id="686" begin="25" end="25"/>
<lne id="687" begin="23" end="26"/>
<lne id="688" begin="21" end="27"/>
<lne id="689" begin="17" end="28"/>
<lne id="690" begin="29" end="29"/>
<lne id="691" begin="29" end="29"/>
<lne id="692" begin="17" end="29"/>
</linenumbertable>
<localvariabletable>
<lve slot="4" name="432" begin="20" end="27"/>
<lve slot="3" name="209" begin="3" end="29"/>
<lve slot="0" name="17" begin="0" end="29"/>
<lve slot="1" name="693" begin="0" end="29"/>
<lve slot="2" name="694" begin="0" end="29"/>
</localvariabletable>
</operation>
<operation name="695">
<context type="6"/>
<parameters>
<parameter name="19" type="4"/>
<parameter name="29" type="4"/>
</parameters>
<code>
<push arg="695"/>
<push arg="55"/>
<new/>
<store arg="63"/>
<load arg="63"/>
<dup/>
<getasm/>
<load arg="19"/>
<get arg="38"/>
<call arg="30"/>
<set arg="38"/>
<dup/>
<getasm/>
<load arg="19"/>
<get arg="696"/>
<get arg="697"/>
<call arg="30"/>
<set arg="696"/>
<dup/>
<getasm/>
<load arg="29"/>
<call arg="30"/>
<set arg="437"/>
<pop/>
<load arg="19"/>
<get arg="344"/>
<call arg="211"/>
<call arg="212"/>
<if arg="27"/>
<goto arg="698"/>
<load arg="63"/>
<load arg="19"/>
<get arg="344"/>
<call arg="699"/>
<set arg="344"/>
<load arg="19"/>
<get arg="700"/>
<iterate/>
<store arg="69"/>
<load arg="63"/>
<load arg="69"/>
<call arg="148"/>
<set arg="701"/>
<enditerate/>
<load arg="63"/>
</code>
<linenumbertable>
<lne id="702" begin="7" end="7"/>
<lne id="703" begin="7" end="8"/>
<lne id="704" begin="5" end="10"/>
<lne id="705" begin="13" end="13"/>
<lne id="706" begin="13" end="14"/>
<lne id="707" begin="13" end="15"/>
<lne id="708" begin="11" end="17"/>
<lne id="709" begin="20" end="20"/>
<lne id="710" begin="18" end="22"/>
<lne id="711" begin="24" end="24"/>
<lne id="712" begin="24" end="25"/>
<lne id="713" begin="24" end="26"/>
<lne id="714" begin="24" end="27"/>
<lne id="715" begin="30" end="30"/>
<lne id="716" begin="31" end="31"/>
<lne id="717" begin="31" end="32"/>
<lne id="718" begin="31" end="33"/>
<lne id="719" begin="30" end="34"/>
<lne id="720" begin="24" end="34"/>
<lne id="721" begin="35" end="35"/>
<lne id="722" begin="35" end="36"/>
<lne id="723" begin="39" end="39"/>
<lne id="724" begin="40" end="40"/>
<lne id="725" begin="40" end="41"/>
<lne id="726" begin="39" end="42"/>
<lne id="727" begin="35" end="43"/>
<lne id="728" begin="44" end="44"/>
<lne id="729" begin="44" end="44"/>
<lne id="730" begin="24" end="44"/>
</linenumbertable>
<localvariabletable>
<lve slot="4" name="731" begin="38" end="42"/>
<lve slot="3" name="732" begin="3" end="44"/>
<lve slot="0" name="17" begin="0" end="44"/>
<lve slot="1" name="733" begin="0" end="44"/>
<lve slot="2" name="170" begin="0" end="44"/>
</localvariabletable>
</operation>
<operation name="734">
<context type="6"/>
<parameters>
<parameter name="19" type="4"/>
<parameter name="29" type="4"/>
</parameters>
<code>
<push arg="734"/>
<push arg="55"/>
<new/>
<store arg="63"/>
<load arg="63"/>
<dup/>
<getasm/>
<load arg="29"/>
<get arg="34"/>
<call arg="699"/>
<call arg="30"/>
<set arg="34"/>
<dup/>
<getasm/>
<push arg="28"/>
<push arg="8"/>
<new/>
<push arg="695"/>
<push arg="55"/>
<findme/>
<call arg="64"/>
<iterate/>
<store arg="69"/>
<load arg="69"/>
<get arg="38"/>
<load arg="29"/>
<get arg="732"/>
<get arg="38"/>
<call arg="216"/>
<call arg="218"/>
<if arg="735"/>
<load arg="69"/>
<call arg="220"/>
<enditerate/>
<call arg="221"/>
<call arg="222"/>
<call arg="30"/>
<set arg="432"/>
<pop/>
<load arg="63"/>
</code>
<linenumbertable>
<lne id="736" begin="7" end="7"/>
<lne id="737" begin="7" end="8"/>
<lne id="738" begin="7" end="9"/>
<lne id="739" begin="5" end="11"/>
<lne id="740" begin="17" end="19"/>
<lne id="741" begin="17" end="20"/>
<lne id="742" begin="23" end="23"/>
<lne id="743" begin="23" end="24"/>
<lne id="744" begin="25" end="25"/>
<lne id="745" begin="25" end="26"/>
<lne id="746" begin="25" end="27"/>
<lne id="747" begin="23" end="28"/>
<lne id="748" begin="14" end="35"/>
<lne id="749" begin="12" end="37"/>
<lne id="750" begin="39" end="39"/>
<lne id="751" begin="39" end="39"/>
<lne id="752" begin="39" end="39"/>
</linenumbertable>
<localvariabletable>
<lve slot="4" name="753" begin="22" end="32"/>
<lve slot="3" name="34" begin="3" end="39"/>
<lve slot="0" name="17" begin="0" end="39"/>
<lve slot="1" name="341" begin="0" end="39"/>
<lve slot="2" name="754" begin="0" end="39"/>
</localvariabletable>
</operation>
<operation name="755">
<context type="6"/>
<parameters>
<parameter name="19" type="4"/>
<parameter name="29" type="4"/>
</parameters>
<code>
<push arg="755"/>
<push arg="55"/>
<new/>
<store arg="63"/>
<load arg="63"/>
<dup/>
<getasm/>
<load arg="19"/>
<call arg="30"/>
<set arg="756"/>
<dup/>
<getasm/>
<push arg="28"/>
<push arg="8"/>
<new/>
<push arg="757"/>
<push arg="55"/>
<findme/>
<call arg="64"/>
<iterate/>
<store arg="69"/>
<load arg="69"/>
<get arg="38"/>
<load arg="29"/>
<get arg="758"/>
<get arg="759"/>
<get arg="38"/>
<call arg="216"/>
<load arg="69"/>
<get arg="38"/>
<load arg="29"/>
<get arg="758"/>
<get arg="759"/>
<get arg="38"/>
<call arg="216"/>
<call arg="217"/>
<call arg="218"/>
<if arg="354"/>
<load arg="69"/>
<call arg="220"/>
<enditerate/>
<call arg="221"/>
<call arg="222"/>
<call arg="30"/>
<set arg="760"/>
<pop/>
<load arg="29"/>
<get arg="761"/>
<iterate/>
<store arg="69"/>
<load arg="63"/>
<getasm/>
<load arg="63"/>
<load arg="69"/>
<call arg="233"/>
<set arg="762"/>
<enditerate/>
<load arg="29"/>
<get arg="763"/>
<iterate/>
<store arg="69"/>
<load arg="69"/>
<get arg="229"/>
<iterate/>
<store arg="452"/>
<load arg="63"/>
<getasm/>
<load arg="69"/>
<load arg="452"/>
<call arg="230"/>
<set arg="231"/>
<enditerate/>
<enditerate/>
<load arg="63"/>
</code>
<linenumbertable>
<lne id="764" begin="7" end="7"/>
<lne id="765" begin="5" end="9"/>
<lne id="766" begin="15" end="17"/>
<lne id="767" begin="15" end="18"/>
<lne id="768" begin="21" end="21"/>
<lne id="769" begin="21" end="22"/>
<lne id="770" begin="23" end="23"/>
<lne id="771" begin="23" end="24"/>
<lne id="772" begin="23" end="25"/>
<lne id="773" begin="23" end="26"/>
<lne id="774" begin="21" end="27"/>
<lne id="775" begin="28" end="28"/>
<lne id="776" begin="28" end="29"/>
<lne id="777" begin="30" end="30"/>
<lne id="778" begin="30" end="31"/>
<lne id="779" begin="30" end="32"/>
<lne id="780" begin="30" end="33"/>
<lne id="781" begin="28" end="34"/>
<lne id="782" begin="21" end="35"/>
<lne id="783" begin="12" end="42"/>
<lne id="784" begin="10" end="44"/>
<lne id="785" begin="46" end="46"/>
<lne id="786" begin="46" end="47"/>
<lne id="787" begin="50" end="50"/>
<lne id="788" begin="51" end="51"/>
<lne id="789" begin="52" end="52"/>
<lne id="790" begin="53" end="53"/>
<lne id="791" begin="51" end="54"/>
<lne id="792" begin="50" end="55"/>
<lne id="793" begin="46" end="56"/>
<lne id="794" begin="57" end="57"/>
<lne id="795" begin="57" end="58"/>
<lne id="796" begin="61" end="61"/>
<lne id="797" begin="61" end="62"/>
<lne id="798" begin="65" end="65"/>
<lne id="799" begin="66" end="66"/>
<lne id="800" begin="67" end="67"/>
<lne id="801" begin="68" end="68"/>
<lne id="802" begin="66" end="69"/>
<lne id="803" begin="65" end="70"/>
<lne id="804" begin="61" end="71"/>
<lne id="805" begin="57" end="72"/>
<lne id="806" begin="73" end="73"/>
<lne id="807" begin="73" end="73"/>
<lne id="808" begin="46" end="73"/>
</linenumbertable>
<localvariabletable>
<lve slot="4" name="753" begin="20" end="39"/>
<lve slot="4" name="754" begin="49" end="55"/>
<lve slot="5" name="342" begin="64" end="70"/>
<lve slot="4" name="809" begin="60" end="71"/>
<lve slot="3" name="732" begin="3" end="73"/>
<lve slot="0" name="17" begin="0" end="73"/>
<lve slot="1" name="810" begin="0" end="73"/>
<lve slot="2" name="811" begin="0" end="73"/>
</localvariabletable>
</operation>
<operation name="757">
<context type="6"/>
<parameters>
<parameter name="19" type="4"/>
</parameters>
<code>
<push arg="757"/>
<push arg="55"/>
<new/>
<store arg="29"/>
<load arg="29"/>
<dup/>
<getasm/>
<pusht/>
<call arg="30"/>
<set arg="812"/>
<dup/>
<getasm/>
<load arg="19"/>
<get arg="759"/>
<get arg="38"/>
<call arg="30"/>
<set arg="38"/>
<dup/>
<getasm/>
<load arg="19"/>
<get arg="759"/>
<get arg="696"/>
<call arg="148"/>
<call arg="30"/>
<set arg="813"/>
<dup/>
<getasm/>
<load arg="19"/>
<get arg="759"/>
<get arg="814"/>
<call arg="30"/>
<set arg="814"/>
<dup/>
<getasm/>
<push arg="28"/>
<push arg="8"/>
<new/>
<push arg="127"/>
<push arg="55"/>
<findme/>
<call arg="64"/>
<iterate/>
<store arg="63"/>
<load arg="63"/>
<get arg="38"/>
<load arg="19"/>
<get arg="123"/>
<get arg="38"/>
<call arg="216"/>
<call arg="218"/>
<if arg="815"/>
<load arg="63"/>
<call arg="220"/>
<enditerate/>
<call arg="221"/>
<call arg="222"/>
<call arg="30"/>
<set arg="123"/>
<dup/>
<getasm/>
<load arg="19"/>
<get arg="759"/>
<get arg="816"/>
<call arg="30"/>
<set arg="816"/>
<dup/>
<getasm/>
<load arg="19"/>
<get arg="759"/>
<push arg="175"/>
<call arg="817"/>
<call arg="30"/>
<set arg="818"/>
<dup/>
<getasm/>
<load arg="19"/>
<get arg="759"/>
<get arg="819"/>
<get arg="38"/>
<call arg="30"/>
<set arg="820"/>
<pop/>
<load arg="29"/>
<push arg="28"/>
<push arg="8"/>
<new/>
<push arg="821"/>
<push arg="55"/>
<findme/>
<call arg="64"/>
<iterate/>
<store arg="63"/>
<load arg="63"/>
<get arg="38"/>
<load arg="19"/>
<get arg="756"/>
<get arg="38"/>
<call arg="216"/>
<call arg="218"/>
<if arg="822"/>
<load arg="63"/>
<call arg="220"/>
<enditerate/>
<call arg="221"/>
<call arg="222"/>
<set arg="503"/>
<load arg="29"/>
</code>
<linenumbertable>
<lne id="823" begin="7" end="7"/>
<lne id="824" begin="5" end="9"/>
<lne id="825" begin="12" end="12"/>
<lne id="826" begin="12" end="13"/>
<lne id="827" begin="12" end="14"/>
<lne id="828" begin="10" end="16"/>
<lne id="829" begin="19" end="19"/>
<lne id="830" begin="19" end="20"/>
<lne id="831" begin="19" end="21"/>
<lne id="832" begin="19" end="22"/>
<lne id="833" begin="17" end="24"/>
<lne id="834" begin="27" end="27"/>
<lne id="835" begin="27" end="28"/>
<lne id="836" begin="27" end="29"/>
<lne id="837" begin="25" end="31"/>
<lne id="838" begin="37" end="39"/>
<lne id="839" begin="37" end="40"/>
<lne id="840" begin="43" end="43"/>
<lne id="841" begin="43" end="44"/>
<lne id="842" begin="45" end="45"/>
<lne id="843" begin="45" end="46"/>
<lne id="844" begin="45" end="47"/>
<lne id="845" begin="43" end="48"/>
<lne id="846" begin="34" end="55"/>
<lne id="847" begin="32" end="57"/>
<lne id="848" begin="60" end="60"/>
<lne id="849" begin="60" end="61"/>
<lne id="850" begin="60" end="62"/>
<lne id="851" begin="58" end="64"/>
<lne id="852" begin="67" end="67"/>
<lne id="853" begin="67" end="68"/>
<lne id="854" begin="69" end="69"/>
<lne id="855" begin="67" end="70"/>
<lne id="856" begin="65" end="72"/>
<lne id="857" begin="75" end="75"/>
<lne id="858" begin="75" end="76"/>
<lne id="859" begin="75" end="77"/>
<lne id="860" begin="75" end="78"/>
<lne id="861" begin="73" end="80"/>
<lne id="862" begin="82" end="82"/>
<lne id="863" begin="86" end="88"/>
<lne id="864" begin="86" end="89"/>
<lne id="865" begin="92" end="92"/>
<lne id="866" begin="92" end="93"/>
<lne id="867" begin="94" end="94"/>
<lne id="868" begin="94" end="95"/>
<lne id="869" begin="94" end="96"/>
<lne id="870" begin="92" end="97"/>
<lne id="871" begin="83" end="104"/>
<lne id="872" begin="82" end="105"/>
<lne id="873" begin="106" end="106"/>
<lne id="874" begin="106" end="106"/>
<lne id="875" begin="82" end="106"/>
</linenumbertable>
<localvariabletable>
<lve slot="3" name="753" begin="42" end="52"/>
<lve slot="3" name="753" begin="91" end="101"/>
<lve slot="2" name="406" begin="3" end="106"/>
<lve slot="0" name="17" begin="0" end="106"/>
<lve slot="1" name="876" begin="0" end="106"/>
</localvariabletable>
</operation>
<operation name="877">
<context type="6"/>
<parameters>
<parameter name="19" type="4"/>
<parameter name="29" type="4"/>
</parameters>
<code>
<load arg="29"/>
<get arg="342"/>
<get arg="209"/>
<store arg="63"/>
<push arg="28"/>
<push arg="8"/>
<new/>
<push arg="127"/>
<push arg="55"/>
<findme/>
<call arg="64"/>
<iterate/>
<store arg="69"/>
<load arg="69"/>
<get arg="38"/>
<load arg="29"/>
<get arg="209"/>
<get arg="38"/>
<call arg="216"/>
<call arg="218"/>
<if arg="878"/>
<load arg="69"/>
<call arg="220"/>
<enditerate/>
<call arg="221"/>
<call arg="222"/>
<store arg="69"/>
<push arg="877"/>
<push arg="55"/>
<new/>
<store arg="452"/>
<load arg="452"/>
<dup/>
<getasm/>
<load arg="19"/>
<get arg="879"/>
<call arg="30"/>
<set arg="879"/>
<dup/>
<getasm/>
<load arg="29"/>
<get arg="342"/>
<get arg="38"/>
<call arg="30"/>
<set arg="342"/>
<dup/>
<getasm/>
<load arg="29"/>
<get arg="342"/>
<get arg="880"/>
<call arg="148"/>
<call arg="30"/>
<set arg="880"/>
<pop/>
<load arg="452"/>
<getasm/>
<load arg="69"/>
<load arg="63"/>
<load arg="452"/>
<call arg="881"/>
<set arg="209"/>
<load arg="29"/>
<get arg="882"/>
<call arg="211"/>
<call arg="212"/>
<if arg="356"/>
<goto arg="883"/>
<load arg="452"/>
<load arg="29"/>
<get arg="882"/>
<set arg="882"/>
<load arg="29"/>
<get arg="342"/>
<get arg="884"/>
<call arg="211"/>
<call arg="212"/>
<if arg="885"/>
<goto arg="886"/>
<load arg="452"/>
<load arg="29"/>
<get arg="342"/>
<get arg="884"/>
<get arg="887"/>
<set arg="882"/>
<load arg="452"/>
</code>
<linenumbertable>
<lne id="888" begin="0" end="0"/>
<lne id="889" begin="0" end="1"/>
<lne id="890" begin="0" end="2"/>
<lne id="891" begin="7" end="9"/>
<lne id="892" begin="7" end="10"/>
<lne id="893" begin="13" end="13"/>
<lne id="894" begin="13" end="14"/>
<lne id="895" begin="15" end="15"/>
<lne id="896" begin="15" end="16"/>
<lne id="897" begin="15" end="17"/>
<lne id="898" begin="13" end="18"/>
<lne id="899" begin="4" end="25"/>
<lne id="900" begin="34" end="34"/>
<lne id="901" begin="34" end="35"/>
<lne id="902" begin="32" end="37"/>
<lne id="903" begin="40" end="40"/>
<lne id="904" begin="40" end="41"/>
<lne id="905" begin="40" end="42"/>
<lne id="906" begin="38" end="44"/>
<lne id="907" begin="47" end="47"/>
<lne id="908" begin="47" end="48"/>
<lne id="909" begin="47" end="49"/>
<lne id="910" begin="47" end="50"/>
<lne id="911" begin="45" end="52"/>
<lne id="912" begin="54" end="54"/>
<lne id="913" begin="55" end="55"/>
<lne id="914" begin="56" end="56"/>
<lne id="915" begin="57" end="57"/>
<lne id="916" begin="58" end="58"/>
<lne id="917" begin="55" end="59"/>
<lne id="918" begin="54" end="60"/>
<lne id="919" begin="61" end="61"/>
<lne id="920" begin="61" end="62"/>
<lne id="921" begin="61" end="63"/>
<lne id="922" begin="61" end="64"/>
<lne id="923" begin="67" end="67"/>
<lne id="924" begin="68" end="68"/>
<lne id="925" begin="68" end="69"/>
<lne id="926" begin="67" end="70"/>
<lne id="927" begin="61" end="70"/>
<lne id="928" begin="71" end="71"/>
<lne id="929" begin="71" end="72"/>
<lne id="930" begin="71" end="73"/>
<lne id="931" begin="71" end="74"/>
<lne id="932" begin="71" end="75"/>
<lne id="933" begin="78" end="78"/>
<lne id="934" begin="79" end="79"/>
<lne id="935" begin="79" end="80"/>
<lne id="936" begin="79" end="81"/>
<lne id="937" begin="79" end="82"/>
<lne id="938" begin="78" end="83"/>
<lne id="939" begin="71" end="83"/>
<lne id="940" begin="84" end="84"/>
<lne id="941" begin="84" end="84"/>
<lne id="942" begin="54" end="84"/>
</linenumbertable>
<localvariabletable>
<lve slot="4" name="339" begin="12" end="22"/>
<lve slot="5" name="943" begin="30" end="84"/>
<lve slot="3" name="209" begin="3" end="84"/>
<lve slot="4" name="944" begin="26" end="84"/>
<lve slot="0" name="17" begin="0" end="84"/>
<lve slot="1" name="945" begin="0" end="84"/>
<lve slot="2" name="946" begin="0" end="84"/>
</localvariabletable>
</operation>
<operation name="947">
<context type="6"/>
<parameters>
<parameter name="19" type="4"/>
<parameter name="29" type="4"/>
</parameters>
<code>
<push arg="947"/>
<push arg="55"/>
<new/>
<store arg="63"/>
<load arg="63"/>
<dup/>
<getasm/>
<load arg="29"/>
<get arg="345"/>
<get arg="38"/>
<call arg="30"/>
<set arg="38"/>
<dup/>
<getasm/>
<push arg="28"/>
<push arg="8"/>
<new/>
<push arg="127"/>
<push arg="55"/>
<findme/>
<call arg="64"/>
<iterate/>
<store arg="69"/>
<load arg="69"/>
<get arg="38"/>
<load arg="29"/>
<get arg="209"/>
<get arg="38"/>
<call arg="216"/>
<call arg="218"/>
<if arg="735"/>
<load arg="69"/>
<call arg="220"/>
<enditerate/>
<call arg="221"/>
<call arg="222"/>
<call arg="30"/>
<set arg="123"/>
<pop/>
<load arg="29"/>
<get arg="345"/>
<get arg="700"/>
<iterate/>
<store arg="69"/>
<load arg="63"/>
<load arg="63"/>
<get arg="701"/>
<load arg="69"/>
<call arg="148"/>
<call arg="413"/>
<set arg="701"/>
<enditerate/>
<load arg="29"/>
<get arg="345"/>
<get arg="411"/>
<iterate/>
<store arg="69"/>
<load arg="63"/>
<load arg="63"/>
<get arg="411"/>
<getasm/>
<load arg="69"/>
<load arg="63"/>
<call arg="948"/>
<call arg="413"/>
<set arg="411"/>
<enditerate/>
<load arg="29"/>
<get arg="949"/>
<call arg="211"/>
<call arg="212"/>
<if arg="950"/>
<load arg="29"/>
<get arg="951"/>
<iterate/>
<store arg="69"/>
<getasm/>
<load arg="69"/>
<get arg="34"/>
<load arg="63"/>
<push arg="28"/>
<push arg="8"/>
<new/>
<load arg="63"/>
<get arg="411"/>
<iterate/>
<store arg="452"/>
<load arg="452"/>
<get arg="38"/>
<load arg="69"/>
<get arg="732"/>
<get arg="38"/>
<call arg="216"/>
<call arg="218"/>
<if arg="952"/>
<load arg="452"/>
<call arg="220"/>
<enditerate/>
<call arg="221"/>
<call arg="222"/>
<pcall arg="953"/>
<enditerate/>
<goto arg="954"/>
<getasm/>
<load arg="29"/>
<get arg="949"/>
<load arg="63"/>
<load arg="63"/>
<get arg="411"/>
<call arg="65"/>
<pcall arg="953"/>
<load arg="63"/>
</code>
<linenumbertable>
<lne id="955" begin="7" end="7"/>
<lne id="956" begin="7" end="8"/>
<lne id="957" begin="7" end="9"/>
<lne id="958" begin="5" end="11"/>
<lne id="959" begin="17" end="19"/>
<lne id="960" begin="17" end="20"/>
<lne id="961" begin="23" end="23"/>
<lne id="962" begin="23" end="24"/>
<lne id="963" begin="25" end="25"/>
<lne id="964" begin="25" end="26"/>
<lne id="965" begin="25" end="27"/>
<lne id="966" begin="23" end="28"/>
<lne id="967" begin="14" end="35"/>
<lne id="968" begin="12" end="37"/>
<lne id="969" begin="39" end="39"/>
<lne id="970" begin="39" end="40"/>
<lne id="971" begin="39" end="41"/>
<lne id="972" begin="44" end="44"/>
<lne id="973" begin="45" end="45"/>
<lne id="974" begin="45" end="46"/>
<lne id="975" begin="47" end="47"/>
<lne id="976" begin="47" end="48"/>
<lne id="977" begin="45" end="49"/>
<lne id="978" begin="44" end="50"/>
<lne id="979" begin="39" end="51"/>
<lne id="980" begin="52" end="52"/>
<lne id="981" begin="52" end="53"/>
<lne id="982" begin="52" end="54"/>
<lne id="983" begin="57" end="57"/>
<lne id="984" begin="58" end="58"/>
<lne id="985" begin="58" end="59"/>
<lne id="986" begin="60" end="60"/>
<lne id="987" begin="61" end="61"/>
<lne id="988" begin="62" end="62"/>
<lne id="989" begin="60" end="63"/>
<lne id="990" begin="58" end="64"/>
<lne id="991" begin="57" end="65"/>
<lne id="992" begin="52" end="66"/>
<lne id="993" begin="67" end="67"/>
<lne id="994" begin="67" end="68"/>
<lne id="995" begin="67" end="69"/>
<lne id="996" begin="67" end="70"/>
<lne id="997" begin="72" end="72"/>
<lne id="998" begin="72" end="73"/>
<lne id="999" begin="76" end="76"/>
<lne id="1000" begin="77" end="77"/>
<lne id="1001" begin="77" end="78"/>
<lne id="1002" begin="79" end="79"/>
<lne id="1003" begin="83" end="83"/>
<lne id="1004" begin="83" end="84"/>
<lne id="1005" begin="87" end="87"/>
<lne id="1006" begin="87" end="88"/>
<lne id="1007" begin="89" end="89"/>
<lne id="1008" begin="89" end="90"/>
<lne id="1009" begin="89" end="91"/>
<lne id="1010" begin="87" end="92"/>
<lne id="1011" begin="80" end="99"/>
<lne id="1012" begin="76" end="100"/>
<lne id="1013" begin="72" end="101"/>
<lne id="1014" begin="103" end="103"/>
<lne id="1015" begin="104" end="104"/>
<lne id="1016" begin="104" end="105"/>
<lne id="1017" begin="106" end="106"/>
<lne id="1018" begin="107" end="107"/>
<lne id="1019" begin="107" end="108"/>
<lne id="1020" begin="107" end="109"/>
<lne id="1021" begin="103" end="110"/>
<lne id="1022" begin="67" end="110"/>
<lne id="1023" begin="111" end="111"/>
<lne id="1024" begin="111" end="111"/>
<lne id="1025" begin="39" end="111"/>
</linenumbertable>
<localvariabletable>
<lve slot="4" name="753" begin="22" end="32"/>
<lve slot="4" name="731" begin="43" end="50"/>
<lve slot="4" name="732" begin="56" end="65"/>
<lve slot="5" name="753" begin="86" end="96"/>
<lve slot="4" name="34" begin="75" end="100"/>
<lve slot="3" name="345" begin="3" end="111"/>
<lve slot="0" name="17" begin="0" end="111"/>
<lve slot="1" name="756" begin="0" end="111"/>
<lve slot="2" name="1026" begin="0" end="111"/>
</localvariabletable>
</operation>
<operation name="1027">
<context type="6"/>
<parameters>
<parameter name="19" type="4"/>
<parameter name="29" type="4"/>
</parameters>
<code>
<push arg="1027"/>
<push arg="55"/>
<new/>
<store arg="63"/>
<load arg="63"/>
<dup/>
<getasm/>
<load arg="19"/>
<get arg="38"/>
<call arg="30"/>
<set arg="38"/>
<dup/>
<getasm/>
<load arg="19"/>
<get arg="696"/>
<get arg="697"/>
<call arg="30"/>
<set arg="696"/>
<dup/>
<getasm/>
<load arg="29"/>
<call arg="30"/>
<set arg="345"/>
<pop/>
<load arg="19"/>
<get arg="700"/>
<iterate/>
<store arg="69"/>
<load arg="63"/>
<load arg="63"/>
<get arg="701"/>
<load arg="69"/>
<call arg="148"/>
<call arg="413"/>
<set arg="701"/>
<enditerate/>
<load arg="19"/>
<get arg="344"/>
<call arg="211"/>
<call arg="212"/>
<if arg="1028"/>
<goto arg="1029"/>
<load arg="63"/>
<load arg="19"/>
<get arg="344"/>
<call arg="699"/>
<set arg="344"/>
<load arg="29"/>
<load arg="29"/>
<get arg="411"/>
<load arg="63"/>
<call arg="413"/>
<set arg="411"/>
<load arg="63"/>
</code>
<linenumbertable>
<lne id="1030" begin="7" end="7"/>
<lne id="1031" begin="7" end="8"/>
<lne id="1032" begin="5" end="10"/>
<lne id="1033" begin="13" end="13"/>
<lne id="1034" begin="13" end="14"/>
<lne id="1035" begin="13" end="15"/>
<lne id="1036" begin="11" end="17"/>
<lne id="1037" begin="20" end="20"/>
<lne id="1038" begin="18" end="22"/>
<lne id="1039" begin="24" end="24"/>
<lne id="1040" begin="24" end="25"/>
<lne id="1041" begin="28" end="28"/>
<lne id="1042" begin="29" end="29"/>
<lne id="1043" begin="29" end="30"/>
<lne id="1044" begin="31" end="31"/>
<lne id="1045" begin="31" end="32"/>
<lne id="1046" begin="29" end="33"/>
<lne id="1047" begin="28" end="34"/>
<lne id="1048" begin="24" end="35"/>
<lne id="1049" begin="36" end="36"/>
<lne id="1050" begin="36" end="37"/>
<lne id="1051" begin="36" end="38"/>
<lne id="1052" begin="36" end="39"/>
<lne id="1053" begin="42" end="42"/>
<lne id="1054" begin="43" end="43"/>
<lne id="1055" begin="43" end="44"/>
<lne id="1056" begin="43" end="45"/>
<lne id="1057" begin="42" end="46"/>
<lne id="1058" begin="36" end="46"/>
<lne id="1059" begin="47" end="47"/>
<lne id="1060" begin="48" end="48"/>
<lne id="1061" begin="48" end="49"/>
<lne id="1062" begin="50" end="50"/>
<lne id="1063" begin="48" end="51"/>
<lne id="1064" begin="47" end="52"/>
<lne id="1065" begin="53" end="53"/>
<lne id="1066" begin="53" end="53"/>
<lne id="1067" begin="24" end="53"/>
</linenumbertable>
<localvariabletable>
<lve slot="4" name="731" begin="27" end="34"/>
<lve slot="3" name="732" begin="3" end="53"/>
<lve slot="0" name="17" begin="0" end="53"/>
<lve slot="1" name="1068" begin="0" end="53"/>
<lve slot="2" name="345" begin="0" end="53"/>
</localvariabletable>
</operation>
<operation name="1069">
<context type="6"/>
<parameters>
<parameter name="19" type="4"/>
<parameter name="29" type="4"/>
<parameter name="63" type="4"/>
</parameters>
<code>
<push arg="1069"/>
<push arg="55"/>
<new/>
<store arg="69"/>
<load arg="69"/>
<dup/>
<getasm/>
<load arg="19"/>
<call arg="699"/>
<call arg="30"/>
<set arg="34"/>
<dup/>
<getasm/>
<load arg="29"/>
<call arg="30"/>
<set arg="345"/>
<dup/>
<getasm/>
<load arg="63"/>
<call arg="30"/>
<set arg="732"/>
<pop/>
<load arg="29"/>
<get arg="762"/>
<load arg="69"/>
<pcall arg="413"/>
<load arg="69"/>
</code>
<linenumbertable>
<lne id="1070" begin="7" end="7"/>
<lne id="1071" begin="7" end="8"/>
<lne id="1072" begin="5" end="10"/>
<lne id="1073" begin="13" end="13"/>
<lne id="1074" begin="11" end="15"/>
<lne id="1075" begin="18" end="18"/>
<lne id="1076" begin="16" end="20"/>
<lne id="1077" begin="22" end="22"/>
<lne id="1078" begin="22" end="23"/>
<lne id="1079" begin="24" end="24"/>
<lne id="1080" begin="22" end="25"/>
<lne id="1081" begin="26" end="26"/>
<lne id="1082" begin="26" end="26"/>
<lne id="1083" begin="22" end="26"/>
</linenumbertable>
<localvariabletable>
<lve slot="4" name="34" begin="3" end="26"/>
<lve slot="0" name="17" begin="0" end="26"/>
<lve slot="1" name="1084" begin="0" end="26"/>
<lve slot="2" name="345" begin="0" end="26"/>
<lve slot="3" name="732" begin="0" end="26"/>
</localvariabletable>
</operation>
<operation name="1085">
<context type="6"/>
<parameters>
<parameter name="19" type="4"/>
<parameter name="29" type="4"/>
<parameter name="63" type="4"/>
</parameters>
<code>
<push arg="1085"/>
<push arg="55"/>
<new/>
<store arg="69"/>
<load arg="69"/>
<dup/>
<getasm/>
<load arg="29"/>
<get arg="38"/>
<call arg="30"/>
<set arg="38"/>
<dup/>
<getasm/>
<load arg="19"/>
<call arg="30"/>
<set arg="123"/>
<dup/>
<getasm/>
<load arg="63"/>
<call arg="30"/>
<set arg="1086"/>
<pop/>
<load arg="69"/>
</code>
<linenumbertable>
<lne id="1087" begin="7" end="7"/>
<lne id="1088" begin="7" end="8"/>
<lne id="1089" begin="5" end="10"/>
<lne id="1090" begin="13" end="13"/>
<lne id="1091" begin="11" end="15"/>
<lne id="1092" begin="18" end="18"/>
<lne id="1093" begin="16" end="20"/>
<lne id="1094" begin="22" end="22"/>
<lne id="1095" begin="22" end="22"/>
<lne id="1096" begin="22" end="22"/>
</linenumbertable>
<localvariabletable>
<lve slot="4" name="209" begin="3" end="22"/>
<lve slot="0" name="17" begin="0" end="22"/>
<lve slot="1" name="145" begin="0" end="22"/>
<lve slot="2" name="693" begin="0" end="22"/>
<lve slot="3" name="1097" begin="0" end="22"/>
</localvariabletable>
</operation>
<operation name="1098">
<context type="6"/>
<parameters>
<parameter name="19" type="4"/>
<parameter name="29" type="4"/>
</parameters>
<code>
<push arg="1099"/>
<push arg="55"/>
<new/>
<store arg="63"/>
<load arg="63"/>
<pop/>
<getasm/>
<load arg="19"/>
<load arg="63"/>
<call arg="1100"/>
<store arg="63"/>
<load arg="63"/>
<load arg="29"/>
<set arg="1101"/>
<load arg="63"/>
</code>
<linenumbertable>
<lne id="1102" begin="6" end="6"/>
<lne id="1103" begin="7" end="7"/>
<lne id="1104" begin="8" end="8"/>
<lne id="1105" begin="6" end="9"/>
<lne id="1106" begin="6" end="10"/>
<lne id="1107" begin="11" end="11"/>
<lne id="1108" begin="12" end="12"/>
<lne id="1109" begin="11" end="13"/>
<lne id="1110" begin="14" end="14"/>
<lne id="1111" begin="14" end="14"/>
<lne id="1112" begin="6" end="14"/>
</linenumbertable>
<localvariabletable>
<lve slot="3" name="406" begin="3" end="14"/>
<lve slot="0" name="17" begin="0" end="14"/>
<lve slot="1" name="1113" begin="0" end="14"/>
<lve slot="2" name="756" begin="0" end="14"/>
</localvariabletable>
</operation>
<operation name="1114">
<context type="6"/>
<parameters>
<parameter name="19" type="4"/>
<parameter name="29" type="4"/>
</parameters>
<code>
<push arg="1099"/>
<push arg="55"/>
<new/>
<store arg="63"/>
<load arg="63"/>
<pop/>
<getasm/>
<load arg="19"/>
<load arg="63"/>
<call arg="1100"/>
<store arg="63"/>
<load arg="63"/>
<load arg="29"/>
<set arg="1115"/>
<load arg="63"/>
</code>
<linenumbertable>
<lne id="1116" begin="6" end="6"/>
<lne id="1117" begin="7" end="7"/>
<lne id="1118" begin="8" end="8"/>
<lne id="1119" begin="6" end="9"/>
<lne id="1120" begin="6" end="10"/>
<lne id="1121" begin="11" end="11"/>
<lne id="1122" begin="12" end="12"/>
<lne id="1123" begin="11" end="13"/>
<lne id="1124" begin="14" end="14"/>
<lne id="1125" begin="14" end="14"/>
<lne id="1126" begin="6" end="14"/>
</linenumbertable>
<localvariabletable>
<lve slot="3" name="406" begin="3" end="14"/>
<lve slot="0" name="17" begin="0" end="14"/>
<lve slot="1" name="1113" begin="0" end="14"/>
<lve slot="2" name="756" begin="0" end="14"/>
</localvariabletable>
</operation>
<operation name="1127">
<context type="6"/>
<parameters>
<parameter name="19" type="4"/>
<parameter name="29" type="4"/>
</parameters>
<code>
<load arg="29"/>
<load arg="19"/>
<get arg="503"/>
<get arg="38"/>
<set arg="38"/>
<load arg="19"/>
<get arg="123"/>
<call arg="211"/>
<call arg="212"/>
<if arg="1128"/>
<goto arg="1129"/>
<load arg="29"/>
<pusht/>
<set arg="812"/>
<load arg="29"/>
<push arg="28"/>
<push arg="8"/>
<new/>
<push arg="127"/>
<push arg="55"/>
<findme/>
<call arg="64"/>
<iterate/>
<store arg="63"/>
<load arg="63"/>
<get arg="38"/>
<load arg="19"/>
<get arg="123"/>
<get arg="38"/>
<call arg="216"/>
<call arg="218"/>
<if arg="1130"/>
<load arg="63"/>
<call arg="220"/>
<enditerate/>
<call arg="221"/>
<call arg="222"/>
<set arg="123"/>
<load arg="29"/>
<load arg="19"/>
<load arg="19"/>
<get arg="503"/>
<call arg="1131"/>
<set arg="1132"/>
<load arg="29"/>
</code>
<linenumbertable>
<lne id="1133" begin="0" end="0"/>
<lne id="1134" begin="1" end="1"/>
<lne id="1135" begin="1" end="2"/>
<lne id="1136" begin="1" end="3"/>
<lne id="1137" begin="0" end="4"/>
<lne id="1138" begin="5" end="5"/>
<lne id="1139" begin="5" end="6"/>
<lne id="1140" begin="5" end="7"/>
<lne id="1141" begin="5" end="8"/>
<lne id="1142" begin="11" end="11"/>
<lne id="1143" begin="12" end="12"/>
<lne id="1144" begin="11" end="13"/>
<lne id="1145" begin="14" end="14"/>
<lne id="1146" begin="18" end="20"/>
<lne id="1147" begin="18" end="21"/>
<lne id="1148" begin="24" end="24"/>
<lne id="1149" begin="24" end="25"/>
<lne id="1150" begin="26" end="26"/>
<lne id="1151" begin="26" end="27"/>
<lne id="1152" begin="26" end="28"/>
<lne id="1153" begin="24" end="29"/>
<lne id="1154" begin="15" end="36"/>
<lne id="1155" begin="14" end="37"/>
<lne id="1156" begin="5" end="37"/>
<lne id="1157" begin="38" end="38"/>
<lne id="1158" begin="39" end="39"/>
<lne id="1159" begin="40" end="40"/>
<lne id="1160" begin="40" end="41"/>
<lne id="1161" begin="39" end="42"/>
<lne id="1162" begin="38" end="43"/>
<lne id="1163" begin="44" end="44"/>
<lne id="1164" begin="44" end="44"/>
<lne id="1165" begin="0" end="44"/>
</linenumbertable>
<localvariabletable>
<lve slot="3" name="339" begin="23" end="33"/>
<lve slot="0" name="17" begin="0" end="44"/>
<lve slot="1" name="1166" begin="0" end="44"/>
<lve slot="2" name="406" begin="0" end="44"/>
</localvariabletable>
</operation>
</asm>
|
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_21829_3001.asm | ljhsiun2/medusa | 9 | 101526 | <reponame>ljhsiun2/medusa
.global s_prepare_buffers
s_prepare_buffers:
push %r14
push %r15
push %r8
push %r9
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_D_ht+0xbbae, %r15
nop
sub %rcx, %rcx
movw $0x6162, (%r15)
nop
nop
nop
nop
cmp %rdx, %rdx
lea addresses_A_ht+0xa00e, %rsi
lea addresses_WT_ht+0x1b3be, %rdi
nop
nop
nop
cmp %r8, %r8
mov $124, %rcx
rep movsw
nop
nop
nop
nop
dec %r8
lea addresses_UC_ht+0x12cae, %rsi
lea addresses_WC_ht+0x113ae, %rdi
clflush (%rsi)
nop
nop
nop
nop
nop
cmp %r14, %r14
mov $46, %rcx
rep movsq
nop
and $52938, %rcx
lea addresses_D_ht+0x1ec1e, %r8
nop
mfence
vmovups (%r8), %ymm5
vextracti128 $0, %ymm5, %xmm5
vpextrq $1, %xmm5, %r14
nop
nop
nop
nop
nop
xor %rdi, %rdi
lea addresses_A_ht+0x722e, %rsi
lea addresses_A_ht+0x162c6, %rdi
nop
nop
add $11687, %rdx
mov $47, %rcx
rep movsw
nop
nop
sub $17095, %rdi
lea addresses_WT_ht+0x1bfae, %r8
nop
nop
xor $32600, %r9
mov (%r8), %rdx
nop
nop
nop
nop
and %r9, %r9
lea addresses_normal_ht+0x1adae, %rdx
nop
nop
xor %rsi, %rsi
mov (%rdx), %di
nop
nop
nop
nop
nop
add %rsi, %rsi
lea addresses_D_ht+0x6916, %rsi
lea addresses_UC_ht+0x720, %rdi
nop
nop
inc %r8
mov $125, %rcx
rep movsw
nop
nop
add %r8, %r8
lea addresses_A_ht+0x90e, %rsi
lea addresses_A_ht+0xc3ae, %rdi
nop
nop
and %rdx, %rdx
mov $28, %rcx
rep movsw
nop
nop
and $2803, %rsi
lea addresses_WT_ht+0x1da4e, %r14
clflush (%r14)
nop
nop
nop
nop
nop
sub %r9, %r9
mov (%r14), %rdi
xor $8034, %r15
lea addresses_WT_ht+0x179e, %r9
nop
nop
cmp %rdi, %rdi
movups (%r9), %xmm1
vpextrq $0, %xmm1, %rcx
nop
nop
nop
nop
nop
dec %r8
lea addresses_D_ht+0x40ee, %rcx
sub %rsi, %rsi
mov (%rcx), %r9
nop
nop
nop
nop
nop
dec %r9
lea addresses_A_ht+0x8c5e, %rsi
lea addresses_WT_ht+0x1e21a, %rdi
nop
nop
nop
nop
nop
sub $65530, %rdx
mov $50, %rcx
rep movsw
nop
nop
nop
and $49704, %r9
lea addresses_D_ht+0xdfae, %rdx
clflush (%rdx)
nop
nop
nop
sub $5279, %rsi
mov $0x6162636465666768, %rcx
movq %rcx, %xmm2
movups %xmm2, (%rdx)
nop
sub %rcx, %rcx
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %r9
pop %r8
pop %r15
pop %r14
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r15
push %r8
push %rax
push %rbx
push %rcx
push %rdx
// Store
lea addresses_A+0xdae, %r15
clflush (%r15)
nop
nop
nop
sub %rcx, %rcx
movl $0x51525354, (%r15)
nop
nop
nop
nop
nop
xor $21276, %r8
// Store
lea addresses_A+0xfc2e, %rax
add $42732, %rdx
mov $0x5152535455565758, %r10
movq %r10, %xmm0
movups %xmm0, (%rax)
nop
nop
nop
inc %r10
// Store
lea addresses_normal+0x1b0ae, %r8
nop
cmp %rcx, %rcx
mov $0x5152535455565758, %rbx
movq %rbx, %xmm4
movups %xmm4, (%r8)
// Exception!!!
nop
nop
nop
nop
mov (0), %rdx
nop
nop
nop
nop
cmp %rax, %rax
// Faulty Load
lea addresses_D+0x6fae, %r8
nop
nop
nop
xor $47088, %rax
movups (%r8), %xmm5
vpextrq $0, %xmm5, %rbx
lea oracles, %rax
and $0xff, %rbx
shlq $12, %rbx
mov (%rax,%rbx,1), %rbx
pop %rdx
pop %rcx
pop %rbx
pop %rax
pop %r8
pop %r15
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'src': {'type': 'addresses_D', 'same': False, 'size': 8, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'dst': {'type': 'addresses_A', 'same': False, 'size': 4, 'congruent': 7, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'dst': {'type': 'addresses_A', 'same': False, 'size': 16, 'congruent': 7, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'dst': {'type': 'addresses_normal', 'same': False, 'size': 16, 'congruent': 7, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
[Faulty Load]
{'src': {'type': 'addresses_D', 'same': True, 'size': 16, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'dst': {'type': 'addresses_D_ht', 'same': True, 'size': 2, 'congruent': 10, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'src': {'type': 'addresses_A_ht', 'congruent': 3, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 4, 'same': False}, 'OP': 'REPM'}
{'src': {'type': 'addresses_UC_ht', 'congruent': 8, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 10, 'same': False}, 'OP': 'REPM'}
{'src': {'type': 'addresses_D_ht', 'same': False, 'size': 32, 'congruent': 4, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_A_ht', 'congruent': 7, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 1, 'same': False}, 'OP': 'REPM'}
{'src': {'type': 'addresses_WT_ht', 'same': False, 'size': 8, 'congruent': 11, 'NT': True, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_normal_ht', 'same': False, 'size': 2, 'congruent': 2, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_D_ht', 'congruent': 3, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 1, 'same': False}, 'OP': 'REPM'}
{'src': {'type': 'addresses_A_ht', 'congruent': 5, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 9, 'same': False}, 'OP': 'REPM'}
{'src': {'type': 'addresses_WT_ht', 'same': False, 'size': 8, 'congruent': 5, 'NT': False, 'AVXalign': True}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_WT_ht', 'same': False, 'size': 16, 'congruent': 1, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_D_ht', 'same': False, 'size': 8, 'congruent': 5, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_A_ht', 'congruent': 3, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 1, 'same': False}, 'OP': 'REPM'}
{'dst': {'type': 'addresses_D_ht', 'same': False, 'size': 16, 'congruent': 10, 'NT': False, '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
*/
|
src/fot/FOL/PropositionalLogic/TheoremsI.agda | asr/fotc | 11 | 127 | ------------------------------------------------------------------------------
-- Propositional logic theorems
------------------------------------------------------------------------------
{-# OPTIONS --exact-split #-}
{-# OPTIONS --no-sized-types #-}
{-# OPTIONS --no-universe-polymorphism #-}
{-# OPTIONS --without-K #-}
module FOL.PropositionalLogic.TheoremsI where
-- The theorems below are valid on intuitionistic logic and with an
-- empty domain.
open import FOL.Base hiding ( D≢∅ ; pem )
------------------------------------------------------------------------------
-- Boolean laws
→-transposition : {P Q : Set} → (P → Q) → ¬ Q → ¬ P
→-transposition p→q ¬q p = ¬q (p→q p)
∧∨-dist : {P Q R : Set} → P ∧ (Q ∨ R) ↔ P ∧ Q ∨ P ∧ R
∧∨-dist {P} {Q} {R} = l→r , r→l
where
l→r : P ∧ (Q ∨ R) → P ∧ Q ∨ P ∧ R
l→r (p , inj₁ q) = inj₁ (p , q)
l→r (p , inj₂ r) = inj₂ (p , r)
r→l : P ∧ Q ∨ P ∧ R → P ∧ (Q ∨ R)
r→l (inj₁ (p , q)) = p , inj₁ q
r→l (inj₂ (p , r)) = p , inj₂ r
∧∨-dist' : {P Q R : Set} → P ∧ (Q ∨ R) ⇔ P ∧ Q ∨ P ∧ R
∧∨-dist' {P} {Q} {R} = l⇒r , r⇒l
where
l→r : P ∧ (Q ∨ R) → P ∧ Q ∨ P ∧ R
l→r (p , inj₁ q) = inj₁ (p , q)
l→r (p , inj₂ r) = inj₂ (p , r)
l⇒r : P ∧ (Q ∨ R) ⇒ P ∧ Q ∨ P ∧ R
l⇒r = fun l→r
r→l : P ∧ Q ∨ P ∧ R → P ∧ (Q ∨ R)
r→l (inj₁ (p , q)) = p , inj₁ q
r→l (inj₂ (p , r)) = p , inj₂ r
-- TODO (21 February 2015). In r⇒l we needed parenthesis in the
-- antecedent, but they aren't needed in r→l. That is, the fixity of
-- _⇒_ should be the same than the fixity of _→_.
r⇒l : (P ∧ Q ∨ P ∧ R) ⇒ P ∧ (Q ∨ R)
r⇒l = fun r→l
DM : {P Q : Set} → ¬ (P ∨ Q) ↔ ¬ P ∧ ¬ Q
DM {P} {Q} = l→r , r→l
where
l→r : ¬ (P ∨ Q) → ¬ P ∧ ¬ Q
l→r h = (λ p → h (inj₁ p)) , (λ q → h (inj₂ q))
r→l : ¬ P ∧ ¬ Q → ¬ (P ∨ Q)
r→l (¬p , ¬q) p∨q = case ¬p ¬q p∨q
-- The principle of the excluded middle implies the double negation
-- elimination
pem→¬¬-elim : ∀ {P} → (P ∨ ¬ P) → ¬ ¬ P → P
pem→¬¬-elim (inj₁ p) _ = p
pem→¬¬-elim (inj₂ ¬p) h = ⊥-elim (h ¬p)
|
src/main.asm | BlockoS/up-news | 2 | 88330 | <reponame>BlockoS/up-news<gh_stars>1-10
.include "system.inc"
.include "irq.inc"
.include "vce.inc"
.include "vdc.inc"
.include "psg.inc"
.include "macro.inc"
.include "word.inc"
.include "memcpy.inc"
.code
.bank 0
.org $e000
; .include "math_tbl.asm"
.include "data/spiral.inc"
.include "irq_reset.asm"
.include "vdc.asm"
.include "vce.asm"
.include "psg.asm"
.include "utils.asm"
.include "map.asm"
.include "vgm.asm"
.zp
_fx.id .ds 1
_fx.counter .ds 2
_clean_bat .ds 1
.code
main:
jsr vgm_setup
jsr vdc_xres_256
jsr vdc_yres_224
lda #VDC_BG_32x64
jsr vdc_set_bat_size
stz <_fx.id
cli
.loop:
lda <_fx.id
asl A
tax
lda (fx.duration ), X
sta <_fx.counter
lda (fx.duration+1), X
sta <_fx.counter+1
bsr .run.fx
inc <_fx.id
lda #((fx.duration-fx.proc) / 2)
cmp <_fx.id
bne .no_reset
stz <_fx.id
.no_reset:
bra .loop
.run.fx:
jmp [fx.proc, X]
fx.proc:
.dw wobbly_news, dr16, spiral.init, spiral.2, spiral.3, spiral.1
.dw wobbly_weather, dr16, checker.fx
fx.duration:
.dw 400, 0, 0, 1200, 1200, 1200
.dw 260, 0, 1024
checker.fx:
lda #bank(checker)
tam #$04
lda #bank(weather.icon.begin)
tam #$05
jsr checker
rts
vgm_setup:
lda #low(storm_base_address)
sta <vgm_base
sta <vgm_ptr
lda #high(storm_base_address)
sta <vgm_base+1
sta <vgm_ptr+1
lda #storm_bank
sta <vgm_bank
lda <vgm_base+1
clc
adc #$20
sta <vgm_end
lda #storm_loop_bank
sta <vgm_loop_bank
stw #storm_loop, <vgm_loop_ptr
rts
;-----------------------------------------------------------------------
; Timer interrupt
;-----------------------------------------------------------------------
_timer:
timer_ack ; acknowledge timer interrupt
rti
;-----------------------------------------------------------------------
; IRQ2 interrupt
;-----------------------------------------------------------------------
_irq_2:
rti
;-----------------------------------------------------------------------
; NMI interrupt
;-----------------------------------------------------------------------
_nmi:
rti
;-----------------------------------------------------------------------
; IRQ1 interrupt
;-----------------------------------------------------------------------
_irq_1:
pha ; save registers
phx
phy
lda video_reg ; get VDC status register
sta <vdc_sr
@vsync: ; vsync interrupt
bbr5 <vdc_sr, @hsync
inc <irq_cnt ; update irq counter (for wait_vsync)
jmp [vsync_hook]
@hsync:
bbr2 <vdc_sr, @exit
jmp [hsync_hook]
@exit:
; lda <vdc_reg ; restore VDC register index
; sta video_reg
_dummy:
ply
plx
pla
jsr vgm_update
rti
@user_hsync:
jmp [hsync_hook]
@user_vsync:
jmp [vsync_hook]
.include "wobbly_background.asm"
.include "transitions/dr16.asm"
.include "spiral.fx.asm"
;-----------------------------------------------------------------------
; Effect
;-----------------------------------------------------------------------
.code
.bank 3
.org $8000
.include "checker.asm"
.data
.bank 4
.org $8000
and_now.begin:
and_now.pal:
.incbin "data/and_now.pal"
and_now.data:
.incbin "data/and_now.bin"
and_now.end:
weather.begin:
weather.pal:
.incbin "data/and_now_the_weather.pal"
weather.data:
.incbin "data/and_now_the_weather.bin"
weather.end:
.data
.bank 5
.org $A000
weather.icon.begin:
weather.icon.pal:
.incbin "data/weather.pal"
weather.icon.data:
.incbin "data/weather.bin"
weather.icon.end:
.include "data/storm/storm.inc"
;-----------------------------------------------------------------------
; Vector table
;-----------------------------------------------------------------------
.data
.bank 0
.org $fff6
.dw _irq_2
.dw _irq_1
.dw _timer
.dw _nmi
.dw _reset
|
programs/oeis/083/A083822.asm | neoneye/loda | 22 | 20514 | <reponame>neoneye/loda
; A083822: a(n) = digit reversal of 3*n, divided by 3.
; 1,2,3,7,17,27,4,14,24,1,11,21,31,8,18,28,5,15,25,2,12,22,32,9,19,29,6,16,26,3,13,23,33,67,167,267,37,137,237,7,107,207,307,77,177,277,47,147,247,17,117,217,317,87,187,287,57,157,257,27,127,227,327,97,197,297,34,134,234,4,104,204,304,74,174,274,44,144,244,14,114,214,314,84,184,284,54,154,254,24,124,224,324,94,194,294,64,164,264,1
add $0,1
mul $0,3
seq $0,4086 ; Read n backwards (referred to as R(n) in many sequences).
div $0,3
|
programs/oeis/228/A228320.asm | karttu/loda | 1 | 105235 | ; A228320: The Wiener index of the graph obtained by applying Mycielski's construction to the cycle graph C(n).
; 203,280,369,470,583,708,845,994,1155,1328,1513,1710,1919,2140,2373,2618,2875,3144,3425,3718,4023,4340,4669,5010,5363,5728,6105,6494,6895,7308,7733,8170,8619,9080,9553,10038,10535,11044,11565
add $0,6
mul $0,6
bin $0,2
mov $1,$0
div $1,3
sub $1,7
|
issues/universal-quantified-functions-option/NonFOLHigherOrderFunctions.agda | asr/apia | 10 | 17317 | ------------------------------------------------------------------------------
-- Testing the translation of higher-order functions
------------------------------------------------------------------------------
{-# OPTIONS --exact-split #-}
{-# OPTIONS --no-universe-polymorphism #-}
{-# OPTIONS --universal-quantified-functions #-}
{-# OPTIONS --without-K #-}
-- We can use the Agda pragma @--universal-quantified-functions@ to
-- translate higher-order functions. The canonical examples are the
-- conversion rules for the λ-abstraction and the fixed-point
-- operator.
module NonFOLHigherOrderFunctions where
infixl 6 _∙_
infix 4 _≡_
postulate
D : Set
_≡_ : D → D → Set
lam : (D → D) → D
_∙_ : D → D → D
fix : (D → D) → D
postulate beta : (f : D → D) → (a : D) → (lam f) ∙ a ≡ f a
{-# ATP axiom beta #-}
postulate fix-f : (f : D → D) → fix f ≡ f (fix f)
{-# ATP axiom fix-f #-}
-- We need to have at least one conjecture to generate a TPTP file.
postulate refl : ∀ d → d ≡ d
{-# ATP prove refl #-}
|
src/q_sound.canberra.adb | jfuica/bingada | 4 | 22884 | <reponame>jfuica/bingada<gh_stars>1-10
--*****************************************************************************
--*
--* PROJECT: BINGADA
--*
--* FILE: q_sound.adb
--*
--* AUTHOR: Manuel <mgrojo at github>
--*
--*****************************************************************************
-- External sound library
--
with Canberra;
with Ada.Directories;
with Ada.Strings.Fixed;
with Gtkada.Intl;
package body Q_Sound is
V_Context : Canberra.Context := Canberra.Create
(Name => "BingAda",
Id => "bingada.lovelace",
Icon => "applications-games");
--==================================================================
procedure P_Play_Number (V_Number : Positive) is
C_Number_Image : constant String := Ada.Strings.Fixed.Trim
(V_Number'Image, Ada.Strings.Left);
C_Path : constant String := "media/";
C_Extension : constant String := ".ogg";
C_Lang_Code_Last : constant := 2;
C_Locale : constant String := Gtkada.Intl.Getlocale;
C_Default_Lang : constant String := "en";
V_Lang : String (1 .. C_Lang_Code_Last) := C_Default_Lang;
V_Sound : Canberra.Sound;
begin
if C_Locale'Length >= C_Lang_Code_Last then
V_Lang := C_Locale (C_Locale'First ..
C_Locale'First + C_Lang_Code_Last - 1);
end if;
if not Ada.Directories.Exists
(C_Path & V_Lang & '/' & C_Number_Image & C_Extension) then
V_Lang := C_Default_Lang;
end if;
V_Context.Play_File
(File_Name => C_Path & V_Lang & '/' & C_Number_Image & C_Extension,
File_Sound => V_Sound,
Kind => Canberra.Music,
Name => "Number");
end P_Play_Number;
--==================================================================
-- Nothing to do in the canberra version
--
procedure P_Clean_Up is null;
end Q_Sound;
|
gfx/pokemon/steelix/anim.asm | Dev727/ancientplatinum | 28 | 17851 | frame 1, 14
frame 2, 18
frame 3, 28
frame 2, 08
frame 1, 06
endanim
|
src/main.adb | kanigsson/base58 | 2 | 7509 | with Ada.Text_IO;
with Base;
procedure Main is
begin
Ada.Text_IO.Put_Line (String (Base.Encode ("toto")));
end Main;
|
programs/oeis/193/A193656.asm | neoneye/loda | 22 | 177125 | ; A193656: Q-residue of the triangle p(n,k)=(2^(n - k))*5^k, 0<=k<=n, where Q is the triangular array (t(i,j)) given by t(i,j)=1. (See Comments.)
; 1,7,43,247,1363,7327,38683,201607,1040803,5335087,27199723,138095767,698867443,3527891647,17773675963,89405250727,449173737283,2254458621007,11306652843403,56670703170487,283903271666323
mov $1,5
pow $1,$0
mul $1,3
mov $2,$0
mov $3,$0
add $3,$0
add $0,3
sub $2,$0
add $2,1
pow $2,$3
mul $2,2
sub $1,$2
div $1,2
mul $1,2
add $1,1
mov $0,$1
|
Sources/Model/duck_p.adb | ForYouEyesOnly/Space-Convoy | 1 | 8465 | --
-- Jan & <NAME>, Australia, July 2011
--
with GL, GL.Materials, GLOBE_3D.Math;
package body Duck_P is
-- Pretty output: FALSE
use GL, GL.Materials, GLOBE_3D, GLOBE_3D.Math;
-- begin Separator # 1
-- VRML: [# triangle mesh
-- ]
matos_1 : constant Material_type := (
ambient => (0.0, 0.0, 0.0, 1.0),
specular => (0.0, 0.0, 0.0, 1.0),
diffuse => (1.0, 1.0, 1.0, 1.0),
emission => (0.0, 0.0, 0.0, 1.0),
shininess => 128.0
);
coord_1 : constant Point_3D_array :=
((-0.820852, -2.0, 25.392281), -- VRML: [# coord point 0
-- ]
(1.945565, -2.0, 24.677994), (-2.253384, -2.0, 19.844109), (0.513033, -2.0, 19.129824), (3.27945, -2.0, 18.415537),
(-3.685915, -2.0, 14.295938), (-0.919498, -2.0, 13.581653), (1.846919, -2.0, 12.867367), (4.613336, -2.0, 12.153081), (-5.118447, -2.0, 8.747767),
(-2.35203, -2.0, 8.033482), (0.414387, -2.0, 7.319196), (3.180804, -2.0, 6.60491), (5.947221, -2.0, 5.890624), (-6.550979, -2.0, 3.199596),
(-3.784562, -2.0, 2.485311), (-1.018144, -2.0, 1.771025), (1.748273, -2.0, 1.056739), (4.51469, -2.0, 0.342453), (7.281107, -2.0, -0.371833),
(-7.98351, -2.0, -2.348575), (-5.217093, -2.0, -3.06286), (-2.450676, -2.0, -3.777146), (0.315741, -2.0, -4.491432), (3.082158, -2.0, -5.205718),
(5.848576, -2.0, -5.920004), -- VRML: [# coord point 25
-- ]
(-10.0, -2.0, -0.0), (-9.780878, -2.0, -2.08193), (-9.113341, -2.0, -4.116675), (-8.027896, -2.0, -5.962624),
(-6.610581, -2.0, -7.503347), (-4.903584, -2.0, -8.715209), (-2.935564, -2.0, -9.559418), (-0.832943, -2.0, -9.96525), (1.260043, -2.0, -9.920297),
(3.29777, -2.0, -9.440589), (5.232184, -2.0, -8.521986), (6.926649, -2.0, -7.212595), (8.276505, -2.0, -5.612439), (9.263618, -2.0, -3.766347),
(9.85312, -2.0, -1.707639), (9.990779, -2.0, 0.42936), (9.682458, -2.0, 2.5), (8.835243, -2.0, 5.78125), (7.988028, -2.0, 9.0625),
(7.140813, -2.0, 12.34375), (6.293598, -2.0, 15.625), (5.446383, -2.0, 18.90625), (4.599168, -2.0, 22.1875), (3.751953, -2.0, 25.46875),
(2.904737, -2.0, 28.75), -- VRML: [# coord point 50
-- ]
(2.520814, -2.0, 29.626503), (1.83712, -2.0, 30.371706), (0.944662, -2.0, 30.847389), (-0.0, -2.0, 31.0),
(-0.944652, -2.0, 30.847391), (-1.837115, -2.0, 30.37171), (-2.520808, -2.0, 29.626513), (-2.904737, -2.0, 28.75), (-3.751953, -2.0, 25.46875),
(-4.599168, -2.0, 22.1875), (-5.446383, -2.0, 18.90625), (-6.293598, -2.0, 15.625), (-7.140813, -2.0, 12.34375), (-7.988028, -2.0, 9.0625),
(-8.835243, -2.0, 5.78125), (-9.682458, -2.0, 2.5), (-9.920285, -2.0, 1.260044), (-10.0, 2.0, -0.0), (-9.780878, 2.0, -2.08193),
(-9.113341, 2.0, -4.116675), (-8.027896, 2.0, -5.962624), (-6.610581, 2.0, -7.503347), (-4.903584, 2.0, -8.715209), (-2.935564, 2.0, -9.559418),
(-0.832943, 2.0, -9.96525), -- VRML: [# coord point 75
-- ]
(1.260043, 2.0, -9.920297), (3.29777, 2.0, -9.440589), (5.232184, 2.0, -8.521986), (6.926649, 2.0, -7.212595),
(8.276505, 2.0, -5.612439), (9.263618, 2.0, -3.766347), (9.85312, 2.0, -1.707639), (9.990779, 2.0, 0.42936), (9.682458, 2.0, 2.5),
(8.835243, 2.0, 5.78125), (7.988028, 2.0, 9.0625), (7.140813, 2.0, 12.34375), (6.293598, 2.0, 15.625), (5.446383, 2.0, 18.90625),
(4.599168, 2.0, 22.1875), (3.751953, 2.0, 25.46875), (2.904737, 2.0, 28.75), (2.520814, 2.0, 29.626503), (1.83712, 2.0, 30.371706),
(0.944662, 2.0, 30.847389), (-0.0, 2.0, 31.0), (-0.944652, 2.0, 30.847391), (-1.837115, 2.0, 30.37171), (-2.520808, 2.0, 29.626513),
(-2.904737, 2.0, 28.75), -- VRML: [# coord point 100
-- ]
(-3.751953, 2.0, 25.46875), (-4.599168, 2.0, 22.1875), (-5.446383, 2.0, 18.90625), (-6.293598, 2.0, 15.625),
(-7.140813, 2.0, 12.34375), (-7.988028, 2.0, 9.0625), (-8.835243, 2.0, 5.78125), (-9.682458, 2.0, 2.5), (-9.920285, 2.0, 1.260044),
(8.714212, 2.0, 2.25), (8.996537, 2.0, 0.249666), (8.814853, 2.0, -1.81614), (8.165142, 2.0, -3.785558), (7.115125, 2.0, -5.511352),
(5.706609, 2.0, -6.959498), (3.962188, 2.0, -8.080908), (2.007362, 2.0, -8.773284), (-0.0, 2.0, -9.0), (-2.007396, 2.0, -8.773275),
(-3.962183, 2.0, -8.08091), (-5.706637, 2.0, -6.959476), (-7.11514, 2.0, -5.511357), (-7.906799, 2.0, -4.299133), (-8.505519, 2.0, -2.942135),
(-8.875903, 2.0, -1.489408), -- VRML: [# coord point 125
-- ]
(-9.0, 2.0, 0.0), (4.64758, 2.0, 18.0), (5.155909, 2.0, 16.03125), (5.664238, 2.0, 14.0625),
(6.172567, 2.0, 12.09375), (6.680896, 2.0, 10.125), (7.189225, 2.0, 8.15625), (7.697555, 2.0, 6.1875), (8.205883, 2.0, 4.21875),
(-4.64758, 2.0, 18.0), (-4.396681, 2.0, 18.725855), (-4.033293, 2.0, 19.40242), (-3.536783, 2.0, 20.044878), (-2.939384, 2.0, 20.594736),
(-2.257642, 2.0, 21.035728), (-1.511443, 2.0, 21.355827), (-0.765503, 2.0, 21.538439), (-0.0, 2.0, 21.6), (0.76551, 2.0, 21.538435),
(1.511459, 2.0, 21.355822), (2.257656, 2.0, 21.035723), (2.939392, 2.0, 20.59473), (3.536792, 2.0, 20.044868), (4.033303, 2.0, 19.402407),
(4.396687, 2.0, 18.725843), -- VRML: [# coord point 150
-- ]
(-8.928257, 2.0, 1.134039), (-8.714212, 2.0, 2.25), (-8.205883, 2.0, 4.21875), (-7.697555, 2.0, 6.1875),
(-7.189225, 2.0, 8.15625), (-6.680896, 2.0, 10.125), (-6.172567, 2.0, 12.09375), (-5.664238, 2.0, 14.0625), (-5.155909, 2.0, 16.03125),
(-10.0, 2.0, -0.0), (-10.73619, 1.859577, -0.0), (-11.414213, 1.414214, -0.0), (-11.859576, 0.736189, -0.0), (-12.0, 0.0, -0.0),
(-11.859576, -0.736189, -0.0), (-11.414213, -1.414214, -0.0), (-10.73619, -1.859577, -0.0), (-10.0, -2.0, -0.0), (-9.113341, 2.0, -4.116675),
(-9.784256, 1.859577, -4.41974), (-10.402163, 1.414214, -4.698861), (-10.808037, 0.736189, -4.882202), (-10.936009, 0.0, -4.94001), (-10.808037, -0.736189, -4.882202),
(-10.402163, -1.414214, -4.698861), -- VRML: [# coord point 175
-- ]
(-9.784256, -1.859577, -4.41974), (-7.097245, 1.859577, -8.055736), (-7.545459, 1.414214, -8.564481), (-7.839869, 0.736189, -8.898652),
(-7.932698, 0.0, -9.004016), (-7.839869, -0.736189, -8.898652), (-7.545459, -1.414214, -8.564481), (-7.097245, -1.859577, -8.055736), (-3.151677, 1.859577, -10.263172),
(-3.350716, 1.414214, -10.911324), (-3.481455, 0.736189, -11.337065), (-3.522677, 0.0, -11.471301), (-3.481455, -0.736189, -11.337065), (-3.350716, -1.414214, -10.911324),
(-3.151677, -1.859577, -10.263172), (1.260043, 2.0, -9.920297), (1.352806, 1.859577, -10.650619), (1.43824, 1.414214, -11.323238), (1.494358, 0.736189, -11.765052),
(1.512051, 0.0, -11.904356), (1.494358, -0.736189, -11.765052), (1.43824, -1.414214, -11.323238), (1.352806, -1.859577, -10.650619), (1.260043, -2.0, -9.920297),
(5.617372, 1.859577, -9.149366), -- VRML: [# coord point 200
-- ]
(5.972126, 1.414214, -9.727178), (6.205149, 0.736189, -10.106715), (6.278621, 0.0, -10.226383), (6.205149, -0.736189, -10.106715),
(5.972126, -1.414214, -9.727178), (5.617372, -1.859577, -9.149366), (8.276505, 2.0, -5.612439), (8.885812, 1.859577, -6.025621), (9.44698, 1.414214, -6.406158),
(9.815584, 0.736189, -6.656115), (9.931806, 0.0, -6.734927), (9.815584, -0.736189, -6.656115), (9.44698, -1.414214, -6.406158), (8.885812, -1.859577, -6.025621),
(8.276505, -2.0, -5.612439), (9.85312, 2.0, -1.707639), (10.578496, 1.859577, -1.833354), (11.246561, 1.414214, -1.949136), (11.685383, 0.736189, -2.025188),
(11.823744, 0.0, -2.049167), (11.685383, -0.736189, -2.025188), (11.246561, -1.414214, -1.949136), (10.578496, -1.859577, -1.833354), (9.85312, -2.0, -1.707639),
(9.682458, 2.0, 2.5), -- VRML: [# coord point 225
-- ]
(10.39527, 1.859577, 2.684047), (11.051764, 1.414214, 2.853553), (11.482985, 0.736189, 2.964894), (11.61895, 0.0, 3.0),
(11.482985, -0.736189, 2.964894), (11.051764, -1.414214, 2.853553), (10.39527, -1.859577, 2.684047), (9.682458, -2.0, 2.5), (-9.780878, 2.0, -2.08193),
(-8.027896, 2.0, -5.962624), (-6.610581, 2.0, -7.503347), (-4.903584, 2.0, -8.715209), (-2.935564, 2.0, -9.559418), (-0.832943, 2.0, -9.96525),
(3.29777, 2.0, -9.440589), (5.232184, 2.0, -8.521986), (6.926649, 2.0, -7.212595), (9.263618, 2.0, -3.766347), (9.990779, 2.0, 0.42936),
(9.990779, -2.0, 0.42936), (9.263618, -2.0, -3.766347), (6.926649, -2.0, -7.212595), (5.232184, -2.0, -8.521986), (3.29777, -2.0, -9.440589),
(-0.832943, -2.0, -9.96525), -- VRML: [# coord point 250
-- ]
(-2.935564, -2.0, -9.559418), (-4.903584, -2.0, -8.715209), (-6.610581, -2.0, -7.503347), (-8.027896, -2.0, -5.962624),
(-9.113341, -2.0, -4.116675), (-9.780878, -2.0, -2.08193), (9.682458, 2.0, 2.5), (10.39527, 1.859577, 2.684047), (11.051764, 1.414214, 2.853553),
(11.482985, 0.736189, 2.964894), (11.61895, 0.0, 3.0), (11.482985, -0.736189, 2.964894), (11.051764, -1.414214, 2.853553), (9.682458, -2.0, 2.5),
(2.904737, 2.0, 28.75), (4.274044, 1.414214, 29.103554), (4.705265, 0.736189, 29.214893), (4.841229, 0.0, 29.25), (4.705265, -0.736189, 29.214893),
(4.274044, -1.414214, 29.103554), (3.61755, -1.859577, 28.934048), (2.904737, -2.0, 28.75), (10.39527, -1.859577, 2.684047), (8.835243, 2.0, 5.78125),
(7.988028, 2.0, 9.0625), -- VRML: [# coord point 275
-- ]
(7.140813, 2.0, 12.34375), (6.293598, 2.0, 15.625), (5.446383, 2.0, 18.90625), (4.599168, 2.0, 22.1875),
(3.751953, 2.0, 25.46875), (3.61755, 1.859577, 28.934048), (3.751953, -2.0, 25.46875), (4.599168, -2.0, 22.1875), (5.446383, -2.0, 18.90625),
(6.293598, -2.0, 15.625), (7.140813, -2.0, 12.34375), (7.988028, -2.0, 9.0625), (8.835243, -2.0, 5.78125), (2.904737, 2.0, 28.75),
(3.61755, 1.859577, 28.934048), (4.274044, 1.414214, 29.103554), (4.705265, 0.736189, 29.214893), (4.841229, 0.0, 29.25), (4.274044, -1.414214, 29.103554),
(2.904737, -2.0, 28.75), (2.520814, 2.0, 29.626503), (3.139413, 1.859577, 30.025642), (3.709137, 1.414214, 30.393246), (4.083363, 0.736189, 30.634706),
(4.201357, 0.0, 30.71084), -- VRML: [# coord point 300
-- ]
(4.083363, -0.736189, 30.634706), (3.709137, -1.414214, 30.393246), (3.139413, -1.859577, 30.025642), (1.83712, 2.0, 30.371706),
(2.287942, 1.859577, 30.953714), (2.703146, 1.414214, 31.48974), (2.975875, 0.736189, 31.841829), (3.061866, 0.0, 31.952845), (2.975875, -0.736189, 31.841829),
(2.703146, -1.414214, 31.48974), (2.287942, -1.859577, 30.953714), (1.83712, -2.0, 30.371706), (0.944662, 2.0, 30.847389), (1.176479, 1.859577, 31.546127),
(1.38998, 1.414214, 32.189659), (1.530219, 0.736189, 32.612366), (1.574436, 0.0, 32.745647), (1.530219, -0.736189, 32.612366), (1.38998, -1.414214, 32.189659),
(1.176479, -1.859577, 31.546127), (0.944662, -2.0, 30.847389), (-0.0, 2.0, 31.0), (-0.0, 1.859577, 31.736189), (-0.0, 1.414214, 32.414215),
(-0.0, 0.736189, 32.859577), -- VRML: [# coord point 325
-- ]
(-0.0, 0.0, 33.0), (-0.0, -0.736189, 32.859577), (-0.0, -1.414214, 32.414215), (-0.0, -1.859577, 31.736189),
(-0.0, -2.0, 31.0), (-1.176466, 1.859577, 31.546131), (-1.389965, 1.414214, 32.189667), (-1.530202, 0.736189, 32.612373), (-1.574419, 0.0, 32.745655),
(-1.530202, -0.736189, 32.612373), (-1.389965, -1.414214, 32.189667), (-1.176466, -1.859577, 31.546131), (-2.287936, 1.859577, 30.95372), (-2.703139, 1.414214, 31.489744),
(-2.975867, 0.736189, 31.841835), (-3.061858, 0.0, 31.95285), (-2.975867, -0.736189, 31.841835), (-2.703139, -1.414214, 31.489744), (-2.287936, -1.859577, 30.95372),
(-2.520808, 2.0, 29.626513), (-3.139406, 1.859577, 30.025654), (-3.709129, 1.414214, 30.393259), (-4.083354, 0.736189, 30.634722), (-4.201347, 0.0, 30.710855),
(-4.083354, -0.736189, 30.634722), -- VRML: [# coord point 350
-- ]
(-3.709129, -1.414214, 30.393259), (-3.139406, -1.859577, 30.025654), (-2.520808, -2.0, 29.626513), (-2.904737, 2.0, 28.75),
(-3.61755, 1.859577, 28.934048), (-4.274044, 1.414214, 29.103554), (-4.841229, 0.0, 29.25), (-4.274044, -1.414214, 29.103554), (-3.61755, -1.859577, 28.934048),
(-2.904737, -2.0, 28.75), (3.61755, -1.859577, 28.934048), (4.705265, -0.736189, 29.214893), (-0.944652, 2.0, 30.847391), (-1.837115, 2.0, 30.37171),
(-4.705265, 0.736189, 29.214893), (-4.705265, -0.736189, 29.214893), (-1.837115, -2.0, 30.37171), (-0.944652, -2.0, 30.847391), (2.520814, -2.0, 29.626503),
(-2.904737, 2.0, 28.75), (-3.61755, 1.859577, 28.934048), (-4.274044, 1.414214, 29.103554), (-4.705265, 0.736189, 29.214893), (-4.841229, 0.0, 29.25),
(-4.705265, -0.736189, 29.214893), -- VRML: [# coord point 375
-- ]
(-4.274044, -1.414214, 29.103554), (-3.61755, -1.859577, 28.934048), (-2.904737, -2.0, 28.75), (-9.682458, 2.0, 2.5),
(-11.051764, 1.414214, 2.853553), (-11.482985, 0.736189, 2.964894), (-11.61895, 0.0, 3.0), (-11.482985, -0.736189, 2.964894), (-11.051764, -1.414214, 2.853553),
(-10.39527, -1.859577, 2.684047), (-9.682458, -2.0, 2.5), (-3.751953, 2.0, 25.46875), (-4.599168, 2.0, 22.1875), (-5.446383, 2.0, 18.90625),
(-6.293598, 2.0, 15.625), (-7.140813, 2.0, 12.34375), (-7.988028, 2.0, 9.0625), (-8.835243, 2.0, 5.78125), (-10.39527, 1.859577, 2.684047),
(-8.835243, -2.0, 5.78125), (-7.988028, -2.0, 9.0625), (-7.140813, -2.0, 12.34375), (-6.293598, -2.0, 15.625), (-5.446383, -2.0, 18.90625),
(-4.599168, -2.0, 22.1875), -- VRML: [# coord point 400
-- ]
(-3.751953, -2.0, 25.46875), (-9.682458, 2.0, 2.5), (-10.39527, 1.859577, 2.684047), (-11.051764, 1.414214, 2.853553),
(-11.482985, 0.736189, 2.964894), (-11.61895, 0.0, 3.0), (-11.482985, -0.736189, 2.964894), (-11.051764, -1.414214, 2.853553), (-9.682458, -2.0, 2.5),
(-10.0, 2.0, -0.0), (-10.73619, 1.859577, -0.0), (-11.414213, 1.414214, -0.0), (-11.859576, 0.736189, -0.0), (-12.0, 0.0, -0.0),
(-11.859576, -0.736189, -0.0), (-11.414213, -1.414214, -0.0), (-10.73619, -1.859577, -0.0), (-10.0, -2.0, -0.0), (-10.39527, -1.859577, 2.684047),
(-9.920285, 2.0, 1.260044), (-9.920285, -2.0, 1.260044), (-2.908902, 5.0, -0.733827), (-0.004168, 5.0, 0.016172), (2.900566, 5.0, 0.766171),
(-1.508332, 5.0, 5.841776), -- VRML: [# coord point 425
-- ]
(1.396402, 5.0, 6.591775), (5.809475, 5.0, 1.5), (5.876569, 5.0, -1.21076), (4.743416, 5.0, -3.674235),
(2.641459, 5.0, -5.387271), (-0.0, 5.0, -6.0), (-2.641456, 5.0, -5.387273), (-4.743427, 5.0, -3.674238), (-5.670346, 5.0, -1.961423),
(-6.0, 5.0, 0.0), (1.742843, 5.0, 17.25), (2.759501, 5.0, 13.3125), (3.776159, 5.0, 9.375), (4.792817, 5.0, 5.4375),
(-1.742843, 5.0, 17.25), (-1.512485, 5.0, 17.775908), (-1.102269, 5.0, 18.223026), (-0.566791, 5.0, 18.508434), (-0.0, 5.0, 18.6),
(0.566797, 5.0, 18.508432), (1.102272, 5.0, 18.223024), (1.512488, 5.0, 17.775902), (-5.809475, 5.0, 1.5), (-4.792817, 5.0, 5.4375),
(-3.776159, 5.0, 9.375), -- VRML: [# coord point 450
-- ]
(-2.759501, 5.0, 13.3125), (-6.0, 5.0, 0.0), (-7.394682, 4.052142, 0.0), (-7.93934, 2.43934, 0.0),
(-8.447858, 2.105318, 0.0), (-9.0, 2.0, 0.0), (-5.756274, 4.894682, -3.129836), (-6.203024, 4.56066, -3.372746), (-6.496474, 4.052142, -3.532302),
(-6.588999, 3.5, -3.582611), (-6.681524, 2.947858, -3.632919), (-6.974974, 2.43934, -3.792475), (-7.421723, 2.105318, -4.035385), (-4.154521, 4.894682, -5.066608),
(-4.476958, 4.56066, -5.459832), (-4.688752, 4.052142, -5.718123), (-4.75553, 3.5, -5.799563), (-4.822309, 2.947858, -5.881002), (-5.034103, 2.43934, -6.139294),
(-5.35654, 2.105318, -6.532518), (-1.461416, 4.894682, -6.387083), (-1.574838, 4.56066, -6.882791), (-1.64934, 4.052142, -7.208398), (-1.67283, 3.5, -7.311063),
(-1.696321, 2.947858, -7.413727), -- VRML: [# coord point 475
-- ]
(-1.770822, 2.43934, -7.739335), (-1.884244, 2.105318, -8.235043), (-2.007396, 2.0, -8.773275), (1.461391, 4.894682, -6.387089),
(1.574811, 4.56066, -6.882797), (1.649311, 4.052142, -7.208405), (1.672801, 3.5, -7.311069), (1.696291, 2.947858, -7.413734), (1.770792, 2.43934, -7.739342),
(1.884212, 2.105318, -8.23505), (2.007362, 2.0, -8.773284), (4.154501, 4.894682, -5.066625), (4.476936, 4.56066, -5.45985), (4.688729, 4.052142, -5.718142),
(4.755507, 3.5, -5.799582), (4.822286, 2.947858, -5.881021), (5.034079, 2.43934, -6.139313), (5.356514, 2.105318, -6.532539), (5.706609, 2.0, -6.959498),
(5.944353, 4.894682, -2.755946), (6.4057, 4.56066, -2.969838), (6.708737, 4.052142, -3.110333), (6.804286, 3.5, -3.154632), (6.899834, 2.947858, -3.19893),
(7.202871, 2.43934, -3.339426), -- VRML: [# coord point 500
-- ]
(7.664218, 2.105318, -3.553318), (8.165142, 2.0, -3.785558), (6.549621, 4.894682, 0.181761), (7.057943, 4.56066, 0.195867),
(7.391837, 4.052142, 0.205133), (7.497114, 3.5, 0.208055), (7.602391, 2.947858, 0.210976), (7.936285, 2.43934, 0.220242), (8.444608, 2.105318, 0.234349),
(8.996537, 2.0, 0.249666), (5.809475, 5.0, 1.5), (6.836455, 4.56066, 1.765165), (7.261844, 3.5, 1.875), (7.687233, 2.43934, 1.984835),
(8.179604, 2.105318, 2.111964), (8.714212, 2.0, 2.25), (-5.670346, 5.0, -1.961423), (-4.743427, 5.0, -3.674238), (-2.641456, 5.0, -5.387273),
(-0.0, 5.0, -6.0), (2.641459, 5.0, -5.387271), (4.743416, 5.0, -3.674235), (5.876569, 5.0, -1.21076), (6.344084, 4.894682, 1.638036),
(7.159871, 4.052142, 1.848671), -- VRML: [# coord point 525
-- ]
(7.363817, 2.947858, 1.901329), (-7.605318, 2.947858, 0.0), (-7.5, 3.5, 0.0), (-7.06066, 4.56066, 0.0),
(-6.552142, 4.894682, 0.0), (8.814853, 2.0, -1.81614), (7.115125, 2.0, -5.511352), (3.962188, 2.0, -8.080908), (-0.0, 2.0, -9.0),
(-3.962183, 2.0, -8.08091), (-5.706637, 2.0, -6.959476), (-7.11514, 2.0, -5.511357), (-7.906799, 2.0, -4.299133), (-8.505519, 2.0, -2.942135),
(-8.875903, 2.0, -1.489408), (5.809475, 5.0, 1.5), (7.363817, 2.947858, 1.901329), (7.687233, 2.43934, 1.984835), (8.179604, 2.105318, 2.111964),
(8.714212, 2.0, 2.25), (1.742843, 5.0, 17.25), (2.769822, 4.56066, 17.515165), (3.093238, 4.052142, 17.598671), (3.195211, 3.5, 17.625),
(3.297184, 2.947858, 17.651329), -- VRML: [# coord point 550
-- ]
(3.6206, 2.43934, 17.734835), (4.64758, 2.0, 18.0), (7.261844, 3.5, 1.875), (7.159871, 4.052142, 1.848671),
(6.836455, 4.56066, 1.765165), (6.344084, 4.894682, 1.638036), (4.792817, 5.0, 5.4375), (3.776159, 5.0, 9.375), (2.759501, 5.0, 13.3125),
(2.277452, 4.894682, 17.388035), (4.112971, 2.105318, 17.861965), (5.155909, 2.0, 16.03125), (5.664238, 2.0, 14.0625), (6.172567, 2.0, 12.09375),
(6.680896, 2.0, 10.125), (7.189225, 2.0, 8.15625), (7.697555, 2.0, 6.1875), (8.205883, 2.0, 4.21875), (1.742843, 5.0, 17.25),
(3.6206, 2.43934, 17.734835), (4.64758, 2.0, 18.0), (1.512488, 5.0, 17.775902), (1.976438, 4.894682, 18.075256), (2.403731, 4.56066, 18.350958),
(2.6844, 4.052142, 18.532055), -- VRML: [# coord point 575
-- ]
(2.772896, 3.5, 18.589153), (2.861391, 2.947858, 18.646254), (3.14206, 2.43934, 18.827351), (3.569354, 2.105318, 19.103052),
(4.033303, 2.0, 19.402407), (1.102272, 5.0, 18.223024), (1.440389, 4.894682, 18.659531), (1.751792, 4.56066, 19.061548), (1.956338, 4.052142, 19.325617),
(2.020832, 3.5, 19.408876), (2.085325, 2.947858, 19.492138), (2.289872, 2.43934, 19.756205), (2.601274, 2.105318, 20.158224), (2.939392, 2.0, 20.59473),
(0.74066, 4.894682, 19.032488), (0.900786, 4.56066, 19.515137), (1.005965, 4.052142, 19.832167), (1.039128, 3.5, 19.932127), (1.072291, 2.947858, 20.032087),
(1.177471, 2.43934, 20.349117), (1.337596, 2.105318, 20.831768), (-0.0, 5.0, 18.6), (-0.0, 4.894682, 19.152142), (-0.0, 4.56066, 19.66066),
(-0.0, 4.052142, 19.994682), -- VRML: [# coord point 600
-- ]
(-0.0, 3.5, 20.1), (-0.0, 2.947858, 20.205318), (-0.0, 2.43934, 20.539339), (-0.0, 2.105318, 21.047857),
(-0.0, 2.0, 21.6), (-0.566791, 5.0, 18.508434), (-0.740652, 4.894682, 19.03249), (-0.900776, 4.56066, 19.515141), (-1.005954, 4.052142, 19.83217),
(-1.039117, 3.5, 19.932131), (-1.07228, 2.947858, 20.032091), (-1.177458, 2.43934, 20.349121), (-1.337582, 2.105318, 20.831772), (-1.511443, 2.0, 21.355827),
(-1.440385, 4.894682, 18.659533), (-1.751787, 4.56066, 19.061552), (-1.956333, 4.052142, 19.325621), (-2.020826, 3.5, 19.40888), (-2.08532, 2.947858, 19.492142),
(-2.289865, 2.43934, 19.75621), (-2.601268, 2.105318, 20.15823), (-1.512485, 5.0, 17.775908), (-1.976433, 4.894682, 18.075264), (-2.403725, 4.56066, 18.350967),
(-2.684394, 4.052142, 18.532064), -- VRML: [# coord point 625
-- ]
(-2.772889, 3.5, 18.589165), (-2.861384, 2.947858, 18.646265), (-3.142053, 2.43934, 18.827362), (-3.569345, 2.105318, 19.103065),
(-4.033293, 2.0, 19.40242), (-1.742843, 5.0, 17.25), (-3.297184, 2.947858, 17.651329), (-4.64758, 2.0, 18.0), (4.112971, 2.105318, 17.861965),
(3.297184, 2.947858, 17.651329), (3.195211, 3.5, 17.625), (3.093238, 4.052142, 17.598671), (2.769822, 4.56066, 17.515165), (2.277452, 4.894682, 17.388035),
(0.566797, 5.0, 18.508432), (-1.102269, 5.0, 18.223026), (-2.277452, 4.894682, 17.388035), (-2.769822, 4.56066, 17.515165), (-3.093238, 4.052142, 17.598671),
(-3.195211, 3.5, 17.625), (-3.6206, 2.43934, 17.734835), (-4.112971, 2.105318, 17.861965), (-4.396681, 2.0, 18.725855), (-3.536783, 2.0, 20.044878),
(-2.939384, 2.0, 20.594736), -- VRML: [# coord point 650
-- ]
(-2.257642, 2.0, 21.035728), (-0.765503, 2.0, 21.538439), (0.76551, 2.0, 21.538435), (1.511459, 2.0, 21.355822),
(2.257656, 2.0, 21.035723), (3.536792, 2.0, 20.044868), (4.396687, 2.0, 18.725843), (-1.742843, 5.0, 17.25), (-3.093238, 4.052142, 17.598671),
(-3.6206, 2.43934, 17.734835), (-4.64758, 2.0, 18.0), (-5.809475, 5.0, 1.5), (-6.836455, 4.56066, 1.765165), (-7.159871, 4.052142, 1.848671),
(-7.261844, 3.5, 1.875), (-7.687233, 2.43934, 1.984835), (-8.179604, 2.105318, 2.111964), (-8.714212, 2.0, 2.25), (-4.112971, 2.105318, 17.861965),
(-3.297184, 2.947858, 17.651329), (-3.195211, 3.5, 17.625), (-2.769822, 4.56066, 17.515165), (-2.277452, 4.894682, 17.388035), (-2.759501, 5.0, 13.3125),
(-3.776159, 5.0, 9.375), -- VRML: [# coord point 675
-- ]
(-4.792817, 5.0, 5.4375), (-6.344084, 4.894682, 1.638036), (-7.363817, 2.947858, 1.901329), (-8.205883, 2.0, 4.21875),
(-7.697555, 2.0, 6.1875), (-7.189225, 2.0, 8.15625), (-6.680896, 2.0, 10.125), (-6.172567, 2.0, 12.09375), (-5.664238, 2.0, 14.0625),
(-5.155909, 2.0, 16.03125), (-5.809475, 5.0, 1.5), (-7.363817, 2.947858, 1.901329), (-8.714212, 2.0, 2.25), (-6.0, 5.0, 0.0),
(-7.06066, 4.56066, 0.0), (-7.5, 3.5, 0.0), (-7.605318, 2.947858, 0.0), (-9.0, 2.0, 0.0), (-6.552142, 4.894682, 0.0),
(-7.394682, 4.052142, 0.0), (-7.93934, 2.43934, 0.0), (-8.447858, 2.105318, 0.0), (-8.179604, 2.105318, 2.111964), (-7.687233, 2.43934, 1.984835),
(-7.261844, 3.5, 1.875), -- VRML: [# coord point 700
-- ]
(-7.159871, 4.052142, 1.848671), (-6.836455, 4.56066, 1.765165), (-6.344084, 4.894682, 1.638036), (-8.928257, 2.0, 1.134039) -- 705
);
-- VRML: [# 705 vertices
-- ]
-- begin Separator # 2
-- VRML: [#triangle mesh
-- ]
idx_2 : constant Idx_4_array_array :=
((4, 2, 1, 0), -- VRML: [# triangle 0
-- ]
(4, 1, 3, 0), (7, 4, 3, 0), (7, 3, 6, 0), (8, 5, 4, 0), (8, 4, 7, 0), (11, 7, 6, 0), (11, 6, 10, 0),
(12, 8, 7, 0), (12, 7, 11, 0), (13, 9, 8, 0), (13, 8, 12, 0), (16, 11, 10, 0), (16, 10, 15, 0), (17, 12, 11, 0), (17, 11, 16, 0),
(18, 13, 12, 0), (18, 12, 17, 0), (19, 14, 13, 0), (19, 13, 18, 0), (22, 16, 15, 0), (22, 15, 21, 0), (23, 17, 16, 0), (23, 16, 22, 0),
(24, 18, 17, 0), (24, 17, 23, 0), -- VRML: [# triangle 25
-- ]
(25, 19, 18, 0), (25, 18, 24, 0), (26, 20, 19, 0), (26, 19, 25, 0), (59, 57, 58, 0), (1, 57, 59, 0),
(1, 54, 55, 0), (55, 56, 1, 0), (57, 1, 56, 0), (1, 53, 54, 0), (1, 59, 60, 0), (1, 61, 3, 0), (6, 62, 63, 0), (3, 61, 62, 0),
(6, 3, 62, 0), (6, 64, 10, 0), (65, 10, 64, 0), (6, 63, 64, 0), (60, 61, 1, 0), (52, 53, 1, 0), (50, 51, 2, 0), (52, 2, 51, 0),
(1, 2, 52, 0), (49, 50, 2, 0), (4, 5, 49, 0), -- VRML: [# triangle 50
-- ]
(48, 49, 5, 0), (49, 2, 4, 0), (48, 8, 9, 0), (14, 46, 9, 0), (48, 9, 47, 0),
(46, 47, 9, 0), (45, 14, 44, 0), (45, 46, 14, 0), (9, 13, 14, 0), (8, 48, 5, 0), (10, 66, 15, 0), (15, 66, 67, 0), (27, 15, 68, 0),
(67, 68, 15, 0), (15, 27, 21, 0), (28, 21, 27, 0), (21, 29, 30, 0), (22, 21, 30, 0), (31, 22, 30, 0), (32, 23, 22, 0), (23, 32, 33, 0),
(32, 22, 31, 0), (24, 23, 33, 0), (28, 29, 21, 0), (14, 20, 44, 0), -- VRML: [# triangle 75
-- ]
(43, 44, 20, 0), (14, 19, 20, 0), (26, 39, 20, 0), (42, 43, 20, 0),
(41, 42, 20, 0), (40, 41, 20, 0), (40, 20, 39, 0), (35, 25, 24, 0), (24, 34, 35, 0), (34, 24, 33, 0), (36, 25, 35, 0), (39, 26, 38, 0),
(37, 38, 26, 0), (26, 36, 37, 0), (36, 26, 25, 0), (66, 10, 65, 0), (101, 100, 99, 0), (98, 101, 99, 0), (102, 101, 98, 0), (102, 141, 140, 0),
(97, 96, 142, 0), (102, 98, 97, 0), (96, 143, 142, 0), (142, 102, 97, 0), (142, 141, 102, 0), -- VRML: [# triangle 100
-- ]
(95, 143, 96, 0), (140, 103, 102, 0), (105, 104, 136, 0),
(106, 105, 159, 0), (159, 105, 160, 0), (158, 157, 106, 0), (107, 106, 157, 0), (159, 158, 106, 0), (139, 103, 140, 0), (138, 103, 139, 0), (104, 137, 136, 0),
(105, 136, 160, 0), (137, 104, 138, 0), (138, 104, 103, 0), (144, 95, 94, 0), (145, 144, 93, 0), (94, 93, 144, 0), (92, 145, 93, 0), (144, 143, 95, 0),
(148, 92, 91, 0), (145, 92, 146, 0), (146, 92, 147, 0), (91, 149, 148, 0), (92, 148, 147, 0), (150, 149, 91, 0), -- VRML: [# triangle 125
-- ]
(91, 90, 151, 0), (128, 151, 90, 0),
(150, 91, 151, 0), (89, 129, 90, 0), (90, 129, 128, 0), (130, 129, 89, 0), (88, 131, 89, 0), (130, 89, 131, 0), (132, 131, 88, 0), (87, 133, 132, 0),
(134, 133, 87, 0), (88, 87, 132, 0), (108, 107, 156, 0), (110, 109, 153, 0), (154, 109, 108, 0), (152, 69, 110, 0), (156, 155, 108, 0), (154, 108, 155, 0),
(110, 153, 152, 0), (69, 152, 127, 0), (153, 109, 154, 0), (127, 70, 69, 0), (71, 126, 125, 0), (127, 126, 70, 0), (70, 126, 71, 0), -- VRML: [# triangle 150
-- ]
(72, 71, 124, 0),
(125, 124, 71, 0), (123, 72, 124, 0), (73, 123, 122, 0), (74, 122, 121, 0), (121, 75, 74, 0), (73, 122, 74, 0), (73, 72, 123, 0), (75, 121, 120, 0),
(87, 86, 134, 0), (135, 134, 86, 0), (85, 111, 86, 0), (86, 111, 135, 0), (112, 111, 85, 0), (83, 113, 84, 0), (112, 85, 84, 0), (82, 114, 113, 0),
(113, 112, 84, 0), (81, 114, 82, 0), (83, 82, 113, 0), (77, 118, 78, 0), (119, 118, 77, 0), (117, 78, 118, 0), (119, 77, 76, 0), (75, 120, 76, 0),
-- VRML: [# triangle 175
-- ]
(120, 119, 76, 0), (80, 115, 81, 0), (114, 81, 115, 0), (116, 115, 80, 0), (79, 117, 116, 0), (78, 117, 79, 0), (80, 79, 116, 0), (107, 157, 156, 0),
(179, 172, 171, 0), (179, 171, 178, 0), (180, 173, 172, 0), (180, 172, 179, 0), (181, 174, 173, 0), (181, 173, 180, 0), (182, 175, 174, 0), (182, 174, 181, 0),
(183, 176, 175, 0), (183, 175, 182, 0), (184, 177, 176, 0), (184, 176, 183, 0), (186, 179, 178, 0), (186, 178, 185, 0), (187, 180, 179, 0), (187, 179, 186, 0),
(188, 181, 180, 0), -- VRML: [# triangle 200
-- ]
(188, 180, 187, 0), (189, 182, 181, 0), (189, 181, 188, 0), (190, 183, 182, 0), (190, 182, 189, 0), (191, 184, 183, 0), (191, 183, 190, 0),
(194, 186, 185, 0), (194, 185, 193, 0), (195, 187, 186, 0), (195, 186, 194, 0), (196, 188, 187, 0), (196, 187, 195, 0), (197, 189, 188, 0), (197, 188, 196, 0),
(198, 190, 189, 0), (198, 189, 197, 0), (199, 191, 190, 0), (199, 190, 198, 0), (202, 194, 193, 0), (202, 193, 201, 0), (203, 195, 194, 0), (203, 194, 202, 0),
(204, 196, 195, 0), (204, 195, 203, 0), -- VRML: [# triangle 225
-- ]
(205, 197, 196, 0), (205, 196, 204, 0), (206, 198, 197, 0), (206, 197, 205, 0), (207, 199, 198, 0), (207, 198, 206, 0),
(210, 202, 201, 0), (210, 201, 209, 0), (211, 203, 202, 0), (211, 202, 210, 0), (212, 204, 203, 0), (212, 203, 211, 0), (213, 205, 204, 0), (213, 204, 212, 0),
(214, 206, 205, 0), (214, 205, 213, 0), (215, 207, 206, 0), (215, 206, 214, 0), (219, 210, 209, 0), (219, 209, 218, 0), (220, 211, 210, 0), (220, 210, 219, 0),
(221, 212, 211, 0), (221, 211, 220, 0), (222, 213, 212, 0), -- VRML: [# triangle 250
-- ]
(222, 212, 221, 0), (223, 214, 213, 0), (223, 213, 222, 0), (224, 215, 214, 0), (224, 214, 223, 0),
(235, 162, 161, 0), (171, 162, 235, 0), (170, 171, 235, 0), (172, 164, 163, 0), (163, 171, 172, 0), (164, 172, 173, 0), (171, 163, 162, 0), (174, 164, 173, 0),
(171, 170, 236, 0), (178, 236, 237, 0), (185, 238, 239, 0), (178, 237, 238, 0), (185, 178, 238, 0), (193, 240, 192, 0), (241, 193, 192, 0), (185, 240, 193, 0),
(185, 239, 240, 0), (171, 236, 178, 0), (174, 166, 165, 0), (166, 174, 175, 0), -- VRML: [# triangle 275
-- ]
(174, 165, 164, 0), (167, 166, 175, 0), (176, 168, 167, 0), (168, 257, 169, 0),
(257, 177, 256, 0), (177, 257, 168, 0), (175, 176, 167, 0), (168, 176, 177, 0), (253, 184, 191, 0), (255, 177, 184, 0), (184, 254, 255, 0), (191, 252, 253, 0),
(191, 251, 252, 0), (253, 254, 184, 0), (199, 251, 191, 0), (256, 177, 255, 0), (201, 241, 242, 0), (209, 243, 208, 0), (201, 242, 243, 0), (209, 201, 243, 0),
(218, 244, 217, 0), (245, 218, 217, 0), (209, 244, 218, 0), (209, 208, 244, 0), (219, 218, 227, 0), -- VRML: [# triangle 300
-- ]
(245, 227, 218, 0), (245, 226, 227, 0), (228, 219, 227, 0),
(229, 221, 220, 0), (220, 228, 229, 0), (221, 229, 230, 0), (228, 220, 219, 0), (231, 221, 230, 0), (251, 199, 200, 0), (199, 250, 200, 0), (207, 250, 199, 0),
(215, 248, 207, 0), (207, 249, 250, 0), (215, 216, 248, 0), (215, 247, 216, 0), (248, 249, 207, 0), (247, 215, 224, 0), (231, 223, 222, 0), (223, 231, 232, 0),
(231, 222, 221, 0), (233, 223, 232, 0), (247, 224, 225, 0), (246, 225, 224, 0), (234, 246, 233, 0), (224, 233, 246, 0), -- VRML: [# triangle 325
-- ]
(233, 224, 223, 0), (241, 201, 193, 0),
(275, 259, 258, 0), (261, 260, 267, 0), (261, 267, 268, 0), (260, 259, 282, 0), (260, 282, 267, 0), (259, 275, 276, 0), (259, 277, 278, 0), (259, 276, 277, 0),
(262, 261, 268, 0), (262, 268, 269, 0), (264, 263, 270, 0), (264, 270, 271, 0), (286, 287, 274, 0), (274, 264, 271, 0), (274, 271, 272, 0), (274, 289, 265, 0),
(274, 287, 288, 0), (288, 289, 274, 0), (263, 262, 269, 0), (263, 269, 270, 0), (282, 259, 278, 0), (282, 279, 280, 0), (282, 281, 266, 0), -- VRML: [# triangle 350
-- ]
(282, 280, 281, 0),
(272, 285, 286, 0), (272, 283, 284, 0), (284, 285, 272, 0), (283, 272, 273, 0), (274, 272, 286, 0), (279, 282, 278, 0), (307, 299, 298, 0), (307, 298, 306, 0),
(308, 300, 299, 0), (308, 299, 307, 0), (309, 301, 300, 0), (309, 300, 308, 0), (310, 302, 301, 0), (310, 301, 309, 0), (311, 303, 302, 0), (311, 302, 310, 0),
(312, 304, 303, 0), (312, 303, 311, 0), (316, 307, 306, 0), (316, 306, 315, 0), (317, 308, 307, 0), (317, 307, 316, 0), (318, 309, 308, 0), (318, 308, 317, 0),
-- VRML: [# triangle 375
-- ]
(319, 310, 309, 0), (319, 309, 318, 0), (320, 311, 310, 0), (320, 310, 319, 0), (321, 312, 311, 0), (321, 311, 320, 0), (325, 316, 315, 0), (325, 315, 324, 0),
(326, 317, 316, 0), (326, 316, 325, 0), (327, 318, 317, 0), (327, 317, 326, 0), (328, 319, 318, 0), (328, 318, 327, 0), (329, 320, 319, 0), (329, 319, 328, 0),
(330, 321, 320, 0), (330, 320, 329, 0), (333, 325, 324, 0), (333, 324, 332, 0), (334, 326, 325, 0), (334, 325, 333, 0), (335, 327, 326, 0), (335, 326, 334, 0),
(336, 328, 327, 0), -- VRML: [# triangle 400
-- ]
(336, 327, 335, 0), (337, 329, 328, 0), (337, 328, 336, 0), (338, 330, 329, 0), (338, 329, 337, 0), (340, 333, 332, 0), (340, 332, 339, 0),
(341, 334, 333, 0), (341, 333, 340, 0), (342, 335, 334, 0), (342, 334, 341, 0), (343, 336, 335, 0), (343, 335, 342, 0), (344, 337, 336, 0), (344, 336, 343, 0),
(345, 338, 337, 0), (345, 337, 344, 0), (348, 340, 339, 0), (348, 339, 347, 0), (349, 341, 340, 0), (349, 340, 348, 0), (350, 342, 341, 0), (350, 341, 349, 0),
(351, 343, 342, 0), (351, 342, 350, 0), -- VRML: [# triangle 425
-- ]
(352, 344, 343, 0), (352, 343, 351, 0), (353, 345, 344, 0), (353, 344, 352, 0), (291, 290, 297, 0), (298, 291, 297, 0),
(299, 293, 292, 0), (292, 298, 299, 0), (298, 292, 291, 0), (300, 293, 299, 0), (298, 297, 305, 0), (315, 305, 314, 0), (324, 314, 323, 0), (314, 324, 315, 0),
(315, 306, 305, 0), (324, 323, 332, 0), (305, 306, 298, 0), (301, 293, 300, 0), (363, 294, 301, 0), (293, 301, 294, 0), (302, 363, 301, 0), (295, 303, 362, 0),
(295, 302, 303, 0), (296, 362, 304, 0), (302, 295, 363, 0), -- VRML: [# triangle 450
-- ]
(370, 304, 312, 0), (362, 303, 304, 0), (313, 370, 312, 0), (313, 321, 322, 0), (321, 330, 322, 0),
(313, 312, 321, 0), (296, 304, 370, 0), (339, 364, 365, 0), (347, 365, 346, 0), (364, 339, 332, 0), (356, 348, 347, 0), (347, 339, 365, 0), (347, 346, 355, 0),
(356, 357, 348, 0), (357, 366, 348, 0), (358, 350, 349, 0), (349, 366, 358, 0), (349, 348, 366, 0), (351, 350, 358, 0), (355, 356, 347, 0), (331, 330, 338, 0),
(369, 331, 338, 0), (369, 345, 368, 0), (345, 353, 368, 0), (369, 338, 345, 0), -- VRML: [# triangle 475
-- ]
(322, 330, 331, 0), (359, 352, 367, 0), (351, 367, 352, 0), (360, 352, 359, 0),
(368, 353, 354, 0), (360, 354, 353, 0), (354, 360, 361, 0), (360, 353, 352, 0), (367, 351, 358, 0), (364, 332, 323, 0), (388, 372, 371, 0), (374, 373, 381, 0),
(374, 381, 382, 0), (373, 372, 395, 0), (373, 395, 381, 0), (372, 388, 389, 0), (372, 390, 391, 0), (372, 389, 390, 0), (375, 374, 382, 0), (375, 382, 383, 0),
(377, 376, 384, 0), (377, 384, 385, 0), (399, 400, 378, 0), (378, 377, 385, 0), (378, 385, 386, 0), -- VRML: [# triangle 500
-- ]
(378, 402, 379, 0), (378, 400, 401, 0), (401, 402, 378, 0),
(376, 375, 383, 0), (376, 383, 384, 0), (395, 372, 391, 0), (395, 392, 393, 0), (395, 394, 380, 0), (395, 393, 394, 0), (386, 398, 399, 0), (386, 396, 397, 0),
(397, 398, 386, 0), (396, 386, 387, 0), (378, 386, 399, 0), (392, 395, 391, 0), (421, 404, 403, 0), (413, 406, 405, 0), (405, 404, 412, 0), (414, 407, 406, 0),
(407, 415, 408, 0), (409, 417, 420, 0), (420, 422, 410, 0), (416, 409, 408, 0), (412, 404, 421, 0), (412, 413, 405, 0), -- VRML: [# triangle 525
-- ]
(414, 415, 407, 0), (415, 416, 408, 0),
(413, 414, 406, 0), (420, 417, 418, 0), (417, 409, 416, 0), (420, 418, 422, 0), (422, 418, 419, 0), (411, 412, 421, 0), (426, 424, 423, 0), (427, 425, 424, 0),
(427, 424, 426, 0), (433, 423, 432, 0), (434, 423, 433, 0), (423, 435, 436, 0), (450, 426, 423, 0), (436, 449, 423, 0), (434, 435, 423, 0), (424, 432, 423, 0),
(430, 425, 429, 0), (429, 425, 428, 0), (425, 430, 431, 0), (428, 425, 440, 0), (425, 427, 440, 0), (431, 424, 425, 0), (424, 431, 432, 0), -- VRML: [# triangle 550
-- ]
(450, 423, 449, 0),
(426, 451, 452, 0), (450, 451, 426, 0), (427, 426, 452, 0), (441, 438, 452, 0), (441, 442, 443, 0), (427, 452, 438, 0), (443, 438, 441, 0), (445, 437, 438, 0),
(427, 438, 439, 0), (447, 448, 437, 0), (445, 446, 437, 0), (446, 447, 437, 0), (444, 445, 438, 0), (438, 443, 444, 0), (440, 427, 439, 0), (466, 459, 458, 0),
(466, 458, 465, 0), (467, 460, 459, 0), (467, 459, 466, 0), (468, 461, 460, 0), (468, 460, 467, 0), (469, 462, 461, 0), (469, 461, 468, 0), (470, 463, 462, 0),
-- VRML: [# triangle 575
-- ]
(470, 462, 469, 0), (471, 464, 463, 0), (471, 463, 470, 0), (473, 466, 465, 0), (473, 465, 472, 0), (474, 467, 466, 0), (474, 466, 473, 0), (475, 468, 467, 0),
(475, 467, 474, 0), (476, 469, 468, 0), (476, 468, 475, 0), (477, 470, 469, 0), (477, 469, 476, 0), (478, 471, 470, 0), (478, 470, 477, 0), (481, 473, 472, 0),
(481, 472, 480, 0), (482, 474, 473, 0), (482, 473, 481, 0), (483, 475, 474, 0), (483, 474, 482, 0), (484, 476, 475, 0), (484, 475, 483, 0), (485, 477, 476, 0),
(485, 476, 484, 0), -- VRML: [# triangle 600
-- ]
(486, 478, 477, 0), (486, 477, 485, 0), (489, 481, 480, 0), (489, 480, 488, 0), (490, 482, 481, 0), (490, 481, 489, 0), (491, 483, 482, 0),
(491, 482, 490, 0), (492, 484, 483, 0), (492, 483, 491, 0), (493, 485, 484, 0), (493, 484, 492, 0), (494, 486, 485, 0), (494, 485, 493, 0), (497, 489, 488, 0),
(497, 488, 496, 0), (498, 490, 489, 0), (498, 489, 497, 0), (499, 491, 490, 0), (499, 490, 498, 0), (500, 492, 491, 0), (500, 491, 499, 0), (501, 493, 492, 0),
(501, 492, 500, 0), (502, 494, 493, 0), -- VRML: [# triangle 625
-- ]
(502, 493, 501, 0), (505, 497, 496, 0), (505, 496, 504, 0), (506, 498, 497, 0), (506, 497, 505, 0), (507, 499, 498, 0),
(507, 498, 506, 0), (508, 500, 499, 0), (508, 499, 507, 0), (509, 501, 500, 0), (509, 500, 508, 0), (510, 502, 501, 0), (510, 501, 509, 0), (518, 531, 453, 0),
(531, 518, 458, 0), (519, 458, 518, 0), (530, 531, 458, 0), (530, 460, 454, 0), (530, 459, 460, 0), (529, 454, 460, 0), (459, 530, 458, 0), (520, 465, 519, 0),
(472, 465, 520, 0), (521, 472, 520, 0), (529, 460, 461, 0), -- VRML: [# triangle 650
-- ]
(529, 461, 462, 0), (519, 465, 458, 0), (528, 529, 462, 0), (463, 455, 528, 0), (464, 456, 463, 0),
(455, 463, 456, 0), (528, 462, 463, 0), (541, 457, 456, 0), (539, 540, 464, 0), (541, 464, 540, 0), (541, 456, 464, 0), (538, 539, 464, 0), (537, 538, 471, 0),
(538, 464, 471, 0), (478, 536, 471, 0), (471, 536, 537, 0), (478, 535, 479, 0), (479, 536, 478, 0), (486, 535, 478, 0), (521, 480, 472, 0), (522, 488, 480, 0),
(521, 522, 480, 0), (523, 488, 522, 0), (524, 496, 523, 0), (523, 496, 488, 0), -- VRML: [# triangle 675
-- ]
(525, 505, 504, 0), (504, 496, 524, 0), (504, 524, 512, 0), (525, 513, 505, 0),
(505, 526, 506, 0), (513, 526, 505, 0), (514, 507, 506, 0), (527, 508, 514, 0), (507, 514, 508, 0), (514, 506, 526, 0), (512, 525, 504, 0), (535, 486, 487, 0),
(486, 534, 487, 0), (494, 534, 486, 0), (502, 533, 494, 0), (494, 495, 534, 0), (502, 503, 533, 0), (533, 495, 494, 0), (503, 502, 532, 0), (502, 510, 532, 0),
(515, 510, 509, 0), (509, 527, 515, 0), (516, 510, 515, 0), (511, 532, 510, 0), (511, 516, 517, 0), -- VRML: [# triangle 700
-- ]
(511, 510, 516, 0), (508, 527, 509, 0), (558, 557, 542, 0),
(556, 557, 561, 0), (556, 561, 548, 0), (555, 556, 548, 0), (555, 548, 549, 0), (554, 555, 549, 0), (554, 549, 550, 0), (543, 554, 550, 0), (543, 550, 551, 0),
(558, 559, 557, 0), (545, 544, 552, 0), (545, 552, 562, 0), (566, 567, 545, 0), (545, 569, 546, 0), (545, 567, 568, 0), (568, 569, 545, 0), (544, 543, 551, 0),
(544, 551, 552, 0), (561, 557, 559, 0), (561, 560, 547, 0), (562, 565, 566, 0), (562, 564, 565, 0), (564, 562, 563, 0), -- VRML: [# triangle 725
-- ]
(562, 553, 563, 0), (562, 566, 545, 0),
(559, 560, 561, 0), (584, 575, 574, 0), (584, 574, 583, 0), (585, 576, 575, 0), (585, 575, 584, 0), (586, 577, 576, 0), (586, 576, 585, 0), (587, 578, 577, 0),
(587, 577, 586, 0), (588, 579, 578, 0), (588, 578, 587, 0), (589, 580, 579, 0), (589, 579, 588, 0), (592, 584, 583, 0), (592, 583, 591, 0), (593, 585, 584, 0),
(593, 584, 592, 0), (594, 586, 585, 0), (594, 585, 593, 0), (595, 587, 586, 0), (595, 586, 594, 0), (596, 588, 587, 0), (596, 587, 595, 0), -- VRML: [# triangle 750
-- ]
(597, 589, 588, 0),
(597, 588, 596, 0), (600, 592, 591, 0), (600, 591, 599, 0), (601, 593, 592, 0), (601, 592, 600, 0), (602, 594, 593, 0), (602, 593, 601, 0), (603, 595, 594, 0),
(603, 594, 602, 0), (604, 596, 595, 0), (604, 595, 603, 0), (605, 597, 596, 0), (605, 596, 604, 0), (609, 600, 599, 0), (609, 599, 608, 0), (610, 601, 600, 0),
(610, 600, 609, 0), (611, 602, 601, 0), (611, 601, 610, 0), (612, 603, 602, 0), (612, 602, 611, 0), (613, 604, 603, 0), (613, 603, 612, 0), (614, 605, 604, 0),
-- VRML: [# triangle 775
-- ]
(614, 604, 613, 0), (617, 609, 608, 0), (617, 608, 616, 0), (618, 610, 609, 0), (618, 609, 617, 0), (619, 611, 610, 0), (619, 610, 618, 0), (620, 612, 611, 0),
(620, 611, 619, 0), (621, 613, 612, 0), (621, 612, 620, 0), (622, 614, 613, 0), (622, 613, 621, 0), (625, 617, 616, 0), (625, 616, 624, 0), (626, 618, 617, 0),
(626, 617, 625, 0), (627, 619, 618, 0), (627, 618, 626, 0), (628, 620, 619, 0), (628, 619, 627, 0), (629, 621, 620, 0), (629, 620, 628, 0), (630, 622, 621, 0),
(630, 621, 629, 0), -- VRML: [# triangle 800
-- ]
(574, 640, 570, 0), (570, 573, 574, 0), (582, 574, 573, 0), (575, 640, 574, 0), (575, 638, 639, 0), (575, 576, 638, 0), (637, 638, 576, 0),
(575, 639, 640, 0), (582, 591, 583, 0), (641, 591, 582, 0), (598, 599, 641, 0), (637, 576, 577, 0), (641, 599, 591, 0), (599, 598, 607, 0), (582, 583, 574, 0),
(578, 637, 577, 0), (579, 571, 636, 0), (636, 578, 579, 0), (578, 636, 637, 0), (635, 571, 579, 0), (658, 572, 635, 0), (581, 658, 580, 0), (635, 580, 658, 0),
(580, 635, 579, 0), (657, 581, 580, 0), -- VRML: [# triangle 825
-- ]
(590, 657, 589, 0), (657, 580, 589, 0), (597, 656, 589, 0), (589, 656, 590, 0), (597, 654, 655, 0), (655, 656, 597, 0),
(605, 654, 597, 0), (642, 608, 607, 0), (616, 608, 642, 0), (623, 616, 642, 0), (623, 624, 616, 0), (645, 626, 625, 0), (625, 624, 644, 0), (624, 623, 643, 0),
(643, 644, 624, 0), (626, 645, 627, 0), (644, 645, 625, 0), (646, 628, 627, 0), (628, 646, 633, 0), (646, 627, 645, 0), (647, 628, 633, 0), (632, 643, 623, 0),
(654, 605, 606, 0), (605, 653, 606, 0), (614, 653, 605, 0), -- VRML: [# triangle 850
-- ]
(622, 652, 614, 0), (614, 615, 653, 0), (622, 651, 652, 0), (652, 615, 614, 0), (651, 622, 650, 0),
(622, 630, 650, 0), (647, 630, 629, 0), (630, 647, 648, 0), (647, 629, 628, 0), (649, 630, 648, 0), (630, 631, 650, 0), (648, 634, 649, 0), (649, 631, 630, 0),
(607, 608, 599, 0), (675, 674, 659, 0), (673, 674, 678, 0), (673, 678, 664, 0), (660, 673, 664, 0), (660, 664, 665, 0), (672, 660, 665, 0), (672, 665, 666, 0),
(671, 672, 666, 0), (671, 666, 679, 0), (675, 676, 674, 0), (670, 661, 667, 0), -- VRML: [# triangle 875
-- ]
(670, 667, 668, 0), (683, 684, 670, 0), (670, 686, 662, 0), (670, 684, 685, 0),
(685, 686, 670, 0), (661, 671, 679, 0), (661, 679, 667, 0), (678, 674, 676, 0), (678, 677, 663, 0), (668, 682, 683, 0), (668, 681, 682, 0), (681, 668, 680, 0),
(668, 669, 680, 0), (668, 683, 670, 0), (676, 677, 678, 0), (690, 704, 687, 0), (691, 702, 703, 0), (703, 704, 695, 0), (692, 688, 701, 0), (697, 699, 700, 0),
(705, 689, 699, 0), (700, 688, 693, 0), (701, 702, 696, 0), (695, 691, 703, 0), (696, 692, 701, 0), -- VRML: [# triangle 900
-- ]
(692, 693, 688, 0), (691, 696, 702, 0), (699, 697, 698, 0),
(697, 700, 693, 0), (699, 698, 705, 0), (705, 698, 694, 0), (690, 695, 704, 0) -- 908
);
-- VRML: [# 908 triangles
-- ]
-- last index now: 0
-- end Separator # 2
-- VRML: [#triangle mesh
-- ]
-- last index now: 0
-- end Separator # 2
-- VRML: [# triangle mesh
-- ]
procedure Create (
object : in out GLOBE_3D.p_Object_3D;
object_scale : GLOBE_3D.Real;
centre : GLOBE_3D.Point_3D
)
is
face_0 : Face_type; -- takes defaults values
begin
object :=
new Object_3D (Max_points => 705, Max_faces => 908);
object.all.Centre := centre;
Set_name (object.all, "insect_body");
face_0.skin := material_only;
face_0.material := VRML_Defaults;
-- Creating separator # 1
if Almost_zero (object_scale - 1.0) then
object.all.Point (1 .. 705) := coord_1;
else
for p in 1 .. 705 loop
object.all.Point (0 + p) := object_scale * coord_1 (p);
end loop;
end if;
face_0.material := matos_1;
-- Creating separator # 2
for f in 1 .. 908 loop
face_0.P := idx_2 (f);
object.all.face (0 + f) := face_0;
end loop;
end Create;
end Duck_P;
-- Converted by Wrl2Ada
|
src/asis/a4g-dda_aux.ads | My-Colaborations/dynamo | 15 | 28355 | <filename>src/asis/a4g-dda_aux.ads
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- A 4 G . D D A _ A U X --
-- --
-- S p e c --
-- --
-- $Revision: 14154 $
-- --
-- Copyright (C) 1999-2001 Ada Core Technologies, Inc. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 2, or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License --
-- for more details. You should have received a copy of the GNU General --
-- Public License distributed with GNAT; see file COPYING. If not, write --
-- to the Free Software Foundation, 59 Temple Place - Suite 330, Boston, --
-- MA 02111-1307, USA. --
-- --
-- --
-- --
-- --
-- --
-- --
-- --
-- --
-- GNAT was originally developed by the GNAT team at New York University. --
-- It is now maintained by Ada Core Technologies Inc (http://www.gnat.com). --
-- --
------------------------------------------------------------------------------
-- This package contains auxiliary routines used to support the data
-- decomposition annex. At the level of this package, types and components
-- are represented by their normal Entity_Id values. The corresponding
-- entities have the necessary representation information stored in them.
-- DDA_Aux acts as an interface between the main ASIS routines and all
-- representation issues.
with Asis.Data_Decomposition;
with Repinfo; use Repinfo;
with Types; use Types;
with Uintp; use Uintp;
package A4G.DDA_Aux is
--------------------------------
-- Portable_Data Declarations --
--------------------------------
-- Asis.Data_Decomposition.Portable_Value;
-- Portable values are simply bytes, i.e. defined as mod 256. This is
-- fine for all the byte addressable architectures that GNAT runs on
-- now, and we will worry later about exotic cases (which may well
-- never arise).
-- Portable_Positive is Asis.Data_Decomposition.Portable_Positive;
-- This is simply a synonym for Asis.ASIS_Positive
-- Asis.Data_Decomposition.Portable_Data;
-- This is array (Portable_Positive range <>) of Portable_Data. Thus
-- it is simply an array of bytes. The representation of data in this
-- format is as follows:
--
-- For non-scalar values, the data value is stored at the start of
-- the value, occupying as many bits as needed. If there are padding
-- bits (on the right), they are stored as zero bits when a value is
-- retrieved, and ignored when a value is stored.
--
-- For scalar values, the data value is of length 1, 2, 4, or 8 bytes
-- in proper little-endian or big-endian format with sign or zero
-- bits filling the unused high order bits. For enumeration values,
-- this is the Enum_Rep value, i.e. the actual stored value, not the
-- Pos value. For biased types, the value is unsigned and biased.
---------------------------------
-- Basic Interface Definiitons --
---------------------------------
Variable_Rep_Info : exception;
-- This exception is raised if an attempt is made to access representation
-- information that depends on the value of a variable other than a
-- discriminant for the current record. For example, if the length of
-- a component of subtype String (1 .. N) is requested, and N is not a
-- discriminant or a static constant.
Invalid_Data : exception;
-- Exception raised if an invalid data value is detected. There is no
-- systematic checking for invalid values, but there are some situations
-- in which bad values are detected, and this exception is raised.
No_Component : exception;
-- Exception raised if a request is made to access a component in a
-- variant part of a record when the component does not exist for the
-- particular set of discriminant values present. Also raised if a
-- request is made to access an out of bounds subscript value for an
-- array element.
Null_Discrims : Repinfo.Discrim_List (1 .. 0) := (others => Uint_0);
-- Used as default if no discriminants given
----------------------
-- Utility Routines --
----------------------
function Build_Discrim_List
(Rec : Entity_Id;
Data : Asis.Data_Decomposition.Portable_Data)
return Repinfo.Discrim_List;
-- Given a record entity, and a value of this record type, builds a
-- list of discriminants from the given value and returns it. The
-- portable data value must include at least all the discriminants
-- if the type is for a discriminated record. If Rec is other than
-- a discriminated record type, then Data is ignored and Null_Discrims
-- is returned.
function Eval_Scalar_Node
(N : Node_Id;
Discs : Repinfo.Discrim_List := Null_Discrims)
return Uint;
-- This function is used to get the value of a node representing a value
-- of a scalar type. Evaluation is possible for static expressions and
-- for discriminant values (in the latter case, Discs must be provided
-- and must contain the appropriate list of discriminants). Note that
-- in the case of enumeration values, the result is the Pos value, not
-- the Enum_Rep value for the given enumeration literal.
--
-- Raises Variable_Rep_Info is raised if the expression is other than
-- a discriminant or a static expression, or if it is a discriminant
-- and no discriminant list is provided.
--
-- Note that this functionality is related to that provided by
-- Sem_Eval.Expr_Value, but this unit is not available in ASIS.
function Linear_Index
(Typ : Entity_Id;
Subs : Asis.Data_Decomposition.Dimension_Indexes;
Discs : Repinfo.Discrim_List := Null_Discrims)
return Asis.ASIS_Natural;
-- Given Typ, the entity for a definite array type or subtype, and Subs,
-- a list of 1's origin subscripts (that is, as usual Dimension_Indexes
-- has subscripts that are 1's origin with respect to the declared lower
-- bound), this routine computes the corresponding zero-origin linear
-- index from the start of the array data. The case of Fortran convention
-- (with row major order) is properly handled.
--
-- Raises No_Component if any of the subscripts is out of range (i.e.
-- exceeds the length of the corresponding subscript position).
function UI_From_Aint (A : Asis.ASIS_Integer) return Uint;
-- Converts ASIS_Integer value to Uint
function UI_Is_In_Aint_Range (U : Uint) return Boolean;
-- Determine if a universal integer value U is in range of ASIS_Integer.
-- Returns True iff in range (meaning that UI_To_Aint can be safely used).
function UI_To_Aint (U : Uint) return Asis.ASIS_Integer;
-- Converts Uint value to ASIS_Integer, the result must be in range
-- of ASIS_Integer, or otherwise the exception Invalid_Data is raised.
--------------------------------
-- Universal Integer Encoding --
--------------------------------
-- These routines deal with decoding and encoding scalar values from
-- Uint to portable data format.
function Encode_Scalar_Value
(Typ : Entity_Id;
Val : Uint)
return Asis.Data_Decomposition.Portable_Data;
-- Given Typ, the entity for a scalar type or subtype, this function
-- constructs a portable data valuethat represents a value of this
-- type given by Val. The value of the Uint may not exceed the largest
-- scalar value supported by the implementation. The result will be 1,
-- 2, 4 or 8 bytes long depending on the value of the input, positioned
-- to be intepreted as an integer, and sign or zero extended as needed.
-- For enumeration types, the value is the Enum_Rep value, not the Pos
-- value. For biased types, the bias is NOT present in the Uint value
-- (part of the job of Encode_Scalar_Value is to introduce the bias).
--
-- Raises Invalid_Data if value is out of range of the base type of Typ
function Encode_Scalar_Value
(Typ : Entity_Id;
Val : Asis.ASIS_Integer)
return Asis.Data_Decomposition.Portable_Data;
-- Similar to above function except input is ASIS_Integer instead of Uint
function Decode_Scalar_Value
(Typ : Entity_Id;
Data : Asis.Data_Decomposition.Portable_Data)
return Uint;
-- Given Typ, the entity for a scalar type or subtype, this function
-- takes the portable data value Data, that represents a value of
-- this type, and returns the equivalent Uint value. For enumeration
-- types the value is the Enum_Rep value, not the Pos value. For biased
-- types, the result is unbiased (part of the job of Decode_Scalar_Value
-- is to remove the bias).
--------------------------------
-- Record Discriminant Access --
--------------------------------
function Extract_Discriminant
(Data : Asis.Data_Decomposition.Portable_Data;
Disc : Entity_Id)
return Uint;
-- This function can be used to extract a discriminant value from a
-- record. Data is the portable data value representing the record
-- value, and Disc is the E_Discriminant entity for the discriminant.
function Set_Discriminant
(Data : Asis.Data_Decomposition.Portable_Data;
Disc : Entity_Id;
Val : Uint)
return Asis.Data_Decomposition.Portable_Data;
-- Given Data, a portable data value representing the prefix of a record
-- value which may already have some other discriminant values set, this
-- function creates a new Portable_Data value, increased in length
-- if necessary, in which the discriminant represented by E_Discriminant
-- entity Disc is set to the given value.
--
-- Raises Invalid_Data if the value does not fit in the field
procedure Set_Discriminant
(Data : in out Asis.Data_Decomposition.Portable_Data;
Disc : Entity_Id;
Val : Uint);
-- Similar to the function above, except that the modification is done
-- in place on the given portable data value. In this case, the Data
-- value must be long enough to contain the given discriminant field.
function Set_Discriminant
(Data : Asis.Data_Decomposition.Portable_Data;
Disc : Entity_Id;
Val : Asis.ASIS_Integer)
return Asis.Data_Decomposition.Portable_Data;
-- Similar to function above, but takes argument in ASIS_Integer form
procedure Set_Discriminant
(Data : in out Asis.Data_Decomposition.Portable_Data;
Disc : Entity_Id;
Val : Asis.ASIS_Integer);
-- Similar to function above, but takes argument in ASIS_Integer form
-----------------------------
-- Record Component Access --
-----------------------------
function Component_Present
(Comp : Entity_Id;
Discs : Repinfo.Discrim_List)
return Boolean;
-- Determines if the given component is present or not. For the case
-- where the component is part of a variant of a discriminated record,
-- Discs must contain the full list of discriminants for the record,
-- and the result is True or False depending on whether the variant
-- containing the field is present or not for the given discriminant
-- values. If the component is not part of a variant, including the
-- case where the record is non-discriminated, then Discs is ignored
-- and the result is always True.
function Extract_Record_Component
(Data : Asis.Data_Decomposition.Portable_Data;
Comp : Entity_Id;
Discs : Repinfo.Discrim_List := Null_Discrims)
return Asis.Data_Decomposition.Portable_Data;
-- Given Data, a portable data value representing a record value, this
-- routine extracts the component value corresponding to E_Component
-- entity Comp, and returns a new portable data value corresponding to
-- this component. The Discs parameter supplies the discriminants and
-- must be present in the discriminated record case if the component
-- may depend on discriminants. For scalar types, the result value
-- is 1,2,4, or 8 bytes, properly positioned to be interpreted as an
-- integer, and sign/zero extended as required. For all other types,
-- the value is extended if necessary to be an integral number of
-- bytes by adding zero bits.
--
-- Raises No_Component if an attempt is made to set a component in a
-- non-existent variant.
--
-- Raises No_Component if the specified component is part of a variant
-- that does not exist for the given discriminant values
--
-- Raises Variable_Rep_Info if the size or position of the component
-- depends on a variable other than a discriminant
function Set_Record_Component
(Data : Asis.Data_Decomposition.Portable_Data;
Comp : Entity_Id;
Val : Asis.Data_Decomposition.Portable_Data;
Discs : Repinfo.Discrim_List := Null_Discrims)
return Asis.Data_Decomposition.Portable_Data;
-- Given Data, a portable data value that represents a record value,
-- or a prefix of such a record, sets the component represented by the
-- E_Component entity Comp is set to the value represented by the portable
-- data value Val, and the result is returned as a portable data value,
-- extended in length if necessary to accomodate the newly added entry.
-- The Discs parameter supplies the discriminants and must be present
-- in the discriminated record case if the component may depend on
-- the values of discriminants.
--
-- Raises No_Component if an attempt is made to set a component in a
-- non-existent variant.
--
-- Raises No_Component if the specified component is part of a variant
-- that does not exist for the given discriminant values
--
-- Raises Variable_Rep_Info if the size or position of the component
-- depends on a variable other than a discriminant
--
-- Raises Invalid_Data if the data value is too large to fit.
procedure Set_Record_Component
(Data : in out Asis.Data_Decomposition.Portable_Data;
Comp : Entity_Id;
Val : Asis.Data_Decomposition.Portable_Data;
Discs : Repinfo.Discrim_List := Null_Discrims);
-- Same as the above, but operates in place on the given data value,
-- which must in this case be long enough to contain the component.
----------------------------
-- Array Component Access --
----------------------------
function Extract_Array_Component
(Typ : Entity_Id;
Data : Asis.Data_Decomposition.Portable_Data;
Subs : Asis.Data_Decomposition.Dimension_Indexes;
Discs : Repinfo.Discrim_List := Null_Discrims)
return Asis.Data_Decomposition.Portable_Data;
-- Given Typ, the entity for an array type, and Data, a portable data
-- value representing a value of this array type, this function extracts
-- the array element corresponding to the given list of subscript values.
-- The parameter Discs must be given if any of the bounds of the array
-- may depend on discriminant values, and supplies the corresponding
-- discriminants. For scalar component types, the value is 1,2,4, or 8,
-- properly positioned to be interpreted as an integer, and sign/zero
-- extended as required. For all other types, the value is extended if
-- necessary to be an integral number of bytes by adding zero bits.
--
-- Raises No_Component if any of the subscripts is out of bounds
-- (that is, exceeds the length of the corresponding index).
--
-- Raises Variable_Rep_Info if length of any index depends on a
-- variable other than a discriminant.
--
function Set_Array_Component
(Typ : Entity_Id;
Data : Asis.Data_Decomposition.Portable_Data;
Subs : Asis.Data_Decomposition.Dimension_Indexes;
Val : Asis.Data_Decomposition.Portable_Data;
Discs : Repinfo.Discrim_List := Null_Discrims)
return Asis.Data_Decomposition.Portable_Data;
-- Given a portable data value representing either a value of the array
-- type Typ, or a prefix of such a value, sets the element referenced by
-- the given subscript values in Subs, to the given value Val. The
-- parameter Discs must be given if any of the bounds of the array
-- may depend on discriminant values, and supplies the corresponding
-- discriminants. The returned result is the original portable data
-- value, extended if necessary to include the new element, with the
-- new element value in place.
--
-- Raises No_Component if any of the subscripts is out of bounds
-- (that is, exceeds the length of the corresponding index).
--
-- Raises Variable_Rep_Info if length of any index depends on a
-- variable other than a discriminant.
--
-- Raises Invalid_Data if the data value is too large to fit.
procedure Set_Array_Component
(Typ : Entity_Id;
Data : in out Asis.Data_Decomposition.Portable_Data;
Subs : Asis.Data_Decomposition.Dimension_Indexes;
Val : Asis.Data_Decomposition.Portable_Data;
Discs : Repinfo.Discrim_List := Null_Discrims);
-- Same as above, but operates in place on the given stream. The stream
-- must be long enough to contain the given element in this case.
-------------------------------
-- Representation Parameters --
-------------------------------
-- These routines give direct access to the values of the
-- representation fields stored in the tree, including the
-- proper interpretation of variable values that depend on
-- the values of discriminants.
function Get_Esize
(Comp : Entity_Id;
Discs : Repinfo.Discrim_List := Null_Discrims)
return Uint;
-- Obtains the size (actually the object size, Esize) of any subtype
-- or record component or discriminant. The function can be used for
-- components of discriminanted or non-discriminated records. In the
-- case of components of a discriminated record where the value depends
-- on discriminants, Discs provides the necessary discriminant values.
-- In all other cases, Discs is ignored and can be defaulted.
--
-- Raises Variable_Rep_Info if the size depends on a variable other
-- than a discriminant.
--
-- Raises No_Component if the component is in a variant that does not
-- exist for the given set of discriminant values.
function Get_Component_Bit_Offset
(Comp : Entity_Id;
Discs : Repinfo.Discrim_List := Null_Discrims)
return Uint;
-- Obtains the component first bit value for the specified component or
-- discriminant. This function can be used for discriminanted or non-
-- discriminanted records. In the case of components of a discriminated
-- record where the value depends on discriminants, Discs provides the
-- necessary discriminant values. Otherwise (and in particular in the case
-- of discriminants themselves), Discs is ignored and can be defaulted.
--
-- Raises Variable_Rep_Info if the size depends on a variable other
-- than a discriminant.
--
-- Raises No_Component if the component is in a variant that does not
-- exist for the given set of discriminant values.
function Get_Component_Size
(Typ : Entity_Id)
return Uint;
-- Given an array type or subtype, returns the component size value
function Get_Length
(Typ : Entity_Id;
Sub : Asis.ASIS_Positive;
Discs : Repinfo.Discrim_List := Null_Discrims)
return Asis.ASIS_Natural;
-- Given Typ, the entity for a definite array type or subtype, returns
-- the Length of the subscript designated by Sub (1 = first subscript
-- as in Length attribute). If the bounds of the array may depend on
-- discriminants, then Discs contains the list of discriminant values
-- (e.g. if we have an array field A.B, then the discriminants of A
-- may be needed).
--
-- Raises Variable_Rep_Info if the size depends on a variable other
-- than a discriminant.
-------------------------------
-- Computation of Attributes --
-------------------------------
-- The DDA_Aux package simply provides access to the representation
-- information stored in the tree, as described in Einfo, as refined
-- by the description in Repinfo with regard to the case where some
-- of the values depend on discriminants.
-- The ASIS spec requires that ASIS be able to compute the values of
-- the attributes Position, First_Bit, and Last_Bit.
-- This is done as follows. First compute the Size (with Get_Esize)
-- and the Component_Bit_Offset (with Get_Component_Bit_Offset). In the
-- case of a nested reference, e.g.
-- A.B.C
-- You need to extract the value A.B, and then ask for the
-- size of its component C, and also the component first bit
-- value of this component C.
-- This value gets added to the Component_Bit_Offset value for
-- the B field in A.
-- For arrays, the equivalent of Component_Bit_Offset is computed simply
-- as the zero origin linearized subscript multiplied by the value of
-- Component_Size for the array. As another example, consider:
-- A.B(15)
-- In this case you get the component first bit of the field B in A,
-- using the discriminants of A if there are any. Then you get the
-- component first bit of the 15th element of B, using the discriminants
-- of A (since the bounds of B may depend on them). You then add these
-- two component first bit values.
-- Once you have the aggregated value of the first bit offset (i.e. the
-- sum of the Component_Bit_Offset values and corresponding array offsets
-- for all levels of the access), then the formula is simply:
-- X'Position = First_Bit_Offset / Storage_Unit_Size
-- X'First = First_Bit_Offset mod Storage_Unit_Size
-- X'Last = X'First + component_size - 1
end A4G.DDA_Aux;
|
old/Tests/Numeral.agda | Lolirofle/stuff-in-agda | 6 | 1824 | module Test.Numeral where
import Lvl
open import Relator.Equals{Lvl.𝟎}
module One where
test0 : (0 mod 1) ≡ 0
test0 = [≡]-intro
test1 : (1 mod 1) ≡ 0
test1 = [≡]-intro
test2 : (2 mod 1) ≡ 0
test2 = [≡]-intro
test3 : (3 mod 1) ≡ 0
test3 = [≡]-intro
test4 : (4 mod 1) ≡ 0
test4 = [≡]-intro
test5 : (5 mod 1) ≡ 0
test5 = [≡]-intro
test6 : (6 mod 1) ≡ 0
test6 = [≡]-intro
test7 : (7 mod 1) ≡ 0
test7 = [≡]-intro
test8 : (8 mod 1) ≡ 0
test8 = [≡]-intro
test9 : (9 mod 1) ≡ 0
test9 = [≡]-intro
test10 : (10 mod 1) ≡ 0
test10 = [≡]-intro
test11 : (11 mod 1) ≡ 0
test11 = [≡]-intro
module Two where
test0 : (0 mod 2) ≡ 0
test0 = [≡]-intro
test1 : (1 mod 2) ≡ 1
test1 = [≡]-intro
test2 : (2 mod 2) ≡ 0
test2 = [≡]-intro
test3 : (3 mod 2) ≡ 1
test3 = [≡]-intro
test4 : (4 mod 2) ≡ 0
test4 = [≡]-intro
test5 : (5 mod 2) ≡ 1
test5 = [≡]-intro
test6 : (6 mod 2) ≡ 0
test6 = [≡]-intro
test7 : (7 mod 2) ≡ 1
test7 = [≡]-intro
test8 : (8 mod 2) ≡ 0
test8 = [≡]-intro
test9 : (9 mod 2) ≡ 1
test9 = [≡]-intro
test10 : (10 mod 2) ≡ 0
test10 = [≡]-intro
test11 : (11 mod 2) ≡ 1
test11 = [≡]-intro
module Three where
test0 : (0 mod 3) ≡ 0
test0 = [≡]-intro
test1 : (1 mod 3) ≡ 1
test1 = [≡]-intro
test2 : (2 mod 3) ≡ 2
test2 = [≡]-intro
test3 : (3 mod 3) ≡ 0
test3 = [≡]-intro
test4 : (4 mod 3) ≡ 1
test4 = [≡]-intro
test5 : (5 mod 3) ≡ 2
test5 = [≡]-intro
test6 : (6 mod 3) ≡ 0
test6 = [≡]-intro
test7 : (7 mod 3) ≡ 1
test7 = [≡]-intro
test8 : (8 mod 3) ≡ 2
test8 = [≡]-intro
test9 : (9 mod 3) ≡ 0
test9 = [≡]-intro
test10 : (10 mod 3) ≡ 1
test10 = [≡]-intro
test11 : (11 mod 3) ≡ 2
test11 = [≡]-intro
|
tests/syntax/bad/testfile-params-1.adb | xuedong/mini-ada | 0 | 9925 | <filename>tests/syntax/bad/testfile-params-1.adb<gh_stars>0
with Ada.Text_IO; use Ada.Text_IO;
procedure Test is
procedure P() is begin x := 0; end;
begin Put('a'); end;
|
cards/bn6/ModCards/137-B018 CanGuard.asm | RockmanEXEZone/MMBN-Mod-Card-Kit | 10 | 15427 | <reponame>RockmanEXEZone/MMBN-Mod-Card-Kit<filename>cards/bn6/ModCards/137-B018 CanGuard.asm
.include "defaults_mod.asm"
table_file_jp equ "exe6-utf8.tbl"
table_file_en equ "bn6-utf8.tbl"
game_code_len equ 3
game_code equ 0x4252354A // BR5J
game_code_2 equ 0x42523545 // BR5E
game_code_3 equ 0x42523550 // BR5P
card_type equ 1
card_id equ 71
card_no equ "071"
card_sub equ "Mod Card 071"
card_sub_x equ 64
card_desc_len equ 2
card_desc_1 equ "CanGuard"
card_desc_2 equ "10MB"
card_desc_3 equ ""
card_name_jp_full equ "キャノガード"
card_name_jp_game equ "キャノガード"
card_name_en_full equ "CanGuard"
card_name_en_game equ "CanGuard"
card_address equ ""
card_address_id equ 0
card_bug equ 0
card_wrote_en equ ""
card_wrote_jp equ "" |
asm/doublewhile.asm | pedroreissantos/pepe | 0 | 4280 | ; PEPE gerado por 'lcc' (IST: prs 2005, 2009)
; 'rl' serve como frame-pointer e 'r0' como acumulador
; os registos 'r1' a 'r10' sao preservados nas chamadas
include atoi.asm
include lib.asm
; global main
; TEXT
main: ; ncalls=3
PUSH r9
PUSH r10
PUSH rl
MOV rl, sp
; P_argc EQU 8
; P_argv EQU 10
SUB sp, 4
MOV r10, 10
ADD r10, rl
MOV r10,[r10]
MOV r10,[r10 + 2]
PUSH r10
CALL atoi
ADD sp,2
MOV [rl + -4],r0
JMP L3
L2:
MOV r10,0
MOV [rl + -2],r10
L5:
MOV r10, [rl + -2]
MOV r9,2
MOD r10,r9
CMP r10,0
JNE L9
MOV r10, [rl + 8]
ADD r10,1
MOV [rl + 8],r10
JMP L10
L9:
MOV r10, [rl + 8]
SUB r10,1
MOV [rl + 8],r10
L10:
L6:
MOV r10, [rl + -2]
ADD r10,1
MOV [rl + -2],r10
MOV r10, [rl + -2]
MOV r9,30000
CMP r10,r9
JLT L5
MOV r10, [rl + -4]
PUSH r10
CALL printi
ADD sp,2
CALL printLN
L3:
MOV r10, [rl + -4]
MOV r9,r10
SUB r9,1
MOV [rl + -4],r9
CMP r10,0
JNE L2
MOV r0,0
L1:
MOV sp, rl
POP rl
POP r10
POP r9
RET
; extern printLN
; extern printi
; extern atoi
|
src/spread/cmd_grid.asm | olifink/qspread | 0 | 85474 | <reponame>olifink/qspread
* Spreadsheet 28/01-91
* - grid command routines
section prog
include win1_keys_wman
include win1_keys_wstatus
include win1_keys_wwork
include win1_keys_qdos_pt
include win1_keys_k
include win1_keys_qdos_io
include win1_mac_oli
include win1_spread_keys
xdef grd_quit,ask_yn
xdef grd_calc,grd_wdth
xdef grd_selc,grd_selr
xdef grd_pwdt,grd_wdth_men
xdef cel_cwdt
xref cfg_cgap
xref.l mv_wdrg,mcx_grid,mcy_grid,mv_stcr
*-------------------------------------------------------------------------------
* select column
grd_selc
subr d1
move.l da_cbx0(a6),d1 ; select first cell
xjsr acc_selc
subend
*-------------------------------------------------------------------------------
* select row
grd_selr subr d1
move.l da_cbx0(a6),d1 ; select first cell
xjsr acc_selr
subend
*-------------------------------------------------------------------------------
* quit qspread
grd_quit subr a3
tst.w da_saved(a6)
bne.s do_quit
xlea ask_f3_quit,a3
bsr ask_always_yn
beq.s quit_exit
do_quit
xjmp ut_kill
quit_exit
subend
*------------------------------------------------------------------------------
* recalculate grid
grd_calc
xjmp acc_clcn
;------------------------------------------------------------------------------
grd_wdth
xjsr xwm_wasdo
beq.s grd_pwdt
grd_wdth_men
subr d1-d4/a0-a3
xjsr wdt_puld
cmpi.b #k.cancel,d4
beq.s wdth_exit
clr.w da_saved(a6)
move.w mv_wdrg(a6),d0 ; from column
move.w mv_wdrg+2(a6),d1 ; to column
move.w mv_wdrg+4(a6),d2 ; new column width
wdth_lp
bsr.s cel_cwdt ; change column width
cmp.w d0,d1
beq.s wdth_rdw ; all done
addq.w #1,d0
bra.s wdth_lp
wdth_rdw
xjsr acc_calc ; complete recalculation
move.l da_cbx0(a6),d1 ; update formular info
xjsr dta_cell
wdth_exit
subend
; change column width
; d0=column number
; d2=width in chars
cel_cwdt subr a3/d0/d1/d2
move.l ww_pappl(a4),a3
move.l (a3),a3
move.l wwa_xspc(a3),a3 ; here is the spacing list
mulu #wwm.slen,d0
mulu #qs.xchar,d2
addq.w #2,d2
move.w d2,wwm_size(a3,d0.l)
move.b cfg_cgap,d1
beq.s no_gap
addq.w #2,d2
no_gap
move.w d2,wwm_spce(a3,d0.l)
subend
;
; perfect width
grd_pwdt subr d1-d4/a0-a3
clr.w da_saved(a6)
move.l da_ccell(a6),d1 ; from column|row
move.l da_cbx1(a6),d2 ; to last column
bpl.s pw_ok
move.l d1,d2
pw_ok
move.w da_cby0(a6),d2
pw_lp
xjsr set_pwdt ; change column width
swap d1 ; column to low word
swap d2 ; here too
cmp.w d1,d2 ; all done?
beq.s pw_rdw_done ; yupp!
swap d2 ; back into right order
addq.w #1,d1 ; next column
swap d1 ; into right order too
bra.s pw_lp ; next column
pw_rdw_done
swap d1 ; really required???
swap d2
xjsr acc_calc ; complete recalculation
move.l da_cbx0(a6),d1 ; update formular info
xjsr dta_cell
pw_exit subend
*+++
* ask for confirmation / answer yes or no
*
* Entry Exit
* d1 0=no / 1=yes
* a3 ask block preserved
*---
ask_yn
tst.w mv_stcr(a6) ; confirmation req.?
beq.s yn_yes
ask_always_yn
moveq #0,d1
move.b colm(a6),d1
xjsr pld_ask
tst.l d0
bmi.s do_kill
bchg #0,d0
move.l d0,d1
moveq #0,d0
yn_exit
tst.w d1
rts
do_kill
xjmp kill
yn_yes
moveq #0,d0
moveq #1,d1
rts
end
|
old/Structure/Logic/Classical/SetTheory/Relation.agda | Lolirofle/stuff-in-agda | 6 | 3752 | <reponame>Lolirofle/stuff-in-agda
import Structure.Logic.Classical.NaturalDeduction
module Structure.Logic.Classical.SetTheory.Relation {ℓₗ} {Formula} {ℓₘₗ} {Proof} {ℓₒ} {Domain} ⦃ classicLogic : _ ⦄ (_∈_ : Domain → Domain → Formula) where
open Structure.Logic.Classical.NaturalDeduction.ClassicalLogic {ℓₗ} {Formula} {ℓₘₗ} {Proof} {ℓₒ} {Domain} (classicLogic)
open import Syntax.Function
open import Structure.Logic.Classical.SetTheory.SetBoundedQuantification {ℓₗ} {Formula} {ℓₘₗ} {Proof} {ℓₒ} {Domain} ⦃ classicLogic ⦄ (_∈_)
UnaryRelator : Set(_)
UnaryRelator = (Domain → Formula)
BinaryRelator : Set(_)
BinaryRelator = (Domain → Domain → Formula)
-- Containment
-- (a ∋ x) means that the set a contains the set x.
_∋_ : BinaryRelator
_∋_ a x = (x ∈ a)
-- Non-containment
_∌_ : BinaryRelator
_∌_ a x = ¬(x ∈ a)
-- Not element of
_∉_ : BinaryRelator
_∉_ x a = ¬(x ∈ a)
-- Subset of
_⊆_ : BinaryRelator
_⊆_ a b = ∀ₗ(x ↦ (x ∈ a) ⟶ (x ∈ b))
-- Superset of
_⊇_ : BinaryRelator
_⊇_ a b = ∀ₗ(x ↦ (x ∈ a) ⟵ (x ∈ b))
-- Equality of
_≡ₛ_ : BinaryRelator
_≡ₛ_ a b = ∀ₗ(x ↦ (x ∈ a) ⟷ (x ∈ b))
-- The statement that the set s is empty
Empty : UnaryRelator
Empty(s) = ∀ₗ(x ↦ ¬(x ∈ s))
-- The statement that the set s is non-empty
NonEmpty : UnaryRelator
NonEmpty(s) = ∃ₗ(x ↦ (x ∈ s))
-- The statement that the set s is a set that contains all sets
Universal : UnaryRelator
Universal(s) = ∀ₗ(x ↦ (x ∈ s))
-- The statement that the sets s₁ and s₂ are disjoint
Disjoint : BinaryRelator
Disjoint(s₁)(s₂) = ∀ₗ(x ↦ ¬((x ∈ s₁)∧(x ∈ s₂)))
-- ¬ ∃ₗ(x ↦ (x ∈ s₁)∧(x ∈ s₂))
-- The statement that the sets in ss are all pairwise disjoint
PairwiseDisjoint : UnaryRelator
PairwiseDisjoint(ss) = ∀ₛ(ss)(s₁ ↦ ∀ₛ(ss)(s₂ ↦ ∀ₗ(x ↦ (x ∈ s₁)∧(x ∈ s₂) ⟶ (s₁ ≡ s₂))))
-- ∀ₛ(ss)(s₁ ↦ ∀ₛ(ss)(s₂ ↦ (s₁ ≢ s₂) → Disjoint(s₁)(s₂)))
-- The statement that the relation predicate F can be interpreted as a partial function
PartialFunction : BinaryRelator → Domain → Formula
PartialFunction(F) (dom) = ∀ₛ(dom)(x ↦ Unique(y ↦ F(x)(y)))
-- The statement that the relation predicate F can be interpreted as a total function
TotalFunction : BinaryRelator → Domain → Formula
TotalFunction(F) (dom) = ∀ₛ(dom)(x ↦ ∃ₗ!(y ↦ F(x)(y)))
-- A binary relator modifier which makes the binary relator to a statement about all distinct pairs in a set.
-- Note: This is specifically for irreflexive binary relations.
Pairwise : BinaryRelator → UnaryRelator
Pairwise Related (S) = ∀ₛ(S)(a ↦ ∀ₛ(S)(b ↦ (a ≢ b) ⟶ Related(a)(b)))
|
source/parser_data.ads | jquorning/CELLE | 0 | 4462 | <gh_stars>0
--
-- The author disclaims copyright to this source code. In place of
-- a legal notice, here is a blessing:
--
-- May you do good and not evil.
-- May you find forgiveness for yourself and forgive others.
-- May you share freely, not taking more than you give.
--
with Ada.Strings.Unbounded;
with Ada.Containers.Vectors;
with Types;
with Symbols;
with Rule_Lists;
package Parser_Data is
Max_Line_Length : constant := 1000; -- Should do for the most
--
-- The state of the parser
--
type State_Scanner is
(DUMMY, -- Make state numbers match lemon
WAITING_FOR_DECL_OR_RULE,
WAITING_FOR_DECL_KEYWORD,
WAITING_FOR_DECL_ARG,
WAITING_FOR_PRECEDENCE_SYMBOL,
WAITING_FOR_ARROW,
IN_RHS,
LHS_ALIAS_1,
LHS_ALIAS_2,
LHS_ALIAS_3,
RHS_ALIAS_1,
RHS_ALIAS_2,
PRECEDENCE_MARK_1,
PRECEDENCE_MARK_2,
RESYNC_AFTER_RULE_ERROR,
RESYNC_AFTER_DECL_ERROR,
WAITING_FOR_DESTRUCTOR_SYMBOL,
WAITING_FOR_DATATYPE_SYMBOL,
WAITING_FOR_FALLBACK_ID,
WAITING_FOR_WILDCARD_ID,
WAITING_FOR_CLASS_ID,
WAITING_FOR_CLASS_TOKEN,
WAITING_FOR_TOKEN_NAME);
MAX_RHS : constant := 1000;
use Ada.Strings.Unbounded;
subtype S_Alias is Unbounded_String;
function To_Alias (Item : in String) return S_Alias renames To_Unbounded_String;
package Alias_Vectors is
new Ada.Containers.Vectors (Index_Type => Positive,
Element_Type => S_Alias);
type A_Declaration is access all Unbounded_String;
subtype Line_Number is Types.Line_Number;
type Line_Number_Access is not null access all Line_Number;
use Symbols;
type Scanner_Record is
record
Line : Line_Number; -- Upcounting line number
Token_Lineno : Line_Number; -- Line at which current token starts
Error_Count : Natural; -- Number of errors so far
-- Preproc_State : State_Preproc;
State : State_Scanner; -- The state of the parser
Fallback : access Symbols.Symbol_Record; -- The fallback token
Token_Class : access Symbols.Symbol_Record; -- Token class symbol
LHS : Symbol_Vectors.Vector; -- Left-hand side of current rule
LHS_Alias : Alias_Vectors.Vector; -- Alias for the LHS
RHS : Symbol_Vectors.Vector; -- RHS symbols
-- Number of right-hand side symbols seen
Alias : Alias_Vectors.Vector; -- Aliases for each RHS symbol (or NULL)
Previous_Rule : Rule_Lists.Lists.Cursor; -- Previous rule parsed
Decl_Keyword : Unbounded_String; -- Keyword of a declaration
Decl_Arg_Slot : A_Declaration; -- Where the declaration argument should be put
Insert_Line_Macro : Boolean; -- Add #line before declaration insert
Decl_Lineno_Slot : Line_Number_Access := new Line_Number'(0);
-- Where to write declaration line number
Decl_Association : Association_Type; -- Assign this association to decl arguments
Prec_Counter : Integer; -- Assign this precedence to decl arguments
Rule : Rule_Lists.Lists.List;
File_Name : Unbounded_String; -- Name of the input file
Token_First : Positive := Positive'First; -- First position in filebuf
Buffer : Unbounded_String; -- Holder for identifiers etc.
end record;
end Parser_Data;
|
oeis/226/A226577.asm | neoneye/loda-programs | 11 | 21758 | ; A226577: Smallest number of integer-sided squares needed to tile a 4 X n rectangle.
; 0,4,2,4,1,5,3,5,2,6,4,6,3,7,5,7,4,8,6,8,5,9,7,9,6,10,8,10,7,11,9,11,8,12,10,12,9,13,11,13,10,14,12,14,11,15,13,15,12,16,14,16,13,17,15,17,14,18,16,18,15,19,17,19,16,20,18,20,17,21,19,21,18,22,20,22,19,23,21,23,20,24,22,24,21,25,23,25,22,26,24,26,23,27,25,27,24,28,26,28
mov $6,2
mov $7,$0
lpb $6
mov $0,$7
sub $6,1
add $0,$6
sub $0,1
mov $2,$0
mov $3,2
mov $4,3
lpb $2
add $0,$3
lpb $4
sub $0,$3
mov $4,$2
lpe
add $0,$4
add $2,$3
add $0,$2
trn $2,6
lpe
mov $5,$6
mov $8,$0
lpb $5
mov $1,$8
sub $5,1
lpe
lpe
lpb $7
sub $1,$8
mov $7,0
lpe
trn $1,1
mov $0,$1
|
Transynther/x86/_processed/US/_zr_/i7-7700_9_0xca_notsx.log_10_1744.asm | ljhsiun2/medusa | 9 | 13907 | .global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r14
push %r9
push %rax
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0x81f3, %rsi
lea addresses_A_ht+0x1b8b3, %rdi
nop
nop
nop
nop
nop
and $52769, %rbp
mov $66, %rcx
rep movsl
cmp $39605, %r12
lea addresses_D_ht+0x20b3, %rax
nop
nop
nop
nop
and %r14, %r14
mov $0x6162636465666768, %rbp
movq %rbp, %xmm6
and $0xffffffffffffffc0, %rax
vmovaps %ymm6, (%rax)
add %rbp, %rbp
lea addresses_WT_ht+0xa0f3, %rsi
lea addresses_UC_ht+0x90b3, %rdi
clflush (%rdi)
nop
nop
nop
xor %rbp, %rbp
mov $26, %rcx
rep movsw
nop
add %rax, %rax
lea addresses_normal_ht+0xb313, %r14
xor %r12, %r12
mov (%r14), %ax
nop
nop
nop
sub %rsi, %rsi
lea addresses_A_ht+0x1c83, %rsi
lea addresses_WT_ht+0x1d8b3, %rdi
nop
nop
nop
nop
nop
dec %r9
mov $112, %rcx
rep movsl
nop
dec %r9
lea addresses_normal_ht+0x106b3, %r12
nop
nop
nop
nop
nop
xor $10407, %rbp
movb (%r12), %cl
nop
xor $58787, %rax
pop %rsi
pop %rdi
pop %rcx
pop %rbp
pop %rax
pop %r9
pop %r14
pop %r12
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r12
push %r8
push %rcx
push %rdx
// Faulty Load
lea addresses_US+0x1b8b3, %rcx
nop
nop
nop
inc %r8
movups (%rcx), %xmm1
vpextrq $0, %xmm1, %r11
lea oracles, %rdx
and $0xff, %r11
shlq $12, %r11
mov (%rdx,%r11,1), %r11
pop %rdx
pop %rcx
pop %r8
pop %r12
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'src': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 0, 'same': False, 'type': 'addresses_US'}, 'OP': 'LOAD'}
[Faulty Load]
{'src': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 0, 'same': True, 'type': 'addresses_US'}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'congruent': 6, 'same': False, 'type': 'addresses_A_ht'}, 'dst': {'congruent': 10, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'REPM'}
{'dst': {'NT': False, 'AVXalign': True, 'size': 32, 'congruent': 9, 'same': False, 'type': 'addresses_D_ht'}, 'OP': 'STOR'}
{'src': {'congruent': 2, 'same': False, 'type': 'addresses_WT_ht'}, 'dst': {'congruent': 9, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'REPM'}
{'src': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 4, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'LOAD'}
{'src': {'congruent': 4, 'same': False, 'type': 'addresses_A_ht'}, 'dst': {'congruent': 10, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'REPM'}
{'src': {'NT': True, 'AVXalign': False, 'size': 1, 'congruent': 4, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'LOAD'}
{'00': 10}
00 00 00 00 00 00 00 00 00 00
*/
|
bb-runtimes/runtimes/ravenscar-sfp-stm32g474/gnarl/s-bbtime.ads | JCGobbi/Nucleo-STM32G474RE | 0 | 19576 | <gh_stars>0
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- S Y S T E M . B B . T I M E --
-- --
-- S p e c --
-- --
-- Copyright (C) 1999-2002 Universidad Politecnica de Madrid --
-- Copyright (C) 2003-2004 The European Space Agency --
-- Copyright (C) 2003-2021, AdaCore --
-- --
-- GNARL is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 3, or (at your option) any later ver- --
-- sion. GNARL is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. --
-- --
-- --
-- --
-- --
-- --
-- You should have received a copy of the GNU General Public License and --
-- a copy of the GCC Runtime Library Exception along with this program; --
-- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
-- <http://www.gnu.org/licenses/>. --
-- --
-- GNARL was developed by the GNARL team at Florida State University. --
-- Extensive contributions were provided by Ada Core Technologies, Inc. --
-- --
-- The port of GNARL to bare board targets was initially developed by the --
-- Real-Time Systems Group at the Technical University of Madrid. --
-- --
------------------------------------------------------------------------------
-- Package in charge of implementing clock and timer functionalities
pragma Restrictions (No_Elaboration_Code);
with System.Multiprocessors;
package System.BB.Time is
pragma Preelaborate;
type Time is mod 2 ** 64;
for Time'Size use 64;
------------------
-- Time keeping --
------------------
-- Time is represented at this level as a 64-bit unsigned number. We assume
-- that the Board_Support.Read_Clock function provides access to a hardware
-- clock with a resolution of 20 microseconds or better, counting from
-- 0 to Board_Support.Max_Timer_Interval over a period of at least 0.735
-- seconds, and returning a value of the 32-bit Timer_Interval type. The
-- clock resolution should be an integral number of nanoseconds between 1
-- and 20_000.
-- In addition, Board_Support provides an alarm facility, generating an
-- alarm interrupt at up to Max_Timer_Interval clock ticks in the future.
-- The clock frequency is the same as for Read_Clock, but it may or may not
-- use the same timer. See the next section for more information.
-- The Time package uses these facilities to keep a 64-bit clock that will
-- allow a program to keep track of up to 50 years in the future without
-- having the most significant bit set. This means it is always safe to
-- subtract two Clock readings to determine a Time_Span without overflow.
-- We need to support a clock running for 50 years, so this requires
-- a hardware clock period of at least 1_577_880_000 / 2**31 or 0.735
-- seconds. As comparison, a LEON2 at 80 MHz with 24-bit clock and the
-- minimum prescale factor of 4, has a period of 2**24 / (80E6 / 4) = 0.839
-- seconds, while a 200 MHz LEON3 has a period of 2**32 / (200E6 / 5) =
-- 107 seconds. For faster clocks or smaller clock width, higher prescaler
-- values may be needed to achieve 50 year run time. The prescale factor
-- should be chosen such that the period between clock ticks is an integral
-- number of nanoseconds between 1 and 20_000.
type Time_Span is range -2 ** 63 .. 2 ** 63 - 1;
for Time_Span'Size use 64;
-- Time_Span represents the length of time intervals, and it is defined as
-- a 64-bit signed integer.
------------
-- Alarms --
------------
-- Alarms are used for two purposes:
-- * Waking up tasks that sleep as result of Delay_Until
-- * Clock updates, to prevent undetected wrap-around of the
-- hardware clock
-- Alarms use the same time unit as the clock used for time keeping,
-- and need to be able to provide an alarm up to slightly less than
-- Max_Timer_Interval ticks in the future; there always will be a pending
-- alarm within this time frame because of required clock updates. A
-- requirement is that an alarm always can be handled within 1/8th of the
-- time it takes the hardware clock to wrap around. This gives an upper
-- bound to how early we have to set the alarm to ensure timely clock
-- updates. This will result in an interrupt rate 14% higher than
-- absolutely necessary. However, as long as sleep-related alarms are
-- sufficiently frequent, no extra clock-related interrupts are necessary.
--------------------
-- Execution time --
--------------------
-- System.BB.Execution_Time will set these hooks to enable execution time
-- computation only when needed.
Scheduling_Event_Hook : access procedure := null;
-- This hooks must be called when the charged account change: in case of
-- rescheduling and before and after the handling of interrupt.
--------------------
-- Initialization --
--------------------
procedure Initialize_Timers;
-- Initialize this package (clock and alarm handlers). Must be called
-- before any other functions.
----------------
-- Operations --
----------------
function Epoch return Time;
-- Get the reference startup time
function Clock return Time;
-- Get the number of ticks elapsed since startup
procedure Delay_Until (T : Time);
-- Suspend the calling thread until the absolute time specified by T
function Get_Next_Timeout (CPU_Id : System.Multiprocessors.CPU) return Time;
-- Get the date of the next alarm or timing event
procedure Update_Alarm (Alarm : Time);
-- Re-configure the timer if "Alarm" is earlier than the Pending_Alarm.
-- Update_Alarm is the only routine allowed to set an alarm.
-- Execution time
-- Ada allows reading the execution time of any task. To support that, we
-- need to have exclusive access to the time (which is costly as it is not
-- possible to atomically read that value without using a spin lock and
-- masking interrupts). To avoid that cost, let's split that type in two
-- parts (that can be read or written atomically by the processor). It
-- is not possible to read atomically the whole value, but it is possible
-- to read a coherent value: if the time has been changed from A to B
-- while being read, the value read is between A and B. Because of the
-- architecture of the runtime, the execution time is always written
-- atomically (written by the processor executing the task, within the
-- kernel).
-- The type Composite_Execution_Time is declared here so that s-bbthre
-- doesn't depend on s-bbtiev. But this type is used by s-bbtiev.
type Word is mod 2 ** 32;
type Composite_Execution_Time is record
High : Word;
pragma Atomic (High);
-- High part of execution time
Low : Word;
pragma Atomic (Low);
-- Low part of execution time
end record;
Initial_Composite_Execution_Time : constant Composite_Execution_Time :=
(0, 0);
-- The initial value for Composite_Execution_Time
private
pragma Inline (Clock);
pragma Inline (Epoch);
end System.BB.Time;
|
b2stest/spark_io.adb | lkujaw/ada-blake2 | 1 | 4804 | <reponame>lkujaw/ada-blake2
-----------------------------------------------------------------------
-- Copyright 2012 Altran Praxis Limited --
-- Copyright 2021 <NAME> --
-- --
-- This file is part of B2STEST. --
-- --
-- B2STEST is free software: you can redistribute it and/or --
-- modify it under the terms of the GNU General Public License as --
-- published by the Free Software Foundation, either version 3 of --
-- the License, or (at your option) any later version. --
-- --
-- B2STEST is distributed in the hope that it will be useful, --
-- but WITHOUT ANY WARRANTY; without even the implied warranty of --
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --
-- GNU General Public License for more details. --
-- --
-- You should have received a copy of the --
-- GNU General Public License along with B2STEST. --
-- If not, see <https://www.gnu.org/licenses/>. --
-- --
-- SPDX-License-Identifier: GPL-3.0-or-later --
-- --
-- File: spark_io.adb (Ada Package Body) --
-- Language: SPARK83 [1] subset of Ada (1987) [2] --
-- Description: Ada Text_IO binding for SPARK83 --
-- --
-- References: --
-- [1] SPARK Team, SPARK83 - The SPADE Ada83 Kernel, --
-- Altran Praxis, 17 Oct. 2011. --
-- [2] Programming languages - Ada, ISO/IEC 8652:1987, --
-- 15 Jun. 1987. --
-----------------------------------------------------------------------
package body SPARK_IO is
--# hide SPARK_IO;
function "="
(Left : in Text_IO.File_Mode;
Right : in Text_IO.File_Mode)
return Boolean renames Text_IO."=";
package Integer_IO is new Text_IO.Integer_IO (Num => Integer);
function Is_Input_File
(File : in File_T)
return Boolean
is
begin
return
File.Kind = Input_Stream
or else
(File.Kind = Regular_File
and then Text_IO.Mode (File.Actual) = Text_IO.In_File);
exception
when others =>
return False;
end Is_Input_File;
function Is_Output_File
(File : in File_T)
return Boolean
is
begin
return
File.Kind = Output_Stream
or else
(File.Kind = Regular_File
and then Text_IO.Mode (File.Actual) = Text_IO.Out_File);
exception
when others =>
return False;
end Is_Output_File;
function End_Of_File
(File : in File_T)
return Boolean
is
begin
return
not Is_Input_File (File)
or else Text_IO.End_Of_File (File.Actual);
exception
when others =>
return True;
end End_Of_File;
procedure Standard_Input
(File : out File_T)
is
begin
File.Kind := Input_Stream;
end Standard_Input;
procedure Standard_Output
(File : out File_T)
is
begin
File.Kind := Output_Stream;
end Standard_Output;
procedure Open
(File : out File_T;
File_Mode : in File_Mode_T;
File_Name : in String;
File_Form : in String;
Status : out File_Status_T)
is
Ada_Mode : Text_IO.File_Mode;
begin
case File_Mode is
when In_File =>
Ada_Mode := Text_IO.In_File;
when Out_File =>
Ada_Mode := Text_IO.Out_File;
end case;
Text_IO.Open (File.Actual, Ada_Mode, File_Name, File_Form);
File.Kind := Regular_File;
Status := Success;
exception
when Text_IO.Status_Error =>
Status := Status_Error;
when Text_IO.Mode_Error =>
Status := Mode_Error;
when Text_IO.Name_Error =>
Status := Name_Error;
when Text_IO.Use_Error =>
Status := Use_Error;
when Text_IO.Device_Error =>
Status := Device_Error;
when Text_IO.End_Error =>
Status := End_Error;
when Text_IO.Data_Error =>
Status := Data_Error;
when Text_IO.Layout_Error =>
Status := Layout_Error;
when Storage_Error =>
Status := Standard_Storage_Error;
when others =>
Status := Standard_Program_Error;
end Open;
procedure Close
(File : in out File_T;
Status : out File_Status_T)
is
begin
if File.Kind = Regular_File then
Text_IO.Close (File.Actual);
File.Kind := Empty;
Status := Success;
else
Status := Status_Error;
end if;
exception
when Text_IO.Status_Error =>
Status := Status_Error;
when Text_IO.Mode_Error =>
Status := Mode_Error;
when Text_IO.Name_Error =>
Status := Name_Error;
when Text_IO.Use_Error =>
Status := Use_Error;
when Text_IO.Device_Error =>
Status := Device_Error;
when Text_IO.End_Error =>
Status := End_Error;
when Text_IO.Data_Error =>
Status := Data_Error;
when Text_IO.Layout_Error =>
Status := Layout_Error;
when Constraint_Error =>
Status := Use_Error;
when Storage_Error =>
Status := Standard_Storage_Error;
when others =>
Status := Standard_Program_Error;
end Close;
procedure New_Line
(File : in File_T;
Spacing : in Positive)
is
begin
case File.Kind is
when Output_Stream =>
Text_IO.New_Line
(Text_IO.Standard_Output,
Text_IO.Positive_Count (Spacing));
when Regular_File =>
if Text_IO.Mode (File.Actual) = Text_IO.Out_File then
Text_IO.New_Line
(File.Actual, Text_IO.Positive_Count (Spacing));
end if;
when Empty =>
null;
when Input_Stream =>
null;
end case;
exception
when others =>
null;
end New_Line;
procedure Put
(File : in File_T;
Item : in String)
is
begin
if Is_Output_File (File) then
if File.Kind = Output_Stream then
Text_IO.Put (Text_IO.Standard_Output, Item);
else
Text_IO.Put (File.Actual, Item);
end if;
end if;
end Put;
procedure Put_String
(File : in File_T;
Item : in String;
Stop : in Natural)
is
begin
if Stop = 0 then
Put (File, Item);
elsif Stop <= Item'Last then
Put (File, Item (Item'First .. Stop));
else
Put (File, Item);
for I in Natural range 0 .. Stop - Item'Last loop
Put (File, " ");
end loop;
end if;
exception
when others =>
null;
end Put_String;
procedure Get_Line
(File : in File_T;
Item : out String;
Stop : out Natural)
is
Line_Stop : Natural;
begin
if Is_Input_File (File) then
if File.Kind = Input_Stream then
Text_IO.Get_Line
(Text_IO.Standard_Input, Item, Line_Stop);
else
Text_IO.Get_Line
(File.Actual, Item, Line_Stop);
end if;
if Line_Stop <= Item'Last then
Stop := Line_Stop;
else
-- This should never occur.
Stop := Item'Last;
end if;
else
Stop := Item'First - 1;
end if;
exception
when others =>
Stop := Item'First - 1;
end Get_Line;
procedure Put_Line
(File : in File_T;
Item : in String)
is
begin
if Is_Output_File (File) then
if File.Kind = Output_Stream then
Text_IO.Put_Line
(Text_IO.Standard_Output, Item);
else
Text_IO.Put_Line
(File.Actual, Item);
end if;
end if;
end Put_Line;
procedure Put_Line
(File : in File_T;
Item : in String;
Stop : in Natural)
is
begin
if Is_Output_File (File) then
if Stop = 0 then
Put_Line (File, Item);
else
Put_Line (File, Item (Item'First .. Stop));
end if;
end if;
exception
when others =>
null;
end Put_Line;
procedure Put_Integer
(File : in File_T;
Item : in Integer;
Width : in Natural;
Base : in Number_Base_T)
is
begin
if Is_Output_File (File) then
if File.Kind = Output_Stream then
Integer_IO.Put
(Text_IO.Standard_Output, Item, Width, Base);
else
Integer_IO.Put
(File.Actual, Item, Width, Base);
end if;
end if;
exception
when others =>
null;
end Put_Integer;
end SPARK_IO;
|
Task/Inverted-index/Ada/inverted-index-4.ada | LaudateCorpus1/RosettaCodeData | 1 | 25124 | with Gnat.Regpat;
package Parse_Lines is
Word_Pattern: constant String := "([a-zA-Z]+)";
Filename_Pattern: constant String := "([a-zA-Z0-9_.,;:]+)";
procedure Search_For_Pattern(Pattern: Gnat.Regpat.Pattern_Matcher;
Search_In: String;
First, Last: out Positive;
Found: out Boolean);
function Compile(Raw: String) return Gnat.Regpat.Pattern_Matcher;
generic
Pattern: String;
with procedure Do_Something(Word: String);
procedure Iterate_Words(S: String);
end Parse_Lines;
|
Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0xca.log_21829_1509.asm | ljhsiun2/medusa | 9 | 10447 | .global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r14
push %r8
push %r9
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0x2529, %rsi
lea addresses_normal_ht+0x19789, %rdi
nop
add %r8, %r8
mov $106, %rcx
rep movsb
nop
nop
nop
dec %r12
lea addresses_WC_ht+0x8f89, %r9
clflush (%r9)
nop
add $41059, %r14
movl $0x61626364, (%r9)
nop
nop
nop
nop
dec %r8
lea addresses_WT_ht+0xda71, %rsi
lea addresses_A_ht+0xad89, %rdi
nop
nop
nop
nop
add %rbx, %rbx
mov $95, %rcx
rep movsl
nop
nop
nop
nop
inc %r14
lea addresses_A_ht+0x12469, %rsi
lea addresses_normal_ht+0x16789, %rdi
cmp %r12, %r12
mov $101, %rcx
rep movsq
nop
cmp $2600, %rbx
lea addresses_normal_ht+0x17e75, %rdi
nop
nop
nop
nop
and $53379, %r9
movw $0x6162, (%rdi)
nop
nop
cmp $30269, %r12
lea addresses_WC_ht+0x168a9, %rsi
lea addresses_UC_ht+0x15838, %rdi
nop
nop
nop
nop
add $704, %r14
mov $20, %rcx
rep movsw
inc %r14
lea addresses_WT_ht+0xb389, %rsi
lea addresses_WT_ht+0x17789, %rdi
nop
nop
nop
dec %r8
mov $3, %rcx
rep movsb
cmp %rsi, %rsi
lea addresses_A_ht+0x1c189, %rcx
nop
nop
nop
and %r9, %r9
mov (%rcx), %rdi
nop
xor $62125, %rdi
lea addresses_A_ht+0x64a7, %r8
nop
nop
nop
sub %r14, %r14
movb (%r8), %cl
nop
nop
xor $18022, %rcx
lea addresses_A_ht+0x16ffd, %rcx
nop
nop
nop
nop
dec %r9
mov $0x6162636465666768, %rbx
movq %rbx, %xmm3
movups %xmm3, (%rcx)
nop
nop
sub $40891, %rdi
lea addresses_A_ht+0x4151, %rdi
xor $37748, %r12
mov $0x6162636465666768, %rsi
movq %rsi, (%rdi)
nop
and $52178, %r9
lea addresses_WT_ht+0x16161, %rsi
nop
xor $19712, %rcx
mov (%rsi), %edi
nop
nop
nop
nop
nop
xor %rsi, %rsi
lea addresses_normal_ht+0x1cd71, %rsi
nop
add $58991, %r14
movb (%rsi), %r9b
nop
nop
nop
nop
and %rcx, %rcx
lea addresses_UC_ht+0xeb14, %r12
nop
nop
nop
dec %rsi
movw $0x6162, (%r12)
add $48703, %rcx
lea addresses_D_ht+0x155c9, %rsi
lea addresses_normal_ht+0x19d09, %rdi
nop
nop
nop
nop
add %rbx, %rbx
mov $37, %rcx
rep movsb
nop
inc %r8
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %r9
pop %r8
pop %r14
pop %r12
ret
.global s_faulty_load
s_faulty_load:
push %r13
push %r15
push %r8
push %rdi
push %rsi
// Faulty Load
lea addresses_A+0x1eb89, %r15
nop
nop
nop
sub %r13, %r13
mov (%r15), %r8d
lea oracles, %r13
and $0xff, %r8
shlq $12, %r8
mov (%r13,%r8,1), %r8
pop %rsi
pop %rdi
pop %r8
pop %r15
pop %r13
ret
/*
<gen_faulty_load>
[REF]
{'src': {'congruent': 0, 'AVXalign': False, 'same': False, 'size': 16, 'NT': False, 'type': 'addresses_A'}, 'OP': 'LOAD'}
[Faulty Load]
{'src': {'congruent': 0, 'AVXalign': False, 'same': True, 'size': 4, 'NT': False, 'type': 'addresses_A'}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'congruent': 5, 'same': True, 'type': 'addresses_normal_ht'}, 'OP': 'REPM', 'dst': {'congruent': 8, 'same': False, 'type': 'addresses_normal_ht'}}
{'OP': 'STOR', 'dst': {'congruent': 10, 'AVXalign': False, 'same': False, 'size': 4, 'NT': False, 'type': 'addresses_WC_ht'}}
{'src': {'congruent': 3, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'dst': {'congruent': 9, 'same': False, 'type': 'addresses_A_ht'}}
{'src': {'congruent': 5, 'same': True, 'type': 'addresses_A_ht'}, 'OP': 'REPM', 'dst': {'congruent': 10, 'same': True, 'type': 'addresses_normal_ht'}}
{'OP': 'STOR', 'dst': {'congruent': 2, 'AVXalign': False, 'same': False, 'size': 2, 'NT': False, 'type': 'addresses_normal_ht'}}
{'src': {'congruent': 4, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'REPM', 'dst': {'congruent': 0, 'same': False, 'type': 'addresses_UC_ht'}}
{'src': {'congruent': 11, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'dst': {'congruent': 8, 'same': False, 'type': 'addresses_WT_ht'}}
{'src': {'congruent': 9, 'AVXalign': False, 'same': False, 'size': 8, 'NT': True, 'type': 'addresses_A_ht'}, 'OP': 'LOAD'}
{'src': {'congruent': 1, 'AVXalign': False, 'same': True, 'size': 1, 'NT': False, 'type': 'addresses_A_ht'}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'congruent': 2, 'AVXalign': False, 'same': False, 'size': 16, 'NT': False, 'type': 'addresses_A_ht'}}
{'OP': 'STOR', 'dst': {'congruent': 0, 'AVXalign': False, 'same': False, 'size': 8, 'NT': False, 'type': 'addresses_A_ht'}}
{'src': {'congruent': 1, 'AVXalign': False, 'same': True, 'size': 4, 'NT': True, 'type': 'addresses_WT_ht'}, 'OP': 'LOAD'}
{'src': {'congruent': 3, 'AVXalign': False, 'same': False, 'size': 1, 'NT': False, 'type': 'addresses_normal_ht'}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'congruent': 0, 'AVXalign': False, 'same': False, 'size': 2, 'NT': False, 'type': 'addresses_UC_ht'}}
{'src': {'congruent': 3, 'same': False, 'type': 'addresses_D_ht'}, 'OP': 'REPM', 'dst': {'congruent': 7, 'same': False, 'type': 'addresses_normal_ht'}}
{'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
*/
|
programs/oeis/062/A062830.asm | neoneye/loda | 22 | 29591 | ; A062830: a(n) = n - phi(n) + 1.
; 1,2,2,3,2,5,2,5,4,7,2,9,2,9,8,9,2,13,2,13,10,13,2,17,6,15,10,17,2,23,2,17,14,19,12,25,2,21,16,25,2,31,2,25,22,25,2,33,8,31,20,29,2,37,16,33,22,31,2,45,2,33,28,33,18,47,2,37,26,47,2,49,2,39,36,41,18,55,2,49,28,43,2,61,22,45,32,49,2,67,20,49,34,49,24,65,2,57,40,61
mov $1,$0
seq $1,10 ; Euler totient function phi(n): count numbers <= n and prime to n.
sub $1,2
sub $0,$1
|
Cubical/ZCohomology/S1/S1.agda | borsiemir/cubical | 0 | 13068 | {-# OPTIONS --cubical --safe #-}
module Cubical.ZCohomology.S1.S1 where
open import Cubical.ZCohomology.Base
open import Cubical.ZCohomology.Properties
open import Cubical.HITs.S1
open import Cubical.Foundations.Prelude
open import Cubical.Foundations.Isomorphism
open import Cubical.HITs.SetTruncation
open import Cubical.HITs.Nullification
open import Cubical.Data.Int
open import Cubical.Data.Nat
open import Cubical.HITs.Truncation
---- H⁰(S¹) = ℤ ----
coHom0-S1 : coHom zero S¹ ≡ Int
coHom0-S1 = (λ i → ∥ helpLemma i ∥₀ ) ∙ setId isSetInt
where
helpLemma : (S¹ → Int) ≡ Int
helpLemma = isoToPath (iso fun funinv (λ _ → refl) (λ f → funExt (rinvLemma f)))
where
fun : (S¹ → Int) → Int
fun f = f base
funinv : Int → (S¹ → Int)
funinv a base = a
funinv a (loop i) = a
rinvLemma : (f : S¹ → Int) → (x : S¹) → funinv (fun f) x ≡ f x
rinvLemma f base = refl
rinvLemma f (loop i) j = isSetInt (f base) (f base) (λ k → f (loop k)) refl (~ j) i
-------------------------
{- TODO : give Hᵏ(S¹) for all k -}
|
programs/oeis/032/A032091.asm | neoneye/loda | 22 | 81109 | <reponame>neoneye/loda<gh_stars>10-100
; A032091: Number of reversible strings with n-1 beads of 2 colors. 4 beads are black. String is not palindromic.
; 2,6,16,32,60,100,160,240,350,490,672,896,1176,1512,1920,2400,2970,3630,4400,5280,6292,7436,8736,10192,11830,13650,15680,17920,20400,23120,26112,29376,32946,36822,41040,45600,50540,55860,61600,67760,74382,81466,89056,97152,105800,115000,124800,135200,146250,157950,170352,183456,197316,211932,227360,243600,260710,278690,297600,317440,338272,360096,382976,406912,431970,458150,485520,514080,543900,574980,607392,641136,676286,712842,750880,790400,831480,874120,918400,964320,1011962,1061326,1112496,1165472,1220340,1277100,1335840,1396560,1459350,1524210,1591232,1660416,1731856,1805552,1881600,1960000,2040850,2124150,2210000,2298400
add $0,2
mov $1,$0
add $0,3
pow $0,2
div $0,4
pow $1,2
div $1,2
mul $1,$0
mov $0,$1
div $0,12
mul $0,2
|
Asm4Kids/26adcby2s.asm | jacmoe/c64adventures | 17 | 84442 | ; adc by two's
; the accumulator is incremented by two each time the program loops
; the clc instruction makes sure that the contents of the accumulator
; are incremented only by two and not two plus the carry
; 10 SYS (49152)
*=$0801
BYTE $0E, $08, $0A, $00, $9E, $20, $28, $34, $39, $31, $35, $32, $29, $00, $00, $00
*=$c000
jsr $e544
lda #65
start clc
adc #2
jsr $e716
cmp #89
bne start
rts
|
dhis-2/dhis-support/dhis-support-expression-parser/src/main/antlr4/org/hisp/dhis/parser/expression/antlr/Expression.g4 | netroms/dhis2-core | 0 | 6742 | // ANTLR V4 grammar file to define DHIS2 epression syntax
grammar Expression;
// -----------------------------------------------------------------------------
// Parser rules
// -----------------------------------------------------------------------------
expression // The expression must last until the end of the string
: expr EOF
;
expr
// Allow whitespace on either side of any expression
: WS+ expr
| expr WS+
// Operators (in precidence order)
| fun='(' expr ')'
| <assoc=right> expr fun='^' expr
| fun=('+' | '-' | '!' | 'not') expr
| expr fun=('*' | '/' | '%') expr
| expr fun=('+' | '-') expr
| expr fun=('<' | '>' | '<=' | '>=') expr
| expr fun=('==' | '!=') expr
| expr fun=('&&' | 'and') expr
| expr fun=('||' | 'or') expr
// Functions (alphabetical)
| fun='firstNonNull(' WS* itemNumStringLiteral WS* (',' WS* itemNumStringLiteral WS* )* ')'
| fun='greatest(' expr (',' expr )* ')'
| fun='if(' expr ',' expr ',' expr ')'
| fun='isNotNull(' WS* item WS* ')'
| fun='isNull(' WS* item WS* ')'
| fun='least(' expr (',' expr )* ')'
// Aggergation functions (alphabetical)
| fun='avg(' expr ')'
| fun='count(' expr ')'
| fun='max(' expr ')'
| fun='median(' expr ')'
| fun='min(' expr ')'
| fun='percentileCont(' expr ',' expr ')'
| fun='stddev(' expr ')'
| fun='stddevPop(' expr ')'
| fun='stddevSamp(' expr ')'
| fun='sum(' expr ')'
| fun='variance(' expr ')'
// Program variables (alphabtical)
| 'V{' fun='analytics_period_end' '}'
| 'V{' fun='analytics_period_start' '}'
| 'V{' fun='creation_date' '}'
| 'V{' fun='current_date' '}'
| 'V{' fun='due_date' '}'
| 'V{' fun='enrollment_count' '}'
| 'V{' fun='enrollment_date' '}'
| 'V{' fun='enrollment_status' '}'
| 'V{' fun='event_count' '}'
| 'V{' fun='event_date' '}'
| 'V{' fun='execution_date' '}'
| 'V{' fun='incident_date' '}'
| 'V{' fun='org_unit_count' '}'
| 'V{' fun='program_stage_id' '}'
| 'V{' fun='program_stage_name' '}'
| 'V{' fun='sync_date' '}'
| 'V{' fun='tei_count' '}'
| 'V{' fun='value_count' '}'
| 'V{' fun='zero_pos_value_count' '}'
// Program functions (alphabetical)
| fun='d2:condition(' WS* stringLiteral WS* ',' expr ',' expr ')'
| fun='d2:count(' WS* stageDataElement WS* ')'
| fun='d2:countIfCondition(' WS* stageDataElement ',' WS* stringLiteral WS* ')'
| fun='d2:countIfValue(' WS* stageDataElement WS* ',' WS* numStringLiteral WS* ')'
| fun='d2:daysBetween(' compareDate ',' compareDate ')'
| fun='d2:hasValue(' item ')'
| fun='d2:maxValue(' ( item | compareDate ) ')'
| fun='d2:minutesBetween(' compareDate ',' compareDate ')'
| fun='d2:minValue(' ( item | compareDate ) ')'
| fun='d2:monthsBetween(' compareDate ',' compareDate ')'
| fun='d2:oizp(' expr ')'
| fun='d2:relationshipCount(' WS* QUOTED_UID? WS* ')'
| fun='d2:weeksBetween(' compareDate ',' compareDate ')'
| fun='d2:yearsBetween(' compareDate ',' compareDate ')'
| fun='d2:zing(' expr ')'
| fun='d2:zpvc(' item (',' item )* ')'
// Other
| item
| numericLiteral
| stringLiteral
| booleanLiteral
;
item
: it='#{' uid0=UID ('.*')? '}'
| it='#{' uid0=UID '.' uid1=UID '}'
| it='#{' uid0=UID '.' uid1=UID wild2='.*' '}'
| it='#{' uid0=UID '.*.' uid2=UID '}'
| it='#{' uid0=UID '.' uid1=UID '.' uid2=UID '}'
| it='A{' uid0=UID '.' uid1=UID '}' // Program attribute in expressions (indicator, etc.)
| it='A{' uid0=UID '}' // Program attribute in program indicator expressions
| it='C{' uid0=UID '}'
| it='D{' uid0=UID '.' uid1=UID '}'
| it='I{' uid0=UID '}'
| it='N{' uid0=UID '}' // Indicator
| it='OUG{' uid0=UID '}'
| it='R{' uid0=UID '.' REPORTING_RATE_TYPE '}'
| it='[days]'
;
stageDataElement
: '#{' uid0=UID '.' uid1=UID '}'
;
programAttribute
: 'A{' uid0=UID '}'
;
compareDate
: expr
| WS* 'PS_EVENTDATE:' WS* uid0=UID WS*
;
itemNumStringLiteral
: item
| numStringLiteral
;
numStringLiteral
: numericLiteral
| stringLiteral
;
numericLiteral
: NUMERIC_LITERAL
;
stringLiteral
: STRING_LITERAL
| QUOTED_UID // Resolve that quoted UID can also be a string literal
;
booleanLiteral
: BOOLEAN_LITERAL
;
// -----------------------------------------------------------------------------
// Assign token names to parser symbols
// -----------------------------------------------------------------------------
// Operators
PAREN : '(';
PLUS : '+';
MINUS : '-';
POWER : '^';
MUL : '*';
DIV : '/';
MOD : '%';
EQ : '==';
NE : '!=';
GT : '>';
LT : '<';
GEQ : '>=';
LEQ : '<=';
NOT : 'not';
AND : 'and';
OR : 'or';
EXCLAMATION_POINT : '!';
AMPERSAND_2 : '&&';
VERTICAL_BAR_2 : '||';
// Functions (alphabetical)
FIRST_NON_NULL : 'firstNonNull(';
GREATEST : 'greatest(';
IF : 'if(';
IS_NOT_NULL : 'isNotNull(';
IS_NULL : 'isNull(';
LEAST : 'least(';
// Aggegation functions (alphabetical)
AVG : 'avg(';
COUNT : 'count(';
MAX : 'max(';
MEDIAN : 'median(';
MIN : 'min(';
PERCENTILE_CONT : 'percentileCont(';
STDDEV : 'stddev(';
STDDEV_POP : 'stddevPop(';
STDDEV_SAMP : 'stddevSamp(';
SUM : 'sum(';
VARIANCE : 'variance(';
// Program variables (alphabetical)
V_ANALYTICS_PERIOD_END : 'analytics_period_end';
V_ANALYTICS_PERIOD_START: 'analytics_period_start';
V_CREATION_DATE : 'creation_date';
V_CURRENT_DATE : 'current_date';
V_DUE_DATE : 'due_date';
V_ENROLLMENT_COUNT : 'enrollment_count';
V_ENROLLMENT_DATE : 'enrollment_date';
V_ENROLLMENT_STATUS : 'enrollment_status';
V_EVENT_COUNT : 'event_count';
V_EVENT_DATE : 'event_date';
V_EXECUTION_DATE : 'execution_date';
V_INCIDENT_DATE : 'incident_date';
V_ORG_UNIT_COUNT : 'org_unit_count';
V_PROGRAM_STAGE_ID : 'program_stage_id';
V_PROGRAM_STAGE_NAME : 'program_stage_name';
V_SYNC_DATE : 'sync_date';
V_TEI_COUNT : 'tei_count';
V_VALUE_COUNT : 'value_count';
V_ZERO_POS_VALUE_COUNT : 'zero_pos_value_count';
// Program functions (alphabetical)
D2_CONDITION : 'd2:condition(';
D2_COUNT : 'd2:count(';
D2_COUNT_IF_CONDITION : 'd2:countIfCondition(';
D2_COUNT_IF_VALUE : 'd2:countIfValue(';
D2_DAYS_BETWEEN : 'd2:daysBetween(';
D2_HAS_VALUE : 'd2:hasValue(';
D2_MAX_VALUE : 'd2:maxValue(';
D2_MINUTES_BETWEEN : 'd2:minutesBetween(';
D2_MIN_VALUE : 'd2:minValue(';
D2_MONTHS_BETWEEN : 'd2:monthsBetween(';
D2_OIZP : 'd2:oizp(';
D2_RELATIONSHIP_COUNT : 'd2:relationshipCount(';
D2_WEEKS_BETWEEN : 'd2:weeksBetween(';
D2_YEARS_BETWEEN : 'd2:yearsBetween(';
D2_ZING : 'd2:zing(';
D2_ZPVC : 'd2:zpvc(';
// Items (alphabetical by symbol)
HASH_BRACE : '#{';
A_BRACE : 'A{';
C_BRACE : 'C{';
D_BRACE : 'D{';
I_BRACE : 'I{';
N_BRACE : 'N{';
OUG_BRACE : 'OUG{';
R_BRACE : 'R{';
DAYS : '[days]';
// -----------------------------------------------------------------------------
// Lexer rules
//
// Some expression characters are grouped into lexer tokens before parsing.
// If a sequence of characters from the expression matches more than one
// lexer rule, the first lexer rule is used.
// -----------------------------------------------------------------------------
REPORTING_RATE_TYPE
: 'REPORTING_RATE'
| 'REPORTING_RATE_ON_TIME'
| 'ACTUAL_REPORTS'
| 'ACTUAL_REPORTS_ON_TIME'
| 'EXPECTED_REPORTS'
;
NUMERIC_LITERAL
: ('0' | [1-9] [0-9]*) ('.' [0-9]*)? Exponent?
| '.' [0-9]+ Exponent?
;
BOOLEAN_LITERAL
: 'true'
| 'false'
;
// Quoted UID could also be a string literal. It must come first.
QUOTED_UID
: Q1 UID Q1
| Q2 UID Q2
;
STRING_LITERAL
: Q1 (~['\\\r\n] | EscapeSequence)* Q1
| Q2 (~["\\\r\n] | EscapeSequence)* Q2
;
Q1 : '\'' // Single quote
;
Q2 : '"' // Double quote
;
UID : Alpha
AlphaNum AlphaNum AlphaNum AlphaNum AlphaNum
AlphaNum AlphaNum AlphaNum AlphaNum AlphaNum
;
// IDENTIFIER has the effect of requiring spaces between words,
// for example disallows notisNull (should be not isNull),
// but allows !isNull.
IDENTIFIER
: [a-zA-Z]+
;
WS : [ \t\n\r]+
;
// Lexer fragments
fragment Exponent
: ('e'|'E') ('+'|'-')? [0-9]+
;
fragment Alpha
: [a-zA-Z]
;
fragment AlphaNum
: [a-zA-Z0-9]
;
fragment EscapeSequence
: '\\' [btnfr"'\\]
| '\\' ([0-3]? [0-7])? [0-7]
| '\\' 'u'+ HexDigit HexDigit HexDigit HexDigit
;
fragment HexDigit
: [0-9a-fA-F]
;
|
Assembly/Monte Carlo/Monte Carlo.asm | xiuzi2009/Projects-while-studying- | 0 | 171001 | <reponame>xiuzi2009/Projects-while-studying-
.text
.globl main
main: # get the time
li $v0, 30 # get time in milliseconds (as a 64-bit value)
syscall
move $t0, $a0 # save the lower 32-bits of time
# seed the random generator (just once)
li $a0, 1 # random generator id (will be used later)
move $a1, $t0 # seed from time
li $v0, 40 # seed random number generator syscall
syscall
la $t0, toss
move $t1, $0 # init $t1 = 0
L1: bge $t1, 3, exit # check loop condition
lw $t2, 0($t0) # load # of tosses
############ begin your code ################################
# current code will just print out 3 random numbers generated
# $f0 has the random number
move $t3,$0 #counter=0
li $a0, 1
li $v0, 43
lwc1 $f7,number4 #$f7=4.0
lwc1 $f4,number1 #$f4=1.0
lwc1 $f5,zero #$f5=0.0
mov.s $f6,$f5
L2: #f1= X^2 f2= Y^2 f3=x^2+y^2 f4==1.0 f5=float count f6= float total count
bge $t3,$t2,calcu # if tosses finished ,caculate result
jal tossing #Get a toss range(-1,1)
mul.s $f1,$f0,$f0 #x^2=$f1=random
jal tossing #Get a toss range(-1,1)
mul.s $f2,$f0,$f0 #y^2=f2=random
add.s $f3,$f1,$f2 # distance_squared = x*x + y*y
c.le.s $f3,$f4 # distance_squared<=1?
bc1f skipadd
add.s $f5,$f5,$f4 #Ture: Fcount=Fcount+1
skipadd:
add.s $f6,$f6,$f4 #Ftotalcount++
addi $t3,$t3,1 #counter++
j L2
tossing:
li $a0, 1
li $v0, 43
syscall #get random float number to $f0
li $a1, 2 # range int [0,1]
li $v0,42 #get int random num
syscall
beq $a0,$zero,positive # if$a0==0, then set $f0 to negetive random number
sub.s $f0,$f0,$f4
positive:
jr $ra
calcu:
mul.s $f5,$f5,$f7
div.s $f1,$f5,$f6 #pi_estimate = 4*number_in_circle/((float) number_of_tosses)
############ end your code ###################################
mov.s $f12, $f1 # move result to print argument
li $v0, 2 # 2 = print float, 3 = print double
syscall # system call for print result
addi $a0, $0, 0xA # ascii code for LF
addi $v0, $0, 0xB # syscall 11
syscall
addi $t1, $t1, 1 # increment $t1
add $t0, $t0, 4 # adjust index
j L1 # iterate outer loop
exit: li $v0, 10 # system call for exit
syscall # we are out of here
.data
zero: .float 0.0
number1: .float 1.0
number4: .float 4.0
toss: .word 100, 1000, 10000
|
libsrc/_DEVELOPMENT/stdio/z80/asm_vfprintf_unlocked.asm | dp304/z88dk | 4 | 12595 |
; ===============================================================
; Jan 2014
; ===============================================================
;
; int vfprintf_unlocked(FILE *stream, const char *format, void *arg)
;
; See C11 specification.
;
; ===============================================================
IFNDEF CLIB_OPT_PRINTF
INCLUDE "config_private.inc"
defc CLIB_OPT_PRINTF = __CLIB_OPT_PRINTF
defc CLIB_OPT_PRINTF_2 = __CLIB_OPT_PRINTF_2
ENDIF
SECTION code_clib
SECTION code_stdio
PUBLIC asm_vfprintf_unlocked
PUBLIC asm0_vfprintf_unlocked, asm1_vfprintf_unlocked
EXTERN __stdio_verify_output, asm_strchrnul, __stdio_send_output_buffer
EXTERN l_utod_hl, l_neg_hl, error_einval_zc
EXTERN __stdio_nextarg_de, l_atou, __stdio_length_modifier, error_erange_zc
GLOBAL CLIB_32BIT_FLOATS
asm_vfprintf_unlocked:
; enter : ix = FILE *
; de = char *format
; bc = void *stack_param = arg
;
; exit : ix = FILE *
; de = char *format (next unexamined char)
;
; success
;
; hl = number of chars output on stream
; carry reset
;
; fail
;
; hl = - (chars output + 1) < 0
; carry set, errno set as below
;
; eacces = stream not open for writing
; eacces = stream is in an error state
; erange = width or precision out of range
; einval = unknown printf conversion
;
; more errors may be set by underlying driver
;
; uses : all except ix
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
IF __CLIB_OPT_STDIO & $01
EXTERN __stdio_verify_valid
call __stdio_verify_valid
ret c
ENDIF
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
asm1_vfprintf_unlocked:
call __stdio_verify_output ; check that output on stream is ok
ret c ; if output on stream not possible
asm0_vfprintf_unlocked:
IF (CLIB_OPT_PRINTF != 0) || ((CLIB_OPT_PRINTF_2 != 0) && __SDCC)
ld hl,-44
add hl,sp
ld sp,hl ; create 44 bytes of workspace
push bc
ENDIF
exx
ld hl,0 ; initial output count is zero
exx
;******************************
; * FORMAT STRING LOOP ********
format_loop_printf:
; de = char *format
; stack = WORKSPACE_44, stack_param
ld l,e
ld h,d
__format_loop_printf:
ld c,'%'
call asm_strchrnul
; output format string chars up to '%'
push hl
or a
sbc hl,de
ld c,l
ld b,h ; bc = num chars to output
ex de,hl ; hl = char *format
call nz, __stdio_send_output_buffer
pop de
IF (CLIB_OPT_PRINTF = 0) && ((CLIB_OPT_PRINTF_2 = 0) || __SCCZ80)
jr c, error_stream_printf ; if stream error
ELSE
jp c, error_stream_printf ; if stream error
ENDIF
; de = address of format char stopped on ('%' or '\0')
; stack = WORKSPACE_44, stack_param
ld a,(de)
or a
jr z, format_end_printf ; if stopped on string terminator
inc de ; next format char to examine
ld a,(de)
cp '%'
jr nz, interpret_printf
; %%
ld l,e
ld h,d
inc hl ; next char to examine is past %%
jr __format_loop_printf
format_end_printf:
; de = address of format char '\0'
; stack = WORKSPACE_44, stack_param
IF (CLIB_OPT_PRINTF != 0) || ((CLIB_OPT_PRINTF_2 != 0) && __SDCC)
ld hl,46
add hl,sp
ld sp,hl ; repair stack
ENDIF
exx
push hl
exx
pop hl ; hl = number of chars output
or a
jp l_utod_hl ; hl = max $7fff
; * AA ********************************************************
IF (CLIB_OPT_PRINTF = 0) && ((CLIB_OPT_PRINTF_2 = 0) || __SCCZ80)
; completely disable % logic
; printf can only be used to output format text
interpret_printf:
; de = address of format char after '%'
call error_einval_zc
;;;; jr error_stream_printf ; could probably just fall through but let's be safe
ENDIF
; * BB ********************************************************
IF (CLIB_OPT_PRINTF != 0) || ((CLIB_OPT_PRINTF_2 != 0) && __SDCC)
; regular % processing
flag_chars_printf:
defb '+', $40
defb ' ', $20
defb '#', $10
defb '0', $08
defb '-', $04
interpret_printf:
dec de
ld c,0
;******************************
; * FLAGS FIELD ***************
flags_printf:
; consume optional flags "-+ #0"
; default flags is none set
inc de ; advance to next char in format string
; de = address of next format char to examine
; c = conversion_flags
; stack = WORKSPACE_44, stack_param
ld a,(de)
ld hl,flag_chars_printf
ld b,5
flags_id_printf:
cp (hl)
inc hl
jr z, flag_found_printf
inc hl
djnz flags_id_printf
ld (ix+5),c ; store conversion_flags
;******************************
; * width FIELD ***************
width_printf:
; consume optional width specifier
; default width is zero
; a = next format char
; de = address of next format char to examine
; stack = WORKSPACE_44, stack_param
cp '*'
jr nz, width_from_format_printf
; asterisk means width comes from parameter list
pop hl
inc de ; consume '*'
push de
; hl = stack_param
; stack = WORKSPACE_44, address of next format char to examine
call __stdio_nextarg_de ; de = width
ex de,hl
; hl = width
; de = stack_param
; stack = WORKSPACE_44, address of next format char to examine
bit 7,h
jr z, width_positive_printf
; negative field width
call l_neg_hl ; width made positive
set 2,(ix+5) ; '-' flag set
width_positive_printf:
ex (sp),hl
ex de,hl
push hl
; de = address of next format char to examine
; stack = WORKSPACE_44, width, stack_param
jr precision_printf
flag_found_printf:
ld a,(hl)
or c
ld c,a
jr flags_printf
width_from_format_printf:
; read width from format string, default = 0
; de = address of next format char to examine
; stack = WORKSPACE_44, stack_param
call l_atou ; hl = width
jp c, error_format_width_printf ; width out of range
bit 7,h
jp nz, error_format_width_printf ; width out of range
ex (sp),hl
push hl
;******************************
; * precision FIELD ***********
precision_printf:
; consume optional precision specifier
; default precision is one
; de = address of next format char to examine
; stack = WORKSPACE_44, width, stack_param
ld hl,1 ; default precision
ld a,(de)
cp '.'
jr nz, end_precision_printf
set 0,(ix+5) ; indicate precision is specified
inc de ; consume '.'
ld a,(de)
cp '*'
jr nz, precision_from_format_printf
; asterisk means precision comes from parameter list
pop hl
inc de ; consume '*'
push de
; hl = stack_param
; stack = WORKSPACE_44, width, address of next format char to examine
call __stdio_nextarg_de ; de = precision
ex de,hl
; hl = precision
; de = stack_param
; stack = WORKSPACE_44, width, address of next format char to examine
bit 7,h
jr z, precision_positive_printf
; negative precision means precision is ignored
ld hl,1 ; precision takes default value
res 0,(ix+5) ; indicate precision is not specified
precision_positive_printf:
ex (sp),hl
ex de,hl
push hl
; de = address of next format char to examine
; stack = WORKSPACE_44, width, precision, stack_param
jr length_modifier_printf
precision_from_format_printf:
; read precision from format string
; de = address of next format char to examine
; stack = WORKSPACE_44, width, stack_param
call l_atou ; hl = precision
jp c, error_format_precision_printf ; precision out of range
bit 7,h
jp nz, error_format_precision_printf ; precision out of range
end_precision_printf:
; hl = precision
; de = address of next format char to examine
; stack = WORKSPACE_44, width, stack_param
ex (sp),hl
push hl
;******************************
; * LENGTH MODIFIER ***********
length_modifier_printf:
; consume optional length modifier
; de = address of next format char to examine
; stack = WORKSPACE_44, width, precision, stack_param
call __stdio_length_modifier
;******************************
; * CONVERSION SPECIFIER ******
converter_specifier_printf:
; identify conversion "aABcdeEfFgGinopsuxIX"
; long modifies "BdinopuxX" not "aAceEfFgGsI"
; de = address of next format char to examine
; c = length modifier id
; stack = WORKSPACE_44, width, precision, stack_param
ld a,(de) ; a = specifier
inc de
IF CLIB_OPT_PRINTF & $800
cp 'I'
jr z, printf_I ; converter does not fit tables
ENDIF
ld b,a ; b = specifier
ld a,c
and $30 ; only pay attention to long and longlong modifiers
sub $10
; carry must be reset here
jr nc, long_spec_printf ; if long or longlong modifier selected
;;; without long spec
IF CLIB_OPT_PRINTF & $1ff
ld hl,rcon_tbl_printf ; converters without long spec
call match_con_printf
jr c, printf_return_is_2
ENDIF
common_spec_printf:
IF CLIB_OPT_PRINTF & $600
ld hl,acon_tbl_printf ; converters independent of long spec
call match_con_printf
jr c, printf_return_is_2
ENDIF
IF CLIB_OPT_PRINTF & $3fc00000
ld hl,fcon_tbl_printf ; float converters are independent of long spec
call match_con_printf
IF __SDCC | __SDCC_IX | __SDCC_IY
jr c, printf_return_is_4
ELSE
jr c, printf_return_is_6
ENDIF
ENDIF
;;; converter unrecognized
unrecognized_printf:
; de = address of next format char to examine
; stack = WORKSPACE_44, width, precision, stack_param
call error_einval_zc ; set errno
ld hl,50
jp __error_stream_printf
IF CLIB_OPT_PRINTF_2 && __SDCC
;;; with longlong spec
longlong_spec_printf:
ld hl,llcon_tbl_printf ; converters with longlong spec
call match_con_printf
jr c, printf_return_is_8
jr common_spec_printf
ENDIF
;;; with long spec
long_spec_printf:
IF CLIB_OPT_PRINTF_2 && __SDCC
jr nz, longlong_spec_printf
ELSE
jr nz, common_spec_printf
ENDIF
IF CLIB_OPT_PRINTF & $1ff000
ld hl,lcon_tbl_printf ; converters with long spec
call match_con_printf
ENDIF
jr nc, common_spec_printf
;;; conversion matched
IF (CLIB_OPT_PRINTF & $1ff800) || ((__SDCC) && (CLIB_OPT_PRINTF & $3fc00000))
printf_return_is_4:
ld bc,printf_return_4
jr printf_invoke_flags
ENDIF
IF CLIB_OPT_PRINTF & $800
printf_I:
EXTERN __stdio_printf_ii
ld hl,__stdio_printf_ii
ld a,$80
jr printf_return_is_4
ENDIF
IF CLIB_OPT_PRINTF_2 && __SDCC
printf_return_is_8:
ld bc,printf_return_8
jr printf_invoke_flags
ENDIF
IF (__SCCZ80 | __ASM) && (CLIB_OPT_PRINTF & $3fc00000)
; This is used for floats only so we can check the library spec
printf_return_is_6:
ld a,CLIB_32BIT_FLOATS
and a
ld bc,printf_return_6
jr Z,printf_invoke_flags
ld bc,printf_return_4
jr printf_invoke_flags
ENDIF
IF CLIB_OPT_PRINTF & $7ff
printf_return_is_2:
ld bc,printf_return_2
ENDIF
printf_invoke_flags:
; a = invoke flags
; hl = & printf converter
; bc = return address after conversion
; de = address of next format char to examine
; stack = WORKSPACE_44, width, precision, stack_param
bit 5,a
jr z, skip_00_printf
set 1,(ix+5) ; indicates octal conversion
skip_00_printf:
bit 4,a
jr z, skip_11_printf
res 4,(ix+5) ; suppress base indicator
skip_11_printf:
and $c0
ld (ix+4),a ; capitalize & signed conversion indicators
printf_invoke:
; hl = & printf_converter
; de = address of next format char to examine
; bc = return address after printf conversion
; stack = WORKSPACE_44, width, precision, stack_param
ex (sp),hl ; push & printf_converter
push hl
; de = char *format
; bc = return address
; stack = WORKSPACE_44, width, precision, & converter, stack_param
ld hl,15
add hl,sp
ld (hl),d
dec hl
ld (hl),e ; store address of next format char
dec hl
pop de ; de = stack_param
ld (hl),d
dec hl
ld (hl),e ; store stack_param
dec hl
ld (hl),b
dec hl
ld (hl),c ; store return address after printf
dec hl
ld c,l
ld b,h
ld hl,10
add hl,bc ; hl = buffer_digits
ld a,h
ld (bc),a
dec bc
ld a,l
ld (bc),a ; store buffer_digits
ex de,hl
; ix = FILE *
; hl = void *stack_param
; de = void *buffer_digits
; stack = WORKSPACE_42, return addr, buffer_digits, width, precision, & printf_conv
; WORSPACE_44 low to high addresses
;
; offset size purpose
;
; 0 2 void *buffer_digits
; 2 2 return address following printf conversion
; 4 2 void *stack_param
; 6 2 address of next format char
; 8 3 prefix buffer space for printf conversion
; 11 33 buffer_digits[] (space for printf conversion)
ret
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
match_con_printf:
; enter : b = conversion specifier
; hl = conversion table
;
; exit : b = conversion specifier
;
; if matched
;
; a = flags
; hl = & printf converter
; carry set
;
; if unmatched
;
; carry reset
ld a,(hl)
inc hl
or a
ret z
cp b
jr z, match_ret_printf
inc hl
inc hl
inc hl
jr match_con_printf
match_ret_printf:
ld a,(hl) ; a = flags
inc hl
ld b,(hl)
inc hl
ld h,(hl)
ld l,b ; hl = & printf converter
scf
ret
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
IF CLIB_OPT_PRINTF & $600
acon_tbl_printf:
IF CLIB_OPT_PRINTF & $200
defb 's', $80
EXTERN __stdio_printf_s
defw __stdio_printf_s
ENDIF
IF CLIB_OPT_PRINTF & $400
defb 'c', $80
EXTERN __stdio_printf_c
defw __stdio_printf_c
ENDIF
defb 0
ENDIF
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
IF CLIB_OPT_PRINTF & $1ff
rcon_tbl_printf:
IF CLIB_OPT_PRINTF & $01
defb 'd', $d0
EXTERN __stdio_printf_d
defw __stdio_printf_d
ENDIF
IF CLIB_OPT_PRINTF & $02
defb 'u', $90
EXTERN __stdio_printf_u
defw __stdio_printf_u
ENDIF
IF CLIB_OPT_PRINTF & $04
defb 'x', $00
EXTERN __stdio_printf_x
defw __stdio_printf_x
ENDIF
IF CLIB_OPT_PRINTF & $08
defb 'X', $80
EXTERN __stdio_printf_x
defw __stdio_printf_x
ENDIF
IF CLIB_OPT_PRINTF & $10
defb 'o', $a0
EXTERN __stdio_printf_o
defw __stdio_printf_o
ENDIF
IF CLIB_OPT_PRINTF & $20
defb 'n', $80
EXTERN __stdio_printf_n
defw __stdio_printf_n
ENDIF
IF CLIB_OPT_PRINTF & $40
defb 'i', $d0
EXTERN __stdio_printf_d
defw __stdio_printf_d
ENDIF
IF CLIB_OPT_PRINTF & $80
defb 'p', $80
EXTERN __stdio_printf_p
defw __stdio_printf_p
ENDIF
IF CLIB_OPT_PRINTF & $100
defb 'B', $90
EXTERN __stdio_printf_bb
defw __stdio_printf_bb
ENDIF
defb 0
ENDIF
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
IF CLIB_OPT_PRINTF & $3fc00000
fcon_tbl_printf:
IF CLIB_OPT_PRINTF & $10000000
defb 'g', $00
EXTERN __stdio_printf_g
defw __stdio_printf_g
ENDIF
IF CLIB_OPT_PRINTF & $20000000
defb 'G', $80
EXTERN __stdio_printf_g
defw __stdio_printf_g
ENDIF
IF CLIB_OPT_PRINTF & $4000000
defb 'f', $00
EXTERN __stdio_printf_f
defw __stdio_printf_f
ENDIF
IF CLIB_OPT_PRINTF & $8000000
defb 'F', $80
EXTERN __stdio_printf_f
defw __stdio_printf_f
ENDIF
IF CLIB_OPT_PRINTF & $1000000
defb 'e', $00
EXTERN __stdio_printf_e
defw __stdio_printf_e
ENDIF
IF CLIB_OPT_PRINTF & $2000000
defb 'E', $80
EXTERN __stdio_printf_e
defw __stdio_printf_e
ENDIF
IF CLIB_OPT_PRINTF & $400000
defb 'a', $00
EXTERN __stdio_printf_a
defw __stdio_printf_a
ENDIF
IF CLIB_OPT_PRINTF & $800000
defb 'A', $80
EXTERN __stdio_printf_a
defw __stdio_printf_a
ENDIF
defb 0
ENDIF
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
IF CLIB_OPT_PRINTF & $1ff000
lcon_tbl_printf:
IF CLIB_OPT_PRINTF & $1000
defb 'd', $d0
EXTERN __stdio_printf_ld
defw __stdio_printf_ld
ENDIF
IF CLIB_OPT_PRINTF & $2000
defb 'u', $90
EXTERN __stdio_printf_lu
defw __stdio_printf_lu
ENDIF
IF CLIB_OPT_PRINTF & $4000
defb 'x', $00
EXTERN __stdio_printf_lx
defw __stdio_printf_lx
ENDIF
IF CLIB_OPT_PRINTF & $8000
defb 'X', $80
EXTERN __stdio_printf_lx
defw __stdio_printf_lx
ENDIF
IF CLIB_OPT_PRINTF & $10000
defb 'o', $a0
EXTERN __stdio_printf_lo
defw __stdio_printf_lo
ENDIF
IF CLIB_OPT_PRINTF & $20000
defb 'n', $80
EXTERN __stdio_printf_ln
defw __stdio_printf_ln
ENDIF
IF CLIB_OPT_PRINTF & $40000
defb 'i', $d0
EXTERN __stdio_printf_ld
defw __stdio_printf_ld
ENDIF
IF CLIB_OPT_PRINTF & $80000
defb 'p', $80
EXTERN __stdio_printf_lp
defw __stdio_printf_lp
ENDIF
IF CLIB_OPT_PRINTF & $100000
defb 'B', $90
EXTERN __stdio_printf_lbb
defw __stdio_printf_lbb
ENDIF
defb 0
ENDIF
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
IF CLIB_OPT_PRINTF_2 && __SDCC
llcon_tbl_printf:
IF CLIB_OPT_PRINTF_2 & $01
defb 'd', $d0
EXTERN __stdio_printf_lld
defw __stdio_printf_lld
ENDIF
IF CLIB_OPT_PRINTF_2 & $02
defb 'u', $90
EXTERN __stdio_printf_llu
defw __stdio_printf_llu
ENDIF
IF CLIB_OPT_PRINTF_2 & $04
defb 'x', $00
EXTERN __stdio_printf_llx
defw __stdio_printf_llx
ENDIF
IF CLIB_OPT_PRINTF_2 & $08
defb 'X', $80
EXTERN __stdio_printf_llx
defw __stdio_printf_llx
ENDIF
IF CLIB_OPT_PRINTF_2 & $10
defb 'o', $a0
EXTERN __stdio_printf_llo
defw __stdio_printf_llo
ENDIF
IF CLIB_OPT_PRINTF_2 & $40
defb 'i', $d0
EXTERN __stdio_printf_lld
defw __stdio_printf_lld
ENDIF
defb 0
ENDIF
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
IF CLIB_OPT_PRINTF_2 && __SDCC
printf_return_8:
; printf converters that read eight bytes from stack_param return here
;
; carry set if error
; stack = WORKSPACE_36, char *format, void *stack_param
pop bc
__return_join_8_printf:
;******************************
IF __SDCC | __SDCC_IX | __SDCC_IY
;******************************
inc bc
inc bc ; bc = stack_param += 2
;******************************
ELSE
;******************************
dec bc
dec bc ; bc = stack_param += 2
;******************************
ENDIF
;******************************
jr _return_join_6_printf
ENDIF
IF ((__SCCZ80 | __ASM) && (CLIB_OPT_PRINTF & $3fc00000)) || (CLIB_OPT_PRINTF_2 && __SDCC)
printf_return_6:
; printf converters that read six bytes from stack_param return here
;
; carry set if error
; stack = WORKSPACE_36, char *format, void *stack_param
pop bc
_return_join_6_printf:
;******************************
IF __SDCC | __SDCC_IX | __SDCC_IY
;******************************
inc bc
inc bc ; bc = stack_param += 2
;******************************
ELSE
;******************************
dec bc
dec bc ; bc = stack_param += 2
;******************************
ENDIF
;******************************
jr _return_join_4_printf
ENDIF
printf_return_4:
; printf converters that read four bytes from stack_param return here
;
; carry set if error
; stack = WORKSPACE_36, char *format, void *stack_param
pop bc
_return_join_4_printf:
;******************************
IF __SDCC | __SDCC_IX | __SDCC_IY
;******************************
inc bc
inc bc ; bc = stack_param += 2
;******************************
ELSE
;******************************
dec bc
dec bc ; bc = stack_param += 2
;******************************
ENDIF
;******************************
jr _return_join_2_printf
printf_return_2:
; printf converters that read two bytes from stack_param return here
;
; carry set if error
; stack = WORKSPACE_36, char *format, void *stack_param
pop bc
_return_join_2_printf:
;******************************
IF __SDCC | __SDCC_IX | __SDCC_IY
;******************************
inc bc
inc bc ; bc = stack_param += 2
;******************************
ELSE
;******************************
dec bc
dec bc ; bc = stack_param += 2
;******************************
ENDIF
;******************************
pop de ; de = char *format
jr c, error_printf_converter_printf
ld hl,-8
add hl,sp
ld sp,hl
push bc
; format_loop_printf expects this:
;
; de = char *format
; stack = WORKSPACE_44, stack_param
jp format_loop_printf
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
error_format_precision_printf:
; de = address of next format char to examine
; stack = WORKSPACE_44, width, stack_param
pop bc ; junk one item
; fall through
error_format_width_printf:
; de = address of next format char to examine
; stack = WORKSPACE_44, stack_param
call error_erange_zc ; set errno
; fall through
ENDIF
; ** AA BB ****************************************************
; all clib options have this code
error_stream_printf:
IF (CLIB_OPT_PRINTF != 0) || ((CLIB_OPT_PRINTF_2 != 0) && __SDCC)
; de = address of format char stopped on ('%' or '\0')
; stack = WORKSPACE_44, stack_param
ld hl,46
__error_stream_printf:
add hl,sp
ld sp,hl ; repair stack
ENDIF
exx
push hl
exx
pop hl ; hl = number of chars transmitted
call l_utod_hl ; hl = max $7fff
inc hl
scf ; indicate error
jp l_neg_hl ; hl = - (chars out + 1) < 0
IF (CLIB_OPT_PRINTF != 0) || ((CLIB_OPT_PRINTF_2 != 0) && __SDCC)
error_printf_converter_printf:
; de = address of next format char to examine
; stack = WORKSPACE_36
ld hl,36
jr __error_stream_printf
ENDIF
|
oeis/000/A000328.asm | neoneye/loda-programs | 11 | 29800 | <reponame>neoneye/loda-programs<filename>oeis/000/A000328.asm
; A000328: Number of points of norm <= n^2 in square lattice.
; Submitted by <NAME>
; 1,5,13,29,49,81,113,149,197,253,317,377,441,529,613,709,797,901,1009,1129,1257,1373,1517,1653,1793,1961,2121,2289,2453,2629,2821,3001,3209,3409,3625,3853,4053,4293,4513,4777,5025,5261,5525,5789,6077,6361,6625,6921,7213,7525,7845,8173,8497,8809,9145,9477,9845,10189,10557,10913,11289,11681,12061,12453,12853,13273,13673,14073,14505,14949,15373,15813,16241,16729,17193,17665,18125,18605,19109,19577,20081,20593,21101,21629,22133,22701,23217,23769,24313,24845,25445,25997,26565,27145,27729,28345,28917
pow $0,2
seq $0,57655 ; The circle problem: number of points (x,y) in square lattice with x^2 + y^2 <= n.
|
OvmfPkg/Bhyve/BhyveRfbDxe/VbeShim.asm | AmazingTurtle/edk2 | 0 | 101452 | <filename>OvmfPkg/Bhyve/BhyveRfbDxe/VbeShim.asm
;------------------------------------------------------------------------------
; @file
; A minimal Int10h stub that allows the Windows 2008 R2 SP1 UEFI guest's buggy,
; default VGA driver to switch to 1024x768x32.
;
; Copyright (C) 2020, <NAME> <<EMAIL>>
; Copyright (C) 2015, Nahanni Systems, Inc.
; Copyright (C) 2014, Red Hat, Inc.
; Copyright (c) 2013 - 2014, Intel Corporation. All rights reserved.<BR>
;
; SPDX-License-Identifier: BSD-2-Clause-Patent
;
;------------------------------------------------------------------------------
; enable this macro for debug messages
%define DEBUG
%macro DebugLog 1
%ifdef DEBUG
push si
mov si, %1
call PrintStringSi
pop si
%endif
%endmacro
BITS 16
ORG 0
VbeInfo:
TIMES 256 nop
VbeModeInfo:
VbeMode1:
TIMES 50 nop
VbeMode2:
TIMES 50 nop
VbeMode3:
TIMES 50 nop
VbeMode4:
TIMES 50 nop
TIMES 56 nop ; filler for 256 bytes
Handler:
cmp ax, 0x4f00
je GetInfo
cmp ax, 0x4f01
je GetModeInfo
cmp ax, 0x4f02
je SetMode
cmp ax, 0x4f03
je GetMode
cmp ax, 0x4f10
je GetPmCapabilities
cmp ax, 0x4f15
je ReadEdid
cmp ah, 0x00
je SetModeLegacy
DebugLog StrUnkownFunction
Hang:
jmp Hang
GetInfo:
push es
push di
push ds
push si
push cx
DebugLog StrEnterGetInfo
; target (es:di) set on input
push cs
pop ds
mov si, VbeInfo
; source (ds:si) set now
mov cx, 256
cld
rep movsb
pop cx
pop si
pop ds
pop di
pop es
jmp Success
GetModeInfo:
push es
push di
push ds
push si
push cx
DebugLog StrEnterGetModeInfo
and cx, ~0x4000 ; clear potentially set LFB bit in mode number
cmp cx, 0x013f
je gKnownMode1
cmp cx, 0x0140
je gKnownMode2
cmp cx, 0x0141
je gKnownMode3
DebugLog StrUnkownMode
jmp Hang
gKnownMode1:
DebugLog StrMode1
mov si, VbeMode1
jmp CopyModeInfo
gKnownMode2:
DebugLog StrMode2
mov si, VbeMode2
jmp CopyModeInfo
gKnownMode3:
DebugLog StrMode3
mov si, VbeMode3
jmp CopyModeInfo
gKnownMode4:
DebugLog StrMode4
mov si, VbeMode4
jmp CopyModeInfo
CopyModeInfo:
; target (es:di) set on input
push cs
pop ds
;mov si, VbeModeInfo
; source (ds:si) set now
;mov cx, 256
mov cx, 50
cld
rep movsb
pop cx
pop si
pop ds
pop di
pop es
jmp Success
SetMode:
push dx
push ax
DebugLog StrEnterSetMode
and bx, ~0x4000 ; clear potentially set LFB bit in mode number
cmp bx, 0x013f
je KnownMode1
cmp bx, 0x0140
je KnownMode2
cmp bx, 0x0141
je KnownMode3
DebugLog StrUnkownMode
jmp Hang
KnownMode1:
DebugLog StrMode1
jmp SetModeDone
KnownMode2:
DebugLog StrMode2
jmp SetModeDone
KnownMode3:
DebugLog StrMode3
jmp SetModeDone
KnownMode4:
DebugLog StrMode4
SetModeDone:
mov [CurMode], bl
mov [CurMode+1], bh
pop ax
pop dx
jmp Success
GetMode:
DebugLog StrEnterGetMode
mov bl, [CurMode]
mov bh, [CurMode+1]
jmp Success
GetPmCapabilities:
DebugLog StrGetPmCapabilities
mov bx, 0x0080
jmp Success
ReadEdid:
push es
push di
push ds
push si
push cx
DebugLog StrReadEdid
; target (es:di) set on input
push cs
pop ds
mov si, Edid
; source (ds:si) set now
mov cx, 128
cld
rep movsb
pop cx
pop si
pop ds
pop di
pop es
jmp Success
SetModeLegacy:
DebugLog StrEnterSetModeLegacy
cmp al, 0x03
je sKnownMode3
cmp al, 0x12
je sKnownMode4
DebugLog StrUnkownMode
jmp Hang
sKnownMode3:
DebugLog StrLegacyMode3
mov al, 0 ; 0x30
jmp SetModeLegacyDone
sKnownMode4:
mov al, 0 ;0x20
SetModeLegacyDone:
DebugLog StrExitSuccess
iret
Success:
DebugLog StrExitSuccess
mov ax, 0x004f
iret
Unsupported:
DebugLog StrExitUnsupported
mov ax, 0x024f
iret
%ifdef DEBUG
PrintStringSi:
pusha
push ds ; save original
push cs
pop ds
mov dx, 0x220 ; INTEL debug cons port
mov ax, 0
PrintStringSiLoop:
lodsb
cmp al, 0
je PrintStringSiDone
out dx, al
jmp PrintStringSiLoop
PrintStringSiDone:
pop ds ; restore original
popa
ret
StrExitSuccess:
db 'vOk', 0x0d, 0x0a, 0
StrExitUnsupported:
db 'vUnsupported', 0x0d, 0x0a, 0
StrUnkownFunction:
db 'vUnknown Function', 0x0d, 0x0a, 0
StrEnterGetInfo:
db 'vGetInfo', 0x0d, 0x0a, 0
StrEnterGetModeInfo:
db 'vGetModeInfo', 0x0d, 0x0a, 0
StrEnterGetMode:
db 'vGetMode', 0x0d, 0x0a, 0
StrEnterSetMode:
db 'vSetMode', 0x0d, 0x0a, 0
StrEnterSetModeLegacy:
db 'vSetModeLegacy', 0x0d, 0x0a, 0
StrUnkownMode:
db 'vUnkown Mode', 0x0d, 0x0a, 0
StrGetPmCapabilities:
db 'vGetPmCapabilities', 0x0d, 0x0a, 0
StrReadEdid:
db 'vReadEdid', 0x0d, 0x0a, 0
StrLegacyMode3:
db 'vLegacyMode3', 0x0d, 0x0a, 0
StrMode1:
db 'mode_640x480x32', 0x0d, 0x0a, 0
StrMode2:
db 'mode_800x600x32', 0x0d, 0x0a, 0
StrMode3:
db 'mode_1024x768x32', 0x0d, 0x0a, 0
StrMode4:
db 'mode_unused', 0x0d, 0x0a, 0
%endif
CurMode:
db 0x00, 0x00
;
; EDID stores monitor information. For now, just send back an null item.
;
Edid:
db 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
db 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
db 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
db 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
db 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
db 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
db 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
db 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
db 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
db 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
db 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
db 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
db 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
|
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/ca/ca2008a0.ada | best08618/asylo | 7 | 4308 | <gh_stars>1-10
-- CA2008A0M.ADA
-- Grant of Unlimited Rights
--
-- Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687,
-- F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained
-- unlimited rights in the software and documentation contained herein.
-- Unlimited rights are defined in DFAR 252.227-7013(a)(19). By making
-- this public release, the Government intends to confer upon all
-- recipients unlimited rights equal to those held by the Government.
-- These rights include rights to use, duplicate, release or disclose the
-- released technical data and computer software in whole or in part, in
-- any manner and for any purpose whatsoever, and to have or permit others
-- to do so.
--
-- DISCLAIMER
--
-- ALL MATERIALS OR INFORMATION HEREIN RELEASED, MADE AVAILABLE OR
-- DISCLOSED ARE AS IS. THE GOVERNMENT MAKES NO EXPRESS OR IMPLIED
-- WARRANTY AS TO ANY MATTER WHATSOEVER, INCLUDING THE CONDITIONS OF THE
-- SOFTWARE, DOCUMENTATION OR OTHER INFORMATION RELEASED, MADE AVAILABLE
-- OR DISCLOSED, OR THE OWNERSHIP, MERCHANTABILITY, OR FITNESS FOR A
-- PARTICULAR PURPOSE OF SAID MATERIAL.
--*
-- CHECK THAT FOR AN OVERLOADED SUBPROGRAM, ONE OF THE
-- SUBPROGRAM BODIES CAN BE SPECIFIED WITH A BODY_STUB AND
-- COMPILED SEPARATELY.
-- SEPARATE FILES ARE:
-- CA2008A0M THE MAIN PROCEDURE.
-- CA2008A1 A SUBUNIT PROCEDURE BODY.
-- CA2008A2 A SUBUNIT FUNCTION BODY.
-- WKB 6/26/81
-- SPS 11/2/82
WITH REPORT;
USE REPORT;
PROCEDURE CA2008A0M IS
I : INTEGER := 0;
B : BOOLEAN := TRUE;
PROCEDURE CA2008A1 (I : IN OUT INTEGER) IS
BEGIN
I := IDENT_INT (1);
END CA2008A1;
PROCEDURE CA2008A1 (B : IN OUT BOOLEAN) IS SEPARATE;
FUNCTION CA2008A2 RETURN INTEGER IS SEPARATE;
FUNCTION CA2008A2 RETURN BOOLEAN IS
BEGIN
RETURN IDENT_BOOL (FALSE);
END CA2008A2;
BEGIN
TEST ("CA2008A", "CHECK THAT AN OVERLOADED SUBPROGRAM " &
"CAN HAVE ONE OF ITS BODIES COMPILED SEPARATELY");
CA2008A1 (I);
IF I /= 1 THEN
FAILED ("OVERLOADED PROCEDURE NOT INVOKED - 1");
END IF;
CA2008A1 (B);
IF B THEN
FAILED ("OVERLOADED PROCEDURE NOT INVOKED - 2");
END IF;
IF CA2008A2 /= 2 THEN
FAILED ("OVERLOADED FUNCTION NOT INVOKED - 1");
END IF;
IF CA2008A2 THEN
FAILED ("OVERLOADED FUNCTION NOT INVOKED - 2");
END IF;
RESULT;
END CA2008A0M;
|
third_party/Hello.g4 | at15/reika | 0 | 7705 | // example from The Definitive ANTLR 4 Reference
grammar Hello;
r : 'hello' ID ;
ID : [a-z]+ ;
WS : [ \t\r\n]+ -> skip;
|
gillesdubois/used_apple_scripts/iTunesNowPlaying.applescript | gillesdubois/btt-touchbar-presets | 1,879 | 3659 | <reponame>gillesdubois/btt-touchbar-presets<filename>gillesdubois/used_apple_scripts/iTunesNowPlaying.applescript
if application "iTunes" is running then
tell application "iTunes"
if player state is playing then
set trackName to (get artist of current track) & " – " & (get name of current track)
set strLength to the length of trackName
if strLength > 30 then
set trackName to text 1 thru 27 of trackName
return trackName & "..."
end if
return trackName
else
return "iTunes - Nothing playing"
end if
end tell
end if
return "" |
typepaste-file-base32.applescript | atisu/typepaste | 1 | 757 | <gh_stars>1-10
set myFile to (choose file with prompt "Please select a file:")
display dialog "After clicking Continue, please make the target window active. There is a 3 seconds delay before starting to paste.
You can abort pasting anytime by moving the mouse pointer to the upper left corner of the screen.
" buttons {"Continue"} default button 1
delay 3
do shell script "/bin/bash -s <<'EOF'
MYFILE=$(echo '/Volumes/" & myFile & "' | sed -e 's/:/\\//g')
LOCATION=~/Projects/typepaste/
. ${LOCATION}/venv/bin/activate && ${LOCATION}/typepaste.py --batch-size 250 --base32-encode --lowercase --source-file \"${MYFILE}\"
EOF"
|
git-gui.scpt | MichalWilk/git-gui.app | 1 | 3969 | <filename>git-gui.scpt
on run
set gitDocURL to "https://git-scm.com/book/en/v1/Getting-Started-Installing-Git"
set brewInstallCommand to "/usr/bin/ruby -e \"$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)\""
try
do shell script "command -v /usr/local/bin/git"
tell application "Terminal"
do script with command "/usr/local/bin/git gui; exit"
end tell
on error theGitError
if theGitError is "The command exited with a non-zero status." then
set theAlertText to "Git not found"
set theAlertMessage to "Git not found in /usr/local/bin. Would you like to see install instructions or just install git through Homebrew?"
display alert theAlertText message theAlertMessage as critical buttons {"Cancel", "Show", "Install"} default button "Install" cancel button "Cancel"
if button returned of result = "Install" then
try
do shell script "command -v /usr/local/bin/brew"
tell application "Terminal"
activate
do script with command "brew install git; /usr/local/bin/git gui; exit"
end tell
on error theBrewError
if theBrewError is "The command exited with a non-zero status." then
tell application "Terminal"
activate
do script with command brewInstallCommand & "; brew install git; /usr/local/bin/git gui; exit"
end tell
else
set theAlertText to "Error"
set theAlertMessage to theBrewError
display alert theAlertText message theAlertMessage as critical buttons {"OK"} cancel button "OK"
end if
end try
else
if button returned of result = "Show" then
open location gitDocURL
end if
end if
else
set theAlertText to "Error"
set theAlertMessage to theGitError
display alert theAlertText message theAlertMessage as critical buttons {"OK"} cancel button "OK"
end if
end try
end run |
FormalAnalyzer/models/apps/KnockKnock.als | Mohannadcse/IoTCOM_BehavioralRuleExtractor | 0 | 3927 | module app_KnockKnock
open IoTBottomUp as base
open cap_runIn
open cap_now
open cap_accelerationSensor
open cap_contactSensor
one sig app_KnockKnock extends IoTApp {
accelSensor : one cap_accelerationSensor,
contactSensor : one cap_contactSensor,
state : one cap_state,
} {
rules = r
//capabilities = accelSensor + contactSensor + state
}
one sig cap_state extends cap_runIn {} {
attributes = cap_state_attr + cap_runIn_attr
}
abstract sig cap_state_attr extends Attribute {}
one sig cap_state_attr_shouldCheckForKnock extends cap_state_attr {} {
values = cap_state_attr_shouldCheckForKnock_val
}
abstract sig cap_state_attr_shouldCheckForKnock_val extends AttrValue {}
one sig cap_state_attr_shouldCheckForKnock_val_false extends cap_state_attr_shouldCheckForKnock_val {}
one sig cap_state_attr_shouldCheckForKnock_val_true extends cap_state_attr_shouldCheckForKnock_val {}
one sig cap_state_attr_DoorWasOpened extends cap_state_attr {} {
values = cap_state_attr_DoorWasOpened_val
}
abstract sig cap_state_attr_DoorWasOpened_val extends AttrValue {}
one sig cap_state_attr_DoorWasOpened_val_false extends cap_state_attr_DoorWasOpened_val {}
one sig cap_state_attr_DoorWasOpened_val_true extends cap_state_attr_DoorWasOpened_val {}
/*
abstract sig cap_state_attr_DoorWasOpened_val extends AttrValue {}
one sig cap_state_attr_DoorWasOpened_val_false extends cap_state_attr_DoorWasOpened_val {}
*/
abstract sig r extends Rule {}
one sig r0 extends r {}{
triggers = r0_trig
conditions = r0_cond
commands = r0_comm
}
abstract sig r0_trig extends Trigger {}
one sig r0_trig0 extends r0_trig {} {
capabilities = app_KnockKnock.accelSensor
attribute = cap_accelerationSensor_attr_acceleration
no value
}
abstract sig r0_cond extends Condition {}
one sig r0_cond0 extends r0_cond {} {
capabilities = app_KnockKnock.accelSensor
attribute = cap_accelerationSensor_attr_acceleration
value = cap_accelerationSensor_attr_acceleration_val - cap_accelerationSensor_attr_acceleration_val_active
}
one sig r0_cond1 extends r0_cond {} {
capabilities = app_KnockKnock.accelSensor
attribute = cap_accelerationSensor_attr_acceleration
value = cap_accelerationSensor_attr_acceleration_val_inactive
}
abstract sig r0_comm extends Command {}
one sig r0_comm0 extends r0_comm {} {
capability = app_KnockKnock.state
attribute = cap_state_attr_shouldCheckForKnock
value = cap_state_attr_shouldCheckForKnock_val_false
}
one sig r1 extends r {}{
triggers = r1_trig
conditions = r1_cond
commands = r1_comm
}
abstract sig r1_trig extends Trigger {}
one sig r1_trig0 extends r1_trig {} {
capabilities = app_KnockKnock.accelSensor
attribute = cap_accelerationSensor_attr_acceleration
no value
}
abstract sig r1_cond extends Condition {}
one sig r1_cond0 extends r1_cond {} {
capabilities = app_KnockKnock.accelSensor
attribute = cap_accelerationSensor_attr_acceleration
value = cap_accelerationSensor_attr_acceleration_val_active
}
abstract sig r1_comm extends Command {}
one sig r1_comm0 extends r1_comm {} {
capability = app_KnockKnock.state
attribute = cap_state_attr_DoorWasOpened
value = cap_state_attr_DoorWasOpened_val_false
}
one sig r1_comm1 extends r1_comm {} {
capability = app_KnockKnock.state
attribute = cap_state_attr_shouldCheckForKnock
value = cap_state_attr_shouldCheckForKnock_val_true
}
one sig r2 extends r {}{
triggers = r2_trig
conditions = r2_cond
commands = r2_comm
}
abstract sig r2_trig extends Trigger {}
one sig r2_trig0 extends r2_trig {} {
capabilities = app_KnockKnock.contactSensor
attribute = cap_contactSensor_attr_contact
value = cap_contactSensor_attr_contact_val_open
}
abstract sig r2_cond extends Condition {}
one sig r2_cond0 extends r2_cond {} {
capabilities = app_KnockKnock.state
attribute = cap_state_attr_shouldCheckForKnock
value = cap_state_attr_shouldCheckForKnock_val_true
}
abstract sig r2_comm extends Command {}
one sig r2_comm0 extends r2_comm {} {
capability = app_KnockKnock.state
attribute = cap_state_attr_DoorWasOpened
value = cap_state_attr_DoorWasOpened_val_true
}
|
ansi_cursor_position.asm | thlorenz/lib.asm | 12 | 88837 | <reponame>thlorenz/lib.asm<filename>ansi_cursor_position.asm
; vim: ft=nasm
extern sys_write_stdout
extern hex2decimal
section .data
ansi_cursor : db 27,"["
ansi_cursor_y : db '000;'
ansi_cursor_x : db '000H'
ansi_cursor_len equ $-ansi_cursor
section .text
; --------------------------------------------------------------
; ansi_cursor_position
; moves cursor to given position
;
; args: ah = column (x)
; al = row (y)
; out : nothing, all registers preserved
; calls: sys_write_stdout, hex2decimal
; --------------------------------------------------------------
global ansi_cursor_position
ansi_cursor_position:
push eax
push ecx
push edx
push esi
mov esi, ansi_cursor
; clear high part of positions
mov word [ ansi_cursor_x ], '00'
mov word [ ansi_cursor_y ], '00'
; poke coordinates into positions
mov ecx, eax
shr eax, 8 ; isolate ah
mov esi, ansi_cursor_x + 3 ; hex2decimal stores right before esi
call hex2decimal
mov eax, ecx
and eax, 00ffh ; isolate al
mov esi, ansi_cursor_y + 3
call hex2decimal
mov esi, ansi_cursor
; sys_write to stdout
mov ecx, ansi_cursor
mov edx, ansi_cursor_len
call sys_write_stdout
pop esi
pop edx
pop ecx
pop eax
ret
;-------+
; TESTS ;
;-------+
%ifenv ansi_cursor_position
global _start
_start:
nop
;;;
mov ah, 30
mov al, 10
call ansi_cursor_position
;;;
mov ecx, x
mov edx, x_len
call sys_write_stdout
.exit:
mov eax, 1
mov ebx, 0
int 80H
section .data
x: db 'x'
x_len equ $-x
%endif
|
programs/oeis/199/A199314.asm | karttu/loda | 1 | 86823 | <filename>programs/oeis/199/A199314.asm
; A199314: (11*5^n+1)/4.
; 3,14,69,344,1719,8594,42969,214844,1074219,5371094,26855469,134277344,671386719,3356933594,16784667969,83923339844,419616699219,2098083496094,10490417480469,52452087402344,262260437011719,1311302185058594,6556510925292969
mov $1,5
pow $1,$0
div $1,4
mul $1,11
add $1,3
|
vp8/encoder/arm/armv5te/boolhuff_armv5te.asm | CM-Archive/android_external_libvpx | 0 | 161094 | ;
; Copyright (c) 2010 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 |vp8_start_encode|
EXPORT |vp8_encode_bool|
EXPORT |vp8_stop_encode|
EXPORT |vp8_encode_value|
INCLUDE vpx_vp8_enc_asm_offsets.asm
ARM
REQUIRE8
PRESERVE8
AREA |.text|, CODE, READONLY
; r0 BOOL_CODER *br
; r1 unsigned char *source
|vp8_start_encode| PROC
mov r12, #0
mov r3, #255
mvn r2, #23
str r12, [r0, #vp8_writer_lowvalue]
str r3, [r0, #vp8_writer_range]
str r12, [r0, #vp8_writer_value]
str r2, [r0, #vp8_writer_count]
str r12, [r0, #vp8_writer_pos]
str r1, [r0, #vp8_writer_buffer]
bx lr
ENDP
; r0 BOOL_CODER *br
; r1 int bit
; r2 int probability
|vp8_encode_bool| PROC
push {r4-r9, lr}
mov r4, r2
ldr r2, [r0, #vp8_writer_lowvalue]
ldr r5, [r0, #vp8_writer_range]
ldr r3, [r0, #vp8_writer_count]
sub r7, r5, #1 ; range-1
cmp r1, #0
mul r4, r4, r7 ; ((range-1) * probability)
mov r7, #1
add r4, r7, r4, lsr #8 ; 1 + (((range-1) * probability) >> 8)
addne r2, r2, r4 ; if (bit) lowvalue += split
subne r4, r5, r4 ; if (bit) range = range-split
; Counting the leading zeros is used to normalize range.
clz r6, r4
sub r6, r6, #24 ; shift
; Flag is set on the sum of count. This flag is used later
; to determine if count >= 0
adds r3, r3, r6 ; count += shift
lsl r5, r4, r6 ; range <<= shift
bmi token_count_lt_zero ; if(count >= 0)
sub r6, r6, r3 ; offset = shift - count
sub r4, r6, #1 ; offset-1
lsls r4, r2, r4 ; if((lowvalue<<(offset-1)) & 0x80000000 )
bpl token_high_bit_not_set
ldr r4, [r0, #vp8_writer_pos] ; x
sub r4, r4, #1 ; x = w->pos-1
b token_zero_while_start
token_zero_while_loop
mov r9, #0
strb r9, [r7, r4] ; w->buffer[x] =(unsigned char)0
sub r4, r4, #1 ; x--
token_zero_while_start
cmp r4, #0
ldrge r7, [r0, #vp8_writer_buffer]
ldrb r1, [r7, r4]
cmpge r1, #0xff
beq token_zero_while_loop
ldr r7, [r0, #vp8_writer_buffer]
ldrb r9, [r7, r4] ; w->buffer[x]
add r9, r9, #1
strb r9, [r7, r4] ; w->buffer[x] + 1
token_high_bit_not_set
rsb r4, r6, #24 ; 24-offset
ldr r9, [r0, #vp8_writer_buffer]
lsr r7, r2, r4 ; lowvalue >> (24-offset)
ldr r4, [r0, #vp8_writer_pos] ; w->pos
lsl r2, r2, r6 ; lowvalue <<= offset
mov r6, r3 ; shift = count
add r1, r4, #1 ; w->pos++
bic r2, r2, #0xff000000 ; lowvalue &= 0xffffff
str r1, [r0, #vp8_writer_pos]
sub r3, r3, #8 ; count -= 8
strb r7, [r9, r4] ; w->buffer[w->pos++]
token_count_lt_zero
lsl r2, r2, r6 ; lowvalue <<= shift
str r2, [r0, #vp8_writer_lowvalue]
str r5, [r0, #vp8_writer_range]
str r3, [r0, #vp8_writer_count]
pop {r4-r9, pc}
ENDP
; r0 BOOL_CODER *br
|vp8_stop_encode| PROC
push {r4-r10, lr}
ldr r2, [r0, #vp8_writer_lowvalue]
ldr r5, [r0, #vp8_writer_range]
ldr r3, [r0, #vp8_writer_count]
mov r10, #32
stop_encode_loop
sub r7, r5, #1 ; range-1
mov r4, r7, lsl #7 ; ((range-1) * 128)
mov r7, #1
add r4, r7, r4, lsr #8 ; 1 + (((range-1) * 128) >> 8)
; Counting the leading zeros is used to normalize range.
clz r6, r4
sub r6, r6, #24 ; shift
; Flag is set on the sum of count. This flag is used later
; to determine if count >= 0
adds r3, r3, r6 ; count += shift
lsl r5, r4, r6 ; range <<= shift
bmi token_count_lt_zero_se ; if(count >= 0)
sub r6, r6, r3 ; offset = shift - count
sub r4, r6, #1 ; offset-1
lsls r4, r2, r4 ; if((lowvalue<<(offset-1)) & 0x80000000 )
bpl token_high_bit_not_set_se
ldr r4, [r0, #vp8_writer_pos] ; x
sub r4, r4, #1 ; x = w->pos-1
b token_zero_while_start_se
token_zero_while_loop_se
mov r9, #0
strb r9, [r7, r4] ; w->buffer[x] =(unsigned char)0
sub r4, r4, #1 ; x--
token_zero_while_start_se
cmp r4, #0
ldrge r7, [r0, #vp8_writer_buffer]
ldrb r1, [r7, r4]
cmpge r1, #0xff
beq token_zero_while_loop_se
ldr r7, [r0, #vp8_writer_buffer]
ldrb r9, [r7, r4] ; w->buffer[x]
add r9, r9, #1
strb r9, [r7, r4] ; w->buffer[x] + 1
token_high_bit_not_set_se
rsb r4, r6, #24 ; 24-offset
ldr r9, [r0, #vp8_writer_buffer]
lsr r7, r2, r4 ; lowvalue >> (24-offset)
ldr r4, [r0, #vp8_writer_pos] ; w->pos
lsl r2, r2, r6 ; lowvalue <<= offset
mov r6, r3 ; shift = count
add r1, r4, #1 ; w->pos++
bic r2, r2, #0xff000000 ; lowvalue &= 0xffffff
str r1, [r0, #vp8_writer_pos]
sub r3, r3, #8 ; count -= 8
strb r7, [r9, r4] ; w->buffer[w->pos++]
token_count_lt_zero_se
lsl r2, r2, r6 ; lowvalue <<= shift
subs r10, r10, #1
bne stop_encode_loop
str r2, [r0, #vp8_writer_lowvalue]
str r5, [r0, #vp8_writer_range]
str r3, [r0, #vp8_writer_count]
pop {r4-r10, pc}
ENDP
; r0 BOOL_CODER *br
; r1 int data
; r2 int bits
|vp8_encode_value| PROC
push {r4-r11, lr}
mov r10, r2
ldr r2, [r0, #vp8_writer_lowvalue]
ldr r5, [r0, #vp8_writer_range]
ldr r3, [r0, #vp8_writer_count]
rsb r4, r10, #32 ; 32-n
; v is kept in r1 during the token pack loop
lsl r1, r1, r4 ; r1 = v << 32 - n
encode_value_loop
sub r7, r5, #1 ; range-1
; Decisions are made based on the bit value shifted
; off of v, so set a flag here based on this.
; This value is refered to as "bb"
lsls r1, r1, #1 ; bit = v >> n
mov r4, r7, lsl #7 ; ((range-1) * 128)
mov r7, #1
add r4, r7, r4, lsr #8 ; 1 + (((range-1) * 128) >> 8)
addcs r2, r2, r4 ; if (bit) lowvalue += split
subcs r4, r5, r4 ; if (bit) range = range-split
; Counting the leading zeros is used to normalize range.
clz r6, r4
sub r6, r6, #24 ; shift
; Flag is set on the sum of count. This flag is used later
; to determine if count >= 0
adds r3, r3, r6 ; count += shift
lsl r5, r4, r6 ; range <<= shift
bmi token_count_lt_zero_ev ; if(count >= 0)
sub r6, r6, r3 ; offset = shift - count
sub r4, r6, #1 ; offset-1
lsls r4, r2, r4 ; if((lowvalue<<(offset-1)) & 0x80000000 )
bpl token_high_bit_not_set_ev
ldr r4, [r0, #vp8_writer_pos] ; x
sub r4, r4, #1 ; x = w->pos-1
b token_zero_while_start_ev
token_zero_while_loop_ev
mov r9, #0
strb r9, [r7, r4] ; w->buffer[x] =(unsigned char)0
sub r4, r4, #1 ; x--
token_zero_while_start_ev
cmp r4, #0
ldrge r7, [r0, #vp8_writer_buffer]
ldrb r11, [r7, r4]
cmpge r11, #0xff
beq token_zero_while_loop_ev
ldr r7, [r0, #vp8_writer_buffer]
ldrb r9, [r7, r4] ; w->buffer[x]
add r9, r9, #1
strb r9, [r7, r4] ; w->buffer[x] + 1
token_high_bit_not_set_ev
rsb r4, r6, #24 ; 24-offset
ldr r9, [r0, #vp8_writer_buffer]
lsr r7, r2, r4 ; lowvalue >> (24-offset)
ldr r4, [r0, #vp8_writer_pos] ; w->pos
lsl r2, r2, r6 ; lowvalue <<= offset
mov r6, r3 ; shift = count
add r11, r4, #1 ; w->pos++
bic r2, r2, #0xff000000 ; lowvalue &= 0xffffff
str r11, [r0, #vp8_writer_pos]
sub r3, r3, #8 ; count -= 8
strb r7, [r9, r4] ; w->buffer[w->pos++]
token_count_lt_zero_ev
lsl r2, r2, r6 ; lowvalue <<= shift
subs r10, r10, #1
bne encode_value_loop
str r2, [r0, #vp8_writer_lowvalue]
str r5, [r0, #vp8_writer_range]
str r3, [r0, #vp8_writer_count]
pop {r4-r11, pc}
ENDP
END
|
Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0x48_notsx.log_21829_923.asm | ljhsiun2/medusa | 9 | 246928 | .global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r13
push %r9
push %rax
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WT_ht+0x1a04c, %rdx
nop
nop
nop
nop
nop
inc %r13
movw $0x6162, (%rdx)
nop
dec %rcx
lea addresses_UC_ht+0x1804c, %rsi
lea addresses_UC_ht+0x5d04, %rdi
nop
nop
sub %r9, %r9
mov $37, %rcx
rep movsq
nop
nop
nop
nop
nop
inc %rdi
lea addresses_A_ht+0x1064c, %rcx
nop
nop
nop
inc %rdx
mov $0x6162636465666768, %rsi
movq %rsi, %xmm4
and $0xffffffffffffffc0, %rcx
movaps %xmm4, (%rcx)
nop
and %rcx, %rcx
lea addresses_WC_ht+0x1a04c, %r9
dec %rcx
vmovups (%r9), %ymm3
vextracti128 $0, %ymm3, %xmm3
vpextrq $0, %xmm3, %rdi
sub $4386, %rcx
lea addresses_A_ht+0x9b9c, %r13
nop
nop
nop
add %rdi, %rdi
movw $0x6162, (%r13)
nop
nop
nop
nop
sub $49627, %r13
lea addresses_D_ht+0xf44c, %rsi
nop
cmp %rdi, %rdi
mov (%rsi), %edx
nop
nop
nop
nop
nop
cmp %r13, %r13
lea addresses_WT_ht+0xb24c, %rdi
nop
cmp $24714, %r9
movb (%rdi), %al
nop
nop
nop
add $17892, %rdx
lea addresses_A_ht+0xdd4c, %rdx
nop
nop
and %r9, %r9
mov (%rdx), %rdi
nop
cmp %rcx, %rcx
lea addresses_D_ht+0x4dcc, %rsi
lea addresses_WT_ht+0xd38, %rdi
nop
nop
cmp %r11, %r11
mov $121, %rcx
rep movsq
nop
dec %r9
lea addresses_UC_ht+0x62bc, %rax
nop
nop
nop
nop
nop
inc %rdi
movb $0x61, (%rax)
nop
xor $6724, %r13
lea addresses_A_ht+0x1a65a, %rcx
nop
nop
nop
nop
add $28990, %rax
mov $0x6162636465666768, %rdi
movq %rdi, %xmm2
movups %xmm2, (%rcx)
nop
nop
sub %r9, %r9
lea addresses_A_ht+0x1684c, %rax
nop
nop
nop
and $30115, %rcx
mov (%rax), %r13
nop
nop
dec %rsi
lea addresses_WC_ht+0x69cc, %rdi
nop
nop
nop
nop
dec %r11
mov (%rdi), %rcx
nop
nop
cmp $62767, %r11
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rax
pop %r9
pop %r13
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r13
push %r14
push %r9
push %rbx
push %rcx
push %rdx
// Load
lea addresses_D+0x304c, %rbx
nop
nop
inc %r13
mov (%rbx), %r14
nop
nop
nop
cmp $48901, %rcx
// Load
lea addresses_WC+0x178aa, %rbx
nop
nop
nop
add %r9, %r9
mov (%rbx), %r13
nop
nop
sub $16511, %r13
// Store
lea addresses_UC+0x18bcc, %r10
nop
add $36253, %rbx
movl $0x51525354, (%r10)
nop
nop
nop
nop
inc %r14
// Store
lea addresses_A+0xc04c, %r14
nop
add $17516, %r9
movl $0x51525354, (%r14)
and $32480, %r9
// Store
lea addresses_WT+0xe04c, %r14
nop
dec %r10
mov $0x5152535455565758, %r13
movq %r13, (%r14)
nop
xor %rcx, %rcx
// Store
lea addresses_WC+0x1a54c, %r10
nop
nop
nop
nop
sub $39289, %r9
mov $0x5152535455565758, %r14
movq %r14, %xmm5
movups %xmm5, (%r10)
inc %r13
// Store
lea addresses_US+0x5554, %r9
nop
nop
nop
nop
nop
sub %rdx, %rdx
mov $0x5152535455565758, %r14
movq %r14, %xmm4
vmovntdq %ymm4, (%r9)
nop
sub %r14, %r14
// Faulty Load
lea addresses_A+0x184c, %r13
nop
nop
and %rdx, %rdx
vmovups (%r13), %ymm3
vextracti128 $1, %ymm3, %xmm3
vpextrq $1, %xmm3, %r14
lea oracles, %r9
and $0xff, %r14
shlq $12, %r14
mov (%r9,%r14,1), %r14
pop %rdx
pop %rcx
pop %rbx
pop %r9
pop %r14
pop %r13
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_A', 'congruent': 0}}
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_D', 'congruent': 8}}
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_WC', 'congruent': 1}}
{'dst': {'same': False, 'NT': False, 'AVXalign': True, 'size': 4, 'type': 'addresses_UC', 'congruent': 6}, 'OP': 'STOR'}
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_A', 'congruent': 11}, 'OP': 'STOR'}
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_WT', 'congruent': 11}, 'OP': 'STOR'}
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 16, 'type': 'addresses_WC', 'congruent': 7}, 'OP': 'STOR'}
{'dst': {'same': False, 'NT': True, 'AVXalign': False, 'size': 32, 'type': 'addresses_US', 'congruent': 1}, 'OP': 'STOR'}
[Faulty Load]
{'OP': 'LOAD', 'src': {'same': True, 'NT': False, 'AVXalign': False, 'size': 32, 'type': 'addresses_A', 'congruent': 0}}
<gen_prepare_buffer>
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 2, 'type': 'addresses_WT_ht', 'congruent': 9}, 'OP': 'STOR'}
{'dst': {'same': False, 'congruent': 3, 'type': 'addresses_UC_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 11, 'type': 'addresses_UC_ht'}}
{'dst': {'same': False, 'NT': False, 'AVXalign': True, 'size': 16, 'type': 'addresses_A_ht', 'congruent': 8}, 'OP': 'STOR'}
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 32, 'type': 'addresses_WC_ht', 'congruent': 6}}
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 2, 'type': 'addresses_A_ht', 'congruent': 0}, 'OP': 'STOR'}
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_D_ht', 'congruent': 6}}
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_WT_ht', 'congruent': 9}}
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_A_ht', 'congruent': 4}}
{'dst': {'same': False, 'congruent': 2, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'src': {'same': True, 'congruent': 6, 'type': 'addresses_D_ht'}}
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_UC_ht', 'congruent': 4}, 'OP': 'STOR'}
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 16, 'type': 'addresses_A_ht', 'congruent': 1}, 'OP': 'STOR'}
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_A_ht', 'congruent': 9}}
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_WC_ht', 'congruent': 7}}
{'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
*/
|
hello/hello.asm | pdpdds/DOSDev | 0 | 87059 | <reponame>pdpdds/DOSDev
.model small
.stack
.data
msg db "Hello World!", 13, 10, "$"
.code
start:
mov ax, @data
mov ds, ax ; set DS to point to data segment
mov dx, offset msg ; point to the string
mov ah, 09h ; function to print the string
int 21h ; execute the function
mov ax, 4C00h ; function to terminate the program
int 21h ; execute
end start |
oeis/028/A028051.asm | neoneye/loda-programs | 11 | 2516 | <filename>oeis/028/A028051.asm
; A028051: Expansion of 1/((1-3x)(1-4x)(1-10x)(1-12x)).
; Submitted by <NAME>
; 1,29,555,8905,130091,1796769,23932195,310954985,3969388731,50012943409,623962124435,7725629774265,95088465616171,1164870934296449,14216545739974275,172979498415780745
mov $1,1
mov $2,$0
mov $3,$0
lpb $2
mov $0,$3
dif $2,26
sub $2,1
sub $0,$2
seq $0,19747 ; Expansion of 1/((1-4x)(1-10x)(1-12x)).
mul $1,3
add $1,$0
lpe
mov $0,$1
|
Transynther/x86/_processed/NONE/_xt_sm_/i9-9900K_12_0xa0_notsx.log_21829_1202.asm | ljhsiun2/medusa | 9 | 83331 | <reponame>ljhsiun2/medusa<filename>Transynther/x86/_processed/NONE/_xt_sm_/i9-9900K_12_0xa0_notsx.log_21829_1202.asm
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r15
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_normal_ht+0x12859, %rsi
lea addresses_UC_ht+0x15fd9, %rdi
nop
nop
nop
nop
and $48598, %rbp
mov $35, %rcx
rep movsb
cmp %rdi, %rdi
lea addresses_A_ht+0x198d9, %rsi
lea addresses_WC_ht+0x27d9, %rdi
nop
nop
nop
nop
cmp $55172, %rbp
mov $6, %rcx
rep movsl
nop
nop
nop
add %rdx, %rdx
lea addresses_D_ht+0x7e11, %rbp
nop
nop
nop
inc %r15
movw $0x6162, (%rbp)
nop
nop
nop
nop
xor %rdi, %rdi
lea addresses_WT_ht+0xe899, %rsi
lea addresses_WT_ht+0x21f1, %rdi
clflush (%rdi)
dec %rbp
mov $46, %rcx
rep movsq
add %r15, %r15
lea addresses_D_ht+0x14619, %rsi
lea addresses_UC_ht+0x91d9, %rdi
clflush (%rdi)
nop
and %r15, %r15
mov $84, %rcx
rep movsb
nop
nop
nop
nop
xor %rdi, %rdi
lea addresses_normal_ht+0xc31d, %rsi
nop
inc %rdi
mov (%rsi), %r15
nop
nop
nop
nop
nop
inc %rcx
lea addresses_WC_ht+0x3c31, %rsi
lea addresses_normal_ht+0x183d9, %rdi
nop
nop
nop
nop
add $18077, %r11
mov $3, %rcx
rep movsw
nop
nop
xor $53408, %rdi
lea addresses_A_ht+0x2fd9, %r11
nop
nop
nop
cmp $28434, %rsi
mov $0x6162636465666768, %rdx
movq %rdx, %xmm1
movups %xmm1, (%r11)
nop
nop
nop
nop
dec %r11
lea addresses_WT_ht+0x1e79, %rdi
nop
and $17052, %rbp
mov $0x6162636465666768, %r11
movq %r11, (%rdi)
nop
add $59907, %rbp
lea addresses_normal_ht+0x1dad9, %r15
clflush (%r15)
nop
nop
cmp $26441, %r11
mov $0x6162636465666768, %rsi
movq %rsi, (%r15)
nop
nop
nop
nop
nop
cmp %r15, %r15
lea addresses_UC_ht+0x1ced9, %rsi
lea addresses_normal_ht+0x170c1, %rdi
nop
nop
nop
xor $2021, %rdx
mov $70, %rcx
rep movsw
nop
nop
nop
inc %rdi
lea addresses_UC_ht+0x1b799, %rsi
lea addresses_UC_ht+0xdd9, %rdi
nop
and $36003, %r10
mov $12, %rcx
rep movsl
nop
inc %rcx
lea addresses_D_ht+0x2fd9, %rsi
lea addresses_A_ht+0x11c0d, %rdi
nop
nop
nop
nop
nop
add $27426, %r10
mov $33, %rcx
rep movsl
nop
nop
nop
dec %rsi
lea addresses_WT_ht+0x9fd9, %rsi
lea addresses_WC_ht+0x167d9, %rdi
nop
nop
nop
nop
nop
inc %r15
mov $25, %rcx
rep movsw
nop
nop
nop
and $34869, %rsi
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbp
pop %r15
pop %r11
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r9
push %rax
push %rbp
push %rcx
push %rdi
push %rsi
// Store
lea addresses_D+0x177d9, %rsi
nop
nop
and $43684, %rax
mov $0x5152535455565758, %rdi
movq %rdi, %xmm3
vmovups %ymm3, (%rsi)
nop
nop
nop
nop
sub %rsi, %rsi
// Store
lea addresses_normal+0x11913, %rax
clflush (%rax)
nop
nop
nop
nop
and %r9, %r9
movw $0x5152, (%rax)
nop
nop
xor %rdi, %rdi
// Store
lea addresses_PSE+0x1e0b1, %rcx
nop
nop
inc %rax
movw $0x5152, (%rcx)
nop
nop
nop
nop
nop
and %r9, %r9
// Store
mov $0x635, %r9
nop
nop
sub $4528, %rsi
movl $0x51525354, (%r9)
nop
nop
and $5022, %rax
// Load
lea addresses_WT+0x137bd, %rcx
nop
nop
nop
sub %rbp, %rbp
movb (%rcx), %r9b
and %rbp, %rbp
// Store
lea addresses_WC+0xd69d, %rbp
nop
sub $55255, %rax
movb $0x51, (%rbp)
inc %rdi
// Load
mov $0xfd9, %rdi
nop
sub %rbp, %rbp
movb (%rdi), %r9b
nop
nop
nop
nop
cmp $2879, %rax
// Faulty Load
lea addresses_D+0x177d9, %rbp
nop
cmp %rax, %rax
mov (%rbp), %esi
lea oracles, %rcx
and $0xff, %rsi
shlq $12, %rsi
mov (%rcx,%rsi,1), %rsi
pop %rsi
pop %rdi
pop %rcx
pop %rbp
pop %rax
pop %r9
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'src': {'type': 'addresses_D', 'AVXalign': False, 'size': 8, 'NT': False, 'same': False, 'congruent': 0}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'type': 'addresses_D', 'AVXalign': False, 'size': 32, 'NT': False, 'same': True, 'congruent': 0}}
{'OP': 'STOR', 'dst': {'type': 'addresses_normal', 'AVXalign': False, 'size': 2, 'NT': False, 'same': False, 'congruent': 1}}
{'OP': 'STOR', 'dst': {'type': 'addresses_PSE', 'AVXalign': False, 'size': 2, 'NT': False, 'same': False, 'congruent': 3}}
{'OP': 'STOR', 'dst': {'type': 'addresses_P', 'AVXalign': False, 'size': 4, 'NT': False, 'same': False, 'congruent': 2}}
{'src': {'type': 'addresses_WT', 'AVXalign': True, 'size': 1, 'NT': False, 'same': False, 'congruent': 2}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'type': 'addresses_WC', 'AVXalign': False, 'size': 1, 'NT': True, 'same': False, 'congruent': 2}}
{'src': {'type': 'addresses_P', 'AVXalign': False, 'size': 1, 'NT': False, 'same': False, 'congruent': 11}, 'OP': 'LOAD'}
[Faulty Load]
{'src': {'type': 'addresses_D', 'AVXalign': False, 'size': 4, 'NT': False, 'same': True, 'congruent': 0}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'type': 'addresses_normal_ht', 'congruent': 6, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_UC_ht', 'congruent': 10, 'same': False}}
{'src': {'type': 'addresses_A_ht', 'congruent': 8, 'same': True}, 'OP': 'REPM', 'dst': {'type': 'addresses_WC_ht', 'congruent': 11, 'same': True}}
{'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'AVXalign': False, 'size': 2, 'NT': True, 'same': False, 'congruent': 2}}
{'src': {'type': 'addresses_WT_ht', 'congruent': 4, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WT_ht', 'congruent': 3, 'same': False}}
{'src': {'type': 'addresses_D_ht', 'congruent': 6, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_UC_ht', 'congruent': 9, 'same': False}}
{'src': {'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 8, 'NT': False, 'same': False, 'congruent': 1}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_WC_ht', 'congruent': 1, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_normal_ht', 'congruent': 6, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'AVXalign': False, 'size': 16, 'NT': False, 'same': False, 'congruent': 10}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 8, 'NT': False, 'same': False, 'congruent': 2}}
{'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 8, 'NT': False, 'same': False, 'congruent': 8}}
{'src': {'type': 'addresses_UC_ht', 'congruent': 6, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_normal_ht', 'congruent': 3, 'same': False}}
{'src': {'type': 'addresses_UC_ht', 'congruent': 2, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_UC_ht', 'congruent': 8, 'same': False}}
{'src': {'type': 'addresses_D_ht', 'congruent': 9, 'same': True}, 'OP': 'REPM', 'dst': {'type': 'addresses_A_ht', 'congruent': 2, 'same': False}}
{'src': {'type': 'addresses_WT_ht', 'congruent': 11, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WC_ht', 'congruent': 11, 'same': False}}
{'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
*/
|
LAB4/q3C.asm | Avigdor-Kolonimus/ASM | 0 | 82872 | <filename>LAB4/q3C.asm
dseg segment
N1 DB ?,?,?,? ;first number
N2 DB ? ;second number
N3 DB ?,?,?,? ;answer number
MESSErr DB 0Ah,0Dh,"input is not correct",0Ah,0Dh, '$' ;error message
Number1 DB "Enter first number",0Ah,0Dh, '$' ;request message
Number2 DB 0Ah,0Dh,"Enter second number",0Ah,0Dh, '$' ;request message
Newline DB 0Ah,0Dh,"Division= ",'$' ;answer message
dseg ends
sseg segment stack
dw 100h dup(?)
sseg ends
cseg segment
assume ds:dseg,cs:cseg,ss:sseg
check proc
;check that character is number
cmp al,'9'
ja P3
cmp al,'0'
jb P3
mov bl,1
ret
P3: mov bl,0
ret
check endp
MESS proc
;procedure print on screen string
mov bp,sp
mov dx,[bp+2]
mov ah,9
int 21h
ret 2
MESS endp
input proc
;input number
P4: mov ah,1
int 21h
call check
cmp bl,1
je P5
;output to screen error message
lea dx,MESSErr
push dx
call MESS
jmp P4
P5: ret
input endp
;procedure divides N1 on N2,answer saved in N3
divis proc
;initialization
mov cx,4
mov si,0
mov bl,N2[si]
;division of N1 on N2
P1: mov al,N1[si]
mov ah,0
AAD
div bl
cmp si,3
je P2
mov N3[si+1],ah
P2: add N3[si],al
inc si
loop P1
ret
divis endp
start: mov ax,dseg
mov ds,ax
;input of first number
xor si,si
mov cx,4
lea dx,Number1
push dx
call MESS
L1: call input
sub al,30h
mov N1[si],al
inc si
loop L1
;input of second number
lea dx,Number2
push dx
call MESS
L2: call input
sub al,30h
mov N2[0],al
;call procedure of division
call divis
;print answer
lea dx,Newline
push dx
call MESS
xor si,si
mov cx,4
L3: mov dl,N3[si]
add dl,30h
mov ah,2
int 21h
inc si
loop L3
;
SOF: mov ah,4ch
int 21h
cseg ends
end start |
target/cos_117/disasm/iop_overlay1/CONMAN.asm | jrrk2/cray-sim | 49 | 105261 | 0x0000 (0x000000) 0x2118- f:00020 d: 280 | A = OR[280]
0x0001 (0x000002) 0x141A- f:00012 d: 26 | A = A + 26 (0x001A)
0x0002 (0x000004) 0x2908- f:00024 d: 264 | OR[264] = A
0x0003 (0x000006) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0004 (0x000008) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x0005 (0x00000A) 0x2118- f:00020 d: 280 | A = OR[280]
0x0006 (0x00000C) 0x140F- f:00012 d: 15 | A = A + 15 (0x000F)
0x0007 (0x00000E) 0x2908- f:00024 d: 264 | OR[264] = A
0x0008 (0x000010) 0x3108- f:00030 d: 264 | A = (OR[264])
0x0009 (0x000012) 0x1201- f:00011 d: 1 | A = A & 1 (0x0001)
0x000A (0x000014) 0x8402- f:00102 d: 2 | P = P + 2 (0x000C), A = 0
0x000B (0x000016) 0x700C- f:00070 d: 12 | P = P + 12 (0x0017)
0x000C (0x000018) 0x1029- f:00010 d: 41 | A = 41 (0x0029)
0x000D (0x00001A) 0x2921- f:00024 d: 289 | OR[289] = A
0x000E (0x00001C) 0x1800-0x0067 f:00014 d: 0 | A = 103 (0x0067)
0x0010 (0x000020) 0x2922- f:00024 d: 290 | OR[290] = A
0x0011 (0x000022) 0x2118- f:00020 d: 280 | A = OR[280]
0x0012 (0x000024) 0x2923- f:00024 d: 291 | OR[291] = A
0x0013 (0x000026) 0x1121- f:00010 d: 289 | A = 289 (0x0121)
0x0014 (0x000028) 0x5800- f:00054 d: 0 | B = A
0x0015 (0x00002A) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0016 (0x00002C) 0x7C09- f:00076 d: 9 | R = OR[9]
0x0017 (0x00002E) 0x2118- f:00020 d: 280 | A = OR[280]
0x0018 (0x000030) 0x140C- f:00012 d: 12 | A = A + 12 (0x000C)
0x0019 (0x000032) 0x2908- f:00024 d: 264 | OR[264] = A
0x001A (0x000034) 0x3108- f:00030 d: 264 | A = (OR[264])
0x001B (0x000036) 0x12FF- f:00011 d: 255 | A = A & 255 (0x00FF)
0x001C (0x000038) 0x2919- f:00024 d: 281 | OR[281] = A
0x001D (0x00003A) 0x2118- f:00020 d: 280 | A = OR[280]
0x001E (0x00003C) 0x140D- f:00012 d: 13 | A = A + 13 (0x000D)
0x001F (0x00003E) 0x2908- f:00024 d: 264 | OR[264] = A
0x0020 (0x000040) 0x3108- f:00030 d: 264 | A = (OR[264])
0x0021 (0x000042) 0x0808- f:00004 d: 8 | A = A > 8 (0x0008)
0x0022 (0x000044) 0x291A- f:00024 d: 282 | OR[282] = A
0x0023 (0x000046) 0x2118- f:00020 d: 280 | A = OR[280]
0x0024 (0x000048) 0x140D- f:00012 d: 13 | A = A + 13 (0x000D)
0x0025 (0x00004A) 0x2908- f:00024 d: 264 | OR[264] = A
0x0026 (0x00004C) 0x3108- f:00030 d: 264 | A = (OR[264])
0x0027 (0x00004E) 0x12FF- f:00011 d: 255 | A = A & 255 (0x00FF)
0x0028 (0x000050) 0x291B- f:00024 d: 283 | OR[283] = A
0x0029 (0x000052) 0x211A- f:00020 d: 282 | A = OR[282]
0x002A (0x000054) 0x1630- f:00013 d: 48 | A = A - 48 (0x0030)
0x002B (0x000056) 0x291A- f:00024 d: 282 | OR[282] = A
0x002C (0x000058) 0x211A- f:00020 d: 282 | A = OR[282]
0x002D (0x00005A) 0x1610- f:00013 d: 16 | A = A - 16 (0x0010)
0x002E (0x00005C) 0x8003- f:00100 d: 3 | P = P + 3 (0x0031), C = 0
0x002F (0x00005E) 0x8402- f:00102 d: 2 | P = P + 2 (0x0031), A = 0
0x0030 (0x000060) 0x7002- f:00070 d: 2 | P = P + 2 (0x0032)
0x0031 (0x000062) 0x7008- f:00070 d: 8 | P = P + 8 (0x0039)
0x0032 (0x000064) 0x211A- f:00020 d: 282 | A = OR[282]
0x0033 (0x000066) 0x1617- f:00013 d: 23 | A = A - 23 (0x0017)
0x0034 (0x000068) 0x8002- f:00100 d: 2 | P = P + 2 (0x0036), C = 0
0x0035 (0x00006A) 0x7004- f:00070 d: 4 | P = P + 4 (0x0039)
0x0036 (0x00006C) 0x211A- f:00020 d: 282 | A = OR[282]
0x0037 (0x00006E) 0x1607- f:00013 d: 7 | A = A - 7 (0x0007)
0x0038 (0x000070) 0x291A- f:00024 d: 282 | OR[282] = A
0x0039 (0x000072) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x003A (0x000074) 0x291C- f:00024 d: 284 | OR[284] = A
0x003B (0x000076) 0x2118- f:00020 d: 280 | A = OR[280]
0x003C (0x000078) 0x140F- f:00012 d: 15 | A = A + 15 (0x000F)
0x003D (0x00007A) 0x2908- f:00024 d: 264 | OR[264] = A
0x003E (0x00007C) 0x3108- f:00030 d: 264 | A = (OR[264])
0x003F (0x00007E) 0x0803- f:00004 d: 3 | A = A > 3 (0x0003)
0x0040 (0x000080) 0x1201- f:00011 d: 1 | A = A & 1 (0x0001)
0x0041 (0x000082) 0x8602- f:00103 d: 2 | P = P + 2 (0x0043), A # 0
0x0042 (0x000084) 0x7013- f:00070 d: 19 | P = P + 19 (0x0055)
0x0043 (0x000086) 0x1003- f:00010 d: 3 | A = 3 (0x0003)
0x0044 (0x000088) 0x291D- f:00024 d: 285 | OR[285] = A
0x0045 (0x00008A) 0x2118- f:00020 d: 280 | A = OR[280]
0x0046 (0x00008C) 0x140F- f:00012 d: 15 | A = A + 15 (0x000F)
0x0047 (0x00008E) 0x2908- f:00024 d: 264 | OR[264] = A
0x0048 (0x000090) 0x3108- f:00030 d: 264 | A = (OR[264])
0x0049 (0x000092) 0x0805- f:00004 d: 5 | A = A > 5 (0x0005)
0x004A (0x000094) 0x1201- f:00011 d: 1 | A = A & 1 (0x0001)
0x004B (0x000096) 0x291E- f:00024 d: 286 | OR[286] = A
0x004C (0x000098) 0x2118- f:00020 d: 280 | A = OR[280]
0x004D (0x00009A) 0x140F- f:00012 d: 15 | A = A + 15 (0x000F)
0x004E (0x00009C) 0x2908- f:00024 d: 264 | OR[264] = A
0x004F (0x00009E) 0x3108- f:00030 d: 264 | A = (OR[264])
0x0050 (0x0000A0) 0x0804- f:00004 d: 4 | A = A > 4 (0x0004)
0x0051 (0x0000A2) 0x1201- f:00011 d: 1 | A = A & 1 (0x0001)
0x0052 (0x0000A4) 0x291F- f:00024 d: 287 | OR[287] = A
0x0053 (0x0000A6) 0x1001- f:00010 d: 1 | A = 1 (0x0001)
0x0054 (0x0000A8) 0x291C- f:00024 d: 284 | OR[284] = A
0x0055 (0x0000AA) 0x2118- f:00020 d: 280 | A = OR[280]
0x0056 (0x0000AC) 0x140F- f:00012 d: 15 | A = A + 15 (0x000F)
0x0057 (0x0000AE) 0x2908- f:00024 d: 264 | OR[264] = A
0x0058 (0x0000B0) 0x3108- f:00030 d: 264 | A = (OR[264])
0x0059 (0x0000B2) 0x0802- f:00004 d: 2 | A = A > 2 (0x0002)
0x005A (0x0000B4) 0x1201- f:00011 d: 1 | A = A & 1 (0x0001)
0x005B (0x0000B6) 0x8602- f:00103 d: 2 | P = P + 2 (0x005D), A # 0
0x005C (0x0000B8) 0x7018- f:00070 d: 24 | P = P + 24 (0x0074)
0x005D (0x0000BA) 0x211C- f:00020 d: 284 | A = OR[284]
0x005E (0x0000BC) 0x8602- f:00103 d: 2 | P = P + 2 (0x0060), A # 0
0x005F (0x0000BE) 0x700A- f:00070 d: 10 | P = P + 10 (0x0069)
0x0060 (0x0000C0) 0x2118- f:00020 d: 280 | A = OR[280]
0x0061 (0x0000C2) 0x141A- f:00012 d: 26 | A = A + 26 (0x001A)
0x0062 (0x0000C4) 0x2908- f:00024 d: 264 | OR[264] = A
0x0063 (0x0000C6) 0x3108- f:00030 d: 264 | A = (OR[264])
0x0064 (0x0000C8) 0x1A00-0xFFFE f:00015 d: 0 | A = A & 65534 (0xFFFE)
0x0066 (0x0000CC) 0x1401- f:00012 d: 1 | A = A + 1 (0x0001)
0x0067 (0x0000CE) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x0068 (0x0000D0) 0x705A- f:00070 d: 90 | P = P + 90 (0x00C2)
0x0069 (0x0000D2) 0x1002- f:00010 d: 2 | A = 2 (0x0002)
0x006A (0x0000D4) 0x291D- f:00024 d: 285 | OR[285] = A
0x006B (0x0000D6) 0x2118- f:00020 d: 280 | A = OR[280]
0x006C (0x0000D8) 0x140F- f:00012 d: 15 | A = A + 15 (0x000F)
0x006D (0x0000DA) 0x2908- f:00024 d: 264 | OR[264] = A
0x006E (0x0000DC) 0x3108- f:00030 d: 264 | A = (OR[264])
0x006F (0x0000DE) 0x0804- f:00004 d: 4 | A = A > 4 (0x0004)
0x0070 (0x0000E0) 0x1201- f:00011 d: 1 | A = A & 1 (0x0001)
0x0071 (0x0000E2) 0x291E- f:00024 d: 286 | OR[286] = A
0x0072 (0x0000E4) 0x1001- f:00010 d: 1 | A = 1 (0x0001)
0x0073 (0x0000E6) 0x291C- f:00024 d: 284 | OR[284] = A
0x0074 (0x0000E8) 0x2118- f:00020 d: 280 | A = OR[280]
0x0075 (0x0000EA) 0x140F- f:00012 d: 15 | A = A + 15 (0x000F)
0x0076 (0x0000EC) 0x2908- f:00024 d: 264 | OR[264] = A
0x0077 (0x0000EE) 0x3108- f:00030 d: 264 | A = (OR[264])
0x0078 (0x0000F0) 0x0801- f:00004 d: 1 | A = A > 1 (0x0001)
0x0079 (0x0000F2) 0x1201- f:00011 d: 1 | A = A & 1 (0x0001)
0x007A (0x0000F4) 0x8602- f:00103 d: 2 | P = P + 2 (0x007C), A # 0
0x007B (0x0000F6) 0x7018- f:00070 d: 24 | P = P + 24 (0x0093)
0x007C (0x0000F8) 0x211C- f:00020 d: 284 | A = OR[284]
0x007D (0x0000FA) 0x8602- f:00103 d: 2 | P = P + 2 (0x007F), A # 0
0x007E (0x0000FC) 0x700A- f:00070 d: 10 | P = P + 10 (0x0088)
0x007F (0x0000FE) 0x2118- f:00020 d: 280 | A = OR[280]
0x0080 (0x000100) 0x141A- f:00012 d: 26 | A = A + 26 (0x001A)
0x0081 (0x000102) 0x2908- f:00024 d: 264 | OR[264] = A
0x0082 (0x000104) 0x3108- f:00030 d: 264 | A = (OR[264])
0x0083 (0x000106) 0x1A00-0xFFFE f:00015 d: 0 | A = A & 65534 (0xFFFE)
0x0085 (0x00010A) 0x1401- f:00012 d: 1 | A = A + 1 (0x0001)
0x0086 (0x00010C) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x0087 (0x00010E) 0x703B- f:00070 d: 59 | P = P + 59 (0x00C2)
0x0088 (0x000110) 0x1001- f:00010 d: 1 | A = 1 (0x0001)
0x0089 (0x000112) 0x291D- f:00024 d: 285 | OR[285] = A
0x008A (0x000114) 0x2118- f:00020 d: 280 | A = OR[280]
0x008B (0x000116) 0x140F- f:00012 d: 15 | A = A + 15 (0x000F)
0x008C (0x000118) 0x2908- f:00024 d: 264 | OR[264] = A
0x008D (0x00011A) 0x3108- f:00030 d: 264 | A = (OR[264])
0x008E (0x00011C) 0x0804- f:00004 d: 4 | A = A > 4 (0x0004)
0x008F (0x00011E) 0x1201- f:00011 d: 1 | A = A & 1 (0x0001)
0x0090 (0x000120) 0x291E- f:00024 d: 286 | OR[286] = A
0x0091 (0x000122) 0x1001- f:00010 d: 1 | A = 1 (0x0001)
0x0092 (0x000124) 0x291C- f:00024 d: 284 | OR[284] = A
0x0093 (0x000126) 0x211C- f:00020 d: 284 | A = OR[284]
0x0094 (0x000128) 0x8402- f:00102 d: 2 | P = P + 2 (0x0096), A = 0
0x0095 (0x00012A) 0x700A- f:00070 d: 10 | P = P + 10 (0x009F)
0x0096 (0x00012C) 0x2118- f:00020 d: 280 | A = OR[280]
0x0097 (0x00012E) 0x141A- f:00012 d: 26 | A = A + 26 (0x001A)
0x0098 (0x000130) 0x2908- f:00024 d: 264 | OR[264] = A
0x0099 (0x000132) 0x3108- f:00030 d: 264 | A = (OR[264])
0x009A (0x000134) 0x1A00-0xFFFE f:00015 d: 0 | A = A & 65534 (0xFFFE)
0x009C (0x000138) 0x1401- f:00012 d: 1 | A = A + 1 (0x0001)
0x009D (0x00013A) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x009E (0x00013C) 0x7024- f:00070 d: 36 | P = P + 36 (0x00C2)
0x009F (0x00013E) 0x1028- f:00010 d: 40 | A = 40 (0x0028)
0x00A0 (0x000140) 0x2921- f:00024 d: 289 | OR[289] = A
0x00A1 (0x000142) 0x1800-0x0066 f:00014 d: 0 | A = 102 (0x0066)
0x00A3 (0x000146) 0x2922- f:00024 d: 290 | OR[290] = A
0x00A4 (0x000148) 0x211D- f:00020 d: 285 | A = OR[285]
0x00A5 (0x00014A) 0x2923- f:00024 d: 291 | OR[291] = A
0x00A6 (0x00014C) 0x2119- f:00020 d: 281 | A = OR[281]
0x00A7 (0x00014E) 0x2924- f:00024 d: 292 | OR[292] = A
0x00A8 (0x000150) 0x211A- f:00020 d: 282 | A = OR[282]
0x00A9 (0x000152) 0x2925- f:00024 d: 293 | OR[293] = A
0x00AA (0x000154) 0x211B- f:00020 d: 283 | A = OR[283]
0x00AB (0x000156) 0x2926- f:00024 d: 294 | OR[294] = A
0x00AC (0x000158) 0x211E- f:00020 d: 286 | A = OR[286]
0x00AD (0x00015A) 0x2927- f:00024 d: 295 | OR[295] = A
0x00AE (0x00015C) 0x211F- f:00020 d: 287 | A = OR[287]
0x00AF (0x00015E) 0x2928- f:00024 d: 296 | OR[296] = A
0x00B0 (0x000160) 0x1121- f:00010 d: 289 | A = 289 (0x0121)
0x00B1 (0x000162) 0x5800- f:00054 d: 0 | B = A
0x00B2 (0x000164) 0x1800-0x1318 f:00014 d: 0 | A = 4888 (0x1318)
0x00B4 (0x000168) 0x7C09- f:00076 d: 9 | R = OR[9]
0x00B5 (0x00016A) 0x2920- f:00024 d: 288 | OR[288] = A
0x00B6 (0x00016C) 0x2120- f:00020 d: 288 | A = OR[288]
0x00B7 (0x00016E) 0x8602- f:00103 d: 2 | P = P + 2 (0x00B9), A # 0
0x00B8 (0x000170) 0x700A- f:00070 d: 10 | P = P + 10 (0x00C2)
0x00B9 (0x000172) 0x1800-0xFFFF f:00014 d: 0 | A = 65535 (0xFFFF)
0x00BB (0x000176) 0x2720- f:00023 d: 288 | A = A - OR[288]
0x00BC (0x000178) 0x2920- f:00024 d: 288 | OR[288] = A
0x00BD (0x00017A) 0x2118- f:00020 d: 280 | A = OR[280]
0x00BE (0x00017C) 0x141A- f:00012 d: 26 | A = A + 26 (0x001A)
0x00BF (0x00017E) 0x2908- f:00024 d: 264 | OR[264] = A
0x00C0 (0x000180) 0x2120- f:00020 d: 288 | A = OR[288]
0x00C1 (0x000182) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x00C2 (0x000184) 0x0400- f:00002 d: 0 | I = 0
0x00C3 (0x000186) 0x0000- f:00000 d: 0 | PASS
0x00C4 (0x000188) 0x2118- f:00020 d: 280 | A = OR[280]
0x00C5 (0x00018A) 0x1401- f:00012 d: 1 | A = A + 1 (0x0001)
0x00C6 (0x00018C) 0x2908- f:00024 d: 264 | OR[264] = A
0x00C7 (0x00018E) 0x1005- f:00010 d: 5 | A = 5 (0x0005)
0x00C8 (0x000190) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x00C9 (0x000192) 0x2118- f:00020 d: 280 | A = OR[280]
0x00CA (0x000194) 0x2896- f:00024 d: 150 | OR[150] = A
0x00CB (0x000196) 0x7E00-0x19E9 f:00077 d: 0 | R = OR[0]+6633 (0x19E9)
0x00CD (0x00019A) 0x7E00-0x19DD f:00077 d: 0 | R = OR[0]+6621 (0x19DD)
0x00CF (0x00019E) 0x2118- f:00020 d: 280 | A = OR[280]
0x00D0 (0x0001A0) 0x289C- f:00024 d: 156 | OR[156] = A
0x00D1 (0x0001A2) 0x7E00-0x2017 f:00077 d: 0 | R = OR[0]+8215 (0x2017)
0x00D3 (0x0001A6) 0x102A- f:00010 d: 42 | A = 42 (0x002A)
0x00D4 (0x0001A8) 0x2921- f:00024 d: 289 | OR[289] = A
0x00D5 (0x0001AA) 0x1121- f:00010 d: 289 | A = 289 (0x0121)
0x00D6 (0x0001AC) 0x5800- f:00054 d: 0 | B = A
0x00D7 (0x0001AE) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x00D8 (0x0001B0) 0x7C09- f:00076 d: 9 | R = OR[9]
0x00D9 (0x0001B2) 0x0000- f:00000 d: 0 | PASS
0x00DA (0x0001B4) 0x0000- f:00000 d: 0 | PASS
0x00DB (0x0001B6) 0x0000- f:00000 d: 0 | PASS
|
src/fot/DistributiveLaws/TaskB-TopDownATP.agda | asr/fotc | 11 | 11891 | <reponame>asr/fotc
------------------------------------------------------------------------------
-- Distributive laws on a binary operation: Task B
------------------------------------------------------------------------------
{-# OPTIONS --exact-split #-}
{-# OPTIONS --no-sized-types #-}
{-# OPTIONS --no-universe-polymorphism #-}
{-# OPTIONS --without-K #-}
module DistributiveLaws.TaskB-TopDownATP where
open import DistributiveLaws.Base
open import Common.FOL.Relation.Binary.EqReasoning
------------------------------------------------------------------------------
-- We found the longest chains of equalities from
-- DistributiveLaws.TaskB-I which are prove by the ATPs, following a
-- top-down approach.
prop₂ : ∀ u x y z → (x · y · (z · u)) ·
(( x · y · ( z · u)) · (x · z · (y · u))) ≡
x · z · (y · u)
prop₂ u x y z =
-- The numbering of the proof step justifications are associated with
-- the numbers used in DistributiveLaws.TaskB-I.
xy·zu · (xy·zu · xz·yu) ≡⟨ j₁₋₅ ⟩
xy·zu · (xz · xu·yu · (y·zu · xz·yu)) ≡⟨ j₅₋₉ ⟩
xy·zu · (xz · xyu · (yxz · yu)) ≡⟨ j₉₋₁₄ ⟩
xz · xyu · (yz · xyu) · (xz · xyu · (y·xu · z·yu)) ≡⟨ j₁₄₋₂₀ ⟩
xz · xyu · (y·xu · (y·yu · z·yu) · (z · xu·yu · (y·xu · z·yu))) ≡⟨ j₂₀₋₂₃ ⟩
xz · xyu · (y · xu·zu · (z · xu·yu · (y·xu · z·yu))) ≡⟨ j₂₃₋₂₅ ⟩
(xz · xyu) · (y · xu·zu · (z·xu · y·xu · z·yu)) ≡⟨ j₂₅₋₃₀ ⟩
xz · xyu · (y·zy · xzu) ≡⟨ j₃₀₋₃₅ ⟩
xz·yu ∎
where
-- Two variables abbreviations
xz = x · z
yu = y · u
yz = y · z
{-# ATP definitions xz yu yz #-}
-- Three variables abbreviations
xyu = x · y · u
xyz = x · y · z
xzu = x · z · u
yxz = y · x · z
{-# ATP definitions xyu xyz xzu yxz #-}
y·xu = y · (x · u)
y·yu = y · (y · u)
y·zu = y · (z · u)
y·zy = y · (z · y)
{-# ATP definitions y·xu y·yu y·zu y·zy #-}
z·xu = z · (x · u)
z·yu = z · (y · u)
{-# ATP definitions z·xu z·yu #-}
-- Four variables abbreviations
xu·yu = x · u · (y · u)
xu·zu = x · u · (z · u)
{-# ATP definitions xu·yu xu·zu #-}
xy·zu = x · y · (z · u)
{-# ATP definition xy·zu #-}
xz·yu = x · z · (y · u)
{-# ATP definition xz·yu #-}
-- Steps justifications
postulate j₁₋₅ : xy·zu · (xy·zu · xz·yu) ≡
xy·zu · (xz · xu·yu · (y·zu · xz·yu))
{-# ATP prove j₁₋₅ #-}
postulate j₅₋₉ : xy·zu · (xz · xu·yu · (y·zu · xz·yu)) ≡
xy·zu · (xz · xyu · (yxz · yu))
{-# ATP prove j₅₋₉ #-}
postulate j₉₋₁₄ : xy·zu · (xz · xyu · (yxz · yu)) ≡
xz · xyu · (yz · xyu) · (xz · xyu · (y·xu · z·yu))
{-# ATP prove j₉₋₁₄ #-}
postulate
j₁₄₋₂₀ : xz · xyu · (yz · xyu) · (xz · xyu · (y·xu · z·yu)) ≡
xz · xyu · (y·xu · (y·yu · z·yu) · (z · xu·yu · (y·xu · z·yu)))
{-# ATP prove j₁₄₋₂₀ #-}
postulate
j₂₀₋₂₃ : xz · xyu · (y·xu · (y·yu · z·yu) · (z · xu·yu · (y·xu · z·yu))) ≡
xz · xyu · (y · xu·zu · (z · xu·yu · (y·xu · z·yu)))
{-# ATP prove j₂₀₋₂₃ #-}
postulate j₂₃₋₂₅ : xz · xyu · (y · xu·zu · (z · xu·yu · (y·xu · z·yu))) ≡
(xz · xyu) · (y · xu·zu · (z·xu · y·xu · z·yu))
{-# ATP prove j₂₃₋₂₅ #-}
postulate j₂₅₋₃₀ : (xz · xyu) · (y · xu·zu · (z·xu · y·xu · z·yu)) ≡
xz · xyu · (y·zy · xzu)
{-# ATP prove j₂₅₋₃₀ #-}
postulate j₃₀₋₃₅ : xz · xyu · (y·zy · xzu) ≡ xz·yu
{-# ATP prove j₃₀₋₃₅ #-}
|
Transynther/x86/_processed/US/_zr_/i7-7700_9_0x48.log_21829_1083.asm | ljhsiun2/medusa | 9 | 14786 | .global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r15
push %r9
push %rax
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_normal_ht+0x1c702, %rsi
lea addresses_WT_ht+0x1df02, %rdi
cmp %r10, %r10
mov $24, %rcx
rep movsw
nop
nop
nop
nop
nop
add $27642, %r15
lea addresses_D_ht+0x5602, %rsi
lea addresses_WC_ht+0x6702, %rdi
nop
xor $32631, %r9
mov $123, %rcx
rep movsw
nop
nop
nop
nop
xor %r15, %r15
lea addresses_UC_ht+0x15e02, %r9
nop
nop
nop
and $63656, %rax
mov $0x6162636465666768, %r10
movq %r10, %xmm2
vmovups %ymm2, (%r9)
nop
sub %r15, %r15
lea addresses_UC_ht+0x15902, %r15
nop
nop
cmp %rsi, %rsi
and $0xffffffffffffffc0, %r15
vmovaps (%r15), %ymm4
vextracti128 $0, %ymm4, %xmm4
vpextrq $0, %xmm4, %rdi
nop
add $7554, %rax
lea addresses_WT_ht+0x154c2, %rsi
lea addresses_WT_ht+0x6702, %rdi
clflush (%rdi)
and %rdx, %rdx
mov $67, %rcx
rep movsl
add %rdi, %rdi
lea addresses_A_ht+0x10702, %r9
nop
nop
nop
nop
nop
add %r10, %r10
mov $0x6162636465666768, %r15
movq %r15, %xmm2
vmovups %ymm2, (%r9)
nop
sub $33854, %r15
lea addresses_UC_ht+0x18682, %rdx
nop
nop
nop
nop
and $41538, %r10
vmovups (%rdx), %ymm7
vextracti128 $0, %ymm7, %xmm7
vpextrq $0, %xmm7, %rcx
nop
nop
nop
xor $62528, %r15
lea addresses_WT_ht+0xbb2a, %rcx
nop
add $28950, %r10
movb (%rcx), %r15b
nop
nop
xor %rax, %rax
lea addresses_UC_ht+0x9902, %r9
nop
nop
nop
nop
xor $26843, %rsi
movb (%r9), %r10b
nop
nop
and %r10, %r10
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rax
pop %r9
pop %r15
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r12
push %r13
push %r14
push %r8
push %rbx
push %rsi
// Store
mov $0x674249000000052a, %rsi
nop
dec %r11
mov $0x5152535455565758, %rbx
movq %rbx, %xmm0
movups %xmm0, (%rsi)
nop
nop
cmp %r14, %r14
// Store
lea addresses_WT+0x1a4f8, %rsi
nop
nop
xor $31980, %r13
movw $0x5152, (%rsi)
nop
nop
nop
and $17662, %r13
// Load
lea addresses_WT+0x8802, %rbx
dec %r11
mov (%rbx), %si
nop
nop
nop
nop
sub $46031, %r12
// Faulty Load
lea addresses_US+0x7f02, %r12
nop
nop
nop
nop
add %rbx, %rbx
vmovups (%r12), %ymm1
vextracti128 $1, %ymm1, %xmm1
vpextrq $0, %xmm1, %r11
lea oracles, %r13
and $0xff, %r11
shlq $12, %r11
mov (%r13,%r11,1), %r11
pop %rsi
pop %rbx
pop %r8
pop %r14
pop %r13
pop %r12
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_US', 'AVXalign': False, 'congruent': 0, 'size': 16, 'same': True, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_NC', 'AVXalign': False, 'congruent': 2, 'size': 16, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WT', 'AVXalign': False, 'congruent': 1, 'size': 2, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WT', 'AVXalign': False, 'congruent': 7, 'size': 2, 'same': False, 'NT': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_US', 'AVXalign': False, 'congruent': 0, 'size': 32, 'same': True, 'NT': False}}
<gen_prepare_buffer>
{'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 10, 'same': True}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 11, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 7, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 10, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 8, 'size': 32, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'AVXalign': True, 'congruent': 7, 'size': 32, 'same': False, 'NT': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 6, 'same': True}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 8, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 11, 'size': 32, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 6, 'size': 32, 'same': True, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 2, 'size': 1, 'same': True, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 8, 'size': 1, 'same': False, 'NT': False}}
{'00': 21829}
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
*/
|
Build/Interpreters/Ozmoo/asm/zaddress.asm | polluks/Puddle-BuildTools | 38 | 11577 | ; z_address !byte 0,0,0
; z_address_temp !byte 0
!zone zaddress {
set_z_address
stx z_address + 2
sta z_address + 1
lda #$0
sta z_address
rts
dec_z_address
pha
dec z_address + 2
lda z_address + 2
cmp #$ff
bne +
dec z_address + 1
lda z_address + 1
cmp #$ff
bne +
dec z_address
+ pla
rts
set_z_himem_address
stx z_address + 2
sta z_address + 1
sty z_address
rts
skip_bytes_z_address
; skip <a> bytes
clc
adc z_address + 2
sta z_address + 2
bcc +
inc z_address + 1
bne +
inc z_address
+ rts
!ifdef DEBUG {
print_z_address
jsr dollar
lda z_address + 1 ; low
jsr print_byte_as_hex
lda z_address + 2 ; high
jsr print_byte_as_hex
jmp newline
}
get_z_address
; input:
; output: a,x
; side effects:
; used registers: a,x
ldx z_address + 2 ; low
lda z_address + 1 ; high
rts
get_z_himem_address
ldx z_address + 2
lda z_address + 1
ldy z_address
rts
read_next_byte
; input:
; output: a
; side effects: z_address
; used registers: a,x
sty z_address_temp
lda z_address
ldx z_address + 1
ldy z_address + 2
jsr read_byte_at_z_address
inc z_address + 2
bne +
inc z_address + 1
bne +
inc z_address
+ ldy z_address_temp
rts
set_z_paddress
; convert a/x to paddr in z_address
; input: a,x
; output:
; side effects: z_address
; used registers: a,x
; example: $031b -> $00, $0c, $6c (Z5)
sta z_address + 1
txa
asl
sta z_address + 2
rol z_address + 1
lda #$0
rol
!ifdef Z4PLUS {
asl z_address + 2
rol z_address + 1
rol
}
!ifdef Z8 {
asl z_address + 2
rol z_address + 1
rol
}
sta z_address
rts
write_next_byte
; input: value in a
; a,x,y are preserved
sta z_address_temp
!ifndef UNSAFE {
lda z_address
bne .write_outside_dynmem
lda z_address + 2
cmp dynmem_size
lda z_address + 1
sbc dynmem_size + 1
bcs .write_outside_dynmem
}
!ifdef TARGET_C128 {
txa
pha
tya
pha
lda z_address + 2
sta mem_temp
lda z_address + 1
clc
adc #>story_start_bank_1
sta mem_temp + 1
ldx #mem_temp
stx $02b9
ldx #$7f
ldy #0
lda z_address_temp
jsr $02af ; y has correct value already
pla
tay
pla
tax
lda z_address_temp
} else {
; not TARGET_C128
lda z_address + 2
sta .write_byte + 1
lda z_address + 1
clc
adc #>story_start
sta .write_byte + 2
lda z_address_temp
.write_byte
sta $8000 ; This address is modified above
}
inc z_address + 2
bne +
inc z_address + 1
bne +
inc z_address
+ rts
!ifndef UNSAFE {
.write_outside_dynmem
lda #ERROR_WRITE_ABOVE_DYNMEM
jsr fatalerror
}
} ; End zone zaddress
|
oeis/021/A021315.asm | neoneye/loda-programs | 11 | 21971 | ; A021315: Decimal expansion of 1/311.
; Submitted by <NAME>(s2.)
; 0,0,3,2,1,5,4,3,4,0,8,3,6,0,1,2,8,6,1,7,3,6,3,3,4,4,0,5,1,4,4,6,9,4,5,3,3,7,6,2,0,5,7,8,7,7,8,1,3,5,0,4,8,2,3,1,5,1,1,2,5,4,0,1,9,2,9,2,6,0,4,5,0,1,6,0,7,7,1,7,0,4,1,8,0,0,6,4,3,0,8,6,8,1,6,7,2,0,2
seq $0,173833 ; 10^n - 3.
add $0,1
div $0,311
mod $0,10
|
libsrc/_DEVELOPMENT/stdio/c/sdcc_iy/fclose_unlocked.asm | jpoikela/z88dk | 640 | 83529 | <reponame>jpoikela/z88dk
; int fclose_unlocked(FILE *stream)
SECTION code_clib
SECTION code_stdio
PUBLIC _fclose_unlocked
EXTERN asm_fclose_unlocked
_fclose_unlocked:
pop af
pop ix
push hl
push af
jp asm_fclose_unlocked
|
src/main/java/antlr/MiniJava.g4 | Mortaza-Seydi/Mini-Java-Compiler | 2 | 6524 | grammar MiniJava;
minijava : (classDeclaration)* EOF ;
classDeclaration : CLASS Id '{' (methodDeclaration | fieldDeclaration)* '}' ;
fieldDeclaration : declarators Id ('=' expression)?';' ;
methodDeclaration : declarators Id '(' parameterList? ')' '{' statement* (RETURN expression ';')? '}' ;
declarators : (PUBLIC | PRIVATE)? STATIC? type ;
type : primType | classType | arrType ;
primType : INT | BOOLEAN | VOID ;
classType : Id ;
arrType : ( INT | classType ) '['']' ;
parameterList : type Id (',' type Id)* ;
argumentList : expression (',' expression)* ;
reference : ( THIS | Id ) ( '.' Id )* ;
ifStatement : If '(' expression ')' ifBody ;
ifBody : statement elseStatement? ;
elseStatement : ELSE statement ;
whileStatement : While '(' expression ')' whileBody ;
whileBody : statement ;
varDeclaration : type Id ('=' expression)? ';' ;
goExp : reference '=' expression ';' ;
statement : '{' statement* '}'
| varDeclaration | ifStatement | whileStatement | goExp
| reference '[' expression ']' '=' expression ';'
| reference '(' argumentList? ')' ';' ;
expression : reference
| reference '[' expression ']'
| reference '(' argumentList? ')'
| urey expression
| expression arthmetic expression
| expression bool expression
| '(' expression ')'
| Number | TRUE | FALSE | String
| NEW ( Id '(' ')' | INT '[' expression ']'| Id '[' expression ']' ) ;
arthmetic : Mul | Divide | Plus | Minus;
urey : Plus | Minus | Not ;
bool : AND | OR | Equal | Great | GAndE | Small | SAndE | NotEqual ;
//--------------------------------------------------------
If : 'if' ;
ELSE : 'else' ;
THIS : 'this' ;
CLASS : 'class' ;
RETURN : 'return' ;
While : 'while' ;
FOR : 'for' ;
DO : 'do' ;
PUBLIC : 'public' ;
PRIVATE : 'private' ;
STATIC : 'static' ;
INT : 'int' ;
VOID : 'void' ;
BOOLEAN : 'boolean' ;
FALSE : 'false' ;
TRUE : 'true' ;
NEW : 'new' ;
//--------------------------------------------------------
Semicolon : ';' ;
Point : '.' ;
OpenACC : '{' ;
CloseAcc : '}' ;
OpenPar : '(' ;
ClosePar : ')' ;
OpenBar : '[' ;
CloseBar : ']' ;
Comma : ',' ;
Mul : '*' ;
Divide : '/' ;
Plus : '+' ;
Minus : '-' ;
Equal : '==' ;
Assign : '=' ;
Great : '>' ;
GAndE : '>=' ;
Small : '<' ;
SAndE : '<=' ;
NotEqual : '!=' ;
Not : '!' ;
AND : '&&' ;
OR : '||' ;
//--------------------------------------------------------
ERROR : Digit+ (Letter)+ ;
//--------------------------------------------------------
Id : Letter ( Letter | Digit )* ;
Number : Digit+ ;
String : '"' .*? '"' ;
Ws : [ \t\r\n]+ -> skip ;
Comment : '/*' .*? '*/' -> skip ;
LineComment : '//' .*? '\n' -> skip ;
//--------------------------------------------------------
fragment Letter : [a-zA-Z] ;
fragment Digit : [0-9] ; |
Data/Sigma/Base.agda | oisdk/agda-playground | 6 | 3742 | <reponame>oisdk/agda-playground<gh_stars>1-10
{-# OPTIONS --without-K --safe #-}
module Data.Sigma.Base where
open import Agda.Builtin.Sigma
using (Σ; _,_; fst; snd)
public
open import Level
infixr 4.5 ∃-syntax
∃-syntax : ∀ {a b} {A : Type a} (B : A → Type b) → Type (a ℓ⊔ b)
∃-syntax {A = A} = Σ A
syntax ∃-syntax (λ x → e) = ∃ x × e
infixr 4.5 Σ⦂-syntax
Σ⦂-syntax : (A : Type a) (B : A → Type b) → Type (a ℓ⊔ b)
Σ⦂-syntax = Σ
syntax Σ⦂-syntax t (λ x → e) = Σ[ x ⦂ t ] × e
infixr 4.5 _×_
_×_ : (A : Type a) → (B : Type b) → Type (a ℓ⊔ b)
A × B = Σ A λ _ → B
curry : ∀ {A : Type a} {B : A → Type b} {C : Σ A B → Type c} →
((p : Σ A B) → C p) →
((x : A) → (y : B x) → C (x , y))
curry f x y = f (x , y)
{-# INLINE curry #-}
uncurry : ∀ {A : Type a} {B : A → Type b} {C : Σ A B → Type c} →
((x : A) → (y : B x) → C (x , y)) →
((p : Σ A B) → C p)
uncurry f (x , y) = f x y
{-# INLINE uncurry #-}
map-Σ : ∀ {p q} {P : A → Set p} {Q : B → Set q} →
(f : A → B) → (∀ {x} → P x → Q (f x)) →
Σ A P → Σ B Q
map-Σ f g (x , y) = f x , g y
{-# INLINE map-Σ #-}
map₁ : (A → B) → A × C → B × C
map₁ f = map-Σ f (λ x → x)
{-# INLINE map₁ #-}
map₁-Σ : ∀ {A : Set a} {B : Set b} {C : B → Set b}
→ (f : A → B) → Σ A (λ x → C (f x)) → Σ B C
map₁-Σ f (x , y) = f x , y
{-# INLINE map₁-Σ #-}
map₂ : ∀ {A : Set a} {B : A → Set b} {C : A → Set c} →
(∀ {x} → B x → C x) → Σ A B → Σ A C
map₂ f = map-Σ (λ x → x) f
{-# INLINE map₂ #-}
|
Transynther/x86/_processed/NONE/_xt_sm_/i7-8650U_0xd2_notsx.log_1004_464.asm | ljhsiun2/medusa | 9 | 91376 | .global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r9
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_WT_ht+0x1459, %rsi
lea addresses_WC_ht+0xc959, %rdi
clflush (%rsi)
and %r12, %r12
mov $79, %rcx
rep movsl
nop
inc %rbx
lea addresses_UC_ht+0x4439, %rbp
nop
xor %r12, %r12
mov $0x6162636465666768, %rbx
movq %rbx, (%rbp)
nop
nop
cmp %r12, %r12
lea addresses_A_ht+0xa759, %rdi
nop
nop
nop
nop
cmp %r9, %r9
movl $0x61626364, (%rdi)
nop
nop
nop
nop
nop
add $6761, %rcx
lea addresses_WC_ht+0x1c959, %rbx
nop
nop
nop
nop
nop
add $51676, %rdi
vmovups (%rbx), %ymm6
vextracti128 $1, %ymm6, %xmm6
vpextrq $0, %xmm6, %r9
nop
nop
nop
nop
sub %r9, %r9
lea addresses_WC_ht+0x9c99, %rsi
lea addresses_D_ht+0x10159, %rdi
clflush (%rdi)
nop
nop
nop
and %r12, %r12
mov $107, %rcx
rep movsw
nop
nop
nop
nop
nop
sub $41045, %r12
lea addresses_WC_ht+0x13959, %rbp
nop
xor $43207, %rdi
mov (%rbp), %r9
nop
sub $22490, %rsi
lea addresses_D_ht+0x6959, %rbx
xor $20849, %r9
mov $0x6162636465666768, %rcx
movq %rcx, %xmm6
movups %xmm6, (%rbx)
nop
nop
nop
nop
nop
add %rcx, %rcx
lea addresses_D_ht+0x11339, %rsi
lea addresses_normal_ht+0x1d259, %rdi
clflush (%rsi)
nop
nop
nop
nop
nop
sub %r11, %r11
mov $101, %rcx
rep movsw
nop
nop
nop
nop
nop
inc %r12
lea addresses_WC_ht+0x146f5, %r12
cmp %rbp, %rbp
movups (%r12), %xmm5
vpextrq $0, %xmm5, %rbx
and %rbx, %rbx
lea addresses_D_ht+0x16b81, %rsi
lea addresses_A_ht+0x17d59, %rdi
nop
nop
nop
xor $46666, %rbp
mov $1, %rcx
rep movsq
nop
nop
nop
nop
and %rsi, %rsi
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %rbp
pop %r9
pop %r12
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r12
push %r13
push %r15
push %rbx
push %rcx
push %rsi
// Store
lea addresses_WC+0x16959, %r13
cmp %r12, %r12
mov $0x5152535455565758, %rcx
movq %rcx, %xmm3
movups %xmm3, (%r13)
and %r12, %r12
// Store
lea addresses_WT+0x8b59, %rcx
inc %rsi
mov $0x5152535455565758, %rbx
movq %rbx, (%rcx)
nop
nop
sub $43417, %rbx
// Store
lea addresses_WC+0x17959, %rcx
nop
nop
nop
nop
add $59828, %rsi
movw $0x5152, (%rcx)
nop
cmp $3686, %rsi
// Faulty Load
lea addresses_WC+0x17959, %rsi
nop
nop
nop
nop
sub $45776, %r10
movb (%rsi), %r13b
lea oracles, %rcx
and $0xff, %r13
shlq $12, %r13
mov (%rcx,%r13,1), %r13
pop %rsi
pop %rcx
pop %rbx
pop %r15
pop %r13
pop %r12
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_WC', 'size': 4, 'AVXalign': True, 'NT': False, 'congruent': 0, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WC', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 10, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WT', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 9, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WC', 'size': 2, 'AVXalign': True, 'NT': False, 'congruent': 0, 'same': True}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_WC', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}}
<gen_prepare_buffer>
{'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 8, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 11, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 5, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 9, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 6, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 6, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 11, 'same': True}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 10, 'same': True}}
{'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 11, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 4, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 8, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 1, 'same': True}}
{'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 1, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 2, 'same': False}}
{'52': 1004}
52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52
*/
|
alloy4fun_models/trashltl/models/11/6NL926bZNuAYjac6Z.als | Kaixi26/org.alloytools.alloy | 0 | 2532 | open main
pred id6NL926bZNuAYjac6Z_prop12 {
always all f: File | f in Trash until f not in Trash
}
pred __repair { id6NL926bZNuAYjac6Z_prop12 }
check __repair { id6NL926bZNuAYjac6Z_prop12 <=> prop12o } |
awa/plugins/awa-workspaces/src/model/awa-workspaces-models.adb | Letractively/ada-awa | 0 | 29932 | -----------------------------------------------------------------------
-- AWA.Workspaces.Models -- AWA.Workspaces.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) 2013 <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 AWA.Workspaces.Models is
use type ADO.Objects.Object_Record_Access;
use type ADO.Objects.Object_Ref;
use type ADO.Objects.Object_Record;
function Workspace_Key (Id : in ADO.Identifier) return ADO.Objects.Object_Key is
Result : ADO.Objects.Object_Key (Of_Type => ADO.Objects.KEY_INTEGER,
Of_Class => WORKSPACE_DEF'Access);
begin
ADO.Objects.Set_Value (Result, Id);
return Result;
end Workspace_Key;
function Workspace_Key (Id : in String) return ADO.Objects.Object_Key is
Result : ADO.Objects.Object_Key (Of_Type => ADO.Objects.KEY_INTEGER,
Of_Class => WORKSPACE_DEF'Access);
begin
ADO.Objects.Set_Value (Result, Id);
return Result;
end Workspace_Key;
function "=" (Left, Right : Workspace_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 Workspace_Ref'Class;
Impl : out Workspace_Access) is
Result : ADO.Objects.Object_Record_Access;
begin
Object.Prepare_Modify (Result);
Impl := Workspace_Impl (Result.all)'Access;
end Set_Field;
-- Internal method to allocate the Object_Record instance
procedure Allocate (Object : in out Workspace_Ref) is
Impl : Workspace_Access;
begin
Impl := new Workspace_Impl;
Impl.Version := 0;
Impl.Create_Date := ADO.DEFAULT_TIME;
ADO.Objects.Set_Object (Object, Impl.all'Access);
end Allocate;
-- ----------------------------------------
-- Data object: Workspace
-- ----------------------------------------
procedure Set_Id (Object : in out Workspace_Ref;
Value : in ADO.Identifier) is
Impl : Workspace_Access;
begin
Set_Field (Object, Impl);
ADO.Objects.Set_Field_Key_Value (Impl.all, 1, Value);
end Set_Id;
function Get_Id (Object : in Workspace_Ref)
return ADO.Identifier is
Impl : constant Workspace_Access
:= Workspace_Impl (Object.Get_Object.all)'Access;
begin
return Impl.Get_Key_Value;
end Get_Id;
function Get_Version (Object : in Workspace_Ref)
return Integer is
Impl : constant Workspace_Access
:= Workspace_Impl (Object.Get_Load_Object.all)'Access;
begin
return Impl.Version;
end Get_Version;
procedure Set_Create_Date (Object : in out Workspace_Ref;
Value : in Ada.Calendar.Time) is
Impl : Workspace_Access;
begin
Set_Field (Object, Impl);
ADO.Objects.Set_Field_Time (Impl.all, 3, Impl.Create_Date, Value);
end Set_Create_Date;
function Get_Create_Date (Object : in Workspace_Ref)
return Ada.Calendar.Time is
Impl : constant Workspace_Access
:= Workspace_Impl (Object.Get_Load_Object.all)'Access;
begin
return Impl.Create_Date;
end Get_Create_Date;
procedure Set_Owner (Object : in out Workspace_Ref;
Value : in AWA.Users.Models.User_Ref'Class) is
Impl : Workspace_Access;
begin
Set_Field (Object, Impl);
ADO.Objects.Set_Field_Object (Impl.all, 4, Impl.Owner, Value);
end Set_Owner;
function Get_Owner (Object : in Workspace_Ref)
return AWA.Users.Models.User_Ref'Class is
Impl : constant Workspace_Access
:= Workspace_Impl (Object.Get_Load_Object.all)'Access;
begin
return Impl.Owner;
end Get_Owner;
-- Copy of the object.
procedure Copy (Object : in Workspace_Ref;
Into : in out Workspace_Ref) is
Result : Workspace_Ref;
begin
if not Object.Is_Null then
declare
Impl : constant Workspace_Access
:= Workspace_Impl (Object.Get_Load_Object.all)'Access;
Copy : constant Workspace_Access
:= new Workspace_Impl;
begin
ADO.Objects.Set_Object (Result, Copy.all'Access);
Copy.Copy (Impl.all);
Copy.Version := Impl.Version;
Copy.Create_Date := Impl.Create_Date;
Copy.Owner := Impl.Owner;
end;
end if;
Into := Result;
end Copy;
procedure Find (Object : in out Workspace_Ref;
Session : in out ADO.Sessions.Session'Class;
Query : in ADO.SQL.Query'Class;
Found : out Boolean) is
Impl : constant Workspace_Access := new Workspace_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 Workspace_Ref;
Session : in out ADO.Sessions.Session'Class;
Id : in ADO.Identifier) is
Impl : constant Workspace_Access := new Workspace_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 Workspace_Ref;
Session : in out ADO.Sessions.Session'Class;
Id : in ADO.Identifier;
Found : out Boolean) is
Impl : constant Workspace_Access := new Workspace_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 Workspace_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 Workspace_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 Workspace_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 Workspace_Impl) is
type Workspace_Impl_Ptr is access all Workspace_Impl;
procedure Unchecked_Free is new Ada.Unchecked_Deallocation
(Workspace_Impl, Workspace_Impl_Ptr);
pragma Warnings (Off, "*redundant conversion*");
Ptr : Workspace_Impl_Ptr := Workspace_Impl (Object.all)'Access;
pragma Warnings (On, "*redundant conversion*");
begin
Unchecked_Free (Ptr);
end Destroy;
procedure Find (Object : in out Workspace_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, WORKSPACE_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 Workspace_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 Workspace_Impl;
Session : in out ADO.Sessions.Master_Session'Class) is
Stmt : ADO.Statements.Update_Statement
:= Session.Create_Statement (WORKSPACE_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 (3) then
Stmt.Save_Field (Name => COL_2_1_NAME, -- create_date
Value => Object.Create_Date);
Object.Clear_Modified (3);
end if;
if Object.Is_Modified (4) then
Stmt.Save_Field (Name => COL_3_1_NAME, -- owner_id
Value => Object.Owner);
Object.Clear_Modified (4);
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 Workspace_Impl;
Session : in out ADO.Sessions.Master_Session'Class) is
Query : ADO.Statements.Insert_Statement
:= Session.Create_Statement (WORKSPACE_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, -- version
Value => Object.Version);
Query.Save_Field (Name => COL_2_1_NAME, -- create_date
Value => Object.Create_Date);
Query.Save_Field (Name => COL_3_1_NAME, -- owner_id
Value => Object.Owner);
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 Workspace_Impl;
Session : in out ADO.Sessions.Master_Session'Class) is
Stmt : ADO.Statements.Delete_Statement
:= Session.Create_Statement (WORKSPACE_DEF'Access);
begin
Stmt.Set_Filter (Filter => "id = ?");
Stmt.Add_Param (Value => Object.Get_Key);
Stmt.Execute;
end Delete;
function Get_Value (From : in Workspace_Ref;
Name : in String) return Util.Beans.Objects.Object is
Obj : constant ADO.Objects.Object_Record_Access := From.Get_Load_Object;
Impl : access Workspace_Impl;
begin
if Obj = null then
return Util.Beans.Objects.Null_Object;
end if;
Impl := Workspace_Impl (Obj.all)'Access;
if Name = "id" then
return ADO.Objects.To_Object (Impl.Get_Key);
elsif Name = "create_date" then
return Util.Beans.Objects.Time.To_Object (Impl.Create_Date);
end if;
return Util.Beans.Objects.Null_Object;
end Get_Value;
-- ------------------------------
-- Load the object from current iterator position
-- ------------------------------
procedure Load (Object : in out Workspace_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.Create_Date := Stmt.Get_Time (2);
if not Stmt.Is_Null (3) then
Object.Owner.Set_Key_Value (Stmt.Get_Identifier (3), Session);
end if;
Object.Version := Stmt.Get_Integer (1);
ADO.Objects.Set_Created (Object);
end Load;
function Workspace_Feature_Key (Id : in ADO.Identifier) return ADO.Objects.Object_Key is
Result : ADO.Objects.Object_Key (Of_Type => ADO.Objects.KEY_INTEGER,
Of_Class => WORKSPACE_FEATURE_DEF'Access);
begin
ADO.Objects.Set_Value (Result, Id);
return Result;
end Workspace_Feature_Key;
function Workspace_Feature_Key (Id : in String) return ADO.Objects.Object_Key is
Result : ADO.Objects.Object_Key (Of_Type => ADO.Objects.KEY_INTEGER,
Of_Class => WORKSPACE_FEATURE_DEF'Access);
begin
ADO.Objects.Set_Value (Result, Id);
return Result;
end Workspace_Feature_Key;
function "=" (Left, Right : Workspace_Feature_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 Workspace_Feature_Ref'Class;
Impl : out Workspace_Feature_Access) is
Result : ADO.Objects.Object_Record_Access;
begin
Object.Prepare_Modify (Result);
Impl := Workspace_Feature_Impl (Result.all)'Access;
end Set_Field;
-- Internal method to allocate the Object_Record instance
procedure Allocate (Object : in out Workspace_Feature_Ref) is
Impl : Workspace_Feature_Access;
begin
Impl := new Workspace_Feature_Impl;
Impl.Limit := 0;
ADO.Objects.Set_Object (Object, Impl.all'Access);
end Allocate;
-- ----------------------------------------
-- Data object: Workspace_Feature
-- ----------------------------------------
procedure Set_Id (Object : in out Workspace_Feature_Ref;
Value : in ADO.Identifier) is
Impl : Workspace_Feature_Access;
begin
Set_Field (Object, Impl);
ADO.Objects.Set_Field_Key_Value (Impl.all, 1, Value);
end Set_Id;
function Get_Id (Object : in Workspace_Feature_Ref)
return ADO.Identifier is
Impl : constant Workspace_Feature_Access
:= Workspace_Feature_Impl (Object.Get_Object.all)'Access;
begin
return Impl.Get_Key_Value;
end Get_Id;
procedure Set_Limit (Object : in out Workspace_Feature_Ref;
Value : in Integer) is
Impl : Workspace_Feature_Access;
begin
Set_Field (Object, Impl);
ADO.Objects.Set_Field_Integer (Impl.all, 2, Impl.Limit, Value);
end Set_Limit;
function Get_Limit (Object : in Workspace_Feature_Ref)
return Integer is
Impl : constant Workspace_Feature_Access
:= Workspace_Feature_Impl (Object.Get_Load_Object.all)'Access;
begin
return Impl.Limit;
end Get_Limit;
procedure Set_Workspace (Object : in out Workspace_Feature_Ref;
Value : in AWA.Workspaces.Models.Workspace_Ref'Class) is
Impl : Workspace_Feature_Access;
begin
Set_Field (Object, Impl);
ADO.Objects.Set_Field_Object (Impl.all, 3, Impl.Workspace, Value);
end Set_Workspace;
function Get_Workspace (Object : in Workspace_Feature_Ref)
return AWA.Workspaces.Models.Workspace_Ref'Class is
Impl : constant Workspace_Feature_Access
:= Workspace_Feature_Impl (Object.Get_Load_Object.all)'Access;
begin
return Impl.Workspace;
end Get_Workspace;
-- Copy of the object.
procedure Copy (Object : in Workspace_Feature_Ref;
Into : in out Workspace_Feature_Ref) is
Result : Workspace_Feature_Ref;
begin
if not Object.Is_Null then
declare
Impl : constant Workspace_Feature_Access
:= Workspace_Feature_Impl (Object.Get_Load_Object.all)'Access;
Copy : constant Workspace_Feature_Access
:= new Workspace_Feature_Impl;
begin
ADO.Objects.Set_Object (Result, Copy.all'Access);
Copy.Copy (Impl.all);
Copy.Limit := Impl.Limit;
Copy.Workspace := Impl.Workspace;
end;
end if;
Into := Result;
end Copy;
procedure Find (Object : in out Workspace_Feature_Ref;
Session : in out ADO.Sessions.Session'Class;
Query : in ADO.SQL.Query'Class;
Found : out Boolean) is
Impl : constant Workspace_Feature_Access := new Workspace_Feature_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 Workspace_Feature_Ref;
Session : in out ADO.Sessions.Session'Class;
Id : in ADO.Identifier) is
Impl : constant Workspace_Feature_Access := new Workspace_Feature_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 Workspace_Feature_Ref;
Session : in out ADO.Sessions.Session'Class;
Id : in ADO.Identifier;
Found : out Boolean) is
Impl : constant Workspace_Feature_Access := new Workspace_Feature_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 Workspace_Feature_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 Workspace_Feature_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 Workspace_Feature_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 Workspace_Feature_Impl) is
type Workspace_Feature_Impl_Ptr is access all Workspace_Feature_Impl;
procedure Unchecked_Free is new Ada.Unchecked_Deallocation
(Workspace_Feature_Impl, Workspace_Feature_Impl_Ptr);
pragma Warnings (Off, "*redundant conversion*");
Ptr : Workspace_Feature_Impl_Ptr := Workspace_Feature_Impl (Object.all)'Access;
pragma Warnings (On, "*redundant conversion*");
begin
Unchecked_Free (Ptr);
end Destroy;
procedure Find (Object : in out Workspace_Feature_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, WORKSPACE_FEATURE_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 Workspace_Feature_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 Workspace_Feature_Impl;
Session : in out ADO.Sessions.Master_Session'Class) is
Stmt : ADO.Statements.Update_Statement
:= Session.Create_Statement (WORKSPACE_FEATURE_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, -- limit
Value => Object.Limit);
Object.Clear_Modified (2);
end if;
if Object.Is_Modified (3) then
Stmt.Save_Field (Name => COL_2_2_NAME, -- workspace_id
Value => Object.Workspace);
Object.Clear_Modified (3);
end if;
if Stmt.Has_Save_Fields then
Stmt.Set_Filter (Filter => "id = ?");
Stmt.Add_Param (Value => Object.Get_Key);
declare
Result : Integer;
begin
Stmt.Execute (Result);
if Result /= 1 then
if Result /= 0 then
raise ADO.Objects.UPDATE_ERROR;
end if;
end if;
end;
end if;
end Save;
procedure Create (Object : in out Workspace_Feature_Impl;
Session : in out ADO.Sessions.Master_Session'Class) is
Query : ADO.Statements.Insert_Statement
:= Session.Create_Statement (WORKSPACE_FEATURE_DEF'Access);
Result : Integer;
begin
Session.Allocate (Id => Object);
Query.Save_Field (Name => COL_0_2_NAME, -- id
Value => Object.Get_Key);
Query.Save_Field (Name => COL_1_2_NAME, -- limit
Value => Object.Limit);
Query.Save_Field (Name => COL_2_2_NAME, -- workspace_id
Value => Object.Workspace);
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 Workspace_Feature_Impl;
Session : in out ADO.Sessions.Master_Session'Class) is
Stmt : ADO.Statements.Delete_Statement
:= Session.Create_Statement (WORKSPACE_FEATURE_DEF'Access);
begin
Stmt.Set_Filter (Filter => "id = ?");
Stmt.Add_Param (Value => Object.Get_Key);
Stmt.Execute;
end Delete;
function Get_Value (From : in Workspace_Feature_Ref;
Name : in String) return Util.Beans.Objects.Object is
Obj : constant ADO.Objects.Object_Record_Access := From.Get_Load_Object;
Impl : access Workspace_Feature_Impl;
begin
if Obj = null then
return Util.Beans.Objects.Null_Object;
end if;
Impl := Workspace_Feature_Impl (Obj.all)'Access;
if Name = "id" then
return ADO.Objects.To_Object (Impl.Get_Key);
elsif Name = "limit" then
return Util.Beans.Objects.To_Object (Long_Long_Integer (Impl.Limit));
end if;
return Util.Beans.Objects.Null_Object;
end Get_Value;
-- ------------------------------
-- Load the object from current iterator position
-- ------------------------------
procedure Load (Object : in out Workspace_Feature_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.Limit := Stmt.Get_Integer (1);
if not Stmt.Is_Null (2) then
Object.Workspace.Set_Key_Value (Stmt.Get_Identifier (2), Session);
end if;
ADO.Objects.Set_Created (Object);
end Load;
function Workspace_Member_Key (Id : in ADO.Identifier) return ADO.Objects.Object_Key is
Result : ADO.Objects.Object_Key (Of_Type => ADO.Objects.KEY_INTEGER,
Of_Class => WORKSPACE_MEMBER_DEF'Access);
begin
ADO.Objects.Set_Value (Result, Id);
return Result;
end Workspace_Member_Key;
function Workspace_Member_Key (Id : in String) return ADO.Objects.Object_Key is
Result : ADO.Objects.Object_Key (Of_Type => ADO.Objects.KEY_INTEGER,
Of_Class => WORKSPACE_MEMBER_DEF'Access);
begin
ADO.Objects.Set_Value (Result, Id);
return Result;
end Workspace_Member_Key;
function "=" (Left, Right : Workspace_Member_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 Workspace_Member_Ref'Class;
Impl : out Workspace_Member_Access) is
Result : ADO.Objects.Object_Record_Access;
begin
Object.Prepare_Modify (Result);
Impl := Workspace_Member_Impl (Result.all)'Access;
end Set_Field;
-- Internal method to allocate the Object_Record instance
procedure Allocate (Object : in out Workspace_Member_Ref) is
Impl : Workspace_Member_Access;
begin
Impl := new Workspace_Member_Impl;
ADO.Objects.Set_Object (Object, Impl.all'Access);
end Allocate;
-- ----------------------------------------
-- Data object: Workspace_Member
-- ----------------------------------------
procedure Set_Id (Object : in out Workspace_Member_Ref;
Value : in ADO.Identifier) is
Impl : Workspace_Member_Access;
begin
Set_Field (Object, Impl);
ADO.Objects.Set_Field_Key_Value (Impl.all, 1, Value);
end Set_Id;
function Get_Id (Object : in Workspace_Member_Ref)
return ADO.Identifier is
Impl : constant Workspace_Member_Access
:= Workspace_Member_Impl (Object.Get_Object.all)'Access;
begin
return Impl.Get_Key_Value;
end Get_Id;
procedure Set_Member (Object : in out Workspace_Member_Ref;
Value : in AWA.Users.Models.User_Ref'Class) is
Impl : Workspace_Member_Access;
begin
Set_Field (Object, Impl);
ADO.Objects.Set_Field_Object (Impl.all, 2, Impl.Member, Value);
end Set_Member;
function Get_Member (Object : in Workspace_Member_Ref)
return AWA.Users.Models.User_Ref'Class is
Impl : constant Workspace_Member_Access
:= Workspace_Member_Impl (Object.Get_Load_Object.all)'Access;
begin
return Impl.Member;
end Get_Member;
procedure Set_Workspace (Object : in out Workspace_Member_Ref;
Value : in AWA.Workspaces.Models.Workspace_Ref'Class) is
Impl : Workspace_Member_Access;
begin
Set_Field (Object, Impl);
ADO.Objects.Set_Field_Object (Impl.all, 3, Impl.Workspace, Value);
end Set_Workspace;
function Get_Workspace (Object : in Workspace_Member_Ref)
return AWA.Workspaces.Models.Workspace_Ref'Class is
Impl : constant Workspace_Member_Access
:= Workspace_Member_Impl (Object.Get_Load_Object.all)'Access;
begin
return Impl.Workspace;
end Get_Workspace;
-- Copy of the object.
procedure Copy (Object : in Workspace_Member_Ref;
Into : in out Workspace_Member_Ref) is
Result : Workspace_Member_Ref;
begin
if not Object.Is_Null then
declare
Impl : constant Workspace_Member_Access
:= Workspace_Member_Impl (Object.Get_Load_Object.all)'Access;
Copy : constant Workspace_Member_Access
:= new Workspace_Member_Impl;
begin
ADO.Objects.Set_Object (Result, Copy.all'Access);
Copy.Copy (Impl.all);
Copy.Member := Impl.Member;
Copy.Workspace := Impl.Workspace;
end;
end if;
Into := Result;
end Copy;
procedure Find (Object : in out Workspace_Member_Ref;
Session : in out ADO.Sessions.Session'Class;
Query : in ADO.SQL.Query'Class;
Found : out Boolean) is
Impl : constant Workspace_Member_Access := new Workspace_Member_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 Workspace_Member_Ref;
Session : in out ADO.Sessions.Session'Class;
Id : in ADO.Identifier) is
Impl : constant Workspace_Member_Access := new Workspace_Member_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 Workspace_Member_Ref;
Session : in out ADO.Sessions.Session'Class;
Id : in ADO.Identifier;
Found : out Boolean) is
Impl : constant Workspace_Member_Access := new Workspace_Member_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 Workspace_Member_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 Workspace_Member_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 Workspace_Member_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 Workspace_Member_Impl) is
type Workspace_Member_Impl_Ptr is access all Workspace_Member_Impl;
procedure Unchecked_Free is new Ada.Unchecked_Deallocation
(Workspace_Member_Impl, Workspace_Member_Impl_Ptr);
pragma Warnings (Off, "*redundant conversion*");
Ptr : Workspace_Member_Impl_Ptr := Workspace_Member_Impl (Object.all)'Access;
pragma Warnings (On, "*redundant conversion*");
begin
Unchecked_Free (Ptr);
end Destroy;
procedure Find (Object : in out Workspace_Member_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, WORKSPACE_MEMBER_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 Workspace_Member_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 Workspace_Member_Impl;
Session : in out ADO.Sessions.Master_Session'Class) is
Stmt : ADO.Statements.Update_Statement
:= Session.Create_Statement (WORKSPACE_MEMBER_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 (2) then
Stmt.Save_Field (Name => COL_1_3_NAME, -- member_id
Value => Object.Member);
Object.Clear_Modified (2);
end if;
if Object.Is_Modified (3) then
Stmt.Save_Field (Name => COL_2_3_NAME, -- workspace_id
Value => Object.Workspace);
Object.Clear_Modified (3);
end if;
if Stmt.Has_Save_Fields then
Stmt.Set_Filter (Filter => "id = ?");
Stmt.Add_Param (Value => Object.Get_Key);
declare
Result : Integer;
begin
Stmt.Execute (Result);
if Result /= 1 then
if Result /= 0 then
raise ADO.Objects.UPDATE_ERROR;
end if;
end if;
end;
end if;
end Save;
procedure Create (Object : in out Workspace_Member_Impl;
Session : in out ADO.Sessions.Master_Session'Class) is
Query : ADO.Statements.Insert_Statement
:= Session.Create_Statement (WORKSPACE_MEMBER_DEF'Access);
Result : Integer;
begin
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, -- member_id
Value => Object.Member);
Query.Save_Field (Name => COL_2_3_NAME, -- workspace_id
Value => Object.Workspace);
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 Workspace_Member_Impl;
Session : in out ADO.Sessions.Master_Session'Class) is
Stmt : ADO.Statements.Delete_Statement
:= Session.Create_Statement (WORKSPACE_MEMBER_DEF'Access);
begin
Stmt.Set_Filter (Filter => "id = ?");
Stmt.Add_Param (Value => Object.Get_Key);
Stmt.Execute;
end Delete;
function Get_Value (From : in Workspace_Member_Ref;
Name : in String) return Util.Beans.Objects.Object is
Obj : constant ADO.Objects.Object_Record_Access := From.Get_Load_Object;
Impl : access Workspace_Member_Impl;
begin
if Obj = null then
return Util.Beans.Objects.Null_Object;
end if;
Impl := Workspace_Member_Impl (Obj.all)'Access;
if Name = "id" then
return ADO.Objects.To_Object (Impl.Get_Key);
end if;
return Util.Beans.Objects.Null_Object;
end Get_Value;
-- ------------------------------
-- Load the object from current iterator position
-- ------------------------------
procedure Load (Object : in out Workspace_Member_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));
if not Stmt.Is_Null (1) then
Object.Member.Set_Key_Value (Stmt.Get_Identifier (1), Session);
end if;
if not Stmt.Is_Null (2) then
Object.Workspace.Set_Key_Value (Stmt.Get_Identifier (2), Session);
end if;
ADO.Objects.Set_Created (Object);
end Load;
end AWA.Workspaces.Models;
|
libsrc/osca/set_load_length.asm | grancier/z180 | 0 | 176090 | <gh_stars>0
;
; Old School Computer Architecture - interfacing FLOS
; <NAME>, 2012
;
; void set_load_length(unsigned long length);
;
; Forces the read length of the file transfer to a certain value (use after find file)
;
; Input Registers :
; IX:IY = Bytes to load
;
;
; $Id: set_load_length.asm,v 1.4 2016/06/22 22:13:09 dom Exp $
;
INCLUDE "flos.def"
SECTION code_clib
PUBLIC set_load_length
PUBLIC _set_load_length
set_load_length:
_set_load_length:
;__FASTCALL__
;pop hl ; sector ptr
;pop iy
;pop ix
;push ix
;push iy
;push hl
push ix ;save callers
push hl
pop iy
push de
pop ix
call kjt_set_load_length
pop ix ;restore callers
ret
|
8085 Microprocessor/Assignment 2/sol3b.asm | neeladripal/bcse-lab | 0 | 14873 | <reponame>neeladripal/bcse-lab
LXI H,2050H ; set up HL to point to first number in array
LDA 204FH ; store value of N in 204FH
MOV C,A ; place N in register C to use as counter
MOV B,M ; copy the first number in register B
INX H ; increment H to point to the address of second number
DCR C ; one operation complete, decrement counter
NXTBYTE: MOV A,M ; place number pointed to by HL pair in accumulator
CMP B ; compare contents of register B and accumulator
JNC NEXT ; check if carry flag is 1
MOV B,A ; if carry flag is 0, contents of register B is smaller, copy contents of B into accumulator
NEXT: INX H ; increment HL to point to next address
DCR C ; one operation complete, decrement counter
JNZ NXTBYTE ; jump to check the next number
MOV A,B ; copy the minimum number into accumulator
STA 2070H ; store the contents of accumulator in 2070H
HLT ; stop |
src/parser.asm | LessNick/CLi-for-WildCommander | 8 | 29626 | ;---------------------------------------
; Command line parser
;---------------------------------------
; In: de, command string addr
; hl, table of commands list
; Out:a,#ff = command not found
; a,#00 - command found, hl - addr params start
;startCode
; ld hl,table
; ld de,cmd_buffer
; call parser
parser call eat_space
ld (storeAddr),de
ld a,(de)
cp "#" ; first simbol comment
ret z
cp ";" ; first simbol comment
ret z
parse_start ld a,(de)
cp #00 ; space means end of buffer
jp z,end_of_command
cp " " ; space means end of command
jp z,end_of_command
cp "A"
jr c,parse_skip
cp "Z"
jr nc,parse_skip
add 32
parse_skip cp (hl) ; Compare a with first character in command table
jp nz,next_command ; Move HL to point to the first character of the next command in the table
inc de
inc hl
jr parse_start
next_command push af
ld a,"*"
cp (hl) ; Is it the end off command * ?
jp z,forward ; Yes inc HL 3 times to set to begining of next command in the table
ld a,#00 ; Table end reached ?
cp (hl)
jp z,no_match
pop af
inc hl
jp next_command
forward pop af
inc hl
inc hl
inc hl
ld de,(storeAddr)
jp parse_start
end_of_command call eat_space
ld a,(hl)
cp "*"
jr nz,no_match+1
inc hl ; increase to *
; Increase to point to jump vector for command
ld a,(hl)
inc hl
ld h,(hl)
ld l,a
ld (storeAddr),de
jp (hl) ; de - addr start params
no_match pop af
; Routine to print "Unkown command error"
ld a,#ff
ret
eat_space ld a,(de)
cp #00
ret z ; if reach to the end of buffer
cp #20 ; check for space
ret nz
inc de
jp eat_space
storeAddr dw #0000
|
_maps/obj24.asm | vladjester2020/Sonic1TMR | 0 | 25838 | <filename>_maps/obj24.asm
; ---------------------------------------------------------------------------
; Sprite mappings - explosion
; ---------------------------------------------------------------------------
dc.w byte_8EAE-Map_obj24, byte_8EB4-Map_obj24
dc.w byte_8EBA-Map_obj24, byte_8EC0-Map_obj24
byte_8EAE: dc.b 1
dc.b $F4, $A, 0, 0, $F4
byte_8EB4: dc.b 1
dc.b $F4, $A, 0, 9, $F4
byte_8EBA: dc.b 1
dc.b $F4, $A, 0, $12, $F4
byte_8EC0: dc.b 1
dc.b $F4, $A, 0, $1B, $F4
even |
dev/display/lcd/font-r3.asm | minblock/msdos | 0 | 6969 | ;/*
; * Microsoft Confidential
; * Copyright (C) Microsoft Corporation 1991
; * All Rights Reserved.
; */
CODE SEGMENT BYTE PUBLIC 'CODE'
ASSUME CS:CODE,DS:CODE
BEGIN: ORG 0
FNTHEAD:DB 0FFH,"FONT " ;FILE TAG
DB 8 DUP(0) ;RESERVED
DW 1 ;CNT OF POINTERS IN HEADER
DB 1 ;TYPE FOR INFO POINTER
DW OFFSET INFO,0 ;POINTER TO INFO IN FILE
INFO: DW 5 ;COUNT OF ENTRIES
CODE ENDS
END
|
get_two_numbers_and_multiply.asm | daniyalmarofi/assembly | 0 | 9173 | .ORIG x3000
JSR INPUT
ADD R3, R0, #0 ; copy Input to R3
JSR INPUT
ADD R4, R0, #0 ; copy Input to R4
JSR MULTIP
HALT
INPUT ADD R4, R7, #0
IN ; read a character from console (and store it in R0)
LD R1, O
ADD R0, R0, R1 ; R0=int(IN)
ADD R7, R4, #0 ; Copy back R4 to R7
RET
O .FILL #-48
MULTIP AND R5, R5, #0 ; empty R5
Loop ADD R5, R5, R3 ; R5=X+X
ADD R4, R4, #-1 ; R4=R4-1
BRp Loop
RET
.END |
src/asf-components-utils-beans.adb | Letractively/ada-asf | 0 | 12802 | <reponame>Letractively/ada-asf<gh_stars>0
-----------------------------------------------------------------------
-- components-utils-beans -- Bean component utility
-- Copyright (C) 2011 <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.
-----------------------------------------------------------------------
package body ASF.Components.Utils.Beans is
-- ------------------------------
-- Evaluate the <b>value</b> attribute and set it in the value expression
-- referred to by the <b>var</b> attribute.
-- ------------------------------
overriding
procedure Encode_Begin (UI : in UISetBean;
Context : in out ASF.Contexts.Faces.Faces_Context'Class) is
VE : constant EL.Expressions.Value_Expression := UI.Get_Value_Expression ("var");
begin
if VE.Is_Null then
UI.Log_Error ("Invalid value expression for 'var'");
return;
end if;
VE.Set_Value (Context => Context.Get_ELContext.all,
Value => UI.Get_Attribute (Context => Context, Name => "value"));
end Encode_Begin;
end ASF.Components.Utils.Beans;
|
oeis/264/A264450.asm | neoneye/loda-programs | 11 | 86329 | ; A264450: a(n) = n*(n + 11)*(n + 22)*(n + 33)*(n + 44)/120.
; Submitted by <NAME>(s1)
; 0,3519,8372,14805,23088,33516,46410,62118,81016,103509,130032,161051,197064,238602,286230,340548,402192,471835,550188,638001,736064,845208,966306,1100274,1248072,1410705,1589224,1784727,1998360,2231318,2484846,2760240,3058848,3382071
mov $1,$0
mov $2,4
lpb $2
add $1,11
mul $0,$1
sub $2,1
lpe
div $0,120
|
test/Fail/BadCon.agda | cruhland/agda | 1,989 | 11746 | <filename>test/Fail/BadCon.agda
module BadCon where
data D : Set where
d : D
data E : Set where
d : E
postulate
F : D -> Set
test : (x : D) -> F x
test = d
-- Bad error (unbound de Bruijn index):
-- the constructor d does not construct an element of F @0
-- when checking that the expression d has type (x : D) → F x
|
helloos/Kernel/kernel.library.debug.asm | kbu1564/HelloOS | 15 | 243466 | ; 숫자값을 hex 형태로 출력하는 함수
; void _print_hex32(int y, int x, DWORD register);
; push 출력할 Y좌표 값
; push 출력할 X좌표 값
; push 출력할 DWORD 크기의 데이터
_print_hex32:
push ebp
mov ebp, esp
pusha
mov esi, StrDumpData
mov dword [esi], 0x7830
; 0x 출력
mov ah, 0x04
; 색상값 셋팅
mov ecx, 8
mov edi, ebp
add edi, 11
.hex4bitLoop:
mov al, byte [edi]
;test ecx, 1
mov edx, ecx
and edx, 1
cmp edx, 1
; 최하위 1bit가 1이면 홀수 0이면 짝수
jne .hex4bit
dec edi
; 다음 메모리 값 검사
shl al, 4
.hex4bit:
shr al, 4
and al, 0x0F
; 상위 4bit and mask
add al, 0x30
; 0 ~ 9
cmp al, 0x3A
jb .hex4bitPrint
add al, 0x07
; 10 ~ 15
.hex4bitPrint:
mov byte [esi+2], al
add esi, 1
loop .hex4bitLoop
mov byte [esi+2], 0
push dword [ebp + 16]
push dword [ebp + 12]
push 0xFF0004
push StrDumpData
call _call_print
popa
mov esp, ebp
pop ebp
ret 12
; 특정 메모리 주소의 CX바이트 영역의 메모리 HEX 값을
; 덤프하는 함수
; push 출력할 Y좌표 값
; push 출력할 X좌표 값
; push 출력할 바이트 수
; push 출력할 메모리 주소
_print_byte_dump32:
push ebp
mov ebp, esp
pusha
mov esi, StrDumpData
xor edx, edx
xor ax, ax
mov edi, [ebp+8]
; init
mov ecx, [ebp+12]
shl ecx, 1
; ecx = ecx * 2
.for_loop:
cmp edx, ecx
je .for_end
; break for_loop
mov bl, byte [edi]
mov al, bl
; 1byte copy
mov bx, dx
and bx, 1
; 최하위 1bit가 1이면 홀수 0이면 짝수
cmp bx, 1
jne .hex4bit
inc edi
; 다음 메모리 값 검사
shl al, 4
.hex4bit:
shr al, 4
and al, 0x0F
; 상위 4bit and mask
mov bx, dx
and bx, 1
cmp bx, 1
je .hex1byteSpace
cmp dx, 0
jbe .hex1byteSpace
; di 값이 짝수라면 공백을 출력하지 않음
mov byte [esi], 0x20
; 공백 출력
add esi, 1
.hex1byteSpace:
cmp al, 10
jae .hex4bitAtoF
add al, 0x30
; 0 ~ 9
jmp .hex4bitPrint
.hex4bitAtoF:
add al, 0x37
; 10 ~ 15
.hex4bitPrint:
mov byte [esi], al
add esi, 1
inc dx
jmp .for_loop
.for_end:
mov byte [esi+2], 0
push dword [ebp + 20]
push dword [ebp + 16]
push 0xFF0004
push StrDumpData
call _call_print
popa
mov esp, ebp
pop ebp
ret 16
StrDumpData equ 0x5300
|
dv3/hd/ide/mformat.asm | olifink/smsqe | 0 | 13321 | ; DV3 IDE Format V300 1998 <NAME>
section dv3
xdef id_mformat
xref hd_fpart
xref hd_fchk
xref id_ident
xref dv3_slen
xref gu_achpp
xref gu_rchp
include 'dev8_keys_err'
include 'dev8_keys_qlwa'
include 'dev8_dv3_keys'
include 'dev8_dv3_hd_keys'
include 'dev8_dv3_hd_ide_keys'
include 'dev8_mac_assert'
;+++
; This formats an IDE disk
;
; d0 cr format type / error code
; d1 cr format dependent flag or zero / good sectors
; d2 r total sectors
; d7 c p drive ID / number
; a3 c p linkage block
; a4 c p drive definition
;
; status return standard
;---
id_mformat
imf.reg reg d3/d4/d5/a0/a1/a2/a5
movem.l imf.reg,-(sp)
jsr hdl_ckrdy(a3) ; check ready
blt.l imf_exit
jsr hdl_ckwp(a3)
tst.b ddf_wprot(a4) ; write protected?
bne.l imf_ro
jsr hd_fchk ; check OK to format
bne.l imf_exit
move.b #ddf.dd,ddf_density(a4) ; set density
move.b #2,ddf_slflag(a4) ; set sector length flag
jsr dv3_slen
jsr hd_fpart ; find partition
bne.s imf_exit
move.l d3,ddf_psoff(a4) ; set base of partition
cmp.l #qwa.pflg,d4 ; suitable format?
bne.s imf_fmtf ; ... no
jsr id_ident ; get the identity information
bne.s imf_fmtf
move.l d2,d4 ; partition size
blt.s imf_set
divu ddf_scyl(a4),d4 ; number of cylinders
move.w d4,d0 ; in a long word
move.l d0,ddf_atotal(a4)
beq.s imf_fmtf ; ... none
imf_set
move.w ddf_heads(a4),d2 ; number of heads
move.l ddf_atotal(a4),d1 ; number of cylinders (word in long word)
move.w ddf_strk(a4),d3 ; number of sectors
clr.l -(sp) ; no 4096 byte
clr.l -(sp) ; no 2048 byte
clr.l -(sp) ; no 1024 byte
move.l d3,-(sp) ; sectors per track
clr.l -(sp) ; no 256 byte
clr.l -(sp) ; no 128 byte
move.w d1,-(sp) ; cylinders
move.w d2,-(sp) ; heads
move.l sp,a0
jsr ddf_fselect(a4) ; select format
add.w #7*4,sp
bne.s imf_exit ; ... oops
moveq #ddf.full,d0 ; ... the only type of format we can do
sub.l a0,a0
jsr ddf_format(a4) ; so do it!
st ddf_slbl(a4) ; set slave block range
imf_exit
movem.l (sp)+,imf.reg
tst.l d0
rts
imf_ro
moveq #err.rdo,d0
bra.s imf_exit
imf_fmtf
moveq #err.fmtf,d0
bra.s imf_exit
end
|
src/regex-matchers.ads | skordal/ada-regex | 2 | 25149 | -- Ada regular expression library
-- (c) <NAME> 2020 <<EMAIL>>
-- Report bugs and issues on <https://github.com/skordal/ada-regex>
with Regex.Regular_Expressions; use Regex.Regular_Expressions;
package Regex.Matchers is
-- Checks if a string matches a regular expression:
function Matches (Input : in Regular_Expression; Query : in String; Match_Id : out Natural)
return Boolean;
-- Checks if a string matches a regular expression:
function Matches (Input : in Regular_Expression; Query : in String) return Boolean;
-- Gets the first part of a string that matches a regular expression:
function Get_Match (Input : in Regular_Expression; Query : in String; Complete_Match : out Boolean)
return String;
end Regex.Matchers;
|
src/qweyboard/qweyboard-languages.adb | kqr/qweyboard | 33 | 14769 | package body Qweyboard.Languages is
protected body User_Language is
function Decode (Released : Key_Sets.Set) return Unbounded_Wide_Wide_String is
Init : Unbounded_Wide_Wide_String;
Vowels : Unbounded_Wide_Wide_String;
Tail : Unbounded_Wide_Wide_String;
begin
-- As if by accident, the declaration order of Softkey in conjunction with
-- the implementation of Ordered_(Sets|Maps) means this iteration happens
-- in precisely the order we need it to...
for C in Virtual_Layer (Current_Layout, Released).Iterate loop
if Layer_Maps.Key (C) < MY then
Init := Init & Layer_maps.Element (C);
elsif Layer_Maps.Key (C) < RN then
Vowels := Vowels & Layer_maps.Element (C);
elsif Layer_Maps.Key (C) < MSHI then
Tail := Tail & Layer_maps.Element (C);
end if;
end loop;
return
Perform_Substitutions (Init, Substitutions (Left)) &
Perform_Substitutions (Vowels, Substitutions (Middle)) &
Perform_Substitutions (Tail, Substitutions (Right));
end Decode;
procedure Add_Key (Modifier : Softkey; Key : Softkey; Symbol : Wide_Wide_Character) is
begin
if not Current_Layout.Layers.Contains (Modifier) then
if Modifier /= NOKEY then
Current_Layout.Modifiers.Append (Modifier);
end if;
Current_Layout.Layers.Insert (Modifier, Layer_Maps.Empty_Map);
end if;
Layer_Maps.Include (Current_Layout.Layers (Modifier), Key, Symbol);
end Add_Key;
procedure Add_Substitution (Position : Substitution_Type; Pattern : Unbounded_Wide_Wide_String; Replacement : Unbounded_Wide_Wide_String) is
begin
Substitution_Maps.Include (Substitutions (Position), Pattern, Replacement);
end Add_Substitution;
function Virtual_Layer (Layout : Layout_Type; Pressed : Key_Sets.Set) return Layer_Maps.Map is
Final_Presses : Layer_Maps.Map;
Already_Handled : Key_Sets.Set;
procedure Handle_Modifier (Modifier : Softkey) is
Layer : Layer_Maps.Map := Mod_Layer (Layout, Modifier, Key_Sets.Difference (Pressed, Already_Handled));
begin
if not Layer.Is_Empty then
Already_Handled.Insert (Modifier);
end if;
for C in Layer.Iterate loop
Already_Handled.Insert (Layer_Maps.Key (C));
Final_Presses.Insert (Layer_Maps.Key (C), Layer_Maps.Element (C));
end loop;
end Handle_Modifier;
begin
for Modifier of Layout.Modifiers loop
Handle_Modifier (Modifier);
end loop;
Handle_Modifier (NOKEY);
return Final_Presses;
end Virtual_Layer;
function Mod_Layer (Layout : Layout_Type; Modifier : Softkey; Pressed : Key_Sets.Set) return Layer_Maps.Map is
Layer : Layer_Maps.Map;
begin
if Modifier = NOKEY or Pressed.Contains (Modifier) then
for Key of Pressed loop
if Layout.Layers (Modifier).Contains (Key) then
Layer.Insert (Key, Layout.Layers (Modifier) (Key));
end if;
end loop;
end if;
return Layer;
end Mod_Layer;
function Perform_Substitutions (Text : Unbounded_Wide_Wide_String; From : Substitution_Maps.Map) return Unbounded_Wide_Wide_String is
Ret : Unbounded_Wide_Wide_String := Text;
function Substitute_Slice (Low, High : Positive) return Boolean is
Pattern : Unbounded_Wide_Wide_String := Unbounded_Slice (Ret, Low, High);
begin
if From.Contains (Pattern) then
Replace_Slice (Ret, Low, High, From_Unbounded (From (Pattern)));
return True;
else
return False;
end if;
end Substitute_Slice;
Substitution_Performed : Boolean;
begin
-- This entire thing is a bit iffy because it's not at all clear in
-- which order substitutions should be performed. It seems from a
-- grammatic argument "obvious" that substitutions should be
-- performed iteratively, i.e. if one substitution results in a
-- pattern for another substitution, they should both be performed.
-- However, ensuring this happens in the correct order at all times
-- is not a trivial problem, and much analysis is required. I defer
-- this concern to a later time, and just pick an arbitrary order
-- (left to right, long to short) for the time being.
loop
Substitution_Performed := False;
for Low in 1 .. Length (Ret) loop
for High in reverse Low .. Length (Ret) loop
if Substitute_Slice (Low, High) then
Substitution_Performed := True;
end if;
end loop;
end loop;
exit when not Substitution_Performed;
end loop;
return Ret;
end Perform_Substitutions;
end User_Language;
begin
User_Language.Add_Key (NOKEY, LZ, 'Z');
User_Language.Add_Key (NOKEY, LF, 'F');
User_Language.Add_Key (NOKEY, LS, 'S');
User_Language.Add_Key (NOKEY, LP, 'P');
User_Language.Add_Key (NOKEY, LT, 'T');
User_Language.Add_Key (NOKEY, LC, 'C');
User_Language.Add_Key (NOKEY, LK, 'K');
User_Language.Add_Key (NOKEY, LJ, 'J');
User_Language.Add_Key (NOKEY, LR, 'R');
User_Language.Add_Key (NOKEY, LL, 'L');
User_Language.Add_Key (NOKEY, LI, 'I');
User_Language.Add_Key (NOKEY, LO, 'O');
User_Language.Add_Key (NOKEY, LE, 'E');
User_Language.Add_Key (NOKEY, LN, 'N');
User_Language.Add_Key (NOKEY, MAPO, ''');
User_Language.Add_Key (NOKEY, MU, 'U');
User_Language.Add_Key (NOKEY, MA, 'A');
User_Language.Add_Key (NOKEY, MY, 'Y');
User_Language.Add_Key (NOKEY, RO, 'O');
User_Language.Add_Key (NOKEY, RI, 'I');
User_Language.Add_Key (NOKEY, RE, 'E');
User_Language.Add_Key (NOKEY, RN, 'N');
User_Language.Add_Key (NOKEY, RK, 'K');
User_Language.Add_Key (NOKEY, RJ, 'J');
User_Language.Add_Key (NOKEY, RR, 'R');
User_Language.Add_Key (NOKEY, RL, 'L');
User_Language.Add_Key (NOKEY, RP, 'P');
User_Language.Add_Key (NOKEY, RT, 'T');
User_Language.Add_Key (NOKEY, RC, 'C');
User_Language.Add_Key (NOKEY, RF, 'F');
User_Language.Add_Key (NOKEY, RS, 'S');
User_Language.Add_Key (NOKEY, RZ, 'Z');
User_Language.Add_Key (LO, RI, 'A');
User_Language.Add_Key (LJ, LF, 'V');
User_Language.Add_Key (LJ, LP, 'B');
User_Language.Add_Key (LJ, LT, 'D');
User_Language.Add_Key (LJ, LC, 'G');
User_Language.Add_Key (LJ, LL, 'H');
User_Language.Add_Key (LJ, LN, 'W');
User_Language.Add_Key (RJ, RF, 'V');
User_Language.Add_Key (RJ, RN, 'W');
User_Language.Add_Key (RJ, RL, 'H');
User_Language.Add_Key (RJ, RP, 'B');
User_Language.Add_Key (RJ, RT, 'D');
User_Language.Add_Key (RJ, RC, 'G');
User_Language.Add_Key (LR, LL, 'V');
User_Language.Add_Key (LR, LN, 'M');
User_Language.Add_Key (RR, RN, 'M');
User_Language.Add_Key (RR, RL, 'V');
User_Language.Add_Key (LC, LF, 'Q');
User_Language.Add_Key (RC, RF, 'Q');
User_Language.Add_Key (LK, LZ, 'X');
User_Language.Add_Key (RK, RZ, 'X');
User_Language.Add_Key (MSHI, LS, '$');
User_Language.Add_Key (MSHI, LP, '%');
User_Language.Add_Key (MSHI, LT, '/');
User_Language.Add_Key (MSHI, LC, '(');
User_Language.Add_Key (MSHI, LK, '&');
User_Language.Add_Key (MSHI, LJ, '*');
User_Language.Add_Key (MSHI, LR, '+');
User_Language.Add_Key (MSHI, LI, '7');
User_Language.Add_Key (MSHI, LO, '4');
User_Language.Add_Key (MSHI, LE, '1');
User_Language.Add_Key (MSHI, MAPO, '8');
User_Language.Add_Key (MSHI, MU, '5');
User_Language.Add_Key (MSHI, MA, '2');
User_Language.Add_Key (MSHI, MY, '0');
User_Language.Add_Key (MSHI, RO, '9');
User_Language.Add_Key (MSHI, RI, '6');
User_Language.Add_Key (MSHI, RE, '3');
User_Language.Add_Key (MSHI, RK, '?');
User_Language.Add_Key (MSHI, RJ, '=');
User_Language.Add_Key (MSHI, RR, '-');
User_Language.Add_Key (MSHI, RP, '!');
User_Language.Add_Key (MSHI, RT, ';');
User_Language.Add_Key (MSHI, RC, ')');
User_Language.Add_Key (MSHI, RF, '"');
User_Language.Add_Key (MSHI, RS, ':');
User_Language.Add_Substitution (Left, To_Unbounded ("BN"), To_Unbounded ("BR"));
User_Language.Add_Substitution (Left, To_Unbounded ("GN"), To_Unbounded ("GR"));
User_Language.Add_Substitution (Left, To_Unbounded ("DN"), To_Unbounded ("DR"));
User_Language.Add_Substitution (Left, To_Unbounded ("VN"), To_Unbounded ("VR"));
User_Language.Add_Substitution (Left, To_Unbounded ("PK"), To_Unbounded ("PR"));
User_Language.Add_Substitution (Left, To_Unbounded ("TK"), To_Unbounded ("TR"));
User_Language.Add_Substitution (Left, To_Unbounded ("FK"), To_Unbounded ("FR"));
User_Language.Add_Substitution (Left, To_Unbounded ("CK"), To_Unbounded ("KR"));
User_Language.Add_Substitution (Left, To_Unbounded ("ZP"), To_Unbounded ("PS"));
User_Language.Add_Substitution (Left, To_Unbounded ("ZT"), To_Unbounded ("TS"));
User_Language.Add_Substitution (Left, To_Unbounded ("CW"), To_Unbounded ("QU"));
User_Language.Add_Substitution (Left, To_Unbounded ("DH"), To_Unbounded ("TH"));
User_Language.Add_Substitution (Left, To_Unbounded ("GH"), To_Unbounded ("CH"));
User_Language.Add_Substitution (Right, To_Unbounded ("SZ"), To_Unbounded ("STS"));
User_Language.Add_Substitution (Right, To_Unbounded ("YZ"), To_Unbounded ("YS"));
User_Language.Add_Substitution (Right, To_Unbounded ("NZ"), To_Unbounded ("NS"));
User_Language.Add_Substitution (Right, To_Unbounded ("DZ"), To_Unbounded ("DS"));
User_Language.Add_Substitution (Right, To_Unbounded ("MZ"), To_Unbounded ("MS"));
User_Language.Add_Substitution (Right, To_Unbounded ("TZ"), To_Unbounded ("TS"));
User_Language.Add_Substitution (Right, To_Unbounded ("SJ"), To_Unbounded ("SS"));
User_Language.Add_Substitution (Right, To_Unbounded ("CZ"), To_Unbounded ("CH"));
User_Language.Add_Substitution (Right, To_Unbounded ("CS"), To_Unbounded ("SH"));
User_Language.Add_Substitution (Right, To_Unbounded ("DZ"), To_Unbounded ("TH"));
User_Language.Add_Substitution (Right, To_Unbounded ("BF"), To_Unbounded ("BE"));
User_Language.Add_Substitution (Right, To_Unbounded ("CF"), To_Unbounded ("CE"));
User_Language.Add_Substitution (Right, To_Unbounded ("DF"), To_Unbounded ("DE"));
User_Language.Add_Substitution (Right, To_Unbounded ("FS"), To_Unbounded ("FE"));
User_Language.Add_Substitution (Right, To_Unbounded ("GF"), To_Unbounded ("GE"));
User_Language.Add_Substitution (Right, To_Unbounded ("KF"), To_Unbounded ("KE"));
User_Language.Add_Substitution (Right, To_Unbounded ("LF"), To_Unbounded ("LE"));
User_Language.Add_Substitution (Right, To_Unbounded ("MF"), To_Unbounded ("ME"));
User_Language.Add_Substitution (Right, To_Unbounded ("NF"), To_Unbounded ("NE"));
User_Language.Add_Substitution (Right, To_Unbounded ("PF"), To_Unbounded ("PE"));
User_Language.Add_Substitution (Right, To_Unbounded ("RF"), To_Unbounded ("RE"));
User_Language.Add_Substitution (Right, To_Unbounded ("SF"), To_Unbounded ("SE"));
User_Language.Add_Substitution (Right, To_Unbounded ("TF"), To_Unbounded ("TE"));
User_Language.Add_Substitution (Right, To_Unbounded ("VF"), To_Unbounded ("VE"));
User_Language.Add_Substitution (Right, To_Unbounded ("WF"), To_Unbounded ("WE"));
User_Language.Add_Substitution (Right, To_Unbounded ("XF"), To_Unbounded ("XE"));
User_Language.Add_Substitution (Right, To_Unbounded ("ZF"), To_Unbounded ("ZE"));
User_Language.Add_Substitution (Right, To_Unbounded ("KP"), To_Unbounded ("RP"));
User_Language.Add_Substitution (Right, To_Unbounded ("KC"), To_Unbounded ("CK"));
User_Language.Add_Substitution (Right, To_Unbounded ("GZ"), To_Unbounded ("GT"));
User_Language.Add_Substitution (Right, To_Unbounded ("PZ"), To_Unbounded ("PT"));
User_Language.Add_Substitution (Right, To_Unbounded ("FZ"), To_Unbounded ("FT"));
User_Language.Add_Substitution (Right, To_Unbounded ("NC"), To_Unbounded ("GN"));
User_Language.Add_Substitution (Right, To_Unbounded ("WD"), To_Unbounded ("ND"));
User_Language.Add_Substitution (Right, To_Unbounded ("MV"), To_Unbounded ("LM"));
User_Language.Add_Substitution (Right, To_Unbounded ("IWG"), To_Unbounded ("ING"));
end Qweyboard.Languages;
|
runtime/Swift/Tests/Antlr4Tests/LexerA.g4 | maximmenshikov/antlr4 | 11,811 | 5254 | lexer grammar LexerA;
A : 'a';
B : 'b';
C : 'c';
|
leia.asm | jeceljr/asm-z80 | 0 | 95521 | <reponame>jeceljr/asm-z80
primeiro EQU 4 ; 6 para modelo HUGE, 4 para COMPACT
segundo EQU 6 ; 8 para modelo HUGE, 6 para COMPACT
terceiro EQU 8 ; 10 para modelo HUGE, 8 para COMPACT
quarto EQU 10 ; 12 para modelo HUGE, 10 para COMPACT
;
;
; NAO ESQUECA DE TROCAR OS TIPOS DAS ROTINAS -> modelo HUGE : FAR
; modelo COMPACT : NEAR
;
;
__TEXT SEGMENT BYTE PUBLIC 'CODE'
ASSUME CS:__TEXT,DS:NOTHING
PUBLIC _INICIA,_ABRE,_CRIA,_LEIA,_ESCREVA,_FECHA
PUBLIC _ACABA,_RESET
_INICIA PROC NEAR
PUSH DS
PUSH ES
MOV AX,3524H
INT 21H
MOV AX,DATA1
MOV DS,AX
MOV AX,ES
MOV DS:[SALVA_ES],AX
MOV DS:[SALVA_BX],BX
XOR DX,DX
MOV AX,CODIGO
MOV DS,AX
MOV AX,2524H
INT 21H
POP ES
POP DS
RET
_INICIA ENDP
_ACABA PROC NEAR
PUSH DS
MOV AX,DATA1
MOV DS,AX
MOV DX,DS:[SALVA_BX]
MOV AX,DS:[SALVA_ES]
MOV DS,AX
MOV AX,2524H
INT 21H
POP DS
MOV AH,2
XOR BH,BH
MOV DX,1800H
INT 10H
RET
_ACABA ENDP
_RESET PROC NEAR
MOV AH,0DH
INT 21H
RET
_RESET ENDP
_ABRE PROC NEAR
PUSH BP
MOV BP,SP
PUSH DS
MOV DX,[BP+primeiro]
MOV AX,[BP+segundo]
MOV DS,AX
MOV AX,3D02H
INT 21H
JNC ABRE
NEG AX
ABRE:
POP DS
POP BP
RET
_ABRE ENDP
_CRIA PROC NEAR
PUSH BP
MOV BP,SP
PUSH DS
MOV CX,20H
MOV DX,[BP+primeiro]
MOV AX,[BP+segundo]
MOV DS,AX
MOV AH,3CH
INT 21H
JNC CRIA
NEG AX
CRIA:
POP DS
POP BP
RET
_CRIA ENDP
_LEIA PROC NEAR
PUSH BP
MOV BP,SP
PUSH DS
MOV BX,[BP+primeiro]
MOV DX,[BP+segundo]
MOV AX,[BP+terceiro]
MOV CX,[BP+quarto]
MOV DS,AX
MOV AH,3FH
INT 21H
JNC LEIA
NEG AX
LEIA:
POP DS
POP BP
RET
_LEIA ENDP
_ESCREVA PROC NEAR
PUSH BP
MOV BP,SP
PUSH DS
MOV BX,[BP+primeiro]
MOV DX,[BP+segundo]
MOV AX,[BP+terceiro]
MOV DS,AX
MOV CX,[BP+quarto]
MOV AH,40H
INT 21H
JNC ESCREVA
NEG AX
ESCREVA:
POP DS
POP BP
RET
_ESCREVA ENDP
_FECHA PROC NEAR
PUSH BP
MOV BP,SP
MOV BX,[BP+primeiro]
MOV AH,3EH
INT 21H
JC FECHA
XOR AX,AX
FECHA:
POP BP
RET
_FECHA ENDP
__TEXT ENDS
DATA1 SEGMENT PARA PUBLIC 'DATA'
SALVA_ES DW ?
SALVA_BX DW ?
DATA1 ENDS
CODIGO SEGMENT PARA PUBLIC 'CODE'
ASSUME NOTHING
INT_24 PROC FAR
MOV AL,3
IRET
INT_24 ENDP
CODIGO ENDS
END
|
src/firmware-tests/Platform/Lcd/AdcDummies.asm | pete-restall/Cluck2Sesame-Prototype | 1 | 87020 | <reponame>pete-restall/Cluck2Sesame-Prototype
#include "Platform.inc"
radix decimal
AdcDummies code
global initialiseAdc
global enableAdc
global disableAdc
initialiseAdc:
enableAdc:
disableAdc:
return
end
|
test/Succeed/simple.agda | shlevy/agda | 1,989 | 11740 | <gh_stars>1000+
{-# OPTIONS --allow-unsolved-metas #-}
module simple where
module Nat where
data Nat : Set where
zero : Nat
suc : Nat -> Nat
_+_ : Nat -> Nat -> Nat
zero + m = m
suc n + m = suc (n + m)
module N = Nat
z = N._+_ (N.suc N.zero) (N.suc N.zero)
zz = Nat._+_ (Nat.suc Nat.zero) (Nat.suc Nat.zero)
module List (A : Set) where
infixr 15 _::_ _++_
data List : Set where
nil : List
_::_ : A -> List -> List
_++_ : List -> List -> List
nil ++ ys = ys
(x :: xs) ++ ys = x :: (xs ++ ys)
module TestList where
open Nat
module ListNat = List Nat
open ListNat using (_++_; _::_; nil)
zzz = (zero :: nil) ++ (suc zero :: nil)
module EvenOdd where
mutual
data Even : Set where
evenZero : Even
evenSuc : Odd -> Even
data Odd : Set where
oddSuc : Even -> Odd
module Monad where
data Monad (m : Set -> Set) : Set1 where
monad : ({a : Set} -> a -> m a) ->
({a b : Set} -> m a -> (a -> m b) -> m b) ->
Monad m
return : {m : Set -> Set} -> {a : Set} -> Monad m -> a -> m a
return (monad ret _) x = ret x
module Stack where
abstract
data Stack (A : Set) : Set where
snil : Stack A
scons : A -> Stack A -> Stack A
module Ops where
abstract
empty : {A : Set} -> Stack A
empty = snil
push : {A : Set} -> A -> Stack A -> Stack A
push x s = scons x s
unit : {A : Set} -> A -> Stack A
unit x = push x empty
module TestStack where
open Stack using (Stack)
open Stack.Ops
open Nat
zzzz : Stack Nat
zzzz = push zero (unit (suc zero))
module TestIdentity where
postulate
A : Set
idA : A -> A
F : Set -> Set
H : (A B : Set) -> Set
id0 : (A : Set) -> A -> A
idH : {A : Set} -> A -> A
fa : F A
a : A
test1 = id0 (F A) fa
test2 = idH fa
test3 = id0 _ fa
test4 = idH {! foo bar !}
-- test5 = id id -- we can't do this (on purpose)!
id = \{A : Set}(x : A) -> x
test = id a
module prop where
postulate
_\/_ : Set -> Set -> Set
inl : {P Q : Set} -> P -> P \/ Q
inr : {P Q : Set} -> Q -> P \/ Q
orE : {P Q R : Set} -> P \/ Q -> (P -> R) -> (Q -> R) -> R
False : Set
_==>_ : Set -> Set -> Set
impI : {P Q : Set} -> (P -> Q) -> P ==> Q
impE : {P Q : Set} -> P ==> Q -> P -> Q
Not = \(P : Set) -> P ==> False
notnotEM = \(P : Set) ->
impI (\ (nEM : Not (P \/ Not P)) ->
impE nEM (
inr (
impI (\ p ->
impE nEM (inl p)
)
)
)
)
module Tests where
infix 5 _==_
postulate
_==_ : {A : Set} -> A -> A -> Set
refl : {A : Set} -> {x : A} -> x == x
open TestList.ListNat
open Nat
test1 : TestList.zzz == zero :: suc zero :: nil
test1 = refl
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.