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
Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/s-addima.ads
djamal2727/Main-Bearing-Analytical-Model
0
23528
<reponame>djamal2727/Main-Bearing-Analytical-Model<gh_stars>0 ------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- S Y S T E M . A D D R E S S _ I M A G E -- -- -- -- S p e c -- -- -- -- Copyright (C) 1992-2020, Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 3, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. -- -- -- -- As a special exception under Section 7 of GPL version 3, you are granted -- -- additional permissions described in the GCC Runtime Library Exception, -- -- version 3.1, as published by the Free Software Foundation. -- -- -- -- You should have received a copy of the GNU General Public License and -- -- a copy of the GCC Runtime Library Exception along with this program; -- -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see -- -- <http://www.gnu.org/licenses/>. -- -- -- -- GNAT was originally developed by the GNAT team at New York University. -- -- Extensive contributions were provided by Ada Core Technologies Inc. -- -- -- ------------------------------------------------------------------------------ -- This is a GNAT specific addition which provides a useful debugging -- procedure that gives an (implementation dependent) string which -- identifies an address. -- This unit may be used directly from an application program by providing -- an appropriate WITH, and the interface can be expected to remain stable. function System.Address_Image (A : Address) return String; pragma Pure (System.Address_Image); -- Returns string (hexadecimal digits with upper case letters) representing -- the address (string is 8/16 bytes for 32/64-bit machines). 'First of the -- result = 1.
src/Categories/Category/Monoidal/Closed.agda
MirceaS/agda-categories
0
4497
<reponame>MirceaS/agda-categories {-# OPTIONS --without-K --safe #-} open import Categories.Category open import Categories.Category.Monoidal -- the definition used here is not very similar to what one usually sees in nLab or -- any textbook. the difference is that usually closed monoidal category is defined -- through a right adjoint of -⊗X, which is [X,-]. then there is an induced bifunctor -- [-,-]. -- -- but in proof relevant context, the induced bifunctor [-,-] does not have to be -- exactly the intended bifunctor! in fact, one can probably only show that the -- intended bifunctor is only naturally isomorphic to the induced one, which is -- significantly weaker. -- -- the approach taken here as an alternative is to BEGIN with a bifunctor -- already. however, is it required to have mates between any given two adjoints. this -- definition can be shown equivalent to the previous one but just works better. module Categories.Category.Monoidal.Closed {o ℓ e} {C : Category o ℓ e} (M : Monoidal C) where private module C = Category C open Category C variable X Y A B : Obj open import Level open import Data.Product using (_,_) open import Categories.Adjoint open import Categories.Adjoint.Mate open import Categories.Functor renaming (id to idF) open import Categories.Functor.Bifunctor open import Categories.Functor.Hom open import Categories.Category.Instance.Setoids open import Categories.NaturalTransformation hiding (id) open import Categories.NaturalTransformation.Properties open import Categories.NaturalTransformation.NaturalIsomorphism as NI record Closed : Set (levelOfTerm M) where open Monoidal M public field [-,-] : Bifunctor C.op C C adjoint : (-⊗ X) ⊣ appˡ [-,-] X mate : (f : X ⇒ Y) → Mate (adjoint {X}) (adjoint {Y}) (appʳ-nat ⊗ f) (appˡ-nat [-,-] f) module [-,-] = Functor [-,-] module adjoint {X} = Adjoint (adjoint {X}) module mate {X Y} f = Mate (mate {X} {Y} f) [_,-] : Obj → Functor C C [_,-] = appˡ [-,-] [-,_] : Obj → Functor C.op C [-,_] = appʳ [-,-] [_,_]₀ : Obj → Obj → Obj [ X , Y ]₀ = [-,-].F₀ (X , Y) [_,_]₁ : A ⇒ B → X ⇒ Y → [ B , X ]₀ ⇒ [ A , Y ]₀ [ f , g ]₁ = [-,-].F₁ (f , g) Hom[-⊗_,-] : ∀ X → Bifunctor C.op C (Setoids ℓ e) Hom[-⊗ X ,-] = adjoint.Hom[L-,-] {X} Hom[-,[_,-]] : ∀ X → Bifunctor C.op C (Setoids ℓ e) Hom[-,[ X ,-]] = adjoint.Hom[-,R-] {X} Hom-NI : ∀ {X : Obj} → NaturalIsomorphism Hom[-⊗ X ,-] Hom[-,[ X ,-]] Hom-NI = Hom-NI′ adjoint
src/drivers/adabase-driver-base-mysql.adb
jrmarino/AdaBase
30
26409
<gh_stars>10-100 -- This file is covered by the Internet Software Consortium (ISC) License -- Reference: ../../License.txt with Ada.Exceptions; package body AdaBase.Driver.Base.MySQL is package EX renames Ada.Exceptions; --------------- -- execute -- --------------- overriding function execute (driver : MySQL_Driver; sql : String) return Affected_Rows is trsql : String := CT.trim_sql (sql); nquery : Natural := CT.count_queries (trsql); aborted : constant Affected_Rows := 0; err1 : constant CT.Text := CT.SUS ("ACK! Execution attempted on inactive connection"); err2 : constant String := "Driver is configured to allow only one query at " & "time, but this SQL contains multiple queries: "; begin if not driver.connection_active then -- Fatal attempt to query an unccnnected database driver.log_problem (category => execution, message => err1, break => True); return aborted; end if; if nquery > 1 and then not driver.trait_multiquery_enabled then -- Fatal attempt to execute multiple queries when it's not permitted driver.log_problem (category => execution, message => CT.SUS (err2 & trsql), break => True); return aborted; end if; declare result : Affected_Rows; begin -- MySQL execute is configured to support multiquery at this point -- so it is not necessary to loop through subqueries. We send the -- trimmed compound query as it was received. driver.connection.execute (trsql); driver.log_nominal (execution, CT.SUS (trsql)); result := driver.connection.rows_affected_by_execution; return result; exception when ACM.QUERY_FAIL => driver.log_problem (category => execution, message => CT.SUS (trsql), pull_codes => True); return aborted; end; end execute; ------------------------------------------------------------------------ -- ROUTINES OF ALL DRIVERS NOT COVERED BY INTERFACES (TECH REASON) -- ------------------------------------------------------------------------ ------------- -- query -- ------------- function query (driver : MySQL_Driver; sql : String) return ASM.MySQL_statement is begin return driver.private_query (sql); end query; --------------- -- prepare -- --------------- function prepare (driver : MySQL_Driver; sql : String) return ASM.MySQL_statement is begin return driver.private_prepare (sql); end prepare; -------------------- -- query_select -- -------------------- function query_select (driver : MySQL_Driver; distinct : Boolean := False; tables : String; columns : String; conditions : String := blankstring; groupby : String := blankstring; having : String := blankstring; order : String := blankstring; null_sort : Null_Priority := native; limit : Trax_ID := 0; offset : Trax_ID := 0) return ASM.MySQL_statement is begin return driver.private_query (driver.sql_assemble (distinct => distinct, tables => tables, columns => columns, conditions => conditions, groupby => groupby, having => having, order => order, null_sort => null_sort, limit => limit, offset => offset)); end query_select; ---------------------- -- prepare_select -- ---------------------- function prepare_select (driver : MySQL_Driver; distinct : Boolean := False; tables : String; columns : String; conditions : String := blankstring; groupby : String := blankstring; having : String := blankstring; order : String := blankstring; null_sort : Null_Priority := native; limit : Trax_ID := 0; offset : Trax_ID := 0) return ASM.MySQL_statement is begin return driver.private_prepare (driver.sql_assemble (distinct => distinct, tables => tables, columns => columns, conditions => conditions, groupby => groupby, having => having, order => order, null_sort => null_sort, limit => limit, offset => offset)); end prepare_select; ------------------------------------------------------------------------ -- PUBLIC ROUTINES NOT COVERED BY INTERFACES -- ------------------------------------------------------------------------ --------------------------------- -- trait_compressed_protocol -- --------------------------------- function trait_protocol_compressed (driver : MySQL_Driver) return Boolean is begin return driver.connection.compressed; end trait_protocol_compressed; -------------------------------- -- trait_query_buffers_used -- -------------------------------- function trait_query_buffers_used (driver : MySQL_Driver) return Boolean is begin return driver.connection.useBuffer; end trait_query_buffers_used; -------------------------------------- -- set_trait_compressed_protocol -- ------------------------------------- procedure set_trait_protocol_compressed (driver : MySQL_Driver; trait : Boolean) is begin driver.connection.setCompressed (compressed => trait); end set_trait_protocol_compressed; ------------------------------ -- set_query_buffers_used -- ------------------------------ procedure set_trait_query_buffers_used (driver : MySQL_Driver; trait : Boolean) is begin driver.connection.setUseBuffer (buffered => trait); end set_trait_query_buffers_used; ------------------------------------------------------------------------ -- PRIVATE ROUTINES NOT COVERED BY INTERFACES -- ------------------------------------------------------------------------ ------------------ -- initialize -- ------------------ overriding procedure initialize (Object : in out MySQL_Driver) is begin Object.connection := Object.local_connection'Unchecked_Access; Object.dialect := driver_mysql; end initialize; ----------------------- -- private_connect -- ----------------------- overriding procedure private_connect (driver : out MySQL_Driver; database : String; username : String; password : String; hostname : String := blankstring; socket : String := blankstring; port : Posix_Port := portless) is err1 : constant CT.Text := CT.SUS ("ACK! Reconnection attempted on active connection"); nom : constant CT.Text := CT.SUS ("Connection to " & database & " database succeeded."); begin if driver.connection_active then driver.log_problem (category => execution, message => err1); return; end if; driver.connection.connect (database => database, username => username, password => password, socket => socket, hostname => hostname, port => port); driver.connection_active := driver.connection.all.connected; driver.log_nominal (category => connecting, message => nom); exception when Error : others => driver.log_problem (category => connecting, break => True, message => CT.SUS (ACM.EX.Exception_Message (X => Error))); end private_connect; --------------------- -- private_query -- --------------------- function private_query (driver : MySQL_Driver; sql : String) return ASM.MySQL_statement is duplicate : aliased String := sql; err1 : constant CT.Text := CT.SUS ("ACK! Query attempted on inactive connection"); begin if driver.connection_active then declare err2 : constant CT.Text := CT.SUS ("Query failed!"); statement : ASM.MySQL_statement (type_of_statement => AID.ASB.direct_statement, log_handler => logger'Access, mysql_conn => ACM.MySQL_Connection_Access (driver.connection), initial_sql => duplicate'Unchecked_Access, con_error_mode => driver.trait_error_mode, con_case_mode => driver.trait_column_case, con_max_blob => driver.trait_max_blob_size, con_buffered => driver.trait_query_buffers_used); begin if statement.successful then driver.log_nominal (category => execution, message => CT.SUS ("query succeeded," & statement.rows_returned'Img & " rows returned")); else driver.log_nominal (category => execution, message => err2); end if; return statement; exception when RES : others => -- Fatal attempt to create a direct statement driver.log_problem (category => execution, message => CT.SUS (EX.Exception_Message (RES)), pull_codes => True, break => True); end; else -- Fatal attempt to query an unconnected database driver.log_problem (category => execution, message => err1, break => True); end if; -- We never get here, the driver.log_problem throws exception first raise ACM.STMT_NOT_VALID with "failed to return MySQL statement"; end private_query; ----------------------- -- private_prepare -- ----------------------- function private_prepare (driver : MySQL_Driver; sql : String) return ASM.MySQL_statement is duplicate : aliased String := sql; err1 : constant CT.Text := CT.SUS ("ACK! Query attempted on inactive connection"); begin if driver.connection_active then declare statement : ASM.MySQL_statement (type_of_statement => AID.ASB.prepared_statement, log_handler => logger'Access, mysql_conn => ACM.MySQL_Connection_Access (driver.connection), initial_sql => duplicate'Unchecked_Access, con_error_mode => driver.trait_error_mode, con_case_mode => driver.trait_column_case, con_max_blob => driver.trait_max_blob_size, con_buffered => driver.trait_query_buffers_used); begin return statement; exception when RES : others => -- Fatal attempt to prepare a statement driver.log_problem (category => statement_preparation, message => CT.SUS (EX.Exception_Message (RES)), pull_codes => True, break => True); end; else -- Fatal attempt to query an unconnected database driver.log_problem (category => statement_preparation, message => err1, break => True); end if; -- We never get here, the driver.log_problem throws exception first raise ACM.STMT_NOT_VALID with "failed to return MySQL statement"; end private_prepare; -------------------- -- sql_assemble -- -------------------- function sql_assemble (driver : MySQL_Driver; distinct : Boolean := False; tables : String; columns : String; conditions : String := blankstring; groupby : String := blankstring; having : String := blankstring; order : String := blankstring; null_sort : Null_Priority := native; limit : Trax_ID := 0; offset : Trax_ID := 0) return String is vanilla : String := assembly_common_select (distinct, tables, columns, conditions, groupby, having, order); begin if null_sort /= native then driver.log_nominal (category => execution, message => CT.SUS ("Note that NULLS FIRST/LAST is not " & "supported by MySQL so the null_sort setting is ignored")); end if; if limit > 0 then if offset > 0 then return vanilla & " LIMIT" & limit'Img & " OFFSET" & offset'Img; else return vanilla & " LIMIT" & limit'Img; end if; end if; return vanilla; end sql_assemble; ----------------------------- -- call_stored_procedure -- ----------------------------- function call_stored_procedure (driver : MySQL_Driver; stored_procedure : String; proc_arguments : String) return ASM.MySQL_statement is SQL : String := "CALL " & stored_procedure & " (" & proc_arguments & ")"; begin return driver.query (SQL); end call_stored_procedure; end AdaBase.Driver.Base.MySQL;
Task/Towers-of-Hanoi/AppleScript/towers-of-hanoi-1.applescript
LaudateCorpus1/RosettaCodeData
1
4726
<filename>Task/Towers-of-Hanoi/AppleScript/towers-of-hanoi-1.applescript global moves --this is so the handler 'hanoi' can see the 'moves' variable set moves to "" hanoi(4, "peg A", "peg C", "peg B") on hanoi(ndisks, fromPeg, toPeg, withPeg) if ndisks is greater than 0 then hanoi(ndisks - 1, fromPeg, withPeg, toPeg) set moves to moves & "Move disk " & ndisks & " from " & fromPeg & " to " & toPeg & return hanoi(ndisks - 1, withPeg, toPeg, fromPeg) end if return moves end hanoi
oeis/133/A133224.asm
neoneye/loda-programs
11
25235
<filename>oeis/133/A133224.asm ; A133224: Let P(A) be the power set of an n-element set A and let B be the Cartesian product of P(A) with itself. Remove (y,x) from B when (x,y) is in B and x <> y and let R35 denote the reduced set B. Then a(n) = the sum of the sizes of the union of x and y for every (x,y) in R35. ; 0,2,14,78,400,1960,9312,43232,197120,885888,3934720,17307136,75509760,327182336,1409343488,6039920640,25770065920,109522223104,463857647616,1958507577344,8246342451200,34634627284992,145135557935104,606930466766848,2533274891059200,10555311836364800,43910096803069952,182395785814474752,756604739277291520,3134505344542179328,12970366934880092160,53610849980861382656,221360928918874357760,913113831719489765376,3763135791182777417728,15495265022216671068160,63751947519358685675520 mov $2,$0 mov $3,$0 lpb $0 sub $0,1 mov $1,$2 add $1,$3 mul $2,4 add $3,$1 lpe mov $0,$1
src/test/cpp/raw/lrsc/build/lrsc.asm
zeldin/VexRiscv
3
1389
build/lrsc.elf: file format elf32-littleriscv Disassembly of section .crt_section: 80000000 <trap_entry-0x20>: 80000000: 04c0006f j 8000004c <_start> 80000004: 00000013 nop 80000008: 00000013 nop 8000000c: 00000013 nop 80000010: 00000013 nop 80000014: 00000013 nop 80000018: 00000013 nop 8000001c: 00000013 nop 80000020 <trap_entry>: 80000020: 30002ef3 csrr t4,mstatus 80000024: 080efe93 andi t4,t4,128 80000028: 000e8a63 beqz t4,8000003c <notExternalInterrupt> 8000002c: 00002eb7 lui t4,0x2 80000030: 800e8e93 addi t4,t4,-2048 # 1800 <trap_entry-0x7fffe820> 80000034: 300e9073 csrw mstatus,t4 80000038: 30200073 mret 8000003c <notExternalInterrupt>: 8000003c: 34102ef3 csrr t4,mepc 80000040: 004e8e93 addi t4,t4,4 80000044: 341e9073 csrw mepc,t4 80000048: 30200073 mret 8000004c <_start>: 8000004c: 00100e13 li t3,1 80000050: 10000537 lui a0,0x10000 80000054: 06400593 li a1,100 80000058: 06500613 li a2,101 8000005c: 06600693 li a3,102 80000060: 00d52023 sw a3,0(a0) # 10000000 <trap_entry-0x70000020> 80000064: 18b5262f sc.w a2,a1,(a0) 80000068: 00100713 li a4,1 8000006c: 26e61e63 bne a2,a4,800002e8 <fail> 80000070: 00052703 lw a4,0(a0) 80000074: 26e69a63 bne a3,a4,800002e8 <fail> 80000078: 00200e13 li t3,2 8000007c: 10000537 lui a0,0x10000 80000080: 00450513 addi a0,a0,4 # 10000004 <trap_entry-0x7000001c> 80000084: 06700593 li a1,103 80000088: 06800613 li a2,104 8000008c: 06900693 li a3,105 80000090: 00d52023 sw a3,0(a0) 80000094: 18b5262f sc.w a2,a1,(a0) 80000098: 00100713 li a4,1 8000009c: 24e61663 bne a2,a4,800002e8 <fail> 800000a0: 00052703 lw a4,0(a0) 800000a4: 24e69263 bne a3,a4,800002e8 <fail> 800000a8: 00300e13 li t3,3 800000ac: 10000537 lui a0,0x10000 800000b0: 00450513 addi a0,a0,4 # 10000004 <trap_entry-0x7000001c> 800000b4: 06700593 li a1,103 800000b8: 06800613 li a2,104 800000bc: 06900693 li a3,105 800000c0: 18b5262f sc.w a2,a1,(a0) 800000c4: 00100713 li a4,1 800000c8: 22e61063 bne a2,a4,800002e8 <fail> 800000cc: 00052703 lw a4,0(a0) 800000d0: 20e69c63 bne a3,a4,800002e8 <fail> 800000d4: 00400e13 li t3,4 800000d8: 10000537 lui a0,0x10000 800000dc: 00850513 addi a0,a0,8 # 10000008 <trap_entry-0x70000018> 800000e0: 06a00593 li a1,106 800000e4: 06b00613 li a2,107 800000e8: 06c00693 li a3,108 800000ec: 00d52023 sw a3,0(a0) 800000f0: 100527af lr.w a5,(a0) 800000f4: 18b5262f sc.w a2,a1,(a0) 800000f8: 1ed79863 bne a5,a3,800002e8 <fail> 800000fc: 1e061663 bnez a2,800002e8 <fail> 80000100: 00052703 lw a4,0(a0) 80000104: 1ee59263 bne a1,a4,800002e8 <fail> 80000108: 00500e13 li t3,5 8000010c: 10000537 lui a0,0x10000 80000110: 00850513 addi a0,a0,8 # 10000008 <trap_entry-0x70000018> 80000114: 06d00593 li a1,109 80000118: 06e00613 li a2,110 8000011c: 06f00693 li a3,111 80000120: 00d52023 sw a3,0(a0) 80000124: 18b5262f sc.w a2,a1,(a0) 80000128: 1c061063 bnez a2,800002e8 <fail> 8000012c: 00052703 lw a4,0(a0) 80000130: 1ae59c63 bne a1,a4,800002e8 <fail> 80000134: 00600e13 li t3,6 80000138: 10000537 lui a0,0x10000 8000013c: 00c50513 addi a0,a0,12 # 1000000c <trap_entry-0x70000014> 80000140: 07000593 li a1,112 80000144: 07100613 li a2,113 80000148: 07200693 li a3,114 8000014c: 10000437 lui s0,0x10000 80000150: 01040413 addi s0,s0,16 # 10000010 <trap_entry-0x70000010> 80000154: 07300493 li s1,115 80000158: 07400913 li s2,116 8000015c: 07500993 li s3,117 80000160: 00d52023 sw a3,0(a0) 80000164: 01342023 sw s3,0(s0) 80000168: 100527af lr.w a5,(a0) 8000016c: 10042aaf lr.w s5,(s0) 80000170: 18b5262f sc.w a2,a1,(a0) 80000174: 1894292f sc.w s2,s1,(s0) 80000178: 16d79863 bne a5,a3,800002e8 <fail> 8000017c: 16061663 bnez a2,800002e8 <fail> 80000180: 00052703 lw a4,0(a0) 80000184: 16e59263 bne a1,a4,800002e8 <fail> 80000188: 173a9063 bne s5,s3,800002e8 <fail> 8000018c: 14091e63 bnez s2,800002e8 <fail> 80000190: 00042a03 lw s4,0(s0) 80000194: 15449a63 bne s1,s4,800002e8 <fail> 80000198: 00700e13 li t3,7 8000019c: 10000537 lui a0,0x10000 800001a0: 01450513 addi a0,a0,20 # 10000014 <trap_entry-0x7000000c> 800001a4: 07800593 li a1,120 800001a8: 07900613 li a2,121 800001ac: 07a00693 li a3,122 800001b0: 01000e93 li t4,16 800001b4 <test7>: 800001b4: 00d52023 sw a3,0(a0) 800001b8: 100527af lr.w a5,(a0) 800001bc: 18b5262f sc.w a2,a1,(a0) 800001c0: 12d79463 bne a5,a3,800002e8 <fail> 800001c4: 12061263 bnez a2,800002e8 <fail> 800001c8: 00052703 lw a4,0(a0) 800001cc: 10e59e63 bne a1,a4,800002e8 <fail> 800001d0: fffe8e93 addi t4,t4,-1 800001d4: 00450513 addi a0,a0,4 800001d8: 00358593 addi a1,a1,3 800001dc: 00360613 addi a2,a2,3 800001e0: 00368693 addi a3,a3,3 800001e4: fc0e98e3 bnez t4,800001b4 <test7> 800001e8: 00900e13 li t3,9 800001ec: 10000537 lui a0,0x10000 800001f0: 10050513 addi a0,a0,256 # 10000100 <trap_entry-0x6fffff20> 800001f4: 07b00593 li a1,123 800001f8: 07c00613 li a2,124 800001fc: 07d00693 li a3,125 80000200: 00d52023 sw a3,0(a0) 80000204: 100527af lr.w a5,(a0) 80000208: 00000073 ecall 8000020c: 18b5262f sc.w a2,a1,(a0) 80000210: 00100713 li a4,1 80000214: 0ce61a63 bne a2,a4,800002e8 <fail> 80000218: 00052703 lw a4,0(a0) 8000021c: 0ce69663 bne a3,a4,800002e8 <fail> 80000220: 00b00e13 li t3,11 80000224: 10000537 lui a0,0x10000 80000228: 30050513 addi a0,a0,768 # 10000300 <trap_entry-0x6ffffd20> 8000022c: 08200593 li a1,130 80000230: 08300613 li a2,131 80000234: 08400693 li a3,132 80000238: 00d52023 sw a3,0(a0) 8000023c: 00001eb7 lui t4,0x1 80000240: 800e8e93 addi t4,t4,-2048 # 800 <trap_entry-0x7ffff820> 80000244: 304e9073 csrw mie,t4 80000248: 00800e93 li t4,8 8000024c: 100527af lr.w a5,(a0) 80000250: 300e9073 csrw mstatus,t4 80000254: 00000013 nop 80000258: 00000013 nop 8000025c: 00000013 nop 80000260: 00000013 nop 80000264: 00000013 nop 80000268: 00000013 nop 8000026c: 18b5262f sc.w a2,a1,(a0) 80000270: 00100713 li a4,1 80000274: 06e61a63 bne a2,a4,800002e8 <fail> 80000278: 00052703 lw a4,0(a0) 8000027c: 06e69663 bne a3,a4,800002e8 <fail> 80000280: 00c00e13 li t3,12 80000284: 10000537 lui a0,0x10000 80000288: 40050513 addi a0,a0,1024 # 10000400 <trap_entry-0x6ffffc20> 8000028c: 08c00593 li a1,140 80000290: 08d00613 li a2,141 80000294: 08e00693 li a3,142 80000298: 00d52023 sw a3,0(a0) 8000029c: 00001eb7 lui t4,0x1 800002a0: 800e8e93 addi t4,t4,-2048 # 800 <trap_entry-0x7ffff820> 800002a4: 304e9073 csrw mie,t4 800002a8: 00002eb7 lui t4,0x2 800002ac: 808e8e93 addi t4,t4,-2040 # 1808 <trap_entry-0x7fffe818> 800002b0: 100527af lr.w a5,(a0) 800002b4: 300e9073 csrw mstatus,t4 800002b8: 00000013 nop 800002bc: 00000013 nop 800002c0: 00000013 nop 800002c4: 00000013 nop 800002c8: 00000013 nop 800002cc: 00000013 nop 800002d0: 18b5262f sc.w a2,a1,(a0) 800002d4: 00100713 li a4,1 800002d8: 00e61863 bne a2,a4,800002e8 <fail> 800002dc: 00052703 lw a4,0(a0) 800002e0: 00e69463 bne a3,a4,800002e8 <fail> 800002e4: 0100006f j 800002f4 <pass> 800002e8 <fail>: 800002e8: f0100137 lui sp,0xf0100 800002ec: f2410113 addi sp,sp,-220 # f00fff24 <pass+0x700ffc30> 800002f0: 01c12023 sw t3,0(sp) 800002f4 <pass>: 800002f4: f0100137 lui sp,0xf0100 800002f8: f2010113 addi sp,sp,-224 # f00fff20 <pass+0x700ffc2c> 800002fc: 00012023 sw zero,0(sp) 80000300: 00000013 nop 80000304: 00000013 nop 80000308: 00000013 nop 8000030c: 00000013 nop 80000310: 00000013 nop 80000314: 00000013 nop
src/vdp-macros.asm
flamewing/genesis-debugger
10
88901
; =========================================================================== ; Copyright (C) 2011-2020 by flamewing ; ; Permission to use, copy, modify, and/or distribute this software for any ; purpose with or without fee is hereby granted. ; ; THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES ; WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF ; MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ; ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES ; WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ; ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT ; OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ; =========================================================================== ifndef VDP_Macros ; Note: if you are adding those to S2 and S3&K disassemblies, make sure to ; also add this constant definition. VDP_Macros := 1 ; For register $80 - Mode Register 1 COL0_BLANK_OFF = %00000000 ; $00 COL0_BLANK_ON = %00100000 ; $20 HINT_OFF = %00000000 ; $00 HINT_ON = %00010000 ; $10 PALSEL_OFF = %00000000 ; $00 PALSEL_ON = %00000100 ; $04 HVLATCH_OFF = %00000000 ; $00 HVLATCH_ON = %00000010 ; $02 ECSYNC_OFF = %00000000 ; $00 ECSYNC_ON = %00000001 ; $01 MODE1_MASK = COL0_BLANK_ON|HINT_ON|PALSEL_ON|HVLATCH_ON|ECSYNC_ON ; For register $81 - Mode Register 2 VRAM_128KB_OFF = %00000000 ; $00 VRAM_128KB_ON = %10000000 ; $80 DISPLAY_OFF = %00000000 ; $00 DISPLAY_ON = %01000000 ; $40 VINT_OFF = %00000000 ; $00 VINT_ON = %00100000 ; $20 DMA_OFF = %00000000 ; $00 DMA_ON = %00010000 ; $10 V30_OFF = %00000000 ; $00 V30_ON = %00001000 ; $08 MODE_SMS = %00000000 ; $00 MODE_GEN = %00000100 ; $04 MODE2_MASK = VRAM_128KB_ON|DISPLAY_ON|VINT_ON|DMA_ON|V30_ON|MODE_GEN ; For register $86 - Sprite Pattern Generator Base Address SPRITES_LOW = %00000000 ; $00 SPRITES_HIGH = %00100000 ; $20 ; For register $8B - Mode Register 3 EXINT_OFF = %00000000 ; $00 EXINT_ON = %00001000 ; $08 VSCROLL_FULL = %00000000 ; $00 VSCROLL_CELL = %00000100 ; $04 HSCROLL_FULL = %00000000 ; $00 HSCROLL_TILE = %00000010 ; $02 HSCROLL_LINE = %00000011 ; $03 MODE3_MASK = EXINT_ON|VSCROLL_CELL|HSCROLL_LINE ; For register $8C - Mode Register 4 MODE_H32 = %00000000 ; $00 MODE_H32_FAST = %10000000 ; $80 ; Out of spec for most TVs MODE_H40_FAST = %00000001 ; $01 ; OK for most TVs MODE_H40 = %10000001 ; $81 VSYNC_NORMAL = %00000000 ; $00 PIXEL_CLOCK = %01000000 ; $40 HSYNC_NORMAL = %00000000 ; $00 HSYNC_OFF = %00100000 ; $20 PIXEL_BUS_OFF = %00000000 ; $00 PIXEL_BUS_ON = %00010000 ; $10 SHADOWHILITE_OFF = %00000000 ; $00 SHADOWHILITE_ON = %00001000 ; $08 INTERLACE_OFF = %00000000 ; $00 INTERLACE_NORMAL = %00000010 ; $02 INTERLACE_DOUBLE = %00000110 ; $06 MODE4_MASK = MODE_H40|PIXEL_CLOCK|HSYNC_OFF|PIXEL_BUS_ON|SHADOWHILITE_ON|INTERLACE_DOUBLE ; For register $8E - Nametable Pattern Generator Base Address PLANE_B_LOW = %00000000 ; $00 PLANE_B_HIGH = %00010000 ; $10 PLANE_A_LOW = %00000000 ; $00 PLANE_A_HIGH = %00000001 ; $00 BASE_PLANE_MASK = PLANE_B_HIGH|PLANE_A_HIGH ; For register $91 - Window Plane Horizontal Position DOCK_LEFT = %00000000 ; $00 DOCK_RIGHT = %10000000 ; $80 ; For register $92 - Window Plane Vertical Position DOCK_TOP = %00000000 ; $00 DOCK_BOTTOM = %10000000 ; $80 WINDOW_CELL_MASK = %00011111 ; $1F ; For register $97 - DMA Source DMA_FLAG = %00000000 ; $00 FILL_FLAG = %10000000 ; $80 COPY_FLAG = %11000000 ; $C0 valMode1 function mode,((mode&MODE1_MASK)|PALSEL_ON) valMode2 function mode,(mode&MODE2_MASK) addrPlaneA function addr,(addr/$400) addrWindow function addr,(addr/$400) addrPlaneB function addr,(addr/$2000) addrSprite function addr,(addr/$200) addrScroll function addr,(addr/$400) valBaseSprite function val,(val&SPRITES_HIGH) valBGColor function pal,index,((pal&3)<<4)|(index&$F) valMode3 function mode,(mode&MODE3_MASK) valMode4 function mode,(mode&MODE4_MASK) valBasePlane function val,(val&BASE_PLANE_MASK) valPlaneSize function width,height,(((height-32)/32)<<4)|((width-32)/32) valWindowLoc function dir,cells,(dir&$80)|(cells&WINDOW_CELL_MASK) valDMALenLow function length,length&$FF valDMALenHigh function length,(length&$FF00)>>8 valDMASrcLow function length,length&$FF valDMASrcMid function length,(length&$FF00)>>8 valDMASrcHigh function type,length,type|((length&$7F0000)>>16) regMode1 function mode,$8000|valMode1(mode) regMode2 function mode,$8100|valMode2(mode) regPlaneA function addr,$8200|addrPlaneA(addr) regWindow function addr,$8300|addrWindow(addr) regPlaneB function addr,$8400|addrPlaneB(addr) regSprite function addr,$8500|addrSprite(addr) regBaseSprite function val,$8600|valBaseSprite(val) regBGColor function pal,index,$8700|valBGColor(pal,index) regMode4HScroll function val,$8800|(val&$FF) regMode4VScroll function val,$8900|(val&$FF) regHIntLine function line,$8A00|(line&$FF) regMode3 function mode,$8B00|valMode3(mode) regMode4 function mode,$8C00|valMode4(mode) regScroll function addr,$8D00|addrScroll(addr) regBasePlane function val,$8E00|valBasePlane(val) regAutoIncr function delta,$8F00|(delta&$FF) regPlaneSize function width,height,$9000|valPlaneSize(width,height) regWindowHLoc function dir,cells,$9100|valWindowLoc(dir,cells) regWindowVLoc function dir,cells,$9200|valWindowLoc(dir,cells) regDMALenLow function length,$9300|valDMALenLow(length) regDMALenHigh function length,$9400|valDMALenHigh(length) regDMASrcLow function length,$9500|valDMASrcLow(length) regDMASrcMid function length,$9600|valDMASrcMid(length) regDMASrcHigh function type,length,$9700|valDMASrcHigh(type,length) planeSizeBytes function width,height,((height-32)/32)*((width-32)/32)*2 ; Status register bits IS_PAL_BIT = 0 DMA_ACTIVE_BIT = 1 HBLANK_BIT = 2 VBLANK_BIT = 3 IS_PAL_MASK = 1<<IS_PAL_BIT DMA_ACTIVE_MASK = 1<<DMA_ACTIVE_BIT HBLANK_MASK = 1<<HBLANK_BIT VBLANK_MASK = 1<<VBLANK_BIT ; Tells the VDP to copy from a region of VRAM to another. dmaCopyVRAM macro src,dest,length if MOMPASS>1 if (length)==0 fatal "DMA is copying 0 bytes (becomes a 64kB copy). If you really mean it, pass 64kB (65536) instead." endif endif lea (VDP_control_port).l,a5 move.l #dmaCommLength(2*length),(a5) move.l #dmaCommSrcLow(src),(a5) move.l #makeLong(regAutoIncr(1),regDMASrcHigh(COPY_FLAG,0)),(a5) ; VRAM pointer increment: $0001, VRAM copy move.l #vdpComm(addr,VRAM,DMA),(a5) .loop: moveq #DMA_ACTIVE_MASK,d1 and.w (a5),d1 bne.s .loop ; busy loop until the VDP is finished filling... move.w #regAutoIncr(2),(a5) ; VRAM pointer increment: $0002 endm endif
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c3/c34001f.ada
best08618/asylo
7
9072
-- C34001F.ADA -- Grant of Unlimited Rights -- -- Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687, -- F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained -- unlimited rights in the software and documentation contained herein. -- Unlimited rights are defined in DFAR 252.227-7013(a)(19). By making -- this public release, the Government intends to confer upon all -- recipients unlimited rights equal to those held by the Government. -- These rights include rights to use, duplicate, release or disclose the -- released technical data and computer software in whole or in part, in -- any manner and for any purpose whatsoever, and to have or permit others -- to do so. -- -- DISCLAIMER -- -- ALL MATERIALS OR INFORMATION HEREIN RELEASED, MADE AVAILABLE OR -- DISCLOSED ARE AS IS. THE GOVERNMENT MAKES NO EXPRESS OR IMPLIED -- WARRANTY AS TO ANY MATTER WHATSOEVER, INCLUDING THE CONDITIONS OF THE -- SOFTWARE, DOCUMENTATION OR OTHER INFORMATION RELEASED, MADE AVAILABLE -- OR DISCLOSED, OR THE OWNERSHIP, MERCHANTABILITY, OR FITNESS FOR A -- PARTICULAR PURPOSE OF SAID MATERIAL. --* -- FOR DERIVED BOOLEAN TYPES: -- CHECK THAT ALL VALUES OF THE PARENT (BASE) TYPE ARE PRESENT FOR THE -- DERIVED (BASE) TYPE WHEN THE DERIVED TYPE DEFINITION IS -- CONSTRAINED. -- CHECK THAT ANY CONSTRAINT IMPOSED ON THE PARENT SUBTYPE IS ALSO -- IMPOSED ON THE DERIVED SUBTYPE. -- JRK 8/20/86 WITH REPORT; USE REPORT; PROCEDURE C34001F IS SUBTYPE PARENT IS BOOLEAN; TYPE T IS NEW PARENT RANGE PARENT'VAL (IDENT_INT (PARENT'POS (FALSE))) .. PARENT'VAL (IDENT_INT (PARENT'POS (FALSE))); SUBTYPE SUBPARENT IS PARENT RANGE TRUE .. TRUE; TYPE S IS NEW SUBPARENT; X : T; Y : S; BEGIN TEST ("C34001F", "CHECK THAT ALL VALUES OF THE PARENT (BASE) " & "TYPE ARE PRESENT FOR THE DERIVED (BASE) TYPE " & "WHEN THE DERIVED TYPE DEFINITION IS " & "CONSTRAINED. ALSO CHECK THAT ANY CONSTRAINT " & "IMPOSED ON THE PARENT SUBTYPE IS ALSO IMPOSED " & "ON THE DERIVED SUBTYPE. CHECK FOR DERIVED " & "BOOLEAN TYPES"); -- CHECK THAT BASE TYPE VALUES NOT IN THE SUBTYPE ARE PRESENT. IF T'BASE'FIRST /= FALSE OR T'BASE'LAST /= TRUE OR S'BASE'FIRST /= FALSE OR S'BASE'LAST /= TRUE THEN FAILED ("INCORRECT 'BASE'FIRST OR 'BASE'LAST"); END IF; IF T'PRED (TRUE) /= FALSE OR T'SUCC (FALSE) /= TRUE OR S'PRED (TRUE) /= FALSE OR S'SUCC (FALSE) /= TRUE THEN FAILED ("INCORRECT 'PRED OR 'SUCC"); END IF; -- CHECK THE DERIVED SUBTYPE CONSTRAINT. IF T'FIRST /= FALSE OR T'LAST /= FALSE OR S'FIRST /= TRUE OR S'LAST /= TRUE THEN FAILED ("INCORRECT 'FIRST OR 'LAST"); END IF; BEGIN X := FALSE; Y := TRUE; IF NOT PARENT (X) /= PARENT (Y) THEN -- USE X AND Y. FAILED ("INCORRECT CONVERSION TO PARENT"); END IF; EXCEPTION WHEN OTHERS => FAILED ("EXCEPTION RAISED BY OK ASSIGNMENT"); END; BEGIN X := TRUE; FAILED ("CONSTRAINT_ERROR NOT RAISED -- X := TRUE"); IF X = TRUE THEN -- USE X. COMMENT ("X ALTERED -- X := TRUE"); END IF; EXCEPTION WHEN CONSTRAINT_ERROR => NULL; WHEN OTHERS => FAILED ("WRONG EXCEPTION RAISED -- X := TRUE"); END; BEGIN Y := FALSE; FAILED ("CONSTRAINT_ERROR NOT RAISED -- Y := FALSE"); IF Y = FALSE THEN -- USE Y. COMMENT ("Y ALTERED -- Y := FALSE"); END IF; EXCEPTION WHEN CONSTRAINT_ERROR => NULL; WHEN OTHERS => FAILED ("WRONG EXCEPTION RAISED -- Y := FALSE"); END; RESULT; END C34001F;
src/port_specification.ads
jrmarino/ravenadm
18
23143
<reponame>jrmarino/ravenadm -- This file is covered by the Internet Software Consortium (ISC) License -- Reference: ../License.txt -- GCC 6.0 only -- pragma Suppress (Tampering_Check); private with HelperText; private with Ada.Containers.Vectors; private with Ada.Containers.Hashed_Maps; package Port_Specification is type Portspecs is tagged private; misordered : exception; contains_spaces : exception; wrong_type : exception; wrong_value : exception; dupe_spec_key : exception; dupe_list_value : exception; missing_group : exception; invalid_option : exception; missing_extract : exception; missing_require : exception; type spec_field is (sp_namebase, sp_version, sp_revision, sp_epoch, sp_keywords, sp_variants, sp_taglines, sp_homepage, sp_contacts, sp_dl_groups, sp_dl_sites, sp_distfiles, sp_distsubdir, sp_df_index, sp_subpackages, sp_opts_avail, sp_opts_standard, sp_vopts, sp_exc_opsys, sp_inc_opsys, sp_exc_arch, sp_ext_only, sp_ext_zip, sp_ext_7z, sp_ext_lha, sp_ext_head, sp_ext_tail, sp_ext_dirty, sp_distname, sp_skip_build, sp_single_job, sp_destdir_env, sp_destdirname, sp_build_wrksrc, sp_makefile, sp_make_args, sp_make_env, sp_build_target, sp_cflags, sp_cxxflags, sp_cppflags, sp_ldflags, sp_makefile_targets, sp_skip_install, sp_opt_level, sp_options_on, sp_broken, sp_opt_helper, sp_patchfiles, sp_uses, sp_sub_list, sp_sub_files, sp_config_args, sp_config_env, sp_build_deps, sp_buildrun_deps, sp_run_deps, sp_cmake_args, sp_qmake_args, sp_info, sp_install_tgt, sp_patch_strip, sp_pfiles_strip, sp_patch_wrksrc, sp_extra_patches, sp_must_config, sp_config_wrksrc, sp_config_script, sp_gnu_cfg_prefix, sp_cfg_outsrc, sp_config_target, sp_deprecated, sp_expiration, sp_install_wrksrc, sp_plist_sub, sp_prefix, sp_licenses, sp_users, sp_groups, sp_catchall, sp_notes, sp_inst_tchain, sp_var_opsys, sp_var_arch, sp_lic_name, sp_lic_file, sp_lic_scheme, sp_skip_ccache, sp_test_tgt, sp_exrun, sp_mandirs, sp_rpath_warning, sp_debugging, sp_broken_ssl, sp_test_args, sp_gnome, sp_rcscript, sp_ug_pkg, sp_broken_mysql, sp_broken_pgsql, sp_og_radio, sp_og_unlimited, sp_og_restrict, sp_opt_descr, sp_opt_group, sp_ext_deb, sp_os_bdep, sp_os_rdep, sp_os_brdep, sp_test_env, sp_generated, sp_xorg, sp_sdl, sp_phpext, sp_job_limit, sp_soversion, sp_os_uses, sp_lic_terms, sp_lic_awk, sp_lic_src, sp_repsucks, sp_killdog, sp_cgo_conf, sp_cgo_build, sp_cgo_inst, sp_cgo_cargs, sp_cgo_bargs, sp_cgo_iargs, sp_cgo_feat, sp_verbatim); type spec_option is (not_helper_format, not_supported_helper, broken_on, buildrun_depends_off, buildrun_depends_on, build_depends_off, build_depends_on, build_target_off, build_target_on, cflags_off, cflags_on, cmake_args_off, cmake_args_on, cmake_bool_f_both, cmake_bool_t_both, configure_args_off, configure_args_on, configure_enable_both, configure_env_off, configure_env_on, configure_with_both, cppflags_off, cppflags_on, cxxflags_off, cxxflags_on, df_index_off, df_index_on, extract_only_off, extract_only_on, extra_patches_off, extra_patches_on, implies_on, info_off, info_on, install_target_off, install_target_on, keywords_off, keywords_on, ldflags_off, ldflags_on, make_args_off, make_args_on, make_env_off, make_env_on, patchfiles_off, patchfiles_on, plist_sub_off, plist_sub_on, prevents_on, qmake_args_off, qmake_args_on, run_depends_off, run_depends_on, sub_files_off, sub_files_on, sub_list_off, sub_list_on, test_target_off, test_target_on, uses_off, uses_on, makefile_off, makefile_on, description, only_for_opsys_on, xorg_comp_off, xorg_comp_on, gnome_comp_off, gnome_comp_on, php_ext_off, php_ext_on); -- Initialize specification data procedure initialize (specs : out Portspecs); -- Generic function to set single string types. -- Throws misordered exception if set too early (or late depending on perspective) -- Throws contains spaces exception if space found anywhere in string -- Throws wrong_type exception if field isn't a single string type. procedure set_single_string (specs : in out Portspecs; field : spec_field; value : String); -- Generic function to populate lists -- Throws misordered exception if set out of order. -- Throws contains spaces exception if space found anywhere in string -- Throws wrong_type exception if field isn't a list type. procedure append_list (specs : in out Portspecs; field : spec_field; value : String); -- Generic function to set integers -- Throws misordered exception if set out of order. -- Throws wrong_type exception if field isn't a natural integer type procedure set_natural_integer (specs : in out Portspecs; field : spec_field; value : Natural); -- Generic function to set boolean values -- Throws wrong_type exception if field isn't a boolean type procedure set_boolean (specs : in out Portspecs; field : spec_field; value : Boolean); -- Generic function to populate arrays -- Throws misordered exception if set out of order. -- Throws contains spaces exception if space found anywhere in string -- Throws wrong_type exception if field isn't a list type. -- Throws duplicate exception if key has already been seen. procedure append_array (specs : in out Portspecs; field : spec_field; key : String; value : String; allow_spaces : Boolean); -- Generic function to establish groups of string arrays. -- Throws misordered exception if set out of order. -- Throws contains spaces exception if space found anywhere in string -- Throws wrong_type exception if field isn't a list type. -- Throws duplicate exception if key has already been seen. procedure establish_group (specs : in out Portspecs; field : spec_field; group : String); -- Generic function to populate option helper -- Throws misordered exception if called before standard options -- Throws contains spaces exception if spaces aren't permitted but found -- Throws wrong_type exception if field isn't supported -- Throws wrong_value exception if option doesn't exist (caller should check first) procedure build_option_helper (specs : in out Portspecs; field : spec_option; option : String; value : String); -- Return True if provided variant is known function variant_exists (specs : Portspecs; variant : String) return Boolean; -- Return True if provided option name is known function option_exists (specs : Portspecs; option : String) return Boolean; -- Given the provided option name, return True if setting is "ON" and False otherwise -- If option name is not valid, raise invalid option function option_current_setting (specs : Portspecs; option : String) return Boolean; -- Generic function to determine if group exists, returns True if so function group_exists (specs : Portspecs; field : spec_field; group : String) return Boolean; -- Developer routine which shows contents of specification procedure dump_specification (specs : Portspecs); -- Iterate through all non-standard variants to check if all options are accounted for. -- Return blank string if all of them pass or the name of the first variant that doesn't -- concatenated with the missing option. function check_variants (specs : Portspecs) return String; -- Return False if deprecation set without expiration or vice versa. function deprecation_valid (specs : Portspecs) return Boolean; -- Perform any post-parsing adjustments necessary procedure adjust_defaults_port_parse (specs : in out Portspecs); -- Returns true if indicated option helper is empty function option_helper_unset (specs : Portspecs; field : spec_option; option : String) return Boolean; -- After parsing, this is used to return the port name function get_namebase (specs : Portspecs) return String; -- Generic retrieve data function function get_field_value (specs : Portspecs; field : spec_field) return String; -- Specialized variant-specific list esp. for package manifest function get_options_list (specs : Portspecs; variant : String) return String; -- Retrieve the tagline on a given variant function get_tagline (specs : Portspecs; variant : String) return String; -- Calculate the surprisingly complex pkgversion string function calculate_pkgversion (specs : Portspecs) return String; -- Return count on variants list function get_number_of_variants (specs : Portspecs) return Natural; -- Return the list length of the data indicated by field function get_list_length (specs : Portspecs; field : spec_field) return Natural; -- Return item given by number when the list is indicated by the field function get_list_item (specs : Portspecs; field : spec_field; item : Natural) return String; -- Return number of subpackage for a given variant function get_subpackage_length (specs : Portspecs; variant : String) return Natural; -- Return subpackage given a variant and index function get_subpackage_item (specs : Portspecs; variant : String; item : Natural) return String; -- Return number of extra runtime dependences on a named subpackage function get_number_extra_run (specs : Portspecs; subpackage : String) return Natural; -- Return extra runtime specification of a named subpackage given an index function get_extra_runtime (specs : Portspecs; subpackage : String; item : Natural) return String; -- Return aggregate and formatted reason(s) for ignoring the port. function aggregated_ignore_reason (specs : Portspecs) return String; -- Returns a formatted block of lines to represent the current option settings function options_summary (specs : Portspecs; variant : String) return String; -- Returns True if one or more variants have no defined subpackages. function missing_subpackage_definition (specs : Portspecs) return Boolean; -- Return string block (delimited by LF) of unique build + buildrun + run depends (optional) -- If limit_to_run is true, only run dependencies are returned function combined_dependency_origins (specs : Portspecs; include_run : Boolean; limit_to_run : Boolean) return String; -- Runs through specs to ensure all license framework information is present. function post_parse_license_check_passes (specs : Portspecs) return Boolean; -- Ensures USERGROUP_SPKG is set if USERS or GROUP is set. function post_parse_usergroup_check_passes (specs : Portspecs) return Boolean; -- Return "single", "dual" or "multi"; function get_license_scheme (specs : Portspecs) return String; -- Return True if rpath check failures need to break the build. function rpath_check_errors_are_fatal (specs : Portspecs) return Boolean; -- Return True if debugging is set on. function debugging_is_on (specs : Portspecs) return Boolean; -- Returns the key of the last catchall insertion function last_catchall_key (specs : Portspecs) return String; -- Returns true if all the options have a description -- It also outputs to standard out which ones fail function post_parse_opt_desc_check_passes (specs : Portspecs) return Boolean; -- Returns true if all the option groups have at least 2 members -- It also outputs to standard out which groups have only one member function post_parse_option_group_size_passes (specs : Portspecs) return Boolean; -- Checks radio and restricted groups. Radio groups have to have exactly one option -- set by (by default) and restricted groups need at least one. function post_transform_option_group_defaults_passes (specs : Portspecs) return Boolean; -- Return "joined" table of group + options function option_block_for_dialog (specs : Portspecs) return String; -- Return true if options_avail is not "none" function global_options_present (specs : Portspecs) return Boolean; -- Return true if ops_standard is not "none" function standard_options_present (specs : Portspecs) return Boolean; -- Return True if the port is generated function port_is_generated (specs : Portspecs) return Boolean; -- If catchall FPC_EQUIVALENT is defined, return its value, otherwise return "N/A". function equivalent_fpc_port (specs : Portspecs) return String; -- Returns True if given dependency is present as run_depends or buildrun_depends function run_dependency (specs : Portspecs; dependency : String) return Boolean; -- Used for json-repology report only (returns full download URL (1) given distfile number) function get_repology_distfile (specs : Portspecs; item : Natural) return String; -- Format contacts with html (span, mailto) function get_web_contacts (specs : Portspecs; subject : String) return String; -- Provides json-formatted contacts -- If contact is "nobody" then it returns a blank string function get_json_contacts (specs : Portspecs) return String; -- Ensure opsys dependencies are not applied (only for web page generation) procedure do_not_apply_opsys_dependencies (specs : in out Portspecs); -- Return true if broken_all key present in the broken array function broken_all_set (specs : Portspecs) return Boolean; -- Return true if BLOCK_WATCHDOG set by specification function watchdog_disabled (specs : Portspecs) return Boolean; -- store error seen during specification parsing procedure set_parse_error (specs : in out Portspecs; error : String); -- Retrieve parse error function get_parse_error (specs : Portspecs) return String; -- Insert new variable definition procedure define (specs : in out Portspecs; variable : String; value : String); -- Returns true if variable already defined function definition_exists (specs : Portspecs; variable : String) return Boolean; -- Returns value of defined variable function definition (specs : Portspecs; variable : String) return String; -- Return true if no definition are defined function no_definitions (specs : Portspecs) return Boolean; -- Detects SSL variant override by checking module arguments function get_ssl_variant (specs : Portspecs; normal_variant : String) return String; private package HT renames HelperText; package CON renames Ada.Containers; type spec_order is (so_initialized, so_namebase, so_version, so_revision, so_epoch, so_keywords, so_variants, so_taglines, so_homepage, so_contacts, so_dl_groups, so_dl_sites, so_distfiles, so_distsubdir, so_df_index, so_subpackages, so_opts_avail, so_opts_std, so_vopts); type license_type is (AGPLv3, AGPLv3x, APACHE10, APACHE11, APACHE20, ART10, ART20, ARTPERL10, BSD2CLAUSE, BSD3CLAUSE, BSD4CLAUSE, BSDGROUP, CUSTOM1, CUSTOM2, CUSTOM3, CUSTOM4, GPLv1, GPLv1x, GPLv2, GPLv2x, GPLv3, GPLv3x, GPLv3RLE, GPLv3RLEx, GMGPL, GMGPL3, INVALID, ISCL, LGPL20, LGPL20x, LGPL21, LGPL21x, LGPL3, LGPL3x, MIT, MPL, POSTGRESQL, PSFL, PUBDOM, OPENSSL, RUBY, ZLIB, HPND, AFL, CDDL, GFDL, CC0_10, CC_30, CC_40, CC_NC_30, CC_NC_40, CC_NCND_30, CC_NCND_40, CC_NCSA_30, CC_NCSA_40, CC_ND_30, CC_ND_40, CC_SA_30, CC_SA_40); type described_option_set is (AALIB, ALSA, ASM, COLORD, CUPS, DBUS, DEBUG, DOCS, FIREBIRD, ICONV, IDN, IPV4, IPV6, JAVA, LANG_CN, LANG_KO, LANG_RU, LDAP, LDAPS, MYSQL, NAS, NLS, OPENGL, OSS, PERL532, PERL534, PGSQL, PNG, PULSEAUDIO, PY27, PY38, PY39, READLINE, RUBY26, RUBY27, RUBY30, SNDIO, SOUND, SQLITE, STATIC, SYSLOG, TCL, TCLTK, THREADS, X11, ZLIB, OPT_NOT_DEFINED); type gnome_type is (atk, cairo, glib, gtk2, gtk3, gtk4, gtksourceview3, gdkpixbuf, intltool, introspection, pango, pygobject, libcroco, libglade, libgsf, librsvg, libxml2, libxslt, dconf, gconf, libidl, orbit2, vte, libxmlxx2, libsigcxx2, glibmm, glibmm24, cairomm, cairomm10, atkmm, atkmm16, pangomm, pangomm14, gtkmm30, gtkmm40, invalid_component); type xorg_type is (xorgproto, fontcacheproto, printproto, xtransproto, dmx, fontenc, fontutil, ice, pciaccess, pixman, sm, x11, xau, xaw, xcb, xcb_util, xcb_util_cursor, xcb_util_image, xcb_util_keysyms, xcb_util_wm, xcb_util_xrm, xcb_render_util, xcomposite, xcursor, xdamage, xdmcp, xext, xfixes, xfont, xfont2, xfontcache, xft, xi, xinerama, xkbfile, xmu, xpm, xprop, xrandr, xrender, xres, xscrnsaver, xset, xshmfence, xt, xtst, xv, xvmc, xxf86dga, xxf86vm, xbitmaps, invalid_component); type sdl_type is (sdl1, sdl2, gfx1, gfx2, image1, image2, mixer1, mixer2, net1, net2, ttf1, ttf2, invalid_component); type phpext_type is (bcmath, bitset, bz2, calendar, ctype, curl, dba, dom, enchant, exif, fileinfo, filter, ftp, gd, gettext, gmp, hash, iconv, igbinary, imap, interbase, intl, jsonext, ldap, mbstring, mcrypt, memcache, memcached, mysqli, odbc, opcache, openssl, pcntl, pdf, pdo, pdo_dblib, pdo_firebird, pdo_mysql, pdo_odbc, pdo_pgsql, pdo_sqlite, pgsql, phar, posix, pspell, radius, readline, recode, redis, session, shmop, simplexml, snmp, soap, sockets, sqlite3, sysvmsg, sysvsem, sysvshm, tidy, tokenizer, wddx, xml, xmlreader, xmlrpc, xmlwriter, xsl, zip, zlib, ffi, sodium, invalid_extension); package string_crate is new CON.Vectors (Element_Type => HT.Text, Index_Type => Positive, "=" => HT.SU."="); package sorter is new string_crate.Generic_Sorting ("<" => HT.SU."<"); package def_crate is new CON.Hashed_Maps (Key_Type => HT.Text, Element_Type => HT.Text, Hash => HT.hash, Equivalent_Keys => HT.equivalent, "=" => HT.SU."="); type group_list is record group : HT.Text; list : string_crate.Vector; end record; package list_crate is new CON.Hashed_Maps (Key_Type => HT.Text, Element_Type => group_list, Hash => HT.hash, Equivalent_Keys => HT.equivalent); type Option_Helper is record option_name : HT.Text; option_description : HT.Text; currently_set_ON : Boolean := False; set_ON_by_default : Boolean := False; standard_option : Boolean := False; BROKEN_ON : HT.Text; BUILDRUN_DEPENDS_OFF : string_crate.Vector; BUILDRUN_DEPENDS_ON : string_crate.Vector; BUILD_DEPENDS_OFF : string_crate.Vector; BUILD_DEPENDS_ON : string_crate.Vector; BUILD_TARGET_OFF : string_crate.Vector; BUILD_TARGET_ON : string_crate.Vector; CFLAGS_OFF : string_crate.Vector; CFLAGS_ON : string_crate.Vector; CMAKE_ARGS_OFF : string_crate.Vector; CMAKE_ARGS_ON : string_crate.Vector; CMAKE_BOOL_F_BOTH : string_crate.Vector; CMAKE_BOOL_T_BOTH : string_crate.Vector; CONFIGURE_ARGS_OFF : string_crate.Vector; CONFIGURE_ARGS_ON : string_crate.Vector; CONFIGURE_ENABLE_BOTH : string_crate.Vector; CONFIGURE_ENV_OFF : string_crate.Vector; CONFIGURE_ENV_ON : string_crate.Vector; CONFIGURE_WITH_BOTH : string_crate.Vector; CPPFLAGS_OFF : string_crate.Vector; CPPFLAGS_ON : string_crate.Vector; CXXFLAGS_OFF : string_crate.Vector; CXXFLAGS_ON : string_crate.Vector; DF_INDEX_OFF : string_crate.Vector; DF_INDEX_ON : string_crate.Vector; EXTRACT_ONLY_OFF : string_crate.Vector; EXTRACT_ONLY_ON : string_crate.Vector; EXTRA_PATCHES_OFF : string_crate.Vector; EXTRA_PATCHES_ON : string_crate.Vector; IMPLIES_ON : string_crate.Vector; INFO_OFF : string_crate.Vector; INFO_ON : string_crate.Vector; INSTALL_TARGET_OFF : string_crate.Vector; INSTALL_TARGET_ON : string_crate.Vector; KEYWORDS_OFF : string_crate.Vector; KEYWORDS_ON : string_crate.Vector; LDFLAGS_OFF : string_crate.Vector; LDFLAGS_ON : string_crate.Vector; MAKEFILE_OFF : string_crate.Vector; MAKEFILE_ON : string_crate.Vector; MAKE_ARGS_OFF : string_crate.Vector; MAKE_ARGS_ON : string_crate.Vector; MAKE_ENV_OFF : string_crate.Vector; MAKE_ENV_ON : string_crate.Vector; ONLY_FOR_OPSYS_ON : string_crate.Vector; PATCHFILES_OFF : string_crate.Vector; PATCHFILES_ON : string_crate.Vector; PLIST_SUB_OFF : string_crate.Vector; PLIST_SUB_ON : string_crate.Vector; PREVENTS_ON : string_crate.Vector; QMAKE_ARGS_OFF : string_crate.Vector; QMAKE_ARGS_ON : string_crate.Vector; RUN_DEPENDS_OFF : string_crate.Vector; RUN_DEPENDS_ON : string_crate.Vector; SUB_FILES_OFF : string_crate.Vector; SUB_FILES_ON : string_crate.Vector; SUB_LIST_OFF : string_crate.Vector; SUB_LIST_ON : string_crate.Vector; TEST_TARGET_OFF : string_crate.Vector; TEST_TARGET_ON : string_crate.Vector; USES_OFF : string_crate.Vector; USES_ON : string_crate.Vector; XORG_COMPONENTS_OFF : string_crate.Vector; XORG_COMPONENTS_ON : string_crate.Vector; GNOME_COMPONENTS_OFF : string_crate.Vector; GNOME_COMPONENTS_ON : string_crate.Vector; PHP_EXTENSIONS_OFF : string_crate.Vector; PHP_EXTENSIONS_ON : string_crate.Vector; end record; package option_crate is new CON.Hashed_Maps (Key_Type => HT.Text, Element_Type => Option_Helper, Hash => HT.hash, Equivalent_Keys => HT.equivalent); type Portspecs is tagged record definitions : def_crate.Map; namebase : HT.Text; version : HT.Text; revision : Natural; epoch : Natural; job_limit : Natural; keywords : string_crate.Vector; variants : string_crate.Vector; taglines : def_crate.Map; homepage : HT.Text; contacts : string_crate.Vector; dl_sites : list_crate.Map; distfiles : string_crate.Vector; dist_subdir : HT.Text; df_index : string_crate.Vector; subpackages : list_crate.Map; ops_avail : string_crate.Vector; ops_standard : string_crate.Vector; ops_helpers : option_crate.Map; last_set : spec_order; variantopts : list_crate.Map; options_on : list_crate.Map; broken : list_crate.Map; exc_opsys : string_crate.Vector; inc_opsys : string_crate.Vector; exc_arch : string_crate.Vector; deprecated : HT.Text; expire_date : HT.Text; uses : string_crate.Vector; uses_base : string_crate.Vector; sub_list : string_crate.Vector; sub_files : string_crate.Vector; extract_only : string_crate.Vector; extract_zip : string_crate.Vector; extract_lha : string_crate.Vector; extract_7z : string_crate.Vector; extract_deb : string_crate.Vector; extract_dirty : string_crate.Vector; extract_head : list_crate.Map; extract_tail : list_crate.Map; distname : HT.Text; patchfiles : string_crate.Vector; extra_patches : string_crate.Vector; patch_strip : string_crate.Vector; pfiles_strip : string_crate.Vector; patch_wrksrc : HT.Text; config_args : string_crate.Vector; config_env : string_crate.Vector; config_must : HT.Text; config_prefix : HT.Text; config_script : HT.Text; config_target : HT.Text; config_wrksrc : HT.Text; config_outsrc : Boolean; skip_build : Boolean; skip_install : Boolean; skip_ccache : Boolean; destdir_env : Boolean; single_job : Boolean; shift_install : Boolean; fatal_rpath : Boolean; debugging_on : Boolean; generated : Boolean; opt_df_index : Boolean; skip_opsys_dep : Boolean; repology_sucks : Boolean; kill_watchdog : Boolean; prefix : HT.Text; build_wrksrc : HT.Text; makefile : HT.Text; destdirname : HT.Text; make_env : string_crate.Vector; make_args : string_crate.Vector; build_target : string_crate.Vector; build_deps : string_crate.Vector; buildrun_deps : string_crate.Vector; run_deps : string_crate.Vector; opsys_b_deps : list_crate.Map; opsys_r_deps : list_crate.Map; opsys_br_deps : list_crate.Map; opsys_c_uses : list_crate.Map; cflags : string_crate.Vector; cxxflags : string_crate.Vector; cppflags : string_crate.Vector; ldflags : string_crate.Vector; optimizer_lvl : Natural; cmake_args : string_crate.Vector; qmake_args : string_crate.Vector; gnome_comps : string_crate.Vector; xorg_comps : string_crate.Vector; sdl_comps : string_crate.Vector; php_extensions : string_crate.Vector; info : string_crate.Vector; install_tgt : string_crate.Vector; test_tgt : string_crate.Vector; test_args : string_crate.Vector; test_env : string_crate.Vector; install_wrksrc : HT.Text; plist_sub : string_crate.Vector; make_targets : list_crate.Map; licenses : string_crate.Vector; lic_names : string_crate.Vector; lic_files : string_crate.Vector; lic_terms : string_crate.Vector; lic_awk : string_crate.Vector; lic_source : string_crate.Vector; lic_scheme : HT.Text; usergroup_pkg : HT.Text; users : string_crate.Vector; groups : string_crate.Vector; mandirs : string_crate.Vector; mk_verbatim : string_crate.Vector; subr_scripts : string_crate.Vector; broken_ssl : string_crate.Vector; broken_mysql : string_crate.Vector; broken_pgsql : string_crate.Vector; catch_all : list_crate.Map; pkg_notes : def_crate.Map; var_opsys : list_crate.Map; var_arch : list_crate.Map; extra_rundeps : list_crate.Map; last_catchkey : HT.Text; soversion : HT.Text; used_python : HT.Text; used_perl : HT.Text; used_ruby : HT.Text; used_lua : HT.Text; parse_error : HT.Text; cgo_skip_conf : Boolean; cgo_skip_build : Boolean; cgo_skip_inst : Boolean; cgo_cargolock : HT.Text; cgo_cargotoml : HT.Text; cgo_cargo_bin : HT.Text; cgo_target_dir : HT.Text; cgo_vendor_dir : HT.Text; cgo_build_args : string_crate.Vector; cgo_conf_args : string_crate.Vector; cgo_inst_args : string_crate.Vector; cgo_features : string_crate.Vector; opt_radio : string_crate.Vector; opt_restrict : string_crate.Vector; opt_unlimited : string_crate.Vector; optgroup_desc : list_crate.Map; optgroups : list_crate.Map; end record; -- Ordinal type representing numbers that have subpackage arguments type smodules is range 1 .. 5; -- Returns the name of the module associated with the smodules index function base_module (index : smodules) return String; -- Compares given keyword against known values function keyword_is_valid (keyword : String) return Boolean; -- Returns true if there is a short description defined for each variant. function all_taglines_defined (specs : Portspecs) return Boolean; -- Returns true if given string can convert to an integer between 1 and -- distfiles count. function dist_index_is_valid (specs : Portspecs; test_index : String) return Boolean; -- Returns true if space exists outside of quotation marks function contains_nonquoted_spaces (word : String) return Boolean; -- OPT_ON can only match existing option names exactly, or -- have "/" separator with digits and full_stop only or -- have above with "/" followed by one or more valid arch separated by "|" or -- same as above except nothing between the two "/" separators function valid_OPT_ON_value (specs : Portspecs; key : String; word : String) return Boolean; -- Return True if same option is already defined in all. function option_present_in_OPT_ON_all (specs : Portspecs; option_name : String) return Boolean; -- Return True if in format YYYY-MM-DD and YYYY > 2016 and MM is 01..12 and DD is 01..31 -- and it succesfully converts to a date. function ISO8601_format (value : String) return Boolean; -- checks for exactly two colons -- checks the three components are not empty strings -- Does not do existence checks on namebase, variants or subpackages. function valid_dependency_format (value : String) return Boolean; -- If illegal characters in the namebase are detected, return True. function invalid_namebase (value : String; allow_comma : Boolean) return Boolean; -- Returns true if value is a known USES module. function valid_uses_module (value : String) return Boolean; -- Returns true if value is a known mysql group setting function valid_broken_mysql_value (value : String) return Boolean; -- Returns true if value is a known postgresql setting function valid_broken_pgsql_value (value : String) return Boolean; -- Return true if INFO appendum is valid (compared against existing entries) -- Specifically it's checking the subdirectory (if it exists) to make sure it matches -- previous entries. It will define INFO_SUBDIR in catchall (once) function valid_info_page (specs : in out Portspecs; value : String) return Boolean; -- Checks against a list of known licenses or CUSTOM(1,2,3,4) function determine_license (value : String) return license_type; -- Returns enumeration of described option or OPT_NOT_FOUND if the option isn't described function described_option (value : String) return described_option_set; -- Returns true if subpackage exists in any variant. function subpackage_exists (specs : Portspecs; subpackage : String) return Boolean; -- Returns True if given_module matches the base_module exists, but it doesn't have -- an argument or the argument doesn't match a known subpackage. function module_subpackage_failed (specs : Portspecs; base_module : String; given_module : String) return Boolean; -- Checks against known list of gnome components and identifies it function determine_gnome_component (component : String) return gnome_type; -- Checks against known list of xorg components and identifies it function determine_xorg_component (component : String) return xorg_type; -- Checks against known list of SDL components and identifies it function determine_sdl_component (component : String) return sdl_type; -- Checks against known list of PHP extensions and identifies it function determine_php_extension (component : String) return phpext_type; -- Given a string XXXX/account:project:tag(:directory) return a standard -- distribution file name. function generate_github_distfile (download_site : String) return String; -- Like generate_github_distfile, but doesn't filter/modify out leading v's and plus signs function generate_gitlab_distfile (download_site : String) return String; -- Given a string XXXX/project:version return a standard function generate_crates_distfile (download_site : String) return String; -- Returns True if a given option already present in radio, restricted or unlimited group function option_already_in_group (specs : Portspecs; option_name : String) return Boolean; -- Given an option enumeration, return the default option description function default_description (option : described_option_set) return String; -- Split distfile translation to separate function (needed more than once) -- It converts "generated" to a filename mainly function translate_distfile (specs : Portspecs; distfile : String) return String; -- Give full download URL (one) for each distfile. -- Represent macros with "mirror://" prefix function repology_distfile (specs : Portspecs; distfile : String) return String; -- split out info entry validation (returns non-black on failed check) function info_page_check_message (specs : Portspecs; value : String) return String; -- Return True if uses module is fully specified (mainly for compiler modules) function extra_uses_modules_sanity_check_passes (specs : Portspecs; module : String; errmsg : out HT.Text) return Boolean; end Port_Specification;
PIM/TP1_Algorithmique/permuter_caracteres.adb
Hathoute/ENSEEIHT
1
9040
<reponame>Hathoute/ENSEEIHT with Ada.Text_IO; use Ada.Text_IO; -- Permuter deux caractères lus au clavier procedure Permuter_Caracteres is C1, C2: Character; -- Entier lu au clavier dont on veut connaître le signe Temp: Character; -- Charactere utilisé pour la permutation begin -- Demander les deux caractères C1 et C2 Get (C1); Skip_Line; Get (C2); Skip_Line; -- Afficher C1 Put_Line ("C1 = '" & C1 & "'"); -- Afficher C2 Put_Line ("C2 = '" & C2 & "'"); -- Permuter C1 et C2 Temp := C1; C1 := C2; C2 := Temp; -- Afficher C1 Put_Line ("C1 = '" & C1 & "'"); -- Afficher C2 Put_Line ("C2 = '" & C2 & "'"); end Permuter_Caracteres;
alloy4fun_models/trashltl/models/18/TAkSff5w6XzPzvjCh.als
Kaixi26/org.alloytools.alloy
0
3515
<filename>alloy4fun_models/trashltl/models/18/TAkSff5w6XzPzvjCh.als<gh_stars>0 open main pred idTAkSff5w6XzPzvjCh_prop19 { eventually (all f:File | f in Protected implies f in Protected&Trash) } pred __repair { idTAkSff5w6XzPzvjCh_prop19 } check __repair { idTAkSff5w6XzPzvjCh_prop19 <=> prop19o }
Cubical/Data/NatMinusOne.agda
limemloh/cubical
0
12365
{-# OPTIONS --cubical --safe #-} module Cubical.Data.NatMinusOne where open import Cubical.Data.NatMinusOne.Base public
src/numerics-abs_max_ia.adb
sciencylab/lagrangian-solver
0
10698
separate (Numerics) function Abs_Max_IA (Item : in Int_Array) return Integer is Result : Integer := 0; begin for N of Item loop Result := Integer'Max (Result, abs (N)); end loop; return Result; end Abs_Max_IA;
Task/Remove-duplicate-elements/AppleScript/remove-duplicate-elements.applescript
djgoku/RosettaCodeData
0
3819
unique({1, 2, 3, "a", "b", "c", 2, 3, 4, "b", "c", "d"}) on unique(x) set R to {} repeat with i in x if i is not in R then set end of R to i's contents end repeat return R end unique
awa/plugins/awa-mail/src/awa-mail-components-messages.adb
fuzzysloth/ada-awa
0
3093
<gh_stars>0 ----------------------------------------------------------------------- -- awa-mail-components-messages -- Mail UI Message -- Copyright (C) 2012 <NAME> -- Written by <NAME> (<EMAIL>) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law or agreed to in writing, software -- distributed under the License is distributed on an "AS IS" BASIS, -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -- See the License for the specific language governing permissions and -- limitations under the License. ----------------------------------------------------------------------- with Ada.Unchecked_Deallocation; with AWA.Mail.Clients; package body AWA.Mail.Components.Messages is -- ------------------------------ -- Set the mail message instance. -- ------------------------------ procedure Set_Message (UI : in out UIMailMessage; Message : in AWA.Mail.Clients.Mail_Message_Access) is begin UI.Message := Message; end Set_Message; -- ------------------------------ -- Get the mail message instance. -- ------------------------------ overriding function Get_Message (UI : in UIMailMessage) return AWA.Mail.Clients.Mail_Message_Access is begin return UI.Message; end Get_Message; -- ------------------------------ -- Render the end of the input component. Closes the DL/DD list. -- ------------------------------ overriding procedure Encode_End (UI : in UIMailMessage; Context : in out ASF.Contexts.Faces.Faces_Context'Class) is use type AWA.Mail.Clients.Mail_Message_Access; begin if UI.Message /= null and UI.Is_Rendered (Context) then UI.Message.Send; end if; end Encode_End; -- ------------------------------ -- Finalize and release the mail message. -- ------------------------------ overriding procedure Finalize (UI : in out UIMailMessage) is procedure Free is new Ada.Unchecked_Deallocation (Object => AWA.Mail.Clients.Mail_Message'Class, Name => AWA.Mail.Clients.Mail_Message_Access); begin Free (UI.Message); end Finalize; -- ------------------------------ -- Render the mail subject and initializes the message with its content. -- ------------------------------ overriding procedure Encode_Children (UI : in UIMailSubject; Context : in out ASF.Contexts.Faces.Faces_Context'Class) is procedure Process (Content : in String); procedure Process (Content : in String) is Msg : constant AWA.Mail.Clients.Mail_Message_Access := UI.Get_Message; begin Msg.Set_Subject (Content); end Process; begin UI.Wrap_Encode_Children (Context, Process'Access); end Encode_Children; -- ------------------------------ -- Render the mail body and initializes the message with its content. -- ------------------------------ overriding procedure Encode_Children (UI : in UIMailBody; Context : in out ASF.Contexts.Faces.Faces_Context'Class) is procedure Process (Content : in String); procedure Process (Content : in String) is Msg : constant AWA.Mail.Clients.Mail_Message_Access := UI.Get_Message; begin Msg.Set_Body (Content); end Process; begin UI.Wrap_Encode_Children (Context, Process'Access); end Encode_Children; end AWA.Mail.Components.Messages;
sanity-checking/tests/0004-ada-shared-lib/src/main.adb
reznikmm/GNAT-FSF-builds
5
12608
with Lib_Pack; with Ada.Text_IO; use Ada.Text_IO; procedure Main is begin Put_Line ("=== Main start ==="); Lib_Pack.Test; Put_Line ("=== Main end ==="); end Main;
supported_grammars/antlr2/ANTLRv2Lexer.g4
kaby76/Domemtech.TrashBase
1
7779
/* [The "BSD licence"] Copyright (c) 2005-2007 <NAME> All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 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. The name of the author may not be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``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 AUTHOR 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. */ lexer grammar ANTLRv2Lexer; options { superClass = Antlr2LexerAdaptor; } channels { OFF_CHANNEL } tokens { DOC_COMMENT, PARSER, LEXER, RULE, BLOCK, OPTIONAL, CLOSURE, POSITIVE_CLOSURE, SYNPRED, RANGE, CHAR_RANGE, EPSILON, ALT, EOR, EOB, EOA, // end of alt ID, ARG, ARGLIST, RET, LEXER_GRAMMAR, PARSER_GRAMMAR, TREE_GRAMMAR, COMBINED_GRAMMAR, INITACTION, LABEL, // $x used in rewrite rules TEMPLATE, SCOPE, SEMPRED, GATED_SEMPRED, // {p}? => SYN_SEMPRED, // (...) => it's a manually-specified synpred converted to sempred BACKTRACK_SEMPRED, // auto backtracking mode syn pred converted to sempred FRAGMENT, TREE_BEGIN, ROOT, BANG, RANGE, REWRITE, ACTION_CONTENT } DOC_COMMENT : '/**' .*? ('*/' | EOF) -> channel(OFF_CHANNEL) ; SL_COMMENT : '//' ~ [\r\n]* -> channel(OFF_CHANNEL) ; ML_COMMENT : '/*' .*? '*/' -> channel(OFF_CHANNEL) ; INT : '0' .. '9'+ ; CHAR_LITERAL : '\'' LITERAL_CHAR '\'' ; fragment LITERAL_CHAR : ESC | ~ ('\'' | '\\') ; STRING_LITERAL : '"' LIT_STR* '"' ; fragment LIT_STR : ESC | ~ ('\\' | '"') ; fragment ESC : '\\' ('n' | 'r' | 't' | 'b' | 'f' | '"' | '\'' | '\\' | '>' | 'u' XDIGIT XDIGIT XDIGIT XDIGIT | OctDigit (OctDigit OctDigit?)? | .) ; fragment XDIGIT : '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ; BEGIN_ARGUMENT : LBrack { this.handleBeginArgument(); } ; BEGIN_ACTION : LBrace -> pushMode (Actionx) ; OPTIONS : 'options' -> pushMode (Options) ; TOKENS : 'tokens' -> pushMode (Tokens) ; HEADER : 'header' ; CLASS : 'class' ; EXTENDS : 'extends' ; LEXCLASS : 'lexclass' ; TREEPARSER : 'treeparser' ; EXCEPTION : 'exception' ; CATCH : 'catch' ; FINALLY : 'finally' ; FRAGMENT : 'fragment' ; GRAMMAR : 'grammar' ; LEXER : 'Lexer' ; PARSER : 'Parser' ; PRIVATE : 'private' ; PROTECTED : 'protected' ; PUBLIC : 'public' ; RETURNS : 'returns' ; SCOPE : 'scope' ; THROWS : 'throws' ; TREE : 'tree' ; fragment WS_LOOP : (WS | SL_COMMENT | ML_COMMENT)* ; OPEN_ELEMENT_OPTION : Lt ; CLOSE_ELEMENT_OPTION : Gt ; AT : At ; BANG : '!' ; COLON : Colon ; COLONCOLON : DColon ; COMMA : Comma ; DOT : Dot ; EQUAL : Equal ; LBRACE : LBrace ; LBRACK : LBrack ; LPAREN : LParen ; OR : Pipe ; PLUS : Plus ; QM : Question ; RANGE : Range ; RBRACE : RBrace ; RBRACK : RBrack ; REWRITE : RArrow ; ROOT : '^' ; RPAREN : RParen ; SEMI : Semi ; SEMPREDOP : '=>' ; STAR : Star ; TREE_BEGIN : '^(' ; DOLLAR : Dollar ; PEQ : PlusAssign ; NOT : Tilde ; WS : (' ' | '\t' | '\r'? '\n')+ -> channel(OFF_CHANNEL) ; TOKEN_REF : 'A' .. 'Z' ('a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9')* ; RULE_REF : 'a' .. 'z' ('a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9')* ; // ====================================================== // Lexer fragments // // ----------------------------------- // Whitespace & Comments fragment Ws : Hws | Vws ; fragment Hws : [ \t] ; fragment Vws : [\r\n\f] ; fragment BlockComment : '/*' .*? ('*/' | EOF) ; fragment DocComment : '/**' .*? ('*/' | EOF) ; fragment LineComment : '//' ~ [\r\n]* ; // ----------------------------------- // Escapes // Any kind of escaped character that we can embed within ANTLR literal strings. fragment EscSeq : Esc ([btnfr"'\\] | UnicodeEsc | OctEsc | . | EOF) ; fragment EscAny : Esc . ; fragment UnicodeEsc : 'u' (HexDigit (HexDigit (HexDigit HexDigit?)?)?)? ; fragment OctEsc : OctDigit (OctDigit OctDigit?)? ; // ----------------------------------- // Numerals fragment DecimalNumeral : '0' | [1-9] DecDigit* ; // ----------------------------------- // Digits fragment HexDigit : [0-9a-fA-F] ; fragment DecDigit : [0-9] ; fragment OctDigit : [0-7] ; // ----------------------------------- // Literals fragment BoolLiteral : 'true' | 'false' ; fragment CharLiteral : SQuote (EscSeq | ~ ['\r\n\\]) SQuote ; fragment SQuoteLiteral : SQuote (EscSeq | ~ ['\r\n\\])* SQuote ; fragment DQuoteLiteral : DQuote (EscSeq | ~ ["\r\n\\])* DQuote ; fragment USQuoteLiteral : SQuote (EscSeq | ~ ['\r\n\\])* ; // ----------------------------------- // Character ranges fragment NameChar : NameStartChar | '0' .. '9' | Underscore | '\u00B7' | '\u0300' .. '\u036F' | '\u203F' .. '\u2040' ; fragment NameStartChar : 'A' .. 'Z' | 'a' .. 'z' | '\u00C0' .. '\u00D6' | '\u00D8' .. '\u00F6' | '\u00F8' .. '\u02FF' | '\u0370' .. '\u037D' | '\u037F' .. '\u1FFF' | '\u200C' .. '\u200D' | '\u2070' .. '\u218F' | '\u2C00' .. '\u2FEF' | '\u3001' .. '\uD7FF' | '\uF900' .. '\uFDCF' | '\uFDF0' .. '\uFFFD' ; // ignores | ['\u10000-'\uEFFFF] ; // ----------------------------------- // Types fragment Int : 'int' ; // ----------------------------------- // Symbols fragment Esc : '\\' ; fragment Colon : ':' ; fragment DColon : '::' ; fragment SQuote : '\'' ; fragment DQuote : '"' ; fragment LParen : '(' ; fragment RParen : ')' ; fragment LBrace : '{' ; fragment RBrace : '}' ; fragment LBrack : '[' ; fragment RBrack : ']' ; fragment RArrow : '->' ; fragment Lt : '<' ; fragment Gt : '>' ; fragment Equal : '=' ; fragment Question : '?' ; fragment Star : '*' ; fragment Plus : '+' ; fragment PlusAssign : '+=' ; fragment Underscore : '_' ; fragment Pipe : '|' ; fragment Dollar : '$' ; fragment Comma : ',' ; fragment Semi : ';' ; fragment Dot : '.' ; fragment Range : '..' ; fragment At : '@' ; fragment Pound : '#' ; fragment Tilde : '~' ; // ====================================================== // Lexer modes // ------------------------- // Arguments mode Argument; // E.g., [int x, List<String> a[]] NESTED_ARGUMENT : LBrack -> type (ARGUMENT_CONTENT) , pushMode (Argument) ; ARGUMENT_ESCAPE : EscAny -> type (ARGUMENT_CONTENT) ; ARGUMENT_STRING_LITERAL : DQuoteLiteral -> type (ARGUMENT_CONTENT) ; ARGUMENT_CHAR_LITERAL : SQuoteLiteral -> type (ARGUMENT_CONTENT) ; END_ARGUMENT : RBrack { this.handleEndArgument(); } ; // added this to return non-EOF token type here. EOF does something weird UNTERMINATED_ARGUMENT : EOF -> popMode ; ARGUMENT_CONTENT : . ; // ------------------------- // Actions // // Many language targets use {} as block delimiters and so we // must recursively match {} delimited blocks to balance the // braces. Additionally, we must make some assumptions about // literal string representation in the target language. We assume // that they are delimited by ' or " and so consume these // in their own alts so as not to inadvertantly match {}. mode Actionx; NESTED_ACTION : LBrace -> type (ACTION_CONTENT) , pushMode (Actionx) ; ACTION_ESCAPE : EscAny -> type (ACTION_CONTENT) ; ACTION_STRING_LITERAL : DQuoteLiteral -> type (ACTION_CONTENT) ; ACTION_CHAR_LITERAL : SQuoteLiteral -> type (ACTION_CONTENT) ; ACTION_DOC_COMMENT : DocComment -> type (ACTION_CONTENT) ; ACTION_BLOCK_COMMENT : BlockComment -> type (ACTION_CONTENT) ; ACTION_LINE_COMMENT : LineComment -> type (ACTION_CONTENT) ; END_ACTION : RBrace { this.handleEndAction(); } ; UNTERMINATED_ACTION : EOF -> popMode ; ACTION_CONTENT : . ; // ------------------------- mode Options; OPT_DOC_COMMENT : DocComment -> type (DOC_COMMENT) , channel (OFF_CHANNEL) ; OPT_BLOCK_COMMENT : BlockComment -> type (ML_COMMENT) , channel (OFF_CHANNEL) ; OPT_LINE_COMMENT : LineComment -> type (SL_COMMENT) , channel (OFF_CHANNEL) ; OPT_LBRACE : LBrace { this.handleOptionsLBrace(); } ; OPT_RBRACE : RBrace -> type (RBRACE) , popMode ; OPT_ID : Id -> type (ID) ; OPT_DOT : Dot -> type (DOT) ; OPT_ASSIGN : Equal -> type (EQUAL) ; OPT_STRING_LITERAL : SQuoteLiteral -> type (CHAR_LITERAL) ; OPT_STRING_LITERAL2 : DQuoteLiteral -> type (STRING_LITERAL) ; OPT_RANGE : Range -> type(RANGE) ; OPT_INT : DecimalNumeral -> type (INT) ; OPT_STAR : Star -> type (STAR) ; OPT_SEMI : Semi -> type (SEMI) ; OPT_WS : Ws+ -> type (WS) , channel (OFF_CHANNEL) ; // ------------------------- mode Tokens; TOK_DOC_COMMENT : DocComment -> type (DOC_COMMENT) , channel (OFF_CHANNEL) ; TOK_BLOCK_COMMENT : BlockComment -> type (ML_COMMENT) , channel (OFF_CHANNEL) ; TOK_LINE_COMMENT : LineComment -> type (SL_COMMENT) , channel (OFF_CHANNEL) ; TOK_LBRACE : LBrace -> type (LBRACE) ; TOK_RBRACE : RBrace -> type (RBRACE) , popMode ; TOK_ID : Id -> type (TOKEN_REF) ; TOK_EQ : Equal -> type (EQUAL) ; TOK_CL : '\'' LITERAL_CHAR '\'' -> type(CHAR_LITERAL) ; TOK_SL : '"' LIT_STR* '"' -> type(STRING_LITERAL) ; TOK_SEMI : Semi -> type (SEMI) ; TOK_RANGE : Range -> type(RANGE) ; TOK_WS : Ws+ -> type (WS) , channel (OFF_CHANNEL) ; // ------------------------- mode LexerCharSet; LEXER_CHAR_SET_BODY : (~ [\]\\] | EscAny)+ -> more ; LEXER_CHAR_SET : RBrack -> popMode ; UNTERMINATED_CHAR_SET : EOF -> popMode ; // ------------------------------------------------------------------------------ // Grammar specific Keywords, Punctuation, etc. fragment Id : NameStartChar NameChar* ;
granary/x86/stack.asm
Granary/granary
37
172465
<reponame>Granary/granary<gh_stars>10-100 #include "granary/x86/asm_defines.asm" #include "granary/x86/asm_helpers.asm" #include "granary/pp.h" START_FILE .extern SYMBOL(granary_get_private_stack_top) DECLARE_FUNC(granary_enter_private_stack) GLOBAL_LABEL(granary_enter_private_stack:) // The compiler that will call this function has respected the ABI, so we // only need to protect registers we explicitly use. pushq %ARG1 pushq %ARG2 // Call the helper that will give us our current private stack address // NB: After call, RAX is that address call EXTERN_SYMBOL(granary_get_private_stack_top) popq %ARG2 popq %ARG1 // As of here: // %rax - top of private stack // Compare the top 48-bits of the private stack address %rax and // whichever stack we are currently on %rsp pushq %rax xorq %rsp, %rax shrq $16, %rax // Sets the zero flag. popq %rax // High 48-bits were the same, already on private stack! jz .enter_do_not_switch .enter_switch_stack: // Switch stack; After this, %rax will be the native stack and %rsp will // be the private stack. xchg %rsp, %rax // Adjust the native stack pointer to pretend that the return address // wasn't there. lea 8(%rax), %rax; // As of here: // %rsp - top of private stack // %rax - somewhere on the native stack // Save current native stack position // NB: two pushes to ensure 16 byte alignment pushq %rax pushq %rax // Tail-cail return jmpq *-8(%rax) .enter_do_not_switch: // Get return address of this function call. popq %rax // As of here (since we are already on the private stack per the test above): // %rsp - somewhere on the private stack // %rax - return address. // Save current private stack position // NB: two pushes to ensure 16 byte alignment (and make sure they are both // the same %rsp value!) pushq %rsp pushq (%rsp) // Tail-cail return jmpq *%rax END_FUNC(granary_enter_private_stack) DECLARE_FUNC(granary_exit_private_stack) GLOBAL_LABEL(granary_exit_private_stack:) // Get return address pop %rax // Unconditionally switch stacks pop %rsp // Tail-call return jmpq *%rax END_FUNC(granary_exit_private_stack) END_FILE
dino/lcs/base/6C3E.asm
zengfr/arcade_game_romhacking_sourcecode_top_secret_data
6
245682
<filename>dino/lcs/base/6C3E.asm copyright zengfr site:http://github.com/zengfr/romhack 00042A move.l D1, (A0)+ 00042C dbra D0, $42a 016970 move.b D0, (A4)+ 016972 move.b ($3,A6), (A4)+ [base+6BDE, base+6C0E, base+6C1E, base+6C2E, base+6C3E] 016B60 move.b D0, (A4)+ 016B62 move.b ($3,A6), (A4)+ [base+6BDE, base+6BEE, base+6BFE, base+6C0E, base+6C1E, base+6C2E, base+6C3E, base+6C4E, base+6C5E, base+6C6E, base+6C7E, base+6C8E, base+6C9E, base+6CAE, base+6CBE, base+6CCE] 016CF8 move.w (A0,D2.w), D0 016CFC bpl $16dc0 [base+6BDE, base+6BEE, base+6BFE, base+6C0E, base+6C3E, base+6C4E, base+6C6E, base+6C7E, base+6C8E, base+6CBE, base+6CCE, base+6CDE, base+6CEE, base+6D0E, base+6D1E, base+6D2E, base+6D5E, base+6D6E, base+6D8E, base+6D9E, base+6DAE, base+6DBE, base+6DDE, base+6DEE, base+6DFE, base+6E0E, base+6E3E, base+6E4E, base+6E6E, base+6E7E, base+6E8E, base+6EBE, base+6ECE] 016DD0 move.b (A0,D2.w), D0 016DD4 cmpi.b #$3, D0 [base+6BDE, base+6BEE, base+6BFE, base+6C0E, base+6C3E, base+6C4E, base+6C6E, base+6C7E, base+6C8E, base+6CBE, base+6CCE, base+6CDE, base+6CEE, base+6D0E, base+6D1E, base+6D2E, base+6D5E, base+6D6E, base+6D8E, base+6D9E, base+6DAE, base+6DBE, base+6DDE, base+6DEE, base+6DFE, base+6E0E, base+6E3E, base+6E4E, base+6E6E, base+6E7E, base+6E8E, base+6EBE, base+6ECE] 016E06 move.b (A0,D2.w), D0 016E0A cmpi.b #$4, D0 [base+6BDE, base+6BEE, base+6BFE, base+6C0E, base+6C3E, base+6C4E, base+6C6E, base+6C7E, base+6C8E, base+6CBE, base+6CCE, base+6CDE, base+6CEE, base+6D0E, base+6D1E, base+6D2E, base+6D5E, base+6D6E, base+6D8E, base+6D9E, base+6DAE, base+6DBE, base+6DDE, base+6DEE, base+6DFE, base+6E0E, base+6E3E, base+6E4E, base+6E6E, base+6E7E, base+6E8E, base+6EBE, base+6ECE] 0AAACA move.l (A0), D2 0AAACC move.w D0, (A0) [123p+11A, 123p+11C, 123p+11E, 123p+120, 123p+122, 123p+124, 123p+126, 123p+128, 123p+12A, base+6FFE, enemy+BC, enemy+C0, enemy+C2, enemy+C4, enemy+CC, enemy+CE, enemy+D0, enemy+D2, enemy+D4, enemy+D6, enemy+D8, enemy+DA, item+86, item+88, item+8A, item+98, item+9A, item+9C, item+9E, item+A0, item+A2, item+A4, item+A6, scr1] 0AAACE move.w D0, ($2,A0) 0AAAD2 cmp.l (A0), D0 0AAAD4 bne $aaafc 0AAAD8 move.l D2, (A0)+ 0AAADA cmpa.l A0, A1 [123p+11A, 123p+11C, 123p+11E, 123p+120, 123p+122, 123p+124, 123p+126, 123p+128, 123p+12A, base+6FFE, enemy+BC, enemy+C0, enemy+C2, enemy+C4, enemy+CC, enemy+CE, enemy+D0, enemy+D2, enemy+D4, enemy+D6, enemy+D8, enemy+DA, item+86, item+88, item+8A, item+98, item+9A, item+9C, item+9E, item+A0, item+A2, item+A4, item+A6, scr1] 0AAAE6 move.l (A0), D2 0AAAE8 move.w D0, (A0) [123p+11A, 123p+11C, 123p+11E, 123p+120, 123p+122, 123p+124, 123p+126, 123p+128, 123p+12A, base+6FFE, enemy+BC, enemy+C0, enemy+C2, enemy+C4, enemy+CC, enemy+CE, enemy+D0, enemy+D2, enemy+D4, enemy+D6, enemy+D8, enemy+DA, item+86, item+88, item+8A, item+98, item+9A, item+9C, item+9E, item+A0, item+A2, item+A4, item+A6, scr1] 0AAAF4 move.l D2, (A0)+ 0AAAF6 cmpa.l A0, A1 [123p+11A, 123p+11C, 123p+11E, 123p+120, 123p+122, 123p+124, 123p+126, 123p+128, 123p+12A, base+6FFE, enemy+BC, enemy+C0, enemy+C2, enemy+C4, enemy+CC, enemy+CE, enemy+D0, enemy+D2, enemy+D4, enemy+D6, enemy+D8, enemy+DA, item+86, item+88, item+8A, item+98, item+9A, item+9C, item+9E, item+A0, item+A2, item+A4, item+A6, scr1] copyright zengfr site:http://github.com/zengfr/romhack
_lessons/06-dynamic/code/family-state-2.als
HanielB/2021.1-fm
0
1513
<gh_stars>0 ---------------- Signatures ---------------- sig State { successor : set State, prev : set State } one sig Initial extends State {} abstract sig Person { -- primitive relations children: Person set -> State, spouse: Person lone -> State, alive: set State, } sig Man, Woman extends Person {} abstract sig Operator {} one sig Dies, IsBornFromParents, GetMarried extends Operator {} one sig Track { op: Operator lone -> State } ------------------ Linear order on State ------------ fact linearOrder { -- no cycles, each state has at most one successor all s: State { lone s.successor s not in s.^successor } -- there is one final state one s: State | no s.successor -- there is one initial state, which is Initial one s: State | no successor.s no s : State - Initial | some s.successor & Initial -- no self loops no iden & successor -- prev is symmetric of successor prev = ~successor } fun last: one State { State - (successor.State) } -- These derived relations are defined here as macros, to keep the model lean fun parents [t: State]: Person -> Person { ~(children.t) } fun siblings [p: Person, t: State]: Person { { q : Person - p | some q.(parents[t]) and p.(parents[t]) = q.(parents[t]) } } -- Two persons are blood relatives at time t iff -- they have a common ancestor at time t -- (alternative definition in based directly on children) pred BloodRelatives [p: Person, q: Person, t: State, ] { some a: Person | p+q in a.*(children.t) } ------------------------------ -- Frame condition predicates ------------------------------ pred noChildrenChangeExcept [ps: set Person, t,t': State, ] { all p: Person - ps | p.children.t' = p.children.t } pred noSpouseChangeExcept [ps: set Person, t,t': State] { all p: Person - ps | p.spouse.t' = p.spouse.t } pred noAliveChange [t, t': State] { alive.t' = alive.t } ------------- -- Operators ------------- pred getMarried [p,q: Person, t,t': State] { -- Pre-condition -- p and q must be alive before marriage (at time t) p+q in alive.t -- they must not be married no (p+q).spouse.t -- they must not be blood relatives not BloodRelatives [p, q, t] -- Post-condition -- After marriage they are each other's spouses q in p.spouse.t' p in q.spouse.t' -- Frame condition noChildrenChangeExcept [none, t, t'] noSpouseChangeExcept [p+q, t, t'] noAliveChange [t, t'] Track.op.t' = GetMarried } pred isBornFromParents [p: Person, m: Man, w: Woman, t,t': State] { -- Pre-condition m+w in alive.t p !in alive.t -- Post-condition and frame condition alive.t' = alive.t + p m.children.t' = m.children.t + p w.children.t' = w.children.t + p -- Frame condition noChildrenChangeExcept [m+w, t, t'] noSpouseChangeExcept [none, t, t'] Track.op.t' = IsBornFromParents } pred dies [p: Person, t,t': State] { -- Pre-condition p in alive.t -- Post-condition no p.spouse.t' -- Post-condition and frame condition alive.t' = alive.t - p all s: p.spouse.t | s.spouse.t' = s.spouse.t - p -- Frame condition noChildrenChangeExcept [none, t, t'] noSpouseChangeExcept [p + p.spouse.t, t, t'] Track.op.t' = Dies } --------------------------- -- Inital state conditions --------------------------- pred init [t: State] { no children.t no spouse.t #alive.t > 2 #Person > #alive.t } ----------------------- -- Transition relation ----------------------- pred trans [t,t': State] { (some p,q: Person | getMarried [p, q, t, t']) or (some p: Person, m: Man, w: Woman | isBornFromParents [p, m, w, t, t']) or (some p :Person | dies [p, t, t']) } ------------------- -- System predicate ------------------- -- Denotes all possible executions of the system from a state -- that satisfies the init condition pred System { init [Initial] all t: State - last | trans [t, t.successor] } --------------------------- -- Sanity-check predicates --------------------------- pred sc1 [] { -- having children is possible some t: State | some children.t } pred sc2 [] { -- births can happen some t: State | some p: Person | p in alive.t and p !in alive.(t.successor) } pred sc3 [] { -- people can get married some t: State | some p: Person | some q: Person - p | q in p.spouse.t } run { #Man > 1 #Woman > 1 System -- uncomment any of sanity-check predicates to check it -- sc1 -- sc2 -- sc3 } for 10 but 8 State -- Only living people can have children assert a1 { System => all t: State | all p: Person | (some p.children.t) => p in alive.t } check a1 for 10 but 6 State -- Only people that are or have been alive can have children assert a2 { System => all t: State | all p: Person | (some p.children.t) => some t': t+(t.^prev) | p in alive.t' } check a2 for 10 but 6 State -- Only living people can be married assert a3 { System => all t: State | all p: Person | (some p.spouse.t) => p in alive.t } check a3 for 10 but 6 State -- No person can be their own ancestor assert a4 { System => all t: State | no p: Person | p in p.^(parents[t]) } check a4 for 10 but 6 State -- No person can have more than one father or mother assert a5 { System => all t: State | all p: Person | lone (p.(parents[t]) & Man) and lone (p.(parents[t]) & Woman) } check a5 for 10 but 6 State -- Each married woman has a husband assert a6 { System => all t: State | all w: Woman | some (w.spouse.t & Man) } check a6 for 10 but 6 State -- A spouse can't be a sibling assert a7 { System => all t: State | all p: Person | all q: p.spouse.t | q !in siblings[p, t] } check a7 for 10 but 6 State -- the spouse relation is symmetric assert a8 { System => all t: State | spouse.t = ~(spouse.t) } check a8 for 10 but 4 State
latte/front/parser/Latte.g4
latte-c/latte
0
6427
<reponame>latte-c/latte grammar Latte; WHITESPACE: [ \r\t\n]+ -> skip; COMMENT: '//' ~[\r\n]* -> skip; IMPORT: 'import'; PROCEDURE: 'procedure'; EXPORT: 'export'; ARRAY: 'array'; INT: 'int'; REAL: 'real'; IF: 'if'; ELSE: 'else'; LOOP: 'loop'; BREAK: 'break'; CONTINUE: 'continue'; RETURN: 'return'; fragment DEC_CONST: [1-9][0-9]* | '0'; fragment OCT_CONST: ('0o' | '0O') [0-7]+; fragment HEX_CONST: ('0x' | '0X') [0-9a-fA-F]+; INT_CONST: DEC_CONST | OCT_CONST | HEX_CONST; REAL_CONST: [0-9]+ '.' [0-9]+ (('e' | 'E') ('+' | '-')? DEC_CONST)?; IDENTIFIER: [_a-zA-Z][_a-zA-Z0-9]*; fragment ESC_SEQUENCE: '\\' ( '\\' | '"' | '?' | '\'' | 'a' | 'b' | 'f' | 'n' | 'r' | 't' | 'v' ); fragment CCHAR: ~['\\\r\n] | ESC_SEQUENCE; CHAR_CONST: '\'' CCHAR '\''; STRING_CONST: '"' CCHAR* '"'; compilationUnit: importDeclaration* topDeclaration* EOF; importDeclaration: IMPORT IDENTIFIER ('.' IDENTIFIER)* ';'; topDeclaration: varDeclaration | procedureDeclaration; varDeclaration: EXPORT? latteType IDENTIFIER ('=' expression)?; procedureDeclaration: EXPORT? PROCEDURE latteType IDENTIFIER '(' ( procedureArgument (',' procedureArgument)* )? ')' '{' statement* '}'; procedureArgument: latteType IDENTIFIER; statement: blockStatement | ifStatement | loopStatement | breakStatement | continueStatement | returnStatement | expressionStatement | assignStatement | returnStatement | varStatement; blockStatement: '{' statement* '}'; ifStatement: IF '(' expression ')' statement (ELSE statement)?; loopStatement: (IDENTIFIER ':')? LOOP statement; breakStatement: BREAK IDENTIFIER? ';'; continueStatement: CONTINUE IDENTIFIER? ';'; returnStatement: 'return' expression ';'; expressionStatement: expression ';'; assignStatement: accessExpression '=' expression ';'; varStatement: latteType varInitialization (',' varInitialization)* ';'; varInitialization: IDENTIFIER ('=' expression)?; expression: op = ('-' | '!') expression # unaryExpr | expression op = ('*' | '/') expression # binaryMulExpr | expression op = ('+' | '-') expression # binaryAddExpr | expression op = ('%' | '@') expression # binaryModExpr | expression op = ('>' | '<' | '>=' | '<=') expression # binaryCompExpr | expression op = ('==' | '!=') expression # binaryEqExpr | expression '&&' expression # binaryAndExpr | expression '||' expression # binaryOrExpr | '(' expression ')' # parenExpr | '{' expression (',' expression)* '}' # arrayExpr | IDENTIFIER '(' (expression (',' expression)*)? ')' # callExpr | accessExpression # accessExpr | INT_CONST # intConstExpr | REAL_CONST # realConstExpr | CHAR_CONST # charConstExpr | STRING_CONST # stringConstExpr; accessExpression: IDENTIFIER ('[' expression (',' expression)* ']')?; latteType: nativeType '(' INT_CONST ')' (ARRAY '(' arrayShape ')')?; nativeType: INT | REAL; arrayShape: '*' | INT_CONST (',' INT_CONST)*;
docs/src/tooldocs/verify/PROOF-evendoublecoin.agda
DouglasRMiles/pakcs_lib
2
13579
<gh_stars>1-10 -- Agda program using the Iowa Agda library open import bool module PROOF-evendoublecoin (Choice : Set) (choose : Choice → 𝔹) (lchoice : Choice → Choice) (rchoice : Choice → Choice) where open import eq open import nat open import list open import maybe --------------------------------------------------------------------------- -- Translated Curry operations: add : ℕ → ℕ → ℕ add zero x = x add (suc y) z = suc (add y z) coin : Choice → ℕ → ℕ coin c1 x = if choose c1 then x else suc x double : ℕ → ℕ double x = add x x even : ℕ → 𝔹 even zero = tt even (suc zero) = ff even (suc (suc x)) = even x --------------------------------------------------------------------------- add-suc : ∀ (x y : ℕ) → add x (suc y) ≡ suc (add x y) add-suc zero y = refl add-suc (suc x) y rewrite add-suc x y = refl -- auxiliary property for x+x instead of double: even-add-x-x : ∀ (x : ℕ) → even (add x x) ≡ tt even-add-x-x zero = refl even-add-x-x (suc x) rewrite add-suc x x | even-add-x-x x = refl evendoublecoin : (c1 : Choice) → (x : ℕ) → (even (double (coin c1 x))) ≡ tt evendoublecoin c1 x rewrite even-add-x-x (coin c1 x) = refl ---------------------------------------------------------------------------
c2nasm/example/c.asm
TimerChen/MxCompiler
2
19679
default rel global gc global add global val global main global ga global gb SECTION .text add: push rbp mov rbp, rsp mov dword [rbp-14H], edi lea rax, [rel L_001] mov qword [rbp-10H], rax lea rax, [rel L_002] mov qword [rbp-8H], rax nop pop rbp ret val: push rbp mov rbp, rsp mov eax, 233 pop rbp ret main: push rbp mov rbp, rsp sub rsp, 32 mov dword [rbp-18H], 6 mov dword [rbp-14H], 7 mov eax, dword [rbp-18H] not eax mov dword [rel gc], eax mov eax, dword [rbp-18H] neg eax mov dword [rel gc], eax lea rax, [rel L_003] mov qword [rbp-10H], rax lea rax, [rel L_004] mov qword [rbp-8H], rax mov eax, dword [rbp-18H] mov edi, eax call add mov dword [rel ga], 233 mov dword [rel gb], 244 mov eax, 0 leave ret SECTION .data align=4 ga: dd 000000E9H gb: dd 000000F4H SECTION .bss SECTION .rodata L_001: db 61H, 64H, 64H, 30H, 00H L_002: db 61H, 64H, 64H, 31H, 00H L_003: db 6DH, 61H, 69H, 6EH, 30H, 00H L_004: db 6DH, 61H, 69H, 6EH, 31H, 00H
src/Core/ScriptLang/Grammar/ScLang.g4
alexguirre/gtav-sc-tools
11
6810
grammar ScLang; program : ((directive | declaration)? EOL)* (directive | declaration)? // repeated so a new line is not required at the end of the file, TODO: is there a better way to do this? ; directive : K_SCRIPT_HASH integer #scriptHashDirective | K_USING string #usingDirective ; declaration : K_SCRIPT name=identifier parameterList? EOL statementBlock K_ENDSCRIPT #scriptDeclaration | K_PROC name=identifier parameterList EOL statementBlock K_ENDPROC #procedureDeclaration | K_FUNC returnType=identifier name=identifier parameterList EOL statementBlock K_ENDFUNC #functionDeclaration | K_PROTO K_PROC name=identifier parameterList #procedurePrototypeDeclaration | K_PROTO K_FUNC returnType=identifier name=identifier parameterList #functionPrototypeDeclaration | K_NATIVE K_PROC name=identifier parameterList #procedureNativeDeclaration | K_NATIVE K_FUNC returnType=identifier name=identifier parameterList #functionNativeDeclaration | K_STRUCT identifier EOL structFieldList K_ENDSTRUCT #structDeclaration | K_ENUM identifier EOL enumList K_ENDENUM #enumDeclaration | K_CONST varDeclaration #constantVariableDeclaration | varDeclaration #staticVariableDeclaration | K_GLOBAL block=integer owner=identifier EOL (varDeclaration? EOL)* K_ENDGLOBAL #globalBlockDeclaration ; statement : varDeclaration #variableDeclarationStatement | left=expression op=('=' | '*=' | '/=' | '%=' | '+=' | '-=' | '&=' | '^=' | '|=') right=expression #assignmentStatement | K_IF condition=expression EOL thenBlock=statementBlock elifBlock* elseBlock? K_ENDIF #ifStatement | K_WHILE condition=expression EOL statementBlock K_ENDWHILE #whileStatement | K_REPEAT limit=expression counter=expression EOL statementBlock K_ENDREPEAT #repeatStatement | K_SWITCH expression EOL switchCase* K_ENDSWITCH #switchStatement | K_BREAK #breakStatement | K_CONTINUE #continueStatement | K_RETURN expression? #returnStatement | K_GOTO identifier #gotoStatement | expression argumentList #invocationStatement ; elifBlock : K_ELIF condition=expression EOL statementBlock ; elseBlock : K_ELSE EOL statementBlock ; label : identifier ':' ; labeledStatement : label? statement? ; statementBlock : (labeledStatement EOL)* ; expression : '(' expression ')' #parenthesizedExpression | expression '.' identifier #fieldAccessExpression | expression argumentList #invocationExpression | expression arrayIndexer #indexingExpression | op=(K_NOT | '-') expression #unaryExpression | left=expression op=('*' | '/' | '%') right=expression #binaryExpression | left=expression op=('+' | '-') right=expression #binaryExpression | left=expression op='&' right=expression #binaryExpression | left=expression op='^' right=expression #binaryExpression | left=expression op='|' right=expression #binaryExpression | left=expression op=('<' | '>' | '<=' | '>=') right=expression #binaryExpression | left=expression op=('==' | '<>') right=expression #binaryExpression | left=expression op=K_AND right=expression #binaryExpression | left=expression op=K_OR right=expression #binaryExpression | '<<' x=expression ',' y=expression ',' z=expression '>>' #vectorExpression | identifier #identifierExpression | integer #intLiteralExpression | float #floatLiteralExpression | string #stringLiteralExpression | bool #boolLiteralExpression | K_SIZE_OF '(' expression ')' #sizeOfExpression | K_NULL #nullExpression ; switchCase : K_CASE value=expression EOL statementBlock #valueSwitchCase | K_DEFAULT EOL statementBlock #defaultSwitchCase ; enumList : (enumMemberDeclarationList? EOL)* ; enumMemberDeclarationList : enumMemberDeclaration (',' enumMemberDeclaration)* ; enumMemberDeclaration : identifier ('=' initializer=expression)? ; varDeclaration : type=identifier initDeclaratorList ; singleVarDeclaration : type=identifier initDeclarator ; singleVarDeclarationNoInit : type=identifier declarator ; declaratorList : declarator (',' declarator)* ; initDeclaratorList : initDeclarator (',' initDeclarator)* ; initDeclarator : declarator ('=' initializer=expression)? ; declarator : noRefDeclarator | refDeclarator ; refDeclarator : '&' noRefDeclarator ; noRefDeclarator : identifier #simpleDeclarator | noRefDeclarator '[' expression? ']' #arrayDeclarator | '(' refDeclarator ')' #parenthesizedRefDeclarator ; structFieldList : (varDeclaration? EOL)* ; argumentList : '(' (expression (',' expression)*)? ')' ; parameterList : '(' (singleVarDeclarationNoInit (',' singleVarDeclarationNoInit)*)? ')' ; arrayIndexer : '[' expression ']' ; identifier : IDENTIFIER ; integer : DECIMAL_INTEGER | HEX_INTEGER | HASH_STRING ; float : FLOAT ; string : STRING ; bool : K_TRUE | K_FALSE ; // keywords K_SCRIPT : S C R I P T; K_ENDSCRIPT : E N D S C R I P T; K_PROC : P R O C; K_ENDPROC : E N D P R O C; K_FUNC : F U N C; K_ENDFUNC : E N D F U N C; K_STRUCT : S T R U C T; K_ENDSTRUCT : E N D S T R U C T; K_ENUM : E N U M; K_ENDENUM : E N D E N U M; K_PROTO : P R O T O; K_NATIVE : N A T I V E; K_TRUE : T R U E; K_FALSE : F A L S E; K_NOT : N O T; K_AND : A N D; K_OR : O R; K_IF : I F; K_ELIF : E L I F; K_ELSE : E L S E; K_ENDIF : E N D I F; K_WHILE : W H I L E; K_ENDWHILE : E N D W H I L E; K_REPEAT : R E P E A T; K_ENDREPEAT : E N D R E P E A T; K_SWITCH : S W I T C H; K_ENDSWITCH : E N D S W I T C H; K_CASE : C A S E; K_DEFAULT : D E F A U L T; K_BREAK : B R E A K; K_CONTINUE : C O N T I N U E; K_RETURN : R E T U R N; K_GOTO : G O T O; K_SCRIPT_HASH : S C R I P T '_' H A S H; K_USING : U S I N G; K_CONST : C O N S T; K_GLOBAL : G L O B A L; K_ENDGLOBAL : E N D G L O B A L; K_SIZE_OF : S I Z E '_' O F; K_NULL : N U L L; OP_ADD: '+'; OP_SUBTRACT: '-'; OP_MULTIPLY: '*'; OP_DIVIDE: '/'; OP_MODULO: '%'; OP_OR: '|'; OP_AND: '&'; OP_XOR: '^'; OP_EQUAL: '=='; OP_NOT_EQUAL: '<>'; OP_GREATER: '>'; OP_GREATER_OR_EQUAL: '>='; OP_LESS: '<'; OP_LESS_OR_EQUAL: '<='; OP_ASSIGN: '='; OP_ASSIGN_ADD: '+='; OP_ASSIGN_SUBTRACT: '-='; OP_ASSIGN_MULTIPLY: '*='; OP_ASSIGN_DIVIDE: '/='; OP_ASSIGN_MODULO: '%='; OP_ASSIGN_OR: '|='; OP_ASSIGN_AND: '&='; OP_ASSIGN_XOR: '^='; IDENTIFIER : [a-zA-Z_] [a-zA-Z_0-9]* ; FLOAT : DECIMAL_INTEGER '.' DIGIT* FLOAT_EXPONENT? | '.' DIGIT+ FLOAT_EXPONENT? | DECIMAL_INTEGER FLOAT_EXPONENT ; fragment FLOAT_EXPONENT : [eE] DECIMAL_INTEGER ; DECIMAL_INTEGER : [-+]? DIGIT+ ; HEX_INTEGER : '0x' HEX_DIGIT+ ; HASH_STRING : UNCLOSED_HASH_STRING '`' ; UNCLOSED_HASH_STRING : '`' (~[`\\\r\n] | '\\' (. | EOF))* ; STRING : UNCLOSED_STRING '"' | UNCLOSED_STRING_SQ '\'' ; UNCLOSED_STRING : '"' (~["\\\r\n] | '\\' (. | EOF))* ; UNCLOSED_STRING_SQ : '\'' (~['\\\r\n] | '\\' (. | EOF))* ; COMMENT : '//' ~ [\r\n]* -> skip ; EOL : [\r\n]+ ; WS : [ \t] -> skip ; fragment DIGIT : [0-9]; fragment HEX_DIGIT : [0-9a-fA-F]; 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];
programs/oeis/100/A100158.asm
neoneye/loda
22
21800
<reponame>neoneye/loda<filename>programs/oeis/100/A100158.asm ; A100158: Structured disdyakis triacontahedral numbers (vertex structure 11). ; 1,62,293,804,1705,3106,5117,7848,11409,15910,21461,28172,36153,45514,56365,68816,82977,98958,116869,136820,158921,183282,210013,239224,271025,305526,342837,383068,426329,472730,522381,575392,631873,691934,755685,823236,894697,970178,1049789,1133640,1221841,1314502,1411733,1513644,1620345,1731946,1848557,1970288,2097249,2229550,2367301,2510612,2659593,2814354,2975005,3141656,3314417,3493398,3678709,3870460,4068761,4273722,4485453,4704064,4929665,5162366,5402277,5649508,5904169,6166370,6436221,6713832,6999313,7292774,7594325,7904076,8222137,8548618,8883629,9227280,9579681,9940942,10311173,10690484,11078985,11476786,11883997,12300728,12727089,13163190,13609141,14065052,14531033,15007194,15493645,15990496,16497857,17015838,17544549,18084100 mov $7,$0 lpb $0 add $4,$0 sub $0,1 add $4,6 add $1,$4 lpe mul $1,4 add $1,1 mov $3,$7 mov $6,$7 lpb $3 sub $3,1 add $5,$6 lpe mov $2,16 mov $6,$5 lpb $2 add $1,$6 sub $2,1 lpe mov $3,$7 mov $5,0 lpb $3 sub $3,1 add $5,$6 lpe mov $2,17 mov $6,$5 lpb $2 add $1,$6 sub $2,1 lpe mov $0,$1
test/Fail/TypeConstructorsWhichPreserveGuardedness3.agda
hborum/agda
3
2825
<gh_stars>1-10 module TypeConstructorsWhichPreserveGuardedness3 where record ⊤ : Set where data _⊎_ (A B : Set) : Set where inj₁ : A → A ⊎ B inj₂ : B → A ⊎ B -- This should not be allowed. ℕ : Set ℕ = ⊤ ⊎ ℕ
oeis/063/A063494.asm
neoneye/loda-programs
11
101363
; A063494: a(n) = (2*n - 1)*(7*n^2 - 7*n + 3)/3. ; Submitted by <NAME> ; 1,17,75,203,429,781,1287,1975,2873,4009,5411,7107,9125,11493,14239,17391,20977,25025,29563,34619,40221,46397,53175,60583,68649,77401,86867,97075,108053,119829,132431,145887,160225,175473,191659,208811,226957,246125,266343,287639,310041,333577,358275,384163,411269,439621,469247,500175,532433,566049,601051,637467,675325,714653,755479,797831,841737,887225,934323,983059,1033461,1085557,1139375,1194943,1252289,1311441,1372427,1435275,1500013,1566669,1635271,1705847,1778425,1853033,1929699,2008451 mul $0,2 add $0,2 mov $1,$0 bin $0,3 mul $0,7 add $0,$1 add $0,$1 sub $0,4 div $0,2 add $0,1
sim/asm/fn42.asm
nanamake/avr_cpu
2
103504
;--------------------------- ; test for interrupt/reti ;--------------------------- ; In this test IRQ input is required. See testbench stimuli. jmp reset jmp hand1 jmp hand2 ;------------------- reset: sei ldi r16,0x00 inc r16 sts 0x0100,r16 ; (inc) 0x00 inc r16 sts 0x0101,r16 ; (inc) inc r16 sts 0x0102,r16 ; (inc) inc r16 sts 0x0103,r16 ; (inc) sts 0x0104,r0 ; (inc) sts 0x0105,r1 ; (inc) ldi r16,0x00 inc r16 sts 0x0110,r16 ; (inc) 0x00 inc r16 sts 0x0111,r16 ; (inc) inc r16 sts 0x0112,r16 ; (inc) inc r16 sts 0x0113,r16 ; (inc) sts 0x0114,r0 ; (inc) sts 0x0115,r1 ; (inc) ldi r16,0xff sts 0xffff,r16 halt: rjmp halt ;------------------- .org 0x0110 hand1: inc r16 mov r0 ,r16 reti ;------------------- .org 0x0220 hand2: inc r16 mov r1 ,r16 reti
source/machine-pc-linux-gnu/s-stomap.adb
ytomino/drake
33
5613
with C.elf; with C.link; with C.sys.types; package body System.Storage_Map is pragma Suppress (All_Checks); use type C.signed_int; use type C.signed_long; -- 64bit ssize_t -- the type of dlpi_phdr is different between 32bit and 64bit. function To_Address (Value : access constant C.elf.Elf32_Phdr) return Address with Import, Convention => Intrinsic; function To_Address (Value : access constant C.elf.Elf64_Phdr) return Address with Import, Convention => Intrinsic; pragma Warnings (Off, To_Address); type Rec is record First_Load_Address : Address; end record; pragma Suppress_Initialization (Rec); function Callback ( Info : access C.link.struct_dl_phdr_info; Size : C.size_t; Data : C.void_ptr) return C.signed_int with Convention => C; function Callback ( Info : access C.link.struct_dl_phdr_info; Size : C.size_t; Data : C.void_ptr) return C.signed_int is pragma Unreferenced (Size); R : Rec; for R'Address use Address (Data); begin if Standard'Address_Size <= 32 then declare use type C.elf.Elf32_Half; -- dlpi_phnum use type C.elf.Elf32_Word; -- p_type and p_vaddr type Elf32_Phdr_array is array (C.sys.types.ssize_t range <>) of aliased C.elf.Elf32_Phdr with Convention => C; dlpi_phdr : Elf32_Phdr_array ( 0 .. C.sys.types.ssize_t (Info.dlpi_phnum) - 1); for dlpi_phdr'Address use To_Address (Info.dlpi_phdr); begin for I in dlpi_phdr'Range loop if dlpi_phdr (I).p_type = C.elf.PT_LOAD then R.First_Load_Address := System'To_Address ( dlpi_phdr (I).p_vaddr + C.elf.Elf32_Addr'Mod (Info.dlpi_addr)); return 1; -- finish end if; end loop; end; else declare use type C.elf.Elf64_Half; -- dlpi_phnum use type C.elf.Elf64_Word; -- p_type use type C.elf.Elf64_Addr; -- p_vaddr type Elf64_Phdr_array is array (C.sys.types.ssize_t range <>) of aliased C.elf.Elf64_Phdr with Convention => C; dlpi_phdr : Elf64_Phdr_array ( 0 .. C.sys.types.ssize_t (Info.dlpi_phnum) - 1); for dlpi_phdr'Address use To_Address (Info.dlpi_phdr); begin for I in dlpi_phdr'Range loop if dlpi_phdr (I).p_type = C.elf.PT_LOAD then R.First_Load_Address := System'To_Address ( dlpi_phdr (I).p_vaddr + C.elf.Elf64_Addr'Mod (Info.dlpi_addr)); return 1; -- finish end if; end loop; end; end if; return 0; -- continue end Callback; -- implementation function Load_Address return Address is R : aliased Rec; Dummy : C.signed_int; begin R.First_Load_Address := Null_Address; Dummy := C.link.dl_iterate_phdr ( Callback'Access, C.void_ptr (R'Address)); return R.First_Load_Address; end Load_Address; end System.Storage_Map;
programs/oeis/226/A226292.asm
karttu/loda
1
245778
; A226292: (10*n^2+4*n+(1-(-1)^n))/8. ; 2,6,13,22,34,48,65,84,106,130,157,186,218,252,289,328,370,414,461,510,562,616,673,732,794,858,925,994,1066,1140,1217,1296,1378,1462,1549,1638,1730,1824,1921,2020,2122,2226,2333,2442,2554,2668,2785,2904,3026,3150,3277,3406,3538,3672,3809,3948,4090,4234,4381,4530,4682,4836,4993,5152,5314,5478,5645,5814,5986,6160,6337,6516,6698,6882,7069,7258,7450,7644,7841,8040,8242,8446,8653,8862,9074,9288,9505,9724,9946,10170,10397,10626,10858,11092,11329,11568,11810,12054,12301,12550,12802,13056,13313,13572,13834,14098,14365,14634,14906,15180,15457,15736,16018,16302,16589,16878,17170,17464,17761,18060,18362,18666,18973,19282,19594,19908,20225,20544,20866,21190,21517,21846,22178,22512,22849,23188,23530,23874,24221,24570,24922,25276,25633,25992,26354,26718,27085,27454,27826,28200,28577,28956,29338,29722,30109,30498,30890,31284,31681,32080,32482,32886,33293,33702,34114,34528,34945,35364,35786,36210,36637,37066,37498,37932,38369,38808,39250,39694,40141,40590,41042,41496,41953,42412,42874,43338,43805,44274,44746,45220,45697,46176,46658,47142,47629,48118,48610,49104,49601,50100,50602,51106,51613,52122,52634,53148,53665,54184,54706,55230,55757,56286,56818,57352,57889,58428,58970,59514,60061,60610,61162,61716,62273,62832,63394,63958,64525,65094,65666,66240,66817,67396,67978,68562,69149,69738,70330,70924,71521,72120,72722,73326,73933,74542,75154,75768,76385,77004,77626,78250 mov $1,5 mul $1,$0 add $1,12 mul $1,$0 div $1,4 add $1,2
Julian_calendar.ads
Louis-Aime/Milesian_calendar_Ada
0
12262
-- Julian_calendar.ads -- Specifications of conversion routines between julian and gregorian calendar -- versus Julian day. Here they are named Roman calendar. -- The Julian calendar was initiated by <NAME> in 709 Ab Urbe Condita. -- The Gregorian calendar was enforced by Gregorius XIII in 1582 Anno Domini. -- The computation of the "delay" between a Gregorian and a Julian date -- and the computation of Easter following Julian and Gregorian computus -- are also specified here. ---------------------------------------------------------------------------- -- Copyright Miletus 2016 -- Permission is hereby granted, free of charge, to any person obtaining -- a copy of this software and associated documentation files (the -- "Software"), to deal in the Software without restriction, including -- without limitation the rights to use, copy, modify, merge, publish, -- distribute, sublicense, and/or sell copies of the Software, and to -- permit persons to whom the Software is furnished to do so, subject to -- the following conditions: -- 1. The above copyright notice and this permission notice shall be included -- in all copies or substantial portions of the Software. -- 2. Changes with respect to any former version shall be documented. -- -- The software is provided "as is", without warranty of any kind, -- express of implied, including but not limited to the warranties of -- merchantability, fitness for a particular purpose and noninfringement. -- In no event shall the authors of copyright holders be liable for any -- claim, damages or other liability, whether in an action of contract, -- tort or otherwise, arising from, out of or in connection with the software -- or the use or other dealings in the software. -- Inquiries: www.calendriermilesien.org ------------------------------------------------------------------------------- with Scaliger; use Scaliger; -- Defines Julian_Day and General date (i.e. Day 1..31, Month 1..12, Year). package Julian_calendar is type Roman_date is new General_date; type Calendar_type is (Unspecified, Julian, Gregorian); -- the function names are similar to names of conversion functions in php function JD_to_Roman (jd : Julian_Day; Calendar : Calendar_type := Unspecified) return Roman_date; -- given an integer Julian day, compute the corresponding Roman day -- by default: following the Julian calendar. function Roman_to_JD (Date : Roman_date; Calendar : Calendar_type := Unspecified) return Julian_Day; -- given a date in Roman form, compute the corresponding Julian day. function Julian_to_Gregorian_Delay (Year : Historical_year_number) return Integer; -- Delay of the Julian calendar to the Gregorian in days, -- i.e. days to add the Julian date in order to obtain the Gregorian one. -- This delay is valid from 1 March of specified year, -- until last day of February of next year, Julian calendar. function Easter_days (Year : Natural; Calendar : Calendar_type := Unspecified) return Natural; -- Give number of days to add to 21 March in order to land Easter sunday. -- Delambre method and "Milesian" method (no dependency to Milesian calendar) end Julian_calendar;
src/main/java/parser/QSygusParser.g4
Herbping/WTAlib
0
7361
grammar QSygusParser; start : prog ; prog : setWeightCmd cmdPlus ; setLogicCmd : '(' 'set-logic' SYMBOL ')' ; weightPlus : weightPlus '(' SYMBOL weight ')' | '(' SYMBOL weight ')' ; weight : 'TROP' | 'PROB' | 'BOOL' ; setWeightCmd : '(' 'set-weight' weightPlus ')' ; cmdPlus : cmdPlus cmd | cmd ; cmd : setLogicCmd | funDefCmd | funDeclCmd | synthFunCmd | checkSynthCmd | constraintCmd | sortDefCmd | setOptsCmd | weightConstraintCmd | weightOptimizationCmd | varDeclCmd ; weightOptimizationCmd : '(' 'optimize' weightPair ')' ; weightPair : '(' SYMBOL symbolPlus ')' | SYMBOL ; weightConstraintCmd : '(' 'weight-constraint' term ')' ; varDeclCmd : '(' 'declare-var' SYMBOL sortExpr ')' ; sortDefCmd : '(' 'define-sort' SYMBOL sortExpr ')' ; sortExpr : '(' 'BitVec' INTCONST ')' | 'Bool' | 'Int' | 'Real' | '(' 'Enum' ecList ')' | '(' 'Array' sortExpr sortExpr ')' | SYMBOL ; boolConst : 'true' | 'false' ; enumConst : SYMBOL '::' SYMBOL ; ecList : '(' symbolPlus ')' ; symbolPlus : symbolPlus SYMBOL | SYMBOL ; setOptsCmd : '(' 'set-options' optList ')' ; optList : '(' symbolPairPlus ')' ; symbolPairPlus : symbolPairPlus symbolPair | symbolPair ; symbolPair : '(' SYMBOL QUOTEDLIT ')' ; funDefCmd : '(' 'define-fun' SYMBOL argList sortExpr term ')' ; funDeclCmd : '(' 'declare-fun' SYMBOL '(' sortStar ')' sortExpr ')' ; sortStar : sortStar sortExpr | /* epsilon */ ; argList : '(' symbolSortPairStar ')' ; symbolSortPairStar : symbolSortPairStar symbolSortPair | /* epsilon */ ; symbolSortPair : '(' SYMBOL sortExpr ')' ; term : '(' SYMBOL termStar ')' | literal | SYMBOL | letTerm ; letTerm : '(' 'let' '(' letBindingTermPlus ')' term ')' ; letBindingTermPlus : letBindingTermPlus letBindingTerm | letBindingTerm ; letBindingTerm : '(' SYMBOL sortExpr term ')' ; termStar : termStar term | /* epsilon */ ; literal : INTCONST | boolConst | BVCONST | enumConst | REALCONST ; ntDefPlus : ntDefPlus ntDef | ntDef ; ntDef : '(' SYMBOL sortExpr '(' gTermPlus ')' ')' ; gTermPlus : gTermPlus gTermWeighted | gTermWeighted ; checkSynthCmd : '(' 'check-synth' ')' ; constraintCmd : '(' 'constraint' term ')' ; synthFunCmd : '(' 'synth-fun' SYMBOL argList sortExpr '(' ntDefPlus ')' ')' ; gTermWeighted : '(' gTerm ':' literalPlus ')' | gTerm ; literalPlus : literalPlus literal | literal ; gTerm : SYMBOL | literal | '(' SYMBOL gTermStar ')' | '(' 'Constant' sortExpr ')' | '(' 'Vairiable' sortExpr ')' | '(' 'InputVariable' sortExpr ')' | '(' 'LocalVariable' sortExpr ')' | letGTerm ; letGTerm : '(' 'let' '(' letBindingGTermPlus ')' gTerm ')' ; letBindingGTermPlus : letBindingGTermPlus letBindingGTerm | letBindingGTerm ; letBindingGTerm : '(' SYMBOL sortExpr gTerm ')' ; gTermStar : gTermStar gTerm | /* epsilon */ ; WS : [ \t\r\n\u000C]+ -> skip ; fragment LETTER : [a-zA-Z_] ; fragment DIGIT : [0-9] ; fragment HEXDIGIT : DIGIT | [a-f] | [A-F] ; fragment BIT : '0' | '1' ; fragment INTEGER : '-'? DIGIT+ ; INTCONST : INTEGER ; BVCONST : '#x'HEXDIGIT+ | '#b'BIT+ ; REALCONST : '-'? DIGIT+ '.' DIGIT+ ; fragment SYMBOLCC : [a-z] | [A-Z] | '_' | '+' | '-' | '*' | '&' | '|' | '!' | '~' | '<' | '>' | '=' | '/' | '%' | '?' | '.' | '$' | '^' ; SYMBOL : SYMBOLCC (SYMBOLCC | DIGIT)* ; QUOTEDLIT : '\'' ([a-z] | [A-Z] | DIGIT | '.') + '\'' ;
libsrc/stdio_new/buf/slbb0/slbb0_initbuf.asm
meesokim/z88dk
8
88039
<gh_stars>1-10 ; slbb0_initbuf ; 08.2009 aralbrec PUBLIC slbb0_initbuf ; reset the linear buffer to empty ; ; enter : hl = & struct slbb ; de = buffer adddress ; a = buffer size (len) ; uses : hl .slbb0_initbuf ld (hl),0 ; end = 0 inc hl ld (hl),a ; store len inc hl ld (hl),e ; store buffer address inc hl ld (hl),d ret
pkgs/tools/yasm/src/modules/arch/x86/tests/addbyte.asm
manggoguy/parsec-modified
2,151
5624
; AX forms add ax,5 add ax,strict byte 5 add ax,strict word 5 add ax,-128 add ax,strict byte -128 add ax,strict word -128 add ax,0x7f add ax,strict byte 0x7f add ax,strict word 0x7f add ax,0x80 add ax,strict byte 0x80 add ax,strict word 0x80 add ax,0x100 add ax,strict byte 0x100 add ax,strict word 0x100 ; non-AX forms add bx,5 add bx,strict byte 5 add bx,strict word 5 add bx,-128 add bx,strict byte -128 add bx,strict word -128 add bx,0x7f add bx,strict byte 0x7f add bx,strict word 0x7f add bx,0x80 add bx,strict byte 0x80 add bx,strict word 0x80 add bx,0x100 add bx,strict byte 0x100 add bx,strict word 0x100
programs/oeis/131/A131308.asm
neoneye/loda
22
28619
<filename>programs/oeis/131/A131308.asm ; A131308: Alternate A001477 and tripled 2*A000027. ; 0,2,2,2,1,4,4,4,2,6,6,6,3,8,8,8,4,10,10,10,5,12,12,12,6,14,14,14,7,16,16,16,8,18,18,18,9,20,20,20,10,22,22,22,11,24,24,24,12,26,26,26,13,28,28,28,14,30,30,30,15,32,32,32,16,34,34,34,17,36,36,36,18,38,38,38,19 lpb $0 sub $0,1 add $1,2 mov $2,$0 trn $0,3 lpe lpb $2 div $1,2 mov $2,2 lpe mov $0,$1
16/2/src/main.adb
Heziode/aoc-ada-2021
3
20713
<gh_stars>1-10 with Ada.Containers.Synchronized_Queue_Interfaces, Ada.Containers.Unbounded_Synchronized_Queues, Ada.Containers.Vectors, Ada.Execution_Time, Ada.Integer_Text_IO, Ada.Long_Long_Integer_Text_IO, Ada.Real_Time, Ada.Strings.Fixed, Ada.Strings.Unbounded, Ada.Text_IO; with Utils; procedure Main is use Ada.Execution_Time, Ada.Real_Time, Ada.Strings.Fixed, Ada.Strings.Unbounded, Ada.Text_IO; use Utils; package Character_Queue_Interfaces is new Ada.Containers.Synchronized_Queue_Interfaces (Element_Type => Character); package Character_Queues is new Ada.Containers.Unbounded_Synchronized_Queues (Queue_Interfaces => Character_Queue_Interfaces); use Character_Queues; function Pop (Q : in out Queue; N : Positive; Nb_Delete : in out Long_Long_Natural) return String; function Pop (Q : in out Queue; N : Positive; Nb_Delete : in out Long_Long_Natural) return String is Result : String (1 .. N); begin for Index in 1 .. N loop Q.Dequeue (Result (Index)); end loop; Nb_Delete := Nb_Delete + Long_Long_Natural (N); return Result; end Pop; File : File_Type; Start_Time, End_Time : CPU_Time; Execution_Duration : Time_Span; File_Is_Empty : Boolean := True; Result : Long_Long_Natural := Long_Long_Natural'First; Packet : Queue; begin Get_File (File); -- Get all values declare begin while not End_Of_File (File) loop declare Str : constant String := Get_Line (File); Value : Natural; Temp : String (1 .. 8); begin for Char of Str loop Value := Natural'Value ("16#" & Char & "#"); Ada.Integer_Text_IO.Put (Temp, Value, Base => 2); File_Is_Empty := False; declare Trimmed : constant String := Trim (Temp, Ada.Strings.Both); Formatted_Bin_Str : constant String := Tail (Trimmed (Trimmed'First + 2 .. Trimmed'Last - 1), 4, '0'); begin for Elt of Formatted_Bin_Str loop Packet.Enqueue (Elt); end loop; end; end loop; end; end loop; end; -- Exit the program if there is no values if File_Is_Empty then Close_If_Open (File); Put_Line ("The input file is empty."); return; end if; -- Do the puzzle Start_Time := Ada.Execution_Time.Clock; Solve_Puzzle : declare function Parse_Packet (Packet : in out Queue) return Long_Long_Natural; function Parse_Packet (Packet : in out Queue) return Long_Long_Natural is package Long_Long_Natural_Vectrors is new Ada.Containers.Vectors (Index_Type => Positive, Element_Type => Long_Long_Natural, "=" => "="); function Inner_Parse (Packet : in out Queue; Last_Index : in out Long_Long_Natural) return Long_Long_Natural; function Inner_Parse (Packet : in out Queue; Last_Index : in out Long_Long_Natural) return Long_Long_Natural is use Ada.Long_Long_Integer_Text_IO; use Long_Long_Natural_Vectrors; procedure Get (Source : String; Result : out Long_Long_Natural); procedure Get (Source : String; Result : out Long_Long_Natural) is Last : Positive; begin Get ("2#" & Source & "#", Result, Last); end Get; subtype Type_Id_Value is Long_Long_Natural range 0 .. 7; Version : Long_Long_Natural; Type_Id : Type_Id_Value; begin Get (Pop (Packet, 3, Last_Index), Version); Get (Pop (Packet, 3, Last_Index), Type_Id); if Type_Id = 4 then declare Accumulator : Unbounded_String := Null_Unbounded_String; Current : String (1 .. 1); Value : Long_Long_Natural; begin loop Current := Pop (Packet, 1, Last_Index); Accumulator := Accumulator & Pop (Packet, 4, Last_Index); exit when Current = "0"; end loop; Get (To_String (Accumulator), Value); return Value; end; else declare Values : Vector; Length_Id : Long_Long_Natural; Sub_Packet_Length : Long_Long_Natural; Number_Of_Sub_Packet : Long_Long_Natural; begin Get (Pop (Packet, 1, Last_Index), Length_Id); if Length_Id = 0 then Get (Pop (Packet, 15, Last_Index), Sub_Packet_Length); declare End_Pop : constant Long_Long_Natural := Last_Index + Sub_Packet_Length; begin while Last_Index < End_Pop loop Values.Append (Inner_Parse (Packet, Last_Index)); end loop; end; else Get (Pop (Packet, 11, Last_Index), Number_Of_Sub_Packet); for Sub_Packet_Index in 1 .. Number_Of_Sub_Packet loop Values.Append (Inner_Parse (Packet, Last_Index)); end loop; end if; return Value : Long_Long_Natural do case Type_Id is when 0 => -- Sum for Elt of Values loop Value := Value + Elt; end loop; when 1 => -- Product Value := 1; for Elt of Values loop Value := Value * Elt; end loop; when 2 => -- Minimum Value := Long_Long_Natural'Last; for Elt of Values loop if Elt < Value then Value := Elt; end if; end loop; when 3 => -- Maximum Value := Long_Long_Natural'First; for Elt of Values loop if Elt > Value then Value := Elt; end if; end loop; when 4 => raise Constraint_Error with "Unexpected Type ID 4"; when 5 => -- Greater than if Values.Element (1) > Values.Element (2) then Value := 1; else Value := 0; end if; when 6 => -- Less than if Values.Element (1) < Values.Element (2) then Value := 1; else Value := 0; end if; when 7 => -- Equal to if Values.Element (1) = Values.Element (2) then Value := 1; else Value := 0; end if; end case; end return; end; end if; end Inner_Parse; Last_Index : Long_Long_Natural := Long_Long_Natural'First; begin return Inner_Parse (Packet, Last_Index); end Parse_Packet; begin Result := Parse_Packet (Packet); end Solve_Puzzle; End_Time := Ada.Execution_Time.Clock; Execution_Duration := End_Time - Start_Time; Put ("Result: "); Ada.Long_Long_Integer_Text_IO.Put (Item => Result, Width => 0); New_Line; Put_Line ("(Took " & Duration'Image (To_Duration (Execution_Duration) * 1_000_000) & "µs)"); exception when others => Close_If_Open (File); raise; end Main;
src/FRP/LTL/Util.agda
agda/agda-frp-ltl
21
2484
<reponame>agda/agda-frp-ltl open import Data.Empty using ( ⊥ ) open import Data.Nat using ( ℕ ; zero ; suc ; _+_ ; _≤_ ; z≤n ; s≤s ) open import Relation.Binary.PropositionalEquality using ( _≡_ ; refl ; sym ; cong ) open import Relation.Binary.PropositionalEquality.TrustMe using ( trustMe ) open import Relation.Nullary using ( ¬_ ) module FRP.LTL.Util where infixr 5 _trans_ _∋_ -- Irrelevant projections postulate .irrelevant : ∀ {A : Set} → .A → A -- Irrelevant ≡ can be promoted to relevant ≡ ≡-relevant : ∀ {A : Set} {a b : A} → .(a ≡ b) → (a ≡ b) ≡-relevant a≡b = trustMe -- A version of ⊥-elim which takes an irrelevant argument ⊥-elim : {A : Set} → .⊥ → A ⊥-elim () -- An infix variant of trans _trans_ : ∀ {X : Set} {x y z : X} → (x ≡ y) → (y ≡ z) → (x ≡ z) refl trans refl = refl -- Help the type inference engine out by being explicit about X. _∋_ : (X : Set) → X → X X ∋ x = x -- Lemmas about addition on ℕ -- These are from Data.Nat.Properties, -- included here to avoid having to load all of Data.Nat.Properties' dependencies. m+1+n≡1+m+n : ∀ m n → m + suc n ≡ suc (m + n) m+1+n≡1+m+n zero n = refl m+1+n≡1+m+n (suc m) n = cong suc (m+1+n≡1+m+n m n) +-comm : ∀ m n → (m + n ≡ n + m) +-comm zero zero = refl +-comm zero (suc n) = cong suc (+-comm zero n) +-comm (suc m) n = (cong suc (+-comm m n)) trans (sym (m+1+n≡1+m+n n m)) +-assoc : ∀ l m n → ((l + m) + n ≡ l + (m + n)) +-assoc zero m n = refl +-assoc (suc l) m n = cong suc (+-assoc l m n) m+n≡0-impl-m≡0 : ∀ m n → (m + n ≡ 0) → (m ≡ 0) m+n≡0-impl-m≡0 zero n m+n≡0 = refl m+n≡0-impl-m≡0 (suc m) n () 1+n≰n : ∀ n → ¬(suc n ≤ n) 1+n≰n zero () 1+n≰n (suc n) (s≤s m≤n) = 1+n≰n n m≤n ≤0-impl-≡0 : ∀ {n} → (n ≤ 0) → (n ≡ 0) ≤0-impl-≡0 z≤n = refl
data/maps/objects/ChampionsRoom.asm
opiter09/ASM-Machina
1
175815
ChampionsRoom_Object: db $3 ; border block def_warps warp 3, 7, 1, LANCES_ROOM warp 4, 7, 2, LANCES_ROOM warp 3, 0, 0, HALL_OF_FAME warp 4, 0, 0, HALL_OF_FAME def_signs def_objects object SPRITE_BLUE, 4, 2, STAY, DOWN, 1 ; person object SPRITE_OAK, 3, 7, STAY, UP, 2 ; person def_warps_to CHAMPIONS_ROOM
MainStage 3.applescript
dchdcx/MainStage-3-Player
1
4285
<filename>MainStage 3.applescript tell application "Finder" display alert "应用程序“MainStage 3”不能打开。" --open location "https://www.apple.com/mainstage/" end tell --BY DCHDCX
sli/common/src/main/antlr4/org/openecomp/sdnc/sli/ExprGrammar.g4
arunsarat/onap-sdnc-core
0
358
grammar ExprGrammar; options { language = Java; } COMPAREOP : '==' | '!=' | '>' | '<' | '>=' | '<='; RELOP : 'and' | 'or'; ADDOP : '+' | '-'; MULTOP : '/' | '*'; NUMBER : ('0'..'9')+; STRING : '\'' ~[\']* '\''; IDENTIFIER : ('a'..'z'|'A'..'Z'|'_') ('a'..'z'|'A'..'Z'|'0'..'9'|'_'|'-')*; // CONTEXT_VAR : '$' IDENTIFIER; WS: [ \n\t\r]+ -> skip; constant : NUMBER | STRING ; variableLead : ('$')? variableTerm ; variableTerm : IDENTIFIER ('[' expr ']')? ; variable : variableLead ('.' variableTerm)* ('.')?; // variable : CONTEXT_VAR ( '[' expr ']' )? ('.' IDENTIFIER )? ; atom : constant | variable; expr : atom | parenExpr | multExpr | addExpr | compareExpr | relExpr | funcExpr; parenExpr : '(' expr ')'; term : atom | parenExpr | funcExpr; multExpr : term (MULTOP term)*; addExpr : multExpr (ADDOP multExpr)*; compareExpr : addExpr COMPAREOP addExpr; relExpr : compareExpr (RELOP expr)*; funcExpr : IDENTIFIER '(' expr (',' expr)* ')';
samples/rept.asm
wilsonpilon/msx-menu
0
12137
; rept.asm ; Test of rept and irp directives. ; Macro with rept and irp inside. hola macro local unused, unused2 unused rept 2 db 'Rept inside macro', 0 endm unused2 irp ?reg, af,bc, de, hl push ?reg endm endm ; hola ;------------------------------------- rept 10 db 'Hello, reptworld' endm rept 3 ; Rept with calculated end condition. n defl 1 rept 0FFFFh n defl n + 2 if n gt 10 exitm endif rept 4 db n endm endm endm ; Macro call inside rept. rept 2 hola endm ; New syntax. counter equ 1234h ; With counter (initial value 0 and step 1 assumed): rept 3, counter db counter endm ; With counter and initial value (step 1 assumed): rept 3, counter, 5 db counter endm ; With counter, initial value and step: rept 3, counter, 7, -1 db counter endm ; Testing that counter was local: defw counter end
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_21829_1663.asm
ljhsiun2/medusa
9
99905
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r13 push %r15 push %r8 push %rcx push %rdi push %rsi lea addresses_A_ht+0x1bb08, %rcx nop nop nop cmp $11414, %r15 movb $0x61, (%rcx) nop nop nop nop xor $16765, %r11 lea addresses_WT_ht+0x14038, %rdi clflush (%rdi) nop nop nop nop nop cmp %r8, %r8 mov (%rdi), %r13d nop nop add $20083, %rdi lea addresses_WC_ht+0x5c90, %rsi lea addresses_WC_ht+0x14ca8, %rdi nop cmp $29573, %r8 mov $0, %rcx rep movsq nop dec %r8 lea addresses_normal_ht+0xe08, %rsi lea addresses_A_ht+0xddc8, %rdi nop xor $20827, %r15 mov $71, %rcx rep movsl nop nop nop nop cmp %r8, %r8 pop %rsi pop %rdi pop %rcx pop %r8 pop %r15 pop %r13 pop %r11 ret .global s_faulty_load s_faulty_load: push %r10 push %r12 push %r15 push %rbp push %rbx push %rcx // Faulty Load lea addresses_RW+0x1cb08, %r10 nop nop sub $29069, %r12 mov (%r10), %r15 lea oracles, %rcx and $0xff, %r15 shlq $12, %r15 mov (%rcx,%r15,1), %r15 pop %rcx pop %rbx pop %rbp pop %r15 pop %r12 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'type': 'addresses_RW', 'same': False, 'size': 2, 'congruent': 0, 'NT': True, 'AVXalign': False}, 'OP': 'LOAD'} [Faulty Load] {'src': {'type': 'addresses_RW', 'same': True, 'size': 8, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} <gen_prepare_buffer> {'dst': {'type': 'addresses_A_ht', 'same': False, 'size': 1, 'congruent': 10, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'src': {'type': 'addresses_WT_ht', 'same': False, 'size': 4, 'congruent': 4, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_WC_ht', 'congruent': 2, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 5, 'same': False}, 'OP': 'REPM'} {'src': {'type': 'addresses_normal_ht', 'congruent': 7, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 6, 'same': False}, 'OP': 'REPM'} {'32': 21829} 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 */
libsrc/stdio/nc100/fputc_cons.asm
jpoikela/z88dk
640
16992
; ; Put character to console ; ; fputc_cons(char c) ; ; ; $Id: fputc_cons.asm,v 1.5+ (now on GIT) $ ; SECTION code_clib PUBLIC fputc_cons_native .fputc_cons_native ld hl,2 add hl,sp ld a,(hl) cp 12 jp z,$B824 ;TXTCLEARWINDOW (cls) IF STANDARDESCAPECHARS cp 10 ELSE cp 13 ENDIF jr nz,fputc_cons1 ld a,13 call $B833 ;txtoutput ld a,10 .fputc_cons1 jp $B833 ;txtoutput
agda/MorePropAlgebra.agda
mchristianl/synthetic-reals
3
13322
{-# OPTIONS --cubical --no-import-sorts #-} module MorePropAlgebra where open import MorePropAlgebra.Definitions public open import MorePropAlgebra.Structures public open import MorePropAlgebra.Bundles public open import MorePropAlgebra.Consequences public
programs/oeis/040/A040037.asm
neoneye/loda
22
173443
<reponame>neoneye/loda ; A040037: Continued fraction for sqrt(44). ; 6,1,1,1,2,1,1,1,12,1,1,1,2,1,1,1,12,1,1,1,2,1,1,1,12,1,1,1,2,1,1,1,12,1,1,1,2,1,1,1,12,1,1,1,2,1,1,1,12,1,1,1,2,1,1,1,12,1,1,1,2,1,1,1,12,1,1,1,2,1,1,1,12,1,1,1,2,1,1,1,12,1,1,1,2,1,1,1,12,1,1,1,2,1,1,1,12,1,1,1 seq $0,40329 ; Continued fraction for sqrt(348). div $0,3 trn $0,1 add $0,1
sqlite/SQLiteHelper.applescript
GitSyncApp/applescripts
6
630
property ScriptLoader : load script alias ((path to scripts folder from user domain as text) & "file:ScriptLoader.scpt") --prerequisite for loading .applescript files property SQLiteParser : my ScriptLoader's load_script(alias ((path to scripts folder from user domain as text) & "sqlite:SQLiteParser.applescript")) property SQLiteModifier : my ScriptLoader's load_script(alias ((path to scripts folder from user domain as text) & "sqlite:SQLiteModifier.applescript")) property SQLiteUtil : my ScriptLoader's load_script(alias ((path to scripts folder from user domain as text) & "sqlite:SQLiteUtil.applescript")) property ListParser : my ScriptLoader's load_script(alias ((path to scripts folder from user domain as text) & "list:ListParser.applescript")) property ListModifier : my ScriptLoader's load_script(alias ((path to scripts folder from user domain as text) & "list:ListModifier.applescript")) property FileModifier : my ScriptLoader's load_script(alias ((path to scripts folder from user domain as text) & "file:FileModifier.applescript")) property FileParser : my ScriptLoader's load_script(alias ((path to scripts folder from user domain as text) & "file:FileParser.applescript")) property TextParser : my ScriptLoader's load_script(alias ((path to scripts folder from user domain as text) & "text:TextParser.applescript")) (* * Promts a file browser *) on choose_database_file() set file_path to alias choose file with prompt "Pick a .db file" of type {"DB"} log ("file_path: " & file_path) set the_file_path to FileParser's file_URL(file_path) log ("the_file_path: " & the_file_path) return the_file_path end choose_database_file (* * Promts a file browser * TODO explain better * a problem here if the user cancels, you can solve this by doing try , on error, end try... google it *) on choose_file(title) log "choose_file()" set file_path to alias choose file with prompt title log ("file_path: " & file_path) set file_URL to FileParser's file_URL(file_path) log ("file_URL: " & file_URL) return file_URL end choose_file (* * Promts a file browser * TODO: explain better *) on choose_file_name(title, file_name) log "choose_file_name()" set default_desktop_folder to (path to desktop folder as text) --set filePath to alias choose file with prompt "Pick a .db file" of type {"DB"} set file_path to choose file name with prompt title default location alias default_desktop_folder default name file_name log "filePath: " & file_path return file_path end choose_file_name (* * TODO: explain better * promts a save file dialog, choose a desired file name and export the file *) on export_data(export_data) set file_path to my Helper's choose_file_name("Export data to file: ", "untitled.txt") --Choose the path and file name FileModifier's write_data(export_data, file_path, false) end export_data (* * TODO: explain better * promts a file save dialog, choose your desired file name and export *) on create_new_database() set file_path to choose_file_name("Create a new database file:", "database.db") log ("file_path: " & file_path) set the_file_path to FileParser's implicit_file_URL(file_path) log "the_file_path: " & the_file_path SQLiteModifier's create_DB(the_file_path) return the_file_path end create_new_database (* * TODO: explain better * promts a lost dialog with the table names of the .db file, pick one item *) on choose_table_name(file_path) --TODO rename to chooseTable log "choose_table_name()" --set db_file_path to my MainDialog's get_db_file_path() set table_names to words of SQLiteParser's table_names(file_path) log "table_names: " & table_names set the_selection to choose from list table_names with title "Select table" with prompt "Tables:" cancel button name "back" if the_selection is false then --aka user canceled --error number -128 -- User canceled--TODO should go back a step--aka user canceled --TODO promt something return missing value --TODO should probably go back to prev step else --my MainDialog's set_selected_table_name(item 1 of the_selection) return (item 1 of the_selection) --handleTableNameSelection() --TODO should return the picked table name end if end choose_table_name (* * TODO: explain better * promts a list dialog populated with all row id's in the @file_path and @table_name, pick an item or many *) on choose_rows(file_path, table_name) --TODO move this method into Utils, because it is private or? log "choose_rows" set rows to paragraphs of SQLiteParser's read_table(file_path, table_name, {"_rowid_", "*"}) log rows set the_selection to choose from list rows with title "Select row" with prompt "Rows:" cancel button name "back" with multiple selections allowed if the_selection is false then --aka user canceled --error number -128 -- User canceled--TODO should go back a step my MainDialog's show() --TODO should probably go back to prev step else set selected_rows to items of the_selection log "selected_rows: " & selected_rows return selected_rows end if end choose_rows (* * TODO: explain better * promts a list dialog populated with all collumn keys in the @file_path and @table_name, pick an item or many *) on choose_column_keys(file_path, table_name) log "choose_column_keys" --then display column names w/ multi select set column_names to SQLiteParser's column_names(file_path, table_name) log "column_names: " & column_names set the_selection to choose from list column_names with title "Select column keys" with prompt "Column keys:" cancel button name "back" with multiple selections allowed --then handle the multi select, log "the_selection: " & the_selection if the_selection is false then --aka user canceled --error number -128 -- User canceled--TODO should go back a step--aka user canceled return missing value --TODO should probably go back to prev step else set selected_column_keys to items of the_selection log "selected_column_keys: " & selected_column_keys return selected_column_keys --handleColumnKeysSelection() end if end choose_column_keys (* * TODO: explain better * promts a list dialog populated with all collumn keys in the @file_path and @table_name, pick an item *) on choose_column_key(file_path, table_name) log "choose_column_key" --then display column names w/ multi select set column_names to SQLiteParser's column_names(file_path, table_name) log "column_names: " & column_names set the_selection to choose from list column_names with title "Select column key" with prompt "Column keys:" cancel button name "back" --TODO handle the multi select, log "the_selection: " & the_selection if the_selection is false then --aka user canceled --error number -128 -- User canceled--TODO should go back a step--aka user canceled return missing value --TODO should probably go back to prev step else set selected_column_key to first item of the_selection log "selected_column_key: " & selected_column_key return selected_column_key end if end choose_column_key (* * TODO: explain better, what does it return? * promts a list dialog populated with all row id's in the @file_path and @table_name, pick an item * this method seems to also trim the length of a the row if it's too lengthy *) on choose_row(file_path, table_name) --set selected_table_name to my MainDialog's get_selected_table_name() log "choose_row(): " --log "chooseRow(): " & _selectedAction & " _selectedTableName: " & _selectedTableName --log rows set rows to SQLiteParser's read_table(file_path, table_name, {"_rowid_", "*"}) set row_list to paragraphs of rows --SQLiteParser's read_table(file_path, table_name, {"_rowid_", "*"}) --log "table_rows: " & rows --NEW CODE set capped_rows to paragraphs of SQLiteUtil's cap_row_values(rows, 16) --caps each row item to 16 chars --log "capped_rows: " & capped_rows log "length of capped_rows: " & length of capped_rows --NEW CODE set table_column_keys to {"id"} & SQLiteParser's column_names(file_path, table_name) set the_column_keys to TextParser's delimited_text(table_column_keys, "|") log "the_column_keys: " & the_column_keys set the_selection to choose from list capped_rows with title "Select row" with prompt the_column_keys cancel button name "back" log "the_selection:" & the_selection if the_selection is false then --aka user canceled --error number -128 -- User canceled--TODO should go back a step return missing value --TODO should probably go back to prev step else log "the_selection: " & the_selection set selected_row to item 1 of the_selection --this is index and content of the item selected log "selected_row: " & selected_row set selected_row_index to ListParser's index_of(capped_rows, selected_row) log "selected_row_index: " & selected_row_index --my MainDialog's set_selected_row(selected_row) --set selected_row_id to first item of selected_row --this is the index of the item that is selected --log "selected_row_id: " & selected_row_id --my MainDialog's set_selected_row_id(selected_row_id) return item selected_row_index of row_list --selected_row --handleRowSelection() end if end choose_row (* * Retrive a row id by promting a list dialog and then pick a row, the row_id will be returned as text *) on choose_row_id(file_path, table_name) log "choose_row_id()" return first item of choose_row(file_path, table_name) end choose_row_id (* * TODO explain better * NOTE does not include column in the pick list only row value * promts a list dialog populated with every value in a row, pick one row value to return it *) on choose_row_value(selected_row) log "choose_row_value() " set row_items to items of TextParser's split(selected_row as text, "|") set the_selection to choose from list row_items with title "Select row value" with prompt "Row values:" cancel button name "back" log "the_selection: " & the_selection if the_selection is false then --aka user canceled --error number -128 -- User canceled--TODO should go back a step return missing value --TODO should probably go back to prev step else set selected_row_value to item 1 of the_selection log "selected_row_value: " & selected_row_value return selected_row_value end if end choose_row_value (* * the value is derived from picking table first, the col:row from a list * same as choose_row_value but displays "column key : row value" in a alist * TODO: you may need to move this into the actual code again, since we may need to go back to prev step, and thats hard with this method *) on choose_value(db_file_path) set temp_table_name to choose_table_name(db_file_path) set temp_chosen_row to choose_row(db_file_path, temp_table_name) log "temp_chosen_row: " & temp_chosen_row set temp_table_column_names to SQLiteParser's column_names(db_file_path, temp_table_name) set temp_table_column_keys to {"id"} & temp_table_column_names set temp_row_value_index to choose_row_value_index(temp_chosen_row, temp_table_column_keys) log "temp_row_value_index: " & temp_row_value_index log "temp_chosen_row: " & temp_chosen_row set row_items to items of TextParser's split(temp_chosen_row as text, "|") set temp_row_value to item temp_row_value_index of row_items log "temp_row_value: " & temp_row_value return temp_row_value end choose_value (* * TODO explain better * Returns a list of chosen values *) on choose_row_values(selected_row) log "choose_row_values()" set row_items to items of TextParser's split(selected_row as text, "|") set the_selection to choose from list row_items with title "Select row value" with prompt "Row values:" cancel button name "back" with multiple selections allowed log "the_selection: " & the_selection if the_selection is false then --aka user canceled --error number -128 -- User canceled--TODO should go back a step return missing value --TODO should probably go back to prev step else set selected_row_values to items of the_selection log "selected_row_values: " & selected_row_values return selected_row_values end if end choose_row_values (* * Returns indices * NOTE: extract all row_items after the first if you dont want to include the id (this is built in for now) *) on choose_row_value_indices(row, column_keys) log "choose_row_value_indices()" set row_items to items of TextParser's split(row as text, "|") set row_items to (items 2 thru (length of row_items) of row_items) --remove the first value in the row_items, since its the id --NEW CODE set capped_row_items to paragraphs of SQLiteUtil's cap_items(row_items, 16) --caps each row item to 16 chars --NEW CODE set selection_list to ListModifier's combine(column_keys, capped_row_items, ":") set the_selection to choose from list selection_list with title "Select row values" with prompt "Row values:" cancel button name "back" with multiple selections allowed log "the_selection: " & the_selection if the_selection is false then --aka user canceled --error number -128 -- User canceled--TODO should go back a step return missing value --TODO should probably go back to prev step else set selected_items to items of the_selection log "selected_items: " & selected_items set indices to ListParser's indices(selection_list, selected_items) log "indices: " & indices return indices end if end choose_row_value_indices (* * NEW * Returns an index *) on choose_row_value_index(row, column_keys) log "choose_row_value_index()" set row_items to items of TextParser's split(row as text, "|") log "row_items: " & row_items set capped_row_items to paragraphs of SQLiteUtil's cap_values(row_items, 16) --caps each item in a list to 16 chars --set row_items to (items 1 thru (length of row_items) of row_items) --remove the first value in the row_items, since its the id set selection_list to ListModifier's combine(column_keys, capped_row_items, ":") log "selection_list: " & selection_list set the_selection to choose from list selection_list with title "Select row value" with prompt "Row values:" cancel button name "back" log "the_selection: " & the_selection if the_selection is false then --aka user canceled --error number -128 -- User canceled--TODO should go back a step return missing value --TODO should probably go back to prev step else set the_index to ListParser's index_of(selection_list, the_selection as text) log "the_index: " & the_index return the_index end if end choose_row_value_index (* * Returns column_key from a row_value * TODO: explain better *) on column_key(file_path, table_name, the_row, the_row_value) set row_items to items of TextParser's split(the_row as text, "|") set index_of_row_value to ListParser's index_of(row_items, the_row_value as text) log "index_of_row_value: " & index_of_row_value set column_names to SQLiteParser's column_names(file_path, table_name) log "column_names: " & column_names set the_column_key to item (index_of_row_value - 1) of column_names --we subtract 1 because _rowid_ isnt included in the columntNames array log "the_column_key: " & the_column_key return the_column_key end column_key (* * TODO: explain better * probably returns a list of chosen col key's *) on column_keys(file_path, table_name, the_row, row_values) log "column_keys()" set row_items to items of TextParser's split(the_row as text, "|") set indices_of_the_row_values to ListParser's indices(row_items, row_values) log "indices_of_the_row_values: " & indices_of_the_row_values set the_column_keys to {"id"} & SQLiteParser's column_names(file_path, table_name) log "the_column_keys: " & the_column_keys set the_selected_column_keys to ListParser's items_at(the_column_keys, indices_of_the_row_values) log "the_selected_column_keys:" & the_selected_column_keys return the_selected_column_keys end column_keys (* * Returns the row id from a row * TODO: explain better *) on row_id(the_row) set row_items to items of TextParser's split(the_row as text, "|") set the_row_id to first item of row_items --the first item is always the _rowid_ log "the_row_id: " & the_row_id return the_row_id end row_id
oeis/130/A130093.asm
neoneye/loda-programs
11
5544
; A130093: A051731 * a lower triangular matrix with A036987 on the main diagonal and the rest zeros. ; Submitted by <NAME> ; 1,1,1,1,0,0,1,1,0,1,1,0,0,0,0,1,1,0,0,0,0,1,0,0,0,0,0,0,1,1,0,1,0,0,0,1,1,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0 lpb $0 add $1,1 sub $0,$1 lpe bin $1,$0 mov $2,$0 mul $0,2 bin $0,$2 mul $1,$0 add $2,1 div $1,$2 mov $0,$1 mod $0,2
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/specs/double_record_extension2.ads
best08618/asylo
7
13734
-- { dg-do compile } package double_record_extension2 is type Base_Message_Type (Num_Bytes : Positive) is tagged record Data_Block : String (1..Num_Bytes); end record; type Extended_Message_Type (Num_Bytes1 : Positive; Num_Bytes2 : Positive) is new Base_Message_Type (Num_Bytes1) with record A: String (1..Num_Bytes2); end record; type Final_Message_Type is new Extended_Message_Type with record B : Integer; end record; end double_record_extension2;
source/league/ucd/matreshka-internals-unicode-ucd-core_001d.ads
svn2github/matreshka
24
2083
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- Localization, Internationalization, Globalization for Ada -- -- -- -- Runtime Library Component -- -- -- ------------------------------------------------------------------------------ -- -- -- Copyright © 2012-2015, <NAME> <<EMAIL>> -- -- All rights reserved. -- -- -- -- Redistribution and use in source and binary forms, with or without -- -- modification, are permitted provided that the following conditions -- -- are met: -- -- -- -- * Redistributions of source code must retain the above copyright -- -- notice, this list of conditions and the following disclaimer. -- -- -- -- * Redistributions in binary form must reproduce the above copyright -- -- notice, this list of conditions and the following disclaimer in the -- -- documentation and/or other materials provided with the distribution. -- -- -- -- * Neither the name of the Vadim Godunko, IE nor the names of its -- -- contributors may be used to endorse or promote products derived from -- -- this software without specific prior written permission. -- -- -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- -- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -- -- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -- -- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -- -- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED -- -- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -- -- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -- -- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -- -- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -- -- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- -- -- ------------------------------------------------------------------------------ -- $Revision$ $Date$ ------------------------------------------------------------------------------ pragma Restrictions (No_Elaboration_Code); -- GNAT: enforce generation of preinitialized data section instead of -- generation of elaboration code. package Matreshka.Internals.Unicode.Ucd.Core_001D is pragma Preelaborate; Group_001D : aliased constant Core_Second_Stage := (16#2C# .. 16#2E# => -- 1D2C .. 1D2E (Modifier_Letter, Neutral, Other, A_Letter, Lower, Alphabetic, (Diacritic | Other_Lowercase | Alphabetic | Cased | Case_Ignorable | Grapheme_Base | ID_Continue | ID_Start | Lowercase | XID_Continue | XID_Start | Changes_When_NFKC_Casefolded => True, others => False)), 16#2F# => -- 1D2F (Modifier_Letter, Neutral, Other, A_Letter, Lower, Alphabetic, (Diacritic | Other_Lowercase | Alphabetic | Cased | Case_Ignorable | Grapheme_Base | ID_Continue | ID_Start | Lowercase | XID_Continue | XID_Start => True, others => False)), 16#30# .. 16#3A# => -- 1D30 .. 1D3A (Modifier_Letter, Neutral, Other, A_Letter, Lower, Alphabetic, (Diacritic | Other_Lowercase | Alphabetic | Cased | Case_Ignorable | Grapheme_Base | ID_Continue | ID_Start | Lowercase | XID_Continue | XID_Start | Changes_When_NFKC_Casefolded => True, others => False)), 16#3B# => -- 1D3B (Modifier_Letter, Neutral, Other, A_Letter, Lower, Alphabetic, (Diacritic | Other_Lowercase | Alphabetic | Cased | Case_Ignorable | Grapheme_Base | ID_Continue | ID_Start | Lowercase | XID_Continue | XID_Start => True, others => False)), 16#3C# .. 16#4D# => -- 1D3C .. 1D4D (Modifier_Letter, Neutral, Other, A_Letter, Lower, Alphabetic, (Diacritic | Other_Lowercase | Alphabetic | Cased | Case_Ignorable | Grapheme_Base | ID_Continue | ID_Start | Lowercase | XID_Continue | XID_Start | Changes_When_NFKC_Casefolded => True, others => False)), 16#4E# => -- 1D4E (Modifier_Letter, Neutral, Other, A_Letter, Lower, Alphabetic, (Diacritic | Other_Lowercase | Alphabetic | Cased | Case_Ignorable | Grapheme_Base | ID_Continue | ID_Start | Lowercase | XID_Continue | XID_Start => True, others => False)), 16#4F# .. 16#61# => -- 1D4F .. 1D61 (Modifier_Letter, Neutral, Other, A_Letter, Lower, Alphabetic, (Diacritic | Other_Lowercase | Alphabetic | Cased | Case_Ignorable | Grapheme_Base | ID_Continue | ID_Start | Lowercase | XID_Continue | XID_Start | Changes_When_NFKC_Casefolded => True, others => False)), 16#62# => -- 1D62 (Modifier_Letter, Neutral, Other, A_Letter, Lower, Alphabetic, (Diacritic | Other_Lowercase | Soft_Dotted | Alphabetic | Cased | Case_Ignorable | Grapheme_Base | ID_Continue | ID_Start | Lowercase | XID_Continue | XID_Start | Changes_When_NFKC_Casefolded => True, others => False)), 16#63# .. 16#6A# => -- 1D63 .. 1D6A (Modifier_Letter, Neutral, Other, A_Letter, Lower, Alphabetic, (Diacritic | Other_Lowercase | Alphabetic | Cased | Case_Ignorable | Grapheme_Base | ID_Continue | ID_Start | Lowercase | XID_Continue | XID_Start | Changes_When_NFKC_Casefolded => True, others => False)), 16#78# => -- 1D78 (Modifier_Letter, Neutral, Other, A_Letter, Lower, Alphabetic, (Other_Lowercase | Alphabetic | Cased | Case_Ignorable | Grapheme_Base | ID_Continue | ID_Start | Lowercase | XID_Continue | XID_Start | Changes_When_NFKC_Casefolded => True, others => False)), 16#79# => -- 1D79 (Lowercase_Letter, Neutral, Other, A_Letter, Lower, Alphabetic, (Alphabetic | Cased | Changes_When_Uppercased | Changes_When_Titlecased | Changes_When_Casemapped | Grapheme_Base | ID_Continue | ID_Start | Lowercase | XID_Continue | XID_Start => True, others => False)), 16#7D# => -- 1D7D (Lowercase_Letter, Neutral, Other, A_Letter, Lower, Alphabetic, (Alphabetic | Cased | Changes_When_Uppercased | Changes_When_Titlecased | Changes_When_Casemapped | Grapheme_Base | ID_Continue | ID_Start | Lowercase | XID_Continue | XID_Start => True, others => False)), 16#96# => -- 1D96 (Lowercase_Letter, Neutral, Other, A_Letter, Lower, Alphabetic, (Soft_Dotted | Alphabetic | Cased | Grapheme_Base | ID_Continue | ID_Start | Lowercase | XID_Continue | XID_Start => True, others => False)), 16#9B# .. 16#A3# => -- 1D9B .. 1DA3 (Modifier_Letter, Neutral, Other, A_Letter, Lower, Alphabetic, (Other_Lowercase | Alphabetic | Cased | Case_Ignorable | Grapheme_Base | ID_Continue | ID_Start | Lowercase | XID_Continue | XID_Start | Changes_When_NFKC_Casefolded => True, others => False)), 16#A4# => -- 1DA4 (Modifier_Letter, Neutral, Other, A_Letter, Lower, Alphabetic, (Other_Lowercase | Soft_Dotted | Alphabetic | Cased | Case_Ignorable | Grapheme_Base | ID_Continue | ID_Start | Lowercase | XID_Continue | XID_Start | Changes_When_NFKC_Casefolded => True, others => False)), 16#A5# .. 16#A7# => -- 1DA5 .. 1DA7 (Modifier_Letter, Neutral, Other, A_Letter, Lower, Alphabetic, (Other_Lowercase | Alphabetic | Cased | Case_Ignorable | Grapheme_Base | ID_Continue | ID_Start | Lowercase | XID_Continue | XID_Start | Changes_When_NFKC_Casefolded => True, others => False)), 16#A8# => -- 1DA8 (Modifier_Letter, Neutral, Other, A_Letter, Lower, Alphabetic, (Other_Lowercase | Soft_Dotted | Alphabetic | Cased | Case_Ignorable | Grapheme_Base | ID_Continue | ID_Start | Lowercase | XID_Continue | XID_Start | Changes_When_NFKC_Casefolded => True, others => False)), 16#A9# .. 16#BF# => -- 1DA9 .. 1DBF (Modifier_Letter, Neutral, Other, A_Letter, Lower, Alphabetic, (Other_Lowercase | Alphabetic | Cased | Case_Ignorable | Grapheme_Base | ID_Continue | ID_Start | Lowercase | XID_Continue | XID_Start | Changes_When_NFKC_Casefolded => True, others => False)), 16#C0# .. 16#C3# => -- 1DC0 .. 1DC3 (Nonspacing_Mark, Neutral, Extend, Extend, Extend, Combining_Mark, (Case_Ignorable | Grapheme_Extend | ID_Continue | XID_Continue => True, others => False)), 16#C4# .. 16#CF# => -- 1DC4 .. 1DCF (Nonspacing_Mark, Neutral, Extend, Extend, Extend, Combining_Mark, (Diacritic | Case_Ignorable | Grapheme_Extend | ID_Continue | XID_Continue => True, others => False)), 16#D0# .. 16#E6# => -- 1DD0 .. 1DE6 (Nonspacing_Mark, Neutral, Extend, Extend, Extend, Combining_Mark, (Case_Ignorable | Grapheme_Extend | ID_Continue | XID_Continue => True, others => False)), 16#E7# .. 16#F4# => -- 1DE7 .. 1DF4 (Nonspacing_Mark, Neutral, Extend, Extend, Extend, Combining_Mark, (Other_Alphabetic | Alphabetic | Case_Ignorable | Grapheme_Extend | ID_Continue | XID_Continue => True, others => False)), 16#F5# => -- 1DF5 (Nonspacing_Mark, Neutral, Extend, Extend, Extend, Combining_Mark, (Diacritic | Case_Ignorable | Grapheme_Extend | ID_Continue | XID_Continue => True, others => False)), 16#F6# .. 16#FB# => -- 1DF6 .. 1DFB (Unassigned, Neutral, Other, Other, Other, Unknown, (others => False)), 16#FC# => -- 1DFC (Nonspacing_Mark, Neutral, Extend, Extend, Extend, Combining_Mark, (Case_Ignorable | Grapheme_Extend | ID_Continue | XID_Continue => True, others => False)), 16#FD# .. 16#FF# => -- 1DFD .. 1DFF (Nonspacing_Mark, Neutral, Extend, Extend, Extend, Combining_Mark, (Diacritic | Case_Ignorable | Grapheme_Extend | ID_Continue | XID_Continue => True, others => False)), others => (Lowercase_Letter, Neutral, Other, A_Letter, Lower, Alphabetic, (Alphabetic | Cased | Grapheme_Base | ID_Continue | ID_Start | Lowercase | XID_Continue | XID_Start => True, others => False))); end Matreshka.Internals.Unicode.Ucd.Core_001D;
Palmtree.Math.Core.Sint/vs_build/x86_Release/pmc_initialize.asm
rougemeilland/Palmtree.Math.Core.Sint
0
81313
<reponame>rougemeilland/Palmtree.Math.Core.Sint<filename>Palmtree.Math.Core.Sint/vs_build/x86_Release/pmc_initialize.asm ; Listing generated by Microsoft (R) Optimizing Compiler Version 19.16.27026.1 TITLE z:\sources\lunor\repos\rougemeilland\palmtree.math.core.sint\palmtree.math.core.sint\pmc_initialize.c .686P .XMM include listing.inc .model flat INCLUDELIB OLDNAMES PUBLIC ??_C@_0BM@ONKLCLPJ@Palmtree?4Math?4Core?4Uint?4dll@ ; `string' PUBLIC ??_C@_0BE@LMKJAMNH@PMC_UINT_Initialize@ ; `string' EXTRN __imp__FreeLibrary@4:PROC EXTRN __imp__GetProcAddress@8:PROC EXTRN __imp__LoadLibraryA@4:PROC COMM _ep_uint:BYTE:011cH _DATA ENDS ; COMDAT ??_C@_0BE@LMKJAMNH@PMC_UINT_Initialize@ CONST SEGMENT ??_C@_0BE@LMKJAMNH@PMC_UINT_Initialize@ DB 'PMC_UINT_Initialize', 00H ; `string' CONST ENDS ; COMDAT ??_C@_0BM@ONKLCLPJ@Palmtree?4Math?4Core?4Uint?4dll@ CONST SEGMENT ??_C@_0BM@ONKLCLPJ@Palmtree?4Math?4Core?4Uint?4dll@ DB 'Palmtree.Math.Cor' DB 'e.Uint.dll', 00H ; `string' CONST ENDS PUBLIC _PMC_SINT_Initialize@4 _entry_points DB 0210H DUP (?) _initialized DD 01H DUP (?) _hLib_UINT DD 01H DUP (?) _fp_PMC_UINT_Initialize DD 01H DUP (?) _BSS ENDS END
data/pokemon/base_stats/hoenn/spinda.asm
Dev727/ancientplatinum
0
6784
<gh_stars>0 db 0 ; 327 DEX NO db 60, 60, 60, 60, 60, 60 ; hp atk def spd sat sdf db NORMAL, NORMAL ; type db 255 ; catch rate db 85 ; base exp db NO_ITEM, NO_ITEM ; items db GENDER_F50 ; gender ratio db 100 ; unknown 1 db 15 ; step cycles to hatch db 5 ; unknown 2 INCBIN "gfx/pokemon/hoenn/spinda/front.dimensions" db 0, 0, 0, 0 ; padding db GROWTH_FAST ; growth rate dn EGG_GROUND, EGG_HUMANSHAPE ; egg groups ; tm/hm learnset tmhm ; end
KongRender.asm
HonkeyKong/libKong
1
163359
<gh_stars>1-10 ; Subroutines for rendering blank tiles and rows. ; This helps to compress 1K nametables down to ; smaller procedurally-generated maps. ; Basically a lousy version of RLE (Run-Length Encoding) ; that only handles blank space, but even this can improve ; data sizes dramatically in certain scenarios. WriteBlankRows: TYA ; Transfer Y to Accumulator. PHA ; PusH Accumulator to stack. LDY #$00 ; Clear Y for row counter. * LDA #$20 ; Load 32 into Accumulator STA BlankTiles ; Tell the function to write 32 tiles. JSR WriteBlankTiles ; Write the blank tiles. INY ; Increment the row counter. CPY BlankRows ; Compare Y to blank row total. BNE - ; Repeat if not equal. LDA #$00 ; Clear the Accumulator. STA BlankRows ; Zero out blank rows. PLA ; PuLl Accumulator from stack. TAY ; Transfer Accumulator to Y. (Restore Y) RTS WriteBlankTiles: TXA ; Transfer X to Accumulator. PHA ; Push Accumulator to stack. LDX #$00 ; Clear X for column counter. * LDA #$00 ; Load #$00 (blank tile index) STA VRAMIO ; Write to VRAM I/O register. INX ; Increment X. CPX BlankTiles ; Compare X to blank tile total. BNE - ; Branch up if not equal. LDA #$00 ; Clear accumulator. STA BlankTiles ; Reset blank tile counter. PLA ; Pull Accumulator from stack. TAX ; Transfer A to X. (Restore X) RTS RenderNameTable: ; X = Low byte, Y = High byte. A = NT0, NT1, NT2, or NT3 STX MapAddr STY MapAddr+1 PHA ; Push the upper nametable byte into the stack. LDA PPUStatus ; Reset the PPU latch. PLA ; Pull it back from the stack. STA VRAMAddr ; Store in VRAM Address register. LDA #$00 ; Set the lower byte. STA VRAMAddr ; Store just like the upper byte. LDY #$00 ; Clear low byte counter LDX #$04 ; Set loop counter (256 x 4 = 1024, 1 kilobyte) * LDA (MapAddr), Y ; Load nametable byte at MapAddr, incremented by Y STA VRAMIO ; Write byte through VRAM I/O register. INY ; Increment low byte counter CPY #$FF ; Have we written 256 bytes yet? (8-bit limit) BNE - ; If not, loop back. INC MapAddr+1 ; If so, increment high byte of map address DEX ; Decrease loop counter. CPX #$00 ; Are there any loops left? BNE - ; If so, start writing VRAM again. RTS ; If not, we're all done. Return. ClearAttribute: ; A = AT0, AT1, AT2, or AT3 PHA ; PusH Accumulator into stack. LDA PPUStatus ; Latch the PPU PLA ; PulL Accumulator from stack. STA VRAMAddr ; Store in VRAM Address Register LDA #$00 ; Load that lower byte. LDX #$00 ; Zero out X to use as a counter. STA VRAMAddr ; Store it in VRAM Address too. * STA VRAMIO ; Then store it in VRAM IO to clear it. INX ; Increment our counter. CPX #$40 ; Check against #$40 (64) BNE - ; Branch up if Not Equal RTS ; ReTurn from Subroutine
test/Fail/PruneBadRigidDef.agda
shlevy/agda
1,989
12345
<gh_stars>1000+ -- 2014-05-26 Andrea & Andreas -- hasBadRigids (in pruning) should reduce term before checking. open import Common.Equality postulate Fence : Set → Set id : ∀{a}{A : Set a}(x : A) → A id x = x test : let H : Set; H = _; M : Set → Set; M = _ in (A : Set) → H ≡ Fence (M (id A)) test A = refl -- Expected output: -- M remains unsolved, -- but H is solved by pruning the argument of M!
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/addr3.adb
best08618/asylo
7
7176
<reponame>best08618/asylo<gh_stars>1-10 -- { dg-do compile } with text_io; with System; procedure addr3 is Type T_SAME_TYPE is new System.Address; Type T_OTHER_TYPE is new System.Address; I : constant integer := 0; procedure dum ( i : INTEGER ) is begin text_io.put_line ("Integer op"); null; end; procedure dum ( i : system.ADDRESS ) is begin null; end; procedure dum ( i : T_SAME_TYPE ) is begin null; end; procedure dum ( i : T_OTHER_TYPE ) is begin null; end; begin dum( I ); dum( 1 ); end;
memsim-master/src/memory-arbiter.adb
strenkml/EE368
0
13371
with Ada.Assertions; use Ada.Assertions; package body Memory.Arbiter is function Create_Arbiter(next : access Memory_Type'Class) return Arbiter_Pointer is result : constant Arbiter_Pointer := new Arbiter_Type; begin Set_Memory(result.all, next); return result; end Create_Arbiter; function Clone(mem : Arbiter_Type) return Memory_Pointer is result : constant Arbiter_Pointer := new Arbiter_Type'(mem); begin return Memory_Pointer(result); end Clone; procedure Reset(mem : in out Arbiter_Type; context : in Natural) is begin Reset(Container_Type(mem), context); end Reset; procedure Set_Port(mem : in out Arbiter_Type; port : in Natural; ready : out Boolean) is begin mem.port := port; ready := True; end Set_Port; function Get_Next_Time(mem : Arbiter_Type) return Time_Type is begin if mem.port > mem.pending.Last_Index then return 0; else return mem.pending.Element(mem.port); end if; end Get_Next_Time; procedure Read(mem : in out Arbiter_Type; address : in Address_Type; size : in Positive) is begin Read(Container_Type(mem), address, size); end Read; procedure Write(mem : in out Arbiter_Type; address : in Address_Type; size : in Positive) is begin Write(Container_Type(mem), address, size); end Write; procedure Idle(mem : in out Arbiter_Type; cycles : in Time_Type) is begin Assert(False, "Memory.Arbiter.Idle not implemented"); end Idle; function To_String(mem : Arbiter_Type) return Unbounded_String is result : Unbounded_String; begin Append(result, "(arbiter "); Append(result, "(memory "); Append(result, To_String(Get_Memory(mem).all)); Append(result, ")"); Append(result, ")"); return result; end To_String; end Memory.Arbiter;
src/regex-state_machines.adb
skordal/ada-regex
2
14810
<reponame>skordal/ada-regex<filename>src/regex-state_machines.adb -- Ada regular expression library -- (c) <NAME> 2020 <<EMAIL>> -- Report bugs and issues on <https://github.com/skordal/ada-regex> with Ada.Unchecked_Deallocation; package body Regex.State_Machines is use Regex.Syntax_Trees; function Clone (Object : in Input_Symbol_Access) return Input_Symbol_Access is New_Object : constant Input_Symbol_Access := new Input_Symbol (Symbol_Type => Object.Symbol_Type); begin New_Object.all := Object.all; return New_Object; end Clone; function Compare_Input_Symbols (Left, Right : in Input_Symbol_Access) return Boolean is begin case Left.Symbol_Type is when Single_Character => if Right.Symbol_Type = Single_Character then return Left.Char < Right.Char; else return True; end if; when Any_Character => return False; end case; end Compare_Input_Symbols; function Input_Symbol_Equals (Left, Right : in Input_Symbol_Access) return Boolean is begin return Left.all = Right.all; end Input_Symbol_Equals; function "<" (Left, Right : in State_Machine_Transition) return Boolean is begin return Compare_Input_Symbols (Left.Transition_On, Right.Transition_On); end "<"; function "=" (Left, Right : in State_Machine_Transition) return Boolean is begin return Input_Symbol_Equals (Left.Transition_On, Right.Transition_On) and Left.Target_State = Right.Target_State; end "="; function Create_Transition_On_Symbol (Input_Symbol : in Input_Symbol_Access; Target_State : in State_Machine_State_Access) return State_Machine_Transition is begin return Retval : State_Machine_Transition do Retval.Transition_On := Input_Symbol; Retval.Target_State := Target_State; end return; end Create_Transition_On_Symbol; procedure Adjust (This : in out State_Machine_Transition) is pragma Assert (This.Transition_On /= null); New_Input_Symbol : constant Input_Symbol_Access := new Input_Symbol ( Symbol_Type => This.Transition_On.Symbol_Type); begin New_Input_Symbol.all := This.Transition_On.all; This.Transition_On := New_Input_Symbol; end Adjust; procedure Finalize (This : in out State_Machine_Transition) is procedure Free is new Ada.Unchecked_Deallocation (Input_Symbol, Input_Symbol_Access); begin Free (This.Transition_On); end Finalize; function Create_State (Syntax_Tree_Nodes : in Syntax_Tree_Node_Sets.Sorted_Set) return State_Machine_State_Access is Retval : constant State_Machine_State_Access := new State_Machine_State'( Syntax_Tree_Nodes => Syntax_Tree_Nodes, Transitions => State_Machine_Transition_Vectors.Empty_Vector, Acceptance_Id => 0, others => False); begin return Retval; end Create_State; end Regex.State_Machines;
smsq/sbas/ermess.asm
olifink/smsqe
0
95408
; SuperBASIC error messages section sbas xdef sb_ermess xdef sb_ernimp include 'dev8_keys_err' include 'dev8_keys_err4' sb_ernimp moveq #err.nimp,d0 rts sb_ermess move.l #err4.fatl,d0 rts end
src/open_weather_map-configuration.ads
Jellix/open_weather_map_api
1
25018
-------------------------------------------------------------------------------- -- Copyright (C) 2020 by Heisenbug Ltd. (<EMAIL>) -- -- This work is free. You can redistribute it and/or modify it under the -- terms of the Do What The Fuck You Want To Public License, Version 2, -- as published by Sam Hocevar. See the LICENSE file for more details. -------------------------------------------------------------------------------- pragma License (Unrestricted); with GNATCOLL.JSON; -------------------------------------------------------------------------------- --% @summary --% Open_Weather_Map.Configuration -- --% @description --% Provides a configuration object to be used throughout the API to configure --% certain connection and API related parameters. -------------------------------------------------------------------------------- package Open_Weather_Map.Configuration is type T is tagged limited private; --% Configuration object. -- --% Reads a JSON file from the application specific directory and stores the --% data. Data can be retrieved by a call to the Configuration_Data method. subtype Configuration_Values is GNATCOLL.JSON.JSON_Value; --% Convenience rename for the returned configuration object. --------------------------------------------------------------------------- -- Initialize --------------------------------------------------------------------------- procedure Initialize (Self : out T); --% Initializes the configuration object. -- This is a rather heavy operation as it tries to read a file in JSON -- format and stores its contents internally. -- --% @param Self --% The instance of the configriation object to initialize. --------------------------------------------------------------------------- -- Values --------------------------------------------------------------------------- function Values (Self : in T) return Configuration_Values with Inline => True; --% Returns the configuration data associated with the configuration file --% read when the object was initialized. -- --% @param Self --% The instance of the configuration object. -- --% @return --% The configuration data stored in the configuration object. private type T is tagged limited record Config : Configuration_Values; --% @field Config --% The configuration data (JSON value). end record; --------------------------------------------------------------------------- -- Read_Config -- --% Reads configuration from given JSON file. -- --% @param Self --% Instance of the object the configuration shall be read into. -- --% @param From_File --% Name of the file the configuration data shall be read from. --------------------------------------------------------------------------- procedure Read_Config (Self : in out T; From_File : in String); --------------------------------------------------------------------------- -- Values --------------------------------------------------------------------------- function Values (Self : in T) return Configuration_Values is (Self.Config); end Open_Weather_Map.Configuration;
app/libuos/syscall.asm
USN484259/COFUOS
1
173648
[bits 64] global syscall section .text syscall: mov rax,rcx syscall mov cx,ss mov ds,cx mov es,cx ret
workflow/storage.applescript
thepratik/alfred4-youtube-control
0
2671
on init(bundleid, filename) script Storage property class : "storage" property db : missing value on run {} set dbpath to POSIX path of (path to home folder) &¬ "Library/Application Support/Alfred/Workflow Data/" & bundleid if not file_exists(dbpath) then¬ do shell script "mkdir " & (quoted form of dbpath) set my db to dbpath & "/" & filename return me end run on set_value(k, v) ensure_db() tell application "System Events" set f to property list file db make new property list item at the end of¬ property list items of contents of f¬ with properties { kind:(class of v), name:k, value:v } end tell end set_value on get_value(k) tell application "System Events" set f to property list file db return value of property list item k of contents of f end tell end get_value on ensure_db() if file_exists(db) is false then¬ do shell script "defaults write " & (quoted form of db) & " default 1" end ensure_db end script return run script Storage end init on file_exists(p) try get POSIX file p as alias return true on error return false end try end file_exists
timid/timidrem.asm
tommarcoen/viruses
0
162963
<reponame>tommarcoen/viruses<gh_stars>0 ;==================================================================; ; ; ; TIMIDREM.ASM ; ;__________________________________________________________________; ; ; ; Written by <NAME> ; ;__________________________________________________________________; ; ; ; This program scans all COM files on the computer and removes the ; ; TIMID virus from them, should the file be infected. ; ; ; ;==================================================================; ; This program uses the simplified segment directives (see the MASM ; Programmer's Guide, pp. 33-37. Specifically, the tiny model ; produces MS-DOS .COM files. .MODEL TINY ; This is the start of the code segment. The .STARTUP directive ; eliminates the need for the ORG statement. .CODE .STARTUP ; Find all files and fix them. CALL FIND_COM_FILE FIX_FILES: CALL FIX_FILE CALL FIND_NEXT_FILE JNZ FIX_FILES ; The .EXIT directive accepts a 1-byte exit code as its optional ; argument. It generates the following code that returns control to ; MS-DOS. ; MOV AL,value ; MOV AH,4C ; INT 21 ; If the program does not specify a return value, .EXIT returns ; whatever value happens to be in AL. .EXIT 0 ; This is the start of the data segment. .DATA ; Close remaining segments. END
programs/oeis/304/A304517.asm
neoneye/loda
22
13474
; A304517: a(n) = 16*2^n - 11 (n>=1). ; 21,53,117,245,501,1013,2037,4085,8181,16373,32757,65525,131061,262133,524277,1048565,2097141,4194293,8388597,16777205,33554421,67108853,134217717,268435445,536870901,1073741813,2147483637,4294967285,8589934581,17179869173,34359738357,68719476725,137438953461,274877906933,549755813877,1099511627765,2199023255541,4398046511093,8796093022197,17592186044405,35184372088821,70368744177653,140737488355317,281474976710645,562949953421301,1125899906842613,2251799813685237,4503599627370485,9007199254740981,18014398509481973,36028797018963957,72057594037927925,144115188075855861,288230376151711733,576460752303423477,1152921504606846965,2305843009213693941,4611686018427387893,9223372036854775797,18446744073709551605,36893488147419103221,73786976294838206453,147573952589676412917,295147905179352825845,590295810358705651701,1180591620717411303413,2361183241434822606837,4722366482869645213685,9444732965739290427381,18889465931478580854773,37778931862957161709557,75557863725914323419125,151115727451828646838261,302231454903657293676533,604462909807314587353077,1208925819614629174706165,2417851639229258349412341,4835703278458516698824693,9671406556917033397649397,19342813113834066795298805,38685626227668133590597621,77371252455336267181195253,154742504910672534362390517,309485009821345068724781045,618970019642690137449562101,1237940039285380274899124213,2475880078570760549798248437,4951760157141521099596496885,9903520314283042199192993781,19807040628566084398385987573,39614081257132168796771975157,79228162514264337593543950325,158456325028528675187087900661,316912650057057350374175801333,633825300114114700748351602677,1267650600228229401496703205365,2535301200456458802993406410741,5070602400912917605986812821493,10141204801825835211973625642997,20282409603651670423947251286005 add $0,5 mov $1,2 pow $1,$0 sub $1,11 mov $0,$1
alloy4fun_models/trashltl/models/8/ZkKNhXF4agkJ7rhaz.als
Kaixi26/org.alloytools.alloy
0
4996
<gh_stars>0 open main pred idZkKNhXF4agkJ7rhaz_prop9 { all f: File | always(f not in Trash) since f in Protected } pred __repair { idZkKNhXF4agkJ7rhaz_prop9 } check __repair { idZkKNhXF4agkJ7rhaz_prop9 <=> prop9o }
src/app/run_spat-print_suggestion.adb
HeisenbugLtd/spat
20
12476
------------------------------------------------------------------------------ -- Copyright (C) 2020 by Heisenbug Ltd. (<EMAIL>) -- -- This work is free. You can redistribute it and/or modify it under the -- terms of the Do What The Fuck You Want To Public License, Version 2, -- as published by Sam Hocevar. See the LICENSE file for more details. ------------------------------------------------------------------------------ pragma License (Unrestricted); ------------------------------------------------------------------------------ -- -- SPARK Proof Analysis Tool -- -- S.P.A.T. - Main program - separate Print_Suggestion -- ------------------------------------------------------------------------------ with Ada.Strings.Fixed; with SPAT.Log; with SPAT.Spark_Info.Heuristics; with SPAT.Strings; separate (Run_SPAT) ------------------------------------------------------------------------------ -- Print_Suggestion ------------------------------------------------------------------------------ procedure Print_Suggestion (Info : in SPAT.Spark_Info.T; File_Map : in SPAT.GPR_Support.SPARK_Source_Maps.Map) is Indent : constant String := " "; Results : SPAT.Spark_Info.Heuristics.File_Vectors.Vector; use type SPAT.Spark_Info.Heuristics.Prover_Vectors.Cursor; begin SPAT.Log.Warning (Message => "You requested a suggested prover configuration."); SPAT.Log.Warning (Message => "This feature is highly experimental."); SPAT.Log.Warning (Message => "Please consult the documentation."); Results := SPAT.Spark_Info.Heuristics.Find_Optimum (Info => Info, File_Map => File_Map); SPAT.Log.Message (Message => ""); SPAT.Log.Message (Message => "package Prove is"); For_Each_File : for File of Results loop Find_Minima : declare Min_Steps : SPAT.Prover_Steps := 0; Min_Timeout : Duration := 0.0; begin if not File.Provers.Is_Empty then SPAT.Log.Message (Message => Indent & "for Proof_Switches (""" & SPAT.To_String (Source => File.Name) & """) use (""", New_Line => False); SPAT.Log.Message (Message => "--prover=", New_Line => False); For_Each_Prover : for Prover in File.Provers.Iterate loop Min_Steps := SPAT.Prover_Steps'Max (File.Provers (Prover).Workload.Max_Success.Steps, Min_Steps); Min_Timeout := Duration'Max (File.Provers (Prover).Workload.Max_Success.Time, Min_Timeout); SPAT.Log.Message (Message => SPAT.To_String (File.Provers (Prover).Name), New_Line => False); if Prover /= File.Provers.Last then SPAT.Log.Message (Message => ",", New_Line => False); end if; end loop For_Each_Prover; SPAT.Log.Message (Message => """, ", New_Line => False); SPAT.Log.Message (Message => """--steps=" & Ada.Strings.Fixed.Trim (Source => Min_Steps'Image, Side => Ada.Strings.Both) & """", New_Line => False); SPAT.Log.Message (Message => ", ", New_Line => False); SPAT.Log.Message (Message => """--timeout=" & Ada.Strings.Fixed.Trim (Source => Integer'Image (Integer (Min_Timeout + 0.5)), Side => Ada.Strings.Both) & """", New_Line => False); SPAT.Log.Message (Message => ");"); else SPAT.Log.Message (Message => Indent & "-- """ & SPAT.To_String (Source => File.Name) & """ -- no data found."); end if; end Find_Minima; end loop For_Each_File; SPAT.Log.Message (Message => "end Prove;"); SPAT.Log.Message (Message => ""); end Print_Suggestion;
test/Fail/Issue3403.agda
cruhland/agda
1,989
5842
<reponame>cruhland/agda<filename>test/Fail/Issue3403.agda -- Andreas, 2018-11-23, issue #3304, report and test case by Nisse open import Agda.Builtin.Equality open import Agda.Builtin.Sigma map : {A B : Set} {P : A → Set} {Q : B → Set} → (f : A → B) → (∀ {x} → P x → Q (f x)) → Σ A P → Σ B Q map f g (x , y) = (f x , g y) postulate F : Set → Set → Set apply : {A B : Set} → F A B → A → B construct : {A B : Set} → (A → B) → F A B A : Set B : A → Set f : A → A g : ∀ {x} → B x → B (f x) mutual k : Σ A B → Σ A _ k = map f g h : F (Σ A B) (Σ A B) h = construct k P : ∀ {x y} → k x ≡ k y → Set₁ P refl = Set -- WAS: internal error in -- TypeChecking.Rules.Term.catchIlltypedPatternBlockedOnMeta -- -- EXPECTED: -- I'm not sure if there should be a case for the constructor refl, -- because I get stuck when trying to solve the following unification -- problems (inferred index ≟ expected index): -- k x ≟ k y -- when checking that the pattern refl has type k x ≡ k y
Task/Flow-control-structures/Ada/flow-control-structures-1.ada
LaudateCorpus1/RosettaCodeData
1
23553
<filename>Task/Flow-control-structures/Ada/flow-control-structures-1.ada <<Top>> Put_Line("Hello, World"); goto Top;
konz/konz2/Sor/demo.adb
balintsoos/LearnAda
0
19468
with sor; with Ada.Text_IO; use Ada.Text_IO; --use sor; -> you can't do this because it's a generic procedure demo is procedure alma(A : integer) is begin Put_Line(Integer'image(A)); end alma; procedure korte(A : Character) is begin Put_Line(Character'image(A)); end korte; function fele(i : Integer) return Integer is begin return i / 2; end fele; package sorom is new sor(Integer, alma); package sorom2 is new sor(Character, korte); procedure peldany is new sorom.feltetelesKiiras(fele); a: sorom.sora(10); b: sorom2.sora(10); begin sorom.push(a, 100); sorom.push(a, 342); sorom.pop(a); sorom.push(a, 1); sorom.kiir(a); peldany(a); sorom2.push(b, 'a'); sorom2.push(b, 'b'); sorom2.pop(b); sorom2.kiir(b); end demo;
oeis/089/A089192.asm
neoneye/loda-programs
11
245785
; A089192: Numbers n such that 2n - 7 is a prime. ; Submitted by <NAME> ; 5,6,7,9,10,12,13,15,18,19,22,24,25,27,30,33,34,37,39,40,43,45,48,52,54,55,57,58,60,67,69,72,73,78,79,82,85,87,90,93,94,99,100,102,103,109,115,117,118,120,123,124,129,132,135,138,139,142,144,145,150,157,159,160,162,169,172,177,178,180,183,187,190,193,195,198,202,204,208,213,214,219,220,223,225,228,232,234,235,237,243,247,249,253,255,258,264,265,274,277 mov $1,2 mov $2,$0 pow $2,2 lpb $2 mov $3,$1 seq $3,10051 ; Characteristic function of primes: 1 if n is prime, else 0. sub $0,$3 add $1,2 mov $4,$0 max $4,0 cmp $4,$0 mul $2,$4 sub $2,1 lpe mov $0,$1 div $0,2 add $0,4
Omnifocus/OmniFocusDailyMaintenance.scpt
nickdominguez/Applescripts
0
1781
on run tell application "OmniFocus" set todayDate to current date set todayDate's hours to 0 set todayDate's minutes to 0 set todayDate's seconds to 0 set tomorrowDate to todayDate + 1 * days tell default document set todayTasks to (flattened tasks where (defer date ≥ todayDate and defer date < tomorrowDate)) repeat with t in todayTasks set t's flagged to true end repeat end tell end tell end run
oeis/284/A284396.asm
neoneye/loda-programs
11
94559
; A284396: Positions of 2 in A284394. ; Submitted by <NAME> ; 5,11,14,20,26,29,35,38,44,50,53,59,65,68,74,77,83,89,92,98,101,107,113,116,122,128,131,137,140,146,152,155,161,167,170,176,179,185,191,194,200,203,209,215,218,224,230,233,239,242,248,254,257,263,266,272,278,281,287,293,296,302,305,311,317,320,326,332,335,341,344,350,356,359,365,368,374,380,383,389,395,398,404,407,413,419,422,428,434,437,443,446,452,458,461,467,470,476,482,485 mov $2,$0 add $0,1 mov $1,$0 pow $1,2 lpb $1 add $2,2 trn $1,$2 lpe add $0,$2 sub $0,3 div $0,2 mul $0,3 add $0,5
test/Fail/Issue1612.agda
cruhland/agda
1,989
17203
-- Andreas, 2015-07-21 Issue 1612 -- Error "D is not strictly positive" should appear immediately. -- (There was a performance problem due to the use of Utils.Graph.....allPaths). {-# NON_TERMINATING #-} mutual data D : Set where c0 : A0 → D c1 : A1 → D c2 : A2 → D c3 : A3 → D c4 : A4 → D c5 : A5 → D c6 : A6 → D c7 : A7 → D c8 : A8 → D c9 : A9 → D A0 : Set A0 = B0 B0 : Set B0 = A0 → D A1 : Set A1 = B1 B1 : Set B1 = A1 → D A2 : Set A2 = B2 B2 : Set B2 = A2 → D A3 : Set A3 = B3 B3 : Set B3 = A3 → D A4 : Set A4 = B4 B4 : Set B4 = A4 → D A5 : Set A5 = B5 B5 : Set B5 = A5 → D A6 : Set A6 = B6 B6 : Set B6 = A6 → D A7 : Set A7 = B7 B7 : Set B7 = A7 → D A8 : Set A8 = B8 B8 : Set B8 = A8 → D A9 : Set A9 = B9 B9 : Set B9 = A9 → D
45/qb/ir/lsrules.asm
minblock/msdos
0
9585
TITLE LSRULES - functions which map opcodes to 'list-node' structs ;====================================================================== ; Module: LsRules.asm ; ; Purpose: ; Contains functions which map opcodes to their equivalent ; 'list-node' structures. See lsmain.asm for general comments. ; ; ;=======================================================================*/ include version.inc LSRULES_ASM = ON includeOnce architec includeOnce context includeOnce heap includeOnce lister includeOnce lsint includeOnce opmin includeOnce pcode includeOnce prsorw includeOnce qblist includeOnce rtps includeOnce scanner assumes CS,LIST assumes DS,DGROUP assumes SS,DGROUP assumes ES,NOTHING sBegin DATA PUBLIC psdLsIncl psdLsIncl dw 0 ;pointer to buffer filled by Lr_Include sEnd DATA sBegin LIST assumes CS,LIST subttl Literal opcode listers ;------------------------------------------------------------------ ; Literal opcode listers ;------------------------------------------------------------------ ; List rule for opcode which encodes I2 literal in high bits of opcode ListRule LrLitI2 mov ax,[opList] ;ax = opcode + high bit operand .erre OPCODE_MASK EQ 03ffh ; Assure SHR/SHR is correct mov al,ah ;al = high-bit operand * 4 shr al,1 shr al,1 ;al = high-bit operand cbw ;ax = high-bit operand push si ;preserve si xchg si,ax ;si = literal number mov ax,LIT_LINENUM*256+2 ;ah = LIT_LINENUM, al = 2 (bytes) call NewNum ;ax points to new number node(ax) pop si ;restore si jmp SHORT PushRootStg1 ListRule LrLitNum mov ax,[mpOpLsArg + bx] ;opcode's argument xchg ah,al ;al = constant value size (2, 4, or 8) ;ah = constant type ; (LIT_D2, LIT_O2, LIT_H2, ; LIT_D4, LIT_O4, LIT_H4, ; LIT_R4, LIT_R8) call NewNum ;ax points to new number node(ax) PushRootStg1: call PushRoot J0_Stg1Loop: jmp Stg1Loop ;return to outer loop ; [...] ==> [[" string "] ...] ; Note: can't be [" string "] because each expression term must ; be 1 root node. ; ListRule LrLitSD lods WORD PTR es:[si] ;ax = cbText call PushRootQStr ;push '"' str_node '"' to root stack jmp Stg1Loop ;push temp list to root as 1 node ; and return to outer loop subttl Remark related list rules ;------------------------------------------------------------------ ; Remark related list rules ;------------------------------------------------------------------ ;*************************************************************************** ; LrStRem ; Purpose: ; List the opcode opStRem(cbText, text) ; [] ==> [text REM] ; ;*************************************************************************** ListRule LrStRem call PushRootOpRw ;push "REM" node to root's stack LrStRem1: lods WORD PTR es:[si] ;ax = cbText or ax,ax je AtLeast1Spc ;brif cbText = 0 call NewEnStr ;ax = offset to new node jmp PushRootStg1 ;push node ax to root stack ; and return to outer loop ;so opStRem(0)op_Static will list as REM $STATIC and not REM$STATIC ; AtLeast1Spc: PushRootSpcStg1: call PushRootSpc jmp SHORT J0_Stg1Loop ;return to outer loop str255Include DB 11,'$INCLUDE',58d,32d,39d ; $INCLUDE: ' str255Static DB 7,'$STATIC' str255Dynamic DB 8,'$DYNAMIC' ListRule Lr_Static mov [fLsDynArrays],0 ;set static flag for AsciiSave mov ax,LISTOFFSET str255Static Lr_Static1: call NewCsStr call PushRoot jmp SHORT LrStRem1 ListRule Lr_Dynamic mov [fLsDynArrays],1 ;set static flag for AsciiSave mov ax,LISTOFFSET str255Dynamic jmp SHORT Lr_Static1 ; List opcode op_Include, which is generated for syntax: $INCLUDE: 'filename' ; If the global variable psdLsIncl is non-zero, copy include filename ; to psdLsIncl->pb and set psdLsIncl->cb. ; ListRule Lr_Include mov ax,LISTOFFSET str255Include call NewCsStr ;ax = node for ($INCLUDE ') call PushRoot lods WORD PTR es:[si] ;ax = cbText cmp [psdLsIncl],NULL je NoSdLsIncl ;es = segment of text table ;si = offset into text table to string ;ax = length of string (including terminating 0) push si push di push ax mov di,si ;es:di points to string mov cx,-1 mov al,27H ;look for terminating ' repne scasb not cx ;cx = length including ' dec cx ;cx = filename length pop ax mov di,[psdLsIncl] ;di points to destination sd mov [di.SD_cb],cx ;save length of string mov di,[di.SD_pb] ;di points to destination buffer push es push ds pop es ;es = DGROUP pop ds ;ds = text table's segment assumes DS,NOTHING rep movsb ;copy string to psdLsIncl's buffer push es push ds pop es ;es = text table's segment pop ds ;ds = DGROUP assumes DS,DGROUP pop di pop si ;si = offset into text table to string ;ax = length of string to push NoSdLsIncl: call PushString ;ax = node for consumed string operand jmp SHORT J1_Stg1Loop ;return to outer loop ListRule LrQuoteRem lods WORD PTR es:[si] ;ax = cbText (including column field) dec ax ;don't count column field dec ax push ax ;save it lods WORD PTR es:[si] ;ax = column field call NewCol ;ax = "advance to column(ax)" node call PushRoot ;list it mov al,39 ;al = ASCII code for single quote ' call PushRootChar ;list ' pop ax ;restore ax = size of string call NewEnStr ;ax = offset to new string node jmp PushRootStg1 ;push node ax to root stack ; and return to outer loop PushString2 PROC NEAR dec ax ;don't count link field dec ax inc si ;skip link field inc si PushString2 ENDP ;fall into PushString PushString PROC NEAR call NewStr ;ax = offset to new node jmp PushRoot ;make it new root of tree ;return to caller PushString ENDP ListRule LrStData call PushRootOpRw ;list DATA lods WORD PTR es:[si] ;ax = cbText (including link field) push ax ;save length dec ax ;don't count 0-terminator call PushString2 ;ax = node for consumed string operand pop ax and ax,1 ;ax = 1 if string was odd length shl ax,1 ;ax = 2 if string was odd length add si,ax ;si points beyond 0-terminator jmp SHORT J1_Stg1Loop ListRule LrReParse lods WORD PTR es:[si] ;ax = cbText (including link field) PushString2Stg1: call PushString2 ;ax = node for consumed string operand J1_Stg1Loop: jmp Stg1Loop ;return to outer loop ;List rule for SQL source lines. Special processing is needed for ;setting colLsCursor in case of error occuring within the SQL statement. subttl Control Flow Opcodes ;------------------------------------------------------------------ ; Control Flow Opcodes ;------------------------------------------------------------------ ; [...] ==> [space ELSE space ...] if single line ELSE ; [...] ==> [ELSE ...] if block ELSE ; ListRule LrStElse inc si ;skip link field inc si ListRule LrStElseNop mov [lsBosFlagsWord],0 ;reset beginning of stmt flags test [lsBolFlags],FBOL_GotIf jne GotSingleElse ;brif we've seen an IF opcode jmp LrRwSpc ;just list the ELSE GotSingleElse: ; If listing ELSE after :<spaces>, we don't have to emit a space ; before listing the ELSE reserved word, opBosSp already did. mov bx,di add bx,[bdNodes.BD_pb] ; convert offset to ptr cmp [bx + LN_type - CBLNT_CHAR],LNT_COL je NoSpc ; brif opBosSp was just listed call PushRootSpc ;emit blank before reserved word NoSpc: call PushRootOpRwSpc ;push opcode's reserved word jmp SHORT J1_Stg1Loop ;return to outer loop ; [...] ==> [END space <opcode's resword> ...] ; ListRule LrStEndDef inc si ;skip filler field operand inc si ListRule LrStEndType inc si ;skip link field operand inc si ListRule LrStEndIfBlock ListRule LrStEndSelect mov ax,ORW_END call PushRootRwSpc jmp LrRw ;list TYPE, IF, SELECT ; and return to outer loop ; [...] ==> [EXIT space <opcode's resword> ...] ; ListRule LrStExitDo ListRule LrStExitFor inc si ;consume oText operand inc si mov ax,ORW_EXIT call PushRootRwSpc jmp LrRw ;list DO or FOR ; and return to outer loop ; [exp ...] ==> [[THEN space exp space IF/ELSEIF] ...] ; IfThen PROC NEAR or [lsBolFlags],FBOL_GotIf ;set static flag for LrStElse call PushTempOpRwSpc ;push IF/ELSEIF onto temp stack call PopRootPushTemp ;move expNode from root to temp stk call PushTempSpc ;emit blank before THEN mov ax,ORW_THEN call PushTempRwSpc ;push THEN call PushList ;move temp stk to root as 1 node ret IfThen ENDP ListRule LrNoList3 inc si ;skip operand inc si ListRule LrNoList2 inc si ;skip operand inc si ListRule LrNoList1 Skip1Stg1: inc si ;skip link field inc si ListRule LrNoType ListRule LrNoList jmp SHORT J2_Stg1Loop ;return to outer loop ; [exp ...] ==> [space [THEN space exp space IF] ...] ; ListRule LrStIfBlock ListRule LrStElseIf ListRule LrStIf call IfThen ;push [[THEN space exp space IF]] jmp SHORT Skip1Stg1 ;skip operand ;return to outer loop ; [exp ...] ==> [label space [THEN space exp space IF] ...] ; ; [...] ==> [oNamLabel ...] ; ListRule LrStIfLab ListRule LrStIfLabDirect call IfThen ;push [[THEN space exp space IF]] ListRule LrStElseLab ListRule LrStElseLabDirect PushRootLabelStg1: call PushRootLabel ;consume and push <label> jmp SHORT J2_Stg1Loop ;return to outer loop ; [exp ...] ==> [label space [GOTO space exp space IF] ...] ; ListRule LrStIfGotoLab or [lsBolFlags],FBOL_GotIf ;set static flag for LrStElse call PushTempOpRwSpc ;push IF onto temp stack call PopRootPushTemp ;move expNode from root to temp stk call PushTempSpc ;emit blank before THEN mov ax,ORW_GOTO call PushTempRw call PushList ;move temp stk to root as 1 node call PushRootSpc jmp SHORT LrStElseLab ;consume and push <label> and ; return to outer loop ; [exp ...] ==> [<opcode's resword> space exp ...] ; ListRule LrEvStop ListRule LrEvOn ListRule LrEvOff call PushRootSpc ;emit blank before opcode's res word jmp LrRw ;list opcode's reserved word ; and return to outer loop ;*************************************************************************** ; LrEvGosub ; Purpose: ; List the opcode opEvGosub(label), for example: ; opLit1 opEvSignal1 opEvGosub(label) ==> ON SIGNAL(1) GOSUB label ; [exp ...] ==> [label space [GOSUB space exp space ON] ...] ; ;*************************************************************************** ListRule LrEvGosub mov ax,ORW_ON call PushTempRwSpc ;push ON call PopRootPushTemp ;move expNode from root to temp stk call PushTempSpc ;emit blank before THEN call PushTempOpRw ;push GOSUB onto temp stack call PushList ;move temp stk to root as 1 node call PushRootSpc ;emit blank before label's name jmp short PushRootModLabelStg1 ;consume and push <label> ; and return to outer loop ; [...] ==> [label space GOSUB/GOTO/RESTORE/RESUME/RETURN] ; ListRule LrRwLabel ListRule LrStGosub ListRule LrStGosubDirect ListRule LrStGoto ListRule LrStGotoDirect ListRule LrStReturn1 call PushRootOpRwSpc ;push opcode's resword jmp PushRootLabelStg1 ;consume and push <label> ; and return to outer loop ListRule LrStRunLabel ListRule LrStRestore1 call PushRootOpRwSpc ;push opcode's resword jmp short PushRootModLabelStg1 ;consume and push <label> ; and return to outer loop ; If operand is UNDEFINED, list RESUME 0 ; else list RESUME label ; ListRule LrStResume cmp WORD PTR es:[si],UNDEFINED jne LrRwLabel ;brif not RESUME 0 call PushRootOpRwSpc ;list "RESUME " Goto0: inc si ;skip operand inc si mov al,'0' call PushRootChar J2_Stg1Loop: jmp Stg1Loop ;return to outer loop ; [...] ==> [label space GOSUB space ERROR space ON] ; ListRule LrStOnError mov ax,ORW_ON call PushRootRwSpc ;push ON call PushRootOpRwSpc ;push ERROR mov ax,ORW_GOTO call PushRootRwSpc ;push GOTO PushRootModLabelStg1: cmp WORD PTR es:[si],UNDEFINED je Goto0 ;brif ON ERROR GOTO 0 call NewModLabel ;ax = module level label node call PushRoot jmp SHORT J2_Stg1Loop ;return to outer loop ; [exp] ==> [[label, ..., label GOSUB/GOTO exp ON]] ; ListRule LrStOnGosub ListRule LrStOnGoto mov ax,ORW_ON call PushTempRwSpc ;push ON call PopRootPushTemp ;move exp from root to temp stack call PushTempSpc ;list space between exp and GOTO/GOSUB call PushTempOpRwSpc ;push GOTO/GOSUB lods WORD PTR es:[si] ;ax = byte count of label args shr ax,1 ;ax = count of label args mov [cLsArgs],al ;setup for call to PushCommaArgs ; (guarenteed by parser to be > 0) xchg cx,ax ;cx = count of label args EmitLabLoop: push cx ;save count of label args call PushRootLabel ;consume and push <label> call GrowBdNodes ;grow list buffer if necessary ; preserves cx pop cx ;restore count of label args je OnGosubExit ;brif out-of-memory - We'll abort ; ListLine next time through Stg1Loop loop EmitLabLoop ;repeat for each label in list call PushCommaArgs ;move labels from root to temp ; stack, inserting commas OnGosubExit: jmp PushListStg1 ;push temp list to root as 1 node ; and return to outer loop ; [exp ...] ==> [[exp space CASE space SELECT] ...] ; ListRule LrStSelectCase call PushTempOpRwSpc ;push SELECT onto temp stack mov ax,ORW_CASE call PushTempRwSpc ;push ON call PopRootPushTemp ;move expNode from root to temp stk inc si ;skip operand inc si jmp PushListStg1 ;push temp list to root as 1 node ; and return to outer loop ;*************************************************************************** ; PushCaseOrComma ; Purpose: ; 1st opCase in a statement gets mapped to CASE, ; all subsequent ones get mapped to ','. ; ;*************************************************************************** PushCaseOrComma PROC NEAR mov ax,ORW_CASE jmp PushTempRwOrComma PushCaseOrComma ENDP ; [exp2 exp1 ...] ==> [[exp2 space TO space exp1 space CASE]] ; ListRule LrStCaseTo call PushCaseOrComma ;emit CASE space or ',' space call PopRoot ;ax = exp2 push ax ;save it for later call PopRootPushTemp ;move exp1 from root to temp stk call PushTempSpc call PushTempOpRwSpc ;list opcode's resword (TO) pop ax ;ax = exp1 call PushTemp jmp PushListStg1 ;push temp list to root as 1 node ; and return to outer loop ; [...] ==> [ELSE space CASE ...] ; ListRule LrStCaseElse call PushRootOpRwSpc ;list opcode's resword (CASE) mov ax,ORW_ELSE PushRootRwStg1: call PushRootRw ;list ELSE jmp Stg1Loop ;return to outer loop ; [exp ...] ==> [[exp space CASE ...]] ; ListRule LrStCase call PushCaseOrComma ;emit CASE space or ',' space call PopRootPushTemp ;move expNode from root to temp stk jmp PushListStg1 ;push temp list to root as 1 node ; and return to outer loop ; [exp ...] ==> [[exp space <relation> space IS space CASE]] ; ListRule LrStCaseRel call PushCaseOrComma ;emit "CASE " space or ", " to temp stk mov ax,ORW_IS call PushTempRwSpc ;list "IS " call PushTempOpChars ;list opcode's char(s) call PushTempSpc ;surround operator with blanks call PopRootPushTemp ;move expNode from root to temp stk jmp PushListStg1 ;push temp list to root as 1 node ; and return to outer loop ; [exp ...] ==> [[exp space WHILE/UNTIL space DO]] ; ListRule LrStDoWhile ListRule LrStDoUntil mov ax,ORW_DO call PushTempRw ;list DO LrStLoop1: call PushTempSpc call PushTempOpRwSpc ;list WHILE or UNTIL call PopRootPushTemp ;move expNode from root to temp stk inc si ;skip oText operand inc si jmp PushListStg1 ;push temp list to root as 1 node ; and return to outer loop ; [exp ...] ==> [[exp space WHILE/UNTIL space LOOP]] ; ListRule LrStLoopUntil ListRule LrStLoopWhile mov ax,ORW_LOOP call PushTempRw ;list LOOP jmp SHORT LrStLoop1 ;share code with DO ; [exp3 exp2 exp1 id ...] ==> [[exp3 STEP exp2 TO exp1 = id FOR]] ; ListRule LrStForStep call PopRootPushTemp ;move exp3 from root to temp stk call PushTempSpc mov ax,ORW_STEP call PushTempRwSpc ;list STEP ;fall into LrStFor ; [exp2 exp1 id ...] ==> [[exp2 TO exp1 = id FOR]] ; ListRule LrStFor add si,4 ;skip oBP, oText operands call PopRootPushTemp ;move exp2 from root to temp stk call PushTempSpc mov ax,ORW_TO call PushTempRwSpc ;list TO call PopRootPushTemp ;move exp1 from root to temp stk call PushTempSpc mov ax,'= ' call PushTempChars ;list ' =' call PopRootPushTemp ;move id node from root to temp stk call PushTempSpc call PushTempOpRw ;list FOR jmp PushRevListStg1 ;move temp stk to root in reverse order ; and return to outer loop ; [...] ==> [NEXT ...] ; ListRule LrStNext cmp [txdCur.TXD_scanState],SS_EXECUTE jne NotExecute call PopRoot ;discard offset to id node (it was ; synthetically generated by scanner, ; will be removed by SsDescan() NotExecute: add si,4 ;skip oBP and oText operands jmp short LrRw ;list NEXT ; and return to outer loop ; [id ...] ==> [id NEXT ...] ; ListRule LrStNextId ;advance past oBP, oText operands inc si ;skip oBP operand inc si ListRule LrStWhile ;advance past oText operand inc si ;skip oText operand inc si ListRule LrStRead call PushTempOpRwOrComma ;push opcode's reserved word (or comma) ;followed by a space jmp short PopPushPushListStg1 ;list exp and return to Stg1Loop ; [...] ==> [LOOP/WEND ...] ; ListRule LrStLoop ListRule LrStWend inc si ;skip link field inc si jmp short LrRw ;list LOOP or WEND ; and return to outer loop ; [...] ==> [NEXT space RESUME ...] ; ListRule LrStResumeNext call PushRootOpRwSpc ;list RESUME mov ax,ORW_NEXT jmp PushRootRwStg1 ;list NEXT ;return to outer loop subttl Generic opcode listers ;------------------------------------------------------------------ ; Generic opcode listers ;------------------------------------------------------------------ ;*************************************************************************** ; LrRw ; Purpose: ; [...] ==> [resWord ...] ; ;*************************************************************************** ListRule LrRw call PushRootOpRw ;push opcode's reserved word jmp Stg1Loop ;return to outer loop ; [...] ==> [space <opcode's resword> ...] ; ListRule LrRwSpc call PushRootOpRwSpc ;push opcode's reserved word jmp Stg1Loop ;return to outer loop ;*************************************************************************** ; LrChar ; Purpose: ; [...] ==> [char ...] ; ;*************************************************************************** ListRule LrChar mov ax,[mpOpLsArg + bx] ;ax = char(s) to be listed PushRootCharsStg1: call PushRootChars ;push char(s) to be listed to root stack jmp Stg1Loop ;return to outer loop ;*************************************************************************** ; LrRwExp1 ; Purpose: ; [exp] ==> [[exp space resWord]] ; Examples include opStChain, opStRandomize1, opNot ; ;*************************************************************************** ListRule LrRwExp1 call PushTempOpRwSpc ;push opcode's reserved word ;followed by a space PopPushPushListStg1: call PopRootPushTemp ;move expNode from root to temp stk jmp PushListStg1 ;push temp list to root as 1 node ; and return to outer loop ;*************************************************************************** ; LrUnaryChar ; Purpose: ; [exp] ==> [[exp char]] ; ;*************************************************************************** ListRule LrUnaryChar ListRule LrUnaryOp call PushTempOpChars jmp SHORT PopPushPushListStg1 ;list exp and return to outer loop ; [exp2 exp1 ...] ==> ; [exp2 space comma exp1 space comma <opcode's resword>] ; ListRule LrStSwap inc si ;consume opStSwap's operand inc si ListRule LrRwExp2 mov [cLsArgs],2 ListStmtArgs: call PushTempOpRwSpc ;push opcode's reserved word call PushCommaArgs ;copy cLsArgs from root to temp ; and separate them by commas jmp PushListStg1 ;push temp list to root as 1 node ; and return to outer loop ; [exp3 exp2 exp1 ...] ==> ; [exp3 space comma exp2 space comma exp1 space comma <opcode's resword>] ; ListRule LrRwExp3 mov [cLsArgs],3 jmp SHORT ListStmtArgs ;*************************************************************************** ; LrFunc1Arg ; Purpose: ; [exp] ==> [[")" exp "(" resWord]] ; ;*************************************************************************** ListRule LrFnLen ListRule LrFnVarptr_ inc si ;skip size operand inc si ListRule LrFunc1Arg mov [cLsArgs],1 ListFuncArgs: call PushTempOpRw ;push opcode's reserved word ListFuncArgs2: call PushTempLParen ;push '(' onto temp stack call PushCommaArgs ;copy cLsArgs from root to temp ; and separate them by commas call PushTempRParen ;push ')' onto temp stack jmp PushListStg1 ;push temp list to root as 1 node ; and return to outer loop ListRule LrFunc2Args mov [cLsArgs],2 jmp SHORT ListFuncArgs ListRule LrFunc3Args mov [cLsArgs],3 jmp SHORT ListFuncArgs mptypRwCoerce equ $-2 dw ORW_CInt ; I2 dw ORW_CLng ; I4 dw ORW_CSng ; R4 dw ORW_CDbl ; R8 ListRule LrCoerce mov [cLsArgs],1 mov bl,byte ptr [opList+1] ; BL = ET type * 4 + garbage .erre OPCODE_MASK EQ 03ffh ; Assure SHR is correct ; and bx,HIGH (NOT OPCODE_MASK) and bx,0FCh shr bx,1 ; BX = ET type * 2 mov ax,word ptr mptypRwCoerce[bx] ; Translate to reserved word call PushTempRw ; Push opcode's reserved word jmp short ListFuncArgs2 ;Start of [22] ;End of [22] subttl Misc opcode listers ;------------------------------------------------------------------ ; Misc opcode listers ;------------------------------------------------------------------ ListRule LrScanStop DbHalt LIST,<Illegal opcode found in ListLine> ;Emitted to indicate defaulted parm - lists as nothing ListRule LrUndef mov ax,100h SKIP2_PSW ListRule LrNull sub ax,ax jmp PushRootCharsStg1 ;list null ;return to outer loop tOrwKey LABEL WORD DW ORW_OFF DW ORW_ON DW ORW_LIST ListRule LrStKey call PushRootOpRwSpc ;list KEY lods WORD PTR es:[si] ;ax = 0,1,2 for ON,OFF,LIST shl ax,1 xchg bx,ax ;bx = index into tOrwKey mov ax,[tOrwKey+bx] ;ax = ON,OFF,LIST jmp PushRootRwStg1 ;list it ;return to outer loop PushDefSeg PROC NEAR call PushRootOpRwSpc ;list DEF mov ax,ORW_SEG jmp PushRootRwSpc ;list SEG ; and return to caller PushDefSeg ENDP ListRule LrStDefSeg1 call PopRootPushTemp call PushDefSeg ;list "DEF SEG " mov ax,' =' call PushRootChars ;list "= " jmp PushListStg1 ;push temp list to root as 1 node ; and return to outer loop ListRule LrStDefSeg0 call PushDefSeg ;list "DEF SEG " J3_Stg1Loop: jmp Stg1Loop ;return to outer loop ListRule LrStOptionBase0 ListRule LrStOptionBase1 mov ax,ORW_OPTION call PushRootRwSpc ;list OPTION mov ax,ORW_BASE call PushRootRwSpc ;list BASE call PushRootOpChars ;list opcode's char ('0' or '1') jmp Stg1Loop ;return to outer loop ;*************************************************************************** ; LrStWidthLprint ; Purpose: ; [exp] ==> [[exp LPRINT WIDTH]] ; ;*************************************************************************** ListRule LrStWidthLprint call PushTempOpRwSpc ;list WIDTH mov ax,ORW_LPRINT jmp SHORT Palette1 ;list LPRINT exp, return to outer loop ListRule LrStPaletteUsing call PushTempOpRwSpc ;list PALETTE mov ax,ORW_USING Palette1: call PushTempRwSpc ;list USING Palette2: jmp PopPushPushListStg1 ;list exp and return to outer loop ; [exp] ==> [[exp = DATE$/TIME$]] ; ListRule LrStDate_ ListRule LrStTime_ call PushTempOpRwSpc ;list DATE$/TIME$ mov ax,' =' call PushTempChars ;list '= ' jmp PopPushPushListStg1 ;list exp and return to outer loop ;*************************************************************************** ; LrStLocate ; Purpose: ; List a statement like CLEAR or LOCATE which takes a variable number ; of optional arguments. ; [exp, ..., exp] ==> [[exp, ... LOCATE]] ; For example, if the stmt was SCREEN ,,x,y ; the pcode would be: ; opLit0 opLit0 opIdLd(x) opLit1 opIdLd(y) opLit1 opStScreen ; and the root stack on entry would have: ; [1 y 1 x 0 0] ; On exit, the root stack would have: ; [y "," x "," "," LOCATE] ; ;*************************************************************************** ListRule LrStLocate ListRule LrStScreen ListRule LrStColor ListRule LrStClear call PushTempOpRwSpc ;push opcode's resword lods WORD PTR es:[si] ;ax = number of arguments mov [cLsArgs],al call PushCommaArgs ;copy cLsArgs from root to temp ; and separate them by commas jmp PushListStg1 ;move temp stk to root ; and return to outer loop ListRule LrStClose lods WORD PTR es:[si] ;ax = number of arguments mov [cLsArgs],al jmp ListStmtArgs ;pop statement args and list with ", " ; [exp var] ==> [[exp = var LSET/RSET]] ; ListRule LrStRset ListRule LrStLset call PushTempOpRwSpc ;push opcode's resword (LSET/RSET) call PopRootPushTemp ;move var node from root to temp stk mov ax,'= ' call PushTempChars ;list ' =' call PushTempSpc call PopRootPushTemp ;move expNode from root to temp stk jmp PushListStg1 ;move temp stk to root as 1 node ; and return to outer loop ; [exp4 exp3 exp2 lval] ==> [exp4 = (exp3, exp2, lval) MID$] ; [exp3 exp2 lval] ==> [exp3 = (exp2, lval) MID$] ; ListRule LrStMid_2 mov [cLsArgs],1 jmp SHORT MidCont ListRule LrStMid_3 mov [cLsArgs],2 MidCont: call PopRoot ;ax = lval node xchg cx,ax ;cx = lval node call PopRoot ;ax = exp4 node push ax ;save exp4 node push cx ;save lval node call PushTempOpRw ;list "MID$" call PushTempLParen ;push '(' onto temp stack pop ax ;ax = lval node call PushTemp ;list lval node call PushTempCommaSpc ;list ", " call PushCommaArgs ;copy cLsArgs from root to temp ; and separate them by commas call PushTempRParen ;push ')' onto temp stack call PushTempSpc mov ax,' =' call PushTempChars ;list '= ' pop ax ;ax = exp4 node call PushTemp ;push it to temp stack jmp PushListStg1 ;move temp stk to root as 1 node ; and return to outer loop ; [exp2 exp1] ==> [[exp2 AS exp1 NAME]] ; ListRule LrStName call PopRootPushTemp ;move exp2 node from root to temp stk call PushTempSpc mov ax,ORW_AS call PushTempRwSpc ;list AS call PopRootPushTemp ;move var node from root to temp stk call PushTempSpc call PushTempOpRw ;push opcode's resword jmp PushRevListStg1 ;move temp stk to root in reverse order ; and return to outer loop ;These constants reside in rtps.inc ;FINP_QSupress EQU 1 ;set if "prompt" was followed by a comma, ; ;not a semicolon, indicating "? " is not to be ; ;output after prompt. ;FINP_CrLf EQU 2 ;set if INPUT was followed by optional ";", ; ;meaning CrLf is not to be output when user ; ;presses return. ;FINP_Prompt EQU 4 ;set if the optional SDPrompt argument is included. ; [ id optionalPromptExp chan] ==> [ id optionalPromptExp chan INPUT LINE] ; ; [ id optionalPromptExp] ==> [ id optionalPromptExp INPUT LINE] ; ; [ optionalPromptExp ] ==> [ optionalPromptExp INPUT ] ; ListRule LrStLineInput call PopRoot ;ax = offset to id node push ax ;save it mov ax,ORW_LINE call PushTempRwSpc ;list "LINE " lods WORD PTR es:[si] ;ax = FINP_xxx mask mov cl,al ;al = FINP_xxx mask call DoInputPrompt ;list "INPUT ..." test [lsBosFlags],FBOS_Channel je NoChan1 ;brif not LINE INPUT #n, call PopPushCommaSpc ;move #chan to temp stack ;list ", " NoChan1: pop ax ;ax = offset to id node call PushTemp ;list id node jmp PushListStg1 ;push temp list to root as 1 node ; and return to outer loop ListRule LrInputPrompt lods WORD PTR es:[si] ;ax = byte count of opcode's operand inc ax ;round up to even byte count and al,0FEH mov cl,BYTE PTR es:[si] ;cl = FINP_xxx mask add si,ax ;advance si beyond opInputPrompt call DoInputPrompt jmp PushListStg1 ;push temp list to root as 1 node ; and return to outer loop ;cl = FINP_xxx mask DoInputPrompt PROC NEAR call PushTempOpRwOrComma ;list "INPUT ", and set flag so ; opStInput lists as ", " or [lsBosFlags],FBOS_InputPrompt ;tell LrStInput not to list INPUT test cl,FINP_CrLf je No_CrLf ;brif INPUT not followed by mov al,';' call PushTempCharSpc ;list "; " No_CrLf: ;brif INPUT not followed by test cl,FINP_Prompt je No_Prompt ;brif INPUT not followed by "prompt" call PopRootPushTemp ;move "prompt" from temp to root stack mov al,';' test cl,FINP_QSupress je No_QSupress ;brif prompt not followed by , mov al,',' No_QSupress: call PushTempCharSpc ;list "; " or ", " No_Prompt: ret DoInputPrompt ENDP ; [exp chan] ==> [exp ,chan# INPUT] ; [exp] ==> [exp INPUT] ; [exp] ==> [exp ,] ; ListRule LrStInput test [lsBosFlags],FBOS_InputPrompt jne NoInpPrompt ;brif opInputPrompt has already ; been scanned in this stmt call PopRoot ;ax = offset to exp node push ax call PushTempOpRwOrComma ;list "INPUT " or ", " test [lsBosFlags],FBOS_Channel je NoChan ;brif not INPUT #n, and [lsBosFlags],0FFH - FBOS_Channel call PopPushCommaSpc ;move #chan to temp stack ;list ", " NoChan: pop ax ;ax = offset to exp node call PushTemp ;list it jmp PushListStg1 ;push temp list to root ; and return to outer loop NoInpPrompt: and [lsBosFlags],0FFH - FBOS_InputPrompt jmp Stg1Loop ; [expLast exp1st expFileNum] ==> ; [expLast TO expFirst , expFileNum LOCK/UNLOCK] ; or if LOCK_1stToLast bit is not set in operand: ; [expFileNum] ==> [expFileNum LOCK/UNLOCK] ; ListRule LrStLock ListRule LrStUnLock lods WORD PTR es:[si] ;ax = operand for opStLock/opStUnlock .errnz LOCK_1stToLast AND 0FF00H ;if error, test ah test al,LOCK_1stToLast je LockAll ;brif no 1st/last arg xchg cx,ax ;cx = operand test ch,LOCK_DefLastArg/256 jne DefLastArg ;brif last arg was defaulted call PopRoot ;ax = offset to expLast node .errnz LOCK_DefLastArg AND 0FFH ;if error, test cl call PushTemp ;push expLast to temp stack call PushTempSpc mov ax,ORW_TO call PushTempRw ;list TO DefLastArg: call PopRoot ;ax = offset to exp1st node .errnz LOCK_Def1stArg AND 0FFH ;if error, test cl test ch,LOCK_Def1stArg/256 jne Def1stArg ;brif 1st arg was defaulted push ax ;save exp1st call PushTempSpc ;list a SPACE between TO and exp1st pop ax ;ax = exp1st call PushTemp ;push exp1st to temp stack Def1stArg: call PushTempCommaSpc ;list ", " LockAll: call PopRootPushTemp ;move filenum from root to temp stk call PushTempSpc call PushTempOpRw ;list LOCK/UNLOCK jmp PushRevListStg1 ;move temp stk to root in reverse order ; and return to outer loop ; [exp3 exp2 exp1] ==> [exp3 , exp2 , exp1 OPEN] ; ListRule LrStOpenOld3 mov al,3 ;list 3 expressions separated by ", " jmp SHORT ListExps ; [exp4 exp3 exp2 exp1] ==> [exp4, exp3, exp2, exp1 OPEN] ; ListRule LrStOpenOld4 mov al,4 ListExps: mov [cLsArgs],al ;setup for call to PushCommaArgs call PushTempOpRwSpc ;list OPEN call PushCommaArgs ;list open arguments jmp PushListStg1 ;push temp list to root as 1 node ; and return to outer loop MASK_INPUT EQU 01H MASK_OUTPUT EQU 02H MASK_APPEND EQU 04H MASK_RANDOM EQU 08H MASK_BINARY EQU 10H MASK_FOR EQU 20H tRwMode: DW ORW_INPUT, ORW_OUTPUT, ORW_APPEND, ORW_RANDOM, ORW_BINARY, ORW_FOR MASK_WRITE EQU 01H MASK_READ EQU 02H MASK_SHARED EQU 04H MASK_LOCK EQU 08H MASK_ACCESS EQU 10H tRwAccess: DW ORW_WRITE, ORW_READ, ORW_SHARED, ORW_LOCK, ORW_ACCESS ;This table says, if <mode> == MD_SQI, list FOR INPUT, ; if <mode> == MD_SQO, list FOR OUTPUT, etc. tMaskMode: DB MD_SQI, MASK_INPUT + MASK_FOR DB MD_SQO, MASK_OUTPUT + MASK_FOR DB MD_APP, MASK_APPEND + MASK_FOR DB MD_RND, MASK_RANDOM + MASK_FOR DB MD_BIN, MASK_BINARY + MASK_FOR DB 0 ;end of list ;This table says, if <access> == ACCESS_BOTH, list READ WRITE, etc. tMaskAccess: DB ACCESS_READ, MASK_ACCESS + MASK_READ DB ACCESS_WRITE, MASK_ACCESS + MASK_WRITE DB ACCESS_BOTH, MASK_ACCESS + MASK_WRITE + MASK_READ DB 0 ;end of list ;This table says, if <lock> == LOCK_BOTH, list LOCK READ WRITE, etc. tMaskLock: DB LOCK_READ, MASK_READ + MASK_LOCK DB LOCK_WRITE, MASK_WRITE + MASK_LOCK DB LOCK_BOTH, MASK_WRITE + MASK_READ + MASK_LOCK DB LOCK_SHARED, MASK_SHARED DB 0 ;end of list ;************************************************************************* ; OutRwMask ; Purpose: ; Output 1 or more reserved words based on a mask value and tables ; Entry: ; al = value to search for ; bx = offset to ORW_xxx table (in cs:) ; dx = offset to mask table (in cs:) ; ;************************************************************************* OutRwMask PROC NEAR push si ;save caller's si push cx ;save caller's cx mov cl,al ;cl = mode we're looking for mov si,dx ;si points to mask table (in cs) OpnMdLoop: lods BYTE PTR cs:[si] ;al = comparison value or al,al je OpnMdExit ;brif end of table cmp al,cl lods BYTE PTR cs:[si] ;al = mask of res words to output jne OpnMdLoop ;brif al is not value of interest (cl) mov cl,al ;cl = mask of res words to output mov si,bx ;si points to ORW_xxx table (in cs) OpnRwLoop: or cl,cl je OpnMdExit ;brif end of reserved word mask lods WORD PTR cs:[si] ;ax = ORW_xxx to be listed shr cl,1 jnc OpnRwLoop ;brif this res word not to be listed call PushTempRwSpc ;list it jmp SHORT OpnRwLoop OpnMdExit: pop cx pop si ret OutRwMask ENDP ; [exp3 exp2 exp1] ==> [exp3 = LEN, exp2 AS <mode> FOR exp1 OPEN] ; ListRule LrStOpen3 call PopRootPushTemp ;move exp3 node from root to temp stk mov ax,' =' call PushTempChars ;list "= " call PushTempSpc mov ax,ORW_LEN call PushTempRwSpc ;list "LEN " ;fall into LrStOpen2 ; [exp2 exp1] ==> [exp2 AS <mode> FOR exp1 OPEN] ; ListRule LrStOpen2 call PopRootPushTemp ;move exp2 node from root to temp stk call PushTempSpc ;list " " mov ax,ORW_AS call PushTempRwSpc ;list "AS " lods WORD PTR es:[si] ;ax = opStOpen's operand xchg cx,ax ;save copy in cx mov al,ch ;al = access/locking bits and al,0F0H ;al = locking bits mov bx,LISTOFFSET tRwAccess mov dx,LISTOFFSET tMaskLock call OutRwMask ;list LOCK READ/WRITE/READ WRITE or ; SHARED mov al,ch ;al = access/locking bits and al,0FH ;al = access bits mov bx,LISTOFFSET tRwAccess mov dx,LISTOFFSET tMaskAccess call OutRwMask ;list ACCESS READ/WRITE/READ WRITE mov al,cl ;al = mode bits mov bx,LISTOFFSET tRwMode mov dx,LISTOFFSET tMaskMode call OutRwMask ;list FOR INPUT/OUTPUT/APPEND/ ; RANDOM/BINARY call PopRootPushTemp ;move exp1 node from root to temp stk call PushTempSpc call PushTempOpRw ;list "OPEN" jmp PushRevListStg1 ;move temp stk to root in reverse order ; and return to outer loop ; source: FIELD #1 ... ; pcode: opLit1 opLbs opFieldInit ... ; [ expChan ...] ==> expChan FIELD] ; ListRule LrFieldInit call PopRootPushTemp ;copy #n to temp stack call PushRootOpRwSpc ;list "FIELD " jmp PushRevListStg1 ;return to outer loop ; source: , a as b, c as d ; pcode: opId(a) opId(b) opFieldItem opId(c) opId(d) opFieldItem ; [ idAs2 expCnt2 ] ==> [idAs2 AS expCnt2 ,] ; ListRule LrFieldItem call PopRootPushTemp ;copy idAsN to temp stack call PushTempSpc ;list " " call PushTempOpRwSpc ;list "AS " call PopPushCommaSpc ;copy expCntN to temp stack ;list ", " jmp PushRevListStg1 ;return to outer loop ; opStGetRec2: [exp2 exp1] ==> [exp2,,exp1 GET] ; opStGetRec3: [exp3 exp2 exp1] ==> [exp3,exp2,exp1 GET] ; opStPutRec2: [exp2 exp1] ==> [exp2,,exp1 PUT] ; opStPutRec3: [exp3 exp2 exp1] ==> [exp3,exp2,exp1 PUT] ; ListRule LrStGetRec2 ListRule LrStPutRec2 call PopPushCommaSpc ;move exp2 node from root to temp stk ;list ", " jmp SHORT GetPut1 ListRule LrStGetRec3 ListRule LrStPutRec3 call PopPushCommaSpc ;move exp3 node from root to temp stk ;list ", " call PopRootPushTemp ;move exp2 node from root to temp stk GetPut1: call PushTempCommaSpc ;list ", " call PopRootPushTemp ;move exp1 node from root to temp stk call PushRootOpRwSpc ;list "GET/PUT " inc si ;skip size operand inc si jmp PushRevListStg1 ;move temp stk to root in reverse order ; and return to outer loop ; [exp2 exp1] ==> [exp2, exp1 WIDTH] ; ListRule LrStWidth2 ListRule LrStWidthfile call PopNilExp ;copy exp2 and "," to temp stack call PopRootPushTemp ;copy exp1 from root to temp stk call PushRootOpRwSpc ;list "WIDTH " jmp PushRevListStg1 ;move temp stk to root in reverse order ; and return to outer loop ;copy exp from root to temp stack ; if exp is opUndef or opNull, don't copy anything to temp stack. ; If an expression is seen, all subsequent calls for this ; statement list at least ", " ; PopNilExp PROC NEAR call PopRoot ;ax = offset to exp node call ListOffToPtr ;bx = ptr to node ax cmp BYTE PTR [bx.LN_type],LNT_CHAR jne NotNilExp ;brif not nil expression cmp BYTE PTR [bx.LN_val_char],0 jne NotNilExp ;brif this arg's value is defaulted ;i.e. if node produced by opNull or ;opUndef test [lsBosFlags2],FBOS2_NonNilExp je GotNilExp jmp SHORT NonNilExp NotNilExp: call PushTemp ;push node ax onto temp stack or [lsBosFlags2],FBOS2_NonNilExp NonNilExp: call PushTempCommaSpc ;list ", " GotNilExp: ret PopNilExp ENDP subttl PRINT related opcodes ;------------------------------------------------------------------ ; PRINT related opcodes ;------------------------------------------------------------------ ;----------------------------------------------------------------------- ; Print related opcodes ; ; The statement: ; PRINT USING a$; x, TAB(5); y ; produces the pcode: ; (a$)opUsing ; (x)opPrintItemComma ; (5)opPrintTab ; (y)opPrintItemEos ; ;----------------------------------------------------------------------- ;push PRINT [#n] to root stack if 1st time this has been called for this stmt ;if FBOS_PrintSemi is set, push "; " to the root stack ; PushPrintIfBos PROC NEAR sub ax,ax test [lsBosFlags],FBOS_Channel je NoPrintChan ;brif not PRINT #n and [lsBosFlags],0FFH - FBOS_Channel call PopRoot ;ax = channel node NoPrintChan: push ax ;save 0/channel mov ax,ORW_PRINT call PushStmtRwIfBos pop ax ;ax = 0/channel or ax,ax je NoPrintChan1 ;brif no channel call PushRoot ;list channel again (after PRINT) call PushRootCommaSpc ;list ", " NoPrintChan1: test [lsBosFlags],FBOS_PrintSemi je NoSemi and [lsBosFlags],0FFH - FBOS_PrintSemi ;tell next PushPrintIfBos not to list mov al,';' call PushRootCharSpc ;list "; " NoSemi: ret PushPrintIfBos ENDP ; [exp] ==> [exp [[n #] PRINT]] ; ListRule LrPrintItemEos call PopRootPushTemp ;move exp from root to temp stack call PushPrintIfBos ;list PRINT [#n] if appropriate jmp PushListStg1 ;push temp list to root as 1 node ; and return to outer loop ListRule LrPrintEos call PushPrintIfBos ;list PRINT [#n] if appropriate jmp SHORT J4_Stg1Loop ;return to outer loop ; [exp] ==> [; ( exp ) TAB/SPC ] ; ListRule LrPrintSpc ListRule LrPrintTab call PushTempOpRw ;list "TAB" or "SPC" call PushTempLParen ;list "(" call PopRootPushTemp ;list exp call PushTempRParen ;list ")" call PushPrintIfBos ;list PRINT [#n] if appropriate or [lsBosFlags],FBOS_PrintSemi ;tell next print item's call to ; PushPrintIfBos to list ";" ; if no interviening "," jmp PushListStg1 ;push temp list to root as 1 node ; and return to outer loop ListRule LrPrintSemi or [lsBosFlags],FBOS_PrintSemi ;tell next print item's call to ; PushPrintIfBos to list ";" ; if no interviening "," J4_Stg1Loop: jmp Stg1Loop ;return to outer loop ; [...] ==> [,] ; ListRule LrPrintComma call PushPrintIfBos ;list PRINT [#n] if appropriate call PushRootOpChars ;list "," call PushRootSpc ;list " " and [lsBosFlags],0FFH - FBOS_PrintSemi ;tell next PushPrintIfBos not to list jmp SHORT J4_Stg1Loop ;return to outer loop ; [exp] ==> [,/; exp] ; ListRule LrPrintItemComma ListRule LrPrintItemSemi call PopRootPushTemp ;move exp from root to temp stack call PushTempOpChars ;list opcode's char(s) (,/:) call PushTempSpc ;list " " call PushPrintIfBos ;list PRINT [#n] if appropriate jmp PushListStg1 ;push temp list to root as 1 node ; and return to outer loop ; [exp] ==> [; exp USING] ; ListRule LrUsing call PushTempOpRwSpc ;list "USING " call PopRootPushTemp ;list exp mov al,';' call PushTempCharSpc ;list "; " call PushPrintIfBos ;list PRINT [#n] if appropriate jmp PushListStg1 ;push temp list to root as 1 node ; and return to outer loop ListRule LrStLprint ListRule LrStWrite or [lsBosFlags],FBOS_StmtRw ;remember not to list "PRINT" jmp LrRwSpc ;list "LPRINT " and return to outer loop ListRule LrInputChan ListRule LrChanOut or [lsBosFlags],FBOS_Channel ;remember to list [#]n, jmp SHORT J4_Stg1Loop ;return to outer loop subttl Graphics related pcodes ;------------------------------------------------------------------ ; Graphics related pcodes ;------------------------------------------------------------------ ; [exp2 exp1] ==> [( exp1 , exp2) ] ; ListCoords PROC NEAR call PushTempRParen ;list ")" call PopPushCommaSpc ;move exp2 node from root to temp stack ;list ", " call PopRootPushTemp ;move exp1 node from root to temp stack jmp PushTempLParen ;list "(" ;and return to caller ListCoords ENDP ;copy 1st coord to temp stack if any ; PushPop1stCoord PROC NEAR mov al,'-' call PushTempChar ;list "-" for 2nd coord pair test [lsBosFlags2],FBOS2_1stCoord je No1stCoord ;brif stmt like LINE -(x,y) instead ; of LINE (x,y)-(x,y) call PopRootPushTemp ;copy [STEP (x,y)] to temp stack No1stCoord: ret PushPop1stCoord ENDP ; [exp2 exp1] ==> [[) exp2 , exp1 ( -]] ; ListRule LrCoordSecond call ListCoords ;list (exp1, exp2) to temp stack call PushPop1stCoord ;copy 1st coord to temp stack if any jmp SHORT J2_PushRevListStg1 ;push temp list to root in rev order ; and return to outer loop ; [exp2 exp1] ==> [[) exp2 , exp1 ( STEP -]] ; ListRule LrCoordStepSecond call ListCoords ;list (exp1, exp2) to temp stack mov ax,ORW_STEP call PushTempRw ;list "STEP" call PushPop1stCoord ;copy 1st coord to temp stack if any J2_PushRevListStg1: jmp PushRevListStg1 ;push temp list to root in rev order ; and return to outer loop ; [exp2 exp1] ==> [[) exp2 , exp1 ( STEP]] ; ListRule LrCoordStep call ListCoords ;list (exp1, exp2) to temp stack mov ax,ORW_STEP call PushTempRw ;list "STEP" jmp SHORT LrCoord1 ; [exp2 exp1] ==> [[) exp2 , exp1 (]] ; ListRule LrCoord call ListCoords ;list (exp1, exp2) to temp stack LrCoord1: or [lsBosFlags2],FBOS2_1stCoord jmp SHORT J2_PushRevListStg1 ;push temp list to root in rev order ; and return to outer loop ;************************************************************************* ;LineBfArg ;Purpose: ; consume [B[F]] arg and list it ;Exit: ; condition codes: ZERO if no arg was present ; ;************************************************************************* LineBfArg PROC NEAR lods WORD PTR es:[si] ;ax = [B[F]] arg or ax,ax je LineBfExit ;brif no BF arg dec al mov al,'B' je GotLineB ;brif got B arg mov ah,'F' ;else it must have been BF GotLineB: call PushTempChars or sp,sp ;set nz exit condition code LineBfExit: ret LineBfArg ENDP ; [coord] ==> [[BF ,,] coord LINE] ; ListRule LrStLine call LineBfArg ;consume and list [B[F]] arg je LineNoArg ;brif no BF arg call PushTempCommaSpc ;list ", " jmp SHORT LineComma ;list comma and coord arg ; [color coord] ==> [[BF,] color , coord LINE] ; ListRule LrStLineColor call LineBfArg ;consume and list [B[F]] arg je LineArg ;brif no BF arg jmp SHORT LineCommaArg ;list comma, color and coord arg ; [style coord] ==> [style , [BF] ,, coord LINE] ; ListRule LrStLineStyle call PopPushCommaSpc ;move style from root to temp stk ;list ", " between BF and style call LineBfArg ;consume and list [B[F]] arg call PushTempCommaSpc ;list ", " between color and BF jmp SHORT LineComma ;list comma and coord arg ; [style color coord] ==> [style ,[BF], color, coord LINE] ; ListRule LrStLineStyleColor call PopPushCommaSpc ;move style from root to temp stk ;list ", " call LineBfArg ;consume and list [B[F]] arg jmp SHORT LineCommaArg ;list color and coord arg ;Table for mapping PUT function to reserved word tRwPutFunc LABEL WORD DW ORW_OR DW ORW_AND DW ORW_PRESET DW ORW_PSET DW ORW_XOR ; [array coord] ==> [function array coord PUT] ; ; [color coord] ==> [color coord PSET/PRESET] ; ; [array coord] ==> [array coord GET] ; ; [coord] ==> [coord PSET/PRESET] ; ListRule LrStGraphicsPut lods WORD PTR es:[si] ;ax = function mask shl ax,1 ;ax = function * 2 js NoPutFunc ;brif no function specified ; i.e. if ax was UNDEFINED xchg bx,ax mov ax,tRwPutFunc[bx] ;ax = ORW_OR .. ORW_XOR call PushTempRw ;list OR .. XOR LineCommaArg: call PushTempCommaSpc ;list ", " NoPutFunc: ListRule LrStPresetColor ListRule LrStPsetColor ListRule LrStGraphicsGet LineArg: call PopRootPushTemp ;move color from root to temp stk LineComma: call PushTempCommaSpc ;list ", " ListRule LrStPreset ListRule LrStPset LineNoArg: call PopRootPushTemp ;move coord from root to temp stk call PushRootOpRwSpc ;list "PSET " or "PRESET " jmp PushRevListStg1 ;move temp stk to root in reverse order ; and return to outer loop ;--------------------------------------------------------------------- ; The statement: ; CIRCLE (x,y),r,c,astart,astop,aspect ; generates pcode: ; (x)(y)opCoord ; (r)(c) ; (astart)opCircleStart ; (astop)opCircleEnd ; (aspect)opCircleAspect ; opStCircleColor ; where (r)(c) are operands for opStCircleColor ; ; CIRCLE (x,y),r,,,,aspect ; generates pcode: ; (x)(y)opCoord ; (r) ; opNull opCircleStart ; (aspect)opCircleAspect ; opStCircle ; NOTE: opCircleEnd not generated because runtime can't tell ; opNull from whether user supplied value ; ;--------------------------------------------------------------------- ;------------------------------------ ; [expStart] ==> [expStart ,] ; ListRule LrCircleStart call PopRootPushTemp ;copy expStart to temp stack call PushTempCommaSpc ;emit ", " or [lsBosFlags2],FBOS2_Circle1 ;tell LrCircle[Color] that it ; has a startEndAspect node jmp SHORT J3_PushRevListStg1 ;copy temp stk to root in rev order ;------------------------------------ ; [expEnd [expStart ,]] ==> [expEnd ,[expStart ,]] ; ListRule LrCircleEnd or [lsBosFlags2],FBOS2_Circle2 ;remember we've gotten an opCircleEnd call PopRootPushTemp ;copy expEnd to temp stack call PushTempCommaSpc ;emit ", " CE_CopyStart: call PopRootPushTemp ;copy [expStart ,] from root to temp J3_PushRevListStg1: jmp PushRevListStg1 ;copy temp stk to root in rev order ;------------------------------------------- ; [expAspect ] ==> [expAspect , , ,] ; or ; [expAspect [expStart ,]] ==> [expAspect , ,[expStart ,]] ; or ; [expAspect [expEnd ,[expStart ,]]] ==> ; [expAspect ,[expEnd ,[expStart ,]]] ; ListRule LrCircleAspect call PopRootPushTemp ;copy expAspect to temp stack call PushTempCommaSpc ;emit ", " between aspect and start test [lsBosFlags2],FBOS2_Circle2 jne CE_CopyStart ;brif stmt has opCircleEnd call PushTempCommaSpc ;emit ", " between aspect and start jmp SHORT CE_CopyStart ;---------------------------------------------------- ; [[startEndAspect] expRadius coord] ==> ; [[startEndAspect] expRadius ,coord CIRCLE] ; ListRule LrStCircle test [lsBosFlags2],FBOS2_Circle1 je CirCont2 ;brif no start/end/aspect args jmp SHORT CirCont1 ;copy expAspect from root to temp ;-------------------------------------------------------------- ; [[startEndAspect] expColor expRadius coord] ==> ; [[startEndAspect] expColor ,expRadius ,coord CIRCLE] ; ListRule LrStCircleColor test [lsBosFlags2],FBOS2_Circle1 je CirCont1 ;brif no start/end/aspect args call PopRootPushTemp ;copy startEndAspect from root to temp CirCont1: call PopPushCommaSpc ;copy expColor to temp stack ; or startEndAspect from root to temp ; if LrStCircle ;list ", " CirCont2: call PopPushCommaSpc ;copy expRadius to temp stack ;list ", " call PopRootPushTemp ;copy coord to temp stack call PushTempSpc call PushTempOpRw ;list CIRCLE jmp SHORT J3_PushRevListStg1 ;move temp stk to root in reverse order ; [exp3 exp2 exp1 coord] ==> [exp3, exp2, exp1, coord PAINT] ; ListRule LrStPaint ListRule LrStPaint3 call PopNilExp ;copy exp3 and "," to temp stack ListRule LrStPaint2 call PopNilExp ;copy exp2 and "," to temp stack call PopNilExp ;copy exp1 and "," to temp stack call PopRootPushTemp ;copy coord to temp stack call PushTempSpc call PushTempOpRw ;list PAINT jmp SHORT J4_PushRevListStg1 ;move temp stk to root in reverse order PushCoordPair PROC NEAR call ListCoords ;list (exp4 ,exp3) to temp stack mov al,'-' call PushTempChar ;list "-" jmp ListCoords ;list (exp2 ,exp1) to tmp stack & return PushCoordPair ENDP ; [exp6 exp5 exp4 exp3 exp2 exp1] ==> ; [exp6 ,exp5 ,(exp4 ,exp3)-(exp2 ,exp1) VIEW] ; ListRule LrStView call PopNilExp ;copy exp6 and "," to temp stack call PopNilExp ;copy exp5 and "," to temp stack ListRule LrStWindow call PushCoordPair ;list (exp4 ,exp3)-(exp2 ,exp1) call PushTempSpc call PushTempOpRw ;list VIEW/WINDOW jmp SHORT J4_PushRevListStg1 ;move temp stk to root in reverse order ; [exp6 exp5 exp4 exp3 exp2 exp1] ==> ; [exp6 ,exp5 ,(exp4 ,exp3)-(exp2 ,exp1) SCREEN VIEW] ; ListRule LrStViewScreen call PopNilExp ;copy exp6 and "," to temp stack call PopNilExp ;copy exp5 and "," to temp stack ListRule LrStWindowScreen call PushCoordPair ;list (exp4 ,exp3)-(exp2 ,exp1) call PushTempSpc mov ax,ORW_SCREEN call PushTempRwSpc ;list SCREEN call PushTempOpRw ;list VIEW/WINDOW J4_PushRevListStg1: jmp PushRevListStg1 ;move temp stk to root in reverse order ; [exp2 exp1 ...] ==> [exp2 TO exp1 PRINT VIEW ...] ; ; [...] ==> [PRINT VIEW ...] ; ListRule LrStViewPrint2 call PopRootPushTemp ;move exp2 from root to temp stack call PushTempSpc ;list " " mov ax,ORW_TO call PushTempRwSpc ;list "TO " call PopRootPushTemp ;move exp1 from root to temp stack call PushTempSpc ;list " " ListRule LrStViewPrint0 mov ax,ORW_PRINT call PushTempRw ;list "PRINT" call PushRootOpRwSpc ;list "VIEW " jmp SHORT J4_PushRevListStg1 ;move temp stk to root in reverse order sEnd LIST end
test/Fail/Issue5410-4.agda
KDr2/agda
0
12013
<filename>test/Fail/Issue5410-4.agda {-# OPTIONS --cubical-compatible #-} variable @0 A : Set record D : Set₁ where field f : A
oeis/028/A028379.asm
neoneye/loda-programs
11
100617
<reponame>neoneye/loda-programs ; A028379: a(n) = 6*(n+1)*(2*n+6)!/((n+3)!*(n+5)!). ; Submitted by <NAME> ; 0,6,28,108,396,1430,5148,18564,67184,244188,891480,3268760,12034980,44482230,165002460,614106900,2292665760,8583849780,32223863880,121267584360,457412818200,1729020452796,6548744132568,24849948274088,94460672942496,359656297841400,1371489349101872,5237523841855536,20028679135984596,76689899115923702,294003872878490460,1128414864476491956,4335701558131897408,16676338594368801348,64205233439882434536,247427407901809381960,954362859049836187560,3684254451806210431380,14234403943786671447880 mov $1,$0 sub $0,1 add $1,4 mov $2,$0 add $0,$1 bin $0,$1 mul $0,12 add $2,2 div $0,$2 mul $0,2 div $0,4 mul $0,2
libsrc/stdio_new/fd/general/stdio_dupcommon2.asm
andydansby/z88dk-mk2
1
13917
; stdio_dupcommon2 ; 07.2009 aralbrec XLIB stdio_dupcommon2 INCLUDE "../../stdio.def" ; common code factored out of dup functions ; centralizes key steps for making dup fds ; ; enter : l = source fd ; exit : ix = source fdstruct, carry reset ; carry set if source fd invalid ; uses : af, hl, ix .stdio_dupcommon2 call stdio_fdcommon1 ; ix = source fdstruct ret c ; invalid source fd ; we do not allow duping of dup fds ; instead, find the first non-dup fd in stdio chain and dup that .loop bit 7,(ix+3) ; is this a dup fd? ret z ; if not return with carry reset ld a,(ix+1) ld l,(ix+2) ld ixl,a ld ixh,l ; ix = next fdstruct in stdio chain jp loop
src/Categories/Category/Complete/Properties/SolutionSet.agda
Trebor-Huang/agda-categories
279
5152
<gh_stars>100-1000 {-# OPTIONS --without-K --safe #-} open import Categories.Category open import Categories.Category.Complete module Categories.Category.Complete.Properties.SolutionSet where open import Level open import Categories.Functor open import Categories.Object.Initial open import Categories.Object.Product.Indexed open import Categories.Object.Product.Indexed.Properties open import Categories.Diagram.Equalizer open import Categories.Diagram.Equalizer.Limit open import Categories.Diagram.Equalizer.Properties import Categories.Diagram.Limit as Lim import Categories.Morphism.Reasoning as MR private variable o ℓ e : Level o′ ℓ′ e′ : Level J : Category o ℓ e module _ (C : Category o ℓ e) where open Category C record SolutionSet : Set (o ⊔ ℓ) where field D : Obj → Obj arr : ∀ X → D X ⇒ X module _ {C : Category o ℓ e} (Com : Complete (o ⊔ ℓ ⊔ o′) (o ⊔ ℓ ⊔ ℓ′) (o ⊔ ℓ ⊔ e′) C) (S : SolutionSet C) where private module S = SolutionSet S module C = Category C open S open Category C open HomReasoning open MR C W : IndexedProductOf C D W = Complete⇒IndexedProductOf C {o′ = ℓ ⊔ o′} {ℓ′ = ℓ ⊔ ℓ′} {e′ = ℓ ⊔ e′} Com D module W = IndexedProductOf W W⇒W : Set ℓ W⇒W = W.X ⇒ W.X Warr : IndexedProductOf C {I = W⇒W} λ _ → W.X Warr = Complete⇒IndexedProductOf C {o′ = o ⊔ o′} {ℓ′ = o ⊔ ℓ′} {e′ = o ⊔ e′} Com _ module Warr = IndexedProductOf Warr Δ : W.X ⇒ Warr.X Δ = Warr.⟨ (λ _ → C.id) ⟩ Γ : W.X ⇒ Warr.X Γ = Warr.⟨ (λ f → f) ⟩ equalizer : Equalizer C Δ Γ equalizer = complete⇒equalizer C Com Δ Γ module equalizer = Equalizer equalizer prop : (f : W.X ⇒ W.X) → f ∘ equalizer.arr ≈ equalizer.arr prop f = begin f ∘ equalizer.arr ≈˘⟨ pullˡ (Warr.commute _ f) ⟩ Warr.π f ∘ Γ ∘ equalizer.arr ≈˘⟨ refl⟩∘⟨ equalizer.equality ⟩ Warr.π f ∘ Δ ∘ equalizer.arr ≈⟨ cancelˡ (Warr.commute _ f) ⟩ equalizer.arr ∎ ! : ∀ A → equalizer.obj ⇒ A ! A = arr A ∘ W.π A ∘ equalizer.arr module _ {A} (f : equalizer.obj ⇒ A) where equalizer′ : Equalizer C (! A) f equalizer′ = complete⇒equalizer C Com (! A) f module equalizer′ = Equalizer equalizer′ s : W.X ⇒ equalizer′.obj s = arr _ ∘ W.π (equalizer′.obj) t : W.X ⇒ W.X t = equalizer.arr ∘ equalizer′.arr ∘ s t′ : equalizer.obj ⇒ equalizer.obj t′ = equalizer′.arr ∘ s ∘ equalizer.arr t∘eq≈eq∘1 : equalizer.arr ∘ t′ ≈ equalizer.arr ∘ C.id t∘eq≈eq∘1 = begin equalizer.arr ∘ t′ ≈⟨ refl⟩∘⟨ sym-assoc ⟩ equalizer.arr ∘ (equalizer′.arr ∘ s) ∘ equalizer.arr ≈⟨ sym-assoc ⟩ t ∘ equalizer.arr ≈⟨ prop _ ⟩ equalizer.arr ≈˘⟨ identityʳ ⟩ equalizer.arr ∘ C.id ∎ t′≈id : t′ ≈ C.id t′≈id = Equalizer⇒Mono C equalizer _ _ t∘eq≈eq∘1 !-unique : ! A ≈ f !-unique = equalizer-≈⇒≈ C equalizer′ t′≈id SolutionSet⇒Initial : Initial C SolutionSet⇒Initial = record { ⊥ = equalizer.obj ; ⊥-is-initial = record { ! = ! _ ; !-unique = !-unique } }
libsrc/stdio_new/buf/slbb0/slbb0_writechar.asm
meesokim/z88dk
8
11870
; slbb0_writechar ; 08.2009 aralbrec PUBLIC slbb0_writechar EXTERN slbb0_appendchar ; write a char to the index specified ; ; enter : hl = & struct slbb ; a = index to write to ; d = char ; exit : carry set for success ; carry reset if index out of bounds ; uses : af, hl .slbb0_writechar cp (hl) ; index - end jp nc, slbb0_appendchar ; if index out of bounds we're appending to the end inc hl inc hl add a,(hl) inc hl ld h,(hl) ld l,a jp nc, noinc inc h .noinc ; hl = address of char in buffer ld (hl),d scf ; success! ret
alloy4fun_models/trashltl/models/8/d5kQSpF6HkXi6xYWC.als
Kaixi26/org.alloytools.alloy
0
3146
<reponame>Kaixi26/org.alloytools.alloy<gh_stars>0 open main pred idd5kQSpF6HkXi6xYWC_prop9 { all f: Protected | historically f not in Trash and always f not in Trash } pred __repair { idd5kQSpF6HkXi6xYWC_prop9 } check __repair { idd5kQSpF6HkXi6xYWC_prop9 <=> prop9o }
oeis/045/A045823.asm
neoneye/loda-programs
11
20558
; A045823: a(n) = sigma_3(2*n+1). ; 1,28,126,344,757,1332,2198,3528,4914,6860,9632,12168,15751,20440,24390,29792,37296,43344,50654,61544,68922,79508,95382,103824,117993,137592,148878,167832,192080,205380,226982,260408,276948,300764,340704,357912,389018,441028,458208,493040,551881,571788,619164,682920,704970,756112,834176,864360,912674,1008324,1030302,1092728,1213632,1225044,1295030,1418312,1442898,1533168,1663886,1690416,1772893,1929816,1968876,2048384,2226224,2248092,2359840,2575440,2571354,2685620,2907072,2927736,3073140 mul $0,2 add $0,1 mov $2,$0 lpb $0 mov $3,$2 dif $3,$0 cmp $3,$2 cmp $3,0 mul $3,$0 sub $0,1 pow $3,3 add $1,$3 lpe add $1,1 mov $0,$1
unittests/ASM/TwoByte/0F_5B_1.asm
cobalt2727/FEX
628
165244
<reponame>cobalt2727/FEX<filename>unittests/ASM/TwoByte/0F_5B_1.asm<gh_stars>100-1000 %ifdef CONFIG { "RegData": { "XMM0": ["0x4ea997604b09fbcc", "0x4eb60f014e6fed51"], "XMM1": ["0x4ef925bb4e0af333", "0x4ee5dd764ea8ee5f"], "XMM2": ["0x4e7cdb474e801032", "0x4ec7a6ef4d4ebfd0"], "XMM3": ["0x4dd2a7e14d8554d4", "0x4dc251f24e2a7a7b"], "XMM4": ["0x4ee0a9644ef9b631", "0x4e61e8564dd57f16"], "XMM5": ["0x4ec76abd4ee1ee95", "0x4e793e524e207aa8"], "XMM6": ["0x4e65022f4e4e3a1a", "0x4d3b0d804da1e6a4"], "XMM7": ["0x4edef4664c62ba7a", "0x4e762fed4db6f84e"], "XMM8": ["0x4e0e71db4cc820ba", "0x4e7052a14e9095a5"], "XMM9": ["0x4da442564e9207c6", "0x4e8169954eecc106"], "XMM10": ["0x4e640b604e1761d6", "0x4ddc846b4d08534a"], "XMM11": ["0x4e8632cb4ec5bf68", "0x4eb4517c4da46996"], "XMM12": ["0x4ec706e74deacf23", "0x4d0af8734dfed3e8"], "XMM13": ["0x4eb5c7714dc860db", "0x4e29279d4ee4fad9"], "XMM14": ["0x4ec56cea4e802694", "0x4ea5eed94ea2b828"], "XMM15": ["0x4eb073bc4d107b96", "0x4cd66f2c4ed0f799"] } } %endif lea rdx, [rel .data] cvtdq2ps xmm0, [rdx + 16 * 0] cvtdq2ps xmm1, [rdx + 16 * 1] cvtdq2ps xmm2, [rdx + 16 * 2] cvtdq2ps xmm3, [rdx + 16 * 3] cvtdq2ps xmm4, [rdx + 16 * 4] cvtdq2ps xmm5, [rdx + 16 * 5] cvtdq2ps xmm6, [rdx + 16 * 6] cvtdq2ps xmm7, [rdx + 16 * 7] cvtdq2ps xmm8, [rdx + 16 * 8] cvtdq2ps xmm9, [rdx + 16 * 9] cvtdq2ps xmm10, [rdx + 16 * 10] cvtdq2ps xmm11, [rdx + 16 * 11] cvtdq2ps xmm12, [rdx + 16 * 12] cvtdq2ps xmm13, [rdx + 16 * 13] cvtdq2ps xmm14, [rdx + 16 * 14] cvtdq2ps xmm15, [rdx + 16 * 15] hlt align 16 ; 256bytes of random data .data: dd 9042892,1422635032,1006326826,1527218293,582798507,2089999689,1417097080,1928248003,1074272523,1060557251,216792327,1674803041,279616115,441777196,715038375,407518795,2094733428,1884598841,447734476,947524986,1895254698,1672830628,673098253,1045402773,864978567,960531374,339530893,196139005,59435495,1870279404,383715765,1032584027,104924620,597456593,1212863084,1007986729,1224991550,344476351,1986036506,1085590199,634942853,956487659,142947491,462458211,1658827823,1125737874,344797902,1512619469,492430419,1669559173,534412544,145721129,420223845,1524873383,1920822367,709486397,1075005959,1656124734,1364988886,1391946848,151501156,1480187379,1752943752,112425311
maps/Route3.asm
Dev727/ancientplatinum
28
246721
<reponame>Dev727/ancientplatinum object_const_def ; object_event constants const ROUTE3_FISHER1 const ROUTE3_YOUNGSTER1 const ROUTE3_YOUNGSTER2 const ROUTE3_FISHER2 Route3_MapScripts: db 0 ; scene scripts db 0 ; callbacks TrainerFirebreatherOtis: trainer FIREBREATHER, OTIS, EVENT_BEAT_FIREBREATHER_OTIS, FirebreatherOtisSeenText, FirebreatherOtisBeatenText, 0, .Script .Script: endifjustbattled opentext writetext FirebreatherOtisAfterBattleText waitbutton closetext end TrainerYoungsterWarren: trainer YOUNGSTER, WARREN, EVENT_BEAT_YOUNGSTER_WARREN, YoungsterWarrenSeenText, YoungsterWarrenBeatenText, 0, .Script .Script: endifjustbattled opentext writetext YoungsterWarrenAfterBattleText waitbutton closetext end TrainerYoungsterJimmy: trainer YOUNGSTER, JIMMY, EVENT_BEAT_YOUNGSTER_JIMMY, YoungsterJimmySeenText, YoungsterJimmyBeatenText, 0, .Script .Script: endifjustbattled opentext writetext YoungsterJimmyAfterBattleText waitbutton closetext end TrainerFirebreatherBurt: trainer FIREBREATHER, BURT, EVENT_BEAT_FIREBREATHER_BURT, FirebreatherBurtSeenText, FirebreatherBurtBeatenText, 0, .Script .Script: endifjustbattled opentext writetext FirebreatherBurtAfterBattleText waitbutton closetext end Route3MtMoonSquareSign: jumptext Route3MtMoonSquareSignText FirebreatherOtisSeenText: text "Ah! The weather's" line "as fine as ever." done FirebreatherOtisBeatenText: text "It's sunny, but" line "I'm all wet…" done FirebreatherOtisAfterBattleText: text "When it rains," line "it's hard to get" cont "ignition…" done YoungsterWarrenSeenText: text "Hmmm… I don't know" line "what to do…" done YoungsterWarrenBeatenText: text "I knew I'd lose…" done YoungsterWarrenAfterBattleText: text "You looked strong." para "I was afraid to" line "take you on…" done YoungsterJimmySeenText: text "I can run like the" line "wind!" done YoungsterJimmyBeatenText: text "Blown away!" done YoungsterJimmyAfterBattleText: text "I wear shorts the" line "whole year round." para "That's my fashion" line "policy." done FirebreatherBurtSeenText: text "Step right up and" line "take a look!" done FirebreatherBurtBeatenText: text "Yow! That's hot!" done FirebreatherBurtAfterBattleText: text "The greatest fire-" line "breather in KANTO," cont "that's me." para "But not the best" line "trainer…" done Route3MtMoonSquareSignText: text "MT.MOON SQUARE" para "Just go up the" line "stairs." done Route3_MapEvents: db 0, 0 ; filler db 1 ; warp events warp_event 52, 1, MOUNT_MOON, 1 db 0 ; coord events db 1 ; bg events bg_event 49, 13, BGEVENT_READ, Route3MtMoonSquareSign db 4 ; object events object_event 26, 12, SPRITE_FISHER, SPRITEMOVEDATA_STANDING_UP, 0, 0, -1, -1, PAL_NPC_RED, OBJECTTYPE_TRAINER, 2, TrainerFirebreatherOtis, -1 object_event 10, 7, SPRITE_YOUNGSTER, SPRITEMOVEDATA_STANDING_LEFT, 0, 0, -1, -1, PAL_NPC_BLUE, OBJECTTYPE_TRAINER, 3, TrainerYoungsterWarren, -1 object_event 16, 3, SPRITE_YOUNGSTER, SPRITEMOVEDATA_SPINRANDOM_FAST, 0, 0, -1, -1, PAL_NPC_BLUE, OBJECTTYPE_TRAINER, 1, TrainerYoungsterJimmy, -1 object_event 49, 5, SPRITE_FISHER, SPRITEMOVEDATA_SPINRANDOM_FAST, 0, 0, -1, -1, PAL_NPC_RED, OBJECTTYPE_TRAINER, 3, TrainerFirebreatherBurt, -1
bddisasm_test/avx/avx_64.asm
andreaswimmer/bddisasm
675
21146
<reponame>andreaswimmer/bddisasm bits 64 vaddpd xmm2, xmm7, xmm0 vaddpd xmm2, xmm7, [rbx] vaddpd xmm2, xmm7, [rbx+r11*8+256] vaddpd xmm2, xmm7, [rbx+r11*8-256] vaddpd ymm16, ymm13, ymm15 vaddpd ymm16, ymm13, [rbx] vaddpd ymm16, ymm13, [rbx+r11*8+256] vaddpd ymm16, ymm13, [rbx+r11*8-256] vaddpd zmm24, zmm24, zmm31 vaddpd zmm24, zmm24, [rbx] vaddpd zmm24, zmm24, [rbx+r11*8+256] vaddpd zmm24, zmm24, [rbx+r11*8-256] vaddps xmm2, xmm7, xmm0 vaddps xmm2, xmm7, [rbx] vaddps xmm2, xmm7, [rbx+r11*8+256] vaddps xmm2, xmm7, [rbx+r11*8-256] vaddps ymm16, ymm13, ymm15 vaddps ymm16, ymm13, [rbx] vaddps ymm16, ymm13, [rbx+r11*8+256] vaddps ymm16, ymm13, [rbx+r11*8-256] vaddps zmm24, zmm24, zmm31 vaddps zmm24, zmm24, [rbx] vaddps zmm24, zmm24, [rbx+r11*8+256] vaddps zmm24, zmm24, [rbx+r11*8-256] vaddsd xmm2, xmm7, xmm0 vaddsd xmm2, xmm7, [rbx] vaddsd xmm2, xmm7, [rbx+r11*8+256] vaddsd xmm2, xmm7, [rbx+r11*8-256] vaddss xmm2, xmm7, xmm0 vaddss xmm2, xmm7, [rbx] vaddss xmm2, xmm7, [rbx+r11*8+256] vaddss xmm2, xmm7, [rbx+r11*8-256] vaddsubpd xmm2, xmm7, xmm0 vaddsubpd xmm2, xmm7, [rbx] vaddsubpd xmm2, xmm7, [rbx+r11*8+256] vaddsubpd xmm2, xmm7, [rbx+r11*8-256] vaddsubps xmm2, xmm7, xmm0 vaddsubps xmm2, xmm7, [rbx] vaddsubps xmm2, xmm7, [rbx+r11*8+256] vaddsubps xmm2, xmm7, [rbx+r11*8-256] vandnpd xmm2, xmm7, xmm0 vandnpd xmm2, xmm7, [rbx] vandnpd xmm2, xmm7, [rbx+r11*8+256] vandnpd xmm2, xmm7, [rbx+r11*8-256] vandnpd ymm16, ymm13, ymm15 vandnpd ymm16, ymm13, [rbx] vandnpd ymm16, ymm13, [rbx+r11*8+256] vandnpd ymm16, ymm13, [rbx+r11*8-256] vandnpd zmm24, zmm24, zmm31 vandnpd zmm24, zmm24, [rbx] vandnpd zmm24, zmm24, [rbx+r11*8+256] vandnpd zmm24, zmm24, [rbx+r11*8-256] vandnps xmm2, xmm7, xmm0 vandnps xmm2, xmm7, [rbx] vandnps xmm2, xmm7, [rbx+r11*8+256] vandnps xmm2, xmm7, [rbx+r11*8-256] vandnps ymm16, ymm13, ymm15 vandnps ymm16, ymm13, [rbx] vandnps ymm16, ymm13, [rbx+r11*8+256] vandnps ymm16, ymm13, [rbx+r11*8-256] vandnps zmm24, zmm24, zmm31 vandnps zmm24, zmm24, [rbx] vandnps zmm24, zmm24, [rbx+r11*8+256] vandnps zmm24, zmm24, [rbx+r11*8-256] vandpd xmm2, xmm7, xmm0 vandpd xmm2, xmm7, [rbx] vandpd xmm2, xmm7, [rbx+r11*8+256] vandpd xmm2, xmm7, [rbx+r11*8-256] vandpd ymm16, ymm13, ymm15 vandpd ymm16, ymm13, [rbx] vandpd ymm16, ymm13, [rbx+r11*8+256] vandpd ymm16, ymm13, [rbx+r11*8-256] vandpd zmm24, zmm24, zmm31 vandpd zmm24, zmm24, [rbx] vandpd zmm24, zmm24, [rbx+r11*8+256] vandpd zmm24, zmm24, [rbx+r11*8-256] vandps xmm2, xmm7, xmm0 vandps xmm2, xmm7, [rbx] vandps xmm2, xmm7, [rbx+r11*8+256] vandps xmm2, xmm7, [rbx+r11*8-256] vandps ymm16, ymm13, ymm15 vandps ymm16, ymm13, [rbx] vandps ymm16, ymm13, [rbx+r11*8+256] vandps ymm16, ymm13, [rbx+r11*8-256] vandps zmm24, zmm24, zmm31 vandps zmm24, zmm24, [rbx] vandps zmm24, zmm24, [rbx+r11*8+256] vandps zmm24, zmm24, [rbx+r11*8-256] vblendpd xmm2, xmm7, xmm0, 0x90 vblendpd xmm2, xmm7, [rbx], 0x90 vblendpd xmm2, xmm7, [rbx+r11*8+256], 0x90 vblendpd xmm2, xmm7, [rbx+r11*8-256], 0x90 vblendps xmm2, xmm7, xmm0, 0x90 vblendps xmm2, xmm7, [rbx], 0x90 vblendps xmm2, xmm7, [rbx+r11*8+256], 0x90 vblendps xmm2, xmm7, [rbx+r11*8-256], 0x90 vblendvpd xmm2, xmm7, xmm0, xmm3 vblendvpd xmm2, xmm7, [rbx], xmm3 vblendvpd xmm2, xmm7, [rbx+r11*8+256], xmm3 vblendvpd xmm2, xmm7, [rbx+r11*8-256], xmm3 vblendvps xmm2, xmm7, xmm0, xmm3 vblendvps xmm2, xmm7, [rbx], xmm3 vblendvps xmm2, xmm7, [rbx+r11*8+256], xmm3 vblendvps xmm2, xmm7, [rbx+r11*8-256], xmm3 vbroadcastsd ymm16, xmm0 vbroadcastsd ymm16, [rbx] vbroadcastsd ymm16, [rbx+r11*8+256] vbroadcastsd ymm16, [rbx+r11*8-256] vbroadcastsd zmm24, xmm0 vbroadcastsd zmm24, [rbx] vbroadcastsd zmm24, [rbx+r11*8+256] vbroadcastsd zmm24, [rbx+r11*8-256] vbroadcastss xmm2, xmm0 vbroadcastss xmm2, [rbx] vbroadcastss xmm2, [rbx+r11*8+256] vbroadcastss xmm2, [rbx+r11*8-256] vbroadcastss ymm16, xmm0 vbroadcastss ymm16, [rbx] vbroadcastss ymm16, [rbx+r11*8+256] vbroadcastss ymm16, [rbx+r11*8-256] vbroadcastss zmm24, xmm0 vbroadcastss zmm24, [rbx] vbroadcastss zmm24, [rbx+r11*8+256] vbroadcastss zmm24, [rbx+r11*8-256] vcmppd xmm2, xmm7, xmm0, 0x90 vcmppd xmm2, xmm7, [rbx], 0x90 vcmppd xmm2, xmm7, [rbx+r11*8+256], 0x90 vcmppd xmm2, xmm7, [rbx+r11*8-256], 0x90 vcmpsd xmm2, xmm7, xmm0, 0x90 vcmpsd xmm2, xmm7, [rbx], 0x90 vcmpsd xmm2, xmm7, [rbx+r11*8+256], 0x90 vcmpsd xmm2, xmm7, [rbx+r11*8-256], 0x90 vcmpss xmm2, xmm7, xmm0, 0x90 vcmpss xmm2, xmm7, [rbx], 0x90 vcmpss xmm2, xmm7, [rbx+r11*8+256], 0x90 vcmpss xmm2, xmm7, [rbx+r11*8-256], 0x90 vcmpss xmm2, xmm7, xmm0, 0x90 vcmpss xmm2, xmm7, [rbx], 0x90 vcmpss xmm2, xmm7, [rbx+r11*8+256], 0x90 vcmpss xmm2, xmm7, [rbx+r11*8-256], 0x90 vcomisd xmm2, xmm0 vcomisd xmm2, [rbx] vcomisd xmm2, [rbx+r11*8+256] vcomisd xmm2, [rbx+r11*8-256] vcomiss xmm2, xmm0 vcomiss xmm2, [rbx] vcomiss xmm2, [rbx+r11*8+256] vcomiss xmm2, [rbx+r11*8-256] vcvtdq2pd xmm2, xmm0 vcvtdq2pd xmm2, [rbx] vcvtdq2pd xmm2, [rbx+r11*8+256] vcvtdq2pd xmm2, [rbx+r11*8-256] vcvtdq2pd ymm16, xmm0 vcvtdq2pd ymm16, [rbx] vcvtdq2pd ymm16, [rbx+r11*8+256] vcvtdq2pd ymm16, [rbx+r11*8-256] vcvtdq2pd zmm24, ymm15 vcvtdq2pd zmm24, [rbx] vcvtdq2pd zmm24, [rbx+r11*8+256] vcvtdq2pd zmm24, [rbx+r11*8-256] vcvtdq2pd xmm2, xmm0 vcvtdq2pd xmm2, [rbx] vcvtdq2pd xmm2, [rbx+r11*8+256] vcvtdq2pd xmm2, [rbx+r11*8-256] vcvtdq2pd ymm16, xmm0 vcvtdq2pd ymm16, [rbx] vcvtdq2pd ymm16, [rbx+r11*8+256] vcvtdq2pd ymm16, [rbx+r11*8-256] vcvtdq2pd zmm24, ymm15 vcvtdq2pd zmm24, [rbx] vcvtdq2pd zmm24, [rbx+r11*8+256] vcvtdq2pd zmm24, [rbx+r11*8-256] vcvtdq2ps xmm2, xmm0 vcvtdq2ps xmm2, [rbx] vcvtdq2ps xmm2, [rbx+r11*8+256] vcvtdq2ps xmm2, [rbx+r11*8-256] vcvtdq2ps ymm16, ymm15 vcvtdq2ps ymm16, [rbx] vcvtdq2ps ymm16, [rbx+r11*8+256] vcvtdq2ps ymm16, [rbx+r11*8-256] vcvtdq2ps zmm24, zmm31 vcvtdq2ps zmm24, [rbx] vcvtdq2ps zmm24, [rbx+r11*8+256] vcvtdq2ps zmm24, [rbx+r11*8-256] vcvtpd2dq xmm2, xmm0 vcvtpd2dq xmm2, ymm15 vcvtpd2dq xmm2, [rbx] vcvtpd2dq xmm2, [rbx+r11*8+256] vcvtpd2dq xmm2, [rbx+r11*8-256] vcvtpd2dq ymm16, zmm31 vcvtpd2dq ymm16, [rbx] vcvtpd2dq ymm16, [rbx+r11*8+256] vcvtpd2dq ymm16, [rbx+r11*8-256] vcvtpd2ps xmm2, xmm0 vcvtpd2ps xmm2, ymm15 vcvtpd2ps xmm2, [rbx] vcvtpd2ps xmm2, [rbx+r11*8+256] vcvtpd2ps xmm2, [rbx+r11*8-256] vcvtpd2ps ymm16, zmm31 vcvtpd2ps ymm16, [rbx] vcvtpd2ps ymm16, [rbx+r11*8+256] vcvtpd2ps ymm16, [rbx+r11*8-256] vcvtpd2ps xmm2, xmm0 vcvtpd2ps xmm2, ymm15 vcvtpd2ps xmm2, [rbx] vcvtpd2ps xmm2, [rbx+r11*8+256] vcvtpd2ps xmm2, [rbx+r11*8-256] vcvtpd2ps ymm16, zmm31 vcvtpd2ps ymm16, [rbx] vcvtpd2ps ymm16, [rbx+r11*8+256] vcvtpd2ps ymm16, [rbx+r11*8-256] vcvtps2dq xmm2, xmm0 vcvtps2dq xmm2, [rbx] vcvtps2dq xmm2, [rbx+r11*8+256] vcvtps2dq xmm2, [rbx+r11*8-256] vcvtps2dq ymm16, ymm15 vcvtps2dq ymm16, [rbx] vcvtps2dq ymm16, [rbx+r11*8+256] vcvtps2dq ymm16, [rbx+r11*8-256] vcvtps2dq zmm24, zmm31 vcvtps2dq zmm24, [rbx] vcvtps2dq zmm24, [rbx+r11*8+256] vcvtps2dq zmm24, [rbx+r11*8-256] vcvtps2pd xmm2, xmm0 vcvtps2pd xmm2, [rbx] vcvtps2pd xmm2, [rbx+r11*8+256] vcvtps2pd xmm2, [rbx+r11*8-256] vcvtps2pd ymm16, xmm0 vcvtps2pd ymm16, [rbx] vcvtps2pd ymm16, [rbx+r11*8+256] vcvtps2pd ymm16, [rbx+r11*8-256] vcvtps2pd zmm24, ymm15 vcvtps2pd zmm24, [rbx] vcvtps2pd zmm24, [rbx+r11*8+256] vcvtps2pd zmm24, [rbx+r11*8-256] vcvtps2pd xmm2, xmm0 vcvtps2pd xmm2, [rbx] vcvtps2pd xmm2, [rbx+r11*8+256] vcvtps2pd xmm2, [rbx+r11*8-256] vcvtps2pd ymm16, xmm0 vcvtps2pd ymm16, [rbx] vcvtps2pd ymm16, [rbx+r11*8+256] vcvtps2pd ymm16, [rbx+r11*8-256] vcvtps2pd zmm24, ymm15 vcvtps2pd zmm24, [rbx] vcvtps2pd zmm24, [rbx+r11*8+256] vcvtps2pd zmm24, [rbx+r11*8-256] vcvtsd2si ecx, xmm0 vcvtsd2si ecx, [rbx] vcvtsd2si ecx, [rbx+r11*8+256] vcvtsd2si ecx, [rbx+r11*8-256] vcvtsd2si rcx, xmm0 vcvtsd2si rcx, [rbx] vcvtsd2si rcx, [rbx+r11*8+256] vcvtsd2si rcx, [rbx+r11*8-256] vcvtsd2ss xmm2, xmm7, xmm0 vcvtsd2ss xmm2, xmm7, [rbx] vcvtsd2ss xmm2, xmm7, [rbx+r11*8+256] vcvtsd2ss xmm2, xmm7, [rbx+r11*8-256] vcvtsi2sd xmm2, xmm7, ecx vcvtsi2sd xmm2, xmm7, rcx vcvtsi2sd xmm2, xmm7, [rbx] vcvtsi2sd xmm2, xmm7, [rbx+rsi*8+256] vcvtsi2ss xmm2, xmm7, ecx vcvtsi2ss xmm2, xmm7, rcx vcvtsi2ss xmm2, xmm7, [rbx] vcvtsi2ss xmm2, xmm7, [rbx+rsi*8+256] vcvtss2sd xmm2, xmm7, xmm0 vcvtss2sd xmm2, xmm7, [rbx] vcvtss2sd xmm2, xmm7, [rbx+r11*8+256] vcvtss2sd xmm2, xmm7, [rbx+r11*8-256] vcvtss2si ecx, xmm0 vcvtss2si ecx, [rbx] vcvtss2si ecx, [rbx+r11*8+256] vcvtss2si ecx, [rbx+r11*8-256] vcvtss2si rcx, xmm0 vcvtss2si rcx, [rbx] vcvtss2si rcx, [rbx+r11*8+256] vcvtss2si rcx, [rbx+r11*8-256] vcvttpd2dq xmm2, xmm0 vcvttpd2dq xmm2, ymm15 vcvttpd2dq xmm2, [rbx] vcvttpd2dq xmm2, [rbx+r11*8+256] vcvttpd2dq xmm2, [rbx+r11*8-256] vcvttpd2dq ymm16, zmm31 vcvttpd2dq ymm16, [rbx] vcvttpd2dq ymm16, [rbx+r11*8+256] vcvttpd2dq ymm16, [rbx+r11*8-256] vcvttps2dq xmm2, xmm0 vcvttps2dq xmm2, [rbx] vcvttps2dq xmm2, [rbx+r11*8+256] vcvttps2dq xmm2, [rbx+r11*8-256] vcvttps2dq ymm16, ymm15 vcvttps2dq ymm16, [rbx] vcvttps2dq ymm16, [rbx+r11*8+256] vcvttps2dq ymm16, [rbx+r11*8-256] vcvttps2dq zmm24, zmm31 vcvttps2dq zmm24, [rbx] vcvttps2dq zmm24, [rbx+r11*8+256] vcvttps2dq zmm24, [rbx+r11*8-256] vcvttsd2si ecx, xmm0 vcvttsd2si ecx, [rbx] vcvttsd2si ecx, [rbx+r11*8+256] vcvttsd2si ecx, [rbx+r11*8-256] vcvttsd2si rcx, xmm0 vcvttsd2si rcx, [rbx] vcvttsd2si rcx, [rbx+r11*8+256] vcvttsd2si rcx, [rbx+r11*8-256] vcvttss2si ecx, xmm0 vcvttss2si ecx, [rbx] vcvttss2si ecx, [rbx+r11*8+256] vcvttss2si ecx, [rbx+r11*8-256] vcvttss2si rcx, xmm0 vcvttss2si rcx, [rbx] vcvttss2si rcx, [rbx+r11*8+256] vcvttss2si rcx, [rbx+r11*8-256] vdivpd xmm2, xmm7, xmm0 vdivpd xmm2, xmm7, [rbx] vdivpd xmm2, xmm7, [rbx+r11*8+256] vdivpd xmm2, xmm7, [rbx+r11*8-256] vdivpd ymm16, ymm13, ymm15 vdivpd ymm16, ymm13, [rbx] vdivpd ymm16, ymm13, [rbx+r11*8+256] vdivpd ymm16, ymm13, [rbx+r11*8-256] vdivpd zmm24, zmm24, zmm31 vdivpd zmm24, zmm24, [rbx] vdivpd zmm24, zmm24, [rbx+r11*8+256] vdivpd zmm24, zmm24, [rbx+r11*8-256] vdivps xmm2, xmm7, xmm0 vdivps xmm2, xmm7, [rbx] vdivps xmm2, xmm7, [rbx+r11*8+256] vdivps xmm2, xmm7, [rbx+r11*8-256] vdivps ymm16, ymm13, ymm15 vdivps ymm16, ymm13, [rbx] vdivps ymm16, ymm13, [rbx+r11*8+256] vdivps ymm16, ymm13, [rbx+r11*8-256] vdivps zmm24, zmm24, zmm31 vdivps zmm24, zmm24, [rbx] vdivps zmm24, zmm24, [rbx+r11*8+256] vdivps zmm24, zmm24, [rbx+r11*8-256] vdivsd xmm2, xmm7, xmm0 vdivsd xmm2, xmm7, [rbx] vdivsd xmm2, xmm7, [rbx+r11*8+256] vdivsd xmm2, xmm7, [rbx+r11*8-256] vdivss xmm2, xmm7, xmm0 vdivss xmm2, xmm7, [rbx] vdivss xmm2, xmm7, [rbx+r11*8+256] vdivss xmm2, xmm7, [rbx+r11*8-256] vdppd xmm2, xmm7, xmm0, 0x90 vdppd xmm2, xmm7, [rbx], 0x90 vdppd xmm2, xmm7, [rbx+r11*8+256], 0x90 vdppd xmm2, xmm7, [rbx+r11*8-256], 0x90 vdpps xmm2, xmm7, xmm0, 0x90 vdpps xmm2, xmm7, [rbx], 0x90 vdpps xmm2, xmm7, [rbx+r11*8+256], 0x90 vdpps xmm2, xmm7, [rbx+r11*8-256], 0x90 vextractps [rbx], xmm2, 0x90 vextractps [rbx+rsi*8+256], xmm2, 0x90 vextractps [rbx+rsi*8-256], xmm2, 0x90 vextractps ecx, xmm2, 0x90 vextractps rcx, xmm2, 0x90 vhaddpd xmm2, xmm7, xmm0 vhaddpd xmm2, xmm7, [rbx] vhaddpd xmm2, xmm7, [rbx+r11*8+256] vhaddpd xmm2, xmm7, [rbx+r11*8-256] vhaddps xmm2, xmm7, xmm0 vhaddps xmm2, xmm7, [rbx] vhaddps xmm2, xmm7, [rbx+r11*8+256] vhaddps xmm2, xmm7, [rbx+r11*8-256] vhsubpd xmm2, xmm7, xmm0 vhsubpd xmm2, xmm7, [rbx] vhsubpd xmm2, xmm7, [rbx+r11*8+256] vhsubpd xmm2, xmm7, [rbx+r11*8-256] vhsubps xmm2, xmm7, xmm0 vhsubps xmm2, xmm7, [rbx] vhsubps xmm2, xmm7, [rbx+r11*8+256] vhsubps xmm2, xmm7, [rbx+r11*8-256] vinsertps xmm2, xmm7, [rbx], 0x90 vinsertps xmm2, xmm7, [rbx+rsi*8+256], 0x90 vinsertps xmm2, xmm7, [rbx+rsi*8-256], 0x90 vinsertps xmm2, xmm7, xmm0, 0x90 vlddqu xmm2, [rbx] vlddqu xmm2, [rbx+rsi*8+256] vlddqu xmm2, [rbx+rsi*8-256] vldmxcsr [rbx] vldmxcsr [rbx+rsi*8+256] vldmxcsr [rbx+rsi*8-256] vmaskmovdqu xmm2, xmm0 vmaskmovpd xmm2, xmm7, [rbx] vmaskmovpd xmm2, xmm7, [rbx+rsi*8+256] vmaskmovpd xmm2, xmm7, [rbx+rsi*8-256] vmaskmovpd [rbx], xmm7, xmm2 vmaskmovpd [rbx+rsi*8+256], xmm7, xmm2 vmaskmovpd [rbx+rsi*8-256], xmm7, xmm2 vmaskmovps xmm2, xmm7, [rbx] vmaskmovps xmm2, xmm7, [rbx+rsi*8+256] vmaskmovps xmm2, xmm7, [rbx+rsi*8-256] vmaskmovps [rbx], xmm7, xmm2 vmaskmovps [rbx+rsi*8+256], xmm7, xmm2 vmaskmovps [rbx+rsi*8-256], xmm7, xmm2 vmaxpd xmm2, xmm7, xmm0 vmaxpd xmm2, xmm7, [rbx] vmaxpd xmm2, xmm7, [rbx+r11*8+256] vmaxpd xmm2, xmm7, [rbx+r11*8-256] vmaxpd ymm16, ymm13, ymm15 vmaxpd ymm16, ymm13, [rbx] vmaxpd ymm16, ymm13, [rbx+r11*8+256] vmaxpd ymm16, ymm13, [rbx+r11*8-256] vmaxpd zmm24, zmm24, zmm31 vmaxpd zmm24, zmm24, [rbx] vmaxpd zmm24, zmm24, [rbx+r11*8+256] vmaxpd zmm24, zmm24, [rbx+r11*8-256] vmaxps xmm2, xmm7, xmm0 vmaxps xmm2, xmm7, [rbx] vmaxps xmm2, xmm7, [rbx+r11*8+256] vmaxps xmm2, xmm7, [rbx+r11*8-256] vmaxps ymm16, ymm13, ymm15 vmaxps ymm16, ymm13, [rbx] vmaxps ymm16, ymm13, [rbx+r11*8+256] vmaxps ymm16, ymm13, [rbx+r11*8-256] vmaxps zmm24, zmm24, zmm31 vmaxps zmm24, zmm24, [rbx] vmaxps zmm24, zmm24, [rbx+r11*8+256] vmaxps zmm24, zmm24, [rbx+r11*8-256] vmaxsd xmm2, xmm7, xmm0 vmaxsd xmm2, xmm7, [rbx] vmaxsd xmm2, xmm7, [rbx+r11*8+256] vmaxsd xmm2, xmm7, [rbx+r11*8-256] vmaxss xmm2, xmm7, xmm0 vmaxss xmm2, xmm7, [rbx] vmaxss xmm2, xmm7, [rbx+r11*8+256] vmaxss xmm2, xmm7, [rbx+r11*8-256] vminpd xmm2, xmm7, xmm0 vminpd xmm2, xmm7, [rbx] vminpd xmm2, xmm7, [rbx+r11*8+256] vminpd xmm2, xmm7, [rbx+r11*8-256] vminpd ymm16, ymm13, ymm15 vminpd ymm16, ymm13, [rbx] vminpd ymm16, ymm13, [rbx+r11*8+256] vminpd ymm16, ymm13, [rbx+r11*8-256] vminpd zmm24, zmm24, zmm31 vminpd zmm24, zmm24, [rbx] vminpd zmm24, zmm24, [rbx+r11*8+256] vminpd zmm24, zmm24, [rbx+r11*8-256] vminps xmm2, xmm7, xmm0 vminps xmm2, xmm7, [rbx] vminps xmm2, xmm7, [rbx+r11*8+256] vminps xmm2, xmm7, [rbx+r11*8-256] vminps ymm16, ymm13, ymm15 vminps ymm16, ymm13, [rbx] vminps ymm16, ymm13, [rbx+r11*8+256] vminps ymm16, ymm13, [rbx+r11*8-256] vminps zmm24, zmm24, zmm31 vminps zmm24, zmm24, [rbx] vminps zmm24, zmm24, [rbx+r11*8+256] vminps zmm24, zmm24, [rbx+r11*8-256] vminsd xmm2, xmm7, xmm0 vminsd xmm2, xmm7, [rbx] vminsd xmm2, xmm7, [rbx+r11*8+256] vminsd xmm2, xmm7, [rbx+r11*8-256] vminss xmm2, xmm7, xmm0 vminss xmm2, xmm7, [rbx] vminss xmm2, xmm7, [rbx+r11*8+256] vminss xmm2, xmm7, [rbx+r11*8-256] vmovapd xmm2, xmm0 vmovapd xmm2, [rbx] vmovapd xmm2, [rbx+r11*8+256] vmovapd xmm2, [rbx+r11*8-256] vmovapd ymm16, ymm15 vmovapd ymm16, [rbx] vmovapd ymm16, [rbx+r11*8+256] vmovapd ymm16, [rbx+r11*8-256] vmovapd zmm24, zmm31 vmovapd zmm24, [rbx] vmovapd zmm24, [rbx+r11*8+256] vmovapd zmm24, [rbx+r11*8-256] vmovapd xmm0, xmm2 vmovapd ymm15, ymm16 vmovapd zmm31, zmm24 vmovapd [rbx], xmm2 vmovapd [rbx], ymm16 vmovapd [rbx], zmm24 vmovapd [rbx+r11*8+256], xmm2 vmovapd [rbx+r11*8+256], ymm16 vmovapd [rbx+r11*8+256], zmm24 vmovapd [rbx+r11*8-256], xmm2 vmovapd [rbx+r11*8-256], ymm16 vmovapd [rbx+r11*8-256], zmm24 vmovaps xmm2, xmm0 vmovaps xmm2, [rbx] vmovaps xmm2, [rbx+r11*8+256] vmovaps xmm2, [rbx+r11*8-256] vmovaps ymm16, ymm15 vmovaps ymm16, [rbx] vmovaps ymm16, [rbx+r11*8+256] vmovaps ymm16, [rbx+r11*8-256] vmovaps zmm24, zmm31 vmovaps zmm24, [rbx] vmovaps zmm24, [rbx+r11*8+256] vmovaps zmm24, [rbx+r11*8-256] vmovaps xmm0, xmm2 vmovaps ymm15, ymm16 vmovaps zmm31, zmm24 vmovaps [rbx], xmm2 vmovaps [rbx], ymm16 vmovaps [rbx], zmm24 vmovaps [rbx+r11*8+256], xmm2 vmovaps [rbx+r11*8+256], ymm16 vmovaps [rbx+r11*8+256], zmm24 vmovaps [rbx+r11*8-256], xmm2 vmovaps [rbx+r11*8-256], ymm16 vmovaps [rbx+r11*8-256], zmm24 vmovd xmm2, ecx vmovd xmm2, [rbx] vmovd xmm2, [rbx+rsi*8+256] vmovd ecx, xmm2 vmovd [rbx], xmm2 vmovd [rbx+rsi*8+256], xmm2 vmovddup xmm2, xmm0 vmovddup xmm2, [rbx] vmovddup xmm2, [rbx+r11*8+256] vmovddup xmm2, [rbx+r11*8-256] vmovddup ymm16, ymm15 vmovddup ymm16, [rbx] vmovddup ymm16, [rbx+r11*8+256] vmovddup ymm16, [rbx+r11*8-256] vmovddup zmm24, zmm31 vmovddup zmm24, [rbx] vmovddup zmm24, [rbx+r11*8+256] vmovddup zmm24, [rbx+r11*8-256] vmovddup xmm2, xmm0 vmovddup xmm2, [rbx] vmovddup xmm2, [rbx+r11*8+256] vmovddup xmm2, [rbx+r11*8-256] vmovddup ymm16, ymm15 vmovddup ymm16, [rbx] vmovddup ymm16, [rbx+r11*8+256] vmovddup ymm16, [rbx+r11*8-256] vmovddup zmm24, zmm31 vmovddup zmm24, [rbx] vmovddup zmm24, [rbx+r11*8+256] vmovddup zmm24, [rbx+r11*8-256] vmovdqa xmm2, xmm0 vmovdqa xmm2, [rbx] vmovdqa xmm2, [rbx+r11*8+256] vmovdqa xmm2, [rbx+r11*8-256] vmovdqa xmm0, xmm2 vmovdqa [rbx], xmm2 vmovdqa [rbx+r11*8+256], xmm2 vmovdqa [rbx+r11*8-256], xmm2 vmovdqu xmm2, xmm0 vmovdqu xmm2, [rbx] vmovdqu xmm2, [rbx+r11*8+256] vmovdqu xmm2, [rbx+r11*8-256] vmovdqu xmm0, xmm2 vmovdqu [rbx], xmm2 vmovdqu [rbx+r11*8+256], xmm2 vmovdqu [rbx+r11*8-256], xmm2 vmovhlps xmm2, xmm7, xmm0 vmovhpd xmm2, xmm7, [rbx] vmovhpd xmm2, xmm7, [rbx+rsi*8+256] vmovhpd xmm2, xmm7, [rbx+rsi*8-256] vmovhpd [rbx], xmm2 vmovhpd [rbx+rsi*8+256], xmm2 vmovhpd [rbx+rsi*8-256], xmm2 vmovhps xmm2, xmm7, [rbx] vmovhps xmm2, xmm7, [rbx+rsi*8+256] vmovhps xmm2, xmm7, [rbx+rsi*8-256] vmovhps [rbx], xmm2 vmovhps [rbx+rsi*8+256], xmm2 vmovhps [rbx+rsi*8-256], xmm2 vmovlhps xmm2, xmm7, xmm0 vmovlpd xmm2, xmm7, [rbx] vmovlpd xmm2, xmm7, [rbx+rsi*8+256] vmovlpd xmm2, xmm7, [rbx+rsi*8-256] vmovlpd [rbx], xmm2 vmovlpd [rbx+rsi*8+256], xmm2 vmovlpd [rbx+rsi*8-256], xmm2 vmovlps xmm2, xmm7, [rbx] vmovlps xmm2, xmm7, [rbx+rsi*8+256] vmovlps xmm2, xmm7, [rbx+rsi*8-256] vmovlps [rbx], xmm2 vmovlps [rbx+rsi*8+256], xmm2 vmovlps [rbx+rsi*8-256], xmm2 vmovmskpd ecx, xmm0 vmovmskpd ecx, ymm15 vmovmskpd rcx, xmm0 vmovmskpd rcx, ymm15 vmovmskps ecx, xmm0 vmovmskps ecx, ymm15 vmovmskps rcx, xmm0 vmovmskps rcx, ymm15 vmovntdq [rbx], xmm2 vmovntdq [rbx], ymm16 vmovntdq [rbx], zmm24 vmovntdq [rbx+rsi*8+256], xmm2 vmovntdq [rbx+rsi*8+256], ymm16 vmovntdq [rbx+rsi*8+256], zmm24 vmovntdq [rbx+rsi*8-256], xmm2 vmovntdq [rbx+rsi*8-256], ymm16 vmovntdq [rbx+rsi*8-256], zmm24 vmovntdqa xmm2, [rbx] vmovntdqa xmm2, [rbx+rsi*8+256] vmovntdqa xmm2, [rbx+rsi*8-256] vmovntdqa ymm16, [rbx] vmovntdqa ymm16, [rbx+rsi*8+256] vmovntdqa ymm16, [rbx+rsi*8-256] vmovntdqa zmm24, [rbx] vmovntdqa zmm24, [rbx+rsi*8+256] vmovntdqa zmm24, [rbx+rsi*8-256] vmovntpd [rbx], xmm2 vmovntpd [rbx], ymm16 vmovntpd [rbx], zmm24 vmovntpd [rbx+rsi*8+256], xmm2 vmovntpd [rbx+rsi*8+256], ymm16 vmovntpd [rbx+rsi*8+256], zmm24 vmovntpd [rbx+rsi*8-256], xmm2 vmovntpd [rbx+rsi*8-256], ymm16 vmovntpd [rbx+rsi*8-256], zmm24 vmovntps [rbx], xmm2 vmovntps [rbx], ymm16 vmovntps [rbx], zmm24 vmovntps [rbx+rsi*8+256], xmm2 vmovntps [rbx+rsi*8+256], ymm16 vmovntps [rbx+rsi*8+256], zmm24 vmovntps [rbx+rsi*8-256], xmm2 vmovntps [rbx+rsi*8-256], ymm16 vmovntps [rbx+rsi*8-256], zmm24 vmovq xmm2, rcx vmovq xmm2, [rbx] vmovq xmm2, [rbx+rsi*8+256] vmovq rcx, xmm2 vmovq [rbx], xmm2 vmovq [rbx+rsi*8+256], xmm2 vmovq xmm2, xmm0 vmovq xmm2, [rbx] vmovq xmm2, [rbx+r11*8+256] vmovq xmm2, [rbx+r11*8-256] vmovq xmm0, xmm2 vmovq [rbx], xmm2 vmovq [rbx+r11*8+256], xmm2 vmovq [rbx+r11*8-256], xmm2 vmovsd xmm2, xmm7, xmm0 vmovsd xmm2, [rbx] vmovsd xmm2, [rbx+rsi*8+256] vmovsd xmm2, [rbx+rsi*8-256] vmovsd xmm0, xmm7, xmm2 vmovsd [rbx], xmm2 vmovsd [rbx+rsi*8+256], xmm2 vmovsd [rbx+rsi*8-256], xmm2 vmovshdup xmm2, xmm0 vmovshdup xmm2, [rbx] vmovshdup xmm2, [rbx+r11*8+256] vmovshdup xmm2, [rbx+r11*8-256] vmovshdup ymm16, ymm15 vmovshdup ymm16, [rbx] vmovshdup ymm16, [rbx+r11*8+256] vmovshdup ymm16, [rbx+r11*8-256] vmovshdup zmm24, zmm31 vmovshdup zmm24, [rbx] vmovshdup zmm24, [rbx+r11*8+256] vmovshdup zmm24, [rbx+r11*8-256] vmovsldup xmm2, xmm0 vmovsldup xmm2, [rbx] vmovsldup xmm2, [rbx+r11*8+256] vmovsldup xmm2, [rbx+r11*8-256] vmovsldup ymm16, ymm15 vmovsldup ymm16, [rbx] vmovsldup ymm16, [rbx+r11*8+256] vmovsldup ymm16, [rbx+r11*8-256] vmovsldup zmm24, zmm31 vmovsldup zmm24, [rbx] vmovsldup zmm24, [rbx+r11*8+256] vmovsldup zmm24, [rbx+r11*8-256] vmovss xmm2, xmm7, xmm0 vmovss xmm2, [rbx] vmovss xmm2, [rbx+rsi*8+256] vmovss xmm2, [rbx+rsi*8-256] vmovss xmm0, xmm7, xmm2 vmovss [rbx], xmm2 vmovss [rbx+rsi*8+256], xmm2 vmovss [rbx+rsi*8-256], xmm2 vmovupd xmm2, xmm0 vmovupd xmm2, [rbx] vmovupd xmm2, [rbx+r11*8+256] vmovupd xmm2, [rbx+r11*8-256] vmovupd ymm16, ymm15 vmovupd ymm16, [rbx] vmovupd ymm16, [rbx+r11*8+256] vmovupd ymm16, [rbx+r11*8-256] vmovupd zmm24, zmm31 vmovupd zmm24, [rbx] vmovupd zmm24, [rbx+r11*8+256] vmovupd zmm24, [rbx+r11*8-256] vmovupd xmm0, xmm2 vmovupd ymm15, ymm16 vmovupd zmm31, zmm24 vmovupd [rbx], xmm2 vmovupd [rbx], ymm16 vmovupd [rbx], zmm24 vmovupd [rbx+r11*8+256], xmm2 vmovupd [rbx+r11*8+256], ymm16 vmovupd [rbx+r11*8+256], zmm24 vmovupd [rbx+r11*8-256], xmm2 vmovupd [rbx+r11*8-256], ymm16 vmovupd [rbx+r11*8-256], zmm24 vmovups xmm2, xmm0 vmovups xmm2, [rbx] vmovups xmm2, [rbx+r11*8+256] vmovups xmm2, [rbx+r11*8-256] vmovups ymm16, ymm15 vmovups ymm16, [rbx] vmovups ymm16, [rbx+r11*8+256] vmovups ymm16, [rbx+r11*8-256] vmovups zmm24, zmm31 vmovups zmm24, [rbx] vmovups zmm24, [rbx+r11*8+256] vmovups zmm24, [rbx+r11*8-256] vmovups xmm0, xmm2 vmovups ymm15, ymm16 vmovups zmm31, zmm24 vmovups [rbx], xmm2 vmovups [rbx], ymm16 vmovups [rbx], zmm24 vmovups [rbx+r11*8+256], xmm2 vmovups [rbx+r11*8+256], ymm16 vmovups [rbx+r11*8+256], zmm24 vmovups [rbx+r11*8-256], xmm2 vmovups [rbx+r11*8-256], ymm16 vmovups [rbx+r11*8-256], zmm24 vmpsadbw xmm2, xmm7, xmm0, 0x90 vmpsadbw xmm2, xmm7, [rbx], 0x90 vmpsadbw xmm2, xmm7, [rbx+r11*8+256], 0x90 vmpsadbw xmm2, xmm7, [rbx+r11*8-256], 0x90 vmulpd xmm2, xmm7, xmm0 vmulpd xmm2, xmm7, [rbx] vmulpd xmm2, xmm7, [rbx+r11*8+256] vmulpd xmm2, xmm7, [rbx+r11*8-256] vmulpd ymm16, ymm13, ymm15 vmulpd ymm16, ymm13, [rbx] vmulpd ymm16, ymm13, [rbx+r11*8+256] vmulpd ymm16, ymm13, [rbx+r11*8-256] vmulpd zmm24, zmm24, zmm31 vmulpd zmm24, zmm24, [rbx] vmulpd zmm24, zmm24, [rbx+r11*8+256] vmulpd zmm24, zmm24, [rbx+r11*8-256] vmulps xmm2, xmm7, xmm0 vmulps xmm2, xmm7, [rbx] vmulps xmm2, xmm7, [rbx+r11*8+256] vmulps xmm2, xmm7, [rbx+r11*8-256] vmulps ymm16, ymm13, ymm15 vmulps ymm16, ymm13, [rbx] vmulps ymm16, ymm13, [rbx+r11*8+256] vmulps ymm16, ymm13, [rbx+r11*8-256] vmulps zmm24, zmm24, zmm31 vmulps zmm24, zmm24, [rbx] vmulps zmm24, zmm24, [rbx+r11*8+256] vmulps zmm24, zmm24, [rbx+r11*8-256] vmulsd xmm2, xmm7, xmm0 vmulsd xmm2, xmm7, [rbx] vmulsd xmm2, xmm7, [rbx+r11*8+256] vmulsd xmm2, xmm7, [rbx+r11*8-256] vmulss xmm2, xmm7, xmm0 vmulss xmm2, xmm7, [rbx] vmulss xmm2, xmm7, [rbx+r11*8+256] vmulss xmm2, xmm7, [rbx+r11*8-256] vorpd xmm2, xmm7, xmm0 vorpd xmm2, xmm7, [rbx] vorpd xmm2, xmm7, [rbx+r11*8+256] vorpd xmm2, xmm7, [rbx+r11*8-256] vorpd ymm16, ymm13, ymm15 vorpd ymm16, ymm13, [rbx] vorpd ymm16, ymm13, [rbx+r11*8+256] vorpd ymm16, ymm13, [rbx+r11*8-256] vorpd zmm24, zmm24, zmm31 vorpd zmm24, zmm24, [rbx] vorpd zmm24, zmm24, [rbx+r11*8+256] vorpd zmm24, zmm24, [rbx+r11*8-256] vorps xmm2, xmm7, xmm0 vorps xmm2, xmm7, [rbx] vorps xmm2, xmm7, [rbx+r11*8+256] vorps xmm2, xmm7, [rbx+r11*8-256] vorps ymm16, ymm13, ymm15 vorps ymm16, ymm13, [rbx] vorps ymm16, ymm13, [rbx+r11*8+256] vorps ymm16, ymm13, [rbx+r11*8-256] vorps zmm24, zmm24, zmm31 vorps zmm24, zmm24, [rbx] vorps zmm24, zmm24, [rbx+r11*8+256] vorps zmm24, zmm24, [rbx+r11*8-256] vpabsb xmm2, xmm0 vpabsb xmm2, [rbx] vpabsb xmm2, [rbx+r11*8+256] vpabsb xmm2, [rbx+r11*8-256] vpabsb ymm16, ymm15 vpabsb ymm16, [rbx] vpabsb ymm16, [rbx+r11*8+256] vpabsb ymm16, [rbx+r11*8-256] vpabsb zmm24, zmm31 vpabsb zmm24, [rbx] vpabsb zmm24, [rbx+r11*8+256] vpabsb zmm24, [rbx+r11*8-256] vpabsd xmm2, xmm0 vpabsd xmm2, [rbx] vpabsd xmm2, [rbx+r11*8+256] vpabsd xmm2, [rbx+r11*8-256] vpabsd ymm16, ymm15 vpabsd ymm16, [rbx] vpabsd ymm16, [rbx+r11*8+256] vpabsd ymm16, [rbx+r11*8-256] vpabsd zmm24, zmm31 vpabsd zmm24, [rbx] vpabsd zmm24, [rbx+r11*8+256] vpabsd zmm24, [rbx+r11*8-256] vpabsw xmm2, xmm0 vpabsw xmm2, [rbx] vpabsw xmm2, [rbx+r11*8+256] vpabsw xmm2, [rbx+r11*8-256] vpabsw ymm16, ymm15 vpabsw ymm16, [rbx] vpabsw ymm16, [rbx+r11*8+256] vpabsw ymm16, [rbx+r11*8-256] vpabsw zmm24, zmm31 vpabsw zmm24, [rbx] vpabsw zmm24, [rbx+r11*8+256] vpabsw zmm24, [rbx+r11*8-256] vpackssdw xmm2, xmm7, xmm0 vpackssdw xmm2, xmm7, [rbx] vpackssdw xmm2, xmm7, [rbx+r11*8+256] vpackssdw xmm2, xmm7, [rbx+r11*8-256] vpackssdw ymm16, ymm13, ymm15 vpackssdw ymm16, ymm13, [rbx] vpackssdw ymm16, ymm13, [rbx+r11*8+256] vpackssdw ymm16, ymm13, [rbx+r11*8-256] vpackssdw zmm24, zmm24, zmm31 vpackssdw zmm24, zmm24, [rbx] vpackssdw zmm24, zmm24, [rbx+r11*8+256] vpackssdw zmm24, zmm24, [rbx+r11*8-256] vpacksswb xmm2, xmm7, xmm0 vpacksswb xmm2, xmm7, [rbx] vpacksswb xmm2, xmm7, [rbx+r11*8+256] vpacksswb xmm2, xmm7, [rbx+r11*8-256] vpacksswb ymm16, ymm13, ymm15 vpacksswb ymm16, ymm13, [rbx] vpacksswb ymm16, ymm13, [rbx+r11*8+256] vpacksswb ymm16, ymm13, [rbx+r11*8-256] vpacksswb zmm24, zmm24, zmm31 vpacksswb zmm24, zmm24, [rbx] vpacksswb zmm24, zmm24, [rbx+r11*8+256] vpacksswb zmm24, zmm24, [rbx+r11*8-256] vpackusdw xmm2, xmm7, xmm0 vpackusdw xmm2, xmm7, [rbx] vpackusdw xmm2, xmm7, [rbx+r11*8+256] vpackusdw xmm2, xmm7, [rbx+r11*8-256] vpackusdw ymm16, ymm13, ymm15 vpackusdw ymm16, ymm13, [rbx] vpackusdw ymm16, ymm13, [rbx+r11*8+256] vpackusdw ymm16, ymm13, [rbx+r11*8-256] vpackusdw zmm24, zmm24, zmm31 vpackusdw zmm24, zmm24, [rbx] vpackusdw zmm24, zmm24, [rbx+r11*8+256] vpackusdw zmm24, zmm24, [rbx+r11*8-256] vpackuswb xmm2, xmm7, xmm0 vpackuswb xmm2, xmm7, [rbx] vpackuswb xmm2, xmm7, [rbx+r11*8+256] vpackuswb xmm2, xmm7, [rbx+r11*8-256] vpackuswb ymm16, ymm13, ymm15 vpackuswb ymm16, ymm13, [rbx] vpackuswb ymm16, ymm13, [rbx+r11*8+256] vpackuswb ymm16, ymm13, [rbx+r11*8-256] vpackuswb zmm24, zmm24, zmm31 vpackuswb zmm24, zmm24, [rbx] vpackuswb zmm24, zmm24, [rbx+r11*8+256] vpackuswb zmm24, zmm24, [rbx+r11*8-256] vpaddb xmm2, xmm7, xmm0 vpaddb xmm2, xmm7, [rbx] vpaddb xmm2, xmm7, [rbx+r11*8+256] vpaddb xmm2, xmm7, [rbx+r11*8-256] vpaddb ymm16, ymm13, ymm15 vpaddb ymm16, ymm13, [rbx] vpaddb ymm16, ymm13, [rbx+r11*8+256] vpaddb ymm16, ymm13, [rbx+r11*8-256] vpaddb zmm24, zmm24, zmm31 vpaddb zmm24, zmm24, [rbx] vpaddb zmm24, zmm24, [rbx+r11*8+256] vpaddb zmm24, zmm24, [rbx+r11*8-256] vpaddd xmm2, xmm7, xmm0 vpaddd xmm2, xmm7, [rbx] vpaddd xmm2, xmm7, [rbx+r11*8+256] vpaddd xmm2, xmm7, [rbx+r11*8-256] vpaddd ymm16, ymm13, ymm15 vpaddd ymm16, ymm13, [rbx] vpaddd ymm16, ymm13, [rbx+r11*8+256] vpaddd ymm16, ymm13, [rbx+r11*8-256] vpaddd zmm24, zmm24, zmm31 vpaddd zmm24, zmm24, [rbx] vpaddd zmm24, zmm24, [rbx+r11*8+256] vpaddd zmm24, zmm24, [rbx+r11*8-256] vpaddq xmm2, xmm7, xmm0 vpaddq xmm2, xmm7, [rbx] vpaddq xmm2, xmm7, [rbx+r11*8+256] vpaddq xmm2, xmm7, [rbx+r11*8-256] vpaddq ymm16, ymm13, ymm15 vpaddq ymm16, ymm13, [rbx] vpaddq ymm16, ymm13, [rbx+r11*8+256] vpaddq ymm16, ymm13, [rbx+r11*8-256] vpaddq zmm24, zmm24, zmm31 vpaddq zmm24, zmm24, [rbx] vpaddq zmm24, zmm24, [rbx+r11*8+256] vpaddq zmm24, zmm24, [rbx+r11*8-256] vpaddsb xmm2, xmm7, xmm0 vpaddsb xmm2, xmm7, [rbx] vpaddsb xmm2, xmm7, [rbx+r11*8+256] vpaddsb xmm2, xmm7, [rbx+r11*8-256] vpaddsb ymm16, ymm13, ymm15 vpaddsb ymm16, ymm13, [rbx] vpaddsb ymm16, ymm13, [rbx+r11*8+256] vpaddsb ymm16, ymm13, [rbx+r11*8-256] vpaddsb zmm24, zmm24, zmm31 vpaddsb zmm24, zmm24, [rbx] vpaddsb zmm24, zmm24, [rbx+r11*8+256] vpaddsb zmm24, zmm24, [rbx+r11*8-256] vpaddsw xmm2, xmm7, xmm0 vpaddsw xmm2, xmm7, [rbx] vpaddsw xmm2, xmm7, [rbx+r11*8+256] vpaddsw xmm2, xmm7, [rbx+r11*8-256] vpaddsw ymm16, ymm13, ymm15 vpaddsw ymm16, ymm13, [rbx] vpaddsw ymm16, ymm13, [rbx+r11*8+256] vpaddsw ymm16, ymm13, [rbx+r11*8-256] vpaddsw zmm24, zmm24, zmm31 vpaddsw zmm24, zmm24, [rbx] vpaddsw zmm24, zmm24, [rbx+r11*8+256] vpaddsw zmm24, zmm24, [rbx+r11*8-256] vpaddusb xmm2, xmm7, xmm0 vpaddusb xmm2, xmm7, [rbx] vpaddusb xmm2, xmm7, [rbx+r11*8+256] vpaddusb xmm2, xmm7, [rbx+r11*8-256] vpaddusb ymm16, ymm13, ymm15 vpaddusb ymm16, ymm13, [rbx] vpaddusb ymm16, ymm13, [rbx+r11*8+256] vpaddusb ymm16, ymm13, [rbx+r11*8-256] vpaddusb zmm24, zmm24, zmm31 vpaddusb zmm24, zmm24, [rbx] vpaddusb zmm24, zmm24, [rbx+r11*8+256] vpaddusb zmm24, zmm24, [rbx+r11*8-256] vpaddusw xmm2, xmm7, xmm0 vpaddusw xmm2, xmm7, [rbx] vpaddusw xmm2, xmm7, [rbx+r11*8+256] vpaddusw xmm2, xmm7, [rbx+r11*8-256] vpaddusw ymm16, ymm13, ymm15 vpaddusw ymm16, ymm13, [rbx] vpaddusw ymm16, ymm13, [rbx+r11*8+256] vpaddusw ymm16, ymm13, [rbx+r11*8-256] vpaddusw zmm24, zmm24, zmm31 vpaddusw zmm24, zmm24, [rbx] vpaddusw zmm24, zmm24, [rbx+r11*8+256] vpaddusw zmm24, zmm24, [rbx+r11*8-256] vpaddw xmm2, xmm7, xmm0 vpaddw xmm2, xmm7, [rbx] vpaddw xmm2, xmm7, [rbx+r11*8+256] vpaddw xmm2, xmm7, [rbx+r11*8-256] vpaddw ymm16, ymm13, ymm15 vpaddw ymm16, ymm13, [rbx] vpaddw ymm16, ymm13, [rbx+r11*8+256] vpaddw ymm16, ymm13, [rbx+r11*8-256] vpaddw zmm24, zmm24, zmm31 vpaddw zmm24, zmm24, [rbx] vpaddw zmm24, zmm24, [rbx+r11*8+256] vpaddw zmm24, zmm24, [rbx+r11*8-256] vpalignr xmm2, xmm7, xmm0, 0x90 vpalignr xmm2, xmm7, [rbx], 0x90 vpalignr xmm2, xmm7, [rbx+r11*8+256], 0x90 vpalignr xmm2, xmm7, [rbx+r11*8-256], 0x90 vpalignr ymm16, ymm13, ymm15, 0x90 vpalignr ymm16, ymm13, [rbx], 0x90 vpalignr ymm16, ymm13, [rbx+r11*8+256], 0x90 vpalignr ymm16, ymm13, [rbx+r11*8-256], 0x90 vpalignr zmm24, zmm24, zmm31, 0x90 vpalignr zmm24, zmm24, [rbx], 0x90 vpalignr zmm24, zmm24, [rbx+r11*8+256], 0x90 vpalignr zmm24, zmm24, [rbx+r11*8-256], 0x90 vpand xmm2, xmm7, xmm0 vpand xmm2, xmm7, [rbx] vpand xmm2, xmm7, [rbx+r11*8+256] vpand xmm2, xmm7, [rbx+r11*8-256] vpandn xmm2, xmm7, xmm0 vpandn xmm2, xmm7, [rbx] vpandn xmm2, xmm7, [rbx+r11*8+256] vpandn xmm2, xmm7, [rbx+r11*8-256] vpavgb xmm2, xmm7, xmm0 vpavgb xmm2, xmm7, [rbx] vpavgb xmm2, xmm7, [rbx+r11*8+256] vpavgb xmm2, xmm7, [rbx+r11*8-256] vpavgb ymm16, ymm13, ymm15 vpavgb ymm16, ymm13, [rbx] vpavgb ymm16, ymm13, [rbx+r11*8+256] vpavgb ymm16, ymm13, [rbx+r11*8-256] vpavgb zmm24, zmm24, zmm31 vpavgb zmm24, zmm24, [rbx] vpavgb zmm24, zmm24, [rbx+r11*8+256] vpavgb zmm24, zmm24, [rbx+r11*8-256] vpavgw xmm2, xmm7, xmm0 vpavgw xmm2, xmm7, [rbx] vpavgw xmm2, xmm7, [rbx+r11*8+256] vpavgw xmm2, xmm7, [rbx+r11*8-256] vpavgw ymm16, ymm13, ymm15 vpavgw ymm16, ymm13, [rbx] vpavgw ymm16, ymm13, [rbx+r11*8+256] vpavgw ymm16, ymm13, [rbx+r11*8-256] vpavgw zmm24, zmm24, zmm31 vpavgw zmm24, zmm24, [rbx] vpavgw zmm24, zmm24, [rbx+r11*8+256] vpavgw zmm24, zmm24, [rbx+r11*8-256] vpblendvb xmm2, xmm7, xmm0, xmm3 vpblendvb xmm2, xmm7, [rbx], xmm3 vpblendvb xmm2, xmm7, [rbx+r11*8+256], xmm3 vpblendvb xmm2, xmm7, [rbx+r11*8-256], xmm3 vpblendw xmm2, xmm7, xmm0, 0x90 vpblendw xmm2, xmm7, [rbx], 0x90 vpblendw xmm2, xmm7, [rbx+r11*8+256], 0x90 vpblendw xmm2, xmm7, [rbx+r11*8-256], 0x90 vpcmpeqb xmm2, xmm7, xmm0 vpcmpeqb xmm2, xmm7, [rbx] vpcmpeqb xmm2, xmm7, [rbx+r11*8+256] vpcmpeqb xmm2, xmm7, [rbx+r11*8-256] vpcmpeqd xmm2, xmm7, xmm0 vpcmpeqd xmm2, xmm7, [rbx] vpcmpeqd xmm2, xmm7, [rbx+r11*8+256] vpcmpeqd xmm2, xmm7, [rbx+r11*8-256] vpcmpeqq xmm2, xmm7, xmm0 vpcmpeqq xmm2, xmm7, [rbx] vpcmpeqq xmm2, xmm7, [rbx+r11*8+256] vpcmpeqq xmm2, xmm7, [rbx+r11*8-256] vpcmpeqw xmm2, xmm7, xmm0 vpcmpeqw xmm2, xmm7, [rbx] vpcmpeqw xmm2, xmm7, [rbx+r11*8+256] vpcmpeqw xmm2, xmm7, [rbx+r11*8-256] vpcmpestri xmm2, xmm0, 0x90 vpcmpestri xmm2, [rbx], 0x90 vpcmpestri xmm2, [rbx+r11*8+256], 0x90 vpcmpestri xmm2, [rbx+r11*8-256], 0x90 vpcmpestrm xmm2, xmm0, 0x90 vpcmpestrm xmm2, [rbx], 0x90 vpcmpestrm xmm2, [rbx+r11*8+256], 0x90 vpcmpestrm xmm2, [rbx+r11*8-256], 0x90 vpcmpgtb xmm2, xmm7, xmm0 vpcmpgtb xmm2, xmm7, [rbx] vpcmpgtb xmm2, xmm7, [rbx+r11*8+256] vpcmpgtb xmm2, xmm7, [rbx+r11*8-256] vpcmpgtd xmm2, xmm7, xmm0 vpcmpgtd xmm2, xmm7, [rbx] vpcmpgtd xmm2, xmm7, [rbx+r11*8+256] vpcmpgtd xmm2, xmm7, [rbx+r11*8-256] vpcmpgtq xmm2, xmm7, xmm0 vpcmpgtq xmm2, xmm7, [rbx] vpcmpgtq xmm2, xmm7, [rbx+r11*8+256] vpcmpgtq xmm2, xmm7, [rbx+r11*8-256] vpcmpgtw xmm2, xmm7, xmm0 vpcmpgtw xmm2, xmm7, [rbx] vpcmpgtw xmm2, xmm7, [rbx+r11*8+256] vpcmpgtw xmm2, xmm7, [rbx+r11*8-256] vpcmpistri xmm2, xmm0, 0x90 vpcmpistri xmm2, [rbx], 0x90 vpcmpistri xmm2, [rbx+r11*8+256], 0x90 vpcmpistri xmm2, [rbx+r11*8-256], 0x90 vpcmpistrm xmm2, xmm0, 0x90 vpcmpistrm xmm2, [rbx], 0x90 vpcmpistrm xmm2, [rbx+r11*8+256], 0x90 vpcmpistrm xmm2, [rbx+r11*8-256], 0x90 vpermilpd xmm2, xmm7, xmm0 vpermilpd xmm2, xmm7, [rbx] vpermilpd xmm2, xmm7, [rbx+r11*8+256] vpermilpd xmm2, xmm7, [rbx+r11*8-256] vpermilpd ymm16, ymm13, ymm15 vpermilpd ymm16, ymm13, [rbx] vpermilpd ymm16, ymm13, [rbx+r11*8+256] vpermilpd ymm16, ymm13, [rbx+r11*8-256] vpermilpd zmm24, zmm24, zmm31 vpermilpd zmm24, zmm24, [rbx] vpermilpd zmm24, zmm24, [rbx+r11*8+256] vpermilpd zmm24, zmm24, [rbx+r11*8-256] vpermilpd xmm2, xmm0, 0x90 vpermilpd xmm2, [rbx], 0x90 vpermilpd xmm2, [rbx+r11*8+256], 0x90 vpermilpd xmm2, [rbx+r11*8-256], 0x90 vpermilpd ymm16, ymm15, 0x90 vpermilpd ymm16, [rbx], 0x90 vpermilpd ymm16, [rbx+r11*8+256], 0x90 vpermilpd ymm16, [rbx+r11*8-256], 0x90 vpermilpd zmm24, zmm31, 0x90 vpermilpd zmm24, [rbx], 0x90 vpermilpd zmm24, [rbx+r11*8+256], 0x90 vpermilpd zmm24, [rbx+r11*8-256], 0x90 vpermilps xmm2, xmm7, xmm0 vpermilps xmm2, xmm7, [rbx] vpermilps xmm2, xmm7, [rbx+r11*8+256] vpermilps xmm2, xmm7, [rbx+r11*8-256] vpermilps ymm16, ymm13, ymm15 vpermilps ymm16, ymm13, [rbx] vpermilps ymm16, ymm13, [rbx+r11*8+256] vpermilps ymm16, ymm13, [rbx+r11*8-256] vpermilps zmm24, zmm24, zmm31 vpermilps zmm24, zmm24, [rbx] vpermilps zmm24, zmm24, [rbx+r11*8+256] vpermilps zmm24, zmm24, [rbx+r11*8-256] vpermilps xmm2, xmm0, 0x90 vpermilps xmm2, [rbx], 0x90 vpermilps xmm2, [rbx+r11*8+256], 0x90 vpermilps xmm2, [rbx+r11*8-256], 0x90 vpermilps ymm16, ymm15, 0x90 vpermilps ymm16, [rbx], 0x90 vpermilps ymm16, [rbx+r11*8+256], 0x90 vpermilps ymm16, [rbx+r11*8-256], 0x90 vpermilps zmm24, zmm31, 0x90 vpermilps zmm24, [rbx], 0x90 vpermilps zmm24, [rbx+r11*8+256], 0x90 vpermilps zmm24, [rbx+r11*8-256], 0x90 vpextrb [rbx], xmm2, 0x90 vpextrb [rbx+rsi*8+256], xmm2, 0x90 vpextrb [rbx+rsi*8-256], xmm2, 0x90 vpextrb cl, xmm2, 0x90 vpextrb cx, xmm2, 0x90 vpextrb ecx, xmm2, 0x90 vpextrb rcx, xmm2, 0x90 vpextrd ecx, xmm2, 0x90 vpextrd rcx, xmm2, 0x90 vpextrd [rbx], xmm2, 0x90 vpextrd [rbx+rsi*8+256], xmm2, 0x90 vpextrq rcx, xmm2, 0x90 vpextrq [rbx], xmm2, 0x90 vpextrq [rbx+rsi*8+256], xmm2, 0x90 vpextrw cx, xmm0, 0x90 vpextrw ecx, xmm0, 0x90 vpextrw rcx, xmm0, 0x90 vpextrw [rbx], xmm2, 0x90 vpextrw [rbx+rsi*8+256], xmm2, 0x90 vpextrw [rbx+rsi*8-256], xmm2, 0x90 vpextrw cx, xmm2, 0x90 vpextrw ecx, xmm2, 0x90 vpextrw rcx, xmm2, 0x90 vphaddd xmm2, xmm7, xmm0 vphaddd xmm2, xmm7, [rbx] vphaddd xmm2, xmm7, [rbx+r11*8+256] vphaddd xmm2, xmm7, [rbx+r11*8-256] vphaddsw xmm2, xmm7, xmm0 vphaddsw xmm2, xmm7, [rbx] vphaddsw xmm2, xmm7, [rbx+r11*8+256] vphaddsw xmm2, xmm7, [rbx+r11*8-256] vphaddw xmm2, xmm7, xmm0 vphaddw xmm2, xmm7, [rbx] vphaddw xmm2, xmm7, [rbx+r11*8+256] vphaddw xmm2, xmm7, [rbx+r11*8-256] vphminposuw xmm2, xmm0 vphminposuw xmm2, [rbx] vphminposuw xmm2, [rbx+r11*8+256] vphminposuw xmm2, [rbx+r11*8-256] vphsubd xmm2, xmm7, xmm0 vphsubd xmm2, xmm7, [rbx] vphsubd xmm2, xmm7, [rbx+r11*8+256] vphsubd xmm2, xmm7, [rbx+r11*8-256] vphsubsw xmm2, xmm7, xmm0 vphsubsw xmm2, xmm7, [rbx] vphsubsw xmm2, xmm7, [rbx+r11*8+256] vphsubsw xmm2, xmm7, [rbx+r11*8-256] vphsubw xmm2, xmm7, xmm0 vphsubw xmm2, xmm7, [rbx] vphsubw xmm2, xmm7, [rbx+r11*8+256] vphsubw xmm2, xmm7, [rbx+r11*8-256] vpinsrb xmm2, xmm7, [rbx], 0x90 vpinsrb xmm2, xmm7, [rbx+rsi*8+256], 0x90 vpinsrb xmm2, xmm7, [rbx+rsi*8-256], 0x90 vpinsrb xmm2, xmm7, cl, 0x90 vpinsrb xmm2, xmm7, ecx, 0x90 vpinsrd xmm2, xmm7, ecx, 0x90 vpinsrd xmm2, xmm7, [rbx], 0x90 vpinsrd xmm2, xmm7, [rbx+rsi*8+256], 0x90 vpinsrq xmm2, xmm7, rcx, 0x90 vpinsrq xmm2, xmm7, [rbx], 0x90 vpinsrq xmm2, xmm7, [rbx+rsi*8+256], 0x90 vpinsrw xmm2, xmm7, [rbx], 0x90 vpinsrw xmm2, xmm7, [rbx+rsi*8+256], 0x90 vpinsrw xmm2, xmm7, [rbx+rsi*8-256], 0x90 vpinsrw xmm2, xmm7, cx, 0x90 vpinsrw xmm2, xmm7, ecx, 0x90 vpmaddubsw xmm2, xmm7, xmm0 vpmaddubsw xmm2, xmm7, [rbx] vpmaddubsw xmm2, xmm7, [rbx+r11*8+256] vpmaddubsw xmm2, xmm7, [rbx+r11*8-256] vpmaddubsw ymm16, ymm13, ymm15 vpmaddubsw ymm16, ymm13, [rbx] vpmaddubsw ymm16, ymm13, [rbx+r11*8+256] vpmaddubsw ymm16, ymm13, [rbx+r11*8-256] vpmaddubsw zmm24, zmm24, zmm31 vpmaddubsw zmm24, zmm24, [rbx] vpmaddubsw zmm24, zmm24, [rbx+r11*8+256] vpmaddubsw zmm24, zmm24, [rbx+r11*8-256] vpmaddwd xmm2, xmm7, xmm0 vpmaddwd xmm2, xmm7, [rbx] vpmaddwd xmm2, xmm7, [rbx+r11*8+256] vpmaddwd xmm2, xmm7, [rbx+r11*8-256] vpmaddwd ymm16, ymm13, ymm15 vpmaddwd ymm16, ymm13, [rbx] vpmaddwd ymm16, ymm13, [rbx+r11*8+256] vpmaddwd ymm16, ymm13, [rbx+r11*8-256] vpmaddwd zmm24, zmm24, zmm31 vpmaddwd zmm24, zmm24, [rbx] vpmaddwd zmm24, zmm24, [rbx+r11*8+256] vpmaddwd zmm24, zmm24, [rbx+r11*8-256] vpmaxsb xmm2, xmm7, xmm0 vpmaxsb xmm2, xmm7, [rbx] vpmaxsb xmm2, xmm7, [rbx+r11*8+256] vpmaxsb xmm2, xmm7, [rbx+r11*8-256] vpmaxsb ymm16, ymm13, ymm15 vpmaxsb ymm16, ymm13, [rbx] vpmaxsb ymm16, ymm13, [rbx+r11*8+256] vpmaxsb ymm16, ymm13, [rbx+r11*8-256] vpmaxsb zmm24, zmm24, zmm31 vpmaxsb zmm24, zmm24, [rbx] vpmaxsb zmm24, zmm24, [rbx+r11*8+256] vpmaxsb zmm24, zmm24, [rbx+r11*8-256] vpmaxsd xmm2, xmm7, xmm0 vpmaxsd xmm2, xmm7, [rbx] vpmaxsd xmm2, xmm7, [rbx+r11*8+256] vpmaxsd xmm2, xmm7, [rbx+r11*8-256] vpmaxsd ymm16, ymm13, ymm15 vpmaxsd ymm16, ymm13, [rbx] vpmaxsd ymm16, ymm13, [rbx+r11*8+256] vpmaxsd ymm16, ymm13, [rbx+r11*8-256] vpmaxsd zmm24, zmm24, zmm31 vpmaxsd zmm24, zmm24, [rbx] vpmaxsd zmm24, zmm24, [rbx+r11*8+256] vpmaxsd zmm24, zmm24, [rbx+r11*8-256] vpmaxsw xmm2, xmm7, xmm0 vpmaxsw xmm2, xmm7, [rbx] vpmaxsw xmm2, xmm7, [rbx+r11*8+256] vpmaxsw xmm2, xmm7, [rbx+r11*8-256] vpmaxsw ymm16, ymm13, ymm15 vpmaxsw ymm16, ymm13, [rbx] vpmaxsw ymm16, ymm13, [rbx+r11*8+256] vpmaxsw ymm16, ymm13, [rbx+r11*8-256] vpmaxsw zmm24, zmm24, zmm31 vpmaxsw zmm24, zmm24, [rbx] vpmaxsw zmm24, zmm24, [rbx+r11*8+256] vpmaxsw zmm24, zmm24, [rbx+r11*8-256] vpmaxub xmm2, xmm7, xmm0 vpmaxub xmm2, xmm7, [rbx] vpmaxub xmm2, xmm7, [rbx+r11*8+256] vpmaxub xmm2, xmm7, [rbx+r11*8-256] vpmaxub ymm16, ymm13, ymm15 vpmaxub ymm16, ymm13, [rbx] vpmaxub ymm16, ymm13, [rbx+r11*8+256] vpmaxub ymm16, ymm13, [rbx+r11*8-256] vpmaxub zmm24, zmm24, zmm31 vpmaxub zmm24, zmm24, [rbx] vpmaxub zmm24, zmm24, [rbx+r11*8+256] vpmaxub zmm24, zmm24, [rbx+r11*8-256] vpmaxud xmm2, xmm7, xmm0 vpmaxud xmm2, xmm7, [rbx] vpmaxud xmm2, xmm7, [rbx+r11*8+256] vpmaxud xmm2, xmm7, [rbx+r11*8-256] vpmaxud ymm16, ymm13, ymm15 vpmaxud ymm16, ymm13, [rbx] vpmaxud ymm16, ymm13, [rbx+r11*8+256] vpmaxud ymm16, ymm13, [rbx+r11*8-256] vpmaxud zmm24, zmm24, zmm31 vpmaxud zmm24, zmm24, [rbx] vpmaxud zmm24, zmm24, [rbx+r11*8+256] vpmaxud zmm24, zmm24, [rbx+r11*8-256] vpmaxuw xmm2, xmm7, xmm0 vpmaxuw xmm2, xmm7, [rbx] vpmaxuw xmm2, xmm7, [rbx+r11*8+256] vpmaxuw xmm2, xmm7, [rbx+r11*8-256] vpmaxuw ymm16, ymm13, ymm15 vpmaxuw ymm16, ymm13, [rbx] vpmaxuw ymm16, ymm13, [rbx+r11*8+256] vpmaxuw ymm16, ymm13, [rbx+r11*8-256] vpmaxuw zmm24, zmm24, zmm31 vpmaxuw zmm24, zmm24, [rbx] vpmaxuw zmm24, zmm24, [rbx+r11*8+256] vpmaxuw zmm24, zmm24, [rbx+r11*8-256] vpminsb xmm2, xmm7, xmm0 vpminsb xmm2, xmm7, [rbx] vpminsb xmm2, xmm7, [rbx+r11*8+256] vpminsb xmm2, xmm7, [rbx+r11*8-256] vpminsb ymm16, ymm13, ymm15 vpminsb ymm16, ymm13, [rbx] vpminsb ymm16, ymm13, [rbx+r11*8+256] vpminsb ymm16, ymm13, [rbx+r11*8-256] vpminsb zmm24, zmm24, zmm31 vpminsb zmm24, zmm24, [rbx] vpminsb zmm24, zmm24, [rbx+r11*8+256] vpminsb zmm24, zmm24, [rbx+r11*8-256] vpminsd xmm2, xmm7, xmm0 vpminsd xmm2, xmm7, [rbx] vpminsd xmm2, xmm7, [rbx+r11*8+256] vpminsd xmm2, xmm7, [rbx+r11*8-256] vpminsd ymm16, ymm13, ymm15 vpminsd ymm16, ymm13, [rbx] vpminsd ymm16, ymm13, [rbx+r11*8+256] vpminsd ymm16, ymm13, [rbx+r11*8-256] vpminsd zmm24, zmm24, zmm31 vpminsd zmm24, zmm24, [rbx] vpminsd zmm24, zmm24, [rbx+r11*8+256] vpminsd zmm24, zmm24, [rbx+r11*8-256] vpminsw xmm2, xmm7, xmm0 vpminsw xmm2, xmm7, [rbx] vpminsw xmm2, xmm7, [rbx+r11*8+256] vpminsw xmm2, xmm7, [rbx+r11*8-256] vpminsw ymm16, ymm13, ymm15 vpminsw ymm16, ymm13, [rbx] vpminsw ymm16, ymm13, [rbx+r11*8+256] vpminsw ymm16, ymm13, [rbx+r11*8-256] vpminsw zmm24, zmm24, zmm31 vpminsw zmm24, zmm24, [rbx] vpminsw zmm24, zmm24, [rbx+r11*8+256] vpminsw zmm24, zmm24, [rbx+r11*8-256] vpminub xmm2, xmm7, xmm0 vpminub xmm2, xmm7, [rbx] vpminub xmm2, xmm7, [rbx+r11*8+256] vpminub xmm2, xmm7, [rbx+r11*8-256] vpminub ymm16, ymm13, ymm15 vpminub ymm16, ymm13, [rbx] vpminub ymm16, ymm13, [rbx+r11*8+256] vpminub ymm16, ymm13, [rbx+r11*8-256] vpminub zmm24, zmm24, zmm31 vpminub zmm24, zmm24, [rbx] vpminub zmm24, zmm24, [rbx+r11*8+256] vpminub zmm24, zmm24, [rbx+r11*8-256] vpminud xmm2, xmm7, xmm0 vpminud xmm2, xmm7, [rbx] vpminud xmm2, xmm7, [rbx+r11*8+256] vpminud xmm2, xmm7, [rbx+r11*8-256] vpminud ymm16, ymm13, ymm15 vpminud ymm16, ymm13, [rbx] vpminud ymm16, ymm13, [rbx+r11*8+256] vpminud ymm16, ymm13, [rbx+r11*8-256] vpminud zmm24, zmm24, zmm31 vpminud zmm24, zmm24, [rbx] vpminud zmm24, zmm24, [rbx+r11*8+256] vpminud zmm24, zmm24, [rbx+r11*8-256] vpminuw xmm2, xmm7, xmm0 vpminuw xmm2, xmm7, [rbx] vpminuw xmm2, xmm7, [rbx+r11*8+256] vpminuw xmm2, xmm7, [rbx+r11*8-256] vpminuw ymm16, ymm13, ymm15 vpminuw ymm16, ymm13, [rbx] vpminuw ymm16, ymm13, [rbx+r11*8+256] vpminuw ymm16, ymm13, [rbx+r11*8-256] vpminuw zmm24, zmm24, zmm31 vpminuw zmm24, zmm24, [rbx] vpminuw zmm24, zmm24, [rbx+r11*8+256] vpminuw zmm24, zmm24, [rbx+r11*8-256] vpmovmskb ecx, xmm0 vpmovmskb ecx, ymm15 vpmovmskb rcx, xmm0 vpmovmskb rcx, ymm15 vpmovsxbd xmm2, xmm0 vpmovsxbd xmm2, [rbx] vpmovsxbd xmm2, [rbx+r11*8+256] vpmovsxbd xmm2, [rbx+r11*8-256] vpmovsxbd ymm16, xmm0 vpmovsxbd ymm16, [rbx] vpmovsxbd ymm16, [rbx+r11*8+256] vpmovsxbd ymm16, [rbx+r11*8-256] vpmovsxbd zmm24, xmm0 vpmovsxbd zmm24, [rbx] vpmovsxbd zmm24, [rbx+r11*8+256] vpmovsxbd zmm24, [rbx+r11*8-256] vpmovsxbq xmm2, xmm0 vpmovsxbq xmm2, [rbx] vpmovsxbq xmm2, [rbx+r11*8+256] vpmovsxbq xmm2, [rbx+r11*8-256] vpmovsxbq ymm16, xmm0 vpmovsxbq ymm16, [rbx] vpmovsxbq ymm16, [rbx+r11*8+256] vpmovsxbq ymm16, [rbx+r11*8-256] vpmovsxbq zmm24, xmm0 vpmovsxbq zmm24, [rbx] vpmovsxbq zmm24, [rbx+r11*8+256] vpmovsxbq zmm24, [rbx+r11*8-256] vpmovsxbw xmm2, xmm0 vpmovsxbw xmm2, [rbx] vpmovsxbw xmm2, [rbx+r11*8+256] vpmovsxbw xmm2, [rbx+r11*8-256] vpmovsxbw ymm16, xmm0 vpmovsxbw ymm16, [rbx] vpmovsxbw ymm16, [rbx+r11*8+256] vpmovsxbw ymm16, [rbx+r11*8-256] vpmovsxbw zmm24, ymm15 vpmovsxbw zmm24, [rbx] vpmovsxbw zmm24, [rbx+r11*8+256] vpmovsxbw zmm24, [rbx+r11*8-256] vpmovsxdq xmm2, xmm0 vpmovsxdq xmm2, [rbx] vpmovsxdq xmm2, [rbx+r11*8+256] vpmovsxdq xmm2, [rbx+r11*8-256] vpmovsxdq ymm16, xmm0 vpmovsxdq ymm16, [rbx] vpmovsxdq ymm16, [rbx+r11*8+256] vpmovsxdq ymm16, [rbx+r11*8-256] vpmovsxdq zmm24, ymm15 vpmovsxdq zmm24, [rbx] vpmovsxdq zmm24, [rbx+r11*8+256] vpmovsxdq zmm24, [rbx+r11*8-256] vpmovsxwd xmm2, xmm0 vpmovsxwd xmm2, [rbx] vpmovsxwd xmm2, [rbx+r11*8+256] vpmovsxwd xmm2, [rbx+r11*8-256] vpmovsxwd ymm16, xmm0 vpmovsxwd ymm16, [rbx] vpmovsxwd ymm16, [rbx+r11*8+256] vpmovsxwd ymm16, [rbx+r11*8-256] vpmovsxwd zmm24, ymm15 vpmovsxwd zmm24, [rbx] vpmovsxwd zmm24, [rbx+r11*8+256] vpmovsxwd zmm24, [rbx+r11*8-256] vpmovsxwq xmm2, xmm0 vpmovsxwq xmm2, [rbx] vpmovsxwq xmm2, [rbx+r11*8+256] vpmovsxwq xmm2, [rbx+r11*8-256] vpmovsxwq ymm16, xmm0 vpmovsxwq ymm16, [rbx] vpmovsxwq ymm16, [rbx+r11*8+256] vpmovsxwq ymm16, [rbx+r11*8-256] vpmovsxwq zmm24, xmm0 vpmovsxwq zmm24, [rbx] vpmovsxwq zmm24, [rbx+r11*8+256] vpmovsxwq zmm24, [rbx+r11*8-256] vpmovzxbd xmm2, xmm0 vpmovzxbd xmm2, [rbx] vpmovzxbd xmm2, [rbx+r11*8+256] vpmovzxbd xmm2, [rbx+r11*8-256] vpmovzxbd ymm16, xmm0 vpmovzxbd ymm16, [rbx] vpmovzxbd ymm16, [rbx+r11*8+256] vpmovzxbd ymm16, [rbx+r11*8-256] vpmovzxbd zmm24, xmm0 vpmovzxbd zmm24, [rbx] vpmovzxbd zmm24, [rbx+r11*8+256] vpmovzxbd zmm24, [rbx+r11*8-256] vpmovzxbq xmm2, xmm0 vpmovzxbq xmm2, [rbx] vpmovzxbq xmm2, [rbx+r11*8+256] vpmovzxbq xmm2, [rbx+r11*8-256] vpmovzxbq ymm16, xmm0 vpmovzxbq ymm16, [rbx] vpmovzxbq ymm16, [rbx+r11*8+256] vpmovzxbq ymm16, [rbx+r11*8-256] vpmovzxbq zmm24, xmm0 vpmovzxbq zmm24, [rbx] vpmovzxbq zmm24, [rbx+r11*8+256] vpmovzxbq zmm24, [rbx+r11*8-256] vpmovzxbw xmm2, xmm0 vpmovzxbw xmm2, [rbx] vpmovzxbw xmm2, [rbx+r11*8+256] vpmovzxbw xmm2, [rbx+r11*8-256] vpmovzxbw ymm16, xmm0 vpmovzxbw ymm16, [rbx] vpmovzxbw ymm16, [rbx+r11*8+256] vpmovzxbw ymm16, [rbx+r11*8-256] vpmovzxbw zmm24, ymm15 vpmovzxbw zmm24, [rbx] vpmovzxbw zmm24, [rbx+r11*8+256] vpmovzxbw zmm24, [rbx+r11*8-256] vpmovzxdq xmm2, xmm0 vpmovzxdq xmm2, [rbx] vpmovzxdq xmm2, [rbx+r11*8+256] vpmovzxdq xmm2, [rbx+r11*8-256] vpmovzxdq ymm16, xmm0 vpmovzxdq ymm16, [rbx] vpmovzxdq ymm16, [rbx+r11*8+256] vpmovzxdq ymm16, [rbx+r11*8-256] vpmovzxdq zmm24, ymm15 vpmovzxdq zmm24, [rbx] vpmovzxdq zmm24, [rbx+r11*8+256] vpmovzxdq zmm24, [rbx+r11*8-256] vpmovzxwd xmm2, xmm0 vpmovzxwd xmm2, [rbx] vpmovzxwd xmm2, [rbx+r11*8+256] vpmovzxwd xmm2, [rbx+r11*8-256] vpmovzxwd ymm16, xmm0 vpmovzxwd ymm16, [rbx] vpmovzxwd ymm16, [rbx+r11*8+256] vpmovzxwd ymm16, [rbx+r11*8-256] vpmovzxwd zmm24, ymm15 vpmovzxwd zmm24, [rbx] vpmovzxwd zmm24, [rbx+r11*8+256] vpmovzxwd zmm24, [rbx+r11*8-256] vpmovzxwq xmm2, xmm0 vpmovzxwq xmm2, [rbx] vpmovzxwq xmm2, [rbx+r11*8+256] vpmovzxwq xmm2, [rbx+r11*8-256] vpmovzxwq ymm16, xmm0 vpmovzxwq ymm16, [rbx] vpmovzxwq ymm16, [rbx+r11*8+256] vpmovzxwq ymm16, [rbx+r11*8-256] vpmovzxwq zmm24, xmm0 vpmovzxwq zmm24, [rbx] vpmovzxwq zmm24, [rbx+r11*8+256] vpmovzxwq zmm24, [rbx+r11*8-256] vpmuldq xmm2, xmm7, xmm0 vpmuldq xmm2, xmm7, [rbx] vpmuldq xmm2, xmm7, [rbx+r11*8+256] vpmuldq xmm2, xmm7, [rbx+r11*8-256] vpmuldq ymm16, ymm13, ymm15 vpmuldq ymm16, ymm13, [rbx] vpmuldq ymm16, ymm13, [rbx+r11*8+256] vpmuldq ymm16, ymm13, [rbx+r11*8-256] vpmuldq zmm24, zmm24, zmm31 vpmuldq zmm24, zmm24, [rbx] vpmuldq zmm24, zmm24, [rbx+r11*8+256] vpmuldq zmm24, zmm24, [rbx+r11*8-256] vpmulhrsw xmm2, xmm7, xmm0 vpmulhrsw xmm2, xmm7, [rbx] vpmulhrsw xmm2, xmm7, [rbx+r11*8+256] vpmulhrsw xmm2, xmm7, [rbx+r11*8-256] vpmulhrsw ymm16, ymm13, ymm15 vpmulhrsw ymm16, ymm13, [rbx] vpmulhrsw ymm16, ymm13, [rbx+r11*8+256] vpmulhrsw ymm16, ymm13, [rbx+r11*8-256] vpmulhrsw zmm24, zmm24, zmm31 vpmulhrsw zmm24, zmm24, [rbx] vpmulhrsw zmm24, zmm24, [rbx+r11*8+256] vpmulhrsw zmm24, zmm24, [rbx+r11*8-256] vpmulhuw xmm2, xmm7, xmm0 vpmulhuw xmm2, xmm7, [rbx] vpmulhuw xmm2, xmm7, [rbx+r11*8+256] vpmulhuw xmm2, xmm7, [rbx+r11*8-256] vpmulhuw ymm16, ymm13, ymm15 vpmulhuw ymm16, ymm13, [rbx] vpmulhuw ymm16, ymm13, [rbx+r11*8+256] vpmulhuw ymm16, ymm13, [rbx+r11*8-256] vpmulhuw zmm24, zmm24, zmm31 vpmulhuw zmm24, zmm24, [rbx] vpmulhuw zmm24, zmm24, [rbx+r11*8+256] vpmulhuw zmm24, zmm24, [rbx+r11*8-256] vpmulhw xmm2, xmm7, xmm0 vpmulhw xmm2, xmm7, [rbx] vpmulhw xmm2, xmm7, [rbx+r11*8+256] vpmulhw xmm2, xmm7, [rbx+r11*8-256] vpmulhw ymm16, ymm13, ymm15 vpmulhw ymm16, ymm13, [rbx] vpmulhw ymm16, ymm13, [rbx+r11*8+256] vpmulhw ymm16, ymm13, [rbx+r11*8-256] vpmulhw zmm24, zmm24, zmm31 vpmulhw zmm24, zmm24, [rbx] vpmulhw zmm24, zmm24, [rbx+r11*8+256] vpmulhw zmm24, zmm24, [rbx+r11*8-256] vpmulld xmm2, xmm7, xmm0 vpmulld xmm2, xmm7, [rbx] vpmulld xmm2, xmm7, [rbx+r11*8+256] vpmulld xmm2, xmm7, [rbx+r11*8-256] vpmulld ymm16, ymm13, ymm15 vpmulld ymm16, ymm13, [rbx] vpmulld ymm16, ymm13, [rbx+r11*8+256] vpmulld ymm16, ymm13, [rbx+r11*8-256] vpmulld zmm24, zmm24, zmm31 vpmulld zmm24, zmm24, [rbx] vpmulld zmm24, zmm24, [rbx+r11*8+256] vpmulld zmm24, zmm24, [rbx+r11*8-256] vpmullw xmm2, xmm7, xmm0 vpmullw xmm2, xmm7, [rbx] vpmullw xmm2, xmm7, [rbx+r11*8+256] vpmullw xmm2, xmm7, [rbx+r11*8-256] vpmullw ymm16, ymm13, ymm15 vpmullw ymm16, ymm13, [rbx] vpmullw ymm16, ymm13, [rbx+r11*8+256] vpmullw ymm16, ymm13, [rbx+r11*8-256] vpmullw zmm24, zmm24, zmm31 vpmullw zmm24, zmm24, [rbx] vpmullw zmm24, zmm24, [rbx+r11*8+256] vpmullw zmm24, zmm24, [rbx+r11*8-256] vpmuludq xmm2, xmm7, xmm0 vpmuludq xmm2, xmm7, [rbx] vpmuludq xmm2, xmm7, [rbx+r11*8+256] vpmuludq xmm2, xmm7, [rbx+r11*8-256] vpmuludq ymm16, ymm13, ymm15 vpmuludq ymm16, ymm13, [rbx] vpmuludq ymm16, ymm13, [rbx+r11*8+256] vpmuludq ymm16, ymm13, [rbx+r11*8-256] vpmuludq zmm24, zmm24, zmm31 vpmuludq zmm24, zmm24, [rbx] vpmuludq zmm24, zmm24, [rbx+r11*8+256] vpmuludq zmm24, zmm24, [rbx+r11*8-256] vpor xmm2, xmm7, xmm0 vpor xmm2, xmm7, [rbx] vpor xmm2, xmm7, [rbx+r11*8+256] vpor xmm2, xmm7, [rbx+r11*8-256] vpsadbw xmm2, xmm7, xmm0 vpsadbw xmm2, xmm7, [rbx] vpsadbw xmm2, xmm7, [rbx+r11*8+256] vpsadbw xmm2, xmm7, [rbx+r11*8-256] vpsadbw ymm16, ymm13, ymm15 vpsadbw ymm16, ymm13, [rbx] vpsadbw ymm16, ymm13, [rbx+r11*8+256] vpsadbw ymm16, ymm13, [rbx+r11*8-256] vpsadbw zmm24, zmm24, zmm31 vpsadbw zmm24, zmm24, [rbx] vpsadbw zmm24, zmm24, [rbx+r11*8+256] vpsadbw zmm24, zmm24, [rbx+r11*8-256] vpshufb xmm2, xmm7, xmm0 vpshufb xmm2, xmm7, [rbx] vpshufb xmm2, xmm7, [rbx+r11*8+256] vpshufb xmm2, xmm7, [rbx+r11*8-256] vpshufb ymm16, ymm13, ymm15 vpshufb ymm16, ymm13, [rbx] vpshufb ymm16, ymm13, [rbx+r11*8+256] vpshufb ymm16, ymm13, [rbx+r11*8-256] vpshufb zmm24, zmm24, zmm31 vpshufb zmm24, zmm24, [rbx] vpshufb zmm24, zmm24, [rbx+r11*8+256] vpshufb zmm24, zmm24, [rbx+r11*8-256] vpshufd xmm2, xmm0, 0x90 vpshufd xmm2, [rbx], 0x90 vpshufd xmm2, [rbx+r11*8+256], 0x90 vpshufd xmm2, [rbx+r11*8-256], 0x90 vpshufd ymm16, ymm15, 0x90 vpshufd ymm16, [rbx], 0x90 vpshufd ymm16, [rbx+r11*8+256], 0x90 vpshufd ymm16, [rbx+r11*8-256], 0x90 vpshufd zmm24, zmm31, 0x90 vpshufd zmm24, [rbx], 0x90 vpshufd zmm24, [rbx+r11*8+256], 0x90 vpshufd zmm24, [rbx+r11*8-256], 0x90 vpshufhw xmm2, xmm0, 0x90 vpshufhw xmm2, [rbx], 0x90 vpshufhw xmm2, [rbx+r11*8+256], 0x90 vpshufhw xmm2, [rbx+r11*8-256], 0x90 vpshufhw ymm16, ymm15, 0x90 vpshufhw ymm16, [rbx], 0x90 vpshufhw ymm16, [rbx+r11*8+256], 0x90 vpshufhw ymm16, [rbx+r11*8-256], 0x90 vpshufhw zmm24, zmm31, 0x90 vpshufhw zmm24, [rbx], 0x90 vpshufhw zmm24, [rbx+r11*8+256], 0x90 vpshufhw zmm24, [rbx+r11*8-256], 0x90 vpshuflw xmm2, xmm0, 0x90 vpshuflw xmm2, [rbx], 0x90 vpshuflw xmm2, [rbx+r11*8+256], 0x90 vpshuflw xmm2, [rbx+r11*8-256], 0x90 vpshuflw ymm16, ymm15, 0x90 vpshuflw ymm16, [rbx], 0x90 vpshuflw ymm16, [rbx+r11*8+256], 0x90 vpshuflw ymm16, [rbx+r11*8-256], 0x90 vpshuflw zmm24, zmm31, 0x90 vpshuflw zmm24, [rbx], 0x90 vpshuflw zmm24, [rbx+r11*8+256], 0x90 vpshuflw zmm24, [rbx+r11*8-256], 0x90 vpsignb xmm2, xmm7, xmm0 vpsignb xmm2, xmm7, [rbx] vpsignb xmm2, xmm7, [rbx+r11*8+256] vpsignb xmm2, xmm7, [rbx+r11*8-256] vpsignd xmm2, xmm7, xmm0 vpsignd xmm2, xmm7, [rbx] vpsignd xmm2, xmm7, [rbx+r11*8+256] vpsignd xmm2, xmm7, [rbx+r11*8-256] vpsignw xmm2, xmm7, xmm0 vpsignw xmm2, xmm7, [rbx] vpsignw xmm2, xmm7, [rbx+r11*8+256] vpsignw xmm2, xmm7, [rbx+r11*8-256] vpslld xmm7, xmm0, 0x90 vpslld ymm13, ymm15, 0x90 vpslld zmm24, zmm31, 0x90 vpslld xmm2, xmm7, xmm0 vpslld xmm2, xmm7, [rbx] vpslld xmm2, xmm7, [rbx+r11*8+256] vpslld xmm2, xmm7, [rbx+r11*8-256] vpslld ymm16, ymm13, xmm0 vpslld ymm16, ymm13, [rbx] vpslld ymm16, ymm13, [rbx+r11*8+256] vpslld ymm16, ymm13, [rbx+r11*8-256] vpslld zmm24, zmm24, xmm0 vpslld zmm24, zmm24, [rbx] vpslld zmm24, zmm24, [rbx+r11*8+256] vpslld zmm24, zmm24, [rbx+r11*8-256] vpslldq xmm7, xmm0, 0x90 vpslldq ymm13, ymm15, 0x90 vpslldq zmm24, zmm31, 0x90 vpsllq xmm7, xmm0, 0x90 vpsllq ymm13, ymm15, 0x90 vpsllq zmm24, zmm31, 0x90 vpsllq xmm2, xmm7, xmm0 vpsllq xmm2, xmm7, [rbx] vpsllq xmm2, xmm7, [rbx+r11*8+256] vpsllq xmm2, xmm7, [rbx+r11*8-256] vpsllq ymm16, ymm13, xmm0 vpsllq ymm16, ymm13, [rbx] vpsllq ymm16, ymm13, [rbx+r11*8+256] vpsllq ymm16, ymm13, [rbx+r11*8-256] vpsllq zmm24, zmm24, xmm0 vpsllq zmm24, zmm24, [rbx] vpsllq zmm24, zmm24, [rbx+r11*8+256] vpsllq zmm24, zmm24, [rbx+r11*8-256] vpsllw xmm7, xmm0, 0x90 vpsllw ymm13, ymm15, 0x90 vpsllw zmm24, zmm31, 0x90 vpsllw xmm2, xmm7, xmm0 vpsllw xmm2, xmm7, [rbx] vpsllw xmm2, xmm7, [rbx+r11*8+256] vpsllw xmm2, xmm7, [rbx+r11*8-256] vpsllw ymm16, ymm13, xmm0 vpsllw ymm16, ymm13, [rbx] vpsllw ymm16, ymm13, [rbx+r11*8+256] vpsllw ymm16, ymm13, [rbx+r11*8-256] vpsllw zmm24, zmm24, xmm0 vpsllw zmm24, zmm24, [rbx] vpsllw zmm24, zmm24, [rbx+r11*8+256] vpsllw zmm24, zmm24, [rbx+r11*8-256] vpsrad xmm7, xmm0, 0x90 vpsrad ymm13, ymm15, 0x90 vpsrad zmm24, zmm31, 0x90 vpsrad xmm2, xmm7, xmm0 vpsrad xmm2, xmm7, [rbx] vpsrad xmm2, xmm7, [rbx+r11*8+256] vpsrad xmm2, xmm7, [rbx+r11*8-256] vpsrad ymm16, ymm13, xmm0 vpsrad ymm16, ymm13, [rbx] vpsrad ymm16, ymm13, [rbx+r11*8+256] vpsrad ymm16, ymm13, [rbx+r11*8-256] vpsrad zmm24, zmm24, xmm0 vpsrad zmm24, zmm24, [rbx] vpsrad zmm24, zmm24, [rbx+r11*8+256] vpsrad zmm24, zmm24, [rbx+r11*8-256] vpsraw xmm7, xmm0, 0x90 vpsraw ymm13, ymm15, 0x90 vpsraw zmm24, zmm31, 0x90 vpsraw xmm2, xmm7, xmm0 vpsraw xmm2, xmm7, [rbx] vpsraw xmm2, xmm7, [rbx+r11*8+256] vpsraw xmm2, xmm7, [rbx+r11*8-256] vpsraw ymm16, ymm13, xmm0 vpsraw ymm16, ymm13, [rbx] vpsraw ymm16, ymm13, [rbx+r11*8+256] vpsraw ymm16, ymm13, [rbx+r11*8-256] vpsraw zmm24, zmm24, xmm0 vpsraw zmm24, zmm24, [rbx] vpsraw zmm24, zmm24, [rbx+r11*8+256] vpsraw zmm24, zmm24, [rbx+r11*8-256] vpsrld xmm7, xmm0, 0x90 vpsrld ymm13, ymm15, 0x90 vpsrld zmm24, zmm31, 0x90 vpsrld xmm2, xmm7, xmm0 vpsrld xmm2, xmm7, [rbx] vpsrld xmm2, xmm7, [rbx+r11*8+256] vpsrld xmm2, xmm7, [rbx+r11*8-256] vpsrld ymm16, ymm13, xmm0 vpsrld ymm16, ymm13, [rbx] vpsrld ymm16, ymm13, [rbx+r11*8+256] vpsrld ymm16, ymm13, [rbx+r11*8-256] vpsrld zmm24, zmm24, xmm0 vpsrld zmm24, zmm24, [rbx] vpsrld zmm24, zmm24, [rbx+r11*8+256] vpsrld zmm24, zmm24, [rbx+r11*8-256] vpsrldq xmm7, xmm0, 0x90 vpsrldq ymm13, ymm15, 0x90 vpsrldq zmm24, zmm31, 0x90 vpsrlq xmm7, xmm0, 0x90 vpsrlq ymm13, ymm15, 0x90 vpsrlq zmm24, zmm31, 0x90 vpsrlq xmm2, xmm7, xmm0 vpsrlq xmm2, xmm7, [rbx] vpsrlq xmm2, xmm7, [rbx+r11*8+256] vpsrlq xmm2, xmm7, [rbx+r11*8-256] vpsrlq ymm16, ymm13, xmm0 vpsrlq ymm16, ymm13, [rbx] vpsrlq ymm16, ymm13, [rbx+r11*8+256] vpsrlq ymm16, ymm13, [rbx+r11*8-256] vpsrlq zmm24, zmm24, xmm0 vpsrlq zmm24, zmm24, [rbx] vpsrlq zmm24, zmm24, [rbx+r11*8+256] vpsrlq zmm24, zmm24, [rbx+r11*8-256] vpsrlw xmm7, xmm0, 0x90 vpsrlw ymm13, ymm15, 0x90 vpsrlw zmm24, zmm31, 0x90 vpsrlw xmm2, xmm7, xmm0 vpsrlw xmm2, xmm7, [rbx] vpsrlw xmm2, xmm7, [rbx+r11*8+256] vpsrlw xmm2, xmm7, [rbx+r11*8-256] vpsrlw ymm16, ymm13, xmm0 vpsrlw ymm16, ymm13, [rbx] vpsrlw ymm16, ymm13, [rbx+r11*8+256] vpsrlw ymm16, ymm13, [rbx+r11*8-256] vpsrlw zmm24, zmm24, xmm0 vpsrlw zmm24, zmm24, [rbx] vpsrlw zmm24, zmm24, [rbx+r11*8+256] vpsrlw zmm24, zmm24, [rbx+r11*8-256] vpsubb xmm2, xmm7, xmm0 vpsubb xmm2, xmm7, [rbx] vpsubb xmm2, xmm7, [rbx+r11*8+256] vpsubb xmm2, xmm7, [rbx+r11*8-256] vpsubb ymm16, ymm13, ymm15 vpsubb ymm16, ymm13, [rbx] vpsubb ymm16, ymm13, [rbx+r11*8+256] vpsubb ymm16, ymm13, [rbx+r11*8-256] vpsubb zmm24, zmm24, zmm31 vpsubb zmm24, zmm24, [rbx] vpsubb zmm24, zmm24, [rbx+r11*8+256] vpsubb zmm24, zmm24, [rbx+r11*8-256] vpsubd xmm2, xmm7, xmm0 vpsubd xmm2, xmm7, [rbx] vpsubd xmm2, xmm7, [rbx+r11*8+256] vpsubd xmm2, xmm7, [rbx+r11*8-256] vpsubd ymm16, ymm13, ymm15 vpsubd ymm16, ymm13, [rbx] vpsubd ymm16, ymm13, [rbx+r11*8+256] vpsubd ymm16, ymm13, [rbx+r11*8-256] vpsubd zmm24, zmm24, zmm31 vpsubd zmm24, zmm24, [rbx] vpsubd zmm24, zmm24, [rbx+r11*8+256] vpsubd zmm24, zmm24, [rbx+r11*8-256] vpsubq xmm2, xmm7, xmm0 vpsubq xmm2, xmm7, [rbx] vpsubq xmm2, xmm7, [rbx+r11*8+256] vpsubq xmm2, xmm7, [rbx+r11*8-256] vpsubq ymm16, ymm13, ymm15 vpsubq ymm16, ymm13, [rbx] vpsubq ymm16, ymm13, [rbx+r11*8+256] vpsubq ymm16, ymm13, [rbx+r11*8-256] vpsubq zmm24, zmm24, zmm31 vpsubq zmm24, zmm24, [rbx] vpsubq zmm24, zmm24, [rbx+r11*8+256] vpsubq zmm24, zmm24, [rbx+r11*8-256] vpsubsb xmm2, xmm7, xmm0 vpsubsb xmm2, xmm7, [rbx] vpsubsb xmm2, xmm7, [rbx+r11*8+256] vpsubsb xmm2, xmm7, [rbx+r11*8-256] vpsubsb ymm16, ymm13, ymm15 vpsubsb ymm16, ymm13, [rbx] vpsubsb ymm16, ymm13, [rbx+r11*8+256] vpsubsb ymm16, ymm13, [rbx+r11*8-256] vpsubsb zmm24, zmm24, zmm31 vpsubsb zmm24, zmm24, [rbx] vpsubsb zmm24, zmm24, [rbx+r11*8+256] vpsubsb zmm24, zmm24, [rbx+r11*8-256] vpsubsw xmm2, xmm7, xmm0 vpsubsw xmm2, xmm7, [rbx] vpsubsw xmm2, xmm7, [rbx+r11*8+256] vpsubsw xmm2, xmm7, [rbx+r11*8-256] vpsubsw ymm16, ymm13, ymm15 vpsubsw ymm16, ymm13, [rbx] vpsubsw ymm16, ymm13, [rbx+r11*8+256] vpsubsw ymm16, ymm13, [rbx+r11*8-256] vpsubsw zmm24, zmm24, zmm31 vpsubsw zmm24, zmm24, [rbx] vpsubsw zmm24, zmm24, [rbx+r11*8+256] vpsubsw zmm24, zmm24, [rbx+r11*8-256] vpsubusb xmm2, xmm7, xmm0 vpsubusb xmm2, xmm7, [rbx] vpsubusb xmm2, xmm7, [rbx+r11*8+256] vpsubusb xmm2, xmm7, [rbx+r11*8-256] vpsubusb ymm16, ymm13, ymm15 vpsubusb ymm16, ymm13, [rbx] vpsubusb ymm16, ymm13, [rbx+r11*8+256] vpsubusb ymm16, ymm13, [rbx+r11*8-256] vpsubusb zmm24, zmm24, zmm31 vpsubusb zmm24, zmm24, [rbx] vpsubusb zmm24, zmm24, [rbx+r11*8+256] vpsubusb zmm24, zmm24, [rbx+r11*8-256] vpsubusw xmm2, xmm7, xmm0 vpsubusw xmm2, xmm7, [rbx] vpsubusw xmm2, xmm7, [rbx+r11*8+256] vpsubusw xmm2, xmm7, [rbx+r11*8-256] vpsubusw ymm16, ymm13, ymm15 vpsubusw ymm16, ymm13, [rbx] vpsubusw ymm16, ymm13, [rbx+r11*8+256] vpsubusw ymm16, ymm13, [rbx+r11*8-256] vpsubusw zmm24, zmm24, zmm31 vpsubusw zmm24, zmm24, [rbx] vpsubusw zmm24, zmm24, [rbx+r11*8+256] vpsubusw zmm24, zmm24, [rbx+r11*8-256] vpsubw xmm2, xmm7, xmm0 vpsubw xmm2, xmm7, [rbx] vpsubw xmm2, xmm7, [rbx+r11*8+256] vpsubw xmm2, xmm7, [rbx+r11*8-256] vpsubw ymm16, ymm13, ymm15 vpsubw ymm16, ymm13, [rbx] vpsubw ymm16, ymm13, [rbx+r11*8+256] vpsubw ymm16, ymm13, [rbx+r11*8-256] vpsubw zmm24, zmm24, zmm31 vpsubw zmm24, zmm24, [rbx] vpsubw zmm24, zmm24, [rbx+r11*8+256] vpsubw zmm24, zmm24, [rbx+r11*8-256] vptest xmm2, xmm0 vptest xmm2, [rbx] vptest xmm2, [rbx+r11*8+256] vptest xmm2, [rbx+r11*8-256] vpunpckhbw xmm2, xmm7, xmm0 vpunpckhbw xmm2, xmm7, [rbx] vpunpckhbw xmm2, xmm7, [rbx+r11*8+256] vpunpckhbw xmm2, xmm7, [rbx+r11*8-256] vpunpckhbw ymm16, ymm13, ymm15 vpunpckhbw ymm16, ymm13, [rbx] vpunpckhbw ymm16, ymm13, [rbx+r11*8+256] vpunpckhbw ymm16, ymm13, [rbx+r11*8-256] vpunpckhbw zmm24, zmm24, zmm31 vpunpckhbw zmm24, zmm24, [rbx] vpunpckhbw zmm24, zmm24, [rbx+r11*8+256] vpunpckhbw zmm24, zmm24, [rbx+r11*8-256] vpunpckhdq xmm2, xmm7, xmm0 vpunpckhdq xmm2, xmm7, [rbx] vpunpckhdq xmm2, xmm7, [rbx+r11*8+256] vpunpckhdq xmm2, xmm7, [rbx+r11*8-256] vpunpckhdq ymm16, ymm13, ymm15 vpunpckhdq ymm16, ymm13, [rbx] vpunpckhdq ymm16, ymm13, [rbx+r11*8+256] vpunpckhdq ymm16, ymm13, [rbx+r11*8-256] vpunpckhdq zmm24, zmm24, zmm31 vpunpckhdq zmm24, zmm24, [rbx] vpunpckhdq zmm24, zmm24, [rbx+r11*8+256] vpunpckhdq zmm24, zmm24, [rbx+r11*8-256] vpunpckhqdq xmm2, xmm7, xmm0 vpunpckhqdq xmm2, xmm7, [rbx] vpunpckhqdq xmm2, xmm7, [rbx+r11*8+256] vpunpckhqdq xmm2, xmm7, [rbx+r11*8-256] vpunpckhqdq ymm16, ymm13, ymm15 vpunpckhqdq ymm16, ymm13, [rbx] vpunpckhqdq ymm16, ymm13, [rbx+r11*8+256] vpunpckhqdq ymm16, ymm13, [rbx+r11*8-256] vpunpckhqdq zmm24, zmm24, zmm31 vpunpckhqdq zmm24, zmm24, [rbx] vpunpckhqdq zmm24, zmm24, [rbx+r11*8+256] vpunpckhqdq zmm24, zmm24, [rbx+r11*8-256] vpunpckhwd xmm2, xmm7, xmm0 vpunpckhwd xmm2, xmm7, [rbx] vpunpckhwd xmm2, xmm7, [rbx+r11*8+256] vpunpckhwd xmm2, xmm7, [rbx+r11*8-256] vpunpckhwd ymm16, ymm13, ymm15 vpunpckhwd ymm16, ymm13, [rbx] vpunpckhwd ymm16, ymm13, [rbx+r11*8+256] vpunpckhwd ymm16, ymm13, [rbx+r11*8-256] vpunpckhwd zmm24, zmm24, zmm31 vpunpckhwd zmm24, zmm24, [rbx] vpunpckhwd zmm24, zmm24, [rbx+r11*8+256] vpunpckhwd zmm24, zmm24, [rbx+r11*8-256] vpunpcklbw xmm2, xmm7, xmm0 vpunpcklbw xmm2, xmm7, [rbx] vpunpcklbw xmm2, xmm7, [rbx+r11*8+256] vpunpcklbw xmm2, xmm7, [rbx+r11*8-256] vpunpcklbw ymm16, ymm13, ymm15 vpunpcklbw ymm16, ymm13, [rbx] vpunpcklbw ymm16, ymm13, [rbx+r11*8+256] vpunpcklbw ymm16, ymm13, [rbx+r11*8-256] vpunpcklbw zmm24, zmm24, zmm31 vpunpcklbw zmm24, zmm24, [rbx] vpunpcklbw zmm24, zmm24, [rbx+r11*8+256] vpunpcklbw zmm24, zmm24, [rbx+r11*8-256] vpunpckldq xmm2, xmm7, xmm0 vpunpckldq xmm2, xmm7, [rbx] vpunpckldq xmm2, xmm7, [rbx+r11*8+256] vpunpckldq xmm2, xmm7, [rbx+r11*8-256] vpunpckldq ymm16, ymm13, ymm15 vpunpckldq ymm16, ymm13, [rbx] vpunpckldq ymm16, ymm13, [rbx+r11*8+256] vpunpckldq ymm16, ymm13, [rbx+r11*8-256] vpunpckldq zmm24, zmm24, zmm31 vpunpckldq zmm24, zmm24, [rbx] vpunpckldq zmm24, zmm24, [rbx+r11*8+256] vpunpckldq zmm24, zmm24, [rbx+r11*8-256] vpunpcklqdq xmm2, xmm7, xmm0 vpunpcklqdq xmm2, xmm7, [rbx] vpunpcklqdq xmm2, xmm7, [rbx+r11*8+256] vpunpcklqdq xmm2, xmm7, [rbx+r11*8-256] vpunpcklqdq ymm16, ymm13, ymm15 vpunpcklqdq ymm16, ymm13, [rbx] vpunpcklqdq ymm16, ymm13, [rbx+r11*8+256] vpunpcklqdq ymm16, ymm13, [rbx+r11*8-256] vpunpcklqdq zmm24, zmm24, zmm31 vpunpcklqdq zmm24, zmm24, [rbx] vpunpcklqdq zmm24, zmm24, [rbx+r11*8+256] vpunpcklqdq zmm24, zmm24, [rbx+r11*8-256] vpunpcklwd xmm2, xmm7, xmm0 vpunpcklwd xmm2, xmm7, [rbx] vpunpcklwd xmm2, xmm7, [rbx+r11*8+256] vpunpcklwd xmm2, xmm7, [rbx+r11*8-256] vpunpcklwd ymm16, ymm13, ymm15 vpunpcklwd ymm16, ymm13, [rbx] vpunpcklwd ymm16, ymm13, [rbx+r11*8+256] vpunpcklwd ymm16, ymm13, [rbx+r11*8-256] vpunpcklwd zmm24, zmm24, zmm31 vpunpcklwd zmm24, zmm24, [rbx] vpunpcklwd zmm24, zmm24, [rbx+r11*8+256] vpunpcklwd zmm24, zmm24, [rbx+r11*8-256] vpxor xmm2, xmm7, xmm0 vpxor xmm2, xmm7, [rbx] vpxor xmm2, xmm7, [rbx+r11*8+256] vpxor xmm2, xmm7, [rbx+r11*8-256] vrcpps xmm2, xmm0 vrcpps xmm2, [rbx] vrcpps xmm2, [rbx+r11*8+256] vrcpps xmm2, [rbx+r11*8-256] vrcpss xmm2, xmm7, xmm0 vrcpss xmm2, xmm7, [rbx] vrcpss xmm2, xmm7, [rbx+r11*8+256] vrcpss xmm2, xmm7, [rbx+r11*8-256] vroundpd xmm2, xmm0, 0x90 vroundpd xmm2, [rbx], 0x90 vroundpd xmm2, [rbx+r11*8+256], 0x90 vroundpd xmm2, [rbx+r11*8-256], 0x90 vroundps xmm2, xmm0, 0x90 vroundps xmm2, [rbx], 0x90 vroundps xmm2, [rbx+r11*8+256], 0x90 vroundps xmm2, [rbx+r11*8-256], 0x90 vroundsd xmm2, xmm7, xmm0, 0x90 vroundsd xmm2, xmm7, [rbx], 0x90 vroundsd xmm2, xmm7, [rbx+r11*8+256], 0x90 vroundsd xmm2, xmm7, [rbx+r11*8-256], 0x90 vroundss xmm2, xmm7, xmm0, 0x90 vroundss xmm2, xmm7, [rbx], 0x90 vroundss xmm2, xmm7, [rbx+r11*8+256], 0x90 vroundss xmm2, xmm7, [rbx+r11*8-256], 0x90 vrsqrtps xmm2, xmm0 vrsqrtps xmm2, [rbx] vrsqrtps xmm2, [rbx+r11*8+256] vrsqrtps xmm2, [rbx+r11*8-256] vrsqrtss xmm2, xmm7, xmm0 vrsqrtss xmm2, xmm7, [rbx] vrsqrtss xmm2, xmm7, [rbx+r11*8+256] vrsqrtss xmm2, xmm7, [rbx+r11*8-256] vshufpd xmm2, xmm7, xmm0, 0x90 vshufpd xmm2, xmm7, [rbx], 0x90 vshufpd xmm2, xmm7, [rbx+r11*8+256], 0x90 vshufpd xmm2, xmm7, [rbx+r11*8-256], 0x90 vshufpd ymm16, ymm13, ymm15, 0x90 vshufpd ymm16, ymm13, [rbx], 0x90 vshufpd ymm16, ymm13, [rbx+r11*8+256], 0x90 vshufpd ymm16, ymm13, [rbx+r11*8-256], 0x90 vshufpd zmm24, zmm24, zmm31, 0x90 vshufpd zmm24, zmm24, [rbx], 0x90 vshufpd zmm24, zmm24, [rbx+r11*8+256], 0x90 vshufpd zmm24, zmm24, [rbx+r11*8-256], 0x90 vshufps xmm2, xmm7, xmm0, 0x90 vshufps xmm2, xmm7, [rbx], 0x90 vshufps xmm2, xmm7, [rbx+r11*8+256], 0x90 vshufps xmm2, xmm7, [rbx+r11*8-256], 0x90 vshufps ymm16, ymm13, ymm15, 0x90 vshufps ymm16, ymm13, [rbx], 0x90 vshufps ymm16, ymm13, [rbx+r11*8+256], 0x90 vshufps ymm16, ymm13, [rbx+r11*8-256], 0x90 vshufps zmm24, zmm24, zmm31, 0x90 vshufps zmm24, zmm24, [rbx], 0x90 vshufps zmm24, zmm24, [rbx+r11*8+256], 0x90 vshufps zmm24, zmm24, [rbx+r11*8-256], 0x90 vsqrtpd xmm2, xmm0 vsqrtpd xmm2, [rbx] vsqrtpd xmm2, [rbx+r11*8+256] vsqrtpd xmm2, [rbx+r11*8-256] vsqrtpd ymm16, ymm15 vsqrtpd ymm16, [rbx] vsqrtpd ymm16, [rbx+r11*8+256] vsqrtpd ymm16, [rbx+r11*8-256] vsqrtpd zmm24, zmm31 vsqrtpd zmm24, [rbx] vsqrtpd zmm24, [rbx+r11*8+256] vsqrtpd zmm24, [rbx+r11*8-256] vsqrtps xmm2, xmm0 vsqrtps xmm2, [rbx] vsqrtps xmm2, [rbx+r11*8+256] vsqrtps xmm2, [rbx+r11*8-256] vsqrtps ymm16, ymm15 vsqrtps ymm16, [rbx] vsqrtps ymm16, [rbx+r11*8+256] vsqrtps ymm16, [rbx+r11*8-256] vsqrtps zmm24, zmm31 vsqrtps zmm24, [rbx] vsqrtps zmm24, [rbx+r11*8+256] vsqrtps zmm24, [rbx+r11*8-256] vsqrtsd xmm2, xmm7, xmm0 vsqrtsd xmm2, xmm7, [rbx] vsqrtsd xmm2, xmm7, [rbx+r11*8+256] vsqrtsd xmm2, xmm7, [rbx+r11*8-256] vsqrtss xmm2, xmm7, xmm0 vsqrtss xmm2, xmm7, [rbx] vsqrtss xmm2, xmm7, [rbx+r11*8+256] vsqrtss xmm2, xmm7, [rbx+r11*8-256] vstmxcsr [rbx] vstmxcsr [rbx+rsi*8+256] vstmxcsr [rbx+rsi*8-256] vsubpd xmm2, xmm7, xmm0 vsubpd xmm2, xmm7, [rbx] vsubpd xmm2, xmm7, [rbx+r11*8+256] vsubpd xmm2, xmm7, [rbx+r11*8-256] vsubpd ymm16, ymm13, ymm15 vsubpd ymm16, ymm13, [rbx] vsubpd ymm16, ymm13, [rbx+r11*8+256] vsubpd ymm16, ymm13, [rbx+r11*8-256] vsubpd zmm24, zmm24, zmm31 vsubpd zmm24, zmm24, [rbx] vsubpd zmm24, zmm24, [rbx+r11*8+256] vsubpd zmm24, zmm24, [rbx+r11*8-256] vsubps xmm2, xmm7, xmm0 vsubps xmm2, xmm7, [rbx] vsubps xmm2, xmm7, [rbx+r11*8+256] vsubps xmm2, xmm7, [rbx+r11*8-256] vsubps ymm16, ymm13, ymm15 vsubps ymm16, ymm13, [rbx] vsubps ymm16, ymm13, [rbx+r11*8+256] vsubps ymm16, ymm13, [rbx+r11*8-256] vsubps zmm24, zmm24, zmm31 vsubps zmm24, zmm24, [rbx] vsubps zmm24, zmm24, [rbx+r11*8+256] vsubps zmm24, zmm24, [rbx+r11*8-256] vsubsd xmm2, xmm7, xmm0 vsubsd xmm2, xmm7, [rbx] vsubsd xmm2, xmm7, [rbx+r11*8+256] vsubsd xmm2, xmm7, [rbx+r11*8-256] vsubss xmm2, xmm7, xmm0 vsubss xmm2, xmm7, [rbx] vsubss xmm2, xmm7, [rbx+r11*8+256] vsubss xmm2, xmm7, [rbx+r11*8-256] vtestpd xmm2, xmm0 vtestpd xmm2, [rbx] vtestpd xmm2, [rbx+r11*8+256] vtestpd xmm2, [rbx+r11*8-256] vtestps xmm2, xmm0 vtestps xmm2, [rbx] vtestps xmm2, [rbx+r11*8+256] vtestps xmm2, [rbx+r11*8-256] vucomisd xmm2, xmm0 vucomisd xmm2, [rbx] vucomisd xmm2, [rbx+r11*8+256] vucomisd xmm2, [rbx+r11*8-256] vucomiss xmm2, xmm0 vucomiss xmm2, [rbx] vucomiss xmm2, [rbx+r11*8+256] vucomiss xmm2, [rbx+r11*8-256] vunpckhpd xmm2, xmm7, xmm0 vunpckhpd xmm2, xmm7, [rbx] vunpckhpd xmm2, xmm7, [rbx+r11*8+256] vunpckhpd xmm2, xmm7, [rbx+r11*8-256] vunpckhpd ymm16, ymm13, ymm15 vunpckhpd ymm16, ymm13, [rbx] vunpckhpd ymm16, ymm13, [rbx+r11*8+256] vunpckhpd ymm16, ymm13, [rbx+r11*8-256] vunpckhpd zmm24, zmm24, zmm31 vunpckhpd zmm24, zmm24, [rbx] vunpckhpd zmm24, zmm24, [rbx+r11*8+256] vunpckhpd zmm24, zmm24, [rbx+r11*8-256] vunpckhps xmm2, xmm7, xmm0 vunpckhps xmm2, xmm7, [rbx] vunpckhps xmm2, xmm7, [rbx+r11*8+256] vunpckhps xmm2, xmm7, [rbx+r11*8-256] vunpckhps ymm16, ymm13, ymm15 vunpckhps ymm16, ymm13, [rbx] vunpckhps ymm16, ymm13, [rbx+r11*8+256] vunpckhps ymm16, ymm13, [rbx+r11*8-256] vunpckhps zmm24, zmm24, zmm31 vunpckhps zmm24, zmm24, [rbx] vunpckhps zmm24, zmm24, [rbx+r11*8+256] vunpckhps zmm24, zmm24, [rbx+r11*8-256] vunpcklpd xmm2, xmm7, xmm0 vunpcklpd xmm2, xmm7, [rbx] vunpcklpd xmm2, xmm7, [rbx+r11*8+256] vunpcklpd xmm2, xmm7, [rbx+r11*8-256] vunpcklpd ymm16, ymm13, ymm15 vunpcklpd ymm16, ymm13, [rbx] vunpcklpd ymm16, ymm13, [rbx+r11*8+256] vunpcklpd ymm16, ymm13, [rbx+r11*8-256] vunpcklpd zmm24, zmm24, zmm31 vunpcklpd zmm24, zmm24, [rbx] vunpcklpd zmm24, zmm24, [rbx+r11*8+256] vunpcklpd zmm24, zmm24, [rbx+r11*8-256] vunpcklps xmm2, xmm7, xmm0 vunpcklps xmm2, xmm7, [rbx] vunpcklps xmm2, xmm7, [rbx+r11*8+256] vunpcklps xmm2, xmm7, [rbx+r11*8-256] vunpcklps ymm16, ymm13, ymm15 vunpcklps ymm16, ymm13, [rbx] vunpcklps ymm16, ymm13, [rbx+r11*8+256] vunpcklps ymm16, ymm13, [rbx+r11*8-256] vunpcklps zmm24, zmm24, zmm31 vunpcklps zmm24, zmm24, [rbx] vunpcklps zmm24, zmm24, [rbx+r11*8+256] vunpcklps zmm24, zmm24, [rbx+r11*8-256] vxorpd xmm2, xmm7, xmm0 vxorpd xmm2, xmm7, [rbx] vxorpd xmm2, xmm7, [rbx+r11*8+256] vxorpd xmm2, xmm7, [rbx+r11*8-256] vxorpd ymm16, ymm13, ymm15 vxorpd ymm16, ymm13, [rbx] vxorpd ymm16, ymm13, [rbx+r11*8+256] vxorpd ymm16, ymm13, [rbx+r11*8-256] vxorpd zmm24, zmm24, zmm31 vxorpd zmm24, zmm24, [rbx] vxorpd zmm24, zmm24, [rbx+r11*8+256] vxorpd zmm24, zmm24, [rbx+r11*8-256] vxorps xmm2, xmm7, xmm0 vxorps xmm2, xmm7, [rbx] vxorps xmm2, xmm7, [rbx+r11*8+256] vxorps xmm2, xmm7, [rbx+r11*8-256] vxorps ymm16, ymm13, ymm15 vxorps ymm16, ymm13, [rbx] vxorps ymm16, ymm13, [rbx+r11*8+256] vxorps ymm16, ymm13, [rbx+r11*8-256] vxorps zmm24, zmm24, zmm31 vxorps zmm24, zmm24, [rbx] vxorps zmm24, zmm24, [rbx+r11*8+256] vxorps zmm24, zmm24, [rbx+r11*8-256]
test/Fail/Issue1209-4.agda
cruhland/agda
1,989
15069
<filename>test/Fail/Issue1209-4.agda {-# OPTIONS --safe --no-sized-types #-} open import Agda.Builtin.Size record Stream (A : Set) (i : Size) : Set where coinductive field head : A tail : {j : Size< i} → Stream A j open Stream destroy-guardedness : ∀ {A i} → Stream A i → Stream A i destroy-guardedness xs .head = xs .head destroy-guardedness xs .tail = xs .tail repeat : ∀ {A i} → A → Stream A i repeat x .head = x repeat x .tail = destroy-guardedness (repeat x)
SVD2ada/svd/stm32_svd-sai.ads
JCGobbi/Nucleo-STM32H743ZI
0
5920
<gh_stars>0 pragma Style_Checks (Off); -- This spec has been automatically generated from STM32H743x.svd pragma Restrictions (No_Elaboration_Code); with HAL; with System; package STM32_SVD.SAI is pragma Preelaborate; --------------- -- Registers -- --------------- subtype GCR_SYNCIN_Field is HAL.UInt2; subtype GCR_SYNCOUT_Field is HAL.UInt2; -- Global configuration register type GCR_Register is record -- Synchronization inputs SYNCIN : GCR_SYNCIN_Field := 16#0#; -- unspecified Reserved_2_3 : HAL.UInt2 := 16#0#; -- Synchronization outputs These bits are set and cleared by software. SYNCOUT : GCR_SYNCOUT_Field := 16#0#; -- unspecified Reserved_6_31 : HAL.UInt26 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for GCR_Register use record SYNCIN at 0 range 0 .. 1; Reserved_2_3 at 0 range 2 .. 3; SYNCOUT at 0 range 4 .. 5; Reserved_6_31 at 0 range 6 .. 31; end record; subtype ACR1_MODE_Field is HAL.UInt2; subtype ACR1_PRTCFG_Field is HAL.UInt2; subtype ACR1_DS_Field is HAL.UInt3; subtype ACR1_SYNCEN_Field is HAL.UInt2; subtype ACR1_MCKDIV_Field is HAL.UInt6; -- Configuration register 1 type ACR1_Register is record -- SAIx audio block mode immediately MODE : ACR1_MODE_Field := 16#0#; -- Protocol configuration. These bits are set and cleared by software. -- These bits have to be configured when the audio block is disabled. PRTCFG : ACR1_PRTCFG_Field := 16#0#; -- unspecified Reserved_4_4 : HAL.Bit := 16#0#; -- Data size. These bits are set and cleared by software. These bits are -- ignored when the SPDIF protocols are selected (bit PRTCFG[1:0]), -- because the frame and the data size are fixed in such case. When the -- companding mode is selected through COMP[1:0] bits, DS[1:0] are -- ignored since the data size is fixed to 8 bits by the algorithm. -- These bits must be configured when the audio block is disabled. DS : ACR1_DS_Field := 16#2#; -- Least significant bit first. This bit is set and cleared by software. -- It must be configured when the audio block is disabled. This bit has -- no meaning in AC97 audio protocol since AC97 data are always -- transferred with the MSB first. This bit has no meaning in SPDIF -- audio protocol since in SPDIF data are always transferred with LSB -- first. LSBFIRST : Boolean := False; -- Clock strobing edge. This bit is set and cleared by software. It must -- be configured when the audio block is disabled. This bit has no -- meaning in SPDIF audio protocol. CKSTR : Boolean := False; -- Synchronization enable. These bits are set and cleared by software. -- They must be configured when the audio sub-block is disabled. Note: -- The audio sub-block should be configured as asynchronous when SPDIF -- mode is enabled. SYNCEN : ACR1_SYNCEN_Field := 16#0#; -- Mono mode. This bit is set and cleared by software. It is meaningful -- only when the number of slots is equal to 2. When the mono mode is -- selected, slot 0 data are duplicated on slot 1 when the audio block -- operates as a transmitter. In reception mode, the slot1 is discarded -- and only the data received from slot 0 are stored. Refer to Section: -- Mono/stereo mode for more details. MONO : Boolean := False; -- Output drive. This bit is set and cleared by software. Note: This bit -- has to be set before enabling the audio block and after the audio -- block configuration. OUTDRIV : Boolean := False; -- unspecified Reserved_14_15 : HAL.UInt2 := 16#0#; -- Audio block enable where x is A or B. This bit is set by software. To -- switch off the audio block, the application software must program -- this bit to 0 and poll the bit till it reads back 0, meaning that the -- block is completely disabled. Before setting this bit to 1, check -- that it is set to 0, otherwise the enable command will not be taken -- into account. This bit allows to control the state of SAIx audio -- block. If it is disabled when an audio frame transfer is ongoing, the -- ongoing transfer completes and the cell is fully disabled at the end -- of this audio frame transfer. Note: When SAIx block is configured in -- master mode, the clock must be present on the input of SAIx before -- setting SAIXEN bit. SAIEN : Boolean := False; -- DMA enable. This bit is set and cleared by software. Note: Since the -- audio block defaults to operate as a transmitter after reset, the -- MODE[1:0] bits must be configured before setting DMAEN to avoid a DMA -- request in receiver mode. DMAEN : Boolean := False; -- unspecified Reserved_18_18 : HAL.Bit := 16#0#; -- No divider NOMCK : Boolean := False; -- Master clock divider. These bits are set and cleared by software. -- These bits are meaningless when the audio block operates in slave -- mode. They have to be configured when the audio block is disabled. -- Others: the master clock frequency is calculated accordingly to the -- following formula: MCKDIV : ACR1_MCKDIV_Field := 16#0#; -- Oversampling ratio for master clock OSR : Boolean := False; -- unspecified Reserved_27_31 : HAL.UInt5 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for ACR1_Register use record MODE at 0 range 0 .. 1; PRTCFG at 0 range 2 .. 3; Reserved_4_4 at 0 range 4 .. 4; DS at 0 range 5 .. 7; LSBFIRST at 0 range 8 .. 8; CKSTR at 0 range 9 .. 9; SYNCEN at 0 range 10 .. 11; MONO at 0 range 12 .. 12; OUTDRIV at 0 range 13 .. 13; Reserved_14_15 at 0 range 14 .. 15; SAIEN at 0 range 16 .. 16; DMAEN at 0 range 17 .. 17; Reserved_18_18 at 0 range 18 .. 18; NOMCK at 0 range 19 .. 19; MCKDIV at 0 range 20 .. 25; OSR at 0 range 26 .. 26; Reserved_27_31 at 0 range 27 .. 31; end record; subtype ACR2_FTH_Field is HAL.UInt3; subtype ACR2_MUTECNT_Field is HAL.UInt6; subtype ACR2_COMP_Field is HAL.UInt2; -- Configuration register 2 type ACR2_Register is record -- FIFO threshold. This bit is set and cleared by software. FTH : ACR2_FTH_Field := 16#0#; -- Write-only. FIFO flush. This bit is set by software. It is always -- read as 0. This bit should be configured when the SAI is disabled. FFLUSH : Boolean := False; -- Tristate management on data line. This bit is set and cleared by -- software. It is meaningful only if the audio block is configured as a -- transmitter. This bit is not used when the audio block is configured -- in SPDIF mode. It should be configured when SAI is disabled. Refer to -- Section: Output data line management on an inactive slot for more -- details. TRIS : Boolean := False; -- Mute. This bit is set and cleared by software. It is meaningful only -- when the audio block operates as a transmitter. The MUTE value is -- linked to value of MUTEVAL if the number of slots is lower or equal -- to 2, or equal to 0 if it is greater than 2. Refer to Section: Mute -- mode for more details. Note: This bit is meaningless and should not -- be used for SPDIF audio blocks. MUTE : Boolean := False; -- Mute value. This bit is set and cleared by software.It must be -- written before enabling the audio block: SAIXEN. This bit is -- meaningful only when the audio block operates as a transmitter, the -- number of slots is lower or equal to 2 and the MUTE bit is set. If -- more slots are declared, the bit value sent during the transmission -- in mute mode is equal to 0, whatever the value of MUTEVAL. if the -- number of slot is lower or equal to 2 and MUTEVAL = 1, the MUTE value -- transmitted for each slot is the one sent during the previous frame. -- Refer to Section: Mute mode for more details. Note: This bit is -- meaningless and should not be used for SPDIF audio blocks. MUTEVAL : Boolean := False; -- Mute counter. These bits are set and cleared by software. They are -- used only in reception mode. The value set in these bits is compared -- to the number of consecutive mute frames detected in reception. When -- the number of mute frames is equal to this value, the flag MUTEDET -- will be set and an interrupt will be generated if bit MUTEDETIE is -- set. Refer to Section: Mute mode for more details. MUTECNT : ACR2_MUTECNT_Field := 16#0#; -- Complement bit. This bit is set and cleared by software. It defines -- the type of complement to be used for companding mode Note: This bit -- has effect only when the companding mode is -Law algorithm or A-Law -- algorithm. CPL : Boolean := False; -- Companding mode. These bits are set and cleared by software. The -Law -- and the A-Law log are a part of the CCITT G.711 recommendation, the -- type of complement that will be used depends on CPL bit. The data -- expansion or data compression are determined by the state of bit -- MODE[0]. The data compression is applied if the audio block is -- configured as a transmitter. The data expansion is automatically -- applied when the audio block is configured as a receiver. Refer to -- Section: Companding mode for more details. Note: Companding mode is -- applicable only when TDM is selected. COMP : ACR2_COMP_Field := 16#0#; -- unspecified Reserved_16_31 : HAL.UInt16 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for ACR2_Register use record FTH at 0 range 0 .. 2; FFLUSH at 0 range 3 .. 3; TRIS at 0 range 4 .. 4; MUTE at 0 range 5 .. 5; MUTEVAL at 0 range 6 .. 6; MUTECNT at 0 range 7 .. 12; CPL at 0 range 13 .. 13; COMP at 0 range 14 .. 15; Reserved_16_31 at 0 range 16 .. 31; end record; subtype AFRCR_FRL_Field is HAL.UInt8; subtype AFRCR_FSALL_Field is HAL.UInt7; -- This register has no meaning in AC97 and SPDIF audio protocol type AFRCR_Register is record -- Frame length. These bits are set and cleared by software. They define -- the audio frame length expressed in number of SCK clock cycles: the -- number of bits in the frame is equal to FRL[7:0] + 1. The minimum -- number of bits to transfer in an audio frame must be equal to 8, -- otherwise the audio block will behaves in an unexpected way. This is -- the case when the data size is 8 bits and only one slot 0 is defined -- in NBSLOT[4:0] of SAI_xSLOTR register (NBSLOT[3:0] = 0000). In master -- mode, if the master clock (available on MCLK_x pin) is used, the -- frame length should be aligned with a number equal to a power of 2, -- ranging from 8 to 256. When the master clock is not used (NODIV = 1), -- it is recommended to program the frame length to an value ranging -- from 8 to 256. These bits are meaningless and are not used in AC97 or -- SPDIF audio block configuration. FRL : AFRCR_FRL_Field := 16#7#; -- Frame synchronization active level length. These bits are set and -- cleared by software. They specify the length in number of bit clock -- (SCK) + 1 (FSALL[6:0] + 1) of the active level of the FS signal in -- the audio frame These bits are meaningless and are not used in AC97 -- or SPDIF audio block configuration. They must be configured when the -- audio block is disabled. FSALL : AFRCR_FSALL_Field := 16#0#; -- unspecified Reserved_15_15 : HAL.Bit := 16#0#; -- Read-only. Frame synchronization definition. This bit is set and -- cleared by software. When the bit is set, the number of slots defined -- in the SAI_xSLOTR register has to be even. It means that half of this -- number of slots will be dedicated to the left channel and the other -- slots for the right channel (e.g: this bit has to be set for I2S or -- MSB/LSB-justified protocols...). This bit is meaningless and is not -- used in AC97 or SPDIF audio block configuration. It must be -- configured when the audio block is disabled. FSDEF : Boolean := False; -- Frame synchronization polarity. This bit is set and cleared by -- software. It is used to configure the level of the start of frame on -- the FS signal. It is meaningless and is not used in AC97 or SPDIF -- audio block configuration. This bit must be configured when the audio -- block is disabled. FSPOL : Boolean := False; -- Frame synchronization offset. This bit is set and cleared by -- software. It is meaningless and is not used in AC97 or SPDIF audio -- block configuration. This bit must be configured when the audio block -- is disabled. FSOFF : Boolean := False; -- unspecified Reserved_19_31 : HAL.UInt13 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for AFRCR_Register use record FRL at 0 range 0 .. 7; FSALL at 0 range 8 .. 14; Reserved_15_15 at 0 range 15 .. 15; FSDEF at 0 range 16 .. 16; FSPOL at 0 range 17 .. 17; FSOFF at 0 range 18 .. 18; Reserved_19_31 at 0 range 19 .. 31; end record; subtype ASLOTR_FBOFF_Field is HAL.UInt5; subtype ASLOTR_SLOTSZ_Field is HAL.UInt2; subtype ASLOTR_NBSLOT_Field is HAL.UInt4; subtype ASLOTR_SLOTEN_Field is HAL.UInt16; -- This register has no meaning in AC97 and SPDIF audio protocol type ASLOTR_Register is record -- First bit offset These bits are set and cleared by software. The -- value set in this bitfield defines the position of the first data -- transfer bit in the slot. It represents an offset value. In -- transmission mode, the bits outside the data field are forced to 0. -- In reception mode, the extra received bits are discarded. These bits -- must be set when the audio block is disabled. They are ignored in -- AC97 or SPDIF mode. FBOFF : ASLOTR_FBOFF_Field := 16#0#; -- unspecified Reserved_5_5 : HAL.Bit := 16#0#; -- Slot size This bits is set and cleared by software. The slot size -- must be higher or equal to the data size. If this condition is not -- respected, the behavior of the SAI will be undetermined. Refer to -- Section: Output data line management on an inactive slot for -- information on how to drive SD line. These bits must be set when the -- audio block is disabled. They are ignored in AC97 or SPDIF mode. SLOTSZ : ASLOTR_SLOTSZ_Field := 16#0#; -- Number of slots in an audio frame. These bits are set and cleared by -- software. The value set in this bitfield represents the number of -- slots + 1 in the audio frame (including the number of inactive -- slots). The maximum number of slots is 16. The number of slots should -- be even if FSDEF bit in the SAI_xFRCR register is set. The number of -- slots must be configured when the audio block is disabled. They are -- ignored in AC97 or SPDIF mode. NBSLOT : ASLOTR_NBSLOT_Field := 16#0#; -- unspecified Reserved_12_15 : HAL.UInt4 := 16#0#; -- Slot enable. These bits are set and cleared by software. Each SLOTEN -- bit corresponds to a slot position from 0 to 15 (maximum 16 slots). -- The slot must be enabled when the audio block is disabled. They are -- ignored in AC97 or SPDIF mode. SLOTEN : ASLOTR_SLOTEN_Field := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for ASLOTR_Register use record FBOFF at 0 range 0 .. 4; Reserved_5_5 at 0 range 5 .. 5; SLOTSZ at 0 range 6 .. 7; NBSLOT at 0 range 8 .. 11; Reserved_12_15 at 0 range 12 .. 15; SLOTEN at 0 range 16 .. 31; end record; -- Interrupt mask register 2 type AIM_Register is record -- Overrun/underrun interrupt enable. This bit is set and cleared by -- software. When this bit is set, an interrupt is generated if the -- OVRUDR bit in the SAI_xSR register is set. OVRUDRIE : Boolean := False; -- Mute detection interrupt enable. This bit is set and cleared by -- software. When this bit is set, an interrupt is generated if the -- MUTEDET bit in the SAI_xSR register is set. This bit has a meaning -- only if the audio block is configured in receiver mode. MUTEDETIE : Boolean := False; -- Wrong clock configuration interrupt enable. This bit is set and -- cleared by software. This bit is taken into account only if the audio -- block is configured as a master (MODE[1] = 0) and NODIV = 0. It -- generates an interrupt if the WCKCFG flag in the SAI_xSR register is -- set. Note: This bit is used only in TDM mode and is meaningless in -- other modes. WCKCFGIE : Boolean := False; -- FIFO request interrupt enable. This bit is set and cleared by -- software. When this bit is set, an interrupt is generated if the FREQ -- bit in the SAI_xSR register is set. Since the audio block defaults to -- operate as a transmitter after reset, the MODE bit must be configured -- before setting FREQIE to avoid a parasitic interruption in receiver -- mode, FREQIE : Boolean := False; -- Codec not ready interrupt enable (AC97). This bit is set and cleared -- by software. When the interrupt is enabled, the audio block detects -- in the slot 0 (tag0) of the AC97 frame if the Codec connected to this -- line is ready or not. If it is not ready, the CNRDY flag in the -- SAI_xSR register is set and an interruption i generated. This bit has -- a meaning only if the AC97 mode is selected through PRTCFG[1:0] bits -- and the audio block is operates as a receiver. CNRDYIE : Boolean := False; -- Anticipated frame synchronization detection interrupt enable. This -- bit is set and cleared by software. When this bit is set, an -- interrupt will be generated if the AFSDET bit in the SAI_xSR register -- is set. This bit is meaningless in AC97, SPDIF mode or when the audio -- block operates as a master. AFSDETIE : Boolean := False; -- Late frame synchronization detection interrupt enable. This bit is -- set and cleared by software. When this bit is set, an interrupt will -- be generated if the LFSDET bit is set in the SAI_xSR register. This -- bit is meaningless in AC97, SPDIF mode or when the audio block -- operates as a master. LFSDETIE : Boolean := False; -- unspecified Reserved_7_31 : HAL.UInt25 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for AIM_Register use record OVRUDRIE at 0 range 0 .. 0; MUTEDETIE at 0 range 1 .. 1; WCKCFGIE at 0 range 2 .. 2; FREQIE at 0 range 3 .. 3; CNRDYIE at 0 range 4 .. 4; AFSDETIE at 0 range 5 .. 5; LFSDETIE at 0 range 6 .. 6; Reserved_7_31 at 0 range 7 .. 31; end record; subtype ASR_FLVL_Field is HAL.UInt3; -- Status register type ASR_Register is record -- Read-only. Overrun / underrun. This bit is read only. The overrun and -- underrun conditions can occur only when the audio block is configured -- as a receiver and a transmitter, respectively. It can generate an -- interrupt if OVRUDRIE bit is set in SAI_xIM register. This flag is -- cleared when the software sets COVRUDR bit in SAI_xCLRFR register. OVRUDR : Boolean; -- Read-only. Mute detection. This bit is read only. This flag is set if -- consecutive 0 values are received in each slot of a given audio frame -- and for a consecutive number of audio frames (set in the MUTECNT bit -- in the SAI_xCR2 register). It can generate an interrupt if MUTEDETIE -- bit is set in SAI_xIM register. This flag is cleared when the -- software sets bit CMUTEDET in the SAI_xCLRFR register. MUTEDET : Boolean; -- Read-only. Wrong clock configuration flag. This bit is read only. -- This bit is used only when the audio block operates in master mode -- (MODE[1] = 0) and NODIV = 0. It can generate an interrupt if WCKCFGIE -- bit is set in SAI_xIM register. This flag is cleared when the -- software sets CWCKCFG bit in SAI_xCLRFR register. WCKCFG : Boolean; -- Read-only. FIFO request. This bit is read only. The request depends -- on the audio block configuration: If the block is configured in -- transmission mode, the FIFO request is related to a write request -- operation in the SAI_xDR. If the block configured in reception, the -- FIFO request related to a read request operation from the SAI_xDR. -- This flag can generate an interrupt if FREQIE bit is set in SAI_xIM -- register. FREQ : Boolean; -- Read-only. Codec not ready. This bit is read only. This bit is used -- only when the AC97 audio protocol is selected in the SAI_xCR1 -- register and configured in receiver mode. It can generate an -- interrupt if CNRDYIE bit is set in SAI_xIM register. This flag is -- cleared when the software sets CCNRDY bit in SAI_xCLRFR register. CNRDY : Boolean; -- Read-only. Anticipated frame synchronization detection. This bit is -- read only. This flag can be set only if the audio block is configured -- in slave mode. It is not used in AC97or SPDIF mode. It can generate -- an interrupt if AFSDETIE bit is set in SAI_xIM register. This flag is -- cleared when the software sets CAFSDET bit in SAI_xCLRFR register. AFSDET : Boolean; -- Read-only. Late frame synchronization detection. This bit is read -- only. This flag can be set only if the audio block is configured in -- slave mode. It is not used in AC97 or SPDIF mode. It can generate an -- interrupt if LFSDETIE bit is set in the SAI_xIM register. This flag -- is cleared when the software sets bit CLFSDET in SAI_xCLRFR register LFSDET : Boolean; -- unspecified Reserved_7_15 : HAL.UInt9; -- Read-only. FIFO level threshold. This bit is read only. The FIFO -- level threshold flag is managed only by hardware and its setting -- depends on SAI block configuration (transmitter or receiver mode). If -- the SAI block is configured as transmitter: If SAI block is -- configured as receiver: FLVL : ASR_FLVL_Field; -- unspecified Reserved_19_31 : HAL.UInt13; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for ASR_Register use record OVRUDR at 0 range 0 .. 0; MUTEDET at 0 range 1 .. 1; WCKCFG at 0 range 2 .. 2; FREQ at 0 range 3 .. 3; CNRDY at 0 range 4 .. 4; AFSDET at 0 range 5 .. 5; LFSDET at 0 range 6 .. 6; Reserved_7_15 at 0 range 7 .. 15; FLVL at 0 range 16 .. 18; Reserved_19_31 at 0 range 19 .. 31; end record; -- Clear flag register type ACLRFR_Register is record -- Write-only. Clear overrun / underrun. This bit is write only. -- Programming this bit to 1 clears the OVRUDR flag in the SAI_xSR -- register. Reading this bit always returns the value 0. COVRUDR : Boolean := False; -- Write-only. Mute detection flag. This bit is write only. Programming -- this bit to 1 clears the MUTEDET flag in the SAI_xSR register. -- Reading this bit always returns the value 0. CMUTEDET : Boolean := False; -- Write-only. Clear wrong clock configuration flag. This bit is write -- only. Programming this bit to 1 clears the WCKCFG flag in the SAI_xSR -- register. This bit is used only when the audio block is set as master -- (MODE[1] = 0) and NODIV = 0 in the SAI_xCR1 register. Reading this -- bit always returns the value 0. CWCKCFG : Boolean := False; -- unspecified Reserved_3_3 : HAL.Bit := 16#0#; -- Write-only. Clear Codec not ready flag. This bit is write only. -- Programming this bit to 1 clears the CNRDY flag in the SAI_xSR -- register. This bit is used only when the AC97 audio protocol is -- selected in the SAI_xCR1 register. Reading this bit always returns -- the value 0. CCNRDY : Boolean := False; -- Write-only. Clear anticipated frame synchronization detection flag. -- This bit is write only. Programming this bit to 1 clears the AFSDET -- flag in the SAI_xSR register. It is not used in AC97or SPDIF mode. -- Reading this bit always returns the value 0. CAFSDET : Boolean := False; -- Write-only. Clear late frame synchronization detection flag. This bit -- is write only. Programming this bit to 1 clears the LFSDET flag in -- the SAI_xSR register. This bit is not used in AC97or SPDIF mode -- Reading this bit always returns the value 0. CLFSDET : Boolean := False; -- unspecified Reserved_7_31 : HAL.UInt25 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for ACLRFR_Register use record COVRUDR at 0 range 0 .. 0; CMUTEDET at 0 range 1 .. 1; CWCKCFG at 0 range 2 .. 2; Reserved_3_3 at 0 range 3 .. 3; CCNRDY at 0 range 4 .. 4; CAFSDET at 0 range 5 .. 5; CLFSDET at 0 range 6 .. 6; Reserved_7_31 at 0 range 7 .. 31; end record; subtype BCR1_MODE_Field is HAL.UInt2; subtype BCR1_PRTCFG_Field is HAL.UInt2; subtype BCR1_DS_Field is HAL.UInt3; subtype BCR1_SYNCEN_Field is HAL.UInt2; subtype BCR1_MCKDIV_Field is HAL.UInt6; -- Configuration register 1 type BCR1_Register is record -- SAIx audio block mode immediately MODE : BCR1_MODE_Field := 16#0#; -- Protocol configuration. These bits are set and cleared by software. -- These bits have to be configured when the audio block is disabled. PRTCFG : BCR1_PRTCFG_Field := 16#0#; -- unspecified Reserved_4_4 : HAL.Bit := 16#0#; -- Data size. These bits are set and cleared by software. These bits are -- ignored when the SPDIF protocols are selected (bit PRTCFG[1:0]), -- because the frame and the data size are fixed in such case. When the -- companding mode is selected through COMP[1:0] bits, DS[1:0] are -- ignored since the data size is fixed to 8 bits by the algorithm. -- These bits must be configured when the audio block is disabled. DS : BCR1_DS_Field := 16#2#; -- Least significant bit first. This bit is set and cleared by software. -- It must be configured when the audio block is disabled. This bit has -- no meaning in AC97 audio protocol since AC97 data are always -- transferred with the MSB first. This bit has no meaning in SPDIF -- audio protocol since in SPDIF data are always transferred with LSB -- first. LSBFIRST : Boolean := False; -- Clock strobing edge. This bit is set and cleared by software. It must -- be configured when the audio block is disabled. This bit has no -- meaning in SPDIF audio protocol. CKSTR : Boolean := False; -- Synchronization enable. These bits are set and cleared by software. -- They must be configured when the audio sub-block is disabled. Note: -- The audio sub-block should be configured as asynchronous when SPDIF -- mode is enabled. SYNCEN : BCR1_SYNCEN_Field := 16#0#; -- Mono mode. This bit is set and cleared by software. It is meaningful -- only when the number of slots is equal to 2. When the mono mode is -- selected, slot 0 data are duplicated on slot 1 when the audio block -- operates as a transmitter. In reception mode, the slot1 is discarded -- and only the data received from slot 0 are stored. Refer to Section: -- Mono/stereo mode for more details. MONO : Boolean := False; -- Output drive. This bit is set and cleared by software. Note: This bit -- has to be set before enabling the audio block and after the audio -- block configuration. OUTDRIV : Boolean := False; -- unspecified Reserved_14_15 : HAL.UInt2 := 16#0#; -- Audio block enable where x is A or B. This bit is set by software. To -- switch off the audio block, the application software must program -- this bit to 0 and poll the bit till it reads back 0, meaning that the -- block is completely disabled. Before setting this bit to 1, check -- that it is set to 0, otherwise the enable command will not be taken -- into account. This bit allows to control the state of SAIx audio -- block. If it is disabled when an audio frame transfer is ongoing, the -- ongoing transfer completes and the cell is fully disabled at the end -- of this audio frame transfer. Note: When SAIx block is configured in -- master mode, the clock must be present on the input of SAIx before -- setting SAIXEN bit. SAIEN : Boolean := False; -- DMA enable. This bit is set and cleared by software. Note: Since the -- audio block defaults to operate as a transmitter after reset, the -- MODE[1:0] bits must be configured before setting DMAEN to avoid a DMA -- request in receiver mode. DMAEN : Boolean := False; -- unspecified Reserved_18_18 : HAL.Bit := 16#0#; -- No divider NOMCK : Boolean := False; -- Master clock divider. These bits are set and cleared by software. -- These bits are meaningless when the audio block operates in slave -- mode. They have to be configured when the audio block is disabled. -- Others: the master clock frequency is calculated accordingly to the -- following formula: MCKDIV : BCR1_MCKDIV_Field := 16#0#; -- Oversampling ratio for master clock OSR : Boolean := False; -- unspecified Reserved_27_31 : HAL.UInt5 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for BCR1_Register use record MODE at 0 range 0 .. 1; PRTCFG at 0 range 2 .. 3; Reserved_4_4 at 0 range 4 .. 4; DS at 0 range 5 .. 7; LSBFIRST at 0 range 8 .. 8; CKSTR at 0 range 9 .. 9; SYNCEN at 0 range 10 .. 11; MONO at 0 range 12 .. 12; OUTDRIV at 0 range 13 .. 13; Reserved_14_15 at 0 range 14 .. 15; SAIEN at 0 range 16 .. 16; DMAEN at 0 range 17 .. 17; Reserved_18_18 at 0 range 18 .. 18; NOMCK at 0 range 19 .. 19; MCKDIV at 0 range 20 .. 25; OSR at 0 range 26 .. 26; Reserved_27_31 at 0 range 27 .. 31; end record; subtype BCR2_FTH_Field is HAL.UInt3; subtype BCR2_MUTECNT_Field is HAL.UInt6; subtype BCR2_COMP_Field is HAL.UInt2; -- Configuration register 2 type BCR2_Register is record -- FIFO threshold. This bit is set and cleared by software. FTH : BCR2_FTH_Field := 16#0#; -- Write-only. FIFO flush. This bit is set by software. It is always -- read as 0. This bit should be configured when the SAI is disabled. FFLUSH : Boolean := False; -- Tristate management on data line. This bit is set and cleared by -- software. It is meaningful only if the audio block is configured as a -- transmitter. This bit is not used when the audio block is configured -- in SPDIF mode. It should be configured when SAI is disabled. Refer to -- Section: Output data line management on an inactive slot for more -- details. TRIS : Boolean := False; -- Mute. This bit is set and cleared by software. It is meaningful only -- when the audio block operates as a transmitter. The MUTE value is -- linked to value of MUTEVAL if the number of slots is lower or equal -- to 2, or equal to 0 if it is greater than 2. Refer to Section: Mute -- mode for more details. Note: This bit is meaningless and should not -- be used for SPDIF audio blocks. MUTE : Boolean := False; -- Mute value. This bit is set and cleared by software.It must be -- written before enabling the audio block: SAIXEN. This bit is -- meaningful only when the audio block operates as a transmitter, the -- number of slots is lower or equal to 2 and the MUTE bit is set. If -- more slots are declared, the bit value sent during the transmission -- in mute mode is equal to 0, whatever the value of MUTEVAL. if the -- number of slot is lower or equal to 2 and MUTEVAL = 1, the MUTE value -- transmitted for each slot is the one sent during the previous frame. -- Refer to Section: Mute mode for more details. Note: This bit is -- meaningless and should not be used for SPDIF audio blocks. MUTEVAL : Boolean := False; -- Mute counter. These bits are set and cleared by software. They are -- used only in reception mode. The value set in these bits is compared -- to the number of consecutive mute frames detected in reception. When -- the number of mute frames is equal to this value, the flag MUTEDET -- will be set and an interrupt will be generated if bit MUTEDETIE is -- set. Refer to Section: Mute mode for more details. MUTECNT : BCR2_MUTECNT_Field := 16#0#; -- Complement bit. This bit is set and cleared by software. It defines -- the type of complement to be used for companding mode Note: This bit -- has effect only when the companding mode is -Law algorithm or A-Law -- algorithm. CPL : Boolean := False; -- Companding mode. These bits are set and cleared by software. The -Law -- and the A-Law log are a part of the CCITT G.711 recommendation, the -- type of complement that will be used depends on CPL bit. The data -- expansion or data compression are determined by the state of bit -- MODE[0]. The data compression is applied if the audio block is -- configured as a transmitter. The data expansion is automatically -- applied when the audio block is configured as a receiver. Refer to -- Section: Companding mode for more details. Note: Companding mode is -- applicable only when TDM is selected. COMP : BCR2_COMP_Field := 16#0#; -- unspecified Reserved_16_31 : HAL.UInt16 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for BCR2_Register use record FTH at 0 range 0 .. 2; FFLUSH at 0 range 3 .. 3; TRIS at 0 range 4 .. 4; MUTE at 0 range 5 .. 5; MUTEVAL at 0 range 6 .. 6; MUTECNT at 0 range 7 .. 12; CPL at 0 range 13 .. 13; COMP at 0 range 14 .. 15; Reserved_16_31 at 0 range 16 .. 31; end record; subtype BFRCR_FRL_Field is HAL.UInt8; subtype BFRCR_FSALL_Field is HAL.UInt7; -- This register has no meaning in AC97 and SPDIF audio protocol type BFRCR_Register is record -- Frame length. These bits are set and cleared by software. They define -- the audio frame length expressed in number of SCK clock cycles: the -- number of bits in the frame is equal to FRL[7:0] + 1. The minimum -- number of bits to transfer in an audio frame must be equal to 8, -- otherwise the audio block will behaves in an unexpected way. This is -- the case when the data size is 8 bits and only one slot 0 is defined -- in NBSLOT[4:0] of SAI_xSLOTR register (NBSLOT[3:0] = 0000). In master -- mode, if the master clock (available on MCLK_x pin) is used, the -- frame length should be aligned with a number equal to a power of 2, -- ranging from 8 to 256. When the master clock is not used (NODIV = 1), -- it is recommended to program the frame length to an value ranging -- from 8 to 256. These bits are meaningless and are not used in AC97 or -- SPDIF audio block configuration. FRL : BFRCR_FRL_Field := 16#7#; -- Frame synchronization active level length. These bits are set and -- cleared by software. They specify the length in number of bit clock -- (SCK) + 1 (FSALL[6:0] + 1) of the active level of the FS signal in -- the audio frame These bits are meaningless and are not used in AC97 -- or SPDIF audio block configuration. They must be configured when the -- audio block is disabled. FSALL : BFRCR_FSALL_Field := 16#0#; -- unspecified Reserved_15_15 : HAL.Bit := 16#0#; -- Read-only. Frame synchronization definition. This bit is set and -- cleared by software. When the bit is set, the number of slots defined -- in the SAI_xSLOTR register has to be even. It means that half of this -- number of slots will be dedicated to the left channel and the other -- slots for the right channel (e.g: this bit has to be set for I2S or -- MSB/LSB-justified protocols...). This bit is meaningless and is not -- used in AC97 or SPDIF audio block configuration. It must be -- configured when the audio block is disabled. FSDEF : Boolean := False; -- Frame synchronization polarity. This bit is set and cleared by -- software. It is used to configure the level of the start of frame on -- the FS signal. It is meaningless and is not used in AC97 or SPDIF -- audio block configuration. This bit must be configured when the audio -- block is disabled. FSPOL : Boolean := False; -- Frame synchronization offset. This bit is set and cleared by -- software. It is meaningless and is not used in AC97 or SPDIF audio -- block configuration. This bit must be configured when the audio block -- is disabled. FSOFF : Boolean := False; -- unspecified Reserved_19_31 : HAL.UInt13 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for BFRCR_Register use record FRL at 0 range 0 .. 7; FSALL at 0 range 8 .. 14; Reserved_15_15 at 0 range 15 .. 15; FSDEF at 0 range 16 .. 16; FSPOL at 0 range 17 .. 17; FSOFF at 0 range 18 .. 18; Reserved_19_31 at 0 range 19 .. 31; end record; subtype BSLOTR_FBOFF_Field is HAL.UInt5; subtype BSLOTR_SLOTSZ_Field is HAL.UInt2; subtype BSLOTR_NBSLOT_Field is HAL.UInt4; subtype BSLOTR_SLOTEN_Field is HAL.UInt16; -- This register has no meaning in AC97 and SPDIF audio protocol type BSLOTR_Register is record -- First bit offset These bits are set and cleared by software. The -- value set in this bitfield defines the position of the first data -- transfer bit in the slot. It represents an offset value. In -- transmission mode, the bits outside the data field are forced to 0. -- In reception mode, the extra received bits are discarded. These bits -- must be set when the audio block is disabled. They are ignored in -- AC97 or SPDIF mode. FBOFF : BSLOTR_FBOFF_Field := 16#0#; -- unspecified Reserved_5_5 : HAL.Bit := 16#0#; -- Slot size This bits is set and cleared by software. The slot size -- must be higher or equal to the data size. If this condition is not -- respected, the behavior of the SAI will be undetermined. Refer to -- Section: Output data line management on an inactive slot for -- information on how to drive SD line. These bits must be set when the -- audio block is disabled. They are ignored in AC97 or SPDIF mode. SLOTSZ : BSLOTR_SLOTSZ_Field := 16#0#; -- Number of slots in an audio frame. These bits are set and cleared by -- software. The value set in this bitfield represents the number of -- slots + 1 in the audio frame (including the number of inactive -- slots). The maximum number of slots is 16. The number of slots should -- be even if FSDEF bit in the SAI_xFRCR register is set. The number of -- slots must be configured when the audio block is disabled. They are -- ignored in AC97 or SPDIF mode. NBSLOT : BSLOTR_NBSLOT_Field := 16#0#; -- unspecified Reserved_12_15 : HAL.UInt4 := 16#0#; -- Slot enable. These bits are set and cleared by software. Each SLOTEN -- bit corresponds to a slot position from 0 to 15 (maximum 16 slots). -- The slot must be enabled when the audio block is disabled. They are -- ignored in AC97 or SPDIF mode. SLOTEN : BSLOTR_SLOTEN_Field := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for BSLOTR_Register use record FBOFF at 0 range 0 .. 4; Reserved_5_5 at 0 range 5 .. 5; SLOTSZ at 0 range 6 .. 7; NBSLOT at 0 range 8 .. 11; Reserved_12_15 at 0 range 12 .. 15; SLOTEN at 0 range 16 .. 31; end record; -- Interrupt mask register 2 type BIM_Register is record -- Overrun/underrun interrupt enable. This bit is set and cleared by -- software. When this bit is set, an interrupt is generated if the -- OVRUDR bit in the SAI_xSR register is set. OVRUDRIE : Boolean := False; -- Mute detection interrupt enable. This bit is set and cleared by -- software. When this bit is set, an interrupt is generated if the -- MUTEDET bit in the SAI_xSR register is set. This bit has a meaning -- only if the audio block is configured in receiver mode. MUTEDETIE : Boolean := False; -- Wrong clock configuration interrupt enable. This bit is set and -- cleared by software. This bit is taken into account only if the audio -- block is configured as a master (MODE[1] = 0) and NODIV = 0. It -- generates an interrupt if the WCKCFG flag in the SAI_xSR register is -- set. Note: This bit is used only in TDM mode and is meaningless in -- other modes. WCKCFGIE : Boolean := False; -- FIFO request interrupt enable. This bit is set and cleared by -- software. When this bit is set, an interrupt is generated if the FREQ -- bit in the SAI_xSR register is set. Since the audio block defaults to -- operate as a transmitter after reset, the MODE bit must be configured -- before setting FREQIE to avoid a parasitic interruption in receiver -- mode, FREQIE : Boolean := False; -- Codec not ready interrupt enable (AC97). This bit is set and cleared -- by software. When the interrupt is enabled, the audio block detects -- in the slot 0 (tag0) of the AC97 frame if the Codec connected to this -- line is ready or not. If it is not ready, the CNRDY flag in the -- SAI_xSR register is set and an interruption i generated. This bit has -- a meaning only if the AC97 mode is selected through PRTCFG[1:0] bits -- and the audio block is operates as a receiver. CNRDYIE : Boolean := False; -- Anticipated frame synchronization detection interrupt enable. This -- bit is set and cleared by software. When this bit is set, an -- interrupt will be generated if the AFSDET bit in the SAI_xSR register -- is set. This bit is meaningless in AC97, SPDIF mode or when the audio -- block operates as a master. AFSDETIE : Boolean := False; -- Late frame synchronization detection interrupt enable. This bit is -- set and cleared by software. When this bit is set, an interrupt will -- be generated if the LFSDET bit is set in the SAI_xSR register. This -- bit is meaningless in AC97, SPDIF mode or when the audio block -- operates as a master. LFSDETIE : Boolean := False; -- unspecified Reserved_7_31 : HAL.UInt25 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for BIM_Register use record OVRUDRIE at 0 range 0 .. 0; MUTEDETIE at 0 range 1 .. 1; WCKCFGIE at 0 range 2 .. 2; FREQIE at 0 range 3 .. 3; CNRDYIE at 0 range 4 .. 4; AFSDETIE at 0 range 5 .. 5; LFSDETIE at 0 range 6 .. 6; Reserved_7_31 at 0 range 7 .. 31; end record; subtype BSR_FLVL_Field is HAL.UInt3; -- Status register type BSR_Register is record -- Read-only. Overrun / underrun. This bit is read only. The overrun and -- underrun conditions can occur only when the audio block is configured -- as a receiver and a transmitter, respectively. It can generate an -- interrupt if OVRUDRIE bit is set in SAI_xIM register. This flag is -- cleared when the software sets COVRUDR bit in SAI_xCLRFR register. OVRUDR : Boolean; -- Read-only. Mute detection. This bit is read only. This flag is set if -- consecutive 0 values are received in each slot of a given audio frame -- and for a consecutive number of audio frames (set in the MUTECNT bit -- in the SAI_xCR2 register). It can generate an interrupt if MUTEDETIE -- bit is set in SAI_xIM register. This flag is cleared when the -- software sets bit CMUTEDET in the SAI_xCLRFR register. MUTEDET : Boolean; -- Read-only. Wrong clock configuration flag. This bit is read only. -- This bit is used only when the audio block operates in master mode -- (MODE[1] = 0) and NODIV = 0. It can generate an interrupt if WCKCFGIE -- bit is set in SAI_xIM register. This flag is cleared when the -- software sets CWCKCFG bit in SAI_xCLRFR register. WCKCFG : Boolean; -- Read-only. FIFO request. This bit is read only. The request depends -- on the audio block configuration: If the block is configured in -- transmission mode, the FIFO request is related to a write request -- operation in the SAI_xDR. If the block configured in reception, the -- FIFO request related to a read request operation from the SAI_xDR. -- This flag can generate an interrupt if FREQIE bit is set in SAI_xIM -- register. FREQ : Boolean; -- Read-only. Codec not ready. This bit is read only. This bit is used -- only when the AC97 audio protocol is selected in the SAI_xCR1 -- register and configured in receiver mode. It can generate an -- interrupt if CNRDYIE bit is set in SAI_xIM register. This flag is -- cleared when the software sets CCNRDY bit in SAI_xCLRFR register. CNRDY : Boolean; -- Read-only. Anticipated frame synchronization detection. This bit is -- read only. This flag can be set only if the audio block is configured -- in slave mode. It is not used in AC97or SPDIF mode. It can generate -- an interrupt if AFSDETIE bit is set in SAI_xIM register. This flag is -- cleared when the software sets CAFSDET bit in SAI_xCLRFR register. AFSDET : Boolean; -- Read-only. Late frame synchronization detection. This bit is read -- only. This flag can be set only if the audio block is configured in -- slave mode. It is not used in AC97 or SPDIF mode. It can generate an -- interrupt if LFSDETIE bit is set in the SAI_xIM register. This flag -- is cleared when the software sets bit CLFSDET in SAI_xCLRFR register LFSDET : Boolean; -- unspecified Reserved_7_15 : HAL.UInt9; -- Read-only. FIFO level threshold. This bit is read only. The FIFO -- level threshold flag is managed only by hardware and its setting -- depends on SAI block configuration (transmitter or receiver mode). If -- the SAI block is configured as transmitter: If SAI block is -- configured as receiver: FLVL : BSR_FLVL_Field; -- unspecified Reserved_19_31 : HAL.UInt13; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for BSR_Register use record OVRUDR at 0 range 0 .. 0; MUTEDET at 0 range 1 .. 1; WCKCFG at 0 range 2 .. 2; FREQ at 0 range 3 .. 3; CNRDY at 0 range 4 .. 4; AFSDET at 0 range 5 .. 5; LFSDET at 0 range 6 .. 6; Reserved_7_15 at 0 range 7 .. 15; FLVL at 0 range 16 .. 18; Reserved_19_31 at 0 range 19 .. 31; end record; -- Clear flag register type BCLRFR_Register is record -- Write-only. Clear overrun / underrun. This bit is write only. -- Programming this bit to 1 clears the OVRUDR flag in the SAI_xSR -- register. Reading this bit always returns the value 0. COVRUDR : Boolean := False; -- Write-only. Mute detection flag. This bit is write only. Programming -- this bit to 1 clears the MUTEDET flag in the SAI_xSR register. -- Reading this bit always returns the value 0. CMUTEDET : Boolean := False; -- Write-only. Clear wrong clock configuration flag. This bit is write -- only. Programming this bit to 1 clears the WCKCFG flag in the SAI_xSR -- register. This bit is used only when the audio block is set as master -- (MODE[1] = 0) and NODIV = 0 in the SAI_xCR1 register. Reading this -- bit always returns the value 0. CWCKCFG : Boolean := False; -- unspecified Reserved_3_3 : HAL.Bit := 16#0#; -- Write-only. Clear Codec not ready flag. This bit is write only. -- Programming this bit to 1 clears the CNRDY flag in the SAI_xSR -- register. This bit is used only when the AC97 audio protocol is -- selected in the SAI_xCR1 register. Reading this bit always returns -- the value 0. CCNRDY : Boolean := False; -- Write-only. Clear anticipated frame synchronization detection flag. -- This bit is write only. Programming this bit to 1 clears the AFSDET -- flag in the SAI_xSR register. It is not used in AC97or SPDIF mode. -- Reading this bit always returns the value 0. CAFSDET : Boolean := False; -- Write-only. Clear late frame synchronization detection flag. This bit -- is write only. Programming this bit to 1 clears the LFSDET flag in -- the SAI_xSR register. This bit is not used in AC97or SPDIF mode -- Reading this bit always returns the value 0. CLFSDET : Boolean := False; -- unspecified Reserved_7_31 : HAL.UInt25 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for BCLRFR_Register use record COVRUDR at 0 range 0 .. 0; CMUTEDET at 0 range 1 .. 1; CWCKCFG at 0 range 2 .. 2; Reserved_3_3 at 0 range 3 .. 3; CCNRDY at 0 range 4 .. 4; CAFSDET at 0 range 5 .. 5; CLFSDET at 0 range 6 .. 6; Reserved_7_31 at 0 range 7 .. 31; end record; subtype PDMCR_MICNBR_Field is HAL.UInt2; -- PDMCR_CKEN array type PDMCR_CKEN_Field_Array is array (1 .. 4) of Boolean with Component_Size => 1, Size => 4; -- Type definition for PDMCR_CKEN type PDMCR_CKEN_Field (As_Array : Boolean := False) is record case As_Array is when False => -- CKEN as a value Val : HAL.UInt4; when True => -- CKEN as an array Arr : PDMCR_CKEN_Field_Array; end case; end record with Unchecked_Union, Size => 4; for PDMCR_CKEN_Field use record Val at 0 range 0 .. 3; Arr at 0 range 0 .. 3; end record; -- PDM control register type PDMCR_Register is record -- PDM enable PDMEN : Boolean := False; -- unspecified Reserved_1_3 : HAL.UInt3 := 16#0#; -- Number of microphones MICNBR : PDMCR_MICNBR_Field := 16#0#; -- unspecified Reserved_6_7 : HAL.UInt2 := 16#0#; -- Clock enable of bitstream clock number 1 CKEN : PDMCR_CKEN_Field := (As_Array => False, Val => 16#0#); -- unspecified Reserved_12_31 : HAL.UInt20 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for PDMCR_Register use record PDMEN at 0 range 0 .. 0; Reserved_1_3 at 0 range 1 .. 3; MICNBR at 0 range 4 .. 5; Reserved_6_7 at 0 range 6 .. 7; CKEN at 0 range 8 .. 11; Reserved_12_31 at 0 range 12 .. 31; end record; subtype PDMDLY_DLYM1L_Field is HAL.UInt3; subtype PDMDLY_DLYM1R_Field is HAL.UInt3; subtype PDMDLY_DLYM2L_Field is HAL.UInt3; subtype PDMDLY_DLYM2R_Field is HAL.UInt3; subtype PDMDLY_DLYM3L_Field is HAL.UInt3; subtype PDMDLY_DLYM3R_Field is HAL.UInt3; subtype PDMDLY_DLYM4L_Field is HAL.UInt3; subtype PDMDLY_DLYM4R_Field is HAL.UInt3; -- PDM delay register type PDMDLY_Register is record -- Delay line adjust for first microphone of pair 1 DLYM1L : PDMDLY_DLYM1L_Field := 16#0#; -- unspecified Reserved_3_3 : HAL.Bit := 16#0#; -- Delay line adjust for second microphone of pair 1 DLYM1R : PDMDLY_DLYM1R_Field := 16#0#; -- unspecified Reserved_7_7 : HAL.Bit := 16#0#; -- Delay line for first microphone of pair 2 DLYM2L : PDMDLY_DLYM2L_Field := 16#0#; -- unspecified Reserved_11_11 : HAL.Bit := 16#0#; -- Delay line for second microphone of pair 2 DLYM2R : PDMDLY_DLYM2R_Field := 16#0#; -- unspecified Reserved_15_15 : HAL.Bit := 16#0#; -- Delay line for first microphone of pair 3 DLYM3L : PDMDLY_DLYM3L_Field := 16#0#; -- unspecified Reserved_19_19 : HAL.Bit := 16#0#; -- Delay line for second microphone of pair 3 DLYM3R : PDMDLY_DLYM3R_Field := 16#0#; -- unspecified Reserved_23_23 : HAL.Bit := 16#0#; -- Delay line for first microphone of pair 4 DLYM4L : PDMDLY_DLYM4L_Field := 16#0#; -- unspecified Reserved_27_27 : HAL.Bit := 16#0#; -- Delay line for second microphone of pair 4 DLYM4R : PDMDLY_DLYM4R_Field := 16#0#; -- unspecified Reserved_31_31 : HAL.Bit := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for PDMDLY_Register use record DLYM1L at 0 range 0 .. 2; Reserved_3_3 at 0 range 3 .. 3; DLYM1R at 0 range 4 .. 6; Reserved_7_7 at 0 range 7 .. 7; DLYM2L at 0 range 8 .. 10; Reserved_11_11 at 0 range 11 .. 11; DLYM2R at 0 range 12 .. 14; Reserved_15_15 at 0 range 15 .. 15; DLYM3L at 0 range 16 .. 18; Reserved_19_19 at 0 range 19 .. 19; DLYM3R at 0 range 20 .. 22; Reserved_23_23 at 0 range 23 .. 23; DLYM4L at 0 range 24 .. 26; Reserved_27_27 at 0 range 27 .. 27; DLYM4R at 0 range 28 .. 30; Reserved_31_31 at 0 range 31 .. 31; end record; ----------------- -- Peripherals -- ----------------- -- SAI type SAI_Peripheral is record -- Global configuration register GCR : aliased GCR_Register; -- Configuration register 1 ACR1 : aliased ACR1_Register; -- Configuration register 2 ACR2 : aliased ACR2_Register; -- This register has no meaning in AC97 and SPDIF audio protocol AFRCR : aliased AFRCR_Register; -- This register has no meaning in AC97 and SPDIF audio protocol ASLOTR : aliased ASLOTR_Register; -- Interrupt mask register 2 AIM : aliased AIM_Register; -- Status register ASR : aliased ASR_Register; -- Clear flag register ACLRFR : aliased ACLRFR_Register; -- Data register ADR : aliased HAL.UInt32; -- Configuration register 1 BCR1 : aliased BCR1_Register; -- Configuration register 2 BCR2 : aliased BCR2_Register; -- This register has no meaning in AC97 and SPDIF audio protocol BFRCR : aliased BFRCR_Register; -- This register has no meaning in AC97 and SPDIF audio protocol BSLOTR : aliased BSLOTR_Register; -- Interrupt mask register 2 BIM : aliased BIM_Register; -- Status register BSR : aliased BSR_Register; -- Clear flag register BCLRFR : aliased BCLRFR_Register; -- Data register BDR : aliased HAL.UInt32; -- PDM control register PDMCR : aliased PDMCR_Register; -- PDM delay register PDMDLY : aliased PDMDLY_Register; end record with Volatile; for SAI_Peripheral use record GCR at 16#0# range 0 .. 31; ACR1 at 16#4# range 0 .. 31; ACR2 at 16#8# range 0 .. 31; AFRCR at 16#C# range 0 .. 31; ASLOTR at 16#10# range 0 .. 31; AIM at 16#14# range 0 .. 31; ASR at 16#18# range 0 .. 31; ACLRFR at 16#1C# range 0 .. 31; ADR at 16#20# range 0 .. 31; BCR1 at 16#24# range 0 .. 31; BCR2 at 16#28# range 0 .. 31; BFRCR at 16#2C# range 0 .. 31; BSLOTR at 16#30# range 0 .. 31; BIM at 16#34# range 0 .. 31; BSR at 16#38# range 0 .. 31; BCLRFR at 16#3C# range 0 .. 31; BDR at 16#40# range 0 .. 31; PDMCR at 16#44# range 0 .. 31; PDMDLY at 16#48# range 0 .. 31; end record; -- SAI SAI1_Periph : aliased SAI_Peripheral with Import, Address => SAI1_Base; -- SAI SAI2_Periph : aliased SAI_Peripheral with Import, Address => SAI2_Base; -- SAI SAI3_Periph : aliased SAI_Peripheral with Import, Address => SAI3_Base; -- SAI SAI4_Periph : aliased SAI_Peripheral with Import, Address => SAI4_Base; end STM32_SVD.SAI;
et-client/scripts/alert.applescript
mikeflynn/echo-tunnel
1
2724
<filename>et-client/scripts/alert.applescript #!/usr/bin/osascript on run (args) display dialog (first item of args) with title (second item of args) with icon file (third item of args) buttons {(fourth item of args), (fifth item of args)} giving up after 30 end run
media_driver/agnostic/gen11_icllp/vp/kernel_free/Source/CSC_444_16.asm
ashakhno/media-driver
660
81079
<filename>media_driver/agnostic/gen11_icllp/vp/kernel_free/Source/CSC_444_16.asm /* * Copyright (c) 2017, Intel Corporation * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, publish, distribute, sublicense, * and/or sell copies of the Software, and to permit persons to whom the * Software is furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included * in all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR * OTHER DEALINGS IN THE SOFTWARE. */ L0: (W&~f0.0)jmpi L1152 L16: shr (1|M0) r12.0<1>:w r2.4<0;1,0>:ub 5:w add (1|M0) r12.0<1>:w r12.0<0;1,0>:w 7:w mul (16|M0) acc0.0<1>:w r[a0.1]<16;16,1>:uw r18.12<0;1,0>:w mac (16|M0) acc0.0<1>:w r[a0.2]<16;16,1>:uw r18.13<0;1,0>:w mac (16|M0) acc0.0<1>:w r[a0.0]<16;16,1>:uw r18.14<0;1,0>:w mac (16|M0) acc0.0<1>:w r18.15<0;1,0>:w 0xFFFF:uw shr (16|M0) (sat)r14.0<1>:uw acc0.0<8;8,1>:w r12.0<0;1,0>:w mul (16|M0) acc0.0<1>:w r[a0.1]<16;16,1>:uw r19.8<0;1,0>:w mac (16|M0) acc0.0<1>:w r[a0.2]<16;16,1>:uw r19.9<0;1,0>:w mac (16|M0) acc0.0<1>:w r[a0.0]<16;16,1>:uw r19.10<0;1,0>:w mac (16|M0) acc0.0<1>:w r19.11<0;1,0>:w 0xFFFF:uw shr (16|M0) (sat)r15.0<1>:uw acc0.0<8;8,1>:w r12.0<0;1,0>:w mul (16|M0) acc0.0<1>:w r[a0.1]<16;16,1>:uw r19.12<0;1,0>:w mac (16|M0) acc0.0<1>:w r[a0.2]<16;16,1>:uw r19.13<0;1,0>:w mac (16|M0) acc0.0<1>:w r[a0.0]<16;16,1>:uw r19.14<0;1,0>:w mac (16|M0) acc0.0<1>:w r19.15<0;1,0>:w 0xFFFF:uw shr (16|M0) (sat)r[a0.2]<1>:uw acc0.0<8;8,1>:w r12.0<0;1,0>:w mul (16|M0) acc0.0<1>:w r[a0.1,32]<16;16,1>:uw r18.12<0;1,0>:w mac (16|M0) acc0.0<1>:w r[a0.2,32]<16;16,1>:uw r18.13<0;1,0>:w mac (16|M0) acc0.0<1>:w r[a0.0,32]<16;16,1>:uw r18.14<0;1,0>:w mac (16|M0) acc0.0<1>:w r18.15<0;1,0>:w 0xFFFF:uw shr (16|M0) (sat)r16.0<1>:uw acc0.0<8;8,1>:w r12.0<0;1,0>:w mul (16|M0) acc0.0<1>:w r[a0.1,32]<16;16,1>:uw r19.8<0;1,0>:w mac (16|M0) acc0.0<1>:w r[a0.2,32]<16;16,1>:uw r19.9<0;1,0>:w mac (16|M0) acc0.0<1>:w r[a0.0,32]<16;16,1>:uw r19.10<0;1,0>:w mac (16|M0) acc0.0<1>:w r19.11<0;1,0>:w 0xFFFF:uw shr (16|M0) (sat)r17.0<1>:uw acc0.0<8;8,1>:w r12.0<0;1,0>:w mul (16|M0) acc0.0<1>:w r[a0.1,32]<16;16,1>:uw r19.12<0;1,0>:w mac (16|M0) acc0.0<1>:w r[a0.2,32]<16;16,1>:uw r19.13<0;1,0>:w mac (16|M0) acc0.0<1>:w r[a0.0,32]<16;16,1>:uw r19.14<0;1,0>:w mac (16|M0) acc0.0<1>:w r19.15<0;1,0>:w 0xFFFF:uw shr (16|M0) (sat)r[a0.2,32]<1>:uw acc0.0<8;8,1>:w r12.0<0;1,0>:w mov (16|M0) r[a0.0]<1>:uw r14.0<16;16,1>:uw mov (16|M0) r[a0.1]<1>:uw r15.0<16;16,1>:uw mov (16|M0) r[a0.0,32]<1>:uw r16.0<16;16,1>:uw mov (16|M0) r[a0.1,32]<1>:uw r17.0<16;16,1>:uw add (2|M0) a0.0<1>:ud a0.0<2;2,1>:ud r22.6<0;1,0>:ud mul (16|M0) acc0.0<1>:w r[a0.1]<16;16,1>:uw r18.12<0;1,0>:w mac (16|M0) acc0.0<1>:w r[a0.2]<16;16,1>:uw r18.13<0;1,0>:w mac (16|M0) acc0.0<1>:w r[a0.0]<16;16,1>:uw r18.14<0;1,0>:w mac (16|M0) acc0.0<1>:w r18.15<0;1,0>:w 0xFFFF:uw shr (16|M0) (sat)r14.0<1>:uw acc0.0<8;8,1>:w r12.0<0;1,0>:w mul (16|M0) acc0.0<1>:w r[a0.1]<16;16,1>:uw r19.8<0;1,0>:w mac (16|M0) acc0.0<1>:w r[a0.2]<16;16,1>:uw r19.9<0;1,0>:w mac (16|M0) acc0.0<1>:w r[a0.0]<16;16,1>:uw r19.10<0;1,0>:w mac (16|M0) acc0.0<1>:w r19.11<0;1,0>:w 0xFFFF:uw shr (16|M0) (sat)r15.0<1>:uw acc0.0<8;8,1>:w r12.0<0;1,0>:w mul (16|M0) acc0.0<1>:w r[a0.1]<16;16,1>:uw r19.12<0;1,0>:w mac (16|M0) acc0.0<1>:w r[a0.2]<16;16,1>:uw r19.13<0;1,0>:w mac (16|M0) acc0.0<1>:w r[a0.0]<16;16,1>:uw r19.14<0;1,0>:w mac (16|M0) acc0.0<1>:w r19.15<0;1,0>:w 0xFFFF:uw shr (16|M0) (sat)r[a0.2]<1>:uw acc0.0<8;8,1>:w r12.0<0;1,0>:w mul (16|M0) acc0.0<1>:w r[a0.1,32]<16;16,1>:uw r18.12<0;1,0>:w mac (16|M0) acc0.0<1>:w r[a0.2,32]<16;16,1>:uw r18.13<0;1,0>:w mac (16|M0) acc0.0<1>:w r[a0.0,32]<16;16,1>:uw r18.14<0;1,0>:w mac (16|M0) acc0.0<1>:w r18.15<0;1,0>:w 0xFFFF:uw shr (16|M0) (sat)r16.0<1>:uw acc0.0<8;8,1>:w r12.0<0;1,0>:w mul (16|M0) acc0.0<1>:w r[a0.1,32]<16;16,1>:uw r19.8<0;1,0>:w mac (16|M0) acc0.0<1>:w r[a0.2,32]<16;16,1>:uw r19.9<0;1,0>:w mac (16|M0) acc0.0<1>:w r[a0.0,32]<16;16,1>:uw r19.10<0;1,0>:w mac (16|M0) acc0.0<1>:w r19.11<0;1,0>:w 0xFFFF:uw shr (16|M0) (sat)r17.0<1>:uw acc0.0<8;8,1>:w r12.0<0;1,0>:w mul (16|M0) acc0.0<1>:w r[a0.1,32]<16;16,1>:uw r19.12<0;1,0>:w mac (16|M0) acc0.0<1>:w r[a0.2,32]<16;16,1>:uw r19.13<0;1,0>:w mac (16|M0) acc0.0<1>:w r[a0.0,32]<16;16,1>:uw r19.14<0;1,0>:w mac (16|M0) acc0.0<1>:w r19.15<0;1,0>:w 0xFFFF:uw shr (16|M0) (sat)r[a0.2,32]<1>:uw acc0.0<8;8,1>:w r12.0<0;1,0>:w mov (16|M0) r[a0.0]<1>:uw r14.0<16;16,1>:uw mov (16|M0) r[a0.1]<1>:uw r15.0<16;16,1>:uw mov (16|M0) r[a0.0,32]<1>:uw r16.0<16;16,1>:uw mov (16|M0) r[a0.1,32]<1>:uw r17.0<16;16,1>:uw L1152: nop
pascal/pascal.g4
alessandro-massarenti/lab02-automi-2021
0
5412
<filename>pascal/pascal.g4 grammar pascal; // Regole del Parser // Program outer wrapper start : 'program' ID ';' 'var' decl_list main_code EOF ; // Variable declaration list decl_list : decl | decl decl_list ; decl : var ':' 'integer' ';'; var : ID | var ',' ID; // Main code wrapper main_code : 'begin' st_list 'end' '.' ; code_block: st_list | 'begin' st_list 'end'; st_list : statement | statement ';' | statement ';' st_list; // Le tipologie di statement disponibili statement : assign | cicle_until | branch | out | in; // Gli statements assign : ID ':=' expr | ID ':=' arith; cicle_until : 'repeat' code_block 'until' relation; branch : 'if' relation 'then' code_block | 'if' relation 'then' code_block 'else' code_block; out : 'writeln' '(' expr ')' | 'writeln' '(' STRING ')'; in : 'readln' '(' ID ')'; // I blocchi principali expr : NUMBER | ID; arith : expr | arith arithmetic_operator arith; arith_expr: arith | expr; relation : arith_expr arithmetic_operator arith_expr | arith_expr comparison_operator arith_expr | relation logic_operator relation; // Gli operatori arithmetic_operator : PLUS | MINUS | PER | DIV | MOD; logic_operator : AND | OR | NOT; comparison_operator : LT | LEQ | EQ | GEQ | NEQ | GT; // Regole del Lexer PLUS : '+'; MINUS : '-'; PER : '*'; DIV : '/'; MOD : '%'; AND : 'and' ; OR : 'or' ; NOT : 'not' ; EQ : '=' ; LT : '<' ; LEQ : '<=' ; GT : '>' ; GEQ : '>=' ; NEQ : '<>' ; ID : [a-z]+ ; STRING : '\''.*?'\''; NUMBER : [0-9]+ ; R_COMMENT : '(*' .*? '*)' -> skip ; // .*? matches anything until the first *) C_COMMENT : '{' .*? '}' -> skip ; // .*? matches anything until the first } LINE_COMMENT : '//' ~[\r\n]* -> skip ; // ~[\r\n]* matches anything but \r and \n WS : [ \n\t\r]+ -> skip; ErrorChar : . ;
Cubical/Categories/Functor.agda
borsiemir/cubical
0
6664
<filename>Cubical/Categories/Functor.agda<gh_stars>0 {-# OPTIONS --cubical #-} module Cubical.Categories.Functor where open import Cubical.Foundations.Prelude open import Cubical.HITs.PropositionalTruncation open import Cubical.Categories.Category private variable ℓ𝒞 ℓ𝒞' ℓ𝒟 ℓ𝒟' : Level record Functor (𝒞 : Precategory ℓ𝒞 ℓ𝒞') (𝒟 : Precategory ℓ𝒟 ℓ𝒟') : Type (ℓ-max (ℓ-max ℓ𝒞 ℓ𝒞') (ℓ-max ℓ𝒟 ℓ𝒟')) where no-eta-equality open Precategory field F-ob : 𝒞 .ob → 𝒟 .ob F-hom : {x y : 𝒞 .ob} → 𝒞 .hom x y → 𝒟 .hom (F-ob x) (F-ob y) F-idn : {x : 𝒞 .ob} → F-hom (𝒞 .idn x) ≡ 𝒟 .idn (F-ob x) F-seq : {x y z : 𝒞 .ob} (f : 𝒞 .hom x y) (g : 𝒞 .hom y z) → F-hom (𝒞 .seq f g) ≡ 𝒟 .seq (F-hom f) (F-hom g) is-full = (x y : _) (F[f] : 𝒟 .hom (F-ob x) (F-ob y)) → ∥ Σ (𝒞 .hom x y) (λ f → F-hom f ≡ F[f]) ∥ is-faithful = (x y : _) (f g : 𝒞 .hom x y) → F-hom f ≡ F-hom g → f ≡ g
Task/URL-encoding/Ada/url-encoding.ada
LaudateCorpus1/RosettaCodeData
1
24726
with AWS.URL; with Ada.Text_IO; use Ada.Text_IO; procedure Encode is Normal : constant String := "http://foo bar/"; begin Put_Line (AWS.URL.Encode (Normal)); end Encode;
programs/oeis/080/A080143.asm
neoneye/loda
22
11184
; A080143: a(n) = F(3)*F(n)*F(n+1) + F(4)*F(n+1)^2 - F(4) if n even, F(3)*F(n)*F(n+1) + F(4)*F(n+1)^2 if n odd, where F(n) is the n-th Fibonacci number (A000045). ; 0,5,13,39,102,272,712,1869,4893,12815,33550,87840,229968,602069,1576237,4126647,10803702,28284464,74049688,193864605,507544125,1328767775,3478759198,9107509824,23843770272,62423800997,163427632717,427859097159,1120149658758,2932589879120,7677619978600,20100270056685,52623190191453,137769300517679,360684711361582,944284833567072,2472169789339632,6472224534451829,16944503814015853,44361286907595735,116139356908771350,304056783818718320,796030994547383608,2084036199823432509,5456077604922913917,14284196614945309247,37396512239913013822,97905340104793732224,256319508074468182848,671053184118610816325,1756840044281364266125,4599466948725481982055,12041560801895081680038,31525215456959763058064,82534085568984207494152,216077041249992859424397,565697038180994370779037,1481014073292990252912719,3877345181697976387959118,10151021471800938910964640,26575719233704840344934800,69576136229313582123839765,182152689454235906026584493,476881932133394135955913719,1248493106945946501841156662,3268597388704445369567556272,8557299059167389606861512152,22403299788797723451016980189,58652600307225780746189428413,153554501132879618787551305055,402010903091413075616464486750,1052478208141359608061842155200,2755423721332665748569061978848,7213792955856637637645343781349,18885955146237247164366969365197,49444072482855103855455564314247,129446262302328064401999723577542,338894714424129089350543606418384,887237880970059203649631095677608,2322818928486048521598349680614445,6081218904488086361145417946165725,15920837784978210561837904157882735,41681294450446545324368294527482478,109123045566361425411266979424564704,285687842248637730909432643746211632,747940481179551767317030951814070197 lpb $0 mov $2,$0 trn $0,2 seq $2,48575 ; Pisot sequences L(2,5), E(2,5). add $1,$2 lpe mov $0,$1
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48_notsx.log_21829_1569.asm
ljhsiun2/medusa
9
95441
<reponame>ljhsiun2/medusa .global s_prepare_buffers s_prepare_buffers: push %r10 push %r14 push %r8 push %rax push %rbx push %rcx push %rdi push %rsi lea addresses_D_ht+0x86ca, %rbx sub $56934, %rdi mov (%rbx), %rax nop cmp %r14, %r14 lea addresses_D_ht+0x141ca, %rsi lea addresses_WC_ht+0x106a4, %rdi nop dec %r14 mov $13, %rcx rep movsb nop nop nop add $64627, %rbx lea addresses_UC_ht+0x1acca, %rcx xor $57182, %rsi mov $0x6162636465666768, %rdi movq %rdi, %xmm4 vmovups %ymm4, (%rcx) nop nop nop xor %rdi, %rdi lea addresses_A_ht+0x14dca, %rdi nop nop dec %r8 movb $0x61, (%rdi) nop nop nop xor %rbx, %rbx lea addresses_D_ht+0x1bca, %rdi xor %rax, %rax mov $0x6162636465666768, %rcx movq %rcx, %xmm0 and $0xffffffffffffffc0, %rdi vmovntdq %ymm0, (%rdi) cmp %r14, %r14 lea addresses_D_ht+0x828a, %rsi lea addresses_A_ht+0x1c1ca, %rdi nop nop nop dec %rax mov $125, %rcx rep movsl nop nop nop nop and $53877, %rdi lea addresses_normal_ht+0x13f8a, %rsi lea addresses_D_ht+0x92ca, %rdi clflush (%rsi) nop nop add $29444, %r10 mov $24, %rcx rep movsb nop nop nop add $18935, %r8 lea addresses_normal_ht+0x61ca, %r8 nop nop nop nop cmp $10250, %rax mov $0x6162636465666768, %r10 movq %r10, (%r8) nop nop nop nop and %rax, %rax lea addresses_normal_ht+0xafe4, %rax nop nop sub %rdi, %rdi movb (%rax), %r14b nop nop nop nop nop and $41436, %r10 lea addresses_normal_ht+0x1adf9, %rbx nop nop nop xor %r14, %r14 movups (%rbx), %xmm5 vpextrq $0, %xmm5, %rdi nop cmp $36742, %rbx lea addresses_normal_ht+0xe1ca, %rsi lea addresses_WC_ht+0x1a9ca, %rdi nop nop nop xor $22314, %rbx mov $13, %rcx rep movsb nop nop nop nop add %r10, %r10 lea addresses_D_ht+0x1a1e2, %rsi lea addresses_UC_ht+0x8f7a, %rdi nop inc %r10 mov $25, %rcx rep movsw nop nop nop nop nop sub %rsi, %rsi lea addresses_A_ht+0x151ea, %r14 nop cmp $24004, %r8 movb (%r14), %bl nop nop add %r14, %r14 pop %rsi pop %rdi pop %rcx pop %rbx pop %rax pop %r8 pop %r14 pop %r10 ret .global s_faulty_load s_faulty_load: push %r13 push %r14 push %r8 push %rbp push %rbx // Faulty Load lea addresses_WT+0x119ca, %rbp clflush (%rbp) nop nop add %r14, %r14 vmovups (%rbp), %ymm1 vextracti128 $0, %ymm1, %xmm1 vpextrq $0, %xmm1, %r13 lea oracles, %rbx and $0xff, %r13 shlq $12, %r13 mov (%rbx,%r13,1), %r13 pop %rbx pop %rbp pop %r8 pop %r14 pop %r13 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_WT', 'congruent': 0}} [Faulty Load] {'OP': 'LOAD', 'src': {'same': True, 'NT': False, 'AVXalign': False, 'size': 32, 'type': 'addresses_WT', 'congruent': 0}} <gen_prepare_buffer> {'OP': 'LOAD', 'src': {'same': False, 'NT': True, 'AVXalign': False, 'size': 8, 'type': 'addresses_D_ht', 'congruent': 8}} {'dst': {'same': False, 'congruent': 0, 'type': 'addresses_WC_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 11, 'type': 'addresses_D_ht'}} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 32, 'type': 'addresses_UC_ht', 'congruent': 7}, 'OP': 'STOR'} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_A_ht', 'congruent': 10}, 'OP': 'STOR'} {'dst': {'same': False, 'NT': True, 'AVXalign': False, 'size': 32, 'type': 'addresses_D_ht', 'congruent': 9}, 'OP': 'STOR'} {'dst': {'same': False, 'congruent': 11, 'type': 'addresses_A_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 5, 'type': 'addresses_D_ht'}} {'dst': {'same': False, 'congruent': 6, 'type': 'addresses_D_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 6, 'type': 'addresses_normal_ht'}} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_normal_ht', 'congruent': 10}, 'OP': 'STOR'} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_normal_ht', 'congruent': 0}} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 16, 'type': 'addresses_normal_ht', 'congruent': 0}} {'dst': {'same': False, 'congruent': 11, 'type': 'addresses_WC_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 10, 'type': 'addresses_normal_ht'}} {'dst': {'same': False, 'congruent': 3, 'type': 'addresses_UC_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 3, 'type': 'addresses_D_ht'}} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_A_ht', 'congruent': 5}} {'39': 21829} 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 */
ffight/lcs/1p/1F.asm
zengfr/arcade_game_romhacking_sourcecode_top_secret_data
6
5088
copyright zengfr site:http://github.com/zengfr/romhack 00A2D4 clr.b ($1f,A4) 00A2D8 clr.l ($20,A4) copyright zengfr site:http://github.com/zengfr/romhack
taskOne.scpt
hascong/ExerciseForAppleScript
0
1560
set aCoupleOfSeconds to 3 set twoMinutes to 60 * 2 set oneHour to 60 * 60 set twoHours to 60 * 60 * 2 set fourHours to 60 * 60 * 4 set eightHours to 60 * 60 * 8 set tenHours to 60 * 60 * 10 set twelveHours to 60 * 60 * 12 set twentyFourHours to 60 * 60 * 24 set delayBeforeTaskOne to aCoupleOfSeconds set delayBetweenTaskOneAndTwo to tenHours set delayTimeOut to twentyFourHours with timeout of delayTimeOut seconds tell application "Safari" -- Report before starting task one tell application "Mail" set aNewMessage to make new outgoing message with properties {subject:"Report", content:"Will start task one.", visible:true} tell aNewMessage make new to recipient at end of to recipients with properties {address:"<EMAIL>"} send end tell end tell -- Will begin task one activate delay aCoupleOfSeconds open location "http://domain_name.com/" -- set the URL of the front document to "http://domain_name.com/" delay aCoupleOfSeconds do JavaScript "javascript:login()" in document 1 delay aCoupleOfSeconds tell application "System Events" tell process "Safari" -- Click check in radio button (* tell (UI element 1 of group 3 of UI element 1 of scroll area 1 of group 4 of UI element 1 of scroll area 3 of UI element 1 of scroll area 1 of group 1 of group 1 of group 2 of window 1) if exists then click end if end tell delay aCoupleOfSeconds *) -- Click check out radio button tell (UI element 1 of group 4 of UI element 1 of scroll area 1 of group 4 of UI element 1 of scroll area 3 of UI element 1 of scroll area 1 of group 1 of group 1 of group 2 of window 1) if exists then click end if end tell delay aCoupleOfSeconds tell (UI element 1 of group 5 of UI element 1 of scroll area 1 of group 4 of UI element 1 of scroll area 3 of UI element 1 of scroll area 1 of group 1 of group 1 of group 2 of window 1) if exists then click end if end tell delay aCoupleOfSeconds -- Click OK record button tell (UI element 1 of group 6 of UI element 1 of scroll area 1 of group 4 of UI element 1 of scroll area 3 of UI element 1 of scroll area 1 of group 1 of group 1 of group 2 of window 1) if exists then click end if end tell delay aCoupleOfSeconds tell (UI element 1 of group 7 of UI element 1 of scroll area 1 of group 4 of UI element 1 of scroll area 3 of UI element 1 of scroll area 1 of group 1 of group 1 of group 2 of window 1) if exists then click end if end tell delay aCoupleOfSeconds end tell end tell activate delay aCoupleOfSeconds set frontmost to true delay aCoupleOfSeconds -- Close the pop-up window by pressing OK button tell application "System Events" tell process "Safari" keystroke return end tell end tell activate delay aCoupleOfSeconds set frontmost to true delay aCoupleOfSeconds quit delay aCoupleOfSeconds end tell end timeout -- Report after done task one tell application "Mail" set aNewMessage to make new outgoing message with properties {subject:"Report", content:"Done task one.", visible:true} tell aNewMessage make new to recipient at end of to recipients with properties {address:"<EMAIL>"} send end tell end tell
programs/oeis/040/A040433.asm
neoneye/loda
22
178106
<filename>programs/oeis/040/A040433.asm ; A040433: Continued fraction for sqrt(455). ; 21,3,42,3,42,3,42,3,42,3,42,3,42,3,42,3,42,3,42,3,42,3,42,3,42,3,42,3,42,3,42,3,42,3,42,3,42,3,42,3,42,3,42,3,42,3,42,3,42,3,42,3,42,3,42,3,42,3,42,3,42,3,42,3,42,3,42,3,42,3,42,3,42,3,42 mov $1,$0 cmp $0,0 sub $1,$0 gcd $1,2 add $1,5 add $0,$1 mul $0,$1 sub $0,35 mul $0,3
oeis/142/A142442.asm
neoneye/loda-programs
11
93911
<filename>oeis/142/A142442.asm<gh_stars>10-100 ; A142442: Primes congruent to 33 mod 49. ; Submitted by <NAME> ; 131,229,523,719,1013,1307,1601,1699,1993,2287,2777,3169,3463,3659,4051,4639,4933,5227,5521,5717,6011,6599,6991,7187,7481,7873,8069,8167,8363,8461,8951,9049,9343,9539,9833,9931,11597,12479,12577,14243,14341,14537,14831,14929,16007,16301,16693,16889,16987,17183,17477,18457,18947,19927,20123,20809,21397,22279,22573,22769,23063,23357,24043,24239,24337,24533,24631,25121,25219,26003,26297,26591,27179,27277,27767,28649,29531,29629,30119,30707,31393,31687,31883,31981,32569,33353,33647,33941,34039,35117 mov $1,16 mov $2,$0 add $2,2 pow $2,2 lpb $2 sub $2,1 mov $3,$1 mul $3,2 seq $3,10051 ; Characteristic function of primes: 1 if n is prime, else 0. sub $0,$3 add $1,49 mov $4,$0 max $4,0 cmp $4,$0 mul $2,$4 lpe mov $0,$1 mul $0,2 sub $0,97
tests/nonsmoke/functional/CompileTests/experimental_ada_tests/tests/function_body_stub.adb
ouankou/rose
488
8341
package body function_body_stub is function Inner return integer is separate; end function_body_stub;
alloy4fun_models/trashltl/models/17/75KdcDyJT34RjcGCM.als
Kaixi26/org.alloytools.alloy
0
3871
open main pred id75KdcDyJT34RjcGCM_prop18 { always all p : Protected | always p not in Protected => p in Trash } pred __repair { id75KdcDyJT34RjcGCM_prop18 } check __repair { id75KdcDyJT34RjcGCM_prop18 <=> prop18o }
Task/Knuth-shuffle/Ada/knuth-shuffle-1.ada
LaudateCorpus1/RosettaCodeData
1
8882
<reponame>LaudateCorpus1/RosettaCodeData<filename>Task/Knuth-shuffle/Ada/knuth-shuffle-1.ada generic type Element_Type is private; type Array_Type is array (Positive range <>) of Element_Type; procedure Generic_Shuffle (List : in out Array_Type);
programs/oeis/127/A127330.asm
jmorken/loda
1
242017
; A127330: Begin with the empty sequence and a starting number s = 0. At step k (k >= 1) append the k consecutive numbers s to s+k-1 and change the starting number (for the next step) to 2s+2. ; 0,2,3,6,7,8,14,15,16,17,30,31,32,33,34,62,63,64,65,66,67,126,127,128,129,130,131,132,254,255,256,257,258,259,260,261,510,511,512,513,514,515,516,517,518,1022,1023,1024,1025,1026,1027,1028,1029,1030,1031,2046,2047,2048,2049,2050,2051,2052,2053,2054,2055,2056,4094,4095,4096,4097,4098,4099,4100,4101,4102,4103,4104,4105,8190,8191,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,16382,16383,16384,16385,16386,16387,16388,16389,16390,16391,16392,16393,16394,16395,32766,32767,32768,32769,32770,32771,32772,32773,32774,32775,32776,32777,32778,32779,32780,65534,65535,65536,65537,65538,65539,65540,65541,65542,65543,65544,65545,65546,65547,65548,65549,131070,131071,131072,131073,131074,131075,131076,131077,131078,131079,131080,131081,131082,131083,131084,131085,131086,262142,262143,262144,262145,262146,262147,262148,262149,262150,262151,262152,262153,262154,262155,262156,262157,262158,262159,524286,524287,524288,524289,524290,524291,524292,524293,524294,524295,524296,524297,524298,524299,524300,524301,524302,524303,524304,1048574,1048575,1048576,1048577,1048578,1048579,1048580,1048581,1048582,1048583,1048584,1048585,1048586,1048587,1048588,1048589,1048590,1048591,1048592,1048593,2097150,2097151,2097152,2097153,2097154,2097155,2097156,2097157,2097158,2097159,2097160,2097161,2097162,2097163,2097164,2097165,2097166,2097167,2097168,2097169,2097170,4194302,4194303,4194304,4194305,4194306,4194307,4194308,4194309,4194310,4194311,4194312,4194313,4194314,4194315,4194316,4194317,4194318,4194319,4194320 lpb $0 sub $0,1 mul $2,2 add $2,2 mov $1,$2 add $1,$0 add $3,1 trn $0,$3 lpe
semester-5/microprocessor/16div.asm
saranshbht/bsc-codes
3
245070
<filename>semester-5/microprocessor/16div.asm .model small .data first dw 256 second db 128 tempah db ? tempal db ? msg1 db "Quotient: $" msg2 db 10, "Remainder: $" .code .startup mov ax, first div second mov tempah, ah mov tempal, al lea dx, msg1 mov ah, 09h int 21h mov cx, 2 mov bl, tempal print1: rol bl, 4 mov dl, bl and dl, 0fh add dl, 30h cmp dl, 39h jbe print11 add dl, 07h print11: mov ah, 02h int 21h loop print1 lea dx, msg2 mov ah, 09h int 21h mov cx, 2 mov bl, tempah print2: rol bl, 4 mov dl, bl and dl, 0fh add dl, 30h cmp dl, 39h jbe print21 add dl, 07h print21: mov ah, 02h int 21h loop print2 .exit end