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
# Shamelessly based on: | |
# https://stackoverflow.com/questions/39305476/bash-prompt-with-background-color-extending-to-end-of-line | |
FIRST_YOU_COULD=1 | |
PROMPT_COMMAND=__prompt_command | |
__prompt_command() | |
{ | |
local None='\[\e[0m\]' | |
local Green='\[\033[1;38;5;10m\]' | |
local LightPurple='\[\033[1;35m\]' |
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
#!/usr/bin/env bash | |
set -euo pipefail | |
FILE=${1-main.cc} | |
if [ ! -f "${FILE}" ] | |
then | |
cat << EOF > "${FILE}" | |
#include <klee/klee.h> | |
#include <assert.h> |
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
#ifdef KLEE | |
#include <klee/klee.h> | |
#include <assert.h> | |
#endif | |
#include <stdbool.h> | |
#ifndef KLEE | |
#include <stdio.h> | |
#endif |
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
#!/usr/bin/env python3 | |
""" | |
Find counter examples to the conjecture: | |
The orbit of all strictly positive natural numbers | |
through col3 ends up in either C[0] and C[1]. | |
""" | |
# Ignores PEP8 and pylint for brevity and math-friendly notation. | |
import sys |
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 <type_traits> | |
#define HAS_MEMBER(member) \ | |
template <typename T, typename = void> \ | |
struct has_##member : std::false_type {}; \ | |
template <typename T> \ | |
struct has_##member<T, std::void_t<decltype(std::declval<T>().member)>> : std::true_type {}; | |
struct WithBla { | |
int bla; |
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
extern crate num; | |
use num::complex::Complex; | |
struct IFS | |
{ | |
max_iter: u64 | |
} | |
trait DDS<State> { |
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
#!/usr/bin/env bash | |
set -euo pipefail | |
FILE=${1-main.cc} | |
if [ ! -f "${FILE}" ] | |
then | |
cat << EOF > "${FILE}" | |
#include <klee/klee.h> | |
#include <assert.h> |
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> | |
typedef unsigned char byte; | |
#define N 5 | |
byte a[N * N]= | |
{ | |
/* A B C D E*/ |
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> | |
#define N 8 | |
unsigned char queens[N]; | |
int abs(int x) | |
{ | |
return x >= 0 ? x: -x; | |
} |
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> | |
typedef enum { | |
NAT = 0, | |
COL = 1, | |
PET = 2, | |
DRI = 3, | |
SMO = 4 | |
} cols_type; |
OlderNewer