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
programs/oeis/173/A173523.asm
neoneye/loda
22
242696
<reponame>neoneye/loda ; A173523: 1+A053735(n-1), where A053735 is the sum-of-digits function in base 3. ; 1,2,3,2,3,4,3,4,5,2,3,4,3,4,5,4,5,6,3,4,5,4,5,6,5,6,7,2,3,4,3,4,5,4,5,6,3,4,5,4,5,6,5,6,7,4,5,6,5,6,7,6,7,8,3,4,5,4,5,6,5,6,7,4,5,6,5,6,7,6,7,8,5,6,7,6,7,8,7,8,9,2,3,4,3,4,5,4,5,6,3,4,5,4,5,6,5,6,7,4 mov $2,$0 lpb $2 mov $0,$2 gcd $0,81 add $1,6 sub $2,$0 lpe div $1,6 add $1,1 mov $0,$1
Labs/Lab6/lab06_ex1.asm
ptr2578/CS61
1
244962
;================================================= ; Name: <NAME> ; Email: <EMAIL> ; GitHub username: ptr2578 ; ; Lab: lab 6 ; Lab section: B21 ; TA: <NAME> ;================================================= .ORIG x3000 ;-------------- ; Instructions ;-------------- LD R1, ARRAY_PTR ; Load address of Array into R1 ADD R0, R0, #1 ; Put number 1 in R0 ADD R3, R3, #10 ; R3 used for loop counter ;------------- ; CODE BEGINS ;------------- InputLoop ; BRANCH InputLoop/ Loop begins STR R0, R1, #0 ; Stores the number in R0 into the array ADD R0, R0, R0 ; Multiply the value in R0 by 2 (2^n) ADD R1, R1, #1 ; Move to next data slot ADD R3, R3, #-1 ; Decrement the loop counter BRz InputLoopEnd ; If counter becomes 0, out the loop BR InputLoop ; Back to top of the loop InputLoopEnd ; BRANCH InputLoopEnd ;--------------------------------------------------------------------------- AND R1, R1, #0 ; Clear R1 for next use ADD R1, R1, #1 ; R1 holds number 1 for comparison purpose ADD R3, R3, #10 ; Loop counter for array loop LD R6, ARRAY_PTR ; Load the address of the array into R6 ArrayLoop ; BRANCH ArrayLoop / Loop begins LDR R2, R6, #0 ; Load direct the value of the array into R2 AND R4, R4, #0 ; Loop counter for Hex loop AND R0, R0, #0 ; Clear R0 for next use LD R0, Printb ; Load R0 with b OUT ; Print character b HexLoop ; BRANCH HexLoop ADD R4, R4, #1 ; Increment hex-loop counter by 1 every loop AND R0, R0, #0 ; Clear R0 for next use JSR SUB_PRINT_16BINARY ; Jump to subroutine SUB_PRINT_16BINARY SpaceLoop ; BRANCH SpaceLoop AND R5, R5, #0 ; Clear R5 for next use ADD R5, R4, #-4 ; Check to see if the loop is 4th count BRz isSpace ; Go to isSpace to print space out if sum = 0 ADD R5, R4, #-8 ; Check to see if the loop is 8th count BRz isSpace ; Go to isSpace to print space out if sum = 0 ADD R5, R4, #-12 ; Check to see if the loop is 12th count BRz isSpace ; Go to isSpace to print space out if sum = 0 BR HexLoopCheck ; Skip to BRANCH LoopCheck isSpace ; BRANCH isSpace AND R0, R0, #0 ; Clear R0 for next use LD R0, PrintSpace ; Load space character in R0 OUT ; Prints space HexLoopCheck ; BRANCH LoopCheck AND R0, R0, #0 ; Clear R0 for next use ADD R0, R4, #-16 ; Loop continues until counter becomes zero BRz HexLoopEnd BR HexLoop HexLoopEnd ; BRANCH HexLoopEnd AND R0, R0, #0 ; Clear R0 for next use LEA R0, NEWLINE ; Load new line in R0 PUTS ; Prints new line ADD R6, R6, #1 ; Move to the next data in the array ADD R3, R3, #-1 ; Decrement the array-Loop counter BRz ArrayLoopEnd ; Out the array-loop if zero BR ArrayLoop ; Back to the top of the array-loop if positive ArrayLoopEnd ; BRANCH ArrayLoopEnd HALT ;------ ; Data ;------ ARRAY_PTR .FILL x4000 ; Address of the array Printb .FILL x0062 ; ASCII character b PrintSpace .FILL x0020 ; Space NEWLINE .STRINGZ "\n" ; New line ;------------- ; Remote data ;------------- .ORIG x4000 ARRAY .BLKW #10 ; Array with 10 values ;--------------------------------------------------------- ; Subroutine: PRINT_16BINARY ; Parameter: R0, R2 ; Postcondition: The subroutine will take MSB and compare ; with 1 and print its bin value. 0 or 1 ; Return value: None ;--------------------------------------------------------- .ORIG x3200 SUB_PRINT_16BINARY ; BRANCH SUB_PRINT_16BINARY ST R7, BACKUP_R7_3200 ; Backup R7 ADD R0, R2, R1 ; Compare MSB with 1 BRnz isOne ; If MSB is 1, go to branch isOne isZero ; BRANCH isZero AND R0, R0, #0 ; Clear R0 for next use LD R0, PrintZero ; Load R0 with 0 OUT ; Prints zero ADD R2, R2, R2 ; Shift bits left BR EndSubroutine ; Skip to SpaceLoop isOne ; BRANCH isOne AND R0, R0, #0 ; Clear R0 for next use LD R0, PrintOne ; Load R0 with 1 OUT ; Prints one ADD R2, R2, R2 ; Shift bits left EndSubroutine ; BRANCH EndSubroutine LD R7, BACKUP_R7_3200 ; Restore R7 RET ; Return to address R7 ;----------------- ; Subroutine Data ;----------------- BACKUP_R7_3200 .BLKW #1 PrintZero .FILL x0030 ; ASCII character 0 PrintOne .FILL x0031 ; ASCII character 1 ;---------------- ; END of Program ;---------------- .END
TotalRecognisers/Simple/Expression.agda
nad/parser-combinators
1
822
------------------------------------------------------------------------ -- Example: Right recursive expression grammar ------------------------------------------------------------------------ module TotalRecognisers.Simple.Expression where open import Codata.Musical.Notation open import Data.Bool open import Data.Char as Char using (Char) open import Data.String as String using (String) open import Relation.Binary.PropositionalEquality open import Relation.Nullary.Decidable import TotalRecognisers.Simple as P private open module PC = P Char Char._≟_ hiding (_·_) open PC.P using (_·_) ------------------------------------------------------------------------ -- Recognisers for bits and binary numbers -- Bits. bit = tok '0' ∣ tok '1' -- Numbers. number = bit · ♯ (empty ∣ number) ------------------------------------------------------------------------ -- An expression grammar -- t ∷= f '+' t ∣ f -- f ∷= a '*' f ∣ a -- a ∷= '(' t ')' ∣ n mutual term = factor · ♯ (tok '+' · ♯ term) ∣ factor factor = atom · ♯ (tok '*' · ♯ factor) ∣ atom atom = tok '(' · ♯ term · ♯ tok ')' ∣ number ------------------------------------------------------------------------ -- Unit tests module Tests where test : ∀ {n} → P n → String → Bool test p s = ⌊ String.toList s ∈? p ⌋ ex₁ : test term "0*(0+0)" ≡ true ex₁ = refl ex₂ : test term "0*(0+0" ≡ false ex₂ = refl
Cubical/Algebra/CommMonoid/Instances/FreeComMonoid.agda
thomas-lamiaux/cubical
1
13502
{-# OPTIONS --safe #-} module Cubical.Algebra.CommMonoid.Instances.FreeComMonoid where open import Cubical.Foundations.Prelude open import Cubical.HITs.FreeComMonoids open import Cubical.Algebra.CommMonoid.Base private variable ℓ : Level FCMCommMonoid : {A : Type ℓ} → CommMonoid ℓ FCMCommMonoid {A = A} = makeCommMonoid {M = FreeComMonoid A} ε _·_ trunc assoc identityᵣ comm
fastmodel-parser/src/main/antlr4/imports/BusinessCategoryParser.g4
alibaba/fast-modeling-language
9
3695
parser grammar BusinessCategoryParser; businessCategoryStatements: createBusinessCategoryStatement | renameBusinessCategory | setBusinessCategoryAliasedName | setBusinessCategoryComment | setBusinessCategoryProperties | unSetBusinessCategoryProperties | dropBusinessCategoryStatement ; createBusinessCategoryStatement : KW_CREATE replace? categoryType ifNotExists? qualifiedName alias? comment? (KW_WITH setProperties)? ; categoryType : KW_BUSINESS_CATEGORY | KW_MARKET | KW_SUBJECT ; renameBusinessCategory : KW_ALTER categoryType qualifiedName alterStatementSuffixRename ; setBusinessCategoryAliasedName : KW_ALTER categoryType qualifiedName setAliasedName ; setBusinessCategoryComment : KW_ALTER categoryType qualifiedName alterStatementSuffixSetComment ; setBusinessCategoryProperties : KW_ALTER categoryType qualifiedName KW_SET setProperties ; unSetBusinessCategoryProperties : KW_ALTER categoryType qualifiedName KW_UNSET unSetProperties ; dropBusinessCategoryStatement : KW_DROP categoryType qualifiedName ;
programs/oeis/047/A047565.asm
neoneye/loda
22
14553
; A047565: Numbers that are congruent to {0, 1, 3, 4, 5, 6, 7} mod 8. ; 0,1,3,4,5,6,7,8,9,11,12,13,14,15,16,17,19,20,21,22,23,24,25,27,28,29,30,31,32,33,35,36,37,38,39,40,41,43,44,45,46,47,48,49,51,52,53,54,55,56,57,59,60,61,62,63,64,65,67,68,69,70,71,72,73,75,76,77,78,79,80,81,83,84,85,86,87,88,89,91,92,93,94,95,96,97,99,100,101,102,103,104,105,107,108,109,110,111,112,113 mov $1,8 mul $1,$0 add $1,5 div $1,7 mov $0,$1
MP/Assignment_6/Assignment_6.asm
pratt3000/PICT_SE-Labs
3
15213
<filename>MP/Assignment_6/Assignment_6.asm ;--------------------------------------------Messages---------------------------------------------- SECTION .data msg1: db "GDTR: " len1: equ $-msg1 msg2: db "LDTR: " len2: equ $-msg2 msg3: db "IDTR: " len3: equ $-msg3 newl: db "", 10 lenn: equ $-newl mswmsg db "Contents of MSW:" mswlen equ $-mswmsg trmsg db "Contents of TR:" trlen equ $-trmsg ;--------------------------------------------Variables--------------------------------------------- SECTION .bss cnt: resb 4 result: resb 8 gdtr: resw 1 resd 1 ldtr: resw 1 idtr: resw 1 resd 1 tr: resw 1 msw: resw 1 %macro print 4 MOV RAX, %1 MOV RDI, %2 MOV RSI, %3 MOV RDX, %4 syscall %endmacro ;---------------------------------------------Program---------------------------------------------- SECTION .text global _start _start: SGDT [gdtr] SLDT [ldtr] SIDT [idtr] STR [tr] SMSW word[msw] ;-----------------------------------------------GDT------------------------------------------------ print 1, 1, msg1, len1 MOV BX, word[gdtr+4] CALL HtoA print 1, 1, result, 4 MOV BX, word[gdtr+2] CALL HtoA print 1, 1, result, 4 MOV BX, word [gdtr] CALL HtoA print 1, 1, result, 4 print 1, 1, newl, lenn ;-----------------------------------------------LDT------------------------------------------------ print 1, 1, msg2, len2 MOV BX, word [ldtr] CALL HtoA print 1, 1, result, 4 print 1, 1, newl, lenn ;-----------------------------------------------IDT------------------------------------------------ print 1, 1, msg3, len3 MOV BX, word[idtr+4] CALL HtoA print 1, 1, result, 4 MOV BX, word[idtr+2] CALL HtoA print 1, 1, result, 4 MOV BX, word [idtr] CALL HtoA print 1, 1, result, 4 print 1, 1, newl, lenn ;-----------------------------------------------MSW------------------------------------------------ print 1,1,trmsg,trlen MOV BX,word[tr] CALL HtoA print 1,1,result,4 print 1,1,newl,lenn ;-----------------------------------------------TR------------------------------------------------- print 1,1,mswmsg,mswlen print 1,1,newl,lenn MOV AX,word[msw] CALL HtoA print 1,1,result,4 print 1,1,newl,lenn ;-----------------------------------------------exit----------------------------------------------- MOV RAX, 60 MOV RDI, 0 SYSCALL ;-----------------------------------------------HtoA----------------------------------------------- HtoA: MOV RSI,result MOV byte[cnt], 04H up: ROL BX, 04H MOV DL, BL AND DL, 0FH CMP DL, 09H JBE down ADD DL, 07H down: ADD DL, 30H MOV byte[RSI], DL INC RSI DEC byte[cnt] JNZ up RET ;-----------------------------------------------done-----------------------------------------------
src/Categories/Category/BicartesianClosed.agda
Trebor-Huang/agda-categories
279
1041
{-# OPTIONS --without-K --safe #-} open import Categories.Category.Core using (Category) module Categories.Category.BicartesianClosed {o ℓ e} (𝒞 : Category o ℓ e) where open import Level open import Categories.Category.CartesianClosed 𝒞 open import Categories.Category.Cocartesian 𝒞 record BicartesianClosed : Set (levelOfTerm 𝒞) where field cartesianClosed : CartesianClosed cocartesian : Cocartesian
programs/oeis/076/A076074.asm
jmorken/loda
1
14984
<reponame>jmorken/loda ; A076074: Initial members of groups in A076077. ; 2,1,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277 mov $2,$0 cmp $2,0 mov $3,$0 add $0,$2 div $3,$0 sub $0,1 cal $0,6005 ; The odd prime numbers together with 1. add $0,3 mov $1,$0 sub $1,$3 mul $1,2 sub $1,6 div $1,2 add $1,1
lib/target/svi/classic/rom.asm
dp304/z88dk
0
28597
<gh_stars>0 ; ; ROM Startup for SVI ; defc CRT_ORG_BSS = 0x8000 defc CRT_ORG_CODE = 0x0000 EXTERN im1_vectors EXTERN asm_interrupt_handler defc TAR__clib_exit_stack_size = 0 defc TAR__register_sp = 0xffff INCLUDE "crt/classic/crt_rules.inc" org CRT_ORG_CODE if (ASMPC<>$0000) defs CODE_ALIGNMENT_ERROR endif di ;Signature is di, ld sp ld sp,0xffff jp program defs $0008-ASMPC if (ASMPC<>$0008) defs CODE_ALIGNMENT_ERROR endif jp restart08 defs $0010-ASMPC if (ASMPC<>$0010) defs CODE_ALIGNMENT_ERROR endif jp restart10 defs $0018-ASMPC if (ASMPC<>$0018) defs CODE_ALIGNMENT_ERROR endif jp restart18 defs $0020-ASMPC if (ASMPC<>$0020) defs CODE_ALIGNMENT_ERROR endif jp restart20 defs $0028-ASMPC if (ASMPC<>$0028) defs CODE_ALIGNMENT_ERROR endif jp restart28 defs $0030-ASMPC if (ASMPC<>$0030) defs CODE_ALIGNMENT_ERROR endif jp restart30 defs $0038-ASMPC if (ASMPC<>$0038) defs CODE_ALIGNMENT_ERROR endif ; IM1 interrupt routine INCLUDE "crt/classic/tms9118/interrupt.asm" ei reti defs $0066 - ASMPC if (ASMPC<>$0066) defs CODE_ALIGNMENT_ERROR endif nmi: ; Should jump to pause retn ; Restart routines, nothing sorted yet restart10: restart08: restart18: restart20: restart28: restart30: ret int_VBL: ld hl,im1_vectors call asm_interrupt_handler pop hl pop af ei reti program: INCLUDE "crt/classic/crt_init_sp.asm" INCLUDE "crt/classic/crt_init_atexit.asm" call crt0_init_bss ld (exitsp),sp im 1 ei ; Optional definition for auto MALLOC init ; it assumes we have free space between the end of ; the compiled program and the stack pointer IF DEFINED_USING_amalloc INCLUDE "crt/classic/crt_init_amalloc.asm" ENDIF call _main cleanup: call crt0_exit di halt jp cleanup l_dcal: jp (hl) ;Used for function pointer calls defc __crt_org_bss = CRT_ORG_BSS IF DEFINED_CRT_MODEL defc __crt_model = CRT_MODEL ELSE defc __crt_model = 1 ENDIF
oeis/058/A058200.asm
neoneye/loda-programs
11
166005
; A058200: Coefficients of the highest power of r in a sequence of parametric solutions for the Diophantine equation x^3+y^3+z^3=1. ; Submitted by <NAME>(s3) ; 9,9,3888,1679616,725594112,313456656384,135413275557888,58498535041007616,25271367137715290112,10917230603493005328384,4716243620708978301861888,2037417244146278626404335616,880164249471192366606672986112,380230955771555102374082730000384,164259772893311804225603739360165888,70960221889910699425460815403591663616,30654815856441422151799072254351598682112,13242880449982694369577199213879890630672384,5720924354392523967657350060396112752450469888,2471439321097570354027975226091120709058602991616 trn $0,1 mov $1,432 pow $1,$0 mov $0,$1 mul $0,9
0x10-variadic_functions/100-hello_holberton.asm
untalinfo/holbertonschool-low_level_programming
0
10017
section .data message db "Hello, Holberton", 10 section .text global main main: mov rax, 1 mov rdi, 1 mov rsi, message mov rdx, 17 syscall mov rax, 60 mov rdi, 0 syscall
c2000/C2000Ware_1_00_06_00/libraries/dsp/FPU/c28/source/fft/CFFT_f32_mag.asm
ramok/Themis_ForHPSDR
0
29106
<filename>c2000/C2000Ware_1_00_06_00/libraries/dsp/FPU/c28/source/fft/CFFT_f32_mag.asm<gh_stars>0 ;;############################################################################# ;;! \file source/fft/CFFT_f32_mag.asm ;;! ;;! \brief Complex FFT magnitude calculations ;;! \author <NAME> ;;! \date 11/20/14 ;; ;; DESCRIPTION: ;; ;; Calculates the magnitude for the 32-bit floating point complex FFT. ;; ;; HISTORY: ;; 11/20/14 - optimized v1.40.00.00 function. (D. Alter) ;; ;; FUNCTIONS: ;; ;; void CFFT_f32_mag (CFFT_F32_STRUCT_Handle) ;; ;; where CFFT_F32_STRUCT_Handle is defined as: ;; typedef CFFT_F32_STRUCT* CFFT_F32_STRUCT_Handle; ;; ;; and where CFFT_F32_STRUCT is a structure defined as: ;; ;; typedef struct { ;; float *InPtr; ;; float *OutPtr; ;; float *CoefPtr; ;; float *CurrentInPtr; ;; float *CurrentOutPtr; ;; uint16_t Stages; ;; uint16_t FFTSize; ;; } CFFT_F32_STRUCT; ;; ;; ASSUMPTIONS: ;; ;; * CFFT_f32() has been called prior to this function ;; * FFTSize must be at least 2 and even. ;; ;; ;; ALGORITHM: ;; ;; Calculate the complex FFT magnitude. The data is organized as follows in ;; the output buffer after calculating FFT: ;; ;; +----------------------------+ ;; | R(0) | 0 ;; | I(0) | ;; | R(1) | ;; | I(1) | ;; . . ;; . . ;; . . ;; . . ;; | R(FFTSize/2) = fs/2 | ;; | I(FFTSize/2) | ;; . . ;; . . ;; . . ;; . . ;; | R(N-2) | ;; | I(N-2) | ;; | R(N-1) | ;; | I(N-1) | FFTSize - 1 ;; +----------------------------+ ;; ;; CODE OPTIMIZATION: ;; ;; The loop was spatially unrolled once to eliminate FPU delay slots. ;; ;; BENCHMARK: 18 cycles/complex value + overhead ;; ;; On Entry: XAR4 = &CFFT_F32_STRUCT ;; ;; Group: C2000 ;; Target Family: C28x ;; ;;############################################################################# ;;$TI Release: C28x Floating Point Unit Library V1.50.00.00 $ ;;$Release Date: Oct 18, 2018 $ ;;$Copyright: Copyright (C) 2018 Texas Instruments Incorporated - ;; http://www.ti.com/ ALL RIGHTS RESERVED $ ;;############################################################################# ;; ;---------------------------------------------------------------------- ; CFFT_F32_STRUCT structure offsets from XAR4 ;---------------------------------------------------------------------- ;CFFT_InPtr .set (0*2) ;CFFT_OutPtr .set (1*2) ;CFFT_CoefPtr .set (2*2) ;CFFT_CurrentInPtr .set (3*2) ;CFFT_CurrentOutPtr .set (4*2) ;CFFT_Stages .set (5*2) ;CFFT_FFTSize .set (CFFT_Stages+1) ;=========================================================================== ; Function: void CFFT_f32_mag(CFFT_F32_STRUCT_Handle) ;=========================================================================== .global _CFFT_f32_mag .text _CFFT_f32_mag: MOV32 *SP++, R4H ; Save R4H (save-on-entry register) MOV32 *SP++, R5H ; Save R5H (save-on-entry register) MOV32 *SP++, R6H ; Save R6H (save-on-entry register) MOV32 *SP++, R7H ; Save R7H (save-on-entry register) ADDB XAR4, #6 MOVL XAR5, *+XAR4[2] ; XAR5 = &CurrentOutPtr MOVL XAR6, *+XAR4[0] ; XAR6 = &CurrentInPtr MOV AL, *+XAR4[5] ; AL = FFTSize LSR AL, #1 ; AL = FFTSize/2 SUBB AL, #1 ; Init loop counter to "N-1" ;---------------------------------------------------------------------- ; Begin magnitude calculations ;---------------------------------------------------------------------- ;--- Main loop _cfft_f32_calc_mag: RPTB _cfft_f32_mag_end, @AL ;--- Compute magnitude squared MOV32 R0H, *XAR6++ ; R0H = Re[i] MPYF32 R0H, R0H, R0H ; R0H = Re[i]*Re[i] || MOV32 R1H, *XAR6++ ; R1H = Im[i] MOV32 R4H, *XAR6++ ; R4H = Re[i+1] MPYF32 R4H, R4H, R4H ; R4H = Re[i+1]*Re[i+1] || MOV32 R5H, *XAR6++ ; R5H = Im[i+1] MPYF32 R1H, R1H, R1H ; R1H = Im[i]*Im[i] MPYF32 R5H, R5H, R5H ; R5H = Im[i+1]*Im[i+1] ADDF32 R0H, R1H, R0H ; R0H = (Re[i]*Re[i]) + (Im[i]*Im[i]) ADDF32 R4H, R5H, R4H ; R4H = (Re[i+1]*Re[i+1]) + (Im[i+1]*Im[i+1]) ;--- Do the sqrt EISQRTF32 R1H, R0H ; R1H = Ye[i] = Estimate(1/sqrt(X[i])) EISQRTF32 R5H, R4H ; R5H = Ye[i+1] = Estimate(1/sqrt(X[i+1])) MPYF32 R2H, R0H, #0.5 ; R2H = X[i]*0.5 MPYF32 R6H, R4H, #0.5 ; R6H = X[i+1]*0.5 MPYF32 R3H, R1H, R1H ; R3H = Ye[i]*Ye[i] MPYF32 R7H, R5H, R5H ; R7H = Ye[i+1]*Ye[i+1] MPYF32 R3H, R3H, R2H ; R3H = Ye[i]*Ye[i]*X*0.5 MPYF32 R7H, R7H, R6H ; R7H = Ye[i+1]*Ye[i+1]*X[i+1]*0.5 SUBF32 R3H, #1.5, R3H ; R3H = 1.5 - Ye[i]*Ye[i]*X[i]*0.5 SUBF32 R7H, #1.5, R7H ; R7H = 1.5 - Ye[i+1]*Ye[i+1]*X[i+1]*0.5 MPYF32 R1H, R1H, R3H ; R1H = Ye[i] = Ye[i]*(1.5 - Ye[i]*Ye[i]*X[i]*0.5) MPYF32 R5H, R5H, R7H ; R6H = Ye[i+1] = Ye[i+1]*(1.5 - Ye[i+1]*Ye[i+1]*X[i+1]*0.5) MPYF32 R3H, R1H, R2H ; R3H = Ye[i]*X[i]*0.5 MPYF32 R7H, R5H, R6H ; R7H = Ye[i+1]*X[i+1]*0.5 MPYF32 R3H, R1H, R3H ; R3H = Ye[i]*Ye[i]*X[i]*0.5 MPYF32 R7H, R5H, R7H ; R7H = Ye[i+1]*Ye[i+1]*X[i+1]*0.5 SUBF32 R3H, #1.5, R3H ; R3H = 1.5 - Ye[i]*Ye[i]*X*0.5 CMPF32 R0H, #0.0 ; Check if X[i] == 0 MPYF32 R1H, R1H, R3H ; R1H = Ye[i] = Ye[i]*(1.5 - Ye[i]*Ye[i]*X[i]*0.5) SUBF32 R7H, #1.5, R7H ; R7H = 1.5 - Ye[i+1]*Ye[i+1]*X[i+1]*0.5 MOV32 R1H, R0H, EQ ; If X[i] is zero, change the Ye[i] estimate to 0 CMPF32 R4H, #0.0 ; Check if X[i+1] == 0 MPYF32 R5H, R5H, R7H ; R5H = Ye[i+1] = Ye[i+1]*(1.5 - Ye[i+1]*Ye[i+1]*X[i+1]*0.5) MPYF32 R0H, R0H, R1H ; R0H = Y[i] = X[i]*Ye[i] = sqrt(X[i]) MOV32 R5H, R4H, EQ ; If X[i+1] is zero, change the Ye[i+1] estimate to 0 MPYF32 R4H, R4H, R5H ; R4H = Y[i+1] = X[i+1]*Ye[i+1] = sqrt(X[i+1]) ;--- Store the result MOV32 *XAR5++, R0H ; Store mag[i] MOV32 *XAR5++, R4H ; Store mag[i+1] _cfft_f32_mag_end: ;--- Finish up MOV32 R7H, *--SP ; Restore R7H MOV32 R6H, *--SP ; Restore R6H MOV32 R5H, *--SP ; Restore R5H MOV32 R4H, *--SP ; Restore R4H LRETR ;;############################################################################# ;; End of File ;;#############################################################################
oeis/315/A315210.asm
neoneye/loda-programs
11
18199
<gh_stars>10-100 ; A315210: Coordination sequence Gal.6.327.3 where G.u.t.v denotes the coordination sequence for a vertex of type v in tiling number t in the Galebach list of u-uniform tilings. ; Submitted by <NAME> ; 1,6,10,14,20,25,29,34,40,44,48,54,60,64,68,74,79,83,88,94,98,102,108,114,118,122,128,133,137,142,148,152,156,162,168,172,176,182,187,191 mov $1,$0 mul $1,3 seq $1,311523 ; Coordination sequence Gal.6.119.2 where G.u.t.v denotes the coordination sequence for a vertex of type v in tiling number t in the Galebach list of u-uniform tilings. mov $2,$0 mul $0,16 sub $0,1 mod $0,$1 add $0,1 mov $3,$2 mul $3,2 add $0,$3
src/natives/bring-to-front/mac/bring-to-front.applescript
DeltaEvo/testcafe-browser-tools
0
421
<reponame>DeltaEvo/testcafe-browser-tools<filename>src/natives/bring-to-front/mac/bring-to-front.applescript<gh_stars>0 on run (argv) if (count of argv) is not equal to 2 then error "Incorrect arguments" end if set windowId to (item 1 of argv as integer) set bundleId to (item 2 of argv as string) tell application id bundleId try activate set index of window id windowId to 1 end try end tell end run
SVParser.g4
hlt0f4h/SVParser
0
1438
<reponame>hlt0f4h/SVParser /* * IEEE 1800-2017 SystemVerilog * Parser Rule * * [#02] 2022-04-19 * * https://github.com/hlt0f4h/SVParser */ parser grammar SVParser; options { tokenVocab=SVLexer; } // A.1.2 SystemVerilog source text source_text : ( timeunits_declaration )? ( description )* EOF ; description : module_declaration | udp_declaration | interface_declaration | program_declaration | package_declaration | ( attribute_instance )* package_item | ( attribute_instance )* bind_directive | config_declaration ; module_nonansi_header : ( attribute_instance )* module_keyword ( lifetime )? module_identifier ( package_import_declaration )* ( parameter_port_list )? list_of_ports S_SC ; module_ansi_header : ( attribute_instance )* module_keyword ( lifetime )? module_identifier ( package_import_declaration )* ( parameter_port_list )? ( list_of_port_declarations )? S_SC ; module_declaration : module_nonansi_header ( timeunits_declaration )? ( module_item )* B_endmodule ( S_CO module_identifier )? | module_ansi_header ( timeunits_declaration )? ( non_port_module_item )* B_endmodule ( S_CO module_identifier )? | ( attribute_instance )* module_keyword ( lifetime )? module_identifier S_LM S_DT_AS S_RM S_SC ( timeunits_declaration )? ( module_item )* B_endmodule ( S_CO module_identifier )? | K_extern module_nonansi_header | K_extern module_ansi_header ; module_keyword : B_module | B_macromodule ; interface_declaration : interface_nonansi_header ( timeunits_declaration )? ( interface_item )* B_endinterface ( S_CO interface_identifier )? | interface_ansi_header ( timeunits_declaration )? ( non_port_interface_item )* B_endinterface ( S_CO interface_identifier )? | ( attribute_instance )* B_interface interface_identifier S_LM S_DT_AS S_RM S_SC ( timeunits_declaration )? ( interface_item )* B_endinterface ( S_CO interface_identifier )? | K_extern interface_nonansi_header | K_extern interface_ansi_header ; interface_nonansi_header : ( attribute_instance )* B_interface ( lifetime )? interface_identifier ( package_import_declaration )* ( parameter_port_list )? list_of_ports S_SC ; interface_ansi_header : ( attribute_instance )* B_interface ( lifetime )? interface_identifier ( package_import_declaration )* ( parameter_port_list )? ( list_of_port_declarations )? S_SC ; program_declaration : program_nonansi_header ( timeunits_declaration )? ( program_item )* B_endprogram ( S_CO program_identifier )? | program_ansi_header ( timeunits_declaration )? ( non_port_program_item )* B_endprogram ( S_CO program_identifier )? | ( attribute_instance )* B_program program_identifier S_LM S_DT_AS S_RM S_SC ( timeunits_declaration )? ( program_item )* B_endprogram ( S_CO program_identifier )? | K_extern program_nonansi_header | K_extern program_ansi_header ; program_nonansi_header : ( attribute_instance )* B_program ( lifetime )? program_identifier ( package_import_declaration )* ( parameter_port_list )? list_of_ports S_SC ; program_ansi_header : ( attribute_instance )* B_program ( lifetime )? program_identifier ( package_import_declaration )* ( parameter_port_list )? ( list_of_port_declarations )? S_SC ; checker_declaration : B_checker checker_identifier ( S_LM ( checker_port_list )? S_RM )? S_SC ( ( attribute_instance )* checker_or_generate_item )* B_endchecker ( S_CO checker_identifier )? ; class_declaration : ( T_virtual )? B_class ( lifetime )? class_identifier ( parameter_port_list )? ( K_extends class_type ( S_LM list_of_arguments S_RM )? )? ( K_implements interface_class_type ( S_CM interface_class_type )* )? S_SC ( class_item )* B_endclass ( S_CO class_identifier )? ; interface_class_type : ps_class_identifier ( parameter_value_assignment )? ; interface_class_declaration : B_interface B_class class_identifier ( parameter_port_list )? ( K_extends interface_class_type ( S_CM interface_class_type )* )? S_SC ( interface_class_item )* B_endclass ( S_CO class_identifier )? ; interface_class_item : type_declaration | ( attribute_instance )* interface_class_method | local_parameter_declaration S_SC | parameter_declaration S_SC | S_SC ; interface_class_method : T_pure T_virtual method_prototype S_SC ; package_declaration : ( attribute_instance )* B_package ( lifetime )? package_identifier S_SC ( timeunits_declaration )? ( ( attribute_instance )* package_item )* B_endpackage ( S_CO package_identifier )? ; timeunits_declaration : K_timeunit L_Time ( S_DV L_Time )? S_SC | K_timeprecision L_Time S_SC | K_timeunit L_Time S_SC K_timeprecision L_Time S_SC | K_timeprecision L_Time S_SC K_timeunit L_Time S_SC ; // A.1.3 Module parameters and ports parameter_port_list : S_SH S_LM list_of_param_assignments ( S_CM parameter_port_declaration )* S_RM | S_SH S_LM parameter_port_declaration ( S_CM parameter_port_declaration )* S_RM | S_SH S_LM S_RM ; parameter_port_declaration : parameter_declaration | local_parameter_declaration | data_type list_of_param_assignments | T_type list_of_type_assignments ; list_of_ports : S_LM port ( S_CM port )* S_RM ; list_of_port_declarations : S_LM ( ( attribute_instance )* ansi_port_declaration ( S_CM ( attribute_instance )* ansi_port_declaration )* )? S_RM ; port_declaration : ( attribute_instance )* inout_declaration | ( attribute_instance )* input_declaration | ( attribute_instance )* output_declaration | ( attribute_instance )* ref_declaration | ( attribute_instance )* interface_port_declaration ; port : ( port_expression )? | S_DT port_identifier S_LM ( port_expression )? S_RM ; port_expression : port_reference | S_LN port_reference ( S_CM port_reference )* S_RN ; port_reference : port_identifier constant_select ; port_direction : T_input | T_output | T_inout | T_ref ; net_port_header : ( port_direction )? net_port_type ; variable_port_header : ( port_direction )? variable_port_type ; interface_port_header : interface_identifier ( S_DT modport_identifier )? | B_interface ( S_DT modport_identifier )? ; ansi_port_declaration : ( net_port_header | interface_port_header )? port_identifier ( unpacked_dimension )* ( S_EQ constant_expression )? | ( variable_port_header )? port_identifier ( variable_dimension )* ( S_EQ constant_expression )? | ( port_direction )? S_DT port_identifier S_LM ( expression )? S_RM ; // A.1.4 Module items //[Mod] elaboration_system_task : D_fatal ( S_LM N_Unsigned ( S_CM list_of_arguments )? S_RM )? S_SC | D_error ( S_LM ( list_of_arguments )? S_RM )? S_SC | D_warning ( S_LM ( list_of_arguments )? S_RM )? S_SC | D_info ( S_LM ( list_of_arguments )? S_RM )? S_SC ; module_common_item : module_or_generate_item_declaration | interface_instantiation | program_instantiation | assertion_item | bind_directive | continuous_assign | net_alias | initial_construct | final_construct | always_construct | loop_generate_construct | conditional_generate_construct | elaboration_system_task ; module_item : port_declaration S_SC | non_port_module_item ; module_or_generate_item : ( attribute_instance )* parameter_override | ( attribute_instance )* gate_instantiation | ( attribute_instance )* udp_instantiation | ( attribute_instance )* module_instantiation | ( attribute_instance )* module_common_item ; module_or_generate_item_declaration : package_or_generate_item_declaration | genvar_declaration | clocking_declaration | K_default B_clocking clocking_identifier S_SC | K_default K_disable K_iff expression_or_dist S_SC ; non_port_module_item : generate_region | module_or_generate_item | specify_block | ( attribute_instance )* specparam_declaration | program_declaration | module_declaration | interface_declaration | timeunits_declaration ; parameter_override : K_defparam list_of_defparam_assignments S_SC ; bind_directive : K_bind bind_target_scope ( S_CO bind_target_instance_list )? bind_instantiation S_SC | K_bind bind_target_instance bind_instantiation S_SC ; bind_target_scope : module_identifier | interface_identifier ; bind_target_instance : hierarchical_identifier constant_bit_select ; bind_target_instance_list : bind_target_instance ( S_CM bind_target_instance )* ; bind_instantiation : program_instantiation | module_instantiation | interface_instantiation | checker_instantiation ; // A.1.5 Configuration source text config_declaration : B_config config_identifier S_SC ( local_parameter_declaration S_SC )* design_statement ( config_rule_statement )* B_endconfig ( S_CO config_identifier )? ; design_statement : K_design ( ( library_identifier S_DT )? cell_identifier )* S_SC ; config_rule_statement : default_clause liblist_clause S_SC | inst_clause liblist_clause S_SC | inst_clause use_clause S_SC | cell_clause liblist_clause S_SC | cell_clause use_clause S_SC ; default_clause : K_default ; inst_clause : K_instance inst_name ; inst_name : topmodule_identifier ( S_DT instance_identifier )* ; cell_clause : K_cell ( library_identifier S_DT )? cell_identifier ; liblist_clause : K_liblist ( library_identifier )* ; use_clause : K_use ( library_identifier S_DT )? cell_identifier ( S_CO B_config )? | K_use named_parameter_assignment ( S_CM named_parameter_assignment )* ( S_CO B_config )? | K_use ( library_identifier S_DT )? cell_identifier named_parameter_assignment ( S_CM named_parameter_assignment )* ( S_CO B_config )? ; // A.1.6 Interface items interface_or_generate_item : ( attribute_instance )* module_common_item | ( attribute_instance )* extern_tf_declaration ; extern_tf_declaration : K_extern method_prototype S_SC | K_extern K_forkjoin task_prototype S_SC ; interface_item : port_declaration S_SC | non_port_interface_item ; non_port_interface_item : generate_region | interface_or_generate_item | program_declaration | modport_declaration | interface_declaration | timeunits_declaration ; // A.1.7 Program items program_item : port_declaration S_SC | non_port_program_item ; non_port_program_item : ( attribute_instance )* continuous_assign | ( attribute_instance )* module_or_generate_item_declaration | ( attribute_instance )* initial_construct | ( attribute_instance )* final_construct | ( attribute_instance )* concurrent_assertion_item | timeunits_declaration | program_generate_item ; program_generate_item : loop_generate_construct | conditional_generate_construct | generate_region | elaboration_system_task ; // A.1.8 Checker items checker_port_list : checker_port_item ( S_CM checker_port_item )* ; checker_port_item : ( attribute_instance )* ( checker_port_direction )? property_formal_type formal_port_identifier ( variable_dimension )* ( S_EQ property_actual_arg )? ; checker_port_direction : T_input | T_output ; checker_or_generate_item : checker_or_generate_item_declaration | initial_construct | always_construct | final_construct | assertion_item | continuous_assign | checker_generate_item ; checker_or_generate_item_declaration : ( K_rand )? data_declaration | function_declaration | checker_declaration | assertion_item_declaration | covergroup_declaration | genvar_declaration | clocking_declaration | K_default B_clocking clocking_identifier S_SC | K_default K_disable K_iff expression_or_dist S_SC | S_SC ; checker_generate_item : loop_generate_construct | conditional_generate_construct | generate_region | elaboration_system_task ; // A.1.9 Class items class_item : ( attribute_instance )* class_property | ( attribute_instance )* class_method | ( attribute_instance )* class_constraint | ( attribute_instance )* class_declaration | ( attribute_instance )* covergroup_declaration | local_parameter_declaration S_SC | parameter_declaration S_SC | S_SC ; class_property : ( property_qualifier )* data_declaration | T_const ( class_item_qualifier )* data_type const_identifier ( S_EQ constant_expression )? S_SC ; class_method : ( method_qualifier )* task_declaration | ( method_qualifier )* function_declaration | T_pure T_virtual ( class_item_qualifier )* method_prototype S_SC | K_extern ( method_qualifier )* method_prototype S_SC | ( method_qualifier )* class_constructor_declaration | K_extern ( method_qualifier )* class_constructor_prototype ; class_constructor_prototype : B_function K_new ( S_LM ( tf_port_list )? S_RM )? S_SC ; class_constraint : constraint_prototype | constraint_declaration ; class_item_qualifier : T_static | T_protected | T_local ; property_qualifier : random_qualifier | class_item_qualifier ; random_qualifier : K_rand | K_randc ; method_qualifier : ( T_pure )? T_virtual | class_item_qualifier ; method_prototype : task_prototype | function_prototype ; class_constructor_declaration : B_function ( class_scope )? K_new ( S_LM ( tf_port_list )? S_RM )? S_SC ( block_item_declaration )* ( K_super S_DT K_new ( S_LM list_of_arguments S_RM )? S_SC )? ( function_statement_or_null )* B_endfunction ( S_CO K_new )? ; // A.1.10 Constraints constraint_declaration : ( T_static )? K_constraint constraint_identifier constraint_block ; constraint_block : S_LN ( constraint_block_item )* S_RN ; constraint_block_item : K_solve solve_before_list K_before solve_before_list S_SC | constraint_expression ; solve_before_list : constraint_primary ( S_CM constraint_primary )* ; constraint_primary : ( implicit_class_handle S_DT | class_scope )? hierarchical_identifier select ; constraint_expression : ( K_soft )? expression_or_dist S_SC | uniqueness_constraint S_SC | expression S_MI_RB constraint_set | K_if S_LM expression S_RM constraint_set ( K_else constraint_set )? | K_foreach S_LM ps_or_hierarchical_array_identifier S_LK loop_variables S_RK S_RM constraint_set | K_disable K_soft constraint_primary S_SC ; uniqueness_constraint : K_unique S_LN open_range_list S_RN ; constraint_set : constraint_expression | S_LN ( constraint_expression )* S_RN ; dist_list : dist_item ( S_CM dist_item )* ; dist_item : value_range ( dist_weight )? ; dist_weight : S_CO_EQ expression | S_CO_DV expression ; constraint_prototype : ( constraint_prototype_qualifier )? ( T_static )? K_constraint constraint_identifier S_SC ; constraint_prototype_qualifier : K_extern | T_pure ; extern_constraint_declaration : ( T_static )? K_constraint class_scope constraint_identifier constraint_block ; identifier_list : identifier ( S_CM identifier )* ; // A.1.11 Package items package_item : package_or_generate_item_declaration | anonymous_program | package_export_declaration | timeunits_declaration ; package_or_generate_item_declaration : net_declaration | data_declaration | task_declaration | function_declaration | checker_declaration | dpi_import_export | extern_constraint_declaration | class_declaration | class_constructor_declaration | local_parameter_declaration S_SC | parameter_declaration S_SC | covergroup_declaration | assertion_item_declaration | S_SC ; anonymous_program : B_program S_SC ( anonymous_program_item )* B_endprogram ; anonymous_program_item : task_declaration | function_declaration | class_declaration | covergroup_declaration | class_constructor_declaration | S_SC ; // A.2 Declarations // A.2.1 Declaration types // A.2.1.1 Module parameter declarations local_parameter_declaration : T_localparam data_type_or_implicit list_of_param_assignments | T_localparam T_type list_of_type_assignments ; parameter_declaration : T_parameter data_type_or_implicit list_of_param_assignments | T_parameter T_type list_of_type_assignments ; specparam_declaration : K_specparam ( packed_dimension )? list_of_specparam_assignments S_SC ; // A.2.1.2 Port declarations inout_declaration : T_inout net_port_type list_of_port_identifiers ; input_declaration : T_input net_port_type list_of_port_identifiers | T_input variable_port_type list_of_variable_identifiers ; output_declaration : T_output net_port_type list_of_port_identifiers | T_output variable_port_type list_of_variable_port_identifiers ; interface_port_declaration : interface_identifier list_of_interface_identifiers | interface_identifier S_DT modport_identifier list_of_interface_identifiers ; ref_declaration : T_ref variable_port_type list_of_variable_identifiers ; // A.2.1.3 Type declarations data_declaration : ( T_const )? ( T_var )? ( lifetime )? data_type_or_implicit list_of_variable_decl_assignments S_SC | type_declaration | package_import_declaration | net_type_declaration ; package_import_declaration : K_import package_import_item ( S_CM package_import_item )* S_SC ; package_import_item : package_identifier S_CO_CO identifier | package_identifier S_CO_CO S_AS ; package_export_declaration : K_export S_AS_CO_CO_AS S_SC | K_export package_import_item ( S_CM package_import_item )* S_SC ; genvar_declaration : T_genvar list_of_genvar_identifiers S_SC ; net_declaration : net_type ( drive_strength | charge_strength )? ( T_vectored | T_scalared )? data_type_or_implicit ( delay3 )? list_of_net_decl_assignments S_SC | net_type_identifier ( delay_control )? list_of_net_decl_assignments S_SC | T_interconnect implicit_data_type ( S_SH delay_value )? net_identifier ( unpacked_dimension )* ( S_CM net_identifier ( unpacked_dimension )* )? S_SC ; type_declaration : K_typedef data_type type_identifier ( variable_dimension )* S_SC | K_typedef interface_instance_identifier constant_bit_select S_DT type_identifier type_identifier S_SC | K_typedef ( T_enum | T_struct | T_union | B_class | B_interface B_class )? type_identifier S_SC ; net_type_declaration : K_nettype data_type net_type_identifier ( K_with ( package_scope | class_scope )? tf_identifier )? S_SC | K_nettype ( package_scope | class_scope )? net_type_identifier net_type_identifier S_SC ; lifetime : T_static | T_automatic ; // A.2.2 Declaration data types // A.2.2.1 Net and variable types casting_type : simple_type | constant_primary | signing | T_string | T_const ; //[mod] casting_type_t : simple_type | signing | T_string | T_const ; data_type : integer_vector_type ( signing )? ( packed_dimension )* | integer_atom_type ( signing )? | non_integer_type | struct_union ( T_packed ( signing )? )? S_LN struct_union_member ( struct_union_member )* S_RN ( packed_dimension )* | T_enum ( enum_base_type )? S_LN enum_name_declaration ( S_CM enum_name_declaration )* S_RN ( packed_dimension )* | T_string | T_chandle | T_virtual ( B_interface )? interface_identifier ( parameter_value_assignment )? ( S_DT modport_identifier )? | ( class_scope | package_scope )? type_identifier ( packed_dimension )* | class_type | K_event | ps_covergroup_identifier | type_reference ; data_type_or_implicit : data_type | implicit_data_type ; implicit_data_type : ( signing )? ( packed_dimension )* ; enum_base_type : integer_atom_type ( signing )? | integer_vector_type ( signing )? ( packed_dimension )? | type_identifier ( packed_dimension )? ; enum_name_declaration : enum_identifier ( S_LK integral_number ( S_CO integral_number )? S_RK )? ( S_EQ constant_expression )? ; class_scope : class_type S_CO_CO ; class_type : ps_class_identifier ( parameter_value_assignment )? ( S_CO_CO class_identifier ( parameter_value_assignment )? )* ; integer_type : integer_vector_type | integer_atom_type ; integer_atom_type : T_byte | T_shortint | T_int | T_longint | T_integer | T_time ; integer_vector_type : T_bit | T_logic | T_reg ; non_integer_type : T_shortreal | T_real | T_realtime ; net_type : T_supply0 | T_supply1 | T_tri | T_triand | T_trior | T_trireg | T_tri0 | T_tri1 | T_uwire | T_wire | T_wand | T_wor ; net_port_type : ( net_type )? data_type_or_implicit | net_type_identifier | T_interconnect implicit_data_type ; variable_port_type : var_data_type ; var_data_type : data_type | T_var data_type_or_implicit ; signing : T_signed | T_unsigned ; simple_type : integer_type | non_integer_type | ps_type_identifier | ps_parameter_identifier ; struct_union_member : ( attribute_instance )* ( random_qualifier )? data_type_or_void list_of_variable_decl_assignments S_SC ; data_type_or_void : data_type | T_void ; struct_union : T_struct | T_union ( T_tagged )? ; type_reference : T_type S_LM expression S_RM | T_type S_LM data_type S_RM ; // A.2.2.2 Strengths drive_strength : S_LM strength0 S_CM strength1 S_RM | S_LM strength1 S_CM strength0 S_RM | S_LM strength0 S_CM T_highz1 S_RM | S_LM strength1 S_CM T_highz0 S_RM | S_LM T_highz0 S_CM strength1 S_RM | S_LM T_highz1 S_CM strength0 S_RM ; strength0 : T_supply0 | T_strong0 | T_pull0 | T_weak0 ; strength1 : T_supply1 | T_strong1 | T_pull1 | T_weak1 ; charge_strength : S_LM T_small S_RM | S_LM T_medium S_RM | S_LM T_large S_RM ; // A.2.2.3 Delays delay3 : S_SH delay_value | S_SH S_LM mintypmax_expression ( S_CM mintypmax_expression ( S_CM mintypmax_expression )? )? S_RM ; delay2 : S_SH delay_value | S_SH S_LM mintypmax_expression ( S_CM mintypmax_expression )? S_RM ; delay_value : N_Unsigned | real_number | ps_identifier | L_Time | K_1step ; // A.2.3 Declaration lists list_of_defparam_assignments : defparam_assignment ( S_CM defparam_assignment )* ; list_of_genvar_identifiers : genvar_identifier ( S_CM genvar_identifier )* ; list_of_interface_identifiers : interface_identifier ( unpacked_dimension )* ( S_CM interface_identifier ( unpacked_dimension )* )* ; list_of_net_decl_assignments : net_decl_assignment ( S_CM net_decl_assignment )* ; list_of_param_assignments : param_assignment ( S_CM param_assignment )* ; list_of_port_identifiers : port_identifier ( unpacked_dimension )* ( S_CM port_identifier ( unpacked_dimension )* )* ; list_of_udp_port_identifiers : port_identifier ( S_CM port_identifier )* ; list_of_specparam_assignments : specparam_assignment ( S_CM specparam_assignment )* ; list_of_tf_variable_identifiers : port_identifier ( variable_dimension )* ( S_EQ expression )? ( S_CM port_identifier ( variable_dimension )* ( S_EQ expression )? )* ; list_of_type_assignments : type_assignment ( S_CM type_assignment )* ; list_of_variable_decl_assignments : variable_decl_assignment ( S_CM variable_decl_assignment )* ; list_of_variable_identifiers : variable_identifier ( variable_dimension )* ( S_CM variable_identifier ( variable_dimension )* )* ; list_of_variable_port_identifiers : port_identifier ( variable_dimension )* ( S_EQ constant_expression )? ( S_CM port_identifier ( variable_dimension )* ( S_EQ constant_expression )? )* ; // A.2.4 Declaration assignments defparam_assignment : hierarchical_parameter_identifier S_EQ constant_mintypmax_expression ; net_decl_assignment : net_identifier ( unpacked_dimension )* ( S_EQ expression )? ; param_assignment : parameter_identifier ( unpacked_dimension )* ( S_EQ constant_param_expression )? ; specparam_assignment : specparam_identifier S_EQ constant_mintypmax_expression | pulse_control_specparam ; type_assignment : type_identifier ( S_EQ data_type )? ; pulse_control_specparam : K_PATHPULSE_DL S_EQ S_LM reject_limit_value ( S_CM error_limit_value )? S_RM | K_PATHPULSE_DL specify_input_terminal_descriptor S_DL specify_output_terminal_descriptor S_EQ S_LM reject_limit_value ( S_CM error_limit_value )? S_RM ; error_limit_value : limit_value ; reject_limit_value : limit_value ; limit_value : constant_mintypmax_expression ; variable_decl_assignment : variable_identifier ( variable_dimension )* ( S_EQ expression )? | dynamic_array_variable_identifier unsized_dimension ( variable_dimension )* ( S_EQ dynamic_array_new )? | class_variable_identifier ( S_EQ class_new )? ; class_new : ( class_scope )? K_new ( S_LM list_of_arguments S_RM )? | K_new expression ; dynamic_array_new : K_new S_LK expression S_RK ( S_LM expression S_RM )? ; // A.2.5 Declaration ranges unpacked_dimension : S_LK constant_range S_RK | S_LK constant_expression S_RK ; packed_dimension : S_LK constant_range S_RK | unsized_dimension ; associative_dimension : S_LK data_type S_RK | S_LK S_AS S_RK ; variable_dimension : unsized_dimension | unpacked_dimension | associative_dimension | queue_dimension ; queue_dimension : S_LK S_DL ( S_CO constant_expression )? S_RK ; unsized_dimension : S_LK S_RK ; // A.2.6 Function declarations function_data_type_or_implicit : data_type_or_void | implicit_data_type ; function_declaration : B_function ( lifetime )? function_body_declaration ; function_body_declaration : function_data_type_or_implicit ( interface_identifier S_DT | class_scope )? function_identifier S_SC ( tf_item_declaration )* ( function_statement_or_null )* B_endfunction ( S_CO function_identifier )? | function_data_type_or_implicit ( interface_identifier S_DT | class_scope )? function_identifier S_LM ( tf_port_list )? S_RM S_SC ( block_item_declaration )* ( function_statement_or_null )* B_endfunction ( S_CO function_identifier )? ; function_prototype : B_function data_type_or_void function_identifier ( S_LM ( tf_port_list )? S_RM )? ; dpi_import_export : K_import dpi_spec_string ( dpi_function_import_property )? ( c_identifier S_EQ )? dpi_function_proto S_SC | K_import dpi_spec_string ( dpi_task_import_property )? ( c_identifier S_EQ )? dpi_task_proto S_SC | K_export dpi_spec_string ( c_identifier S_EQ )? B_function function_identifier S_SC | K_export dpi_spec_string ( c_identifier S_EQ )? B_task task_identifier S_SC ; dpi_spec_string : K_DPI_C | K_DPI ; dpi_function_import_property : T_context | T_pure ; dpi_task_import_property : T_context ; dpi_function_proto : function_prototype ; dpi_task_proto : task_prototype ; // A.2.7 Task declarations task_declaration : B_task ( lifetime )? task_body_declaration ; task_body_declaration : ( interface_identifier S_DT | class_scope )? task_identifier S_SC ( tf_item_declaration )* ( statement_or_null )* B_endtask ( S_CO task_identifier )? | ( interface_identifier S_DT | class_scope )? task_identifier S_LM ( tf_port_list )? S_RM S_SC ( block_item_declaration )* ( statement_or_null )* B_endtask ( S_CO task_identifier )? ; tf_item_declaration : block_item_declaration | tf_port_declaration ; tf_port_list : tf_port_item ( S_CM tf_port_item )* ; tf_port_item : ( attribute_instance )* ( tf_port_direction )? ( T_var )? data_type_or_implicit ( port_identifier ( variable_dimension )* ( S_EQ expression )? )? ; tf_port_direction : port_direction | T_const T_ref ; tf_port_declaration : ( attribute_instance )* tf_port_direction ( T_var )? data_type_or_implicit list_of_tf_variable_identifiers S_SC ; task_prototype : B_task task_identifier ( S_LM ( tf_port_list )? S_RM )? ; // A.2.8 Block item declarations block_item_declaration : ( attribute_instance )* data_declaration | ( attribute_instance )* local_parameter_declaration S_SC | ( attribute_instance )* parameter_declaration S_SC | ( attribute_instance )* let_declaration ; // A.2.9 Interface declarations modport_declaration : K_modport modport_item ( S_CM modport_item )* S_SC ; modport_item : modport_identifier S_LM modport_ports_declaration ( S_CM modport_ports_declaration )* S_RM ; modport_ports_declaration : ( attribute_instance )* modport_simple_ports_declaration | ( attribute_instance )* modport_tf_ports_declaration | ( attribute_instance )* modport_clocking_declaration ; modport_clocking_declaration : B_clocking clocking_identifier ; modport_simple_ports_declaration : port_direction modport_simple_port ( S_CM modport_simple_port )* ; modport_simple_port : port_identifier | S_DT port_identifier S_LM ( expression )? S_RM ; modport_tf_ports_declaration : import_export modport_tf_port ( S_CM modport_tf_port )* ; modport_tf_port : method_prototype | tf_identifier ; import_export : K_import | K_export ; // A.2.10 Assertion declarations concurrent_assertion_item : ( block_identifier S_CO )? concurrent_assertion_statement | checker_instantiation ; concurrent_assertion_statement : assert_property_statement | assume_property_statement | cover_property_statement | cover_sequence_statement | restrict_property_statement ; assert_property_statement : K_assert B_property S_LM property_spec S_RM action_block ; assume_property_statement : K_assume B_property S_LM property_spec S_RM action_block ; cover_property_statement : K_cover B_property S_LM property_spec S_RM statement_or_null ; expect_property_statement : K_expect S_LM property_spec S_RM action_block ; cover_sequence_statement : K_cover B_sequence S_LM ( clocking_event )? ( K_disable K_iff S_LM expression_or_dist S_RM )? sequence_expr S_RM statement_or_null ; restrict_property_statement : K_restrict B_property S_LM property_spec S_RM S_SC ; property_instance : ps_or_hierarchical_property_identifier ( S_LM ( property_list_of_arguments )? S_RM )? ; property_list_of_arguments : ( property_actual_arg )? ( S_CM ( property_actual_arg )? )* ( S_CM S_DT identifier S_LM ( property_actual_arg )? S_RM )* | S_DT identifier S_LM ( property_actual_arg )? S_RM ( S_CM S_DT identifier S_LM ( property_actual_arg )? S_RM )* ; property_actual_arg : property_expr | sequence_actual_arg ; assertion_item_declaration : property_declaration | sequence_declaration | let_declaration ; property_declaration : B_property property_identifier ( S_LM ( property_port_list )? S_RM )? S_SC ( assertion_variable_declaration )* property_spec ( S_SC )? B_endproperty ( S_CO property_identifier )? ; property_port_list : property_port_item ( S_CM property_port_item )* ; property_port_item : ( attribute_instance )* ( T_local ( property_lvar_port_direction )? )? property_formal_type formal_port_identifier ( variable_dimension )* ( S_EQ property_actual_arg )? ; property_lvar_port_direction : T_input ; property_formal_type : sequence_formal_type | B_property ; property_spec : ( clocking_event )? ( K_disable K_iff S_LM expression_or_dist S_RM )? property_expr ; property_expr : sequence_expr | K_strong S_LM sequence_expr S_RM | K_weak S_LM sequence_expr S_RM | S_LM property_expr S_RM | O_not property_expr | <assoc=right> property_expr O_or property_expr | <assoc=right> property_expr O_and property_expr | sequence_expr S_OR_MI_RB property_expr | sequence_expr S_OR_EQ_RB property_expr | K_if ( expression_or_dist ) property_expr ( K_else property_expr )? | B_case ( expression_or_dist ) property_case_item ( property_case_item )* B_endcase | sequence_expr S_SH_MI_SH property_expr | sequence_expr S_SH_EQ_SH property_expr | K_nexttime property_expr | K_nexttime S_LK constant_expression S_RK property_expr | K_s_nexttime property_expr | K_s_nexttime S_LK constant_expression S_RK property_expr | K_always property_expr | K_always S_LK cycle_delay_const_range_expression S_RK property_expr | K_s_always S_LK constant_range S_RK property_expr | K_s_eventually property_expr | K_eventually S_LK constant_range S_RK property_expr | K_s_eventually S_LK cycle_delay_const_range_expression S_RK property_expr | <assoc=right> property_expr K_until property_expr | <assoc=right> property_expr K_s_until property_expr | <assoc=right> property_expr K_until_with property_expr | <assoc=right> property_expr K_s_until_with property_expr | <assoc=right> property_expr K_implies property_expr | <assoc=right> property_expr K_iff property_expr | K_accept_on S_LM expression_or_dist S_RM property_expr | K_reject_on S_LM expression_or_dist S_RM property_expr | K_sync_accept_on S_LM expression_or_dist S_RM property_expr | K_sync_reject_on S_LM expression_or_dist S_RM property_expr | property_instance | clocking_event property_expr ; property_case_item : expression_or_dist ( S_CM expression_or_dist )* S_CO property_expr S_SC | K_default ( S_CO )? property_expr S_SC ; sequence_declaration : B_sequence sequence_identifier ( S_LM ( sequence_port_list )? S_RM )? S_SC ( assertion_variable_declaration )* sequence_expr ( S_SC )? B_endsequence ( S_CO sequence_identifier )? ; sequence_port_list : sequence_port_item ( S_CM sequence_port_item )* ; sequence_port_item : ( attribute_instance )* ( T_local ( sequence_lvar_port_direction )? )? sequence_formal_type formal_port_identifier ( variable_dimension )* ( S_EQ sequence_actual_arg )? ; sequence_lvar_port_direction : T_input | T_inout | T_output ; sequence_formal_type : data_type_or_implicit | B_sequence | K_untyped ; sequence_expr : cycle_delay_range sequence_expr ( cycle_delay_range sequence_expr )* | <assoc=right> sequence_expr cycle_delay_range sequence_expr ( cycle_delay_range sequence_expr )* | expression_or_dist ( boolean_abbrev )? | sequence_instance ( sequence_abbrev )? | S_LM sequence_expr ( S_CM sequence_match_item )* S_RM ( sequence_abbrev )? | <assoc=right> sequence_expr O_and sequence_expr | <assoc=right> sequence_expr K_intersect sequence_expr | <assoc=right> sequence_expr O_or sequence_expr | K_first_match S_LM sequence_expr ( S_CM sequence_match_item )* S_RM | expression_or_dist K_throughout sequence_expr | <assoc=right> sequence_expr K_within sequence_expr | clocking_event sequence_expr ; cycle_delay_range : S_SH_SH constant_primary | S_SH_SH S_LK cycle_delay_const_range_expression S_RK | S_SH_SH_LK_AS_RK | S_SH_SH_LK_PL_RK ; sequence_method_call : sequence_instance S_DT method_identifier ; sequence_match_item : operator_assignment | inc_or_dec_expression | subroutine_call ; sequence_instance : ps_or_hierarchical_sequence_identifier ( S_LM ( sequence_list_of_arguments )? S_RM )? ; sequence_list_of_arguments : ( sequence_actual_arg )? ( S_CM ( sequence_actual_arg )? )* ( S_CM S_DT identifier S_LM ( sequence_actual_arg )? S_RM )* | S_DT identifier S_LM ( sequence_actual_arg )? S_RM ( S_CM S_DT identifier S_LM ( sequence_actual_arg )? S_RM )* ; sequence_actual_arg : event_expression | sequence_expr ; boolean_abbrev : consecutive_repetition | non_consecutive_repetition | goto_repetition ; sequence_abbrev : consecutive_repetition ; consecutive_repetition : S_LK_AS const_or_range_expression S_RK | S_LK_AS_RK | S_LK_PL_RK ; non_consecutive_repetition : S_LK_EQ const_or_range_expression S_RK ; goto_repetition : S_LK_MI_RB const_or_range_expression S_RK ; const_or_range_expression : constant_expression | cycle_delay_const_range_expression ; cycle_delay_const_range_expression : constant_expression S_CO constant_expression | constant_expression S_CO S_DL ; expression_or_dist : expression ( K_dist S_LN dist_list S_RN )? ; assertion_variable_declaration : var_data_type list_of_variable_decl_assignments S_SC ; // A.2.11 Covergroup declarations covergroup_declaration : B_covergroup covergroup_identifier ( S_LM ( tf_port_list )? S_RM )? ( coverage_event )? S_SC ( coverage_spec_or_option )* B_endgroup ( S_CO covergroup_identifier )? ; coverage_spec_or_option : ( attribute_instance )* coverage_spec | ( attribute_instance )* coverage_option S_SC ; coverage_option : K_option.member_identifier S_EQ expression | K_type_option.member_identifier S_EQ constant_expression ; coverage_spec : cover_point | cover_cross ; coverage_event : clocking_event //[Mod] //| K_with B_function K_sample S_LM ( tf_port_list )? S_RM | K_with B_function function_identifier S_LM ( tf_port_list )? S_RM | S_AT_AT_LM block_event_expression S_RM ; block_event_expression : block_event_expression O_or block_event_expression | B_begin hierarchical_btf_identifier | B_end hierarchical_btf_identifier ; hierarchical_btf_identifier : hierarchical_tf_identifier | hierarchical_block_identifier | ( hierarchical_identifier S_DT | class_scope )? method_identifier ; cover_point : ( ( data_type_or_implicit )? cover_point_identifier S_CO )? K_coverpoint expression ( K_iff S_LM expression S_RM )? bins_or_empty ; bins_or_empty : S_LN ( attribute_instance )* ( bins_or_options S_SC )* S_RN | S_SC ; bins_or_options : coverage_option | ( K_wildcard )? bins_keyword bin_identifier ( S_LK ( covergroup_expression )? S_RK )? S_EQ S_LN covergroup_range_list S_RN ( K_with S_LM with_covergroup_expression S_RM )? ( K_iff S_LM expression S_RM )? | ( K_wildcard )? bins_keyword bin_identifier ( S_LK ( covergroup_expression )? S_RK )? S_EQ cover_point_identifier K_with S_LM with_covergroup_expression S_RM ( K_iff S_LM expression S_RM )? | ( K_wildcard )? bins_keyword bin_identifier ( S_LK ( covergroup_expression )? S_RK )? S_EQ set_covergroup_expression ( K_iff S_LM expression S_RM )? | ( K_wildcard )? bins_keyword bin_identifier ( S_LK S_RK )? S_EQ trans_list ( K_iff S_LM expression S_RM )? | bins_keyword bin_identifier ( S_LK ( covergroup_expression )? S_RK )? S_EQ K_default ( K_iff S_LM expression S_RM )? | bins_keyword bin_identifier S_EQ K_default B_sequence ( K_iff S_LM expression S_RM )? ; bins_keyword : K_bins | K_illegal_bins | K_ignore_bins ; trans_list : S_LM trans_set S_RM ( S_CM S_LM trans_set S_RM )* ; trans_set : trans_range_list ( S_EQ_RB trans_range_list )* ; trans_range_list : trans_item | trans_item S_LK_AS repeat_range S_RK | trans_item S_LK_MI_RB repeat_range S_RK | trans_item S_LK_EQ repeat_range S_RK ; trans_item : covergroup_range_list ; repeat_range : covergroup_expression | covergroup_expression S_CO covergroup_expression ; cover_cross : ( cross_identifier S_CO )? K_cross list_of_cross_items ( K_iff S_LM expression S_RM )? cross_body ; list_of_cross_items : cross_item S_CM cross_item ( S_CM cross_item )* ; cross_item : cover_point_identifier | variable_identifier ; cross_body : S_LN ( cross_body_item S_SC )* S_RN | S_SC ; cross_body_item : function_declaration | bins_selection_or_option S_SC ; bins_selection_or_option : ( attribute_instance )* coverage_option | ( attribute_instance )* bins_selection ; bins_selection : bins_keyword bin_identifier S_EQ select_expression ( K_iff S_LM expression S_RM )? ; select_expression : select_condition | S_EX select_condition | <assoc=right> select_expression S_AN_AN select_expression | <assoc=right> select_expression S_OR_OR select_expression | S_LM select_expression S_RM | <assoc=right> select_expression K_with S_LM with_covergroup_expression S_RM ( K_matches integer_covergroup_expression )? | cross_identifier | cross_set_expression ( K_matches integer_covergroup_expression )? ; select_condition : K_binsof S_LM bins_expression S_RM ( K_intersect S_LN covergroup_range_list S_RN )? ; bins_expression : variable_identifier | cover_point_identifier ( S_DT bin_identifier )? ; covergroup_range_list : covergroup_value_range ( S_CM covergroup_value_range )* ; covergroup_value_range : covergroup_expression | S_LK covergroup_expression S_CO covergroup_expression S_RK ; with_covergroup_expression : covergroup_expression ; set_covergroup_expression : covergroup_expression ; integer_covergroup_expression : covergroup_expression ; cross_set_expression : covergroup_expression ; covergroup_expression : expression ; // A.2.12 Let declarations let_declaration : K_let let_identifier ( S_LM ( let_port_list )? S_RM )? S_EQ expression S_SC ; let_identifier : identifier ; let_port_list : let_port_item ( S_CM let_port_item )* ; let_port_item : ( attribute_instance )* let_formal_type formal_port_identifier ( variable_dimension )* ( S_EQ expression )? ; let_formal_type : data_type_or_implicit | K_untyped ; let_expression : ( package_scope )? let_identifier ( S_LM ( let_list_of_arguments )? S_RM )? ; let_list_of_arguments : ( let_actual_arg )? ( S_CM ( let_actual_arg )? )* ( S_CM S_DT identifier S_LM ( let_actual_arg )? S_RM )* | S_DT identifier S_LM ( let_actual_arg )? S_RM ( S_CM S_DT identifier S_LM ( let_actual_arg )? S_RM )* ; let_actual_arg : expression ; // A.3 Primitive instances // A.3.1 Primitive instantiation and instances gate_instantiation : cmos_switchtype ( delay3 )? cmos_switch_instance ( S_CM cmos_switch_instance )* S_SC | enable_gatetype ( drive_strength )? ( delay3 )? enable_gate_instance ( S_CM enable_gate_instance )* S_SC | mos_switchtype ( delay3 )? mos_switch_instance ( S_CM mos_switch_instance )* S_SC | n_input_gatetype ( drive_strength )? ( delay2 )? n_input_gate_instance ( S_CM n_input_gate_instance )* S_SC | n_output_gatetype ( drive_strength )? ( delay2 )? n_output_gate_instance ( S_CM n_output_gate_instance )* S_SC | pass_en_switchtype ( delay2 )? pass_enable_switch_instance ( S_CM pass_enable_switch_instance )* S_SC | pass_switchtype pass_switch_instance ( S_CM pass_switch_instance )* S_SC | O_pulldown ( pulldown_strength )? pull_gate_instance ( S_CM pull_gate_instance )* S_SC | O_pullup ( pullup_strength )? pull_gate_instance ( S_CM pull_gate_instance )* S_SC ; cmos_switch_instance : ( name_of_instance )? S_LM output_terminal S_CM input_terminal S_CM ncontrol_terminal S_CM pcontrol_terminal S_RM ; enable_gate_instance : ( name_of_instance )? S_LM output_terminal S_CM input_terminal S_CM enable_terminal S_RM ; mos_switch_instance : ( name_of_instance )? S_LM output_terminal S_CM input_terminal S_CM enable_terminal S_RM ; n_input_gate_instance : ( name_of_instance )? S_LM output_terminal S_CM input_terminal ( S_CM input_terminal )* S_RM ; n_output_gate_instance : ( name_of_instance )? S_LM output_terminal ( S_CM output_terminal )* S_CM input_terminal S_RM ; pass_switch_instance : ( name_of_instance )? S_LM inout_terminal S_CM inout_terminal S_RM ; pass_enable_switch_instance : ( name_of_instance )? S_LM inout_terminal S_CM inout_terminal S_CM enable_terminal S_RM ; pull_gate_instance : ( name_of_instance )? S_LM output_terminal S_RM ; // A.3.2 Primitive strengths pulldown_strength : S_LM strength0 S_CM strength1 S_RM | S_LM strength1 S_CM strength0 S_RM | S_LM strength0 S_RM ; pullup_strength : S_LM strength0 S_CM strength1 S_RM | S_LM strength1 S_CM strength0 S_RM | S_LM strength1 S_RM ; // A.3.3 Primitive terminals enable_terminal : expression ; inout_terminal : net_lvalue ; input_terminal : expression ; ncontrol_terminal : expression ; output_terminal : net_lvalue ; pcontrol_terminal : expression ; // A.3.4 Primitive gate and switch types cmos_switchtype : O_cmos | O_rcmos ; enable_gatetype : O_bufif0 | O_bufif1 | O_notif0 | O_notif1 ; mos_switchtype : O_nmos | O_pmos | O_rnmos | O_rpmos ; n_input_gatetype : O_and | O_nand | O_or | O_nor | O_xor | O_xnor ; n_output_gatetype : O_buf | O_not ; pass_en_switchtype : O_tranif0 | O_tranif1 | O_rtranif1 | O_rtranif0 ; pass_switchtype : O_tran | O_rtran ; // A.4 Instantiations // A.4.1 Instantiation // A.4.1.1 Module instantiation module_instantiation : module_identifier ( parameter_value_assignment )? hierarchical_instance ( S_CM hierarchical_instance )* S_SC ; parameter_value_assignment : S_SH S_LM ( list_of_parameter_assignments )? S_RM ; list_of_parameter_assignments : ordered_parameter_assignment ( S_CM ordered_parameter_assignment )* | named_parameter_assignment ( S_CM named_parameter_assignment )* ; ordered_parameter_assignment : param_expression ; named_parameter_assignment : S_DT parameter_identifier S_LM ( param_expression )? S_RM ; hierarchical_instance : name_of_instance S_LM ( list_of_port_connections )? S_RM ; name_of_instance : instance_identifier ( unpacked_dimension )* ; list_of_port_connections : ordered_port_connection ( S_CM ordered_port_connection )* | named_port_connection ( S_CM named_port_connection )* ; ordered_port_connection : ( attribute_instance )* ( expression )? ; named_port_connection : ( attribute_instance )* S_DT port_identifier ( S_LM ( expression )? S_RM )? | ( attribute_instance )* S_DT_AS ; // A.4.1.2 Interface instantiation interface_instantiation : interface_identifier ( parameter_value_assignment )? hierarchical_instance ( S_CM hierarchical_instance )* S_SC ; // A.4.1.3 Program instantiation program_instantiation : program_identifier ( parameter_value_assignment )? hierarchical_instance ( S_CM hierarchical_instance )* S_SC ; // A.4.1.4 Checker instantiation checker_instantiation : ps_checker_identifier name_of_instance S_LM ( list_of_checker_port_connections )? S_RM S_SC ; list_of_checker_port_connections : ordered_checker_port_connection ( S_CM ordered_checker_port_connection )* | named_checker_port_connection ( S_CM named_checker_port_connection )* ; ordered_checker_port_connection : ( attribute_instance )* ( property_actual_arg )? ; named_checker_port_connection : ( attribute_instance )* S_DT formal_port_identifier ( S_LM ( property_actual_arg )? S_RM )? | ( attribute_instance )* S_DT_AS ; // A.4.2 Generated instantiation generate_region : B_generate ( generate_item )* B_endgenerate ; loop_generate_construct : K_for S_LM genvar_initialization S_SC genvar_expression S_SC genvar_iteration S_RM generate_block ; genvar_initialization : ( T_genvar )? genvar_identifier S_EQ constant_expression ; genvar_iteration : genvar_identifier assignment_operator genvar_expression | inc_or_dec_operator genvar_identifier | genvar_identifier inc_or_dec_operator ; conditional_generate_construct : if_generate_construct | case_generate_construct ; if_generate_construct : K_if S_LM constant_expression S_RM generate_block ( K_else generate_block )? ; case_generate_construct : B_case S_LM constant_expression S_RM case_generate_item ( case_generate_item )* B_endcase ; case_generate_item : constant_expression ( S_CM constant_expression )* S_CO generate_block | K_default ( S_CO )? generate_block ; generate_block : generate_item | ( generate_block_identifier S_CO )? B_begin ( S_CO generate_block_identifier )? ( generate_item )* B_end ( S_CO generate_block_identifier )? ; generate_item : module_or_generate_item | interface_or_generate_item | checker_or_generate_item ; // A.5 UDP declaration and instantiation // A.5.1 UDP declaration udp_nonansi_declaration : ( attribute_instance )* B_primitive udp_identifier S_LM udp_port_list S_RM S_SC ; udp_ansi_declaration : ( attribute_instance )* B_primitive udp_identifier S_LM udp_declaration_port_list S_RM S_SC ; udp_declaration : udp_nonansi_declaration udp_port_declaration ( udp_port_declaration )* udp_body B_endprimitive ( S_CO udp_identifier )? | udp_ansi_declaration udp_body B_endprimitive ( S_CO udp_identifier )? | K_extern udp_nonansi_declaration | K_extern udp_ansi_declaration | ( attribute_instance )* B_primitive udp_identifier S_LM S_DT_AS S_RM S_SC ( udp_port_declaration )* udp_body B_endprimitive ( S_CO udp_identifier )? ; // A.5.2 UDP ports udp_port_list : output_port_identifier S_CM input_port_identifier ( S_CM input_port_identifier )* ; udp_declaration_port_list : udp_output_declaration S_CM udp_input_declaration ( S_CM udp_input_declaration )* ; udp_port_declaration : udp_output_declaration S_SC | udp_input_declaration S_SC | udp_reg_declaration S_SC ; udp_output_declaration : ( attribute_instance )* T_output port_identifier | ( attribute_instance )* T_output T_reg port_identifier ( S_EQ constant_expression )? ; udp_input_declaration : ( attribute_instance )* T_input list_of_udp_port_identifiers ; udp_reg_declaration : ( attribute_instance )* T_reg variable_identifier ; // A.5.3 UDP body udp_body : combinational_body | sequential_body ; combinational_body : B_table combinational_entry ( combinational_entry )* B_endtable ; //[Mod] combinational_entry : level_input_list S_CO_EDGE S_Level S_SC_EDGE ; sequential_body : ( udp_initial_statement )? B_table sequential_entry ( sequential_entry )* B_endtable ; //[Mod] udp_initial_statement : K_initial output_port_identifier S_EQ scalar_number S_SC ; sequential_entry : seq_input_list S_CO_EDGE current_state S_CO_EDGE next_state S_SC_EDGE ; seq_input_list : level_input_list | edge_input_list ; level_input_list : S_Level ( S_Level )* ; edge_input_list : ( S_Level )* edge_indicator ( S_Level )* ; edge_indicator : S_LM_EDGE S_Level S_Level S_RM_EDGE | S_Edge ; current_state : S_Level ; //[Mod] next_state : S_Level | S_MI_EDGE ; // A.5.4 UDP instantiation udp_instantiation : udp_identifier ( drive_strength )? ( delay2 )? udp_instance ( S_CM udp_instance )* S_SC ; udp_instance : ( name_of_instance )? S_LM output_terminal S_CM input_terminal ( S_CM input_terminal )* S_RM ; // A.6 Behavioral statements // A.6.1 Continuous assignment and net alias statements continuous_assign : K_assign ( drive_strength )? ( delay3 )? list_of_net_assignments S_SC | K_assign ( delay_control )? list_of_variable_assignments S_SC ; list_of_net_assignments : net_assignment ( S_CM net_assignment )* ; list_of_variable_assignments : variable_assignment ( S_CM variable_assignment )* ; net_alias : K_alias net_lvalue S_EQ net_lvalue ( S_EQ net_lvalue )* S_SC ; net_assignment : net_lvalue S_EQ expression ; // A.6.2 Procedural blocks and assignments initial_construct : K_initial statement_or_null ; always_construct : always_keyword statement ; always_keyword : K_always | K_always_comb | K_always_latch | K_always_ff ; final_construct : T_final function_statement ; blocking_assignment : variable_lvalue S_EQ delay_or_event_control expression | nonrange_variable_lvalue S_EQ dynamic_array_new | ( implicit_class_handle S_DT | class_scope | package_scope )? hierarchical_variable_identifier select S_EQ class_new | operator_assignment ; operator_assignment : variable_lvalue assignment_operator expression ; assignment_operator : S_EQ | S_PL_EQ | S_MI_EQ | S_AS_EQ | S_DV_EQ | S_PE_EQ | S_AN_EQ | S_OR_EQ | S_XO_EQ | S_LB_LB_EQ | S_RB_RB_EQ | S_LB_LB_LB_EQ | S_RB_RB_RB_EQ ; nonblocking_assignment : variable_lvalue S_LB_EQ ( delay_or_event_control )? expression ; procedural_continuous_assignment : K_assign variable_assignment | K_deassign variable_lvalue | K_force variable_assignment | K_force net_assignment | K_release variable_lvalue | K_release net_lvalue ; variable_assignment : variable_lvalue S_EQ expression ; // A.6.3 Parallel and sequential blocks action_block : statement_or_null | ( statement )? K_else statement_or_null ; seq_block : B_begin ( S_CO block_identifier )? ( block_item_declaration )* ( statement_or_null )* B_end ( S_CO block_identifier )? ; par_block : K_fork ( S_CO block_identifier )? ( block_item_declaration )* ( statement_or_null )* join_keyword ( S_CO block_identifier )? ; join_keyword : K_join | K_join_any | K_join_none ; // A.6.4 Statements statement_or_null : statement | ( attribute_instance )* S_SC ; statement : ( block_identifier S_CO )? ( attribute_instance )* statement_item ; statement_item : blocking_assignment S_SC | nonblocking_assignment S_SC | procedural_continuous_assignment S_SC | case_statement | conditional_statement | inc_or_dec_expression S_SC | subroutine_call_statement | disable_statement | event_trigger | loop_statement | jump_statement | par_block | procedural_timing_control_statement | seq_block | wait_statement | procedural_assertion_statement | clocking_drive S_SC | randsequence_statement | randcase_statement | expect_property_statement ; function_statement : statement ; function_statement_or_null : function_statement | ( attribute_instance )* S_SC ; variable_identifier_list : variable_identifier ( S_CM variable_identifier )* ; // A.6.5 Timing control statements procedural_timing_control_statement : procedural_timing_control statement_or_null ; delay_or_event_control : delay_control | event_control | K_repeat S_LM expression S_RM event_control ; delay_control : S_SH delay_value | S_SH S_LM mintypmax_expression S_RM ; event_control : S_AT hierarchical_event_identifier | S_AT S_LM event_expression S_RM | S_AT_AS | S_AT S_LM_AS_RM | S_AT ps_or_hierarchical_sequence_identifier ; event_expression : ( edge_identifier )? expression ( K_iff expression )? | sequence_instance ( K_iff expression )? | <assoc=right> event_expression O_or event_expression | <assoc=right> event_expression S_CM event_expression | S_LM event_expression S_RM ; procedural_timing_control : delay_control | event_control | cycle_delay ; jump_statement : K_return ( expression )? S_SC | K_break S_SC | K_continue S_SC ; wait_statement : K_wait S_LM expression S_RM statement_or_null | K_wait K_fork S_SC | K_wait_order S_LM hierarchical_identifier ( S_CM hierarchical_identifier )* S_RM action_block ; event_trigger : S_MI_RB hierarchical_event_identifier S_SC | S_MI_RB_RB ( delay_or_event_control )? hierarchical_event_identifier S_SC ; disable_statement : K_disable hierarchical_task_identifier S_SC | K_disable hierarchical_block_identifier S_SC | K_disable K_fork S_SC ; // A.6.6 Conditional statements conditional_statement : ( unique_priority )? K_if S_LM cond_predicate S_RM statement_or_null ( K_else K_if S_LM cond_predicate S_RM statement_or_null )* ( K_else statement_or_null )? ; unique_priority : K_unique | K_unique0 | K_priority ; cond_predicate : expression ( K_matches pattern )? ( S_AN_AN_AN expression ( K_matches pattern )? )* ; //[mod] //expression_or_cond_pattern // : expression // | cond_pattern // ; // //cond_pattern // : expression K_matches pattern // ; // A.6.7 Case statements case_statement : ( unique_priority )? case_keyword S_LM case_expression S_RM case_item ( case_item )* B_endcase | ( unique_priority )? case_keyword S_LM case_expression S_RM K_matches case_pattern_item ( case_pattern_item )* B_endcase | ( unique_priority )? B_case S_LM case_expression S_RM K_inside case_inside_item ( case_inside_item )* B_endcase ; case_keyword : B_case | B_casez | B_casex ; case_expression : expression ; case_item : case_item_expression ( S_CM case_item_expression )* S_CO statement_or_null | K_default ( S_CO )? statement_or_null ; case_pattern_item : pattern ( S_AN_AN_AN expression )? S_CO statement_or_null | K_default ( S_CO )? statement_or_null ; case_inside_item : open_range_list S_CO statement_or_null | K_default ( S_CO )? statement_or_null ; case_item_expression : expression ; randcase_statement : K_randcase randcase_item ( randcase_item )* B_endcase ; randcase_item : expression S_CO statement_or_null ; open_range_list : open_value_range ( S_CM open_value_range )* ; open_value_range : value_range ; // A.6.7.1 Patterns pattern : S_DT variable_identifier | S_DT_AS | constant_expression | T_tagged member_identifier ( pattern )? | S_SQ_LN pattern ( S_CM pattern )* S_RN | S_SQ_LN member_identifier S_CO pattern ( S_CM member_identifier S_CO pattern )* S_RN ; assignment_pattern : S_SQ_LN expression ( S_CM expression )* S_RN | S_SQ_LN structure_pattern_key S_CO expression ( S_CM structure_pattern_key S_CO expression )* S_RN | S_SQ_LN array_pattern_key S_CO expression ( S_CM array_pattern_key S_CO expression )* S_RN | S_SQ_LN constant_expression S_LN expression ( S_CM expression )* S_RN S_RN ; structure_pattern_key : member_identifier | assignment_pattern_key ; array_pattern_key : constant_expression | assignment_pattern_key ; assignment_pattern_key : simple_type | K_default ; assignment_pattern_expression : ( assignment_pattern_expression_type )? assignment_pattern ; assignment_pattern_expression_type : ps_type_identifier | ps_parameter_identifier | integer_atom_type | type_reference ; constant_assignment_pattern_expression : assignment_pattern_expression ; assignment_pattern_net_lvalue : S_SQ_LN net_lvalue ( S_CM net_lvalue )* S_RN ; assignment_pattern_variable_lvalue : S_SQ_LN variable_lvalue ( S_CM variable_lvalue )* S_RN ; // A.6.8 Looping statements loop_statement : K_forever statement_or_null | K_repeat S_LM expression S_RM statement_or_null | K_while S_LM expression S_RM statement_or_null | K_for S_LM ( for_initialization )? S_SC ( expression )? S_SC ( for_step )? S_RM statement_or_null | K_do statement_or_null K_while S_LM expression S_RM S_SC | K_foreach S_LM ps_or_hierarchical_array_identifier S_LK loop_variables S_RK S_RM statement ; for_initialization : list_of_variable_assignments | for_variable_declaration ( S_CM for_variable_declaration )* ; for_variable_declaration : ( T_var )? data_type variable_identifier S_EQ expression ( S_CM variable_identifier S_EQ expression )* ; for_step : for_step_assignment ( S_CM for_step_assignment )* ; for_step_assignment : operator_assignment | inc_or_dec_expression | function_subroutine_call ; loop_variables : ( index_variable_identifier )? ( S_CM ( index_variable_identifier )? )* ; // A.6.9 Subroutine call statements subroutine_call_statement : subroutine_call S_SC | T_void S_SQ S_LM function_subroutine_call S_RM S_SC ; // A.6.10 Assertion statements assertion_item : concurrent_assertion_item | deferred_immediate_assertion_item ; deferred_immediate_assertion_item : ( block_identifier S_CO )? deferred_immediate_assertion_statement ; procedural_assertion_statement : concurrent_assertion_statement | immediate_assertion_statement | checker_instantiation ; immediate_assertion_statement : simple_immediate_assertion_statement | deferred_immediate_assertion_statement ; simple_immediate_assertion_statement : simple_immediate_assert_statement | simple_immediate_assume_statement | simple_immediate_cover_statement ; simple_immediate_assert_statement : K_assert S_LM expression S_RM action_block ; simple_immediate_assume_statement : K_assume S_LM expression S_RM action_block ; simple_immediate_cover_statement : K_cover S_LM expression S_RM statement_or_null ; deferred_immediate_assertion_statement : deferred_immediate_assert_statement | deferred_immediate_assume_statement | deferred_immediate_cover_statement ; deferred_immediate_assert_statement : K_assert S_SH_0 S_LM expression S_RM action_block | K_assert T_final S_LM expression S_RM action_block ; deferred_immediate_assume_statement : K_assume S_SH_0 S_LM expression S_RM action_block | K_assume T_final S_LM expression S_RM action_block ; deferred_immediate_cover_statement : K_cover S_SH_0 S_LM expression S_RM statement_or_null | K_cover T_final S_LM expression S_RM statement_or_null ; // A.6.11 Clocking block clocking_declaration : ( K_default )? B_clocking ( clocking_identifier )? clocking_event S_SC ( clocking_item )* B_endclocking ( S_CO clocking_identifier )? | K_global B_clocking ( clocking_identifier )? clocking_event S_SC B_endclocking ( S_CO clocking_identifier )? ; clocking_event : S_AT identifier | S_AT S_LM event_expression S_RM ; clocking_item : K_default default_skew S_SC | clocking_direction list_of_clocking_decl_assign S_SC | ( attribute_instance )* assertion_item_declaration ; default_skew : T_input clocking_skew | T_output clocking_skew | T_input clocking_skew T_output clocking_skew ; clocking_direction : T_input ( clocking_skew )? | T_output ( clocking_skew )? | T_input ( clocking_skew )? T_output ( clocking_skew )? | T_inout ; list_of_clocking_decl_assign : clocking_decl_assign ( S_CM clocking_decl_assign )* ; clocking_decl_assign : signal_identifier ( S_EQ expression )? ; clocking_skew : edge_identifier ( delay_control )? | delay_control ; clocking_drive : clockvar_expression S_LB_EQ ( cycle_delay )? expression ; cycle_delay : S_SH_SH integral_number | S_SH_SH identifier | S_SH_SH S_LM expression S_RM ; clockvar : hierarchical_identifier ; clockvar_expression : clockvar select ; // A.6.12 Randsequence randsequence_statement : K_randsequence S_LM ( production_identifier )? S_RM production ( production )* B_endsequence ; production : ( data_type_or_void )? production_identifier ( S_LM tf_port_list S_RM )? S_CO rs_rule ( S_OR rs_rule )* S_SC ; rs_rule : rs_production_list ( S_CO_EQ weight_specification ( rs_code_block )? )? ; rs_production_list : rs_prod ( rs_prod )* | K_rand K_join ( S_LM expression S_RM )? production_item production_item ( production_item )* ; weight_specification : integral_number | ps_identifier | S_LM expression S_RM ; rs_code_block : S_LN ( data_declaration )* ( statement_or_null )* S_RN ; rs_prod : production_item | rs_code_block | rs_if_else | rs_repeat | rs_case ; production_item : production_identifier ( S_LM list_of_arguments S_RM )? ; rs_if_else : K_if S_LM expression S_RM production_item ( K_else production_item )? ; rs_repeat : K_repeat S_LM expression S_RM production_item ; rs_case : B_case S_LM case_expression S_RM rs_case_item ( rs_case_item )* B_endcase ; rs_case_item : case_item_expression ( S_CM case_item_expression )* S_CO production_item S_SC | K_default ( S_CO )? production_item S_SC ; // A.7 Specify section // A.7.1 Specify block declaration specify_block : B_specify ( specify_item )* B_endspecify ; specify_item : specparam_declaration | pulsestyle_declaration | showcancelled_declaration | path_declaration | system_timing_check ; pulsestyle_declaration : K_pulsestyle_onevent list_of_path_outputs S_SC | K_pulsestyle_ondetect list_of_path_outputs S_SC ; showcancelled_declaration : K_showcancelled list_of_path_outputs S_SC | K_noshowcancelled list_of_path_outputs S_SC ; // A.7.2 Specify path declarations path_declaration : simple_path_declaration S_SC | edge_sensitive_path_declaration S_SC | state_dependent_path_declaration S_SC ; simple_path_declaration : parallel_path_description S_EQ path_delay_value | full_path_description S_EQ path_delay_value ; parallel_path_description : S_LM specify_input_terminal_descriptor ( polarity_operator )? S_EQ_RB specify_output_terminal_descriptor S_RM ; full_path_description : S_LM list_of_path_inputs ( polarity_operator )? S_AS_RB list_of_path_outputs S_RM ; list_of_path_inputs : specify_input_terminal_descriptor ( S_CM specify_input_terminal_descriptor )* ; list_of_path_outputs : specify_output_terminal_descriptor ( S_CM specify_output_terminal_descriptor )* ; // A.7.3 Specify block terminals specify_input_terminal_descriptor : input_identifier ( S_LK constant_range_expression S_RK )? ; specify_output_terminal_descriptor : output_identifier ( S_LK constant_range_expression S_RK )? ; input_identifier : input_port_identifier | inout_port_identifier | interface_identifier S_DT port_identifier ; output_identifier : output_port_identifier | inout_port_identifier | interface_identifier S_DT port_identifier ; // A.7.4 Specify path delays path_delay_value : list_of_path_delay_expressions | S_LM list_of_path_delay_expressions S_RM ; list_of_path_delay_expressions : t_path_delay_expression | trise_path_delay_expression S_CM tfall_path_delay_expression | trise_path_delay_expression S_CM tfall_path_delay_expression S_CM tz_path_delay_expression | t01_path_delay_expression S_CM t10_path_delay_expression S_CM t0z_path_delay_expression S_CM tz1_path_delay_expression S_CM t1z_path_delay_expression S_CM tz0_path_delay_expression | t01_path_delay_expression S_CM t10_path_delay_expression S_CM t0z_path_delay_expression S_CM tz1_path_delay_expression S_CM t1z_path_delay_expression S_CM tz0_path_delay_expression S_CM t0x_path_delay_expression S_CM tx1_path_delay_expression S_CM t1x_path_delay_expression S_CM tx0_path_delay_expression S_CM txz_path_delay_expression S_CM tzx_path_delay_expression ; t_path_delay_expression : path_delay_expression ; trise_path_delay_expression : path_delay_expression ; tfall_path_delay_expression : path_delay_expression ; tz_path_delay_expression : path_delay_expression ; t01_path_delay_expression : path_delay_expression ; t10_path_delay_expression : path_delay_expression ; t0z_path_delay_expression : path_delay_expression ; tz1_path_delay_expression : path_delay_expression ; t1z_path_delay_expression : path_delay_expression ; tz0_path_delay_expression : path_delay_expression ; t0x_path_delay_expression : path_delay_expression ; tx1_path_delay_expression : path_delay_expression ; t1x_path_delay_expression : path_delay_expression ; tx0_path_delay_expression : path_delay_expression ; txz_path_delay_expression : path_delay_expression ; tzx_path_delay_expression : path_delay_expression ; path_delay_expression : constant_mintypmax_expression ; edge_sensitive_path_declaration : parallel_edge_sensitive_path_description S_EQ path_delay_value | full_edge_sensitive_path_description S_EQ path_delay_value ; parallel_edge_sensitive_path_description : S_LM ( edge_identifier )? specify_input_terminal_descriptor ( polarity_operator )? S_EQ_RB S_LM specify_output_terminal_descriptor ( polarity_operator )? S_CO data_source_expression S_RM S_RM ; full_edge_sensitive_path_description : S_LM ( edge_identifier )? list_of_path_inputs ( polarity_operator )? S_AS_RB S_LM list_of_path_outputs ( polarity_operator )? S_CO data_source_expression S_RM S_RM ; data_source_expression : expression ; edge_identifier : T_posedge | T_negedge | T_edge ; state_dependent_path_declaration : K_if S_LM module_path_expression S_RM simple_path_declaration | K_if S_LM module_path_expression S_RM edge_sensitive_path_declaration | K_ifnone simple_path_declaration ; polarity_operator : S_PL | S_MI ; // A.7.5 System timing checks // A.7.5.1 System timing check commands system_timing_check : dol_setup_timing_check | dol_hold_timing_check | dol_setuphold_timing_check | dol_recovery_timing_check | dol_removal_timing_check | dol_recrem_timing_check | dol_skew_timing_check | dol_timeskew_timing_check | dol_fullskew_timing_check | dol_period_timing_check | dol_width_timing_check | dol_nochange_timing_check ; dol_setup_timing_check : D_setup S_LM data_event S_CM reference_event S_CM timing_check_limit ( S_CM ( notifier )? )? S_RM S_SC ; dol_hold_timing_check : D_hold S_LM reference_event S_CM data_event S_CM timing_check_limit ( S_CM ( notifier )? )? S_RM S_SC ; dol_setuphold_timing_check : D_setuphold S_LM reference_event S_CM data_event S_CM timing_check_limit S_CM timing_check_limit ( S_CM ( notifier )? ( S_CM ( timestamp_condition )? ( S_CM ( timecheck_condition )? ( S_CM ( delayed_reference )? ( S_CM ( delayed_data )? )? )? )? )? )? S_RM S_SC ; dol_recovery_timing_check : D_recovery S_LM reference_event S_CM data_event S_CM timing_check_limit ( S_CM ( notifier )? )? S_RM S_SC ; dol_removal_timing_check : D_removal S_LM reference_event S_CM data_event S_CM timing_check_limit ( S_CM ( notifier )? )? S_RM S_SC ; dol_recrem_timing_check : D_recrem S_LM reference_event S_CM data_event S_CM timing_check_limit S_CM timing_check_limit ( S_CM ( notifier )? ( S_CM ( timestamp_condition )? ( S_CM ( timecheck_condition )? ( S_CM ( delayed_reference )? ( S_CM ( delayed_data )? )? )? )? )? )? S_RM S_SC ; dol_skew_timing_check : D_skew S_LM reference_event S_CM data_event S_CM timing_check_limit ( S_CM ( notifier )? )? S_RM S_SC ; dol_timeskew_timing_check : D_timeskew S_LM reference_event S_CM data_event S_CM timing_check_limit ( S_CM ( notifier )? ( S_CM ( event_based_flag )? ( S_CM ( remain_active_flag )? )? )? )? S_RM S_SC ; dol_fullskew_timing_check : D_fullskew S_LM reference_event S_CM data_event S_CM timing_check_limit S_CM timing_check_limit ( S_CM ( notifier )? ( S_CM ( event_based_flag )? ( S_CM ( remain_active_flag )? )? )? )? S_RM S_SC ; dol_period_timing_check : D_period S_LM controlled_reference_event S_CM timing_check_limit ( S_CM ( notifier )? )? S_RM S_SC ; dol_width_timing_check : D_width S_LM controlled_reference_event S_CM timing_check_limit S_CM threshold ( S_CM ( notifier )? )? S_RM S_SC ; dol_nochange_timing_check : D_nochange S_LM reference_event S_CM data_event S_CM start_edge_offset S_CM end_edge_offset ( S_CM ( notifier )? )? S_RM ; // A.7.5.2 System timing check command arguments timecheck_condition : mintypmax_expression ; controlled_reference_event : controlled_timing_check_event ; data_event : timing_check_event ; delayed_data : terminal_identifier | terminal_identifier S_LK constant_mintypmax_expression S_RK ; delayed_reference : terminal_identifier | terminal_identifier S_LK constant_mintypmax_expression S_RK ; end_edge_offset : mintypmax_expression ; event_based_flag : constant_expression ; notifier : variable_identifier ; reference_event : timing_check_event ; remain_active_flag : constant_mintypmax_expression ; timestamp_condition : mintypmax_expression ; start_edge_offset : mintypmax_expression ; threshold : constant_expression ; timing_check_limit : expression ; // A.7.5.3 System timing check event definitions timing_check_event : ( timing_check_event_control )? specify_terminal_descriptor ( S_AN_AN_AN timing_check_condition )? ; controlled_timing_check_event : timing_check_event_control specify_terminal_descriptor ( S_AN_AN_AN timing_check_condition )? ; timing_check_event_control : T_posedge | T_negedge | T_edge | edge_control_specifier ; specify_terminal_descriptor : specify_input_terminal_descriptor | specify_output_terminal_descriptor ; //[Mod] edge_control_specifier : T_edge edge_descriptor ( S_CM_EDGE edge_descriptor )* S_RK_EDGE ; edge_descriptor : S_ZO_OZ | S_Z_X S_Z_O | S_Z_O S_Z_X ; timing_check_condition : scalar_timing_check_condition | S_LM scalar_timing_check_condition S_RM ; scalar_timing_check_condition : expression | S_NE expression | expression S_EQ_EQ scalar_number | expression S_EQ_EQ_EQ scalar_number | expression S_EX_EQ scalar_number | expression S_EX_EQ_EQ scalar_number ; // A.8 Expressions // A.8.1 Concatenations concatenation : S_LN expression ( S_CM expression )* S_RN ; constant_concatenation : S_LN constant_expression ( S_CM constant_expression )* S_RN ; constant_multiple_concatenation : S_LN constant_expression constant_concatenation S_RN ; module_path_concatenation : S_LN module_path_expression ( S_CM module_path_expression )* S_RN ; module_path_multiple_concatenation : S_LN constant_expression module_path_concatenation S_RN ; multiple_concatenation : S_LN expression concatenation S_RN ; streaming_concatenation : S_LN stream_operator ( slice_size )? stream_concatenation S_RN ; stream_operator : S_RB_RB | S_LB_LB ; slice_size : simple_type | constant_expression ; stream_concatenation : S_LN stream_expression ( S_CM stream_expression )* S_RN ; stream_expression : expression ( K_with S_LK array_range_expression S_RK )? ; array_range_expression : expression | expression S_CO expression | expression S_PL_CO expression | expression S_MI_CO expression ; empty_unpacked_array_concatenation : S_LN S_RN ; // A.8.2 Subroutine calls constant_function_call : function_subroutine_call ; //[mod] constant_function_call_t : function_subroutine_call_t ; tf_call : ps_or_hierarchical_tf_identifier ( attribute_instance )* ( S_LM list_of_arguments S_RM )? ; system_tf_call : system_tf_identifier ( S_LM list_of_arguments S_RM )? | system_tf_identifier S_LM data_type ( S_CM expression )? S_RM | system_tf_identifier S_LM expression ( S_CM ( expression )? )* ( S_CM ( clocking_event )? )? S_RM ; subroutine_call : tf_call | system_tf_call | method_call | ( K_std_CO_CO )? randomize_call ; function_subroutine_call : subroutine_call ; //[mod] function_subroutine_call_t : tf_call | system_tf_call | ( K_std_CO_CO )? randomize_call ; list_of_arguments : ( expression )? ( S_CM ( expression )? )* ( S_CM S_DT identifier S_LM ( expression )? S_RM )* | S_DT identifier S_LM ( expression )? S_RM ( S_CM S_DT identifier S_LM ( expression )? S_RM )* ; method_call : method_call_root S_DT method_call_body ; method_call_body : method_identifier ( attribute_instance )* ( S_LM list_of_arguments S_RM )? | built_in_method_call ; built_in_method_call : array_manipulation_call | randomize_call ; array_manipulation_call : array_method_name ( attribute_instance )* ( S_LM list_of_arguments S_RM )? ( K_with S_LM expression S_RM )? ; randomize_call : K_randomize ( attribute_instance )* ( S_LM ( variable_identifier_list | T_null )? S_RM )? ( K_with ( S_LM ( identifier_list )? S_RM )? constraint_block )? ; method_call_root : primary | implicit_class_handle ; array_method_name : method_identifier | K_unique | O_and | O_or | O_xor ; // A.8.3 Expressions inc_or_dec_expression : inc_or_dec_operator ( attribute_instance )* variable_lvalue | variable_lvalue ( attribute_instance )* inc_or_dec_operator ; //[mod] //conditional_expression // : cond_predicate S_QU ( attribute_instance )* expression S_CO expression // ; constant_expression : constant_primary | unary_operator ( attribute_instance )* constant_primary | <assoc=right> constant_expression binary_operator ( attribute_instance )* constant_expression | <assoc=right> constant_expression S_QU ( attribute_instance )* constant_expression S_CO constant_expression ; constant_mintypmax_expression : constant_expression | constant_expression S_CO constant_expression S_CO constant_expression ; constant_param_expression : constant_mintypmax_expression | data_type | S_DL ; param_expression : mintypmax_expression | data_type | S_DL ; constant_range_expression : constant_expression | constant_part_select_range ; constant_part_select_range : constant_range | constant_indexed_range ; constant_range : constant_expression S_CO constant_expression ; constant_indexed_range : constant_expression S_PL_CO constant_expression | constant_expression S_MI_CO constant_expression ; //[mod] expression : primary | unary_operator ( attribute_instance )* primary | inc_or_dec_expression | S_LM operator_assignment S_RM | <assoc=right> expression binary_operator ( attribute_instance )* expression //| conditional_expression | <assoc=right> expression ( K_matches pattern )? ( S_AN_AN_AN expression ( K_matches pattern )? )* S_QU ( attribute_instance )* expression S_CO expression //| inside_expression | <assoc=right> expression K_inside S_LN open_range_list S_RN | tagged_union_expression ; tagged_union_expression : T_tagged member_identifier ( expression )? ; //[mod] //inside_expression // : expression K_inside S_LN open_range_list S_RN // ; value_range : expression | S_LK expression S_CO expression S_RK ; mintypmax_expression : expression | expression S_CO expression S_CO expression ; //[mod] //module_path_conditional_expression // : <assoc=right> module_path_expression S_QU ( attribute_instance )* module_path_expression S_CO module_path_expression // ; //[mod] module_path_expression : module_path_primary | unary_module_path_operator ( attribute_instance )* module_path_primary | <assoc=right> module_path_expression binary_module_path_operator ( attribute_instance )* module_path_expression //| module_path_conditional_expression | <assoc=right> module_path_expression S_QU ( attribute_instance )* module_path_expression S_CO module_path_expression ; module_path_mintypmax_expression : module_path_expression | module_path_expression S_CO module_path_expression S_CO module_path_expression ; part_select_range : constant_range | indexed_range ; indexed_range : expression S_PL_CO constant_expression | expression S_MI_CO constant_expression ; genvar_expression : constant_expression ; // A.8.4 Primaries //[mod] constant_primary : primary_literal | ps_parameter_identifier constant_select | specparam_identifier ( S_LK constant_range_expression S_RK )? | genvar_identifier | formal_port_identifier constant_select | ( package_scope | class_scope )? enum_identifier | constant_concatenation ( S_LK constant_range_expression S_RK )? | constant_multiple_concatenation ( S_LK constant_range_expression S_RK )? //| constant_function_call | constant_function_call_t | constant_let_expression | S_LM constant_mintypmax_expression S_RM //| constant_cast | <assoc=right> constant_primary S_SQ S_LM expression S_RM | casting_type_t S_SQ S_LM expression S_RM | constant_assignment_pattern_expression | type_reference | T_null ; module_path_primary : number | identifier | module_path_concatenation | module_path_multiple_concatenation | function_subroutine_call | S_LM module_path_mintypmax_expression S_RM ; //[mod] primary : primary_literal | ( class_qualifier | package_scope )? hierarchical_identifier select | empty_unpacked_array_concatenation | concatenation ( S_LK range_expression S_RK )? | multiple_concatenation ( S_LK range_expression S_RK )? //| function_subroutine_call | function_subroutine_call_t | <assoc=right> primary S_DT method_call_body | let_expression | S_LM mintypmax_expression S_RM | cast | assignment_pattern_expression | streaming_concatenation | sequence_method_call | K_this | S_DL | T_null ; class_qualifier : ( T_local S_CO_CO )? ( implicit_class_handle S_DT | class_scope )? ; range_expression : expression | part_select_range ; primary_literal : number | L_Time | N_Unbased_unsized | L_String ; implicit_class_handle : K_this | K_super | K_this S_DT K_super ; bit_select : ( S_LK expression S_RK )* ; select : ( ( S_DT member_identifier bit_select )* S_DT member_identifier )? bit_select ( S_LK part_select_range S_RK )? ; nonrange_select : ( ( S_DT member_identifier bit_select )* S_DT member_identifier )? bit_select ; constant_bit_select : ( S_LK constant_expression S_RK )* ; constant_select : ( ( S_DT member_identifier constant_bit_select )* S_DT member_identifier )? constant_bit_select ( S_LK constant_part_select_range S_RK )? ; //[mod] //constant_cast // : casting_type S_SQ S_LM constant_expression S_RM // ; constant_let_expression : let_expression ; cast : casting_type S_SQ S_LM expression S_RM ; // A.8.5 Expression left-side values net_lvalue : ps_or_hierarchical_net_identifier constant_select | S_LN net_lvalue ( S_CM net_lvalue )* S_RN | ( assignment_pattern_expression_type )? assignment_pattern_net_lvalue ; variable_lvalue : ( implicit_class_handle S_DT | package_scope )? hierarchical_variable_identifier select | S_LN variable_lvalue ( S_CM variable_lvalue )* S_RN | ( assignment_pattern_expression_type )? assignment_pattern_variable_lvalue | streaming_concatenation ; nonrange_variable_lvalue : ( implicit_class_handle S_DT | package_scope )? hierarchical_variable_identifier nonrange_select ; // A.8.6 Operators unary_operator : S_PL | S_MI | S_EX | S_NE | S_AN | S_NE_AN | S_OR | S_NE_OR | S_XO | S_NE_XO | S_XO_NE ; binary_operator : S_PL | S_MI | S_AS | S_DV | S_PE | S_EQ_EQ | S_EX_EQ | S_EQ_EQ_EQ | S_EX_EQ_EQ | S_EQ_EQ_QU | S_EX_EQ_QU | S_AN_AN | S_OR_OR | S_AS_AS | S_LB | S_LB_EQ | S_RB | S_RB_EQ | S_AN | S_OR | S_XO | S_XO_NE | S_NE_XO | S_RB_RB | S_LB_LB | S_RB_RB_RB | S_LB_LB_LB | S_MI_RB | S_LB_MI_RB ; inc_or_dec_operator : S_PL_PL | S_MI_MI ; unary_module_path_operator : S_EX | S_NE | S_AN | S_NE_AN | S_OR | S_NE_OR | S_XO | S_NE_XO | S_XO_NE ; binary_module_path_operator : S_EQ_EQ | S_EX_EQ | S_AN_AN | S_OR_OR | S_AN | S_OR | S_XO | S_XO_NE | S_NE_XO ; // A.8.7 Numbers number : integral_number | real_number ; integral_number : binary_number | hex_number | octal_number | decimal_number ; //[Mod] scalar_number : binary_number | N_Unsigned ; decimal_number : ( size )? N_Dec | N_Unsigned ; binary_number : ( size )? N_Bin ; octal_number : ( size )? N_Oct ; hex_number : ( size )? N_Hex ; size : N_Unsigned ; real_number : N_Fix | N_Exp ; // A.8.8 Strings // A.9 General // A.9.1 Attributes attribute_instance : S_LM_AS attr_spec ( S_CM attr_spec )* S_AS_RM ; attr_spec : attr_name ( S_EQ constant_expression )? ; attr_name : identifier ; // A.9.2 Comments // A.9.3 Identifiers array_identifier : identifier ; block_identifier : identifier ; bin_identifier : identifier ; c_identifier : I_Simple ; cell_identifier : identifier ; checker_identifier : identifier ; class_identifier : identifier ; class_variable_identifier : variable_identifier ; clocking_identifier : identifier ; config_identifier : identifier ; const_identifier : identifier ; constraint_identifier : identifier ; covergroup_identifier : identifier ; covergroup_variable_identifier : variable_identifier ; cover_point_identifier : identifier ; cross_identifier : identifier ; dynamic_array_variable_identifier : variable_identifier ; enum_identifier : identifier ; formal_identifier : identifier ; formal_port_identifier : identifier ; function_identifier : identifier ; generate_block_identifier : identifier ; genvar_identifier : identifier ; hierarchical_array_identifier : hierarchical_identifier ; hierarchical_block_identifier : hierarchical_identifier ; hierarchical_event_identifier : hierarchical_identifier ; hierarchical_identifier : ( D_root S_DT )? ( identifier constant_bit_select S_DT )* identifier ; hierarchical_net_identifier : hierarchical_identifier ; hierarchical_parameter_identifier : hierarchical_identifier ; hierarchical_property_identifier : hierarchical_identifier ; hierarchical_sequence_identifier : hierarchical_identifier ; hierarchical_task_identifier : hierarchical_identifier ; hierarchical_tf_identifier : hierarchical_identifier ; hierarchical_variable_identifier : hierarchical_identifier ; identifier : I_Simple | I_Escaped ; index_variable_identifier : identifier ; interface_identifier : identifier ; interface_instance_identifier : identifier ; inout_port_identifier : identifier ; input_port_identifier : identifier ; instance_identifier : identifier ; library_identifier : identifier ; member_identifier : identifier ; method_identifier : identifier ; modport_identifier : identifier ; module_identifier : identifier ; net_identifier : identifier ; net_type_identifier : identifier ; output_port_identifier : identifier ; package_identifier : identifier ; package_scope : package_identifier S_CO_CO | D_unit S_CO_CO ; parameter_identifier : identifier ; port_identifier : identifier ; production_identifier : identifier ; program_identifier : identifier ; property_identifier : identifier ; ps_class_identifier : ( package_scope )? class_identifier ; ps_covergroup_identifier : ( package_scope )? covergroup_identifier ; ps_checker_identifier : ( package_scope )? checker_identifier ; ps_identifier : ( package_scope )? identifier ; ps_or_hierarchical_array_identifier : ( implicit_class_handle S_DT | class_scope | package_scope )? hierarchical_array_identifier ; ps_or_hierarchical_net_identifier : ( package_scope )? net_identifier | hierarchical_net_identifier ; ps_or_hierarchical_property_identifier : ( package_scope )? property_identifier | hierarchical_property_identifier ; ps_or_hierarchical_sequence_identifier : ( package_scope )? sequence_identifier | hierarchical_sequence_identifier ; ps_or_hierarchical_tf_identifier : ( package_scope )? tf_identifier | hierarchical_tf_identifier ; ps_parameter_identifier : ( package_scope | class_scope )? parameter_identifier | ( generate_block_identifier ( S_LK constant_expression S_RK )? S_DT )* parameter_identifier ; ps_type_identifier : ( K_local_CO_CO| package_scope | class_scope )? type_identifier ; sequence_identifier : identifier ; signal_identifier : identifier ; specparam_identifier : identifier ; system_tf_identifier : I_System_tf ; task_identifier : identifier ; tf_identifier : identifier ; terminal_identifier : identifier ; topmodule_identifier : identifier ; type_identifier : identifier ; udp_identifier : identifier ; variable_identifier : identifier ;
libsrc/target/altair8800/stdio/getk.asm
ahjelm/z88dk
640
80606
<gh_stars>100-1000 SECTION code_clib PUBLIC getk PUBLIC _getk EXTERN fgetc_cons getk: _getk: ld hl,0 in a,(0) and 1 ret nz in a,(1) and 127 ld l,a ret
pkgs/tools/yasm/src/modules/arch/x86/tests/pushf.asm
manggoguy/parsec-modified
2,151
99443
<gh_stars>1000+ [bits 16] pushf pushfw pushfd ;pushfq popf popfw popfd ;popfq [bits 32] pushf pushfw pushfd ;pushfq popf popfw popfd ;popfq [bits 64] pushf pushfw ;pushfd pushfq popf popfw ;popfd popfq
lib/target/srr/classic/sorcerer_crt0.asm
dikdom/z88dk
1
83240
<filename>lib/target/srr/classic/sorcerer_crt0.asm ; ; Startup for Sorcerer Exidy ; ; $Id: sorcerer_crt0.asm,v 1.15 2016-07-15 21:03:25 dom Exp $ MODULE sorcerer_crt0 defc crt0 = 1 INCLUDE "zcc_opt.def" EXTERN _main ;main() is always external to crt0 PUBLIC cleanup ;jp'd to by exit() PUBLIC l_dcal ;jp(hl) IF !DEFINED_CRT_ORG_CODE defc CRT_ORG_CODE = 100h ENDIF defc CONSOLE_COLUMNS = 64 defc CONSOLE_ROWS = 30 defc TAR__fputc_cons_generic = 1 defc TAR__clib_exit_stack_size = 32 defc TAR__register_sp = -1 defc __CPU_CLOCK = 2106000 INCLUDE "crt/classic/crt_rules.inc" org CRT_ORG_CODE ;---------------------- ; Execution starts here ;---------------------- start: ld (__restore_sp_onexit+1),sp ;Save entry stack INCLUDE "crt/classic/crt_init_sp.asm" INCLUDE "crt/classic/crt_init_atexit.asm" call crt0_init_bss ld (exitsp),sp IF DEFINED_USING_amalloc INCLUDE "crt/classic/crt_init_amalloc.asm" ENDIF call _main ;Call user code cleanup: push hl ;Save return value call crt0_exit pop bc ;Get exit() value into bc __restore_sp_onexit: ld sp,0 ;Pick up entry sp jp $e003 ; Monitor warm start l_dcal: jp (hl) ;Used for call by function ptr end: defb 0 ; null file name INCLUDE "crt/classic/crt_runtime_selection.asm" INCLUDE "crt/classic/crt_section.asm" SECTION code_crt_init ld hl,$F080 ld (base_graphics),hl
runtime/ravenscar-sfp-stm32f427/math/s-gearop.ads
TUM-EI-RCS/StratoX
12
67
<reponame>TUM-EI-RCS/StratoX<filename>runtime/ravenscar-sfp-stm32f427/math/s-gearop.ads ------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- S Y S T E M . G E N E R I C _ A R R A Y _ O P E R A T I O N S -- -- -- -- S p e c -- -- -- -- Copyright (C) 2006-2016, Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 3, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. -- -- -- -- -- -- -- -- -- -- -- -- You should have received a copy of the GNU General Public License and -- -- a copy of the GCC Runtime Library Exception along with this program; -- -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see -- -- <http://www.gnu.org/licenses/>. -- -- -- -- GNAT was originally developed by the GNAT team at New York University. -- -- Extensive contributions were provided by Ada Core Technologies Inc. -- -- -- ------------------------------------------------------------------------------ package System.Generic_Array_Operations with SPARK_Mode is pragma Pure (Generic_Array_Operations); --------------------- -- Back_Substitute -- --------------------- generic type Scalar is private; type Matrix is array (Integer range <>, Integer range <>) of Scalar; with function "-" (Left, Right : Scalar) return Scalar is <>; with function "*" (Left, Right : Scalar) return Scalar is <>; with function "/" (Left, Right : Scalar) return Scalar is <>; with function Is_Non_Zero (X : Scalar) return Boolean is <>; procedure Back_Substitute (M, N : in out Matrix); -------------- -- Diagonal -- -------------- generic type Scalar is private; type Vector is array (Integer range <>) of Scalar; type Matrix is array (Integer range <>, Integer range <>) of Scalar; function Diagonal (A : Matrix) return Vector; ----------------------- -- Forward_Eliminate -- ----------------------- -- Use elementary row operations to put square matrix M in row echolon -- form. Identical row operations are performed on matrix N, must have the -- same number of rows as M. generic type Scalar is private; type Real is digits <>; type Matrix is array (Integer range <>, Integer range <>) of Scalar; with function "abs" (Right : Scalar) return Real'Base is <>; with function "-" (Left, Right : Scalar) return Scalar is <>; with function "*" (Left, Right : Scalar) return Scalar is <>; with function "/" (Left, Right : Scalar) return Scalar is <>; Zero : Scalar; One : Scalar; procedure Forward_Eliminate (M : in out Matrix; N : in out Matrix; Det : out Scalar); -------------------------- -- Square_Matrix_Length -- -------------------------- generic type Scalar is private; type Matrix is array (Integer range <>, Integer range <>) of Scalar; function Square_Matrix_Length (A : Matrix) return Natural; -- If A is non-square, raise Constraint_Error, else return its dimension ---------------------------------- -- Vector_Elementwise_Operation -- ---------------------------------- generic type X_Scalar is private; type Result_Scalar is private; type X_Vector is array (Integer range <>) of X_Scalar; type Result_Vector is array (Integer range <>) of Result_Scalar; with function Operation (X : X_Scalar) return Result_Scalar; function Vector_Elementwise_Operation (X : X_Vector) return Result_Vector; ---------------------------------- -- Matrix_Elementwise_Operation -- ---------------------------------- generic type X_Scalar is private; type Result_Scalar is private; type X_Matrix is array (Integer range <>, Integer range <>) of X_Scalar; type Result_Matrix is array (Integer range <>, Integer range <>) of Result_Scalar; with function Operation (X : X_Scalar) return Result_Scalar; function Matrix_Elementwise_Operation (X : X_Matrix) return Result_Matrix; ----------------------------------------- -- Vector_Vector_Elementwise_Operation -- ----------------------------------------- generic type Left_Scalar is private; type Right_Scalar is private; type Result_Scalar is private; type Left_Vector is array (Integer range <>) of Left_Scalar; type Right_Vector is array (Integer range <>) of Right_Scalar; type Result_Vector is array (Integer range <>) of Result_Scalar; with function Operation (Left : Left_Scalar; Right : Right_Scalar) return Result_Scalar; function Vector_Vector_Elementwise_Operation (Left : Left_Vector; Right : Right_Vector) return Result_Vector; ------------------------------------------------ -- Vector_Vector_Scalar_Elementwise_Operation -- ------------------------------------------------ generic type X_Scalar is private; type Y_Scalar is private; type Z_Scalar is private; type Result_Scalar is private; type X_Vector is array (Integer range <>) of X_Scalar; type Y_Vector is array (Integer range <>) of Y_Scalar; type Result_Vector is array (Integer range <>) of Result_Scalar; with function Operation (X : X_Scalar; Y : Y_Scalar; Z : Z_Scalar) return Result_Scalar; function Vector_Vector_Scalar_Elementwise_Operation (X : X_Vector; Y : Y_Vector; Z : Z_Scalar) return Result_Vector; ----------------------------------------- -- Matrix_Matrix_Elementwise_Operation -- ----------------------------------------- generic type Left_Scalar is private; type Right_Scalar is private; type Result_Scalar is private; type Left_Matrix is array (Integer range <>, Integer range <>) of Left_Scalar; type Right_Matrix is array (Integer range <>, Integer range <>) of Right_Scalar; type Result_Matrix is array (Integer range <>, Integer range <>) of Result_Scalar; with function Operation (Left : Left_Scalar; Right : Right_Scalar) return Result_Scalar; function Matrix_Matrix_Elementwise_Operation (Left : Left_Matrix; Right : Right_Matrix) return Result_Matrix; ------------------------------------------------ -- Matrix_Matrix_Scalar_Elementwise_Operation -- ------------------------------------------------ generic type X_Scalar is private; type Y_Scalar is private; type Z_Scalar is private; type Result_Scalar is private; type X_Matrix is array (Integer range <>, Integer range <>) of X_Scalar; type Y_Matrix is array (Integer range <>, Integer range <>) of Y_Scalar; type Result_Matrix is array (Integer range <>, Integer range <>) of Result_Scalar; with function Operation (X : X_Scalar; Y : Y_Scalar; Z : Z_Scalar) return Result_Scalar; function Matrix_Matrix_Scalar_Elementwise_Operation (X : X_Matrix; Y : Y_Matrix; Z : Z_Scalar) return Result_Matrix; ----------------------------------------- -- Vector_Scalar_Elementwise_Operation -- ----------------------------------------- generic type Left_Scalar is private; type Right_Scalar is private; type Result_Scalar is private; type Left_Vector is array (Integer range <>) of Left_Scalar; type Result_Vector is array (Integer range <>) of Result_Scalar; with function Operation (Left : Left_Scalar; Right : Right_Scalar) return Result_Scalar; function Vector_Scalar_Elementwise_Operation (Left : Left_Vector; Right : Right_Scalar) return Result_Vector; ----------------------------------------- -- Matrix_Scalar_Elementwise_Operation -- ----------------------------------------- generic type Left_Scalar is private; type Right_Scalar is private; type Result_Scalar is private; type Left_Matrix is array (Integer range <>, Integer range <>) of Left_Scalar; type Result_Matrix is array (Integer range <>, Integer range <>) of Result_Scalar; with function Operation (Left : Left_Scalar; Right : Right_Scalar) return Result_Scalar; function Matrix_Scalar_Elementwise_Operation (Left : Left_Matrix; Right : Right_Scalar) return Result_Matrix; ----------------------------------------- -- Scalar_Vector_Elementwise_Operation -- ----------------------------------------- generic type Left_Scalar is private; type Right_Scalar is private; type Result_Scalar is private; type Right_Vector is array (Integer range <>) of Right_Scalar; type Result_Vector is array (Integer range <>) of Result_Scalar; with function Operation (Left : Left_Scalar; Right : Right_Scalar) return Result_Scalar; function Scalar_Vector_Elementwise_Operation (Left : Left_Scalar; Right : Right_Vector) return Result_Vector; ----------------------------------------- -- Scalar_Matrix_Elementwise_Operation -- ----------------------------------------- generic type Left_Scalar is private; type Right_Scalar is private; type Result_Scalar is private; type Right_Matrix is array (Integer range <>, Integer range <>) of Right_Scalar; type Result_Matrix is array (Integer range <>, Integer range <>) of Result_Scalar; with function Operation (Left : Left_Scalar; Right : Right_Scalar) return Result_Scalar; function Scalar_Matrix_Elementwise_Operation (Left : Left_Scalar; Right : Right_Matrix) return Result_Matrix; ------------------- -- Inner_Product -- ------------------- generic type Left_Scalar is private; type Right_Scalar is private; type Result_Scalar is private; type Left_Vector is array (Integer range <>) of Left_Scalar; type Right_Vector is array (Integer range <>) of Right_Scalar; Zero : Result_Scalar; with function "*" (Left : Left_Scalar; Right : Right_Scalar) return Result_Scalar is <>; with function "+" (Left : Result_Scalar; Right : Result_Scalar) return Result_Scalar is <>; function Inner_Product (Left : Left_Vector; Right : Right_Vector) return Result_Scalar; ------------- -- L2_Norm -- ------------- generic type X_Scalar is private; type Result_Real is digits <>; type X_Vector is array (Integer range <>) of X_Scalar; with function "abs" (Right : X_Scalar) return Result_Real is <>; with function Sqrt (X : Result_Real'Base) return Result_Real'Base is <>; function L2_Norm (X : X_Vector) return Result_Real'Base; ------------------- -- Outer_Product -- ------------------- generic type Left_Scalar is private; type Right_Scalar is private; type Result_Scalar is private; type Left_Vector is array (Integer range <>) of Left_Scalar; type Right_Vector is array (Integer range <>) of Right_Scalar; type Matrix is array (Integer range <>, Integer range <>) of Result_Scalar; with function "*" (Left : Left_Scalar; Right : Right_Scalar) return Result_Scalar is <>; function Outer_Product (Left : Left_Vector; Right : Right_Vector) return Matrix; --------------------------- -- Matrix_Vector_Product -- --------------------------- generic type Left_Scalar is private; type Right_Scalar is private; type Result_Scalar is private; type Matrix is array (Integer range <>, Integer range <>) of Left_Scalar; type Right_Vector is array (Integer range <>) of Right_Scalar; type Result_Vector is array (Integer range <>) of Result_Scalar; Zero : Result_Scalar; with function "*" (Left : Left_Scalar; Right : Right_Scalar) return Result_Scalar is <>; with function "+" (Left : Result_Scalar; Right : Result_Scalar) return Result_Scalar is <>; function Matrix_Vector_Product (Left : Matrix; Right : Right_Vector) return Result_Vector; --------------------------- -- Vector_Matrix_Product -- --------------------------- generic type Left_Scalar is private; type Right_Scalar is private; type Result_Scalar is private; type Left_Vector is array (Integer range <>) of Left_Scalar; type Matrix is array (Integer range <>, Integer range <>) of Right_Scalar; type Result_Vector is array (Integer range <>) of Result_Scalar; Zero : Result_Scalar; with function "*" (Left : Left_Scalar; Right : Right_Scalar) return Result_Scalar is <>; with function "+" (Left : Result_Scalar; Right : Result_Scalar) return Result_Scalar is <>; function Vector_Matrix_Product (Left : Left_Vector; Right : Matrix) return Result_Vector; --------------------------- -- Matrix_Matrix_Product -- --------------------------- generic type Left_Scalar is private; type Right_Scalar is private; type Result_Scalar is private; type Left_Matrix is array (Integer range <>, Integer range <>) of Left_Scalar; type Right_Matrix is array (Integer range <>, Integer range <>) of Right_Scalar; type Result_Matrix is array (Integer range <>, Integer range <>) of Result_Scalar; Zero : Result_Scalar; with function "*" (Left : Left_Scalar; Right : Right_Scalar) return Result_Scalar is <>; with function "+" (Left : Result_Scalar; Right : Result_Scalar) return Result_Scalar is <>; function Matrix_Matrix_Product (Left : Left_Matrix; Right : Right_Matrix) return Result_Matrix; ---------------------------- -- Matrix_Vector_Solution -- ---------------------------- generic type Scalar is private; Zero : Scalar; type Vector is array (Integer range <>) of Scalar; type Matrix is array (Integer range <>, Integer range <>) of Scalar; with procedure Back_Substitute (M, N : in out Matrix) is <>; with procedure Forward_Eliminate (M : in out Matrix; N : in out Matrix; Det : out Scalar) is <>; function Matrix_Vector_Solution (A : Matrix; X : Vector) return Vector; ---------------------------- -- Matrix_Matrix_Solution -- ---------------------------- generic type Scalar is private; Zero : Scalar; type Matrix is array (Integer range <>, Integer range <>) of Scalar; with procedure Back_Substitute (M, N : in out Matrix) is <>; with procedure Forward_Eliminate (M : in out Matrix; N : in out Matrix; Det : out Scalar) is <>; function Matrix_Matrix_Solution (A : Matrix; X : Matrix) return Matrix; ---------- -- Sqrt -- ---------- generic type Real is digits <>; function Sqrt (X : Real'Base) return Real'Base; ----------------- -- Swap_Column -- ----------------- generic type Scalar is private; type Matrix is array (Integer range <>, Integer range <>) of Scalar; procedure Swap_Column (A : in out Matrix; Left, Right : Integer); --------------- -- Transpose -- --------------- generic type Scalar is private; type Matrix is array (Integer range <>, Integer range <>) of Scalar; procedure Transpose (A : Matrix; R : out Matrix); ------------------------------- -- Update_Vector_With_Vector -- ------------------------------- generic type X_Scalar is private; type Y_Scalar is private; type X_Vector is array (Integer range <>) of X_Scalar; type Y_Vector is array (Integer range <>) of Y_Scalar; with procedure Update (X : in out X_Scalar; Y : Y_Scalar); procedure Update_Vector_With_Vector (X : in out X_Vector; Y : Y_Vector); ------------------------------- -- Update_Matrix_With_Matrix -- ------------------------------- generic type X_Scalar is private; type Y_Scalar is private; type X_Matrix is array (Integer range <>, Integer range <>) of X_Scalar; type Y_Matrix is array (Integer range <>, Integer range <>) of Y_Scalar; with procedure Update (X : in out X_Scalar; Y : Y_Scalar); procedure Update_Matrix_With_Matrix (X : in out X_Matrix; Y : Y_Matrix); ----------------- -- Unit_Matrix -- ----------------- generic type Scalar is private; type Matrix is array (Integer range <>, Integer range <>) of Scalar; Zero : Scalar; One : Scalar; function Unit_Matrix (Order : Positive; First_1 : Integer := 1; First_2 : Integer := 1) return Matrix; ----------------- -- Unit_Vector -- ----------------- generic type Scalar is private; type Vector is array (Integer range <>) of Scalar; Zero : Scalar; One : Scalar; function Unit_Vector (Index : Integer; Order : Positive; First : Integer := 1) return Vector; end System.Generic_Array_Operations;
programs/oeis/188/A188043.asm
neoneye/loda
22
179221
; A188043: Positions of 1 in A188041; complement of A188042. ; 5,10,15,17,22,27,29,34,39,44,46,51,56,58,63,68,73,75,80,85,87,92,97,99,104,109,114,116,121,126,128,133,138,143,145,150,155,157,162,167,169,174,179,184,186,191,196,198,203,208,213,215,220,225,227,232,237,242,244,249,254,256,261,266,268,273,278,283,285,290,295,297,302,307,312,314,319,324,326,331,336,338,343,348,353,355,360,365,367,372,377,382,384,389,394,396,401,406,411,413 mov $2,$0 seq $0,80755 ; a(n) = ceiling(n*(1+1/sqrt(2))). mul $0,3 sub $0,$2 sub $0,1
TotalParserCombinators/Congruence/Sound.agda
nad/parser-combinators
1
10183
<filename>TotalParserCombinators/Congruence/Sound.agda ------------------------------------------------------------------------ -- The parser equivalence proof language is sound ------------------------------------------------------------------------ module TotalParserCombinators.Congruence.Sound where open import Category.Monad open import Codata.Musical.Notation open import Data.List open import Data.List.Membership.Propositional using (_∈_) import Data.List.Categorical as ListMonad open import Data.List.Relation.Binary.BagAndSetEquality renaming (_∼[_]_ to _List-∼[_]_) open import Data.Maybe hiding (_>>=_) open import Data.Product open import Function import Function.Related as Related open import Level open import Relation.Binary import Relation.Binary.PropositionalEquality as P open Related using (SK-sym) open Related.EquationalReasoning renaming (_∼⟨_⟩_ to _∼⟨_⟩′_; _∎ to _∎′) open RawMonad {f = zero} ListMonad.monad using () renaming (_⊛_ to _⊛′_; _>>=_ to _>>=′_) private module BSOrd {k} {A : Set} = Preorder ([ k ]-Order A) open import TotalParserCombinators.Derivative using (D) open import TotalParserCombinators.CoinductiveEquality as CE using (_∼[_]c_; _∷_) open import TotalParserCombinators.Congruence open import TotalParserCombinators.Laws open import TotalParserCombinators.Lib using (return⋆) open import TotalParserCombinators.Parser open import TotalParserCombinators.Semantics using (_∼[_]_) ------------------------------------------------------------------------ -- Some lemmas private ⊛flatten-lemma : ∀ {k} {R₁ R₂ : Set} {fs₁ fs₂ : List (R₁ → R₂)} (xs₁ xs₂ : Maybe (List R₁)) → fs₁ List-∼[ k ] fs₂ → flatten xs₁ List-∼[ k ] flatten xs₂ → fs₁ ⊛flatten xs₁ List-∼[ k ] fs₂ ⊛flatten xs₂ ⊛flatten-lemma {k} {fs₁ = fs₁} {fs₂} xs₁ xs₂ fs₁≈fs₂ = helper xs₁ xs₂ where helper : ∀ xs₁ xs₂ → flatten xs₁ List-∼[ k ] flatten xs₂ → fs₁ ⊛flatten xs₁ List-∼[ k ] fs₂ ⊛flatten xs₂ helper nothing nothing []∼[] = BSOrd.refl helper (just xs₁) (just xs₂) xs₁≈xs₂ = ⊛-cong fs₁≈fs₂ xs₁≈xs₂ helper nothing (just xs₂) []≈xs₂ {x} = x ∈ [] ↔⟨ BSOrd.reflexive $ P.sym $ ListMonad.Applicative.right-zero fs₂ ⟩ x ∈ (fs₂ ⊛′ []) ∼⟨ ⊛-cong (BSOrd.refl {x = fs₂}) []≈xs₂ ⟩′ x ∈ (fs₂ ⊛′ xs₂) ∎′ helper (just xs₁) nothing xs₁∼[] {x} = x ∈ (fs₁ ⊛′ xs₁) ∼⟨ ⊛-cong (BSOrd.refl {x = fs₁}) xs₁∼[] ⟩′ x ∈ (fs₁ ⊛′ []) ↔⟨ BSOrd.reflexive $ ListMonad.Applicative.right-zero fs₁ ⟩ x ∈ [] ∎′ []-⊛flatten : ∀ {A B : Set} (xs : Maybe (List A)) → [] ⊛flatten xs List-∼[ bag ] [] {A = B} []-⊛flatten nothing = BSOrd.refl []-⊛flatten (just xs) = BSOrd.refl bind-lemma : ∀ {k} {R₁ R₂ : Set} {xs₁ xs₂ : Maybe (List R₁)} (f₁ f₂ : Maybe (R₁ → List R₂)) → flatten xs₁ List-∼[ k ] flatten xs₂ → (∀ x → apply f₁ x List-∼[ k ] apply f₂ x) → bind xs₁ f₁ List-∼[ k ] bind xs₂ f₂ bind-lemma {k} {xs₁ = xs₁} {xs₂} f₁ f₂ xs₁≈xs₂ = helper f₁ f₂ where helper : ∀ f₁ f₂ → (∀ x → apply f₁ x List-∼[ k ] apply f₂ x) → bind xs₁ f₁ List-∼[ k ] bind xs₂ f₂ helper nothing nothing []∼[] = BSOrd.refl helper (just f₁) (just f₂) f₁≈f₂ = >>=-cong xs₁≈xs₂ f₁≈f₂ helper nothing (just f₂) []≈f₂ {x} = x ∈ [] ∼⟨ BSOrd.reflexive $ P.sym $ ListMonad.MonadProperties.right-zero (flatten xs₂) ⟩′ x ∈ (flatten xs₂ >>=′ λ _ → []) ∼⟨ >>=-cong (BSOrd.refl {x = flatten xs₂}) []≈f₂ ⟩′ x ∈ (flatten xs₂ >>=′ f₂) ∎′ helper (just f₁) nothing f₁∼[] {x} = x ∈ (flatten xs₁ >>=′ f₁) ∼⟨ >>=-cong (BSOrd.refl {x = flatten xs₁}) f₁∼[] ⟩′ x ∈ (flatten xs₁ >>=′ λ _ → []) ∼⟨ BSOrd.reflexive $ ListMonad.MonadProperties.right-zero (flatten xs₁) ⟩′ x ∈ [] ∎′ bind-nothing : ∀ {A B : Set} (f : Maybe (A → List B)) → bind nothing f List-∼[ bag ] [] bind-nothing nothing = BSOrd.refl bind-nothing (just f) = BSOrd.refl ------------------------------------------------------------------------ -- Equality is closed under initial-bag initial-bag-cong : ∀ {k Tok R xs₁ xs₂} {p₁ : Parser Tok R xs₁} {p₂ : Parser Tok R xs₂} → p₁ ∼[ k ]P p₂ → initial-bag p₁ List-∼[ k ] initial-bag p₂ initial-bag-cong (xs₁≈xs₂ ∷ Dp₁≈Dp₂) = xs₁≈xs₂ initial-bag-cong (p ∎) = BSOrd.refl initial-bag-cong (p₁ ∼⟨ p₁≈p₂ ⟩ p₂≈p₃) = _ ∼⟨ initial-bag-cong p₁≈p₂ ⟩′ initial-bag-cong p₂≈p₃ initial-bag-cong (p₁ ≅⟨ p₁≅p₂ ⟩ p₂≈p₃) = _ ↔⟨ initial-bag-cong p₁≅p₂ ⟩ initial-bag-cong p₂≈p₃ initial-bag-cong (sym p₁≈p₂) = SK-sym (initial-bag-cong p₁≈p₂) initial-bag-cong (return x₁≡x₂) = BSOrd.reflexive $ P.cong [_] x₁≡x₂ initial-bag-cong fail = BSOrd.refl initial-bag-cong token = BSOrd.refl initial-bag-cong (p₁≈p₃ ∣ p₂≈p₄) = ++-cong (initial-bag-cong p₁≈p₃) (initial-bag-cong p₂≈p₄) initial-bag-cong (f₁≗f₂ <$> p₁≈p₂) = map-cong f₁≗f₂ $ initial-bag-cong p₁≈p₂ initial-bag-cong (nonempty p₁≈p₂) = BSOrd.refl initial-bag-cong (cast {xs₁ = xs₁} {xs₂ = xs₂} {xs₁′ = xs₁′} {xs₂′ = xs₂′} {xs₁≈xs₁′ = xs₁≈xs₁′} {xs₂≈xs₂′ = xs₂≈xs₂′} p₁≈p₂) {x} = x ∈ xs₁′ ↔⟨ SK-sym xs₁≈xs₁′ ⟩ x ∈ xs₁ ∼⟨ initial-bag-cong p₁≈p₂ ⟩′ x ∈ xs₂ ↔⟨ xs₂≈xs₂′ ⟩ x ∈ xs₂′ ∎′ initial-bag-cong ([ nothing - _ ] p₁≈p₃ ⊛ p₂≈p₄) = BSOrd.refl initial-bag-cong ([ just (xs₁ , xs₂) - just _ ] p₁≈p₃ ⊛ p₂≈p₄) = ⊛flatten-lemma xs₁ xs₂ (initial-bag-cong p₁≈p₃) (initial-bag-cong p₂≈p₄) initial-bag-cong ([ just (xs₁ , xs₂) - nothing ] p₁≈p₃ ⊛ p₂≈p₄) {x} = x ∈ [] ⊛flatten xs₁ ↔⟨ []-⊛flatten xs₁ ⟩ x ∈ [] ↔⟨ SK-sym $ []-⊛flatten xs₂ ⟩ x ∈ [] ⊛flatten xs₂ ∎′ initial-bag-cong ([ nothing - _ ] p₁≈p₃ >>= p₂≈p₄) = BSOrd.refl initial-bag-cong ([ just (f₁ , f₂) - just _ ] p₁≈p₃ >>= p₂≈p₄) = bind-lemma f₁ f₂ (initial-bag-cong p₁≈p₃) (λ x → initial-bag-cong (p₂≈p₄ x)) initial-bag-cong ([ just (f₁ , f₂) - nothing ] p₁≈p₃ >>= p₂≈p₄) {x} = x ∈ bind nothing f₁ ↔⟨ bind-nothing f₁ ⟩ x ∈ [] ↔⟨ SK-sym $ bind-nothing f₂ ⟩ x ∈ bind nothing f₂ ∎′ ------------------------------------------------------------------------ -- Equality is closed under D D-cong : ∀ {k Tok R xs₁ xs₂} {p₁ : Parser Tok R xs₁} {p₂ : Parser Tok R xs₂} → p₁ ∼[ k ]P p₂ → ∀ {t} → D t p₁ ∼[ k ]P D t p₂ D-cong (xs₁≈xs₂ ∷ Dp₁≈Dp₂) {t} = ♭ (Dp₁≈Dp₂ t) D-cong (p ∎) {t} = D t p ∎ D-cong (p₁ ∼⟨ p₁≈p₂ ⟩ p₂≈p₃) {t} = D t p₁ ∼⟨ D-cong p₁≈p₂ ⟩ D-cong p₂≈p₃ D-cong (p₁ ≅⟨ p₁≅p₂ ⟩ p₂≈p₃) {t} = D t p₁ ≅⟨ D-cong p₁≅p₂ ⟩ D-cong p₂≈p₃ D-cong (sym p₁≈p₂) = _∼[_]P_.sym (D-cong p₁≈p₂) D-cong (return x₁≡x₂) = fail ∎ D-cong fail = fail ∎ D-cong token {t} = return t ∎ D-cong (p₁≈p₃ ∣ p₂≈p₄) = D-cong p₁≈p₃ ∣ D-cong p₂≈p₄ D-cong (f₁≗f₂ <$> p₁≈p₂) = f₁≗f₂ <$> D-cong p₁≈p₂ D-cong (nonempty p₁≈p₂) = D-cong p₁≈p₂ D-cong (cast p₁≈p₂) = D-cong p₁≈p₂ D-cong ([_-_]_⊛_ nothing nothing {p₁} {p₂} {p₃} {p₄} p₁≈p₃ p₂≈p₄) {t} = D t (p₁ ⊛ p₂) ∼⟨ [ nothing - just (○ , ○) ] ♯ D-cong (♭ p₁≈p₃) ⊛ ♭ p₂≈p₄ ⟩ D t (p₃ ⊛ p₄) ∎ D-cong ([_-_]_⊛_ nothing (just (fs₁ , fs₂)) {p₁} {p₂} {p₃} {p₄} p₁≈p₃ p₂≈p₄) {t} = D t (p₁ ⊛ p₂) ≅⟨ D.D-⊛ p₁ p₂ ⟩ D t (♭ p₁) ⊛ ♭? p₂ ∣ return⋆ (flatten fs₁) ⊛ D t (♭? p₂) ≅⟨ [ ○ - ◌ - ○ - ○ ] D t (♭ p₁) ∎ ⊛ (♭? p₂ ∎) ∣ (_ ∎) ⟩ ♯ D t (♭ p₁) ⊛ ♭? p₂ ∣ return⋆ (flatten fs₁) ⊛ D t (♭? p₂) ∼⟨ [ nothing - just (○ , ○) ] ♯ D-cong (♭ p₁≈p₃) ⊛ p₂≈p₄ ∣ [ just (○ , ○) - just (○ , ○) ] Return⋆.cong (initial-bag-cong (♭ p₁≈p₃)) ⊛ D-cong p₂≈p₄ ⟩ ♯ D t (♭ p₃) ⊛ ♭? p₄ ∣ return⋆ (flatten fs₂) ⊛ D t (♭? p₄) ≅⟨ [ ◌ - ○ - ○ - ○ ] D t (♭ p₃) ∎ ⊛ (♭? p₄ ∎) ∣ (_ ∎) ⟩ D t (♭ p₃) ⊛ ♭? p₄ ∣ return⋆ (flatten fs₂) ⊛ D t (♭? p₄) ≅⟨ _∼[_]P_.sym $ D.D-⊛ p₃ p₄ ⟩ D t (p₃ ⊛ p₄) ∎ D-cong ([_-_]_⊛_ (just _) nothing {p₁} {p₂} {p₃} {p₄} p₁≈p₃ p₂≈p₄) {t} = D t (p₁ ⊛ p₂) ≅⟨ D.D-⊛ p₁ p₂ ⟩ D t (♭? p₁) ⊛ ♭ p₂ ∣ return⋆ [] ⊛ D t (♭ p₂) ≅⟨ (D t (♭? p₁) ⊛ ♭ p₂ ∎) ∣ [ ○ - ○ - ○ - ◌ ] return⋆ [] ∎ ⊛ (D t (♭ p₂) ∎) ⟩ D t (♭? p₁) ⊛ ♭ p₂ ∣ return⋆ [] ⊛ ♯ D t (♭ p₂) ∼⟨ [ just (○ , ○) - just (○ , ○) ] D-cong p₁≈p₃ ⊛ ♭ p₂≈p₄ ∣ [ just (○ , ○) - nothing ] (return⋆ [] ∎) ⊛ ♯ D-cong (♭ p₂≈p₄) ⟩ D t (♭? p₃) ⊛ ♭ p₄ ∣ return⋆ [] ⊛ ♯ D t (♭ p₄) ≅⟨ (D t (♭? p₃) ⊛ ♭ p₄ ∎) ∣ [ ○ - ○ - ◌ - ○ ] return⋆ [] ∎ ⊛ (D t (♭ p₄) ∎) ⟩ D t (♭? p₃) ⊛ ♭ p₄ ∣ return⋆ [] ⊛ D t (♭ p₄) ≅⟨ _∼[_]P_.sym $ D.D-⊛ p₃ p₄ ⟩ D t (p₃ ⊛ p₄) ∎ D-cong ([_-_]_⊛_ (just _) (just (fs₁ , fs₂)) {p₁} {p₂} {p₃} {p₄} p₁≈p₃ p₂≈p₄) {t} = D t (p₁ ⊛ p₂) ≅⟨ D.D-⊛ p₁ p₂ ⟩ D t (♭? p₁) ⊛ ♭? p₂ ∣ return⋆ (flatten fs₁) ⊛ D t (♭? p₂) ∼⟨ [ just (○ , ○) - just (○ , ○) ] D-cong p₁≈p₃ ⊛ p₂≈p₄ ∣ [ just (○ , ○) - just (○ , ○) ] Return⋆.cong (initial-bag-cong p₁≈p₃) ⊛ D-cong p₂≈p₄ ⟩ D t (♭? p₃) ⊛ ♭? p₄ ∣ return⋆ (flatten fs₂) ⊛ D t (♭? p₄) ≅⟨ _∼[_]P_.sym $ D.D-⊛ p₃ p₄ ⟩ D t (p₃ ⊛ p₄) ∎ D-cong ([_-_]_>>=_ nothing nothing {p₁} {p₂} {p₃} {p₄} p₁≈p₃ p₂≈p₄) {t} = D t (p₁ >>= p₂) ∼⟨ [ nothing - just (○ , ○) ] ♯ D-cong (♭ p₁≈p₃) >>= (♭ ∘ p₂≈p₄) ⟩ D t (p₃ >>= p₄) ∎ D-cong ([_-_]_>>=_ nothing (just (xs₁ , xs₂)) {p₁} {p₂} {p₃} {p₄} p₁≈p₃ p₂≈p₄) {t} = D t (p₁ >>= p₂) ≅⟨ D.D->>= p₁ p₂ ⟩ D t (♭ p₁) >>= (♭? ∘ p₂) ∣ return⋆ (flatten xs₁) >>= (D t ∘ ♭? ∘ p₂) ≅⟨ [ ○ - ◌ - ○ - ○ ] D t (♭ p₁) ∎ >>= (λ x → ♭? (p₂ x) ∎) ∣ (_ ∎) ⟩ ♯ D t (♭ p₁) >>= (♭? ∘ p₂) ∣ return⋆ (flatten xs₁) >>= (D t ∘ ♭? ∘ p₂) ∼⟨ [ nothing - just (○ , ○) ] ♯ D-cong (♭ p₁≈p₃) >>= p₂≈p₄ ∣ [ just (○ , ○) - just (○ , ○) ] Return⋆.cong (initial-bag-cong (♭ p₁≈p₃)) >>= (λ x → D-cong (p₂≈p₄ x)) ⟩ ♯ D t (♭ p₃) >>= (♭? ∘ p₄) ∣ return⋆ (flatten xs₂) >>= (D t ∘ ♭? ∘ p₄) ≅⟨ [ ◌ - ○ - ○ - ○ ] D t (♭ p₃) ∎ >>= (λ x → ♭? (p₄ x) ∎) ∣ (_ ∎) ⟩ D t (♭ p₃) >>= (♭? ∘ p₄) ∣ return⋆ (flatten xs₂) >>= (D t ∘ ♭? ∘ p₄) ≅⟨ _∼[_]P_.sym $ D.D->>= p₃ p₄ ⟩ D t (p₃ >>= p₄) ∎ D-cong ([_-_]_>>=_ (just _) nothing {p₁} {p₂} {p₃} {p₄} p₁≈p₃ p₂≈p₄) {t} = D t (p₁ >>= p₂) ≅⟨ D.D->>= p₁ p₂ ⟩ D t (♭? p₁) >>= (♭ ∘ p₂) ∣ return⋆ [] >>= (D t ∘ ♭ ∘ p₂) ≅⟨ (D t (♭? p₁) >>= (♭ ∘ p₂) ∎) ∣ [ ○ - ○ - ○ - ◌ ] return⋆ [] ∎ >>= (λ x → D t (♭ (p₂ x)) ∎) ⟩ D t (♭? p₁) >>= (♭ ∘ p₂) ∣ return⋆ [] >>= (λ x → ♯ D t (♭ (p₂ x))) ∼⟨ [ just (○ , ○) - just (○ , ○) ] D-cong p₁≈p₃ >>= (♭ ∘ p₂≈p₄) ∣ [ just (○ , ○) - nothing ] (return⋆ [] ∎) >>= (λ x → ♯ D-cong (♭ (p₂≈p₄ x))) ⟩ D t (♭? p₃) >>= (♭ ∘ p₄) ∣ return⋆ [] >>= (λ x → ♯ D t (♭ (p₄ x))) ≅⟨ (D t (♭? p₃) >>= (♭ ∘ p₄) ∎) ∣ [ ○ - ○ - ◌ - ○ ] return⋆ [] ∎ >>= (λ x → D t (♭ (p₄ x)) ∎) ⟩ D t (♭? p₃) >>= (♭ ∘ p₄) ∣ return⋆ [] >>= (D t ∘ ♭ ∘ p₄) ≅⟨ _∼[_]P_.sym $ D.D->>= p₃ p₄ ⟩ D t (p₃ >>= p₄) ∎ D-cong ([_-_]_>>=_ (just _) (just (xs₁ , xs₂)) {p₁} {p₂} {p₃} {p₄} p₁≈p₃ p₂≈p₄) {t} = D t (p₁ >>= p₂) ≅⟨ D.D->>= p₁ p₂ ⟩ D t (♭? p₁) >>= (♭? ∘ p₂) ∣ return⋆ (flatten xs₁) >>= (D t ∘ ♭? ∘ p₂) ∼⟨ [ just (○ , ○) - just (○ , ○) ] D-cong p₁≈p₃ >>= p₂≈p₄ ∣ [ just (○ , ○) - just (○ , ○) ] Return⋆.cong (initial-bag-cong p₁≈p₃) >>= (λ x → D-cong (p₂≈p₄ x)) ⟩ D t (♭? p₃) >>= (♭? ∘ p₄) ∣ return⋆ (flatten xs₂) >>= (D t ∘ ♭? ∘ p₄) ≅⟨ _∼[_]P_.sym $ D.D->>= p₃ p₄ ⟩ D t (p₃ >>= p₄) ∎ ------------------------------------------------------------------------ -- Soundness sound : ∀ {k Tok R xs₁ xs₂} {p₁ : Parser Tok R xs₁} {p₂ : Parser Tok R xs₂} → p₁ ∼[ k ]P p₂ → p₁ ∼[ k ] p₂ sound = CE.sound ∘ sound′ where sound′ : ∀ {k Tok R xs₁ xs₂} {p₁ : Parser Tok R xs₁} {p₂ : Parser Tok R xs₂} → p₁ ∼[ k ]P p₂ → p₁ ∼[ k ]c p₂ sound′ p₁≈p₂ = initial-bag-cong p₁≈p₂ ∷ λ t → ♯ sound′ (D-cong p₁≈p₂)
tools-src/gnu/gcc/gcc/ada/lib-writ.ads
enfoTek/tomato.linksys.e2000.nvram-mod
80
8761
<filename>tools-src/gnu/gcc/gcc/ada/lib-writ.ads ------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- L I B . W R I T -- -- -- -- S p e c -- -- -- -- $Revision$ -- -- -- Copyright (C) 1992-2001 Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 2, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License -- -- for more details. You should have received a copy of the GNU General -- -- Public License distributed with GNAT; see file COPYING. If not, write -- -- to the Free Software Foundation, 59 Temple Place - Suite 330, Boston, -- -- MA 02111-1307, USA. -- -- -- -- GNAT was originally developed by the GNAT team at New York University. -- -- Extensive contributions were provided by Ada Core Technologies Inc. -- -- -- ------------------------------------------------------------------------------ -- This package contains the routines for writing the library information package Lib.Writ is ----------------------------------- -- Format of Library Information -- ----------------------------------- -- Note: the contents of the ali file are summarized in the GNAT -- user's guide, so if any non-trivial changes are made to this -- section, they should be reflected in the user's guide. -- This section describes the format of the library information that is -- associated with object files. The exact method of this association is -- potentially implementation dependent and is described and implemented -- in package From the point of view of the description here, all we -- need to know is that the information is represented as a string of -- characters that is somehow associated with an object file, and can be -- retrieved. If no library information exists for a given object file, -- then we take this as equivalent to the non-existence of the object -- file, as if source file has not been previously compiled. -- The library information is written as a series of lines of the form: -- Key_Character parameter parameter ... ------------------ -- Header Lines -- ------------------ -- The initial header lines in the file give information about the -- compilation environment, and identify other special information -- such as main program parameters. -- ---------------- -- -- V Version -- -- ---------------- -- V "xxxxxxxxxxxxxxxx" -- -- This line indicates the library output version, as defined in -- Gnatvsn. It ensures that separate object modules of a program are -- consistent. It has to be changed if anything changes which would -- affect successful binding of separately compiled modules. -- Examples of such changes are modifications in the format of the -- library info described in this package, or modifications to -- calling sequences, or to the way that data is represented. -- --------------------- -- -- M Main Program -- -- --------------------- -- M type [priority] [T=time-slice] W=? -- This line appears only if the main unit for this file is -- suitable for use as a main program. The parameters are: -- type -- P for a parameterless procedure -- F for a function returning a value of integral type -- (used for writing a main program returning an exit status) -- priority -- Present only if there was a valid pragma Priority in the -- corresponding unit to set the main task priority. It is -- an unsigned decimal integer. -- T=time-slice -- Present only if there was a valid pragma Time_Slice in the -- corresponding unit. It is an unsigned decimal integer in -- the range 0 .. 10**9 giving the time slice value in units -- of milliseconds. The actual significance of this parameter -- is target dependent. -- W=? -- This parameter indicates the wide character encoding -- method used when compiling the main program file. The ? -- character is the single character used in the -gnatW? -- switch. This is used to provide the default wide-character -- encoding for Wide_Text_IO files. -- ----------------- -- -- A Argument -- -- ----------------- -- A argument -- One of these lines appears for each of the arguments present -- in the call to the gnat1 program. This can be used if it is -- necessary to reconstruct this call (e.g. for fix and continue) -- ------------------- -- -- P Parameters -- -- ------------------- -- P <<parameters>> -- Indicates various information that applies to the compilation -- of the corresponding source unit. Parameters is a sequence of -- zero or more two letter codes that indicate configuration -- pragmas and other parameters that apply: -- -- Present if the unit uses tasking directly or indirectly and -- has one or more valid xxx_Policy pragmas that apply to the unit. -- The arguments are as follows: -- -- CE Compilation errors. If this is present it means that the -- ali file resulted from a compilation with the -gnatQ -- switch set, and illegalities were detected. The ali -- file contents may not be completely reliable, but the -- format will be correct and complete. Note that NO is -- always present if CE is present. -- -- FD Configuration pragmas apply to all the units in this -- file specifying a possibly non-standard floating point -- format (VAX float with Long_Float using D_Float) -- -- FG Configuration pragmas apply to all the units in this -- file specifying a possibly non-standard floating point -- format (VAX float with Long_Float using G_Float) -- -- FI Configuration pragmas apply to all the units in this -- file specifying a possibly non-standard floating point -- format (IEEE Float) -- -- Lx A valid Locking_Policy pragma applies to all the units -- in this file, where x is the first character (upper case) -- of the policy name (e.g. 'C' for Ceiling_Locking) -- -- NO No object. This flag indicates that the units in this -- file were not compiled to produce an object. This can -- occur as a result of the use of -gnatc, or if no object -- can be produced (e.g. when a package spec is compiled -- instead of the body, or a subunit on its own). -- -- NR No_Run_Time pragma in effect for all units in this file -- -- NS Normalize_Scalars pragma in effect for all units in -- this file -- -- Qx A valid Queueing_Policy pragma applies to all the units -- in this file, where x is the first character (upper case) -- of the policy name (e.g. 'P' for Priority_Queueing). -- -- Tx A valid Task_Dispatching_Policy pragma applies to all -- the units in this file, where x is the first character -- (upper case) of the corresponding policy name (e.g. 'F' -- for FIFO_Within_Priorities). -- -- UA Unreserve_All_Interrupts pragma was processed in one or -- more units in this file -- -- UX Generated code contains unit exception table pointer -- (i.e. it uses zero-cost exceptions, and there is at -- least one subprogram present). -- -- ZX Units in this file use zero-cost exceptions and have -- generated exception tables. If ZX is not present, the -- longjmp/setjmp exception scheme is in use. -- -- Note that language defined units never output policy (Lx,Tx,Qx) -- parameters. Language defined units must correctly handle all -- possible cases. These values are checked for consistency by the -- binder and then copied to the generated binder output file. -- --------------------- -- -- R Restrictions -- -- --------------------- -- R <<restriction-characters>> -- This line records information regarding restrictions. The -- parameter is a string of characters, one for each entry in -- Restrict.Partition_Restrictions, in order. There are three -- settings possible settings for each restriction: -- r Restricted. Unit was compiled under control of a pragma -- Restrictions for the corresponding restriction. In -- this case the unit certainly does not violate the -- Restriction, since this would have been detected by -- the compiler. -- n Not used. The unit was not compiled under control of a -- pragma Restrictions for the corresponding restriction, -- and does not make any use of the referenced feature. -- v Violated. The unit was not compiled uner control of a -- pragma Restrictions for the corresponding restriction, -- and it does indeed use the referenced feature. -- This information is used in the binder to check consistency, -- i.e. to detect cases where one unit has "r" and another unit -- has "v", which is not permitted, since these restrictions -- are partition-wide. ---------------------------- -- Compilation Unit Lines -- ---------------------------- -- Following these header lines, a set of information lines appears for -- each compilation unit that appears in the corresponding object file. -- In particular, when a package body or subprogram body is compiled, -- there will be two sets of information, one for the spec and one for -- the body. with the entry for the body appearing first. This is the -- only case in which a single ALI file contains more than one unit (in -- particular note that subunits do *not* count as compilation units for -- this purpose, and generate no library information, since they are -- inlined). -- -------------------- -- -- U Unit Header -- -- -------------------- -- The lines for each compilation unit have the following form. -- U unit-name source-name version <<attributes>> -- -- This line identifies the unit to which this section of the -- library information file applies. The first three parameters are -- the unit name in internal format, as described in package Uname, -- and the name of the source file containing the unit. -- -- Version is the version given as eight hexadecimal characters -- with upper case letters. This value is the exclusive or of the -- source checksums of the unit and all its semantically dependent -- units. -- -- The <<attributes>> are a series of two letter codes indicating -- information about the unit: -- -- DE Dynamic Elaboration. This unit was compiled with the -- dynamic elaboration model, as set by either the -gnatE -- switch or pragma Elaboration_Checks (Dynamic). -- -- EB Unit has pragma Elaborate_Body -- -- EE Elaboration entity is present which must be set true when -- the unit is elaborated. The name of the elaboration entity -- is formed from the unit name in the usual way. If EE is -- present, then this boolean must be set True as part of the -- elaboration processing routine generated by the binder. -- Note that EE can be set even if NE is set. This happens -- when the boolean is needed solely for checking for the -- case of access before elaboration. -- -- GE Unit is a generic declaration, or corresponding body -- -- IL Unit source uses a style with identifiers in all lower -- IU case (IL) or all upper case (IU). If the standard mixed- -- case usage is detected, or the compiler cannot determine -- the style, then no I parameter will appear. -- -- IS Initialize_Scalars pragma applies to this unit -- -- KM Unit source uses a style with keywords in mixed case -- KU (KM) or all upper case (KU). If the standard lower-case -- usage is detected, or the compiler cannot determine the -- style, then no K parameter will appear. -- -- NE Unit has no elaboration routine. All subprogram bodies -- and specs are in this category. Package bodies and specs -- may or may not have NE set, depending on whether or not -- elaboration code is required. Set if N_Compilation_Unit -- node has flag Has_No_Elaboration_Code set. -- -- PK Unit is package, rather than a subprogram -- -- PU Unit has pragma Pure -- -- PR Unit has pragma Preelaborate -- -- RA Unit declares a Remote Access to Class-Wide (RACW) type -- -- RC Unit has pragma Remote_Call_Interface -- -- RT Unit has pragma Remote_Types -- -- SP Unit has pragma Shared_Passive. -- -- SU Unit is a subprogram, rather than a package -- -- The attributes may appear in any order, separated by spaces. -- --------------------- -- -- W Withed Units -- -- --------------------- -- Following each U line, is a series of lines of the form -- W unit-name [source-name lib-name] [E] [EA] [ED] -- -- One of these lines is present for each unit that is mentioned in -- an explicit with clause by the current unit. The first parameter -- is the unit name in internal format. The second parameter is the -- file name of the file that must be compiled to compile this unit -- (which is usually the file for the body, except for packages -- which have no body). The third parameter is the file name of the -- library information file that contains the results of compiling -- this unit. The optional modifiers are used as follows: -- -- E pragma Elaborate applies to this unit -- -- EA pragma Elaborate_All applies to this unit -- -- ED Elaborate_All_Desirable set for this unit, which means -- that there is no Elaborate_All, but the analysis suggests -- that Program_Error may be raised if the Elaborate_All -- conditions cannot be satisfied. The binder will attempt -- to treat ED as EA if it can. -- -- The parameter source-name and lib-name are omitted for the case -- of a generic unit compiled with earlier versions of GNAT which -- did not generate object or ali files for generics. --------------------- -- Reference Lines -- --------------------- -- The reference lines contain information about references from -- any of the units in the compilation (including, body version -- and version attributes, linker options pragmas and source -- dependencies. -- ----------------------- -- -- L Linker_Options -- -- ----------------------- -- Following the unit information is an optional series of lines that -- indicates the usage of pragma Linker_Options. For each appearence -- of pragma Linker_Actions in any of the units for which unit lines -- are present, a line of the form: -- L "string" -- where string is the string from the unit line enclosed in quotes. -- Within the quotes the following can occur: -- c graphic characters in range 20-7E other than " or { -- "" indicating a single " character -- {hh} indicating a character whose code is hex hh (0-9,A-F) -- {00} [ASCII.NUL] is used as a separator character -- to separate multiple arguments of a single -- Linker_Options pragma. -- For further details, see Stringt.Write_String_Table_Entry. Note -- that wide characters in the form {hhhh} cannot be produced, since -- pragma Linker_Option accepts only String, not Wide_String. -- ------------------------------------ -- -- E External Version References -- -- ------------------------------------ -- One of these lines is present for each use of 'Body_Version or -- 'Version in any of the units of the compilation. These are used -- by the linker to determine which version symbols must be output. -- The format is simply: -- E name -- where name is the external name, i.e. the unit name with either -- a S or a B for spec or body version referenced (Body_Version -- always references the body, Version references the Spec, except -- in the case of a reference to a subprogram with no separate spec). -- Upper half and wide character codes are encoded using the same -- method as in Namet (Uhh for upper half, Whhhh for wide character, -- where hh are hex digits). -- --------------------- -- -- D Dependencies -- -- --------------------- -- The dependency lines indicate the source files on which the compiled -- units depend. This is used by the binder for consistency checking. -- These lines are also referenced by the cross-reference information. -- D source-name time-stamp checksum [subunit-name] line:file-name -- The time-stamp field contains the time stamp of the -- corresponding source file. See types.ads for details on -- time stamp representation. -- The checksum is an 8-hex digit representation of the source -- file checksum, with letters given in lower case. -- The subunit name is present only if the dependency line is for -- a subunit. It contains the fully qualified name of the subunit -- in all lower case letters. -- The line:file-name entry is present only if a Source_Reference -- pragma appeared in the source file identified by source-name. -- In this case, it gives the information from this pragma. Note -- that this allows cross-reference information to be related back -- to the original file. Note: the reason the line number comes -- first is that a leading digit immediately identifies this as -- a Source_Reference entry, rather than a subunit-name. -- A line number of zero for line: in this entry indicates that -- there is more than one source reference pragma. In this case, -- the line numbers in the cross-reference are correct, and refer -- to the original line number, but there is no information that -- allows a reader of the ALI file to determine the exact mapping -- of physical line numbers back to the original source. -- Note: blank lines are ignored when the library information is -- read, and separate sections of the file are separated by blank -- lines to ease readability. Blanks between fields are also -- ignored. -- For entries corresponding to files that were not present (and -- thus resulted in error messages), or for files that are not -- part of the dependency set, both the time stamp and checksum -- are set to all zero characters. These dummy entries are ignored -- by the binder in dependency checking, but must be present for -- proper interpretation of the cross-reference data. -------------------------- -- Cross-Reference Data -- -------------------------- -- The cross-reference data follows the dependency lines. See -- the spec of Lib.Xref for details on the format of this data. ----------------- -- Subprograms -- ----------------- procedure Ensure_System_Dependency; -- This procedure ensures that a dependency is created on system.ads. -- Even if there is no semantic dependency, Targparm has read the -- file to acquire target parameters, so we need a source dependency. procedure Write_ALI (Object : Boolean); -- This procedure writes the library information for the current main unit -- The Object parameter is true if an object file is created, and false -- otherwise. -- -- Note: in the case where we are not generating code (-gnatc mode), this -- routine only writes an ALI file if it cannot find an existing up to -- date ALI file. If it *can* find an existing up to date ALI file, then -- it reads this file and sets the Lib.Compilation_Arguments table from -- the A lines in this file. end Lib.Writ;
lib/Explore/Experimental/Isos.agda
crypto-agda/explore
2
6338
<filename>lib/Explore/Experimental/Isos.agda {-# OPTIONS --without-K #-} module Explore.Explorable.Isos where open import Function open import Data.Product open import Data.Nat open import Data.Vec renaming (sum to vsum) open import Function.Related.TypeIsomorphisms.NP import Relation.Binary.PropositionalEquality.NP as ≡ open ≡ using (_≡_; _≗_) open import Explore.Type open import Explore.Explorable open import Explore.Product swap-μ : ∀ {A B} → Explorable (A × B) → Explorable (B × A) swap-μ = μ-iso swap-iso swapS-preserve : ∀ {A B} f (μA×B : Explorable (A × B)) → sum μA×B f ≡ sum (swap-μ μA×B) (f ∘ swap) swapS-preserve = μ-iso-preserve swap-iso μ^ : ∀ {A} (μA : Explorable A) n → Explorable (A ^ n) μ^ μA zero = μLift μ𝟙 μ^ μA (suc n) = μA ×-μ μ^ μA n μVec : ∀ {A} (μA : Explorable A) n → Explorable (Vec A n) μVec μA n = μ-iso (^↔Vec n) (μ^ μA n)
src/asis/asis-extensions-flat_kinds.adb
My-Colaborations/dynamo
15
19356
<reponame>My-Colaborations/dynamo ------------------------------------------------------------------------------ -- -- -- ASIS-for-GNAT IMPLEMENTATION COMPONENTS -- -- -- -- A 4 G . K N D _ C O N V -- -- -- -- B o d y -- -- -- -- $Revision: 15351 $ -- -- -- Copyright (c) 1995-2002, Free Software Foundation, Inc. -- -- -- -- ASIS-for-GNAT is free software; you can redistribute it and/or modify it -- -- under terms of the GNU General Public License as published by the Free -- -- Software Foundation; either version 2, or (at your option) any later -- -- version. ASIS-for-GNAT is distributed in the hope that it will be use- -- -- ful, but WITHOUT ANY WARRANTY; without even the implied warranty of MER- -- -- CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General -- -- Public License for more details. You should have received a copy of the -- -- GNU General Public License distributed with ASIS-for-GNAT; see file -- -- COPYING. If not, write to the Free Software Foundation, 59 Temple Place -- -- - Suite 330, Boston, MA 02111-1307, USA. -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- ASIS-for-GNAT was originally developed by the ASIS-for-GNAT team at the -- -- Software Engineering Laboratory of the Swiss Federal Institute of -- -- Technology (LGL-EPFL) in Lausanne, Switzerland, in cooperation with the -- -- Scientific Research Computer Center of Moscow State University (SRCC -- -- MSU), Russia, with funding partially provided by grants from the Swiss -- -- National Science Foundation and the Swiss Academy of Engineering -- -- Sciences. ASIS-for-GNAT is now maintained by Ada Core Technologies Inc -- -- (http://www.gnat.com). -- -- -- ------------------------------------------------------------------------------ with Asis.Set_Get; with A4G.Knd_Conv; use A4G.Knd_Conv; with A4G.Vcheck; use A4G.Vcheck; package body Asis.Extensions.Flat_Kinds is use Asis; ----------------------- -- Flat_Element_Kind -- ----------------------- function Flat_Element_Kind (Element : Asis.Element) return Flat_Element_Kinds is begin Check_Validity (Element, "Asis.Extensions.Flat_Kinds.Flat_Element_Kind"); return Flat_Element_Kinds (Asis.Set_Get.Int_Kind (Element)); end Flat_Element_Kind; ------------------------------------------------- -- Flat Element Kinds Conversion Functions -- ------------------------------------------------- function Asis_From_Flat_Kind (Flat_Kind : Flat_Element_Kinds) return Asis.Element_Kinds is begin return Asis_From_Internal_Kind (Internal_Element_Kinds (Flat_Kind)); end Asis_From_Flat_Kind; function Pragma_Kind_From_Flat (Flat_Kind : Flat_Element_Kinds) return Asis.Pragma_Kinds is begin return Pragma_Kind_From_Internal (Internal_Element_Kinds (Flat_Kind)); end Pragma_Kind_From_Flat; function Defining_Name_Kind_From_Flat (Flat_Kind : Flat_Element_Kinds) return Asis.Defining_Name_Kinds is begin return Defining_Name_Kind_From_Internal (Internal_Element_Kinds (Flat_Kind)); end Defining_Name_Kind_From_Flat; function Declaration_Kind_From_Flat (Flat_Kind : Flat_Element_Kinds) return Asis.Declaration_Kinds is begin return Declaration_Kind_From_Internal (Internal_Element_Kinds (Flat_Kind)); end Declaration_Kind_From_Flat; function Definition_Kind_From_Flat (Flat_Kind : Flat_Element_Kinds) return Asis.Definition_Kinds is begin return Definition_Kind_From_Internal (Internal_Element_Kinds (Flat_Kind)); end Definition_Kind_From_Flat; function Type_Kind_From_Flat (Flat_Kind : Flat_Element_Kinds) return Asis.Type_Kinds is begin return Type_Kind_From_Internal (Internal_Element_Kinds (Flat_Kind)); end Type_Kind_From_Flat; function Formal_Type_Kind_From_Flat (Flat_Kind : Flat_Element_Kinds) return Asis.Formal_Type_Kinds is begin return Formal_Type_Kind_From_Internal (Internal_Element_Kinds (Flat_Kind)); end Formal_Type_Kind_From_Flat; function Access_Type_Kind_From_Flat (Flat_Kind : Flat_Element_Kinds) return Asis.Access_Type_Kinds is begin return Access_Type_Kind_From_Internal (Internal_Element_Kinds (Flat_Kind)); end Access_Type_Kind_From_Flat; function Root_Type_Kind_From_Flat (Flat_Kind : Flat_Element_Kinds) return Asis.Root_Type_Kinds is begin return Root_Type_Kind_From_Internal (Internal_Element_Kinds (Flat_Kind)); end Root_Type_Kind_From_Flat; function Constraint_Kind_From_Flat (Flat_Kind : Flat_Element_Kinds) return Asis.Constraint_Kinds is begin return Constraint_Kind_From_Internal (Internal_Element_Kinds (Flat_Kind)); end Constraint_Kind_From_Flat; function Discrete_Range_Kind_From_Flat (Flat_Kind : Flat_Element_Kinds) return Asis.Discrete_Range_Kinds is begin return Discrete_Range_Kind_From_Internal (Internal_Element_Kinds (Flat_Kind)); end Discrete_Range_Kind_From_Flat; function Expression_Kind_From_Flat (Flat_Kind : Flat_Element_Kinds) return Asis.Expression_Kinds is begin return Expression_Kind_From_Internal (Internal_Element_Kinds (Flat_Kind)); end Expression_Kind_From_Flat; function Operator_Kind_From_Flat (Flat_Kind : Flat_Element_Kinds) return Asis.Operator_Kinds is begin return Operator_Kind_From_Internal (Internal_Element_Kinds (Flat_Kind)); end Operator_Kind_From_Flat; function Attribute_Kind_From_Flat (Flat_Kind : Flat_Element_Kinds) return Asis.Attribute_Kinds is begin return Attribute_Kind_From_Internal (Internal_Element_Kinds (Flat_Kind)); end Attribute_Kind_From_Flat; function Association_Kind_From_Flat (Flat_Kind : Flat_Element_Kinds) return Asis.Association_Kinds is begin return Association_Kind_From_Internal (Internal_Element_Kinds (Flat_Kind)); end Association_Kind_From_Flat; function Statement_Kind_From_Flat (Flat_Kind : Flat_Element_Kinds) return Asis.Statement_Kinds is begin return Statement_Kind_From_Internal (Internal_Element_Kinds (Flat_Kind)); end Statement_Kind_From_Flat; function Path_Kind_From_Flat (Flat_Kind : Flat_Element_Kinds) return Asis.Path_Kinds is begin return Path_Kind_From_Internal (Internal_Element_Kinds (Flat_Kind)); end Path_Kind_From_Flat; function Clause_Kind_From_Flat (Flat_Kind : Flat_Element_Kinds) return Asis.Clause_Kinds is begin return Clause_Kind_From_Internal (Internal_Element_Kinds (Flat_Kind)); end Clause_Kind_From_Flat; function Representation_Clause_Kind_From_Flat (Flat_Kind : Flat_Element_Kinds) return Asis.Representation_Clause_Kinds is begin return Representation_Clause_Kind_From_Internal (Internal_Element_Kinds (Flat_Kind)); end Representation_Clause_Kind_From_Flat; ------------------------------------- -- Additional Classification items -- ------------------------------------- ----------------------- -- Def_Operator_Kind -- ----------------------- function Def_Operator_Kind (Op_Kind : Flat_Element_Kinds) return Flat_Element_Kinds is begin return Flat_Element_Kinds (Def_Operator_Kind (Internal_Element_Kinds (Op_Kind))); end Def_Operator_Kind; end Asis.Extensions.Flat_Kinds;
programs/oeis/316/A316626.asm
neoneye/loda
22
174184
; A316626: a(1)=a(2)=a(3)=1; a(n) = a(n-2*a(n-1))+a(n-1-2*a(n-2)) for n > 3. ; 1,1,1,2,2,2,2,3,3,3,4,4,4,4,4,5,5,5,6,6,6,6,7,7,7,8,8,8,8,8,8,9,9,9,10,10,10,10,11,11,11,12,12,12,12,12,13,13,13,14,14,14,14,15,15,15,16,16,16,16,16,16,16,17,17,17,18,18,18,18,19,19,19,20,20,20,20,20,21,21,21,22,22,22,22,23,23,23,24,24,24,24,24,24,25,25,25,26,26,26 mov $2,$0 seq $0,55938 ; Integers not generated by b(n) = b(floor(n/2)) + n (cf. A005187). sub $0,$2 add $0,2 div $0,4
modules/web/js/ballerina-old/parser/gen/NEL.g4
dnwick/editor
0
6505
/* * Copyright (c) 2005-2016, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except * in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ grammar NEL; // starting point for parsing a java file sourceFile : definition constants? globalVariables? resources EOF ; definition : path? source api? packageDef ; constants : constant* ; globalVariables : globalVariable* ; resources : resource+ ; packageDef : PACKAGE qualifiedName ';' ; path : AT 'Path' LPAREN StringLiteral RPAREN ; source : AT 'Source' LPAREN sourceElementValuePairs RPAREN ; api : '@' 'Service' ( '(' ( apiElementValuePairs ) ')' ) ; resourcePath : '@' 'Path' ( '(' StringLiteral ')' ) ; getMethod : '@' 'GET' ( '(' ')' )? ; postMethod : '@' 'POST' ( '(' ')' )? ; putMethod : '@' 'PUT' ( '(' ')' )? ; deleteMethod : '@' 'DELETE' ( '(' ')' )? ; headMethod : '@' 'HEAD' ( '(' ')' )? ; prodAnt : '@' 'Produces' ( '(' elementValue ? ')' )? ; conAnt : '@' 'Consumes' ( '(' elementValue ? ')' )? ; antApiOperation : '@' 'ApiOperation' ( '(' ( elementValuePairs | elementValue )? ')' )? ; antApiResponses : '@' 'ApiResponses' '(' ( antApiResponseSet )? ')' ; antApiResponseSet : antApiResponse (',' antApiResponse)* ; antApiResponse : '@' 'ApiResponse' '(' ( elementValuePairs | elementValue )? ')' ; elementValuePairs : elementValuePair (',' elementValuePair)* ; sourceElementValuePairs : interfaceDeclaration | protocol (',' host)? (',' port)? ; interfaceDeclaration : 'interface' '=' StringLiteral ; apiElementValuePairs : (tags ',')? (descripton ',')? producer ; protocol : 'protocol' '=' StringLiteral ; host : 'host' '=' StringLiteral ; port : 'port' '=' IntegerLiteral ; tags : 'tags' '=' tag+ ; tag : '{' StringLiteral (',' StringLiteral)* '}' ; descripton : 'description' '=' StringLiteral ; producer : 'produces' '=' mediaType ; constant : CONSTANT type Identifier '=' literal ';' | CONSTANT classType Identifier '=' 'new' Identifier '(' (StringLiteral)? ')' ';' ; globalVariable : type Identifier '=' literal ';' | endpointDeclaration '=' newTypeObjectCreation ';' ; elementValuePair : Identifier '=' elementValue ; elementValue : StringLiteral | IntegerLiteral ; // Resource Level resource : httpMethods prodAnt? conAnt ? antApiOperation? antApiResponses? resourcePath resourceDeclaration ; httpMethods :(getMethod | postMethod | putMethod | deleteMethod | headMethod)* ; qualifiedName : Identifier ('.' Identifier)* ; resourceDeclaration : 'resource' resourceName '(' 'message' Identifier ')' block ; resourceName : Identifier ; // block is anything that starts with '{' and and ends with '}' block : '{' blockStatement* '}' ; //Anything that contains inside a block blockStatement : localVariableDeclarationStatement // eg: int i; | localVariableInitializationStatement // eg: string endpoint = "my_endpoint"; | localVariableAssignmentStatement // eg: i =45; msgModification mediators also falls under this | messageModificationStatement // eg: response.setHeader(HTTP.StatusCode, 500); | returnStatement // eg: reply response; | mediatorCallStatement // eg: log(level="custom", log_value="log message"); | tryCatchBlock // flowControl Mediator | ifElseBlock // flowControl Mediator ; // try catch definition tryCatchBlock : tryClause catchClause+ ; tryClause : 'try' block ; catchClause : 'catch' '(' exceptionHandler ')' block ; exceptionHandler : exceptionType Identifier ; exceptionType //Identifier can be added to give custom exception handling : 'ConnectionClosedException' | 'ConnectionFailedException' | 'ConnectionTimeoutException' | 'Exception' //default exception ; // if else definition ifElseBlock : ifBlock ( elseBlock )? ; ifBlock : 'if' parExpression block ; elseBlock : 'else' block ; // local variable handling statements localVariableDeclarationStatement : endpointDeclaration ';' // endpointDeclaration has given more priority over (classType Identifier) | (type|classType) Identifier ';' ; localVariableInitializationStatement : type Identifier '=' literal ';' | endpointDeclaration '=' newTypeObjectCreation ';' | classType Identifier '=' newTypeObjectCreation ';' // only used for new message creation | classType Identifier '=' mediatorCall ';' // calling a mediator that will return a message ; localVariableAssignmentStatement : Identifier '=' literal ';' | Identifier '=' newTypeObjectCreation ';' | Identifier '=' mediatorCall ';' ; mediatorCallStatement : mediatorCall ';' ; // this is only used when "m = new message ()" and "ep = new endpoint("http://google.lk")" called newTypeObjectCreation : 'new' classType '(' literal? ')' ; //mediator calls mediatorCall : Identifier '(' ( keyValuePairs )? ')' ; //Endpoints endpointDeclaration : parametersAnnotation? circuitBreakerAnnotation? 'endpoint' Identifier ; parametersAnnotation : '@Parameters' '(' keyValuePairs? ')' ; circuitBreakerAnnotation : '@CircuitBreaker' '(' keyValuePairs? ')' ; keyValuePairs : keyValuePair ( ',' keyValuePair )* ; // classType is also used as a parameter identifier because, 'endpoint' and 'message' is also commenly used as // method argument identifiers keyValuePair : (Identifier | classType) '=' ( literal | Identifier ) ; // Message Modification statements messageModificationStatement : Identifier '.' Identifier '(' messagePropertyName ',' literal ')' ';' ; //return (reply) Statement specification returnStatement : 'reply' (Identifier | mediatorCall)? ';' ; // expression, which will be used to build the parExpression used inside if condition parExpression : '(' expression ( ( GT | LT | EQUAL | LE | GE | NOTEQUAL | AND | OR ) expression )? ')' ; expression : evalExpression | literal ; evalExpression : 'eval' '(' Identifier '=' Identifier ',' 'path' '=' StringLiteral ')' ; literal : IntegerLiteral | FloatingPointLiteral | CharacterLiteral | StringLiteral | BooleanLiteral | 'null' ; mediaType : 'MediaType.APPLICATION_JSON' | 'MediaType.APPLICATION_XML' ; type : 'boolean' | 'char' | 'byte' | 'short' | 'int' | 'long' | 'float' | 'double' | 'string' ; classType : 'endpoint' | 'message' ; messagePropertyName : Identifier ('.' Identifier)* ; // LEXER // §3.9 Keywords ABSTRACT : 'abstract'; ASSERT : 'assert'; BOOLEAN : 'boolean'; BREAK : 'break'; BYTE : 'byte'; CASE : 'case'; CATCH : 'catch'; CHAR : 'char'; CLASS : 'class'; CONST : 'const'; CONTINUE : 'continue'; CONSTANT : 'constant'; DEFAULT : 'default'; DO : 'do'; DOUBLE : 'double'; ELSE : 'else'; ENUM : 'enum'; EXTENDS : 'extends'; FINAL : 'final'; FINALLY : 'finally'; FLOAT : 'float'; FOR : 'for'; IF : 'if'; GOTO : 'goto'; IMPLEMENTS : 'implements'; IMPORT : 'import'; INSTANCEOF : 'instanceof'; INT : 'int'; INTERFACE : 'interface'; LONG : 'long'; NATIVE : 'native'; NEW : 'new'; PACKAGE : 'package'; PRIVATE : 'private'; PROTECTED : 'protected'; PUBLIC : 'public'; RETURN : 'return'; SHORT : 'short'; STATIC : 'static'; STRICTFP : 'strictfp'; SUPER : 'super'; SWITCH : 'switch'; SYNCHRONIZED : 'synchronized'; THIS : 'this'; THROW : 'throw'; THROWS : 'throws'; TRANSIENT : 'transient'; TRY : 'try'; VOID : 'void'; VOLATILE : 'volatile'; WHILE : 'while'; // §3.10.1 Integer Literals IntegerLiteral : DecimalIntegerLiteral | HexIntegerLiteral | OctalIntegerLiteral | BinaryIntegerLiteral | VaribaleLiteral ; fragment DecimalIntegerLiteral : DecimalNumeral IntegerTypeSuffix? ; fragment HexIntegerLiteral : HexNumeral IntegerTypeSuffix? ; fragment OctalIntegerLiteral : OctalNumeral IntegerTypeSuffix? ; fragment BinaryIntegerLiteral : BinaryNumeral IntegerTypeSuffix? ; fragment IntegerTypeSuffix : [lL] ; fragment DecimalNumeral : '0' | NonZeroDigit (Digits? | Underscores Digits) ; fragment Digits : Digit (DigitOrUnderscore* Digit)? ; fragment Digit : '0' | NonZeroDigit ; fragment NonZeroDigit : [1-9] ; fragment DigitOrUnderscore : Digit | '_' ; fragment Underscores : '_'+ ; fragment HexNumeral : '0' [xX] HexDigits ; fragment HexDigits : HexDigit (HexDigitOrUnderscore* HexDigit)? ; fragment HexDigit : [0-9a-fA-F] ; fragment HexDigitOrUnderscore : HexDigit | '_' ; fragment OctalNumeral : '0' Underscores? OctalDigits ; fragment OctalDigits : OctalDigit (OctalDigitOrUnderscore* OctalDigit)? ; fragment OctalDigit : [0-7] ; fragment OctalDigitOrUnderscore : OctalDigit | '_' ; fragment BinaryNumeral : '0' [bB] BinaryDigits ; fragment BinaryDigits : BinaryDigit (BinaryDigitOrUnderscore* BinaryDigit)? ; fragment BinaryDigit : [01] ; fragment BinaryDigitOrUnderscore : BinaryDigit | '_' ; // §3.10.2 Floating-Point Literals FloatingPointLiteral : DecimalFloatingPointLiteral | HexadecimalFloatingPointLiteral | VaribaleLiteral ; fragment DecimalFloatingPointLiteral : Digits '.' Digits? ExponentPart? FloatTypeSuffix? | '.' Digits ExponentPart? FloatTypeSuffix? | Digits ExponentPart FloatTypeSuffix? | Digits FloatTypeSuffix ; fragment ExponentPart : ExponentIndicator SignedInteger ; fragment ExponentIndicator : [eE] ; fragment SignedInteger : Sign? Digits ; fragment Sign : [+-] ; fragment FloatTypeSuffix : [fFdD] ; fragment HexadecimalFloatingPointLiteral : HexSignificand BinaryExponent FloatTypeSuffix? ; fragment HexSignificand : HexNumeral '.'? | '0' [xX] HexDigits? '.' HexDigits ; fragment BinaryExponent : BinaryExponentIndicator SignedInteger ; fragment BinaryExponentIndicator : [pP] ; // §3.10.3 Boolean Literals BooleanLiteral : 'true' | 'false' | VaribaleLiteral ; // §3.10.4 Character Literals CharacterLiteral : '\'' SingleCharacter '\'' | '\'' EscapeSequence '\'' ; fragment SingleCharacter : ~['\\] ; // §3.10.5 String Literals StringLiteral : '"' StringCharacters? '"' | VaribaleLiteral ; fragment StringCharacters : StringCharacter+ ; fragment StringCharacter : ~["\\] | EscapeSequence ; // §3.10.6 Escape Sequences for Character and String Literals fragment EscapeSequence : '\\' [btnfr"'\\] | OctalEscape | UnicodeEscape ; fragment OctalEscape : '\\' OctalDigit | '\\' OctalDigit OctalDigit | '\\' ZeroToThree OctalDigit OctalDigit ; fragment UnicodeEscape : '\\' 'u' HexDigit HexDigit HexDigit HexDigit ; fragment ZeroToThree : [0-3] ; // §3.10.7 The Null Literal NullLiteral : 'null' ; // §3.11 Separators LPAREN : '('; RPAREN : ')'; LBRACE : '{'; RBRACE : '}'; LBRACK : '['; RBRACK : ']'; SEMI : ';'; COMMA : ','; DOT : '.'; // §3.12 Operators ASSIGN : '='; GT : '>'; LT : '<'; BANG : '!'; TILDE : '~'; QUESTION : '?'; COLON : ':'; EQUAL : '=='; LE : '<='; GE : '>='; NOTEQUAL : '!='; AND : '&&'; OR : '||'; INC : '++'; DEC : '--'; ADD : '+'; SUB : '-'; MUL : '*'; DIV : '/'; BITAND : '&'; BITOR : '|'; CARET : '^'; MOD : '%'; ADD_ASSIGN : '+='; SUB_ASSIGN : '-='; MUL_ASSIGN : '*='; DIV_ASSIGN : '/='; AND_ASSIGN : '&='; OR_ASSIGN : '|='; XOR_ASSIGN : '^='; MOD_ASSIGN : '%='; LSHIFT_ASSIGN : '<<='; RSHIFT_ASSIGN : '>>='; URSHIFT_ASSIGN : '>>>='; // WSO2 NEL Addition*********************************************** fragment VaribaleLiteral : '$' Identifier ; //***************************************************************** // §3.8 Identifiers (must appear after all keywords in the grammar) Identifier : JavaLetter JavaLetterOrDigit* ; fragment JavaLetter : [a-zA-Z$_] // these are the "java letters" below 0x7F ; fragment JavaLetterOrDigit : [a-zA-Z0-9$_] // these are the "java letters or digits" below 0x7F ; // // Additional symbols not defined in the lexical specification // AT : '@'; ELLIPSIS : '...'; // // Whitespace and comments // WS : [ \t\r\n\u000C]+ -> skip ; COMMENT : '/*' .*? '*/' -> skip ; LINE_COMMENT : '//' ~[\r\n]* -> skip ;
oeis/083/A083346.asm
neoneye/loda-programs
11
99769
; A083346: Denominator of r(n) = Sum(e/p: n=Product(p^e)). ; Submitted by <NAME>(w2) ; 1,2,3,1,5,6,7,2,3,10,11,3,13,14,15,1,17,6,19,5,21,22,23,6,5,26,1,7,29,30,31,2,33,34,35,3,37,38,39,10,41,42,43,11,15,46,47,3,7,10,51,13,53,2,55,14,57,58,59,15,61,62,21,1,65,66,67,17,69,70,71,6,73,74,15,19,77,78,79,5,3,82,83,21,85,86,87,22,89,30,91,23,93,94,95,6,97,14,33,5 add $0,1 mov $1,$0 seq $0,3415 ; a(n) = n' = arithmetic derivative of n: a(0) = a(1) = 0, a(prime) = 1, a(mn) = m*a(n) + n*a(m). mov $2,$0 gcd $2,$1 div $1,$2 mov $0,$1
programs/oeis/283/A283049.asm
neoneye/loda
22
241675
<gh_stars>10-100 ; A283049: Numbers of configurations of A'Campo forests with co-dimension 1 and degree n>0. ; 0,4,48,480,4560,42504,393120,3624768,33390720,307618740,2835722032,26162863584,241614915360,2233533229200,20667453710400,191422799835264,1774573628661504,16465220088660432,152894968403313600,1420856831349155200,13213537097286612240,122964781793406010920,1145032213561132834080,10668751226149520462400,99461081225018641564800,927731628466549144481880,8657810744692706761915296,80834780188740934458349632,755060394298834049197549120,7055828342997489608805668640,65961055843881323795231270016,616867017096681010456139270400,5771006680929141324138310141440,54008234317101872322461764263600,505602935515902426628678725211200,4734713641795005541193461797816960,44351277786194808542949374451232320,415566966063467015412218047550506400 mov $2,$0 add $0,1 mul $0,4 sub $2,1 bin $0,$2 mul $0,4
day27/harib24f/api/api004.asm
itiB/hariboteOS_30days
1
81617
[CPU 486] [BITS 32] GLOBAL api_openwin section .text api_openwin: ; int api_openwin(char *buf, int xsiz, int ysiz, int col_inv, char *title) PUSH EDI PUSH ESI PUSH EBX MOV EDX, 5 MOV EBX, [ESP + 16] ; buf MOV ESI, [ESP + 20] ; xsiz MOV EDI, [ESP + 24] ; ysiz MOV EAX, [ESP + 28] ; col_inv MOV ECX, [ESP + 32] ; title INT 0x40 POP EBX POP ESI POP EDI RET
day08/src/vm.adb
jwarwick/aoc_2020
3
10694
with Ada.Text_IO; with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; with Ada.Strings.Fixed; use Ada.Strings.Fixed; package body VM is package TIO renames Ada.Text_IO; function instruction_index_hash(key : in Instruction_Index) return Hash_Type is begin return Hash_Type(key); end instruction_index_hash; procedure print(inst : in Op_Record) is begin TIO.put_line(" " & Instruction_Index'Image(inst.Index) & " " & Op'Image(inst.Ins) & " " & Integer'Image(inst.Arg)); end print; procedure print(v : in VM) is begin TIO.put_line("PC: " & Instruction_Index'Image(v.PC) & ", Acc: " & Integer'Image(v.Acc)); for i in v.Instructions.Iterate loop print(Element(i)); end loop; end print; procedure swap_nop_jmp(idx : in Instruction_Index; v : in out VM) is begin if not v.Instructions.contains(idx) then raise VM_Exception with "Invalid PC"; end if; declare curr : constant Op_Record := v.Instructions(idx); begin case curr.Ins is when nop => v.Instructions.replace(idx, Op_Record'(Ins => jmp, Arg => curr.Arg, Index => curr.Index)); when jmp => v.Instructions.replace(idx, Op_Record'(Ins => nop, Arg => curr.Arg, Index => curr.Index)); when others => null; end case; end; end swap_nop_jmp; function parse_file(filename : in String) return Op_Hashed_Maps.Map is file : TIO.File_Type; map : Op_Hashed_Maps.Map := Empty_Map; n : Instruction_Index := 0; begin TIO.open(File => file, Mode => TIO.In_File, Name => filename); while not TIO.end_of_file(file) loop declare line : constant String := TIO.get_line(file); first_space : constant Natural := index(line, " "); cmd : constant String := line(line'first .. first_space-1); opr : constant Op := Op'Value(cmd); num : constant Integer := Integer'Value(line(first_space+1 .. line'last)); rec : Op_Record(Ins => opr); begin rec.Arg := num; rec.Index := n; map.insert(n, rec); n := n+1; end; end loop; TIO.close(file); map.insert(n, Op_Record'(Ins => halt, Index => n)); return map; end parse_file; function step(v : in out VM) return Boolean is begin if not v.Instructions.contains(v.pc) then raise VM_Exception with "Invalid PC"; end if; declare curr : constant Op_Record := v.Instructions(v.PC); begin case curr.Ins is when nop => v.PC := v.PC + 1; when acc => v.Acc := v.Acc + curr.Arg; v.PC := v.PC + 1; when jmp => v.PC := Instruction_Index(Integer(v.PC) + curr.Arg); when halt => v.Halted := true; return true; end case; end; return false; end step; function eval(v : in out VM; max_steps : in Positive) return Boolean is begin for i in 1..max_steps loop if step(v) then return true; end if; end loop; return false; end eval; procedure reset(v : in out VM) is begin v.Acc := 0; v.PC := 0; v.Halted := false; end reset; function load_file(file : in String) return VM is m : VM; begin m.Source := to_unbounded_string(file); m.Instructions := parse_file(file); reset(m); return m; end load_file; function acc(v : in VM) return Integer is begin return v.Acc; end acc; function pc(v : in VM) return Instruction_Index is begin return v.PC; end pc; function instructions(v : in VM) return Count_Type is begin return length(v.Instructions); end instructions; end VM;
alloy4fun_models/trashltl/models/8/jzKk4v27ybrTJDkZB.als
Kaixi26/org.alloytools.alloy
0
4356
<gh_stars>0 open main pred idjzKk4v27ybrTJDkZB_prop9 { all f: File | always f not in Trash implies once f in Protected } pred __repair { idjzKk4v27ybrTJDkZB_prop9 } check __repair { idjzKk4v27ybrTJDkZB_prop9 <=> prop9o }
oeis/309/A309726.asm
neoneye/loda-programs
11
166632
<reponame>neoneye/loda-programs ; A309726: Numbers n such that n^2 - 12 is prime. ; Submitted by <NAME> ; 5,7,11,13,17,19,25,29,35,41,49,53,59,61,79,85,91,95,97,103,107,113,119,121,137,139,145,149,163,169,173,179,181,185,191,205,209,227,233,235,245,251,253,257,277,283,293,295,319,325,335,337,341,347,349,355,365,367,379,383,401,409,413,415,431,433,445,449,455,457,467,475,481,487,491,517,521,523,539,547,557,559,563,605,613,623,631,647,649,667,677,689,691,709,715,719,737,739,755,763 mov $2,$0 pow $2,2 mov $6,1 lpb $2 add $1,6 mov $3,$1 add $5,$1 add $3,$5 seq $3,10051 ; Characteristic function of primes: 1 if n is prime, else 0. sub $0,$3 add $1,$6 add $1,1 mov $4,$0 max $4,0 cmp $4,$0 mul $2,$4 sub $2,1 add $5,2 lpe mov $0,$1 div $0,4 add $0,5
src/main/antlr/Karaffe.g4
nokok/Karaffe
9
6972
grammar Karaffe; sourceFile : classDef* EOF ; classDef : CLASS Identifier nl? typeDefBody? nl? ; typeDefBody : LBRACE nl? statement* RBRACE nl? ; statement : entryPointBlock nl? | initBlock nl? | varDef nl? | assign nl? | expr nl? ; entryPointBlock : ENTRYPOINT LBRACE nl? statement* RBRACE nl? ; initBlock : INIT LBRACE nl? statement* RBRACE nl? ; assign : target=expr '=' initializer=expr nl? ; varDef : DEF binding ('=' initializer=expr)? nl? ; binding : Identifier typeName nl? ; typeName : Identifier ; // Expr expr : id=Identifier | lit=literal | t=THIS | function=expr LPAREN args=exprList? RPAREN nl? | left=expr right=opExpr+ nl? | target=expr DOT name=Identifier nl? | LPAREN inExpr=expr RPAREN nl? ; opExpr : op=binaryOperator right=expr ; binaryOperator : Identifier ; exprList : expr (COMMA expr)* ; literal : StringLiteral | IntegerLiteral ; nl : newLine+ ; newLine : '\n' | ';' ; ENTRYPOINT: 'entrypoint'; IMPLEMENTS: 'implements'; INTERFACE: 'interface'; NAMESPACE: 'namespace'; PROTECTED: 'protected'; ABSTRACT: 'abstract'; CONTINUE: 'continue'; DELEGATE: 'delegate'; INTERNAL: 'internal'; OVERRIDE: 'override'; DEFAULT: 'default'; EXTENDS: 'extends'; FINALLY: 'finally'; PACKAGE: 'package'; PRIVATE: 'private'; EXPORT: 'export'; EXTEND: 'extend'; IMPORT: 'import'; MODULE: 'module'; NAMEOF: 'nameof'; PUBLIC: 'public'; RETURN: 'return'; SEALED: 'sealed'; STATIC: 'static'; THROWS: 'throws'; TYPEOF: 'typeof'; ALIAS: 'alias'; ASYNC: 'async'; AWAIT: 'await'; BREAK: 'break'; CATCH: 'catch'; CLASS: 'class'; FALSE: 'false'; FINAL: 'final'; MACRO: 'macro'; MATCH: 'match'; MIXIN: 'mixin'; SUPER: 'super'; THROW: 'throw'; TRAIT: 'trait'; WHILE: 'while'; YIELD: 'yield'; CASE: 'case'; ELSE: 'else'; ENUM: 'enum'; FUNC: 'func'; INIT: 'init'; LAZY: 'lazy'; NULL: 'null'; THIS: 'this'; TRUE: 'true'; DEF: 'def'; FOR: 'for'; NEW: 'new'; TRY: 'try'; AS: 'as'; DO: 'do'; IF: 'if'; IN: 'in'; IS: 'is'; LPAREN: '('; RPAREN: ')'; LBRACE: '{'; RBRACE: '}'; DOT: '.'; COMMA: ','; SEMI: ';'; StringLiteral : '"' StringChar* '"' ; IntegerLiteral : [1-9][0-9]* | '0' ; fragment StringChar : ~["\\\r\n] ; Identifier : Letter LetterOrDigit* | OperatorChar+ | '...' | '..<' ; fragment OperatorChar : '+' | '=' | '-' | '*' | '/' | '%' | '!' | '~' | '&' | '>' | '<' | '^' | '|' | '#' | '@' | ':' ; fragment Letter : [a-zA-Z] ; fragment LetterOrDigit : [a-zA-Z] | [1-9][0-9]* ; WS : [ \t]+ -> skip ;
Cubical/Algebra/CommRing/FiberedProduct.agda
lpw25/cubical
0
9511
<reponame>lpw25/cubical {-# OPTIONS --safe #-} module Cubical.Algebra.CommRing.FiberedProduct where open import Cubical.Foundations.Prelude open import Cubical.Foundations.Function open import Cubical.Foundations.HLevels open import Cubical.Data.Sigma open import Cubical.Algebra.Ring open import Cubical.Algebra.CommRing private variable ℓ : Level module _ (A B C : CommRing ℓ) (α : CommRingHom A C) (β : CommRingHom B C) where private module A = CommRingStr (snd A) module B = CommRingStr (snd B) module C = CommRingStr (snd C) module α = IsRingHom (snd α) module β = IsRingHom (snd β) open CommRingStr open CommRingHoms open IsRingHom fbT : Type ℓ fbT = Σ[ ab ∈ fst A × fst B ] (fst α (fst ab) ≡ fst β (snd ab)) fbT≡ : {x y : fbT} → fst (fst x) ≡ fst (fst y) → snd (fst x) ≡ snd (fst y) → x ≡ y fbT≡ h1 h2 = Σ≡Prop (λ _ → is-set (snd C) _ _) λ i → (h1 i) , (h2 i) 0fbT : fbT 0fbT = (A.0r , B.0r) , α.pres0 ∙ sym β.pres0 1fbT : fbT 1fbT = (A.1r , B.1r) , α.pres1 ∙ sym β.pres1 _+fbT_ : fbT → fbT → fbT ((a1 , b1) , hab1) +fbT ((a2 , b2) , hab2) = (a1 A.+ a2 , b1 B.+ b2) , α.pres+ a1 a2 ∙∙ (λ i → hab1 i C.+ hab2 i) ∙∙ sym (β.pres+ b1 b2) _·fbT_ : fbT → fbT → fbT ((a1 , b1) , hab1) ·fbT ((a2 , b2) , hab2) = (a1 A.· a2 , b1 B.· b2) , α.pres· a1 a2 ∙∙ (λ i → hab1 i C.· hab2 i) ∙∙ sym (β.pres· b1 b2) -fbT_ : fbT → fbT -fbT ((a , b) , hab) = (A.- a , B.- b) , α.pres- a ∙∙ cong C.-_ hab ∙∙ sym (β.pres- b) fiberedProduct : CommRing ℓ fst fiberedProduct = fbT 0r (snd fiberedProduct) = 0fbT 1r (snd fiberedProduct) = 1fbT _+_ (snd fiberedProduct) = _+fbT_ _·_ (snd fiberedProduct) = _·fbT_ -_ (snd fiberedProduct) = -fbT_ isCommRing (snd fiberedProduct) = makeIsCommRing (isSetΣSndProp (isSet× (is-set (snd A)) (is-set (snd B))) λ x → is-set (snd C) _ _) (λ _ _ _ → fbT≡ (A.+Assoc _ _ _) (B.+Assoc _ _ _)) (λ _ → fbT≡ (A.+Rid _) (B.+Rid _)) (λ _ → fbT≡ (A.+Rinv _) (B.+Rinv _)) (λ _ _ → fbT≡ (A.+Comm _ _) (B.+Comm _ _)) (λ _ _ _ → fbT≡ (A.·Assoc _ _ _) (B.·Assoc _ _ _)) (λ _ → fbT≡ (A.·Rid _) (B.·Rid _)) (λ _ _ _ → fbT≡ (A.·Rdist+ _ _ _) (B.·Rdist+ _ _ _)) (λ _ _ → fbT≡ (A.·Comm _ _) (B.·Comm _ _)) fiberedProductPr₁ : CommRingHom fiberedProduct A fst fiberedProductPr₁ = fst ∘ fst snd fiberedProductPr₁ = makeIsRingHom refl (λ _ _ → refl) (λ _ _ → refl) fiberedProductPr₂ : CommRingHom fiberedProduct B fst fiberedProductPr₂ = snd ∘ fst snd fiberedProductPr₂ = makeIsRingHom refl (λ _ _ → refl) (λ _ _ → refl) fiberedProductPr₁₂Commutes : compCommRingHom fiberedProduct A C fiberedProductPr₁ α ≡ compCommRingHom fiberedProduct B C fiberedProductPr₂ β fiberedProductPr₁₂Commutes = RingHom≡ (funExt (λ x → x .snd)) fiberedProductUnivProp : (D : CommRing ℓ) (h : CommRingHom D A) (k : CommRingHom D B) → compCommRingHom D A C h α ≡ compCommRingHom D B C k β → ∃![ l ∈ CommRingHom D fiberedProduct ] (h ≡ compCommRingHom D fiberedProduct A l fiberedProductPr₁) × (k ≡ compCommRingHom D fiberedProduct B l fiberedProductPr₂) fiberedProductUnivProp D (h , hh) (k , hk) H = uniqueExists f (RingHom≡ refl , RingHom≡ refl) (λ _ → isProp× (isSetRingHom _ _ _ _) (isSetRingHom _ _ _ _)) (λ { (g , _) (Hh , Hk) → RingHom≡ (funExt (λ d → fbT≡ (funExt⁻ (cong fst Hh) d) (funExt⁻ (cong fst Hk) d))) }) where f : CommRingHom D fiberedProduct fst f d = (h d , k d) , funExt⁻ (cong fst H) d snd f = makeIsRingHom (fbT≡ (hh .pres1) (hk .pres1)) (λ _ _ → fbT≡ (hh .pres+ _ _) (hk .pres+ _ _)) (λ _ _ → fbT≡ (hh .pres· _ _) (hk .pres· _ _))
tests/typing/bad/testfile-arith-4.adb
xuedong/mini-ada
0
18471
with Ada.Text_IO; use Ada.Text_IO; procedure Test is X : Integer; begin X := 1 rem 'a'; end;
examples/dump_tree/dump_elements.ads
optikos/oasis
0
10926
-- Copyright (c) 2019 <NAME> <<EMAIL>> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with Program.Elements; package Dump_Elements is procedure Print (Element : Program.Elements.Element_Access); end Dump_Elements;
src/DATA/tile1.asm
Kannagi/PC-Engine-Demo
2
169333
.db $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00 .db $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00 .db $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00 .db $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00 .db $9f,$65,$ff,$c7,$9f,$6f,$49,$fe,$cd,$3b,$6e,$fd,$de,$ed,$bf,$c3 .db $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00 .db $42,$5a,$42,$5a,$42,$5a,$42,$5a,$42,$5a,$42,$5a,$42,$5a,$42,$5a .db $a5,$00,$a5,$00,$a5,$00,$a5,$00,$a5,$00,$a5,$00,$a5,$00,$a5,$00 .db $00,$00,$00,$ff,$ff,$a4,$ff,$fb,$ff,$46,$09,$9d,$00,$00,$6c,$ec .db $ff,$00,$00,$00,$00,$00,$00,$fb,$00,$00,$62,$00,$ff,$00,$13,$00 .db $00,$00,$00,$ff,$ff,$a6,$ff,$55,$7f,$ca,$19,$9f,$00,$00,$65,$ef .db $ff,$00,$00,$00,$00,$00,$00,$55,$00,$00,$60,$00,$ff,$00,$10,$00 .db $dd,$e7,$fd,$f3,$e8,$f0,$63,$e2,$d7,$8d,$3d,$1b,$5a,$ef,$ff,$85 .db $00,$00,$00,$00,$07,$00,$1c,$00,$20,$00,$c0,$00,$00,$00,$00,$00 .db $dd,$e6,$fd,$23,$ef,$78,$7b,$e6,$d7,$ad,$fd,$5b,$5a,$ef,$ff,$9d .db $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00 .db $7f,$80,$ff,$00,$7f,$00,$ff,$00,$ff,$00,$7f,$00,$ff,$00,$7f,$00 .db $7f,$49,$ff,$c9,$ff,$4b,$ff,$c9,$ff,$c1,$ff,$61,$ff,$e1,$ff,$60 .db $ff,$00,$ff,$00,$ff,$00,$ff,$00,$ff,$00,$ff,$00,$ff,$00,$ff,$00 .db $ff,$fd,$ff,$fc,$ff,$fc,$ff,$fc,$ff,$fc,$ff,$fc,$ff,$fc,$ff,$fc .db $b4,$73,$f4,$33,$34,$f3,$b4,$73,$a8,$67,$a8,$67,$a8,$67,$a8,$67 .db $f0,$0f,$f0,$0f,$f0,$0f,$f0,$0f,$e0,$1f,$e0,$1f,$e0,$1f,$e0,$1f .db $d7,$14,$d7,$10,$d7,$10,$d7,$10,$d7,$14,$d5,$16,$c5,$06,$67,$84 .db $d7,$eb,$d7,$ef,$d7,$ef,$d7,$ee,$97,$ea,$97,$e9,$87,$f8,$07,$fb .db $63,$80,$e3,$00,$43,$08,$83,$18,$03,$2c,$43,$9c,$83,$44,$c3,$10 .db $7f,$63,$ff,$e3,$f7,$43,$e7,$83,$d3,$03,$63,$43,$bb,$83,$ef,$c3 .db $fb,$07,$fb,$07,$f9,$07,$f9,$07,$fd,$03,$fd,$03,$fc,$03,$fc,$03 .db $ff,$80,$ff,$c0,$ff,$c0,$ff,$c0,$ff,$c0,$ff,$c0,$ff,$c0,$ff,$c0 .db $8c,$83,$8d,$82,$8d,$82,$8f,$80,$cf,$c0,$cf,$c0,$cf,$c0,$ce,$c0 .db $80,$7f,$80,$7f,$80,$7f,$80,$7f,$c0,$3f,$c0,$3f,$c0,$3f,$c0,$3f .db $97,$18,$b7,$38,$27,$38,$6f,$70,$4f,$70,$4e,$71,$5f,$60,$5e,$60 .db $1f,$e3,$3f,$c3,$3f,$c3,$7f,$83,$7f,$87,$7e,$86,$7f,$87,$7f,$86 .db $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00 .db $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00 .db $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00 .db $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00 .db $dd,$67,$95,$7b,$ef,$b8,$7f,$e2,$db,$ac,$f4,$fb,$6b,$d5,$ff,$87 .db $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00 .db $42,$5a,$42,$5a,$42,$5a,$42,$5a,$42,$5a,$42,$5a,$42,$5a,$42,$5a .db $a5,$00,$a5,$00,$a5,$00,$a5,$00,$a5,$00,$a5,$00,$a5,$00,$a5,$00 .db $97,$6d,$df,$67,$8f,$7e,$49,$fe,$00,$ff,$ff,$6c,$de,$ed,$00,$00 .db $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$ff,$00 .db $93,$7d,$f9,$7f,$bf,$7d,$49,$fe,$00,$ff,$ff,$c9,$5a,$f5,$00,$00 .db $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$ff,$00 .db $1d,$a7,$95,$9a,$cf,$98,$41,$80,$d8,$a8,$f4,$fa,$6b,$d5,$ff,$97 .db $40,$00,$60,$00,$20,$00,$3e,$00,$07,$00,$01,$00,$00,$00,$00,$00 .db $dd,$e6,$fd,$23,$ef,$78,$7b,$e6,$07,$0d,$f1,$53,$58,$69,$3c,$1c .db $00,$00,$00,$00,$00,$00,$00,$00,$f0,$00,$0c,$00,$86,$00,$c3,$00 .db $bf,$00,$7f,$00,$3f,$40,$bf,$40,$3f,$40,$3f,$00,$bf,$00,$3f,$40 .db $ff,$a4,$ff,$64,$bf,$24,$bf,$a4,$bf,$24,$ff,$2c,$ff,$ac,$bf,$2e .db $ff,$00,$ff,$00,$ff,$00,$ff,$00,$bf,$40,$bf,$60,$bf,$60,$9f,$70 .db $ff,$7c,$ff,$7c,$ff,$7c,$ff,$3e,$ff,$3f,$ff,$1f,$ff,$00,$ff,$00 .db $a8,$67,$28,$e7,$2c,$e3,$2c,$e3,$ac,$63,$ac,$63,$ac,$63,$2c,$e3 .db $e0,$1f,$e0,$1f,$e0,$1f,$e0,$1f,$e0,$1f,$e0,$9f,$e0,$1f,$e0,$1f .db $27,$c4,$27,$c4,$27,$c4,$27,$c0,$37,$c0,$37,$c0,$3f,$c0,$3f,$c0 .db $07,$fb,$07,$fb,$07,$fb,$07,$ff,$07,$ff,$07,$ff,$0f,$ff,$0f,$ff .db $a3,$18,$6b,$04,$11,$46,$81,$5c,$25,$52,$0b,$04,$95,$2a,$01,$68 .db $e7,$a3,$fb,$6b,$b9,$11,$a3,$81,$ad,$25,$fb,$0b,$d5,$95,$97,$01 .db $fc,$03,$fc,$03,$fc,$03,$fc,$03,$fc,$03,$fc,$03,$fc,$03,$fc,$03 .db $ff,$c0,$ff,$e0,$ff,$e0,$ff,$e0,$ff,$e0,$ff,$e0,$ff,$e0,$ff,$e0 .db $ce,$c0,$dc,$c0,$dd,$c1,$dd,$c1,$dd,$c1,$d9,$c1,$db,$c3,$d2,$c3 .db $c0,$3f,$c0,$3f,$c1,$3e,$c1,$3e,$c1,$3e,$c1,$3e,$c3,$3c,$c3,$3c .db $de,$e0,$9e,$e0,$be,$c0,$2e,$d1,$2e,$d0,$3e,$d0,$7f,$90,$7e,$90 .db $ff,$06,$ff,$06,$ff,$06,$fe,$06,$ff,$06,$ff,$06,$ff,$07,$ff,$06 .db $dd,$67,$95,$7b,$ef,$b8,$7f,$e2,$db,$ac,$f4,$fb,$6b,$d5,$ff,$87 .db $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00 .db $dd,$e7,$fd,$f3,$ef,$f1,$7b,$e6,$d7,$ad,$fd,$1b,$5a,$ef,$ff,$85 .db $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00 .db $00,$00,$00,$ff,$ff,$c2,$ff,$6b,$bf,$56,$09,$8f,$00,$00,$66,$6e .db $ff,$00,$00,$00,$00,$00,$00,$6b,$00,$00,$70,$00,$ff,$00,$91,$00 .db $00,$00,$00,$ff,$ff,$67,$ff,$7b,$7f,$c3,$18,$ff,$00,$00,$61,$77 .db $ff,$00,$00,$00,$00,$00,$00,$79,$00,$00,$00,$00,$ff,$00,$88,$00 .db $00,$94,$80,$3c,$42,$18,$80,$06,$88,$65,$63,$1c,$91,$04,$02,$50 .db $6b,$00,$c3,$80,$e7,$42,$f9,$80,$9a,$88,$e3,$63,$fb,$91,$af,$02 .db $42,$5a,$42,$5a,$42,$5a,$42,$5a,$42,$5a,$42,$5a,$42,$5a,$42,$5a .db $a5,$00,$a5,$00,$a5,$00,$a5,$00,$a5,$00,$a5,$00,$a5,$00,$a5,$00 .db $9f,$65,$ff,$c7,$9f,$6f,$49,$fe,$cd,$3b,$6e,$fd,$de,$ed,$bf,$c3 .db $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00 .db $42,$5a,$42,$5a,$42,$5a,$42,$5a,$42,$5a,$42,$5a,$42,$5a,$42,$5a .db $a5,$00,$a5,$00,$a5,$00,$a5,$00,$a5,$00,$a5,$00,$a5,$00,$a5,$00 .db $7f,$80,$ff,$00,$7f,$00,$bf,$00,$bf,$40,$7f,$00,$bf,$40,$3f,$40 .db $7f,$7e,$ff,$fe,$ff,$7e,$ff,$bf,$bf,$bf,$ff,$7f,$bf,$bf,$bf,$3f .db $db,$3c,$c9,$3e,$cc,$3f,$d4,$37,$d6,$37,$d2,$33,$d3,$33,$d3,$33 .db $ff,$00,$ff,$00,$ff,$00,$f7,$08,$f7,$08,$f3,$0c,$f3,$0c,$f3,$0c .db $68,$e7,$48,$c7,$48,$c7,$48,$c7,$48,$c7,$c8,$c7,$c8,$c7,$c8,$c7 .db $e0,$1f,$c0,$3f,$c0,$3f,$c0,$3f,$c0,$3f,$c0,$3f,$c0,$3f,$c0,$3f .db $3f,$c0,$3f,$c0,$3f,$c0,$3f,$c0,$3f,$c0,$3f,$c0,$2f,$c0,$2f,$c0 .db $0f,$ff,$0f,$ff,$0f,$ff,$0f,$ff,$0f,$ff,$0f,$ff,$0f,$ff,$0f,$ff .db $63,$80,$e3,$00,$43,$08,$83,$18,$83,$6c,$43,$1c,$83,$44,$03,$50 .db $7f,$63,$ff,$e3,$f7,$43,$e7,$83,$93,$83,$e3,$43,$bb,$83,$af,$03 .db $f8,$07,$f8,$07,$f8,$07,$f9,$07,$f9,$07,$f9,$07,$fb,$07,$fa,$06 .db $ff,$e0,$ff,$e0,$ff,$e0,$ff,$e0,$ff,$e0,$ff,$e0,$ff,$e0,$fe,$e1 .db $d6,$c7,$c4,$c7,$cc,$cf,$89,$8e,$89,$8e,$19,$1e,$11,$1e,$31,$3e .db $c7,$38,$c7,$38,$cf,$30,$8f,$70,$8f,$70,$1f,$e0,$1f,$e0,$3f,$c0 .db $7e,$90,$fe,$10,$fe,$10,$fe,$10,$fe,$11,$ff,$10,$ed,$10,$ee,$10 .db $ff,$06,$ff,$06,$ff,$06,$ff,$0e,$fe,$4e,$ff,$4f,$ff,$4d,$ff,$ce .db $9f,$7f,$1f,$ff,$bd,$f6,$7f,$e4,$76,$99,$bc,$e7,$7e,$bb,$fd,$af .db $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00 .db $ff,$6b,$7f,$c3,$bd,$e7,$7f,$f9,$77,$9a,$9c,$e3,$6e,$fb,$fd,$af .db $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00 .db $9f,$65,$ff,$c7,$9f,$6f,$49,$fe,$00,$ff,$ff,$91,$de,$ed,$00,$00 .db $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$ff,$00 .db $93,$7d,$f9,$cf,$bf,$4c,$79,$ce,$00,$ff,$ff,$6d,$9a,$f5,$00,$00 .db $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$ff,$00 .db $22,$18,$02,$0c,$10,$0e,$84,$19,$28,$52,$02,$e4,$a5,$10,$00,$7a .db $e7,$22,$f3,$02,$f1,$10,$e6,$84,$ad,$28,$1b,$02,$ef,$a5,$85,$00 .db $42,$5a,$42,$5a,$42,$5a,$42,$5a,$42,$5a,$42,$5a,$42,$5a,$42,$5a .db $a5,$00,$a5,$00,$a5,$00,$a5,$00,$a5,$00,$a5,$00,$a5,$00,$a5,$00 .db $dd,$67,$95,$7b,$ef,$b8,$7f,$e2,$db,$ac,$f4,$fb,$6b,$d5,$ff,$87 .db $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00 .db $42,$5a,$42,$5a,$42,$5a,$42,$5a,$42,$5a,$42,$5a,$42,$5a,$42,$5a .db $a5,$00,$a5,$00,$a5,$00,$a5,$00,$a5,$00,$a5,$00,$a5,$00,$a5,$00 .db $ff,$00,$3f,$00,$1f,$40,$1f,$80,$2f,$50,$4f,$00,$df,$20,$07,$68 .db $ff,$ff,$ff,$3f,$bf,$1f,$7f,$1f,$af,$2f,$ff,$4f,$df,$df,$97,$07 .db $d1,$31,$e9,$19,$e9,$19,$e9,$19,$f5,$0d,$f7,$0f,$f3,$0f,$fb,$07 .db $f1,$0e,$f9,$06,$f9,$06,$f9,$86,$fd,$82,$ff,$80,$ff,$80,$ff,$80 .db $c8,$c7,$c8,$c7,$c8,$c7,$c8,$c7,$c8,$c7,$c8,$c7,$cc,$c3,$8c,$83 .db $c0,$3f,$c0,$3f,$c0,$3f,$c0,$3f,$c0,$3f,$c0,$3f,$c0,$3f,$80,$7f .db $2f,$c0,$6f,$80,$6f,$80,$6f,$88,$4f,$88,$4f,$88,$cf,$08,$9f,$18 .db $0f,$ff,$0f,$ff,$0f,$fb,$0f,$f3,$0f,$f3,$0f,$f3,$0f,$f3,$1f,$e3 .db $a3,$18,$6b,$04,$13,$44,$83,$5c,$27,$50,$0f,$00,$97,$28,$07,$68 .db $e7,$a3,$fb,$6b,$bb,$13,$a3,$83,$af,$27,$ff,$0f,$d7,$97,$97,$07 .db $fa,$06,$fa,$06,$fa,$06,$fa,$06,$fa,$06,$fa,$06,$fa,$06,$fb,$07 .db $fe,$e1,$fe,$e1,$fe,$e1,$fe,$e1,$fe,$e1,$fe,$e1,$fe,$e1,$ff,$e0 .db $21,$3e,$21,$3e,$63,$7c,$43,$7c,$53,$6c,$d3,$ec,$93,$ec,$b7,$c8 .db $3f,$c0,$3f,$c0,$7f,$80,$7f,$80,$7f,$80,$ff,$00,$ff,$01,$ff,$01 .db $fc,$00,$fc,$00,$fe,$00,$fc,$02,$f8,$05,$fb,$04,$f9,$04,$fa,$00 .db $ff,$cc,$ff,$dc,$ff,$de,$fd,$dc,$fa,$d8,$fb,$fb,$fb,$f9,$ff,$fa .db $67,$80,$e7,$00,$47,$08,$87,$18,$8f,$60,$4f,$10,$8f,$40,$0f,$50 .db $7f,$67,$ff,$e7,$f7,$47,$e7,$86,$9f,$8d,$ef,$4d,$bf,$89,$af,$08 .db $f9,$07,$fd,$03,$fc,$03,$fe,$01,$fe,$01,$fe,$01,$ff,$00,$ff,$00 .db $ff,$e0,$ff,$e0,$ff,$e0,$ff,$e0,$ff,$e0,$ff,$e4,$ff,$f4,$ff,$f4 .db $37,$c8,$7f,$80,$7f,$80,$7f,$80,$7f,$80,$ff,$00,$ff,$00,$ff,$00 .db $ff,$01,$ff,$01,$ff,$13,$ff,$13,$ff,$17,$ff,$17,$ff,$3e,$ff,$3e .db $f0,$04,$f0,$0c,$f2,$08,$f0,$06,$f8,$05,$e3,$1c,$f1,$04,$62,$90 .db $fb,$f0,$f3,$f0,$f7,$f2,$f9,$f0,$fa,$78,$e3,$63,$fb,$71,$ef,$62 .db $79,$84,$f9,$04,$5f,$02,$9f,$02,$9d,$62,$5f,$00,$9f,$40,$1f,$40 .db $7d,$72,$fd,$f2,$ff,$50,$ff,$94,$9f,$95,$ff,$55,$bf,$95,$bf,$13 .db $ec,$03,$fc,$13,$fe,$11,$fe,$11,$ae,$51,$af,$51,$bf,$41,$bd,$43 .db $ef,$b8,$ff,$a8,$ff,$ac,$ff,$ac,$ff,$ac,$ff,$ac,$ff,$ac,$ff,$2c .db $50,$60,$50,$60,$52,$69,$50,$6b,$59,$66,$53,$68,$51,$64,$32,$40 .db $7f,$90,$7f,$90,$76,$92,$74,$90,$79,$99,$77,$93,$7b,$91,$7f,$92 .db $00,$94,$80,$3c,$42,$18,$80,$06,$88,$65,$63,$1c,$91,$04,$02,$50 .db $6b,$00,$c3,$80,$e7,$42,$f9,$80,$9a,$88,$e3,$63,$fb,$91,$af,$02 .db $60,$80,$e0,$00,$42,$09,$80,$18,$81,$6c,$43,$1c,$80,$44,$02,$50 .db $7f,$60,$ff,$e0,$f6,$42,$e7,$80,$93,$81,$e3,$43,$bb,$80,$af,$02 .db $00,$83,$80,$37,$42,$19,$80,$04,$88,$61,$63,$1c,$f1,$04,$02,$50 .db $7c,$00,$c8,$80,$e6,$42,$fb,$80,$9e,$88,$e3,$63,$fb,$f1,$af,$02 .db $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00 .db $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00 .db $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00 .db $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00 .db $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00 .db $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00 .db $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00 .db $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00 .db $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00 .db $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00 .db $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00 .db $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00 .db $af,$10,$6f,$00,$1e,$41,$8e,$51,$2e,$51,$0f,$00,$9f,$20,$0f,$60 .db $ef,$a8,$ff,$68,$bf,$18,$af,$8c,$af,$2c,$ff,$0c,$df,$9e,$9f,$0e .db $ff,$00,$ff,$00,$3f,$c0,$5f,$e0,$af,$b0,$d7,$98,$6b,$cc,$55,$c6 .db $ff,$fc,$ff,$7c,$ff,$3e,$ff,$1e,$bf,$4e,$9f,$67,$cf,$33,$c7,$38 .db $ff,$00,$ff,$00,$ff,$00,$ff,$00,$f7,$08,$ff,$00,$ef,$10,$de,$20 .db $ff,$3e,$ff,$7e,$ff,$7e,$ff,$7e,$ff,$77,$ff,$77,$ff,$ef,$ff,$4e .db $e2,$98,$62,$0c,$70,$0e,$64,$19,$68,$12,$e2,$84,$25,$90,$a0,$5a .db $e7,$62,$73,$e2,$71,$f0,$66,$e4,$6d,$e8,$fb,$62,$ef,$25,$a5,$20 .db $bf,$00,$7f,$00,$1f,$40,$9f,$40,$3f,$40,$0f,$00,$9f,$20,$07,$68 .db $ff,$b3,$ff,$73,$bf,$1b,$bf,$9b,$bf,$3f,$ff,$0f,$df,$9f,$97,$07 .db $bc,$42,$3c,$c2,$3c,$c2,$3c,$c2,$3c,$c2,$3c,$c2,$3c,$c2,$7d,$83 .db $fe,$3d,$fe,$3d,$fe,$3d,$fe,$3d,$fe,$3d,$fe,$3d,$fe,$3d,$ff,$3c .db $32,$48,$ba,$c4,$b0,$c7,$f0,$8d,$74,$83,$7b,$84,$74,$8a,$f0,$08 .db $77,$92,$fb,$3a,$f8,$30,$f2,$30,$fc,$34,$fb,$3b,$f5,$34,$f7,$70 .db $22,$18,$02,$0c,$10,$0e,$84,$19,$28,$52,$02,$e4,$a5,$10,$00,$7a .db $e7,$22,$f3,$02,$f1,$10,$e6,$84,$ad,$28,$1b,$02,$ef,$a5,$85,$00 .db $a2,$18,$6a,$05,$10,$47,$80,$5d,$24,$53,$0b,$04,$94,$2a,$00,$68 .db $e7,$a2,$fa,$6a,$b8,$10,$a2,$80,$ac,$24,$fb,$0b,$d5,$94,$97,$00 .db $22,$19,$02,$dc,$10,$87,$84,$19,$28,$52,$02,$a4,$a5,$10,$00,$62 .db $e6,$22,$23,$02,$78,$10,$e6,$84,$ad,$28,$5b,$02,$ef,$a5,$9d,$00 .db $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00 .db $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00 .db $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00 .db $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00 .db $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00 .db $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00 .db $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00 .db $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00 .db $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00 .db $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00 .db $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00 .db $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00 .db $6f,$80,$ef,$00,$4f,$00,$8f,$10,$8f,$60,$4f,$10,$9f,$40,$1d,$42 .db $7f,$6c,$ff,$ec,$ff,$4e,$ef,$8e,$9f,$8b,$ef,$49,$bf,$99,$bf,$19 .db $cd,$41,$22,$e3,$3c,$ff,$80,$7f,$ff,$00,$ff,$00,$ff,$00,$fe,$01 .db $c1,$3e,$e3,$1c,$ff,$00,$ff,$00,$ff,$8e,$ff,$ff,$ff,$ec,$ff,$ec .db $3c,$c0,$7c,$80,$7a,$81,$f8,$03,$f9,$06,$f3,$08,$f1,$04,$f2,$00 .db $ff,$1c,$ff,$1c,$fe,$3a,$fc,$38,$f9,$79,$f7,$f3,$fb,$f1,$ff,$72 .db $a0,$14,$a0,$1c,$62,$18,$80,$06,$88,$65,$63,$1c,$91,$04,$02,$50 .db $eb,$a0,$e3,$a0,$e7,$62,$f9,$80,$9a,$88,$e3,$63,$fb,$91,$af,$02 .db $67,$80,$e3,$00,$43,$08,$83,$18,$83,$6c,$43,$1c,$83,$44,$03,$50 .db $7f,$67,$ff,$e3,$f7,$43,$e7,$83,$93,$83,$e3,$43,$bb,$83,$af,$03 .db $7d,$83,$7f,$81,$7f,$81,$7e,$81,$7e,$81,$ee,$11,$fe,$01,$e6,$11 .db $ff,$3c,$ff,$7c,$ff,$7c,$ff,$7c,$ff,$7c,$ef,$6c,$ff,$7c,$ef,$64 .db $f0,$00,$f0,$00,$f2,$09,$f0,$0b,$f9,$06,$f3,$08,$b1,$44,$b2,$40 .db $ff,$70,$ff,$70,$f6,$f2,$f4,$f0,$f9,$b9,$f7,$b3,$fb,$b1,$ff,$b2 .db $00,$94,$80,$3c,$42,$18,$80,$06,$88,$65,$63,$1c,$91,$04,$02,$50 .db $6b,$00,$c3,$80,$e7,$42,$f9,$80,$9a,$88,$e3,$63,$fb,$91,$af,$02 .db $05,$05,$0b,$2b,$2d,$6d,$2e,$68,$0a,$68,$68,$68,$66,$5e,$10,$7f .db $fa,$03,$d4,$01,$92,$0c,$91,$08,$95,$0c,$97,$06,$81,$00,$80,$00 .db $7d,$11,$7f,$79,$7c,$3c,$3e,$08,$0b,$09,$f1,$00,$f4,$10,$00,$ff .db $82,$83,$80,$e9,$83,$9f,$c1,$09,$f4,$cd,$0e,$02,$0b,$18,$00,$00 .db $7d,$05,$7f,$4f,$7e,$0e,$fe,$48,$3b,$09,$f1,$60,$e1,$c0,$00,$ff .db $82,$87,$80,$cf,$81,$8f,$01,$49,$c4,$cd,$0e,$6e,$1e,$de,$00,$00 .db $7d,$11,$7f,$79,$7c,$3c,$fe,$48,$3b,$09,$fd,$04,$f5,$10,$00,$ff .db $82,$93,$80,$f9,$83,$bf,$01,$49,$c4,$cd,$02,$06,$0a,$1a,$00,$00 .db $7d,$05,$7f,$4f,$7e,$0e,$fe,$48,$3b,$09,$f1,$60,$e1,$c0,$00,$ff .db $82,$87,$80,$cf,$81,$8f,$01,$49,$c4,$cd,$0e,$6e,$1e,$de,$00,$00 .db $7d,$11,$7f,$79,$7c,$3c,$fe,$48,$3b,$09,$fd,$04,$f5,$10,$00,$ff .db $82,$93,$80,$f9,$83,$bf,$01,$49,$c4,$cd,$02,$06,$0a,$1a,$00,$00 .db $7d,$05,$7f,$4f,$7e,$0e,$fe,$4e,$3b,$09,$e1,$60,$81,$80,$00,$ff .db $82,$87,$80,$cf,$81,$8f,$01,$48,$c4,$c5,$1e,$6e,$7e,$9e,$00,$00 .db $70,$10,$60,$60,$46,$01,$12,$0f,$36,$1d,$ec,$3b,$ca,$ff,$06,$fd .db $8f,$80,$9f,$e0,$b8,$80,$e0,$00,$c0,$c0,$00,$00,$00,$00,$00,$00 .db $7d,$82,$fd,$02,$5f,$02,$9b,$06,$9b,$66,$59,$04,$99,$44,$19,$44 .db $7f,$79,$ff,$f9,$ff,$59,$ff,$91,$9f,$91,$fd,$53,$bd,$93,$bd,$13 .db $ed,$13,$ed,$13,$fc,$12,$fc,$12,$ec,$02,$ec,$02,$ed,$03,$ed,$03 .db $ff,$e8,$ff,$a8,$fe,$a9,$fe,$a9,$ee,$f9,$ee,$f9,$ef,$b8,$ef,$b8 .db $f0,$00,$70,$80,$72,$89,$b0,$cb,$b9,$c6,$73,$48,$71,$44,$72,$40 .db $ff,$70,$ff,$70,$f6,$32,$f4,$30,$f9,$39,$77,$b3,$7b,$b1,$7f,$92 .db $00,$94,$80,$3c,$42,$18,$80,$06,$88,$65,$63,$1c,$91,$04,$02,$50 .db $6b,$00,$c3,$80,$e7,$42,$f9,$80,$9a,$88,$e3,$63,$fb,$91,$af,$02 .db $60,$80,$e0,$00,$42,$09,$80,$18,$81,$6c,$43,$1c,$80,$44,$02,$50 .db $7f,$60,$ff,$e0,$f6,$42,$e7,$80,$93,$81,$e3,$43,$bb,$80,$af,$02 .db $c7,$00,$e3,$14,$c3,$18,$c1,$04,$89,$60,$63,$1c,$f1,$04,$02,$50 .db $ff,$44,$eb,$62,$e7,$43,$fb,$c1,$9f,$89,$e3,$63,$fb,$f1,$af,$02 .db $b0,$40,$b0,$40,$b2,$49,$f0,$0b,$e9,$06,$c3,$18,$81,$44,$02,$50 .db $ff,$b0,$ff,$b0,$f6,$b2,$f4,$b0,$f9,$a9,$e7,$c3,$bb,$81,$af,$02 .db $00,$94,$80,$3c,$42,$18,$80,$06,$88,$65,$63,$1c,$91,$04,$02,$50 .db $6b,$00,$c3,$80,$e7,$42,$f9,$80,$9a,$88,$e3,$63,$fb,$91,$af,$02 .db $10,$78,$30,$68,$30,$58,$30,$68,$10,$78,$30,$58,$30,$6f,$3e,$77 .db $87,$00,$87,$00,$87,$00,$87,$00,$87,$00,$87,$00,$80,$00,$80,$00 .db $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$ff,$bb,$ff .db $ff,$00,$ff,$00,$ff,$00,$ff,$00,$ff,$00,$ff,$00,$00,$00,$00,$00 .db $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$ff,$bb,$ff .db $ff,$00,$ff,$00,$ff,$00,$ff,$00,$ff,$00,$ff,$00,$00,$00,$00,$00 .db $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$ff,$bb,$ff .db $ff,$00,$ff,$00,$ff,$00,$ff,$00,$ff,$00,$ff,$00,$00,$00,$00,$00 .db $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$ff,$bb,$ff .db $ff,$00,$ff,$00,$ff,$00,$ff,$00,$ff,$00,$ff,$00,$00,$00,$00,$00 .db $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$ff,$bb,$ff .db $ff,$00,$ff,$00,$ff,$00,$ff,$00,$ff,$00,$ff,$00,$00,$00,$00,$00 .db $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$ff,$bb,$ff .db $ff,$00,$ff,$00,$ff,$00,$ff,$00,$ff,$00,$ff,$00,$00,$00,$00,$00 .db $08,$1f,$08,$1f,$0c,$1f,$0e,$1f,$0e,$19,$0c,$1f,$0e,$fd,$7e,$fd .db $e0,$00,$e0,$00,$e0,$00,$e0,$00,$e0,$00,$e0,$00,$00,$00,$00,$00 pallette_tile1: .dw $003f,$0094,$000a,$004b,$0001,$0008,$0009,$0012,$001b,$0024,$002d,$00dd,$0126 ;palette size octet : 26 ,hexa $001a ;size octet : 4096 ,hexa $1000
lemmas-ground.agda
hazelgrove/hazelnut-dynamics-agda
16
6080
<reponame>hazelgrove/hazelnut-dynamics-agda open import Prelude open import core module lemmas-ground where -- not ground types aren't hole to hole ground-arr-not-hole : ∀{τ} → (τ ground → ⊥) → (τ ≠ (⦇-⦈ ==> ⦇-⦈)) ground-arr-not-hole notg refl = notg GHole -- not ground types either have to be hole or an arrow notground : ∀{τ} → (τ ground → ⊥) → (τ == ⦇-⦈) + (Σ[ τ1 ∈ htyp ] Σ[ τ2 ∈ htyp ] (τ == (τ1 ==> τ2))) notground {b} gnd = abort (gnd GBase) notground {⦇-⦈} gnd = Inl refl notground {b ==> b} gnd = Inr (b , b , refl) notground {b ==> ⦇-⦈} gnd = Inr (b , ⦇-⦈ , refl) notground {b ==> τ2 ==> τ3} gnd = Inr (b , τ2 ==> τ3 , refl) notground {⦇-⦈ ==> b} gnd = Inr (⦇-⦈ , b , refl) notground {⦇-⦈ ==> ⦇-⦈} gnd = abort (gnd GHole) notground {⦇-⦈ ==> τ2 ==> τ3} gnd = Inr (⦇-⦈ , τ2 ==> τ3 , refl) notground {(τ1 ==> τ2) ==> b} gnd = Inr (τ1 ==> τ2 , b , refl) notground {(τ1 ==> τ2) ==> ⦇-⦈} gnd = Inr (τ1 ==> τ2 , ⦇-⦈ , refl) notground {(τ1 ==> τ2) ==> τ3 ==> τ4} gnd = Inr (τ1 ==> τ2 , τ3 ==> τ4 , refl)
euler1.adb
kimtg/euler-ada
7
26053
with Ada.Text_IO; procedure euler1 is sum: Integer := 0; begin for i in 1 .. 999 loop if i mod 3 = 0 or else i mod 5 = 0 then sum := sum + i; end if; end loop; Ada.Text_IO.Put_Line(Integer'Image(sum)); end euler1;
Dot6502MiniConsole/SamplePrograms/calculator.asm
terjew/Dot6502
4
240737
<reponame>terjew/Dot6502 ; Calculator for 6502asm.com, Version 1.02, 2015.JUL.08 by <NAME> ; It is slow in the 6502 emulator by JavaScript. ; The left top flash point is a busy indicator. ; The calculator supports keys: 'C', 'c', '0', '1', ..., '9', '+', '-' and '='. main: cld jsr display ; comparison loop for well response getch_main: inc $fd lda $ff cmp #67 ; 'C' for clear beq store_main cmp #99 ; 'c' for clear beq store_main cmp #43 ; '+' beq store_main cmp #45 ; '-' beq store_main cmp #61 ; '=' beq store_main cmp #48 ; '0' bmi getch_main cmp #57 ; '9' beq store_main bpl getch_main store_main: sta key_main ; clear key lda #0 sta $ff ; clear operand 2 by 'C' or 'c' lda key_main cmp #67 beq clear_main cmp #99 beq clear_main jmp operate_main clear_main: jsr clear lda #61 sta _operator1 lda #0 sta still_main sta standby_main jsr display jmp getch_main ; operate operand 1 and operand 2 operate_main: lda key_main cmp #43 ; '+' bne next1_main sta _operator2 lda just_main bne jump1_main jsr operate lda #1 sta standby_main sta just_main jump1_main: jmp getch_main next1_main: lda key_main cmp #45 ; '-' bne next2_main sta _operator2 lda just_main bne jump2_main jsr operate lda #1 sta standby_main sta just_main jump2_main: jmp getch_main next2_main: lda key_main cmp #61 ; '=' bne replace_main sta _operator2 lda just_main bne jump3_main jsr operate lda #61 sta _operator1 lda #1 sta standby_main sta just_main jump3_main: jmp getch_main replace_main: lda standby_main beq full_main jsr move jsr clear lda #0 sta standby_main jmp append_main ; whether full of digits full_main: jsr length lda $00 cmp #5 bne next3_main jmp getch_main next3_main: lda still_main beq append_main ; shift digits ldx #3 shift_main: clc lda _operand2,x stx tmp_main ldy tmp_main iny clc sta _operand2,y dex txa bpl shift_main ; append digit append_main: lda #1 sta still_main lda #0 sta just_main lda key_main sta _operand2 ; replace '0' with 's' ldx #4 loop_main: lda _operand2,x cmp #48 beq space_main cmp #115 beq next4_main jmp display_main space_main: lda #115 sta _operand2,x next4_main: dex beq display_main ; "XXXXY" bpl loop_main display_main: jsr display jmp getch_main ; global variables _operand1: dcb 48,115,115,115,115 ; 's' for space _operator1: dcb 61 ; '=' _operand2: dcb 48,115,115,115,115 _operator2: dcb 115 ; local variables key_main: dcb 0 tmp_main: dcb 0 still_main: dcb 0 ; boolean, still editing flag standby_main: dcb 0 ; boolean, preparing to move and clear flag just_main: dcb 0 ; boolean, just operator key flag operate: ; operate operand 1 and operand 2 lda _operator1 cmp #43 ; '+' beq add_operate cmp #45 ; '-' beq sub_operate jmp end_operate add_operate: jsr add jsr display jmp end_operate sub_operate: jsr sub jsr display end_operate: rts add: ; add operand 1 and operand 2 ldx #0 ldy #0 sty carry_add loop1_add: clc lda _operand2,x cmp #115 beq space1_add sec sbc #48 sta digit_add jmp next1_add space1_add: lda #0 sta digit_add next1_add: clc lda _operand1,x cmp #115 beq space2_add sec sbc #48 jmp next2_add space2_add: lda #0 next2_add: clc adc digit_add clc adc carry_add ldy #0 sty carry_add cmp #10 bmi ascii_add sec sbc #10 ldy #1 sty carry_add ascii_add: clc adc #48 clc sta _operand2,x inx cpx #5 bmi loop1_add ; replace '0' with 's' ldx #4 loop2_add: lda _operand2,x cmp #48 bne end_add lda #115 sta _operand2,x dex beq end_add ; "XXXXY" bpl loop2_add end_add: rts ; local variables digit_add: dcb 0 carry_add: dcb 0 sub: ; sub operand 1 and operand 2 ldx #0 ldy #0 sty borrow_sub loop1_sub: clc lda _operand2,x cmp #115 beq space1_sub sec sbc #48 sta digit_sub jmp next1_sub space1_sub: lda #0 sta digit_sub next1_sub: clc lda _operand1,x cmp #115 beq space2_sub sec sbc #48 jmp next2_sub space2_sub: lda #0 next2_sub: sec sbc digit_sub sec sbc borrow_sub ldy #0 sty borrow_sub cmp #0 bpl ascii_sub clc adc #10 ldy #1 sty borrow_sub ascii_sub: clc adc #48 clc sta _operand2,x inx cpx #5 bmi loop1_sub ; replace '0' with 's' ldx #4 loop2_sub: lda _operand2,x cmp #48 bne end_sub lda #115 sta _operand2,x dex beq end_sub ; "XXXXY" bpl loop2_sub end_sub: rts ; local variables digit_sub: dcb 0 borrow_sub: dcb 0 length: ; compute the length of operand 2 ; input void; output $00; ldx #0 loop_length: cpx #5 beq end_length clc lda _operand2,x inx cmp #115 bne loop_length dex end_length: stx $00 rts move: ; move operand 2 to operand 1 ; move operator 2 to operator 1 ldx #4 loop_move: clc lda _operand2,x sta _operand1,x dex bpl loop_move ; move operator 2 to operator 1 lda _operator2 sta _operator1 rts clear: ; clear operand 2 lda #4 sta count_clear loop_clear: lda #115 ldx count_clear clc sta _operand2,x dec count_clear lda count_clear cmp #1 bpl loop_clear lda #48 sta _operand2 rts ; local variables count_clear: dcb 0 display: ; display operand 2 lda #4 sta count_display loop_display: lda count_display sta $00 inc $00 lda #6 sta $01 jsr cmul lda #32 sec sbc $02 sta $00 ; 32-(count+1)*6 lda #22 sta $01 ldx count_display clc lda _operand2,x sta $02 jsr draw dec count_display lda count_display bpl loop_display rts ; local variables count_display: dcb 0 draw: ; draw a digit ; input char x $00, char y $01,char digit $02; output void; lda $00 sta x_draw lda $01 sta y_draw lda $02 cmp #115 bne digital_draw lda #$ff ; -1 for space sta value_draw jmp init_draw digital_draw: sec sbc #48 sta value_draw init_draw: lda #0 sta i_draw sta j_draw loop_draw: ; converse white lda i_draw cmp #0 bne converse_draw lda #1 sta $00 sta $01 lda #$01 sta $02 jsr pixel ; converse black converse_draw: lda i_draw cmp #3 bne start_draw lda #1 sta $00 sta $01 lda #$00 sta $02 jsr pixel start_draw: lda value_draw sta $00 bmi black_draw lda #9 sta $01 jsr cmul lda $02 clc adc j_draw tay clc lda font_draw,y ; byte=[font+value*9+j] sta byte_draw lda #1 sta mask_draw ldx i_draw shift_draw: beq and_draw asl mask_draw dex jmp shift_draw and_draw: lda mask_draw and byte_draw beq black_draw white_draw: lda #$01 sta color_draw jmp pixel_draw black_draw: lda #$00 sta color_draw pixel_draw: lda i_draw clc adc x_draw sta $00 lda j_draw clc adc y_draw sta $01 lda color_draw sta $02 jsr pixel ; increase for next step inc i_draw lda i_draw cmp #5 bpl next_draw jmp loop_draw next_draw: lda #0 sta i_draw inc j_draw lda j_draw cmp #9 bpl end_draw jmp loop_draw end_draw: rts ; local variables x_draw: dcb 0 y_draw: dcb 0 value_draw: dcb 0 i_draw: dcb 0 j_draw: dcb 0 mask_draw: dcb 0 byte_draw: dcb 0 color_draw: dcb 0 font_draw: ; '0'~'9', 5x9 dcb $0e,$11,$11,$13,$15,$19,$11,$11,$0e dcb $04,$06,$04,$04,$04,$04,$04,$04,$0e dcb $0e,$11,$10,$10,$08,$04,$02,$01,$1f dcb $0e,$11,$10,$10,$0e,$10,$10,$11,$0e dcb $08,$0c,$0a,$09,$09,$09,$1f,$08,$08 dcb $1f,$01,$01,$01,$0f,$10,$10,$11,$0e dcb $0e,$11,$01,$01,$0f,$11,$11,$11,$0e dcb $1f,$11,$10,$10,$08,$08,$08,$04,$04 dcb $0e,$11,$11,$11,$0e,$11,$11,$11,$0e dcb $0e,$11,$11,$11,$1e,$10,$10,$10,$0e pixel: ; draw a pixel ; pixel page memory address, m=512+y*32+x ; (or m0=y%8*32+x, m1=2+y/8) ; color: $00 is black, $01 is white ; input char x $00,y $01,color $02; output void; effect $60, $61 lda $00 sta x_pixel lda $01 sta y_pixel lda $02 sta color_pixel lda y_pixel sta $00 lda #8 sta $01 jsr cmod lda $02 sta $00 lda #32 sta $01 jsr cmul lda $02 clc adc x_pixel sta $60 ; m0 lda y_pixel sta $00 lda #8 sta $01 jsr cdiv lda $02 clc adc #2 sta $61 ; m1 ldy #0 lda color_pixel clc sta ($60),y rts ; local variables x_pixel: dcb 0 y_pixel: dcb 0 color_pixel: dcb 0 cmod: ; char modulus ; c=a%b=a-a/b*b ; input char a $00,b $01; output char c $02; LDA $00 STA a_cmod JSR cdiv LDA $02 STA $00 JSR cmul LDA $02 STA p_cmod LDA a_cmod SEC SBC p_cmod STA $02 RTS a_cmod: DCB 0 p_cmod: DCB 0 ; p=a/b*b cmul: ; char multiply ; c=a*b ; input char a $00,b $01; output char c $02; LDA #0 LDX $01 loop_cmul: BEQ take_cmul CLC ADC $00 DEX JMP loop_cmul take_cmul: STA $02 RTS cdiv: ; char divide ; c=a/b ; input char a $00,b $01; output char c $02; LDA #0 LDX #0 CLC loop_cdiv: CMP $00 BEQ take2_cdiv BPL take1_cdiv ADC $01 BCS take2_cdiv INX JMP loop_cdiv take1_cdiv: DEX take2_cdiv: STX $02 RTS
programs/oeis/269/A269608.asm
jmorken/loda
1
160789
; A269608: Number of length-5 0..n arrays with no repeated value differing from the previous repeated value by one or less. ; 10,154,804,2692,7030,15630,31024,56584,96642,156610,243100,364044,528814,748342,1035240,1403920,1870714,2453994,3174292,4054420,5119590,6397534,7918624,9715992,11825650,14286610,17141004,20434204,24214942 mov $1,10 mov $2,39 mov $5,$0 mov $6,$0 lpb $2 add $1,$5 sub $2,1 lpe mov $3,$6 lpb $3 sub $3,1 add $4,$5 lpe mov $2,57 mov $5,$4 lpb $2 add $1,$5 sub $2,1 lpe mov $3,$6 mov $4,0 lpb $3 sub $3,1 add $4,$5 lpe mov $2,37 mov $5,$4 lpb $2 add $1,$5 sub $2,1 lpe mov $3,$6 mov $4,0 lpb $3 sub $3,1 add $4,$5 lpe mov $2,10 mov $5,$4 lpb $2 add $1,$5 sub $2,1 lpe mov $3,$6 mov $4,0 lpb $3 sub $3,1 add $4,$5 lpe mov $2,1 mov $5,$4 lpb $2 add $1,$5 sub $2,1 lpe
asg/asm/rdkafka_msgset_writer.asm
asgkafka/librdkafka
0
20002
*PROCESS DUPALIAS * * Compiled by DCC Version 2.25.07 Mar 6 2021 08:51:07 * on Fri Apr 30 15:35:48 2021 * WXTRN @@ZARCH# * * * * Code Section * @CODE ALIAS X'7CD9C4D2C1C6D2C16DD4E2C7E2C5E36DE6D9C9E3C5D9' @CODE CSECT @CODE AMODE ANY @CODE RMODE ANY @DATA ALIAS X'7C998492818692816D94A287A285A36DA69989A38599' rd_buf_write_seek ALIAS X'99846D82A4866DA69989A3856DA2858592' EXTRN rd_buf_write_seek malloc ALIAS C'malloc' EXTRN malloc rd_kafka_set_fatal_error0 ALIAS X'99846D92818692816DA285A36D8681A381936* D8599999699F0' EXTRN rd_kafka_set_fatal_error0 rd_buf_write ALIAS X'99846D82A4866DA69989A385' EXTRN rd_buf_write rd_buf_write_update ALIAS X'99846D82A4866DA69989A3856DA4978481A385' EXTRN rd_buf_write_update rd_buf_push0 ALIAS X'99846D82A4866D97A4A288F0' EXTRN rd_buf_push0 rd_hdr_histogram_record ALIAS X'99846D8884996D8889A2A396879981946D99858* 3969984' EXTRN rd_hdr_histogram_record pthread_mutex_lock ALIAS C'@@PT3ML' EXTRN pthread_mutex_lock pthread_mutex_unlock ALIAS C'@@PT3MU' EXTRN pthread_mutex_unlock crc_table ALIAS X'8399836DA381829385' crc_table DXD 0F rd_slice_init ALIAS X'99846DA2938983856D899589A3' EXTRN rd_slice_init rd_kafka_msgq_insert_msgq ALIAS X'99846D92818692816D94A287986D8995A2859* 9A36D94A28798' EXTRN rd_kafka_msgq_insert_msgq rd_kafka_lz4_compress ALIAS X'99846D92818692816D93A9F46D839694979985A2A* 2' EXTRN rd_kafka_lz4_compress rd_kafka_msgbatch_init ALIAS X'99846D92818692816D94A2878281A383886D8995* 89A3' EXTRN rd_kafka_msgbatch_init rd_kafka_snappy_init_env_sg ALIAS X'99846D92818692816DA295819797A86D899* 589A36D8595A56DA287' EXTRN rd_kafka_snappy_init_env_sg rd_kafka_msgbatch_set_first_msg ALIAS X'99846D92818692816D94A2878281A38* 3886DA285A36D868999A2A36D94A287' EXTRN rd_kafka_msgbatch_set_first_msg rd_kafka_snappy_free_env ALIAS X'99846D92818692816DA295819797A86D869985* 856D8595A5' EXTRN rd_kafka_snappy_free_env rd_kafka_msgbatch_ready_produce ALIAS X'99846D92818692816D94A2878281A38* 3886D99858184A86D97999684A48385' EXTRN rd_kafka_msgbatch_ready_produce snprintf ALIAS C'snprintf' EXTRN snprintf rd_kafka_snappy_compress_iov ALIAS X'99846D92818692816DA295819797A86D83* 9694979985A2A26D8996A5' EXTRN rd_kafka_snappy_compress_iov rd_slice_get_iov ALIAS X'99846DA2938983856D8785A36D8996A5' EXTRN rd_slice_get_iov strerror ALIAS C'strerror' EXTRN strerror rd_kafka_snappy_max_compressed_length ALIAS X'99846D92818692816DA295819* 797A86D9481A76D839694979985A2A285846D93859587A388' EXTRN rd_kafka_snappy_max_compressed_length rd_slice_crc32c ALIAS X'99846DA2938983856D839983F3F283' EXTRN rd_slice_crc32c __assert ALIAS C'@@ASSERT' EXTRN __assert rd_kafka_broker_$Api$Version_supported ALIAS X'99846D92818692816D829996* 9285996DC19789E58599A28996956DA2A497979699A38584' EXTRN rd_kafka_broker_$Api$Version_supported mtx_lock ALIAS X'94A3A76D93968392' EXTRN mtx_lock gettimeofday ALIAS C'GETTFD@Y' EXTRN gettimeofday mtx_unlock ALIAS X'94A3A76DA49593968392' EXTRN mtx_unlock rd_list_elem ALIAS X'99846D9389A2A36D85938594' EXTRN rd_list_elem rd_kafka_buf_destroy_final ALIAS X'99846D92818692816D82A4866D8485A2A399* 96A86D8689958193' EXTRN rd_kafka_buf_destroy_final rd_kafka_buf_push0 ALIAS X'99846D92818692816D82A4866D97A4A288F0' EXTRN rd_kafka_buf_push0 rd_kafka_buf_new_request0 ALIAS X'99846D92818692816D82A4866D9585A66D998* 598A485A2A3F0' EXTRN rd_kafka_buf_new_request0 rd_kafka_crash ALIAS X'99846D92818692816D839981A288' EXTRN rd_kafka_crash calloc ALIAS C'calloc' EXTRN calloc free ALIAS C'free' EXTRN free rd_kafka_log0 ALIAS X'99846D92818692816D939687F0' EXTRN rd_kafka_log0 * * * * ....... start of ebcdic_2_utf8 @LNAME338 DS 0H DC X'0000000D' DC C'ebcdic_2_utf8' DC X'00' ebcdic_2_utf8 DCCPRLG CINDEX=338,BASER=12,FRAME=176,ENTRY=NO,ARCH=ZARCH* ,LNAMEADDR=@LNAME338 DCCPRV REG=9 ; Get PRV from DVT LGR 3,1 ; ptr to parm area * ******* End of Prologue * * * *** const unsigned char* outstart = out; LG 4,0(0,3) ; out LGR 15,4 LG 1,8(0,3) ; outlen LG 5,16(0,3) ; in LGR 2,5 LG 3,24(0,3) ; inlen * *** const unsigned char* base = in; * *** const unsigned char* processed = in; LGR 6,5 ; processed * *** const unsigned char* inend = in + (*inlen); LG 7,0(0,3) ; inlen LA 7,0(7,5) * *** const unsigned char* outend = out + (*outlen); LG 8,0(0,1) ; outlen LA 8,0(8,4) * *** unsigned char c; * *** * *** while ((in < inend) && ((out - outstart) < *outlen)) { B @L6 DS 0D @FRAMESIZE_338 DC F'176' @lit_338_2 DC FD'255' 0x00000000000000ff @lit_338_1 DC Q(@@STATIC) @L5 DS 0H * *** c = *in++; LGR 10,2 LA 2,1(0,2) IC 10,0(0,10) STC 10,168(0,13) ; c * *** if (c > 0xFF) LR 11,10 NILF 11,X'000000FF' CHI 11,255 BNH @L8 * *** { * *** *outlen = out - outstart; SGR 15,4 STG 15,0(0,1) ; outlen * *** *inlen = processed - base; SGR 6,5 STG 6,0(0,3) ; inlen * *** return(-1); LGHI 15,-1 ; -1 B @ret_lab_338 * *** } @L8 DS 0H * *** * *** if (out >= outend) CGR 15,8 BNL @L3 * *** break; @L9 DS 0H * *** * *** *out++ = E2U[c]; LGR 6,15 LA 15,1(0,15) LGF 11,@lit_338_1 LA 11,0(11,9) NG 10,@lit_338_2 IC 10,0(10,11) STC 10,0(0,6) * *** processed = (unsigned char*)in; LGR 6,2 ; processed * *** * *** } @L6 DS 0H CGR 2,7 BNL @L3 LGR 10,15 SGR 10,4 CLG 10,0(0,1) BL @L5 @L3 DS 0H * *** * *** *outlen = out - outstart; SGR 15,4 STG 15,0(0,1) ; outlen * *** *inlen = processed - base; SGR 6,5 STG 6,0(0,3) ; inlen * *** return(0); LGHI 15,0 ; 0 * *** } @ret_lab_338 DS 0H * * **** Start of Epilogue DCCEPIL * * **** End of Epilogue DROP 12 * * DSECT for automatic variables in "ebcdic_2_utf8" * (FUNCTION #338) * @AUTO#ebcdic_2_utf8 DSECT DS XL168 ebcdic_2_utf8#c#0 DS 1CL1 ; c * @CODE CSECT * * * * ....... start of rd_atomic32_sub @LNAME734 DS 0H DC X'0000000F' DC C'rd_atomic32_sub' DC X'00' rd_atomic32_sub DCCPRLG CINDEX=734,BASER=12,FRAME=184,ENTRY=NO,ARCH=ZAR* CH,LNAMEADDR=@LNAME734 LGR 3,1 ; ptr to parm area * ******* End of Prologue * * LG 2,0(0,3) ; ra * *** * *** int32_t r; * *** pthread_mutex_lock(&ra->lock); LA 15,8(0,2) STG 15,176(0,13) LA 1,176(0,13) LG 15,@lit_734_5 ; pthread_mutex_lock @@gen_label4 DS 0H BALR 14,15 @@gen_label5 DS 0H * *** ra->val -= v; L 15,0(0,2) S 15,12(0,3) ST 15,0(0,2) * *** r = ra->val; LR 3,15 ; ra * *** pthread_mutex_unlock(&ra->lock); LA 15,8(0,2) STG 15,176(0,13) LA 1,176(0,13) LG 15,@lit_734_6 ; pthread_mutex_unlock @@gen_label6 DS 0H BALR 14,15 @@gen_label7 DS 0H * *** return r; LGFR 15,3 * *** # 128 "C:\asgkafka\librdkafka\src\rdatomic.h" * *** return __atomic_sub_fetch(&ra->val, v, 6); * *** * *** } * * **** Start of Epilogue DCCEPIL * * **** End of Epilogue DS 0D @FRAMESIZE_734 DC F'184' @lit_734_5 DC AD(pthread_mutex_lock) @lit_734_6 DC AD(pthread_mutex_unlock) DROP 12 * * DSECT for automatic variables in "rd_atomic32_sub" * (FUNCTION #734) * @AUTO#rd_atomic32_sub DSECT DS XL168 rd_atomic32_sub#r#0 DS 1F ; r * @CODE CSECT * * * * ....... start of rd_atomic64_add @LNAME738 DS 0H DC X'0000000F' DC C'rd_atomic64_add' DC X'00' rd_atomic64_add DCCPRLG CINDEX=738,BASER=12,FRAME=184,ENTRY=NO,ARCH=ZAR* CH,LNAMEADDR=@LNAME738 LGR 3,1 ; ptr to parm area * ******* End of Prologue * * LG 2,0(0,3) ; ra * *** * *** int64_t r; * *** pthread_mutex_lock(&ra->lock); LA 15,8(0,2) STG 15,176(0,13) LA 1,176(0,13) LG 15,@lit_738_8 ; pthread_mutex_lock @@gen_label8 DS 0H BALR 14,15 @@gen_label9 DS 0H * *** ra->val += v; LG 15,0(0,2) AG 15,8(0,3) STG 15,0(0,2) * *** r = ra->val; LGR 3,15 ; ra * *** pthread_mutex_unlock(&ra->lock); LA 15,8(0,2) STG 15,176(0,13) LA 1,176(0,13) LG 15,@lit_738_9 ; pthread_mutex_unlock @@gen_label10 DS 0H BALR 14,15 @@gen_label11 DS 0H * *** return r; LGR 15,3 * *** # 222 "C:\asgkafka\librdkafka\src\rdatomic.h" * *** return __atomic_add_fetch(&ra->val, v, 6); * *** * *** } * * **** Start of Epilogue DCCEPIL * * **** End of Epilogue DS 0D @FRAMESIZE_738 DC F'184' @lit_738_8 DC AD(pthread_mutex_lock) @lit_738_9 DC AD(pthread_mutex_unlock) DROP 12 * * DSECT for automatic variables in "rd_atomic64_add" * (FUNCTION #738) * @AUTO#rd_atomic64_add DSECT DS XL168 rd_atomic64_add#r#0 DS 8XL1 ; r * @CODE CSECT * * * * ....... start of rd_malloc @LNAME752 DS 0H DC X'00000009' DC C'rd_malloc' DC X'00' rd_malloc DCCPRLG CINDEX=752,BASER=12,FRAME=208,ENTRY=NO,ARCH=ZARCH,LNA* MEADDR=@LNAME752 * ******* End of Prologue * * * *** void *p = malloc(sz); LG 15,0(0,1) ; sz STG 15,176(0,13) LA 1,176(0,13) LG 15,@lit_752_11 ; malloc @@gen_label12 DS 0H BALR 14,15 @@gen_label13 DS 0H LGR 2,15 * *** ((p) ? (void)0 : __assert(__func__, "C:\\asgkafka\\librdkaf\ * ka\\src\\rd.h", 128, "p")); LTGR 15,2 BNZ @L34 @L33 DS 0H LG 15,@lit_752_12 LA 15,10(0,15) STG 15,176(0,13) LG 15,@lit_752_13 STG 15,184(0,13) MVGHI 192(13),128 LA 15,32(0,15) STG 15,200(0,13) LA 1,176(0,13) LG 15,@lit_752_14 ; __assert @@gen_label15 DS 0H BALR 14,15 @@gen_label16 DS 0H @L34 DS 0H * *** return p; LGR 15,2 * *** } * * **** Start of Epilogue DCCEPIL * * **** End of Epilogue DS 0D @FRAMESIZE_752 DC F'208' @lit_752_11 DC AD(malloc) @lit_752_14 DC AD(__assert) @lit_752_13 DC AD(@strings@) @lit_752_12 DC AD(@DATA) DROP 12 * * DSECT for automatic variables in "rd_malloc" * (FUNCTION #752) * @AUTO#rd_malloc DSECT DS XL168 * @CODE CSECT * * * * ....... start of rd_free @LNAME754 DS 0H DC X'00000007' DC C'rd_free' DC X'00' rd_free DCCPRLG CINDEX=754,BASER=12,FRAME=176,ENTRY=NO,ARCH=ZARCH,LNAM* EADDR=@LNAME754 * ******* End of Prologue * * * *** free(ptr); LG 15,0(0,1) ; ptr STG 15,168(0,13) LA 1,168(0,13) LG 15,@lit_754_16 ; free @@gen_label17 DS 0H BALR 14,15 @@gen_label18 DS 0H * *** } @ret_lab_754 DS 0H * * **** Start of Epilogue DCCEPIL * * **** End of Epilogue DS 0D @FRAMESIZE_754 DC F'176' @lit_754_16 DC AD(free) DROP 12 * * DSECT for automatic variables in "rd_free" * (FUNCTION #754) * @AUTO#rd_free DSECT DS XL168 * @CODE CSECT * * * * ....... start of rd_refcnt_sub0 @LNAME758 DS 0H DC X'0000000E' DC C'rd_refcnt_sub0' DC X'00' rd_refcnt_sub0 DCCPRLG CINDEX=758,BASER=12,FRAME=208,ENTRY=NO,ARCH=ZARC* H,LNAMEADDR=@LNAME758 * ******* End of Prologue * * * *** int r; * *** # 332 "C:\asgkafka\librdkafka\src\rd.h" * *** r = rd_atomic32_sub(R, 1); LG 15,0(0,1) ; R STG 15,176(0,13) MVGHI 184(13),1 LA 1,176(0,13) LG 15,@lit_758_18 ; rd_atomic32_sub @@gen_label19 DS 0H BALR 14,15 @@gen_label20 DS 0H LTR 2,15 * *** * *** if (r < 0) BNL @L41 * *** ((!*"refcnt sub-zero") ? (void)0 : __assert(__\ * func__, "C:\\asgkafka\\librdkafka\\src\\rd.h", 335, "!*\"refcnt sub-\ * zero\"")); LG 15,@lit_758_19 LA 1,34(0,15) CLI 0(1),0 BE @L41 @L42 DS 0H LG 1,@lit_758_20 LA 1,54(0,1) STG 1,176(0,13) STG 15,184(0,13) MVGHI 192(13),335 LA 15,50(0,15) STG 15,200(0,13) LA 1,176(0,13) LG 15,@lit_758_21 ; __assert @@gen_label23 DS 0H BALR 14,15 @@gen_label24 DS 0H @L43 DS 0H @L41 DS 0H * *** return r; LGFR 15,2 * *** } * * **** Start of Epilogue DCCEPIL * * **** End of Epilogue DS 0D @FRAMESIZE_758 DC F'208' @lit_758_18 DC AD(rd_atomic32_sub) @lit_758_19 DC AD(@strings@) @lit_758_21 DC AD(__assert) @lit_758_20 DC AD(@DATA) DROP 12 * * DSECT for automatic variables in "rd_refcnt_sub0" * (FUNCTION #758) * @AUTO#rd_refcnt_sub0 DSECT DS XL168 rd_refcnt_sub0#r#0 DS 1F ; r * @CODE CSECT * * * * ....... start of rd_clock @LNAME1088 DS 0H DC X'00000008' DC C'rd_clock' DC X'00' rd_clock DCCPRLG CINDEX=1088,BASER=12,FRAME=200,ENTRY=NO,ARCH=ZARCH,LNA* MEADDR=@LNAME1088 * ******* End of Prologue * * * *** # 97 "C:\asgkafka\librdkafka\src\rdtime.h" * *** struct timeval tv; * *** gettimeofday(&tv, ((void *)0)); LA 15,168(0,13) STG 15,184(0,13) XC 192(8,13),192(13) LA 1,184(0,13) LG 15,@lit_1088_23 ; gettimeofday @@gen_label25 DS 0H BALR 14,15 @@gen_label26 DS 0H * *** return ((rd_ts_t)tv.tv_sec * 1000000LLU) + (rd_ts_t)tv.tv_\ * usec; LG 15,168(0,13) MSGFI 15,X'000F4240' LG 1,176(0,13) ; offset of tv_usec in timeval ALGR 15,1 * *** # 118 "C:\asgkafka\librdkafka\src\rdtime.h" * *** } * * **** Start of Epilogue DCCEPIL * * **** End of Epilogue DS 0D @FRAMESIZE_1088 DC F'200' @lit_1088_23 DC AD(gettimeofday) DROP 12 * * DSECT for automatic variables in "rd_clock" * (FUNCTION #1088) * @AUTO#rd_clock DSECT DS XL168 rd_clock#tv#0 DS 16XL1 ; tv * @CODE CSECT * * * * ....... start of rd_interval0 @LNAME1204 DS 0H DC X'0000000C' DC C'rd_interval0' DC X'00' rd_interval0 DCCPRLG CINDEX=1204,BASER=12,FRAME=176,ENTRY=NO,ARCH=ZARCH* ,LNAMEADDR=@LNAME1204 LGR 4,1 ; ptr to parm area * ******* End of Prologue * * LG 3,0(0,4) ; ri LG 2,8(0,4) ; interval_us LG 15,16(0,4) ; now * *** rd_ts_t diff; * *** * *** if (!now) LTGR 1,15 BNZ @L70 * *** now = rd_clock(); LG 15,@lit_1204_25 ; rd_clock @@gen_label28 DS 0H BALR 14,15 @@gen_label29 DS 0H @L70 DS 0H * *** if (!interval_us) LTGR 1,2 BNZ @L71 * *** interval_us = ri->ri_fixed; LG 2,8(0,3) ; offset of ri_fixed in rd_interval_s @L71 DS 0H * *** * *** if (ri->ri_ts_last || !immediate) { LTG 1,0(0,3) ; ri BNZ @L73 LT 1,28(0,4) ; immediate BNZ @L72 @L73 DS 0H * *** diff = now - (ri->ri_ts_last + interval_us + r\ * i->ri_backoff); AG 2,0(0,3) AGF 2,16(0,3) LGR 1,15 SGR 1,2 * *** } else B @L74 DS 0D @FRAMESIZE_1204 DC F'176' @lit_1204_25 DC AD(rd_clock) @L72 DS 0H * *** diff = 1; LGHI 1,1 ; 1 @L74 DS 0H * *** if (((diff > 0))) { LTGR 2,1 BNH @L75 * *** ri->ri_ts_last = now; STG 15,0(0,3) ; ri * *** ri->ri_backoff = 0; MVHI 16(3),0 ; offset of ri_backoff in rd_interval_s * *** } @L75 DS 0H * *** * *** return diff; LGR 15,1 * *** } * * **** Start of Epilogue DCCEPIL * * **** End of Epilogue DROP 12 * * DSECT for automatic variables in "rd_interval0" * (FUNCTION #1204) * @AUTO#rd_interval0 DSECT DS XL168 rd_interval0#diff#0 DS 8XL1 ; diff * @CODE CSECT * * * * ....... start of rd_avg_add @LNAME1222 DS 0H DC X'0000000A' DC C'rd_avg_add' DC X'00' rd_avg_add DCCPRLG CINDEX=1222,BASER=12,FRAME=184,ENTRY=NO,ARCH=ZARCH,L* NAMEADDR=@LNAME1222 * ******* End of Prologue * * * *** mtx_lock(&ra->ra_lock); LG 2,8(0,1) ; v LG 3,0(0,1) ; ra LA 15,48(0,3) STG 15,168(0,13) LA 1,168(0,13) LG 15,@lit_1222_28 ; mtx_lock @@gen_label34 DS 0H BALR 14,15 @@gen_label35 DS 0H * *** if (!ra->ra_enabled) { LT 15,88(0,3) ; offset of ra_enabled in rd_avg_s BNZ @L79 * *** mtx_unlock(&ra->ra_lock); LA 15,48(0,3) STG 15,168(0,13) LA 1,168(0,13) LG 15,@lit_1222_29 ; mtx_unlock @@gen_label37 DS 0H BALR 14,15 @@gen_label38 DS 0H * *** return; B @ret_lab_1222 DS 0D @FRAMESIZE_1222 DC F'184' @lit_1222_28 DC AD(mtx_lock) @lit_1222_29 DC AD(mtx_unlock) @lit_1222_30 DC AD(rd_hdr_histogram_record) * *** } @L79 DS 0H * *** if (v > ra->ra_v.maxv) CG 2,0(0,3) BNH @L80 * *** ra->ra_v.maxv = v; STG 2,0(0,3) ; ra @L80 DS 0H * *** if (ra->ra_v.minv == 0 || v < ra->ra_v.minv) CGHSI 8(3),0 BE @L82 CG 2,8(0,3) BNL @L81 @L82 DS 0H * *** ra->ra_v.minv = v; STG 2,8(0,3) ; offset of minv in 0000035 @L81 DS 0H * *** ra->ra_v.sum += v; LGR 15,2 AG 15,24(0,3) STG 15,24(0,3) * *** ra->ra_v.cnt++; L 15,32(0,3) AHI 15,1 ST 15,32(0,3) * *** * *** rd_hdr_histogram_record(ra->ra_hdr, v); LG 15,96(0,3) STG 15,168(0,13) STG 2,176(0,13) LA 1,168(0,13) LG 15,@lit_1222_30 ; rd_hdr_histogram_record @@gen_label42 DS 0H BALR 14,15 @@gen_label43 DS 0H * *** * *** mtx_unlock(&ra->ra_lock); LA 15,48(0,3) STG 15,168(0,13) LA 1,168(0,13) LG 15,@lit_1222_29 ; mtx_unlock @@gen_label44 DS 0H BALR 14,15 @@gen_label45 DS 0H * *** } @ret_lab_1222 DS 0H * * **** Start of Epilogue DCCEPIL * * **** End of Epilogue DROP 12 * * DSECT for automatic variables in "rd_avg_add" * (FUNCTION #1222) * @AUTO#rd_avg_add DSECT DS XL168 * @CODE CSECT * * * * ....... start of rd_buf_write_pos @LNAME1266 DS 0H DC X'00000010' DC C'rd_buf_write_pos' DC X'00' rd_buf_write_pos DCCPRLG CINDEX=1266,BASER=12,FRAME=176,SAVEAREA=NO,ENT* RY=NO,ARCH=ZARCH,LNAMEADDR=@LNAME1266 * ******* End of Prologue * * * *** const rd_segment_t *seg = rbuf->rbuf_wpos; LG 15,0(0,1) ; rbuf LG 15,24(0,15) ; offset of rbuf_wpos in rd_buf_s * *** * *** if (((!seg))) { LTGR 1,15 BNZ @L98 * *** * *** * *** * *** return 0; LGHI 15,0 ; 0 B @ret_lab_1266 * *** } @L98 DS 0H * *** * *** * *** * *** return seg->seg_absof + seg->seg_of; LG 1,40(0,15) ; offset of seg_absof in rd_segment_s ALG 1,24(0,15) LGR 15,1 * *** } @ret_lab_1266 DS 0H * * **** Start of Epilogue DCCEPIL * * **** End of Epilogue DROP 12 * * DSECT for automatic variables in "rd_buf_write_pos" * (FUNCTION #1266) * @AUTO#rd_buf_write_pos DSECT DS XL168 * @CODE CSECT * * * * ....... start of rd_buf_write_remains @LNAME1267 DS 0H DC X'00000014' DC C'rd_buf_write_remains' DC X'00' rd_buf_write_remains DCCPRLG CINDEX=1267,BASER=0,FRAME=168,SAVEAREA=NO,* ENTRY=NO,ARCH=ZARCH,LNAMEADDR=@LNAME1267 * ******* End of Prologue * * * *** return rbuf->rbuf_size - (rbuf->rbuf_len + rbuf->rbuf_\ * erased); LG 15,0(0,1) ; rbuf LG 1,48(0,15) ; offset of rbuf_size in rd_buf_s LG 2,32(0,15) ; offset of rbuf_len in rd_buf_s ALG 2,40(0,15) SLGR 1,2 LGR 15,1 * *** } * * **** Start of Epilogue DCCEPIL * * **** End of Epilogue * * DSECT for automatic variables in "rd_buf_write_remains" * (FUNCTION #1267) * @AUTO#rd_buf_write_remains DSECT DS XL168 * @CODE CSECT * * * * ....... start of rd_buf_len @LNAME1270 DS 0H DC X'0000000A' DC C'rd_buf_len' DC X'00' rd_buf_len DCCPRLG CINDEX=1270,BASER=0,FRAME=168,SAVEAREA=NO,ENTRY=NO,A* RCH=ZARCH,LNAMEADDR=@LNAME1270 * ******* End of Prologue * * * *** return rbuf->rbuf_len; LG 15,0(0,1) ; rbuf LG 15,32(0,15) ; offset of rbuf_len in rd_buf_s * *** } * * **** Start of Epilogue DCCEPIL * * **** End of Epilogue * * DSECT for automatic variables in "rd_buf_len" * (FUNCTION #1270) * @AUTO#rd_buf_len DSECT DS XL168 * @CODE CSECT * * * * ....... start of rd_slice_abs_offset @LNAME1286 DS 0H DC X'00000013' DC C'rd_slice_abs_offset' DC X'00' rd_slice_abs_offset DCCPRLG CINDEX=1286,BASER=12,FRAME=168,SAVEAREA=NO,* ENTRY=NO,ARCH=ZARCH,LNAMEADDR=@LNAME1286 * ******* End of Prologue * * * *** if (((!slice->seg))) LG 15,0(0,1) ; slice LTG 1,8(0,15) ; offset of seg in rd_slice_s BNZ @L102 * *** return slice->end; LG 15,32(0,15) ; offset of end in rd_slice_s B @ret_lab_1286 @L102 DS 0H * *** * *** return slice->seg->seg_absof + slice->rof; LG 1,8(0,15) ; offset of seg in rd_slice_s LG 1,40(0,1) ; offset of seg_absof in rd_segment_s ALG 1,16(0,15) LGR 15,1 * *** } @ret_lab_1286 DS 0H * * **** Start of Epilogue DCCEPIL * * **** End of Epilogue DROP 12 * * DSECT for automatic variables in "rd_slice_abs_offset" * (FUNCTION #1286) * @AUTO#rd_slice_abs_offset DSECT DS XL168 * @CODE CSECT * * * * ....... start of rd_uvarint_enc_u64 @LNAME1308 DS 0H DC X'00000012' DC C'rd_uvarint_enc_u64' DC X'00' rd_uvarint_enc_u64 DCCPRLG CINDEX=1308,BASER=12,FRAME=176,SAVEAREA=NO,E* NTRY=NO,ARCH=ZARCH,LNAMEADDR=@LNAME1308 LGR 2,1 ; ptr to parm area * ******* End of Prologue * * * *** size_t of = 0; LG 15,16(0,2) ; num LGHI 1,0 ; 0 * *** * *** do { @L105 DS 0H * *** if (((of >= dstsize))) CLG 1,8(0,2) BL @L108 * *** return 0; LGHI 15,0 ; 0 B @ret_lab_1308 DS 0D @lit_1308_36 DC FD'127' 0x000000000000007f @L108 DS 0H * *** * *** dst[of++] = (num & 0x7f) | (num > 0x7f ? 0x80 \ * : 0); LG 3,0(0,2) ; dst LGR 4,1 AGHI 1,1 LGR 5,15 NG 5,@lit_1308_36 CLGFI 15,X'0000007F' BNH @L109 LHI 6,128 ; 128 B @L110 @L109 DS 0H LHI 6,0 ; 0 @L110 DS 0H LGFR 6,6 OGR 5,6 STC 5,0(4,3) * *** num >>= 7; SRLG 15,15,7(0) * *** } while (num); LTGR 3,15 BNZ @L105 * *** * *** return of; LGR 15,1 * *** } @ret_lab_1308 DS 0H * * **** Start of Epilogue DCCEPIL * * **** End of Epilogue DROP 12 * * DSECT for automatic variables in "rd_uvarint_enc_u64" * (FUNCTION #1308) * @AUTO#rd_uvarint_enc_u64 DSECT DS XL168 rd_uvarint_enc_u64#of#0 DS 8XL1 ; of * @CODE CSECT * * * * ....... start of rd_uvarint_enc_i64 @LNAME1309 DS 0H DC X'00000012' DC C'rd_uvarint_enc_i64' DC X'00' rd_uvarint_enc_i64 DCCPRLG CINDEX=1309,BASER=12,FRAME=192,ENTRY=NO,ARCH* =ZARCH,LNAMEADDR=@LNAME1309 * ******* End of Prologue * * * *** return rd_uvarint_enc_u64(dst, dstsize, (num << 1) ^ (\ * num >> 63)); LG 15,0(0,1) ; dst STG 15,168(0,13) LG 15,8(0,1) ; dstsize STG 15,176(0,13) LG 15,16(0,1) ; num SLLG 1,15,1(0) SRAG 15,15,63(0) XGR 1,15 STG 1,184(0,13) LA 1,168(0,13) LG 15,@lit_1309_39 ; rd_uvarint_enc_u64 @@gen_label51 DS 0H BALR 14,15 @@gen_label52 DS 0H * *** } * * **** Start of Epilogue DCCEPIL * * **** End of Epilogue DS 0D @FRAMESIZE_1309 DC F'192' @lit_1309_39 DC AD(rd_uvarint_enc_u64) DROP 12 * * DSECT for automatic variables in "rd_uvarint_enc_i64" * (FUNCTION #1309) * @AUTO#rd_uvarint_enc_i64 DSECT DS XL168 * @CODE CSECT * * * * ....... start of rd_uvarint_enc_i32 @LNAME1310 DS 0H DC X'00000012' DC C'rd_uvarint_enc_i32' DC X'00' rd_uvarint_enc_i32 DCCPRLG CINDEX=1310,BASER=12,FRAME=192,ENTRY=NO,ARCH* =ZARCH,LNAMEADDR=@LNAME1310 * ******* End of Prologue * * * *** return rd_uvarint_enc_i64(dst, dstsize, num); LG 15,0(0,1) ; dst STG 15,168(0,13) LG 15,8(0,1) ; dstsize STG 15,176(0,13) LGF 15,20(0,1) ; num STG 15,184(0,13) LA 1,168(0,13) LG 15,@lit_1310_41 ; rd_uvarint_enc_i64 @@gen_label53 DS 0H BALR 14,15 @@gen_label54 DS 0H * *** } * * **** Start of Epilogue DCCEPIL * * **** End of Epilogue DS 0D @FRAMESIZE_1310 DC F'192' @lit_1310_41 DC AD(rd_uvarint_enc_i64) DROP 12 * * DSECT for automatic variables in "rd_uvarint_enc_i32" * (FUNCTION #1310) * @AUTO#rd_uvarint_enc_i32 DSECT DS XL168 * @CODE CSECT * * * * ....... start of rd_kafka_pid2str @LNAME1330 DS 0H DC X'00000010' DC C'rd_kafka_pid2str' DC X'00' rd_kafka_pid2str DCCPRLG CINDEX=1330,BASER=12,FRAME=208,ENTRY=NO,ARCH=Z* ARCH,LNAMEADDR=@LNAME1330 DCCPRV REG=15 ; Get PRV from DVT * ******* End of Prologue * * * *** static char buf[2][64]; * *** static int i; * *** * *** if (!((pid).id != -1)) CGHSI 0(1),-1 BNE @L173 * *** return "PID{Invalid}"; LG 15,@lit_1330_43 LA 15,70(0,15) B @ret_lab_1330 DS 0D @FRAMESIZE_1330 DC F'208' @lit_1330_43 DC AD(@strings@) @lit_1330_44 DC Q(@@STATIC) @lit_1330_47 DC AD(snprintf) @L173 DS 0H * *** * *** i = (i + 1) % 2; LGF 2,@lit_1330_44 LA 2,0(2,15) L 3,1208(0,2) ; i AHI 3,1 LR 4,3 NILF 4,X'00000001' LTR 3,3 BNL @@gen_label56 LTR 4,4 BNE @@gen_label57 LHI 4,0 B @@gen_label56 @@gen_label57 DS 0H OILF 4,X'FFFFFFFE' @@gen_label56 DS 0H ST 4,1208(0,2) ; i * *** * *** snprintf(buf[i], sizeof(buf[i]), "PID{Id:%" "lld" ",Ep\ * och:%hd}", pid.id, pid.epoch); LGFR 2,4 LGF 3,@lit_1330_44 LA 3,0(3,15) SLLG 15,2,6(0) ; *0x40 LA 15,1080(15,3) STG 15,168(0,13) MVGHI 176(13),64 LG 15,@lit_1330_43 LA 15,84(0,15) STG 15,184(0,13) LG 15,0(0,1) STG 15,192(0,13) LH 15,8(0,1) LGFR 15,15 STG 15,200(0,13) LA 1,168(0,13) LG 15,@lit_1330_47 ; snprintf @@gen_label58 DS 0H BALR 14,15 @@gen_label59 DS 0H * *** * *** * *** return buf[i]; LGF 15,1208(0,3) ; i SLLG 15,15,6(0) ; *0x40 LA 15,1080(15,3) * *** } @ret_lab_1330 DS 0H * * **** Start of Epilogue DCCEPIL * * **** End of Epilogue DROP 12 * * DSECT for automatic variables in "rd_kafka_pid2str" * (FUNCTION #1330) * @AUTO#rd_kafka_pid2str DSECT DS XL168 * @CODE CSECT * * * * ....... start of rd_kafka_headers_serialized_size @LNAME1333 DS 0H DC X'00000020' DC C'rd_kafka_headers_serialized_size' DC X'00' rd_kafka_headers_serialized_size DCCPRLG CINDEX=1333,BASER=0,FRAME=168,* SAVEAREA=NO,ENTRY=NO,ARCH=ZARCH,LNAMEADDR=@LNAME1333 * ******* End of Prologue * * * *** return hdrs->rkhdrs_ser_size; LG 15,0(0,1) ; hdrs LG 15,40(0,15) ; offset of rkhdrs_ser_size in rd_kafka_head* ers_s * *** } * * **** Start of Epilogue DCCEPIL * * **** End of Epilogue * * DSECT for automatic variables in "rd_kafka_headers_serialized_size" * (FUNCTION #1333) * @AUTO#rd_kafka_headers_serialized_size DSECT DS XL168 * @CODE CSECT * * * * ....... start of rd_kafka_msg_wire_size @LNAME1334 DS 0H DC X'00000016' DC C'rd_kafka_msg_wire_size' DC X'00' rd_kafka_msg_wire_size DCCPRLG CINDEX=1334,BASER=12,FRAME=184,ENTRY=NO,* ARCH=ZARCH,LNAMEADDR=@LNAME1334 LGR 2,1 ; ptr to parm area * ******* End of Prologue * * LG 15,0(0,2) ; rkm * *** static const size_t overheads[] = { * *** [0] = ((8+4) + (4+1+1+4+4)), * *** [1] = ((8+4) + (4+1+1+8+4+4)), * *** [2] = ( (sizeof(int32_t) + 1 + (sizeof(int32_t\ * )/7)) + 1 + (sizeof(int64_t) + 1 + (sizeof(int64_t)/7)) + (sizeof(in\ * t32_t) + 1 + (sizeof(int32_t)/7)) + (sizeof(int32_t) + 1 + (sizeof(i\ * nt32_t)/7)) + (sizeof(int32_t) + 1 + (sizeof(int32_t)/7)) + (sizeof(\ * int32_t) + 1 + (sizeof(int32_t)/7)) ) * *** size_t size; * *** do {} while (0); @L174 DS 0H * *** * *** size = overheads[MsgVersion] + rkm->rkm_rkmessage.len \ * + rkm->rkm_rkmessage.key_len; LGF 1,12(0,2) ; MsgVersion LG 3,@lit_1334_49 SLLG 1,1,3(0) ; *0x8 LG 1,72(1,3) ALG 1,32(0,15) ALG 1,48(0,15) * *** if (MsgVersion == 2 && rkm->rkm_headers) CHSI 12(2),2 BNE @L177 LTG 2,104(0,15) ; offset of rkm_headers in rd_kafka_msg_s BZ @L177 * *** size += rd_kafka_headers_serialized_size(rkm->\ * rkm_headers); LGR 2,1 LG 15,104(0,15) STG 15,176(0,13) LA 1,176(0,13) LG 15,@lit_1334_50 ; rd_kafka_headers_serialized_size @@gen_label62 DS 0H BALR 14,15 @@gen_label63 DS 0H ALGR 2,15 LGR 1,2 ; size @L177 DS 0H * *** * *** return size; LGR 15,1 * *** } * * **** Start of Epilogue DCCEPIL * * **** End of Epilogue DS 0D @FRAMESIZE_1334 DC F'184' @lit_1334_49 DC AD(@DATA) @lit_1334_50 DC AD(rd_kafka_headers_serialized_size) DROP 12 * * DSECT for automatic variables in "rd_kafka_msg_wire_size" * (FUNCTION #1334) * @AUTO#rd_kafka_msg_wire_size DSECT DS XL168 rd_kafka_msg_wire_size#size#0 DS 8XL1 ; size * @CODE CSECT * * * * ....... start of rd_kafka_msgq_len @LNAME1337 DS 0H DC X'00000011' DC C'rd_kafka_msgq_len' DC X'00' rd_kafka_msgq_len DCCPRLG CINDEX=1337,BASER=0,FRAME=168,SAVEAREA=NO,ENT* RY=NO,ARCH=ZARCH,LNAMEADDR=@LNAME1337 * ******* End of Prologue * * * *** return (int)rkmq->rkmq_msg_cnt; LG 15,0(0,1) ; rkmq LGF 15,16(0,15) * *** } * * **** Start of Epilogue DCCEPIL * * **** End of Epilogue * * DSECT for automatic variables in "rd_kafka_msgq_len" * (FUNCTION #1337) * @AUTO#rd_kafka_msgq_len DSECT DS XL168 * @CODE CSECT * * * * ....... start of rd_kafka_msgq_size @LNAME1338 DS 0H DC X'00000012' DC C'rd_kafka_msgq_size' DC X'00' rd_kafka_msgq_size DCCPRLG CINDEX=1338,BASER=0,FRAME=168,SAVEAREA=NO,EN* TRY=NO,ARCH=ZARCH,LNAMEADDR=@LNAME1338 * ******* End of Prologue * * * *** return (size_t)rkmq->rkmq_msg_bytes; LG 15,0(0,1) ; rkmq LG 15,24(0,15) ; offset of rkmq_msg_bytes in rd_kafka_msgq_* s * *** } * * **** Start of Epilogue DCCEPIL * * **** End of Epilogue * * DSECT for automatic variables in "rd_kafka_msgq_size" * (FUNCTION #1338) * @AUTO#rd_kafka_msgq_size DSECT DS XL168 * @CODE CSECT * * * * ....... start of rd_kafka_msgq_deq @LNAME1347 DS 0H DC X'00000011' DC C'rd_kafka_msgq_deq' DC X'00' rd_kafka_msgq_deq DCCPRLG CINDEX=1347,BASER=12,FRAME=208,ENTRY=NO,ARCH=* ZARCH,LNAMEADDR=@LNAME1347 * ******* End of Prologue * * * *** if (((do_count))) { LMG 2,3,0(1) ; rkmq LT 15,20(0,1) ; do_count BZ @L221 * *** do { if (((!(rkmq->rkmq_msg_cnt > 0)))) rd_kafka_crash("\ * C:\\asgkafka\\librdkafka\\src\\rdkafka_msg.h",327, __FUNCTION__, (((\ * void *)0)), "assert: " "rkmq->rkmq_msg_cnt > 0"); } while (0); @L213 DS 0H CHSI 16(2),0 BH @L216 LG 15,@lit_1347_52 LA 1,108(0,15) STG 1,168(0,13) MVGHI 176(13),327 LG 1,@lit_1347_53 LA 1,96(0,1) STG 1,184(0,13) XC 192(8,13),192(13) LA 15,150(0,15) STG 15,200(0,13) LA 1,168(0,13) LG 15,@lit_1347_54 ; rd_kafka_crash @@gen_label66 DS 0H BALR 14,15 @@gen_label67 DS 0H @L216 DS 0H * *** do { if (((!(rkmq->rkmq_msg_bytes >= (int64_t)\ * (rkm->rkm_rkmessage.len+rkm->rkm_rkmessage.key_len))))) rd_kafka_cra\ * sh("C:\\asgkafka\\librdkafka\\src\\rdkafka_msg.h",328, __FUNCTION__,\ * (((void *)0)), "assert: " "rkmq->rkmq_msg_bytes >= (int64_t)(rkm->r\ * km_len+rkm->rkm_key_len)"); } while (0); @L217 DS 0H LG 15,24(0,2) ; offset of rkmq_msg_bytes in rd_kafka_msgq_* s LG 1,32(0,3) ; offset of len in rd_kafka_message_s ALG 1,48(0,3) CGR 15,1 BNL @L220 LG 15,@lit_1347_52 LA 1,108(0,15) STG 1,168(0,13) MVGHI 176(13),328 LG 1,@lit_1347_53 LA 1,96(0,1) STG 1,184(0,13) XC 192(8,13),192(13) LA 15,182(0,15) STG 15,200(0,13) LA 1,168(0,13) LG 15,@lit_1347_54 ; rd_kafka_crash @@gen_label69 DS 0H BALR 14,15 @@gen_label70 DS 0H @L220 DS 0H * *** * *** rkmq->rkmq_msg_cnt--; L 15,16(0,2) AHI 15,-1 ST 15,16(0,2) * *** rkmq->rkmq_msg_bytes -= rkm->rkm_rkmessage.len\ * +rkm->rkm_rkmessage.key_len; LG 15,24(0,2) LG 1,32(0,3) ; offset of len in rd_kafka_message_s ALG 1,48(0,3) SLGR 15,1 STG 15,24(0,2) * *** } @L212 DS 0H * *** * *** do { if (((rkm)->rkm_link .tqe_next) != (((void *)0))) (r\ * km)->rkm_link .tqe_next->rkm_link .tqe_prev = (rkm)->rkm_link .tqe_p\ * rev; else (&rkmq->rkmq_msgs)->tqh_last = (rkm)->rkm_link .tqe_prev; \ * *(rkm)->rkm_link .tqe_prev = (rkm)->rkm_link .tqe_next; ; } while ( \ * 0); @L221 DS 0H LTG 15,72(0,3) ; offset of rkm_link in rd_kafka_msg_s BE @L224 LG 15,72(0,3) ; offset of rkm_link in rd_kafka_msg_s LG 1,80(0,3) ; offset of tqe_prev in 0000040 STG 1,80(0,15) ; offset of tqe_prev in 0000040 B @L225 DS 0D @FRAMESIZE_1347 DC F'208' @lit_1347_54 DC AD(rd_kafka_crash) @lit_1347_53 DC AD(@DATA) @lit_1347_52 DC AD(@strings@) @L224 DS 0H LG 15,80(0,3) ; offset of tqe_prev in 0000040 STG 15,8(0,2) ; offset of tqh_last in rd_kafka_msgs_head_s @L225 DS 0H LG 15,80(0,3) ; offset of tqe_prev in 0000040 LG 1,72(0,3) ; offset of rkm_link in rd_kafka_msg_s STG 1,0(0,15) * *** * *** return rkm; LGR 15,3 * *** } * * **** Start of Epilogue DCCEPIL * * **** End of Epilogue DROP 12 * * DSECT for automatic variables in "rd_kafka_msgq_deq" * (FUNCTION #1347) * @AUTO#rd_kafka_msgq_deq DSECT DS XL168 * @CODE CSECT * * * * ....... start of rd_kafka_msgq_first @LNAME1349 DS 0H DC X'00000013' DC C'rd_kafka_msgq_first' DC X'00' rd_kafka_msgq_first DCCPRLG CINDEX=1349,BASER=0,FRAME=168,SAVEAREA=NO,E* NTRY=NO,ARCH=ZARCH,LNAMEADDR=@LNAME1349 * ******* End of Prologue * * * *** return ((&rkmq->rkmq_msgs)->tqh_first); LG 15,0(0,1) ; rkmq LG 15,0(0,15) ; rkmq * *** } * * **** Start of Epilogue DCCEPIL * * **** End of Epilogue * * DSECT for automatic variables in "rd_kafka_msgq_first" * (FUNCTION #1349) * @AUTO#rd_kafka_msgq_first DSECT DS XL168 * @CODE CSECT * * * * ....... start of rd_kafka_msgq_last @LNAME1350 DS 0H DC X'00000012' DC C'rd_kafka_msgq_last' DC X'00' rd_kafka_msgq_last DCCPRLG CINDEX=1350,BASER=0,FRAME=168,SAVEAREA=NO,EN* TRY=NO,ARCH=ZARCH,LNAMEADDR=@LNAME1350 * ******* End of Prologue * * * *** return (*(((struct rd_kafka_msgs_head_s *)((&rkmq->rkm\ * q_msgs)->tqh_last))->tqh_last)); LG 15,0(0,1) ; rkmq LG 15,8(0,15) ; offset of tqh_last in rd_kafka_msgs_head_s LG 15,8(0,15) ; offset of tqh_last in rd_kafka_msgs_head_s LG 15,0(0,15) * *** } * * **** Start of Epilogue DCCEPIL * * **** End of Epilogue * * DSECT for automatic variables in "rd_kafka_msgq_last" * (FUNCTION #1350) * @AUTO#rd_kafka_msgq_last DSECT DS XL168 * @CODE CSECT * * * * ....... start of rd_kafka_msgq_enq @LNAME1357 DS 0H DC X'00000011' DC C'rd_kafka_msgq_enq' DC X'00' rd_kafka_msgq_enq DCCPRLG CINDEX=1357,BASER=0,FRAME=168,SAVEAREA=NO,ENT* RY=NO,ARCH=ZARCH,LNAMEADDR=@LNAME1357 * ******* End of Prologue * * * *** do { (rkm)->rkm_link .tqe_next = (((void *)0)); (rkm)\ * ->rkm_link .tqe_prev = (&rkmq->rkmq_msgs)->tqh_last; *(&rkmq->rkmq_m\ * sgs)->tqh_last = (rkm); (&rkmq->rkmq_msgs)->tqh_last = &(rkm)->rkm_l\ * ink .tqe_next; } while ( 0); LG 15,0(0,1) ; rkmq LG 1,8(0,1) ; rkm @L244 DS 0H LGHI 2,0 ; 0 STG 2,72(0,1) ; offset of rkm_link in rd_kafka_msg_s LG 2,8(0,15) ; offset of tqh_last in rd_kafka_msgs_head_s STG 2,80(0,1) ; offset of tqe_prev in 0000040 LG 2,8(0,15) ; offset of tqh_last in rd_kafka_msgs_head_s STG 1,0(0,2) LA 2,72(0,1) STG 2,8(0,15) ; offset of tqh_last in rd_kafka_msgs_head_s * *** rkmq->rkmq_msg_bytes += rkm->rkm_rkmessage.len+rkm->rk\ * m_rkmessage.key_len; LG 2,24(0,15) LG 3,32(0,1) ; offset of len in rd_kafka_message_s ALG 3,48(0,1) ALGR 2,3 STG 2,24(0,15) * *** return (int)++rkmq->rkmq_msg_cnt; L 1,16(0,15) AHI 1,1 ST 1,16(0,15) LGFR 15,1 * *** } * * **** Start of Epilogue DCCEPIL * * **** End of Epilogue * * DSECT for automatic variables in "rd_kafka_msgq_enq" * (FUNCTION #1357) * @AUTO#rd_kafka_msgq_enq DSECT DS XL168 * @CODE CSECT * * * * ....... start of rd_strlcpy @LNAME1384 DS 0H DC X'0000000A' DC C'rd_strlcpy' DC X'00' rd_strlcpy DCCPRLG CINDEX=1384,BASER=12,FRAME=176,SAVEAREA=NO,ENTRY=NO,* ARCH=ZARCH,LNAMEADDR=@LNAME1384 * ******* End of Prologue * * LG 15,16(0,1) ; dstsize * *** * *** * *** * *** if (((dstsize > 0))) { CLGFI 15,X'00000000' BNH @ret_lab_1384 * *** size_t srclen = __strlen(src); LG 2,8(0,1) LGR 3,2 LGHI 0,0 @@gen_label73 DS 0H SRST 0,2 BC 1,@@gen_label73 SLGR 0,3 * *** size_t copylen = ((srclen) < (dstsize-1) ? (sr\ * clen) : (dstsize-1)); LGR 2,15 AGHI 2,-1 CLGR 0,2 BNL @L252 LGR 15,0 B @L253 DS 0D @lit_1384_60 MVC 0(1,4),0(3) @L252 DS 0H AGHI 15,-1 @L253 DS 0H * *** __memcpy(dst,src,copylen); LG 3,8(0,1) LG 4,0(0,1) LTGR 2,15 BZ @@gen_label77 AGHI 2,-1 SRAG 5,2,8(0) LTGR 5,5 BZ @@gen_label76 @@gen_label75 DS 0H MVC 0(256,4),0(3) LA 4,256(0,4) LA 3,256(0,3) BCTG 5,@@gen_label75 @@gen_label76 DS 0H EX 2,@lit_1384_60 @@gen_label77 DS 0H * *** dst[copylen] = '\0'; LG 1,0(0,1) ; dst LA 15,0(15,1) MVI 0(15),0 * *** } @L251 DS 0H * *** * *** } @ret_lab_1384 DS 0H * * **** Start of Epilogue DCCEPIL * * **** End of Epilogue DROP 12 * * DSECT for automatic variables in "rd_strlcpy" * (FUNCTION #1384) * @AUTO#rd_strlcpy DSECT DS XL168 rd_strlcpy#copylen#1 DS 8XL1 ; copylen ORG @AUTO#rd_strlcpy+168 rd_strlcpy#srclen#1 DS 8XL1 ; srclen * @CODE CSECT * * * * ....... start of rd_crc32_init @LNAME1484 DS 0H DC X'0000000D' DC C'rd_crc32_init' DC X'00' rd_crc32_init DCCPRLG CINDEX=1484,BASER=0,FRAME=168,SAVEAREA=NO,ENTRY=N* O,ARCH=ZARCH,LNAMEADDR=@LNAME1484 * ******* End of Prologue * * * *** * *** * *** * *** return 0xffffffff; LLILF 15,X'FFFFFFFF' ; 4294967295 * *** * *** } * * **** Start of Epilogue DCCEPIL * * **** End of Epilogue * * DSECT for automatic variables in "rd_crc32_init" * (FUNCTION #1484) * @AUTO#rd_crc32_init DSECT DS XL168 * @CODE CSECT * * * * ....... start of rd_crc32_update @LNAME1485 DS 0H DC X'0000000F' DC C'rd_crc32_update' DC X'00' rd_crc32_update DCCPRLG CINDEX=1485,BASER=12,FRAME=176,ENTRY=NO,ARCH=ZA* RCH,LNAMEADDR=@LNAME1485 DCCPRV REG=2 ; Get PRV from DVT LGR 3,1 ; ptr to parm area * ******* End of Prologue * * L 15,4(0,3) ; crc LG 1,8(0,3) ; data * *** * *** * *** * *** * *** unsigned int tbl_idx; * *** * *** while (data_len--) { B @L483 DS 0D @FRAMESIZE_1485 DC F'176' @lit_1485_62 DC Q(crc_table) @L482 DS 0H * *** tbl_idx = (crc ^ *data) & 0xff; LLC 4,0(0,1) LR 5,15 XR 5,4 NILF 5,X'000000FF' * *** crc = (crc_table[tbl_idx] ^ (crc >> 8)) & 0xffffffff; LLGFR 4,5 LLGF 5,@lit_1485_62 ; crc_table SLLG 4,4,2(0) ; *0x4 LA 4,0(5,4) SRL 15,8(0) X 15,0(4,2) * *** * *** data++; LA 1,1(0,1) * *** } @L483 DS 0H LG 4,16(0,3) ; data_len LGR 5,4 AGHI 5,-1 STG 5,16(0,3) ; data_len LTGR 4,4 BNZ @L482 * *** return crc & 0xffffffff; LLGFR 15,15 * *** * *** } * * **** Start of Epilogue DCCEPIL * * **** End of Epilogue DROP 12 * * DSECT for automatic variables in "rd_crc32_update" * (FUNCTION #1485) * @AUTO#rd_crc32_update DSECT DS XL168 rd_crc32_update#tbl_idx#0 DS 1F ; tbl_idx * @CODE CSECT * * * * ....... start of rd_crc32_finalize @LNAME1486 DS 0H DC X'00000011' DC C'rd_crc32_finalize' DC X'00' rd_crc32_finalize DCCPRLG CINDEX=1486,BASER=0,FRAME=168,SAVEAREA=NO,ENT* RY=NO,ARCH=ZARCH,LNAMEADDR=@LNAME1486 * ******* End of Prologue * * * *** * *** * *** * *** return crc ^ 0xffffffff; L 15,4(0,1) ; crc XILF 15,X'FFFFFFFF' LLGFR 15,15 * *** * *** } * * **** Start of Epilogue DCCEPIL * * **** End of Epilogue * * DSECT for automatic variables in "rd_crc32_finalize" * (FUNCTION #1486) * @AUTO#rd_crc32_finalize DSECT DS XL168 * @CODE CSECT * * * * ....... start of rd_kafka_buf_ApiVersion_set @LNAME1516 DS 0H DC X'0000001B' DC C'rd_kafka_buf_ApiVersion_set' DC X'00' rd_kafka_buf_$Api$Version_set DCCPRLG CINDEX=1516,BASER=0,FRAME=168,SAV* EAREA=NO,ENTRY=NO,ARCH=ZARCH,LNAMEADDR=@LNAME1516 * ******* End of Prologue * * * *** rkbuf->rkbuf_reqhdr.ApiVersion = version; LG 15,0(0,1) ; rkbuf MVC 186(2,15),14(1) * *** rkbuf->rkbuf_features = features; L 1,20(0,1) ; features ST 1,328(0,15) ; offset of rkbuf_features in rd_kafka_buf_s * *** } @ret_lab_1516 DS 0H * * **** Start of Epilogue DCCEPIL * * **** End of Epilogue * * DSECT for automatic variables in "rd_kafka_buf_ApiVersion_set" * (FUNCTION #1516) * @AUTO#rd_kafka_buf_$Api$Version_set DSECT DS XL168 * @CODE CSECT * * * * ....... start of rd_kafka_buf_write @LNAME1517 DS 0H DC X'00000012' DC C'rd_kafka_buf_write' DC X'00' rd_kafka_buf_write DCCPRLG CINDEX=1517,BASER=12,FRAME=200,ENTRY=NO,ARCH* =ZARCH,LNAMEADDR=@LNAME1517 LGR 4,1 ; ptr to parm area * ******* End of Prologue * * LG 2,0(0,4) ; rkbuf * *** size_t r; * *** * *** r = rd_buf_write(&rkbuf->rkbuf_buf, data, len); LA 15,40(0,2) STG 15,176(0,13) LG 15,8(0,4) ; data STG 15,184(0,13) LG 15,16(0,4) ; len STG 15,192(0,13) LA 1,176(0,13) LG 15,@lit_1517_64 ; rd_buf_write @@gen_label79 DS 0H BALR 14,15 @@gen_label80 DS 0H LGR 3,15 * *** * *** if (rkbuf->rkbuf_flags & 0x4) TM 35(2),4 BZ @L492 * *** rkbuf->rkbuf_crc = rd_crc32_update(rkbuf->rkbuf_crc, d\ * ata, len); LLGF 15,176(0,2) STG 15,176(0,13) LG 15,8(0,4) ; data STG 15,184(0,13) LG 15,16(0,4) ; len STG 15,192(0,13) LA 1,176(0,13) LG 15,@lit_1517_65 ; rd_crc32_update @@gen_label82 DS 0H BALR 14,15 @@gen_label83 DS 0H ST 15,176(0,2) @L492 DS 0H * *** * *** return r; LGR 15,3 * *** } * * **** Start of Epilogue DCCEPIL * * **** End of Epilogue DS 0D @FRAMESIZE_1517 DC F'200' @lit_1517_64 DC AD(rd_buf_write) @lit_1517_65 DC AD(rd_crc32_update) DROP 12 * * DSECT for automatic variables in "rd_kafka_buf_write" * (FUNCTION #1517) * @AUTO#rd_kafka_buf_write DSECT DS XL168 rd_kafka_buf_write#r#0 DS 8XL1 ; r * @CODE CSECT * * * * ....... start of rd_kafka_buf_update @LNAME1518 DS 0H DC X'00000013' DC C'rd_kafka_buf_update' DC X'00' rd_kafka_buf_update DCCPRLG CINDEX=1518,BASER=12,FRAME=208,ENTRY=NO,ARC* H=ZARCH,LNAMEADDR=@LNAME1518 LGR 2,1 ; ptr to parm area * ******* End of Prologue * * * *** do { if (((!(!(rkbuf->rkbuf_flags & 0x4))))) rd_kafka_cras\ * h("C:\\asgkafka\\librdkafka\\src\\rdkafka_buf.h",944, __FUNCTION__, \ * (((void *)0)), "assert: " "!(rkbuf->rkbuf_flags & RD_KAFKA_OP_F_CRC)\ * "); } while (0); @L493 DS 0H LG 3,0(0,2) ; rkbuf TM 35(3),4 BZ @L496 LG 15,@lit_1518_67 LA 1,256(0,15) STG 1,168(0,13) MVGHI 176(13),944 LG 1,@lit_1518_68 LA 1,324(0,1) STG 1,184(0,13) XC 192(8,13),192(13) LA 15,298(0,15) STG 15,200(0,13) LA 1,168(0,13) LG 15,@lit_1518_69 ; rd_kafka_crash @@gen_label85 DS 0H BALR 14,15 @@gen_label86 DS 0H @L496 DS 0H * *** rd_buf_write_update(&rkbuf->rkbuf_buf, of, data, len); LA 15,40(0,3) STG 15,168(0,13) LG 15,8(0,2) ; of STG 15,176(0,13) LG 15,16(0,2) ; data STG 15,184(0,13) LG 15,24(0,2) ; len STG 15,192(0,13) LA 1,168(0,13) LG 15,@lit_1518_70 ; rd_buf_write_update @@gen_label87 DS 0H BALR 14,15 @@gen_label88 DS 0H * *** } @ret_lab_1518 DS 0H * * **** Start of Epilogue DCCEPIL * * **** End of Epilogue DS 0D @FRAMESIZE_1518 DC F'208' @lit_1518_69 DC AD(rd_kafka_crash) @lit_1518_68 DC AD(@DATA) @lit_1518_67 DC AD(@strings@) @lit_1518_70 DC AD(rd_buf_write_update) DROP 12 * * DSECT for automatic variables in "rd_kafka_buf_update" * (FUNCTION #1518) * @AUTO#rd_kafka_buf_update DSECT DS XL168 * @CODE CSECT * * * * ....... start of rd_kafka_buf_write_i8 @LNAME1519 DS 0H DC X'00000015' DC C'rd_kafka_buf_write_i8' DC X'00' rd_kafka_buf_write_i8 DCCPRLG CINDEX=1519,BASER=12,FRAME=192,ENTRY=NO,A* RCH=ZARCH,LNAMEADDR=@LNAME1519 * ******* End of Prologue * * * *** return rd_kafka_buf_write(rkbuf, &v, sizeof(v)); LG 15,0(0,1) ; rkbuf STG 15,168(0,13) LA 15,15(0,1) STG 15,176(0,13) MVGHI 184(13),1 LA 1,168(0,13) LG 15,@lit_1519_72 ; rd_kafka_buf_write @@gen_label89 DS 0H BALR 14,15 @@gen_label90 DS 0H * *** } * * **** Start of Epilogue DCCEPIL * * **** End of Epilogue DS 0D @FRAMESIZE_1519 DC F'192' @lit_1519_72 DC AD(rd_kafka_buf_write) DROP 12 * * DSECT for automatic variables in "rd_kafka_buf_write_i8" * (FUNCTION #1519) * @AUTO#rd_kafka_buf_write_i8 DSECT DS XL168 * @CODE CSECT * * * * ....... start of rd_kafka_buf_write_i16 @LNAME1521 DS 0H DC X'00000016' DC C'rd_kafka_buf_write_i16' DC X'00' rd_kafka_buf_write_i16 DCCPRLG CINDEX=1521,BASER=12,FRAME=192,ENTRY=NO,* ARCH=ZARCH,LNAMEADDR=@LNAME1521 * ******* End of Prologue * * * *** v = (v); LH 15,14(0,1) ; v STH 15,14(0,1) ; v * *** return rd_kafka_buf_write(rkbuf, &v, sizeof(v)); LG 15,0(0,1) ; rkbuf STG 15,168(0,13) LA 15,14(0,1) STG 15,176(0,13) MVGHI 184(13),2 LA 1,168(0,13) LG 15,@lit_1521_74 ; rd_kafka_buf_write @@gen_label91 DS 0H BALR 14,15 @@gen_label92 DS 0H * *** } * * **** Start of Epilogue DCCEPIL * * **** End of Epilogue DS 0D @FRAMESIZE_1521 DC F'192' @lit_1521_74 DC AD(rd_kafka_buf_write) DROP 12 * * DSECT for automatic variables in "rd_kafka_buf_write_i16" * (FUNCTION #1521) * @AUTO#rd_kafka_buf_write_i16 DSECT DS XL168 * @CODE CSECT * * * * ....... start of rd_kafka_buf_update_i16 @LNAME1522 DS 0H DC X'00000017' DC C'rd_kafka_buf_update_i16' DC X'00' rd_kafka_buf_update_i16 DCCPRLG CINDEX=1522,BASER=12,FRAME=200,ENTRY=NO* ,ARCH=ZARCH,LNAMEADDR=@LNAME1522 * ******* End of Prologue * * * *** v = (v); LH 15,22(0,1) ; v STH 15,22(0,1) ; v * *** rd_kafka_buf_update(rkbuf, of, &v, sizeof(v)); LG 15,0(0,1) ; rkbuf STG 15,168(0,13) LG 15,8(0,1) ; of STG 15,176(0,13) LA 15,22(0,1) STG 15,184(0,13) MVGHI 192(13),2 LA 1,168(0,13) LG 15,@lit_1522_76 ; rd_kafka_buf_update @@gen_label93 DS 0H BALR 14,15 @@gen_label94 DS 0H * *** } @ret_lab_1522 DS 0H * * **** Start of Epilogue DCCEPIL * * **** End of Epilogue DS 0D @FRAMESIZE_1522 DC F'200' @lit_1522_76 DC AD(rd_kafka_buf_update) DROP 12 * * DSECT for automatic variables in "rd_kafka_buf_update_i16" * (FUNCTION #1522) * @AUTO#rd_kafka_buf_update_i16 DSECT DS XL168 * @CODE CSECT * * * * ....... start of rd_kafka_buf_write_i32 @LNAME1523 DS 0H DC X'00000016' DC C'rd_kafka_buf_write_i32' DC X'00' rd_kafka_buf_write_i32 DCCPRLG CINDEX=1523,BASER=12,FRAME=192,ENTRY=NO,* ARCH=ZARCH,LNAMEADDR=@LNAME1523 * ******* End of Prologue * * * *** v = (int32_t)(v); L 15,12(0,1) ; v * *** return rd_kafka_buf_write(rkbuf, &v, sizeof(v)); LG 15,0(0,1) ; rkbuf STG 15,168(0,13) LA 15,12(0,1) STG 15,176(0,13) MVGHI 184(13),4 LA 1,168(0,13) LG 15,@lit_1523_78 ; rd_kafka_buf_write @@gen_label95 DS 0H BALR 14,15 @@gen_label96 DS 0H * *** } * * **** Start of Epilogue DCCEPIL * * **** End of Epilogue DS 0D @FRAMESIZE_1523 DC F'192' @lit_1523_78 DC AD(rd_kafka_buf_write) DROP 12 * * DSECT for automatic variables in "rd_kafka_buf_write_i32" * (FUNCTION #1523) * @AUTO#rd_kafka_buf_write_i32 DSECT DS XL168 * @CODE CSECT * * * * ....... start of rd_kafka_buf_update_i32 @LNAME1524 DS 0H DC X'00000017' DC C'rd_kafka_buf_update_i32' DC X'00' rd_kafka_buf_update_i32 DCCPRLG CINDEX=1524,BASER=12,FRAME=200,ENTRY=NO* ,ARCH=ZARCH,LNAMEADDR=@LNAME1524 * ******* End of Prologue * * * *** v = (v); L 15,20(0,1) ; v * *** rd_kafka_buf_update(rkbuf, of, &v, sizeof(v)); LG 15,0(0,1) ; rkbuf STG 15,168(0,13) LG 15,8(0,1) ; of STG 15,176(0,13) LA 15,20(0,1) STG 15,184(0,13) MVGHI 192(13),4 LA 1,168(0,13) LG 15,@lit_1524_80 ; rd_kafka_buf_update @@gen_label97 DS 0H BALR 14,15 @@gen_label98 DS 0H * *** } @ret_lab_1524 DS 0H * * **** Start of Epilogue DCCEPIL * * **** End of Epilogue DS 0D @FRAMESIZE_1524 DC F'200' @lit_1524_80 DC AD(rd_kafka_buf_update) DROP 12 * * DSECT for automatic variables in "rd_kafka_buf_update_i32" * (FUNCTION #1524) * @AUTO#rd_kafka_buf_update_i32 DSECT DS XL168 * @CODE CSECT * * * * ....... start of rd_kafka_buf_update_u32 @LNAME1525 DS 0H DC X'00000017' DC C'rd_kafka_buf_update_u32' DC X'00' rd_kafka_buf_update_u32 DCCPRLG CINDEX=1525,BASER=12,FRAME=200,ENTRY=NO* ,ARCH=ZARCH,LNAMEADDR=@LNAME1525 * ******* End of Prologue * * * *** v = (v); L 15,20(0,1) ; v * *** rd_kafka_buf_update(rkbuf, of, &v, sizeof(v)); LG 15,0(0,1) ; rkbuf STG 15,168(0,13) LG 15,8(0,1) ; of STG 15,176(0,13) LA 15,20(0,1) STG 15,184(0,13) MVGHI 192(13),4 LA 1,168(0,13) LG 15,@lit_1525_82 ; rd_kafka_buf_update @@gen_label99 DS 0H BALR 14,15 @@gen_label100 DS 0H * *** } @ret_lab_1525 DS 0H * * **** Start of Epilogue DCCEPIL * * **** End of Epilogue DS 0D @FRAMESIZE_1525 DC F'200' @lit_1525_82 DC AD(rd_kafka_buf_update) DROP 12 * * DSECT for automatic variables in "rd_kafka_buf_update_u32" * (FUNCTION #1525) * @AUTO#rd_kafka_buf_update_u32 DSECT DS XL168 * @CODE CSECT * * * * ....... start of rd_kafka_buf_write_i64 @LNAME1527 DS 0H DC X'00000016' DC C'rd_kafka_buf_write_i64' DC X'00' rd_kafka_buf_write_i64 DCCPRLG CINDEX=1527,BASER=12,FRAME=192,ENTRY=NO,* ARCH=ZARCH,LNAMEADDR=@LNAME1527 * ******* End of Prologue * * * *** v = (v); LG 15,8(0,1) ; v * *** return rd_kafka_buf_write(rkbuf, &v, sizeof(v)); LG 15,0(0,1) ; rkbuf STG 15,168(0,13) LA 15,8(0,1) STG 15,176(0,13) MVGHI 184(13),8 LA 1,168(0,13) LG 15,@lit_1527_84 ; rd_kafka_buf_write @@gen_label101 DS 0H BALR 14,15 @@gen_label102 DS 0H * *** } * * **** Start of Epilogue DCCEPIL * * **** End of Epilogue DS 0D @FRAMESIZE_1527 DC F'192' @lit_1527_84 DC AD(rd_kafka_buf_write) DROP 12 * * DSECT for automatic variables in "rd_kafka_buf_write_i64" * (FUNCTION #1527) * @AUTO#rd_kafka_buf_write_i64 DSECT DS XL168 * @CODE CSECT * * * * ....... start of rd_kafka_buf_update_i64 @LNAME1528 DS 0H DC X'00000017' DC C'rd_kafka_buf_update_i64' DC X'00' rd_kafka_buf_update_i64 DCCPRLG CINDEX=1528,BASER=12,FRAME=200,ENTRY=NO* ,ARCH=ZARCH,LNAMEADDR=@LNAME1528 * ******* End of Prologue * * * *** v = (v); LG 15,16(0,1) ; v * *** rd_kafka_buf_update(rkbuf, of, &v, sizeof(v)); LG 15,0(0,1) ; rkbuf STG 15,168(0,13) LG 15,8(0,1) ; of STG 15,176(0,13) LA 15,16(0,1) STG 15,184(0,13) MVGHI 192(13),8 LA 1,168(0,13) LG 15,@lit_1528_86 ; rd_kafka_buf_update @@gen_label103 DS 0H BALR 14,15 @@gen_label104 DS 0H * *** } @ret_lab_1528 DS 0H * * **** Start of Epilogue DCCEPIL * * **** End of Epilogue DS 0D @FRAMESIZE_1528 DC F'200' @lit_1528_86 DC AD(rd_kafka_buf_update) DROP 12 * * DSECT for automatic variables in "rd_kafka_buf_update_i64" * (FUNCTION #1528) * @AUTO#rd_kafka_buf_update_i64 DSECT DS XL168 * @CODE CSECT * * * * ....... start of rd_kafka_buf_write_varint @LNAME1529 DS 0H DC X'00000019' DC C'rd_kafka_buf_write_varint' DC X'00' rd_kafka_buf_write_varint DCCPRLG CINDEX=1529,BASER=12,FRAME=208,ENTRY=* NO,ARCH=ZARCH,LNAMEADDR=@LNAME1529 LGR 2,1 ; ptr to parm area * ******* End of Prologue * * * *** char varint[(sizeof(v) + 1 + (sizeof(v)/7))]; * *** size_t sz; * *** * *** sz = rd_uvarint_enc_i64(varint, sizeof(varint), v); LA 15,168(0,13) STG 15,184(0,13) MVGHI 192(13),10 LG 15,8(0,2) ; v STG 15,200(0,13) LA 1,184(0,13) LG 15,@lit_1529_88 ; rd_uvarint_enc_i64 @@gen_label105 DS 0H BALR 14,15 @@gen_label106 DS 0H * *** * *** return rd_kafka_buf_write(rkbuf, varint, sz); LG 1,0(0,2) ; rkbuf STG 1,184(0,13) LA 1,168(0,13) STG 1,192(0,13) STG 15,200(0,13) LA 1,184(0,13) LG 15,@lit_1529_89 ; rd_kafka_buf_write @@gen_label107 DS 0H BALR 14,15 @@gen_label108 DS 0H * *** } * * **** Start of Epilogue DCCEPIL * * **** End of Epilogue DS 0D @FRAMESIZE_1529 DC F'208' @lit_1529_88 DC AD(rd_uvarint_enc_i64) @lit_1529_89 DC AD(rd_kafka_buf_write) DROP 12 * * DSECT for automatic variables in "rd_kafka_buf_write_varint" * (FUNCTION #1529) * @AUTO#rd_kafka_buf_write_varint DSECT DS XL168 rd_kafka_buf_write_varint#sz#0 DS 8XL1 ; sz ORG @AUTO#rd_kafka_buf_write_varint+168 rd_kafka_buf_write_varint#varint#0 DS 10XL1 ; varint * @CODE CSECT * * * * ....... start of rd_kafka_buf_write_uvarint @LNAME1530 DS 0H DC X'0000001A' DC C'rd_kafka_buf_write_uvarint' DC X'00' rd_kafka_buf_write_uvarint DCCPRLG CINDEX=1530,BASER=12,FRAME=208,ENTRY* =NO,ARCH=ZARCH,LNAMEADDR=@LNAME1530 LGR 2,1 ; ptr to parm area * ******* End of Prologue * * * *** char varint[(sizeof(v) + 1 + (sizeof(v)/7))]; * *** size_t sz; * *** * *** sz = rd_uvarint_enc_u64(varint, sizeof(varint), v); LA 15,168(0,13) STG 15,184(0,13) MVGHI 192(13),10 LG 15,8(0,2) ; v STG 15,200(0,13) LA 1,184(0,13) LG 15,@lit_1530_91 ; rd_uvarint_enc_u64 @@gen_label109 DS 0H BALR 14,15 @@gen_label110 DS 0H * *** * *** return rd_kafka_buf_write(rkbuf, varint, sz); LG 1,0(0,2) ; rkbuf STG 1,184(0,13) LA 1,168(0,13) STG 1,192(0,13) STG 15,200(0,13) LA 1,184(0,13) LG 15,@lit_1530_92 ; rd_kafka_buf_write @@gen_label111 DS 0H BALR 14,15 @@gen_label112 DS 0H * *** } * * **** Start of Epilogue DCCEPIL * * **** End of Epilogue DS 0D @FRAMESIZE_1530 DC F'208' @lit_1530_91 DC AD(rd_uvarint_enc_u64) @lit_1530_92 DC AD(rd_kafka_buf_write) DROP 12 * * DSECT for automatic variables in "rd_kafka_buf_write_uvarint" * (FUNCTION #1530) * @AUTO#rd_kafka_buf_write_uvarint DSECT DS XL168 rd_kafka_buf_write_uvarint#sz#0 DS 8XL1 ; sz ORG @AUTO#rd_kafka_buf_write_uvarint+168 rd_kafka_buf_write_uvarint#varint#0 DS 10XL1 ; varint * @CODE CSECT * * * * ....... start of rd_kafka_buf_write_kstr @LNAME1531 DS 0H DC X'00000017' DC C'rd_kafka_buf_write_kstr' DC X'00' rd_kafka_buf_write_kstr DCCPRLG CINDEX=1531,BASER=12,FRAME=216,ENTRY=NO* ,ARCH=ZARCH,LNAMEADDR=@LNAME1531 * ******* End of Prologue * * LG 4,0(0,1) ; rkbuf LG 2,8(0,1) ; kstr * *** size_t len, r; * *** * *** size_t ulen; * *** size_t alen; * *** char* cbuf; * *** if (kstr && LTGR 15,2 BZ @L505 * *** !(((kstr)->len == -1))) CHSI 0(2),-1 BE @L505 * *** { * *** alen = (((kstr)->len) == -1 ? __strlen((kstr)->str) : \ * ((kstr)->len)); CHSI 0(2),-1 BNE @L506 LG 15,8(0,2) LGR 1,15 LGHI 0,0 @@gen_label116 DS 0H SRST 0,15 BC 1,@@gen_label116 SLGR 0,1 B @L507 DS 0D @FRAMESIZE_1531 DC F'216' @lit_1531_94 DC AD(calloc) @lit_1531_95 DC AD(ebcdic_2_utf8) @lit_1531_96 DC AD(rd_kafka_buf_write_i16) @lit_1531_98 DC AD(rd_kafka_buf_write) @lit_1531_99 DC AD(free) @lit_1531_101 DC AD(rd_kafka_buf_write_uvarint) @L506 DS 0H LGF 0,0(0,2) @L507 DS 0H STG 0,176(0,13) ; alen * *** ulen = alen; STG 0,168(0,13) ; ulen * *** cbuf = calloc(1, ulen); MVGHI 184(13),1 STG 0,192(0,13) LA 1,184(0,13) LG 15,@lit_1531_94 ; calloc @@gen_label117 DS 0H BALR 14,15 @@gen_label118 DS 0H LGR 5,15 * *** ebcdic_2_utf8(cbuf, &ulen, kstr->str, &alen); STG 5,184(0,13) LA 15,168(0,13) STG 15,192(0,13) LG 15,8(0,2) STG 15,200(0,13) LA 15,176(0,13) STG 15,208(0,13) LA 1,184(0,13) LG 15,@lit_1531_95 ; ebcdic_2_utf8 @@gen_label119 DS 0H BALR 14,15 @@gen_label120 DS 0H * *** } @L505 DS 0H * *** * *** * *** if (!(rkbuf->rkbuf_flags & 0x40)) { TM 35(4),64 BNZ @L508 * *** * *** if (!kstr || ((kstr)->len == -1)) LTGR 15,2 BZ @L510 CHSI 0(2),-1 BNE @L509 @L510 DS 0H * *** return rd_kafka_buf_write_i16(rkbuf, -1); STG 4,184(0,13) MVGHI 192(13),-1 LA 1,184(0,13) LG 15,@lit_1531_96 ; rd_kafka_buf_write_i16 @@gen_label124 DS 0H BALR 14,15 @@gen_label125 DS 0H B @ret_lab_1531 @L509 DS 0H * *** * *** # 1148 "C:\asgkafka\librdkafka\src\rdkafka_buf.h" * *** len = ulen; LG 2,168(0,13) ; ulen * *** * *** r = rd_kafka_buf_write_i16(rkbuf, (int16_t)len); STG 4,184(0,13) LGHR 15,2 STG 15,192(0,13) LA 1,184(0,13) LG 15,@lit_1531_96 ; rd_kafka_buf_write_i16 @@gen_label126 DS 0H BALR 14,15 @@gen_label127 DS 0H LGR 3,15 ; r * *** * *** rd_kafka_buf_write(rkbuf, cbuf, len); STMG 4,5,184(13) STG 2,200(0,13) LA 1,184(0,13) LG 15,@lit_1531_98 ; rd_kafka_buf_write @@gen_label128 DS 0H BALR 14,15 @@gen_label129 DS 0H * *** free(cbuf); STG 5,184(0,13) LA 1,184(0,13) LG 15,@lit_1531_99 ; free @@gen_label130 DS 0H BALR 14,15 @@gen_label131 DS 0H * *** * *** * *** * *** * *** return r; LGR 15,3 B @ret_lab_1531 * *** } @L508 DS 0H * *** * *** * *** * *** * *** * *** * *** if (!kstr || ((kstr)->len == -1)) LTGR 15,2 BZ @L512 CHSI 0(2),-1 BNE @L511 @L512 DS 0H * *** len = 0; LGHI 2,0 ; 0 B @L513 * *** else @L511 DS 0H * *** { * *** * *** len = ulen + 1; LG 2,168(0,13) ; ulen AGHI 2,1 * *** * *** * *** * *** * *** } @L513 DS 0H * *** r = rd_kafka_buf_write_uvarint(rkbuf, (uint64_t)len); STG 4,184(0,13) STG 2,192(0,13) LA 1,184(0,13) LG 15,@lit_1531_101 ; rd_kafka_buf_write_uvarint @@gen_label134 DS 0H BALR 14,15 @@gen_label135 DS 0H LGR 3,15 ; r * *** if (len > 1) CLGFI 2,X'00000001' BNH @L514 * *** * *** rd_kafka_buf_write(rkbuf, cbuf, len - 1); STMG 4,5,184(13) AGHI 2,-1 STG 2,200(0,13) LA 1,184(0,13) LG 15,@lit_1531_98 ; rd_kafka_buf_write @@gen_label137 DS 0H BALR 14,15 @@gen_label138 DS 0H @L514 DS 0H * *** free(cbuf); STG 5,184(0,13) LA 1,184(0,13) LG 15,@lit_1531_99 ; free @@gen_label139 DS 0H BALR 14,15 @@gen_label140 DS 0H * *** * *** * *** * *** return r; LGR 15,3 * *** } @ret_lab_1531 DS 0H * * **** Start of Epilogue DCCEPIL * * **** End of Epilogue DROP 12 * * DSECT for automatic variables in "rd_kafka_buf_write_kstr" * (FUNCTION #1531) * @AUTO#rd_kafka_buf_write_kstr DSECT DS XL168 rd_kafka_buf_write_kstr#ulen#0 DS 8XL1 ; ulen ORG @AUTO#rd_kafka_buf_write_kstr+168 rd_kafka_buf_write_kstr#r#0 DS 8XL1 ; r ORG @AUTO#rd_kafka_buf_write_kstr+168 rd_kafka_buf_write_kstr#len#0 DS 8XL1 ; len ORG @AUTO#rd_kafka_buf_write_kstr+176 rd_kafka_buf_write_kstr#alen#0 DS 8XL1 ; alen * @CODE CSECT * * * * ....... start of rd_kafka_buf_write_bytes @LNAME1536 DS 0H DC X'00000018' DC C'rd_kafka_buf_write_bytes' DC X'00' rd_kafka_buf_write_bytes DCCPRLG CINDEX=1536,BASER=12,FRAME=200,ENTRY=N* O,ARCH=ZARCH,LNAMEADDR=@LNAME1536 LGR 5,1 ; ptr to parm area * ******* End of Prologue * * LG 3,8(0,5) ; payload LG 2,16(0,5) ; size * *** size_t r; * *** if (!payload) LTGR 15,3 BNZ @L535 * *** size = -1; LGHI 2,-1 ; -1 @L535 DS 0H * *** r = rd_kafka_buf_write_i32(rkbuf, (int32_t)size); LG 15,0(0,5) ; rkbuf STG 15,176(0,13) LGFR 15,2 STG 15,184(0,13) LA 1,176(0,13) LG 15,@lit_1536_106 ; rd_kafka_buf_write_i32 @@gen_label142 DS 0H BALR 14,15 @@gen_label143 DS 0H LGR 4,15 * *** if (payload) LTGR 15,3 BZ @L536 * *** rd_kafka_buf_write(rkbuf, payload, size); LG 15,0(0,5) ; rkbuf STG 15,176(0,13) STG 3,184(0,13) STG 2,192(0,13) LA 1,176(0,13) LG 15,@lit_1536_107 ; rd_kafka_buf_write @@gen_label145 DS 0H BALR 14,15 @@gen_label146 DS 0H @L536 DS 0H * *** return r; LGR 15,4 * *** } * * **** Start of Epilogue DCCEPIL * * **** End of Epilogue DS 0D @FRAMESIZE_1536 DC F'200' @lit_1536_106 DC AD(rd_kafka_buf_write_i32) @lit_1536_107 DC AD(rd_kafka_buf_write) DROP 12 * * DSECT for automatic variables in "rd_kafka_buf_write_bytes" * (FUNCTION #1536) * @AUTO#rd_kafka_buf_write_bytes DSECT DS XL168 rd_kafka_buf_write_bytes#r#0 DS 8XL1 ; r * @CODE CSECT * * * * ....... start of rd_kafka_buf_crc_init @LNAME1539 DS 0H DC X'00000015' DC C'rd_kafka_buf_crc_init' DC X'00' rd_kafka_buf_crc_init DCCPRLG CINDEX=1539,BASER=12,FRAME=208,ENTRY=NO,A* RCH=ZARCH,LNAMEADDR=@LNAME1539 * ******* End of Prologue * * * *** do { if (((!(!(rkbuf->rkbuf_flags & 0x4))))) rd_kafka_cras\ * h("C:\\asgkafka\\librdkafka\\src\\rdkafka_buf.h",1351, __FUNCTION__,\ * (((void *)0)), "assert: " "!(rkbuf->rkbuf_flags & RD_KAFKA_OP_F_CRC\ * )"); } while (0); LG 2,0(0,1) ; rkbuf @L537 DS 0H TM 35(2),4 BZ @L540 LG 15,@lit_1539_109 LA 1,256(0,15) STG 1,168(0,13) MVGHI 176(13),1351 LG 1,@lit_1539_110 LA 1,376(0,1) STG 1,184(0,13) XC 192(8,13),192(13) LA 15,298(0,15) STG 15,200(0,13) LA 1,168(0,13) LG 15,@lit_1539_111 ; rd_kafka_crash @@gen_label148 DS 0H BALR 14,15 @@gen_label149 DS 0H @L540 DS 0H * *** rkbuf->rkbuf_flags |= 0x4; L 15,32(0,2) OILL 15,4 ST 15,32(0,2) * *** rkbuf->rkbuf_crc = rd_crc32_init(); LG 15,@lit_1539_112 ; rd_crc32_init @@gen_label150 DS 0H BALR 14,15 @@gen_label151 DS 0H ST 15,176(0,2) * *** } @ret_lab_1539 DS 0H * * **** Start of Epilogue DCCEPIL * * **** End of Epilogue DS 0D @FRAMESIZE_1539 DC F'208' @lit_1539_111 DC AD(rd_kafka_crash) @lit_1539_110 DC AD(@DATA) @lit_1539_109 DC AD(@strings@) @lit_1539_112 DC AD(rd_crc32_init) DROP 12 * * DSECT for automatic variables in "rd_kafka_buf_crc_init" * (FUNCTION #1539) * @AUTO#rd_kafka_buf_crc_init DSECT DS XL168 * @CODE CSECT * * * * ....... start of rd_kafka_buf_crc_finalize @LNAME1540 DS 0H DC X'00000019' DC C'rd_kafka_buf_crc_finalize' DC X'00' rd_kafka_buf_crc_finalize DCCPRLG CINDEX=1540,BASER=12,FRAME=176,ENTRY=* NO,ARCH=ZARCH,LNAMEADDR=@LNAME1540 * ******* End of Prologue * * * *** rkbuf->rkbuf_flags &= ~0x4; LG 15,0(0,1) ; rkbuf L 1,32(0,15) NILL 1,65531 ST 1,32(0,15) * *** return rd_crc32_finalize(rkbuf->rkbuf_crc); LLGF 15,176(0,15) STG 15,168(0,13) LA 1,168(0,13) LG 15,@lit_1540_114 ; rd_crc32_finalize @@gen_label152 DS 0H BALR 14,15 @@gen_label153 DS 0H LLGFR 15,15 * *** } * * **** Start of Epilogue DCCEPIL * * **** End of Epilogue DS 0D @FRAMESIZE_1540 DC F'176' @lit_1540_114 DC AD(rd_crc32_finalize) DROP 12 * * DSECT for automatic variables in "rd_kafka_buf_crc_finalize" * (FUNCTION #1540) * @AUTO#rd_kafka_buf_crc_finalize DSECT DS XL168 * @CODE CSECT * * * * ....... start of rd_kafka_compression2str @LNAME1559 DS 0H DC X'00000018' DC C'rd_kafka_compression2str' DC X'00' rd_kafka_compression2str DCCPRLG CINDEX=1559,BASER=12,FRAME=200,ENTRY=N* O,ARCH=ZARCH,LNAMEADDR=@LNAME1559 DCCPRV REG=2 ; Get PRV from DVT * ******* End of Prologue * * * *** static const char *names[RD_KAFKA_COMPRESSION_NUM] = { * *** [RD_KAFKA_COMPRESSION_NONE] = "none", * *** [RD_KAFKA_COMPRESSION_GZIP] = "gzip", * *** [RD_KAFKA_COMPRESSION_SNAPPY] = "snappy", * *** [RD_KAFKA_COMPRESSION_LZ4] = "lz4", * *** [RD_KAFKA_COMPRESSION_ZSTD] = "zstd", LT 15,4(0,1) ; compr * *** [RD_KAFKA_COMPRESSION_INHERIT] = "inherit" * *** static char ret[32]; * *** * *** if ((int)compr < 0 || compr >= RD_KAFKA_COMPRESSION_NU\ * M) { BL @L544 CHI 15,6 BL @L543 @L544 DS 0H * *** snprintf(ret, sizeof(ret), "codec0x%x?", (int)\ * compr); LGF 1,@lit_1559_116 LA 2,0(1,2) LA 1,1264(0,2) STG 1,168(0,13) MVGHI 176(13),32 LG 1,@lit_1559_117 LA 1,348(0,1) STG 1,184(0,13) LGFR 15,15 STG 15,192(0,13) LA 1,168(0,13) LG 15,@lit_1559_118 ; snprintf @@gen_label156 DS 0H BALR 14,15 @@gen_label157 DS 0H * *** * *** return ret; LA 15,1264(0,2) B @ret_lab_1559 DS 0D @FRAMESIZE_1559 DC F'200' @lit_1559_118 DC AD(snprintf) @lit_1559_117 DC AD(@strings@) @lit_1559_116 DC Q(@@STATIC) * *** } @L543 DS 0H * *** * *** return names[compr]; LGFR 15,15 LGF 1,@lit_1559_116 LA 1,0(1,2) SLLG 15,15,3(0) ; *0x8 LG 15,1216(15,1) * *** } @ret_lab_1559 DS 0H * * **** Start of Epilogue DCCEPIL * * **** End of Epilogue DROP 12 * * DSECT for automatic variables in "rd_kafka_compression2str" * (FUNCTION #1559) * @AUTO#rd_kafka_compression2str DSECT DS XL168 * @CODE CSECT * * * * ....... start of rd_kafka_msgset_writer_select_MsgVersion @LNAME1938 DS 0H DC X'00000028' DC C'rd_kafka_msgset_writer_select_Ms' DC C'gVersion' DC X'00' rd_kafka_msgset_writer_select_$Msg$Version DCCPRLG CINDEX=1938,BASER=12* ,FRAME=528,ENTRY=NO,ARCH=ZARCH,LNAMEADDR=@LNAME1938 * ******* End of Prologue * * * *** rd_kafka_broker_t *rkb = msetw->msetw_rkb; LG 2,0(0,1) ; msetw LMG 3,4,136(2) ; offset of msetw_rkb in rd_kafka_msgset_wri* ter_s * *** rd_kafka_toppar_t *rktp = msetw->msetw_rktp; * *** const int16_t max_ApiVersion = rd_kafka_ProduceRequest\ * _max_version; LG 5,@lit_1938_121 LH 15,422(0,5) ; rd_kafka_ProduceRequest_max_version STH 15,424(0,13) ; max_ApiVersion * *** int16_t min_ApiVersion = 0; MVHHI 426(13),0 ; min_ApiVersion * *** int feature; * *** * *** static const struct { * *** int feature; * *** int16_t ApiVersion; * *** } compr_req[RD_KAFKA_COMPRESSION_NUM] = { * *** [RD_KAFKA_COMPRESSION_LZ4] = { 0x80, 0 }, * *** * *** * *** * *** }; * *** * *** if ((feature = rkb->rkb_features & 0x200)) { L 15,280(0,3) ; offset of rkb_features in rd_kafka_broker_* s NILF 15,X'00000200' LTR 15,15 BZ @L630 * *** min_ApiVersion = 3; MVHHI 426(13),3 ; min_ApiVersion * *** msetw->msetw_MsgVersion = 2; MVHI 12(2),2 ; offset of msetw_MsgVersion in rd_kafka_msg* set_writer_s * *** msetw->msetw_features |= feature; O 15,16(0,2) ST 15,16(0,2) * *** } else if ((feature = rkb->rkb_features & 0x1)) { B @L631 DS 0D @FRAMESIZE_1938 DC F'528' @lit_1938_121 DC AD(@DATA) @lit_1938_122 DC AD(rd_kafka_broker_$Api$Version_supported) @lit_1938_126 DC AD(rd_interval0) @lit_1938_125 DC FD'86400000000' 0x000000141dd76000 @lit_1938_128 DC AD(mtx_lock) @lit_1938_130 DC AD(rd_strlcpy) @lit_1938_132 DC AD(mtx_unlock) @lit_1938_134 DC AD(rd_kafka_compression2str) @lit_1938_136 DC AD(rd_kafka_log0) @lit_1938_135 DC AD(@strings@) @lit_1938_157 DC AD(rd_kafka_msgq_first) @lit_1938_159 DC AD(__assert) @lit_1938_160 DC AD(rd_clock) @L630 DS 0H L 15,280(0,3) ; offset of rkb_features in rd_kafka_broker_* s NILF 15,X'00000001' LTR 15,15 BZ @L632 * *** min_ApiVersion = 2; MVHHI 426(13),2 ; min_ApiVersion * *** msetw->msetw_MsgVersion = 1; MVHI 12(2),1 ; offset of msetw_MsgVersion in rd_kafka_msg* set_writer_s * *** msetw->msetw_features |= feature; O 15,16(0,2) ST 15,16(0,2) * *** } else { B @L631 @L632 DS 0H * *** if ((feature = * *** rkb->rkb_features & 0x8)) { L 15,280(0,3) ; offset of rkb_features in rd_kafka_broker_* s NILF 15,X'00000008' LTR 15,15 BZ @L634 * *** min_ApiVersion = 1; MVHHI 426(13),1 ; min_ApiVersion * *** msetw->msetw_features |= feature; O 15,16(0,2) ST 15,16(0,2) * *** } else B @L635 @L634 DS 0H * *** min_ApiVersion = 0; MVHHI 426(13),0 ; min_ApiVersion @L635 DS 0H * *** msetw->msetw_MsgVersion = 0; MVHI 12(2),0 ; offset of msetw_MsgVersion in rd_kafka_msg* set_writer_s * *** } @L633 DS 0H * *** * *** msetw->msetw_compression = rktp->rktp_rkt->rkt_conf.co\ * mpression_codec; @L631 DS 0H LG 15,96(0,4) ; offset of rktp_rkt in rd_kafka_toppar_s L 15,976(0,15) ; offset of compression_codec in rd_kafka_t* opic_conf_s ST 15,20(0,2) ; offset of msetw_compression in rd_kafka_ms* gset_writer_s * *** * *** * *** * *** * *** * *** if (msetw->msetw_compression && LTR 15,15 BZ @L636 * *** (rd_kafka_broker_ApiVersion_supported( * *** rkb, 0, * *** 0, compr_req[msetw->msetw_compression].Api\ * Version, * *** ((void *)0)) == -1 || STG 3,432(0,13) XC 440(16,13),440(13) LGF 15,20(0,2) SLLG 15,15,3(0) ; *0x8 LGH 15,428(15,5) STG 15,456(0,13) XC 464(8,13),464(13) LA 1,432(0,13) LG 15,@lit_1938_122 ; rd_kafka_broker_ApiVersion_supported @@gen_label162 DS 0H BALR 14,15 @@gen_label163 DS 0H LHR 15,15 CHI 15,-1 BE @L637 * *** (compr_req[msetw->msetw_compression].feature && LGF 15,20(0,2) SLLG 15,15,3(0) ; *0x8 LT 15,424(15,5) BZ @L636 * *** !(msetw->msetw_rkb->rkb_features & * *** compr_req[msetw->msetw_compression].feature)))\ * ) { LG 15,136(0,2) ; offset of msetw_rkb in rd_kafka_msgset_wri* ter_s L 15,280(0,15) ; offset of rkb_features in rd_kafka_broker* _s LGF 1,20(0,2) SLLG 1,1,3(0) ; *0x8 N 15,424(1,5) BNZ @L636 @L637 DS 0H * *** if (((rd_interval0(&rkb->rkb_suppress.unsuppor\ * ted_compression,(rd_ts_t)86400 * 1000 * 1000,0,0) > 0))) LGHI 15,5928 ; 5928 LA 15,0(15,3) STG 15,432(0,13) LG 15,@lit_1938_125 ; 86400000000 STG 15,440(0,13) XC 448(16,13),448(13) LA 1,432(0,13) LG 15,@lit_1938_126 ; rd_interval0 @@gen_label167 DS 0H BALR 14,15 @@gen_label168 DS 0H LTGR 15,15 BNH @L645 * *** * *** * *** * *** do { char _logname[256]; mtx_lock(&(rk\ * b)->rkb_logname_lock); rd_strlcpy(_logname, rkb->rkb_logname, sizeof\ * (_logname)); mtx_unlock(&(rkb)->rkb_logname_lock); rd_kafka_log0(&(r\ * kb)->rkb_rk->rk_conf, (rkb)->rkb_rk, _logname, 5, 0x0, "COMPRESSION"\ * , "%.*s [%" "d" "]: " "Broker does not support compression " "type %\ * s: not compressing batch", (int)((rktp->rktp_rkt->rkt_topic)->len ==\ * -1 ? 0 : (rktp->rktp_rkt->rkt_topic)->len), (rktp->rktp_rkt->rkt_to\ * pic)->str, rktp->rktp_partition, rd_kafka_compression2str( msetw->ms\ * etw_compression)); } while (0); @L639 DS 0H LGHI 5,5688 ; 5688 LA 15,0(5,3) STG 15,432(0,13) LA 1,432(0,13) LG 15,@lit_1938_128 ; mtx_lock @@gen_label170 DS 0H BALR 14,15 @@gen_label171 DS 0H LA 15,168(0,13) STG 15,432(0,13) LGHI 15,5680 ; 5680 LG 15,0(15,3) STG 15,440(0,13) MVGHI 448(13),256 LA 1,432(0,13) LG 15,@lit_1938_130 ; rd_strlcpy @@gen_label172 DS 0H BALR 14,15 @@gen_label173 DS 0H LA 15,0(5,3) STG 15,432(0,13) LA 1,432(0,13) LG 15,@lit_1938_132 ; mtx_unlock @@gen_label174 DS 0H BALR 14,15 @@gen_label175 DS 0H LG 15,96(0,4) ; offset of rktp_rkt in rd_kafka_toppar_s LG 15,128(0,15) ; offset of rkt_topic in rd_kafka_topic_s CHSI 0(15),-1 BNE @L642 LHI 5,0 ; 0 B @L643 @L642 DS 0H LG 15,96(0,4) ; offset of rktp_rkt in rd_kafka_toppar_s LG 15,128(0,15) ; offset of rkt_topic in rd_kafka_topic_s L 5,0(0,15) @L643 DS 0H LGF 15,20(0,2) STG 15,432(0,13) LA 1,432(0,13) LG 15,@lit_1938_134 ; rd_kafka_compression2str @@gen_label177 DS 0H BALR 14,15 @@gen_label178 DS 0H LG 1,4048(0,3) ; offset of rkb_rk in rd_kafka_broker_s LA 1,528(0,1) STG 1,432(0,13) LG 1,4048(0,3) STG 1,440(0,13) LA 1,168(0,13) STG 1,448(0,13) MVGHI 456(13),5 XC 464(8,13),464(13) LG 1,@lit_1938_135 LA 6,360(0,1) STG 6,472(0,13) LA 1,372(0,1) STG 1,480(0,13) LGFR 1,5 STG 1,488(0,13) LG 1,96(0,4) ; offset of rktp_rkt in rd_kafka_toppar_s LG 1,128(0,1) ; offset of rkt_topic in rd_kafka_topic_s LG 1,8(0,1) STG 1,496(0,13) LGF 1,104(0,4) STG 1,504(0,13) STG 15,512(0,13) LA 1,432(0,13) LG 15,@lit_1938_136 ; rd_kafka_log0 @@gen_label179 DS 0H BALR 14,15 @@gen_label180 DS 0H * *** # 166 "C:\asgkafka\librdkafka\src\rdkafka_msgset_writer.c" * *** else B @L644 * *** do { if ((((rkb)->rkb_rk->rk_conf.debu\ * g & (0x40)))) { do { char _logname[256]; mtx_lock(&(rkb)->rkb_lognam\ * e_lock); rd_strlcpy(_logname, rkb->rkb_logname, sizeof(_logname)); m\ * tx_unlock(&(rkb)->rkb_logname_lock); rd_kafka_log0(&(rkb)->rkb_rk->r\ * k_conf, (rkb)->rkb_rk, _logname, 7, (0x40), "PRODUCE", "%.*s [%" "d"\ * "]: " "Broker does not support compression " "type %s: not compress\ * ing batch", (int)((rktp->rktp_rkt->rkt_topic)->len == -1 ? 0 : (rktp\ * ->rktp_rkt->rkt_topic)->len), (rktp->rktp_rkt->rkt_topic)->str, rktp\ * ->rktp_partition, rd_kafka_compression2str( msetw->msetw_compression\ * )); } while (0); } } while (0); @L645 DS 0H LG 15,4048(0,3) ; offset of rkb_rk in rd_kafka_broker_s TM 803(15),64 BZ @L648 @L649 DS 0H LGHI 5,5688 ; 5688 LA 15,0(5,3) STG 15,432(0,13) LA 1,432(0,13) LG 15,@lit_1938_128 ; mtx_lock @@gen_label182 DS 0H BALR 14,15 @@gen_label183 DS 0H LA 15,168(0,13) STG 15,432(0,13) LGHI 15,5680 ; 5680 LG 15,0(15,3) STG 15,440(0,13) MVGHI 448(13),256 LA 1,432(0,13) LG 15,@lit_1938_130 ; rd_strlcpy @@gen_label184 DS 0H BALR 14,15 @@gen_label185 DS 0H LA 15,0(5,3) STG 15,432(0,13) LA 1,432(0,13) LG 15,@lit_1938_132 ; mtx_unlock @@gen_label186 DS 0H BALR 14,15 @@gen_label187 DS 0H LG 15,96(0,4) ; offset of rktp_rkt in rd_kafka_toppar_s LG 15,128(0,15) ; offset of rkt_topic in rd_kafka_topic_s CHSI 0(15),-1 BNE @L652 LHI 5,0 ; 0 B @L653 @L652 DS 0H LG 15,96(0,4) ; offset of rktp_rkt in rd_kafka_toppar_s LG 15,128(0,15) ; offset of rkt_topic in rd_kafka_topic_s L 5,0(0,15) @L653 DS 0H LGF 15,20(0,2) STG 15,432(0,13) LA 1,432(0,13) LG 15,@lit_1938_134 ; rd_kafka_compression2str @@gen_label189 DS 0H BALR 14,15 @@gen_label190 DS 0H LG 1,4048(0,3) ; offset of rkb_rk in rd_kafka_broker_s LA 1,528(0,1) STG 1,432(0,13) LG 1,4048(0,3) STG 1,440(0,13) LA 1,168(0,13) STG 1,448(0,13) MVGHI 456(13),7 MVGHI 464(13),64 LG 1,@lit_1938_135 LA 6,450(0,1) STG 6,472(0,13) LA 1,372(0,1) STG 1,480(0,13) LGFR 1,5 STG 1,488(0,13) LG 1,96(0,4) ; offset of rktp_rkt in rd_kafka_toppar_s LG 1,128(0,1) ; offset of rkt_topic in rd_kafka_topic_s LG 1,8(0,1) STG 1,496(0,13) LGF 1,104(0,4) STG 1,504(0,13) STG 15,512(0,13) LA 1,432(0,13) LG 15,@lit_1938_136 ; rd_kafka_log0 @@gen_label191 DS 0H BALR 14,15 @@gen_label192 DS 0H @L648 DS 0H * *** * *** # 176 "C:\asgkafka\librdkafka\src\rdkafka_msgset_writer.c" * *** msetw->msetw_compression = RD_KAFKA_COMPRESSIO\ * N_NONE; @L644 DS 0H MVHI 20(2),0 ; offset of msetw_compression in rd_kafka_ms* gset_writer_s * *** } else { B @L656 @L636 DS 0H * *** * *** msetw->msetw_features |= * *** compr_req[msetw->msetw_compression].fe\ * ature; L 15,16(0,2) LGF 1,20(0,2) SLLG 1,1,3(0) ; *0x8 O 15,424(1,5) ST 15,16(0,2) * *** * *** if (min_ApiVersion < * *** compr_req[msetw->msetw_compression].ApiVer\ * sion) LH 15,426(0,13) ; min_ApiVersion LGF 1,20(0,2) SLLG 1,1,3(0) ; *0x8 CH 15,428(1,5) BNL @L656 * *** min_ApiVersion = * *** compr_req[msetw->msetw_compres\ * sion].ApiVersion; LGF 15,20(0,2) SLLG 15,15,3(0) ; *0x8 LH 15,428(15,5) ; offset of ApiVersion in 0000156 STH 15,426(0,13) ; min_ApiVersion @L655 DS 0H * *** } @L654 DS 0H * *** * *** * *** switch (msetw->msetw_MsgVersion) B @L656 * *** { * *** case 2: @L658 DS 0H * *** msetw->msetw_relative_offsets = 1; MVHI 72(2),1 ; offset of msetw_relative_offsets in rd_kaf* ka_msgset_writer_s * *** break; B @L657 * *** case 1: @L659 DS 0H * *** if (msetw->msetw_compression != RD_KAFKA_COMPR\ * ESSION_NONE) CHSI 20(2),0 BE @L657 * *** msetw->msetw_relative_offsets = 1; MVHI 72(2),1 ; offset of msetw_relative_offsets in rd_kaf* ka_msgset_writer_s @L660 DS 0H * *** break; B @L657 * *** } @L656 DS 0H L 15,12(0,2) ; offset of msetw_MsgVersion in rd_kafka_msg* set_writer_s CHI 15,1 BL @L657 CHI 15,1 BE @L659 CHI 15,2 BE @L658 @L657 DS 0H * *** * *** * *** msetw->msetw_ApiVersion = rd_kafka_broker_ApiVersion_s\ * upported( * *** rkb, * *** 0, min_ApiVersion, max_ApiVersion, ((void *)0)\ * ); STG 3,432(0,13) XC 440(8,13),440(13) LGH 15,426(0,13) ; min_ApiVersion STG 15,448(0,13) LGH 15,424(0,13) ; max_ApiVersion STG 15,456(0,13) XC 464(8,13),464(13) LA 1,432(0,13) LG 15,@lit_1938_122 ; rd_kafka_broker_ApiVersion_supported @@gen_label195 DS 0H BALR 14,15 @@gen_label196 DS 0H STH 15,8(0,2) * *** * *** if (msetw->msetw_ApiVersion == -1) { LH 15,8(0,2) CHI 15,-1 BNE @L661 * *** rd_kafka_msg_t *rkm; * *** * *** * *** * *** do { char _logname[256]; mtx_lock(&(rkb)->rkb_\ * logname_lock); rd_strlcpy(_logname, rkb->rkb_logname, sizeof(_lognam\ * e)); mtx_unlock(&(rkb)->rkb_logname_lock); rd_kafka_log0(&(rkb)->rkb\ * _rk->rk_conf, (rkb)->rkb_rk, _logname, 3, 0x0, "PRODUCE", "%.*s [%" \ * "d" "]: " "No viable ProduceRequest ApiVersions (v%d..%d) " "support\ * ed by broker: unable to produce", (int)((rktp->rktp_rkt->rkt_topic)-\ * >len == -1 ? 0 : (rktp->rktp_rkt->rkt_topic)->len), (rktp->rktp_rkt-\ * >rkt_topic)->str, rktp->rktp_partition, min_ApiVersion, max_ApiVersi\ * on); } while (0); @L662 DS 0H LGHI 5,5688 ; 5688 LA 15,0(5,3) STG 15,432(0,13) LA 1,432(0,13) LG 15,@lit_1938_128 ; mtx_lock @@gen_label198 DS 0H BALR 14,15 @@gen_label199 DS 0H LA 15,168(0,13) STG 15,432(0,13) LGHI 15,5680 ; 5680 LG 15,0(15,3) STG 15,440(0,13) MVGHI 448(13),256 LA 1,432(0,13) LG 15,@lit_1938_130 ; rd_strlcpy @@gen_label200 DS 0H BALR 14,15 @@gen_label201 DS 0H LA 15,0(5,3) STG 15,432(0,13) LA 1,432(0,13) LG 15,@lit_1938_132 ; mtx_unlock @@gen_label202 DS 0H BALR 14,15 @@gen_label203 DS 0H LG 15,96(0,4) ; offset of rktp_rkt in rd_kafka_toppar_s LG 15,128(0,15) ; offset of rkt_topic in rd_kafka_topic_s CHSI 0(15),-1 BNE @L665 LHI 15,0 ; 0 B @L666 @L665 DS 0H LG 15,96(0,4) ; offset of rktp_rkt in rd_kafka_toppar_s LG 15,128(0,15) ; offset of rkt_topic in rd_kafka_topic_s L 15,0(0,15) @L666 DS 0H LG 1,4048(0,3) ; offset of rkb_rk in rd_kafka_broker_s LA 1,528(0,1) STG 1,432(0,13) LG 1,4048(0,3) STG 1,440(0,13) LA 1,168(0,13) STG 1,448(0,13) MVGHI 456(13),3 XC 464(8,13),464(13) LG 3,@lit_1938_135 LA 1,450(0,3) STG 1,472(0,13) LA 1,458(0,3) STG 1,480(0,13) LGFR 15,15 STG 15,488(0,13) LG 15,96(0,4) ; offset of rktp_rkt in rd_kafka_toppar_s LG 15,128(0,15) ; offset of rkt_topic in rd_kafka_topic_s LG 15,8(0,15) STG 15,496(0,13) LGF 15,104(0,4) STG 15,504(0,13) LH 15,426(0,13) ; min_ApiVersion LGFR 15,15 STG 15,512(0,13) LH 15,424(0,13) ; max_ApiVersion LGFR 15,15 STG 15,520(0,13) LA 1,432(0,13) LG 15,@lit_1938_136 ; rd_kafka_log0 @@gen_label205 DS 0H BALR 14,15 @@gen_label206 DS 0H * *** * *** # 218 "C:\asgkafka\librdkafka\src\rdkafka_msgset_writer.c" * *** * *** rkm = rd_kafka_msgq_first(msetw->msetw_msgq); LG 15,152(0,2) STG 15,432(0,13) LA 1,432(0,13) LG 15,@lit_1938_157 ; rd_kafka_msgq_first @@gen_label207 DS 0H BALR 14,15 @@gen_label208 DS 0H LGR 2,15 * *** ((rkm) ? (void)0 : __assert(__func__, "C:\\asg\ * kafka\\librdkafka\\src\\rdkafka_msgset_writer.c", 220, "rkm")); LTGR 15,2 BNZ @L668 @L667 DS 0H LG 15,@lit_1938_121 LA 15,472(0,15) STG 15,432(0,13) LA 15,556(0,3) STG 15,440(0,13) MVGHI 448(13),220 LA 15,608(0,3) STG 15,456(0,13) LA 1,432(0,13) LG 15,@lit_1938_159 ; __assert @@gen_label210 DS 0H BALR 14,15 @@gen_label211 DS 0H @L668 DS 0H * *** rkm->rkm_u.producer.ts_backoff = rd_clock() + \ * (5 * 1000*1000); LG 15,@lit_1938_160 ; rd_clock @@gen_label212 DS 0H BALR 14,15 @@gen_label213 DS 0H AGFI 15,X'004C4B40' STG 15,136(0,2) * *** return -1; LGHI 15,-1 ; -1 B @ret_lab_1938 * *** } @L661 DS 0H * *** * *** * *** * *** ((msetw->msetw_ApiVersion >= min_ApiVersion) ? (void)0\ * : __assert(__func__, "C:\\asgkafka\\librdkafka\\src\\rdkafka_msgset\ * _writer.c", 227, "msetw->msetw_ApiVersion >= min_ApiVersion")); LH 15,8(0,2) CH 15,426(0,13) BNL @L670 @L669 DS 0H LG 15,@lit_1938_121 LA 15,472(0,15) STG 15,432(0,13) LG 15,@lit_1938_135 LA 1,556(0,15) STG 1,440(0,13) MVGHI 448(13),227 LA 15,612(0,15) STG 15,456(0,13) LA 1,432(0,13) LG 15,@lit_1938_159 ; __assert @@gen_label215 DS 0H BALR 14,15 @@gen_label216 DS 0H @L670 DS 0H * *** * *** return 0; LGHI 15,0 ; 0 * *** } @ret_lab_1938 DS 0H * * **** Start of Epilogue DCCEPIL * * **** End of Epilogue DROP 12 * * DSECT for automatic variables in "rd_kafka_msgset_writer_select_Ms * gVersion" * (FUNCTION #1938) * @AUTO#rd_kafka_msgset_writer_select_$Msg$Version DSECT DS XL168 rd_kafka_msgset_writer_select_$Msg$Version#_logname#13 DS 256XL1 ; _log* name ORG @AUTO#rd_kafka_msgset_writer_select_$Msg$Version+168 rd_kafka_msgset_writer_select_$Msg$Version#_logname#9 DS 256XL1 ; _logn* ame ORG @AUTO#rd_kafka_msgset_writer_select_$Msg$Version+168 rd_kafka_msgset_writer_select_$Msg$Version#_logname#6 DS 256XL1 ; _logn* ame ORG @AUTO#rd_kafka_msgset_writer_select_$Msg$Version+168 rd_kafka_msgset_writer_select_$Msg$Version#feature#0 DS 1F ; feature ORG @AUTO#rd_kafka_msgset_writer_select_$Msg$Version+424 rd_kafka_msgset_writer_select_$Msg$Version#max_$Api$Version#0 DS 2XL1 ;* max_ApiVersion ORG @AUTO#rd_kafka_msgset_writer_select_$Msg$Version+426 rd_kafka_msgset_writer_select_$Msg$Version#min_$Api$Version#0 DS 2XL1 ;* min_ApiVersion * @CODE CSECT * * * * ....... start of rd_kafka_msgset_writer_alloc_buf @LNAME1939 DS 0H DC X'00000020' DC C'rd_kafka_msgset_writer_alloc_buf' DC X'00' rd_kafka_msgset_writer_alloc_buf DCCPRLG CINDEX=1939,BASER=12,FRAME=216* ,ENTRY=NO,ARCH=ZARCH,LNAMEADDR=@LNAME1939 * ******* End of Prologue * * * *** rd_kafka_t *rk = msetw->msetw_rkb->rkb_rk; LG 5,0(0,1) ; msetw LG 15,136(0,5) ; offset of msetw_rkb in rd_kafka_msgset_wri* ter_s LG 6,4048(0,15) ; offset of rkb_rk in rd_kafka_broker_s * *** size_t msg_overhead = 0; LGHI 4,0 ; 0 * *** size_t hdrsize = 0; LGR 2,4 ; hdrsize * *** size_t msgsetsize = 0; LGR 3,4 ; msgsetsize * *** size_t bufsize; * *** * *** do { if (((!(!msetw->msetw_rkbuf)))) rd_kafka_crash("C\ * :\\asgkafka\\librdkafka\\src\\rdkafka_msgset_writer.c",250, __FUNCTI\ * ON__, (((void *)0)), "assert: " "!msetw->msetw_rkbuf"); } while (0); @L671 DS 0H LTG 15,0(0,5) ; msetw BZ @L675 LG 15,@lit_1939_170 LA 1,556(0,15) STG 1,176(0,13) MVGHI 184(13),250 LG 1,@lit_1939_171 LA 1,514(0,1) STG 1,192(0,13) XC 200(8,13),200(13) LA 15,654(0,15) STG 15,208(0,13) LA 1,176(0,13) LG 15,@lit_1939_172 ; rd_kafka_crash @@gen_label218 DS 0H BALR 14,15 @@gen_label219 DS 0H @L674 DS 0H * *** * *** * *** * *** # 267 "C:\asgkafka\librdkafka\src\rdkafka_msgset_writer.c" * *** * *** * *** * *** switch (msetw->msetw_ApiVersion) B @L675 DS 0D @FRAMESIZE_1939 DC F'216' @lit_1939_172 DC AD(rd_kafka_crash) @lit_1939_171 DC AD(@DATA) @lit_1939_170 DC AD(@strings@) @lit_1939_177 DC AD(__assert) @lit_1939_178 DC FD'7' 0x0000000000000007 @lit_1939_179 DC FD'248' 0x00000000000000f8 @lit_1939_185 DC AD(rd_kafka_msgq_size) @lit_1939_186 DC AD(rd_kafka_buf_new_request0) @lit_1939_187 DC AD(rd_kafka_buf_$Api$Version_set) * *** { * *** case 7: * *** case 6: * *** case 5: * *** case 4: * *** case 3: @L681 DS 0H * *** * *** hdrsize += (2 + (((rk->rk_eos.transactional_id\ * )->len) == -1 ? 0 : ((rk->rk_eos.transactional_id)->len))); LG 15,3376(0,6) ; offset of transactional_id in 0000146 CHSI 0(15),-1 BNE @L682 LHI 15,0 ; 0 B @L683 @L682 DS 0H LG 15,3376(0,6) ; offset of transactional_id in 0000146 L 15,0(0,15) @L683 DS 0H AHI 15,2 LGFR 15,15 ALGR 2,15 * *** * *** case 0: @L684 DS 0H * *** case 1: @L685 DS 0H * *** case 2: @L686 DS 0H * *** hdrsize += * *** * *** 2 + 4 + 4 + * *** * *** (2 + (((msetw->msetw_rktp-> rktp_rkt->\ * rkt_topic)->len) == -1 ? 0 : ((msetw->msetw_rktp-> rktp_rkt->rkt_top\ * ic)->len))) + LG 15,144(0,5) ; offset of msetw_rktp in rd_kafka_msgset_wr* iter_s LG 15,96(0,15) ; offset of rktp_rkt in rd_kafka_toppar_s LG 15,128(0,15) ; offset of rkt_topic in rd_kafka_topic_s CHSI 0(15),-1 BNE @L687 LHI 15,0 ; 0 B @L688 @L687 DS 0H LG 15,144(0,5) ; offset of msetw_rktp in rd_kafka_msgset_wr* iter_s LG 15,96(0,15) ; offset of rktp_rkt in rd_kafka_toppar_s LG 15,128(0,15) ; offset of rkt_topic in rd_kafka_topic_s L 15,0(0,15) @L688 DS 0H * *** * *** * *** 4 + 4 + 4; AHI 15,2 AHI 15,10 AHI 15,4 AHI 15,4 AHI 15,4 LGFR 15,15 ALGR 2,15 * *** msgsetsize += 4; AGHI 3,4 * *** break; B @L692 * *** * *** default: * *** ((!*"/* NOTREACHED */ violated") ? (void)0 : _\ * _assert(__func__, "C:\\asgkafka\\librdkafka\\src\\rdkafka_msgset_wri\ * ter.c", 295, "!*\"/* NOTREACHED */ violated\"")); @L689 DS 0H LG 15,@lit_1939_170 LA 1,682(0,15) CLI 0(1),0 BE @L692 @L690 DS 0H LG 1,@lit_1939_171 LA 1,514(0,1) STG 1,176(0,13) LA 1,556(0,15) STG 1,184(0,13) MVGHI 192(13),295 LA 15,708(0,15) STG 15,200(0,13) LA 1,176(0,13) LG 15,@lit_1939_177 ; __assert @@gen_label223 DS 0H BALR 14,15 @@gen_label224 DS 0H @L691 DS 0H * *** } B @L692 @L675 DS 0H LH 15,8(0,5) CLFI 15,X'00000007' BH @L689 LGFR 15,15 LGHI 1,1 SLLG 1,1,0(15) LGR 15,1 NG 15,@lit_1939_178 BNZ @L686 NG 1,@lit_1939_179 BNZ @L681 B @L689 * *** * *** * *** * *** * *** * *** * *** switch (msetw->msetw_MsgVersion) * *** { * *** case 0: @L694 DS 0H * *** * *** msg_overhead = ((8+4) + (4+1+1+4+4)); LGHI 4,26 ; 26 * *** break; B @L693 * *** case 1: @L695 DS 0H * *** * *** msg_overhead = ((8+4) + (4+1+1+8+4+4)); LGHI 4,34 ; 34 * *** break; B @L693 * *** * *** case 2: @L696 DS 0H * *** * *** msg_overhead += ( (sizeof(int32_t) + 1 + (size\ * of(int32_t)/7)) + 1 + (sizeof(int64_t) + 1 + (sizeof(int64_t)/7)) + \ * (sizeof(int32_t) + 1 + (sizeof(int32_t)/7)) + (sizeof(int32_t) + 1 +\ * (sizeof(int32_t)/7)) + (sizeof(int32_t) + 1 + (sizeof(int32_t)/7)) \ * + (sizeof(int32_t) + 1 + (sizeof(int32_t)/7)) ); AGHI 4,36 * *** * *** * *** msgsetsize += * *** 8 + * *** 4 + * *** 4 + * *** 1 + * *** 4 + * *** 2 + * *** 4 + * *** 8 + * *** 8 + * *** 8 + * *** 2 + * *** 4 + * *** 4 ; AGHI 3,61 * *** break; B @L693 * *** * *** default: * *** ((!*"/* NOTREACHED */ violated") ? (void)0 : _\ * _assert(__func__, "C:\\asgkafka\\librdkafka\\src\\rdkafka_msgset_wri\ * ter.c", 336, "!*\"/* NOTREACHED */ violated\"")); @L697 DS 0H LG 15,@lit_1939_170 LA 1,682(0,15) CLI 0(1),0 BE @L693 @L698 DS 0H LG 1,@lit_1939_171 LA 1,514(0,1) STG 1,176(0,13) LA 1,556(0,15) STG 1,184(0,13) MVGHI 192(13),336 LA 15,708(0,15) STG 15,200(0,13) LA 1,176(0,13) LG 15,@lit_1939_177 ; __assert @@gen_label226 DS 0H BALR 14,15 @@gen_label227 DS 0H @L699 DS 0H * *** } B @L693 @L692 DS 0H LT 15,12(0,5) ; offset of msetw_MsgVersion in rd_kafka_msg* set_writer_s BL @L697 LTR 15,15 BE @L694 CHI 15,1 BE @L695 CHI 15,2 BE @L696 B @L697 @L693 DS 0H * *** * *** * *** * *** * *** bufsize = hdrsize + msgsetsize; ALGR 2,3 * *** * *** * *** * *** * *** if (rk->rk_conf.msg_copy_max_size > 0) { CHSI 760(6),0 BNH @L700 * *** size_t queued_bytes = rd_kafka_msgq_size(msetw\ * ->msetw_msgq); LG 15,152(0,5) STG 15,176(0,13) LA 1,176(0,13) LG 15,@lit_1939_185 ; rd_kafka_msgq_size @@gen_label229 DS 0H BALR 14,15 @@gen_label230 DS 0H * *** bufsize += ((queued_bytes) < ((size_t)rk->rk_c\ * onf.msg_copy_max_size * msetw->msetw_msgcntmax) ? (queued_bytes) : (\ * (size_t)rk->rk_conf.msg_copy_max_size * msetw->msetw_msgcntmax)); LGF 1,760(0,6) LGF 3,24(0,5) MSGR 1,3 CLGR 15,1 BNL @L701 B @L702 @L701 DS 0H LGF 15,760(0,6) LGF 1,24(0,5) MSGR 15,1 @L702 DS 0H ALGR 2,15 * *** * *** * *** } @L700 DS 0H * *** * *** * *** bufsize += msg_overhead * msetw->msetw_msgcntmax; LGF 15,24(0,5) MSGR 4,15 ALGR 2,4 * *** * *** * *** if (bufsize > (size_t)rk->rk_conf.max_msg_size) LGF 15,756(0,6) CLGR 2,15 BNH @L703 * *** bufsize = (size_t)rk->rk_conf.max_msg_size; LGF 2,756(0,6) @L703 DS 0H * *** * *** * *** * *** * *** * *** msetw->msetw_rkbuf = * *** rd_kafka_buf_new_request0(msetw->msetw_rkb,0,m\ * setw->msetw_msgcntmax/2 + 10,bufsize,0); LG 15,136(0,5) STG 15,176(0,13) XC 184(8,13),184(13) L 15,24(0,5) ; offset of msetw_msgcntmax in rd_kafka_msgs* et_writer_s LR 1,15 ; /0x2 SRL 1,31(0) ; . AR 1,15 ; . SRA 1,1(0) ; . AHI 1,10 LGFR 15,1 STG 15,192(0,13) STG 2,200(0,13) XC 208(8,13),208(13) LA 1,176(0,13) LG 15,@lit_1939_186 ; rd_kafka_buf_new_request0 @@gen_label233 DS 0H BALR 14,15 @@gen_label234 DS 0H STG 15,0(0,5) * *** * *** * *** * *** rd_kafka_buf_ApiVersion_set(msetw->msetw_rkbuf, * *** msetw->msetw_ApiVersion, * *** msetw->msetw_features); STG 15,176(0,13) LGH 15,8(0,5) STG 15,184(0,13) LGF 15,16(0,5) STG 15,192(0,13) LA 1,176(0,13) LG 15,@lit_1939_187 ; rd_kafka_buf_ApiVersion_set @@gen_label235 DS 0H BALR 14,15 @@gen_label236 DS 0H * *** } @ret_lab_1939 DS 0H * * **** Start of Epilogue DCCEPIL * * **** End of Epilogue DROP 12 * * DSECT for automatic variables in "rd_kafka_msgset_writer_alloc_buf" * (FUNCTION #1939) * @AUTO#rd_kafka_msgset_writer_alloc_buf DSECT DS XL168 rd_kafka_msgset_writer_alloc_buf#queued_bytes#4 DS 8XL1 ; queued_bytes ORG @AUTO#rd_kafka_msgset_writer_alloc_buf+168 rd_kafka_msgset_writer_alloc_buf#bufsize#0 DS 8XL1 ; bufsize ORG @AUTO#rd_kafka_msgset_writer_alloc_buf+168 rd_kafka_msgset_writer_alloc_buf#msgsetsize#0 DS 8XL1 ; msgsetsize ORG @AUTO#rd_kafka_msgset_writer_alloc_buf+168 rd_kafka_msgset_writer_alloc_buf#hdrsize#0 DS 8XL1 ; hdrsize ORG @AUTO#rd_kafka_msgset_writer_alloc_buf+168 rd_kafka_msgset_writer_alloc_buf#msg_overhead#0 DS 8XL1 ; msg_overhead * @CODE CSECT * * * * ....... start of rd_kafka_msgset_writer_write_MessageSet_v2_header @LNAME1940 DS 0H DC X'00000031' DC C'rd_kafka_msgset_writer_write_Mes' DC C'sageSet_v2_header' DC X'00' rd_kafka_msgset_writer_write_$Message$Set_v2_header DCCPRLG CINDEX=1940* ,BASER=12,FRAME=216,ENTRY=NO,ARCH=ZARCH,LNAMEADDR=@LNAME* 1940 * ******* End of Prologue * * * *** rd_kafka_buf_t *rkbuf = msetw->msetw_rkbuf; LG 2,0(0,1) ; msetw LG 3,0(0,2) ; msetw * *** * *** do { if (((!(msetw->msetw_ApiVersion >= 3)))) rd_kafka\ * _crash("C:\\asgkafka\\librdkafka\\src\\rdkafka_msgset_writer.c",385,\ * __FUNCTION__, (((void *)0)), "assert: " "msetw->msetw_ApiVersion >=\ * 3"); } while (0); @L704 DS 0H LH 15,8(0,2) CHI 15,3 BNL @L707 LG 15,@lit_1940_189 LA 1,556(0,15) STG 1,176(0,13) MVGHI 184(13),385 LG 1,@lit_1940_190 LA 1,548(0,1) STG 1,192(0,13) XC 200(8,13),200(13) LA 15,738(0,15) STG 15,208(0,13) LA 1,176(0,13) LG 15,@lit_1940_191 ; rd_kafka_crash @@gen_label238 DS 0H BALR 14,15 @@gen_label239 DS 0H @L707 DS 0H * *** do { if (((!(msetw->msetw_MsgVersion == 2)))) rd_kafka\ * _crash("C:\\asgkafka\\librdkafka\\src\\rdkafka_msgset_writer.c",386,\ * __FUNCTION__, (((void *)0)), "assert: " "msetw->msetw_MsgVersion ==\ * 2"); } while (0); @L708 DS 0H CHSI 12(2),2 BE @L711 LG 15,@lit_1940_189 LA 1,556(0,15) STG 1,176(0,13) MVGHI 184(13),386 LG 1,@lit_1940_190 LA 1,548(0,1) STG 1,192(0,13) XC 200(8,13),200(13) LA 15,776(0,15) STG 15,208(0,13) LA 1,176(0,13) LG 15,@lit_1940_191 ; rd_kafka_crash @@gen_label241 DS 0H BALR 14,15 @@gen_label242 DS 0H @L711 DS 0H * *** * *** * *** * *** msetw->msetw_of_start = rd_kafka_buf_write_i64(rkbuf, \ * 0); STG 3,176(0,13) XC 184(8,13),184(13) LA 1,176(0,13) LG 4,@lit_1940_195 ; rd_kafka_buf_write_i64 LGR 15,4 @@gen_label243 DS 0H BALR 14,15 @@gen_label244 DS 0H STG 15,64(0,2) * *** * *** * *** rd_kafka_buf_write_i32(rkbuf, 0); STG 3,176(0,13) XC 184(8,13),184(13) LA 1,176(0,13) LG 5,@lit_1940_196 ; rd_kafka_buf_write_i32 LGR 15,5 @@gen_label245 DS 0H BALR 14,15 @@gen_label246 DS 0H * *** * *** * *** rd_kafka_buf_write_i32(rkbuf, 0); STG 3,176(0,13) XC 184(8,13),184(13) LA 1,176(0,13) LGR 15,5 @@gen_label247 DS 0H BALR 14,15 @@gen_label248 DS 0H * *** * *** * *** rd_kafka_buf_write_i8(rkbuf, msetw->msetw_MsgVersion); STG 3,176(0,13) L 15,12(0,2) ; offset of msetw_MsgVersion in rd_kafka_msg* set_writer_s SLLG 15,15,56(0) SRAG 15,15,56(0) STG 15,184(0,13) LA 1,176(0,13) LG 15,@lit_1940_198 ; rd_kafka_buf_write_i8 @@gen_label249 DS 0H BALR 14,15 @@gen_label250 DS 0H * *** * *** * *** * *** * *** * *** msetw->msetw_of_CRC = rd_kafka_buf_write_i32(rkbuf, 0)\ * ; STG 3,176(0,13) XC 184(8,13),184(13) LA 1,176(0,13) LGR 15,5 @@gen_label251 DS 0H BALR 14,15 @@gen_label252 DS 0H STG 15,88(0,2) * *** * *** * *** rd_kafka_buf_write_i16(rkbuf, 0); STG 3,176(0,13) XC 184(8,13),184(13) LA 1,176(0,13) LG 6,@lit_1940_200 ; rd_kafka_buf_write_i16 LGR 15,6 @@gen_label253 DS 0H BALR 14,15 @@gen_label254 DS 0H * *** * *** * *** rd_kafka_buf_write_i32(rkbuf, 0); STG 3,176(0,13) XC 184(8,13),184(13) LA 1,176(0,13) LGR 15,5 @@gen_label255 DS 0H BALR 14,15 @@gen_label256 DS 0H * *** * *** * *** rd_kafka_buf_write_i64(rkbuf, 0); STG 3,176(0,13) XC 184(8,13),184(13) LA 1,176(0,13) LGR 15,4 @@gen_label257 DS 0H BALR 14,15 @@gen_label258 DS 0H * *** * *** * *** rd_kafka_buf_write_i64(rkbuf, 0); STG 3,176(0,13) XC 184(8,13),184(13) LA 1,176(0,13) LGR 15,4 @@gen_label259 DS 0H BALR 14,15 @@gen_label260 DS 0H * *** * *** * *** rd_kafka_buf_write_i64(rkbuf, msetw->msetw_pid.id); STG 3,176(0,13) LG 15,120(0,2) STG 15,184(0,13) LA 1,176(0,13) LGR 15,4 @@gen_label261 DS 0H BALR 14,15 @@gen_label262 DS 0H * *** * *** * *** rd_kafka_buf_write_i16(rkbuf, msetw->msetw_pid.epoch); STG 3,176(0,13) LGH 15,128(0,2) STG 15,184(0,13) LA 1,176(0,13) LGR 15,6 @@gen_label263 DS 0H BALR 14,15 @@gen_label264 DS 0H * *** * *** * *** rd_kafka_buf_write_i32(rkbuf, -1); STG 3,176(0,13) MVGHI 184(13),-1 LA 1,176(0,13) LGR 15,5 @@gen_label265 DS 0H BALR 14,15 @@gen_label266 DS 0H * *** * *** * *** rd_kafka_buf_write_i32(rkbuf, 0); STG 3,176(0,13) XC 184(8,13),184(13) LA 1,176(0,13) LGR 15,5 @@gen_label267 DS 0H BALR 14,15 @@gen_label268 DS 0H * *** * *** } @ret_lab_1940 DS 0H * * **** Start of Epilogue DCCEPIL * * **** End of Epilogue DS 0D @FRAMESIZE_1940 DC F'216' @lit_1940_191 DC AD(rd_kafka_crash) @lit_1940_190 DC AD(@DATA) @lit_1940_189 DC AD(@strings@) @lit_1940_195 DC AD(rd_kafka_buf_write_i64) @lit_1940_196 DC AD(rd_kafka_buf_write_i32) @lit_1940_198 DC AD(rd_kafka_buf_write_i8) @lit_1940_200 DC AD(rd_kafka_buf_write_i16) DROP 12 * * DSECT for automatic variables in "rd_kafka_msgset_writer_write_Mes * sageSet_v2_header" * (FUNCTION #1940) * @AUTO#rd_kafka_msgset_writer_write_$Message$Set_v2_header DSECT DS XL168 * @CODE CSECT * * * * ....... start of rd_kafka_msgset_writer_write_Produce_header @LNAME1941 DS 0H DC X'0000002B' DC C'rd_kafka_msgset_writer_write_Pro' DC C'duce_header' DC X'00' rd_kafka_msgset_writer_write_$Produce_header DCCPRLG CINDEX=1941,BASER=* 12,FRAME=192,ENTRY=NO,ARCH=ZARCH,LNAMEADDR=@LNAME1941 * ******* End of Prologue * * LG 2,0(0,1) ; msetw * *** * *** rd_kafka_buf_t *rkbuf = msetw->msetw_rkbuf; LG 3,0(0,2) ; msetw * *** rd_kafka_t *rk = msetw->msetw_rkb->rkb_rk; LG 15,136(0,2) ; offset of msetw_rkb in rd_kafka_msgset_wri* ter_s LG 15,4048(0,15) ; offset of rkb_rk in rd_kafka_broker_s * *** rd_kafka_topic_t *rkt = msetw->msetw_rktp->rktp_rkt; LG 1,144(0,2) ; offset of msetw_rktp in rd_kafka_msgset_wr* iter_s LG 4,96(0,1) ; offset of rktp_rkt in rd_kafka_toppar_s * *** * *** * *** if (msetw->msetw_ApiVersion >= 3) LH 1,8(0,2) CHI 1,3 BL @L712 * *** rd_kafka_buf_write_kstr(rkbuf, rk->rk_eos.tran\ * sactional_id); STG 3,176(0,13) LG 15,3376(0,15) STG 15,184(0,13) LA 1,176(0,13) LG 15,@lit_1941_209 ; rd_kafka_buf_write_kstr @@gen_label270 DS 0H BALR 14,15 @@gen_label271 DS 0H @L712 DS 0H * *** * *** * *** rd_kafka_buf_write_i16(rkbuf, rkt->rkt_conf.required_a\ * cks); STG 3,176(0,13) L 15,928(0,4) ; offset of required_acks in rd_kafka_topic_* conf_s LGHR 15,15 STG 15,184(0,13) LA 1,176(0,13) LG 15,@lit_1941_210 ; rd_kafka_buf_write_i16 @@gen_label272 DS 0H BALR 14,15 @@gen_label273 DS 0H * *** * *** * *** rd_kafka_buf_write_i32(rkbuf, rkt->rkt_conf.request_ti\ * meout_ms); STG 3,176(0,13) LGF 15,932(0,4) STG 15,184(0,13) LA 1,176(0,13) LG 5,@lit_1941_211 ; rd_kafka_buf_write_i32 LGR 15,5 @@gen_label274 DS 0H BALR 14,15 @@gen_label275 DS 0H * *** * *** * *** rd_kafka_buf_write_i32(rkbuf, 1); STG 3,176(0,13) MVGHI 184(13),1 LA 1,176(0,13) LGR 15,5 @@gen_label276 DS 0H BALR 14,15 @@gen_label277 DS 0H * *** * *** * *** rd_kafka_buf_write_kstr(rkbuf, rkt->rkt_topic); STG 3,176(0,13) LG 15,128(0,4) STG 15,184(0,13) LA 1,176(0,13) LG 15,@lit_1941_209 ; rd_kafka_buf_write_kstr @@gen_label278 DS 0H BALR 14,15 @@gen_label279 DS 0H * *** * *** * *** rd_kafka_buf_write_i32(rkbuf, 1); STG 3,176(0,13) MVGHI 184(13),1 LA 1,176(0,13) LGR 15,5 @@gen_label280 DS 0H BALR 14,15 @@gen_label281 DS 0H * *** * *** * *** rd_kafka_buf_write_i32(rkbuf, msetw->msetw_rktp->rktp_\ * partition); STG 3,176(0,13) LG 15,144(0,2) ; offset of msetw_rktp in rd_kafka_msgset_wr* iter_s LGF 15,104(0,15) STG 15,184(0,13) LA 1,176(0,13) LGR 15,5 @@gen_label282 DS 0H BALR 14,15 @@gen_label283 DS 0H * *** * *** * *** msetw->msetw_of_MessageSetSize = rd_kafka_buf_write_i3\ * 2(rkbuf, 0); STG 3,176(0,13) XC 184(8,13),184(13) LA 1,176(0,13) LGR 15,5 @@gen_label284 DS 0H BALR 14,15 @@gen_label285 DS 0H STG 15,56(0,2) * *** * *** if (msetw->msetw_MsgVersion == 2) { CHSI 12(2),2 BNE @L713 * *** * *** rd_kafka_msgset_writer_write_MessageSet_v2_hea\ * der(msetw); STG 2,176(0,13) LA 1,176(0,13) LG 15,@lit_1941_217 ; rd_kafka_msgset_writer_write_MessageS* et_v2_header @@gen_label287 DS 0H BALR 14,15 @@gen_label288 DS 0H * *** msetw->msetw_MessageSetSize = (8+4+4+1+4+2+4+8\ * +8+8+2+4+4); MVGHI 48(2),61 ; offset of msetw_MessageSetSize in rd_kafka* _msgset_writer_s * *** } else { B @L714 DS 0D @FRAMESIZE_1941 DC F'192' @lit_1941_209 DC AD(rd_kafka_buf_write_kstr) @lit_1941_210 DC AD(rd_kafka_buf_write_i16) @lit_1941_211 DC AD(rd_kafka_buf_write_i32) @lit_1941_217 DC AD(rd_kafka_msgset_writer_write_$Message$Set_v2_header* ) @L713 DS 0H * *** * *** msetw->msetw_MessageSetSize = 0; MVGHI 48(2),0 ; offset of msetw_MessageSetSize in rd_kafka* _msgset_writer_s * *** } @L714 DS 0H * *** } @ret_lab_1941 DS 0H * * **** Start of Epilogue DCCEPIL * * **** End of Epilogue DROP 12 * * DSECT for automatic variables in "rd_kafka_msgset_writer_write_Pro * duce_header" * (FUNCTION #1941) * @AUTO#rd_kafka_msgset_writer_write_$Produce_header DSECT DS XL168 * @CODE CSECT * * * * ....... start of rd_kafka_msgset_writer_init @LNAME1942 DS 0H DC X'0000001B' DC C'rd_kafka_msgset_writer_init' DC X'00' rd_kafka_msgset_writer_init DCCPRLG CINDEX=1942,BASER=12,FRAME=216,ENTR* Y=NO,ARCH=ZARCH,LNAMEADDR=@LNAME1942 LGR 4,1 ; ptr to parm area * ******* End of Prologue * * * *** int msgcnt = rd_kafka_msgq_len(rkmq); LG 2,8(0,4) ; rkb LG 3,0(0,4) ; msetw LG 15,24(0,4) ; rkmq STG 15,176(0,13) LA 1,176(0,13) LG 15,@lit_1942_219 ; rd_kafka_msgq_len @@gen_label289 DS 0H BALR 14,15 @@gen_label290 DS 0H * *** * *** if (msgcnt == 0) LTR 15,15 BNE @L715 * *** return 0; LGHI 15,0 ; 0 B @ret_lab_1942 DS 0D @FRAMESIZE_1942 DC F'216' @lit_1942_219 DC AD(rd_kafka_msgq_len) @lit_1942_221 DC AD(rd_kafka_msgset_writer_select_$Msg$Version) @lit_1942_223 DC AD(rd_kafka_msgset_writer_alloc_buf) @lit_1942_224 DC AD(rd_kafka_msgset_writer_write_$Produce_header) @lit_1942_225 DC AD(rd_buf_write_pos) @lit_1942_226 DC AD(rd_kafka_msgbatch_init) @L715 DS 0H * *** * *** __memset(msetw,0,sizeof(*msetw)); * setting 160 bytes to 0x00 XC 0(160,3),0(3) * *** * *** msetw->msetw_rktp = rktp; LG 1,16(0,4) ; rktp STG 1,144(0,3) ; offset of msetw_rktp in rd_kafka_msgset_wr* iter_s * *** msetw->msetw_rkb = rkb; STG 2,136(0,3) ; offset of msetw_rkb in rd_kafka_msgset_wri* ter_s * *** msetw->msetw_msgq = rkmq; LG 1,24(0,4) ; rkmq STG 1,152(0,3) ; offset of msetw_msgq in rd_kafka_msgset_wr* iter_s * *** msetw->msetw_pid = pid; MVC 120(16,3),32(4) * *** * *** * *** * *** * *** msetw->msetw_msgcntmax = ((msgcnt) < (rkb->rkb_rk->rk_\ * conf. batch_num_messages) ? (msgcnt) : (rkb->rkb_rk->rk_conf. batch_\ * num_messages)); LG 1,4048(0,2) ; offset of rkb_rk in rd_kafka_broker_s C 15,2076(0,1) BNL @L716 B @L717 @L716 DS 0H LG 15,4048(0,2) ; offset of rkb_rk in rd_kafka_broker_s L 15,2076(0,15) ; offset of batch_num_messages in rd_kafka* _conf_s @L717 DS 0H ST 15,24(0,3) * *** * *** * *** do {} while (0); @L718 DS 0H * *** * *** * *** if (rd_kafka_msgset_writer_select_MsgVersion(msetw) ==\ * -1) STG 3,176(0,13) LA 1,176(0,13) LG 15,@lit_1942_221 ; rd_kafka_msgset_writer_select_MsgVers* ion @@gen_label293 DS 0H BALR 14,15 @@gen_label294 DS 0H CHI 15,-1 BNE @L721 * *** return -1; LGHI 15,-1 ; -1 B @ret_lab_1942 @L721 DS 0H * *** * *** * *** rd_kafka_msgset_writer_alloc_buf(msetw); STG 3,176(0,13) LA 1,176(0,13) LG 15,@lit_1942_223 ; rd_kafka_msgset_writer_alloc_buf @@gen_label296 DS 0H BALR 14,15 @@gen_label297 DS 0H * *** * *** * *** rd_kafka_msgset_writer_write_Produce_header(msetw); STG 3,176(0,13) LA 1,176(0,13) LG 15,@lit_1942_224 ; rd_kafka_msgset_writer_write_Produce_* header @@gen_label298 DS 0H BALR 14,15 @@gen_label299 DS 0H * *** * *** * *** * *** * *** * *** msetw->msetw_firstmsg.of = rd_buf_write_pos(&msetw->ms\ * etw_rkbuf-> * *** rkbuf_buf)\ * ; LG 15,0(0,3) ; msetw LA 15,40(0,15) STG 15,176(0,13) LA 1,176(0,13) LG 15,@lit_1942_225 ; rd_buf_write_pos @@gen_label300 DS 0H BALR 14,15 @@gen_label301 DS 0H STG 15,104(0,3) * *** * *** rd_kafka_msgbatch_init(&msetw->msetw_rkbuf->rkbuf_u.Pr\ * oduce.batch, * *** rktp, pid, epoch_base_msgid); LG 15,0(0,3) ; msetw LA 15,400(0,15) STG 15,176(0,13) LG 15,16(0,4) ; rktp STG 15,184(0,13) MVC 192(16,13),32(4) LG 15,48(0,4) ; epoch_base_msgid STG 15,208(0,13) LA 1,176(0,13) LG 15,@lit_1942_226 ; rd_kafka_msgbatch_init @@gen_label302 DS 0H BALR 14,15 @@gen_label303 DS 0H * *** msetw->msetw_batch = &msetw->msetw_rkbuf->rkbuf_u.Prod\ * uce.batch; LG 15,0(0,3) ; msetw LA 15,400(0,15) STG 15,96(0,3) ; offset of msetw_batch in rd_kafka_msgset_w* riter_s * *** * *** return msetw->msetw_msgcntmax; LGF 15,24(0,3) * *** } @ret_lab_1942 DS 0H * * **** Start of Epilogue DCCEPIL * * **** End of Epilogue DROP 12 * * DSECT for automatic variables in "rd_kafka_msgset_writer_init" * (FUNCTION #1942) * @AUTO#rd_kafka_msgset_writer_init DSECT DS XL168 rd_kafka_msgset_writer_init#msgcnt#0 DS 1F ; msgcnt * @CODE CSECT * * * * ....... start of rd_kafka_msgset_writer_write_msg_payload @LNAME1943 DS 0H DC X'00000028' DC C'rd_kafka_msgset_writer_write_msg' DC C'_payload' DC X'00' rd_kafka_msgset_writer_write_msg_payload DCCPRLG CINDEX=1943,BASER=12,F* RAME=216,ENTRY=NO,ARCH=ZARCH,LNAMEADDR=@LNAME1943 * ******* End of Prologue * * * *** const rd_kafka_t *rk = msetw->msetw_rkb->rkb_rk; LMG 2,3,8(1) ; rkm LG 15,0(0,1) ; msetw LG 1,136(0,15) ; offset of msetw_rkb in rd_kafka_msgset_wri* ter_s LG 1,4048(0,1) ; offset of rkb_rk in rd_kafka_broker_s * *** rd_kafka_buf_t *rkbuf = msetw->msetw_rkbuf; LG 4,0(0,15) ; msetw * *** * *** * *** * *** * *** if (rkm->rkm_rkmessage.len <= (size_t)rk->rk_conf.msg_\ * copy_max_size && LG 15,32(0,2) ; offset of len in rd_kafka_message_s LGF 1,760(0,1) CLGR 15,1 BH @L722 * *** rd_buf_write_remains(&rkbuf->rkbuf_buf) > rkm->rkm\ * _rkmessage.len) { LA 15,40(0,4) STG 15,176(0,13) LA 1,176(0,13) LG 15,@lit_1943_228 ; rd_buf_write_remains @@gen_label305 DS 0H BALR 14,15 @@gen_label306 DS 0H CLG 15,32(0,2) BNH @L722 * *** rd_kafka_buf_write(rkbuf, * *** rkm->rkm_rkmessage.payload,\ * rkm->rkm_rkmessage.len); STG 4,176(0,13) LG 15,24(0,2) STG 15,184(0,13) LG 15,32(0,2) STG 15,192(0,13) LA 1,176(0,13) LG 15,@lit_1943_229 ; rd_kafka_buf_write @@gen_label308 DS 0H BALR 14,15 @@gen_label309 DS 0H * *** if (free_cb) LTGR 15,3 BZ @L724 * *** free_cb(rkm->rkm_rkmessage.payload); LG 15,24(0,2) STG 15,176(0,13) LA 1,176(0,13) LGR 15,3 @@gen_label311 DS 0H BALR 14,15 @@gen_label312 DS 0H @L723 DS 0H * *** } else B @L724 DS 0D @FRAMESIZE_1943 DC F'216' @lit_1943_228 DC AD(rd_buf_write_remains) @lit_1943_229 DC AD(rd_kafka_buf_write) @lit_1943_230 DC AD(rd_kafka_buf_push0) @L722 DS 0H * *** rd_kafka_buf_push0(rkbuf,rkm->rkm_rkmessage.pa\ * yload,rkm->rkm_rkmessage.len,1 ,free_cb); STG 4,176(0,13) LG 15,24(0,2) STG 15,184(0,13) LG 15,32(0,2) STG 15,192(0,13) MVGHI 200(13),1 STG 3,208(0,13) LA 1,176(0,13) LG 15,@lit_1943_230 ; rd_kafka_buf_push0 @@gen_label313 DS 0H BALR 14,15 @@gen_label314 DS 0H @L724 DS 0H * *** * *** } @ret_lab_1943 DS 0H * * **** Start of Epilogue DCCEPIL * * **** End of Epilogue DROP 12 * * DSECT for automatic variables in "rd_kafka_msgset_writer_write_msg * _payload" * (FUNCTION #1943) * @AUTO#rd_kafka_msgset_writer_write_msg_payload DSECT DS XL168 * @CODE CSECT * * * * ....... start of rd_kafka_msgset_writer_write_msg_headers @LNAME1944 DS 0H DC X'00000028' DC C'rd_kafka_msgset_writer_write_msg' DC C'_headers' DC X'00' rd_kafka_msgset_writer_write_msg_headers DCCPRLG CINDEX=1944,BASER=12,F* RAME=200,ENTRY=NO,ARCH=ZARCH,LNAMEADDR=@LNAME1944 LGR 6,1 ; ptr to parm area * ******* End of Prologue * * * *** rd_kafka_buf_t *rkbuf = msetw->msetw_rkbuf; LG 15,0(0,6) ; msetw LG 3,0(0,15) ; msetw * *** const rd_kafka_header_t *hdr; * *** int i; * *** size_t start_pos = rd_buf_write_pos(&rkbuf->rkbuf_buf)\ * ; LA 15,40(0,3) STG 15,176(0,13) LA 1,176(0,13) LG 15,@lit_1944_232 ; rd_buf_write_pos @@gen_label315 DS 0H BALR 14,15 @@gen_label316 DS 0H LGR 5,15 * *** size_t written; * *** * *** for (i = 0 ; (hdr = rd_list_elem(&hdrs->rkhdrs_list, i\ * )) ; i++) { LHI 2,0 ; 0 B @L726 DS 0D @FRAMESIZE_1944 DC F'200' @lit_1944_232 DC AD(rd_buf_write_pos) @lit_1944_234 DC AD(rd_kafka_buf_write_varint) @lit_1944_235 DC AD(rd_kafka_buf_write) @lit_1944_239 DC AD(rd_list_elem) @L725 DS 0H * *** rd_kafka_buf_write_varint(rkbuf, hdr->rkhdr_na\ * me_size); STG 3,176(0,13) LG 15,16(0,4) ; offset of rkhdr_name_size in rd_kafka_head* er_s STG 15,184(0,13) LA 1,176(0,13) LG 7,@lit_1944_234 ; rd_kafka_buf_write_varint LGR 15,7 @@gen_label317 DS 0H BALR 14,15 @@gen_label318 DS 0H * *** rd_kafka_buf_write(rkbuf, * *** hdr->rkhdr_name, hdr->rkhdr\ * _name_size); STG 3,176(0,13) LA 15,32(0,4) STG 15,184(0,13) LG 15,16(0,4) STG 15,192(0,13) LA 1,176(0,13) LG 8,@lit_1944_235 ; rd_kafka_buf_write LGR 15,8 @@gen_label319 DS 0H BALR 14,15 @@gen_label320 DS 0H * *** rd_kafka_buf_write_varint(rkbuf, * *** hdr->rkhdr_value ? LTG 15,24(0,4) ; offset of rkhdr_value in rd_kafka_header_s BZ @L729 * *** (int64_t)hdr->rkhdr_\ * value_size : -1); LG 15,8(0,4) ; offset of rkhdr_value_size in rd_kafka_hea* der_s B @L730 @L729 DS 0H LGHI 15,-1 ; -1 @L730 DS 0H STG 3,176(0,13) STG 15,184(0,13) LA 1,176(0,13) LGR 15,7 @@gen_label322 DS 0H BALR 14,15 @@gen_label323 DS 0H * *** rd_kafka_buf_write(rkbuf, * *** hdr->rkhdr_value, * *** hdr->rkhdr_value_size); STG 3,176(0,13) LG 15,24(0,4) STG 15,184(0,13) LG 15,8(0,4) STG 15,192(0,13) LA 1,176(0,13) LGR 15,8 @@gen_label324 DS 0H BALR 14,15 @@gen_label325 DS 0H * *** } AHI 2,1 @L726 DS 0H LG 15,8(0,6) ; hdrs STG 15,176(0,13) LGFR 15,2 STG 15,184(0,13) LA 1,176(0,13) LG 15,@lit_1944_239 ; rd_list_elem @@gen_label326 DS 0H BALR 14,15 @@gen_label327 DS 0H LGR 4,15 LTGR 15,4 BNZ @L725 * *** * *** written = rd_buf_write_pos(&rkbuf->rkbuf_buf) - start_\ * pos; LA 15,40(0,3) STG 15,176(0,13) LA 1,176(0,13) LG 15,@lit_1944_232 ; rd_buf_write_pos @@gen_label329 DS 0H BALR 14,15 @@gen_label330 DS 0H SLGR 15,5 * *** do {} while (0); @L731 DS 0H * *** * *** return written; * *** } * * **** Start of Epilogue DCCEPIL * * **** End of Epilogue DROP 12 * * DSECT for automatic variables in "rd_kafka_msgset_writer_write_msg * _headers" * (FUNCTION #1944) * @AUTO#rd_kafka_msgset_writer_write_msg_headers DSECT DS XL168 rd_kafka_msgset_writer_write_msg_headers#written#0 DS 8XL1 ; written ORG @AUTO#rd_kafka_msgset_writer_write_msg_headers+168 rd_kafka_msgset_writer_write_msg_headers#start_pos#0 DS 8XL1 ; start_po* s ORG @AUTO#rd_kafka_msgset_writer_write_msg_headers+168 rd_kafka_msgset_writer_write_msg_headers#i#0 DS 1F ; i * @CODE CSECT * * * * ....... start of rd_kafka_msgset_writer_write_msg_v0_1 @LNAME1945 DS 0H DC X'00000025' DC C'rd_kafka_msgset_writer_write_msg' DC C'_v0_1' DC X'00' rd_kafka_msgset_writer_write_msg_v0_1 DCCPRLG CINDEX=1945,BASER=12,FRAM* E=200,ENTRY=NO,ARCH=ZARCH,LNAMEADDR=@LNAME1945 LGR 7,1 ; ptr to parm area * ******* End of Prologue * * * *** rd_kafka_buf_t *rkbuf = msetw->msetw_rkbuf; LMG 3,4,0(7) ; msetw LG 5,0(0,3) ; msetw * *** size_t MessageSize; * *** size_t of_Crc; * *** * *** * *** * *** * *** * *** * *** rd_kafka_buf_write_i64(rkbuf, Offset); STG 5,176(0,13) LG 15,16(0,7) ; Offset STG 15,184(0,13) LA 1,176(0,13) LG 8,@lit_1945_242 ; rd_kafka_buf_write_i64 LGR 15,8 @@gen_label331 DS 0H BALR 14,15 @@gen_label332 DS 0H * *** * *** * *** MessageSize = * *** 4 + 1 + 1 + * *** 4 + rkm->rkm_rkmessage.key_len + * *** 4 + rkm->rkm_rkmessage.len; LG 2,48(0,4) ; offset of key_len in rd_kafka_message_s AGHI 2,10 AGHI 2,4 ALG 2,32(0,4) * *** * *** if (msetw->msetw_MsgVersion == 1) CHSI 12(3),1 BNE @L734 * *** MessageSize += 8; AGHI 2,8 @L734 DS 0H * *** * *** rd_kafka_buf_write_i32(rkbuf, (int32_t)MessageSize); STG 5,176(0,13) LGFR 15,2 STG 15,184(0,13) LA 1,176(0,13) LG 9,@lit_1945_243 ; rd_kafka_buf_write_i32 LGR 15,9 @@gen_label334 DS 0H BALR 14,15 @@gen_label335 DS 0H * *** * *** * *** * *** * *** * *** of_Crc = rd_kafka_buf_write_i32(rkbuf, 0); STG 5,176(0,13) XC 184(8,13),184(13) LA 1,176(0,13) LGR 15,9 @@gen_label336 DS 0H BALR 14,15 @@gen_label337 DS 0H LGR 6,15 * *** * *** * *** rd_kafka_buf_crc_init(rkbuf); STG 5,176(0,13) LA 1,176(0,13) LG 15,@lit_1945_245 ; rd_kafka_buf_crc_init @@gen_label338 DS 0H BALR 14,15 @@gen_label339 DS 0H * *** * *** * *** rd_kafka_buf_write_i8(rkbuf, msetw->msetw_MsgVersion); STG 5,176(0,13) L 15,12(0,3) ; offset of msetw_MsgVersion in rd_kafka_msg* set_writer_s SLLG 15,15,56(0) SRAG 15,15,56(0) STG 15,184(0,13) LA 1,176(0,13) LG 10,@lit_1945_246 ; rd_kafka_buf_write_i8 LGR 15,10 @@gen_label340 DS 0H BALR 14,15 @@gen_label341 DS 0H * *** * *** * *** rd_kafka_buf_write_i8(rkbuf, MsgAttributes); STG 5,176(0,13) LGB 15,31(0,7) ; MsgAttributes STG 15,184(0,13) LA 1,176(0,13) LGR 15,10 @@gen_label342 DS 0H BALR 14,15 @@gen_label343 DS 0H * *** * *** * *** if (msetw->msetw_MsgVersion == 1) CHSI 12(3),1 BNE @L735 * *** rd_kafka_buf_write_i64(rkbuf, rkm->rkm_timesta\ * mp); STG 5,176(0,13) LG 15,96(0,4) STG 15,184(0,13) LA 1,176(0,13) LGR 15,8 @@gen_label345 DS 0H BALR 14,15 @@gen_label346 DS 0H @L735 DS 0H * *** * *** * *** rd_kafka_buf_write_bytes(rkbuf, rkm->rkm_rkmessage.key\ * , rkm->rkm_rkmessage.key_len); STG 5,176(0,13) LG 15,40(0,4) STG 15,184(0,13) LG 15,48(0,4) STG 15,192(0,13) LA 1,176(0,13) LG 15,@lit_1945_249 ; rd_kafka_buf_write_bytes @@gen_label347 DS 0H BALR 14,15 @@gen_label348 DS 0H * *** * *** * *** if (rkm->rkm_rkmessage.payload) { LTG 15,24(0,4) ; offset of payload in rd_kafka_message_s BZ @L736 * *** rd_kafka_buf_write_i32(rkbuf, (int32_t)rkm->rk\ * m_rkmessage.len); STG 5,176(0,13) LGF 15,36(0,4) STG 15,184(0,13) LA 1,176(0,13) LGR 15,9 @@gen_label350 DS 0H BALR 14,15 @@gen_label351 DS 0H * *** rd_kafka_msgset_writer_write_msg_payload(msetw\ * , rkm, free_cb); STMG 3,4,176(13) LG 15,32(0,7) ; free_cb STG 15,192(0,13) LA 1,176(0,13) LG 15,@lit_1945_251 ; rd_kafka_msgset_writer_write_msg_payl* oad @@gen_label352 DS 0H BALR 14,15 @@gen_label353 DS 0H * *** } else B @L737 DS 0D @FRAMESIZE_1945 DC F'200' @lit_1945_242 DC AD(rd_kafka_buf_write_i64) @lit_1945_243 DC AD(rd_kafka_buf_write_i32) @lit_1945_245 DC AD(rd_kafka_buf_crc_init) @lit_1945_246 DC AD(rd_kafka_buf_write_i8) @lit_1945_249 DC AD(rd_kafka_buf_write_bytes) @lit_1945_251 DC AD(rd_kafka_msgset_writer_write_msg_payload) @lit_1945_253 DC AD(rd_kafka_buf_crc_finalize) @lit_1945_254 DC AD(rd_kafka_buf_update_u32) @L736 DS 0H * *** rd_kafka_buf_write_i32(rkbuf, -1); STG 5,176(0,13) MVGHI 184(13),-1 LA 1,176(0,13) LGR 15,9 @@gen_label354 DS 0H BALR 14,15 @@gen_label355 DS 0H @L737 DS 0H * *** * *** * *** rd_kafka_buf_update_u32(rkbuf, of_Crc, * *** rd_kafka_buf_crc_finalize(rkbu\ * f)); STG 5,176(0,13) LA 1,176(0,13) LG 15,@lit_1945_253 ; rd_kafka_buf_crc_finalize @@gen_label356 DS 0H BALR 14,15 @@gen_label357 DS 0H STMG 5,6,176(13) LLGFR 15,15 STG 15,192(0,13) LA 1,176(0,13) LG 15,@lit_1945_254 ; rd_kafka_buf_update_u32 @@gen_label358 DS 0H BALR 14,15 @@gen_label359 DS 0H * *** * *** * *** * *** return 8 + 4 + MessageSize; AGHI 2,12 LGR 15,2 * *** } * * **** Start of Epilogue DCCEPIL * * **** End of Epilogue DROP 12 * * DSECT for automatic variables in "rd_kafka_msgset_writer_write_msg * _v0_1" * (FUNCTION #1945) * @AUTO#rd_kafka_msgset_writer_write_msg_v0_1 DSECT DS XL168 rd_kafka_msgset_writer_write_msg_v0_1#of_$Crc#0 DS 8XL1 ; of_Crc ORG @AUTO#rd_kafka_msgset_writer_write_msg_v0_1+168 rd_kafka_msgset_writer_write_msg_v0_1#$Message$Size#0 DS 8XL1 ; Message* Size * @CODE CSECT * * * * ....... start of rd_kafka_msgset_writer_write_msg_v2 @LNAME1946 DS 0H DC X'00000023' DC C'rd_kafka_msgset_writer_write_msg' DC C'_v2' DC X'00' rd_kafka_msgset_writer_write_msg_v2 DCCPRLG CINDEX=1946,BASER=12,FRAME=* 240,ENTRY=NO,ARCH=ZARCH,LNAMEADDR=@LNAME1946 LGR 4,1 * ******* End of Prologue * * * *** rd_kafka_buf_t *rkbuf = msetw->msetw_rkbuf; LG 5,0(0,4) ; msetw LG 2,8(0,4) ; rkm LG 3,0(0,5) ; msetw * *** size_t MessageSize = 0; LGHI 10,0 ; 0 * *** char varint_Length[(sizeof(int32_t) + 1 + (sizeof(int3\ * 2_t)/7))]; * *** char varint_TimestampDelta[(sizeof(int64_t) + 1 + (siz\ * eof(int64_t)/7))]; * *** char varint_OffsetDelta[(sizeof(int64_t) + 1 + (sizeof\ * (int64_t)/7))]; * *** char varint_KeyLen[(sizeof(int32_t) + 1 + (sizeof(int3\ * 2_t)/7))]; * *** char varint_ValueLen[(sizeof(int32_t) + 1 + (sizeof(in\ * t32_t)/7))]; * *** char varint_HeaderCount[(sizeof(int32_t) + 1 + (sizeof\ * (int32_t)/7))]; * *** size_t sz_Length; * *** size_t sz_TimestampDelta; * *** size_t sz_OffsetDelta; * *** size_t sz_KeyLen; * *** size_t sz_ValueLen; * *** size_t sz_HeaderCount; * *** int HeaderCount = 0; LHI 6,0 ; 0 * *** size_t HeaderSize = 0; * *** * *** if (rkm->rkm_headers) { LTG 15,104(0,2) ; offset of rkm_headers in rd_kafka_msg_s BZ @L738 * *** HeaderCount = rkm->rkm_headers->rkhdrs_list.rl\ * _cnt; LG 15,104(0,2) ; offset of rkm_headers in rd_kafka_msg_s L 6,4(0,15) ; offset of rl_cnt in rd_list_s * *** HeaderSize = rkm->rkm_headers->rkhdrs_ser_siz\ * e; LG 15,104(0,2) ; offset of rkm_headers in rd_kafka_msg_s LG 10,40(0,15) ; offset of rkhdrs_ser_size in rd_kafka_head* ers_s * *** } @L738 DS 0H * *** * *** * *** * *** * *** * *** sz_TimestampDelta = rd_uvarint_enc_i64( * *** varint_TimestampDelta, sizeof(varint_Timestamp\ * Delta), * *** rkm->rkm_timestamp - msetw->msetw_firstmsg.tim\ * estamp); LA 15,168(0,13) STG 15,208(0,13) MVGHI 216(13),10 LG 15,96(0,2) ; offset of rkm_timestamp in rd_kafka_msg_s SG 15,112(0,5) STG 15,224(0,13) LA 1,208(0,13) LG 15,@lit_1946_277 ; rd_uvarint_enc_i64 @@gen_label361 DS 0H BALR 14,15 @@gen_label362 DS 0H LGR 7,15 * *** sz_OffsetDelta = rd_uvarint_enc_i64( * *** varint_OffsetDelta, sizeof(varint_OffsetDelta)\ * , Offset); LA 15,178(0,13) STG 15,208(0,13) MVGHI 216(13),10 LG 15,16(0,4) ; Offset STG 15,224(0,13) LA 1,208(0,13) LG 15,@lit_1946_277 ; rd_uvarint_enc_i64 @@gen_label363 DS 0H BALR 14,15 @@gen_label364 DS 0H LGR 8,15 * *** sz_KeyLen = rd_uvarint_enc_i32( * *** varint_KeyLen, sizeof(varint_KeyLen), * *** rkm->rkm_rkmessage.key ? (int32_t)rkm->rkm_rkm\ * essage.key_len : LTG 15,40(0,2) ; offset of key in rd_kafka_message_s BZ @L739 LG 15,48(0,2) ; offset of key_len in rd_kafka_message_s B @L740 DS 0D @FRAMESIZE_1946 DC F'240' @lit_1946_277 DC AD(rd_uvarint_enc_i64) @lit_1946_287 DC AD(rd_uvarint_enc_i32) @lit_1946_280 DC AD(rd_kafka_buf_write) @lit_1946_268 DC AD(rd_kafka_buf_write_i8) @lit_1946_274 DC AD(rd_kafka_msgset_writer_write_msg_payload) @lit_1946_276 DC AD(rd_kafka_msgset_writer_write_msg_headers) @L739 DS 0H * *** (int32_t)-1); LHI 15,-1 ; -1 @L740 DS 0H LA 1,188(0,13) STG 1,208(0,13) MVGHI 216(13),5 LGFR 15,15 STG 15,224(0,13) LA 1,208(0,13) LG 15,@lit_1946_287 ; rd_uvarint_enc_i32 @@gen_label366 DS 0H BALR 14,15 @@gen_label367 DS 0H LGR 9,15 * *** sz_ValueLen = rd_uvarint_enc_i32( * *** varint_ValueLen, sizeof(varint_ValueLen), * *** rkm->rkm_rkmessage.payload ? (int32_t)rkm->rkm\ * _rkmessage.len : LTG 15,24(0,2) ; offset of payload in rd_kafka_message_s BZ @L741 LG 15,32(0,2) ; offset of len in rd_kafka_message_s B @L742 @L741 DS 0H * *** (int32_t)-1); LHI 15,-1 ; -1 @L742 DS 0H LA 1,193(0,13) STG 1,208(0,13) MVGHI 216(13),5 LGFR 15,15 STG 15,224(0,13) LA 1,208(0,13) LG 15,@lit_1946_287 ; rd_uvarint_enc_i32 @@gen_label369 DS 0H BALR 14,15 @@gen_label370 DS 0H LGR 11,15 * *** sz_HeaderCount = rd_uvarint_enc_i32( * *** varint_HeaderCount, sizeof(varint_HeaderCount)\ * , * *** (int32_t)HeaderCount); LA 15,198(0,13) STG 15,208(0,13) MVGHI 216(13),5 LGFR 15,6 STG 15,224(0,13) LA 1,208(0,13) LG 15,@lit_1946_287 ; rd_uvarint_enc_i32 @@gen_label371 DS 0H BALR 14,15 @@gen_label372 DS 0H STG 15,232(0,13) ; spill * *** * *** * *** * *** MessageSize = * *** 1 + * *** sz_TimestampDelta + * *** sz_OffsetDelta + * *** sz_KeyLen + * *** rkm->rkm_rkmessage.key_len + * *** sz_ValueLen + * *** rkm->rkm_rkmessage.len + * *** sz_HeaderCount + * *** HeaderSize; LGR 1,7 AGHI 1,1 ALGR 1,8 ALGR 1,9 ALG 1,48(0,2) ALGR 1,11 ALG 1,32(0,2) ALGR 1,15 ALGR 1,10 LGR 6,1 ; MessageSize * *** * *** * *** sz_Length = rd_uvarint_enc_i64(varint_Length, sizeof(v\ * arint_Length), * *** MessageSize); LA 15,203(0,13) STG 15,208(0,13) MVGHI 216(13),5 STG 1,224(0,13) LA 1,208(0,13) LG 15,@lit_1946_277 ; rd_uvarint_enc_i64 @@gen_label373 DS 0H BALR 14,15 @@gen_label374 DS 0H LGR 10,15 * *** rd_kafka_buf_write(rkbuf, varint_Length, sz_Length); STG 3,208(0,13) LA 1,203(0,13) STG 1,216(0,13) STG 10,224(0,13) LA 1,208(0,13) LG 15,@lit_1946_280 ; rd_kafka_buf_write @@gen_label375 DS 0H BALR 14,15 @@gen_label376 DS 0H * *** MessageSize += sz_Length; ALGR 6,10 * *** * *** * *** * *** rd_kafka_buf_write_i8(rkbuf, 0); STG 3,208(0,13) XC 216(8,13),216(13) LA 1,208(0,13) LG 15,@lit_1946_268 ; rd_kafka_buf_write_i8 @@gen_label377 DS 0H BALR 14,15 @@gen_label378 DS 0H * *** * *** * *** rd_kafka_buf_write(rkbuf, varint_TimestampDelta, sz_Ti\ * mestampDelta); STG 3,208(0,13) LA 15,168(0,13) STG 15,216(0,13) STG 7,224(0,13) LA 1,208(0,13) LG 15,@lit_1946_280 ; rd_kafka_buf_write @@gen_label379 DS 0H BALR 14,15 @@gen_label380 DS 0H * *** * *** * *** rd_kafka_buf_write(rkbuf, varint_OffsetDelta, sz_Offse\ * tDelta); STG 3,208(0,13) LA 15,178(0,13) STG 15,216(0,13) STG 8,224(0,13) LA 1,208(0,13) LG 15,@lit_1946_280 ; rd_kafka_buf_write @@gen_label381 DS 0H BALR 14,15 @@gen_label382 DS 0H * *** * *** * *** rd_kafka_buf_write(rkbuf, varint_KeyLen, sz_KeyLen); STG 3,208(0,13) LA 15,188(0,13) STG 15,216(0,13) STG 9,224(0,13) LA 1,208(0,13) LG 15,@lit_1946_280 ; rd_kafka_buf_write @@gen_label383 DS 0H BALR 14,15 @@gen_label384 DS 0H * *** * *** * *** if (rkm->rkm_rkmessage.key) LTG 15,40(0,2) ; offset of key in rd_kafka_message_s BZ @L743 * *** rd_kafka_buf_write(rkbuf, rkm->rkm_rkmessage.k\ * ey, rkm->rkm_rkmessage.key_len); STG 3,208(0,13) LG 15,40(0,2) STG 15,216(0,13) LG 15,48(0,2) STG 15,224(0,13) LA 1,208(0,13) LG 15,@lit_1946_280 ; rd_kafka_buf_write @@gen_label386 DS 0H BALR 14,15 @@gen_label387 DS 0H @L743 DS 0H * *** * *** * *** rd_kafka_buf_write(rkbuf, varint_ValueLen, sz_ValueLen\ * ); STG 3,208(0,13) LA 15,193(0,13) STG 15,216(0,13) STG 11,224(0,13) LA 1,208(0,13) LG 15,@lit_1946_280 ; rd_kafka_buf_write @@gen_label388 DS 0H BALR 14,15 @@gen_label389 DS 0H * *** * *** * *** if (rkm->rkm_rkmessage.payload) LTG 15,24(0,2) ; offset of payload in rd_kafka_message_s BZ @L744 * *** rd_kafka_msgset_writer_write_msg_payload(msetw\ * , rkm, free_cb); STG 5,208(0,13) STG 2,216(0,13) LG 15,32(0,4) ; free_cb STG 15,224(0,13) LA 1,208(0,13) LG 15,@lit_1946_274 ; rd_kafka_msgset_writer_write_msg_payl* oad @@gen_label391 DS 0H BALR 14,15 @@gen_label392 DS 0H @L744 DS 0H * *** * *** * *** rd_kafka_buf_write(rkbuf, varint_HeaderCount, sz_Heade\ * rCount); STG 3,208(0,13) LA 15,198(0,13) STG 15,216(0,13) LG 15,232(0,13) ; spill STG 15,224(0,13) LA 1,208(0,13) LG 15,@lit_1946_280 ; rd_kafka_buf_write @@gen_label393 DS 0H BALR 14,15 @@gen_label394 DS 0H * *** * *** * *** if (rkm->rkm_headers) LTG 15,104(0,2) ; offset of rkm_headers in rd_kafka_msg_s BZ @L745 * *** rd_kafka_msgset_writer_write_msg_headers(msetw\ * , * *** rkm->\ * rkm_headers); STG 5,208(0,13) LG 15,104(0,2) STG 15,216(0,13) LA 1,208(0,13) LG 15,@lit_1946_276 ; rd_kafka_msgset_writer_write_msg_head* ers @@gen_label396 DS 0H BALR 14,15 @@gen_label397 DS 0H @L745 DS 0H * *** * *** * *** return MessageSize; LGR 15,6 * *** } * * **** Start of Epilogue DCCEPIL * * **** End of Epilogue DROP 12 * * DSECT for automatic variables in "rd_kafka_msgset_writer_write_msg * _v2" * (FUNCTION #1946) * @AUTO#rd_kafka_msgset_writer_write_msg_v2 DSECT DS XL168 rd_kafka_msgset_writer_write_msg_v2#$Header$Size#0 DS 8XL1 ; HeaderSize ORG @AUTO#rd_kafka_msgset_writer_write_msg_v2+168 rd_kafka_msgset_writer_write_msg_v2#$Header$Count#0 DS 1F ; HeaderCount ORG @AUTO#rd_kafka_msgset_writer_write_msg_v2+168 rd_kafka_msgset_writer_write_msg_v2#sz_$Header$Count#0 DS 8XL1 ; sz_Hea* derCount ORG @AUTO#rd_kafka_msgset_writer_write_msg_v2+168 rd_kafka_msgset_writer_write_msg_v2#sz_$Value$Len#0 DS 8XL1 ; sz_ValueL* en ORG @AUTO#rd_kafka_msgset_writer_write_msg_v2+168 rd_kafka_msgset_writer_write_msg_v2#sz_$Key$Len#0 DS 8XL1 ; sz_KeyLen ORG @AUTO#rd_kafka_msgset_writer_write_msg_v2+168 rd_kafka_msgset_writer_write_msg_v2#sz_$Offset$Delta#0 DS 8XL1 ; sz_Off* setDelta ORG @AUTO#rd_kafka_msgset_writer_write_msg_v2+168 rd_kafka_msgset_writer_write_msg_v2#sz_$Timestamp$Delta#0 DS 8XL1 ; sz_* TimestampDelta ORG @AUTO#rd_kafka_msgset_writer_write_msg_v2+168 rd_kafka_msgset_writer_write_msg_v2#sz_$Length#0 DS 8XL1 ; sz_Length ORG @AUTO#rd_kafka_msgset_writer_write_msg_v2+168 rd_kafka_msgset_writer_write_msg_v2#varint_$Timestamp$Delta#0 DS 10XL1 * ; varint_TimestampDelta ORG @AUTO#rd_kafka_msgset_writer_write_msg_v2+168 rd_kafka_msgset_writer_write_msg_v2#$Message$Size#0 DS 8XL1 ; MessageSi* ze ORG @AUTO#rd_kafka_msgset_writer_write_msg_v2+178 rd_kafka_msgset_writer_write_msg_v2#varint_$Offset$Delta#0 DS 10XL1 ; v* arint_OffsetDelta ORG @AUTO#rd_kafka_msgset_writer_write_msg_v2+188 rd_kafka_msgset_writer_write_msg_v2#varint_$Key$Len#0 DS 5XL1 ; varint_* KeyLen ORG @AUTO#rd_kafka_msgset_writer_write_msg_v2+193 rd_kafka_msgset_writer_write_msg_v2#varint_$Value$Len#0 DS 5XL1 ; varin* t_ValueLen ORG @AUTO#rd_kafka_msgset_writer_write_msg_v2+198 rd_kafka_msgset_writer_write_msg_v2#varint_$Header$Count#0 DS 5XL1 ; va* rint_HeaderCount ORG @AUTO#rd_kafka_msgset_writer_write_msg_v2+203 rd_kafka_msgset_writer_write_msg_v2#varint_$Length#0 DS 5XL1 ; varint_L* ength * @CODE CSECT * * * * ....... start of rd_kafka_msgset_writer_write_msg @LNAME1947 DS 0H DC X'00000020' DC C'rd_kafka_msgset_writer_write_msg' DC X'00' rd_kafka_msgset_writer_write_msg DCCPRLG CINDEX=1947,BASER=12,FRAME=232* ,ENTRY=NO,ARCH=ZARCH,LNAMEADDR=@LNAME1947 LGR 4,1 ; ptr to parm area * ******* End of Prologue * * LMG 2,3,0(4) ; msetw * *** size_t outlen; * *** size_t (*writer[]) (rd_kafka_msgset_writer_t *, * *** rd_kafka_msg_t *, int64_t, int8_t, * *** void (*)(void *)) = { * *** [0] = rd_kafka_msgset_writer_write_msg_v0_1, LG 15,@lit_1947_291 ; rd_kafka_msgset_writer_write_msg_v0_1 STG 15,168(0,13) * *** [1] = rd_kafka_msgset_writer_write_msg_v0_1, STG 15,176(0,13) * *** [2] = rd_kafka_msgset_writer_write_msg_v2 * *** }; LG 15,@lit_1947_293 ; rd_kafka_msgset_writer_write_msg_v2 STG 15,184(0,13) * *** size_t actual_written; * *** size_t pre_pos; * *** * *** if (((rkm->rkm_timestamp))) LTG 15,96(0,3) ; offset of rkm_timestamp in rd_kafka_msg_s BZ @L746 * *** MsgAttributes |= (0 << 3); LB 15,31(0,4) ; MsgAttributes STC 15,31(0,4) ; MsgAttributes @L746 DS 0H * *** * *** pre_pos = rd_buf_write_pos(&msetw->msetw_rkbuf->rkbuf_\ * buf); LG 15,0(0,2) ; msetw LA 15,40(0,15) STG 15,192(0,13) LA 1,192(0,13) LG 6,@lit_1947_294 ; rd_buf_write_pos LGR 15,6 @@gen_label399 DS 0H BALR 14,15 @@gen_label400 DS 0H LGR 5,15 * *** * *** outlen = writer[msetw->msetw_MsgVersion](msetw, rkm, * *** Offset, MsgAt\ * tributes, * *** free_cb); STMG 2,3,192(13) LG 15,16(0,4) ; Offset STG 15,208(0,13) LGB 15,31(0,4) ; MsgAttributes STG 15,216(0,13) LG 15,32(0,4) ; free_cb STG 15,224(0,13) LGF 15,12(0,2) SLLG 15,15,3(0) ; *0x8 LG 15,168(15,13) LA 1,192(0,13) @@gen_label401 DS 0H BALR 14,15 @@gen_label402 DS 0H LGR 4,15 * *** * *** actual_written = rd_buf_write_pos(&msetw->msetw_rkbuf-\ * >rkbuf_buf) - LG 15,0(0,2) ; msetw LA 15,40(0,15) STG 15,192(0,13) LA 1,192(0,13) LGR 15,6 @@gen_label403 DS 0H BALR 14,15 @@gen_label404 DS 0H * *** pre_pos; SLGR 15,5 LGR 5,15 ; actual_written * *** ((outlen <= rd_kafka_msg_wire_size(rkm, msetw->msetw_M\ * sgVersion)) ? (void)0 : __assert(__func__, "C:\\asgkafka\\librdkafka\ * \\src\\rdkafka_msgset_writer.c", 818, "outlen <= rd_kafka_msg_wire_s\ * ize(rkm, msetw->msetw_MsgVersion)")); STG 3,192(0,13) LGF 15,12(0,2) STG 15,200(0,13) LA 1,192(0,13) LG 15,@lit_1947_296 ; rd_kafka_msg_wire_size @@gen_label405 DS 0H BALR 14,15 @@gen_label406 DS 0H CLGR 4,15 BNH @L748 @L747 DS 0H LG 15,@lit_1947_297 LA 15,598(0,15) STG 15,192(0,13) LG 15,@lit_1947_298 LA 1,556(0,15) STG 1,200(0,13) MVGHI 208(13),818 LA 15,814(0,15) STG 15,216(0,13) LA 1,192(0,13) LG 15,@lit_1947_299 ; __assert @@gen_label408 DS 0H BALR 14,15 @@gen_label409 DS 0H @L748 DS 0H * *** * *** ((outlen == actual_written) ? (void)0 : __assert(__fun\ * c__, "C:\\asgkafka\\librdkafka\\src\\rdkafka_msgset_writer.c", 820, \ * "outlen == actual_written")); CLGR 4,5 BE @L750 @L749 DS 0H LG 15,@lit_1947_297 LA 15,598(0,15) STG 15,192(0,13) LG 15,@lit_1947_298 LA 1,556(0,15) STG 1,200(0,13) MVGHI 208(13),820 LA 15,878(0,15) STG 15,216(0,13) LA 1,192(0,13) LG 15,@lit_1947_299 ; __assert @@gen_label411 DS 0H BALR 14,15 @@gen_label412 DS 0H @L750 DS 0H * *** * *** return outlen; LGR 15,4 * *** * *** } * * **** Start of Epilogue DCCEPIL * * **** End of Epilogue DS 0D @FRAMESIZE_1947 DC F'232' @lit_1947_293 DC AD(rd_kafka_msgset_writer_write_msg_v2) @lit_1947_291 DC AD(rd_kafka_msgset_writer_write_msg_v0_1) @lit_1947_294 DC AD(rd_buf_write_pos) @lit_1947_296 DC AD(rd_kafka_msg_wire_size) @lit_1947_299 DC AD(__assert) @lit_1947_298 DC AD(@strings@) @lit_1947_297 DC AD(@DATA) DROP 12 * * DSECT for automatic variables in "rd_kafka_msgset_writer_write_msg" * (FUNCTION #1947) * @AUTO#rd_kafka_msgset_writer_write_msg DSECT DS XL168 rd_kafka_msgset_writer_write_msg#pre_pos#0 DS 8XL1 ; pre_pos ORG @AUTO#rd_kafka_msgset_writer_write_msg+168 rd_kafka_msgset_writer_write_msg#actual_written#0 DS 8XL1 ; actual_writ* ten ORG @AUTO#rd_kafka_msgset_writer_write_msg+168 rd_kafka_msgset_writer_write_msg#writer#0 DS 24XL1 ; writer ORG @AUTO#rd_kafka_msgset_writer_write_msg+168 rd_kafka_msgset_writer_write_msg#outlen#0 DS 8XL1 ; outlen * @CODE CSECT * * * * ....... start of rd_kafka_msgset_writer_write_msgq @LNAME1948 DS 0H DC X'00000021' DC C'rd_kafka_msgset_writer_write_msg' DC C'q' DC X'00' rd_kafka_msgset_writer_write_msgq DCCPRLG CINDEX=1948,BASER=12,FRAME=54* 4,ENTRY=NO,ARCH=ZARCH,LNAMEADDR=@LNAME1948 * ******* End of Prologue * * * *** rd_kafka_toppar_t *rktp = msetw->msetw_rktp; LG 2,0(0,1) ; msetw LG 8,8(0,1) ; rkmq LMG 4,5,136(2) ; offset of msetw_rktp in rd_kafka_msgset_wr* iter_s * *** rd_kafka_broker_t *rkb = msetw->msetw_rkb; * *** size_t len = rd_buf_len(&msetw->msetw_rkbuf->rkbuf_buf\ * ); LG 15,0(0,2) ; msetw LA 15,40(0,15) STG 15,424(0,13) LA 1,424(0,13) LG 15,@lit_1948_304 ; rd_buf_len @@gen_label413 DS 0H BALR 14,15 @@gen_label414 DS 0H LGR 7,15 ; len * *** size_t max_msg_size = (((size_t)msetw->msetw_rkb->rkb_\ * rk-> rk_conf.max_msg_size) < ((size_t)msetw->msetw_rkb->rkb_rk-> rk_\ * conf.batch_size) ? ((size_t)msetw->msetw_rkb->rkb_rk-> rk_conf.max_m\ * sg_size) : ((size_t)msetw->msetw_rkb->rkb_rk-> rk_conf.batch_size)); LG 15,136(0,2) ; offset of msetw_rkb in rd_kafka_msgset_wri* ter_s LG 15,4048(0,15) ; offset of rkb_rk in rd_kafka_broker_s LGF 15,756(0,15) LG 1,136(0,2) ; offset of msetw_rkb in rd_kafka_msgset_wri* ter_s LG 1,4048(0,1) ; offset of rkb_rk in rd_kafka_broker_s LGF 1,2080(0,1) CLGR 15,1 BNL @L751 LG 15,136(0,2) ; offset of msetw_rkb in rd_kafka_msgset_wri* ter_s LG 15,4048(0,15) ; offset of rkb_rk in rd_kafka_broker_s LGF 10,756(0,15) B @L752 DS 0D @FRAMESIZE_1948 DC F'544' @lit_1948_304 DC AD(rd_buf_len) @lit_1948_307 DC AD(rd_clock) @lit_1948_310 DC AD(rd_kafka_crash) @lit_1948_309 DC AD(@DATA) @lit_1948_308 DC AD(@strings@) @lit_1948_311 DC AD(rd_kafka_msgbatch_set_first_msg) @lit_1948_313 DC AD(mtx_lock) @lit_1948_315 DC AD(rd_strlcpy) @lit_1948_317 DC AD(mtx_unlock) @lit_1948_320 DC AD(rd_kafka_log0) @lit_1948_321 DC AD(rd_kafka_msg_wire_size) @lit_1948_331 DC AD(rd_kafka_msgq_deq) @lit_1948_332 DC AD(rd_kafka_msgq_enq) @lit_1948_334 DC AD(rd_avg_add) @lit_1948_335 DC AD(rd_kafka_msgset_writer_write_msg) @lit_1948_336 DC AD(rd_kafka_msgq_last) @lit_1948_339 DC AD(__assert) @lit_1948_341 DC AD(rd_kafka_set_fatal_error0) @L751 DS 0H LG 15,136(0,2) ; offset of msetw_rkb in rd_kafka_msgset_wri* ter_s LG 15,4048(0,15) ; offset of rkb_rk in rd_kafka_broker_s LGF 10,2080(0,15) @L752 DS 0H * *** * *** * *** * *** rd_ts_t int_latency_base; * *** rd_ts_t MaxTimestamp = 0; LGHI 9,0 ; 0 * *** rd_kafka_msg_t *rkm; * *** int msgcnt = 0; LHI 6,0 ; 0 * *** const rd_ts_t now = rd_clock(); LG 15,@lit_1948_307 ; rd_clock @@gen_label416 DS 0H BALR 14,15 @@gen_label417 DS 0H STG 15,536(0,13) ; spill * *** * *** * *** * *** int_latency_base = now + * *** ((rd_ts_t) rktp->rktp_rkt->rkt_conf.message_ti\ * meout_ms * 1000); LG 1,96(0,5) ; offset of rktp_rkt in rd_kafka_toppar_s LGF 1,936(0,1) MGHI 1,1000 AGR 15,1 LGR 11,15 * *** * *** * *** rkm = ((&rkmq->rkmq_msgs)->tqh_first); LG 3,0(0,8) ; rkmq * *** do { if (((!(rkm)))) rd_kafka_crash("C:\\asgkafka\\lib\ * rdkafka\\src\\rdkafka_msgset_writer.c",857, __FUNCTION__, (((void *)\ * 0)), "assert: " "rkm"); } while (0); @L753 DS 0H LTGR 15,3 BNZ @L756 LG 15,@lit_1948_308 LA 1,556(0,15) STG 1,424(0,13) MVGHI 432(13),857 LG 1,@lit_1948_309 LA 1,632(0,1) STG 1,440(0,13) XC 448(8,13),448(13) LA 15,904(0,15) STG 15,456(0,13) LA 1,424(0,13) LG 15,@lit_1948_310 ; rd_kafka_crash @@gen_label419 DS 0H BALR 14,15 @@gen_label420 DS 0H @L756 DS 0H * *** msetw->msetw_firstmsg.timestamp = rkm->rkm_timestamp; LG 15,96(0,3) ; offset of rkm_timestamp in rd_kafka_msg_s STG 15,112(0,2) ; offset of timestamp in 0000155 * *** * *** rd_kafka_msgbatch_set_first_msg(msetw->msetw_batch, rk\ * m); LG 15,96(0,2) STG 15,424(0,13) STG 3,432(0,13) LA 1,424(0,13) LG 15,@lit_1948_311 ; rd_kafka_msgbatch_set_first_msg @@gen_label421 DS 0H BALR 14,15 @@gen_label422 DS 0H * *** * *** * *** * *** * *** * *** do { @L757 DS 0H * *** if (((msetw->msetw_batch->last_msgid && msetw-\ * >msetw_batch->last_msgid < rkm->rkm_u.producer.msgid))) { LG 15,96(0,2) ; offset of msetw_batch in rd_kafka_msgset_w* riter_s LTG 15,80(0,15) ; offset of last_msgid in rd_kafka_msgbatch_* s BZ @L760 LG 15,96(0,2) ; offset of msetw_batch in rd_kafka_msgset_w* riter_s LG 15,80(0,15) ; offset of last_msgid in rd_kafka_msgbatch_* s CLG 15,144(0,3) BNL @L760 * *** * *** * *** do { if ((((rkb)->rkb_rk->rk_conf.debu\ * g & (0x40)))) { do { char _logname[256]; mtx_lock(&(rkb)->rkb_lognam\ * e_lock); rd_strlcpy(_logname, rkb->rkb_logname, sizeof(_logname)); m\ * tx_unlock(&(rkb)->rkb_logname_lock); rd_kafka_log0(&(rkb)->rkb_rk->r\ * k_conf, (rkb)->rkb_rk, _logname, 7, (0x40), "PRODUCE", "%.*s [%" "d"\ * "]: " "Reconstructed MessageSet " "(%d message(s), %" "zu" " bytes,\ * " "MsgIds %" "llu" "..%" "llu" ")", (int)((rktp->rktp_rkt->rkt_topi\ * c)->len == -1 ? 0 : (rktp->rktp_rkt->rkt_topic)->len), (rktp->rktp_r\ * kt->rkt_topic)->str, rktp->rktp_partition, msgcnt, len, msetw->msetw\ * _batch->first_msgid, msetw->msetw_batch->last_msgid); } while (0); }\ * } while (0); @L761 DS 0H LG 15,4048(0,4) ; offset of rkb_rk in rd_kafka_broker_s TM 803(15),64 BZ @L758 @L765 DS 0H LGHI 3,5688 ; 5688 LA 15,0(3,4) STG 15,424(0,13) LA 1,424(0,13) LG 15,@lit_1948_313 ; mtx_lock @@gen_label426 DS 0H BALR 14,15 @@gen_label427 DS 0H LA 15,168(0,13) STG 15,424(0,13) LGHI 15,5680 ; 5680 LG 15,0(15,4) STG 15,432(0,13) MVGHI 440(13),256 LA 1,424(0,13) LG 15,@lit_1948_315 ; rd_strlcpy @@gen_label428 DS 0H BALR 14,15 @@gen_label429 DS 0H LA 15,0(3,4) STG 15,424(0,13) LA 1,424(0,13) LG 15,@lit_1948_317 ; mtx_unlock @@gen_label430 DS 0H BALR 14,15 @@gen_label431 DS 0H LG 15,96(0,5) ; offset of rktp_rkt in rd_kafka_toppar_s LG 15,128(0,15) ; offset of rkt_topic in rd_kafka_topic_s CHSI 0(15),-1 BNE @L768 LHI 15,0 ; 0 B @L769 @L768 DS 0H LG 15,96(0,5) ; offset of rktp_rkt in rd_kafka_toppar_s LG 15,128(0,15) ; offset of rkt_topic in rd_kafka_topic_s L 15,0(0,15) @L769 DS 0H LG 1,4048(0,4) ; offset of rkb_rk in rd_kafka_broker_s LA 1,528(0,1) STG 1,424(0,13) LG 1,4048(0,4) STG 1,432(0,13) LA 1,168(0,13) STG 1,440(0,13) MVGHI 448(13),7 MVGHI 456(13),64 LG 1,@lit_1948_308 LA 3,450(0,1) STG 3,464(0,13) LA 1,916(0,1) STG 1,472(0,13) LGFR 15,15 STG 15,480(0,13) LG 15,96(0,5) ; offset of rktp_rkt in rd_kafka_toppar_s LG 15,128(0,15) ; offset of rkt_topic in rd_kafka_topic_s LG 15,8(0,15) STG 15,488(0,13) LGF 15,104(0,5) STG 15,496(0,13) LGFR 15,6 STG 15,504(0,13) STG 7,512(0,13) LG 15,96(0,2) ; offset of msetw_batch in rd_kafka_msgset_w* riter_s LG 15,64(0,15) STG 15,520(0,13) LG 15,96(0,2) ; offset of msetw_batch in rd_kafka_msgset_w* riter_s LG 15,80(0,15) STG 15,528(0,13) LA 1,424(0,13) LG 15,@lit_1948_320 ; rd_kafka_log0 @@gen_label433 DS 0H BALR 14,15 @@gen_label434 DS 0H @L764 DS 0H * *** # 880 "C:\asgkafka\librdkafka\src\rdkafka_msgset_writer.c" * *** break; B @L758 * *** } @L760 DS 0H * *** * *** * *** # 891 "C:\asgkafka\librdkafka\src\rdkafka_msgset_writer.c" * *** if (((msgcnt == msetw->msetw_msgcntmax || (msg\ * cnt > 0 && len + rd_kafka_msg_wire_size(rkm, msetw-> msetw_MsgVersio\ * n) > max_msg_size)))) { C 6,24(0,2) BE @L772 LTR 6,6 BNH @L770 STG 3,424(0,13) LGF 15,12(0,2) STG 15,432(0,13) LA 1,424(0,13) LG 15,@lit_1948_321 ; rd_kafka_msg_wire_size @@gen_label437 DS 0H BALR 14,15 @@gen_label438 DS 0H LGR 1,7 ALGR 1,15 CLGR 1,10 BNH @L770 @L771 DS 0H * *** * *** * *** * *** * *** do { if ((((rkb)->rkb_rk->rk_conf.debu\ * g & (0x40)))) { do { char _logname[256]; mtx_lock(&(rkb)->rkb_lognam\ * e_lock); rd_strlcpy(_logname, rkb->rkb_logname, sizeof(_logname)); m\ * tx_unlock(&(rkb)->rkb_logname_lock); rd_kafka_log0(&(rkb)->rkb_rk->r\ * k_conf, (rkb)->rkb_rk, _logname, 7, (0x40), "PRODUCE", "%.*s [%" "d"\ * "]: " "No more space in current MessageSet " "(%i message(s), %" "z\ * u" " bytes)", (int)((rktp->rktp_rkt->rkt_topic)->len == -1 ? 0 : (rk\ * tp->rktp_rkt->rkt_topic)->len), (rktp->rktp_rkt->rkt_topic)->str, rk\ * tp->rktp_partition, msgcnt, len); } while (0); } } while (0); @L772 DS 0H LG 15,4048(0,4) ; offset of rkb_rk in rd_kafka_broker_s TM 803(15),64 BZ @L758 @L776 DS 0H LGHI 3,5688 ; 5688 LA 15,0(3,4) STG 15,424(0,13) LA 1,424(0,13) LG 15,@lit_1948_313 ; mtx_lock @@gen_label441 DS 0H BALR 14,15 @@gen_label442 DS 0H LA 15,168(0,13) STG 15,424(0,13) LGHI 15,5680 ; 5680 LG 15,0(15,4) STG 15,432(0,13) MVGHI 440(13),256 LA 1,424(0,13) LG 15,@lit_1948_315 ; rd_strlcpy @@gen_label443 DS 0H BALR 14,15 @@gen_label444 DS 0H LA 15,0(3,4) STG 15,424(0,13) LA 1,424(0,13) LG 15,@lit_1948_317 ; mtx_unlock @@gen_label445 DS 0H BALR 14,15 @@gen_label446 DS 0H LG 15,96(0,5) ; offset of rktp_rkt in rd_kafka_toppar_s LG 15,128(0,15) ; offset of rkt_topic in rd_kafka_topic_s CHSI 0(15),-1 BNE @L779 LHI 15,0 ; 0 B @L780 @L779 DS 0H LG 15,96(0,5) ; offset of rktp_rkt in rd_kafka_toppar_s LG 15,128(0,15) ; offset of rkt_topic in rd_kafka_topic_s L 15,0(0,15) @L780 DS 0H LG 1,4048(0,4) ; offset of rkb_rk in rd_kafka_broker_s LA 1,528(0,1) STG 1,424(0,13) LG 1,4048(0,4) STG 1,432(0,13) LA 1,168(0,13) STG 1,440(0,13) MVGHI 448(13),7 MVGHI 456(13),64 LG 1,@lit_1948_308 LA 3,450(0,1) STG 3,464(0,13) LA 1,998(0,1) STG 1,472(0,13) LGFR 15,15 STG 15,480(0,13) LG 15,96(0,5) ; offset of rktp_rkt in rd_kafka_toppar_s LG 15,128(0,15) ; offset of rkt_topic in rd_kafka_topic_s LG 15,8(0,15) STG 15,488(0,13) LGF 15,104(0,5) STG 15,496(0,13) LGFR 15,6 STG 15,504(0,13) STG 7,512(0,13) LA 1,424(0,13) LG 15,@lit_1948_320 ; rd_kafka_log0 @@gen_label448 DS 0H BALR 14,15 @@gen_label449 DS 0H @L775 DS 0H * *** # 903 "C:\asgkafka\librdkafka\src\rdkafka_msgset_writer.c" * *** break; B @L758 * *** } @L770 DS 0H * *** * *** if (((rkm->rkm_u.producer.ts_backoff > now))) \ * { LG 15,136(0,3) ; offset of ts_backoff in 0000042 LG 1,536(0,13) ; spill CGR 15,1 BNH @L781 * *** * *** * *** break; B @L758 * *** } @L781 DS 0H * *** * *** * *** rd_kafka_msgq_deq(rkmq, rkm, 1); STG 8,424(0,13) STG 3,432(0,13) MVGHI 440(13),1 LA 1,424(0,13) LG 15,@lit_1948_331 ; rd_kafka_msgq_deq @@gen_label451 DS 0H BALR 14,15 @@gen_label452 DS 0H * *** rd_kafka_msgq_enq(&msetw->msetw_batch->msgq, r\ * km); LG 15,96(0,2) ; offset of msetw_batch in rd_kafka_msgset_w* riter_s LA 15,8(0,15) STG 15,424(0,13) STG 3,432(0,13) LA 1,424(0,13) LG 15,@lit_1948_332 ; rd_kafka_msgq_enq @@gen_label453 DS 0H BALR 14,15 @@gen_label454 DS 0H * *** * *** msetw->msetw_messages_kvlen += rkm->rkm_rkmess\ * age.len + rkm->rkm_rkmessage.key_len; LG 15,32(0,3) ; offset of len in rd_kafka_message_s ALG 15,48(0,3) ALG 15,40(0,2) STG 15,40(0,2) * *** * *** * *** rd_avg_add(&rkb->rkb_avg_int_latency, * *** int_latency_base - rkm->rkm_u.produ\ * cer.ts_timeout); LGHI 15,4408 ; 4408 LA 15,0(15,4) STG 15,424(0,13) LGR 15,11 SG 15,120(0,3) STG 15,432(0,13) LA 1,424(0,13) LG 15,@lit_1948_334 ; rd_avg_add @@gen_label455 DS 0H BALR 14,15 @@gen_label456 DS 0H * *** * *** * *** if (((MaxTimestamp < rkm->rkm_timestamp))) CG 9,96(0,3) BNL @L782 * *** MaxTimestamp = rkm->rkm_timestamp; LG 9,96(0,3) ; offset of rkm_timestamp in rd_kafka_msg_s @L782 DS 0H * *** * *** * *** len += rd_kafka_msgset_writer_write_msg(msetw,\ * rkm, msgcnt, 0, * *** ((void\ * *)0)); STMG 2,3,424(13) LGFR 15,6 STG 15,440(0,13) XC 448(16,13),448(13) LA 1,424(0,13) LG 15,@lit_1948_335 ; rd_kafka_msgset_writer_write_msg @@gen_label458 DS 0H BALR 14,15 @@gen_label459 DS 0H ALGR 7,15 * *** * *** msgcnt++; AHI 6,1 * *** * *** } while ((rkm = ((&rkmq->rkmq_msgs)->tqh_first))); LG 3,0(0,8) ; rkmq LTGR 15,3 BNZ @L757 @L758 DS 0H * *** * *** msetw->msetw_MaxTimestamp = MaxTimestamp; STG 9,80(0,2) ; offset of msetw_MaxTimestamp in rd_kafka_m* sgset_writer_s * *** * *** * *** # 945 "C:\asgkafka\librdkafka\src\rdkafka_msgset_writer.c" * *** if (msgcnt > 0 && msetw->msetw_batch->last_msgid) { LTR 6,6 BNH @L783 LG 15,96(0,2) ; offset of msetw_batch in rd_kafka_msgset_w* riter_s LTG 15,80(0,15) ; offset of last_msgid in rd_kafka_msgbatch_* s BZ @L783 * *** rd_kafka_msg_t *lastmsg; * *** * *** lastmsg = rd_kafka_msgq_last(&msetw->msetw_bat\ * ch->msgq); LG 15,96(0,2) ; offset of msetw_batch in rd_kafka_msgset_w* riter_s LA 15,8(0,15) STG 15,424(0,13) LA 1,424(0,13) LG 15,@lit_1948_336 ; rd_kafka_msgq_last @@gen_label463 DS 0H BALR 14,15 @@gen_label464 DS 0H LGR 3,15 * *** ((lastmsg) ? (void)0 : __assert(__func__, "C:\\ * \asgkafka\\librdkafka\\src\\rdkafka_msgset_writer.c", 949, "lastmsg"\ * )); LTGR 15,3 BNZ @L785 @L784 DS 0H LG 15,@lit_1948_309 LA 15,632(0,15) STG 15,424(0,13) LG 15,@lit_1948_308 LA 1,556(0,15) STG 1,432(0,13) MVGHI 440(13),949 LA 15,1072(0,15) STG 15,448(0,13) LA 1,424(0,13) LG 15,@lit_1948_339 ; __assert @@gen_label466 DS 0H BALR 14,15 @@gen_label467 DS 0H @L785 DS 0H * *** * *** if (((lastmsg->rkm_u.producer.msgid != msetw->\ * msetw_batch->last_msgid))) { LG 15,144(0,3) ; offset of msgid in 0000042 LG 1,96(0,2) ; offset of msetw_batch in rd_kafka_msgset_w* riter_s CLG 15,80(0,1) BE @L786 * *** * *** rd_kafka_set_fatal_error0(rkb->rkb_rk,\ * RD_DO_LOCK, RD_KAFKA_RESP_ERR__INCONSISTENT, "Unable to reconstruct\ * MessageSet " "(currently with %d message(s)) " "with msgid range %"\ * "llu" "..%" "llu" ": " "last message added has msgid %" "llu" ": " \ * "unable to guarantee consistency", msgcnt, msetw->msetw_batch->first\ * _msgid, msetw->msetw_batch->last_msgid, lastmsg->rkm_u.producer.msgi\ * d); LG 15,4048(0,4) STG 15,424(0,13) MVGHI 432(13),1 MVGHI 440(13),-149 LG 15,@lit_1948_308 LA 15,1080(0,15) STG 15,448(0,13) LGFR 15,6 STG 15,456(0,13) LG 15,96(0,2) ; offset of msetw_batch in rd_kafka_msgset_w* riter_s LG 15,64(0,15) STG 15,464(0,13) LG 15,96(0,2) ; offset of msetw_batch in rd_kafka_msgset_w* riter_s LG 15,80(0,15) STG 15,472(0,13) LG 15,144(0,3) STG 15,480(0,13) LA 1,424(0,13) LG 15,@lit_1948_341 ; rd_kafka_set_fatal_error0 @@gen_label469 DS 0H BALR 14,15 @@gen_label470 DS 0H * *** # 965 "C:\asgkafka\librdkafka\src\rdkafka_msgset_writer.c" * *** return 0; LGHI 15,0 ; 0 B @ret_lab_1948 * *** } @L786 DS 0H * *** } @L783 DS 0H * *** return 1; LGHI 15,1 ; 1 * *** } @ret_lab_1948 DS 0H * * **** Start of Epilogue DCCEPIL * * **** End of Epilogue DROP 12 * * DSECT for automatic variables in "rd_kafka_msgset_writer_write_msg * q" * (FUNCTION #1948) * @AUTO#rd_kafka_msgset_writer_write_msgq DSECT DS XL168 rd_kafka_msgset_writer_write_msgq#_logname#10 DS 256XL1 ; _logname ORG @AUTO#rd_kafka_msgset_writer_write_msgq+168 rd_kafka_msgset_writer_write_msgq#_logname#6 DS 256XL1 ; _logname ORG @AUTO#rd_kafka_msgset_writer_write_msgq+168 rd_kafka_msgset_writer_write_msgq#now#0 DS 8XL1 ; now ORG @AUTO#rd_kafka_msgset_writer_write_msgq+168 rd_kafka_msgset_writer_write_msgq#msgcnt#0 DS 1F ; msgcnt ORG @AUTO#rd_kafka_msgset_writer_write_msgq+168 rd_kafka_msgset_writer_write_msgq#$Max$Timestamp#0 DS 8XL1 ; MaxTimesta* mp ORG @AUTO#rd_kafka_msgset_writer_write_msgq+168 rd_kafka_msgset_writer_write_msgq#int_latency_base#0 DS 8XL1 ; int_late* ncy_base ORG @AUTO#rd_kafka_msgset_writer_write_msgq+168 rd_kafka_msgset_writer_write_msgq#max_msg_size#0 DS 8XL1 ; max_msg_size ORG @AUTO#rd_kafka_msgset_writer_write_msgq+168 rd_kafka_msgset_writer_write_msgq#len#0 DS 8XL1 ; len * @CODE CSECT * * * * ....... start of rd_kafka_msgset_writer_compress_snappy @LNAME1949 DS 0H DC X'00000026' DC C'rd_kafka_msgset_writer_compress_' DC C'snappy' DC X'00' rd_kafka_msgset_writer_compress_snappy DCCPRLG CINDEX=1949,BASER=12,FRA* ME=552,ENTRY=NO,ARCH=ZARCH,LNAMEADDR=@LNAME1949 * ******* End of Prologue * * * *** rd_kafka_broker_t *rkb = msetw->msetw_rkb; LMG 2,3,8(1) ; slice LG 15,0(0,1) ; msetw LMG 4,5,136(15) ; offset of msetw_rkb in rd_kafka_msgset_wri* ter_s * *** rd_kafka_toppar_t *rktp = msetw->msetw_rktp; * *** struct iovec *iov; * *** size_t iov_max, iov_cnt; * *** struct snappy_env senv; * *** size_t len = ((slice)->end - rd_slice_abs_offset(slice\ * )); LG 8,32(0,2) ; offset of end in rd_slice_s STG 2,456(0,13) LA 1,456(0,13) LG 15,@lit_1949_345 ; rd_slice_abs_offset @@gen_label471 DS 0H BALR 14,15 @@gen_label472 DS 0H SLGR 8,15 * *** int r; * *** * *** * *** rd_kafka_snappy_init_env_sg(&senv, 1); LA 15,176(0,13) STG 15,456(0,13) MVGHI 464(13),1 LA 1,456(0,13) LG 15,@lit_1949_346 ; rd_kafka_snappy_init_env_sg @@gen_label473 DS 0H BALR 14,15 @@gen_label474 DS 0H * *** * *** * *** * *** ciov->iov_len = rd_kafka_snappy_max_compressed_length(\ * len); STG 8,456(0,13) LA 1,456(0,13) LG 15,@lit_1949_347 ; rd_kafka_snappy_max_compressed_length @@gen_label475 DS 0H BALR 14,15 @@gen_label476 DS 0H STG 15,8(0,3) * *** ciov->iov_base = rd_malloc(ciov->iov_len); STG 15,456(0,13) LA 1,456(0,13) LG 15,@lit_1949_348 ; rd_malloc @@gen_label477 DS 0H BALR 14,15 @@gen_label478 DS 0H STG 15,0(0,3) * *** * *** iov_max = slice->buf->rbuf_segment_cnt; LG 15,0(0,2) ; slice LG 7,16(0,15) ; offset of rbuf_segment_cnt in rd_buf_s * *** iov = __builtin_alloca(sizeof(*iov) * iov_max); SLLG 15,7,4(0) ; *0x10 STG 15,456(0,13) LA 1,456(0,13) LG 15,@lit_1949_349 ; @@ALLOCA @@gen_label479 DS 0H BALR 14,15 @@gen_label480 DS 0H LGR 6,15 * *** * *** rd_slice_get_iov(slice, iov, &iov_cnt, iov_max, len); STG 2,456(0,13) STG 6,464(0,13) LA 15,168(0,13) STG 15,472(0,13) STMG 7,8,480(13) LA 1,456(0,13) LG 15,@lit_1949_350 ; rd_slice_get_iov @@gen_label481 DS 0H BALR 14,15 @@gen_label482 DS 0H * *** * *** * *** if ((r = rd_kafka_snappy_compress_iov(&senv, iov, iov_\ * cnt, len, * *** ciov)) != 0) { LA 15,176(0,13) STG 15,456(0,13) STG 6,464(0,13) LG 15,168(0,13) ; iov_cnt STG 15,472(0,13) STG 8,480(0,13) STG 3,488(0,13) LA 1,456(0,13) LG 15,@lit_1949_351 ; rd_kafka_snappy_compress_iov @@gen_label483 DS 0H BALR 14,15 @@gen_label484 DS 0H LTR 2,15 BE @L787 * *** do { char _logname[256]; mtx_lock(&(rkb)->rkb_\ * logname_lock); rd_strlcpy(_logname, rkb->rkb_logname, sizeof(_lognam\ * e)); mtx_unlock(&(rkb)->rkb_logname_lock); rd_kafka_log0(&(rkb)->rkb\ * _rk->rk_conf, (rkb)->rkb_rk, _logname, 3, 0x0, "SNAPPY", "Failed to \ * snappy-compress " "%" "zu" " bytes for " "topic %.*s [%" "d" "]: %s:\ * " "sending uncompressed", len, (int)((rktp->rktp_rkt->rkt_topic)->l\ * en == -1 ? 0 : (rktp->rktp_rkt->rkt_topic)->len), (rktp->rktp_rkt->r\ * kt_topic)->str, rktp->rktp_partition, strerror(-r)); } while (0); @L788 DS 0H LGHI 6,5688 ; 5688 LA 15,0(6,4) STG 15,456(0,13) LA 1,456(0,13) LG 15,@lit_1949_353 ; mtx_lock @@gen_label486 DS 0H BALR 14,15 @@gen_label487 DS 0H LA 15,200(0,13) STG 15,456(0,13) LGHI 15,5680 ; 5680 LG 15,0(15,4) STG 15,464(0,13) MVGHI 472(13),256 LA 1,456(0,13) LG 15,@lit_1949_355 ; rd_strlcpy @@gen_label488 DS 0H BALR 14,15 @@gen_label489 DS 0H LA 15,0(6,4) STG 15,456(0,13) LA 1,456(0,13) LG 15,@lit_1949_357 ; mtx_unlock @@gen_label490 DS 0H BALR 14,15 @@gen_label491 DS 0H LG 15,96(0,5) ; offset of rktp_rkt in rd_kafka_toppar_s LG 15,128(0,15) ; offset of rkt_topic in rd_kafka_topic_s CHSI 0(15),-1 BNE @L791 LHI 6,0 ; 0 B @L792 DS 0D @FRAMESIZE_1949 DC F'552' @lit_1949_345 DC AD(rd_slice_abs_offset) @lit_1949_346 DC AD(rd_kafka_snappy_init_env_sg) @lit_1949_347 DC AD(rd_kafka_snappy_max_compressed_length) @lit_1949_348 DC AD(rd_malloc) @lit_1949_349 DC AD(@@ALLOCA) @lit_1949_350 DC AD(rd_slice_get_iov) @lit_1949_351 DC AD(rd_kafka_snappy_compress_iov) @lit_1949_353 DC AD(mtx_lock) @lit_1949_355 DC AD(rd_strlcpy) @lit_1949_357 DC AD(mtx_unlock) @lit_1949_359 DC AD(strerror) @lit_1949_361 DC AD(rd_kafka_log0) @lit_1949_360 DC AD(@strings@) @lit_1949_362 DC AD(rd_free) @lit_1949_364 DC AD(rd_kafka_snappy_free_env) @L791 DS 0H LG 15,96(0,5) ; offset of rktp_rkt in rd_kafka_toppar_s LG 15,128(0,15) ; offset of rkt_topic in rd_kafka_topic_s L 6,0(0,15) @L792 DS 0H LCR 15,2 LGFR 15,15 STG 15,456(0,13) LA 1,456(0,13) LG 15,@lit_1949_359 ; strerror @@gen_label493 DS 0H BALR 14,15 @@gen_label494 DS 0H LG 1,4048(0,4) ; offset of rkb_rk in rd_kafka_broker_s LA 1,528(0,1) STG 1,456(0,13) LG 1,4048(0,4) STG 1,464(0,13) LA 1,200(0,13) STG 1,472(0,13) MVGHI 480(13),3 XC 488(8,13),488(13) LG 1,@lit_1949_360 LA 2,1240(0,1) STG 2,496(0,13) LA 1,1248(0,1) STG 1,504(0,13) STG 8,512(0,13) LGFR 1,6 STG 1,520(0,13) LG 1,96(0,5) ; offset of rktp_rkt in rd_kafka_toppar_s LG 1,128(0,1) ; offset of rkt_topic in rd_kafka_topic_s LG 1,8(0,1) STG 1,528(0,13) LGF 1,104(0,5) STG 1,536(0,13) STG 15,544(0,13) LA 1,456(0,13) LG 15,@lit_1949_361 ; rd_kafka_log0 @@gen_label495 DS 0H BALR 14,15 @@gen_label496 DS 0H * *** # 1109 "C:\asgkafka\librdkafka\src\rdkafka_msgset_writer.c" * *** rd_free(ciov->iov_base); LG 15,0(0,3) STG 15,456(0,13) LA 1,456(0,13) LG 15,@lit_1949_362 ; rd_free @@gen_label497 DS 0H BALR 14,15 @@gen_label498 DS 0H * *** return -1; LGHI 15,-1 ; -1 B @ret_lab_1949 * *** } @L787 DS 0H * *** * *** * *** rd_kafka_snappy_free_env(&senv); LA 15,176(0,13) STG 15,456(0,13) LA 1,456(0,13) LG 15,@lit_1949_364 ; rd_kafka_snappy_free_env @@gen_label499 DS 0H BALR 14,15 @@gen_label500 DS 0H * *** * *** return 0; LGHI 15,0 ; 0 * *** } @ret_lab_1949 DS 0H * * **** Start of Epilogue DCCEPIL * * **** End of Epilogue DROP 12 * * DSECT for automatic variables in "rd_kafka_msgset_writer_compress_ * snappy" * (FUNCTION #1949) * @AUTO#rd_kafka_msgset_writer_compress_snappy DSECT DS XL168 rd_kafka_msgset_writer_compress_snappy#r#0 DS 1F ; r ORG @AUTO#rd_kafka_msgset_writer_compress_snappy+168 rd_kafka_msgset_writer_compress_snappy#len#0 DS 8XL1 ; len ORG @AUTO#rd_kafka_msgset_writer_compress_snappy+168 rd_kafka_msgset_writer_compress_snappy#iov_cnt#0 DS 8XL1 ; iov_cnt ORG @AUTO#rd_kafka_msgset_writer_compress_snappy+168 rd_kafka_msgset_writer_compress_snappy#iov_max#0 DS 8XL1 ; iov_max ORG @AUTO#rd_kafka_msgset_writer_compress_snappy+176 rd_kafka_msgset_writer_compress_snappy#senv#0 DS 24XL1 ; senv ORG @AUTO#rd_kafka_msgset_writer_compress_snappy+200 rd_kafka_msgset_writer_compress_snappy#_logname#2 DS 256XL1 ; _logname * @CODE CSECT * * * * ....... start of rd_kafka_msgset_writer_compress_lz4 @LNAME1950 DS 0H DC X'00000023' DC C'rd_kafka_msgset_writer_compress_' DC C'lz4' DC X'00' rd_kafka_msgset_writer_compress_lz4 DCCPRLG CINDEX=1950,BASER=12,FRAME=* 224,ENTRY=NO,ARCH=ZARCH,LNAMEADDR=@LNAME1950 LGR 2,1 ; ptr to parm area * ******* End of Prologue * * LG 15,0(0,2) ; msetw * *** rd_kafka_resp_err_t err; * *** int comp_level = * *** msetw->msetw_rktp->rktp_rkt->rkt_conf.compress\ * ion_level; LG 1,144(0,15) ; offset of msetw_rktp in rd_kafka_msgset_wr* iter_s LG 1,96(0,1) ; offset of rktp_rkt in rd_kafka_toppar_s L 1,980(0,1) ; offset of compression_level in rd_kafka_to* pic_conf_s * *** err = rd_kafka_lz4_compress(msetw->msetw_rkb, * *** * *** msetw->msetw_MsgVersion >=\ * 1 ? 1 : 0, * *** comp_level, * *** slice, &ciov->iov_base, &c\ * iov->iov_len); CHSI 12(15),1 BL @L793 LHI 3,1 ; 1 B @L794 DS 0D @FRAMESIZE_1950 DC F'224' @lit_1950_369 DC AD(rd_kafka_lz4_compress) @L793 DS 0H LHI 3,0 ; 0 @L794 DS 0H LG 15,136(0,15) STG 15,176(0,13) LGFR 15,3 STG 15,184(0,13) LGFR 15,1 STG 15,192(0,13) LG 15,8(0,2) ; slice STG 15,200(0,13) LG 15,16(0,2) ; ciov STG 15,208(0,13) LG 15,16(0,2) ; ciov LA 15,8(0,15) STG 15,216(0,13) LA 1,176(0,13) LG 15,@lit_1950_369 ; rd_kafka_lz4_compress @@gen_label502 DS 0H BALR 14,15 @@gen_label503 DS 0H * *** return (err ? -1 : 0); LTR 15,15 BZ @L795 LHI 15,-1 ; -1 B @L796 @L795 DS 0H LHI 15,0 ; 0 @L796 DS 0H LGFR 15,15 * *** } * * **** Start of Epilogue DCCEPIL * * **** End of Epilogue DROP 12 * * DSECT for automatic variables in "rd_kafka_msgset_writer_compress_ * lz4" * (FUNCTION #1950) * @AUTO#rd_kafka_msgset_writer_compress_lz4 DSECT DS XL168 rd_kafka_msgset_writer_compress_lz4#comp_level#0 DS 1F ; comp_level ORG @AUTO#rd_kafka_msgset_writer_compress_lz4+168 rd_kafka_msgset_writer_compress_lz4#err#0 DS 1F ; err * @CODE CSECT * * * * ....... start of rd_kafka_msgset_writer_compress @LNAME1951 DS 0H DC X'0000001F' DC C'rd_kafka_msgset_writer_compress' DC X'00' rd_kafka_msgset_writer_compress DCCPRLG CINDEX=1951,BASER=12,FRAME=432,* ENTRY=NO,ARCH=ZARCH,LNAMEADDR=@LNAME1951 LGR 6,1 ; ptr to parm area * ******* End of Prologue * * * *** rd_buf_t *rbuf = &msetw->msetw_rkbuf->rkbuf_buf; LG 3,0(0,6) ; msetw LG 15,0(0,3) ; msetw LA 4,40(0,15) * *** rd_slice_t slice; * *** size_t len = *outlenp; LG 15,8(0,6) ; outlenp LG 5,0(0,15) ; outlenp * *** struct iovec ciov = {}; * setting 16 bytes to 0x00 XC 208(16,13),208(13) * *** int r = -1; * *** size_t outlen; * *** * *** ((rd_buf_len(rbuf) >= msetw->msetw_firstmsg.of + len) \ * ? (void)0 : __assert(__func__, "C:\\asgkafka\\librdkafka\\src\\rdkaf\ * ka_msgset_writer.c", 1172, "rd_buf_len(rbuf) >= msetw->msetw_firstms\ * g.of + len")); STG 4,392(0,13) LA 1,392(0,13) LG 15,@lit_1951_374 ; rd_buf_len @@gen_label505 DS 0H BALR 14,15 @@gen_label506 DS 0H LGR 1,5 ALG 1,104(0,3) CLGR 15,1 BNL @L798 @L797 DS 0H LG 15,@lit_1951_375 LA 15,666(0,15) STG 15,392(0,13) LG 15,@lit_1951_376 LA 1,556(0,15) STG 1,400(0,13) MVGHI 408(13),1172 LA 15,1330(0,15) STG 15,416(0,13) LA 1,392(0,13) LG 15,@lit_1951_377 ; __assert @@gen_label508 DS 0H BALR 14,15 @@gen_label509 DS 0H @L798 DS 0H * *** * *** * *** r = rd_slice_init(&slice, rbuf, msetw->msetw_firstmsg.\ * of, len); LA 15,168(0,13) STG 15,392(0,13) STG 4,400(0,13) LG 15,104(0,3) STG 15,408(0,13) STG 5,416(0,13) LA 1,392(0,13) LG 15,@lit_1951_378 ; rd_slice_init @@gen_label510 DS 0H BALR 14,15 @@gen_label511 DS 0H LTR 2,15 ; r * *** ((r == 0 || !*"invalid firstmsg position") ? (void)0 :\ * __assert(__func__, "C:\\asgkafka\\librdkafka\\src\\rdkafka_msgset_w\ * riter.c", 1176, "r == 0 || !*\"invalid firstmsg position\"")); BE @L802 LG 15,@lit_1951_376 LA 1,1382(0,15) CLI 0(1),0 BNE @L799 @L800 DS 0H B @L802 DS 0D @FRAMESIZE_1951 DC F'432' @lit_1951_374 DC AD(rd_buf_len) @lit_1951_377 DC AD(__assert) @lit_1951_376 DC AD(@strings@) @lit_1951_375 DC AD(@DATA) @lit_1951_378 DC AD(rd_slice_init) @lit_1951_382 DC AD(rd_kafka_msgset_writer_compress_snappy) @lit_1951_383 DC AD(rd_kafka_msgset_writer_compress_lz4) @lit_1951_386 DC AD(rd_kafka_crash) @lit_1951_388 DC AD(rd_free) @lit_1951_390 DC AD(rd_buf_write_seek) @lit_1951_395 DC AD(rd_buf_push0) @lit_1951_397 DC AD(rd_kafka_msgset_writer_write_msg) @L799 DS 0H LG 1,@lit_1951_375 LA 1,666(0,1) STG 1,392(0,13) LA 1,556(0,15) STG 1,400(0,13) MVGHI 408(13),1176 LA 15,1408(0,15) STG 15,416(0,13) LA 1,392(0,13) LG 15,@lit_1951_377 ; __assert @@gen_label514 DS 0H BALR 14,15 @@gen_label515 DS 0H @L801 DS 0H * *** * *** switch (msetw->msetw_compression) B @L802 * *** { * *** * *** # 1187 "C:\asgkafka\librdkafka\src\rdkafka_msgset_writer.c" * *** case RD_KAFKA_COMPRESSION_SNAPPY: @L804 DS 0H * *** r = rd_kafka_msgset_writer_compress_snappy(mse\ * tw, &slice, * *** &ci\ * ov); STG 3,392(0,13) LA 15,168(0,13) STG 15,400(0,13) LA 15,208(0,13) STG 15,408(0,13) LA 1,392(0,13) LG 15,@lit_1951_382 ; rd_kafka_msgset_writer_compress_snapp* y @@gen_label516 DS 0H BALR 14,15 @@gen_label517 DS 0H LR 2,15 ; r * *** break; B @L803 * *** * *** * *** case RD_KAFKA_COMPRESSION_LZ4: @L805 DS 0H * *** r = rd_kafka_msgset_writer_compress_lz4(msetw,\ * &slice, &ciov); STG 3,392(0,13) LA 15,168(0,13) STG 15,400(0,13) LA 15,208(0,13) STG 15,408(0,13) LA 1,392(0,13) LG 15,@lit_1951_383 ; rd_kafka_msgset_writer_compress_lz4 @@gen_label518 DS 0H BALR 14,15 @@gen_label519 DS 0H LR 2,15 ; r * *** break; B @L803 * *** * *** * *** # 1203 "C:\asgkafka\librdkafka\src\rdkafka_msgset_writer.c" * *** default: * *** do { if (((!(!*"notreached: unsupported compre\ * ssion.codec")))) rd_kafka_crash("C:\\asgkafka\\librdkafka\\src\\rdka\ * fka_msgset_writer.c",1204, __FUNCTION__, (((void *)0)), "assert: " "\ * !*\"notreached: unsupported compression.codec\""); } while (0); @L807 DS 0H LG 15,@lit_1951_376 LA 1,1448(0,15) CLI 0(1),0 BE @L803 LA 1,556(0,15) STG 1,392(0,13) MVGHI 400(13),1204 LG 1,@lit_1951_375 LA 1,666(0,1) STG 1,408(0,13) XC 416(8,13),416(13) LA 15,1490(0,15) STG 15,424(0,13) LA 1,392(0,13) LG 15,@lit_1951_386 ; rd_kafka_crash @@gen_label521 DS 0H BALR 14,15 @@gen_label522 DS 0H @L810 DS 0H * *** * *** break; B @L803 * *** } @L802 DS 0H L 15,20(0,3) ; offset of msetw_compression in rd_kafka_ms* gset_writer_s CHI 15,2 BL @L807 CHI 15,2 BE @L804 CHI 15,3 BE @L805 B @L807 @L803 DS 0H * *** * *** if (r == -1) CHI 2,-1 BNE @L811 * *** return -1; LGHI 15,-1 ; -1 B @ret_lab_1951 @L811 DS 0H * *** * *** * *** if (((ciov.iov_len > len))) { LG 15,216(0,13) ; offset of iov_len in iovec CLGR 15,5 BNH @L812 * *** * *** * *** rd_free(ciov.iov_base); LG 15,208(0,13) STG 15,392(0,13) LA 1,392(0,13) LG 15,@lit_1951_388 ; rd_free @@gen_label525 DS 0H BALR 14,15 @@gen_label526 DS 0H * *** return -1; LGHI 15,-1 ; -1 B @ret_lab_1951 * *** } @L812 DS 0H * *** * *** * *** msetw->msetw_Attributes |= msetw->msetw_compression; L 15,76(0,3) O 15,20(0,3) ST 15,76(0,3) * *** * *** * *** * *** * *** rd_buf_write_seek(rbuf, msetw->msetw_firstmsg.of); STG 4,392(0,13) LG 15,104(0,3) STG 15,400(0,13) LA 1,392(0,13) LG 15,@lit_1951_390 ; rd_buf_write_seek @@gen_label527 DS 0H BALR 14,15 @@gen_label528 DS 0H * *** * *** do { if (((!(ciov.iov_len < 0x7fffffff)))) rd_kafka_cr\ * ash("C:\\asgkafka\\librdkafka\\src\\rdkafka_msgset_writer.c",1228, _\ * _FUNCTION__, (msetw->msetw_rkb->rkb_rk), "assert: " "ciov.iov_len < \ * INT32_MAX"); } while (0); @L813 DS 0H LG 15,216(0,13) CLGFI 15,X'7FFFFFFF' BL @L816 LG 15,@lit_1951_376 LA 1,556(0,15) STG 1,392(0,13) MVGHI 400(13),1228 LG 1,@lit_1951_375 LA 1,666(0,1) STG 1,408(0,13) LG 1,136(0,3) ; offset of msetw_rkb in rd_kafka_msgset_wri* ter_s LG 1,4048(0,1) STG 1,416(0,13) LA 15,1544(0,15) STG 15,424(0,13) LA 1,392(0,13) LG 15,@lit_1951_386 ; rd_kafka_crash @@gen_label530 DS 0H BALR 14,15 @@gen_label531 DS 0H @L816 DS 0H * *** * *** if (msetw->msetw_MsgVersion == 2) { CHSI 12(3),2 BNE @L817 * *** * *** * *** * *** * *** rd_buf_push0(rbuf,ciov.iov_base,ciov.iov_len,r\ * d_free,0 ); STG 4,392(0,13) LG 15,208(0,13) STG 15,400(0,13) LG 15,216(0,13) STG 15,408(0,13) LG 15,@lit_1951_388 ; rd_free STG 15,416(0,13) XC 424(8,13),424(13) LA 1,392(0,13) LG 15,@lit_1951_395 ; rd_buf_push0 @@gen_label533 DS 0H BALR 14,15 @@gen_label534 DS 0H * *** outlen = ciov.iov_len; LG 15,216(0,13) ; offset of iov_len in iovec * *** * *** } else { B @L818 @L817 DS 0H * *** * *** * *** rd_kafka_msg_t rkm = { * *** . rkm_rkmessage.len = ciov.iov_l\ * en, LG 15,216(0,13) ; offset of iov_len in iovec STG 15,256(0,13) * *** . rkm_rkmessage.payload = ciov.iov_b\ * ase, LG 15,208(0,13) STG 15,248(0,13) * *** .rkm_timestamp = msetw->msetw_firstmsg\ * .timestamp * *** }; LG 15,112(0,3) ; offset of timestamp in 0000155 STG 15,320(0,13) * setting 24 bytes to 0x00 XC 224(24,13),224(13) * setting 56 bytes to 0x00 XC 264(56,13),264(13) * setting 64 bytes to 0x00 XC 328(64,13),328(13) * *** outlen = rd_kafka_msgset_writer_write_msg( * *** msetw, &rkm, 0, * *** msetw->msetw_compression, * *** rd_free); STG 3,392(0,13) LA 15,224(0,13) STG 15,400(0,13) XC 408(8,13),408(13) L 15,20(0,3) ; offset of msetw_compression in rd_kafka_ms* gset_writer_s SLLG 15,15,56(0) SRAG 15,15,56(0) STG 15,416(0,13) LG 15,@lit_1951_388 ; rd_free STG 15,424(0,13) LA 1,392(0,13) LG 15,@lit_1951_397 ; rd_kafka_msgset_writer_write_msg @@gen_label535 DS 0H BALR 14,15 @@gen_label536 DS 0H * *** } @L818 DS 0H * *** * *** *outlenp = outlen; LG 1,8(0,6) ; outlenp STG 15,0(0,1) ; outlenp * *** * *** return 0; LGHI 15,0 ; 0 * *** } @ret_lab_1951 DS 0H * * **** Start of Epilogue DCCEPIL * * **** End of Epilogue DROP 12 * * DSECT for automatic variables in "rd_kafka_msgset_writer_compress" * (FUNCTION #1951) * @AUTO#rd_kafka_msgset_writer_compress DSECT DS XL168 rd_kafka_msgset_writer_compress#outlen#0 DS 8XL1 ; outlen ORG @AUTO#rd_kafka_msgset_writer_compress+168 rd_kafka_msgset_writer_compress#r#0 DS 1F ; r ORG @AUTO#rd_kafka_msgset_writer_compress+168 rd_kafka_msgset_writer_compress#len#0 DS 8XL1 ; len ORG @AUTO#rd_kafka_msgset_writer_compress+168 rd_kafka_msgset_writer_compress#slice#0 DS 40XL1 ; slice ORG @AUTO#rd_kafka_msgset_writer_compress+208 rd_kafka_msgset_writer_compress#ciov#0 DS 16XL1 ; ciov ORG @AUTO#rd_kafka_msgset_writer_compress+224 rd_kafka_msgset_writer_compress#rkm#6 DS 168XL1 ; rkm * @CODE CSECT * * * * ....... start of rd_kafka_msgset_writer_calc_crc_v2 @LNAME1952 DS 0H DC X'00000022' DC C'rd_kafka_msgset_writer_calc_crc_' DC C'v2' DC X'00' rd_kafka_msgset_writer_calc_crc_v2 DCCPRLG CINDEX=1952,BASER=12,FRAME=2* 40,ENTRY=NO,ARCH=ZARCH,LNAMEADDR=@LNAME1952 * ******* End of Prologue * * LG 2,0(0,1) ; msetw * *** int32_t crc; * *** rd_slice_t slice; * *** int r; * *** * *** r = rd_slice_init(&slice, &msetw->msetw_rkbuf->rkbuf_b\ * uf, * *** msetw->msetw_of_CRC+4, * *** rd_buf_write_pos(&msetw->msetw_rkbuf\ * ->rkbuf_buf) - LG 15,0(0,2) ; msetw LA 15,40(0,15) STG 15,208(0,13) LA 1,208(0,13) LG 15,@lit_1952_400 ; rd_buf_write_pos @@gen_label537 DS 0H BALR 14,15 @@gen_label538 DS 0H * *** msetw->msetw_of_CRC-4); SLG 15,88(0,2) AGHI 15,-4 LA 1,168(0,13) STG 1,208(0,13) LG 1,0(0,2) ; msetw LA 1,40(0,1) STG 1,216(0,13) LG 1,88(0,2) ; offset of msetw_of_CRC in rd_kafka_msgset_* writer_s AGHI 1,4 STG 1,224(0,13) STG 15,232(0,13) LA 1,208(0,13) LG 15,@lit_1952_401 ; rd_slice_init @@gen_label539 DS 0H BALR 14,15 @@gen_label540 DS 0H * *** ((!r && *"slice_init failed") ? (void)0 : __assert(__fu\ * nc__, "C:\\asgkafka\\librdkafka\\src\\rdkafka_msgset_writer.c", 1273\ * , "!r && *\"slice_init failed\"")); LTR 15,15 BNZ @L819 LG 15,@lit_1952_402 LA 15,1578(0,15) CLI 0(15),0 BNE @L820 @L819 DS 0H LG 15,@lit_1952_403 LA 15,698(0,15) STG 15,208(0,13) LG 15,@lit_1952_402 LA 1,556(0,15) STG 1,216(0,13) MVGHI 224(13),1273 LA 15,1596(0,15) STG 15,232(0,13) LA 1,208(0,13) LG 15,@lit_1952_405 ; __assert @@gen_label543 DS 0H BALR 14,15 @@gen_label544 DS 0H @L820 DS 0H * *** * *** * *** crc = rd_slice_crc32c(&slice); LA 15,168(0,13) STG 15,208(0,13) LA 1,208(0,13) LG 15,@lit_1952_406 ; rd_slice_crc32c @@gen_label545 DS 0H BALR 14,15 @@gen_label546 DS 0H * *** * *** * *** rd_kafka_buf_update_i32(msetw->msetw_rkbuf, msetw->mse\ * tw_of_CRC, crc); LG 1,0(0,2) STG 1,208(0,13) LG 1,88(0,2) STG 1,216(0,13) LGFR 15,15 STG 15,224(0,13) LA 1,208(0,13) LG 15,@lit_1952_407 ; rd_kafka_buf_update_i32 @@gen_label547 DS 0H BALR 14,15 @@gen_label548 DS 0H * *** } @ret_lab_1952 DS 0H * * **** Start of Epilogue DCCEPIL * * **** End of Epilogue DS 0D @FRAMESIZE_1952 DC F'240' @lit_1952_400 DC AD(rd_buf_write_pos) @lit_1952_401 DC AD(rd_slice_init) @lit_1952_402 DC AD(@strings@) @lit_1952_405 DC AD(__assert) @lit_1952_403 DC AD(@DATA) @lit_1952_406 DC AD(rd_slice_crc32c) @lit_1952_407 DC AD(rd_kafka_buf_update_i32) DROP 12 * * DSECT for automatic variables in "rd_kafka_msgset_writer_calc_crc_ * v2" * (FUNCTION #1952) * @AUTO#rd_kafka_msgset_writer_calc_crc_v2 DSECT DS XL168 rd_kafka_msgset_writer_calc_crc_v2#r#0 DS 1F ; r ORG @AUTO#rd_kafka_msgset_writer_calc_crc_v2+168 rd_kafka_msgset_writer_calc_crc_v2#slice#0 DS 40XL1 ; slice ORG @AUTO#rd_kafka_msgset_writer_calc_crc_v2+168 rd_kafka_msgset_writer_calc_crc_v2#crc#0 DS 1F ; crc * @CODE CSECT * * * * ....... start of rd_kafka_msgset_writer_finalize_MessageSet_v2_heade\ * r @LNAME1953 DS 0H DC X'00000034' DC C'rd_kafka_msgset_writer_finalize_' DC C'MessageSet_v2_header' DC X'00' rd_kafka_msgset_writer_finalize_$Message$Set_v2_header DCCPRLG CINDEX=1* 953,BASER=12,FRAME=216,ENTRY=NO,ARCH=ZARCH,LNAMEADDR=@LN* AME1953 * ******* End of Prologue * * * *** rd_kafka_buf_t *rkbuf = msetw->msetw_rkbuf; LG 2,0(0,1) ; msetw LG 3,0(0,2) ; msetw * *** int msgcnt = rd_kafka_msgq_len(&rkbuf->rkbuf_u.Produce\ * .batch .msgq); LA 15,408(0,3) STG 15,176(0,13) LA 1,176(0,13) LG 15,@lit_1953_409 ; rd_kafka_msgq_len @@gen_label549 DS 0H BALR 14,15 @@gen_label550 DS 0H LR 4,15 * *** * *** do { if (((!(msgcnt > 0)))) rd_kafka_crash("C:\\asgkaf\ * ka\\librdkafka\\src\\rdkafka_msgset_writer.c",1291, __FUNCTION__, ((\ * (void *)0)), "assert: " "msgcnt > 0"); } while (0); @L821 DS 0H LTR 4,4 BH @L824 LG 15,@lit_1953_410 LA 1,556(0,15) STG 1,176(0,13) MVGHI 184(13),1291 LG 1,@lit_1953_411 LA 1,734(0,1) STG 1,192(0,13) XC 200(8,13),200(13) LA 15,1624(0,15) STG 15,208(0,13) LA 1,176(0,13) LG 15,@lit_1953_412 ; rd_kafka_crash @@gen_label552 DS 0H BALR 14,15 @@gen_label553 DS 0H @L824 DS 0H * *** do { if (((!(msetw->msetw_ApiVersion >= 3)))) rd_kafka\ * _crash("C:\\asgkafka\\librdkafka\\src\\rdkafka_msgset_writer.c",1292\ * , __FUNCTION__, (((void *)0)), "assert: " "msetw->msetw_ApiVersion >\ * = 3"); } while (0); @L825 DS 0H LH 15,8(0,2) CHI 15,3 BNL @L828 LG 15,@lit_1953_410 LA 1,556(0,15) STG 1,176(0,13) MVGHI 184(13),1292 LG 1,@lit_1953_411 LA 1,734(0,1) STG 1,192(0,13) XC 200(8,13),200(13) LA 15,738(0,15) STG 15,208(0,13) LA 1,176(0,13) LG 15,@lit_1953_412 ; rd_kafka_crash @@gen_label555 DS 0H BALR 14,15 @@gen_label556 DS 0H @L828 DS 0H * *** * *** msetw->msetw_MessageSetSize = (8+4+4+1+4+2+4+8+8+8+2+4\ * +4) + * *** msetw->msetw_messages_len; LG 15,32(0,2) ; offset of msetw_messages_len in rd_kafka_m* sgset_writer_s AGHI 15,61 STG 15,48(0,2) ; offset of msetw_MessageSetSize in rd_kafka* _msgset_writer_s * *** * *** * *** * *** rd_kafka_buf_update_i32(rkbuf, msetw->msetw_of_start + * *** (int32_t)msetw->msetw_MessageS\ * etSize - (8+4)); STG 3,176(0,13) * *** (8), LG 15,64(0,2) ; offset of msetw_of_start in rd_kafka_msgse* t_writer_s AGHI 15,8 STG 15,184(0,13) LG 15,48(0,2) ; offset of msetw_MessageSetSize in rd_kafka* _msgset_writer_s AHI 15,-12 LGFR 15,15 STG 15,192(0,13) LA 1,176(0,13) LG 5,@lit_1953_416 ; rd_kafka_buf_update_i32 LGR 15,5 @@gen_label557 DS 0H BALR 14,15 @@gen_label558 DS 0H * *** * *** msetw->msetw_Attributes |= (0 << 3); L 15,76(0,2) * *** * *** if (((msetw->msetw_rkb->rkb_rk)->rk_conf.eos.transacti\ * onal_id != ((void *)0))) LG 15,136(0,2) ; offset of msetw_rkb in rd_kafka_msgset_wri* ter_s LG 15,4048(0,15) ; offset of rkb_rk in rd_kafka_broker_s LTG 15,2024(0,15) ; offset of transactional_id in 0000105 BE @L829 * *** msetw->msetw_Attributes |= * *** (1 << 4); L 15,76(0,2) OILL 15,16 ST 15,76(0,2) @L829 DS 0H * *** * *** rd_kafka_buf_update_i16(rkbuf, msetw->msetw_of_start + * *** msetw->msetw_Attributes); STG 3,176(0,13) * *** (8+4+4+1+4), LG 15,64(0,2) ; offset of msetw_of_start in rd_kafka_msgse* t_writer_s AGHI 15,21 STG 15,184(0,13) L 15,76(0,2) ; offset of msetw_Attributes in rd_kafka_msg* set_writer_s LGHR 15,15 STG 15,192(0,13) LA 1,176(0,13) LG 15,@lit_1953_417 ; rd_kafka_buf_update_i16 @@gen_label560 DS 0H BALR 14,15 @@gen_label561 DS 0H * *** * *** rd_kafka_buf_update_i32(rkbuf, msetw->msetw_of_start + * *** msgcnt-1); STG 3,176(0,13) * *** (8+4+4+1+4+2), LG 15,64(0,2) ; offset of msetw_of_start in rd_kafka_msgse* t_writer_s AGHI 15,23 STG 15,184(0,13) LR 15,4 AHI 15,-1 LGFR 15,15 STG 15,192(0,13) LA 1,176(0,13) LGR 15,5 @@gen_label562 DS 0H BALR 14,15 @@gen_label563 DS 0H * *** * *** rd_kafka_buf_update_i64(rkbuf, msetw->msetw_of_start + * *** msetw->msetw_firstmsg.timestam\ * p); STG 3,176(0,13) * *** (8+4+4+1+4+2+4), LG 15,64(0,2) ; offset of msetw_of_start in rd_kafka_msgse* t_writer_s AGHI 15,27 STG 15,184(0,13) LG 15,112(0,2) STG 15,192(0,13) LA 1,176(0,13) LG 6,@lit_1953_419 ; rd_kafka_buf_update_i64 LGR 15,6 @@gen_label564 DS 0H BALR 14,15 @@gen_label565 DS 0H * *** * *** rd_kafka_buf_update_i64(rkbuf, msetw->msetw_of_start + * *** msetw->msetw_MaxTimestamp); STG 3,176(0,13) * *** (8+4+4+1+4+2+4+8), LG 15,64(0,2) ; offset of msetw_of_start in rd_kafka_msgse* t_writer_s AGHI 15,35 STG 15,184(0,13) LG 15,80(0,2) STG 15,192(0,13) LA 1,176(0,13) LGR 15,6 @@gen_label566 DS 0H BALR 14,15 @@gen_label567 DS 0H * *** * *** rd_kafka_buf_update_i32(rkbuf, msetw->msetw_of_start + * *** msetw->msetw_batch->first_seq)\ * ; STG 3,176(0,13) * *** (8+4+4+1+4+2+4+8+8+8+2), LG 15,64(0,2) ; offset of msetw_of_start in rd_kafka_msgse* t_writer_s AGHI 15,53 STG 15,184(0,13) LG 15,96(0,2) ; offset of msetw_batch in rd_kafka_msgset_w* riter_s LGF 15,56(0,15) STG 15,192(0,13) LA 1,176(0,13) LGR 15,5 @@gen_label568 DS 0H BALR 14,15 @@gen_label569 DS 0H * *** * *** rd_kafka_buf_update_i32(rkbuf, msetw->msetw_of_start + STG 3,176(0,13) * *** (8+4+4+1+4+2+4+8+8+8+2+4), msg\ * cnt); LG 15,64(0,2) ; offset of msetw_of_start in rd_kafka_msgse* t_writer_s AGHI 15,57 STG 15,184(0,13) LGFR 15,4 STG 15,192(0,13) LA 1,176(0,13) LGR 15,5 @@gen_label570 DS 0H BALR 14,15 @@gen_label571 DS 0H * *** * *** rd_kafka_msgset_writer_calc_crc_v2(msetw); STG 2,176(0,13) LA 1,176(0,13) LG 15,@lit_1953_423 ; rd_kafka_msgset_writer_calc_crc_v2 @@gen_label572 DS 0H BALR 14,15 @@gen_label573 DS 0H * *** } @ret_lab_1953 DS 0H * * **** Start of Epilogue DCCEPIL * * **** End of Epilogue DS 0D @FRAMESIZE_1953 DC F'216' @lit_1953_409 DC AD(rd_kafka_msgq_len) @lit_1953_412 DC AD(rd_kafka_crash) @lit_1953_411 DC AD(@DATA) @lit_1953_410 DC AD(@strings@) @lit_1953_416 DC AD(rd_kafka_buf_update_i32) @lit_1953_417 DC AD(rd_kafka_buf_update_i16) @lit_1953_419 DC AD(rd_kafka_buf_update_i64) @lit_1953_423 DC AD(rd_kafka_msgset_writer_calc_crc_v2) DROP 12 * * DSECT for automatic variables in "rd_kafka_msgset_writer_finalize_ * MessageSet_v2_header" * (FUNCTION #1953) * @AUTO#F#1953 DSECT DS XL168 rd_kafka_msgset_writer_finalize_$Message$Set_v2_header#msgcnt#0 DS 1F ;* msgcnt * @CODE CSECT * * * * ....... start of rd_kafka_msgset_writer_finalize_MessageSet @LNAME1954 DS 0H DC X'0000002A' DC C'rd_kafka_msgset_writer_finalize_' DC C'MessageSet' DC X'00' rd_kafka_msgset_writer_finalize_$Message$Set DCCPRLG CINDEX=1954,BASER=* 12,FRAME=192,ENTRY=NO,ARCH=ZARCH,LNAMEADDR=@LNAME1954 * ******* End of Prologue * * * *** do {} while (0); LG 2,0(0,1) ; msetw @L830 DS 0H * *** * *** if (msetw->msetw_MsgVersion == 2) CHSI 12(2),2 BNE @L833 * *** rd_kafka_msgset_writer_finalize_MessageSet_v2_\ * header(msetw); STG 2,168(0,13) LA 1,168(0,13) LG 15,@lit_1954_425 ; rd_kafka_msgset_writer_finalize_Messa* geSet_v2_header @@gen_label575 DS 0H BALR 14,15 @@gen_label576 DS 0H B @L834 DS 0D @FRAMESIZE_1954 DC F'192' @lit_1954_425 DC AD(rd_kafka_msgset_writer_finalize_$Message$Set_v2_hea* der) @lit_1954_426 DC AD(rd_kafka_buf_update_i32) * *** else @L833 DS 0H * *** msetw->msetw_MessageSetSize = 0 + * *** msetw->msetw_messages_len; LG 15,32(0,2) ; offset of msetw_messages_len in rd_kafka_m* sgset_writer_s STG 15,48(0,2) ; offset of msetw_MessageSetSize in rd_kafka* _msgset_writer_s @L834 DS 0H * *** * *** * *** rd_kafka_buf_update_i32(msetw->msetw_rkbuf, * *** msetw->msetw_of_MessageSetSize\ * , * *** (int32_t)msetw->msetw_MessageS\ * etSize); LG 15,0(0,2) STG 15,168(0,13) LG 15,56(0,2) STG 15,176(0,13) LGF 15,52(0,2) STG 15,184(0,13) LA 1,168(0,13) LG 15,@lit_1954_426 ; rd_kafka_buf_update_i32 @@gen_label577 DS 0H BALR 14,15 @@gen_label578 DS 0H * *** * *** } @ret_lab_1954 DS 0H * * **** Start of Epilogue DCCEPIL * * **** End of Epilogue DROP 12 * * DSECT for automatic variables in "rd_kafka_msgset_writer_finalize_ * MessageSet" * (FUNCTION #1954) * @AUTO#rd_kafka_msgset_writer_finalize_$Message$Set DSECT DS XL168 * @CODE CSECT * * * * ....... start of rd_kafka_msgset_writer_finalize @LNAME1955 DS 0H DC X'0000001F' DC C'rd_kafka_msgset_writer_finalize' DC X'00' rd_kafka_msgset_writer_finalize DCCPRLG CINDEX=1955,BASER=12,FRAME=568,* ENTRY=NO,ARCH=ZARCH,LNAMEADDR=@LNAME1955 LGR 6,1 ; ptr to parm area * ******* End of Prologue * * * *** rd_kafka_buf_t *rkbuf = msetw->msetw_rkbuf; LG 2,0(0,6) ; msetw LG 3,0(0,2) ; msetw * *** rd_kafka_toppar_t *rktp = msetw->msetw_rktp; LG 4,144(0,2) ; offset of msetw_rktp in rd_kafka_msgset_wr* iter_s * *** size_t len; * *** int cnt; * *** * *** * *** if ((((cnt = rd_kafka_msgq_len(&rkbuf->rkbuf_u.Produce\ * .batch .msgq)) == 0))) { LA 15,408(0,3) STG 15,432(0,13) LA 1,432(0,13) LG 15,@lit_1955_428 ; rd_kafka_msgq_len @@gen_label579 DS 0H BALR 14,15 @@gen_label580 DS 0H LTR 5,15 BNE @L835 * *** * *** do { if (rd_refcnt_sub0(&(rkbuf)->rkbuf_refcnt\ * ) > 0) break; rd_kafka_buf_destroy_final(rkbuf); } while (0); @L836 DS 0H LA 15,264(0,3) STG 15,432(0,13) LA 1,432(0,13) LG 15,@lit_1955_429 ; rd_refcnt_sub0 @@gen_label582 DS 0H BALR 14,15 @@gen_label583 DS 0H LTR 15,15 BH @L837 @L839 DS 0H STG 3,432(0,13) LA 1,432(0,13) LG 15,@lit_1955_430 ; rd_kafka_buf_destroy_final @@gen_label585 DS 0H BALR 14,15 @@gen_label586 DS 0H @L837 DS 0H * *** return ((void *)0); LGHI 15,0 ; 0 B @ret_lab_1955 DS 0D @FRAMESIZE_1955 DC F'568' @lit_1955_428 DC AD(rd_kafka_msgq_len) @lit_1955_429 DC AD(rd_refcnt_sub0) @lit_1955_430 DC AD(rd_kafka_buf_destroy_final) @lit_1955_432 DC AD(rd_buf_write_pos) @lit_1955_435 DC AD(__assert) @lit_1955_434 DC AD(@strings@) @lit_1955_433 DC AD(@DATA) @lit_1955_439 DC AD(rd_atomic64_add) @lit_1955_441 DC AD(rd_kafka_msgset_writer_compress) @lit_1955_442 DC AD(rd_kafka_msgset_writer_finalize_$Message$Set) @lit_1955_444 DC AD(mtx_lock) @lit_1955_446 DC AD(rd_strlcpy) @lit_1955_448 DC AD(mtx_unlock) @lit_1955_449 DC AD(rd_kafka_pid2str) @lit_1955_450 DC AD(rd_kafka_compression2str) @lit_1955_453 DC AD(rd_kafka_log0) @lit_1955_454 DC AD(rd_kafka_msgbatch_ready_produce) * *** } @L835 DS 0H * *** * *** * *** len = rd_buf_write_pos(&msetw->msetw_rkbuf->rkbuf_buf)\ * - LG 15,0(0,2) ; msetw LA 15,40(0,15) STG 15,432(0,13) LA 1,432(0,13) LG 15,@lit_1955_432 ; rd_buf_write_pos @@gen_label587 DS 0H BALR 14,15 @@gen_label588 DS 0H * *** msetw->msetw_firstmsg.of; SLG 15,104(0,2) STG 15,168(0,13) ; len * *** ((len > 0) ? (void)0 : __assert(__func__, "C:\\asgkafk\ * a\\librdkafka\\src\\rdkafka_msgset_writer.c", 1391, "len > 0")); CLGFI 15,X'00000000' BH @L841 @L840 DS 0H LG 15,@lit_1955_433 LA 15,788(0,15) STG 15,432(0,13) LG 15,@lit_1955_434 LA 1,556(0,15) STG 1,440(0,13) MVGHI 448(13),1391 LA 15,1644(0,15) STG 15,456(0,13) LA 1,432(0,13) LG 15,@lit_1955_435 ; __assert @@gen_label590 DS 0H BALR 14,15 @@gen_label591 DS 0H @L841 DS 0H * *** ((len <= (size_t)rktp->rktp_rkt->rkt_rk->rk_conf.max_m\ * sg_size) ? (void)0 : __assert(__func__, "C:\\asgkafka\\librdkafka\\s\ * rc\\rdkafka_msgset_writer.c", 1392, "len <= (size_t)rktp->rktp_rkt->\ * rkt_rk->rk_conf.max_msg_size")); LG 15,168(0,13) ; len LG 1,96(0,4) ; offset of rktp_rkt in rd_kafka_toppar_s LG 1,328(0,1) ; offset of rkt_rk in rd_kafka_topic_s LGF 1,756(0,1) CLGR 15,1 BNH @L843 @L842 DS 0H LG 15,@lit_1955_433 LA 15,788(0,15) STG 15,432(0,13) LG 15,@lit_1955_434 LA 1,556(0,15) STG 1,440(0,13) MVGHI 448(13),1392 LA 15,1652(0,15) STG 15,456(0,13) LA 1,432(0,13) LG 15,@lit_1955_435 ; __assert @@gen_label593 DS 0H BALR 14,15 @@gen_label594 DS 0H @L843 DS 0H * *** * *** rd_atomic64_add(&rktp->rktp_c.tx_msgs, cnt); LA 15,1056(0,4) STG 15,432(0,13) LGFR 15,5 STG 15,440(0,13) LA 1,432(0,13) LG 7,@lit_1955_439 ; rd_atomic64_add LGR 15,7 @@gen_label595 DS 0H BALR 14,15 @@gen_label596 DS 0H * *** rd_atomic64_add(&rktp->rktp_c.tx_msg_bytes, msetw->mse\ * tw_messages_kvlen); LA 15,1104(0,4) STG 15,432(0,13) LG 15,40(0,2) ; offset of msetw_messages_kvlen in rd_kafka* _msgset_writer_s STG 15,440(0,13) LA 1,432(0,13) LGR 15,7 @@gen_label597 DS 0H BALR 14,15 @@gen_label598 DS 0H * *** * *** * *** * *** * *** * *** msetw->msetw_rkbuf->rkbuf_u.Produce.batch.pid = msetw-\ * >msetw_pid; LG 15,0(0,2) ; msetw MVC 440(16,15),120(2) * *** * *** * *** if (msetw->msetw_compression) { LT 15,20(0,2) ; offset of msetw_compression in rd_kafka_ms* gset_writer_s BZ @L844 * *** if (rd_kafka_msgset_writer_compress(msetw, &le\ * n) == -1) STG 2,432(0,13) LA 15,168(0,13) STG 15,440(0,13) LA 1,432(0,13) LG 15,@lit_1955_441 ; rd_kafka_msgset_writer_compress @@gen_label600 DS 0H BALR 14,15 @@gen_label601 DS 0H CHI 15,-1 BNE @L844 * *** msetw->msetw_compression = 0; MVHI 20(2),0 ; offset of msetw_compression in rd_kafka_ms* gset_writer_s @L845 DS 0H * *** } @L844 DS 0H * *** * *** msetw->msetw_messages_len = len; LG 15,168(0,13) ; len STG 15,32(0,2) ; offset of msetw_messages_len in rd_kafka_m* sgset_writer_s * *** * *** * *** rd_kafka_msgset_writer_finalize_MessageSet(msetw); STG 2,432(0,13) LA 1,432(0,13) LG 15,@lit_1955_442 ; rd_kafka_msgset_writer_finalize_Messa* geSet @@gen_label603 DS 0H BALR 14,15 @@gen_label604 DS 0H * *** * *** * *** *MessageSetSizep = msetw->msetw_MessageSetSize; LG 15,8(0,6) ; MessageSetSizep LG 1,48(0,2) ; offset of msetw_MessageSetSize in rd_kafka* _msgset_writer_s STG 1,0(0,15) ; MessageSetSizep * *** * *** do { if ((((msetw->msetw_rkb)->rkb_rk->rk_conf.debug &\ * (0x40)))) { do { char _logname[256]; mtx_lock(&(msetw->msetw_rkb)->\ * rkb_logname_lock); rd_strlcpy(_logname, msetw->msetw_rkb->rkb_lognam\ * e, sizeof(_logname)); mtx_unlock(&(msetw->msetw_rkb)->rkb_logname_lo\ * ck); rd_kafka_log0(&(msetw->msetw_rkb)->rkb_rk->rk_conf, (msetw->mse\ * tw_rkb)->rkb_rk, _logname, 7, (0x40), "PRODUCE", "%s [%" "d" "]: " "\ * Produce MessageSet with %i message(s) (%" "zu" " bytes, " "ApiVersio\ * n %d, MsgVersion %d, MsgId %" "llu" ", " "BaseSeq %" "d" ", %s, %s)"\ * , rktp->rktp_rkt->rkt_topic->str, rktp->rktp_partition, cnt, msetw->\ * msetw_MessageSetSize, msetw->msetw_ApiVersion, msetw->msetw_MsgVersi\ * on, msetw->msetw_batch->first_msgid, msetw->msetw_batch->first_seq, \ * rd_kafka_pid2str(msetw->msetw_pid), msetw->msetw_compression ? rd_ka\ * fka_compression2str(msetw->msetw_compression) : "uncompressed"); } w\ * hile (0); } } while (0); @L846 DS 0H LG 15,136(0,2) ; offset of msetw_rkb in rd_kafka_msgset_wri* ter_s LG 15,4048(0,15) ; offset of rkb_rk in rd_kafka_broker_s TM 803(15),64 BZ @L849 @L850 DS 0H LG 15,136(0,2) ; offset of msetw_rkb in rd_kafka_msgset_wri* ter_s LGHI 6,5688 ; 5688 LA 15,0(6,15) STG 15,432(0,13) LA 1,432(0,13) LG 15,@lit_1955_444 ; mtx_lock @@gen_label606 DS 0H BALR 14,15 @@gen_label607 DS 0H LA 15,176(0,13) STG 15,432(0,13) LG 15,136(0,2) ; offset of msetw_rkb in rd_kafka_msgset_wri* ter_s LGHI 1,5680 ; 5680 LG 15,0(1,15) STG 15,440(0,13) MVGHI 448(13),256 LA 1,432(0,13) LG 15,@lit_1955_446 ; rd_strlcpy @@gen_label608 DS 0H BALR 14,15 @@gen_label609 DS 0H LG 15,136(0,2) ; offset of msetw_rkb in rd_kafka_msgset_wri* ter_s LA 15,0(6,15) STG 15,432(0,13) LA 1,432(0,13) LG 15,@lit_1955_448 ; mtx_unlock @@gen_label610 DS 0H BALR 14,15 @@gen_label611 DS 0H MVC 432(16,13),120(2) LA 1,432(0,13) LG 15,@lit_1955_449 ; rd_kafka_pid2str @@gen_label612 DS 0H BALR 14,15 @@gen_label613 DS 0H LGR 6,15 LT 15,20(0,2) ; offset of msetw_compression in rd_kafka_ms* gset_writer_s BZ @L853 LGF 15,20(0,2) STG 15,432(0,13) LA 1,432(0,13) LG 15,@lit_1955_450 ; rd_kafka_compression2str @@gen_label615 DS 0H BALR 14,15 @@gen_label616 DS 0H B @L854 @L853 DS 0H LG 15,@lit_1955_434 LA 15,1712(0,15) @L854 DS 0H LG 1,136(0,2) ; offset of msetw_rkb in rd_kafka_msgset_wri* ter_s LG 1,4048(0,1) ; offset of rkb_rk in rd_kafka_broker_s LA 1,528(0,1) STG 1,432(0,13) LG 1,136(0,2) ; offset of msetw_rkb in rd_kafka_msgset_wri* ter_s LG 1,4048(0,1) STG 1,440(0,13) LA 1,176(0,13) STG 1,448(0,13) MVGHI 456(13),7 MVGHI 464(13),64 LG 1,@lit_1955_434 LA 7,450(0,1) STG 7,472(0,13) LA 1,1726(0,1) STG 1,480(0,13) LG 1,96(0,4) ; offset of rktp_rkt in rd_kafka_toppar_s LG 1,128(0,1) ; offset of rkt_topic in rd_kafka_topic_s LG 1,8(0,1) STG 1,488(0,13) LGF 1,104(0,4) STG 1,496(0,13) LGFR 1,5 STG 1,504(0,13) LG 1,48(0,2) STG 1,512(0,13) LH 1,8(0,2) LGFR 1,1 STG 1,520(0,13) LGF 1,12(0,2) STG 1,528(0,13) LG 1,96(0,2) ; offset of msetw_batch in rd_kafka_msgset_w* riter_s LG 1,64(0,1) STG 1,536(0,13) LG 1,96(0,2) ; offset of msetw_batch in rd_kafka_msgset_w* riter_s LGF 1,56(0,1) STG 1,544(0,13) STG 6,552(0,13) STG 15,560(0,13) LA 1,432(0,13) LG 15,@lit_1955_453 ; rd_kafka_log0 @@gen_label617 DS 0H BALR 14,15 @@gen_label618 DS 0H @L849 DS 0H * *** * *** # 1432 "C:\asgkafka\librdkafka\src\rdkafka_msgset_writer.c" * *** do { } while (0); @L855 DS 0H * *** * *** * *** rd_kafka_msgbatch_ready_produce(msetw->msetw_batch); LG 15,96(0,2) STG 15,432(0,13) LA 1,432(0,13) LG 15,@lit_1955_454 ; rd_kafka_msgbatch_ready_produce @@gen_label619 DS 0H BALR 14,15 @@gen_label620 DS 0H * *** * *** return rkbuf; LGR 15,3 * *** } @ret_lab_1955 DS 0H * * **** Start of Epilogue DCCEPIL * * **** End of Epilogue DROP 12 * * DSECT for automatic variables in "rd_kafka_msgset_writer_finalize" * (FUNCTION #1955) * @AUTO#rd_kafka_msgset_writer_finalize DSECT DS XL168 rd_kafka_msgset_writer_finalize#cnt#0 DS 1F ; cnt ORG @AUTO#rd_kafka_msgset_writer_finalize+168 rd_kafka_msgset_writer_finalize#len#0 DS 8XL1 ; len ORG @AUTO#rd_kafka_msgset_writer_finalize+176 rd_kafka_msgset_writer_finalize#_logname#6 DS 256XL1 ; _logname * @CODE CSECT * * * * ....... start of rd_kafka_msgset_create_ProduceRequest rd_kafka_msgset_create_$Produce$Request ALIAS X'99846D92818692816D94A28* 7A285A36D83998581A3856DD7999684A48385D98598A485A2A3' @LNAME1921 DS 0H DC X'00000025' DC C'rd_kafka_msgset_create_ProduceRe' DC C'quest' DC X'00' rd_kafka_msgset_create_$Produce$Request DCCPRLG CINDEX=1921,BASER=12,FR* AME=384,ENTRY=YES,ARCH=ZARCH,LNAMEADDR=@LNAME1921 LGR 2,1 ; ptr to parm area * ******* End of Prologue * * * *** * *** rd_kafka_msgset_writer_t msetw; * *** * *** if (rd_kafka_msgset_writer_init(&msetw, rkb, rktp, rkm\ * q, * *** pid, epoch_base_msgid)\ * <= 0) LA 15,168(0,13) STG 15,328(0,13) LG 15,0(0,2) ; rkb STG 15,336(0,13) LG 15,8(0,2) ; rktp STG 15,344(0,13) LG 15,16(0,2) ; rkmq STG 15,352(0,13) MVC 360(16,13),24(2) LG 15,40(0,2) ; epoch_base_msgid STG 15,376(0,13) LA 1,328(0,13) LG 15,@lit_1921_456 ; rd_kafka_msgset_writer_init @@gen_label621 DS 0H BALR 14,15 @@gen_label622 DS 0H LTR 15,15 BH @L858 * *** return ((void *)0); LGHI 15,0 ; 0 B @ret_lab_1921 DS 0D @FRAMESIZE_1921 DC F'384' @lit_1921_456 DC AD(rd_kafka_msgset_writer_init) @lit_1921_458 DC AD(rd_kafka_msgset_writer_write_msgq) @lit_1921_459 DC AD(rd_kafka_msgq_insert_msgq) @lit_1921_460 DC AD(rd_kafka_msgset_writer_finalize) @L858 DS 0H * *** * *** if (!rd_kafka_msgset_writer_write_msgq(&msetw, msetw.m\ * setw_msgq)) { LA 15,168(0,13) STG 15,328(0,13) LG 15,320(0,13) STG 15,336(0,13) LA 1,328(0,13) LG 15,@lit_1921_458 ; rd_kafka_msgset_writer_write_msgq @@gen_label624 DS 0H BALR 14,15 @@gen_label625 DS 0H LTR 15,15 BNZ @L859 * *** * *** * *** rd_kafka_msgq_insert_msgq( * *** rkmq, &msetw.msetw_batch->msgq, * *** rktp->rktp_rkt->rkt_conf.msg_order_cmp\ * ); LG 15,16(0,2) ; rkmq STG 15,328(0,13) LG 15,264(0,13) ; offset of msetw_batch in rd_kafka_msgset_* writer_s LA 15,8(0,15) STG 15,336(0,13) LG 15,8(0,2) ; rktp LG 15,96(0,15) ; offset of rktp_rkt in rd_kafka_toppar_s LG 15,968(0,15) STG 15,344(0,13) LA 1,328(0,13) LG 15,@lit_1921_459 ; rd_kafka_msgq_insert_msgq @@gen_label627 DS 0H BALR 14,15 @@gen_label628 DS 0H * *** } @L859 DS 0H * *** * *** return rd_kafka_msgset_writer_finalize(&msetw, Message\ * SetSizep); LA 15,168(0,13) STG 15,328(0,13) LG 15,48(0,2) ; MessageSetSizep STG 15,336(0,13) LA 1,328(0,13) LG 15,@lit_1921_460 ; rd_kafka_msgset_writer_finalize @@gen_label629 DS 0H BALR 14,15 @@gen_label630 DS 0H * *** } @ret_lab_1921 DS 0H * * **** Start of Epilogue DCCEPIL * * **** End of Epilogue DROP 12 * * DSECT for automatic variables in "rd_kafka_msgset_create_ProduceRe * quest" * (FUNCTION #1921) * @AUTO#rd_kafka_msgset_create_$Produce$Request DSECT DS XL168 rd_kafka_msgset_create_$Produce$Request#msetw#0 DS 160XL1 ; msetw * @CODE CSECT @@STATIC ALIAS X'7C998492818692816D94A287A285A36DA69989A3859950' @@STATIC DXD 219D * * Non-Re-Entrant Data Section * @DATA CSECT @DATA RMODE ANY @DATA AMODE ANY @@T349 DC X'99846D838193939683' rd.calloc DC 1X'00' @@T34D DC X'99846D948193939683' rd.malloc DC 1X'00' @@T352 DC X'99846D99858193939683' rd.realloc DC 2X'00' @@T358 DC X'99846DA2A39984A497' rd.strdup DC 1X'00' @@T35D DC X'99846DA2A3999584A497' rd.strndup DC 2X'00' @@T365 DC X'99846D9985868395A36DA2A482F0' rd.refcnt.sub0 DC 4X'00' @@T65A DC 4X'00' DC X'0000001A000000000000002200000000' ................ DC X'00000024' .... @@T67D DC X'99846D92818692816D94A287986D8485' rd.kafka.msgq.de DC X'98' q DC 1X'00' @@T704 DC X'99846D92818692816D986D8485A2A399' rd.kafka.q.destr DC X'96A8F0' oy0 DC 1X'00' @@T785 DC X'99846D92818692816D8595986D969583' rd.kafka.enq.onc DC X'856D8485A2A39996A8F0' e.destroy0 DC 2X'00' @@T78D DC X'99846D92818692816D8595986D969583' rd.kafka.enq.onc DC X'856D8485936DA296A4998385' e.del.source DC 2X'00' @@T794 DC X'99846D92818692816D8595986D969583' rd.kafka.enq.onc DC X'856D8485936DA296A49983856D9985A3' e.del.source.ret DC X'A49995' urn DC 1X'00' @@T79C DC X'99846D92818692816D8595986D969583' rd.kafka.enq.onc DC X'856DA3998987878599' e.trigger DC 1X'00' @@T7A0 DC X'99846D92818692816D8595986D969583' rd.kafka.enq.onc DC X'856D8485A2A39996A8' e.destroy DC 1X'00' @@T7A5 DC X'99846D92818692816D8595986D969583' rd.kafka.enq.onc DC X'856D8489A281829385' e.disable DC 1X'00' @@T7C5 DC X'99846DA394978182A4866D8193939683' rd.tmpabuf.alloc DC X'F0' 0 DC 1X'00' @@T7F9 DC X'99846D92818692816D82A4866DA49784' rd.kafka.buf.upd DC X'81A385' ate DC 1X'00' @@T81A DC X'99846D92818692816D82A4866D868995' rd.kafka.buf.fin DC X'819389A9856D81999981A88395A3' alize.arraycnt DC 2X'00' @@T857 DC X'99846D92818692816D82A4866D839983' rd.kafka.buf.crc DC X'6D899589A3' .init DC 1X'00' @@TA27 DC X'99846D92818692816D83A499996D94A2' rd.kafka.curr.ms DC X'87A26DA2A482' gs.sub DC 2X'00' rd_kafka_$Produce$Request_max_version DC X'0007' .. @@TA6F DC 24X'00' DC X'00000080' .... DC 20X'00' @@TA77 DC X'99846D92818692816D94A287A285A36D' rd.kafka.msgset. DC X'A69989A385996DA285938583A36DD4A2' writer.select.Ms DC X'87E58599A2899695' gVersion DC 2X'00' @@TA7F DC X'99846D92818692816D94A287A285A36D' rd.kafka.msgset. DC X'A69989A385996D81939396836D82A486' writer.alloc.buf DC 2X'00' @@TA87 DC X'99846D92818692816D94A287A285A36D' rd.kafka.msgset. DC X'A69989A385996DA69989A3856DD485A2' writer.write.Mes DC X'A2818785E285A36DA5F26D8885818485' sageSet.v2.heade DC X'99' r DC 1X'00' @@TAD0 DC X'99846D92818692816D94A287A285A36D' rd.kafka.msgset. DC X'A69989A385996DA69989A3856D94A287' writer.write.msg DC 2X'00' @@TADE DC X'99846D92818692816D94A287A285A36D' rd.kafka.msgset. DC X'A69989A385996DA69989A3856D94A287' writer.write.msg DC X'98' q DC 1X'00' @@TB03 DC X'99846D92818692816D94A287A285A36D' rd.kafka.msgset. DC X'A69989A385996D839694979985A2A2' writer.compress DC 1X'00' @@TB0A DC X'99846D92818692816D94A287A285A36D' rd.kafka.msgset. DC X'A69989A385996D838193836D8399836D' writer.calc.crc. DC X'A5F2' v2 DC 2X'00' @@TB0F DC X'99846D92818692816D94A287A285A36D' rd.kafka.msgset. DC X'A69989A385996D868995819389A9856D' writer.finalize. DC X'D485A2A2818785E285A36DA5F26D8885' MessageSet.v2.he DC X'81848599' ader DC 2X'00' @@TB19 DC X'99846D92818692816D94A287A285A36D' rd.kafka.msgset. DC X'A69989A385996D868995819389A985' writer.finalize DC 1X'00' @strings@ DS 0H DC X'C37AE081A2879281869281E093898299' C..asgkafka.libr DC X'849281869281E0A29983E099844B8800' dkafka.src.rd.h. DC X'97009985868395A340A2A48260A98599' p.refcnt.sub.zer DC X'96005A5C7F9985868395A340A2A48260' o....refcnt.sub. DC X'A98599967F00D7C9C4C0C995A5819389' zero..PID.Invali DC X'84D00000D7C9C4C0C9847A6C9393846B' d...PID.Id..lld. DC X'C5979683887A6C8884D00000C37AE081' Epoch..hd...C..a DC X'A2879281869281E09389829984928186' sgkafka.librdkaf DC X'9281E0A29983E0998492818692816D94' ka.src.rdkafka.m DC X'A2874B88000081A2A28599A37A409992' sg.h..assert..rk DC X'9498606E999294986D94A2876D8395A3' mq..rkmq.msg.cnt DC X'406E40F0000081A2A28599A37A409992' ...0..assert..rk DC X'9498606E999294986D94A2876D82A8A3' mq..rkmq.msg.byt DC X'85A2406E7E404D8995A3F6F46DA35D4D' es.....int64.t.. DC X'999294606E9992946D9385954E999294' rkm..rkm.len.rkm DC X'606E9992946D9285A86D9385955D0000' ..rkm.key.len... DC X'C37AE081A2879281869281E093898299' C..asgkafka.libr DC X'849281869281E0A29983E09984928186' dkafka.src.rdkaf DC X'92816D82A4864B88000081A2A28599A3' ka.buf.h..assert DC X'7A405A4D999282A486606E999282A486' ....rkbuf..rkbuf DC X'6D86938187A2405040D9C46DD2C1C6D2' .flags...RD.KAFK DC X'C16DD6D76DC66DC3D9C35D0083968485' A.OP.F.CRC..code DC X'83F0A76CA76F0000C3D6D4D7D9C5E2E2' c0x.x...COMPRESS DC X'C9D6D5006C4B5CA240AD6C84BD7A40C2' ION....s...d...B DC X'999692859940849685A2409596A340A2' roker.does.not.s DC X'A497979699A340839694979985A2A289' upport.compressi DC X'969540A3A89785406CA27A409596A340' on.type..s..not. DC X'839694979985A2A2899587408281A383' compressing.batc DC X'8800D7D9D6C4E4C3C5006C4B5CA240AD' h.PRODUCE....s.. DC X'6C84BD7A40D59640A5898182938540D7' .d...No.viable.P DC X'999684A48385D98598A485A2A340C197' roduceRequest.Ap DC X'89E58599A2899695A2404DA56C844B4B' iVersions..v.d.. DC X'6C845D40A2A497979699A385844082A8' .d..supported.by DC X'408299969285997A40A4958182938540' .broker..unable. DC X'A3964097999684A483850000C37AE081' to.produce..C..a DC X'A2879281869281E09389829984928186' sgkafka.librdkaf DC X'9281E0A29983E0998492818692816D94' ka.src.rdkafka.m DC X'A287A285A36DA69989A385994B830000' sgset.writer.c.. DC X'9992940094A285A3A6606E94A285A3A6' rkm.msetw..msetw DC X'6DC19789E58599A2899695406E7E4094' .ApiVersion....m DC X'89956DC19789E58599A28996950081A2' in.ApiVersion.as DC X'A28599A37A405A94A285A3A6606E94A2' sert...msetw..ms DC X'85A3A66D999282A48600615C40D5D6E3' etw.rkbuf....NOT DC X'D9C5C1C3C8C5C4405C6140A589969381' REACHED....viola DC X'A38584005A5C7F615C40D5D6E3D9C5C1' ted.......NOTREA DC X'C3C8C5C4405C6140A589969381A38584' CHED....violated DC X'7F0081A2A28599A37A4094A285A3A660' ..assert..msetw. DC X'6E94A285A3A66DC19789E58599A28996' .msetw.ApiVersio DC X'95406E7E40F3000081A2A28599A37A40' n....3..assert.. DC X'94A285A3A6606E94A285A3A66DD4A287' msetw..msetw.Msg DC X'E58599A2899695407E7E40F2000096A4' Version....2..ou DC X'A3938595404C7E4099846D9281869281' tlen....rd.kafka DC X'6D94A2876DA68999856DA289A9854D99' .msg.wire.size.r DC X'92946B4094A285A3A6606E94A285A3A6' km..msetw..msetw DC X'6DD4A287E58599A28996955D000096A4' .MsgVersion...ou DC X'A3938595407E7E408183A3A481936DA6' tlen....actual.w DC X'9989A3A38595000081A2A28599A37A40' ritten..assert.. DC X'999294006C4B5CA240AD6C84BD7A40D9' rkm....s...d...R DC X'85839695A2A399A483A3858440D485A2' econstructed.Mes DC X'A2818785E285A3404D6C84409485A2A2' sageSet...d.mess DC X'8187854DA25D6B406CA9A44082A8A385' age.s....zu.byte DC X'A26B40D4A287C984A2406C9393A44B4B' s..MsgIds..llu.. DC X'6C9393A45D006C4B5CA240AD6C84BD7A' .llu.....s...d.. DC X'40D596409496998540A2978183854089' .No.more.space.i DC X'954083A499998595A340D485A2A28187' n.current.Messag DC X'85E285A3404D6C89409485A2A2818785' eSet...i.message DC X'4DA25D6B406CA9A44082A8A385A25D00' .s....zu.bytes.. DC X'9381A2A394A28700E4958182938540A3' lastmsg.Unable.t DC X'96409985839695A2A399A483A340D485' o.reconstruct.Me DC X'A2A2818785E285A3404D83A499998595' ssageSet..curren DC X'A393A840A689A388406C84409485A2A2' tly.with..d.mess DC X'8187854DA25D5D40A689A3884094A287' age.s...with.msg DC X'8984409981958785406C9393A44B4B6C' id.range..llu... DC X'9393A47A409381A2A3409485A2A28187' llu..last.messag DC X'85408184848584408881A24094A28789' e.added.has.msgi DC X'84406C9393A47A40A4958182938540A3' d..llu..unable.t DC X'964087A481998195A3858540839695A2' o.guarantee.cons DC X'89A2A3859583A800E2D5C1D7D7E80000' istency.SNAPPY.. DC X'C6818993858440A39640A295819797A8' Failed.to.snappy DC X'60839694979985A2A2406CA9A44082A8' .compress..zu.by DC X'A385A24086969940A396978983406C4B' tes.for.topic... DC X'5CA240AD6C84BD7A406CA27A40A28595' .s...d....s..sen DC X'8489958740A495839694979985A2A285' ding.uncompresse DC X'840099846D82A4866D9385954D9982A4' d.rd.buf.len.rbu DC X'865D406E7E4094A285A3A6606E94A285' f.....msetw..mse DC X'A3A66D868999A2A394A2874B9686404E' tw.firstmsg.of.. DC X'4093859500008995A581938984408689' .len..invalid.fi DC X'99A2A394A287409796A289A389969500' rstmsg.position. DC X'99407E7E40F0404F4F405A5C7F8995A5' r....0.......inv DC X'8193898440868999A2A394A287409796' alid.firstmsg.po DC X'A289A38996957F009596A39985818388' sition..notreach DC X'85847A40A495A2A497979699A3858440' ed..unsupported. DC X'839694979985A2A28996954B83968485' compression.code DC X'830081A2A28599A37A405A5C7F9596A3' c.assert.....not DC X'998581838885847A40A495A2A4979796' reached..unsuppo DC X'99A3858440839694979985A2A2899695' rted.compression DC X'4B83968485837F0081A2A28599A37A40' .codec..assert.. DC X'838996A54B8996A56D938595404C40C9' ciov.iov.len...I DC X'D5E3F3F26DD4C1E70000A2938983856D' NT32.MAX..slice. DC X'899589A340868189938584005A994050' init.failed..r.. DC X'50405C7FA2938983856D899589A34086' ....slice.init.f DC X'81899385847F000081A2A28599A37A40' ailed...assert.. DC X'94A2878395A3406E40F0000093859540' msgcnt...0..len. DC X'6E40F000938595404C7E404DA289A985' ..0.len.....size DC X'6DA35D9992A397606E9992A3976D9992' .t.rktp..rktp.rk DC X'A3606E9992A36D9992606E99926D8396' t..rkt.rk..rk.co DC X'95864B9481A76D94A2876DA289A98500' nf.max.msg.size. DC X'A495839694979985A2A2858400006CA2' uncompressed...s DC X'40AD6C84BD7A40D7999684A4838540D4' ...d...Produce.M DC X'85A2A2818785E285A340A689A388406C' essageSet.with.. DC X'89409485A2A28187854DA25D404D6CA9' i.message.s....z DC X'A44082A8A385A26B40C19789E58599A2' u.bytes..ApiVers DC X'899695406C846B40D4A287E58599A289' ion..d..MsgVersi DC X'9695406C846B40D4A287C984406C9393' on..d..MsgId..ll DC X'A46B40C281A285E28598406C846B406C' u..BaseSeq..d... DC X'A26B406CA25D0000D7999684A4838500' s...s...Produce. DC X'C685A3838800D68686A285A30000D485' Fetch.Offset..Me DC X'A3818481A3810000D38581848599C195' tadata..LeaderAn DC X'84C9A2990000E2A39697D98597938983' dIsr..StopReplic DC X'8100E4978481A385D485A3818481A381' a.UpdateMetadata DC X'0000C39695A3999693938584E288A4A3' ..ControlledShut DC X'8496A6950000D68686A285A3C3969494' down..OffsetComm DC X'89A30000D68686A285A3C685A3838800' it..OffsetFetch. DC X'C6899584C396969984899581A3969900' FindCoordinator. DC X'D1968995C79996A49700C8858199A382' JoinGroup.Heartb DC X'8581A300D38581A585C79996A4970000' eat.LeaveGroup.. DC X'E2A89583C79996A49700C485A2839989' SyncGroup.Descri DC X'8285C79996A497A20000D389A2A3C799' beGroups..ListGr DC X'96A497A20000E281A293C8819584A288' oups..SaslHandsh DC X'81928500C19789E58599A28996950000' ake.ApiVersion.. DC X'C3998581A385E396978983A20000C485' CreateTopics..De DC X'9385A385E396978983A20000C4859385' leteTopics..Dele DC X'A385D98583969984A200C99589A3D799' teRecords.InitPr DC X'9684A4838599C9840000D68686A285A3' oducerId..Offset DC X'C69699D38581848599C5979683880000' ForLeaderEpoch.. DC X'C18484D78199A389A3899695A2E396E3' AddPartitionsToT DC X'A7950000C18484D68686A285A3A2E396' xn..AddOffsetsTo DC X'E3A79500C59584E3A7950000E69989A3' Txn.EndTxn..Writ DC X'85E3A795D48199928599A200E3A795D6' eTxnMarkers.TxnO DC X'8686A285A3C396949489A300C485A283' ffsetCommit.Desc DC X'99898285C18393A20000C3998581A385' ribeAcls..Create DC X'C18393A20000C4859385A385C18393A2' Acls..DeleteAcls DC X'0000C485A28399898285C39695868987' ..DescribeConfig DC X'A200C193A38599C39695868987A20000' s.AlterConfigs.. DC X'C193A38599D9859793898381D39687C4' AlterReplicaLogD DC X'8999A200C485A28399898285D39687C4' irs.DescribeLogD DC X'8999A200E281A293C1A4A3888595A389' irs.SaslAuthenti DC X'8381A3850000C3998581A385D78199A3' cate..CreatePart DC X'89A3899695A20000C3998581A385C485' itions..CreateDe DC X'93858781A3899695E39692859500D985' legationToken.Re DC X'9585A6C48593858781A3899695E39692' newDelegationTok DC X'85950000C5A797899985C48593858781' en..ExpireDelega DC X'A3899695E39692859500C485A2839989' tionToken.Descri DC X'8285C48593858781A3899695E3969285' beDelegationToke DC X'9500C4859385A385C79996A497A20000' n.DeleteGroups.. DC X'C5938583A3D38581848599A2D98598A4' ElectLeadersRequ DC X'85A2A300C995839985948595A38193C1' est.IncrementalA DC X'93A38599C39695868987A2D98598A485' lterConfigsReque DC X'A2A30000C193A38599D78199A389A389' st..AlterPartiti DC X'9695D98581A2A2898795948595A3A2D9' onReassignmentsR DC X'8598A485A2A30000D389A2A3D78199A3' equest..ListPart DC X'89A3899695D98581A2A2898795948595' itionReassignmen DC X'A3A2D98598A485A2A300D68686A285A3' tsRequest.Offset DC X'C4859385A385D98598A485A2A300C485' DeleteRequest.De DC X'A28399898285C393898595A3D8A496A3' scribeClientQuot DC X'81A2D98598A485A2A300C193A38599C3' asRequest.AlterC DC X'93898595A3D8A496A381A2D98598A485' lientQuotasReque DC X'A2A30000C485A28399898285E4A28599' st..DescribeUser DC X'E283998194C39985848595A3898193A2' ScramCredentials DC X'D98598A485A2A300C193A38599E4A285' Request.AlterUse DC X'99E283998194C39985848595A3898193' rScramCredential DC X'A2D98598A485A2A30000E596A385D985' sRequest..VoteRe DC X'98A485A2A300C285878995D8A49699A4' quest.BeginQuoru DC X'94C597968388D98598A485A2A300C595' mEpochRequest.En DC X'84D8A49699A494C597968388D98598A4' dQuorumEpochRequ DC X'85A2A300C485A28399898285D8A49699' est.DescribeQuor DC X'A494D98598A485A2A300C193A38599C9' umRequest.AlterI DC X'A299D98598A485A2A300E4978481A385' srRequest.Update DC X'C68581A3A49985A2D98598A485A2A300' FeaturesRequest. DC X'C595A58593969785D98598A485A2A300' EnvelopeRequest. DC X'95969585000087A989970000A2958197' none..gzip..snap DC X'97A8000093A9F400A9A2A38400008995' py..lz4.zstd..in DC X'88859989A300839695868987A4998584' herit.configured DC X'000093858199958584008995A3859995' ..learned.intern DC X'819300009396878983819300C99589A3' al..logical.Init DC X'0000E3859994899581A38500C681A381' ..Terminate.Fata DC X'93C5999996990000D98598A485A2A3D7' lError..RequestP DC X'C9C40000E68189A3E3998195A2979699' ID..WaitTranspor DC X'A300E68189A3D7C9C400C1A2A2898795' t.WaitPID.Assign DC X'85840000C499818995D985A285A30000' ed..DrainReset.. DC X'C499818995C2A4949700D9858184A8D5' DrainBump.ReadyN DC X'96A3C18392858400D9858184A800C995' otAcked.Ready.In DC X'E3998195A28183A389969500C2858789' Transaction.Begi DC X'95C396949489A300C396949489A3A389' nCommit.Committi DC X'9587E3998195A28183A389969500C396' ngTransaction.Co DC X'949489A3D596A3C1839285840000C182' mmitNotAcked..Ab DC X'9699A3899587E3998195A28183A38996' ortingTransactio DC X'9500C1829699A38584D596A3C1839285' n.AbortedNotAcke DC X'8400C1829699A381829385C599999699' d.AbortableError DC X'0000' .. @Ecrc_table ALIAS X'8399836DA381829385' EXTRN @Ecrc_table * * * Re-entrant Data Initialization Section * @@INIT@ ALIAS C'rdkafka_msgset_writer:' @@INIT@ CSECT @@INIT@ AMODE ANY @@INIT@ RMODE ANY DC XL1'5' DC AL3(0) DC AL4(288) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000001' DC X'00000000' DC X'000000FF' DC X'0102039C09867F978D8E0B0C0D0E0F10' .....f.p........ DC X'1112139D8508871819928F1C1D1E1F80' ....e.g..k...... DC X'818283840A171B88898A8B8C05060790' abcd...hi....... DC X'9116939495960498999A9B14159E1A20' j.lmno.qr....... DC X'A0E2E4E0E1E3E5E7F1A22E3C282B7C26' .SU..TVX1s...... DC X'E9EAEBE8EDEEEFECDF21242A293B5E2D' Z..Y............ DC X'2FC2C4C0C1C3C5C7D1A62C255F3E3FF8' .BD.ACEGJw.....8 DC X'C9CACBC8CDCECFCC603A2340273D22D8' I..H...........Q DC X'616263646566676869ABBBF0FDFEB1B0' ...........0.... DC X'6A6B6C6D6E6F707172AABAE6B8C6A4B5' ...........W.Fu. DC X'7E737475767778797AA1BFD05BDEAEAC' ................ DC X'A3A5B7A9A7B6BCBDBEDDA8AF5DB4D77B' tv.zx.....y...P. DC X'414243444546474849ADF4F6F2F3F57D' ..........46235. DC X'4A4B4C4D4E4F505152B9FBFCF9FAFF5C' ............9... DC X'F7535455565758595AB2D4D6D2D3D530' 7.........MOKLN. DC X'313233343536373839B3DBDCD9DA9F40' ............R... * DC XL1'5' DC AL3(0) DC AL4(480) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000101' DC X'00000000' DC X'000000A0' DC X'010203372D2E2F1605150B0C0D0E0F10' ................ DC X'1112133C3D322618193F271C1D1E1F40' ................ DC X'5A7F7B5B6C507D4D5D5C4E6B604B61F0' ...............0 DC X'F1F2F3F4F5F6F7F8F97A5E4C7E6E6F7C' 123456789....... DC X'C1C2C3C4C5C6C7C8C9D1D2D3D4D5D6D7' ABCDEFGHIJKLMNOP DC X'D8D9E2E3E4E5E6E7E8E9ADE0BD5F6D79' QRSTUVWXYZ...... DC X'81828384858687888991929394959697' abcdefghijklmnop DC X'9899A2A3A4A5A6A7A8A9C04FD0A10720' qrstuvwxyz...... DC X'2122232425061728292A2B2C090A1B30' ................ DC X'311A333435360838393A3B04143EFF80' ................ * DC XL1'5' DC AL3(0) DC AL4(520) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'000001C0' DC X'00000000' DC X'00000001' DC X'8A40404040404040' ........ * DC XL1'5' DC AL3(0) DC AL4(560) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'000001E0' DC X'00000000' DC X'00000001' DC X'8B40404040404040' ........ * DC XL1'D' DC AL3(0) DC AL4(600) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000220' DC ADL8(@DATA) DC X'00000000' DC X'00000A6C' * DC XL1'D' DC AL3(0) DC AL4(640) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000228' DC ADL8(@DATA) DC X'00000000' DC X'00000A74' * DC XL1'D' DC AL3(0) DC AL4(680) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000230' DC ADL8(@DATA) DC X'00000000' DC X'00000A7A' * DC XL1'D' DC AL3(0) DC AL4(720) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000238' DC ADL8(@DATA) DC X'00000000' DC X'00000A82' * DC XL1'D' DC AL3(0) DC AL4(760) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000240' DC ADL8(@DATA) DC X'00000000' DC X'00000A8C' * DC XL1'D' DC AL3(0) DC AL4(800) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000248' DC ADL8(@DATA) DC X'00000000' DC X'00000A9A' * DC XL1'D' DC AL3(0) DC AL4(840) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000250' DC ADL8(@DATA) DC X'00000000' DC X'00000AA6' * DC XL1'D' DC AL3(0) DC AL4(880) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000258' DC ADL8(@DATA) DC X'00000000' DC X'00000AB6' * DC XL1'D' DC AL3(0) DC AL4(920) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000260' DC ADL8(@DATA) DC X'00000000' DC X'00000ACA' * DC XL1'D' DC AL3(0) DC AL4(960) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000268' DC ADL8(@DATA) DC X'00000000' DC X'00000AD8' * DC XL1'D' DC AL3(0) DC AL4(1000) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000270' DC ADL8(@DATA) DC X'00000000' DC X'00000AE4' * DC XL1'D' DC AL3(0) DC AL4(1040) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000278' DC ADL8(@DATA) DC X'00000000' DC X'00000AF4' * DC XL1'D' DC AL3(0) DC AL4(1080) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000280' DC ADL8(@DATA) DC X'00000000' DC X'00000AFE' * DC XL1'D' DC AL3(0) DC AL4(1120) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000288' DC ADL8(@DATA) DC X'00000000' DC X'00000B08' * DC XL1'D' DC AL3(0) DC AL4(1160) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000290' DC ADL8(@DATA) DC X'00000000' DC X'00000B14' * DC XL1'D' DC AL3(0) DC AL4(1200) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000298' DC ADL8(@DATA) DC X'00000000' DC X'00000B1E' * DC XL1'D' DC AL3(0) DC AL4(1240) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'000002A0' DC ADL8(@DATA) DC X'00000000' DC X'00000B2E' * DC XL1'D' DC AL3(0) DC AL4(1280) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'000002A8' DC ADL8(@DATA) DC X'00000000' DC X'00000B3A' * DC XL1'D' DC AL3(0) DC AL4(1320) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'000002B0' DC ADL8(@DATA) DC X'00000000' DC X'00000B48' * DC XL1'D' DC AL3(0) DC AL4(1360) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'000002B8' DC ADL8(@DATA) DC X'00000000' DC X'00000B54' * DC XL1'D' DC AL3(0) DC AL4(1400) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'000002C0' DC ADL8(@DATA) DC X'00000000' DC X'00000B62' * DC XL1'D' DC AL3(0) DC AL4(1440) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'000002C8' DC ADL8(@DATA) DC X'00000000' DC X'00000B70' * DC XL1'D' DC AL3(0) DC AL4(1480) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'000002D0' DC ADL8(@DATA) DC X'00000000' DC X'00000B7E' * DC XL1'D' DC AL3(0) DC AL4(1520) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'000002D8' DC ADL8(@DATA) DC X'00000000' DC X'00000B8E' * DC XL1'D' DC AL3(0) DC AL4(1560) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'000002E0' DC ADL8(@DATA) DC X'00000000' DC X'00000BA4' * DC XL1'D' DC AL3(0) DC AL4(1600) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'000002E8' DC ADL8(@DATA) DC X'00000000' DC X'00000BB8' * DC XL1'D' DC AL3(0) DC AL4(1640) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'000002F0' DC ADL8(@DATA) DC X'00000000' DC X'00000BC8' * DC XL1'D' DC AL3(0) DC AL4(1680) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'000002F8' DC ADL8(@DATA) DC X'00000000' DC X'00000BD0' * DC XL1'D' DC AL3(0) DC AL4(1720) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000300' DC ADL8(@DATA) DC X'00000000' DC X'00000BE0' * DC XL1'D' DC AL3(0) DC AL4(1760) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000308' DC ADL8(@DATA) DC X'00000000' DC X'00000BF0' * DC XL1'D' DC AL3(0) DC AL4(1800) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000310' DC ADL8(@DATA) DC X'00000000' DC X'00000BFE' * DC XL1'D' DC AL3(0) DC AL4(1840) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000318' DC ADL8(@DATA) DC X'00000000' DC X'00000C0A' * DC XL1'D' DC AL3(0) DC AL4(1880) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000320' DC ADL8(@DATA) DC X'00000000' DC X'00000C16' * DC XL1'D' DC AL3(0) DC AL4(1920) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000328' DC ADL8(@DATA) DC X'00000000' DC X'00000C26' * DC XL1'D' DC AL3(0) DC AL4(1960) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000330' DC ADL8(@DATA) DC X'00000000' DC X'00000C34' * DC XL1'D' DC AL3(0) DC AL4(2000) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000338' DC ADL8(@DATA) DC X'00000000' DC X'00000C48' * DC XL1'D' DC AL3(0) DC AL4(2040) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000340' DC ADL8(@DATA) DC X'00000000' DC X'00000C58' * DC XL1'D' DC AL3(0) DC AL4(2080) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000348' DC ADL8(@DATA) DC X'00000000' DC X'00000C6A' * DC XL1'D' DC AL3(0) DC AL4(2120) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000350' DC ADL8(@DATA) DC X'00000000' DC X'00000C7C' * DC XL1'D' DC AL3(0) DC AL4(2160) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000358' DC ADL8(@DATA) DC X'00000000' DC X'00000C92' * DC XL1'D' DC AL3(0) DC AL4(2200) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000360' DC ADL8(@DATA) DC X'00000000' DC X'00000CA8' * DC XL1'D' DC AL3(0) DC AL4(2240) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000368' DC ADL8(@DATA) DC X'00000000' DC X'00000CBE' * DC XL1'D' DC AL3(0) DC AL4(2280) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000370' DC ADL8(@DATA) DC X'00000000' DC X'00000CD6' * DC XL1'D' DC AL3(0) DC AL4(2320) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000378' DC ADL8(@DATA) DC X'00000000' DC X'00000CE4' * DC XL1'D' DC AL3(0) DC AL4(2360) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000380' DC ADL8(@DATA) DC X'00000000' DC X'00000CF8' * DC XL1'D' DC AL3(0) DC AL4(2400) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000388' DC ADL8(@DATA) DC X'00000000' DC X'00000D18' * DC XL1'D' DC AL3(0) DC AL4(2440) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000390' DC ADL8(@DATA) DC X'00000000' DC X'00000D3C' * DC XL1'D' DC AL3(0) DC AL4(2480) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000398' DC ADL8(@DATA) DC X'00000000' DC X'00000D5E' * DC XL1'D' DC AL3(0) DC AL4(2520) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'000003A0' DC ADL8(@DATA) DC X'00000000' DC X'00000D72' * DC XL1'D' DC AL3(0) DC AL4(2560) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'000003A8' DC ADL8(@DATA) DC X'00000000' DC X'00000D8E' * DC XL1'D' DC AL3(0) DC AL4(2600) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'000003B0' DC ADL8(@DATA) DC X'00000000' DC X'00000DA8' * DC XL1'D' DC AL3(0) DC AL4(2640) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'000003B8' DC ADL8(@DATA) DC X'00000000' DC X'00000DCC' * DC XL1'D' DC AL3(0) DC AL4(2680) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'000003C0' DC ADL8(@DATA) DC X'00000000' DC X'00000DEE' * DC XL1'D' DC AL3(0) DC AL4(2720) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'000003C8' DC ADL8(@DATA) DC X'00000000' DC X'00000DFA' * DC XL1'D' DC AL3(0) DC AL4(2760) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'000003D0' DC ADL8(@DATA) DC X'00000000' DC X'00000E12' * DC XL1'D' DC AL3(0) DC AL4(2800) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'000003D8' DC ADL8(@DATA) DC X'00000000' DC X'00000E28' * DC XL1'D' DC AL3(0) DC AL4(2840) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'000003E0' DC ADL8(@DATA) DC X'00000000' DC X'00000E3E' * DC XL1'D' DC AL3(0) DC AL4(2880) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'000003E8' DC ADL8(@DATA) DC X'00000000' DC X'00000E4E' * DC XL1'D' DC AL3(0) DC AL4(2920) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'000003F0' DC ADL8(@DATA) DC X'00000000' DC X'00000E64' * DC XL1'D' DC AL3(0) DC AL4(2960) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'000004C0' DC ADL8(@DATA) DC X'00000000' DC X'00000E74' * DC XL1'D' DC AL3(0) DC AL4(3000) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'000004C8' DC ADL8(@DATA) DC X'00000000' DC X'00000E7A' * DC XL1'D' DC AL3(0) DC AL4(3040) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'000004D0' DC ADL8(@DATA) DC X'00000000' DC X'00000E80' * DC XL1'D' DC AL3(0) DC AL4(3080) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'000004D8' DC ADL8(@DATA) DC X'00000000' DC X'00000E88' * DC XL1'D' DC AL3(0) DC AL4(3120) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'000004E0' DC ADL8(@DATA) DC X'00000000' DC X'00000E8C' * DC XL1'D' DC AL3(0) DC AL4(3160) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'000004E8' DC ADL8(@DATA) DC X'00000000' DC X'00000E92' * DC XL1'D' DC AL3(0) DC AL4(3200) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000510' DC ADL8(@DATA) DC X'00000000' DC X'00000E9A' * DC XL1'D' DC AL3(0) DC AL4(3240) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000518' DC ADL8(@DATA) DC X'00000000' DC X'00000EA6' * DC XL1'D' DC AL3(0) DC AL4(3280) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000520' DC ADL8(@DATA) DC X'00000000' DC X'00000EAE' * DC XL1'D' DC AL3(0) DC AL4(3320) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000528' DC ADL8(@DATA) DC X'00000000' DC X'00000EB8' * DC XL1'D' DC AL3(0) DC AL4(3360) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000630' DC ADL8(@DATA) DC X'00000000' DC X'00000EC0' * DC XL1'D' DC AL3(0) DC AL4(3400) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000638' DC ADL8(@DATA) DC X'00000000' DC X'00000EC6' * DC XL1'D' DC AL3(0) DC AL4(3440) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000640' DC ADL8(@DATA) DC X'00000000' DC X'00000ED0' * DC XL1'D' DC AL3(0) DC AL4(3480) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000648' DC ADL8(@DATA) DC X'00000000' DC X'00000EDC' * DC XL1'D' DC AL3(0) DC AL4(3520) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000650' DC ADL8(@DATA) DC X'00000000' DC X'00000EE8' * DC XL1'D' DC AL3(0) DC AL4(3560) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000658' DC ADL8(@DATA) DC X'00000000' DC X'00000EF6' * DC XL1'D' DC AL3(0) DC AL4(3600) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000660' DC ADL8(@DATA) DC X'00000000' DC X'00000EFE' * DC XL1'D' DC AL3(0) DC AL4(3640) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000668' DC ADL8(@DATA) DC X'00000000' DC X'00000F08' * DC XL1'D' DC AL3(0) DC AL4(3680) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000670' DC ADL8(@DATA) DC X'00000000' DC X'00000F14' * DC XL1'D' DC AL3(0) DC AL4(3720) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000678' DC ADL8(@DATA) DC X'00000000' DC X'00000EC0' * DC XL1'D' DC AL3(0) DC AL4(3760) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000680' DC ADL8(@DATA) DC X'00000000' DC X'00000EF6' * DC XL1'D' DC AL3(0) DC AL4(3800) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000688' DC ADL8(@DATA) DC X'00000000' DC X'00000F1E' * DC XL1'D' DC AL3(0) DC AL4(3840) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000690' DC ADL8(@DATA) DC X'00000000' DC X'00000F2C' * DC XL1'D' DC AL3(0) DC AL4(3880) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000698' DC ADL8(@DATA) DC X'00000000' DC X'00000F32' * DC XL1'D' DC AL3(0) DC AL4(3920) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'000006A0' DC ADL8(@DATA) DC X'00000000' DC X'00000F40' * DC XL1'D' DC AL3(0) DC AL4(3960) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'000006A8' DC ADL8(@DATA) DC X'00000000' DC X'00000F4C' * DC XL1'D' DC AL3(0) DC AL4(4000) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'000006B0' DC ADL8(@DATA) DC X'00000000' DC X'00000F62' * DC XL1'D' DC AL3(0) DC AL4(4040) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'000006B8' DC ADL8(@DATA) DC X'00000000' DC X'00000F72' * DC XL1'D' DC AL3(0) DC AL4(4080) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'000006C0' DC ADL8(@DATA) DC X'00000000' DC X'00000F86' * DC XL1'D' DC AL3(0) DC AL4(4120) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'000006C8' DC ADL8(@DATA) DC X'00000000' DC X'00000F96' * DC XL1'D' DC AL3(0) DC AL4(0) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'000006D0' DC ADL8(@DATA) DC X'00000000' DC X'00000ED0' * EXTRN @@ALLOCA END
alloy4fun_models/trainstlt/models/3/iDvZ52TmQy3CjwtMq.als
Kaixi26/org.alloytools.alloy
0
2222
open main pred idiDvZ52TmQy3CjwtMq_prop4 { always ~pos.pos in iden } pred __repair { idiDvZ52TmQy3CjwtMq_prop4 } check __repair { idiDvZ52TmQy3CjwtMq_prop4 <=> prop4o }
Transynther/x86/_processed/US/_zr_/i7-7700_9_0x48.log_21829_2768.asm
ljhsiun2/medusa
9
13018
<reponame>ljhsiun2/medusa .global s_prepare_buffers s_prepare_buffers: push %r10 push %r8 push %r9 push %rbp push %rcx push %rdi push %rdx push %rsi lea addresses_WC_ht+0x16452, %rsi lea addresses_UC_ht+0xcda2, %rdi nop nop nop sub $34397, %rdx mov $28, %rcx rep movsl nop nop nop cmp $146, %rsi lea addresses_WT_ht+0x1d7a2, %rsi lea addresses_WC_ht+0x5962, %rdi and %r10, %r10 mov $113, %rcx rep movsb nop nop nop nop nop lfence lea addresses_normal_ht+0xa6d2, %rsi lea addresses_UC_ht+0x117a2, %rdi clflush (%rsi) clflush (%rdi) nop nop add %rbp, %rbp mov $86, %rcx rep movsq nop xor $41530, %rdx lea addresses_UC_ht+0x182a2, %rsi lea addresses_WT_ht+0x25ca, %rdi nop nop nop nop add %r9, %r9 mov $112, %rcx rep movsb nop add $57827, %r9 lea addresses_UC_ht+0x1efa2, %rsi nop nop nop add $33221, %rdx movl $0x61626364, (%rsi) nop and $23938, %r9 lea addresses_D_ht+0x1aca, %r9 nop nop nop nop nop add $9911, %rdi mov (%r9), %rbp nop nop add $65123, %rbp lea addresses_normal_ht+0x7889, %r10 nop nop inc %r9 movups (%r10), %xmm7 vpextrq $1, %xmm7, %rdx nop nop nop add $10541, %rcx lea addresses_WC_ht+0x76a2, %rbp dec %rdx movb (%rbp), %cl nop xor $61143, %rsi lea addresses_A_ht+0x1a0a, %rbp nop nop nop nop nop cmp $61086, %rdx movb (%rbp), %r9b inc %rsi lea addresses_D_ht+0x110a2, %rdi nop nop nop add $27152, %rcx mov $0x6162636465666768, %rsi movq %rsi, %xmm7 vmovups %ymm7, (%rdi) nop cmp %rsi, %rsi lea addresses_UC_ht+0xcb22, %rsi lea addresses_A_ht+0x2062, %rdi add $15214, %r8 mov $23, %rcx rep movsq nop nop add $43483, %rdx lea addresses_WC_ht+0x303e, %rsi lea addresses_UC_ht+0x1e46c, %rdi nop nop nop nop nop add %r8, %r8 mov $42, %rcx rep movsb add $55716, %r9 lea addresses_D_ht+0x1d884, %r8 nop nop nop nop nop add $48799, %r10 mov $0x6162636465666768, %rdi movq %rdi, (%r8) nop nop nop inc %rcx lea addresses_UC_ht+0x14459, %rbp clflush (%rbp) nop nop nop nop nop inc %rsi mov $0x6162636465666768, %r9 movq %r9, %xmm7 movups %xmm7, (%rbp) nop nop xor $42609, %r9 lea addresses_D_ht+0x7d74, %rsi lea addresses_UC_ht+0x1e1a2, %rdi nop inc %rbp mov $82, %rcx rep movsb nop sub %r9, %r9 pop %rsi pop %rdx pop %rdi pop %rcx pop %rbp pop %r9 pop %r8 pop %r10 ret .global s_faulty_load s_faulty_load: push %r14 push %r15 push %r9 push %rbp push %rbx push %rcx // Faulty Load lea addresses_US+0x1afa2, %rcx nop nop nop nop xor $63593, %r14 movb (%rcx), %r15b lea oracles, %r14 and $0xff, %r15 shlq $12, %r15 mov (%r14,%r15,1), %r15 pop %rcx pop %rbx pop %rbp pop %r9 pop %r15 pop %r14 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_US', 'AVXalign': True, 'congruent': 0, 'size': 32, 'same': True, 'NT': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_US', 'AVXalign': False, 'congruent': 0, 'size': 1, 'same': True, 'NT': False}} <gen_prepare_buffer> {'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 4, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 9, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 10, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 6, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 3, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 11, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 7, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 3, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 10, 'size': 4, 'same': False, 'NT': True}} {'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 2, 'size': 8, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'AVXalign': False, 'congruent': 0, 'size': 16, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 8, 'size': 1, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 3, 'size': 1, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 8, 'size': 32, 'same': False, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 5, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 6, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 2, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 1, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 1, 'size': 8, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 0, 'size': 16, 'same': False, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 0, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 9, 'same': False}} {'00': 21829} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
agda/MutRec.agda
anqurvanillapy/fpl
1
1622
<reponame>anqurvanillapy/fpl -- Mutual Recursion. module MutRec where open import Relation.Binary.PropositionalEquality using (_≡_; refl) data Odd : Set data Even : Set where e0 : Even eS : Odd → Even data Odd where oS : Even → Odd addEO : Even → Odd → Odd addOO : Odd → Odd → Even addOO (oS m) n = eS (addEO m n) addEO e0 n = n addEO (eS m) n = oS (addOO m n) _ : addEO (eS (oS e0)) (oS e0) ≡ oS (eS (oS e0)) _ = refl
Translation methods/3. Translator/grammar/pascal.g4
egormkn/Study-courses
1
3090
<filename>Translation methods/3. Translator/grammar/pascal.g4 grammar pascal; program returns [String code] @init {$code = "";} // |------------| |-------------------| |--------------| : programHeading programVarDeclaration mainRunningScope { $code += $programHeading.header + "\n"; $code += $programVarDeclaration.declarations + "\n"; $code += $mainRunningScope.code + "\n"; } ; programHeading returns [String header] @init {$header = "";} : PROGRAM identifier SEMI { $header += "// translated program " + $identifier.value + "\n"; $header += "#include <stdio.h>" + "\n"; } ; identifier returns [String value] : IDENT { $value = $IDENT.text; } ; programVarDeclaration returns [String declarations] @init {$declarations = "";} : (varDeclaration { $declarations += $varDeclaration.vars; } /*| constDeclaraion {}*/)* ; varDeclaration returns [String vars] @init {$vars = "";} : VAR (varEntryLine { $vars += $varEntryLine.line + "\n"; })+ ; varEntryLine returns [String line] @init {$line = "";} : varEntries COLON varType SEMI { $line += $varType.type + " " + $varEntries.list + ";"; String [] varNames = $varEntries.list.split (", "); for (String var : varNames) { VarManager.addVar (var, $varType.type); } } ; varType returns [String type] @init {$type = "void *";} : BOOLEAN {$type = "bool";} | CHAR {$type = "char";} | INTEGER {$type = "int";} | STRING {$type = "char *";} ; varEntries returns [String list] @init {$list = "";} : identifier { $list += $identifier.value; } (COMMA identifier { $list += ", " + $identifier.value; })* | ; mainRunningScope returns [String code] @init {$code = "";} : BEGIN runningScope END DOT { $code += "int main () {"; $code += "\n"; $code += $runningScope.actions; $code += "\n"; $code += " return 0;"; $code += "\n"; $code += "}"; $code += "\n"; } ; runningScope returns [String actions] @init {$actions = "";} : (runningOperation { $actions += $runningOperation.code + "\n"; })* ; runningOperation returns [String code] @init {$code = " ";} : assignment { $code += $assignment.code; } | ifExpression { $code += $ifExpression.code; } | functionCall { $code += $functionCall.code; } | forExpression { $code += $forExpression.code; } | whileExpression { $code += $whileExpression.code; } | repeatExpression { $code += $repeatExpression.code; } ; assignment returns [String code] @init {$code = "";} : identifier ASSIGN rightHandExpression SEMI { $code = $identifier.value + " = " + $rightHandExpression.code + ";"; } ; rightHandExpression returns [String code] @init {$code = "";} : ( (LPAREN {$code += "(";})* (NUM_INT {$code += $NUM_INT.text;} | identifier {$code += $identifier.value;} | functionCall {$code += $functionCall.code;} ) (RPAREN {$code += ")";})* (PLUS {$code += " " + $PLUS.text + " ";} | MINUS {$code += " " + $MINUS.text + " ";} | STAR {$code += " " + $STAR.text + " ";} | SLASH {$code += " " + $SLASH.text + " ";} )? )+ | DQUOTE stringExpression? DQUOTE { $code += $DQUOTE.text + $stringExpression.string + $DQUOTE.text; } ; ifExpression returns [String code] @init {$code = "";} : IF LPAREN condition RPAREN THEN { $code += "if (" + $condition.code + ") {"; $code += "\n "; } (BEGIN runningScope END SEMI { $code += $runningScope.actions; $code += "}"; } | runningOperation { $code += $runningOperation.code; $code += "\n "; $code += "}"; }) (ELSE (BEGIN runningScope END SEMI { $code += " else {"; $code += "\n "; $code += $runningScope.actions; $code += "}"; } | runningOperation { $code += " else {"; $code += "\n "; $code += $runningOperation.code; $code += "\n "; $code += "}"; } | ifExpression { $code += " else "; $code += $ifExpression.code; }) | {$code += "\n";} ) ; condition returns [String code] @init {$code = "";} : rightHandExpression { $code += $rightHandExpression.code; } (LT {$code += " " + $LT.text + " ";} // < | LE {$code += " " + $LE.text + " ";} // <= | GE {$code += " " + $GE.text + " ";} // >= | GT {$code += " " + $GT.text + " ";} // > | NOT_EQUAL {$code += " " + $NOT_EQUAL.text + " ";} // <> | AND {$code += " " + $AND.text + " ";} // and | OR {$code += " " + $OR.text + " ";} // or | EQUAL {$code += " " + $EQUAL.text + " ";} // = ) rightHandExpression { $code += $rightHandExpression.code; } ; functionCall returns [String code] @init {$code = "";} : functionName LPAREN varEntries RPAREN SEMI { String [] varNames = $varEntries.list.split (", "); if ($functionName.name.equals ("scanf")) { String template = VarManager.generateTemplate (varNames); $code += "scanf (\"" + template.trim () + "\", "; int size = varNames.length; for (int i = 0; i < size - 1; i ++) { $code += "&" + varNames [i] + ", "; } $code += "&" + varNames [size - 1] + ");"; $code += "\n"; } else if ($functionName.name.equals ("printf")) { String template = VarManager.generateTemplate (varNames); $code += "printf (\"" + template.trim () + "\\n\", "; int size = varNames.length; for (int i = 0; i < size - 1; i ++) { $code += varNames [i] + ", "; } $code += varNames [size - 1] + ");"; $code += "\n"; } else if ($functionName.name.equals ("div")) { $code += varNames [0] + " / " + varNames [1]; } else if ($functionName.name.equals ("mod")) { $code += varNames [0] + " % " + varNames [1]; } else { $code += "// ::function " + $functionName.name + ":: //"; } } ; functionName returns [String name] @init {$name = "<unknown>";} : READ {$name = "scanf";} | WRITE {$name = "printf";} | DIV {$name = "div";} | MOD {$name = "mod";} ; forExpression returns [String code] locals [boolean to = true, String varName = "";] @init {$code = "";} : FOR identifier ASSIGN rightHandExpression { $code += "for (" + $identifier.value + " = " + $rightHandExpression.code + "; "; $varName = $identifier.value; } (TO | DOWNTO {$to = false;}) rightHandExpression DO { if ($to) { $code += $varName + " <= " + $rightHandExpression.code + "; "; $code += $varName + " ++) {"; } else { $code += $varName + " >= " + $rightHandExpression.code + "; "; $code += $varName + " --) {"; } $code += "\n "; } (BEGIN runningScope END SEMI { $code += $runningScope.actions; $code += "\n "; $code += "}"; } | runningOperation { $code += $runningOperation.code; $code += "\n "; $code += "}"; }) ; whileExpression returns [String code] @init {$code = "";} : WHILE LPAREN condition RPAREN DO { $code += "while (" + $condition.code + ") {"; $code += "\n"; } (BEGIN runningScope END SEMI { $code += $runningScope.actions; $code += "\n"; $code += "}"; } | runningOperation { $code += $runningOperation.code; $code += "\n"; $code += "}"; }) ; stringExpression returns [String string] @init {$string = "";} : (identifier {$string += $identifier.value;} | COLON {$string += $COLON.text;} )+ ; repeatExpression returns [String code] @init {$code = "";} : REPEAT runningScope UNTIL condition SEMI { $code += "do {"; $code += "\n"; $code += $runningScope.actions; $code += "\n"; $code += "} while (!(" + $condition.code + "));"; } ; /* fragment A : ('a' | 'A'); fragment B : ('b' | 'B'); fragment C : ('c' | 'C'); fragment D : ('d' | 'D'); fragment E : ('e' | 'E'); fragment F : ('f' | 'F'); fragment G : ('g' | 'G'); fragment H : ('h' | 'H'); fragment I : ('i' | 'I'); fragment J : ('j' | 'J'); fragment K : ('k' | 'K'); fragment L : ('l' | 'L'); fragment M : ('m' | 'M'); fragment N : ('n' | 'N'); fragment O : ('o' | 'O'); fragment P : ('p' | 'P'); fragment Q : ('q' | 'Q'); fragment R : ('r' | 'R'); fragment S : ('s' | 'S'); fragment T : ('t' | 'T'); fragment U : ('u' | 'U'); fragment V : ('v' | 'V'); fragment W : ('w' | 'W'); fragment X : ('x' | 'X'); fragment Y : ('y' | 'Y'); fragment Z : ('z' | 'Z'); */ /* * Custom names */ ASSIGN : ':='; SQUOTE : '\''; LPAREN : '('; RPAREN : ')'; DQUOTE : '"'; COMMA : ','; COLON : ':'; SEMI : ';'; DOT : '.'; PLUS : '+'; MINUS : '-'; DIV : 'div'; MOD : 'mod'; STAR : '*'; SLASH : '/'; EQUAL : '='; NOT_EQUAL: '<>'; LT : '<'; LE : '<='; GE : '>='; GT : '>'; PROGRAM : 'program'; BOOLEAN : 'boolean'; INTEGER : 'integer'; STRING : 'string'; REPEAT : 'repeat'; DOWNTO : 'downto'; WHILE : 'while'; BEGIN : 'begin'; UNTIL : 'until'; CHAR : 'char'; THEN : 'then'; ELSE : 'else'; END : 'end'; AND : 'and'; VAR : 'var'; FOR : 'for'; OR : 'or'; IF : 'if'; TO : 'to'; DO : 'do'; READ : 'read'; WRITE : 'write'; WS : [ \t\r\n] -> skip ; IDENT : ('a' .. 'z' | 'A' .. 'Z') ('a' .. 'z' | 'A' .. 'Z' | '0' .. '9' | '_')* ; NUM_INT : ('0' .. '9') + (('.' ('0' .. '9') + (EXPONENT)?)? | EXPONENT) ; fragment EXPONENT : ('e') ('+' | '-')? ('0' .. '9') + ; /* READ : R E A D | R E A D L N ; WRITE : W R I T E | W R I T E L N ; */ /* * Default names */ /* AND : A N D ; ARRAY : A R R A Y ; BEGIN : B E G I N ; BOOLEAN : B O O L E A N ; CASE : C A S E ; CHAR : C H A R ; CHR : C H R ; CONST : C O N S T ; DIV : D I V ; DO : D O ; DOWNTO : D O W N T O ; ELSE : E L S E ; END : E N D ; FILE : F I L E ; FOR : F O R ; FUNCTION : F U N C T I O N ; GOTO : G O T O ; IF : I F ; IN : I N ; INTEGER : I N T E G E R ; LABEL : L A B E L ; MOD : M O D ; NIL : N I L ; NOT : N O T ; OF : O F ; OR : O R ; PACKED : P A C K E D ; PROCEDURE : P R O C E D U R E ; PROGRAM : P R O G R A M ; REAL : R E A L ; RECORD : R E C O R D ; REPEAT : R E P E A T ; SET : S E T ; THEN : T H E N ; TO : T O ; TYPE : T Y P E ; UNTIL : U N T I L ; VAR : V A R ; WHILE : W H I L E ; WITH : W I T H ; PLUS : '+' ; MINUS : '-' ; STAR : '*' ; SLASH : '/' ; ASSIGN : ':=' ; COMMA : ',' ; SEMI : ';' ; COLON : ':' ; EQUAL : '=' ; NOT_EQUAL : '<>' ; LT : '<' ; LE : '<=' ; GE : '>=' ; GT : '>' ; LPAREN : '(' ; RPAREN : ')' ; LBRACK : '[' ; LBRACK2 : '(.' ; RBRACK : ']' ; RBRACK2 : '.)' ; POINTER : '^' ; AT : '@' ; DOT : '.' ; DOTDOT : '..' ; LCURLY : '{' ; RCURLY : '}' ; UNIT : U N I T ; INTERFACE : I N T E R F A C E ; USES : U S E S ; STRING : S T R I N G ; IMPLEMENTATION : I M P L E M E N T A T I O N ; WS : [ \t\r\n] -> skip ; COMMENT_1 : '(*' .*? '*)' -> skip ; COMMENT_2 : '{' .*? '}' -> skip ; IDENT : ('a' .. 'z' | 'A' .. 'Z') ('a' .. 'z' | 'A' .. 'Z' | '0' .. '9' | '_')* ; STRING_LITERAL : '\'' ('\'\'' | ~ ('\''))* '\'' ; NUM_INT : ('0' .. '9') + (('.' ('0' .. '9') + (EXPONENT)?)? | EXPONENT) ; fragment EXPONENT : ('e') ('+' | '-')? ('0' .. '9') + ; */
console_win32_snake.asm
mov-rax-rbx/snake
1
15693
extern ExitProcess extern WriteConsoleA extern ReadConsoleInputA extern SetConsoleTitleA extern SetConsoleCursorInfo extern SetConsoleWindowInfo extern SetCurrentConsoleFontEx extern SetConsoleCursorPosition extern SetConsoleScreenBufferSize extern GetStdHandle extern GetCurrentConsoleFontEx extern GetTickCount extern GetNumberOfConsoleInputEvents ; win32 console input/output STD_OUTPUT_HANDLE equ -11 STD_INPUT_HANDLE equ -10 ; key code KEY_EVENT equ 0x0001 VK_LEFT equ 0x25 VK_UP equ 0x26 VK_RIGHT equ 0x27 VK_DOWN equ 0x28 VK_ESCAPE equ 0x1B KEY_CODE equ PINPUT_RECORD + INPUT_RECORD.Event + KEY_EVENT_RECORD.wVirtualKeyCode KEY_DOWN equ PINPUT_RECORD + INPUT_RECORD.Event + KEY_EVENT_RECORD.bKeyDown ; border constants ; window_length - border_length BORDER_WIDTH equ 150 BORDER_HEIGHT equ 60 BORDER_RIGHT_DOWN equ border + RECT.RightDown SIZE_COORD equ 4 ; 16bit + 16bit = 32bit = 4B FRAME_TIME equ 17 ; 1_000/60 = 16.666666(7) milliseconds SIZE_FONT equ 10 ; snake consts TAIL_LENGTH equ 128 DEAD_TAIL_LENGTH equ 64 ; xxxxxxxxxxxoooooooo ; ^ ^ ; begin DEAD_TAIL_LENGTH + begin SPAWN_TAIL equ 4 STATE_LEFT equ 0 STATE_UP equ 1 STATE_RIGHT equ 2 STATE_DOWN equ 3 SPAWN_Y equ 4 ; ooooooooooooo H ; ^ ^ ^ ; begin end head BEGIN_SNAKE_TAIL equ snake + SNAKE.tail END_SNAKE_TAIL equ BEGIN_SNAKE_TAIL + TAIL_LENGTH * SIZE_COORD SNAKE_STATE equ snake + SNAKE.state HEAD equ snake + SNAKE.head ; eat constants EAT_LENGTH equ 100 BEGIN_EAT equ ECOORD END_EAT equ ECOORD + EAT_LENGTH * SIZE_COORD ; rand constants "MMIX by <NAME>" A equ 6364136223846793005 C equ 1442695040888963407 global start section .bss struc KEY_EVENT_RECORD .bKeyDown resd 1 ; win32 BOOL 32 bit .wRepeatCount resw 1 .wVirtualKeyCode resw 1 .wVirtualScanCode resw 1 .uChar resb 1 .dwControlKeyState resd 1 endstruc struc INPUT_RECORD .EventType resw 1 .Padding resw 1 ; Padding .Event reso 1 ; MOUSE_EVENT_RECORD 128 bit endstruc struc COORD .X resw 1 .Y resw 1 endstruc struc RECT .LeftUp resd 1 .RightDown resd 1 endstruc struc SNAKE .state resb 1 .head resd 1 .tail resd TAIL_LENGTH endstruc struc CONSOLE_FONT_INFOEX .cbSize resd 1 .nFont resd 1 .dwFontSize resd 1 .FontFamily resd 1 .FontWeight resd 1 .FaceName times 32 resw 1 ; LF_FACESIZE = 32 endstruc section .data head db 254, 0 empty db 176, 0 eat db 35, 0 title db 'Snake!', 0 stdOut dq 0 stdIn dq 0 buffer dq 0 next_rand dq 1 offset_dead_tail dq DEAD_TAIL_LENGTH * SIZE_COORD ; len_dead_tail * SIZE_COORD < TAIL_LENGTH PINPUT_RECORD istruc INPUT_RECORD at INPUT_RECORD.EventType, dw 0 at INPUT_RECORD.Padding, dw 0 at INPUT_RECORD.Event, dw 0 iend ECOORD times EAT_LENGTH dd 0 snake istruc SNAKE at SNAKE.state, db STATE_RIGHT at SNAKE.head, dw TAIL_LENGTH - DEAD_TAIL_LENGTH + 1, SPAWN_Y at SNAKE.tail, times TAIL_LENGTH dd 0 iend border istruc RECT at RECT.LeftUp, dw 0, 0 at RECT.RightDown, dw BORDER_WIDTH, BORDER_HEIGHT iend border_buffer dw BORDER_WIDTH + 1, BORDER_HEIGHT + 1 section text USE64 start: %define shadow_space 28h sub rsp, shadow_space ; Microsoft x64 calling convention "shadow space" mov rcx, STD_OUTPUT_HANDLE call GetStdHandle mov [stdOut], rax ; get console output handle mov rcx, STD_INPUT_HANDLE ; get console input handle call GetStdHandle mov [stdIn], rax mov rcx, title call SetConsoleTitleA ; set title sub rsp, 84 mov dword [rsp + CONSOLE_FONT_INFOEX.cbSize], 84 ; sizeof(CONSOLE_FONT_INFOEX) mov rcx, [stdOut] mov rdx, 0 ; false, font information is retrieved for the current window size mov r8, rsp call GetCurrentConsoleFontEx ; get current font mov word [rsp + CONSOLE_FONT_INFOEX.dwFontSize + COORD.X], SIZE_FONT ; set font size mov word [rsp + CONSOLE_FONT_INFOEX.dwFontSize + COORD.Y], SIZE_FONT ; set font size mov rcx, [stdOut] mov rdx, 0 mov r8, rsp call SetCurrentConsoleFontEx ; set font add rsp, 84 mov rcx, [stdOut] mov rdx, [border_buffer] call SetConsoleScreenBufferSize ; set screen buffer >= BORDER_RIGHT_DOWN coord ; cmp rax, 0 ; je quit mov rcx, [stdOut] mov edx, 1 ; true - coordinates specify the new upper-left and lower-right corners mov r8, border call SetConsoleWindowInfo ; BOOL SetConsoleWindowInfo(HANDLE hConsoleOutput, BOOL bAbsolute, const SMALL_RECT *lpConsoleWindow); ; cmp rax, 0 ; je quit push dword 0 ; push CONSOLE_CURSOR_INFO visible = false push dword 64 ; push size CONSOLE_CURSOR_INFO mov rcx, [stdOut] mov rdx, rsp call SetConsoleCursorInfo ; BOOL SetConsoleCursorInfo(HANDLE hConsoleOutput, const CONSOLE_CURSOR_INFO *lpConsoleCursorInfo); add rsp, 8 call time mov rcx, rax call srand call init_eat call init_snake ; stack: ; start_t ; t call time push rax ; start_t push qword 0 ; t .app_loop: call time ; end_t in rax pop rdx ; t pop rcx ; start_t mov r8, rax cmp rax, rcx jl quit sub rax, rcx add rdx, rax push r8 ; start_t = end_t push rdx ; t call input .inner_app_loop: mov rax, [rsp] cmp rax, FRAME_TIME jl .end_inner_app_loop pop rax sub rax, FRAME_TIME push rax call update_eat call update_tail call update_head jmp .inner_app_loop .end_inner_app_loop: jmp .app_loop quit: xor rcx, rcx ; UINT uExitCode = 0 call ExitProcess ; ExitProcess(uExitCode) input: ; void -> pollute: rcx, rdx, r8, r9 sub rsp, shadow_space ; Microsoft x64 calling convention "shadow space" mov rcx, [stdIn] mov rdx, buffer call GetNumberOfConsoleInputEvents cmp qword [buffer], 0 ; ReadConsoleInputA waiting function -> if input buffer clear ignore ReadConsoleInputA je .end mov rcx, [stdIn] mov rdx, PINPUT_RECORD mov r8, 1 mov r9, buffer call ReadConsoleInputA ; waiting function cmp word [PINPUT_RECORD + INPUT_RECORD.EventType], KEY_EVENT jne .end .key_input: cmp dword [KEY_DOWN], 1 jne .end cmp word [KEY_CODE], VK_LEFT je .left_key_input cmp word [KEY_CODE], VK_UP je .up_key_input cmp word [KEY_CODE], VK_RIGHT je .right_key_input cmp word [KEY_CODE], VK_DOWN je .down_key_input cmp word [KEY_CODE], VK_ESCAPE je quit jmp .end .left_key_input: cmp byte [SNAKE_STATE], STATE_RIGHT je .end mov byte [SNAKE_STATE], STATE_LEFT jmp .end .up_key_input: cmp byte [SNAKE_STATE], STATE_DOWN je .end mov byte [SNAKE_STATE], STATE_UP jmp .end .right_key_input: cmp byte [SNAKE_STATE], STATE_LEFT je .end mov byte [SNAKE_STATE], STATE_RIGHT jmp .end .down_key_input: cmp byte [SNAKE_STATE], STATE_UP je .end mov byte [SNAKE_STATE], STATE_DOWN jmp .end .end: add rsp, shadow_space ; Microsoft x64 calling convention "shadow space" ret update_head: ; void -> pollute: rcx, rdx ; draw head mov r8, HEAD mov r9, head call put_char xor rcx, rcx xor rdx, rdx cmp byte [SNAKE_STATE], STATE_LEFT je .state_left cmp byte [SNAKE_STATE], STATE_UP je .state_up cmp byte [SNAKE_STATE], STATE_RIGHT je .state_right cmp byte [SNAKE_STATE], STATE_DOWN je .state_down .state_left: mov cx, [HEAD + COORD.X] mov dx, [border + RECT.LeftUp + COORD.X] cmp dx, cx jge .to_right_side dec word [HEAD + COORD.X] jmp .end .to_right_side: mov cx, word [BORDER_RIGHT_DOWN + COORD.X] mov word [HEAD + COORD.X], cx jmp .end .state_up: mov cx, [HEAD + COORD.Y] mov dx, [border + RECT.LeftUp + COORD.Y] cmp dx, cx jge .to_down_side dec word [HEAD + COORD.Y] jmp .end .to_down_side: mov cx, word [BORDER_RIGHT_DOWN + COORD.Y] mov word [HEAD + COORD.Y], cx jmp .end .state_right: mov cx, [HEAD + COORD.X] mov dx, [BORDER_RIGHT_DOWN + COORD.X] cmp dx, cx jle .to_left_side inc word [HEAD + COORD.X] jmp .end .to_left_side: mov cx, word [border + RECT.LeftUp + COORD.X] mov word [HEAD + COORD.X], cx jmp .end .state_down: mov cx, [HEAD + COORD.Y] mov dx, [BORDER_RIGHT_DOWN + COORD.Y] cmp dx, cx jle .to_up_side inc word [HEAD + COORD.Y] jmp .end .to_up_side: mov cx, word [border + RECT.LeftUp + COORD.Y] mov word [HEAD + COORD.Y], cx jmp .end .end: ret update_tail: ; void -> pollute: rcx, rdx, r8, r9 + pollute intersect_tail, put_char ; draw snake trace mov r8, BEGIN_SNAKE_TAIL add r8, [offset_dead_tail] mov r9, empty call put_char call intersect_tail ; rax: true/false, rcx: address intersect block cmp rax, 0 je .update mov rdx, BEGIN_SNAKE_TAIL mov rax, rcx sub rax, rdx add rdx, [offset_dead_tail] mov [offset_dead_tail], rax .delete: cmp rcx, rdx je .update ; draw snake trace where dead snake push rcx push rdx mov r8, rdx mov r9, empty call put_char pop rdx pop rcx add rdx, SIZE_COORD jmp .delete .update: mov rcx, BEGIN_SNAKE_TAIL .loop: cmp rcx, END_SNAKE_TAIL - SIZE_COORD je .end mov rdx, [rcx + SIZE_COORD] mov [rcx], rdx add rcx, SIZE_COORD jmp .loop .end: mov edx, [HEAD] mov [rcx], edx ret update_eat: ; void -> pollute: rcx, rdx, r8, r9 + pollute generate_eat mov r8, BEGIN_EAT .loop: cmp r8, END_EAT je .end mov r9, r8 add r8, SIZE_COORD xor rcx, rcx mov ecx, [r9] cmp ecx, [HEAD] jne .loop mov rdx, r9 push r8 call generate_eat pop r8 mov rax, [offset_dead_tail] cmp rax, SPAWN_TAIL * SIZE_COORD jle .loop sub rax, SPAWN_TAIL * SIZE_COORD mov [offset_dead_tail], rax jmp .loop .end: ret put_char: ; r8: &COORD, r9: &char -> pollute: rcx, rdx, r8, r9 + ?pollute SetConsoleCursorPosition, WriteConsoleA push r9 mov rcx, [stdOut] mov rdx, [r8] call SetConsoleCursorPosition pop r9 mov rcx, [stdOut] mov rdx, r9 mov r8, 1 mov r9, buffer call WriteConsoleA ret intersect_tail: ; void -> rax: bool, rcx: &intersect_block mov rcx, BEGIN_SNAKE_TAIL add rcx, [offset_dead_tail] .loop: cmp rcx, END_SNAKE_TAIL je .end mov rax, [rcx] cmp eax, [HEAD] je .intersect add rcx, SIZE_COORD jmp .loop .intersect: mov rax, 1 ret .end: mov rax, 0 ret generate_eat: ; rdx: &ECOORD -> pollute: rcx, r8, r9 + pollute rand, put_char ; random x xor rcx, rcx mov cx, [BORDER_RIGHT_DOWN + COORD.X] sub cx, [border + RECT.LeftUp + COORD.X] push rdx call rand pop rdx add ax, [border + RECT.LeftUp + COORD.X] mov word [rdx + COORD.X], ax ; random y xor rcx, rcx mov cx, [BORDER_RIGHT_DOWN + COORD.Y] sub cx, [border + RECT.LeftUp + COORD.Y] push rdx call rand pop rdx add ax, [border + RECT.LeftUp + COORD.Y] mov word [rdx + COORD.Y], ax ; draw eat mov r8, rdx mov r9, eat call put_char ret srand: ; rcx: u64 mov qword [next_rand], rcx ret rand: ; rcx: mod -> rax: random; pollute: rdx, r8 mov rax, [next_rand] ; rax = next_rand mov r8, A mul r8 ; rax = next_rand * A mov r8, C add rax, r8 ; rax = next_rand * A + C mov [next_rand], rax ; next_rand = next_rand * A + C xor rdx, rdx div rcx ; rax = rax / rcx, rdx = rax % rcx mov rax, rdx ; rax = rax % rcx ret time: ; void -> rax: time in milliseconds; pollute: ?pollute GetTickCount call GetTickCount ret init_snake: ; void -> pollute: rax, rcx movsxd rcx, [border + RECT.LeftUp + COORD.X] mov rax, BEGIN_SNAKE_TAIL add rax, [offset_dead_tail] .loop: cmp rax, END_SNAKE_TAIL je .end mov word [rax + COORD.X], cx mov word [rax + COORD.Y], SPAWN_Y push rcx push rax mov r8, rax mov r9, head call put_char pop rax pop rcx add rax, SIZE_COORD inc rcx jmp .loop .end: ret init_eat: ; void -> pollute: rdx + pollute generate_eat mov rdx, BEGIN_EAT .loop: cmp rdx, END_EAT je .end push rdx call generate_eat pop rdx add rdx, SIZE_COORD jmp .loop .end: ret
prototyping/Luau/RuntimeError/ToString.agda
FreakingBarbarians/luau
1
7355
<filename>prototyping/Luau/RuntimeError/ToString.agda module Luau.RuntimeError.ToString where open import FFI.Data.String using (String; _++_) open import Luau.RuntimeError using (RuntimeErrorᴮ; RuntimeErrorᴱ; local; return; NilIsNotAFunction; UnboundVariable; SEGV; app; block) open import Luau.Addr.ToString using (addrToString) open import Luau.Var.ToString using (varToString) errToStringᴱ : ∀ {H B} → RuntimeErrorᴱ H B → String errToStringᴮ : ∀ {H B} → RuntimeErrorᴮ H B → String errToStringᴱ NilIsNotAFunction = "nil is not a function" errToStringᴱ (UnboundVariable x) = "variable " ++ varToString x ++ " is unbound" errToStringᴱ (SEGV a x) = "address " ++ addrToString a ++ " is unallocated" errToStringᴱ (app E) = errToStringᴱ E errToStringᴱ (block b E) = errToStringᴮ E ++ "\n in call of function " ++ varToString b errToStringᴮ (local x E) = errToStringᴱ E ++ "\n in definition of " ++ varToString x errToStringᴮ (return E) = errToStringᴱ E ++ "\n in return statement"
Assignment3/init/src/main/mp/parser/MP.g4
jimcbl/ppl_hcmut_assignment
1
1050
grammar MP; @lexer::header { from lexererr import * } options{ language=Python3; } program : decl+ EOF; decl: funcdecl | procdecl; procdecl: PROCEDURE ID LB RB SEMI body; funcdecl: FUNCTION ID LB RB COLON mtype SEMI body; body: BEGIN stmt? END ; stmt: funcall SEMI; funcall: ID LB exp? RB ; exp: INTLIT ; mtype: INTTYPE; INTLIT: [0-9]+ ; LB: '(' ; RB: ')' ; SEMI: ';' ; COLON: ':' ; WS : [ \t\r\n]+ -> skip ; // skip spaces, tabs, newlines PROCEDURE: P R O C E D U R E; FUNCTION: F U N C T I O N; BEGIN: B E G I N; END: E N D; INTTYPE: I N T E G E R; ID: [a-zA-Z]+ ; fragment A : [aA]; fragment B : [bB]; fragment C : [cC]; fragment D : [dD]; fragment E : [eE]; fragment F : [fF]; fragment G : [gG]; fragment H : [hH]; fragment I : [iI]; fragment J : [jJ]; fragment K : [kK]; fragment L : [lL]; fragment M : [mM]; fragment N : [nN]; fragment O : [oO]; fragment P : [pP]; fragment Q : [qQ]; fragment R : [rR]; fragment S : [sS]; fragment T : [tT]; fragment U : [uU]; fragment V : [vV]; fragment W : [wW]; fragment X : [xX]; fragment Y : [yY]; fragment Z : [zZ]; ERROR_CHAR: .;
examples/cart/carttest.asm
mahlemiut/cpcbuilder
4
104062
; Cartridge test demo org 0 ; initialise the CRTC ld hl,crtc ld bc,&bc00 crtc_loop: out (c),c ld a,(hl) inc b out (c),a dec b inc c inc hl ld a,c cp 16 jr nz,crtc_loop ; set to mode 0 ld bc,&7f80 out (c),c ; copy in screen data ld bc,&df01 out (c),c ld bc,&4000 ld de,&4000 ld hl,&c000 ldir ; set palette ld hl,palette ld bc,&7f00 pal_loop: out (c),c ld a,(hl) set 6,a out (c),a inc c inc hl ld a,16 cp c jr nz,pal_loop loop: jp loop palette: defb 20,4,21,28,24,6,30,0,31,14,7,10,3,11,20,20 crtc: defb &3f,&28,&2e,&8e,&26,0,&19,&1e,0,7,0,0,&10,0,0,0
libsrc/_DEVELOPMENT/math/float/math48/lm/c/sccz80/sqrt.asm
jpoikela/z88dk
640
86135
SECTION code_clib SECTION code_fp_math48 PUBLIC sqrt EXTERN cm48_sccz80_sqrt defc sqrt = cm48_sccz80_sqrt
src/PJ/picdrive/tiff/unhufman.asm
AnimatorPro/Animator-Pro
119
21732
<gh_stars>100-1000 ; Set your editor tabsize to 8 for this file! ;**************************************************************************** ; UNHUFMAN.ASM - Decompress TIFF type-2 data (modified one-d Huffman format). ; (386 protected mode version). ;**************************************************************************** _TEXT segment word public use32 'CODE' assume cs:_TEXT,DS:_TEXT public decmprs2 ;**************************************************************************** ; decmprs2 - Decompress the current line of data. ; This is the entry point from the outside world. ; ; ENTRY: ; [esp+4] - Pointer to input buffer ; [esp+8] - Pointer to output line buffer ; [esp+12] - Size of output buffer (bytes to create during decompress) ; ; EXIT: ; eax - Pointer to next byte in input buffer (data for next line) ; If this is NULL, a decompression error ocurred (either a ; bad runlength code, or a buffer overrun). all errors are ; considered fatal; since data alignment is lost, no recovery ; of the current or any following line is possible. ; all other regs preserved ;**************************************************************************** decmprs2 proc near InputPointer equ dword ptr [ebp+8] OutputPointer equ dword ptr [ebp+12] OutputCount equ dword ptr [ebp+16] push ebp mov ebp,esp push ebx push ecx push edx push esi push edi cld mov edi,OutputPointer mov ecx,OutputCount mov al,00h ; zero out buffer to avoid rep stosb ; having to write white bits. mov edi,OutputPointer ; reload output pointer xor edx,edx ; clear output bit offset mov bh,1 ; prime input bit counter mainloop: call getwhiterun ; go get a white run. js short goterror ; sign flag indicates error. sub OutputCount,esi ; Count the bits just done, jz short done ; if zero, line is all done. call getblackrun ; go get a black run. js short goterror ; sign flag indicates error. sub OutputCount,esi ; count the bits just done, jz short done ; if zero, line is all done. jmp short mainloop ; loop until line is built. goterror: mov eax,0 ; encountered a bad code, jmp short returnit ; return NULL (error). done: mov eax,InputPointer ; return ptr to next input. returnit: pop edi pop esi pop edx pop ecx pop ebx leave ret decmprs2 endp ;**************************************************************************** ; ; getwhiterun - Process a run of white pixels ; Since the output buffer is zero'd before we start, we don't ; write white bits, we just add the runlength to the output ; bit pointer. ; ; ENTRY: ; bh - current input bit ; bl - current input byte ; edx - offset (in bits) into output buffer ; EXIT: ; bh - new current input bit ; bl - new current input byte ; edx - new offset (in bits) into output buffer ; esi - runlength value (bits 'added' to output) ; eax - trashed by lower level routines ; ecx - trashed by lower level routines ;**************************************************************************** getwhiterun proc near lea esi,white_tree call getrunlength js short white_return ; punt on error. add edx,esi white_return: ret getwhiterun endp ;**************************************************************************** ; ; getblackrun - Process a run of black pixels ; ; ENTRY: ; bh - current input bit ; bl - current input byte ; edx - offset (in bits) into output buffer ; edi - pointer to start of output buffer ; EXIT: ; bh - new current input bit ; bl - new current input byte ; edx - new offset (in bits) into output buffer ; edi - pointer to start of output buffer (not modified) ; esi - runlength value (bits added to output) ; eax - trashed ; ecx - trashed ;**************************************************************************** getblackrun proc near lea esi,black_tree ; search tree for black run call getrunlength ; go get run length push esi ; save runlength for retval jle black_return ; punt if error or 0 length mov eax,edx ; get output offset, isolate and ax,7 ; bits already done in byte jz short dofullbytes ; if zero, no partial to fill mov ecx,edx ; calculate offset to current shr ecx,3 ; byte on output line, save push ecx ; offset till we need it mov cx,7 ; convert bits-already-done sub cx,ax ; to index of bit to start mov ax,0 ; filling with blackness loop1: bts ax,cx ; set the bit, count it as inc edx ; done in the output offset dec esi ; count as done in runlength jz done1 ; if runlength now zero, done sub cx,1 ; else change index to next jge loop1 ; bit and loop until done done1: pop ecx ; get saved out byte offset or byte ptr [edi+ecx],al ; new bits into current byte dofullbytes: mov ecx,esi ; get count of bits left to cmp ecx,0 ; to do in run, if count jz short black_return ; is zero, we're all done. shr edx,3 ; convert to byte out offset shr ecx,3 ; convert bitcount to bytes jz short doendbits ; if 0, no full bytes to do and esi,7 ; reduce count to residual bits push edi ; save ptr to start of output lea edi,[edi+edx] ; make ptr to current output add edx,ecx ; count bytes we're doing mov al,0ffh ; init output value rep stosb ; lay in byte run of black pop edi ; restore ptr to output doendbits: mov ecx,edx ; save byte output offset shl edx,3 ; convert back to bit offset cmp esi,0 ; any bits left to do? je short black_return ; nope, all done. push ecx ; save byte output offset add edx,esi ; update bit output offset mov cx,7 ; prime index of bits to set xor ax,ax ; in partial output byte loop2: bts ax,cx ; set the current bit dec cx ; change bit index dec esi ; count bit as done jnz loop2 ; if not zero, do more bits pop ecx ; restore output byte offset or byte ptr[edi+ecx],al ; lay in partial byte black_return: pop esi ; restore runlength and cmp esi,0 ; set sign flag to match, ret ; our caller needs both. getblackrun endp ;**************************************************************************** ; getrunlength - Return runlength value for next code in input stream. ; This is the routine that walks the binary tree until a ; terminating code is found. This routine also checks the ; runlength value it finds against the bytes-remaining count ; and sets the sign flag if an overrun is detected. ; ; Note that this routine copes with two type of leaf nodes: ; those representing terminating codes (value < 64), and ; those representing makeup codes. The routine continues ; looping until it finds a terminating code, and it returns ; the sum of all makeup codes plus the terminating code. ; ; ENTRY: ; bh - Current bit ; bl - Current byte ; esi - ptr to tree to search ; EXIT: ; bh - Current bit ; bl - Current byte ; esi - run length, or -1 for code error or length overruns buffer ; eax - trashed ; ecx - trashed ;**************************************************************************** getrunlength proc near mov eax,esi ; save ptr for looping xor esi,esi ; zero out length accumulator getnextlength: mov ecx,eax ; load/refresh tree pointer searchsubtree: cmp dword ptr[ecx],0 ; leaf node? jnz short found_leafnode ; yes, go check leaf type dec bh ; still bits in current byte? jnz short nextbit ; yep, go do next bit mov ebx,InputPointer ; load pointer to input data inc dword ptr InputPointer ; increment it for next time mov bl,[ebx] ; get next byte of data mov bh,8 ; reset count to 8 bits nextbit: shl bl,1 ; test bit. if a 1 bit is jc short take_rightbranch ; found go take right branch take_leftbranch: add ecx,8 ; 0 bit takes the left branch jmp short searchsubtree ; loop to search subtree take_rightbranch: mov ecx,dword ptr[ecx+4] ; point to right branch, jmp short searchsubtree ; loop to search subtree found_leafnode: mov ecx,dword ptr[ecx+4] ; get value of leaf, if neg js found_errorcode ; we have bad code, report it add esi,ecx ; add runlength value to accum cmp ecx,64 ; if value >= 64, it was a jge getnextlength ; makeup code, go get next cmp OutputCount,esi ; else check total runlength jge goodrun ; against remaining linelength found_errorcode: mov esi,-1 ; indicate bad code or overrun goodrun: cmp esi,0 ; set flags for caller ret ; return length in esi getrunlength endp ;**************************************************************************** ; Decompression Tables ;**************************************************************************** white_tree: w dd 0,w1 w0 dd 0,w01 w00 dd 0,w001 w000 dd 0,w0001 w0000 dd 0,w00001 w00000 dd 0,w000001 w000000 dd 0,w0000001 w0000000 dd 0,w00000001 w00000000 dd 0,w000000001 w000000000 dd 0,w0000000001 w0000000000 dd 0,w00000000001 w00000000000 dd 0,w000000000001 w000000000000 dd 1,-2 w000000000001 dd 1,-1 w00000000001 dd 1,-2 w0000000001 dd 1,-2 w000000001 dd 1,-2 w00000001 dd 0,w000000011 w000000010 dd 0,w0000000101 w0000000100 dd 0,w00000001001 w00000001000 dd 1,1792 w00000001001 dd 0,w000000010011 w000000010010 dd 1,1984 w000000010011 dd 1,2048 w0000000101 dd 0,w00000001011 w00000001010 dd 0,w000000010101 w000000010100 dd 1,2112 w000000010101 dd 1,2176 w00000001011 dd 0,w000000010111 w000000010110 dd 1,2240 w000000010111 dd 1,2304 w000000011 dd 0,w0000000111 w0000000110 dd 0,w00000001101 w00000001100 dd 1,1856 w00000001101 dd 1,1920 w0000000111 dd 0,w00000001111 w00000001110 dd 0,w000000011101 w000000011100 dd 1,2368 w000000011101 dd 1,2432 w00000001111 dd 0,w000000011111 w000000011110 dd 1,2496 w000000011111 dd 1,2560 w0000001 dd 0,w00000011 w00000010 dd 1,29 w00000011 dd 1,30 w000001 dd 0,w0000011 w0000010 dd 0,w00000101 w00000100 dd 1,45 w00000101 dd 1,46 w0000011 dd 1,22 w00001 dd 0,w000011 w000010 dd 0,w0000101 w0000100 dd 1,23 w0000101 dd 0,w00001011 w00001010 dd 1,47 w00001011 dd 1,48 w000011 dd 1,13 w0001 dd 0,w00011 w00010 dd 0,w000101 w000100 dd 0,w0001001 w0001000 dd 1,20 w0001001 dd 0,w00010011 w00010010 dd 1,33 w00010011 dd 1,34 w000101 dd 0,w0001011 w0001010 dd 0,w00010101 w00010100 dd 1,35 w00010101 dd 1,36 w0001011 dd 0,w00010111 w00010110 dd 1,37 w00010111 dd 1,38 w00011 dd 0,w000111 w000110 dd 0,w0001101 w0001100 dd 1,19 w0001101 dd 0,w00011011 w00011010 dd 1,31 w00011011 dd 1,32 w000111 dd 1,1 w001 dd 0,w0011 w0010 dd 0,w00101 w00100 dd 0,w001001 w001000 dd 1,12 w001001 dd 0,w0010011 w0010010 dd 0,w00100101 w00100100 dd 1,53 w00100101 dd 1,54 w0010011 dd 1,26 w00101 dd 0,w001011 w001010 dd 0,w0010101 w0010100 dd 0,w00101001 w00101000 dd 1,39 w00101001 dd 1,40 w0010101 dd 0,w00101011 w00101010 dd 1,41 w00101011 dd 1,42 w001011 dd 0,w0010111 w0010110 dd 0,w00101101 w00101100 dd 1,43 w00101101 dd 1,44 w0010111 dd 1,21 w0011 dd 0,w00111 w00110 dd 0,w001101 w001100 dd 0,w0011001 w0011000 dd 1,28 w0011001 dd 0,w00110011 w00110010 dd 1,61 w00110011 dd 1,62 w001101 dd 0,w0011011 w0011010 dd 0,w00110101 w00110100 dd 1,63 w00110101 dd 1,0 w0011011 dd 0,w00110111 w00110110 dd 1,320 w00110111 dd 1,384 w00111 dd 1,10 w01 dd 0,w011 w010 dd 0,w0101 w0100 dd 0,w01001 w01000 dd 1,11 w01001 dd 0,w010011 w010010 dd 0,w0100101 w0100100 dd 1,27 w0100101 dd 0,w01001011 w01001010 dd 1,59 w01001011 dd 1,60 w010011 dd 0,w0100111 w0100110 dd 0,w01001101 w01001100 dd 0,w010011001 w010011000 dd 1,1472 w010011001 dd 1,1536 w01001101 dd 0,w010011011 w010011010 dd 1,1600 w010011011 dd 1,1728 w0100111 dd 1,18 w0101 dd 0,w01011 w01010 dd 0,w010101 w010100 dd 0,w0101001 w0101000 dd 1,24 w0101001 dd 0,w01010011 w01010010 dd 1,49 w01010011 dd 1,50 w010101 dd 0,w0101011 w0101010 dd 0,w01010101 w01010100 dd 1,51 w01010101 dd 1,52 w0101011 dd 1,25 w01011 dd 0,w010111 w010110 dd 0,w0101101 w0101100 dd 0,w01011001 w01011000 dd 1,55 w01011001 dd 1,56 w0101101 dd 0,w01011011 w01011010 dd 1,57 w01011011 dd 1,58 w010111 dd 1,192 w011 dd 0,w0111 w0110 dd 0,w01101 w01100 dd 0,w011001 w011000 dd 1,1664 w011001 dd 0,w0110011 w0110010 dd 0,w01100101 w01100100 dd 1,448 w01100101 dd 1,512 w0110011 dd 0,w01100111 w01100110 dd 0,w011001101 w011001100 dd 1,704 w011001101 dd 1,768 w01100111 dd 1,640 w01101 dd 0,w011011 w011010 dd 0,w0110101 w0110100 dd 0,w01101001 w01101000 dd 1,576 w01101001 dd 0,w011010011 w011010010 dd 1,832 w011010011 dd 1,896 w0110101 dd 0,w01101011 w01101010 dd 0,w011010101 w011010100 dd 1,960 w011010101 dd 1,1024 w01101011 dd 0,w011010111 w011010110 dd 1,1088 w011010111 dd 1,1152 w011011 dd 0,w0110111 w0110110 dd 0,w01101101 w01101100 dd 0,w011011001 w011011000 dd 1,1216 w011011001 dd 1,1280 w01101101 dd 0,w011011011 w011011010 dd 1,1344 w011011011 dd 1,1408 w0110111 dd 1,256 w0111 dd 1,2 w1 dd 0,w11 w10 dd 0,w101 w100 dd 0,w1001 w1000 dd 1,3 w1001 dd 0,w10011 w10010 dd 1,128 w10011 dd 1,8 w101 dd 0,w1011 w1010 dd 0,w10101 w10100 dd 1,9 w10101 dd 0,w101011 w101010 dd 1,16 w101011 dd 1,17 w1011 dd 1,4 w11 dd 0,w111 w110 dd 0,w1101 w1100 dd 1,5 w1101 dd 0,w11011 w11010 dd 0,w110101 w110100 dd 1,14 w110101 dd 1,15 w11011 dd 1,64 w111 dd 0,w1111 w1110 dd 1,6 w1111 dd 1,7 black_tree: b dd 0,b1 b0 dd 0,b01 b00 dd 0,b001 b000 dd 0,b0001 b0000 dd 0,b00001 b00000 dd 0,b000001 b000000 dd 0,b0000001 b0000000 dd 0,b00000001 b00000000 dd 1,-2 b00000001 dd 0,b000000011 b000000010 dd 0,b0000000101 b0000000100 dd 0,b00000001001 b00000001000 dd 1,1792 b00000001001 dd 0,b000000010011 b000000010010 dd 1,1984 b000000010011 dd 1,2048 b0000000101 dd 0,b00000001011 b00000001010 dd 0,b000000010101 b000000010100 dd 1,2112 b000000010101 dd 1,2176 b00000001011 dd 0,b000000010111 b000000010110 dd 1,2240 b000000010111 dd 1,2304 b000000011 dd 0,b0000000111 b0000000110 dd 0,b00000001101 b00000001100 dd 1,1856 b00000001101 dd 1,1920 b0000000111 dd 0,b00000001111 b00000001110 dd 0,b000000011101 b000000011100 dd 1,2368 b000000011101 dd 1,2432 b00000001111 dd 0,b000000011111 b000000011110 dd 1,2496 b000000011111 dd 1,2560 b0000001 dd 0,b00000011 b00000010 dd 0,b000000101 b000000100 dd 0,b0000001001 b0000001000 dd 1,18 b0000001001 dd 0,b00000010011 b00000010010 dd 0,b000000100101 b000000100100 dd 1,52 b000000100101 dd 0,b0000001001011 b0000001001010 dd 1,640 b0000001001011 dd 1,704 b00000010011 dd 0,b000000100111 b000000100110 dd 0,b0000001001101 b0000001001100 dd 1,768 b0000001001101 dd 1,832 b000000100111 dd 1,55 b000000101 dd 0,b0000001011 b0000001010 dd 0,b00000010101 b00000010100 dd 0,b000000101001 b000000101000 dd 1,56 b000000101001 dd 0,b0000001010011 b0000001010010 dd 1,1280 b0000001010011 dd 1,1344 b00000010101 dd 0,b000000101011 b000000101010 dd 0,b0000001010101 b0000001010100 dd 1,1408 b0000001010101 dd 1,1472 b000000101011 dd 1,59 b0000001011 dd 0,b00000010111 b00000010110 dd 0,b000000101101 b000000101100 dd 1,60 b000000101101 dd 0,b0000001011011 b0000001011010 dd 1,1536 b0000001011011 dd 1,1600 b00000010111 dd 1,24 b00000011 dd 0,b000000111 b000000110 dd 0,b0000001101 b0000001100 dd 0,b00000011001 b00000011000 dd 1,25 b00000011001 dd 0,b000000110011 b000000110010 dd 0,b0000001100101 b0000001100100 dd 1,1664 b0000001100101 dd 1,1728 b000000110011 dd 1,320 b0000001101 dd 0,b00000011011 b00000011010 dd 0,b000000110101 b000000110100 dd 1,384 b000000110101 dd 1,448 b00000011011 dd 0,b000000110111 b000000110110 dd 0,b0000001101101 b0000001101100 dd 1,512 b0000001101101 dd 1,576 b000000110111 dd 1,53 b000000111 dd 0,b0000001111 b0000001110 dd 0,b00000011101 b00000011100 dd 0,b000000111001 b000000111000 dd 1,54 b000000111001 dd 0,b0000001110011 b0000001110010 dd 1,896 b0000001110011 dd 1,960 b00000011101 dd 0,b000000111011 b000000111010 dd 0,b0000001110101 b0000001110100 dd 1,1024 b0000001110101 dd 1,1088 b000000111011 dd 0,b0000001110111 b0000001110110 dd 1,1152 b0000001110111 dd 1,1216 b0000001111 dd 1,64 b000001 dd 0,b0000011 b0000010 dd 0,b00000101 b00000100 dd 1,13 b00000101 dd 0,b000001011 b000001010 dd 0,b0000010101 b0000010100 dd 0,b00000101001 b00000101000 dd 1,23 b00000101001 dd 0,b000001010011 b000001010010 dd 1,50 b000001010011 dd 1,51 b0000010101 dd 0,b00000101011 b00000101010 dd 0,b000001010101 b000001010100 dd 1,44 b000001010101 dd 1,45 b00000101011 dd 0,b000001010111 b000001010110 dd 1,46 b000001010111 dd 1,47 b000001011 dd 0,b0000010111 b0000010110 dd 0,b00000101101 b00000101100 dd 0,b000001011001 b000001011000 dd 1,57 b000001011001 dd 1,58 b00000101101 dd 0,b000001011011 b000001011010 dd 1,61 b000001011011 dd 1,256 b0000010111 dd 1,16 b0000011 dd 0,b00000111 b00000110 dd 0,b000001101 b000001100 dd 0,b0000011001 b0000011000 dd 1,17 b0000011001 dd 0,b00000110011 b00000110010 dd 0,b000001100101 b000001100100 dd 1,48 b000001100101 dd 1,49 b00000110011 dd 0,b000001100111 b000001100110 dd 1,62 b000001100111 dd 1,63 b000001101 dd 0,b0000011011 b0000011010 dd 0,b00000110101 b00000110100 dd 0,b000001101001 b000001101000 dd 1,30 b000001101001 dd 1,31 b00000110101 dd 0,b000001101011 b000001101010 dd 1,32 b000001101011 dd 1,33 b0000011011 dd 0,b00000110111 b00000110110 dd 0,b000001101101 b000001101100 dd 1,40 b000001101101 dd 1,41 b00000110111 dd 1,22 b00000111 dd 1,14 b00001 dd 0,b000011 b000010 dd 0,b0000101 b0000100 dd 1,10 b0000101 dd 1,11 b000011 dd 0,b0000111 b0000110 dd 0,b00001101 b00001100 dd 0,b000011001 b000011000 dd 1,15 b000011001 dd 0,b0000110011 b0000110010 dd 0,b00001100101 b00001100100 dd 0,b000011001001 b000011001000 dd 1,128 b000011001001 dd 1,192 b00001100101 dd 0,b000011001011 b000011001010 dd 1,26 b000011001011 dd 1,27 b0000110011 dd 0,b00001100111 b00001100110 dd 0,b000011001101 b000011001100 dd 1,28 b000011001101 dd 1,29 b00001100111 dd 1,19 b00001101 dd 0,b000011011 b000011010 dd 0,b0000110101 b0000110100 dd 0,b00001101001 b00001101000 dd 1,20 b00001101001 dd 0,b000011010011 b000011010010 dd 1,34 b000011010011 dd 1,35 b0000110101 dd 0,b00001101011 b00001101010 dd 0,b000011010101 b000011010100 dd 1,36 b000011010101 dd 1,37 b00001101011 dd 0,b000011010111 b000011010110 dd 1,38 b000011010111 dd 1,39 b000011011 dd 0,b0000110111 b0000110110 dd 0,b00001101101 b00001101100 dd 1,21 b00001101101 dd 0,b000011011011 b000011011010 dd 1,42 b000011011011 dd 1,43 b0000110111 dd 1,0 b0000111 dd 1,12 b0001 dd 0,b00011 b00010 dd 0,b000101 b000100 dd 1,9 b000101 dd 1,8 b00011 dd 1,7 b001 dd 0,b0011 b0010 dd 1,6 b0011 dd 1,5 b01 dd 0,b011 b010 dd 1,1 b011 dd 1,4 b1 dd 0,b11 b10 dd 1,3 b11 dd 1,2 _TEXT ends end
programs/oeis/004/A004960.asm
neoneye/loda
22
244865
<gh_stars>10-100 ; A004960: a(n) = ceiling(n*phi^5), where phi is the golden ratio, A001622. ; 0,12,23,34,45,56,67,78,89,100,111,122,134,145,156,167,178,189,200,211,222,233,244,256,267,278,289,300,311,322,333,344,355,366,378,389,400,411,422,433,444,455,466,477 mov $1,$0 add $0,1 mul $1,$0 mul $0,11 lpb $1 sub $1,$0 add $0,1 trn $1,1 lpe sub $0,11
Engine/Sound/PlayPCM.asm
wide-dot/thomson-to8-game-engine
11
166593
* --------------------------------------------------------------------------- * PlayPCM * ------------ * Subroutine to play a PCM sample at 16kHz * This will freeze anything running * DAC Init from Mission: Liftoff (merci Prehisto ;-)) * * input REG : [y] Pcm_ index to play * reset REG : [d] [x] [y] * --------------------------------------------------------------------------- PlayPCM _GetCartPageA sta PlayPCM_RestorePage+1 ldd #$fb3f ! Mute by CRA to anda $e7cf ! avoid sound when sta $e7cf ! $e7cd written stb $e7cd ! Full sound line ora #$04 ! Disable mute by sta $e7cf ! CRA and sound PlayPCM_ReadChunk lda sound_page,y ; load memory page beq PlayPCM_End _SetCartPageA ldx sound_start_addr,y ; Chunk start addr PlayPCM_Loop lda ,x+ sta $e7cd ; send byte to DAC cmpx sound_end_addr,y beq PlayPCM_NextChunk mul ; tempo for 16hHz mul mul tfr a,b bra PlayPCM_Loop ; loop is 63 cycles instead of 62,5 PlayPCM_NextChunk leay sound_meta_size,y mul ; tempo for 16kHz nop bra PlayPCM_ReadChunk PlayPCM_End lda #$00 sta $e7cd ldd #$fbfc ! Mute by CRA to anda $e7cf ! avoid sound when sta $e7cf ! $e7cd is written andb $e7cd ! Activate stb $e7cd ! joystick port ora #$04 ! Disable mute by sta $e7cf ! CRA + joystick PlayPCM_RestorePage lda #$00 _SetCartPageA rts
programs/oeis/158/A158068.asm
neoneye/loda
22
95270
; A158068: Period 6: repeat [1, 2, 2, 1, 5, 5]. ; 1,2,2,1,5,5,1,2,2,1,5,5,1,2,2,1,5,5,1,2,2,1,5,5,1,2,2,1,5,5,1,2,2,1,5,5,1,2,2,1,5,5,1,2,2,1,5,5,1,2,2,1,5,5,1,2,2,1,5,5,1,2,2,1,5,5,1,2,2,1,5,5,1,2,2,1,5,5,1,2,2,1,5,5,1,2,2,1,5,5,1,2,2,1,5,5,1,2,2,1 dif $0,2 mod $0,3 pow $0,2 add $0,1
c2000/C2000Ware_1_00_06_00/device_support/f2806x/common/source/F2806x_DisInt.asm
ramok/Themis_ForHPSDR
0
87391
;// TI File $Revision: /main/2 $ ;// Checkin $Date: January 4, 2011 10:10:15 $ ;//########################################################################### ;// ;// FILE: F2806x_DisInt.asm ;// ;// TITLE: Disable and Restore INTM and DBGM ;// ;// Function Prototypes: ;// ;// Uint16 DSP28x_DisableInt(); ;// and void DSP28x_RestoreInt(Uint16 Stat0); ;// ;// Usage: ;// ;// DSP28x_DisableInt() sets both the INTM and DBGM ;// bits to disable maskable interrupts. Before doing ;// this, the current value of ST1 is stored on the stack ;// so that the values can be restored later. The value ;// of ST1 before the masks are set is returned to the ;// user in AL. This is then used to restore their state ;// via the DSP28x_RestoreInt(Uint16 ST1) function. ;// ;// Example ;// ;// Uint16 StatusReg1 ;// StatusReg1 = DSP28x_DisableInt(); ;// ;// ... May also want to disable INTM here ;// ;// ... code here ;// ;// DSP28x_RestoreInt(StatusReg1); ;// ;// ... Restore INTM enable ;// ;//########################################################################### ;// $TI Release: F2806x Support Library v2.04.00.00 $ ;// $Release Date: Thu Oct 18 15:47:20 CDT 2018 $ ;// $Copyright: ;// Copyright (C) 2009-2018 Texas Instruments Incorporated - http://www.ti.com/ ;// ;// 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 Texas Instruments Incorporated 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 ;// OWNER 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. ;// $ ;//########################################################################### .def _DSP28x_DisableInt .def _DSP28x_RestoreInt _DSP28x_DisableInt: PUSH ST1 SETC INTM,DBGM MOV AL, *--SP LRETR _DSP28x_RestoreInt: MOV *SP++, AL POP ST1 LRETR ;// ;// End of file. ;//
Lab Work/5th-semester/assembly-language/book/CH-07/7_8.asm
akazad13/bsc-academic-work
0
102838
.MODEL SMALL .STACK 100H .DATA MSG1 DB 'TYPE A CHARACTER: $' MSG2 DB 0AH,'THE ASCII CODE OF '; CHAR DB ?,' $' MSG3 DB 'IN BINARY IS $' MSG4 DB 0AH,'THE NUMBER OF 1 BITS IS $' CNT DB 0 .CODE MAIN PROC ; initializing data segment MOV AX,@DATA MOV DS,AX LEA DX,MSG1 ; getting offset of 1st message MOV AH,9 ; string print function INT 21H ; printing 1st message MOV AH,1 ; single character inpur function INT 21H ; input a character MOV CHAR,AL ; mov character to CHAR variable MOV BL,AL ; mov character to BL register MOV CL,8 ; setting CL to 8 for Looping LEA DX,MSG2 ; getting offset of 2nd message MOV AH,9 ; string print function INT 21H ; printing 2nd message LEA DX,MSG3 ; getting offset of 3rd message INT 21H ; printing 3rd message MOV AH,2 ; single character output function TOP: MOV DL,0 ; settiong DL=0 SHL BL,1 ; Shift BL to one bit left JNC PRINT ; jump if carry flag != 1 MOV DL,1 ; set DL=1 INC CNT ; increament CNT PRINT: ADD DL,30H ; Add 30H for ancii char output INT 21H ; output the binary digit LOOP TOP ; loop condition LEA DX,MSG4 ; getting offset of 4th message MOV AH,9 ; string print function INT 21H ; printing the string MOV AH,2 ; single character output function MOV DL,CNT ; DL=CNT ADD DL,30H ; DL = DL+30H INT 21H ; output DL MOV AH,4CH ; dos return function INT 21H ; return from the dos MAIN ENDP END MAIN ; terminate programme
asm/x86_64/syscall.asm
sweetporkbones/scratchpad
9
161962
section .text global _start _start: mov rdi, 42 ; this code has the answer! mov rax, 60 ; exit syscall
alice2/brads_alice2_archive/asm/sanity2.asm
lkesteloot/alice
63
168997
ORG 0 MAIN ; write 0 to 0x8000 ; write 0xCAFE to 0x8000 ; must read back 0xCAFE LD BC, 0H LD (8000H), BC LD BC, 0cafeH LD (8000H), BC LD HL, (8000H) SCF CCF SBC HL, BC JP Z, YES JP NO YES LD A, 0FFH FASTLOOP OUT (0), A JP FASTLOOP NO LD A, 00H SLOWLOOP OUT (0), A NOP NOP NOP JP SLOWLOOP END
out/mkdir.asm
harveydong/learning-xv6
0
100848
.fs/mkdir: file format elf64-x86-64 Disassembly of section .text: 0000000000000000 <main>: #include "stat.h" #include "user.h" int main(int argc, char *argv[]) { 0: 55 push %rbp int i; if(argc < 2){ 1: 83 ff 01 cmp $0x1,%edi #include "stat.h" #include "user.h" int main(int argc, char *argv[]) { 4: 48 89 e5 mov %rsp,%rbp 7: 41 55 push %r13 9: 41 54 push %r12 b: 53 push %rbx c: 50 push %rax int i; if(argc < 2){ d: 7f 15 jg 24 <main+0x24> printf(2, "Usage: mkdir files...\n"); f: 48 c7 c6 40 06 00 00 mov $0x640,%rsi 16: bf 02 00 00 00 mov $0x2,%edi 1b: 31 c0 xor %eax,%eax 1d: e8 dc 02 00 00 callq 2fe <printf> 22: eb 3d jmp 61 <main+0x61> 24: 48 8d 5e 08 lea 0x8(%rsi),%rbx 28: 41 89 fd mov %edi,%r13d int main(int argc, char *argv[]) { int i; if(argc < 2){ 2b: 41 bc 01 00 00 00 mov $0x1,%r12d printf(2, "Usage: mkdir files...\n"); exit(); } for(i = 1; i < argc; i++){ if(mkdir(argv[i]) < 0){ 31: 48 8b 3b mov (%rbx),%rdi 34: e8 fa 01 00 00 callq 233 <mkdir> 39: 85 c0 test %eax,%eax 3b: 79 18 jns 55 <main+0x55> printf(2, "mkdir: %s failed to create\n", argv[i]); 3d: 48 8b 13 mov (%rbx),%rdx 40: 48 c7 c6 57 06 00 00 mov $0x657,%rsi 47: bf 02 00 00 00 mov $0x2,%edi 4c: 31 c0 xor %eax,%eax 4e: e8 ab 02 00 00 callq 2fe <printf> break; 53: eb 0c jmp 61 <main+0x61> if(argc < 2){ printf(2, "Usage: mkdir files...\n"); exit(); } for(i = 1; i < argc; i++){ 55: 41 ff c4 inc %r12d 58: 48 83 c3 08 add $0x8,%rbx 5c: 45 39 e5 cmp %r12d,%r13d 5f: 75 d0 jne 31 <main+0x31> printf(2, "mkdir: %s failed to create\n", argv[i]); break; } } exit(); 61: e8 65 01 00 00 callq 1cb <exit> 0000000000000066 <strcpy>: #include "user.h" #include "x86.h" char* strcpy(char *s, const char *t) { 66: 55 push %rbp 67: 48 89 f8 mov %rdi,%rax char *os; os = s; while((*s++ = *t++) != 0) 6a: 31 d2 xor %edx,%edx #include "user.h" #include "x86.h" char* strcpy(char *s, const char *t) { 6c: 48 89 e5 mov %rsp,%rbp char *os; os = s; while((*s++ = *t++) != 0) 6f: 8a 0c 16 mov (%rsi,%rdx,1),%cl 72: 88 0c 10 mov %cl,(%rax,%rdx,1) 75: 48 ff c2 inc %rdx 78: 84 c9 test %cl,%cl 7a: 75 f3 jne 6f <strcpy+0x9> ; return os; } 7c: 5d pop %rbp 7d: c3 retq 000000000000007e <strcmp>: int strcmp(const char *p, const char *q) { 7e: 55 push %rbp 7f: 48 89 e5 mov %rsp,%rbp while(*p && *p == *q) 82: 0f b6 07 movzbl (%rdi),%eax 85: 84 c0 test %al,%al 87: 74 0c je 95 <strcmp+0x17> 89: 3a 06 cmp (%rsi),%al 8b: 75 08 jne 95 <strcmp+0x17> p++, q++; 8d: 48 ff c7 inc %rdi 90: 48 ff c6 inc %rsi 93: eb ed jmp 82 <strcmp+0x4> return (uchar)*p - (uchar)*q; 95: 0f b6 16 movzbl (%rsi),%edx } 98: 5d pop %rbp int strcmp(const char *p, const char *q) { while(*p && *p == *q) p++, q++; return (uchar)*p - (uchar)*q; 99: 29 d0 sub %edx,%eax } 9b: c3 retq 000000000000009c <strlen>: uint strlen(const char *s) { 9c: 55 push %rbp int n; for(n = 0; s[n]; n++) 9d: 31 c0 xor %eax,%eax return (uchar)*p - (uchar)*q; } uint strlen(const char *s) { 9f: 48 89 e5 mov %rsp,%rbp a2: 48 8d 50 01 lea 0x1(%rax),%rdx int n; for(n = 0; s[n]; n++) a6: 80 7c 17 ff 00 cmpb $0x0,-0x1(%rdi,%rdx,1) ab: 74 05 je b2 <strlen+0x16> ad: 48 89 d0 mov %rdx,%rax b0: eb f0 jmp a2 <strlen+0x6> ; return n; } b2: 5d pop %rbp b3: c3 retq 00000000000000b4 <memset>: void* memset(void *dst, int c, uint n) { b4: 55 push %rbp b5: 49 89 f8 mov %rdi,%r8 } static inline void stosb(void *addr, int data, int cnt) { asm volatile("cld; rep stosb" : b8: 89 d1 mov %edx,%ecx ba: 89 f0 mov %esi,%eax bc: 48 89 e5 mov %rsp,%rbp bf: fc cld c0: f3 aa rep stos %al,%es:(%rdi) stosb(dst, c, n); return dst; } c2: 4c 89 c0 mov %r8,%rax c5: 5d pop %rbp c6: c3 retq 00000000000000c7 <strchr>: char* strchr(const char *s, char c) { c7: 55 push %rbp c8: 48 89 e5 mov %rsp,%rbp for(; *s; s++) cb: 8a 07 mov (%rdi),%al cd: 84 c0 test %al,%al cf: 74 0a je db <strchr+0x14> if(*s == c) d1: 40 38 f0 cmp %sil,%al d4: 74 09 je df <strchr+0x18> } char* strchr(const char *s, char c) { for(; *s; s++) d6: 48 ff c7 inc %rdi d9: eb f0 jmp cb <strchr+0x4> if(*s == c) return (char*)s; return 0; db: 31 c0 xor %eax,%eax dd: eb 03 jmp e2 <strchr+0x1b> df: 48 89 f8 mov %rdi,%rax } e2: 5d pop %rbp e3: c3 retq 00000000000000e4 <gets>: char* gets(char *buf, int max) { e4: 55 push %rbp e5: 48 89 e5 mov %rsp,%rbp e8: 41 57 push %r15 ea: 41 56 push %r14 ec: 41 55 push %r13 ee: 41 54 push %r12 f0: 41 89 f7 mov %esi,%r15d f3: 53 push %rbx f4: 49 89 fc mov %rdi,%r12 f7: 49 89 fe mov %rdi,%r14 int i, cc; char c; for(i=0; i+1 < max; ){ fa: 31 db xor %ebx,%ebx return 0; } char* gets(char *buf, int max) { fc: 48 83 ec 18 sub $0x18,%rsp int i, cc; char c; for(i=0; i+1 < max; ){ 100: 44 8d 6b 01 lea 0x1(%rbx),%r13d 104: 45 39 fd cmp %r15d,%r13d 107: 7d 2c jge 135 <gets+0x51> cc = read(0, &c, 1); 109: 48 8d 75 cf lea -0x31(%rbp),%rsi 10d: 31 ff xor %edi,%edi 10f: ba 01 00 00 00 mov $0x1,%edx 114: e8 ca 00 00 00 callq 1e3 <read> if(cc < 1) 119: 85 c0 test %eax,%eax 11b: 7e 18 jle 135 <gets+0x51> break; buf[i++] = c; 11d: 8a 45 cf mov -0x31(%rbp),%al 120: 49 ff c6 inc %r14 123: 49 63 dd movslq %r13d,%rbx 126: 41 88 46 ff mov %al,-0x1(%r14) if(c == '\n' || c == '\r') 12a: 3c 0a cmp $0xa,%al 12c: 74 04 je 132 <gets+0x4e> 12e: 3c 0d cmp $0xd,%al 130: 75 ce jne 100 <gets+0x1c> gets(char *buf, int max) { int i, cc; char c; for(i=0; i+1 < max; ){ 132: 49 63 dd movslq %r13d,%rbx break; buf[i++] = c; if(c == '\n' || c == '\r') break; } buf[i] = '\0'; 135: 41 c6 04 1c 00 movb $0x0,(%r12,%rbx,1) return buf; } 13a: 48 83 c4 18 add $0x18,%rsp 13e: 4c 89 e0 mov %r12,%rax 141: 5b pop %rbx 142: 41 5c pop %r12 144: 41 5d pop %r13 146: 41 5e pop %r14 148: 41 5f pop %r15 14a: 5d pop %rbp 14b: c3 retq 000000000000014c <stat>: int stat(const char *n, struct stat *st) { 14c: 55 push %rbp 14d: 48 89 e5 mov %rsp,%rbp 150: 41 54 push %r12 152: 53 push %rbx 153: 48 89 f3 mov %rsi,%rbx int fd; int r; fd = open(n, O_RDONLY); 156: 31 f6 xor %esi,%esi 158: e8 ae 00 00 00 callq 20b <open> 15d: 41 89 c4 mov %eax,%r12d 160: 83 c8 ff or $0xffffffff,%eax if(fd < 0) 163: 45 85 e4 test %r12d,%r12d 166: 78 17 js 17f <stat+0x33> return -1; r = fstat(fd, st); 168: 48 89 de mov %rbx,%rsi 16b: 44 89 e7 mov %r12d,%edi 16e: e8 b0 00 00 00 callq 223 <fstat> close(fd); 173: 44 89 e7 mov %r12d,%edi int r; fd = open(n, O_RDONLY); if(fd < 0) return -1; r = fstat(fd, st); 176: 89 c3 mov %eax,%ebx close(fd); 178: e8 76 00 00 00 callq 1f3 <close> return r; 17d: 89 d8 mov %ebx,%eax } 17f: 5b pop %rbx 180: 41 5c pop %r12 182: 5d pop %rbp 183: c3 retq 0000000000000184 <atoi>: int atoi(const char *s) { 184: 55 push %rbp int n; n = 0; 185: 31 c0 xor %eax,%eax return r; } int atoi(const char *s) { 187: 48 89 e5 mov %rsp,%rbp int n; n = 0; while('0' <= *s && *s <= '9') 18a: 0f be 17 movsbl (%rdi),%edx 18d: 8d 4a d0 lea -0x30(%rdx),%ecx 190: 80 f9 09 cmp $0x9,%cl 193: 77 0c ja 1a1 <atoi+0x1d> n = n*10 + *s++ - '0'; 195: 6b c0 0a imul $0xa,%eax,%eax 198: 48 ff c7 inc %rdi 19b: 8d 44 10 d0 lea -0x30(%rax,%rdx,1),%eax 19f: eb e9 jmp 18a <atoi+0x6> return n; } 1a1: 5d pop %rbp 1a2: c3 retq 00000000000001a3 <memmove>: void* memmove(void *vdst, const void *vsrc, int n) { 1a3: 55 push %rbp 1a4: 48 89 f8 mov %rdi,%rax char *dst; const char *src; dst = vdst; src = vsrc; while(n-- > 0) 1a7: 31 c9 xor %ecx,%ecx return n; } void* memmove(void *vdst, const void *vsrc, int n) { 1a9: 48 89 e5 mov %rsp,%rbp 1ac: 89 d7 mov %edx,%edi 1ae: 29 cf sub %ecx,%edi char *dst; const char *src; dst = vdst; src = vsrc; while(n-- > 0) 1b0: 85 ff test %edi,%edi 1b2: 7e 0d jle 1c1 <memmove+0x1e> *dst++ = *src++; 1b4: 40 8a 3c 0e mov (%rsi,%rcx,1),%dil 1b8: 40 88 3c 08 mov %dil,(%rax,%rcx,1) 1bc: 48 ff c1 inc %rcx 1bf: eb eb jmp 1ac <memmove+0x9> return vdst; } 1c1: 5d pop %rbp 1c2: c3 retq 00000000000001c3 <fork>: name: \ movl $SYS_ ## name, %eax; \ int $T_SYSCALL; \ ret SYSCALL(fork) 1c3: b8 01 00 00 00 mov $0x1,%eax 1c8: cd 40 int $0x40 1ca: c3 retq 00000000000001cb <exit>: SYSCALL(exit) 1cb: b8 02 00 00 00 mov $0x2,%eax 1d0: cd 40 int $0x40 1d2: c3 retq 00000000000001d3 <wait>: SYSCALL(wait) 1d3: b8 03 00 00 00 mov $0x3,%eax 1d8: cd 40 int $0x40 1da: c3 retq 00000000000001db <pipe>: SYSCALL(pipe) 1db: b8 04 00 00 00 mov $0x4,%eax 1e0: cd 40 int $0x40 1e2: c3 retq 00000000000001e3 <read>: SYSCALL(read) 1e3: b8 05 00 00 00 mov $0x5,%eax 1e8: cd 40 int $0x40 1ea: c3 retq 00000000000001eb <write>: SYSCALL(write) 1eb: b8 10 00 00 00 mov $0x10,%eax 1f0: cd 40 int $0x40 1f2: c3 retq 00000000000001f3 <close>: SYSCALL(close) 1f3: b8 15 00 00 00 mov $0x15,%eax 1f8: cd 40 int $0x40 1fa: c3 retq 00000000000001fb <kill>: SYSCALL(kill) 1fb: b8 06 00 00 00 mov $0x6,%eax 200: cd 40 int $0x40 202: c3 retq 0000000000000203 <exec>: SYSCALL(exec) 203: b8 07 00 00 00 mov $0x7,%eax 208: cd 40 int $0x40 20a: c3 retq 000000000000020b <open>: SYSCALL(open) 20b: b8 0f 00 00 00 mov $0xf,%eax 210: cd 40 int $0x40 212: c3 retq 0000000000000213 <mknod>: SYSCALL(mknod) 213: b8 11 00 00 00 mov $0x11,%eax 218: cd 40 int $0x40 21a: c3 retq 000000000000021b <unlink>: SYSCALL(unlink) 21b: b8 12 00 00 00 mov $0x12,%eax 220: cd 40 int $0x40 222: c3 retq 0000000000000223 <fstat>: SYSCALL(fstat) 223: b8 08 00 00 00 mov $0x8,%eax 228: cd 40 int $0x40 22a: c3 retq 000000000000022b <link>: SYSCALL(link) 22b: b8 13 00 00 00 mov $0x13,%eax 230: cd 40 int $0x40 232: c3 retq 0000000000000233 <mkdir>: SYSCALL(mkdir) 233: b8 14 00 00 00 mov $0x14,%eax 238: cd 40 int $0x40 23a: c3 retq 000000000000023b <chdir>: SYSCALL(chdir) 23b: b8 09 00 00 00 mov $0x9,%eax 240: cd 40 int $0x40 242: c3 retq 0000000000000243 <dup>: SYSCALL(dup) 243: b8 0a 00 00 00 mov $0xa,%eax 248: cd 40 int $0x40 24a: c3 retq 000000000000024b <getpid>: SYSCALL(getpid) 24b: b8 0b 00 00 00 mov $0xb,%eax 250: cd 40 int $0x40 252: c3 retq 0000000000000253 <sbrk>: SYSCALL(sbrk) 253: b8 0c 00 00 00 mov $0xc,%eax 258: cd 40 int $0x40 25a: c3 retq 000000000000025b <sleep>: SYSCALL(sleep) 25b: b8 0d 00 00 00 mov $0xd,%eax 260: cd 40 int $0x40 262: c3 retq 0000000000000263 <uptime>: SYSCALL(uptime) 263: b8 0e 00 00 00 mov $0xe,%eax 268: cd 40 int $0x40 26a: c3 retq 000000000000026b <chmod>: SYSCALL(chmod) 26b: b8 16 00 00 00 mov $0x16,%eax 270: cd 40 int $0x40 272: c3 retq 0000000000000273 <printint>: write(fd, &c, 1); } static void printint(int fd, int xx, int base, int sgn) { 273: 55 push %rbp 274: 41 89 d0 mov %edx,%r8d 277: 48 89 e5 mov %rsp,%rbp 27a: 41 54 push %r12 27c: 53 push %rbx 27d: 41 89 fc mov %edi,%r12d 280: 48 83 ec 20 sub $0x20,%rsp char buf[16]; int i, neg; uint x; neg = 0; if(sgn && xx < 0){ 284: 85 c9 test %ecx,%ecx 286: 74 12 je 29a <printint+0x27> 288: 89 f0 mov %esi,%eax 28a: c1 e8 1f shr $0x1f,%eax 28d: 74 0b je 29a <printint+0x27> neg = 1; x = -xx; 28f: 89 f0 mov %esi,%eax int i, neg; uint x; neg = 0; if(sgn && xx < 0){ neg = 1; 291: be 01 00 00 00 mov $0x1,%esi x = -xx; 296: f7 d8 neg %eax 298: eb 04 jmp 29e <printint+0x2b> } else { x = xx; 29a: 89 f0 mov %esi,%eax static char digits[] = "0123456789ABCDEF"; char buf[16]; int i, neg; uint x; neg = 0; 29c: 31 f6 xor %esi,%esi 29e: 48 8d 7d e0 lea -0x20(%rbp),%rdi x = -xx; } else { x = xx; } i = 0; 2a2: 31 c9 xor %ecx,%ecx do{ buf[i++] = digits[x % base]; 2a4: 31 d2 xor %edx,%edx 2a6: 48 ff c7 inc %rdi 2a9: 8d 59 01 lea 0x1(%rcx),%ebx 2ac: 41 f7 f0 div %r8d 2af: 89 d2 mov %edx,%edx 2b1: 8a 92 80 06 00 00 mov 0x680(%rdx),%dl 2b7: 88 57 ff mov %dl,-0x1(%rdi) }while((x /= base) != 0); 2ba: 85 c0 test %eax,%eax 2bc: 74 04 je 2c2 <printint+0x4f> x = xx; } i = 0; do{ buf[i++] = digits[x % base]; 2be: 89 d9 mov %ebx,%ecx 2c0: eb e2 jmp 2a4 <printint+0x31> }while((x /= base) != 0); if(neg) 2c2: 85 f6 test %esi,%esi 2c4: 74 0b je 2d1 <printint+0x5e> buf[i++] = '-'; 2c6: 48 63 db movslq %ebx,%rbx 2c9: c6 44 1d e0 2d movb $0x2d,-0x20(%rbp,%rbx,1) 2ce: 8d 59 02 lea 0x2(%rcx),%ebx while(--i >= 0) 2d1: ff cb dec %ebx 2d3: 83 fb ff cmp $0xffffffff,%ebx 2d6: 74 1d je 2f5 <printint+0x82> putc(fd, buf[i]); 2d8: 48 63 c3 movslq %ebx,%rax #include "user.h" static void putc(int fd, char c) { write(fd, &c, 1); 2db: 48 8d 75 df lea -0x21(%rbp),%rsi 2df: ba 01 00 00 00 mov $0x1,%edx 2e4: 8a 44 05 e0 mov -0x20(%rbp,%rax,1),%al 2e8: 44 89 e7 mov %r12d,%edi 2eb: 88 45 df mov %al,-0x21(%rbp) 2ee: e8 f8 fe ff ff callq 1eb <write> 2f3: eb dc jmp 2d1 <printint+0x5e> if(neg) buf[i++] = '-'; while(--i >= 0) putc(fd, buf[i]); } 2f5: 48 83 c4 20 add $0x20,%rsp 2f9: 5b pop %rbx 2fa: 41 5c pop %r12 2fc: 5d pop %rbp 2fd: c3 retq 00000000000002fe <printf>: // Print to the given fd. Only understands %d, %x, %p, %s. void printf(int fd, char *fmt, ...) { 2fe: 55 push %rbp 2ff: 48 89 e5 mov %rsp,%rbp 302: 41 56 push %r14 304: 41 55 push %r13 va_list ap; char *s; int c, i, state; va_start(ap, fmt); 306: 48 8d 45 10 lea 0x10(%rbp),%rax } // Print to the given fd. Only understands %d, %x, %p, %s. void printf(int fd, char *fmt, ...) { 30a: 41 54 push %r12 30c: 53 push %rbx 30d: 41 89 fc mov %edi,%r12d 310: 49 89 f6 mov %rsi,%r14 va_list ap; char *s; int c, i, state; va_start(ap, fmt); state = 0; 313: 31 db xor %ebx,%ebx } // Print to the given fd. Only understands %d, %x, %p, %s. void printf(int fd, char *fmt, ...) { 315: 48 83 ec 50 sub $0x50,%rsp va_list ap; char *s; int c, i, state; va_start(ap, fmt); 319: 48 89 45 a0 mov %rax,-0x60(%rbp) 31d: 48 8d 45 b0 lea -0x50(%rbp),%rax } // Print to the given fd. Only understands %d, %x, %p, %s. void printf(int fd, char *fmt, ...) { 321: 48 89 55 c0 mov %rdx,-0x40(%rbp) 325: 48 89 4d c8 mov %rcx,-0x38(%rbp) 329: 4c 89 45 d0 mov %r8,-0x30(%rbp) 32d: 4c 89 4d d8 mov %r9,-0x28(%rbp) va_list ap; char *s; int c, i, state; va_start(ap, fmt); 331: c7 45 98 10 00 00 00 movl $0x10,-0x68(%rbp) 338: 48 89 45 a8 mov %rax,-0x58(%rbp) state = 0; for(i = 0; fmt[i]; i++){ 33c: 45 8a 2e mov (%r14),%r13b 33f: 45 84 ed test %r13b,%r13b 342: 0f 84 8f 01 00 00 je 4d7 <printf+0x1d9> c = fmt[i] & 0xff; if(state == 0){ 348: 85 db test %ebx,%ebx int c, i, state; va_start(ap, fmt); state = 0; for(i = 0; fmt[i]; i++){ c = fmt[i] & 0xff; 34a: 41 0f be d5 movsbl %r13b,%edx 34e: 41 0f b6 c5 movzbl %r13b,%eax if(state == 0){ 352: 75 23 jne 377 <printf+0x79> if(c == '%'){ 354: 83 f8 25 cmp $0x25,%eax 357: 0f 84 6d 01 00 00 je 4ca <printf+0x1cc> #include "user.h" static void putc(int fd, char c) { write(fd, &c, 1); 35d: 48 8d 75 92 lea -0x6e(%rbp),%rsi 361: ba 01 00 00 00 mov $0x1,%edx 366: 44 89 e7 mov %r12d,%edi 369: 44 88 6d 92 mov %r13b,-0x6e(%rbp) 36d: e8 79 fe ff ff callq 1eb <write> 372: e9 58 01 00 00 jmpq 4cf <printf+0x1d1> if(c == '%'){ state = '%'; } else { putc(fd, c); } } else if(state == '%'){ 377: 83 fb 25 cmp $0x25,%ebx 37a: 0f 85 4f 01 00 00 jne 4cf <printf+0x1d1> if(c == 'd'){ 380: 83 f8 64 cmp $0x64,%eax 383: 75 2e jne 3b3 <printf+0xb5> printint(fd, va_arg(ap, int), 10, 1); 385: 8b 55 98 mov -0x68(%rbp),%edx 388: 83 fa 2f cmp $0x2f,%edx 38b: 77 0e ja 39b <printf+0x9d> 38d: 89 d0 mov %edx,%eax 38f: 83 c2 08 add $0x8,%edx 392: 48 03 45 a8 add -0x58(%rbp),%rax 396: 89 55 98 mov %edx,-0x68(%rbp) 399: eb 0c jmp 3a7 <printf+0xa9> 39b: 48 8b 45 a0 mov -0x60(%rbp),%rax 39f: 48 8d 50 08 lea 0x8(%rax),%rdx 3a3: 48 89 55 a0 mov %rdx,-0x60(%rbp) 3a7: b9 01 00 00 00 mov $0x1,%ecx 3ac: ba 0a 00 00 00 mov $0xa,%edx 3b1: eb 34 jmp 3e7 <printf+0xe9> } else if(c == 'x' || c == 'p'){ 3b3: 81 e2 f7 00 00 00 and $0xf7,%edx 3b9: 83 fa 70 cmp $0x70,%edx 3bc: 75 38 jne 3f6 <printf+0xf8> printint(fd, va_arg(ap, int), 16, 0); 3be: 8b 55 98 mov -0x68(%rbp),%edx 3c1: 83 fa 2f cmp $0x2f,%edx 3c4: 77 0e ja 3d4 <printf+0xd6> 3c6: 89 d0 mov %edx,%eax 3c8: 83 c2 08 add $0x8,%edx 3cb: 48 03 45 a8 add -0x58(%rbp),%rax 3cf: 89 55 98 mov %edx,-0x68(%rbp) 3d2: eb 0c jmp 3e0 <printf+0xe2> 3d4: 48 8b 45 a0 mov -0x60(%rbp),%rax 3d8: 48 8d 50 08 lea 0x8(%rax),%rdx 3dc: 48 89 55 a0 mov %rdx,-0x60(%rbp) 3e0: 31 c9 xor %ecx,%ecx 3e2: ba 10 00 00 00 mov $0x10,%edx 3e7: 8b 30 mov (%rax),%esi 3e9: 44 89 e7 mov %r12d,%edi 3ec: e8 82 fe ff ff callq 273 <printint> 3f1: e9 d0 00 00 00 jmpq 4c6 <printf+0x1c8> } else if(c == 's'){ 3f6: 83 f8 73 cmp $0x73,%eax 3f9: 75 56 jne 451 <printf+0x153> s = va_arg(ap, char*); 3fb: 8b 55 98 mov -0x68(%rbp),%edx 3fe: 83 fa 2f cmp $0x2f,%edx 401: 77 0e ja 411 <printf+0x113> 403: 89 d0 mov %edx,%eax 405: 83 c2 08 add $0x8,%edx 408: 48 03 45 a8 add -0x58(%rbp),%rax 40c: 89 55 98 mov %edx,-0x68(%rbp) 40f: eb 0c jmp 41d <printf+0x11f> 411: 48 8b 45 a0 mov -0x60(%rbp),%rax 415: 48 8d 50 08 lea 0x8(%rax),%rdx 419: 48 89 55 a0 mov %rdx,-0x60(%rbp) 41d: 48 8b 18 mov (%rax),%rbx if(s == 0) s = "(null)"; 420: 48 c7 c0 73 06 00 00 mov $0x673,%rax 427: 48 85 db test %rbx,%rbx 42a: 48 0f 44 d8 cmove %rax,%rbx while(*s != 0){ 42e: 8a 03 mov (%rbx),%al 430: 84 c0 test %al,%al 432: 0f 84 8e 00 00 00 je 4c6 <printf+0x1c8> #include "user.h" static void putc(int fd, char c) { write(fd, &c, 1); 438: 48 8d 75 93 lea -0x6d(%rbp),%rsi 43c: ba 01 00 00 00 mov $0x1,%edx 441: 44 89 e7 mov %r12d,%edi 444: 88 45 93 mov %al,-0x6d(%rbp) s = va_arg(ap, char*); if(s == 0) s = "(null)"; while(*s != 0){ putc(fd, *s); s++; 447: 48 ff c3 inc %rbx #include "user.h" static void putc(int fd, char c) { write(fd, &c, 1); 44a: e8 9c fd ff ff callq 1eb <write> 44f: eb dd jmp 42e <printf+0x130> s = "(null)"; while(*s != 0){ putc(fd, *s); s++; } } else if(c == 'c'){ 451: 83 f8 63 cmp $0x63,%eax 454: 75 32 jne 488 <printf+0x18a> putc(fd, va_arg(ap, uint)); 456: 8b 55 98 mov -0x68(%rbp),%edx 459: 83 fa 2f cmp $0x2f,%edx 45c: 77 0e ja 46c <printf+0x16e> 45e: 89 d0 mov %edx,%eax 460: 83 c2 08 add $0x8,%edx 463: 48 03 45 a8 add -0x58(%rbp),%rax 467: 89 55 98 mov %edx,-0x68(%rbp) 46a: eb 0c jmp 478 <printf+0x17a> 46c: 48 8b 45 a0 mov -0x60(%rbp),%rax 470: 48 8d 50 08 lea 0x8(%rax),%rdx 474: 48 89 55 a0 mov %rdx,-0x60(%rbp) 478: 8b 00 mov (%rax),%eax #include "user.h" static void putc(int fd, char c) { write(fd, &c, 1); 47a: ba 01 00 00 00 mov $0x1,%edx 47f: 48 8d 75 94 lea -0x6c(%rbp),%rsi 483: 88 45 94 mov %al,-0x6c(%rbp) 486: eb 36 jmp 4be <printf+0x1c0> putc(fd, *s); s++; } } else if(c == 'c'){ putc(fd, va_arg(ap, uint)); } else if(c == '%'){ 488: 83 f8 25 cmp $0x25,%eax 48b: 75 0f jne 49c <printf+0x19e> 48d: 44 88 6d 95 mov %r13b,-0x6b(%rbp) #include "user.h" static void putc(int fd, char c) { write(fd, &c, 1); 491: ba 01 00 00 00 mov $0x1,%edx 496: 48 8d 75 95 lea -0x6b(%rbp),%rsi 49a: eb 22 jmp 4be <printf+0x1c0> 49c: 48 8d 75 97 lea -0x69(%rbp),%rsi 4a0: ba 01 00 00 00 mov $0x1,%edx 4a5: 44 89 e7 mov %r12d,%edi 4a8: c6 45 97 25 movb $0x25,-0x69(%rbp) 4ac: e8 3a fd ff ff callq 1eb <write> 4b1: 48 8d 75 96 lea -0x6a(%rbp),%rsi 4b5: 44 88 6d 96 mov %r13b,-0x6a(%rbp) 4b9: ba 01 00 00 00 mov $0x1,%edx 4be: 44 89 e7 mov %r12d,%edi 4c1: e8 25 fd ff ff callq 1eb <write> } else { // Unknown % sequence. Print it to draw attention. putc(fd, '%'); putc(fd, c); } state = 0; 4c6: 31 db xor %ebx,%ebx 4c8: eb 05 jmp 4cf <printf+0x1d1> state = 0; for(i = 0; fmt[i]; i++){ c = fmt[i] & 0xff; if(state == 0){ if(c == '%'){ state = '%'; 4ca: bb 25 00 00 00 mov $0x25,%ebx 4cf: 49 ff c6 inc %r14 4d2: e9 65 fe ff ff jmpq 33c <printf+0x3e> putc(fd, c); } state = 0; } } } 4d7: 48 83 c4 50 add $0x50,%rsp 4db: 5b pop %rbx 4dc: 41 5c pop %r12 4de: 41 5d pop %r13 4e0: 41 5e pop %r14 4e2: 5d pop %rbp 4e3: c3 retq 00000000000004e4 <free>: static Header base; static Header *freep; void free(void *ap) { 4e4: 55 push %rbp Header *bp, *p; bp = (Header*)ap - 1; for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) 4e5: 48 8b 05 d4 03 00 00 mov 0x3d4(%rip),%rax # 8c0 <__bss_start> void free(void *ap) { Header *bp, *p; bp = (Header*)ap - 1; 4ec: 48 8d 57 f0 lea -0x10(%rdi),%rdx static Header base; static Header *freep; void free(void *ap) { 4f0: 48 89 e5 mov %rsp,%rbp Header *bp, *p; bp = (Header*)ap - 1; for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) 4f3: 48 39 d0 cmp %rdx,%rax 4f6: 48 8b 08 mov (%rax),%rcx 4f9: 72 14 jb 50f <free+0x2b> if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) 4fb: 48 39 c8 cmp %rcx,%rax 4fe: 72 0a jb 50a <free+0x26> 500: 48 39 ca cmp %rcx,%rdx 503: 72 0f jb 514 <free+0x30> 505: 48 39 d0 cmp %rdx,%rax 508: 72 0a jb 514 <free+0x30> static Header base; static Header *freep; void free(void *ap) { 50a: 48 89 c8 mov %rcx,%rax 50d: eb e4 jmp 4f3 <free+0xf> Header *bp, *p; bp = (Header*)ap - 1; for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) 50f: 48 39 ca cmp %rcx,%rdx 512: 73 e7 jae 4fb <free+0x17> if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) break; if(bp + bp->s.size == p->s.ptr){ 514: 8b 77 f8 mov -0x8(%rdi),%esi 517: 49 89 f0 mov %rsi,%r8 51a: 48 c1 e6 04 shl $0x4,%rsi 51e: 48 01 d6 add %rdx,%rsi 521: 48 39 ce cmp %rcx,%rsi 524: 75 0e jne 534 <free+0x50> bp->s.size += p->s.ptr->s.size; 526: 44 03 41 08 add 0x8(%rcx),%r8d 52a: 44 89 47 f8 mov %r8d,-0x8(%rdi) bp->s.ptr = p->s.ptr->s.ptr; 52e: 48 8b 08 mov (%rax),%rcx 531: 48 8b 09 mov (%rcx),%rcx } else bp->s.ptr = p->s.ptr; 534: 48 89 4f f0 mov %rcx,-0x10(%rdi) if(p + p->s.size == bp){ 538: 8b 48 08 mov 0x8(%rax),%ecx 53b: 48 89 ce mov %rcx,%rsi 53e: 48 c1 e1 04 shl $0x4,%rcx 542: 48 01 c1 add %rax,%rcx 545: 48 39 ca cmp %rcx,%rdx 548: 75 0a jne 554 <free+0x70> p->s.size += bp->s.size; 54a: 03 77 f8 add -0x8(%rdi),%esi 54d: 89 70 08 mov %esi,0x8(%rax) p->s.ptr = bp->s.ptr; 550: 48 8b 57 f0 mov -0x10(%rdi),%rdx } else p->s.ptr = bp; 554: 48 89 10 mov %rdx,(%rax) freep = p; 557: 48 89 05 62 03 00 00 mov %rax,0x362(%rip) # 8c0 <__bss_start> } 55e: 5d pop %rbp 55f: c3 retq 0000000000000560 <malloc>: return freep; } void* malloc(uint nbytes) { 560: 55 push %rbp 561: 48 89 e5 mov %rsp,%rbp 564: 41 55 push %r13 566: 41 54 push %r12 568: 53 push %rbx Header *p, *prevp; uint nunits; nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1; 569: 89 fb mov %edi,%ebx return freep; } void* malloc(uint nbytes) { 56b: 51 push %rcx Header *p, *prevp; uint nunits; nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1; if((prevp = freep) == 0){ 56c: 48 8b 0d 4d 03 00 00 mov 0x34d(%rip),%rcx # 8c0 <__bss_start> malloc(uint nbytes) { Header *p, *prevp; uint nunits; nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1; 573: 48 83 c3 0f add $0xf,%rbx 577: 48 c1 eb 04 shr $0x4,%rbx 57b: ff c3 inc %ebx if((prevp = freep) == 0){ 57d: 48 85 c9 test %rcx,%rcx 580: 75 27 jne 5a9 <malloc+0x49> base.s.ptr = freep = prevp = &base; 582: 48 c7 05 33 03 00 00 movq $0x8d0,0x333(%rip) # 8c0 <__bss_start> 589: d0 08 00 00 58d: 48 c7 05 38 03 00 00 movq $0x8d0,0x338(%rip) # 8d0 <base> 594: d0 08 00 00 598: 48 c7 c1 d0 08 00 00 mov $0x8d0,%rcx base.s.size = 0; 59f: c7 05 2f 03 00 00 00 movl $0x0,0x32f(%rip) # 8d8 <base+0x8> 5a6: 00 00 00 5a9: 81 fb 00 10 00 00 cmp $0x1000,%ebx 5af: 41 bc 00 10 00 00 mov $0x1000,%r12d } for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){ 5b5: 48 8b 01 mov (%rcx),%rax 5b8: 44 0f 43 e3 cmovae %ebx,%r12d char *p; Header *hp; if(nu < 4096) nu = 4096; p = sbrk(nu * sizeof(Header)); 5bc: 45 89 e5 mov %r12d,%r13d 5bf: 41 c1 e5 04 shl $0x4,%r13d if((prevp = freep) == 0){ base.s.ptr = freep = prevp = &base; base.s.size = 0; } for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){ if(p->s.size >= nunits){ 5c3: 8b 50 08 mov 0x8(%rax),%edx 5c6: 39 d3 cmp %edx,%ebx 5c8: 77 26 ja 5f0 <malloc+0x90> if(p->s.size == nunits) 5ca: 75 08 jne 5d4 <malloc+0x74> prevp->s.ptr = p->s.ptr; 5cc: 48 8b 10 mov (%rax),%rdx 5cf: 48 89 11 mov %rdx,(%rcx) 5d2: eb 0f jmp 5e3 <malloc+0x83> else { p->s.size -= nunits; 5d4: 29 da sub %ebx,%edx 5d6: 89 50 08 mov %edx,0x8(%rax) p += p->s.size; 5d9: 48 c1 e2 04 shl $0x4,%rdx 5dd: 48 01 d0 add %rdx,%rax p->s.size = nunits; 5e0: 89 58 08 mov %ebx,0x8(%rax) } freep = prevp; 5e3: 48 89 0d d6 02 00 00 mov %rcx,0x2d6(%rip) # 8c0 <__bss_start> return (void*)(p + 1); 5ea: 48 83 c0 10 add $0x10,%rax 5ee: eb 3a jmp 62a <malloc+0xca> } if(p == freep) 5f0: 48 3b 05 c9 02 00 00 cmp 0x2c9(%rip),%rax # 8c0 <__bss_start> 5f7: 75 27 jne 620 <malloc+0xc0> char *p; Header *hp; if(nu < 4096) nu = 4096; p = sbrk(nu * sizeof(Header)); 5f9: 44 89 ef mov %r13d,%edi 5fc: e8 52 fc ff ff callq 253 <sbrk> if(p == (char*)-1) 601: 48 83 f8 ff cmp $0xffffffffffffffff,%rax 605: 74 21 je 628 <malloc+0xc8> return 0; hp = (Header*)p; hp->s.size = nu; free((void*)(hp + 1)); 607: 48 8d 78 10 lea 0x10(%rax),%rdi nu = 4096; p = sbrk(nu * sizeof(Header)); if(p == (char*)-1) return 0; hp = (Header*)p; hp->s.size = nu; 60b: 44 89 60 08 mov %r12d,0x8(%rax) free((void*)(hp + 1)); 60f: e8 d0 fe ff ff callq 4e4 <free> return freep; 614: 48 8b 05 a5 02 00 00 mov 0x2a5(%rip),%rax # 8c0 <__bss_start> } freep = prevp; return (void*)(p + 1); } if(p == freep) if((p = morecore(nunits)) == 0) 61b: 48 85 c0 test %rax,%rax 61e: 74 08 je 628 <malloc+0xc8> return 0; } 620: 48 89 c1 mov %rax,%rcx nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1; if((prevp = freep) == 0){ base.s.ptr = freep = prevp = &base; base.s.size = 0; } for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){ 623: 48 8b 00 mov (%rax),%rax return (void*)(p + 1); } if(p == freep) if((p = morecore(nunits)) == 0) return 0; } 626: eb 9b jmp 5c3 <malloc+0x63> freep = prevp; return (void*)(p + 1); } if(p == freep) if((p = morecore(nunits)) == 0) return 0; 628: 31 c0 xor %eax,%eax } } 62a: 5a pop %rdx 62b: 5b pop %rbx 62c: 41 5c pop %r12 62e: 41 5d pop %r13 630: 5d pop %rbp 631: c3 retq
oeis/134/A134013.asm
neoneye/loda-programs
11
12023
; A134013: Expansion of q * phi(q) * psi(q^8) in powers of q where phi(), psi() are Ramanujan theta functions. ; Submitted by <NAME> ; 1,2,0,0,2,0,0,0,1,4,0,0,2,0,0,0,2,2,0,0,0,0,0,0,3,4,0,0,2,0,0,0,0,4,0,0,2,0,0,0,2,0,0,0,2,0,0,0,1,6,0,0,2,0,0,0,0,4,0,0,2,0,0,0,4,0,0,0,0,0,0,0,2,4,0,0,0,0,0,0,1,4,0,0,4,0,0,0,2,4,0,0,0,0,0,0,2,2,0,0 mov $1,$0 add $0,1 mod $0,4 seq $1,105673 ; One-half of theta series of square lattice (or half the number of ways of writing n > 0 as a sum of 2 squares), without the constant term, which is 1/2. mul $0,$1 div $0,2
src/main/fragment/mos6502-common/_deref_pwsz1=_deref_pwsz1_rol_1.asm
jbrandwood/kickc
2
91741
<reponame>jbrandwood/kickc<filename>src/main/fragment/mos6502-common/_deref_pwsz1=_deref_pwsz1_rol_1.asm ldy #0 lda ({z1}),y asl sta ({z1}),y iny lda ({z1}),y rol sta ({z1}),y
oeis/093/A093119.asm
neoneye/loda-programs
11
166147
<filename>oeis/093/A093119.asm ; A093119: Number of convex polyominoes with a 3 X n+1 minimal bounding rectangle. ; 13,68,222,555,1171,2198,3788,6117,9385,13816,19658,27183,36687,48490,62936,80393,101253,125932,154870,188531,227403,271998,322852,380525,445601,518688,600418,691447,792455,904146,1027248,1162513,1310717,1472660,1649166,1841083,2049283,2274662,2518140,2780661,3063193,3366728,3692282,4040895,4413631,4811578,5235848,5687577,6167925,6678076,7219238,7792643,8399547,9041230,9718996,10434173,11188113,11982192,12817810,13696391,14619383,15588258,16604512,17669665,18785261,19952868,21174078,22450507 mov $1,5 mov $2,3 mov $6,3 mov $7,$0 lpb $0 add $2,$1 mov $1,9 add $2,8 add $6,3 add $6,$0 sub $0,1 add $2,$6 sub $6,1 lpe add $2,8 add $1,$2 sub $1,3 mov $3,4 mov $8,$7 lpb $3 add $1,$8 sub $3,1 lpe mov $4,$7 lpb $4 sub $4,1 add $5,$8 lpe mov $3,19 mov $8,$5 lpb $3 add $1,$8 sub $3,1 lpe mov $4,$7 mov $5,0 lpb $4 sub $4,1 add $5,$8 lpe mov $3,7 mov $8,$5 lpb $3 add $1,$8 sub $3,1 lpe mov $4,$7 mov $5,0 lpb $4 sub $4,1 add $5,$8 lpe mov $3,1 mov $8,$5 lpb $3 add $1,$8 sub $3,1 lpe mov $0,$1
oeis/295/A295861.asm
neoneye/loda-programs
11
88451
<filename>oeis/295/A295861.asm ; A295861: a(n) = a(n-1) + 3*a(n-2) -2*a(n-3) - 2*a(n-4), where a(0) = -2, a(1) = -1, a(2) = 0, a(3) = 1. ; Submitted by <NAME> ; -2,-1,0,1,7,12,31,51,106,173,327,532,955,1551,2698,4377,7459,12092,20319,32923,54778,88725,146575,237348,390067,631511,1033866,1673569,2732011,4421964,7203127,11657859,18959290,30682685,49838583,80652340,130884139,211798623,343469194,555792105,900834163,1457674844,2361654735,3821426731,6189372922,10014993957,16216949791,26240332356,42482447971,68739557543,111272337162,180045449137,291418449595,471531007596,763150783783,1234816009107,1998369446074,3233453890637,5232628643079,8466619404628 mov $4,-2 lpb $0 sub $0,1 sub $2,$1 add $1,$3 add $3,2 mul $4,2 sub $4,$5 add $4,$2 mov $5,$4 mov $4,$2 mov $2,$3 add $4,$1 add $5,$4 mov $3,$5 lpe mul $4,4 sub $4,$1 add $5,$4 mov $0,$5 div $0,4
source/resolver/program-resolvers-name_in_region.adb
reznikmm/gela
0
25495
<filename>source/resolver/program-resolvers-name_in_region.adb -- SPDX-FileCopyrightText: 2021 <NAME> <<EMAIL>> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with Program.Cross_Reference_Updaters; with Program.Elements.Identifiers; with Program.Node_Symbols; with Program.Simple_Resolvers; with Program.Symbols; package body Program.Resolvers.Name_In_Region is type Resolver is limited new Program.Simple_Resolvers.Simple_Resolver with record Region : Program.Visibility.View; end record; overriding procedure Resolve_Identifier (Self : Resolver; Name : not null Program.Elements.Identifiers.Identifier_Access; Setter : not null Program.Cross_Reference_Updaters .Cross_Reference_Updater_Access); ------------------------ -- Resolve_Identifier -- ------------------------ overriding procedure Resolve_Identifier (Self : Resolver; Name : not null Program.Elements.Identifiers.Identifier_Access; Setter : not null Program.Cross_Reference_Updaters .Cross_Reference_Updater_Access) is Symbol : constant Program.Symbols.Symbol := Program.Node_Symbols.Get_Symbol (Name); begin for J in Program.Visibility.Immediate_Visible (Self.Region, Symbol) loop declare use type Program.Visibility.View_Cursor; View : constant Program.Visibility.View := +J; begin Setter.Set_Corresponding_Defining_Name (Name => Name.To_Element, Def => Program.Visibility.Name (View)); exit; end; end loop; end Resolve_Identifier; ------------------ -- Resolve_Name -- ------------------ procedure Resolve_Name (Region : Program.Visibility.View; Name : Program.Elements.Expressions.Expression_Access; Setter : not null Program.Cross_Reference_Updaters .Cross_Reference_Updater_Access) is R : aliased Resolver := (Region => Region); begin R.Resolve (Name, Setter); end Resolve_Name; end Program.Resolvers.Name_In_Region;
oeis/022/A022115.asm
neoneye/loda-programs
11
168006
<filename>oeis/022/A022115.asm ; A022115: Fibonacci sequence beginning 2, 11. ; Submitted by <NAME>(s4) ; 2,11,13,24,37,61,98,159,257,416,673,1089,1762,2851,4613,7464,12077,19541,31618,51159,82777,133936,216713,350649,567362,918011,1485373,2403384,3888757,6292141,10180898,16473039,26653937,43126976,69780913,112907889,182688802,295596691,478285493,773882184,1252167677,2026049861,3278217538,5304267399,8582484937,13886752336,22469237273,36355989609,58825226882,95181216491,154006443373,249187659864,403194103237,652381763101,1055575866338,1707957629439,2763533495777,4471491125216,7235024620993 mov $1,2 mov $2,9 lpb $0 sub $0,1 mov $3,$2 mov $2,$1 add $1,$3 lpe mov $0,$1
work/ff3_info_window.asm
ypyp-pprn-mnmn/ff3_hack
4
7167
<reponame>ypyp-pprn-mnmn/ff3_hack<filename>work/ff3_info_window.asm ; ff3_info_window ; ;description: ; replaces code for information window (larger window on the bottom right) ; ;version: ; 0.01 (2006-10-24) ; ;====================================================================================================== ff3_info_window_begin: INIT_PATCH $34,$9ba2,$9ce3 drawInfoWindow: .iPlayer = $52 .pBaseParam = $57 .pBattleParam = $5b .commandIds = $78cf lda $7ceb beq .continue_process lda #0 sta $7ceb rts .continue_process: jsr initTileArrayStorage ;INIT16 $720a,$7977 INIT16 TILE_ARRAY_BASE+$0a,$7977 ;'H' 'P' lda <.iPlayer pha ldx #0 .for_each_player: stx <.iPlayer ldx #$12 jsr initString ;$7ae3 = #c7; jsr getPlayerOffset ;a541 clc adc #$0b tay ldx #6 .copy_name: lda [.pBaseParam],y sta stringCache,x dey dex bne .copy_name ldx #7+4 lda #3 jsr getStringFromValueAt ;ex ;lda #0 ;sta <$24 jsr cachePlayerStatus ;9d1d lda $7ce8 cmp #$ff beq .show_maxhp ldx <.iPlayer lda .commandIds,x cmp #$ff beq .check_status cmp #$c8 bcc .not_magic .action_is_magic: INIT16_x <$18, ($8990 - $c8 * 2) ldx #$0c bne .load_string .not_magic: .ifdef ENABLE_EXTRA_ABILITY jsr getExtraAbilityNameId .endif ;ENABLE_EXTRA_ABILITY INIT16_x <$18, $8c40 ldx #$0d bne .load_string .check_status: lda <$1b ora <$1a beq .show_maxhp lda <$1b and #$20 beq .status_bit_to_index lda <$1b and #$df sta <$1b ora <$1a beq .show_maxhp .status_bit_to_index: ldy #0 .find_index: asl <$1b rol <$1a bcs .got_index iny bcc .find_index .got_index: INIT16_x <$18,$822c tya ldx #$0d ;bne .load_string .load_string: jsr loadString jmp .to_tiles ;$9c7f: .show_maxhp: lda $7ce8 cmp #$ff beq .get_maxhp lda $7be1 ldx <.iPlayer jsr maskTargetBit beq .get_maxhp lda .commandIds,x bne .action_is_magic .get_maxhp: ldx #$10 lda #5 jsr getStringFromValueAt ;$9cba: ;$7ae3 = #c7; .to_tiles: lda #$c7 sta stringCache+$0c lda #$12 sta <$18 jsr strToTileArray lda #$12 jsr offsetTilePtr ldx <.iPlayer inx cpx #4 beq .finish jmp .for_each_player ;$9cd1: .finish: pla sta <.iPlayer lda #$0b sta <$18 lda #$1e sta <$19 lda #$03 sta <$1a jmp draw8LineWindow ;------------------------------------------------------------------------------------------------------ getStringFromValueAt: ;[in] x = dest end offset ;[in] a = offset to value .pBattleParam = $5b jsr setYtoOffsetOf lda [.pBattleParam],y sta <$18 iny lda [.pBattleParam],y sta <$19 txa pha jsr itoa_16 ;95e1 pla tay ldx #3 .copy: lda <$1b,x sta stringCache,y dey dex bpl .copy rts infoWindow_free_begin: infoWindow_free_end = $9ce3 ;------------------------------------------------------------------------------------------------------ ;$9ce3 ;====================================================================================================== RESTORE_PC ff3_info_window_begin
src/Categories/Category/WithFamilies.agda
bblfish/agda-categories
5
3477
{-# OPTIONS --without-K --safe #-} module Categories.Category.WithFamilies where -- Category With Families (as model of dependent type theory) -- see https://ncatlab.org/nlab/show/categorical+model+of+dependent+types#categories_with_families -- for more details. open import Level open import Relation.Binary.PropositionalEquality as ≡ using (_≡_) open import Categories.Category open import Categories.Functor open import Categories.NaturalTransformation.NaturalIsomorphism open import Categories.Object.Terminal open import Categories.Category.Instance.FamilyOfSets open import Categories.Functor.Presheaf open import Categories.Category.Slice open import Categories.Category.Instance.Sets private variable o ℓ e a b : Level -- We want to re-interpret the members of C as -- the various parts of a type theory -- Context, types, terms, etc. module UnpackFam {C : Category o ℓ e} (T : Presheaf C (FamilyOfSets a b)) where private module C = Category C module T = Functor T Context : Set o Context = C.Obj Ty : C.Obj → Set a Ty Γ = Fam.U (T.F₀ Γ) -- remember that context morphisms are substitutions -- which are here applied postfix _[_] : ∀ {Γ Δ} → (T : Ty Γ) → (σ : Δ C.⇒ Γ) → Ty Δ _[_] T σ = Hom.f (T.F₁ σ) T Tm : ∀ Γ → Ty Γ → Set b Tm Γ = Fam.T (T.F₀ Γ) -- substitute into a term _[_⁺] : {Γ Δ : Context} {tp : Ty Γ} → (term : Tm Γ tp) → (σ : Δ C.⇒ Γ) → Tm Δ (tp [ σ ]) _[_⁺] term σ = Hom.φ (T.F₁ σ) _ term -- This is the original definition from Dybjer. The one from nLab is too tricky to do quite yet. record CwF : Set (suc (o ⊔ ℓ ⊔ e ⊔ a ⊔ b)) where field C : Category o ℓ e T : Presheaf C (FamilyOfSets a b) Empty : Terminal C infix 5 _>_ module C = Category C module T = Functor T open UnpackFam T module Empty = Terminal Empty field -- context snoc _>_ : ∀ Γ → Ty Γ → Context -- projections p : ∀ {Γ A} → (Γ > A) C.⇒ Γ v : ∀ {Γ A} → Tm (Γ > A) (A [ p ]) -- constructor <_,_> : ∀ {Γ A} → ∀ {Δ} (γ : Δ C.⇒ Γ) (a : Tm Δ (A [ γ ])) → Δ C.⇒ (Γ > A) v[_] : ∀ {Γ A Δ} → (γ : Δ C.⇒ Γ) -> Tm (Δ > A [ γ ]) (A [ γ C.∘ p ]) v[_] {Γ} {A} {Δ} γ = ≡.subst (Tm (Δ > A [ γ ])) (Eq.g≡f (T.homomorphism {Γ})) v -- Note that the original used Heterogenenous equality (yuck). So here we use -- explicit transport. Explicit yuck. field p∘<γ,a>≡γ : ∀ {Γ A} → ∀ {Δ} {γ : Δ C.⇒ Γ} {a : Tm Δ (A [ γ ])} → p C.∘ < γ , a > C.≈ γ patch : ∀ {Γ A} → ∀ {Δ} {γ : Δ C.⇒ Γ} {δ : Δ C.⇒ (Γ > A)} (a : Tm Δ (A [ γ ])) (pδ≈γ : p C.∘ δ C.≈ γ) → Fam.T (T.F₀ Δ) ((A [ p ]) [ δ ]) patch {Γ} {A} {Δ} {γ} a pδ≈γ = ≡.subst (Fam.T (T.F₀ Δ)) (≡.trans (Eq.g≡f (T.F-resp-≈ pδ≈γ)) (≡.sym (Eq.g≡f (T.homomorphism {Γ})))) a field v[<γ,a>]≡a : ∀ {Γ A} → ∀ {Δ} {γ : Δ C.⇒ Γ} {a : Tm Δ (A [ γ ])} → v [ < γ , a > ⁺] ≡ patch a p∘<γ,a>≡γ <γ,a>-unique : ∀ {Γ A} → ∀ {Δ} {γ : Δ C.⇒ Γ} {a : Tm Δ (A [ γ ])} → (δ : Δ C.⇒ (Γ > A)) → (pδ≈γ : p C.∘ δ C.≈ γ) → ( v [ δ ⁺] ≡ patch a pδ≈γ) → δ C.≈ < γ , a > _[id] : ∀ {Γ A} -> Tm Γ A -> Tm Γ (A [ C.id ]) _[id] {Γ} {A} x = ≡.subst (Tm Γ) (Eq.g≡f (T.identity {Γ}) {A}) x open UnpackFam T public open Empty public using () renaming (⊤ to <>) -- inside a CwF, we can sort-of 'define' a λ-calculus with Π, but the results are way too -- heterogeneous to contemplate... {- record Pi {o ℓ e a b} (Cwf : CwF {o} {ℓ} {e} {a} {b}) : Set (o ⊔ ℓ ⊔ a ⊔ b) where open CwF Cwf field Π : ∀ {Γ} -> (A : Ty Γ) (B : Ty (Γ > A)) -> Ty Γ lam : ∀ {Γ} {A : Ty Γ} {B : Ty (Γ > A)} -> (b : Tm (Γ > A) B) -> Tm Γ (Π A B) _$_ : ∀ {Γ} {A : Ty Γ} {B : Ty (Γ > A)} -> (f : Tm Γ (Π A B)) (x : Tm Γ A) -> Tm Γ (B [ < C.id , x [id] > ]) -- naturality laws Π-nat : ∀ {Γ} -> (A : Ty Γ) (B : Ty (Γ > A)) -> ∀ {Δ} (γ : Δ C.⇒ Γ) -> Π A B [ γ ] ≡ Π (A [ γ ]) (B [ < (γ C.∘ p) , v[ γ ] > ]) lam-nat : ∀ {Γ} {A : Ty Γ} {B : Ty (Γ > A)} -> (b : Tm (Γ > A) B) -> ∀ {Δ} (γ : Δ C.⇒ Γ) -> lam b [ γ ⁺] ≡ {! lam {A = A [ γ ]} (b [ < γ C.∘ p , v[ γ ] > ⁺]) !} app-nat : ∀ {Γ} {A : Ty Γ} {B : Ty (Γ > A)} -> (f : Tm Γ (Π A B)) (x : Tm Γ A) -> ∀ {Δ} (γ : Δ C.⇒ Γ) -> (f $ x) [ γ ⁺] ≡ {! ≡.subst (Tm Δ) (Π-nat A B γ) (f [ γ ⁺]) $ (x [ γ ⁺]) !} -- proofs of the lam/_$_ isomorphism β : ∀ {Γ} {A : Ty Γ} {B : Ty (Γ > A)} -> (b : Tm (Γ > A) B) (x : Tm Γ A) -> (lam b $ x) ≡ b [ < C.id , x [id] > ⁺] η : ∀ {Γ} {A : Ty Γ} {B : Ty (Γ > A)} -> (f : Tm Γ (Π A B)) -> lam (≡.subst (Tm (Γ > A)) (Π-nat A B p) (f [ p ⁺]) $ v) ≡ {! f !} -}
Definition/LogicalRelation/Substitution/Reducibility.agda
CoqHott/logrel-mltt
2
5064
<reponame>CoqHott/logrel-mltt {-# OPTIONS --safe #-} open import Definition.Typed.EqualityRelation module Definition.LogicalRelation.Substitution.Reducibility {{eqrel : EqRelSet}} where open EqRelSet {{...}} open import Definition.Untyped open import Definition.Untyped.Properties open import Definition.Typed open import Definition.LogicalRelation open import Definition.LogicalRelation.Irrelevance open import Definition.LogicalRelation.Substitution open import Definition.LogicalRelation.Substitution.Properties open import Tools.Product import Tools.PropositionalEquality as PE -- Valid types are reducible. reducibleᵛ : ∀ {A rA Γ l} ([Γ] : ⊩ᵛ Γ) → Γ ⊩ᵛ⟨ l ⟩ A ^ rA / [Γ] → Γ ⊩⟨ l ⟩ A ^ rA reducibleᵛ [Γ] [A] = let ⊢Γ = soundContext [Γ] [id] = idSubstS [Γ] in irrelevance′ (subst-id _) (proj₁ ([A] ⊢Γ [id])) -- Valid type equality is reducible. reducibleEqᵛ : ∀ {A B rA Γ l} ([Γ] : ⊩ᵛ Γ) ([A] : Γ ⊩ᵛ⟨ l ⟩ A ^ rA / [Γ]) → Γ ⊩ᵛ⟨ l ⟩ A ≡ B ^ rA / [Γ] / [A] → Γ ⊩⟨ l ⟩ A ≡ B ^ rA / reducibleᵛ [Γ] [A] reducibleEqᵛ {A = A} [Γ] [A] [A≡B] = let [σA] = reducibleᵛ {A = A} [Γ] [A] ⊢Γ = soundContext [Γ] [id] = idSubstS [Γ] in irrelevanceEq″ (subst-id _) (subst-id _) PE.refl PE.refl (proj₁ ([A] ⊢Γ [id])) [σA] ([A≡B] ⊢Γ [id]) -- Valid terms are reducible. reducibleTermᵛ : ∀ {t A rA Γ l} ([Γ] : ⊩ᵛ Γ) ([A] : Γ ⊩ᵛ⟨ l ⟩ A ^ rA / [Γ]) → Γ ⊩ᵛ⟨ l ⟩ t ∷ A ^ rA / [Γ] / [A] → Γ ⊩⟨ l ⟩ t ∷ A ^ rA / reducibleᵛ [Γ] [A] reducibleTermᵛ {A = A} [Γ] [A] [t] = let [σA] = reducibleᵛ {A = A} [Γ] [A] ⊢Γ = soundContext [Γ] [id] = idSubstS [Γ] in irrelevanceTerm″ (subst-id _) PE.refl PE.refl (subst-id _) (proj₁ ([A] ⊢Γ [id])) [σA] (proj₁ ([t] ⊢Γ [id])) -- Valid term equality is reducible. reducibleEqTermᵛ : ∀ {t u A rA Γ l} ([Γ] : ⊩ᵛ Γ) ([A] : Γ ⊩ᵛ⟨ l ⟩ A ^ rA / [Γ]) → Γ ⊩ᵛ⟨ l ⟩ t ≡ u ∷ A ^ rA / [Γ] / [A] → Γ ⊩⟨ l ⟩ t ≡ u ∷ A ^ rA / reducibleᵛ [Γ] [A] reducibleEqTermᵛ {A = A} [Γ] [A] [t≡u] = let [σA] = reducibleᵛ {A = A} [Γ] [A] ⊢Γ = soundContext [Γ] [id] = idSubstS [Γ] in irrelevanceEqTerm″ PE.refl PE.refl (subst-id _) (subst-id _) (subst-id _) (proj₁ ([A] ⊢Γ [id])) [σA] ([t≡u] ⊢Γ [id])
test/asset/agda-stdlib-1.0/Data/List/Relation/Lex/NonStrict.agda
omega12345/agda-mode
0
2206
<filename>test/asset/agda-stdlib-1.0/Data/List/Relation/Lex/NonStrict.agda ------------------------------------------------------------------------ -- The Agda standard library -- -- This module is DEPRECATED. Please use -- Data.List.Relation.Binary.Lex.NonStrict directly. ------------------------------------------------------------------------ {-# OPTIONS --without-K --safe #-} module Data.List.Relation.Lex.NonStrict where open import Data.List.Relation.Binary.Lex.NonStrict public
examples/AccP.agda
andreasabel/miniagda
85
6993
module Acc where data Acc ( A : Set ) ( Lt : A -> A -> Set) : A -> Set where acc : ( b : A ) -> ( ( a : A ) -> Lt a b -> Acc A Lt a ) -> ( Acc A Lt b ) data Nat : Set where zero : Nat succ : Nat -> Nat data Lt : Nat -> Nat -> Set where ltzero : ( x : Nat ) -> Lt zero (succ x) ltsucc : ( x : Nat ) -> (y : Nat) -> Lt x y -> Lt (succ x) (succ y) ltstep : (x : Nat) -> Lt x (succ x) ltstep zero = ltzero _ ltstep (succ x) = ltsucc _ _ (ltstep x) notLt0 : ( x : Nat ) -> Lt x zero -> (C : Set) -> C notLt0 x () wkLt : ( x y : Nat ) -> Lt (succ x) (succ y) -> Lt x y wkLt zero (succ y) _ = ltzero y wkLt x zero (ltsucc .x .zero ()) wkLt x y (ltsucc .x .y p) = p {- wkLt1 : ( x y : Nat ) -> Lt (succ x) y -> Lt x y wkLt1 x zero () wkLt1 zero (succ y) _ = ltzero y wkLt1 (succ x) (succ y) (ltsucc .(succ x) .y p) = ltsucc x y (wkLt1 x y p) -} wkLt2 : (x y : Nat ) -> Lt x y -> Lt x (succ y) wkLt2 x zero () wkLt2 zero y p = ltzero y wkLt2 (succ x) (succ y) (ltsucc .x .y p) = ltsucc x (succ y) (wkLt2 x y p) ltcase : ( x : Nat ) -> ( y : Nat ) -> Lt x (succ y) -> ( P : Nat -> Set ) -> ( (x' : Nat ) -> Lt x' y -> P x') -> P y -> P x ltcase zero zero _ P hx' hy = hy ltcase zero (succ y') _ P hx' hy = hx' zero (ltzero y') ltcase (succ x') zero (ltsucc .x' .zero ()) _ _ _ ltcase (succ x') (succ y') (ltsucc .x' .(succ y') p) P hx' hy = ltcase x' y' p (\ n -> P (succ n)) (\ x'' p' -> hx' (succ x'') (ltsucc x'' y' p')) hy accSucc : (x : Nat) -> Acc Nat Lt x -> Acc Nat Lt (succ x) accSucc x (acc .x h) = acc (succ x) (\ y p -> ltcase y x p (Acc Nat Lt) h (acc x h)) accLt : ( x : Nat ) -> Acc Nat Lt x accLt zero = acc zero (\a -> \p -> notLt0 a p (Acc Nat Lt a) ) accLt (succ x) = accSucc x (accLt x) -- subtraction x - y sub : Nat -> Nat -> Nat sub zero y = zero sub (succ x) zero = succ x sub (succ x) (succ y) = sub x y subLt : (x y : Nat) -> Lt (sub (succ x) (succ y)) (succ x) subLt zero y = ltzero _ subLt (succ x') zero = ltstep (succ x') subLt (succ x') (succ y') = wkLt2 _ _ (subLt x' y') -- division x / (y + 1) div' : (x y : Nat) -> Acc Nat Lt x -> Nat div' zero _ _ = zero div' (succ x') y' (acc ._ h) = succ (div' z y' (h _ p)) where z = sub (succ x') (succ y') p = subLt x' y' ---- data WO ( A : Set ) ( Lt : A -> A -> Set ) : Set where wo : ((x : A) -> Acc A Lt x) -> WO A Lt woLt : WO Nat Lt woLt = wo accLt
programs/oeis/089/A089279.asm
jmorken/loda
1
17648
<gh_stars>1-10 ; A089279: a(n) = 2 + sum(k=1 to n) [(-1)^k A001511(k)]. ; 1,3,2,5,4,6,5,9,8,10,9,12,11,13,12,17,16,18,17,20,19,21,20,24,23,25,24,27,26,28,27,33,32,34,33,36,35,37,36,40,39,41,40,43,42,44,43,48,47,49,48,51,50,52,51,55,54,56,55,58,57,59,58,65,64,66,65,68,67,69,68,72 mov $2,$0 add $0,1 pow $2,2 mod $2,4 mov $1,$2 lpb $0 div $0,2 add $1,$0 lpe add $1,1
CPU/cpu_test/test_storage/sltiu.asm
SilenceX12138/MIPS-Microsystems
55
98096
.text li $t1,-1 li $t2,1 li $t3,-3 li $t4,3 sltiu $s1,$t1,-3 sltiu $s2,$t1,3 sltiu $s3,$t2,-3 sltiu $s4,$t2,3
test/Fail/SafeFlagPostulate.agda
cruhland/agda
1,989
1418
<gh_stars>1000+ {-# OPTIONS --safe #-} module SafeFlagPostulate where data Empty : Set where postulate inhabitant : Empty
src/main/fragment/mos6502-common/vboaa=vbsaa_gt_vbsc1.asm
jbrandwood/kickc
2
164881
<reponame>jbrandwood/kickc sec sbc #{c1} beq !a+ bvs !+ eor #$80 !: asl lda #0 rol !a:
lib/chibiakumas/SrcALL/V1_BitmapMemory.asm
gilbertfrancois/msx
0
176874
ifdef BuildCPC read "\SrcCPC\CPC_V1_BitmapMemory.asm" endif ifdef BuildZXS read "\SrcZX\ZX_V1_BitmapMemory.asm" endif ifndef BuildMSX_MSX1 ifdef BuildMSX read "\SrcMSX\MSX_V1_BitmapMemory.asm" endif else ifdef BuildMSX read "\SrcMSX\MSX1_V1_BitmapMemory.asm" endif endif ifdef BuildTI8 read "\SrcTI\TI_V1_BitmapMemory.asm" endif ifdef BuildENT read "\SrcENT\ENT_V1_BitmapMemory.asm" endif ifdef BuildSAM read "\SrcSAM\SAM_V1_BitmapMemory.asm" endif ifdef BuildCLX read "\SrcCLX\CLX_V1_BitmapMemory.asm" endif
oeis/239/A239062.asm
neoneye/loda-programs
11
15344
; A239062: Number of integers x, 1 <= x <= n, such that x^x == 0 (mod n). ; Submitted by <NAME> ; 1,1,1,2,1,1,1,3,3,1,1,2,1,1,1,7,1,3,1,2,1,1,1,4,5,1,9,2,1,1,1,15,1,1,1,6,1,1,1,4,1,1,1,2,3,1,1,8,7,5,1,2,1,9,1,4,1,1,1,2,1,1,3,31,1,1,1,2,1,1,1,12,1,1,5,2,1,1,1,8,26,1,1,2,1,1,1,4,1,3,1,2,1,1,1,16,1,7,3,10 add $0,1 mov $2,$0 lpb $0 mov $3,$0 sub $0,1 pow $3,$3 mod $3,$2 add $3,1 cmp $3,1 add $1,$3 lpe mov $0,$1
programs/oeis/055/A055112.asm
karttu/loda
1
85539
<reponame>karttu/loda ; A055112: a(n) = n*(n+1)*(2*n+1). ; 0,6,30,84,180,330,546,840,1224,1710,2310,3036,3900,4914,6090,7440,8976,10710,12654,14820,17220,19866,22770,25944,29400,33150,37206,41580,46284,51330,56730,62496,68640,75174,82110,89460,97236,105450,114114,123240,132840,142926,153510,164604,176220,188370,201066,214320,228144,242550,257550,273156,289380,306234,323730,341880,360696,380190,400374,421260,442860,465186,488250,512064,536640,561990,588126,615060,642804,671370,700770,731016,762120,794094,826950,860700,895356,930930,967434,1004880,1043280,1082646,1122990,1164324,1206660,1250010,1294386,1339800,1386264,1433790,1482390,1532076,1582860,1634754,1687770,1741920,1797216,1853670,1911294,1970100,2030100,2091306,2153730,2217384,2282280,2348430,2415846,2484540,2554524,2625810,2698410,2772336,2847600,2924214,3002190,3081540,3162276,3244410,3327954,3412920,3499320,3587166,3676470,3767244,3859500,3953250,4048506,4145280,4243584,4343430,4444830,4547796,4652340,4758474,4866210,4975560,5086536,5199150,5313414,5429340,5546940,5666226,5787210,5909904,6034320,6160470,6288366,6418020,6549444,6682650,6817650,6954456,7093080,7233534,7375830,7519980,7665996,7813890,7963674,8115360,8268960,8424486,8581950,8741364,8902740,9066090,9231426,9398760,9568104,9739470,9912870,10088316,10265820,10445394,10627050,10810800,10996656,11184630,11374734,11566980,11761380,11957946,12156690,12357624,12560760,12766110,12973686,13183500,13395564,13609890,13826490,14045376,14266560,14490054,14715870,14944020,15174516,15407370,15642594,15880200,16120200,16362606,16607430,16854684,17104380,17356530,17611146,17868240,18127824,18389910,18654510,18921636,19191300,19463514,19738290,20015640,20295576,20578110,20863254,21151020,21441420,21734466,22030170,22328544,22629600,22933350,23239806,23548980,23860884,24175530,24492930,24813096,25136040,25461774,25790310,26121660,26455836,26792850,27132714,27475440,27821040,28169526,28520910,28875204,29232420,29592570,29955666,30321720,30690744,31062750 mov $1,$0 mul $0,2 add $0,2 bin $0,2 mul $1,$0
test/asset/agda-stdlib-1.0/Algebra/Structures.agda
omega12345/agda-mode
0
6128
<gh_stars>0 ------------------------------------------------------------------------ -- The Agda standard library -- -- Some algebraic structures (not packed up with sets, operations, -- etc.) ------------------------------------------------------------------------ {-# OPTIONS --without-K --safe #-} open import Relation.Binary using (Rel; Setoid; IsEquivalence) -- The structures are parameterised by an equivalence relation module Algebra.Structures {a ℓ} {A : Set a} (_≈_ : Rel A ℓ) where open import Algebra.FunctionProperties _≈_ import Algebra.FunctionProperties.Consequences as Consequences open import Data.Product using (_,_; proj₁; proj₂) open import Level using (_⊔_) ------------------------------------------------------------------------ -- Semigroups record IsMagma (∙ : Op₂ A) : Set (a ⊔ ℓ) where field isEquivalence : IsEquivalence _≈_ ∙-cong : Congruent₂ ∙ open IsEquivalence isEquivalence public setoid : Setoid a ℓ setoid = record { isEquivalence = isEquivalence } ∙-congˡ : LeftCongruent ∙ ∙-congˡ y≈z = ∙-cong refl y≈z ∙-congʳ : RightCongruent ∙ ∙-congʳ y≈z = ∙-cong y≈z refl record IsSemigroup (∙ : Op₂ A) : Set (a ⊔ ℓ) where field isMagma : IsMagma ∙ assoc : Associative ∙ open IsMagma isMagma public record IsBand (∙ : Op₂ A) : Set (a ⊔ ℓ) where field isSemigroup : IsSemigroup ∙ idem : Idempotent ∙ open IsSemigroup isSemigroup public record IsSemilattice (∧ : Op₂ A) : Set (a ⊔ ℓ) where field isBand : IsBand ∧ comm : Commutative ∧ open IsBand isBand public renaming (∙-cong to ∧-cong; ∙-congˡ to ∧-congˡ; ∙-congʳ to ∧-congʳ) ------------------------------------------------------------------------ -- Monoids record IsMonoid (∙ : Op₂ A) (ε : A) : Set (a ⊔ ℓ) where field isSemigroup : IsSemigroup ∙ identity : Identity ε ∙ open IsSemigroup isSemigroup public identityˡ : LeftIdentity ε ∙ identityˡ = proj₁ identity identityʳ : RightIdentity ε ∙ identityʳ = proj₂ identity record IsCommutativeMonoid (∙ : Op₂ A) (ε : A) : Set (a ⊔ ℓ) where field isSemigroup : IsSemigroup ∙ identityˡ : LeftIdentity ε ∙ comm : Commutative ∙ open IsSemigroup isSemigroup public identityʳ : RightIdentity ε ∙ identityʳ = Consequences.comm+idˡ⇒idʳ setoid comm identityˡ identity : Identity ε ∙ identity = (identityˡ , identityʳ) isMonoid : IsMonoid ∙ ε isMonoid = record { isSemigroup = isSemigroup ; identity = identity } record IsIdempotentCommutativeMonoid (∙ : Op₂ A) (ε : A) : Set (a ⊔ ℓ) where field isCommutativeMonoid : IsCommutativeMonoid ∙ ε idem : Idempotent ∙ open IsCommutativeMonoid isCommutativeMonoid public ------------------------------------------------------------------------ -- Groups record IsGroup (_∙_ : Op₂ A) (ε : A) (_⁻¹ : Op₁ A) : Set (a ⊔ ℓ) where field isMonoid : IsMonoid _∙_ ε inverse : Inverse ε _⁻¹ _∙_ ⁻¹-cong : Congruent₁ _⁻¹ open IsMonoid isMonoid public infixl 7 _-_ _-_ : Op₂ A x - y = x ∙ (y ⁻¹) inverseˡ : LeftInverse ε _⁻¹ _∙_ inverseˡ = proj₁ inverse inverseʳ : RightInverse ε _⁻¹ _∙_ inverseʳ = proj₂ inverse uniqueˡ-⁻¹ : ∀ x y → (x ∙ y) ≈ ε → x ≈ (y ⁻¹) uniqueˡ-⁻¹ = Consequences.assoc+id+invʳ⇒invˡ-unique setoid ∙-cong assoc identity inverseʳ uniqueʳ-⁻¹ : ∀ x y → (x ∙ y) ≈ ε → y ≈ (x ⁻¹) uniqueʳ-⁻¹ = Consequences.assoc+id+invˡ⇒invʳ-unique setoid ∙-cong assoc identity inverseˡ record IsAbelianGroup (∙ : Op₂ A) (ε : A) (⁻¹ : Op₁ A) : Set (a ⊔ ℓ) where field isGroup : IsGroup ∙ ε ⁻¹ comm : Commutative ∙ open IsGroup isGroup public isCommutativeMonoid : IsCommutativeMonoid ∙ ε isCommutativeMonoid = record { isSemigroup = isSemigroup ; identityˡ = identityˡ ; comm = comm } ------------------------------------------------------------------------ -- Semirings record IsNearSemiring (+ * : Op₂ A) (0# : A) : Set (a ⊔ ℓ) where field +-isMonoid : IsMonoid + 0# *-isSemigroup : IsSemigroup * distribʳ : * DistributesOverʳ + zeroˡ : LeftZero 0# * open IsMonoid +-isMonoid public renaming ( assoc to +-assoc ; ∙-cong to +-cong ; ∙-congˡ to +-congˡ ; ∙-congʳ to +-congʳ ; identity to +-identity ; identityˡ to +-identityˡ ; identityʳ to +-identityʳ ; isMagma to +-isMagma ; isSemigroup to +-isSemigroup ) open IsSemigroup *-isSemigroup public using () renaming ( assoc to *-assoc ; ∙-cong to *-cong ; ∙-congˡ to *-congˡ ; ∙-congʳ to *-congʳ ; isMagma to *-isMagma ) record IsSemiringWithoutOne (+ * : Op₂ A) (0# : A) : Set (a ⊔ ℓ) where field +-isCommutativeMonoid : IsCommutativeMonoid + 0# *-isSemigroup : IsSemigroup * distrib : * DistributesOver + zero : Zero 0# * open IsCommutativeMonoid +-isCommutativeMonoid public using () renaming ( isMonoid to +-isMonoid ; comm to +-comm ) zeroˡ : LeftZero 0# * zeroˡ = proj₁ zero zeroʳ : RightZero 0# * zeroʳ = proj₂ zero isNearSemiring : IsNearSemiring + * 0# isNearSemiring = record { +-isMonoid = +-isMonoid ; *-isSemigroup = *-isSemigroup ; distribʳ = proj₂ distrib ; zeroˡ = zeroˡ } open IsNearSemiring isNearSemiring public hiding (+-isMonoid; zeroˡ) record IsSemiringWithoutAnnihilatingZero (+ * : Op₂ A) (0# 1# : A) : Set (a ⊔ ℓ) where field -- Note that these structures do have an additive unit, but this -- unit does not necessarily annihilate multiplication. +-isCommutativeMonoid : IsCommutativeMonoid + 0# *-isMonoid : IsMonoid * 1# distrib : * DistributesOver + distribˡ : * DistributesOverˡ + distribˡ = proj₁ distrib distribʳ : * DistributesOverʳ + distribʳ = proj₂ distrib open IsCommutativeMonoid +-isCommutativeMonoid public renaming ( assoc to +-assoc ; ∙-cong to +-cong ; ∙-congˡ to +-congˡ ; ∙-congʳ to +-congʳ ; identity to +-identity ; identityˡ to +-identityˡ ; identityʳ to +-identityʳ ; comm to +-comm ; isMagma to +-isMagma ; isSemigroup to +-isSemigroup ; isMonoid to +-isMonoid ) open IsMonoid *-isMonoid public using () renaming ( assoc to *-assoc ; ∙-cong to *-cong ; ∙-congˡ to *-congˡ ; ∙-congʳ to *-congʳ ; identity to *-identity ; identityˡ to *-identityˡ ; identityʳ to *-identityʳ ; isMagma to *-isMagma ; isSemigroup to *-isSemigroup ) record IsSemiring (+ * : Op₂ A) (0# 1# : A) : Set (a ⊔ ℓ) where field isSemiringWithoutAnnihilatingZero : IsSemiringWithoutAnnihilatingZero + * 0# 1# zero : Zero 0# * open IsSemiringWithoutAnnihilatingZero isSemiringWithoutAnnihilatingZero public isSemiringWithoutOne : IsSemiringWithoutOne + * 0# isSemiringWithoutOne = record { +-isCommutativeMonoid = +-isCommutativeMonoid ; *-isSemigroup = *-isSemigroup ; distrib = distrib ; zero = zero } open IsSemiringWithoutOne isSemiringWithoutOne public using ( isNearSemiring ; zeroˡ ; zeroʳ ) record IsCommutativeSemiringWithoutOne (+ * : Op₂ A) (0# : A) : Set (a ⊔ ℓ) where field isSemiringWithoutOne : IsSemiringWithoutOne + * 0# *-comm : Commutative * open IsSemiringWithoutOne isSemiringWithoutOne public record IsCommutativeSemiring (+ * : Op₂ A) (0# 1# : A) : Set (a ⊔ ℓ) where field +-isCommutativeMonoid : IsCommutativeMonoid + 0# *-isCommutativeMonoid : IsCommutativeMonoid * 1# distribʳ : * DistributesOverʳ + zeroˡ : LeftZero 0# * private module +-CM = IsCommutativeMonoid +-isCommutativeMonoid open module *-CM = IsCommutativeMonoid *-isCommutativeMonoid public using () renaming (comm to *-comm) distribˡ : * DistributesOverˡ + distribˡ = Consequences.comm+distrʳ⇒distrˡ +-CM.setoid +-CM.∙-cong *-comm distribʳ distrib : * DistributesOver + distrib = (distribˡ , distribʳ) zeroʳ : RightZero 0# * zeroʳ = Consequences.comm+zeˡ⇒zeʳ +-CM.setoid *-comm zeroˡ zero : Zero 0# * zero = (zeroˡ , zeroʳ) isSemiring : IsSemiring + * 0# 1# isSemiring = record { isSemiringWithoutAnnihilatingZero = record { +-isCommutativeMonoid = +-isCommutativeMonoid ; *-isMonoid = *-CM.isMonoid ; distrib = distrib } ; zero = zero } open IsSemiring isSemiring public hiding ( distrib; distribʳ; distribˡ ; zero; zeroˡ; zeroʳ ; +-isCommutativeMonoid ) isCommutativeSemiringWithoutOne : IsCommutativeSemiringWithoutOne + * 0# isCommutativeSemiringWithoutOne = record { isSemiringWithoutOne = isSemiringWithoutOne ; *-comm = *-CM.comm } ------------------------------------------------------------------------ -- Rings record IsRing (+ * : Op₂ A) (-_ : Op₁ A) (0# 1# : A) : Set (a ⊔ ℓ) where field +-isAbelianGroup : IsAbelianGroup + 0# -_ *-isMonoid : IsMonoid * 1# distrib : * DistributesOver + open IsAbelianGroup +-isAbelianGroup public renaming ( assoc to +-assoc ; ∙-cong to +-cong ; ∙-congˡ to +-congˡ ; ∙-congʳ to +-congʳ ; identity to +-identity ; identityˡ to +-identityˡ ; identityʳ to +-identityʳ ; inverse to -‿inverse ; inverseˡ to -‿inverseˡ ; inverseʳ to -‿inverseʳ ; ⁻¹-cong to -‿cong ; comm to +-comm ; isMagma to +-isMagma ; isSemigroup to +-isSemigroup ; isMonoid to +-isMonoid ; isCommutativeMonoid to +-isCommutativeMonoid ; isGroup to +-isGroup ) open IsMonoid *-isMonoid public using () renaming ( assoc to *-assoc ; ∙-cong to *-cong ; ∙-congˡ to *-congˡ ; ∙-congʳ to *-congʳ ; identity to *-identity ; identityˡ to *-identityˡ ; identityʳ to *-identityʳ ; isMagma to *-isMagma ; isSemigroup to *-isSemigroup ) zeroˡ : LeftZero 0# * zeroˡ = Consequences.assoc+distribʳ+idʳ+invʳ⇒zeˡ setoid +-cong *-cong +-assoc (proj₂ distrib) +-identityʳ -‿inverseʳ zeroʳ : RightZero 0# * zeroʳ = Consequences.assoc+distribˡ+idʳ+invʳ⇒zeʳ setoid +-cong *-cong +-assoc (proj₁ distrib) +-identityʳ -‿inverseʳ zero : Zero 0# * zero = (zeroˡ , zeroʳ) isSemiringWithoutAnnihilatingZero : IsSemiringWithoutAnnihilatingZero + * 0# 1# isSemiringWithoutAnnihilatingZero = record { +-isCommutativeMonoid = +-isCommutativeMonoid ; *-isMonoid = *-isMonoid ; distrib = distrib } isSemiring : IsSemiring + * 0# 1# isSemiring = record { isSemiringWithoutAnnihilatingZero = isSemiringWithoutAnnihilatingZero ; zero = zero } open IsSemiring isSemiring public using (distribˡ; distribʳ; isNearSemiring; isSemiringWithoutOne) record IsCommutativeRing (+ * : Op₂ A) (- : Op₁ A) (0# 1# : A) : Set (a ⊔ ℓ) where field isRing : IsRing + * - 0# 1# *-comm : Commutative * open IsRing isRing public *-isCommutativeMonoid : IsCommutativeMonoid * 1# *-isCommutativeMonoid = record { isSemigroup = *-isSemigroup ; identityˡ = *-identityˡ ; comm = *-comm } isCommutativeSemiring : IsCommutativeSemiring + * 0# 1# isCommutativeSemiring = record { +-isCommutativeMonoid = +-isCommutativeMonoid ; *-isCommutativeMonoid = *-isCommutativeMonoid ; distribʳ = distribʳ ; zeroˡ = zeroˡ } open IsCommutativeSemiring isCommutativeSemiring public using ( isCommutativeSemiringWithoutOne ) ------------------------------------------------------------------------ -- Lattices -- Note that this record is not defined in terms of IsSemilattice -- because the idempotence laws of ∨ and ∧ can be derived from the -- absorption laws, which makes the corresponding "idem" fields -- redundant. The derived idempotence laws are stated and proved in -- Algebra.Properties.Lattice along with the fact that every lattice -- consists of two semilattices. record IsLattice (∨ ∧ : Op₂ A) : Set (a ⊔ ℓ) where field isEquivalence : IsEquivalence _≈_ ∨-comm : Commutative ∨ ∨-assoc : Associative ∨ ∨-cong : Congruent₂ ∨ ∧-comm : Commutative ∧ ∧-assoc : Associative ∧ ∧-cong : Congruent₂ ∧ absorptive : Absorptive ∨ ∧ open IsEquivalence isEquivalence public ∨-absorbs-∧ : ∨ Absorbs ∧ ∨-absorbs-∧ = proj₁ absorptive ∧-absorbs-∨ : ∧ Absorbs ∨ ∧-absorbs-∨ = proj₂ absorptive ∧-congˡ : LeftCongruent ∧ ∧-congˡ y≈z = ∧-cong refl y≈z ∧-congʳ : RightCongruent ∧ ∧-congʳ y≈z = ∧-cong y≈z refl ∨-congˡ : LeftCongruent ∨ ∨-congˡ y≈z = ∨-cong refl y≈z ∨-congʳ : RightCongruent ∨ ∨-congʳ y≈z = ∨-cong y≈z refl record IsDistributiveLattice (∨ ∧ : Op₂ A) : Set (a ⊔ ℓ) where field isLattice : IsLattice ∨ ∧ ∨-∧-distribʳ : ∨ DistributesOverʳ ∧ open IsLattice isLattice public record IsBooleanAlgebra (∨ ∧ : Op₂ A) (¬ : Op₁ A) (⊤ ⊥ : A) : Set (a ⊔ ℓ) where field isDistributiveLattice : IsDistributiveLattice ∨ ∧ ∨-complementʳ : RightInverse ⊤ ¬ ∨ ∧-complementʳ : RightInverse ⊥ ¬ ∧ ¬-cong : Congruent₁ ¬ open IsDistributiveLattice isDistributiveLattice public
code/vendor/openssl/asm/crypto/bn/rsaz-avx2.asm
thorium-cfx/fivem
5,411
26400
OPTION DOTNAME .text$ SEGMENT ALIGN(256) 'CODE' PUBLIC rsaz_1024_sqr_avx2 ALIGN 64 rsaz_1024_sqr_avx2 PROC PUBLIC mov QWORD PTR[8+rsp],rdi ;WIN64 prologue mov QWORD PTR[16+rsp],rsi mov rax,rsp $L$SEH_begin_rsaz_1024_sqr_avx2:: mov rdi,rcx mov rsi,rdx mov rdx,r8 mov rcx,r9 mov r8,QWORD PTR[40+rsp] lea rax,QWORD PTR[rsp] push rbx push rbp push r12 push r13 push r14 push r15 vzeroupper lea rsp,QWORD PTR[((-168))+rsp] vmovaps XMMWORD PTR[(-216)+rax],xmm6 vmovaps XMMWORD PTR[(-200)+rax],xmm7 vmovaps XMMWORD PTR[(-184)+rax],xmm8 vmovaps XMMWORD PTR[(-168)+rax],xmm9 vmovaps XMMWORD PTR[(-152)+rax],xmm10 vmovaps XMMWORD PTR[(-136)+rax],xmm11 vmovaps XMMWORD PTR[(-120)+rax],xmm12 vmovaps XMMWORD PTR[(-104)+rax],xmm13 vmovaps XMMWORD PTR[(-88)+rax],xmm14 vmovaps XMMWORD PTR[(-72)+rax],xmm15 $L$sqr_1024_body:: mov rbp,rax mov r13,rdx sub rsp,832 mov r15,r13 sub rdi,-128 sub rsi,-128 sub r13,-128 and r15,4095 add r15,32*10 shr r15,12 vpxor ymm9,ymm9,ymm9 jz $L$sqr_1024_no_n_copy sub rsp,32*10 vmovdqu ymm0,YMMWORD PTR[((0-128))+r13] and rsp,-2048 vmovdqu ymm1,YMMWORD PTR[((32-128))+r13] vmovdqu ymm2,YMMWORD PTR[((64-128))+r13] vmovdqu ymm3,YMMWORD PTR[((96-128))+r13] vmovdqu ymm4,YMMWORD PTR[((128-128))+r13] vmovdqu ymm5,YMMWORD PTR[((160-128))+r13] vmovdqu ymm6,YMMWORD PTR[((192-128))+r13] vmovdqu ymm7,YMMWORD PTR[((224-128))+r13] vmovdqu ymm8,YMMWORD PTR[((256-128))+r13] lea r13,QWORD PTR[((832+128))+rsp] vmovdqu YMMWORD PTR[(0-128)+r13],ymm0 vmovdqu YMMWORD PTR[(32-128)+r13],ymm1 vmovdqu YMMWORD PTR[(64-128)+r13],ymm2 vmovdqu YMMWORD PTR[(96-128)+r13],ymm3 vmovdqu YMMWORD PTR[(128-128)+r13],ymm4 vmovdqu YMMWORD PTR[(160-128)+r13],ymm5 vmovdqu YMMWORD PTR[(192-128)+r13],ymm6 vmovdqu YMMWORD PTR[(224-128)+r13],ymm7 vmovdqu YMMWORD PTR[(256-128)+r13],ymm8 vmovdqu YMMWORD PTR[(288-128)+r13],ymm9 $L$sqr_1024_no_n_copy:: and rsp,-1024 vmovdqu ymm1,YMMWORD PTR[((32-128))+rsi] vmovdqu ymm2,YMMWORD PTR[((64-128))+rsi] vmovdqu ymm3,YMMWORD PTR[((96-128))+rsi] vmovdqu ymm4,YMMWORD PTR[((128-128))+rsi] vmovdqu ymm5,YMMWORD PTR[((160-128))+rsi] vmovdqu ymm6,YMMWORD PTR[((192-128))+rsi] vmovdqu ymm7,YMMWORD PTR[((224-128))+rsi] vmovdqu ymm8,YMMWORD PTR[((256-128))+rsi] lea rbx,QWORD PTR[192+rsp] vmovdqu ymm15,YMMWORD PTR[$L$and_mask] jmp $L$OOP_GRANDE_SQR_1024 ALIGN 32 $L$OOP_GRANDE_SQR_1024:: lea r9,QWORD PTR[((576+128))+rsp] lea r12,QWORD PTR[448+rsp] vpaddq ymm1,ymm1,ymm1 vpbroadcastq ymm10,QWORD PTR[((0-128))+rsi] vpaddq ymm2,ymm2,ymm2 vmovdqa YMMWORD PTR[(0-128)+r9],ymm1 vpaddq ymm3,ymm3,ymm3 vmovdqa YMMWORD PTR[(32-128)+r9],ymm2 vpaddq ymm4,ymm4,ymm4 vmovdqa YMMWORD PTR[(64-128)+r9],ymm3 vpaddq ymm5,ymm5,ymm5 vmovdqa YMMWORD PTR[(96-128)+r9],ymm4 vpaddq ymm6,ymm6,ymm6 vmovdqa YMMWORD PTR[(128-128)+r9],ymm5 vpaddq ymm7,ymm7,ymm7 vmovdqa YMMWORD PTR[(160-128)+r9],ymm6 vpaddq ymm8,ymm8,ymm8 vmovdqa YMMWORD PTR[(192-128)+r9],ymm7 vpxor ymm9,ymm9,ymm9 vmovdqa YMMWORD PTR[(224-128)+r9],ymm8 vpmuludq ymm0,ymm10,YMMWORD PTR[((0-128))+rsi] vpbroadcastq ymm11,QWORD PTR[((32-128))+rsi] vmovdqu YMMWORD PTR[(288-192)+rbx],ymm9 vpmuludq ymm1,ymm1,ymm10 vmovdqu YMMWORD PTR[(320-448)+r12],ymm9 vpmuludq ymm2,ymm2,ymm10 vmovdqu YMMWORD PTR[(352-448)+r12],ymm9 vpmuludq ymm3,ymm3,ymm10 vmovdqu YMMWORD PTR[(384-448)+r12],ymm9 vpmuludq ymm4,ymm4,ymm10 vmovdqu YMMWORD PTR[(416-448)+r12],ymm9 vpmuludq ymm5,ymm5,ymm10 vmovdqu YMMWORD PTR[(448-448)+r12],ymm9 vpmuludq ymm6,ymm6,ymm10 vmovdqu YMMWORD PTR[(480-448)+r12],ymm9 vpmuludq ymm7,ymm7,ymm10 vmovdqu YMMWORD PTR[(512-448)+r12],ymm9 vpmuludq ymm8,ymm8,ymm10 vpbroadcastq ymm10,QWORD PTR[((64-128))+rsi] vmovdqu YMMWORD PTR[(544-448)+r12],ymm9 mov r15,rsi mov r14d,4 jmp $L$sqr_entry_1024 ALIGN 32 $L$OOP_SQR_1024:: vpbroadcastq ymm11,QWORD PTR[((32-128))+r15] vpmuludq ymm0,ymm10,YMMWORD PTR[((0-128))+rsi] vpaddq ymm0,ymm0,YMMWORD PTR[((0-192))+rbx] vpmuludq ymm1,ymm10,YMMWORD PTR[((0-128))+r9] vpaddq ymm1,ymm1,YMMWORD PTR[((32-192))+rbx] vpmuludq ymm2,ymm10,YMMWORD PTR[((32-128))+r9] vpaddq ymm2,ymm2,YMMWORD PTR[((64-192))+rbx] vpmuludq ymm3,ymm10,YMMWORD PTR[((64-128))+r9] vpaddq ymm3,ymm3,YMMWORD PTR[((96-192))+rbx] vpmuludq ymm4,ymm10,YMMWORD PTR[((96-128))+r9] vpaddq ymm4,ymm4,YMMWORD PTR[((128-192))+rbx] vpmuludq ymm5,ymm10,YMMWORD PTR[((128-128))+r9] vpaddq ymm5,ymm5,YMMWORD PTR[((160-192))+rbx] vpmuludq ymm6,ymm10,YMMWORD PTR[((160-128))+r9] vpaddq ymm6,ymm6,YMMWORD PTR[((192-192))+rbx] vpmuludq ymm7,ymm10,YMMWORD PTR[((192-128))+r9] vpaddq ymm7,ymm7,YMMWORD PTR[((224-192))+rbx] vpmuludq ymm8,ymm10,YMMWORD PTR[((224-128))+r9] vpbroadcastq ymm10,QWORD PTR[((64-128))+r15] vpaddq ymm8,ymm8,YMMWORD PTR[((256-192))+rbx] $L$sqr_entry_1024:: vmovdqu YMMWORD PTR[(0-192)+rbx],ymm0 vmovdqu YMMWORD PTR[(32-192)+rbx],ymm1 vpmuludq ymm12,ymm11,YMMWORD PTR[((32-128))+rsi] vpaddq ymm2,ymm2,ymm12 vpmuludq ymm14,ymm11,YMMWORD PTR[((32-128))+r9] vpaddq ymm3,ymm3,ymm14 vpmuludq ymm13,ymm11,YMMWORD PTR[((64-128))+r9] vpaddq ymm4,ymm4,ymm13 vpmuludq ymm12,ymm11,YMMWORD PTR[((96-128))+r9] vpaddq ymm5,ymm5,ymm12 vpmuludq ymm14,ymm11,YMMWORD PTR[((128-128))+r9] vpaddq ymm6,ymm6,ymm14 vpmuludq ymm13,ymm11,YMMWORD PTR[((160-128))+r9] vpaddq ymm7,ymm7,ymm13 vpmuludq ymm12,ymm11,YMMWORD PTR[((192-128))+r9] vpaddq ymm8,ymm8,ymm12 vpmuludq ymm0,ymm11,YMMWORD PTR[((224-128))+r9] vpbroadcastq ymm11,QWORD PTR[((96-128))+r15] vpaddq ymm0,ymm0,YMMWORD PTR[((288-192))+rbx] vmovdqu YMMWORD PTR[(64-192)+rbx],ymm2 vmovdqu YMMWORD PTR[(96-192)+rbx],ymm3 vpmuludq ymm13,ymm10,YMMWORD PTR[((64-128))+rsi] vpaddq ymm4,ymm4,ymm13 vpmuludq ymm12,ymm10,YMMWORD PTR[((64-128))+r9] vpaddq ymm5,ymm5,ymm12 vpmuludq ymm14,ymm10,YMMWORD PTR[((96-128))+r9] vpaddq ymm6,ymm6,ymm14 vpmuludq ymm13,ymm10,YMMWORD PTR[((128-128))+r9] vpaddq ymm7,ymm7,ymm13 vpmuludq ymm12,ymm10,YMMWORD PTR[((160-128))+r9] vpaddq ymm8,ymm8,ymm12 vpmuludq ymm14,ymm10,YMMWORD PTR[((192-128))+r9] vpaddq ymm0,ymm0,ymm14 vpmuludq ymm1,ymm10,YMMWORD PTR[((224-128))+r9] vpbroadcastq ymm10,QWORD PTR[((128-128))+r15] vpaddq ymm1,ymm1,YMMWORD PTR[((320-448))+r12] vmovdqu YMMWORD PTR[(128-192)+rbx],ymm4 vmovdqu YMMWORD PTR[(160-192)+rbx],ymm5 vpmuludq ymm12,ymm11,YMMWORD PTR[((96-128))+rsi] vpaddq ymm6,ymm6,ymm12 vpmuludq ymm14,ymm11,YMMWORD PTR[((96-128))+r9] vpaddq ymm7,ymm7,ymm14 vpmuludq ymm13,ymm11,YMMWORD PTR[((128-128))+r9] vpaddq ymm8,ymm8,ymm13 vpmuludq ymm12,ymm11,YMMWORD PTR[((160-128))+r9] vpaddq ymm0,ymm0,ymm12 vpmuludq ymm14,ymm11,YMMWORD PTR[((192-128))+r9] vpaddq ymm1,ymm1,ymm14 vpmuludq ymm2,ymm11,YMMWORD PTR[((224-128))+r9] vpbroadcastq ymm11,QWORD PTR[((160-128))+r15] vpaddq ymm2,ymm2,YMMWORD PTR[((352-448))+r12] vmovdqu YMMWORD PTR[(192-192)+rbx],ymm6 vmovdqu YMMWORD PTR[(224-192)+rbx],ymm7 vpmuludq ymm12,ymm10,YMMWORD PTR[((128-128))+rsi] vpaddq ymm8,ymm8,ymm12 vpmuludq ymm14,ymm10,YMMWORD PTR[((128-128))+r9] vpaddq ymm0,ymm0,ymm14 vpmuludq ymm13,ymm10,YMMWORD PTR[((160-128))+r9] vpaddq ymm1,ymm1,ymm13 vpmuludq ymm12,ymm10,YMMWORD PTR[((192-128))+r9] vpaddq ymm2,ymm2,ymm12 vpmuludq ymm3,ymm10,YMMWORD PTR[((224-128))+r9] vpbroadcastq ymm10,QWORD PTR[((192-128))+r15] vpaddq ymm3,ymm3,YMMWORD PTR[((384-448))+r12] vmovdqu YMMWORD PTR[(256-192)+rbx],ymm8 vmovdqu YMMWORD PTR[(288-192)+rbx],ymm0 lea rbx,QWORD PTR[8+rbx] vpmuludq ymm13,ymm11,YMMWORD PTR[((160-128))+rsi] vpaddq ymm1,ymm1,ymm13 vpmuludq ymm12,ymm11,YMMWORD PTR[((160-128))+r9] vpaddq ymm2,ymm2,ymm12 vpmuludq ymm14,ymm11,YMMWORD PTR[((192-128))+r9] vpaddq ymm3,ymm3,ymm14 vpmuludq ymm4,ymm11,YMMWORD PTR[((224-128))+r9] vpbroadcastq ymm11,QWORD PTR[((224-128))+r15] vpaddq ymm4,ymm4,YMMWORD PTR[((416-448))+r12] vmovdqu YMMWORD PTR[(320-448)+r12],ymm1 vmovdqu YMMWORD PTR[(352-448)+r12],ymm2 vpmuludq ymm12,ymm10,YMMWORD PTR[((192-128))+rsi] vpaddq ymm3,ymm3,ymm12 vpmuludq ymm14,ymm10,YMMWORD PTR[((192-128))+r9] vpbroadcastq ymm0,QWORD PTR[((256-128))+r15] vpaddq ymm4,ymm4,ymm14 vpmuludq ymm5,ymm10,YMMWORD PTR[((224-128))+r9] vpbroadcastq ymm10,QWORD PTR[((0+8-128))+r15] vpaddq ymm5,ymm5,YMMWORD PTR[((448-448))+r12] vmovdqu YMMWORD PTR[(384-448)+r12],ymm3 vmovdqu YMMWORD PTR[(416-448)+r12],ymm4 lea r15,QWORD PTR[8+r15] vpmuludq ymm12,ymm11,YMMWORD PTR[((224-128))+rsi] vpaddq ymm5,ymm5,ymm12 vpmuludq ymm6,ymm11,YMMWORD PTR[((224-128))+r9] vpaddq ymm6,ymm6,YMMWORD PTR[((480-448))+r12] vpmuludq ymm7,ymm0,YMMWORD PTR[((256-128))+rsi] vmovdqu YMMWORD PTR[(448-448)+r12],ymm5 vpaddq ymm7,ymm7,YMMWORD PTR[((512-448))+r12] vmovdqu YMMWORD PTR[(480-448)+r12],ymm6 vmovdqu YMMWORD PTR[(512-448)+r12],ymm7 lea r12,QWORD PTR[8+r12] dec r14d jnz $L$OOP_SQR_1024 vmovdqu ymm8,YMMWORD PTR[256+rsp] vmovdqu ymm1,YMMWORD PTR[288+rsp] vmovdqu ymm2,YMMWORD PTR[320+rsp] lea rbx,QWORD PTR[192+rsp] vpsrlq ymm14,ymm8,29 vpand ymm8,ymm8,ymm15 vpsrlq ymm11,ymm1,29 vpand ymm1,ymm1,ymm15 vpermq ymm14,ymm14,093h vpxor ymm9,ymm9,ymm9 vpermq ymm11,ymm11,093h vpblendd ymm10,ymm14,ymm9,3 vpblendd ymm14,ymm11,ymm14,3 vpaddq ymm8,ymm8,ymm10 vpblendd ymm11,ymm9,ymm11,3 vpaddq ymm1,ymm1,ymm14 vpaddq ymm2,ymm2,ymm11 vmovdqu YMMWORD PTR[(288-192)+rbx],ymm1 vmovdqu YMMWORD PTR[(320-192)+rbx],ymm2 mov rax,QWORD PTR[rsp] mov r10,QWORD PTR[8+rsp] mov r11,QWORD PTR[16+rsp] mov r12,QWORD PTR[24+rsp] vmovdqu ymm1,YMMWORD PTR[32+rsp] vmovdqu ymm2,YMMWORD PTR[((64-192))+rbx] vmovdqu ymm3,YMMWORD PTR[((96-192))+rbx] vmovdqu ymm4,YMMWORD PTR[((128-192))+rbx] vmovdqu ymm5,YMMWORD PTR[((160-192))+rbx] vmovdqu ymm6,YMMWORD PTR[((192-192))+rbx] vmovdqu ymm7,YMMWORD PTR[((224-192))+rbx] mov r9,rax imul eax,ecx and eax,01fffffffh vmovd xmm12,eax mov rdx,rax imul rax,QWORD PTR[((-128))+r13] vpbroadcastq ymm12,xmm12 add r9,rax mov rax,rdx imul rax,QWORD PTR[((8-128))+r13] shr r9,29 add r10,rax mov rax,rdx imul rax,QWORD PTR[((16-128))+r13] add r10,r9 add r11,rax imul rdx,QWORD PTR[((24-128))+r13] add r12,rdx mov rax,r10 imul eax,ecx and eax,01fffffffh mov r14d,9 jmp $L$OOP_REDUCE_1024 ALIGN 32 $L$OOP_REDUCE_1024:: vmovd xmm13,eax vpbroadcastq ymm13,xmm13 vpmuludq ymm10,ymm12,YMMWORD PTR[((32-128))+r13] mov rdx,rax imul rax,QWORD PTR[((-128))+r13] vpaddq ymm1,ymm1,ymm10 add r10,rax vpmuludq ymm14,ymm12,YMMWORD PTR[((64-128))+r13] mov rax,rdx imul rax,QWORD PTR[((8-128))+r13] vpaddq ymm2,ymm2,ymm14 vpmuludq ymm11,ymm12,YMMWORD PTR[((96-128))+r13] DB 067h add r11,rax DB 067h mov rax,rdx imul rax,QWORD PTR[((16-128))+r13] shr r10,29 vpaddq ymm3,ymm3,ymm11 vpmuludq ymm10,ymm12,YMMWORD PTR[((128-128))+r13] add r12,rax add r11,r10 vpaddq ymm4,ymm4,ymm10 vpmuludq ymm14,ymm12,YMMWORD PTR[((160-128))+r13] mov rax,r11 imul eax,ecx vpaddq ymm5,ymm5,ymm14 vpmuludq ymm11,ymm12,YMMWORD PTR[((192-128))+r13] and eax,01fffffffh vpaddq ymm6,ymm6,ymm11 vpmuludq ymm10,ymm12,YMMWORD PTR[((224-128))+r13] vpaddq ymm7,ymm7,ymm10 vpmuludq ymm14,ymm12,YMMWORD PTR[((256-128))+r13] vmovd xmm12,eax vpaddq ymm8,ymm8,ymm14 vpbroadcastq ymm12,xmm12 vpmuludq ymm11,ymm13,YMMWORD PTR[((32-8-128))+r13] vmovdqu ymm14,YMMWORD PTR[((96-8-128))+r13] mov rdx,rax imul rax,QWORD PTR[((-128))+r13] vpaddq ymm1,ymm1,ymm11 vpmuludq ymm10,ymm13,YMMWORD PTR[((64-8-128))+r13] vmovdqu ymm11,YMMWORD PTR[((128-8-128))+r13] add r11,rax mov rax,rdx imul rax,QWORD PTR[((8-128))+r13] vpaddq ymm2,ymm2,ymm10 add rax,r12 shr r11,29 vpmuludq ymm14,ymm14,ymm13 vmovdqu ymm10,YMMWORD PTR[((160-8-128))+r13] add rax,r11 vpaddq ymm3,ymm3,ymm14 vpmuludq ymm11,ymm11,ymm13 vmovdqu ymm14,YMMWORD PTR[((192-8-128))+r13] DB 067h mov r12,rax imul eax,ecx vpaddq ymm4,ymm4,ymm11 vpmuludq ymm10,ymm10,ymm13 DB 0c4h,041h,07eh,06fh,09dh,058h,000h,000h,000h and eax,01fffffffh vpaddq ymm5,ymm5,ymm10 vpmuludq ymm14,ymm14,ymm13 vmovdqu ymm10,YMMWORD PTR[((256-8-128))+r13] vpaddq ymm6,ymm6,ymm14 vpmuludq ymm11,ymm11,ymm13 vmovdqu ymm9,YMMWORD PTR[((288-8-128))+r13] vmovd xmm0,eax imul rax,QWORD PTR[((-128))+r13] vpaddq ymm7,ymm7,ymm11 vpmuludq ymm10,ymm10,ymm13 vmovdqu ymm14,YMMWORD PTR[((32-16-128))+r13] vpbroadcastq ymm0,xmm0 vpaddq ymm8,ymm8,ymm10 vpmuludq ymm9,ymm9,ymm13 vmovdqu ymm11,YMMWORD PTR[((64-16-128))+r13] add r12,rax vmovdqu ymm13,YMMWORD PTR[((32-24-128))+r13] vpmuludq ymm14,ymm14,ymm12 vmovdqu ymm10,YMMWORD PTR[((96-16-128))+r13] vpaddq ymm1,ymm1,ymm14 vpmuludq ymm13,ymm13,ymm0 vpmuludq ymm11,ymm11,ymm12 DB 0c4h,041h,07eh,06fh,0b5h,0f0h,0ffh,0ffh,0ffh vpaddq ymm13,ymm13,ymm1 vpaddq ymm2,ymm2,ymm11 vpmuludq ymm10,ymm10,ymm12 vmovdqu ymm11,YMMWORD PTR[((160-16-128))+r13] DB 067h vmovq rax,xmm13 vmovdqu YMMWORD PTR[rsp],ymm13 vpaddq ymm3,ymm3,ymm10 vpmuludq ymm14,ymm14,ymm12 vmovdqu ymm10,YMMWORD PTR[((192-16-128))+r13] vpaddq ymm4,ymm4,ymm14 vpmuludq ymm11,ymm11,ymm12 vmovdqu ymm14,YMMWORD PTR[((224-16-128))+r13] vpaddq ymm5,ymm5,ymm11 vpmuludq ymm10,ymm10,ymm12 vmovdqu ymm11,YMMWORD PTR[((256-16-128))+r13] vpaddq ymm6,ymm6,ymm10 vpmuludq ymm14,ymm14,ymm12 shr r12,29 vmovdqu ymm10,YMMWORD PTR[((288-16-128))+r13] add rax,r12 vpaddq ymm7,ymm7,ymm14 vpmuludq ymm11,ymm11,ymm12 mov r9,rax imul eax,ecx vpaddq ymm8,ymm8,ymm11 vpmuludq ymm10,ymm10,ymm12 and eax,01fffffffh vmovd xmm12,eax vmovdqu ymm11,YMMWORD PTR[((96-24-128))+r13] DB 067h vpaddq ymm9,ymm9,ymm10 vpbroadcastq ymm12,xmm12 vpmuludq ymm14,ymm0,YMMWORD PTR[((64-24-128))+r13] vmovdqu ymm10,YMMWORD PTR[((128-24-128))+r13] mov rdx,rax imul rax,QWORD PTR[((-128))+r13] mov r10,QWORD PTR[8+rsp] vpaddq ymm1,ymm2,ymm14 vpmuludq ymm11,ymm11,ymm0 vmovdqu ymm14,YMMWORD PTR[((160-24-128))+r13] add r9,rax mov rax,rdx imul rax,QWORD PTR[((8-128))+r13] DB 067h shr r9,29 mov r11,QWORD PTR[16+rsp] vpaddq ymm2,ymm3,ymm11 vpmuludq ymm10,ymm10,ymm0 vmovdqu ymm11,YMMWORD PTR[((192-24-128))+r13] add r10,rax mov rax,rdx imul rax,QWORD PTR[((16-128))+r13] vpaddq ymm3,ymm4,ymm10 vpmuludq ymm14,ymm14,ymm0 vmovdqu ymm10,YMMWORD PTR[((224-24-128))+r13] imul rdx,QWORD PTR[((24-128))+r13] add r11,rax lea rax,QWORD PTR[r10*1+r9] vpaddq ymm4,ymm5,ymm14 vpmuludq ymm11,ymm11,ymm0 vmovdqu ymm14,YMMWORD PTR[((256-24-128))+r13] mov r10,rax imul eax,ecx vpmuludq ymm10,ymm10,ymm0 vpaddq ymm5,ymm6,ymm11 vmovdqu ymm11,YMMWORD PTR[((288-24-128))+r13] and eax,01fffffffh vpaddq ymm6,ymm7,ymm10 vpmuludq ymm14,ymm14,ymm0 add rdx,QWORD PTR[24+rsp] vpaddq ymm7,ymm8,ymm14 vpmuludq ymm11,ymm11,ymm0 vpaddq ymm8,ymm9,ymm11 vmovq xmm9,r12 mov r12,rdx dec r14d jnz $L$OOP_REDUCE_1024 lea r12,QWORD PTR[448+rsp] vpaddq ymm0,ymm13,ymm9 vpxor ymm9,ymm9,ymm9 vpaddq ymm0,ymm0,YMMWORD PTR[((288-192))+rbx] vpaddq ymm1,ymm1,YMMWORD PTR[((320-448))+r12] vpaddq ymm2,ymm2,YMMWORD PTR[((352-448))+r12] vpaddq ymm3,ymm3,YMMWORD PTR[((384-448))+r12] vpaddq ymm4,ymm4,YMMWORD PTR[((416-448))+r12] vpaddq ymm5,ymm5,YMMWORD PTR[((448-448))+r12] vpaddq ymm6,ymm6,YMMWORD PTR[((480-448))+r12] vpaddq ymm7,ymm7,YMMWORD PTR[((512-448))+r12] vpaddq ymm8,ymm8,YMMWORD PTR[((544-448))+r12] vpsrlq ymm14,ymm0,29 vpand ymm0,ymm0,ymm15 vpsrlq ymm11,ymm1,29 vpand ymm1,ymm1,ymm15 vpsrlq ymm12,ymm2,29 vpermq ymm14,ymm14,093h vpand ymm2,ymm2,ymm15 vpsrlq ymm13,ymm3,29 vpermq ymm11,ymm11,093h vpand ymm3,ymm3,ymm15 vpermq ymm12,ymm12,093h vpblendd ymm10,ymm14,ymm9,3 vpermq ymm13,ymm13,093h vpblendd ymm14,ymm11,ymm14,3 vpaddq ymm0,ymm0,ymm10 vpblendd ymm11,ymm12,ymm11,3 vpaddq ymm1,ymm1,ymm14 vpblendd ymm12,ymm13,ymm12,3 vpaddq ymm2,ymm2,ymm11 vpblendd ymm13,ymm9,ymm13,3 vpaddq ymm3,ymm3,ymm12 vpaddq ymm4,ymm4,ymm13 vpsrlq ymm14,ymm0,29 vpand ymm0,ymm0,ymm15 vpsrlq ymm11,ymm1,29 vpand ymm1,ymm1,ymm15 vpsrlq ymm12,ymm2,29 vpermq ymm14,ymm14,093h vpand ymm2,ymm2,ymm15 vpsrlq ymm13,ymm3,29 vpermq ymm11,ymm11,093h vpand ymm3,ymm3,ymm15 vpermq ymm12,ymm12,093h vpblendd ymm10,ymm14,ymm9,3 vpermq ymm13,ymm13,093h vpblendd ymm14,ymm11,ymm14,3 vpaddq ymm0,ymm0,ymm10 vpblendd ymm11,ymm12,ymm11,3 vpaddq ymm1,ymm1,ymm14 vmovdqu YMMWORD PTR[(0-128)+rdi],ymm0 vpblendd ymm12,ymm13,ymm12,3 vpaddq ymm2,ymm2,ymm11 vmovdqu YMMWORD PTR[(32-128)+rdi],ymm1 vpblendd ymm13,ymm9,ymm13,3 vpaddq ymm3,ymm3,ymm12 vmovdqu YMMWORD PTR[(64-128)+rdi],ymm2 vpaddq ymm4,ymm4,ymm13 vmovdqu YMMWORD PTR[(96-128)+rdi],ymm3 vpsrlq ymm14,ymm4,29 vpand ymm4,ymm4,ymm15 vpsrlq ymm11,ymm5,29 vpand ymm5,ymm5,ymm15 vpsrlq ymm12,ymm6,29 vpermq ymm14,ymm14,093h vpand ymm6,ymm6,ymm15 vpsrlq ymm13,ymm7,29 vpermq ymm11,ymm11,093h vpand ymm7,ymm7,ymm15 vpsrlq ymm0,ymm8,29 vpermq ymm12,ymm12,093h vpand ymm8,ymm8,ymm15 vpermq ymm13,ymm13,093h vpblendd ymm10,ymm14,ymm9,3 vpermq ymm0,ymm0,093h vpblendd ymm14,ymm11,ymm14,3 vpaddq ymm4,ymm4,ymm10 vpblendd ymm11,ymm12,ymm11,3 vpaddq ymm5,ymm5,ymm14 vpblendd ymm12,ymm13,ymm12,3 vpaddq ymm6,ymm6,ymm11 vpblendd ymm13,ymm0,ymm13,3 vpaddq ymm7,ymm7,ymm12 vpaddq ymm8,ymm8,ymm13 vpsrlq ymm14,ymm4,29 vpand ymm4,ymm4,ymm15 vpsrlq ymm11,ymm5,29 vpand ymm5,ymm5,ymm15 vpsrlq ymm12,ymm6,29 vpermq ymm14,ymm14,093h vpand ymm6,ymm6,ymm15 vpsrlq ymm13,ymm7,29 vpermq ymm11,ymm11,093h vpand ymm7,ymm7,ymm15 vpsrlq ymm0,ymm8,29 vpermq ymm12,ymm12,093h vpand ymm8,ymm8,ymm15 vpermq ymm13,ymm13,093h vpblendd ymm10,ymm14,ymm9,3 vpermq ymm0,ymm0,093h vpblendd ymm14,ymm11,ymm14,3 vpaddq ymm4,ymm4,ymm10 vpblendd ymm11,ymm12,ymm11,3 vpaddq ymm5,ymm5,ymm14 vmovdqu YMMWORD PTR[(128-128)+rdi],ymm4 vpblendd ymm12,ymm13,ymm12,3 vpaddq ymm6,ymm6,ymm11 vmovdqu YMMWORD PTR[(160-128)+rdi],ymm5 vpblendd ymm13,ymm0,ymm13,3 vpaddq ymm7,ymm7,ymm12 vmovdqu YMMWORD PTR[(192-128)+rdi],ymm6 vpaddq ymm8,ymm8,ymm13 vmovdqu YMMWORD PTR[(224-128)+rdi],ymm7 vmovdqu YMMWORD PTR[(256-128)+rdi],ymm8 mov rsi,rdi dec r8d jne $L$OOP_GRANDE_SQR_1024 vzeroall mov rax,rbp $L$sqr_1024_in_tail:: movaps xmm6,XMMWORD PTR[((-216))+rax] movaps xmm7,XMMWORD PTR[((-200))+rax] movaps xmm8,XMMWORD PTR[((-184))+rax] movaps xmm9,XMMWORD PTR[((-168))+rax] movaps xmm10,XMMWORD PTR[((-152))+rax] movaps xmm11,XMMWORD PTR[((-136))+rax] movaps xmm12,XMMWORD PTR[((-120))+rax] movaps xmm13,XMMWORD PTR[((-104))+rax] movaps xmm14,XMMWORD PTR[((-88))+rax] movaps xmm15,XMMWORD PTR[((-72))+rax] mov r15,QWORD PTR[((-48))+rax] mov r14,QWORD PTR[((-40))+rax] mov r13,QWORD PTR[((-32))+rax] mov r12,QWORD PTR[((-24))+rax] mov rbp,QWORD PTR[((-16))+rax] mov rbx,QWORD PTR[((-8))+rax] lea rsp,QWORD PTR[rax] $L$sqr_1024_epilogue:: mov rdi,QWORD PTR[8+rsp] ;WIN64 epilogue mov rsi,QWORD PTR[16+rsp] DB 0F3h,0C3h ;repret $L$SEH_end_rsaz_1024_sqr_avx2:: rsaz_1024_sqr_avx2 ENDP PUBLIC rsaz_1024_mul_avx2 ALIGN 64 rsaz_1024_mul_avx2 PROC PUBLIC mov QWORD PTR[8+rsp],rdi ;WIN64 prologue mov QWORD PTR[16+rsp],rsi mov rax,rsp $L$SEH_begin_rsaz_1024_mul_avx2:: mov rdi,rcx mov rsi,rdx mov rdx,r8 mov rcx,r9 mov r8,QWORD PTR[40+rsp] lea rax,QWORD PTR[rsp] push rbx push rbp push r12 push r13 push r14 push r15 vzeroupper lea rsp,QWORD PTR[((-168))+rsp] vmovaps XMMWORD PTR[(-216)+rax],xmm6 vmovaps XMMWORD PTR[(-200)+rax],xmm7 vmovaps XMMWORD PTR[(-184)+rax],xmm8 vmovaps XMMWORD PTR[(-168)+rax],xmm9 vmovaps XMMWORD PTR[(-152)+rax],xmm10 vmovaps XMMWORD PTR[(-136)+rax],xmm11 vmovaps XMMWORD PTR[(-120)+rax],xmm12 vmovaps XMMWORD PTR[(-104)+rax],xmm13 vmovaps XMMWORD PTR[(-88)+rax],xmm14 vmovaps XMMWORD PTR[(-72)+rax],xmm15 $L$mul_1024_body:: mov rbp,rax vzeroall mov r13,rdx sub rsp,64 DB 067h,067h mov r15,rsi and r15,4095 add r15,32*10 shr r15,12 mov r15,rsi cmovnz rsi,r13 cmovnz r13,r15 mov r15,rcx sub rsi,-128 sub rcx,-128 sub rdi,-128 and r15,4095 add r15,32*10 DB 067h,067h shr r15,12 jz $L$mul_1024_no_n_copy sub rsp,32*10 vmovdqu ymm0,YMMWORD PTR[((0-128))+rcx] and rsp,-512 vmovdqu ymm1,YMMWORD PTR[((32-128))+rcx] vmovdqu ymm2,YMMWORD PTR[((64-128))+rcx] vmovdqu ymm3,YMMWORD PTR[((96-128))+rcx] vmovdqu ymm4,YMMWORD PTR[((128-128))+rcx] vmovdqu ymm5,YMMWORD PTR[((160-128))+rcx] vmovdqu ymm6,YMMWORD PTR[((192-128))+rcx] vmovdqu ymm7,YMMWORD PTR[((224-128))+rcx] vmovdqu ymm8,YMMWORD PTR[((256-128))+rcx] lea rcx,QWORD PTR[((64+128))+rsp] vmovdqu YMMWORD PTR[(0-128)+rcx],ymm0 vpxor ymm0,ymm0,ymm0 vmovdqu YMMWORD PTR[(32-128)+rcx],ymm1 vpxor ymm1,ymm1,ymm1 vmovdqu YMMWORD PTR[(64-128)+rcx],ymm2 vpxor ymm2,ymm2,ymm2 vmovdqu YMMWORD PTR[(96-128)+rcx],ymm3 vpxor ymm3,ymm3,ymm3 vmovdqu YMMWORD PTR[(128-128)+rcx],ymm4 vpxor ymm4,ymm4,ymm4 vmovdqu YMMWORD PTR[(160-128)+rcx],ymm5 vpxor ymm5,ymm5,ymm5 vmovdqu YMMWORD PTR[(192-128)+rcx],ymm6 vpxor ymm6,ymm6,ymm6 vmovdqu YMMWORD PTR[(224-128)+rcx],ymm7 vpxor ymm7,ymm7,ymm7 vmovdqu YMMWORD PTR[(256-128)+rcx],ymm8 vmovdqa ymm8,ymm0 vmovdqu YMMWORD PTR[(288-128)+rcx],ymm9 $L$mul_1024_no_n_copy:: and rsp,-64 mov rbx,QWORD PTR[r13] vpbroadcastq ymm10,QWORD PTR[r13] vmovdqu YMMWORD PTR[rsp],ymm0 xor r9,r9 DB 067h xor r10,r10 xor r11,r11 xor r12,r12 vmovdqu ymm15,YMMWORD PTR[$L$and_mask] mov r14d,9 vmovdqu YMMWORD PTR[(288-128)+rdi],ymm9 jmp $L$oop_mul_1024 ALIGN 32 $L$oop_mul_1024:: vpsrlq ymm9,ymm3,29 mov rax,rbx imul rax,QWORD PTR[((-128))+rsi] add rax,r9 mov r10,rbx imul r10,QWORD PTR[((8-128))+rsi] add r10,QWORD PTR[8+rsp] mov r9,rax imul eax,r8d and eax,01fffffffh mov r11,rbx imul r11,QWORD PTR[((16-128))+rsi] add r11,QWORD PTR[16+rsp] mov r12,rbx imul r12,QWORD PTR[((24-128))+rsi] add r12,QWORD PTR[24+rsp] vpmuludq ymm0,ymm10,YMMWORD PTR[((32-128))+rsi] vmovd xmm11,eax vpaddq ymm1,ymm1,ymm0 vpmuludq ymm12,ymm10,YMMWORD PTR[((64-128))+rsi] vpbroadcastq ymm11,xmm11 vpaddq ymm2,ymm2,ymm12 vpmuludq ymm13,ymm10,YMMWORD PTR[((96-128))+rsi] vpand ymm3,ymm3,ymm15 vpaddq ymm3,ymm3,ymm13 vpmuludq ymm0,ymm10,YMMWORD PTR[((128-128))+rsi] vpaddq ymm4,ymm4,ymm0 vpmuludq ymm12,ymm10,YMMWORD PTR[((160-128))+rsi] vpaddq ymm5,ymm5,ymm12 vpmuludq ymm13,ymm10,YMMWORD PTR[((192-128))+rsi] vpaddq ymm6,ymm6,ymm13 vpmuludq ymm0,ymm10,YMMWORD PTR[((224-128))+rsi] vpermq ymm9,ymm9,093h vpaddq ymm7,ymm7,ymm0 vpmuludq ymm12,ymm10,YMMWORD PTR[((256-128))+rsi] vpbroadcastq ymm10,QWORD PTR[8+r13] vpaddq ymm8,ymm8,ymm12 mov rdx,rax imul rax,QWORD PTR[((-128))+rcx] add r9,rax mov rax,rdx imul rax,QWORD PTR[((8-128))+rcx] add r10,rax mov rax,rdx imul rax,QWORD PTR[((16-128))+rcx] add r11,rax shr r9,29 imul rdx,QWORD PTR[((24-128))+rcx] add r12,rdx add r10,r9 vpmuludq ymm13,ymm11,YMMWORD PTR[((32-128))+rcx] vmovq rbx,xmm10 vpaddq ymm1,ymm1,ymm13 vpmuludq ymm0,ymm11,YMMWORD PTR[((64-128))+rcx] vpaddq ymm2,ymm2,ymm0 vpmuludq ymm12,ymm11,YMMWORD PTR[((96-128))+rcx] vpaddq ymm3,ymm3,ymm12 vpmuludq ymm13,ymm11,YMMWORD PTR[((128-128))+rcx] vpaddq ymm4,ymm4,ymm13 vpmuludq ymm0,ymm11,YMMWORD PTR[((160-128))+rcx] vpaddq ymm5,ymm5,ymm0 vpmuludq ymm12,ymm11,YMMWORD PTR[((192-128))+rcx] vpaddq ymm6,ymm6,ymm12 vpmuludq ymm13,ymm11,YMMWORD PTR[((224-128))+rcx] vpblendd ymm12,ymm9,ymm14,3 vpaddq ymm7,ymm7,ymm13 vpmuludq ymm0,ymm11,YMMWORD PTR[((256-128))+rcx] vpaddq ymm3,ymm3,ymm12 vpaddq ymm8,ymm8,ymm0 mov rax,rbx imul rax,QWORD PTR[((-128))+rsi] add r10,rax vmovdqu ymm12,YMMWORD PTR[((-8+32-128))+rsi] mov rax,rbx imul rax,QWORD PTR[((8-128))+rsi] add r11,rax vmovdqu ymm13,YMMWORD PTR[((-8+64-128))+rsi] mov rax,r10 vpblendd ymm9,ymm9,ymm14,0fch imul eax,r8d vpaddq ymm4,ymm4,ymm9 and eax,01fffffffh imul rbx,QWORD PTR[((16-128))+rsi] add r12,rbx vpmuludq ymm12,ymm12,ymm10 vmovd xmm11,eax vmovdqu ymm0,YMMWORD PTR[((-8+96-128))+rsi] vpaddq ymm1,ymm1,ymm12 vpmuludq ymm13,ymm13,ymm10 vpbroadcastq ymm11,xmm11 vmovdqu ymm12,YMMWORD PTR[((-8+128-128))+rsi] vpaddq ymm2,ymm2,ymm13 vpmuludq ymm0,ymm0,ymm10 vmovdqu ymm13,YMMWORD PTR[((-8+160-128))+rsi] vpaddq ymm3,ymm3,ymm0 vpmuludq ymm12,ymm12,ymm10 vmovdqu ymm0,YMMWORD PTR[((-8+192-128))+rsi] vpaddq ymm4,ymm4,ymm12 vpmuludq ymm13,ymm13,ymm10 vmovdqu ymm12,YMMWORD PTR[((-8+224-128))+rsi] vpaddq ymm5,ymm5,ymm13 vpmuludq ymm0,ymm0,ymm10 vmovdqu ymm13,YMMWORD PTR[((-8+256-128))+rsi] vpaddq ymm6,ymm6,ymm0 vpmuludq ymm12,ymm12,ymm10 vmovdqu ymm9,YMMWORD PTR[((-8+288-128))+rsi] vpaddq ymm7,ymm7,ymm12 vpmuludq ymm13,ymm13,ymm10 vpaddq ymm8,ymm8,ymm13 vpmuludq ymm9,ymm9,ymm10 vpbroadcastq ymm10,QWORD PTR[16+r13] mov rdx,rax imul rax,QWORD PTR[((-128))+rcx] add r10,rax vmovdqu ymm0,YMMWORD PTR[((-8+32-128))+rcx] mov rax,rdx imul rax,QWORD PTR[((8-128))+rcx] add r11,rax vmovdqu ymm12,YMMWORD PTR[((-8+64-128))+rcx] shr r10,29 imul rdx,QWORD PTR[((16-128))+rcx] add r12,rdx add r11,r10 vpmuludq ymm0,ymm0,ymm11 vmovq rbx,xmm10 vmovdqu ymm13,YMMWORD PTR[((-8+96-128))+rcx] vpaddq ymm1,ymm1,ymm0 vpmuludq ymm12,ymm12,ymm11 vmovdqu ymm0,YMMWORD PTR[((-8+128-128))+rcx] vpaddq ymm2,ymm2,ymm12 vpmuludq ymm13,ymm13,ymm11 vmovdqu ymm12,YMMWORD PTR[((-8+160-128))+rcx] vpaddq ymm3,ymm3,ymm13 vpmuludq ymm0,ymm0,ymm11 vmovdqu ymm13,YMMWORD PTR[((-8+192-128))+rcx] vpaddq ymm4,ymm4,ymm0 vpmuludq ymm12,ymm12,ymm11 vmovdqu ymm0,YMMWORD PTR[((-8+224-128))+rcx] vpaddq ymm5,ymm5,ymm12 vpmuludq ymm13,ymm13,ymm11 vmovdqu ymm12,YMMWORD PTR[((-8+256-128))+rcx] vpaddq ymm6,ymm6,ymm13 vpmuludq ymm0,ymm0,ymm11 vmovdqu ymm13,YMMWORD PTR[((-8+288-128))+rcx] vpaddq ymm7,ymm7,ymm0 vpmuludq ymm12,ymm12,ymm11 vpaddq ymm8,ymm8,ymm12 vpmuludq ymm13,ymm13,ymm11 vpaddq ymm9,ymm9,ymm13 vmovdqu ymm0,YMMWORD PTR[((-16+32-128))+rsi] mov rax,rbx imul rax,QWORD PTR[((-128))+rsi] add rax,r11 vmovdqu ymm12,YMMWORD PTR[((-16+64-128))+rsi] mov r11,rax imul eax,r8d and eax,01fffffffh imul rbx,QWORD PTR[((8-128))+rsi] add r12,rbx vpmuludq ymm0,ymm0,ymm10 vmovd xmm11,eax vmovdqu ymm13,YMMWORD PTR[((-16+96-128))+rsi] vpaddq ymm1,ymm1,ymm0 vpmuludq ymm12,ymm12,ymm10 vpbroadcastq ymm11,xmm11 vmovdqu ymm0,YMMWORD PTR[((-16+128-128))+rsi] vpaddq ymm2,ymm2,ymm12 vpmuludq ymm13,ymm13,ymm10 vmovdqu ymm12,YMMWORD PTR[((-16+160-128))+rsi] vpaddq ymm3,ymm3,ymm13 vpmuludq ymm0,ymm0,ymm10 vmovdqu ymm13,YMMWORD PTR[((-16+192-128))+rsi] vpaddq ymm4,ymm4,ymm0 vpmuludq ymm12,ymm12,ymm10 vmovdqu ymm0,YMMWORD PTR[((-16+224-128))+rsi] vpaddq ymm5,ymm5,ymm12 vpmuludq ymm13,ymm13,ymm10 vmovdqu ymm12,YMMWORD PTR[((-16+256-128))+rsi] vpaddq ymm6,ymm6,ymm13 vpmuludq ymm0,ymm0,ymm10 vmovdqu ymm13,YMMWORD PTR[((-16+288-128))+rsi] vpaddq ymm7,ymm7,ymm0 vpmuludq ymm12,ymm12,ymm10 vpaddq ymm8,ymm8,ymm12 vpmuludq ymm13,ymm13,ymm10 vpbroadcastq ymm10,QWORD PTR[24+r13] vpaddq ymm9,ymm9,ymm13 vmovdqu ymm0,YMMWORD PTR[((-16+32-128))+rcx] mov rdx,rax imul rax,QWORD PTR[((-128))+rcx] add r11,rax vmovdqu ymm12,YMMWORD PTR[((-16+64-128))+rcx] imul rdx,QWORD PTR[((8-128))+rcx] add r12,rdx shr r11,29 vpmuludq ymm0,ymm0,ymm11 vmovq rbx,xmm10 vmovdqu ymm13,YMMWORD PTR[((-16+96-128))+rcx] vpaddq ymm1,ymm1,ymm0 vpmuludq ymm12,ymm12,ymm11 vmovdqu ymm0,YMMWORD PTR[((-16+128-128))+rcx] vpaddq ymm2,ymm2,ymm12 vpmuludq ymm13,ymm13,ymm11 vmovdqu ymm12,YMMWORD PTR[((-16+160-128))+rcx] vpaddq ymm3,ymm3,ymm13 vpmuludq ymm0,ymm0,ymm11 vmovdqu ymm13,YMMWORD PTR[((-16+192-128))+rcx] vpaddq ymm4,ymm4,ymm0 vpmuludq ymm12,ymm12,ymm11 vmovdqu ymm0,YMMWORD PTR[((-16+224-128))+rcx] vpaddq ymm5,ymm5,ymm12 vpmuludq ymm13,ymm13,ymm11 vmovdqu ymm12,YMMWORD PTR[((-16+256-128))+rcx] vpaddq ymm6,ymm6,ymm13 vpmuludq ymm0,ymm0,ymm11 vmovdqu ymm13,YMMWORD PTR[((-16+288-128))+rcx] vpaddq ymm7,ymm7,ymm0 vpmuludq ymm12,ymm12,ymm11 vmovdqu ymm0,YMMWORD PTR[((-24+32-128))+rsi] vpaddq ymm8,ymm8,ymm12 vpmuludq ymm13,ymm13,ymm11 vmovdqu ymm12,YMMWORD PTR[((-24+64-128))+rsi] vpaddq ymm9,ymm9,ymm13 add r12,r11 imul rbx,QWORD PTR[((-128))+rsi] add r12,rbx mov rax,r12 imul eax,r8d and eax,01fffffffh vpmuludq ymm0,ymm0,ymm10 vmovd xmm11,eax vmovdqu ymm13,YMMWORD PTR[((-24+96-128))+rsi] vpaddq ymm1,ymm1,ymm0 vpmuludq ymm12,ymm12,ymm10 vpbroadcastq ymm11,xmm11 vmovdqu ymm0,YMMWORD PTR[((-24+128-128))+rsi] vpaddq ymm2,ymm2,ymm12 vpmuludq ymm13,ymm13,ymm10 vmovdqu ymm12,YMMWORD PTR[((-24+160-128))+rsi] vpaddq ymm3,ymm3,ymm13 vpmuludq ymm0,ymm0,ymm10 vmovdqu ymm13,YMMWORD PTR[((-24+192-128))+rsi] vpaddq ymm4,ymm4,ymm0 vpmuludq ymm12,ymm12,ymm10 vmovdqu ymm0,YMMWORD PTR[((-24+224-128))+rsi] vpaddq ymm5,ymm5,ymm12 vpmuludq ymm13,ymm13,ymm10 vmovdqu ymm12,YMMWORD PTR[((-24+256-128))+rsi] vpaddq ymm6,ymm6,ymm13 vpmuludq ymm0,ymm0,ymm10 vmovdqu ymm13,YMMWORD PTR[((-24+288-128))+rsi] vpaddq ymm7,ymm7,ymm0 vpmuludq ymm12,ymm12,ymm10 vpaddq ymm8,ymm8,ymm12 vpmuludq ymm13,ymm13,ymm10 vpbroadcastq ymm10,QWORD PTR[32+r13] vpaddq ymm9,ymm9,ymm13 add r13,32 vmovdqu ymm0,YMMWORD PTR[((-24+32-128))+rcx] imul rax,QWORD PTR[((-128))+rcx] add r12,rax shr r12,29 vmovdqu ymm12,YMMWORD PTR[((-24+64-128))+rcx] vpmuludq ymm0,ymm0,ymm11 vmovq rbx,xmm10 vmovdqu ymm13,YMMWORD PTR[((-24+96-128))+rcx] vpaddq ymm0,ymm1,ymm0 vpmuludq ymm12,ymm12,ymm11 vmovdqu YMMWORD PTR[rsp],ymm0 vpaddq ymm1,ymm2,ymm12 vmovdqu ymm0,YMMWORD PTR[((-24+128-128))+rcx] vpmuludq ymm13,ymm13,ymm11 vmovdqu ymm12,YMMWORD PTR[((-24+160-128))+rcx] vpaddq ymm2,ymm3,ymm13 vpmuludq ymm0,ymm0,ymm11 vmovdqu ymm13,YMMWORD PTR[((-24+192-128))+rcx] vpaddq ymm3,ymm4,ymm0 vpmuludq ymm12,ymm12,ymm11 vmovdqu ymm0,YMMWORD PTR[((-24+224-128))+rcx] vpaddq ymm4,ymm5,ymm12 vpmuludq ymm13,ymm13,ymm11 vmovdqu ymm12,YMMWORD PTR[((-24+256-128))+rcx] vpaddq ymm5,ymm6,ymm13 vpmuludq ymm0,ymm0,ymm11 vmovdqu ymm13,YMMWORD PTR[((-24+288-128))+rcx] mov r9,r12 vpaddq ymm6,ymm7,ymm0 vpmuludq ymm12,ymm12,ymm11 add r9,QWORD PTR[rsp] vpaddq ymm7,ymm8,ymm12 vpmuludq ymm13,ymm13,ymm11 vmovq xmm12,r12 vpaddq ymm8,ymm9,ymm13 dec r14d jnz $L$oop_mul_1024 vpaddq ymm0,ymm12,YMMWORD PTR[rsp] vpsrlq ymm12,ymm0,29 vpand ymm0,ymm0,ymm15 vpsrlq ymm13,ymm1,29 vpand ymm1,ymm1,ymm15 vpsrlq ymm10,ymm2,29 vpermq ymm12,ymm12,093h vpand ymm2,ymm2,ymm15 vpsrlq ymm11,ymm3,29 vpermq ymm13,ymm13,093h vpand ymm3,ymm3,ymm15 vpblendd ymm9,ymm12,ymm14,3 vpermq ymm10,ymm10,093h vpblendd ymm12,ymm13,ymm12,3 vpermq ymm11,ymm11,093h vpaddq ymm0,ymm0,ymm9 vpblendd ymm13,ymm10,ymm13,3 vpaddq ymm1,ymm1,ymm12 vpblendd ymm10,ymm11,ymm10,3 vpaddq ymm2,ymm2,ymm13 vpblendd ymm11,ymm14,ymm11,3 vpaddq ymm3,ymm3,ymm10 vpaddq ymm4,ymm4,ymm11 vpsrlq ymm12,ymm0,29 vpand ymm0,ymm0,ymm15 vpsrlq ymm13,ymm1,29 vpand ymm1,ymm1,ymm15 vpsrlq ymm10,ymm2,29 vpermq ymm12,ymm12,093h vpand ymm2,ymm2,ymm15 vpsrlq ymm11,ymm3,29 vpermq ymm13,ymm13,093h vpand ymm3,ymm3,ymm15 vpermq ymm10,ymm10,093h vpblendd ymm9,ymm12,ymm14,3 vpermq ymm11,ymm11,093h vpblendd ymm12,ymm13,ymm12,3 vpaddq ymm0,ymm0,ymm9 vpblendd ymm13,ymm10,ymm13,3 vpaddq ymm1,ymm1,ymm12 vpblendd ymm10,ymm11,ymm10,3 vpaddq ymm2,ymm2,ymm13 vpblendd ymm11,ymm14,ymm11,3 vpaddq ymm3,ymm3,ymm10 vpaddq ymm4,ymm4,ymm11 vmovdqu YMMWORD PTR[(0-128)+rdi],ymm0 vmovdqu YMMWORD PTR[(32-128)+rdi],ymm1 vmovdqu YMMWORD PTR[(64-128)+rdi],ymm2 vmovdqu YMMWORD PTR[(96-128)+rdi],ymm3 vpsrlq ymm12,ymm4,29 vpand ymm4,ymm4,ymm15 vpsrlq ymm13,ymm5,29 vpand ymm5,ymm5,ymm15 vpsrlq ymm10,ymm6,29 vpermq ymm12,ymm12,093h vpand ymm6,ymm6,ymm15 vpsrlq ymm11,ymm7,29 vpermq ymm13,ymm13,093h vpand ymm7,ymm7,ymm15 vpsrlq ymm0,ymm8,29 vpermq ymm10,ymm10,093h vpand ymm8,ymm8,ymm15 vpermq ymm11,ymm11,093h vpblendd ymm9,ymm12,ymm14,3 vpermq ymm0,ymm0,093h vpblendd ymm12,ymm13,ymm12,3 vpaddq ymm4,ymm4,ymm9 vpblendd ymm13,ymm10,ymm13,3 vpaddq ymm5,ymm5,ymm12 vpblendd ymm10,ymm11,ymm10,3 vpaddq ymm6,ymm6,ymm13 vpblendd ymm11,ymm0,ymm11,3 vpaddq ymm7,ymm7,ymm10 vpaddq ymm8,ymm8,ymm11 vpsrlq ymm12,ymm4,29 vpand ymm4,ymm4,ymm15 vpsrlq ymm13,ymm5,29 vpand ymm5,ymm5,ymm15 vpsrlq ymm10,ymm6,29 vpermq ymm12,ymm12,093h vpand ymm6,ymm6,ymm15 vpsrlq ymm11,ymm7,29 vpermq ymm13,ymm13,093h vpand ymm7,ymm7,ymm15 vpsrlq ymm0,ymm8,29 vpermq ymm10,ymm10,093h vpand ymm8,ymm8,ymm15 vpermq ymm11,ymm11,093h vpblendd ymm9,ymm12,ymm14,3 vpermq ymm0,ymm0,093h vpblendd ymm12,ymm13,ymm12,3 vpaddq ymm4,ymm4,ymm9 vpblendd ymm13,ymm10,ymm13,3 vpaddq ymm5,ymm5,ymm12 vpblendd ymm10,ymm11,ymm10,3 vpaddq ymm6,ymm6,ymm13 vpblendd ymm11,ymm0,ymm11,3 vpaddq ymm7,ymm7,ymm10 vpaddq ymm8,ymm8,ymm11 vmovdqu YMMWORD PTR[(128-128)+rdi],ymm4 vmovdqu YMMWORD PTR[(160-128)+rdi],ymm5 vmovdqu YMMWORD PTR[(192-128)+rdi],ymm6 vmovdqu YMMWORD PTR[(224-128)+rdi],ymm7 vmovdqu YMMWORD PTR[(256-128)+rdi],ymm8 vzeroupper mov rax,rbp $L$mul_1024_in_tail:: movaps xmm6,XMMWORD PTR[((-216))+rax] movaps xmm7,XMMWORD PTR[((-200))+rax] movaps xmm8,XMMWORD PTR[((-184))+rax] movaps xmm9,XMMWORD PTR[((-168))+rax] movaps xmm10,XMMWORD PTR[((-152))+rax] movaps xmm11,XMMWORD PTR[((-136))+rax] movaps xmm12,XMMWORD PTR[((-120))+rax] movaps xmm13,XMMWORD PTR[((-104))+rax] movaps xmm14,XMMWORD PTR[((-88))+rax] movaps xmm15,XMMWORD PTR[((-72))+rax] mov r15,QWORD PTR[((-48))+rax] mov r14,QWORD PTR[((-40))+rax] mov r13,QWORD PTR[((-32))+rax] mov r12,QWORD PTR[((-24))+rax] mov rbp,QWORD PTR[((-16))+rax] mov rbx,QWORD PTR[((-8))+rax] lea rsp,QWORD PTR[rax] $L$mul_1024_epilogue:: mov rdi,QWORD PTR[8+rsp] ;WIN64 epilogue mov rsi,QWORD PTR[16+rsp] DB 0F3h,0C3h ;repret $L$SEH_end_rsaz_1024_mul_avx2:: rsaz_1024_mul_avx2 ENDP PUBLIC rsaz_1024_red2norm_avx2 ALIGN 32 rsaz_1024_red2norm_avx2 PROC PUBLIC sub rdx,-128 xor rax,rax mov r8,QWORD PTR[((-128))+rdx] mov r9,QWORD PTR[((-120))+rdx] mov r10,QWORD PTR[((-112))+rdx] shl r8,0 shl r9,29 mov r11,r10 shl r10,58 shr r11,6 add rax,r8 add rax,r9 add rax,r10 adc r11,0 mov QWORD PTR[rcx],rax mov rax,r11 mov r8,QWORD PTR[((-104))+rdx] mov r9,QWORD PTR[((-96))+rdx] shl r8,23 mov r10,r9 shl r9,52 shr r10,12 add rax,r8 add rax,r9 adc r10,0 mov QWORD PTR[8+rcx],rax mov rax,r10 mov r11,QWORD PTR[((-88))+rdx] mov r8,QWORD PTR[((-80))+rdx] shl r11,17 mov r9,r8 shl r8,46 shr r9,18 add rax,r11 add rax,r8 adc r9,0 mov QWORD PTR[16+rcx],rax mov rax,r9 mov r10,QWORD PTR[((-72))+rdx] mov r11,QWORD PTR[((-64))+rdx] shl r10,11 mov r8,r11 shl r11,40 shr r8,24 add rax,r10 add rax,r11 adc r8,0 mov QWORD PTR[24+rcx],rax mov rax,r8 mov r9,QWORD PTR[((-56))+rdx] mov r10,QWORD PTR[((-48))+rdx] mov r11,QWORD PTR[((-40))+rdx] shl r9,5 shl r10,34 mov r8,r11 shl r11,63 shr r8,1 add rax,r9 add rax,r10 add rax,r11 adc r8,0 mov QWORD PTR[32+rcx],rax mov rax,r8 mov r9,QWORD PTR[((-32))+rdx] mov r10,QWORD PTR[((-24))+rdx] shl r9,28 mov r11,r10 shl r10,57 shr r11,7 add rax,r9 add rax,r10 adc r11,0 mov QWORD PTR[40+rcx],rax mov rax,r11 mov r8,QWORD PTR[((-16))+rdx] mov r9,QWORD PTR[((-8))+rdx] shl r8,22 mov r10,r9 shl r9,51 shr r10,13 add rax,r8 add rax,r9 adc r10,0 mov QWORD PTR[48+rcx],rax mov rax,r10 mov r11,QWORD PTR[rdx] mov r8,QWORD PTR[8+rdx] shl r11,16 mov r9,r8 shl r8,45 shr r9,19 add rax,r11 add rax,r8 adc r9,0 mov QWORD PTR[56+rcx],rax mov rax,r9 mov r10,QWORD PTR[16+rdx] mov r11,QWORD PTR[24+rdx] shl r10,10 mov r8,r11 shl r11,39 shr r8,25 add rax,r10 add rax,r11 adc r8,0 mov QWORD PTR[64+rcx],rax mov rax,r8 mov r9,QWORD PTR[32+rdx] mov r10,QWORD PTR[40+rdx] mov r11,QWORD PTR[48+rdx] shl r9,4 shl r10,33 mov r8,r11 shl r11,62 shr r8,2 add rax,r9 add rax,r10 add rax,r11 adc r8,0 mov QWORD PTR[72+rcx],rax mov rax,r8 mov r9,QWORD PTR[56+rdx] mov r10,QWORD PTR[64+rdx] shl r9,27 mov r11,r10 shl r10,56 shr r11,8 add rax,r9 add rax,r10 adc r11,0 mov QWORD PTR[80+rcx],rax mov rax,r11 mov r8,QWORD PTR[72+rdx] mov r9,QWORD PTR[80+rdx] shl r8,21 mov r10,r9 shl r9,50 shr r10,14 add rax,r8 add rax,r9 adc r10,0 mov QWORD PTR[88+rcx],rax mov rax,r10 mov r11,QWORD PTR[88+rdx] mov r8,QWORD PTR[96+rdx] shl r11,15 mov r9,r8 shl r8,44 shr r9,20 add rax,r11 add rax,r8 adc r9,0 mov QWORD PTR[96+rcx],rax mov rax,r9 mov r10,QWORD PTR[104+rdx] mov r11,QWORD PTR[112+rdx] shl r10,9 mov r8,r11 shl r11,38 shr r8,26 add rax,r10 add rax,r11 adc r8,0 mov QWORD PTR[104+rcx],rax mov rax,r8 mov r9,QWORD PTR[120+rdx] mov r10,QWORD PTR[128+rdx] mov r11,QWORD PTR[136+rdx] shl r9,3 shl r10,32 mov r8,r11 shl r11,61 shr r8,3 add rax,r9 add rax,r10 add rax,r11 adc r8,0 mov QWORD PTR[112+rcx],rax mov rax,r8 mov r9,QWORD PTR[144+rdx] mov r10,QWORD PTR[152+rdx] shl r9,26 mov r11,r10 shl r10,55 shr r11,9 add rax,r9 add rax,r10 adc r11,0 mov QWORD PTR[120+rcx],rax mov rax,r11 DB 0F3h,0C3h ;repret rsaz_1024_red2norm_avx2 ENDP PUBLIC rsaz_1024_norm2red_avx2 ALIGN 32 rsaz_1024_norm2red_avx2 PROC PUBLIC sub rcx,-128 mov r8,QWORD PTR[rdx] mov eax,01fffffffh mov r9,QWORD PTR[8+rdx] mov r11,r8 shr r11,0 and r11,rax mov QWORD PTR[((-128))+rcx],r11 mov r10,r8 shr r10,29 and r10,rax mov QWORD PTR[((-120))+rcx],r10 shrd r8,r9,58 and r8,rax mov QWORD PTR[((-112))+rcx],r8 mov r10,QWORD PTR[16+rdx] mov r8,r9 shr r8,23 and r8,rax mov QWORD PTR[((-104))+rcx],r8 shrd r9,r10,52 and r9,rax mov QWORD PTR[((-96))+rcx],r9 mov r11,QWORD PTR[24+rdx] mov r9,r10 shr r9,17 and r9,rax mov QWORD PTR[((-88))+rcx],r9 shrd r10,r11,46 and r10,rax mov QWORD PTR[((-80))+rcx],r10 mov r8,QWORD PTR[32+rdx] mov r10,r11 shr r10,11 and r10,rax mov QWORD PTR[((-72))+rcx],r10 shrd r11,r8,40 and r11,rax mov QWORD PTR[((-64))+rcx],r11 mov r9,QWORD PTR[40+rdx] mov r11,r8 shr r11,5 and r11,rax mov QWORD PTR[((-56))+rcx],r11 mov r10,r8 shr r10,34 and r10,rax mov QWORD PTR[((-48))+rcx],r10 shrd r8,r9,63 and r8,rax mov QWORD PTR[((-40))+rcx],r8 mov r10,QWORD PTR[48+rdx] mov r8,r9 shr r8,28 and r8,rax mov QWORD PTR[((-32))+rcx],r8 shrd r9,r10,57 and r9,rax mov QWORD PTR[((-24))+rcx],r9 mov r11,QWORD PTR[56+rdx] mov r9,r10 shr r9,22 and r9,rax mov QWORD PTR[((-16))+rcx],r9 shrd r10,r11,51 and r10,rax mov QWORD PTR[((-8))+rcx],r10 mov r8,QWORD PTR[64+rdx] mov r10,r11 shr r10,16 and r10,rax mov QWORD PTR[rcx],r10 shrd r11,r8,45 and r11,rax mov QWORD PTR[8+rcx],r11 mov r9,QWORD PTR[72+rdx] mov r11,r8 shr r11,10 and r11,rax mov QWORD PTR[16+rcx],r11 shrd r8,r9,39 and r8,rax mov QWORD PTR[24+rcx],r8 mov r10,QWORD PTR[80+rdx] mov r8,r9 shr r8,4 and r8,rax mov QWORD PTR[32+rcx],r8 mov r11,r9 shr r11,33 and r11,rax mov QWORD PTR[40+rcx],r11 shrd r9,r10,62 and r9,rax mov QWORD PTR[48+rcx],r9 mov r11,QWORD PTR[88+rdx] mov r9,r10 shr r9,27 and r9,rax mov QWORD PTR[56+rcx],r9 shrd r10,r11,56 and r10,rax mov QWORD PTR[64+rcx],r10 mov r8,QWORD PTR[96+rdx] mov r10,r11 shr r10,21 and r10,rax mov QWORD PTR[72+rcx],r10 shrd r11,r8,50 and r11,rax mov QWORD PTR[80+rcx],r11 mov r9,QWORD PTR[104+rdx] mov r11,r8 shr r11,15 and r11,rax mov QWORD PTR[88+rcx],r11 shrd r8,r9,44 and r8,rax mov QWORD PTR[96+rcx],r8 mov r10,QWORD PTR[112+rdx] mov r8,r9 shr r8,9 and r8,rax mov QWORD PTR[104+rcx],r8 shrd r9,r10,38 and r9,rax mov QWORD PTR[112+rcx],r9 mov r11,QWORD PTR[120+rdx] mov r9,r10 shr r9,3 and r9,rax mov QWORD PTR[120+rcx],r9 mov r8,r10 shr r8,32 and r8,rax mov QWORD PTR[128+rcx],r8 shrd r10,r11,61 and r10,rax mov QWORD PTR[136+rcx],r10 xor r8,r8 mov r10,r11 shr r10,26 and r10,rax mov QWORD PTR[144+rcx],r10 shrd r11,r8,55 and r11,rax mov QWORD PTR[152+rcx],r11 mov QWORD PTR[160+rcx],r8 mov QWORD PTR[168+rcx],r8 mov QWORD PTR[176+rcx],r8 mov QWORD PTR[184+rcx],r8 DB 0F3h,0C3h ;repret rsaz_1024_norm2red_avx2 ENDP PUBLIC rsaz_1024_scatter5_avx2 ALIGN 32 rsaz_1024_scatter5_avx2 PROC PUBLIC vzeroupper vmovdqu ymm5,YMMWORD PTR[$L$scatter_permd] shl r8d,4 lea rcx,QWORD PTR[r8*1+rcx] mov eax,9 jmp $L$oop_scatter_1024 ALIGN 32 $L$oop_scatter_1024:: vmovdqu ymm0,YMMWORD PTR[rdx] lea rdx,QWORD PTR[32+rdx] vpermd ymm0,ymm5,ymm0 vmovdqu XMMWORD PTR[rcx],xmm0 lea rcx,QWORD PTR[512+rcx] dec eax jnz $L$oop_scatter_1024 vzeroupper DB 0F3h,0C3h ;repret rsaz_1024_scatter5_avx2 ENDP PUBLIC rsaz_1024_gather5_avx2 ALIGN 32 rsaz_1024_gather5_avx2 PROC PUBLIC vzeroupper mov r11,rsp lea rax,QWORD PTR[((-136))+rsp] $L$SEH_begin_rsaz_1024_gather5:: DB 048h,08dh,060h,0e0h DB 0c5h,0f8h,029h,070h,0e0h DB 0c5h,0f8h,029h,078h,0f0h DB 0c5h,078h,029h,040h,000h DB 0c5h,078h,029h,048h,010h DB 0c5h,078h,029h,050h,020h DB 0c5h,078h,029h,058h,030h DB 0c5h,078h,029h,060h,040h DB 0c5h,078h,029h,068h,050h DB 0c5h,078h,029h,070h,060h DB 0c5h,078h,029h,078h,070h lea rsp,QWORD PTR[((-256))+rsp] and rsp,-32 lea r10,QWORD PTR[$L$inc] lea rax,QWORD PTR[((-128))+rsp] vmovd xmm4,r8d vmovdqa ymm0,YMMWORD PTR[r10] vmovdqa ymm1,YMMWORD PTR[32+r10] vmovdqa ymm5,YMMWORD PTR[64+r10] vpbroadcastd ymm4,xmm4 vpaddd ymm2,ymm0,ymm5 vpcmpeqd ymm0,ymm0,ymm4 vpaddd ymm3,ymm1,ymm5 vpcmpeqd ymm1,ymm1,ymm4 vmovdqa YMMWORD PTR[(0+128)+rax],ymm0 vpaddd ymm0,ymm2,ymm5 vpcmpeqd ymm2,ymm2,ymm4 vmovdqa YMMWORD PTR[(32+128)+rax],ymm1 vpaddd ymm1,ymm3,ymm5 vpcmpeqd ymm3,ymm3,ymm4 vmovdqa YMMWORD PTR[(64+128)+rax],ymm2 vpaddd ymm2,ymm0,ymm5 vpcmpeqd ymm0,ymm0,ymm4 vmovdqa YMMWORD PTR[(96+128)+rax],ymm3 vpaddd ymm3,ymm1,ymm5 vpcmpeqd ymm1,ymm1,ymm4 vmovdqa YMMWORD PTR[(128+128)+rax],ymm0 vpaddd ymm8,ymm2,ymm5 vpcmpeqd ymm2,ymm2,ymm4 vmovdqa YMMWORD PTR[(160+128)+rax],ymm1 vpaddd ymm9,ymm3,ymm5 vpcmpeqd ymm3,ymm3,ymm4 vmovdqa YMMWORD PTR[(192+128)+rax],ymm2 vpaddd ymm10,ymm8,ymm5 vpcmpeqd ymm8,ymm8,ymm4 vmovdqa YMMWORD PTR[(224+128)+rax],ymm3 vpaddd ymm11,ymm9,ymm5 vpcmpeqd ymm9,ymm9,ymm4 vpaddd ymm12,ymm10,ymm5 vpcmpeqd ymm10,ymm10,ymm4 vpaddd ymm13,ymm11,ymm5 vpcmpeqd ymm11,ymm11,ymm4 vpaddd ymm14,ymm12,ymm5 vpcmpeqd ymm12,ymm12,ymm4 vpaddd ymm15,ymm13,ymm5 vpcmpeqd ymm13,ymm13,ymm4 vpcmpeqd ymm14,ymm14,ymm4 vpcmpeqd ymm15,ymm15,ymm4 vmovdqa ymm7,YMMWORD PTR[((-32))+r10] lea rdx,QWORD PTR[128+rdx] mov r8d,9 $L$oop_gather_1024:: vmovdqa ymm0,YMMWORD PTR[((0-128))+rdx] vmovdqa ymm1,YMMWORD PTR[((32-128))+rdx] vmovdqa ymm2,YMMWORD PTR[((64-128))+rdx] vmovdqa ymm3,YMMWORD PTR[((96-128))+rdx] vpand ymm0,ymm0,YMMWORD PTR[((0+128))+rax] vpand ymm1,ymm1,YMMWORD PTR[((32+128))+rax] vpand ymm2,ymm2,YMMWORD PTR[((64+128))+rax] vpor ymm4,ymm1,ymm0 vpand ymm3,ymm3,YMMWORD PTR[((96+128))+rax] vmovdqa ymm0,YMMWORD PTR[((128-128))+rdx] vmovdqa ymm1,YMMWORD PTR[((160-128))+rdx] vpor ymm5,ymm3,ymm2 vmovdqa ymm2,YMMWORD PTR[((192-128))+rdx] vmovdqa ymm3,YMMWORD PTR[((224-128))+rdx] vpand ymm0,ymm0,YMMWORD PTR[((128+128))+rax] vpand ymm1,ymm1,YMMWORD PTR[((160+128))+rax] vpand ymm2,ymm2,YMMWORD PTR[((192+128))+rax] vpor ymm4,ymm4,ymm0 vpand ymm3,ymm3,YMMWORD PTR[((224+128))+rax] vpand ymm0,ymm8,YMMWORD PTR[((256-128))+rdx] vpor ymm5,ymm5,ymm1 vpand ymm1,ymm9,YMMWORD PTR[((288-128))+rdx] vpor ymm4,ymm4,ymm2 vpand ymm2,ymm10,YMMWORD PTR[((320-128))+rdx] vpor ymm5,ymm5,ymm3 vpand ymm3,ymm11,YMMWORD PTR[((352-128))+rdx] vpor ymm4,ymm4,ymm0 vpand ymm0,ymm12,YMMWORD PTR[((384-128))+rdx] vpor ymm5,ymm5,ymm1 vpand ymm1,ymm13,YMMWORD PTR[((416-128))+rdx] vpor ymm4,ymm4,ymm2 vpand ymm2,ymm14,YMMWORD PTR[((448-128))+rdx] vpor ymm5,ymm5,ymm3 vpand ymm3,ymm15,YMMWORD PTR[((480-128))+rdx] lea rdx,QWORD PTR[512+rdx] vpor ymm4,ymm4,ymm0 vpor ymm5,ymm5,ymm1 vpor ymm4,ymm4,ymm2 vpor ymm5,ymm5,ymm3 vpor ymm4,ymm4,ymm5 vextracti128 xmm5,ymm4,1 vpor xmm5,xmm5,xmm4 vpermd ymm5,ymm7,ymm5 vmovdqu YMMWORD PTR[rcx],ymm5 lea rcx,QWORD PTR[32+rcx] dec r8d jnz $L$oop_gather_1024 vpxor ymm0,ymm0,ymm0 vmovdqu YMMWORD PTR[rcx],ymm0 vzeroupper movaps xmm6,XMMWORD PTR[((-168))+r11] movaps xmm7,XMMWORD PTR[((-152))+r11] movaps xmm8,XMMWORD PTR[((-136))+r11] movaps xmm9,XMMWORD PTR[((-120))+r11] movaps xmm10,XMMWORD PTR[((-104))+r11] movaps xmm11,XMMWORD PTR[((-88))+r11] movaps xmm12,XMMWORD PTR[((-72))+r11] movaps xmm13,XMMWORD PTR[((-56))+r11] movaps xmm14,XMMWORD PTR[((-40))+r11] movaps xmm15,XMMWORD PTR[((-24))+r11] lea rsp,QWORD PTR[r11] DB 0F3h,0C3h ;repret $L$SEH_end_rsaz_1024_gather5:: rsaz_1024_gather5_avx2 ENDP EXTERN OPENSSL_ia32cap_P:NEAR PUBLIC rsaz_avx2_eligible ALIGN 32 rsaz_avx2_eligible PROC PUBLIC mov eax,DWORD PTR[((OPENSSL_ia32cap_P+8))] mov ecx,524544 mov edx,0 and ecx,eax cmp ecx,524544 cmove eax,edx and eax,32 shr eax,5 DB 0F3h,0C3h ;repret rsaz_avx2_eligible ENDP ALIGN 64 $L$and_mask:: DQ 01fffffffh,01fffffffh,01fffffffh,01fffffffh $L$scatter_permd:: DD 0,2,4,6,7,7,7,7 $L$gather_permd:: DD 0,7,1,7,2,7,3,7 $L$inc:: DD 0,0,0,0,1,1,1,1 DD 2,2,2,2,3,3,3,3 DD 4,4,4,4,4,4,4,4 ALIGN 64 EXTERN __imp_RtlVirtualUnwind:NEAR ALIGN 16 rsaz_se_handler PROC PRIVATE push rsi push rdi push rbx push rbp push r12 push r13 push r14 push r15 pushfq sub rsp,64 mov rax,QWORD PTR[120+r8] mov rbx,QWORD PTR[248+r8] mov rsi,QWORD PTR[8+r9] mov r11,QWORD PTR[56+r9] mov r10d,DWORD PTR[r11] lea r10,QWORD PTR[r10*1+rsi] cmp rbx,r10 jb $L$common_seh_tail mov r10d,DWORD PTR[4+r11] lea r10,QWORD PTR[r10*1+rsi] cmp rbx,r10 jae $L$common_seh_tail mov rbp,QWORD PTR[160+r8] mov r10d,DWORD PTR[8+r11] lea r10,QWORD PTR[r10*1+rsi] cmp rbx,r10 cmovc rax,rbp mov r15,QWORD PTR[((-48))+rax] mov r14,QWORD PTR[((-40))+rax] mov r13,QWORD PTR[((-32))+rax] mov r12,QWORD PTR[((-24))+rax] mov rbp,QWORD PTR[((-16))+rax] mov rbx,QWORD PTR[((-8))+rax] mov QWORD PTR[240+r8],r15 mov QWORD PTR[232+r8],r14 mov QWORD PTR[224+r8],r13 mov QWORD PTR[216+r8],r12 mov QWORD PTR[160+r8],rbp mov QWORD PTR[144+r8],rbx lea rsi,QWORD PTR[((-216))+rax] lea rdi,QWORD PTR[512+r8] mov ecx,20 DD 0a548f3fch $L$common_seh_tail:: mov rdi,QWORD PTR[8+rax] mov rsi,QWORD PTR[16+rax] mov QWORD PTR[152+r8],rax mov QWORD PTR[168+r8],rsi mov QWORD PTR[176+r8],rdi mov rdi,QWORD PTR[40+r9] mov rsi,r8 mov ecx,154 DD 0a548f3fch mov rsi,r9 xor rcx,rcx mov rdx,QWORD PTR[8+rsi] mov r8,QWORD PTR[rsi] mov r9,QWORD PTR[16+rsi] mov r10,QWORD PTR[40+rsi] lea r11,QWORD PTR[56+rsi] lea r12,QWORD PTR[24+rsi] mov QWORD PTR[32+rsp],r10 mov QWORD PTR[40+rsp],r11 mov QWORD PTR[48+rsp],r12 mov QWORD PTR[56+rsp],rcx call QWORD PTR[__imp_RtlVirtualUnwind] mov eax,1 add rsp,64 popfq pop r15 pop r14 pop r13 pop r12 pop rbp pop rbx pop rdi pop rsi DB 0F3h,0C3h ;repret rsaz_se_handler ENDP .text$ ENDS .pdata SEGMENT READONLY ALIGN(4) ALIGN 4 DD imagerel $L$SEH_begin_rsaz_1024_sqr_avx2 DD imagerel $L$SEH_end_rsaz_1024_sqr_avx2 DD imagerel $L$SEH_info_rsaz_1024_sqr_avx2 DD imagerel $L$SEH_begin_rsaz_1024_mul_avx2 DD imagerel $L$SEH_end_rsaz_1024_mul_avx2 DD imagerel $L$SEH_info_rsaz_1024_mul_avx2 DD imagerel $L$SEH_begin_rsaz_1024_gather5 DD imagerel $L$SEH_end_rsaz_1024_gather5 DD imagerel $L$SEH_info_rsaz_1024_gather5 .pdata ENDS .xdata SEGMENT READONLY ALIGN(8) ALIGN 8 $L$SEH_info_rsaz_1024_sqr_avx2:: DB 9,0,0,0 DD imagerel rsaz_se_handler DD imagerel $L$sqr_1024_body,imagerel $L$sqr_1024_epilogue,imagerel $L$sqr_1024_in_tail DD 0 $L$SEH_info_rsaz_1024_mul_avx2:: DB 9,0,0,0 DD imagerel rsaz_se_handler DD imagerel $L$mul_1024_body,imagerel $L$mul_1024_epilogue,imagerel $L$mul_1024_in_tail DD 0 $L$SEH_info_rsaz_1024_gather5:: DB 001h,036h,017h,00bh DB 036h,0f8h,009h,000h DB 031h,0e8h,008h,000h DB 02ch,0d8h,007h,000h DB 027h,0c8h,006h,000h DB 022h,0b8h,005h,000h DB 01dh,0a8h,004h,000h DB 018h,098h,003h,000h DB 013h,088h,002h,000h DB 00eh,078h,001h,000h DB 009h,068h,000h,000h DB 004h,001h,015h,000h DB 000h,0b3h,000h,000h .xdata ENDS END
BigNum/Mod/ModArith/bnModInv.asm
FloydZ/Crypto-Hash
11
7110
<reponame>FloydZ/Crypto-Hash .686 .model flat,stdcall option casemap:none include .\bnlib.inc include .\bignum.inc .code bnModInv proc uses ebx edi esi bnX:DWORD, bnN:DWORD, bnR:DWORD LOCAL t0,t1 ; invoke bnGCD,bnX,bnN,bnR ; mov eax,bnR ; .if BN_IS_ONE(eax); invoke bnCreatei,1 mov t1,eax bnCreateX ebx,edi,esi,t0 invoke bnMov,ebx,bnX invoke bnMov,esi,bnN .while 1 .if ABS_BN_IS_ONE(ebx) invoke bnMov,bnR,t1 .break .endif invoke bnDiv,esi,ebx,edi,esi invoke bnMul,edi,t1,bnR invoke bnAdd,t0,bnR .if ABS_BN_IS_ONE(esi) invoke bnMov,bnR,bnN invoke bnSub,bnR,t0 ; never <0 .break .endif invoke bnDiv,ebx,esi,edi,ebx invoke bnMul,edi,t0,bnR invoke bnAdd,t1,bnR .endw bnDestroyX invoke bnDestroy,t1 ret ; .endif ; invoke bnClear,bnR ; ret bnModInv endp end
libsrc/_DEVELOPMENT/arch/sms/SMSlib/z80/asm_SMSlib_loadTiles.asm
jpoikela/z88dk
640
83542
; ************************************************** ; SMSlib - C programming library for the SMS/GG ; ( part of devkitSMS - github.com/sverx/devkitSMS ) ; ************************************************** INCLUDE "SMSlib_private.inc" SECTION code_clib SECTION code_SMSlib PUBLIC asm_SMSlib_loadTiles EXTERN asm_sms_copy_mem_to_vram asm_SMSlib_loadTiles: ; void SMS_loadTiles (void *src, unsigned int tilefrom, unsigned int size) ; ; enter : de = void *src ; hl = unsigned int tilefrom ; bc = unsigned int size ; ; uses : af, bc, de, hl ;; SMS_setAddr(0x4000|(tilefrom*32)) add hl,hl add hl,hl add hl,hl add hl,hl add hl,hl set 6,h ld a,c INCLUDE "SMS_CRT0_RST08.inc" ld c,a ex de,hl ;; SMS_byte_array_to_VDP_data(src,size) jp asm_sms_copy_mem_to_vram
_build/dispatcher/jmp_ippsHashMethod_SHA1_91dcc9de.asm
zyktrcn/ippcp
1
23326
<gh_stars>1-10 extern m7_ippsHashMethod_SHA1:function extern n8_ippsHashMethod_SHA1:function extern y8_ippsHashMethod_SHA1:function extern e9_ippsHashMethod_SHA1:function extern l9_ippsHashMethod_SHA1:function extern n0_ippsHashMethod_SHA1:function extern k0_ippsHashMethod_SHA1:function extern ippcpJumpIndexForMergedLibs extern ippcpSafeInit:function segment .data align 8 dq .Lin_ippsHashMethod_SHA1 .Larraddr_ippsHashMethod_SHA1: dq m7_ippsHashMethod_SHA1 dq n8_ippsHashMethod_SHA1 dq y8_ippsHashMethod_SHA1 dq e9_ippsHashMethod_SHA1 dq l9_ippsHashMethod_SHA1 dq n0_ippsHashMethod_SHA1 dq k0_ippsHashMethod_SHA1 segment .text global ippsHashMethod_SHA1:function (ippsHashMethod_SHA1.LEndippsHashMethod_SHA1 - ippsHashMethod_SHA1) .Lin_ippsHashMethod_SHA1: db 0xf3, 0x0f, 0x1e, 0xfa call ippcpSafeInit wrt ..plt align 16 ippsHashMethod_SHA1: db 0xf3, 0x0f, 0x1e, 0xfa mov rax, qword [rel ippcpJumpIndexForMergedLibs wrt ..gotpc] movsxd rax, dword [rax] lea r11, [rel .Larraddr_ippsHashMethod_SHA1] mov r11, qword [r11+rax*8] jmp r11 .LEndippsHashMethod_SHA1:
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca_notsx.log_21829_852.asm
ljhsiun2/medusa
9
25735
<gh_stars>1-10 .global s_prepare_buffers s_prepare_buffers: push %r10 push %r12 push %r13 push %r14 push %r8 push %rcx push %rdi push %rsi lea addresses_D_ht+0x1236d, %r10 nop nop nop nop dec %r13 vmovups (%r10), %ymm1 vextracti128 $1, %ymm1, %xmm1 vpextrq $1, %xmm1, %r12 nop nop nop nop nop inc %r13 lea addresses_WT_ht+0xa381, %rsi lea addresses_D_ht+0x444d, %rdi nop nop add %r8, %r8 mov $79, %rcx rep movsb and %rsi, %rsi lea addresses_normal_ht+0x122ad, %rcx nop nop nop nop add %r13, %r13 mov $0x6162636465666768, %rdi movq %rdi, %xmm6 movups %xmm6, (%rcx) nop cmp $49405, %r10 lea addresses_normal_ht+0x19c2d, %r10 xor %r8, %r8 movb (%r10), %r12b nop nop cmp $27956, %r8 lea addresses_WC_ht+0x13bcd, %r12 nop dec %r10 vmovups (%r12), %ymm6 vextracti128 $1, %ymm6, %xmm6 vpextrq $0, %xmm6, %rsi nop nop cmp %rcx, %rcx lea addresses_D_ht+0x19a7b, %rsi lea addresses_A_ht+0x894d, %rdi nop cmp $36082, %r14 mov $7, %rcx rep movsb nop and $28695, %r12 lea addresses_UC_ht+0x1219d, %r8 add $23283, %r12 mov $0x6162636465666768, %r14 movq %r14, %xmm3 vmovups %ymm3, (%r8) sub $53046, %rdi lea addresses_normal_ht+0x1c24d, %rsi lea addresses_UC_ht+0x10acd, %rdi nop xor $56388, %r14 mov $51, %rcx rep movsb nop nop nop nop nop cmp $17550, %r13 pop %rsi pop %rdi pop %rcx pop %r8 pop %r14 pop %r13 pop %r12 pop %r10 ret .global s_faulty_load s_faulty_load: push %r10 push %r8 push %r9 push %rax push %rcx push %rdi push %rdx // Store lea addresses_WC+0x1edcd, %rax inc %r9 mov $0x5152535455565758, %rdi movq %rdi, %xmm0 vmovups %ymm0, (%rax) nop nop nop and %r9, %r9 // Store lea addresses_PSE+0x62cd, %r10 nop nop inc %r8 mov $0x5152535455565758, %rdi movq %rdi, %xmm0 vmovups %ymm0, (%r10) nop nop nop nop nop cmp $18324, %r8 // Store lea addresses_D+0x6bcd, %rax nop and $43763, %rdx movb $0x51, (%rax) nop nop xor $17603, %rcx // Store lea addresses_normal+0xe94d, %rdi nop add %rcx, %rcx movw $0x5152, (%rdi) nop cmp $20538, %rax // Store mov $0xd4d, %r9 nop nop nop nop and $11522, %rax mov $0x5152535455565758, %rdx movq %rdx, %xmm1 vmovups %ymm1, (%r9) nop nop xor %rcx, %rcx // Store lea addresses_PSE+0x1e6d, %rdx nop nop nop add %r9, %r9 mov $0x5152535455565758, %r10 movq %r10, %xmm4 vmovups %ymm4, (%rdx) nop nop sub %r9, %r9 // Load mov $0x33059900000007cd, %rdx and %r8, %r8 mov (%rdx), %edi nop nop nop nop inc %r8 // Faulty Load lea addresses_normal+0xe7cd, %r10 and %rdi, %rdi mov (%r10), %r9d lea oracles, %rcx and $0xff, %r9 shlq $12, %r9 mov (%rcx,%r9,1), %r9 pop %rdx pop %rdi pop %rcx pop %rax pop %r9 pop %r8 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_normal', 'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 0}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_WC', 'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 9}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_PSE', 'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 8}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_D', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 8}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_normal', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 5}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_P', 'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 7}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_PSE', 'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 5}} {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_NC', 'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 11}} [Faulty Load] {'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_normal', 'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 0}} <gen_prepare_buffer> {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_D_ht', 'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 5}} {'OP': 'REPM', 'src': {'same': False, 'congruent': 2, 'type': 'addresses_WT_ht'}, 'dst': {'same': False, 'congruent': 7, 'type': 'addresses_D_ht'}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_normal_ht', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 5}} {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_normal_ht', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 2}} {'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_WC_ht', 'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 10}} {'OP': 'REPM', 'src': {'same': True, 'congruent': 0, 'type': 'addresses_D_ht'}, 'dst': {'same': False, 'congruent': 7, 'type': 'addresses_A_ht'}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_UC_ht', 'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 4}} {'OP': 'REPM', 'src': {'same': False, 'congruent': 3, 'type': 'addresses_normal_ht'}, 'dst': {'same': False, 'congruent': 2, 'type': 'addresses_UC_ht'}} {'34': 21829} 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 */
test/Succeed/Issue2549.agda
KDr2/agda
0
13532
<reponame>KDr2/agda {-# OPTIONS --cubical-compatible --rewriting --confluence-check #-} postulate _↦_ : {A : Set} → A → A → Set {-# BUILTIN REWRITE _↦_ #-} data _==_ {A : Set} (a : A) : A → Set where idp : a == a PathOver : {A : Set} (B : A → Set) {x y : A} (p : x == y) (u : B x) (v : B y) → Set PathOver B idp u v = (u == v) infix 30 PathOver syntax PathOver B p u v = u == v [ B ↓ p ] apd : {A : Set} {B : A → Set} (f : (a : A) → B a) {x y : A} → (p : x == y) → f x == f y [ B ↓ p ] apd f idp = idp module Disk where module _ where postulate -- HIT Disk : Set baseD : Disk loopD : baseD == baseD drumD : loopD == idp module DiskElim {P : Disk → Set} (baseD* : P baseD ) (loopD* : baseD* == baseD* [ P ↓ loopD ] ) (drumD* : loopD* == idp [ ((λ p → baseD* == baseD* [ P ↓ p ] ) ) ↓ drumD ] ) where postulate f : (x : Disk) → P x baseD-β : f baseD ↦ baseD* {-# REWRITE baseD-β #-} postulate loopD-ι : apd f loopD ↦ loopD* {-# REWRITE loopD-ι #-} postulate drumD-ι : apd (apd f) drumD ↦ drumD* {-# REWRITE drumD-ι #-} loopD-β : apd f loopD == loopD* loopD-β = idp drumD-β : apd (apd f) drumD == drumD* drumD-β = idp
antlr/tslTokens.g4
GillesBIANNIC/tsl
57
3803
<reponame>GillesBIANNIC/tsl lexer grammar tslTokens; // note "TSL tokens" // TSL native types and tokens DURATIONVAL: INT_LIT ([wdhms]|'ms'|'us'|'ns'|'ps') | '-' INT_LIT ([wdhms]|'ms'|'us'|'ns'|'ps') ; NUMBER: INT_LIT | FLOAT_LIT | '-' INT_LIT | '-' FLOAT_LIT ; STRING: RAW_STRING_LIT | INTERPRETED_STRING_LIT ; TRUE: 'TRUE' | 'true' | 'T' | 'True'; FALSE: 'FALSE' | 'false' | 'F' | 'False'; ASTERISK: '*'; EQ: '='; DIV: '/'; LPAREN: '('; RPAREN: ')'; COMMA: ','; SEMICOLON: ';'; COLON: ':'; DOUBLECOLON: '::'; DOT: '.'; ABS: 'abs'; ADDNAMESUFFIX: 'addSuffix'; ADDNAMEPREFIX: 'addPrefix'; ADDSERIES: 'add'; ANDL: 'and'; ATTRIBUTEPOLICY: 'attributePolicy'; BOTTOMN: 'bottomN'; BOTTOMNBY: 'bottomNBy'; CEIL: 'ceil'; CONNECT: 'connect'; COUNT: 'count'; CREATE: 'create'; CUMULATIVE: 'cumulative'; CUMULATIVESUM: 'cumulativeSum'; DAY: 'day'; DELTA: 'delta'; DIVSERIES: 'div'; EQUAL: 'equal'; FILL: 'fill'; FILTERBYLABELS: 'filterByLabels'; FILTERBYNAME: 'filterByName'; FILTERBYLASTVALUE: 'filterByLastValue'; FINITE: 'finite'; FIRST: 'first'; FLOOR: 'floor'; FROM: 'from'; GREATEROREQUAL: 'greaterOrEqual'; GREATERTHAN: 'greaterThan'; GROUP: 'group'; GROUPLEFT: 'groupLeft'; GROUPRIGHT: 'groupRight'; GROUPBY: 'groupBy'; GROUPWITHOUT: 'groupWithout'; HOUR: 'hour'; IGNORING: 'ignoring'; JOIN: 'join'; KEEPFIRSTVALUES: 'keepFirstValues'; KEEPLASTVALUES: 'keepLastValues'; KEEPFIRSTVALUE: 'keepFirstValue'; KEEPLASTVALUE: 'keepLastValue'; LAST: 'last'; LABELS: 'labels'; LESSOREQUAL: 'lessOrEqual'; LESSTHAN: 'lessThan'; LN: 'ln'; LOG2: 'log2'; LOG10: 'log10'; LOGN: 'logN'; MASK: 'mask'; MAX: 'max'; MAXWITH: 'maxWith'; MEAN: 'mean'; MEDIAN: 'median'; MIN: 'min'; MINWITH: 'minWith'; MINUTE: 'minute'; MONTH: 'month'; MULSERIES: 'mul'; NEGMASK: 'negmask'; NOTEQUAL: 'notEqual'; NOW: 'now'; NAMES: 'names'; ON: 'on'; ORL: 'or'; PERCENTILE: 'percentile'; PROM: 'prom'; PROMETHEUS: 'prometheus'; QUANTIZE: 'quantize'; RATE: 'rate'; REMOVELABELS: 'removeLabels'; REMOVE: 'remove'; RENAME: 'rename'; RENAMEBY: 'renameBy'; RENAMELABELKEY: 'renameLabelKey'; RENAMELABELVALUE: 'renameLabelValue'; RENAMETEMPLATE: 'renameTemplate'; RESETS: 'resets'; ROUND: 'round'; SAMPLE: 'sample'; SAMPLEBY: 'sampleBy'; SELECT: 'select'; SELECTORS: 'selectors'; SERIES: 'series'; SETLABELS: 'setLabels'; SETVALUES: 'setValues'; SHIFT: 'shift'; SHRINK: 'shrink'; SORT: 'sort'; SORTBY: 'sortBy'; SORTDESC: 'sortDesc'; SORTDESCBY: 'sortDescBy'; SQRT: 'sqrt'; STDDEV: 'stddev'; STDVAR: 'stdvar'; STORE: 'store'; SUBSERIES: 'sub'; SUM: 'sum'; TOBOOLEAN: 'toboolean'; TODOUBLE: 'todouble'; TOLONG: 'tolong'; TOPN: 'topN'; TOPNBY: 'topNBy'; TOSTRING: 'tostring'; TIMECLIP: 'timeclip'; TIMEMODULO: 'timemodulo'; TIMESTAMP: 'timestamp'; TIMESCALE: 'timescale'; TIMESPLIT: 'timesplit'; WARP: 'warp10'; WEEKDAY: 'weekday'; WHERE: 'where'; WINDOW: 'window'; YEAR: 'year'; // Floating-point literals //float_lit = decimals "." [ decimals ] [ exponent ] | // decimals exponent | // "." decimals [ exponent ] . FLOAT_LIT : DECIMALS '.' DECIMALS? EXPONENT? | DECIMALS EXPONENT | '.' DECIMALS EXPONENT? ; //int_lit = decimal_lit | octal_lit | hex_lit . INT_LIT : DECIMAL_LIT | OCTAL_LIT | HEX_LIT ; //decimal_lit = ( "1" … "9" ) { decimal_digit } . fragment DECIMAL_LIT : [1-9] DECIMAL_DIGIT* ; //decimal_digit = "0" … "9" . fragment DECIMAL_DIGIT : [0-9] ; //exponent = ( "e" | "E" ) [ "+" | "-" ] decimals . fragment EXPONENT : ( 'e' | 'E' ) ( '+' | '-' )? DECIMALS ; //decimals = decimal_digit { decimal_digit } . fragment DECIMALS : DECIMAL_DIGIT+ ; //octal_lit = "0" { octal_digit } . fragment OCTAL_LIT : '0' OCTAL_DIGIT* ; //hex_lit = "0" ( "x" | "X" ) hex_digit { hex_digit } . fragment HEX_LIT : '0' ( 'x' | 'X' ) HEX_DIGIT+ ; fragment RAW_STRING_LIT : '`' ( UNICODE_CHAR | NEWLINE | [~`] )*? '`' ; //unicode_char = /* an arbitrary Unicode code point except newline */ . fragment UNICODE_CHAR : ~[\u000A] ; //newline = /* the Unicode code point U+000A */ . fragment NEWLINE : [\u000A] ; fragment INTERPRETED_STRING_LIT : ('"'|'\'') ( '\\"' | UNICODE_VALUE | BYTE_VALUE )*? ('"'|'\'') ; //byte_value = octal_byte_value | hex_byte_value . fragment BYTE_VALUE : OCTAL_BYTE_VALUE | HEX_BYTE_VALUE ; //hex_digit = "0" … "9" | "A" … "F" | "a" … "f" . fragment HEX_DIGIT : [0-9a-fA-F] ; //octal_digit = "0" … "7" . fragment OCTAL_DIGIT : [0-7] ; //octal_byte_value = `\` octal_digit octal_digit octal_digit . fragment OCTAL_BYTE_VALUE : '\\' OCTAL_DIGIT OCTAL_DIGIT OCTAL_DIGIT ; //hex_byte_value = `\` "x" hex_digit hex_digit . fragment HEX_BYTE_VALUE : '\\' 'x' HEX_DIGIT HEX_DIGIT ; //little_u_value = `\` "u" hex_digit hex_digit hex_digit hex_digit . // hex_digit hex_digit hex_digit hex_digit . LITTLE_U_VALUE : '\\u' HEX_DIGIT HEX_DIGIT HEX_DIGIT HEX_DIGIT ; //big_u_value = `\` "U" hex_digit hex_digit hex_digit hex_digit BIG_U_VALUE : '\\U' HEX_DIGIT HEX_DIGIT HEX_DIGIT HEX_DIGIT HEX_DIGIT HEX_DIGIT HEX_DIGIT HEX_DIGIT ; //escaped_char = `\` ( "a" | "b" | "f" | "n" | "r" | "t" | "v" | `\` | "'" | `"` ) . fragment ESCAPED_CHAR : '\\' ( 'a' | 'b' | 'f' | 'n' | 'r' | 't' | 'v' | '\\' | '\'' | '"' ) ; //unicode_value = unicode_char | little_u_value | big_u_value | escaped_char . fragment UNICODE_VALUE : UNICODE_CHAR | LITTLE_U_VALUE | BIG_U_VALUE | ESCAPED_CHAR ; // // Source code representation // IDENT : (LETTER|'_') (LETTER|DIGIT|'_')* ; NL : '\r'? '\n' ; DIGIT: '0'..'9' ; fragment LETTER : [a-zA-Z] ;
programs/oeis/029/A029938.asm
neoneye/loda
22
2837
; A029938: (p-5)(p-7)/24, where p=prime(n). ; 0,0,1,2,5,7,12,22,26,40,51,57,70,92,117,126,155,176,187,222,247,287,345,376,392,425,442,477,610,651,715,737,852,876,950,1027,1080,1162,1247,1276,1426,1457,1520,1552,1751,1962,2035,2072,2147,2262,2301,2501,2625,2752,2882,2926,3060,3151,3197,3432,3775,3876,3927,4030,4401,4565,4845,4902,5017,5192,5430,5612,5797,5922,6112,6370,6501,6767,7107,7176,7526,7597,7812,7957,8177,8475,8626,8702,8855,9322,9640,9801,10127,10292,10542,11051,11137,11926,12195,12650 add $0,1 seq $0,98090 ; Numbers k such that 2k-3 is prime. sub $0,4 bin $0,2 div $0,3
lib/chibiakumas/SrcMSX/MSX1_V1_VdpMemory.asm
gilbertfrancois/msx
0
3036
<filename>lib/chibiakumas/SrcMSX/MSX1_V1_VdpMemory.asm GetColMemPos: ;Get a BC (XY) color memory pos, 32 chars per line, 8 bytes of color per char, ; this command uses Y as a bitmap line number (0-192), not a tile number (0-24) push bc ld a,c and %11111000 rrca rrca rrca or &20 ;Colors start at &2000 ld h,a ld a,b and %00011111 rlca rlca rlca ld b,a ld a,c and %00000111 or b ld l,a call VDP_SetWriteAddress pop bc ret CopyToVDP: ;Send data to the VDP using OUT commands push bc push hl ex de,hl call VDP_SetWriteAddress pop hl pop bc inc b inc c CopyToVDP2: ld a,(hl) out (VdpOut_Data),a inc hl dec c jr nz,CopyToVDP2 dec b jr nz,CopyToVDP2 ret ScreenINIT: ret DOINIT: ld a, %00000010 ;mode 2 out (VdpOut_Control),a ld a,128+0 ;0 - - - - - - M2 EXTVID out (VdpOut_Control),a ld a, %01000000 ;(show screen) out (VdpOut_Control),a ld a,128+1 ;1 4/16K BL GINT M1 M3 - SI MAG out (VdpOut_Control),a ld a, %10011111 ;Color table address ;%10011111=tile mode ; %11111111= bitmap mode out (VdpOut_Control),a ld a,128+3 ;3 CT13 CT12 CT11 CT10 CT9 CT8 CT7 CT6 out (VdpOut_Control),a ;in mode 2 control register #3 has a different meaning. Only bit 7 (CT13) sets the CT address. ;Somewhat like control register #4 for the PG, bits 6 - 0 are an ANDmask over the top 7 bits of the character number. ;Set Sprite attrib table to &1B00 ld a,%00110110 out (VdpOut_Control),a ld a,128+5 out (VdpOut_Control),a ;ld a,%00000000 ;out (VdpOut_Control),a ;ld a,128+11 ;out (VdpOut_Control),a ;Set Sprite Pattern table to &3800 ld a,%00000111 out (VdpOut_Control),a ld a,128+6 out (VdpOut_Control),a ld a, %00000000 ;Pattern table address out (VdpOut_Control),a ld a,128+4 ;4 - - - - - PG13 PG12 PG11 out (VdpOut_Control),a ;in mode 2 Only bit 2, PG13, sets the address of the PG (so it's either address 0 or 2000h). Bits 0 and 1 are an AND mask over the character number. The character number is 0 - 767 (2FFh) and these two bits are ANDed over the two highest bits of this value (2FFh is 10 bits, so over bit 8 and 9). So in effect, if bit 0 of control register #4 is set, the second array of 256 patterns in the PG is used for the middle 8 rows of characters, otherwise the first 256 patterns. If bit 1 is set, the third array of patterns is used in the PG, otherwise the first. ld a, &F0 ;Text color out (VdpOut_Control),a ld a,128+7 ;7 TC3 TC2 TC1 TC0 BD3 BD2 BD1 BD0 out (VdpOut_Control),a ld hl, BitmapFont ld de, &0000 ; $8000 ld bc, 8*96 ; the ASCII character set: 256 characters, each with 8 bytes of display data call CopyToVDP ; load tile data CLS: ld hl,&1800 ;Set all the tiles to Zero call VDP_SetWriteAddress ld bc,&17FF ;ld d,0 FillRpt: xor a; ;Write a Zero out (VdpOut_Data),a dec bc ld a,b or c jr nz, FillRpt ld hl,&2000 ;Clear all the color info, 8 lines per tile, 32x24 tiles=&1800 call VDP_SetWriteAddress ld a,0 ld bc,&1800 FillRptnb: ld a,&F0 ;Foreground / Background... F0=White/Black out (VdpOut_Data),a dec bc ld a,b or c jr nz, FillRptnb ret VDP_SetReadAddress: ld C,0 ;Bit 6=0 when reading, 1 when writing jr VDP_SetAddress prepareVram: VDP_SetWriteAddress: ld C,64 ;&40/64/Bit6 VDP_SetAddress: ld a, l out (VdpOut_Control), a ld a, h or C out (VdpOut_Control), a ret SetHardwareSprite: rlca ;4 bytes per sprite rlca push bc push hl ld h,&1B ;Sprite Attribs start at &1B00 ld l,a call VDP_SetWriteAddress pop hl pop bc ld a,c out (VdpOut_Data),a ;y ld a,B out (VdpOut_Data),a ;x ld a,h out (VdpOut_Data),a ;Pattern ld a,l out (VdpOut_Data),a ;Color + 'EC' ;'EC' - early clock - shifts sprite 32 pixels left so sprites can be offscreen left ld a,%00001000 ;turn on sprites out (VdpOut_Control),a ;Set up Vram [VR=1] [SPD=SpriteDisable] ld a,128+8 out (VdpOut_Control),a ;R#8 [MS ] [LP ] [TP ] [CB ] [VR ] [ 0 ] [SPD] [BW ] ret
def_monitor.adb
lumalisan/EspeblancaYLos7PPs
0
6878
with Ada.Text_IO; use Ada.Text_IO; package body def_monitor is protected body Monitor is entry menjar when (assegut = true and servit = true) is begin Put_Line("--------------> {Nombre Enano} Menjant!!!"); assegut := false; servit := false; end menjar; entry put_honey when (jar < MAX) is begin jar := jar + 1; Put_Line("jar "&jar'Img&"/"&MAX'Img); end put_honey; end Monitor; end def_monitor;
TestRoms/LinkTest/GBHeader.asm
Pegmode/GB2Twitter
4
21492
<reponame>Pegmode/GB2Twitter ;Generic GB ROM Header ;Based off of header from DevEd SECTION "Reset $00",HOME[$00] Reset00: ret SECTION "Reset $08",HOME[$08] Reset08: ret SECTION "Reset $10",HOME[$10] Reset10: ret SECTION "Reset $18",HOME[$18] Reset18: ret SECTION "Reset $20",HOME[$20] Reset20: ret SECTION "Reset $28",HOME[$28] Reset28: ret SECTION "Reset $30",HOME[$30] Reset30: ret SECTION "Reset $38",HOME[$38] Reset38: ret ; ================================================================ ; Interrupt vectors ; ================================================================ SECTION "VBlank interrupt",HOME[$40] IRQ_VBlank: jp vBlankInt reti SECTION "LCD STAT interrupt",HOME[$48] IRQ_STAT: reti SECTION "Timer interrupt",HOME[$50] IRQ_Timer: reti SECTION "Serial interrupt",HOME[$58] IRQ_Serial: jp serialInt reti SECTION "Joypad interrupt",Home[$60] IRQ_Joypad: reti SECTION "ROM header",HOME[$100] EntryPoint: nop jp StartupInit NintendoLogo: ; DO NOT MODIFY!!! db $ce,$ed,$66,$66,$cc,$0d,$00,$0b,$03,$73,$00,$83,$00,$0c,$00,$0d db $00,$08,$11,$1f,$88,$89,$00,$0e,$dc,$cc,$6e,$e6,$dd,$dd,$d9,$99 db $bb,$bb,$67,$63,$6e,$0e,$ec,$cc,$dd,$dc,$99,$9f,$bb,$b9,$33,$3e ROMTitle: db "GB2TWITTER " ; ROM title (11 bytes) ProductCode: db "PEG " ; Product code (4 bytes) GBCSupport: db 0 ; GBC support (0 = DMG only, $80 = DMG/GBC, $C0 = GBC only) NewLicenseCode: dw 0 ; new license code (2 bytes) SGBSupport: db SGB_UNSUPPORTED ; SGB support CartType: db CART_MBC5 ; Cart type, see hardware.inc for a list of values ROMSize: ds CART_ROM_2M ; ROM size (handled by post-linking tool) RAMSize: db 0 ; RAM size DestCode: db 1 ; Destination code (0 = Japan, 1 = All others) OldLicenseCode: db $33 ; Old license code (if $33, check new license code) ROMVersion: db 0 ; ROM version HeaderChecksum: ds 1 ; Header checksum (handled by post-linking tool) ROMChecksum: ds 2 ; ROM checksum (2 bytes) (handled by post-linking tool)
dist/re-danker.asm
mitre-cyber-academy/2017-Binary-200
0
104799
<reponame>mitre-cyber-academy/2017-Binary-200 # Can U reverse spim-er 3017? # R U a memel0rd lik le l00per kn0wn as kierk # l4st ye4r we le4rned th4t sEcUrItY tHr0uGh 0bScUrItY is a bad meme # th1s ye4r you will never get my fl4g.. well not never but not before the competition ends.. # U also m1ght run 0ut 0f memory by th3n # # run my new new asm script for the mipster skeletal processer 2.0 # it will print muh flag # much improve on l4st ye4r, n0w U R bones lik me b4 it runs MUAHWHAHWHUEHUEHUEHUE #░░░░░░░░░░░░▄▐░░░░░░ #░░░░░░▄▄▄░░▄██▄░░░░░ #░░░░░▐▀█▀▌░░░░▀█▄░░░ #░░░░░▐█▄█▌░░░░░░▀█▄░ #░░░░░░▀▄▀░░░▄▄▄▄▄▀▀░ #░░░░▄▄▄██▀▀▀▀░░░░░░░ #░░░█▀▄▄▄█░▀▀░░░░░░░░ #░░░▌░▄▄▄▐▌▀▀▀░░░░░░░ #▄░▐░░░▄▄░█░▀▀░░░░░░░ U HAVE BEEN RE-SPOOKED BY THE #▀█▌░░░▄░▀█▀░▀░░░░░░░ SPOOKY SKILENTON #░░░░░░░▄▄▐▌▄▄░░░░░░░ CAN U REVERSE THE CURSE? #░░░░░░░▀███▀█░▄░░░░░ #░░░░░░▐▌▀▄▀▄▀▐▄░░░░░ #░░░░░▐▀░░░░░░▐▌░░░░░ #░░░░░░█░░░░░░░░█░░░░ #░░░░░▐▌░░░░░░░░░█░░░ #░░░░░█░░░░░░░░░░▐▌░░ .text .globl main main: la $a0, meme_in li $v0, 4 syscall la $a0, new_meme li $v0, 4 syscall lw $a0, meme_num move $t0, $a0 jal bif move $t0, $v0 w00t: la $a0, meme_out li $v0, 4 syscall move $a0, $t0 li $v0, 1 syscall la $a0, meme_end li $v0, 4 syscall la $a0, new_meme li $v0, 4 syscall j rekt bif: addi $sp, $sp, -12 sw $ra, 0($sp) sw $s0, 4($sp) sw $s1, 8($sp) add $s0, $a0, $zero addi $t1, $zero, 1 beq $s0, $zero, return0 beq $s0, $t1, return1 addi $a0, $s0, -1 jal bif add $s1, $zero, $v0 addi $a0, $s0, -2 jal bif lw $a0, leet_meme move $t2, $a0 div $v0, $t2 mfhi $v0 add $v0, $v0, $s1 exitbif: lw $ra, 0($sp) lw $s0, 4($sp) lw $s1, 8($sp) addi $sp, $sp, 12 jr $ra return1: li $v0,1 j exitbif return0: li $v0,0 j exitbif rekt: li $v0, 10 syscall .data meme_in: .asciiz "Run progr4m run! MAUAHAHAHA..." meme_out: .asciiz "Nice Meme: MCA{" meme_end: .asciiz "}" meme_num: .word 200 leet_meme: .word 13371337 new_meme: .asciiz "\n"
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca_notsx.log_21829_1123.asm
ljhsiun2/medusa
9
247285
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r13 push %r15 push %r9 push %rax push %rcx push %rdi push %rsi lea addresses_WT_ht+0x1537c, %r11 nop nop nop nop and %r9, %r9 mov (%r11), %ax nop nop nop nop and $36393, %r15 lea addresses_normal_ht+0x906c, %rcx nop nop add %r13, %r13 vmovups (%rcx), %ymm4 vextracti128 $0, %ymm4, %xmm4 vpextrq $1, %xmm4, %rsi nop sub $45626, %r11 lea addresses_UC_ht+0x481c, %rsi lea addresses_WC_ht+0x306c, %rdi nop nop nop add %r15, %r15 mov $88, %rcx rep movsw nop cmp $25073, %rdi lea addresses_WT_ht+0x182b4, %r13 nop nop nop nop nop dec %rax movl $0x61626364, (%r13) nop nop nop nop nop inc %rdi lea addresses_normal_ht+0x271c, %rsi lea addresses_WT_ht+0x6f1c, %rdi nop nop nop nop nop dec %r15 mov $78, %rcx rep movsq nop nop nop nop nop cmp $53162, %rsi lea addresses_D_ht+0xf171, %rsi lea addresses_normal_ht+0xd9d4, %rdi nop nop and %r13, %r13 mov $97, %rcx rep movsw nop and $54770, %rax lea addresses_WT_ht+0x1ad1c, %r15 nop nop nop xor $14526, %rdi movw $0x6162, (%r15) nop nop nop nop cmp $20762, %r15 lea addresses_A_ht+0x1241c, %rsi lea addresses_WC_ht+0x5dfc, %rdi nop nop nop nop nop lfence mov $0, %rcx rep movsb xor %r9, %r9 lea addresses_D_ht+0xb29c, %rsi lea addresses_normal_ht+0xf71c, %rdi nop nop nop nop nop dec %r15 mov $86, %rcx rep movsl nop nop cmp $61555, %rax lea addresses_normal_ht+0x151d6, %rax nop nop xor %rsi, %rsi mov $0x6162636465666768, %r15 movq %r15, (%rax) nop nop nop sub $34084, %r9 lea addresses_A_ht+0x1508c, %r15 nop nop nop add $18174, %rax mov (%r15), %rcx nop nop nop nop nop cmp $15944, %rdi lea addresses_UC_ht+0x1da1c, %rax nop nop nop nop dec %r15 movups (%rax), %xmm4 vpextrq $1, %xmm4, %rdi nop add %rcx, %rcx lea addresses_WT_ht+0x16660, %rsi nop nop nop nop nop xor $10900, %rcx mov $0x6162636465666768, %r15 movq %r15, (%rsi) nop nop nop nop nop sub $48430, %rcx lea addresses_WT_ht+0x10868, %rsi lea addresses_WT_ht+0x967a, %rdi clflush (%rsi) nop nop and $35578, %r11 mov $2, %rcx rep movsb nop nop nop and $13105, %rax lea addresses_UC_ht+0xe19c, %r11 nop nop nop nop inc %rdi movb $0x61, (%r11) nop nop sub %r9, %r9 pop %rsi pop %rdi pop %rcx pop %rax pop %r9 pop %r15 pop %r13 pop %r11 ret .global s_faulty_load s_faulty_load: push %r11 push %r12 push %r15 push %r9 push %rax push %rbx push %rdx // Store lea addresses_RW+0x56ec, %r12 nop nop nop nop and $46435, %r15 movb $0x51, (%r12) nop and %rdx, %rdx // Faulty Load lea addresses_normal+0x1c01c, %r11 nop and %rax, %rax movups (%r11), %xmm0 vpextrq $0, %xmm0, %rdx lea oracles, %r15 and $0xff, %rdx shlq $12, %rdx mov (%r15,%rdx,1), %rdx pop %rdx pop %rbx pop %rax pop %r9 pop %r15 pop %r12 pop %r11 ret /* <gen_faulty_load> [REF] {'src': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 0, 'same': False, 'type': 'addresses_normal'}, 'OP': 'LOAD'} {'dst': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 4, 'same': False, 'type': 'addresses_RW'}, 'OP': 'STOR'} [Faulty Load] {'src': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 0, 'same': True, 'type': 'addresses_normal'}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 4, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'LOAD'} {'src': {'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 1, 'same': True, 'type': 'addresses_normal_ht'}, 'OP': 'LOAD'} {'src': {'congruent': 11, 'same': False, 'type': 'addresses_UC_ht'}, 'dst': {'congruent': 2, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'REPM'} {'dst': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 3, 'same': True, 'type': 'addresses_WT_ht'}, 'OP': 'STOR'} {'src': {'congruent': 7, 'same': False, 'type': 'addresses_normal_ht'}, 'dst': {'congruent': 7, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'REPM'} {'src': {'congruent': 0, 'same': False, 'type': 'addresses_D_ht'}, 'dst': {'congruent': 1, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'REPM'} {'dst': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 8, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'STOR'} {'src': {'congruent': 9, 'same': False, 'type': 'addresses_A_ht'}, 'dst': {'congruent': 5, 'same': True, 'type': 'addresses_WC_ht'}, 'OP': 'REPM'} {'src': {'congruent': 5, 'same': False, 'type': 'addresses_D_ht'}, 'dst': {'congruent': 7, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'REPM'} {'dst': {'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 0, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'STOR'} {'src': {'NT': False, 'AVXalign': True, 'size': 8, 'congruent': 1, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'LOAD'} {'src': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 9, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'LOAD'} {'dst': {'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 0, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'STOR'} {'src': {'congruent': 2, 'same': False, 'type': 'addresses_WT_ht'}, 'dst': {'congruent': 1, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'REPM'} {'dst': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 7, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'STOR'} {'34': 21829} 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 */
src/giza-widget-background.adb
Fabien-Chouteau/Giza
7
26844
------------------------------------------------------------------------------ -- -- -- Giza -- -- -- -- Copyright (C) 2015 <NAME> (<EMAIL>) -- -- -- -- -- -- Redistribution and use in source and binary forms, with or without -- -- modification, are permitted provided that the following conditions are -- -- met: -- -- 1. Redistributions of source code must retain the above copyright -- -- notice, this list of conditions and the following disclaimer. -- -- 2. Redistributions in binary form must reproduce the above copyright -- -- notice, this list of conditions and the following disclaimer in -- -- the documentation and/or other materials provided with the -- -- distribution. -- -- 3. Neither the name of the copyright holder nor the names of its -- -- contributors may be used to endorse or promote products derived -- -- from this software without specific prior written permission. -- -- -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- -- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -- -- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -- -- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -- -- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -- -- LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -- -- DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -- -- THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -- -- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -- -- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- -- -- ------------------------------------------------------------------------------ package body Giza.Widget.Background is ---------- -- Draw -- ---------- overriding procedure Draw (This : in out Instance; Ctx : in out Context.Class; Force : Boolean := True) is begin if This.Is_Dirty or else Force then Ctx.Set_Color (This.BG); Ctx.Fill_Rounded_Rectangle (((0, 0), This.Get_Size), This.Radius); This.Set_Dirty (False); end if; end Draw; -------------------- -- Set_Background -- -------------------- procedure Set_Background (This : in out Instance; BG : Color) is begin This.BG := BG; end Set_Background; -------------------- -- Get_Background -- -------------------- function Get_Background (This : Instance) return Color is (This.BG); ----------------- -- Set_Rounded -- ----------------- procedure Set_Rounded (This : in out Instance; Radius : Dim) is begin This.Radius := Radius; end Set_Rounded; ------------ -- Radius -- ------------ function Radius (This : Instance) return Dim is (This.Radius); end Giza.Widget.Background;
libsrc/_DEVELOPMENT/math/float/math16/c/sdcc/cm16_sdcc_read_callee.asm
Frodevan/z88dk
640
86907
SECTION code_fp_math16 PUBLIC cm16_sdcc_readr_callee PUBLIC cm16_sdcc_read1_callee .cm16_sdcc_readr_callee ; sdcc half_t primitive ; Read right sdcc half_t from the stack ; ; enter : stack = sdcc_half right, sdcc_half left, ret1, ret0 ; ; exit : sdcc_half left, ret1 ; HL = sdcc_half right ; ; uses : af, bc, de, hl pop af ; my return pop bc ; ret 1 pop de ; sdcc_half left pop hl ; sdcc_half right push de ; sdcc_half left push bc ; ret 1 push af ; my return ret .cm16_sdcc_read1_callee ; sdcc half_t primitive ; Read a single sdcc half_t from the stack ; ; enter : stack = sdcc_half, ret1, ret0 ; ; exit : ret1 ; HL = sdcc_half ; ; uses : af, bc, de, hl pop af ; my return pop bc ; ret 1 pop hl ; sdcc_half push bc push af ret
src/gen/cups-bits_pthreadtypes_h.ads
persan/a-cups
0
5006
pragma Ada_2005; pragma Style_Checks (Off); with Interfaces.C; use Interfaces.C; with Interfaces.C.Extensions; with System; private package CUPS.bits_pthreadtypes_h is -- Copyright (C) 2002-2016 Free Software Foundation, Inc. -- This file is part of the GNU C Library. -- The GNU C Library is free software; you can redistribute it and/or -- modify it under the terms of the GNU Lesser General Public -- License as published by the Free Software Foundation; either -- version 2.1 of the License, or (at your option) any later version. -- The GNU C Library is distributed in the hope that it will be useful, -- but WITHOUT ANY WARRANTY; without even the implied warranty of -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -- Lesser General Public License for more details. -- You should have received a copy of the GNU Lesser General Public -- License along with the GNU C Library; if not, see -- <http://www.gnu.org/licenses/>. -- Thread identifiers. The structure of the attribute type is not -- exposed on purpose. subtype pthread_t is unsigned_long; -- bits/pthreadtypes.h:60 subtype pthread_attr_t_uu_size_array is Interfaces.C.char_array (0 .. 55); type pthread_attr_t (discr : unsigned := 0) is record case discr is when 0 => uu_size : aliased pthread_attr_t_uu_size_array; -- bits/pthreadtypes.h:65 when others => uu_align : aliased long; -- bits/pthreadtypes.h:66 end case; end record; pragma Convention (C_Pass_By_Copy, pthread_attr_t); pragma Unchecked_Union (pthread_attr_t); -- bits/pthreadtypes.h:63 type uu_pthread_internal_list is record uu_prev : access uu_pthread_internal_list; -- bits/pthreadtypes.h:77 uu_next : access uu_pthread_internal_list; -- bits/pthreadtypes.h:78 end record; pragma Convention (C_Pass_By_Copy, uu_pthread_internal_list); -- bits/pthreadtypes.h:75 subtype uu_pthread_list_t is uu_pthread_internal_list; -- Data structures for mutex handling. The structure of the attribute -- type is not exposed on purpose. -- KIND must stay at this position in the structure to maintain -- binary compatibility. -- Mutex __spins initializer used by PTHREAD_MUTEX_INITIALIZER. type pthread_mutex_t; type uu_pthread_mutex_s is record uu_lock : aliased int; -- bits/pthreadtypes.h:94 uu_count : aliased unsigned; -- bits/pthreadtypes.h:95 uu_owner : aliased int; -- bits/pthreadtypes.h:96 uu_nusers : aliased unsigned; -- bits/pthreadtypes.h:98 uu_kind : aliased int; -- bits/pthreadtypes.h:102 uu_spins : aliased short; -- bits/pthreadtypes.h:104 uu_elision : aliased short; -- bits/pthreadtypes.h:105 uu_list : aliased uu_pthread_list_t; -- bits/pthreadtypes.h:106 end record; pragma Convention (C_Pass_By_Copy, uu_pthread_mutex_s); subtype pthread_mutex_t_uu_size_array is Interfaces.C.char_array (0 .. 39); type pthread_mutex_t (discr : unsigned := 0) is record case discr is when 0 => uu_data : aliased uu_pthread_mutex_s; -- bits/pthreadtypes.h:125 when 1 => uu_size : aliased pthread_mutex_t_uu_size_array; -- bits/pthreadtypes.h:126 when others => uu_align : aliased long; -- bits/pthreadtypes.h:127 end case; end record; pragma Convention (C_Pass_By_Copy, pthread_mutex_t); pragma Unchecked_Union (pthread_mutex_t); -- bits/pthreadtypes.h:128 -- skipped anonymous struct anon_8 subtype pthread_mutexattr_t_uu_size_array is Interfaces.C.char_array (0 .. 3); type pthread_mutexattr_t (discr : unsigned := 0) is record case discr is when 0 => uu_size : aliased pthread_mutexattr_t_uu_size_array; -- bits/pthreadtypes.h:132 when others => uu_align : aliased int; -- bits/pthreadtypes.h:133 end case; end record; pragma Convention (C_Pass_By_Copy, pthread_mutexattr_t); pragma Unchecked_Union (pthread_mutexattr_t); -- bits/pthreadtypes.h:134 -- skipped anonymous struct anon_9 -- Data structure for conditional variable handling. The structure of -- the attribute type is not exposed on purpose. type pthread_cond_t; type anon_11 is record uu_lock : aliased int; -- bits/pthreadtypes.h:143 uu_futex : aliased unsigned; -- bits/pthreadtypes.h:144 uu_total_seq : aliased Extensions.unsigned_long_long; -- bits/pthreadtypes.h:145 uu_wakeup_seq : aliased Extensions.unsigned_long_long; -- bits/pthreadtypes.h:146 uu_woken_seq : aliased Extensions.unsigned_long_long; -- bits/pthreadtypes.h:147 uu_mutex : System.Address; -- bits/pthreadtypes.h:148 uu_nwaiters : aliased unsigned; -- bits/pthreadtypes.h:149 uu_broadcast_seq : aliased unsigned; -- bits/pthreadtypes.h:150 end record; pragma Convention (C_Pass_By_Copy, anon_11); subtype pthread_cond_t_uu_size_array is Interfaces.C.char_array (0 .. 47); type pthread_cond_t (discr : unsigned := 0) is record case discr is when 0 => uu_data : aliased anon_11; -- bits/pthreadtypes.h:151 when 1 => uu_size : aliased pthread_cond_t_uu_size_array; -- bits/pthreadtypes.h:152 when others => uu_align : aliased Long_Long_Integer; -- bits/pthreadtypes.h:153 end case; end record; pragma Convention (C_Pass_By_Copy, pthread_cond_t); pragma Unchecked_Union (pthread_cond_t); -- bits/pthreadtypes.h:154 -- skipped anonymous struct anon_10 subtype pthread_condattr_t_uu_size_array is Interfaces.C.char_array (0 .. 3); type pthread_condattr_t (discr : unsigned := 0) is record case discr is when 0 => uu_size : aliased pthread_condattr_t_uu_size_array; -- bits/pthreadtypes.h:158 when others => uu_align : aliased int; -- bits/pthreadtypes.h:159 end case; end record; pragma Convention (C_Pass_By_Copy, pthread_condattr_t); pragma Unchecked_Union (pthread_condattr_t); -- bits/pthreadtypes.h:160 -- skipped anonymous struct anon_12 -- Keys for thread-specific data subtype pthread_key_t is unsigned; -- bits/pthreadtypes.h:164 -- Once-only execution subtype pthread_once_t is int; -- bits/pthreadtypes.h:168 -- Data structure for read-write lock variable handling. The -- structure of the attribute type is not exposed on purpose. -- FLAGS must stay at this position in the structure to maintain -- binary compatibility. type pthread_rwlock_t; type pthread_rwlock_t_uu_pad1_array is array (0 .. 6) of aliased unsigned_char; type anon_14 is record uu_lock : aliased int; -- bits/pthreadtypes.h:179 uu_nr_readers : aliased unsigned; -- bits/pthreadtypes.h:180 uu_readers_wakeup : aliased unsigned; -- bits/pthreadtypes.h:181 uu_writer_wakeup : aliased unsigned; -- bits/pthreadtypes.h:182 uu_nr_readers_queued : aliased unsigned; -- bits/pthreadtypes.h:183 uu_nr_writers_queued : aliased unsigned; -- bits/pthreadtypes.h:184 uu_writer : aliased int; -- bits/pthreadtypes.h:185 uu_shared : aliased int; -- bits/pthreadtypes.h:186 uu_rwelision : aliased signed_char; -- bits/pthreadtypes.h:187 uu_pad1 : aliased pthread_rwlock_t_uu_pad1_array; -- bits/pthreadtypes.h:192 uu_pad2 : aliased unsigned_long; -- bits/pthreadtypes.h:195 uu_flags : aliased unsigned; -- bits/pthreadtypes.h:198 end record; pragma Convention (C_Pass_By_Copy, anon_14); subtype pthread_rwlock_t_uu_size_array is Interfaces.C.char_array (0 .. 55); type pthread_rwlock_t (discr : unsigned := 0) is record case discr is when 0 => uu_data : aliased anon_14; -- bits/pthreadtypes.h:200 when 1 => uu_size : aliased pthread_rwlock_t_uu_size_array; -- bits/pthreadtypes.h:220 when others => uu_align : aliased long; -- bits/pthreadtypes.h:221 end case; end record; pragma Convention (C_Pass_By_Copy, pthread_rwlock_t); pragma Unchecked_Union (pthread_rwlock_t); -- bits/pthreadtypes.h:222 -- skipped anonymous struct anon_13 -- FLAGS must stay at this position in the structure to maintain -- binary compatibility. subtype pthread_rwlockattr_t_uu_size_array is Interfaces.C.char_array (0 .. 7); type pthread_rwlockattr_t (discr : unsigned := 0) is record case discr is when 0 => uu_size : aliased pthread_rwlockattr_t_uu_size_array; -- bits/pthreadtypes.h:226 when others => uu_align : aliased long; -- bits/pthreadtypes.h:227 end case; end record; pragma Convention (C_Pass_By_Copy, pthread_rwlockattr_t); pragma Unchecked_Union (pthread_rwlockattr_t); -- bits/pthreadtypes.h:228 -- skipped anonymous struct anon_15 -- POSIX spinlock data type. subtype pthread_spinlock_t is int; -- bits/pthreadtypes.h:234 -- POSIX barriers data type. The structure of the type is -- deliberately not exposed. subtype pthread_barrier_t_uu_size_array is Interfaces.C.char_array (0 .. 31); type pthread_barrier_t (discr : unsigned := 0) is record case discr is when 0 => uu_size : aliased pthread_barrier_t_uu_size_array; -- bits/pthreadtypes.h:241 when others => uu_align : aliased long; -- bits/pthreadtypes.h:242 end case; end record; pragma Convention (C_Pass_By_Copy, pthread_barrier_t); pragma Unchecked_Union (pthread_barrier_t); -- bits/pthreadtypes.h:243 -- skipped anonymous struct anon_16 subtype pthread_barrierattr_t_uu_size_array is Interfaces.C.char_array (0 .. 3); type pthread_barrierattr_t (discr : unsigned := 0) is record case discr is when 0 => uu_size : aliased pthread_barrierattr_t_uu_size_array; -- bits/pthreadtypes.h:247 when others => uu_align : aliased int; -- bits/pthreadtypes.h:248 end case; end record; pragma Convention (C_Pass_By_Copy, pthread_barrierattr_t); pragma Unchecked_Union (pthread_barrierattr_t); -- bits/pthreadtypes.h:249 -- skipped anonymous struct anon_17 -- Extra attributes for the cleanup functions. end CUPS.bits_pthreadtypes_h;
tests/stack_and_math/stack_and_print.asm
UPB-FILS-ALF/devoir-1-tests
0
99350
push 300 push 200 stack print
pin-3.22-98547-g7a303a835-gcc-linux/source/tools/ToolUnitTests/df_test_tool5_win.asm
ArthasZhang007/15418FinalProject
0
8860
; ; Copyright (C) 2007-2012 Intel Corporation. ; SPDX-License-Identifier: MIT ; PUBLIC TestDfByMovsd .686 .model flat, c extern source:word extern dest:word .code TestDfByMovsd PROC push esi push edi lea esi, source add esi, 4 lea edi, dest add edi, 4 std movsd movsd pop edi pop esi ret TestDfByMovsd ENDP end
ver0/2_pro/3priority/pmtest3.asm
RongbinZhuang/simpleOS
0
7179
<gh_stars>0 ;pmtest3.asm ;nasm pmtest3.asm -o pmtest3.com %include "pm.inc" ;常量,宏 org 0100h jmp LABEL_BEGIN [section .gdt] ;GDT ; 段基址, 段界限 , 属性 LABEL_GDT: Descriptor 0, 0, 0 ; 空描述符 LABEL_DESC_NORMAL: Descriptor 0, 0ffffh, DA_DRW ; Normal 描述符 LABEL_DESC_CODE32: Descriptor 0, SegCode32Len-1,DA_C + DA_32 ; 非一致代码段, 32 LABEL_DESC_CODE16: Descriptor 0, 0ffffh, DA_C ; 非一致代码段, 16 LABEL_DESC_DATA: Descriptor 0, DataLen - 1, DA_DRW+DA_DPL1 ; Data LABEL_DESC_STACK: Descriptor 0, TopOfStack, DA_DRWA + DA_32; Stack, 32 位 LABEL_DESC_LDT: Descriptor 0, LDTLen - 1, DA_LDT ; LDT LABEL_DESC_VIDEO: Descriptor 0B8000H ,0FFFFH ,DA_DRW+DA_DPL3 LABEL_DESC_CODE_DEST: Descriptor 0 ,SegCodeDestLen-1 ,DA_C+DA_32 LABEL_CALL_GATE_TEST: Gate SelectorCodeDest ,0 ,0 ,DA_386CGate+DA_DPL3 ; 目标选择子 偏移 Dcount 属性 LABEL_DESC_CODE_RING3: Descriptor 0 ,SegCodeRing3Len-1 ,DA_C+DA_32+DA_DPL3 LABEL_DESC_STACK3: Descriptor 0 ,TopOfStack3 ,DA_DRWA+DA_32+DA_DPL3 LABEL_DESC_TSS: Descriptor 0 ,TSSLen-1 ,DA_386TSS ; GDT 结束 GdtLen equ $ - LABEL_GDT ; GDT长度 GdtPtr dw GdtLen - 1 ; GDT界限 dd 0 ; GDT基地址 ; GDT 选择子 SelectorNormal equ LABEL_DESC_NORMAL - LABEL_GDT SelectorCode32 equ LABEL_DESC_CODE32 - LABEL_GDT SelectorCode16 equ LABEL_DESC_CODE16 - LABEL_GDT SelectorData equ LABEL_DESC_DATA - LABEL_GDT SelectorStack equ LABEL_DESC_STACK - LABEL_GDT SelectorLDT equ LABEL_DESC_LDT - LABEL_GDT SelectorVideo equ LABEL_DESC_VIDEO - LABEL_GDT SelectorCodeDest equ LABEL_DESC_CODE_DEST- LABEL_GDT SelectorCallGateTest equ LABEL_CALL_GATE_TEST-LABEL_GDT SelectorCodeRing3 equ LABEL_DESC_CODE_RING3 -LABEL_GDT+SA_RPL3 SelectorStack3 equ LABEL_DESC_STACK3 -LABEL_GDT+SA_RPL3 SelectorTSS equ LABEL_DESC_TSS -LABEL_GDT ; END of [SECTION .gdt] [section .s16] align 32 [BITS 32] LABEL_DATA: SPValueInRealMode dw 0 PMMessage: db "In Protect Mode now.",0 OffsetPMMessage equ PMMessage - $$ StrTest: db "HELLOWORLD",0 OffsetStrText equ StrTest-$$ DataLen equ $-LABEL_DATA [section .gs] ALIGN 32 [BITS 32] LABEL_STACK: times 512 db 0 TopOfStack equ $-LABEL_STACK-1 [section .s16] [BITS 16] LABEL_BEGIN: mov ax ,cs mov ds ,ax mov es ,ax mov ss ,ax mov sp ,0100h mov [LABEL_GO_BACK_TO_REAL+3] ,ax mov [SPValueInRealMode] ,sp mov ax ,cs movzx eax ,ax shl eax ,4 add eax ,LABEL_SEG_CODE16 mov word[LABEL_DESC_CODE16+2] ,ax shr eax ,16 mov byte[LABEL_DESC_CODE16+4] ,al mov byte[LABEL_DESC_CODE16+7] ,ah xor eax ,eax mov ax ,cs movzx eax ,ax shl eax ,4 add eax ,LABEL_TSS mov WORD[LABEL_DESC_TSS+2] ,ax shr eax ,16 mov BYTE[LABEL_DESC_TSS+4] ,al mov BYTE[LABEL_DESC_TSS+7] ,ah xor eax ,eax mov ax ,cs movzx eax ,ax shl eax ,4 add eax ,LABEL_CODE_RING3 mov word[LABEL_DESC_CODE_RING3+2] ,ax shr eax ,16 mov byte[LABEL_DESC_CODE_RING3+4] ,al mov byte[LABEL_DESC_CODE_RING3+7] ,ah xor eax ,eax mov ax ,cs movzx eax ,ax shl eax ,4 add eax ,LABEL_STACK3 mov word[LABEL_DESC_STACK3+2] ,ax shr eax ,16 mov byte[LABEL_DESC_STACK3+4] ,al mov byte[LABEL_DESC_STACK3+7] ,ah xor eax ,eax mov ax ,cs movzx eax ,ax shl eax ,4 add eax ,LABEL_SEG_CODE_DEST mov word[LABEL_DESC_CODE_DEST+2] ,ax shr eax ,16 mov byte[LABEL_DESC_CODE_DEST+4] ,al mov byte[LABEL_DESC_CODE_DEST+7] ,ah xor eax ,eax mov ax ,cs shl eax ,4 add eax ,LABEL_SEG_CODE32 mov WORD[LABEL_DESC_CODE32+2] ,ax shr eax ,16 mov BYTE[LABEL_DESC_CODE32+4] ,al mov BYTE[LABEL_DESC_CODE32+7] ,ah xor eax, eax mov ax, ds shl eax, 4 add eax, LABEL_DATA mov word [LABEL_DESC_DATA + 2], ax shr eax, 16 mov byte [LABEL_DESC_DATA + 4], al mov byte [LABEL_DESC_DATA + 7], ah ; 初始化堆栈段描述符 xor eax, eax mov ax, ds shl eax, 4 add eax, LABEL_STACK mov word [LABEL_DESC_STACK + 2], ax shr eax, 16 mov byte [LABEL_DESC_STACK + 4], al mov byte [LABEL_DESC_STACK + 7], ah ; 初始化 LDT 在 GDT 中的描述符 xor eax, eax mov ax, ds shl eax, 4 add eax, LABEL_LDT mov word [LABEL_DESC_LDT + 2], ax shr eax, 16 mov byte [LABEL_DESC_LDT + 4], al mov byte [LABEL_DESC_LDT + 7], ah xor eax, eax mov ax, ds shl eax, 4 add eax, LABEL_CODE_A mov word [LABEL_LDT_DESC_CODEA + 2], ax shr eax, 16 mov byte [LABEL_LDT_DESC_CODEA + 4], al mov byte [LABEL_LDT_DESC_CODEA + 7], ah xor eax ,eax mov ax ,ds shl eax ,4 add eax ,LABEL_GDT mov DWORD[GdtPtr+2] ,eax lgdt [GdtPtr] cli in al ,92h or al ,00000010b out 92h ,al mov eax ,cr0 or eax ,1 mov cr0 ,eax jmp DWORD SelectorCode32:0 LABEL_REAL_ENTRY: mov ax ,cs mov ds ,ax mov es ,ax mov ss ,ax mov sp ,[SPValueInRealMode] in al ,92h and al ,11111101b out 92h ,al sti mov ax ,4c00h int 21h [section .s32] [BITS 32] LABEL_SEG_CODE32: mov ax ,SelectorData mov ds ,ax mov ax ,SelectorVideo mov gs ,ax mov ax ,SelectorStack mov ss ,ax mov esp ,TopOfStack mov ah ,0ch xor esi ,esi xor edi ,edi mov esi ,OffsetPMMessage mov edi ,40 cld .1: lodsb test al ,al jz .2 mov [gs:edi] ,ax add edi ,2 jmp .1 .2: call DispReturn mov ax ,SelectorLDT lldt ax mov ax ,SelectorTSS ltr ax push SelectorStack3 push TopOfStack3 push SelectorCodeRing3 push 0 retf call SelectorCallGateTest:0 jmp SelectorLDTCodeA:0 DispReturn: push eax push ebx mov eax ,edi mov bl ,160 div bl and eax ,0ffh inc eax mov bl ,160 mul bl mov edi ,eax pop ebx pop eax ret SegCode32Len equ $-LABEL_SEG_CODE32 [section .s16code] align 32 [BITS 16] LABEL_SEG_CODE16: mov ax ,SelectorNormal mov ds ,ax mov es ,ax mov fs ,ax mov gs ,ax mov ss ,ax mov eax ,cr0 and al ,11111110b mov cr0 ,eax LABEL_GO_BACK_TO_REAL: jmp 0:LABEL_REAL_ENTRY Code16Len equ $-LABEL_SEG_CODE16 [section .ldt] align 32 LABEL_LDT: LABEL_LDT_DESC_CODEA:Descriptor 0 ,CodeALen-1 ,DA_C+DA_32 LDTLen equ $-LABEL_LDT SelectorLDTCodeA equ LABEL_LDT_DESC_CODEA-LABEL_LDT+SA_TIL [section .la] align 32 [BITS 32] LABEL_CODE_A: mov ax ,SelectorVideo mov gs ,ax mov edi ,160*12 mov ah ,0ch mov al ,'L' mov [gs:edi] ,ax jmp SelectorCode16:0 CodeALen equ $-LABEL_CODE_A [section .sdest] [BITS 32] LABEL_SEG_CODE_DEST: ;JMP $ mov ax ,SelectorVideo mov gs ,ax mov edi ,(80*12+40)*2 mov ah ,0ch mov al ,'c' mov [gs:edi] ,ax mov ax ,SelectorLDT lldt ax jmp SelectorLDTCodeA:0 ;retf SegCodeDestLen equ $-LABEL_SEG_CODE_DEST [section .s3] align 32 [BITS 32] LABEL_STACK3: times 512 db 0 TopOfStack3 equ $-LABEL_STACK3-1 [section .ring3] align 32 [BITS 32] LABEL_CODE_RING3: mov ax ,SelectorVideo mov gs ,ax mov edi ,(80*13+40)*2 mov ah ,0ch mov al ,'3' mov [gs:edi] ,ax call SelectorCallGateTest:0 jmp $ SegCodeRing3Len equ $-LABEL_CODE_RING3 [section .tss] align 32 [BITS 32] LABEL_TSS: DD 0 DD TopOfStack DD SelectorStack DD 0 DD 0 DD 0 DD 0 DD 0 DD 0 DD 0 DD 0 DD 0 DD 0 DD 0 DD 0 DD 0 DD 0 DD 0 DD 0 DD 0 DD 0 DD 0 DD 0 DD 0 DD 0 DW 0 DW $-LABEL_TSS+2 DB 0FFH TSSLen equ $-LABEL_TSS
programs/oeis/022/A022847.asm
karttu/loda
0
160050
; A022847: Integer nearest n*sqrt(3). ; 0,2,3,5,7,9,10,12,14,16,17,19,21,23,24,26,28,29,31,33,35,36,38,40,42,43,45,47,48,50,52,54,55,57,59,61,62,64,66,68,69,71,73,74,76,78,80,81,83,85,87,88,90,92,94,95,97,99,100,102,104,106,107,109,111,113,114,116,118,120,121,123,125,126,128,130,132,133,135,137,139,140,142,144,145,147,149,151,152,154,156,158,159,161,163,165,166,168,170,171,173,175,177,178,180,182,184,185,187,189,191,192,194,196,197,199,201,203,204,206,208,210,211,213,215,217,218,220,222,223,225,227,229,230,232,234,236,237,239,241,242,244,246,248,249,251,253,255,256,258,260,262,263,265,267,268,270,272,274,275,277,279,281,282,284,286,288,289,291,293,294,296,298,300,301,303,305,307,308,310,312,314,315,317,319,320,322,324,326,327,329,331,333,334,336,338,339,341,343,345,346,348,350,352,353,355,357,359,360,362,364,365,367,369,371,372,374,376,378,379,381,383,385,386,388,390,391,393,395,397,398,400,402,404,405,407,409,410,412,414,416,417,419,421,423,424,426,428,430,431 pow $0,2 mul $0,3 lpb $0,1 sub $0,$1 sub $0,1 add $1,1 trn $0,$1 lpe