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 |
|---|---|---|---|---|
oeis/286/A286750.asm | neoneye/loda-programs | 11 | 27184 | <filename>oeis/286/A286750.asm<gh_stars>10-100
; A286750: Positions of 0 in A286749; complement of A286751.
; Submitted by <NAME>
; 3,4,8,9,12,13,17,18,22,23,26,27,31,32,35,36,40,41,45,46,49,50,54,55,59,60,63,64,68,69,72,73,77,78,82,83,86,87,91,92,95,96,100,101,105,106,109,110,114,115,119,120,123,124,128,129,132,133,13... |
programs/oeis/207/A207020.asm | karttu/loda | 0 | 245684 | <reponame>karttu/loda
; A207020: Number of n X 4 0..1 arrays avoiding 0 0 0 and 0 1 1 horizontally and 0 0 1 and 1 0 1 vertically.
; 9,81,252,558,1035,1719,2646,3852,5373,7245,9504,12186,15327,18963,23130,27864,33201,39177,45828,53190,61299,70191,79902,90468,101925,114309,127656,142002,157383,173835,191394,210096,22997... |
libsrc/graphics/g800/drawr.asm | bahmanrafatjoo/z88dk | 0 | 6434 | SECTION code_clib
PUBLIC drawr
PUBLIC _drawr
EXTERN plotpixel
EXTERN draw_main
EXTERN last_pos
drawr:
_drawr:
push ix
ld ix,2
add ix,sp
ld de,(last_pos); x0/y0
ld h,(ix+4); xr
ld l,(ix+2); yr
ld a,h
add d
ld h,a
ld a,l
add e
ld l,a
... |
oeis/118/A118456.asm | neoneye/loda-programs | 11 | 7013 | ; A118456: a(n) = Product_{k=1..n} P(k), where P(k) is the smallest prime >= k.
; Submitted by <NAME>
; 2,4,12,60,300,2100,14700,161700,1778700,19565700,215222700,2797895100,36372636300,618334817100,10511691890700,178698762141900,3037878956412300,57719700171833700,1096674303264840300,25223508975091326900,58014070642710... |
Modules/nettle/x86_64/ecc-224-modp.asm | blondfrogs/ravenwallet-ios | 278 | 90553 | <reponame>blondfrogs/ravenwallet-ios
C x86_64/ecc-224-modp.asm
ifelse(<
Copyright (C) 2013 <NAME>
This file is part of GNU Nettle.
GNU Nettle is free software: you can redistribute it and/or
modify it under the terms of either:
* the GNU Lesser General Public License as published by the Free
... |
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/array_bounds_test.adb | best08618/asylo | 7 | 28183 | -- { dg-do run }
with Ada.Streams; use Ada.Streams;
procedure Array_Bounds_Test is
One : constant Stream_Element := 1;
Two : constant Stream_Element := 2;
Sample : constant Stream_Element_Array := (0 => One) & Two;
begin
if Sample'First /= 0 then
raise Program_Error;
end if;
if Sample... |
libsrc/_DEVELOPMENT/arch/zxn/esxdos/c/sccz80/esx_m_geterr_callee.asm | jpoikela/z88dk | 640 | 28493 | ; void esx_m_geterr(uint16_t error,unsigned char *msg)
SECTION code_esxdos
PUBLIC esx_m_geterr_callee
EXTERN asm_esx_m_geterr
esx_m_geterr_callee:
pop af
pop hl
pop de
push af
jp asm_esx_m_geterr
; SDCC bridge for Classic
IF __CLASSIC
PUBLIC _esx_m_geterr_callee
defc _esx_m_geterr_callee = esx_m_g... |
programs/oeis/110/A110591.asm | jmorken/loda | 1 | 241824 | <filename>programs/oeis/110/A110591.asm
; A110591: Number of digits in base-4 representation of n.
; 1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4... |
programs/oeis/281/A281445.asm | karttu/loda | 1 | 89978 | ; A281445: Nonnegative k for which (2*k^2 + 1)/11 is an integer.
; 4,7,15,18,26,29,37,40,48,51,59,62,70,73,81,84,92,95,103,106,114,117,125,128,136,139,147,150,158,161,169,172,180,183,191,194,202,205,213,216,224,227,235,238,246,249,257,260,268,271,279,282,290,293,301,304,312,315,323,326,334,337,345,348,356,359,367,370,3... |
grammars/pg_parser.g4 | nu11ptr/parsegen | 0 | 5528 | parser grammar pg_parser
;
options {
tokenVocab = pg_lexer;
}
body: parser_decl code_blocks EOF;
parser_decl: 'parser' '=' STRING;
code_blocks: 'code' '(' STRING ')' '{' code_block* '}';
code_block: RULE_NAME TYPE? CODE_BLOCK; |
programs/oeis/146/A146510.asm | neoneye/loda | 22 | 103041 | <filename>programs/oeis/146/A146510.asm
; A146510: Numbers congruent to {1, 4} mod 15.
; 1,4,16,19,31,34,46,49,61,64,76,79,91,94,106,109,121,124,136,139,151,154,166,169,181,184,196,199,211,214,226,229,241,244,256,259,271,274,286,289,301,304,316,319,331,334,346,349,361,364,376,379,391,394,406
mov $1,$0
div $1,2
mul $1,... |
test/agda/FRP/JS/Test/Maybe.agda | agda/agda-frp-js | 63 | 15696 | <gh_stars>10-100
open import FRP.JS.Nat using ( ℕ ; suc ; _+_ ; _≟_ )
open import FRP.JS.Maybe using ( Maybe ; just ; nothing ; _≟[_]_ )
open import FRP.JS.Bool using ( Bool ; not )
open import FRP.JS.QUnit using ( TestSuite ; ok ; ok! ; test ; _,_ )
module FRP.JS.Test.Maybe where
_≟¹_ : Maybe ℕ → Maybe ℕ → Bool
xs ≟... |
source/web/soap/web_services-soap-messages.ads | svn2github/matreshka | 24 | 25385 | <filename>source/web/soap/web_services-soap-messages.ads
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- ... |
programs/oeis/204/A204455.asm | neoneye/loda | 22 | 26464 | <reponame>neoneye/loda<gh_stars>10-100
; A204455: Squarefree product of all odd primes dividing n, and 1 if n is a power of 2: A099985/2.
; 1,1,3,1,5,3,7,1,3,5,11,3,13,7,15,1,17,3,19,5,21,11,23,3,5,13,3,7,29,15,31,1,33,17,35,3,37,19,39,5,41,21,43,11,15,23,47,3,7,5,51,13,53,3,55,7,57,29,59,15,61,31,21,1,65,33,67,17,69,3... |
oeis/254/A254078.asm | neoneye/loda-programs | 11 | 85198 | ; A254078: a(n) is the number of steps after which n variables with increasing value ranges all have equal values when the values of all variables are decreased by 1 at each step and the value is set to the maximum value again when the resulting value would be 0.
; Submitted by <NAME>
; 4,10,58,58,418,838,2518,2518,277... |
Assembly/Examples/PRINT.asm | p-rivero/CESCA | 7 | 92476 | #ifndef _PRINTLIB
#define _PRINTLIB
; Include library only once
; Make sure MATH is included
#include "MATH.asm"
PRINT:
.CENTINEL = 0xFF
; Prints an 8 bit signed integer
; Arguments: R0 = n
.int8:
test R0
jp .uint8 ; If n is positive, print as unsigned
; If number is strictly negative, output '-' a... |
lib/target/abc80/classic/abc80_crt0.asm | ahjelm/z88dk | 640 | 246942 | ; CRT0 for the ABC80 Family
;
; <NAME> 2000
;
; $Id: abc80_crt0.asm,v 1.20 2016-07-15 21:03:25 dom Exp $
;
MODULE abc80_crt0
defc crt0 = 1
INCLUDE "zcc_opt.def"
EXTERN _main
PUBLIC cleanup
PUBLIC l_dcal
defc CONSOLE_ROWS = 24
defc CONSOLE_COLUMNS = 40... |
tools/css-analysis-rules.adb | stcarrez/ada-css | 3 | 17617 | <filename>tools/css-analysis-rules.adb
-----------------------------------------------------------------------
-- css-analysis-rules -- CSS Analysis Rules
-- Copyright (C) 2017 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file e... |
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_21829_1683.asm | ljhsiun2/medusa | 9 | 89765 | .global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r15
push %r8
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_UC_ht+0x9451, %rsi
lea addresses_normal_ht+0xa4e1, %rdi
nop
nop
nop
add $17033, %r11
mov $127, %rcx
rep movsb
nop
nop
nop
xor $38461, %rbp
lea addresses_WT_ht+0x1b641, %rdx
nop
nop
n... |
_build/dispatcher/jmp_ippsSMS4EncryptCBC_CS1_43f6d1d6.asm | zyktrcn/ippcp | 1 | 241796 | <reponame>zyktrcn/ippcp
extern m7_ippsSMS4EncryptCBC_CS1:function
extern n8_ippsSMS4EncryptCBC_CS1:function
extern y8_ippsSMS4EncryptCBC_CS1:function
extern e9_ippsSMS4EncryptCBC_CS1:function
extern l9_ippsSMS4EncryptCBC_CS1:function
extern n0_ippsSMS4EncryptCBC_CS1:function
extern k0_ippsSMS4EncryptCBC_CS1:function
ex... |
alloy4fun_models/trashltl/models/4/hkNn5qccjR5FvpbCB.als | Kaixi26/org.alloytools.alloy | 0 | 472 | open main
pred idhkNn5qccjR5FvpbCB_prop5 {
some f : File | eventually File' = File - f
}
pred __repair { idhkNn5qccjR5FvpbCB_prop5 }
check __repair { idhkNn5qccjR5FvpbCB_prop5 <=> prop5o } |
programs/oeis/135/A135536.asm | jmorken/loda | 1 | 161127 | <filename>programs/oeis/135/A135536.asm
; A135536: a(n) = 8*a(n-2), with a(0) = 7, a(1) = 14.
; 7,14,56,112,448,896,3584,7168,28672,57344,229376,458752,1835008,3670016,14680064,29360128,117440512,234881024,939524096,1879048192,7516192768,15032385536,60129542144,120259084288,481036337152,962072674304,3848290697216,76965... |
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca.log_21829_734.asm | ljhsiun2/medusa | 9 | 240286 | <gh_stars>1-10
.global s_prepare_buffers
s_prepare_buffers:
push %r13
push %r14
push %r15
push %r8
push %r9
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x8029, %rdi
nop
nop
nop
nop
nop
cmp $44507, %r8
movw $0x6162, (%rdi)
nop
nop
nop
nop
add $52971, %r15
lea addresses_D_ht+0x7279, %rsi
lea addresses_WT_ht+0x2d79, ... |
polynomial/least_sq_poly/orthogonal_polys.ads | jscparker/math_packages | 30 | 14524 | <gh_stars>10-100
-- package Orthogonal_Polys
--
-- Generates orthogonal polynomials on dicrete grid points using the
-- Gram-Schmidt method. The package also provides a routine for
-- polynomial least-squares curve fitting: procedure Poly_Fit.
--
-- The least-squares curve fitting routine could have been defined in
-... |
agda/Data/Fin.agda | oisdk/combinatorics-paper | 6 | 13219 | <reponame>oisdk/combinatorics-paper
{-# OPTIONS --cubical --safe #-}
module Data.Fin where
open import Data.Fin.Base public
|
Win32/Win32.Paradise/Win32.Paradise.asm | fengjixuchui/Family | 3 | 104375 | <gh_stars>1-10
; [Win32.Paradise] - Bugfixed and improved version of Iced Earth
; Copyright (c) 1999 by <NAME>/iKX
;
; ?????? Welcome to another Billy's production.
; ???? ??????? ??? Enjoy this new...
; ????????????????????
; ? ???????????????? ???
; ? ????????????? ?
;... |
school2/8B/5a.asm | momomeomo/School | 0 | 24892 | INCLUDE asmlib.inc
.data
prompt1 BYTE "Input number: ", 0ah, 0dh, 0
prompt2 BYTE "First number is larger", 0ah, 0dh, 0
prompt3 BYTE "Numbers are equal", 0ah, 0dh, 0
prompt4 BYTE "Second number is larger", 0ah, 0dh, 0
num1 DWORD ?
num2 DWORD ?
.code
main PROC
mov eax, 0
mov edx, OFFSET prompt1
call write... |
src/main/fragment/mos6502-undoc/_stackpullpadding_4.asm | jbrandwood/kickc | 2 | 104891 | tsx
txa
axs #-4
txs |
src/main/fragment/mos6502-common/vbuaa=vbuaa_bor_vbuxx.asm | jbrandwood/kickc | 2 | 242839 | <reponame>jbrandwood/kickc<filename>src/main/fragment/mos6502-common/vbuaa=vbuaa_bor_vbuxx.asm
stx $ff
ora $ff |
src/Fragment/Equational/Theory/Bundles.agda | yallop/agda-fragment | 18 | 15204 | <gh_stars>10-100
{-# OPTIONS --without-K --exact-split --safe #-}
module Fragment.Equational.Theory.Bundles where
open import Fragment.Algebra.Signature
open import Fragment.Equational.Theory.Base
open import Fragment.Equational.Theory.Combinators
open import Data.Nat using (ℕ)
module _ where
data MagmaOp : ℕ → ... |
Multidimensional/Data/Extra/Nat/Base.agda | wrrnhttn/agda-cubical-multidimensional | 0 | 8835 | {-# OPTIONS --cubical --no-exact-split --safe #-}
module Multidimensional.Data.Extra.Nat.Base where
open import Cubical.Data.Nat
sucn : (n : ℕ) → (ℕ → ℕ)
sucn n = iter n suc
|
Transynther/x86/_processed/NONE/_zr_/i7-8650U_0xd2.log_9834_238.asm | ljhsiun2/medusa | 9 | 13823 | <reponame>ljhsiun2/medusa
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r8
push %r9
push %rax
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_D_ht+0xd6dc, %rsi
lea addresses_WC_ht+0xbe84, %rdi
clflush (%rdi)
nop
nop
nop
nop
nop
and $33750, %r8
mov $20, %rcx
rep movsb
and %r10, %r10
lea addresses_WC... |
source/environment/a-locale.adb | ytomino/drake | 33 | 29623 | <reponame>ytomino/drake<gh_stars>10-100
-- reference:
-- http://www.loc.gov/standards/iso639-2/php/code_list.php
pragma Check_Policy (Validate => Ignore);
with System.Native_Locales;
with System.Once;
package body Ada.Locales is
type Long_Boolean is new Boolean;
for Long_Boolean'Size use Long_Integer'Size;
... |
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/prefix1.ads | best08618/asylo | 7 | 18768 | <reponame>best08618/asylo<gh_stars>1-10
package prefix1 is
type Arr is array (1..10) of Natural;
type T is tagged null record;
function Func (Object : T) return Arr;
end prefix1;
|
srcs/os/win32.asm | gamozolabs/falkervisor_beta | 69 | 244955 | [bits 64]
struc modlist
; module is loaded at [base, end]
.base: resq 1
.end: resq 1
.hash: resq 1
.namelen: resq 1 ; Name length in bytes
.name: resb 512 ; utf16 name of module
endstruc
win32_construct_modlist:
push rax
push rbx
push rcx
push rdx
push rdi
push rsi
push rbp
; If we have already... |
programs/oeis/261/A261193.asm | neoneye/loda | 22 | 3839 | ; A261193: a(n) = n! - 2.
; -1,-1,0,4,22,118,718,5038,40318,362878,3628798,39916798,479001598,6227020798,87178291198,1307674367998,20922789887998,355687428095998,6402373705727998,121645100408831998,2432902008176639998,51090942171709439998,1124000727777607679998
seq $0,142 ; Factorial numbers: n! = 1*2*3*4*...*n (order... |
programs/oeis/075/A075553.asm | neoneye/loda | 22 | 14734 | <filename>programs/oeis/075/A075553.asm
; A075553: Numerators in the Maclaurin series for arctan(1+x).
; 0,1,-1,1,0,-1,1,-1,0,1,-1,1,0,-1,1,-1,0,1,-1,1,0,-1,1,-1,0,1,-1,1,0,-1,1,-1,0,1,-1,1,0,-1,1,-1,0,1,-1,1,0,-1,1,-1,0,1,-1,1,0,-1,1,-1,0,1,-1,1,0,-1,1,-1,0,1,-1,1,0,-1,1,-1,0,1,-1,1,0,-1,1,-1,0,1,-1,1,0,-1,1,-1,0,1,-1... |
memsim-master/src/benchmark.adb | strenkml/EE368 | 0 | 24240 |
with Ada.Unchecked_Deallocation;
with Device; use Device;
package body Benchmark is
procedure Set_Memory(benchmark : in out Benchmark_Type'Class;
mem : in Memory_Pointer) is
begin
benchmark.max_addr
:= (Address_Type(2) ** Get_Address_Bits) - 1;
benchmark.m... |
3-mid/opengl/source/lean/support/opengl-dolly.ads | charlie5/lace | 20 | 18006 | with
openGL.Camera,
ada.Characters.latin_1;
package openGL.Dolly
--
-- A utility which moves a camera via the keyboard.
--
is
type Item (Camera : openGL.Camera.view) is tagged private;
procedure Speed_is (Self : in out Item; Now : in Real);
procedure evolve (Self : in out I... |
synth.asm | neilbaldwin/PR8 | 8 | 101012 | synthRefresh:
jsr ampEnvelopeA0
jsr ampEnvelopeA1
jsr ampEnvelopeA2
jsr ampEnvelopeA3
jsr ampEnvelopeA4
jsr ampEnvelopeA5
jsr ampEnvelopeB0
jsr ampEnvelopeB1
jsr ampEnvelopeB2
jsr ampEnvelopeB3
jsr ampEnvelopeB4
jsr ampEnvelopeB5
jsr ampEnvelopeC0
jsr ampEnvelopeC1
jsr ampEnvelopeC2
jsr ampEnvelopeC... |
1A/S5/PIM/projet/src/foret.ads | MOUDDENEHamza/ENSEEIHT | 4 | 21883 | --------------------------------------------------------------------------------
-- Fichier : foret.ads
-- Auteur : <NAME> & <NAME>
-- Objectif : Spécification du module Foret
-- Crée : Jeudi Déc 12 2019
--------------------------------------------------------------------------------
with Ensemble;
with Ar... |
programs/oeis/342/A342892.asm | neoneye/loda | 22 | 99175 | <reponame>neoneye/loda
; A342892: a(n) is the complement of the bit two places to the left of the least significant "1" in the binary expansion of n.
; 1,1,1,1,1,0,1,0,1,1,0,1,1,0,0,0,1,1,1,1,0,0,1,0,1,1,0,1,0,0,0,0,1,1,1,1,1,0,1,0,0,1,0,1,1,0,0,0,1,1,1,1,0,0,1,0,0,1,0,1,0,0,0,0,1,1,1,1,1,0,1,0,1,1,0,1,1,0,0,0,0,1,1,1,... |
programs/oeis/229/A229763.asm | neoneye/loda | 22 | 1213 | <filename>programs/oeis/229/A229763.asm
; A229763: a(n) = (2*n) XOR n AND n, where AND and XOR are bitwise logical operators.
; 0,1,2,1,4,5,2,1,8,9,10,9,4,5,2,1,16,17,18,17,20,21,18,17,8,9,10,9,4,5,2,1,32,33,34,33,36,37,34,33,40,41,42,41,36,37,34,33,16,17,18,17,20,21,18,17,8,9,10,9,4,5,2,1,64,65,66,65,68,69,66,65,72,73... |
programs/oeis/199/A199910.asm | neoneye/loda | 22 | 104177 | <reponame>neoneye/loda
; A199910: Number of -n..n arrays x(0..2) of 3 elements with zero sum, and adjacent elements not equal modulo three (with -1 modulo 3 = 2).
; 6,12,24,42,60,84,114,144,180,222,264,312,366,420,480,546,612,684,762,840,924,1014,1104,1200,1302,1404,1512,1626,1740,1860,1986,2112,2244,2382,2520,2664,281... |
dasm/dasm.asm | ceharris/sbz80 | 0 | 27136 | <filename>dasm/dasm.asm<gh_stars>0
name dasm
include defs.asm
extern mkflag
extern mkregr
extern mkregqq
extern mkregss
extern mkreg
extern mkaadd
extern mkiadd
extern mkradd
extern mkimm
extern mkilit
extern mkzadd
extern i2str
cseg
;-------------------------------------------------... |
programs/oeis/175/A175868.asm | karttu/loda | 0 | 170435 | ; A175868: Partial sums of ceiling(n^2/20).
; 0,1,2,3,4,6,8,11,15,20,25,32,40,49,59,71,84,99,116,135,155,178,203,230,259,291,325,362,402,445,490,539,591,646,704,766,831,900,973,1050,1130,1215,1304,1397,1494,1596,1702,1813,1929,2050,2175,2306,2442,2583,2729,2881,3038,3201,3370,3545,3725,3912,4105,4304,4509,4721,4939,516... |
programs/oeis/011/A011926.asm | karttu/loda | 1 | 13463 | <filename>programs/oeis/011/A011926.asm
; A011926: [ n(n-1)(n-2)(n-3)/16 ].
; 0,0,0,0,1,7,22,52,105,189,315,495,742,1072,1501,2047,2730,3570,4590,5814,7267,8977,10972,13282,15939,18975,22425,26325,30712,35626,41107,47197,53940,61380,69564,78540
bin $0,4
mul $0,24
div $0,16
mov $1,$0
|
src/bot.adb | Hamster-Furtif/JeremyPlusPlus | 0 | 6350 | with ada.text_io, ada.Float_Text_IO, ada.Integer_Text_IO, utils, ada.Strings.Unbounded, montecarlo, botIO, opstrat, Mastermind, Ada.Characters.Handling;
use ada.text_io, ada.Float_Text_IO, ada.Integer_Text_IO, utils, ada.Strings.Unbounded, montecarlo, botIO, opstrat, Mastermind, Ada.Characters.Handling;
procedure bot ... |
ada/original_2008/ada-demos/demo.ads | auzkok/libagar | 286 | 9971 | <reponame>auzkok/libagar
with agar.gui.window;
package demo is
window : agar.gui.window.window_access_t;
procedure init
(name : string;
video_width : integer := 640;
video_height : integer := 480;
window_width : integer := 320;
window_height : integer := 240);
procedure ru... |
Lab6/prob7_9.asm | richardhyy/AssemblyLab | 3 | 1236 | assume cs:codesg,ss:stacksg,ds:datasg
stacksg segment
dw 0,0,0,0,0,0,0,0
stacksg ends
datasg segment
db '1. display '
db '2. brows '
db '3. replace '
db '4. modify '
datasg ends
codesg segment
start: mov ax,datasg
mov ds,ax
mov ax,stacksg
mov ss,ax
mov sp,10H
mov bx,3
mov cx,4... |
4-high/gel/source/joint/gel-joint.ads | charlie5/lace | 20 | 7548 | <filename>4-high/gel/source/joint/gel-joint.ads
with
physics.Joint,
lace.Any;
limited
with
gel.Sprite;
package gel.Joint
--
-- Allows sprites to be connected via a joint.
-- A joint constrains the motion of the sprites which it connects.
--
is
type Item is abstract new lace.Any.limited_item with ... |
alloy/tp8/classRL.als | motapinto/feup-mfes | 0 | 1925 | <reponame>motapinto/feup-mfes<filename>alloy/tp8/classRL.als
/**
* Relational logic revision exercises based on a simple model of a
* classroom management system.
*
* The model has 5 unary predicates (sets), Person, Student, Teacher,
* Group and Class, Student and Teacher a sub-set of Person. There are
* two b... |
FormalAnalyzer/models/meta/cap_robotCleanerCleaningMode.als | Mohannadcse/IoTCOM_BehavioralRuleExtractor | 0 | 3429 | <gh_stars>0
// filename: cap_robotCleanerCleaningMode.als
module cap_robotCleanerCleaningMode
open IoTBottomUp
one sig cap_robotCleanerCleaningMode extends Capability {}
{
attributes = cap_robotCleanerCleaningMode_attr
}
abstract sig cap_robotCleanerCleaningMode_attr extends Attribute {}
one sig cap_robotCleanerCl... |
8088/memtimer/refresh_one.asm | reenigne/reenigne | 92 | 88007 | <reponame>reenigne/reenigne<filename>8088/memtimer/refresh_one.asm
%include "../defaults_bin.asm"
mov al,TIMER0 | BOTH | MODE2 | BINARY
out 0x43,al
xor al,al
out 0x40,al
out 0x40,al
cli
mov ax,0
mov ds,ax
mov ax,cs
mov word[0x20],interrupt8
mov [0x22],ax
mov ds,ax
mov es,ax
mov ss,ax
... |
dotgrammar.g4 | CodeScratcher/shimmerlang | 0 | 1995 | grammar dotgrammar;
IDENTIFIER: [a-zA-Z][a-zA-Z0-9]*;
NUMBER: [0-9]+;
STRING: ["][!"]*["]|['][!']*['];
WHITESPACE: ' ' -> skip;
paramNames: IDENTIFIER | IDENTIFIER ',' paramNames;
funcLiteral: '(' paramNames ')' '{' funcCall* '}';
value: IDENTIFIER | NUMBER | STRING | funcLiteral;
params: value | value ',' params;
func... |
oeis/292/A292360.asm | neoneye/loda-programs | 11 | 80598 | ; A292360: a(n) = n*(Lucas(n)*Lucas(n+1) - 2).
; 0,1,20,78,300,980,3120,9527,28560,84114,244750,704836,2013120,5709613,16097900,45155190,126099120,350765012,972333360,2687024099,7404969000,20355783546,55829853970,152808294148,417451104000,1138438728025,3099690135620,8427213134622,22879868580660,62039569088084,168022448... |
PRG/levels/Plains/3-7.asm | narfman0/smb3_pp1 | 0 | 15380 | <reponame>narfman0/smb3_pp1
; Original address was $B8BC
; 3-7
.word W307_CoinHeavL ; Alternate level layout
.word W307_CoinHeavO ; Alternate object layout
.byte LEVEL1_SIZE_10 | LEVEL1_YSTART_140
.byte LEVEL2_BGPAL_02 | LEVEL2_OBJPAL_08 | LEVEL2_XSTART_18
.byte LEVEL3_TILESET_13 | LEVEL3_VSCROLL_LOCKLOW | LEVEL3_... |
src/antlr/preprocess/Path.g4 | ProgramRepair/SearchRepair | 22 | 3178 | grammar Path;
prog : statement*;
statement
: declarationStat
| assignStat
| returnStat
| assumeStat
| callStat
| selfIncreStat
;
selfIncreStat: ID selfOperator ';';
selfOperator: '++' | '--';
callStat
: callExpr ';'
;
assumeStat
: notExpr';'
| condExpr';'
;
notExpr: '!' '(' condExpr ')';
condE... |
data/mapHeaders/viridianmart.asm | adhi-thirumala/EvoYellow | 16 | 178717 | ViridianMart_h:
db MART ; tileset
db VIRIDIAN_MART_HEIGHT, VIRIDIAN_MART_WIDTH ; dimensions (y, x)
dw ViridianMartBlocks, ViridianMartTextPointers, ViridianMartScript ; blocks, texts, scripts
db $00 ; connections
dw ViridianMartObject ; objects
|
programs/oeis/140/A140323.asm | neoneye/loda | 22 | 93584 | <reponame>neoneye/loda
; A140323: First differences of A140322.
; 1,9,31,129,511,2049,8191,32769,131071,524289,2097151,8388609,33554431,134217729,536870911,2147483649,8589934591,34359738369,137438953471,549755813889,2199023255551,8796093022209,35184372088831,140737488355329,562949953421311,2251799813685249,900719925474... |
source/torrent-storages.adb | reznikmm/torrent | 4 | 26281 | <reponame>reznikmm/torrent
-- Copyright (c) 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Ada.Directories;
package body Torrent.Storages is
use type Ada.Streams.Stream_Element_Count;
protected body St... |
exercises/09-philosophers.als | xbreu/formal-methods | 0 | 3635 | /// Model for a philosopher group dinner
// ----------------------------------------------------------------------------
// Definitions
// ----------------------------------------------------------------------------
// The "things" that are around the table.
abstract sig Thing {
next : one Thing
}
// Forks that ea... |
support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/i-cpoint.ads | orb-zhuchen/Orb | 0 | 8923 | <filename>support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/i-cpoint.ads
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
programs/oeis/040/A040670.asm | jmorken/loda | 1 | 245878 | <reponame>jmorken/loda<gh_stars>1-10
; A040670: Continued fraction for sqrt(697).
; 26,2,2,52,2,2,52,2,2,52,2,2,52,2,2,52,2,2,52,2,2,52,2,2,52,2,2,52,2,2,52,2,2,52,2,2,52,2,2,52,2,2,52,2,2,52,2,2,52,2,2,52,2,2,52,2,2,52,2,2,52,2,2,52,2,2,52,2,2,52,2,2,52,2,2,52,2,2,52,2,2
mov $9,$0
mov $11,2
lpb $11
clr $0,9
mov $... |
out/prologin_template_intlist.adb | FardaleM/metalang | 22 | 9360 | <reponame>FardaleM/metalang<gh_stars>10-100
with ada.text_io, ada.Integer_text_IO, Ada.Text_IO.Text_Streams, Ada.Strings.Fixed, Interfaces.C;
use ada.text_io, ada.Integer_text_IO, Ada.Strings, Ada.Strings.Fixed, Interfaces.C;
procedure prologin_template_intlist is
type stringptr is access all char_array;
procedure ... |
src/Implicits/Syntax/Type/Unification/McBride.agda | metaborg/ts.agda | 4 | 8944 | <filename>src/Implicits/Syntax/Type/Unification/McBride.agda
open import Prelude renaming (_≟_ to _N≟_)
module Implicits.Syntax.Type.Unification.McBride where
open import Implicits.Syntax
open import Implicits.Syntax.MetaType
open import Data.Vec hiding (_>>=_)
open import Data.Vec.Properties
open import Data.Nat as... |
src/parser/StlLexer.g4 | jaksicstefan/repo_symaut | 1 | 6321 | lexer grammar StlLexer ;
@header{
package gen;
}
// Rules prefixed with fragment can be called only from other lexer rules;
// they are not tokens in their own right.
// Separators
LPAREN
: '(' ;
RPAREN
: ')' ;
LBRACE
: '{' ;
RBRACE
: '}' ;
LBRACK
: '[' ;
RBRACK
: ']' ;
SEMICOLON
: ';' ;
COLON
: ':... |
commands/system/sidecar-toggle.template.applescript | Paul-McCarthy/script-commands | 2 | 939 | <reponame>Paul-McCarthy/script-commands<filename>commands/system/sidecar-toggle.template.applescript
#!/usr/bin/osascript
# Required parameters:
# @raycast.schemaVersion 1
# @raycast.title Sidecar Switch
# @raycast.mode silent
# Optional parameters:
# @raycast.icon 🖥
# @raycast.packageName System
# Documentation:
#... |
data/pokemon/base_stats/poliwhirl.asm | opiter09/ASM-Machina | 1 | 179005 | db DEX_POLIWHIRL ; pokedex id
db 65, 65, 65, 90, 50
; hp atk def spd spc
db WATER, PSYCHIC_TYPE ; type
db 120 ; catch rate
db 131 ; base exp
INCBIN "gfx/pokemon/front/poliwhirl.pic", 0, 1 ; sprite dimensions
dw PoliwhirlPicFront, PoliwhirlPicBack
db BUBBLE, HYPNOSIS, WATER_GUN, NO_MOVE ; level 1... |
Transynther/x86/_processed/AVXALIGN/_zr_/i3-7100_9_0x84_notsx.log_16771_91.asm | ljhsiun2/medusa | 9 | 12066 | <filename>Transynther/x86/_processed/AVXALIGN/_zr_/i3-7100_9_0x84_notsx.log_16771_91.asm
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r14
push %r9
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_WT_ht+0x14e9b, %r10
nop
nop
add %rbp, %rbp
movl $0x61626364, (%r10)
nop
nop
nop
cmp %r12, %r1... |
src/common/trendy_terminal-io.ads | pyjarrett/archaic_terminal | 3 | 30877 | <filename>src/common/trendy_terminal-io.ads
-------------------------------------------------------------------------------
-- Copyright 2021, The Trendy Terminal Developers (see AUTHORS file)
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the ... |
models/hol/sygus/bitvector_benchmarks/parity-aig-d0.als | johnwickerson/alloystar | 2 | 4581 | module parity_aig_d0
open parity[spec]
--------------------------------------------------------------------------------
-- Specification
-- (https://github.com/rishabhs/sygus-comp14/blob/master/benchmarks/bitvector-benchmarks/parity-AIG-d0.sl)
--------------------------------------------------------------------------... |
汇编语言/第7章/79.asm | jckling/only-python | 1 | 162845 | ;将每个单词的前4个字母改写为大写字母
assume cs:codesg,ds:datasg,ss:stacksg
stacksg segment ;栈段,容量为16个字节
dw 0,0,0,0,0,0,0,0
stacksg ends
datasg segment
db '1. display '
db '2. brows '
db '3. replace '
db '4. modify '
datasg ends
codesg segment
start:
mov ax,stacksg
mov ss,ax
... |
Cats/Category/Setoids/Facts/Terminal.agda | alessio-b-zak/cats | 0 | 17299 | <gh_stars>0
module Cats.Category.Setoids.Facts.Terminal where
open import Data.Unit using (⊤)
open import Level
open import Cats.Category
open import Cats.Category.Setoids using (Setoids)
module Build {l} {l≈} where
open Category (Setoids l l≈)
One : Obj
One = record
{ Carrier = Lift l ⊤
; _≈_ ... |
oeis/206/A206927.asm | neoneye/loda-programs | 11 | 8980 | <gh_stars>10-100
; A206927: Minimal numbers of binary length n+1 such that the number of contiguous palindromic bit patterns in the binary representation is minimal.
; 2,4,9,18,37,75,150,300,601,1202,2405,4811,9622,19244,38489,76978,153957,307915,615830,1231660,2463321,4926642,9853285,19706571,39413142,78826284,1576525... |
utils/sdl_display.adb | Fabien-Chouteau/GESTE-examples | 1 | 21721 | with SDL;
with SDL.Video.Windows;
with SDL.Video.Windows.Makers;
with SDL.Video.Surfaces;
with SDL.Video.Pixel_Formats;
with SDL.Video.Palettes; use SDL.Video.Palettes;
with SDL.Video.Pixel_Formats; use SDL.Video.Pixel_Formats;
with SDL.Video.Textures; use SDL.Video.Textures;
with SDL.Video.Textures.Makers;
with SDL.Vi... |
programs/oeis/177/A177107.asm | neoneye/loda | 22 | 165139 | ; A177107: 3*(10^n-7).
; 9,279,2979,29979,299979,2999979,29999979,299999979,2999999979,29999999979,299999999979,2999999999979,29999999999979,299999999999979,2999999999999979,29999999999999979,299999999999999979
add $0,1
mov $1,10
pow $1,$0
sub $1,6
mul $1,4
div $1,12
mul $1,9
mov $0,$1
|
src/util/spat-stop_watch.ads | HeisenbugLtd/spat | 20 | 16431 | <gh_stars>10-100
------------------------------------------------------------------------------
-- Copyright (C) 2020 by Heisenbug Ltd. (<EMAIL>)
--
-- This work is free. You can redistribute it and/or modify it under the
-- terms of the Do What The Fuck You Want To Public License, Version 2,
-- as published by Sam... |
Maths/Utilities/PAequDustYIdxYmulQ-MLU1.asm | ped7g/EliteNext | 9 | 247487 | <filename>Maths/Utilities/PAequDustYIdxYmulQ-MLU1.asm
asm_mlu1:
PAequDustYIdxYmulQ:
; "ASM MLU1 : TESTGOOD"
; "Y1 = dustY[Y]hi and P.A = Y1 7bit * Q A = low, P = hi"
ld hl, varDustY ;
ld a, (regY) ;
add hl,a ;
add hl,a ;
; inc hl STICK TO Lo for now
ld a, (hl) ; a = dustY[a]
ld (varY1),a ; Y1 = a
and S... |
programs/oeis/000/A000520.asm | jmorken/loda | 1 | 170470 | <gh_stars>1-10
; A000520: Nearest integer to log_10(n).
; 0,0,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,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,... |
boot/boot-loader.asm | tango-lima/sandbox | 0 | 167797 | <reponame>tango-lima/sandbox
BITS 16
ORG 0x0000
; Initialize segment registers
mov ax, cs
mov ds, ax
mov es, ax
mov fs, ax
mov gs, ax
mov ss, ax
; Initialize stack pointer
mov sp, stack_top
; Print boot message
mov si, booting_stage_two_str
call print_str
; Save boot drive
mov [bo... |
Task/Order-two-numerical-lists/AppleScript/order-two-numerical-lists-1.applescript | LaudateCorpus1/RosettaCodeData | 1 | 3830 | -- <= for lists
-- compare :: [a] -> [a] -> Bool
on compare(xs, ys)
if length of xs = 0 then
true
else
if length of ys = 0 then
false
else
set {hx, txs} to uncons(xs)
set {hy, tys} to uncons(ys)
if hx = hy then
compare(txs,... |
8085_programming/YT/fibonacci_seq.asm | SayanGhoshBDA/code-backup | 16 | 23629 | LXI H,2060
MVI A,00
MOV C,M
MVI B,01
MVI E,01
DCR C
JZ L4
DCR C
JZ L4
MOV A,B
L2: ADD E
DCR C
JNZ L1
STA 2070
HLT
L1: MOV E,B
MOV B,A
JMP L2
L4: MVI A,01
STA 2070
HLT
# ORG 2060H
# DB 06
|
src/test/ref/examples/c64/scroll/scroll.asm | jbrandwood/kickc | 2 | 103975 | /// @file
/// Commodore 64 Registers and Constants
/// @file
/// The MOS 6526 Complex Interface Adapter (CIA)
///
/// http://archive.6502.org/datasheets/mos_6526_cia_recreated.pdf
// Commodore 64 PRG executable file
.file [name="scroll.prg", type="prg", segments="Program"]
.segmentdef Program [segments="Basic, Code, ... |
oeis/028/A028120.asm | neoneye/loda-programs | 11 | 175776 | ; A028120: Expansion of 1/((1-4x)(1-5x)(1-8x)(1-9x)).
; Submitted by <NAME>
; 1,26,431,5824,70077,783510,8335867,85622108,857084393,8414359954,81378676743,777830951352,7365015041749,69207262292558,646271819803859,6003846344524756,55534562590626945,511814373212664522
mov $1,1
mov $2,$0
mov $3,$0
lpb $2
mov $0,$3
su... |
libsrc/_DEVELOPMENT/math/float/am9511/c/sccz80/cam32_sccz80_ceil.asm | ahjelm/z88dk | 640 | 160659 |
SECTION code_fp_am9511
PUBLIC cam32_sccz80_ceil
EXTERN cam32_sccz80_read1, asm_am9511_ceil_fastcall
.cam32_sccz80_ceil
call cam32_sccz80_read1
jp asm_am9511_ceil_fastcall
|
programs/oeis/290/A290662.asm | jmorken/loda | 1 | 179240 | ; A290662: Decimal representation of the diagonal from the origin to the corner of the n-th stage of growth of the two-dimensional cellular automaton defined by "Rule 899", based on the 5-celled von Neumann neighborhood.
; 1,3,5,15,23,63,95,255,383,1023,1535,4095,6143,16383,24575,65535,98303,262143,393215,1048575,15728... |
lib/macos-get-active-window-title.applescript | 6a68/quantified-geek-self | 1 | 641 | #!/usr/bin/osascript
global frontApp, frontAppName, windowTitle, timestamp
# the delay is only included for testing via command-line: run the script,
# switch focus to a new window, wait a bit, then check the output
#delay 5
# TODO figure out how to bail if the screen is locked
tell application "System Events"
set t... |
homotopy/3x3/Common.agda | danbornside/HoTT-Agda | 0 | 515 | {-# OPTIONS --without-K #-}
module homotopy.3x3.Common where
open import HoTT public hiding (↓-='-in; ↓-='-out; ↓-=-in; ↓-=-out; ↓-∘=idf-in)
!-∘-ap-inv : ∀ {i j k} {A : Type i} {B : Type j} {C : Type k} (f : B → C) (g : A → B) {a b : A}
(p : a == b)
→ ap-∘ f g p == ! (∘-ap f g p)
!-∘-ap-inv f g idp = idp
!-ap-∘... |
res/open-item2.scpt | haohailiang/vscode-open-iterm2 | 0 | 4551 | on run argv
set prevDelimiter to AppleScript's text item delimiters
set AppleScript's text item delimiters to " "
set commands to argv as string
set AppleScript's text item delimiters to prevDelimiter
tell application "iTerm"
activate
if current window is missing value then
create window with default pr... |
source/containers/a-cgarty.adb | ytomino/drake | 33 | 21670 | with Ada.Containers.Array_Sorting;
with System.Long_Long_Integer_Types;
package body Ada.Containers.Generic_Array_Types is
subtype Word_Integer is System.Long_Long_Integer_Types.Word_Integer;
-- implementation
function Length (Container : Array_Type) return Count_Type is
begin
-- diff
-- diff
-- diff... |
programs/oeis/107/A107395.asm | karttu/loda | 1 | 24782 | <reponame>karttu/loda<gh_stars>1-10
; A107395: C(n+4,4)*C(n+6,4).
; 15,175,1050,4410,14700,41580,103950,235950,495495,975975,1821820,3248700,5569200,9224880,14825700,23197860,35441175,52997175,77729190,112015750,158858700,222007500,306101250,416830050,561117375,747325215,985483800,1287547800,1667680960,2142571200,27317... |
Transynther/x86/_processed/AVXALIGN/_st_zr_/i3-7100_9_0xca_notsx.log_6911_1743.asm | ljhsiun2/medusa | 9 | 5459 | .global s_prepare_buffers
s_prepare_buffers:
push %r9
push %rcx
push %rdi
push %rsi
lea addresses_UC_ht+0xffdb, %rsi
lea addresses_UC_ht+0x7881, %rdi
nop
lfence
mov $25, %rcx
rep movsl
nop
xor $63935, %r9
pop %rsi
pop %rdi
pop %rcx
pop %r9
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r14
push %r15
push... |
PiQ/AuxLemmas.agda | DreamLinuxer/popl21-artifact | 5 | 11513 | <filename>PiQ/AuxLemmas.agda
module PiQ.AuxLemmas where
open import Data.Empty
open import Data.Unit hiding (_≟_)
open import Data.Sum
open import Data.Product
open import Data.Maybe
open import Relation.Binary.Core
open import Relation.Binary
open import Relation.Nullary
open import Relation.Binary.PropositionalEquali... |
Transynther/x86/_processed/NONE/_zr_/i9-9900K_12_0xa0.log_21829_681.asm | ljhsiun2/medusa | 9 | 102036 | .global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r15
push %r8
push %rax
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0x1bd96, %r10
clflush (%r10)
add $56007, %r8
movw $0x6162, (%r10)
nop
nop
nop
nop
add $47240, %rax
lea addresses_WT_ht+0x137b6, %r15
clflush (%r15)
nop
nop
nop
nop
xor $27634, ... |
extern/gnat_sdl/gnat_sdl2/src/avx512dqintrin_h.ads | AdaCore/training_material | 15 | 25233 | pragma Ada_2005;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
package avx512dqintrin_h is
-- Copyright (C) 2014-2017 Free Software Foundation, Inc.
-- This file is part of GCC.
-- GCC is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Pub... |
oeis/112/A112336.asm | neoneye/loda-programs | 11 | 246079 | ; A112336: A number triangle related to the central binomial coefficients.
; Submitted by <NAME>
; 1,2,2,6,4,4,20,12,8,8,70,40,24,16,16,252,140,80,48,32,32,924,504,280,160,96,64,64,3432,1848,1008,560,320,192,128,128,12870,6864,3696,2016,1120,640,384,256,256,48620,25740,13728,7392,4032,2240,1280,768,512,512
lpb $0
ad... |
kv-avm-frames.adb | davidkristola/vole | 4 | 9370 | <filename>kv-avm-frames.adb
with Ada.Unchecked_Deallocation;
with Ada.Unchecked_Conversion;
with System;
with kv.avm.memories;
with kv.avm.Log; use kv.avm.Log;
with kv.avm.Instances;
with kv.avm.Messages;
with kv.avm.Actor_Pool;
with kv.avm.Executables;
package body kv.avm.Frames is
use Interfaces;
use kv.avm.... |
src/test/ref/pointer-anding.kc.asm | jbrandwood/kickc | 2 | 164261 | <filename>src/test/ref/pointer-anding.kc.asm
// Test binary ANDing pointers by <NAME>
.pc = $801 "Basic"
:BasicUpstart(main)
.pc = $80d "Program"
.const SIZEOF_SIGNED_WORD = 2
main: {
.label _2 = 6
.label vram_ptr = 4
.label pos_ptr = 2
ldx #0
lda #<$428
sta.z vram_ptr
lda #>$428
sta.z... |
Control/Monad/Weighted.agda | oisdk/agda-playground | 6 | 568 | <reponame>oisdk/agda-playground
{-# OPTIONS --cubical --safe #-}
open import Algebra
module Control.Monad.Weighted {ℓ} (rng : Semiring ℓ) where
open import Control.Monad.Weighted.Definition rng public
open import Control.Monad.Weighted.Union rng using (_∪_) public
open import Control.Monad.Weighted.Cond r... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.