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
_maps/obj25.asm
NatsumiFox/AMPS-Sonic-1-2005
2
172004
<reponame>NatsumiFox/AMPS-Sonic-1-2005 ; --------------------------------------------------------------------------- ; Sprite mappings - rings ; --------------------------------------------------------------------------- dc.w byte_9FA2-Map_obj25, byte_9FA8-Map_obj25 dc.w byte_9FAE-Map_obj25, byte_9FB4-Map_obj25 dc.w byte_9FBA-Map_obj25, byte_9FC0-Map_obj25 dc.w byte_9FC6-Map_obj25, byte_9FCC-Map_obj25 byte_9FA2: dc.b 1 dc.b $F8, 5, 0, 0, $F8 byte_9FA8: dc.b 1 dc.b $F8, 5, 0, 4, $F8 byte_9FAE: dc.b 1 dc.b $F8, 1, 0, 8, $FC byte_9FB4: dc.b 1 dc.b $F8, 5, 8, 4, $F8 byte_9FBA: dc.b 1 dc.b $F8, 5, 0, $A, $F8 byte_9FC0: dc.b 1 dc.b $F8, 5, $18, $A, $F8 byte_9FC6: dc.b 1 dc.b $F8, 5, 8, $A, $F8 byte_9FCC: dc.b 1 dc.b $F8, 5, $10, $A, $F8 even
alloy4fun_models/trashltl/models/10/MmxwXJbpoKps8wWMi.als
Kaixi26/org.alloytools.alloy
0
2294
<filename>alloy4fun_models/trashltl/models/10/MmxwXJbpoKps8wWMi.als open main pred idMmxwXJbpoKps8wWMi_prop11 { all f:File | always f not in Protected implies after f in Protected } pred __repair { idMmxwXJbpoKps8wWMi_prop11 } check __repair { idMmxwXJbpoKps8wWMi_prop11 <=> prop11o }
src/test/ref/number-inference-sum.asm
jbrandwood/kickc
2
167014
<reponame>jbrandwood/kickc<filename>src/test/ref/number-inference-sum.asm // Test inference of number types using a long sum // Currently fails - because the compiler does not handle byte+byte correctly (not truncating the result to 8 bits) // Commodore 64 PRG executable file .file [name="number-inference-sum.prg", type="prg", segments="Program"] .segmentdef Program [segments="Basic, Code, Data"] .segmentdef Basic [start=$0801] .segmentdef Code [start=$80d] .segmentdef Data [startAfter="Code"] .segment Basic :BasicUpstart(main) .segment Code main: { .const RED = 2 .const b1 = $fa .const b2 = b1+$fa .const w = b2+1 .label screen = $400 .label BG_COLOR = $d020 // screen[0] = w lda #<w sta screen lda #>w sta screen+1 // *BG_COLOR = RED lda #RED sta BG_COLOR // } rts }
Chapter03/hello-world.nasm
firebitsbr/Penetration-Testing-with-Shellcode
30
25322
<reponame>firebitsbr/Penetration-Testing-with-Shellcode<gh_stars>10-100 global _start section .text _start: mov rax, 1 mov rdi, 1 mov rsi, hello_world mov rdx, length syscall section .data hello_world: db 'hello world',0xa length: equ $-hello_world
Source/Apps/Survey.asm
vipoo/RomWBW
1
91965
<gh_stars>1-10 ;***************************************; ; ; ; S U R V E Y ; ; ; ;***************************************; ;By <NAME> 9/22/79 ;* Lists Kbytes used and remaining plus number of files ; on all logged disks (up to 8) ;* Prints Memory map and synopsis of all machine memory ;* Lists all active I/O Ports ;* Uses disk allocation block for all disk calculations ; ;VERSION LIST - Most recent version first. ; ;16/Dec/17 - Handle 16-bit port addressing using ; Z80 IN A,(C) instruction. <NAME> ; ;06/Jul/82 - Added Godbout DISK 1 equate and added SKIP equate ; <NAME> - Software Tools, Australia ; ;01/Jun/82 - Tidied up and fixed port display, added display ; of contents of low memory. <NAME> - Alfred ; Hospital, Australia ; ;29/Jun/80 - Added version number test and calculations for CP/M ; version 2 compatibility. This program should now work ; properly on all versions 1.4 and later. BRR ; ;28/Jun/80 - Added IMS400 equate (prevents Industrial Micro Systems ; controller from hanging up during port scan). BRR ; ;24/Jun/80 - Removed MACLIB statement, included required macros ; in source. <NAME> ; ;*******************************; ; SYSTEM MACROS ; ;*******************************; ;Increments 16 bit memory location X INXI MACRO X LOCAL JUST8 PUSH H LXI H,X INR M JNZ JUST8 INX H INR M JUST8: POP H ENDM ;.............................................................. ; ; SAVE MACRO SAVE SPECIFIED REGISTERS ; ; SAVE R1,R2,R3,R4 ; ; R1-R4 MAY BE B,D,H OR PSW SAVED IN ORDER SPECIFIED ; IF REGS ARE OMITTED SAVE B,D AND H ; SAVE MACRO R1,R2,R3,R4 IF NOT NUL R1&R2&R3&R4 IRP R,<<R1>,<R2>,<R3>,<R4>> IF NUL R EXITM ENDIF PUSH R ENDM ELSE IRPC REG,BDH PUSH REG ENDM ENDIF ENDM ; ; . . . . . . . . . . . . . . . . . . . . . . . . . . . . ; ; RESTORE MACRO RESTORE REGISTERS (INVERSE OF SAVE) ; ; RESTORE R1,R2,R3,R4 ; ; R1-R4 MAY BE B,D,H OR PSW RESTORED IN ORDER SPECIFIED ; IF REGS OMITTED RESTORE H,D AND B ; RESTORE MACRO R1,R2,R3,R4 IF NOT NUL R1&R2&R3&R4 IRP R,<<R1>,<R2>,<R3>,<R4>> IF NUL R EXITM ENDIF POP R ENDM ELSE IRPC REG,HDB POP REG ENDM ENDIF ENDM ; ;.............................................................. ; ; CHAROUT MACRO CONSOLE OUTPUT FROM A ; ; CHAROUT ADDR ; CHAROUT MACRO ADDR IF NOT NUL ADDR LDA ADDR ENDIF MVI C,2 ;;CONOUT MOV E,A ;;CHAR TO E CALL 5 ;;CALL BDOS ENDM ; ; ;............................................................. ; ; DECOUT MACRO CONVERT A POSITIVE INTEGER TO DECIMAL AND OUTPUT ; TO THE CONSOLE. ; ; DECOUT ADDR ; ; IF ADDR OMITTED, NUMBER ASSUMED TO BE IN HL, ELSE LOADED TO HL ; LEADING ZEROS SUPRESSED. MAXIMUM NUMBER 65,767 ; DECOUT MACRO ADDR LOCAL ENDDEC,DX JMP ENDDEC @DECOUT: SAVE ;;PUSH STACK LXI B,-10 ;;RADIX FOR CONVERSION LXI D,-1 ;;THIS BECOMES NO DIVIDED BY RADIX DX: DAD B ;;SUBTRACT 10 INX D JC DX LXI B,10 DAD B ;;ADD RADIX BACK IN ONCE XCHG MOV A,H ORA L ;;TEST FOR ZERO CNZ @DECOUT ;;RECURSIVE CALL MOV A,E ADI '0' ;;CONVERT FROM BCD TO HEX MOV E,A ;;TO E FOR OUTPUT CHAROUT ;;CONSOLE OUTPUT RESTORE ;;POP STACK RET ENDDEC: DECOUT MACRO ?ADDR IF NOT NUL ?ADDR LHLD ?ADDR ENDIF CALL @DECOUT ;;CALL THE SUBROUTINE ENDM DECOUT ADDR ENDM ; ; ;.............................................................. ; ; HEXOUT MACRO CONVERT BINARY NO AND OUTPUT TO CONSOLE ; ; HEXOUT ADDR ; ; NUMBER ASSUMED IN A IF NO ARGUMENT ; HEXOUT MACRO ADDR LOCAL OUTCHR,HEXEND JMP HEXEND HEXPRN: SAVE PSW RRC RRC RRC RRC ;;SHIFT RIGHT 4 CALL OUTCHR RESTORE PSW OUTCHR: ANI 0FH ;;MASK 4 BITS ADI 90H ;;ADD OFFSET DAA ;;DEC ADJUST ACI 40H ;;ADD OFFSET DAA ;;DEC ADJUST MOV E,A ;;TO E FOR OUTPUT MVI C,2 ;;CONOUT JMP 5 ;;CALL BDOS HEXEND: HEXOUT MACRO ?ADDR IF NOT NUL ?ADDR LDA ?ADDR ENDIF CALL HEXPRN ENDM HEXOUT ADDR ENDM ; ; ;*******************************; ; SYSTEM EQUATES ; ;*******************************; TRUE EQU -1 FALSE EQU NOT TRUE TARBEL EQU FALSE ; Tarbell FDC dmb 31-may-82 IMS400 EQU FALSE ; Industrial Micro Systems FDC GODBOUT EQU FALSE ; Godbout Disk 1 FDC GODBAS EQU 0C0H ; Base of Godbout FDC TARBAS EQU 0F8H ; Base of Tarbell SKIP EQU TARBEL OR IMS400 OR GODBOUT ; Will be true ; if any skip needed IF TARBEL SKIPORT EQU TARBAS+4 ; Port # to skip if Tarbell FDC ENDIF IF IMS400 SKIPORT EQU 08FH ; Port # to skip if IMS FDC ENDIF IF GODBOUT SKIPORT EQU GODBAS+1 ; Port # to skip if Disk 1 FDC ENDIF BDOS EQU 5 ; jump to BDOS bios equ 0 ; jump to BIOS dmb 1-jun-82 CRLF EQU 0A0DH ; CR LF sequence CRLFE EQU 8A0DH ; CR LF with EOL EOL EQU 80H ; End of line TAB EQU 'I'-40H ; Tab character ESC EQU 1BH ; Escape character TABS EQU 9 ; Tab columns ;***********************; ; MAIN PROGRAM ; ;***********************; ; ORG 100H ; START: LXI H,0 ; Save stack pointer DAD SP SHLD OLDSP LXI SP,FINIS+64 CALL TYPE ; Type initial CRLF DB TAB,TAB,'*** System Survey (December 17) ***' DW CRLF,CRLFE ;DISK SURVEY LXI H,8 ; Init drive counter MVI C,24 ; Get login vector PUSH H CALL BDOS POP H ROTBIT: RAR ; RAR login bit to C JNC NOTLOG ; Drive not logged PUSH PSW ; Save login PUSH H ; and counter ;Print drive letter CALL TYPE DB 'Drive' DB ' '+EOL MVI A,'A' ; Get ASCII bias ADD H ; Add to drive # MOV E,A ; Print drive letter CALL TCHR CALL TYPE ; and colon DB ':',' '+EOL POP H ; Restore drive # PUSH H ;Print K already allocated MOV E,H MVI C,14 ; Log drive CALL BDOS MVI C,27 ; Index allocation vect CALL BDOS MOV L,A ; Put in decent regs MOV H,B PUSH H ; save for later MVI C,12 ; get version # CALL BDOS MOV A,L ; zero if version 1 ORA A JNZ V2X ; otherwise, use 2.x style params LHLD BDOS+1 ; get vers 1 style params MVI L,3CH MOV A,M ; get block shift factor STA BLKSHF INX H INX H MOV L,M ; get max. block number MVI H,0 SHLD MAXALL MVI B,32 ; assume 32 bytes in block map JMP GETALC ; continue V2X: MVI A,'?' ; Use wild user # STA FCB ; in filename search MVI C,31 ; Get 2.x parameter block CALL BDOS INX H INX H MOV A,M ; Get and save ablock shift factor STA BLKSHF INX H INX H INX H MOV A,M ; Get maximum block number INX H ; (double precision) MOV H,M MOV L,A SHLD MAXALL INX H MVI B,3 ; map size is (MAXALL+1)/8 V2SH: MOV A,H ORA A ; do 16 bit right shift RAR MOV H,A MOV A,L RAR MOV L,A DCR B ; 3 times JNZ V2SH MOV B,L LDA MAXALL ; allow for leftover bits if any ANI 3 JZ GETALC INR B GETALC: POP H LXI D,0 ; Init group counter NXBYTE: MVI C,8 ; Bit counter for byte MOV A,M ; Get map byte NXBIT: RAR ; Rotate to C JNC NOBIT ; No group allocated INX D ; Inc group counter NOBIT: DCR C ; Dec bit counter JNZ NXBIT INX H ; Index next byte DCR B JNZ NXBYTE CALL SHF16 PUSH H CALL BINDEC CALL TYPE DB 'K bytes in',' '+EOL ;Print number of files LXI D,FCB ; Fake file cont block MVI C,17 ; Search for 1st file CALL BDOS LXI H,0 ; File counter LOOK: CPI 255 ; Failure JZ PFILE ADD A ; File offset times 2 ADD A ; 4 ADD A ; 8 ADD A ; 16 ADD A ; 32 ADI 80H ; Make sure it's not a deleted file MOV E,A MVI D,0 LDAX D CPI 0E5H JZ LOOK1 INX H ; Bump file counter LOOK1: LXI D,FCB ; Restore FCB MVI C,18 ; Look for addtl files PUSH H ; Save file counter CALL BDOS POP H JMP LOOK PFILE: CALL BINDEC ; Print # of files CALL TYPE DB ' files with',' '+EOL ;Print K remaining LHLD MAXALL ; Get number of blocks XCHG INX D ; Inc for actual value CALL SHF16 XCHG POP H MOV A,H ; Ones comp & move CMA MOV H,A MOV A,L CMA MOV L,A INX H ; Twos complement DAD D ; and subtract CALL BINDEC ; K remaining CALL TYPE DB 'K bytes remaining' DW CRLFE ;Set up to print next drive POP H ; Restore bit counter POP PSW ; and bitmap byte NOTLOG: INR H ; Bump drive counter DCR L ; Dec bit counter JNZ ROTBIT ;MEMORY SURVEY ;Create header MSURV: CALL TYPE DW CRLF DB 'Memory map:' DW CRLF DB '0',TAB,'8',TAB,'16',TAB,'24',TAB,'32' DB TAB,'40',TAB,'48',TAB,'56',TAB,'64' DW CRLF REPT 8 DB '|',TAB ENDM DB '|' DW CRLF db ' ' ; dmb 31-May-82 DB 'T'+EOL LXI H,RAM MVI M,LOW 1023 ; Init RAM counter INX H MVI M,HIGH 1023 MVI B,4 ; Clear ROM, EMP CLREG: INX H MVI M,0 DCR B JNZ CLREG LXI H,1024 ; Init memory pointer MVI C,63 ; K to be checked ;Start of analysis loop BEGANA: LXI D,1024 ; Byte counter XRA A ; Clear flag bytes STA RAMF STA EMPF ANALP: MOV A,M ; Get test byte and MOV B,A ; store for later CMA MOV M,A ; Put invertd tst byte SUB M ; Check for good write MOV M,B ; Restore orignl data JNZ NOTMEM ; Wasn't good write INXI RAM ; Bump memory counter JMP NEXT ; To next byte NOTMEM: STA RAMF ; Not considered RAM MVI A,0FFH ; Is it empty space? SUB B JNZ NOTEMP ; Inc ROM, set flag LDA EMPF ; Any non empty space ANA A ; before here? JZ NEXT JMP NOTEM ; To next byte NOTEMP: STA EMPF ; Set no empty flag NOTEM: INXI ROM NEXT: INX H ; Index next byte DCX D ; Decrement K counter XRA A ORA D ORA E JNZ ANALP ; K counter not 0 PUSH B PUSH H LDA RAMF ; Is it RAM? ANA A JNZ NOTRAM ; No dcr h ; drop H to make compares right LDA BDOS+2 ; Is it under BDOS ? CMP H JC NOTTPA ; No CALL TYPE ; Yes, it's TPA DB 'T'+EOL JMP NEXTK NOTTPA: lda bios+2 ; is it under bios ? cmp h jc nbdos call type ; yes, it's BDOS db 'C'+eol jmp nextk nbdos: CALL TYPE ; Assume it's BIOS DB 'B'+EOL JMP NEXTK ; NOTRAM: LDA EMPF ; Is it empty? ANA A JZ NOMEM ; Yes, no memory CALL TYPE ; No, must be ROM DB 'R'+EOL JMP NEXTK NOMEM: CALL TYPE DB ' '+EOL NEXTK: POP H POP B DCR C ; Decrement K counter JNZ BEGANA CALL TYPE DW CRLF DB 'T=TPA',TAB,'C=CPM',TAB,'B=BIOS or unassigned' DB TAB,'R=ROM or bad' DW CRLFE ; ; contents of first page call type db 'BIOS at',' '+eol hexout bios+2 hexout bios+1 call type db tab,'iobyte',' '+eol hexout bios+3 call type db tab,'drive',' '+eol hexout bios+4 call type db tab,'BDOS at',' '+eol hexout bdos+2 hexout bdos+1 call type dw crlf,crlfe ; ;MEMORY SYNOPSIS LHLD RAM PUSH H ; Save RAM CALL BINDEC ; Type RAM CALL TYPE DB ' Bytes RAM',TAB,TAB+EOL LHLD ROM PUSH H CALL BINDEC ; Type ROM CALL TYPE DB ' Bytes ROM',TAB,TAB+EOL LHLD BDOS+1 CALL BINDEC CALL TYPE DB ' Bytes in TPA' DW CRLFE POP D ; Get RAM POP H ; Get RAM DAD D ; Add 'em PUSH H ; and save result LXI D,0 ; Subtract from this MOV A,H ; Complement 16 bits CMA MOV H,A MOV A,L CMA MOV L,A ; 2s comp bias in D DAD D ; Subtract CALL BINDEC CALL TYPE DB ' Bytes Empty ',TAB+EOL POP H ; Restore RAM+ROM CALL BINDEC CALL TYPE DB ' Total Active Bytes' DW CRLF,CRLF ;PORT SURVEY DB 'Active I/O ports',':'+EOL LXI H,1000H ; DELAY SO MESSAGE OUTPUT PDLY: DCX H ; DOESN'T GIVE A FALSE READING MOV A,H ; ON CONSOLE STATUS PORT ORA L JNZ PDLY LXI H,0 ; Init active port counter mvi d,0 ; Init port counter mvi e,0ffh ; init port group variable PORTLP: MOV A,D IF SKIP ; Single port mask CPI SKIPORT JZ ISPORT ; Print mask port ENDIF mov c,a ; port number to reg c mvi b,0 ; for 16 bit port addressing db 0edh,078h ; z80: in a,(c) ; inactive port could return 0xFF or 0x78 or the port address cmp c jz nextpt cpi 0FFh jz nextpt cpi 078h jz nextpt ISPORT: mov a,d ; got a live one, probably ani 0f0h ; is port in same group as last ? cmp e jz nocrlf call type ; no, start a new line dw crlfe mov a,d ; save for next time ani 0f0h mov e,a nocrlf: MOV A,D ; Get port # PUSH D PUSH H HEXOUT POP H POP D INX H ; count another one found call type db ' '+eol NEXTPT: INR D ; Bump port counter JNZ PORTLP ; Not done CALL TYPE ; Done DW CRLFE CALL BINDEC CALL TYPE ; Type Active Ports DB ' Ports active' DW CRLFE CCP: LHLD OLDSP SPHL RET ;***********************; ; SUBROUTINES ; ;***********************; ;Binary to decimal conversion BINDEC: DECOUT ; From LIB RET ;Types a string of text terminated with bit 7 high TYPE: XTHL ; Get string address PUSH D TYPELP: MOV A,M ; Get type data MOV D,A ; Save for later ANI 7FH ; Mask ASCII MOV E,A PUSH H PUSH D CALL TCHR POP D POP H INX H MVI A,EOL ; End of line bit ANA D JP TYPELP ; Not done POP D XTHL ; Get return address RET ;Types a single character on console TCHR: MVI C,2 JMP BDOS ;Checks sectors per block and multiplies or divides block size ;Enter with data in D. Result returned in H,L ; SHF16: LDA BLKSHF ; Get shift factor (gives block size) CPI 3 ; Is it 1K (std)? JNZ NOT3 MOV L,E ; Yes, use present # ZH: MVI H,0 RET ; NOT3: CPI 2 ; Is it minifloppy? JNZ NOT2 MOV A,E ; Yes, divide by 2 RRC ANI 7FH MOV L,A JMP ZH NOT2: SUI 3 ; Must be something MOV B,A ; larger like double XCHG ; sided or double dens BITSHF: DAD H ; 16 bit 2^(B-1) DCR B JNZ BITSHF RET ;***********************; ; DATA STORAGE ; ;***********************; FCB: DB 0,'???????????',0,0,0 ; File control block DS 17 ; Extra FCB workspace OLDSP: DS 2 ; Old stack pointer RAM: DS 2 ; RAM counter ROM: DS 2 ; ROM counter RAMF: DS 1 ; RAM good flag EMPF: DS 1 ; Empty so far flag BLKSHF: DS 1 ; block shift factor MAXALL: DS 2 ; maximum block number FINIS EQU $ ; End of program END 
EE2028Asmt1S1AY201819/Debug/cr_startup_lpc17.asm
solderneer/EE2028-labs
0
165016
1 .syntax unified 2 .cpu cortex-m3 3 .fpu softvfp 4 .eabi_attribute 20, 1 5 .eabi_attribute 21, 1 6 .eabi_attribute 23, 3 7 .eabi_attribute 24, 1 8 .eabi_attribute 25, 1 9 .eabi_attribute 26, 1 10 .eabi_attribute 30, 6 11 .eabi_attribute 34, 1 12 .eabi_attribute 18, 4 13 .thumb 14 .syntax unified 15 .file "cr_startup_lpc17.c" 16 .text 17 .Ltext0: 18 .cfi_sections .debug_frame 19 .global g_pfnVectors 20 .section .isr_vector,"a",%progbits 21 .align 2 24 g_pfnVectors: 25 0000 00000000 .word _vStackTop 26 0004 00000000 .word ResetISR 27 0008 00000000 .word NMI_Handler 28 000c 00000000 .word HardFault_Handler 29 0010 00000000 .word MemManage_Handler 30 0014 00000000 .word BusFault_Handler 31 0018 00000000 .word UsageFault_Handler 32 001c 00000000 .word 0 33 0020 00000000 .word 0 34 0024 00000000 .word 0 35 0028 00000000 .word 0 36 002c 00000000 .word SVCall_Handler 37 0030 00000000 .word DebugMon_Handler 38 0034 00000000 .word 0 39 0038 00000000 .word PendSV_Handler 40 003c 00000000 .word SysTick_Handler 41 0040 00000000 .word WDT_IRQHandler 42 0044 00000000 .word TIMER0_IRQHandler 43 0048 00000000 .word TIMER1_IRQHandler 44 004c 00000000 .word TIMER2_IRQHandler 45 0050 00000000 .word TIMER3_IRQHandler 46 0054 00000000 .word UART0_IRQHandler 47 0058 00000000 .word UART1_IRQHandler 48 005c 00000000 .word UART2_IRQHandler 49 0060 00000000 .word UART3_IRQHandler 50 0064 00000000 .word PWM1_IRQHandler 51 0068 00000000 .word I2C0_IRQHandler 52 006c 00000000 .word I2C1_IRQHandler 53 0070 00000000 .word I2C2_IRQHandler 54 0074 00000000 .word SPI_IRQHandler 55 0078 00000000 .word SSP0_IRQHandler 56 007c 00000000 .word SSP1_IRQHandler 57 0080 00000000 .word PLL0_IRQHandler 58 0084 00000000 .word RTC_IRQHandler 59 0088 00000000 .word EINT0_IRQHandler 60 008c 00000000 .word EINT1_IRQHandler 61 0090 00000000 .word EINT2_IRQHandler 62 0094 00000000 .word EINT3_IRQHandler 63 0098 00000000 .word ADC_IRQHandler 64 009c 00000000 .word BOD_IRQHandler 65 00a0 00000000 .word USB_IRQHandler 66 00a4 00000000 .word CAN_IRQHandler 67 00a8 00000000 .word DMA_IRQHandler 68 00ac 00000000 .word I2S_IRQHandler 69 00b0 00000000 .word ENET_IRQHandler 70 00b4 00000000 .word RIT_IRQHandler 71 00b8 00000000 .word MCPWM_IRQHandler 72 00bc 00000000 .word QEI_IRQHandler 73 00c0 00000000 .word PLL1_IRQHandler 74 00c4 00000000 .word USBActivity_IRQHandler 75 00c8 00000000 .word CANActivity_IRQHandler 76 .section .text.ResetISR,"ax",%progbits 77 .align 2 78 .global ResetISR 79 .thumb 80 .thumb_func 82 ResetISR: 83 .LFB0: 84 .file 1 "../src/cr_startup_lpc17.c" 1:../src/cr_startup_lpc17.c **** //***************************************************************************** 2:../src/cr_startup_lpc17.c **** // +--+ 3:../src/cr_startup_lpc17.c **** // | ++----+ 4:../src/cr_startup_lpc17.c **** // +-++ | 5:../src/cr_startup_lpc17.c **** // | | 6:../src/cr_startup_lpc17.c **** // +-+--+ | 7:../src/cr_startup_lpc17.c **** // | +--+--+ 8:../src/cr_startup_lpc17.c **** // +----+ Copyright (c) 2009-10 Code Red Technologies Ltd. 9:../src/cr_startup_lpc17.c **** // 10:../src/cr_startup_lpc17.c **** // Microcontroller Startup code for use with Red Suite 11:../src/cr_startup_lpc17.c **** // 12:../src/cr_startup_lpc17.c **** // Software License Agreement 13:../src/cr_startup_lpc17.c **** // 14:../src/cr_startup_lpc17.c **** // The software is owned by Code Red Technologies and/or its suppliers, and is 15:../src/cr_startup_lpc17.c **** // protected under applicable copyright laws. All rights are reserved. Any 16:../src/cr_startup_lpc17.c **** // use in violation of the foregoing restrictions may subject the user to criminal 17:../src/cr_startup_lpc17.c **** // sanctions under applicable laws, as well as to civil liability for the breach 18:../src/cr_startup_lpc17.c **** // of the terms and conditions of this license. 19:../src/cr_startup_lpc17.c **** // 20:../src/cr_startup_lpc17.c **** // THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED 21:../src/cr_startup_lpc17.c **** // OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF 22:../src/cr_startup_lpc17.c **** // MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. 23:../src/cr_startup_lpc17.c **** // USE OF THIS SOFTWARE FOR COMMERCIAL DEVELOPMENT AND/OR EDUCATION IS SUBJECT 24:../src/cr_startup_lpc17.c **** // TO A CURRENT END USER LICENSE AGREEMENT (COMMERCIAL OR EDUCATIONAL) WITH 25:../src/cr_startup_lpc17.c **** // CODE RED TECHNOLOGIES LTD. 26:../src/cr_startup_lpc17.c **** // 27:../src/cr_startup_lpc17.c **** //***************************************************************************** 28:../src/cr_startup_lpc17.c **** #if defined (__cplusplus) 29:../src/cr_startup_lpc17.c **** #ifdef __REDLIB__ 30:../src/cr_startup_lpc17.c **** #error Redlib does not support C++ 31:../src/cr_startup_lpc17.c **** #else 32:../src/cr_startup_lpc17.c **** //***************************************************************************** 33:../src/cr_startup_lpc17.c **** // 34:../src/cr_startup_lpc17.c **** // The entry point for the C++ library startup 35:../src/cr_startup_lpc17.c **** // 36:../src/cr_startup_lpc17.c **** //***************************************************************************** 37:../src/cr_startup_lpc17.c **** extern "C" { 38:../src/cr_startup_lpc17.c **** extern void __libc_init_array(void); 39:../src/cr_startup_lpc17.c **** } 40:../src/cr_startup_lpc17.c **** #endif 41:../src/cr_startup_lpc17.c **** #endif 42:../src/cr_startup_lpc17.c **** 43:../src/cr_startup_lpc17.c **** #define WEAK __attribute__ ((weak)) 44:../src/cr_startup_lpc17.c **** #define ALIAS(f) __attribute__ ((weak, alias (#f))) 45:../src/cr_startup_lpc17.c **** 46:../src/cr_startup_lpc17.c **** // Code Red - if CMSIS is being used, then SystemInit() routine 47:../src/cr_startup_lpc17.c **** // will be called by startup code rather than in application's main() 48:../src/cr_startup_lpc17.c **** #if defined (__USE_CMSIS) 49:../src/cr_startup_lpc17.c **** #include "system_LPC17xx.h" 50:../src/cr_startup_lpc17.c **** #endif 51:../src/cr_startup_lpc17.c **** 52:../src/cr_startup_lpc17.c **** //***************************************************************************** 53:../src/cr_startup_lpc17.c **** #if defined (__cplusplus) 54:../src/cr_startup_lpc17.c **** extern "C" { 55:../src/cr_startup_lpc17.c **** #endif 56:../src/cr_startup_lpc17.c **** 57:../src/cr_startup_lpc17.c **** //***************************************************************************** 58:../src/cr_startup_lpc17.c **** // 59:../src/cr_startup_lpc17.c **** // Forward declaration of the default handlers. These are aliased. 60:../src/cr_startup_lpc17.c **** // When the application defines a handler (with the same name), this will 61:../src/cr_startup_lpc17.c **** // automatically take precedence over these weak definitions 62:../src/cr_startup_lpc17.c **** // 63:../src/cr_startup_lpc17.c **** //***************************************************************************** 64:../src/cr_startup_lpc17.c **** void ResetISR(void); 65:../src/cr_startup_lpc17.c **** WEAK void NMI_Handler(void); 66:../src/cr_startup_lpc17.c **** WEAK void HardFault_Handler(void); 67:../src/cr_startup_lpc17.c **** WEAK void MemManage_Handler(void); 68:../src/cr_startup_lpc17.c **** WEAK void BusFault_Handler(void); 69:../src/cr_startup_lpc17.c **** WEAK void UsageFault_Handler(void); 70:../src/cr_startup_lpc17.c **** WEAK void SVCall_Handler(void); 71:../src/cr_startup_lpc17.c **** WEAK void DebugMon_Handler(void); 72:../src/cr_startup_lpc17.c **** WEAK void PendSV_Handler(void); 73:../src/cr_startup_lpc17.c **** WEAK void SysTick_Handler(void); 74:../src/cr_startup_lpc17.c **** WEAK void IntDefaultHandler(void); 75:../src/cr_startup_lpc17.c **** 76:../src/cr_startup_lpc17.c **** //***************************************************************************** 77:../src/cr_startup_lpc17.c **** // 78:../src/cr_startup_lpc17.c **** // Forward declaration of the specific IRQ handlers. These are aliased 79:../src/cr_startup_lpc17.c **** // to the IntDefaultHandler, which is a 'forever' loop. When the application 80:../src/cr_startup_lpc17.c **** // defines a handler (with the same name), this will automatically take 81:../src/cr_startup_lpc17.c **** // precedence over these weak definitions 82:../src/cr_startup_lpc17.c **** // 83:../src/cr_startup_lpc17.c **** //***************************************************************************** 84:../src/cr_startup_lpc17.c **** void WDT_IRQHandler(void) ALIAS(IntDefaultHandler); 85:../src/cr_startup_lpc17.c **** void TIMER0_IRQHandler(void) ALIAS(IntDefaultHandler); 86:../src/cr_startup_lpc17.c **** void TIMER1_IRQHandler(void) ALIAS(IntDefaultHandler); 87:../src/cr_startup_lpc17.c **** void TIMER2_IRQHandler(void) ALIAS(IntDefaultHandler); 88:../src/cr_startup_lpc17.c **** void TIMER3_IRQHandler(void) ALIAS(IntDefaultHandler); 89:../src/cr_startup_lpc17.c **** void UART0_IRQHandler(void) ALIAS(IntDefaultHandler); 90:../src/cr_startup_lpc17.c **** void UART1_IRQHandler(void) ALIAS(IntDefaultHandler); 91:../src/cr_startup_lpc17.c **** void UART2_IRQHandler(void) ALIAS(IntDefaultHandler); 92:../src/cr_startup_lpc17.c **** void UART3_IRQHandler(void) ALIAS(IntDefaultHandler); 93:../src/cr_startup_lpc17.c **** void PWM1_IRQHandler(void) ALIAS(IntDefaultHandler); 94:../src/cr_startup_lpc17.c **** void I2C0_IRQHandler(void) ALIAS(IntDefaultHandler); 95:../src/cr_startup_lpc17.c **** void I2C1_IRQHandler(void) ALIAS(IntDefaultHandler); 96:../src/cr_startup_lpc17.c **** void I2C2_IRQHandler(void) ALIAS(IntDefaultHandler); 97:../src/cr_startup_lpc17.c **** void SPI_IRQHandler(void) ALIAS(IntDefaultHandler); 98:../src/cr_startup_lpc17.c **** void SSP0_IRQHandler(void) ALIAS(IntDefaultHandler); 99:../src/cr_startup_lpc17.c **** void SSP1_IRQHandler(void) ALIAS(IntDefaultHandler); 100:../src/cr_startup_lpc17.c **** void PLL0_IRQHandler(void) ALIAS(IntDefaultHandler); 101:../src/cr_startup_lpc17.c **** void RTC_IRQHandler(void) ALIAS(IntDefaultHandler); 102:../src/cr_startup_lpc17.c **** void EINT0_IRQHandler(void) ALIAS(IntDefaultHandler); 103:../src/cr_startup_lpc17.c **** void EINT1_IRQHandler(void) ALIAS(IntDefaultHandler); 104:../src/cr_startup_lpc17.c **** void EINT2_IRQHandler(void) ALIAS(IntDefaultHandler); 105:../src/cr_startup_lpc17.c **** void EINT3_IRQHandler(void) ALIAS(IntDefaultHandler); 106:../src/cr_startup_lpc17.c **** void ADC_IRQHandler(void) ALIAS(IntDefaultHandler); 107:../src/cr_startup_lpc17.c **** void BOD_IRQHandler(void) ALIAS(IntDefaultHandler); 108:../src/cr_startup_lpc17.c **** void USB_IRQHandler(void) ALIAS(IntDefaultHandler); 109:../src/cr_startup_lpc17.c **** void CAN_IRQHandler(void) ALIAS(IntDefaultHandler); 110:../src/cr_startup_lpc17.c **** void DMA_IRQHandler(void) ALIAS(IntDefaultHandler); 111:../src/cr_startup_lpc17.c **** void I2S_IRQHandler(void) ALIAS(IntDefaultHandler); 112:../src/cr_startup_lpc17.c **** void ENET_IRQHandler(void) ALIAS(IntDefaultHandler); 113:../src/cr_startup_lpc17.c **** void RIT_IRQHandler(void) ALIAS(IntDefaultHandler); 114:../src/cr_startup_lpc17.c **** void MCPWM_IRQHandler(void) ALIAS(IntDefaultHandler); 115:../src/cr_startup_lpc17.c **** void QEI_IRQHandler(void) ALIAS(IntDefaultHandler); 116:../src/cr_startup_lpc17.c **** void PLL1_IRQHandler(void) ALIAS(IntDefaultHandler); 117:../src/cr_startup_lpc17.c **** void USBActivity_IRQHandler(void) ALIAS(IntDefaultHandler); 118:../src/cr_startup_lpc17.c **** void CANActivity_IRQHandler(void) ALIAS(IntDefaultHandler); 119:../src/cr_startup_lpc17.c **** 120:../src/cr_startup_lpc17.c **** //***************************************************************************** 121:../src/cr_startup_lpc17.c **** // 122:../src/cr_startup_lpc17.c **** // The entry point for the application. 123:../src/cr_startup_lpc17.c **** // __main() is the entry point for Redlib based applications 124:../src/cr_startup_lpc17.c **** // main() is the entry point for Newlib based applications 125:../src/cr_startup_lpc17.c **** // 126:../src/cr_startup_lpc17.c **** //***************************************************************************** 127:../src/cr_startup_lpc17.c **** #if defined (__REDLIB__) 128:../src/cr_startup_lpc17.c **** extern void __main(void); 129:../src/cr_startup_lpc17.c **** #endif 130:../src/cr_startup_lpc17.c **** extern int main(void); 131:../src/cr_startup_lpc17.c **** //***************************************************************************** 132:../src/cr_startup_lpc17.c **** // 133:../src/cr_startup_lpc17.c **** // External declaration for the pointer to the stack top from the Linker Script 134:../src/cr_startup_lpc17.c **** // 135:../src/cr_startup_lpc17.c **** //***************************************************************************** 136:../src/cr_startup_lpc17.c **** extern void _vStackTop(void); 137:../src/cr_startup_lpc17.c **** 138:../src/cr_startup_lpc17.c **** //***************************************************************************** 139:../src/cr_startup_lpc17.c **** #if defined (__cplusplus) 140:../src/cr_startup_lpc17.c **** } // extern "C" 141:../src/cr_startup_lpc17.c **** #endif 142:../src/cr_startup_lpc17.c **** //***************************************************************************** 143:../src/cr_startup_lpc17.c **** // 144:../src/cr_startup_lpc17.c **** // The vector table. 145:../src/cr_startup_lpc17.c **** // This relies on the linker script to place at correct location in memory. 146:../src/cr_startup_lpc17.c **** // 147:../src/cr_startup_lpc17.c **** //***************************************************************************** 148:../src/cr_startup_lpc17.c **** extern void (* const g_pfnVectors[])(void); 149:../src/cr_startup_lpc17.c **** __attribute__ ((section(".isr_vector"))) 150:../src/cr_startup_lpc17.c **** void (* const g_pfnVectors[])(void) = { 151:../src/cr_startup_lpc17.c **** // Core Level - CM3 152:../src/cr_startup_lpc17.c **** &_vStackTop, // The initial stack pointer 153:../src/cr_startup_lpc17.c **** ResetISR, // The reset handler 154:../src/cr_startup_lpc17.c **** NMI_Handler, // The NMI handler 155:../src/cr_startup_lpc17.c **** HardFault_Handler, // The hard fault handler 156:../src/cr_startup_lpc17.c **** MemManage_Handler, // The MPU fault handler 157:../src/cr_startup_lpc17.c **** BusFault_Handler, // The bus fault handler 158:../src/cr_startup_lpc17.c **** UsageFault_Handler, // The usage fault handler 159:../src/cr_startup_lpc17.c **** 0, // Reserved 160:../src/cr_startup_lpc17.c **** 0, // Reserved 161:../src/cr_startup_lpc17.c **** 0, // Reserved 162:../src/cr_startup_lpc17.c **** 0, // Reserved 163:../src/cr_startup_lpc17.c **** SVCall_Handler, // SVCall handler 164:../src/cr_startup_lpc17.c **** DebugMon_Handler, // Debug monitor handler 165:../src/cr_startup_lpc17.c **** 0, // Reserved 166:../src/cr_startup_lpc17.c **** PendSV_Handler, // The PendSV handler 167:../src/cr_startup_lpc17.c **** SysTick_Handler, // The SysTick handler 168:../src/cr_startup_lpc17.c **** 169:../src/cr_startup_lpc17.c **** // Chip Level - LPC17 170:../src/cr_startup_lpc17.c **** WDT_IRQHandler, // 16, 0x40 - WDT 171:../src/cr_startup_lpc17.c **** TIMER0_IRQHandler, // 17, 0x44 - TIMER0 172:../src/cr_startup_lpc17.c **** TIMER1_IRQHandler, // 18, 0x48 - TIMER1 173:../src/cr_startup_lpc17.c **** TIMER2_IRQHandler, // 19, 0x4c - TIMER2 174:../src/cr_startup_lpc17.c **** TIMER3_IRQHandler, // 20, 0x50 - TIMER3 175:../src/cr_startup_lpc17.c **** UART0_IRQHandler, // 21, 0x54 - UART0 176:../src/cr_startup_lpc17.c **** UART1_IRQHandler, // 22, 0x58 - UART1 177:../src/cr_startup_lpc17.c **** UART2_IRQHandler, // 23, 0x5c - UART2 178:../src/cr_startup_lpc17.c **** UART3_IRQHandler, // 24, 0x60 - UART3 179:../src/cr_startup_lpc17.c **** PWM1_IRQHandler, // 25, 0x64 - PWM1 180:../src/cr_startup_lpc17.c **** I2C0_IRQHandler, // 26, 0x68 - I2C0 181:../src/cr_startup_lpc17.c **** I2C1_IRQHandler, // 27, 0x6c - I2C1 182:../src/cr_startup_lpc17.c **** I2C2_IRQHandler, // 28, 0x70 - I2C2 183:../src/cr_startup_lpc17.c **** SPI_IRQHandler, // 29, 0x74 - SPI 184:../src/cr_startup_lpc17.c **** SSP0_IRQHandler, // 30, 0x78 - SSP0 185:../src/cr_startup_lpc17.c **** SSP1_IRQHandler, // 31, 0x7c - SSP1 186:../src/cr_startup_lpc17.c **** PLL0_IRQHandler, // 32, 0x80 - PLL0 (Main PLL) 187:../src/cr_startup_lpc17.c **** RTC_IRQHandler, // 33, 0x84 - RTC 188:../src/cr_startup_lpc17.c **** EINT0_IRQHandler, // 34, 0x88 - EINT0 189:../src/cr_startup_lpc17.c **** EINT1_IRQHandler, // 35, 0x8c - EINT1 190:../src/cr_startup_lpc17.c **** EINT2_IRQHandler, // 36, 0x90 - EINT2 191:../src/cr_startup_lpc17.c **** EINT3_IRQHandler, // 37, 0x94 - EINT3 192:../src/cr_startup_lpc17.c **** ADC_IRQHandler, // 38, 0x98 - ADC 193:../src/cr_startup_lpc17.c **** BOD_IRQHandler, // 39, 0x9c - BOD 194:../src/cr_startup_lpc17.c **** USB_IRQHandler, // 40, 0xA0 - USB 195:../src/cr_startup_lpc17.c **** CAN_IRQHandler, // 41, 0xa4 - CAN 196:../src/cr_startup_lpc17.c **** DMA_IRQHandler, // 42, 0xa8 - GP DMA 197:../src/cr_startup_lpc17.c **** I2S_IRQHandler, // 43, 0xac - I2S 198:../src/cr_startup_lpc17.c **** ENET_IRQHandler, // 44, 0xb0 - Ethernet 199:../src/cr_startup_lpc17.c **** RIT_IRQHandler, // 45, 0xb4 - RITINT 200:../src/cr_startup_lpc17.c **** MCPWM_IRQHandler, // 46, 0xb8 - Motor Control PWM 201:../src/cr_startup_lpc17.c **** QEI_IRQHandler, // 47, 0xbc - Quadrature Encoder 202:../src/cr_startup_lpc17.c **** PLL1_IRQHandler, // 48, 0xc0 - PLL1 (USB PLL) 203:../src/cr_startup_lpc17.c **** USBActivity_IRQHandler, // 49, 0xc4 - USB Activity interrupt to wakeup 204:../src/cr_startup_lpc17.c **** CANActivity_IRQHandler, // 50, 0xc8 - CAN Activity interrupt to wakeup 205:../src/cr_startup_lpc17.c **** }; 206:../src/cr_startup_lpc17.c **** 207:../src/cr_startup_lpc17.c **** //***************************************************************************** 208:../src/cr_startup_lpc17.c **** // 209:../src/cr_startup_lpc17.c **** // The following are constructs created by the linker, indicating where the 210:../src/cr_startup_lpc17.c **** // the "data" and "bss" segments reside in memory. The initializers for the 211:../src/cr_startup_lpc17.c **** // for the "data" segment resides immediately following the "text" segment. 212:../src/cr_startup_lpc17.c **** // 213:../src/cr_startup_lpc17.c **** //***************************************************************************** 214:../src/cr_startup_lpc17.c **** extern unsigned long _etext; 215:../src/cr_startup_lpc17.c **** extern unsigned long _data; 216:../src/cr_startup_lpc17.c **** extern unsigned long _edata; 217:../src/cr_startup_lpc17.c **** extern unsigned long _bss; 218:../src/cr_startup_lpc17.c **** extern unsigned long _ebss; 219:../src/cr_startup_lpc17.c **** 220:../src/cr_startup_lpc17.c **** //***************************************************************************** 221:../src/cr_startup_lpc17.c **** // Reset entry point for your code. 222:../src/cr_startup_lpc17.c **** // Sets up a simple runtime environment and initializes the C/C++ 223:../src/cr_startup_lpc17.c **** // library. 224:../src/cr_startup_lpc17.c **** // 225:../src/cr_startup_lpc17.c **** //***************************************************************************** 226:../src/cr_startup_lpc17.c **** void 227:../src/cr_startup_lpc17.c **** ResetISR(void) { 85 .loc 1 227 0 86 .cfi_startproc 87 @ args = 0, pretend = 0, frame = 8 88 @ frame_needed = 1, uses_anonymous_args = 0 89 0000 80B5 push {r7, lr} 90 .cfi_def_cfa_offset 8 91 .cfi_offset 7, -8 92 .cfi_offset 14, -4 93 0002 82B0 sub sp, sp, #8 94 .cfi_def_cfa_offset 16 95 0004 00AF add r7, sp, #0 96 .cfi_def_cfa_register 7 228:../src/cr_startup_lpc17.c **** unsigned long *pulSrc, *pulDest; 229:../src/cr_startup_lpc17.c **** 230:../src/cr_startup_lpc17.c **** // 231:../src/cr_startup_lpc17.c **** // Copy the data segment initializers from flash to SRAM. 232:../src/cr_startup_lpc17.c **** // 233:../src/cr_startup_lpc17.c **** pulSrc = &_etext; 97 .loc 1 233 0 98 0006 0F4B ldr r3, .L5 99 0008 7B60 str r3, [r7, #4] 234:../src/cr_startup_lpc17.c **** for(pulDest = &_data; pulDest < &_edata; ) 100 .loc 1 234 0 101 000a 0F4B ldr r3, .L5+4 102 000c 3B60 str r3, [r7] 103 000e 07E0 b .L2 104 .L3: 235:../src/cr_startup_lpc17.c **** { 236:../src/cr_startup_lpc17.c **** *pulDest++ = *pulSrc++; 105 .loc 1 236 0 106 0010 3B68 ldr r3, [r7] 107 0012 1A1D adds r2, r3, #4 108 0014 3A60 str r2, [r7] 109 0016 7A68 ldr r2, [r7, #4] 110 0018 111D adds r1, r2, #4 111 001a 7960 str r1, [r7, #4] 112 001c 1268 ldr r2, [r2] 113 001e 1A60 str r2, [r3] 114 .L2: 234:../src/cr_startup_lpc17.c **** for(pulDest = &_data; pulDest < &_edata; ) 115 .loc 1 234 0 discriminator 1 116 0020 3B68 ldr r3, [r7] 117 0022 0A4A ldr r2, .L5+8 118 0024 9342 cmp r3, r2 119 0026 F3D3 bcc .L3 237:../src/cr_startup_lpc17.c **** } 238:../src/cr_startup_lpc17.c **** 239:../src/cr_startup_lpc17.c **** // 240:../src/cr_startup_lpc17.c **** // Zero fill the bss segment. This is done with inline assembly since this 241:../src/cr_startup_lpc17.c **** // will clear the value of pulDest if it is not kept in a register. 242:../src/cr_startup_lpc17.c **** // 243:../src/cr_startup_lpc17.c **** __asm(" ldr r0, =_bss\n" 120 .loc 1 243 0 121 .syntax unified 122 @ 243 "../src/cr_startup_lpc17.c" 1 123 0028 0948 ldr r0, =_bss 124 002a 0A49 ldr r1, =_ebss 125 002c 4FF00002 mov r2, #0 126 .thumb_func 127 zero_loop: 128 0030 8842 cmp r0, r1 129 0032 B8BF it lt 130 0034 40F8042B strlt r2, [r0], #4 131 0038 FADB blt zero_loop 132 @ 0 "" 2 244:../src/cr_startup_lpc17.c **** " ldr r1, =_ebss\n" 245:../src/cr_startup_lpc17.c **** " mov r2, #0\n" 246:../src/cr_startup_lpc17.c **** " .thumb_func\n" 247:../src/cr_startup_lpc17.c **** "zero_loop:\n" 248:../src/cr_startup_lpc17.c **** " cmp r0, r1\n" 249:../src/cr_startup_lpc17.c **** " it lt\n" 250:../src/cr_startup_lpc17.c **** " strlt r2, [r0], #4\n" 251:../src/cr_startup_lpc17.c **** " blt zero_loop"); 252:../src/cr_startup_lpc17.c **** 253:../src/cr_startup_lpc17.c **** #ifdef __USE_CMSIS 254:../src/cr_startup_lpc17.c **** SystemInit(); 133 .loc 1 254 0 134 .thumb 135 .syntax unified 136 003a FFF7FEFF bl SystemInit 255:../src/cr_startup_lpc17.c **** #endif 256:../src/cr_startup_lpc17.c **** 257:../src/cr_startup_lpc17.c **** #if defined (__cplusplus) 258:../src/cr_startup_lpc17.c **** // 259:../src/cr_startup_lpc17.c **** // Call C++ library initialisation 260:../src/cr_startup_lpc17.c **** // 261:../src/cr_startup_lpc17.c **** __libc_init_array(); 262:../src/cr_startup_lpc17.c **** #endif 263:../src/cr_startup_lpc17.c **** 264:../src/cr_startup_lpc17.c **** #if defined (__REDLIB__) 265:../src/cr_startup_lpc17.c **** // Call the Redlib library, which in turn calls main() 266:../src/cr_startup_lpc17.c **** __main() ; 137 .loc 1 266 0 138 003e FFF7FEFF bl __main 139 .L4: 267:../src/cr_startup_lpc17.c **** #else 268:../src/cr_startup_lpc17.c **** main(); 269:../src/cr_startup_lpc17.c **** #endif 270:../src/cr_startup_lpc17.c **** 271:../src/cr_startup_lpc17.c **** // 272:../src/cr_startup_lpc17.c **** // main() shouldn't return, but if it does, we'll just enter an infinite loop 273:../src/cr_startup_lpc17.c **** // 274:../src/cr_startup_lpc17.c **** while (1) { 275:../src/cr_startup_lpc17.c **** ; 276:../src/cr_startup_lpc17.c **** } 140 .loc 1 276 0 discriminator 1 141 0042 FEE7 b .L4 142 .L6: 143 .align 2 144 .L5: 145 0044 00000000 .word _etext 146 0048 00000000 .word _data 147 004c 00000000 .word _edata 148 .cfi_endproc 149 .LFE0: 151 .section .text.NMI_Handler,"ax",%progbits 152 .align 2 153 .weak NMI_Handler 154 .thumb 155 .thumb_func 157 NMI_Handler: 158 .LFB1: 277:../src/cr_startup_lpc17.c **** } 278:../src/cr_startup_lpc17.c **** 279:../src/cr_startup_lpc17.c **** //***************************************************************************** 280:../src/cr_startup_lpc17.c **** // 281:../src/cr_startup_lpc17.c **** // This is the code that gets called when the processor receives a NMI. This 282:../src/cr_startup_lpc17.c **** // simply enters an infinite loop, preserving the system state for examination 283:../src/cr_startup_lpc17.c **** // by a debugger. 284:../src/cr_startup_lpc17.c **** // 285:../src/cr_startup_lpc17.c **** //***************************************************************************** 286:../src/cr_startup_lpc17.c **** void NMI_Handler(void) 287:../src/cr_startup_lpc17.c **** { 159 .loc 1 287 0 160 .cfi_startproc 161 @ args = 0, pretend = 0, frame = 0 162 @ frame_needed = 1, uses_anonymous_args = 0 163 @ link register save eliminated. 164 0000 80B4 push {r7} 165 .cfi_def_cfa_offset 4 166 .cfi_offset 7, -4 167 0002 00AF add r7, sp, #0 168 .cfi_def_cfa_register 7 169 .L8: 288:../src/cr_startup_lpc17.c **** while(1) 289:../src/cr_startup_lpc17.c **** { 290:../src/cr_startup_lpc17.c **** } 170 .loc 1 290 0 discriminator 1 171 0004 FEE7 b .L8 172 .cfi_endproc 173 .LFE1: 175 0006 00BF .section .text.HardFault_Handler,"ax",%progbits 176 .align 2 177 .weak HardFault_Handler 178 .thumb 179 .thumb_func 181 HardFault_Handler: 182 .LFB2: 291:../src/cr_startup_lpc17.c **** } 292:../src/cr_startup_lpc17.c **** 293:../src/cr_startup_lpc17.c **** void HardFault_Handler(void) 294:../src/cr_startup_lpc17.c **** { 183 .loc 1 294 0 184 .cfi_startproc 185 @ args = 0, pretend = 0, frame = 0 186 @ frame_needed = 1, uses_anonymous_args = 0 187 @ link register save eliminated. 188 0000 80B4 push {r7} 189 .cfi_def_cfa_offset 4 190 .cfi_offset 7, -4 191 0002 00AF add r7, sp, #0 192 .cfi_def_cfa_register 7 193 .L10: 295:../src/cr_startup_lpc17.c **** while(1) 296:../src/cr_startup_lpc17.c **** { 297:../src/cr_startup_lpc17.c **** } 194 .loc 1 297 0 discriminator 1 195 0004 FEE7 b .L10 196 .cfi_endproc 197 .LFE2: 199 0006 00BF .section .text.MemManage_Handler,"ax",%progbits 200 .align 2 201 .weak MemManage_Handler 202 .thumb 203 .thumb_func 205 MemManage_Handler: 206 .LFB3: 298:../src/cr_startup_lpc17.c **** } 299:../src/cr_startup_lpc17.c **** 300:../src/cr_startup_lpc17.c **** void MemManage_Handler(void) 301:../src/cr_startup_lpc17.c **** { 207 .loc 1 301 0 208 .cfi_startproc 209 @ args = 0, pretend = 0, frame = 0 210 @ frame_needed = 1, uses_anonymous_args = 0 211 @ link register save eliminated. 212 0000 80B4 push {r7} 213 .cfi_def_cfa_offset 4 214 .cfi_offset 7, -4 215 0002 00AF add r7, sp, #0 216 .cfi_def_cfa_register 7 217 .L12: 302:../src/cr_startup_lpc17.c **** while(1) 303:../src/cr_startup_lpc17.c **** { 304:../src/cr_startup_lpc17.c **** } 218 .loc 1 304 0 discriminator 1 219 0004 FEE7 b .L12 220 .cfi_endproc 221 .LFE3: 223 0006 00BF .section .text.BusFault_Handler,"ax",%progbits 224 .align 2 225 .weak BusFault_Handler 226 .thumb 227 .thumb_func 229 BusFault_Handler: 230 .LFB4: 305:../src/cr_startup_lpc17.c **** } 306:../src/cr_startup_lpc17.c **** 307:../src/cr_startup_lpc17.c **** void BusFault_Handler(void) 308:../src/cr_startup_lpc17.c **** { 231 .loc 1 308 0 232 .cfi_startproc 233 @ args = 0, pretend = 0, frame = 0 234 @ frame_needed = 1, uses_anonymous_args = 0 235 @ link register save eliminated. 236 0000 80B4 push {r7} 237 .cfi_def_cfa_offset 4 238 .cfi_offset 7, -4 239 0002 00AF add r7, sp, #0 240 .cfi_def_cfa_register 7 241 .L14: 309:../src/cr_startup_lpc17.c **** while(1) 310:../src/cr_startup_lpc17.c **** { 311:../src/cr_startup_lpc17.c **** } 242 .loc 1 311 0 discriminator 1 243 0004 FEE7 b .L14 244 .cfi_endproc 245 .LFE4: 247 0006 00BF .section .text.UsageFault_Handler,"ax",%progbits 248 .align 2 249 .weak UsageFault_Handler 250 .thumb 251 .thumb_func 253 UsageFault_Handler: 254 .LFB5: 312:../src/cr_startup_lpc17.c **** } 313:../src/cr_startup_lpc17.c **** 314:../src/cr_startup_lpc17.c **** void UsageFault_Handler(void) 315:../src/cr_startup_lpc17.c **** { 255 .loc 1 315 0 256 .cfi_startproc 257 @ args = 0, pretend = 0, frame = 0 258 @ frame_needed = 1, uses_anonymous_args = 0 259 @ link register save eliminated. 260 0000 80B4 push {r7} 261 .cfi_def_cfa_offset 4 262 .cfi_offset 7, -4 263 0002 00AF add r7, sp, #0 264 .cfi_def_cfa_register 7 265 .L16: 316:../src/cr_startup_lpc17.c **** while(1) 317:../src/cr_startup_lpc17.c **** { 318:../src/cr_startup_lpc17.c **** } 266 .loc 1 318 0 discriminator 1 267 0004 FEE7 b .L16 268 .cfi_endproc 269 .LFE5: 271 0006 00BF .section .text.SVCall_Handler,"ax",%progbits 272 .align 2 273 .weak SVCall_Handler 274 .thumb 275 .thumb_func 277 SVCall_Handler: 278 .LFB6: 319:../src/cr_startup_lpc17.c **** } 320:../src/cr_startup_lpc17.c **** 321:../src/cr_startup_lpc17.c **** void SVCall_Handler(void) 322:../src/cr_startup_lpc17.c **** { 279 .loc 1 322 0 280 .cfi_startproc 281 @ args = 0, pretend = 0, frame = 0 282 @ frame_needed = 1, uses_anonymous_args = 0 283 @ link register save eliminated. 284 0000 80B4 push {r7} 285 .cfi_def_cfa_offset 4 286 .cfi_offset 7, -4 287 0002 00AF add r7, sp, #0 288 .cfi_def_cfa_register 7 289 .L18: 323:../src/cr_startup_lpc17.c **** while(1) 324:../src/cr_startup_lpc17.c **** { 325:../src/cr_startup_lpc17.c **** } 290 .loc 1 325 0 discriminator 1 291 0004 FEE7 b .L18 292 .cfi_endproc 293 .LFE6: 295 0006 00BF .section .text.DebugMon_Handler,"ax",%progbits 296 .align 2 297 .weak DebugMon_Handler 298 .thumb 299 .thumb_func 301 DebugMon_Handler: 302 .LFB7: 326:../src/cr_startup_lpc17.c **** } 327:../src/cr_startup_lpc17.c **** 328:../src/cr_startup_lpc17.c **** void DebugMon_Handler(void) 329:../src/cr_startup_lpc17.c **** { 303 .loc 1 329 0 304 .cfi_startproc 305 @ args = 0, pretend = 0, frame = 0 306 @ frame_needed = 1, uses_anonymous_args = 0 307 @ link register save eliminated. 308 0000 80B4 push {r7} 309 .cfi_def_cfa_offset 4 310 .cfi_offset 7, -4 311 0002 00AF add r7, sp, #0 312 .cfi_def_cfa_register 7 313 .L20: 330:../src/cr_startup_lpc17.c **** while(1) 331:../src/cr_startup_lpc17.c **** { 332:../src/cr_startup_lpc17.c **** } 314 .loc 1 332 0 discriminator 1 315 0004 FEE7 b .L20 316 .cfi_endproc 317 .LFE7: 319 0006 00BF .section .text.PendSV_Handler,"ax",%progbits 320 .align 2 321 .weak PendSV_Handler 322 .thumb 323 .thumb_func 325 PendSV_Handler: 326 .LFB8: 333:../src/cr_startup_lpc17.c **** } 334:../src/cr_startup_lpc17.c **** 335:../src/cr_startup_lpc17.c **** void PendSV_Handler(void) 336:../src/cr_startup_lpc17.c **** { 327 .loc 1 336 0 328 .cfi_startproc 329 @ args = 0, pretend = 0, frame = 0 330 @ frame_needed = 1, uses_anonymous_args = 0 331 @ link register save eliminated. 332 0000 80B4 push {r7} 333 .cfi_def_cfa_offset 4 334 .cfi_offset 7, -4 335 0002 00AF add r7, sp, #0 336 .cfi_def_cfa_register 7 337 .L22: 337:../src/cr_startup_lpc17.c **** while(1) 338:../src/cr_startup_lpc17.c **** { 339:../src/cr_startup_lpc17.c **** } 338 .loc 1 339 0 discriminator 1 339 0004 FEE7 b .L22 340 .cfi_endproc 341 .LFE8: 343 0006 00BF .section .text.SysTick_Handler,"ax",%progbits 344 .align 2 345 .weak SysTick_Handler 346 .thumb 347 .thumb_func 349 SysTick_Handler: 350 .LFB9: 340:../src/cr_startup_lpc17.c **** } 341:../src/cr_startup_lpc17.c **** 342:../src/cr_startup_lpc17.c **** void SysTick_Handler(void) 343:../src/cr_startup_lpc17.c **** { 351 .loc 1 343 0 352 .cfi_startproc 353 @ args = 0, pretend = 0, frame = 0 354 @ frame_needed = 1, uses_anonymous_args = 0 355 @ link register save eliminated. 356 0000 80B4 push {r7} 357 .cfi_def_cfa_offset 4 358 .cfi_offset 7, -4 359 0002 00AF add r7, sp, #0 360 .cfi_def_cfa_register 7 361 .L24: 344:../src/cr_startup_lpc17.c **** while(1) 345:../src/cr_startup_lpc17.c **** { 346:../src/cr_startup_lpc17.c **** } 362 .loc 1 346 0 discriminator 1 363 0004 FEE7 b .L24 364 .cfi_endproc 365 .LFE9: 367 0006 00BF .section .text.IntDefaultHandler,"ax",%progbits 368 .align 2 369 .weak IntDefaultHandler 370 .thumb 371 .thumb_func 373 IntDefaultHandler: 374 .LFB10: 347:../src/cr_startup_lpc17.c **** } 348:../src/cr_startup_lpc17.c **** 349:../src/cr_startup_lpc17.c **** 350:../src/cr_startup_lpc17.c **** //***************************************************************************** 351:../src/cr_startup_lpc17.c **** // 352:../src/cr_startup_lpc17.c **** // Processor ends up here if an unexpected interrupt occurs or a handler 353:../src/cr_startup_lpc17.c **** // is not present in the application code. 354:../src/cr_startup_lpc17.c **** // 355:../src/cr_startup_lpc17.c **** //***************************************************************************** 356:../src/cr_startup_lpc17.c **** void IntDefaultHandler(void) 357:../src/cr_startup_lpc17.c **** { 375 .loc 1 357 0 376 .cfi_startproc 377 @ args = 0, pretend = 0, frame = 0 378 @ frame_needed = 1, uses_anonymous_args = 0 379 @ link register save eliminated. 380 0000 80B4 push {r7} 381 .cfi_def_cfa_offset 4 382 .cfi_offset 7, -4 383 0002 00AF add r7, sp, #0 384 .cfi_def_cfa_register 7 385 .L26: 358:../src/cr_startup_lpc17.c **** // 359:../src/cr_startup_lpc17.c **** // Go into an infinite loop. 360:../src/cr_startup_lpc17.c **** // 361:../src/cr_startup_lpc17.c **** while(1) 362:../src/cr_startup_lpc17.c **** { 363:../src/cr_startup_lpc17.c **** } 386 .loc 1 363 0 discriminator 1 387 0004 FEE7 b .L26 388 .cfi_endproc 389 .LFE10: 391 .weak CANActivity_IRQHandler 392 .thumb_set CANActivity_IRQHandler,IntDefaultHandler 393 .weak USBActivity_IRQHandler 394 .thumb_set USBActivity_IRQHandler,IntDefaultHandler 395 .weak PLL1_IRQHandler 396 .thumb_set PLL1_IRQHandler,IntDefaultHandler 397 .weak QEI_IRQHandler 398 .thumb_set QEI_IRQHandler,IntDefaultHandler 399 .weak MCPWM_IRQHandler 400 .thumb_set MCPWM_IRQHandler,IntDefaultHandler 401 .weak RIT_IRQHandler 402 .thumb_set RIT_IRQHandler,IntDefaultHandler 403 .weak ENET_IRQHandler 404 .thumb_set ENET_IRQHandler,IntDefaultHandler 405 .weak I2S_IRQHandler 406 .thumb_set I2S_IRQHandler,IntDefaultHandler 407 .weak DMA_IRQHandler 408 .thumb_set DMA_IRQHandler,IntDefaultHandler 409 .weak CAN_IRQHandler 410 .thumb_set CAN_IRQHandler,IntDefaultHandler 411 .weak USB_IRQHandler 412 .thumb_set USB_IRQHandler,IntDefaultHandler 413 .weak BOD_IRQHandler 414 .thumb_set BOD_IRQHandler,IntDefaultHandler 415 .weak ADC_IRQHandler 416 .thumb_set ADC_IRQHandler,IntDefaultHandler 417 .weak EINT3_IRQHandler 418 .thumb_set EINT3_IRQHandler,IntDefaultHandler 419 .weak EINT2_IRQHandler 420 .thumb_set EINT2_IRQHandler,IntDefaultHandler 421 .weak EINT1_IRQHandler 422 .thumb_set EINT1_IRQHandler,IntDefaultHandler 423 .weak EINT0_IRQHandler 424 .thumb_set EINT0_IRQHandler,IntDefaultHandler 425 .weak RTC_IRQHandler 426 .thumb_set RTC_IRQHandler,IntDefaultHandler 427 .weak PLL0_IRQHandler 428 .thumb_set PLL0_IRQHandler,IntDefaultHandler 429 .weak SSP1_IRQHandler 430 .thumb_set SSP1_IRQHandler,IntDefaultHandler 431 .weak SSP0_IRQHandler 432 .thumb_set SSP0_IRQHandler,IntDefaultHandler 433 .weak SPI_IRQHandler 434 .thumb_set SPI_IRQHandler,IntDefaultHandler 435 .weak I2C2_IRQHandler 436 .thumb_set I2C2_IRQHandler,IntDefaultHandler 437 .weak I2C1_IRQHandler 438 .thumb_set I2C1_IRQHandler,IntDefaultHandler 439 .weak I2C0_IRQHandler 440 .thumb_set I2C0_IRQHandler,IntDefaultHandler 441 .weak PWM1_IRQHandler 442 .thumb_set PWM1_IRQHandler,IntDefaultHandler 443 .weak UART3_IRQHandler 444 .thumb_set UART3_IRQHandler,IntDefaultHandler 445 .weak UART2_IRQHandler 446 .thumb_set UART2_IRQHandler,IntDefaultHandler 447 .weak UART1_IRQHandler 448 .thumb_set UART1_IRQHandler,IntDefaultHandler 449 .weak UART0_IRQHandler 450 .thumb_set UART0_IRQHandler,IntDefaultHandler 451 .weak TIMER3_IRQHandler 452 .thumb_set TIMER3_IRQHandler,IntDefaultHandler 453 .weak TIMER2_IRQHandler 454 .thumb_set TIMER2_IRQHandler,IntDefaultHandler 455 .weak TIMER1_IRQHandler 456 .thumb_set TIMER1_IRQHandler,IntDefaultHandler 457 .weak TIMER0_IRQHandler 458 .thumb_set TIMER0_IRQHandler,IntDefaultHandler 459 .weak WDT_IRQHandler 460 .thumb_set WDT_IRQHandler,IntDefaultHandler 461 0006 00BF .text 462 .Letext0: DEFINED SYMBOLS *ABS*:0000000000000000 cr_startup_lpc17.c /var/folders/qx/3thh6vs13c76w0sbjx53xp240000gn/T//ccqkblyi.s:24 .isr_vector:0000000000000000 g_pfnVectors /var/folders/qx/3thh6vs13c76w0sbjx53xp240000gn/T//ccqkblyi.s:21 .isr_vector:0000000000000000 $d /var/folders/qx/3thh6vs13c76w0sbjx53xp240000gn/T//ccqkblyi.s:82 .text.ResetISR:0000000000000000 ResetISR /var/folders/qx/3thh6vs13c76w0sbjx53xp240000gn/T//ccqkblyi.s:157 .text.NMI_Handler:0000000000000000 NMI_Handler /var/folders/qx/3thh6vs13c76w0sbjx53xp240000gn/T//ccqkblyi.s:181 .text.HardFault_Handler:0000000000000000 HardFault_Handler /var/folders/qx/3thh6vs13c76w0sbjx53xp240000gn/T//ccqkblyi.s:205 .text.MemManage_Handler:0000000000000000 MemManage_Handler /var/folders/qx/3thh6vs13c76w0sbjx53xp240000gn/T//ccqkblyi.s:229 .text.BusFault_Handler:0000000000000000 BusFault_Handler /var/folders/qx/3thh6vs13c76w0sbjx53xp240000gn/T//ccqkblyi.s:253 .text.UsageFault_Handler:0000000000000000 UsageFault_Handler /var/folders/qx/3thh6vs13c76w0sbjx53xp240000gn/T//ccqkblyi.s:277 .text.SVCall_Handler:0000000000000000 SVCall_Handler /var/folders/qx/3thh6vs13c76w0sbjx53xp240000gn/T//ccqkblyi.s:301 .text.DebugMon_Handler:0000000000000000 DebugMon_Handler /var/folders/qx/3thh6vs13c76w0sbjx53xp240000gn/T//ccqkblyi.s:325 .text.PendSV_Handler:0000000000000000 PendSV_Handler /var/folders/qx/3thh6vs13c76w0sbjx53xp240000gn/T//ccqkblyi.s:349 .text.SysTick_Handler:0000000000000000 SysTick_Handler /var/folders/qx/3thh6vs13c76w0sbjx53xp240000gn/T//ccqkblyi.s:373 .text.IntDefaultHandler:0000000000000000 WDT_IRQHandler /var/folders/qx/3thh6vs13c76w0sbjx53xp240000gn/T//ccqkblyi.s:373 .text.IntDefaultHandler:0000000000000000 TIMER0_IRQHandler /var/folders/qx/3thh6vs13c76w0sbjx53xp240000gn/T//ccqkblyi.s:373 .text.IntDefaultHandler:0000000000000000 TIMER1_IRQHandler /var/folders/qx/3thh6vs13c76w0sbjx53xp240000gn/T//ccqkblyi.s:373 .text.IntDefaultHandler:0000000000000000 TIMER2_IRQHandler /var/folders/qx/3thh6vs13c76w0sbjx53xp240000gn/T//ccqkblyi.s:373 .text.IntDefaultHandler:0000000000000000 TIMER3_IRQHandler /var/folders/qx/3thh6vs13c76w0sbjx53xp240000gn/T//ccqkblyi.s:373 .text.IntDefaultHandler:0000000000000000 UART0_IRQHandler /var/folders/qx/3thh6vs13c76w0sbjx53xp240000gn/T//ccqkblyi.s:373 .text.IntDefaultHandler:0000000000000000 UART1_IRQHandler /var/folders/qx/3thh6vs13c76w0sbjx53xp240000gn/T//ccqkblyi.s:373 .text.IntDefaultHandler:0000000000000000 UART2_IRQHandler /var/folders/qx/3thh6vs13c76w0sbjx53xp240000gn/T//ccqkblyi.s:373 .text.IntDefaultHandler:0000000000000000 UART3_IRQHandler /var/folders/qx/3thh6vs13c76w0sbjx53xp240000gn/T//ccqkblyi.s:373 .text.IntDefaultHandler:0000000000000000 PWM1_IRQHandler /var/folders/qx/3thh6vs13c76w0sbjx53xp240000gn/T//ccqkblyi.s:373 .text.IntDefaultHandler:0000000000000000 I2C0_IRQHandler /var/folders/qx/3thh6vs13c76w0sbjx53xp240000gn/T//ccqkblyi.s:373 .text.IntDefaultHandler:0000000000000000 I2C1_IRQHandler /var/folders/qx/3thh6vs13c76w0sbjx53xp240000gn/T//ccqkblyi.s:373 .text.IntDefaultHandler:0000000000000000 I2C2_IRQHandler /var/folders/qx/3thh6vs13c76w0sbjx53xp240000gn/T//ccqkblyi.s:373 .text.IntDefaultHandler:0000000000000000 SPI_IRQHandler /var/folders/qx/3thh6vs13c76w0sbjx53xp240000gn/T//ccqkblyi.s:373 .text.IntDefaultHandler:0000000000000000 SSP0_IRQHandler /var/folders/qx/3thh6vs13c76w0sbjx53xp240000gn/T//ccqkblyi.s:373 .text.IntDefaultHandler:0000000000000000 SSP1_IRQHandler /var/folders/qx/3thh6vs13c76w0sbjx53xp240000gn/T//ccqkblyi.s:373 .text.IntDefaultHandler:0000000000000000 PLL0_IRQHandler /var/folders/qx/3thh6vs13c76w0sbjx53xp240000gn/T//ccqkblyi.s:373 .text.IntDefaultHandler:0000000000000000 RTC_IRQHandler /var/folders/qx/3thh6vs13c76w0sbjx53xp240000gn/T//ccqkblyi.s:373 .text.IntDefaultHandler:0000000000000000 EINT0_IRQHandler /var/folders/qx/3thh6vs13c76w0sbjx53xp240000gn/T//ccqkblyi.s:373 .text.IntDefaultHandler:0000000000000000 EINT1_IRQHandler /var/folders/qx/3thh6vs13c76w0sbjx53xp240000gn/T//ccqkblyi.s:373 .text.IntDefaultHandler:0000000000000000 EINT2_IRQHandler /var/folders/qx/3thh6vs13c76w0sbjx53xp240000gn/T//ccqkblyi.s:373 .text.IntDefaultHandler:0000000000000000 EINT3_IRQHandler /var/folders/qx/3thh6vs13c76w0sbjx53xp240000gn/T//ccqkblyi.s:373 .text.IntDefaultHandler:0000000000000000 ADC_IRQHandler /var/folders/qx/3thh6vs13c76w0sbjx53xp240000gn/T//ccqkblyi.s:373 .text.IntDefaultHandler:0000000000000000 BOD_IRQHandler /var/folders/qx/3thh6vs13c76w0sbjx53xp240000gn/T//ccqkblyi.s:373 .text.IntDefaultHandler:0000000000000000 USB_IRQHandler /var/folders/qx/3thh6vs13c76w0sbjx53xp240000gn/T//ccqkblyi.s:373 .text.IntDefaultHandler:0000000000000000 CAN_IRQHandler /var/folders/qx/3thh6vs13c76w0sbjx53xp240000gn/T//ccqkblyi.s:373 .text.IntDefaultHandler:0000000000000000 DMA_IRQHandler /var/folders/qx/3thh6vs13c76w0sbjx53xp240000gn/T//ccqkblyi.s:373 .text.IntDefaultHandler:0000000000000000 I2S_IRQHandler /var/folders/qx/3thh6vs13c76w0sbjx53xp240000gn/T//ccqkblyi.s:373 .text.IntDefaultHandler:0000000000000000 ENET_IRQHandler /var/folders/qx/3thh6vs13c76w0sbjx53xp240000gn/T//ccqkblyi.s:373 .text.IntDefaultHandler:0000000000000000 RIT_IRQHandler /var/folders/qx/3thh6vs13c76w0sbjx53xp240000gn/T//ccqkblyi.s:373 .text.IntDefaultHandler:0000000000000000 MCPWM_IRQHandler /var/folders/qx/3thh6vs13c76w0sbjx53xp240000gn/T//ccqkblyi.s:373 .text.IntDefaultHandler:0000000000000000 QEI_IRQHandler /var/folders/qx/3thh6vs13c76w0sbjx53xp240000gn/T//ccqkblyi.s:373 .text.IntDefaultHandler:0000000000000000 PLL1_IRQHandler /var/folders/qx/3thh6vs13c76w0sbjx53xp240000gn/T//ccqkblyi.s:373 .text.IntDefaultHandler:0000000000000000 USBActivity_IRQHandler /var/folders/qx/3thh6vs13c76w0sbjx53xp240000gn/T//ccqkblyi.s:373 .text.IntDefaultHandler:0000000000000000 CANActivity_IRQHandler /var/folders/qx/3thh6vs13c76w0sbjx53xp240000gn/T//ccqkblyi.s:77 .text.ResetISR:0000000000000000 $t /var/folders/qx/3thh6vs13c76w0sbjx53xp240000gn/T//ccqkblyi.s:127 .text.ResetISR:0000000000000030 zero_loop /var/folders/qx/3thh6vs13c76w0sbjx53xp240000gn/T//ccqkblyi.s:145 .text.ResetISR:0000000000000044 $d /var/folders/qx/3thh6vs13c76w0sbjx53xp240000gn/T//ccqkblyi.s:152 .text.NMI_Handler:0000000000000000 $t /var/folders/qx/3thh6vs13c76w0sbjx53xp240000gn/T//ccqkblyi.s:176 .text.HardFault_Handler:0000000000000000 $t /var/folders/qx/3thh6vs13c76w0sbjx53xp240000gn/T//ccqkblyi.s:200 .text.MemManage_Handler:0000000000000000 $t /var/folders/qx/3thh6vs13c76w0sbjx53xp240000gn/T//ccqkblyi.s:224 .text.BusFault_Handler:0000000000000000 $t /var/folders/qx/3thh6vs13c76w0sbjx53xp240000gn/T//ccqkblyi.s:248 .text.UsageFault_Handler:0000000000000000 $t /var/folders/qx/3thh6vs13c76w0sbjx53xp240000gn/T//ccqkblyi.s:272 .text.SVCall_Handler:0000000000000000 $t /var/folders/qx/3thh6vs13c76w0sbjx53xp240000gn/T//ccqkblyi.s:296 .text.DebugMon_Handler:0000000000000000 $t /var/folders/qx/3thh6vs13c76w0sbjx53xp240000gn/T//ccqkblyi.s:320 .text.PendSV_Handler:0000000000000000 $t /var/folders/qx/3thh6vs13c76w0sbjx53xp240000gn/T//ccqkblyi.s:344 .text.SysTick_Handler:0000000000000000 $t /var/folders/qx/3thh6vs13c76w0sbjx53xp240000gn/T//ccqkblyi.s:368 .text.IntDefaultHandler:0000000000000000 $t /var/folders/qx/3thh6vs13c76w0sbjx53xp240000gn/T//ccqkblyi.s:373 .text.IntDefaultHandler:0000000000000000 IntDefaultHandler /var/folders/qx/3thh6vs13c76w0sbjx53xp240000gn/T//ccqkblyi.s:4225 .text.ResetISR:0000000000000050 $d .debug_frame:0000000000000010 $d .group:0000000000000000 wm4.0.0c5e979f1ec464b8f03bc190bd321363 .group:0000000000000000 wm4.redlib_version.h.14.62abddb5b4efb2dd619a7dca5647eb78 .group:0000000000000000 wm4.libconfigarm.h.18.48d18a57a6aa6fedadbcea02294a713f .group:0000000000000000 wm4.stdint.h.30.30f575a65a9bde434c705acf40986e1b UNDEFINED SYMBOLS _vStackTop _bss _ebss SystemInit __main _etext _data _edata
runtime/branches.asm
paulscottrobson/amoral
3
247315
<filename>runtime/branches.asm ; ******************************************************************************************* ; ******************************************************************************************* ; ; File: branches.asm ; Date: 14th November 2020 ; Purpose: Branch handlers ; Author: <NAME> (<EMAIL>) ; ; ******************************************************************************************* ; ******************************************************************************************* ; ******************************************************************************************* ; ; Unconditional Branch ; ; ******************************************************************************************* Branch_Always: ;; BRA $8B ldy #0 lda (Pctr),y tax iny lda (Pctr),y sta Pctr+1 stx Pctr jmp ExecLoop ; ******************************************************************************************* ; ; Branch Conditional ; ; ******************************************************************************************* Branch_Zero: ;; BEQ $8C lda Reg16 ora Reg16+1 beq Branch_Always bne Branch_Fail Branch_NonZero: ;; BNE $8D lda Reg16 ora Reg16+1 bne Branch_Always Branch_Fail: clc lda Pctr adc #2 sta Pctr bne _BFNoCarry inc Pctr+1 _BFNoCarry: jmp ExecLoop Branch_Minus: ;; BMI $8E lda Reg16+1 bmi Branch_Always bpl Branch_Fail Branch_Positive: ;; BPL $8F lda Reg16+1 bpl Branch_Always bmi Branch_Fail
oeis/071/A071281.asm
neoneye/loda-programs
11
87500
; A071281: Numerators of Peirce sequence of order 3. ; 0,0,0,1,1,2,2,3,1,4,3,5,4,6,2,7,5,8,6,9,3,10,7,11,8,12,4,13,9,14,10,15,5,16,11,17,12,18,6,19,13,20,14,21,7,22,15,23,16,24,8,25,17,26,18,27,9,28,19,29,20,30,10,31,21,32,22,33,11,34,23,35,24,36,12,37,25,38 mov $2,-2 bin $2,$0 div $2,2 mov $5,3 lpb $5 sub $0,$2 mov $3,$5 cmp $3,0 add $5,$3 div $0,$5 sub $0,$2 dif $0,2 add $4,15 add $4,$0 add $2,$4 trn $5,7 lpe mov $0,$2 sub $0,15
engine/disk.asm
richard42/dynosprite
10
173770
********************************************************************************* * DynoSprite - disk.asm * Copyright (c) 2013, <NAME> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright notice, this * list of conditions and the following disclaimer. * * * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * * 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. ********************************************************************************* DC STRUCT OPC rmb 1 DRV rmb 1 TRK rmb 1 SEC rmb 1 BPT rmb 2 STA rmb 1 ENDSTRUCT *********************************************************** * Disk_DirInit: * We read and cache the disk 0 directory and FAT in this function, * for later use by the file handling functions * * - IN: N/A * - OUT: N/A * - Trashed: A,B,X,Y,U *********************************************************** Disk_DirInit ldx $C006 * get pointer to DSKCON parameter block lda #2 sta DC.OPC,x * Operation Code == Read sector * we won't set the drive # here, so that we will load everything from the * most recently accessed drive (which loaded this program, so should contain our data) lda #17 sta DC.TRK,x * Track 17 (directory track) lda #2 sta DC.SEC,x * Sector 2 (FAT) ldd #Disk_DirSector std DC.BPT,x * Sector Buffer == DiskDirSector jsr System_CallDSKCON ! ldy #Disk_FAT ldu #Disk_DirSector ldb #68 ! lda ,u+ * copy 68 bytes of FAT into destination table sta ,y+ decb bne < lda #3 sta DC.SEC,x * sector 3 (first 8 directory entries) sta Disk_DirSectorNum jsr System_CallDSKCON clr $FF40 * turn off drive motor clr $986 * clear DGRAM also, so Disk BASIC knows that drive motor was shut off rts *********************************************************** * Disk_FileOpen: * We search for the given filename in the directory, and * set initial parameters in our data structures * * - IN: X = Pointer to filename (11 characters, no extension separator) * - OUT: N/A * - Trashed: A,B,U *********************************************************** DirSecLeft@ zmb 1 Disk_FileOpen IFDEF DEBUG lda Disk_FileIsOpen beq > swi * error, previous file was not closed ENDC ! lda #9 * maximum number of directory sectors to search (3-11) sta DirSecLeft@ SearchDirSector@ ldu #Disk_DirSector * search for matching filename FindMatch@ pshs x,u ldb #11 ! lda ,u+ cmpa ,x+ bne DirEntryNoMatch@ decb beq DirEntryMatch@ bra < DirEntryNoMatch@ puls x,u leau 32,u * go to next directory entry cmpu #Disk_DirSector+256 blo FindMatch@ SectorNoMatch@ dec DirSecLeft@ bne LoadNextDirSector@ swi * Error: file not found in 72 directory entries LoadNextDirSector@ pshs x ldx $C006 * get pointer to DSKCON parameter block lda #2 sta DC.OPC,x * Operation Code == Read sector * we won't set the drive # here, so that we will load everything from the * most recently accessed drive (which loaded this program, so should contain our data) lda #17 sta DC.TRK,x * Track 17 (directory track) lda Disk_DirSectorNum inca * advance to next directory sector cmpa #12 blo > lda #3 * wrap around from 12 to 3 ! sta Disk_DirSectorNum sta DC.SEC,x * Directory Sector Number ldd #Disk_DirSector std DC.BPT,x * Sector Buffer == DiskDirSector jsr System_CallDSKCON * read sector puls x bra SearchDirSector@ * go look through the directory entries in the newly loaded sector DirEntryMatch@ puls x,u IFDEF DEBUG inc Disk_FileIsOpen clr Disk_FileAtEnd ENDC * store starting location lda 13,u * First granule in file sta Disk_FileCurGranule tfr a,b lsra cmpa #17 blo > inca ! sta Disk_FileCurTrack andb #1 lda #9 mul incb stb Disk_FileCurSector clr Disk_FileCurByte * calculate and store number of granules and sectors remaining ldd 14,u * number of bytes in use in last sector of file std Disk_FileBytesInLastSec ldu #Disk_FAT clr Disk_FileGranulesLeft ldd #$900 * assume the file is at least 1 granule long std Disk_FileBytesInCurGran ldb Disk_FileCurGranule FileLengthLoop@ lda b,u IFDEF DEBUG cmpa #$ff bne > swi * error in FAT: file points to empty granule ENDC ! bita #$C0 bne LastGranule@ inc Disk_FileGranulesLeft tfr a,b bra FileLengthLoop@ LastGranule@ tst Disk_FileGranulesLeft * is this file > 1 granule? bne > anda #$1f * no, so calculate size of current (final) granule clrb addd Disk_FileBytesInLastSec deca std Disk_FileBytesInCurGran ! rts *********************************************************** * Disk_FileSeekForward: * * - IN: D = distance to seek in bytes * - OUT: N/A * - Trashed: A,B,X,U *********************************************************** * SeekDistance@ rmd 1 * Disk_FileSeekForward std SeekDistance@ bne NonZeroSeek@ rts * seek 0 is NOP NonZeroSeek@ IFDEF DEBUG tst Disk_FileAtEnd beq > swi * seek past end of file ! tst Disk_FileIsOpen bne > swi * error, file is not open ENDC ! cmpd Disk_FileBytesInCurGran * is the seeking end point in this granule? bhs NotInThisGranule@ * update counter of remaining bytes in current granule ldd Disk_FileBytesInCurGran subd SeekDistance@ std Disk_FileBytesInCurGran * update current sector/byte ldd SeekDistance@ addd Disk_FileCurSector * updated sector/byte location std Disk_FileCurSector rts NotInThisGranule@ subd Disk_FileBytesInCurGran * D is remaining bytes to seek forward after current granule tst Disk_FileGranulesLeft * are there any remaining granules in this file? bne SeekNextGranule@ cmpd #0 * no granules left, so we better be at end of file beq > swi * Error: seek past end of file IFDEF DEBUG ! inc Disk_FileAtEnd ENDC ! rts SeekNextGranule@ tfr d,x * X = bytes to seek forward, starting w/ next granule lda Disk_FileCurGranule ldu #Disk_FAT GetFATEntry@ ldb a,u * Get next granule dec Disk_FileGranulesLeft cmpx #$900 * is the seek end point in this granule? blo InThisGranule@ IFDEF DEBUG bitb #$C0 beq > swi * Error: seek past end of file ENDC ! leax -$900,x tfr b,a bra GetFATEntry@ InThisGranule@ stx SeekDistance@ * save the offset to seek within this granule stb Disk_FileCurGranule * B contains the granule number which includes our seek end point pshs b lda b,u bita #$C0 * is this granule full? beq > anda #$1F * no, it is partial, so calculate # of bytes in last granule clrb addd Disk_FileBytesInLastSec deca bra ReCalcPosition@ ! ldd #$900 ReCalcPosition@ subd SeekDistance@ IFDEF DEBUG bhs > swi * Error: seek past end of file ENDC ! std Disk_FileBytesInCurGran * bytes remaining in current granule after seek operation lda ,s lsra cmpa #17 blo > inca ! sta Disk_FileCurTrack puls a anda #1 eora #1 deca anda #9 inca * B is starting sector # of new granule clrb addd SeekDistance@ * D is final sector/byte of file pointer after seeking std Disk_FileCurSector rts *********************************************************** * Disk_FileRead: * * - IN: Y = number of bytes to read, U = pointer to buffer to load data * - OUT: N/A * - Trashed: A,B,X,Y,U *********************************************************** Disk_FileRead cmpy #0 bne NonZeroRead@ rts * read 0 bytes is NOP NonZeroRead@ IFDEF DEBUG tst Disk_FileIsOpen bne > swi * error, no file is open ! tst Disk_FileAtEnd beq > swi * Error: file is already at end ENDC ! ldx Disk_FileCurTrack * current file location cmpx Disk_CachedTrackIdx * do we already have this sector in disk cache? beq > pshs y,u jsr Disk_ReadSector * no, so go read this sector puls y,u ! ldx #Disk_CacheSector ldb Disk_FileCurByte abx clrb * B is negative counter of bytes copied CopyLoop@ lda ,x+ sta ,u+ decb cmpx #Disk_CacheSector+256 * did we just read the last byte in cached sector? beq ReadNextSector@ leay -1,y bne CopyLoop@ * continue until no bytes remaining to copy lda #$ff * D is negative number of bytes copied from this sector addd Disk_FileBytesInCurGran IFDEF DEBUG bpl > swi * Error: read past end of file ENDC ! std Disk_FileBytesInCurGran tfr x,d subd #Disk_CacheSector stb Disk_FileCurByte * update byte offset in current sector rts ReadNextSector@ clr Disk_FileCurByte * next copy will start at beginning of sector lda #$ff * D is negative number of bytes copied from this sector addd Disk_FileBytesInCurGran IFDEF DEBUG bpl > swi * Error: read past end of file ENDC ! std Disk_FileBytesInCurGran beq ReadNextGranule@ inc Disk_FileCurSector * read next sector pshs u,y jsr Disk_ReadSector puls u,y leay -1,y * update bytes remaining to copy bne > rts * all done, new sector is in cache with 256 bytes unread ! ldx #Disk_CacheSector clrb bra CopyLoop@ ReadNextGranule@ pshs u,y lda Disk_FileCurGranule ldu #Disk_FAT ldb a,u * B is next granule number bitb #$C0 beq NextGranValid@ IFDEF DEBUG cmpy #1 * Previous granule was last one, so we better be done copying beq > swi * Error: read past end of file ! inc Disk_FileAtEnd ENDC rts NextGranValid@ stb Disk_FileCurGranule dec Disk_FileGranulesLeft IFDEF DEBUG bpl > swi * Error: broken FAT or internal logic ENDC ! pshs b lda b,u bita #$C0 * is this granule full? beq > anda #$1F * no, it is partial, so calculate # of bytes in last granule clrb addd Disk_FileBytesInLastSec deca bra StoreNewGranSize@ ! ldd #$900 StoreNewGranSize@ std Disk_FileBytesInCurGran * bytes remaining in new granule lda ,s lsra cmpa #17 blo > inca ! sta Disk_FileCurTrack puls a anda #1 ldb #9 mul incb * B is starting sector # of new granule stb Disk_FileCurSector jsr Disk_ReadSector * read first sector in new granule puls u,y leay -1,y * update bytes remaining to copy bne > rts * all done, new sector is in cache with 256 bytes unread ! ldx #Disk_CacheSector clrb jmp CopyLoop@ Disk_ReadSector ldx $C006 * get pointer to DSKCON parameter block lda #2 sta DC.OPC,x * Operation Code == Read sector lda Disk_FileCurTrack sta Disk_CachedTrackIdx sta DC.TRK,x * Track lda Disk_FileCurSector sta Disk_CachedSectorIdx sta DC.SEC,x * Sector ldd #Disk_CacheSector std DC.BPT,x * Sector Buffer == Disk_CacheSector jsr System_CallDSKCON * read current sector ldx Disk_ProgressCallback * send progress callback after every sector read beq > jmp ,x ! rts *********************************************************** * Disk_FileClose: * * - IN: N/A * - OUT: N/A * - Trashed: None *********************************************************** Disk_FileClose IFDEF DEBUG tst Disk_FileIsOpen bne > swi * error, no file is open ! clr Disk_FileIsOpen ENDC clr $FF40 * turn off drive motor clr $986 * clear DGRAM also, so Disk BASIC knows that drive motor was shut off rts *********************************************************** * Disk_SetProgressCallback: * * - IN: X = address of callback function (or NULL) * - OUT: N/A * - Trashed: None *********************************************************** Disk_SetProgressCallback stx Disk_ProgressCallback rts
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0_notsx.log_21829_1487.asm
ljhsiun2/medusa
9
19040
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %r12 push %r13 push %rbp push %rcx push %rdi push %rsi lea addresses_WC_ht+0x17b5e, %r11 nop nop cmp $64876, %rdi mov (%r11), %r12w nop nop nop nop nop dec %rbp lea addresses_UC_ht+0xfee6, %r10 nop inc %rsi mov $0x6162636465666768, %rbp movq %rbp, %xmm6 movups %xmm6, (%r10) nop xor %rdi, %rdi lea addresses_WT_ht+0x1775e, %rsi lea addresses_WC_ht+0x1c21e, %rdi clflush (%rsi) nop nop xor %r13, %r13 mov $35, %rcx rep movsl nop nop nop nop nop xor %rbp, %rbp pop %rsi pop %rdi pop %rcx pop %rbp pop %r13 pop %r12 pop %r11 pop %r10 ret .global s_faulty_load s_faulty_load: push %r10 push %r13 push %r14 push %r8 push %rax push %rbx push %rcx push %rdi push %rsi // Store lea addresses_D+0x755e, %r10 nop add $59992, %rbx movl $0x51525354, (%r10) and $23196, %r14 // Store lea addresses_UC+0x1fd5e, %r14 nop nop nop and $60813, %r13 mov $0x5152535455565758, %rax movq %rax, (%r14) nop cmp $37035, %rbx // Store lea addresses_WT+0xdb5e, %r8 inc %rcx mov $0x5152535455565758, %rax movq %rax, %xmm0 movups %xmm0, (%r8) nop nop sub %r14, %r14 // Store lea addresses_A+0x1245e, %r14 nop nop nop nop nop and %rcx, %rcx mov $0x5152535455565758, %rbx movq %rbx, (%r14) nop nop nop nop inc %rax // Store lea addresses_WC+0x840e, %r14 nop nop nop inc %rcx mov $0x5152535455565758, %r13 movq %r13, %xmm3 vmovups %ymm3, (%r14) nop nop inc %rcx // Store lea addresses_A+0x835e, %r14 and %r13, %r13 mov $0x5152535455565758, %r8 movq %r8, (%r14) nop nop nop nop nop add %rax, %rax // Store lea addresses_PSE+0xd15e, %r8 xor $48085, %r13 mov $0x5152535455565758, %r10 movq %r10, %xmm7 vmovups %ymm7, (%r8) nop nop add %rbx, %rbx // Store lea addresses_PSE+0x1aa37, %rbx nop inc %r14 movw $0x5152, (%rbx) nop nop nop nop sub $64121, %r13 // REPMOV lea addresses_normal+0xa7c2, %rsi lea addresses_WC+0x163fe, %rdi nop nop nop nop nop xor $53533, %r13 mov $45, %rcx rep movsw nop nop cmp $26205, %r14 // Faulty Load lea addresses_PSE+0x1575e, %rax clflush (%rax) xor %r14, %r14 mov (%rax), %r10w lea oracles, %rcx and $0xff, %r10 shlq $12, %r10 mov (%rcx,%r10,1), %r10 pop %rsi pop %rdi pop %rcx pop %rbx pop %rax pop %r8 pop %r14 pop %r13 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'type': 'addresses_PSE', 'AVXalign': False, 'size': 4, 'NT': False, 'same': False, 'congruent': 0}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'type': 'addresses_D', 'AVXalign': False, 'size': 4, 'NT': False, 'same': False, 'congruent': 7}} {'OP': 'STOR', 'dst': {'type': 'addresses_UC', 'AVXalign': False, 'size': 8, 'NT': True, 'same': False, 'congruent': 7}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT', 'AVXalign': False, 'size': 16, 'NT': False, 'same': False, 'congruent': 9}} {'OP': 'STOR', 'dst': {'type': 'addresses_A', 'AVXalign': False, 'size': 8, 'NT': False, 'same': False, 'congruent': 8}} {'OP': 'STOR', 'dst': {'type': 'addresses_WC', 'AVXalign': False, 'size': 32, 'NT': False, 'same': False, 'congruent': 3}} {'OP': 'STOR', 'dst': {'type': 'addresses_A', 'AVXalign': False, 'size': 8, 'NT': False, 'same': False, 'congruent': 10}} {'OP': 'STOR', 'dst': {'type': 'addresses_PSE', 'AVXalign': False, 'size': 32, 'NT': False, 'same': False, 'congruent': 9}} {'OP': 'STOR', 'dst': {'type': 'addresses_PSE', 'AVXalign': False, 'size': 2, 'NT': False, 'same': False, 'congruent': 0}} {'src': {'type': 'addresses_normal', 'congruent': 2, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WC', 'congruent': 5, 'same': False}} [Faulty Load] {'src': {'type': 'addresses_PSE', 'AVXalign': False, 'size': 2, 'NT': False, 'same': True, 'congruent': 0}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 2, 'NT': False, 'same': False, 'congruent': 8}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 16, 'NT': False, 'same': False, 'congruent': 3}} {'src': {'type': 'addresses_WT_ht', 'congruent': 11, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WC_ht', 'congruent': 5, 'same': True}} {'33': 21829} 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 */
commands/media/apple-music/apple-music-hate-current-track.applescript
daviddzhou/script-commands
3,305
1823
<reponame>daviddzhou/script-commands<filename>commands/media/apple-music/apple-music-hate-current-track.applescript #!/usr/bin/osascript # @raycast.title Hate Current Track # @raycast.author <NAME> # @raycast.authorURL https://github.com/bryanschuetz # @raycast.description Let the algorithm know how you feel about the currently playing track. # @raycast.icon images/apple-music-logo.png # @raycast.placeholder Hate it # @raycast.mode silent # @raycast.packageName Apple Music # @raycast.schemaVersion 1 tell application "Music" set disliked of current track to true log "Litterally, the worst." end tell
Transynther/x86/_processed/AVXALIGN/_ht_/i3-7100_9_0xca_notsx.log_21829_1142.asm
ljhsiun2/medusa
9
11575
<filename>Transynther/x86/_processed/AVXALIGN/_ht_/i3-7100_9_0xca_notsx.log_21829_1142.asm .global s_prepare_buffers s_prepare_buffers: push %r11 push %r15 push %rbp push %rcx push %rdi push %rsi lea addresses_normal_ht+0xa1f9, %rsi lea addresses_WC_ht+0x1efd9, %rdi xor $43189, %r15 mov $92, %rcx rep movsq nop nop nop cmp $57321, %r15 lea addresses_WT_ht+0x10c39, %rdi nop nop nop cmp $27843, %rcx movb $0x61, (%rdi) nop nop add $16306, %r11 lea addresses_WC_ht+0x18cfd, %rbp nop xor %rcx, %rcx mov (%rbp), %esi nop nop nop add %r15, %r15 pop %rsi pop %rdi pop %rcx pop %rbp pop %r15 pop %r11 ret .global s_faulty_load s_faulty_load: push %r10 push %r11 push %r14 push %rax push %rbp push %rcx push %rdx // Load lea addresses_US+0x1d339, %rcx nop nop nop and $27426, %r14 mov (%rcx), %r11d nop nop and %rbp, %rbp // Faulty Load lea addresses_PSE+0xa439, %r10 nop nop and %rax, %rax vmovntdqa (%r10), %ymm6 vextracti128 $0, %ymm6, %xmm6 vpextrq $1, %xmm6, %rdx lea oracles, %r10 and $0xff, %rdx shlq $12, %rdx mov (%r10,%rdx,1), %rdx pop %rdx pop %rcx pop %rbp pop %rax pop %r14 pop %r11 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_PSE', 'size': 8, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'same': False, 'congruent': 6, 'NT': False, 'type': 'addresses_US', 'size': 4, 'AVXalign': False}, 'OP': 'LOAD'} [Faulty Load] {'src': {'same': True, 'congruent': 0, 'NT': True, 'type': 'addresses_PSE', 'size': 32, 'AVXalign': False}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'type': 'addresses_normal_ht', 'congruent': 6, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WC_ht', 'congruent': 4, 'same': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 10, 'NT': False, 'type': 'addresses_WT_ht', 'size': 1, 'AVXalign': False}} {'src': {'same': False, 'congruent': 2, 'NT': False, 'type': 'addresses_WC_ht', 'size': 4, 'AVXalign': False}, 'OP': 'LOAD'} {'44': 21829} 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 */
src/Builtin/Coinduction.agda
UlfNorell/agda-prelude
111
755
{-# OPTIONS --guardedness #-} module Builtin.Coinduction where open import Agda.Builtin.Coinduction public
programs/oeis/255/A255499.asm
karttu/loda
1
23140
; A255499: a(n) = n^4/2 + n^3 - n^2/2. ; 0,1,14,63,184,425,846,1519,2528,3969,5950,8591,12024,16393,21854,28575,36736,46529,58158,71839,87800,106281,127534,151823,179424,210625,245726,285039,328888,377609,431550,491071,556544,628353,706894,792575,885816,987049,1096718,1215279,1343200 mov $1,$0 pow $0,2 sub $1,1 mul $1,2 add $1,1 add $1,$0 mul $0,$1 mov $1,$0 div $1,2
libsrc/_DEVELOPMENT/input/ep/z80/asm_in_test_key.asm
jpoikela/z88dk
640
168415
<gh_stars>100-1000 ; =============================================================== ; Aug 2015 ; =============================================================== ; ; int in_test_key(void) ; ; Return true if a key is currently pressed. ; ; =============================================================== SECTION code_clib SECTION code_input PUBLIC asm_in_test_key asm_in_test_key: ; exit : nz flag set if a key is pressed ; z flag set if no key is pressed ; ; uses : af ld a,9 test_loop: out ($b5),a in a,($b5) cp $ff ret nz dec a jp p, test_loop xor a ret
windows.asm
codebur/_a2-chemi-gs-1993
1
176586
<reponame>codebur/_a2-chemi-gs-1993 keep WINDOWS **************************************************************** * ChemiGS * **************************************************************** * A Drawing Program for Chemical Structures * * (c) 1992-93 by <NAME> * * Buendtenweg 6 * * 5105 AUENSTEIN (SWITZERLAND) * **************************************************************** * Module WINDOWS **************************************************************** * * USES ... * mcopy windows.macros copy equates.asm **************************************************************** * * Window stuff * DrawToolWin start Tool window content draw defProc using Globals phd save caller's DP phb save caller's Data Bank phk Data Bank := Pgm Bank plb * ph4 #0 * ~LoadResource #rPicture,#kToolPicID * pl4 toolPic * ~DrawPicture toolPic,#destRect ~DrawControls gToolWin lda gToolID jsl HiliteSelection plb restore caller's Data Bank pld restore caller's DP rtl *ToolPic ds 4 *destRect dc i2'0' top 13 * dc i2'0' left 2 * dc i2'179' bottom 31 45 156 * dc i2'64' right 512 626 UpdateToolWin entry ~BeginUpdate gToolWin jsl DrawToolWin ~EndUpdate gToolWin rts HiliteSelection entry * --------------------------------------- * Input : Tool Number in A * Output: none * Action: Invert Tool in Toolbar * --------------------------------------- stz xOffset initialize x offset for tool hilite cmp #11 bcc left ldy #32 it's in the right column sty xOffset sec sbc #11 left asl a Tool number * 16 -> y coordinate asl a asl a asl a clc *** New: adc TBOffset *** New: add title Bar offset sta yOffset clc adc #15 hilight is 15 pixels high sta bottom lda xOffset clc adc #30 ...and 30 wide sta right ~InvertRect #myRect rtl myrect anop yOffset ds 2 xOffset ds 2 bottom ds 2 right ds 2 end DrawEaster start using Globals ~BeginUpdate gEasterWin ~DrawControls gEasterWin ~EndUpdate gEasterWin rtl end DrawDataContent start Data Window content draw defProc using Globals phd save caller's DP phb save caller's Data Bank phk Data Bank := Pgm Bank plb jsr displayIt in 'TOOLS' plb restore caller's Data Bank pld restore caller's DP rtl end DrawInfoBar start using Globals theWindow equ 6 Offset to the infoBar owner window infoRefCon equ theWindow+4 Offset to the window's infoBarRefCon infoRect equ infoRefCon+4 Offset to the infoBar's enclosing RECT phd save current DP tsc tcd switch to DP in stack ldy #0 *** new: save InfoRect into gInfoRect lda [14],y sta gInfoRect iny iny lda [14],y sta gInfoRect+2 iny iny lda [14],y sta gInfoRect+4 iny iny lda [14],y sta gInfoRect+6 *** end new * ------------------- individual routine ----------------- * ph4 #0 * ~LoadResource #rPicture,#kButtonBarID * pl4 btnPic besser in InfoRefCon speichern * ~DrawPicture btnPic,#btnRect * ------------------- Remove input parameters from stack ply pull original DP, save in y lda 2,s Move RTL addr down over inp parms sta 14,s lda 0,s sta 12,s tsc now move SP over inp parms clc adc #12 add number input parm bytes to SP tcs and reset stack tya restore original DP tcd rtl back to Window Mgr btnRect dc i2'13,2,30,552' destRect for Button Bar (0,0,16,549) btnPic ds 4 end HandleInfo start * using Globals * ~StartInfoDrawing #gInfoRect,gDataWin * ~EndInfoDrawing rts end HandleRuler start using Globals * ~StartDrawing gEditWindow move4 gMainEvt+owhere,myPoint ~GlobalToLocal #myPoint pha ~PtInRect #myPoint,#XRect pla beq l1 ~InvertRect #XRect l1 pha ~PtInRect #myPoint,#OKRect pla beq l2 ~InvertRect #OKRect l2 pha ~PtInRect #myPoint,#EditRect pla beq l3 ~InvertRect #EditRect l3 pha ~PtInRect #myPoint,#DirRect pla beq l4 ~InvertRect #DirRect l4 pha ~PtInRect #myPoint,#PSRect pla beq l5 ~InvertRect #PSRect l5 pha ~PtInRect #myPoint,#CRect pla beq l6 ~InvertRect #CRect l6 pha ~PtInRect #myPoint,#HRect pla beq l7 ~InvertRect #HRect l7 pha ~PtInRect #myPoint,#ORect pla beq l8 ~InvertRect #ORect l8 pha ~PtInRect #myPoint,#NRect pla beq l9 ~InvertRect #NRect l9 pha ~PtInRect #myPoint,#SRect pla beq l10 ~InvertRect #SRect l10 pha ~PtInRect #myPoint,#PRect pla beq l11 ~InvertRect #PRect l11 pha ~PtInRect #myPoint,#PopRect pla beq l12 ~InvertRect #PopRect l12 anop * ~SetOrigin #0,#0 rts myPoint ds 4 theWindow ds 4 XRect dc i2'16,8,27,30' OKRect dc i2'16,32,27,54' EditRect dc i2'16,56,27,180' DirRect dc i2'16,182,27,204' PSRect dc i2'16,211,27,245' CRect dc i2'16,247,27,269' HRect dc i2'16,271,27,293' ORect dc i2'16,295,27,317' NRect dc i2'16,319,27,341' SRect dc i2'16,343,27,365' PRect dc i2'16,367,27,387' PopRect dc i2'16,396,27,546' end *GetDataMem start Get Memory for File Data * using Globals * ph4 #0 * ~NewHandle gMemSize,gMyID,#0,#0 * sta gToolErr * pl4 gDataHandle * rts * end remember to check for errors on return! OpenWindow start using Globals jsr EndText * jsr SetTheFont *wirkts? ph4 #0 ~NewWindow2 #0,#0,#0,#0,#RefIsResource,#kDataWID,#rWindParam1 pl4 gDataWin ph4 #0 ~GetPort pl4 thePort lda fCacheWins bne ow1 brl noCache ow1 anop ph4 #0 ~NewHandle #$10000,gMyID,#attrLocked,#0 sta gToolErr pl4 picHandle jsr Error bcc offPok2 stz fCacheWins * Could not allocate Mem -> no cache brl noCache offPok2 ph4 #0 ~NewHandle #170,gMyID,#attrLocked,#0 sta gToolErr pl4 theHandle jsr Error bcc offPok stz fCacheWins * Could not allocate Mem -> no cache brl noCache offPok anop _Deref picHandle,ptrToPixImage _Deref theHandle,gOffPort ~OpenPort gOffPort init offscreen port (becomes current) lda masterSCB sta portSCB ~SetPortLoc #locInfo sta gToolErr * jsr Error * ~GetPortRect #cleanRect sta gToolErr * jsr Error * ~SetSolidBackPat #$F sta gToolErr * * ~SysBeep jsr Error * ~EraseRect #cleanRect ~PenNormal noCache anop lda #-kRulerH sta gYoffset stz gXoffset lda #kDataWidth sta gDocW lda #kDataHeigth sta gDocH ~StartDrawing gDataWin ~SetPort thePort ***************** THIS STUFF NEVER USED ***************************** * ph4 #0 * ~LoadResource #rPicture,#kButtonBarID * pl4 btnPic * ~DrawPicture btnPic,#btnRect * ~PenNormal * ~MoveTo #portRect+2,#15 draw ruler's border line * ~LineTo #portRect+6,#15 * ~SetOrigin #0,#0 * ~SetInfoDraw #DrawInfoBar,gDataWin * ~SetDataSize #kDataWidth,#kDataHeigth,gDataWin * ~SetScroll #64,#32,gDataWin ~SetContentDraw #DrawDataContent,gDataWin ~SetWTitle gTitlePtr,gDataWin ph4 #0 ~GetCtlHandleFromID gDataWin,#TEditID pl4 LEditH * henriks code * lda LEditH * ldy LEditH+2 * brk 0 ph4 #0 ~GetCtlHandleFromID gDataWin,#hScrlID pl4 hScrollH ph4 #0 ~GetCtlHandleFromID gDataWin,#vScrlID pl4 vScrollH ph4 #0 ~GetCtlHandleFromID gDataWin,#MountnID pl4 MountnH ph4 #0 ~GetCtlHandleFromID gDataWin,#SizeBxID pl4 sizeBoxH ph4 #0 ~GetCtlHandleFromID gDataWin,#TBarCID inactive ToolBar Pict Ctl pl4 TBarH jsr SetMinGrow Set minV,minH in ctlData of SizeBox ~HideControl LEditH **** TEControl Record = TERecord !!! **** * _SetField LEditH,#$C8,#KeyFilter,#4 ~ShowWindow gDataWin * ~SysBeep rts portRect ds 8 btnRect dc i2'0,0,17,639' destRect for Button Bar (0,0,16,549) btnPic ds 4 most recent: 0,0,17,550 thePort ds 4 theRgn ds 4 cleanRect ds 8 theHandle ds 4 end SetMinGrow start using Globals ~SetCtlTitle #$00CC0044,sizeBoxH ;LoWrd=minH=68; HiWrd=minW=204 rts end DrawTopWindow start * ~SetForeColor #0 * ~SolidPattern #0,myPattern * ~SetPenPat myPattern * ~SetPenSize #1,#1 * ~FrameOval #myRect * ~SetFontID #0 * ~SetPenMode #modeForeCopy * ~MoveTo #150,#200 * ~DrawCString #myString rts myPattern ds 32 myRect dc i2'10' top dc i2'10' left dc i2'388' bottom dc i2'580' right myString dc c'Hello, old friend!!!',h'0D00' end HandleContent start using Globals using Version **only for easter window cmp4 gTaskDta,gToolWin bne l1 jsr doTool rts l1 anop cmp4 gTaskDta,gDataWin beq sameDataWin jsr SelDataWin bra exit sameDataWin anop jsr doDataWin in Module TOOLS exit rts SelDataWin entry jsr EndText ph4 #0 ~GetWRefCon gDataWin pl4 theHandle sta gToolErr **** test ~PtrToHand #FileInfo,theHandle,#FInfoSize sta gToolErr **** test ~SelectWindow gTaskDta if not tool window, hilight it ph4 #0 ~GetWRefCon gTaskDta pl4 theHandle ~HandToPtr theHandle,#FileInfo,#FInfoSize * move4 gTaskDta,gDataWin **** eigentlich ueberfluessig... jsr Error **** test jsr EndText rts doTool anop it's the Tool window, so handle it lda gToolID sta oldToolID ph4 #0 ~GetPort pl4 tmpPort ~SetPort gToolWin move4 gMainEvt+owhere,myPoint ~GlobalToLocal #myPoint lda myPoint cmp TBOffset if myPoint < TBOffset: in Tool Title bcc doTTitle cmp #178 is it past the last window bcs doEaster brl l3 doEaster ph4 #0 ~FrontWindow pl4 theWindow lda theWindow cmp gEasterWin bne notInFront lda theWindow+2 cmp gEasterWin+2 bne notInFront brl l4 doTTitle anop Handle Tool Title rts notInFront ~BringToFront gEasterWin l4 ~ShowHide #1,gEasterWin ~StartDrawing gEasterWin ******************************************** START OF TEST STUFF **** ~MoveTo #0,#8 ~DrawString #testTitle ~DrawString gTitlePtr ~MoveTo #0,#20 lda fSaved beq tst1 ~DrawString #fsStr tst1 ~MoveTo #0,#28 lda fNamed beq tst2 ~DrawString #fnStr tst2 ~MoveTo #0,#36 lda fFullAccess beq tst3 ~DrawString #ffStr tst3 ~MoveTo #0,#44 lda fOpened beq tst4 ~DrawString #foStr tst4 ~MoveTo #0,#52 ~MoveTo #0,#60 ~Int2Hex gRefNum,#rfStr+10,#4 ~DrawString #rfStr ~MoveTo #0,#68 ~Int2Hex gDataWNum,#wnStr+15,#4 ~DrawString #wnStr ~MoveTo #0,#76 *** new... ~Int2Dec dPortRect,#prString+11,#5,#1 ~Int2Dec dPortRect+2,#prString+17,#5,#1 ~Int2Dec dPortRect+4,#prString+23,#5,#1 ~Int2Dec dPortRect+6,#prString+29,#5,#1 ~DrawString #prString ~MoveTo #0,#84 ~Int2Dec winW,#wwhString+9,#5,#1 ~Int2Dec winH,#wwhString+15,#5,#1 ~DrawString #wwhString *** ...end new ~MoveTo #0,#160 ~DrawString #VersionStr ***************************************** END OF TEST STUFF **** * ~DrawControls gEasterWin ~SetOrigin #0,#0 loop pha ~StillDown #0 pla bne loop ~ShowHide #0,gEasterWin brl exit2 l3 anop myPoint y coordinate of mouse loc sec sbc TBOffset * New: substract Title Bar offset lsr a divide by 8 -> offset into jsr-Table lsr a lsr a lsr a sta gToolID asl a tax lda myPoint+2 x coordinate cmp #32 is it in the right column? bcc ok no txa clc adc #22 'offset offset' for right column lsr a sta gToolID ok lda oldToolID jsl HiliteSelection lda gToolID jsl HiliteSelection jsr DoTheTool exit2 ~SetPort tmpPort jsr UpdateToolWin update hilight rts testTitle dw 'FILE INFO ON: ' fsStr dw 'SAVED' fnStr dw 'NAMED' ffStr dw 'FULL ACCESS' foStr dw 'OPENED' rfStr dw 'RefNum: ' wnStr dw 'Open Windows: ' prString dw 'PortRect: , , , ' wwhString dw 'winW,H: , ' doTheTool entry lda gToolID asl a tax jsr (toolTable,x) lda gToolID cmp #TextToolID beq textOk jsr EndText textOK anop rts HandTool entry jsr HandCursor rts EraseTool entry jsr EraseCursor rts SingleBTool entry jsr CrossCursor rts DoubleBTool entry jsr CrossCursor rts HatchBTool entry jsr CrossCursor rts WedgeBTool entry jsr CrossCursor rts MarqueeTool entry jsr ArrowCursor ~InitCursor rts TextTool entry jsr TextCursor rts DottedBTool entry jsr CrossCursor rts TripleBTool entry jsr CrossCursor rts WHatchTool entry jsr CrossCursor rts CChainTool entry jsr CrossCursor rts toolTable anop *------------------------------------------------- dc i2'HandTool' 0 dc i2'EraseTool' 1 dc i2'SingleBTool' 2 dc i2'DoubleBTool' 3 dc i2'HatchBTool' 4 dc i2'WedgeBTool' 5 dc i2'doCycloPropane' 6 dc i2'doCycloPentane' 7 dc i2'doCycloHexane' 8 dc i2'doBenzene' 9 dc i2'doSeat' 10 * -------------------------------------------- dc i2'MarqueeTool' 11 dc i2'TextTool' 12 dc i2'DottedBTool' 13 dc i2'TripleBTool' 14 dc i2'WHatchTool' 15 dc i2'CChainTool' 16 dc i2'doCycloButane' 17 dc i2'doCycloPentane2' 18 dc i2'doBenzene2' 19 dc i2'doWheeland' 20 dc i2'doBasin' 21 dc i2'Ignore' dummy dc i2'Ignore' dummy tmpPort ds 4 myPoint ds 4 theWindow ds 4 theHandle ds 4 testit ~SysBeep rts end
testcases/utf8/utf8.adb
jrmarino/AdaBase
30
22356
<gh_stars>10-100 with AdaBase; with Connect; with CommonText; with Ada.Text_IO; with Ada.Wide_Text_IO; with Ada.Wide_Wide_Text_IO; with AdaBase.Results.Sets; procedure UTF8 is package CON renames Connect; package TIO renames Ada.Text_IO; package WIO renames Ada.Wide_Text_IO; package WWO renames Ada.Wide_Wide_Text_IO; package ARS renames AdaBase.Results.Sets; package CT renames CommonText; begin CON.connect_database; TIO.Put_Line ("Use terminal encoding UTF-8 or ISO8859-1"); TIO.Put_Line ("Either UTF8 fields or string fields will look right, " & "but not both"); declare sql : constant String := "SELECT * FROM funny_names"; stmt : CON.Stmt_Type := CON.DR.query (sql); row : ARS.Datarow; begin loop row := stmt.fetch_next; exit when row.data_exhausted; TIO.Put_Line (""); TIO.Put_Line (" UTF8: " & row.column ("first_name").as_utf8 & " " & row.column ("surname").as_utf8); TIO.Put_Line (" STRING: " & row.column ("first_name").as_string & " " & row.column ("surname").as_string); WIO.Put_Line (" WSTRING: " & row.column ("first_name").as_wstring & " " & row.column ("surname").as_wstring); WWO.Put_Line ("WWSTRING: " & row.column ("first_name").as_wwstring & " " & row.column ("surname").as_wwstring); end loop; end; CON.DR.disconnect; end UTF8;
programs/oeis/109/A109900.asm
neoneye/loda
22
4352
; A109900: The (n,r)-th term of the following triangle is T(n)-T(r) for r = 0 to n. The n-th row contains n+1 terms. T(n) = the n-th triangular number = n(n+1)/2. Sequence contains the sum of terms at a 45-degree angle. ; 0,1,3,8,15,27,42,64,90,125,165,216,273,343,420,512,612,729,855,1000,1155,1331,1518,1728,1950,2197,2457,2744,3045,3375,3720,4096,4488,4913,5355,5832,6327,6859,7410,8000,8610,9261,9933,10648,11385,12167,12972 add $0,1 mov $1,$0 pow $1,2 div $1,2 mul $0,$1 mul $0,2 div $0,8
wc.asm
thr0m3l/easy-xv6
0
85509
_wc: file format elf32-i386 Disassembly of section .text: 00000000 <main>: printf(1, "%d %d %d %s\n", l, w, c, name); } int main(int argc, char *argv[]) { 0: 8d 4c 24 04 lea 0x4(%esp),%ecx 4: 83 e4 f0 and $0xfffffff0,%esp 7: ff 71 fc push -0x4(%ecx) a: 55 push %ebp b: 89 e5 mov %esp,%ebp d: 57 push %edi e: 56 push %esi f: be 01 00 00 00 mov $0x1,%esi 14: 53 push %ebx 15: 51 push %ecx 16: 83 ec 18 sub $0x18,%esp 19: 8b 01 mov (%ecx),%eax 1b: 8b 59 04 mov 0x4(%ecx),%ebx 1e: 89 45 e4 mov %eax,-0x1c(%ebp) 21: 83 c3 04 add $0x4,%ebx int fd, i; if(argc <= 1){ 24: 83 f8 01 cmp $0x1,%eax 27: 7e 56 jle 7f <main+0x7f> 29: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi wc(0, ""); exit(); } for(i = 1; i < argc; i++){ if((fd = open(argv[i], 0)) < 0){ 30: 83 ec 08 sub $0x8,%esp 33: 6a 00 push $0x0 35: ff 33 push (%ebx) 37: e8 f7 03 00 00 call 433 <open> 3c: 83 c4 10 add $0x10,%esp 3f: 89 c7 mov %eax,%edi 41: 85 c0 test %eax,%eax 43: 78 26 js 6b <main+0x6b> printf(1, "wc: cannot open %s\n", argv[i]); exit(); } wc(fd, argv[i]); 45: 83 ec 08 sub $0x8,%esp 48: ff 33 push (%ebx) for(i = 1; i < argc; i++){ 4a: 83 c6 01 add $0x1,%esi 4d: 83 c3 04 add $0x4,%ebx wc(fd, argv[i]); 50: 50 push %eax 51: e8 4a 00 00 00 call a0 <wc> close(fd); 56: 89 3c 24 mov %edi,(%esp) 59: e8 bd 03 00 00 call 41b <close> for(i = 1; i < argc; i++){ 5e: 83 c4 10 add $0x10,%esp 61: 39 75 e4 cmp %esi,-0x1c(%ebp) 64: 75 ca jne 30 <main+0x30> } exit(); 66: e8 88 03 00 00 call 3f3 <exit> printf(1, "wc: cannot open %s\n", argv[i]); 6b: 50 push %eax 6c: ff 33 push (%ebx) 6e: 68 cb 08 00 00 push $0x8cb 73: 6a 01 push $0x1 75: e8 06 05 00 00 call 580 <printf> exit(); 7a: e8 74 03 00 00 call 3f3 <exit> wc(0, ""); 7f: 52 push %edx 80: 52 push %edx 81: 68 bd 08 00 00 push $0x8bd 86: 6a 00 push $0x0 88: e8 13 00 00 00 call a0 <wc> exit(); 8d: e8 61 03 00 00 call 3f3 <exit> 92: 66 90 xchg %ax,%ax 94: 66 90 xchg %ax,%ax 96: 66 90 xchg %ax,%ax 98: 66 90 xchg %ax,%ax 9a: 66 90 xchg %ax,%ax 9c: 66 90 xchg %ax,%ax 9e: 66 90 xchg %ax,%ax 000000a0 <wc>: { a0: 55 push %ebp a1: 89 e5 mov %esp,%ebp a3: 57 push %edi a4: 56 push %esi a5: 53 push %ebx l = w = c = 0; a6: 31 db xor %ebx,%ebx { a8: 83 ec 1c sub $0x1c,%esp inword = 0; ab: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp) l = w = c = 0; b2: c7 45 dc 00 00 00 00 movl $0x0,-0x24(%ebp) b9: c7 45 e0 00 00 00 00 movl $0x0,-0x20(%ebp) while((n = read(fd, buf, sizeof(buf))) > 0){ c0: 83 ec 04 sub $0x4,%esp c3: 68 00 02 00 00 push $0x200 c8: 68 40 0c 00 00 push $0xc40 cd: ff 75 08 push 0x8(%ebp) d0: e8 36 03 00 00 call 40b <read> d5: 83 c4 10 add $0x10,%esp d8: 89 c6 mov %eax,%esi da: 85 c0 test %eax,%eax dc: 7e 62 jle 140 <wc+0xa0> for(i=0; i<n; i++){ de: 31 ff xor %edi,%edi e0: eb 14 jmp f6 <wc+0x56> e2: 8d b6 00 00 00 00 lea 0x0(%esi),%esi inword = 0; e8: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp) for(i=0; i<n; i++){ ef: 83 c7 01 add $0x1,%edi f2: 39 fe cmp %edi,%esi f4: 74 42 je 138 <wc+0x98> if(buf[i] == '\n') f6: 0f be 87 40 0c 00 00 movsbl 0xc40(%edi),%eax l++; fd: 31 c9 xor %ecx,%ecx ff: 3c 0a cmp $0xa,%al 101: 0f 94 c1 sete %cl if(strchr(" \r\t\n\v", buf[i])) 104: 83 ec 08 sub $0x8,%esp 107: 50 push %eax l++; 108: 01 cb add %ecx,%ebx if(strchr(" \r\t\n\v", buf[i])) 10a: 68 a8 08 00 00 push $0x8a8 10f: e8 4c 01 00 00 call 260 <strchr> 114: 83 c4 10 add $0x10,%esp 117: 85 c0 test %eax,%eax 119: 75 cd jne e8 <wc+0x48> else if(!inword){ 11b: 8b 55 e4 mov -0x1c(%ebp),%edx 11e: 85 d2 test %edx,%edx 120: 75 cd jne ef <wc+0x4f> for(i=0; i<n; i++){ 122: 83 c7 01 add $0x1,%edi w++; 125: 83 45 e0 01 addl $0x1,-0x20(%ebp) inword = 1; 129: c7 45 e4 01 00 00 00 movl $0x1,-0x1c(%ebp) for(i=0; i<n; i++){ 130: 39 fe cmp %edi,%esi 132: 75 c2 jne f6 <wc+0x56> 134: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi c++; 138: 01 75 dc add %esi,-0x24(%ebp) 13b: eb 83 jmp c0 <wc+0x20> 13d: 8d 76 00 lea 0x0(%esi),%esi if(n < 0){ 140: 75 24 jne 166 <wc+0xc6> printf(1, "%d %d %d %s\n", l, w, c, name); 142: 83 ec 08 sub $0x8,%esp 145: ff 75 0c push 0xc(%ebp) 148: ff 75 dc push -0x24(%ebp) 14b: ff 75 e0 push -0x20(%ebp) 14e: 53 push %ebx 14f: 68 be 08 00 00 push $0x8be 154: 6a 01 push $0x1 156: e8 25 04 00 00 call 580 <printf> } 15b: 83 c4 20 add $0x20,%esp 15e: 8d 65 f4 lea -0xc(%ebp),%esp 161: 5b pop %ebx 162: 5e pop %esi 163: 5f pop %edi 164: 5d pop %ebp 165: c3 ret printf(1, "wc: read error\n"); 166: 50 push %eax 167: 50 push %eax 168: 68 ae 08 00 00 push $0x8ae 16d: 6a 01 push $0x1 16f: e8 0c 04 00 00 call 580 <printf> exit(); 174: e8 7a 02 00 00 call 3f3 <exit> 179: 66 90 xchg %ax,%ax 17b: 66 90 xchg %ax,%ax 17d: 66 90 xchg %ax,%ax 17f: 90 nop 00000180 <strcpy>: #include "stat.h" #include "types.h" #include "user.h" #include "x86.h" char *strcpy(char *s, const char *t) { 180: 55 push %ebp char *os; os = s; while ((*s++ = *t++) != 0) 181: 31 c0 xor %eax,%eax char *strcpy(char *s, const char *t) { 183: 89 e5 mov %esp,%ebp 185: 53 push %ebx 186: 8b 4d 08 mov 0x8(%ebp),%ecx 189: 8b 5d 0c mov 0xc(%ebp),%ebx 18c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi while ((*s++ = *t++) != 0) 190: 0f b6 14 03 movzbl (%ebx,%eax,1),%edx 194: 88 14 01 mov %dl,(%ecx,%eax,1) 197: 83 c0 01 add $0x1,%eax 19a: 84 d2 test %dl,%dl 19c: 75 f2 jne 190 <strcpy+0x10> ; return os; } 19e: 8b 5d fc mov -0x4(%ebp),%ebx 1a1: 89 c8 mov %ecx,%eax 1a3: c9 leave 1a4: c3 ret 1a5: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 1ac: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 000001b0 <strcmp>: int strcmp(const char *p, const char *q) { 1b0: 55 push %ebp 1b1: 89 e5 mov %esp,%ebp 1b3: 53 push %ebx 1b4: 8b 55 08 mov 0x8(%ebp),%edx 1b7: 8b 4d 0c mov 0xc(%ebp),%ecx while (*p && *p == *q) 1ba: 0f b6 02 movzbl (%edx),%eax 1bd: 84 c0 test %al,%al 1bf: 75 17 jne 1d8 <strcmp+0x28> 1c1: eb 3a jmp 1fd <strcmp+0x4d> 1c3: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 1c7: 90 nop 1c8: 0f b6 42 01 movzbl 0x1(%edx),%eax p++, q++; 1cc: 83 c2 01 add $0x1,%edx 1cf: 8d 59 01 lea 0x1(%ecx),%ebx while (*p && *p == *q) 1d2: 84 c0 test %al,%al 1d4: 74 1a je 1f0 <strcmp+0x40> p++, q++; 1d6: 89 d9 mov %ebx,%ecx while (*p && *p == *q) 1d8: 0f b6 19 movzbl (%ecx),%ebx 1db: 38 c3 cmp %al,%bl 1dd: 74 e9 je 1c8 <strcmp+0x18> return (uchar)*p - (uchar)*q; 1df: 29 d8 sub %ebx,%eax } 1e1: 8b 5d fc mov -0x4(%ebp),%ebx 1e4: c9 leave 1e5: c3 ret 1e6: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 1ed: 8d 76 00 lea 0x0(%esi),%esi return (uchar)*p - (uchar)*q; 1f0: 0f b6 59 01 movzbl 0x1(%ecx),%ebx 1f4: 31 c0 xor %eax,%eax 1f6: 29 d8 sub %ebx,%eax } 1f8: 8b 5d fc mov -0x4(%ebp),%ebx 1fb: c9 leave 1fc: c3 ret return (uchar)*p - (uchar)*q; 1fd: 0f b6 19 movzbl (%ecx),%ebx 200: 31 c0 xor %eax,%eax 202: eb db jmp 1df <strcmp+0x2f> 204: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 20b: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 20f: 90 nop 00000210 <strlen>: uint strlen(const char *s) { 210: 55 push %ebp 211: 89 e5 mov %esp,%ebp 213: 8b 55 08 mov 0x8(%ebp),%edx int n; for (n = 0; s[n]; n++) 216: 80 3a 00 cmpb $0x0,(%edx) 219: 74 15 je 230 <strlen+0x20> 21b: 31 c0 xor %eax,%eax 21d: 8d 76 00 lea 0x0(%esi),%esi 220: 83 c0 01 add $0x1,%eax 223: 80 3c 02 00 cmpb $0x0,(%edx,%eax,1) 227: 89 c1 mov %eax,%ecx 229: 75 f5 jne 220 <strlen+0x10> ; return n; } 22b: 89 c8 mov %ecx,%eax 22d: 5d pop %ebp 22e: c3 ret 22f: 90 nop for (n = 0; s[n]; n++) 230: 31 c9 xor %ecx,%ecx } 232: 5d pop %ebp 233: 89 c8 mov %ecx,%eax 235: c3 ret 236: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 23d: 8d 76 00 lea 0x0(%esi),%esi 00000240 <memset>: void *memset(void *dst, int c, uint n) { 240: 55 push %ebp 241: 89 e5 mov %esp,%ebp 243: 57 push %edi 244: 8b 55 08 mov 0x8(%ebp),%edx } static inline void stosb(void *addr, int data, int cnt) { asm volatile("cld; rep stosb" : 247: 8b 4d 10 mov 0x10(%ebp),%ecx 24a: 8b 45 0c mov 0xc(%ebp),%eax 24d: 89 d7 mov %edx,%edi 24f: fc cld 250: f3 aa rep stos %al,%es:(%edi) stosb(dst, c, n); return dst; } 252: 8b 7d fc mov -0x4(%ebp),%edi 255: 89 d0 mov %edx,%eax 257: c9 leave 258: c3 ret 259: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 00000260 <strchr>: char *strchr(const char *s, char c) { 260: 55 push %ebp 261: 89 e5 mov %esp,%ebp 263: 8b 45 08 mov 0x8(%ebp),%eax 266: 0f b6 4d 0c movzbl 0xc(%ebp),%ecx for (; *s; s++) 26a: 0f b6 10 movzbl (%eax),%edx 26d: 84 d2 test %dl,%dl 26f: 75 12 jne 283 <strchr+0x23> 271: eb 1d jmp 290 <strchr+0x30> 273: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 277: 90 nop 278: 0f b6 50 01 movzbl 0x1(%eax),%edx 27c: 83 c0 01 add $0x1,%eax 27f: 84 d2 test %dl,%dl 281: 74 0d je 290 <strchr+0x30> if (*s == c) 283: 38 d1 cmp %dl,%cl 285: 75 f1 jne 278 <strchr+0x18> return (char *)s; return 0; } 287: 5d pop %ebp 288: c3 ret 289: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi return 0; 290: 31 c0 xor %eax,%eax } 292: 5d pop %ebp 293: c3 ret 294: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 29b: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 29f: 90 nop 000002a0 <gets>: char *gets(char *buf, int max) { 2a0: 55 push %ebp 2a1: 89 e5 mov %esp,%ebp 2a3: 57 push %edi 2a4: 56 push %esi int i, cc; char c; for (i = 0; i + 1 < max;) { cc = read(0, &c, 1); 2a5: 8d 7d e7 lea -0x19(%ebp),%edi char *gets(char *buf, int max) { 2a8: 53 push %ebx for (i = 0; i + 1 < max;) { 2a9: 31 db xor %ebx,%ebx char *gets(char *buf, int max) { 2ab: 83 ec 1c sub $0x1c,%esp for (i = 0; i + 1 < max;) { 2ae: eb 27 jmp 2d7 <gets+0x37> cc = read(0, &c, 1); 2b0: 83 ec 04 sub $0x4,%esp 2b3: 6a 01 push $0x1 2b5: 57 push %edi 2b6: 6a 00 push $0x0 2b8: e8 4e 01 00 00 call 40b <read> if (cc < 1) 2bd: 83 c4 10 add $0x10,%esp 2c0: 85 c0 test %eax,%eax 2c2: 7e 1d jle 2e1 <gets+0x41> break; buf[i++] = c; 2c4: 0f b6 45 e7 movzbl -0x19(%ebp),%eax 2c8: 8b 55 08 mov 0x8(%ebp),%edx 2cb: 88 44 1a ff mov %al,-0x1(%edx,%ebx,1) if (c == '\n' || c == '\r') 2cf: 3c 0a cmp $0xa,%al 2d1: 74 1d je 2f0 <gets+0x50> 2d3: 3c 0d cmp $0xd,%al 2d5: 74 19 je 2f0 <gets+0x50> for (i = 0; i + 1 < max;) { 2d7: 89 de mov %ebx,%esi 2d9: 83 c3 01 add $0x1,%ebx 2dc: 3b 5d 0c cmp 0xc(%ebp),%ebx 2df: 7c cf jl 2b0 <gets+0x10> break; } buf[i] = '\0'; 2e1: 8b 45 08 mov 0x8(%ebp),%eax 2e4: c6 04 30 00 movb $0x0,(%eax,%esi,1) return buf; } 2e8: 8d 65 f4 lea -0xc(%ebp),%esp 2eb: 5b pop %ebx 2ec: 5e pop %esi 2ed: 5f pop %edi 2ee: 5d pop %ebp 2ef: c3 ret buf[i] = '\0'; 2f0: 8b 45 08 mov 0x8(%ebp),%eax 2f3: 89 de mov %ebx,%esi 2f5: c6 04 30 00 movb $0x0,(%eax,%esi,1) } 2f9: 8d 65 f4 lea -0xc(%ebp),%esp 2fc: 5b pop %ebx 2fd: 5e pop %esi 2fe: 5f pop %edi 2ff: 5d pop %ebp 300: c3 ret 301: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 308: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 30f: 90 nop 00000310 <stat>: int stat(const char *n, struct stat *st) { 310: 55 push %ebp 311: 89 e5 mov %esp,%ebp 313: 56 push %esi 314: 53 push %ebx int fd; int r; fd = open(n, O_RDONLY); 315: 83 ec 08 sub $0x8,%esp 318: 6a 00 push $0x0 31a: ff 75 08 push 0x8(%ebp) 31d: e8 11 01 00 00 call 433 <open> if (fd < 0) 322: 83 c4 10 add $0x10,%esp 325: 85 c0 test %eax,%eax 327: 78 27 js 350 <stat+0x40> return -1; r = fstat(fd, st); 329: 83 ec 08 sub $0x8,%esp 32c: ff 75 0c push 0xc(%ebp) 32f: 89 c3 mov %eax,%ebx 331: 50 push %eax 332: e8 14 01 00 00 call 44b <fstat> close(fd); 337: 89 1c 24 mov %ebx,(%esp) r = fstat(fd, st); 33a: 89 c6 mov %eax,%esi close(fd); 33c: e8 da 00 00 00 call 41b <close> return r; 341: 83 c4 10 add $0x10,%esp } 344: 8d 65 f8 lea -0x8(%ebp),%esp 347: 89 f0 mov %esi,%eax 349: 5b pop %ebx 34a: 5e pop %esi 34b: 5d pop %ebp 34c: c3 ret 34d: 8d 76 00 lea 0x0(%esi),%esi return -1; 350: be ff ff ff ff mov $0xffffffff,%esi 355: eb ed jmp 344 <stat+0x34> 357: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 35e: 66 90 xchg %ax,%ax 00000360 <atoi>: int atoi(const char *s) { 360: 55 push %ebp 361: 89 e5 mov %esp,%ebp 363: 56 push %esi 364: be 01 00 00 00 mov $0x1,%esi 369: 8b 4d 08 mov 0x8(%ebp),%ecx 36c: 53 push %ebx i = 0; sign = 1; val = 0; nbr = 0; if (s[0] == '-') { 36d: 0f b6 11 movzbl (%ecx),%edx 370: 80 fa 2d cmp $0x2d,%dl 373: 75 0c jne 381 <atoi+0x21> sign = -1; s++; } i = 0; while (s[i] >= '0' && s[i] <= '9' && s[i] != '\0') { 375: 0f b6 51 01 movzbl 0x1(%ecx),%edx sign = -1; 379: be ff ff ff ff mov $0xffffffff,%esi s++; 37e: 83 c1 01 add $0x1,%ecx while (s[i] >= '0' && s[i] <= '9' && s[i] != '\0') { 381: 8d 5a d0 lea -0x30(%edx),%ebx 384: 80 fb 09 cmp $0x9,%bl 387: 77 2f ja 3b8 <atoi+0x58> 389: 83 c1 01 add $0x1,%ecx val = 0; 38c: 31 db xor %ebx,%ebx 38e: 66 90 xchg %ax,%ax nbr = (int)(s[i] - '0'); 390: 83 ea 30 sub $0x30,%edx val = (val * 10) + nbr; 393: 8d 1c 9b lea (%ebx,%ebx,4),%ebx while (s[i] >= '0' && s[i] <= '9' && s[i] != '\0') { 396: 83 c1 01 add $0x1,%ecx nbr = (int)(s[i] - '0'); 399: 0f be d2 movsbl %dl,%edx val = (val * 10) + nbr; 39c: 8d 1c 5a lea (%edx,%ebx,2),%ebx while (s[i] >= '0' && s[i] <= '9' && s[i] != '\0') { 39f: 0f b6 51 ff movzbl -0x1(%ecx),%edx 3a3: 8d 42 d0 lea -0x30(%edx),%eax 3a6: 3c 09 cmp $0x9,%al 3a8: 76 e6 jbe 390 <atoi+0x30> i++; } i++; return (val * sign); 3aa: 89 f0 mov %esi,%eax 3ac: 0f af c3 imul %ebx,%eax } 3af: 5b pop %ebx 3b0: 5e pop %esi 3b1: 5d pop %ebp 3b2: c3 ret 3b3: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 3b7: 90 nop 3b8: 5b pop %ebx while (s[i] >= '0' && s[i] <= '9' && s[i] != '\0') { 3b9: 31 c0 xor %eax,%eax } 3bb: 5e pop %esi 3bc: 5d pop %ebp 3bd: c3 ret 3be: 66 90 xchg %ax,%ax 000003c0 <memmove>: void *memmove(void *vdst, const void *vsrc, int n) { 3c0: 55 push %ebp 3c1: 89 e5 mov %esp,%ebp 3c3: 57 push %edi 3c4: 8b 45 10 mov 0x10(%ebp),%eax 3c7: 8b 55 08 mov 0x8(%ebp),%edx 3ca: 56 push %esi 3cb: 8b 75 0c mov 0xc(%ebp),%esi char *dst; const char *src; dst = vdst; src = vsrc; while (n-- > 0) 3ce: 85 c0 test %eax,%eax 3d0: 7e 13 jle 3e5 <memmove+0x25> 3d2: 01 d0 add %edx,%eax dst = vdst; 3d4: 89 d7 mov %edx,%edi 3d6: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 3dd: 8d 76 00 lea 0x0(%esi),%esi *dst++ = *src++; 3e0: a4 movsb %ds:(%esi),%es:(%edi) while (n-- > 0) 3e1: 39 f8 cmp %edi,%eax 3e3: 75 fb jne 3e0 <memmove+0x20> return vdst; } 3e5: 5e pop %esi 3e6: 89 d0 mov %edx,%eax 3e8: 5f pop %edi 3e9: 5d pop %ebp 3ea: c3 ret 000003eb <fork>: SYSCALL(fork) 3eb: b8 01 00 00 00 mov $0x1,%eax 3f0: cd 40 int $0x40 3f2: c3 ret 000003f3 <exit>: SYSCALL(exit) 3f3: b8 02 00 00 00 mov $0x2,%eax 3f8: cd 40 int $0x40 3fa: c3 ret 000003fb <wait>: SYSCALL(wait) 3fb: b8 03 00 00 00 mov $0x3,%eax 400: cd 40 int $0x40 402: c3 ret 00000403 <pipe>: SYSCALL(pipe) 403: b8 04 00 00 00 mov $0x4,%eax 408: cd 40 int $0x40 40a: c3 ret 0000040b <read>: SYSCALL(read) 40b: b8 05 00 00 00 mov $0x5,%eax 410: cd 40 int $0x40 412: c3 ret 00000413 <write>: SYSCALL(write) 413: b8 10 00 00 00 mov $0x10,%eax 418: cd 40 int $0x40 41a: c3 ret 0000041b <close>: SYSCALL(close) 41b: b8 15 00 00 00 mov $0x15,%eax 420: cd 40 int $0x40 422: c3 ret 00000423 <kill>: SYSCALL(kill) 423: b8 06 00 00 00 mov $0x6,%eax 428: cd 40 int $0x40 42a: c3 ret 0000042b <exec>: SYSCALL(exec) 42b: b8 07 00 00 00 mov $0x7,%eax 430: cd 40 int $0x40 432: c3 ret 00000433 <open>: SYSCALL(open) 433: b8 0f 00 00 00 mov $0xf,%eax 438: cd 40 int $0x40 43a: c3 ret 0000043b <mknod>: SYSCALL(mknod) 43b: b8 11 00 00 00 mov $0x11,%eax 440: cd 40 int $0x40 442: c3 ret 00000443 <unlink>: SYSCALL(unlink) 443: b8 12 00 00 00 mov $0x12,%eax 448: cd 40 int $0x40 44a: c3 ret 0000044b <fstat>: SYSCALL(fstat) 44b: b8 08 00 00 00 mov $0x8,%eax 450: cd 40 int $0x40 452: c3 ret 00000453 <link>: SYSCALL(link) 453: b8 13 00 00 00 mov $0x13,%eax 458: cd 40 int $0x40 45a: c3 ret 0000045b <mkdir>: SYSCALL(mkdir) 45b: b8 14 00 00 00 mov $0x14,%eax 460: cd 40 int $0x40 462: c3 ret 00000463 <chdir>: SYSCALL(chdir) 463: b8 09 00 00 00 mov $0x9,%eax 468: cd 40 int $0x40 46a: c3 ret 0000046b <dup>: SYSCALL(dup) 46b: b8 0a 00 00 00 mov $0xa,%eax 470: cd 40 int $0x40 472: c3 ret 00000473 <getpid>: SYSCALL(getpid) 473: b8 0b 00 00 00 mov $0xb,%eax 478: cd 40 int $0x40 47a: c3 ret 0000047b <sbrk>: SYSCALL(sbrk) 47b: b8 0c 00 00 00 mov $0xc,%eax 480: cd 40 int $0x40 482: c3 ret 00000483 <sleep>: SYSCALL(sleep) 483: b8 0d 00 00 00 mov $0xd,%eax 488: cd 40 int $0x40 48a: c3 ret 0000048b <uptime>: SYSCALL(uptime) 48b: b8 0e 00 00 00 mov $0xe,%eax 490: cd 40 int $0x40 492: c3 ret 00000493 <shutdown>: #SYSCALL(dup) #SYSCALL(getpid) #SYSCALL(sbrk) #SYSCALL(sleep) #SYSCALL(uptime) SYSCALL(shutdown) 493: b8 16 00 00 00 mov $0x16,%eax 498: cd 40 int $0x40 49a: c3 ret 0000049b <incr>: SYSCALL(incr) 49b: b8 17 00 00 00 mov $0x17,%eax 4a0: cd 40 int $0x40 4a2: c3 ret 000004a3 <add>: SYSCALL(add) 4a3: b8 18 00 00 00 mov $0x18,%eax 4a8: cd 40 int $0x40 4aa: c3 ret 000004ab <mult>: SYSCALL(mult) 4ab: b8 19 00 00 00 mov $0x19,%eax 4b0: cd 40 int $0x40 4b2: c3 ret 000004b3 <div>: SYSCALL(div) 4b3: b8 1a 00 00 00 mov $0x1a,%eax 4b8: cd 40 int $0x40 4ba: c3 ret 000004bb <mod>: SYSCALL(mod) 4bb: b8 1b 00 00 00 mov $0x1b,%eax 4c0: cd 40 int $0x40 4c2: c3 ret 4c3: 66 90 xchg %ax,%ax 4c5: 66 90 xchg %ax,%ax 4c7: 66 90 xchg %ax,%ax 4c9: 66 90 xchg %ax,%ax 4cb: 66 90 xchg %ax,%ax 4cd: 66 90 xchg %ax,%ax 4cf: 90 nop 000004d0 <printint>: write(fd, &c, 1); } static void printint(int fd, int xx, int base, int sgn) { 4d0: 55 push %ebp 4d1: 89 e5 mov %esp,%ebp 4d3: 57 push %edi 4d4: 56 push %esi 4d5: 53 push %ebx 4d6: 83 ec 3c sub $0x3c,%esp 4d9: 89 4d c4 mov %ecx,-0x3c(%ebp) uint x; neg = 0; if(sgn && xx < 0){ neg = 1; x = -xx; 4dc: 89 d1 mov %edx,%ecx { 4de: 89 45 b8 mov %eax,-0x48(%ebp) if(sgn && xx < 0){ 4e1: 85 d2 test %edx,%edx 4e3: 0f 89 7f 00 00 00 jns 568 <printint+0x98> 4e9: f6 45 08 01 testb $0x1,0x8(%ebp) 4ed: 74 79 je 568 <printint+0x98> neg = 1; 4ef: c7 45 bc 01 00 00 00 movl $0x1,-0x44(%ebp) x = -xx; 4f6: f7 d9 neg %ecx } else { x = xx; } i = 0; 4f8: 31 db xor %ebx,%ebx 4fa: 8d 75 d7 lea -0x29(%ebp),%esi 4fd: 8d 76 00 lea 0x0(%esi),%esi do{ buf[i++] = digits[x % base]; 500: 89 c8 mov %ecx,%eax 502: 31 d2 xor %edx,%edx 504: 89 cf mov %ecx,%edi 506: f7 75 c4 divl -0x3c(%ebp) 509: 0f b6 92 40 09 00 00 movzbl 0x940(%edx),%edx 510: 89 45 c0 mov %eax,-0x40(%ebp) 513: 89 d8 mov %ebx,%eax 515: 8d 5b 01 lea 0x1(%ebx),%ebx }while((x /= base) != 0); 518: 8b 4d c0 mov -0x40(%ebp),%ecx buf[i++] = digits[x % base]; 51b: 88 14 1e mov %dl,(%esi,%ebx,1) }while((x /= base) != 0); 51e: 39 7d c4 cmp %edi,-0x3c(%ebp) 521: 76 dd jbe 500 <printint+0x30> if(neg) 523: 8b 4d bc mov -0x44(%ebp),%ecx 526: 85 c9 test %ecx,%ecx 528: 74 0c je 536 <printint+0x66> buf[i++] = '-'; 52a: c6 44 1d d8 2d movb $0x2d,-0x28(%ebp,%ebx,1) buf[i++] = digits[x % base]; 52f: 89 d8 mov %ebx,%eax buf[i++] = '-'; 531: ba 2d 00 00 00 mov $0x2d,%edx while(--i >= 0) 536: 8b 7d b8 mov -0x48(%ebp),%edi 539: 8d 5c 05 d7 lea -0x29(%ebp,%eax,1),%ebx 53d: eb 07 jmp 546 <printint+0x76> 53f: 90 nop putc(fd, buf[i]); 540: 0f b6 13 movzbl (%ebx),%edx 543: 83 eb 01 sub $0x1,%ebx write(fd, &c, 1); 546: 83 ec 04 sub $0x4,%esp 549: 88 55 d7 mov %dl,-0x29(%ebp) 54c: 6a 01 push $0x1 54e: 56 push %esi 54f: 57 push %edi 550: e8 be fe ff ff call 413 <write> while(--i >= 0) 555: 83 c4 10 add $0x10,%esp 558: 39 de cmp %ebx,%esi 55a: 75 e4 jne 540 <printint+0x70> } 55c: 8d 65 f4 lea -0xc(%ebp),%esp 55f: 5b pop %ebx 560: 5e pop %esi 561: 5f pop %edi 562: 5d pop %ebp 563: c3 ret 564: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi neg = 0; 568: c7 45 bc 00 00 00 00 movl $0x0,-0x44(%ebp) 56f: eb 87 jmp 4f8 <printint+0x28> 571: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 578: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 57f: 90 nop 00000580 <printf>: // Print to the given fd. Only understands %d, %x, %p, %s. void printf(int fd, const char *fmt, ...) { 580: 55 push %ebp 581: 89 e5 mov %esp,%ebp 583: 57 push %edi 584: 56 push %esi 585: 53 push %ebx 586: 83 ec 2c sub $0x2c,%esp int c, i, state; uint *ap; state = 0; ap = (uint*)(void*)&fmt + 1; for(i = 0; fmt[i]; i++){ 589: 8b 5d 0c mov 0xc(%ebp),%ebx { 58c: 8b 75 08 mov 0x8(%ebp),%esi for(i = 0; fmt[i]; i++){ 58f: 0f b6 13 movzbl (%ebx),%edx 592: 84 d2 test %dl,%dl 594: 74 6a je 600 <printf+0x80> ap = (uint*)(void*)&fmt + 1; 596: 8d 45 10 lea 0x10(%ebp),%eax 599: 83 c3 01 add $0x1,%ebx write(fd, &c, 1); 59c: 8d 7d e7 lea -0x19(%ebp),%edi state = 0; 59f: 31 c9 xor %ecx,%ecx ap = (uint*)(void*)&fmt + 1; 5a1: 89 45 d0 mov %eax,-0x30(%ebp) 5a4: eb 36 jmp 5dc <printf+0x5c> 5a6: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 5ad: 8d 76 00 lea 0x0(%esi),%esi 5b0: 89 4d d4 mov %ecx,-0x2c(%ebp) c = fmt[i] & 0xff; if(state == 0){ if(c == '%'){ state = '%'; 5b3: b9 25 00 00 00 mov $0x25,%ecx if(c == '%'){ 5b8: 83 f8 25 cmp $0x25,%eax 5bb: 74 15 je 5d2 <printf+0x52> write(fd, &c, 1); 5bd: 83 ec 04 sub $0x4,%esp 5c0: 88 55 e7 mov %dl,-0x19(%ebp) 5c3: 6a 01 push $0x1 5c5: 57 push %edi 5c6: 56 push %esi 5c7: e8 47 fe ff ff call 413 <write> 5cc: 8b 4d d4 mov -0x2c(%ebp),%ecx } else { putc(fd, c); 5cf: 83 c4 10 add $0x10,%esp for(i = 0; fmt[i]; i++){ 5d2: 0f b6 13 movzbl (%ebx),%edx 5d5: 83 c3 01 add $0x1,%ebx 5d8: 84 d2 test %dl,%dl 5da: 74 24 je 600 <printf+0x80> c = fmt[i] & 0xff; 5dc: 0f b6 c2 movzbl %dl,%eax if(state == 0){ 5df: 85 c9 test %ecx,%ecx 5e1: 74 cd je 5b0 <printf+0x30> } } else if(state == '%'){ 5e3: 83 f9 25 cmp $0x25,%ecx 5e6: 75 ea jne 5d2 <printf+0x52> if(c == 'd'){ 5e8: 83 f8 25 cmp $0x25,%eax 5eb: 0f 84 07 01 00 00 je 6f8 <printf+0x178> 5f1: 83 e8 63 sub $0x63,%eax 5f4: 83 f8 15 cmp $0x15,%eax 5f7: 77 17 ja 610 <printf+0x90> 5f9: ff 24 85 e8 08 00 00 jmp *0x8e8(,%eax,4) putc(fd, c); } state = 0; } } } 600: 8d 65 f4 lea -0xc(%ebp),%esp 603: 5b pop %ebx 604: 5e pop %esi 605: 5f pop %edi 606: 5d pop %ebp 607: c3 ret 608: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 60f: 90 nop write(fd, &c, 1); 610: 83 ec 04 sub $0x4,%esp 613: 88 55 d4 mov %dl,-0x2c(%ebp) 616: 6a 01 push $0x1 618: 57 push %edi 619: 56 push %esi 61a: c6 45 e7 25 movb $0x25,-0x19(%ebp) 61e: e8 f0 fd ff ff call 413 <write> putc(fd, c); 623: 0f b6 55 d4 movzbl -0x2c(%ebp),%edx write(fd, &c, 1); 627: 83 c4 0c add $0xc,%esp 62a: 88 55 e7 mov %dl,-0x19(%ebp) 62d: 6a 01 push $0x1 62f: 57 push %edi 630: 56 push %esi 631: e8 dd fd ff ff call 413 <write> putc(fd, c); 636: 83 c4 10 add $0x10,%esp state = 0; 639: 31 c9 xor %ecx,%ecx 63b: eb 95 jmp 5d2 <printf+0x52> 63d: 8d 76 00 lea 0x0(%esi),%esi printint(fd, *ap, 16, 0); 640: 83 ec 0c sub $0xc,%esp 643: b9 10 00 00 00 mov $0x10,%ecx 648: 6a 00 push $0x0 64a: 8b 45 d0 mov -0x30(%ebp),%eax 64d: 8b 10 mov (%eax),%edx 64f: 89 f0 mov %esi,%eax 651: e8 7a fe ff ff call 4d0 <printint> ap++; 656: 83 45 d0 04 addl $0x4,-0x30(%ebp) 65a: 83 c4 10 add $0x10,%esp state = 0; 65d: 31 c9 xor %ecx,%ecx 65f: e9 6e ff ff ff jmp 5d2 <printf+0x52> 664: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi s = (char*)*ap; 668: 8b 45 d0 mov -0x30(%ebp),%eax 66b: 8b 10 mov (%eax),%edx ap++; 66d: 83 c0 04 add $0x4,%eax 670: 89 45 d0 mov %eax,-0x30(%ebp) if(s == 0) 673: 85 d2 test %edx,%edx 675: 0f 84 8d 00 00 00 je 708 <printf+0x188> while(*s != 0){ 67b: 0f b6 02 movzbl (%edx),%eax state = 0; 67e: 31 c9 xor %ecx,%ecx while(*s != 0){ 680: 84 c0 test %al,%al 682: 0f 84 4a ff ff ff je 5d2 <printf+0x52> 688: 89 5d d4 mov %ebx,-0x2c(%ebp) 68b: 89 d3 mov %edx,%ebx 68d: 8d 76 00 lea 0x0(%esi),%esi write(fd, &c, 1); 690: 83 ec 04 sub $0x4,%esp s++; 693: 83 c3 01 add $0x1,%ebx 696: 88 45 e7 mov %al,-0x19(%ebp) write(fd, &c, 1); 699: 6a 01 push $0x1 69b: 57 push %edi 69c: 56 push %esi 69d: e8 71 fd ff ff call 413 <write> while(*s != 0){ 6a2: 0f b6 03 movzbl (%ebx),%eax 6a5: 83 c4 10 add $0x10,%esp 6a8: 84 c0 test %al,%al 6aa: 75 e4 jne 690 <printf+0x110> state = 0; 6ac: 8b 5d d4 mov -0x2c(%ebp),%ebx 6af: 31 c9 xor %ecx,%ecx 6b1: e9 1c ff ff ff jmp 5d2 <printf+0x52> 6b6: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 6bd: 8d 76 00 lea 0x0(%esi),%esi printint(fd, *ap, 10, 1); 6c0: 83 ec 0c sub $0xc,%esp 6c3: b9 0a 00 00 00 mov $0xa,%ecx 6c8: 6a 01 push $0x1 6ca: e9 7b ff ff ff jmp 64a <printf+0xca> 6cf: 90 nop putc(fd, *ap); 6d0: 8b 45 d0 mov -0x30(%ebp),%eax write(fd, &c, 1); 6d3: 83 ec 04 sub $0x4,%esp putc(fd, *ap); 6d6: 8b 00 mov (%eax),%eax write(fd, &c, 1); 6d8: 6a 01 push $0x1 6da: 57 push %edi 6db: 56 push %esi putc(fd, *ap); 6dc: 88 45 e7 mov %al,-0x19(%ebp) write(fd, &c, 1); 6df: e8 2f fd ff ff call 413 <write> ap++; 6e4: 83 45 d0 04 addl $0x4,-0x30(%ebp) 6e8: 83 c4 10 add $0x10,%esp state = 0; 6eb: 31 c9 xor %ecx,%ecx 6ed: e9 e0 fe ff ff jmp 5d2 <printf+0x52> 6f2: 8d b6 00 00 00 00 lea 0x0(%esi),%esi putc(fd, c); 6f8: 88 55 e7 mov %dl,-0x19(%ebp) write(fd, &c, 1); 6fb: 83 ec 04 sub $0x4,%esp 6fe: e9 2a ff ff ff jmp 62d <printf+0xad> 703: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 707: 90 nop s = "(null)"; 708: ba df 08 00 00 mov $0x8df,%edx while(*s != 0){ 70d: 89 5d d4 mov %ebx,-0x2c(%ebp) 710: b8 28 00 00 00 mov $0x28,%eax 715: 89 d3 mov %edx,%ebx 717: e9 74 ff ff ff jmp 690 <printf+0x110> 71c: 66 90 xchg %ax,%ax 71e: 66 90 xchg %ax,%ax 00000720 <free>: static Header base; static Header *freep; void free(void *ap) { 720: 55 push %ebp Header *bp, *p; bp = (Header*)ap - 1; for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) 721: a1 40 0e 00 00 mov 0xe40,%eax { 726: 89 e5 mov %esp,%ebp 728: 57 push %edi 729: 56 push %esi 72a: 53 push %ebx 72b: 8b 5d 08 mov 0x8(%ebp),%ebx bp = (Header*)ap - 1; 72e: 8d 4b f8 lea -0x8(%ebx),%ecx for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) 731: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 738: 89 c2 mov %eax,%edx 73a: 8b 00 mov (%eax),%eax 73c: 39 ca cmp %ecx,%edx 73e: 73 30 jae 770 <free+0x50> 740: 39 c1 cmp %eax,%ecx 742: 72 04 jb 748 <free+0x28> if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) 744: 39 c2 cmp %eax,%edx 746: 72 f0 jb 738 <free+0x18> break; if(bp + bp->s.size == p->s.ptr){ 748: 8b 73 fc mov -0x4(%ebx),%esi 74b: 8d 3c f1 lea (%ecx,%esi,8),%edi 74e: 39 f8 cmp %edi,%eax 750: 74 30 je 782 <free+0x62> bp->s.size += p->s.ptr->s.size; bp->s.ptr = p->s.ptr->s.ptr; 752: 89 43 f8 mov %eax,-0x8(%ebx) } else bp->s.ptr = p->s.ptr; if(p + p->s.size == bp){ 755: 8b 42 04 mov 0x4(%edx),%eax 758: 8d 34 c2 lea (%edx,%eax,8),%esi 75b: 39 f1 cmp %esi,%ecx 75d: 74 3a je 799 <free+0x79> p->s.size += bp->s.size; p->s.ptr = bp->s.ptr; 75f: 89 0a mov %ecx,(%edx) } else p->s.ptr = bp; freep = p; } 761: 5b pop %ebx freep = p; 762: 89 15 40 0e 00 00 mov %edx,0xe40 } 768: 5e pop %esi 769: 5f pop %edi 76a: 5d pop %ebp 76b: c3 ret 76c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) 770: 39 c2 cmp %eax,%edx 772: 72 c4 jb 738 <free+0x18> 774: 39 c1 cmp %eax,%ecx 776: 73 c0 jae 738 <free+0x18> if(bp + bp->s.size == p->s.ptr){ 778: 8b 73 fc mov -0x4(%ebx),%esi 77b: 8d 3c f1 lea (%ecx,%esi,8),%edi 77e: 39 f8 cmp %edi,%eax 780: 75 d0 jne 752 <free+0x32> bp->s.size += p->s.ptr->s.size; 782: 03 70 04 add 0x4(%eax),%esi 785: 89 73 fc mov %esi,-0x4(%ebx) bp->s.ptr = p->s.ptr->s.ptr; 788: 8b 02 mov (%edx),%eax 78a: 8b 00 mov (%eax),%eax 78c: 89 43 f8 mov %eax,-0x8(%ebx) if(p + p->s.size == bp){ 78f: 8b 42 04 mov 0x4(%edx),%eax 792: 8d 34 c2 lea (%edx,%eax,8),%esi 795: 39 f1 cmp %esi,%ecx 797: 75 c6 jne 75f <free+0x3f> p->s.size += bp->s.size; 799: 03 43 fc add -0x4(%ebx),%eax freep = p; 79c: 89 15 40 0e 00 00 mov %edx,0xe40 p->s.size += bp->s.size; 7a2: 89 42 04 mov %eax,0x4(%edx) p->s.ptr = bp->s.ptr; 7a5: 8b 4b f8 mov -0x8(%ebx),%ecx 7a8: 89 0a mov %ecx,(%edx) } 7aa: 5b pop %ebx 7ab: 5e pop %esi 7ac: 5f pop %edi 7ad: 5d pop %ebp 7ae: c3 ret 7af: 90 nop 000007b0 <malloc>: return freep; } void* malloc(uint nbytes) { 7b0: 55 push %ebp 7b1: 89 e5 mov %esp,%ebp 7b3: 57 push %edi 7b4: 56 push %esi 7b5: 53 push %ebx 7b6: 83 ec 1c sub $0x1c,%esp Header *p, *prevp; uint nunits; nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1; 7b9: 8b 45 08 mov 0x8(%ebp),%eax if((prevp = freep) == 0){ 7bc: 8b 3d 40 0e 00 00 mov 0xe40,%edi nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1; 7c2: 8d 70 07 lea 0x7(%eax),%esi 7c5: c1 ee 03 shr $0x3,%esi 7c8: 83 c6 01 add $0x1,%esi if((prevp = freep) == 0){ 7cb: 85 ff test %edi,%edi 7cd: 0f 84 9d 00 00 00 je 870 <malloc+0xc0> base.s.ptr = freep = prevp = &base; base.s.size = 0; } for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){ 7d3: 8b 17 mov (%edi),%edx if(p->s.size >= nunits){ 7d5: 8b 4a 04 mov 0x4(%edx),%ecx 7d8: 39 f1 cmp %esi,%ecx 7da: 73 6a jae 846 <malloc+0x96> 7dc: bb 00 10 00 00 mov $0x1000,%ebx 7e1: 39 de cmp %ebx,%esi 7e3: 0f 43 de cmovae %esi,%ebx p = sbrk(nu * sizeof(Header)); 7e6: 8d 04 dd 00 00 00 00 lea 0x0(,%ebx,8),%eax 7ed: 89 45 e4 mov %eax,-0x1c(%ebp) 7f0: eb 17 jmp 809 <malloc+0x59> 7f2: 8d b6 00 00 00 00 lea 0x0(%esi),%esi for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){ 7f8: 8b 02 mov (%edx),%eax if(p->s.size >= nunits){ 7fa: 8b 48 04 mov 0x4(%eax),%ecx 7fd: 39 f1 cmp %esi,%ecx 7ff: 73 4f jae 850 <malloc+0xa0> p->s.size = nunits; } freep = prevp; return (void*)(p + 1); } if(p == freep) 801: 8b 3d 40 0e 00 00 mov 0xe40,%edi 807: 89 c2 mov %eax,%edx 809: 39 d7 cmp %edx,%edi 80b: 75 eb jne 7f8 <malloc+0x48> p = sbrk(nu * sizeof(Header)); 80d: 83 ec 0c sub $0xc,%esp 810: ff 75 e4 push -0x1c(%ebp) 813: e8 63 fc ff ff call 47b <sbrk> if(p == (char*)-1) 818: 83 c4 10 add $0x10,%esp 81b: 83 f8 ff cmp $0xffffffff,%eax 81e: 74 1c je 83c <malloc+0x8c> hp->s.size = nu; 820: 89 58 04 mov %ebx,0x4(%eax) free((void*)(hp + 1)); 823: 83 ec 0c sub $0xc,%esp 826: 83 c0 08 add $0x8,%eax 829: 50 push %eax 82a: e8 f1 fe ff ff call 720 <free> return freep; 82f: 8b 15 40 0e 00 00 mov 0xe40,%edx if((p = morecore(nunits)) == 0) 835: 83 c4 10 add $0x10,%esp 838: 85 d2 test %edx,%edx 83a: 75 bc jne 7f8 <malloc+0x48> return 0; } } 83c: 8d 65 f4 lea -0xc(%ebp),%esp return 0; 83f: 31 c0 xor %eax,%eax } 841: 5b pop %ebx 842: 5e pop %esi 843: 5f pop %edi 844: 5d pop %ebp 845: c3 ret if(p->s.size >= nunits){ 846: 89 d0 mov %edx,%eax 848: 89 fa mov %edi,%edx 84a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi if(p->s.size == nunits) 850: 39 ce cmp %ecx,%esi 852: 74 4c je 8a0 <malloc+0xf0> p->s.size -= nunits; 854: 29 f1 sub %esi,%ecx 856: 89 48 04 mov %ecx,0x4(%eax) p += p->s.size; 859: 8d 04 c8 lea (%eax,%ecx,8),%eax p->s.size = nunits; 85c: 89 70 04 mov %esi,0x4(%eax) freep = prevp; 85f: 89 15 40 0e 00 00 mov %edx,0xe40 } 865: 8d 65 f4 lea -0xc(%ebp),%esp return (void*)(p + 1); 868: 83 c0 08 add $0x8,%eax } 86b: 5b pop %ebx 86c: 5e pop %esi 86d: 5f pop %edi 86e: 5d pop %ebp 86f: c3 ret base.s.ptr = freep = prevp = &base; 870: c7 05 40 0e 00 00 44 movl $0xe44,0xe40 877: 0e 00 00 base.s.size = 0; 87a: bf 44 0e 00 00 mov $0xe44,%edi base.s.ptr = freep = prevp = &base; 87f: c7 05 44 0e 00 00 44 movl $0xe44,0xe44 886: 0e 00 00 for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){ 889: 89 fa mov %edi,%edx base.s.size = 0; 88b: c7 05 48 0e 00 00 00 movl $0x0,0xe48 892: 00 00 00 if(p->s.size >= nunits){ 895: e9 42 ff ff ff jmp 7dc <malloc+0x2c> 89a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi prevp->s.ptr = p->s.ptr; 8a0: 8b 08 mov (%eax),%ecx 8a2: 89 0a mov %ecx,(%edx) 8a4: eb b9 jmp 85f <malloc+0xaf>
Xholon/src/org/public/lib/antlr4g/Room.g4
kenwebb/Xholon
1
3296
<filename>Xholon/src/org/public/lib/antlr4g/Room.g4 /* * This ANTLR4 grammar was manually created by <NAME> from Room.xtext * August 1, 2017 * parser rules start with a lowercase letter * lexer rules start with a capital letter * TODO FQN and ID rules are ambiguous; how do I deal with this ? * * To compile this file to ANTLR JavaScript: * cd ~/JavaThirdParty/antlr4 * java -jar antlr-4.7-complete.jar -Dlanguage=JavaScript Room.g4 * java -jar antlr-4.7-complete.jar -Dlanguage=JavaScript -visitor Room.g4 * * at the top of the generated .js files, change the path to: * 'xholon/lib/antlr4/index' * * To test it: * http://12192.168.127.12:8888/XholonAntlr_Room.html?app=HelloWorld&gui=clsc */ grammar Room; roomModel : 'RoomModel' ID (Documentation)? '{' ( dataClass | generalProtocolClass | actorClass | subSystemClass | logicalSystem | ImportRoom )* '}' ; logicalSystem : 'LogicalSystem' ID '{' ( subSystemRef )* '}' ; //subSystemRef : 'SubSystemRef' ID ':' ID (Documentation)? ; subSystemRef : 'SubSystemRef' RoomName ID (Documentation)? ; subSystemClass : 'SubSystemClass' ID (Documentation)? '{' ( logicalThread | layerConnection | actorRef )* '}' ; logicalThread : 'LogicalThread' ID ; layerConnection : 'LayerConnection' 'ref' ID 'satisfied_by' ID ; generalProtocolClass : protocolClass | compoundProtocolClass ; protocolClass : 'ProtocolClass' ID (Documentation)? ( 'extends' ID )? '{' ('incoming' '{' message* '}')? ('outgoing' '{' message* '}')? ('regular' 'PortClass' portClass)? ('conjugated' 'PortClass' portClass)? '}' ; compoundProtocolClass : 'CompoundProtocolClass' ID (Documentation)? '{' subProtocol* '}' ; subProtocol : 'SubProtocol' ID ':' ID ; message : ('private')? 'Message' ID '(' (varDecl)? ')' (Documentation)? ; varDecl : ID ; portClass : '{' '}' ; actorRef : (ReferenceType)? 'ActorRef' ( ( ID (MULTIPLICITY)? ':' ) | RoomName ) ID (Documentation)? ; actorClass : 'ActorClass' ID (Documentation)? ( 'extends' ID )? '{' ( iinterface )? ( structure )? ( behavior )? '}' ; // iinterface : 'Interface' '{' port* '}' ; structure : 'Structure' '{' ( actorRef | port | binding | sap )* '}' ; // Port port0: TodoProtocol // conjugated Port actorPort[*]: TodoProtocol // external Port actorPort // external Port port0 // Port a_48_port0: PingPongProtocol port : ( 'conjugated' | 'external' )* 'Port' RoomName? ID ; // Binding port_64_actorPort and port_64.actorPort binding : 'Binding' ID 'and' ID ; // SAP timingService: PTimer sap : 'SAP' RoomName ID ; behavior : 'Behavior' '{' stateMachine? '}' ; stateMachine : 'StateMachine' '{' ( transition | sstate )* '}' ; // Transition init: initial -> helloState // Transition tr0: sendingPing -> receivedPong { transition : 'Transition' RoomName ID '->' ID ( '{' ( triggers | action )* '}' )? ; sstate : 'State' ID ( '{' ( subgraph | entry | exit )* '}' )? ; transitionPoint : 'TransitionPoint' ID ; choicePoint : 'ChoicePoint' ID ; subgraph : 'subgraph' '{' ( transition | sstate )* '}' ; entry : 'entry' '{' code? '}' ; exit : 'exit' '{' code? '}' ; action : 'action' '{' code? '}' ; // triggers { // <ping: recvPort> // } triggers : 'triggers' '{' trigger* '}' ; trigger : '<' RoomName ID '>' ; entryPoint : 'EntryPoint' ID ; exitPoint : 'ExitPoint' ID ; // "// TODO" // "sendPort.ping();" // "System.out.println(\"### Hello World! ###\");" it fails on \" // '"' .*? '"' doesn't work code : CodeString ; dataClass : 'DataClass' ID (Documentation)? ( 'extends' ID )? '{' ID '}' ; //importRoom : 'import' ( importedFQN 'from' | 'model' ) ID ; // for now, ignore import ImportRoom : 'import' ~[\r\n]* -> skip ; importedFQN : 'impotodo' ; //FQN ('.*')? ; ReferenceType : 'rtypetodo' ; MULTIPLICITY : '[' ( '*'|INT ) ']' ; // FQN and ID rules are ambiguous //FQN : ID ('.' ID)* ; Documentation : '[' 'doctodo' ']' ; //fragment //StringLiteral // : '"' StringCharacters? '"' // ; //fragment //StringCharacters // : StringCharacter+ // ; //fragment //StringCharacter // : ~["\\\r\n] // ; // [0-9a-fA-F] //HEX : ('0x'|'0X') ('0'..'9'|'a'..'f'|'A'..'F')+ ; //ID : '^'? ('a'..'z'|'A'..'Z'|'_') ('a'..'z'|'A'..'Z'|'_'|'0'..'9')*; //ID : [a-zA-Z_] [a-zA-Z0-9_]*; ID : [a-zA-Z_] [a-zA-Z0-9_]* ( '.' [a-zA-Z_] [a-zA-Z0-9_]* )? ; // roleName, portName, and any other name that ends in ":" RoomName : [a-zA-Z0-9_] [a-zA-Z0-9_]* MULTIPLICITY? [:] ; // CodeString : '"' ~('\r' | '\n' | '"')* '"' ; this works, except when recognizing internal \" CodeString : '"' (~('"' | '\\' | '\r' | '\n') | '\\' ('"' | '\\'))* '"'; // '0' | [1-9] [0-9]* //INT : ('0'..'9')+; fragment INT : [0-9]+ ; // KSW this causes error(50) //RULE_STRING : ('"' ('\\' .|~(('\\'|'"')))* '"'|'\'' ('\\' .|~(('\\'|'\'')))* '\''); // Java //STRING : ('"' ('\\' .|~('\\'|'"'))* '"'|'\'' ('\\' .|~('\\'|'\''))* '\'') ; // JavaScript //RULE_ML_COMMENT : '/*' ( options {greedy=false;} : . )*'*/'; // Java //ML_COMMENT : '/*' ( . )*?'*/'; // JavaScript ML_COMMENT : '/*' .*? '*/' -> skip ; // KSW this causes error(50) //RULE_SL_COMMENT : '//' ~(('\n'|'\r'))* ('\r'? '\n')?; // Java //SL_COMMENT : '//' ~('\n'|'\r')* ('\r'? '\n')?; // JavaScript SL_COMMENT : '//' ~[\r\n]* -> skip ; //WS : (' '|'\t'|'\r'|'\n')+; WS : [ \n\t\r]+ -> skip ; //ANY_OTHER : . ;
src/loggers/adabase-logger-facility.adb
jrmarino/AdaBase
30
14416
-- This file is covered by the Internet Software Consortium (ISC) License -- Reference: ../../License.txt package body AdaBase.Logger.Facility is ------------------ -- error_mode -- ------------------ function error_mode (facility : LogFacility) return Error_Modes is begin return facility.prop_error_mode; end error_mode; ---------------------- -- set_error_mode -- ---------------------- procedure set_error_mode (facility : out LogFacility; mode : Error_Modes) is begin facility.prop_error_mode := mode; end set_error_mode; -------------------- -- set_log_file -- -------------------- procedure set_log_file (facility : LogFacility; filename : String) is begin facility.listener_file.all.set_filepath (filename); end set_log_file; --------------------- -- standard_logger -- --------------------- procedure standard_logger (facility : out LogFacility; logger : TLogger; action : TAction) is use type ALF.File_Logger_access; use type ALS.Screen_Logger_access; begin case logger is when screen => case action is when detach => if facility.listener_screen = null then raise ALREADY_DETACHED; else facility.listener_screen := null; end if; when attach => if facility.listener_screen = null then facility.listener_screen := logger_screen'Access; else raise ALREADY_ATTACHED; end if; end case; when file => case action is when detach => if facility.listener_file = null then raise ALREADY_DETACHED; else facility.listener_file := null; end if; when attach => if facility.listener_file = null then facility.listener_file := logger_file'Access; else raise ALREADY_ATTACHED; end if; end case; end case; end standard_logger; ---------------------------- -- detach_custom_logger -- ---------------------------- procedure detach_custom_logger (facility : out LogFacility) is use type AL.BaseClass_Logger_access; begin if facility.listener_custom = null then raise ALREADY_DETACHED; else facility.listener_custom := null; end if; end detach_custom_logger; ---------------------------- -- attach_custom_logger -- ---------------------------- procedure attach_custom_logger (facility : out LogFacility; logger_access : AL.BaseClass_Logger_access) is use type AL.BaseClass_Logger_access; begin if facility.listener_custom = null then facility.listener_custom := logger_access; else raise ALREADY_ATTACHED; end if; end attach_custom_logger; ------------------- -- log_nominal -- ------------------- procedure log_nominal (facility : LogFacility; driver : Driver_Type; category : Log_Category; message : CT.Text) is use type AL.Screen.Screen_Logger_access; use type AL.File.File_Logger_access; use type AL.BaseClass_Logger_access; begin if facility.listener_screen /= null then facility.listener_screen.all.set_information (driver => driver, category => category, message => message); facility.listener_screen.all.reaction; end if; if facility.listener_file /= null then facility.listener_file.all.set_information (driver => driver, category => category, message => message); facility.listener_file.all.reaction; end if; if facility.listener_custom /= null then facility.listener_custom.all.set_information (driver => driver, category => category, message => message); facility.listener_custom.all.reaction; end if; end log_nominal; ------------------- -- log_problem -- ------------------- procedure log_problem (facility : LogFacility; driver : Driver_Type; category : Log_Category; message : CT.Text; error_msg : CT.Text := CT.blank; error_code : Driver_Codes := 0; sqlstate : SQL_State := stateless; break : Boolean := False) is use type Error_Modes; use type AL.Screen.Screen_Logger_access; use type AL.File.File_Logger_access; use type AL.BaseClass_Logger_access; QND : constant String := CT.USS (message); begin if not break and then facility.prop_error_mode = silent then return; end if; if facility.listener_screen /= null then facility.listener_screen.all.set_information (driver => driver, category => category, message => message, error_msg => error_msg, error_code => error_code, sqlstate => sqlstate); facility.listener_screen.all.reaction; end if; if facility.listener_file /= null then facility.listener_file.all.set_information (driver => driver, category => category, message => message, error_msg => error_msg, error_code => error_code, sqlstate => sqlstate); facility.listener_file.all.reaction; end if; if facility.listener_custom /= null then facility.listener_custom.all.set_information (driver => driver, category => category, message => message, error_msg => error_msg, error_code => error_code, sqlstate => sqlstate); facility.listener_custom.all.reaction; end if; if break or else facility.prop_error_mode = raise_exception then raise ERRMODE_EXCEPTION with QND; end if; end log_problem; end AdaBase.Logger.Facility;
oeis/033/A033825.asm
neoneye/loda-programs
11
13613
; A033825: Finite sequence associated with M24. ; Submitted by <NAME> ; 2,4,4,4,6,6,8,8,10,12,16,24 add $0,1 mov $2,$0 seq $0,240926 ; a(n) = 2 + L(2*n) = 2 + A005248(n), n >= 0, with the Lucas numbers (A000032). add $2,28 div $0,$2 mul $2,2 add $0,$2 div $0,$2 sub $0,6 lpb $2 add $0,2 sub $2,2 lpe div $0,5 sub $0,9 mul $0,2
src/fot/FOTC/Program/Division/ConversionRulesATP.agda
asr/fotc
11
5637
<filename>src/fot/FOTC/Program/Division/ConversionRulesATP.agda ------------------------------------------------------------------------------ -- Conversion rules for the division ------------------------------------------------------------------------------ {-# OPTIONS --exact-split #-} {-# OPTIONS --no-sized-types #-} {-# OPTIONS --no-universe-polymorphism #-} {-# OPTIONS --without-K #-} module FOTC.Program.Division.ConversionRulesATP where open import FOTC.Base open import FOTC.Data.Nat open import FOTC.Data.Nat.Inequalities open import FOTC.Program.Division.Division ---------------------------------------------------------------------- -- NB. These equations are not used by the ATPs. They use the official -- equation. private -- The division result when the dividend is minor than the -- the divisor. postulate div-x<y : ∀ {i j} → i < j → div i j ≡ zero {-# ATP prove div-x<y #-} -- The division result when the dividend is greater or equal than the -- the divisor. postulate div-x≮y : ∀ {i j} → i ≮ j → div i j ≡ succ₁ (div (i ∸ j) j) {-# ATP prove div-x≮y #-}
CODE/TESTA/TESTA.asm
mspeculatrix/Zolatron64
0
84143
<gh_stars>0 ; Code for Zolatron 64 6502-based microcomputer. ; ; GitHub: https://github.com/mspeculatrix/Zolatron64/ ; Blog: https://mansfield-devine.com/speculatrix/category/projects/zolatron/ ; ; Written for the Beebasm assembler ; Assemble with: ; beebasm -v -i TESTA.asm CPU 1 ; use 65C02 instruction set BARLED = $0230 ; for the bar LED display BARLED_L = BARLED BARLED_H = BARLED + 1 INCLUDE "../../LIB/cfg_main.asm" INCLUDE "../../LIB/cfg_page_0.asm" ; PAGE 1 is the STACK INCLUDE "../../LIB/cfg_page_2.asm" ; PAGE 3 is used for STDIN & STDOUT buffers, plus indexes INCLUDE "../../LIB/cfg_page_4.asm" INCLUDE "../../LIB/cfg_VIAC.asm" ORG USR_PAGE .startcode sei ; don't interrupt me yet cld ; we don' need no steenkin' BCD ldx #$ff ; set stack pointer to $01FF - only need to set the txs ; LSB, as MSB is assumed to be $01 lda #0 sta PRG_EXIT_CODE cli stz VIAC_PORTA stz VIAC_PORTB jsr OSLCDCLS .main lda #'A' jsr OSLCDCH jsr OSWRCH lda #'B' jsr OSLCDCH jsr OSWRCH lda #'C' jsr OSLCDCH jsr OSWRCH lda #' ' jsr OSWRCH jsr OSWRSBUF lda #CHR_LINEEND jsr OSWRCH LOAD_MSG start_msg jsr OSWRMSG lda #CHR_LINEEND jsr OSWRCH jsr OSLCDMSG LOAD_MSG second_msg jsr OSWRMSG jsr OSLCDMSG .prog_end jmp OSSFTRST .start_msg equs "Test A", 0 .second_msg equs "Hello world!", 0 .endcode SAVE "../bin/TESTA.BIN", startcode, endcode
test/Fail/MixingCoPatternsAndCoConstructors.agda
alhassy/agda
3
2826
<filename>test/Fail/MixingCoPatternsAndCoConstructors.agda {-# OPTIONS --copatterns #-} module MixingCoPatternsAndCoConstructors where data ℕ : Set where zero : ℕ suc : (n : ℕ) → ℕ module MStream where record Stream (A : Set) : Set where coinductive constructor _∷_ field head : A tail : Stream A open Stream weird : (n : ℕ) → Stream ℕ head (weird zero) = zero tail (weird zero) = weird zero head (weird (suc n)) = n tail (weird (suc n)) = tail (weird n) weird' : (n : ℕ) → Stream ℕ head (weird' zero) = zero tail (weird' zero) = weird' zero weird' (suc n) = n ∷ tail (weird' n) -- BAD: weird'' : (n : ℕ) → Stream ℕ weird'' zero = zero ∷ weird'' zero weird'' (suc n) = n ∷ tail (weird'' n) -- productive, but not strongly normalizing, -- should be rejected by termination checker: repeat : {A : Set}(a : A) → Stream A head (repeat a) = a tail (repeat a) = a ∷ tail (repeat a) module Coinduction where import Common.Level open import Common.Coinduction record Stream (A : Set) : Set where inductive constructor _∷_ field head : A tail : ∞ (Stream A) open Stream weird'' : (n : ℕ) → Stream ℕ weird'' zero = zero ∷ (♯ weird'' zero) weird'' (suc n) = n ∷ tail (weird'' n) module CoList where mutual data CoList (A : Set) : Set where [] : CoList A _∷_ : (x : A)(xs : CoList∞ A) → CoList A record CoList∞ (A : Set) : Set where coinductive constructor delay field force : CoList A open CoList∞ downFrom : (n : ℕ) → CoList ℕ downFrom zero = [] downFrom (suc n) = n ∷ delay (downFrom n) down : (n : ℕ) → CoList∞ ℕ force (down zero) = [] force (down (suc n)) = n ∷ delay (force (down n)) -- weird detour: delay (force ... to test termination checker
libsrc/target/tvc/stdio/fgetc_cons.asm
Frodevan/z88dk
640
160260
<filename>libsrc/target/tvc/stdio/fgetc_cons.asm ; ; Videoton TV Computer C stub ; <NAME> - 2019 ; Based on the source of ; ; Enterprise 64/128 C Library ; ; Fgetc_cons ; ; <NAME> - 2011 ; SECTION code_clib PUBLIC fgetc_cons INCLUDE "target/tvc/def/tvc.def" ; ; Entry: none ; .fgetc_cons ._fgetc_cons rst $30 defb KBD_CHIN ; keyboard - character in ld l,c ld h,0 ret
libsrc/target/nc100/padreadyserial.asm
jpoikela/z88dk
640
6774
SECTION code_clib PUBLIC padreadyserial PUBLIC _padreadyserial ; fastcall .padreadyserial ._padreadyserial call 0xb869 ld hl, 0 ret nc inc hl ret
gfx/pokemon/slugma/anim.asm
Dev727/ancientplatinum
28
11727
frame 1, 12 frame 2, 10 frame 3, 06 frame 4, 14 frame 6, 12 frame 7, 10 frame 8, 06 frame 0, 14 endanim
src/main/antlr4/MySql.g4
oleg-zinovev/antlr-kotlin-mysql-example
0
3760
<filename>src/main/antlr4/MySql.g4<gh_stars>0 /* MySQL (Positive Technologies) grammar The MIT License (MIT). Copyright (c) 2015-2017, <NAME> (<EMAIL>), Positive Technologies. Copyright (c) 2017, <NAME> (<EMAIL>) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ grammar MySql; options { language=Kotlin; } // Top Level Description root : sqlStatements? MINUSMINUS? EOF ; sqlStatements : (sqlStatement MINUSMINUS? SEMI | emptyStatement)* (sqlStatement (MINUSMINUS? SEMI)? | emptyStatement) ; sqlStatement : ddlStatement | dmlStatement | transactionStatement | replicationStatement | preparedStatement | administrationStatement | utilityStatement ; emptyStatement : SEMI ; ddlStatement : createDatabase | createEvent | createIndex | createLogfileGroup | createProcedure | createFunction | createServer | createTable | createTablespaceInnodb | createTablespaceNdb | createTrigger | createView | alterDatabase | alterEvent | alterFunction | alterInstance | alterLogfileGroup | alterProcedure | alterServer | alterTable | alterTablespace | alterView | dropDatabase | dropEvent | dropIndex | dropLogfileGroup | dropProcedure | dropFunction | dropServer | dropTable | dropTablespace | dropTrigger | dropView | renameTable | truncateTable ; dmlStatement : selectStatement | insertStatement | updateStatement | deleteStatement | replaceStatement | callStatement | loadDataStatement | loadXmlStatement | doStatement | handlerStatement ; transactionStatement : startTransaction | beginWork | commitWork | rollbackWork | savepointStatement | rollbackStatement | releaseStatement | lockTables | unlockTables ; replicationStatement : changeMaster | changeReplicationFilter | purgeBinaryLogs | resetMaster | resetSlave | startSlave | stopSlave | startGroupReplication | stopGroupReplication | xaStartTransaction | xaEndTransaction | xaPrepareStatement | xaCommitWork | xaRollbackWork | xaRecoverWork ; preparedStatement : prepareStatement | executeStatement | deallocatePrepare ; // remark: NOT INCLUDED IN sqlStatement, but include in body // of routine's statements compoundStatement : blockStatement | caseStatement | ifStatement | leaveStatement | loopStatement | repeatStatement | whileStatement | iterateStatement | returnStatement | cursorStatement ; administrationStatement : alterUser | createUser | dropUser | grantStatement | grantProxy | renameUser | revokeStatement | revokeProxy | analyzeTable | checkTable | checksumTable | optimizeTable | repairTable | createUdfunction | installPlugin | uninstallPlugin | setStatement | showStatement | binlogStatement | cacheIndexStatement | flushStatement | killStatement | loadIndexIntoCache | resetStatement | shutdownStatement ; utilityStatement : simpleDescribeStatement | fullDescribeStatement | helpStatement | useStatement ; // Data Definition Language // Create statements createDatabase : CREATE dbFormat=(DATABASE | SCHEMA) ifNotExists? uid createDatabaseOption* ; createEvent : CREATE ownerStatement? EVENT ifNotExists? fullId ON SCHEDULE scheduleExpression (ON COMPLETION NOT? PRESERVE)? enableType? (COMMENT STRING_LITERAL)? DO routineBody ; createIndex : CREATE intimeAction=(ONLINE | OFFLINE)? indexCategory=(UNIQUE | FULLTEXT | SPATIAL)? INDEX uid indexType? ON tableName indexColumnNames indexOption* ( ALGORITHM '='? algType=(DEFAULT | INPLACE | COPY) | LOCK '='? lockType=(DEFAULT | NONE | SHARED | EXCLUSIVE) )? ; createLogfileGroup : CREATE LOGFILE GROUP uid ADD UNDOFILE undoFile=STRING_LITERAL (INITIAL_SIZE '='? initSize=fileSizeLiteral)? (UNDO_BUFFER_SIZE '='? undoSize=fileSizeLiteral)? (REDO_BUFFER_SIZE '='? redoSize=fileSizeLiteral)? (NODEGROUP '='? uid)? WAIT? (COMMENT '='? comment=STRING_LITERAL)? ENGINE '='? engineName ; createProcedure : CREATE ownerStatement? PROCEDURE fullId '(' procedureParameter? (',' procedureParameter)* ')' routineOption* routineBody ; createFunction : CREATE ownerStatement? FUNCTION fullId '(' functionParameter? (',' functionParameter)* ')' RETURNS dataType routineOption* routineBody ; createServer : CREATE SERVER uid FOREIGN DATA WRAPPER wrapperName=(MYSQL | STRING_LITERAL) OPTIONS '(' serverOption (',' serverOption)* ')' ; createTable : CREATE TEMPORARY? TABLE ifNotExists? tableName ( LIKE tableName | '(' LIKE parenthesisTable=tableName ')' ) #copyCreateTable | CREATE TEMPORARY? TABLE ifNotExists? tableName createDefinitions? ( tableOption (','? tableOption)* )? partitionDefinitions? keyViolate=(IGNORE | REPLACE)? AS? selectStatement #queryCreateTable | CREATE TEMPORARY? TABLE ifNotExists? tableName createDefinitions ( tableOption (','? tableOption)* )? partitionDefinitions? #columnCreateTable ; createTablespaceInnodb : CREATE TABLESPACE uid ADD DATAFILE datafile=STRING_LITERAL (FILE_BLOCK_SIZE '=' fileBlockSize=fileSizeLiteral)? (ENGINE '='? engineName)? ; createTablespaceNdb : CREATE TABLESPACE uid ADD DATAFILE datafile=STRING_LITERAL USE LOGFILE GROUP uid (EXTENT_SIZE '='? extentSize=fileSizeLiteral)? (INITIAL_SIZE '='? initialSize=fileSizeLiteral)? (AUTOEXTEND_SIZE '='? autoextendSize=fileSizeLiteral)? (MAX_SIZE '='? maxSize=fileSizeLiteral)? (NODEGROUP '='? uid)? WAIT? (COMMENT '='? comment=STRING_LITERAL)? ENGINE '='? engineName ; createTrigger : CREATE ownerStatement? TRIGGER thisTrigger=fullId triggerTime=(BEFORE | AFTER) triggerEvent=(INSERT | UPDATE | DELETE) ON tableName FOR EACH ROW (triggerPlace=(FOLLOWS | PRECEDES) otherTrigger=fullId)? routineBody ; createView : CREATE (OR REPLACE)? ( ALGORITHM '=' algType=(UNDEFINED | MERGE | TEMPTABLE) )? ownerStatement? (SQL SECURITY secContext=(DEFINER | INVOKER))? VIEW fullId ('(' uidList ')')? AS selectStatement (WITH checkOption=(CASCADED | LOCAL)? CHECK OPTION)? ; // details createDatabaseOption : DEFAULT? (CHARACTER SET | CHARSET) '='? charsetName | DEFAULT? COLLATE '='? collationName ; ownerStatement : DEFINER '=' (userName | CURRENT_USER ( '(' ')')?) ; scheduleExpression : AT timestampValue intervalExpr* #preciseSchedule | EVERY (decimalLiteral | expression) intervalType ( STARTS starting=timestampValue (startIntervals+=intervalExpr)* )? ( ENDS ending=timestampValue (endIntervals+=intervalExpr)* )? #intervalSchedule ; timestampValue : CURRENT_TIMESTAMP | stringLiteral | decimalLiteral | expression ; intervalExpr : '+' INTERVAL (decimalLiteral | expression) intervalType ; intervalType : intervalTypeBase | YEAR | YEAR_MONTH | DAY_HOUR | DAY_MINUTE | DAY_SECOND | HOUR_MINUTE | HOUR_SECOND | MINUTE_SECOND | SECOND_MICROSECOND | MINUTE_MICROSECOND | HOUR_MICROSECOND | DAY_MICROSECOND ; enableType : ENABLE | DISABLE | DISABLE ON SLAVE ; indexType : USING (BTREE | HASH) ; indexOption : KEY_BLOCK_SIZE '='? fileSizeLiteral | indexType | WITH PARSER uid | COMMENT STRING_LITERAL ; procedureParameter : direction=(IN | OUT | INOUT) uid dataType ; functionParameter : uid dataType ; routineOption : COMMENT STRING_LITERAL #routineComment | LANGUAGE SQL #routineLanguage | NOT? DETERMINISTIC #routineBehavior | ( CONTAINS SQL | NO SQL | READS SQL DATA | MODIFIES SQL DATA ) #routineData | SQL SECURITY context=(DEFINER | INVOKER) #routineSecurity ; serverOption : HOST STRING_LITERAL | DATABASE STRING_LITERAL | USER STRING_LITERAL | PASSWORD STRING_LITERAL | SOCKET STRING_LITERAL | OWNER STRING_LITERAL | PORT decimalLiteral ; createDefinitions : '(' createDefinition (',' createDefinition)* ')' ; createDefinition : uid columnDefinition #columnDeclaration | tableConstraint #constraintDeclaration | indexColumnDefinition #indexDeclaration ; columnDefinition : dataType columnConstraint* ; columnConstraint : nullNotnull #nullColumnConstraint | DEFAULT defaultValue #defaultColumnConstraint | AUTO_INCREMENT #autoIncrementColumnConstraint | PRIMARY? KEY #primaryKeyColumnConstraint | UNIQUE KEY? #uniqueKeyColumnConstraint | COMMENT STRING_LITERAL #commentColumnConstraint | COLUMN_FORMAT colformat=(FIXED | DYNAMIC | DEFAULT) #formatColumnConstraint | STORAGE storageval=(DISK | MEMORY | DEFAULT) #storageColumnConstraint | referenceDefinition #referenceColumnConstraint ; tableConstraint : (CONSTRAINT name=uid?)? PRIMARY KEY indexType? indexColumnNames indexOption* #primaryKeyTableConstraint | (CONSTRAINT name=uid?)? UNIQUE indexFormat=(INDEX | KEY)? index=uid? indexType? indexColumnNames indexOption* #uniqueKeyTableConstraint | (CONSTRAINT name=uid?)? FOREIGN KEY index=uid? indexColumnNames referenceDefinition #foreignKeyTableConstraint | (CONSTRAINT name=uid?)? CHECK '(' expression ')' #checkTableConstraint ; referenceDefinition : REFERENCES tableName indexColumnNames (MATCH matchType=(FULL | PARTIAL | SIMPLE))? referenceAction? ; referenceAction : ON DELETE onDelete=referenceControlType ( ON UPDATE onUpdate=referenceControlType )? | ON UPDATE onUpdate=referenceControlType ( ON DELETE onDelete=referenceControlType )? ; referenceControlType : RESTRICT | CASCADE | SET NULL_LITERAL | NO ACTION ; indexColumnDefinition : indexFormat=(INDEX | KEY) uid? indexType? indexColumnNames indexOption* #simpleIndexDeclaration | (FULLTEXT | SPATIAL) indexFormat=(INDEX | KEY)? uid? indexColumnNames indexOption* #specialIndexDeclaration ; tableOption : ENGINE '='? engineName #tableOptionEngine | AUTO_INCREMENT '='? decimalLiteral #tableOptionAutoIncrement | AVG_ROW_LENGTH '='? decimalLiteral #tableOptionAverage | DEFAULT? (CHARACTER SET | CHARSET) '='? charsetName #tableOptionCharset | CHECKSUM '='? boolValue=('0' | '1') #tableOptionChecksum | DEFAULT? COLLATE '='? collationName #tableOptionCollate | COMMENT '='? STRING_LITERAL #tableOptionComment | COMPRESSION '='? STRING_LITERAL #tableOptionCompression | CONNECTION '='? STRING_LITERAL #tableOptionConnection | DATA DIRECTORY '='? STRING_LITERAL #tableOptionDataDirectory | DELAY_KEY_WRITE '='? boolValue=('0' | '1') #tableOptionDelay | ENCRYPTION '='? STRING_LITERAL #tableOptionEncryption | INDEX DIRECTORY '='? STRING_LITERAL #tableOptionIndexDirectory | INSERT_METHOD '='? insertMethod=(NO | FIRST | LAST) #tableOptionInsertMethod | KEY_BLOCK_SIZE '='? fileSizeLiteral #tableOptionKeyBlockSize | MAX_ROWS '='? decimalLiteral #tableOptionMaxRows | MIN_ROWS '='? decimalLiteral #tableOptionMinRows | PACK_KEYS '='? extBoolValue=('0' | '1' | DEFAULT) #tableOptionPackKeys | PASSWORD '='? STRING_LITERAL #tableOptionPassword | ROW_FORMAT '='? rowFormat=( DEFAULT | DYNAMIC | FIXED | COMPRESSED | REDUNDANT | COMPACT ) #tableOptionRowFormat | STATS_AUTO_RECALC '='? extBoolValue=(DEFAULT | '0' | '1') #tableOptionRecalculation | STATS_PERSISTENT '='? extBoolValue=(DEFAULT | '0' | '1') #tableOptionPersistent | STATS_SAMPLE_PAGES '='? decimalLiteral #tableOptionSamplePage | TABLESPACE uid tablespaceStorage? #tableOptionTablespace | UNION '='? '(' tables ')' #tableOptionUnion ; tablespaceStorage : STORAGE (DISK | MEMORY | DEFAULT) ; partitionDefinitions : PARTITION BY partitionFunctionDefinition (PARTITIONS count=decimalLiteral)? ( SUBPARTITION BY subpartitionFunctionDefinition (SUBPARTITIONS subCount=decimalLiteral)? )? ('(' partitionDefinition (',' partitionDefinition)* ')')? ; partitionFunctionDefinition : LINEAR? HASH '(' expression ')' #partitionFunctionHash | LINEAR? KEY (ALGORITHM '=' algType=('1' | '2'))? '(' uidList ')' #partitionFunctionKey | RANGE ( '(' expression ')' | COLUMNS '(' uidList ')' ) #partitionFunctionRange | LIST ( '(' expression ')' | COLUMNS '(' uidList ')' ) #partitionFunctionList ; subpartitionFunctionDefinition : LINEAR? HASH '(' expression ')' #subPartitionFunctionHash | LINEAR? KEY (ALGORITHM '=' algType=('1' | '2'))? '(' uidList ')' #subPartitionFunctionKey ; partitionDefinition : PARTITION uid VALUES LESS THAN '(' partitionDefinerAtom (',' partitionDefinerAtom)* ')' partitionOption* (subpartitionDefinition (',' subpartitionDefinition)*)? #partitionComparision | PARTITION uid VALUES IN '(' partitionDefinerAtom (',' partitionDefinerAtom)* ')' partitionOption* (subpartitionDefinition (',' subpartitionDefinition)*)? #partitionListAtom | PARTITION uid VALUES IN '(' partitionDefinerVector (',' partitionDefinerVector)* ')' partitionOption* (subpartitionDefinition (',' subpartitionDefinition)*)? #partitionListVector | PARTITION uid partitionOption* (subpartitionDefinition (',' subpartitionDefinition)*)? #partitionSimple ; partitionDefinerAtom : constant | MAXVALUE | expression ; partitionDefinerVector : '(' partitionDefinerAtom (',' partitionDefinerAtom)+ ')' ; subpartitionDefinition : SUBPARTITION uid partitionOption* ; partitionOption : STORAGE? ENGINE '='? engineName #partitionOptionEngine | COMMENT '='? comment=STRING_LITERAL #partitionOptionComment | DATA DIRECTORY '='? dataDirectory=STRING_LITERAL #partitionOptionDataDirectory | INDEX DIRECTORY '='? indexDirectory=STRING_LITERAL #partitionOptionIndexDirectory | MAX_ROWS '='? maxRows=decimalLiteral #partitionOptionMaxRows | MIN_ROWS '='? minRows=decimalLiteral #partitionOptionMinRows | TABLESPACE '='? tablespace=uid #partitionOptionTablespace | NODEGROUP '='? nodegroup=uid #partitionOptionNodeGroup ; // Alter statements alterDatabase : ALTER dbFormat=(DATABASE | SCHEMA) uid? createDatabaseOption+ #alterSimpleDatabase | ALTER dbFormat=(DATABASE | SCHEMA) uid UPGRADE DATA DIRECTORY NAME #alterUpgradeName ; alterEvent : ALTER ownerStatement? EVENT fullId (ON SCHEDULE scheduleExpression)? (ON COMPLETION NOT? PRESERVE)? (RENAME TO fullId)? enableType? (COMMENT STRING_LITERAL)? (DO routineBody)? ; alterFunction : ALTER FUNCTION fullId routineOption* ; alterInstance : ALTER INSTANCE ROTATE INNODB MASTER KEY ; alterLogfileGroup : ALTER LOGFILE GROUP uid ADD UNDOFILE STRING_LITERAL (INITIAL_SIZE '='? fileSizeLiteral)? WAIT? ENGINE '='? engineName ; alterProcedure : ALTER PROCEDURE fullId routineOption* ; alterServer : ALTER SERVER uid OPTIONS '(' serverOption (',' serverOption)* ')' ; alterTable : ALTER intimeAction=(ONLINE | OFFLINE)? IGNORE? TABLE tableName //alterSpecification (',' alterSpecification)* partitionDefinitions? ; alterTablespace : ALTER TABLESPACE uid objectAction=(ADD | DROP) DATAFILE STRING_LITERAL (INITIAL_SIZE '=' fileSizeLiteral)? WAIT? ENGINE '='? engineName ; alterView : ALTER ( ALGORITHM '=' algType=(UNDEFINED | MERGE | TEMPTABLE) )? ownerStatement? (SQL SECURITY secContext=(DEFINER | INVOKER))? VIEW fullId ('(' uidList ')')? AS selectStatement (WITH checkOpt=(CASCADED | LOCAL)? CHECK OPTION)? ; // details //alterSpecification // : tableOption #alterByTableOption // | ADD COLUMN? uid columnDefinition (FIRST | AFTER uid)? #alterByAddColumn // | ADD COLUMN? // '(' // uid columnDefinition ( ',' uid columnDefinition)* // ')' #alterByAddColumns // | ADD indexFormat=(INDEX | KEY) uid? indexType? // indexColumnNames indexOption* #alterByAddIndex // | ADD (CONSTRAINT name=uid?)? PRIMARY KEY // indexType? indexColumnNames indexOption* #alterByAddPrimaryKey // | ADD (CONSTRAINT name=uid?)? UNIQUE // indexFormat=(INDEX | KEY)? indexName=uid? // indexType? indexColumnNames indexOption* #alterByAddUniqueKey // | ADD keyType=(FULLTEXT | SPATIAL) // indexFormat=(INDEX | KEY)? uid? // indexColumnNames indexOption* #alterByAddSpecialIndex // | ADD (CONSTRAINT name=uid?)? FOREIGN KEY // indexName=uid? indexColumnNames referenceDefinition #alterByAddForeignKey // | ADD (CONSTRAINT name=uid?)? CHECK '(' expression ')' #alterByAddCheckTableConstraint // | ALGORITHM '='? algType=(DEFAULT | INPLACE | COPY) #alterBySetAlgorithm // | ALTER COLUMN? uid // (SET DEFAULT defaultValue | DROP DEFAULT) #alterByChangeDefault // | CHANGE COLUMN? oldColumn=uid // newColumn=uid columnDefinition // (FIRST | AFTER afterColumn=uid)? #alterByChangeColumn // | LOCK '='? lockType=(DEFAULT | NONE | SHARED | EXCLUSIVE) #alterByLock // | MODIFY COLUMN? // uid columnDefinition (FIRST | AFTER uid)? #alterByModifyColumn // | DROP COLUMN? uid #alterByDropColumn // | DROP PRIMARY KEY #alterByDropPrimaryKey // | DROP indexFormat=(INDEX | KEY) uid #alterByDropIndex // | DROP FOREIGN KEY uid #alterByDropForeignKey // | DISABLE KEYS #alterByDisableKeys // | ENABLE KEYS #alterByEnableKeys // | RENAME renameFormat=(TO | AS)? uid #alterByRename // | ORDER BY uidList #alterByOrder // | CONVERT TO CHARACTER SET charsetName // (COLLATE collationName)? #alterByConvertCharset // | DEFAULT? CHARACTER SET '=' charsetName // (COLLATE '=' collationName)? #alterByDefaultCharset // | DISCARD TABLESPACE #alterByDiscardTablespace // | IMPORT TABLESPACE #alterByImportTablespace // | FORCE #alterByForce // | validationFormat=(WITHOUT | WITH) VALIDATION #alterByValidate // | ADD PARTITION partitionDefinition #alterByAddPartition // | DROP PARTITION uidList #alterByDropPartition // | DISCARD PARTITION (uidList | ALL) TABLESPACE #alterByDiscardPartition // | IMPORT PARTITION (uidList | ALL) TABLESPACE #alterByImportPartition // | TRUNCATE PARTITION (uidList | ALL) #alterByTruncatePartition // | COALESCE PARTITION decimalLiteral #alterByCoalescePartition // | REORGANIZE PARTITION uidList // INTO '(' // partitionDefinition (',' partitionDefinition)* // ')' #alterByReorganizePartition // | EXCHANGE PARTITION uid WITH TABLE tableName // (validationFormat=(WITH | WITHOUT) VALIDATION)? #alterByExchangePartition // | ANALYZE PARTITION (uidList | ALL) #alterByAnalyzePartitiion // | CHECK PARTITION (uidList | ALL) #alterByCheckPartition // | OPTIMIZE PARTITION (uidList | ALL) #alterByOptimizePartition // | REBUILD PARTITION (uidList | ALL) #alterByRebuildPartition // | REPAIR PARTITION (uidList | ALL) #alterByRepairPartition // | REMOVE PARTITIONING #alterByRemovePartitioning // | UPGRADE PARTITIONING #alterByUpgradePartitioning // ; // Drop statements dropDatabase : DROP dbFormat=(DATABASE | SCHEMA) ifExists? uid ; dropEvent : DROP EVENT ifExists? fullId ; dropIndex : DROP INDEX intimeAction=(ONLINE | OFFLINE)? uid ON tableName ( ALGORITHM '='? algType=(DEFAULT | INPLACE | COPY) )? ( LOCK '='? lockType=(DEFAULT | NONE | SHARED | EXCLUSIVE) )? ; dropLogfileGroup : DROP LOGFILE GROUP uid ENGINE '=' engineName ; dropProcedure : DROP PROCEDURE ifExists? fullId ; dropFunction : DROP FUNCTION ifExists? fullId ; dropServer : DROP SERVER ifExists? uid ; dropTable : DROP TEMPORARY? TABLE ifExists? tables dropType=(RESTRICT | CASCADE)? ; dropTablespace : DROP TABLESPACE uid (ENGINE '='? engineName)? ; dropTrigger : DROP TRIGGER ifExists? fullId ; dropView : DROP VIEW ifExists? fullId (',' fullId)* dropType=(RESTRICT | CASCADE)? ; // Other DDL statements renameTable : RENAME TABLE renameTableClause (',' renameTableClause)* ; renameTableClause : tableName TO tableName ; truncateTable : TRUNCATE TABLE? tableName ; // Data Manipulation Language // Primary DML Statements callStatement : CALL fullId ( '(' (constants | expressions)? ')' )? ; deleteStatement : singleDeleteStatement | multipleDeleteStatement ; doStatement : DO expressions ; handlerStatement : handlerOpenStatement | handlerReadIndexStatement | handlerReadStatement | handlerCloseStatement ; insertStatement : INSERT priority=(LOW_PRIORITY | DELAYED | HIGH_PRIORITY)? IGNORE? INTO? tableName (PARTITION '(' partitions=uidList ')' )? ( ('(' columns=uidList ')')? insertStatementValue | SET setFirst=updatedElement (',' setElements+=updatedElement)* ) ( ON DUPLICATE KEY UPDATE duplicatedFirst=updatedElement (',' duplicatedElements+=updatedElement)* )? ; loadDataStatement : LOAD DATA priority=(LOW_PRIORITY | CONCURRENT)? LOCAL? INFILE filename=STRING_LITERAL violation=(REPLACE | IGNORE)? INTO TABLE tableName (PARTITION '(' uidList ')' )? (CHARACTER SET charset=charsetName)? ( fieldsFormat=(FIELDS | COLUMNS) selectFieldsInto+ )? ( LINES selectLinesInto+ )? ( IGNORE decimalLiteral linesFormat=(LINES | ROWS) )? ( '(' assignmentField (',' assignmentField)* ')' )? (SET updatedElement (',' updatedElement)*)? ; loadXmlStatement : LOAD XML priority=(LOW_PRIORITY | CONCURRENT)? LOCAL? INFILE filename=STRING_LITERAL violation=(REPLACE | IGNORE)? INTO TABLE tableName (CHARACTER SET charset=charsetName)? (ROWS IDENTIFIED BY '<' tag=STRING_LITERAL '>')? ( IGNORE decimalLiteral linesFormat=(LINES | ROWS) )? ( '(' assignmentField (',' assignmentField)* ')' )? (SET updatedElement (',' updatedElement)*)? ; replaceStatement : REPLACE priority=(LOW_PRIORITY | DELAYED)? INTO? tableName (PARTITION '(' partitions=uidList ')' )? ( ('(' columns=uidList ')')? insertStatementValue | SET setFirst=updatedElement (',' setElements+=updatedElement)* ) ; selectStatement : querySpecification lockClause? #simpleSelect | queryExpression lockClause? #parenthesisSelect | querySpecificationNointo unionStatement+ ( UNION unionType=(ALL | DISTINCT)? (querySpecification | queryExpression) )? orderByClause? limitClause? lockClause? #unionSelect | queryExpressionNointo unionParenthesis+ ( UNION unionType=(ALL | DISTINCT)? queryExpression )? orderByClause? limitClause? lockClause? #unionParenthesisSelect ; updateStatement : singleUpdateStatement | multipleUpdateStatement ; // details insertStatementValue : selectStatement | insertFormat=(VALUES | VALUE) '(' expressionsWithDefaults ')' (',' '(' expressionsWithDefaults ')')* ; updatedElement : fullColumnName '=' (expression | DEFAULT) ; assignmentField : uid | LOCAL_ID ; lockClause : FOR UPDATE | LOCK IN SHARE MODE ; // Detailed DML Statements singleDeleteStatement : DELETE priority=LOW_PRIORITY? QUICK? IGNORE? FROM tableName (PARTITION '(' uidList ')' )? (WHERE expression)? orderByClause? (LIMIT decimalLiteral)? ; multipleDeleteStatement : DELETE priority=LOW_PRIORITY? QUICK? IGNORE? ( tableName ('.' '*')? ( ',' tableName ('.' '*')? )* FROM tableSources | FROM tableName ('.' '*')? ( ',' tableName ('.' '*')? )* USING tableSources ) (WHERE expression)? ; handlerOpenStatement : HANDLER tableName OPEN (AS? uid)? ; handlerReadIndexStatement : HANDLER tableName READ index=uid ( comparisonOperator '(' constants ')' | moveOrder=(FIRST | NEXT | PREV | LAST) ) (WHERE expression)? (LIMIT decimalLiteral)? ; handlerReadStatement : HANDLER tableName READ moveOrder=(FIRST | NEXT) (WHERE expression)? (LIMIT decimalLiteral)? ; handlerCloseStatement : HANDLER tableName CLOSE ; singleUpdateStatement : UPDATE priority=LOW_PRIORITY? IGNORE? tableName (AS? uid)? SET updatedElement (',' updatedElement)* (WHERE expression)? orderByClause? limitClause? ; multipleUpdateStatement : UPDATE priority=LOW_PRIORITY? IGNORE? tableSources SET updatedElement (',' updatedElement)* (WHERE expression)? ; // details orderByClause : ORDER BY orderByExpression (',' orderByExpression)* ; orderByExpression : expression order=(ASC | DESC)? ; tableSources : tableSource (',' tableSource)* ; tableSource : tableSourceItem joinPart* #tableSourceBase | '(' tableSourceItem joinPart* ')' #tableSourceNested ; tableSourceItem : tableName (PARTITION '(' uidList ')' )? (AS? alias=uid)? (indexHint (',' indexHint)* )? #atomTableItem | ( selectStatement | '(' parenthesisSubquery=selectStatement ')' ) AS? alias=uid #subqueryTableItem | '(' tableSources ')' #tableSourcesItem ; indexHint : indexHintAction=(USE | IGNORE | FORCE) keyFormat=(INDEX|KEY) ( FOR indexHintType)? '(' uidList ')' ; indexHintType : JOIN | ORDER BY | GROUP BY ; joinPart : (INNER | CROSS)? JOIN tableSourceItem ( ON expression | USING '(' uidList ')' )? #innerJoin | STRAIGHT_JOIN tableSourceItem (ON expression)? #straightJoin | (LEFT | RIGHT) OUTER? JOIN tableSourceItem ( ON expression | USING '(' uidList ')' ) #outerJoin | NATURAL ((LEFT | RIGHT) OUTER?)? JOIN tableSourceItem #naturalJoin ; // Select Statement's Details queryExpression : '(' querySpecification ')' | '(' queryExpression ')' ; queryExpressionNointo : '(' querySpecificationNointo ')' | '(' queryExpressionNointo ')' ; querySpecification : SELECT selectSpec* selectElements selectIntoExpression? fromClause? orderByClause? limitClause? | SELECT selectSpec* selectElements fromClause? orderByClause? limitClause? selectIntoExpression? ; querySpecificationNointo : SELECT selectSpec* selectElements fromClause? orderByClause? limitClause? ; unionParenthesis : UNION unionType=(ALL | DISTINCT)? queryExpressionNointo ; unionStatement : UNION unionType=(ALL | DISTINCT)? (querySpecificationNointo | queryExpressionNointo) ; // details selectSpec : (ALL | DISTINCT | DISTINCTROW) | HIGH_PRIORITY | STRAIGHT_JOIN | SQL_SMALL_RESULT | SQL_BIG_RESULT | SQL_BUFFER_RESULT | (SQL_CACHE | SQL_NO_CACHE) | SQL_CALC_FOUND_ROWS ; selectElements : (star='*' | selectElement ) (',' selectElement)* ; selectElement : fullId '.' '*' #selectStarElement | fullColumnName (AS? uid)? #selectColumnElement | functionCall (AS? uid)? #selectFunctionElement | (LOCAL_ID VAR_ASSIGN)? expression (AS? uid)? #selectExpressionElement ; selectIntoExpression : INTO assignmentField (',' assignmentField )* #selectIntoVariables | INTO DUMPFILE STRING_LITERAL #selectIntoDumpFile | ( INTO OUTFILE filename=STRING_LITERAL (CHARACTER SET charset=charsetName)? ( fieldsFormat=(FIELDS | COLUMNS) selectFieldsInto+ )? ( LINES selectLinesInto+ )? ) #selectIntoTextFile ; selectFieldsInto : TERMINATED BY terminationField=STRING_LITERAL | OPTIONALLY? ENCLOSED BY enclosion=STRING_LITERAL | ESCAPED BY escaping=STRING_LITERAL ; selectLinesInto : STARTING BY starting=STRING_LITERAL | TERMINATED BY terminationLine=STRING_LITERAL ; fromClause : FROM tableSources (WHERE whereExpr=expression)? ( GROUP BY groupByItem (',' groupByItem)* (WITH ROLLUP)? )? (HAVING havingExpr=expression)? ; groupByItem : expression order=(ASC | DESC)? ; limitClause : LIMIT ( (offset=decimalLiteral ',')? limit=decimalLiteral | limit=decimalLiteral OFFSET offset=decimalLiteral ) ; // Transaction's Statements startTransaction : START TRANSACTION (transactionMode (',' transactionMode)* )? ; beginWork : BEGIN WORK? ; commitWork : COMMIT WORK? (AND nochain=NO? CHAIN)? (norelease=NO? RELEASE)? ; rollbackWork : ROLLBACK WORK? (AND nochain=NO? CHAIN)? (norelease=NO? RELEASE)? ; savepointStatement : SAVEPOINT uid ; rollbackStatement : ROLLBACK WORK? TO SAVEPOINT? uid ; releaseStatement : RELEASE SAVEPOINT uid ; lockTables : LOCK TABLES lockTableElement (',' lockTableElement)* ; unlockTables : UNLOCK TABLES ; // details setAutocommitStatement : SET AUTOCOMMIT '=' autocommitValue=('0' | '1') ; setTransactionStatement : SET transactionContext=(GLOBAL | SESSION)? TRANSACTION transactionOption (',' transactionOption)* ; transactionMode : WITH CONSISTENT SNAPSHOT | READ WRITE | READ ONLY ; lockTableElement : tableName (AS? uid)? lockAction ; lockAction : READ LOCAL? | LOW_PRIORITY? WRITE ; transactionOption : ISOLATION LEVEL transactionLevel | READ WRITE | READ ONLY ; transactionLevel : REPEATABLE READ | READ COMMITTED | READ UNCOMMITTED | SERIALIZABLE ; // Replication's Statements // Base Replication changeMaster : CHANGE MASTER TO masterOption (',' masterOption)* channelOption? ; changeReplicationFilter : CHANGE REPLICATION FILTER replicationFilter (',' replicationFilter)* ; purgeBinaryLogs : PURGE purgeFormat=(BINARY | MASTER) LOGS ( TO fileName=STRING_LITERAL | BEFORE timeValue=STRING_LITERAL ) ; resetMaster : RESET MASTER ; resetSlave : RESET SLAVE ALL? channelOption? ; startSlave : START SLAVE (threadType (',' threadType)*)? (UNTIL untilOption)? connectionOption* channelOption? ; stopSlave : STOP SLAVE (threadType (',' threadType)*)? ; startGroupReplication : START GROUP_REPLICATION ; stopGroupReplication : STOP GROUP_REPLICATION ; // details masterOption : stringMasterOption '=' STRING_LITERAL #masterStringOption | decimalMasterOption '=' decimalLiteral #masterDecimalOption | boolMasterOption '=' boolVal=('0' | '1') #masterBoolOption | MASTER_HEARTBEAT_PERIOD '=' REAL_LITERAL #masterRealOption | IGNORE_SERVER_IDS '=' '(' (uid (',' uid)*)? ')' #masterUidListOption ; stringMasterOption : MASTER_BIND | MASTER_HOST | MASTER_USER | MASTER_PASSWORD | MASTER_LOG_FILE | RELAY_LOG_FILE | MASTER_SSL_CA | MASTER_SSL_CAPATH | MASTER_SSL_CERT | MASTER_SSL_CRL | MASTER_SSL_CRLPATH | MASTER_SSL_KEY | MASTER_SSL_CIPHER | MASTER_TLS_VERSION ; decimalMasterOption : MASTER_PORT | MASTER_CONNECT_RETRY | MASTER_RETRY_COUNT | MASTER_DELAY | MASTER_LOG_POS | RELAY_LOG_POS ; boolMasterOption : MASTER_AUTO_POSITION | MASTER_SSL | MASTER_SSL_VERIFY_SERVER_CERT ; channelOption : FOR CHANNEL STRING_LITERAL ; replicationFilter : REPLICATE_DO_DB '=' '(' uidList ')' #doDbReplication | REPLICATE_IGNORE_DB '=' '(' uidList ')' #ignoreDbReplication | REPLICATE_DO_TABLE '=' '(' tables ')' #doTableReplication | REPLICATE_IGNORE_TABLE '=' '(' tables ')' #ignoreTableReplication | REPLICATE_WILD_DO_TABLE '=' '(' simpleStrings ')' #wildDoTableReplication | REPLICATE_WILD_IGNORE_TABLE '=' '(' simpleStrings ')' #wildIgnoreTableReplication | REPLICATE_REWRITE_DB '=' '(' tablePair (',' tablePair)* ')' #rewriteDbReplication ; tablePair : '(' firstTable=tableName ',' secondTable=tableName ')' ; threadType : IO_THREAD | SQL_THREAD ; untilOption : gtids=(SQL_BEFORE_GTIDS | SQL_AFTER_GTIDS) '=' gtuidSet #gtidsUntilOption | MASTER_LOG_FILE '=' STRING_LITERAL ',' MASTER_LOG_POS '=' decimalLiteral #masterLogUntilOption | RELAY_LOG_FILE '=' STRING_LITERAL ',' RELAY_LOG_POS '=' decimalLiteral #relayLogUntilOption | SQL_AFTER_MTS_GAPS #sqlGapsUntilOption ; connectionOption : USER '=' conOptUser=STRING_LITERAL #userConnectionOption | PASSWORD '=' conOptPassword=STRING_LITERAL #passwordConnectionOption | DEFAULT_AUTH '=' conOptDefAuth=STRING_LITERAL #defaultAuthConnectionOption | PLUGIN_DIR '=' conOptPluginDir=STRING_LITERAL #pluginDirConnectionOption ; gtuidSet : uuidSet (',' uuidSet)* | STRING_LITERAL ; // XA Transactions xaStartTransaction : XA xaStart=(START | BEGIN) xid xaAction=(JOIN | RESUME)? ; xaEndTransaction : XA END xid (SUSPEND (FOR MIGRATE)?)? ; xaPrepareStatement : XA PREPARE xid ; xaCommitWork : XA COMMIT xid (ONE PHASE)? ; xaRollbackWork : XA ROLLBACK xid ; xaRecoverWork : XA RECOVER (CONVERT xid)? ; // Prepared Statements prepareStatement : PREPARE uid FROM (query=STRING_LITERAL | variable=LOCAL_ID) ; executeStatement : EXECUTE uid (USING userVariables)? ; deallocatePrepare : dropFormat=(DEALLOCATE | DROP) PREPARE uid ; // Compound Statements routineBody : blockStatement | sqlStatement ; // details blockStatement : (uid ':')? BEGIN ( (declareVariable SEMI)* (declareCondition SEMI)* (declareCursor SEMI)* (declareHandler SEMI)* procedureSqlStatement+ )? END uid? ; caseStatement : CASE (uid | expression)? caseAlternative+ (ELSE procedureSqlStatement+)? END CASE ; ifStatement : IF expression THEN thenStatements+=procedureSqlStatement+ elifAlternative* (ELSE elseStatements+=procedureSqlStatement+ )? END IF ; iterateStatement : ITERATE uid ; leaveStatement : LEAVE uid ; loopStatement : (uid ':')? LOOP procedureSqlStatement+ END LOOP uid? ; repeatStatement : (uid ':')? REPEAT procedureSqlStatement+ UNTIL expression END REPEAT uid? ; returnStatement : RETURN expression ; whileStatement : (uid ':')? WHILE expression DO procedureSqlStatement+ END WHILE uid? ; cursorStatement : CLOSE uid #CloseCursor | FETCH (NEXT? FROM)? uid INTO uidList #FetchCursor | OPEN uid #OpenCursor ; // details declareVariable : DECLARE uidList dataType (DEFAULT defaultValue)? ; declareCondition : DECLARE uid CONDITION FOR ( decimalLiteral | SQLSTATE VALUE? STRING_LITERAL) ; declareCursor : DECLARE uid CURSOR FOR selectStatement ; declareHandler : DECLARE handlerAction=(CONTINUE | EXIT | UNDO) HANDLER FOR handlerConditionValue (',' handlerConditionValue)* routineBody ; handlerConditionValue : decimalLiteral #handlerConditionCode | SQLSTATE VALUE? STRING_LITERAL #handlerConditionState | uid #handlerConditionName | SQLWARNING #handlerConditionWarning | NOT FOUND #handlerConditionNotfound | SQLEXCEPTION #handlerConditionException ; procedureSqlStatement : (compoundStatement | sqlStatement) SEMI ; caseAlternative : WHEN (constant | expression) THEN procedureSqlStatement+ ; elifAlternative : ELSEIF expression THEN procedureSqlStatement+ ; // Administration Statements // Account management statements alterUser : ALTER USER userSpecification (',' userSpecification)* #alterUserMysqlV56 | ALTER USER ifExists? userAuthOption (',' userAuthOption)* ( REQUIRE (tlsNone=NONE | tlsOption (AND? tlsOption)* ) )? (WITH userResourceOption+)? (userPasswordOption | userLockOption)* #alterUserMysqlV57 ; createUser : CREATE USER userAuthOption (',' userAuthOption)* #createUserMysqlV56 | CREATE USER ifNotExists? userAuthOption (',' userAuthOption)* ( REQUIRE (tlsNone=NONE | tlsOption (AND? tlsOption)* ) )? (WITH userResourceOption+)? (userPasswordOption | userLockOption)* #createUserMysqlV57 ; dropUser : DROP USER ifExists? userName (',' userName)* ; grantStatement : GRANT privelegeClause (',' privelegeClause)* ON privilegeObject=(TABLE | FUNCTION | PROCEDURE)? privilegeLevel TO userAuthOption (',' userAuthOption)* ( REQUIRE (tlsNone=NONE | tlsOption (AND? tlsOption)* ) )? (WITH (GRANT OPTION | userResourceOption)* )? ; grantProxy : GRANT PROXY ON fromFirst=userName TO toFirst=userName (',' toOther+=userName)* (WITH GRANT OPTION)? ; renameUser : RENAME USER renameUserClause (',' renameUserClause)* ; revokeStatement : REVOKE privelegeClause (',' privelegeClause)* ON privilegeObject=(TABLE | FUNCTION | PROCEDURE)? privilegeLevel FROM userName (',' userName)* #detailRevoke | REVOKE ALL PRIVILEGES? ',' GRANT OPTION FROM userName (',' userName)* #shortRevoke ; revokeProxy : REVOKE PROXY ON onUser=userName FROM fromFirst=userName (',' fromOther+=userName)* ; setPasswordStatement : SET PASSWORD (FOR userName)? '=' ( passwordFunctionClause | STRING_LITERAL) ; // details userSpecification : userName userPasswordOption ; userAuthOption : userName IDENTIFIED BY PASSWORD hashed=STRING_LITERAL #passwordAuthOption | userName IDENTIFIED (WITH authPlugin)? BY STRING_LITERAL #stringAuthOption | userName IDENTIFIED WITH authPlugin (AS STRING_LITERAL)? #hashAuthOption | userName #simpleAuthOption ; tlsOption : SSL | X509 | CIPHER STRING_LITERAL | ISSUER STRING_LITERAL | SUBJECT STRING_LITERAL ; userResourceOption : MAX_QUERIES_PER_HOUR decimalLiteral | MAX_UPDATES_PER_HOUR decimalLiteral | MAX_CONNECTIONS_PER_HOUR decimalLiteral | MAX_USER_CONNECTIONS decimalLiteral ; userPasswordOption : PASSWORD EXPIRE (expireType=DEFAULT | expireType=NEVER | expireType=INTERVAL decimalLiteral DAY )? ; userLockOption : ACCOUNT lockType=(LOCK | UNLOCK) ; privelegeClause : privilege ( '(' uidList ')' )? ; privilege : ALL PRIVILEGES? | ALTER ROUTINE? | CREATE (TEMPORARY TABLES | ROUTINE | VIEW | USER | TABLESPACE)? | DELETE | DROP | EVENT | EXECUTE | FILE | GRANT OPTION | INDEX | INSERT | LOCK TABLES | PROCESS | PROXY | REFERENCES | RELOAD | REPLICATION (CLIENT | SLAVE) | SELECT | SHOW (VIEW | DATABASES) | SHUTDOWN | SUPER | TRIGGER | UPDATE | USAGE ; privilegeLevel : '*' #currentSchemaPriviLevel | '*' '.' '*' #globalPrivLevel | uid '.' '*' #definiteSchemaPrivLevel | uid '.' uid #definiteFullTablePrivLevel | uid #definiteTablePrivLevel ; renameUserClause : fromFirst=userName TO toFirst=userName ; // Table maintenance statements analyzeTable : ANALYZE actionOption=(NO_WRITE_TO_BINLOG | LOCAL)? TABLE tables ; checkTable : CHECK TABLE tables checkTableOption* ; checksumTable : CHECKSUM TABLE tables actionOption=(QUICK | EXTENDED)? ; optimizeTable : OPTIMIZE actionOption=(NO_WRITE_TO_BINLOG | LOCAL)? TABLE tables ; repairTable : REPAIR actionOption=(NO_WRITE_TO_BINLOG | LOCAL)? TABLE tables QUICK? EXTENDED? USE_FRM? ; // details checkTableOption : FOR UPGRADE | QUICK | FAST | MEDIUM | EXTENDED | CHANGED ; // Plugin and udf statements createUdfunction : CREATE AGGREGATE? FUNCTION uid RETURNS returnType=(STRING | INTEGER | REAL | DECIMAL) SONAME STRING_LITERAL ; installPlugin : INSTALL PLUGIN uid SONAME STRING_LITERAL ; uninstallPlugin : UNINSTALL PLUGIN uid ; // Set and show statements setStatement : SET variableClause '=' expression (',' variableClause '=' expression)* #setVariable | SET (CHARACTER SET | CHARSET) (charsetName | DEFAULT) #setCharset | SET NAMES (charsetName (COLLATE collationName)? | DEFAULT) #setNames | setPasswordStatement #setPassword | setTransactionStatement #setTransaction | setAutocommitStatement #setAutocommit ; showStatement : SHOW logFormat=(BINARY | MASTER) LOGS #showMasterLogs | SHOW logFormat=(BINLOG | RELAYLOG) EVENTS (IN filename=STRING_LITERAL)? (FROM fromPosition=decimalLiteral)? (LIMIT (offset=decimalLiteral ',')? rowCount=decimalLiteral )? #showLogEvents | SHOW showCommonEntity showFilter? #showObjectFilter | SHOW FULL? columnsFormat=(COLUMNS | FIELDS) tableFormat=(FROM | IN) tableName (schemaFormat=(FROM | IN) uid)? showFilter? #showColumns | SHOW CREATE schemaFormat=(DATABASE | SCHEMA) ifNotExists? uid #showCreateDb | SHOW CREATE namedEntity=( EVENT | FUNCTION | PROCEDURE | TABLE | TRIGGER | VIEW ) fullId #showCreateFullIdObject | SHOW CREATE USER userName #showCreateUser | SHOW ENGINE engineName engineOption=(STATUS | MUTEX) #showEngine | SHOW showGlobalInfoClause #showGlobalInfo | SHOW errorFormat=(ERRORS | WARNINGS) (LIMIT (offset=decimalLiteral ',')? rowCount=decimalLiteral ) #showErrors | SHOW COUNT '(' '*' ')' errorFormat=(ERRORS | WARNINGS) #showCountErrors | SHOW showSchemaEntity (schemaFormat=(FROM | IN) uid)? showFilter? #showSchemaFilter | SHOW routine=(FUNCTION | PROCEDURE) CODE fullId #showRoutine | SHOW GRANTS (FOR userName)? #showGrants | SHOW indexFormat=(INDEX | INDEXES | KEYS) tableFormat=(FROM | IN) tableName (schemaFormat=(FROM | IN) uid)? (WHERE expression)? #showIndexes | SHOW OPEN TABLES ( schemaFormat=(FROM | IN) uid)? showFilter? #showOpenTables | SHOW PROFILE showProfileType (',' showProfileType)* (FOR QUERY queryCount=decimalLiteral)? (LIMIT (offset=decimalLiteral ',')? rowCount=decimalLiteral ) #showProfile | SHOW SLAVE STATUS (FOR CHANNEL STRING_LITERAL)? #showSlaveStatus ; // details variableClause : LOCAL_ID | GLOBAL_ID | ( ('@' '@')? (GLOBAL | SESSION) )? uid ; showCommonEntity : CHARACTER SET | COLLATION | DATABASES | SCHEMAS | FUNCTION STATUS | PROCEDURE STATUS | (GLOBAL | SESSION)? (STATUS | VARIABLES) ; showFilter : LIKE STRING_LITERAL | WHERE expression ; showGlobalInfoClause : STORAGE? ENGINES | MASTER STATUS | PLUGINS | PRIVILEGES | FULL? PROCESSLIST | PROFILES | SLAVE HOSTS | AUTHORS | CONTRIBUTORS ; showSchemaEntity : EVENTS | TABLE STATUS | FULL? TABLES | TRIGGERS ; showProfileType : ALL | BLOCK IO | CONTEXT SWITCHES | CPU | IPC | MEMORY | PAGE FAULTS | SOURCE | SWAPS ; // Other administrative statements binlogStatement : BINLOG STRING_LITERAL ; cacheIndexStatement : CACHE INDEX tableIndexes (',' tableIndexes)* ( PARTITION '(' (uidList | ALL) ')' )? IN schema=uid ; flushStatement : FLUSH flushFormat=(NO_WRITE_TO_BINLOG | LOCAL)? flushOption (',' flushOption)* ; killStatement : KILL connectionFormat=(CONNECTION | QUERY)? decimalLiteral+ ; loadIndexIntoCache : LOAD INDEX INTO CACHE loadedTableIndexes (',' loadedTableIndexes)* ; // remark reset (maser | slave) describe in replication's // statements section resetStatement : RESET QUERY CACHE ; shutdownStatement : SHUTDOWN ; // details tableIndexes : tableName ( indexFormat=(INDEX | KEY)? '(' uidList ')' )? ; flushOption : ( DES_KEY_FILE | HOSTS | ( BINARY | ENGINE | ERROR | GENERAL | RELAY | SLOW )? LOGS | OPTIMIZER_COSTS | PRIVILEGES | QUERY CACHE | STATUS | USER_RESOURCES | TABLES (WITH READ LOCK)? ) #simpleFlushOption | RELAY LOGS channelOption? #channelFlushOption | TABLES tables flushTableOption? #tableFlushOption ; flushTableOption : WITH READ LOCK | FOR EXPORT ; loadedTableIndexes : tableName ( PARTITION '(' (partitionList=uidList | ALL) ')' )? ( indexFormat=(INDEX | KEY)? '(' indexList=uidList ')' )? (IGNORE LEAVES)? ; // Utility Statements simpleDescribeStatement : command=(EXPLAIN | DESCRIBE | DESC) tableName (column=uid | pattern=STRING_LITERAL)? ; fullDescribeStatement : command=(EXPLAIN | DESCRIBE | DESC) ( formatType=(EXTENDED | PARTITIONS | FORMAT ) '=' formatValue=(TRADITIONAL | JSON) )? describeObjectClause ; helpStatement : HELP STRING_LITERAL ; useStatement : USE uid ; // details describeObjectClause : ( selectStatement | deleteStatement | insertStatement | replaceStatement | updateStatement ) #describeStatements | FOR CONNECTION uid #describeConnection ; // Common Clauses // DB Objects fullId : uid (DOT_ID | '.' uid)? ; tableName : fullId ; fullColumnName : uid (dottedId dottedId? )? ; indexColumnName : uid ('(' decimalLiteral ')')? sortType=(ASC | DESC)? ; userName : STRING_USER_NAME | ID; mysqlVariable : LOCAL_ID | GLOBAL_ID ; charsetName : BINARY | charsetNameBase | STRING_LITERAL | CHARSET_REVERSE_QOUTE_STRING ; collationName : uid | STRING_LITERAL; engineName : ARCHIVE | BLACKHOLE | CSV | FEDERATED | INNODB | MEMORY | MRG_MYISAM | MYISAM | NDB | NDBCLUSTER | PERFOMANCE_SCHEMA ; uuidSet : decimalLiteral '-' decimalLiteral '-' decimalLiteral '-' decimalLiteral '-' decimalLiteral (':' decimalLiteral '-' decimalLiteral)+ ; xid : globalTableUid=xuidStringId ( ',' qualifier=xuidStringId (',' idFormat=decimalLiteral)? )? ; xuidStringId : STRING_LITERAL | BIT_STRING | HEXADECIMAL_LITERAL+ ; authPlugin : uid | STRING_LITERAL ; uid : simpleId //| DOUBLE_QUOTE_ID | REVERSE_QUOTE_ID | CHARSET_REVERSE_QOUTE_STRING ; simpleId : ID | charsetNameBase | transactionLevelBase | engineName | privilegesBase | intervalTypeBase | dataTypeBase | keywordsCanBeId | functionNameBase ; dottedId : DOT_ID | '.' uid ; // Literals decimalLiteral : DECIMAL_LITERAL | ZERO_DECIMAL | ONE_DECIMAL | TWO_DECIMAL ; fileSizeLiteral : FILESIZE_LITERAL | decimalLiteral; stringLiteral : ( STRING_CHARSET_NAME? STRING_LITERAL | START_NATIONAL_STRING_LITERAL ) STRING_LITERAL+ | ( STRING_CHARSET_NAME? STRING_LITERAL | START_NATIONAL_STRING_LITERAL ) (COLLATE collationName)? ; booleanLiteral : TRUE | FALSE; hexadecimalLiteral : STRING_CHARSET_NAME? HEXADECIMAL_LITERAL; nullNotnull : NOT? (NULL_LITERAL | NULL_SPEC_LITERAL) ; constant : stringLiteral | decimalLiteral | '-' decimalLiteral | hexadecimalLiteral | booleanLiteral | REAL_LITERAL | BIT_STRING | NOT? nullLiteral=(NULL_LITERAL | NULL_SPEC_LITERAL) ; // Data Types dataType : typeName=( CHAR | VARCHAR | TINYTEXT | TEXT | MEDIUMTEXT | LONGTEXT ) lengthOneDimension? BINARY? (CHARACTER SET charsetName)? (COLLATE collationName)? #stringDataType | typeName=( TINYINT | SMALLINT | MEDIUMINT | INT | INTEGER | BIGINT ) lengthOneDimension? UNSIGNED? ZEROFILL? #dimensionDataType | typeName=(REAL | DOUBLE | FLOAT) lengthTwoDimension? UNSIGNED? ZEROFILL? #dimensionDataType | typeName=(DECIMAL | NUMERIC) lengthTwoOptionalDimension? UNSIGNED? ZEROFILL? #dimensionDataType | typeName=( DATE | TINYBLOB | BLOB | MEDIUMBLOB | LONGBLOB | BOOL | BOOLEAN ) #simpleDataType | typeName=( BIT | TIME | TIMESTAMP | DATETIME | BINARY | VARBINARY | YEAR ) lengthOneDimension? #dimensionDataType | typeName=(ENUM | SET) '(' STRING_LITERAL (',' STRING_LITERAL)* ')' BINARY? (CHARACTER SET charsetName)? (COLLATE collationName)? #collectionDataType | typeName=( GEOMETRYCOLLECTION | LINESTRING | MULTILINESTRING | MULTIPOINT | MULTIPOLYGON | POINT | POLYGON ) #spatialDataType ; convertedDataType : typeName=(BINARY| NCHAR) lengthOneDimension? | typeName=CHAR lengthOneDimension? (CHARACTER SET charsetName)? | typeName=(DATE | DATETIME | TIME) | typeName=DECIMAL lengthTwoDimension? | (SIGNED | UNSIGNED) INTEGER? ; lengthOneDimension : '(' decimalLiteral ')' ; lengthTwoDimension : '(' decimalLiteral ',' decimalLiteral ')' ; lengthTwoOptionalDimension : '(' decimalLiteral (',' decimalLiteral)? ')' ; // Common Lists uidList : uid (',' uid)* ; tables : tableName (',' tableName)* ; indexColumnNames : '(' indexColumnName (',' indexColumnName)* ')' ; expressions : expression (',' expression)* ; expressionsWithDefaults : expressionOrDefault (',' expressionOrDefault)* ; constants : constant (',' constant)* ; simpleStrings : STRING_LITERAL (',' STRING_LITERAL)* ; userVariables : LOCAL_ID (',' LOCAL_ID)* ; // Common Expressons defaultValue : NULL_LITERAL | constant | currentTimestamp (ON UPDATE currentTimestamp)? ; currentTimestamp : ( (CURRENT_TIMESTAMP | LOCALTIME | LOCALTIMESTAMP) ('(' decimalLiteral? ')')? | NOW '(' decimalLiteral? ')' ) ; expressionOrDefault : expression | DEFAULT ; ifExists : IF EXISTS; ifNotExists : IF NOT EXISTS; // Functions functionCall : specificFunction #specificFunctionCall | aggregateWindowedFunction #aggregateFunctionCall | scalarFunctionName '(' functionArgs? ')' #scalarFunctionCall | fullId '(' functionArgs? ')' #udfFunctionCall | passwordFunctionClause #passwordFunctionCall ; specificFunction : ( CURRENT_DATE | CURRENT_TIME | CURRENT_TIMESTAMP | CURRENT_USER | LOCALTIME ) #simpleFunctionCall | CONVERT '(' expression separator=',' convertedDataType ')' #dataTypeFunctionCall | CONVERT '(' expression USING charsetName ')' #dataTypeFunctionCall | CAST '(' expression AS convertedDataType ')' #dataTypeFunctionCall | VALUES '(' fullColumnName ')' #valuesFunctionCall | CASE expression caseFuncAlternative+ (ELSE elseArg=functionArg)? END #caseFunctionCall | CASE caseFuncAlternative+ (ELSE elseArg=functionArg)? END #caseFunctionCall | CHAR '(' functionArgs (USING charsetName)? ')' #charFunctionCall | POSITION '(' ( positionString=stringLiteral | positionExpression=expression ) IN ( inString=stringLiteral | inExpression=expression ) ')' #positionFunctionCall | (SUBSTR | SUBSTRING) '(' ( sourceString=stringLiteral | sourceExpression=expression ) FROM ( fromDecimal=decimalLiteral | fromExpression=expression ) ( FOR ( forDecimal=decimalLiteral | forExpression=expression ) )? ')' #substrFunctionCall | TRIM '(' positioinForm=(BOTH | LEADING | TRAILING) ( sourceString=stringLiteral | sourceExpression=expression )? FROM ( fromString=stringLiteral | fromExpression=expression ) ')' #trimFunctionCall | TRIM '(' ( sourceString=stringLiteral | sourceExpression=expression ) FROM ( fromString=stringLiteral | fromExpression=expression ) ')' #trimFunctionCall | WEIGHT_STRING '(' (stringLiteral | expression) (AS stringFormat=(CHAR | BINARY) '(' decimalLiteral ')' )? levelsInWeightString? ')' #weightFunctionCall | EXTRACT '(' intervalType FROM ( sourceString=stringLiteral | sourceExpression=expression ) ')' #extractFunctionCall | GET_FORMAT '(' datetimeFormat=(DATE | TIME | DATETIME) ',' stringLiteral ')' #getFormatFunctionCall ; caseFuncAlternative : WHEN condition=functionArg THEN consequent=functionArg ; levelsInWeightString : LEVEL levelInWeightListElement (',' levelInWeightListElement)* #levelWeightList | LEVEL firstLevel=decimalLiteral '-' lastLevel=decimalLiteral #levelWeightRange ; levelInWeightListElement : decimalLiteral orderType=(ASC | DESC | REVERSE)? ; aggregateWindowedFunction : (AVG | MAX | MIN | SUM) '(' aggregator=(ALL | DISTINCT)? functionArg ')' | COUNT '(' (starArg='*' | aggregator=ALL? functionArg) ')' | COUNT '(' aggregator=DISTINCT functionArgs ')' | ( BIT_AND | BIT_OR | BIT_XOR | STD | STDDEV | STDDEV_POP | STDDEV_SAMP | VAR_POP | VAR_SAMP | VARIANCE ) '(' aggregator=ALL? functionArg ')' | GROUP_CONCAT '(' aggregator=DISTINCT? functionArgs (ORDER BY orderByExpression (',' orderByExpression)* )? (SEPARATOR separator=STRING_LITERAL)? ')' ; scalarFunctionName : functionNameBase | ASCII | CURDATE | CURRENT_DATE | CURRENT_TIME | CURRENT_TIMESTAMP | CURTIME | DATE_ADD | DATE_SUB | IF | INSERT | LOCALTIME | LOCALTIMESTAMP | MID | NOW | REPLACE | SUBSTR | SUBSTRING | SYSDATE | TRIM | UTC_DATE | UTC_TIME | UTC_TIMESTAMP ; passwordFunctionClause : functionName=(PASSWORD | OLD_PASSWORD) '(' functionArg ')' ; functionArgs : (constant | fullColumnName | functionCall | expression) ( ',' (constant | fullColumnName | functionCall | expression) )* ; functionArg : constant | fullColumnName | functionCall | expression ; // Expressions, predicates // Simplified approach for expression expression : notOperator=(NOT | '!') expression #notExpression | expression logicalOperator expression #logicalExpression | predicate IS NOT? testValue=(TRUE | FALSE | UNKNOWN) #isExpression | predicate #predicateExpression ; predicate : predicate NOT? IN '(' (selectStatement | expressions) ')' #inPredicate | predicate IS nullNotnull #isNullPredicate | left=predicate comparisonOperator right=predicate #binaryComparasionPredicate | predicate comparisonOperator quantifier=(ALL | ANY | SOME) '(' selectStatement ')' #subqueryComparasionPredicate | predicate NOT? BETWEEN predicate AND predicate #betweenPredicate | predicate SOUNDS LIKE predicate #soundsLikePredicate | predicate NOT? LIKE predicate (ESCAPE STRING_LITERAL)? #likePredicate | predicate NOT? regex=(REGEXP | RLIKE) predicate #regexpPredicate | (LOCAL_ID VAR_ASSIGN)? expressionAtom #expressionAtomPredicate ; // Add in ASTVisitor nullNotnull in constant expressionAtom : constant #constantExpressionAtom | fullColumnName #fullColumnNameExpressionAtom | functionCall #functionCallExpressionAtom | expressionAtom COLLATE collationName #collateExpressionAtom | mysqlVariable #mysqlVariableExpressionAtom | unaryOperator expressionAtom #unaryExpressionAtom | BINARY expressionAtom #binaryExpressionAtom | '(' expression (',' expression)* ')' #nestedExpressionAtom | ROW '(' expression (',' expression)+ ')' #nestedRowExpressionAtom | EXISTS '(' selectStatement ')' #existsExpessionAtom | '(' selectStatement ')' #subqueryExpessionAtom | INTERVAL expression intervalType #intervalExpressionAtom | left=expressionAtom bitOperator right=expressionAtom #bitExpressionAtom | left=expressionAtom mathOperator right=expressionAtom #mathExpressionAtom ; unaryOperator : '!' | '~' | '+' | '-' | NOT ; comparisonOperator : '=' | '>' | '<' | '<' '=' | '>' '=' | '<' '>' | '!' '=' | '<' '=' '>' ; logicalOperator : AND | '&' '&' | XOR | OR | '|' '|' ; bitOperator : '<' '<' | '>' '>' | '&' | '^' | '|' ; mathOperator : '*' | '/' | '%' | DIV | MOD | '+' | '-' | '--' ; // Simple id sets // (that keyword, which can be id) charsetNameBase : ARMSCII8 | ASCII | BIG5 | CP1250 | CP1251 | CP1256 | CP1257 | CP850 | CP852 | CP866 | CP932 | DEC8 | EUCJPMS | EUCKR | GB2312 | GBK | GEOSTD8 | GREEK | HEBREW | HP8 | KEYBCS2 | KOI8R | KOI8U | LATIN1 | LATIN2 | LATIN5 | LATIN7 | MACCE | MACROMAN | SJIS | SWE7 | TIS620 | UCS2 | UJIS | UTF16 | UTF16LE | UTF32 | UTF8 | UTF8MB3 | UTF8MB4 ; transactionLevelBase : REPEATABLE | COMMITTED | UNCOMMITTED | SERIALIZABLE ; privilegesBase : TABLES | ROUTINE | EXECUTE | FILE | PROCESS | RELOAD | SHUTDOWN | SUPER | PRIVILEGES ; intervalTypeBase : QUARTER | MONTH | DAY | HOUR | MINUTE | WEEK | SECOND | MICROSECOND ; dataTypeBase : DATE | TIME | TIMESTAMP | DATETIME | YEAR | ENUM | TEXT ; keywordsCanBeId : ACCOUNT | ACTION | AFTER | AGGREGATE | ALGORITHM | ANY | AT | AUTHORS | AUTOCOMMIT | AUTOEXTEND_SIZE | AUTO_INCREMENT | AVG_ROW_LENGTH | BEGIN | BINLOG | BIT | BLOCK | BOOL | BOOLEAN | BTREE | CASCADED | CHAIN | CHANNEL | CHECKSUM | CIPHER | CLIENT | COALESCE | CODE | COLUMNS | COLUMN_FORMAT | COMMENT | COMMIT | COMPACT | COMPLETION | COMPRESSED | COMPRESSION | CONCURRENT | CONNECTION | CONSISTENT | CONTAINS | CONTEXT | CONTRIBUTORS | COPY | CPU | DATA | DATAFILE | DEALLOCATE | DEFAULT_AUTH | DEFINER | DELAY_KEY_WRITE | DIRECTORY | DISABLE | DISCARD | DISK | DO | DUMPFILE | DUPLICATE | DYNAMIC | ENABLE | ENCRYPTION | ENDS | ENGINE | ENGINES | ERROR | ERRORS | ESCAPE | EVEN | EVENT | EVENTS | EVERY | EXCHANGE | EXCLUSIVE | EXPIRE | EXTENT_SIZE | FAULTS | FIELDS | FILE_BLOCK_SIZE | FILTER | FIRST | FIXED | FOLLOWS | FULL | FUNCTION | GLOBAL | GRANTS | GROUP_REPLICATION | HASH | HOST | IDENTIFIED | IGNORE_SERVER_IDS | IMPORT | INDEXES | INITIAL_SIZE | INPLACE | INSERT_METHOD | INSTANCE | INVOKER | IO | IO_THREAD | IPC | ISOLATION | ISSUER | KEY_BLOCK_SIZE | LANGUAGE | LAST | LEAVES | LESS | LEVEL | LIST | LOCAL | LOGFILE | LOGS | MASTER | MASTER_AUTO_POSITION | MASTER_CONNECT_RETRY | MASTER_DELAY | MASTER_HEARTBEAT_PERIOD | MASTER_HOST | MASTER_LOG_FILE | MASTER_LOG_POS | MASTER_PASSWORD | MASTER_PORT | MASTER_RETRY_COUNT | MASTER_SSL | MASTER_SSL_CA | MASTER_SSL_CAPATH | MASTER_SSL_CERT | MASTER_SSL_CIPHER | MASTER_SSL_CRL | MASTER_SSL_CRLPATH | MASTER_SSL_KEY | MASTER_TLS_VERSION | MASTER_USER | MAX_CONNECTIONS_PER_HOUR | MAX_QUERIES_PER_HOUR | MAX_ROWS | MAX_SIZE | MAX_UPDATES_PER_HOUR | MAX_USER_CONNECTIONS | MEMORY | MERGE | MID | MIGRATE | MIN_ROWS | MODIFY | MUTEX | MYSQL | NAME | NAMES | NCHAR | NEVER | NO | NODEGROUP | NONE | OFFLINE | OFFSET | OJ | OLD_PASSWORD | ONE | ONLINE | ONLY | OPTIMIZER_COSTS | OPTIONS | OWNER | PACK_KEYS | PAGE | PARSER | PARTIAL | PARTITIONING | PARTITIONS | PASSWORD | PHASE | PLUGINS | PLUGIN_DIR | PORT | PRECEDES | PREPARE | PRESERVE | PREV | PROCESSLIST | PROFILE | PROFILES | PROXY | QUERY | QUICK | REBUILD | RECOVER | REDO_BUFFER_SIZE | REDUNDANT | RELAYLOG | RELAY_LOG_FILE | RELAY_LOG_POS | REMOVE | REORGANIZE | REPAIR | REPLICATE_DO_DB | REPLICATE_DO_TABLE | REPLICATE_IGNORE_DB | REPLICATE_IGNORE_TABLE | REPLICATE_REWRITE_DB | REPLICATE_WILD_DO_TABLE | REPLICATE_WILD_IGNORE_TABLE | REPLICATION | RESUME | RETURNS | ROLLBACK | ROLLUP | ROTATE | ROW | ROWS | ROW_FORMAT | SAVEPOINT | SCHEDULE | SECURITY | SERVER | SESSION | SHARE | SHARED | SIGNED | SIMPLE | SLAVE | SNAPSHOT | SOCKET | SOME | SOUNDS | SOURCE | SQL_AFTER_GTIDS | SQL_AFTER_MTS_GAPS | SQL_BEFORE_GTIDS | SQL_BUFFER_RESULT | SQL_CACHE | SQL_NO_CACHE | SQL_THREAD | START | STARTS | STATS_AUTO_RECALC | STATS_PERSISTENT | STATS_SAMPLE_PAGES | STATUS | STOP | STORAGE | STRING | SUBJECT | SUBPARTITION | SUBPARTITIONS | SUSPEND | SWAPS | SWITCHES | TABLESPACE | TEMPORARY | TEMPTABLE | THAN | TRANSACTION | TRUNCATE | UNDEFINED | UNDOFILE | UNDO_BUFFER_SIZE | UNKNOWN | UPGRADE | USER | VALIDATION | VALUE | VARIABLES | VIEW | WAIT | WARNINGS | WITHOUT | WORK | WRAPPER | X509 | XA | XML ; functionNameBase : ABS | ACOS | ADDDATE | ADDTIME | AES_DECRYPT | AES_ENCRYPT | AREA | ASBINARY | ASIN | ASTEXT | ASWKB | ASWKT | ASYMMETRIC_DECRYPT | ASYMMETRIC_DERIVE | ASYMMETRIC_ENCRYPT | ASYMMETRIC_SIGN | ASYMMETRIC_VERIFY | ATAN | ATAN2 | BENCHMARK | BIN | BIT_COUNT | BIT_LENGTH | BUFFER | CEIL | CEILING | CENTROID | CHARACTER_LENGTH | CHARSET | CHAR_LENGTH | COERCIBILITY | COLLATION | COMPRESS | CONCAT | CONCAT_WS | CONNECTION_ID | CONV | CONVERT_TZ | COS | COT | COUNT | CRC32 | CREATE_ASYMMETRIC_PRIV_KEY | CREATE_ASYMMETRIC_PUB_KEY | CREATE_DH_PARAMETERS | CREATE_DIGEST | CROSSES | DATABASE | DATE | DATEDIFF | DATE_FORMAT | DAY | DAYNAME | DAYOFMONTH | DAYOFWEEK | DAYOFYEAR | DECODE | DEGREES | DES_DECRYPT | DES_ENCRYPT | DIMENSION | DISJOINT | ELT | ENCODE | ENCRYPT | ENDPOINT | ENVELOPE | EQUALS | EXP | EXPORT_SET | EXTERIORRING | EXTRACTVALUE | FIELD | FIND_IN_SET | FLOOR | FORMAT | FOUND_ROWS | FROM_BASE64 | FROM_DAYS | FROM_UNIXTIME | GEOMCOLLFROMTEXT | GEOMCOLLFROMWKB | GEOMETRYCOLLECTION | GEOMETRYCOLLECTIONFROMTEXT | GEOMETRYCOLLECTIONFROMWKB | GEOMETRYFROMTEXT | GEOMETRYFROMWKB | GEOMETRYN | GEOMETRYTYPE | GEOMFROMTEXT | GEOMFROMWKB | GET_FORMAT | GET_LOCK | GLENGTH | GREATEST | GTID_SUBSET | GTID_SUBTRACT | HEX | HOUR | IFNULL | INET6_ATON | INET6_NTOA | INET_ATON | INET_NTOA | INSTR | INTERIORRINGN | INTERSECTS | ISCLOSED | ISEMPTY | ISNULL | ISSIMPLE | IS_FREE_LOCK | IS_IPV4 | IS_IPV4_COMPAT | IS_IPV4_MAPPED | IS_IPV6 | IS_USED_LOCK | LAST_INSERT_ID | LCASE | LEAST | LEFT | LENGTH | LINEFROMTEXT | LINEFROMWKB | LINESTRING | LINESTRINGFROMTEXT | LINESTRINGFROMWKB | LN | LOAD_FILE | LOCATE | LOG | LOG10 | LOG2 | LOWER | LPAD | LTRIM | MAKEDATE | MAKETIME | MAKE_SET | MASTER_POS_WAIT | MBRCONTAINS | MBRDISJOINT | MBREQUAL | MBRINTERSECTS | MBROVERLAPS | MBRTOUCHES | MBRWITHIN | MD5 | MICROSECOND | MINUTE | MLINEFROMTEXT | MLINEFROMWKB | MONTH | MONTHNAME | MPOINTFROMTEXT | MPOINTFROMWKB | MPOLYFROMTEXT | MPOLYFROMWKB | MULTILINESTRING | MULTILINESTRINGFROMTEXT | MULTILINESTRINGFROMWKB | MULTIPOINT | MULTIPOINTFROMTEXT | MULTIPOINTFROMWKB | MULTIPOLYGON | MULTIPOLYGONFROMTEXT | MULTIPOLYGONFROMWKB | NAME_CONST | NULLIF | NUMGEOMETRIES | NUMINTERIORRINGS | NUMPOINTS | OCT | OCTET_LENGTH | ORD | OVERLAPS | PERIOD_ADD | PERIOD_DIFF | PI | POINT | POINTFROMTEXT | POINTFROMWKB | POINTN | POLYFROMTEXT | POLYFROMWKB | POLYGON | POLYGONFROMTEXT | POLYGONFROMWKB | POSITION| POW | POWER | QUARTER | QUOTE | RADIANS | RAND | RANDOM_BYTES | RELEASE_LOCK | REVERSE | RIGHT | ROUND | ROW_COUNT | RPAD | RTRIM | SECOND | SEC_TO_TIME | SESSION_USER | SHA | SHA1 | SHA2 | SIGN | SIN | SLEEP | SOUNDEX | SQL_THREAD_WAIT_AFTER_GTIDS | SQRT | SRID | STARTPOINT | STRCMP | STR_TO_DATE | ST_AREA | ST_ASBINARY | ST_ASTEXT | ST_ASWKB | ST_ASWKT | ST_BUFFER | ST_CENTROID | ST_CONTAINS | ST_CROSSES | ST_DIFFERENCE | ST_DIMENSION | ST_DISJOINT | ST_DISTANCE | ST_ENDPOINT | ST_ENVELOPE | ST_EQUALS | ST_EXTERIORRING | ST_GEOMCOLLFROMTEXT | ST_GEOMCOLLFROMTXT | ST_GEOMCOLLFROMWKB | ST_GEOMETRYCOLLECTIONFROMTEXT | ST_GEOMETRYCOLLECTIONFROMWKB | ST_GEOMETRYFROMTEXT | ST_GEOMETRYFROMWKB | ST_GEOMETRYN | ST_GEOMETRYTYPE | ST_GEOMFROMTEXT | ST_GEOMFROMWKB | ST_INTERIORRINGN | ST_INTERSECTION | ST_INTERSECTS | ST_ISCLOSED | ST_ISEMPTY | ST_ISSIMPLE | ST_LINEFROMTEXT | ST_LINEFROMWKB | ST_LINESTRINGFROMTEXT | ST_LINESTRINGFROMWKB | ST_NUMGEOMETRIES | ST_NUMINTERIORRING | ST_NUMINTERIORRINGS | ST_NUMPOINTS | ST_OVERLAPS | ST_POINTFROMTEXT | ST_POINTFROMWKB | ST_POINTN | ST_POLYFROMTEXT | ST_POLYFROMWKB | ST_POLYGONFROMTEXT | ST_POLYGONFROMWKB | ST_SRID | ST_STARTPOINT | ST_SYMDIFFERENCE | ST_TOUCHES | ST_UNION | ST_WITHIN | ST_X | ST_Y | SUBDATE | SUBSTRING_INDEX | SUBTIME | SYSTEM_USER | TAN | TIME | TIMEDIFF | TIMESTAMP | TIMESTAMPADD | TIMESTAMPDIFF | TIME_FORMAT | TIME_TO_SEC | TOUCHES | TO_BASE64 | TO_DAYS | TO_SECONDS | UCASE | UNCOMPRESS | UNCOMPRESSED_LENGTH | UNHEX | UNIX_TIMESTAMP | UPDATEXML | UPPER | UUID | UUID_SHORT | VALIDATE_PASSWORD_STRENGTH | VERSION | WAIT_UNTIL_SQL_THREAD_AFTER_GTIDS | WEEK | WEEKDAY | WEEKOFYEAR | WEIGHT_STRING | WITHIN | YEAR | YEARWEEK | Y_FUNCTION | X_FUNCTION ; // SKIP SPACE: [ \t\r\n]+ -> channel(HIDDEN); SPEC_MYSQL_COMMENT: '/*!' .+? '*/' -> channel(HIDDEN); COMMENT_INPUT: '/*' .*? '*/' -> channel(HIDDEN); LINE_COMMENT: ( ('-- ' | '#') ~[\r\n]* ('\r'? '\n' | EOF) | '--' ('\r'? '\n' | EOF) ) -> channel(HIDDEN); // Keywords // Common Keywords ADD: 'ADD'; ALL: 'ALL'; ALTER: 'ALTER'; ANALYZE: 'ANALYZE'; AND: 'AND'; AS: 'AS'; ASC: 'ASC'; BEFORE: 'BEFORE'; BETWEEN: 'BETWEEN'; BOTH: 'BOTH'; BY: 'BY'; CALL: 'CALL'; CASCADE: 'CASCADE'; CASE: 'CASE'; CAST: 'CAST'; CHANGE: 'CHANGE'; CHARACTER: 'CHARACTER'; CHECK: 'CHECK'; COLLATE: 'COLLATE'; COLUMN: 'COLUMN'; CONDITION: 'CONDITION'; CONSTRAINT: 'CONSTRAINT'; CONTINUE: 'CONTINUE'; CONVERT: 'CONVERT'; CREATE: 'CREATE'; CROSS: 'CROSS'; CURRENT_USER: 'CURRENT_USER'; CURSOR: 'CURSOR'; DATABASE: 'DATABASE'; DATABASES: 'DATABASES'; DECLARE: 'DECLARE'; DEFAULT: 'DEFAULT'; DELAYED: 'DELAYED'; DELETE: 'DELETE'; DESC: 'DESC'; DESCRIBE: 'DESCRIBE'; DETERMINISTIC: 'DETERMINISTIC'; DISTINCT: 'DISTINCT'; DISTINCTROW: 'DISTINCTROW'; DROP: 'DROP'; EACH: 'EACH'; ELSE: 'ELSE'; ELSEIF: 'ELSEIF'; ENCLOSED: 'ENCLOSED'; ESCAPED: 'ESCAPED'; EXISTS: 'EXISTS'; EXIT: 'EXIT'; EXPLAIN: 'EXPLAIN'; FALSE: 'FALSE'; FETCH: 'FETCH'; FOR: 'FOR'; FORCE: 'FORCE'; FOREIGN: 'FOREIGN'; FROM: 'FROM'; FULLTEXT: 'FULLTEXT'; GRANT: 'GRANT'; GROUP: 'GROUP'; HAVING: 'HAVING'; HIGH_PRIORITY: 'HIGH_PRIORITY'; IF: 'IF'; IGNORE: 'IGNORE'; IN: 'IN'; INDEX: 'INDEX'; INFILE: 'INFILE'; INNER: 'INNER'; INOUT: 'INOUT'; INSERT: 'INSERT'; INTERVAL: 'INTERVAL'; INTO: 'INTO'; IS: 'IS'; ITERATE: 'ITERATE'; JOIN: 'JOIN'; KEY: 'KEY'; KEYS: 'KEYS'; KILL: 'KILL'; LEADING: 'LEADING'; LEAVE: 'LEAVE'; LEFT: 'LEFT'; LIKE: 'LIKE'; LIMIT: 'LIMIT'; LINEAR: 'LINEAR'; LINES: 'LINES'; LOAD: 'LOAD'; LOCK: 'LOCK'; LOOP: 'LOOP'; LOW_PRIORITY: 'LOW_PRIORITY'; MASTER_BIND: 'MASTER_BIND'; MASTER_SSL_VERIFY_SERVER_CERT: 'MASTER_SSL_VERIFY_SERVER_CERT'; MATCH: 'MATCH'; MAXVALUE: 'MAXVALUE'; MODIFIES: 'MODIFIES'; NATURAL: 'NATURAL'; NOT: 'NOT'; NO_WRITE_TO_BINLOG: 'NO_WRITE_TO_BINLOG'; NULL_LITERAL: 'NULL'; ON: 'ON'; OPTIMIZE: 'OPTIMIZE'; OPTION: 'OPTION'; OPTIONALLY: 'OPTIONALLY'; OR: 'OR'; ORDER: 'ORDER'; OUT: 'OUT'; OUTER: 'OUTER'; OUTFILE: 'OUTFILE'; PARTITION: 'PARTITION'; PRIMARY: 'PRIMARY'; PROCEDURE: 'PROCEDURE'; PURGE: 'PURGE'; RANGE: 'RANGE'; READ: 'READ'; READS: 'READS'; REFERENCES: 'REFERENCES'; REGEXP: 'REGEXP'; RELEASE: 'RELEASE'; RENAME: 'RENAME'; REPEAT: 'REPEAT'; REPLACE: 'REPLACE'; REQUIRE: 'REQUIRE'; RESTRICT: 'RESTRICT'; RETURN: 'RETURN'; REVOKE: 'REVOKE'; RIGHT: 'RIGHT'; RLIKE: 'RLIKE'; SCHEMA: 'SCHEMA'; SCHEMAS: 'SCHEMAS'; SELECT: 'SELECT'; SET: 'SET'; SEPARATOR: 'SEPARATOR'; SHOW: 'SHOW'; SPATIAL: 'SPATIAL'; SQL: 'SQL'; SQLEXCEPTION: 'SQLEXCEPTION'; SQLSTATE: 'SQLSTATE'; SQLWARNING: 'SQLWARNING'; SQL_BIG_RESULT: 'SQL_BIG_RESULT'; SQL_CALC_FOUND_ROWS: 'SQL_CALC_FOUND_ROWS'; SQL_SMALL_RESULT: 'SQL_SMALL_RESULT'; SSL: 'SSL'; STARTING: 'STARTING'; STRAIGHT_JOIN: 'STRAIGHT_JOIN'; TABLE: 'TABLE'; TERMINATED: 'TERMINATED'; THEN: 'THEN'; TO: 'TO'; TRAILING: 'TRAILING'; TRIGGER: 'TRIGGER'; TRUE: 'TRUE'; UNDO: 'UNDO'; UNION: 'UNION'; UNIQUE: 'UNIQUE'; UNLOCK: 'UNLOCK'; UNSIGNED: 'UNSIGNED'; UPDATE: 'UPDATE'; USAGE: 'USAGE'; USE: 'USE'; USING: 'USING'; VALUES: 'VALUES'; WHEN: 'WHEN'; WHERE: 'WHERE'; WHILE: 'WHILE'; WITH: 'WITH'; WRITE: 'WRITE'; XOR: 'XOR'; ZEROFILL: 'ZEROFILL'; // DATA TYPE Keywords TINYINT: 'TINYINT'; SMALLINT: 'SMALLINT'; MEDIUMINT: 'MEDIUMINT'; INT: 'INT'; INTEGER: 'INTEGER'; BIGINT: 'BIGINT'; REAL: 'REAL'; DOUBLE: 'DOUBLE'; FLOAT: 'FLOAT'; DECIMAL: 'DECIMAL'; NUMERIC: 'NUMERIC'; DATE: 'DATE'; TIME: 'TIME'; TIMESTAMP: 'TIMESTAMP'; DATETIME: 'DATETIME'; YEAR: 'YEAR'; CHAR: 'CHAR'; VARCHAR: 'VARCHAR'; BINARY: 'BINARY'; VARBINARY: 'VARBINARY'; TINYBLOB: 'TINYBLOB'; BLOB: 'BLOB'; MEDIUMBLOB: 'MEDIUMBLOB'; LONGBLOB: 'LONGBLOB'; TINYTEXT: 'TINYTEXT'; TEXT: 'TEXT'; MEDIUMTEXT: 'MEDIUMTEXT'; LONGTEXT: 'LONGTEXT'; ENUM: 'ENUM'; // Interval type Keywords YEAR_MONTH: 'YEAR_MONTH'; DAY_HOUR: 'DAY_HOUR'; DAY_MINUTE: 'DAY_MINUTE'; DAY_SECOND: 'DAY_SECOND'; HOUR_MINUTE: 'HOUR_MINUTE'; HOUR_SECOND: 'HOUR_SECOND'; MINUTE_SECOND: 'MINUTE_SECOND'; SECOND_MICROSECOND: 'SECOND_MICROSECOND'; MINUTE_MICROSECOND: 'MINUTE_MICROSECOND'; HOUR_MICROSECOND: 'HOUR_MICROSECOND'; DAY_MICROSECOND: 'DAY_MICROSECOND'; // Group function Keywords AVG: 'AVG'; BIT_AND: 'BIT_AND'; BIT_OR: 'BIT_OR'; BIT_XOR: 'BIT_XOR'; COUNT: 'COUNT'; GROUP_CONCAT: 'GROUP_CONCAT'; MAX: 'MAX'; MIN: 'MIN'; STD: 'STD'; STDDEV: 'STDDEV'; STDDEV_POP: 'STDDEV_POP'; STDDEV_SAMP: 'STDDEV_SAMP'; SUM: 'SUM'; VAR_POP: 'VAR_POP'; VAR_SAMP: 'VAR_SAMP'; VARIANCE: 'VARIANCE'; // Common function Keywords CURRENT_DATE: 'CURRENT_DATE'; CURRENT_TIME: 'CURRENT_TIME'; CURRENT_TIMESTAMP: 'CURRENT_TIMESTAMP'; LOCALTIME: 'LOCALTIME'; CURDATE: 'CURDATE'; CURTIME: 'CURTIME'; DATE_ADD: 'DATE_ADD'; DATE_SUB: 'DATE_SUB'; EXTRACT: 'EXTRACT'; LOCALTIMESTAMP: 'LOCALTIMESTAMP'; NOW: 'NOW'; POSITION: 'POSITION'; SUBSTR: 'SUBSTR'; SUBSTRING: 'SUBSTRING'; SYSDATE: 'SYSDATE'; TRIM: 'TRIM'; UTC_DATE: 'UTC_DATE'; UTC_TIME: 'UTC_TIME'; UTC_TIMESTAMP: 'UTC_TIMESTAMP'; // Keywords, but can be ID // Common Keywords, but can be ID ACCOUNT: 'ACCOUNT'; ACTION: 'ACTION'; AFTER: 'AFTER'; AGGREGATE: 'AGGREGATE'; ALGORITHM: 'ALGORITHM'; ANY: 'ANY'; AT: 'AT'; AUTHORS: 'AUTHORS'; AUTOCOMMIT: 'AUTOCOMMIT'; AUTOEXTEND_SIZE: 'AUTOEXTEND_SIZE'; AUTO_INCREMENT: 'AUTO_INCREMENT'; AVG_ROW_LENGTH: 'AVG_ROW_LENGTH'; BEGIN: 'BEGIN'; BINLOG: 'BINLOG'; BIT: 'BIT'; BLOCK: 'BLOCK'; BOOL: 'BOOL'; BOOLEAN: 'BOOLEAN'; BTREE: 'BTREE'; CACHE: 'CACHE'; CASCADED: 'CASCADED'; CHAIN: 'CHAIN'; CHANGED: 'CHANGED'; CHANNEL: 'CHANNEL'; CHECKSUM: 'CHECKSUM'; CIPHER: 'CIPHER'; CLIENT: 'CLIENT'; CLOSE: 'CLOSE'; COALESCE: 'COALESCE'; CODE: 'CODE'; COLUMNS: 'COLUMNS'; COLUMN_FORMAT: 'COLUMN_FORMAT'; COMMENT: 'COMMENT'; COMMIT: 'COMMIT'; COMPACT: 'COMPACT'; COMPLETION: 'COMPLETION'; COMPRESSED: 'COMPRESSED'; COMPRESSION: 'COMPRESSION'; CONCURRENT: 'CONCURRENT'; CONNECTION: 'CONNECTION'; CONSISTENT: 'CONSISTENT'; CONTAINS: 'CONTAINS'; CONTEXT: 'CONTEXT'; CONTRIBUTORS: 'CONTRIBUTORS'; COPY: 'COPY'; CPU: 'CPU'; DATA: 'DATA'; DATAFILE: 'DATAFILE'; DEALLOCATE: 'DEALLOCATE'; DEFAULT_AUTH: 'DEFAULT_AUTH'; DEFINER: 'DEFINER'; DELAY_KEY_WRITE: 'DELAY_KEY_WRITE'; DES_KEY_FILE: 'DES_KEY_FILE'; DIRECTORY: 'DIRECTORY'; DISABLE: 'DISABLE'; DISCARD: 'DISCARD'; DISK: 'DISK'; DO: 'DO'; DUMPFILE: 'DUMPFILE'; DUPLICATE: 'DUPLICATE'; DYNAMIC: 'DYNAMIC'; ENABLE: 'ENABLE'; ENCRYPTION: 'ENCRYPTION'; END: 'END'; ENDS: 'ENDS'; ENGINE: 'ENGINE'; ENGINES: 'ENGINES'; ERROR: 'ERROR'; ERRORS: 'ERRORS'; ESCAPE: 'ESCAPE'; EVEN: 'EVEN'; EVENT: 'EVENT'; EVENTS: 'EVENTS'; EVERY: 'EVERY'; EXCHANGE: 'EXCHANGE'; EXCLUSIVE: 'EXCLUSIVE'; EXPIRE: 'EXPIRE'; EXPORT: 'EXPORT'; EXTENDED: 'EXTENDED'; EXTENT_SIZE: 'EXTENT_SIZE'; FAST: 'FAST'; FAULTS: 'FAULTS'; FIELDS: 'FIELDS'; FILE_BLOCK_SIZE: 'FILE_BLOCK_SIZE'; FILTER: 'FILTER'; FIRST: 'FIRST'; FIXED: 'FIXED'; FLUSH: 'FLUSH'; FOLLOWS: 'FOLLOWS'; FOUND: 'FOUND'; FULL: 'FULL'; FUNCTION: 'FUNCTION'; GENERAL: 'GENERAL'; GLOBAL: 'GLOBAL'; GRANTS: 'GRANTS'; GROUP_REPLICATION: 'GROUP_REPLICATION'; HANDLER: 'HANDLER'; HASH: 'HASH'; HELP: 'HELP'; HOST: 'HOST'; HOSTS: 'HOSTS'; IDENTIFIED: 'IDENTIFIED'; IGNORE_SERVER_IDS: 'IGNORE_SERVER_IDS'; IMPORT: 'IMPORT'; INDEXES: 'INDEXES'; INITIAL_SIZE: 'INITIAL_SIZE'; INPLACE: 'INPLACE'; INSERT_METHOD: 'INSERT_METHOD'; INSTALL: 'INSTALL'; INSTANCE: 'INSTANCE'; INVOKER: 'INVOKER'; IO: 'IO'; IO_THREAD: 'IO_THREAD'; IPC: 'IPC'; ISOLATION: 'ISOLATION'; ISSUER: 'ISSUER'; JSON: 'JSON'; KEY_BLOCK_SIZE: 'KEY_BLOCK_SIZE'; LANGUAGE: 'LANGUAGE'; LAST: 'LAST'; LEAVES: 'LEAVES'; LESS: 'LESS'; LEVEL: 'LEVEL'; LIST: 'LIST'; LOCAL: 'LOCAL'; LOGFILE: 'LOGFILE'; LOGS: 'LOGS'; MASTER: 'MASTER'; MASTER_AUTO_POSITION: 'MASTER_AUTO_POSITION'; MASTER_CONNECT_RETRY: 'MASTER_CONNECT_RETRY'; MASTER_DELAY: 'MASTER_DELAY'; MASTER_HEARTBEAT_PERIOD: 'MASTER_HEARTBEAT_PERIOD'; MASTER_HOST: 'MASTER_HOST'; MASTER_LOG_FILE: 'MASTER_LOG_FILE'; MASTER_LOG_POS: 'MASTER_LOG_POS'; MASTER_PASSWORD: '<PASSWORD>'; MASTER_PORT: 'MASTER_PORT'; MASTER_RETRY_COUNT: 'MASTER_RETRY_COUNT'; MASTER_SSL: 'MASTER_SSL'; MASTER_SSL_CA: 'MASTER_SSL_CA'; MASTER_SSL_CAPATH: 'MASTER_SSL_CAPATH'; MASTER_SSL_CERT: 'MASTER_SSL_CERT'; MASTER_SSL_CIPHER: 'MASTER_SSL_CIPHER'; MASTER_SSL_CRL: 'MASTER_SSL_CRL'; MASTER_SSL_CRLPATH: 'MASTER_SSL_CRLPATH'; MASTER_SSL_KEY: 'MASTER_SSL_KEY'; MASTER_TLS_VERSION: 'MASTER_TLS_VERSION'; MASTER_USER: 'MASTER_USER'; MAX_CONNECTIONS_PER_HOUR: 'MAX_CONNECTIONS_PER_HOUR'; MAX_QUERIES_PER_HOUR: 'MAX_QUERIES_PER_HOUR'; MAX_ROWS: 'MAX_ROWS'; MAX_SIZE: 'MAX_SIZE'; MAX_UPDATES_PER_HOUR: 'MAX_UPDATES_PER_HOUR'; MAX_USER_CONNECTIONS: 'MAX_USER_CONNECTIONS'; MEDIUM: 'MEDIUM'; MERGE: 'MERGE'; MID: 'MID'; MIGRATE: 'MIGRATE'; MIN_ROWS: 'MIN_ROWS'; MODE: 'MODE'; MODIFY: 'MODIFY'; MUTEX: 'MUTEX'; MYSQL: 'MYSQL'; NAME: 'NAME'; NAMES: 'NAMES'; NCHAR: 'NCHAR'; NEVER: 'NEVER'; NEXT: 'NEXT'; NO: 'NO'; NODEGROUP: 'NODEGROUP'; NONE: 'NONE'; OFFLINE: 'OFFLINE'; OFFSET: 'OFFSET'; OJ: 'OJ'; OLD_PASSWORD: '<PASSWORD>'; ONE: 'ONE'; ONLINE: 'ONLINE'; ONLY: 'ONLY'; OPEN: 'OPEN'; OPTIMIZER_COSTS: 'OPTIMIZER_COSTS'; OPTIONS: 'OPTIONS'; OWNER: 'OWNER'; PACK_KEYS: 'PACK_KEYS'; PAGE: 'PAGE'; PARSER: 'PARSER'; PARTIAL: 'PARTIAL'; PARTITIONING: 'PARTITIONING'; PARTITIONS: 'PARTITIONS'; PASSWORD: 'PASSWORD'; PHASE: 'PHASE'; PLUGIN: 'PLUGIN'; PLUGIN_DIR: 'PLUGIN_DIR'; PLUGINS: 'PLUGINS'; PORT: 'PORT'; PRECEDES: 'PRECEDES'; PREPARE: 'PREPARE'; PRESERVE: 'PRESERVE'; PREV: 'PREV'; PROCESSLIST: 'PROCESSLIST'; PROFILE: 'PROFILE'; PROFILES: 'PROFILES'; PROXY: 'PROXY'; QUERY: 'QUERY'; QUICK: 'QUICK'; REBUILD: 'REBUILD'; RECOVER: 'RECOVER'; REDO_BUFFER_SIZE: 'REDO_BUFFER_SIZE'; REDUNDANT: 'REDUNDANT'; RELAY: 'RELAY'; RELAY_LOG_FILE: 'RELAY_LOG_FILE'; RELAY_LOG_POS: 'RELAY_LOG_POS'; RELAYLOG: 'RELAYLOG'; REMOVE: 'REMOVE'; REORGANIZE: 'REORGANIZE'; REPAIR: 'REPAIR'; REPLICATE_DO_DB: 'REPLICATE_DO_DB'; REPLICATE_DO_TABLE: 'REPLICATE_DO_TABLE'; REPLICATE_IGNORE_DB: 'REPLICATE_IGNORE_DB'; REPLICATE_IGNORE_TABLE: 'REPLICATE_IGNORE_TABLE'; REPLICATE_REWRITE_DB: 'REPLICATE_REWRITE_DB'; REPLICATE_WILD_DO_TABLE: 'REPLICATE_WILD_DO_TABLE'; REPLICATE_WILD_IGNORE_TABLE: 'REPLICATE_WILD_IGNORE_TABLE'; REPLICATION: 'REPLICATION'; RESET: 'RESET'; RESUME: 'RESUME'; RETURNS: 'RETURNS'; ROLLBACK: 'ROLLBACK'; ROLLUP: 'ROLLUP'; ROTATE: 'ROTATE'; ROW: 'ROW'; ROWS: 'ROWS'; ROW_FORMAT: 'ROW_FORMAT'; SAVEPOINT: 'SAVEPOINT'; SCHEDULE: 'SCHEDULE'; SECURITY: 'SECURITY'; SERVER: 'SERVER'; SESSION: 'SESSION'; SHARE: 'SHARE'; SHARED: 'SHARED'; SIGNED: 'SIGNED'; SIMPLE: 'SIMPLE'; SLAVE: 'SLAVE'; SLOW: 'SLOW'; SNAPSHOT: 'SNAPSHOT'; SOCKET: 'SOCKET'; SOME: 'SOME'; SONAME: 'SONAME'; SOUNDS: 'SOUNDS'; SOURCE: 'SOURCE'; SQL_AFTER_GTIDS: 'SQL_AFTER_GTIDS'; SQL_AFTER_MTS_GAPS: 'SQL_AFTER_MTS_GAPS'; SQL_BEFORE_GTIDS: 'SQL_BEFORE_GTIDS'; SQL_BUFFER_RESULT: 'SQL_BUFFER_RESULT'; SQL_CACHE: 'SQL_CACHE'; SQL_NO_CACHE: 'SQL_NO_CACHE'; SQL_THREAD: 'SQL_THREAD'; START: 'START'; STARTS: 'STARTS'; STATS_AUTO_RECALC: 'STATS_AUTO_RECALC'; STATS_PERSISTENT: 'STATS_PERSISTENT'; STATS_SAMPLE_PAGES: 'STATS_SAMPLE_PAGES'; STATUS: 'STATUS'; STOP: 'STOP'; STORAGE: 'STORAGE'; STRING: 'STRING'; SUBJECT: 'SUBJECT'; SUBPARTITION: 'SUBPARTITION'; SUBPARTITIONS: 'SUBPARTITIONS'; SUSPEND: 'SUSPEND'; SWAPS: 'SWAPS'; SWITCHES: 'SWITCHES'; TABLESPACE: 'TABLESPACE'; TEMPORARY: 'TEMPORARY'; TEMPTABLE: 'TEMPTABLE'; THAN: 'THAN'; TRADITIONAL: 'TRADITIONAL'; TRANSACTION: 'TRANSACTION'; TRIGGERS: 'TRIGGERS'; TRUNCATE: 'TRUNCATE'; UNDEFINED: 'UNDEFINED'; UNDOFILE: 'UNDOFILE'; UNDO_BUFFER_SIZE: 'UNDO_BUFFER_SIZE'; UNINSTALL: 'UNINSTALL'; UNKNOWN: 'UNKNOWN'; UNTIL: 'UNTIL'; UPGRADE: 'UPGRADE'; USER: 'USER'; USE_FRM: 'USE_FRM'; USER_RESOURCES: 'USER_RESOURCES'; VALIDATION: 'VALIDATION'; VALUE: 'VALUE'; VARIABLES: 'VARIABLES'; VIEW: 'VIEW'; WAIT: 'WAIT'; WARNINGS: 'WARNINGS'; WITHOUT: 'WITHOUT'; WORK: 'WORK'; WRAPPER: 'WRAPPER'; X509: 'X509'; XA: 'XA'; XML: 'XML'; // Date format Keywords EUR: 'EUR'; USA: 'USA'; JIS: 'JIS'; ISO: 'ISO'; INTERNAL: 'INTERNAL'; // Interval type Keywords QUARTER: 'QUARTER'; MONTH: 'MONTH'; DAY: 'DAY'; HOUR: 'HOUR'; MINUTE: 'MINUTE'; WEEK: 'WEEK'; SECOND: 'SECOND'; MICROSECOND: 'MICROSECOND'; // PRIVILEGES TABLES: 'TABLES'; ROUTINE: 'ROUTINE'; EXECUTE: 'EXECUTE'; FILE: 'FILE'; PROCESS: 'PROCESS'; RELOAD: 'RELOAD'; SHUTDOWN: 'SHUTDOWN'; SUPER: 'SUPER'; PRIVILEGES: 'PRIVILEGES'; // Charsets ARMSCII8: 'ARMSCII8'; ASCII: 'ASCII'; BIG5: 'BIG5'; CP1250: 'CP1250'; CP1251: 'CP1251'; CP1256: 'CP1256'; CP1257: 'CP1257'; CP850: 'CP850'; CP852: 'CP852'; CP866: 'CP866'; CP932: 'CP932'; DEC8: 'DEC8'; EUCJPMS: 'EUCJPMS'; EUCKR: 'EUCKR'; GB2312: 'GB2312'; GBK: 'GBK'; GEOSTD8: 'GEOSTD8'; GREEK: 'GREEK'; HEBREW: 'HEBREW'; HP8: 'HP8'; KEYBCS2: 'KEYBCS2'; KOI8R: 'KOI8R'; KOI8U: 'KOI8U'; LATIN1: 'LATIN1'; LATIN2: 'LATIN2'; LATIN5: 'LATIN5'; LATIN7: 'LATIN7'; MACCE: 'MACCE'; MACROMAN: 'MACROMAN'; SJIS: 'SJIS'; SWE7: 'SWE7'; TIS620: 'TIS620'; UCS2: 'UCS2'; UJIS: 'UJIS'; UTF16: 'UTF16'; UTF16LE: 'UTF16LE'; UTF32: 'UTF32'; UTF8: 'UTF8'; UTF8MB3: 'UTF8MB3'; UTF8MB4: 'UTF8MB4'; // DB Engines ARCHIVE: 'ARCHIVE'; BLACKHOLE: 'BLACKHOLE'; CSV: 'CSV'; FEDERATED: 'FEDERATED'; INNODB: 'INNODB'; MEMORY: 'MEMORY'; MRG_MYISAM: 'MRG_MYISAM'; MYISAM: 'MYISAM'; NDB: 'NDB'; NDBCLUSTER: 'NDBCLUSTER'; PERFOMANCE_SCHEMA: 'PERFOMANCE_SCHEMA'; // Transaction Levels REPEATABLE: 'REPEATABLE'; COMMITTED: 'COMMITTED'; UNCOMMITTED: 'UNCOMMITTED'; SERIALIZABLE: 'SERIALIZABLE'; // Spatial data types GEOMETRYCOLLECTION: 'GEOMETRYCOLLECTION'; LINESTRING: 'LINESTRING'; MULTILINESTRING: 'MULTILINESTRING'; MULTIPOINT: 'MULTIPOINT'; MULTIPOLYGON: 'MULTIPOLYGON'; POINT: 'POINT'; POLYGON: 'POLYGON'; // Common function names ABS: 'ABS'; ACOS: 'ACOS'; ADDDATE: 'ADDDATE'; ADDTIME: 'ADDTIME'; AES_DECRYPT: 'AES_DECRYPT'; AES_ENCRYPT: 'AES_ENCRYPT'; AREA: 'AREA'; ASBINARY: 'ASBINARY'; ASIN: 'ASIN'; ASTEXT: 'ASTEXT'; ASWKB: 'ASWKB'; ASWKT: 'ASWKT'; ASYMMETRIC_DECRYPT: 'ASYMMETRIC_DECRYPT'; ASYMMETRIC_DERIVE: 'ASYMMETRIC_DERIVE'; ASYMMETRIC_ENCRYPT: 'ASYMMETRIC_ENCRYPT'; ASYMMETRIC_SIGN: 'ASYMMETRIC_SIGN'; ASYMMETRIC_VERIFY: 'ASYMMETRIC_VERIFY'; ATAN: 'ATAN'; ATAN2: 'ATAN2'; BENCHMARK: 'BENCHMARK'; BIN: 'BIN'; BIT_COUNT: 'BIT_COUNT'; BIT_LENGTH: 'BIT_LENGTH'; BUFFER: 'BUFFER'; CEIL: 'CEIL'; CEILING: 'CEILING'; CENTROID: 'CENTROID'; CHARACTER_LENGTH: 'CHARACTER_LENGTH'; CHARSET: 'CHARSET'; CHAR_LENGTH: 'CHAR_LENGTH'; COERCIBILITY: 'COERCIBILITY'; COLLATION: 'COLLATION'; COMPRESS: 'COMPRESS'; CONCAT: 'CONCAT'; CONCAT_WS: 'CONCAT_WS'; CONNECTION_ID: 'CONNECTION_ID'; CONV: 'CONV'; CONVERT_TZ: 'CONVERT_TZ'; COS: 'COS'; COT: 'COT'; CRC32: 'CRC32'; CREATE_ASYMMETRIC_PRIV_KEY: 'CREATE_ASYMMETRIC_PRIV_KEY'; CREATE_ASYMMETRIC_PUB_KEY: 'CREATE_ASYMMETRIC_PUB_KEY'; CREATE_DH_PARAMETERS: 'CREATE_DH_PARAMETERS'; CREATE_DIGEST: 'CREATE_DIGEST'; CROSSES: 'CROSSES'; DATEDIFF: 'DATEDIFF'; DATE_FORMAT: 'DATE_FORMAT'; DAYNAME: 'DAYNAME'; DAYOFMONTH: 'DAYOFMONTH'; DAYOFWEEK: 'DAYOFWEEK'; DAYOFYEAR: 'DAYOFYEAR'; DECODE: 'DECODE'; DEGREES: 'DEGREES'; DES_DECRYPT: 'DES_DECRYPT'; DES_ENCRYPT: 'DES_ENCRYPT'; DIMENSION: 'DIMENSION'; DISJOINT: 'DISJOINT'; ELT: 'ELT'; ENCODE: 'ENCODE'; ENCRYPT: 'ENCRYPT'; ENDPOINT: 'ENDPOINT'; ENVELOPE: 'ENVELOPE'; EQUALS: 'EQUALS'; EXP: 'EXP'; EXPORT_SET: 'EXPORT_SET'; EXTERIORRING: 'EXTERIORRING'; EXTRACTVALUE: 'EXTRACTVALUE'; FIELD: 'FIELD'; FIND_IN_SET: 'FIND_IN_SET'; FLOOR: 'FLOOR'; FORMAT: 'FORMAT'; FOUND_ROWS: 'FOUND_ROWS'; FROM_BASE64: 'FROM_BASE64'; FROM_DAYS: 'FROM_DAYS'; FROM_UNIXTIME: 'FROM_UNIXTIME'; GEOMCOLLFROMTEXT: 'GEOMCOLLFROMTEXT'; GEOMCOLLFROMWKB: 'GEOMCOLLFROMWKB'; GEOMETRYCOLLECTIONFROMTEXT: 'GEOMETRYCOLLECTIONFROMTEXT'; GEOMETRYCOLLECTIONFROMWKB: 'GEOMETRYCOLLECTIONFROMWKB'; GEOMETRYFROMTEXT: 'GEOMETRYFROMTEXT'; GEOMETRYFROMWKB: 'GEOMETRYFROMWKB'; GEOMETRYN: 'GEOMETRYN'; GEOMETRYTYPE: 'GEOMETRYTYPE'; GEOMFROMTEXT: 'GEOMFROMTEXT'; GEOMFROMWKB: 'GEOMFROMWKB'; GET_FORMAT: 'GET_FORMAT'; GET_LOCK: 'GET_LOCK'; GLENGTH: 'GLENGTH'; GREATEST: 'GREATEST'; GTID_SUBSET: 'GTID_SUBSET'; GTID_SUBTRACT: 'GTID_SUBTRACT'; HEX: 'HEX'; IFNULL: 'IFNULL'; INET6_ATON: 'INET6_ATON'; INET6_NTOA: 'INET6_NTOA'; INET_ATON: 'INET_ATON'; INET_NTOA: 'INET_NTOA'; INSTR: 'INSTR'; INTERIORRINGN: 'INTERIORRINGN'; INTERSECTS: 'INTERSECTS'; ISCLOSED: 'ISCLOSED'; ISEMPTY: 'ISEMPTY'; ISNULL: 'ISNULL'; ISSIMPLE: 'ISSIMPLE'; IS_FREE_LOCK: 'IS_FREE_LOCK'; IS_IPV4: 'IS_IPV4'; IS_IPV4_COMPAT: 'IS_IPV4_COMPAT'; IS_IPV4_MAPPED: 'IS_IPV4_MAPPED'; IS_IPV6: 'IS_IPV6'; IS_USED_LOCK: 'IS_USED_LOCK'; LAST_INSERT_ID: 'LAST_INSERT_ID'; LCASE: 'LCASE'; LEAST: 'LEAST'; LENGTH: 'LENGTH'; LINEFROMTEXT: 'LINEFROMTEXT'; LINEFROMWKB: 'LINEFROMWKB'; LINESTRINGFROMTEXT: 'LINESTRINGFROMTEXT'; LINESTRINGFROMWKB: 'LINESTRINGFROMWKB'; LN: 'LN'; LOAD_FILE: 'LOAD_FILE'; LOCATE: 'LOCATE'; LOG: 'LOG'; LOG10: 'LOG10'; LOG2: 'LOG2'; LOWER: 'LOWER'; LPAD: 'LPAD'; LTRIM: 'LTRIM'; MAKEDATE: 'MAKEDATE'; MAKETIME: 'MAKETIME'; MAKE_SET: 'MAKE_SET'; MASTER_POS_WAIT: 'MASTER_POS_WAIT'; MBRCONTAINS: 'MBRCONTAINS'; MBRDISJOINT: 'MBRDISJOINT'; MBREQUAL: 'MBREQUAL'; MBRINTERSECTS: 'MBRINTERSECTS'; MBROVERLAPS: 'MBROVERLAPS'; MBRTOUCHES: 'MBRTOUCHES'; MBRWITHIN: 'MBRWITHIN'; MD5: 'MD5'; MLINEFROMTEXT: 'MLINEFROMTEXT'; MLINEFROMWKB: 'MLINEFROMWKB'; MONTHNAME: 'MONTHNAME'; MPOINTFROMTEXT: 'MPOINTFROMTEXT'; MPOINTFROMWKB: 'MPOINTFROMWKB'; MPOLYFROMTEXT: 'MPOLYFROMTEXT'; MPOLYFROMWKB: 'MPOLYFROMWKB'; MULTILINESTRINGFROMTEXT: 'MULTILINESTRINGFROMTEXT'; MULTILINESTRINGFROMWKB: 'MULTILINESTRINGFROMWKB'; MULTIPOINTFROMTEXT: 'MULTIPOINTFROMTEXT'; MULTIPOINTFROMWKB: 'MULTIPOINTFROMWKB'; MULTIPOLYGONFROMTEXT: 'MULTIPOLYGONFROMTEXT'; MULTIPOLYGONFROMWKB: 'MULTIPOLYGONFROMWKB'; NAME_CONST: 'NAME_CONST'; NULLIF: 'NULLIF'; NUMGEOMETRIES: 'NUMGEOMETRIES'; NUMINTERIORRINGS: 'NUMINTERIORRINGS'; NUMPOINTS: 'NUMPOINTS'; OCT: 'OCT'; OCTET_LENGTH: 'OCTET_LENGTH'; ORD: 'ORD'; OVERLAPS: 'OVERLAPS'; PERIOD_ADD: 'PERIOD_ADD'; PERIOD_DIFF: 'PERIOD_DIFF'; PI: 'PI'; POINTFROMTEXT: 'POINTFROMTEXT'; POINTFROMWKB: 'POINTFROMWKB'; POINTN: 'POINTN'; POLYFROMTEXT: 'POLYFROMTEXT'; POLYFROMWKB: 'POLYFROMWKB'; POLYGONFROMTEXT: 'POLYGONFROMTEXT'; POLYGONFROMWKB: 'POLYGONFROMWKB'; POW: 'POW'; POWER: 'POWER'; QUOTE: 'QUOTE'; RADIANS: 'RADIANS'; RAND: 'RAND'; RANDOM_BYTES: 'RANDOM_BYTES'; RELEASE_LOCK: 'RELEASE_LOCK'; REVERSE: 'REVERSE'; ROUND: 'ROUND'; ROW_COUNT: 'ROW_COUNT'; RPAD: 'RPAD'; RTRIM: 'RTRIM'; SEC_TO_TIME: 'SEC_TO_TIME'; SESSION_USER: 'SESSION_USER'; SHA: 'SHA'; SHA1: 'SHA1'; SHA2: 'SHA2'; SIGN: 'SIGN'; SIN: 'SIN'; SLEEP: 'SLEEP'; SOUNDEX: 'SOUNDEX'; SQL_THREAD_WAIT_AFTER_GTIDS: 'SQL_THREAD_WAIT_AFTER_GTIDS'; SQRT: 'SQRT'; SRID: 'SRID'; STARTPOINT: 'STARTPOINT'; STRCMP: 'STRCMP'; STR_TO_DATE: 'STR_TO_DATE'; ST_AREA: 'ST_AREA'; ST_ASBINARY: 'ST_ASBINARY'; ST_ASTEXT: 'ST_ASTEXT'; ST_ASWKB: 'ST_ASWKB'; ST_ASWKT: 'ST_ASWKT'; ST_BUFFER: 'ST_BUFFER'; ST_CENTROID: 'ST_CENTROID'; ST_CONTAINS: 'ST_CONTAINS'; ST_CROSSES: 'ST_CROSSES'; ST_DIFFERENCE: 'ST_DIFFERENCE'; ST_DIMENSION: 'ST_DIMENSION'; ST_DISJOINT: 'ST_DISJOINT'; ST_DISTANCE: 'ST_DISTANCE'; ST_ENDPOINT: 'ST_ENDPOINT'; ST_ENVELOPE: 'ST_ENVELOPE'; ST_EQUALS: 'ST_EQUALS'; ST_EXTERIORRING: 'ST_EXTERIORRING'; ST_GEOMCOLLFROMTEXT: 'ST_GEOMCOLLFROMTEXT'; ST_GEOMCOLLFROMTXT: 'ST_GEOMCOLLFROMTXT'; ST_GEOMCOLLFROMWKB: 'ST_GEOMCOLLFROMWKB'; ST_GEOMETRYCOLLECTIONFROMTEXT: 'ST_GEOMETRYCOLLECTIONFROMTEXT'; ST_GEOMETRYCOLLECTIONFROMWKB: 'ST_GEOMETRYCOLLECTIONFROMWKB'; ST_GEOMETRYFROMTEXT: 'ST_GEOMETRYFROMTEXT'; ST_GEOMETRYFROMWKB: 'ST_GEOMETRYFROMWKB'; ST_GEOMETRYN: 'ST_GEOMETRYN'; ST_GEOMETRYTYPE: 'ST_GEOMETRYTYPE'; ST_GEOMFROMTEXT: 'ST_GEOMFROMTEXT'; ST_GEOMFROMWKB: 'ST_GEOMFROMWKB'; ST_INTERIORRINGN: 'ST_INTERIORRINGN'; ST_INTERSECTION: 'ST_INTERSECTION'; ST_INTERSECTS: 'ST_INTERSECTS'; ST_ISCLOSED: 'ST_ISCLOSED'; ST_ISEMPTY: 'ST_ISEMPTY'; ST_ISSIMPLE: 'ST_ISSIMPLE'; ST_LINEFROMTEXT: 'ST_LINEFROMTEXT'; ST_LINEFROMWKB: 'ST_LINEFROMWKB'; ST_LINESTRINGFROMTEXT: 'ST_LINESTRINGFROMTEXT'; ST_LINESTRINGFROMWKB: 'ST_LINESTRINGFROMWKB'; ST_NUMGEOMETRIES: 'ST_NUMGEOMETRIES'; ST_NUMINTERIORRING: 'ST_NUMINTERIORRING'; ST_NUMINTERIORRINGS: 'ST_NUMINTERIORRINGS'; ST_NUMPOINTS: 'ST_NUMPOINTS'; ST_OVERLAPS: 'ST_OVERLAPS'; ST_POINTFROMTEXT: 'ST_POINTFROMTEXT'; ST_POINTFROMWKB: 'ST_POINTFROMWKB'; ST_POINTN: 'ST_POINTN'; ST_POLYFROMTEXT: 'ST_POLYFROMTEXT'; ST_POLYFROMWKB: 'ST_POLYFROMWKB'; ST_POLYGONFROMTEXT: 'ST_POLYGONFROMTEXT'; ST_POLYGONFROMWKB: 'ST_POLYGONFROMWKB'; ST_SRID: 'ST_SRID'; ST_STARTPOINT: 'ST_STARTPOINT'; ST_SYMDIFFERENCE: 'ST_SYMDIFFERENCE'; ST_TOUCHES: 'ST_TOUCHES'; ST_UNION: 'ST_UNION'; ST_WITHIN: 'ST_WITHIN'; ST_X: 'ST_X'; ST_Y: 'ST_Y'; SUBDATE: 'SUBDATE'; SUBSTRING_INDEX: 'SUBSTRING_INDEX'; SUBTIME: 'SUBTIME'; SYSTEM_USER: 'SYSTEM_USER'; TAN: 'TAN'; TIMEDIFF: 'TIMEDIFF'; TIMESTAMPADD: 'TIMESTAMPADD'; TIMESTAMPDIFF: 'TIMESTAMPDIFF'; TIME_FORMAT: 'TIME_FORMAT'; TIME_TO_SEC: 'TIME_TO_SEC'; TOUCHES: 'TOUCHES'; TO_BASE64: 'TO_BASE64'; TO_DAYS: 'TO_DAYS'; TO_SECONDS: 'TO_SECONDS'; UCASE: 'UCASE'; UNCOMPRESS: 'UNCOMPRESS'; UNCOMPRESSED_LENGTH: 'UNCOMPRESSED_LENGTH'; UNHEX: 'UNHEX'; UNIX_TIMESTAMP: 'UNIX_TIMESTAMP'; UPDATEXML: 'UPDATEXML'; UPPER: 'UPPER'; UUID: 'UUID'; UUID_SHORT: 'UUID_SHORT'; VALIDATE_PASSWORD_STRENGTH: 'VALIDATE_PASSWORD_STRENGTH'; VERSION: 'VERSION'; WAIT_UNTIL_SQL_THREAD_AFTER_GTIDS: 'WAIT_UNTIL_SQL_THREAD_AFTER_GTIDS'; WEEKDAY: 'WEEKDAY'; WEEKOFYEAR: 'WEEKOFYEAR'; WEIGHT_STRING: 'WEIGHT_STRING'; WITHIN: 'WITHIN'; YEARWEEK: 'YEARWEEK'; Y_FUNCTION: 'Y'; X_FUNCTION: 'X'; // Operators // Operators. Assigns VAR_ASSIGN: ':='; PLUS_ASSIGN: '+='; MINUS_ASSIGN: '-='; MULT_ASSIGN: '*='; DIV_ASSIGN: '/='; MOD_ASSIGN: '%='; AND_ASSIGN: '&='; XOR_ASSIGN: '^='; OR_ASSIGN: '|='; // Operators. Arithmetics STAR: '*'; DIVIDE: '/'; MODULE: '%'; PLUS: '+'; MINUSMINUS: '--'; MINUS: '-'; DIV: 'DIV'; MOD: 'MOD'; // Operators. Comparation EQUAL_SYMBOL: '='; GREATER_SYMBOL: '>'; LESS_SYMBOL: '<'; EXCLAMATION_SYMBOL: '!'; // Operators. Bit BIT_NOT_OP: '~'; BIT_OR_OP: '|'; BIT_AND_OP: '&'; BIT_XOR_OP: '^'; // Constructors symbols DOT: '.'; LR_BRACKET: '('; RR_BRACKET: ')'; COMMA: ','; SEMI: ';'; AT_SIGN: '@'; ZERO_DECIMAL: '0'; ONE_DECIMAL: '1'; TWO_DECIMAL: '2'; SINGLE_QUOTE_SYMB: '\''; DOUBLE_QUOTE_SYMB: '"'; REVERSE_QUOTE_SYMB: '`'; COLON_SYMB: ':'; // Charsets CHARSET_REVERSE_QOUTE_STRING: '`' CHARSET_NAME '`'; // File's sizes FILESIZE_LITERAL: DEC_DIGIT+ ('K'|'M'|'G'|'T'); // Literal Primitives START_NATIONAL_STRING_LITERAL: 'N' SQUOTA_STRING; STRING_LITERAL: DQUOTA_STRING | SQUOTA_STRING; DECIMAL_LITERAL: DEC_DIGIT+; HEXADECIMAL_LITERAL: 'X' '\'' (HEX_DIGIT HEX_DIGIT)+ '\'' | '0X' HEX_DIGIT+; REAL_LITERAL: (DEC_DIGIT+)? '.' DEC_DIGIT+ | DEC_DIGIT+ '.' EXPONENT_NUM_PART | (DEC_DIGIT+)? '.' (DEC_DIGIT+ EXPONENT_NUM_PART) | DEC_DIGIT+ EXPONENT_NUM_PART; NULL_SPEC_LITERAL: '\\' 'N'; BIT_STRING: BIT_STRING_L; STRING_CHARSET_NAME: '_' CHARSET_NAME; // Hack for dotID // Prevent recognize string: .123somelatin AS ((.123), FLOAT_LITERAL), ((somelatin), ID) // it must recoginze: .123somelatin AS ((.), DOT), (123somelatin, ID) DOT_ID: '.' ID_LITERAL; // Identifiers ID: ID_LITERAL; // DOUBLE_QUOTE_ID: '"' ~'"'+ '"'; REVERSE_QUOTE_ID: '`' ~'`'+ '`'; STRING_USER_NAME: ( SQUOTA_STRING | DQUOTA_STRING | BQUOTA_STRING | ID_LITERAL ) '@' ( SQUOTA_STRING | DQUOTA_STRING | BQUOTA_STRING | ID_LITERAL ); LOCAL_ID: '@' ( [A-Z0-9._$]+ | SQUOTA_STRING | DQUOTA_STRING | BQUOTA_STRING ); GLOBAL_ID: '@' '@' ( [A-Z0-9._$]+ | BQUOTA_STRING ); // Fragments for Literal primitives fragment CHARSET_NAME: ARMSCII8 | ASCII | BIG5 | BINARY | CP1250 | CP1251 | CP1256 | CP1257 | CP850 | CP852 | CP866 | CP932 | DEC8 | EUCJPMS | EUCKR | GB2312 | GBK | GEOSTD8 | GREEK | HEBREW | HP8 | KEYBCS2 | KOI8R | KOI8U | LATIN1 | LATIN2 | LATIN5 | LATIN7 | MACCE | MACROMAN | SJIS | SWE7 | TIS620 | UCS2 | UJIS | UTF16 | UTF16LE | UTF32 | UTF8 | UTF8MB4; fragment EXPONENT_NUM_PART: 'E' '-'? DEC_DIGIT+; fragment ID_LITERAL: [A-Z_$0-9]*?[A-Z_$]+?[A-Z_$0-9]*; fragment DQUOTA_STRING: '"' ( '\\'. | '""' | ~('"'| '\\') )* '"'; fragment SQUOTA_STRING: '\'' ('\\'. | '\'\'' | ~('\'' | '\\'))* '\''; fragment BQUOTA_STRING: '`' ( '\\'. | '``' | ~('`'|'\\'))* '`'; fragment HEX_DIGIT: [0-9A-F]; fragment DEC_DIGIT: [0-9]; fragment BIT_STRING_L: 'B' '\'' [01]+ '\''; // Last tokens must generate Errors
Compiler/KoLang.g4
KonradMagiera/KoLang-Compiler
0
6675
grammar KoLang; program: statement* EOF ; statement: PRINT LPARENTHESIS value RPARENTHESIS #print | PRINT LPARENTHESIS ID LBRACKET INT RBRACKET RPARENTHESIS #printArrayItem | READ LPARENTHESIS ID RPARENTHESIS #read | 'zmienna' ID ASSIGN value #assign | 'zmienna' ID ASSIGN arrayAssignItem #assignArrayItemToID | ID LBRACKET INT RBRACKET ASSIGN math #changeArrayItemValue | 'zmienna' ID LBRACKET INT? RBRACKET ASSIGN LBRACE arrayVal (',' arrayVal)* RBRACE #assignArray | 'if' LPARENTHESIS comparision RPARENTHESIS LBRACE statement* RBRACE elseifStatement? elseStatement? #ifStatement | 'while' LPARENTHESIS whileComp RPARENTHESIS LBRACE statement* RBRACE #while | functionReturnType ID LPARENTHESIS functionArguments? RPARENTHESIS LBRACE statement* ('return' math)? RBRACE #function | callFunction #invokeFunction | 'zmienna' ID ASSIGN callFunction #assignFunction ; value: ID | math | stringConcat ; arrayAssignItem: ID LBRACKET INT RBRACKET ; math: LPARENTHESIS math RPARENTHESIS #parent | math operatorTwo math #multiply | math operatorOne math #add | number #single ; number: INT | REAL | ID ; stringConcat: concatVal ('+' concatVal)* ; concatVal: STRING | INT | REAL ; arrayVal: INT | REAL ; whileComp: compValueFirst compareOperator compValueSecond ; elseifStatement: 'else if' LPARENTHESIS comparision RPARENTHESIS LBRACE statement* RBRACE elseifStatement? ; elseStatement: 'else' LBRACE statement* RBRACE ; comparision: compValueFirst compareOperator compValueSecond ; compValueFirst: math ; compValueSecond: math ; callFunction: ID LPARENTHESIS givenFunctionArguments? RPARENTHESIS ; functionArguments: functionArg (',' functionArg)* ; functionArg: functionArgType ID ; givenFunctionArguments: givenFunctionArg (',' givenFunctionArg)* ; givenFunctionArg: ID ; functionArgType: 'int' | 'double' ; functionReturnType: 'void' | 'int' | 'double' ; operatorOne: '-' | '+' ; operatorTwo: '*' | '/' ; compareOperator: '<' | '>' | '<=' | '>=' | '==' | '!=' ; PRINT: 'pokazMiSwojeTowary' ; READ: 'DajMiLiczbe' ; STRING: '"' ( ~('\\'|'"') )* '"' ; ID: ('a'..'z'|'A'..'Z')+ ; INT: [+-]?[0-9]+ ; REAL: [+-]?[0-9]+'.'[0-9]+ ; ASSIGN: '=' ; LPARENTHESIS: '(' ; RPARENTHESIS: ')' ; LBRACKET: '[' ; RBRACKET: ']' ; LBRACE: '{' ; RBRACE: '}' ; WS: [ \t\r\n]+ -> skip ; COMMENT: '//'~('\n')*'\n'* -> skip ; MULTILINECOMMENT: '/*' .*? '*/' -> skip ;
mconv.tmpl.applescript
n-miyo/mconv
1
3521
<filename>mconv.tmpl.applescript<gh_stars>1-10 #!/usr/bin/osascript -- mconv: -- Eliminate extra 'moov.meta' atom from 'mp4' file and -- rename it. -- See detail: http://thousandleaves-project.com/blog/2012/10/drm%E3%83%95%E3%83%AA%E3%83%BC%E3%81%AB%E3%81%AA%E3%81%A3%E3%81%9Fmora%E6%A5%BD%E6%9B%B2%E3%82%92%E5%86%8D%E3%82%A8%E3%83%B3%E3%82%B3%E3%83%BC%E3%83%89%E3%81%AA%E3%81%97%E3%81%A7iphonetouch%E3%81%A7.html -- -- Licese: MIT License property atomicParsleyCmd : "%ATOMICPARSLEYCMD%" property doneDirName : "Done" on findCommand(cmdName) set dirList to targetDirList tell application "Finder" repeat with f in dirList set p to f & cmdName if exists p as POSIX file then return p end if end repeat return "" end tell end findCommand on adding folder items to thisFolder after receiving theseItems tell application "Finder" if not (exists folder doneDirName of thisFolder) then make new folder at thisFolder with properties {name:doneDirName} end if set destinationFolder to folder doneDirName of thisFolder as alias set destinationDirectory to POSIX path of destinationFolder end tell repeat with i from 1 to number of items in theseItems set thisItem to item i of theseItems tell application "Finder" if name extension of thisItem is "mp4" then duplicate thisItem to destinationFolder with replacing set targetPath to destinationDirectory & name of (info for thisItem) do shell script atomicParsleyCmd & " " & quoted form of targetPath & " --manualAtomRemove \"moov.meta\" --overWrite" set finderFile to file (targetPath as POSIX file) set name extension of finderFile to "m4a" end if end tell end repeat end adding folder items to -- EOF
src/GBA.Audio.ads
98devin/ada-gba-dev
7
22
<filename>src/GBA.Audio.ads -- Copyright (c) 2021 <NAME> -- zlib License -- see LICENSE for details. package GBA.Audio is type Sweep_Shift_Type is range 0 .. 7; type Frequency_Direction is ( Increasing , Decreasing ); for Frequency_Direction use ( Increasing => 0 , Decreasing => 1 ); type Sweep_Duration_Type is range 0 .. 7; type Sweep_Control_Info is record Shift : Sweep_Shift_Type; Frequency_Change : Frequency_Direction; Duration : Sweep_Duration_Type; end record with Size => 16; for Sweep_Control_Info use record Shift at 0 range 0 .. 2; Frequency_Change at 0 range 3 .. 3; Duration at 0 range 4 .. 6; end record; type Sound_Duration_Type is range 0 .. 63; type Wave_Pattern_Duty_Type is range 0 .. 3; type Envelope_Step_Type is range 0 .. 7; type Envelope_Direction is ( Increasing , Decreasing ); for Envelope_Direction use ( Increasing => 1 , Decreasing => 0 ); type Initial_Volume_Type is range 0 .. 15; type Duty_Length_Info is record Duration : Sound_Duration_Type; Wave_Pattern_Duty : Wave_Pattern_Duty_Type; Envelope_Step_Time : Envelope_Step_Type; Envelope_Change : Envelope_Direction; Initial_Volume : Initial_Volume_Type; end record with Size => 16; for Duty_Length_Info use record Duration at 0 range 0 .. 5; Wave_Pattern_Duty at 0 range 6 .. 7; Envelope_Step_Time at 0 range 8 .. 10; Envelope_Direction at 0 range 11 .. 11; Initial_Volume at 0 range 12 .. 15; end record; type Frequency_Type is range 0 .. 2047; type Frequency_Control_Info is record Frequency : Frequency_Type; Use_Duration : Boolean; Initial : Boolean; end record with Size => 16; for Frequency_Control_Info use record Frequency at 0 range 0 .. 10; Use_Duration at 0 range 14 .. 14; Initial at 0 range 15 .. 15; end record; end GBA.Audio;
Modul 3/latih15proteus.asm
hyuwah/fu-praktikum-smd
0
4275
;-------------------------------------------------------------------- ; Praktikum SMD 2015 ; M.Wahyudin (140310120031) ; ; Name : LATIH15.ASM <NAME> ; Desc : Menampilkan karakter A ke display matriks 7x5 ; Input : - ; Output: Display matriks 7x5 ;-------------------------------------------------------------------- cseg at 0 mulai: mov P1,#00001b ; mengaktifkan kolom ke-1 mov a,#0 ; pilih baris ke- 1 call ambilbaris ; mengambil data baris ke-1 mov p2,a ; menyalakan baris-1 ke port-2 call tunda ; tahan tampilan mov p2,#0 ; padamkan baris ke 1 mov P1,#00010b ; mengaktifkan kolom ke-2 mov a,#1 ; pilih baris ke- 2 call ambilbaris ; mengambil data baris ke-2 mov p2,a ; menyalakan baris-2 ke port-2 call tunda ; tahan tampilan mov p2,#0 ; padamkan baris ke 2 mov P1,#00100b ; mengaktifkan kolom ke-3 mov a,#2 ; pilih baris ke- 3 call ambilbaris ; mengambil data baris ke-3 mov p2,a ; menyalakan baris-3 ke port-2 call tunda ; tahan tampilan mov p2,#0 ; padamkan baris ke 3 mov P1,#01000b ; mengaktifkan kolom ke-4 mov a,#3 ; pilih baris ke-4 call ambilbaris ; mengambil data baris ke-4 mov p2,a ; menyalakan baris-4 ke port-2 call tunda ; tahan tampilan mov p2,#0 ; padamkan baris ke 4 mov P1,#10000b ; mengaktifkan kolom ke-5 mov a,#4 ; pilih baris ke- 5 call ambilbaris ; mengambil data baris ke-5 mov p2,a ; menyalakan baris-5 ke port-2 call tunda ; tahan tampilan mov p2,#0 ; padamkan baris ke 5 jmp mulai tunda: mov r1,#0 mov r2,#35 wait: djnz r1,wait djnz r2,wait ret ambilbaris: add a,#2d movc a,@a+pc cpl a ret db 7ch, 12h, 11h, 12h, 7ch end
tests/phelix/saatana-crypto-phelix-test_vectors.ads
HeisenbugLtd/Saatana
10
6440
------------------------------------------------------------------------------ -- Copyright (C) 2017-2020 by Heisenbug Ltd. (<EMAIL>) -- -- This work is free. You can redistribute it and/or modify it under the -- terms of the Do What The Fuck You Want To Public License, Version 2, -- as published by Sam Hocevar. See the LICENSE file for more details. ------------------------------------------------------------------------------ pragma License (Unrestricted); with Saatana.Crypto.Stream_Tools; package Saatana.Crypto.Phelix.Test_Vectors with SPARK_Mode => Off is pragma Annotate (GNATcheck, Exempt_On, "Visible_Components", "Public access to components is intentional for test subroutines(s)."); type Test_Vector is record Key : Stream_Tools.Key_Stream_Access; Nonce : Stream_Tools.Nonce_Stream_Access; Aad : Stream_Tools.Plaintext_Stream_Access; Plaintext : Stream_Tools.Plaintext_Stream_Access; -- expected results Cipher : Stream_Tools.Ciphertext_Stream_Access; MAC : Stream_Tools.MAC_Stream_Access; end record; pragma Annotate (GNATcheck, Exempt_Off, "Visible_Components"); function "+" (Value : in String) return Stream_Tools.Ciphertext_Stream_Access renames Stream_Tools.To_Stream; function "+" (Value : in String) return Stream_Tools.Key_Stream_Access renames Stream_Tools.To_Stream; function "+" (Value : in String) return Stream_Tools.MAC_Stream_Access renames Stream_Tools.To_Stream; function "+" (Value : in String) return Stream_Tools.Nonce_Stream_Access renames Stream_Tools.To_Stream; function "+" (Value : in String) return Stream_Tools.Plaintext_Stream_Access renames Stream_Tools.To_Stream; type Test_Vectors is array (Positive range <>) of Test_Vector; -- Known answer tests. KAT : constant Test_Vectors := (001 => (Key => +"<KEY>", Nonce => +"202122232425262728292A2B2C2D2E2F", Aad => +"", Plaintext => +"606162636465666768696A6B6C6D6E6F707172737475767778797A7B7C7D7E7F80818283", Cipher => +"20C5D60E0287BC91FD9261409FBE0AE3094E0AD95020D4F91493765F9CE54BF41E69FE0A", MAC => +"A188070F2B69B995F5764390551ED14D"), -- /* ---------- KAT vector # 1 ------------- */ -- {256, 36, 0, 128, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F}, /* key */ -- {202122232425262728292A2B2C2D2E2F}, /* nonce */ -- {}, /* aad */ -- {606162636465666768696A6B6C6D6E6F707172737475767778797A7B7C7D7E7F80818283}, /* pText */ -- {20C5D60E0287BC91FD9261409FBE0AE3094E0AD95020D4F91493765F9CE54BF41E69FE0A}, /* cText */ -- {A188070F2B69B995F5764390551ED14D} /* mac */ 002 => (Key => +"<KEY>", Nonce => +"<KEY>", Aad => +"", Plaintext => +"606162636465666768696A6B6C6D6E6F707172737475767778797A7B7C7D7E7F808182", Cipher => +"20C5D60E0287BC91FD9261409FBE0AE3094E0AD95020D4F91493765F9CE54BF41E69FE", MAC => +"01C9AA04CB13BC860C506D6D87183C23"), -- /* ---------- KAT vector # 2 ------------- */ -- { 256, 35, 0, 128, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {<KEY>}, /* key */ -- {202122232425262728292A2B2C2D2E2F}, /* nonce */ -- {}, /* aad */ -- {606162636465666768696A6B6C6D6E6F707172737475767778797A7B7C7D7E7F808182}, /* pText */ -- {20C5D60E0287BC91FD9261409FBE0AE3094E0AD95020D4F91493765F9CE54BF41E69FE}, /* cText */ -- {01C9AA04CB13BC860C506D6D87183C23} /* mac */ 003 => (Key => +"<KEY>", Nonce => +"202122232425262728292A2B2C2D2E2F", Aad => +"", Plaintext => +"606162636465666768696A6B6C6D6E6F707172737475767778797A7B7C7D7E7F8081", Cipher => +"20C5D60E0287BC91FD9261409FBE0AE3094E0AD95020D4F91493765F9CE54BF41E69", MAC => +"DBD13C2B97447B3E0E462C690CADAEAD"), -- /* ---------- KAT vector # 3 ------------- */ -- { 256, 34, 0, 128, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {<KEY>}, /* key */ -- {0x202122232425262728292A2B2C2D2E2F}, /* nonce */ -- {}, /* aad */ -- {606162636465666768696A6B6C6D6E6F707172737475767778797A7B7C7D7E7F8081}, /* pText */ -- {20C5D60E0287BC91FD9261409FBE0AE3094E0AD95020D4F91493765F9CE54BF41E69}, /* cText */ -- {DBD13C2B97447B3E0E462C690CADAEAD} /* mac */ 004 => (Key => +"000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F", Nonce => +"202122232425262728292A2B2C2D2E2F", Aad => +"", Plaintext => +"606162636465666768696A6B6C6D6E6F707172737475767778797A7B7C7D7E7F80", Cipher => +"20C5D60E0287BC91FD9261409FBE0AE3094E0AD95020D4F91493765F9CE54BF41E", MAC => +"7B58408F2F04B98EA6DA1EFAACD1A03C"), -- /* ---------- KAT vector # 4 ------------- */ -- { 256, 33, 0, 128, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F}, /* key */ -- {202122232425262728292A2B2C2D2E2F}, /* nonce */ -- {}, /* aad */ -- {606162636465666768696A6B6C6D6E6F707172737475767778797A7B7C7D7E7F80}, /* pText */ -- {20C5D60E0287BC91FD9261409FBE0AE3094E0AD95020D4F91493765F9CE54BF41E}, /* cText */ -- {7B58408F2F04B98EA6DA1EFAACD1A03C} /* mac */ 005 => (Key => +"<KEY>", Nonce => +"202122232425262728292A2B2C2D2E2F", Aad => +"", Plaintext => +"606162636465666768696A6B6C6D6E6F707172737475767778797A7B7C7D7E7F", Cipher => +"20C5D60E0287BC91FD9261409FBE0AE3094E0AD95020D4F91493765F9CE54BF4", MAC => +"0857F64C5711B02557DE55FB6C90BA7A"), -- /* ---------- KAT vector # 5 ------------- */ -- { 256, 32, 0, 128, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F}, /* key */ -- {202122232425262728292A2B2C2D2E2F}, /* nonce */ -- {}, /* aad */ -- {606162636465666768696A6B6C6D6E6F707172737475767778797A7B7C7D7E7F}, /* pText */ -- {20C5D60E0287BC91FD9261409FBE0AE3094E0AD95020D4F91493765F9CE54BF4}, /* cText */ -- {0857F64C5711B02557DE55FB6C90BA7A} /* mac */ 006 => (Key => +"<KEY>", Nonce => +"202122232425262728292A2B2C2D2E2F", Aad => +"", Plaintext => +"606162636465666768696A6B6C6D6E6F707172737475767778797A7B7C7D7E", Cipher => +"20C5D60E0287BC91FD9261409FBE0AE3094E0AD95020D4F91493765F9CE54B", MAC => +"3C11893784C1FE79D5EBC22310F85C26"), -- /* ---------- KAT vector # 6 ------------- */ -- { 256, 31, 0, 128, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {0x000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F}, /* key */ -- {202122232425262728292A2B2C2D2E2F}, /* nonce */ -- {}, /* aad */ -- {606162636465666768696A6B6C6D6E6F707172737475767778797A7B7C7D7E}, /* pText */ -- {20C5D60E0287BC91FD9261409FBE0AE3094E0AD95020D4F91493765F9CE54B}, /* cText */ -- {3C11893784C1FE79D5EBC22310F85C26} /* mac */ 007 => (Key => +"<KEY>", Nonce => +"202122232425262728292A2B2C2D2E2F", Aad => +"", Plaintext => +"606162636465666768696A6B6C6D6E6F707172737475767778797A7B7C7D", Cipher => +"20C5D60E0287BC91FD9261409FBE0AE3094E0AD95020D4F91493765F9CE5", MAC => +"7C2C141DCE45F0742A8F1271B3529B1E"), -- /* ---------- KAT vector # 7 ------------- */ -- { 256, 30, 0, 128, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {<KEY>}, /* key */ -- {<KEY>}, /* nonce */ -- {}, /* aad */ -- {606162636465666768696A6B6C6D6E6F707172737475767778797A7B7C7D}, /* pText */ -- {20C5D60E0287BC91FD9261409FBE0AE3094E0AD95020D4F91493765F9CE5}, /* cText */ -- {7C2C141DCE45F0742A8F1271B3529B1E} /* mac */ 008 => (Key => +"<KEY>", Nonce => +"202122232425262728292A2B2C2D2E2F", Aad => +"", Plaintext => +"606162636465666768696A6B6C6D6E6F707172737475767778797A7B7C", Cipher => +"20C5D60E0287BC91FD9261409FBE0AE3094E0AD95020D4F91493765F9C", MAC => +"9228BA422B7EEB1C9C61006FD0878E30"), -- /* ---------- KAT vector # 8 ------------- */ -- { 256, 29, 0, 128, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F}, /* key */ -- {202122232425262728292A2B2C2D2E2F}, /* nonce */ -- {}, /* aad */ -- {606162636465666768696A6B6C6D6E6F707172737475767778797A7B7C}, /* pText */ -- {20C5D60E0287BC91FD9261409FBE0AE3094E0AD95020D4F91493765F9C}, /* cText */ -- {9228BA422B7EEB1C9C61006FD0878E30} /* mac */ 009 => (Key => +"<KEY>", Nonce => +"202122232425262728292A2B2C2D2E2F", Aad => +"", Plaintext => +"606162636465666768696A6B6C6D6E6F707172737475767778797A7B", Cipher => +"20C5D60E0287BC91FD9261409FBE0AE3094E0AD95020D4F91493765F", MAC => +"D8B3CDC65D380C92099F80918470543E"), -- /* ---------- KAT vector # 9 ------------- */ -- { 256, 28, 0, 128, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F}, /* key */ -- {202122232425262728292A2B2C2D2E2F}, /* nonce */ -- {}, /* aad */ -- {606162636465666768696A6B6C6D6E6F707172737475767778797A7B}, /* pText */ -- {20C5D60E0287BC91FD9261409FBE0AE3094E0AD95020D4F91493765F}, /* cText */ -- {D8B3CDC65D380C92099F80918470543E} /* mac */ 010 => (Key => +"<KEY>", Nonce => +"202122232425262728292A2B2C2D2E2F", Aad => +"", Plaintext => +"606162636465666768696A6B6C6D6E6F707172737475767778797A", Cipher => +"20C5D60E0287BC91FD9261409FBE0AE3094E0AD95020D4F9149376", MAC => +"0D77A916B9C86DDDCDE3E2B9ED7C9A34"), -- /* ---------- KAT vector # 10 ------------- */ -- {256, 27, 0, 128, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F}, /* key */ -- {202122232425262728292A2B2C2D2E2F}, /* nonce */ -- {}, /* aad */ -- {606162636465666768696A6B6C6D6E6F707172737475767778797A}, /* pText */ -- {20C5D60E0287BC91FD9261409FBE0AE3094E0AD95020D4F9149376}, /* cText */ -- {0D77A916B9C86DDDCDE3E2B9ED7C9A34} /* mac */ 011 => (Key => +"<KEY>", Nonce => +"202122232425262728292A2B2C2D2E2F", Aad => +"", Plaintext => +"606162636465666768696A6B6C6D6E6F70717273747576777879", Cipher => +"20C5D60E0287BC91FD9261409FBE0AE3094E0AD95020D4F91493", MAC => +"AC8BAC91BAA96E5ECCA2E6A4607C7A6D"), -- /* ---------- KAT vector # 11 ------------- */ -- {256, 26, 0, 128, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F}, /* key */ -- {202122232425262728292A2B2C2D2E2F}, /* nonce */ -- {}, /* aad */ -- {606162636465666768696A6B6C6D6E6F70717273747576777879}, /* pText */ -- {20C5D60E0287BC91FD9261409FBE0AE3094E0AD95020D4F91493}, /* cText */ -- {AC8BAC91BAA96E5ECCA2E6A4607C7A6D} /* mac */ 012 => (Key => +"<KEY>", Nonce => +"202122232425262728292A2B2C2D2E2F", Aad => +"", Plaintext => +"606162636465666768696A6B6C6D6E6F707172737475767778", Cipher => +"20C5D60E0287BC91FD9261409FBE0AE3094E0AD95020D4F914", MAC => +"787AD5B9F1414FD57D424557CA3A2B16"), -- /* ---------- KAT vector # 12 ------------- */ -- { 256, 25, 0, 128, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {<KEY>}, /* key */ -- {202122232425262728292A2B2C2D2E2F}, /* nonce */ -- {}, /* aad */ -- {606162636465666768696A6B6C6D6E6F707172737475767778}, /* pText */ -- {20C5D60E0287BC91FD9261409FBE0AE3094E0AD95020D4F914}, /* cText */ -- {787AD5B9F1414FD57D424557CA3A2B16} /* mac */ 013 => (Key => +"<KEY>", Nonce => +"202122232425262728292A2B2C2D2E2F", Aad => +"", Plaintext => +"606162636465666768696A6B6C6D6E6F7071727374757677", Cipher => +"20C5D60E0287BC91FD9261409FBE0AE3094E0AD95020D4F9", MAC => +"697E436812FC7E4BE3866081D519DAAE"), -- /* ---------- KAT vector # 13 ------------- */ -- { 256, 24, 0, 128, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F}, /* key */ -- {202122232425262728292A2B2C2D2E2F}, /* nonce */ -- {}, /* aad */ -- {606162636465666768696A6B6C6D6E6F7071727374757677}, /* pText */ -- {20C5D60E0287BC91FD9261409FBE0AE3094E0AD95020D4F9}, /* cText */ -- {697E436812FC7E4BE3866081D519DAAE} /* mac */ 014 => (Key => +"000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F", Nonce => +"202122232425262728292A2B2C2D2E2F", Aad => +"", Plaintext => +"606162636465666768696A6B6C6D6E6F70717273747576", Cipher => +"20C5D60E0287BC91FD9261409FBE0AE3094E0AD95020D4", MAC => +"18F4115DE3C7DE3E7A6B98DD5530BFA3"), -- /* ---------- KAT vector # 14 ------------- */ -- { 256, 23, 0, 128, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F}, /* key */ -- {202122232425262728292A2B2C2D2E2F}, /* nonce */ -- {}, /* aad */ -- {606162636465666768696A6B6C6D6E6F70717273747576}, /* pText */ -- {20C5D60E0287BC91FD9261409FBE0AE3094E0AD95020D4}, /* cText */ -- {18F4115DE3C7DE3E7A6B98DD5530BFA3} /* mac */ 015 => (Key => +"<KEY>", Nonce => +"202122232425262728292A2B2C2D2E2F", Aad => +"", Plaintext => +"606162636465666768696A6B6C6D6E6F707172737475", Cipher => +"20C5D60E0287BC91FD9261409FBE0AE3094E0AD95020", MAC => +"2137BBEFF74F39E1F20AABC61B0A5308"), -- /* ---------- KAT vector # 15 ------------- */ -- { 256, 22, 0, 128, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F}, /* key */ -- {202122232425262728292A2B2C2D2E2F}, /* nonce */ -- {}, /* aad */ -- {606162636465666768696A6B6C6D6E6F707172737475}, /* pText */ -- {20C5D60E0287BC91FD9261409FBE0AE3094E0AD95020}, /* cText */ -- {2137BBEFF74F39E1F20AABC61B0A5308} /* mac */ 016 => (Key => +"<KEY>", Nonce => +"202122232425262728292A2B2C2D2E2F", Aad => +"", Plaintext => +"606162636465666768696A6B6C6D6E6F7071727374", Cipher => +"20C5D60E0287BC91FD9261409FBE0AE3094E0AD950", MAC => +"EEAEDE8E0E77AAB793019E3A63C7CDE1"), -- /* ---------- KAT vector # 16 ------------- */ -- { 256, 21, 0, 128, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {000102030405060708090A0B0C0D0E0F101112131415161718191A<KEY>F}, /* key */ -- {202122232425262728292A2B2C2D2E2F}, /* nonce */ -- {}, /* aad */ -- {606162636465666768696A6B6C6D6E6F7071727374}, /* pText */ -- {20C5D60E0287BC91FD9261409FBE0AE3094E0AD950}, /* cText */ -- {EEAEDE8E0E77AAB793019E3A63C7CDE1} /* mac */ 017 => (Key => +"<KEY>", Nonce => +"202122232425262728292A2B2C2D2E2F", Aad => +"", Plaintext => +"606162636465666768696A6B6C6D6E6F70717273", Cipher => +"20C5D60E0287BC91FD9261409FBE0AE3094E0AD9", MAC => +"92FDD321FC124816F6682BF541AA9199"), -- /* ---------- KAT vector # 17 ------------- */ -- { 256, 20, 0, 128, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F}, /* key */ -- {202122232425262728292A2B2C2D2E2F}, /* nonce */ -- {}, /* aad */ -- {606162636465666768696A6B6C6D6E6F70717273}, /* pText */ -- {20C5D60E0287BC91FD9261409FBE0AE3094E0AD9}, /* cText */ -- {92FDD321FC124816F6682BF541AA9199} /* mac */ 018 => (Key => +"<KEY>", Nonce => +"202122232425262728292A2B2C2D2E2F", Aad => +"", Plaintext => +"606162636465666768696A6B6C6D6E6F707172", Cipher => +"20C5D60E0287BC91FD9261409FBE0AE3094E0A", MAC => +"8581CC38476DB6D6885996DDA266424A"), -- /* ---------- KAT vector # 18 ------------- */ -- { 256, 19, 0, 128, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F}, /* key */ -- {202122232425262728292A2B2C2D2E2F}, /* nonce */ -- {}, /* aad */ -- {606162636465666768696A6B6C6D6E6F707172}, /* pText */ -- {20C5D60E0287BC91FD9261409FBE0AE3094E0A}, /* cText */ -- {8581CC38476DB6D6885996DDA266424A} /* mac */ 019 => (Key => +"<KEY>", Nonce => +"202122232425262728292A2B2C2D2E2F", Aad => +"", Plaintext => +"606162636465666768696A6B6C6D6E6F7071", Cipher => +"20C5D60E0287BC91FD9261409FBE0AE3094E", MAC => +"5DD5C5ACA328524AB6FEF1E1F2339190"), -- /* ---------- KAT vector # 19 ------------- */ -- { 256, 18, 0, 128, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F}, /* key */ -- {<KEY>}, /* nonce */ -- {}, /* aad */ -- {606162636465666768696A6B6C6D6E6F7071}, /* pText */ -- {20C5D60E0287BC91FD9261409FBE0AE3094E}, /* cText */ -- {5DD5C5ACA328524AB6FEF1E1F2339190} /* mac */ 020 => (Key => +"<KEY>", Nonce => +"202122232425262728292A2B2C2D2E2F", Aad => +"", Plaintext => +"606162636465666768696A6B6C6D6E6F70", Cipher => +"20C5D60E0287BC91FD9261409FBE0AE309", MAC => +"8114A28F9E36305B2A9FEBA4C6CF3AA4"), -- /* ---------- KAT vector # 20 ------------- */ -- { 256, 17, 0, 128, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F}, /* key */ -- {202122232425262728292A2B2C2D2E2F}, /* nonce */ -- {}, /* aad */ -- {606162636465666768696A6B6C6D6E6F70}, /* pText */ -- {20C5D60E0287BC91FD9261409FBE0AE309}, /* cText */ -- {8114A28F9E36305B2A9FEBA4C6CF3AA4} /* mac */ 021 => (Key => +"<KEY>", Nonce => +"202122232425262728292A2B2C2D2E2F", Aad => +"", Plaintext => +"606162636465666768696A6B6C6D6E6F", Cipher => +"20C5D60E0287BC91FD9261409FBE0AE3", MAC => +"DBC830FB616AD45E6D232E2235ACBC17"), -- /* ---------- KAT vector # 21 ------------- */ -- { 256, 16, 0, 128, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F}, /* key */ -- {202122232425262728292A2B2C2D2E2F}, /* nonce */ -- {}, /* aad */ -- {606162636465666768696A6B6C6D6E6F}, /* pText */ -- {20C5D60E0287BC91FD9261409FBE0AE3}, /* cText */ -- {DBC830FB616AD45E6D232E2235ACBC17} /* mac */ 022 => (Key => +"<KEY>", Nonce => +"202122232425262728292A2B2C2D2E2F", Aad => +"", Plaintext => +"606162636465666768696A6B6C6D6E", Cipher => +"20C5D60E0287BC91FD9261409FBE0A", MAC => +"D660E8281792E5D008D7B2549E31A6EC"), -- /* ---------- KAT vector # 22 ------------- */ -- { 256, 15, 0, 128, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F}, /* key */ -- {202122232425262728292A2B2C2D2E2F}, /* nonce */ -- {}, /* aad */ -- {606162636465666768696A6B6C6D6E}, /* pText */ -- {20C5D60E0287BC91FD9261409FBE0A}, /* cText */ -- {D660E8281792E5D008D7B2549E31A6EC} /* mac */ 023 => (Key => +"<KEY>", Nonce => +"202122232425262728292A2B2C2D2E2F", Aad => +"", Plaintext => +"606162636465666768696A6B6C6D", Cipher => +"20C5D60E0287BC91FD9261409FBE", MAC => +"9EE7D62BD0010503DBFAB06349D4E5DE"), -- /* ---------- KAT vector # 23 ------------- */ -- { 256, 14, 0, 128, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F}, /* key */ -- {202122232425262728292A2B2C2D2E2F}, /* nonce */ -- {}, /* aad */ -- {606162636465666768696A6B6C6D}, /* pText */ -- {20C5D60E0287BC91FD9261409FBE}, /* cText */ -- {9EE7D62BD0010503DBFAB06349D4E5DE} /* mac */ 024 => (Key => +"<KEY>", Nonce => +"202122232425262728292A2B2C2D2E2F", Aad => +"", Plaintext => +"606162636465666768696A6B6C", Cipher => +"20C5D60E0287BC91FD9261409F", MAC => +"C27FDD27582E3B1308ADB01591B158BF"), -- /* ---------- KAT vector # 24 ------------- */ -- { 256, 13, 0, 128, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F}, /* key */ -- {202122232425262728292A2B2C2D2E2F}, /* nonce */ -- {}, /* aad */ -- {606162636465666768696A6B6C}, /* pText */ -- {20C5D60E0287BC91FD9261409F}, /* cText */ -- {C27FDD27582E3B1308ADB01591B158BF} /* mac */ 025 => (Key => +"<KEY>", Nonce => +"202122232425262728292A2B2C2D2E2F", Aad => +"", Plaintext => +"606162636465666768696A6B", Cipher => +"20C5D60E0287BC91FD926140", MAC => +"03CA735B83A44A4E482AF94E4277021F"), -- /* ---------- KAT vector # 25 ------------- */ -- { 256, 12, 0, 128, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {<KEY>}, /* key */ -- {202122232425262728292A2B2C2D2E2F}, /* nonce */ -- {}, /* aad */ -- {606162636465666768696A6B}, /* pText */ -- {20C5D60E0287BC91FD926140}, /* cText */ -- {03CA735B83A44A4E482AF94E4277021F} /* mac */ 026 => (Key => +"<KEY>", Nonce => +"202122232425262728292A2B2C2D2E2F", Aad => +"", Plaintext => +"606162636465666768696A", Cipher => +"20C5D60E0287BC91FD9261", MAC => +"BA1260791F0C07D841485E5F4EE0E7C4"), -- /* ---------- KAT vector # 26 ------------- */ -- { 256, 11, 0, 128, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F}, /* key */ -- {202122232425262728292A2B2C2D2E2F}, /* nonce */ -- {}, /* aad */ -- {606162636465666768696A}, /* pText */ -- {20C5D60E0287BC91FD9261}, /* cText */ -- {BA1260791F0C07D841485E5F4EE0E7C4} /* mac */ 027 => (Key => +"<KEY>", Nonce => +"202122232425262728292A2B2C2D2E2F", Aad => +"", Plaintext => +"60616263646566676869", Cipher => +"20C5D60E0287BC91FD92", MAC => +"2678FFF0B35B8469C76AD9C31C498EFB"), -- /* ---------- KAT vector # 27 ------------- */ -- { 256, 10, 0, 128, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F}, /* key */ -- {202122232425262728292A2B2C2D2E2F}, /* nonce */ -- {}, /* aad */ -- {60616263646566676869}, /* pText */ -- {20C5D60E0287BC91FD92}, /* cText */ -- {2678FFF0B35B8469C76AD9C31C498EFB} /* mac */ 028 => (Key => +"<KEY>", Nonce => +"202122232425262728292A2B2C2D2E2F", Aad => +"", Plaintext => +"606162636465666768", Cipher => +"20C5D60E0287BC91FD", MAC => +"0BB6A12BB92131600C1CA2A5E7F96E56"), -- /* ---------- KAT vector # 28 ------------- */ -- { 256, 9, 0, 128, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F}, /* key */ -- {202122232425262728292A2B2C2D2E2F}, /* nonce */ -- {}, /* aad */ -- {606162636465666768}, /* pText */ -- {20C5D60E0287BC91FD}, /* cText */ -- {0BB6A12BB92131600C1CA2A5E7F96E56} /* mac */ 029 => (Key => +"<KEY>", Nonce => +"202122232425262728292A2B2C2D2E2F", Aad => +"", Plaintext => +"6061626364656667", Cipher => +"20C5D60E0287BC91", MAC => +"6E8D2E17DED7DA7046E56E2B896CC1D2"), -- /* ---------- KAT vector # 29 ------------- */ -- { 256, 8, 0, 128, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F}, /* key */ -- {202122232425262728292A2B2C2D2E2F}, /* nonce */ -- {}, /* aad */ -- {6061626364656667}, /* pText */ -- {20C5D60E0287BC91}, /* cText */ -- {6E8D2E17DED7DA7046E56E2B896CC1D2} /* mac */ 030 => (Key => +"<KEY>", Nonce => +"202122232425262728292A2B2C2D2E2F", Aad => +"", Plaintext => +"60616263646566", Cipher => +"20C5D60E0287BC", MAC => +"1061841DA0172EF1C227B3F8AD3ACEEE"), -- /* ---------- KAT vector # 30 ------------- */ -- { 256, 7, 0, 128, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F}, /* key */ -- {202122232425262728292A2B2C2D2E2F}, /* nonce */ -- {}, /* aad */ -- {60616263646566}, /* pText */ -- {20C5D60E0287BC}, /* cText */ -- {1061841DA0172EF1C227B3F8AD3ACEEE} /* mac */ 031 => (Key => +"<KEY>", Nonce => +"<KEY>", Aad => +"", Plaintext => +"606162636465", Cipher => +"20C5D60E0287", MAC => +"71E9CF92E95B8A98B1221085BA5C3326"), -- /* ---------- KAT vector # 31 ------------- */ -- { 256, 6, 0, 128, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {<KEY>}, /* key */ -- {<KEY>}, /* nonce */ -- {}, /* aad */ -- {606162636465}, /* pText */ -- {20C5D60E0287}, /* cText */ -- {71E9CF92E95B8A98B1221085BA5C3326} /* mac */ 032 => (Key => +"<KEY>", Nonce => +"202122232425262728292A2B2C2D2E2F", Aad => +"", Plaintext => +"6061626364", Cipher => +"20C5D60E02", MAC => +"0799D896DCA82A8172DCD3AA4315A83D"), -- /* ---------- KAT vector # 32 ------------- */ -- { 256, 5, 0, 128, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {<KEY>}, /* key */ -- {202122232425262728292A2B2C2D2E2F}, /* nonce */ -- {}, /* aad */ -- {6061626364}, /* pText */ -- {20C5D60E02}, /* cText */ -- {0799D896DCA82A8172DCD3AA4315A83D} /* mac */ 033 => (Key => +"<KEY>", Nonce => +"202122232425262728292A2B2C2D2E2F", Aad => +"", Plaintext => +"60616263", Cipher => +"20C5D60E", MAC => +"2A1E8FFB14DE38E9A21675FA7BC993E1"), -- /* ---------- KAT vector # 33 ------------- */ -- { 256, 4, 0, 128, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F}, /* key */ -- {202122232425262728292A2B2C2D2E2F}, /* nonce */ -- {}, /* aad */ -- {60616263}, /* pText */ -- {20C5D60E}, /* cText */ -- {2A1E8FFB14DE38E9A21675FA7BC993E1} /* mac */ 034 => (Key => +"<KEY>", Nonce => +"202122232425262728292A2B2C2D2E2F", Aad => +"", Plaintext => +"606162", Cipher => +"20C5D6", MAC => +"AF97E2AAB403A268C86609B62DF89B1C"), -- /* ---------- KAT vector # 34 ------------- */ -- { 256, 3, 0, 128, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F}, /* key */ -- {202122232425262728292A2B2C2D2E2F}, /* nonce */ -- {}, /* aad */ -- {606162}, /* pText */ -- {20C5D6}, /* cText */ -- {AF97E2AAB403A268C86609B62DF89B1C} /* mac */ 035 => (Key => +"<KEY>", Nonce => +"202122232425262728292A2B2C2D2E2F", Aad => +"", Plaintext => +"6061", Cipher => +"20C5", MAC => +"6E18FF3D1895F6E228508CF01CC3CA86"), -- /* ---------- KAT vector # 35 ------------- */ -- { 256, 2, 0, 128, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F}, /* key */ -- {202122232425262728292A2B2C2D2E2F}, /* nonce */ -- {}, /* aad */ -- {6061}, /* pText */ -- {20C5}, /* cText */ -- {6E18FF3D1895F6E228508CF01CC3CA86} /* mac */ 036 => (Key => +"<KEY>", Nonce => +"202122232425262728292A2B2C2D2E2F", Aad => +"", Plaintext => +"60", Cipher => +"20", MAC => +"0151407CD97566073BACF241EA168646"), 037 => (Key => +"<KEY>", Nonce => +"202122232425262728292A2B2C2D2E2F", Aad => +"", Plaintext => +"", Cipher => +"", MAC => +"A63B5824F2928A854604F62D7AC2B529"), 038 => (Key => +"CAD665FE4DD1905CF7E41608515E0B81", Nonce => +"40301FE<KEY>", Aad => +"", Plaintext => +"<KEY>", Cipher => +"<KEY>", MAC => +"0B63B0D9B3EF8F63ECF0757B5C6375A7"), -- /* ---------- KAT vector # 38 ------------- */ -- { 128, 36, 0, 128, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {CAD665FE4DD1905CF7E41608515E0B81}, /* key */ -- {<KEY>}, /* nonce */ -- {}, /* aad */ -- {<KEY>}, /* pText */ -- {B65C49EF113013BAEE91821DBFD22A2D812DF9C0B0E04752C10B38F34EF00C051868DD72}, /* cText */ -- {0B63B0D9B3EF8F63ECF0757B5C6375A7} /* mac */ 039 => (Key => +"<KEY>", Nonce => +"27A9ACED3B9F80650F657A7C64A2747F", Aad => +"A7", Plaintext => +"5C94A0A0EDD908296DC11AEA6F8D26007623F547757143856BA1C57424E2A216DA8158", Cipher => +"DF75D9FFF2E2147E035FF0AF3CFCFD4D194B111F0CFAD45479A89D67D1442A152AD66C", MAC => +"E944166503502DDB44A9839EFA76AD64"), -- /* ---------- KAT vector # 39 ------------- */ -- { 192, 35, 1, 128, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {<KEY>}, /* key */ -- {27A9ACED3B9F80650F657A7C64A2747F}, /* nonce */ -- {A7}, /* aad */ -- {5C94A0A0EDD908296DC11AEA6F8D26007623F547757143856BA1C57424E2A216DA8158}, /* pText */ -- {DF75D9FFF2E2147E035FF0AF3CFCFD4D194B111F0CFAD45479A89D67D1442A152AD66C}, /* cText */ -- {E944166503502DDB44A9839EFA76AD64} /* mac */ 040 => (Key => +"979C012EC130C0DD7C38E8ED747F39F9B710776C6C5A90189590CF3CD8B95359", Nonce => +"CE2A62BF0C462E23485A4AB1AE9156B8", Aad => +"DC41", Plaintext => +"B7A56A3863EF45B7D7A5601659523F98B65DE71AD93DCDD5C03378B62B77E4086126", Cipher => +"F1D514267A7FBF2418E9118027CE8A455C9CC5CD54529120FE215CA7C04B11633076", MAC => +"BA8AC98823B01022F754C64F8E2E0B04"), -- /* ---------- KAT vector # 40 ------------- */ -- { 256, 34, 2, 128, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {979C012EC130C0DD7C38E8ED747F39F9B710776C6C5A90189590CF3CD8B95359}, /* key */ -- {CE2A62BF0C462E23485A4AB1AE9156B8}, /* nonce */ -- {DC41}, /* aad */ -- {B7A56A3863EF45B7D7A5601659523F98B65DE71AD93DCDD5C03378B62B77E4086126}, /* pText */ -- {F1D514267A7FBF2418E9118027CE8A455C9CC5CD54529120FE215CA7C04B11633076}, /* cText */ -- {BA8AC98823B01022F754C64F8E2E0B04} /* mac */ 041 => (Key => +"<KEY>", Nonce => +"E66E7E059238872EF0080BB04B96632B", Aad => +"F59AA3", Plaintext => +"7FB503E20B59B7007FD8A093B645BE8A9E8CE62CC3E1089EA4FE03F464502F3F69", Cipher => +"41928BEE2AF444D2B422134119F9E5DB76699082CC05709E49B40DCEB31D76C81E", MAC => +"FCC09E213EF002CDA036C5F9"), -- /* ---------- KAT vector # 41 ------------- */ -- { 128, 33, 3, 96, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {5C74EBC835C3F58119810AD910C6640D}, /* key */ -- {E66E7E059238872EF0080BB04B96632B}, /* nonce */ -- {F59AA3}, /* aad */ -- {7FB503E20B59B7007FD8A093B645BE8A9E8CE62CC3E1089EA4FE03F464502F3F69}, /* pText */ -- {41928BEE2AF444D2B422134119F9E5DB76699082CC05709E49B40DCEB31D76C81E}, /* cText */ -- {FCC09E213EF002CDA036C5F9} /* mac */ 042 => (Key => +"9E78A4B3F15CE1EB7E76D4F28460ADD871DF18DD5CE8B0D1", Nonce => +"C683A20D0B2DFE82FE1F5D5C36811FC5", Aad => +"00F7DE03", Plaintext => +"93AB391674C257E8319668A6C12A86D20809606B0D247C2540D64EE2C6C5E000", Cipher => +"A84EEA0CA24D1421D60966C7BFDAAD1A2EA26808456B3BC6CCB26B703E6B7FDE", MAC => +"F29EB37887801206"), -- /* ---------- KAT vector # 42 ------------- */ -- { 192, 32, 4, 64, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {9E78A4B3F15CE1EB7E76D4F28460ADD871DF18DD5CE8B0D1}, /* key */ -- {C683A20D0B2DFE82FE1F5D5C36811FC5}, /* nonce */ -- {00F7DE03}, /* aad */ -- {93AB391674C257E8319668A6C12A86D20809606B0D247C2540D64EE2C6C5E000}, /* pText */ -- {A84EEA0CA24D1421D60966C7BFDAAD1A2EA26808456B3BC6CCB26B703E6B7FDE}, /* cText */ -- {F29EB37887801206} /* mac */ 043 => (Key => +"<KEY>", Nonce => +"6B030789CD2E23134525E688704888AC", Aad => +"F7DBC4EBC5", Plaintext => +"BB65D112C512CC0A514B1B5B56BD18518AD7945E1D0B639CA72433A650ECD3", Cipher => +"8A6F3C6FDC7E56790151E21B5D9C7F71E72A154095F38547ED31D9DA175DDB", MAC => +"56F6548C7C643F4258A63968"), -- /* ---------- KAT vector # 43 ------------- */ -- { 256, 31, 5, 96, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {<KEY>}, /* key */ -- {6B030789CD2E23134525E688704888AC}, /* nonce */ -- {F7DBC4EBC5}, /* aad */ -- {BB65D112C512CC0A514B1B5B56BD18518AD7945E1D0B639CA72433A650ECD3}, /* pText */ -- {8A6F3C6FDC7E56790151E21B5D9C7F71E72A154095F38547ED31D9DA175DDB}, /* cText */ -- {56F6548C7C643F4258A63968} /* mac */ 044 => (Key => +"EFE9A9B32EE03F50B40AEAA2DE4BAD31", Nonce => +"BC526359357018B13A8814E7D82E5E13", Aad => +"E97C6C9F0D83", Plaintext => +"EE71D44302D458A4BDC3BF4364CE163276C1781EB9A97592C7977751EC0F", Cipher => +"7AFB106FF445909551487ABEB2C04E2E26CAECF435BB38B0907E0A748708", MAC => +"06FD214B44E3C7000210078A4DCB81AA"), -- /* ---------- KAT vector # 44 ------------- */ -- { 128, 30, 6, 128, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {EFE9A9B32EE03F50B40AEAA2DE4BAD31}, /* key */ -- {<KEY>}, /* nonce */ -- {E97C6C9F0D83}, /* aad */ -- {EE71D44302D458A4BDC3BF4364CE163276C1781EB9A97592C7977751EC0F}, /* pText */ -- {7AFB106FF445909551487ABEB2C04E2E26CAECF435BB38B0907E0A748708}, /* cText */ -- {06FD214B44E3C7000210078A4DCB81AA} /* mac */ 045 => (Key => +"<KEY>", Nonce => +"3B1D9B2AC2C26EBD598BABDB379BE1E3", Aad => +"39F1B87CC41079", Plaintext => +"<KEY>", Cipher => +"F6AAD42EE65CED822F773BBF92140F145690C9EEA49AB058FC1FA7739B", MAC => +"2F5E0226FC6C9B32"), -- /* ---------- KAT vector # 45 ------------- */ -- { 192, 29, 7, 64, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {11A0AAF1EBB80D3578C65AA3377D917296B40AC4A98522F1}, /* key */ -- {3B1D9B2AC2C26EBD598BABDB379BE1E3}, /* nonce */ -- {39F1B87CC41079}, /* aad */ -- {615A96E0AE8CB5E8A52BF9C08014D6C265B2DBF6B0D1FC5D690E068447}, /* pText */ -- {F6AAD42EE65CED822F773BBF92140F145690C9EEA49AB058FC1FA7739B}, /* cText */ -- {2F5E0226FC6C9B32} /* mac */ 046 => (Key => +"BFCB302D2D580DDB0836CE63783DF76DA9CAD386618F64502A2F7A6DA776EB8E", Nonce => +"000AA0F8F74B7AB8B5D74A997E54DF5E", Aad => +"8F5E1AF0B2C3F54F", Plaintext => +"D5846764BFD39A86B1CABDA57ABC98AF6BFBA1C3F8D920CB506C6E14", Cipher => +"24F44F614AB8AB98BAAA7A81D59A21626DC1501AA2919D5E9E53C77D", MAC => +"1E4BA9A1633B537864DE131F3C4225DE"), -- /* ---------- KAT vector # 46 ------------- */ -- { 256, 28, 8, 128, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {BFCB302D2D580DDB0836CE63783DF76DA9CAD386618F64502A2F7A6DA776EB8E}, /* key */ -- {000AA0F8F74B7AB8B5D74A997E54DF5E}, /* nonce */ -- {8F5E1AF0B2C3F54F}, /* aad */ -- {D5846764BFD39A86B1CABDA57ABC98AF6BFBA1C3F8D920CB506C6E14}, /* pText */ -- {24F44F614AB8AB98BAAA7A81D59A21626DC1501AA2919D5E9E53C77D}, /* cText */ -- {1E4BA9A1633B537864DE131F3C4225DE} /* mac */ 047 => (Key => +"<KEY>", Nonce => +"05695412AD514C25A6EAC7140E1B3B2B", Aad => +"0047486AD51C6BDBB6", Plaintext => +"90F849D66AF81AC97C1010F480B17001819262E8ADFB3B2774B5D0", Cipher => +"4724CC7155ABB297439A2335F1FB8943C3D6AADDCE600318FCD95A", MAC => +"B7DB6B512B30C824"), -- /* ---------- KAT vector # 47 ------------- */ -- { 128, 27, 9, 64, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {<KEY>}, /* key */ -- {05695412AD514C25A6EAC7140E1B3B2B}, /* nonce */ -- {0047486AD51C6BDBB6}, /* aad */ -- {90F849D66AF81AC97C1010F480B17001819262E8ADFB3B2774B5D0}, /* pText */ -- {4724CC7155ABB297439A2335F1FB8943C3D6AADDCE600318FCD95A}, /* cText */ -- {B7DB6B512B30C824} /* mac */ 048 => (Key => +"<KEY>", Nonce => +"FF1EA04D07A7C794216EC3DBCFBDEE21", Aad => +"CC88BB893E3CD44EF606", Plaintext => +"9105C74E8701143717AB2464416A77492CB5EDCCAD1FD1AF620A", Cipher => +"59C04639ED3E4F96F7C1DDEB8D23344CDBC4929A072F70F0CB0A", MAC => +"1B0A29AA4572AD59042F11784F4C8E5C"), -- /* ---------- KAT vector # 48 ------------- */ -- { 192, 26, 10, 128, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {FF<KEY>2}, /* key */ -- {FF1EA04D07A7C794216EC3DBCFBDEE21}, /* nonce */ -- {CC88BB893E3CD44EF606}, /* aad */ -- {9105C74E8701143717AB2464416A77492CB5EDCCAD1FD1AF620A}, /* pText */ -- {59C04639ED3E4F96F7C1DDEB8D23344CDBC4929A072F70F0CB0A}, /* cText */ -- {1B0A29AA4572AD59042F11784F4C8E5C} /* mac */ 049 => (Key => +"F4D9369F9FAD2E63AD92EED15CB15C335E2959EF647CCDEDFA1B3C77FE71AEED", Nonce => +"5E44089D19F57EB7BD1DD996415B47AA", Aad => +"6221DEF630DDA090315BE3", Plaintext => +"C8A1AC1B7D108F6CCCD2FC88317E61E053C1E8340F58CB1511", Cipher => +"809D39D108F3981D4EF467CB73B409AEC1AF77A74D536DD3A8", MAC => +"07554D89229C4E4E"), -- /* ---------- KAT vector # 49 ------------- */ -- { 256, 25, 11, 64, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {F4D9369F9FAD2E63AD92EED15CB15C335E2959EF647CCDEDFA1B3C77FE71AEED}, /* key */ -- {5E44089D19F57EB7BD1DD996415B47AA}, /* nonce */ -- {6221DEF630DDA090315BE3}, /* aad */ -- {C8A1AC1B7D108F6CCCD2FC88317E61E053C1E8340F58CB1511}, /* pText */ -- {809D39D108F3981D4EF467CB73B409AEC1AF77A74D536DD3A8}, /* cText */ -- {07554D89229C4E4E} /* mac */ 050 => (Key => +"CE7CB710DEA4AB44C47AFCBEE69D876C", Nonce => +"3419114D2BEC788C0E1826A9DAB42333", Aad => +"90B110399E8F07324F9B1F36", Plaintext => +"74FDF6671882D815FC55E9477B72ADF5A461B1EB2C8DC576", Cipher => +"<KEY>", MAC => +"7F2B6106A1371CC44A61211C40DC3C4D"), -- /* ---------- KAT vector # 50 ------------- */ -- { 128, 24, 12, 128, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {CE7CB710DEA4AB44C47AFCBEE69D876C}, /* key */ -- {3419114D2BEC788C0E1826A9DAB42333}, /* nonce */ -- {90B110399E8F07324F9B1F36}, /* aad */ -- {74FDF6671882D815FC55E9477B72ADF5A461B1EB2C8DC576}, /* pText */ -- {42AC9CDC57307C41E813BF600F552CAEB9CF20EF87A16B56}, /* cText */ -- {7F2B6106A1371CC44A61211C40DC3C4D} /* mac */ 051 => (Key => +"E8FE49880AD2BCECC48FCDAE4F699576DFC4ED6F8BD1DF46", Nonce => +"DBDA8F8979D7136847AA0B9AD8A15E24", Aad => +"79B1746EAC6BA4BAB456461282", Plaintext => +"653E893160C57A96BC2537A412EAC471DAE44C4E596383", Cipher => +"770CCEA8FFAEFE0E91668B10F0F8EBE2AEEC73A2EB92AE", MAC => +"1D87EAEE31AEC018C986DC80620E3D60"), -- /* ---------- KAT vector # 51 ------------- */ -- { 192, 23, 13, 128, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {E8FE49880AD2BCECC48FCDAE4F699576DFC4ED6F8BD1DF46}, /* key */ -- {DBDA8F8979D7136847AA0B9AD8A15E24}, /* nonce */ -- {79B1746EAC6BA4BAB456461282}, /* aad */ -- {653E893160C57A96BC2537A412EAC471DAE44C4E596383}, /* pText */ -- {770CCEA8FFAEFE0E91668B10F0F8EBE2AEEC73A2EB92AE}, /* cText */ -- {1D87EAEE31AEC018C986DC80620E3D60} /* mac */ 052 => (Key => +"B805C17742FD53437859160467BD8A34D01E89B1F9E5DC07AB5E1854207E10C0", Nonce => +"37402051153C470EA11C0B96DA5D4539", Aad => +"1918A67153602A27AA31D81982F3", Plaintext => +"7BFFE633C4EC9361C0B35C4BACB4A691B73554517461", Cipher => +"A12EE5A547E10054031E3694BF55EA7307E5A73B37E6", MAC => +"3FA0ACD7FB3FBA91EC21CA47E6DFFBB9"), -- /* ---------- KAT vector # 52 ------------- */ -- { 256, 22, 14, 128, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {B805C17742FD53437859160467BD8A34D01E89B1F9E5DC07AB5E1854207E10C0}, /* key */ -- {37402051153C470EA11C0B96DA5D4539}, /* nonce */ -- {1918A67153602A27AA31D81982F3}, /* aad */ -- {7BFFE633C4EC9361C0B35C4BACB4A691B73554517461}, /* pText */ -- {A12EE5A547E10054031E3694BF55EA7307E5A73B37E6}, /* cText */ -- {3FA0ACD7FB3FBA91EC21CA47E6DFFBB9} /* mac */ 053 => (Key => +"DF14A02D3E679D50F01EA16414D357AF", Nonce => +"6A56B2606441C161E31CDADD3C958D39", Aad => +"21C2F382B97296A1FBED9A12E9A078", Plaintext => +"696EF038447963619192890D1F8E48BCA44B051B85", Cipher => +"A422C08F25A15873E6C9AD4538B638DF9DD3772663", MAC => +"C9980795C56B0AAD"), -- /* ---------- KAT vector # 53 ------------- */ -- { 128, 21, 15, 64, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {DF14A02D3E679D50F01EA16414D357AF}, /* key */ -- {<KEY>}, /* nonce */ -- {21C2F382B97296A1FBED9A12E9A078}, /* aad */ -- {696EF038447963619192890D1F8E48BCA44B051B85}, /* pText */ -- {A422C08F25A15873E6C9AD4538B638DF9DD3772663}, /* cText */ -- {C9980795C56B0AAD} /* mac */ 054 => (Key => +"B28EE554E32607CDF7435636AB96A0FB37AD3F53976B10C9", Nonce => +"8AC44394CECE48421C7A9C38D0BFB582", Aad => +"241E68A6ACB5FF5DACAA7D50DE9AC19F", Plaintext => +"9235966AFE1433E5EA500D0551DC68BE52DB82AD", Cipher => +"305F06EDD1570C9527314E543AD16F9AD2E989BF", MAC => +"4BCE082044CB1B8779A33310"), -- /* ---------- KAT vector # 54 ------------- */ -- { 192, 20, 16, 96, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {B28EE554E32607CDF7435636AB96A0FB37AD3F53976B10C9}, /* key */ -- {8AC44394CECE48421C7A9C38D0BFB582}, /* nonce */ -- {241E68A6ACB5FF5DACAA7D50DE9AC19F}, /* aad */ -- {9235966AFE1433E5EA500D0551DC68BE52DB82AD}, /* pText */ -- {305F06EDD1570C9527314E543AD16F9AD2E989BF}, /* cText */ -- {4BCE082044CB1B8779A33310} /* mac */ 055 => (Key => +"6920F2CE5E449ABB598BE96EAFD4EB6ADC76D8B41A4A3CF5C5CCC02F829C9AE8", Nonce => +"66E4B5125E54821574D6B2BE8FAB7621", Aad => +"3115DD76E555BCFF1681A5B6850D7A56B2", Plaintext => +"02E7C4B90725BC192E85B58088EBDD30263A2E", Cipher => +"<KEY>", MAC => +"CB28D7C2671A4227F06D04F9B2ED416E"), -- /* ---------- KAT vector # 55 ------------- */ -- { 256, 19, 17, 128, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {6920F2CE5E449ABB598BE96EAFD4EB6ADC76D8B41A4A3CF5C5CCC02F829C9AE8}, /* key */ -- {66E4B5125E54821574D6B2BE8FAB7621}, /* nonce */ -- {3115DD76E555BCFF1681A5B6850D7A56B2}, /* aad */ -- {02E7C4B90725BC192E85B58088EBDD30263A2E}, /* pText */ -- {B783D5DBB12CF<KEY>9}, /* cText */ -- {CB28D7C2671A4227F06D04F9B2ED416E} /* mac */ 056 => (Key => +"AB61E72C6CDFE2FAD7A36A1E8E156A88", Nonce => +"BEF50FD830080BD8BC208A1F2EF267B0", Aad => +"3E9A72D855DCE6036FDDB630655BDB63C43C", Plaintext => +"FD873131F8BA8F3F813E1EEB24370B9C6CD9", Cipher => +"75C2B9A49D41A8ED693C707882DD8622EE14", MAC => +"307E220C6C866FEB6E23F606"), -- /* ---------- KAT vector # 56 ------------- */ -- { 128, 18, 18, 96, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {AB61E72C6CDFE2FAD7A36A1E8E156A88}, /* key */ -- {BEF50FD830080BD8BC208A1F2EF267B0}, /* nonce */ -- {3E9A72D855DCE6036FDDB630655BDB63C43C}, /* aad */ -- {FD873131F8BA8F3F813E1EEB24370B9C6CD9}, /* pText */ -- {75C2B9A49D41A8ED693C707882DD8622EE14}, /* cText */ -- {307E220C6C866FEB6E23F606} /* mac */ 057 => (Key => +"C7B421DABC8C9428CBCB3481758A8BFC93CB22292AD2D956", Nonce => +"95DBE5ED54BC278C6AB6327072A7F593", Aad => +"210E8B127D9FC61D0E3469E2D628EDA118D134", Plaintext => +"4021DFAAB71EA6D28A7DBCBD9334D104BB", Cipher => +"D932150CD465FC86DF60DAED09D25B36AC", MAC => +"F8C555974AEB108B1DAFB788"), -- /* ---------- KAT vector # 57 ------------- */ -- { 192, 17, 19, 96, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {C7B421DABC8C9428CBCB3481758A8BFC93CB22292AD2D956}, /* key */ -- {95DBE5ED54BC278C6AB6327072A7F593}, /* nonce */ -- {210E8B127D9FC61D0E3469E2D628EDA118D134}, /* aad */ -- {4021DFAAB71EA6D28A7DBCBD9334D104BB}, /* pText */ -- {D932150CD465FC86DF60DAED09D25B36AC}, /* cText */ -- {F8C555974AEB108B1DAFB788} /* mac */ 058 => (Key => +"<KEY>AC9CE5B50DC36F4E923EE1F1E008", Nonce => +"81BFA71F52EC35DA55BE9C201D134AA8", Aad => +"872DBEC25FD894F7612E6795B96724ADDBA1CEB3", Plaintext => +"52357BFBFA82E97220742D41050FFF99", Cipher => +"E1B759220368FFC6642C9E414955ACED", MAC => +"6D42C1160612B3C0FA39A926908972E2"), -- /* ---------- KAT vector # 58 ------------- */ -- { 256, 16, 20, 128, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {2B020E1257BF056E2B972C6DA280F86DAF16AC9CE5B50DC36F4E923EE1F1E008}, /* key */ -- {<KEY>}, /* nonce */ -- {872DBEC25FD894F7612E6795B96724ADDBA1CEB3}, /* aad */ -- {52357BFBFA82E97220742D41050FFF99}, /* pText */ -- {E1B759220368FFC6642C9E414955ACED}, /* cText */ -- {6D42C1160612B3C0FA39A926908972E2} /* mac */ 059 => (Key => +"<KEY>", Nonce => +"A344C83FB16BC1E5AE5A5C003B6981D8", Aad => +"E8817CD8748A2D77BA1C24CBDA8567C6532A3C55F1", Plaintext => +"4B867471AC6A9F185BEC974F6F538F", Cipher => +"C3E98F53E27E55BDDD5173E868B577", MAC => +"55E154E38031A5B07E9E944500D80444"), -- /* ---------- KAT vector # 59 ------------- */ -- { 128, 15, 21, 128, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {<KEY>}, /* key */ -- {<KEY>}, /* nonce */ -- {E8817CD8748A2D77BA1C24CBDA8567C6532A3C55F1}, /* aad */ -- {4B867471AC6A9F185BEC974F6F538F}, /* pText */ -- {C3E98F53E27E55BDDD5173E868B577}, /* cText */ -- {55E154E38031A5B07E9E944500D80444} /* mac */ 060 => (Key => +"7A88563EF354F4256DE6D245D0549E7553F503FC035A25D8", Nonce => +"5E1509974DF02FD3402C82926453F4C6", Aad => +"4162EA6BB980EF788915CC188F233EB8E26C01CBE9DA", Plaintext => +"058E017FB8E7EAD784944910FE96", Cipher => +"42BEAF9D2F3CD23B51954599A19F", MAC => +"026E5EEBF663F7679997A5BB"), -- /* ---------- KAT vector # 60 ------------- */ -- { 192, 14, 22, 96, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {7A88563EF354F4256DE6D245D0549E7553F503FC035A25D8}, /* key */ -- {5E1509974DF02FD3402C82926453F4C6}, /* nonce */ -- {4162EA6BB980EF788915CC188F233EB8E26C01CBE9DA}, /* aad */ -- {058E017FB8E7EAD784944910FE96}, /* pText */ -- {42BEAF9D2F3CD23B51954599A19F}, /* cText */ -- {026E5EEBF663F7679997A5BB} /* mac */ 061 => (Key => +"647BFE4D517A1DFBC1669C7CC253FAD296D44CFA2D487F677476D6067207EECE", Nonce => +"4A5B0AAF7C5EEDDE2E69365A1030A2F4", Aad => +"1FF84F6863ECB879813B055CC086441E12579B5AF1EF26", Plaintext => +"B055BD77EFAC960A1980ADF744", Cipher => +"EE640A0104E41DB79086312469", MAC => +"6B0A8CA8A6CBECC8C9B5C82CBA74FAAD"), -- /* ---------- KAT vector # 61 ------------- */ -- { 256, 13, 23, 128, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {647BFE4D517A1DFBC1669C7CC253FAD296D44CFA2D487F677476D6067207EECE}, /* key */ -- {4A5B0AAF7C5EEDDE2E69365A1030A2F4}, /* nonce */ -- {1FF84F6863ECB879813B055CC086441E12579B5AF1EF26}, /* aad */ -- {B055BD77EFAC960A1980ADF744}, /* pText */ -- {EE640A0104E41DB79086312469}, /* cText */ -- {6B0A8CA8A6CBECC8C9B5C82CBA74FAAD} /* mac */ 062 => (Key => +"DE2116F7D1E735959F2C5DEF6EC0A2F2", Nonce => +"941037CB17542988A99B1DF4D7D603E1", Aad => +"19D2CBE9CA3D53AED8898F8CFB22ED71D350259496E583D5", Plaintext => +"7A56F716DCAC37566B17242C", Cipher => +"2D20F7497398416C2536443A", MAC => +"8DA654085E54F490890AD24C"), -- /* ---------- KAT vector # 62 ------------- */ -- { 128, 12, 24, 96, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {DE2116F7D1E735959F2C5DEF6EC0A2F2}, /* key */ -- {<KEY>}, /* nonce */ -- {19D2CBE9CA3D53AED8898F8CFB22ED71D350259496E583D5}, /* aad */ -- {7A56F716DCAC37566B17242C}, /* pText */ -- {2D20F7497398416C2536443A}, /* cText */ -- {8DA654085E54F490890AD24C} /* mac */ 063 => (Key => +"<KEY>", Nonce => +"1E828E36B72DBE55BC6FD185C067E608", Aad => +"73940F6331F01A5A416C15EC2EF1F2BE01FAE1182C2B1FBCB9", Plaintext => +"57D767B540CF1EDC83A23F", Cipher => +"BD1AD54735884AE2756D24", MAC => +"3DCF5A6A166C7476357CC1E4DC65DB41"), -- /* ---------- KAT vector # 63 ------------- */ -- { 192, 11, 25, 128, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {<KEY>}, /* key */ -- {<KEY>}, /* nonce */ -- {73940F6331F01A5A416C15EC2EF1F2BE01FAE1182C2B1FBCB9}, /* aad */ -- {57D767B540CF1EDC83A23F}, /* pText */ -- {BD1AD54735884AE2756D24}, /* cText */ -- {3DCF5A6A166C7476357CC1E4DC65DB41} /* mac */ 064 => (Key => +"<KEY>", Nonce => +"973616129E89912B663CB472A4107C79", Aad => +"9688B712F1C7C6B4A4284C1A1A87CCBAAF72A49D6249E774825B", Plaintext => +"868A04318FB1D2C3D981", Cipher => +"A2EFB435E80F2B8C23D1", MAC => +"40538C9070CD13D23E7A01DB"), -- /* ---------- KAT vector # 64 ------------- */ -- { 256, 10, 26, 96, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {<KEY>}, /* key */ -- {<KEY>}, /* nonce */ -- {9688B712F1C7C6B4A4284C1A1A87CCBAAF72A49D6249E774825B}, /* aad */ -- {868A04318FB1D2C3D981}, /* pText */ -- {A2EFB435E80F2B8C23D1}, /* cText */ -- {40538C9070CD13D23E7A01DB} /* mac */ 065 => (Key => +"<KEY>", Nonce => +"D0EAE947C5CD8A9795A5EB621C5EF746", Aad => +"F<KEY>", Plaintext => +"76853F54C1563522E7", Cipher => +"1904B89E79C54D98C9", MAC => +"C35CDB7447BEEA3E1B1400F58E7A7FCC"), -- /* ---------- KAT vector # 65 ------------- */ -- { 128, 9, 27, 128, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {<KEY>}, /* key */ -- {D0EAE947C5CD8A9795A5EB621C5EF746}, /* nonce */ -- {F15F7CF75DE1120159DC4950C3A9987525C680226C6648BB643154}, /* aad */ -- {76853F54C1563522E7}, /* pText */ -- {1904B89E79C54D98C9}, /* cText */ -- {C35CDB7447BEEA3E1B1400F58E7A7FCC} /* mac */ 066 => (Key => +"7FAED524B1FE1CC9C96F37FA5BC05DC0E6AD74F25BFFFA66", Nonce => +"1F8CF4568976E7113B20371A27E855BC", Aad => +"4ACB3148FD5E25EA83625096A5F8FC1DB47AC9E216CCBB182D76A5F7", Plaintext => +"C32A71E1E551565A", Cipher => +"B7CB22E5449780DC", MAC => +"D76FF2CCFB22E6DC78EA32BC64A8D338"), -- /* ---------- KAT vector # 66 ------------- */ -- { 192, 8, 28, 128, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {7FAED524B1FE1CC9C96F37FA5BC05DC0E6AD74F25BFFFA66}, /* key */ -- {<KEY>}, /* nonce */ -- {4ACB3148FD5E25EA83625096A5F8FC1DB47AC9E216CCBB182D76A5F7}, /* aad */ -- {C32A71E1E551565A}, /* pText */ -- {B7CB22E5449780DC}, /* cText */ -- {D76FF2CCFB22E6DC78EA32BC64A8D338} /* mac */ 067 => (Key => +"5FC2E412716416A0313B4C64836C8B087A161531377E2F99D4E4364CAE399A0F", Nonce => +"D142D668ABA8D74EEC7CB8FAD910A10D", Aad => +"2E6393DD5BF07D0D6FC19A00EA0AF845E737CA3D61DD87A657F4D974C7", Plaintext => +"3CE5F6EF970E64", Cipher => +"80EAC67922C623", MAC => +"C714D2CE1AD85FD9"), -- /* ---------- KAT vector # 67 ------------- */ -- { 256, 7, 29, 64, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {5FC2E412716416A0313B4C64836C8B087A161531377E2F99D4E4364CAE399A0F}, /* key */ -- {D142D668ABA8D74EEC7CB8FAD910A10D}, /* nonce */ -- {2E6393DD5BF07D0D6FC19A00EA0AF845E737CA3D61DD87A657F4D974C7}, /* aad */ -- {3CE5F6EF970E64}, /* pText */ -- {80EAC67922C623}, /* cText */ -- {C714D2CE1AD85FD9} /* mac */ 068 => (Key => +"34CED32EA240CA6F5ACA5F0DC436593C", Nonce => +"998EB24FB80A330111F7AC10C1B97DC9", Aad => +"A213F0AE3BE92733262196694744B8FE31379626C3647D97A9779132D16B", Plaintext => +"52007818A7E9", Cipher => +"25F9DEDCBFF0", MAC => +"2805E406D5AB031089C5E3B33C21D7C6"), -- /* ---------- KAT vector # 68 ------------- */ -- { 128, 6, 30, 128, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {34CED32EA240CA6F5ACA5F0DC436593C}, /* key */ -- {<KEY>}, /* nonce */ -- {A213F0AE3BE92733262196694744B8FE31379626C3647D97A9779132D16B}, /* aad */ -- {52007818A7E9}, /* pText */ -- {25F9DEDCBFF0}, /* cText */ -- {2805E406D5AB031089C5E3B33C21D7C6} /* mac */ 069 => (Key => +"4D208B9E569DDB990916340C98FE2DE6A1E5F7A3F11EB2B0", Nonce => +"565C8F51DF28EB6CBF2FDD2E2BF6B5F9", Aad => +"161E1615FBD6F5F07C4D11424684F8F0788E37A7294D0ED5ECC876010E963C", Plaintext => +"B568A2E3A5", Cipher => +"7AD00E0544", MAC => +"EA792228DADA8736"), -- /* ---------- KAT vector # 69 ------------- */ -- { 192, 5, 31, 64, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {4D208B9E569DDB990916340C98FE2DE6A1E5F7A3F11EB2B0}, /* key */ -- {565C8F51DF28EB6CBF2FDD2E2BF6B5F9}, /* nonce */ -- {161E1615FBD6F5F07C4D11424684F8F0788E37A7294D0ED5ECC876010E963C}, /* aad */ -- {B568A2E3A5}, /* pText */ -- {7AD00E0544}, /* cText */ -- {EA792228DADA8736} /* mac */ 070 => (Key => +"<KEY>", Nonce => +"47451A4802964A8F4E417E02F25619C3", Aad => +"<KEY>", Plaintext => +"1582CD30", Cipher => +"463AFCFE", MAC => +"04A790BBB5B026DC"), -- /* ---------- KAT vector # 70 ------------- */ -- { 256, 4, 32, 64, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {<KEY>}, /* key */ -- {<KEY>}, /* nonce */ -- {<KEY>}, /* aad */ -- {1582CD30}, /* pText */ -- {463AFCFE}, /* cText */ -- {04A790BBB5B026DC} /* mac */ 071 => (Key => +"A5B00E06404845F87F74B665B4E44D32", Nonce => +"6325E1EBC65EB71EBC317401DB05468F", Aad => +"71661776C8DCC667A775FCFCDFDEBCBCB0D0CE220ECC6FB8A64A98B531BA3EA552", Plaintext => +"ECDB16", Cipher => +"477716", MAC => +"3106FB78880AA0E45EDC20AC"), -- /* ---------- KAT vector # 71 ------------- */ -- { 128, 3, 33, 96, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {A5B00E06404845F87F74B665B4E44D32}, /* key */ -- {<KEY>}, /* nonce */ -- {71661776C8DCC667A775FCFCDFDEBCBCB0D0CE220ECC6FB8A64A98B531BA3EA552}, /* aad */ -- {ECDB16}, /* pText */ -- {477716}, /* cText */ -- {3106FB78880AA0E45EDC20AC} /* mac */ 072 => (Key => +"<KEY>", Nonce => +"6C76CAB155576410A9D37DC5607F40FA", Aad => +"CAFE4DB59EB4FF941AC12166A2AD5CF43262AB0B10FE53E951751712B12345FDF6BB", Plaintext => +"801C", Cipher => +"7FA9", MAC => +"A1AA919439EA563B"), -- /* ---------- KAT vector # 72 ------------- */ -- { 192, 2, 34, 64, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {885D76D7C1A8E210A62BCD9B410F6E48787C5FF30016ECB4}, /* key */ -- {6C76CAB155576410A9D37DC5607F40FA}, /* nonce */ -- {CAFE4DB59EB4FF941AC12166A2AD5CF43262AB0B10FE53E951751712B12345FDF6BB}, /* aad */ -- {801C}, /* pText */ -- {7FA9}, /* cText */ -- {A1AA919439EA563B} /* mac */ 073 => (Key => +"0F90A10795D7E26F18EF88D79FA2B4074BD4CAC1DE9289E41B972BFA1C9213EC", Nonce => +"EE6A96C5222250C432DAF17AF9096689", Aad => +"C51AE2E09989AB327C4657D98064B07F8592F26BDFE7CC416C50CA325F19D5E5C91AF1", Plaintext => +"B2", Cipher => +"3E", MAC => +"0F022698E1BF19F6A4FAB2315AF04DBB"), -- /* ---------- KAT vector # 73 ------------- */ -- { 256, 1, 35, 128, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {0F90A10795D7E26F18EF88D79FA2B4074BD4CAC1DE9289E41B972BFA1C9213EC}, /* key */ -- {EE6A96C5222250C432DAF17AF9096689}, /* nonce */ -- {C51AE2E09989AB327C4657D98064B07F8592F26BDFE7CC416C50CA325F19D5E5C91AF1}, /* aad */ -- {B2}, /* pText */ -- {3E}, /* cText */ -- {0F022698E1BF19F6A4FAB2315AF04DBB} /* mac */ 074 => (Key => +"A6FC2F12C3632AC30458077CEAD97403", Nonce => +"3B09F7C88031CE9AA7CDD365EB13131A", Aad => +"69CD949AA1B35BE0FB5FCD45DBA9B00526F47B3B829E2878D48126022C32E1738C7BCDA2", Plaintext => +"", Cipher => +"", MAC => +"3A6B6D2A83C7707A2FBB<KEY>"), -- /* ---------- KAT vector # 74 ------------- */ -- { 128, 0, 36, 128, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {A6FC2F12C3632AC30458077CEAD97403}, /* key */ -- {3B09F7C88031CE9AA7CDD365EB13131A}, /* nonce */ -- {69CD949AA1B35BE0FB5FCD45DBA9B00526F47B3B829E2878D48126022C32E1738C7BCDA2}, /* aad */ -- {}, /* pText */ -- {}, /* cText */ -- {3A6B6D2A83C7707A2FBB72E176B77450} /* mac */ 075 => (Key => +"<KEY>", Nonce => +"8AB2C44800337423EEFBDE3352AB2400", Aad => +"16573351AC68B133AE589C74", Plaintext => +"57FE1385F5323CE517C62B48CA3C458580EEE30188F2EE9784EC70B0E8EEBD2153E23958", Cipher => +"3AE3A45D5BE2005546561F448490FD8FB066C72062D3CDA1702934FB890555411CCD2C16", MAC => +"CD2C8A57090851F4348AF88E"), -- /* ---------- KAT vector # 75 ------------- */ -- { 256, 36, 12, 96, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {EA075128C9946D07A2CCB8950C4B8B72ABA314DD14ADB172B3A195F474B22D5B}, /* key */ -- {8AB2C44800337423EEFBDE3352AB2400}, /* nonce */ -- {16573351AC68B133AE589C74}, /* aad */ -- {57FE1385F5323CE517C62B48CA3C458580EEE30188F2EE9784EC70B0E8EEBD2153E23958}, /* pText */ -- {3AE3A45D5BE2005546561F448490FD8FB066C72062D3CDA1702934FB890555411CCD2C16}, /* cText */ -- {CD2C8A57090851F4348AF88E} /* mac */ 076 => (Key => +"<KEY>", Nonce => +"7AC03936E5349B79638A114A6413EBBD", Aad => +"57BB78F07E52FC8F", Plaintext => +"72E1B3C1ED2649D30AB0995A5E9181A886EAB7E35D98CCAC568F87132D189B9B595C09", Cipher => +"00541DEB2DE425B259879DFC0E553C044F6FC22FF38BFF6FEA7C8820574193803B8705", MAC => +"D9BF0C7802F476CFC6FB"), -- /* ---------- KAT vector # 76 ------------- */ -- { 256, 35, 8, 80, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {E9EE4213E3DFD40FBB2CA37AEDDAE0FFF278C0F8074132DFF4071398C0744D7D}, /* key */ -- {7AC03936E5349B79638A114A6413EBBD}, /* nonce */ -- {57BB78F07E52FC8F}, /* aad */ -- {72E1B3C1ED2649D30AB0995A5E9181A886EAB7E35D98CCAC568F87132D189B9B595C09}, /* pText */ -- {00541DEB2DE425B259879DFC0E553C044F6FC22FF38BFF6FEA7C8820574193803B8705}, /* cText */ -- {D9BF0C7802F476CFC6FB} /* mac */ 077 => (Key => +"<KEY>", Nonce => +"DE06CD58BC37F879B6D2FB58D0A0292A", Aad => +"FABA30091AB2", Plaintext => +"<KEY>", Cipher => +"5AAE990316BDDA525CD081863FAFDAA2E20E970C3C9E5CA71BA468315B2BAF8882CA", MAC => +"CAF9FB2AC29A49C5CB3E898A"), -- /* ---------- KAT vector # 77 ------------- */ -- { 192, 34, 6, 96, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {<KEY>}, /* key */ -- {<KEY>}, /* nonce */ -- {FABA30091AB2}, /* aad */ -- {7A39D7B1BF94148941C45079C38D2FEC10016AB86F103522521F987D542B85FA4599}, /* pText */ -- {5AAE990316BDDA525CD081863FAFDAA2E20E970C3C9E5CA71BA468315B2BAF8882CA}, /* cText */ -- {CAF9FB2AC29A49C5CB3E898A} /* mac */ 078 => (Key => +"493C54299913A7C6F9E952CABA3CD53C", Nonce => +"624B264FF4C0139654EE0933F2FA5E60", Aad => +"54C19B0D684E3D", Plaintext => +"B577A21A3E4FF7EF14C41F6F0A9009F871D2A2022E86F4023D20AD5965132B9476", Cipher => +"68B7D38707C28E5915CFA31B113EA98ACC9D25B715A95250E979783A07693F8208", MAC => +"96A217A953E98283EFFB"), -- /* ---------- KAT vector # 78 ------------- */ -- { 128, 33, 7, 80, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {493C54299913A7C6F9E952CABA3CD53C}, /* key */ -- {624B264FF4C0139654EE0933F2FA5E60}, /* nonce */ -- {54C19B0D684E3D}, /* aad */ -- {B577A21A3E4FF7EF14C41F6F0A9009F871D2A2022E86F4023D20AD5965132B9476}, /* pText */ -- {68B7D38707C28E5915CFA31B113EA98ACC9D25B715A95250E979783A07693F8208}, /* cText */ -- {96A217A953E98283EFFB} /* mac */ 079 => (Key => +"<KEY>", Nonce => +"903DAD51BDBE3313BB15FA5D01E231CA", Aad => +"6B782F64FEEDBF7A7C0554159BF80B21EE846580BDB5E6DE6B77332427A48F", Plaintext => +"6044939024CA517C3494B0519614703900B4C03875952352E227FCB1D7625984", Cipher => +"<KEY>", MAC => +"8E9D5D9BFB5E4ABFB974B206"), -- /* ---------- KAT vector # 79 ------------- */ -- { 256, 32, 31, 96, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {E231245E4A1883F13F6C1DC954BEB5E74E60AA458469279A97D4422CF90BF0B0}, /* key */ -- {903DAD51BDBE3313BB15FA5D01E231CA}, /* nonce */ -- {6B782F64FEEDBF7A7C0554159BF80B21EE846580BDB5E6DE6B77332427A48F}, /* aad */ -- {6044939024CA517C3494B0519614703900B4C03875952352E227FCB1D7625984}, /* pText */ -- {138ECFF4C514DE407458F79F36635D024B463F23C5F7B0DB1CFD4DA0E156F164}, /* cText */ -- {8E9D5D9BFB5E4ABFB974B206} /* mac */ 080 => (Key => +"10BDA5DF6435EFA69D1001E18727100BBD59522AF6C3A9BA0D3417AD7F67DE66", Nonce => +"47A51B48E4328E8C6B7F4D768EC4F4CF", Aad => +"<KEY>", Plaintext => +"<KEY>", Cipher => +"E05206EA9A68692529A0AAD1BD68A603D1278430743528521CF06857EB9419", MAC => +"A0AFAF4B129FB57D9C0D47EF0ACD"), -- /* ---------- KAT vector # 80 ------------- */ -- { 256, 31, 26, 112, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {10BDA5DF6435EFA69D1001E18727100BBD59522AF6C3A9BA0D3417AD7F67DE66}, /* key */ -- {47A51B48E4328E8C6B7F4D768EC4F4CF}, /* nonce */ -- {101DD61A0A886A538329F10D795244F562579E90AC9231DB3DB1}, /* aad */ -- {5BBBC1D827F04B5203BAD2F4CBB6A36F5159D302E314154E3EF73207294615}, /* pText */ -- {E05206EA9A68692529A0AAD1BD68A603D1278430743528521CF06857EB9419}, /* cText */ -- {A0AFAF4B129FB57D9C0D47EF0ACD} /* mac */ 081 => (Key => +"8C5AC049D3C9961D0C625C51838DF35B1AFE2AF177B0E73798F7DA2209CAAB7B", Nonce => +"0293BC1C7278BBD34929CE3BCE25027F", Aad => +"38BC9486BF1F314B5880D7A002F24336F2D80BB0680347C2F2FE25BAA708238F", Plaintext => +"0E9E8E153C4BECE751FE130B73B4C2647C81699529BEC4096923EBB5F72D", Cipher => +"A898E0D69D6FF8D3044AA514913A7D47EF3430F37CC4C6243AE9A19C7EDB", MAC => +"43DFAD9919B5ABDA2A40"), -- /* ---------- KAT vector # 81 ------------- */ -- { 256, 30, 32, 80, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {8C5AC049D3C9961D0C625C51838DF35B1AFE2AF177B0E73798F7DA2209CAAB7B}, /* key */ -- {0293BC1C7278BBD34929CE3BCE25027F}, /* nonce */ -- {38BC9486BF1F314B5880D7A002F24336F2D80BB0680347C2F2FE25BAA708238F}, /* aad */ -- {0E9E8E153C4BECE751FE130B73B4C2647C81699529BEC4096923EBB5F72D}, /* pText */ -- {A898E0D69D6FF8D3044AA514913A7D47EF3430F37CC4C6243AE9A19C7EDB}, /* cText */ -- {43DFAD9919B5ABDA2A40} /* mac */ 082 => (Key => +"<KEY>", Nonce => +"DE7F3180D9213B4CB16FA83E150CC8F0", Aad => +"A8C0B6489DBD4A21B561230C22E31AE392A3FCECF8CEDBDB8066BB872A7D43", Plaintext => +"0A286A1DF45F5513E554D348AFC375EDC7019577C9076627D39F8652E6", Cipher => +"15205C84F46F5031EFF7B2884283C5678ACBAE4A71C8104884CCED62B0", MAC => +"80CA6016544A9EFB4E15369F"), -- /* ---------- KAT vector # 82 ------------- */ -- { 192, 29, 31, 96, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {4E6B48DB9B2202A93E670634055DE69639D6C46F37443944}, /* key */ -- {<KEY>}, /* nonce */ -- {A8C0B6489DBD4A21B561230C22E31AE392A3FCECF8CEDBDB8066BB872A7D43}, /* aad */ -- {0A286A1DF45F5513E554D348AFC375EDC7019577C9076627D39F8652E6}, /* pText */ -- {15205C84F46F5031EFF7B2884283C5678ACBAE4A71C8104884CCED62B0}, /* cText */ -- {80CA6016544A9EFB4E15369F} /* mac */ 083 => (Key => +"9A52D8D407FF4064A6B1682CD4D49A53D90E42EB54D33790", Nonce => +"B0FBFF0B922D341616C0572CA03D4A78", Aad => +"<KEY>", Plaintext => +"<KEY>", Cipher => +"9D03DDB592E571C48C73DFDD1FAC400DE7E6A889DBC6647D3B92937D", MAC => +"3CDABD4453DF07D86FFE15FB"), -- /* ---------- KAT vector # 83 ------------- */ -- { 192, 28, 31, 96, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {9A52D8D407FF4064A6B1682CD4D49A53D90E42EB54D33790}, /* key */ -- {<KEY>}, /* nonce */ -- {6F4ADADA9BB66C685821C078800809DBAB3D10C6443CC0D821816031C0B412}, /* aad */ -- {86BB609B54792C4431EB60C470BD78B549496859B068A332ADAD994E}, /* pText */ -- {9D03DDB592E571C48C73DFDD1FAC400DE7E6A889DBC6647D3B92937D}, /* cText */ -- {3CDABD4453DF07D86FFE15FB} /* mac */ 084 => (Key => +"<KEY>", Nonce => +"7F0C2C14E10F8FE3DD00A5EFAF0C8FBA", Aad => +"C76900F0C3C08F6944647329E948ECFA", Plaintext => +"78C423A91BE0F6BF0A82D9DD210A78A144A9FEA32F2372470593F9", Cipher => +"37A7CAD79D8686184A76555364885F31600D1083AEAE8DD24C6B1C", MAC => +"A82DB1FD0F7FAC4F1FBCD5104E931347"), -- /* ---------- KAT vector # 84 ------------- */ -- { 192, 27, 16, 128, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {<KEY>}, /* key */ -- {7F0C2C14E10F8FE3DD00A5EFAF0C8FBA}, /* nonce */ -- {C76900F0C3C08F6944647329E948ECFA}, /* aad */ -- {78C423A91BE0F6BF0A82D9DD210A78A144A9FEA32F2372470593F9}, /* pText */ -- {37A7CAD79D8686184A76555364885F31600D1083AEAE8DD24C6B1C}, /* cText */ -- {A82DB1FD0F7FAC4F1FBCD5104E931347} /* mac */ 085 => (Key => +"96EEAD0DE12BBE3EEEDDBD7955B1BD1CE98DE54553F33355", Nonce => +"889AE25FA2FD5ACC7797C631A3CB2AEF", Aad => +"719F8DE5", Plaintext => +"318BEE3EAA6CDF91A070965CF854AB189AF7E38DBC1BFDBDE009", Cipher => +"23C7C39E6A6FC9337BB113E4267F885EC07BDE46014A35438231", MAC => +"E92F0A0F5B0C551F37E1"), -- /* ---------- KAT vector # 85 ------------- */ -- { 192, 26, 4, 80, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {96EEAD0DE12BBE3EEEDDBD7955B1BD1CE98DE54553F33355}, /* key */ -- {889AE25FA2FD5ACC7797C631A3CB2AEF}, /* nonce */ -- {719F8DE5}, /* aad */ -- {318BEE3EAA6CDF91A070965CF854AB189AF7E38DBC1BFDBDE009}, /* pText */ -- {23C7C39E6A6FC9337BB113E4267F885EC07BDE46014A35438231}, /* cText */ -- {E92F0A0F5B0C551F37E1} /* mac */ 086 => (Key => +"<KEY>", Nonce => +"D5DE1776D6DF29026C1A9D212FA850E7", Aad => +"<KEY>", Plaintext => +"A8CB8D12228E08B495E427BEF7374D5D20DC7B3B35DB66FEEE", Cipher => +"956FE0DDCFCD1303D48ACB5CE1E1E6674AFBFB3D2992385698", MAC => +"5395B7C8ECCB9FCAA56C88C39451"), -- /* ---------- KAT vector # 86 ------------- */ -- { 192, 25, 16, 112, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {<KEY>}, /* key */ -- {D5DE1776D6DF29026C1A9D212FA850E7}, /* nonce */ -- {E4939701C18D14F67F064D292CB5BF1A}, /* aad */ -- {A8CB8D12228E08B495E427BEF7374D5D20DC7B3B35DB66FEEE}, /* pText */ -- {956FE0DDCFCD1303D48ACB5CE1E1E6674AFBFB3D2992385698}, /* cText */ -- {5395B7C8ECCB9FCAA56C88C39451} /* mac */ 087 => (Key => +"<KEY>", Nonce => +"B53E131406CED6EBDFACB81F5ACB5F7C", Aad => +"5AFD", Plaintext => +"EBB1094CD52B4C2231D59CE34837E29A98925384854E788D", Cipher => +"AE93C519E9B5225920CB6A2B9036831460B0FAF84BAF4991", MAC => +"149F5132BABEDE84CD96BF79"), -- /* ---------- KAT vector # 87 ------------- */ -- { 192, 24, 2, 96, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {C008B464AE078D263DBC2593F33EFD682F0D6098B11C5C82}, /* key */ -- {B53E131406CED6EBDFACB81F5ACB5F7C}, /* nonce */ -- {5AFD}, /* aad */ -- {EBB1094CD52B4C2231D59CE34837E29A98925384854E788D}, /* pText */ -- {AE93C519E9B5225920CB6A2B9036831460B0FAF84BAF4991}, /* cText */ -- {149F5132BABEDE84CD96BF79} /* mac */ 088 => (Key => +"4DE43E0077EDACA0D68FEF8EAF587BC3B7A90EE2208770E2", Nonce => +"0C60E36ED3B7A97AB6B8C29054A709D0", Aad => +"B1DBAE4D2736E9BEAEEBB39F24CD5B44CFE643FAB1D6", Plaintext => +"6A3A0A3695B6B4CCCE9256C61FAD82602D63D19A88880A", Cipher => +"F4D43FA57EE0D4078F3317FE3DADF73B60C7307C0ED20D", MAC => +"43322D7F2245BF1CCAE147A02ADE"), -- /* ---------- KAT vector # 88 ------------- */ -- { 192, 23, 22, 112, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {4DE43E0077EDACA0D68FEF8EAF587BC3B7A90EE2208770E2}, /* key */ -- {0C60E36ED3B7A97AB6B8C29054A709D0}, /* nonce */ -- {B1DBAE4D2736E9BEAEEBB39F24CD5B44CFE643FAB1D6}, /* aad */ -- {6A3A0A3695B6B4CCCE9256C61FAD82602D63D19A88880A}, /* pText */ -- {F4D43FA57EE0D4078F3317FE3DADF73B60C7307C0ED20D}, /* cText */ -- {43322D7F2245BF1CCAE147A02ADE} /* mac */ 089 => (Key => +"<KEY>", Nonce => +"B6163F9C87D61D02E76A49AE9CA25CD8", Aad => +"AA0DAACB1058AB231B3E1C64967D0BEA0EAEB1F362A8F4DDC3AB2F21", Plaintext => +"9B82880AB15863770A7AC32D9C8BCF62EDFE65C4FAD1", Cipher => +"C35C66E06BB57E5A8AF89C9ACB6B77E2AB988CAA8651", MAC => +"5087D4143F8BAA7DD228AB487EECB8E6"), -- /* ---------- KAT vector # 89 ------------- */ -- { 128, 22, 28, 128, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {4A0B481C102F897B7B12DE6884869C7F}, /* key */ -- {B6163F9C87D61D02E76A49AE9CA25CD8}, /* nonce */ -- {AA0DAACB1058AB231B3E1C64967D0BEA0EAEB1F362A8F4DDC3AB2F21}, /* aad */ -- {9B82880AB15863770A7AC32D9C8BCF62EDFE65C4FAD1}, /* pText */ -- {C35C66E06BB57E5A8AF89C9ACB6B77E2AB988CAA8651}, /* cText */ -- {5087D4143F8BAA7DD228AB487EECB8E6} /* mac */ 090 => (Key => +"<KEY>", Nonce => +"ACF76F2DF707863EA93984F5E0845D09", Aad => +"281F54E30C7646F3DF22F9EE44D0E2FE5C", Plaintext => +"DD2405532A23DB81D81FAA0BD90FB3E27E93AED6E2", Cipher => +"BA592911830DD10B80F825211D2CE8E58F03E506CB", MAC => +"1431CE688473357AB23087B56B44"), -- /* ---------- KAT vector # 90 ------------- */ -- { 128, 21, 17, 112, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {E232500C744DB7DC0B7714914ADD64E8}, /* key */ -- {ACF76F2DF707863EA93984F5E0845D09}, /* nonce */ -- {281F54E30C7646F3DF22F9EE44D0E2FE5C}, /* aad */ -- {DD2405532A23DB81D81FAA0BD90FB3E27E93AED6E2}, /* pText */ -- {BA592911830DD10B80F825211D2CE8E58F03E506CB}, /* cText */ -- {1431CE688473357AB23087B56B44} /* mac */ 091 => (Key => +"8704382288A44C443CF1F1F69BED8794", Nonce => +"D8CE4197B2A3320C5549D03BD0167439", Aad => +"5830392C2CC181C2C4676F9409", Plaintext => +"572D7DB9F26B4CC4A4D6FB2FF7C0F5EAE8BB2B56", Cipher => +"49D8AC7D0F109BCF4F38AD39F150EB8B79252140", MAC => +"E920DCACBCD8820A3216B0741242"), -- /* ---------- KAT vector # 91 ------------- */ -- { 128, 20, 13, 112, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {8704382288A44C443CF1F1F69BED8794}, /* key */ -- {D8CE4197B2A3320C5549D03BD0167439}, /* nonce */ -- {5830392C2CC181C2C4676F9409}, /* aad */ -- {572D7DB9F26B4CC4A4D6FB2FF7C0F5EAE8BB2B56}, /* pText */ -- {49D8AC7D0F109BCF4F38AD39F150EB8B79252140}, /* cText */ -- {E920DCACBCD8820A3216B0741242} /* mac */ 092 => (Key => +"DE0F54DFA5E7B0A8C72F0D7F426894BBED2E0427E120549DE4352578C48925C5", Nonce => +"AD7853126C9AD81FD63AEBD488E4DF25", Aad => +"598A0C68B1BAEDE6BAC879E6B3E4ED23F7F242C5ECFE0F421960FCE194BE8241C227ECAB", Plaintext => +"63E84C5AA2EB906E62259F52B412053139634E", Cipher => +"47DAB06C87CDEC0C0CD1D2964C36516056781F", MAC => +"A4EB6C73F503FAF111DA6718"), -- /* ---------- KAT vector # 92 ------------- */ -- { 256, 19, 36, 96, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {DE0F54DFA5E7B0A8C72F0D7F426894BBED2E0427E120549DE4352578C48925C5}, /* key */ -- {AD7853126C9AD81FD63AEBD488E4DF25}, /* nonce */ -- {598A0C68B1BAEDE6BAC879E6B3E4ED23F7F242C5ECFE0F421960FCE194BE8241C227ECAB}, /* aad */ -- {63E84C5AA2EB906E62259F52B412053139634E}, /* pText */ -- {47DAB06C87CDEC0C0CD1D2964C36516056781F}, /* cText */ -- {A4EB6C73F503FAF111DA6718} /* mac */ 093 => (Key => +"<KEY>DE32AC5E1B63ED751E", Nonce => +"CC68F19671A2CDFB9AAAA1629062EFAC", Aad => +"4B5F375E4DD6E6B0FA9362AD90", Plaintext => +"84C457F44B3C7E3BC9DDA127E667ABFA2A10", Cipher => +"8EEF3D0D82880C58E3B15FFCC8D2D3873763", MAC => +"37A21C9C38F279827BD0"), -- /* ---------- KAT vector # 93 ------------- */ -- { 256, 18, 13, 80, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {59781BD0B43CCAD97AD200196C885E086A0E3F83BF8D78DE32AC5E1B63ED751E}, /* key */ -- {<KEY>}, /* nonce */ -- {4B5F375E4DD6E6B0FA9362AD90}, /* aad */ -- {84C457F44B3C7E3BC9DDA127E667ABFA2A10}, /* pText */ -- {8EEF3D0D82880C58E3B15FFCC8D2D3873763}, /* cText */ -- {37A21C9C38F279827BD0} /* mac */ 094 => (Key => +"73B7F64BCC3388C59CE35C6156CB7C3F591E009A751D8336", Nonce => +"359A58A47AEA89BA2D11A46EABD65AD0", Aad => +"E78E8314163143139C7F513AAA6C52", Plaintext => +"3297BFA0ACC9992D09EC3879591A86C959", Cipher => +"<KEY>", MAC => +"DA94D476B9FEF72126492377333116D9"), -- /* ---------- KAT vector # 94 ------------- */ -- { 192, 17, 15, 128, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {73B7F64BCC3388C59CE35C6156CB7C3F591E009A751D8336}, /* key */ -- {359A58A47AEA89BA2D11A46EABD65AD0}, /* nonce */ -- {E78E8314163143139C7F513AAA6C52}, /* aad */ -- {3297BFA0ACC9992D09EC3879591A86C959}, /* pText */ -- {C4A4A642C99BD5933BF858DE1299135C82}, /* cText */ -- {DA94D476B9FEF72126492377333116D9} /* mac */ 095 => (Key => +"4777F2E65291120876A3363283797BE084B313B4320FABC8FE8DEF51D329A912", Nonce => +"2F1B91DF52C1EE9CF9EB1A2D9FFCD563", Aad => +"380547BB6748F4", Plaintext => +"BDA7ED5B583620681F1E9745B1D111A1", Cipher => +"047633A43F57C12BFA3979E9A55D2F7E", MAC => +"81A64CA44BB116B3F81D73DD"), -- /* ---------- KAT vector # 95 ------------- */ -- { 256, 16, 7, 96, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {4777F2E65291120876A3363283797BE084B313B4320FABC8FE8DEF51D329A912}, /* key */ -- {<KEY>}, /* nonce */ -- {380547BB6748F4}, /* aad */ -- {BDA7ED5B583620681F1E9745B1D111A1}, /* pText */ -- {047633A43F57C12BFA3979E9A55D2F7E}, /* cText */ -- {81A64CA44BB116B3F81D73DD} /* mac */ 096 => (Key => +"2DD007C77AB2DC9F077B91C<KEY>", Nonce => +"AB63C887817C5FE47255DB22B745A747", Aad => +"8B1FDDDAD191EDEB84F6BA8962A178CD2D520D963CBA3F284E6FD02A753B6CBC644D44BC", Plaintext => +"17748D50E01BD328F163603E1CFEDA", Cipher => +"CCCDBFC59CE3E81E2ACF8239A7E2D8", MAC => +"8E8256021773CE60"), -- /* ---------- KAT vector # 96 ------------- */ -- { 256, 15, 36, 64, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {2DD007C77AB2DC9F077B91C4E520EDCCFD716367D1588B796ABDCC8B3A98F162}, /* key */ -- {AB63C887817C5FE47255DB22B745A747}, /* nonce */ -- {8B1FDDDAD191EDEB84F6BA8962A178CD2D520D963CBA3F284E6FD02A753B6CBC644D44BC}, /* aad */ -- {17748D50E01BD328F163603E1CFEDA}, /* pText */ -- {CCCDBFC59CE3E81E2ACF8239A7E2D8}, /* cText */ -- {8E8256021773CE60} /* mac */ 097 => (Key => +"6E4ABB68DE51E2967A02D1B26486849E", Nonce => +"D299367BB38E7BDA3983962C5BD69808", Aad => +"083517DA92C9D402BE5DEF4CA0", Plaintext => +"46DEC6B2AC63EF533C4DCFAC420E", Cipher => +"AEE95477E6E2A1C45D5106F0CCFA", MAC => +"421D63B4AE3B5C22AF0F"), -- /* ---------- KAT vector # 97 ------------- */ -- { 128, 14, 13, 80, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {6E4ABB68DE51E2967A02D1B26486849E}, /* key */ -- {<KEY>}, /* nonce */ -- {083517DA92C9D402BE5DEF4CA0}, /* aad */ -- {46DEC6B2AC63EF533C4DCFAC420E}, /* pText */ -- {AEE95477E6E2A1C45D5106F0CCFA}, /* cText */ -- {421D63B4AE3B5C22AF0F} /* mac */ 098 => (Key => +"C1BEACD96B70FC71754F6050BE195BBA09FFE8ECACBFF14F1FF0AA13C6AFF233", Nonce => +"6722AA28ACC2BAB554D0B035D7A5625E", Aad => +"483A32E47B50D34A1C005D1866B3758483F487B1E7", Plaintext => +"8073DC3555F9B32BD62402E368", Cipher => +"345A18EF7E2FE9149952461FC2", MAC => +"3A9EEC20704B1A07093F9F8453C6"), -- /* ---------- KAT vector # 98 ------------- */ -- { 256, 13, 21, 112, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {C1BEACD96B70FC71754F6050BE195BBA09FFE8ECACBFF14F1FF0AA13C6AFF233}, /* key */ -- {<KEY>}, /* nonce */ -- {483A32E47B50D34A1C005D1866B3758483F487B1E7}, /* aad */ -- {8073DC3555F9B32BD62402E368}, /* pText */ -- {345A18EF7E2FE9149952461FC2}, /* cText */ -- {3A9EEC20704B1A07093F9F8453C6} /* mac */ 099 => (Key => +"13DEDB0E5E42F6F47A495C4B1ACF00E6", Nonce => +"98E09E79D204F9F4C605205A8B507374", Aad => +"<KEY>", Plaintext => +"46A3EAF84B708750A0CA085A", Cipher => +"D3BFEB378F35EDD3D4C97DDB", MAC => +"18509CB74673005B"), -- /* ---------- KAT vector # 99 ------------- */ -- { 128, 12, 35, 64, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {13DEDB0E5E42F6F47A495C4B1ACF00E6}, /* key */ -- {98E09E79D204F9F4C605205A8B507374}, /* nonce */ -- {3EF9FD71E67FA705E67897BBCD1DD1F17A2C16657F2FAE9FFB32C4D517F51866497507}, /* aad */ -- {46A3EAF84B708750A0CA085A}, /* pText */ -- {D3BFEB378F35EDD3D4C97DDB}, /* cText */ -- {18509CB74673005B} /* mac */ 100 => (Key => +"F988B24ABF5F7FA5C430AB2C89399DA2A8337CEDA38A0B2D", Nonce => +"513B665A6955E67E732DE1745131A740", Aad => +"7FE8510B5C6003", Plaintext => +"10AA0DA40F053847960282", Cipher => +"87A51CABF6D69E1C3A1E2A", MAC => +"14A961B4653B42EFE4EC9B97E9B2"), -- /* ---------- KAT vector #100 ------------- */ -- { 192, 11, 7, 112, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {F988B24ABF5F7FA5C430AB2C89399DA2A8337CEDA38A0B2D}, /* key */ -- {513B665A6955E67E732DE1745131A740}, /* nonce */ -- {7FE8510B5C6003}, /* aad */ -- {10AA0DA40F053847960282}, /* pText */ -- {87A51CABF6D69E1C3A1E2A}, /* cText */ -- {14A961B4653B42EFE4EC9B97E9B2} /* mac */ 101 => (Key => +"<KEY>FEF6C410B933", Nonce => +"A293E2769F8F63123137E5F4637E7772", Aad => +"C5B51FBF9BD05B99FFA80D", Plaintext => +"3F8A5F9D0CBCE5B077BF", Cipher => +"509E1E8EC4C76FEB4098", MAC => +"6114F6B79BB098E8A98385CF4D829B59"), -- /* ---------- KAT vector #101 ------------- */ -- { 192, 10, 11, 128, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {1909149433E377582BD3F7F12915637C9FA8FEF6C410B933}, /* key */ -- {A293E2769F8F63123137E5F4637E7772}, /* nonce */ -- {C5B51FBF9BD05B99FFA80D}, /* aad */ -- {3F8A5F9D0CBCE5B077BF}, /* pText */ -- {509E1E8EC4C76FEB4098}, /* cText */ -- {6114F6B79BB098E8A98385CF4D829B59} /* mac */ 102 => (Key => +"126332E989D53F6F6769C775E7113152FFCA100DA2C82EC0", Nonce => +"9696100F0FD06682A6DD93A069909AC7", Aad => +"10A05AB98E05CD4568E3E028523ECD3EC11E2930", Plaintext => +"B504A1F9BD67CBB8DD", Cipher => +"7256B20AAAFB16BA38", MAC => +"118F716E43D00BDAE9AFDC0F"), -- /* ---------- KAT vector #102 ------------- */ -- { 192, 9, 20, 96, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {126332E989D53F6F6769C775E7113152FFCA100DA2C82EC0}, /* key */ -- {9696100F0FD06682A6DD93A069909AC7}, /* nonce */ -- {10A05AB98E05CD4568E3E028523ECD3EC11E2930}, /* aad */ -- {B504A1F9BD67CBB8DD}, /* pText */ -- {7256B20AAAFB16BA38}, /* cText */ -- {118F716E43D00BDAE9AFDC0F} /* mac */ 103 => (Key => +"DD75BEB51B53EEED08AC80D3E0FA704B", Nonce => +"FCDDF1D4CF55B16F420E13A4B52053D3", Aad => +"E35A88C52F6FA408", Plaintext => +"EB0B39E76A5F8CBA", Cipher => +"85B7A130166ACC6B", MAC => +"29F76C513AFCDBC6E7E5C6B6A6420A1B"), -- /* ---------- KAT vector #103 ------------- */ -- { 128, 8, 8, 128, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {DD75BEB51B53EEED08AC80D3E0FA704B}, /* key */ -- {FCDDF1D4CF55B16F420E13A4B52053D3}, /* nonce */ -- {E35A88C52F6FA408}, /* aad */ -- {EB0B39E76A5F8CBA}, /* pText */ -- {85B7A130166ACC6B}, /* cText */ -- {29F76C513AFCDBC6E7E5C6B6A6420A1B} /* mac */ 104 => (Key => +"F270DE3961E54188BB0D49DED2A5E82E816C15C84C107E05", Nonce => +"90A95F01B5D4BC13675961360334A1A7", Aad => +"94D059AE255C784C64BAD206A42BAD7707B99AFF1A", Plaintext => +"8E209A2039A17E", Cipher => +"7A4579A9696811", MAC => +"47990B62BED3C83EA2B6"), -- /* ---------- KAT vector #104 ------------- */ -- { 192, 7, 21, 80, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {F270DE3961E54188BB0D49DED2A5E82E816C15C84C107E05}, /* key */ -- {90A95F01B5D4BC13675961360334A1A7}, /* nonce */ -- {94D059AE255C784C64BAD206A42BAD7707B99AFF1A}, /* aad */ -- {8E209A2039A17E}, /* pText */ -- {7A4579A9696811}, /* cText */ -- {47990B62BED3C83EA2B6} /* mac */ 105 => (Key => +"54AF8506A4F1A65B5339826DA8E04972", Nonce => +"63A59E8A9264B83D396EAC78C7C45D86", Aad => +"A896CE9C5F82492782C04A4A49C9149E8EE0CB452E2F4D68451B5355D24D09", Plaintext => +"543E6311A84F", Cipher => +"81CF469366C9", MAC => +"2F39D88ED3833CFD68414C79B36E8BC6"), -- /* ---------- KAT vector #105 ------------- */ -- { 128, 6, 31, 128, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {54AF8506A4F1A65B5339826DA8E04972}, /* key */ -- {63A59E8A9264B83D396EAC78C7C45D86}, /* nonce */ -- {A896CE9C5F82492782C04A4A49C9149E8EE0CB452E2F4D68451B5355D24D09}, /* aad */ -- {543E6311A84F}, /* pText */ -- {81CF469366C9}, /* cText */ -- {2F39D88ED3833CFD68414C79B36E8BC6} /* mac */ 106 => (Key => +"1627CEFA4F74C4957CF50659586782E5B5FFF686E81127DE", Nonce => +"D3D66C3167197246095C24FCFA7B692F", Aad => +"87DB6A31BCA3D530FD3FB75C904764F031ED2E0DE783612314F9655786438638", Plaintext => +"1B56B3F6A6", Cipher => +"E37D4BE7FF", MAC => +"1F311997FA816EA6203DE44F"), -- /* ---------- KAT vector #106 ------------- */ -- { 192, 5, 32, 96, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {1627CEFA4F74C4957CF50659586782E5B5FFF686E81127DE}, /* key */ -- {D3D66C3167197246095C24FCFA7B692F}, /* nonce */ -- {87DB6A31BCA3D530FD3FB75C904764F031ED2E0DE783612314F9655786438638}, /* aad */ -- {1B56B3F6A6}, /* pText */ -- {E37D4BE7FF}, /* cText */ -- {1F311997FA816EA6203DE44F} /* mac */ 107 => (Key => +"FD9E8E6763E8100B1FE471B3776D3D25C2CC417E19948A30", Nonce => +"8C402951A2D5DEEDA95154D6B31A692D", Aad => +"C0", Plaintext => +"CF4DE662", Cipher => +"50DD13BB", MAC => +"1C17E4FCFEA262A516CC8EA6"), -- /* ---------- KAT vector #107 ------------- */ -- { 192, 4, 1, 96, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {FD9E8E6763E8100B1FE471B3776D3D25C2CC417E19948A30}, /* key */ -- {8C402951A2D5DEEDA95154D6B31A692D}, /* nonce */ -- {C0}, /* aad */ -- {CF4DE662}, /* pText */ -- {50DD13BB}, /* cText */ -- {1C17E4FCFEA262A516CC8EA6} /* mac */ 108 => (Key => +"<KEY>", Nonce => +"2E92AEDEC563738601C656AEF5D1A900", Aad => +"<KEY>", Plaintext => +"90984F", Cipher => +"6E847A", MAC => +"2E9656AA7FBF7EBB04FA47BE8234"), -- /* ---------- KAT vector #108 ------------- */ -- { 192, 3, 16, 112, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {<KEY>}, /* key */ -- {2E92AEDEC563738601C656AEF5D1A900}, /* nonce */ -- {15B231324B76078E2F5B9D55A1BDCB05}, /* aad */ -- {90984F}, /* pText */ -- {6E847A}, /* cText */ -- {2E9656AA7FBF7EBB04FA47BE8234} /* mac */ 109 => (Key => +"FD3F9D2709378BA6C96A6A4D9E98BA4390DA9F8CC4079474C2A5D56D5ABF4301", Nonce => +"582ED20AA730080285B13CE8482AB3CC", Aad => +"F9228DB1D5523C2702B6BAE3FDC1C7FC027D56C5226F922622801C118C17", Plaintext => +"B77D", Cipher => +"C538", MAC => +"2FFC6A093B69427AFC61F27D921FF0D4"), -- /* ---------- KAT vector #109 ------------- */ -- { 256, 2, 30, 128, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {FD3F9D2709378BA6C96A6A4D9E98BA4390DA9F8CC4079474C2A5D56D5ABF4301}, /* key */ -- {582ED20AA730080285B13CE8482AB3CC}, /* nonce */ -- {F9228DB1D5523C2702B6BAE3FDC1C7FC027D56C5226F922622801C118C17}, /* aad */ -- {B77D}, /* pText */ -- {C538}, /* cText */ -- {2FFC6A093B69427AFC61F27D921FF0D4} /* mac */ 110 => (Key => +"B494514B6A88CA866447A3AA95A89017DFF3F8A4600D7FA5", Nonce => +"94387FE8C31F0D6792B4B35E180D18FC", Aad => +"7BD8CDAC868EFEC2E30D667AD2EAB875A8743BBDDB4A19CCCCDA222552A724AA", Plaintext => +"E8", Cipher => +"EF", MAC => +"B07A5B9C5D655DC3"), -- /* ---------- KAT vector #110 ------------- */ -- { 192, 1, 32, 64, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {B494514B6A88CA866447A3AA95A89017DFF3F8A4600D7FA5}, /* key */ -- {94387FE8C31F0D6792B4B35E180D18FC}, /* nonce */ -- {7BD8CDAC868EFEC2E30D667AD2EAB875A8743BBDDB4A19CCCCDA222552A724AA}, /* aad */ -- {E8}, /* pText */ -- {EF}, /* cText */ -- {B07A5B9C5D655DC3} /* mac */ 111 => (Key => +"6A0F8A3D2AB88008E49F14C095AB7E64", Nonce => +"5898CB44974E43A9949E18D4AC68F682", Aad => +"F03E964C531EC6179CF13833E4A396", Plaintext => +"", Cipher => +"", MAC => +"FB97D058527921B1754A58CB5991D5F3"), -- /* ---------- KAT vector #111 ------------- */ -- { 128, 0, 15, 128, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {6A0F8A3D2AB88008E49F14C095AB7E64}, /* key */ -- {5898CB44974E43A9949E18D4AC68F682}, /* nonce */ -- {F03E964C531EC6179CF13833E4A396}, /* aad */ -- {}, /* pText */ -- {}, /* cText */ -- {FB97D058527921B1754A58CB5991D5F3} /* mac */ 112 => (Key => +"<KEY>", Nonce => +"EC08BAA3A58E59BAA4D539B255855B64", Aad => +"5891803373E7F4238FB3A6C50FDC1EFAD9BEAE1A8352EECFD875DF", Plaintext => +"5D14B4BFCDED158799041B37101B099EDD7BA05008C42078401F896C2708DEE456C49E2D", Cipher => +"672B685D93EB656D7B626FBE623F616F5F9BF7DCACCB02B1CAFA3E8ACCFA1DE04F8C2763", MAC => +"F374DC548AAF4C82BD0DB937"), -- /* ---------- KAT vector #112 ------------- */ -- { 256, 36, 27, 96, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {43E917FBB601237761CB4723A6CF9ECDB2CAEFFDE7BF6118FFF9A4A1637B4846}, /* key */ -- {EC08BAA3A58E59BAA4D539B255855B64}, /* nonce */ -- {5891803373E7F4238FB3A6C50FDC1EFAD9BEAE1A8352EECFD875DF}, /* aad */ -- {5D14B4BFCDED158799041B37101B099EDD7BA05008C42078401F896C2708DEE456C49E2D}, /* pText */ -- {672B685D93EB656D7B626FBE623F616F5F9BF7DCACCB02B1CAFA3E8ACCFA1DE04F8C2763}, /* cText */ -- {F374DC548AAF4C82BD0DB937} /* mac */ 113 => (Key => +"4690D308E3936FEB2907ADD6D1A774F7BD7A12799A8F084B", Nonce => +"0FE51FC9846DC2EEAA91DBD017F9A674", Aad => +"9D23A99CCA97BB8E7EC2", Plaintext => +"5E83065E843B3073CE72CFC47992E577208984E7E759109ABCE19A988DF11F29193B89", Cipher => +"40EA6094E532EB257DC9ADD7EB28FF6C54B2DD194D212A0DF8F8434254A19C70EEFB9A", MAC => +"B49E9593B2A3B8D3EEE2A061"), -- /* ---------- KAT vector #113 ------------- */ -- { 192, 35, 10, 96, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {4690D308E3936FEB2907ADD6D1A774F7BD7A12799A8F084B}, /* key */ -- {0FE51FC9846DC2EEAA91DBD017F9A674}, /* nonce */ -- {9D23A99CCA97BB8E7EC2}, /* aad */ -- {5E83065E843B3073CE72CFC47992E577208984E7E759109ABCE19A988DF11F29193B89}, /* pText */ -- {40EA6094E532EB257DC9ADD7EB28FF6C54B2DD194D212A0DF8F8434254A19C70EEFB9A}, /* cText */ -- {B49E9593B2A3B8D3EEE2A061} /* mac */ 114 => (Key => +"<KEY>", Nonce => +"52F8830788ED3055DC2BE6B2910DD345", Aad => +"5B53697418A3DD26559D439A4B5E83B5D3BA6B47656A6A18C18A6E7BA801F669096B", Plaintext => +"587F1426DC3951CB49DE28AFCC4FCBDAA5729085544C0ED2B22688D0F1DF80ED7D0E", Cipher => +"F1693DCA7660EB2A5A0365366EF109684B9FD06E7A675AFF06D16E54B45AC81F8CB3", MAC => +"CB40C5D4D69A335A"), -- /* ---------- KAT vector #114 ------------- */ -- { 192, 34, 34, 64, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {<KEY>}, /* key */ -- {52F8830788ED3055DC2BE6B2910DD345}, /* nonce */ -- {5B53697418A3DD26559D439A4B5E83B5D3BA6B47656A6A18C18A6E7BA801F669096B}, /* aad */ -- {587F1426DC3951CB49DE28AFCC4FCBDAA5729085544C0ED2B22688D0F1DF80ED7D0E}, /* pText */ -- {F1693DCA7660EB2A5A0365366EF109684B9FD06E7A675AFF06D16E54B45AC81F8CB3}, /* cText */ -- {CB40C5D4D69A335A} /* mac */ 115 => (Key => +"411DFA057B68DDDFAD8EDF55080D8FC8938060078D7F21BB62A96BC05057C1A7", Nonce => +"E85E3D454F57C5790D70A124C69583D6", Aad => +"9776", Plaintext => +"79DC0C7AE7BFD9EEFE515EF2EF6A519DFCF8A412B5CC2CDA5F505691A5BF815C77", Cipher => +"AA7FD27285BA1E6755E772404BB78585EAAD32F5AF726BD4BC8020EF2FEF2482EB", MAC => +"50086813ACC81197B3A1DE5D"), -- /* ---------- KAT vector #115 ------------- */ -- { 256, 33, 2, 96, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {411DFA057B68DDDFAD8EDF55080D8FC8938060078D7F21BB62A96BC05057C1A7}, /* key */ -- {E85E3D454F57C5790D70A124C69583D6}, /* nonce */ -- {9776}, /* aad */ -- {79DC0C7AE7BFD9EEFE515EF2EF6A519DFCF8A412B5CC2CDA5F505691A5BF815C77}, /* pText */ -- {AA7FD27285BA1E6755E772404BB78585EAAD32F5AF726BD4BC8020EF2FEF2482EB}, /* cText */ -- {50086813ACC81197B3A1DE5D} /* mac */ 116 => (Key => +"<KEY>", Nonce => +"B169AC11CABB3F44071EA191333D1909", Aad => +"9BCEF50325136AA41FC4E1FDC0A7D29D82466E", Plaintext => +"9566F1028EC394551DFADCFF1EF8897CB6FD9DEEFC19D24590CEC38F7A58C734", Cipher => +"61FC1C90EB594F79651B543D58FE96933D94E443E4B3CD5B33ABD3B8134AE938", MAC => +"EA72434E1488FC1618525EF4982211B8"), -- /* ---------- KAT vector #116 ------------- */ -- { 128, 32, 19, 128, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {86A7FECF39C0CBB5A594BD7CFE262A70}, /* key */ -- {B169AC11CABB3F44071EA191333D1909}, /* nonce */ -- {9BCEF50325136AA41FC4E1FDC0A7D29D82466E}, /* aad */ -- {9566F1028EC394551DFADCFF1EF8897CB6FD9DEEFC19D24590CEC38F7A58C734}, /* pText */ -- {61FC1C90EB594F79651B543D58FE96933D94E443E4B3CD5B33ABD3B8134AE938}, /* cText */ -- {EA72434E1488FC1618525EF4982211B8} /* mac */ 117 => (Key => +"<KEY>", Nonce => +"7FFBBDDB26B9B569891D01E06F7316FD", Aad => +"F632F9F5075CE1B4F54279DD9A768ADEBEEE01BF61C0", Plaintext => +"7759300C62202961F1228459F14916AF7B06EBE54F2369616BE3EB692A5F27", Cipher => +"B6142267E194FC75643B8FF86F2936DC48949F611CED442C14F626E2507722", MAC => +"36C10427ED060133"), -- /* ---------- KAT vector #117 ------------- */ -- { 192, 31, 22, 64, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {45C1BBB76B4F71772EB040BE6F394C3A4D7448C9D3127885}, /* key */ -- {<KEY>}, /* nonce */ -- {F632F9F5075CE1B4F54279DD9A768ADEBEEE01BF61C0}, /* aad */ -- {7759300C62202961F1228459F14916AF7B06EBE54F2369616BE3EB692A5F27}, /* pText */ -- {B6142267E194FC75643B8FF86F2936DC48949F611CED442C14F626E2507722}, /* cText */ -- {36C10427ED060133} /* mac */ 118 => (Key => +"7FDC30B377BFEF0C0081E1DFAAE56D9DA4EFE804DEF381F0", Nonce => +"4F6F91DC66A35E09B7FAFDA2DA1A25AF", Aad => +"<KEY>", Plaintext => +"BB7A47E22D1C7F90A7EF1F40E273C0187F0DEC3C600AB3AEE3873E5D0F5C", Cipher => +"0A74B2AF918553BBF0A69905253C57030217AC7F3E434ED4BB88CBF29097", MAC => +"FF49644295AF688ACDC7"), -- /* ---------- KAT vector #118 ------------- */ -- { 192, 30, 18, 80, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {7FDC30B377BFEF0C0081E1DFAAE56D9DA4EFE804DEF381F0}, /* key */ -- {<KEY>}, /* nonce */ -- {69E6D815CD4926189D62F2C7452A82B79DCF}, /* aad */ -- {BB7A47E22D1C7F90A7EF1F40E273C0187F0DEC3C600AB3AEE3873E5D0F5C}, /* pText */ -- {0A74B2AF918553BBF0A69905253C57030217AC7F3E434ED4BB88CBF29097}, /* cText */ -- {FF49644295AF688ACDC7} /* mac */ 119 => (Key => +"<KEY>", Nonce => +"60318EA0AFC87D079E5F4430ECDC53EE", Aad => +"3187DC896AD241F1", Plaintext => +"546AD1C611B88E390B5D28F56C671ACB6C3A479611C684E61FCB503F4D", Cipher => +"7F0E39CDA5BBF4EE39F9EE837638AC8A0EE1FBA66054C76C2273F1574A", MAC => +"F84E15D321ED6E6B6924E09880C6"), -- /* ---------- KAT vector #119 ------------- */ -- { 128, 29, 8, 112, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {<KEY>}, /* key */ -- {60318EA0AFC87D079E5F4430ECDC53EE}, /* nonce */ -- {3187DC896AD241F1}, /* aad */ -- {546AD1C611B88E390B5D28F56C671ACB6C3A479611C684E61FCB503F4D}, /* pText */ -- {7F0E39CDA5BBF4EE39F9EE837638AC8A0EE1FBA66054C76C2273F1574A}, /* cText */ -- {F84E15D321ED6E6B6924E09880C6} /* mac */ 120 => (Key => +"<KEY>", Nonce => +"2B0CCC67B6FE56CEE7DBD77F8D0CF10B", Aad => +"21B2A46F33D2877FEEE156C26297428BFCBDCF", Plaintext => +"D1B44F420611F4BCF916D3EF1D8E5DC71147BCC5AB0BA7281845A797", Cipher => +"D0FC67B5363E2947BE5FBDDDBC74D04C88FB3A7219E34E1179F6169F", MAC => +"5F812D88451B311C8B7DC318AE482AD6"), -- /* ---------- KAT vector #120 ------------- */ -- { 256, 28, 19, 128, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {ABFA283FAE1203D265E68F99359D7B584F2ACC77BD90234BAEFAA396A98581C6}, /* key */ -- {2B0CCC67B6FE56CEE7DBD77F8D0CF10B}, /* nonce */ -- {21B2A46F33D2877FEEE156C26297428BFCBDCF}, /* aad */ -- {D1B44F420611F4BCF916D3EF1D8E5DC71147BCC5AB0BA7281845A797}, /* pText */ -- {D0FC67B5363E2947BE5FBDDDBC74D04C88FB3A7219E34E1179F6169F}, /* cText */ -- {5F812D88451B311C8B7DC318AE482AD6} /* mac */ 121 => (Key => +"8ACE7522A4D25490E60A1C44C926B4F5AFC8A32F8760F468D180A93ADB2142D9", Nonce => +"40607D4DE54223C7B9182D64613126B8", Aad => +"1F394A1A", Plaintext => +"614FCC88EDE9048FD5EDA914CCD52493366EB2767FF229607CF26C", Cipher => +"F2C9F76813E2D14B6AD629D9862AF278432665921A2AAE76D0A013", MAC => +"46EA0E66B4A07A16F4D70E4997AC"), -- /* ---------- KAT vector #121 ------------- */ -- { 256, 27, 4, 112, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {8ACE7522A4D25490E60A1C44C926B4F5AFC8A32F8760F468D180A93ADB2142D9}, /* key */ -- {40607D4DE54223C7B9182D64613126B8}, /* nonce */ -- {1F394A1A}, /* aad */ -- {614FCC88EDE9048FD5EDA914CCD52493366EB2767FF229607CF26C}, /* pText */ -- {F2C9F76813E2D14B6AD629D9862AF278432665921A2AAE76D0A013}, /* cText */ -- {46EA0E66B4A07A16F4D70E4997AC} /* mac */ 122 => (Key => +"<KEY>", Nonce => +"FE43A7AFBBDDB97DBC69AA8CE91D120A", Aad => +"59E97EEB5E270AD6F8F4F60A0AAECB5DBB9F", Plaintext => +"<KEY>", Cipher => +"D<KEY>", MAC => +"5FE1688443F2291DDB42EB9BA571"), -- /* ---------- KAT vector #122 ------------- */ -- { 256, 26, 18, 112, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {C75B54850888351EA5493380E0DD4432C2CB92DFE28B98F5F1C9FFC0D16C824D}, /* key */ -- {FE43A7AFBBDDB97DBC69AA8CE91D120A}, /* nonce */ -- {59E97EEB5E270AD6F8F4F60A0AAECB5DBB9F}, /* aad */ -- {6D6B3FDFEA4E7DC9FE87A4CB2D4412C0D008F657327A8DBE40A6}, /* pText */ -- {D974C3D2670FDC7FEA1198A696C0A285B9E35363ABBF422B4C17}, /* cText */ -- {5FE1688443F2291DDB42EB9BA571} /* mac */ 123 => (Key => +"B7E88562E95A9DDCB88F12EA7BAB3723", Nonce => +"F466255513D3DE82FA9AC8735E047353", Aad => +"296CD0F3DBCF7B14B7D3073C7BD7", Plaintext => +"ACC68E7CED530596FC8AE8CBDC513A980D211ABDBCAF3CB82B", Cipher => +"1139479B870AA11B01BC5AB2CBE80B9217D1AE53D5B9EE31EF", MAC => +"7FED84FBB7E58C8057D3D9D40134"), -- /* ---------- KAT vector #123 ------------- */ -- { 128, 25, 14, 112, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {B7E88562E95A9DDCB88F12EA7BAB3723}, /* key */ -- {F466255513D3DE82FA9AC8735E047353}, /* nonce */ -- {296CD0F3DBCF7B14B7D3073C7BD7}, /* aad */ -- {ACC68E7CED530596FC8AE8CBDC513A980D211ABDBCAF3CB82B}, /* pText */ -- {1139479B870AA11B01BC5AB2CBE80B9217D1AE53D5B9EE31EF}, /* cText */ -- {7FED84FBB7E58C8057D3D9D40134} /* mac */ 124 => (Key => +"<KEY>", Nonce => +"82C57513991F9611450CE79FFA04A726", Aad => +"631CD974397CA0CB267DA4A972A77A179F", Plaintext => +"B6092555E58C9930A23157126B05A4204A0874546B6C24DE", Cipher => +"684DD901EF2E0273A3BACFBCAB7FCCA44D801D9E6B43567B", MAC => +"62C7BEB7CF3616A3"), -- /* ---------- KAT vector #124 ------------- */ -- { 128, 24, 17, 64, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {<KEY>}, /* key */ -- {82C57513991F9611450CE79FFA04A726}, /* nonce */ -- {631CD974397CA0CB267DA4A972A77A179F}, /* aad */ -- {B6092555E58C9930A23157126B05A4204A0874546B6C24DE}, /* pText */ -- {684DD901EF2E0273A3BACFBCAB7FCCA44D801D9E6B43567B}, /* cText */ -- {62C7BEB7CF3616A3} /* mac */ 125 => (Key => +"<KEY>", Nonce => +"C466CB83D0A1C5BCD11B9001E40A6C53", Aad => +"29CFFC294996FE72CFBB710BD527D84ABFC93B700004AB13DA62BF3883E0D2DCF5998A", Plaintext => +"4B537C0BE32F47C80C1BDCA44DD79FF6360212115F1FD6", Cipher => +"9B38F183F5C4B7C566DDC5D305C27BA473B71CAD03DB5B", MAC => +"4057714A463907C54C44"), -- /* ---------- KAT vector #125 ------------- */ -- { 256, 23, 35, 80, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {<KEY>}, /* key */ -- {C466CB83D0A1C5BCD11B9001E40A6C53}, /* nonce */ -- {29CFFC294996FE72CFBB710BD527D84ABFC93B700004AB13DA62BF3883E0D2DCF5998A}, /* aad */ -- {4B537C0BE32F47C80C1BDCA44DD79FF6360212115F1FD6}, /* pText */ -- {9B38F183F5C4B7C566DDC5D305C27BA473B71CAD03DB5B}, /* cText */ -- {4057714A463907C54C44} /* mac */ 126 => (Key => +"D9B85EE8344BA4BEDCEC61E9EFF96C82D297F12A58613D451BC2ECD1EDAB6AF3", Nonce => +"37ED99DC430C82407E13A06A204E4844", Aad => +"46E862A0E90A2ED0A963CFCE25", Plaintext => +"EE43EA57FB3135E68D5C3DBD0C5050B92CEC42471DC6", Cipher => +"2099EC6B8509A4C4946288278025417DDCC8341290E7", MAC => +"57EBDEFA54BB6E4C"), -- /* ---------- KAT vector #126 ------------- */ -- { 256, 22, 13, 64, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {D9B85EE8344BA4BEDCEC61E9EFF96C82D297F12A58613D451BC2ECD1EDAB6AF3}, /* key */ -- {37ED99DC430C82407E13A06A204E4844}, /* nonce */ -- {46E862A0E90A2ED0A963CFCE25}, /* aad */ -- {EE43EA57FB3135E68D5C3DBD0C5050B92CEC42471DC6}, /* pText */ -- {2099EC6B8509A4C4946288278025417DDCC8341290E7}, /* cText */ -- {57EBDEFA54BB6E4C} /* mac */ 127 => (Key => +"39A967359ECAAD5E8818CF43FA82820BA7C75D03B3ADFA23AAEC66A6DC4ABFF4", Nonce => +"243FEBDE84AF4E6A66E240CC0C7B4168", Aad => +"0045CFC6CFFB52F8347ADDFE29", Plaintext => +"5A63B18106F577C636195D9B5B491E0C4E20F46265", Cipher => +"FA5095D9947D2EFAFC759AEA5397D236767CABF844", MAC => +"B3CCCBE61042023BFBAD60900AE165DB"), -- /* ---------- KAT vector #127 ------------- */ -- { 256, 21, 13, 128, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {39A967359ECAAD5E8818CF43FA82820BA7C75D03B3ADFA23AAEC66A6DC4ABFF4}, /* key */ -- {243FEBDE84AF4E6A66E240CC0C7B4168}, /* nonce */ -- {0045CFC6CFFB52F8347ADDFE29}, /* aad */ -- {5A63B18106F577C636195D9B5B491E0C4E20F46265}, /* pText */ -- {FA5095D9947D2EFAFC759AEA5397D236767CABF844}, /* cText */ -- {B3CCCBE61042023BFBAD60900AE165DB} /* mac */ 128 => (Key => +"<KEY>", Nonce => +"E298FD9526ECBE6860087530CFF9563C", Aad => +"FE189C468DC559F69CBEED98E1170F9D06", Plaintext => +"49EBF4D461F8BD01DC9ABEA09DCC6F22A053FE14", Cipher => +"21AD74084B5B5C4BA3DB5CAF3FF20E56C2E5E3F5", MAC => +"E57EEF4D3E74B397D9A8DE5C1DF4"), -- /* ---------- KAT vector #128 ------------- */ -- { 256, 20, 17, 112, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {A704A56A052FD30C45D42F32EC1F89D5DFC6D4BADC00482B5833390039C19558}, /* key */ -- {E298FD9526ECBE6860087530CFF9563C}, /* nonce */ -- {FE189C468DC559F69CBEED98E1170F9D06}, /* aad */ -- {49EBF4D461F8BD01DC9ABEA09DCC6F22A053FE14}, /* pText */ -- {21AD74084B5B5C4BA3DB5CAF3FF20E56C2E5E3F5}, /* cText */ -- {E57EEF4D3E74B397D9A8DE5C1DF4} /* mac */ 129 => (Key => +"E67A52E352CDDFA6452D5A1B41777ACA", Nonce => +"D215075F50053861C9073BAFD82DAFDF", Aad => +"E16CC3ECB8", Plaintext => +"E09E938E88AAE90B1DB6865C266D632EE5657E", Cipher => +"B0DC76A29FC59D9B2D3127EEFCCA367688FEA0", MAC => +"5D78D5AB6D128C0EA824DA2302FC"), -- /* ---------- KAT vector #129 ------------- */ -- { 128, 19, 5, 112, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {E67A52E352CDDFA6452D5A1B41777ACA}, /* key */ -- {D215075F50053861C9073BAFD82DAFDF}, /* nonce */ -- {E16CC3ECB8}, /* aad */ -- {E09E938E88AAE90B1DB6865C266D632EE5657E}, /* pText */ -- {B0DC76A29FC59D9B2D3127EEFCCA367688FEA0}, /* cText */ -- {5D78D5AB6D128C0EA824DA2302FC} /* mac */ 130 => (Key => +"<KEY>", Nonce => +"61BDAA379173CA28F16AD07F36B3ACFD", Aad => +"<KEY>", Plaintext => +"D3A11B4F81BD4E955EAACEF58BE0E844D0F2", Cipher => +"4B09632E0A55F9F75CFD78160F02E630621E", MAC => +"81A6BFC566FCAD4BBF9FFF31"), -- /* ---------- KAT vector #130 ------------- */ -- { 192, 18, 28, 96, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {5B780CBD298B937BC65A6564FFAC718D875AC0AF58DC5992}, /* key */ -- {61BDAA379173CA28F16AD07F36B3ACFD}, /* nonce */ -- {8564BB20CCF109D97938F231311F1D2B75EF4474AB037C46F54E0866}, /* aad */ -- {D3A11B4F81BD4E955EAACEF58BE0E844D0F2}, /* pText */ -- {4B09632E0A55F9F75CFD78160F02E630621E}, /* cText */ -- {81A6BFC566FCAD4BBF9FFF31} /* mac */ 131 => (Key => +"2C680ABEE7AB5532D404EB1538D99F1E63CF98541B1A347651AD84C40CC4EC8A", Nonce => +"628BE31EA6FA1F56AAF7A9F135A6B8D3", Aad => +"DD9C16AE92B8BF", Plaintext => +"D99147BB82A9C0B957EB48E81616EEF42C", Cipher => +"FC9E233A1DFB99A28122EFB112DF4A7B0E", MAC => +"DD817FE66D676F11"), -- /* ---------- KAT vector #131 ------------- */ -- { 256, 17, 7, 64, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {2C680ABEE7AB5532D404EB1538D99F1E63CF98541B1A347651AD84C40CC4EC8A}, /* key */ -- {628BE31EA6FA1F56AAF7A9F135A6B8D3}, /* nonce */ -- {DD9C16AE92B8BF}, /* aad */ -- {D99147BB82A9C0B957EB48E81616EEF42C}, /* pText */ -- {FC9E233A1DFB99A28122EFB112DF4A7B0E}, /* cText */ -- {DD817FE66D676F11} /* mac */ 132 => (Key => +"<KEY>", Nonce => +"8DFF013D5E1449595F6352BFAA5DC47F", Aad => +"47", Plaintext => +"056C0969C24CB4BF45E7455D72C30C3B", Cipher => +"06A43E59A55906C1E7CAD556D2F25490", MAC => +"626BB9C24665442C89AAF615"), -- /* ---------- KAT vector #132 ------------- */ -- { 192, 16, 1, 96, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {2665F77FCD948FFDB6D85F4A91FCB5835819472364A2186E}, /* key */ -- {8DFF013D5E1449595F6352BFAA5DC47F}, /* nonce */ -- {47}, /* aad */ -- {056C0969C24CB4BF45E7455D72C30C3B}, /* pText */ -- {06A43E59A55906C1E7CAD556D2F25490}, /* cText */ -- {626BB9C24665442C89AAF615} /* mac */ 133 => (Key => +"<KEY>", Nonce => +"F39891C8B4780F0C9AC80A98D39DF52A", Aad => +"", Plaintext => +"1132A0185AB450ECDF978BFD0494DE", Cipher => +"0B59A9C7136171C4FDFF89B283E9F4", MAC => +"C51447A7310D1F7115E8"), -- /* ---------- KAT vector #133 ------------- */ -- { 256, 15, 0, 80, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {63D07BA4AA27C833D79BB2613256ABCAC1DD7FC275B65DBBA95ABFA7A0587D39}, /* key */ -- {F39891C8B4780F0C9AC80A98D39DF52A}, /* nonce */ -- {}, /* aad */ -- {1132A0185AB450ECDF978BFD0494DE}, /* pText */ -- {0B59A9C7136171C4FDFF89B283E9F4}, /* cText */ -- {C51447A7310D1F7115E8} /* mac */ 134 => (Key => +"9FA6BBADCE84266DD8EC82B50055CD36", Nonce => +"6CDF822054FD0D53FACA083B9FAC52E9", Aad => +"92C2502BF19E2EDED595162B3A644BB279", Plaintext => +"5E35B3E90A44B44D2230A9E788F4", Cipher => +"47226491B0D75BDB5204FB3D8A54", MAC => +"D65900E07EB6C4037A063BC505A88D1B"), -- /* ---------- KAT vector #134 ------------- */ -- { 128, 14, 17, 128, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {9FA6BBADCE84266DD8EC82B50055CD36}, /* key */ -- {6CDF822054FD0D53FACA083B9FAC52E9}, /* nonce */ -- {92C2502BF19E2EDED595162B3A644BB279}, /* aad */ -- {5E35B3E90A44B44D2230A9E788F4}, /* pText */ -- {47226491B0D75BDB5204FB3D8A54}, /* cText */ -- {D65900E07EB6C4037A063BC505A88D1B} /* mac */ 135 => (Key => +"6A34C1AF757FA301178B6A2177067F6B3EF45BCEF427F406D7DE3A593E8F5E6B", Nonce => +"41BF17267669B9784508995E6674FA0D", Aad => +"C32A81684C961BB5DBBA90923090780B7D45CACA96", Plaintext => +"AE1F5A48A0FDEA8301B2E86C0D", Cipher => +"20D26ADBF91C31DDF1EDB74C12", MAC => +"8A6A5B96FFF77E3EE4B4CF236686"), -- /* ---------- KAT vector #135 ------------- */ -- { 256, 13, 21, 112, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {6A34C1AF757FA301178B6A2177067F6B3EF45BCEF427F406D7DE3A593E8F5E6B}, /* key */ -- {41BF17267669B9784508995E6674FA0D}, /* nonce */ -- {C32A81684C961BB5DBBA90923090780B7D45CACA96}, /* aad */ -- {AE1F5A48A0FDEA8301B2E86C0D}, /* pText */ -- {20D26ADBF91C31DDF1EDB74C12}, /* cText */ -- {8A6A5B96FFF77E3EE4B4CF236686} /* mac */ 136 => (Key => +"4A10719F1AE4DCEFFF934FFCB2CBB343DB28CC2574EBD17FE088F3F211ADBCE9", Nonce => +"1FB62DBD78C8B24BBE87D22C4B65AFB7", Aad => +"BA5CE2DEAF3F85B35E6B08F8", Plaintext => +"D57025089EE6863C9C9255FC", Cipher => +"10D6540F88BF6AB3BD188E35", MAC => +"67B7A1D8C46462D64C2BF314"), -- /* ---------- KAT vector #136 ------------- */ -- { 256, 12, 12, 96, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {4A10719F1AE4DCEFFF934FFCB2CBB343DB28CC2574EBD17FE088F3F211ADBCE9}, /* key */ -- {1FB62DBD78C8B24BBE87D22C4B65AFB7}, /* nonce */ -- {BA5CE2DEAF3F85B35E6B08F8}, /* aad */ -- {D57025089EE6863C9C9255FC}, /* pText */ -- {10D6540F88BF6AB3BD188E35}, /* cText */ -- {67B7A1D8C46462D64C2BF314} /* mac */ 137 => (Key => +"41014462895EF445111CCAB9AE2D6E5EFA51112C61AABB6B", Nonce => +"00CB65ADBC0A32D02AB2F7F3ACC271B7", Aad => +"F18A70E17293CE2E9FAA9C5D8BFA93EFD33C51EA90A25342", Plaintext => +"DF12ADBFDB934368C6BD96", Cipher => +"48348162F5301478231420", MAC => +"B93AF190241D9FA68D99F8277BA984C8"), -- /* ---------- KAT vector #137 ------------- */ -- { 192, 11, 24, 128, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {41014462895EF445111CCAB9AE2D6E5EFA51112C61AABB6B}, /* key */ -- {00CB65ADBC0A32D02AB2F7F3ACC271B7}, /* nonce */ -- {F18A70E17293CE2E9FAA9C5D8BFA93EFD33C51EA90A25342}, /* aad */ -- {DF12ADBFDB934368C6BD96}, /* pText */ -- {48348162F5301478231420}, /* cText */ -- {B93AF190241D9FA68D99F8277BA984C8} /* mac */ 138 => (Key => +"898C516D69D0292D00C6235AC2F6AAFA2269DD0ABC475E4B", Nonce => +"3780A6FA92839675C9629C0D00BAD86B", Aad => +"0A301FAC45C8DA46A6", Plaintext => +"98B8B4430EA61644F15B", Cipher => +"A164878EF9AFFC0E59A0", MAC => +"73A26B07B74D8A01"), -- /* ---------- KAT vector #138 ------------- */ -- { 192, 10, 9, 64, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {898C516D69D0292D00C6235AC2F6AAFA2269DD0ABC475E4B}, /* key */ -- {3780A6FA92839675C9629C0D00BAD86B}, /* nonce */ -- {0A301FAC45C8DA46A6}, /* aad */ -- {98B8B4430EA61644F15B}, /* pText */ -- {A164878EF9AFFC0E59A0}, /* cText */ -- {73A26B07B74D8A01} /* mac */ 139 => (Key => +"<KEY>", Nonce => +"CDC66819FE73E0D04C09E8DDBEEB12FF", Aad => +"16B01666717AFBD809F93C1671FAD9780813E7808F4F", Plaintext => +"1EAA642432C0E6CA85", Cipher => +"11BC09C339D37D69A1", MAC => +"EA2E294AEA7FFC7700DB1BEFB51BF4E2"), -- /* ---------- KAT vector #139 ------------- */ -- { 256, 9, 22, 128, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {<KEY>}, /* key */ -- {CDC66819FE73E0D04C09E8DDBEEB12FF}, /* nonce */ -- {16B01666717AFBD809F93C1671FAD9780813E7808F4F}, /* aad */ -- {1EAA642432C0E6CA85}, /* pText */ -- {11BC09C339D37D69A1}, /* cText */ -- {EA2E294AEA7FFC7700DB1BEFB51BF4E2} /* mac */ 140 => (Key => +"<KEY>", Nonce => +"3CF74511FCCF7B018454EBEC8D169378", Aad => +"5C07A2E84F7DE6C99E1E3CACF58B6C94DA9E233E839766F1129B8537C2DAD0", Plaintext => +"100A08EF97044988", Cipher => +"5F41B20FF9A56062", MAC => +"193BB5985514C6B5"), -- /* ---------- KAT vector #140 ------------- */ -- { 256, 8, 31, 64, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {<KEY>}, /* key */ -- {<KEY>}, /* nonce */ -- {5C07A2E84F7DE6C99E1E3CACF58B6C94DA9E233E839766F1129B8537C2DAD0}, /* aad */ -- {100A08EF97044988}, /* pText */ -- {5F41B20FF9A56062}, /* cText */ -- {193BB5985514C6B5} /* mac */ 141 => (Key => +"8944A4BFA2DE920F1757B572B3DE0A0005DC42E44B375AE631747F1596E7C309", Nonce => +"<KEY>", Aad => +"235EC6EEDB4C4B8A659AB69A05602C9B39D73B2A267C52", Plaintext => +"339AF683DE5807", Cipher => +"A3BE30466C2C7A", MAC => +"18CE7A5770E793E7C5705183A2A1"), -- /* ---------- KAT vector #141 ------------- */ -- { 256, 7, 23, 112, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {8944A4BFA2DE920F1757B572B3DE0A0005DC42E44B375AE631747F1596E7C309}, /* key */ -- {<KEY>}, /* nonce */ -- {235EC6EEDB4C4B8A659AB69A05602C9B39D73B2A267C52}, /* aad */ -- {339AF683DE5807}, /* pText */ -- {A3BE30466C2C7A}, /* cText */ -- {18CE7A5770E793E7C5705183A2A1} /* mac */ 142 => (Key => +"24F5A9B82CE0771C5DCF1354FE1D0549DA047B9F91467DE9", Nonce => +"6479196B5DEF28357CE8D5A227631DC4", Aad => +"D03DDCBFA4A7D7EDE067E021961A89A42681", Plaintext => +"144021C19226", Cipher => +"E2CBC9498E99", MAC => +"CA0DF05B89C2B4738BB0"), -- /* ---------- KAT vector #142 ------------- */ -- { 192, 6, 18, 80, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {24F5A9B82CE0771C5DCF1354FE1D0549DA047B9F91467DE9}, /* key */ -- {6479196B5DEF28357CE8D5A227631DC4}, /* nonce */ -- {D03DDCBFA4A7D7EDE067E021961A89A42681}, /* aad */ -- {144021C19226}, /* pText */ -- {E2CBC9498E99}, /* cText */ -- {CA0DF05B89C2B4738BB0} /* mac */ 143 => (Key => +"3AD70FA544E2D87774D3B40F8E218E77", Nonce => +"FC1CED7FA78179D346A9D4CAF453FAD9", Aad => +"44D368434A", Plaintext => +"471CE3B567", Cipher => +"8982A1F4F7", MAC => +"60A7ACBFE8404C93526E9AF4"), -- /* ---------- KAT vector #143 ------------- */ -- { 128, 5, 5, 96, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {3AD70FA544E2D87774D3B40F8E218E77}, /* key */ -- {FC1CED7FA78179D346A9D4CAF453FAD9}, /* nonce */ -- {44D368434A}, /* aad */ -- {471CE3B567}, /* pText */ -- {8982A1F4F7}, /* cText */ -- {60A7ACBFE8404C93526E9AF4} /* mac */ 144 => (Key => +"6C33950A842FCEA9BA9925182646C3E24D1843BE0C50C9EB", Nonce => +"E89486477A09A73AFC545E36AA7470E7", Aad => +"42E4EF64F952EAD37A", Plaintext => +"5E43CEF6", Cipher => +"B4A9684F", MAC => +"26C206D1CAC2BE38D8C6DA21"), -- /* ---------- KAT vector #144 ------------- */ -- { 192, 4, 9, 96, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {6C33950A842FCEA9BA9925182646C3E24D1843BE0C50C9EB}, /* key */ -- {E89486477A09A73AFC545E36AA7470E7}, /* nonce */ -- {42E4EF64F952EAD37A}, /* aad */ -- {5E43CEF6}, /* pText */ -- {B4A9684F}, /* cText */ -- {26C206D1CAC2BE38D8C6DA21} /* mac */ 145 => (Key => +"<KEY>", Nonce => +"8D0CFE1AADF1FB3A2B9DC73FBC60FE90", Aad => +"5BE6352037BE28EF14C45A8F3B45", Plaintext => +"2819EB", Cipher => +"7695A4", MAC => +"4D4544C35A6365020F63"), -- /* ---------- KAT vector #145 ------------- */ -- { 256, 3, 14, 80, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {<KEY>}, /* key */ -- {8D0CFE1AADF1FB3A2B9DC73FBC60FE90}, /* nonce */ -- {5BE6352037BE28EF14C45A8F3B45}, /* aad */ -- {2819EB}, /* pText */ -- {7695A4}, /* cText */ -- {4D4544C35A6365020F63} /* mac */ 146 => (Key => +"BAADB11CE6976D6C9EEB0D23C6866DED37E8B33AFC7742AB94232566A62AEF23", Nonce => +"57CAC744E915C156470BB92597A51448", Aad => +"76CE70A8F795099BF25E807FDDB4FF716E8F", Plaintext => +"0D7C", Cipher => +"AF3A", MAC => +"2BE8BBA78691320EDA72"), -- /* ---------- KAT vector #146 ------------- */ -- { 256, 2, 18, 80, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {BAADB11CE6976D6C9EEB0D23C6866DED37E8B33AFC7742AB94232566A62AEF23}, /* key */ -- {57CAC744E915C156470BB92597A51448}, /* nonce */ -- {76CE70A8F795099BF25E807FDDB4FF716E8F}, /* aad */ -- {0D7C}, /* pText */ -- {AF3A}, /* cText */ -- {2BE8BBA78691320EDA72} /* mac */ 147 => (Key => +"DB7DE65C348BB0A7D6A0EB4E4D478C8844756B76D36A1EDB4F29FFE93D54FEC6", Nonce => +"3A2C40E26076CCFD00FC28B56B480F1E", Aad => +"1B6DA1EF4C10C02350C125233476A6DA98039FDD698740", Plaintext => +"E9", Cipher => +"42", MAC => +"6EC468CDAD581A91"), -- /* ---------- KAT vector #147 ------------- */ -- { 256, 1, 23, 64, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {DB7DE65C348BB0A7D6A0EB4E4D478C8844756B76D36A1EDB4F29FFE93D54FEC6}, /* key */ -- {<KEY>}, /* nonce */ -- {1B6DA1EF4C10C02350C125233476A6DA98039FDD698740}, /* aad */ -- {E9}, /* pText */ -- {42}, /* cText */ -- {6EC468CDAD581A91} /* mac */ 148 => (Key => +"3F78A3ACA524E1AA5D56346AA8F89029", Nonce => +"034597E0B64AE8BB312EDCEB34D3E394", Aad => +"D434E2D1E419", Plaintext => +"", Cipher => +"", MAC => +"1FCD00E69D850635"), -- /* ---------- KAT vector #148 ------------- */ -- { 128, 0, 6, 64, 128, /* keySize, msgLen, aadLen, macSize, nonceSize */ -- {3F78A3ACA524E1AA5D56346AA8F89029}, /* key */ -- {034597E0B64AE8BB312EDCEB34D3E394}, /* nonce */ -- {D434E2D1E419}, /* aad */ -- {}, /* pText */ -- {}, /* cText */ -- {1FCD00E69D850635} /* mac */ -- -- Following are the test vectors from the orginal paper -- -- "Phelix - Fast Encryption and Authentication in a Single Cryptographic Primitive" -- 149 => (Key => +"", Nonce => +"00000000000000000000000000000000", Aad => +"", Plaintext => +"00000000000000000000", Cipher => +"D52D45C605FD7A67748D", MAC => +"EF7BFE7AEBDC<KEY>"), -- Initial Key: <empty string> -- Nonce: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 -- AAD: <empty string> -- Plaintext: 00 00 00 00 00 00 00 00 00 00 -- Ciphertext: D5 2D 45 C6 05 FD 7A 67 74 8D -- MAC: EF 7B FE 7A EB DC 1A 8B 43 36 2F 28 93 80 0D BC 150 => (Key => +"0000000001000000020000000300000004000000050000000600000007000000", Nonce => +"00000001010000010200000103000001", Aad => +"", Plaintext => +"000102030102030402030405030405060405060705060708060708090708090A", Cipher => +"B5FC4BF5BC640A56003D596D334BA594A5487B4E308EDB05A7D62F234514024A", MAC => +"DB0C22C466BDCDE4E32903F79AE542D1"), -- Initial Key: 00 00 00 00 01 00 00 00 02 00 00 00 03 00 00 00 04 00 00 00 05 00 00 00 06 00 00 00 07 00 00 00 -- Nonce: 00 00 00 01 01 00 00 01 02 00 00 01 03 00 00 01 -- AAD: <empty string> -- Plaintext: 00 01 02 03 01 02 03 04 02 03 04 05 03 04 05 06 04 05 06 07 05 06 07 08 06 07 08 09 07 08 09 0A -- Ciphertext: B5 FC 4B F5 BC 64 0A 56 00 3D 59 6D 33 4B A5 94 A5 48 7B 4E 30 8E DB 05 A7 D6 2F 23 45 14 02 4A -- MAC: DB 0C 22 C4 66 BD CD E4 E3 29 03 F7 9A E5 42 D1 151 => (Key => +"01020304050607080807060504030201", Nonce => +"04000000050000000600000007000000", Aad => +"", Plaintext => +"", Cipher => +"", MAC => +"BEAFD3BD00BE4417"), -- Initial Key: 01 02 03 04 05 06 07 08 08 07 06 05 04 03 02 01 -- Nonce: 04 00 00 00 05 00 00 00 06 00 00 00 07 00 00 00 -- AAD: <empty string> -- Plaintext: <empty string> -- Ciphertext: <empty string> -- MAC: BE AF D3 BD 00 BE 44 17 152 => (Key => +"0907050301", Nonce => +"08070605040302010001020304050607", Aad => +"000204060103050708", Plaintext => +"000102030102030402030405FF", Cipher => +"F10D3E067A32B1BEDAA5898BDE", MAC => +"60A231C1C9F5E4EF40AA0A1C") -- Initial Key: 09 07 05 03 01 -- Nonce: 08 07 06 05 04 03 02 01 00 01 02 03 04 05 06 07 -- AAD: 00 02 04 06 01 03 05 07 08 -- Plaintext: 00 01 02 03 01 02 03 04 02 03 04 05 FF -- Ciphertext: F1 0D 3E 06 7A 32 B1 BE DA A5 89 8B DE -- MAC: 60 A2 31 C1 C9 F5 E4 EF 40 AA 0A 1C ); end Saatana.Crypto.Phelix.Test_Vectors;
Routing/Route tracks to template.applescript
bsmith96/Qlab-Scripts
1
2908
-- @description Route tracks to template -- @author <NAME> -- @link bensmithsound.uk -- @version 2.1 -- @testedmacos 10.14.6 -- @testedqlab 4.6.10 -- @about Routes the selected audio track/s the same as a selected template cue -- @separateprocess TRUE -- @changelog -- v2.1 + will now correctly route audio if it is ganged differently to the routing option -- v2.0 + moved common functions to external script -- v1.4 + works with videos as well -- v1.3 + allows assignment of UDVs from the script calling this one -- v1.2 + added option to turn off renaming cues -- + added error catching -- v1.1 + takes number of output channels from the notes of cues, to streamline editing for new projects -- USER DEFINED VARIABLES ----------------- try -- if global variables are given when this script is called by another, use those variables renameCues on error set renameCues to false -- whether or not to append cues with the name of the chosen template end try try variableCueListName on error set variableCueListName to "Other scripts & utilities" -- cue list containing Script Variables end try try templateCueListName on error set templateCueListName to "Other scripts & utilities" -- cue list containing template cues end try try templateGroupCueName on error set templateGroupCueName to "Click track routing templates" -- group cue containing all template cues end try ---------- END OF USER DEFINED VARIABLES -- -- VARIABLES FROM QLAB NOTES -------------- tell application id "com.figure53.Qlab.4" to tell front workspace set audioChannelCount to notes of (first cue of (first cue list whose q name is variableCueListName) whose q name is "Output channel count") -- total number of Qlab output end tell ------------------ END OF QLAB VARIABLES -- property util : script "Applescript Utilities" ---- RUN SCRIPT --------------------------- tell application id "com.figure53.Qlab.4" to tell front workspace set containerList to (first cue list whose q name is templateCueListName) set containerCue to first cue in containerList whose q name is templateGroupCueName set routingTemplates to (cues in containerCue) set routingNames to {} repeat with eachCue in routingTemplates set end of routingNames to (q name of eachCue) end repeat set whatTemplate to choose from list routingNames if whatTemplate is false then return end if set whatTemplateCue to first cue in containerCue whose q name is whatTemplate set selectedCues to (selected as list) repeat with eachCue in selectedCues set cueType to q type of eachCue if cueType is in {"Audio", "Video"} then repeat with eachChannel from 1 to audioChannelCount set eachGang to getGang eachCue row 0 column eachChannel if eachGang is missing value then set theLevel to getLevel whatTemplateCue row 0 column eachChannel setLevel eachCue row 0 column eachChannel db theLevel else setGang eachCue row 0 column eachChannel gang "" set theLevel to getLevel whatTemplateCue row 0 column eachChannel setLevel eachCue row 0 column eachChannel db theLevel setGang eachCue row 0 column eachChannel gang eachGang end if end repeat if renameCues is true then my renameCue(eachCue, whatTemplate) end if end if end repeat end tell -- FUNCTIONS ------------------------------ on renameCue(theCue, theTemplate) tell application id "com.figure53.Qlab.4" to tell front workspace set oldName to q display name of theCue set oldNameList to util's splitString(oldName, " | ") set oldName to item 1 of oldNameList set newName to oldName & " | " & theTemplate set q name of theCue to newName end tell end renameCue
src/ada-core/tests/linted-tests.adb
mstewartgallus/linted
0
17213
-- Copyright 2016,2017 <NAME> -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law or agreed to in writing, software -- distributed under the License is distributed on an "AS IS" BASIS, -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or -- implied. See the License for the specific language governing -- permissions and limitations under the License. with Linted.Queue; with Linted.Last_Chance; package body Linted.Tests is Len : constant := 20; type Ix is mod Len + 2 with Default_Value => 0; type Int is mod Len + 1 with Default_Value => 0; function Is_Valid (X : Int) return Boolean is (True); package My_Queue is new Queue (Int, Ix, Is_Valid); package Second_Queue is new Queue (Int, Ix, Is_Valid); task type Queuer; task type Dequeuer; Queuers : array (1 .. 4) of Queuer; Dequeuers : array (1 .. 4) of Dequeuer; task body Queuer is begin for II in 1 .. 20 loop Second_Queue.Enqueue (20); end loop; end Queuer; task body Dequeuer is Val : Int; begin for II in 1 .. 20 loop Second_Queue.Dequeue (Val); pragma Assert (Val = 20); end loop; end Dequeuer; procedure Run is begin for II in 1 .. Int (Len) loop My_Queue.Enqueue (II); end loop; for II in 1 .. Int (Len) loop declare Current : Int; begin My_Queue.Dequeue (Current); if Current /= II then raise Program_Error with Int'Image (Current) & " /= " & Int'Image (II); end if; end; end loop; end Run; end Linted.Tests;
data/mapHeaders/route12house.asm
adhi-thirumala/EvoYellow
16
18502
Route12House_h: db HOUSE ; tileset db ROUTE_12_HOUSE_HEIGHT, ROUTE_12_HOUSE_WIDTH ; dimensions (y, x) dw Route12HouseBlocks, Route12HouseTextPointers, Route12HouseScript ; blocks, texts, scripts db $00 ; connections dw Route12HouseObject ; objects
DeliriOS_64bits/common_code/check_rax.asm
Izikiel/intel_multicore
3
169755
global check_rax %define done_address 0x200700 check_rax: xor rax, rax mov byte [done_address], 1 .loop: hlt cmp rax, 1 jne .loop ret
src/PSSLexer.g4
PSSTools/py-pss-parser
0
1261
<reponame>PSSTools/py-pss-parser /**************************************************************************** * PSSLexer.g4 ****************************************************************************/ lexer grammar PSSLexer; TOK_AT: '@'; TOK_LPAREN: '('; TOK_RPAREN: ')'; TOK_COMMA: ','; TOK_DOUBLE_EQ: '=='; TOK_SINGLE_EQ: '='; TOK_NE: '!='; TOK_PACKAGE: 'package'; TOK_LCBRACE: '{'; TOK_RCBRACE: '}'; TOK_SEMICOLON: ';'; TOK_IMPORT: 'import'; TOK_DOUBLE_COLON: '::'; TOK_ASTERISK: '*'; TOK_EXTEND: 'extend'; TOK_ACTION: 'action'; TOK_COMPONENT: 'component'; TOK_ENUM: 'enum'; TOK_CONST: 'const'; TOK_STATIC: 'static'; TOK_ABSTRACT: 'abstract'; TOK_COLON: ':'; TOK_ACTIVITY: 'activity'; TOK_INPUT: 'input'; TOK_OUTPUT: 'output'; TOK_INOUT: 'inout'; TOK_LOCK: 'lock'; TOK_SHARE: 'share'; TOK_RAND: 'rand'; TOK_PUBLIC: 'public'; TOK_PROTECTED: 'protected'; TOK_PRIVATE: 'private'; TOK_CONSTRAINT: 'constraint'; TOK_PARALLEL: 'parallel'; TOK_SEQUENCE: 'sequence'; TOK_EXEC: 'exec'; TOK_STRUCT: 'struct'; TOK_BUFFER: 'buffer'; TOK_STREAM: 'stream'; TOK_STATE: 'state'; TOK_RESOURCE: 'resource'; TOK_PRE_SOLVE: 'pre_solve'; TOK_POST_SOLVE: 'post_solve'; TOK_BODY: 'body'; TOK_HEADER: 'header'; TOK_DECLARATION: 'declaration'; TOK_RUN_START: 'run_start'; TOK_RUN_END: 'run_end'; TOK_INIT: 'init'; TOK_INIT_UP: 'init_up'; TOK_INIT_DOWN: 'init_down'; TOK_SUPER: 'super'; TOK_PLUS_EQ: '+='; TOK_MINUS_EQ: '-='; TOK_SHL_EQ: '<<='; TOK_SHR_EQ: '>>='; TOK_OR_EQ: '|='; TOK_AND_EQ: '&='; TOK_FILE: 'file'; TOK_FUNCTION: 'function'; TOK_VOID: 'void'; TOK_TARGET: 'target'; TOK_SOLVE: 'solve'; TOK_RETURN: 'return'; TOK_IF: 'if'; TOK_ELSE: 'else'; TOK_MATCH: 'match'; TOK_LSBRACE: '['; TOK_RSBRACE: ']'; TOK_DEFAULT: 'default'; TOK_WHILE: 'while'; TOK_REPEAT: 'repeat'; TOK_FOREACH: 'foreach'; TOK_BREAK: 'break'; TOK_CONTINUE: 'continue'; TOK_POOL: 'pool'; TOK_BIND: 'bind'; TOK_DOT: '.'; TOK_REPLICATE: 'replicate'; TOK_WITH: 'with'; TOK_DO: 'do'; TOK_SELECT: 'select'; TOK_SCHEDULE: 'schedule'; TOK_JOIN_BRANCH: 'join_branch'; TOK_JOIN_SELECT: 'join_select'; TOK_JOIN_NONE: 'join_none'; TOK_JOIN_FIRST: 'join_first'; TOK_SYMBOL: 'symbol'; TOK_OVERRIDE: 'override'; TOK_TYPE: 'type'; TOK_INSTANCE: 'instance'; TOK_CHANDLE: 'chandle'; TOK_ARRAY: 'array'; TOK_LIST: 'list'; TOK_MAP: 'map'; TOK_SET: 'set'; TOK_LT: '<'; TOK_LTE: '<='; TOK_GT: '>'; TOK_GTE: '>='; TOK_IN: 'in'; TOK_INT: 'int'; TOK_BIT: 'bit'; TOK_ELIPSIS: '..'; TOK_STRING: 'string'; TOK_BOOL: 'bool'; TOK_TYPEDEF: 'typedef'; TOK_DYNAMIC: 'dynamic'; TOK_DISABLE: 'disable'; TOK_FORALL: 'forall'; TOK_IMPLIES: '->'; TOK_UNIQUE: 'unique'; TOK_COVERGROUP: 'covergroup'; TOK_COVERPOINT: 'coverpoint'; TOK_BINS: 'bins'; TOK_ILLEGAL_BINS: 'illegal_bins'; TOK_IGNORE_BINS: 'ignore_bins'; TOK_CROSS: 'cross'; TOK_IFF: 'iff'; TOK_COMPILE: 'compile'; TOK_ASSERT: 'assert'; TOK_HAS: 'has'; TOK_COND: '?'; TOK_OPTION: 'option'; TOK_PLUS: '+'; TOK_MINUS: '-'; TOK_NOT: '!'; TOK_NEG: '~'; TOK_SINGLE_AND: '&'; TOK_DOUBLE_AND: '&'; TOK_SINGLE_OR: '|'; TOK_DOUBLE_OR: '||'; TOK_CARET: '^'; TOK_EXP: '**'; TOK_DIV: '/'; TOK_MOD: '%'; TOK_DOUBLE_LT: '<<'; TOK_TRUE: 'true'; TOK_FALSE: 'false'; TOK_EXPORT: 'export'; TOK_CLASS: 'class'; WS : [ \t\n\r]+ -> channel (10) ; //WS : [ \t\n\r]+ -> skip; /** * BNF: SL_COMMENT ::= <kw>//</kw>\n */ SL_COMMENT : '//' .*? '\r'? ('\n'|EOF) -> channel (11) ; //SL_COMMENT : '//' .*? '\r'? ('\n'|EOF) -> skip; /* * BNF: ML_COMMENT ::= <kw>/*</kw><kw>*\057</kw> */ ML_COMMENT : '/*' .*? '*/' -> channel (12) ; //ML_COMMENT : '/*' .*? '*/' -> skip; DOUBLE_QUOTED_STRING : '"' (~ [\n\r])* '"' ; // TODO: unescaped_character, escaped_character /** * BNF: TRIPLE_DOUBLE_QUOTED_STRING ::= <kw>"""</kw><kw>"""</kw> */ TRIPLE_DOUBLE_QUOTED_STRING: '"""' TripleQuotedStringPart*? '"""' ; fragment TripleQuotedStringPart : EscapedTripleQuote | SourceCharacter; fragment EscapedTripleQuote: '\\"""'; fragment SourceCharacter :[\u0009\u000A\u000D\u0020-\uFFFF]; // TODO: move to LexicalRules ID : [a-zA-Z_] [a-zA-Z0-9_]* ; ESCAPED_ID : '\\' ('\u0021'..'\u007E')+ ~ [ \r\t\n]* ; BASED_HEX_LITERAL: '\'' ('s'|'S')? ('h'|'H') ('0'..'9'|'a'..'f'|'A'..'F') ('0'..'9'|'a'..'f'|'A'..'F'|'_')*; BASED_DEC_LITERAL: '\'' ('s'|'S')? ('d'|'D') ('0'..'9') ('0'..'9'|'_')*; DEC_LITERAL: ('1'..'9') ('0'..'9'|'_')*; BASED_BIN_LITERAL: '\'' ('s'|'S')? ('b'|'B') (('0'..'1') ('0'..'1'|'_')*); BASED_OCT_LITERAL: '\'' ('s'|'S')? ('o'|'O') (('0'..'7') ('0'..'7'|'_')*); OCT_LITERAL: '0' ('0'..'7')*; HEX_LITERAL: '0x' ('0'..'9'|'a'..'f'|'A'..'F') ('0'..'9'|'a'..'f'|'A'..'F'|'_')*;
libsrc/stdio/abc80/getk.asm
andydansby/z88dk-mk2
1
240886
; ; ABC80 Routines ; ; getk() Read key status ; ; Maj 2000 - <NAME> ; ; ; $Id: getk.asm,v 1.2 2001/04/13 14:13:59 stefano Exp $ ; XLIB getk .getk in a,(56) bit 7,a jr z,nokey sub 128 jr keyread .nokey xor a .keyread ld l,a ld h,0 ret
programs/oeis/267/A267984.asm
karttu/loda
1
96269
; A267984: Numbers congruent to {17, 23} mod 30. ; 17,23,47,53,77,83,107,113,137,143,167,173,197,203,227,233,257,263,287,293,317,323,347,353,377,383,407,413,437,443,467,473,497,503,527,533,557,563,587,593,617,623,647,653,677,683,707,713,737,743,767,773,797,803,827,833,857,863,887,893,917,923,947,953,977,983,1007,1013,1037,1043,1067,1073,1097,1103,1127,1133,1157,1163,1187,1193,1217,1223,1247,1253,1277,1283,1307,1313,1337,1343,1367,1373,1397,1403,1427,1433,1457,1463,1487,1493,1517,1523,1547,1553,1577,1583,1607,1613,1637,1643,1667,1673,1697,1703,1727,1733,1757,1763,1787,1793,1817,1823,1847,1853,1877,1883,1907,1913,1937,1943,1967,1973,1997,2003,2027,2033,2057,2063,2087,2093,2117,2123,2147,2153,2177,2183,2207,2213,2237,2243,2267,2273,2297,2303,2327,2333,2357,2363,2387,2393,2417,2423,2447,2453,2477,2483,2507,2513,2537,2543,2567,2573,2597,2603,2627,2633,2657,2663,2687,2693,2717,2723,2747,2753,2777,2783,2807,2813,2837,2843,2867,2873,2897,2903,2927,2933,2957,2963,2987,2993,3017,3023,3047,3053,3077,3083,3107,3113,3137,3143,3167,3173,3197,3203,3227,3233,3257,3263,3287,3293,3317,3323,3347,3353,3377,3383,3407,3413,3437,3443,3467,3473,3497,3503,3527,3533,3557,3563,3587,3593,3617,3623,3647,3653,3677,3683,3707,3713,3737,3743 mov $1,$0 div $0,2 mul $0,3 add $1,$0 mul $1,6 add $1,17
oeis/114/A114444.asm
neoneye/loda-programs
11
164872
; A114444: a(n) = 16*n*(n+2). ; Submitted by <NAME> ; 0,48,128,240,384,560,768,1008,1280,1584,1920,2288,2688,3120,3584,4080,4608,5168,5760,6384,7040,7728,8448,9200,9984,10800,11648,12528,13440,14384,15360,16368,17408,18480,19584,20720,21888,23088,24320,25584,26880,28208,29568,30960 add $0,1 pow $0,2 sub $0,1 mul $0,16
sharding-core/src/main/antlr4/imports/DMLBase.g4
FloodDragon/sharding-sphere
0
6961
grammar DMLBase; import Keyword, MySQLBase, DQLBase, BaseRule, DataType, Symbol; execute : insert | update | delete ; fromClause : FROM tableReferences ; whereClause : WHERE expr ; havingClause : HAVING expr ; orderByClause : ORDER BY orderByItem (COMMA orderByItem)* ; limitClause : LIMIT rangeClause ; delete: deleteClause whereClause? orderByClause? limitClause? ; partitionClause : PARTITION idList ; update: updateClause setClause whereClause? orderByClause? limitClause? ; setClause : SET assignmentList ; assignmentList : assignment (COMMA assignment)* ; assignment : columnName EQ_ value ; insert : ; deleteClause : ; updateClause : ; updateSpec : ;
programs/oeis/204/A204542.asm
karttu/loda
0
240920
; A204542: Numbers that are congruent to {1, 4, 11, 14} mod 15. ; 1,4,11,14,16,19,26,29,31,34,41,44,46,49,56,59,61,64,71,74,76,79,86,89,91,94,101,104,106,109,116,119,121,124,131,134,136,139,146,149,151,154,161,164,166,169,176,179,181,184,191,194,196,199,206,209,211,214,221,224,226,229,236,239,241,244,251,254,256,259,266,269,271,274,281,284,286,289,296,299,301,304,311,314,316,319,326,329,331,334,341,344,346,349,356,359,361,364,371,374,376,379,386,389,391,394,401,404,406,409,416,419,421,424,431,434,436,439,446,449,451,454,461,464,466,469,476,479,481,484,491,494,496,499,506,509,511,514,521,524,526,529,536,539,541,544,551,554,556,559,566,569,571,574,581,584,586,589,596,599,601,604,611,614,616,619,626,629,631,634,641,644,646,649,656,659,661,664,671,674,676,679,686,689,691,694,701,704,706,709,716,719,721,724,731,734,736,739,746,749,751,754,761,764,766,769,776,779,781,784,791,794,796,799,806,809,811,814,821,824,826,829,836,839,841,844,851,854,856,859,866,869,871,874,881,884,886,889,896,899,901,904,911,914,916,919,926,929,931,934 mov $2,$0 add $0,3 lpb $0,1 trn $0,2 mov $1,1 trn $1,$0 trn $0,2 add $3,3 lpe add $1,$3 sub $1,2 lpb $2,1 add $1,3 sub $2,1 lpe
models/tests/test63c.als
transclosure/Amalgam
4
4479
<gh_stars>1-10 module tests/test private open tests/test63a run { some fb } // should complain that the name cannot be found
notes/FOT/LTC-PCF/Y/Properties.agda
asr/fotc
11
7345
------------------------------------------------------------------------------ -- Paradoxical combinator properties ------------------------------------------------------------------------------ {-# OPTIONS --exact-split #-} {-# OPTIONS --no-sized-types #-} {-# OPTIONS --no-universe-polymorphism #-} {-# OPTIONS --without-K #-} -- See (Barendregt 2004, corollary 6.1.3). module FOT.LTC-PCF.Y.Properties where open import Common.FOL.Relation.Binary.EqReasoning open import FOT.LTC-PCF.Y open import LTC-PCF.Base hiding ( fix ; fix-eq ) open import LTC-PCF.Base.Properties ------------------------------------------------------------------------------ -- The conversion rule for Y. Y-eq : ∀ f → Y · f ≡ f · (Y · f) Y-eq f = Y · f ≡⟨ beta helper f ⟩ lamW · lamW ≡⟨ beta W lamW ⟩ W lamW ≡⟨ refl ⟩ f · (lamW · lamW) ≡⟨ ·-rightCong (sym (beta helper f)) ⟩ f · (Y · f) ∎ where helper : D → D helper = λ f → lam (λ x → f · (x · x)) · lam (λ x → f · (x · x)) W : D → D W = λ x → f · (x · x) lamW : D lamW = lam W -- The conversion rule for the higher-order Y₁. Y₁-eq : (f : D → D) → Y₁ f ≡ f (Y₁ f) Y₁-eq f = Y₁ f ≡⟨ refl ⟩ Y · lam f ≡⟨ Y-eq (lam f) ⟩ lam f · (Y · lam f) ≡⟨ ·-rightCong refl ⟩ lam f · Y₁ f ≡⟨ beta f (Y₁ f) ⟩ f (Y₁ f) ∎ ------------------------------------------------------------------------------ -- References -- -- <NAME> (2004). The Lambda Calculus. Its Syntax and -- Semantics. 2nd ed. Vol. 103. Studies in Logic and the Foundations -- of Mathematics. 6th impression. Elsevier.
src/test/resources/framework_specifications/ExtendedTestResourceParser.g4
google/polymorphicDSL
3
760
parser grammar ExtendedTestResourceParser ; options { tokenVocab=ExtendedTestResourceLexer; } testResourceValidity : TEST_RESOURCE_VALIDITY ;
New/Unused.agda
inc-lc/ilc-agda
10
6340
<filename>New/Unused.agda module New.Unused where open import New.Changes module _ {ℓ₁} {ℓ₂} {A : Set ℓ₁} {B : Set ℓ₂} {{CA : ChAlg A}} {{CB : ChAlg B}} where open ≡-Reasoning open import Postulate.Extensionality module _ (f : A → B) where nil-is-derivative : IsDerivative f (nil f) nil-is-derivative a da v = begin f (a ⊕ da) ≡⟨ sym (cong (λ □ → □ (_⊕_ a da)) (update-nil f)) ⟩ (f ⊕ nil f) (a ⊕ da) ≡⟨ proj₂ (nil-valid f a da v) ⟩ f a ⊕ (nil f a da) ∎ derivative-is-nil : ∀ df → IsDerivative f df → f ⊕ df ≡ f derivative-is-nil df f-df = ext (λ v → begin f v ⊕ df v (nil v) ≡⟨ sym (f-df v (nil v) (nil-valid v)) ⟩ f (v ⊕ nil v) ≡⟨ cong f (update-nil v) ⟩ f v ∎) derivative-is-valid : ∀ df (IsDerivative-f-df : IsDerivative f df) → WellDefinedFunChange f df derivative-is-valid df IsDerivative-f-df a da ada rewrite sym (IsDerivative-f-df (a ⊕ da) (nil (a ⊕ da)) (nil-valid (a ⊕ da))) | update-nil (a ⊕ da) | IsDerivative-f-df a da ada = refl equal-future-expand-derivative : ∀ df → IsDerivative f df → ∀ v1 dv1 → valid v1 dv1 → ∀ v2 → v2 ≡ v1 ⊕ dv1 → f v2 ≡ f v1 ⊕ df v1 dv1 equal-future-expand-derivative df is-derivative-f-df v1 dv1 v1dv1 v2 eq-fut = begin f v2 ≡⟨ cong f eq-fut ⟩ f (v1 ⊕ dv1) ≡⟨ is-derivative-f-df v1 dv1 v1dv1 ⟩ f v1 ⊕ df v1 dv1 ∎ -- -- equal-future-expand-derivative df is-derivative-f-df v1 dv1 v1dv1 v2 dv2 v2dv2 eq-fut = -- -- begin -- -- (f ⊕ df) (v1 ⊕ dv1) -- -- ≡⟨ cong (f ⊕ df) eq-fut ⟩ -- -- (f ⊕ df) (v2 ⊕ dv2) -- -- ≡⟨ well-defined-f-df v2 dv2 v2dv2 ⟩ -- -- f v2 ⊕ df v2 dv2 -- -- ∎ -- -- equal-future-expand-base df (derivative-is-valid df is-derivative-f-df) equal-future-base : ∀ df → WellDefinedFunChange f df → ∀ v1 dv1 → valid v1 dv1 → ∀ v2 dv2 → valid v2 dv2 → v1 ⊕ dv1 ≡ v2 ⊕ dv2 → f v1 ⊕ df v1 dv1 ≡ f v2 ⊕ df v2 dv2 equal-future-base df well-defined-f-df v1 dv1 v1dv1 v2 dv2 v2dv2 eq-fut = begin f v1 ⊕ df v1 dv1 ≡⟨ sym (well-defined-f-df v1 dv1 v1dv1) ⟩ (f ⊕ df) (v1 ⊕ dv1) ≡⟨ cong (f ⊕ df) eq-fut ⟩ (f ⊕ df) (v2 ⊕ dv2) ≡⟨ well-defined-f-df v2 dv2 v2dv2 ⟩ f v2 ⊕ df v2 dv2 ∎ equal-future-change : ∀ df → valid f df → ∀ v1 dv1 → valid v1 dv1 → ∀ v2 dv2 → valid v2 dv2 → v1 ⊕ dv1 ≡ v2 ⊕ dv2 → f v1 ⊕ df v1 dv1 ≡ f v2 ⊕ df v2 dv2 equal-future-change df fdf = equal-future-base df (λ a da ada → proj₂ (fdf a da ada)) equal-future-derivative : ∀ df → IsDerivative f df → ∀ v1 dv1 → valid v1 dv1 → ∀ v2 dv2 → valid v2 dv2 → v1 ⊕ dv1 ≡ v2 ⊕ dv2 → f v1 ⊕ df v1 dv1 ≡ f v2 ⊕ df v2 dv2 equal-future-derivative df is-derivative-f-df = equal-future-base df (derivative-is-valid df is-derivative-f-df)
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c5/c55b04a.ada
best08618/asylo
7
29246
<filename>gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c5/c55b04a.ada<gh_stars>1-10 -- C55B04A.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 A LOOP IS NOT ENTERED IF THE LOWER BOUND OF THE DISCRETE -- RANGE IS GREATER THAN THE UPPER BOUND, WHETHER REVERSE IS PRESENT -- OR NOT. -- CHECK THAT LOOP BOUNDS ARE EVALUATED ONLY ONCE, UPON ENTRY TO -- THE LOOP. -- DAS 01/12/81 -- SPS 3/2/83 -- JBG 8/21/83 WITH REPORT; PROCEDURE C55B04A IS USE REPORT; C10 : CONSTANT INTEGER := 10; I10 : INTEGER; BEGIN TEST ( "C55B04A", "CHECK OPERATION OF A FOR LOOP OVER A NULL " & "DISCRETE RANGE" ); -- NOTE: EXIT STATEMENTS ARE INCLUDED TO AID IN RECOVERY FROM -- TEST FAILURE. -- SUBTESTS INVOLVING STATIC BOUNDS: FOR I IN 10..1 LOOP FAILED ( "LOOPING OVER NULL RANGE 10..1" ); EXIT; END LOOP; FOR I IN REVERSE INTEGER RANGE -1..-10 LOOP FAILED ( "LOOPING OVER NULL RANGE -1..-10" ); EXIT; END LOOP; FOR I IN (C10 + 3)..(-3 * C10 + 27) LOOP -- 13..-3 FAILED ("LOOPING OVER NULL RANGE (C10 + 3)..(-3 * C10 + 27)"); EXIT; END LOOP; -- SUBTESTS INVOLVING DYNAMIC BOUNDS: I10 := IDENT_INT(10); FOR I IN REVERSE I10..(I10-1) LOOP -- 10..9 FAILED ( "LOOPING OVER NULL RANGE I10..(I10-1)"); EXIT; END LOOP; FOR I IN (C10 - I10)..(I10 - 11) LOOP -- 0..-1 FAILED ( "LOOPING OVER NULL RANGE (C10 - I10)..(I10 - 11)" ); EXIT; END LOOP; -- SUBTEST OF BOUNDS EVALUTION ONLY AT ENTRY: FOR I IN 1..I10 LOOP I10 := I10 - 1; END LOOP; IF (I10 /= 0) THEN FAILED ( "LOOP BOUNDS NOT FIXED AT LOOP ENTRY" ); END IF; RESULT; END C55B04A;
other.7z/SFC.7z/SFC/ソースデータ/ゼルダの伝説神々のトライフォース/フランス_PAL/Fra_asm1/zel_enmy2.asm
prismotizm/gigaleak
0
14808
<gh_stars>0 Name: zel_enmy2.asm Type: file Size: 366532 Last-Modified: '2016-05-13T04:20:48Z' SHA-1: D8B3927381A136FB1C96ED8F3FBE2AE6D022E657 Description: null
oeis/098/A098307.asm
neoneye/loda-programs
11
100439
<filename>oeis/098/A098307.asm ; A098307: Unsigned member r=-7 of the family of Chebyshev sequences S_r(n) defined in A092184. ; Submitted by <NAME> ; 0,1,7,64,567,5041,44800,398161,3538647,31449664,279508327,2484125281,22077619200,196214447521,1743852408487,15498457228864,137742262651287,1224181906632721,10879894897043200,96694872166756081 mov $2,1 mov $3,1 lpb $0 sub $0,1 add $2,$3 mov $3,$1 mov $1,$2 dif $2,2 dif $2,7 mul $2,14 lpe dif $1,2 mul $1,$2 mov $0,$1 div $0,14
Sysvis.g4
signdoubt/sysvis
0
4961
<reponame>signdoubt/sysvis<gh_stars>0 grammar Sysvis; story: moment ('---' moment)* '---'? EOF; moment: stmt_list ; stmt_list: stmt (';' stmt)* ';'? ; stmt: node_stmt | edge_stmt | attr_stmt | assignment | group | zone | delete ; attr_stmt : (GROUP | NODE | EDGE | ZONE) attr_list ; attr_list : '[' assignment ( ( ',' | ';' )? assignment)* ']' ; assignment : ID '=' ID ; edge_stmt : ID '->' ID attr_list? ; node_stmt : ID attr_list? ; group : GROUP ID '{' stmt_list '}' ; zone : ZONE ID '{' stmt_list '}' ; delete: DELETE (ID | ID '->' ID); NODE : 'node' ; EDGE : 'edge' ; GROUP: 'group' ; ZONE : 'zone' ; DELETE: 'delete' ; ID : '\'' (~'\'')* '\'' {self.text = self.text[1:-1]} | '"' (~'"')* '"' {self.text = self.text[1:-1]} | [a-zA-Z_0-9\-] [a-zA-Z_0-9.\-]* ; SPACES : [ \u000B\t\r\n] -> channel(HIDDEN) ;
spec/spi.ads
0xA1/pi-spi
0
29189
<reponame>0xA1/pi-spi<filename>spec/spi.ads<gh_stars>0 -- -- -- Copyright (c) 2015, <NAME> -- -- -- -- Permission to use, copy, modify, and/or distribute this software for any -- -- purpose with or without fee is hereby granted, provided that the above -- -- copyright notice and this permission notice appear in all copies. -- -- -- -- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -- -- WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -- -- MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR -- -- ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -- -- WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -- -- ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF -- -- OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -- -- -- with Interfaces.C; use Interfaces.C; with stdint_h; use stdint_h; with stddef_h; use stddef_h; with Interfaces.C.Strings; package SPI is type Mode_Type is new uint32_t; Mode_Loop : constant Mode_Type := 16#0000_0020#; Mode_CPHA : constant Mode_Type := 16#0000_0001#; Mode_CPOL : constant Mode_Type := 16#0000_0002#; Mode_LSB_First : constant Mode_Type := 16#0000_0008#; Mode_CS_High : constant Mode_Type := 16#0000_0004#; Mode_No_CS : constant Mode_Type := 16#0000_0040#; Mode_3Wire : constant Mode_Type := 16#0000_0010#; Mode_Ready : constant Mode_Type := 16#0000_0080#; Mode_TX_Dual : constant Mode_Type := 16#0000_0100#; Mode_TX_Quad : constant Mode_Type := 16#0000_0200#; Mode_RX_Dual : constant Mode_Type := 16#0000_0400#; Mode_RX_Quad : constant Mode_Type := 16#0000_0800#; Error_Mode : exception; Error_Bits : exception; Error_Freq : exception; Error_Device : exception; Error_Xfer : exception; Error_Unknown : exception; type SPI_Device is record fd : aliased int; -- ../include/spi_driver.h:32 clk_freq : aliased uint32_t; -- ../include/spi_driver.h:33 mode : aliased uint32_t; -- ../include/spi_driver.h:34 c_delay : aliased uint16_t; -- ../include/spi_driver.h:35 bits : aliased uint8_t; -- ../include/spi_driver.h:36 end record; pragma Convention (C_Pass_By_Copy, SPI_Device); -- ../include/spi_driver.h:31 procedure Open(device : access SPI_Device; device_path : Interfaces.C.Strings.chars_ptr; mode : Mode_Type; bits : uint8_t; freq : uint32_t); procedure Transfer(device : access SPI_Device; transmit_buffer : access uint8_t; receive_buffer : access uint8_t; c_delay : uint16_t; length : stddef_h.size_t); procedure Close(device : access SPI_Device); private -- @brief Initialize and configure a SPI device. -- @param[in,out] spi Address of a SPI device structure. -- @param[in] dev Full path to SPI device. -- @param[in] mode SPI_MODE_LOOP Loopback -- SPI_MODE_CPHA Clock Phase -- SPI_MODE_CPOL Clock Polarity -- SPI_MODE_LSB_FIRST Least Significant Bit First -- SPI_MODE_CS_HIGH Chip Select Active High -- SPI_MODE_NO_CS No Chip Select -- SPI_MODE_3WIRE SI/SO Signals Shared -- SPI_MODE_READY Slave may pull down to pause -- SPI_MODE_TX_DUAL Dual transfer -- SPI_MODE_TX_QUAD Quad transfer -- @param[in] bits Number of bits in a transfer -- @param[in] freq Clock frequency (Hz) -- @return SPI_SUCCESS SPI device opened successfully -- @return SPI_ERROR_MODE Error: Cannot set mode -- @return SPI_ERROR_BITS Error: Cannot set bits -- @return SPI_ERROR_FREQ Error: Cannot set frequency -- @return SPI_ERROR_DEV Error: Cannot open device -- function c_open (device : access SPI_Device; device_path : Interfaces.C.Strings.chars_ptr; mode : uint32_t; bits : uint8_t; freq : uint32_t) return int; -- ../include/pi-spi_driver.h:85 pragma Import (CPP, c_open, "_Z15spi_driver_openP6spidevPcjhj"); -- @brief Send and receive some data. -- @param[in,out] spi Address of a SPI device structure. -- @param[in] transmit_buffer Address of the first byte to transmit -- @param[out] receive_buffer Address to write data read in from SPI -- @param[in] delay Delay in us before the transmission -- @param[in] length Number of bytes to read/write -- @return SPI_SUCCESS Operation completed successfully -- @return SPI_ERROR_XFER Error: Could not send data -- function c_transfer (device : access SPI_Device; transmit_buffer : access uint8_t; receive_buffer : access uint8_t; c_delay : uint16_t; length : stddef_h.size_t) return int; -- ../include/spi_driver.h:101 pragma Import (CPP, c_transfer, "_Z19spi_driver_transferP6spidevPhS1_tj"); -- @brief Close SPI device. -- @param[in,out] spi Address of a SPI device structure. -- procedure c_close (device : access SPI_Device); -- ../include/spi_driver.h:111 pragma Import (CPP, c_close, "_Z16spi_driver_closeP6spidev"); end SPI;
Focus Desktop/Focus Desktop/Resources/desktopStatus.scpt
InstaRobot/focus-desktop
26
3170
if (do shell script "defaults read com.apple.finder CreateDesktop") is equal to "1" then return 1 else return 0 end if
drivers/drivers-si7060.adb
ekoeppen/STM32_Generic_Ada_Drivers
1
14020
<gh_stars>1-10 with STM32GD.I2C; with STM32_SVD; use STM32_SVD; package body Drivers.Si7060 is function Init return Boolean is begin return I2C.Write_Register (Address, 16#C4#, 2#0000_0001#); end Init; function Temperature_x100 (R : out Temperature_Type) return Boolean is M, LSB, MSB : Byte; begin if not I2C.Test (Address) then return False; end if; if I2C.Write_Register (Address, 16#C4#, 2#0000_0100#) and then I2C.Read_Register (Address, 16#C4#, M) and then (M and 2#0000_0010#) /= 0 and then I2C.Read_Register (Address, 16#C1#, MSB) and then I2C.Read_Register (Address, 16#C2#, LSB) and then I2C.Write_Register (Address, 16#C4#, 2#0000_0001#) then R := Temperature_Type ( 5500 + (Integer (MSB and 2#0111_1111#) * 256 + Integer (LSB) - 16384) * 10 / 16); return True; end if; return False; end Temperature_x100; end Drivers.Si7060;
source/amf/mof/cmof/amf-internals-tables-cmof_reflection.adb
svn2github/matreshka
24
30349
<reponame>svn2github/matreshka<gh_stars>10-100 ------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- Ada Modeling Framework -- -- -- -- Runtime Library Component -- -- -- ------------------------------------------------------------------------------ -- -- -- Copyright © 2010-2012, <NAME> <<EMAIL>> -- -- All rights reserved. -- -- -- -- Redistribution and use in source and binary forms, with or without -- -- modification, are permitted provided that the following conditions -- -- are met: -- -- -- -- * Redistributions of source code must retain the above copyright -- -- notice, this list of conditions and the following disclaimer. -- -- -- -- * Redistributions in binary form must reproduce the above copyright -- -- notice, this list of conditions and the following disclaimer in the -- -- documentation and/or other materials provided with the distribution. -- -- -- -- * Neither the name of the Vadim Godunko, IE nor the names of its -- -- contributors may be used to endorse or promote products derived from -- -- this software without specific prior written permission. -- -- -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- -- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -- -- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -- -- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -- -- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED -- -- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -- -- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -- -- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -- -- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -- -- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- -- -- ------------------------------------------------------------------------------ -- $Revision$ $Date$ ------------------------------------------------------------------------------ -- This file is generated, don't edit it. ------------------------------------------------------------------------------ with AMF.CMOF.Associations; with AMF.CMOF.Classes.Collections; with AMF.CMOF.Classifiers.Collections; with AMF.CMOF.Comments.Collections; with AMF.CMOF.Constraints.Collections; with AMF.CMOF.Data_Types; with AMF.CMOF.Element_Imports.Collections; with AMF.CMOF.Elements.Collections; with AMF.CMOF.Enumeration_Literals.Collections; with AMF.CMOF.Enumerations; with AMF.CMOF.Expressions; with AMF.CMOF.Features.Collections; with AMF.CMOF.Holders.Parameter_Direction_Kinds; with AMF.CMOF.Holders.Visibility_Kinds; with AMF.CMOF.Named_Elements.Collections; with AMF.CMOF.Namespaces; with AMF.CMOF.Opaque_Expressions; with AMF.CMOF.Operations.Collections; with AMF.CMOF.Package_Imports.Collections; with AMF.CMOF.Package_Merges.Collections; with AMF.CMOF.Packageable_Elements.Collections; with AMF.CMOF.Packages.Collections; with AMF.CMOF.Parameters.Collections; with AMF.CMOF.Primitive_Types; with AMF.CMOF.Properties.Collections; with AMF.CMOF.Redefinable_Elements.Collections; with AMF.CMOF.Tags; with AMF.CMOF.Types.Collections; with AMF.CMOF.Value_Specifications.Collections; with AMF.Holders.Elements; with AMF.Internals.Helpers; with AMF.Internals.Holders.CMOF_Holders; with AMF.Internals.Tables.CMOF_Element_Table; with AMF.Internals.Tables.CMOF_Metamodel; with AMF.Internals.Tables.CMOF_Types; with AMF.String_Collections.Internals; with League.Holders.Booleans; package body AMF.Internals.Tables.CMOF_Reflection is --------- -- Get -- --------- function Get (Self : AMF.Internals.AMF_Element; Property : CMOF_Element) return League.Holders.Holder is function CMOF_Association_Get return League.Holders.Holder; -- Returns attribute's value of instance of Association class. function CMOF_Class_Get return League.Holders.Holder; -- Returns attribute's value of instance of Class class. function CMOF_Comment_Get return League.Holders.Holder; -- Returns attribute's value of instance of Comment class. function CMOF_Constraint_Get return League.Holders.Holder; -- Returns attribute's value of instance of Constraint class. function CMOF_Data_Type_Get return League.Holders.Holder; -- Returns attribute's value of instance of DataType class. function CMOF_Element_Import_Get return League.Holders.Holder; -- Returns attribute's value of instance of ElementImport class. function CMOF_Enumeration_Get return League.Holders.Holder; -- Returns attribute's value of instance of Enumeration class. function CMOF_Enumeration_Literal_Get return League.Holders.Holder; -- Returns attribute's value of instance of EnumerationLiteral class. function CMOF_Expression_Get return League.Holders.Holder; -- Returns attribute's value of instance of Expression class. function CMOF_Opaque_Expression_Get return League.Holders.Holder; -- Returns attribute's value of instance of OpaqueExpression class. function CMOF_Operation_Get return League.Holders.Holder; -- Returns attribute's value of instance of Operation class. function CMOF_Package_Get return League.Holders.Holder; -- Returns attribute's value of instance of Package class. function CMOF_Package_Import_Get return League.Holders.Holder; -- Returns attribute's value of instance of PackageImport class. function CMOF_Package_Merge_Get return League.Holders.Holder; -- Returns attribute's value of instance of PackageMerge class. function CMOF_Parameter_Get return League.Holders.Holder; -- Returns attribute's value of instance of Parameter class. function CMOF_Primitive_Type_Get return League.Holders.Holder; -- Returns attribute's value of instance of PrimitiveType class. function CMOF_Property_Get return League.Holders.Holder; -- Returns attribute's value of instance of Property class. function CMOF_Tag_Get return League.Holders.Holder; -- Returns attribute's value of instance of Tag class. -------------------------- -- CMOF_Association_Get -- -------------------------- function CMOF_Association_Get return League.Holders.Holder is begin if Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Classifier_Attribute_A_Classifier then -- Classifier::attribute : Property return AMF.CMOF.Properties.Collections.CMOF_Property_Collections.Internals.To_Holder (AMF.CMOF.Associations.CMOF_Association_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Attribute); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Element_Import_Element_Import_Importing_Namespace then -- Namespace::elementImport : ElementImport return AMF.CMOF.Element_Imports.Collections.CMOF_Element_Import_Collections.Internals.To_Holder (AMF.CMOF.Associations.CMOF_Association_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Element_Import); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Association_End_Type_A_Association then -- Association::endType : Type return AMF.CMOF.Types.Collections.CMOF_Type_Collections.Internals.To_Holder (AMF.CMOF.Associations.CMOF_Association_Access (AMF.Internals.Helpers.To_Element (Self)).Get_End_Type); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Classifier_Feature_Feature_Featuring_Classifier then -- Classifier::feature : Feature return AMF.CMOF.Features.Collections.CMOF_Feature_Collections.Internals.To_Holder (AMF.CMOF.Associations.CMOF_Association_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Feature); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Classifier_General_A_Classifier then -- Classifier::general : Classifier return AMF.CMOF.Classifiers.Collections.CMOF_Classifier_Collections.Internals.To_Holder (AMF.CMOF.Associations.CMOF_Association_Access (AMF.Internals.Helpers.To_Element (Self)).Get_General); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Imported_Member_A_Namespace then -- Namespace::importedMember : PackageableElement return AMF.CMOF.Packageable_Elements.Collections.CMOF_Packageable_Element_Collections.Internals.To_Holder (AMF.CMOF.Associations.CMOF_Association_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Imported_Member); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Classifier_Inherited_Member_A_Classifier then -- Classifier::inheritedMember : NamedElement return AMF.CMOF.Named_Elements.Collections.CMOF_Named_Element_Collections.Internals.To_Holder (AMF.CMOF.Associations.CMOF_Association_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Inherited_Member); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Association_Is_Derived then -- Association::isDerived : Boolean return League.Holders.Booleans.To_Holder (AMF.CMOF.Associations.CMOF_Association_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Is_Derived); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Classifier_Is_Final_Specialization then -- Classifier::isFinalSpecialization : Boolean return League.Holders.Booleans.To_Holder (AMF.CMOF.Associations.CMOF_Association_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Is_Final_Specialization); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Member_A_Namespace then -- Namespace::member : NamedElement return AMF.CMOF.Named_Elements.Collections.CMOF_Named_Element_Collections.Internals.To_Holder (AMF.CMOF.Associations.CMOF_Association_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Member); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Association_Member_End_Property_Association then -- Association::memberEnd : Property return AMF.CMOF.Properties.Collections.CMOF_Property_Collections.Internals.To_Holder (AMF.CMOF.Associations.CMOF_Association_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Member_End); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Named_Element_Name then -- NamedElement::name : String return AMF.Holders.To_Holder (AMF.CMOF.Associations.CMOF_Association_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Name); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Named_Element_Namespace_Namespace_Owned_Member then -- NamedElement::namespace : Namespace return AMF.Internals.Holders.CMOF_Holders.To_Holder (AMF.CMOF.Namespaces.CMOF_Namespace_Access' (AMF.CMOF.Associations.CMOF_Association_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Namespace)); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Association_Navigable_Owned_End_A_Association then -- Association::navigableOwnedEnd : Property return AMF.CMOF.Properties.Collections.CMOF_Property_Collections.Internals.To_Holder (AMF.CMOF.Associations.CMOF_Association_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Navigable_Owned_End); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Comment_A_Owning_Element then -- Element::ownedComment : Comment return AMF.CMOF.Comments.Collections.CMOF_Comment_Collections.Internals.To_Holder (AMF.CMOF.Associations.CMOF_Association_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Owned_Comment); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Element_Element_Owner then -- Element::ownedElement : Element return AMF.CMOF.Elements.Collections.CMOF_Element_Collections.Internals.To_Holder (AMF.CMOF.Associations.CMOF_Association_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Owned_Element); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Association_Owned_End_Property_Owning_Association then -- Association::ownedEnd : Property return AMF.CMOF.Properties.Collections.CMOF_Property_Collections.Internals.To_Holder (AMF.CMOF.Associations.CMOF_Association_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Owned_End); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Owned_Member_Named_Element_Namespace then -- Namespace::ownedMember : NamedElement return AMF.CMOF.Named_Elements.Collections.CMOF_Named_Element_Collections.Internals.To_Holder (AMF.CMOF.Associations.CMOF_Association_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Owned_Member); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Owned_Rule_Constraint_Context then -- Namespace::ownedRule : Constraint return AMF.CMOF.Constraints.Collections.CMOF_Constraint_Collections.Internals.To_Holder (AMF.CMOF.Associations.CMOF_Association_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Owned_Rule); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owner_Element_Owned_Element then -- Element::owner : Element return AMF.Internals.Holders.CMOF_Holders.To_Holder (AMF.CMOF.Elements.CMOF_Element_Access' (AMF.CMOF.Associations.CMOF_Association_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Owner)); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Type_Package_Package_Owned_Type then -- Type::package : Package return AMF.Internals.Holders.CMOF_Holders.To_Holder (AMF.CMOF.Packages.CMOF_Package_Access' (AMF.CMOF.Associations.CMOF_Association_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Package)); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Package_Import_Package_Import_Importing_Namespace then -- Namespace::packageImport : PackageImport return AMF.CMOF.Package_Imports.Collections.CMOF_Package_Import_Collections.Internals.To_Holder (AMF.CMOF.Associations.CMOF_Association_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Package_Import); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Named_Element_Qualified_Name then -- NamedElement::qualifiedName : String return AMF.Holders.To_Holder (AMF.CMOF.Associations.CMOF_Association_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Qualified_Name); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Relationship_Related_Element_A_Relationship then -- Relationship::relatedElement : Element return AMF.CMOF.Elements.Collections.CMOF_Element_Collections.Internals.To_Holder (AMF.CMOF.Associations.CMOF_Association_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Related_Element); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Named_Element_Visibility then -- NamedElement::visibility : VisibilityKind return AMF.CMOF.Holders.To_Holder (AMF.CMOF.Associations.CMOF_Association_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Visibility); else raise Program_Error; end if; end CMOF_Association_Get; -------------------- -- CMOF_Class_Get -- -------------------- function CMOF_Class_Get return League.Holders.Holder is begin if Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Classifier_Attribute_A_Classifier then -- Classifier::attribute : Property return AMF.CMOF.Properties.Collections.CMOF_Property_Collections.Internals.To_Holder (AMF.CMOF.Classes.CMOF_Class_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Attribute); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Element_Import_Element_Import_Importing_Namespace then -- Namespace::elementImport : ElementImport return AMF.CMOF.Element_Imports.Collections.CMOF_Element_Import_Collections.Internals.To_Holder (AMF.CMOF.Classes.CMOF_Class_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Element_Import); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Classifier_Feature_Feature_Featuring_Classifier then -- Classifier::feature : Feature return AMF.CMOF.Features.Collections.CMOF_Feature_Collections.Internals.To_Holder (AMF.CMOF.Classes.CMOF_Class_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Feature); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Classifier_General_A_Classifier then -- Classifier::general : Classifier return AMF.CMOF.Classifiers.Collections.CMOF_Classifier_Collections.Internals.To_Holder (AMF.CMOF.Classes.CMOF_Class_Access (AMF.Internals.Helpers.To_Element (Self)).Get_General); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Imported_Member_A_Namespace then -- Namespace::importedMember : PackageableElement return AMF.CMOF.Packageable_Elements.Collections.CMOF_Packageable_Element_Collections.Internals.To_Holder (AMF.CMOF.Classes.CMOF_Class_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Imported_Member); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Classifier_Inherited_Member_A_Classifier then -- Classifier::inheritedMember : NamedElement return AMF.CMOF.Named_Elements.Collections.CMOF_Named_Element_Collections.Internals.To_Holder (AMF.CMOF.Classes.CMOF_Class_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Inherited_Member); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Class_Is_Abstract then -- Class::isAbstract : Boolean return League.Holders.Booleans.To_Holder (AMF.CMOF.Classes.CMOF_Class_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Is_Abstract); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Classifier_Is_Final_Specialization then -- Classifier::isFinalSpecialization : Boolean return League.Holders.Booleans.To_Holder (AMF.CMOF.Classes.CMOF_Class_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Is_Final_Specialization); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Member_A_Namespace then -- Namespace::member : NamedElement return AMF.CMOF.Named_Elements.Collections.CMOF_Named_Element_Collections.Internals.To_Holder (AMF.CMOF.Classes.CMOF_Class_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Member); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Named_Element_Name then -- NamedElement::name : String return AMF.Holders.To_Holder (AMF.CMOF.Classes.CMOF_Class_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Name); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Named_Element_Namespace_Namespace_Owned_Member then -- NamedElement::namespace : Namespace return AMF.Internals.Holders.CMOF_Holders.To_Holder (AMF.CMOF.Namespaces.CMOF_Namespace_Access' (AMF.CMOF.Classes.CMOF_Class_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Namespace)); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Class_Owned_Attribute_Property_Class then -- Class::ownedAttribute : Property return AMF.CMOF.Properties.Collections.CMOF_Property_Collections.Internals.To_Holder (AMF.CMOF.Classes.CMOF_Class_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Owned_Attribute); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Comment_A_Owning_Element then -- Element::ownedComment : Comment return AMF.CMOF.Comments.Collections.CMOF_Comment_Collections.Internals.To_Holder (AMF.CMOF.Classes.CMOF_Class_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Owned_Comment); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Element_Element_Owner then -- Element::ownedElement : Element return AMF.CMOF.Elements.Collections.CMOF_Element_Collections.Internals.To_Holder (AMF.CMOF.Classes.CMOF_Class_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Owned_Element); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Owned_Member_Named_Element_Namespace then -- Namespace::ownedMember : NamedElement return AMF.CMOF.Named_Elements.Collections.CMOF_Named_Element_Collections.Internals.To_Holder (AMF.CMOF.Classes.CMOF_Class_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Owned_Member); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Class_Owned_Operation_Operation_Class then -- Class::ownedOperation : Operation return AMF.CMOF.Operations.Collections.CMOF_Operation_Collections.Internals.To_Holder (AMF.CMOF.Classes.CMOF_Class_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Owned_Operation); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Owned_Rule_Constraint_Context then -- Namespace::ownedRule : Constraint return AMF.CMOF.Constraints.Collections.CMOF_Constraint_Collections.Internals.To_Holder (AMF.CMOF.Classes.CMOF_Class_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Owned_Rule); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owner_Element_Owned_Element then -- Element::owner : Element return AMF.Internals.Holders.CMOF_Holders.To_Holder (AMF.CMOF.Elements.CMOF_Element_Access' (AMF.CMOF.Classes.CMOF_Class_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Owner)); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Type_Package_Package_Owned_Type then -- Type::package : Package return AMF.Internals.Holders.CMOF_Holders.To_Holder (AMF.CMOF.Packages.CMOF_Package_Access' (AMF.CMOF.Classes.CMOF_Class_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Package)); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Package_Import_Package_Import_Importing_Namespace then -- Namespace::packageImport : PackageImport return AMF.CMOF.Package_Imports.Collections.CMOF_Package_Import_Collections.Internals.To_Holder (AMF.CMOF.Classes.CMOF_Class_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Package_Import); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Named_Element_Qualified_Name then -- NamedElement::qualifiedName : String return AMF.Holders.To_Holder (AMF.CMOF.Classes.CMOF_Class_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Qualified_Name); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Class_Super_Class_A_Class then -- Class::superClass : Class return AMF.CMOF.Classes.Collections.CMOF_Class_Collections.Internals.To_Holder (AMF.CMOF.Classes.CMOF_Class_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Super_Class); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Named_Element_Visibility then -- NamedElement::visibility : VisibilityKind return AMF.CMOF.Holders.To_Holder (AMF.CMOF.Classes.CMOF_Class_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Visibility); else raise Program_Error; end if; end CMOF_Class_Get; ---------------------- -- CMOF_Comment_Get -- ---------------------- function CMOF_Comment_Get return League.Holders.Holder is begin if Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Comment_Annotated_Element_A_Comment then -- Comment::annotatedElement : Element return AMF.CMOF.Elements.Collections.CMOF_Element_Collections.Internals.To_Holder (AMF.CMOF.Comments.CMOF_Comment_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Annotated_Element); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Comment_Body then -- Comment::body : String return AMF.Holders.To_Holder (AMF.CMOF.Comments.CMOF_Comment_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Body); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Comment_A_Owning_Element then -- Element::ownedComment : Comment return AMF.CMOF.Comments.Collections.CMOF_Comment_Collections.Internals.To_Holder (AMF.CMOF.Comments.CMOF_Comment_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Owned_Comment); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Element_Element_Owner then -- Element::ownedElement : Element return AMF.CMOF.Elements.Collections.CMOF_Element_Collections.Internals.To_Holder (AMF.CMOF.Comments.CMOF_Comment_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Owned_Element); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owner_Element_Owned_Element then -- Element::owner : Element return AMF.Internals.Holders.CMOF_Holders.To_Holder (AMF.CMOF.Elements.CMOF_Element_Access' (AMF.CMOF.Comments.CMOF_Comment_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Owner)); else raise Program_Error; end if; end CMOF_Comment_Get; ------------------------- -- CMOF_Constraint_Get -- ------------------------- function CMOF_Constraint_Get return League.Holders.Holder is begin if Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Constraint_Constrained_Element_A_Constraint then -- Constraint::constrainedElement : Element return AMF.CMOF.Elements.Collections.CMOF_Element_Collections.Internals.To_Holder (AMF.CMOF.Constraints.CMOF_Constraint_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Constrained_Element); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Constraint_Context_Namespace_Owned_Rule then -- Constraint::context : Namespace return AMF.Internals.Holders.CMOF_Holders.To_Holder (AMF.CMOF.Namespaces.CMOF_Namespace_Access' (AMF.CMOF.Constraints.CMOF_Constraint_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Context)); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Named_Element_Name then -- NamedElement::name : String return AMF.Holders.To_Holder (AMF.CMOF.Constraints.CMOF_Constraint_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Name); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Named_Element_Namespace_Namespace_Owned_Member then -- NamedElement::namespace : Namespace return AMF.Internals.Holders.CMOF_Holders.To_Holder (AMF.CMOF.Namespaces.CMOF_Namespace_Access' (AMF.CMOF.Constraints.CMOF_Constraint_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Namespace)); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Comment_A_Owning_Element then -- Element::ownedComment : Comment return AMF.CMOF.Comments.Collections.CMOF_Comment_Collections.Internals.To_Holder (AMF.CMOF.Constraints.CMOF_Constraint_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Owned_Comment); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Element_Element_Owner then -- Element::ownedElement : Element return AMF.CMOF.Elements.Collections.CMOF_Element_Collections.Internals.To_Holder (AMF.CMOF.Constraints.CMOF_Constraint_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Owned_Element); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owner_Element_Owned_Element then -- Element::owner : Element return AMF.Internals.Holders.CMOF_Holders.To_Holder (AMF.CMOF.Elements.CMOF_Element_Access' (AMF.CMOF.Constraints.CMOF_Constraint_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Owner)); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Named_Element_Qualified_Name then -- NamedElement::qualifiedName : String return AMF.Holders.To_Holder (AMF.CMOF.Constraints.CMOF_Constraint_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Qualified_Name); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Constraint_Specification_A_Owning_Constraint then -- Constraint::specification : ValueSpecification return AMF.Internals.Holders.CMOF_Holders.To_Holder (AMF.CMOF.Value_Specifications.CMOF_Value_Specification_Access' (AMF.CMOF.Constraints.CMOF_Constraint_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Specification)); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Named_Element_Visibility then -- NamedElement::visibility : VisibilityKind return AMF.CMOF.Holders.To_Holder (AMF.CMOF.Constraints.CMOF_Constraint_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Visibility); else raise Program_Error; end if; end CMOF_Constraint_Get; ------------------------ -- CMOF_Data_Type_Get -- ------------------------ function CMOF_Data_Type_Get return League.Holders.Holder is begin if Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Classifier_Attribute_A_Classifier then -- Classifier::attribute : Property return AMF.CMOF.Properties.Collections.CMOF_Property_Collections.Internals.To_Holder (AMF.CMOF.Data_Types.CMOF_Data_Type_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Attribute); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Element_Import_Element_Import_Importing_Namespace then -- Namespace::elementImport : ElementImport return AMF.CMOF.Element_Imports.Collections.CMOF_Element_Import_Collections.Internals.To_Holder (AMF.CMOF.Data_Types.CMOF_Data_Type_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Element_Import); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Classifier_Feature_Feature_Featuring_Classifier then -- Classifier::feature : Feature return AMF.CMOF.Features.Collections.CMOF_Feature_Collections.Internals.To_Holder (AMF.CMOF.Data_Types.CMOF_Data_Type_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Feature); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Classifier_General_A_Classifier then -- Classifier::general : Classifier return AMF.CMOF.Classifiers.Collections.CMOF_Classifier_Collections.Internals.To_Holder (AMF.CMOF.Data_Types.CMOF_Data_Type_Access (AMF.Internals.Helpers.To_Element (Self)).Get_General); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Imported_Member_A_Namespace then -- Namespace::importedMember : PackageableElement return AMF.CMOF.Packageable_Elements.Collections.CMOF_Packageable_Element_Collections.Internals.To_Holder (AMF.CMOF.Data_Types.CMOF_Data_Type_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Imported_Member); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Classifier_Inherited_Member_A_Classifier then -- Classifier::inheritedMember : NamedElement return AMF.CMOF.Named_Elements.Collections.CMOF_Named_Element_Collections.Internals.To_Holder (AMF.CMOF.Data_Types.CMOF_Data_Type_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Inherited_Member); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Classifier_Is_Final_Specialization then -- Classifier::isFinalSpecialization : Boolean return League.Holders.Booleans.To_Holder (AMF.CMOF.Data_Types.CMOF_Data_Type_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Is_Final_Specialization); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Member_A_Namespace then -- Namespace::member : NamedElement return AMF.CMOF.Named_Elements.Collections.CMOF_Named_Element_Collections.Internals.To_Holder (AMF.CMOF.Data_Types.CMOF_Data_Type_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Member); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Named_Element_Name then -- NamedElement::name : String return AMF.Holders.To_Holder (AMF.CMOF.Data_Types.CMOF_Data_Type_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Name); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Named_Element_Namespace_Namespace_Owned_Member then -- NamedElement::namespace : Namespace return AMF.Internals.Holders.CMOF_Holders.To_Holder (AMF.CMOF.Namespaces.CMOF_Namespace_Access' (AMF.CMOF.Data_Types.CMOF_Data_Type_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Namespace)); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Data_Type_Owned_Attribute_Property_Datatype then -- DataType::ownedAttribute : Property return AMF.CMOF.Properties.Collections.CMOF_Property_Collections.Internals.To_Holder (AMF.CMOF.Data_Types.CMOF_Data_Type_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Owned_Attribute); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Comment_A_Owning_Element then -- Element::ownedComment : Comment return AMF.CMOF.Comments.Collections.CMOF_Comment_Collections.Internals.To_Holder (AMF.CMOF.Data_Types.CMOF_Data_Type_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Owned_Comment); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Element_Element_Owner then -- Element::ownedElement : Element return AMF.CMOF.Elements.Collections.CMOF_Element_Collections.Internals.To_Holder (AMF.CMOF.Data_Types.CMOF_Data_Type_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Owned_Element); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Owned_Member_Named_Element_Namespace then -- Namespace::ownedMember : NamedElement return AMF.CMOF.Named_Elements.Collections.CMOF_Named_Element_Collections.Internals.To_Holder (AMF.CMOF.Data_Types.CMOF_Data_Type_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Owned_Member); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Data_Type_Owned_Operation_Operation_Datatype then -- DataType::ownedOperation : Operation return AMF.CMOF.Operations.Collections.CMOF_Operation_Collections.Internals.To_Holder (AMF.CMOF.Data_Types.CMOF_Data_Type_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Owned_Operation); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Owned_Rule_Constraint_Context then -- Namespace::ownedRule : Constraint return AMF.CMOF.Constraints.Collections.CMOF_Constraint_Collections.Internals.To_Holder (AMF.CMOF.Data_Types.CMOF_Data_Type_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Owned_Rule); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owner_Element_Owned_Element then -- Element::owner : Element return AMF.Internals.Holders.CMOF_Holders.To_Holder (AMF.CMOF.Elements.CMOF_Element_Access' (AMF.CMOF.Data_Types.CMOF_Data_Type_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Owner)); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Type_Package_Package_Owned_Type then -- Type::package : Package return AMF.Internals.Holders.CMOF_Holders.To_Holder (AMF.CMOF.Packages.CMOF_Package_Access' (AMF.CMOF.Data_Types.CMOF_Data_Type_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Package)); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Package_Import_Package_Import_Importing_Namespace then -- Namespace::packageImport : PackageImport return AMF.CMOF.Package_Imports.Collections.CMOF_Package_Import_Collections.Internals.To_Holder (AMF.CMOF.Data_Types.CMOF_Data_Type_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Package_Import); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Named_Element_Qualified_Name then -- NamedElement::qualifiedName : String return AMF.Holders.To_Holder (AMF.CMOF.Data_Types.CMOF_Data_Type_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Qualified_Name); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Named_Element_Visibility then -- NamedElement::visibility : VisibilityKind return AMF.CMOF.Holders.To_Holder (AMF.CMOF.Data_Types.CMOF_Data_Type_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Visibility); else raise Program_Error; end if; end CMOF_Data_Type_Get; ----------------------------- -- CMOF_Element_Import_Get -- ----------------------------- function CMOF_Element_Import_Get return League.Holders.Holder is begin if Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Import_Alias then -- ElementImport::alias : String return AMF.Holders.To_Holder (AMF.CMOF.Element_Imports.CMOF_Element_Import_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Alias); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Import_Imported_Element_A_Element_Import then -- ElementImport::importedElement : PackageableElement return AMF.Internals.Holders.CMOF_Holders.To_Holder (AMF.CMOF.Packageable_Elements.CMOF_Packageable_Element_Access' (AMF.CMOF.Element_Imports.CMOF_Element_Import_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Imported_Element)); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Import_Importing_Namespace_Namespace_Element_Import then -- ElementImport::importingNamespace : Namespace return AMF.Internals.Holders.CMOF_Holders.To_Holder (AMF.CMOF.Namespaces.CMOF_Namespace_Access' (AMF.CMOF.Element_Imports.CMOF_Element_Import_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Importing_Namespace)); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Comment_A_Owning_Element then -- Element::ownedComment : Comment return AMF.CMOF.Comments.Collections.CMOF_Comment_Collections.Internals.To_Holder (AMF.CMOF.Element_Imports.CMOF_Element_Import_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Owned_Comment); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Element_Element_Owner then -- Element::ownedElement : Element return AMF.CMOF.Elements.Collections.CMOF_Element_Collections.Internals.To_Holder (AMF.CMOF.Element_Imports.CMOF_Element_Import_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Owned_Element); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owner_Element_Owned_Element then -- Element::owner : Element return AMF.Internals.Holders.CMOF_Holders.To_Holder (AMF.CMOF.Elements.CMOF_Element_Access' (AMF.CMOF.Element_Imports.CMOF_Element_Import_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Owner)); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Relationship_Related_Element_A_Relationship then -- Relationship::relatedElement : Element return AMF.CMOF.Elements.Collections.CMOF_Element_Collections.Internals.To_Holder (AMF.CMOF.Element_Imports.CMOF_Element_Import_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Related_Element); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Directed_Relationship_Source_A_Directed_Relationship then -- DirectedRelationship::source : Element return AMF.CMOF.Elements.Collections.CMOF_Element_Collections.Internals.To_Holder (AMF.CMOF.Element_Imports.CMOF_Element_Import_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Source); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Directed_Relationship_Target_A_Directed_Relationship then -- DirectedRelationship::target : Element return AMF.CMOF.Elements.Collections.CMOF_Element_Collections.Internals.To_Holder (AMF.CMOF.Element_Imports.CMOF_Element_Import_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Target); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Import_Visibility then -- ElementImport::visibility : VisibilityKind return AMF.CMOF.Holders.Visibility_Kinds.To_Holder (AMF.CMOF.Element_Imports.CMOF_Element_Import_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Visibility); else raise Program_Error; end if; end CMOF_Element_Import_Get; -------------------------- -- CMOF_Enumeration_Get -- -------------------------- function CMOF_Enumeration_Get return League.Holders.Holder is begin if Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Classifier_Attribute_A_Classifier then -- Classifier::attribute : Property return AMF.CMOF.Properties.Collections.CMOF_Property_Collections.Internals.To_Holder (AMF.CMOF.Enumerations.CMOF_Enumeration_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Attribute); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Element_Import_Element_Import_Importing_Namespace then -- Namespace::elementImport : ElementImport return AMF.CMOF.Element_Imports.Collections.CMOF_Element_Import_Collections.Internals.To_Holder (AMF.CMOF.Enumerations.CMOF_Enumeration_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Element_Import); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Classifier_Feature_Feature_Featuring_Classifier then -- Classifier::feature : Feature return AMF.CMOF.Features.Collections.CMOF_Feature_Collections.Internals.To_Holder (AMF.CMOF.Enumerations.CMOF_Enumeration_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Feature); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Classifier_General_A_Classifier then -- Classifier::general : Classifier return AMF.CMOF.Classifiers.Collections.CMOF_Classifier_Collections.Internals.To_Holder (AMF.CMOF.Enumerations.CMOF_Enumeration_Access (AMF.Internals.Helpers.To_Element (Self)).Get_General); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Imported_Member_A_Namespace then -- Namespace::importedMember : PackageableElement return AMF.CMOF.Packageable_Elements.Collections.CMOF_Packageable_Element_Collections.Internals.To_Holder (AMF.CMOF.Enumerations.CMOF_Enumeration_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Imported_Member); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Classifier_Inherited_Member_A_Classifier then -- Classifier::inheritedMember : NamedElement return AMF.CMOF.Named_Elements.Collections.CMOF_Named_Element_Collections.Internals.To_Holder (AMF.CMOF.Enumerations.CMOF_Enumeration_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Inherited_Member); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Classifier_Is_Final_Specialization then -- Classifier::isFinalSpecialization : Boolean return League.Holders.Booleans.To_Holder (AMF.CMOF.Enumerations.CMOF_Enumeration_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Is_Final_Specialization); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Member_A_Namespace then -- Namespace::member : NamedElement return AMF.CMOF.Named_Elements.Collections.CMOF_Named_Element_Collections.Internals.To_Holder (AMF.CMOF.Enumerations.CMOF_Enumeration_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Member); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Named_Element_Name then -- NamedElement::name : String return AMF.Holders.To_Holder (AMF.CMOF.Enumerations.CMOF_Enumeration_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Name); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Named_Element_Namespace_Namespace_Owned_Member then -- NamedElement::namespace : Namespace return AMF.Internals.Holders.CMOF_Holders.To_Holder (AMF.CMOF.Namespaces.CMOF_Namespace_Access' (AMF.CMOF.Enumerations.CMOF_Enumeration_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Namespace)); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Data_Type_Owned_Attribute_Property_Datatype then -- DataType::ownedAttribute : Property return AMF.CMOF.Properties.Collections.CMOF_Property_Collections.Internals.To_Holder (AMF.CMOF.Enumerations.CMOF_Enumeration_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Owned_Attribute); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Comment_A_Owning_Element then -- Element::ownedComment : Comment return AMF.CMOF.Comments.Collections.CMOF_Comment_Collections.Internals.To_Holder (AMF.CMOF.Enumerations.CMOF_Enumeration_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Owned_Comment); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Element_Element_Owner then -- Element::ownedElement : Element return AMF.CMOF.Elements.Collections.CMOF_Element_Collections.Internals.To_Holder (AMF.CMOF.Enumerations.CMOF_Enumeration_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Owned_Element); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Enumeration_Owned_Literal_Enumeration_Literal_Enumeration then -- Enumeration::ownedLiteral : EnumerationLiteral return AMF.CMOF.Enumeration_Literals.Collections.CMOF_Enumeration_Literal_Collections.Internals.To_Holder (AMF.CMOF.Enumerations.CMOF_Enumeration_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Owned_Literal); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Owned_Member_Named_Element_Namespace then -- Namespace::ownedMember : NamedElement return AMF.CMOF.Named_Elements.Collections.CMOF_Named_Element_Collections.Internals.To_Holder (AMF.CMOF.Enumerations.CMOF_Enumeration_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Owned_Member); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Data_Type_Owned_Operation_Operation_Datatype then -- DataType::ownedOperation : Operation return AMF.CMOF.Operations.Collections.CMOF_Operation_Collections.Internals.To_Holder (AMF.CMOF.Enumerations.CMOF_Enumeration_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Owned_Operation); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Owned_Rule_Constraint_Context then -- Namespace::ownedRule : Constraint return AMF.CMOF.Constraints.Collections.CMOF_Constraint_Collections.Internals.To_Holder (AMF.CMOF.Enumerations.CMOF_Enumeration_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Owned_Rule); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owner_Element_Owned_Element then -- Element::owner : Element return AMF.Internals.Holders.CMOF_Holders.To_Holder (AMF.CMOF.Elements.CMOF_Element_Access' (AMF.CMOF.Enumerations.CMOF_Enumeration_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Owner)); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Type_Package_Package_Owned_Type then -- Type::package : Package return AMF.Internals.Holders.CMOF_Holders.To_Holder (AMF.CMOF.Packages.CMOF_Package_Access' (AMF.CMOF.Enumerations.CMOF_Enumeration_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Package)); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Package_Import_Package_Import_Importing_Namespace then -- Namespace::packageImport : PackageImport return AMF.CMOF.Package_Imports.Collections.CMOF_Package_Import_Collections.Internals.To_Holder (AMF.CMOF.Enumerations.CMOF_Enumeration_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Package_Import); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Named_Element_Qualified_Name then -- NamedElement::qualifiedName : String return AMF.Holders.To_Holder (AMF.CMOF.Enumerations.CMOF_Enumeration_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Qualified_Name); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Named_Element_Visibility then -- NamedElement::visibility : VisibilityKind return AMF.CMOF.Holders.To_Holder (AMF.CMOF.Enumerations.CMOF_Enumeration_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Visibility); else raise Program_Error; end if; end CMOF_Enumeration_Get; ---------------------------------- -- CMOF_Enumeration_Literal_Get -- ---------------------------------- function CMOF_Enumeration_Literal_Get return League.Holders.Holder is begin if Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Enumeration_Literal_Enumeration_Enumeration_Owned_Literal then -- EnumerationLiteral::enumeration : Enumeration return AMF.Internals.Holders.CMOF_Holders.To_Holder (AMF.CMOF.Enumerations.CMOF_Enumeration_Access' (AMF.CMOF.Enumeration_Literals.CMOF_Enumeration_Literal_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Enumeration)); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Named_Element_Name then -- NamedElement::name : String return AMF.Holders.To_Holder (AMF.CMOF.Enumeration_Literals.CMOF_Enumeration_Literal_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Name); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Named_Element_Namespace_Namespace_Owned_Member then -- NamedElement::namespace : Namespace return AMF.Internals.Holders.CMOF_Holders.To_Holder (AMF.CMOF.Namespaces.CMOF_Namespace_Access' (AMF.CMOF.Enumeration_Literals.CMOF_Enumeration_Literal_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Namespace)); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Comment_A_Owning_Element then -- Element::ownedComment : Comment return AMF.CMOF.Comments.Collections.CMOF_Comment_Collections.Internals.To_Holder (AMF.CMOF.Enumeration_Literals.CMOF_Enumeration_Literal_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Owned_Comment); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Element_Element_Owner then -- Element::ownedElement : Element return AMF.CMOF.Elements.Collections.CMOF_Element_Collections.Internals.To_Holder (AMF.CMOF.Enumeration_Literals.CMOF_Enumeration_Literal_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Owned_Element); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owner_Element_Owned_Element then -- Element::owner : Element return AMF.Internals.Holders.CMOF_Holders.To_Holder (AMF.CMOF.Elements.CMOF_Element_Access' (AMF.CMOF.Enumeration_Literals.CMOF_Enumeration_Literal_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Owner)); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Named_Element_Qualified_Name then -- NamedElement::qualifiedName : String return AMF.Holders.To_Holder (AMF.CMOF.Enumeration_Literals.CMOF_Enumeration_Literal_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Qualified_Name); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Named_Element_Visibility then -- NamedElement::visibility : VisibilityKind return AMF.CMOF.Holders.To_Holder (AMF.CMOF.Enumeration_Literals.CMOF_Enumeration_Literal_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Visibility); else raise Program_Error; end if; end CMOF_Enumeration_Literal_Get; ------------------------- -- CMOF_Expression_Get -- ------------------------- function CMOF_Expression_Get return League.Holders.Holder is begin if Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Named_Element_Name then -- NamedElement::name : String return AMF.Holders.To_Holder (AMF.CMOF.Expressions.CMOF_Expression_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Name); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Named_Element_Namespace_Namespace_Owned_Member then -- NamedElement::namespace : Namespace return AMF.Internals.Holders.CMOF_Holders.To_Holder (AMF.CMOF.Namespaces.CMOF_Namespace_Access' (AMF.CMOF.Expressions.CMOF_Expression_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Namespace)); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Expression_Operand_A_Expression then -- Expression::operand : ValueSpecification return AMF.CMOF.Value_Specifications.Collections.CMOF_Value_Specification_Collections.Internals.To_Holder (AMF.CMOF.Expressions.CMOF_Expression_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Operand); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Comment_A_Owning_Element then -- Element::ownedComment : Comment return AMF.CMOF.Comments.Collections.CMOF_Comment_Collections.Internals.To_Holder (AMF.CMOF.Expressions.CMOF_Expression_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Owned_Comment); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Element_Element_Owner then -- Element::ownedElement : Element return AMF.CMOF.Elements.Collections.CMOF_Element_Collections.Internals.To_Holder (AMF.CMOF.Expressions.CMOF_Expression_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Owned_Element); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owner_Element_Owned_Element then -- Element::owner : Element return AMF.Internals.Holders.CMOF_Holders.To_Holder (AMF.CMOF.Elements.CMOF_Element_Access' (AMF.CMOF.Expressions.CMOF_Expression_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Owner)); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Named_Element_Qualified_Name then -- NamedElement::qualifiedName : String return AMF.Holders.To_Holder (AMF.CMOF.Expressions.CMOF_Expression_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Qualified_Name); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Typed_Element_Type_A_Typed_Element then -- TypedElement::type : Type return AMF.Internals.Holders.CMOF_Holders.To_Holder (AMF.CMOF.Types.CMOF_Type_Access' (AMF.CMOF.Expressions.CMOF_Expression_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Type)); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Named_Element_Visibility then -- NamedElement::visibility : VisibilityKind return AMF.CMOF.Holders.To_Holder (AMF.CMOF.Expressions.CMOF_Expression_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Visibility); else raise Program_Error; end if; end CMOF_Expression_Get; -------------------------------- -- CMOF_Opaque_Expression_Get -- -------------------------------- function CMOF_Opaque_Expression_Get return League.Holders.Holder is begin if Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Opaque_Expression_Body then -- OpaqueExpression::body : String return AMF.String_Collections.Internals.To_Holder (AMF.CMOF.Opaque_Expressions.CMOF_Opaque_Expression_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Body); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Opaque_Expression_Language then -- OpaqueExpression::language : String return AMF.String_Collections.Internals.To_Holder (AMF.CMOF.Opaque_Expressions.CMOF_Opaque_Expression_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Language); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Named_Element_Name then -- NamedElement::name : String return AMF.Holders.To_Holder (AMF.CMOF.Opaque_Expressions.CMOF_Opaque_Expression_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Name); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Named_Element_Namespace_Namespace_Owned_Member then -- NamedElement::namespace : Namespace return AMF.Internals.Holders.CMOF_Holders.To_Holder (AMF.CMOF.Namespaces.CMOF_Namespace_Access' (AMF.CMOF.Opaque_Expressions.CMOF_Opaque_Expression_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Namespace)); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Comment_A_Owning_Element then -- Element::ownedComment : Comment return AMF.CMOF.Comments.Collections.CMOF_Comment_Collections.Internals.To_Holder (AMF.CMOF.Opaque_Expressions.CMOF_Opaque_Expression_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Owned_Comment); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Element_Element_Owner then -- Element::ownedElement : Element return AMF.CMOF.Elements.Collections.CMOF_Element_Collections.Internals.To_Holder (AMF.CMOF.Opaque_Expressions.CMOF_Opaque_Expression_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Owned_Element); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owner_Element_Owned_Element then -- Element::owner : Element return AMF.Internals.Holders.CMOF_Holders.To_Holder (AMF.CMOF.Elements.CMOF_Element_Access' (AMF.CMOF.Opaque_Expressions.CMOF_Opaque_Expression_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Owner)); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Named_Element_Qualified_Name then -- NamedElement::qualifiedName : String return AMF.Holders.To_Holder (AMF.CMOF.Opaque_Expressions.CMOF_Opaque_Expression_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Qualified_Name); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Typed_Element_Type_A_Typed_Element then -- TypedElement::type : Type return AMF.Internals.Holders.CMOF_Holders.To_Holder (AMF.CMOF.Types.CMOF_Type_Access' (AMF.CMOF.Opaque_Expressions.CMOF_Opaque_Expression_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Type)); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Named_Element_Visibility then -- NamedElement::visibility : VisibilityKind return AMF.CMOF.Holders.To_Holder (AMF.CMOF.Opaque_Expressions.CMOF_Opaque_Expression_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Visibility); else raise Program_Error; end if; end CMOF_Opaque_Expression_Get; ------------------------ -- CMOF_Operation_Get -- ------------------------ function CMOF_Operation_Get return League.Holders.Holder is begin if Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Operation_Body_Condition_A_Body_Context then -- Operation::bodyCondition : Constraint return AMF.Internals.Holders.CMOF_Holders.To_Holder (AMF.CMOF.Constraints.CMOF_Constraint_Access' (AMF.CMOF.Operations.CMOF_Operation_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Body_Condition)); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Operation_Class_Class_Owned_Operation then -- Operation::class : Class return AMF.Internals.Holders.CMOF_Holders.To_Holder (AMF.CMOF.Classes.CMOF_Class_Access' (AMF.CMOF.Operations.CMOF_Operation_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Class)); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Operation_Datatype_Data_Type_Owned_Operation then -- Operation::datatype : DataType return AMF.Internals.Holders.CMOF_Holders.To_Holder (AMF.CMOF.Data_Types.CMOF_Data_Type_Access' (AMF.CMOF.Operations.CMOF_Operation_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Datatype)); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Element_Import_Element_Import_Importing_Namespace then -- Namespace::elementImport : ElementImport return AMF.CMOF.Element_Imports.Collections.CMOF_Element_Import_Collections.Internals.To_Holder (AMF.CMOF.Operations.CMOF_Operation_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Element_Import); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Feature_Featuring_Classifier_Classifier_Feature then -- Feature::featuringClassifier : Classifier return AMF.CMOF.Classifiers.Collections.CMOF_Classifier_Collections.Internals.To_Holder (AMF.CMOF.Operations.CMOF_Operation_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Featuring_Classifier); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Imported_Member_A_Namespace then -- Namespace::importedMember : PackageableElement return AMF.CMOF.Packageable_Elements.Collections.CMOF_Packageable_Element_Collections.Internals.To_Holder (AMF.CMOF.Operations.CMOF_Operation_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Imported_Member); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Redefinable_Element_Is_Leaf then -- RedefinableElement::isLeaf : Boolean return League.Holders.Booleans.To_Holder (AMF.CMOF.Operations.CMOF_Operation_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Is_Leaf); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Operation_Is_Ordered then -- Operation::isOrdered : Boolean return League.Holders.Booleans.To_Holder (AMF.CMOF.Operations.CMOF_Operation_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Is_Ordered); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Operation_Is_Query then -- Operation::isQuery : Boolean return League.Holders.Booleans.To_Holder (AMF.CMOF.Operations.CMOF_Operation_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Is_Query); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Operation_Is_Unique then -- Operation::isUnique : Boolean return League.Holders.Booleans.To_Holder (AMF.CMOF.Operations.CMOF_Operation_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Is_Unique); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Operation_Lower then -- Operation::lower : Integer return AMF.Holders.To_Holder (AMF.CMOF.Operations.CMOF_Operation_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Lower); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Member_A_Namespace then -- Namespace::member : NamedElement return AMF.CMOF.Named_Elements.Collections.CMOF_Named_Element_Collections.Internals.To_Holder (AMF.CMOF.Operations.CMOF_Operation_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Member); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Named_Element_Name then -- NamedElement::name : String return AMF.Holders.To_Holder (AMF.CMOF.Operations.CMOF_Operation_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Name); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Named_Element_Namespace_Namespace_Owned_Member then -- NamedElement::namespace : Namespace return AMF.Internals.Holders.CMOF_Holders.To_Holder (AMF.CMOF.Namespaces.CMOF_Namespace_Access' (AMF.CMOF.Operations.CMOF_Operation_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Namespace)); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Comment_A_Owning_Element then -- Element::ownedComment : Comment return AMF.CMOF.Comments.Collections.CMOF_Comment_Collections.Internals.To_Holder (AMF.CMOF.Operations.CMOF_Operation_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Owned_Comment); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Element_Element_Owner then -- Element::ownedElement : Element return AMF.CMOF.Elements.Collections.CMOF_Element_Collections.Internals.To_Holder (AMF.CMOF.Operations.CMOF_Operation_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Owned_Element); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Owned_Member_Named_Element_Namespace then -- Namespace::ownedMember : NamedElement return AMF.CMOF.Named_Elements.Collections.CMOF_Named_Element_Collections.Internals.To_Holder (AMF.CMOF.Operations.CMOF_Operation_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Owned_Member); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Operation_Owned_Parameter_Parameter_Operation then -- Operation::ownedParameter : Parameter return AMF.CMOF.Parameters.Collections.CMOF_Parameter_Collections.Internals.To_Holder (AMF.CMOF.Operations.CMOF_Operation_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Owned_Parameter); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Behavioral_Feature_Owned_Parameter_A_Owner_Formal_Param then -- BehavioralFeature::ownedParameter : Parameter return AMF.CMOF.Parameters.Collections.CMOF_Parameter_Collections.Internals.To_Holder (AMF.CMOF.Operations.CMOF_Operation_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Owned_Parameter); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Owned_Rule_Constraint_Context then -- Namespace::ownedRule : Constraint return AMF.CMOF.Constraints.Collections.CMOF_Constraint_Collections.Internals.To_Holder (AMF.CMOF.Operations.CMOF_Operation_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Owned_Rule); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owner_Element_Owned_Element then -- Element::owner : Element return AMF.Internals.Holders.CMOF_Holders.To_Holder (AMF.CMOF.Elements.CMOF_Element_Access' (AMF.CMOF.Operations.CMOF_Operation_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Owner)); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Package_Import_Package_Import_Importing_Namespace then -- Namespace::packageImport : PackageImport return AMF.CMOF.Package_Imports.Collections.CMOF_Package_Import_Collections.Internals.To_Holder (AMF.CMOF.Operations.CMOF_Operation_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Package_Import); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Operation_Postcondition_A_Post_Context then -- Operation::postcondition : Constraint return AMF.CMOF.Constraints.Collections.CMOF_Constraint_Collections.Internals.To_Holder (AMF.CMOF.Operations.CMOF_Operation_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Postcondition); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Operation_Precondition_A_Pre_Context then -- Operation::precondition : Constraint return AMF.CMOF.Constraints.Collections.CMOF_Constraint_Collections.Internals.To_Holder (AMF.CMOF.Operations.CMOF_Operation_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Precondition); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Named_Element_Qualified_Name then -- NamedElement::qualifiedName : String return AMF.Holders.To_Holder (AMF.CMOF.Operations.CMOF_Operation_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Qualified_Name); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Operation_Raised_Exception_A_Operation then -- Operation::raisedException : Type return AMF.CMOF.Types.Collections.CMOF_Type_Collections.Internals.To_Holder (AMF.CMOF.Operations.CMOF_Operation_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Raised_Exception); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Behavioral_Feature_Raised_Exception_A_Behavioral_Feature then -- BehavioralFeature::raisedException : Type return AMF.CMOF.Types.Collections.CMOF_Type_Collections.Internals.To_Holder (AMF.CMOF.Operations.CMOF_Operation_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Raised_Exception); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Redefinable_Element_Redefined_Element_A_Redefinable_Element then -- RedefinableElement::redefinedElement : RedefinableElement return AMF.CMOF.Redefinable_Elements.Collections.CMOF_Redefinable_Element_Collections.Internals.To_Holder (AMF.CMOF.Operations.CMOF_Operation_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Redefined_Element); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Operation_Redefined_Operation_A_Operation then -- Operation::redefinedOperation : Operation return AMF.CMOF.Operations.Collections.CMOF_Operation_Collections.Internals.To_Holder (AMF.CMOF.Operations.CMOF_Operation_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Redefined_Operation); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Redefinable_Element_Redefinition_Context_A_Redefinable_Element then -- RedefinableElement::redefinitionContext : Classifier return AMF.CMOF.Classifiers.Collections.CMOF_Classifier_Collections.Internals.To_Holder (AMF.CMOF.Operations.CMOF_Operation_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Redefinition_Context); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Operation_Type_A_Operation then -- Operation::type : Type return AMF.Internals.Holders.CMOF_Holders.To_Holder (AMF.CMOF.Types.CMOF_Type_Access' (AMF.CMOF.Operations.CMOF_Operation_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Type)); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Operation_Upper then -- Operation::upper : UnlimitedNatural return AMF.Holders.To_Holder (AMF.CMOF.Operations.CMOF_Operation_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Upper); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Named_Element_Visibility then -- NamedElement::visibility : VisibilityKind return AMF.CMOF.Holders.To_Holder (AMF.CMOF.Operations.CMOF_Operation_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Visibility); else raise Program_Error; end if; end CMOF_Operation_Get; ---------------------- -- CMOF_Package_Get -- ---------------------- function CMOF_Package_Get return League.Holders.Holder is begin if Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Element_Import_Element_Import_Importing_Namespace then -- Namespace::elementImport : ElementImport return AMF.CMOF.Element_Imports.Collections.CMOF_Element_Import_Collections.Internals.To_Holder (AMF.CMOF.Packages.CMOF_Package_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Element_Import); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Imported_Member_A_Namespace then -- Namespace::importedMember : PackageableElement return AMF.CMOF.Packageable_Elements.Collections.CMOF_Packageable_Element_Collections.Internals.To_Holder (AMF.CMOF.Packages.CMOF_Package_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Imported_Member); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Member_A_Namespace then -- Namespace::member : NamedElement return AMF.CMOF.Named_Elements.Collections.CMOF_Named_Element_Collections.Internals.To_Holder (AMF.CMOF.Packages.CMOF_Package_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Member); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Named_Element_Name then -- NamedElement::name : String return AMF.Holders.To_Holder (AMF.CMOF.Packages.CMOF_Package_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Name); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Named_Element_Namespace_Namespace_Owned_Member then -- NamedElement::namespace : Namespace return AMF.Internals.Holders.CMOF_Holders.To_Holder (AMF.CMOF.Namespaces.CMOF_Namespace_Access' (AMF.CMOF.Packages.CMOF_Package_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Namespace)); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Package_Nested_Package_Package_Nesting_Package then -- Package::nestedPackage : Package return AMF.CMOF.Packages.Collections.CMOF_Package_Collections.Internals.To_Holder (AMF.CMOF.Packages.CMOF_Package_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Nested_Package); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Package_Nesting_Package_Package_Nested_Package then -- Package::nestingPackage : Package return AMF.Internals.Holders.CMOF_Holders.To_Holder (AMF.CMOF.Packages.CMOF_Package_Access' (AMF.CMOF.Packages.CMOF_Package_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Nesting_Package)); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Comment_A_Owning_Element then -- Element::ownedComment : Comment return AMF.CMOF.Comments.Collections.CMOF_Comment_Collections.Internals.To_Holder (AMF.CMOF.Packages.CMOF_Package_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Owned_Comment); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Element_Element_Owner then -- Element::ownedElement : Element return AMF.CMOF.Elements.Collections.CMOF_Element_Collections.Internals.To_Holder (AMF.CMOF.Packages.CMOF_Package_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Owned_Element); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Owned_Member_Named_Element_Namespace then -- Namespace::ownedMember : NamedElement return AMF.CMOF.Named_Elements.Collections.CMOF_Named_Element_Collections.Internals.To_Holder (AMF.CMOF.Packages.CMOF_Package_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Owned_Member); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Owned_Rule_Constraint_Context then -- Namespace::ownedRule : Constraint return AMF.CMOF.Constraints.Collections.CMOF_Constraint_Collections.Internals.To_Holder (AMF.CMOF.Packages.CMOF_Package_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Owned_Rule); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Package_Owned_Type_Type_Package then -- Package::ownedType : Type return AMF.CMOF.Types.Collections.CMOF_Type_Collections.Internals.To_Holder (AMF.CMOF.Packages.CMOF_Package_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Owned_Type); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owner_Element_Owned_Element then -- Element::owner : Element return AMF.Internals.Holders.CMOF_Holders.To_Holder (AMF.CMOF.Elements.CMOF_Element_Access' (AMF.CMOF.Packages.CMOF_Package_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Owner)); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Package_Import_Package_Import_Importing_Namespace then -- Namespace::packageImport : PackageImport return AMF.CMOF.Package_Imports.Collections.CMOF_Package_Import_Collections.Internals.To_Holder (AMF.CMOF.Packages.CMOF_Package_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Package_Import); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Package_Package_Merge_Package_Merge_Receiving_Package then -- Package::packageMerge : PackageMerge return AMF.CMOF.Package_Merges.Collections.CMOF_Package_Merge_Collections.Internals.To_Holder (AMF.CMOF.Packages.CMOF_Package_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Package_Merge); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Package_Packaged_Element_A_Owning_Package then -- Package::packagedElement : PackageableElement return AMF.CMOF.Packageable_Elements.Collections.CMOF_Packageable_Element_Collections.Internals.To_Holder (AMF.CMOF.Packages.CMOF_Package_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Packaged_Element); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Named_Element_Qualified_Name then -- NamedElement::qualifiedName : String return AMF.Holders.To_Holder (AMF.CMOF.Packages.CMOF_Package_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Qualified_Name); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Package_Uri then -- Package::uri : String return AMF.Holders.To_Holder (AMF.CMOF.Packages.CMOF_Package_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Uri); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Named_Element_Visibility then -- NamedElement::visibility : VisibilityKind return AMF.CMOF.Holders.To_Holder (AMF.CMOF.Packages.CMOF_Package_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Visibility); else raise Program_Error; end if; end CMOF_Package_Get; ----------------------------- -- CMOF_Package_Import_Get -- ----------------------------- function CMOF_Package_Import_Get return League.Holders.Holder is begin if Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Package_Import_Imported_Package_A_Package_Import then -- PackageImport::importedPackage : Package return AMF.Internals.Holders.CMOF_Holders.To_Holder (AMF.CMOF.Packages.CMOF_Package_Access' (AMF.CMOF.Package_Imports.CMOF_Package_Import_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Imported_Package)); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Package_Import_Importing_Namespace_Namespace_Package_Import then -- PackageImport::importingNamespace : Namespace return AMF.Internals.Holders.CMOF_Holders.To_Holder (AMF.CMOF.Namespaces.CMOF_Namespace_Access' (AMF.CMOF.Package_Imports.CMOF_Package_Import_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Importing_Namespace)); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Comment_A_Owning_Element then -- Element::ownedComment : Comment return AMF.CMOF.Comments.Collections.CMOF_Comment_Collections.Internals.To_Holder (AMF.CMOF.Package_Imports.CMOF_Package_Import_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Owned_Comment); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Element_Element_Owner then -- Element::ownedElement : Element return AMF.CMOF.Elements.Collections.CMOF_Element_Collections.Internals.To_Holder (AMF.CMOF.Package_Imports.CMOF_Package_Import_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Owned_Element); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owner_Element_Owned_Element then -- Element::owner : Element return AMF.Internals.Holders.CMOF_Holders.To_Holder (AMF.CMOF.Elements.CMOF_Element_Access' (AMF.CMOF.Package_Imports.CMOF_Package_Import_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Owner)); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Relationship_Related_Element_A_Relationship then -- Relationship::relatedElement : Element return AMF.CMOF.Elements.Collections.CMOF_Element_Collections.Internals.To_Holder (AMF.CMOF.Package_Imports.CMOF_Package_Import_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Related_Element); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Directed_Relationship_Source_A_Directed_Relationship then -- DirectedRelationship::source : Element return AMF.CMOF.Elements.Collections.CMOF_Element_Collections.Internals.To_Holder (AMF.CMOF.Package_Imports.CMOF_Package_Import_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Source); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Directed_Relationship_Target_A_Directed_Relationship then -- DirectedRelationship::target : Element return AMF.CMOF.Elements.Collections.CMOF_Element_Collections.Internals.To_Holder (AMF.CMOF.Package_Imports.CMOF_Package_Import_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Target); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Package_Import_Visibility then -- PackageImport::visibility : VisibilityKind return AMF.CMOF.Holders.Visibility_Kinds.To_Holder (AMF.CMOF.Package_Imports.CMOF_Package_Import_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Visibility); else raise Program_Error; end if; end CMOF_Package_Import_Get; ---------------------------- -- CMOF_Package_Merge_Get -- ---------------------------- function CMOF_Package_Merge_Get return League.Holders.Holder is begin if Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Package_Merge_Merged_Package_A_Package_Merge then -- PackageMerge::mergedPackage : Package return AMF.Internals.Holders.CMOF_Holders.To_Holder (AMF.CMOF.Packages.CMOF_Package_Access' (AMF.CMOF.Package_Merges.CMOF_Package_Merge_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Merged_Package)); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Comment_A_Owning_Element then -- Element::ownedComment : Comment return AMF.CMOF.Comments.Collections.CMOF_Comment_Collections.Internals.To_Holder (AMF.CMOF.Package_Merges.CMOF_Package_Merge_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Owned_Comment); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Element_Element_Owner then -- Element::ownedElement : Element return AMF.CMOF.Elements.Collections.CMOF_Element_Collections.Internals.To_Holder (AMF.CMOF.Package_Merges.CMOF_Package_Merge_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Owned_Element); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owner_Element_Owned_Element then -- Element::owner : Element return AMF.Internals.Holders.CMOF_Holders.To_Holder (AMF.CMOF.Elements.CMOF_Element_Access' (AMF.CMOF.Package_Merges.CMOF_Package_Merge_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Owner)); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Package_Merge_Receiving_Package_Package_Package_Merge then -- PackageMerge::receivingPackage : Package return AMF.Internals.Holders.CMOF_Holders.To_Holder (AMF.CMOF.Packages.CMOF_Package_Access' (AMF.CMOF.Package_Merges.CMOF_Package_Merge_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Receiving_Package)); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Relationship_Related_Element_A_Relationship then -- Relationship::relatedElement : Element return AMF.CMOF.Elements.Collections.CMOF_Element_Collections.Internals.To_Holder (AMF.CMOF.Package_Merges.CMOF_Package_Merge_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Related_Element); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Directed_Relationship_Source_A_Directed_Relationship then -- DirectedRelationship::source : Element return AMF.CMOF.Elements.Collections.CMOF_Element_Collections.Internals.To_Holder (AMF.CMOF.Package_Merges.CMOF_Package_Merge_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Source); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Directed_Relationship_Target_A_Directed_Relationship then -- DirectedRelationship::target : Element return AMF.CMOF.Elements.Collections.CMOF_Element_Collections.Internals.To_Holder (AMF.CMOF.Package_Merges.CMOF_Package_Merge_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Target); else raise Program_Error; end if; end CMOF_Package_Merge_Get; ------------------------ -- CMOF_Parameter_Get -- ------------------------ function CMOF_Parameter_Get return League.Holders.Holder is begin if Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Parameter_Default then -- Parameter::default : String return AMF.Holders.To_Holder (AMF.CMOF.Parameters.CMOF_Parameter_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Default); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Parameter_Direction then -- Parameter::direction : ParameterDirectionKind return AMF.CMOF.Holders.Parameter_Direction_Kinds.To_Holder (AMF.CMOF.Parameters.CMOF_Parameter_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Direction); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Multiplicity_Element_Is_Ordered then -- MultiplicityElement::isOrdered : Boolean return League.Holders.Booleans.To_Holder (AMF.CMOF.Parameters.CMOF_Parameter_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Is_Ordered); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Multiplicity_Element_Is_Unique then -- MultiplicityElement::isUnique : Boolean return League.Holders.Booleans.To_Holder (AMF.CMOF.Parameters.CMOF_Parameter_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Is_Unique); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Multiplicity_Element_Lower then -- MultiplicityElement::lower : Integer return AMF.Holders.To_Holder (AMF.CMOF.Parameters.CMOF_Parameter_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Lower); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Named_Element_Name then -- NamedElement::name : String return AMF.Holders.To_Holder (AMF.CMOF.Parameters.CMOF_Parameter_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Name); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Named_Element_Namespace_Namespace_Owned_Member then -- NamedElement::namespace : Namespace return AMF.Internals.Holders.CMOF_Holders.To_Holder (AMF.CMOF.Namespaces.CMOF_Namespace_Access' (AMF.CMOF.Parameters.CMOF_Parameter_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Namespace)); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Parameter_Operation_Operation_Owned_Parameter then -- Parameter::operation : Operation return AMF.Internals.Holders.CMOF_Holders.To_Holder (AMF.CMOF.Operations.CMOF_Operation_Access' (AMF.CMOF.Parameters.CMOF_Parameter_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Operation)); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Comment_A_Owning_Element then -- Element::ownedComment : Comment return AMF.CMOF.Comments.Collections.CMOF_Comment_Collections.Internals.To_Holder (AMF.CMOF.Parameters.CMOF_Parameter_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Owned_Comment); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Element_Element_Owner then -- Element::ownedElement : Element return AMF.CMOF.Elements.Collections.CMOF_Element_Collections.Internals.To_Holder (AMF.CMOF.Parameters.CMOF_Parameter_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Owned_Element); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owner_Element_Owned_Element then -- Element::owner : Element return AMF.Internals.Holders.CMOF_Holders.To_Holder (AMF.CMOF.Elements.CMOF_Element_Access' (AMF.CMOF.Parameters.CMOF_Parameter_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Owner)); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Named_Element_Qualified_Name then -- NamedElement::qualifiedName : String return AMF.Holders.To_Holder (AMF.CMOF.Parameters.CMOF_Parameter_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Qualified_Name); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Typed_Element_Type_A_Typed_Element then -- TypedElement::type : Type return AMF.Internals.Holders.CMOF_Holders.To_Holder (AMF.CMOF.Types.CMOF_Type_Access' (AMF.CMOF.Parameters.CMOF_Parameter_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Type)); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Multiplicity_Element_Upper then -- MultiplicityElement::upper : UnlimitedNatural return AMF.Holders.To_Holder (AMF.CMOF.Parameters.CMOF_Parameter_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Upper); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Named_Element_Visibility then -- NamedElement::visibility : VisibilityKind return AMF.CMOF.Holders.To_Holder (AMF.CMOF.Parameters.CMOF_Parameter_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Visibility); else raise Program_Error; end if; end CMOF_Parameter_Get; ----------------------------- -- CMOF_Primitive_Type_Get -- ----------------------------- function CMOF_Primitive_Type_Get return League.Holders.Holder is begin if Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Classifier_Attribute_A_Classifier then -- Classifier::attribute : Property return AMF.CMOF.Properties.Collections.CMOF_Property_Collections.Internals.To_Holder (AMF.CMOF.Primitive_Types.CMOF_Primitive_Type_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Attribute); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Element_Import_Element_Import_Importing_Namespace then -- Namespace::elementImport : ElementImport return AMF.CMOF.Element_Imports.Collections.CMOF_Element_Import_Collections.Internals.To_Holder (AMF.CMOF.Primitive_Types.CMOF_Primitive_Type_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Element_Import); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Classifier_Feature_Feature_Featuring_Classifier then -- Classifier::feature : Feature return AMF.CMOF.Features.Collections.CMOF_Feature_Collections.Internals.To_Holder (AMF.CMOF.Primitive_Types.CMOF_Primitive_Type_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Feature); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Classifier_General_A_Classifier then -- Classifier::general : Classifier return AMF.CMOF.Classifiers.Collections.CMOF_Classifier_Collections.Internals.To_Holder (AMF.CMOF.Primitive_Types.CMOF_Primitive_Type_Access (AMF.Internals.Helpers.To_Element (Self)).Get_General); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Imported_Member_A_Namespace then -- Namespace::importedMember : PackageableElement return AMF.CMOF.Packageable_Elements.Collections.CMOF_Packageable_Element_Collections.Internals.To_Holder (AMF.CMOF.Primitive_Types.CMOF_Primitive_Type_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Imported_Member); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Classifier_Inherited_Member_A_Classifier then -- Classifier::inheritedMember : NamedElement return AMF.CMOF.Named_Elements.Collections.CMOF_Named_Element_Collections.Internals.To_Holder (AMF.CMOF.Primitive_Types.CMOF_Primitive_Type_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Inherited_Member); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Classifier_Is_Final_Specialization then -- Classifier::isFinalSpecialization : Boolean return League.Holders.Booleans.To_Holder (AMF.CMOF.Primitive_Types.CMOF_Primitive_Type_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Is_Final_Specialization); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Member_A_Namespace then -- Namespace::member : NamedElement return AMF.CMOF.Named_Elements.Collections.CMOF_Named_Element_Collections.Internals.To_Holder (AMF.CMOF.Primitive_Types.CMOF_Primitive_Type_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Member); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Named_Element_Name then -- NamedElement::name : String return AMF.Holders.To_Holder (AMF.CMOF.Primitive_Types.CMOF_Primitive_Type_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Name); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Named_Element_Namespace_Namespace_Owned_Member then -- NamedElement::namespace : Namespace return AMF.Internals.Holders.CMOF_Holders.To_Holder (AMF.CMOF.Namespaces.CMOF_Namespace_Access' (AMF.CMOF.Primitive_Types.CMOF_Primitive_Type_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Namespace)); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Data_Type_Owned_Attribute_Property_Datatype then -- DataType::ownedAttribute : Property return AMF.CMOF.Properties.Collections.CMOF_Property_Collections.Internals.To_Holder (AMF.CMOF.Primitive_Types.CMOF_Primitive_Type_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Owned_Attribute); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Comment_A_Owning_Element then -- Element::ownedComment : Comment return AMF.CMOF.Comments.Collections.CMOF_Comment_Collections.Internals.To_Holder (AMF.CMOF.Primitive_Types.CMOF_Primitive_Type_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Owned_Comment); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Element_Element_Owner then -- Element::ownedElement : Element return AMF.CMOF.Elements.Collections.CMOF_Element_Collections.Internals.To_Holder (AMF.CMOF.Primitive_Types.CMOF_Primitive_Type_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Owned_Element); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Owned_Member_Named_Element_Namespace then -- Namespace::ownedMember : NamedElement return AMF.CMOF.Named_Elements.Collections.CMOF_Named_Element_Collections.Internals.To_Holder (AMF.CMOF.Primitive_Types.CMOF_Primitive_Type_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Owned_Member); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Data_Type_Owned_Operation_Operation_Datatype then -- DataType::ownedOperation : Operation return AMF.CMOF.Operations.Collections.CMOF_Operation_Collections.Internals.To_Holder (AMF.CMOF.Primitive_Types.CMOF_Primitive_Type_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Owned_Operation); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Owned_Rule_Constraint_Context then -- Namespace::ownedRule : Constraint return AMF.CMOF.Constraints.Collections.CMOF_Constraint_Collections.Internals.To_Holder (AMF.CMOF.Primitive_Types.CMOF_Primitive_Type_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Owned_Rule); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owner_Element_Owned_Element then -- Element::owner : Element return AMF.Internals.Holders.CMOF_Holders.To_Holder (AMF.CMOF.Elements.CMOF_Element_Access' (AMF.CMOF.Primitive_Types.CMOF_Primitive_Type_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Owner)); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Type_Package_Package_Owned_Type then -- Type::package : Package return AMF.Internals.Holders.CMOF_Holders.To_Holder (AMF.CMOF.Packages.CMOF_Package_Access' (AMF.CMOF.Primitive_Types.CMOF_Primitive_Type_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Package)); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Package_Import_Package_Import_Importing_Namespace then -- Namespace::packageImport : PackageImport return AMF.CMOF.Package_Imports.Collections.CMOF_Package_Import_Collections.Internals.To_Holder (AMF.CMOF.Primitive_Types.CMOF_Primitive_Type_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Package_Import); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Named_Element_Qualified_Name then -- NamedElement::qualifiedName : String return AMF.Holders.To_Holder (AMF.CMOF.Primitive_Types.CMOF_Primitive_Type_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Qualified_Name); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Named_Element_Visibility then -- NamedElement::visibility : VisibilityKind return AMF.CMOF.Holders.To_Holder (AMF.CMOF.Primitive_Types.CMOF_Primitive_Type_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Visibility); else raise Program_Error; end if; end CMOF_Primitive_Type_Get; ----------------------- -- CMOF_Property_Get -- ----------------------- function CMOF_Property_Get return League.Holders.Holder is begin if Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Property_Association_Association_Member_End then -- Property::association : Association return AMF.Internals.Holders.CMOF_Holders.To_Holder (AMF.CMOF.Associations.CMOF_Association_Access' (AMF.CMOF.Properties.CMOF_Property_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Association)); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Property_Class_Class_Owned_Attribute then -- Property::class : Class return AMF.Internals.Holders.CMOF_Holders.To_Holder (AMF.CMOF.Classes.CMOF_Class_Access' (AMF.CMOF.Properties.CMOF_Property_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Class)); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Property_Datatype_Data_Type_Owned_Attribute then -- Property::datatype : DataType return AMF.Internals.Holders.CMOF_Holders.To_Holder (AMF.CMOF.Data_Types.CMOF_Data_Type_Access' (AMF.CMOF.Properties.CMOF_Property_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Datatype)); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Property_Default then -- Property::default : String return AMF.Holders.To_Holder (AMF.CMOF.Properties.CMOF_Property_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Default); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Feature_Featuring_Classifier_Classifier_Feature then -- Feature::featuringClassifier : Classifier return AMF.CMOF.Classifiers.Collections.CMOF_Classifier_Collections.Internals.To_Holder (AMF.CMOF.Properties.CMOF_Property_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Featuring_Classifier); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Property_Is_Composite then -- Property::isComposite : Boolean return League.Holders.Booleans.To_Holder (AMF.CMOF.Properties.CMOF_Property_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Is_Composite); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Property_Is_Derived then -- Property::isDerived : Boolean return League.Holders.Booleans.To_Holder (AMF.CMOF.Properties.CMOF_Property_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Is_Derived); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Property_Is_Derived_Union then -- Property::isDerivedUnion : Boolean return League.Holders.Booleans.To_Holder (AMF.CMOF.Properties.CMOF_Property_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Is_Derived_Union); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Redefinable_Element_Is_Leaf then -- RedefinableElement::isLeaf : Boolean return League.Holders.Booleans.To_Holder (AMF.CMOF.Properties.CMOF_Property_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Is_Leaf); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Multiplicity_Element_Is_Ordered then -- MultiplicityElement::isOrdered : Boolean return League.Holders.Booleans.To_Holder (AMF.CMOF.Properties.CMOF_Property_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Is_Ordered); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Property_Is_Read_Only then -- Property::isReadOnly : Boolean return League.Holders.Booleans.To_Holder (AMF.CMOF.Properties.CMOF_Property_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Is_Read_Only); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Multiplicity_Element_Is_Unique then -- MultiplicityElement::isUnique : Boolean return League.Holders.Booleans.To_Holder (AMF.CMOF.Properties.CMOF_Property_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Is_Unique); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Multiplicity_Element_Lower then -- MultiplicityElement::lower : Integer return AMF.Holders.To_Holder (AMF.CMOF.Properties.CMOF_Property_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Lower); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Named_Element_Name then -- NamedElement::name : String return AMF.Holders.To_Holder (AMF.CMOF.Properties.CMOF_Property_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Name); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Named_Element_Namespace_Namespace_Owned_Member then -- NamedElement::namespace : Namespace return AMF.Internals.Holders.CMOF_Holders.To_Holder (AMF.CMOF.Namespaces.CMOF_Namespace_Access' (AMF.CMOF.Properties.CMOF_Property_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Namespace)); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Property_Opposite_A_Property then -- Property::opposite : Property return AMF.Internals.Holders.CMOF_Holders.To_Holder (AMF.CMOF.Properties.CMOF_Property_Access' (AMF.CMOF.Properties.CMOF_Property_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Opposite)); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Comment_A_Owning_Element then -- Element::ownedComment : Comment return AMF.CMOF.Comments.Collections.CMOF_Comment_Collections.Internals.To_Holder (AMF.CMOF.Properties.CMOF_Property_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Owned_Comment); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Element_Element_Owner then -- Element::ownedElement : Element return AMF.CMOF.Elements.Collections.CMOF_Element_Collections.Internals.To_Holder (AMF.CMOF.Properties.CMOF_Property_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Owned_Element); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owner_Element_Owned_Element then -- Element::owner : Element return AMF.Internals.Holders.CMOF_Holders.To_Holder (AMF.CMOF.Elements.CMOF_Element_Access' (AMF.CMOF.Properties.CMOF_Property_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Owner)); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Property_Owning_Association_Association_Owned_End then -- Property::owningAssociation : Association return AMF.Internals.Holders.CMOF_Holders.To_Holder (AMF.CMOF.Associations.CMOF_Association_Access' (AMF.CMOF.Properties.CMOF_Property_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Owning_Association)); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Named_Element_Qualified_Name then -- NamedElement::qualifiedName : String return AMF.Holders.To_Holder (AMF.CMOF.Properties.CMOF_Property_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Qualified_Name); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Redefinable_Element_Redefined_Element_A_Redefinable_Element then -- RedefinableElement::redefinedElement : RedefinableElement return AMF.CMOF.Redefinable_Elements.Collections.CMOF_Redefinable_Element_Collections.Internals.To_Holder (AMF.CMOF.Properties.CMOF_Property_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Redefined_Element); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Property_Redefined_Property_A_Property then -- Property::redefinedProperty : Property return AMF.CMOF.Properties.Collections.CMOF_Property_Collections.Internals.To_Holder (AMF.CMOF.Properties.CMOF_Property_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Redefined_Property); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Redefinable_Element_Redefinition_Context_A_Redefinable_Element then -- RedefinableElement::redefinitionContext : Classifier return AMF.CMOF.Classifiers.Collections.CMOF_Classifier_Collections.Internals.To_Holder (AMF.CMOF.Properties.CMOF_Property_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Redefinition_Context); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Property_Subsetted_Property_A_Property then -- Property::subsettedProperty : Property return AMF.CMOF.Properties.Collections.CMOF_Property_Collections.Internals.To_Holder (AMF.CMOF.Properties.CMOF_Property_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Subsetted_Property); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Typed_Element_Type_A_Typed_Element then -- TypedElement::type : Type return AMF.Internals.Holders.CMOF_Holders.To_Holder (AMF.CMOF.Types.CMOF_Type_Access' (AMF.CMOF.Properties.CMOF_Property_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Type)); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Multiplicity_Element_Upper then -- MultiplicityElement::upper : UnlimitedNatural return AMF.Holders.To_Holder (AMF.CMOF.Properties.CMOF_Property_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Upper); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Named_Element_Visibility then -- NamedElement::visibility : VisibilityKind return AMF.CMOF.Holders.To_Holder (AMF.CMOF.Properties.CMOF_Property_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Visibility); else raise Program_Error; end if; end CMOF_Property_Get; ------------------ -- CMOF_Tag_Get -- ------------------ function CMOF_Tag_Get return League.Holders.Holder is begin if Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Tag_Element_A_Tag then -- Tag::element : Element return AMF.CMOF.Elements.Collections.CMOF_Element_Collections.Internals.To_Holder (AMF.CMOF.Tags.CMOF_Tag_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Element); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Tag_Name then -- Tag::name : String return League.Holders.To_Holder (AMF.CMOF.Tags.CMOF_Tag_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Name); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Comment_A_Owning_Element then -- Element::ownedComment : Comment return AMF.CMOF.Comments.Collections.CMOF_Comment_Collections.Internals.To_Holder (AMF.CMOF.Tags.CMOF_Tag_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Owned_Comment); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Element_Element_Owner then -- Element::ownedElement : Element return AMF.CMOF.Elements.Collections.CMOF_Element_Collections.Internals.To_Holder (AMF.CMOF.Tags.CMOF_Tag_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Owned_Element); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owner_Element_Owned_Element then -- Element::owner : Element return AMF.Internals.Holders.CMOF_Holders.To_Holder (AMF.CMOF.Elements.CMOF_Element_Access' (AMF.CMOF.Tags.CMOF_Tag_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Owner)); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Tag_Tag_Owner_A_Owned_Tag then -- Tag::tagOwner : Element return AMF.Internals.Holders.CMOF_Holders.To_Holder (AMF.CMOF.Elements.CMOF_Element_Access' (AMF.CMOF.Tags.CMOF_Tag_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Tag_Owner)); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Tag_Value then -- Tag::value : String return League.Holders.To_Holder (AMF.CMOF.Tags.CMOF_Tag_Access (AMF.Internals.Helpers.To_Element (Self)).Get_Value); else raise Program_Error; end if; end CMOF_Tag_Get; begin case AMF.Internals.Tables.CMOF_Element_Table.Table (Self).Kind is when AMF.Internals.Tables.CMOF_Types.E_None => raise Program_Error; when AMF.Internals.Tables.CMOF_Types.E_CMOF_Association => return CMOF_Association_Get; when AMF.Internals.Tables.CMOF_Types.E_CMOF_Class => return CMOF_Class_Get; when AMF.Internals.Tables.CMOF_Types.E_CMOF_Comment => return CMOF_Comment_Get; when AMF.Internals.Tables.CMOF_Types.E_CMOF_Constraint => return CMOF_Constraint_Get; when AMF.Internals.Tables.CMOF_Types.E_CMOF_Data_Type => return CMOF_Data_Type_Get; when AMF.Internals.Tables.CMOF_Types.E_CMOF_Element_Import => return CMOF_Element_Import_Get; when AMF.Internals.Tables.CMOF_Types.E_CMOF_Enumeration => return CMOF_Enumeration_Get; when AMF.Internals.Tables.CMOF_Types.E_CMOF_Enumeration_Literal => return CMOF_Enumeration_Literal_Get; when AMF.Internals.Tables.CMOF_Types.E_CMOF_Expression => return CMOF_Expression_Get; when AMF.Internals.Tables.CMOF_Types.E_CMOF_Opaque_Expression => return CMOF_Opaque_Expression_Get; when AMF.Internals.Tables.CMOF_Types.E_CMOF_Operation => return CMOF_Operation_Get; when AMF.Internals.Tables.CMOF_Types.E_CMOF_Package => return CMOF_Package_Get; when AMF.Internals.Tables.CMOF_Types.E_CMOF_Package_Import => return CMOF_Package_Import_Get; when AMF.Internals.Tables.CMOF_Types.E_CMOF_Package_Merge => return CMOF_Package_Merge_Get; when AMF.Internals.Tables.CMOF_Types.E_CMOF_Parameter => return CMOF_Parameter_Get; when AMF.Internals.Tables.CMOF_Types.E_CMOF_Primitive_Type => return CMOF_Primitive_Type_Get; when AMF.Internals.Tables.CMOF_Types.E_CMOF_Property => return CMOF_Property_Get; when AMF.Internals.Tables.CMOF_Types.E_CMOF_Tag => return CMOF_Tag_Get; end case; end Get; -------------------- -- Get_Meta_Class -- -------------------- function Get_Meta_Class (Self : AMF.Internals.AMF_Element) return CMOF_Element is begin case CMOF_Element_Table.Table (Self).Kind is when AMF.Internals.Tables.CMOF_Types.E_None => return 0; when AMF.Internals.Tables.CMOF_Types.E_CMOF_Association => return AMF.Internals.Tables.CMOF_Metamodel.MC_CMOF_Association; when AMF.Internals.Tables.CMOF_Types.E_CMOF_Class => return AMF.Internals.Tables.CMOF_Metamodel.MC_CMOF_Class; when AMF.Internals.Tables.CMOF_Types.E_CMOF_Comment => return AMF.Internals.Tables.CMOF_Metamodel.MC_CMOF_Comment; when AMF.Internals.Tables.CMOF_Types.E_CMOF_Constraint => return AMF.Internals.Tables.CMOF_Metamodel.MC_CMOF_Constraint; when AMF.Internals.Tables.CMOF_Types.E_CMOF_Data_Type => return AMF.Internals.Tables.CMOF_Metamodel.MC_CMOF_Data_Type; when AMF.Internals.Tables.CMOF_Types.E_CMOF_Element_Import => return AMF.Internals.Tables.CMOF_Metamodel.MC_CMOF_Element_Import; when AMF.Internals.Tables.CMOF_Types.E_CMOF_Enumeration => return AMF.Internals.Tables.CMOF_Metamodel.MC_CMOF_Enumeration; when AMF.Internals.Tables.CMOF_Types.E_CMOF_Enumeration_Literal => return AMF.Internals.Tables.CMOF_Metamodel.MC_CMOF_Enumeration_Literal; when AMF.Internals.Tables.CMOF_Types.E_CMOF_Expression => return AMF.Internals.Tables.CMOF_Metamodel.MC_CMOF_Expression; when AMF.Internals.Tables.CMOF_Types.E_CMOF_Opaque_Expression => return AMF.Internals.Tables.CMOF_Metamodel.MC_CMOF_Opaque_Expression; when AMF.Internals.Tables.CMOF_Types.E_CMOF_Operation => return AMF.Internals.Tables.CMOF_Metamodel.MC_CMOF_Operation; when AMF.Internals.Tables.CMOF_Types.E_CMOF_Package => return AMF.Internals.Tables.CMOF_Metamodel.MC_CMOF_Package; when AMF.Internals.Tables.CMOF_Types.E_CMOF_Package_Import => return AMF.Internals.Tables.CMOF_Metamodel.MC_CMOF_Package_Import; when AMF.Internals.Tables.CMOF_Types.E_CMOF_Package_Merge => return AMF.Internals.Tables.CMOF_Metamodel.MC_CMOF_Package_Merge; when AMF.Internals.Tables.CMOF_Types.E_CMOF_Parameter => return AMF.Internals.Tables.CMOF_Metamodel.MC_CMOF_Parameter; when AMF.Internals.Tables.CMOF_Types.E_CMOF_Primitive_Type => return AMF.Internals.Tables.CMOF_Metamodel.MC_CMOF_Primitive_Type; when AMF.Internals.Tables.CMOF_Types.E_CMOF_Property => return AMF.Internals.Tables.CMOF_Metamodel.MC_CMOF_Property; when AMF.Internals.Tables.CMOF_Types.E_CMOF_Tag => return AMF.Internals.Tables.CMOF_Metamodel.MC_CMOF_Tag; end case; end Get_Meta_Class; --------- -- Set -- --------- procedure Set (Self : AMF.Internals.AMF_Element; Property : CMOF_Element; Value : League.Holders.Holder) is procedure CMOF_Association_Set; -- Sets attribute's value of instance of Association class. procedure CMOF_Class_Set; -- Sets attribute's value of instance of Class class. procedure CMOF_Comment_Set; -- Sets attribute's value of instance of Comment class. procedure CMOF_Constraint_Set; -- Sets attribute's value of instance of Constraint class. procedure CMOF_Data_Type_Set; -- Sets attribute's value of instance of DataType class. procedure CMOF_Element_Import_Set; -- Sets attribute's value of instance of ElementImport class. procedure CMOF_Enumeration_Set; -- Sets attribute's value of instance of Enumeration class. procedure CMOF_Enumeration_Literal_Set; -- Sets attribute's value of instance of EnumerationLiteral class. procedure CMOF_Expression_Set; -- Sets attribute's value of instance of Expression class. procedure CMOF_Opaque_Expression_Set; -- Sets attribute's value of instance of OpaqueExpression class. procedure CMOF_Operation_Set; -- Sets attribute's value of instance of Operation class. procedure CMOF_Package_Set; -- Sets attribute's value of instance of Package class. procedure CMOF_Package_Import_Set; -- Sets attribute's value of instance of PackageImport class. procedure CMOF_Package_Merge_Set; -- Sets attribute's value of instance of PackageMerge class. procedure CMOF_Parameter_Set; -- Sets attribute's value of instance of Parameter class. procedure CMOF_Primitive_Type_Set; -- Sets attribute's value of instance of PrimitiveType class. procedure CMOF_Property_Set; -- Sets attribute's value of instance of Property class. procedure CMOF_Tag_Set; -- Sets attribute's value of instance of Tag class. -------------------------- -- CMOF_Association_Set -- -------------------------- procedure CMOF_Association_Set is begin if Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Association_Is_Derived then -- Association::isDerived : Boolean AMF.CMOF.Associations.CMOF_Association_Access (AMF.Internals.Helpers.To_Element (Self)).Set_Is_Derived (League.Holders.Booleans.Element (Value)); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Classifier_Is_Final_Specialization then -- Classifier::isFinalSpecialization : Boolean AMF.CMOF.Associations.CMOF_Association_Access (AMF.Internals.Helpers.To_Element (Self)).Set_Is_Final_Specialization (League.Holders.Booleans.Element (Value)); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Named_Element_Name then -- NamedElement::name : String AMF.CMOF.Associations.CMOF_Association_Access (AMF.Internals.Helpers.To_Element (Self)).Set_Name (AMF.Holders.Element (Value)); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Type_Package_Package_Owned_Type then -- Type::package : Package AMF.CMOF.Associations.CMOF_Association_Access (AMF.Internals.Helpers.To_Element (Self)).Set_Package (AMF.CMOF.Packages.CMOF_Package_Access (AMF.Holders.Elements.Element (Value))); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Named_Element_Visibility then -- NamedElement::visibility : VisibilityKind AMF.CMOF.Associations.CMOF_Association_Access (AMF.Internals.Helpers.To_Element (Self)).Set_Visibility (AMF.CMOF.Holders.Element (Value)); else raise Program_Error; end if; end CMOF_Association_Set; -------------------- -- CMOF_Class_Set -- -------------------- procedure CMOF_Class_Set is begin if Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Class_Is_Abstract then -- Class::isAbstract : Boolean AMF.CMOF.Classes.CMOF_Class_Access (AMF.Internals.Helpers.To_Element (Self)).Set_Is_Abstract (League.Holders.Booleans.Element (Value)); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Classifier_Is_Final_Specialization then -- Classifier::isFinalSpecialization : Boolean AMF.CMOF.Classes.CMOF_Class_Access (AMF.Internals.Helpers.To_Element (Self)).Set_Is_Final_Specialization (League.Holders.Booleans.Element (Value)); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Named_Element_Name then -- NamedElement::name : String AMF.CMOF.Classes.CMOF_Class_Access (AMF.Internals.Helpers.To_Element (Self)).Set_Name (AMF.Holders.Element (Value)); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Type_Package_Package_Owned_Type then -- Type::package : Package AMF.CMOF.Classes.CMOF_Class_Access (AMF.Internals.Helpers.To_Element (Self)).Set_Package (AMF.CMOF.Packages.CMOF_Package_Access (AMF.Holders.Elements.Element (Value))); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Named_Element_Visibility then -- NamedElement::visibility : VisibilityKind AMF.CMOF.Classes.CMOF_Class_Access (AMF.Internals.Helpers.To_Element (Self)).Set_Visibility (AMF.CMOF.Holders.Element (Value)); else raise Program_Error; end if; end CMOF_Class_Set; ---------------------- -- CMOF_Comment_Set -- ---------------------- procedure CMOF_Comment_Set is begin if Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Comment_Body then -- Comment::body : String AMF.CMOF.Comments.CMOF_Comment_Access (AMF.Internals.Helpers.To_Element (Self)).Set_Body (AMF.Holders.Element (Value)); else raise Program_Error; end if; end CMOF_Comment_Set; ------------------------- -- CMOF_Constraint_Set -- ------------------------- procedure CMOF_Constraint_Set is begin if Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Constraint_Context_Namespace_Owned_Rule then -- Constraint::context : Namespace AMF.CMOF.Constraints.CMOF_Constraint_Access (AMF.Internals.Helpers.To_Element (Self)).Set_Context (AMF.CMOF.Namespaces.CMOF_Namespace_Access (AMF.Holders.Elements.Element (Value))); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Named_Element_Name then -- NamedElement::name : String AMF.CMOF.Constraints.CMOF_Constraint_Access (AMF.Internals.Helpers.To_Element (Self)).Set_Name (AMF.Holders.Element (Value)); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Constraint_Specification_A_Owning_Constraint then -- Constraint::specification : ValueSpecification AMF.CMOF.Constraints.CMOF_Constraint_Access (AMF.Internals.Helpers.To_Element (Self)).Set_Specification (AMF.CMOF.Value_Specifications.CMOF_Value_Specification_Access (AMF.Holders.Elements.Element (Value))); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Named_Element_Visibility then -- NamedElement::visibility : VisibilityKind AMF.CMOF.Constraints.CMOF_Constraint_Access (AMF.Internals.Helpers.To_Element (Self)).Set_Visibility (AMF.CMOF.Holders.Element (Value)); else raise Program_Error; end if; end CMOF_Constraint_Set; ------------------------ -- CMOF_Data_Type_Set -- ------------------------ procedure CMOF_Data_Type_Set is begin if Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Classifier_Is_Final_Specialization then -- Classifier::isFinalSpecialization : Boolean AMF.CMOF.Data_Types.CMOF_Data_Type_Access (AMF.Internals.Helpers.To_Element (Self)).Set_Is_Final_Specialization (League.Holders.Booleans.Element (Value)); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Named_Element_Name then -- NamedElement::name : String AMF.CMOF.Data_Types.CMOF_Data_Type_Access (AMF.Internals.Helpers.To_Element (Self)).Set_Name (AMF.Holders.Element (Value)); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Type_Package_Package_Owned_Type then -- Type::package : Package AMF.CMOF.Data_Types.CMOF_Data_Type_Access (AMF.Internals.Helpers.To_Element (Self)).Set_Package (AMF.CMOF.Packages.CMOF_Package_Access (AMF.Holders.Elements.Element (Value))); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Named_Element_Visibility then -- NamedElement::visibility : VisibilityKind AMF.CMOF.Data_Types.CMOF_Data_Type_Access (AMF.Internals.Helpers.To_Element (Self)).Set_Visibility (AMF.CMOF.Holders.Element (Value)); else raise Program_Error; end if; end CMOF_Data_Type_Set; ----------------------------- -- CMOF_Element_Import_Set -- ----------------------------- procedure CMOF_Element_Import_Set is begin if Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Import_Alias then -- ElementImport::alias : String AMF.CMOF.Element_Imports.CMOF_Element_Import_Access (AMF.Internals.Helpers.To_Element (Self)).Set_Alias (AMF.Holders.Element (Value)); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Import_Imported_Element_A_Element_Import then -- ElementImport::importedElement : PackageableElement AMF.CMOF.Element_Imports.CMOF_Element_Import_Access (AMF.Internals.Helpers.To_Element (Self)).Set_Imported_Element (AMF.CMOF.Packageable_Elements.CMOF_Packageable_Element_Access (AMF.Holders.Elements.Element (Value))); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Import_Importing_Namespace_Namespace_Element_Import then -- ElementImport::importingNamespace : Namespace AMF.CMOF.Element_Imports.CMOF_Element_Import_Access (AMF.Internals.Helpers.To_Element (Self)).Set_Importing_Namespace (AMF.CMOF.Namespaces.CMOF_Namespace_Access (AMF.Holders.Elements.Element (Value))); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Import_Visibility then -- ElementImport::visibility : VisibilityKind AMF.CMOF.Element_Imports.CMOF_Element_Import_Access (AMF.Internals.Helpers.To_Element (Self)).Set_Visibility (AMF.CMOF.Holders.Visibility_Kinds.Element (Value)); else raise Program_Error; end if; end CMOF_Element_Import_Set; -------------------------- -- CMOF_Enumeration_Set -- -------------------------- procedure CMOF_Enumeration_Set is begin if Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Classifier_Is_Final_Specialization then -- Classifier::isFinalSpecialization : Boolean AMF.CMOF.Enumerations.CMOF_Enumeration_Access (AMF.Internals.Helpers.To_Element (Self)).Set_Is_Final_Specialization (League.Holders.Booleans.Element (Value)); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Named_Element_Name then -- NamedElement::name : String AMF.CMOF.Enumerations.CMOF_Enumeration_Access (AMF.Internals.Helpers.To_Element (Self)).Set_Name (AMF.Holders.Element (Value)); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Type_Package_Package_Owned_Type then -- Type::package : Package AMF.CMOF.Enumerations.CMOF_Enumeration_Access (AMF.Internals.Helpers.To_Element (Self)).Set_Package (AMF.CMOF.Packages.CMOF_Package_Access (AMF.Holders.Elements.Element (Value))); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Named_Element_Visibility then -- NamedElement::visibility : VisibilityKind AMF.CMOF.Enumerations.CMOF_Enumeration_Access (AMF.Internals.Helpers.To_Element (Self)).Set_Visibility (AMF.CMOF.Holders.Element (Value)); else raise Program_Error; end if; end CMOF_Enumeration_Set; ---------------------------------- -- CMOF_Enumeration_Literal_Set -- ---------------------------------- procedure CMOF_Enumeration_Literal_Set is begin if Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Enumeration_Literal_Enumeration_Enumeration_Owned_Literal then -- EnumerationLiteral::enumeration : Enumeration AMF.CMOF.Enumeration_Literals.CMOF_Enumeration_Literal_Access (AMF.Internals.Helpers.To_Element (Self)).Set_Enumeration (AMF.CMOF.Enumerations.CMOF_Enumeration_Access (AMF.Holders.Elements.Element (Value))); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Named_Element_Name then -- NamedElement::name : String AMF.CMOF.Enumeration_Literals.CMOF_Enumeration_Literal_Access (AMF.Internals.Helpers.To_Element (Self)).Set_Name (AMF.Holders.Element (Value)); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Named_Element_Visibility then -- NamedElement::visibility : VisibilityKind AMF.CMOF.Enumeration_Literals.CMOF_Enumeration_Literal_Access (AMF.Internals.Helpers.To_Element (Self)).Set_Visibility (AMF.CMOF.Holders.Element (Value)); else raise Program_Error; end if; end CMOF_Enumeration_Literal_Set; ------------------------- -- CMOF_Expression_Set -- ------------------------- procedure CMOF_Expression_Set is begin if Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Named_Element_Name then -- NamedElement::name : String AMF.CMOF.Expressions.CMOF_Expression_Access (AMF.Internals.Helpers.To_Element (Self)).Set_Name (AMF.Holders.Element (Value)); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Typed_Element_Type_A_Typed_Element then -- TypedElement::type : Type AMF.CMOF.Expressions.CMOF_Expression_Access (AMF.Internals.Helpers.To_Element (Self)).Set_Type (AMF.CMOF.Types.CMOF_Type_Access (AMF.Holders.Elements.Element (Value))); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Named_Element_Visibility then -- NamedElement::visibility : VisibilityKind AMF.CMOF.Expressions.CMOF_Expression_Access (AMF.Internals.Helpers.To_Element (Self)).Set_Visibility (AMF.CMOF.Holders.Element (Value)); else raise Program_Error; end if; end CMOF_Expression_Set; -------------------------------- -- CMOF_Opaque_Expression_Set -- -------------------------------- procedure CMOF_Opaque_Expression_Set is begin if Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Named_Element_Name then -- NamedElement::name : String AMF.CMOF.Opaque_Expressions.CMOF_Opaque_Expression_Access (AMF.Internals.Helpers.To_Element (Self)).Set_Name (AMF.Holders.Element (Value)); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Typed_Element_Type_A_Typed_Element then -- TypedElement::type : Type AMF.CMOF.Opaque_Expressions.CMOF_Opaque_Expression_Access (AMF.Internals.Helpers.To_Element (Self)).Set_Type (AMF.CMOF.Types.CMOF_Type_Access (AMF.Holders.Elements.Element (Value))); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Named_Element_Visibility then -- NamedElement::visibility : VisibilityKind AMF.CMOF.Opaque_Expressions.CMOF_Opaque_Expression_Access (AMF.Internals.Helpers.To_Element (Self)).Set_Visibility (AMF.CMOF.Holders.Element (Value)); else raise Program_Error; end if; end CMOF_Opaque_Expression_Set; ------------------------ -- CMOF_Operation_Set -- ------------------------ procedure CMOF_Operation_Set is begin if Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Operation_Body_Condition_A_Body_Context then -- Operation::bodyCondition : Constraint AMF.CMOF.Operations.CMOF_Operation_Access (AMF.Internals.Helpers.To_Element (Self)).Set_Body_Condition (AMF.CMOF.Constraints.CMOF_Constraint_Access (AMF.Holders.Elements.Element (Value))); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Operation_Class_Class_Owned_Operation then -- Operation::class : Class AMF.CMOF.Operations.CMOF_Operation_Access (AMF.Internals.Helpers.To_Element (Self)).Set_Class (AMF.CMOF.Classes.CMOF_Class_Access (AMF.Holders.Elements.Element (Value))); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Operation_Datatype_Data_Type_Owned_Operation then -- Operation::datatype : DataType AMF.CMOF.Operations.CMOF_Operation_Access (AMF.Internals.Helpers.To_Element (Self)).Set_Datatype (AMF.CMOF.Data_Types.CMOF_Data_Type_Access (AMF.Holders.Elements.Element (Value))); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Redefinable_Element_Is_Leaf then -- RedefinableElement::isLeaf : Boolean AMF.CMOF.Operations.CMOF_Operation_Access (AMF.Internals.Helpers.To_Element (Self)).Set_Is_Leaf (League.Holders.Booleans.Element (Value)); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Operation_Is_Query then -- Operation::isQuery : Boolean AMF.CMOF.Operations.CMOF_Operation_Access (AMF.Internals.Helpers.To_Element (Self)).Set_Is_Query (League.Holders.Booleans.Element (Value)); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Named_Element_Name then -- NamedElement::name : String AMF.CMOF.Operations.CMOF_Operation_Access (AMF.Internals.Helpers.To_Element (Self)).Set_Name (AMF.Holders.Element (Value)); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Named_Element_Visibility then -- NamedElement::visibility : VisibilityKind AMF.CMOF.Operations.CMOF_Operation_Access (AMF.Internals.Helpers.To_Element (Self)).Set_Visibility (AMF.CMOF.Holders.Element (Value)); else raise Program_Error; end if; end CMOF_Operation_Set; ---------------------- -- CMOF_Package_Set -- ---------------------- procedure CMOF_Package_Set is begin if Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Named_Element_Name then -- NamedElement::name : String AMF.CMOF.Packages.CMOF_Package_Access (AMF.Internals.Helpers.To_Element (Self)).Set_Name (AMF.Holders.Element (Value)); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Package_Nesting_Package_Package_Nested_Package then -- Package::nestingPackage : Package AMF.CMOF.Packages.CMOF_Package_Access (AMF.Internals.Helpers.To_Element (Self)).Set_Nesting_Package (AMF.CMOF.Packages.CMOF_Package_Access (AMF.Holders.Elements.Element (Value))); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Package_Uri then -- Package::uri : String AMF.CMOF.Packages.CMOF_Package_Access (AMF.Internals.Helpers.To_Element (Self)).Set_Uri (AMF.Holders.Element (Value)); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Named_Element_Visibility then -- NamedElement::visibility : VisibilityKind AMF.CMOF.Packages.CMOF_Package_Access (AMF.Internals.Helpers.To_Element (Self)).Set_Visibility (AMF.CMOF.Holders.Element (Value)); else raise Program_Error; end if; end CMOF_Package_Set; ----------------------------- -- CMOF_Package_Import_Set -- ----------------------------- procedure CMOF_Package_Import_Set is begin if Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Package_Import_Imported_Package_A_Package_Import then -- PackageImport::importedPackage : Package AMF.CMOF.Package_Imports.CMOF_Package_Import_Access (AMF.Internals.Helpers.To_Element (Self)).Set_Imported_Package (AMF.CMOF.Packages.CMOF_Package_Access (AMF.Holders.Elements.Element (Value))); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Package_Import_Importing_Namespace_Namespace_Package_Import then -- PackageImport::importingNamespace : Namespace AMF.CMOF.Package_Imports.CMOF_Package_Import_Access (AMF.Internals.Helpers.To_Element (Self)).Set_Importing_Namespace (AMF.CMOF.Namespaces.CMOF_Namespace_Access (AMF.Holders.Elements.Element (Value))); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Package_Import_Visibility then -- PackageImport::visibility : VisibilityKind AMF.CMOF.Package_Imports.CMOF_Package_Import_Access (AMF.Internals.Helpers.To_Element (Self)).Set_Visibility (AMF.CMOF.Holders.Visibility_Kinds.Element (Value)); else raise Program_Error; end if; end CMOF_Package_Import_Set; ---------------------------- -- CMOF_Package_Merge_Set -- ---------------------------- procedure CMOF_Package_Merge_Set is begin if Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Package_Merge_Merged_Package_A_Package_Merge then -- PackageMerge::mergedPackage : Package AMF.CMOF.Package_Merges.CMOF_Package_Merge_Access (AMF.Internals.Helpers.To_Element (Self)).Set_Merged_Package (AMF.CMOF.Packages.CMOF_Package_Access (AMF.Holders.Elements.Element (Value))); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Package_Merge_Receiving_Package_Package_Package_Merge then -- PackageMerge::receivingPackage : Package AMF.CMOF.Package_Merges.CMOF_Package_Merge_Access (AMF.Internals.Helpers.To_Element (Self)).Set_Receiving_Package (AMF.CMOF.Packages.CMOF_Package_Access (AMF.Holders.Elements.Element (Value))); else raise Program_Error; end if; end CMOF_Package_Merge_Set; ------------------------ -- CMOF_Parameter_Set -- ------------------------ procedure CMOF_Parameter_Set is begin if Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Parameter_Default then -- Parameter::default : String AMF.CMOF.Parameters.CMOF_Parameter_Access (AMF.Internals.Helpers.To_Element (Self)).Set_Default (AMF.Holders.Element (Value)); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Parameter_Direction then -- Parameter::direction : ParameterDirectionKind AMF.CMOF.Parameters.CMOF_Parameter_Access (AMF.Internals.Helpers.To_Element (Self)).Set_Direction (AMF.CMOF.Holders.Parameter_Direction_Kinds.Element (Value)); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Multiplicity_Element_Is_Ordered then -- MultiplicityElement::isOrdered : Boolean AMF.CMOF.Parameters.CMOF_Parameter_Access (AMF.Internals.Helpers.To_Element (Self)).Set_Is_Ordered (League.Holders.Booleans.Element (Value)); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Multiplicity_Element_Is_Unique then -- MultiplicityElement::isUnique : Boolean AMF.CMOF.Parameters.CMOF_Parameter_Access (AMF.Internals.Helpers.To_Element (Self)).Set_Is_Unique (League.Holders.Booleans.Element (Value)); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Multiplicity_Element_Lower then -- MultiplicityElement::lower : Integer AMF.CMOF.Parameters.CMOF_Parameter_Access (AMF.Internals.Helpers.To_Element (Self)).Set_Lower (AMF.Holders.Element (Value)); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Named_Element_Name then -- NamedElement::name : String AMF.CMOF.Parameters.CMOF_Parameter_Access (AMF.Internals.Helpers.To_Element (Self)).Set_Name (AMF.Holders.Element (Value)); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Parameter_Operation_Operation_Owned_Parameter then -- Parameter::operation : Operation AMF.CMOF.Parameters.CMOF_Parameter_Access (AMF.Internals.Helpers.To_Element (Self)).Set_Operation (AMF.CMOF.Operations.CMOF_Operation_Access (AMF.Holders.Elements.Element (Value))); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Typed_Element_Type_A_Typed_Element then -- TypedElement::type : Type AMF.CMOF.Parameters.CMOF_Parameter_Access (AMF.Internals.Helpers.To_Element (Self)).Set_Type (AMF.CMOF.Types.CMOF_Type_Access (AMF.Holders.Elements.Element (Value))); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Multiplicity_Element_Upper then -- MultiplicityElement::upper : UnlimitedNatural AMF.CMOF.Parameters.CMOF_Parameter_Access (AMF.Internals.Helpers.To_Element (Self)).Set_Upper (AMF.Holders.Element (Value)); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Named_Element_Visibility then -- NamedElement::visibility : VisibilityKind AMF.CMOF.Parameters.CMOF_Parameter_Access (AMF.Internals.Helpers.To_Element (Self)).Set_Visibility (AMF.CMOF.Holders.Element (Value)); else raise Program_Error; end if; end CMOF_Parameter_Set; ----------------------------- -- CMOF_Primitive_Type_Set -- ----------------------------- procedure CMOF_Primitive_Type_Set is begin if Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Classifier_Is_Final_Specialization then -- Classifier::isFinalSpecialization : Boolean AMF.CMOF.Primitive_Types.CMOF_Primitive_Type_Access (AMF.Internals.Helpers.To_Element (Self)).Set_Is_Final_Specialization (League.Holders.Booleans.Element (Value)); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Named_Element_Name then -- NamedElement::name : String AMF.CMOF.Primitive_Types.CMOF_Primitive_Type_Access (AMF.Internals.Helpers.To_Element (Self)).Set_Name (AMF.Holders.Element (Value)); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Type_Package_Package_Owned_Type then -- Type::package : Package AMF.CMOF.Primitive_Types.CMOF_Primitive_Type_Access (AMF.Internals.Helpers.To_Element (Self)).Set_Package (AMF.CMOF.Packages.CMOF_Package_Access (AMF.Holders.Elements.Element (Value))); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Named_Element_Visibility then -- NamedElement::visibility : VisibilityKind AMF.CMOF.Primitive_Types.CMOF_Primitive_Type_Access (AMF.Internals.Helpers.To_Element (Self)).Set_Visibility (AMF.CMOF.Holders.Element (Value)); else raise Program_Error; end if; end CMOF_Primitive_Type_Set; ----------------------- -- CMOF_Property_Set -- ----------------------- procedure CMOF_Property_Set is begin if Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Property_Association_Association_Member_End then -- Property::association : Association AMF.CMOF.Properties.CMOF_Property_Access (AMF.Internals.Helpers.To_Element (Self)).Set_Association (AMF.CMOF.Associations.CMOF_Association_Access (AMF.Holders.Elements.Element (Value))); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Property_Class_Class_Owned_Attribute then -- Property::class : Class AMF.CMOF.Properties.CMOF_Property_Access (AMF.Internals.Helpers.To_Element (Self)).Set_Class (AMF.CMOF.Classes.CMOF_Class_Access (AMF.Holders.Elements.Element (Value))); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Property_Datatype_Data_Type_Owned_Attribute then -- Property::datatype : DataType AMF.CMOF.Properties.CMOF_Property_Access (AMF.Internals.Helpers.To_Element (Self)).Set_Datatype (AMF.CMOF.Data_Types.CMOF_Data_Type_Access (AMF.Holders.Elements.Element (Value))); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Property_Default then -- Property::default : String AMF.CMOF.Properties.CMOF_Property_Access (AMF.Internals.Helpers.To_Element (Self)).Set_Default (AMF.Holders.Element (Value)); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Property_Is_Composite then -- Property::isComposite : Boolean AMF.CMOF.Properties.CMOF_Property_Access (AMF.Internals.Helpers.To_Element (Self)).Set_Is_Composite (League.Holders.Booleans.Element (Value)); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Property_Is_Derived then -- Property::isDerived : Boolean AMF.CMOF.Properties.CMOF_Property_Access (AMF.Internals.Helpers.To_Element (Self)).Set_Is_Derived (League.Holders.Booleans.Element (Value)); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Property_Is_Derived_Union then -- Property::isDerivedUnion : Boolean AMF.CMOF.Properties.CMOF_Property_Access (AMF.Internals.Helpers.To_Element (Self)).Set_Is_Derived_Union (League.Holders.Booleans.Element (Value)); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Redefinable_Element_Is_Leaf then -- RedefinableElement::isLeaf : Boolean AMF.CMOF.Properties.CMOF_Property_Access (AMF.Internals.Helpers.To_Element (Self)).Set_Is_Leaf (League.Holders.Booleans.Element (Value)); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Multiplicity_Element_Is_Ordered then -- MultiplicityElement::isOrdered : Boolean AMF.CMOF.Properties.CMOF_Property_Access (AMF.Internals.Helpers.To_Element (Self)).Set_Is_Ordered (League.Holders.Booleans.Element (Value)); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Property_Is_Read_Only then -- Property::isReadOnly : Boolean AMF.CMOF.Properties.CMOF_Property_Access (AMF.Internals.Helpers.To_Element (Self)).Set_Is_Read_Only (League.Holders.Booleans.Element (Value)); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Multiplicity_Element_Is_Unique then -- MultiplicityElement::isUnique : Boolean AMF.CMOF.Properties.CMOF_Property_Access (AMF.Internals.Helpers.To_Element (Self)).Set_Is_Unique (League.Holders.Booleans.Element (Value)); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Multiplicity_Element_Lower then -- MultiplicityElement::lower : Integer AMF.CMOF.Properties.CMOF_Property_Access (AMF.Internals.Helpers.To_Element (Self)).Set_Lower (AMF.Holders.Element (Value)); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Named_Element_Name then -- NamedElement::name : String AMF.CMOF.Properties.CMOF_Property_Access (AMF.Internals.Helpers.To_Element (Self)).Set_Name (AMF.Holders.Element (Value)); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Property_Owning_Association_Association_Owned_End then -- Property::owningAssociation : Association AMF.CMOF.Properties.CMOF_Property_Access (AMF.Internals.Helpers.To_Element (Self)).Set_Owning_Association (AMF.CMOF.Associations.CMOF_Association_Access (AMF.Holders.Elements.Element (Value))); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Typed_Element_Type_A_Typed_Element then -- TypedElement::type : Type AMF.CMOF.Properties.CMOF_Property_Access (AMF.Internals.Helpers.To_Element (Self)).Set_Type (AMF.CMOF.Types.CMOF_Type_Access (AMF.Holders.Elements.Element (Value))); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Multiplicity_Element_Upper then -- MultiplicityElement::upper : UnlimitedNatural AMF.CMOF.Properties.CMOF_Property_Access (AMF.Internals.Helpers.To_Element (Self)).Set_Upper (AMF.Holders.Element (Value)); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Named_Element_Visibility then -- NamedElement::visibility : VisibilityKind AMF.CMOF.Properties.CMOF_Property_Access (AMF.Internals.Helpers.To_Element (Self)).Set_Visibility (AMF.CMOF.Holders.Element (Value)); else raise Program_Error; end if; end CMOF_Property_Set; ------------------ -- CMOF_Tag_Set -- ------------------ procedure CMOF_Tag_Set is begin if Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Tag_Name then -- Tag::name : String AMF.CMOF.Tags.CMOF_Tag_Access (AMF.Internals.Helpers.To_Element (Self)).Set_Name (League.Holders.Element (Value)); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Tag_Tag_Owner_A_Owned_Tag then -- Tag::tagOwner : Element AMF.CMOF.Tags.CMOF_Tag_Access (AMF.Internals.Helpers.To_Element (Self)).Set_Tag_Owner (AMF.CMOF.Elements.CMOF_Element_Access (AMF.Holders.Elements.Element (Value))); elsif Property = AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Tag_Value then -- Tag::value : String AMF.CMOF.Tags.CMOF_Tag_Access (AMF.Internals.Helpers.To_Element (Self)).Set_Value (League.Holders.Element (Value)); else raise Program_Error; end if; end CMOF_Tag_Set; begin case CMOF_Element_Table.Table (Self).Kind is when AMF.Internals.Tables.CMOF_Types.E_None => raise Program_Error; when AMF.Internals.Tables.CMOF_Types.E_CMOF_Association => CMOF_Association_Set; when AMF.Internals.Tables.CMOF_Types.E_CMOF_Class => CMOF_Class_Set; when AMF.Internals.Tables.CMOF_Types.E_CMOF_Comment => CMOF_Comment_Set; when AMF.Internals.Tables.CMOF_Types.E_CMOF_Constraint => CMOF_Constraint_Set; when AMF.Internals.Tables.CMOF_Types.E_CMOF_Data_Type => CMOF_Data_Type_Set; when AMF.Internals.Tables.CMOF_Types.E_CMOF_Element_Import => CMOF_Element_Import_Set; when AMF.Internals.Tables.CMOF_Types.E_CMOF_Enumeration => CMOF_Enumeration_Set; when AMF.Internals.Tables.CMOF_Types.E_CMOF_Enumeration_Literal => CMOF_Enumeration_Literal_Set; when AMF.Internals.Tables.CMOF_Types.E_CMOF_Expression => CMOF_Expression_Set; when AMF.Internals.Tables.CMOF_Types.E_CMOF_Opaque_Expression => CMOF_Opaque_Expression_Set; when AMF.Internals.Tables.CMOF_Types.E_CMOF_Operation => CMOF_Operation_Set; when AMF.Internals.Tables.CMOF_Types.E_CMOF_Package => CMOF_Package_Set; when AMF.Internals.Tables.CMOF_Types.E_CMOF_Package_Import => CMOF_Package_Import_Set; when AMF.Internals.Tables.CMOF_Types.E_CMOF_Package_Merge => CMOF_Package_Merge_Set; when AMF.Internals.Tables.CMOF_Types.E_CMOF_Parameter => CMOF_Parameter_Set; when AMF.Internals.Tables.CMOF_Types.E_CMOF_Primitive_Type => CMOF_Primitive_Type_Set; when AMF.Internals.Tables.CMOF_Types.E_CMOF_Property => CMOF_Property_Set; when AMF.Internals.Tables.CMOF_Types.E_CMOF_Tag => CMOF_Tag_Set; end case; end Set; end AMF.Internals.Tables.CMOF_Reflection;
Transynther/x86/_processed/AVXALIGN/_st_/i3-7100_9_0x84_notsx.log_21829_3000.asm
ljhsiun2/medusa
9
240482
<filename>Transynther/x86/_processed/AVXALIGN/_st_/i3-7100_9_0x84_notsx.log_21829_3000.asm .global s_prepare_buffers s_prepare_buffers: push %r11 push %r14 push %r8 push %rbp push %rcx push %rdi push %rsi lea addresses_WT_ht+0xaf9b, %rsi lea addresses_normal_ht+0x601b, %rdi clflush (%rsi) clflush (%rdi) nop nop nop add $13455, %r8 mov $126, %rcx rep movsw nop nop nop nop nop dec %rbp lea addresses_WC_ht+0x9737, %r8 nop nop nop cmp $48347, %rcx movups (%r8), %xmm0 vpextrq $0, %xmm0, %rdi nop nop nop add $33903, %rdi lea addresses_UC_ht+0x1db0b, %rsi lea addresses_D_ht+0x241b, %rdi nop cmp $41925, %r11 mov $97, %rcx rep movsq sub %r11, %r11 lea addresses_normal_ht+0x1dd9b, %rsi nop nop nop nop sub $22938, %r14 mov (%rsi), %r11d nop nop add $6419, %rbp lea addresses_UC_ht+0x579b, %r8 nop nop nop nop sub %rbp, %rbp vmovups (%r8), %ymm1 vextracti128 $0, %ymm1, %xmm1 vpextrq $0, %xmm1, %rcx sub $34643, %rdi lea addresses_D_ht+0x439b, %rsi lea addresses_WT_ht+0x1b59b, %rdi nop nop nop nop xor $54492, %rbp mov $17, %rcx rep movsl nop nop nop nop xor %rbp, %rbp pop %rsi pop %rdi pop %rcx pop %rbp pop %r8 pop %r14 pop %r11 ret .global s_faulty_load s_faulty_load: push %r11 push %r12 push %r8 push %rax push %rcx push %rdi push %rdx // Store lea addresses_D+0x1f313, %rax nop nop nop nop nop dec %rdi movw $0x5152, (%rax) nop nop nop nop xor $53555, %r8 // Faulty Load lea addresses_UC+0xef9b, %rax cmp $27221, %rdx mov (%rax), %r8w lea oracles, %r11 and $0xff, %r8 shlq $12, %r8 mov (%r11,%r8,1), %r8 pop %rdx pop %rdi pop %rcx pop %rax pop %r8 pop %r12 pop %r11 ret /* <gen_faulty_load> [REF] {'src': {'type': 'addresses_UC', 'same': False, 'size': 32, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'dst': {'type': 'addresses_D', 'same': False, 'size': 2, 'congruent': 3, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} [Faulty Load] {'src': {'type': 'addresses_UC', 'same': True, 'size': 2, 'congruent': 0, 'NT': True, 'AVXalign': False}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'type': 'addresses_WT_ht', 'congruent': 10, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 6, 'same': False}, 'OP': 'REPM'} {'src': {'type': 'addresses_WC_ht', 'same': False, 'size': 16, 'congruent': 2, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_UC_ht', 'congruent': 4, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 6, 'same': False}, 'OP': 'REPM'} {'src': {'type': 'addresses_normal_ht', 'same': False, 'size': 4, 'congruent': 6, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_UC_ht', 'same': True, 'size': 32, 'congruent': 9, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_D_ht', 'congruent': 10, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 8, 'same': False}, 'OP': 'REPM'} {'37': 21829} 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 */
tests/nonsmoke/functional/CompileTests/experimental_ada_tests/tests/simple_use_type.ads
ouankou/rose
488
1651
<gh_stars>100-1000 with SimpleAda; package Simple_Use_Type is use type SimpleAda.Device; stdcout : constant SimpleAda.Device := 0; stdcerr : constant SimpleAda.Device := 1; stdcurr : SimpleAda.Device := stdcerr; end Simple_Use_Type;
Transynther/x86/_processed/NONE/_zr_/i7-8650U_0xd2_notsx.log_3_676.asm
ljhsiun2/medusa
9
246464
<reponame>ljhsiun2/medusa<gh_stars>1-10 .global s_prepare_buffers s_prepare_buffers: push %r11 push %r14 push %r9 push %rbx push %rcx push %rdi push %rsi lea addresses_UC_ht+0x6ef3, %r9 nop nop nop nop nop add $41771, %rcx mov (%r9), %rbx nop cmp %r11, %r11 lea addresses_UC_ht+0x9e23, %rsi lea addresses_D_ht+0x10803, %rdi nop nop nop nop inc %r14 mov $81, %rcx rep movsq nop nop nop nop nop sub $11211, %r9 lea addresses_D_ht+0x1ccbd, %r9 nop nop nop and $1645, %r11 movups (%r9), %xmm4 vpextrq $1, %xmm4, %rdi nop nop nop cmp %r11, %r11 pop %rsi pop %rdi pop %rcx pop %rbx pop %r9 pop %r14 pop %r11 ret .global s_faulty_load s_faulty_load: push %r10 push %r12 push %r13 push %r9 push %rcx push %rsi // Load lea addresses_US+0x1dbfc, %r9 nop nop nop nop nop cmp %rcx, %rcx mov (%r9), %r12w nop nop add $46431, %r12 // Faulty Load lea addresses_A+0x6a83, %r9 nop nop nop nop add $5991, %rsi mov (%r9), %r13 lea oracles, %rcx and $0xff, %r13 shlq $12, %r13 mov (%rcx,%r13,1), %r13 pop %rsi pop %rcx pop %r9 pop %r13 pop %r12 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_A', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_US', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_A', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}} <gen_prepare_buffer> {'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'size': 8, 'AVXalign': False, 'NT': True, 'congruent': 2, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 4, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 7, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 1, 'same': False}} {'00': 3} 00 00 00 */
oeis/005/A005880.asm
neoneye/loda-programs
11
100841
<filename>oeis/005/A005880.asm<gh_stars>10-100 ; A005880: Theta series of D_4 lattice with respect to edge. ; Submitted by <NAME> ; 2,8,12,16,26,24,28,48,36,40,64,48,62,80,60,64,96,96,76,112,84,88,156,96,114,144,108,144,160,120,124,208,168,136,192,144,148,248,192,160,242,168,216,240,180,224,256,240,196,312,204,208,384,216,220,304,228,288,364,288,266,336,312,256,352,264,320,480,276,280,384,336,360,456,300,304,468,384,316,432,384,328,576,336,366,520,348,496,480,360,364,496,456,432,640,384,388,672,396,400 mul $0,2 add $0,1 mov $2,$0 lpb $0 mov $3,$2 dif $3,$0 cmp $3,$2 cmp $3,0 mul $3,$0 sub $0,2 add $1,$3 lpe mov $0,$1 mul $0,2 add $0,2
asm/candm.asm
stevemonks/CAndMNext
8
91033
;------------------------------------------------------------------------- ; Name: candm.asm ;------------------------------------------------------------------------- ; Description: ; Basic template for Zeus. This configures various Zeus parameters ; and controls the layout of code and data in memory. All code and data ; is added to the project here via the "include" directives below. ;------------------------------------------------------------------------- AppFilename equ "candm" ; What we're called (for file generation) AppFirst equ $8000 ; First byte of code (uncontended memory) zeusemulate "Next","RAW" ; Set the model ; Start planting code here. (When generating a tape file we start saving from here) org AppFirst ; Start of application AppEntry nop include "nextreg.i" include "next.s" include "gamelogic.s" include "gameobj.s" include "ai.s" include "SetupLevel.s" include "tilewriter.s" include "player.s" include "cat.s" include "cheese.s" include "hole.s" include "textwriter.s" include "maps.s" game_sprites: include "gamesprites.s" ; set address of hardware tilemap memory in page 5 (the 16K bank from 16K to 32K) ; hardware requires this to be 256 byte aligned org $6000 tile_map_data: ds 1280 ; reserve space for the 40x32 tilemap used by the hardware ; tile map patterns - these must start at a 256 byte aligned address. ; for convenience I'm sticking them immediately after the tilemap buffer ; which is 5x256 byte pages tile_map_patterns: include "backg.s" ; tiles 256 byte aligned immediately following tile map include "glyphs.s" ; font glyph tiles, these follow on in memory from background ones jp AppEntry ; I suspect this isn't needed, particularly as I've stuffed a bunch of data right in front of it. ; Stop planting code after this. (When generating a tape file we save bytes below here) AppLast equ *-1 ; The last used byte's address ; Generate some useful debugging commands profile AppFirst,AppLast-AppFirst+1 ; Enable profiling for all the code ; Setup the emulation registers, so Zeus can emulate this code correctly Zeus_PC equ AppEntry ; Tell the emulator where to start Zeus_SP equ $FF40 ; Tell the emulator where to put the stack ; These generate some output files ; Generate a SZX file ;output_szx AppFilename+".szx",$0000,AppEntry ; The szx file ; If we want a fancy loader we need to load a loading screen ;import_bin AppFilename+".scr",$4000 ; Load a loading screen ; Now, also generate a tzx file using the loader ;output_tzx AppFilename+".tzx",AppFilename,"",AppFirst,AppLast-AppFirst,1,AppEntry ; A tzx file using the loader ; Now, also generate a tap file using the loader ;output_tap AppFilename+".tap",AppFilename,"",AppFirst,AppLast-AppFirst,1,AppEntry ; A tap file using the loader ; output a sna file as that seems to be the only thing CSpect can load output_sna AppFilename+".snx" ; output a .nex file. This is only supported in the test variants of Zeus at the time of writing. ;output_nex AppFilename+".nex",$FF40,AppEntry
libsrc/stdio/dbos/fputc_cons.asm
teknoplop/z88dk
0
85166
<reponame>teknoplop/z88dk<gh_stars>0 PUBLIC fputc_cons .fputc_cons IN A,($80) ; wait for ACIA buffer to be ready BIT 1,A JR Z,fputc_cons ld hl,2 add hl,sp ld a,(hl); Now A contains the char OUT ($81),A RET
array/printindexarray.asm
zaoad/assembly-
0
91696
<reponame>zaoad/assembly-<filename>array/printindexarray.asm segment .data a: dq 2 b: dq 0 cnt: dq 0 fmt: dq "%lld ",10,0 fmt_in: dq "%lld", 0 fmt_out: dq "THE SUM IS: %lld", 10, 0 segment .bss array resq 21 segment .text global main extern printf extern scanf main: push RBP mov RAX, 0 mov RCX, 0 mov RBX, 0 INPUT: cmp RCX, 5 jz init push RCX mov RAX, 0 mov RDI, fmt_in mov RSI, a call scanf mov RAX, [a] pop rcx mov [array+RCX*8], RAX add RBX, [a] inc RCX jmp INPUT init: mov RAX, 0 mov RDI, fmt_in mov RSI, a call scanf mov RAX, 0 mov RCX, 0 mov RDI, fmt_out mov RSI, RBX call printf mov RAX, 0 mov RCX, 0 mov RBX, 0 mov rcx, [a] mov RAX, [array+RCX*8] mov [cnt], RCX mov RDI, fmt mov RSI, RAX call printf END: mov RAX, 0 pop RBP ret
Transynther/x86/_processed/NONE/_zr_/i9-9900K_12_0xca.log_21829_1521.asm
ljhsiun2/medusa
9
243501
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r12 push %r8 push %rbx push %rcx push %rdi push %rdx push %rsi lea addresses_WC_ht+0x12e21, %rdx nop nop nop sub %r8, %r8 movb (%rdx), %bl xor %r12, %r12 lea addresses_D_ht+0x10e21, %rbx nop nop nop nop sub $37406, %rdi mov $0x6162636465666768, %r11 movq %r11, (%rbx) nop nop nop nop nop dec %rbx lea addresses_WC_ht+0xc677, %r8 nop nop sub %r11, %r11 mov (%r8), %di nop nop nop nop add $38893, %r8 lea addresses_WC_ht+0x1d189, %rsi lea addresses_UC_ht+0xf7a1, %rdi clflush (%rdi) nop nop nop dec %r8 mov $13, %rcx rep movsw inc %rbx lea addresses_UC_ht+0xa021, %rsi lea addresses_UC_ht+0x87d9, %rdi nop nop nop nop sub $8838, %r8 mov $107, %rcx rep movsl nop nop nop nop nop and $33009, %r8 lea addresses_A_ht+0x13f8e, %rsi lea addresses_D_ht+0x11365, %rdi nop nop nop nop add $15111, %rbx mov $45, %rcx rep movsl and $17272, %r8 lea addresses_WC_ht+0x15207, %rsi lea addresses_WC_ht+0x5ca9, %rdi and %rdx, %rdx mov $82, %rcx rep movsq nop nop nop and %rdx, %rdx lea addresses_WT_ht+0x8021, %r12 nop nop add $48791, %rdi movw $0x6162, (%r12) nop nop cmp %r12, %r12 lea addresses_D_ht+0xf409, %r11 nop nop nop nop nop cmp $31607, %rsi vmovups (%r11), %ymm2 vextracti128 $0, %ymm2, %xmm2 vpextrq $0, %xmm2, %rbx nop nop nop xor %rbx, %rbx lea addresses_A_ht+0xc821, %rbx and %rdx, %rdx movl $0x61626364, (%rbx) nop nop add $55844, %rsi lea addresses_WC_ht+0xf821, %rsi lea addresses_D_ht+0x13b19, %rdi nop nop mfence mov $86, %rcx rep movsl nop nop nop nop nop inc %rsi pop %rsi pop %rdx pop %rdi pop %rcx pop %rbx pop %r8 pop %r12 pop %r11 ret .global s_faulty_load s_faulty_load: push %r10 push %r11 push %r13 push %r15 push %r9 push %rbp push %rbx // Store lea addresses_US+0x190a1, %r9 nop and %r11, %r11 mov $0x5152535455565758, %rbx movq %rbx, %xmm2 movups %xmm2, (%r9) nop nop xor %rbp, %rbp // Load lea addresses_normal+0x18821, %r11 add %r13, %r13 movb (%r11), %r9b nop nop nop nop nop cmp %rbx, %rbx // Store lea addresses_UC+0x3ad9, %rbp nop nop nop nop inc %r10 mov $0x5152535455565758, %r13 movq %r13, %xmm0 movups %xmm0, (%rbp) nop nop nop cmp $59712, %r9 // Faulty Load lea addresses_WC+0x16021, %r13 nop nop nop nop nop sub $50967, %r15 vmovups (%r13), %ymm0 vextracti128 $0, %ymm0, %xmm0 vpextrq $0, %xmm0, %r9 lea oracles, %r13 and $0xff, %r9 shlq $12, %r9 mov (%r13,%r9,1), %r9 pop %rbx pop %rbp pop %r9 pop %r15 pop %r13 pop %r11 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'size': 1, 'NT': False, 'type': 'addresses_WC', 'same': False, 'AVXalign': False, 'congruent': 0}} {'OP': 'STOR', 'dst': {'size': 16, 'NT': False, 'type': 'addresses_US', 'same': False, 'AVXalign': False, 'congruent': 7}} {'OP': 'LOAD', 'src': {'size': 1, 'NT': False, 'type': 'addresses_normal', 'same': False, 'AVXalign': False, 'congruent': 9}} {'OP': 'STOR', 'dst': {'size': 16, 'NT': False, 'type': 'addresses_UC', 'same': False, 'AVXalign': False, 'congruent': 0}} [Faulty Load] {'OP': 'LOAD', 'src': {'size': 32, 'NT': False, 'type': 'addresses_WC', 'same': True, 'AVXalign': False, 'congruent': 0}} <gen_prepare_buffer> {'OP': 'LOAD', 'src': {'size': 1, 'NT': True, 'type': 'addresses_WC_ht', 'same': False, 'AVXalign': False, 'congruent': 8}} {'OP': 'STOR', 'dst': {'size': 8, 'NT': False, 'type': 'addresses_D_ht', 'same': True, 'AVXalign': False, 'congruent': 8}} {'OP': 'LOAD', 'src': {'size': 2, 'NT': False, 'type': 'addresses_WC_ht', 'same': False, 'AVXalign': False, 'congruent': 1}} {'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_WC_ht', 'congruent': 2}, 'dst': {'same': False, 'type': 'addresses_UC_ht', 'congruent': 7}} {'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_UC_ht', 'congruent': 10}, 'dst': {'same': False, 'type': 'addresses_UC_ht', 'congruent': 3}} {'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_A_ht', 'congruent': 0}, 'dst': {'same': False, 'type': 'addresses_D_ht', 'congruent': 0}} {'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_WC_ht', 'congruent': 1}, 'dst': {'same': False, 'type': 'addresses_WC_ht', 'congruent': 2}} {'OP': 'STOR', 'dst': {'size': 2, 'NT': False, 'type': 'addresses_WT_ht', 'same': False, 'AVXalign': False, 'congruent': 11}} {'OP': 'LOAD', 'src': {'size': 32, 'NT': False, 'type': 'addresses_D_ht', 'same': False, 'AVXalign': False, 'congruent': 1}} {'OP': 'STOR', 'dst': {'size': 4, 'NT': False, 'type': 'addresses_A_ht', 'same': False, 'AVXalign': False, 'congruent': 10}} {'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_WC_ht', 'congruent': 10}, 'dst': {'same': False, 'type': 'addresses_D_ht', 'congruent': 3}} {'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 */
libsrc/math/daimath32/c/sccz80/fp_setup_comparison.asm
ahjelm/z88dk
640
98518
SECTION code_fp_dai32 PUBLIC ___dai32_setup_comparison EXTERN ___dai32_fpac EXTERN ___dai32_tempval EXTERN ___dai32_fpcomp ; Put the two arguments into the required places ; ; This is for comparison routines, where we need to use ; double precision values (so pad them out) ; ; Entry: dehl = right hand operand ; Stack: defw return address ; defw callee return address ; defw left hand LSW ; defw left hand MSW ___dai32_setup_comparison: ; The right value needs to go into FPREG ld a,h ld h,l ld l,a ld (___dai32_tempval + 2),hl ex de,hl ld a,h ld h,l ld l,a ld (___dai32_tempval + 0),hl pop bc ;Return address pop de ;Caller return address pop hl ;Left LSW ld a,h ld h,l ld l,a ld (___dai32_fpac + 2),hl pop hl ld a,h ld h,l ld l,a ld (___dai32_fpac + 0),hl push de push bc ld hl,___dai32_tempval call ___dai32_fpcomp ret
source/required/s-soflin.adb
ytomino/drake
33
28031
<filename>source/required/s-soflin.adb with Ada.Unchecked_Conversion; with System.Runtime_Context; with System.Unwind.Occurrences; package body System.Soft_Links is pragma Suppress (All_Checks); -- implementation function Do_Get_Current_Excep return Ada.Exceptions.Exception_Occurrence_Access is function Cast is new Ada.Unchecked_Conversion ( Unwind.Exception_Occurrence_Access, Ada.Exceptions.Exception_Occurrence_Access); TLS : constant not null Runtime_Context.Task_Local_Storage_Access := Runtime_Context.Get_Task_Local_Storage; begin return Cast (Unwind.Occurrences.Get_Current_Occurrence (TLS)); end Do_Get_Current_Excep; function Get_GNAT_Exception return Ada.Exceptions.Exception_Id is function Cast is new Ada.Unchecked_Conversion ( Ada.Exceptions.Exception_Occurrence_Access, Unwind.Exception_Occurrence_Access); function Cast is new Ada.Unchecked_Conversion ( Unwind.Exception_Data_Access, Ada.Exceptions.Exception_Id); begin return Cast (Cast (Get_Current_Excep.all).Id); end Get_GNAT_Exception; end System.Soft_Links;
test/asm/ram-code.asm
orbea/rgbds
0
90968
<reponame>orbea/rgbds SECTION "test", ROM0[1] call Target PRINTT "PC in ROM: {@}\n" LOAD "new", WRAMX[$D001],BANK[1] PRINTT "PC in WRAM: {@}\n" assert @ == $D001 Target: dl DEAD << 16 | BEEF db BANK(@) jr .end .end jr .end ds 2, $2A ENDL After: jp Target ld hl, Word dw Byte, Target.end, After SECTION "dead", WRAMX[$DEAD],BANK[2] DEAD: SECTION "beef", SRAM[$BEEF] BEEF: SECTION "ram test", WRAMX,BANK[1] ; Should end up at $D005 Word: dw SECTION "small ram test", WRAMX,BANK[1] ; Should end up at $D000 Byte: db PRINTT "{Target}\n{Target.end}\n{After}\n"
temp/AutoInitTest.applescript
futurelab/GitSync-applescript
2
689
<reponame>futurelab/GitSync-applescript<filename>temp/AutoInitTest.applescript property ScriptLoader : load script alias ((path to scripts folder from user domain as text) & "file:ScriptLoader.scpt") --prerequisite for loading .applescript files property FileAsserter : my ScriptLoader's load_script(alias ((path to scripts folder from user domain as text) & "file:FileAsserter.applescript")) property GitUtil : my ScriptLoader's load_script(alias ((path to scripts folder from user domain as text) & "git:GitUtil.applescript")) --TODO: test the bellow import first property OnIntervalTest : my ScriptLoader's load_script(alias ((path to parent folder of me as text) & "OnIntervalTest.applescript")) (* * Automatically creates a local git repo based on the remote repo, if a local repo already exists, it is unharmfully merged into * TODO: this method is complete except merge_conflict_file_list needs to be generated somehow * @param branch: the branch you want to use as origin branch * TODO: when you impliment this method into GitSync.applescript you should add it to an internal Class AutoInitUtil's auto_init() *) on auto_init(local_path,remote_path,branch) set does_path_exist to FileAsserter's does_path_exist(local_path) if(does_path_exist) set is_folder_empty to length of files in local_path if(is_folder_empty)--folder is empty GitUtil's clone(remote_url, local_dir)--git clone with custom file path else--folder is not empty, files already exist set is_git_folder to GitAsserter's is_git_repo(local_path) if (is_git_folder)--folder already contains a .git folder (aka git repo data) set has_remote_repo_attached to GitAsserter's has_remote_repo_attached(local_path,branch) if(has_remote_repo_attached)--the .git folder already has a remote repo attached GitUtil's detach_remote_repo(local_path,branch)--promt the user if he wants to use the existing remote origin, this will skip the user needing to input a remote url GitUtil's attach_remote_repo(local_path,branch) else--does not have remote repo attached GitUtil's attach_remote_repo(local_path,branch)--attach remote repo end if else--has no .git folder, but there are some files like text.txt GitUtil's init(local_path)--init GitUtil's attach_remote_repo(local_path,branch)--add new remote origin end if OnIntervalTest's manual_merge(local_path,remote_path,into_branch,from_branch)--commits, merges with promts end if else--path does not exist GitUtil's clone(remote_url, local_dir)--this will also create the folders if they dont exist, even nested end if end auto_init
examples/fixed.adb
ytomino/drake
33
26655
-- Demonstration of the extended units: Ada.Fixed with Ada.Fixed; with System; procedure fixed is begin declare -- Divide type T is delta System.Fine_Delta range 0.0 .. 1.0 - System.Fine_Delta; type Q_Type is delta 0.1 range 0.0 .. 999.0; procedure Divide is new Ada.Fixed.Divide (T, T, Q_Type, T); Q : Q_Type; R : T; begin pragma Assert (T'Small = T'(System.Fine_Delta)); Divide (10 * T'Small, 3 * T'Small, Q, R); pragma Assert (Q = 3.0 and then R = T'Small); end; pragma Debug (Ada.Debug.Put ("OK")); end fixed;
Kernel64/CPU64.asm
sbarisic/Kernel
3
94791
section .text extern gdt_code extern Data extern main global BREAKPOINT BREAKPOINT: xchg bx, bx ret global entry entry: mov esp, stack.top mov [Data], esi call setup_gdt call main ret global setup_gdt setup_gdt: lgdt [gdt.pointer] mov dword [gdt_code], gdt.code mov ax, gdt.data mov ss, ax mov ds, ax mov es, ax mov ax, 0 mov gs, ax mov fs, ax ; TODO: fix ; push qword 0 ; mov dword [rsp + 4], gdt.code ; mov dword [rsp], setup_gdt.reload ; retf .reload: ret section .rdata align 8 gdt: dq 0 .code: equ $ - gdt dq (1 << 44) | (1 << 47) | (1 << 41) | (1 << 53) | (1 << 43) .data: equ $ - gdt dq (1 << 44) | (1 << 47) | (1 << 41) | (1 << 53) .pointer: dw $ - gdt - 1 dd gdt dd 0 section .bss align 8 stack: .bottom: resb 16384 .top:
Library/Impex/UI/uiImportCtrlRed.asm
steakknife/pcgeos
504
80787
<filename>Library/Impex/UI/uiImportCtrlRed.asm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) GeoWorks 1992 -- All Rights Reserved PROJECT: PC GEOS MODULE: Impex/UI FILE: uiImportCtrl.asm AUTHOR: <NAME>, May 26, 1992 ROUTINES: Name Description ---- ----------- INT ImportSendDataClassesToFormatList Send the data classes to the format list INT SetFileMask Set the file mask REVISION HISTORY: Name Date Description ---- ---- ----------- Don 5/26/92 Initial revision DESCRIPTION: Contains the code implementing the ImportControlClass $Id: uiImportCtrlRed.asm,v 1.3 98/07/20 18:06:30 joon Exp $ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ ImpexUICode segment resource COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% *** External Messages %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ImportControlSetDataClasses %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Sets the data classes to be displayed for import CALLED BY: GLOBAL (MSG_IMPORT_CONTROL_SET_DATA_CLASSES) PASS: *DS:SI = ImportControlClass object DS:DI = ImportControlClassInstance CX = ImpexDataClasses RETURN: Nothing DESTROYED: AX, BX, CX, DX, BP, DI, SI PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Don 5/26/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ ImportControlSetDataClasses method dynamic ImportControlClass, MSG_IMPORT_CONTROL_SET_DATA_CLASSES .enter ; Store the data away, and notify our child if needed ; EC < test cx, not ImpexDataClasses > EC < ERROR_NZ ILLEGAL_IMPEX_DATA_CLASSES > mov ds:[di].ICI_dataClasses, cx call ImportSendDataClassesToFormatList .leave ret ImportControlSetDataClasses endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ImportControlGetDataClasses %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Gets the data classes displayed for import CALLED BY: GLOBAL (MSG_IMPORT_CONTROL_GET_DATA_CLASSES) PASS: *DS:SI = ImportControlClass object DS:DI = ImportControlClassInstance RETURN: CX = ImpexDataClasses DESTROYED: Nothing PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Don 5/26/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ ImportControlGetDataClasses method dynamic ImportControlClass, MSG_IMPORT_CONTROL_GET_DATA_CLASSES .enter mov cx, ds:[di].ICI_dataClasses .leave ret ImportControlGetDataClasses endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ImportControlSetAction %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Set the action (message and OD to send it to) for import CALLED BY: GLOBAL (MSG_IMPORT_CONTROL_SET_ACTION) PASS: *DS:SI = ImportControlClass object DS:DI = ImportControlClassInstance CX:DX = OD of destination object BP = Message to send RETURN: Nothing DESTROYED: Nothing PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Don 5/26/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ ImportControlSetAction method dynamic ImportControlClass, MSG_IMPORT_CONTROL_SET_ACTION .enter movdw ds:[di].ICI_destination, cxdx mov ds:[di].ICI_message, bp .leave ret ImportControlSetAction endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ImportControlSetMsg %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Set the message for import CALLED BY: GLOBAL (MSG_IMPORT_CONTROL_SET_MSG) PASS: *DS:SI = ImportControlClass object DS:DI = ImportControlClassInstance CX = Message to send RETURN: Nothing DESTROYED: Nothing PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Don 5/26/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ ImportControlSetMsg method dynamic ImportControlClass, MSG_IMPORT_CONTROL_SET_MSG .enter mov ds:[di].ICI_message, cx .leave ret ImportControlSetMsg endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ImportControlGetAction %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Gets the action to be used upon import CALLED BY: GLOBAL (MSG_IMPORT_CONTROL_GET_ACTION) PASS: *DS:SI = ImportControlClass object DS:DI = ImportControlClassInstance RETURN: CX:DX = OD of destination object BP = Message to send DESTROYED: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Don 5/26/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ ImportControlGetAction method dynamic ImportControlClass, MSG_IMPORT_CONTROL_GET_ACTION .enter movdw cxdx, ds:[di].ICI_destination mov bp, ds:[di].ICI_message .leave ret ImportControlGetAction endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ImportControlSetAttrs %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Set the attributes for an ImportControl object CALLED BY: GLOBAL (MSG_IMPORT_CONTROL_SET_ATTRS) PASS: *DS:SI = ImportControlClass object DS:DI = ImportControlClassInstance CX = ImportControlAttrs RETURN: Nothing DESTROYED: Nothing PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Don 5/26/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ ImportControlSetAttrs method dynamic ImportControlClass, MSG_IMPORT_CONTROL_SET_ATTRS .enter if 0 EC < test cx, not ImportControlAttrs > EC < ERROR_NZ IMPORT_CONTROL_ILLEGAL_ATTRS > mov ds:[di].ICI_attrs, cx endif .leave ret ImportControlSetAttrs endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ImportControlGetAttrs %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Return the attributes for an ImportControl object CALLED BY: GLOBAL (MSG_IMPORT_CONTROL_GET_ATTRS) PASS: *DS:SI = ImportControlClass object DS:DI = ImportControlClassInstance RETURN: CX = ImportControlAttrs DESTROYED: Nothing PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Don 5/26/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ ImportControlGetAttrs method dynamic ImportControlClass, MSG_IMPORT_CONTROL_GET_ATTRS .enter if 0 mov cx, ds:[di].ICI_attrs endif .leave ret ImportControlGetAttrs endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ImportControlImportComplete %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: An application has reported that is import is complete. CALLED BY: GLOBAL (MSG_IMPORT_CONTROL_IMPORT_COMPLETE) PASS: *DS:SI = ImportControlClass object DS:DI = ImportControlClassInstance SS:BP = ImpexTranslationParams RETURN: Nothing DESTROYED: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Don 6/ 1/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ ImportControlImportComplete method dynamic ImportControlClass, MSG_IMPORT_CONTROL_IMPORT_COMPLETE ; Send a message of to the import thread ; mov ax, MSG_ITP_IMPORT_TO_APP_COMPLETE mov bx, ss:[bp].ITP_internal.low mov cx, ss:[bp].ITP_internal.high mov dx, size ImpexTranslationParams mov di, mask MF_STACK GOTO ObjMessage ImportControlImportComplete endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% *** Internal Messages %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ImportControlBuildBranch %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Intercept building of visual tree CALLED BY: GLOBAL (MSG_SPEC_BUILD_BRANCH) PASS: ES = Segment of ImportControlClass *DS:SI = ImportControlClass object DS:DI = ImportControlClassInstance BP = SpecBuildFlags RETURN: Nothing DESTROYED: BX, CX, DX, DI PSEUDO CODE/STRATEGY: * Copy a default moniker (if needed) * Continue with building of branch KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Don 6/15/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ if DEFAULT_MONIKER ImportControlBuildBranch method dynamic ImportControlClass, MSG_SPEC_BUILD_BRANCH ; Add a moniker (if needed) for import ; mov dx, handle DefaultImportMoniker mov cx, offset DefaultImportMoniker call ImpexCopyDefaultMoniker ; Call our superclass to finish the work ; mov di, offset ImportControlClass GOTO ObjCallSuperNoLock ImportControlBuildBranch endm endif COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ImportControlGetInfo %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Get information about the ImportControl object CALLED BY: GLOBAL (MSG_GEN_CONTROL_GET_INFO) PASS: *DS:SI = ImportControlControlClass object DS:DI = ImportControlControlClassInstance CX:DX = GenControlBuildInfo RETURN: Nothing DESTROYED: CX, DI, SI, DS, ES PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Don 1/27/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ ImportControlGetInfo method dynamic ImportControlClass, MSG_GEN_CONTROL_GET_INFO .enter mov es, cx mov di, dx ; buffer to fill => ES:DI segmov ds, cs mov si, offset IC_dupInfo mov cx, size GenControlBuildInfo rep movsb .leave ret ImportControlGetInfo endm IC_dupInfo GenControlBuildInfo < mask GCBF_MANUALLY_REMOVE_FROM_ACTIVE_LIST, ; GCBI_flags IC_initFileKey, ; GCBI_initFileKey 0, ; GCBI_gcnList 0, ; GCBI_gcnCount 0, ; GCBI_notificationList 0, ; GCBI_notificationCount ImportControllerName, ; GCBI_controllerName handle ImportControlUI, ; GCBI_dupBlock IC_childList, ; GCBI_childList length IC_childList, ; GCBI_childCount IC_featuresList, ; GCBI_featuresList length IC_featuresList, ; GCBI_featuresCount IMPORTC_DEFAULT_FEATURES, ; GCBI_features handle ImportToolboxUI, ; GCBI_toolBlock IC_toolList, ; GCBI_toolList length IC_toolList, ; GCBI_toolCount IC_toolFeaturesList, ; GCBI_toolFeaturesList length IC_toolFeaturesList, ; GCBI_toolFeaturesCount IMPORTC_DEFAULT_TOOLBOX_FEATURES, ; GCBI_toolFeatures IC_helpContext> ; GCBI_helpContext if FULL_EXECUTE_IN_PLACE ImpexControlInfoXIP segment resource endif IC_initFileKey char "importControl", 0 IC_childList GenControlChildInfo \ <offset ImportTop, mask IMPORTCF_BASIC, mask GCCF_IS_DIRECTLY_A_FEATURE>, <offset ImportFileMask, mask IMPORTCF_FILE_MASK, mask GCCF_IS_DIRECTLY_A_FEATURE>, <offset ImportFormatUIParent, mask IMPORTCF_FORMAT_OPTIONS, mask GCCF_IS_DIRECTLY_A_FEATURE>, <offset ImportAppUIParent, mask IMPORTCF_BASIC, mask GCCF_IS_DIRECTLY_A_FEATURE>, <offset ImportTrigger, mask IMPORTCF_IMPORT_TRIGGER, mask GCCF_IS_DIRECTLY_A_FEATURE>, <offset ImportCancelTrigger, 0, mask GCCF_ALWAYS_ADD> IC_featuresList GenControlFeaturesInfo \ <offset ImportDummyGlyph, 0, 0>, <offset ImportTop, 0, 0>, <offset ImportFileMask, 0, 0>, <offset ImportFormatUIParent, ImportFormatOptsName, 0>, <offset ImportTrigger, 0, 0> IC_toolList GenControlChildInfo \ <offset ImportToolTrigger, mask IMPORTCTF_DIALOG_BOX, mask GCCF_IS_DIRECTLY_A_FEATURE> IC_toolFeaturesList GenControlFeaturesInfo \ <offset ImportToolTrigger, ImportTriggerToolName, 0> IC_helpContext char "dbImport", 0 if FULL_EXECUTE_IN_PLACE ImpexControlInfoXIP ends endif COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ImportControlGetFileSelectorOffset %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Get offset of ImportFileSelector if it exists CALLED BY: MSG_IMPORT_CONTROL_GET_FILE_SELECTOR_OFFSET PASS: *ds:si = ImportControlClass object dx = import features mask RETURN: cx = offset of ImportFileSelector DESTROYED: none SIDE EFFECTS: PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- jenny 11/29/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ ImportControlGetFileSelectorOffset method dynamic ImportControlClass, MSG_IMPORT_CONTROL_GET_FILE_SELECTOR_OFFSET mov cx, offset ImportFileSelector ret ImportControlGetFileSelectorOffset endm ImportControlGetFileSelectGroupOffset method dynamic ImportControlClass, MSG_IMPORT_CONTROL_GET_FILE_SELECT_GROUP_OFFSET mov cx, offset ImportFileSelectGroup ret ImportControlGetFileSelectGroupOffset endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ImportControlGetFormatListOffset %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Get offset of ImportFormatList if it exists CALLED BY: MSG_IMPORT_CONTROL_GET_FORMAT_LIST_OFFSET PASS: *ds:si = ImportControlClass object dx = import features mask RETURN: cx = offset of ImportFormatList if it exists DESTROYED: none SIDE EFFECTS: PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- jenny 11/29/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ ImportControlGetFormatListOffset method dynamic ImportControlClass, MSG_IMPORT_CONTROL_GET_FORMAT_LIST_OFFSET mov cx, offset ImportFormatList ret ImportControlGetFormatListOffset endm ImportControlGetFormatGroupOffset method dynamic ImportControlClass, MSG_IMPORT_CONTROL_GET_FORMAT_GROUP_OFFSET mov cx, offset ImportFormatGroup ret ImportControlGetFormatGroupOffset endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ImportControlGetFormatUIParentOffset %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Get offset of ImportFormatUIParent if it exists CALLED BY: MSG_IMPORT_CONTROL_GET_FORMAT_UI_PARENT_OFFSET PASS: *ds:si = ImportControlClass object dx = import features mask RETURN: cx = offset of ImportFormatUIParent if it exists DESTROYED: none SIDE EFFECTS: PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- jenny 11/29/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ ImportControlGetFormatUIParentOffset method dynamic ImportControlClass, MSG_IMPORT_CONTROL_GET_FORMAT_UI_PARENT_OFFSET test dx, mask IMPORTCF_FORMAT_OPTIONS jz done mov cx, offset ImportFormatUIParent done: ret ImportControlGetFormatUIParentOffset endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ImportControlGetAppUIParentOffset %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Get offset of ImportAppUIParent if it exists CALLED BY: MSG_IMPORT_CONTROL_GET_APP_UI_PARENT_OFFSET PASS: *ds:si = ImportControlClass object dx = import features mask RETURN: cx = offset of ImportAppUIParent if it exists DESTROYED: none SIDE EFFECTS: PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- jenny 11/29/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ ImportControlGetAppUIParentOffset method dynamic ImportControlClass, MSG_IMPORT_CONTROL_GET_APP_UI_PARENT_OFFSET mov cx, offset ImportAppUIParent ret ImportControlGetAppUIParentOffset endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ImportControlGetImportTriggerOffset %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Get the offset of the import trigger if it exists CALLED BY: MSG_IMPORT_CONTROL_GET_IMPORT_TRIGGER_OFFSET PASS: *ds:si = ImportControlClass object dx = import features mask RETURN: cx = offset of ImportTrigger if it exists DESTROYED: none SIDE EFFECTS: PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- jenny 11/29/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ ImportControlGetImportTriggerOffset method dynamic ImportControlClass, MSG_IMPORT_CONTROL_GET_IMPORT_TRIGGER_OFFSET test dx, mask IMPORTCF_IMPORT_TRIGGER jz done mov cx, offset ImportTrigger done: ret ImportControlGetImportTriggerOffset endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ImportControlGenerateUI %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Add application-defined UI to Import dialog box CALLED BY: GLOBAL (MSG_GEN_CONTROL_GENERATE_UI) PASS: ES = Segment of ImportControlClass *DS:SI = ImportControlClass object DS:DI = ImportControlClassInstance AX = Message passed RETURN: Nothing DESTROYED: AX, BX, CX, DX, DI, SI, BP PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Don 5/26/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ ImportControlGenerateUI method dynamic ImportControlClass, MSG_GEN_CONTROL_GENERATE_UI .enter ; First, call our superclass ; mov di, offset ImportControlClass call ObjCallSuperNoLock ; Update the data classes in the FormatList ; mov di, ds:[si] add di, ds:[di].ImportControl_offset call ImportSendDataClassesToFormatList ; Now see if need to add any application-defined UI ; mov ax, MSG_IMPORT_CONTROL_GET_APP_UI_PARENT_OFFSET mov di, offset ImportControlClass call ImpexGetChildOffset ; di <- app UI parent offset jc done mov ax, ATTR_IMPORT_CONTROL_APP_UI call ObjVarFindData ; ds:bx <- data jnc done ; if none found, we're done call ImpexAddAppUI ; add the application UI done: .leave ret ImportControlGenerateUI endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ImportControlDestroyUI %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Remove application-defined (or format-defined) UI from the Import dialog box CALLED BY: GLOBAL (MSG_GEN_CONTROL_DESTROY_UI) PASS: ES = Segment of ImportControlClass *DS:SI = ImportControlClass object DS:DI = ImportControlClassInstance AX = Message RETURN: Nothing DESTROYED: AX, BX, CX, DX, DI, SI, BP PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Don 5/26/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ ImportControlDestroyUI method dynamic ImportControlClass, MSG_GEN_CONTROL_DESTROY_UI, MSG_META_DETACH ; First destroy any format-specific UI ; push ax, cx, dx, bp ; save the passed message mov ax, MSG_IMPORT_CONTROL_GET_FORMAT_UI_PARENT_OFFSET mov di, offset ImportControlClass call ImpexGetChildOffset ; di <- format UI parent ; offset jc doAppUI call ImpexRemoveFormatUI doAppUI: ; Now destroy any application-specific UI ; mov ax, MSG_IMPORT_CONTROL_GET_APP_UI_PARENT_OFFSET mov di, offset ImportControlClass call ImpexGetChildOffset ; di <- app UI parent offset jc done mov ax, ATTR_IMPORT_CONTROL_APP_UI call ObjVarFindData ; ds:bx <- data jnc done ; if none found, we're done call ImpexRemoveAppUI ; Finally, call our superclass to clean things up done: pop ax, cx, dx, bp ; restore passed message mov di, offset ImportControlClass GOTO ObjCallSuperNoLock ImportControlDestroyUI endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ImportControlSelectFormat %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Note that a format has been selected for import CALLED BY: GLOBAL (MSG_IMPORT_EXPORT_SELECT_FORMAT) PASS: *DS:SI = ImportControlClass object DS:DI = ImportControlClassInstance CX = Format # DX = FormatInfo block BP = TRUE if "No Idea" choice is present; FALSE, otherwise RETURN: Nothing DESTROYED: AX, BX, CX, DX, DI, SI, BP PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jimmy 4/91 Initial version jenny 1/92 Cleaned up Don 5/27/92 Renamed, cleaned up %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ ImportControlSelectFormat method dynamic ImportControlClass, MSG_IMPORT_EXPORT_SELECT_FORMAT .enter ; Get the offset of the format UI parent object, if ; any, and remove any current format UI. ; mov ax, MSG_IMPORT_CONTROL_GET_FORMAT_UI_PARENT_OFFSET mov di, offset ImportControlClass call ImpexGetChildOffset ; di <- format UI parent offset jc noOldFormatUI call ImpexRemoveFormatUI noOldFormatUI: ; Get the default file spec from the Library geode and ; set it into the File Mask text edit object. ; cmp cx, GIGS_NONE je done ; done if nothing selected tst bp ; If "No Idea" choice is jz doFormatUI ; ...not present, do format UI jcxz done ; Else, done dec cx ; ...or adjust element number doFormatUI: ; Now we need to see if there is any new format UI. ; tst di jz done ; done if no format UI parent mov bx, di mov ax, MSG_IMPORT_CONTROL_GET_FORMAT_LIST_OFFSET mov di, offset ImportControlClass call ImpexGetChildOffset ; di <- format list offset jc done mov dx, TR_GET_IMPORT_UI mov bp, offset IFD_importUIFlag mov ax, MSG_FORMAT_LIST_FETCH_FORMAT_UI call ObjMessage_child_call jc done ; if error, done mov di, bx ; di <- format UI parent offset mov ax, TR_GET_IMPORT_UI mov bx, TR_INIT_IMPORT_UI call ImpexAddFormatUI ; update the UI ; Notify the UI of the translation library which file has ; been selected for Import (since that was already selected) ; mov ax, MSG_IMPORT_CONTROL_GET_FILE_SELECTOR_OFFSET mov di, offset ImportControlClass call ImpexGetChildOffset ; di <- file selector offset jc done call SendFileSelectionInfo done: ; Either enable or disable the Import trigger ; mov ax, MSG_IMPORT_CONTROL_GET_IMPORT_TRIGGER_OFFSET mov di, offset ImportControlClass call ImpexGetChildOffset ; di <- import trigger offset jc exit mov ax, MSG_GEN_SET_NOT_ENABLED cmp cx, GIGS_NONE je setState mov ax, MSG_GEN_SET_ENABLED setState: mov dl, VUM_DELAYED_VIA_UI_QUEUE call ObjMessage_child_call ; Check to make sure we have at least one translation library ; mov ax, MSG_IMPORT_CONTROL_GET_FORMAT_LIST_OFFSET mov di, offset ImportControlClass call ImpexGetChildOffset ; di <- format list offset jc exit mov ax, MSG_GEN_DYNAMIC_LIST_GET_NUM_ITEMS call ObjMessage_child_call tst cx jnz exit ; Tell user to insert translation library disk ; mov bx, handle NoTranslationLibraryString call MemLock mov es, ax mov di, offset NoTranslationLibraryString mov di, es:[di] ; es:di = NoTranslationLibraryString mov ax, MSG_IMPORT_CONTROL_INSERT_LIBRARY_DISK_RESPONSE push ax ; save GADDP_message mov ax, ds:[LMBH_handle] pushdw axsi ; save GADDP_finishOD clr ax pushdw axax ; don't care about SDOP_helpContext mov ax, offset SDRT_okCancel pushdw csax ; don't care about SDOP_customTriggers clr ax pushdw axax ; don't care about SDOP_stringArg2 pushdw axax ; don't care about SDOP_stringArg1 pushdw esdi ; save SDOP_customString mov ax, (CDT_NOTIFICATION shl offset CDBF_DIALOG_TYPE) or \ (GIT_MULTIPLE_RESPONSE shl offset CDBF_INTERACTION_TYPE) push ax ; save SDOP_customFlags mov bp, sp ; ss:bp = GenAppDoDialogParams clr bx call GeodeGetAppObject mov ax, MSG_GEN_APPLICATION_DO_STANDARD_DIALOG mov dx, size GenAppDoDialogParams mov di, mask MF_STACK or mask MF_CALL call ObjMessage add sp, size GenAppDoDialogParams ; fixup stack mov bx, handle NoTranslationLibraryString call MemUnlock exit: .leave ret ImportControlSelectFormat endm SDRT_okCancel label StandardDialogResponseTriggerTable word 2 ; SDRTT_numTriggers StandardDialogResponseTriggerEntry < SDRT_ok, ; SDRTE_moniker IC_YES ; SDRTE_responseValue > StandardDialogResponseTriggerEntry < SDRT_cancel, ; SDRTE_moniker IC_NO ; SDRTE_responseValue > COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ImportControlInsertLibraryDiskResponse %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Handle insert library disk dialog response CALLED BY: MSG_IMPORT_CONTROL_INSERT_LIBRARY_DISK_RESPONSE PASS: *ds:si = ImportControlClass object ds:di = ImportControlClass instance data ds:bx = ImportControlClass object (same as *ds:si) es = segment of ImportControlClass ax = message # cx = InteractionCommand RETURN: nothing DESTROYED: ax, cx, dx, bp SIDE EFFECTS: PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- Joon 1/17/95 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ ImportControlInsertLibraryDiskResponse method dynamic ImportControlClass, MSG_IMPORT_CONTROL_INSERT_LIBRARY_DISK_RESPONSE cmp cx, IC_YES je rescan ; Dismiss interaction and cancel import ; mov ax, MSG_GEN_GUP_INTERACTION_COMMAND mov cx, IC_DISMISS call ObjCallInstanceNoLock mov bx, ds:[LMBH_handle] mov ax, MSG_IMPORT_CONTROL_CANCEL mov di, mask MF_FORCE_QUEUE GOTO ObjMessage rescan: ; Rescan new library disk ; mov bx, ds:[LMBH_handle] mov ax, MSG_IMPORT_CONTROL_NEW_LIBRARY_DISK mov di, mask MF_FORCE_QUEUE GOTO ObjMessage ImportControlInsertLibraryDiskResponse endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ImportControlFreeLibraryAndFormatUI %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Free the passed library and free any format UI CALLED BY: MSG_IMPORT_EXPORT_FREE_LIBRARY_AND_FORMAT_UI PASS: *ds:si = ImportControlClass object ds:di = ImportControlClass instance data ds:bx = ImportControlClass object (same as *ds:si) es = segment of ImportControlClass ax = message # cx = library handle RETURN: nothing DESTROYED: ax, cx, dx, bp SIDE EFFECTS: PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- Joon 12/ 9/94 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ ImportControlFreeLibraryAndFormatUI method dynamic ImportControlClass, MSG_IMPORT_EXPORT_FREE_LIBRARY_AND_FORMAT_UI ; Free library ; call ImportExportFreeLibrary ; Get the offset of the format UI parent object, if ; any, and remove any current format UI. ; mov ax, MSG_IMPORT_CONTROL_GET_FORMAT_UI_PARENT_OFFSET mov di, offset ImportControlClass call ImpexGetChildOffset ; di <- format UI parent offset jc done call ImpexRemoveFormatUI done: ret ImportControlFreeLibraryAndFormatUI endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ImportControlSelectFile %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Respond to a selection of a file by the user CALLED BY: GLOBAL (MSG_IMPORT_EXPORT_SELECT_FILE) PASS: *DS:SI = ImportControlClass object DS:DI = ImportControlClassInstance BP = GenFileSelectorEntryFlags RETURN: Nothing DESTROYED: AX, CX, DX, BP, DI PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Don 5/27/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ ImportControlSelectFile method dynamic ImportControlClass, MSG_IMPORT_EXPORT_SELECT_FILE .enter ; Either enable or disable the Import trigger ; mov ax, MSG_IMPORT_CONTROL_GET_IMPORT_TRIGGER_OFFSET mov di, offset ImportControlClass call ImpexGetChildOffset ; di <- trigger offset jc done mov ax, MSG_GEN_SET_NOT_ENABLED CheckHack <GFSET_FILE eq 0> test bp, mask GFSEF_TYPE jnz setStatus mov ax, MSG_GEN_SET_ENABLED setStatus: mov dl, VUM_DELAYED_VIA_UI_QUEUE call ObjMessage_child_send ; Finally, see if we should start the import ; test bp, mask GFSEF_OPEN jz done mov ax, MSG_GEN_TRIGGER_SEND_ACTION call ObjMessage_child_send done: .leave ret ImportControlSelectFile endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ImportControlImport %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Initiate an import CALLED BY: MSG_IMPORT_CONTROL_IMPORT PASS: *ds:si = ImportControlClass object ds:di = ImportControlClass instance data ds:bx = ImportControlClass object (same as *ds:si) es = segment of ImportControlClass ax = message # RETURN: nothing DESTROYED: ax, cx, dx, bp SIDE EFFECTS: PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- Joon 11/ 3/94 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ ImportControlImport method dynamic ImportControlClass, MSG_IMPORT_CONTROL_IMPORT CheckHack <(mask IA_IGNORE_INPUT) eq (mask ICA_IGNORE_INPUT)> ; Redwood, nuke clipboard file for space reasons. 1/20/94 cbh ; call ClipboardFreeItemsNotInUse ; Check if file selector is displayed (usable) ; If it is, then we must go to part 2, ie. to disable ; the file selector and put up the format list ; mov ax, MSG_IMPORT_CONTROL_GET_FILE_SELECT_GROUP_OFFSET mov di, offset ImportControlClass call ImpexGetChildOffset ; di <- file selector offset EC < ERROR_C IMPEX_NECESSARY_CONTROL_FEATURE_MISSING > mov ax, MSG_GEN_GET_USABLE call ObjMessage_child_call LONG jnc fileSelectorNotUsable ; Tell user to insert translation library disk ; clr ax pushdw axax ; don't care about SDOP_helpContext pushdw axax ; don't care about SDOP_customTriggers pushdw axax ; don't care about SDOP_stringArg2 pushdw axax ; don't care about SDOP_stringArg1 mov bx, handle InsertImpexDiskString mov ax, offset InsertImpexDiskString pushdw bxax ; save SDOP_customString mov ax, IMPEX_NOTIFICATION push ax ; save SDOP_customFlags call UserStandardDialogOptr ; Yes, file selector was usable, so... ; set it unusable ; mov ax, MSG_IMPORT_CONTROL_GET_FILE_SELECT_GROUP_OFFSET mov di, offset ImportControlClass call ImpexGetChildOffset ; di <- file selector offset EC < ERROR_C IMPEX_NECESSARY_CONTROL_FEATURE_MISSING > call setChildNotUsable ; Set format group usable ; mov ax, MSG_IMPORT_CONTROL_GET_FORMAT_GROUP_OFFSET mov di, offset ImportControlClass call ImpexGetChildOffset ; di <- format list offset EC < ERROR_C IMPEX_NECESSARY_CONTROL_FEATURE_MISSING > call setChildUsable ; Set format UI usable ; mov ax, MSG_IMPORT_CONTROL_GET_FORMAT_UI_PARENT_OFFSET mov di, offset ImportControlClass call ImpexGetChildOffset ; di <- format UI parent offset jc 5$ call setChildUsable 5$: ; Set app defined UI usable ; mov ax, ATTR_IMPORT_CONTROL_APP_UI call ObjVarFindData ; ds:bx <- extra data jnc 10$ ; if non found, we're done mov ax, MSG_IMPORT_CONTROL_GET_APP_UI_PARENT_OFFSET mov di, offset ImportControlClass call ObjMessage_child_call ; di <- app UI parent offset EC < ERROR_C IMPEX_NECESSARY_CONTROL_FEATURE_MISSING > call setChildUsable 10$: ret fileSelectorNotUsable: ; ; mark busy ; call markAppBusy ; Initialize the ImpexThreadInfo structure ; mov di, ds:[si] add di, ds:[di].ImportControl_offset mov cx, ds:[di].ICI_attrs mov ax, MSG_IMPORT_CONTROL_GET_FORMAT_LIST_OFFSET mov di, offset ImportControlClass call ImpexGetChildOffset ; di <- format list offset EC < ERROR_C IMPEX_NECESSARY_CONTROL_FEATURE_MISSING > mov bp, di mov ax, MSG_IMPORT_CONTROL_GET_FILE_SELECTOR_OFFSET mov di, offset ImportControlClass call ImpexGetChildOffset ; di <- file selector offset EC < ERROR_C IMPEX_NECESSARY_CONTROL_FEATURE_MISSING > push di ; save file selector offset mov dx, MSG_GEN_PATH_GET ; dx <- msg to send FileSelector call InitThreadInfoBlock ; Store away some additional data ; mov di, ds:[si] add di, ds:[di].ImportControl_offset mov ax, ds:[di].ICI_message mov es:[ITI_appMessage], ax movdw es:[ITI_appDest], ds:[di].ICI_destination, ax mov es:[ITI_notifySource].handle, handle ImportNotifyUI mov es:[ITI_notifySource].offset, offset ImportNotify pop di ; di <- file selector offset ; Load in the name of the source file ; mov ax, MSG_GEN_FILE_SELECTOR_GET_SELECTION mov cx, es mov dx, offset ITI_srcDestName call ObjMessage_child_call ; Now load the translation library ; push ds segmov ds, es mov di, offset ITI_libraryDesc call ImpexLoadLibrary ; bx <- library handle pop ds jc loadError continue: mov es:[ITI_libraryHandle], bx call ImpexLoadAndCloseImpexLibrary ; Mark not busy while we're asking user to insert disk. ; call markAppNotBusy ; Tell user to insert document disk ; clr ax pushdw axax ; don't care about SDOP_helpContext pushdw axax ; don't care about SDOP_customTriggers pushdw axax ; don't care about SDOP_stringArg2 pushdw axax ; don't care about SDOP_stringArg1 mov bx, handle InsertDocumentDiskString mov ax, offset InsertDocumentDiskString pushdw bxax ; save SDOP_customString mov ax, IMPEX_NOTIFICATION push ax ; save SDOP_customFlags call UserStandardDialogOptr ; Dismiss interaction and reset import control UI ; mov ax, MSG_GEN_GUP_INTERACTION_COMMAND mov cx, IC_DISMISS call ObjCallInstanceNoLock call ImportControlResetUI mov ax, MSG_ITP_IMPORT mov bx, es:[ITI_handle] call SpawnThread ret loadError: ; If we could not load the library, then tell the user ; to *really* insert the disk holding the translation ; library. Instead of providing a "Cancel" trigger ; (which would have required more work), we give the ; user one chance to re-insert the floppy, and then ; we give up. -Don 6/20/95 call markAppNotBusy clr ax pushdw axax ; SDOP_helpContext pushdw axax ; SDOP_customTriggers pushdw axax ; SDOP_stringArg2 pushdw axax ; SDOP_stringArg1 mov bx, handle InsertImpexDiskString mov ax, offset InsertImpexDiskString pushdw bxax ; save SDOP_customString mov ax, IMPEX_NOTIFICATION push ax ; save SDOP_customFlags call UserStandardDialogOptr call markAppBusy push ds segmov ds, es mov di, offset ITI_libraryDesc call ImpexLoadLibrary ; bx <- library handle pop ds jnc continue ; give up - tell user we couldn't load the driver call markAppNotBusy push es movdw cxdx, esdi ; cx:dx <- ITI_libraryDesc mov bp, IE_COULD_NOT_LOAD_XLIB call LockImpexError ; error string => ES:DI, flags => AX clr bp pushdw bpbp ; don't care about SDOP_helpContext pushdw bpbp ; don't care about SDOP_customTriggers pushdw bpbp ; don't care about SDOP_stringArg2 pushdw cxdx ; don't care about SDOP_stringArg1 pushdw esdi ; save SDOP_customString push ax ; save SDOP_customFlags call UserStandardDialog call MemUnlock ; unlock Strings resource pop es mov bx, es:[ITI_handle] call MemFree ; Cancel import ; mov ax, MSG_GEN_GUP_INTERACTION_COMMAND mov cx, IC_DISMISS call ObjCallInstanceNoLock mov ax, MSG_IMPORT_CONTROL_CANCEL GOTO ObjCallInstanceNoLock setChildUsable: mov ax, MSG_GEN_SET_USABLE jmp callChild setChildNotUsable: mov ax, MSG_GEN_SET_NOT_USABLE callChild: mov dl, VUM_NOW call ObjMessage_child_call retn markAppBusy: mov ax, MSG_GEN_APPLICATION_MARK_APP_COMPLETELY_BUSY jmp callApp markAppNotBusy: mov ax, MSG_GEN_APPLICATION_MARK_APP_NOT_COMPLETELY_BUSY callApp: call UserCallApplication retn ImportControlImport endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ImportControlCancel %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Cancel an import CALLED BY: GLOBAL (MSG_IMPORT_CONTROL_CANCEL) PASS: *DS:SI = ImportControlClass object DS:DI = ImportControlClassInstance RETURN: Nothing DESTROYED: AX, BX, CX, DX, DI, SI, BP, DS, ES PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Tony 11/17/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ ImportControlCancel method dynamic ImportControlClass, MSG_IMPORT_CONTROL_CANCEL ; ; Get the offset of the format UI parent object, if ; any, and remove any current format UI. ; mov ax, MSG_IMPORT_CONTROL_GET_FORMAT_UI_PARENT_OFFSET mov di, offset ImportControlClass call ImpexGetChildOffset ; di <- format UI parent offset jc noFormatUI call ImpexRemoveFormatUI noFormatUI: call ImportControlResetUI ; If there is vardata telling us to send a message on cancel ; then do so ; mov ax, ATTR_IMPORT_CONTROL_CANCEL_MESSAGE call ObjVarFindData jnc done mov dx, ds:[bx] ;save message mov ax, ATTR_IMPORT_CONTROL_CANCEL_DESTINATION call ObjVarFindData jnc done mov si, ds:[bx].chunk mov bx, ds:[bx].handle mov_tr ax, dx clr di GOTO ObjMessage done: ret ImportControlCancel endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ImportControlResetUI %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Reset import control UI CALLED BY: ImportControlImport ImportControlCancel PASS: *ds:si = ImportControlClass object RETURN: nothing DESTROYED: nothing SIDE EFFECTS: PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- Joon 11/ 4/94 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ ImportControlResetUI proc near uses ax,bx,cx,dx,di,bp,es .enter ; Disable format list and its trigger ; mov ax, MSG_IMPORT_CONTROL_GET_FORMAT_GROUP_OFFSET mov di, segment ImportControlClass mov es, di mov di, offset ImportControlClass call ImpexGetChildOffset ; di <- format group offset EC < ERROR_C IMPEX_NECESSARY_CONTROL_FEATURE_MISSING > call setChildNotUsable ; Set format UI unusable ; mov ax, MSG_IMPORT_CONTROL_GET_FORMAT_UI_PARENT_OFFSET mov di, offset ImportControlClass call ImpexGetChildOffset ; di <- format UI parent offset jc 5$ call setChildNotUsable 5$: ; Set app defined UI unusable ; mov ax, ATTR_IMPORT_CONTROL_APP_UI call ObjVarFindData ; ds:bx <- extra data jnc 10$ ; if non found, we're done mov ax, MSG_IMPORT_CONTROL_GET_APP_UI_PARENT_OFFSET mov di, offset ImportControlClass call ObjMessage_child_call ; di <- app UI parent offset EC < ERROR_C IMPEX_NECESSARY_CONTROL_FEATURE_MISSING > call setChildNotUsable 10$: ; Enable file selector ; mov ax, MSG_IMPORT_CONTROL_GET_FILE_SELECT_GROUP_OFFSET mov di, offset ImportControlClass call ImpexGetChildOffset ; di <- file selector offset EC < ERROR_C IMPEX_NECESSARY_CONTROL_FEATURE_MISSING > call setChildUsable ; Clear out format list ; mov ax, MSG_IMPORT_CONTROL_GET_FORMAT_LIST_OFFSET mov di, offset ImportControlClass call ImpexGetChildOffset ; di <- format list offset EC < ERROR_C IMPEX_NECESSARY_CONTROL_FEATURE_MISSING > mov ax, MSG_GEN_DYNAMIC_LIST_INITIALIZE clr cx call ObjMessage_child_call .leave ret setChildUsable: mov ax, MSG_GEN_SET_USABLE jmp callChild setChildNotUsable: mov ax, MSG_GEN_SET_NOT_USABLE callChild: mov dl, VUM_NOW call ObjMessage_child_call retn ImportControlResetUI endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ImportControlNewLibraryDisk %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Rescan format list CALLED BY: MSG_IMPORT_CONTROL_NEW_LIBRARY_DISK PASS: *ds:si = ImportControlClass object ds:di = ImportControlClass instance data ds:bx = ImportControlClass object (same as *ds:si) es = segment of ImportControlClass ax = message # RETURN: nothing DESTROYED: ax, cx, dx, bp SIDE EFFECTS: PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- Joon 11/ 3/94 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ ImportControlNewLibraryDisk method dynamic ImportControlClass, MSG_IMPORT_CONTROL_NEW_LIBRARY_DISK mov ax, MSG_IMPORT_CONTROL_GET_FORMAT_LIST_OFFSET mov di, offset ImportControlClass call ImpexGetChildOffset ; di <- format list offset EC < ERROR_C IMPEX_NECESSARY_CONTROL_FEATURE_MISSING > mov ax, MSG_FORMAT_LIST_RESCAN call ObjMessage_child_call ret ImportControlNewLibraryDisk endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% *** Utilities %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ImportSendDataClassesToFormatList %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Send the data classes to the format list CALLED BY: INTERNAL PASS: *DS:SI = ImportControlClass object DS:DI = ImportControlInstance RETURN: Nothing DESTROYED: AX, CX, DI PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Don 6/ 2/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ ImportSendDataClassesToFormatList proc near class ImportControlClass .enter mov cx, ds:[di].ICI_dataClasses mov ax, MSG_IMPORT_CONTROL_GET_FORMAT_LIST_OFFSET mov di, offset ImportControlClass call ImpexGetChildOffset ; di <- format list offset jc exit mov ax, MSG_FORMAT_LIST_SET_DATA_CLASSES call ObjMessage_child_send exit: .leave ret ImportSendDataClassesToFormatList endp ImpexUICode ends
smsq/ioa/CKNM.asm
olifink/smsqe
0
97910
* check file name V2.00  1986 <NAME> QJUMP * section ioa * xdef ioa_cknm check name xdef ioa_ckch check Z and d0 characters (a0)-(a4) xdef ioa_locas * include dev8_keys_chn * * d0 s character count * d1 s character * d2 s lowercased character * a0 c s pointer to channel block * a4 c s pointer to name * * condition codes Z if match * ioa_cknm lea chn_name(a0),a0 point to name moveq #0,d1 move.w (a0)+,d0 name length cmp.w (a4)+,d0 the same? bne.s icn_rts ... no bra.s icn_lend * icn_loop move.b (a4)+,d1 move.b ioa_locas(pc,d1.w),d2 first character move.b (a0)+,d1 cmp.b ioa_locas(pc,d1.w),d2 same as second? ioa_ckch icn_lend dbne d0,icn_loop icn_rts rts ioa_locas dc.b $00,$01,$02,$03,$04,$05,$06,$07 dc.b $08,$09,$0A,$0B,$0C,$0D,$0E,$0F dc.b $10,$11,$12,$13,$14,$15,$16,$17 dc.b $18,$19,$1A,$1B,$1C,$1D,$1E,$1F dc.b $20,$21,$22,$23,$24,$25,$26,$27 dc.b $28,$29,$2A,$2B,$2C,$2D,$2E,$2F dc.b $30,$31,$32,$33,$34,$35,$36,$37 dc.b $38,$39,$3A,$3B,$3C,$3D,$3E,$3F dc.b $40,$61,$62,$63,$64,$65,$66,$67 dc.b $68,$69,$6A,$6B,$6C,$6D,$6E,$6F dc.b $70,$71,$72,$73,$74,$75,$76,$77 dc.b $78,$79,$7A,$5B,$5C,$5D,$5E,$5F dc.b $60,$61,$62,$63,$64,$65,$66,$67 dc.b $68,$69,$6A,$6B,$6C,$6D,$6E,$6F dc.b $70,$71,$72,$73,$74,$75,$76,$77 dc.b $78,$79,$7A,$7B,$7C,$7D,$7E,$7F dc.b $80,$81,$82,$83,$84,$85,$86,$87 dc.b $88,$89,$8A,$8B,$8C,$8D,$8E,$8F dc.b $90,$91,$92,$93,$94,$95,$96,$97 dc.b $98,$99,$9A,$9B,$9C,$9D,$9E,$9F dc.b $80,$81,$82,$83,$84,$85,$86,$87 dc.b $88,$89,$8A,$8B,$AC,$AD,$AE,$AF dc.b $B0,$B1,$B2,$B3,$B4,$B5,$B6,$B7 dc.b $B8,$B9,$BA,$BB,$BC,$BD,$BE,$BF dc.b $C0,$C1,$C2,$C3,$C4,$C5,$C6,$C7 dc.b $C8,$C9,$CA,$CB,$CC,$CD,$CE,$CF dc.b $D0,$D1,$D2,$D3,$D4,$D5,$D6,$D7 dc.b $D8,$D9,$DA,$DB,$DC,$DD,$DE,$DF dc.b $E0,$E1,$E2,$E3,$E4,$E5,$E6,$E7 dc.b $E8,$E9,$EA,$EB,$EC,$ED,$EE,$EF dc.b $F0,$F1,$F2,$F3,$F4,$F5,$F6,$F7 dc.b $F8,$F9,$FA,$FB,$FC,$FD,$FE,$FF end
Transynther/x86/_processed/AVXALIGN/_st_/i9-9900K_12_0xca_notsx.log_21829_1132.asm
ljhsiun2/medusa
9
6064
.global s_prepare_buffers s_prepare_buffers: ret .global s_faulty_load s_faulty_load: push %r13 push %r8 push %rax push %rcx push %rdi push %rsi // Store lea addresses_D+0x14678, %rax nop nop nop add %r8, %r8 mov $0x5152535455565758, %r13 movq %r13, (%rax) nop nop nop nop nop and %rdi, %rdi // Faulty Load lea addresses_WT+0x3278, %rsi nop nop nop nop nop and $64907, %r13 mov (%rsi), %eax lea oracles, %rcx and $0xff, %rax shlq $12, %rax mov (%rcx,%rax,1), %rax pop %rsi pop %rdi pop %rcx pop %rax pop %r8 pop %r13 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_WT', 'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 0}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_D', 'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 9}} [Faulty Load] {'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_WT', 'NT': False, 'AVXalign': True, 'size': 4, 'congruent': 0}} <gen_prepare_buffer> {'39': 21829} 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 */
src/asf-lifecycles-default.adb
jquorning/ada-asf
12
6504
<reponame>jquorning/ada-asf ----------------------------------------------------------------------- -- asf-lifecycles-default -- Default Lifecycle handler -- Copyright (C) 2010, 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 ASF.Lifecycles.Restore; with ASF.Lifecycles.Apply; with ASF.Lifecycles.Validation; with ASF.Lifecycles.Update; with ASF.Lifecycles.Invoke; with ASF.Lifecycles.Response; package body ASF.Lifecycles.Default is -- ------------------------------ -- Creates the phase controllers by invoking the <b>Set_Controller</b> -- procedure for each phase. This is called by <b>Initialize</b> to build -- the lifecycle handler. -- ------------------------------ procedure Create_Phase_Controllers (Controller : in out Lifecycle) is use ASF.Events.Phases; begin Controller.Set_Controller (Phase => RESTORE_VIEW, Instance => new Lifecycles.Restore.Restore_Controller); Controller.Set_Controller (Phase => APPLY_REQUEST_VALUES, Instance => new Lifecycles.Apply.Apply_Controller); Controller.Set_Controller (Phase => PROCESS_VALIDATION, Instance => new Lifecycles.Validation.Validation_Controller); Controller.Set_Controller (Phase => UPDATE_MODEL_VALUES, Instance => new Lifecycles.Update.Update_Controller); Controller.Set_Controller (Phase => INVOKE_APPLICATION, Instance => new Lifecycles.Invoke.Invoke_Controller); Controller.Set_Controller (Phase => RENDER_RESPONSE, Instance => new Lifecycles.Response.Response_Controller); end Create_Phase_Controllers; -- ------------------------------ -- Initialize the the lifecycle handler. -- ------------------------------ overriding procedure Initialize (Controller : in out Lifecycle; Views : ASF.Applications.Views.View_Handler_Access) is begin Lifecycle'Class (Controller).Create_Phase_Controllers; for Phase in Controller.Controllers'Range loop Controller.Controllers (Phase).Initialize (Views); end loop; end Initialize; end ASF.Lifecycles.Default;
target/cos_117/disasm/iop_overlay1/DESCRIBE.asm
jrrk2/cray-sim
49
27395
0x0000 (0x000000) 0x102B- f:00010 d: 43 | A = 43 (0x002B) 0x0001 (0x000002) 0x2922- f:00024 d: 290 | OR[290] = A 0x0002 (0x000004) 0x1800-0x0177 f:00014 d: 0 | A = 375 (0x0177) 0x0004 (0x000008) 0x2923- f:00024 d: 291 | OR[291] = A 0x0005 (0x00000A) 0x111F- f:00010 d: 287 | A = 287 (0x011F) 0x0006 (0x00000C) 0x2924- f:00024 d: 292 | OR[292] = A 0x0007 (0x00000E) 0x1120- f:00010 d: 288 | A = 288 (0x0120) 0x0008 (0x000010) 0x2925- f:00024 d: 293 | OR[293] = A 0x0009 (0x000012) 0x1121- f:00010 d: 289 | A = 289 (0x0121) 0x000A (0x000014) 0x2926- f:00024 d: 294 | OR[294] = A 0x000B (0x000016) 0x1122- f:00010 d: 290 | A = 290 (0x0122) 0x000C (0x000018) 0x5800- f:00054 d: 0 | B = A 0x000D (0x00001A) 0x1000- f:00010 d: 0 | A = 0 (0x0000) 0x000E (0x00001C) 0x7C09- f:00076 d: 9 | R = OR[9] 0x000F (0x00001E) 0xB634- f:00133 d: 52 | R = OR[52], A # 0 0x0010 (0x000020) 0x000A- f:00000 d: 10 | PASS | **** non-standard encoding with D:0x000A **** 0x0011 (0x000022) 0x211B- f:00020 d: 283 | A = OR[283] 0x0012 (0x000024) 0x0802- f:00004 d: 2 | A = A > 2 (0x0002) 0x0013 (0x000026) 0x291B- f:00024 d: 283 | OR[283] = A 0x0014 (0x000028) 0x2120- f:00020 d: 288 | A = OR[288] 0x0015 (0x00002A) 0x251B- f:00022 d: 283 | A = A + OR[283] 0x0016 (0x00002C) 0x2920- f:00024 d: 288 | OR[288] = A 0x0017 (0x00002E) 0x8002- f:00100 d: 2 | P = P + 2 (0x0019), C = 0 0x0018 (0x000030) 0x2D1F- f:00026 d: 287 | OR[287] = OR[287] + 1 0x0019 (0x000032) 0x2104- f:00020 d: 260 | A = OR[260] 0x001A (0x000034) 0x290D- f:00024 d: 269 | OR[269] = A 0x001B (0x000036) 0x2104- f:00020 d: 260 | A = OR[260] 0x001C (0x000038) 0x1403- f:00012 d: 3 | A = A + 3 (0x0003) 0x001D (0x00003A) 0x1A00-0xFFFC f:00015 d: 0 | A = A & 65532 (0xFFFC) 0x001F (0x00003E) 0x2904- f:00024 d: 260 | OR[260] = A 0x0020 (0x000040) 0x2104- f:00020 d: 260 | A = OR[260] 0x0021 (0x000042) 0x291B- f:00024 d: 283 | OR[283] = A 0x0022 (0x000044) 0x1800-0x0080 f:00014 d: 0 | A = 128 (0x0080) 0x0024 (0x000048) 0x2B04- f:00025 d: 260 | OR[260] = A + OR[260] 0x0025 (0x00004A) 0x2104- f:00020 d: 260 | A = OR[260] 0x0026 (0x00004C) 0x2705- f:00023 d: 261 | A = A - OR[261] 0x0027 (0x00004E) 0xB234- f:00131 d: 52 | R = OR[52], C = 1 0x0028 (0x000050) 0x000B- f:00000 d: 11 | PASS | **** non-standard encoding with D:0x000B **** 0x0029 (0x000052) 0x210D- f:00020 d: 269 | A = OR[269] 0x002A (0x000054) 0x3904- f:00034 d: 260 | (OR[260]) = A 0x002B (0x000056) 0x2D04- f:00026 d: 260 | OR[260] = OR[260] + 1 0x002C (0x000058) 0x1026- f:00010 d: 38 | A = 38 (0x0026) 0x002D (0x00005A) 0x2922- f:00024 d: 290 | OR[290] = A 0x002E (0x00005C) 0x211F- f:00020 d: 287 | A = OR[287] 0x002F (0x00005E) 0x2923- f:00024 d: 291 | OR[291] = A 0x0030 (0x000060) 0x2120- f:00020 d: 288 | A = OR[288] 0x0031 (0x000062) 0x2924- f:00024 d: 292 | OR[292] = A 0x0032 (0x000064) 0x211B- f:00020 d: 283 | A = OR[283] 0x0033 (0x000066) 0x2925- f:00024 d: 293 | OR[293] = A 0x0034 (0x000068) 0x1800-0x0080 f:00014 d: 0 | A = 128 (0x0080) 0x0036 (0x00006C) 0x0802- f:00004 d: 2 | A = A > 2 (0x0002) 0x0037 (0x00006E) 0x2926- f:00024 d: 294 | OR[294] = A 0x0038 (0x000070) 0x1000- f:00010 d: 0 | A = 0 (0x0000) 0x0039 (0x000072) 0x2927- f:00024 d: 295 | OR[295] = A 0x003A (0x000074) 0x1122- f:00010 d: 290 | A = 290 (0x0122) 0x003B (0x000076) 0x5800- f:00054 d: 0 | B = A 0x003C (0x000078) 0x1000- f:00010 d: 0 | A = 0 (0x0000) 0x003D (0x00007A) 0x7C09- f:00076 d: 9 | R = OR[9] 0x003E (0x00007C) 0x1028- f:00010 d: 40 | A = 40 (0x0028) 0x003F (0x00007E) 0x2922- f:00024 d: 290 | OR[290] = A 0x0040 (0x000080) 0x1800-0x0128 f:00014 d: 0 | A = 296 (0x0128) 0x0042 (0x000084) 0x2923- f:00024 d: 291 | OR[291] = A 0x0043 (0x000086) 0x2118- f:00020 d: 280 | A = OR[280] 0x0044 (0x000088) 0x2924- f:00024 d: 292 | OR[292] = A 0x0045 (0x00008A) 0x2119- f:00020 d: 281 | A = OR[281] 0x0046 (0x00008C) 0x2925- f:00024 d: 293 | OR[293] = A 0x0047 (0x00008E) 0x211A- f:00020 d: 282 | A = OR[282] 0x0048 (0x000090) 0x2926- f:00024 d: 294 | OR[294] = A 0x0049 (0x000092) 0x211B- f:00020 d: 283 | A = OR[283] 0x004A (0x000094) 0x2927- f:00024 d: 295 | OR[295] = A 0x004B (0x000096) 0x211C- f:00020 d: 284 | A = OR[284] 0x004C (0x000098) 0x2928- f:00024 d: 296 | OR[296] = A 0x004D (0x00009A) 0x100D- f:00010 d: 13 | A = 13 (0x000D) 0x004E (0x00009C) 0x2929- f:00024 d: 297 | OR[297] = A 0x004F (0x00009E) 0x100E- f:00010 d: 14 | A = 14 (0x000E) 0x0050 (0x0000A0) 0x292A- f:00024 d: 298 | OR[298] = A 0x0051 (0x0000A2) 0x1122- f:00010 d: 290 | A = 290 (0x0122) 0x0052 (0x0000A4) 0x5800- f:00054 d: 0 | B = A 0x0053 (0x0000A6) 0x1800-0x1518 f:00014 d: 0 | A = 5400 (0x1518) 0x0055 (0x0000AA) 0x7C09- f:00076 d: 9 | R = OR[9] 0x0056 (0x0000AC) 0x2913- f:00024 d: 275 | OR[275] = A 0x0057 (0x0000AE) 0x2F04- f:00027 d: 260 | OR[260] = OR[260] - 1 0x0058 (0x0000B0) 0x3104- f:00030 d: 260 | A = (OR[260]) 0x0059 (0x0000B2) 0x2904- f:00024 d: 260 | OR[260] = A 0x005A (0x0000B4) 0x2104- f:00020 d: 260 | A = OR[260] 0x005B (0x0000B6) 0x2706- f:00023 d: 262 | A = A - OR[262] 0x005C (0x0000B8) 0x8007- f:00100 d: 7 | P = P + 7 (0x0063), C = 0 0x005D (0x0000BA) 0x2104- f:00020 d: 260 | A = OR[260] 0x005E (0x0000BC) 0x2705- f:00023 d: 261 | A = A - OR[261] 0x005F (0x0000BE) 0x8003- f:00100 d: 3 | P = P + 3 (0x0062), C = 0 0x0060 (0x0000C0) 0x8402- f:00102 d: 2 | P = P + 2 (0x0062), A = 0 0x0061 (0x0000C2) 0x7002- f:00070 d: 2 | P = P + 2 (0x0063) 0x0062 (0x0000C4) 0x7003- f:00070 d: 3 | P = P + 3 (0x0065) 0x0063 (0x0000C6) 0x7C34- f:00076 d: 52 | R = OR[52] 0x0064 (0x0000C8) 0x000B- f:00000 d: 11 | PASS | **** non-standard encoding with D:0x000B **** 0x0065 (0x0000CA) 0x2005- f:00020 d: 5 | A = OR[5] 0x0066 (0x0000CC) 0x1406- f:00012 d: 6 | A = A + 6 (0x0006) 0x0067 (0x0000CE) 0x2908- f:00024 d: 264 | OR[264] = A 0x0068 (0x0000D0) 0x2113- f:00020 d: 275 | A = OR[275] 0x0069 (0x0000D2) 0x3908- f:00034 d: 264 | (OR[264]) = A 0x006A (0x0000D4) 0x2113- f:00020 d: 275 | A = OR[275] 0x006B (0x0000D6) 0x8402- f:00102 d: 2 | P = P + 2 (0x006D), A = 0 0x006C (0x0000D8) 0x700B- f:00070 d: 11 | P = P + 11 (0x0077) 0x006D (0x0000DA) 0x2005- f:00020 d: 5 | A = OR[5] 0x006E (0x0000DC) 0x251D- f:00022 d: 285 | A = A + OR[285] 0x006F (0x0000DE) 0x290D- f:00024 d: 269 | OR[269] = A 0x0070 (0x0000E0) 0x2119- f:00020 d: 281 | A = OR[281] 0x0071 (0x0000E2) 0x390D- f:00034 d: 269 | (OR[269]) = A 0x0072 (0x0000E4) 0x2005- f:00020 d: 5 | A = OR[5] 0x0073 (0x0000E6) 0x251E- f:00022 d: 286 | A = A + OR[286] 0x0074 (0x0000E8) 0x290D- f:00024 d: 269 | OR[269] = A 0x0075 (0x0000EA) 0x211A- f:00020 d: 282 | A = OR[282] 0x0076 (0x0000EC) 0x390D- f:00034 d: 269 | (OR[269]) = A 0x0077 (0x0000EE) 0x102A- f:00010 d: 42 | A = 42 (0x002A) 0x0078 (0x0000F0) 0x2922- f:00024 d: 290 | OR[290] = A 0x0079 (0x0000F2) 0x1122- f:00010 d: 290 | A = 290 (0x0122) 0x007A (0x0000F4) 0x5800- f:00054 d: 0 | B = A 0x007B (0x0000F6) 0x1000- f:00010 d: 0 | A = 0 (0x0000) 0x007C (0x0000F8) 0x7C09- f:00076 d: 9 | R = OR[9] 0x007D (0x0000FA) 0x0000- f:00000 d: 0 | PASS 0x007E (0x0000FC) 0x0000- f:00000 d: 0 | PASS 0x007F (0x0000FE) 0x0000- f:00000 d: 0 | PASS
tokenization/src/main/resources/tokenizer/TurkishLexer.g4
javrasya/zemberek-nlp
0
6870
<filename>tokenization/src/main/resources/tokenizer/TurkishLexer.g4 /* * A simple lexer grammar for Turkish texts. * */ lexer grammar TurkishLexer; @header { package zemberek3.shared.tokenizer.zemberek.antlr; import com.google.common.base.Charsets; import com.google.common.collect.Sets; import com.google.common.io.Files; import com.google.common.io.Resources; import java.io.File; import java.io.IOException; import java.util.List; import java.util.Set; import java.util.Locale; } @members { private static Set<String> abbreviations = Sets.newHashSet(); private java.util.Queue<Token> queue = new java.util.LinkedList<Token>(); private static Locale localeTr = new Locale("tr"); static { try { for(String line: Resources.readLines(Resources.getResource("tokenizer/abbreviations.txt"),Charsets.UTF_8)) { final int abbrEndIndex = line.indexOf(":"); if (abbrEndIndex > 0) { final String abbr = line.substring(0, abbrEndIndex); if (abbr.endsWith(".")) { abbreviations.add(abbr); abbreviations.add(abbr.toLowerCase(Locale.ENGLISH)); abbreviations.add(abbr.toLowerCase(localeTr)); } } } } catch (IOException e) { e.printStackTrace(); } } @Override public Token nextToken() { if(!queue.isEmpty()) { return queue.poll(); } Token next = super.nextToken(); if(next.getType() != TurkishWord) { return next; } StringBuilder builder = new StringBuilder(next.getText()); Token next2 = super.nextToken(); if (next2.getType() == Punctuation && next2.getText().equals(".")) { builder.append('.'); String abbrev = builder.toString(); if (abbreviations!= null && abbreviations.contains(abbrev)) { return new CommonToken(Abbreviation, abbrev); } } queue.offer(next2); return next; } } tokens {Abbreviation} options { language = Java; } fragment Digit: [0-9]; // Letters fragment TurkishLetters : [a-z\u00e7\u011f\u0131\u00f6\u015f\u00fc\u00e2\u00ee\u00fb]; fragment TurkishLettersCapital : [A-Z\u00c7\u011e\u0130\u00d6\u015e\u00dc\u00c2\u00ce\u00db]; fragment AllTurkishAlphanumerical : [0-9a-zA-Z\u00e7\u011f\u0131\u00f6\u015f\u00fc\u00e2\u00ee\u00fb\u00c7\u011e\u0130\u00d6\u015e\u00dc\u00c2\u00ce\u00db\-]; // 'lerin fragment AposAndSuffix: '\'' TurkishLetters+; // 'LERIN fragment AposAndSuffixCapital: '\'' TurkishLettersCapital+; SpaceTab : [ \t]+; NewLine : [\n\r]+; PercentNumeral : '%' Number; Number : [+\-]? Integer [.\,] Integer Exp? AposAndSuffix? // -1.35, 1.35E-9, 3,1'e | [+\-]? Integer Exp AposAndSuffix? // 1e10 -3e4 1e10'dur | [+\-]? Integer AposAndSuffix? // -3, 45 | (Integer '.')+ Integer AposAndSuffix? // 1.000.000 | (Integer ',')+ Integer AposAndSuffix? // 2,345,531 | Integer '.'? AposAndSuffix? // Ordinal 2. 34. ; // Not really an integer as it can have zeroes at the start but this is ok. fragment Integer : Digit+ ; fragment Exp : [Ee] [+\-]? Integer ; // Roman numbers: RomanNumeral : ('I'|'II'|'III'|'IV'|'V'|'VI'|'VII'|'VIII'|'IX') '.'?; // Merhaba kedi TurkishWord : TurkishLettersCapital? TurkishLetters+; // Ahmet'in TurkishWordWithApos : TurkishLettersCapital TurkishLetters+ AposAndSuffix; // Abbreviations and All Caps words, could be an abbreviation or header. // Should be checked with dictionary. // NATO TBMM'NE IDO'nun etc. AllCapsWord : TurkishLettersCapital+ (AposAndSuffixCapital? | AposAndSuffix?); // I.B.M. AbbreviationWithDots : (TurkishLettersCapital '.')+ TurkishLettersCapital? (AposAndSuffixCapital? | AposAndSuffix?); // Need to match anything with a dot and post process it to check if // it is actually an abbreviation: prof. vs. // WordWithDot : TurkishLetters+ '.'; // Alpha numerical words F16 H1N1 etc. Alphanumerical : (AllTurkishAlphanumerical)+ (AposAndSuffixCapital? | AposAndSuffix?); Punctuation : '...' | '(!)' | '(?)'| [.,!?%$&*+@\\:;\-\"\'\(\)\[\]\{\}]; // Catch all remaining as Unknown. Unknown : .+? ;
.emacs.d/elpa/wisi-2.1.1/wisitoken-parse-lr-mckenzie_recover-base.ads
caqg/linux-home
0
16447
<filename>.emacs.d/elpa/wisi-2.1.1/wisitoken-parse-lr-mckenzie_recover-base.ads -- Abstract : -- -- Base utilities for McKenzie_Recover -- -- Copyright (C) 2018 - 2019 Free Software Foundation, Inc. -- -- This library is free software; you can redistribute it and/or modify it -- under terms of the GNU General Public License as published by the Free -- Software Foundation; either version 3, or (at your option) any later -- version. This library is distributed in the hope that it will be useful, -- but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHAN- -- TABILITY or FITNESS FOR A PARTICULAR PURPOSE. -- As a special exception under Section 7 of GPL version 3, you are granted -- additional permissions described in the GCC Runtime Library Exception, -- version 3.1, as published by the Free Software Foundation. pragma License (Modified_GPL); with Ada.Exceptions; with WisiToken.Parse.LR.Parser; with WisiToken.Parse.LR.Parser_Lists; private package WisiToken.Parse.LR.McKenzie_Recover.Base is ---------- -- Protected object specs. -- -- Tasking design requirements: -- -- 1) For each parse_state, find all solutions of the same lowest -- cost. -- -- 2) use as many CPUs as available as fully as possible. -- -- 3) avoid -- a) busy waits -- b) race conditions -- c) deadlocks. -- -- For 2), we use worker_tasks to perform the check computations on -- each configuration. We allocate N - 1 worker_tasks, where N is the -- number of available CPUs, saving one CPU for Supervisor and the -- foreground IDE. -- -- For 1), worker_tasks always get the lowest cost configuration -- available. However, some active worker_task may have a lower cost -- configuration that it has not yet delivered to Supervisor. -- Therefore we always wait until all current active worker_tasks -- deliver their results before deciding we are done. -- -- For 3a) we have one Supervisor protected object that controls -- access to all Parse_States and configurations, and a Shared object -- that provides appropriate access to the Shared_Parser components. -- -- It is tempting to try to reduce contention for Supervisor by -- having one protected object per parser, but that requires the -- worker tasks to busy loop checking all the parsers. -- -- There is still a race condition on Success; the solutions can be -- delivered in different orders on different runs. This matters -- because each solution results in a successful parse, possibly with -- different actions (different indentation computed, for example). -- Which solution finally succeeds depends on which are terminated -- due to identical parser stacks, which in turn depends on the order -- they were delivered. See ada-mode/tests/ada_mode-interactive_2.adb -- for an example. -- -- There is also a race condition on how many failed or higher cost -- configurations are checked, before the final solutions are found. type Config_Status is (Valid, All_Done); type Recover_State is (Active, Ready, Success, Fail); type Parser_Status is record Recover_State : Base.Recover_State; Parser_State : Parser_Lists.State_Access; Fail_Mode : Recover_Status; Active_Workers : Natural; -- Count of Worker_Tasks that have done Get but not Put or Success. end record; type Parser_Status_Array is array (SAL.Peek_Type range <>) of Parser_Status; protected type Supervisor (Trace : not null access WisiToken.Trace'Class; Check_Delta_Limit : Natural; Enqueue_Limit : Natural; Parser_Count : SAL.Peek_Type) is -- There is only one object of this type, declared in Recover. procedure Initialize (Parsers : not null access Parser_Lists.List; Terminals : not null access constant Base_Token_Arrays.Vector); entry Get (Parser_Index : out SAL.Base_Peek_Type; Config : out Configuration; Status : out Config_Status); -- Get a new configuration to check. Available when there is a -- configuration to get, or when all configs have been checked. -- -- Increments active worker count. -- -- Status values mean: -- -- Valid - Parser_Index, Config are valid, should be checked. -- -- All_Done - Parser_Index, Config are not valid. procedure Success (Parser_Index : in SAL.Peek_Type; Config : in Configuration; Configs : in out Config_Heaps.Heap_Type); -- Report that Configuration succeeds for Parser_Label, and enqueue -- Configs. -- -- Decrements active worker count. procedure Put (Parser_Index : in SAL.Peek_Type; Configs : in out Config_Heaps.Heap_Type); -- Add Configs to the McKenzie_Data Config_Heap for Parser_Label -- -- Decrements active worker count. procedure Config_Full (Parser_Index : in SAL.Peek_Type); -- Report that a config.ops was full when trying to add another op. -- This is counted towards the enqueue limit. function Recover_Result return Recover_Status; procedure Fatal (E : in Ada.Exceptions.Exception_Occurrence); -- Report a fatal error; abort all processing, make Done -- available. entry Done (Error_ID : out Ada.Exceptions.Exception_Id; Message : out Ada.Strings.Unbounded.Unbounded_String); -- Available when all parsers have failed or succeeded, or an error -- occured. -- -- If Error_ID is not Null_Id, an error occured. function Parser_State (Parser_Index : in SAL.Peek_Type) return Parser_Lists.Constant_Reference_Type; function Label (Parser_Index : in SAL.Peek_Type) return Natural; private Parsers : access Parser_Lists.List; Terminals : access constant Base_Token_Arrays.Vector; All_Parsers_Done : Boolean; Success_Counter : Natural; Min_Success_Check_Count : Natural; Fatal_Called : Boolean; Result : Recover_Status; Error_ID : Ada.Exceptions.Exception_Id; Error_Message : Ada.Strings.Unbounded.Unbounded_String; Parser_Status : Parser_Status_Array (1 .. Parser_Count); end Supervisor; type Shared (Trace : not null access WisiToken.Trace'Class; Lexer : not null access constant WisiToken.Lexer.Instance'Class; Table : not null access constant Parse_Table; Language_Fixes : WisiToken.Parse.LR.Parser.Language_Fixes_Access; Language_Matching_Begin_Tokens : WisiToken.Parse.LR.Parser.Language_Matching_Begin_Tokens_Access; Language_String_ID_Set : WisiToken.Parse.LR.Parser.Language_String_ID_Set_Access; Terminals : not null access constant Base_Token_Arrays.Vector; Line_Begin_Token : not null access constant Line_Begin_Token_Vectors.Vector) is null record; -- There is only one object of this type, declared in Recover. It -- provides appropriate access to Shared_Parser components. -- -- Since all the accessible objects are read-only (except Trace), -- there are no protected operations, and this is not a protected -- type. procedure Put (Message : in String; Super : not null access Base.Supervisor; Shared : not null access Base.Shared; Parser_Index : in SAL.Peek_Type; Config : in Configuration; Task_ID : in Boolean := True); end WisiToken.Parse.LR.McKenzie_Recover.Base;
Project 4/Fill2.asm
agabhi017/nand2tetris
0
168434
// This file is part of www.nand2tetris.org // and the book "The Elements of Computing Systems" // by <NAME>, MIT Press. // File name: projects/04/Fill.asm // Runs an infinite loop that listens to the keyboard input. // When a key is pressed (any key), the program blackens the screen, // i.e. writes "black" in every pixel; // the screen should remain fully black as long as the key is pressed. // When no key is pressed, the program clears the screen, i.e. writes // "white" in every pixel; // the screen should remain fully clear as long as no key is pressed. // Put your code here. @filled // either 0 or -1 M=0 @tofill // deafault white screen M=0 (MAIN) @KBD D=M @FILL D;JNE // fill screen if key pressed @filled D=M @WIPE // wipe only if the screen was filled before D;JNE @MAIN // keep checking for keyboard inputs 0;JMP (FILL) @tofill M=-1 // fill with black (LOOPINIT) @j M=0 (LOOP) @j D=M @8192 // number of 16 bit words to be filled on the screen D=D-A @STOP D;JEQ // break the loop @SCREEN // fill screen with b/w D=A @j D=D+M @pos M=D @tofill D=M @pos A=M M=D @j // incrementing the counter j M=M+1 @LOOP 0;JMP (STOP) @tofill D=M @filled // updating the filled var M=D @MAIN 0;JMP (WIPE) @tofill M=0 @LOOPINIT 0;JMP
bb-runtimes/arm/smartfusion2/svd/i-sf2.ads
JCGobbi/Nucleo-STM32G474RE
0
2542
<reponame>JCGobbi/Nucleo-STM32G474RE -- -- Copyright (C) 2017, AdaCore -- -- This spec has been automatically generated from M2Sxxx.svd pragma Ada_2012; pragma Style_Checks (Off); with System; -- Microcontroller Subsystem (MSS) -- - Hard 166 MHz 32-Bit ARM Cortex-M3 Processor (r2p1) -- Embedded Trace Macrocell (ETM) -- Memory Protection Unit (MPU) -- JTAG Debug (4 wires), SW Debug (SWD, 2wires), SW Viewer (SWV) -- - 64 KB Embedded SRAM (eSRAM) -- - Up to 512 KB Embedded Nonvolatile Memory (eNVM) -- - Triple Speed Ethernet (TSE) 10/100/1000 Mbps MAC -- - USB 2.0 High Speed On-The-Go (OTG) Controller with ULPI Interface -- - CAN Controller, 2.0B Compliant, Conforms to ISO11898-1 -- - 2 Each: SPI, I2C, Multi-Mode UARTs (MMUART) Peripherals -- - Hardware Based Watchdog Timer -- - 1 General Purpose 64-Bit (or two 32-bit) Timer(s) -- - Real-Time Calendar/Counter (RTC) -- - DDR Bridge (4 Port Data R/W Buffering Bridge to DDR Memory) with 64-Bit -- AXI IF -- - 2 AHB/APB Interfaces to FPGA Fabric (master/slave capable) -- - 2 DMA Controllers to Offload Data Transactions from the Cortex-M3 -- Processor -- - 8-Channel Peripheral DMA (PDMA) -- - High Performance DMA (HPDMA) -- -- Clocking Resources -- - Clock Sources -- Up to 2 High Precision 32 KHz to 20 MHz Main Crystal Oscillator -- 1 MHz Embedded RC Oscillator -- 50 MHz Embedded RC Oscillator -- - Up to 8 Clock Conditioning Circuits (CCCs) -- Output Clock with 8 Output Phases -- Frequency: Input 1 to 200 MHz, Output 20 to 400MHz -- -- High Speed Serial Interfaces -- - Up to 16 SERDES Lanes, Each Supporting: -- XGXS/XAUI Extension (to implement a 10 Gbps (XGMII) Ethernet PHY -- interface) -- Native SERDES Interface Facilitates Implementation of Serial RapidIO -- PCI Express (PCIe) Endpoint Controller -- -- High Speed Memory Interfaces -- - Up to 2 High Speed DDRx Memory Controllers -- MSS DDR (MDDR) and Fabric DDR (FDDR) Controllers -- Supports LPDDR/DDR2/DDR3 -- Maximum 333 MHz Clock Rate -- SECDED Enable/Disable Feature -- Supports Various DRAM Bus Width Modes, x16, x18, x32, x36 -- - SDRAM Support package Interfaces.SF2 is pragma Preelaborate; pragma No_Elaboration_Code_All; --------------- -- Base type -- --------------- type UInt32 is new Interfaces.Unsigned_32; type UInt16 is new Interfaces.Unsigned_16; type Byte is new Interfaces.Unsigned_8; type Bit is mod 2**1 with Size => 1; type UInt2 is mod 2**2 with Size => 2; type UInt3 is mod 2**3 with Size => 3; type UInt4 is mod 2**4 with Size => 4; type UInt5 is mod 2**5 with Size => 5; type UInt6 is mod 2**6 with Size => 6; type UInt7 is mod 2**7 with Size => 7; type UInt9 is mod 2**9 with Size => 9; type UInt10 is mod 2**10 with Size => 10; type UInt11 is mod 2**11 with Size => 11; type UInt12 is mod 2**12 with Size => 12; type UInt13 is mod 2**13 with Size => 13; type UInt14 is mod 2**14 with Size => 14; type UInt15 is mod 2**15 with Size => 15; type UInt17 is mod 2**17 with Size => 17; type UInt18 is mod 2**18 with Size => 18; type UInt19 is mod 2**19 with Size => 19; type UInt20 is mod 2**20 with Size => 20; type UInt21 is mod 2**21 with Size => 21; type UInt22 is mod 2**22 with Size => 22; type UInt23 is mod 2**23 with Size => 23; type UInt24 is mod 2**24 with Size => 24; type UInt25 is mod 2**25 with Size => 25; type UInt26 is mod 2**26 with Size => 26; type UInt27 is mod 2**27 with Size => 27; type UInt28 is mod 2**28 with Size => 28; type UInt29 is mod 2**29 with Size => 29; type UInt30 is mod 2**30 with Size => 30; type UInt31 is mod 2**31 with Size => 31; -------------------- -- Base addresses -- -------------------- System_Registers_Base : constant System.Address := System'To_Address (16#40038000#); MDDR_Base : constant System.Address := System'To_Address (16#40020800#); SERDES_0_PCIE_Base : constant System.Address := System'To_Address (16#40028000#); SERDES_0_LANE_0_Base : constant System.Address := System'To_Address (16#40029000#); SERDES_0_LANE_1_Base : constant System.Address := System'To_Address (16#20029400#); SERDES_0_LANE_2_Base : constant System.Address := System'To_Address (16#40029800#); SERDES_0_LANE_3_Base : constant System.Address := System'To_Address (16#40029C00#); SERDES_0_SYS_REG_Base : constant System.Address := System'To_Address (16#4002A000#); SERDES_1_PCIE_Base : constant System.Address := System'To_Address (16#4002C000#); SERDES_1_LANE_0_Base : constant System.Address := System'To_Address (16#4002D000#); SERDES_1_LANE_1_Base : constant System.Address := System'To_Address (16#4002D400#); SERDES_1_LANE_2_Base : constant System.Address := System'To_Address (16#4002D800#); SERDES_1_LANE_3_Base : constant System.Address := System'To_Address (16#4002DC00#); SERDES_1_SYS_REG_Base : constant System.Address := System'To_Address (16#4002E000#); MMUART_0_Base : constant System.Address := System'To_Address (16#40000000#); MMUART_1_Base : constant System.Address := System'To_Address (16#40010000#); GPIO_Base : constant System.Address := System'To_Address (16#40013000#); Watchdog_Base : constant System.Address := System'To_Address (16#40005000#); SPI_0_Base : constant System.Address := System'To_Address (16#40001000#); SPI_1_Base : constant System.Address := System'To_Address (16#40011000#); I2C0_Base : constant System.Address := System'To_Address (16#40002000#); I2C1_Base : constant System.Address := System'To_Address (16#40012000#); HPDMA_Base : constant System.Address := System'To_Address (16#40014000#); PDMA_Base : constant System.Address := System'To_Address (16#40003000#); COMBLK_Base : constant System.Address := System'To_Address (16#40016000#); RTC_Base : constant System.Address := System'To_Address (16#40017000#); CAN_Base : constant System.Address := System'To_Address (16#40015000#); AHB_to_eNVM_0_Base : constant System.Address := System'To_Address (16#60080000#); AHB_to_eNVM_1_Base : constant System.Address := System'To_Address (16#600C0000#); Timer_Base : constant System.Address := System'To_Address (16#40004000#); FDDR_Base : constant System.Address := System'To_Address (16#40021000#); Ethernet_MAC_Base : constant System.Address := System'To_Address (16#40041000#); USB_Base : constant System.Address := System'To_Address (16#40043000#); end Interfaces.SF2;
oeis/102/A102828.asm
neoneye/loda-programs
11
26594
<gh_stars>10-100 ; A102828: "True already", base 2, start 1: a(n) is the least integer such that the sequence up to a(n-1) written in base 2 contains floor(a(n)/2) copies of the digit a(n) % 2, with a(0) = 1. ; Submitted by <NAME> ; 1,3,7,13,19,25,31,41,47,57,65,69,75,83,91,101,109,119,131,137,143,153,161,167,177,185,195,203,213,223,237,249,261,267,275,283,293,301,311,323,331,341,351,365,377,389,397,407,419,429,441,453,463,477,491 lpb $0 sub $0,1 seq $2,230300 ; a(n) = n + wt(n-1), where wt() = A000120() is the binary weight. lpe mov $0,$2 mul $0,2 add $0,1
4-high/gel/source/gel-camera.ads
charlie5/lace
20
25670
<gh_stars>10-100 with gel.World, openGL.Surface, openGL.Camera, openGL.Renderer.lean; package gel.Camera -- -- Models a camera. -- is type Item is tagged limited private; type View is access all Camera.item'Class; type Views is array (Positive range <>) of View; use Math; --------- -- Forge -- procedure define (Self : in out Item); procedure destroy (Self : in out Item); procedure free (Self : in out View); ------------- -- Core Types -- fairly_Far : constant := 100_000.0; default_field_of_view_Angle : constant Degrees := 60.0; subtype Rectangle is linear_Algebra_3D.Rectangle; type Clipping_data is record eye_Position : aliased Vector_3 := (0.0, 0.0, 5.0); view_Direction : Vector_3 := (0.0, 0.0, -1.0); max_dot_Product : Real := 0.0; -- Depends on the field of view. main_Clipping : Rectangle := ((0, 0), (0, 0)); end record; -------------- -- Attributes -- procedure Renderer_is (Self : in out Item'Class; Now : in openGL.Renderer.lean.view); procedure Site_is (Self : in out Item'Class; Now : in Vector_3); function Site (Self : in Item'Class) return Vector_3; procedure world_Rotation_is (Self : in out Item'Class; Now : in Matrix_3x3); function world_Rotation (Self : in Item'Class) return Matrix_3x3; procedure Position_is (Self : in out Item'Class; Site : in Vector_3; Spin : in Matrix_3x3); procedure view_Transform_is (Self : in out Item'Class; Now : in Matrix_4x4); procedure rotation_Speed_is (Self : in out Item'Class; Now : in Vector_3); function rotation_Speed (Self : in Item'Class) return Vector_3; function Speed (Self : in Item'Class) return Vector_3; -- Linear speed procedure Speed_is (Self : in out Item'Class; Now : in Vector_3); function FoVy (Self : in Item'Class) return Degrees; -- Field of view angle in the y direction. procedure set_viewport_Size (Self : in out Item'Class; Width, Height : in Integer); function Aspect (Self : in Item'Class) return Real; -- X/Y aspect ratio. procedure Aspect_is (Self : in out Item'Class; Now : in Real); function near_plane_Distance (Self : in Item'Class) return Real; -- Distance to the near clipping plane. function far_plane_Distance (Self : in Item'Class) return Real; -- Distance to the far clipping plane. procedure far_plane_Distance_is (Self : in out Item'Class; Now : in Real); procedure near_plane_Distance_is (Self : in out Item'Class; Now : in Real); function ModelView_Matrix (Self : in Item'Class) return Matrix_4x4; function to_world_Site (Self : in Item'Class; Site : in Vector_3) return Vector_3; -- -- Returns the window space 'Site' transformed to the equivalent world space site. -------------- -- Operations -- procedure render (Self : in out Item; the_World : in gel.World.view; To : in openGL.Surface.view); function cull_Completed (Self : in Item) return Boolean; procedure disable_Cull (Self : in out Item); private type Item is tagged limited record GL : aliased openGL.Camera.item; Renderer : openGL.Renderer.lean.view; Clipper : aliased Clipping_data; world_Rotation : Matrix_3x3; view_Transform : Matrix_4x4; FoVy : Degrees := default_field_of_view_Angle; Aspect : Real := 1.0; near_plane_Distance : Real := 0.1; near_plane_Width : Real; near_plane_Height : Real; far_plane_Distance : Real := fairly_Far; far_plane_Width : Real; far_plane_Height : Real; Projection_Matrix : Matrix_4x4; is_Culling : Boolean := True; end record; end gel.Camera;
programs/oeis/295/A295473.asm
karttu/loda
0
6646
; A295473: a(0) = 0; for n>0, a(n) = 9*n!. ; 0,9,18,54,216,1080,6480,45360,362880,3265920,32659200,359251200,4311014400,56043187200,784604620800,11769069312000,188305108992000,3201186852864000 mov $1,$0 pow $2,$1 fac $1 sub $1,$2 mul $1,9
src/python/bfc/x64_linux/runtime_lib.asm
ronsabag/compiler
0
169885
SECTION .data BUF_SIZE: Equ 24 WRITE_BUF: times BUF_SIZE db 0 WRITE_POINTER: dq 0 MEMORY_SIZE dq 30000 SECTION .text global MODULE_ENTRY _bf_flush: mov rax, 1 mov rdi, 0 lea rsi, [rel WRITE_BUF] mov rdx, [rel WRITE_POINTER] syscall mov qword [rel WRITE_POINTER], 0 ret _bf_write: cmp qword [rel WRITE_POINTER], BUF_SIZE jl _bf_write_to_buf call _bf_flush _bf_write_to_buf: lea rdi, [rel WRITE_BUF] add rdi, [rel WRITE_POINTER] mov rax, [rbx + r12] mov [rdi], al inc qword [rel WRITE_POINTER] ret _bf_read: call _bf_flush mov rax, 0 mov rdi, 1 push rdi lea rsi, [rsp] mov rdx, 1 syscall pop rax mov [rbx+r12], al ret %if BF_WRAP_ON_OVERFLOW=1 _bf_normalize_pointer: mov rax, [rel MEMORY_SIZE] imul rax, BF_CELL_SIZE cmp r12, 0 jge _bf_normalize_pointer_not_negative add r12, rax _bf_normalize_pointer_not_negative: cmp r12, rax jl _bf_normalize_pointer_normal sub r12, rax _bf_normalize_pointer_normal: ret %endif %if BF_ABORT_ON_OVERFLOW=1 _bf_abort: add rsp, 8 mov rax, 1 ret _bf_check_pointer: cmp r12, 0 jl _bf_abort cmp r12, [rel MEMORY_SIZE] jge _bf_abort ret %endif _bf_clear_memory: mov rcx, 0 mov rax, rdi imul rax, BF_CELL_SIZE _bf_clear_memory_loop: mov byte [rsi + rcx], 0 inc rcx cmp rcx, rax jne _bf_clear_memory_loop ret MODULE_ENTRY: call _bf_clear_memory mov [rel MEMORY_SIZE], rdi push rbx push r12 mov rbx, rsi call _bf_entry pop r12 pop rbx cmp rax, 0 jne _bf_on_error call _bf_flush mov rax, 0 _bf_on_error: ret
other.7z/NEWS.7z/NEWS/テープリストア/NEWS_05/NEWS_05.tar/home/kimura/kart/risc.lzh/risc/join/Effect-p.asm
prismotizm/gigaleak
0
2438
Name: Effect-p.asm Type: file Size: 12202 Last-Modified: '1992-07-30T05:00:32Z' SHA-1: C8A3EDD0F83502D340E0930F485CE1A3C21E50A0 Description: null
Lab 2/Lab_2.asm
Vladicka/Assembler
0
29695
<filename>Lab 2/Lab_2.asm<gh_stars>0 data segment x db 127 y db 128 divider db 10 buff db (?) data ends code segment start: assume cs:code, ds: data mov bx, data mov ds, bx mov al, x add al, y div divider add ah, 48 mov buff[2], ah mov ah, 0 div divider add ah, 48 mov buff[1], ah add al, 48 mov buff[0], al mov buff[3], '$' mov ah, 9 mov dx, offset buff int 21h mov ax, 4c00h int 21h code ends end start
source/contexts/plain/program-plain_source_buffers.ads
optikos/oasis
0
8840
<gh_stars>0 -- Copyright (c) 2019 <NAME> <<EMAIL>> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with Program.Source_Buffers; private with Ada.Strings.UTF_Encoding; package Program.Plain_Source_Buffers is pragma Preelaborate; type Source_Buffer is limited new Program.Source_Buffers.Source_Buffer with private; not overriding procedure Initialize (Self : in out Source_Buffer; Name : Program.Text); -- Initialize source buffer with content of file with given Name. -- File should be encoded with UTF-8 encoding. private type UTF_8_String_Access is access all Ada.Strings.UTF_Encoding.UTF_8_String; type Source_Buffer is limited new Program.Source_Buffers.Source_Buffer with record Text : UTF_8_String_Access; From : Positive := 1; end record; overriding function Text (Self : Source_Buffer; Span : Program.Source_Buffers.Span) return Program.Text; overriding procedure Read (Self : in out Source_Buffer; Data : out Program.Source_Buffers.Character_Info_Array; Last : out Natural); overriding procedure Rewind (Self : in out Source_Buffer); end Program.Plain_Source_Buffers;
day06/src/day.ads
jwarwick/aoc_2019_ada
0
5333
<gh_stars>0 -- AOC, Day 6 with Ada.Containers.Vectors; with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; package Day is type Orbit_Entry is record Left : Unbounded_String := Null_Unbounded_String; Right : Unbounded_String := Null_Unbounded_String; end record; package Orbit_List is new Ada.Containers.Vectors (Index_Type => Natural, Element_Type => Orbit_Entry); type Orbit_Checksum is new Natural; function load_orbits(filename : in String) return Orbit_List.Vector; -- function load_orbits_from_string(str : in String) return Orbit_List.Vector; function orbit_count_checksum(ol : in Orbit_List.Vector) return Orbit_Checksum; end Day;
assembler/forth/logic.asm
MRebhan/RetroComputers-XC8010
2
94335
<filename>assembler/forth/logic.asm dword =,1,,EQU ; ( a b -- a==b ) .wp SUB .wp ZEQU .wp EXIT dword <>,2,,NEQU ; ( a b -- a!=b ) .wp EQU .wp INVERT .wp EXIT dword <,1,,LT ; ( a b -- a<b ) .wp SUB .wp ZLT .wp EXIT dword >,1,,GT ; ( a b -- a>b ) .wp SWAP .wp LT .wp EXIT dword <=,2,,LE ; ( a b -- a<=b ) .wp GT .wp INVERT .wp EXIT dword >=,2,,GE ; ( a b -- a>=b ) .wp LT .wp INVERT .wp EXIT dcode U>,2,,UGT ; ( a b -- a>b ) ldx #_F_TRUE pla cmp $01, s bvc ULT_end ldx #_F_FALSE ULT_end: ply phx nxt dword U<,2,,ULT ; ( a b -- a<b ) .wp SWAP .wp UGT .wp EXIT dword U<=,3,,ULE ; ( a b -- a<=b ) .wp UGT .wp INVERT .wp EXIT dword U>=,3,,UGE ; ( a b -- a>=b ) .wp ULT .wp INVERT .wp EXIT dcode 0=,2,,ZEQU ; ( a -- a==0 ) pla beq ZEQU_yes lda #_F_FALSE bra ZEQU_end ZEQU_yes: lda #_F_TRUE ZEQU_end: pha nxt dcode 0<>,3,,ZNEQU ; ( a -- a!=0 ) pla bne ZNEQU_yes lda #_F_FALSE bra ZNEQU_end ZNEQU_yes: lda #_F_TRUE ZNEQU_end: pha nxt dcode 0<,2,,ZLT ; ( a -- a<0 ) pla bmi ZLT_yes lda #_F_FALSE bra ZLT_end ZLT_yes: lda #_F_TRUE ZLT_end: pha nxt dword 0>,2,,ZGT ; ( a -- a>0 ) .wp ZERO .wp GT .wp EXIT dword 0<=,3,,ZLE ; ( a -- a<=0 ) .wp ZERO .wp LE .wp EXIT dword 0>=,3,,ZGE ; ( a -- a>=0 ) .wp ZERO .wp GE .wp EXIT dword MIN,3,, ; ( a b -- {a|b} ) .wp TWODUP ; a b a b .wp LT ; a b ?a<b .zbranch MIN_b .wp DROP .wp EXIT MIN_b: .wp NIP .wp EXIT dword MAX,3,, ; ( a b -- {a|b} ) .wp TWODUP ; a b a b .wp LT ; a b ?a<b .zbranch MAX_b .wp NIP .wp EXIT MAX_b: .wp DROP .wp EXIT dcode AND,3,, ; ( a b -- a&b ) pla and $01, s ply pha nxt dcode OR,2,, ; ( a b -- a|b ) pla ora $01, s ply pha nxt dcode XOR,3,, ; ( a b -- a^b ) pla eor $01, s ply pha nxt dcode INVERT,6,, ; ( a -- ~a ) pla eor #$ffff pha nxt dword NEGATE,6,, ; ( a -- -a ) .wp INVERT .wp INCR .wp EXIT dcode LSHIFT,6,, ; ( a b -- a<<b ) ply ; get amount to rot left pla ; get number LSHIFT_loop: clc rol a dey bne LSHIFT_loop pha nxt dcode RSHIFT,6,, ; ( a b -- a>>b ) ply ; get amount to rot right pla ; get number RSHIFT_loop: clc ror a dey bne RSHIFT_loop pha nxt
test/asset/agda-stdlib-1.0/Relation/Binary/Reasoning/Setoid.agda
omega12345/agda-mode
0
4572
<reponame>omega12345/agda-mode<filename>test/asset/agda-stdlib-1.0/Relation/Binary/Reasoning/Setoid.agda ------------------------------------------------------------------------ -- The Agda standard library -- -- Convenient syntax for reasoning with a setoid ------------------------------------------------------------------------ -- Example use: -- n*0≡0 : ∀ n → n * 0 ≡ 0 -- n*0≡0 zero = refl -- n*0≡0 (suc n) = begin -- suc n * 0 ≈⟨ refl ⟩ -- n * 0 + 0 ≈⟨ ... ⟩ -- n * 0 ≈⟨ n*0≡0 n ⟩ -- 0 ∎ -- Module `≡-Reasoning` in `Relation.Binary.PropositionalEquality` -- is recommended for equational reasoning when the underlying equality is -- `_≡_`. {-# OPTIONS --without-K --safe #-} open import Relation.Binary module Relation.Binary.Reasoning.Setoid {s₁ s₂} (S : Setoid s₁ s₂) where open Setoid S ------------------------------------------------------------------------ -- Publicly re-export base contents open import Relation.Binary.Reasoning.Base.Single _≈_ refl trans public renaming (_∼⟨_⟩_ to _≈⟨_⟩_) infixr 2 _≈˘⟨_⟩_ _≈˘⟨_⟩_ : ∀ x {y z} → y ≈ x → y IsRelatedTo z → x IsRelatedTo z x ≈˘⟨ x≈y ⟩ y∼z = x ≈⟨ sym x≈y ⟩ y∼z
programs/oeis/188/A188064.asm
neoneye/loda
22
175514
; A188064: Partial sums of wt(n)! where wt(n) is the Hamming weight of n (A000120). ; 1,2,3,5,6,8,10,16,17,19,21,27,29,35,41,65,66,68,70,76,78,84,90,114,116,122,128,152,158,182,206,326,327,329,331,337,339,345,351,375,377,383,389,413,419,443,467,587,589,595,601,625,631,655,679,799,805,829,853,973,997,1117,1237,1957,1958,1960,1962,1968,1970,1976,1982,2006,2008,2014,2020,2044,2050,2074,2098,2218,2220,2226,2232,2256,2262,2286,2310,2430,2436,2460,2484,2604,2628,2748,2868,3588,3590,3596,3602,3626 mov $3,$0 add $3,1 mov $5,$0 lpb $3 mov $0,$5 sub $3,1 sub $0,$3 mov $2,$0 lpb $2 mov $4,$0 lpb $4 div $0,2 sub $4,$0 lpe mov $2,1 lpe seq $4,142 ; Factorial numbers: n! = 1*2*3*4*...*n (order of symmetric group S_n, number of permutations of n letters). add $1,$4 lpe mov $0,$1
test/Succeed/Issue2579.agda
alhassy/agda
1
12475
-- Andreas, 2017-05-13, issue reported by nad module Issue2579 where open import Common.Bool open import Issue2579.Import import Issue2579.Instance Bool true -- imports instances theWrapped : {{w : Wrap Bool}} → Bool theWrapped {{w}} = Wrap.wrapped w test : Bool test = theWrapped
programs/oeis/001/A001048.asm
neoneye/loda
22
12698
; A001048: a(n) = n! + (n-1)!. ; 2,3,8,30,144,840,5760,45360,403200,3991680,43545600,518918400,6706022400,93405312000,1394852659200,22230464256000,376610217984000,6758061133824000,128047474114560000,2554547108585472000,53523844179886080000,1175091669949317120000,26976017466662584320000,646300418472124416000000,16131658445064225423360000,418802671169936621568000000,11292160911544957796352000000,315777214062132212662272000000,9146650338351415815045120000000,274094621805930760590852096000000,8488091513990113876361871360000000,271353675587871452984943575040000000 mov $1,$0 add $0,2 seq $1,142 ; Factorial numbers: n! = 1*2*3*4*...*n (order of symmetric group S_n, number of permutations of n letters). mul $0,$1
user/init.asm
MyBeLoVedL/xv6
0
96813
<reponame>MyBeLoVedL/xv6<filename>user/init.asm user/_init: file format elf64-littleriscv Disassembly of section .text: 0000000000000000 <main>: 0: 1101 addi sp,sp,-32 2: ec06 sd ra,24(sp) 4: e822 sd s0,16(sp) 6: e426 sd s1,8(sp) 8: e04a sd s2,0(sp) a: 1000 addi s0,sp,32 c: 4589 li a1,2 e: 00001517 auipc a0,0x1 12: 90250513 addi a0,a0,-1790 # 910 <l_free+0xe> 16: 00000097 auipc ra,0x0 1a: 390080e7 jalr 912(ra) # 3a6 <open> 1e: 06054363 bltz a0,84 <main+0x84> 22: 4501 li a0,0 24: 00000097 auipc ra,0x0 28: 3ba080e7 jalr 954(ra) # 3de <dup> 2c: 4501 li a0,0 2e: 00000097 auipc ra,0x0 32: 3b0080e7 jalr 944(ra) # 3de <dup> 36: 00001917 auipc s2,0x1 3a: 8e290913 addi s2,s2,-1822 # 918 <l_free+0x16> 3e: 854a mv a0,s2 40: 00000097 auipc ra,0x0 44: 6a0080e7 jalr 1696(ra) # 6e0 <printf> 48: 00000097 auipc ra,0x0 4c: 316080e7 jalr 790(ra) # 35e <fork> 50: 84aa mv s1,a0 52: 04054d63 bltz a0,ac <main+0xac> 56: c925 beqz a0,c6 <main+0xc6> 58: 4501 li a0,0 5a: 00000097 auipc ra,0x0 5e: 314080e7 jalr 788(ra) # 36e <wait> 62: fca48ee3 beq s1,a0,3e <main+0x3e> 66: fe0559e3 bgez a0,58 <main+0x58> 6a: 00001517 auipc a0,0x1 6e: 8fe50513 addi a0,a0,-1794 # 968 <l_free+0x66> 72: 00000097 auipc ra,0x0 76: 66e080e7 jalr 1646(ra) # 6e0 <printf> 7a: 4505 li a0,1 7c: 00000097 auipc ra,0x0 80: 2ea080e7 jalr 746(ra) # 366 <exit> 84: 4601 li a2,0 86: 4585 li a1,1 88: 00001517 auipc a0,0x1 8c: 88850513 addi a0,a0,-1912 # 910 <l_free+0xe> 90: 00000097 auipc ra,0x0 94: 31e080e7 jalr 798(ra) # 3ae <mknod> 98: 4589 li a1,2 9a: 00001517 auipc a0,0x1 9e: 87650513 addi a0,a0,-1930 # 910 <l_free+0xe> a2: 00000097 auipc ra,0x0 a6: 304080e7 jalr 772(ra) # 3a6 <open> aa: bfa5 j 22 <main+0x22> ac: 00001517 auipc a0,0x1 b0: 88450513 addi a0,a0,-1916 # 930 <l_free+0x2e> b4: 00000097 auipc ra,0x0 b8: 62c080e7 jalr 1580(ra) # 6e0 <printf> bc: 4505 li a0,1 be: 00000097 auipc ra,0x0 c2: 2a8080e7 jalr 680(ra) # 366 <exit> c6: 00001597 auipc a1,0x1 ca: 93a58593 addi a1,a1,-1734 # a00 <argv> ce: 00001517 auipc a0,0x1 d2: 87a50513 addi a0,a0,-1926 # 948 <l_free+0x46> d6: 00000097 auipc ra,0x0 da: 2c8080e7 jalr 712(ra) # 39e <exec> de: 00001517 auipc a0,0x1 e2: 87250513 addi a0,a0,-1934 # 950 <l_free+0x4e> e6: 00000097 auipc ra,0x0 ea: 5fa080e7 jalr 1530(ra) # 6e0 <printf> ee: 4505 li a0,1 f0: 00000097 auipc ra,0x0 f4: 276080e7 jalr 630(ra) # 366 <exit> 00000000000000f8 <strcpy>: f8: 1141 addi sp,sp,-16 fa: e422 sd s0,8(sp) fc: 0800 addi s0,sp,16 fe: 87aa mv a5,a0 100: 0585 addi a1,a1,1 102: 0785 addi a5,a5,1 104: fff5c703 lbu a4,-1(a1) 108: fee78fa3 sb a4,-1(a5) 10c: fb75 bnez a4,100 <strcpy+0x8> 10e: 6422 ld s0,8(sp) 110: 0141 addi sp,sp,16 112: 8082 ret 0000000000000114 <strcmp>: 114: 1141 addi sp,sp,-16 116: e422 sd s0,8(sp) 118: 0800 addi s0,sp,16 11a: 00054783 lbu a5,0(a0) 11e: cb91 beqz a5,132 <strcmp+0x1e> 120: 0005c703 lbu a4,0(a1) 124: 00f71763 bne a4,a5,132 <strcmp+0x1e> 128: 0505 addi a0,a0,1 12a: 0585 addi a1,a1,1 12c: 00054783 lbu a5,0(a0) 130: fbe5 bnez a5,120 <strcmp+0xc> 132: 0005c503 lbu a0,0(a1) 136: 40a7853b subw a0,a5,a0 13a: 6422 ld s0,8(sp) 13c: 0141 addi sp,sp,16 13e: 8082 ret 0000000000000140 <strlen>: 140: 1141 addi sp,sp,-16 142: e422 sd s0,8(sp) 144: 0800 addi s0,sp,16 146: 00054783 lbu a5,0(a0) 14a: cf91 beqz a5,166 <strlen+0x26> 14c: 0505 addi a0,a0,1 14e: 87aa mv a5,a0 150: 4685 li a3,1 152: 9e89 subw a3,a3,a0 154: 00f6853b addw a0,a3,a5 158: 0785 addi a5,a5,1 15a: fff7c703 lbu a4,-1(a5) 15e: fb7d bnez a4,154 <strlen+0x14> 160: 6422 ld s0,8(sp) 162: 0141 addi sp,sp,16 164: 8082 ret 166: 4501 li a0,0 168: bfe5 j 160 <strlen+0x20> 000000000000016a <memset>: 16a: 1141 addi sp,sp,-16 16c: e422 sd s0,8(sp) 16e: 0800 addi s0,sp,16 170: ca19 beqz a2,186 <memset+0x1c> 172: 87aa mv a5,a0 174: 1602 slli a2,a2,0x20 176: 9201 srli a2,a2,0x20 178: 00a60733 add a4,a2,a0 17c: 00b78023 sb a1,0(a5) 180: 0785 addi a5,a5,1 182: fee79de3 bne a5,a4,17c <memset+0x12> 186: 6422 ld s0,8(sp) 188: 0141 addi sp,sp,16 18a: 8082 ret 000000000000018c <strchr>: 18c: 1141 addi sp,sp,-16 18e: e422 sd s0,8(sp) 190: 0800 addi s0,sp,16 192: 00054783 lbu a5,0(a0) 196: cb99 beqz a5,1ac <strchr+0x20> 198: 00f58763 beq a1,a5,1a6 <strchr+0x1a> 19c: 0505 addi a0,a0,1 19e: 00054783 lbu a5,0(a0) 1a2: fbfd bnez a5,198 <strchr+0xc> 1a4: 4501 li a0,0 1a6: 6422 ld s0,8(sp) 1a8: 0141 addi sp,sp,16 1aa: 8082 ret 1ac: 4501 li a0,0 1ae: bfe5 j 1a6 <strchr+0x1a> 00000000000001b0 <gets>: 1b0: 711d addi sp,sp,-96 1b2: ec86 sd ra,88(sp) 1b4: e8a2 sd s0,80(sp) 1b6: e4a6 sd s1,72(sp) 1b8: e0ca sd s2,64(sp) 1ba: fc4e sd s3,56(sp) 1bc: f852 sd s4,48(sp) 1be: f456 sd s5,40(sp) 1c0: f05a sd s6,32(sp) 1c2: ec5e sd s7,24(sp) 1c4: 1080 addi s0,sp,96 1c6: 8baa mv s7,a0 1c8: 8a2e mv s4,a1 1ca: 892a mv s2,a0 1cc: 4481 li s1,0 1ce: 4aa9 li s5,10 1d0: 4b35 li s6,13 1d2: 89a6 mv s3,s1 1d4: 2485 addiw s1,s1,1 1d6: 0344d863 bge s1,s4,206 <gets+0x56> 1da: 4605 li a2,1 1dc: faf40593 addi a1,s0,-81 1e0: 4501 li a0,0 1e2: 00000097 auipc ra,0x0 1e6: 19c080e7 jalr 412(ra) # 37e <read> 1ea: 00a05e63 blez a0,206 <gets+0x56> 1ee: faf44783 lbu a5,-81(s0) 1f2: 00f90023 sb a5,0(s2) 1f6: 01578763 beq a5,s5,204 <gets+0x54> 1fa: 0905 addi s2,s2,1 1fc: fd679be3 bne a5,s6,1d2 <gets+0x22> 200: 89a6 mv s3,s1 202: a011 j 206 <gets+0x56> 204: 89a6 mv s3,s1 206: 99de add s3,s3,s7 208: 00098023 sb zero,0(s3) 20c: 855e mv a0,s7 20e: 60e6 ld ra,88(sp) 210: 6446 ld s0,80(sp) 212: 64a6 ld s1,72(sp) 214: 6906 ld s2,64(sp) 216: 79e2 ld s3,56(sp) 218: 7a42 ld s4,48(sp) 21a: 7aa2 ld s5,40(sp) 21c: 7b02 ld s6,32(sp) 21e: 6be2 ld s7,24(sp) 220: 6125 addi sp,sp,96 222: 8082 ret 0000000000000224 <stat>: 224: 1101 addi sp,sp,-32 226: ec06 sd ra,24(sp) 228: e822 sd s0,16(sp) 22a: e426 sd s1,8(sp) 22c: e04a sd s2,0(sp) 22e: 1000 addi s0,sp,32 230: 892e mv s2,a1 232: 4581 li a1,0 234: 00000097 auipc ra,0x0 238: 172080e7 jalr 370(ra) # 3a6 <open> 23c: 02054563 bltz a0,266 <stat+0x42> 240: 84aa mv s1,a0 242: 85ca mv a1,s2 244: 00000097 auipc ra,0x0 248: 17a080e7 jalr 378(ra) # 3be <fstat> 24c: 892a mv s2,a0 24e: 8526 mv a0,s1 250: 00000097 auipc ra,0x0 254: 13e080e7 jalr 318(ra) # 38e <close> 258: 854a mv a0,s2 25a: 60e2 ld ra,24(sp) 25c: 6442 ld s0,16(sp) 25e: 64a2 ld s1,8(sp) 260: 6902 ld s2,0(sp) 262: 6105 addi sp,sp,32 264: 8082 ret 266: 597d li s2,-1 268: bfc5 j 258 <stat+0x34> 000000000000026a <atoi>: 26a: 1141 addi sp,sp,-16 26c: e422 sd s0,8(sp) 26e: 0800 addi s0,sp,16 270: 00054603 lbu a2,0(a0) 274: fd06079b addiw a5,a2,-48 278: 0ff7f793 zext.b a5,a5 27c: 4725 li a4,9 27e: 02f76963 bltu a4,a5,2b0 <atoi+0x46> 282: 86aa mv a3,a0 284: 4501 li a0,0 286: 45a5 li a1,9 288: 0685 addi a3,a3,1 28a: 0025179b slliw a5,a0,0x2 28e: 9fa9 addw a5,a5,a0 290: 0017979b slliw a5,a5,0x1 294: 9fb1 addw a5,a5,a2 296: fd07851b addiw a0,a5,-48 29a: 0006c603 lbu a2,0(a3) 29e: fd06071b addiw a4,a2,-48 2a2: 0ff77713 zext.b a4,a4 2a6: fee5f1e3 bgeu a1,a4,288 <atoi+0x1e> 2aa: 6422 ld s0,8(sp) 2ac: 0141 addi sp,sp,16 2ae: 8082 ret 2b0: 4501 li a0,0 2b2: bfe5 j 2aa <atoi+0x40> 00000000000002b4 <memmove>: 2b4: 1141 addi sp,sp,-16 2b6: e422 sd s0,8(sp) 2b8: 0800 addi s0,sp,16 2ba: 02b57463 bgeu a0,a1,2e2 <memmove+0x2e> 2be: 00c05f63 blez a2,2dc <memmove+0x28> 2c2: 1602 slli a2,a2,0x20 2c4: 9201 srli a2,a2,0x20 2c6: 00c507b3 add a5,a0,a2 2ca: 872a mv a4,a0 2cc: 0585 addi a1,a1,1 2ce: 0705 addi a4,a4,1 2d0: fff5c683 lbu a3,-1(a1) 2d4: fed70fa3 sb a3,-1(a4) 2d8: fee79ae3 bne a5,a4,2cc <memmove+0x18> 2dc: 6422 ld s0,8(sp) 2de: 0141 addi sp,sp,16 2e0: 8082 ret 2e2: 00c50733 add a4,a0,a2 2e6: 95b2 add a1,a1,a2 2e8: fec05ae3 blez a2,2dc <memmove+0x28> 2ec: fff6079b addiw a5,a2,-1 2f0: 1782 slli a5,a5,0x20 2f2: 9381 srli a5,a5,0x20 2f4: fff7c793 not a5,a5 2f8: 97ba add a5,a5,a4 2fa: 15fd addi a1,a1,-1 2fc: 177d addi a4,a4,-1 2fe: 0005c683 lbu a3,0(a1) 302: 00d70023 sb a3,0(a4) 306: fee79ae3 bne a5,a4,2fa <memmove+0x46> 30a: bfc9 j 2dc <memmove+0x28> 000000000000030c <memcmp>: 30c: 1141 addi sp,sp,-16 30e: e422 sd s0,8(sp) 310: 0800 addi s0,sp,16 312: ca05 beqz a2,342 <memcmp+0x36> 314: fff6069b addiw a3,a2,-1 318: 1682 slli a3,a3,0x20 31a: 9281 srli a3,a3,0x20 31c: 0685 addi a3,a3,1 31e: 96aa add a3,a3,a0 320: 00054783 lbu a5,0(a0) 324: 0005c703 lbu a4,0(a1) 328: 00e79863 bne a5,a4,338 <memcmp+0x2c> 32c: 0505 addi a0,a0,1 32e: 0585 addi a1,a1,1 330: fed518e3 bne a0,a3,320 <memcmp+0x14> 334: 4501 li a0,0 336: a019 j 33c <memcmp+0x30> 338: 40e7853b subw a0,a5,a4 33c: 6422 ld s0,8(sp) 33e: 0141 addi sp,sp,16 340: 8082 ret 342: 4501 li a0,0 344: bfe5 j 33c <memcmp+0x30> 0000000000000346 <memcpy>: 346: 1141 addi sp,sp,-16 348: e406 sd ra,8(sp) 34a: e022 sd s0,0(sp) 34c: 0800 addi s0,sp,16 34e: 00000097 auipc ra,0x0 352: f66080e7 jalr -154(ra) # 2b4 <memmove> 356: 60a2 ld ra,8(sp) 358: 6402 ld s0,0(sp) 35a: 0141 addi sp,sp,16 35c: 8082 ret 000000000000035e <fork>: 35e: 4885 li a7,1 360: 00000073 ecall 364: 8082 ret 0000000000000366 <exit>: 366: 4889 li a7,2 368: 00000073 ecall 36c: 8082 ret 000000000000036e <wait>: 36e: 488d li a7,3 370: 00000073 ecall 374: 8082 ret 0000000000000376 <pipe>: 376: 4891 li a7,4 378: 00000073 ecall 37c: 8082 ret 000000000000037e <read>: 37e: 4895 li a7,5 380: 00000073 ecall 384: 8082 ret 0000000000000386 <write>: 386: 48c1 li a7,16 388: 00000073 ecall 38c: 8082 ret 000000000000038e <close>: 38e: 48d5 li a7,21 390: 00000073 ecall 394: 8082 ret 0000000000000396 <kill>: 396: 4899 li a7,6 398: 00000073 ecall 39c: 8082 ret 000000000000039e <exec>: 39e: 489d li a7,7 3a0: 00000073 ecall 3a4: 8082 ret 00000000000003a6 <open>: 3a6: 48bd li a7,15 3a8: 00000073 ecall 3ac: 8082 ret 00000000000003ae <mknod>: 3ae: 48c5 li a7,17 3b0: 00000073 ecall 3b4: 8082 ret 00000000000003b6 <unlink>: 3b6: 48c9 li a7,18 3b8: 00000073 ecall 3bc: 8082 ret 00000000000003be <fstat>: 3be: 48a1 li a7,8 3c0: 00000073 ecall 3c4: 8082 ret 00000000000003c6 <link>: 3c6: 48cd li a7,19 3c8: 00000073 ecall 3cc: 8082 ret 00000000000003ce <mkdir>: 3ce: 48d1 li a7,20 3d0: 00000073 ecall 3d4: 8082 ret 00000000000003d6 <chdir>: 3d6: 48a5 li a7,9 3d8: 00000073 ecall 3dc: 8082 ret 00000000000003de <dup>: 3de: 48a9 li a7,10 3e0: 00000073 ecall 3e4: 8082 ret 00000000000003e6 <getpid>: 3e6: 48ad li a7,11 3e8: 00000073 ecall 3ec: 8082 ret 00000000000003ee <sbrk>: 3ee: 48b1 li a7,12 3f0: 00000073 ecall 3f4: 8082 ret 00000000000003f6 <sleep>: 3f6: 48b5 li a7,13 3f8: 00000073 ecall 3fc: 8082 ret 00000000000003fe <uptime>: 3fe: 48b9 li a7,14 400: 00000073 ecall 404: 8082 ret 0000000000000406 <putc>: static char digits[] = "0123456789ABCDEF"; static void putc(int fd, char c) { 406: 1101 addi sp,sp,-32 408: ec06 sd ra,24(sp) 40a: e822 sd s0,16(sp) 40c: 1000 addi s0,sp,32 40e: feb407a3 sb a1,-17(s0) write(fd, &c, 1); 412: 4605 li a2,1 414: fef40593 addi a1,s0,-17 418: 00000097 auipc ra,0x0 41c: f6e080e7 jalr -146(ra) # 386 <write> } 420: 60e2 ld ra,24(sp) 422: 6442 ld s0,16(sp) 424: 6105 addi sp,sp,32 426: 8082 ret 0000000000000428 <printint>: static void printint(int fd, int xx, int base, int sgn) { 428: 7139 addi sp,sp,-64 42a: fc06 sd ra,56(sp) 42c: f822 sd s0,48(sp) 42e: f426 sd s1,40(sp) 430: f04a sd s2,32(sp) 432: ec4e sd s3,24(sp) 434: 0080 addi s0,sp,64 436: 84aa mv s1,a0 char buf[16]; int i, neg; uint x; neg = 0; if(sgn && xx < 0){ 438: c299 beqz a3,43e <printint+0x16> 43a: 0805c963 bltz a1,4cc <printint+0xa4> neg = 1; x = -xx; } else { x = xx; 43e: 2581 sext.w a1,a1 neg = 0; 440: 4881 li a7,0 442: fc040693 addi a3,s0,-64 } i = 0; 446: 4701 li a4,0 do{ buf[i++] = digits[x % base]; 448: 2601 sext.w a2,a2 44a: 00000517 auipc a0,0x0 44e: 59e50513 addi a0,a0,1438 # 9e8 <digits> 452: 883a mv a6,a4 454: 2705 addiw a4,a4,1 456: 02c5f7bb remuw a5,a1,a2 45a: 1782 slli a5,a5,0x20 45c: 9381 srli a5,a5,0x20 45e: 97aa add a5,a5,a0 460: 0007c783 lbu a5,0(a5) 464: 00f68023 sb a5,0(a3) }while((x /= base) != 0); 468: 0005879b sext.w a5,a1 46c: 02c5d5bb divuw a1,a1,a2 470: 0685 addi a3,a3,1 472: fec7f0e3 bgeu a5,a2,452 <printint+0x2a> if(neg) 476: 00088c63 beqz a7,48e <printint+0x66> buf[i++] = '-'; 47a: fd070793 addi a5,a4,-48 47e: 00878733 add a4,a5,s0 482: 02d00793 li a5,45 486: fef70823 sb a5,-16(a4) 48a: 0028071b addiw a4,a6,2 while(--i >= 0) 48e: 02e05863 blez a4,4be <printint+0x96> 492: fc040793 addi a5,s0,-64 496: 00e78933 add s2,a5,a4 49a: fff78993 addi s3,a5,-1 49e: 99ba add s3,s3,a4 4a0: 377d addiw a4,a4,-1 4a2: 1702 slli a4,a4,0x20 4a4: 9301 srli a4,a4,0x20 4a6: 40e989b3 sub s3,s3,a4 putc(fd, buf[i]); 4aa: fff94583 lbu a1,-1(s2) 4ae: 8526 mv a0,s1 4b0: 00000097 auipc ra,0x0 4b4: f56080e7 jalr -170(ra) # 406 <putc> while(--i >= 0) 4b8: 197d addi s2,s2,-1 4ba: ff3918e3 bne s2,s3,4aa <printint+0x82> } 4be: 70e2 ld ra,56(sp) 4c0: 7442 ld s0,48(sp) 4c2: 74a2 ld s1,40(sp) 4c4: 7902 ld s2,32(sp) 4c6: 69e2 ld s3,24(sp) 4c8: 6121 addi sp,sp,64 4ca: 8082 ret x = -xx; 4cc: 40b005bb negw a1,a1 neg = 1; 4d0: 4885 li a7,1 x = -xx; 4d2: bf85 j 442 <printint+0x1a> 00000000000004d4 <vprintf>: } // Print to the given fd. Only understands %d, %x, %p, %s. void vprintf(int fd, const char *fmt, va_list ap) { 4d4: 7119 addi sp,sp,-128 4d6: fc86 sd ra,120(sp) 4d8: f8a2 sd s0,112(sp) 4da: f4a6 sd s1,104(sp) 4dc: f0ca sd s2,96(sp) 4de: ecce sd s3,88(sp) 4e0: e8d2 sd s4,80(sp) 4e2: e4d6 sd s5,72(sp) 4e4: e0da sd s6,64(sp) 4e6: fc5e sd s7,56(sp) 4e8: f862 sd s8,48(sp) 4ea: f466 sd s9,40(sp) 4ec: f06a sd s10,32(sp) 4ee: ec6e sd s11,24(sp) 4f0: 0100 addi s0,sp,128 char *s; int c, i, state; state = 0; for(i = 0; fmt[i]; i++){ 4f2: 0005c903 lbu s2,0(a1) 4f6: 18090f63 beqz s2,694 <vprintf+0x1c0> 4fa: 8aaa mv s5,a0 4fc: 8b32 mv s6,a2 4fe: 00158493 addi s1,a1,1 state = 0; 502: 4981 li s3,0 if(c == '%'){ state = '%'; } else { putc(fd, c); } } else if(state == '%'){ 504: 02500a13 li s4,37 508: 4c55 li s8,21 50a: 00000c97 auipc s9,0x0 50e: 486c8c93 addi s9,s9,1158 # 990 <l_free+0x8e> printptr(fd, va_arg(ap, uint64)); } else if(c == 's'){ s = va_arg(ap, char*); if(s == 0) s = "(null)"; while(*s != 0){ 512: 02800d93 li s11,40 putc(fd, 'x'); 516: 4d41 li s10,16 putc(fd, digits[x >> (sizeof(uint64) * 8 - 4)]); 518: 00000b97 auipc s7,0x0 51c: 4d0b8b93 addi s7,s7,1232 # 9e8 <digits> 520: a839 j 53e <vprintf+0x6a> putc(fd, c); 522: 85ca mv a1,s2 524: 8556 mv a0,s5 526: 00000097 auipc ra,0x0 52a: ee0080e7 jalr -288(ra) # 406 <putc> 52e: a019 j 534 <vprintf+0x60> } else if(state == '%'){ 530: 01498d63 beq s3,s4,54a <vprintf+0x76> for(i = 0; fmt[i]; i++){ 534: 0485 addi s1,s1,1 536: fff4c903 lbu s2,-1(s1) 53a: 14090d63 beqz s2,694 <vprintf+0x1c0> if(state == 0){ 53e: fe0999e3 bnez s3,530 <vprintf+0x5c> if(c == '%'){ 542: ff4910e3 bne s2,s4,522 <vprintf+0x4e> state = '%'; 546: 89d2 mv s3,s4 548: b7f5 j 534 <vprintf+0x60> if(c == 'd'){ 54a: 11490c63 beq s2,s4,662 <vprintf+0x18e> 54e: f9d9079b addiw a5,s2,-99 552: 0ff7f793 zext.b a5,a5 556: 10fc6e63 bltu s8,a5,672 <vprintf+0x19e> 55a: f9d9079b addiw a5,s2,-99 55e: 0ff7f713 zext.b a4,a5 562: 10ec6863 bltu s8,a4,672 <vprintf+0x19e> 566: 00271793 slli a5,a4,0x2 56a: 97e6 add a5,a5,s9 56c: 439c lw a5,0(a5) 56e: 97e6 add a5,a5,s9 570: 8782 jr a5 printint(fd, va_arg(ap, int), 10, 1); 572: 008b0913 addi s2,s6,8 576: 4685 li a3,1 578: 4629 li a2,10 57a: 000b2583 lw a1,0(s6) 57e: 8556 mv a0,s5 580: 00000097 auipc ra,0x0 584: ea8080e7 jalr -344(ra) # 428 <printint> 588: 8b4a mv s6,s2 } else { // Unknown % sequence. Print it to draw attention. putc(fd, '%'); putc(fd, c); } state = 0; 58a: 4981 li s3,0 58c: b765 j 534 <vprintf+0x60> printint(fd, va_arg(ap, uint64), 10, 0); 58e: 008b0913 addi s2,s6,8 592: 4681 li a3,0 594: 4629 li a2,10 596: 000b2583 lw a1,0(s6) 59a: 8556 mv a0,s5 59c: 00000097 auipc ra,0x0 5a0: e8c080e7 jalr -372(ra) # 428 <printint> 5a4: 8b4a mv s6,s2 state = 0; 5a6: 4981 li s3,0 5a8: b771 j 534 <vprintf+0x60> printint(fd, va_arg(ap, int), 16, 0); 5aa: 008b0913 addi s2,s6,8 5ae: 4681 li a3,0 5b0: 866a mv a2,s10 5b2: 000b2583 lw a1,0(s6) 5b6: 8556 mv a0,s5 5b8: 00000097 auipc ra,0x0 5bc: e70080e7 jalr -400(ra) # 428 <printint> 5c0: 8b4a mv s6,s2 state = 0; 5c2: 4981 li s3,0 5c4: bf85 j 534 <vprintf+0x60> printptr(fd, va_arg(ap, uint64)); 5c6: 008b0793 addi a5,s6,8 5ca: f8f43423 sd a5,-120(s0) 5ce: 000b3983 ld s3,0(s6) putc(fd, '0'); 5d2: 03000593 li a1,48 5d6: 8556 mv a0,s5 5d8: 00000097 auipc ra,0x0 5dc: e2e080e7 jalr -466(ra) # 406 <putc> putc(fd, 'x'); 5e0: 07800593 li a1,120 5e4: 8556 mv a0,s5 5e6: 00000097 auipc ra,0x0 5ea: e20080e7 jalr -480(ra) # 406 <putc> 5ee: 896a mv s2,s10 putc(fd, digits[x >> (sizeof(uint64) * 8 - 4)]); 5f0: 03c9d793 srli a5,s3,0x3c 5f4: 97de add a5,a5,s7 5f6: 0007c583 lbu a1,0(a5) 5fa: 8556 mv a0,s5 5fc: 00000097 auipc ra,0x0 600: e0a080e7 jalr -502(ra) # 406 <putc> for (i = 0; i < (sizeof(uint64) * 2); i++, x <<= 4) 604: 0992 slli s3,s3,0x4 606: 397d addiw s2,s2,-1 608: fe0914e3 bnez s2,5f0 <vprintf+0x11c> printptr(fd, va_arg(ap, uint64)); 60c: f8843b03 ld s6,-120(s0) state = 0; 610: 4981 li s3,0 612: b70d j 534 <vprintf+0x60> s = va_arg(ap, char*); 614: 008b0913 addi s2,s6,8 618: 000b3983 ld s3,0(s6) if(s == 0) 61c: 02098163 beqz s3,63e <vprintf+0x16a> while(*s != 0){ 620: 0009c583 lbu a1,0(s3) 624: c5ad beqz a1,68e <vprintf+0x1ba> putc(fd, *s); 626: 8556 mv a0,s5 628: 00000097 auipc ra,0x0 62c: dde080e7 jalr -546(ra) # 406 <putc> s++; 630: 0985 addi s3,s3,1 while(*s != 0){ 632: 0009c583 lbu a1,0(s3) 636: f9e5 bnez a1,626 <vprintf+0x152> s = va_arg(ap, char*); 638: 8b4a mv s6,s2 state = 0; 63a: 4981 li s3,0 63c: bde5 j 534 <vprintf+0x60> s = "(null)"; 63e: 00000997 auipc s3,0x0 642: 34a98993 addi s3,s3,842 # 988 <l_free+0x86> while(*s != 0){ 646: 85ee mv a1,s11 648: bff9 j 626 <vprintf+0x152> putc(fd, va_arg(ap, uint)); 64a: 008b0913 addi s2,s6,8 64e: 000b4583 lbu a1,0(s6) 652: 8556 mv a0,s5 654: 00000097 auipc ra,0x0 658: db2080e7 jalr -590(ra) # 406 <putc> 65c: 8b4a mv s6,s2 state = 0; 65e: 4981 li s3,0 660: bdd1 j 534 <vprintf+0x60> putc(fd, c); 662: 85d2 mv a1,s4 664: 8556 mv a0,s5 666: 00000097 auipc ra,0x0 66a: da0080e7 jalr -608(ra) # 406 <putc> state = 0; 66e: 4981 li s3,0 670: b5d1 j 534 <vprintf+0x60> putc(fd, '%'); 672: 85d2 mv a1,s4 674: 8556 mv a0,s5 676: 00000097 auipc ra,0x0 67a: d90080e7 jalr -624(ra) # 406 <putc> putc(fd, c); 67e: 85ca mv a1,s2 680: 8556 mv a0,s5 682: 00000097 auipc ra,0x0 686: d84080e7 jalr -636(ra) # 406 <putc> state = 0; 68a: 4981 li s3,0 68c: b565 j 534 <vprintf+0x60> s = va_arg(ap, char*); 68e: 8b4a mv s6,s2 state = 0; 690: 4981 li s3,0 692: b54d j 534 <vprintf+0x60> } } } 694: 70e6 ld ra,120(sp) 696: 7446 ld s0,112(sp) 698: 74a6 ld s1,104(sp) 69a: 7906 ld s2,96(sp) 69c: 69e6 ld s3,88(sp) 69e: 6a46 ld s4,80(sp) 6a0: 6aa6 ld s5,72(sp) 6a2: 6b06 ld s6,64(sp) 6a4: 7be2 ld s7,56(sp) 6a6: 7c42 ld s8,48(sp) 6a8: 7ca2 ld s9,40(sp) 6aa: 7d02 ld s10,32(sp) 6ac: 6de2 ld s11,24(sp) 6ae: 6109 addi sp,sp,128 6b0: 8082 ret 00000000000006b2 <fprintf>: void fprintf(int fd, const char *fmt, ...) { 6b2: 715d addi sp,sp,-80 6b4: ec06 sd ra,24(sp) 6b6: e822 sd s0,16(sp) 6b8: 1000 addi s0,sp,32 6ba: e010 sd a2,0(s0) 6bc: e414 sd a3,8(s0) 6be: e818 sd a4,16(s0) 6c0: ec1c sd a5,24(s0) 6c2: 03043023 sd a6,32(s0) 6c6: 03143423 sd a7,40(s0) va_list ap; va_start(ap, fmt); 6ca: fe843423 sd s0,-24(s0) vprintf(fd, fmt, ap); 6ce: 8622 mv a2,s0 6d0: 00000097 auipc ra,0x0 6d4: e04080e7 jalr -508(ra) # 4d4 <vprintf> } 6d8: 60e2 ld ra,24(sp) 6da: 6442 ld s0,16(sp) 6dc: 6161 addi sp,sp,80 6de: 8082 ret 00000000000006e0 <printf>: void printf(const char *fmt, ...) { 6e0: 711d addi sp,sp,-96 6e2: ec06 sd ra,24(sp) 6e4: e822 sd s0,16(sp) 6e6: 1000 addi s0,sp,32 6e8: e40c sd a1,8(s0) 6ea: e810 sd a2,16(s0) 6ec: ec14 sd a3,24(s0) 6ee: f018 sd a4,32(s0) 6f0: f41c sd a5,40(s0) 6f2: 03043823 sd a6,48(s0) 6f6: 03143c23 sd a7,56(s0) va_list ap; va_start(ap, fmt); 6fa: 00840613 addi a2,s0,8 6fe: fec43423 sd a2,-24(s0) vprintf(1, fmt, ap); 702: 85aa mv a1,a0 704: 4505 li a0,1 706: 00000097 auipc ra,0x0 70a: dce080e7 jalr -562(ra) # 4d4 <vprintf> } 70e: 60e2 ld ra,24(sp) 710: 6442 ld s0,16(sp) 712: 6125 addi sp,sp,96 714: 8082 ret 0000000000000716 <free>: 716: 1141 addi sp,sp,-16 718: e422 sd s0,8(sp) 71a: 0800 addi s0,sp,16 71c: ff050693 addi a3,a0,-16 720: 00000797 auipc a5,0x0 724: 3007b783 ld a5,768(a5) # a20 <freep> 728: a805 j 758 <free+0x42> 72a: 4618 lw a4,8(a2) 72c: 9db9 addw a1,a1,a4 72e: feb52c23 sw a1,-8(a0) 732: 6398 ld a4,0(a5) 734: 6318 ld a4,0(a4) 736: fee53823 sd a4,-16(a0) 73a: a091 j 77e <free+0x68> 73c: ff852703 lw a4,-8(a0) 740: 9e39 addw a2,a2,a4 742: c790 sw a2,8(a5) 744: ff053703 ld a4,-16(a0) 748: e398 sd a4,0(a5) 74a: a099 j 790 <free+0x7a> 74c: 6398 ld a4,0(a5) 74e: 00e7e463 bltu a5,a4,756 <free+0x40> 752: 00e6ea63 bltu a3,a4,766 <free+0x50> 756: 87ba mv a5,a4 758: fed7fae3 bgeu a5,a3,74c <free+0x36> 75c: 6398 ld a4,0(a5) 75e: 00e6e463 bltu a3,a4,766 <free+0x50> 762: fee7eae3 bltu a5,a4,756 <free+0x40> 766: ff852583 lw a1,-8(a0) 76a: 6390 ld a2,0(a5) 76c: 02059713 slli a4,a1,0x20 770: 9301 srli a4,a4,0x20 772: 0712 slli a4,a4,0x4 774: 9736 add a4,a4,a3 776: fae60ae3 beq a2,a4,72a <free+0x14> 77a: fec53823 sd a2,-16(a0) 77e: 4790 lw a2,8(a5) 780: 02061713 slli a4,a2,0x20 784: 9301 srli a4,a4,0x20 786: 0712 slli a4,a4,0x4 788: 973e add a4,a4,a5 78a: fae689e3 beq a3,a4,73c <free+0x26> 78e: e394 sd a3,0(a5) 790: 00000717 auipc a4,0x0 794: 28f73823 sd a5,656(a4) # a20 <freep> 798: 6422 ld s0,8(sp) 79a: 0141 addi sp,sp,16 79c: 8082 ret 000000000000079e <malloc>: 79e: 7139 addi sp,sp,-64 7a0: fc06 sd ra,56(sp) 7a2: f822 sd s0,48(sp) 7a4: f426 sd s1,40(sp) 7a6: f04a sd s2,32(sp) 7a8: ec4e sd s3,24(sp) 7aa: e852 sd s4,16(sp) 7ac: e456 sd s5,8(sp) 7ae: e05a sd s6,0(sp) 7b0: 0080 addi s0,sp,64 7b2: 02051493 slli s1,a0,0x20 7b6: 9081 srli s1,s1,0x20 7b8: 04bd addi s1,s1,15 7ba: 8091 srli s1,s1,0x4 7bc: 0014899b addiw s3,s1,1 7c0: 0485 addi s1,s1,1 7c2: 00000517 auipc a0,0x0 7c6: 25e53503 ld a0,606(a0) # a20 <freep> 7ca: c515 beqz a0,7f6 <malloc+0x58> 7cc: 611c ld a5,0(a0) 7ce: 4798 lw a4,8(a5) 7d0: 02977f63 bgeu a4,s1,80e <malloc+0x70> 7d4: 8a4e mv s4,s3 7d6: 0009871b sext.w a4,s3 7da: 6685 lui a3,0x1 7dc: 00d77363 bgeu a4,a3,7e2 <malloc+0x44> 7e0: 6a05 lui s4,0x1 7e2: 000a0b1b sext.w s6,s4 7e6: 004a1a1b slliw s4,s4,0x4 7ea: 00000917 auipc s2,0x0 7ee: 23690913 addi s2,s2,566 # a20 <freep> 7f2: 5afd li s5,-1 7f4: a88d j 866 <malloc+0xc8> 7f6: 00000797 auipc a5,0x0 7fa: 23278793 addi a5,a5,562 # a28 <base> 7fe: 00000717 auipc a4,0x0 802: 22f73123 sd a5,546(a4) # a20 <freep> 806: e39c sd a5,0(a5) 808: 0007a423 sw zero,8(a5) 80c: b7e1 j 7d4 <malloc+0x36> 80e: 02e48b63 beq s1,a4,844 <malloc+0xa6> 812: 4137073b subw a4,a4,s3 816: c798 sw a4,8(a5) 818: 1702 slli a4,a4,0x20 81a: 9301 srli a4,a4,0x20 81c: 0712 slli a4,a4,0x4 81e: 97ba add a5,a5,a4 820: 0137a423 sw s3,8(a5) 824: 00000717 auipc a4,0x0 828: 1ea73e23 sd a0,508(a4) # a20 <freep> 82c: 01078513 addi a0,a5,16 830: 70e2 ld ra,56(sp) 832: 7442 ld s0,48(sp) 834: 74a2 ld s1,40(sp) 836: 7902 ld s2,32(sp) 838: 69e2 ld s3,24(sp) 83a: 6a42 ld s4,16(sp) 83c: 6aa2 ld s5,8(sp) 83e: 6b02 ld s6,0(sp) 840: 6121 addi sp,sp,64 842: 8082 ret 844: 6398 ld a4,0(a5) 846: e118 sd a4,0(a0) 848: bff1 j 824 <malloc+0x86> 84a: 01652423 sw s6,8(a0) 84e: 0541 addi a0,a0,16 850: 00000097 auipc ra,0x0 854: ec6080e7 jalr -314(ra) # 716 <free> 858: 00093503 ld a0,0(s2) 85c: d971 beqz a0,830 <malloc+0x92> 85e: 611c ld a5,0(a0) 860: 4798 lw a4,8(a5) 862: fa9776e3 bgeu a4,s1,80e <malloc+0x70> 866: 00093703 ld a4,0(s2) 86a: 853e mv a0,a5 86c: fef719e3 bne a4,a5,85e <malloc+0xc0> 870: 8552 mv a0,s4 872: 00000097 auipc ra,0x0 876: b7c080e7 jalr -1156(ra) # 3ee <sbrk> 87a: fd5518e3 bne a0,s5,84a <malloc+0xac> 87e: 4501 li a0,0 880: bf45 j 830 <malloc+0x92> 0000000000000882 <mem_init>: 882: 1141 addi sp,sp,-16 884: e406 sd ra,8(sp) 886: e022 sd s0,0(sp) 888: 0800 addi s0,sp,16 88a: 6505 lui a0,0x1 88c: 00000097 auipc ra,0x0 890: b62080e7 jalr -1182(ra) # 3ee <sbrk> 894: 00000797 auipc a5,0x0 898: 18a7b223 sd a0,388(a5) # a18 <alloc> 89c: 00850793 addi a5,a0,8 # 1008 <__BSS_END__+0x5d0> 8a0: e11c sd a5,0(a0) 8a2: 60a2 ld ra,8(sp) 8a4: 6402 ld s0,0(sp) 8a6: 0141 addi sp,sp,16 8a8: 8082 ret 00000000000008aa <l_alloc>: 8aa: 1101 addi sp,sp,-32 8ac: ec06 sd ra,24(sp) 8ae: e822 sd s0,16(sp) 8b0: e426 sd s1,8(sp) 8b2: 1000 addi s0,sp,32 8b4: 84aa mv s1,a0 8b6: 00000797 auipc a5,0x0 8ba: 15a7a783 lw a5,346(a5) # a10 <if_init> 8be: c795 beqz a5,8ea <l_alloc+0x40> 8c0: 00000717 auipc a4,0x0 8c4: 15873703 ld a4,344(a4) # a18 <alloc> 8c8: 6308 ld a0,0(a4) 8ca: 40e506b3 sub a3,a0,a4 8ce: 6785 lui a5,0x1 8d0: 37e1 addiw a5,a5,-8 8d2: 9f95 subw a5,a5,a3 8d4: 02f4f563 bgeu s1,a5,8fe <l_alloc+0x54> 8d8: 1482 slli s1,s1,0x20 8da: 9081 srli s1,s1,0x20 8dc: 94aa add s1,s1,a0 8de: e304 sd s1,0(a4) 8e0: 60e2 ld ra,24(sp) 8e2: 6442 ld s0,16(sp) 8e4: 64a2 ld s1,8(sp) 8e6: 6105 addi sp,sp,32 8e8: 8082 ret 8ea: 00000097 auipc ra,0x0 8ee: f98080e7 jalr -104(ra) # 882 <mem_init> 8f2: 4785 li a5,1 8f4: 00000717 auipc a4,0x0 8f8: 10f72e23 sw a5,284(a4) # a10 <if_init> 8fc: b7d1 j 8c0 <l_alloc+0x16> 8fe: 4501 li a0,0 900: b7c5 j 8e0 <l_alloc+0x36> 0000000000000902 <l_free>: 902: 1141 addi sp,sp,-16 904: e422 sd s0,8(sp) 906: 0800 addi s0,sp,16 908: 6422 ld s0,8(sp) 90a: 0141 addi sp,sp,16 90c: 8082 ret
Examples/testconsole.ivt.asm
ZaneDubya/YCPU
29
5488
; === Interrupt vector table =================================================== ; Described in 2.D.6. .dat16 ResetInt, ClockInt, DivZeroFlt, DoubleFault .dat16 StackFault, SegFault, UnprivFault,UndefFault .dat16 0x0000, 0x0000, 0x0000, 0x0000 .dat16 HWI, BusRefresh, DebugQuery, SWI ; === DivZeroFlt =============================================================== DivZeroFlt: { lod r6, txtFault jmp BSOD txtFault: .dat8 "DivZeroFault", 0x00 } ; === DoubleFault ============================================================== DoubleFault: { lod r6, txtFault jmp BSOD txtFault: .dat8 "DoubleFault", 0x00 } ; === StackFault =============================================================== StackFault: { lod r6, txtFault jmp BSOD txtFault: .dat8 "StackFault", 0x00 } ; === SegFault ================================================================= SegFault: { lod r6, txtFault jmp BSOD txtFault: .dat8 "SegFault", 0x00 } ; === UnprivFault ============================================================== UnprivFault: { lod r6, txtFault jmp BSOD txtFault: .dat8 "UnprivFault", 0x00 } ; === UndefFault =============================================================== UndefFault: { lod r6, txtFault jmp BSOD txtFault: .dat8 "UndefFault", 0x00 } ; === HWI ====================================================================== HWI: { lod r6, txtFault jmp BSOD txtFault: .dat8 "HWI", 0x00 } ; === BusRefresh =============================================================== BusRefresh: { lod r6, txtFault jmp BSOD txtFault: .dat8 "BusRefresh", 0x00 } ; === DebugQuery =============================================================== DebugQuery: { lod r6, txtFault jmp BSOD txtFault: .dat8 "DebugQuery", 0x00 } ; === SWI ====================================================================== SWI: { lod r6, txtFault jmp BSOD txtFault: .dat8 "SWI", 0x00 } ; === BSOD ===================================================================== BSOD: { ; disable clock lod r0, 0 hwq $83 jsr ClearScreen ; write text at location in r6. lod r1, $8200 ; yellow on blue lod r5, $0000 ; location in video memory jsr WriteChars HangAtBSOD: baw HangAtBSOD }
testutil/ahven/ahven-xml_runner.adb
Letractively/ada-util
0
21789
-- -- Copyright (c) 2007-2009 <NAME> <<EMAIL>> -- -- Permission to use, copy, modify, and distribute this software for any -- purpose with or without fee is hereby granted, provided that the above -- copyright notice and this permission notice appear in all copies. -- -- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -- WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -- MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR -- ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -- WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -- ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF -- OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -- with Ada.Text_IO; with Ada.Strings; with Ada.Strings.Fixed; with Ada.Strings.Maps; with Ada.IO_Exceptions; with Ahven.Runner; with Ahven_Compat; with Ahven.AStrings; package body Ahven.XML_Runner is use Ada.Text_IO; use Ada.Strings.Fixed; use Ada.Strings.Maps; use Ahven.Results; use Ahven.Framework; use Ahven.AStrings; function Filter_String (Str : String) return String; function Filter_String (Str : String; Map : Character_Mapping) return String; procedure Print_Test_Pass (File : File_Type; Parent_Test : String; Info : Result_Info); procedure Print_Test_Failure (File : File_Type; Parent_Test : String; Info : Result_Info); procedure Print_Test_Error (File : File_Type; Parent_Test : String; Info : Result_Info); procedure Print_Test_Case (Collection : Result_Collection; Dir : String); procedure Print_Log_File (File : File_Type; Filename : String); procedure Print_Attribute (File : File_Type; Attr : String; Value : String); procedure Start_Testcase_Tag (File : File_Type; Parent : String; Name : String; Execution_Time : String); procedure End_Testcase_Tag (File : File_Type); function Create_Name (Dir : String; Name : String) return String; function Filter_String (Str : String) return String is Result : String (Str'First .. Str'First + 6 * Str'Length); Pos : Natural := Str'First; begin for I in Str'Range loop if Str (I) = ''' then Result (Pos .. Pos + 6 - 1) := "&apos;"; Pos := Pos + 6; elsif Str (I) = '<' then Result (Pos .. Pos + 4 - 1) := "&lt;"; Pos := Pos + 4; elsif Str (I) = '>' then Result (Pos .. Pos + 4 - 1) := "&gt;"; Pos := Pos + 4; elsif Str (I) = '&' then Result (Pos .. Pos + 5 - 1) := "&amp;"; Pos := Pos + 5; elsif Str (I) = '"' then Result (Pos) := '''; Pos := Pos + 1; else Result (Pos) := Str (I); Pos := Pos + 1; end if; end loop; return Result (Result'First .. Pos - 1); end Filter_String; function Filter_String (Str : String; Map : Character_Mapping) return String is begin return Translate (Source => Str, Mapping => Map); end Filter_String; procedure Print_Attribute (File : File_Type; Attr : String; Value : String) is begin Put (File, Attr & "=" & '"' & Value & '"'); end Print_Attribute; procedure Start_Testcase_Tag (File : File_Type; Parent : String; Name : String; Execution_Time : String) is begin Put (File, "<testcase "); Print_Attribute (File, "classname", Filter_String (Parent)); Put (File, " "); Print_Attribute (File, "name", Filter_String (Name)); Put (File, " "); Print_Attribute (File, "time", Filter_String (Execution_Time)); Put_Line (File, ">"); end Start_Testcase_Tag; procedure End_Testcase_Tag (File : File_Type) is begin Put_Line (File, "</testcase>"); end End_Testcase_Tag; function Create_Name (Dir : String; Name : String) return String is function Filename (Test : String) return String is Map : Ada.Strings.Maps.Character_Mapping; begin Map := To_Mapping (From => " '/\<>:|?*()" & '"', To => "-___________" & '_'); return "TEST-" & Filter_String (Test, Map) & ".xml"; end Filename; begin if Dir'Length > 0 then return Dir & Ahven_Compat.Directory_Separator & Filename (Name); else return Filename (Name); end if; end Create_Name; procedure Print_Test_Pass (File : File_Type; Parent_Test : String; Info : Result_Info) is Exec_Time : constant String := Trim (Duration'Image (Get_Execution_Time (Info)), Ada.Strings.Both); begin Start_Testcase_Tag (File => File, Parent => Parent_Test, Name => Get_Routine_Name (Info), Execution_Time => Exec_Time); if Length (Get_Output_File (Info)) > 0 then Put (File, "<system-out>"); Print_Log_File (File, To_String (Get_Output_File (Info))); Put_Line (File, "</system-out>"); end if; End_Testcase_Tag (File); end Print_Test_Pass; procedure Print_Test_Skipped (File : File_Type; Parent_Test : String; Info : Result_Info) is Exec_Time : constant String := Trim (Duration'Image (Get_Execution_Time (Info)), Ada.Strings.Both); begin Start_Testcase_Tag (File => File, Parent => Parent_Test, Name => Get_Routine_Name (Info), Execution_Time => Exec_Time); Put (File, "<skipped "); Print_Attribute (File, "message", Filter_String (Trim (Get_Message (Info), Ada.Strings.Both))); Put (File, ">"); Put_Line (File, Filter_String (Get_Message (Info))); Put_Line (File, "</skipped>"); End_Testcase_Tag (File); end Print_Test_Skipped; procedure Print_Test_Failure (File : File_Type; Parent_Test : String; Info : Result_Info) is Exec_Time : constant String := Trim (Duration'Image (Get_Execution_Time (Info)), Ada.Strings.Both); begin Start_Testcase_Tag (File => File, Parent => Parent_Test, Name => Get_Routine_Name (Info), Execution_Time => Exec_Time); Put (File, "<failure "); Print_Attribute (File, "type", Filter_String (Trim (Get_Message (Info), Ada.Strings.Both))); Put (File, ">"); Put_Line (File, Filter_String (Get_Message (Info))); Put_Line (File, "</failure>"); if Length (Get_Output_File (Info)) > 0 then Put (File, "<system-out>"); Print_Log_File (File, To_String (Get_Output_File (Info))); Put_Line (File, "</system-out>"); end if; End_Testcase_Tag (File); end Print_Test_Failure; procedure Print_Test_Error (File : File_Type; Parent_Test : String; Info : Result_Info) is Exec_Time : constant String := Trim (Duration'Image (Get_Execution_Time (Info)), Ada.Strings.Both); begin Start_Testcase_Tag (File => File, Parent => Parent_Test, Name => Get_Routine_Name (Info), Execution_Time => Exec_Time); Put (File, "<error "); Print_Attribute (File, "type", Filter_String (Trim (Get_Message (Info), Ada.Strings.Both))); Put (File, ">"); Put_Line (File, Filter_String (Get_Message (Info))); Put_Line (File, "</error>"); if Length (Get_Output_File (Info)) > 0 then Put (File, "<system-out>"); Print_Log_File (File, To_String (Get_Output_File (Info))); Put_Line (File, "</system-out>"); end if; End_Testcase_Tag (File); end Print_Test_Error; procedure Print_Test_Case (Collection : Result_Collection; Dir : String) is procedure Print (Output : File_Type; Result : Result_Collection); -- Internal procedure to print the testcase into given file. function Img (Value : Natural) return String is begin return Trim (Natural'Image (Value), Ada.Strings.Both); end Img; procedure Print (Output : File_Type; Result : Result_Collection) is Position : Result_Info_Cursor; begin Put_Line (Output, "<?xml version=" & '"' & "1.0" & '"' & " encoding=" & '"' & "iso-8859-1" & '"' & "?>"); Put (Output, "<testsuite "); Print_Attribute (Output, "errors", Img (Error_Count (Result))); Put (Output, " "); Print_Attribute (Output, "failures", Img (Failure_Count (Result))); Put (Output, " "); Print_Attribute (Output, "skips", Img (Skipped_Count (Result))); Put (Output, " "); Print_Attribute (Output, "tests", Img (Test_Count (Result))); Put (Output, " "); Print_Attribute (Output, "time", Trim (Duration'Image (Get_Execution_Time (Result)), Ada.Strings.Both)); Put (Output, " "); Print_Attribute (Output, "name", To_String (Get_Test_Name (Result))); Put_Line (Output, ">"); Position := First_Error (Result); Error_Loop: loop exit Error_Loop when not Is_Valid (Position); Print_Test_Error (Output, To_String (Get_Test_Name (Result)), Data (Position)); Position := Next (Position); end loop Error_Loop; Position := First_Failure (Result); Failure_Loop: loop exit Failure_Loop when not Is_Valid (Position); Print_Test_Failure (Output, To_String (Get_Test_Name (Result)), Data (Position)); Position := Next (Position); end loop Failure_Loop; Position := First_Pass (Result); Pass_Loop: loop exit Pass_Loop when not Is_Valid (Position); Print_Test_Pass (Output, To_String (Get_Test_Name (Result)), Data (Position)); Position := Next (Position); end loop Pass_Loop; Position := First_Skipped (Result); Skip_Loop: loop exit Skip_Loop when not Is_Valid (Position); Print_Test_Skipped (Output, To_String (Get_Test_Name (Result)), Data (Position)); Position := Next (Position); end loop Skip_Loop; Put_Line (Output, "</testsuite>"); end Print; File : File_Type; begin if Dir = "-" then Print (Standard_Output, Collection); else Create (File => File, Mode => Ada.Text_IO.Out_File, Name => Create_Name (Dir, To_String (Get_Test_Name (Collection)))); Print (File, Collection); Ada.Text_IO.Close (File); end if; end Print_Test_Case; procedure Report_Results (Result : Result_Collection; Dir : String) is Position : Result_Collection_Cursor; begin Position := First_Child (Result); loop exit when not Is_Valid (Position); if Child_Depth (Data (Position).all) = 0 then Print_Test_Case (Data (Position).all, Dir); else Report_Results (Data (Position).all, Dir); -- Handle the test cases in this collection if Direct_Test_Count (Result) > 0 then Print_Test_Case (Result, Dir); end if; end if; Position := Next (Position); end loop; end Report_Results; -- Print the log by placing the data inside CDATA block. procedure Print_Log_File (File : File_Type; Filename : String) is type CData_End_State is (NONE, FIRST_BRACKET, SECOND_BRACKET); function State_Change (Old_State : CData_End_State) return CData_End_State; Handle : File_Type; Char : Character := ' '; First : Boolean := True; -- We need to escape ]]>, this variable tracks -- the characters, so we know when to do the escaping. CData_Ending : CData_End_State := NONE; function State_Change (Old_State : CData_End_State) return CData_End_State is New_State : CData_End_State := NONE; -- By default New_State will be NONE, so there is -- no need to set it inside when blocks. begin case Old_State is when NONE => if Char = ']' then New_State := FIRST_BRACKET; end if; when FIRST_BRACKET => if Char = ']' then New_State := SECOND_BRACKET; end if; when SECOND_BRACKET => if Char = '>' then Put (File, " "); end if; end case; return New_State; end State_Change; begin Open (Handle, In_File, Filename); begin loop exit when End_Of_File (Handle); Get (Handle, Char); if First then Put (File, "<![CDATA["); First := False; end if; CData_Ending := State_Change (CData_Ending); Put (File, Char); if End_Of_Line (Handle) then New_Line (File); end if; end loop; -- The End_Error exception is sometimes raised. exception when Ada.IO_Exceptions.End_Error => null; end; Close (Handle); if not First then Put_Line (File, "]]>"); end if; end Print_Log_File; procedure Do_Report (Test_Results : Results.Result_Collection; Args : Parameters.Parameter_Info) is begin Report_Results (Test_Results, Parameters.Result_Dir (Args)); end Do_Report; procedure Run (Suite : in out Framework.Test_Suite'Class) is begin Runner.Run_Suite (Suite, Do_Report'Access); end Run; procedure Run (Suite : Framework.Test_Suite_Access) is begin Run (Suite.all); end Run; end Ahven.XML_Runner;
src/_demo/output_sink_as_shared_instance/apsepp_demo_osasi_business.adb
thierr26/ada-apsepp
0
19352
<filename>src/_demo/output_sink_as_shared_instance/apsepp_demo_osasi_business.adb -- Copyright (C) 2019 <NAME> <<EMAIL>> -- MIT license. Please refer to the LICENSE file. with Apsepp_Demo_OSASI_Instance_Client; package body Apsepp_Demo_OSASI_Business is ---------------------------------------------------------------------------- procedure Run_Business is use Apsepp_Demo_OSASI_Instance_Client; begin Output_Sink_Client; end Run_Business; ---------------------------------------------------------------------------- end Apsepp_Demo_OSASI_Business;
Driver/Printer/Fax/Group3/group3EndJob.asm
steakknife/pcgeos
504
169385
<filename>Driver/Printer/Fax/Group3/group3EndJob.asm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) Geoworks 1994. All rights reserved. GEOWORKS CONFIDENTIAL PROJECT: Pasta MODULE: Fax FILE: group3EndJob.asm AUTHOR: <NAME>, Apr 16, 1993 ROUTINES: Name Description ---- ----------- PrintEndJob End routine for Print Driver. Makes sure the file is closed and contact the faxspooler. Group3CloseFile Closes the VM fax file. REVISION HISTORY: Name Date Description ---- ---- ----------- jag 4/16/93 Initial revision AC 9/ 8/93 Changed for Group3 DESCRIPTION: $Id: group3EndJob.asm,v 1.1 97/04/18 11:52:54 newdeal Exp $ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% PrintEndJob %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: End routine for Print Driver. Makes sure the file is closed and contact the faxspooler. CALLED BY: DriverStrategy PASS: bp = PState segment RETURN: carry set on error DESTROYED: nothing PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- jag 4/16/93 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ PrintEndJob proc far uses ax, bx, dx, bp, si, ds .enter ; ; See if anything bad happened. ; mov ax, segment dgroup mov ds, ax clr bx xchg bl, ds:[errorFlag] tst bl jnz handleError ; ; Make the cover page (if any) and prepend it to the fax file. ; call Group3CreateCoverPage jc closeFile ; ; Write the number of pages to the file header. ; call Group3WritePages ; ; Close the VM fax file. If carry is returned your file is hosed ; closeFile: call Group3CloseFile ; ; Notify the spooler that a fax has been printed out and ready ; to spool. First, set up the following: ; ds:si <- fax file name ; bxax <- fax spool id ; mov ds, bp .warn -field lea si, ds:[PS_jobParams].JP_printerData.FFH_fileName movdw bxax, ds:[PS_jobParams].JP_printerData.FFH_spoolID .warn @field mov dx, GWNT_FAX_NEW_JOB_COMPLETED call IACP_NotifySpooler ; carry set on error exit: .leave ret ; ; --------------------------- ; E R R O R H A N D L E R S ; --------------------------- ; ; ; These check a table to see what string it should pop up if an error ; occurs. If the offset to the string is 0, then it will not ; pop up an error message. ; handleError: push bx, ax movdw bxax, FAX_ERROR_SPOOL_ID mov dx, GWNT_FAX_NEW_JOB_COMPLETED call IACP_NotifySpooler ; carry set on error pop bx, ax mov si, cs:[PrintDriverErrorCodeMessages].[bx] tst si jz exit showErrorDialog:: mov ax, \ CustomDialogBoxFlags <1,CDT_ERROR,GIT_NOTIFICATION,0> call DoDialog ; ; Note: if the error was PDEC_RAN_OUT_OF_DISK_SPACE, we ; have to delete the output (fax) file. Doing it here ; may not be the best architecture in the world, but ... ; cmp bx, PDEC_RAN_OUT_OF_DISK_SPACE jne exit call Group3DeleteFile jmp exit PrintEndJob endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Group3CloseFile %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Closes the VM fax file. CALLED BY: PrintEndJob PASS: nothing RETURN: nothing DESTROYED: nothing SIDE EFFECTS: PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- AC 9/13/93 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ Group3CloseFile proc near uses ax, bx, bp, ds, si .enter ; ; Get file handle of the file. ; mov ax, segment dgroup mov ds, ax mov bx, ds:[outputVMFileHan] ; ; Get the file header so we can write that this is ; a valid fax file. ; call FaxFileGetHeader ; ds:si <- FaxFileHeader ; bp <- mem block handle mov ds:[si].FFH_status, FFS_READY call VMDirty call VMUnlock ; ; Close the VM file. ; mov al, FILE_NO_ERRORS call VMClose .leave ret Group3CloseFile endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Group3DeleteFile %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Closes the VM fax file. CALLED BY: PrintEndJob PASS: ds = dgroup RETURN: nothing DESTROYED: nothing PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- AC 9/13/93 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ Group3DeleteFile proc near uses ax, bx, cx, dx, ds .enter ; ; Get file handle of the file. ; mov bx, ds:[outputVMFileHan] ; bx = vm file handle ; ; Get the filename. ; sub sp, FILE_LONGNAME_BUFFER_SIZE movdw cxdx, sssp ; cx:dx = buffer call FaxFileGetName ; cx:dx = filled ; ; Switch to Ye Olde Fax Directory. ; call FilePushDir call PutThreadInFaxDir ; ; Delete the file. We should probably care if it's not ; deleted properly...hmmm... ; call VMRevert clr al ; flags call VMClose ; close for delete mov ds, cx ; ds:dx = filename call FileDelete ; nukes ax call FilePopDir ; restore working dir add sp, FILE_LONGNAME_BUFFER_SIZE ; clean up stack .leave ret Group3DeleteFile endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Group3WritePages %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Write FFH_numPages to the fax file header. CALLED BY: Group3EndJob PASS: nothing RETURN: nothing DESTROYED: nothing SIDE EFFECTS: - modifies fax file header - requires that the file already be open PSEUDO CODE/STRATEGY: - get the header - get the number of pages - write pages to header (includes cover page if any) REVISION HISTORY: Name Date Description ---- ---- ----------- stevey 3/ 7/94 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ Group3WritePages proc near uses ax, bx, cx, si, bp, ds .enter ; ; Get file handle of the file ; mov ax, segment dgroup mov ds, ax mov bx, ds:[outputVMFileHan] ; ; Get the file header so we can write that this is a valid fax file ; call FaxFileGetPageCount ; cx = # pages call FaxFileGetHeader ; ds:si = header ; bp = mem block mov ds:[si].FFH_numPages, cx call VMDirty call VMUnlock ; unlock map block .leave ret Group3WritePages endp
scripts/CeruleanMart.asm
opiter09/ASM-Machina
1
9312
<gh_stars>1-10 CeruleanMart_Script: jp EnableAutoTextBoxDrawing CeruleanMart_TextPointers: dw CeruleanCashierText dw CeruleanMartText2 dw CeruleanMartText3 CeruleanMartText2: text_far _CeruleanMartText2 text_end CeruleanMartText3: text_far _CeruleanMartText3 text_end
testsuite/name_clash/test_package.ads
mgrojo/protobuf
0
19197
<reponame>mgrojo/protobuf package Test_Package is end;
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/loop_optimization15.ads
best08618/asylo
0
29296
package Loop_Optimization15 is type B16_T is mod 2 ** 16; for B16_T'Size use 16; for B16_T'Alignment use 1; procedure Proc (L : B16_T); end Loop_Optimization15;