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 |
|---|---|---|---|---|
electrum/src/main/resources/models/book/chapter2/addressBook1f.als | haslab/Electrum | 29 | 3521 | <reponame>haslab/Electrum
module tour/addressBook1f ----- Page 12
sig Name, Addr { }
sig Book {
addr: Name -> lone Addr
}
pred add [b, b1: Book, n: Name, a: Addr] {
b1.addr = b.addr + n->a
}
pred showAdd [b, b1: Book, n: Name, a: Addr] {
add [b, b1, n, a]
#Name.(b1.addr) > 1
}
// This command generates an inst... |
stm32f4/stm32f411xx/svd/stm32_svd-i2c.ads | ekoeppen/STM32_Generic_Ada_Drivers | 1 | 17176 | -- This spec has been automatically generated from STM32F411xx.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with System;
package STM32_SVD.I2C is
pragma Preelaborate;
---------------
-- Registers --
---------------
subtype CR1_PE_Field is STM32_SVD.Bit;... |
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca_notsx.log_21829_1311.asm | ljhsiun2/medusa | 9 | 103854 | <reponame>ljhsiun2/medusa
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r8
push %rcx
push %rdx
push %rsi
lea addresses_WT_ht+0x16fcd, %r12
nop
xor %r8, %r8
movb (%r12), %r10b
nop
nop
nop
nop
xor $56508, %r10
lea addresses_D_ht+0x747d, %rcx
nop
nop
nop
sub %r8, %r8
mov $0x6162636465666768, %rdx
... |
unittests/ASM/FEX_bugs/Test_CmpSelect_Merge_branch.asm | cobalt2727/FEX | 0 | 12329 | <gh_stars>0
%ifdef CONFIG
{
"RegData": {
"RAX": "0x0000000aaaaafaaa"
}
}
%endif
%macro intcompare 3
; instruction, value1, value2
mov rcx, %2
mov rdx, %3
shl rax, 1
cmp rcx, rdx
; Conditional branch
%1 %%true
%%fallthrough:
; False fallthrough path
mov rbx, 0
jmp %%combine
%%tr... |
Actions/Resources/GetVocabularyAction/main.applescript | mikecsh/ProVoc | 5 | 1549 | <reponame>mikecsh/ProVoc
-- main.applescript
-- ProVoc
-- Created by <NAME> on 19.05.06.
-- Copyright 2006 Arizona Software. All rights reserved.
on run {input, parameters}
set theSelectionOnly to |selectionOnly| of parameters
set theIncludeNames to |includeNames| of parameters
set theIncludeComments to |inclu... |
alloy4fun_models/trashltl/models/8/XR5PZx89kSZrW9c3X.als | Kaixi26/org.alloytools.alloy | 0 | 544 | open main
pred idXR5PZx89kSZrW9c3X_prop9 {
all p : Protected | p not in Trash' and p.(^link) not in Trash'
}
pred __repair { idXR5PZx89kSZrW9c3X_prop9 }
check __repair { idXR5PZx89kSZrW9c3X_prop9 <=> prop9o } |
lib/Explore/Product.agda | crypto-agda/explore | 2 | 10682 | {-# OPTIONS --without-K #-}
{- The main definitions are the following:
* exploreΣ
* exploreΣ-ind
* adequate-sumΣ
-}
open import Level.NP
open import Type hiding (★)
open import Type.Identities
open import Function.NP
open import Function.Extensionality
open import Data.Two
open import Data.Product.NP
open impor... |
src/gl/interface/gl-objects-queries.ads | Roldak/OpenGLAda | 79 | 11594 | <gh_stars>10-100
-- part of OpenGLAda, (c) 2017 <NAME>
-- released under the terms of the MIT license, see the file "COPYING"
with GL.Low_Level.Enums;
package GL.Objects.Queries is
pragma Preelaborate;
type Query_Object is new GL_Object with private;
Default_Query : constant Query_Object;
procedure B... |
graphics/palettes.asm | cppchriscpp/ld38 | 4 | 241538 | <filename>graphics/palettes.asm
.export _main_palette, _sprite_palette
_main_palette:
.incbin "graphics/main.pal"
_sprite_palette:
.incbin "graphics/sprite.pal" |
source/compiler/compiler-context.adb | yannickmoy/protobuf | 12 | 10432 | <gh_stars>10-100
-- MIT License
--
-- Copyright (c) 2020 <NAME>
--
-- Permission is hereby granted, free of charge, to any person obtaining a
-- copy of this software and associated documentation files (the "Software"),
-- to deal in the Software without restriction, including without limitation
-- the rights to ... |
Agda/subuniverses.agda | tmoux/HoTT-Intro | 0 | 13726 | {-# OPTIONS --without-K --allow-unsolved-metas #-}
module subuniverses where
import 14-univalence
open 14-univalence public
{-
is-local :
{l1 l2 l3 l4 : Level}
{I : UU l1} {A : I → UU l2} {B : I → UU l3} (f : (i : I) → A i → B i)
(X : UU l4) → UU (l1 ⊔ (l2 ⊔ (l3 ⊔ l4)))
is-local {I = I} {B = B} f X =
(i : I)... |
oeis/247/A247560.asm | neoneye/loda-programs | 11 | 102481 | <gh_stars>10-100
; A247560: a(n) = 3*a(n-1) - 4*a(n-2) with a(0) = a(1) = 1.
; 1,1,-1,-7,-17,-23,-1,89,271,457,287,-967,-4049,-8279,-8641,7193,56143,139657,194399,24569,-703889,-2209943,-3814273,-2603047,7447951,32756041,68476319,74404793,-50690897,-449691863,-1146312001,-1640168551,-335257649,5554901257,18005734367,31... |
src/compiling/ANTLR/grammar/ProceduralBlocksAndAssignments.g4 | jecassis/VSCode-SystemVerilog | 75 | 4643 | grammar ProceduralBlocksAndAssignments;
import ParallelAndSequentialBlocks;
initial_construct : 'initial' statement_or_null ;
always_construct : always_keyword statement ;
always_keyword : 'always' | 'always_comb' | 'always_latch' | 'always_ff' ;
final_construct : 'final' function_statement ;
blocking_assignment : var... |
src/main/antlr4/com/navelplace/jsemver/antlr/Ruby.g4 | BrianDeacon/JSemver | 0 | 5487 | grammar Ruby;
clauses: clause (COMMA clause)* EOF ;
clause: WS* (singleQuote unquotedClause singleQuote) WS* | WS* unquotedClause WS* ;
singleQuote: SINGLE_QUOTE ;
unquotedClause: operator? WS* version ;
operator: OPERATOR ;
version: major (DOT minor (DOT patch)?)? ;
major: VERSION_ELEMENT ;
minor: VERSION_ELEMENT ;
... |
examples/example-2.asm | Ruben-Sten/PP2LAL2PP | 1 | 511 | ;#
;# Example file of how a PP2LAL2PP language file looks like.
;# This is a descriptive doc comment
;#
@CODE
IOAREA EQU -16 ; Address of the I/O-Area, modulo 2^18.
INPUT EQU 7 ; Position of the input buttons (relative to IOAREA).
OUTPU... |
SVD2ada/svd/stm32_svd-ethernet.ads | JCGobbi/Nucleo-STM32H743ZI | 0 | 29354 | 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.Ethernet is
pragma Preelaborate;
---------------
-- Registers --
---------------
subtype DMAMR_PR_Field is HAL.UInt3;
... |
Ada95/src/terminal_interface-curses-forms-field_types-user.ads | arc-aosp/external_libncurses | 35 | 27688 | ------------------------------------------------------------------------------
-- --
-- GNAT ncurses Binding --
-- --
-- ... |
test/Fail/Issue958.agda | cruhland/agda | 1,989 | 1929 |
postulate FunctorOps : Set
module FunctorOps (ops : FunctorOps) where
postulate map : Set
postulate IsFunctor : Set
module IsFunctor (fun : IsFunctor) where
postulate ops : FunctorOps
open FunctorOps ops public
-- inside here `FunctorOps.map ops` gets printed as `map`
open IsFunctor
-- out here it should to... |
alloy4fun_models/trashltl/models/9/WN3dWTaEB82RW6H43.als | Kaixi26/org.alloytools.alloy | 0 | 3863 | <gh_stars>0
open main
pred idWN3dWTaEB82RW6H43_prop10 {
always all f:Protected | always f in Protected
}
pred __repair { idWN3dWTaEB82RW6H43_prop10 }
check __repair { idWN3dWTaEB82RW6H43_prop10 <=> prop10o } |
P6/P6Judger - 100 testpoints/testpoint/testpoint97.asm | flyinglandlord/BUAA-CO-2021 | 5 | 100104 | ori $1, $0, 15
ori $2, $0, 7
ori $3, $0, 3
ori $4, $0, 15
sw $3, 0($0)
sw $4, 4($0)
sw $4, 8($0)
sw $2, 12($0)
sw $4, 16($0)
sw $1, 20($0)
sw $1, 24($0)
sw $1, 28($0)
sw $3, 32($0)
sw $2, 36($0)
sw $2, 40($0)
sw $2, 44($0)
sw $1, 48($0)
sw $1, 52($0)
sw $2, 56($0)
sw $3, 60($0)
sw $4, 64($0)
sw $1, 68($0)
sw $4, 72($0)... |
programs/oeis/185/A185014.asm | neoneye/loda | 22 | 172596 | ; A185014: Characteristic function of four.
; 0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
cmp $0,4
|
oeis/014/A014918.asm | neoneye/loda-programs | 11 | 172723 | ; A014918: a(1)=1, a(n) = n*6^(n-1) + a(n-1).
; 1,13,121,985,7465,54121,380713,2620201,17736745,118513705,783641641,5137206313,33435376681,216285092905,1391747554345,8914707307561,56873575734313,361553445739561,2291192622439465,14478387422649385,91257714663971881,573870628752284713,3601169817124428841,22554695170410896... |
programs/oeis/309/A309827.asm | neoneye/loda | 22 | 22693 | <reponame>neoneye/loda<filename>programs/oeis/309/A309827.asm
; A309827: a(n) is the square of the number consisting of one 1 and n 6's: (166...6)^2.
; 1,256,27556,2775556,277755556,27777555556,2777775555556,277777755555556,27777777555555556,2777777775555555556,277777777755555555556,27777777777555555555556,277777777777... |
fiat-amd64/390.08_ratio10396_seed2412526886283759_square_p434.asm | dderjoel/fiat-crypto | 491 | 86382 | <reponame>dderjoel/fiat-crypto<filename>fiat-amd64/390.08_ratio10396_seed2412526886283759_square_p434.asm
SECTION .text
GLOBAL square_p434
square_p434:
sub rsp, 0x568 ; last 0x30 (6) for Caller - save regs
mov [ rsp + 0x538 ], rbx; saving to stack
mov [ rsp + 0x540 ], rbp; saving to stack
mov [ rsp + 0x548 ], r12; sa... |
programs/oeis/317/A317301.asm | jmorken/loda | 1 | 91394 | ; A317301: Sequence obtained by taking the general formula for generalized k-gonal numbers: m*((k - 2)*m - k + 4)/2, where m = 0, +1, -1, +2, -2, +3, -3, ... and k >= 5. Here k = 1.
; 0,1,-2,1,-5,0,-9,-2,-14,-5,-20,-9,-27,-14,-35,-20,-44,-27,-54,-35,-65,-44,-77,-54,-90,-65,-104,-77,-119,-90,-135,-104,-152,-119,-170,-13... |
CRC/naive_methods_asm.asm | zu3st/CRC | 103 | 87900 | .CODE
; this poly CAN be changed to any desired 32-bit CRC poly.
P equ 082f63b78h
; uint32_t f(const void* M, uint32_t bytes);
;; OPTION 1
option_1_cf_jump PROC
xor eax, eax
test edx, edx
jz END_OF_LOOP
add rcx, rdx
neg rdx
START_OF_LOOP:
xor al, byte ptr [rcx + rdx]
REPEAT 8
shr eax, 1
jnc... |
Transynther/x86/_processed/NC/_st_zr_4k_/i7-7700_9_0x48_notsx.log_21829_480.asm | ljhsiun2/medusa | 9 | 10918 | <reponame>ljhsiun2/medusa
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r8
push %r9
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_D_ht+0x1e745, %rbp
inc %rdx
movups (%rbp), %xmm0
vpextrq $1, %xmm0, %r11
nop
nop
nop
nop
sub %r9, %r9
lea addresses_A_ht+0x108e5, %r8
and %r12, %r1... |
programs/oeis/117/A117619.asm | neoneye/loda | 22 | 242217 | ; A117619: a(n) = n^2 + 7.
; 7,8,11,16,23,32,43,56,71,88,107,128,151,176,203,232,263,296,331,368,407,448,491,536,583,632,683,736,791,848,907,968,1031,1096,1163,1232,1303,1376,1451,1528,1607,1688,1771,1856,1943,2032,2123,2216,2311,2408,2507,2608,2711,2816,2923,3032,3143,3256,3371,3488,3607,3728,3851,3976,4103,4232,4363,... |
specs/ada/server/tkmrpc-contexts-isa.ads | DrenfongWong/tkm-rpc | 0 | 12182 | <filename>specs/ada/server/tkmrpc-contexts-isa.ads<gh_stars>0
with Tkmrpc.Types;
package Tkmrpc.Contexts.isa
is
type isa_State_Type is
(clean,
-- Initial clean state
invalid,
-- Error state
stale,
-- IKE SA stale.
active
-- IKE SA is in active use.
)... |
sdk-6.5.20/tools/led/example/sdk5665.asm | copslock/broadcom_cpri | 0 | 90735 | ;
; $Id: sdk5665.asm,v 1.8 2012/03/02 14:34:03 yaronm Exp $
;
; This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file.
;
; Copyright 2007-2020 Broadcom Inc. All rights reserved.
;
;
; This is the default program for the 5665 SDK (BCM95665K4S... |
tests/assembly/logical operations/0302.asm | danecreekphotography/6502ts | 0 | 85823 | <filename>tests/assembly/logical operations/0302.asm
; 0302 - ORA immediate
.segment "VECTORS"
.word $eaea
.word init
.word $eaea
.code
init:
ora #%10000000 ; Test negative
ora #%00000000 ; Test zero
|
_anim/obj43.asm | vladjester2020/Sonic1TMR | 0 | 244727 | ; ---------------------------------------------------------------------------
; Animation script - Roller enemy
; ---------------------------------------------------------------------------
dc.w byte_E190-Ani_obj43
dc.w byte_E196-Ani_obj43
dc.w byte_E19C-Ani_obj43
byte_E190: dc.b $F, 2, 1, 0, $FE, 1
byte_E... |
gcc-gcc-7_3_0-release/gcc/ada/g-traceb.ads | best08618/asylo | 7 | 21703 | <reponame>best08618/asylo
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- ... |
libsrc/_DEVELOPMENT/compress/zx1/z80/asm_dzx1_turbo.asm | ahjelm/z88dk | 640 | 3370 | <reponame>ahjelm/z88dk
IF !__CPU_INTEL__ && !__CPU_GBZ80__
SECTION smc_compress
PUBLIC asm_dzx1_turbo
asm_dzx1_turbo:
INCLUDE "dzx1_turbo.asm"
ENDIF
|
oeis/340/A340683.asm | neoneye/loda-programs | 11 | 12243 | ; A340683: a(n) = A007949((A003961(A003961(n))+1)/2), where A003961 shifts the prime factorization of n one step towards larger primes, and A007949(x) gives the exponent of largest power of 3 dividing x.
; Submitted by <NAME>(s3)
; 0,1,0,0,1,2,0,2,0,0,2,0,0,1,1,0,1,1,1,1,0,0,0,1,0,1,0,0,0,0,1,1,1,0,2,0,0,0,0,0,1,1,3,1,... |
sort/bubblesort.asm | MrRaffo/c64routines | 0 | 103 | ;==================
; BUBBLE SORT
;==================
;SORT_Bubble8Bit
; sorts a list of unsigned bytes in place, not entirely useless for C64
; as sprite multiplexors use 'almost' sorted lists and so bubble sort can
; exit early when handling them
; PARAM1 - low byte of address of first item i... |
asm/0000_LDA.asm | barrettotte/angstrom-cpu | 0 | 165026 | <reponame>barrettotte/angstrom-cpu
; load accumulator with memory
LDI #0 ; 00010000 00000000 0x1000
ADI #1 ; 10000000 00000001 0x8001
STA #0x21 ; 00100000 00010101 0x2015
LDI #0 ; 00010000 00000000 0x1000
LDA #0x21 ; 00000000 00010101 0x0015
|
examples/simulator/src/gdb_remote-target.adb | Fabien-Chouteau/libriscv | 0 | 19245 | with GDB_Remote.Agent; use GDB_Remote.Agent;
package body GDB_Remote.Target is
subtype Dispatch is Class;
---------------
-- From_Host --
---------------
procedure From_Host (This : in out Instance; C : Character) is
Evt : constant Agent.Event := This.Received (C);
begin
case Evt.Kind... |
builtin_echo.asm | jhunkeler/minos | 1 | 4452 | <filename>builtin_echo.asm
%ifndef _BUILTIN_ECHO_ASM
%define _BUILTIN_ECHO_ASM
builtin_echo:
push bp
mov bp, sp
mov cx, word [bp + 4] ; argc
mov bx, word [bp + 6] ; argv
cmp cx, 0 ; if no arguments, return
jbe .return
.output: ; print argv
push word [bx]
push .msg_fmt
call printf
add sp, 2 * 2
ad... |
src/Substitution.agda | nad/chi | 2 | 6705 | ------------------------------------------------------------------------
-- Some substitution lemmas
------------------------------------------------------------------------
open import Atom
module Substitution (atoms : χ-atoms) where
open import Equality.Propositional
open import Prelude hiding (const)
open import... |
alloy4fun_models/trashltl/models/13/7FtSWiwrD6Xj4WDWA.als | Kaixi26/org.alloytools.alloy | 0 | 747 | open main
pred id7FtSWiwrD6Xj4WDWA_prop14 {
eventually some Protected & Trash => no Protected' & Trash'
}
pred __repair { id7FtSWiwrD6Xj4WDWA_prop14 }
check __repair { id7FtSWiwrD6Xj4WDWA_prop14 <=> prop14o } |
src/002/b.ads | xeenta/learning-ada | 0 | 26168 | <filename>src/002/b.ads
package B is
procedure Print_Modify;
end B;
|
Transynther/x86/_processed/AVXALIGN/_zr_/i7-7700_9_0xca_notsx.log_6271_1001.asm | ljhsiun2/medusa | 9 | 91530 | .global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r14
push %r15
lea addresses_D_ht+0xa1a, %r15
sub %r14, %r14
and $0xffffffffffffffc0, %r15
movaps (%r15), %xmm1
vpextrq $0, %xmm1, %r10
add $57961, %r15
lea addresses_WC_ht+0x5d3e, %r12
nop
nop
nop
xor $4273, %r10
movl $0x61626364, (%r12)
nop
nop
inc... |
test/Fail/Issue721c.agda | shlevy/agda | 1,989 | 1660 | -- 2012-10-20 Andreas
module Issue721c where
data Bool : Set where
false true : Bool
record Foo (b : Bool) : Set where
field
_*_ : Bool → Bool → Bool
data _≡_ {A : Set} (x : A) : A → Set where
refl : x ≡ x
record ∃ {A : Set} (B : A → Set) : Set where
constructor pack
field fst : A
snd : B fst
... |
programs/oeis/094/A094328.asm | jmorken/loda | 1 | 172425 | <gh_stars>1-10
; A094328: Iterate the map in A006369 starting at 4.
; 4,5,7,9,6,4,5,7,9,6,4,5,7,9,6,4,5,7,9,6,4,5,7,9,6,4,5,7,9,6,4,5,7,9,6,4,5,7,9,6,4,5,7,9,6,4,5,7,9,6,4,5,7,9,6,4,5,7,9,6,4,5,7,9,6,4,5,7,9,6,4,5,7,9,6,4,5,7,9,6,4,5,7,9,6,4,5,7,9,6,4,5,7,9,6,4,5,7,9,6,4,5,7,9,6,4,5,7,9,6,4,5,7,9,6,4,5,7,9,6,4,5,7,9,6,... |
src/keystore-repository-data.ads | thierr26/ada-keystore | 0 | 4263 | <filename>src/keystore-repository-data.ads
-----------------------------------------------------------------------
-- keystore-repository-data -- Data access and management for the keystore
-- Copyright (C) 2019 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License... |
test/Succeed/Issue447.agda | cruhland/agda | 1,989 | 12093 | <reponame>cruhland/agda<gh_stars>1000+
-- Abstract definitions can't be projection-like
module Issue447 where
postulate
I : Set
R : I → Set
module M (i : I) (r : R i) where
abstract
P : Set₂
P = Set₁
p : P
p = Set
|
programs/oeis/120/A120169.asm | jmorken/loda | 1 | 5551 | ; A120169: a(1)=12; a(n)=floor((49+sum(a(1) to a(n-1)))/4).
; 12,15,19,23,29,36,45,57,71,89,111,139,173,217,271,339,423,529,661,827,1033,1292,1615,2018,2523,3154,3942,4928,6160,7700,9625,12031,15039,18798,23498,29372,36715,45894,57368,71710,89637,112046,140058,175072,218840,273550,341938,427422,534278,667847,834809,104... |
oeis/323/A323650.asm | neoneye/loda-programs | 11 | 18561 | ; A323650: Flower garden sequence (see Comments for precise definition).
; Submitted by <NAME>
; 0,1,3,7,15,19,27,39,63,67,75,87,111,123,147,183,255,259,267,279,303,315,339,375,447,459,483,519,591,627,699,807,1023,1027,1035,1047,1071,1083,1107,1143,1215,1227,1251,1287,1359,1395,1467,1575,1791,1803,1827,1863,1935,1971,2... |
programs/oeis/010/A010170.asm | karttu/loda | 0 | 89741 | ; A010170: Continued fraction for sqrt(99).
; 9,1,18,1,18,1,18,1,18,1,18,1,18,1,18,1,18,1,18,1,18,1,18,1,18,1,18,1,18,1,18,1,18,1,18,1,18,1,18,1,18,1,18,1,18,1,18,1,18,1,18,1,18,1,18,1,18,1,18,1,18,1,18,1,18,1,18,1,18,1,18,1,18,1,18,1,18,1,18,1,18,1,18,1,18,1,18,1,18,1,18,1,18,1,18,1,18,1,18,1,18,1,18,1,18,1,18,1,18,1,... |
nasm assembly/assignment 5 -backup/qs3.asm | AI-Factor-y/NASM-library | 0 | 91852 | <filename>nasm assembly/assignment 5 -backup/qs3.asm
section .data
msg1 : db 'debug here --',10
l1 : equ $-msg1
msg2 : db 'Enter your string : '
l2 : equ $-msg2
msg3 : db 'The sorted string is : '
l3 : equ $-msg3
msg4 : db 'msg 4 here'
l4: equ $-msg4
msg5 : db 'msg 5 here',10
l5: equ $-msg5
space:db ... |
Language/Cloaca.g4 | rockobonaparte/cloaca | 3 | 1750 | <gh_stars>1-10
// Original inspiration: https://github.com/antlr/grammars-v4/blob/master/python3-cs/Python3.g4
grammar Cloaca;
tokens { INDENT, DEDENT }
@lexer::header{
using System.Linq;
using System.Text.RegularExpressions;
}
@lexer::members {
// A queue where extra tokens are pushed on (see the NEWLINE lexer ru... |
Gathered CTF writeups/ptr-yudai-writeups/2019/TokyoWesterns_CTF_5th_2019/ebc/ebc.asm | mihaid-b/CyberSakura | 1 | 24274 | <reponame>mihaid-b/CyberSakura<filename>Gathered CTF writeups/ptr-yudai-writeups/2019/TokyoWesterns_CTF_5th_2019/ebc/ebc.asm
0x0000000004006000: 79 01 fc 0f MOVREL R1, 0x0ffc
0x0000000004006004: 20 91 MOVqw R1, @R1
0x0000000004006006: 72 91 85 21 MOVnw R1, @R1 (+5, +24)
0x000000000400600a: b5 ... |
day08/src/vm.ads | jwarwick/aoc_2020 | 3 | 1054 | <gh_stars>1-10
with Ada.Strings.Unbounded;
with Ada.Containers.Hashed_Maps;
use Ada.Containers;
package VM is
type Instruction_Index is new Natural;
type VM is private;
VM_Exception : exception;
function load_file(file : in String) return VM;
procedure reset(v : in out VM);
function acc(v : in VM) retur... |
electrum/src/main/resources/models/book/appendixE/p300-hotel.als | haslab/Electrum | 29 | 1893 | module hotel
open util/ordering [Time] as timeOrder
sig Key, Time {}
sig Card {
fst, snd: Key
}
sig Room {
key: Key one->Time
}
one sig Desk {
issued: Key->Time,
prev: (Room->lone Key)->Time
}
sig Guest {
cards: Card->Time
}
pred init [t: Time] {
Desk.prev.t = key.t
no issued.t and no cards.t ------ b... |
test/src/test_scroll_window.ads | Fabien-Chouteau/Giza | 7 | 19614 | <reponame>Fabien-Chouteau/Giza
with Giza.Widget.Scrolling;
use Giza.Widget;
with Basic_Test_Window; use Basic_Test_Window;
package Test_Scroll_Window is
type Scroll_Window is new Test_Window with private;
type Scroll_Window_Ref is access all Scroll_Window;
overriding
procedure On_Init (This : in out Scrol... |
src/Data/PropFormula/Theorems/Weakening.agda | jonaprieto/agda-prop | 13 | 15055 | ------------------------------------------------------------------------------
-- Agda-Prop Library.
-- Extension Theorems of the Syntax definitions.
------------------------------------------------------------------------------
open import Data.Nat using ( ℕ )
module Data.PropFormula.Theorems.Weakening ( n : ℕ ) whe... |
oeis/248/A248216.asm | neoneye/loda-programs | 11 | 10601 | <reponame>neoneye/loda-programs<filename>oeis/248/A248216.asm<gh_stars>10-100
; A248216: a(n) = 6^n - 2^n.
; 0,4,32,208,1280,7744,46592,279808,1679360,10077184,60465152,362795008,2176778240,13060685824,78364147712,470184951808,2821109841920,16926659313664,101559956406272,609359739486208,3656158439014400,219369506382807... |
src/main/fragment/mega45gs02-common/vdsz1=vdsz2_ror_1.asm | jbrandwood/kickc | 2 | 179712 | <reponame>jbrandwood/kickc
ldq {z2}
asrq
stq {z1} |
resources/sprites.asm | VincentFoulon80/vixx | 1 | 11673 | <filename>resources/sprites.asm
!ifndef is_main !eof
!set .sprite_addr = vram_sprites_base
!set .sprite_size = $20
bullet_packet_size = .sprite_size
bullet_packet_qty = $01
bullet_bank = vram_sprites_base_b
bullet_address = .sprite_addr
bullet_spid = <(bullet_address >> 5)
bullet_spid_size ... |
alloy4fun_models/trashltl/models/5/oZyiRx7Jrt8DPN366.als | Kaixi26/org.alloytools.alloy | 0 | 1061 | <filename>alloy4fun_models/trashltl/models/5/oZyiRx7Jrt8DPN366.als
open main
pred idoZyiRx7Jrt8DPN366_prop6 {
some f:File | f in Trash releases always f in Trash
}
pred __repair { idoZyiRx7Jrt8DPN366_prop6 }
check __repair { idoZyiRx7Jrt8DPN366_prop6 <=> prop6o } |
array_sort.asm | mohammadekhosravi/assembly | 2 | 91535 | <reponame>mohammadekhosravi/assembly<gh_stars>1-10
; ------------ARRAY SORT---------------
; THIS PROGRAM GET SIZE OF ARRAY AND EACH ELEMENT OF ARRAY AND THEN SORT ARRAY AND PRINT IT OUT.
; WORK WITH BOTH SINGED AND UNSIGNDED NUMBERS.
.MODEL SMALL
.DATA
MSG1 DB "ENTER SIZE OF ARRAY: $"
MSG2 DB "SORTED ARR... |
hdes-dialect/hdes-ast/src/main/antlr4/imports/FlowParser.g4 | the-wrench-io/hdes-parent | 1 | 5898 | <gh_stars>1-10
parser grammar FlowParser;
options { tokenVocab = HdesLexer; }
import TypeDefParser, ExpressionParser;
flowUnit: simpleTypeName headers '{' steps '}';
steps: step*;
step: simpleTypeName '(' ')' '{' (iterateAction | callAction) stepAs? pointer '}';
stepAs: '.'? AS '(' mapping ')';
callAction: callDef*;
... |
Task/Array-concatenation/Ada/array-concatenation.ada | LaudateCorpus1/RosettaCodeData | 1 | 27420 | type T is array (Positive range <>) of Integer;
X : T := (1, 2, 3);
Y : T := X & (4, 5, 6); -- Concatenate X and (4, 5, 6)
|
Transynther/x86/_processed/AVXALIGN/_ht_st_zr_un_/i7-7700_9_0x48_notsx.log_331_462.asm | ljhsiun2/medusa | 9 | 86051 | <gh_stars>1-10
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r12
push %r13
push %r9
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0xd16f, %r12
dec %r9
mov (%r12), %r13d
nop
nop
nop
and $38500, %r13
lea addresses_D_ht+0xc6ef, %r12
cmp $32596, %rdi
vmovups (%r12), %ymm6
vextract... |
Task/Pascals-triangle/Ada/pascals-triangle-2.ada | LaudateCorpus1/RosettaCodeData | 1 | 30676 | <filename>Task/Pascals-triangle/Ada/pascals-triangle-2.ada
package body Pascal is
function First_Row(Max_Length: Positive) return Row is
R: Row(0 .. Max_Length) := (0 | 1 => 1, others => 0);
begin
return R;
end First_Row;
function Next_Row(R: Row) return Row is
S: Row(R'Range);
begin
... |
libsrc/video/tms9918/l_tms9918_disable_interrupts_nmi.asm | jpoikela/z88dk | 640 | 5800 | <reponame>jpoikela/z88dk
SECTION code_clib
PUBLIC l_tms9918_disable_interrupts
PUBLIC l_tms9918_enable_interrupts
PUBLIC __vdp_enable_status
INCLUDE "video/tms9918/vdp.inc"
l_tms9918_disable_interrupts:
ld a,128
ld (__vdp_enable_status),a
ret
l_tms9918_enable_interrupts:
xor a
ld (__vdp_enable_status),... |
examples/hello_world_request_reply2/src/primes-requester_main.adb | alexcamposruiz/dds-requestreply | 0 | 21514 |
with Ada.Command_Line;
with Ada.Text_IO; use Ada.Text_IO;
with DDS.DomainParticipant;
with DDS.DomainParticipantFactory;
with Primes.PrimeNumberRequester;
with Primes_IDL_File.PrimeNumberRequest_TypeSupport;
with RTIDDS.Config;
procedure Primes.Requester_Main is
use Primes_IDL_File;
use DDS.DomainParticipant;
... |
tests/mips1.asm | QuarticCat/qc-mips-cpu | 0 | 9790 | <gh_stars>0
.text
# This test does not include any hazards, jump, branch
# This test only aims to test the normal function of the cpu.
# To test wheter the cpu can do other instructions correctly.
addi $v0, $zero, 1
addi $v1, $zero, 2
addiu $a0, $zero, 20
addiu $a1, $zero, 16
addiu $a2, $zero, 4
add $a3, $v0, $v1 # 3... |
arch/ARM/STM32/svd/stm32f7x9/stm32_svd-syscfg.ads | rocher/Ada_Drivers_Library | 192 | 10952 | -- This spec has been automatically generated from STM32F7x9.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with HAL;
with System;
package STM32_SVD.SYSCFG is
pragma Preelaborate;
---------------
-- Registers --
---------------
subtype MEMRM_MEM_MODE_Fiel... |
src/main.asm | haramako/castle | 2 | 81790 |
.export scroll
.segment "main"
;;; scanline中のスクロールを行う
;;; x: X座標 y: Y座標
;;; See: http://forums.nesdev.com/viewtopic.php?p=64111#p64111
;;; use 56cycle ( jsr含む、最後の'sta _PPU_ADDR'まで )
scroll:
lda #0
clc
rol a
asl a
asl a
sta _nes_PPU_ADDR
tya
sta _nes_PPU_SCROLL
asl a
asl a
and #%11100000
sta _common_sc... |
programs/oeis/132/A132596.asm | neoneye/loda | 22 | 83478 | ; A132596: X-values of solutions to the equation X*(X + 1) - 6*Y^2 = 0.
; 0,2,24,242,2400,23762,235224,2328482,23049600,228167522,2258625624,22358088722,221322261600,2190864527282,21687323011224,214682365584962,2125136332838400,21036680962799042,208241673295152024,2061380051988721202,20405558846592060000,20199420841393... |
programs/oeis/219/A219029.asm | neoneye/loda | 22 | 12718 | ; A219029: a(n) = n - 1 - phi(phi(n)).
; -1,0,1,2,2,4,4,5,6,7,6,9,8,11,10,11,8,15,12,15,16,17,12,19,16,21,20,23,16,25,22,23,24,25,26,31,24,31,30,31,24,37,30,35,36,35,24,39,36,41,34,43,28,47,38,47,44,45,30,51,44,53,50,47,48,57,46,51,48,61,46,63,48,61,58,63,60,69,54,63,62,65,42,75,52,73,62,71,48,81,66,71,76,71,70,79,64,8... |
programs/oeis/260/A260444.asm | neoneye/loda | 22 | 96848 | ; A260444: Infinite palindromic word (a(1),a(2),a(3),...) with initial word w(1) = (1,0,0) and midword sequence (a(n)); see A260390.
; 1,0,0,1,0,0,1,0,1,0,0,1,0,0,1,0,1,0,0,1,0,0,1,0,1,0,0,1,0,0,1,1,1,0,0,1,0,0,1,0,1,0,0,1,0,0,1,0,1,0,0,1,0,0,1,0,1,0,0,1,0,0,1,0,1,0,0,1,0,0,1,0,1,0,0,1,0,0,1,0,1,0,0,1,0,0
mov $2,$0
mi... |
oeis/286/A286630.asm | neoneye/loda-programs | 11 | 175706 | <reponame>neoneye/loda-programs
; A286630: a(0) = 1; for n >= 1, a(n) = A000040(n) * A002110(n).
; Submitted by <NAME>
; 1,4,18,150,1470,25410,390390,8678670,184294110,5131136010,187621103670,6217375194030,274567310987970,12474260804615610,562558737261811290,28899819781659096270,1727225399291072370690,11344286065909854... |
aosvs/aosvs-sys_memory.adb | SMerrony/dgemua | 2 | 22294 | -- MIT License
-- Copyright (c) 2021 <NAME>
-- Permission is hereby granted, free of charge, to any person obtaining a copy
-- of this software and associated documentation files (the "Software"), to deal
-- in the Software without restriction, including without limitation the rights
-- to use, copy, modify, merge, p... |
BasicConcreteImplementations.agda | mietek/lamport-timestamps | 0 | 10958 | module BasicConcreteImplementations where
open import AbstractInterfaces public
-- Process identifiers.
instance
⟨P⟩ : IsProc
⟨P⟩ = record
{ Proc = ℕ
; _≡ₚ?_ = _≡?_
; _<ₚ_ = _<_
; trans<ₚ = trans<
; tri<ₚ = tri<
}
-- Process clocks, message... |
src/yeison_multi.ads | mosteo/yeison | 6 | 30356 | package Yeison_Multi with Preelaborate is
type Any is tagged private;
type Scalar is tagged private with
Integer_Literal => To_Int,
String_Literal => To_Str;
function To_Int (Img : String) return Scalar;
function To_Str (Img : Wide_Wide_String) return Scalar;
type Map is tagged private with... |
oeis/034/A034584.asm | neoneye/loda-programs | 11 | 8439 | <filename>oeis/034/A034584.asm<gh_stars>10-100
; A034584: Radon-Hurwitz numbers: log_2 of dimension of an irreducible R-module for Clifford algebra Cl_n.
; Submitted by <NAME>(s1)
; 0,1,2,2,3,3,3,3,4,5,6,6,7,7,7,7,8,9,10,10,11,11,11,11,12,13,14,14,15,15,15,15,16,17,18,18,19,19,19,19,20,21,22,22,23,23,23,23,24,25,26,26,... |
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48.log_21829_1113.asm | ljhsiun2/medusa | 9 | 83688 | .global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r15
push %r8
push %r9
push %rax
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_D_ht+0x1b101, %r8
dec %r10
mov (%r8), %dx
nop
nop
nop
nop
sub $50274, %rax
lea addresses_WC_ht+0x1cc03, %r15
nop
nop
nop
nop
nop
and $25548, %r9
movups (%r15), %xmm5
vpextrq... |
_build/dispatcher/jmp_ippsGFpECTstPoint_28802bc6.asm | zyktrcn/ippcp | 1 | 88937 | extern m7_ippsGFpECTstPoint:function
extern n8_ippsGFpECTstPoint:function
extern y8_ippsGFpECTstPoint:function
extern e9_ippsGFpECTstPoint:function
extern l9_ippsGFpECTstPoint:function
extern n0_ippsGFpECTstPoint:function
extern k0_ippsGFpECTstPoint:function
extern ippcpJumpIndexForMergedLibs
extern ippcpSafeInit:funct... |
src/main/antlr4/org/bierner/matchbook/parser/Matchbook.g4 | gbierner/matchbook | 0 | 594 | /*
* Copyright (c) 2014, <NAME>
*/
grammar Matchbook;
@parser::header {
}
@lexer::header {
}
expression: or EOF;
or: is (OR is)*;
is: isnt (IS isnt)*;
isnt: sequence (ISNT sequence)?;
sequence: repeat+;
repeat:
capture #RepeatNone
| capture '?' #Repeat0or... |
src/Sym_Expr/test/test_report.adb | fintatarta/eugen | 0 | 22258 | ----------------------------------------------------------------------------
-- Symbolic Expressions (symexpr)
--
-- Copyright (C) 2012, <NAME>
--
-- This file is part of symexpr.
--
-- symexpr is free software: you can redistribute it and/or modify
-- it under the terms of the L... |
Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0x48.log_21829_170.asm | ljhsiun2/medusa | 9 | 88142 | .global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r8
push %rax
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_WT_ht+0x5d4b, %rdi
nop
nop
add %r8, %r8
movb $0x61, (%rdi)
nop
nop
nop
add $27953, %rbx
lea addresses_WC_ht+0x1915f, %rsi
lea addresses_UC_ht+0x1690b, %rdi
nop
nop
dec %r10
mov $67, %rcx
rep m... |
oeis/004/A004798.asm | neoneye/loda-programs | 11 | 81033 | ; A004798: Convolution of Fibonacci numbers 1,2,3,5,... with themselves.
; Submitted by <NAME>
; 1,4,10,22,45,88,167,310,566,1020,1819,3216,5645,9848,17090,29522,50793,87080,148819,253610,431086,731064,1237175,2089632,3523225,5930668,9968122,16730830,28045221,46954360,78524159,131181406,218933030,365044788,608135635,10... |
Transynther/x86/_processed/AVXALIGN/_zr_/i9-9900K_12_0xa0.log_21829_1876.asm | ljhsiun2/medusa | 9 | 24593 | .global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r14
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x11583, %rsi
lea addresses_A_ht+0x1b583, %rdi
clflush (%rsi)
sub $15762, %r12
mov $37, %rcx
rep movsw
nop
cmp $46543, %r14
lea addresses_UC_ht+0xa921, %rsi
lea addresses_A_ht+0x1b65b, %... |
ourGrammar.g4 | adam-pog/sawatiKhap | 0 | 556 | grammar ourGrammar;
options {
language=Java;
}
start : 'settings' '[' option+ ']' workspace*;
option : ID '=' value;
workspace : 'workspace' NUM '[' application+ ']';
application : ID '{' appoption* '}';
appoption : ID '=' appvalue;
ID : ('a'..'z' | 'A'..'Z') ('a'..'z' | 'A'..'Z'| NUM | SYM... |
tests/syntax_examples/src/basic_declaration-subprogram_body_stub_name.adb | TNO/Dependency_Graph_Extractor-Ada | 1 | 25080 | separate(Basic_Declaration)
procedure Subprogram_Body_Stub_Name is
begin
null;
end Subprogram_Body_Stub_Name;
|
libsrc/_DEVELOPMENT/arch/zx/display/c/sccz80/zx_saddr2cx.asm | teknoplop/z88dk | 0 | 19278 | <filename>libsrc/_DEVELOPMENT/arch/zx/display/c/sccz80/zx_saddr2cx.asm<gh_stars>0
; uint zx_saddr2cx(void *saddr)
SECTION code_clib
SECTION code_arch
PUBLIC zx_saddr2cx
EXTERN asm_zx_saddr2cx
defc zx_saddr2cx = asm_zx_saddr2cx
|
xnlib/xnclib/setjmp.asm | manaskamal/aurora-xeneva | 8 | 1851 | ;;-------------------------------------------------------
;; Copyright (C) <NAME>
;;
;; /PROJECT - Aurora's Xeneva
;; /AUTHOR - <NAME>
;;
;;-------------------------------------------------------
section .text
[BITS 64]
global setjmp
setjmp:
mov [rcx], rbx
mov [rcx + 8], rbp
mov [rcx + 16], r12
mov [rc... |
libsrc/_DEVELOPMENT/arch/zx/misc/c/sccz80/zx_visit_wc_attr_callee.asm | jpoikela/z88dk | 640 | 8371 | ; void zx_visit_wc_attr(struct r_Rect8 *r, void *function)
SECTION code_clib
SECTION code_arch
PUBLIC zx_visit_wc_attr_callee
EXTERN asm_zx_visit_wc_attr
zx_visit_wc_attr_callee:
pop af
pop de
pop ix
push af
jp asm_zx_visit_wc_attr
|
CE3105/ASM3.asm | rafaellepalmos/Assembly_Language | 0 | 86384 | <filename>CE3105/ASM3.asm
data segment
entername DB 'Enter your name:$'
enterlast DB 'Enter your last name:$'
enterid DB 'Enter your ID number:$'
enterfac DB 'Enter your faculty:$'
name1 DB 'Name:$'
last db 'Last name:$'
id db 'ID:$'
fac db 'Faculty:$'
name2 DB 20d DUP ('$')
last2 DB 20d DUP ('$')
id2 DB 20d... |
Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnarl/s-taskin.adb | djamal2727/Main-Bearing-Analytical-Model | 0 | 28623 | <filename>Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnarl/s-taskin.adb
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- ... |
programs/oeis/081/A081490.asm | karttu/loda | 0 | 89769 | <gh_stars>0
; A081490: Leading term of n-th row of A081491.
; 1,2,4,9,19,36,62,99,149,214,296,397,519,664,834,1031,1257,1514,1804,2129,2491,2892,3334,3819,4349,4926,5552,6229,6959,7744,8586,9487,10449,11474,12564,13721,14947,16244,17614,19059,20581,22182,23864,25629
mov $2,$0
mul $2,2
bin $2,3
mov $3,$2
div $3,4
add $... |
processor/processor-eagle_mem_ref_p.adb | SMerrony/dgemua | 2 | 14265 | <filename>processor/processor-eagle_mem_ref_p.adb
-- MIT License
-- Copyright (c) 2021 <NAME>
-- Permission is hereby granted, free of charge, to any person obtaining a copy
-- of this software and associated documentation files (the "Software"), to deal
-- in the Software without restriction, including without limit... |
src/API/protypo-api-engine_values.ads | fintatarta/protypo | 0 | 23857 | <reponame>fintatarta/protypo
pragma Ada_2012;
limited with Protypo.Api.Engine_Values.Handlers;
package Protypo.Api.Engine_Values is
use Ada.Strings.Unbounded;
type Engine_Value_Class is
(
Void,
Int,
Real,
Text,
Array_Handler,
Record_Handler,
Ambivalent_Handler,
... |
arch/subr.asm | decagondev/CS_41_long | 0 | 96287 | <gh_stars>0
mov ax, 10
mov bx, 20
call add_bx_to_ax
mov bx, 123
hlt
add_bx_to_ax:
add ax, bx
ret |
Practica 03/P03_Ejercicio3/src/ejercicio3.adb | dpr1005/Tiempo-Real-Ejercicios | 0 | 14695 | with Ada.Text_IO; use Ada.Text_IO; with Ada.Integer_Text_IO;
procedure Ejercicio3 is
type Identificador is new Integer;
type Rep is new Integer;
task type Tarea_Original(IdTarea : Identificador; Rep : Integer);
task body Tarea_Original is
begin
for I in 1..Rep loop
Put_Line("Soy la tare... |
src/vn/ductt/verk/parser/SystemVerilogParser.g4 | bynoud/verk | 0 | 1141 | <filename>src/vn/ductt/verk/parser/SystemVerilogParser.g4
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
//*******************************************************************/
//* Company: Microsoft Corporation */
//* Engineer: <N... |
processor/src/main/antlr4/br/com/easymath/processor/mathematical/grammar/Formula.g4 | eduardovalentim/easymath | 0 | 1395 | grammar Formula;
// starting point for parsing a formula
formula
: expression
;
expression
: LPAREN expression RPAREN #parenthesis
| LBRACK expression RBRACK #brackets
| LBRACE expression RBRACE ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.