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 |
|---|---|---|---|---|
example/rule/example/gengine.g4 | wangdyqxx/sutil | 1 | 5413 | grammar gengine;
primary: ruleEntity+;
ruleEntity: RULE ruleName ruleDesc?salience? BEGIN ruleContent END;
ruleName : testStr;
ruleDesc : testStr;
testStr: ' ';
salience : ;
ruleContent: 'return 1'; |
oeis/098/A098445.asm | neoneye/loda-programs | 11 | 96024 | ; A098445: Coefficients of powers of q^5 in (q)_infty^5 = (q_5)^infty (mod 5).
; Submitted by <NAME>(w1)
; 1,4,4,0,0,1,0,1,0,0,0,0,4,0,0,4,0,0,0,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,0,4,0,0,0,0,4,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,4,0,0,0,0,0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0
seq $0,7706 ... |
Validation/pyFrame3DD-master/gcc-master/gcc/ada/bindo-validators.ads | djamal2727/Main-Bearing-Analytical-Model | 0 | 10240 | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
src/parser/Pico.g4 | nmiljkovic/pico-asm | 1 | 6014 | <gh_stars>1-10
grammar Pico;
program
: EOL* symbols origin instructions
;
symbols
: symbolDeclLine*
;
symbolDeclLine
: symbolDecl? comment? EOL
;
symbolDecl
: identifier '=' constant
;
origin
: ORG constant comment? EOL
;
instructions
: line+
;
line
: label? instruction? comment? EOL
... |
C/BiosLib/setvidmo.asm | p-k-p/SysToolsLib | 232 | 81245 | page ,132
TITLE C library emulation, not relying on MS-DOS.
;*****************************************************************************;
; ;
; File Name: SetVidMo.asm ;
; ;
; Description: Set Video Mode ;
; ;
; Notes: ;
; ... |
ASM/src/cutscenes.asm | ShadoMagi/OoT-Randomizer | 0 | 6406 | <filename>ASM/src/cutscenes.asm
override_great_fairy_cutscene:
; a0 = global context
; a2 = fairy actor
lw t0, 0x1D2C (a0) ; t0 = switch flags
li t1, 1
sll t1, t1, 0x18 ; t1 = ZL switch flag
and v0, t0, t1
beqz v0, @@return ; Do nothing until ZL is played
nop
lh... |
src/main/antlr4/io/github/mbarkley/rollens/antlr/CommandParser.g4 | mbarkley/modus-rollens | 0 | 6709 | <filename>src/main/antlr4/io/github/mbarkley/rollens/antlr/CommandParser.g4<gh_stars>0
parser grammar CommandParser;
options {
tokenVocab = CommandLexer;
contextSuperClass=io.github.mbarkley.rollens.antlr.RuleContextWithAltNum;
}
// Grammar rules
command
: START expression EOF
;
expression
: roll... |
oeis/123/A123011.asm | neoneye/loda-programs | 11 | 19520 | ; A123011: a(n) = 2*a(n-1) + 5*a(n-2) for n > 1; a(0) = 1, a(1) = 5.
; Submitted by <NAME>(s4)
; 1,5,15,55,185,645,2215,7655,26385,91045,314015,1083255,3736585,12889445,44461815,153370855,529050785,1824955845,6295165615,21715110455,74906048985,258387650245,891305545415,3074549342055,10605626411185,36583999532645,126196... |
msp430-gcc-tics/msp430-gcc-7.3.1.24-source-full/gcc/gcc/testsuite/gnat.dg/disp2_pkg.adb | TUDSSL/TICS | 7 | 1266 | <reponame>TUDSSL/TICS<gh_stars>1-10
package body Disp2_Pkg is
function Impl_Of (Self : access Object) return Object_Ptr is
begin
return Object_Ptr (Self);
end Impl_Of;
end Disp2_Pkg;
|
data/trainers/leaders.asm | Dev727/ancientplatinum | 28 | 167369 | <reponame>Dev727/ancientplatinum
; These lists determine the battle music and victory music, and whether to
; award HAPPINESS_GYMBATTLE for winning.
; Note: CHAMPION and RED are unused for battle music checks, since they are
; accounted for prior to the list check.
GymLeaders:
db FALKNER
db WHITNEY
db BUGSY
db MO... |
programs/oeis/144/A144481.asm | neoneye/loda | 22 | 168640 | ; A144481: A078371(n-1) mod 9.
; 5,3,0,5,0,3,5,6,6,5,3,0,5,0,3,5,6,6,5,3,0,5,0,3,5,6,6,5,3,0,5,0,3,5,6,6
seq $0,73577 ; a(n) = 4*n^2 + 4*n - 1.
mod $0,9
sub $0,2
|
examples/Sized/Parrot.agda | agda/ooAgda | 23 | 13492 | <filename>examples/Sized/Parrot.agda
module Sized.Parrot where
open import Data.Product
open import Data.String.Base
open import SizedIO.IOObject
open import SizedIO.Base
open import SizedIO.Console hiding (main)
open import SizedIO.ConsoleObject
open import NativeIO
open import Sized.SimpleCell hiding (program; m... |
Transynther/x86/_processed/AVXALIGN/_zr_/i7-7700_9_0xca.log_21829_276.asm | ljhsiun2/medusa | 9 | 167243 | <filename>Transynther/x86/_processed/AVXALIGN/_zr_/i7-7700_9_0xca.log_21829_276.asm
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r14
push %r9
push %rax
push %rbp
push %rcx
push %rdi
lea addresses_WT_ht+0x1b2fd, %r10
nop
nop
nop
cmp %rcx, %rcx
mov $0x6162636465666768, %rax
movq %rax, %xmm6
vmovups %ymm6,... |
unittests/ASM/X87_F64/DA_04_F64.asm | Seas0/FEX | 0 | 97937 | <gh_stars>0
%ifdef CONFIG
{
"RegData": {
"RAX": ["0xbff0000000000000"]
},
"Env": { "FEX_X87REDUCEDPRECISION" : "1" }
}
%endif
mov rdx, 0xe0000000
mov rax, 0x3ff0000000000000 ; 1.0
mov [rdx + 8 * 0], rax
mov eax, 2
mov [rdx + 8 * 1], eax
fld qword [rdx + 8 * 0]
fisub dword [rdx + 8 * 1]
fst qword [rdx]
mo... |
programs/oeis/186/A186317.asm | karttu/loda | 0 | 90650 | ; A186317: Adjusted joint rank sequence of (f(i)) and (g(j)) with f(i) after g(j) when f(i)=g(j), where f and g are the squares and hexagonal numbers. Complement of A186318.
; 2,3,5,7,8,10,12,13,15,17,19,20,22,24,25,27,29,30,32,34,36,37,39,41,42,44,46,48,49,51,53,54,56,58,60,61,63,65,66,68,70,71,73,75,77,78,80,82,83,8... |
tools-src/gnu/gcc/gcc/ada/s-taenca.ads | enfoTek/tomato.linksys.e2000.nvram-mod | 80 | 6561 | <filename>tools-src/gnu/gcc/gcc/ada/s-taenca.ads
------------------------------------------------------------------------------
-- --
-- GNU ADA RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- ... |
coverage/IN_CTS/0489-COVERAGE-nir-opt-loop-unroll-83/work/variant/1_spirv_asm/shader.frag.asm | asuonpaa/ShaderTests | 0 | 7936 | ; SPIR-V
; Version: 1.0
; Generator: Khronos Glslang Reference Front End; 10
; Bound: 176
; Schema: 0
OpCapability Shader
%1 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logical GLSL450
OpEntryPoint Fragment %4 "main" %85 %157
OpExecutionMode %4 Or... |
programs/oeis/057/A057427.asm | neoneye/loda | 22 | 87277 | <reponame>neoneye/loda
; A057427: a(n) = 1 if n > 0, a(n) = 0 if n = 0; series expansion of x/(1-x).
; 0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1
pow $2,$0
pow $1... |
source/nodes/program-nodes-discriminant_specifications.adb | reznikmm/gela | 0 | 15602 | <gh_stars>0
-- SPDX-FileCopyrightText: 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
package body Program.Nodes.Discriminant_Specifications is
function Create
(Names : not null Program.Elements.Defining_Identifiers
... |
sharding-core/src/main/antlr4/imports/PostgreSQLTruncateTable.g4 | chuanandongxu/sharding-sphere | 0 | 5500 | grammar PostgreSQLTruncateTable;
import PostgreSQLKeyword, Keyword, PostgreSQLBase, BaseRule, Symbol;
truncateTable
: TRUNCATE TABLE? ONLY? tableNameParts
;
tableNameParts
: tableNamePart (COMMA tableNamePart)*
;
tableNamePart
: tableName ASTERISK?
; |
zdrojaky/obfuskace/zmena-poradi-kodu1.asm | Zelvar/VSB-DP-TEXT | 0 | 98491 | <reponame>Zelvar/VSB-DP-TEXT
arrayMax:
enter 0,0
mov eax, [ edx ]
mov edx, [ ebp + 8 ]
mov ecx, [ ebp + 12 ]
.back:
cmp eax, [ edx + ecx * 4 - 4 ]
jg .skip
mov eax, [ edx + ecx * 4 - 4 ]
.skip:
loop .back
leave
ret |
shardingsphere-sql-parser/shardingsphere-sql-parser-dialect/shardingsphere-sql-parser-postgresql/src/main/antlr4/imports/postgresql/BaseRule.g4 | azexcy/shardingsphere | 0 | 5536 | <filename>shardingsphere-sql-parser/shardingsphere-sql-parser-dialect/shardingsphere-sql-parser-postgresql/src/main/antlr4/imports/postgresql/BaseRule.g4<gh_stars>0
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this w... |
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca_notsx.log_21829_1299.asm | ljhsiun2/medusa | 9 | 163120 | <filename>Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca_notsx.log_21829_1299.asm
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r15
push %r8
push %r9
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_UC_ht+0xff94, %r10
nop
nop
xor %rbx, %rbx
mov $0x6162636465666768, %r9
movq ... |
components/src/camera/OV2640/ov2640.ads | rocher/Ada_Drivers_Library | 192 | 11665 | ------------------------------------------------------------------------------
-- --
-- Copyright (C) 2015-2016, AdaCore --
-- --
-- ... |
src/main/fragment/mos6502-common/_stackpushsword_=vwsm1.asm | jbrandwood/kickc | 2 | 81195 | lda {m1}+1
pha
lda {m1}
pha |
editor1.asm | rtx-abir/Assembly-Language---Text-Editor | 0 | 7771 | .286
.model small
.stack 1024
.data
Filename db "tst.txt",0
stringarray dw 30000 dup(00h)
handle dw ?
buff db ?
typemode db 0
OpenErrorMsg db 10,13,'unable to open file$'
ReadFileErrorMsg db 10,13,'unable to read file$'
WriteFileErrorMsg db 10,13,'unable to write file$'
CloseFileErrorMsg db 10,13,'unable to close file$... |
data/mapObjects/fuchsiameetingroom.asm | adhi-thirumala/EvoYellow | 16 | 16844 | <filename>data/mapObjects/fuchsiameetingroom.asm<gh_stars>10-100
FuchsiaMeetingRoomObject:
db $17 ; border block
db $2 ; warps
db $7, $4, $6, $ff
db $7, $5, $6, $ff
db $0 ; signs
db $3 ; objects
object SPRITE_WHITE_PLAYER, $4, $1, STAY, DOWN, $1 ; person
object SPRITE_WHITE_PLAYER, $0, $2, STAY, UP, $2 ; per... |
book-01/Assembly/asm/avx/packed/avx_p_shift_integer.asm | gfurtadoalmeida/study-assembly-x64 | 2 | 14395 | .code
; bool AVX_Packed_Shift_Integer_(const XmmVal & input, XmmVal & results, ShiftOp shift_op, unsigned int count);
AVX_Packed_Shift_Integer_ proc
mov r8d, r8d ; Just to zero extend
cmp r8, ShiftOpJumpTableCount
jae BadShiftOp
vmovdqa xmm0, xmmword ptr [rcx] ; xmm0 = input
vmovd xmm1, r9d ; xmm1 = shift count
mov ... |
MSDOS/Virus.MSDOS.Unknown.catphish1.asm | fengjixuchui/Family | 3 | 97521 |
name VIRUSTEST
title
code segment
assume cs:code, ds:code, es:code
org 100h
;-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
; FirstStrike presents:
;
; The Catphish Virus.
;
; The Catphish virus is... |
programs/oeis/015/A015240.asm | karttu/loda | 1 | 101129 | <reponame>karttu/loda
; A015240: a(n) = (2*n - 5)n^2.
; 0,-3,-4,9,48,125,252,441,704,1053,1500,2057,2736,3549,4508,5625,6912,8381,10044,11913,14000,16317,18876,21689,24768,28125,31772,35721,39984,44573,49500,54777,60416,66429,72828,79625,86832,94461,102524,111033,120000,129437,139356,149769,160688,172125,184092,196601,... |
programs/oeis/168/A168176.asm | neoneye/loda | 22 | 90404 | ; A168176: a(n) = n^2*(n^10 + 1)/2.
; 0,1,2050,265725,8388616,122070325,1088391186,6920643625,34359738400,141214768281,500000000050,1569214188421,4458050224200,11649042561325,28346956187746,64873168945425,140737488355456,291311118615025,578415690713250,1106657459533261,2048000000000200,3677913755693541,6427501315524850... |
compiler/ll.g4 | LarsBehl/llCompiler | 4 | 6562 | grammar ll;
@parser::header {#pragma warning disable 3021}
@lexer::header {#pragma warning disable 3021}
compileUnit: program EOF;
program: (loadStatement* globalVariableStatement* (functionDefinition | structDefinition | functionPrototype)+)
| compositUnit;
compositUnit: statement | expression;
line: statement |... |
iod/iou/io.asm | olifink/smsqe | 0 | 10243 | <reponame>olifink/smsqe<gh_stars>0
; IO Operations V2.05 1989 <NAME> QJUMP
section iou
xdef iou_io
xdef iou_flsh
xdef iou_load
xdef iou_save
xdef iou_ckro
xref iou_sect
xref iou_opfl
xref iou_fmul
xref iou_flin
xref iou_smul
xref iou_fden
xref iou_fde0
xref iou_sden
xref iou_fnam
xref iou_ck... |
FinderGo/Scripts/finderCurrentPath.scpt | Deejay-Ste/FinderGo | 1,021 | 3533 | <reponame>Deejay-Ste/FinderGo<filename>FinderGo/Scripts/finderCurrentPath.scpt<gh_stars>1000+
tell application "Finder"
set cwd to POSIX path of ((target of front Finder window) as text)
return cwd
end tell
|
Assignment/mystring.adb | vivianjia123/Password-Manager | 0 | 15917 | <reponame>vivianjia123/Password-Manager
with Ada.Text_IO;
package body MyString is
function To_String(M : MyString) return String is
Result : String(1..M.Length);
begin
Result := String(M.Str(M.Str'First..M.Length)) ;
return Result;
end To_String;
function From_String(S : String) return... |
Projects/bulkloop/dscr.a51 | cvetkovem/cypress_FX2_firmware | 0 | 240257 | ; Copyright (C) 2009 Ubixum, Inc.
;
; This library is free software; you can redistribute it and/or
; modify it under the terms of the GNU Lesser General Public
; License as published by the Free Software Foundation; either
; version 2.1 of the License, or (at your option) any later version.
;
; This library is distr... |
utils/matrix4x4.adb | Lucretia/old_nehe_ada95 | 0 | 23426 | <reponame>Lucretia/old_nehe_ada95
---------------------------------------------------------------------------------
-- Copyright 2004-2005 © <NAME>
--
-- This code is to be used for tutorial purposes only.
-- You may not redistribute this code in any form without my express permission.
---------------------------------... |
strings_edit-integer_edit.ads | jrcarter/Ada_GUI | 19 | 20499 | <filename>strings_edit-integer_edit.ads
-- --
-- package Copyright (c) <NAME> --
-- Strings_Edit.Integer_Edit Luebeck --
-- Interface Spring, 2000 ... |
oeis/340/A340262.asm | neoneye/loda-programs | 11 | 87847 | ; A340262: T(n, k) = multinomial(n + k/2; n, k/2) if k is even else 0. Triangle read by rows, for 0 <= k <= n.
; Submitted by <NAME>
; 1,1,0,1,0,3,1,0,4,0,1,0,5,0,15,1,0,6,0,21,0,1,0,7,0,28,0,84,1,0,8,0,36,0,120,0,1,0,9,0,45,0,165,0,495,1,0,10,0,55,0,220,0,715,0,1,0,11,0,66,0,286,0,1001,0,3003,1,0,12,0,78,0,364,0,1365,... |
llvm-gcc-4.2-2.9/gcc/ada/gnatls.adb | vidkidz/crossbridge | 1 | 14261 | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
oeis/099/A099460.asm | neoneye/loda-programs | 11 | 160018 | ; A099460: A Chebyshev transform of A099459 associated to the knot 9_48.
; Submitted by <NAME>
; 1,7,39,203,1040,5313,27133,138565,707643,3613904,18456077,94254531,481354555,2458260679,12554250288,64114111901,327428500337,1672165762785,8539691368807,43611901581472,222724437852585,1137445821390767,5808895553058431,29665... |
bin/JWASM/Samples/Win64_6p.asm | Abd-Beltaji/ASMEMU | 3 | 3061 |
;--- Win64 "hello world" console application.
;--- uses CRT functions (MSVCRT).
;--- unlike Win64_6.asm, this version is to be created with option -pe
;---
;--- assemble: JWasm -pe Win64_6p.asm
.x64 ; -pe requires to set cpu, model & language
.model flat, fastcall
option casemap:none
o... |
iTuneMyWalkman.applescript | GloomyJD/itmw | 0 | 305 | <filename>iTuneMyWalkman.applescript
-- iTuneMyWalkman.applescript
-- iTuneMyWalkman
(*
List of handlers in this script
-- EVENT HANDLERS
on launched
on should open untitled theObject
on should quit after last window closed theObject
on idle theObject
on clicked theObject
on choose menu item theObject
on change cell ... |
src/Generics/Constructions/Injective.agda | flupe/generics | 11 | 7169 | <gh_stars>10-100
{-# OPTIONS --safe #-}
module Generics.Constructions.Injective where
open import Generics.Prelude hiding (lookup; pi; curry; icong)
open import Generics.Telescope
open import Generics.Desc
open import Generics.All
open import Generics.HasDesc
open import Relation.Binary.PropositionalEquality.Properti... |
output/production/Gio/SyntaxAnalysis.g4 | RasmusSecher/Gio | 0 | 7039 | grammar SyntaxAnalysis;
//PARSER PART
prog: (func | eventHand)* EOF #program
;
func: 'function' ftype id=ID '(' fparam ')' block 'endFunction' #function
;
eventHand: 'when' id=ID '(' fparam ')' block 'en... |
llvm-gcc-4.2-2.9/gcc/ada/prj-util.adb | vidkidz/crossbridge | 1 | 27575 | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
Working Disassembly/Levels/SSZ/Misc Object Data/Map - MTZ Orbs.asm | TeamASM-Blur/Sonic-3-Blue-Balls-Edition | 5 | 169288 | Map_186DAC: dc.w word_186DE6-Map_186DAC
dc.w word_186DEE-Map_186DAC
dc.w word_186DF6-Map_186DAC
dc.w word_186DFE-Map_186DAC
dc.w word_186E06-Map_186DAC
dc.w word_186E0E-Map_186DAC
dc.w word_186E16-Map_186DAC
dc.w word_186E24-Map_186DAC
dc.w word_186E32-Map_186DAC
dc.w word_186E46-Map_186DAC
dc.w wo... |
Ada/src/Problem_16.adb | Tim-Tom/project-euler | 0 | 12211 | with Ada.Integer_Text_IO;
with Ada.Text_IO;
with BigInteger; use BigInteger;
package body Problem_16 is
package IO renames Ada.Text_IO;
package I_IO renames Ada.Integer_Text_IO;
procedure Solve is
Big : constant BigInteger.BigInt := BigInteger.Create(2)**1_000;
Str : constant String := BigInteger.T... |
Cameras/Injustice2/InjectableGenericCameraSystem/Interceptor.asm | ghostinthecamera/InjectableGenericCameraSystem | 623 | 13138 | ;////////////////////////////////////////////////////////////////////////////////////////////////////////
;// Part of Injectable Generic Camera System
;// Copyright(c) 2017, <NAME>
;// All rights reserved.
;// https://github.com/FransBouma/InjectableGenericCameraSystem
;//
;// Redistribution and use in source and binar... |
Tasks/Float_to_Int32.asm | BenSokol/EECS690-Project1 | 0 | 179294 |
.global Float_to_Int32;
.text;
Float_to_Int32:
BX LR;
.end
|
libsrc/input/svi/in_KeyPressed.asm | jpoikela/z88dk | 640 | 160333 | <reponame>jpoikela/z88dk
; uint in_KeyPressed(uint scancode)
SECTION code_clib
PUBLIC in_KeyPressed
PUBLIC _in_KeyPressed
; Determines if a key is pressed using the scan code
; returned by in_LookupKey.
; enter : l = scan row
; h = key mask
; exit : carry = key is pressed & HL = 1
; no carry = key n... |
gdb-7.3/gdb/testsuite/gdb.ada/ref_tick_size/p.adb | vidkidz/crossbridge | 1 | 20191 | -- Copyright 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
--
-- This program is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation; either version 3 of the License, or
-- (at your option) any later ve... |
6309/zx0_6309_turbo.asm | nowhereman999/zx0-6x09 | 1 | 12579 | <filename>6309/zx0_6309_turbo.asm
; zx0_6309_turbo.asm - ZX0 decompressor for H6309 - 126 bytes
;
; Copyright (c) 2021 <NAME>
; ZX0 compression (c) 2021 <NAME>, https://github.com/einar-saukas/ZX0
;
; This software is provided 'as-is', without any express or implied
; warranty. In no event will the authors be held liab... |
src/smk-runs-analyze_run.adb | LionelDraghi/smk | 10 | 20924 | -- -----------------------------------------------------------------------------
-- smk, the smart make (http://lionel.draghi.free.fr/smk/)
-- © 2018, 2019 <NAME> <<EMAIL>>
-- SPDX-License-Identifier: APSL-2.0
-- -----------------------------------------------------------------------------
-- Licensed under the Apache ... |
examples/outdated-and-incorrect/iird/IIRDr.agda | shlevy/agda | 1,989 | 8541 | <reponame>shlevy/agda
{-# OPTIONS --no-positivity-check #-}
module IIRDr where
import LF
import IIRD
open LF
open IIRD
-- Agda2 has restricted IIRDs so we can define Ur/Tr directly
mutual
data Ur {I : Set}{D : I -> Set1}(γ : OPr I D)(i : I) : Set where
intror : Hu γ (Ur γ) (Tr γ) i -> Ur {I}{D} γ i
Tr : {I... |
programs/oeis/272/A272298.asm | neoneye/loda | 22 | 18966 | <reponame>neoneye/loda
; A272298: a(n) = n^4 + 324.
; 324,325,340,405,580,949,1620,2725,4420,6885,10324,14965,21060,28885,38740,50949,65860,83845,105300,130645,160324,194805,234580,280165,332100,390949,457300,531765,614980,707605,810324,923845,1048900,1186245,1336660,1500949,1679940,1874485,2085460,2313765,2560324,2826... |
llvm-gcc-4.2-2.9/gcc/ada/prj-pars.ads | vidkidz/crossbridge | 1 | 8158 | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
programs/oeis/164/A164594.asm | neoneye/loda | 22 | 89205 | <reponame>neoneye/loda
; A164594: a(n) = ((5 + sqrt(18))*(4 + sqrt(8))^n + (5 - sqrt(18))*(4 - sqrt(8))^n)/2.
; 5,32,216,1472,10048,68608,468480,3198976,21843968,149159936,1018527744,6954942464,47491317760,324291002368,2214397476864,15120851795968,103251634552832,705046262054912,4814357020016640,32874486063693824,22448... |
programs/oeis/313/A313975.asm | neoneye/loda | 22 | 90452 | <reponame>neoneye/loda
; A313975: Coordination sequence Gal.4.145.3 where G.u.t.v denotes the coordination sequence for a vertex of type v in tiling number t in the Galebach list of u-uniform tilings.
; 1,5,10,17,22,27,32,37,44,49,54,59,64,71,76,81,86,91,98,103,108,113,118,125,130,135,140,145,152,157,162,167,172,179,18... |
Transynther/x86/_processed/NONE/_ht_st_zr_/i9-9900K_12_0xca.log_16638_882.asm | ljhsiun2/medusa | 9 | 98876 | .global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r13
push %r8
push %r9
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0xaf51, %r13
inc %rbp
movw $0x6162, (%r13)
and $11475, %r12
lea addresses_WC_ht+0xdf51, %r9
nop
nop
nop
nop
sub $16572, %r12
mov $0x6162636465666768, %rsi
movq %rsi, (... |
gasp/source/gasp.ads | charlie5/playAda | 0 | 24434 | <reponame>charlie5/playAda
with
float_Math.Geometry .d2,
float_Math.Geometry .d3,
float_math.Algebra.linear.d3;
package Gasp
--
-- Provides a namespace and core declarations for the 'Gasp' game.
--
is
pragma Pure;
package Math renames float_Math;
package Geometry_2d ... |
src/boot/stage2.asm | Dentosal/rust_os | 28 | 80114 | ; RUSTOS LOADER
; STAGE 2
%include "src/asm_routines/constants.asm"
[BITS 64]
[ORG 0x8000]
stage2:
cli
; update segments
mov dx, GDT_SELECTOR_DATA
mov ss, dx ; stack segment
mov ds, dx ; data segment
mov es, dx ; extra segment
mov fs, dx ; f-segment
mov gs, dx ; g-segment
;... |
laturi/decompressor32.asm | temisu/BR4096 | 8 | 18127 | ; Copyright (C) <NAME>
; x86
bits 32
section .text
global __ONEKPAQ__CodeStart
__ONEKPAQ__CodeStart:
sub esp,byte 12
%ifdef COMPRESSION_1 COMPRESSION_2 COMPRESSION_3 COMPRESSION_4
mov ebx,__ONEKPAQ_source
mov edi,__ONEKPAQ_destination
push edi
%ifdef COMPRESSION_1
%define ONEKPAQ_DECOMPRESSOR_MODE 1
%elifdef ... |
example/src/load_environment_variables.adb | Heziode/ada-dotenv | 6 | 19225 | with Ada.Text_IO;
with Dotenv;
package body Load_Environment_Variables is
begin
Ada.Text_IO.Put_Line ("Load Environment Variables");
Dotenv.Config;
end Load_Environment_Variables;
|
bb-runtimes/examples/monitor/net/netutils.ads | JCGobbi/Nucleo-STM32G474RE | 0 | 20930 | ------------------------------------------------------------------------------
-- --
-- GNAT EXAMPLE --
-- --
-- ... |
programs/oeis/053/A053114.asm | neoneye/loda | 22 | 3943 | <reponame>neoneye/loda
; A053114: a(n) = ((8*n+9)(!^8))/9, related to A045755 ((8*n+1)(!^8) octo- or 8-factorials).
; 1,17,425,14025,575025,28176225,1606044825,104392913625,7620682694625,617275298264625,54937501545551625,5328937649918507625,559538453241443300625,63227845216283092970625,7650569271170254249445625,9869234... |
commands/system/Schedule-notification.applescript | marcocebrian/script-commands | 0 | 2417 | #!/usr/bin/osascript
# Required parameters:
# @raycast.schemaVersion 1
# @raycast.title Schedule notification
# @raycast.mode silent
# @raycast.packageName System
# Optional parameters:
# @raycast.icon images/clock.png
# @raycast.argument1 { "type": "text", "placeholder": "In Minutes" }
# @raycast.argument2 { "type":... |
test.scpt | yantze/applescript-player-control | 2 | 2982 | <filename>test.scpt<gh_stars>1-10
on is_running(appName)
tell application "System Events" to (name of processes) contains appName
end is_running
if is_running("iTunes") then
tell application "iTunes"
next track
end tell
else
tell application "Spotify"
next track
end tell
end if
--... |
programs/oeis/184/A184113.asm | neoneye/loda | 22 | 177820 | ; A184113: n + floor(4*sqrt(n+1)).
; 6,8,11,12,14,16,18,20,21,23,24,26,27,29,31,32,33,35,36,38,39,41,42,44,45,46,48,49,50,52,53,54,56,57,59,60,61,62,64,65,66,68,69,70,72,73,74,76,77,78,79,81,82,83,84,86,87,88,89,91,92,93,95,96,97,98,99,101,102,103,104,106,107,108,109,111,112,113,114,116,117,118,119,120,122,123,124,125,... |
Transynther/x86/_processed/AVXALIGN/_st_/i7-7700_9_0x48_notsx.log_4_873.asm | ljhsiun2/medusa | 9 | 93027 | <filename>Transynther/x86/_processed/AVXALIGN/_st_/i7-7700_9_0x48_notsx.log_4_873.asm
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r15
push %r8
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_D_ht+0x17167, %rsi
lea addresses_UC_ht+0xb30f, %rdi
nop
nop
nop
nop
nop
cmp $27805, %r15
mov $28... |
programs/oeis/010/A010005.asm | karttu/loda | 1 | 166947 | <gh_stars>1-10
; A010005: a(0) = 1, a(n) = 15*n^2 + 2 for n>0.
; 1,17,62,137,242,377,542,737,962,1217,1502,1817,2162,2537,2942,3377,3842,4337,4862,5417,6002,6617,7262,7937,8642,9377,10142,10937,11762,12617,13502,14417,15362,16337,17342,18377,19442,20537,21662,22817,24002,25217,26462,27737,29042,30377,31742,33137,34562,... |
tests/src/test_transforms_singles_vectors.adb | onox/orka | 52 | 10212 | -- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2017 onox <<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
-... |
language/dsl/src/main/antlr4/MetaModel.g4 | lmouline/rules | 0 | 5835 | <reponame>lmouline/rules
grammar MetaModel;
fragment ESC : '\\' (["\\/bfnrt] | UNICODE) ;
fragment UNICODE : 'u' HEX HEX HEX HEX ;
fragment HEX : [0-9a-fA-F] ;
STRING : '"' (ESC | ~["\\])* '"' | '\'' (ESC | ~["\\])* '\'' ;
IDENT : [a-zA-Z_][a-zA-Z_0-9]*;
WS : ([ \t\r\n]+ | SL_COMMENT) -> skip ; // skip spaces, tabs... |
programs/oeis/188/A188299.asm | karttu/loda | 0 | 164088 | <filename>programs/oeis/188/A188299.asm
; A188299: Positions of 1 in A188297; complement of A188298.
; 3,6,9,10,13,16,17,20,23,26,27,30,33,34,37,40,43,44,47,50,51,54,57,58,61,64,67,68,71,74,75,78,81,84,85,88,91,92,95,98,99,102,105,108,109,112,115,116,119,122,125,126,129,132,133,136,139,142,143,146,149,150,153,156,157,1... |
file-system/root/usr/drivers/trapm.asm | dwildie/cromix-s100computers | 2 | 5966 | <reponame>dwildie/cromix-s100computers
;
;
;
entry trapm
psect trapm(rea,exe)
trapm:
trap #14
rts
end
|
slae/Stack.nasm | Bigsby/slae | 0 | 100046 | <reponame>Bigsby/slae
global _start
section .text
_start:
mov eax, 0x66778899
mov ebx, 0x0
mov ecx, 0x0
push ax
pop bx
push eax
pop ecx
push word [sample]
pop ecx
push dword [sample]
pop edx
mov eax, 1
mov ebx, 0
int 0x80
section .data
sample: db 0xaa, ... |
src/tom/library/sl/ada/positionpackage.adb | rewriting/tom | 36 | 23365 | <gh_stars>10-100
with OmegaStrategy, SequenceStrategy, StrategyPackage, Ada.Text_IO;
use OmegaStrategy, SequenceStrategy, StrategyPackage, Ada.Text_IO;
package body PositionPackage is
function makeFromArrayWithoutCopy(arr: IntArrayPtr) return Position is
res : Position := (omega => arr);
begin
return res;
end ... |
programs/oeis/040/A040884.asm | neoneye/loda | 22 | 18313 | <gh_stars>10-100
; A040884: Continued fraction for sqrt(915).
; 30,4,60,4,60,4,60,4,60,4,60,4,60,4,60,4,60,4,60,4,60,4,60,4,60,4,60,4,60,4,60,4,60,4,60,4,60,4,60,4,60,4,60,4,60,4,60,4,60,4,60,4,60,4,60,4,60,4,60,4,60,4,60,4,60,4,60,4,60,4,60,4,60,4,60
mov $1,$0
cmp $0,0
sub $1,$0
gcd $1,2
add $1,12
add $0,$1
mul $0,$1... |
oeis/007/A007339.asm | neoneye/loda-programs | 11 | 18044 | <filename>oeis/007/A007339.asm
; A007339: a(n) = n! - n^3.
; 1,0,-6,-21,-40,-5,504,4697,39808,362151,3627800,39915469,478999872,6227018603,87178288456,1307674364625,20922789883904,355687428091087,6402373705722168,121645100408825141,2432902008176632000,51090942171709430739,1124000727777607669352,25852016738884976627833,... |
oeis/050/A050456.asm | neoneye/loda-programs | 11 | 18804 | <reponame>neoneye/loda-programs<filename>oeis/050/A050456.asm
; A050456: a(n) = Sum_{d|n, d==1 mod 4} d^4 - Sum_{d|n, d==3 mod 4} d^4.
; Submitted by <NAME>
; 1,1,-80,1,626,-80,-2400,1,6481,626,-14640,-80,28562,-2400,-50080,1,83522,6481,-130320,626,192000,-14640,-279840,-80,391251,28562,-524960,-2400,707282,-50080,-923... |
software/modules/nvram.adb | TUM-EI-RCS/StratoX | 12 | 17184 | -- Institution: Technische Universitaet Muenchen
-- Department: Real-Time Computer Systems (RCS)
-- Project: StratoX
-- Authors: <NAME> (<EMAIL>)
with Interfaces; use Interfaces;
with HIL.NVRAM; use HIL.NVRAM;
with HIL; use HIL;
with Buildinfo; use Buildinfo;
with Ada.Unchecked_Conversion;
with Fl... |
solutions/20-multiplication workshop/loop unrolled - speed optimized.asm | Ernesto-Alvarez/HRM-Puzzles | 0 | 92824 | <filename>solutions/20-multiplication workshop/loop unrolled - speed optimized.asm
-- HUMAN RESOURCE MACHINE PROGRAM --
COMMENT 0
a:
INBOX
COPYTO 0
JUMPZ e
COPYFROM 9
COPYTO 2
INBOX
COPYTO 1
JUMPZ l
SUB 0
JUMPN c
COMMENT 3
b:
COPYFROM 1
... |
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/aliasing1.ads | best08618/asylo | 7 | 26729 | package Aliasing1 is
type Rec is record
I : Integer;
end record;
type Ptr is access all Integer;
R : Rec;
function F (P : Ptr) return Integer;
end Aliasing1;
|
osdev-babysteps/01-boot/baby01.asm | bzamecnik/low-level-playground | 0 | 166248 | ; https://wiki.osdev.org/Babystep1
;
; It just boots and shows a blinking cursor.
;
; nasm baby01.asm -f bin -o baby01.bin
; qemu-system-i386 -fda baby01.bin
;
; or just `make baby01`
;
; We have to compile to flat binary (ELF doesn't work). We provide the image to
; QEMU as floppy disk image or hard-disk image (`-hda`... |
src/core/spat-proof_item.adb | HeisenbugLtd/spat | 20 | 13591 | <filename>src/core/spat-proof_item.adb
------------------------------------------------------------------------------
-- 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,
-... |
oeis/019/A019476.asm | neoneye/loda-programs | 11 | 168261 | ; A019476: a(n) = 5*a(n-1) + a(n-2) - 2*a(n-3).
; Submitted by <NAME>(s4)
; 2,10,51,261,1336,6839,35009,179212,917391,4696149,24039712,123059927,629947049,3224715748,16507405935,84501851325,432567231064,2214323194775,11335179502289,58025086244092
mov $3,1
mov $4,2
lpb $0
sub $0,1
add $1,$4
add $2,$3
add $2,6
... |
source/xml/sax/xml-sax-input_sources-streams-files-naming_utilities__windows.adb | svn2github/matreshka | 24 | 11031 | <gh_stars>10-100
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- ... |
specs/ada/common/tkmrpc-request-ike-cc_check_ca-convert.ads | DrenfongWong/tkm-rpc | 0 | 12478 | <reponame>DrenfongWong/tkm-rpc
with Ada.Unchecked_Conversion;
package Tkmrpc.Request.Ike.Cc_Check_Ca.Convert is
function To_Request is new Ada.Unchecked_Conversion (
Source => Cc_Check_Ca.Request_Type,
Target => Request.Data_Type);
function From_Request is new Ada.Unchecked_Conversion (
Sourc... |
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48_notsx.log_21829_158.asm | ljhsiun2/medusa | 9 | 241879 | .global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r9
push %rbx
push %rdx
lea addresses_D_ht+0x109a9, %r10
nop
xor $30972, %r9
vmovups (%r10), %ymm4
vextracti128 $1, %ymm4, %xmm4
vpextrq $1, %xmm4, %rdx
nop
add $11937, %rbx
pop %rdx
pop %rbx
pop %r9
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push ... |
SempredTranslation/Parser/JavaFunctionCall.g4 | studentmain/SempredTranslation | 0 | 487 | grammar JavaFunctionCall;
call
: ('this' '.')? Identifier '(' parameters? ')' ';'?
;
parameters
: literal (',' literal )*
;
literal
: Integer
| FloatingPoint
| Null
| Boolean
| Character
| String
;
Integer
:
Sign?
(
'0'
| [1-9] Digit*
| '0' [xX] HexDigit+
| '0' OctalDigit+
| '0' [bB] [01]+... |
unittests/ASM/MOVHPD.asm | cobalt2727/FEX | 628 | 177866 | %ifdef CONFIG
{
"Match": "All",
"RegData": {
"RAX": "0xDEADBEEFBAD0DAD1",
"RCX": "0xDEADBEEFBAD0DAD1",
"XMM0": ["0", "0xDEADBEEFBAD0DAD1"]
},
"MemoryRegions": {
"0x100000000": "4096"
}
}
%endif
; Data we want to store
mov rax, 0xDEADBEEFBAD0DAD1
; Starting address to store to
mov rdi, 0xe800... |
programs/oeis/055/A055944.asm | neoneye/loda | 22 | 160562 | <reponame>neoneye/loda
; A055944: a(n) = n + (reversal of base-2 digits of n) (written in base 10).
; 0,2,3,6,5,10,9,14,9,18,15,24,15,24,21,30,17,34,27,44,25,42,35,52,27,44,37,54,35,52,45,62,33,66,51,84,45,78,63,96,45,78,63,96,57,90,75,108,51,84,69,102,63,96,81,114,63,96,81,114,75,108,93,126,65,130,99,164,85,150,119,18... |
programs/oeis/180/A180673.asm | jmorken/loda | 1 | 24028 | ; A180673: a(n) = Fibonacci(n+8) - Fibonacci(8).
; 0,13,34,68,123,212,356,589,966,1576,2563,4160,6744,10925,17690,28636,46347,75004,121372,196397,317790,514208,832019,1346248,2178288,3524557,5702866,9227444,14930331,24157796,39088148,63245965,102334134,165580120,267914275,433494416,701408712,1134903149,1836311882,29712... |
grammars/vhdl.g4 | martinda/hdlConvertor | 0 | 4490 |
/*
* Grammar extracted from the 2008 standard
*/
grammar vhdl;
PROCESS: P R O C E S S;
CONTEXT: C O N T E X T;
POSTPONED: P O S T P O N E D;
LINKAGE: L I N K A G E;
COMPONENT: C O M P O N E N T;
ABS: A B S;
DEFAULT: D E F A U L T;
UX: U X;
THEN: T H E N;
BLOCK: B L O C K;
REM: R E M;
INERTIAL: I N E R T I A L;
NEX... |
programs/oeis/055/A055258.asm | neoneye/loda | 22 | 11654 | <filename>programs/oeis/055/A055258.asm
; A055258: Sums of two powers of 7.
; 2,8,14,50,56,98,344,350,392,686,2402,2408,2450,2744,4802,16808,16814,16856,17150,19208,33614,117650,117656,117698,117992,120050,134456,235298,823544,823550,823592,823886,825944,840350,941192,1647086,5764802,5764808,5764850,5765144,5767202,578... |
models/hol/graph/graph.als | johnwickerson/alloystar | 2 | 3711 | module graph
--------------------------------------------------------------------------------
-- Sigs
--------------------------------------------------------------------------------
sig Node {
val: lone Int
}
sig Edge {
src: one Node,
dst: one Node
} {
src != dst
}
sig Graph {
nodes: set Node,
edges:... |
libsrc/_DEVELOPMENT/arch/zx/display/c/sccz80/zx_cy2aaddr.asm | meesokim/z88dk | 0 | 84365 | <filename>libsrc/_DEVELOPMENT/arch/zx/display/c/sccz80/zx_cy2aaddr.asm
; void *zx_cy2aaddr(uchar row)
SECTION code_arch
PUBLIC zx_cy2aaddr
zx_cy2aaddr:
INCLUDE "arch/zx/display/z80/asm_zx_cy2aaddr.asm"
|
techniques/specs/dynamics/browsing.als | awwx/alloydocs | 58 | 4971 | <filename>techniques/specs/dynamics/browsing.als<gh_stars>10-100
open util/ordering[Time]
sig Time {}
sig User {
-- current place in time
, at: Page one -> Time
-- all visited pages
, history: Page -> Time
}
sig Page {
-- pages reachable from this page
link: set Page
}
pred goto[u: User, p: Page, t, t"... |
stm32f4/stm32gd-usart.ads | ekoeppen/STM32_Generic_Ada_Drivers | 1 | 13549 | <filename>stm32f4/stm32gd-usart.ads
package STM32GD.USART is
pragma Preelaborate;
type USART_Instance is (USART_1, USART_2, USART_6);
end STM32GD.USART;
|
L/01/agda/TypeDSL.agda | nicolabotta/DSLsofMath | 1 | 2089 | <filename>L/01/agda/TypeDSL.agda<gh_stars>1-10
-- A DSL example in the language Agda: "polynomial types"
module TypeDSL where
open import Data.Nat using (ℕ;_+_;_*_)
data E : Set where
Zero : E
One : E
Add : (x : E) -> (y : E) -> E
Mul : (x : E) -> (y : E) -> E
two : E
two = Add One One
four : E
four =... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.