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 |
|---|---|---|---|---|
Univalence/PathLemmas.agda | JacquesCarette/pi-dual | 14 | 2064 | {-# OPTIONS --without-K #-}
module PathLemmas where
open import Relation.Binary.PropositionalEquality using
(_≡_; sym; refl)
------------------------------------------------------------------------------
-- These also follow from irrelevance, but this is nicer
sym-sym : {A : Set} {x y : A} {p : x ≡ y} → sym (sy... |
src/gl/interface/gl-pixels.ads | Roldak/OpenGLAda | 79 | 28236 | -- part of OpenGLAda, (c) 2017 <NAME>
-- released under the terms of the MIT license, see the file "COPYING"
with GL.Types;
private with GL.Low_Level;
package GL.Pixels is
pragma Preelaborate;
use GL.Types;
type Internal_Format is (Depth_Component, Red, Alpha, RGB, RGBA, Luminance,
... |
src/Alg.agda | proglang/ldlc | 0 | 15628 | <filename>src/Alg.agda<gh_stars>0
module Alg where
open import Data.Bool
open import Data.Fin hiding (_+_ ; fold)
open import Data.List hiding (lookup ; [_] ; map)
open import Data.Nat
open import Data.Product hiding (map)
open import Data.Vec hiding (_++_)
open import Size
RankedAlphabet : ℕ → Set
RankedAlphabet = ... |
ANTLRTestProjects/antbased/LexerRules/grammar/SemanticPredicate.g4 | timboudreau/ANTLR4-Plugins-for-NetBeans | 1 | 1712 | <reponame>timboudreau/ANTLR4-Plugins-for-NetBeans<gh_stars>1-10
lexer grammar SemanticPredicate;
// semantic predicates are processed as actions by colored syntax edition
ENUM:
[a-z]+ {getText().equals("enum")}?
{System.out.println("enum!");}
; |
oeis/129/A129543.asm | neoneye/loda-programs | 11 | 96864 | <reponame>neoneye/loda-programs
; A129543: Gray code ordering of the prime numbers.
; Submitted by <NAME>(s4)
; 2,3,7,5,17,19,13,11,41,43,53,47,31,37,29,23,97,101,107,103,127,131,113,109,73,79,89,83,67,71,61,59,227,229,239,233,257,263,251,241,283,293,311,307,277,281,271,269,179,181,193,191,211,223,199,197,157,163,173
... |
Cats/Category/Setoids/Facts/Products.agda | alessio-b-zak/cats | 0 | 7894 | module Cats.Category.Setoids.Facts.Products where
open import Data.Product as P using (_,_ ; <_,_>)
open import Relation.Binary using (Setoid)
open import Relation.Binary.Product.Pointwise using (×-setoid)
open import Cats.Category
open import Cats.Category.Setoids as Setoids using (Setoids ; ≈-intro ; ≈-elim)
open i... |
oeis/077/A077947.asm | neoneye/loda-programs | 11 | 168573 | <reponame>neoneye/loda-programs
; A077947: Expansion of 1/(1 - x - x^2 - 2*x^3).
; 1,1,2,5,9,18,37,73,146,293,585,1170,2341,4681,9362,18725,37449,74898,149797,299593,599186,1198373,2396745,4793490,9586981,19173961,38347922,76695845,153391689,306783378,613566757,1227133513,2454267026,4908534053,9817068105,19634136210,39... |
dependencies/agar/ada-core/agar-core-data_source.ads | amvb/GUCEF | 5 | 13135 | with Agar.Core.Thin;
with Interfaces;
package Agar.Core.Data_Source is
subtype Data_Source_Access_t is Thin.Data_Source.Data_Source_Access_t;
subtype Data_Source_Not_Null_Access_t is Thin.Data_Source.Data_Source_Not_Null_Access_t;
--
-- Open.
--
procedure Open_File
(Path : in String;
... |
oeis/044/A044527.asm | neoneye/loda-programs | 11 | 92002 | <reponame>neoneye/loda-programs<gh_stars>10-100
; A044527: Numbers n such that string 1,1 occurs in the base 7 representation of n but not of n+1.
; Submitted by <NAME>
; 8,62,106,155,204,253,302,351,440,449,498,547,596,645,694,748,792,841,890,939,988,1037,1091,1135,1184,1233,1282,1331,1380,1434,1478,1527,1576,1625,167... |
src/Lib/Sassy/tests/rm2.asm | pnkfelix/larceny | 212 | 6234 | <filename>src/Lib/Sassy/tests/rm2.asm
BITS 32
section .text
foo:
lmsw sp
smsw [esp]
|
externals/mpir-3.0.0/mpn/x86_64w/k8/rshift.asm | JaminChan/eos_win | 12 | 11995 | <reponame>JaminChan/eos_win<gh_stars>10-100
; PROLOGUE(mpn_rshift)
; Verdxon 1.1.4.
;
; Copyright 2008 <NAME>
;
; Windows Conversion Copyright 2008 <NAME>
;
; This file is part of the MPIR Library.
;
; The MPIR Library is free software; you can redistribute it and/or modify
; it under the terms of the GNU Lesser... |
3-mid/impact/source/2d/collision/shapes/impact-d2-shape.ads | charlie5/lace | 20 | 24876 | <filename>3-mid/impact/source/2d/collision/shapes/impact-d2-shape.ads
with impact.d2.Collision,
impact.d2.Math;
package impact.d2.Shape
--
--
--
is
use impact.d2.Math;
--- This holds the mass data computed for a shape.
--
type b2MassData is
record
mass : float32; -- The mass of... |
src/gfx-bitmap.asm | jannone/westen | 49 | 177208 |
;-----------------------------------------------
; sets the name table of the banks to: 0, 1, 2, 3, ..., 255
; and clears all patterns and attributes to 0
set_bitmap_mode:
xor a
set_bitmap_mode_a_color:
ld bc,8*256*3
push bc
ld hl,CLRTBL2
call fast_FILVRM
xor a
pop bc
ld hl,... |
test/br3074517.asm | bitwiseworks/nasm-os2 | 3 | 247473 | ;%define UNDEFINED
%macro macro 0
%ifndef UNDEFINED
%rep 1
%fatal This should display "fatal: (m:3)"
%endrep
%endif
%fatal This should display "fatal: (m:6)" if 'UNDEFINED' defined
%endmacro
macro
|
libsrc/_DEVELOPMENT/math/float/math16/lm16/c/sdcc/___uchar2h.asm | ahjelm/z88dk | 640 | 341 |
SECTION code_fp_math16
PUBLIC ___uchar2h
PUBLIC _f16_u8
EXTERN cm16_sdcc___uchar2h
defc ___uchar2h = cm16_sdcc___uchar2h
defc _f16_u8 = cm16_sdcc___uchar2h
|
grammar/CACT.g4 | cebarobot/UCAS-CACTCompiler | 0 | 1803 | grammar CACT;
// The language generated
options {
language = Cpp;
}
@header {
#include <vector>
#include <string>
#include "../src/CACT.h"
#include "../src/symbolTable.h"
#include "../src/IR.h"
}
/********** Parser **********/
compUnit
: (decl | funcDef)* EOF
;
bType
locals [
... |
programs/oeis/063/A063494.asm | karttu/loda | 0 | 23795 | <filename>programs/oeis/063/A063494.asm
; A063494: a(n) = (2*n - 1)*(7*n^2 - 7*n + 3)/3.
; 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,... |
TestA20Line/boot.asm | vincent102416849/x86_os_development | 0 | 82138 | <reponame>vincent102416849/x86_os_development<filename>TestA20Line/boot.asm
[BITS 16]
[ORG 0x7c00]
start:
xor ax,ax
mov ds,ax
mov es,ax
mov ss,ax
mov sp,0x7c00
TestDiskExtension:
mov [DriveId],dl
mov ah,0x41
mov bx,0x55aa
int 0x13
jc NotSupport
cmp bx,0xaa55
jne No... |
sbsext/ext/version.asm | olifink/smsqe | 0 | 81840 | <reponame>olifink/smsqe
; TK2 version
section version
xdef tk2_vers
tk2_vers equ '2.34'
end
|
oeis/178/A178340.asm | neoneye/loda-programs | 11 | 92410 | ; A178340: Triangle T(n,m) read by rows: denominator of the coefficient [x^m] of the umbral inverse Bernoulli polynomial B^{-1}(n,x).
; Submitted by <NAME>(w1)
; 1,2,1,3,1,1,4,1,2,1,5,1,1,1,1,6,1,2,3,2,1,7,1,1,1,1,1,1,8,1,2,1,4,1,2,1,9,1,1,3,1,1,3,1,1,10,1,2,1,1,5,1,1,2,1,11,1,1,1,1,1,1,1,1,1,1,12,1,2,3,4,1,1,1,4,3,2,1... |
libsrc/_DEVELOPMENT/math/float/math32/c/sdcc/cm32_sdcc_fsmul10u.asm | Frodevan/z88dk | 640 | 99894 | <filename>libsrc/_DEVELOPMENT/math/float/math32/c/sdcc/cm32_sdcc_fsmul10u.asm
SECTION code_fp_math32
PUBLIC cm32_sdcc_fsmul10u
EXTERN cm32_sdcc_fsread1, m32_fsmul10u_fastcall
cm32_sdcc_fsmul10u:
call cm32_sdcc_fsread1
jp m32_fsmul10u_fastcall
|
Import IPTC Keywords to iPhoto Keywords/Import IPTC Keywords to iPhoto Keywords.applescript | mattimustang/iphotokeywordutilities | 0 | 4397 | (*
Copyright (c) 2005, 2006, <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 ... |
programs/oeis/179/A179065.asm | neoneye/loda | 22 | 97486 | ; A179065: Number of non-attacking placements of 10 rooks on an n X n board.
; 0,0,0,0,0,0,0,0,0,3628800,439084800,15807052800,296821324800,3636061228800,32724551059200,232707918643200,1372501805875200,6948290392243200,30967071995059200,123868287980236800,451453842969292800,1517386527757900800,4749689190437452800,13958... |
lib/firmware/usbdux/usbdux_firmware.asm | jmather625/simple-container | 0 | 90002 | <filename>lib/firmware/usbdux/usbdux_firmware.asm
; usbdux_firmware.asm
; Copyright (C) 2004,2009 <NAME>, <EMAIL>
; For usbdux.c
;
; 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; eit... |
oeis/028/A028011.asm | neoneye/loda-programs | 11 | 99108 | <reponame>neoneye/loda-programs
; A028011: Expansion of 1/((1-2x)(1-7x)(1-9x)(1-12x)).
; Submitted by <NAME>
; 1,30,589,9606,141469,1956918,25981309,335413254,4245767581,52992982614,654705201085,8028335357094,97906258582237,1189106856272118,14398317567128317,173947775018406726,2097931504239454237,25270527569760142230,3... |
GFXBank1.asm | DevEd2/HokeyPokey-GB | 0 | 102533 | section "Graphics bank 1",romx,bank[3]
GFXBank1:
; ================================================================
; Tilesets
; ================================================================
CopyrightTiles: incbin "GFX/CopyrightTiles.bin"
DevsoftTiles: incbin "GFX/DevsoftTiles.bin"
KarmaTiles: incbin "GF... |
canonical-value-forms.agda | hazelgrove/hazel-palette-agda | 4 | 10625 | open import Nat
open import Prelude
open import contexts
open import core
module canonical-value-forms where
canonical-value-forms-b : ∀{Δ d} →
Δ , ∅ ⊢ d :: b →
d val →
d == c
canonical-value-forms-b TAConst VConst = refl
canonic... |
libsrc/_DEVELOPMENT/arch/ts2068/display/c/sccz80/tshc_saddr2aaddr.asm | jpoikela/z88dk | 38 | 11413 | <gh_stars>10-100
; void *tshc_saddr2aaddr(void *saddr)
SECTION code_clib
SECTION code_arch
PUBLIC tshc_saddr2aaddr
EXTERN asm_tshc_saddr2aaddr
defc tshc_saddr2aaddr = asm_tshc_saddr2aaddr
|
ada-execution_time-interrupts.ads | mgrojo/adalib | 15 | 7263 | -- Standard Ada library specification
-- Copyright (c) 2004-2016 AXE Consultants
-- Copyright (c) 2004, 2005, 2006 Ada-Europe
-- Copyright (c) 2000 The MITRE Corporation, Inc.
-- Copyright (c) 1992, 1993, 1994, 1995 Intermetrics, Inc.
-- SPDX-License-Identifier: BSD-3-Clause and LicenseRef-AdaRe... |
programs/oeis/213/A213398.asm | karttu/loda | 1 | 245580 | <reponame>karttu/loda<filename>programs/oeis/213/A213398.asm
; A213398: Number of (w,x,y) with all terms in {0,...,n} and min(|w-x|,|x-y|) = x.
; 1,4,10,17,27,38,52,67,85,104,126,149,175,202,232,263,297,332,370,409,451,494,540,587,637,688,742,797,855,914,976,1039,1105,1172,1242,1313,1387,1462,1540,1619,1701,1784,1870,1... |
oeis/298/A298040.asm | neoneye/loda-programs | 11 | 11787 | ; A298040: Coordination sequence of Dual(4.6.12) tiling with respect to a tetravalent node.
; 1,4,20,24,40,40,60,56,80,72,100,88,120,104,140,120,160,136,180,152,200,168,220,184,240,200,260,216,280,232,300,248,320,264,340,280,360,296,380,312,400,328,420,344,440,360,460,376,480,392,500,408,520,424,540
mov $1,1
mov $3,$0... |
Data/Num/Injection.agda | banacorn/numeral | 1 | 6415 | <filename>Data/Num/Injection.agda
module Data.Num.Injection where
open import Data.Num.Core
open import Data.Nat hiding (compare)
open import Data.Nat.Properties
open import Data.Nat.Properties.Simple
open import Data.Nat.Properties.Extra
open import Data.Fin as Fin
using (Fin; fromℕ≤; inject≤)
renaming (zer... |
_anim/obj86.asm | NatsumiFox/AMPS-Sonic-1-2005 | 2 | 14631 | <filename>_anim/obj86.asm
; ---------------------------------------------------------------------------
; Animation script - energy ball launcher (FZ)
; ---------------------------------------------------------------------------
dc.w byte_1AA46-Ani_obj86
dc.w byte_1AA4A-Ani_obj86
dc.w byte_1AA50-Ani_obj86
byte_1A... |
oeis/216/A216195.asm | neoneye/loda-programs | 11 | 26398 | <filename>oeis/216/A216195.asm<gh_stars>10-100
; A216195: Abelian complexity function of the period-doubling sequence (A096268).
; Submitted by <NAME>(s1.)
; 2,2,3,2,3,3,3,2,3,3,4,3,4,3,3,2,3,3,4,3,4,4,4,3,4,4,4,3,4,3,3,2,3,3,4,3,4,4,4,3,4,4,5,4,5,4,4,3,4,4,5,4,5,4,4,3,4,4,4,3,4,3,3,2,3,3,4,3,4,4,4,3,4,4,5,4,5,4,4,3,4,... |
src/parsing/DLLexer.g4 | chiakicage/deeplang | 61 | 4039 | lexer grammar DLLexer;
/*
* Copyright (c) 2012, 2020, Oracle and/or its affiliates. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License, version 2.0,
* as published by the Free Software Foundation.
*
* This program ... |
test/asset/agda-stdlib-1.0/Algebra/Solver/Ring/NaturalCoefficients/Default.agda | omega12345/agda-mode | 0 | 257 | ------------------------------------------------------------------------
-- The Agda standard library
--
-- Instantiates the natural coefficients ring solver, using coefficient
-- equality induced by ℕ.
--
-- This is sufficient for proving equalities that are independent of the
-- characteristic. In particular, this i... |
programs/oeis/268/A268227.asm | karttu/loda | 0 | 240501 | <filename>programs/oeis/268/A268227.asm<gh_stars>0
; A268227: a(n) = sum of digits of (2n)^2.
; 0,4,7,9,10,1,9,16,13,9,4,16,18,19,19,9,7,13,18,13,7,18,19,10,9,7,13,18,13,16,9,19,19,18,16,13,18,22,25,18,10,19,18,25,22,9,22,25,18,19,1,9,16,13,18,4,16,27,19,19,9,25,22,27,22,16,18,28,28,18,16,13,18,13,16,9,10,19,18,25,13,1... |
oeis/045/A045883.asm | neoneye/loda-programs | 11 | 98287 | ; A045883: a(n) = ((3*n+1)*2^n - (-1)^n)/9.
; Submitted by <NAME>(s4)
; 0,1,3,9,23,57,135,313,711,1593,3527,7737,16839,36409,78279,167481,356807,757305,1601991,3378745,7107015,14913081,31224263,65244729,136081863,283348537,589066695,1222872633,2535223751,5249404473,10856722887,22429273657,46290203079,95443717689,196614... |
hw2/Rose.g4 | ian910297/compiler | 0 | 7600 | grammar Rose;
// Parser Rules
program : PROCEDURE Identifier IS DECLARE variables BEGIN statements END Semi;
variables
: variables variable
| /* eplison */
;
variable : Identifier ':' 'integer' ';';
statements
: statements statement
| /* eplison */
;
statement
: ( assignment_statement
| if_st... |
LibraBFT/Yasm/Yasm.agda | haroldcarr/bft-consensus-agda | 0 | 10588 | {- Byzantine Fault Tolerant Consensus Verification in Agda, version 0.9.
Copyright (c) 2021 Oracle and/or its affiliates.
Licensed under the Universal Permissive License v 1.0 as shown at https://opensource.oracle.com/licenses/upl
-}
open import LibraBFT.Prelude
open import LibraBFT.Base.PKCS
open import LibraBF... |
list3/task3/a/src/bubble.ads | luk9400/nsi | 0 | 5786 | <gh_stars>0
package Bubble with SPARK_Mode is
type Arr is array (Integer range <>) of Integer;
function Sorted (A : Arr) return Boolean is
(for all I in A'First .. A'Last - 1 => A(I) <= A(I + 1))
with
Ghost,
Pre => A'Last > Integer'First,
Post => Sorted'Result = (for a... |
ada_gui-gnoga-client_storage.ads | jrcarter/Ada_GUI | 19 | 17499 | -- Ada_GUI implementation based on Gnoga. Adapted 2021
-- --
-- GNOGA - The GNU Omnificent GUI for Ada --
-- --
-- G N O G... |
libsrc/_DEVELOPMENT/arch/zx/display/c/sdcc/zx_saddrpright.asm | jpoikela/z88dk | 640 | 8063 |
; void *zx_saddrpright(void *saddr, uint bitmask)
SECTION code_clib
SECTION code_arch
PUBLIC _zx_saddrpright
EXTERN asm_zx_saddrpright
_zx_saddrpright:
pop af
pop hl
pop de
push de
push hl
push af
jp asm_zx_saddrpright
|
mips assembly/include/midi.asm | adrianmgg/misc_little_things_i_did | 0 | 5959 | .eqv VOICE_PIANO 0
.eqv VOICE_CHROMATIC_PERCUSSION 8
.eqv VOICE_ORGAN 16
.eqv VOICE_GUITAR 24
.eqv VOICE_BASS 32
.eqv VOICE_STRINGS 40
.eqv VOICE_ENSEMBLE 48
.eqv VOICE_BRASS 56
.eqv VOICE_REED 64
.eqv VO... |
P6/data_P6_2/ALUTest44.asm | alxzzhou/BUAA_CO_2020 | 1 | 93591 | sb $0,14($0)
subu $3,$3,$3
xor $6,$4,$3
sh $4,8($0)
xor $3,$3,$3
addiu $6,$3,-25283
sh $1,16($0)
srl $4,$4,23
sll $5,$3,24
ori $6,$4,31108
slt $4,$3,$3
srlv $4,$1,$3
lw $1,16($0)
addu $3,$3,$3
addu $0,$3,$3
sw $2,12($0)
or $3,$3,$3
xori $1,$5,65452
lhu $4,8($0)
sllv $3,$0,$3
lw $4,16($0)
sltu $1,$1,$3
srav $3,$4,$3
sub... |
libsrc/_DEVELOPMENT/math/integer/z180/l_z180_mulu_24_16x8.asm | Toysoft/z88dk | 0 | 6480 | ; 2018 <NAME>
INCLUDE "config_private.inc"
SECTION code_clib
SECTION code_math
PUBLIC l_z180_mulu_24_16x8
l_z180_mulu_24_16x8:
; multiplication of 16-bit number and 8-bit number into a 24-bit product
;
; enter : hl = 16-bit multiplier = x
; e = 8-bit multiplicand = y
;
; exit :... |
oeis/032/A032086.asm | neoneye/loda-programs | 11 | 1791 | <reponame>neoneye/loda-programs<filename>oeis/032/A032086.asm<gh_stars>10-100
; A032086: Number of reversible strings with n beads of 3 colors. If more than 1 bead, not palindromic.
; Submitted by <NAME>(s3)
; 3,3,9,36,108,351,1053,3240,9720,29403,88209,265356,796068,2390391,7171173,21520080,64560240,193700403,58110120... |
Cubical/HITs/Truncation/Properties.agda | knrafto/cubical | 0 | 169 | <reponame>knrafto/cubical<filename>Cubical/HITs/Truncation/Properties.agda
{-# OPTIONS --cubical --no-import-sorts --safe #-}
module Cubical.HITs.Truncation.Properties where
open import Cubical.Foundations.Prelude
open import Cubical.Foundations.Function
open import Cubical.Foundations.Equiv
open import Cubical.Founda... |
Task/Binary-strings/Ada/binary-strings-3.ada | LaudateCorpus1/RosettaCodeData | 1 | 5505 | <reponame>LaudateCorpus1/RosettaCodeData
with Interfaces; use Interfaces;
...
type Octet is new Interfaces.Unsigned_8;
type Octet_String is array (Positive range <>) of Octet;
|
src/libriscv-sim-memory_bus.ads | Fabien-Chouteau/libriscv | 0 | 2260 | <gh_stars>0
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2019, <NAME> --
-- --
-... |
TurtleTools/Examples/echo.asm | foxostro/TurtleTTL | 1 | 244258 | <gh_stars>1-10
let kSerialInterface = 7
let kDataPort = 1
let kControlPort = 0
let kResetCommand = 0
let kPutCommand = 1
let kGetCommand = 2
let kGetNumberOfBytesCommand = 3
LI A, 0
LI B, 0
LI D, kSerialInterface
LI X, 0
LI Y, 0
LI U, 0
LI V, 0
LXY serial_init
JALR
NOP
NOP
LI A, 'r'
LXY serial_put
JALR
NOP
NOP
LI ... |
programs/oeis/047/A047789.asm | jmorken/loda | 1 | 84852 | ; A047789: Denominators of Glaisher's I-numbers.
; 2,3,1,1,9,1,1,3,1,1,3,1,1,27,1,1,3,1,1,3,1,1,9,1,1,3,1,1,3,1,1,9,1,1,3,1,1,3,1,1,81,1,1,3,1,1,3,1,1,9,1,1,3,1,1,3,1,1,9,1,1,3,1,1,3,1,1,27,1,1,3,1,1,3,1,1,9,1,1,3,1,1,3,1,1,9,1,1,3,1,1,3,1,1,27,1,1,3,1,1,3,1,1,9,1,1,3,1,1,3,1,1,9,1,1,3,1,1,3,1,1,243,1,1,3,1,1,3,1,1,9,1... |
programs/oeis/081/A081271.asm | neoneye/loda | 22 | 938 | ; A081271: Vertical of triangular spiral in A051682.
; 1,13,34,64,103,151,208,274,349,433,526,628,739,859,988,1126,1273,1429,1594,1768,1951,2143,2344,2554,2773,3001,3238,3484,3739,4003,4276,4558,4849,5149,5458,5776,6103,6439,6784,7138,7501,7873,8254,8644,9043,9451
mul $0,3
add $0,3
bin $0,2
sub $0,2
|
function/surjective.agda | HoTT/M-types | 27 | 5644 | {-# OPTIONS --without-K #-}
module function.surjective where
open import sum
open import equality
open import function.isomorphism.core
open import hott.level.core
open import hott.equivalence.core
open import hott.truncation
surjective : ∀ {i j}{A : Set i}{B : Set j} → (A → B) → Set _
surjective f = ∀ b → ∥ f ⁻¹ b ... |
Rings/Orders/Partial/Definition.agda | Smaug123/agdaproofs | 4 | 12846 | <filename>Rings/Orders/Partial/Definition.agda
{-# OPTIONS --safe --warning=error --without-K #-}
open import Groups.Definition
open import Setoids.Setoids
open import Setoids.Orders.Partial.Definition
open import Functions.Definition
open import Rings.Definition
open import Agda.Primitive using (Level; lzero; lsuc; ... |
programs/oeis/282/A282816.asm | neoneye/loda | 22 | 21060 | ; A282816: Number of inequivalent ways to color the faces of a cube using at most n colors so that no two opposite sides have the same color.
; 0,0,1,11,76,340,1135,3101,7336,15576,30405,55495,95876,158236,251251,385945,576080,838576,1193961,1666851,2286460,3087140,4108951,5398261,7008376,9000200,11442925,14414751,1800... |
libsrc/_DEVELOPMENT/math/float/am9511/c/sccz80/cam32_sccz80_pow.asm | ahjelm/z88dk | 640 | 6027 |
SECTION code_fp_am9511
PUBLIC cam32_sccz80_pow
EXTERN cam32_sccz80_switch_arg, cam32_sccz80_readl
EXTERN asm_am9511_pow
.cam32_sccz80_pow
call cam32_sccz80_switch_arg
call cam32_sccz80_readl
jp asm_am9511_pow
|
Cubical/Induction/WellFounded.agda | dan-iel-lee/cubical | 0 | 16371 | {-# OPTIONS --cubical --no-import-sorts --safe #-}
module Cubical.Induction.WellFounded where
open import Cubical.Foundations.Everything
Rel : ∀{ℓ} → Type ℓ → ∀ ℓ' → Type _
Rel A ℓ = A → A → Type ℓ
module _ {ℓ ℓ'} {A : Type ℓ} (_<_ : A → A → Type ℓ') where
WFRec : ∀{ℓ''} → (A → Type ℓ'') → A → Type _
WFRec P x ... |
3-mid/impact/source/3d/collision/shapes/impact-d3-collision-quantized_bvh-optimized.adb | charlie5/lace | 20 | 4774 |
package body impact.d3.collision.quantized_Bvh.optimized
is
procedure dummy is begin null; end dummy;
end impact.d3.collision.quantized_Bvh.optimized;
--
-- #include "impact.d3.collision.quantized_Bvh.optimized.h"
-- #include "impact.d3.striding_Mesh.h"
-- #include "LinearMath/btAabbUtil2.h"
-- #inclu... |
Transynther/x86/_processed/NONE/_xt_sm_/i9-9900K_12_0xca_notsx.log_21829_1687.asm | ljhsiun2/medusa | 9 | 95552 | <gh_stars>1-10
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %rax
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x10c27, %r12
nop
nop
nop
nop
add $34, %rbx
movl $0x61626364, (%r12)
nop
nop
nop
dec %rax
lea addresses_WC_ht+0x80c7, %rbp
nop
nop
and %r10, %r10
movb (%rbp), %b... |
test/interaction/Issue2447/Internal-error.agda | shlevy/agda | 1,989 | 6738 | <reponame>shlevy/agda<gh_stars>1000+
module Issue2447.Internal-error where
import Issue2447.M
{-# IMPOSSIBLE #-}
|
Userland/SampleCodeModule/asm/syscalls_asm.asm | malevasquez/TPE_Arqui | 0 | 487 | GLOBAL readKeyboardSys
GLOBAL isKeyboardEmptySys
GLOBAL clearDisplaySys
section .text
readKeyboardSys:
push rbp
mov rbp, rsp
mov rax, 0 ;ID read
int 80h
mov rsp, rbp
pop rbp
ret
isKeyboardEmptySys:
push rbp
mov rbp, rsp
mov rax, 11 ;ID bufferEmpty
int 80h
mov rsp, rbp
pop rbp
r... |
thirdparty/adasdl/thin/adasdl/AdaSDL_framebuff/sdltests/testerror.adb | Lucretia/old_nehe_ada95 | 0 | 29444 | <filename>thirdparty/adasdl/thin/adasdl/AdaSDL_framebuff/sdltests/testerror.adb
-- ----------------------------------------------------------------- --
-- --
-- This is free software; you can redistribute it and/or --
-- modify it under the ... |
src/natools-time_statistics-generic_timers.ads | faelys/natools | 0 | 19814 | <filename>src/natools-time_statistics-generic_timers.ads
------------------------------------------------------------------------------
-- Copyright (c) 2014, <NAME> --
-- --
-- Permission to use, copy, modif... |
methods/initiatePawnTransaction.asm | caffeinum/pravda-contracts | 3 | 99919 | push int32(21)
push "initiatePawnTransaction"
push xF5AB1676D87235E4B5B1830C00A5BC783B9A58D2DC9AFE23D5FA387F1C80736E
push 2
pcall
|
assembler/tests/t_dc/t_dc.asm | paulscottrobson/RCA-Cosmac-VIP-III | 1 | 28333 | cpu 68020
irp op,b,w,l,q,s,d,x,p
dc.op [3]25
dc.op "Hello World"
ds.op 9
endm
irp op,s,d,x,p
dc.op 1.5
dc.op constpi*1000
dc.op constpi/1000
dc.op -constpi
endm
|
oeis/044/A044806.asm | neoneye/loda-programs | 11 | 21340 | ; A044806: Numbers k such that the digit string 9,3 occurs in the base-10 representation of k but not of k+1.
; Submitted by <NAME>
; 93,193,293,393,493,593,693,793,893,939,993,1093,1193,1293,1393,1493,1593,1693,1793,1893,1939,1993,2093,2193,2293,2393,2493,2593,2693,2793,2893,2939,2993,3093,3193,3293,3393,3493,3593
ad... |
programs/oeis/107/A107583.asm | neoneye/loda | 22 | 179850 | <gh_stars>10-100
; A107583: a(n) = 3^n - 3*n.
; 1,0,3,18,69,228,711,2166,6537,19656,59019,177114,531405,1594284,4782927,14348862,43046673,129140112,387420435,1162261410,3486784341,10460353140,31381059543,94143178758,282429536409,847288609368,2541865828251,7625597484906,22876792454877,68630377364796,205891132094559,6176... |
4-4-1/4-4-1.asm | shellqiqi/ASM | 0 | 171936 | <reponame>shellqiqi/ASM
DATA SEGMENT
INPUTNUM DB 8 DUP(0) ; PRODUCT
; INPUTNUM DB 1,2,3,4,4,3,2,1 ; DEBUG
GETBTNARGUMENT DB 7 ; POINTER
DATA ENDS
CODE SEGMENT PARA 'CODE'
ASSUME CS:CODE
MAIN PROC FAR
CALL GETBTN
CALL DISPLAY
CALL PALINDROME
JMP MAIN
MAIN ENDP
PALINDROME PROC NEAR
MO... |
libsrc/_DEVELOPMENT/stdio/z80/input_helpers/__stdio_scanf_li.asm | meesokim/z88dk | 0 | 2397 | <reponame>meesokim/z88dk
SECTION code_stdio
PUBLIC __stdio_scanf_li
EXTERN __stdio_scanf_sm_i, __stdio_scanf_number_head
EXTERN l_inc_sp, asm_strtol, __stdio_scanf_number_tail_long
__stdio_scanf_li:
; %li converter called from vfscanf()
;
; enter : ix = FILE *
; de = void *buffer
; b... |
src/kernel.asm | 343GuiltySpark-04/RetrogradeOS-Reentry | 1 | 93716 | <filename>src/kernel.asm
;prototype kernel (bleeding edge)
bits 32
section .text
;multiboot spec
align 4
dd 0x1BADB002 ;magic
dd 0x00 ;flags
dd - (0x1BADB002 + 0x00) ;checksum. m+f+c should be zero
[BITS 32]
; add to offsets
jmp start
%i... |
programs/oeis/062/A062877.asm | jmorken/loda | 1 | 84894 | <filename>programs/oeis/062/A062877.asm
; A062877: Apart from the initial term (0), each a(n) is representable as a sum of distinct odd-indexed Fibonacci numbers.
; 0,1,2,3,5,6,7,8,13,14,15,16,18,19,20,21,34,35,36,37,39,40,41,42,47,48,49,50,52,53,54,55,89,90,91,92,94,95,96,97,102,103,104,105,107,108,109,110,123,124,125... |
src/StateSizedIO/IOObject.agda | stephanadls/state-dependent-gui | 2 | 12922 | <reponame>stephanadls/state-dependent-gui
module StateSizedIO.IOObject where
open import Data.Product
open import Size
open import SizedIO.Base
open import StateSizedIO.Object
-- ---
-- ---
-- --- FILE IS DELETED !!!
-- ---
-- ---
-- An IO object is like a simple object,
-- but the method returns IO applied to... |
source/numerics/a-nllcty.ads | ytomino/drake | 33 | 23373 | pragma License (Unrestricted);
with Ada.Numerics.Generic_Complex_Types;
package Ada.Numerics.Long_Long_Complex_Types is
new Generic_Complex_Types (Long_Long_Float);
pragma Pure (Ada.Numerics.Long_Long_Complex_Types);
|
src/sdl-events-mice.ads | treggit/sdlada | 89 | 22886 | <reponame>treggit/sdlada
--------------------------------------------------------------------------------------------------------------------
-- Copyright (c) 2013-2020, <NAME>
--
-- This software is provided 'as-is', without any express or implied
-- warranty. In no event will the authors be held liable for any dam... |
cohomology/EMModel.agda | danbornside/HoTT-Agda | 0 | 16478 | <gh_stars>0
{-# OPTIONS --without-K #-}
open import HoTT
open import homotopy.EilenbergMacLane
open import cohomology.Theory
open import cohomology.SpectrumModel
open import cohomology.WithCoefficients
module cohomology.EMModel where
module _ {i} (G : Group i) (G-abelian : is-abelian G) where
open EMExplicit G G-... |
mysql/MySQL.g4 | Cmejia/grammars-v4 | 1 | 7008 | <reponame>Cmejia/grammars-v4
grammar MySQL;
options {
tokenVocab=MySQLBase;
}
stat:
select_clause+
;
schema_name:
ID
;
select_clause:
SELECT
column_list_clause
(FROM table_references)?
(where_clause)?
;
table_name:
ID
;
table_alias:
ID
;
column_name:
((schema_name DOT)? ID ... |
test/Fail/Issue4631AsPatternShadowsConstructor.agda | shlevy/agda | 1,989 | 399 | <reponame>shlevy/agda
-- Andreas, 2020-05-01, issue #4631
--
-- We should not allow @-patterns to shadow constructors!
open import Agda.Builtin.Bool
test : Set → Set
test true@_ = true
-- WAS: succees
-- EXPECTED:
--
-- Bool !=< Set
-- when checking that the expression true has type Set
--
-- ———— Warning(s) ——————... |
thirdparty/adasdl/thin/adasdl/AdaSDL_framebuff/sdltests/testerror_tfunc.adb | Lucretia/old_nehe_ada95 | 0 | 13183 | <reponame>Lucretia/old_nehe_ada95
-- ----------------------------------------------------------------- --
-- --
-- This is free software; you can redistribute it and/or --
-- modify it under the terms of the GNU General Public ... |
programs/oeis/278/A278312.asm | neoneye/loda | 22 | 6438 | ; A278312: a(n) = denominator of n/(2^(2*n+1)).
; 1,8,16,128,128,2048,4096,32768,16384,524288,1048576,8388608,8388608,134217728,268435456,2147483648,536870912,34359738368,68719476736,549755813888,549755813888,8796093022208,17592186044416,140737488355328,70368744177664,2251799813685248
mul $0,2
mov $1,2
mov $2,2
add $2... |
arch/ARM/STM32/svd/stm32l5x2/stm32_svd-rng.ads | morbos/Ada_Drivers_Library | 2 | 23626 | <filename>arch/ARM/STM32/svd/stm32l5x2/stm32_svd-rng.ads
-- This spec has been automatically generated from STM32L5x2.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with HAL;
with System;
package STM32_SVD.RNG is
pragma Preelaborate;
---------------
-- Registers... |
src/util/oli/app/ar2nlst.asm | olifink/qspread | 0 | 246016 | ; make array to new list
include win1_mac_oli
section utility
xdef ut_ar2nlst
;+++
; make array to new list
;
; Entry Exit
; d1.l array type (0=abs,1=rel) preserved
; a0 array descriptor preserved
; a1... |
ADA_Project/src/motor.ads | Intelligente-sanntidssystemer/Ada-prosjekt | 0 | 19838 | <reponame>Intelligente-sanntidssystemer/Ada-prosjekt
package Motor is
pragma Elaborate_Body;
subtype Percentage is Integer range 0 .. 100;
type Travel_Directions is (Forward, Backward, Neither);
type Travel_Vector is record
Power : Percentage;
Direction : Travel_Direction... |
Cubical/HITs/S3/Base.agda | thomas-lamiaux/cubical | 1 | 14104 | {-# OPTIONS --safe #-}
module Cubical.HITs.S3.Base where
open import Cubical.Foundations.Prelude
open import Cubical.Foundations.Isomorphism
open Iso
data S³ : Type₀ where
base : S³
surf : PathP (λ j → PathP (λ i → base ≡ base) refl refl) refl refl
flip₀₂S³ : S³ → S³
flip₀₂S³ base = base
flip₀₂S³ (surf j i i₁) =... |
ReasoningEx.agda | msullivan/godels-t | 4 | 9035 | module ReasoningEx where
open import Prelude
open import T
open import Contexts
open import Eq
open import Eq.Theory
open import Eq.ObsTheory
---- some example programs
-- boy, de bruijn indexes are unreadable
w = weaken-closed
plus-rec : ∀{Γ} → TExp Γ nat → TExp Γ nat → TExp Γ nat
plus-rec n m = rec n m (suc (var Z... |
alloy4fun_models/trashltl/models/13/TYeZ2BWvPtz4K9rrT.als | Kaixi26/org.alloytools.alloy | 0 | 4095 | open main
pred idTYeZ2BWvPtz4K9rrT_prop14 {
all f:Protected&Trash | after f not in Protected
}
pred __repair { idTYeZ2BWvPtz4K9rrT_prop14 }
check __repair { idTYeZ2BWvPtz4K9rrT_prop14 <=> prop14o } |
src/main/antlr4/a2lLexer.g4 | thabok/A2LParser | 0 | 2116 | lexer grammar a2lLexer;
channels {
WHITESPACES,
COMMENTS
}
/*
@lexer::members {
public static final int WHITESPACES = 1;
public static final int COMMENTS = 2;
}*/
@header {
package net.alenzen.a2l.antlr;
}
COMMENT : '/*' .*? '*/' -> channel(COMMENTS);
COMMENT_LINE : '//' .*? NEWLINE -> channel(COMMENTS)... |
Kernel/Architecture/x86/AMD64/Entrypoint.asm | UltraOS/Ultra | 44 | 99522 | %define KERNEL_ENTRYPOINT _ZN6kernel3runEPNS_13LoaderContextE
extern KERNEL_ENTRYPOINT
extern section_bss_begin
extern section_bss_end
VIRTUAL_ORIGIN: equ 0xFFFFFFFF80000000
PRESENT: equ (1 << 0)
READWRITE: equ (1 << 1)
HUGEPAGE: equ (1 << 7)
ENTRY_COUNT: equ 512
HUGEPAGE_SIZE: equ 0x200000
PAG... |
test/link/section-union/assert.asm | orbea/rgbds | 522 | 3428 | IF !DEF(SECOND)
OFS = 42
ELSE
OFS = 69
ENDC
BASE = $C0DE
SECTION UNION "assertions in unions", WRAM0
IF DEF(SECOND)
assert @ != BASE, "Force failing the build" ; Force failure in RGBLINK, though
ENDC
ds OFS
assert @ == BASE + OFS, "This assertion should not trigger"
; Only make RGBASM aware of the section's locat... |
hw4/Question4/Minijava.g4 | mohammadhosseinkarimian/IUSTCompiler | 0 | 2136 | grammar Minijava;
start returns [value_attr = str(), type_attr = str()]: mainClass classDeclaration* EOF;
mainClass returns [value_attr = str(), type_attr = str()]:
'class' identifier '{' 'public' 'static' 'void' 'main' '(' 'String' '[' ']' identifier ')' '{' statement '}' '}';
classDeclaration returns [value_a... |
programs/oeis/251/A251091.asm | karttu/loda | 1 | 87669 | ; A251091: a(n) = n^2 / gcd(n+2, 4).
; 0,1,1,9,8,25,9,49,32,81,25,121,72,169,49,225,128,289,81,361,200,441,121,529,288,625,169,729,392,841,225,961,512,1089,289,1225,648,1369,361,1521,800,1681,441,1849,968,2025,529,2209,1152,2401,625,2601,1352,2809,729,3025,1568,3249,841,3481,1800,3721,961,3969,2048,4225,1089,4489,2312,... |
examples/src/orka_7_half.adb | onox/orka | 52 | 20273 | -- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2016 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
-... |
src/Categories/Yoneda/Properties.agda | Trebor-Huang/agda-categories | 279 | 17186 | <reponame>Trebor-Huang/agda-categories
{-# OPTIONS --without-K --safe #-}
open import Level
open import Categories.Category using (Category; _[_,_])
-- Various conclusions that can be drawn from Yoneda
-- over a particular Category C
module Categories.Yoneda.Properties {o ℓ e : Level} (C : Category o ℓ e) where
open... |
oeis/085/A085279.asm | neoneye/loda-programs | 11 | 14424 | <reponame>neoneye/loda-programs
; A085279: Expansion of (1 - 2*x - 2*x^2)/((1 - 2*x)*(1 - 3*x)).
; Submitted by <NAME>
; 1,3,7,17,43,113,307,857,2443,7073,20707,61097,181243,539633,1610707,4815737,14414443,43177793,129402307,387944777,1163310043,3488881553,10464547507,31389448217,94159956043,282463090913,847355718307,2... |
tools/scitools/conf/understand/ada/ada12/s-diinio.ads | brucegua/moocos | 1 | 16574 | <filename>tools/scitools/conf/understand/ada/ada12/s-diinio.ads<gh_stars>1-10
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- ... |
programs/oeis/051/A051124.asm | neoneye/loda | 22 | 241678 | ; A051124: a(n) = Fibonacci(n) XOR Fibonacci(n+1).
; Coded manually 2021-03-30 by <NAME>, https://github.com/neoneye
; 1,0,3,1,6,13,5,24,55,21,110,201,121,400,795,441,1510,3109,6733,2616,12463,28653,10974,56017,102449,65312,206195,402993,197062,748189,1587445,3520472,1374951,6472453,14403630,7282041,26431433
add $0,1
... |
Mid-Term/Solution/Lab_Mid/ASM/MidQ4.asm | MohammadSakiL/CSE331L-Section-1-Fall20-NSU | 0 | 2491 |
.MODEL SMALL
.STACK 100H
.DATA
.CODE
MAIN PROC
MOV AX, @DATA
MOV DS, AX
MOV CX ,5
MOV AH,2
MOV DL, 42
@LOOP:
INT 21H
DEC CX
JNZ @LOOP
MOV AH, 4CH
INT 21H
MAIN ENDP
END MAIN
|
src/ado-connections.adb | My-Colaborations/ada-ado | 0 | 14007 | <gh_stars>0
-----------------------------------------------------------------------
-- ado-connections -- Database connections
-- Copyright (C) 2010, 2011, 2012, 2013, 2015, 2016, 2017, 2018, 2019 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may... |
agda/BBHeap/Equality.agda | bgbianchi/sorting | 6 | 5464 | module BBHeap.Equality {A : Set}(_≤_ : A → A → Set) where
open import BBHeap _≤_
open import Bound.Lower A
open import Bound.Lower.Order _≤_
data _≈_ {b b' : Bound} : BBHeap b → BBHeap b' → Set where
≈leaf : leaf {b} ≈ leaf {b'}
≈left : {x x' : A}{l r : BBHeap (val x)}{l' r' : BBHeap (val x')}
... |
src/commands/gui/include.asm | jhm-ciberman/calculator-asm | 2 | 86449 | <gh_stars>1-10
include 'DoClear.asm'
include 'DoExit.asm'
include 'DoHelp.asm'
include 'DoMan.asm'
include 'DoZoomPlus.asm'
include 'DoZoomMinus.asm' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.