This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; | |
;; Prove that | |
;; (x -y) >> 3 != ((x >> 3) - (y >> 3)) | |
;; | |
;; if x >= y | |
;; | |
;; | |
(declare-fun x () (_ BitVec 32)) | |
(declare-fun y () (_ BitVec 32)) | |
(declare-fun shift () (_ BitVec 32)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Based on http://lists.us.dell.com/pipermail/linux-poweredge/2013-April/047905.html | |
set -x | |
set -e | |
set -o pipefail | |
function usage() { | |
echo "$0 <user_id>" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Michael Schubert <mschu.dev at gmail> | |
# Contributor: Mikkel Oscar Lyderik <mikkeloscar at gmail dot com> | |
pkgname=git-lfs | |
pkgver=1.5.5 | |
pkgrel=1 | |
pkgdesc="An open source Git extension for versioning large files" | |
arch=('i686' 'x86_64' 'armv7h') | |
url="https://${pkgname}.github.com" | |
license=('MIT') | |
makedepends=('go' 'ruby-ronn') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Homebrew build logs for homebrew/versions/llvm34 on macOS 10.12.2 | |
Build date: 2016-12-18 23:15:29 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <assert.h> | |
#include <fenv.h> | |
#include <inttypes.h> | |
#include <math.h> | |
#include <stdlib.h> | |
#include <stdint.h> | |
#include <stdio.h> | |
#include <string.h> | |
int is_subnormal(float f) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <assert.h> | |
#include <inttypes.h> | |
#include <math.h> | |
#include <stdlib.h> | |
#include <stdint.h> | |
#include <stdio.h> | |
#include <string.h> | |
int is_subnormal(float f) { | |
return fpclassify(f) == FP_SUBNORMAL; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "klee/klee.h" | |
#include <assert.h> | |
#include <math.h> | |
#include <stdio.h> | |
int is_subnormal(float f) { | |
return fpclassify(f) == FP_SUBNORMAL; | |
} | |
int main() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "klee/klee.h" | |
#include <assert.h> | |
#include <inttypes.h> | |
#include <stdio.h> | |
//types and constants used in the functions below | |
const uint64_t m1 = 0x5555555555555555; //binary: 0101... | |
const uint64_t m2 = 0x3333333333333333; //binary: 00110011.. | |
const uint64_t m4 = 0x0f0f0f0f0f0f0f0f; //binary: 4 zeros, 4 ones ... | |
const uint64_t m8 = 0x00ff00ff00ff00ff; //binary: 8 zeros, 8 ones ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Demonstration of a poor man's try-catch construct in C99 using | |
* C preprocessor macros to make the syntax look vaguely like | |
* try-catch constructs in other lagnuages. This implementation | |
* is incredibly bad because C macros are very error prone and | |
* this implementation cannot have nested try-catch constructs | |
*/ | |
#include <stdio.h> | |
#include <assert.h> | |
#define TRY ; _Pragma("pop_macro(\"EXCEPTION_EXIT_LABEL\")") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: d.woffinden | |
# Contributor: Dan Liew <[email protected]> | |
pkgbase=('z3-git') | |
pkgname=('z3-git' 'z3py-git' 'z3-sharp-git' 'z3-java-git') | |
pkgver=4.4.1.r308.g9e28819 | |
pkgrel=1 | |
pkgdesc="Z3 is a high-performance theorem prover being developed at Microsoft Research" | |
arch=('i686' 'x86_64') | |
url="https://github.com/delcypher/z3-1.git" | |
license=('MIT') |
NewerOlder